wizards 0.6.2 → 0.7.0
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.
- package/README.md +6 -2
- package/apps/runtime/dist/agents/architect.js +7 -29
- package/apps/runtime/dist/agents/studio-assistant.js +7 -24
- package/apps/runtime/dist/cli/autostart.js +58 -12
- package/apps/runtime/dist/cli/autoupdate.js +221 -0
- package/apps/runtime/dist/cli/environment.js +5 -0
- package/apps/runtime/dist/cli/main.js +9 -2
- package/apps/runtime/dist/cli/menu.js +2 -2
- package/apps/runtime/dist/cli/processes.js +72 -0
- package/apps/runtime/dist/cli/setup.js +9 -4
- package/apps/runtime/dist/cli/start.js +18 -1
- package/apps/runtime/dist/cli/status.js +51 -17
- package/apps/runtime/dist/cli/uninstall-main.js +20 -0
- package/apps/runtime/dist/cli/uninstall.js +231 -0
- package/apps/runtime/dist/cli/update.js +25 -2
- package/apps/runtime/dist/cli/versions.js +106 -0
- package/apps/runtime/dist/docs/user/command-line.md +2 -1
- package/apps/runtime/dist/docs/user/data.md +1 -1
- package/apps/runtime/dist/docs/user/install.md +29 -6
- package/apps/runtime/dist/engine/input.js +4 -5
- package/apps/runtime/dist/engine/steps.js +3 -3
- package/apps/runtime/dist/engine/template.js +8 -13
- package/apps/runtime/dist/env.js +3 -20
- package/apps/runtime/dist/features.js +2 -2
- package/apps/runtime/dist/index.js +3 -1
- package/apps/runtime/dist/manage.js +7 -0
- package/apps/runtime/dist/models.js +12 -0
- package/apps/runtime/dist/sandbox/docker.js +0 -2
- package/apps/runtime/dist/sandbox/index.js +3 -10
- package/apps/runtime/dist/services/space-categories.js +3 -25
- package/apps/runtime/dist/tools/browser.js +2 -14
- package/apps/runtime/dist/tools/index.js +1 -19
- package/apps/runtime/dist/tools/mail.js +1 -4
- package/apps/runtime/dist/tools/shared.js +30 -3
- package/apps/runtime/dist/update.js +10 -19
- package/apps/web/dist/assets/AboutDialog-CUVmdhzk.js +1 -0
- package/apps/web/dist/assets/{ChangelogDialog-BRiSYyIn.js → ChangelogDialog-DcQqFbiW.js} +1 -1
- package/apps/web/dist/assets/ChatView-DTPWjzWF.js +10 -0
- package/apps/web/dist/assets/EditorPage-SJHtft7P.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-CUOEzoeJ.js → FlowPreview-DvpjuQdC.js} +1 -1
- package/apps/web/dist/assets/{Harness-D3kTVsF5.js → Harness-D6fezoWO.js} +2 -2
- package/apps/web/dist/assets/{NewWizardChannels-C3PGe_Zd.js → NewWizardChannels-BHeutZ7V.js} +1 -1
- package/apps/web/dist/assets/NewWizardPage-CzBxaPhH.js +7 -0
- package/apps/web/dist/assets/{OnboardingPage-pOPB5TVZ.js → OnboardingPage-DbR4N2Ms.js} +1 -1
- package/apps/web/dist/assets/ProjectPage-DG6_E7kA.js +1 -0
- package/apps/web/dist/assets/PublicRunner-19tV_8TR.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-CCxZvYrT.js → ReadOnly-BMXFtKs0.js} +1 -1
- package/apps/web/dist/assets/RunDrawer-DqwLjFJb.js +4 -0
- package/apps/web/dist/assets/{RunnerView-pKik3sdE.js → RunnerView-DRc4J-rg.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-CCypPS9L.js +1 -0
- package/apps/web/dist/assets/SetupPage-D2Y2rev4.js +1 -0
- package/apps/web/dist/assets/{SharePage-CZQqp5JM.js → SharePage-DB5n6Oug.js} +1 -1
- package/apps/web/dist/assets/changelog-BDhd7tjO.js +1 -0
- package/apps/web/dist/assets/{esm-D4pSRQgT.js → esm-6TNBQNCD.js} +1 -1
- package/apps/web/dist/assets/index-mBRI7ZQp.js +14 -0
- package/apps/web/dist/assets/{lock-DYnHCyRg.js → lock-HLZib0u9.js} +1 -1
- package/apps/web/dist/assets/{phone-DJawY1RF.js → phone-DsxbIcWi.js} +1 -1
- package/apps/web/dist/assets/settings-menu-BMMkIVP1.js +1 -0
- package/apps/web/dist/assets/ui-Brg2qM1A.js +137 -0
- package/apps/web/dist/assets/{upload-DL6NRa4h.js → upload-BaGy0ppG.js} +1 -1
- package/apps/web/dist/index.html +2 -2
- package/apps/web/dist/install.sh +29 -11
- package/apps/web/dist/mcp/flow.html +11 -11
- package/bin/wizards.mjs +17 -3
- package/node_modules/@engenty-wizards/shared/dist/definition.js +6 -17
- package/node_modules/@engenty-wizards/shared/dist/features.d.ts +6 -0
- package/node_modules/@engenty-wizards/shared/dist/features.js +12 -0
- package/node_modules/@engenty-wizards/shared/dist/numbers.d.ts +24 -0
- package/node_modules/@engenty-wizards/shared/dist/numbers.js +54 -0
- package/node_modules/@engenty-wizards/shared/dist/store.d.ts +7 -0
- package/node_modules/@engenty-wizards/shared/dist/store.js +28 -0
- package/package.json +1 -1
- package/apps/runtime/dist/sandbox/agentos.js +0 -191
- package/apps/web/dist/assets/AboutDialog-BrfbtjmR.js +0 -1
- package/apps/web/dist/assets/ChatView-_dYvuuUY.js +0 -10
- package/apps/web/dist/assets/EditorPage-CkRjTRMg.js +0 -3
- package/apps/web/dist/assets/NewWizardPage-B3ol4K43.js +0 -7
- package/apps/web/dist/assets/ProjectPage-Boyptzz_.js +0 -1
- package/apps/web/dist/assets/PublicRunner-DcETj9_E.js +0 -1
- package/apps/web/dist/assets/RunDrawer-hwruVTDG.js +0 -4
- package/apps/web/dist/assets/SettingsPage-BOe6NgFg.js +0 -1
- package/apps/web/dist/assets/SetupPage-81QxPnfE.js +0 -1
- package/apps/web/dist/assets/changelog-CtyrKHAc.js +0 -1
- package/apps/web/dist/assets/index-DnIvQFIg.js +0 -14
- package/apps/web/dist/assets/settings-menu-B_-_EAmK.js +0 -1
- package/apps/web/dist/assets/ui-rh8TaWvT.js +0 -137
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/qr-scanner.min-C_UI0gH-.js","assets/preload-helper-CNEI7N0N.js","assets/pdfmake-Cx9scTbD.js","assets/rolldown-runtime-hePW80VL.js","assets/vfs_fonts-DllDSYt1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{n as r,t as i}from"./jsx-runtime-BNakU3Ej.js";import{t as a}from"./preload-helper-CNEI7N0N.js";var o=t(r(),1),s=t(i(),1),c=o.createContext(void 0),l=e=>{let t=o.useContext(c);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},u=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(c.Provider,{value:e,children:t})),d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},f=new class{#e=d;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function p(e){setTimeout(e,0)}var m=typeof window>`u`||`Deno`in globalThis;function h(){}function g(e,t){return typeof e==`function`?e(t):e}function _(e){return typeof e==`number`&&e>=0&&e!==1/0}function v(e,t){return Math.max(e+(t||0)-Date.now(),0)}function y(e,t){return typeof e==`function`?e(t):e}function b(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==S(o,t.options))return!1}else if(!w(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function x(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(C(t.options.mutationKey)!==C(a))return!1}else if(!w(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function S(e,t){return(t?.queryKeyHashFn||C)(e)}function C(e){return JSON.stringify(e,(e,t)=>ne(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function w(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!w(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!w(e[r],t[r]))return!1;return!0}return!1}var T=Object.prototype.hasOwnProperty;function E(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=te(e)&&te(t);if(!r&&!(ne(e)&&ne(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:T.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=E(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ee(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function te(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ne(e){if(!D(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!D(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function D(e){return Object.prototype.toString.call(e)===`[object Object]`}function re(e){return new Promise(t=>{f.setTimeout(t,e)})}function ie(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:E(e,t)}function ae(e){return e}function oe(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function se(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ce=Symbol();function le(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ce?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ue(e,t){return typeof e==`function`?e(...t):!!e}function de(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var O=()=>m,fe=()=>O(),pe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},me=new class extends pe{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},he=p;function ge(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=he,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var _e=ge(),ve=new class extends pe{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ye(e){return Math.min(1e3*2**e,3e4)}function be(e){return(e??`online`)!==`online`||ve.isOnline()}var k=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function xe(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(h);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new k(t);g(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>me.isFocused()&&(e.networkMode===`always`||ve.isOnline())&&e.canRun(),p=()=>be(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},g=e=>{c()||(r?.(),i=`rejected`,o(e))},_=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),v=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(fe()?0:3),a=e.retryDelay??ye,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){g(r);return}n++,e.onFail?.(n,r),re(o).then(()=>f()?void 0:_()).then(()=>{t?g(r):v()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?v():_().then(v),s)}}var A=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_(this.gcTime)&&(this.#e=f.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fe()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(f.clearTimeout(this.#e),this.#e=void 0)}};function Se(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{de(e,()=>t.signal,()=>n=!0)},u=le(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?se:oe;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?we:Ce,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ce(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Ce(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function we(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Te(e,t){return t?Ce(e,t)!=null:!1}function Ee(e,t){return!t||!e.getPreviousPageParam?!1:we(e,t)!=null}var De=class extends A{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ae(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ae(this.options);e.data!==void 0&&(this.setState(ke(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ie(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(h).catch(h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>y(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ce||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>y(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!v(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=le(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Se(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=xe({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof k&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof k){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Oe(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ke(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),_e.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Oe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:be(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ke(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ae(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var je=class extends pe{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ne(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pe(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pe(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof y(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ee(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Fe(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||y(this.options.enabled,this.#t)!==y(t.enabled,this.#t)||y(this.options.staleTime,this.#t)!==y(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||y(this.options.enabled,this.#t)!==y(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ee(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(h)),t}#h(e){return!fe()&&y(this.options.enabled,this.#t)!==!1&&_(e)}#g(){this.#b();let e=y(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=v(this.#r.dataUpdatedAt,e)+1;this.#u=f.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return y(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=f.setInterval(()=>{(this.options.refetchIntervalInBackground||me.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(f.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(f.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ne(e,t),o=i&&Fe(e,n,t,r);(a||o)&&(l={...l,...Oe(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=ie(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=ie(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,b=_&&g,x=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&x,isStale:Ie(e,t),refetch:this.refetch,isEnabled:y(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),ee(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();_e.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function Me(e,t){return y(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||y(t.retryOnMount,e)!==!1)}function Ne(e,t){return Me(e,t)||e.state.data!==void 0&&Pe(e,t,t.refetchOnMount)}function Pe(e,t,n){if(y(t.enabled,e)!==!1&&y(t.staleTime,e)!==`static`){let r=y(n,e);return r===`always`||r!==!1&&Ie(e,t)}return!1}function Fe(e,t,n,r){return(e!==t||y(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Ie(e,n)}function Ie(e,t){return y(t.enabled,e)!==!1&&e.isStaleByTime(y(t.staleTime,e))}var Le=o.createContext(!1),Re=()=>o.useContext(Le);Le.Provider;function ze(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Be=o.createContext(ze()),Ve=()=>o.useContext(Be),He=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?ue(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Ue=e=>{o.useEffect(()=>{e.clearReset()},[e])},We=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ue(n,[e.error,r])),Ge=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Ke=(e,t)=>e?.suspense&&t.isPending,qe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Je(e,t,n){let r=Re(),i=Ve(),a=l(n),s=a.defaultQueryOptions(e),c=a.getQueryCache().get(s.queryHash),u=e.subscribed!==!1;s._optimisticResults=r?`isRestoring`:u?`optimistic`:void 0,Ge(s),He(s,i,c),Ue(i);let[d]=o.useState(()=>new t(a,s)),f=d.getOptimisticResult(s),p=!r&&u;if(o.useSyncExternalStore(o.useCallback(e=>{let t=p?d.subscribe(_e.batchCalls(e)):h;return d.updateResult(),t},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),o.useEffect(()=>{d.setOptions(s)},[s,d]),Ke(s,f))throw qe(s,d,i);if(We({result:f,errorResetBoundary:i,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw f.error;return s.notifyOnChangeProps?f:d.trackResult(f)}function Ye(e,t){return Je(e,je,t)}var Xe=n((e=>{var t=r();function n(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 i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),Ze=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Xe()})),Qe=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,$e=/^[\\/]{2}/;function et(e,t){return t+e.replace(/\\/g,`/`)}var tt=`popstate`;function nt(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function rt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return st(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ct(t)}return ut(t,n,null,e)}function j(e,t){if(e===!1||e==null)throw Error(t)}function it(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function at(){return Math.random().toString(36).substring(2,10)}function ot(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function st(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?lt(t):t,state:n,key:t&&t.key||r||at(),mask:i}}function ct({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function lt(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ut(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=nt(e)?e:st(h.location,e,t);n&&n(r,e),l=u()+1;let d=ot(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=nt(e)?e:st(h.location,e,t);n&&n(r,e),l=u();let i=ot(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return dt(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(tt,d),c=e,()=>{i.removeEventListener(tt,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function dt(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),j(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ct(t);return i=i.replace(/ $/,`%20`),!n&&$e.test(i)&&(i=r+i),new URL(i,r)}function ft(e,t,n=`/`){return pt(e,t,n,!1)}function pt(e,t,n,r,i){let a=Mt((typeof t==`string`?lt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??mt(e),s=null,c=jt(a);for(let e=0;s==null&&e<o.length;++e)s=Dt(o[e],c,r);return s}function mt(e){let t=ht(e);return _t(t),t}function ht(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;j(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Bt([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(j(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ht(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Tt(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=At(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of gt(e.path))a(e,t,!0,n)}),t}function gt(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=gt(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function _t(e){e.sort((e,t)=>e.score===t.score?Et(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var vt=/^:[\w-]+$/,yt=3,bt=2,xt=1,St=10,Ct=-2,wt=e=>e===`*`;function Tt(e,t){let n=e.split(`/`),r=n.length;return n.some(wt)&&(r+=Ct),t&&(r+=bt),n.filter(e=>!wt(e)).reduce((e,t)=>e+(vt.test(t)?yt:t===``?xt:St),r)}function Et(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Dt(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?kt(u,l,s.matcher,s.compiledParams):Ot(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ot({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Bt([a,d.pathname]),pathnameBase:Ht(Bt([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Bt([a,d.pathnameBase]))}return o}function Ot(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=At(e.path,e.caseSensitive,e.end);return kt(e,t,n,r)}function kt(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Vt(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Vt(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function At(e,t=!1,n=!0){it(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function jt(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return it(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Mt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Nt(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?lt(e):e,a;return n?(n=zt(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Pt(n.substring(1),`/`):Pt(n,t)):a=t,{pathname:a,search:Ut(r),hash:Wt(i)}}function Pt(e,t){let n=Vt(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ft(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function It(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Lt(e){let t=It(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Rt(e,t,n,r=!1){let i;typeof e==`string`?i=lt(e):(i={...e},j(!i.pathname||!i.pathname.includes(`?`),Ft(`?`,`pathname`,`search`,i)),j(!i.pathname||!i.pathname.includes(`#`),Ft(`#`,`pathname`,`hash`,i)),j(!i.search||!i.search.includes(`#`),Ft(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Nt(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var zt=e=>e.replace(/[\\/]{2,}/g,`/`),Bt=e=>zt(e.join(`/`));function Vt(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Ht=e=>Vt(e).replace(/^\/*/,`/`),Ut=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Wt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Gt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Kt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function qt(e){return Bt(e.map(e=>e.route.path).filter(Boolean))||`/`}var Jt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Yt(e,t){let n=e;if(typeof n!=`string`||!Qe.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Jt)try{let e=new URL(window.location.href),r=$e.test(n)?new URL(et(n,e.protocol)):new URL(n),a=Mt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{it(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Xt=new URL(`http://localhost`);function Zt(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Xt)}catch{return Xt}}function Qt(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function $t(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function en(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Qt(i,n),s=!Qt(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!$t(e,i)||!Qt(i,a)))throw Error(`External navigation is not allowed`)}var tn=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(tn);var nn=[`GET`,...tn];new Set(nn);var rn=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function an(e){try{return rn.includes(new URL(e).protocol)}catch{return!1}}var on=o.createContext(null);on.displayName=`DataRouter`;var sn=o.createContext(null);sn.displayName=`DataRouterState`;var cn=o.createContext(!1);function ln(){return o.useContext(cn)}var un=o.createContext({isTransitioning:!1});un.displayName=`ViewTransition`;var dn=o.createContext(new Map);dn.displayName=`Fetchers`;var fn=o.createContext(null);fn.displayName=`Await`;var pn=o.createContext(null);pn.displayName=`Navigation`;var mn=o.createContext(null);mn.displayName=`Location`;var hn=o.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName=`Route`;var gn=o.createContext(null);gn.displayName=`RouteError`;var _n=`REACT_ROUTER_ERROR`,vn=`REDIRECT`,yn=`ROUTE_ERROR_RESPONSE`;function bn(e){if(e.startsWith(`${_n}:${vn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function xn(e){if(e.startsWith(`${_n}:${yn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Gt(t.status,t.statusText,t.data)}catch{}}function Sn(e,{relative:t}={}){j(Cn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=o.useContext(pn),{hash:i,pathname:a,search:s}=An(e,{relative:t}),c=a;return n!==`/`&&(c=a===`/`?n:Bt([n,a])),r.createHref({pathname:c,search:s,hash:i})}function Cn(){return o.useContext(mn)!=null}function wn(){return j(Cn(),`useLocation() may be used only in the context of a <Router> component.`),o.useContext(mn).location}var Tn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function En(e){o.useContext(pn).static||o.useLayoutEffect(e)}function Dn(){let{isDataRoute:e}=o.useContext(hn);return e?qn():On()}function On(){j(Cn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=o.useContext(on),{basename:t,navigator:n}=o.useContext(pn),{matches:r}=o.useContext(hn),{pathname:i}=wn(),a=JSON.stringify(Lt(r)),s=o.useRef(!1);return En(()=>{s.current=!0}),o.useCallback((r,o={})=>{if(it(s.current,Tn),!s.current)return;if(typeof r==`number`){n.go(r);return}let c=Rt(r,JSON.parse(a),i,o.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Bt([t,c.pathname])),en(typeof r==`string`?r:ct(r),n.createHref(c),Zt(n),`reject`),(o.replace?n.replace:n.push)(c,o.state,o)},[t,n,a,i,e])}o.createContext(null);function kn(){let{matches:e}=o.useContext(hn);return e[e.length-1]?.params??{}}function An(e,{relative:t}={}){let{matches:n}=o.useContext(hn),{pathname:r}=wn(),i=JSON.stringify(Lt(n));return o.useMemo(()=>Rt(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function jn(e,t){return Mn(e,t)}function Mn(e,t,n){j(Cn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=o.useContext(pn),{matches:i}=o.useContext(hn),a=i[i.length-1],s=a?a.params:{},c=a?a.pathname:`/`,l=a?a.pathnameBase:`/`,u=a&&a.route;{let e=u&&u.path||``;Yn(c,!u||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
3
|
-
|
|
4
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let d=wn(),f;if(t){let e=typeof t==`string`?lt(t):t;j(l===`/`||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=d;let p=f.pathname||`/`,m=p;if(l!==`/`){let e=l.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ft(e,{pathname:m});it(u||h!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),it(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=zn(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Bt([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?l:Bt([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?o.createElement(mn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...f},navigationType:`POP`}},g):g}function Nn(){let e=Kn(),t=Kt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},s=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),s=o.createElement(o.Fragment,null,o.createElement(`p`,null,`💿 Hey developer 👋`),o.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,o.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,o.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),o.createElement(o.Fragment,null,o.createElement(`h2`,null,`Unexpected Application Error!`),o.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?o.createElement(`pre`,{style:i},n):null,s)}var Pn=o.createElement(Nn,null),Fn=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=xn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:o.createElement(hn.Provider,{value:this.props.routeContext},o.createElement(gn.Provider,{value:e,children:this.props.component}));return this.context?o.createElement(Ln,{error:e},t):t}};Fn.contextType=cn;var In=new WeakMap;function Ln({children:e,error:t}){let{basename:n,navigator:r}=o.useContext(pn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=bn(t.digest);if(e){let i=In.get(t);if(i)throw i;let a=Yt(e.location,n),s=a.absoluteURL||a.to;if(en(e.location,s,Zt(r),`allow-explicit`),an(s))throw Error(`Invalid redirect location`);if(Jt&&!In.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=s;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw In.set(t,n),n}}return o.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${s}`})}}return e}function Rn({routeContext:e,match:t,children:n}){let r=o.useContext(on);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(hn.Provider,{value:e},n)}function zn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);j(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,c=-1;if(n&&r){s=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:a}=r,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||o){n.isStatic&&(s=!0),i=c>=0?i.slice(0,c+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:qt(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,l)=>{let d,f=!1,p=null,m=null;r&&(d=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||Pn,s&&(c<0&&l===0?(Yn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,l+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?o.createElement(n.route.Component,null):n.route.element?n.route.element:e,o.createElement(Rn,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||l===0)?o.createElement(Fn,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function Bn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vn(e){let t=o.useContext(on);return j(t,Bn(e)),t}function Hn(e){let t=o.useContext(sn);return j(t,Bn(e)),t}function Un(e){let t=o.useContext(hn);return j(t,Bn(e)),t}function Wn(e){let t=Un(e),n=t.matches[t.matches.length-1];return j(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Gn(){return Wn(`useRouteId`)}function Kn(){let e=o.useContext(gn),t=Hn(`useRouteError`),n=Wn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function qn(){let{router:e}=Vn(`useNavigate`),t=Wn(`useNavigate`),n=o.useRef(!1);return En(()=>{n.current=!0}),o.useCallback(async(r,i={})=>{it(n.current,Tn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Jn={};function Yn(e,t,n){!t&&!Jn[e]&&(Jn[e]=!0,it(!1,n))}o.memo(Xn);function Xn({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Mn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Zn({to:e,replace:t,state:n,relative:r}){j(Cn(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=o.useContext(pn);it(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:s}=o.useContext(hn),{pathname:c}=wn(),l=Dn(),u=Rt(e,Lt(s),c,r===`path`);en(typeof e==`string`?e:ct(e),a.createHref(u),Zt(a),`reject`);let d=JSON.stringify(u);return o.useEffect(()=>{l(JSON.parse(d),{replace:t,state:n,relative:r})},[l,d,r,t,n]),null}function Qn(e){j(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function $n({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:s}){j(!Cn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let c=e.replace(/^\/*/,`/`),l=o.useMemo(()=>({basename:c,navigator:i,static:a,useTransitions:s,future:{}}),[c,i,a,s]);typeof n==`string`&&(n=lt(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,mask:h}=n,g=o.useMemo(()=>{let e=Mt(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,mask:h},navigationType:r}},[c,u,d,f,p,m,r,h]);return it(g!=null,`<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:o.createElement(pn.Provider,{value:l},o.createElement(mn.Provider,{children:t,value:g}))}function er({children:e,location:t}){return jn(tr(e),t)}o.Component;function tr(e,t=[]){let n=[];return o.Children.forEach(e,(e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment){n.push.apply(n,tr(e.props.children,i));return}j(e.type===Qn,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),j(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=tr(e.props.children,i)),n.push(a)}),n}var nr=`get`,rr=`application/x-www-form-urlencoded`;function ir(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ar(e){return ir(e)&&e.tagName.toLowerCase()===`button`}function or(e){return ir(e)&&e.tagName.toLowerCase()===`form`}function sr(e){return ir(e)&&e.tagName.toLowerCase()===`input`}function cr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lr(e,t){return e.button===0&&(!t||t===`_self`)&&!cr(e)}function ur(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function dr(e,t){let n=ur(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var fr=null;function pr(){if(fr===null)try{new FormData(document.createElement(`form`),0),fr=!1}catch{fr=!0}return fr}var mr=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function hr(e){return e!=null&&!mr.has(e)?(it(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${rr}"`),null):e}function gr(e,t){let n,r,i,a,o;if(or(e)){let o=e.getAttribute(`action`);r=o?Mt(o,t):null,n=e.getAttribute(`method`)||nr,i=hr(e.getAttribute(`enctype`))||rr,a=new FormData(e)}else if(ar(e)||sr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Mt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||nr,i=hr(e.getAttribute(`formenctype`))||hr(o.getAttribute(`enctype`))||rr,a=new FormData(o,e),!pr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ir(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=nr,r=null,i=rr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function _r(e,t){if(e===!1||e==null)throw Error(t)}function vr(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Mt(i.pathname,t)===`/`?`${Vt(t)}/_root.${r}`:`${Vt(i.pathname)}.${r}`,i}async function yr(e,t){if(e.id in t)return t[e.id];try{let n=await a(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function br(e){return e!=null&&typeof e.page==`string`}function xr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Sr(e,t,n){return Dr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await yr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(xr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Cr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function wr(e,t,{includeHydrateFallback:n}={}){return Tr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Tr(e){return[...new Set(e)]}function Er(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Dr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!br(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Er(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Or(){let e=o.useContext(on);return _r(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function kr(){let e=o.useContext(sn);return _r(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ar=o.createContext(void 0);Ar.displayName=`FrameworkContext`;function jr(){let e=o.useContext(Ar);return _r(e,`You must render this element inside a <HydratedRouter> element`),e}function Mr(e,t){let n=o.useContext(Ar),[r,i]=o.useState(!1),[a,s]=o.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=o.useRef(null);o.useEffect(()=>{if(e===`render`&&s(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),o.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),s(!1)};return n?e===`intent`?[a,p,{onFocus:Nr(c,m),onBlur:Nr(l,h),onMouseEnter:Nr(u,m),onMouseLeave:Nr(d,h),onTouchStart:Nr(f,m)}]:[a,p,{}]:[!1,p,{}]}function Nr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Pr({page:e,...t}){let n=ln(),{nonce:r}=jr(),{router:i}=Or(),a=o.useMemo(()=>ft(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?o.createElement(Ir,{page:e,matches:a,...t}):o.createElement(Lr,{page:e,matches:a,...t})):null}function Fr(e){let{manifest:t,routeModules:n}=jr(),[r,i]=o.useState([]);return o.useEffect(()=>{let r=!1;return Sr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ir({page:e,matches:t,...n}){let r=wn(),{future:i}=jr(),{basename:a}=Or(),s=o.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=vr(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return o.createElement(o.Fragment,null,s.map(e=>o.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Lr({page:e,matches:t,...n}){let r=wn(),{future:i,manifest:a,routeModules:s}=jr(),{basename:c}=Or(),{loaderData:l,matches:u}=kr(),d=o.useMemo(()=>Cr(e,t,u,a,r,`data`),[e,t,u,a,r]),f=o.useMemo(()=>Cr(e,t,u,a,r,`assets`),[e,t,u,a,r]),p=o.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let u=vr(e,c,i.v8_trailingSlashAwareDataRequests,`data`);return o&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[c,i.v8_trailingSlashAwareDataRequests,l,r,a,d,t,e,s]),m=o.useMemo(()=>wr(f,a),[f,a]),h=Fr(f);return o.createElement(o.Fragment,null,p.map(e=>o.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>o.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>o.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Rr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}o.Component;var zr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{zr&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Br({basename:e,children:t,useTransitions:n,window:r}){let i=o.useRef();i.current??=rt({window:r,v5Compat:!0});let a=i.current,[s,c]=o.useState({action:a.action,location:a.location}),l=o.useCallback(e=>{n===!1?c(e):o.startTransition(()=>c(e))},[n]);return o.useLayoutEffect(()=>a.listen(l),[a,l]),o.createElement($n,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:n})}var Vr=o.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:v}=o.useContext(pn),y=typeof u==`string`&&Qe.test(u),b=Yt(u,g);u=b.to;let x=Sn(u,{relative:r}),S=wn(),C=null;if(s){let e=Rt(s,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Bt([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Mr(n,m),ee=Kr(u,{replace:a,mask:s,state:c,target:l,preventScrollReset:d,relative:r,viewTransition:f,defaultShouldRevalidate:p,useTransitions:v});function te(t){e&&e(t),t.defaultPrevented||ee(t)}let ne=!(b.isExternal||i),D=o.createElement(`a`,{...m,...E,href:(ne?C:void 0)||b.absoluteURL||x,onClick:ne?te:e,ref:Rr(h,T),target:l,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?o.createElement(o.Fragment,null,D,o.createElement(Pr,{page:x})):D});Vr.displayName=`Link`;var Hr=o.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:s,children:c,...l},u){let d=An(a,{relative:l.relative}),f=wn(),p=o.useContext(sn),{navigator:m,basename:h}=o.useContext(pn),g=p!=null&&Qr(d)&&s===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Mt(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return o.createElement(Vr,{...l,"aria-current":w,className:T,ref:u,style:E,to:a,viewTransition:s},typeof c==`function`?c(C):c)});Hr.displayName=`NavLink`;var Ur=o.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:s=nr,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=o.useContext(pn),_=Xr(),v=Zr(c,{relative:u}),y=s.toLowerCase()===`get`?`get`:`post`,b=typeof c==`string`&&Qe.test(c);return o.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,c=r?.getAttribute(`formmethod`)||s,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:c,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?o.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});Ur.displayName=`Form`;function Wr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gr(e){let t=o.useContext(on);return j(t,Wr(e)),t}function Kr(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:u}={}){let d=Dn(),f=wn(),p=An(e,{relative:s});return o.useCallback(m=>{if(lr(m,t)){m.preventDefault();let t=n===void 0?ct(f)===ct(p):n,h=()=>d(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:c,defaultShouldRevalidate:l});u?o.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,a,s,c,l,u])}function qr(e){it(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(ur(e)),n=o.useRef(!1),r=wn(),i=o.useMemo(()=>dr(r.search,n.current?null:t.current),[r.search]),a=Dn();return[i,o.useCallback((e,t)=>{let r=ur(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Jr=0,Yr=()=>`__${String(++Jr)}__`;function Xr(){let{router:e}=Gr(`useSubmit`),{basename:t}=o.useContext(pn),n=Gn(),r=e.fetch,i=e.navigate;return o.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=gr(e,t);if(a.navigate===!1){let e=a.fetcherKey||Yr();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Zr(e,{relative:t}={}){let{basename:n}=o.useContext(pn),r=o.useContext(hn);j(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...An(e||`.`,{relative:t})},s=wn();if(e==null){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Bt([n,a.pathname])),ct(a)}function Qr(e,{relative:t}={}){let n=o.useContext(un);j(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gr(`useViewTransitionState`),i=An(e,{relative:t});if(!n.isTransitioning)return!1;let a=Mt(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Mt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ot(i.pathname,s)!=null||Ot(i.pathname,a)!=null}var $r=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ei(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:$r(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ti=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},ni=e=>{let t=ti(e);return t.charAt(0).toUpperCase()+t.slice(1)},ri=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ii={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ai(e){return e!=null}function oi(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ii.width,a=e.size??e.height??ii.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?ri(...c):ri(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ii[`stroke-width`])*Number(e.size??e.width??ii.width)/Number(t.size??t.width??ii.width):t.strokeWidth??ii[`stroke-width`];return[`svg`,{...Object.entries(ii).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ai(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ai(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ai(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function si(e,t={}){return oi(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ci=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},li=(0,o.createContext)({}),ui=()=>(0,o.useContext)(li),di=(0,o.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:s,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=ui()??{},b=!!l||ci(f),[x,S,C=[]]=si(d,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:s??_,className:ri(y,c),hasA11yProp:b,attributes:f});return(0,o.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,o.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function M(e,t=[],n=[]){let r=typeof e==`string`?ei(e,t,n):e,i=(0,o.forwardRef)(({className:e,...t},n)=>(0,o.createElement)(di,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ni(r.name)),i}var fi={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};fi.node;var pi=M(fi),mi={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};mi.node;var hi=M(mi),gi={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};gi.node;var _i=M(gi),vi={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};vi.node;var yi=M(vi),bi={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};bi.node;var xi=M(bi),Si={name:`bell-ring`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]};Si.node;var Ci=M(Si),wi={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};wi.node;var Ti=M(wi),Ei={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};Ei.node;var Di=M(Ei),Oi={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Oi.node;var ki=M(Oi),Ai={name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]};Ai.node;var ji=M(Ai),Mi={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Mi.node;var Ni=M(Mi),Pi={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Pi.node;var Fi=M(Pi),Ii={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Ii.node;var Li=M(Ii),Ri={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Ri.node;var zi=M(Ri),Bi={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Bi.node;var Vi=M(Bi),Hi={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Hi.node;var Ui=M(Hi),Wi={name:`corner-down-left`,size:24,node:[[`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`,key:`6o5b7l`}],[`path`,{d:`m9 10-5 5 5 5`,key:`1kshq7`}]]};Wi.node;var Gi=M(Wi),Ki={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Ki.node;var qi=M(Ki),Ji={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Ji.node;var Yi=M(Ji),Xi={name:`ellipsis-vertical`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]],aliases:[`more-vertical`]};Xi.node;var Zi=M(Xi),Qi={name:`eraser`,size:24,node:[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]};Qi.node;var $i=M(Qi),ea={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};ea.node;var ta=M(ea),na={name:`file-headphone`,size:24,node:[[`path`,{d:`M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343`,key:`1vfytu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0`,key:`1etmh7`}]],aliases:[`file-audio`,`file-audio-2`]};na.node;var ra=M(na),ia={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};ia.node;var aa=M(ia),oa={name:`film`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]};oa.node;var sa=M(oa),ca={name:`flashlight-off`,size:24,node:[[`path`,{d:`M11.652 6H18`,key:`voqkpr`}],[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6`,key:`dzyf92`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007`,key:`1hvcfn`}]]};ca.node;var la=M(ca),ua={name:`flashlight`,size:24,node:[[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z`,key:`17vh7j`}],[`path`,{d:`M6 6h12`,key:`n6hhss`}]]};ua.node;var da=M(ua),fa={name:`folder-input`,size:24,node:[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]};fa.node;var pa=M(fa),ma={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};ma.node;var ha=M(ma),ga={name:`image-plus`,size:24,node:[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]};ga.node;var _a=M(ga),va={name:`image-up`,size:24,node:[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19.5 3-3 3 3`,key:`9vmjn0`}],[`path`,{d:`M17 22v-5.5`,key:`1aa6fl`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]};va.node;var ya=M(va),ba={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};ba.node;var xa=M(ba),Sa={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};Sa.node;var Ca=M(Sa),wa={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};wa.node;var Ta=M(wa),Ea={name:`locate-fixed`,size:24,node:[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Ea.node;var Da=M(Ea),Oa={name:`lock-keyhole`,size:24,node:[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]};Oa.node;var ka=M(Oa),Aa={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};Aa.node;var ja=M(Aa),Ma={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};Ma.node;var Na=M(Ma),Pa={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};Pa.node;var Fa=M(Pa),Ia={name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]};Ia.node;var La=M(Ia),Ra={name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]};Ra.node;var za=M(Ra),Ba={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-3`]};Ba.node;var Va=M(Ba),Ha={name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]};Ha.node;var Ua=M(Ha),Wa={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Wa.node;var Ga=M(Wa),Ka={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Ka.node;var qa=M(Ka),Ja={name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]};Ja.node;var Ya=M(Ja),Xa={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Xa.node;var Za=M(Xa),Qa={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};Qa.node;var $a=M(Qa),eo={name:`scan-line`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]};eo.node;var to=M(eo),no={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};no.node;var ro=M(no),io={name:`share-2`,size:24,node:[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]};io.node;var ao=M(io),oo={name:`share`,size:24,node:[[`path`,{d:`M12 2v13`,key:`1km8f5`}],[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}]]};oo.node;var so=M(oo),co={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};co.node;var lo=M(co),uo={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};uo.node;var fo=M(uo),po={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};po.node;var mo=M(po),ho={name:`switch-camera`,size:24,node:[[`path`,{d:`M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5`,key:`mtk2lu`}],[`path`,{d:`M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5`,key:`120jsl`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m18 22-3-3 3-3`,key:`kgdoj7`}],[`path`,{d:`m6 2 3 3-3 3`,key:`1fnbkv`}]]};ho.node;var go=M(ho),_o={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};_o.node;var vo=M(_o),yo={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};yo.node;var bo=M(yo),xo={name:`unplug`,size:24,node:[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]};xo.node;var So=M(xo),Co={name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]};Co.node;var wo=M(Co),To={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};To.node;var Eo=M(To);function Do(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Oo(e,t=`|`){return e.map(e=>es(e)).join(t)}function ko(e,t){return typeof t==`bigint`?t.toString():t}var Ao=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function jo(e){return new Ao(e)}function Mo(e){return e==null}function No(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Po(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function Fo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Io(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function Lo(e){return Io(e._zod.def)??e._zod.def.shape}function Ro(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return Fo(this,t,e),e},enumerable:!0,configurable:!0})}function zo(e,t,n){t in e?Fo(e,t,n):e[t]=n}function Bo(e,t,n,r){let i=Lo(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?Ro(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):zo(e,a,r?r(n.value,a):n.value))}}function Vo(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Ro(e,n,()=>t[n]):zo(e,n,r.value))}}function Ho(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Uo(e){return JSON.stringify(e)}function Wo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Go=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ko(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var qo=jo(()=>{if(Hs.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Jo(e){if(Ko(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return Ko(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function Yo(e){return Jo(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Xo=new Set([`string`,`number`,`symbol`]),Zo=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function Qo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function $o(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function N(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function es(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ts(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var ns={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},rs={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function is(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return Bo(i,e,as(e,t)),$o(e,Ho(n,{shape:i,checks:[]}))}function as(e,t){let n=Lo(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function os(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(as(e,t)),a={};return Bo(a,e,Reflect.ownKeys(Lo(e)).filter(e=>!i.has(e))),$o(e,Ho(n,{shape:a,checks:[]}))}function ss(e,t){if(!Jo(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=Lo(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return $o(e,Ho(e._zod.def,{shape:cs(e,t)}))}function cs(e,t){let n={};return Bo(n,e,Reflect.ownKeys(Lo(e))),Vo(n,t),n}function ls(e,t){if(!Jo(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return $o(e,Ho(e._zod.def,{shape:cs(e,t)}))}function us(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return Bo(n,e,Reflect.ownKeys(Lo(e))),Bo(n,t,Reflect.ownKeys(Lo(t))),$o(e,Ho(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ds(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(as(t,n)):void 0,o={};return Bo(o,t,Reflect.ownKeys(Lo(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),$o(t,Ho(t._zod.def,{shape:o,checks:[]}))}function fs(e,t,n){let r=n?new Set(as(t,n)):void 0,i={};return Bo(i,t,Reflect.ownKeys(Lo(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),$o(t,Ho(t._zod.def,{shape:i}))}function ps(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ms(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function hs(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function gs(e){return typeof e==`string`?e:e?.message}function _s(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function vs(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:gs(e.inst?._zod.def?.error?.(e))??gs(a?.(e))??gs(t?.error?.(e))??gs(n.customError?.(e))??gs(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var ys=/[\uD800-\uDBFF]/;function bs(e){let t=e.length;if(!ys.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function xs(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ss(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Cs(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function ws(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Os(e,n,r.value)}}function Ts(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Es(e,t,n){return Ts(e,t,n,!1)}function Ds(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Ts(this,n,r(this))},set(e){Ts(this,n,e)}})}return t}function Os(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ts(this,t,n.bind(this))},set(e){Ts(this,t,e)}})}function ks(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var As,js=!1,Ms={configurable:!0,get(){js=!0}};function P(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&As!==e._zod){As=void 0;return}As=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Ms);let e=js;js=!1;try{let r=n(this);return js?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),js||=e,r}catch(n){throw delete this[t],js||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function Ns(e,t,n,r){let i=ks(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Ps=`~constantCatch`;function Fs(e){let t=()=>e;return t[Ps]=!0,t}var Is,Ls={value:void 0,enumerable:!1},Rs=`captureStackTrace`in Error?Error:null;function zs(e){let t=Rs;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Rs=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function F(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Ls.value=new a(r);try{Object.defineProperty(n,"_zod",Ls)}finally{Ls.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),ws(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?zs(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Bs=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Vs=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Is=globalThis).__zod_globalConfig??(Is.__zod_globalConfig={});var Hs=globalThis.__zod_globalConfig;function Us(e){return e&&Object.assign(Hs,e),Hs}function Ws(){let e=this._zod;return e.message??=JSON.stringify(e.def,ko,2),e.message}function Gs(e){this._zod.message=e}var Ks={get:Ws,set:Gs,enumerable:!0,configurable:!0},qs={value:void 0,enumerable:!1},Js=new WeakSet([Object.prototype,Error.prototype]),Ys=(e,t)=>{e.name=`$ZodError`,qs.value=t,Object.defineProperty(e,"issues",qs),qs.value=void 0,Object.defineProperty(e,"message",Ks);let n=Object.getPrototypeOf(e);Js.has(n)||(Js.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},Xs=F(`$ZodError`,Ys);F(`$ZodError`,Ys,void 0,{Parent:Error});function Zs(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Qs(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Zs(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function $s(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function ec(e,t){return{callee:t?.callee??e,Err:t?.Err}}var tc=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Bs;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>vs(e,o,Us())));throw Go(n,a?.callee??t),n}return s.value};return t},nc=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>vs(e,o,Us())));throw Go(n,a?.callee??t),n}return s.value};return t},rc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Bs;return a.issues.length?ic(e,a.issues,i):{success:!0,data:a.value}};function ic(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>vs(e,n,Us()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var ac=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?ic(e,a.issues,i):{success:!0,data:a.value}},oc=Symbol.for(`zod.compile.invalid`),sc=Symbol.for(`zod.compile.fallback`),cc=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==oc)return!0;if(r.definite===!0&&n===void 0)return!1}return lc(e,t,n)});function lc(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[sc]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new Bs;return a.issues.length===0}var uc=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},dc=e=>{let t=tc(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,ec(n,a))};return n},fc=e=>{let t=tc(e),n=(e,r,i,a)=>t(e,r,i,ec(n,a));return n},pc=e=>{let t=nc(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,ec(n,a))};return n},mc=e=>{let t=nc(e),n=async(e,r,i,a)=>await t(e,r,i,ec(n,a));return n},hc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return rc(e)(t,n,i)},gc=e=>(t,n,r)=>rc(e)(t,n,r),_c=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ac(e)(t,n,i)},vc=e=>async(t,n,r)=>ac(e)(t,n,r),yc=/^[cC][0-9a-z]{6,}$/,bc=/^[0-9a-z]+$/,xc=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Sc=/^[0-9a-vA-V]{20}$/,Cc=/^[A-Za-z0-9]{27}$/,wc=/^[a-zA-Z0-9_-]{21}$/;function Tc(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Ec=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Oc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,kc=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ac=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function jc(){return new RegExp(Ac,`u`)}var Mc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Nc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ic=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lc=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Rc=/^https?$/,zc=/^\+[1-9]\d{6,14}$/,Bc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Vc(e){return RegExp(`^${e}$`)}var Hc=Vc(Bc);function Uc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wc(e){return RegExp(`^${Uc(e)}$`)}function Gc(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Uc({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Uc({precision:e.precision})}`:n;return RegExp(`^${Bc}T(?:${r})$`)}var Kc=/^[\s\S]{0,}$/,qc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Jc=/^-?\d+$/,Yc=/^-?\d+(?:\.\d+)?$/,Xc=/^(?:true|false)$/i,Zc=/^null$/i,Qc=/^[^A-Z]*$/,$c=/^[^a-z]*$/,el=F(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tl=e=>{let t=e.value;return!Mo(t)&&t.length!==void 0},nl={number:`number`,bigint:`bigint`,object:`date`},rl=F(`$ZodCheckLessThan`,(e,t)=>{el.init(e,t);let n=nl[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:nl[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),il=F(`$ZodCheckGreaterThan`,(e,t)=>{el.init(e,t);let n=nl[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:nl[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),al=F(`$ZodCheckMultipleOf`,(e,t)=>{el.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Po(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ol=F(`$ZodCheckNumberFormat`,(e,t)=>{el.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ns[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),sl=F(`$ZodCheckMaxLength`,(e,t)=>{var n;el.init(e,t),(n=e._zod.def).when??(n.when=tl),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?bs(r):i)<=t.maximum)return;let a=xs(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cl=F(`$ZodCheckMinLength`,(e,t)=>{var n;el.init(e,t),(n=e._zod.def).when??(n.when=tl),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?bs(r):i)>=t.minimum)return;let a=xs(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ll=F(`$ZodCheckLengthEquals`,(e,t)=>{var n;el.init(e,t),(n=e._zod.def).when??(n.when=tl),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?bs(r):i;if(a===t.length)return;let o=xs(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ul=F(`$ZodCheckStringFormat`,(e,t)=>{var n,r;el.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),dl=F(`$ZodCheckRegex`,(e,t)=>{ul.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fl=F(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Qc,ul.init(e,t)}),pl=F(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=$c,ul.init(e,t)}),ml=F(`$ZodCheckIncludes`,(e,t)=>{el.init(e,t);let n=Qo(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hl=F(`$ZodCheckStartsWith`,(e,t)=>{el.init(e,t);let n=RegExp(`^${Qo(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),gl=F(`$ZodCheckEndsWith`,(e,t)=>{el.init(e,t);let n=RegExp(`.*${Qo(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),_l=F(`$ZodCheckOverwrite`,(e,t)=>{el.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),vl=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
5
|
-
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
6
|
-
`)}\n};`)(...Object.values(this.closed))}},yl={major:4,minor:6,patch:5},I=F(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=yl;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=ps(t),a;for(let o of n){if(o._zod.def.when){if(ms(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Bs;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(_s(t.issues,n,e),i||=ps(t,n))});else{if(t.issues.length===n)continue;_s(t.issues,n,e),i||=ps(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(ps(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Bs;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Bs;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Es(this,`~standard`,Sl(this))},set"~standard"(e){Ts(this,`~standard`,e)}}),bl=(e,t)=>e.issues.length?{issues:e.issues.map(e=>vs(e,t,Us()))}:{value:e.value};async function xl(e,t){let n={async:!0};return bl(await e._zod.run({value:t,issues:[]},n),n)}function Sl(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return bl(r,n)}catch{}return xl(e,t)},vendor:`zod`,version:1}}var Cl=F(`$ZodString`,(e,t)=>{I.init(e,t),e._zod.pattern=t.pattern??Kc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),L=F(`$ZodStringFormat`,(e,t)=>{ul.init(e,t),Cl.init(e,t)}),wl=F(`$ZodGUID`,(e,t)=>{t.pattern??=Dc,L.init(e,t)}),Tl=F(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Oc(e)}else t.pattern??=Oc();L.init(e,t)}),El=F(`$ZodEmail`,(e,t)=>{t.pattern??=kc,L.init(e,t)});function Dl(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Ol(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Dl(e)||2:kl(e,t)}function kl(e,t){if(!t.normalize&&t.protocol?.source===Rc.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var Al=/[\t\n\r]/g;function jl(e){return e.replace(Al,``)}function Ml(e,t){return t.lastIndex=0,t.test(e.hostname)}function Nl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Pl=F(`$ZodURL`,(e,t)=>{L.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=Ol(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=jl(r);return}t.hostname&&!Ml(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Nl(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:jl(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Fl=F(`$ZodEmoji`,(e,t)=>{t.pattern??=jc(),L.init(e,t)}),Il=F(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?wc:Tc(t.length),L.init(e,t)}),Ll=F(`$ZodCUID`,(e,t)=>{t.pattern??=yc,L.init(e,t)}),Rl=F(`$ZodCUID2`,(e,t)=>{t.pattern??=bc,L.init(e,t)}),zl=F(`$ZodULID`,(e,t)=>{t.pattern??=xc,L.init(e,t)}),Bl=F(`$ZodXID`,(e,t)=>{t.pattern??=Sc,L.init(e,t)}),Vl=F(`$ZodKSUID`,(e,t)=>{t.pattern??=Cc,L.init(e,t)}),Hl=F(`$ZodISODateTime`,(e,t)=>{t.pattern??=Gc(t),L.init(e,t)}),Ul=F(`$ZodISODate`,(e,t)=>{t.pattern??=Hc,L.init(e,t)}),Wl=F(`$ZodISOTime`,(e,t)=>{t.pattern??=Wc(t),L.init(e,t)}),Gl=F(`$ZodISODuration`,(e,t)=>{t.pattern??=Ec,L.init(e,t)}),Kl=F(`$ZodIPv4`,(e,t)=>{t.pattern??=Mc,L.init(e,t)}),ql=/^[0-9a-fA-F:.]+$/;function Jl(e){return ql.test(e)?Dl(`http://[${e}]`):!1}var Yl=F(`$ZodIPv6`,(e,t)=>{t.pattern??=Nc,L.init(e,t),e._zod.check=n=>{Jl(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Xl=F(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Pc,L.init(e,t)});function Zl(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Jl(n)}var Ql=F(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Fc,L.init(e,t),e._zod.check=n=>{Zl(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function $l(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var eu=/^[0-9a-zA-Z+/]*={0,2}$/,tu=F(`$ZodBase64`,(e,t)=>{t.pattern??=eu,L.init(e,t),e._zod.check=n=>{$l(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),nu=/^[A-Za-z0-9_-]*$/;function ru(e){if(!nu.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return $l(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var iu=F(`$ZodBase64URL`,(e,t)=>{t.pattern??=nu,L.init(e,t),e._zod.check=n=>{ru(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),au=F(`$ZodE164`,(e,t)=>{t.pattern??=zc,L.init(e,t)});function ou(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var su=F(`$ZodJWT`,(e,t)=>{L.init(e,t),e._zod.check=n=>{ou(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),cu=F(`$ZodNumber`,(e,t)=>{I.init(e,t),e._zod.pattern=Yc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),lu=F(`$ZodNumberFormat`,(e,t)=>{ol.init(e,t),cu.init(e,t)}),uu=F(`$ZodBoolean`,(e,t)=>{I.init(e,t),e._zod.pattern=Xc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),du=F(`$ZodNull`,(e,t)=>{I.init(e,t),e._zod.pattern=Zc,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),fu=F(`$ZodUnknown`,(e,t)=>{I.init(e,t),e._zod.parse=e=>e}),pu=F(`$ZodNever`,(e,t)=>{I.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function mu(e,t,n){e.issues.length&&t.issues.push(...hs(n,e.issues)),t.value[n]=e.value}var hu=F(`$ZodArray`,(e,t)=>{I.init(e,t);let n=Hs.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>mu(t,r,e)));else if(mu(c,r,e),s&&c.issues.length!==0&&ps(c))break}return o.length?Promise.all(o).then(()=>r):r}});function gu(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...hs(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var _u=[];function vu(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:_u,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=ts(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function yu(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(ps(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>gu(e,n,i,t,d,f))):gu(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var bu=F(`$ZodObject`,(e,t)=>{I.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=jo(()=>vu(t));P(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||Fo(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=Ko,o=t.catchall,s,c=Hs.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(ps(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>gu(n,t,e,r,a,o))):gu(s,t,e,r,a,o)}return o?yu(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),xu=F(`$ZodObjectJIT`,(e,t)=>{bu.init(e,t);let n=e._zod.parse,r=jo(()=>vu(t)),i=Hs.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new vl([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
7
|
-
let ${e}_ab = false;
|
|
8
|
-
for (let i = 0; i < ${e}.issues.length; i++) {
|
|
9
|
-
const iss = ${e}.issues[i];
|
|
10
|
-
iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
|
|
11
|
-
payload.issues.push(iss);
|
|
12
|
-
if (iss.continue !== true) ${e}_ab = true;
|
|
13
|
-
}
|
|
14
|
-
if (${e}_ab && ctx && ctx.abortEarly) {
|
|
15
|
-
payload.value = newResult;
|
|
16
|
-
return payload;
|
|
17
|
-
}`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:Uo(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
|
|
18
|
-
const ${n}_present = ${i};
|
|
19
|
-
if (!${n}.issues.length || ${n}_present) {
|
|
20
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (${e}) {
|
|
24
|
-
newResult[${r}] = ${n}.value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
`)}else f?(o.write(`
|
|
29
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
30
|
-
}
|
|
31
|
-
`),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
|
|
32
|
-
if (${n}.value !== undefined || ${i}) {
|
|
33
|
-
newResult[${r}] = ${n}.value;
|
|
34
|
-
}
|
|
35
|
-
`)):o.write(`
|
|
36
|
-
const ${n}_present = ${i};
|
|
37
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
38
|
-
}
|
|
39
|
-
if (!${n}_present && !${n}.issues.length) {
|
|
40
|
-
payload.issues.push({
|
|
41
|
-
code: "invalid_type",
|
|
42
|
-
expected: "nonoptional",
|
|
43
|
-
input: undefined,
|
|
44
|
-
path: [${r}]
|
|
45
|
-
});
|
|
46
|
-
if (ctx && ctx.abortEarly) {
|
|
47
|
-
payload.value = newResult;
|
|
48
|
-
return payload;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (${n}_present) {
|
|
53
|
-
newResult[${r}] = ${n}.value;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Ko,c=!Hs.jitless,l=c&&qo.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?yu([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Su(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ps(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>vs(e,r,Us())))}),t)}var Cu=F(`$ZodUnion`,(e,t)=>{I.init(e,t),P(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),P(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),P(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),P(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>No(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Su(t,r,e,i)):Su(o,r,e,i)}});function wu(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Tu=F(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Cu.init(e,t);let n=e._zod.parse;P(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||Fo(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=Io(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=jo(()=>wu(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Ko(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Eu=F(`$ZodIntersection`,(e,t)=>{I.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ou(e,t,n)):Ou(e,i,a)}});function Du(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Jo(e)&&Jo(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Du(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Du(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ou(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Du(t.value,n.value);if(!c.valid){if(ps(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var ku=F(`$ZodRecord`,(e,t)=>{I.init(e,t);let n=Hs.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Jo(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>vs(e,i,Us())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...hs(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...hs(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&Yc.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>vs(e,i,Us())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...hs(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...hs(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Au=F(`$ZodEnum`,(e,t)=>{I.init(e,t);let n=Do(t.entries),r=new Set(n);e._zod.values=r,P(e,`pattern`,e=>{let t=Do(e.def.entries).filter(e=>Xo.has(typeof e));return RegExp(t.length?`^(${t.map(e=>Qo(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ju=F(`$ZodLiteral`,(e,t)=>{I.init(e,t);let n=new Set(t.values);e._zod.values=n,P(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?Qo(e):e?Qo(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Mu=F(`$ZodTransform`,(e,t)=>{I.init(e,t),e._zod.optin=`optional`,Hs.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Vs(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Bs;return n.value=i,n}});function Nu(e,t){return e.value=t.issues.length?void 0:t.value,e}var Pu=F(`$ZodOptional`,(e,t)=>{I.init(e,t),P(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,P(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),P(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${No(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Nu(e,t)):Nu(e,r)}return t.innerType._zod.run(e,n)}}),Fu=F(`$ZodExactOptional`,(e,t)=>{Pu.init(e,t),P(e,`values`,e=>e.def.innerType._zod.values),P(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Iu=F(`$ZodNullable`,(e,t)=>{I.init(e,t),P(e,`optin`,e=>e.def.innerType._zod.optin),P(e,`optout`,e=>e.def.innerType._zod.optout),P(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${No(t.source)}|null)$`):void 0}),P(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Lu=F(`$ZodDefault`,(e,t)=>{I.init(e,t),e._zod.optin=`defaulted`,P(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ru(e,t)):Ru(r,t)}});function Ru(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zu=F(`$ZodPrefault`,(e,t)=>{I.init(e,t),e._zod.optin=`defaulted`,P(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Bu=F(`$ZodNonOptional`,(e,t)=>{I.init(e,t),P(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Vu(t,e)):Vu(i,e)}});function Vu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Hu(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>vs(e,r,Us()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Uu=F(`$ZodCatch`,(e,t)=>{I.init(e,t),P(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),P(e,`optout`,e=>e.def.innerType._zod.optout),P(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Hu(e,r,t,n)):Hu(e,r,t,n)}}),Wu=F(`$ZodPipe`,(e,t)=>{I.init(e,t),P(e,`values`,e=>e.def.in._zod.values),P(e,`optin`,e=>e.def.in._zod.optin),P(e,`optout`,e=>e.def.out._zod.optout),P(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Gu(e,t.in,n)):Gu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Gu(e,t.out,n)):Gu(r,t.out,n)}});function Gu(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ku=F(`$ZodReadonly`,(e,t)=>{I.init(e,t),P(e,`propValues`,e=>e.def.innerType._zod.propValues),P(e,`values`,e=>e.def.innerType._zod.values),P(e,`optin`,e=>e.def.innerType?._zod?.optin),P(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(qu):qu(r)}});function qu(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Ju(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes(`int`),i,a;for(let e of t.checks??[]){let t=e._zod.def;t.pattern&&(n=t.pattern),r||=!!t.format?.includes(`int`);let o=t.minimum??t.length,s=t.maximum??t.length;o!==void 0&&(i===void 0||o>i)&&(i=o),s!==void 0&&(a===void 0||s<a)&&(a=s)}if(n)return n.source;if(i!==void 0&&a!==void 0&&i>a)return`(?!)`;if(i!==void 0||a!==void 0)return qc({minimum:i,maximum:a}).source;let o=e._zod.pattern;return(r&&o===Yc?Jc:o)?.source}function Yu(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let e=r._zod.pattern?.source,t=Yu(r);return n&&e&&t&&t!==e?n.replace(No(e),()=>No(t)):n}if(t.options){let e=t.options.map(Yu);if(e.every(Boolean))return`^(${e.map(e=>No(e)).join(`|`)})$`}return Ju(e)}var Xu=F(`$ZodTemplateLiteral`,(e,t)=>{I.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){let t=Yu(e);if(!t)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);n.push(No(t))}else if(e===null||Zo.has(typeof e))n.push(Qo(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),Zu=F(`$ZodCustom`,(e,t)=>{el.init(e,t),I.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Qu(t,n,r,e));Qu(i,n,r,e)}});function Qu(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Cs(e))}}var $u=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},ed=`~memo`,td=[];function nd(e){return typeof e==`object`&&!!e}function rd(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var id=new WeakMap,ad=0,od=1,sd=2;function cd(e,t,n){let r=id.get(e);if(r!==void 0)return r?sd:ad;if(t.has(e))return sd;t.add(e);let i=ad,a=e=>{if(i!==sd&&e?._zod){let r=cd(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=ad;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?od:o.value?._zod?cd(o.value,t,n):ad;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Io(c);s(e?o(e,!0):od),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?cd(r,t,!1):od);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),ld(e,i)}function ld(e,t){return t!==od&&id.set(e,t===sd),t}function ud(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var dd,fd=[],pd={alloc(e,t,n){let r=dd;if(!r)return n;dd=void 0;let i={value:n,issues:null};return r.set(t.value,i),fd.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&hd(n,e.value))throw new $u;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=cd(e,new Set,!1);if(i===ad)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===sd||r?n=!0:r=!0}let l=s.value;if(!nd(l))return t(s,c);let u=c[ed];u||(u={buckets:new WeakMap,backEdges:void 0},c[ed]=u);let d;i===c?d=a:(d=ud(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...rd(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;dd=d;let p=fd.length,m=t(s,c);dd=void 0;let h=fd.length>p?fd.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?rd(e.issues):td),e)):(h&&(h.issues=m.issues.length?rd(m.issues):td),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function md(){return pd}function hd(e,t){let n=e[ed]?.backEdges;return n!==void 0&&nd(t)&&n.has(t)}var gd=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Ss(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${es(e.values[0])}`:`Invalid option: expected one of ${Oo(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Oo(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function _d(){return{localeError:gd()}}var vd,yd=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function bd(){return new yd}(vd=globalThis).__zod_globalRegistry??(vd.__zod_globalRegistry=bd());var xd=globalThis.__zod_globalRegistry;function Sd(e){return e.checks&&=[...e.checks],e}function Cd(e,t){return new e(Sd({type:`string`,...N(t)}))}function wd(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...N(t)})}function Td(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...N(t)})}function Ed(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...N(t)})}function Dd(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...N(t)})}function Od(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...N(t)})}function kd(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...N(t)})}function Ad(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...N(t)})}function jd(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...N(t)})}function Md(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...N(t)})}function Nd(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...N(t)})}function Pd(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...N(t)})}function Fd(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...N(t)})}function Id(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...N(t)})}function Ld(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...N(t)})}function Rd(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...N(t)})}function zd(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...N(t)})}function Bd(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...N(t)})}function Vd(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...N(t)})}function Hd(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...N(t)})}function Ud(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...N(t)})}function Wd(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...N(t)})}function Gd(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...N(t)})}function Kd(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...N(t)})}function qd(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...N(t)})}function Jd(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...N(t)})}function Yd(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...N(t)})}function Xd(e,t){return new e(Sd({type:`number`,checks:[],...N(t)}))}function Zd(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...N(t)})}function Qd(e,t){return new e({type:`boolean`,...N(t)})}function $d(e,t){return new e({type:`null`,...N(t)})}function ef(e){return new e({type:`unknown`})}function tf(e,t){return new e({type:`never`,...N(t)})}function nf(e,t){return new rl({check:`less_than`,...N(t),value:e,inclusive:!1})}function rf(e,t){return new rl({check:`less_than`,...N(t),value:e,inclusive:!0})}function af(e,t){return new il({check:`greater_than`,...N(t),value:e,inclusive:!1})}function of(e,t){return new il({check:`greater_than`,...N(t),value:e,inclusive:!0})}function sf(e,t){return new al({check:`multiple_of`,...N(t),value:e})}function cf(e,t){return new sl({check:`max_length`,...N(t),maximum:e})}function lf(e,t){return new cl({check:`min_length`,...N(t),minimum:e})}function uf(e,t){return new ll({check:`length_equals`,...N(t),length:e})}function df(e,t){return new dl({check:`string_format`,format:`regex`,...N(t),pattern:e})}function ff(e){return new fl({check:`string_format`,format:`lowercase`,...N(e)})}function pf(e){return new pl({check:`string_format`,format:`uppercase`,...N(e)})}function mf(e,t){return new ml({check:`string_format`,format:`includes`,...N(t),includes:e})}function hf(e,t){return new hl({check:`string_format`,format:`starts_with`,...N(t),prefix:e})}function gf(e,t){return new gl({check:`string_format`,format:`ends_with`,...N(t),suffix:e})}function _f(e){return new _l({check:`overwrite`,tx:e})}function vf(e){return _f(t=>t.normalize(e))}function yf(){return _f(e=>e.trim())}function bf(){return _f(e=>e.toLowerCase())}function xf(){return _f(e=>e.toUpperCase())}function Sf(){return _f(e=>Wo(e))}function Cf(e,t,n){return new e({type:`array`,element:t,...N(n)})}function wf(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...N(n)})}function Tf(e,t){let n=Ef(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Cs(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Cs(r))}},e(t.value,t)),t);return n}function Ef(e,t){let n=new el({check:`custom`,...N(t)});return n._zod.check=e,n}function Df(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Fo(e,t,n[t]);return e}function Of(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??xd,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function kf(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function R(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,R(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Df(o.schema,c),t.io===`input`&&zf(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Af(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function jf(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Af(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Af(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
57
|
-
|
|
58
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Mf(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Mf(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Nf=new Set([`type`,`properties`,`required`,`additionalProperties`]),Pf=[`oneOf`,`anyOf`];function Ff(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function If(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Nf.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Ff(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Fo(n,r,e.length===1?e[0]:If(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Ff(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Lf(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Nf)if(t in e)return;let n=t.filter(e=>Pf.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=If(t);else{let e=n[0],i=Pf.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>If([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Df(e,r))}function Rf(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Df(i,s),Df(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Mf(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Lf(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Df(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,Fo(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Vf(t,`input`,e.processors),output:Vf(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function zf(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return zf(r.element,n);if(r.type===`set`)return zf(r.valueType,n);if(r.type===`lazy`)return zf(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return zf(r.innerType,n);if(r.type===`intersection`)return zf(r.left,n)||zf(r.right,n);if(r.type===`record`||r.type===`map`)return zf(r.keyType,n)||zf(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:zf(r.in,n)||zf(r.out,n);if(r.type===`object`){for(let e in r.shape)if(zf(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(zf(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(zf(e,n))return!0;return!!(r.rest&&zf(r.rest,n))}return!1}var Bf=(e,t={})=>n=>{let r=Of({...n,processors:t});return R(e,r),jf(r,e),Rf(r,e)},Vf=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Of({...i??{},target:a,io:t,processors:n});return R(e,o),jf(o,e),Rf(o,e)},Hf=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Uf=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Wf=(e,t)=>{Hf(e,`minimum`,t),Uf(e,`maximum`,t)},Gf=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Kf=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},qf=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Jf=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Yf=(e,t)=>Hf(e,`minimum`,t.minimum),Xf=(e,t)=>Uf(e,`maximum`,t.maximum),Zf=e=>(t,n)=>{Jf(t,n.format);let[r,i]=e[n.format];Hf(t,`minimum`,r),Uf(t,`maximum`,i)},Qf={greater_than:(e,t)=>Hf(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Uf(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Gf(e,t.value),number_format:Zf(ns),bigint_format:Zf(rs),min_length:Yf,max_length:Xf,length_equals:(e,t)=>Wf(e,t.length),min_size:Yf,max_size:Xf,size_equals:(e,t)=>Wf(e,t.size),string_format:(e,t)=>{Jf(e,t.format),t.pattern&&Kf(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>qf(e,t.mime)};function $f(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Qf[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Hf(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Hf(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Uf(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Uf(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Gf(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&qf(t,i.mime);for(let e of i.patterns??[])Kf(t,e);return t}var ep={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},tp=new Map([[eu,Ic],[nu,Lc]]),np=e=>tp.get(e)??e,rp=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=$f(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=ep[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(np);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ip=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=$f(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):kf(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},ap=(e,t,n,r)=>{n.type=`boolean`},op=(e,t,n,r)=>{kf(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},sp=(e,t,n,r)=>{kf(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},cp=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},lp=(e,t,n,r)=>{kf(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},up=(e,t,n,r)=>{kf(e,t,n,r,`Void cannot be represented in JSON Schema`)},dp=(e,t,n,r)=>{n.not={}},fp=(e,t,n,r)=>{},pp=(e,t,n,r)=>{},mp=(e,t,n,r)=>{kf(e,t,n,r,`Date cannot be represented in JSON Schema`)},hp=(e,t,n,r)=>{let i=e._zod.def,a=Do(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},gp=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(kf(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(kf(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},_p=(e,t,n,r)=>{kf(e,t,n,r,`NaN cannot be represented in JSON Schema`)},vp=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},yp=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=$f(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},bp=(e,t,n,r)=>{n.type=`boolean`},xp=(e,t,n,r)=>{kf(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Sp=(e,t,n,r)=>{kf(e,t,n,r,`Function types cannot be represented in JSON Schema`)},Cp=(e,t,n,r)=>{kf(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},wp=(e,t,n,r)=>{kf(e,t,n,r,`Map cannot be represented in JSON Schema`)},Tp=(e,t,n,r)=>{kf(e,t,n,r,`Set cannot be represented in JSON Schema`)},Ep=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=$f(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=R(a.element,t,{...r,path:[...r.path,`items`]})};function Dp(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Dp(t.out):t.type===`catch`?Dp(t.innerType):e._zod.optin}var Op=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&kf(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Fo(i.properties,e,R(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Dp(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=R(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},kp=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>R(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Ap=(e,t,n,r)=>{let i=e._zod.def,a=R(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=R(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},jp=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>R(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?R(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?Dp(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=$f(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function Mp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Mp(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Mp(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Yc:Jc).source),p):p}var Np=new WeakMap;function Pp(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of Np.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Mp(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var Fp=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=$f(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=R(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Fo(i.patternProperties,np(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=R(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=Np.get(t);n||(n=[],Np.set(t,n),t.deferred.push(()=>Pp(t))),n.push(e)}i.additionalProperties=R(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Dp(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},Ip=(e,t,n,r)=>{let i=e._zod.def,a=R(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Lp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Rp=Symbol();function zp(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(kf(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Rp):JSON.parse(o)}var Bp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=zp(i.defaultValue,e,t,n,r);o!==Rp&&(n.default=o)},Vp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=zp(i.defaultValue,e,t,n,r);o!==Rp&&(n._prefault=o)},Hp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{kf(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Up=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;R(o,t,r);let s=t.seen.get(e);s.ref=o},Wp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Gp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Kp=(e,t,n,r)=>{let i=e._zod.def;R(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},qp={string:rp,number:ip,boolean:ap,bigint:op,symbol:sp,null:cp,undefined:lp,void:up,never:dp,any:fp,unknown:pp,date:mp,enum:hp,literal:gp,nan:_p,template_literal:vp,file:yp,success:bp,custom:xp,function:Sp,transform:Cp,map:wp,set:Tp,array:Ep,object:Op,union:kp,intersection:Ap,tuple:jp,record:Fp,nullable:Ip,nonoptional:Lp,default:Bp,prefault:Vp,catch:Hp,pipe:Up,readonly:Wp,promise:Gp,optional:Kp,lazy:(e,t,n,r)=>{let i=e._zod.innerType;R(i,t,r);let a=t.seen.get(e);a.ref=i}};function Jp(e,t){if(`_idmap`in e){let n=e,r=Of({...t,processors:qp}),i={};for(let e of n._idmap.entries()){let[t,n]=e;R(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;jf(r,n),Fo(a,t,Rf(r,n))}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=Of({...t,processors:qp});return R(e,n),jf(n,e),Rf(n,e)}var Yp=new WeakSet([Object.prototype,Error.prototype]);function Xp(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Zp=F(`ZodError`,(e,t)=>{Xs.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Yp.has(n)||(Yp.add(n),Xp(n,`format`,e=>t=>$s(e,t)),Xp(n,`flatten`,e=>t=>Qs(e,t)),Xp(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ko,2)}),Xp(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ko,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Qp=tc(Zp),$p=nc(Zp),em=rc(Zp),tm=ac(Zp),nm=dc(Zp),rm=fc(Zp),im=pc(Zp),am=mc(Zp),om=hc(Zp),sm=gc(Zp),cm=_c(Zp),lm=vc(Zp);function um(){Hs.localeError||Us(_d())}function dm(){Hs.memoizer||Us({memoizer:md()})}var z=F(`ZodType`,(e,t)=>(um(),I.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Ho(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return $o(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Mh(e,t))},superRefine(e,t){return this.check(Nh(e,t))},overwrite(e){return this.check(_f(e))},optional(){return fh(this)},exactOptional(){return mh(this)},nullable(){return gh(this)},nullish(){return fh(gh(this))},nonoptional(e){return Sh(this,e)},array(){return H(this)},or(e){return $m([this,e])},and(e){return rh(this,e)},transform(e){return Eh(this,uh(e))},default(e){return vh(this,e)},prefault(e){return bh(this,e)},catch(e){return wh(this,e)},pipe(e){return Eh(this,e)},readonly(){return Oh(this)},describe(e){let t=this.clone();return xd.add(t,{description:e}),t},meta(...e){if(e.length===0)return xd.get(this);let t=this.clone();return xd.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Es(this,`~standard`,{...Sl(this),jsonSchema:{input:Vf(this,`input`),output:Vf(this,`output`)}})},set"~standard"(e){Ts(this,`~standard`,e)},parse:function e(t,n){return Qp(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $p(this,t,n,{callee:e})},safeParse(e,t){return em(this,e,t)},async safeParseAsync(e,t){return tm(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Ts(this,`spa`,e)},validate(e,t){return cc(this,e,t)},validateAsync(e,t){return uc(this,e,t)},encode:function e(t,n){return nm(this,t,n,{callee:e})},decode:function e(t,n){return rm(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await im(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await am(this,t,n,{callee:e})},safeEncode(e,t){return om(this,e,t)},safeDecode(e,t){return sm(this,e,t)},async safeEncodeAsync(e,t){return cm(this,e,t)},async safeDecodeAsync(e,t){return lm(this,e,t)},toJSONSchema(e){return Bf(this,{})(e)},get description(){return xd.get(this)?.description},get _def(){return this._zod.def}}),fm=F(`_ZodString`,(e,t)=>{Cl.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rp(e,t,n,r)},Ds({format:e=>$f(e).format??null,minLength:e=>$f(e).minimum??null,maxLength:e=>$f(e).maximum??null},{regex(...e){return this.check(df(...e))},includes(...e){return this.check(mf(...e))},startsWith(...e){return this.check(hf(...e))},endsWith(...e){return this.check(gf(...e))},min(...e){return this.check(lf(...e))},max(...e){return this.check(cf(...e))},length(...e){return this.check(uf(...e))},nonempty(...e){return this.check(lf(1,...e))},lowercase(e){return this.check(ff(e))},uppercase(e){return this.check(pf(e))},trim(){return this.check(yf())},normalize(...e){return this.check(vf(...e))},toLowerCase(){return this.check(bf())},toUpperCase(){return this.check(xf())},slugify(){return this.check(Sf())}})),pm=F(`ZodString`,(e,t)=>{Cl.init(e,t),fm.init(e,t)},{email(e){return this.check(wd(ym,e))},url(e){return this.check(Ad(Sm,e))},jwt(e){return this.check(Gd(Lm,e))},emoji(e){return this.check(jd(Cm,e))},guid(e){return this.check(Td(bm,e))},uuid(e){return this.check(Ed(xm,e))},uuidv4(e){return this.check(Dd(xm,e))},uuidv6(e){return this.check(Od(xm,e))},uuidv7(e){return this.check(kd(xm,e))},nanoid(e){return this.check(Md(wm,e))},cuid(e){return this.check(Nd(Tm,e))},cuid2(e){return this.check(Pd(Em,e))},ulid(e){return this.check(Fd(Dm,e))},base64(e){return this.check(Hd(Pm,e))},base64url(e){return this.check(Ud(Fm,e))},xid(e){return this.check(Id(Om,e))},ksuid(e){return this.check(Ld(km,e))},ipv4(e){return this.check(Rd(Am,e))},ipv6(e){return this.check(zd(jm,e))},cidrv4(e){return this.check(Bd(Mm,e))},cidrv6(e){return this.check(Vd(Nm,e))},e164(e){return this.check(Wd(Im,e))},datetime(e){return this.check(Kd(hm,e))},date(e){return this.check(qd(gm,e))},time(e){return this.check(Jd(_m,e))},duration(e){return this.check(Yd(vm,e))}});function B(e){return Cd(pm,e)}var mm=F(`ZodStringFormat`,(e,t)=>{L.init(e,t),fm.init(e,t)}),hm=F(`ZodISODateTime`,(e,t)=>{Hl.init(e,t),mm.init(e,t)}),gm=F(`ZodISODate`,(e,t)=>{Ul.init(e,t),mm.init(e,t)}),_m=F(`ZodISOTime`,(e,t)=>{Wl.init(e,t),mm.init(e,t)}),vm=F(`ZodISODuration`,(e,t)=>{Gl.init(e,t),mm.init(e,t)}),ym=F(`ZodEmail`,(e,t)=>{El.init(e,t),mm.init(e,t)}),bm=F(`ZodGUID`,(e,t)=>{wl.init(e,t),mm.init(e,t)}),xm=F(`ZodUUID`,(e,t)=>{Tl.init(e,t),mm.init(e,t)}),Sm=F(`ZodURL`,(e,t)=>{Pl.init(e,t),mm.init(e,t)}),Cm=F(`ZodEmoji`,(e,t)=>{Fl.init(e,t),mm.init(e,t)}),wm=F(`ZodNanoID`,(e,t)=>{Il.init(e,t),mm.init(e,t)}),Tm=F(`ZodCUID`,(e,t)=>{Ll.init(e,t),mm.init(e,t)}),Em=F(`ZodCUID2`,(e,t)=>{Rl.init(e,t),mm.init(e,t)}),Dm=F(`ZodULID`,(e,t)=>{zl.init(e,t),mm.init(e,t)}),Om=F(`ZodXID`,(e,t)=>{Bl.init(e,t),mm.init(e,t)}),km=F(`ZodKSUID`,(e,t)=>{Vl.init(e,t),mm.init(e,t)}),Am=F(`ZodIPv4`,(e,t)=>{Kl.init(e,t),mm.init(e,t)}),jm=F(`ZodIPv6`,(e,t)=>{Yl.init(e,t),mm.init(e,t)}),Mm=F(`ZodCIDRv4`,(e,t)=>{Xl.init(e,t),mm.init(e,t)}),Nm=F(`ZodCIDRv6`,(e,t)=>{Ql.init(e,t),mm.init(e,t)}),Pm=F(`ZodBase64`,(e,t)=>{tu.init(e,t),mm.init(e,t)}),Fm=F(`ZodBase64URL`,(e,t)=>{iu.init(e,t),mm.init(e,t)}),Im=F(`ZodE164`,(e,t)=>{au.init(e,t),mm.init(e,t)}),Lm=F(`ZodJWT`,(e,t)=>{su.init(e,t),mm.init(e,t)}),Rm=F(`ZodNumber`,(e,t)=>{cu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ip(e,t,n,r),e.isFinite=!0},Ds({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=$f(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=$f(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=$f(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>$f(e).format??null},{gt(e,t){return this.check(af(e,t))},gte(e,t){return this.check(of(e,t))},min(e,t){return this.check(of(e,t))},lt(e,t){return this.check(nf(e,t))},lte(e,t){return this.check(rf(e,t))},max(e,t){return this.check(rf(e,t))},int(e){return this.check(Vm(e))},safe(e){return this.check(Vm(e))},positive(e){return this.check(af(0,e))},nonnegative(e){return this.check(of(0,e))},negative(e){return this.check(nf(0,e))},nonpositive(e){return this.check(rf(0,e))},multipleOf(e,t){return this.check(sf(e,t))},step(e,t){return this.check(sf(e,t))},finite(){return this}}));function zm(e){return Xd(Rm,e)}var Bm=F(`ZodNumberFormat`,(e,t)=>{lu.init(e,t),Rm.init(e,t)});function Vm(e){return Zd(Bm,e)}var Hm=F(`ZodBoolean`,(e,t)=>{uu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ap(e,t,n,r)});function V(e){return Qd(Hm,e)}var Um=F(`ZodNull`,(e,t)=>{du.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cp(e,t,n,r)});function Wm(e){return $d(Um,e)}var Gm=F(`ZodUnknown`,(e,t)=>{fu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Km(){return ef(Gm)}var qm=F(`ZodNever`,(e,t)=>{pu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dp(e,t,n,r)});function Jm(e){return tf(qm,e)}var Ym=F(`ZodArray`,(e,t)=>{dm(),hu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ep(e,t,n,r),e.element=t.element},{min(e,t){return this.check(lf(e,t))},nonempty(e){return this.check(lf(1,e))},max(e,t){return this.check(cf(e,t))},length(e,t){return this.check(uf(e,t))},unwrap(){return this.element}});function H(e,t){return Cf(Ym,e,t)}var Xm=F(`ZodObject`,(e,t)=>{dm(),xu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Op(e,t,n,r),Ns(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return W(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Ho(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Ho(this._zod.def,{catchall:Km()}))},loose(){return this.clone(Ho(this._zod.def,{catchall:Km()}))},strict(){return this.clone(Ho(this._zod.def,{catchall:Jm()}))},strip(){return this.clone(Ho(this._zod.def,{catchall:void 0}))},extend(e){return ss(this,e)},safeExtend(e){return ls(this,e)},merge(e){return us(this,e)},pick(e){return is(this,e)},omit(e){return os(this,e)},partial(...e){return ds(dh,this,e[0])},exactPartial(...e){return ds(ph,this,e[0],`exactPartial`)},required(...e){return fs(xh,this,e[0])}});function U(e,t){return new Xm({type:`object`,shape:e??{},...N(t)})}function Zm(e,t){return new Xm({type:`object`,shape:e,catchall:Km(),...N(t)})}var Qm=F(`ZodUnion`,(e,t)=>{Cu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kp(e,t,n,r),e.options=t.options});function $m(e,t){return new Qm({type:`union`,options:e,...N(t)})}var eh=F(`ZodDiscriminatedUnion`,(e,t)=>{Qm.init(e,t),Tu.init(e,t)});function th(e,t,n){return new eh({type:`union`,options:t,discriminator:e,...N(n)})}var nh=F(`ZodIntersection`,(e,t)=>{Eu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ap(e,t,n,r)});function rh(e,t){return new nh({type:`intersection`,left:e,right:t})}var ih=F(`ZodRecord`,(e,t)=>{dm(),ku.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fp(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function ah(e,t,n){return!t||!t._zod?new ih({type:`record`,keyType:B(),valueType:e,...N(t)}):new ih({type:`record`,keyType:e,valueType:t,...N(n)})}var oh=F(`ZodEnum`,(e,t)=>{Au.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hp(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new oh({...t,checks:[],...N(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new oh({...t,checks:[],...N(r),entries:i})}});function W(e,t){return new oh({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...N(t)})}var sh=F(`ZodLiteral`,(e,t)=>{ju.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gp(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ch(e,t){return new sh({type:`literal`,values:Array.isArray(e)?e:[e],...N(t)})}var lh=F(`ZodTransform`,(e,t)=>{dm(),Mu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cp(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Vs(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Cs(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Cs(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function uh(e){return new lh({type:`transform`,transform:e})}var dh=F(`ZodOptional`,(e,t)=>{Pu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function fh(e){return new dh({type:`optional`,innerType:e})}var ph=F(`ZodExactOptional`,(e,t)=>{Fu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mh(e){return new ph({type:`optional`,innerType:e})}var hh=F(`ZodNullable`,(e,t)=>{Iu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ip(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gh(e){return new hh({type:`nullable`,innerType:e})}var _h=F(`ZodDefault`,(e,t)=>{Lu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vh(e,t){return new _h({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Yo(t)}})}var yh=F(`ZodPrefault`,(e,t)=>{zu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bh(e,t){return new yh({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Yo(t)}})}var xh=F(`ZodNonOptional`,(e,t)=>{Bu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Sh(e,t){return new xh({type:`nonoptional`,innerType:e,...N(t)})}var Ch=F(`ZodCatch`,(e,t)=>{Uu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wh(e,t){return new Ch({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Fs(t)})}var Th=F(`ZodPipe`,(e,t)=>{Wu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Up(e,t,n,r),e.in=t.in,e.out=t.out});function Eh(e,t){return new Th({type:`pipe`,in:e,out:t})}var Dh=F(`ZodReadonly`,(e,t)=>{Ku.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Oh(e){return new Dh({type:`readonly`,innerType:e})}var kh=F(`ZodTemplateLiteral`,(e,t)=>{Xu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vp(e,t,n,r)});function Ah(e,t){return new kh({type:`template_literal`,parts:e,...N(t)})}var jh=F(`ZodCustom`,(e,t)=>{Zu.init(e,t),z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xp(e,t,n,r)});function Mh(e,t={}){return wf(jh,e,t)}function Nh(e,t){return Tf(e,t)}var Ph=U({description:B().max(1024).optional(),edit:W([`inline`,`popout`]).optional(),id:B().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/,`column id must be a lowercase slug (a-z, 0-9, _)`),name:B().min(1).max(128),required:V().optional()}),Fh=W([`integer`,`decimal`,`percent`,`currency`]),Ih=U({currency:B().regex(/^[A-Z]{3}$/,`currency must be an ISO 4217 code`).optional(),fractionDigits:zm().int().min(0).max(8).optional(),grouping:V().optional(),style:Fh}).superRefine((e,t)=>{e.style===`currency`&&!e.currency&&t.addIssue({code:`custom`,message:`currency style needs an ISO 4217 code`,path:[`currency`]}),e.style!==`currency`&&e.currency&&t.addIssue({code:`custom`,message:`currency is only valid on currency columns`,path:[`currency`]})}),Lh=W([`date`,`datetime`,`time`]),Rh=W([`short`,`medium`,`long`,`iso`]),zh=W([`hours`,`minutes`,`seconds`]),Bh=U({dateStyle:Rh.optional(),kind:Lh,timePrecision:zh.optional()}),Vh=W([`milliseconds`,`seconds`,`minutes`,`hours`,`days`]),Hh=W([`hms`,`hours`,`minutes`,`decimal-hours`,`iso`]),Uh=U({display:Hh,inputUnit:Vh}),Wh=U({id:B().min(1).max(64),label:B().min(1).max(128)}),Gh=U({allowCustom:V(),multiple:V().optional(),options:H(Wh).max(200)}),Kh=U({style:W([`single`,`multiline`,`markdown`]).default(`single`)}),qh=H(th(`type`,[Ph.extend({format:Kh.optional(),type:ch(`text`)}),Ph.extend({format:Ih,type:ch(`number`)}),Ph.extend({format:Bh,type:ch(`date`)}),Ph.extend({format:Uh,type:ch(`duration`)}),Ph.extend({format:Gh,type:ch(`select`)}),Ph.extend({type:ch(`boolean`)})])).min(1).max(64).superRefine((e,t)=>{let n=new Set;for(let r=0;r<e.length;r++){let i=e[r]?.id;i&&(n.has(i)&&t.addIssue({code:`custom`,message:`duplicate column id "${i}"`,path:[r,`id`]}),n.add(i))}});U({description:B().optional(),edit:W([`inline`,`popout`]).optional(),format:U({allowCustom:V().optional(),currency:B().optional(),dateStyle:W([`short`,`medium`,`long`,`iso`]).optional(),display:Hh.optional(),fractionDigits:zm().int().optional(),grouping:V().optional(),inputUnit:Vh.optional(),kind:Lh.optional(),multiple:V().optional(),options:H(Wh).optional(),style:W([`single`,`multiline`,`markdown`,`integer`,`decimal`,`percent`,`currency`]).optional(),timePrecision:zh.optional()}).optional(),id:B(),name:B(),required:V().optional(),type:W([`text`,`number`,`date`,`duration`,`select`,`boolean`])}),U({table_id:B().uuid()});var Jh=36e5,Yh=6e4,Xh=1e3;function Zh(e){return e.fractionDigits===void 0?e.style===`integer`?0:2:e.fractionDigits}function Qh(e,t,n=`en`){if(typeof e!=`number`||!Number.isFinite(e))return``;let r=Zh(t),i=t.grouping!==!1;return t.style===`percent`?new Intl.NumberFormat(n,{maximumFractionDigits:r,minimumFractionDigits:r,style:`percent`,useGrouping:i}).format(e):t.style===`currency`&&t.currency?new Intl.NumberFormat(n,{currency:t.currency,maximumFractionDigits:r,minimumFractionDigits:r,style:`currency`,useGrouping:i}).format(e):new Intl.NumberFormat(n,{maximumFractionDigits:r,minimumFractionDigits:r,useGrouping:i}).format(e)}function $h(e,t,n=`en`){if(typeof e!=`string`||e.length===0)return``;if(t.kind===`time`)return eg(e,t.timePrecision??`minutes`);if(t.dateStyle===`iso`)return t.kind===`date`?e.slice(0,10):e;let r=t.kind===`date`?new Date(`${e}T00:00:00`):new Date(e);if(Number.isNaN(r.getTime()))return e;let i=t.dateStyle??`medium`;if(t.kind===`date`)return new Intl.DateTimeFormat(n,{dateStyle:i}).format(r);let a=t.timePrecision??`minutes`;return new Intl.DateTimeFormat(n,{dateStyle:i,timeStyle:a===`hours`?`short`:`medium`}).format(r)}function eg(e,t){let[n=`0`,r=`00`,i=`00`]=e.split(`:`);return t===`hours`?`${n.padStart(2,`0`)}:00`:t===`minutes`?`${n.padStart(2,`0`)}:${r.padStart(2,`0`)}`:`${n.padStart(2,`0`)}:${r.padStart(2,`0`)}:${i.padStart(2,`0`)}`}function tg(e,t){if(typeof e!=`number`||!Number.isFinite(e))return``;let n=Math.max(0,Math.round(e));if(t.display===`iso`)return ng(n);if(t.display===`minutes`)return`${Math.round(n/Yh)} min`;if(t.display===`hours`)return`${(n/Jh).toFixed(2)} h`;if(t.display===`decimal-hours`)return(n/Jh).toFixed(2);let r=Math.floor(n/Jh),i=Math.floor(n%Jh/Yh),a=Math.floor(n%Yh/Xh);return`${r}:${String(i).padStart(2,`0`)}:${String(a).padStart(2,`0`)}`}function ng(e){let t=Math.floor(e/Jh),n=Math.floor(e%Jh/Yh),r=Math.floor(e%Yh/Xh);return`${t>=24?`P${Math.floor(t/24)}D`:`P`}T${t%24}H${n}M${r}S`}function rg(e,t,n=`en`){if(t==null)return``;switch(e.type){case`number`:return Qh(t,e.format,n);case`date`:return $h(t,e.format,n);case`duration`:return tg(t,e.format);case`boolean`:return t===!0?`true`:t===!1?`false`:``;case`select`:return ig(e,t);default:return String(t)}}function ig(e,t){let n=Array.isArray(t)?t:[t],r=e.format.options.reduce((e,t)=>(e[t.id]=t.label,e),{});return n.filter(e=>typeof e==`string`&&e.length>0).map(e=>r[e]??e).join(`, `)}var ag=B().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,40}$/,`keys are letters, digits and _ and start with a letter`),og={label:B().min(1).optional(),description:B().optional()},sg=[U({kind:ch(`text`),...og,long:V().optional()}),U({kind:ch(`number`),...og,unit:B().optional()}),U({kind:ch(`yesno`),...og,yes:B().optional(),no:B().optional()}),U({kind:ch(`choice`),...og,options:H(B().min(1)).min(2).max(40)}),U({kind:ch(`ref`),...og,to:ag})],cg=`text, number, yesno, choice, ref`;function lg(e){let t=e<4?lg(e+1):void 0,n=t?th(`kind`,[...sg,t],{error:`A list holds ${cg} or object.`}):th(`kind`,[...sg],{error:`A list this deep holds ${cg}: objects nest at most 4 deep.`}),r=U({kind:ch(`list`),...og,of:n}),i=th(`kind`,[...sg,r],{error:`"kind" is one of ${cg}, list.`});return U({kind:ch(`object`),...og,fields:ah(ag,i).refine(e=>Object.keys(e).length>0,{message:`An object has fields.`})})}function ug(e,t=[]){let n=[{shape:e,at:t}];for(let[r,i]of Object.entries(e.fields))i.kind===`list`&&i.of.kind===`object`&&n.push(...ug(i.of,[...t,`fields`,r,`of`]));return n}function dg(e,t){let n=e.fields[t];return n?.kind!==`list`||n.of.kind!==`object`?`"ref" to "${t}": that is no list of objects at the top of the schema.`:n.of.fields.id?.kind===`text`?null:`"ref" to "${t}": its entries need an "id" text field to be pointed at.`}var fg=lg(1).superRefine((e,t)=>{let n=ug(e),r=n.reduce((e,t)=>e+Object.keys(t.shape.fields).length,0);r>100&&t.addIssue({code:`custom`,message:`A schema has at most 100 keys in all; this one has ${r}.`});for(let r of n)for(let[n,i]of Object.entries(r.shape.fields)){let a=i.kind===`ref`?i:i.kind===`list`&&i.of.kind===`ref`?i.of:null,o=a?dg(e,a.to):null;o&&t.addIssue({code:`custom`,message:o,path:[...r.at,`fields`,n]})}});function pg(e){let t=e=>{let t=e.description?{description:e.description}:{};switch(e.kind){case`number`:return{kind:`number`,...t};case`list`:return{kind:`list`,...t,of:{kind:`text`}};case`yesno`:return{kind:`yesno`,...t};case`choice`:return{kind:`choice`,...t,options:e.options??[]};case`score`:return{kind:`score`,...t,options:e.options??[]};case`table`:return{kind:`table`,...t,...e.columns?.length?{columns:e.columns}:{}};default:return{kind:`text`,...t}}};return{kind:`object`,fields:Object.fromEntries(e.map(e=>[e.id,t(e)]))}}function mg(e){return Object.entries(e.fields).find(([e,t])=>e!==`id`&&t.kind===`text`&&!t.long)?.[0]}function hg(e,t){return t.label??e}function gg(e,t){let n=t.description??(t.label?``:e),r=t.kind===`number`&&t.unit?`in ${t.unit}`:t.kind===`score`?`lowest to highest`:t.kind===`ref`?`the id of an entry of "${t.to}"`:``;return(n&&r?`${n} (${r})`:n||r)||void 0}var _g=$m([B(),zm(),Wm()]);function vg(e,t=`data`){let n=gg(t,e),r={...e.label?{title:e.label}:{},...n?{description:n}:{}};switch(e.kind){case`text`:case`ref`:return B().meta(r);case`number`:return zm().meta(r);case`yesno`:return V().meta(r);case`choice`:case`score`:return W(e.options).meta(r);case`list`:return H(vg(e.of,t)).meta(r);case`object`:return U(Object.fromEntries(Object.entries(e.fields).map(([e,t])=>[e,vg(t,e)]))).meta(r);case`table`:return(e.columns?.length?H(U(Object.fromEntries(e.columns.map(e=>[e,_g])))):U({columns:H(B()),rows:H(H(_g))})).meta(r)}}function yg(e,t){let n=Jp(vg(e),{target:`draft-2020-12`});return t&&!e.label?{...n,title:t}:n}var bg=[`mail`],xg=H(Zm({id:B().regex(/^[a-zA-Z][a-zA-Z0-9_-]{0,40}$/,`ids are letters, digits, _ and -`),component:W([`Column`,`Text`,`List`,`Row`,`DetailGrid`,`Badge`,`Grid`,`Metric`,`Table`,`Image`,`BarChart`,`LineChart`,`DonutChart`,`Actions`,`Button`,`Tabs`,`Card`,`Fold`,`Group`,`Chips`,`Checklist`,`Steps`,`Link`,`Callout`]),children:$m([H(B()),U({path:B(),componentId:B()})]).optional()})).min(1).max(200),Sg=e=>!(!e||typeof e!=`object`||Array.isArray(e)||typeof e.path!=`string`);function Cg(e,t){let n=e;for(let e of t.split(`/`).slice(1)){if(typeof n!=`object`||!n)return;n=n[e.replace(/~1/g,`/`).replace(/~0/g,`~`)]}return n}function wg(e,t,n){return Sg(e)?Tg(e.path.startsWith(`/`)?Cg(t,e.path):n===void 0?void 0:Cg(n,`/${e.path.replace(/\./g,`/`)}`),e):e}function Tg(e,t){let n=e,r=t.map;if(r&&typeof r==`object`&&!Array.isArray(r)){let e=String(n);Object.hasOwn(r,e)&&(n=r[e])}return typeof t.format==`string`&&n!=null&&n!==``&&(n=t.format.replace(`{}`,Array.isArray(n)?n.join(`, `):String(n))),n}var Eg=[`round`,`drop`,`dome`,`flame`,`oval`,`bean`,`pebble`,`sprout`,`tower`,`wedge`],Dg=[`en`,`de`],Og={en:`English`,de:`Deutsch`},kg={en:`en-GB`,de:`de-DE`},Ag={en:`en-US`,de:`de-DE`};function jg(e){return typeof e==`string`&&Dg.includes(e)}function Mg(e){let t=e?.trim().toLowerCase().split(/[-_]/)[0];return jg(t)?t:null}var Ng={AT:`de`,BE:`nl`,BG:`bg`,CH:`de`,CY:`el`,CZ:`cs`,DE:`de`,DK:`da`,EE:`et`,ES:`es`,FI:`fi`,FR:`fr`,GB:`en`,GR:`el`,HR:`hr`,HU:`hu`,IE:`en`,IS:`is`,IT:`it`,LI:`de`,LT:`lt`,LU:`fr`,LV:`lv`,MC:`fr`,MT:`en`,NL:`nl`,NO:`nb`,PL:`pl`,PT:`pt`,RO:`ro`,RS:`sr`,SE:`sv`,SI:`sl`,SK:`sk`,SM:`it`,UA:`uk`,VA:`it`},Pg=[...new Set([`en`,`de`,...Object.values(Ng)])],Fg={"Europe/Amsterdam":`NL`,"Europe/Athens":`GR`,"Europe/Belgrade":`RS`,"Europe/Berlin":`DE`,"Europe/Bratislava":`SK`,"Europe/Brussels":`BE`,"Europe/Bucharest":`RO`,"Europe/Budapest":`HU`,"Europe/Busingen":`DE`,"Europe/Copenhagen":`DK`,"Europe/Dublin":`IE`,"Europe/Helsinki":`FI`,"Europe/Kiev":`UA`,"Europe/Kyiv":`UA`,"Europe/Lisbon":`PT`,"Europe/Ljubljana":`SI`,"Europe/London":`GB`,"Europe/Luxembourg":`LU`,"Europe/Madrid":`ES`,"Europe/Malta":`MT`,"Europe/Monaco":`MC`,"Europe/Oslo":`NO`,"Europe/Paris":`FR`,"Europe/Prague":`CZ`,"Europe/Riga":`LV`,"Europe/Rome":`IT`,"Europe/San_Marino":`SM`,"Europe/Sofia":`BG`,"Europe/Stockholm":`SE`,"Europe/Tallinn":`EE`,"Europe/Vaduz":`LI`,"Europe/Vatican":`VA`,"Europe/Vienna":`AT`,"Europe/Vilnius":`LT`,"Europe/Warsaw":`PL`,"Europe/Zagreb":`HR`,"Europe/Zurich":`CH`,"Atlantic/Canary":`ES`,"Atlantic/Madeira":`PT`,"Atlantic/Reykjavik":`IS`,"Asia/Nicosia":`CY`};function Ig(e,t){for(let t of e){let e=Mg(t);if(e&&e!==`en`)return e}let n=t?Fg[t]:void 0,r=n?Mg(Ng[n]):null;return r===`en`?null:r}var Lg=/^[a-z]{2,3}$/;function Rg(e){let t=e?.trim().toLowerCase().split(/[-_]/)[0]??``;return Lg.test(t)?t:null}function zg(e){if(!Lg.test(e))return!1;try{return!!new Intl.DisplayNames([`en`],{type:`language`,fallback:`none`}).of(e)}catch{return!1}}function Bg(e,t){for(let t of e){let e=Rg(t);if(e)return e}let n=t?Fg[t]:void 0;return n?Rg(Ng[n]):null}function Vg(e){if(jg(e))return Og[e];try{let t=new Intl.DisplayNames([e],{type:`language`}).of(e)??e;return t.charAt(0).toLocaleUpperCase(e)+t.slice(1)}catch{return e.toUpperCase()}}function Hg(e){return jg(e)?kg[e]:e}function Ug(e){return jg(e)?Ag[e]:e}var Wg=[`text`,`textarea`,`number`,`select`,`multiselect`,`date`,`email`,`url`,`toggle`,`color`,`image`,`file`,`items`,`connection`,`list`,`location`,`audio`,`signature`,`slot`],Gg={text:`typed`,textarea:`typed`,number:`typed`,date:`typed`,email:`typed`,url:`typed`,select:`tapped`,multiselect:`tapped`,slot:`tapped`,toggle:`tapped`,color:`value`,items:`value`,location:`value`,image:`device`,file:`device`,audio:`device`,signature:`device`,connection:`device`,list:`device`};function Kg(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let{lat:t,lng:n,label:r}=e;return typeof t==`number`&&typeof n==`number`||typeof r==`string`&&r.trim().length>0}function qg(e){return!!(e&&typeof e==`object`&&typeof e.asset==`string`&&e.asset)}var Jg=[`web_search`,`web_fetch`,`browser`,`sandbox`,`image`,`http`,`pages`],Yg=/^[a-z][a-z0-9-]{0,39}$/,Xg=/^[a-z][a-z0-9_]{0,39}$/;function Zg(e){let[t,n,...r]=e.split(`.`);return n!==void 0&&r.length===0&&Yg.test(t)&&Xg.test(n)?{plugin:t,tool:n}:null}var Qg=[`classifier`,`standard`,`high`,`highest`],$g=[...Qg,`image`,`video`,`audio`,`speech`],e_=[`low`,`medium`,`high`],t_=[`image`,`video`,`voice`,`document`,`dashboard`],n_=[`png`,`mp4`,`mp3`,`pdf`,`docx`,`html`,`md`,`txt`,`csv`,`xlsx`,`json`,`zip`],r_=[`1:1`,`16:9`,`9:16`,`4:5`,`3:2`,`2:3`],i_=[`720p`,`480p`],a_=B().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,40}$/,`ids are letters, digits and _ and start with a letter`),o_=U({id:a_,label:B().min(1),kind:W([`text`,`number`,`money`])}),s_=[`equals`,`notEquals`,`in`,`notEmpty`,`empty`,`gt`,`lt`,`contains`],c_=U({field:B(),op:W(s_),value:$m([B(),zm(),V(),H(B())]).optional()}),l_=$m([c_,H(c_).min(1)]),u_=U({label:B().min(1),value:B().optional(),image:B().optional(),subtitle:B().optional(),meta:B().optional(),link:B().optional()}),d_=U({id:a_,label:B().min(1),kind:W(Wg),required:V().optional(),placeholder:B().optional(),help:B().optional(),options:H(B()).optional(),default:$m([B(),zm(),V(),H(B())]).optional(),columns:H(o_).optional(),vat:U({rate:zm().optional(),field:B().optional()}).optional(),currency:B().optional(),multiple:V().optional(),min:zm().int().min(1).max(30).optional(),max:zm().int().min(1).max(30).optional(),camera:V().optional(),video:V().optional(),listen:V().optional(),scan:V().optional(),connection:B().optional(),list:B().optional(),prefill:B().optional(),when:l_.optional(),optionsFrom:B().optional(),cards:u_.optional(),ask:B().min(1).optional(),group:B().optional()}),f_=U({id:a_,instructions:B().min(1),optional:V().optional()}),p_=U({when:l_.optional(),ask:B().min(1).optional(),goto:B(),max:zm().int().min(1).max(50).optional()}).refine(e=>e.when===void 0||e.ask===void 0,{message:`A branch has "when" or "ask", not both.`}),m_={id:a_,title:B().min(1),description:B().optional(),next:H(p_).optional()},h_=U({id:a_,kind:W([`text`,`number`,`list`,`table`,`yesno`,`choice`,`score`]),description:B().optional(),columns:H(B().min(1)).optional(),options:H(B().min(1)).min(2).max(40).optional()}).refine(e=>e.kind!==`choice`&&e.kind!==`score`||!!e.options?.length,{message:`A choice or score field lists its options.`,path:[`options`]}).refine(e=>e.kind!==`score`||(e.options?.length??0)<=10,{message:`A score has at most ten levels.`,path:[`options`]}),g_=U({...m_,type:ch(`page`),fields:H(d_).min(1),groups:H(f_).max(6).optional(),cta:B().optional()}),__=Ah([B().regex(Yg),`.`,B().regex(Xg)]),v_=U({...m_,type:ch(`agent`),instructions:B().default(``),call:U({tool:__,input:ah(B(),Km()).default({})}).optional(),tools:H($m([W(Jg),__])).default([]),mcp:H(B()).optional(),connections:H(B()).optional(),output:U({format:W([`text`,`markdown`,`json`]),fields:H(h_).optional(),schema:fg.optional(),surface:$m([V(),xg]).optional()}).default({format:`markdown`}),model:W(Qg).optional(),effort:W(e_).optional(),each:B().optional(),working:B().optional()}),y_=U({...m_,type:ch(`generate`),asset:W(t_),prompt:B().min(1),options:U({aspectRatio:W(r_).optional(),duration:zm().optional(),resolution:W(i_).optional(),style:B().optional(),template:W([`invoice`,`offer`,`briefing`,`letter`,`report`,`free`]).optional()}).optional(),referenceImage:B().optional(),each:B().optional(),model:W(Qg).optional(),effort:W(e_).optional(),working:B().optional()}),b_=U({...m_,type:ch(`widget`),entry:B().min(1),data:ah(B(),B()).default({}),sample:B().optional(),layout:W([`fixed`,`page`]).optional(),size:U({width:zm().int().min(200).max(3840),height:zm().int().min(200).max(3840)}).optional(),video:V().optional(),working:B().optional()}),x_=[`16:9`,`9:16`,`1:1`],S_=U({...m_,type:ch(`film`),brief:B().min(1),skills:H(B().min(1)).max(12).default([`hyperframes`]),kit:B().optional(),inputs:ah(B(),B()).default({}),format:W(x_).default(`16:9`),seconds:zm().int().min(3).max(600).optional(),model:W(Qg).optional(),effort:W(e_).optional(),working:B().optional()}),C_=U({id:a_,description:B().min(1),components:xg,group:B().optional(),required:V().optional()}),w_=U({...m_,type:ch(`surface`),components:xg.optional(),candidates:H(C_).max(16).optional(),groups:H(f_).max(6).optional(),data:ah(B(),B()).default({}),working:B().optional()}).refine(e=>!!e.components!=!!e.candidates,{message:`A surface step has either "components" or "candidates".`});function T_(e,t){let n=new Set(t),r=e.filter(e=>n.has(e.id));return[{id:`root`,component:`Column`,children:r.map(e=>e.components[0]?.id??e.id)},...r.flatMap(e=>e.components)]}var E_=U({...m_,type:ch(`review`),show:H(B()).min(1),edit:V().optional(),regenerate:V().optional()}),D_=U({from:B(),label:B().optional(),formats:H(W(n_)).min(1)}),O_=th(`type`,[g_,v_,y_,b_,w_,S_,E_,U({...m_,type:ch(`result`),message:B().optional(),deliverables:H(D_)})]);function k_(e){let t=e.output.fields??[];return!e.call&&!e.output.schema&&e.model===`classifier`&&e.output.format===`json`&&t.length>0&&t.every(e=>e.kind===`yesno`||e.kind===`choice`||e.kind===`score`)&&!e.each&&e.tools.length===0&&!e.mcp?.length&&!e.connections?.length}function A_(e){return e.output.schema?e.output.schema:e.output.fields?.length?pg(e.output.fields):void 0}function j_(e){return A_(e)??{kind:`object`,fields:{data:{kind:`table`,description:`The result as a table`}}}}function M_(e){return Object.keys(A_(e)?.fields??{})}var N_=U({id:a_,title:B().min(1),description:B().optional(),columns:qh,key:B().optional(),check:U({file:B().optional(),status:B().optional()}).optional(),shared:V().optional()}),P_=U({id:a_,kind:W(bg).optional(),connector:B().optional(),actions:H(B()).max(200).optional(),policy:ah(B(),W([`allow`,`ask`])).optional(),title:B().optional(),description:B().optional()});U({version:ch(1).default(1),title:B().min(1),description:B().default(``),avatar:W(Eg).default(`round`),intro:B().optional(),lang:B().regex(/^[a-z]{2}$/).optional(),lists:H(N_).max(12).optional(),connections:H(P_).max(12).optional(),steps:H(O_).min(1)});function F_(e){if(e.type===`generate`)switch(e.asset){case`image`:return e.each?[`png`,`zip`]:[`png`];case`video`:return e.each?[`mp4`,`zip`]:[`mp4`];case`voice`:return[`mp3`];case`document`:return[`pdf`,`docx`,`html`,`md`,`png`];case`dashboard`:return[`html`,`pdf`,`png`]}return e.type===`film`?[`mp4`]:e.type===`widget`?e.video?[`mp4`,`png`]:[`html`,`png`,`pdf`,`mp4`,`json`]:e.type===`surface`?[`json`]:e.type===`agent`?e.output.format===`json`?e.output.schema?[`json`,`csv`,`xlsx`,`md`,`pdf`,`zip`]:[`json`,`csv`,`xlsx`,`md`,`zip`]:[`md`,`txt`,`docx`,`pdf`,`html`,`zip`]:[]}var I_=/^lists\.([a-zA-Z][a-zA-Z0-9_]*)$/;function L_(e){return e.match(I_)?.[1]??null}function R_(e){return e.trim().replace(/^\{\{\s*/,``).replace(/\s*\}\}$/,``)}var z_=/\{\{\s*([^}]+?)\s*\}\}/g;function B_(e){return[...e.matchAll(z_)].map(e=>e[1])}function V_(e){return e.when===void 0&&e.ask===void 0}function H_(e){return e==null||e===``||Array.isArray(e)&&e.length===0}function U_(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function W_(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e!=`string`||!e.trim())return null;let t=Number(e.replace(/\s/g,``).replace(`,`,`.`));return Number.isFinite(t)?t:null}function G_(e,t){let n=t[e.field];switch(e.op){case`empty`:return H_(n);case`notEmpty`:return!H_(n);case`equals`:return String(n)===String(e.value);case`notEquals`:return String(n)!==String(e.value);case`in`:return Array.isArray(e.value)&&e.value.map(String).includes(String(n));case`gt`:case`lt`:{let t=W_(n),r=W_(e.value);return t!==null&&r!==null&&(e.op===`gt`?t>r:t<r)}case`contains`:return Array.isArray(n)?n.map(String).includes(String(e.value)):typeof n==`string`&&e.value!==void 0&&n.toLowerCase().includes(String(e.value).toLowerCase())}}function K_(e,t){return U_(e).every(e=>G_(e,t))}function q_(e,t){return e.when!==void 0&&K_(e.when,t)}function J_(e){return!!(e.ask||e.group)}function Y_(e,t,n){let r={...t,...n},i=[];for(let t of e)K_(t.when,r)?i.push(t):delete r[t.id];return i}var X_=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;function Z_(e){let t=X_.exec(e.trim());if(!t)return null;let[,n,r,i,a,o]=t.map(Number),s=new Date(Date.UTC(n,r-1,i,a,o));return s.getUTCMonth()!==r-1||s.getUTCDate()!==i||a>23||o>59||!Number.isFinite(Date.parse(e))?null:{day:`${t[1]}-${t[2]}-${t[3]}`,time:`${t[4]}:${t[5]}`,wall:s}}function Q_(e,t=`en`){let n=Z_(e);if(!n)return e;let r=Hg(t);return`${n.wall.toLocaleDateString(r,{weekday:`long`,timeZone:`UTC`})}, ${n.wall.toLocaleDateString(r,{day:`numeric`,month:`long`,timeZone:`UTC`})}`}function $_(e,t,n){let r=Array.isArray(t)?t:[],i=(e.columns??[]).filter(e=>e.kind!==`text`),a=r.map(e=>{let t=i.length?i.reduce((t,n)=>t*ev(e[n.id]),1):0;return{...e,amount:tv(t)}}),o=tv(a.reduce((e,t)=>e+t.amount,0)),s=e.vat?.rate??0;if(e.vat?.field){let t=n[e.vat.field],r=Number.parseFloat(String(t??``).replace(`,`,`.`));Number.isFinite(r)&&(s=r)}let c=tv(o*s/100);return{rows:a,net:o,vatRate:s,vat:c,gross:tv(o+c),currency:e.currency??`EUR`}}function ev(e){let t=Number(typeof e==`string`?e.replace(/\s/g,``).replace(`,`,`.`):e);return Number.isFinite(t)?t:0}function tv(e){return Math.round(e*100)/100}var nv=new Map;function rv(e){let t=nv.get(e);return t||(t=new Intl.PluralRules(Hg(e)),nv.set(e,t)),t}function iv(e,t,n){return typeof e==`string`?e:typeof n==`number`?e[rv(t).select(n)]??e.other:e.other}function av(e,t){return typeof e==`number`?e.toLocaleString(Hg(t)):Array.isArray(e)?e.map(e=>av(e,t)).join(`, `):e}function ov(e,t,n){return e.replace(/\{(\w+)\}/g,(e,r)=>{let i=n?.[r];return i===void 0?e:av(i,t)})}function sv(e,t,n,r){let i=e[n][t]??e.en[t];return i===void 0?t:ov(iv(i,n,r?.count??r?.n),n,r)}function cv(e,t,n){return ov(iv(e,t,n?.count??n?.n),t,n)}var lv={entry:`Entry {n} of {total}`,deciding:`Deciding what to do next…`,choosingFields:`Choosing the right questions…`,batchDone:`{done} of {total} done`,editing:`Editing {n} of {total}`,filming:`Filming {n} of {total}`,clipsRendering:{one:`Rendering {count} clip – this takes a few minutes.`,other:`Rendering {count} clips – this takes a few minutes.`},videoRendering:`Rendering the video – this usually takes 1–3 minutes.`,photo:`Looking at photo {n} of {total}`,found:`{label}: {name}`,listen:`Listening to “{label}”…`,listenFailed:`“{label}” couldn’t be transcribed.`,filmCutting:`Cutting the film – this takes about a minute.`,filmProgress:`{pct} % cut`,filmError:`The film reports: {detail}`,widgetError:`The widget reports an error: {detail}`,mcpConnected:`Connected to {names}`,mcpUnreachable:`MCP server unreachable: {detail}`,reads:`Reading {name}`,readsMany:{one:`Reading {count} document`,other:`Reading {count} documents`},opens:`Opening {name}`,clicks:`Clicking in the browser`,clicksOn:`Clicking “{name}”`,types:`Typing in the browser`,typesText:`Typing “{text}”`,selects:`Choosing “{option}”`,scrolls:`Scrolling`,presses:`Pressing {key}`,goesBack:`Going back a page`,waitsForPage:`Waiting for the page`,fastLoop:`Doing in the browser: {goal}`,personDrives:`You’re driving the browser – the wizard waits`,agentDrives:`The wizard carries on in the browser`,looksAtPage:`Looking at the page`,waitsForSignIn:`Waiting for you to sign in to {name}`,downloads:`Downloading {name}`,runs:`Running: {command}`,python:`Running Python`,drawing:`Drawing an image`,writesPage:`Writing the page “{title}”`,searchesDocuments:`Searching the documents: {query}`,searchesKnowledge:`Searching knowledge: {query} – {relevant} of {candidates} fit`,listsKnowledge:`Listing knowledge`,searchesMail:`Searching {label}`,savesReceipts:{one:`Saving {count} receipt from {label}`,other:`Saving {count} receipts from {label}`},remembers:`Remembering {title}`,files:{one:`Filing {count} file`,other:`Filing {count} files`},filmSetup:`Setting up the folder for the film`,filmClient:`{client} is working on the film – this usually takes 10–40 minutes.`,filmTask:`On the film: {task}`,filmLooks:`Looking at frames of the film`,filmFix:`The film didn’t render – Claude Code is fixing it`,filmResume:`Picking the film up where it stopped`,wizardUnavailable:`This wizard isn’t available right now.`,translationFailed:`This wizard can’t be translated right now. It’s shown as it was written.`,translationOff:`This wizard is only offered as it was written.`,translationPlaceholder:`The translation of “{text}” needs every placeholder in curly brackets the original has.`,wizardLimit:`This wizard has reached its limit for today. Try again tomorrow.`,confirmHuman:`Confirm that you’re a person.`,tooManyRuns:`You’ve started a lot of runs just now. Try again in an hour.`,runOver:`The run is over.`,runBusy:`The wizard is working right now.`,pageOutdated:`This page is out of date.`,noStepBefore:`There is no step before this one.`,checkFields:`Check the marked fields.`,talkOff:`Live conversations aren’t turned on for this wizard.`,talkKeyRefused:`The conversation couldn’t start: the OpenAI API key was refused.`,talkFailed:`The conversation couldn’t start ({status}).`,talkNoSecret:`The conversation couldn’t start: no access key came back.`,tryLater:`Try again later.`,recordingTooLarge:`The recording can be 10 MB at most.`,fileTooLarge:`Choose a file of {mb} MB or less.`,askClosed:`This question is no longer open.`,noBrowser:`The wizard has no browser open right now.`,notWaiting:`The wizard isn’t waiting for you right now.`,pageActFailed:`That didn’t work on the page.`,linkGone:`This link has expired or was withdrawn.`,connected:`Connected. You can close this window.`,connectFailed:`Connecting didn’t work. Try again.`,connectCancelled:`Connecting was cancelled.`,appleOff:`Apple Intelligence is turned off on this Mac. Turn it on in System Settings → Apple Intelligence & Siri.`,appleLoading:`Apple is still loading the model for Apple Intelligence onto this Mac. Try again in a moment.`,appleMissing:`The helper for Apple Intelligence (wizards-apple) is missing from this install.`,appleOs:`Apple Intelligence needs macOS 26 or later.`,appleDevice:`Apple Intelligence only works on a Mac with Apple silicon.`,appleBusy:`Apple Intelligence isn’t taking more requests right now. Try again in a moment.`,appleTooLong:`The text is too long for Apple Intelligence on this Mac (4,096 tokens for question and answer). Choose another model for this class under Settings → Models.`,appleRefused:`Apple Intelligence turned the request down: Apple’s content rules don’t allow it.`,appleLanguage:`Apple Intelligence doesn’t understand the language of this request.`,appleFormat:`Apple Intelligence can’t answer in this format: {detail}`,appleFailed:`Apple Intelligence: {detail}`,appleNoFfmpeg:`Apple Intelligence can’t read {type}, and without ffmpeg the recording can’t be converted. Install ffmpeg or record as MP4 in the browser.`,appleNotConverted:`Apple Intelligence couldn’t convert the recording: {detail}`,connectorAlreadyExistsSpace:`The connector “{id}” already exists in this space.`,connectorNotExist:`This connector doesn’t exist.`,fieldMissing:`“{label}” is missing.`,mailServerNotExist:`The mail server{host} doesn’t exist. Enter the IMAP server. For Gmail and Google Workspace, it’s imap.gmail.com.`,mailServerNotResponding:`The mail server{host} isn’t responding. Check the IMAP server and port.`,connectingNotWork:`Connecting didn’t work{host}: {detail}`,connectEngentyAccountFirst:`Connect your engenty account first (Settings → Account). Then you can connect Google here.`,engentyAccountNotReached:`Your engenty account can’t be reached right now. Try again later.`,googleNoLongerAccepts:`Google no longer accepts this connection. Connect the account again.`,googleNotConnectedThrough:`Google can’t be connected through your engenty account right now.`,stepNeedsToolPlugin:`This step needs the tool “{id}”. The plugin “{plugin}” isn’t installed here.`,clientNotSignedIn:`{name} isn’t signed in on this computer. Sign in under Settings → Models.`,clientNotInstalled:`{name} isn’t installed on this computer. Install it under Settings → Models.`,clientNoCredit:`The account {name} is signed in with has no credit or quota left.`,anthropicAccountClaudeCode:`The Anthropic account Claude Code is signed in with has no credit. Sign Claude Code in with your subscription under Settings → Models.`,chatgptAccountCodexSigned:`The ChatGPT account Codex is signed in with has used up its quota. Try again later or choose another client.`,builtTerminalNotAvailable:`The built-in terminal isn’t available on this computer. Run the command in your own terminal.`,terminalNoLongerExists:`This terminal no longer exists.`,imageTypeNotReadable:`Images of type {mime} can’t be read (PNG, JPEG and WebP work).`,fileNotReadable:`“{name}” ({mime}) can’t be read.`,creditsNotSignedIn:`This is set to run on credits, but you’re not signed in to an account.`,accountNoLongerSigned:`The account is no longer signed in. Sign in again under Settings → Account.`,modelNotUsedYet:`The model “{ref}” can’t be used yet. Add an API key under Settings → Models, or sign in to an account.`,noModelForImages:`No model is set up for images.`,noModelForVideos:`No model is set up for videos.`,noModelForSpeech:`No model is set up for speech.`,noOpenaiApiKey:`No OpenAI API key is set for voice conversations (Settings → Models).`,modelNotAvailableAccount:`This model isn’t available with your account.`,accountNoModelSet:`Your account has no model set up for this.`,claudeCodeMakesFilms:`Claude Code makes films on this computer, using your subscription. Set it up as an AI subscription under Settings → Models.`,macNeedsFfmpegTranscribe:`This Mac needs ffmpeg to transcribe recordings from Chrome or Firefox (WebM, Ogg). Safari and the app don’t. Install ffmpeg, e.g. with “brew install ffmpeg”.`,fieldRequired:`Required`,chooseAtLeast:`Choose at least {min}`,chooseAtMost:`At most {max} – remove some`,enterNumber:`Enter a number`,invalidChoice:`Invalid choice`,timeNotOffered:`This time isn’t offered`,notValidEmailAddress:`Not a valid email address`,notValidUrl:`Not a valid URL`,wizardRunOutCredits:`This wizard has run out of credits for now. Try again later.`,providerCreditLow:`Your credit with the model provider isn’t enough for this (videos need a minimum balance there). Top up there and try again.`,aiServiceBusyRight:`The AI service is busy right now. Try again in a moment.`,stepTookTooLong:`The step took too long. Try again.`,aiServiceNotReached:`The AI service can’t be reached right now. Try again later.`,notAvailableNow:`That isn’t available here right now.`,fileNotFound:`File not found`,connectFirst:`Connect first`,noEntriesStepWork:`There are no entries for this step to work on.`,stepNotReturnResult:`The step didn’t return a result.`,documentNotCreated:`The document couldn’t be created.`,stepMissingSourcesImages:`This step is missing its sources (images or scenes).`,noTextReadAloud:`There is no text to read aloud.`,wizardStillErrors:`The wizard still has errors.`,noLanguageModelSet:`No language model is set up here.`,creditsUsedUp:`Your credits are used up.`,chooseFile:`Choose a file.`,pageNotReached:`The page can’t be reached.`,unknownEntry:`Unknown entry.`,chooseWizardFileMb:`Choose a wizard file ({PACKAGE_EXTENSION}) of 30 MB or less.`,recordingMbMost:`The recording can be 10 MB at most.`,onlyFinishedResultsShared:`Only finished results can be shared.`,gradientFailed:`Couldn’t make a gradient from that. Try describing it differently.`,onlyOneSpaceAllowed:`Only one space is allowed here.`,mostSpaces:{one:`You can have at most {count} space here.`,other:`You can have at most {count} spaces here.`},twoEntriesSameKey:`Two entries have the same key.`,notDeleteLastSpace:`You can’t delete the last space.`,notFound:`This doesn’t exist or was deleted.`,categoryNeedsName:`A category needs a name.`,unknownCategoryType:`Unknown type “{type}”.`,spaceMostCategories:{one:`A space can have at most {count} category.`,other:`A space can have at most {count} categories.`},categoryAlreadyExists:`The category “{name}” already exists.`,onlyChoiceCategoriesValues:`Only choice categories have values.`,onlyValuesOneCategory:`Only values of one category can be merged.`,templateNeedsNewerVersion:`This template needs a newer version of engenty wizards. Update engenty wizards first.`,chatNotExist:`This chat doesn’t exist.`,unknownRunner:`There’s no runner “{unknown}” here.`,leastOneRunnerStay:`At least one runner has to stay on.`,linkOpenRunnerTurned:`The link has to open a runner that’s turned on.`,jobNotExistAlready:`This job doesn’t exist or has already finished.`,accountAlreadySpace:`This account already has a space here.`,accountAlreadySpaces:{one:`This account already has {count} space here.`,other:`This account already has {count} spaces here.`},roomMostPublishedWizards:{one:`There’s room for at most {count} published wizard here.`,other:`There’s room for at most {count} published wizards here.`},spaceIdAlreadyExists:`A space with this ID already exists here and didn’t come from your computer.`,wizardIdAlreadyBelongs:`A wizard with this ID already belongs to another space here.`,idAlreadyUse:`This ID is already in use here.`,wizardNotSpace:`This wizard isn’t in the space.`,invalidColumns:`Invalid columns.`,spaceMostTables:{one:`A space can have at most {count} table.`,other:`A space can have at most {count} tables.`},tableBelongsOneWizard:`This table belongs to one of the wizard’s lists. Its columns come from the wizard.`,entryAlreadyExists:`This entry already exists.`,tableMostRows:{one:`A table can have at most {count} row.`,other:`A table can have at most {count} rows.`},spaceMostPages:{one:`A space can have at most {count} page.`,other:`A space can have at most {count} pages.`},pageNotSubpages:`This page can’t have subpages.`,pageNotOwnSubpage:`A page can’t be its own subpage.`,pageNeedsTitle:`A page needs a title.`,unknownSpace:`There’s no space “{space}”.`,noParentPage:`There’s no page with the key “{parent}” to put this page under.`,onlyTeamAdmins:`Only team admins can do that. As a member, you can edit the wizards that already exist.`,spaceEditedLocally:`You edit this space in engenty wizards on your computer, not here.`,wizardsRunOncePublished:`Wizards run here once you publish them in engenty wizards on your computer. You build and edit them there.`,logoImagePngSvg:`A logo is an image (PNG, SVG, JPEG, WebP).`,patternImageSvgPng:`A pattern is an image (SVG, PNG, JPEG, WebP).`,filesGoHere:`Images, videos, audio, PDFs, fonts, Lottie and 3D models go here. Texts to look things up in go under knowledge.`,addressNotReached:`The address can’t be reached.`,addressResponded:`The address responded with {status}.`,addressLeadsWebPage:`The address leads to a web page, not an image.`,addressFileTooLarge:`The file is too large.`,onlyDocumentsIndex:`Only documents are in the index.`,emptyTooLargeDocument:`“{name}” is empty or too large for a document.`,spaceMostDocuments:{one:`A space can have at most {count} document.`,other:`A space can have at most {count} documents.`},accountSignedOut:`The account is signed out. Sign in again.`,cloudNotReachedRight:`The cloud can’t be reached right now.`,publishWizardFirst:`Publish the wizard first.`,wizardJsonUnreadable:`This isn’t a wizard file: its wizard.json can’t be read.`,wizardFileComesNewer:`This wizard file comes from a newer version, or it’s damaged. Update engenty wizards or export the wizard again.`,fileOver5Mb:`{name} is larger than 5 MB.`,wizardFileTooLarge:`The wizard file is too large: a workspace holds at most 200 files and 25 MB.`,wizardFileNotOpened:`The wizard file can’t be opened. Export the wizard again and try once more.`,wizardJsonMissing:`This isn’t a wizard file: wizard.json is missing.`,notValidFilePath:`“{name}” isn’t a valid file path.`,workspaceWizardFileLarger:`The workspace in the wizard file is larger than 25 MB.`,unknownTemplate:`There’s no template “{starterId}”.`,wizardChangedMeantime:`The wizard was changed in the meantime.`,valueNotExist:`This value doesn’t exist.`,nothingFiledUnderValue:`Nothing is filed under this value yet.`,filmNotRenderedNeeds:`The film couldn’t be rendered. It needs ffmpeg and a timeline in the widget.`,signInRefused:`The sign-in was refused{host}. Are the address and (app) password right? Gmail and Google Workspace need an app password and IMAP turned on.{answer}`,serverSaid:` The server said: {answer}`,viaAccountFailed:`Connecting through your engenty account didn’t work ({code}).`,pluginInvalidInput:`“{id}” got invalid input: {path} – {problem}`,filmClientStopped:`{name} stopped working on the film: {detail}. The work is saved. A new try carries on from there.`,filmWorkSaved:`{problem} The work is saved. A new try carries on from there.`,filmRenderFailed:`The film couldn’t be rendered: {detail}`,commandNotStarted:`The command couldn’t start: {detail}`,providerKeyMissing:`{provider} is chosen for {makes}, but no API key is set.`,noModelFor:`No model is set up for {makes}.`,noApiKeyFor:`No API key is set for {provider}.`,freeTier:`Your AI Gateway key is on Vercel’s free tier, which doesn’t include {model}. Top up at Vercel ({url}) or choose another model under Settings → Models.`,thisModel:`this model`,quoted:`“{text}”`,viewErrors:`The view has errors: {detail}`,blockedSteps:`{steps}: {problem}`,joined:`{first} {second}`,stepFailed:`This step failed: {detail}`,answersMissing:`Answers are missing or don’t fit: {answers}`,fieldError:`{field} – {message}`,templateNeedsPlugins:{one:`This template needs the plugin {plugins}: included with Pro on engenty.ai.`,other:`This template needs the plugins {plugins}: included with Pro on engenty.ai.`},pageMostChars:{one:`A page can have at most {count} character.`,other:`A page can have at most {count} characters.`},chooseFileUpTo:`Choose a file of {mb} MB or less.`,roomMostFiles:{one:`There’s room for at most {count} file here.`,other:`There’s room for at most {count} files here.`},makesText:`text`,makesImages:`images`,makesVideos:`videos`,makesSpeech:`speech`,makesVoiceNotes:`voice notes`},uv={en:lv,de:{entry:`Eintrag {n} von {total}`,deciding:`Entscheidet, wie es weitergeht …`,choosingFields:`Wählt die passenden Fragen …`,batchDone:`{done} von {total} fertig`,editing:`Bearbeitet {n} von {total}`,filming:`Dreht {n} von {total}`,clipsRendering:{one:`{count} Clip wird gerendert – das dauert einige Minuten.`,other:`{count} Clips werden gerendert – das dauert einige Minuten.`},videoRendering:`Das Video wird gerendert – das dauert meist 1–3 Minuten.`,photo:`Sieht sich Foto {n} von {total} an`,found:`{label}: {name}`,listen:`Hört „{label}“ an …`,listenFailed:`„{label}“ konnte nicht verschriftlicht werden.`,filmCutting:`Der Film wird geschnitten – das dauert etwa eine Minute.`,filmProgress:`{pct} % geschnitten`,filmError:`Der Film meldet: {detail}`,widgetError:`Das Widget meldet einen Fehler: {detail}`,mcpConnected:`Verbunden mit {names}`,mcpUnreachable:`MCP-Server nicht erreichbar: {detail}`,reads:`Liest {name}`,readsMany:{one:`Liest {count} Dokument`,other:`Liest {count} Dokumente`},opens:`Öffnet {name}`,clicks:`Klickt im Browser`,clicksOn:`Klickt auf „{name}“`,types:`Tippt im Browser`,typesText:`Tippt „{text}“`,selects:`Wählt „{option}“`,scrolls:`Scrollt`,presses:`Drückt {key}`,goesBack:`Geht eine Seite zurück`,waitsForPage:`Wartet auf die Seite`,fastLoop:`Erledigt im Browser: {goal}`,personDrives:`Du steuerst den Browser – der Wizard wartet`,agentDrives:`Der Wizard macht im Browser weiter`,looksAtPage:`Sieht sich die Seite an`,waitsForSignIn:`Wartet auf deine Anmeldung bei {name}`,downloads:`Lädt {name} herunter`,runs:`Führt aus: {command}`,python:`Führt Python aus`,drawing:`Zeichnet ein Bild`,writesPage:`Schreibt die Seite „{title}“`,searchesDocuments:`Sucht in den Dokumenten: {query}`,searchesKnowledge:`Sucht in Wissen: {query} – {relevant} von {candidates} passen`,listsKnowledge:`Listet Wissen`,searchesMail:`Durchsucht {label}`,savesReceipts:{one:`Speichert {count} Beleg aus {label}`,other:`Speichert {count} Belege aus {label}`},remembers:`Merkt sich {title}`,files:{one:`Legt {count} Datei ab`,other:`Legt {count} Dateien ab`},filmSetup:`Richtet den Arbeitsordner für den Film ein`,filmClient:`{client} arbeitet am Film – das dauert meist 10–40 Minuten.`,filmTask:`Am Film: {task}`,filmLooks:`Sieht sich Bilder des Films an`,filmFix:`Der Film ließ sich nicht rendern – Claude Code bessert nach`,filmResume:`Macht dort weiter, wo der Film stehen geblieben ist`,wizardUnavailable:`Dieser Wizard ist gerade nicht verfügbar.`,translationFailed:`Dieser Wizard lässt sich gerade nicht übersetzen. Du siehst ihn so, wie er geschrieben wurde.`,translationOff:`Diesen Wizard gibt es nur so, wie er geschrieben wurde.`,translationPlaceholder:`Die Übersetzung von „{text}“ braucht jeden Platzhalter in geschweiften Klammern, den das Original hat.`,wizardLimit:`Für heute ist das Limit dieses Wizards erreicht. Versuch es morgen wieder.`,confirmHuman:`Bestätige kurz, dass du ein Mensch bist.`,tooManyRuns:`Du hast gerade viele Läufe gestartet. Versuch es in einer Stunde wieder.`,runOver:`Der Lauf ist beendet.`,runBusy:`Der Wizard arbeitet gerade.`,pageOutdated:`Diese Seite ist nicht mehr aktuell.`,noStepBefore:`Kein vorheriger Schritt.`,checkFields:`Prüf die markierten Felder.`,talkOff:`Live-Gespräche sind für diesen Wizard nicht eingeschaltet.`,talkKeyRefused:`Das Gespräch ließ sich nicht starten: Der OpenAI-API-Key wurde abgelehnt.`,talkFailed:`Das Gespräch ließ sich nicht starten ({status}).`,talkNoSecret:`Das Gespräch ließ sich nicht starten: Es kam kein Zugang zurück.`,tryLater:`Versuch es später noch einmal.`,recordingTooLarge:`Die Aufnahme darf höchstens 10 MB groß sein.`,fileTooLarge:`Wähl eine Datei bis {mb} MB.`,askClosed:`Diese Frage ist nicht mehr offen.`,noBrowser:`Der Wizard hat gerade keinen Browser offen.`,notWaiting:`Der Wizard wartet gerade nicht auf dich.`,pageActFailed:`Das hat auf der Seite nicht geklappt.`,linkGone:`Dieser Link ist abgelaufen oder wurde zurückgezogen.`,connected:`Verbunden. Du kannst dieses Fenster schließen.`,connectFailed:`Verbinden hat nicht geklappt. Versuch es noch einmal.`,connectCancelled:`Verbinden wurde abgebrochen.`,appleOff:`Apple Intelligence ist auf diesem Mac ausgeschaltet. Schalte es unter Systemeinstellungen → Apple Intelligence & Siri ein.`,appleLoading:`Apple lädt das Modell für Apple Intelligence noch auf diesen Mac. Versuch es gleich noch einmal.`,appleMissing:`Der Helfer für Apple Intelligence (wizards-apple) fehlt in dieser Installation.`,appleOs:`Apple Intelligence braucht macOS 26 oder neuer.`,appleDevice:`Apple Intelligence gibt es nur auf einem Mac mit Apple Silicon.`,appleBusy:`Apple Intelligence nimmt gerade keine weiteren Anfragen an. Versuch es gleich noch einmal.`,appleTooLong:`Der Text ist zu lang für Apple Intelligence auf diesem Mac (4.096 Tokens für Frage und Antwort). Wähle unter Einstellungen → Modelle ein anderes Modell für diese Klasse.`,appleRefused:`Apple Intelligence hat die Anfrage abgelehnt: Apples Inhaltsregeln lassen sie nicht zu.`,appleLanguage:`Apple Intelligence versteht die Sprache dieser Anfrage nicht.`,appleFormat:`Apple Intelligence kann dieses Antwortformat nicht liefern: {detail}`,appleFailed:`Apple Intelligence: {detail}`,appleNoFfmpeg:`Apple Intelligence liest {type} nicht, und ohne ffmpeg lässt sich die Aufnahme nicht umwandeln. Installiere ffmpeg oder nimm im Browser als MP4 auf.`,appleNotConverted:`Apple Intelligence konnte die Aufnahme nicht umwandeln: {detail}`,connectorAlreadyExistsSpace:`Den Connector „{id}“ gibt es in diesem Space schon.`,connectorNotExist:`Diesen Connector gibt es nicht.`,fieldMissing:`„{label}“ fehlt.`,mailServerNotExist:`Den Mail-Server{host} gibt es nicht. Trag den IMAP-Server ein, bei Gmail und Google Workspace imap.gmail.com.`,mailServerNotResponding:`Der Mail-Server{host} antwortet nicht. Prüf IMAP-Server und Port.`,connectingNotWork:`Verbinden hat nicht geklappt{host}: {detail}`,connectEngentyAccountFirst:`Verbinde zuerst dein engenty-Konto (Einstellungen → Konto). Dann kannst du Google hier verbinden.`,engentyAccountNotReached:`Dein engenty-Konto ist gerade nicht erreichbar. Versuch es später noch einmal.`,googleNoLongerAccepts:`Google nimmt diese Verbindung nicht mehr an. Verbinde das Konto neu.`,googleNotConnectedThrough:`Google lässt sich über dein engenty-Konto gerade nicht verbinden.`,stepNeedsToolPlugin:`Dieser Schritt braucht das Werkzeug „{id}“. Das Plugin „{plugin}“ ist hier nicht installiert.`,clientNotSignedIn:`{name} ist auf diesem Computer nicht angemeldet. Melde dich unter Einstellungen → Modelle an.`,clientNotInstalled:`{name} ist auf diesem Computer nicht installiert. Installiere es unter Einstellungen → Modelle.`,clientNoCredit:`Das Konto, mit dem {name} angemeldet ist, hat kein Guthaben oder Kontingent mehr.`,anthropicAccountClaudeCode:`Das Anthropic-Konto, mit dem Claude Code angemeldet ist, hat kein Guthaben. Melde Claude Code unter Einstellungen → Modelle mit deinem Abo an.`,chatgptAccountCodexSigned:`Das Kontingent des ChatGPT-Kontos, mit dem Codex angemeldet ist, ist aufgebraucht. Versuch es später noch einmal oder wähle einen anderen Client.`,builtTerminalNotAvailable:`Das eingebaute Terminal ist auf diesem Computer nicht verfügbar. Führe den Befehl in deinem eigenen Terminal aus.`,terminalNoLongerExists:`Dieses Terminal gibt es nicht mehr.`,imageTypeNotReadable:`Bilder vom Typ {mime} lassen sich nicht lesen (PNG, JPEG und WebP gehen).`,fileNotReadable:`„{name}“ ({mime}) lässt sich nicht lesen.`,creditsNotSignedIn:`Dafür sind Credits gewählt, aber du bist mit keinem Konto angemeldet.`,accountNoLongerSigned:`Das Konto ist nicht mehr angemeldet. Melde dich unter Einstellungen → Konto neu an.`,modelNotUsedYet:`Das Modell „{ref}“ lässt sich noch nicht nutzen. Hinterleg unter Einstellungen → Modelle einen API-Key oder melde dich mit einem Konto an.`,noModelForImages:`Für Bilder ist kein Modell eingerichtet.`,noModelForVideos:`Für Videos ist kein Modell eingerichtet.`,noModelForSpeech:`Für Sprachausgabe ist kein Modell eingerichtet.`,noOpenaiApiKey:`Für Sprachgespräche ist kein OpenAI-API-Key hinterlegt (Einstellungen → Modelle).`,modelNotAvailableAccount:`Dieses Modell gibt es mit deinem Konto nicht.`,accountNoModelSet:`Dafür ist bei deinem Konto kein Modell eingerichtet.`,claudeCodeMakesFilms:`Filme macht Claude Code auf diesem Computer mit deinem Abo. Richte es unter Einstellungen → Modelle als KI-Abo ein.`,macNeedsFfmpegTranscribe:`Aufnahmen aus Chrome oder Firefox (WebM, Ogg) schreibt dieser Mac erst mit ffmpeg auf. Safari und die App brauchen es nicht. Installiere ffmpeg, z. B. mit „brew install ffmpeg“.`,fieldRequired:`Pflichtfeld`,chooseAtLeast:`Wähl mindestens {min} aus`,chooseAtMost:`Höchstens {max} – entferne einige`,enterNumber:`Gib eine Zahl ein`,invalidChoice:`Ungültige Auswahl`,timeNotOffered:`Dieser Termin wird nicht angeboten`,notValidEmailAddress:`Keine gültige E-Mail-Adresse`,notValidUrl:`Keine gültige URL`,wizardRunOutCredits:`Dieser Wizard hat gerade kein Guthaben mehr. Versuch es später noch einmal.`,providerCreditLow:`Das Guthaben beim Modellanbieter reicht dafür nicht aus (Videos brauchen dort ein Mindestguthaben). Lade dort auf und versuch es noch einmal.`,aiServiceBusyRight:`Der KI-Dienst ist gerade ausgelastet. Versuch es gleich noch einmal.`,stepTookTooLong:`Der Schritt hat zu lange gedauert. Versuch es noch einmal.`,aiServiceNotReached:`Der KI-Dienst ist gerade nicht erreichbar. Versuch es später noch einmal.`,notAvailableNow:`Das ist hier gerade nicht verfügbar.`,fileNotFound:`Datei nicht gefunden`,connectFirst:`Verbinde zuerst`,noEntriesStepWork:`Es gibt keine Einträge, für die dieser Schritt arbeiten könnte.`,stepNotReturnResult:`Der Schritt hat kein Ergebnis geliefert.`,documentNotCreated:`Das Dokument konnte nicht erstellt werden.`,stepMissingSourcesImages:`Für diesen Schritt fehlen die Vorlagen (Bilder oder Szenen).`,noTextReadAloud:`Es gibt keinen Text zum Vorlesen.`,wizardStillErrors:`Der Wizard hat noch Fehler.`,noLanguageModelSet:`Hier ist kein Sprachmodell eingerichtet.`,creditsUsedUp:`Dein Guthaben ist aufgebraucht.`,chooseFile:`Wähl eine Datei.`,pageNotReached:`Die Seite ist nicht erreichbar.`,unknownEntry:`Unbekannter Eintrag.`,chooseWizardFileMb:`Wähl eine Wizard-Datei ({PACKAGE_EXTENSION}) bis 30 MB.`,recordingMbMost:`Die Aufnahme darf höchstens 10 MB groß sein.`,onlyFinishedResultsShared:`Nur fertige Ergebnisse lassen sich teilen.`,gradientFailed:`Daraus ließ sich kein Verlauf machen. Beschreib ihn anders.`,onlyOneSpaceAllowed:`Hier ist nur ein Space möglich.`,mostSpaces:{one:`Hier ist höchstens {count} Space möglich.`,other:`Hier sind höchstens {count} Spaces möglich.`},twoEntriesSameKey:`Zwei Einträge haben denselben Schlüssel.`,notDeleteLastSpace:`Der letzte Space lässt sich nicht löschen.`,notFound:`Das gibt es nicht oder nicht mehr.`,categoryNeedsName:`Eine Kategorie braucht einen Namen.`,unknownCategoryType:`Unbekannter Typ „{type}“.`,spaceMostCategories:{one:`Ein Space hat höchstens {count} Kategorie.`,other:`Ein Space hat höchstens {count} Kategorien.`},categoryAlreadyExists:`Die Kategorie „{name}“ gibt es schon.`,onlyChoiceCategoriesValues:`Werte gibt es nur bei Kategorien vom Typ Auswahl.`,onlyValuesOneCategory:`Nur Werte einer Kategorie lassen sich zusammenführen.`,templateNeedsNewerVersion:`Diese Vorlage braucht eine neuere Version von engenty wizards. Aktualisiere zuerst engenty wizards.`,chatNotExist:`Diesen Chat gibt es nicht.`,unknownRunner:`Einen Runner „{unknown}“ gibt es hier nicht.`,leastOneRunnerStay:`Mindestens ein Runner muss eingeschaltet bleiben.`,linkOpenRunnerTurned:`Der Link muss einen eingeschalteten Runner öffnen.`,jobNotExistAlready:`Diesen Vorgang gibt es nicht, oder er ist schon beendet.`,accountAlreadySpace:`Dieses Konto hat hier schon einen Space.`,accountAlreadySpaces:{one:`Dieses Konto hat hier schon {count} Space.`,other:`Dieses Konto hat hier schon {count} Spaces.`},roomMostPublishedWizards:{one:`Hier hat höchstens {count} veröffentlichter Wizard Platz.`,other:`Hier haben höchstens {count} veröffentlichte Wizards Platz.`},spaceIdAlreadyExists:`Einen Space mit dieser Kennung gibt es hier schon, und er kommt nicht von deinem Computer.`,wizardIdAlreadyBelongs:`Ein Wizard mit dieser Kennung gehört hier schon zu einem anderen Space.`,idAlreadyUse:`Diese Kennung ist hier schon vergeben.`,wizardNotSpace:`Diesen Wizard gibt es im Space nicht.`,invalidColumns:`Ungültige Spalten.`,spaceMostTables:{one:`Ein Space hat höchstens {count} Tabelle.`,other:`Ein Space hat höchstens {count} Tabellen.`},tableBelongsOneWizard:`Diese Tabelle gehört zu einer Liste des Wizards. Die Spalten kommen aus dem Wizard.`,entryAlreadyExists:`Diesen Eintrag gibt es schon.`,tableMostRows:{one:`Eine Tabelle hat höchstens {count} Zeile.`,other:`Eine Tabelle hat höchstens {count} Zeilen.`},spaceMostPages:{one:`Ein Space hat höchstens {count} Seite.`,other:`Ein Space hat höchstens {count} Seiten.`},pageNotSubpages:`Diese Seite kann keine Unterseiten haben.`,pageNotOwnSubpage:`Eine Seite kann nicht ihre eigene Unterseite sein.`,pageNeedsTitle:`Eine Seite braucht einen Titel.`,unknownSpace:`Den Space „{space}“ gibt es nicht.`,noParentPage:`Es gibt keine Seite mit dem Schlüssel „{parent}“, unter die diese Seite könnte.`,onlyTeamAdmins:`Das dürfen nur Admins des Teams. Als Mitglied bearbeitest du die Wizards, die es schon gibt.`,spaceEditedLocally:`Diesen Space bearbeitest du in engenty wizards auf deinem Computer, nicht hier.`,wizardsRunOncePublished:`Hier laufen die Wizards, die du in engenty wizards auf deinem Computer veröffentlichst. Gebaut und bearbeitet wird dort.`,logoImagePngSvg:`Ein Logo ist ein Bild (PNG, SVG, JPEG, WebP).`,patternImageSvgPng:`Ein Muster ist ein Bild (SVG, PNG, JPEG, WebP).`,filesGoHere:`Hierher gehören Bilder, Videos, Audio, PDFs, Schriften, Lottie und 3D-Modelle. Texte zum Nachschlagen gehören ins Wissen.`,addressNotReached:`Die Adresse ist nicht erreichbar.`,addressResponded:`Die Adresse antwortete mit {status}.`,addressLeadsWebPage:`Unter der Adresse steht eine Webseite, kein Bild.`,addressFileTooLarge:`Die Datei ist zu groß.`,onlyDocumentsIndex:`Nur Dokumente stehen im Index.`,emptyTooLargeDocument:`„{name}“ ist leer oder zu groß für ein Dokument.`,spaceMostDocuments:{one:`Ein Space hat höchstens {count} Dokument.`,other:`Ein Space hat höchstens {count} Dokumente.`},accountSignedOut:`Das Konto ist abgemeldet. Melde dich neu an.`,cloudNotReachedRight:`Die Cloud ist gerade nicht erreichbar.`,publishWizardFirst:`Veröffentliche den Wizard zuerst.`,wizardJsonUnreadable:`Das ist keine Wizard-Datei: Die wizard.json darin lässt sich nicht lesen.`,wizardFileComesNewer:`Diese Wizard-Datei stammt aus einer neueren Version oder ist beschädigt. Aktualisiere engenty wizards oder exportiere den Wizard neu.`,fileOver5Mb:`{name} ist größer als 5 MB.`,wizardFileTooLarge:`Die Wizard-Datei ist zu groß: Ein Arbeitsbereich fasst höchstens 200 Dateien und 25 MB.`,wizardFileNotOpened:`Die Wizard-Datei lässt sich nicht öffnen. Exportiere den Wizard neu und versuche es noch einmal.`,wizardJsonMissing:`Das ist keine Wizard-Datei: Die wizard.json fehlt.`,notValidFilePath:`„{name}“ ist kein gültiger Dateipfad.`,workspaceWizardFileLarger:`Der Arbeitsbereich in der Wizard-Datei ist größer als 25 MB.`,unknownTemplate:`Die Vorlage „{starterId}“ gibt es nicht.`,wizardChangedMeantime:`Der Wizard wurde inzwischen geändert.`,valueNotExist:`Diesen Wert gibt es nicht.`,nothingFiledUnderValue:`Unter diesem Wert steht noch nichts.`,filmNotRenderedNeeds:`Der Film ließ sich nicht rendern. Dafür braucht es ffmpeg und eine Zeitleiste im Widget.`,signInRefused:`Anmeldung abgelehnt{host}. Stimmen Adresse und (App-)Passwort? Gmail und Google Workspace brauchen ein App-Passwort und eingeschaltetes IMAP.{answer}`,serverSaid:` Antwort des Servers: {answer}`,viaAccountFailed:`Verbinden über dein engenty-Konto hat nicht geklappt ({code}).`,pluginInvalidInput:`„{id}“ bekam ungültige Angaben: {path} – {problem}`,filmClientStopped:`{name} hat beim Film aufgehört: {detail}. Die Arbeit ist gespeichert. Ein neuer Versuch macht dort weiter.`,filmWorkSaved:`{problem} Die Arbeit ist gespeichert. Ein neuer Versuch macht dort weiter.`,filmRenderFailed:`Der Film ließ sich nicht rendern: {detail}`,commandNotStarted:`Der Befehl konnte nicht starten: {detail}`,providerKeyMissing:`Für {makes} ist {provider} gewählt, aber kein API-Key hinterlegt.`,noModelFor:`Für {makes} ist kein Modell eingerichtet.`,noApiKeyFor:`Für {provider} ist kein API-Key hinterlegt.`,freeTier:`Dein AI-Gateway-Key nutzt bei Vercel die kostenlose Stufe, und die schließt {model} aus. Lade bei Vercel Guthaben auf ({url}) oder wähle unter Einstellungen → Modelle ein anderes Modell.`,thisModel:`dieses Modell`,quoted:`„{text}“`,viewErrors:`Die Ansicht hat Fehler: {detail}`,stepFailed:`Dieser Schritt hat nicht geklappt: {detail}`,answersMissing:`Antworten fehlen oder passen nicht: {answers}`,templateNeedsPlugins:{one:`Diese Vorlage braucht das Plugin {plugins}: bei Pro auf engenty.ai dabei.`,other:`Diese Vorlage braucht die Plugins {plugins}: bei Pro auf engenty.ai dabei.`},pageMostChars:`Eine Seite hat höchstens {count} Zeichen.`,chooseFileUpTo:`Wähl eine Datei bis {mb} MB.`,roomMostFiles:{one:`Hier hat höchstens {count} Datei Platz.`,other:`Hier haben höchstens {count} Dateien Platz.`},makesText:`Text`,makesImages:`Bilder`,makesVideos:`Videos`,makesSpeech:`Sprachausgabe`,makesVoiceNotes:`Sprachnotizen`}};function dv(e,t,n){return Array.isArray(e)?e.map(e=>dv(e,t,n)):typeof e==`object`&&e&&`code`in e?fv(e,t,n):e}function fv(e,t,n){if(!(e.code in lv))return``;let r={};for(let[i,a]of Object.entries(e.params??{}))r[i]=a===void 0?void 0:dv(a,t,n);let i=n?.[e.code];return i===void 0?sv(uv,e.code,jg(t)?t:`en`,r):cv(i,t,r)}var pv={en:{"result.translate":`Translate`,"translation.working":`Translating…`,"translation.machine":`Machine-translated`,"translation.showOriginal":`Show original`,"translation.showTranslated":`Show translation`,"translation.failed":`This wizard can’t be translated right now.`,"share.copied":`Copied`,"surface.done":`{done} of {total}`,"surface.allDone":`All done`,"surface.close":`Close`,"data.view":`View`,"data.edit":`Edit`,"data.json":`JSON`,"data.modes":`Show the data as`,"data.add":`Add {what}`,"data.remove":`Remove`,"data.missing":`{id} is missing`,"data.yes":`Yes`,"data.no":`No`,"data.menu":`More`,"data.open":`View and edit the data`,"data.close":`Close the data`,"data.save":`Save`,"data.saved":`Saved`,"data.schema":`JSON Schema`,"data.copy":`Copy`,"data.download":`Download`,"run.closed":`Not available here right now. It needs {list}.`,"slot.later":`Show later times`,"slot.none":`No times are free right now.`,"cards.open":`Details`,"cards.picked":`Chosen ✓`,"cards.pick":`Choose`,"run.cls.text":`text`,"run.cls.image":`images`,"run.cls.video":`video`,"run.cls.speech":`speech output`,"run.cls.audio":`voice notes`,"run.cls.account":`an engenty account`,"run.next":`Continue`,"run.back":`Back`,"run.accept":`Looks good`,"run.edit":`Edit`,"run.pickItem":`No. {n}`,"run.pickedItem":`No. {n} again`,"run.regeneratePicked":`Only no. {n} will be redone.`,"run.regenerateAll":`Applies to all. Tap a number to redo just that one.`,"check.progress":`{done} of {total} checked`,"check.onlyOpen":`Open only`,"check.noFile":`There’s no file for this row.`,"check.noPreview":`This file has no preview – open it with the link above.`,"check.reopen":`Open again`,"run.feedbackPlaceholder":`Something not right? Write what should be different…`,"run.feedbackTarget":`What should change?`,"run.feedbackPick":`Choose above what should change.`,"ai.generated":`AI-generated`,"ai.modified":`AI-modified`,"ai.publish":`Made with AI: whoever publishes this has to label it as AI-generated (EU AI Act, Art. 50). The file already carries the marking in its metadata.`,"run.regenerateGo":`Recreate`,"run.retry":`Try again`,"run.again":`Start over`,"run.copy":`Copy text`,"run.failed":`Something went wrong.`,"run.notFound":`This wizard doesn’t exist or was deleted.`,"run.working":`One moment…`,"run.elapsed":`{s} s`,"run.cancelled":`Cancelled.`,"run.addRow":`Add row`,"run.upload":`Choose a file or drop it here`,"run.uploading":`Uploading…`,"run.net":`Net`,"run.vat":`VAT {r}%`,"run.total":`Total`,"run.uploadMore":`Another file`,"run.camera":`Camera`,"camera.title":`Take a picture`,"camera.hint":`Hold it flat and well lit.`,"camera.taken":`{n} taken`,"camera.shoot":`Capture`,"camera.done":`Done`,"camera.denied":`The camera isn’t allowed for this page. Allow it in your browser’s site settings (the lock icon in the address bar) – or take the photo with your camera app.`,"connect.go":`Connect`,"connect.connected":`Connected through {name}`,"connect.disconnect":`Disconnect`,"connect.none":`This server has no provider for connecting accounts yet.`,"connect.openLink":`Click here to open the sign-in in a new tab`,"list.empty":`No entries yet.`,"list.delete":`Delete row`,"ask.typeInto":`Type into the page…`,"ask.hide":`hidden`,"ask.up":`Scroll up`,"ask.down":`Scroll down`,"ask.pictureHint":`This is the page the wizard has open, live. You can also click and type right in it.`,"ask.remember":`Remember this sign-in for next time`,"ask.private":`What you enter goes straight into the page. The AI never sees it. Remembered sign-ins are stored encrypted.`,"ask.skip":`Skip`,"ask.done":`I’m signed in`,"ask.signIn":`Sign in`,"ask.wants":`The wizard wants to run this in {service}:`,"ask.allowRest":`Allow for the rest of this run`,"ask.allow":`Allow`,"ask.deny":`Don’t allow`,"store.open":`What this wizard remembers`,"store.title":`Kept for you`,"store.explain":`This wizard keeps lists, files and connected accounts for your next run. Only you see them.`,"store.empty":`Nothing kept yet.`,"store.rows":{one:`{n} entry`,other:`{n} entries`},"store.signIns":`Remembered sign-ins in the browser`,"store.files":{one:`{n} file · {size}`,other:`{n} files · {size}`},"store.delete":`Delete everything`,"store.confirmDelete":`Yes, delete everything`,"common.close":`Close`,"run.uploadTouch":`Choose a file`,"run.maxFiles":{one:`At most {n} fits here – the rest were left out.`,other:`At most {n} fit here – the rest were left out.`},"run.filesMin":`{n} of at least {min}`,"run.filesOf":`{n} of at most {max}`,"run.moveFile":`Move no. {n}`,"run.moveFileHint":`Drag to change the order`,"run.removeFile":`Remove`,"run.awake":`The screen stays on while the wizard works.`,"run.openFull":`Open full size`,"run.yes":`Yes`,"run.no":`No`,"run.share":`Share`,"run.shareNow":`Share now`,"run.shareFile":`Share as a file or open in an app`,"run.print":`Print`,"camera.asking":`Your browser is about to ask for the camera. The picture stays in this wizard.`,"camera.native":`Open the camera app`,"camera.pick":`Choose a photo`,"camera.torch":`Light`,"camera.flip":`Switch camera`,"camera.photo":`Photo`,"camera.video":`Video`,"camera.record":`Start recording`,"camera.stop":`Stop recording`,"camera.recording":`Recording – tap to stop.`,"camera.clipHint":`A short clip, {s} seconds at most.`,"camera.hintMany":`Capture page after page, then “Done”.`,"scan.button":`Scan`,"scan.title":`Scan a code`,"scan.asking":`Your browser is about to ask for the camera – it only reads the code.`,"scan.hint":`Hold the QR code or barcode inside the frame.`,"scan.hintQr":`Hold the QR code inside the frame. This device doesn’t read barcodes here.`,"scan.miss":`No code was found in the photo. Try closer and sharper.`,"scan.fromPhoto":`Choose a photo of the code`,"scan.typeInstead":`Type it instead`,"location.use":`Use my location`,"location.locating":`Finding your location…`,"location.refining":`getting more accurate…`,"location.accuracy":`accurate to about {m} m`,"location.map":`Map`,"location.remove":`Remove location`,"location.why":`Your browser asks for your location. It’s only used for this wizard. You can also just type the address.`,"location.denied":`Location isn’t allowed for this page. Allow it in your browser’s site settings (the lock icon in the address bar) – or type the address below.`,"location.manual":`Type an address or place`,"location.label":`Address or description of the place`,"voice.start":`Record a voice note`,"voice.stop":`Stop`,"voice.recording":`Recording…`,"voice.left":`{s} s left`,"voice.again":`Record again`,"voice.remove":`Delete`,"voice.pick":`Choose an audio file`,"voice.why":`Your browser asks for the microphone. The recording is turned into text afterwards.`,"voice.denied":`The microphone isn’t allowed for this page. Allow it in your browser’s site settings – or record the note with your voice memo app and choose the file.`,"voice.noRecorder":`This browser can’t record here. Record the note with your voice memo app and choose the file.`,"sign.open":`Sign here`,"sign.hint":`Sign with your finger`,"sign.pad":`Signature pad`,"sign.clear":`Clear`,"sign.accept":`Use it`,"sign.again":`Sign again`,"sign.remove":`Remove signature`,"notify.ask":`Tell me when it’s done`,"notify.on":`We’ll let you know`,"notify.why":`With a sound, a buzz or a notification. Your browser asks once for permission.`,"notify.onHint":`You can switch apps – a notification brings you back.`,"notify.quiet":`With a sound and a buzz while this page is open.`,"notify.blocked":`Notifications are blocked for this page – you get a sound and a buzz while it’s open. You can allow them in your browser’s site settings.`,"notify.done":`Your result is ready.`,"notify.next":`The next step is ready – have a look.`,"notify.needsYou":`The wizard needs you for a moment.`,"common.offline":`No connection. Check your network and try again.`,"common.retry":`Try again`,"common.cancel":`Cancel`,"run.start":`Let’s go`,"run.unavailable":`This wizard isn’t available right now.`,"run.resume":`Continue your last run`,"output.preview":`Preview`,"package.newer":`This wizard file comes from a newer version, or it’s damaged. Update engenty wizards or export the wizard again.`,"package.badJson":`This isn’t a wizard file: its wizard.json can’t be read.`,"package.unreadable":`The wizard file can’t be opened. Export the wizard again and try once more.`,"package.noManifest":`This isn’t a wizard file: wizard.json is missing.`,"browser.driving":`You’re in control of the browser – click and type in the page. The wizard waits.`,"browser.handBack":`Hand back`,"browser.takeOver":`Take over`,"chat.above":`Answer above in the chat`,"chat.badEmail":`That doesn’t look like an email address.`,"chat.badNumber":`Enter a number.`,"chat.badUrl":`That isn’t a valid address.`,"chat.change":`Change`,"chat.checked":`Checked`,"chat.connected":`Connected`,"chat.dictate":`Dictate (⌘⇧M)`,"chat.dictateStop":`Stop dictating`,"chat.file":`1 file`,"chat.files":{one:`{n} file`,other:`{n} files`},"chat.listening":`Listening…`,"chat.micDenied":`The microphone isn’t allowed for this page. Allow it in your browser’s site settings.`,"chat.placeholder":`Your answer…`,"chat.readAloud":`Read aloud`,"chat.readAloudOff":`Stop reading aloud`,"chat.required":`I need an answer for this one.`,"chat.rows":{one:`{n} row`,other:`{n} rows`},"chat.send":`Send`,"chat.skip":`Skip`,"chat.skipped":`Skipped`,"chat.transcribing":`Writing it down…`,"chat.voice":`Voice note`,"install.add":`Add to home screen`,"install.app":`Open in the app`,"install.bookmark":`Bookmark this wizard`,"install.bookmark.mac":`Press ⌘ D to keep this wizard in your bookmarks.`,"install.bookmark.pc":`Press Ctrl + D to keep this wizard in your bookmarks.`,"install.ios":`Tap “Share” below, then “Add to Home Screen”.`,"run.madeWith":`Made with engenty wizards`,"run.orAs":`Or: {label}`,"talk.camera":`Switch the camera on`,"talk.cameraDenied":`The camera isn’t allowed for this page. Allow it in your browser’s site settings.`,"talk.cameraOff":`Switch the camera off`,"talk.connecting":`Connecting…`,"talk.failed":`The conversation couldn’t start. Check your connection and try again.`,"talk.hint":`Talk to the wizard – the screen follows along.`,"talk.joinHint":`Your browser asks for the microphone when you start, and for the camera only when you switch it on. The chat beside it follows along and handles what voice can’t.`,"talk.listening":`Listening`,"talk.live":`In conversation`,"talk.speaking":`Speaking`,"talk.start":`Start talking`,"talk.stop":`End the conversation`,"video.cameraOff":`Camera off`,"video.ended":`Call ended`,"video.flip":`Switch camera`,"video.hint":`Your browser asks for the microphone and camera when you join. The chat beside it follows along and handles what voice can’t.`,"video.join":`Join`,"video.leave":`Leave`,"video.mute":`Mute`,"video.rejoin":`Rejoin`,"video.unmute":`Unmute`,"video.you":`You`,"nav.language":`Language`},de:{"result.translate":`Übersetzen`,"translation.working":`Wird übersetzt …`,"translation.machine":`Maschinell übersetzt`,"translation.showOriginal":`Original zeigen`,"translation.showTranslated":`Übersetzung zeigen`,"translation.failed":`Dieser Wizard lässt sich gerade nicht übersetzen.`,"share.copied":`Kopiert`,"surface.done":`{done} von {total}`,"surface.allDone":`Alles erledigt`,"surface.close":`Schließen`,"data.view":`Ansicht`,"data.edit":`Bearbeiten`,"data.json":`JSON`,"data.modes":`Daten zeigen als`,"data.add":`{what} hinzufügen`,"data.remove":`Entfernen`,"data.missing":`{id} fehlt`,"data.yes":`Ja`,"data.no":`Nein`,"data.menu":`Mehr`,"data.open":`Daten ansehen und bearbeiten`,"data.close":`Daten schließen`,"data.save":`Speichern`,"data.saved":`Gespeichert`,"data.schema":`JSON Schema`,"data.copy":`Kopieren`,"data.download":`Herunterladen`,"run.closed":`Hier gerade nicht verfügbar, dafür fehlt: {list}`,"slot.later":`Spätere Termine zeigen`,"slot.none":`Gerade sind keine Termine frei.`,"cards.open":`Details`,"cards.picked":`Ausgewählt ✓`,"cards.pick":`Auswählen`,"run.cls.text":`Text`,"run.cls.image":`Bilder`,"run.cls.video":`Videos`,"run.cls.speech":`Sprachausgabe`,"run.cls.audio":`Sprachnotizen`,"run.cls.account":`ein engenty-Konto`,"run.next":`Weiter`,"run.back":`Zurück`,"run.accept":`Passt so`,"run.edit":`Bearbeiten`,"run.pickItem":`Nr. {n}`,"run.pickedItem":`Nr. {n} neu`,"run.regeneratePicked":`Nur Nr. {n} wird neu erstellt.`,"run.regenerateAll":`Alle werden neu erstellt. Tippe oben auf eine Nummer, um nur einzelne zu erneuern.`,"check.progress":`{done} von {total} geprüft`,"check.onlyOpen":`Nur offene`,"check.noFile":`Zu dieser Zeile gibt es keine Datei.`,"check.noPreview":`Für diese Datei gibt es keine Vorschau – öffne sie mit dem Link oben.`,"check.reopen":`Wieder öffnen`,"run.feedbackPlaceholder":`Passt etwas nicht? Schreib, was anders sein soll …`,"run.feedbackTarget":`Was soll sich ändern?`,"run.feedbackPick":`Wähle oben, was sich ändern soll.`,"ai.generated":`KI-generiert`,"ai.modified":`Mit KI verändert`,"ai.publish":`Mit KI erstellt: Wer das veröffentlicht, muss es als KI-generiert kennzeichnen (EU AI Act, Art. 50). Die Datei trägt die Kennzeichnung bereits in ihren Metadaten.`,"run.regenerateGo":`Neu erstellen`,"run.retry":`Erneut versuchen`,"run.again":`Nochmal`,"run.copy":`Text kopieren`,"run.failed":`Da hat etwas nicht geklappt.`,"run.notFound":`Diesen Wizard gibt es nicht, oder er wurde gelöscht.`,"run.working":`Einen Moment …`,"run.elapsed":`{s} s`,"run.cancelled":`Abgebrochen.`,"run.addRow":`Zeile hinzufügen`,"run.upload":`Datei wählen oder hierher ziehen`,"run.uploading":`Lädt hoch …`,"run.net":`Netto`,"run.vat":`USt. {r} %`,"run.total":`Gesamt`,"run.uploadMore":`Weitere Datei`,"run.camera":`Kamera`,"camera.title":`Mit der Kamera aufnehmen`,"camera.hint":`Gerade und gut beleuchtet ins Bild halten.`,"camera.taken":`{n} aufgenommen`,"camera.shoot":`Aufnehmen`,"camera.done":`Fertig`,"camera.denied":`Die Kamera ist für diese Seite nicht freigegeben. Erlaube sie in den Website-Einstellungen deines Browsers (Schloss-Symbol in der Adresszeile) – oder nimm das Foto mit der Kamera-App auf.`,"connect.go":`Verbinden`,"connect.connected":`Verbunden über {name}`,"connect.disconnect":`Trennen`,"connect.none":`Auf diesem Server ist noch kein Anbieter zum Verbinden eingerichtet.`,"connect.openLink":`Anmeldung in neuem Tab öffnen`,"list.empty":`Noch keine Einträge.`,"list.delete":`Zeile löschen`,"ask.typeInto":`Text in die Seite tippen …`,"ask.hide":`verdeckt`,"ask.up":`Nach oben`,"ask.down":`Nach unten`,"ask.pictureHint":`Hier siehst du live die Seite, die der Wizard geöffnet hat. Du kannst auch direkt hineinklicken und tippen.`,"ask.remember":`Anmeldung für nächstes Mal merken`,"ask.private":`Was du eingibst, geht direkt in die Seite. Die KI bekommt es nicht zu sehen. Gemerkte Anmeldungen werden verschlüsselt gespeichert.`,"ask.skip":`Überspringen`,"ask.done":`Ich bin angemeldet`,"ask.signIn":`Anmelden`,"ask.wants":`Der Wizard möchte in {service} Folgendes ausführen:`,"ask.allowRest":`Für den Rest dieses Laufs erlauben`,"ask.allow":`Erlauben`,"ask.deny":`Nicht erlauben`,"store.open":`Was dieser Wizard sich merkt`,"store.title":`Für dich gemerkt`,"store.explain":`Dieser Wizard merkt sich Listen, Dateien und verbundene Konten für deinen nächsten Lauf. Nur du siehst sie.`,"store.empty":`Noch nichts gespeichert.`,"store.rows":{one:`{n} Eintrag`,other:`{n} Einträge`},"store.signIns":`Gemerkte Anmeldungen im Browser`,"store.files":{one:`{n} Datei · {size}`,other:`{n} Dateien · {size}`},"store.delete":`Alles löschen`,"store.confirmDelete":`Ja, alles löschen`,"common.close":`Schließen`,"run.uploadTouch":`Datei wählen`,"run.maxFiles":{one:`Hier geht höchstens {n} Datei – die übrigen sind weggelassen.`,other:`Hier gehen höchstens {n} Dateien – die übrigen sind weggelassen.`},"run.filesMin":`{n} von mindestens {min}`,"run.filesOf":`{n} von höchstens {max}`,"run.moveFile":`Nr. {n} verschieben`,"run.moveFileHint":`Ziehen, um die Reihenfolge zu ändern`,"run.removeFile":`Entfernen`,"run.awake":`Der Bildschirm bleibt an, solange der Wizard arbeitet.`,"run.openFull":`Groß öffnen`,"run.yes":`Ja`,"run.no":`Nein`,"run.share":`Teilen`,"run.shareNow":`Jetzt teilen`,"run.shareFile":`Als Datei teilen oder in einer App öffnen`,"run.print":`Drucken`,"camera.asking":`Dein Browser fragt gleich nach der Kamera. Das Bild bleibt in diesem Wizard.`,"camera.native":`Kamera-App öffnen`,"camera.pick":`Foto auswählen`,"camera.torch":`Licht`,"camera.flip":`Kamera wechseln`,"camera.photo":`Foto`,"camera.video":`Video`,"camera.record":`Aufnahme starten`,"camera.stop":`Aufnahme beenden`,"camera.recording":`Nimmt auf – tippe zum Beenden.`,"camera.clipHint":`Ein kurzer Clip, höchstens {s} Sekunden.`,"camera.hintMany":`Seite für Seite aufnehmen, dann „Fertig“.`,"scan.button":`Scannen`,"scan.title":`Code scannen`,"scan.asking":`Dein Browser fragt gleich nach der Kamera – sie liest nur den Code.`,"scan.hint":`Halte den QR- oder Barcode in den Rahmen.`,"scan.hintQr":`Halte den QR-Code in den Rahmen. Barcodes kann dieses Gerät hier nicht lesen.`,"scan.miss":`Auf dem Foto war kein Code zu erkennen. Versuch es näher und schärfer.`,"scan.fromPhoto":`Foto mit dem Code wählen`,"scan.typeInstead":`Lieber eintippen`,"location.use":`Meinen Standort verwenden`,"location.locating":`Standort wird bestimmt …`,"location.refining":`wird noch genauer …`,"location.accuracy":`auf etwa {m} m genau`,"location.map":`Karte`,"location.remove":`Standort entfernen`,"location.why":`Dein Browser fragt nach deinem Standort. Er wird nur für diesen Wizard verwendet. Du kannst auch einfach die Adresse eintippen.`,"location.denied":`Der Standort ist für diese Seite nicht freigegeben. Erlaube ihn in den Website-Einstellungen deines Browsers (Schloss-Symbol in der Adresszeile) – oder tippe die Adresse unten ein.`,"location.manual":`Adresse oder Ort eintippen`,"location.label":`Adresse oder Beschreibung des Orts`,"voice.start":`Sprachnotiz aufnehmen`,"voice.stop":`Stopp`,"voice.recording":`Aufnahme läuft …`,"voice.left":`noch {s} s`,"voice.again":`Neu aufnehmen`,"voice.remove":`Löschen`,"voice.pick":`Audiodatei wählen`,"voice.why":`Dein Browser fragt nach dem Mikrofon. Die Aufnahme wird danach in Text umgewandelt.`,"voice.denied":`Das Mikrofon ist für diese Seite nicht freigegeben. Erlaube es in den Website-Einstellungen deines Browsers – oder nimm die Notiz mit der Diktier-App auf und wähle die Datei.`,"voice.noRecorder":`Dieser Browser kann hier nicht aufnehmen. Nimm die Notiz mit der Diktier-App auf und wähle die Datei.`,"sign.open":`Hier unterschreiben`,"sign.hint":`Mit dem Finger unterschreiben`,"sign.pad":`Unterschriftsfeld`,"sign.clear":`Löschen`,"sign.accept":`Übernehmen`,"sign.again":`Neu unterschreiben`,"sign.remove":`Unterschrift entfernen`,"notify.ask":`Bescheid geben, wenn es fertig ist`,"notify.on":`Du bekommst Bescheid`,"notify.why":`Mit Ton, Vibration oder einer Mitteilung. Dein Browser fragt dafür einmal um Erlaubnis.`,"notify.onHint":`Du kannst die App wechseln – eine Mitteilung holt dich zurück.`,"notify.quiet":`Mit Ton und Vibration, solange diese Seite offen ist.`,"notify.blocked":`Mitteilungen sind für diese Seite blockiert – es gibt Ton und Vibration, solange sie offen ist. Erlauben kannst du sie in den Website-Einstellungen deines Browsers.`,"notify.done":`Dein Ergebnis ist fertig.`,"notify.next":`Es geht weiter – wirf einen Blick darauf.`,"notify.needsYou":`Der Wizard braucht dich kurz.`,"common.offline":`Keine Verbindung. Prüf dein Netz und versuch es noch einmal.`,"common.retry":`Erneut versuchen`,"common.cancel":`Abbrechen`,"run.start":`Los geht’s`,"run.unavailable":`Dieser Wizard ist gerade nicht verfügbar.`,"run.resume":`Letzten Lauf fortsetzen`,"output.preview":`Vorschau`,"package.newer":`Diese Wizard-Datei stammt aus einer neueren Version oder ist beschädigt. Aktualisiere engenty wizards oder exportiere den Wizard neu.`,"package.badJson":`Das ist keine Wizard-Datei: Die wizard.json darin lässt sich nicht lesen.`,"package.unreadable":`Die Wizard-Datei lässt sich nicht öffnen. Exportiere den Wizard neu und versuche es noch einmal.`,"package.noManifest":`Das ist keine Wizard-Datei: Die wizard.json fehlt.`,"browser.driving":`Du steuerst den Browser – klick und tipp in die Seite. Der Wizard wartet.`,"browser.handBack":`Zurückgeben`,"browser.takeOver":`Übernehmen`,"chat.above":`Antworte oben im Chat`,"chat.badEmail":`Das sieht nicht nach einer E-Mail-Adresse aus.`,"chat.badNumber":`Das sieht nicht nach einer Zahl aus.`,"chat.badUrl":`Das sieht nicht nach einer Webadresse aus.`,"chat.change":`Ändern`,"chat.checked":`Geprüft`,"chat.connected":`Verbunden`,"chat.dictate":`Diktieren (⌘⇧M)`,"chat.dictateStop":`Diktat beenden`,"chat.file":`1 Datei`,"chat.files":{one:`{n} Datei`,other:`{n} Dateien`},"chat.listening":`Ich höre zu …`,"chat.micDenied":`Das Mikrofon ist für diese Seite nicht freigegeben. Erlaube es in den Website-Einstellungen deines Browsers.`,"chat.placeholder":`Deine Antwort …`,"chat.readAloud":`Vorlesen`,"chat.readAloudOff":`Vorlesen beenden`,"chat.required":`Dafür brauche ich eine Antwort.`,"chat.rows":{one:`{n} Zeile`,other:`{n} Zeilen`},"chat.send":`Senden`,"chat.skip":`Überspringen`,"chat.skipped":`Übersprungen`,"chat.transcribing":`Wird in Text umgewandelt …`,"chat.voice":`Sprachnotiz`,"install.add":`Zum Startbildschirm hinzufügen`,"install.app":`In der App öffnen`,"install.bookmark":`Als Lesezeichen speichern`,"install.bookmark.mac":`Drücke ⌘ D, dann liegt dieser Wizard in deinen Lesezeichen.`,"install.bookmark.pc":`Drücke Strg + D, dann liegt dieser Wizard in deinen Lesezeichen.`,"install.ios":`Tippe unten auf „Teilen“ und dann auf „Zum Home-Bildschirm“.`,"run.madeWith":`Erstellt mit engenty wizards`,"run.orAs":`Oder: {label}`,"talk.camera":`Kamera einschalten`,"talk.cameraDenied":`Die Kamera ist für diese Seite nicht freigegeben. Erlaube sie in den Website-Einstellungen deines Browsers.`,"talk.cameraOff":`Kamera ausschalten`,"talk.connecting":`Verbindet …`,"talk.failed":`Das Gespräch ließ sich nicht starten.`,"talk.hint":`Sprich mit dem Wizard. Auf dem Bildschirm kannst du mitlesen.`,"talk.joinHint":`Beim Start fragt dein Browser nach dem Mikrofon, nach der Kamera erst, wenn du sie einschaltest. Im Chat daneben kannst du mitlesen und eingeben, was sich schlecht sagen lässt.`,"talk.listening":`Hört zu`,"talk.live":`Im Gespräch`,"talk.speaking":`Spricht`,"talk.start":`Gespräch beginnen`,"talk.stop":`Gespräch beenden`,"video.cameraOff":`Kamera aus`,"video.ended":`Anruf beendet`,"video.flip":`Kamera wechseln`,"video.hint":`Beim Beitreten fragt dein Browser nach Mikrofon und Kamera. Im Chat daneben kannst du mitlesen und eingeben, was sich schlecht sagen lässt.`,"video.join":`Beitreten`,"video.leave":`Verlassen`,"video.mute":`Stummschalten`,"video.rejoin":`Wieder beitreten`,"video.unmute":`Stummschaltung aufheben`,"video.you":`Du`,"nav.language":`Sprache`}},mv=`en`,hv=null,gv=0,_v=new Set;function vv(){gv+=1;for(let e of _v)e()}function yv(e){e!==mv&&(mv=e,vv())}function bv(e){e!==hv&&(hv=e,vv())}function xv(){return hv}function Sv(){return hv?.lang??mv}function Cv(e){return e.note&&fv(e.note,Sv(),hv?.notes)||e.message}var wv={};function Tv(e){wv=e??{}}function Ev(e){return wv[e]??e}function G(e,t){let n=hv?.runner[e];return hv&&n!==void 0?cv(n,hv.lang,t):sv(pv,e,hv?`en`:mv,t)}var Dv={...pv.de,"brand.tagline":`Wünsch dir was. Hol dir deinen Wizard.`,"brand.sub":`Er führt dich Schritt für Schritt. Die KI erledigt die Arbeit.`,"auth.dev":`Dev-Login (lokal)`,"auth.legal":`Kein Passwort, keine Registrierung – du meldest dich mit einem bestehenden Konto an.`,"auth.signIn":`Anmelden oder Konto erstellen`,"auth.failed":`Die Anmeldung hat nicht geklappt. Versuch es noch einmal.`,"auth.localTitle":`Dieser Browser ist nicht angemeldet`,"auth.localWhy":`Das Studio läuft auf deinem Computer und lässt nur Browser herein, die seinen Link geöffnet haben. Hier fehlt die Anmeldung – vielleicht wurden die Cookies gelöscht.`,"auth.localLink":`Starte eine neue Sitzung:`,"auth.localStartLink":`Oder gib nur den Link aus, ohne einen Browser zu öffnen. Er gilt einmal, eine Minute lang:`,"auth.wrongHost":`Das Studio läuft unter einer anderen Adresse`,"auth.wrongHostWhy":`Die App auf diesem Computer antwortet nur unter ihrer eigenen Adresse – das schützt sie vor fremden Webseiten. Öffne das Studio dort:`,"auth.unreachable":`Die App antwortet gerade nicht`,"auth.unreachableWhy":`Unter {address} läuft das Studio, aber die App dahinter gibt keine Antwort – sie startet vielleicht gerade neu oder ist beendet. Die Seite versucht es weiter.`,"nav.account":`Konto & Guthaben`,"setup.keysInAccount":`API-Keys für Skripte gehören zu deinem Konto. Du legst sie dort an und ziehst sie dort zurück.`,"setup.openAccount":`Konto öffnen`,"class.label":`Modellklasse`,"class.classifier":`Classifier`,"class.standard":`Standard`,"class.high":`High`,"class.highest":`Highest`,"class.image":`Bild`,"class.video":`Video`,"class.audio":`Audio`,"class.speech":`Sprachausgabe`,"class.classifier.hint":`Zuordnen, Ja/Nein, wenige Werte aus Text ziehen. Am günstigsten.`,"class.standard.hint":`Kurze Texte, eine API aufrufen, umformatieren.`,"class.high.hint":`Recherche mit Werkzeugen, lange Dokumente, Abwägen vieler Quellen.`,"class.highest.hint":`Schweres Abwägen oder Code. Kostet ein Vielfaches von High.`,"class.effort":`Denkaufwand`,"class.effortAuto":`Automatisch`,"class.effort.low":`Niedrig`,"class.effort.medium":`Mittel`,"class.effort.high":`Hoch`,"estimate.step":`≈ {n} Credits, selten mehr als {high}`,"estimate.measured":`gemessen aus den letzten Läufen`,"estimate.formula":`geschätzt, wird nach fünf Läufen genauer`,"estimate.share":`Ein Lauf kostet etwa {run} Credits. Beim Tageslimit sind es höchstens {day} Credits am Tag.`,"local.title":`Modelle`,"local.accountWaiting":`Wartet auf die Anmeldung im Browser …`,"local.accountFailed":`Der Kontodienst ist gerade nicht erreichbar.`,"local.accountExpired":`Die Anmeldung ist abgelaufen. Melde dich neu an.`,"local.sourceNeedsAccount":`Dafür brauchst du ein Konto.`,"local.toAccount":`Zu Einstellungen → Konto`,"local.sourceOwn":`Eigene API-Keys`,"local.keys":`API-Keys`,"local.keysHint":`Ein API-Key reicht. Die Keys liegen im Schlüsselbund dieses Geräts, nie in der Datenbank.`,"local.keySet":`hinterlegt`,"local.keyEmpty":`nicht hinterlegt`,"local.keyRemove":`Entfernen`,"local.classes":`Modell je Klasse`,"local.classesHint":`Ein Schritt nennt nur die Klasse. Hier steht, welches Modell sie bedient, z. B. anthropic/claude-haiku-4.5, openai:gpt-5.4-mini oder ollama:qwen3.`,"local.save":`Speichern`,"local.saved":`Gespeichert`,"local.chat":`Der Chat im Studio antwortet über`,"local.chatModels":`Modellklasse Highest`,"local.chatClaude":`Claude-Abo (Claude Code)`,"local.subscription":`Mit dem Abo baut Claude Code auf diesem Computer den Wizard – angemeldet mit deinem Konto dort. Läufe nutzen weiter API-Keys oder Guthaben.`,"harness.hint":`Texte schreibt {name} auf diesem Computer, mit deinem {sub}. Kein API-Key nötig. Bilder, Videos und Audio brauchen weiter einen API-Key.`,"harness.hintImages":`Texte und Bilder erzeugt {name} auf diesem Computer, mit deinem {sub}. Kein API-Key nötig. Videos und Audio brauchen weiter einen API-Key.`,"harness.found":`{name} {version} gefunden`,"harness.missing":`{name} ist auf diesem Computer nicht installiert.`,"harness.install":`Oder in deinem eigenen Terminal:`,"harness.installButton":`{name} installieren`,"harness.installing":`{name} wird im Terminal unten installiert – das dauert etwa eine Minute. Danach meldest du es an.`,"harness.installEnded":`Die Installation ist fertig, aber {name} ist nicht da. Warum, steht oben.`,"harness.appHere":`Die {app}-App ist auf diesem Computer: {name} meldet sich mit demselben {sub} an.`,"harness.notInstalled":`nicht installiert`,"harness.authSubscription":`Angemeldet mit deinem {sub}.`,"harness.authKey":`Angemeldet mit einem API-Key aus deiner Shell, nicht mit dem Abo. Melde dich hier an, damit es über dein {sub} läuft.`,"harness.authNone":`Noch nicht angemeldet.`,"harness.signIn":`Hier anmelden`,"harness.signingIn":`Die Anmeldung läuft im Terminal unten – dein Browser öffnet sich dafür. Das Terminal schließt sich, sobald die Anmeldung da ist.`,"harness.signInInteractive":`Unten startet {name}. Wähle dort die Anmeldung mit deinem {sub} und melde dich im Browser an. Das Terminal schließt sich, sobald die Anmeldung da ist.`,"harness.loginEnded":`Die Anmeldung wurde beendet, ohne dass {name} angemeldet ist.`,"harness.sub.claude":`Claude-Abo`,"harness.sub.codex":`ChatGPT-Abo`,"harness.sub.gemini":`Google-Konto`,"harness.sub.cursor":`Cursor-Abo`,"harness.desc.claude":`Mit deinem Claude-Abo – kein API-Key nötig.`,"harness.desc.codex":`Mit deinem ChatGPT-Abo – kein API-Key nötig.`,"harness.desc.gemini":`Mit deinem Google-Konto – kein API-Key nötig.`,"harness.desc.cursor":`Mit deinem Cursor-Abo – kein API-Key nötig.`,"harness.ready":`angemeldet`,"local.recheck":`Erneut prüfen`,"local.test":`Testen`,"local.testHint":`Ein kurzer Aufruf prüft, ob das Modell erreichbar ist.`,"local.testOk":`Antwort in {s} s über {ref}: „{reply}“`,"local.testFailed":`Der Test hat nicht geklappt: {error}`,"models.groupCaps":`Fähigkeiten`,"models.groupAccess":`Zugänge`,"models.groupMore":`Weitere Anbieter`,"models.cap.text":`Text & Denken`,"models.cap.text.hint":`Schreibt, fasst zusammen, recherchiert und entscheidet – in fast jedem Schritt.`,"models.cap.image":`Bilder`,"models.cap.image.hint":`Erzeugt Bilder: Logos, Produktfotos, Illustrationen.`,"models.cap.video":`Videos`,"models.cap.video.hint":`Erzeugt kurze Clips aus Text oder aus einem Bild.`,"models.cap.speech":`Sprachausgabe`,"models.cap.speech.hint":`Liest Texte vor: Voice-over, Hörfassungen, Ansagen.`,"models.cap.listening":`Sprachnotizen`,"models.cap.listening.hint":`Versteht Gesprochenes und macht aus Sprachnotizen Text.`,"models.way.local":`Lokales Modell`,"models.way.credits":`Guthaben`,"models.way.creditsTeam":`Guthaben des Teams`,"models.way.none":`nicht eingerichtet`,"models.who":`Wer macht das?`,"models.optSubscription":`Dein Abo`,"models.optKey":`Eigener API-Key`,"models.optLocal":`Lokales Modell`,"models.optLocalNote":`Ollama auf diesem Computer`,"models.optApple":`Apple Intelligence`,"models.optAppleNote":`auf diesem Mac, ohne Internet`,"models.appleOff":`ausgeschaltet – Systemeinstellungen → Apple Intelligence & Siri`,"models.appleLoading":`Apple lädt das Modell noch`,"models.appleDevice":`nicht auf diesem Mac`,"models.appleHint":`Kurze Texte und Entscheidungen (Classifier, Standard) übernimmt Apple Intelligence auf diesem Mac. Nichts verlässt ihn. Recherche, lange Dokumente und Code (High, Highest): {way}.`,"models.appleListenHint":`Sprachnotizen schreibt dieser Mac selbst auf – nichts verlässt ihn. Beim ersten Mal lädt Apple die Sprache nach.`,"models.noteIncluded":`im Abo enthalten`,"models.noteSignedOut":`nicht angemeldet`,"models.noteMissing":`nicht installiert`,"models.noteKey":`API-Key hinterlegt`,"models.noteKeyShort":`Key`,"models.noteSignedIn":`angemeldet`,"models.noteShellKey":`API-Key aus der Shell`,"models.optOther":`Andere`,"models.optCreditsGroup":`engenty`,"models.noteNoKey":`API-Key fehlt`,"models.noteNeedsAccount":`Konto nötig`,"models.notePerImage":`≈ {n} Credits je Bild`,"models.notePerSecond":`≈ {n} Credits je Sekunde`,"models.notePer1k":`≈ {n} Credits je 1000 Zeichen`,"models.notePerMinute":`≈ {n} Credits je Minute`,"models.creditsAuto":`engenty wählt: {model}`,"models.creditsAutoNone":`engenty wählt das Modell`,"models.creditsPickHint":`Abgerechnet in Credits – ohne eigenen API-Key.`,"models.viaCredits":`{name} über engenty-Guthaben`,"models.viaCreditsHint":`Ohne eigenen API-Key, abgerechnet in Credits.`,"models.viaCreditsNeedsAccount":`Mit einem engenty-Konto, abgerechnet in Credits.`,"models.noteUsage":`Credits nach Verbrauch`,"models.model":`Modell`,"models.modelCustom":`Eigenes Modell …`,"models.textSimple":`Einfache Schritte`,"models.textDemanding":`Anspruchsvolle Schritte`,"models.perClass":`Je Klasse anpassen`,"models.manageKey":`API-Key von {name}`,"models.key":`API-Key`,"models.keyFor":`API-Key von {name}`,"models.keyGet":`Key bei {name} holen`,"models.keySave":`Prüfen und speichern`,"models.keyStored":`API-Key hinterlegt`,"models.keyNone":`Kein API-Key`,"models.keyCheck":`Prüfen`,"models.keyReplace":`Ersetzen`,"models.keyRemove":`Entfernen`,"models.keyOk":`Der Key funktioniert.`,"models.keyBad":`Der Key wurde nicht angenommen.`,"models.keyWhereLocal":`Der Key bleibt auf diesem Computer, nie in der Datenbank.`,"models.keyWhereCloud":`Der Key liegt verschlüsselt beim Team. Niemand sieht ihn wieder.`,"models.keyFallback":`Bis der Key da ist, springt das Guthaben ein.`,"models.uses":`Wofür`,"models.useFor":`Verwenden`,"models.inUse":`wird genutzt`,"models.try":`Ausprobieren`,"models.try.text":`Testen`,"models.try.image":`Probebild erzeugen`,"models.try.video":`Probeclip erzeugen`,"models.try.speech":`Probe anhören`,"models.try.listening":`Zuhören testen`,"models.tryCost":`Kostet wie ein echter Aufruf.`,"models.tryCostVideo":`Ein Clip von 4 Sekunden – kostet wie ein echter.`,"models.tryWait":`Wird erzeugt …`,"models.tryWaitVideo":`Ein Clip dauert ein bis zwei Minuten …`,"models.tryOk":`In {s} s mit {model}`,"models.tryHeard":`Gehört: „{text}“`,"models.tryHeardNothing":`Nichts gehört – aber das Modell ist erreichbar.`,"models.tryFailed":`Das hat nicht geklappt: {error}`,"models.creditsName":`engenty-Guthaben`,"models.creditsTeam":`Guthaben des Teams`,"models.creditsLocalLead":`Springt ein, wo kein Abo und kein eigener API-Key eingerichtet ist.`,"models.creditsCloudHint":`Alles ohne eigenen API-Key läuft über das Guthaben. Eigene Keys gehen vor und kosten keine Credits.`,"models.creditsConnectTitle":`Mit einem Konto`,"models.creditsLocalHint":`Mit einem engenty-Konto springt das Guthaben ein, wo nichts Eigenes eingerichtet ist – etwa für Videos ohne eigenen API-Key.`,"models.creditsConnect":`Konto verbinden`,"models.creditsFallback":`Guthaben springt ein`,"models.creditsFallbackOn":`Was kein Abo und keinen eigenen API-Key hat, läuft über das Guthaben.`,"models.creditsFallbackOff":`Aus: Was kein Abo und keinen eigenen API-Key hat, läuft nicht.`,"models.creditsOn":`Läuft über das Guthaben`,"models.creditsNone":`Gerade läuft nichts über das Guthaben.`,"models.creditsTopUp":`Aufladen`,"models.creditsPicks":`engenty wählt das Modell und rechnet in Credits ab.`,"models.creditsModel":`Gerade: {model}.`,"models.clientSignIn":`Anmeldung`,"models.clientImages":`{name} erzeugt Bilder mit deinem {sub} – ohne eigenen API-Key.`,"models.clientNotChosen":`Text läuft gerade nicht über {name}.`,"models.ollamaHint":`Adresse von Ollama und das Modell, das dort läuft.`,"models.readOnly":`Nur Admins des Teams ändern die Modelle.`,"models.viewAs":`Vorschau als`,"models.view.auto":`aktuell`,"models.view.local":`Computer`,"models.view.linked":`Computer + Konto`,"models.view.cloud":`Cloud`,"setup.title":`Setup`,"setup.sub":`engenty kann deine vorhandenen Konten auf deinem Computer nutzen.`,"setup.source":`Womit soll engenty denken?`,"setup.local":`Läuft auf diesem Computer.`,"setup.thisComputer":`Dieser Computer: Space {space} von {team}`,"setup.account":`Dein engenty-Konto`,"setup.accountText":`Dein Team, sein Space und deine Wizards liegen in deinem Konto. Dieser Computer tritt dem Space bei.`,"setup.accountLinked":`Angemeldet als {name}`,"setup.accountCredits":`{credits} Credits`,"setup.creditsChoice":`engenty-Guthaben`,"setup.creditsDesc":`Läuft über das Guthaben deines Kontos, wie in der Cloud. Nichts zu installieren.`,"onboard.kicker1":`Willkommen, {name} · Wer du bist`,"onboard.kicker1Anon":`Willkommen · Wer du bist`,"onboard.team":`Wie heißt dein Team?`,"onboard.teamSub":`Deine Firma, dein Verein oder einfach dein Name. Das Team ist dein Konto: Dort liegen dein Guthaben und deine Wizards. Umbenennen kannst du es jederzeit.`,"onboard.teamPlaceholder":`Platzer Fenster & Türen`,"onboard.kind":`Wofür nutzt du engenty?`,"onboard.kindSub":`Damit wir dir die passenden Vorlagen und Tipps zeigen.`,"onboard.guess":`Aus {domain} geraten: {kind}. Stimmt das nicht, wähl einfach anders.`,"onboard.kindPersonal":`Für mich`,"onboard.kindPersonalSub":`Privat, Hobby, Ausprobieren`,"onboard.kindClub":`Verein`,"onboard.kindClubSub":`Verein, Initiative, Ehrenamt`,"onboard.kindSmall":`Kleines Unternehmen`,"onboard.kindSmallSub":`Selbstständig bis 49 Leute`,"onboard.kindCorp":`Unternehmen`,"onboard.kindCorpSub":`Ab 50 Leuten`,"onboard.personalTitle":`Was wünschst du dir von engenty?`,"onboard.personalPlaceholder":`z. B. Bewerbungen schreiben, Fotos für Kleinanzeigen, Reisen planen`,"onboard.clubTitle":`Erzähl uns von deinem Verein`,"onboard.businessTitle":`Erzähl uns von deinem Unternehmen`,"onboard.clubKind":`Art des Vereins`,"onboard.members":`Mitglieder`,"onboard.yourRole":`Deine Rolle`,"onboard.people":`Wie viele seid ihr?`,"onboard.justMe":`Nur ich`,"onboard.sector":`Branche`,"onboard.sectorPlaceholder":`z. B. Tischlerei, Physiotherapie, Online-Shop`,"onboard.need":`Was brauchst du?`,"onboard.needPlaceholder":`z. B. Angebote schneller schreiben, Anfragen von der Website beantworten`,"onboard.optional":`optional`,"onboard.legalName":`Offizieller Firmenname`,"onboard.legalNamePlaceholder":`z. B. Muster Handels GmbH`,"onboard.phone":`Telefon`,"onboard.phoneWhy":`für Rückfragen zu Vertrag und Rechnung`,"onboard.club.sport":`Sport`,"onboard.club.culture":`Kultur & Musik`,"onboard.club.social":`Soziales`,"onboard.club.education":`Bildung`,"onboard.club.environment":`Umwelt`,"onboard.club.rescue":`Feuerwehr & Rettung`,"onboard.club.other":`Anderes`,"onboard.role.chair":`Vorsitz`,"onboard.role.board":`Vorstand`,"onboard.role.treasurer":`Kasse`,"onboard.role.secretary":`Schriftführung`,"onboard.role.member":`Mitglied`,"onboard.role.management":`Geschäftsführung`,"onboard.role.it":`IT`,"onboard.role.marketing":`Marketing`,"onboard.role.sales":`Vertrieb`,"onboard.role.operations":`Betrieb & Prozesse`,"onboard.role.other":`Anderes`,"onboard.siteNameHint":`Keine Adresse? Ein Name genügt, wir merken ihn uns.`,"onboard.back":`Zurück`,"onboard.kicker2":`Über dich & deine Marke`,"onboard.site":`Wo können die Wizards über dich lesen?`,"onboard.siteSub":`Nenn deine Website, und engenty holt sich Namen, Tätigkeit, Logo und Farben von dort. Jeder Wizard klingt dann wie du und sieht aus wie du. Keine Website? Schreib stattdessen eine Zeile über dich.`,"onboard.sitePlaceholder":`platzer-fenster.at`,"onboard.read":`Einlesen`,"onboard.reading":`Liest …`,"onboard.readDone":`Gelesen: {name}{details}.`,"onboard.readAbout":`, was du tust`,"onboard.readColors":`, {n} Farben`,"onboard.readLogo":`, das Logo`,"onboard.readFailed":`Die Seite ließ sich nicht lesen. Prüf die Adresse, oder schreib eine Zeile über dich.`,"onboard.line":`Lieber eine Zeile schreiben`,"onboard.linePlaceholder":`Wir fertigen und montieren Fenster und Türen in Oberösterreich, für Privathäuser und Bauträger. Freundlich, auf den Punkt.`,"onboard.save":`Speichern`,"onboard.skip":`Später`,"onboard.kicker3":`Wissen`,"onboard.know":`Was sollen die Wizards wissen?`,"onboard.knowSub":`Dokumente, in denen die Wizards nachschlagen dürfen: Preislisten, Broschüren, deine AGB, ein FAQ. PDF, Word, Excel. Ein Wizard antwortet daraus, statt zu raten. Mehr geht jederzeit unter Space → Wissen.`,"onboard.drop":`Dateien hier ablegen oder auswählen`,"onboard.uploading":`liest …`,"onboard.uploaded":`gelesen`,"onboard.uploadFailed":`nicht gelesen`,"onboard.kicker4":`Dein Space`,"onboard.space":`All das liegt in deinem Space.`,"onboard.spaceSub":`Der erste Space deines Teams heißt {space}. Hier liegt alles, was deine Wizards gemeinsam nutzen und erzeugen. Jeder KI-Schritt kennt den Space, darum fragt ein Wizard nie nach deinem Namen oder deinen Preisen. Umbenennen kannst du ihn jederzeit, das Haus in der App-Leiste öffnet ihn.`,"onboard.partInfo":`Info & Marke`,"onboard.partInfoText":`Wer du bist und wie du aussiehst: Titel, Über uns, Logo, Farben, Fakten.`,"onboard.partKnow":`Wissen`,"onboard.partKnowText":`Worin jeder KI-Schritt nachschlägt: deine Dokumente und Seiten.`,"onboard.partData":`Daten`,"onboard.partDataText":`Tabellen und Seiten, die deine Wizards führen: Anfragen, Buchungen, Listen. Füllt sich, während deine Wizards laufen.`,"onboard.partResults":`Ergebnisse`,"onboard.partResultsText":`Alle abgeschlossenen Läufe, nach Wizard sortiert. PDF, Word, Bilder, Video.`,"onboard.build":`Deinen ersten Wizard bauen`,"onboard.continue":`Weiter`,"onboard.step":`Schritt {n} von 4`,"setup.stage.connect":`Verbinden`,"setup.stage.test":`Testen`,"setup.stage.done":`Fertig`,"setup.h.install":`{name} installieren`,"setup.h.signIn":`{name} anmelden`,"setup.h.keys":`API-Key eintragen`,"setup.h.test":`Ein kurzer Test`,"setup.h.done":`Verbunden`,"setup.ready":`Alles bereit.`,"setup.noHarness":`Noch kein KI-Client installiert. Wähle einen aus – er wird dann hier installiert. Oder trage eigene API-Keys ein.`,"setup.ownDesc":`AI Gateway, OpenAI, Anthropic oder Ollama.`,"setup.appleDesc":`Das Modell auf diesem Mac – ohne Konto, ohne Internet.`,"setup.appleHint":`Kurze Texte und Entscheidungen übernimmt Apple Intelligence auf diesem Mac. Nichts verlässt ihn. Für Recherche, lange Dokumente und Code richtest du später unter Einstellungen → Modelle einen weiteren Zugang ein.`,"setup.appleHintKeeps":`Kurze Texte und Entscheidungen übernimmt Apple Intelligence auf diesem Mac. Nichts verlässt ihn. Recherche, lange Dokumente und Code (High, Highest) bleiben, wie sie waren: {way}.`,"setup.recommended":`Empfohlen`,"setup.done":`Zum Studio`,"setup.untilWorks":`Das Studio öffnet sich, sobald der Test klappt.`,"cloud.notSent":`Diese Version ist noch nicht in der Cloud.`,"cloud.send":`Jetzt senden`,"cloud.resend":`Erneut senden`,"cloud.again":`Um {when} versuchen wir es noch einmal.`,"cloud.sent":`Version {v} · in der Cloud angekommen am {when}`,"cloud.notRunnable":`Version {v} läuft in der Cloud nicht.`,"cloud.keepsRunning":`Dort läuft weiter Version {v}.`,"cloud.nothingRuns":`Dort läuft deshalb noch nichts.`,"cloud.notes":`Was in der Cloud anders läuft:`,"cloud.check":`Was dem jetzigen Stand in der Cloud fehlen würde:`,"cloud.checkBlocking":`So, wie der Wizard jetzt ist, würde er in der Cloud nicht laufen:`,"cloud.documents":`Die Dokumente des Space bleiben auf diesem Computer. In der Cloud arbeiten die Schritte ohne sie.`,"cloud.stepName":`„{title}“`,"cloud.problem.sandbox":`In der Cloud kann kein Code ausgeführt werden. Der Schritt läuft dort ohne.`,"cloud.problem.mcp":`Die MCP-Server des Space gibt es in der Cloud nicht: {detail}.`,"cloud.problem.model":`Dafür gibt es in der Cloud kein Modell.`,"cloud.problem.connector":`Dem Space fehlt in der Cloud ein Connector.`,"cloud.problem.invalid":`So nimmt die Cloud den Wizard nicht an.`,"cloud.spaceLimit":`In der Cloud deines Kontos liegt schon der Space eines anderen Computers:`,"cloud.replace":`Bisherigen Space ersetzen`,"cloud.replaceConfirm":`Den bisherigen Space aus der Cloud entfernen? Seine Wizards und ihre Links verschwinden dort. Danach kommt in der Cloud an, was hier veröffentlicht ist.`,"cloud.noticeError":`Hier veröffentlicht. In der Cloud ist diese Version nicht angekommen – mehr dazu unten.`,"cloud.noticeNotRunnable":`Hier veröffentlicht. In der Cloud läuft diese Version nicht – mehr dazu unten.`,"readonly.wizard":`Diesen Wizard bearbeitest du in engenty wizards auf deinem Computer. Veröffentlichst du ihn dort, läuft die neue Version hier.`,"readonly.project":`Diesen Space bearbeitest du in engenty wizards auf deinem Computer. Änderungen erscheinen hier, sobald du dort wieder einen Wizard veröffentlichst.`,"readonly.server":`Hier laufen die Wizards, die du in engenty wizards auf deinem Computer veröffentlichst. Gebaut und bearbeitet wird dort.`,"nav.wizards":`Wizards`,"nav.spaceMenu":`Space-Menü`,"nav.renameSpace":`Space-Namen bearbeiten`,"nav.wizardsInSpace":`Wizards im Space`,"nav.addWizard":`Wizard hinzufügen`,"nav.spaceLocal":`Auf diesem Computer`,"nav.spaceCloud":`In der Cloud`,"nav.settings":`Einstellungen`,"nav.project":`Space`,"nav.switchSpace":`Space wechseln`,"nav.addSpace":`Space hinzufügen`,"nav.wizardCount":{one:`{n} Wizard`,other:`{n} Wizards`},"appbar.position":`Position`,"appbar.left":`Links`,"appbar.top":`Oben`,"appbar.right":`Rechts`,"appbar.bottom":`Unten`,"appbar.theme":`Farbschema`,"appbar.light":`Hell`,"appbar.dark":`Dunkel`,"appbar.system":`Systemstandard`,"account.title":`Konto`,"account.hint":`Wie dich die App nennt und wie man dich erreicht.`,"account.initials":`Dein Kürzel im Menü oben rechts: die Anfangsbuchstaben deines Namens.`,"account.name":`Name`,"account.nameHint":`Anfangs steht hier der Benutzername dieses Computers.`,"account.fromAccount":`Name und E-Mail kommen aus deinem Konto.`,"account.about":`Über dich`,"account.aboutHint":`Wer du bist und was du machst.`,"account.email":`E-Mail`,"account.phone":`Telefon`,"account.connection":`engenty.ai`,"account.connectionHint":`Anmeldung, Guthaben und die Cloud, in der deine Wizards für alle laufen.`,"account.profile":`Profil`,"account.local":`Auf deinem Computer`,"account.localText":`Diese App läuft auf deinem Computer und ist mit keinem Konto verbunden. Wizards, Space und Dateien bleiben hier.`,"account.linked":`Verbunden`,"account.with":`Mit einem Konto`,"account.withCredits":`Guthaben für die Modelle, wo kein KI-Client installiert ist. Kein API-Key nötig.`,"account.withCloud":`Was du veröffentlichst, läuft auch auf engenty.ai, über einen öffentlichen Link – auch wenn dein Computer aus ist.`,"account.signIn":`Anmelden`,"account.signInAgain":`Neu anmelden`,"account.new":`Noch kein Konto?`,"account.newHint":`Ein neues Konto braucht einen Einladungscode. Trag ihn hier ein, dann steht er bei der Registrierung schon im Formular.`,"account.code":`Einladungscode`,"account.create":`Konto erstellen`,"account.credits":`Guthaben`,"account.topUp":`Aufladen`,"account.expires":{one:`{n} Credit gültig bis {date}`,other:`{n} Credits gültig bis {date}`},"account.kind.start":`Startguthaben`,"account.kind.monthly":`Monatsguthaben`,"account.kind.gift":`Geschenkt`,"account.cloud":`Was du hier veröffentlichst, läuft auch auf {host}.`,"account.look":`Darstellung`,"account.lookHint":`Sprache und Design der App in diesem Browser.`,"nav.logout":`Abmelden`,"nav.connected":`Verbunden mit {host}`,"nav.expired":`Anmeldung abgelaufen`,"nav.onlyHere":`Nur auf diesem Computer`,"nav.local":`lokal`,"nav.theme":`Design`,"nav.credits":{one:`{n} Credit`,other:`{n} Credits`},"about.version":`Version {v}`,"about.title":`Über engenty wizards`,"about.kind.script":`Auf deinem Computer`,"about.kind.checkout":`Entwicklungs-Checkout`,"about.kind.npm":`Mit npm installiert`,"about.kind.cloud":`In der Cloud`,"about.update.check":`Nach Updates suchen`,"about.update.checking":`Sucht nach Updates …`,"about.update.upToDate":`Du bist auf dem neuesten Stand.`,"about.update.checkedAt":`zuletzt geprüft {when}`,"about.update.unknown":`Die Prüfung hat nicht geklappt. Keine Verbindung zu GitHub?`,"about.update.off":`Die Suche nach Updates ist abgeschaltet.`,"about.update.manual":`Diese Installation aktualisiert sich nicht selbst: Hol dir die neue Version dort, wo du sie installiert hast.`,"about.tab.new":`Was ist neu`,"about.tab.earlier":`Versionen`,"about.changes":{one:`{n} Änderung`,other:`{n} Änderungen`},"about.change":`1 Änderung`,"about.update.available":`Version {v} von engenty wizards ist da.`,"about.update.install":`Aktualisieren`,"about.update.installing":`Version {v} wird installiert …`,"about.update.restarting":`Startet neu mit Version {v} …`,"about.update.done":`Installiert. Starte engenty wizards neu, um {v} zu nutzen.`,"about.update.failed":`Das Update hat nicht geklappt. Details stehen in logs/update.log.`,"about.update.notes":`Was ist neu`,"about.changelog":`Changelog`,"about.changelogHint":`Was sich von Version zu Version geändert hat.`,"about.changelogEmpty":`Noch keine Einträge.`,"about.unreleased":`Noch nicht veröffentlicht`,"about.breaking":`inkompatibel`,"about.credits":`Open Source`,"about.creditsHint":`engenty wizards und die Open-Source-Software, auf der es aufbaut.`,"about.creditsProduct":`engenty`,"about.creditsBuiltWith":`Gebaut mit`,"about.creditsDeps":`Direkte Abhängigkeiten`,"about.creditsDepsHint":`Was die Teile dieser App selbst einbinden, mit Version und Lizenz – ohne deren eigene Abhängigkeiten.`,"about.creditsShared":`Von mehreren Teilen genutzt`,"about.search":`Suchen …`,"about.noMatches":`Nichts gefunden.`,"theme.dark":`Dunkles Design`,"theme.light":`Helles Design`,"home.title":`Wizards in {space}`,"home.search":`Wizards suchen …`,"home.noMatch":`Keiner deiner Wizards heißt so.`,"home.newFromSearch":`Neuen Wizard bauen: „{q}“`,"home.new":`Neuer Wizard`,"home.import":`Importieren`,"import.failed":`Der Import hat nicht geklappt.`,"home.empty":`Noch keine Wizards in diesem Space.`,"home.live":`Live`,"home.draft":`Entwurf`,"where.here":`Lokal`,"where.hereVersion":`Lokal · Version {v}`,"where.hereHint":`Läuft nur auf diesem Computer, solange die App läuft.`,"where.liveHint":`Läuft auf {host} – für alle mit dem Link.`,"where.liveAt":`Live auf {host} · Version {v}`,"where.note":`1 Hinweis`,"where.notes":{one:`{n} Hinweis`,other:`{n} Hinweise`},"where.sending":`Unterwegs in die Cloud …`,"where.missing":`Nicht in der Cloud`,"home.steps":{one:`{n} Schritt`,other:`{n} Schritte`},"home.all":`Alle`,"home.newProject":`Neuer Space`,"home.projectName":`Name des Space`,"home.projectLimit":{one:`Höchstens {n} Space`,other:`Höchstens {n} Spaces`},"team.title":`Team`,"team.hint":`Wer im Team ist und auf welchem Paket es läuft. Einladen und verwalten kannst du im Konto.`,"team.plan":`Paket`,"team.planFree":`Free`,"team.seats":`{taken} von {limit} Plätzen`,"team.seatsUnlimited":`Plätze ohne Limit`,"team.members":`Mitglieder`,"team.invited":`eingeladen`,"team.you":`du`,"team.manage":`Mitglieder verwalten`,"team.changePlan":`Paket ansehen`,"team.roles":`Inhaber:innen und Admins legen Wizards und Spaces an und löschen sie. Mitglieder bearbeiten die vorhandenen Wizards.`,"team.memberNote":`Du bist Mitglied: Du bearbeitest Wizards. Admins legen neue an und löschen sie.`,"team.failed":`Das Team ließ sich nicht laden.`,"team.role.owner":`Inhaber:in`,"team.role.admin":`Admin`,"team.role.member":`Mitglied`,"models.ownKeysPlan":`Eigene API-Keys gibt es ab dem Pro-Paket. Hier wird mit den Credits des Teams bezahlt.`,"home.fromLocal":`Wird auf deinem Computer bearbeitet.`,"home.syncedAt":`Zuletzt angekommen: {when}.`,"home.local.title":`Hier laufen die Wizards von deinem Computer`,"home.local.text":`Du baust auf deinem eigenen Computer. Was du dort veröffentlichst, läuft hier, für alle mit dem Link.`,"home.local.install":`Installiere engenty wizards auf deinem Computer:`,"home.local.signIn":`Melde dich dort unter Einstellungen → Konto mit diesem Konto an.`,"home.local.publish":`Veröffentliche einen Wizard. Er erscheint dann hier.`,"new.title":`Was soll dein Wizard können?`,"new.placeholder":`z. B. Kund:innen geben ihr Produkt und ihre Zielgruppe ein, der Wizard recherchiert die Konkurrenz und erstellt daraus ein Positionierungs-Briefing als PDF.`,"new.build":`Wizard bauen`,"new.orStarter":`Oder beginne mit einer Vorlage`,"new.import":`Wizard-Datei importieren`,"new.hint":`Du kannst danach alles im Chat ändern.`,"guest.signIn":`Anmelden`,"guest.hint":`Danach meldest du dich an. Dein Wunsch bleibt dabei stehen.`,"onboard.wish":`Dein Wunsch`,"onboard.wishNext":`Gleich danach baut das Studio deinen Wizard.`,"legal.imprint":`Impressum`,"legal.privacy":`Datenschutz`,"legal.terms":`Nutzungsbedingungen`,"new.runsAs":`Läuft als`,"new.where":`Wie soll er laufen?`,"new.web":`Im Browser`,"new.phone":`Am Telefon`,"new.messages":`Per Nachricht`,"new.off":`aus`,"new.ch.steps":`Wizard in Schritten`,"new.ch.chat":`Chat`,"new.ch.talk":`Sprachgespräch`,"new.ch.video":`Videoanruf`,"new.ch.call":`Anruf`,"new.ch.sms":`SMS`,"new.ch.whatsapp":`WhatsApp`,"new.callHandoff":`Was am Telefon nicht geht, kommt per SMS.`,"new.similar":`Ähnliches gibt es schon`,"new.yours":`Deiner`,"new.template":`Vorlage`,"new.open":`Öffnen`,"new.take":`Übernehmen`,"new.more":`{n} weitere …`,"new.dropHint":`Zum Anhängen loslassen`,"editor.resize":`Breite ändern – Doppelklick setzt zurück`,"editor.resizeSheet":`Höhe ändern – Tippen klappt ein und aus`,"editor.export":`Als Wizard-Datei exportieren (.wizard)`,"wizardMenu.label":`Mehr`,"wizardMenu.duplicate":`Duplizieren`,"wizardMenu.delete":`Löschen`,"wizardMenu.deleteTitle":`„{title}“ löschen?`,"wizardMenu.deleteDraft":`Der Wizard und sein Verlauf werden gelöscht. Das lässt sich nicht rückgängig machen.`,"wizardMenu.deletePublished":`Der Wizard wird gelöscht. Sein Link geht dann nicht mehr, und die veröffentlichte Version verschwindet – auch aus der Cloud, wenn ein Konto verbunden ist. Das lässt sich nicht rückgängig machen.`,"addStep.title":`Was soll hier passieren?`,"addStep.placeholder":`Zum Beispiel: eine Karte mit allen gefundenen Objekten, der Preis als Farbe`,"addStep.kind":`Art des Schritts`,"addStep.auto":`KI wählt`,"addStep.empty":`Beschreibe zuerst, was der Schritt tun soll.`,"addStep.busy":`Der Assistent arbeitet noch an der letzten Nachricht. Versuch es gleich noch einmal.`,"addStep.emptyStep":`Leer einfügen`,"addStep.cancel":`Abbrechen`,"addStep.create":`Erstellen`,"addStep.building":`Neuer Schritt wird gebaut …`,"addStep.showChat":`Im Chat ansehen`,"addStep.add":`Schritt hinzufügen`,"surface.preview":`Vorschau`,"surface.code":`Code`,"surface.sampleNote":`Mit Beispieldaten – ein Lauf zeigt seine eigenen.`,"surface.sampleText":`Beispieltext`,"surface.sampleBrand":`Deine Firma`,"addStep.when":`Wann?`,"addStep.always":`Immer`,"addStep.onlyIf":`Nur wenn …`,"addStep.aiDecides":`KI entscheidet …`,"addStep.ifPlaceholder":`Zum Beispiel: Umsatz unter 100`,"addStep.askPlaceholder":`Zum Beispiel: Die Person will ihr Geld zurück`,"addStep.whenEmpty":`Sag, wann der Schritt kommen soll.`,"addStep.messageIf":`Nur wenn: {text} – sonst geht es nach „{from}“ weiter wie bisher.`,"addStep.messageAsk":`KI entscheidet: {text} – sonst geht es nach „{from}“ weiter wie bisher.`,"addStep.here":`Hier einen Schritt einfügen`,"addStep.between":`Zwischen „{before}“ und „{after}“`,"addStep.after":`Nach „{title}“`,"addStep.first":`Als erster Schritt, vor „{title}“`,"addStep.message":`Neuer Schritt · {place}`,"addStep.messageAs":`Neuer Schritt ({kind}) · {place}`,"widget.missing":`Das Widget ist noch nicht gebaut.`,"widget.what":`Was soll das Widget zeigen? (optional)`,"widget.build":`Vom Assistenten bauen lassen`,"widget.upload":`Eigenes HTML hochladen`,"widget.buildMessage":`Bitte baue das Widget „{title}“. {what}`,"editor.chat":`Assistent`,"editor.flow":`Ablauf`,"editor.dropToAttach":`Loslassen, um es der Nachricht anzuhängen`,"editor.memory":`Gedächtnis`,"memory.explain":`Was der Wizard über alle Läufe hinweg weiß. Dazu gehören Notizen, die KI-Schritte mit dem Werkzeug „Seiten“ lesen und fortschreiben, und die Tabellen seiner geteilten Listen. Dieselben Daten findest du auch unter Daten.`,"memory.unused":`Noch nutzt kein Schritt das Gedächtnis. Bitte den Assistenten, dass sich ein KI-Schritt etwas merken soll.`,"memory.none":`Noch nichts gemerkt.`,"memory.add":`Notiz`,"memory.newNote":`Notiz`,"memory.back":`Gedächtnis`,"memory.testCopy":`Testläufe lesen das Gedächtnis, schreiben aber in eine eigene Kopie, die mit dem Lauf verschwindet.`,"editor.step":`Schritte`,"editor.runs":`Läufe`,"editor.reviewEditable":`bearbeitbar`,"editor.reviewRedo":`kann neu erstellt werden`,"editor.otherwise":`sonst`,"editor.next.title":`Nächster Schritt`,"editor.next.ways":{one:`Nächster Schritt · {count} Weg`,other:`Nächster Schritt · {count} Wege`},"editor.next.open":`Schritt öffnen`,"editor.next.then":`Danach`,"editor.next.fold":`Zuklappen`,"editor.next.unfold":`Aufklappen`,"editor.branch.ai":`KI`,"editor.branch.addWhen":`Bedingung`,"editor.branch.when":`Weiter, wenn`,"editor.branch.pick":`Wählen …`,"editor.branch.and":`und`,"editor.branch.statement":`Aussage`,"editor.branch.none":`Keine trifft klar zu`,"editor.branch.how":`Das entscheidet ein Entscheidungsmodell (Jev), wenn es eines dafür gibt. Sonst entscheidet das Sprachmodell der Klasse Classifier. Liegen die zwei wahrscheinlichsten Antworten weniger als 10 Punkte auseinander, gilt „keine“.`,"editor.branch.lastRun":`Im letzten Testlauf entschieden von {source}.`,"editor.branch.bySystemOne":`einem Entscheidungsmodell`,"editor.branch.byLlm":`dem Sprachmodell`,"editor.branch.notYet":`Ein Testlauf zeigt hier, wie die KI entschieden hat.`,"editor.branch.end":`Ende`,"editor.branch.max":`Höchstens so oft (sonst 10)`,"editor.branch.remove":`Verzweigung entfernen`,"editor.branch.addAsk":`KI entscheidet`,"editor.branch.newAsk":`Die Person möchte …`,"editor.whenFilled":`{field} ausgefüllt`,"editor.whenEmpty":`{field} leer`,"editor.whenContains":`{field} enthält {value}`,"editor.whenAsk":`entscheidet: {text}`,"editor.surfaceJson":`Ansicht (JSON)`,"editor.fieldAsk":`Oder: zeigen, wenn die KI das für zutreffend hält …`,"editor.atMost":`höchstens {count}×`,"editor.shownWhen":`Nur zeigen, wenn`,"editor.shownAlways":`Immer zeigen`,"editor.conditionValue":`Wert`,"editor.optionsFrom":`Auswahl aus früheren Daten`,"editor.optionsFixed":`Feste Auswahl`,"editor.op.equals":`ist`,"editor.op.notEquals":`ist nicht`,"editor.op.in":`ist eins von`,"editor.op.notEmpty":`ist ausgefüllt`,"editor.op.empty":`ist leer`,"editor.op.gt":`größer als`,"editor.op.lt":`kleiner als`,"editor.op.contains":`enthält`,"editor.conditionsMore":{one:`und {count} weitere Bedingung`,other:`und {count} weitere Bedingungen`},"tool.web_search":`Websuche`,"tool.web_fetch":`Webseiten lesen`,"tool.browser":`Browser`,"tool.sandbox":`Code & Shell`,"tool.image":`Bilder`,"tool.http":`API`,"tool.pages":`Seiten`,"editor.test":`Testen`,"editor.share":`Teilen`,"editor.published":`Live · Version {v}`,"editor.notPublished":`Noch nicht veröffentlicht`,"editor.composer":`Beschreibe, was sich ändern soll …`,"editor.attach":`Dateien anhängen`,"editor.detach":`Entfernen`,"editor.attached":`Angehängt`,"editor.thread":`Verlauf`,"editor.voice":`Diktieren`,"editor.voiceStop":`Diktat beenden`,"editor.listening":`Ich höre zu …`,"editor.transcribing":`Wird in Text umgewandelt …`,"editor.micDenied":`Das Mikrofon ist für diese Seite nicht freigegeben. Erlaube es in den Website-Einstellungen deines Browsers.`,"editor.building":`Baut den Ablauf …`,"editor.files":`Dateien`,"files.explain":`Diese Dateien nutzt dein Wizard bei jedem Lauf, etwa Widget-Code, Bibliotheken oder Preislisten. Der Assistent legt sie im Chat an. Du kannst auch eigene hochladen.`,"files.upload":`Hochladen`,"files.drop":`Zum Hochladen loslassen`,"files.count":{one:`{n} Datei · {size}`,other:`{n} Dateien · {size}`},"files.empty":`Noch keine Dateien. Zieh Dateien hierher oder bitte den Assistenten, ein Widget zu bauen.`,"files.download":`Herunterladen`,"files.delete":`Löschen`,"files.confirmDelete":`„{path}“ löschen?`,"files.none":`Dieser Wizard hat keine Dateien.`,"editor.thinking":`Denkt nach …`,"editor.chatBroken":`Die Verbindung ist abgebrochen. Was schon gebaut war, ist gespeichert. Schick die Nachricht noch einmal.`,"editor.issues":`Bevor du testest oder teilst, braucht der Wizard noch Korrekturen:`,"editor.fixWithChat":`Vom Assistenten beheben lassen`,"editor.models.blocking":`So kann der Wizard nicht starten. Es fehlen Modelle:`,"editor.models.optional":`Diese Schritte laufen so nicht. Wähle beim Testen einen Weg ohne sie oder richte die Modelle ein:`,"editor.models.settings":`Modelle einrichten`,"editor.prevStep":`Vorheriger Schritt`,"editor.nextStep":`Nächster Schritt`,"editor.deleteStep":`Schritt löschen`,"editor.holdToDelete":`Zum Löschen gedrückt halten`,"editor.deleting":`Wird gelöscht …`,"editor.moveUp":`Nach oben`,"editor.moveDown":`Nach unten`,"editor.noRuns":`Noch keine Läufe.`,"editor.restart":`Neu starten`,"editor.close":`Schließen`,"runDrawer.expand":`Ganzes Fenster`,"runDrawer.shrink":`Zurück an den Rand`,"editor.chatHello":`Beschreibe mir, was dein Wizard tun soll. Ich baue den Ablauf und du siehst ihn links als Diagramm.`,"shareRun.button":`Teilen`,"shareRun.title":`Ergebnis teilen`,"shareRun.email":`E-Mail`,"shareRun.more":`Mehr …`,"shareRun.until":`Der Link ist bis {date} gültig.`,"shareRun.kept":`Der Link gilt, bis du ihn zurückziehst.`,"shareRun.withdraw":`Link zurückziehen`,"sharePage.gone":`Dieser Link ist abgelaufen oder wurde zurückgezogen.`,"sharePage.own":`Selbst ausprobieren`,"sharePage.until":`Geteilt · verfügbar bis {date}`,"sharePage.shared":`Geteilt am {date}`,"share.publishing":`Wird veröffentlicht …`,"share.firstTitle":`Beim Teilen veröffentlicht`,"share.firstText":`Version {v} ist live. Hinein kommt nur, wer den Link bekommt.`,"share.notReady":`Noch nicht bereit zum Teilen`,"share.notReadyHint":`Beim ersten Teilen wird er veröffentlicht – vorher muss das stimmen:`,"share.stillBuilding":`Der Assistent baut ihn noch. Sobald er fertig ist, wird er beim Teilen veröffentlicht.`,"live.open":`Änderungen veröffentlichen`,"live.openShort":`Veröffentlichen`,"live.title":`Änderungen veröffentlichen`,"live.intro":`Andere sehen Version {v}. Veröffentlichst du, wird daraus Version {next}. Der Link bleibt gleich.`,"live.changed":`Was sich geändert hat`,"live.nothing":`Nichts, was Schritte oder Dateien ändert.`,"live.stepAdded":`Neuer Schritt „{name}“`,"live.stepRemoved":`Schritt „{name}“ entfernt`,"live.stepChanged":`„{name}“: {parts}`,"live.wizardChanged":`Der Wizard selbst: {parts}`,"live.order":`Reihenfolge der Schritte`,"live.fileAdded":`Datei „{name}“ neu`,"live.fileRemoved":`Datei „{name}“ entfernt`,"live.fileChanged":`Datei „{name}“ ersetzt`,"live.and":`und`,"live.part.title":`Titel`,"live.part.description":`Beschreibung`,"live.part.fields":`Felder`,"live.part.cta":`Knopf`,"live.part.instructions":`Anweisung`,"live.part.tools":`Werkzeuge`,"live.part.connections":`Verbindungen`,"live.part.output":`Ergebnis`,"live.part.model":`Modell`,"live.part.next":`was danach kommt`,"live.part.each":`Wiederholung`,"live.part.intro":`Begrüßung`,"live.part.avatar":`engenty`,"live.part.lists":`Listen`,"live.part.other":`Einstellungen`,"live.fixFirst":`Erst beheben, dann veröffentlichen`,"live.tested":`Getestet {when} – mit diesen Änderungen`,"live.testedFailed":`Der Test {when} mit diesen Änderungen hat nicht geklappt.`,"live.justNow":`gerade eben`,"live.seeRun":`Lauf ansehen`,"live.untested":`Noch nicht mit diesen Änderungen getestet.`,"live.test":`Jetzt testen`,"live.keepRunning":`Wer gerade mittendrin ist, macht mit Version {v} weiter.`,"live.cost":`Ein Lauf kostet jetzt etwa {after} statt {before} Credits.`,"live.cloud":`Version {v} kommt auch in der Cloud deines Kontos an.`,"live.cancel":`Abbrechen`,"live.go":`Veröffentlichen`,"live.going":`Wird veröffentlicht …`,"live.done":`Version {v} ist live`,"live.doneHint":`Neue Läufe starten mit Version {v}. Wer mittendrin war, macht mit Version {was} weiter.`,"live.doneCloud":`Neue Läufe starten mit Version {v}, hier und in der Cloud. Wer mittendrin war, macht mit Version {was} weiter.`,"live.close":`Fertig`,"share.titleOf":`„{title}“ teilen`,"share.access":`Zugriff`,"share.anyone":`Jeder mit dem Link`,"share.anyoneMenu":`kann ihn öffnen und ausfüllen`,"share.anyoneHint":`kann ihn öffnen und ausfüllen · bis zu {n} Läufe am Tag`,"share.onlyYou":`Nur du`,"share.onlyYouHint":`Der Link ist aus. Du testest ihn im Studio.`,"share.thisComputer":`Nur auf diesem Computer`,"share.thisComputerHint":`Andere erreichen ihn erst über die Cloud.`,"share.ways":`So erreichen ihn andere`,"share.change":`Ändern`,"share.copyLink":`Link`,"share.copyNumber":`Nummer`,"share.copyLinkFor":`Link für {name} kopieren`,"share.copyNumberFor":`Nummer für {name} kopieren`,"share.keywordTo":`„{keyword}“ an {number}`,"share.unset":`Noch nicht eingerichtet`,"share.setUp":`Einrichten`,"share.waiting":`Wartet`,"share.notInPlan":`Nicht in deinem Paket`,"share.seePlan":`{plan} ansehen`,"share.seePlans":`Pakete ansehen`,"share.offNote":`Solange nur du Zugriff hast, sehen alle anderen nur einen Hinweis.`,"share.opensSteps":`in Schritten`,"share.opensAs":`als {name}`,"share.linkNote":`Der kopierte Link öffnet ihn {how} und bietet die anderen Wege gleich mit an.`,"share.copyMain":`Link kopieren`,"share.notPublished":`Noch nicht veröffentlicht`,"share.changes":`Andere sehen Version {v}. Deine Änderungen sind noch nicht live.`,"share.localHint":`Hier läuft er nur auf diesem Computer. Mit einem Konto läuft er auch in der Cloud – dort öffnen ihn alle.`,"share.back":`Zurück`,"share.close":`Schließen`,"share.done":`Fertig`,"share.qrOpens":`Öffnet`,"share.qrMessage":`Mit der Handykamera scannen: {name} öffnet sich, das Stichwort steht schon da.`,"share.print":`Drucken`,"share.download":`Herunterladen`,"share.onWebsite":`Auf deiner Website`,"share.webShows":`Was zeigt die Website?`,"share.webWhere":`Wo auf der Seite?`,"share.webCode":`Code für deine Seite`,"share.copyCode":`Code kopieren`,"share.webNeedsLink":`Der Code für deine Seite braucht einen Link, den alle erreichen: veröffentlicht, für jeden mit dem Link.`,"share.wpLine":`WordPress? Mit unserem Plugin geht es ohne Code.`,"share.wpPackageLink":`Ohne Konto: als Wizard-Datei`,"share.place.inline":`In der Seite`,"share.place.inlineHint":`Er steht mitten auf deiner Seite, wo du den Code einfügst.`,"share.place.button":`Hinter einem Knopf`,"share.place.buttonHint":`Ein Knopf auf deiner Seite öffnet ihn in einem Fenster.`,"share.place.bubble":`Als schwebender Knopf`,"share.place.bubbleHint":`Er sitzt unten rechts auf jeder Seite, ein Klick öffnet ihn. Füg den Code am besten in die Fußzeile ein.`,"share.place.popout":`Als Chat-Knopf`,"share.place.popoutHint":`Er sitzt unten rechts auf jeder Seite, ein Klick öffnet den Chat. Füg den Code am besten in die Fußzeile ein.`,"share.runs":`Läufe`,"share.newLink":`Neuer Link`,"share.rotated":`Neuer Link erzeugt`,"share.link":`Link`,"share.copy":`Kopieren`,"share.limit":`Höchstens am Tag`,"translate.offer":`Übersetzung anbieten`,"translate.offerHint":`Wer eine andere Sprache spricht, kann den Wizard in seiner Sprache lesen. Die erste Übersetzung in eine Sprache ist ein kurzer KI-Aufruf, danach wird sie nur noch gelesen.`,"translate.byYou":`Von dir bearbeitet`,"translate.byMachine":`Maschinell übersetzt`,"translate.edit":`Übersetzung bearbeiten`,"translate.delete":`Übersetzung löschen`,"translate.none":`Noch keine Übersetzung. Sie entsteht, sobald jemand den Wizard in einer anderen Sprache öffnet.`,"translate.save":`Speichern`,"translate.editHint":`Was du hier änderst, bleibt auch nach dem nächsten Veröffentlichen, solange der Originaltext gleich bleibt. Platzhalter in geschweiften Klammern bleiben, wie sie sind.`,"share.rotate":`Neuen Link erzeugen`,"share.rotateHint":`Der alte Link und der QR-Code gehen danach nicht mehr.`,"share.website":`Website`,"share.openHere":`Auf diesem Computer testen`,"share.settings":`Einstellungen`,"share.rotateCloud":`Der alte Link und der QR-Code gehen danach nicht mehr – auch in der Cloud.`,"share.others":`Mit anderen teilen`,"share.details":`Details`,"teaser.link":`Dieser Link geht nur auf diesem Computer, solange die App läuft. Mit einem Konto läuft der Wizard auch auf engenty.ai – mit einem Link für alle.`,"teaser.models":`Ohne eigenen API-Key: Mit einem Konto laufen Text, Bilder und Videos über das Guthaben.`,"teaser.connect":`Konto verbinden`,"teaser.modelsLinked":`Oder über das Guthaben deines Kontos: Wähle unter Modelle „engenty-Guthaben“.`,"share.open":`Öffnen`,"share.qr":`QR-Code`,"share.qrHint":`Mit der Handykamera scannen: Der Wizard öffnet sich – in der App engenty wizards, wenn sie installiert ist.`,"share.code":`ID für die App:`,"share.readOnly":`Ob der Link aktiv ist und wie viele Läufe er am Tag zulässt, stellst du auf deinem Computer ein.`,"share.fit.no":`Nicht möglich: {steps}`,"chat.view":`Ansicht`,"chat.steps":`Schritte`,"chat.chat":`Chat`,"video.chat":`Chat`,"type.page":`Seite`,"type.agent":`KI-Schritt`,"type.generate":`Erzeugen`,"type.surface":`Ansicht`,"type.widget":`Widget`,"type.film":`Film`,"type.review":`Prüfen`,"type.result":`Ergebnis`,"run.regenerate":`Neue Variante`,"run.regenerateNote":`Was soll anders werden?`,"market.search":`Vorlage suchen …`,"market.hits":`Aus dem Marktplatz`,"market.all":`Alle`,"market.industry":`Branche`,"market.format":`Ergebnis`,"market.capability":`Fähigkeit`,"market.unavailable":`nicht eingerichtet`,"market.without":`Geht auch ohne: {list}`,"market.optional":`nicht eingerichtet, geht auch ohne`,"market.optionalHint":`Läuft hier ohne {list}: Antworten, die das bräuchten, sind im Wizard gesperrt. Einrichten kannst du es unter Modelle.`,"market.missing":`Hier nicht eingerichtet: {list}`,"market.plan":`Paket`,"market.pro":`Pro`,"market.proHint":`Braucht Plugins, die mit Pro auf engenty.ai dabei sind.`,"market.needsPro":`Mit Pro: braucht {list}`,"market.needsProHint":`Diese Vorlage braucht {list}. Die Plugins sind mit Pro und Team auf engenty.ai dabei.`,"market.missingHint":`Dafür fehlt hier ein Modell: {list}. Richte es unter Modelle ein.`,"market.none":`Keine Vorlage passt zu dieser Auswahl.`,"market.notFound":`Diese Vorlage gibt es nicht, oder sie wurde entfernt.`,"market.star":`Merken`,"market.starred":`Gemerkt`,"market.starHint":`Gemerkte Vorlagen liegen auf diesem Computer bereit, auch ohne Verbindung.`,"market.fromPlugin":`Kommt mit dem Plugin „{name}“`,"market.noneStarred":`Du hast noch keine Vorlage gemerkt.`,"market.offline":`Keine Verbindung zum Marktplatz: Du siehst die Vorlagen, die hier bereitliegen.`,"market.more":`Mehr anzeigen`,"market.reset":`Auswahl zurücksetzen`,"market.count":{one:`{n} Vorlage`,other:`{n} Vorlagen`},"market.countOf":`{n} von {all} Vorlagen`,"market.countOfShort":`{n} von {all}`,"market.resetShort":`Zurücksetzen`,"market.minutes":`≈ {n} Min.`,"market.credits":`≈ {n} Credits pro Lauf`,"market.needsUpdate":`Braucht eine neuere App`,"market.needsUpdateHint":`Diese Vorlage nutzt Funktionen, die deine App noch nicht kennt. Aktualisiere die App, dann kannst du sie verwenden.`,"market.use":`Mit dieser Vorlage starten`,"market.steps":`So läuft der Wizard ab`,"market.duration":`Dauer`,"market.durationHint":`vom Start bis zum Ergebnis, mit {n} Angaben von dir`,"market.result":`Ergebnis`,"market.creditsRange":`≈ {n} Credits`,"market.creditsHint":`pro Lauf geschätzt, selten mehr als das Doppelte`,"market.needs":`Braucht`,"market.cost":`Kosten`,"new.forWebsite":`Kleine Helfer für deine Website`,"run.download":`Herunterladen`,"run.required":`Pflichtfeld`,"settings.title":`Einstellungen`,"settings.name":`Name`,"settings.mcp":`Verbundene Systeme`,"settings.mcpHint":`KI-Schritte können in diese Systeme schreiben oder daraus lesen – nur, wenn du sie im Schritt freigibst.`,"settings.addServer":`System verbinden`,"settings.serverName":`Name`,"settings.serverUrl":`MCP-URL`,"settings.serverHeader":`Authorization-Header (optional)`,"settings.save":`Speichern`,"settings.saved":`Gespeichert`,"settings.delete":`Space löschen`,"settings.noProject":`Hier erscheint dein Space, sobald du auf deinem Computer den ersten Wizard veröffentlichst.`,"settings.copy":`Kopieren`,"settings.copied":`Kopiert`,"settings.lastUsed":`zuletzt {when}`,"settings.neverUsed":`noch nie benutzt`,"settings.revoke":`API-Key löschen`,"mcp.appsDisconnect":`Austragen`,"plugins.title":`Plugins`,"plugins.hint":`Plugins erweitern diese App um Seiten, Einstellungen und Werkzeuge für Schritte. Sie laufen mit allen Rechten der App: Installiere nur, was du kennst.`,"plugins.hintManaged":`Diese Plugins sind für dein Konto freigeschaltet.`,"plugins.reload":`Neu laden`,"plugins.rescan":`Neu suchen`,"plugins.tools":`Werkzeuge für Schritte`,"plugins.serverFailed":`Der Server-Teil ließ sich nicht laden: {error}`,"plugins.studioFailed":`Der Studio-Teil ließ sich nicht laden: {error}`,"plugins.problems":`Fehlerhafte Plugins`,"plugins.crashed":`Dieser Teil eines Plugins ist abgestürzt.`,"plugins.none":`Keine eigenen Plugins installiert.`,"pro.title":`Pro-Module`,"pro.hint":`Diese Module gehören zu deinem Paket (Pro, Team) und laufen auf deinem Computer. Sie kommen von deinem engenty-Konto und sind von engenty signiert. Sie bleiben aktiv, solange dein Paket sie enthält – ohne Internet bis zu einer Woche.`,"pro.check":`Paket prüfen`,"pro.notLinked":`Verbinde dein engenty-Konto (Einstellungen → Konto), um die Module deines Pakets hier zu nutzen.`,"pro.plan":`Paket: {plan}`,"pro.confirmedUntil":`bestätigt bis {date}`,"pro.plans":`Pakete`,"pro.on":`Aktiv`,"pro.notInPlan":`Nicht in deinem Paket`,"pro.install":`Installieren`,"pro.update":`Aktualisieren`,"pro.remove":`Entfernen`,"pro.none":`Für diese Version ({runtime}) gibt es noch keine Pro-Module.`,"pro.held.plan":`Nicht in deinem Paket`,"pro.held.release":`Wird für diese Version neu geladen`,"pro.held.unconfirmed":`Paket nicht bestätigt – online prüfen`,"integrate.nav":`Einbinden`,"integrate.title":`Deine Wizards in deinen KI-Apps`,"integrate.intro":`Starte Wizards direkt im Chat von Claude, ChatGPT, Cursor und Co. Dort füllst du die Schritte aus und bekommst das Ergebnis. Die KI läuft über das Abo, das du schon hast.`,"integrate.introManaged":`Starte deine Wizards direkt im Chat von claude.ai, ChatGPT, Claude Desktop und Co. Dort füllst du die Schritte aus und bekommst das Ergebnis.`,"integrate.groupHere":`Auf diesem Computer`,"integrate.groupCloud":`Über engenty.ai`,"integrate.groupBrowser":`Im Browser`,"integrate.groupDesktop":`Auf deinem Computer`,"integrate.groupMore":`Weitere Apps`,"integrate.groupShare":`Teilen`,"integrate.shareLink":`Per Link teilen`,"integrate.shareSite":`Auf einer Website`,"integrate.wpIntro":`Das Plugin „engenty wizards“ bringt deine veröffentlichten Wizards auf eine WordPress-Seite: als Block, Shortcode, Elementor-Widget oder schwebenden Knopf unten rechts. Ergebnisse, Kontakte und Termine stehen dann auch im WordPress-Admin.`,"integrate.wpInstall":`1 · Plugin installieren`,"integrate.wpInstallHint":`In WordPress unter Plugins → Installieren → Plugin hochladen die ZIP-Datei wählen und aktivieren.`,"integrate.wpDownload":`engenty-wizards.zip laden`,"integrate.wpConnect":`2 · Verbinden`,"integrate.wpConnectHint":`Klick im WordPress-Admin unter „engenty“ auf „Eigene KI erstellen“ (neues Konto) oder „Anmelden“. Danach liest engenty die Website ein: Name, Logo, Farben, Kontaktdaten und ihre Seiten als Wissen.`,"integrate.wpConnectLocal":`Das Plugin verbindet sich mit einem Konto auf engenty.ai, nicht mit diesem Computer. Verknüpfe hier dein Konto und veröffentliche deine Wizards dorthin. Dann wählst du sie in WordPress aus.`,"integrate.wpPlace":`3 · Auf die Seite bringen`,"integrate.wpPlaceHint":`Block „engenty Wizard“, das gleichnamige Elementor-Widget, der schwebende Knopf aus den Einstellungen des Plugins oder dieser Shortcode mit der ID des Wizards:`,"integrate.wpSampleLabel":`Anfrage starten`,"share.wpPlugin":`Plugin laden`,"share.wpLocal":`Ohne Konto, auf der Website selbst`,"share.wpLocalHint":`Importierst du ihn als Wizard-Datei in ein WordPress 7, nutzt der Wizard den KI-Anbieter der Website und braucht kein Konto. Was er dort braucht, laut Galerie:`,"share.wpPackage":`Wizard-Datei herunterladen`,"share.wpPackageDraft":`Entwurf als Wizard-Datei`,"share.wpKnowledge":`Wissen mitnehmen`,"share.wpKnowledgeHint":`Die Seiten dieses Space, in denen der Wizard sonst nachliest, kommen als Dateien mit (bis 2 MB).`,"share.wpFull":`Läuft dort vollständig`,"share.wpLess":`Läuft mit weniger`,"share.wpNo":`Braucht ein Konto`,"share.wpNeedsAccount":`Mit Konto: braucht {list}`,"share.wpHelp":`Im Plugin: engenty → Wizards → Importieren. Ohne Konto bleiben die Ergebnisse in WordPress. Kontakte, Termine und Dateien gibt es nur über das Konto.`,"need.full":`läuft`,"need.missing":`nicht eingerichtet`,"need.optional":`geht auch ohne`,"need.lists":`Listen, die der Wizard zwischen Läufen behält`,"need.memory":`Das Gedächtnis des Wizards`,"need.each":`Ein Lauf je Eintrag (hier nacheinander)`,"need.field:slot":`Terminwahl aus freien Zeiten`,"need.asset:document":`Dokumente erzeugen (PDF, Word)`,"need.asset:dashboard":`Dashboards erzeugen`,"need.tool:pages":`Die Seiten des Space lesen`,"need.format":`Ergebnis als {format}`,"integrate.wpLocal":`Ohne Konto`,"integrate.wpLocalHint":`Ein WordPress 7 mit eigenem KI-Anbieter (Einstellungen → Connectors) lässt Wizards auch ohne Konto laufen. Das geht mit mitgelieferten Vorlagen oder mit einer Wizard-Datei aus dem Teilen-Dialog eines Wizards. Dort steht je Wizard, ob er ganz, mit weniger oder nur mit Konto läuft.`,"integrate.wpPro":`Mit Pro`,"integrate.wpProHint":`Kontakte und Termine aus deinen Wizards stehen im WordPress-Admin. Wizards aus Vorlagen legst du direkt in WordPress an.`,"integrate.soon":`bald`,"integrate.found":`Auf diesem Computer gefunden`,"integrate.stateWorks":`Funktioniert`,"integrate.stateAdded":`Eingetragen, noch nicht getestet`,"integrate.stateNone":`Noch nicht eingerichtet`,"integrate.outRun":`Wizards im Chat starten`,"integrate.outWidget":`Wizard erscheint im Chat`,"integrate.outText":`Wizards als Text im Chat`,"integrate.outSignIn":`Ohne API-Key – du meldest dich an`,"integrate.view":`Ansehen`,"integrate.testIt":`Testen`,"integrate.connectShort":`Verbinden`,"integrate.cloudTitle":`claude.ai und ChatGPT`,"integrate.cloudText":`Laufen im Browser und erreichen deinen Computer nicht. Mit deinem engenty-Konto kommen deine Wizards trotzdem dorthin.`,"integrate.cloudButton":`Über engenty.ai verbinden`,"integrate.steps":`So geht’s`,"integrate.connect":`In {app} eintragen`,"integrate.connectHint":`Trägt engenty wizards in die Einstellungen von {app} ein.`,"integrate.connected":`In {app} eingetragen`,"integrate.notInstalled":`{app} ist auf diesem Computer nicht zu finden. Eintragen geht trotzdem – es wirkt, sobald {app} da ist.`,"integrate.details":`Details`,"integrate.restart":`{app} neu starten`,"integrate.restartHint":`Ganz beenden und wieder öffnen. Wir merken es von selbst – du musst hier nichts klicken.`,"integrate.reload":`Lade die Server in {app} neu oder starte {app} neu. Wir merken es von selbst.`,"integrate.waiting":`Wartet auf {app}`,"integrate.try":`Im Chat ausprobieren`,"integrate.tryHint":`Schreib in einem neuen Chat:`,"integrate.askTool":`Welche Wizards habe ich in engenty?`,"integrate.elsewhere":`{app} auf einem anderen Computer?`,"integrate.byAddress":`Mit Adresse und API-Key verbinden`,"integrate.backHere":`Doch auf diesem Computer verbinden`,"integrate.keyCreate":`API-Key für {app} erstellen`,"integrate.keyHint":`Damit meldet sich {app} an. Er wird nur einmal angezeigt und steht dann gleich im Befehl.`,"integrate.keyReady":`API-Key erstellt – er steht schon im Befehl.`,"integrate.add":`Server eintragen`,"integrate.addressLocal":`Nur auf diesem Computer erreichbar, und nur solange engenty wizards läuft.`,"integrate.works":`Funktioniert`,"integrate.next":`Probier als Nächstes`,"integrate.nextHint":`Kopier einen Satz in einen neuen Chat in {app}.`,"integrate.labelAsk":`Fragen`,"integrate.labelRun":`Ausführen`,"integrate.labelBuild":`Bauen`,"integrate.labelExplain":`Erklären`,"integrate.askRun":`Starte meinen Wizard „{title}“`,"integrate.askBuild":`Bau mir einen Wizard für Newsletter-Entwürfe`,"integrate.askExplain":`Was macht der Wizard „{title}“?`,"integrate.textOnly":`{app} zeigt Wizards als Text: Seiten und Fragen kommen als Nachrichten. Den Wizard selbst als Fenster im Chat zeigen Claude Desktop, Cursor und VS Code.`,"integrate.addedIn":`Eingetragen in {app}`,"integrate.remoteWhy":`{app} läuft auf den Servern seines Herstellers und erreicht deinen Computer nicht. Deine Wizards auf engenty.ai erreicht es schon.`,"integrate.viaAccount":`Über dein engenty-Konto verbinden`,"integrate.tileHere":`Dieser Computer`,"integrate.tileHereText":`Hier baust du weiter wie bisher.`,"integrate.tileCloudText":`Hier laufen deine veröffentlichten Wizards.`,"integrate.tileAppText":`Verbindet sich mit engenty.ai und startet sie im Chat.`,"integrate.linkAccount":`Mit engenty.ai verbinden`,"integrate.linkHint":`Danach zeigen wir dir die Schritte in {app}.`,"integrate.noAccount":`Lieber ohne Konto?`,"integrate.useDesktop":`Claude Desktop geht direkt hier – ein Klick`,"integrate.linked":`Über dein Konto {email}: {app} sieht die Wizards, die du hier veröffentlichst.`,"integrate.openConnectors":`„Konnektoren“ in claude.ai öffnen`,"integrate.open":`{app} öffnen`,"integrate.claudeAiWhere":`Dort: „Eigenen Konnektor hinzufügen“`,"integrate.desktopWhere":`In Claude Desktop: Einstellungen → „Konnektoren“ → „Eigenen Konnektor hinzufügen“`,"integrate.chatgptWhere":`In ChatGPT: Einstellungen → Apps & Connectors → Erweitert → Entwicklermodus, dann „Erstellen“`,"integrate.nameAddress":`Name und Adresse eintragen`,"integrate.name":`Name`,"integrate.address":`Adresse`,"integrate.allow":`Auf „Verbinden“ klicken, anmelden, erlauben`,"integrate.allowHint":`Ein Fenster von engenty öffnet sich. Du meldest dich an und klickst „Erlauben“. So sieht es aus:`,"integrate.allowFirst":`Beim ersten Aufruf anmelden und erlauben`,"integrate.allowFirstHint":`{app} öffnet ein Fenster von engenty. Du meldest dich an und klickst „Erlauben“.`,"integrate.consentPreview":`{app} möchte auf deine Wizards zugreifen`,"integrate.checkSeen":`Verbunden`,"integrate.checkTool":`Werkzeug benutzt`,"integrate.checkWidget":`Wizard im Chat gezeigt`,"integrate.revoke":`Trennen geht jederzeit in deinem Konto – der Zugriff endet sofort.`,"integrate.revokeLink":`Verbundene Programme`,"integrate.needsPublic":`{app} verbindet sich von den Servern seines Herstellers aus. Das geht nur, wenn dieser Server öffentlich über HTTPS erreichbar ist.`,"integrate.file":`In {file} eintragen:`,"integrate.vscode":`In VS Code: „MCP: Open User Configuration“, dann eintragen:`,"integrate.chatgpt":`In ChatGPT: Einstellungen → Apps & Connectors → Erweitert → Entwicklermodus, dann „Erstellen“ mit dieser Adresse:`,"integrate.generic":`In den MCP-Einstellungen der App einen Server mit dieser Adresse anlegen (Streamable HTTP):`,"mcp.terminal":`Im Terminal ausführen:`,"mcp.ccPlugin":`Optional das Plugin – es bringt den Befehl /wizard mit:`,"mcp.codexKey":`Im Terminal ausführen – Codex liest den API-Key aus einer Umgebungsvariable:`,"mcp.claudeAi":`In claude.ai: Einstellungen → „Konnektoren“ → „Eigenen Konnektor hinzufügen“, dann diese Adresse eintragen:`,"mcp.oauth":`Kein API-Key nötig: Beim ersten Aufruf meldet sich deine App im Browser an.`,"mcp.keys":`API-Keys`,"mcp.keysHint":`Jeder API-Key meldet eine App an und hat alle Rechte – behandle ihn wie ein Passwort. Löschst du ihn, ist die App abgemeldet.`,"editor.viaClient":`Über {client}`,"editor.changedVia":`Geändert über {client}`,"editor.flowChanged":`Ablauf aktualisiert`,"editor.merged":`Mit Änderungen von außen zusammengeführt`,"common.remove":`Entfernen`,"common.back":`Zurück`,"editor.fixIssuesAsk":`Bitte behebe diese Probleme im Wizard:`,"runs.status.waiting_input":`wartet`,"runs.status.running":`läuft`,"runs.status.done":`fertig`,"runs.status.failed":`fehlgeschlagen`,"runs.status.cancelled":`abgebrochen`,"step.new.page":`Neue Seite`,"step.new.question":`Neue Frage`,"step.new.agent":`KI-Schritt`,"step.new.agentTask":`Beschreibe die Aufgabe …`,"step.new.image":`Bild erzeugen`,"step.new.imagePrompt":`Beschreibe das Bild …`,"inspector.kind.text":`Kurzer Text`,"inspector.kind.textarea":`Langer Text`,"inspector.kind.number":`Zahl`,"inspector.kind.select":`Auswahl`,"inspector.kind.multiselect":`Mehrfachauswahl`,"inspector.kind.date":`Datum`,"inspector.kind.email":`E-Mail`,"inspector.kind.url":`Link`,"inspector.kind.toggle":`Ja/Nein`,"inspector.kind.color":`Farbe`,"inspector.kind.image":`Bild-Upload`,"inspector.kind.file":`Datei-Upload`,"inspector.kind.items":`Positionen (Tabelle)`,"inspector.kind.connection":`Konto verbinden`,"inspector.kind.list":`Gespeicherte Liste`,"inspector.kind.location":`Standort`,"inspector.kind.audio":`Sprachnotiz`,"inspector.kind.signature":`Unterschrift`,"inspector.kind.slot":`Termin`,"inspector.whichAccount":`Welches Konto?`,"inspector.whichList":`Welche Liste?`,"inspector.multipleFiles":`Mehrere Dateien`,"inspector.howMany":`Wie viele?`,"inspector.atLeast":`Mindestens`,"inspector.atMost":`Höchstens`,"inspector.camera":`Auch mit der Kamera aufnehmen`,"inspector.cameraVideo":`Kamera nimmt auch kurze Videos auf`,"inspector.scan":`QR- oder Barcode scannen`,"inspector.placeholder":`Platzhalter`,"inspector.help":`Hilfetext`,"inspector.widgetPreview":`Vorschau mit Beispieldaten`,"inspector.htmlFile":`HTML-Datei`,"inspector.sample":`Beispieldaten`,"inspector.none":`keine`,"inspector.size":`Größe`,"inspector.widgetData":`Daten für das Widget`,"inspector.value":`Wert`,"inspector.questions":`Fragen`,"inspector.addQuestion":`Frage hinzufügen`,"inspector.task":`Auftrag`,"inspector.insertAnswers":`Antworten einsetzen mit`,"inspector.insertField":`feld`,"inspector.insertResults":`, frühere Ergebnisse mit`,"inspector.tools":`Werkzeuge`,"inspector.personAccounts":`Konten der Person`,"inspector.personAccountsHint":`Konten, die die Person im Lauf verbindet. Lesen darf der Schritt frei, Änderungen erst nach ihrem Ja.`,"inspector.systems":`Verbundene Systeme`,"inspector.systemsHint":`Nur freigegebene Systeme sind in diesem Schritt erreichbar.`,"inspector.output":`Ergebnis`,"inspector.working":`Text während der Arbeit, z. B. „Recherchiert …“`,"inspector.whatMade":`Was wird erzeugt?`,"inspector.options":`Optionen`,"inspector.style":`Stil, z. B. „helle Fotografie, minimalistisch“`,"inspector.duration":`Länge (Sekunden)`,"inspector.resolution":`Auflösung`,"inspector.template":`Vorlage`,"inspector.whatShown":`Was wird gezeigt?`,"inspector.editable":`Text direkt bearbeitbar`,"inspector.redo":`Neue Variante anfordern`,"inspector.ending":`Abschluss`,"inspector.endMessage":`Nachricht am Ende`,"inspector.title":`Titel`,"inspector.description":`Beschreibung`,"inspector.intro":`Begrüßung`,"inspector.introHint":`Steht über der ersten Seite.`,"inspector.lang":`Sprache`,"inspector.langHint":`In dieser Sprache spricht der Wizard: seine Meldungen, Zahlen und Datumsangaben.`,"inspector.langAuto":`Automatisch, aus den Texten`,"inspector.remembers":`Merkt sich für jede Person`,"inspector.remembersHint":`Bleibt zwischen den Läufen erhalten – getrennt für jede Person, die den Wizard nutzt. Ändern kannst du das im Chat.`,"inspector.account":`Konto`,"inspector.list":`Liste`,"inspector.stepDescription":`Erklärung unter dem Titel (optional)`,"composer.send":`Senden`,"composer.stop":`Anhalten`,"composer.sendBusy":`Senden: vor dem nächsten Schritt (Enter) – {keys}: erst, wenn die Antwort fertig ist`,"dictation.settings":`Mikrofon und Aufnahme`,"dictation.microphone":`Mikrofon`,"dictation.default":`Systemstandard`,"dictation.mic":`Mikrofon {n}`,"dictation.showMics":`Namen der Mikrofone zeigen …`,"dictation.hold":`Zum Aufnehmen gedrückt halten`,"dictation.holdToTalk":`Zum Sprechen gedrückt halten`,"dictation.speak":`Sprechen`,"dictation.stop":`Stopp`,"dictation.writing":`Schreibt …`,"date.pick":`Datum wählen`,"time.pick":`Uhrzeit wählen`,"time.hour":`Stunde`,"time.minute":`Minute`,"date.pickRange":`Tag oder Zeitraum wählen`,"date.pickStart":`Ersten Tag wählen`,"date.pickEnd":`Letzten Tag wählen – oder denselben für einen Tag`,"date.today":`Heute`,"date.clear":`Leeren`,"date.prev":`Voriger Monat`,"date.next":`Nächster Monat`,"connectors.title":`Connectors`,"connectors.hint":`Dienste, in denen ein Wizard für die Person arbeiten kann. Sie verbindet beim Lauf ihr eigenes Konto. Die wichtigsten sind eingebaut. Jeden weiteren findest du im Verzeichnis integrations.sh und importierst ihn aus seiner OpenAPI-Beschreibung oder seinem MCP-Server.`,"connectors.imported":`Aus dem Verzeichnis`,"connectors.noneImported":`Hier ist kein Connector aus dem Verzeichnis importiert.`,"connectors.notSetUp":`nicht eingerichtet`,"connectors.setup":`Es fehlen noch diese Einstellungen:`,"connectors.search":`Dienst suchen, z. B. Notion, Stripe, GitHub`,"connectors.find":`Suchen`,"connectors.none":`Nichts gefunden.`,"connectors.import":`Importieren`,"connectors.exists":`Schon importiert.`,"connectors.ownClient":`Eigener OAuth-Client`,"connectors.refresh":`Aktionen neu laden`,"connectors.remove":`Entfernen`,"connectors.actions":`{n} Aktionen, {r} lesend`,"connectors.pending":`Aktionen erscheinen, sobald ein Konto verbunden ist`,"connectors.needsClient":`Dieser Dienst braucht einen OAuth-Client (ID und Secret). Entfernen und mit „Eigener OAuth-Client“ neu importieren.`,"connectors.authNone":`ohne Anmeldung`,"connectors.authOauth":`Anmeldung per OAuth`,"connectors.authKey":`API-Key`,"connectors.group.read":`liest`,"connectors.group.write":`ändert`,"connectors.group.destructive":`löscht`,"camera.missing":`An diesem Gerät wurde keine Kamera gefunden. Lade stattdessen ein Foto hoch.`,"camera.busy":`Die Kamera wird gerade von einer anderen App verwendet. Schließ sie und versuch es noch einmal.`,"location.unavailable":`Dein Gerät konnte den Standort gerade nicht bestimmen. Versuch es im Freien noch einmal oder tipp die Adresse ein.`,"location.timeout":`Das hat zu lange gedauert. Versuch es noch einmal oder tipp die Adresse ein.`,"install.app.offer":`Installiere das Studio als App: eigenes Fenster, eigenes Symbol im Dock oder in der Taskleiste.`,"install.app.browser":`In Chrome oder Edge lässt sich das Studio als App installieren: eigenes Fenster, eigenes Symbol.`,"install.app.action":`Als App installieren`,"install.app.close":`Schließen`,"install.app.how.ios":`Tippe in Safari auf „Teilen“ und dann auf „Zum Home-Bildschirm“. Das Studio liegt dann wie eine App auf deinem Home-Bildschirm.`,"install.app.how.mac":`Wähle in Safari Ablage → Zum Dock hinzufügen. Das Studio bekommt ein eigenes Fenster und ein Symbol im Dock.`,"install.app.how.android":`Tippe in Chrome auf das Menü ⋮ und dann auf „App installieren“ oder „Zum Startbildschirm hinzufügen“.`,"install.app.how.chromium":`Klicke in der Adressleiste auf das Installieren-Symbol oder wähle im Menü „App installieren“. Das Studio bekommt ein eigenes Fenster und ein Symbol.`,"common.loading":`Lädt …`,"common.error":`Fehler`,"data.hint":`Tabellen und Seiten, die der Space und seine Wizards behalten.`,"data.all":`Alle Daten`,"data.own":`Allgemein`,"data.table":`Tabelle`,"data.page":`Seite`,"data.newTable":`Neue Tabelle`,"data.newPage":`Neue Seite`,"data.title":`Titel`,"data.owner":`Gehört zu`,"data.create":`Anlegen`,"data.empty":`Noch keine Tabellen und Seiten. Leg eine an – bald schreiben auch deine Wizards hier.`,"data.rows":{one:`{n} Zeile`,other:`{n} Zeilen`},"data.addRow":`Zeile`,"data.noRows":`Noch keine Zeilen.`,"data.deleteRow":`Zeile löschen`,"data.deleteTable":`Tabelle löschen`,"data.deletePage":`Seite löschen`,"data.confirmDelete":`„{title}“ löschen?`,"data.newColumn":`Neue Spalte`,"data.columnName":`Name`,"data.columnType":`Typ`,"data.required":`Pflichtfeld`,"data.deleteColumn":`Spalte löschen`,"data.removeOption":`Entfernen`,"data.fromList":`Eine Liste des Wizards: Jeder Lauf schreibt hier hinein. Die Spalten kommen aus dem Wizard.`,"data.badCell":`Dieser Wert passt nicht in „{column}“ und ist nicht gespeichert.`,"data.type.text":`Text`,"data.type.number":`Zahl`,"data.type.date":`Datum`,"data.type.duration":`Dauer`,"data.type.select":`Auswahl`,"data.type.boolean":`Ja / Nein`,"data.text.single":`Eine Zeile`,"data.text.multiline":`Mehrere Zeilen`,"data.number.integer":`Ganze Zahl`,"data.number.decimal":`Dezimalzahl`,"data.number.percent":`Prozent`,"data.number.currency":`Betrag`,"data.currency":`Währung (z. B. EUR)`,"data.date.date":`Datum`,"data.date.datetime":`Datum und Uhrzeit`,"data.date.time":`Uhrzeit`,"data.unit":`Eingabe in`,"data.unit.milliseconds":`ms`,"data.unit.seconds":`Sekunden`,"data.unit.minutes":`Minuten`,"data.unit.hours":`Stunden`,"data.unit.days":`Tage`,"data.options":`Auswahlmöglichkeiten, eine je Zeile`,"data.multiple":`Mehrere wählbar`,"data.write":`Schreiben`,"data.preview":`Vorschau`,"data.pageEmpty":`Diese Seite ist noch leer.`,"data.markdownHint":`Markdown: # Überschrift, **fett**, - Liste`,"space.holds.intro":`Ein Space bündelt, was zusammengehört – eine Firma, eine Marke oder ein Vorhaben. Jeder Wizard gehört zu genau einem Space.`,"space.holds.wizards":`Seine eigene Liste – die Startseite und die Suche zeigen nur sie.`,"space.holds.info":`Name, Logos, Farben und Fakten, die seine Wizards kennen.`,"space.holds.knowledge":`Dokumente, Tabellen und Seiten, die sich seine Wizards teilen.`,"space.holds.connectors":`Die Connectors, die seine Wizards nutzen.`,"space.holds.results":`Die Läufe seiner Wizards.`,"space.holds.shared":`Konto, Modelle und Plugins gelten für alle Spaces.`,"space.info":`Info & Marke`,"space.knowledge":`Wissen`,"space.data":`Daten`,"space.results":`Ergebnisse`,"space.resultsAll":`Alle Ergebnisse`,"space.resultsHint":`Abgeschlossene Läufe deiner Wizards, die neuesten zuerst.`,"space.resultsEmpty":`Noch keine Ergebnisse. Ein Lauf steht hier, sobald er fertig ist.`,"space.resultCredits":{one:`{n} Credit`,other:`{n} Credits`},"space.resultsSearch":`Suchen: Wizard, Eingaben, Ergebnis …`,"space.resultsModeAll":`Live & Test`,"space.resultsAnyTime":`Jederzeit`,"space.resultsDay":`Letzte 24 Stunden`,"space.resultsDays":`Letzte {n} Tage`,"space.resultsNone":`Nichts gefunden.`,"space.resultFiles":{one:`{n} Datei`,other:`{n} Dateien`},"project.rename":`Space umbenennen`,"project.saving":`Speichert …`,"project.base":`Grundlagen`,"project.baseHint":`Wer hinter den Wizards steht. Jeder KI-Schritt kennt das.`,"project.title":`Titel`,"project.titleHint":`Firma, Marke oder Vorhaben – so sehen es auch alle, die deine Wizards nutzen.`,"project.about":`Über`,"project.aboutHint":`Was du machst, für wen und in welchem Ton du schreibst.`,"project.logos":`Logos`,"project.logosHint":`Das erste Logo sehen alle, die deine Wizards nutzen. Eine Beschreibung sagt, wofür eine Variante gedacht ist.`,"project.logoAdd":`Logo`,"project.logoMain":`Hauptlogo`,"project.logoMakeMain":`Als Hauptlogo setzen`,"project.logoSectionAdd":`Logo-Abschnitt`,"project.logoSectionTitle":`Titel, z. B. Logomark`,"project.logoSectionUse":`Wann diese Logos passen, z. B. kleine Flächen und App-Icons`,"project.sectionUntitled":`Abschnitt ohne Titel`,"project.sectionRemove":`Abschnitt entfernen`,"project.logoSectionRemoveConfirm":`„{name}“ entfernen? Seine Logos kommen zu den Standardlogos.`,"project.sectionMove":`Verschieben`,"project.sectionStandard":`Standard`,"project.rules":`Regeln`,"project.ruleNew":`Neue Regel`,"project.logoRulePlaceholder":`z. B. Logo nicht strecken oder verzerren`,"project.rulesHint":`Nur was deine Marke vorgibt. Ein Klick auf das Zeichen davor ändert es.`,"project.markBullet":`Punkt`,"project.markDo":`So ja`,"project.markDont":`So nicht`,"project.markQuestion":`Zu klären`,"project.markImportant":`Wichtig`,"project.markNumber":`Nummeriert`,"project.logoUpload":`Logo hochladen`,"project.logoFromUrl":`Logo von URL`,"project.logoUrl":`Adresse`,"project.logoUrlHint":`Die Adresse eines Bildes – oder einer Webseite: Dann zeigt engenty die Logos darauf zur Auswahl.`,"project.logoFound":`Logos auf der Seite`,"project.logoFoundHint":`Wähle eines oder mehrere. Am besten SVG oder ein großes PNG.`,"project.logoNoneFound":`Auf dieser Seite ist kein Logo zu finden.`,"project.addMany":`{n} hinzufügen`,"project.colors":`Farben`,"project.colorsHint":`Die erste Farbe ist der Akzent in Dokumenten, Dashboards und auf öffentlichen Seiten.`,"project.colorNew":`Neue Farbe`,"project.colorsFromUrl":`Farben von URL`,"project.colorsUrlHint":`Die Adresse einer Webseite – engenty liest die Farben aus ihrem Stylesheet.`,"project.colorsFound":`Farben der Seite`,"project.colorsFoundHint":`Wähle die Farben deiner Marke. Wofür sie da sind, trägst du danach ein.`,"project.colorsNoneFound":`Auf dieser Seite sind keine Farben zu finden.`,"project.colorsEmpty":`Noch keine Farben.`,"project.colorSectionAdd":`Farbabschnitt`,"project.colorSectionTitle":`Titel, z. B. Illustration`,"project.kindColors":`Farben`,"project.kindGradients":`Verläufe`,"project.kindPatterns":`Muster`,"project.colorAdd":`Farbe`,"project.fillUseLabel":`Wofür`,"project.gradientUse":`Wofür, z. B. Header und Titelfolien`,"project.patternUse":`Wofür, z. B. Hintergrund von Social-Posts`,"project.gradientSectionAdd":`Verläufe`,"project.gradientSectionTitle":`Verläufe`,"project.gradientSectionTitlePlaceholder":`Titel, z. B. Verläufe`,"project.patternSectionAdd":`Muster`,"project.patternSectionTitle":`Muster`,"project.patternSectionTitlePlaceholder":`Titel, z. B. Hintergründe`,"project.fillSectionRemoveConfirm":`„{name}“ mit allem darin entfernen?`,"project.gradientAdd":`Verlauf`,"project.gradientEdit":`Verlauf bearbeiten`,"project.gradientName":`Name`,"project.gradientNamePlaceholder":`z. B. Horizontal warm`,"project.gradientType":`Art`,"project.gradientLinear":`Linear`,"project.gradientRadial":`Radial`,"project.gradientConic":`Konisch`,"project.gradientAngle":`Winkel`,"project.gradientStops":`Farbpunkte`,"project.gradientAt":`Position`,"project.gradientStopAdd":`Farbpunkt`,"project.gradientFromBrand":`Aus den Markenfarben:`,"project.gradientCssHint":`Oder CSS einfügen: linear-, radial- oder conic-gradient mit Hex-Farben.`,"project.gradientCssError":`Das ist kein Verlauf mit Hex-Farben, den engenty lesen kann.`,"project.gradientCopy":`CSS kopieren`,"project.gradientCopied":`Kopiert`,"project.patternAdd":`Muster`,"project.patternName":`Name`,"project.patternTile":`Als Kachel wiederholen`,"project.patternFill":`Fläche füllen`,"project.patternNew":`Neues Muster`,"project.patternEdit":`Muster bearbeiten`,"project.patternPick":`Bild hierher ziehen oder auswählen`,"project.patternReplace":`Bild ersetzen`,"project.patternNamePlaceholder":`z. B. Bohnen`,"project.patternShow":`Darstellung`,"project.gradientNew":`Neuer Verlauf`,"project.gradientDescribe":`Verlauf beschreiben`,"project.gradientDescribeNew":`Beschreibe den Verlauf, z. B. „von Primär zu Text, diagonal“`,"project.gradientDescribeChange":`Was soll anders sein? z. B. „weicher, mehr Orange“`,"project.gradientDescribeMake":`Erstellen`,"project.gradientDescribeApply":`Ändern`,"project.gradientDescribeHint":`engenty setzt daraus Art, Winkel und Farbpunkte – danach kannst du alles von Hand ändern.`,"project.download":`Herunterladen`,"project.colorSectionRemoveConfirm":`„{name}“ entfernen? Seine Farben kommen zu den Standardfarben.`,"project.colorRulePlaceholder":`z. B. Akzent nie als Fläche hinter Fließtext`,"project.colorName":`z. B. Primär – Knöpfe und Überschriften`,"project.colorUse":`Beschreibe, wie engenty diese Farbe einsetzen soll.`,"project.add":`Hinzufügen`,"project.colorAccent":`Akzent`,"project.colorFirst":`Als Akzent setzen`,"project.typography":`Typografie`,"project.typographyHint":`Schriften, ihre Schnitte und wie Text gesetzt wird. KI-Schritte setzen Dokumente darin.`,"project.fontFamily":`Schriftfamilie, z. B. Inter`,"project.fontRole":`Wofür, z. B. Fließtext`,"project.fontLicense":`Lizenz`,"project.fontLicensePlaceholder":`Lizenz, z. B. SIL Open Font License`,"project.fontUses":`Erlaubt für`,"project.fontUseWeb":`Web`,"project.fontUseDocuments":`Dokumente`,"project.fontUsePrint":`Druck`,"project.fontUseImages":`Bilder & Social`,"project.fontUseVideo":`Video`,"project.fontRoleFirst":`Wofür, z. B. Überschriften und Fließtext`,"project.fontNew":`Neue Schrift`,"project.fontsFromUrl":`Schriften von URL`,"project.fontsUrlHint":`Die Adresse einer Webseite – engenty liest die Schriften aus ihrem CSS.`,"project.fontsFound":`Schriften der Seite`,"project.fontsFoundHint":`Wähle die Schriften deiner Marke.`,"project.fontsNoneFound":`Auf dieser Seite ist keine eigene Schrift zu finden.`,"project.fontWeightsUnknown":`Schnitte unbekannt`,"project.fontsEmpty":`Noch keine Schriften.`,"project.styles":`Textstile`,"project.stylesHint":`Die Typo-Skala: Größe, Schnitt, Zeilenhöhe und Laufweite je Stil.`,"project.styleNew":`Textstil`,"project.styleName":`Name, z. B. Headline XL`,"project.styleFont":`Schrift`,"project.styleWeight":`Schnitt`,"project.styleSize":`Größe`,"project.styleLine":`% Zeile`,"project.styleLineLabel":`Zeilenhöhe in %`,"project.styleTracking":`% Laufweite`,"project.styleTrackingLabel":`Laufweite in %`,"project.styleUpper":`Großbuchstaben`,"project.typeRulePlaceholder":`z. B. Überschriften nie in Großbuchstaben`,"project.typeSample":`Gute Schrift macht Inhalte leicht.`,"project.assets":`Markenmaterial`,"project.assetsGeneral":`Allgemein`,"project.assetUpload":`Asset hochladen`,"project.assetFromUrl":`Asset von URL`,"project.assetUrlHint":`Die Adresse einer Datei – oder einer Webseite: Dann zeigt engenty die Bilder darauf zur Auswahl.`,"project.assetFound":`Bilder auf der Seite`,"project.assetFoundHint":`Wähle eines oder mehrere.`,"project.assetNoneFound":`Auf dieser Seite sind keine Bilder zu finden.`,"project.assetSectionAdd":`Asset-Abschnitt`,"project.assetSectionTitle":`Titel, z. B. Icons`,"project.assetSectionName":`Name`,"project.assetSectionRename":`Abschnitt bearbeiten`,"project.assetSectionRemoveConfirm":`„{name}“ entfernen? Seine Assets kommen zu „Allgemein“.`,"project.assetsHint":`Bilder, Videos, Audio, PDFs, Schriften, Lottie und 3D. KI-Schritte setzen Bilder in Dokumente und wählen sie nach ihrer Beschreibung aus.`,"project.assetAdd":`Dateien`,"project.assetSearch":`Assets filtern …`,"know.all":`Alles`,"know.title":`Wissen`,"know.hint":`Was die Schritte deiner Wizards nachschlagen. Dokumente werden beim Hochladen zu Seiten und Tabellen. Kategorien halten die Einträge auseinander.`,"know.empty":`Noch nichts da. Lad Dokumente hoch oder leg eine Seite an.`,"know.drop":`Dokumente hierher ziehen oder`,"know.pick":`auswählen`,"know.page":`Seite`,"know.table":`Tabelle`,"know.faq":`FAQ`,"know.file":`Datei`,"know.category":`Kategorie`,"know.categories":`Kategorien`,"know.newPage":`Neue Seite`,"know.newTable":`Neue Tabelle`,"know.asFaq":`Als FAQ: Frage und Antwort je Zeile`,"know.newCategory":`Neue Kategorie`,"know.search":`Suche testen …`,"know.searchNone":`Nichts gefunden.`,"know.searchStats":`{candidates} Kandidaten geprüft, {hits} relevant`,"know.searchUnchecked":`{hits} Treffer, ungeprüft`,"know.unchecked":`Das Classifier-Modell prüft die Treffer. Mit einem API-Key für AI Gateway oder TypeSafe oder mit einem Konto übernimmt das ein Entscheidungsmodell.`,"know.keywordsOnly":`Ohne Embedding-Modell findet die Suche nach Wörtern, nicht nach Bedeutung.`,"know.clear":`Zurücksetzen`,"know.sub":{one:`{n} Unterseite`,other:`{n} Unterseiten`},"know.rows":{one:`{n} Zeile`,other:`{n} Zeilen`},"know.review":`Prüfen`,"know.reviewed":`Geprüft`,"know.from":`Aus {label}`,"know.kept":`Von Hand geändert – {label} überschreibt das nicht mehr.`,"know.original":`Original`,"know.reading":`Wird gelesen …`,"know.subPages":`Unterseiten`,"know.addSub":`Unterseite`,"know.type.choice":`Auswahl`,"know.type.date":`Datum`,"know.type.number":`Zahl`,"know.type.text":`Text`,"know.type.boolean":`Ja / Nein`,"know.name":`Name`,"know.type":`Typ`,"know.unit":`Einheit`,"know.unitHint":`z. B. h, €, kg`,"know.multiple":`Mehrere Werte je Eintrag`,"know.ordered":`Die Werte sind gestuft (niedrig → hoch)`,"know.values":`Werte`,"know.valuesHint":`Einer je Zeile. Weitere kommen mit den Einträgen dazu.`,"know.hintField":`Woher die Werte kommen`,"know.hintFieldHint":`Kurz, z. B. Kopfzeile, Dateiname, Filter der Website.`,"know.create":`Anlegen`,"know.proposed":`Vorgeschlagen`,"know.proposedHint":`Sie wird gefüllt, sobald du sie übernimmst.`,"know.accept":`Übernehmen`,"know.dismiss":`Verwerfen`,"know.alike":`„{a}“ und „{b}“ meinen wohl dasselbe.`,"know.merge":`Zusammenführen`,"know.items":{one:`{n} Eintrag`,other:`{n} Einträge`},"know.item":`1 Eintrag`,"know.row":`1 Zeile`,"know.oneSub":`1 Unterseite`,"know.addValue":`Wert hinzufügen`,"know.range":`{min} bis {max}`,"know.summary":`Übersicht`,"know.summaryHint":`Ein Modell fasst die Einträge dieses Werts zusammen. Die Suche findet die Übersicht wie eine Seite.`,"know.summaryWrite":`Übersicht schreiben`,"know.summaryAgain":`Neu schreiben`,"know.summaryEmpty":`Noch keine Übersicht.`,"know.toc":`Inhaltsverzeichnis`,"know.tocRows":{one:`{n} Zeile in {table}`,other:`{n} Zeilen in {table}`},"know.deleteCategory":`Kategorie löschen`,"know.confirmCategory":`„{name}“ löschen? Die Einträge bleiben, nur die Kategorie geht.`,"know.deleteValue":`Wert löschen`,"know.yes":`Ja`,"know.no":`Nein`,"know.minimum":`ab`,"know.maximum":`bis`,"know.contains":`enthält`,"know.by.person":`von Hand gesetzt`,"know.by.origin":`aus der Quelle`,"know.by.model":`von einem Modell gelesen`,"know.remove":`Entfernen`,"know.unset":`Nicht gesetzt`,"know.deleteFile":`Datei löschen`,"project.documents":`Dokumente`,"project.documentsHint":`PDFs, Listen, Excel, Word, Text. Sie werden gelesen und kommen in einen Index, den jeder KI-Schritt durchsucht.`,"project.documentAdd":`Dokumente`,"project.drop":`Hierher ziehen oder`,"project.staysLocal":`Bleibt auf deinem Computer und kommt nicht hierher.`,"project.description":`Beschreibung hinzufügen …`,"project.describing":`Bild wird beschrieben …`,"project.reading":`Wird gelesen …`,"project.indexed":`Im Index`,"project.indexedKeywords":`Im Index (Stichwörter)`,"project.notIndexed":`Kein Text gefunden`,"project.reindex":`Neu einlesen`,"project.pages":{one:`{n} Seite`,other:`{n} Seiten`},"project.keywordsOnly":`Der Index sucht gerade nach Stichwörtern. Mit einem API-Key für AI Gateway oder OpenAI kommt die Suche nach Bedeutung dazu.`,"project.preview":`Vorschau`,"project.viewList":`Als Liste zeigen`,"project.viewCards":`Als Karten zeigen`,"project.original":`Original`,"project.readText":`Gelesener Text`,"project.openOriginal":`Original öffnen`,"project.noText":`Noch kein Text: Das Dokument wird gerade gelesen oder ließ sich nicht lesen.`,"project.textCut":`Die Vorschau zeigt den Anfang ({shown} von {total} Zeichen).`,"project.searchTest":`Im Index suchen …`,"project.searchNone":`Nichts gefunden.`,"project.remove":`Entfernen`,"project.removeConfirm":`„{name}“ entfernen?`,"project.facts":`Fakten`,"project.factsHint":`Was Wizards wissen sollen: Adresse, USt-IdNr., Öffnungszeiten – alles, was passt.`,"project.factLabel":`Bezeichnung`,"project.factValue":`Wert`,"project.factAdd":`Eintrag`,"credit.engenty-wizards":`KI-Wizards aus einer Beschreibung, mit einem Link geteilt.`,"credit.engenty":`Connectors, Datentabellen, Suche und die Engenties stammen aus dem engenty-Framework.`,"credit.mastra":`Agent-Framework hinter den KI-Schritten.`,"credit.ai-sdk":`Modell-Aufrufe für Text, Bild, Video und Sprache.`,"credit.model-context-protocol":`MCP-Server zum Bauen von Wizards, MCP-Client für Werkzeuge der Schritte.`,"credit.hono":`HTTP-API der Runtime.`,"credit.drizzle-orm":`Schema und Migrationen der Datenbanken.`,"credit.libsql":`Eine Datenbank je Mandant, lokal als Datei oder bei Turso.`,"credit.playwright":`Browser-Schritte sowie PDF- und PNG-Export.`,"credit.agentos":`Sandbox für Code-Schritte ohne Docker.`,"credit.react":`UI-Bibliothek der Web-App.`,"credit.vite":`Build-Werkzeug der Web-App.`,"credit.tailwind-css":`Styling der Oberfläche.`,"credit.react-flow":`Das Diagramm der Schritte im Editor.`,"credit.tanstack-query":`Server-Daten in der Web-App.`,"credit.xterm-js":`Das Terminal auf der Seite, in dem sich KI-Clients anmelden.`,"credit.lucide":`Icons.`,"credit.geist-geist-mono":`Schrift der Oberfläche.`,"credit.space-grotesk":`Schrift der Überschriften.`,"credit.git-cliff":`Erzeugt den Changelog aus den Commits.`,"fact.adresse":`Adresse`,"fact.plz":`PLZ`,"fact.ort":`Ort`,"fact.uid":`USt-IdNr.`,"fact.telefon":`Telefon`,"fact.e_mail":`E-Mail`,"fact.website":`Website`,"fact.iban":`IBAN`,"project.factType":`Typ`,"project.factAuto":`Automatisch`,"project.type.text":`Text`,"project.type.longtext":`Langer Text`,"project.type.number":`Zahl`,"project.type.date":`Datum`,"project.type.url":`Link`,"project.type.email":`E-Mail`,"project.type.phone":`Telefon`,"project.type.boolean":`Ja / Nein`,"project.yes":`Ja`,"project.no":`Nein`,"assistant.name":`Goose`,"assistant.ask":`Frag Goose`,"assistant.open":`Goose öffnen`,"assistant.sees":`Sieht: {page}`,"assistant.menu":`Chat-Menü`,"assistant.newChat":`Neuer Chat`,"assistant.earlier":`Frühere Chats`,"assistant.noEarlier":`Noch keine früheren Chats.`,"assistant.untitled":`Ohne Titel`,"assistant.summarising":`Fasst den Chat zusammen …`,"assistant.readOnly":`Ein früherer Chat, nur zum Lesen. Goose kennt seine Zusammenfassung.`,"assistant.back":`Zurück`,"assistant.layoutBottom":`Unten andocken`,"assistant.layoutSidebar":`Als Seitenleiste`,"assistant.close":`Schließen`,"assistant.helloTitle":`Wie kann ich helfen?`,"assistant.hello":`Ich kenne engenty wizards und sehe, was du gerade siehst. Frag mich, wie etwas geht – ich zeige es dir auch.`,"assistant.composer":`Frag etwas oder sag, was du brauchst …`,"assistant.filesNeedSpace":`Dateien kommen in einen Space – hier lässt sich keiner ändern.`,"assistant.talk":`Sprechen`,"assistant.live":`Live-Chat`,"assistant.liveListening":`Hört zu`,"assistant.liveThinking":`Denkt nach`,"assistant.liveSpeaking":`Spricht`,"assistant.liveMuted":`Stumm`,"assistant.mute":`Mikrofon aus`,"assistant.unmute":`Mikrofon an`,"assistant.end":`Beenden`,"assistant.naturalVoice":`Natürliche Stimme (Sprachmodell)`,"assistant.gotIt":`Verstanden`,"assistant.move":`Ziehen, um Goose zu verschieben – nah am unteren oder rechten Rand rastet er ein`,"assistant.flap":`Verlauf: ziehen für die Höhe, klicken zum Ein- und Ausklappen`,"assistant.busyComposer":`Dazwischen schreiben – Enter: vor dem nächsten Schritt, {keys}: danach`,"assistant.pending":`Wartet auf Goose`,"assistant.pendingSignal":`nächster Schritt`,"assistant.pendingSignalHint":`Goose liest es vor seinem nächsten Schritt`,"assistant.pendingQueue":`danach`,"assistant.pendingQueueHint":`Geht raus, wenn Goose fertig ist`,"assistant.sendNow":`Jetzt senden`,"assistant.sendNowHint":`Goose anhalten und das jetzt senden`,"assistant.edit":`Bearbeiten`,"assistant.remove":`Entfernen`,"assistant.signalled":`Während der Antwort geschrieben`,"assistant.dev":`Entwicklermodus`,"assistant.devOn":`Entwicklermodus an: Schritte, Werkzeuge, Prompt und Runden. Klick schaltet ihn aus.`,"assistant.devOff":`Entwicklermodus aus. Klick schaltet ihn ein.`,"assistant.step":`Schritt {n}`,"assistant.tokens":`{input} ein · {output} aus · {total} Token`,"assistant.stepTools":`Werkzeuge`,"assistant.args":`Argumente`,"assistant.result":`Ergebnis`,"assistant.usage":`Kontextfenster und Verbrauch`,"assistant.window":`Kontextfenster`,"assistant.lastTurn":`Letzte Frage`,"assistant.wholeChat":`Ganzer Chat`,"assistant.promptTokens":`Prompt`,"assistant.answerTokens":`Antwort`,"assistant.duration":`Dauer`,"assistant.cost":`Kosten`,"assistant.steps":`Schritte`,"assistant.inspect":`Runden ansehen`,"assistant.copyThread":`Verlauf mit Events als JSON kopieren`,"assistant.copied":`Kopiert`,"assistant.turns":`Runden`,"assistant.turnsTimeline":`Verlauf`,"assistant.turnsPrompt":`Prompt`,"assistant.turnsEvents":`Events`,"assistant.noTurns":`Noch keine Runden. Sie werden aufgezeichnet, solange der Entwicklermodus an ist.`,"assistant.download":`Als JSONL herunterladen`,"assistant.system":`Anweisung`,"assistant.context":`Seite, Space und Nachricht`,"assistant.history":{one:`Chat ({n} Nachricht)`,other:`Chat ({n} Nachrichten)`},"assistant.tools":`Werkzeuge ({n})`,"assistant.estimate":`≈ {tokens} Token (4 Zeichen je Token)`,"assistant.tool.navigate":`Geöffnet: {where}`,"assistant.tool.highlight":`Markiert: {what}`,"assistant.tool.look":`Seite angesehen`,"assistant.tool.read":`Gelesen: {what}`,"assistant.tool.fill":`Eingetragen: {what}`,"assistant.tool.docs":`In der Anleitung gelesen`,"assistant.tool.gallery":`In der Galerie gesucht`,"assistant.tool.account":`Konto nachgesehen`,"assistant.tool.chats":`Frühere Chats durchsucht`,"assistant.tool.space":`Wizards und Läufe nachgesehen`,"assistant.tool.models":`Modelle nachgesehen`,"assistant.suggest.what":`Was kann ich mit engenty wizards machen?`,"assistant.suggest.models":`Zeig mir, wo ich die Modelle einstelle`,"assistant.suggest.credits":`Wie viele Credits habe ich noch?`,"assistant.suggest.modelsNow":`Welches Modell arbeitet hier gerade, und was fehlt?`,"assistant.suggest.modelsMissing":`Warum kann hier kein Video entstehen?`,"assistant.suggest.modelsCost":`Was kostet mich welcher Zugang?`,"assistant.suggest.accountWhy":`Wozu brauche ich ein Konto?`,"assistant.suggest.plans":`Welche Pakete gibt es, und was kosten sie?`,"assistant.suggest.integrateWhat":`Was kann ich aus Claude oder Cursor heraus machen?`,"assistant.suggest.integrateClaude":`Wie binde ich Claude Desktop ein?`,"assistant.suggest.connectorsWhat":`Wofür sind Connectors gut?`,"assistant.suggest.connectorsAdd":`Verbinde diesen Dienst: `,"assistant.suggest.readSite":`Lies unsere Website `,"assistant.suggest.missing":`Was fehlt dem Space noch?`,"assistant.suggest.facts":`Wofür brauchen die Wizards die Fakten?`,"assistant.suggest.knowledgeHow":`Wie kommt Wissen in den Space?`,"assistant.suggest.knowledgeSite":`Lies diese Website ins Wissen: `,"assistant.suggest.knowledgeCategories":`Wofür sind Kategorien gut?`,"assistant.suggest.dataWhat":`Was steht in diesen Daten?`,"assistant.suggest.dataWho":`Welcher Wizard füllt welche Tabelle?`,"assistant.suggest.dataEdit":`Wie ändere ich eine Spalte?`,"assistant.suggest.resultsFailed":`Welche Läufe haben zuletzt nicht geklappt?`,"assistant.suggest.resultsCost":`Was hat diesen Monat am meisten Credits gekostet?`,"assistant.suggest.resultsShare":`Wie teile ich ein Ergebnis?`,"project.assistantTitle":`Erzähl mir von dir und deiner Firma`,"project.assistantHello":`Nenn mir deine Website oder gib mir Dateien. Ich trage ein, was ich finde: Titel, Beschreibung, Logo, Farben und Fakten.`,"project.assistantComposer":`z. B. „Lies unsere Website example.at“ …`,"project.assistantTitleKnowledge":`Was sollen deine Wizards wissen?`,"project.assistantHelloKnowledge":`Gib mir Dokumente oder sag mir, wo das Wissen steht. Ich lese es ein – auf dieser Seite siehst du, was hineinkommt.`,"project.assistantComposerKnowledge":`Dokumente anhängen oder sagen, wo das Wissen steht …`,"project.assistantChanged":`Space aktualisiert`,"flowApp.loading":`Der Wizard kommt …`,"flowApp.broken":`Das lässt sich hier nicht zeigen.`,"flowApp.draft":`Entwurf`,"flowApp.published":`Veröffentlicht`,"flowApp.issues":{one:`{n} Fehler im Entwurf`,other:`{n} Fehler im Entwurf`},"flowApp.flow":`Ablauf`,"flowApp.notPublished":`Veröffentliche ihn im Studio, dann läuft er hier.`,"flowApp.runPage":`Im Browser weiter`,"flowApp.inBrowser":`Nur im Browser: {fields}`,"flowApp.done":`Fertig`,"flowApp.credits":{one:`{n} Credit`,other:`{n} Credits`},"flowApp.ask":`Der Wizard fragt`,"flowApp.allow":`Erlauben`,"flowApp.skip":`Überspringen`,"flowApp.signIn":`Eine Anmeldung bei {site} – das geht nur im Browser.`,"flowApp.fullscreen":`Größer`,"flowApp.inline":`Kleiner`,"flowApp.failed":`Das hat nicht geklappt: {error}`,"inspector.aspectRatio":`Format`,"inspector.downloads":`Downloads`,"inspector.avatar":`Avatar`,"editor.zoomOut":`Verkleinern`,"editor.zoomFit":`Alles zeigen`,"editor.zoomIn":`Vergrößern`,"nav.breadcrumb":`Du bist hier`,"run.testChip":`Testlauf`,"common.delete":`Löschen`,"settings.deleteTitle":`„{name}“ löschen?`,"settings.deleteBody":`Der Space wird mit seinen Wizards, seinem Wissen und seinen Daten gelöscht. Die Links der Wizards gehen danach nicht mehr. Das lässt sich nicht rückgängig machen.`,"connectors.removeConfirm":`„{name}“ entfernen? Schritte, die ihn nutzen, gehen erst wieder, wenn du ihn neu importierst.`,"connectors.clientId":`OAuth-Client-ID`,"connectors.clientSecret":`OAuth-Client-Secret`},Ov={en:{...pv.en,"brand.tagline":`Make a wish. Get your wizard.`,"brand.sub":`It guides you step by step. Let AI do the work.`,"auth.dev":`Developer sign-in (local)`,"auth.legal":`No password, no sign-up form – you sign in with an account you already have.`,"auth.signIn":`Sign in or create an account`,"auth.failed":`Sign-in didn’t work. Try again.`,"auth.localTitle":`This browser isn’t signed in`,"auth.localWhy":`The studio runs on your computer and only lets in browsers that opened its link. This browser isn’t signed in – maybe the cookies were cleared.`,"auth.localLink":`Run this in a terminal – it opens the studio and signs this browser in:`,"auth.localStartLink":`Or print just the link, without opening a browser. It works once, for a minute:`,"auth.wrongHost":`The studio runs at another address`,"auth.wrongHostWhy":`engenty wizards only answers at its own address on this computer – that keeps other web pages out. Open the studio there:`,"auth.unreachable":`engenty wizards isn’t answering`,"auth.unreachableWhy":`The studio is at {address}, but engenty wizards isn’t answering – it may be restarting or stopped. This page keeps trying.`,"nav.account":`Account & credits`,"setup.keysInAccount":`API keys for scripts belong to your account. You create and revoke them there.`,"setup.openAccount":`Open account`,"class.label":`Model class`,"class.classifier":`Classifier`,"class.standard":`Standard`,"class.high":`High`,"class.highest":`Highest`,"class.image":`Image`,"class.video":`Video`,"class.audio":`Audio`,"class.speech":`Speech`,"class.classifier.hint":`Routing, yes/no, pulling a few values out of text. Cheapest.`,"class.standard.hint":`Short copy, calling an API, reformatting.`,"class.high.hint":`Research with tools, long documents, weighing many sources.`,"class.highest.hint":`Hard reasoning or code. Several times the cost of High.`,"class.effort":`Thinking effort`,"class.effortAuto":`Automatic`,"class.effort.low":`Low`,"class.effort.medium":`Medium`,"class.effort.high":`High`,"estimate.step":`≈ {n} credits, rarely more than {high}`,"estimate.measured":`measured from the latest runs`,"estimate.formula":`estimated – more accurate after five runs`,"estimate.share":`A run costs about {run} credits. At the daily limit, that’s at most {day} credits a day.`,"local.title":`Models`,"local.accountWaiting":`Waiting for the sign-in in your browser…`,"local.accountFailed":`The account service can’t be reached right now. Try again in a moment.`,"local.accountExpired":`Your sign-in has expired. Sign in again.`,"local.sourceNeedsAccount":`This needs an account.`,"local.toAccount":`Go to Settings → Account`,"local.sourceOwn":`Your own keys`,"local.keys":`Keys`,"local.keysHint":`One key is enough. Keys stay in this computer’s keychain, never in the database.`,"local.keySet":`stored`,"local.keyEmpty":`not stored`,"local.keyRemove":`Delete`,"local.classes":`Model per class`,"local.classesHint":`A step only names the class. Here you choose which model handles it, e.g. anthropic/claude-haiku-4.5, openai:gpt-5.4-mini or ollama:qwen3.`,"local.save":`Save`,"local.saved":`Saved`,"local.chat":`The studio chat uses`,"local.chatModels":`Model class Highest`,"local.chatClaude":`Claude subscription (Claude Code)`,"local.subscription":`With the subscription, Claude Code on this computer builds the wizard, using your sign-in there. Runs still use keys or credits.`,"harness.hint":`Text runs on {name} on this computer, using your {sub}. No key needed. Images, video and audio still need a key.`,"harness.hintImages":`Text and images run on {name} on this computer, using your {sub}. No key needed. Video and audio still need a key.`,"harness.found":`{name} {version} found`,"harness.missing":`{name} isn’t installed on this computer.`,"harness.install":`Or in your own terminal:`,"harness.installButton":`Install {name}`,"harness.installing":`{name} is installing in the terminal below – it takes about a minute. Then you sign in.`,"harness.installEnded":`The installation ended, but {name} isn’t there. The output above says why.`,"harness.appHere":`The {app} app is on this computer: {name} signs in with the same {sub}.`,"harness.notInstalled":`not installed`,"harness.authSubscription":`Signed in with your {sub}.`,"harness.authKey":`Signed in with an API key from your shell, not the subscription. Sign in here so it runs on your {sub}.`,"harness.authNone":`Not signed in yet.`,"harness.signIn":`Sign in here`,"harness.signingIn":`The sign-in runs in the terminal below – your browser opens for it. The terminal closes once you’re signed in.`,"harness.signInInteractive":`{name} starts below. Choose to sign in with your {sub} there, then finish in the browser. The terminal closes once you’re signed in.`,"harness.loginEnded":`The sign-in ended, but {name} isn’t signed in. Try again.`,"harness.sub.claude":`Claude subscription`,"harness.sub.codex":`ChatGPT subscription`,"harness.sub.gemini":`Google account`,"harness.sub.cursor":`Cursor subscription`,"harness.desc.claude":`On your Claude subscription – no key needed.`,"harness.desc.codex":`On your ChatGPT subscription – no key needed.`,"harness.desc.gemini":`On your Google account – no key needed.`,"harness.desc.cursor":`On your Cursor subscription – no key needed.`,"harness.ready":`signed in`,"local.recheck":`Check again`,"local.test":`Test`,"local.testHint":`One short call checks that the model can be reached.`,"local.testOk":`Answered in {s} s on {ref}: “{reply}”`,"local.testFailed":`The test didn’t work: {error}`,"models.groupCaps":`Capabilities`,"models.groupAccess":`Access`,"models.groupMore":`More providers`,"models.cap.text":`Text & reasoning`,"models.cap.text.hint":`Writes, summarises, researches and decides – in almost every step.`,"models.cap.image":`Images`,"models.cap.image.hint":`Makes images: logos, product shots, illustrations.`,"models.cap.video":`Videos`,"models.cap.video.hint":`Makes short clips from text or from an image.`,"models.cap.speech":`Voice`,"models.cap.speech.hint":`Reads text aloud: voice-overs, audio versions, announcements.`,"models.cap.listening":`Voice notes`,"models.cap.listening.hint":`Understands speech and turns voice notes into text.`,"models.way.local":`Local model`,"models.way.credits":`Credits`,"models.way.creditsTeam":`Team credits`,"models.way.none":`not set up`,"models.who":`Who does it?`,"models.optSubscription":`Your subscription`,"models.optKey":`Your own API key`,"models.optLocal":`Local model`,"models.optLocalNote":`Ollama on this computer`,"models.optApple":`Apple Intelligence`,"models.optAppleNote":`on this Mac, offline`,"models.appleOff":`switched off – System Settings → Apple Intelligence & Siri`,"models.appleLoading":`Apple is still loading the model`,"models.appleDevice":`not on this Mac`,"models.appleHint":`Short texts and decisions (Classifier, Standard) run on Apple Intelligence on this Mac; nothing leaves it. Research, long documents and code (High, Highest): {way}.`,"models.appleListenHint":`This Mac turns voice notes into text itself; nothing leaves it. The first time, Apple downloads the language.`,"models.noteIncluded":`included in the plan`,"models.noteSignedOut":`not signed in`,"models.noteMissing":`not installed`,"models.noteKey":`API key stored`,"models.noteKeyShort":`key`,"models.noteSignedIn":`signed in`,"models.noteShellKey":`API key from the shell`,"models.optOther":`Other`,"models.optCreditsGroup":`engenty`,"models.noteNoKey":`API key missing`,"models.noteNeedsAccount":`needs an account`,"models.notePerImage":`≈ {n} credits per image`,"models.notePerSecond":`≈ {n} credits per second`,"models.notePer1k":`≈ {n} credits per 1,000 characters`,"models.notePerMinute":`≈ {n} credits per minute`,"models.creditsAuto":`engenty chooses: {model}`,"models.creditsAutoNone":`engenty chooses the model`,"models.creditsPickHint":`Billed in credits – no API key of your own.`,"models.viaCredits":`{name} on engenty credits`,"models.viaCreditsHint":`No API key of your own, billed in credits.`,"models.viaCreditsNeedsAccount":`With an engenty account, billed in credits.`,"models.noteUsage":`credits by usage`,"models.model":`Model`,"models.modelCustom":`Another model…`,"models.textSimple":`Simple steps`,"models.textDemanding":`Demanding steps`,"models.perClass":`Adjust per class`,"models.manageKey":`{name} API key`,"models.key":`API key`,"models.keyFor":`{name} API key`,"models.keyGet":`Get a key from {name}`,"models.keySave":`Check and save`,"models.keyStored":`API key stored`,"models.keyNone":`No API key`,"models.keyCheck":`Check`,"models.keyReplace":`Replace`,"models.keyRemove":`Delete`,"models.keyOk":`The key works.`,"models.keyBad":`The key wasn’t accepted. Check it and try again.`,"models.keyWhereLocal":`The key stays on this computer, never in the database.`,"models.keyWhereCloud":`The key is kept encrypted for the team. Nobody sees it again.`,"models.keyFallback":`Until you add a key, credits step in.`,"models.uses":`Used for`,"models.useFor":`Use`,"models.inUse":`in use`,"models.try":`Try it`,"models.try.text":`Test`,"models.try.image":`Make a test image`,"models.try.video":`Make a test clip`,"models.try.speech":`Hear a sample`,"models.try.listening":`Test listening`,"models.tryCost":`Costs like a real call.`,"models.tryCostVideo":`A 4-second clip – costs like a real one.`,"models.tryWait":`Generating…`,"models.tryWaitVideo":`A clip takes a minute or two…`,"models.tryOk":`In {s} s with {model}`,"models.tryHeard":`Heard: “{text}”`,"models.tryHeardNothing":`Nothing heard – but the connection works.`,"models.tryFailed":`That didn’t work: {error}`,"models.creditsName":`engenty credits`,"models.creditsTeam":`Team credits`,"models.creditsLocalLead":`Credits step in where you have no subscription or API key of your own.`,"models.creditsCloudHint":`Anything without your own API key runs on credits. Your own keys come first and cost no credits.`,"models.creditsConnectTitle":`With an account`,"models.creditsLocalHint":`With an engenty account, credits step in where you have nothing of your own set up – for example, videos without your own API key.`,"models.creditsConnect":`Connect an account`,"models.creditsFallback":`Credits step in`,"models.creditsFallbackOn":`Anything without a subscription or your own API key runs on credits.`,"models.creditsFallbackOff":`Off: anything without a subscription or your own API key doesn’t run.`,"models.creditsOn":`Runs on credits`,"models.creditsNone":`Nothing runs on credits right now.`,"models.creditsTopUp":`Top up`,"models.creditsPicks":`engenty chooses the model and bills in credits.`,"models.creditsModel":`Right now: {model}.`,"models.clientSignIn":`Sign-in`,"models.clientImages":`{name} makes images with your {sub} – no API key of your own.`,"models.clientNotChosen":`Text doesn’t run on {name} right now.`,"models.ollamaHint":`Where Ollama runs and the model it serves.`,"models.readOnly":`Only the team’s admins can change its models.`,"models.viewAs":`Preview as`,"models.view.auto":`as it is`,"models.view.local":`this computer`,"models.view.linked":`this computer + account`,"models.view.cloud":`the cloud`,"setup.title":`Setup`,"setup.sub":`engenty wizards can use your existing accounts on your computer.`,"setup.source":`Choose how the AI runs`,"setup.local":`Runs on this computer.`,"setup.thisComputer":`This computer: space {space} of {team}`,"setup.account":`Your engenty account`,"setup.accountText":`Your team, its space and your wizards belong to the account. This computer joins the space.`,"setup.accountLinked":`Signed in as {name}`,"setup.accountCredits":`{credits} credits`,"setup.creditsChoice":`engenty credits`,"setup.creditsDesc":`Runs on your account’s credits, as in the cloud. Nothing to install.`,"onboard.kicker1":`Welcome, {name} · Who you are`,"onboard.kicker1Anon":`Welcome · Who you are`,"onboard.team":`What’s your team called?`,"onboard.teamSub":`Your company, your club or just your name. The team is your account: it holds your credits and your wizards. You can rename it any time.`,"onboard.teamPlaceholder":`Platzer Windows & Doors`,"onboard.kind":`What will you use engenty for?`,"onboard.kindSub":`So we can show you the templates and tips that fit.`,"onboard.guess":`Guessed from {domain}: {kind}. If that’s not right, just pick another.`,"onboard.kindPersonal":`Just me`,"onboard.kindPersonalSub":`Personal, hobby, trying it out`,"onboard.kindClub":`Club`,"onboard.kindClubSub":`Club, initiative, volunteering`,"onboard.kindSmall":`Small business`,"onboard.kindSmallSub":`Self-employed up to 49 people`,"onboard.kindCorp":`Company`,"onboard.kindCorpSub":`50 people or more`,"onboard.personalTitle":`What would you like engenty to do for you?`,"onboard.personalPlaceholder":`e.g. job applications, photos for listings, planning trips`,"onboard.clubTitle":`Tell us about your club`,"onboard.businessTitle":`Tell us about your business`,"onboard.clubKind":`Kind of club`,"onboard.members":`Members`,"onboard.yourRole":`Your role`,"onboard.people":`How many of you are there?`,"onboard.justMe":`Just me`,"onboard.sector":`Sector`,"onboard.sectorPlaceholder":`e.g. joinery, physiotherapy, online shop`,"onboard.need":`What do you need?`,"onboard.needPlaceholder":`e.g. quotes written faster, enquiries from the website answered`,"onboard.optional":`optional`,"onboard.legalName":`Official company name`,"onboard.legalNamePlaceholder":`e.g. Example Trading Ltd`,"onboard.phone":`Phone`,"onboard.phoneWhy":`for questions about contract and invoices`,"onboard.club.sport":`Sport`,"onboard.club.culture":`Culture & music`,"onboard.club.social":`Social`,"onboard.club.education":`Education`,"onboard.club.environment":`Environment`,"onboard.club.rescue":`Fire & rescue`,"onboard.club.other":`Other`,"onboard.role.chair":`Chair`,"onboard.role.board":`Board`,"onboard.role.treasurer":`Treasurer`,"onboard.role.secretary":`Secretary`,"onboard.role.member":`Member`,"onboard.role.management":`Management`,"onboard.role.it":`IT`,"onboard.role.marketing":`Marketing`,"onboard.role.sales":`Sales`,"onboard.role.operations":`Operations`,"onboard.role.other":`Other`,"onboard.siteNameHint":`No address? A name is enough, we keep it in mind.`,"onboard.back":`Back`,"onboard.kicker2":`About you & your brand`,"onboard.site":`Where can the wizards read about you?`,"onboard.siteSub":`Enter your website and engenty picks up your name, what you do, your logo and colours from it. Every wizard then sounds like you and looks like you. No website? Write a line about yourself instead.`,"onboard.sitePlaceholder":`platzer-fenster.at`,"onboard.read":`Read it`,"onboard.reading":`Reading…`,"onboard.readDone":`Got it: {name}{details}.`,"onboard.readAbout":`, what you do`,"onboard.readColors":`, {n} colours`,"onboard.readLogo":`, the logo`,"onboard.readFailed":`That page couldn’t be read. Check the address, or write a line about yourself instead.`,"onboard.line":`Write a line instead`,"onboard.linePlaceholder":`We make and fit windows and doors in Upper Austria, for private homes and builders. Friendly, to the point.`,"onboard.save":`Save`,"onboard.skip":`Skip for now`,"onboard.kicker3":`Knowledge`,"onboard.know":`What should the wizards know?`,"onboard.knowSub":`Documents the wizards may look things up in: price lists, brochures, your terms, an FAQ. PDF, Word, Excel. A wizard answers from them instead of guessing. You can add more any time under Space → Knowledge.`,"onboard.drop":`Drop files here, or choose them`,"onboard.uploading":`reading…`,"onboard.uploaded":`read`,"onboard.uploadFailed":`not read`,"onboard.kicker4":`Your space`,"onboard.space":`All of that lives in your space.`,"onboard.spaceSub":`Your team’s first space is called {space}. All your wizards share it and add to it: every AI step knows it, so a wizard never asks for your name or your prices. You can rename it any time – the house icon in the app bar opens it.`,"onboard.partInfo":`Info & brand`,"onboard.partInfoText":`Who you are and how you look: title, about, logo, colours, facts.`,"onboard.partKnow":`Knowledge`,"onboard.partKnowText":`What every AI step looks things up in: your documents and pages.`,"onboard.partData":`Data`,"onboard.partDataText":`Tables and pages your wizards keep: enquiries, bookings, lists. Fills as they run.`,"onboard.partResults":`Results`,"onboard.partResultsText":`Every run that reached its result, per wizard. PDF, Word, images, video.`,"onboard.build":`Build your first wizard`,"onboard.continue":`Continue`,"onboard.step":`Step {n} of 4`,"setup.stage.connect":`Connect`,"setup.stage.test":`Test`,"setup.stage.done":`Done`,"setup.h.install":`Install {name}`,"setup.h.signIn":`Sign in to {name}`,"setup.h.keys":`Enter a key`,"setup.h.test":`One short test`,"setup.h.done":`Connected.`,"setup.ready":`All set.`,"setup.noHarness":`No AI client is installed yet. Choose one and it installs right here, or enter your own keys.`,"setup.ownDesc":`AI Gateway, OpenAI, Anthropic or Ollama.`,"setup.appleDesc":`The model on this Mac – no account, no internet.`,"setup.appleHint":`Apple Intelligence handles short texts and decisions on this Mac; nothing leaves it. For research, long documents and code, add another option later under Settings → Models.`,"setup.appleHintKeeps":`Apple Intelligence handles short texts and decisions on this Mac; nothing leaves it. Research, long documents and code (High, Highest) stay as they were: {way}.`,"setup.recommended":`Recommended`,"setup.done":`Open the studio`,"setup.untilWorks":`The studio opens once the test works.`,"cloud.notSent":`This version hasn’t arrived in the cloud yet.`,"cloud.send":`Send now`,"cloud.resend":`Send again`,"cloud.again":`We’ll try again at {when}.`,"cloud.sent":`Version {v} · arrived {when}`,"cloud.notRunnable":`Version {v} doesn’t run in the cloud.`,"cloud.keepsRunning":`Version {v} keeps running there.`,"cloud.nothingRuns":`Nothing runs there yet.`,"cloud.notes":`What runs differently in the cloud:`,"cloud.check":`What the cloud would lack for the wizard as it is now:`,"cloud.checkBlocking":`As it is now, the wizard wouldn’t run in the cloud:`,"cloud.documents":`The space’s documents stay on this computer. In the cloud, the steps work without them.`,"cloud.stepName":`“{title}”`,"cloud.problem.sandbox":`The cloud can’t run code steps. There, the wizard runs without them.`,"cloud.problem.mcp":`The space’s connected systems aren’t available in the cloud: {detail}.`,"cloud.problem.model":`The cloud has no model for this.`,"cloud.problem.connector":`The space lacks a connector in the cloud.`,"cloud.problem.invalid":`The cloud doesn’t accept the wizard in this form.`,"cloud.spaceLimit":`Your account’s cloud already holds a space from another computer:`,"cloud.replace":`Replace that space`,"cloud.replaceConfirm":`Remove that space from the cloud? Its wizards and their links stop working there. Then everything you published here arrives in the cloud.`,"cloud.noticeError":`Published here. This version didn’t arrive in the cloud – see below.`,"cloud.noticeNotRunnable":`Published here. This version doesn’t run in the cloud – see below.`,"readonly.wizard":`You edit this wizard in engenty wizards on your computer. When you publish it there, the new version runs here.`,"readonly.project":`You edit this space in engenty wizards on your computer. Changes show up here the next time you publish a wizard.`,"readonly.server":`Wizards run here once you publish them in engenty wizards on your computer. You build and edit them there.`,"nav.wizards":`Wizards`,"nav.spaceMenu":`Space menu`,"nav.renameSpace":`Rename space`,"nav.wizardsInSpace":`Wizards in space`,"nav.addWizard":`Add wizard`,"nav.spaceLocal":`On this computer`,"nav.spaceCloud":`In the cloud`,"nav.settings":`Settings`,"nav.project":`Space`,"nav.switchSpace":`Switch space`,"nav.addSpace":`Add space`,"nav.wizardCount":{one:`{n} wizard`,other:`{n} wizards`},"appbar.position":`Position`,"appbar.left":`Left`,"appbar.top":`Top`,"appbar.right":`Right`,"appbar.bottom":`Bottom`,"appbar.theme":`Colour scheme`,"appbar.light":`Light`,"appbar.dark":`Dark`,"appbar.system":`Match system`,"account.title":`Account`,"account.hint":`What engenty wizards calls you and how to reach you.`,"account.initials":`Your initials in the menu at the top right: the first letters of your name.`,"account.name":`Name`,"account.nameHint":`It starts as this computer’s user name.`,"account.fromAccount":`Name and email come from your account.`,"account.about":`About you`,"account.aboutHint":`Who you are and what you do.`,"account.email":`Email`,"account.phone":`Phone`,"account.connection":`engenty account`,"account.connectionHint":`Sign-in, credits and the cloud that runs your wizards for everyone.`,"account.profile":`Profile`,"account.local":`On your computer`,"account.localText":`engenty wizards runs on your computer and isn’t connected to an account. Wizards, the space and files stay here.`,"account.linked":`Connected`,"account.with":`With an account`,"account.withCredits":`Credits for the models where no AI client is installed. No API key needed.`,"account.withCloud":`What you publish also runs on engenty.ai, behind a public link, even when this computer is off.`,"account.signIn":`Sign in`,"account.signInAgain":`Sign in again`,"account.new":`No account yet?`,"account.newHint":`A new account needs an invitation code. Enter it here and it’s filled in when you create the account.`,"account.code":`Invitation code`,"account.create":`Create account`,"account.credits":`Credits`,"account.topUp":`Top up`,"account.expires":{one:`{n} credit valid until {date}`,other:`{n} credits valid until {date}`},"account.kind.start":`Starting credits`,"account.kind.monthly":`Monthly credits`,"account.kind.gift":`Gift`,"account.cloud":`What you publish here also runs on {host}.`,"account.look":`Appearance`,"account.lookHint":`Language and theme of the studio in this browser.`,"nav.logout":`Sign out`,"nav.connected":`Connected to {host}`,"nav.expired":`Sign-in expired`,"nav.onlyHere":`Only on this computer`,"nav.local":`local`,"nav.theme":`Theme`,"nav.credits":{one:`{n} credit`,other:`{n} credits`},"about.version":`Version {v}`,"about.title":`About engenty wizards`,"about.kind.script":`On your computer`,"about.kind.checkout":`Development checkout`,"about.kind.npm":`Installed with npm`,"about.kind.cloud":`In the cloud`,"about.update.check":`Check for updates`,"about.update.checking":`Checking for updates…`,"about.update.upToDate":`You’re up to date.`,"about.update.checkedAt":`last checked {when}`,"about.update.unknown":`Couldn’t check for updates. Check your connection to GitHub and try again.`,"about.update.off":`Checking for updates is switched off.`,"about.update.manual":`This copy doesn’t update itself. Get the new version where you installed it.`,"about.tab.new":`What’s new`,"about.tab.earlier":`Versions`,"about.changes":{one:`{n} change`,other:`{n} changes`},"about.change":`1 change`,"about.update.available":`Version {v} of engenty wizards is out.`,"about.update.install":`Update`,"about.update.installing":`Installing version {v}…`,"about.update.restarting":`Restarting with version {v}…`,"about.update.done":`Installed. Restart engenty wizards to use {v}.`,"about.update.failed":`The update failed. Details are in logs/update.log.`,"about.update.notes":`What’s new`,"about.changelog":`Changelog`,"about.changelogHint":`What changed from release to release.`,"about.changelogEmpty":`Nothing here yet.`,"about.unreleased":`Unreleased`,"about.breaking":`breaking`,"about.credits":`Credits`,"about.creditsHint":`engenty wizards and the open-source software it builds on.`,"about.creditsProduct":`engenty`,"about.creditsBuiltWith":`Built with`,"about.creditsDeps":`Direct dependencies`,"about.creditsDepsHint":`What each part of engenty wizards includes directly, with version and licence – not their own dependencies.`,"about.creditsShared":`Used by more than one part`,"about.search":`Search…`,"about.noMatches":`No matches.`,"theme.dark":`Dark theme`,"theme.light":`Light theme`,"home.title":`Wizards in {space}`,"home.search":`Search your wizards`,"home.noMatch":`No matches.`,"home.newFromSearch":`Build a new wizard: “{q}”`,"home.new":`New wizard`,"home.import":`Import`,"import.failed":`The import didn’t work. Check the file and try again.`,"home.empty":`No wizards in this space yet.`,"home.live":`Live`,"home.draft":`Draft`,"where.here":`Local`,"where.hereVersion":`Local · version {v}`,"where.hereHint":`Runs only on this computer, while engenty wizards is running.`,"where.liveHint":`Runs on {host}, for everyone with the link.`,"where.liveAt":`Live on {host} · version {v}`,"where.note":`1 note`,"where.notes":{one:`{n} note`,other:`{n} notes`},"where.sending":`On its way to the cloud`,"where.missing":`Not in the cloud`,"home.steps":{one:`{n} step`,other:`{n} steps`},"home.all":`All`,"home.newProject":`New space`,"home.projectName":`Space name`,"home.projectLimit":{one:`At most {n} space`,other:`At most {n} spaces`},"team.title":`Team`,"team.hint":`Who’s in the team and which plan it’s on. You invite and manage members in the account.`,"team.plan":`Plan`,"team.planFree":`Free`,"team.seats":`{taken} of {limit} seats`,"team.seatsUnlimited":`Unlimited seats`,"team.members":`Members`,"team.invited":`invited`,"team.you":`you`,"team.manage":`Manage members`,"team.changePlan":`See plans`,"team.roles":`Owners and admins create and delete wizards and spaces. Members edit existing wizards.`,"team.memberNote":`You’re a member: you can edit wizards. Admins create and delete them.`,"team.failed":`The team couldn’t be loaded. Try again.`,"team.role.owner":`Owner`,"team.role.admin":`Admin`,"team.role.member":`Member`,"models.ownKeysPlan":`Your own API keys come with the Pro plan. Here, runs use the team’s credits.`,"home.fromLocal":`Edited on your computer.`,"home.syncedAt":`Arrived in the cloud: {when}.`,"home.local.title":`Wizards you publish from your computer run here`,"home.local.text":`You build on your own computer. What you publish there runs here – for everyone, behind a link.`,"home.local.install":`Install engenty wizards on your computer:`,"home.local.signIn":`Sign in there with this account, under Settings → Account.`,"home.local.publish":`Publish a wizard. It then shows up here.`,"new.title":`What should your wizard do?`,"new.placeholder":`e.g. Customers enter their product and audience, the wizard researches competitors and writes a positioning briefing as a PDF.`,"new.build":`Build wizard`,"new.orStarter":`Or start from a template`,"new.import":`Import a wizard file`,"new.hint":`You can change everything afterwards in the chat.`,"guest.signIn":`Sign in`,"guest.hint":`Next you sign in. Your wish stays with you.`,"onboard.wish":`Your wish`,"onboard.wishNext":`Right after this, the studio builds your wizard.`,"legal.imprint":`Imprint`,"legal.privacy":`Privacy`,"legal.terms":`Terms`,"new.runsAs":`Runs as`,"new.where":`How should it run?`,"new.web":`In the browser`,"new.phone":`On the phone`,"new.messages":`By message`,"new.off":`off`,"new.ch.steps":`Step-by-step wizard`,"new.ch.chat":`Chat`,"new.ch.talk":`Live voice`,"new.ch.video":`Video call`,"new.ch.call":`Call`,"new.ch.sms":`SMS`,"new.ch.whatsapp":`WhatsApp`,"new.callHandoff":`Anything a call can’t do is sent by SMS.`,"new.similar":`Similar wizards`,"new.yours":`Yours`,"new.template":`Template`,"new.open":`Open`,"new.take":`Use`,"new.more":`{n} more…`,"new.dropHint":`Drop to attach`,"editor.resize":`Drag to resize, double-click to reset`,"editor.resizeSheet":`Drag to resize, tap to fold or unfold`,"editor.export":`Export as a wizard file (.wizard)`,"wizardMenu.label":`More`,"wizardMenu.duplicate":`Duplicate`,"wizardMenu.delete":`Delete`,"wizardMenu.deleteTitle":`Delete “{title}”?`,"wizardMenu.deleteDraft":`The wizard and its history are deleted. This can’t be undone.`,"wizardMenu.deletePublished":`The wizard is deleted. Its link stops working and the published version goes away – from the cloud too, if an account is connected. This can’t be undone.`,"addStep.title":`What should happen here?`,"addStep.placeholder":`e.g. a map of all properties found, coloured by price`,"addStep.kind":`Kind of step`,"addStep.auto":`AI chooses`,"addStep.empty":`Describe what the step should do first.`,"addStep.busy":`The assistant is still working on the last message. Try again in a moment.`,"addStep.emptyStep":`Insert empty`,"addStep.cancel":`Cancel`,"addStep.create":`Create`,"addStep.building":`Building the new step…`,"addStep.showChat":`See it in the chat`,"addStep.add":`Add step`,"surface.preview":`Preview`,"surface.code":`Code`,"surface.sampleNote":`With sample data – a run shows its own.`,"surface.sampleText":`Sample text`,"surface.sampleBrand":`Your company`,"addStep.when":`When?`,"addStep.always":`Always`,"addStep.onlyIf":`Only if…`,"addStep.aiDecides":`AI decides…`,"addStep.ifPlaceholder":`e.g. revenue below 100`,"addStep.askPlaceholder":`e.g. the person wants a refund`,"addStep.whenEmpty":`Say when this step should run.`,"addStep.messageIf":`Only if: {text} – otherwise the run continues after “{from}” as before.`,"addStep.messageAsk":`AI decides: {text} – otherwise the run continues after “{from}” as before.`,"addStep.here":`Add a step here`,"addStep.between":`Between “{before}” and “{after}”`,"addStep.after":`After “{title}”`,"addStep.first":`As the first step, before “{title}”`,"addStep.message":`New step · {place}`,"addStep.messageAs":`New step ({kind}) · {place}`,"widget.missing":`The widget isn’t built yet.`,"widget.what":`What should the widget show? (optional)`,"widget.build":`Let the assistant build it`,"widget.upload":`Upload your own HTML`,"widget.buildMessage":`Please build the widget “{title}”. {what}`,"editor.chat":`Assistant`,"editor.flow":`Flow`,"editor.dropToAttach":`Drop to attach to your message`,"editor.memory":`Memory`,"memory.explain":`What the wizard knows across all its runs. AI steps with the “Pages” tool read and add notes here, and its shared lists keep their tables here. The same data is under Data in your space.`,"memory.unused":`No step uses the memory yet. Ask the assistant to have an AI step remember something.`,"memory.none":`Nothing remembered yet.`,"memory.add":`Note`,"memory.newNote":`Note`,"memory.back":`Memory`,"memory.testCopy":`Test runs read the memory but write to a copy of their own, which belongs to the run.`,"editor.step":`Steps`,"editor.runs":`Runs`,"editor.reviewEditable":`editable`,"editor.reviewRedo":`can be redone`,"editor.otherwise":`otherwise`,"editor.next.title":`Next step`,"editor.next.ways":{one:`Next step · {count} path`,other:`Next step · {count} paths`},"editor.next.open":`Open step`,"editor.next.then":`Then`,"editor.next.fold":`Hide details`,"editor.next.unfold":`Show details`,"editor.branch.ai":`AI`,"editor.branch.addWhen":`Condition`,"editor.branch.when":`Continue when`,"editor.branch.pick":`Choose…`,"editor.branch.and":`and`,"editor.branch.statement":`Statement`,"editor.branch.none":`None clearly applies`,"editor.branch.how":`A decision model decides when one is available; otherwise the Classifier model does. If the top two answers are within 10 points, “none” applies.`,"editor.branch.lastRun":`In the last test run, {source} decided.`,"editor.branch.bySystemOne":`a decision model`,"editor.branch.byLlm":`the language model`,"editor.branch.notYet":`A test run shows here how the AI decided.`,"editor.branch.end":`End`,"editor.branch.max":`At most this often (default 10)`,"editor.branch.remove":`Remove branch`,"editor.branch.addAsk":`AI decides`,"editor.branch.newAsk":`The person wants…`,"editor.whenFilled":`{field} filled in`,"editor.whenEmpty":`{field} empty`,"editor.whenContains":`{field} contains {value}`,"editor.whenAsk":`decides: {text}`,"editor.surfaceJson":`View (JSON)`,"editor.fieldAsk":`Or: show when the AI finds this true…`,"editor.atMost":`at most {count}×`,"editor.shownWhen":`Show only when`,"editor.shownAlways":`Always show`,"editor.conditionValue":`Value`,"editor.optionsFrom":`Choices from earlier data`,"editor.optionsFixed":`Fixed choices`,"editor.op.equals":`is`,"editor.op.notEquals":`is not`,"editor.op.in":`is one of`,"editor.op.notEmpty":`is filled in`,"editor.op.empty":`is empty`,"editor.op.gt":`greater than`,"editor.op.lt":`less than`,"editor.op.contains":`contains`,"editor.conditionsMore":{one:`and {count} more condition`,other:`and {count} more conditions`},"tool.web_search":`Web search`,"tool.web_fetch":`Read web pages`,"tool.browser":`Browser`,"tool.sandbox":`Code & shell`,"tool.image":`Images`,"tool.http":`API`,"tool.pages":`Pages`,"editor.test":`Test`,"editor.share":`Share`,"editor.published":`Live · version {v}`,"editor.notPublished":`Not published yet`,"editor.composer":`Describe what should change…`,"editor.attach":`Attach files`,"editor.detach":`Remove`,"editor.attached":`Attached`,"editor.thread":`Chat history`,"editor.voice":`Dictate`,"editor.voiceStop":`Stop dictating`,"editor.listening":`Listening…`,"editor.transcribing":`Writing it down…`,"editor.micDenied":`The microphone isn’t allowed for this page. Allow it in your browser’s site settings.`,"editor.building":`Building the flow…`,"editor.files":`Files`,"files.explain":`Your wizard uses these files on every run, like widget code, libraries or price lists. The assistant creates them in the chat, or you can upload your own.`,"files.upload":`Upload`,"files.drop":`Drop to upload`,"files.count":{one:`{n} file · {size}`,other:`{n} files · {size}`},"files.empty":`No files yet. Drop files here or ask the assistant to build a widget.`,"files.download":`Download`,"files.delete":`Delete`,"files.confirmDelete":`Delete “{path}”?`,"files.none":`This wizard has no files.`,"editor.thinking":`Thinking…`,"editor.chatBroken":`The connection dropped. What was already built is saved. Send your message again.`,"editor.issues":`Before you test or share, the wizard needs a few fixes:`,"editor.fixWithChat":`Let the assistant fix it`,"editor.models.blocking":`The wizard can’t start like this. Models are missing:`,"editor.models.optional":`These steps won’t run like this. Choose a path without them when testing, or set up the models:`,"editor.models.settings":`Set up models`,"editor.prevStep":`Previous step`,"editor.nextStep":`Next step`,"editor.deleteStep":`Delete step`,"editor.holdToDelete":`Hold to delete`,"editor.deleting":`Delete`,"editor.moveUp":`Move up`,"editor.moveDown":`Move down`,"editor.noRuns":`No runs yet.`,"editor.restart":`Restart`,"editor.close":`Close`,"runDrawer.expand":`Fill the window`,"runDrawer.shrink":`Back to the side`,"editor.chatHello":`Tell me what your wizard should do. I’ll build the flow and you’ll see it as a diagram on the left.`,"shareRun.button":`Share`,"shareRun.title":`Share result`,"shareRun.email":`Email`,"shareRun.more":`More…`,"shareRun.until":`The link works until {date}.`,"shareRun.kept":`The link works until you withdraw it.`,"shareRun.withdraw":`Withdraw link`,"sharePage.gone":`This link has expired or was withdrawn.`,"sharePage.own":`Try it yourself`,"sharePage.until":`Shared · available until {date}`,"sharePage.shared":`Shared on {date}`,"share.publishing":`Publishing…`,"share.firstTitle":`Published when you shared it`,"share.firstText":`Version {v} is live. Only people with the link can open it.`,"share.notReady":`Not ready to share yet`,"share.notReadyHint":`Sharing it for the first time publishes it. Fix this first:`,"share.stillBuilding":`The assistant is still building it. Once it’s done, sharing publishes it.`,"live.open":`Publish changes`,"live.openShort":`Publish`,"live.title":`Publish changes`,"live.intro":`Others see version {v}. Publishing makes it version {next} – the link stays the same.`,"live.changed":`What changed`,"live.nothing":`Nothing that changes steps or files.`,"live.stepAdded":`New step “{name}”`,"live.stepRemoved":`Step “{name}” removed`,"live.stepChanged":`“{name}”: {parts}`,"live.wizardChanged":`The wizard itself: {parts}`,"live.order":`The order of the steps`,"live.fileAdded":`File “{name}” added`,"live.fileRemoved":`File “{name}” removed`,"live.fileChanged":`File “{name}” replaced`,"live.and":`and`,"live.part.title":`title`,"live.part.description":`description`,"live.part.fields":`fields`,"live.part.cta":`button`,"live.part.instructions":`instructions`,"live.part.tools":`tools`,"live.part.connections":`connections`,"live.part.output":`result`,"live.part.model":`model`,"live.part.next":`what comes next`,"live.part.each":`repetition`,"live.part.intro":`greeting`,"live.part.avatar":`engenty`,"live.part.lists":`lists`,"live.part.other":`settings`,"live.fixFirst":`Fix first, then publish`,"live.tested":`Tested {when} – with these changes`,"live.testedFailed":`The test {when} failed with these changes.`,"live.justNow":`just now`,"live.seeRun":`See the run`,"live.untested":`Not tested with these changes yet.`,"live.test":`Test now`,"live.keepRunning":`Anyone in the middle of a run carries on with version {v}.`,"live.cost":`A run now costs about {after} instead of {before} credits.`,"live.cloud":`Version {v} also arrives in your account’s cloud.`,"live.cancel":`Cancel`,"live.go":`Publish`,"live.going":`Publishing…`,"live.done":`Version {v} is live`,"live.doneHint":`New runs start on version {v}. Anyone mid-run carries on with version {was}.`,"live.doneCloud":`New runs start on version {v}, here and in the cloud. Anyone mid-run carries on with version {was}.`,"live.close":`Done`,"share.titleOf":`Share “{title}”`,"share.access":`Access`,"share.anyone":`Anyone with the link`,"share.anyoneMenu":`can open and fill it in`,"share.anyoneHint":`can open and fill it in · up to {n} runs a day`,"share.onlyYou":`Only you`,"share.onlyYouHint":`The link is off. You test it in the studio.`,"share.thisComputer":`Only on this computer`,"share.thisComputerHint":`Others reach it only through the cloud.`,"share.ways":`How others reach it`,"share.change":`Change`,"share.copyLink":`Link`,"share.copyNumber":`Number`,"share.copyLinkFor":`Copy the link for {name}`,"share.copyNumberFor":`Copy the number for {name}`,"share.keywordTo":`“{keyword}” to {number}`,"share.unset":`Not set up yet`,"share.setUp":`Set up`,"share.waiting":`Waiting`,"share.notInPlan":`Not in your plan`,"share.seePlan":`See {plan}`,"share.seePlans":`See the plans`,"share.offNote":`While only you have access, everyone else sees a notice.`,"share.opensSteps":`step by step`,"share.opensAs":`as {name}`,"share.linkNote":`“Copy link” opens it {how} and offers the other options right away.`,"share.copyMain":`Copy link`,"share.notPublished":`Not published yet`,"share.changes":`Others see version {v}. Your changes are not live yet.`,"share.localHint":`Here it runs on this computer only. With an account, it also runs in the cloud, and everyone opens it there.`,"share.back":`Back`,"share.close":`Close`,"share.done":`Done`,"share.qrOpens":`Opens`,"share.qrMessage":`Scan with the phone’s camera: {name} opens with the keyword already typed.`,"share.print":`Print`,"share.download":`Download`,"share.onWebsite":`On your website`,"share.webShows":`What does the website show?`,"share.webWhere":`Where on the page?`,"share.webCode":`Code for your page`,"share.copyCode":`Copy code`,"share.webNeedsLink":`The code only works once the wizard is published and open to anyone with the link.`,"share.wpLine":`WordPress? Our plugin does it without code.`,"share.wpPackageLink":`Without an account: as a package`,"share.place.inline":`In the page`,"share.place.inlineHint":`It sits in your page, where you paste the code.`,"share.place.button":`Behind a button`,"share.place.buttonHint":`A button on your page opens it in a window.`,"share.place.bubble":`As a bubble`,"share.place.bubbleHint":`Bottom right on every page – one click opens it. Ideally, put the code in the footer.`,"share.place.popout":`As a chat button`,"share.place.popoutHint":`Bottom right on every page – one click opens the chat. Ideally, put the code in the footer.`,"share.runs":`runs`,"share.newLink":`New link`,"share.rotated":`New link created`,"share.link":`Link`,"share.copy":`Copy`,"share.limit":`Limit per day`,"translate.offer":`Offer a translation`,"translate.offerHint":`People who speak another language can read the wizard in theirs. The first translation into a language is one short AI call. After that it is only read.`,"translate.byYou":`Edited by you`,"translate.byMachine":`Machine-translated`,"translate.edit":`Edit translation`,"translate.delete":`Delete translation`,"translate.none":`No translation yet. One is made when someone opens the wizard in another language.`,"translate.save":`Save`,"translate.editHint":`What you change here stays when you publish again, as long as the original text stays the same. Leave placeholders in curly brackets as they are.`,"share.rotate":`Create a new link`,"share.rotateHint":`The old link and the QR code stop working.`,"share.open":`Open`,"share.website":`Website`,"share.openHere":`Test on this computer`,"share.settings":`Settings`,"share.rotateCloud":`The old link and the QR code stop working, in the cloud too.`,"share.others":`Share with others`,"share.details":`Details`,"teaser.link":`This link only works on this computer, while engenty wizards is running. With an account, the wizard also runs on engenty.ai, with a link for everyone.`,"teaser.models":`No API key of your own? With an account, text, images and videos run on credits.`,"teaser.connect":`Connect an account`,"teaser.modelsLinked":`Or use your account’s credits: under Models, choose “engenty credits”.`,"share.qr":`QR code`,"share.qrHint":`Scan it with a phone’s camera: the wizard opens in the engenty wizards app if it’s installed.`,"share.code":`ID for the app:`,"share.readOnly":`You set whether the link is active and how many runs a day it allows on your computer.`,"share.fit.no":`Not possible: {steps}`,"chat.view":`View`,"chat.steps":`Steps`,"chat.chat":`Chat`,"video.chat":`Chat`,"type.page":`Page`,"type.agent":`AI step`,"type.generate":`Generate`,"type.surface":`View`,"type.widget":`Widget`,"type.film":`Film`,"type.review":`Review`,"type.result":`Result`,"run.regenerate":`New version`,"run.regenerateNote":`What should change?`,"market.search":`Search templates…`,"market.hits":`From the marketplace`,"market.all":`All`,"market.industry":`Industry`,"market.format":`Result`,"market.capability":`Capability`,"market.unavailable":`not set up`,"market.without":`Works without: {list}`,"market.optional":`not set up, works without`,"market.optionalHint":`Runs here without {list}: answers that would need it are locked in the wizard. Set it up under Models.`,"market.missing":`Not set up here: {list}`,"market.plan":`Plan`,"market.pro":`Pro`,"market.proHint":`Needs plugins that come with Pro on engenty.ai`,"market.needsPro":`With Pro: needs {list}`,"market.needsProHint":`This template needs {list}. The plugins come with Pro and Team on engenty.ai.`,"market.missingHint":`This needs a model that isn’t set up here: {list}. Set it up under Models.`,"market.none":`No matches.`,"market.notFound":`This template doesn’t exist or was removed.`,"market.star":`Star`,"market.starred":`Starred`,"market.starHint":`Starred templates are kept on this computer, ready without a connection.`,"market.fromPlugin":`Comes with the plugin “{name}”`,"market.noneStarred":`You haven’t starred a template yet.`,"market.offline":`No connection to the marketplace. You’re seeing the templates saved on this computer.`,"market.more":`Show more`,"market.reset":`Reset filters`,"market.count":{one:`{n} template`,other:`{n} templates`},"market.countOf":`{n} of {all} templates`,"market.countOfShort":`{n} of {all}`,"market.resetShort":`Reset`,"market.minutes":`≈ {n} min`,"market.credits":`≈ {n} credits per run`,"market.needsUpdate":`Needs a newer version`,"market.needsUpdateHint":`This template uses features your version doesn’t support yet. Update engenty wizards to use it.`,"market.use":`Start with this template`,"market.steps":`How the wizard runs`,"market.duration":`Duration`,"market.durationHint":`from start to result, with {n} inputs from you`,"market.result":`Result`,"market.creditsRange":`≈ {n} credits`,"market.creditsHint":`estimated per run, rarely more than twice that`,"market.needs":`Needs`,"market.cost":`Cost`,"new.forWebsite":`Small helpers for your website`,"run.download":`Download`,"run.required":`Required`,"settings.title":`Settings`,"settings.name":`Name`,"settings.mcp":`Connected systems`,"settings.mcpHint":`AI steps can read from and write to these systems – only when you allow it on the step.`,"settings.addServer":`Connect a system`,"settings.serverName":`Name`,"settings.serverUrl":`MCP URL`,"settings.serverHeader":`Authorization header (optional)`,"settings.save":`Save`,"settings.saved":`Saved`,"settings.delete":`Delete space`,"settings.noProject":`Your space shows up here once you publish your first wizard from your computer.`,"settings.copy":`Copy`,"settings.copied":`Copied`,"settings.lastUsed":`last used {when}`,"settings.neverUsed":`never used`,"settings.revoke":`Delete key`,"mcp.appsDisconnect":`Disconnect`,"plugins.title":`Plugins`,"plugins.hint":`Plugins add pages, settings and tools for steps to engenty wizards. They run with full rights, so only install plugins you trust.`,"plugins.hintManaged":`These plugins are switched on for your account.`,"plugins.reload":`Reload`,"plugins.rescan":`Look again`,"plugins.tools":`Tools for steps`,"plugins.serverFailed":`The server part didn’t load. Check the plugin and reload: {error}`,"plugins.studioFailed":`The studio part didn’t load. Check the plugin and reload: {error}`,"plugins.problems":`Not a plugin`,"plugins.crashed":`This part of a plugin crashed.`,"plugins.none":`No plugins of your own yet.`,"pro.title":`Pro modules`,"pro.hint":`Your plan (Pro, Team) includes these modules on your computer. They come from your engenty account and are signed by engenty. They stay on while your plan includes them, for up to a week offline.`,"pro.check":`Check plan`,"pro.notLinked":`Connect your engenty account (Settings → Account) to use your plan’s modules here.`,"pro.plan":`Plan: {plan}`,"pro.confirmedUntil":`confirmed until {date}`,"pro.plans":`Plans`,"pro.on":`On`,"pro.notInPlan":`Not in your plan`,"pro.install":`Install`,"pro.update":`Update`,"pro.remove":`Remove`,"pro.none":`There are no Pro modules for this version ({runtime}) yet.`,"pro.held.plan":`Not in your plan`,"pro.held.release":`Downloading again for this version`,"pro.held.unconfirmed":`Plan not confirmed – go online to check`,"integrate.nav":`Integrate`,"integrate.title":`Your wizards in your AI apps`,"integrate.intro":`Start wizards right in the chat of Claude, ChatGPT, Cursor and the like – answer the pages there and get the result. The AI runs on the subscription you already have.`,"integrate.introManaged":`Start your wizards right in the chat of claude.ai, ChatGPT, Claude Desktop and the like – answer the pages there and get the result.`,"integrate.groupHere":`On this computer`,"integrate.groupCloud":`Through engenty.ai`,"integrate.groupBrowser":`In the browser`,"integrate.groupDesktop":`On your computer`,"integrate.groupMore":`More apps`,"integrate.groupShare":`Share`,"integrate.shareLink":`Share by link`,"integrate.shareSite":`On a website`,"integrate.wpIntro":`The plugin “engenty wizards” puts your published wizards on a WordPress site: as a block, a shortcode, an Elementor widget or a bubble at the bottom right. Results, contacts and bookings also show up in the WordPress admin.`,"integrate.wpInstall":`1 · Install the plugin`,"integrate.wpInstallHint":`In WordPress under Plugins → Add New → Upload Plugin, choose the ZIP file and activate it.`,"integrate.wpDownload":`Download engenty-wizards.zip`,"integrate.wpConnect":`2 · Connect`,"integrate.wpConnectHint":`In the WordPress admin under “engenty”, choose “Create your own AI” (new account) or “Sign in”. The plugin then reads in the site: name, logo, colours, contact details and its pages as knowledge.`,"integrate.wpConnectLocal":`The plugin connects to an account on engenty.ai, not to this computer. Connect your account here and publish your wizards; then you choose them in WordPress.`,"integrate.wpPlace":`3 · Put it on a page`,"integrate.wpPlaceHint":`The “engenty Wizard” block, the Elementor widget of the same name, the bubble from the plugin’s settings, or this shortcode with the wizard’s ID:`,"integrate.wpSampleLabel":`Start a request`,"share.wpPlugin":`Get the plugin`,"share.wpLocal":`Without an account, on the site itself`,"share.wpLocalHint":`Imported as a package into WordPress 7, the wizard uses the site’s own AI provider and needs no account. What it needs:`,"share.wpPackage":`Download the package`,"share.wpPackageDraft":`Draft as a package`,"share.wpKnowledge":`Take the knowledge along`,"share.wpKnowledgeHint":`This space’s pages go into the package as files (up to 2 MB) – what the wizard would otherwise look up in the space.`,"share.wpFull":`Runs there as is`,"share.wpLess":`Runs with less`,"share.wpNo":`Needs an account`,"share.wpNeedsAccount":`With an account: needs {list}`,"share.wpHelp":`In the plugin: engenty → Wizards → Import. Without an account, the results stay in WordPress; contacts, bookings and files need an account.`,"need.full":`runs`,"need.missing":`not set up`,"need.optional":`works without`,"need.lists":`Lists the wizard keeps between runs`,"need.memory":`The wizard’s memory`,"need.each":`One run per entry (here, one after the other)`,"need.field:slot":`Choosing an appointment from free times`,"need.asset:document":`Making documents (PDF, Word)`,"need.asset:dashboard":`Making dashboards`,"need.tool:pages":`Reading the space’s pages`,"need.format":`Result as {format}`,"integrate.wpLocal":`Without an account`,"integrate.wpLocalHint":`WordPress 7 with its own AI provider (Settings → Connectors) runs wizards without an account: the templates that come with the plugin, or a package from a wizard’s share dialog. The share dialog shows for each wizard whether it runs there as is, with less or only with an account.`,"integrate.wpPro":`With Pro`,"integrate.wpProHint":`Contacts and bookings from your wizards in the WordPress admin; wizards made from templates right in WordPress.`,"integrate.soon":`soon`,"integrate.found":`Found on this computer`,"integrate.stateWorks":`Works`,"integrate.stateAdded":`Added, not tested yet`,"integrate.stateNone":`Not set up yet`,"integrate.outRun":`Start wizards in the chat`,"integrate.outWidget":`The wizard shows in the chat`,"integrate.outText":`Wizards as text in the chat`,"integrate.outSignIn":`No API key – you sign in`,"integrate.view":`View`,"integrate.testIt":`Test`,"integrate.connectShort":`Connect`,"integrate.cloudTitle":`claude.ai and ChatGPT`,"integrate.cloudText":`They run in the browser and can’t reach your computer. With your engenty account, your wizards get there anyway.`,"integrate.cloudButton":`Connect through engenty.ai`,"integrate.steps":`How it works`,"integrate.connect":`Add to {app}`,"integrate.connectHint":`Adds engenty wizards to the settings of {app}.`,"integrate.connected":`Added to {app}`,"integrate.notInstalled":`{app} isn’t on this computer. Adding works anyway – it takes effect once {app} is installed.`,"integrate.details":`Details`,"integrate.restart":`Restart {app}`,"integrate.restartHint":`Quit it completely and open it again. This page updates by itself – nothing to click here.`,"integrate.reload":`Reload the servers in {app}, or restart {app}. This page updates by itself.`,"integrate.waiting":`Waiting for {app}`,"integrate.try":`Try it in the chat`,"integrate.tryHint":`In a new chat, write:`,"integrate.askTool":`Which wizards do I have in engenty?`,"integrate.elsewhere":`{app} on another computer?`,"integrate.byAddress":`Connect with the address and an API key`,"integrate.backHere":`Connect on this computer after all`,"integrate.keyCreate":`Create an API key for {app}`,"integrate.keyHint":`{app} signs in with it. It’s shown once and goes straight into the command.`,"integrate.keyReady":`API key created – it’s already in the command.`,"integrate.add":`Add the server`,"integrate.addressLocal":`Reachable on this computer only, and only while engenty wizards is running.`,"integrate.works":`Works`,"integrate.next":`Try next`,"integrate.nextHint":`Copy a sentence into a new chat in {app}.`,"integrate.labelAsk":`Ask`,"integrate.labelRun":`Run`,"integrate.labelBuild":`Build`,"integrate.labelExplain":`Explain`,"integrate.askRun":`Start my wizard “{title}”`,"integrate.askBuild":`Build me a wizard for newsletter drafts`,"integrate.askExplain":`What does the wizard “{title}” do?`,"integrate.textOnly":`{app} shows wizards as text: pages and questions come as messages. Claude Desktop, Cursor and VS Code show the wizard itself as a window in the chat.`,"integrate.addedIn":`Added to {app}`,"integrate.remoteWhy":`{app} runs on its maker’s servers and can’t reach your computer. It can reach your wizards on engenty.ai.`,"integrate.viaAccount":`Connect through your engenty account`,"integrate.tileHere":`This computer`,"integrate.tileHereText":`You keep building here as before.`,"integrate.tileCloudText":`Runs your published wizards.`,"integrate.tileAppText":`Connects to engenty.ai and starts them in the chat.`,"integrate.linkAccount":`Connect to engenty.ai`,"integrate.linkHint":`Then we’ll show you the steps in {app}.`,"integrate.noAccount":`Prefer not to use an account?`,"integrate.useDesktop":`Claude Desktop works right here – one click`,"integrate.linked":`Through your account {email}: {app} sees the wizards you publish here.`,"integrate.openConnectors":`Open connectors in claude.ai`,"integrate.open":`Open {app}`,"integrate.claudeAiWhere":`There: Add custom connector`,"integrate.desktopWhere":`In Claude Desktop: Settings → Connectors → Add custom connector`,"integrate.chatgptWhere":`In ChatGPT: Settings → Apps & Connectors → Advanced → Developer mode, then “Create”`,"integrate.nameAddress":`Enter name and address`,"integrate.name":`Name`,"integrate.address":`Address`,"integrate.allow":`Click “Connect”, sign in, allow`,"integrate.allowHint":`An engenty window opens. You sign in and click “Allow”. It looks like this:`,"integrate.allowFirst":`Sign in and allow on first use`,"integrate.allowFirstHint":`{app} opens an engenty window. You sign in and click “Allow”.`,"integrate.consentPreview":`{app} wants to access your wizards`,"integrate.checkSeen":`Connected`,"integrate.checkTool":`Used a tool`,"integrate.checkWidget":`Showed a wizard in the chat`,"integrate.revoke":`Disconnect any time in your account – access ends at once.`,"integrate.revokeLink":`Connected apps`,"integrate.needsPublic":`{app} connects from its maker’s servers. That only works if this server can be reached publicly over HTTPS.`,"integrate.file":`Put this into {file}:`,"integrate.vscode":`In VS Code: “MCP: Open User Configuration”, then add:`,"integrate.chatgpt":`In ChatGPT: Settings → Apps & Connectors → Advanced → Developer mode, then “Create” with this address:`,"integrate.generic":`In the app’s MCP settings, add a server at this address (Streamable HTTP):`,"mcp.terminal":`Run in the terminal:`,"mcp.ccPlugin":`Optionally, the plugin – it adds the /wizard command:`,"mcp.codexKey":`Run in the terminal – Codex reads the API key from an environment variable:`,"mcp.claudeAi":`In claude.ai: Settings → Connectors → Add custom connector, and enter this address:`,"mcp.oauth":`No API key needed: the first time, your app signs in through the browser.`,"mcp.keys":`API keys`,"mcp.keysHint":`Each API key signs in one app and has full rights – treat it like a password. Delete it and that app is signed out.`,"editor.viaClient":`Via {client}`,"editor.changedVia":`Changed via {client}`,"editor.flowChanged":`Flow updated`,"editor.merged":`Merged with changes from elsewhere`,"common.remove":`Remove`,"common.back":`Back`,"editor.fixIssuesAsk":`Please fix these problems in the wizard:`,"runs.status.waiting_input":`waiting`,"runs.status.running":`running`,"runs.status.done":`done`,"runs.status.failed":`failed`,"runs.status.cancelled":`cancelled`,"step.new.page":`New page`,"step.new.question":`New question`,"step.new.agent":`AI step`,"step.new.agentTask":`Describe the task…`,"step.new.image":`Make an image`,"step.new.imagePrompt":`Describe the image…`,"inspector.kind.text":`Short text`,"inspector.kind.textarea":`Long text`,"inspector.kind.number":`Number`,"inspector.kind.select":`Choice`,"inspector.kind.multiselect":`Multiple choice`,"inspector.kind.date":`Date`,"inspector.kind.email":`Email`,"inspector.kind.url":`Link`,"inspector.kind.toggle":`Yes/no`,"inspector.kind.color":`Colour`,"inspector.kind.image":`Image upload`,"inspector.kind.file":`File upload`,"inspector.kind.items":`Line items (table)`,"inspector.kind.connection":`Connect an account`,"inspector.kind.list":`Saved list`,"inspector.kind.location":`Location`,"inspector.kind.audio":`Voice note`,"inspector.kind.signature":`Signature`,"inspector.kind.slot":`Appointment`,"inspector.whichAccount":`Which account?`,"inspector.whichList":`Which list?`,"inspector.multipleFiles":`Several files`,"inspector.howMany":`How many?`,"inspector.atLeast":`At least`,"inspector.atMost":`At most`,"inspector.camera":`Also record with the camera`,"inspector.cameraVideo":`Camera also records short videos`,"inspector.scan":`Scan a QR code or barcode`,"inspector.placeholder":`Placeholder`,"inspector.help":`Help text`,"inspector.widgetPreview":`Preview with sample data`,"inspector.htmlFile":`HTML file`,"inspector.sample":`Sample data`,"inspector.none":`none`,"inspector.size":`Size`,"inspector.widgetData":`Data for the widget`,"inspector.value":`Value`,"inspector.questions":`Questions`,"inspector.addQuestion":`Add question`,"inspector.task":`Instructions`,"inspector.insertAnswers":`Insert answers with`,"inspector.insertField":`field`,"inspector.insertResults":`, earlier results with`,"inspector.tools":`Tools`,"inspector.personAccounts":`The person’s accounts`,"inspector.personAccountsHint":`Accounts the person connects during the run. The step reads from them freely; anything it changes waits for the person’s yes.`,"inspector.systems":`Connected systems`,"inspector.systemsHint":`This step can only reach the systems allowed here.`,"inspector.output":`Result`,"inspector.working":`Status text while it works, e.g. “Researching…”`,"inspector.whatMade":`What does it make?`,"inspector.options":`Options`,"inspector.style":`Style, e.g. “bright photography, minimalist”`,"inspector.duration":`Length (seconds)`,"inspector.resolution":`Resolution`,"inspector.template":`Template`,"inspector.whatShown":`What does it show?`,"inspector.editable":`Text can be edited directly`,"inspector.redo":`Ask for a new variant`,"inspector.ending":`Ending`,"inspector.endMessage":`Message at the end`,"inspector.title":`Title`,"inspector.description":`Description`,"inspector.intro":`Greeting`,"inspector.introHint":`Shown above the first page.`,"inspector.lang":`Language`,"inspector.langHint":`The language the wizard speaks to people in: its messages, numbers and dates.`,"inspector.langAuto":`Automatic, from its texts`,"inspector.remembers":`Remembers for each person`,"inspector.remembersHint":`Kept between runs – separately for each person who uses the wizard. You can change this in the chat.`,"inspector.account":`Account`,"inspector.list":`List`,"inspector.stepDescription":`Explanation under the title (optional)`,"composer.send":`Send`,"composer.stop":`Stop`,"composer.sendBusy":`Send: before the next step (Enter) – {keys}: once the answer is done`,"dictation.settings":`Microphone and recording`,"dictation.microphone":`Microphone`,"dictation.default":`System default`,"dictation.mic":`Microphone {n}`,"dictation.showMics":`Show microphone names…`,"dictation.hold":`Hold to record`,"dictation.holdToTalk":`Hold to talk`,"dictation.speak":`Speak`,"dictation.stop":`Stop`,"dictation.writing":`Writing…`,"date.pick":`Choose a date`,"time.pick":`Choose a time`,"time.hour":`Hour`,"time.minute":`Minute`,"date.pickRange":`Choose a day or a period`,"date.pickStart":`Choose the first day`,"date.pickEnd":`Choose the last day – or the same one for one day`,"date.today":`Today`,"date.clear":`Clear`,"date.prev":`Previous month`,"date.next":`Next month`,"connectors.title":`Connectors`,"connectors.hint":`Services a wizard can work in for the person – they connect their own account during a run. The main ones are built in. You find others in the integrations.sh registry and import them from their OpenAPI spec or MCP server.`,"connectors.imported":`From the registry`,"connectors.noneImported":`No connectors imported from the registry yet.`,"connectors.notSetUp":`not set up`,"connectors.setup":`Still needs these settings:`,"connectors.search":`Find a service, e.g. Notion, Stripe, GitHub`,"connectors.find":`Search`,"connectors.none":`No matches.`,"connectors.import":`Import`,"connectors.exists":`Already imported.`,"connectors.ownClient":`Your own OAuth client`,"connectors.refresh":`Reload actions`,"connectors.remove":`Remove`,"connectors.actions":`{n} actions, {r} of them only read`,"connectors.pending":`Actions appear once an account is connected`,"connectors.needsClient":`This service needs an OAuth client (ID and secret). Remove it and import it again with “Your own OAuth client”.`,"connectors.authNone":`no sign-in`,"connectors.authOauth":`OAuth sign-in`,"connectors.authKey":`API key`,"connectors.group.read":`reads`,"connectors.group.write":`changes`,"connectors.group.destructive":`deletes`,"camera.missing":`No camera was found on this device. Upload a photo instead.`,"camera.busy":`Another app is using the camera. Close it and try again.`,"location.unavailable":`Your device couldn’t find its location right now. Try again outdoors or type the address.`,"location.timeout":`That took too long. Try again or type the address.`,"install.app.offer":`Install the studio as an app: its own window, its own icon in the Dock or taskbar.`,"install.app.browser":`In Chrome or Edge the studio installs as an app: its own window, its own icon.`,"install.app.action":`Install as app`,"install.app.close":`Close`,"install.app.how.ios":`In Safari, tap Share and then “Add to Home Screen”. The studio then sits on your home screen like an app.`,"install.app.how.mac":`In Safari, choose File → “Add to Dock”. The studio gets its own window and an icon in the Dock.`,"install.app.how.android":`In Chrome, tap the ⋮ menu and then “Install app” or “Add to Home screen”.`,"install.app.how.chromium":`Click the install icon in the address bar, or choose “Install app” in the menu. The studio gets its own window and an icon.`,"common.loading":`Loading…`,"common.error":`Error`,"data.hint":`Tables and pages the space and its wizards keep.`,"data.all":`All data`,"data.own":`General`,"data.table":`Table`,"data.page":`Page`,"data.newTable":`New table`,"data.newPage":`New page`,"data.title":`Title`,"data.owner":`Belongs to`,"data.create":`Create`,"data.empty":`No tables or pages yet. Create one – soon your wizards will write here too.`,"data.rows":{one:`{n} row`,other:`{n} rows`},"data.addRow":`Row`,"data.noRows":`No rows yet.`,"data.deleteRow":`Delete row`,"data.deleteTable":`Delete table`,"data.deletePage":`Delete page`,"data.confirmDelete":`Delete “{title}”?`,"data.newColumn":`New column`,"data.columnName":`Name`,"data.columnType":`Type`,"data.required":`Must be filled in`,"data.deleteColumn":`Delete column`,"data.removeOption":`Remove`,"data.fromList":`This list belongs to a wizard: every run writes to it. The columns come from the wizard.`,"data.badCell":`This value doesn’t fit “{column}” and isn’t saved.`,"data.type.text":`Text`,"data.type.number":`Number`,"data.type.date":`Date`,"data.type.duration":`Duration`,"data.type.select":`Choice`,"data.type.boolean":`Yes/no`,"data.text.single":`One line`,"data.text.multiline":`Several lines`,"data.number.integer":`Whole number`,"data.number.decimal":`Decimal`,"data.number.percent":`Percent`,"data.number.currency":`Amount`,"data.currency":`Currency (e.g. EUR)`,"data.date.date":`Date`,"data.date.datetime":`Date and time`,"data.date.time":`Time`,"data.unit":`Entered in`,"data.unit.milliseconds":`ms`,"data.unit.seconds":`seconds`,"data.unit.minutes":`minutes`,"data.unit.hours":`hours`,"data.unit.days":`days`,"data.options":`Choices, one per line`,"data.multiple":`Several can be chosen`,"data.write":`Write`,"data.preview":`Preview`,"data.pageEmpty":`This page is still empty.`,"data.markdownHint":`Markdown: # heading, **bold**, - list`,"space.holds.intro":`A space holds what belongs together – a company, a brand or an undertaking. Every wizard belongs to exactly one space.`,"space.holds.wizards":`Its own list of wizards – home and search show only these.`,"space.holds.info":`Name, logos, colours and facts its wizards know.`,"space.holds.knowledge":`Documents, tables and pages its wizards share.`,"space.holds.connectors":`The connections its wizards use.`,"space.holds.results":`The runs of its wizards.`,"space.holds.shared":`Account, models and plugins apply to every space.`,"space.info":`Info & brand`,"space.knowledge":`Knowledge`,"space.data":`Data`,"space.results":`Results`,"space.resultsAll":`All results`,"space.resultsHint":`Runs of your wizards that reached their result, newest first.`,"space.resultsEmpty":`No results yet. A run shows up here once it’s done.`,"space.resultCredits":{one:`{n} credit`,other:`{n} credits`},"space.resultsSearch":`Search: wizard, answers, result…`,"space.resultsModeAll":`Live & test`,"space.resultsAnyTime":`Any time`,"space.resultsDay":`Last 24 hours`,"space.resultsDays":`Last {n} days`,"space.resultsNone":`No matches.`,"space.resultFiles":{one:`{n} file`,other:`{n} files`},"project.rename":`Rename space`,"project.saving":`Saving…`,"project.base":`Basics`,"project.baseHint":`Who is behind the wizards. Every AI step knows this.`,"project.title":`Title`,"project.titleHint":`Company, brand or undertaking – people using your wizards see it too.`,"project.about":`About`,"project.aboutHint":`What you do, for whom and the tone you write in.`,"project.logos":`Logos`,"project.logosHint":`People using your wizards see the first logo. A description says what a variant is for.`,"project.logoAdd":`Logo`,"project.logoMain":`Main logo`,"project.logoMakeMain":`Make main logo`,"project.logoSectionAdd":`Logo section`,"project.logoSectionTitle":`Title, e.g. Logomark`,"project.logoSectionUse":`When these logos fit, e.g. small sizes and app icons`,"project.sectionUntitled":`Untitled section`,"project.sectionRemove":`Remove section`,"project.logoSectionRemoveConfirm":`Remove “{name}”? Its logos join the standard logos.`,"project.sectionMove":`Move`,"project.sectionStandard":`Standard`,"project.rules":`Rules`,"project.ruleNew":`New rule`,"project.logoRulePlaceholder":`e.g. Don’t stretch or distort the logo`,"project.rulesHint":`Only what your brand prescribes. Click the symbol before a rule to change its type.`,"project.markBullet":`Bullet`,"project.markDo":`Do`,"project.markDont":`Don’t`,"project.markQuestion":`To check`,"project.markImportant":`Important`,"project.markNumber":`Numbered`,"project.logoUpload":`Upload logo`,"project.logoFromUrl":`Logo from URL`,"project.logoUrl":`Address`,"project.logoUrlHint":`The address of an image, or of a web page – engenty then shows its logos for you to choose from.`,"project.logoFound":`Logos on the page`,"project.logoFoundHint":`Choose one or more. An SVG or a large PNG works best.`,"project.logoNoneFound":`No logos found on this page.`,"project.addMany":`Add {n}`,"project.colors":`Colours`,"project.colorsHint":`The first colour is the accent of documents, dashboards and public pages.`,"project.colorNew":`New colour`,"project.colorsFromUrl":`Colours from URL`,"project.colorsUrlHint":`The address of a web page – engenty reads the colours from its stylesheet.`,"project.colorsFound":`Colours of the page`,"project.colorsFoundHint":`Choose your brand’s colours. You can note what they’re for afterwards.`,"project.colorsNoneFound":`No colours found on this page.`,"project.colorsEmpty":`No colours yet.`,"project.colorSectionAdd":`Colour section`,"project.colorSectionTitle":`Title, e.g. Illustration`,"project.kindColors":`Colours`,"project.kindGradients":`Gradients`,"project.kindPatterns":`Patterns`,"project.colorAdd":`Colour`,"project.fillUseLabel":`What for`,"project.gradientUse":`What for, e.g. headers and title slides`,"project.patternUse":`What for, e.g. backgrounds of social posts`,"project.gradientSectionAdd":`Gradients`,"project.gradientSectionTitle":`Gradients`,"project.gradientSectionTitlePlaceholder":`Title, e.g. Gradients`,"project.patternSectionAdd":`Patterns`,"project.patternSectionTitle":`Patterns`,"project.patternSectionTitlePlaceholder":`Title, e.g. Backgrounds`,"project.fillSectionRemoveConfirm":`Remove “{name}” and delete everything in it?`,"project.gradientAdd":`Gradient`,"project.gradientEdit":`Edit gradient`,"project.gradientName":`Name`,"project.gradientNamePlaceholder":`e.g. Horizontal warm`,"project.gradientType":`Type`,"project.gradientLinear":`Linear`,"project.gradientRadial":`Radial`,"project.gradientConic":`Conic`,"project.gradientAngle":`Angle`,"project.gradientStops":`Colour stops`,"project.gradientAt":`Position`,"project.gradientStopAdd":`Colour stop`,"project.gradientFromBrand":`From the brand colours:`,"project.gradientCssHint":`Or paste CSS: linear-, radial- or conic-gradient with hex colours.`,"project.gradientCssError":`engenty can’t read that. Paste a CSS gradient with hex colours.`,"project.gradientCopy":`Copy CSS`,"project.gradientCopied":`Copied`,"project.patternAdd":`Pattern`,"project.patternName":`Name`,"project.patternTile":`Repeat as a tile`,"project.patternFill":`Fill the area`,"project.patternNew":`New pattern`,"project.patternEdit":`Edit pattern`,"project.patternPick":`Drop a picture here or choose one`,"project.patternReplace":`Replace picture`,"project.patternNamePlaceholder":`e.g. Beans`,"project.patternShow":`Shown as`,"project.gradientNew":`New gradient`,"project.gradientDescribe":`Describe the gradient`,"project.gradientDescribeNew":`Describe the gradient, e.g. “from primary to text, diagonal”`,"project.gradientDescribeChange":`What should change? e.g. “softer, more orange”`,"project.gradientDescribeMake":`Create`,"project.gradientDescribeApply":`Change`,"project.gradientDescribeHint":`engenty turns it into type, angle and colour stops – you can change everything by hand afterwards.`,"project.download":`Download`,"project.colorSectionRemoveConfirm":`Remove “{name}”? Its colours join the standard colours.`,"project.colorRulePlaceholder":`e.g. Never the accent as a fill behind body text`,"project.colorName":`e.g. Primary – buttons and headings`,"project.colorUse":`Describe how engenty should use this colour.`,"project.add":`Add`,"project.colorAccent":`Accent`,"project.colorFirst":`Make accent`,"project.typography":`Typography`,"project.typographyHint":`Fonts, their weights and how text is set. AI steps set documents in them.`,"project.fontFamily":`Font family, e.g. Inter`,"project.fontRole":`What for, e.g. body text`,"project.fontLicense":`Licence`,"project.fontLicensePlaceholder":`Licence, e.g. SIL Open Font License`,"project.fontUses":`Allowed for`,"project.fontUseWeb":`Web`,"project.fontUseDocuments":`Documents`,"project.fontUsePrint":`Print`,"project.fontUseImages":`Images & social`,"project.fontUseVideo":`Video`,"project.fontRoleFirst":`What for, e.g. headings and body text`,"project.fontNew":`New font`,"project.fontsFromUrl":`Fonts from URL`,"project.fontsUrlHint":`The address of a web page – engenty reads the fonts from its CSS.`,"project.fontsFound":`Fonts of the page`,"project.fontsFoundHint":`Choose your brand’s fonts.`,"project.fontsNoneFound":`This page uses no custom fonts.`,"project.fontWeightsUnknown":`Weights unknown`,"project.fontsEmpty":`No fonts yet.`,"project.styles":`Text styles`,"project.stylesHint":`The type scale: size, weight, line height and letter spacing per style.`,"project.styleNew":`Text style`,"project.styleName":`Name, e.g. Headline XL`,"project.styleFont":`Font`,"project.styleWeight":`Weight`,"project.styleSize":`Size`,"project.styleLine":`% line`,"project.styleLineLabel":`Line height in %`,"project.styleTracking":`% tracking`,"project.styleTrackingLabel":`Letter spacing in %`,"project.styleUpper":`Uppercase`,"project.typeRulePlaceholder":`e.g. Never set headings in capitals`,"project.typeSample":`Good type makes content easy.`,"project.assets":`Brand assets`,"project.assetsGeneral":`General`,"project.assetUpload":`Upload asset`,"project.assetFromUrl":`Asset from URL`,"project.assetUrlHint":`The address of a file, or of a web page – engenty then shows its pictures for you to choose from.`,"project.assetFound":`Pictures on the page`,"project.assetFoundHint":`Choose one or more.`,"project.assetNoneFound":`No pictures found on this page.`,"project.assetSectionAdd":`Asset section`,"project.assetSectionTitle":`Title, e.g. Icons`,"project.assetSectionName":`Name`,"project.assetSectionRename":`Edit section`,"project.assetSectionRemoveConfirm":`Remove “{name}”? Its assets join “General”.`,"project.assetsHint":`Images, videos, audio, PDFs, fonts, Lottie and 3D. AI steps place images in documents and choose them by their description.`,"project.assetAdd":`Files`,"project.assetSearch":`Filter assets…`,"know.all":`All`,"know.title":`Knowledge`,"know.hint":`What your wizards’ steps look things up in. Documents become pages and tables when they arrive; categories keep the items apart.`,"know.empty":`No knowledge yet. Upload documents or add a page.`,"know.drop":`Drop documents here or`,"know.pick":`choose`,"know.page":`Page`,"know.table":`Table`,"know.faq":`FAQ`,"know.file":`File`,"know.category":`Category`,"know.categories":`Categories`,"know.newPage":`New page`,"know.newTable":`New table`,"know.asFaq":`As an FAQ: a question and its answer per row`,"know.newCategory":`New category`,"know.search":`Try a search…`,"know.searchNone":`No matches.`,"know.searchStats":`{candidates} candidates checked, {hits} relevant`,"know.searchUnchecked":`{hits} hits, unchecked`,"know.unchecked":`The Classifier model checks hits. With an AI Gateway or TypeSafe key, or an account, a decision model does it instead.`,"know.keywordsOnly":`Without an embedding model the search finds words, not meaning.`,"know.clear":`Reset`,"know.sub":{one:`{n} sub-page`,other:`{n} sub-pages`},"know.rows":{one:`{n} row`,other:`{n} rows`},"know.review":`Check`,"know.reviewed":`Checked`,"know.from":`From {label}`,"know.kept":`Edited by hand – {label} no longer updates it.`,"know.original":`Original`,"know.reading":`Reading…`,"know.subPages":`Sub-pages`,"know.addSub":`Sub-page`,"know.type.choice":`Choice`,"know.type.date":`Date`,"know.type.number":`Number`,"know.type.text":`Text`,"know.type.boolean":`Yes/no`,"know.name":`Name`,"know.type":`Type`,"know.unit":`Unit`,"know.unitHint":`e.g. h, €, kg`,"know.multiple":`Several values per item`,"know.ordered":`The values are ranked (low → high)`,"know.values":`Values`,"know.valuesHint":`One per line. More are added as items come in.`,"know.hintField":`Where the values come from`,"know.hintFieldHint":`Keep it short, e.g. header, file name or the website’s filter.`,"know.create":`Create`,"know.proposed":`Proposed`,"know.proposedHint":`It gets filled once you accept it.`,"know.accept":`Accept`,"know.dismiss":`Dismiss`,"know.alike":`“{a}” and “{b}” look like one value.`,"know.merge":`Merge`,"know.items":{one:`{n} item`,other:`{n} items`},"know.item":`1 item`,"know.row":`1 row`,"know.oneSub":`1 sub-page`,"know.addValue":`Add a value`,"know.range":`{min} to {max}`,"know.summary":`Overview`,"know.summaryHint":`A model summarises the items with this value. Search finds the overview like a page.`,"know.summaryWrite":`Write the overview`,"know.summaryAgain":`Write again`,"know.summaryEmpty":`No overview yet.`,"know.toc":`Contents`,"know.tocRows":{one:`{n} row in {table}`,other:`{n} rows in {table}`},"know.deleteCategory":`Delete category`,"know.confirmCategory":`Delete “{name}”? The items stay – only the category is deleted.`,"know.deleteValue":`Delete value`,"know.yes":`Yes`,"know.no":`No`,"know.minimum":`from`,"know.maximum":`to`,"know.contains":`contains`,"know.by.person":`set by hand`,"know.by.origin":`from the source`,"know.by.model":`read by a model`,"know.remove":`Remove`,"know.unset":`Not set`,"know.deleteFile":`Delete file`,"project.documents":`Documents`,"project.documentsHint":`PDFs, lists, Excel, Word, text. They’re read and put into an index that every AI step searches.`,"project.documentAdd":`Documents`,"project.drop":`Drop here or`,"project.staysLocal":`Stays on your computer and isn’t sent here.`,"project.description":`Add a description…`,"project.describing":`Looking at it…`,"project.reading":`Reading…`,"project.indexed":`In the index`,"project.indexedKeywords":`In the index (keywords)`,"project.notIndexed":`No text found`,"project.reindex":`Read again`,"project.pages":{one:`{n} page`,other:`{n} pages`},"project.keywordsOnly":`The index searches by keywords right now. With an AI Gateway or OpenAI key it also searches by meaning.`,"project.preview":`Preview`,"project.viewList":`Show as a list`,"project.viewCards":`Show as cards`,"project.original":`Original`,"project.readText":`Text as read`,"project.openOriginal":`Open the original`,"project.noText":`No text yet: the document is still being read, or couldn’t be read.`,"project.textCut":`The preview shows the start ({shown} of {total} characters).`,"project.searchTest":`Search the index…`,"project.searchNone":`No matches.`,"project.remove":`Delete`,"project.removeConfirm":`Delete “{name}”?`,"project.facts":`Facts`,"project.factsHint":`What wizards should know: address, VAT ID, opening hours – anything that fits.`,"project.factLabel":`Label`,"project.factValue":`Value`,"project.factAdd":`Entry`,"credit.engenty-wizards":`AI wizards built from a description, shared with a link.`,"credit.engenty":`Connectors, data tables, search and the engenties come from the engenty framework.`,"credit.mastra":`Agent framework behind the AI steps.`,"credit.ai-sdk":`Model calls for text, image, video and speech.`,"credit.model-context-protocol":`MCP server for building wizards, MCP client for the steps’ tools.`,"credit.hono":`The HTTP API of engenty wizards.`,"credit.drizzle-orm":`Schema and migrations of the databases.`,"credit.libsql":`One database per tenant, a local file or at Turso.`,"credit.playwright":`Browser steps and the PDF and PNG export.`,"credit.agentos":`Sandbox for code steps without Docker.`,"credit.react":`UI library of the web app.`,"credit.vite":`Build tool of the web app.`,"credit.tailwind-css":`Styling of the interface.`,"credit.react-flow":`The diagram of steps in the editor.`,"credit.tanstack-query":`Server data in the web app.`,"credit.xterm-js":`The terminal on the page where AI clients sign in.`,"credit.lucide":`Icons.`,"credit.geist-geist-mono":`Typeface of the interface.`,"credit.space-grotesk":`Typeface of the headings.`,"credit.git-cliff":`Generates the changelog from the commits.`,"fact.adresse":`Address`,"fact.plz":`Postcode`,"fact.ort":`City`,"fact.uid":`VAT ID`,"fact.telefon":`Phone`,"fact.e_mail":`Email`,"fact.website":`Website`,"fact.iban":`IBAN`,"project.factType":`Type`,"project.factAuto":`Automatic`,"project.type.text":`Text`,"project.type.longtext":`Long text`,"project.type.number":`Number`,"project.type.date":`Date`,"project.type.url":`Link`,"project.type.email":`Email`,"project.type.phone":`Phone`,"project.type.boolean":`Yes/no`,"project.yes":`Yes`,"project.no":`No`,"assistant.name":`Goose`,"assistant.ask":`Ask Goose`,"assistant.open":`Open Goose`,"assistant.sees":`Sees: {page}`,"assistant.menu":`Chat menu`,"assistant.newChat":`New chat`,"assistant.earlier":`Earlier chats`,"assistant.noEarlier":`No earlier chats yet.`,"assistant.untitled":`Untitled`,"assistant.summarising":`Summarising the chat…`,"assistant.readOnly":`An earlier chat – you can only read it. Goose knows its summary.`,"assistant.back":`Back`,"assistant.layoutBottom":`Dock at the bottom`,"assistant.layoutSidebar":`As a sidebar`,"assistant.close":`Close`,"assistant.helloTitle":`How can I help?`,"assistant.hello":`I know engenty wizards and see what you see. Ask me how something works – I’ll show you too.`,"assistant.composer":`Ask something or say what you need…`,"assistant.filesNeedSpace":`Files belong to a space. You can’t change any here.`,"assistant.talk":`Talk`,"assistant.live":`Live chat`,"assistant.liveListening":`Listening`,"assistant.liveThinking":`Thinking`,"assistant.liveSpeaking":`Speaking`,"assistant.liveMuted":`Muted`,"assistant.mute":`Microphone off`,"assistant.unmute":`Microphone on`,"assistant.end":`End`,"assistant.naturalVoice":`Natural voice (speech model)`,"assistant.gotIt":`Got it`,"assistant.move":`Drag to move Goose – near the bottom or the right edge it snaps into place`,"assistant.flap":`Chat history: drag to resize, click to fold it in or out`,"assistant.busyComposer":`Write in between – Enter: before the next step, {keys}: after`,"assistant.pending":`Waiting for Goose`,"assistant.pendingSignal":`next step`,"assistant.pendingSignalHint":`Goose reads it before its next step`,"assistant.pendingQueue":`after`,"assistant.pendingQueueHint":`Goes out once Goose is done`,"assistant.sendNow":`Send now`,"assistant.sendNowHint":`Stop Goose and send this now`,"assistant.edit":`Edit`,"assistant.remove":`Remove`,"assistant.signalled":`Written during the answer`,"assistant.dev":`Developer mode`,"assistant.devOn":`Developer mode on: steps, tools, prompt and turns. Click to switch it off.`,"assistant.devOff":`Developer mode off. Click to switch it on.`,"assistant.step":`Step {n}`,"assistant.tokens":`{input} in · {output} out · {total} tokens`,"assistant.stepTools":`Tools`,"assistant.args":`Arguments`,"assistant.result":`Result`,"assistant.usage":`Context window and usage`,"assistant.window":`Context window`,"assistant.lastTurn":`Last question`,"assistant.wholeChat":`Whole chat`,"assistant.promptTokens":`Prompt`,"assistant.answerTokens":`Answer`,"assistant.duration":`Duration`,"assistant.cost":`Cost`,"assistant.steps":`Steps`,"assistant.inspect":`View the turns`,"assistant.copyThread":`Copy the thread with its events as JSON`,"assistant.copied":`Copied`,"assistant.turns":`Turns`,"assistant.turnsTimeline":`Timeline`,"assistant.turnsPrompt":`Prompt`,"assistant.turnsEvents":`Events`,"assistant.noTurns":`No turns yet – they’re recorded while developer mode is on.`,"assistant.download":`Download as JSONL`,"assistant.system":`Instructions`,"assistant.context":`Page, space and message`,"assistant.history":{one:`Chat ({n} message)`,other:`Chat ({n} messages)`},"assistant.tools":`Tools ({n})`,"assistant.estimate":`≈ {tokens} tokens (4 characters a token)`,"assistant.tool.navigate":`Opened {where}`,"assistant.tool.highlight":`Marked: {what}`,"assistant.tool.look":`Looked at the page`,"assistant.tool.read":`Read: {what}`,"assistant.tool.fill":`Filled in: {what}`,"assistant.tool.docs":`Read the guide`,"assistant.tool.gallery":`Searched the templates`,"assistant.tool.account":`Checked the account`,"assistant.tool.chats":`Searched earlier chats`,"assistant.tool.space":`Checked wizards and runs`,"assistant.tool.models":`Checked the models`,"assistant.suggest.what":`What can I do with engenty wizards?`,"assistant.suggest.models":`Show me where to set up the models`,"assistant.suggest.credits":`How many credits do I have left?`,"assistant.suggest.modelsNow":`What runs here right now, and what’s missing?`,"assistant.suggest.modelsMissing":`Why can’t videos be made here?`,"assistant.suggest.modelsCost":`What does each option cost me?`,"assistant.suggest.accountWhy":`What do I need an account for?`,"assistant.suggest.plans":`Which plans are there, and what do they cost?`,"assistant.suggest.integrateWhat":`What can I do from Claude or Cursor?`,"assistant.suggest.integrateClaude":`How do I add Claude Desktop?`,"assistant.suggest.connectorsWhat":`What are connectors for?`,"assistant.suggest.connectorsAdd":`Connect this service: `,"assistant.suggest.readSite":`Read our website `,"assistant.suggest.missing":`What’s the space still missing?`,"assistant.suggest.facts":`What do the wizards need the facts for?`,"assistant.suggest.knowledgeHow":`How does knowledge get into the space?`,"assistant.suggest.knowledgeSite":`Read this website into the knowledge: `,"assistant.suggest.knowledgeCategories":`What are categories for?`,"assistant.suggest.dataWhat":`What’s in this data?`,"assistant.suggest.dataWho":`Which wizard fills which table?`,"assistant.suggest.dataEdit":`How do I change a column?`,"assistant.suggest.resultsFailed":`Which runs failed recently?`,"assistant.suggest.resultsCost":`What cost the most credits this month?`,"assistant.suggest.resultsShare":`How do I share a result?`,"project.assistantTitle":`Tell me about your business`,"project.assistantHello":`Give me your website or some files. I’ll fill in what I find: title, description, logo, colours and facts.`,"project.assistantComposer":`e.g. “Read our website example.com”…`,"project.assistantTitleKnowledge":`What should your wizards know?`,"project.assistantHelloKnowledge":`Give me documents or tell me where the knowledge is. I’ll read it in – this page shows what goes in.`,"project.assistantComposerKnowledge":`Attach documents or say where the knowledge is…`,"project.assistantChanged":`Space updated`,"flowApp.loading":`The wizard is on its way…`,"flowApp.broken":`This can’t be shown here.`,"flowApp.draft":`Draft`,"flowApp.published":`Published`,"flowApp.issues":{one:`{n} issue in the draft`,other:`{n} issues in the draft`},"flowApp.flow":`Flow`,"flowApp.notPublished":`Publish it in the studio to run it here.`,"flowApp.runPage":`Continue in the browser`,"flowApp.inBrowser":`Only in the browser: {fields}`,"flowApp.done":`Done`,"flowApp.credits":{one:`{n} credit`,other:`{n} credits`},"flowApp.ask":`The wizard asks`,"flowApp.allow":`Allow`,"flowApp.skip":`Skip`,"flowApp.signIn":`A sign-in at {site} – only in the browser.`,"flowApp.fullscreen":`Full screen`,"flowApp.inline":`Exit full screen`,"flowApp.failed":`That didn’t work: {error}`,"inspector.aspectRatio":`Aspect ratio`,"inspector.downloads":`Downloads`,"inspector.avatar":`Avatar`,"editor.zoomOut":`Zoom out`,"editor.zoomFit":`Fit to view`,"editor.zoomIn":`Zoom in`,"nav.breadcrumb":`You are here`,"run.testChip":`Test run`,"common.delete":`Delete`,"settings.deleteTitle":`Delete “{name}”?`,"settings.deleteBody":`The space is deleted with its wizards, knowledge and data. The wizards’ links stop working. This can’t be undone.`,"connectors.removeConfirm":`Remove “{name}”? Steps that use it stop working until you import it again.`,"connectors.clientId":`OAuth client ID`,"connectors.clientSecret":`OAuth client secret`},de:Dv},kv=`wizards.lang`,Av=`wizards.lang.local`,jv=`engenty_lang`;function Mv(){if(typeof document>`u`)return null;let e=document.cookie.split(`;`).map(e=>e.trim()).find(e=>e.startsWith(`${jv}=`))?.slice(13);return jg(e)?e:null}function Nv(e){if(typeof document>`u`)return;let t=window.location.hostname,n=t.split(`.`),r=n.length>1&&!/^\d+$/.test(n[n.length-1])?n.length>2?n.slice(1).join(`.`):t:``,i=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${jv}=${e}; Path=/; Max-Age=31536000; SameSite=Lax${r?`; Domain=${r}`:``}${i}`}function Pv(e){try{let t=localStorage.getItem(e);return jg(t)?t:null}catch{return null}}function Fv(){return Pv(kv)}function Iv(){if(typeof navigator>`u`)return null;let e=null;try{e=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return Ig(navigator.languages??[navigator.language],e)}var Lv=Fv()??Mv()??Iv()??`en`,Rv=Lv;function zv(){if(typeof navigator>`u`)return null;let e=null;try{e=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return Bg(navigator.languages??[navigator.language],e)}function Bv(){return Lv===`en`?Pv(Av)??Iv():Lv}var Vv=new Set,Hv=0;function Uv(e){if(Nv(e),Rv=e,e!==Lv){Lv=e,yv(e),document.documentElement.lang=e;try{localStorage.setItem(kv,e),e!==`en`&&localStorage.setItem(Av,e)}catch{}Hv+=1;for(let e of Vv)e()}}function Wv(e,t){let n=e===null?Rv:jg(e)?e:`en`,r=e!==null&&!jg(e)?t??null:null;if(n!==Lv||r!==xv()){Lv=n,yv(n),bv(r),document.documentElement.lang=e??n,Hv+=1;for(let e of Vv)e()}}function Gv(){return(0,o.useSyncExternalStore)(e=>(Vv.add(e),()=>Vv.delete(e)),()=>Hv),Lv}function Kv(e){let t=xv();return e.note&&fv(e.note,t?.lang??Lv,t?.notes)||e.message}function K(e,t){let n=xv(),r=n?.runner[e];return n&&r!==void 0?cv(r,n.lang,t):sv(Ov,e,Lv,t)}typeof document<`u`&&(document.documentElement.lang=Lv);function q(...e){return e.filter(Boolean).join(` `)}var qv={primary:`bg-primary text-primary-foreground hover:brightness-[1.06] active:brightness-95 shadow-[0_1px_0_oklch(0%_0_0/0.08)]`,secondary:`bg-card text-ink border border-border hover:bg-paper-2`,ghost:`text-ink-2 hover:text-ink hover:bg-accent`,quiet:`bg-paper-2 text-ink hover:bg-paper-3`,danger:`text-rose hover:bg-rose-tint`},J=(0,o.forwardRef)(function({variant:e=`primary`,size:t=`md`,busy:n,className:r,children:i,disabled:a,...o},c){return(0,s.jsxs)(`button`,{ref:c,type:`button`,disabled:a||n,className:q(`inline-flex select-none items-center justify-center gap-2 whitespace-nowrap rounded-full font-medium transition-[background,filter,color,transform] duration-150 active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50`,t===`sm`&&`h-8 px-3 text-[0.8125rem] coarse:h-11 coarse:px-4`,t===`md`&&`h-10 px-4 text-sm coarse:h-11`,t===`lg`&&`h-12 px-6 text-[0.9375rem]`,qv[e],r),...o,children:[n?(0,s.jsx)(oy,{className:`size-4`}):null,i]})});function Jv({label:e,className:t,children:n,...r}){return(0,s.jsx)(`button`,{type:`button`,"aria-label":e,title:e,className:q(`inline-flex size-9 shrink-0 items-center justify-center rounded-full text-ink-3 transition hover:bg-accent hover:text-ink disabled:opacity-40 coarse:size-11`,t),...r,children:n})}var Yv=`rounded-lg border border-input bg-card px-3.5 text-[0.9375rem] text-ink shadow-[inset_0_1px_0_oklch(0%_0_0/0.02)] outline-none transition placeholder:text-ink-4 focus:border-focus focus:ring-4 focus:ring-focus-glow disabled:opacity-60`;function Xv(e){return/(^|\s)w-/.test(e??``)?null:`w-full`}var Zv=(0,o.forwardRef)(function({className:e,...t},n){return(0,s.jsx)(`input`,{ref:n,className:q(Yv,Xv(e),`h-11`,e),...t})});function Qv(e){return(0,s.jsx)(`input`,{type:`color`,className:`swatch size-11 shrink-0 cursor-pointer rounded-lg border border-input bg-card p-1`,...e})}var $v=(0,o.forwardRef)(function({className:e,minRows:t=3,maxRows:n=14,onChange:r,...i},a){let c=(0,o.useRef)(null),l=()=>{let e=c.current;if(!e)return;let r=Number.parseFloat(getComputedStyle(e).lineHeight)||22;e.style.height=`auto`;let i=r*n+20;e.style.height=`${Math.min(Math.max(e.scrollHeight,r*t+20),i)}px`,e.style.overflowY=e.scrollHeight>i?`auto`:`hidden`};return(0,o.useLayoutEffect)(l),(0,s.jsx)(`textarea`,{ref:e=>{c.current=e,typeof a==`function`?a(e):a&&(a.current=e)},className:q(Yv,Xv(e),`resize-none py-2.5 leading-[1.5]`,e),onChange:e=>{l(),r?.(e)},...i})});function ey({value:e,onChange:t,options:n,className:r,placeholder:i}){return(0,s.jsxs)(`div`,{className:q(`relative`,r),children:[(0,s.jsxs)(`select`,{value:e,onChange:e=>t(e.target.value),className:q(Yv,`h-11 w-full appearance-none pr-9`),children:[i===void 0?null:(0,s.jsx)(`option`,{value:``,children:i}),n.map(e=>(0,s.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value))]}),(0,s.jsx)(`svg`,{className:`-translate-y-1/2 pointer-events-none absolute top-1/2 right-3 size-4 text-ink-3`,viewBox:`0 0 16 16`,fill:`none`,children:(0,s.jsx)(`path`,{d:`M4 6l4 4 4-4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})]})}function ty({value:e,onChange:t,options:n,multi:r,disabled:i,label:a}){let o=new Set(Array.isArray(e)?e:e?[e]:[]);return(0,s.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>{let c=o.has(e);return(0,s.jsx)(`button`,{type:`button`,"aria-pressed":c,disabled:i?.includes(e),onClick:()=>{if(r){let r=new Set(o);c?r.delete(e):r.add(e),t(n.filter(e=>r.has(e)))}else t(e)},className:q(`h-10 rounded-full border px-4 text-sm transition disabled:pointer-events-none disabled:opacity-60 disabled:line-through coarse:h-11`,c?`border-ember bg-ember-tint text-ink`:`border-input bg-card text-ink-2 hover:border-ink-4 hover:text-ink`),children:a?a(e):e},e)})})}var ny=`cubic-bezier(0.3, 0.7, 0.2, 1)`;function ry({value:e,onChange:t,options:n,label:r}){let i=(0,o.useRef)(new Map),[a,c]=(0,o.useState)(null);return(0,o.useLayoutEffect)(()=>{let t=i.current.get(e);if(!t)return;let n=()=>c({x:t.offsetLeft,w:t.offsetWidth});n();let r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()},[e]),(0,s.jsxs)(`div`,{role:`tablist`,"aria-label":r,className:`relative inline-flex items-center rounded-full bg-paper-2 p-0.5 ring-1 ring-border-soft`,children:[a?(0,s.jsx)(`span`,{"aria-hidden":`true`,className:`absolute top-0.5 bottom-0.5 left-0 rounded-full bg-card shadow-sm motion-reduce:transition-none`,style:{width:a.w,transform:`translateX(${a.x}px)`,transition:`transform 300ms ${ny}, width 300ms ${ny}`}}):null,n.map(n=>{let r=n.id===e;return(0,s.jsx)(`button`,{ref:e=>{e?i.current.set(n.id,e):i.current.delete(n.id)},type:`button`,role:`tab`,"aria-selected":r,onClick:()=>t(n.id),className:q(`relative h-8 whitespace-nowrap rounded-full px-4 font-medium text-[0.875rem] transition-colors motion-reduce:transition-none coarse:h-9`,r?`text-ink`:`text-ink-3 hover:text-ink-2`),children:n.label},n.id)})]})}function iy({checked:e,onChange:t,label:n,disabled:r}){return(0,s.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":e,"aria-label":n,disabled:r,onClick:()=>t(!e),className:q(`relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition before:absolute before:-inset-x-1 before:-inset-y-2.5 before:content-[''] disabled:pointer-events-none disabled:opacity-60`,e?`bg-primary`:`bg-paper-3`),children:(0,s.jsx)(`span`,{className:q(`inline-block size-5 rounded-full bg-white shadow-sm transition-transform`,e?`translate-x-[22px]`:`translate-x-[2px]`)})})}function ay({children:e,hint:t,required:n}){return(0,s.jsxs)(`div`,{className:`mb-2`,children:[(0,s.jsxs)(`div`,{className:`font-medium text-[0.875rem] text-ink`,children:[e,n?(0,s.jsx)(`span`,{className:`ml-1 text-ember`,children:`*`}):null]}),t?(0,s.jsx)(`div`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:t}):null]})}function oy({className:e}){return(0,s.jsxs)(`svg`,{className:q(`size-5 animate-spin`,e),viewBox:`0 0 24 24`,fill:`none`,children:[(0,s.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,stroke:`currentColor`,strokeOpacity:`0.2`,strokeWidth:`3`}),(0,s.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`})]})}function sy({className:e,children:t,...n}){return(0,s.jsx)(`div`,{className:q(`rounded-xl bg-card shadow-soft ring-1 ring-border-soft`,e),...n,children:t})}function cy({children:e,tone:t=`neutral`,icon:n,title:r}){return(0,s.jsxs)(`span`,{title:r,className:q(`inline-flex h-6 items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 font-medium text-[0.75rem]`,t===`neutral`&&`bg-paper-2 text-ink-2`,t===`live`&&`bg-moss-tint text-moss`,t===`warn`&&`bg-amber-tint text-ink-2`,t===`ember`&&`bg-ember-tint text-ember-strong`),children:[n??(t===`live`?(0,s.jsx)(`span`,{className:`size-1.5 rounded-full bg-moss`}):null),e]})}function ly({open:e,onClose:t,title:n,children:r,wide:i,bare:a,height:c=`auto`}){let l=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let t=l.current;t&&(e&&!t.open?(t.showModal(),t.querySelector(`[data-autofocus]`)?.focus()):!e&&t.open&&t.close())},[e]),(0,o.useEffect)(()=>{let t=l.current;if(!t||!e||a||c===`tall`)return;let n=0,r=()=>{n=Math.max(n,t.getBoundingClientRect().height),t.style.minHeight=`${Math.min(n,window.innerHeight-32)}px`},i=new ResizeObserver(r);return i.observe(t),window.addEventListener(`resize`,r),()=>{i.disconnect(),window.removeEventListener(`resize`,r),t.style.minHeight=``}},[e,a,c]),(0,s.jsx)(`dialog`,{ref:l,onClose:t,onClick:e=>{e.target===l.current&&t()},className:q(`m-auto p-0 text-ink backdrop:bg-[oklch(20%_0.01_60/0.28)] backdrop:backdrop-blur-[2px]`,`max-sm:m-0 max-sm:h-dvh max-sm:max-h-none max-sm:w-full max-sm:max-w-none`,a?`w-[calc(100%-48px)] overflow-visible bg-transparent`:`max-h-[calc(100dvh-32px)] w-[calc(100%-32px)] overflow-y-auto overscroll-contain rounded-2xl bg-card shadow-overlay max-sm:rounded-none max-sm:pt-[env(safe-area-inset-top)] max-sm:pb-[env(safe-area-inset-bottom)]`,i===`page`?`sm:max-w-4xl`:i?`sm:max-w-2xl`:`sm:max-w-md`,!a&&c===`tall`&&`sm:h-[min(calc(100dvh-32px),56rem)]`),children:e&&a?r:e?(0,s.jsxs)(`div`,{className:`p-5 sm:p-7`,children:[n?(0,s.jsxs)(`div`,{className:`mb-5 flex items-start justify-between gap-3`,children:[(0,s.jsx)(`h2`,{className:`min-w-0 font-display font-semibold text-xl`,children:n}),(0,s.jsx)(Jv,{label:G(`common.close`),onClick:t,className:`-mt-1.5 -mr-2`,children:(0,s.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,className:`size-4`,"aria-hidden":`true`,children:(0,s.jsx)(`path`,{d:`M4 4l8 8M12 4l-8 8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})]}):null,r]}):null})}function uy({children:e}){return(0,s.jsx)(`div`,{className:`py-16 text-center text-ink-3`,children:e})}function dy({text:e}){return e.split(/(https?:\/\/[^\s)]+)/).map((e,t)=>t%2?(0,s.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:`font-medium text-ink underline underline-offset-2`,children:new URL(e).host},e):e)}var fy=(e=>(e[e.Border=-1]=`Border`,e[e.Data=0]=`Data`,e[e.Function=1]=`Function`,e[e.Position=2]=`Position`,e[e.Timing=3]=`Timing`,e[e.Alignment=4]=`Alignment`,e))(fy||{}),py=[0,1],my=[1,0],hy=[2,3],gy=[3,2],_y={L:py,M:my,Q:hy,H:gy},vy=/^\d*$/,yy=/^[A-Z0-9 $%*+./:-]*$/,by=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,xy=1,Sy=40,Cy=3,wy=3,Ty=40,Ey=10,Dy=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Oy=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],ky=class{constructor(e,t,n,r){if(this.version=e,this.ecc=t,e<xy||e>Sy)throw RangeError(`Version value out of range`);if(r<-1||r>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let i=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let a=this.addEccAndInterleave(n);if(this.drawCodewords(a),r===-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,fy.Timing),this.setFunctionModule(e,6,e%2==0,fy.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n===0&&r===0||n===0&&r===t-1||n===t-1&&r===0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,jy(r,e));this.setFunctionModule(8,7,jy(r,6)),this.setFunctionModule(8,8,jy(r,7)),this.setFunctionModule(7,8,jy(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,jy(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,jy(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,jy(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=jy(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a<this.size&&o>=0&&o<this.size&&this.setFunctionModule(a,o,i!==2&&i!==4,fy.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,fy.Alignment)}setFunctionModule(e,t,n,r=fy.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==Ky(t,n))throw RangeError(`Invalid argument`);let r=Oy[n[0]][t],i=Dy[n[0]][t],a=Math.floor(Gy(t)/8),o=r-a%r,s=Math.floor(a/r),c=[],l=qy(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<o?0:1));n+=r.length;let a=Jy(r,l);t<o&&r.push(0),c.push(r.concat(a))}let u=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!==s-i||n>=o)&&u.push(t[e])});return u}drawCodewords(e){if(e.length!==Math.floor(Gy(this.version)/8))throw RangeError(`Invalid argument`);let t=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=n-i,o=n+1&2?r:this.size-1-r;!this.types[o][a]&&t<e.length*8&&(this.modules[o][a]=jy(e[t>>>3],7-(t&7)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[t][a]===n?(r++,r===5?e+=Cy:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*Ty),n=this.modules[t][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*Ty}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][t]===n?(r++,r===5?e+=Cy:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*Ty),n=this.modules[a][t],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*Ty}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=wy)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size,r=Math.ceil(Math.abs(t*20-n*10)/n)-1;return e+=r*Ey,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}};function Ay(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function jy(e,t){return!!(e>>>t&1)}var My=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}},Ny=[1,10,12,14],Py=[2,9,11,13],Fy=[4,8,16,16];function Iy(e,t){return e[Math.floor((t+7)/17)+1]}function Ly(e){let t=[];for(let n of e)Ay(n,8,t);return new My(Fy,e.length,t)}function Ry(e){if(!Vy(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let n=0;n<e.length;){let r=Math.min(e.length-n,3);Ay(Number.parseInt(e.substring(n,n+r),10),r*3+1,t),n+=r}return new My(Ny,e.length,t)}function zy(e){if(!Hy(e))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let t=[],n=0;for(;n+2<=e.length;n+=2){let r=by.indexOf(e.charAt(n))*45;r+=by.indexOf(e.charAt(n+1)),Ay(r,11,t)}return n<e.length&&Ay(by.indexOf(e.charAt(n)),6,t),new My(Py,e.length,t)}function By(e){return e===``?[]:Vy(e)?[Ry(e)]:Hy(e)?[zy(e)]:[Ly(Wy(e))]}function Vy(e){return vy.test(e)}function Hy(e){return yy.test(e)}function Uy(e,t){let n=0;for(let r of e){let e=Iy(r.mode,t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}function Wy(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)===`%`?(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}function Gy(e){if(e<xy||e>Sy)throw RangeError(`Version number out of range`);let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function Ky(e,t){return Math.floor(Gy(e)/8)-Dy[t[0]][e]*Oy[t[0]][e]}function qy(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=Yy(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=Yy(n,2)}return t}function Jy(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=Yy(t,e))}return n}function Yy(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function Xy(e,t,n=1,r=40,i=-1,a=!0){if(!(xy<=n&&n<=r&&r<=Sy)||i<-1||i>7)throw RangeError(`Invalid value`);let o,s;for(o=n;;o++){let n=Ky(o,t)*8,i=Uy(e,o);if(i<=n){s=i;break}if(o>=r)throw RangeError(`Data too long`)}for(let e of[my,hy,gy])a&&s<=Ky(o,e)*8&&(t=e);let c=[];for(let t of e){Ay(t.mode[0],4,c),Ay(t.numChars,Iy(t.mode,o),c);for(let e of t.getData())c.push(e)}let l=Ky(o,t)*8;Ay(0,Math.min(4,l-c.length),c),Ay(0,(8-c.length%8)%8,c);for(let e=236;c.length<l;e^=253)Ay(e,8,c);let u=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((e,t)=>u[t>>>3]|=e<<7-(t&7)),new ky(o,t,u,i)}function Zy(e,t){let{ecc:n=`L`,boostEcc:r=!1,minVersion:i=1,maxVersion:a=40,maskPattern:o=-1,border:s=1}=t||{},c=typeof e==`string`?By(e):Array.isArray(e)?[Ly(e)]:void 0;if(!c)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=Xy(c,_y[n],i,a,o,r),u=Qy({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},s);return t?.invert&&(u.data=u.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(u),u}function Qy(e,t=1){if(!t)return e;let{size:n}=e,r=n+t*2;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=fy.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}function $y(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function eb(e,t={}){let n=Zy(e,t),{pixelSize:r=10,whiteColor:i=`white`,blackColor:a=`black`}=t,o=n.size*r,s=n.size*r,c=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${s} ${o}">`,l=[];for(let e=0;e<n.size;e++)for(let t=0;t<n.size;t++){let i=t*r,a=e*r;n.data[e][t]&&l.push(`M${i},${a}h${r}v${r}h-${r}z`)}return c+=`<rect fill="${$y(i)}" width="${s}" height="${o}"/>`,c+=`<path fill="${$y(a)}" d="${l.join(``)}"/>`,c+=`</svg>`,c}var tb=e=>`${e.slice(0,4)} ${e.slice(4)}`,nb=e=>eb(e,{ecc:`M`,border:2,pixelSize:8}),rb=e=>`${(e.trim()||`wizard`).replace(/[^\p{L}\p{N}]+/gu,`-`).toLowerCase()}-qr`;function ib(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}async function ab(e,t){let n=new Image,r=URL.createObjectURL(new Blob([e],{type:`image/svg+xml`}));try{n.src=r,await n.decode();let e=document.createElement(`canvas`);e.width=1024,e.height=1024;let i=e.getContext(`2d`);if(!i)return;i.imageSmoothingEnabled=!1,i.drawImage(n,0,0,1024,1024);let a=await new Promise(t=>e.toBlob(t,`image/png`));a&&ib(a,`${rb(t)}.png`)}finally{URL.revokeObjectURL(r)}}function ob(e,t){let n=window.open(``,`_blank`,`width=520,height=680`);if(!n)return;let r=n.document;r.title=t;let i=r.createElement(`style`);i.textContent=`body{margin:0;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;font:600 28px system-ui,sans-serif}svg{width:12cm;height:12cm}`,r.head.append(i);let a=new DOMParser().parseFromString(e,`image/svg+xml`).documentElement,o=r.createElement(`div`);o.textContent=t,r.body.append(r.importNode(a,!0),o),n.addEventListener(`afterprint`,()=>n.close()),n.focus(),n.print()}function sb({svg:e,label:t,className:n}){return(0,s.jsx)(`div`,{role:`img`,"aria-label":t,className:q(`overflow-hidden rounded-xl bg-white [&>svg]:size-full`,n),dangerouslySetInnerHTML:{__html:e}})}function cb({text:e,label:t,className:n}){let r=(0,o.useMemo)(()=>nb(e),[e]);return(0,s.jsx)(sb,{svg:r,label:t,className:q(`size-40 p-1`,n)})}var lb=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n}};function ub(e){return e instanceof lb&&e.status===0}function db(e){try{return JSON.parse(e)}catch{return{error:e}}}function fb(e,t={},n){async function r(r,i,a){let o=await fetch(e(i),{method:r,credentials:`include`,headers:{"accept-language":mv,...t,...a!==void 0&&!(a instanceof FormData)?{"content-type":`application/json`}:{}},body:a===void 0?void 0:a instanceof FormData?a:JSON.stringify(a)}).catch(()=>{throw new lb(G(`common.offline`),0,null)}),s=await o.text(),c=s?db(s):null;if(!o.ok)throw o.status>=500&&n?.(`${r} ${i} answered ${o.status}: ${c?.error??``}`),new lb(c?.error??c?.message??o.statusText,o.status,c);return c}return{get:e=>r(`GET`,e),post:(e,t)=>r(`POST`,e,t??{}),put:(e,t)=>r(`PUT`,e,t),patch:(e,t)=>r(`PATCH`,e,t),del:e=>r(`DELETE`,e),upload:(e,t)=>{let n=new FormData;return n.set(`file`,t),r(`POST`,e,n)}}}var pb={can:()=>!1,call:e=>Promise.reject(Error(`the app cannot ${e}`)),tell:()=>void 0,download:()=>!1},mb=null;function hb(e){mb=e,_b=fb(e.withBase,e.headers,e.onServerError),yv(e.lang)}function gb(){if(!mb)throw Error(`configureRunner() first`);return mb}var _b=fb(e=>e),vb=e=>gb().withBase(e),yb=e=>gb().asset(e),Y=e=>gb().runBase(e),bb=e=>(mb?.app??pb).can(e),xb=(e,t)=>(mb?.app??pb).call(e,t),Sb=(e,t)=>(mb?.app??pb).tell(e,t),Cb=(e,t,n)=>(mb?.app??pb).download(e,t,n),wb=()=>mb?.standalone===!0,Tb=250;function Eb({runId:e,driving:t,caption:n,action:r,hint:i,className:a,onBroken:c}){let l=(0,o.useRef)(null),u=(0,o.useRef)(null),[d,f]=(0,o.useState)(``),[p,m]=(0,o.useState)(!1),[h,g]=(0,o.useState)(null),_=async t=>{g(null);try{await _b.post(`${Y(e)}/browser/act`,t)}catch(e){g(e.message)}};return(0,o.useEffect)(()=>{t&&u.current?.scrollIntoView({block:`nearest`,behavior:`smooth`})},[t]),(0,o.useEffect)(()=>{let n=l.current;if(!(n&&t))return;let r=0,i=null,a=t=>{t.preventDefault(),r+=t.deltaY,i??=setTimeout(()=>{i=null;let t=Math.max(-2e3,Math.min(2e3,Math.round(r)));r=0,t&&_b.post(`${Y(e)}/browser/act`,{type:`scroll`,dy:t}).catch(()=>void 0)},Tb)};return n.addEventListener(`wheel`,a,{passive:!1}),()=>{n.removeEventListener(`wheel`,a),i&&clearTimeout(i)}},[t,e]),(0,s.jsxs)(`div`,{className:a,children:[(0,s.jsxs)(`div`,{className:q(`relative aspect-[1280/900] w-full overflow-hidden rounded-xl bg-paper-2 ring-1`,t?`ring-2 ring-ember`:`ring-border-soft`),children:[(0,s.jsx)(`img`,{ref:l,src:vb(`${Y(e)}/browser/live`),alt:``,draggable:!1,onClick:e=>{if(!t)return;let n=e.currentTarget.getBoundingClientRect();_({type:`click`,fx:Math.min(1,Math.max(0,(e.clientX-n.left)/n.width)),fy:Math.min(1,Math.max(0,(e.clientY-n.top)/n.height))})},onError:c,className:q(`size-full object-cover object-top`,t&&`cursor-pointer`)}),r?(0,s.jsx)(`div`,{className:`absolute top-2 right-2`,children:r}):null,n&&!t?(0,s.jsxs)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 flex items-center gap-1.5 bg-gradient-to-t from-black/75 to-transparent px-3 pt-8 pb-2 text-[0.8125rem] text-white`,children:[(0,s.jsx)(La,{className:`size-3.5 shrink-0`}),(0,s.jsx)(`span`,{className:`truncate`,children:n})]}):null]}),t?(0,s.jsxs)(`div`,{ref:u,className:`mt-1.5`,children:[i?(0,s.jsx)(`p`,{className:`mb-1.5 text-[0.8125rem] text-ink-3`,children:i}):null,(0,s.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 rounded-xl bg-card p-2 ring-1 ring-border-soft`,children:[(0,s.jsx)(Zv,{type:p?`password`:`text`,autoComplete:`off`,value:d,placeholder:G(`ask.typeInto`),onChange:e=>f(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),_({type:`type`,text:d}).then(()=>f(``)))},autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,enterKeyHint:`send`,className:`h-9 min-w-[9rem] flex-1 basis-full text-[0.8125rem] sm:basis-0 coarse:h-11`}),(0,s.jsx)(`button`,{type:`button`,onClick:()=>m(e=>!e),className:q(`h-9 shrink-0 rounded-md px-2.5 text-[0.75rem] coarse:h-11 coarse:px-3.5`,p?`bg-ember-veil text-ink`:`text-ink-3 hover:bg-paper-2`),children:G(`ask.hide`)}),(0,s.jsx)(Db,{label:`Enter`,onClick:()=>void _({type:`key`,key:`Enter`}),children:(0,s.jsx)(Gi,{className:`size-4`})}),(0,s.jsx)(Db,{label:G(`ask.up`),onClick:()=>void _({type:`scroll`,dy:-500}),children:(0,s.jsx)(yi,{className:`size-4`})}),(0,s.jsx)(Db,{label:G(`ask.down`),onClick:()=>void _({type:`scroll`,dy:500}),children:(0,s.jsx)(pi,{className:`size-4`})})]}),h?(0,s.jsx)(`p`,{className:`mt-1.5 text-[0.8125rem] text-rose`,children:h}):null]}):null]})}function Db({label:e,onClick:t,children:n}){return(0,s.jsx)(`button`,{type:`button`,"aria-label":e,title:e,onClick:t,className:`flex size-9 shrink-0 items-center justify-center rounded-md text-ink-3 hover:bg-paper-2 hover:text-ink coarse:size-11`,children:n})}function Ob({runId:e,ask:t}){return t.kind===`confirm`?(0,s.jsx)(kb,{runId:e,ask:t}):(0,s.jsx)(Ab,{runId:e,ask:t})}function kb({runId:e,ask:t}){let[n,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[c,l]=(0,o.useState)(null),u=async n=>{a(!0),l(null);try{await _b.post(`${Y(e)}/ask/${t.id}`,n)}catch(e){l(e.message),a(!1)}},d=t.action.destructive?bo:Ua;return(0,s.jsxs)(`div`,{className:`animate-rise`,children:[(0,s.jsxs)(`div`,{className:`mb-5 flex items-start gap-3`,children:[(0,s.jsx)(`div`,{className:q(`flex size-10 shrink-0 items-center justify-center rounded-full`,t.action.destructive?`bg-rose-tint text-rose`:`bg-ember-tint text-ember-strong`),children:(0,s.jsx)(d,{className:`size-5`})}),(0,s.jsxs)(`div`,{className:`min-w-0`,children:[(0,s.jsx)(`p`,{className:`text-[0.8125rem] text-ink-3`,children:G(`ask.wants`,{service:t.service})}),(0,s.jsx)(`h2`,{className:`font-display font-semibold text-[1.25rem] leading-snug tracking-tight`,children:t.reason})]})]}),(0,s.jsx)(`pre`,{className:`max-h-72 overflow-auto whitespace-pre-wrap break-words rounded-xl bg-paper-2 p-4 text-[0.8125rem] leading-relaxed ring-1 ring-border-soft`,children:t.input}),(0,s.jsxs)(`div`,{className:`mt-5 flex items-center gap-4`,children:[(0,s.jsx)(iy,{checked:n,onChange:r,label:G(`ask.allowRest`)}),(0,s.jsx)(`span`,{className:`flex-1 text-[0.8125rem] text-ink-2`,children:G(`ask.allowRest`)})]}),c?(0,s.jsx)(`div`,{className:`mt-3 rounded-lg bg-rose-tint px-4 py-3 text-[0.875rem] text-rose`,children:c}):null,(0,s.jsxs)(`div`,{className:`action-bar mt-6 flex items-center justify-between gap-3`,children:[(0,s.jsx)(J,{variant:`ghost`,disabled:i,onClick:()=>void u({type:`skip`}),children:G(`ask.deny`)}),(0,s.jsx)(J,{busy:i,onClick:()=>void u({type:`done`,remember:n}),children:G(`ask.allow`)})]})]})}function Ab({runId:e,ask:t}){let[n,r]=(0,o.useState)({}),[i,a]=(0,o.useState)(!1),[c,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(null),f=async n=>{l(!0),d(null);try{await _b.post(`${Y(e)}/ask/${t.id}`,n)}catch(e){d(e.message),l(!1)}},p=t.fields.some(e=>n[e.id]);return(0,s.jsxs)(`div`,{className:`animate-rise`,children:[(0,s.jsxs)(`div`,{className:`mb-5 flex items-start gap-3`,children:[(0,s.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-full bg-ember-tint text-ember-strong`,children:(0,s.jsx)(ka,{className:`size-5`})}),(0,s.jsxs)(`div`,{className:`min-w-0`,children:[(0,s.jsx)(`h2`,{className:`font-display font-semibold text-[1.25rem] leading-snug tracking-tight`,children:t.reason}),(0,s.jsxs)(`p`,{className:`mt-0.5 truncate text-[0.8125rem] text-ink-3`,children:[t.site.host,t.site.title?` · ${t.site.title}`:``]})]})]}),(0,s.jsx)(Eb,{runId:e,driving:!0}),(0,s.jsx)(`p`,{className:`mt-2 text-[0.75rem] text-ink-4`,children:G(`ask.pictureHint`)}),t.fields.length?(0,s.jsxs)(`form`,{className:`mt-5 flex flex-col gap-4`,onSubmit:e=>{e.preventDefault(),f({type:`fill`,values:n,remember:i})},children:[t.fields.map((e,i)=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(ay,{children:e.label}),(0,s.jsx)(Zv,{autoFocus:i===0,type:e.secret?`password`:`text`,autoComplete:`off`,autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,enterKeyHint:i===t.fields.length-1?`go`:`next`,value:n[e.id]??``,onChange:t=>r(n=>({...n,[e.id]:t.target.value}))})]},e.id)),(0,s.jsx)(`button`,{type:`submit`,hidden:!0})]}):null,(0,s.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-4`,children:[(0,s.jsx)(iy,{checked:i,onChange:a,label:G(`ask.remember`)}),(0,s.jsx)(`span`,{className:`flex-1 text-[0.8125rem] text-ink-2`,children:G(`ask.remember`)})]}),(0,s.jsxs)(`p`,{className:`mt-3 flex items-start gap-2 text-[0.8125rem] text-ink-3`,children:[(0,s.jsx)(lo,{className:`mt-0.5 size-4 shrink-0 text-moss`}),` `,G(`ask.private`)]}),u?(0,s.jsx)(`div`,{className:`mt-3 rounded-lg bg-rose-tint px-4 py-3 text-[0.875rem] text-rose`,children:u}):null,(0,s.jsxs)(`div`,{className:`action-bar mt-6 flex flex-wrap items-center justify-between gap-3`,children:[(0,s.jsx)(J,{variant:`ghost`,disabled:c,onClick:()=>void f({type:`skip`}),children:G(`ask.skip`)}),(0,s.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[t.fields.length?(0,s.jsx)(J,{variant:`secondary`,disabled:c,onClick:()=>void f({type:`done`,remember:i}),children:G(`ask.done`)}):null,t.fields.length?(0,s.jsx)(J,{busy:c,disabled:!p,onClick:()=>void f({type:`fill`,values:n,remember:i}),children:G(`ask.signIn`)}):(0,s.jsx)(J,{busy:c,onClick:()=>void f({type:`done`,remember:i}),children:G(`ask.done`)})]})]})]})}var jb=typeof window<`u`&&window.matchMedia?.(`(pointer: coarse)`).matches===!0,Mb=typeof navigator<`u`&&!!navigator.mediaDevices?.getUserMedia;function Nb(){(0,o.useEffect)(()=>{let e=window.visualViewport;if(!e)return;let t=document.documentElement,n=()=>{let n=e.scale>1.01?0:window.innerHeight-e.height-e.offsetTop,r=n>80;t.style.setProperty(`--kb`,r?`${Math.round(n)}px`:`0px`),t.classList.toggle(`keyboard-open`,r)};return n(),e.addEventListener(`resize`,n),e.addEventListener(`scroll`,n),()=>{e.removeEventListener(`resize`,n),e.removeEventListener(`scroll`,n),t.style.removeProperty(`--kb`),t.classList.remove(`keyboard-open`)}},[])}function Pb(e){let[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(e&&bb(`keepAwake`))return Sb(`keepAwake`,!0),n(!0),()=>{Sb(`keepAwake`,!1),n(!1)};if(!e||!(`wakeLock`in navigator))return;let t=null,r=!1,i=async()=>{if(!(r||t||document.visibilityState!==`visible`))try{let e=await navigator.wakeLock.request(`screen`);if(r){e.release().catch(()=>void 0);return}t=e,n(!0),e.addEventListener(`release`,()=>{t===e&&(t=null,n(!1))})}catch{}};return i(),document.addEventListener(`visibilitychange`,i),()=>{r=!0,document.removeEventListener(`visibilitychange`,i),t?.release().catch(()=>void 0),t=null,n(!1)}},[e]),t}var Fb=`wz.notify`,Ib=new Set,Lb=null;function Rb(){try{return localStorage.getItem(Fb)===`1`}catch{return!1}}function zb(e){try{e?localStorage.setItem(Fb,`1`):localStorage.removeItem(Fb)}catch{}for(let e of Ib)e()}var Bb=typeof window<`u`&&`Notification`in window,Vb=null;function Hb(){return Rb()?bb(`notify`)?Vb===!1?`quiet`:`on`:Bb&&Notification.permission===`granted`?`on`:`quiet`:`off`}function Ub(){return(0,o.useSyncExternalStore)(e=>(Ib.add(e),()=>Ib.delete(e)),Hb,()=>`off`)}function Wb(){return bb(`notify`)?Vb===!1:Bb&&Notification.permission===`denied`}async function Gb(){if(zb(!0),bb(`notify`)){Vb=!bb(`notifyPermission`)||await xb(`notifyPermission`).catch(()=>!1);for(let e of Ib)e();return Hb()}try{Lb??=new AudioContext,Lb.resume()}catch{Lb=null}if(Bb&&Notification.permission==="default")try{await Notification.requestPermission()}catch{}if(Bb&&Notification.permission===`granted`){let e=gb().serviceWorker;e&&await navigator.serviceWorker?.register(e).catch(()=>void 0)}for(let e of Ib)e();return Hb()}function Kb(){zb(!1)}function qb(){let e=Lb;if(e?.state!==`running`)return;let t=e.currentTime;for(let[n,r]of[660,880].entries()){let i=e.createOscillator(),a=e.createGain();i.frequency.value=r,a.gain.setValueAtTime(0,t+n*.16),a.gain.linearRampToValueAtTime(.18,t+n*.16+.02),a.gain.exponentialRampToValueAtTime(.001,t+n*.16+.32),i.connect(a).connect(e.destination),i.start(t+n*.16),i.stop(t+n*.16+.34)}}async function Jb(e){if(!Rb())return;if(bb(`notify`)){Sb(`notify`,e);return}if(document.visibilityState===`visible`){qb(),navigator.vibrate?.([120,60,120]);return}if(!Bb||Notification.permission!==`granted`)return;let t={body:e.body,tag:e.tag,icon:yb(`icons/icon-192.png`),badge:yb(`icons/icon-192.png`),data:{url:location.href}};try{let n=await navigator.serviceWorker?.getRegistration();if(n?.active){await n.showNotification(e.title,t);return}}catch{}try{new Notification(e.title,t)}catch{}}function Yb(){if(typeof navigator>`u`||!navigator.canShare)return!1;try{return navigator.canShare({files:[new File([`x`],`x.pdf`,{type:`application/pdf`})]})}catch{return!1}}async function Xb(e,t=2400){if(!/^image\/(jpeg|png|webp)$/.test(e.type)||e.size<12e5)return e;try{let n=await createImageBitmap(e),r=Math.min(1,t/Math.max(n.width,n.height)),i=document.createElement(`canvas`);i.width=Math.round(n.width*r),i.height=Math.round(n.height*r),i.getContext(`2d`)?.drawImage(n,0,0,i.width,i.height);let a=await new Promise(e=>i.toBlob(e,`image/jpeg`,.86));return a&&a.size<e.size?new File([a],`${e.name.replace(/\.[^.]+$/,``)}.jpg`,{type:`image/jpeg`}):e}catch{return e}}function Zb(){return new Date().toISOString().slice(0,19).replace(/[:T]/g,`-`)}function Qb(e){let t=e?.name;return t===`NotFoundError`||t===`OverconstrainedError`?`missing`:t===`NotReadableError`||t===`AbortError`?`busy`:`denied`}function $b(e){return!!e?.getCapabilities?.()?.torch}function ex(e,t,n=!1){let r=(0,o.useRef)(null),[i,a]=(0,o.useState)(null),[s,c]=(0,o.useState)(null),[l,u]=(0,o.useState)(1),[d,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!e)return;let r=null,i=!1;c(null),a(null),f(!1),m(!1);let o={facingMode:{ideal:t},width:{ideal:2560},height:{ideal:1440}};return(async()=>{if(!navigator.mediaDevices?.getUserMedia)throw new DOMException(`no camera api`,`NotAllowedError`);try{r=await navigator.mediaDevices.getUserMedia({video:o,audio:n})}catch(e){if(!n)throw e;r=await navigator.mediaDevices.getUserMedia({video:o})}if(i){for(let e of r.getTracks())e.stop();return}a(r);let e=r.getVideoTracks()[0],t=()=>!i&&f($b(e));t(),setTimeout(t,600);let s=await navigator.mediaDevices.enumerateDevices().catch(()=>[]);i||u(s.filter(e=>e.kind===`videoinput`).length)})().catch(e=>!i&&c(Qb(e))),()=>{i=!0;for(let e of r?.getTracks()??[])e.stop()}},[e,t,n]),(0,o.useEffect)(()=>{r.current&&i&&(r.current.srcObject=i)},[i]),{video:r,stream:i,error:s,cameras:l,torchable:d,torch:p,setTorch:async e=>{let t=i?.getVideoTracks()[0];try{await t?.applyConstraints({advanced:[{torch:e}]}),m(e)}catch{f(!1)}},mirrored:i?.getVideoTracks()[0]?.getSettings().facingMode===`user`}}function tx({open:e,onClose:t,label:n,children:r}){let i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let t=i.current;t&&(e&&!t.open?t.showModal():!e&&t.open&&t.close())},[e]),(0,s.jsx)(`dialog`,{ref:i,onClose:t,"aria-label":n,className:`media-sheet`,children:e?(0,s.jsx)(`div`,{className:`flex h-full flex-col`,children:r}):null})}function nx({label:e,onClick:t,active:n,children:r}){return(0,s.jsx)(`button`,{type:`button`,"aria-label":e,title:e,"aria-pressed":n,onClick:t,className:q(`flex size-11 shrink-0 items-center justify-center rounded-full transition`,n?`bg-white text-black`:`bg-white/12 text-white hover:bg-white/20`),children:r})}function rx({title:e,onClose:t,camera:n,onFlip:r}){return(0,s.jsx)(`div`,{className:`safe-top`,children:(0,s.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,s.jsx)(nx,{label:G(`common.close`),onClick:t,children:(0,s.jsx)(Eo,{className:`size-5`})}),(0,s.jsx)(`div`,{className:`min-w-0 flex-1 truncate text-center font-medium text-[0.9375rem]`,children:e}),n.torchable?(0,s.jsx)(nx,{label:G(`camera.torch`),active:n.torch,onClick:()=>void n.setTorch(!n.torch),children:n.torch?(0,s.jsx)(da,{className:`size-5`}):(0,s.jsx)(la,{className:`size-5`})}):null,n.stream&&(n.cameras>1||jb)?(0,s.jsx)(nx,{label:G(`camera.flip`),onClick:r,children:(0,s.jsx)(go,{className:`size-5`})}):(0,s.jsx)(`span`,{className:`size-11`})]})})}function ix({camera:e,asking:t,children:n,actions:r}){return(0,s.jsxs)(`div`,{className:`relative min-h-0 flex-1 overflow-hidden`,children:[(0,s.jsx)(`video`,{ref:e.video,autoPlay:!0,playsInline:!0,muted:!0,className:q(`absolute inset-0 size-full object-contain`,e.mirrored&&`-scale-x-100`)}),e.error?(0,s.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-5 bg-black px-8 text-center`,children:[(0,s.jsx)(`p`,{className:`max-w-sm text-[0.9375rem] text-white/85 leading-relaxed`,children:G(`camera.${e.error}`)}),r]}):e.stream?n:(0,s.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-4 px-8 text-center text-white/75`,children:[(0,s.jsx)(oy,{}),(0,s.jsx)(`p`,{className:`max-w-xs text-[0.875rem] leading-relaxed`,children:t})]})]})}var ax=30;function ox(){if(typeof MediaRecorder<`u`)return[`video/mp4;codecs=avc1.42E01E,mp4a.40.2`,`video/mp4`,`video/webm;codecs=vp9,opus`,`video/webm;codecs=vp8,opus`,`video/webm`].find(e=>MediaRecorder.isTypeSupported(e))}var sx=!!ox();function cx({open:e,multiple:t,video:n,onClose:r,onCapture:i,onNative:a}){let[c,l]=(0,o.useState)(`environment`),[u,d]=(0,o.useState)(`photo`),[f,p]=(0,o.useState)(0),[m,h]=(0,o.useState)(!1),[g,_]=(0,o.useState)(null),v=(0,o.useRef)(null),y=ex(e,c,u===`video`);(0,o.useEffect)(()=>{e&&(p(0),d(`photo`),_(null))},[e]);let b=async e=>{h(!0);try{await i(e),p(e=>e+1),t||r()}finally{h(!1)}},x=async()=>{let e=y.video.current;if(!e?.videoWidth)return;let t=document.createElement(`canvas`);t.width=e.videoWidth,t.height=e.videoHeight,t.getContext(`2d`)?.drawImage(e,0,0);let n=await new Promise(e=>t.toBlob(e,`image/jpeg`,.9));n&&await b(new File([n],`foto-${Zb()}.jpg`,{type:`image/jpeg`}))},S=()=>{v.current?.state===`recording`&&v.current.stop()},C=()=>{let e=ox();if(!y.stream||!e)return;let t=[],n=new MediaRecorder(y.stream,{mimeType:e,videoBitsPerSecond:25e5,audioBitsPerSecond:96e3});n.ondataavailable=e=>e.data.size&&t.push(e.data),n.onstop=()=>{_(null),v.current=null;let n=e.split(`;`)[0];if(t.length){let e=n===`video/mp4`?`mp4`:`webm`;b(new File(t,`video-${Zb()}.${e}`,{type:n}))}},v.current=n,n.start(1e3),_(0)};(0,o.useEffect)(()=>{if(g===null)return;if(g>=ax){v.current?.state===`recording`&&v.current.stop();return}let e=setTimeout(()=>_(e=>e===null?null:e+1),1e3);return()=>clearTimeout(e)},[g]),(0,o.useEffect)(()=>{!e&&v.current&&(v.current.onstop=null,v.current.stop(),v.current=null)},[e]);let w=e=>`0:${String(e).padStart(2,`0`)}`;return(0,s.jsxs)(tx,{open:e,onClose:r,label:G(`camera.title`),children:[(0,s.jsx)(rx,{title:g===null?f?G(`camera.taken`,{n:f}):G(`camera.title`):`${w(g)} / ${w(ax)}`,onClose:r,camera:y,onFlip:()=>l(e=>e===`environment`?`user`:`environment`)}),(0,s.jsx)(ix,{camera:y,asking:G(`camera.asking`),actions:(0,s.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[a?(0,s.jsxs)(lx,{onClick:()=>{r(),a()},children:[(0,s.jsx)(ji,{className:`size-4`}),` `,G(jb?`camera.native`:`camera.pick`)]}):null,(0,s.jsx)(lx,{quiet:!0,onClick:r,children:G(`common.close`)})]})}),(0,s.jsxs)(`div`,{className:q(`safe-bottom px-4 pt-3`,y.error&&`invisible`),children:[n&&sx&&g===null?(0,s.jsx)(`div`,{className:`mb-3 flex justify-center gap-1 text-[0.8125rem]`,children:[`photo`,`video`].map(e=>(0,s.jsx)(`button`,{type:`button`,"aria-pressed":u===e,onClick:()=>d(e),className:q(`h-9 rounded-full px-4 font-medium transition`,u===e?`bg-white text-black`:`text-white/70 hover:text-white`),children:G(e===`photo`?`camera.photo`:`camera.video`)},e))}):null,(0,s.jsxs)(`div`,{className:`grid grid-cols-[1fr_auto_1fr] items-center gap-3`,children:[(0,s.jsx)(`span`,{className:`text-[0.8125rem] text-white/70 leading-snug`,children:g===null?u===`video`?G(`camera.clipHint`,{s:ax}):G(t?`camera.hintMany`:`camera.hint`):G(`camera.recording`)}),(0,s.jsx)(`button`,{type:`button`,"aria-label":G(u===`photo`?`camera.shoot`:g===null?`camera.record`:`camera.stop`),disabled:!y.stream||m,onClick:()=>u===`photo`?void x():g===null?C():S(),className:`flex size-[72px] items-center justify-center rounded-full border-4 border-white transition active:scale-95 disabled:opacity-40`,children:m?(0,s.jsx)(oy,{className:`text-white`}):u===`photo`?(0,s.jsx)(`span`,{className:`size-[54px] rounded-full bg-white`}):g===null?(0,s.jsx)(`span`,{className:`flex size-[54px] items-center justify-center rounded-full bg-[#e5484d]`,children:(0,s.jsx)(wo,{className:`size-6 text-white`})}):(0,s.jsx)(`span`,{className:`size-7 rounded-md bg-[#e5484d]`})}),(0,s.jsx)(`div`,{className:`flex justify-end`,children:t&&f&&g===null?(0,s.jsxs)(lx,{onClick:r,children:[(0,s.jsx)(Ni,{className:`size-4`}),` `,G(`camera.done`)]}):null})]})]})]})}function lx({onClick:e,quiet:t,children:n}){return(0,s.jsx)(`button`,{type:`button`,onClick:e,className:q(`inline-flex h-11 items-center justify-center gap-2 rounded-full px-5 font-medium text-[0.875rem] transition`,t?`text-white/75 hover:text-white`:`bg-white text-black hover:bg-white/90`),children:n})}var ux=`w-full min-w-0 rounded-md bg-transparent px-2 py-1.5 text-[0.875rem] outline-none transition placeholder:text-ink-4 hover:bg-accent focus:bg-paper focus:ring-1 focus:ring-ring`,dx=`font-medium text-[0.6875rem] text-ink-3 uppercase tracking-[0.08em]`,fx=e=>!!e&&typeof e==`object`&&!Array.isArray(e);function px(e,t,n){if(!t.length)return n;let[r,...i]=t;if(Array.isArray(e)){let t=[...e];return t[r]=px(t[r],i,n),t}let a=e??{};return{...a,[r]:px(a[r],i,n)}}function mx(e,t){let n=e?.length?e:[...new Set(t.filter(fx).flatMap(e=>Object.keys(e)))];return{kind:`object`,fields:Object.fromEntries(n.map(e=>[e,{kind:`text`}]))}}var hx=e=>e.kind!==`object`&&e.kind!==`table`&&(e.kind!==`list`||e.of.kind!==`object`)&&!(e.kind===`text`&&e.long),gx=e=>Object.values(e.fields).every(hx),_x=e=>Object.values(e.fields).every(e=>e.kind!==`table`&&(e.kind!==`list`||e.of.kind!==`object`));function vx(e,t){let n=mg(e);return n?String(t[n]??``):``}function yx({text:e}){return(0,s.jsx)(`span`,{className:`whitespace-pre-wrap`,children:e})}function bx({shape:e,value:t,path:n,ctx:r,cell:i}){switch(e.kind){case`text`:return r.edit?e.long?(0,s.jsx)(`textarea`,{className:q(ux,`field-sizing-content max-h-60 resize-none`),value:String(t??``),onChange:e=>r.set(n,e.target.value)}):(0,s.jsx)(`input`,{className:ux,value:String(t??``),onChange:e=>r.set(n,e.target.value)}):(0,s.jsx)(yx,{text:t==null?``:String(t)});case`number`:return r.edit?(0,s.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,s.jsx)(`input`,{type:`number`,className:q(ux,`text-right tabular-nums`,i&&`w-20`),value:t==null?``:Number(t),onChange:e=>r.set(n,e.target.value===``?null:Number(e.target.value))}),e.unit?(0,s.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3`,children:e.unit}):null]}):(0,s.jsx)(`span`,{className:`tabular-nums`,children:t==null?``:`${t}${e.unit?` ${e.unit}`:``}`});case`yesno`:{let i=t?e.yes??G(`data.yes`):e.no??G(`data.no`);return r.edit?(0,s.jsxs)(`label`,{className:`flex items-center gap-2 px-2 py-1.5 text-[0.8125rem] text-ink-2`,children:[(0,s.jsx)(`input`,{type:`checkbox`,checked:!!t,onChange:e=>r.set(n,e.target.checked),className:`size-4 accent-[var(--second)]`}),i]}):(0,s.jsx)(`span`,{className:q(`inline-flex rounded-full px-2 py-0.5 text-[0.75rem]`,t?`bg-second-tint text-second`:`bg-paper-2 text-ink-3`),children:i})}case`choice`:case`score`:return r.edit?(0,s.jsx)(`select`,{className:ux,value:String(t??``),onChange:e=>r.set(n,e.target.value),children:[...new Set([String(t??``),...e.options])].map(e=>(0,s.jsx)(`option`,{value:e,children:e},e))}):(0,s.jsx)(`span`,{children:String(t??``)});case`ref`:{let i=r.shape.fields[e.to],a=i?.kind===`list`&&i.of.kind===`object`?i.of:{kind:`object`,fields:{}},o=(Array.isArray(r.root[e.to])?r.root[e.to]:[]).filter(fx),c=o.find(e=>e.id===t);return r.edit?(0,s.jsxs)(`select`,{className:ux,value:String(t??``),onChange:e=>r.set(n,e.target.value),children:[c?null:(0,s.jsx)(`option`,{value:String(t??``),children:String(t??``)}),o.map(e=>(0,s.jsx)(`option`,{value:String(e.id),children:vx(a,e)||String(e.id)},String(e.id)))]}):c?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>r.open(String(c.id)),className:`inline-flex items-center gap-1 text-left text-ember-strong hover:underline`,children:[(0,s.jsx)(Ta,{className:`size-3.5 shrink-0`}),vx(a,c)||String(c.id)]}):(0,s.jsx)(`span`,{className:`text-rose`,children:G(`data.missing`,{id:String(t??``)})})}case`table`:{let i=Array.isArray(t)?t:[];return(0,s.jsx)(wx,{shape:mx(e.columns,i),value:i,path:n,ctx:r})}case`list`:if(e.of.kind===`object`){let i=e.of,a=gx(i)?wx:_x(i)?Tx:Ex;return(0,s.jsx)(a,{shape:i,value:t,path:n,ctx:r})}return(0,s.jsx)(xx,{value:t,path:n,ctx:r});case`object`:return(0,s.jsx)(Dx,{shape:e,value:t,path:n,ctx:r})}}function xx({value:e,path:t,ctx:n}){let r=Array.isArray(e)?e.map(String):[],[i,a]=(0,o.useState)(``);return(0,s.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1`,children:[r.map((e,i)=>(0,s.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full bg-paper-2 px-2 py-0.5 text-[0.75rem]`,children:[e,n.edit?(0,s.jsx)(`button`,{type:`button`,"aria-label":G(`data.remove`),onClick:()=>n.set(t,r.filter((e,t)=>t!==i)),className:`text-ink-3 hover:text-ink`,children:(0,s.jsx)(Eo,{className:`size-3`})}):null]},`${e}-${i}`)),n.edit?(0,s.jsx)(`input`,{className:`w-20 rounded-full bg-transparent px-2 py-0.5 text-[0.75rem] outline-none ring-1 ring-border-soft focus:ring-ring`,placeholder:`+`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Enter`&&i.trim()&&(e.preventDefault(),n.set(t,[...r,i.trim()]),a(``))}}):null]})}var Sx=e=>(Array.isArray(e)?e:[]).filter(fx),Cx=e=>e.fields.id?{id:`n${Date.now().toString(36)}`}:{};function wx({shape:e,value:t,path:n,ctx:r}){let i=Sx(t),a=Object.entries(e.fields);return(0,s.jsxs)(`div`,{className:`overflow-x-auto rounded-lg ring-1 ring-border-soft`,children:[(0,s.jsxs)(`table`,{className:`w-full border-collapse text-[0.8125rem]`,children:[(0,s.jsx)(`thead`,{className:`bg-paper-2 text-ink-2`,children:(0,s.jsxs)(`tr`,{children:[a.map(([e,t])=>(0,s.jsx)(`th`,{className:`whitespace-nowrap px-3 py-2 text-left font-medium`,children:hg(e,t)},e)),r.edit?(0,s.jsx)(`th`,{className:`w-8`}):null]})}),(0,s.jsx)(`tbody`,{children:i.map((e,t)=>(0,s.jsxs)(`tr`,{className:`group border-border-soft border-t`,children:[a.map(([i,a])=>(0,s.jsx)(`td`,{className:q(`align-top`,r.edit?`p-0.5`:`px-3 py-2`),children:(0,s.jsx)(bx,{shape:a,value:e[i],path:[...n,t,i],ctx:r,cell:!0})},i)),r.edit?(0,s.jsx)(`td`,{className:`p-0.5 align-middle`,children:(0,s.jsx)(kx,{onClick:()=>r.set(n,i.filter((e,n)=>n!==t))})}):null]},t))})]}),r.edit?(0,s.jsx)(Ax,{what:e.label,onClick:()=>r.set(n,[...i,Cx(e)])}):null]})}function Tx({shape:e,value:t,path:n,ctx:r}){let i=Sx(t),a=Object.entries(e.fields),o=a.filter(([,e])=>e.kind===`text`&&e.long),c=a.filter(([,e])=>!(e.kind===`text`&&e.long));return(0,s.jsxs)(`div`,{className:`overflow-hidden rounded-lg ring-1 ring-border-soft`,children:[(0,s.jsx)(`ol`,{children:i.map((e,t)=>(0,s.jsxs)(`li`,{className:`grid grid-cols-[1.75rem_1fr_auto] items-start gap-2 border-border-soft border-t px-3 py-2 first:border-0`,children:[(0,s.jsx)(`span`,{className:`pt-1.5 font-display font-semibold text-ember-strong tabular-nums`,children:t+1}),(0,s.jsx)(`div`,{className:q(`flex min-w-0 flex-col`,!r.edit&&`pt-1`),children:o.map(([i,a])=>(0,s.jsx)(bx,{shape:a,value:e[i],path:[...n,t,i],ctx:r},i))}),(0,s.jsxs)(`div`,{className:q(`flex items-center gap-2 text-[0.8125rem] text-ink-3`,!r.edit&&`pt-1`),children:[c.map(([i,a])=>(0,s.jsx)(bx,{shape:a,value:e[i],path:[...n,t,i],ctx:r,cell:!0},i)),r.edit?(0,s.jsx)(kx,{onClick:()=>r.set(n,i.filter((e,n)=>n!==t))}):null]})]},t))}),r.edit?(0,s.jsx)(Ax,{what:e.label,onClick:()=>r.set(n,[...i,Cx(e)])}):null]})}function Ex({shape:e,value:t,path:n,ctx:r}){let i=Sx(t),a=Object.entries(e.fields),o=mg(e),c=a.filter(([e,t])=>e!==o&&e!==`id`&&(t.kind===`text`&&!t.long||t.kind===`number`||t.kind===`choice`)),l=a.filter(([,e])=>e.kind===`list`&&e.of.kind===`object`);return(0,s.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[i.map((t,a)=>{let o=typeof t.id==`string`?t.id:void 0;return(0,s.jsxs)(`details`,{id:o?`${r.scope}-${o}`:void 0,className:`group rounded-xl bg-card ring-1 ring-border-soft open:ring-ink-4/40`,children:[(0,s.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-3 px-4 py-3 [&::-webkit-details-marker]:hidden`,children:[(0,s.jsx)(zi,{className:`size-4 shrink-0 text-ink-3 transition-transform group-open:rotate-90`}),(0,s.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,s.jsx)(`span`,{className:`block truncate font-medium text-[0.9375rem]`,children:vx(e,t)||`${e.label??``} ${a+1}`.trim()}),(0,s.jsxs)(`span`,{className:`flex flex-wrap gap-x-2 text-[0.75rem] text-ink-3`,children:[c.map(([e,n])=>t[e]===void 0||t[e]===``?null:(0,s.jsx)(`span`,{children:n.kind===`number`&&n.unit?`${t[e]} ${n.unit}`:String(t[e])},e)),l.map(([e,n])=>(0,s.jsxs)(`span`,{children:[Array.isArray(t[e])?t[e].length:0,` `,hg(e,n)]},e))]})]}),r.edit?(0,s.jsx)(kx,{onClick:()=>r.set(n,i.filter((e,t)=>t!==a))}):null]}),(0,s.jsx)(`div`,{className:`border-border-soft border-t px-4 py-4`,children:(0,s.jsx)(Dx,{shape:e,value:t,path:[...n,a],ctx:r})})]},a)}),r.edit?(0,s.jsx)(Ax,{what:e.label,onClick:()=>r.set(n,[...i,Cx(e)])}):null]})}function Dx({shape:e,value:t,path:n,ctx:r}){let i=fx(t)?t:{},a=e=>e.kind===`list`||e.kind===`object`||e.kind===`table`||e.kind===`text`&&!!e.long;return(0,s.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(10rem,1fr))] gap-x-4 gap-y-4`,children:Object.entries(e.fields).map(([e,t])=>(0,s.jsx)(Ox,{title:hg(e,t),wide:a(t),count:Array.isArray(i[e])?i[e].length:null,children:(0,s.jsx)(bx,{shape:t,value:i[e],path:[...n,e],ctx:r})},e))})}function Ox({title:e,wide:t,count:n,children:r}){return(0,s.jsxs)(`div`,{className:q(`flex min-w-0 flex-col gap-1.5 text-[0.875rem]`,t&&`col-span-full`),children:[(0,s.jsxs)(`span`,{className:dx,children:[e,n===null?null:(0,s.jsx)(`span`,{className:`ml-1 text-ink-4`,children:n})]}),r]})}function kx({onClick:e}){return(0,s.jsx)(`button`,{type:`button`,"aria-label":G(`data.remove`),onClick:t=>{t.preventDefault(),e()},className:`grid size-7 place-items-center rounded-md text-ink-3 hover:bg-accent hover:text-rose`,children:(0,s.jsx)(vo,{className:`size-3.5`})})}function Ax({what:e,onClick:t}){return(0,s.jsxs)(`button`,{type:`button`,onClick:t,className:`flex w-full items-center gap-1.5 border-border-soft border-t px-3 py-2 text-[0.8125rem] text-ink-3 hover:bg-accent hover:text-ink`,children:[(0,s.jsx)(qa,{className:`size-3.5`}),` `,G(`data.add`,{what:e??``}).trim()]})}function jx({shape:e,value:t,onChange:n,mode:r,onMode:i,modes:a=[`view`,`edit`,`json`],start:c}){let l=n?a:a.filter(e=>e!==`edit`),[u,d]=(0,o.useState)(c&&l.includes(c)?c:l[0]??`view`),f=r??u,p=i??d,m=(0,o.useId)().replace(/[^a-zA-Z0-9_-]/g,``),h={root:t,shape:e,edit:f===`edit`&&!!n,scope:m,set:(e,r)=>n?.(px(t,e,r)),open:e=>{let t=document.getElementById(`${m}-${e}`);t&&(t.open=!0,t.scrollIntoView({behavior:`smooth`,block:`center`}))}},g=Object.entries(e.fields);return(0,s.jsxs)(`div`,{className:`flex flex-col`,children:[(0,s.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2 border-border-soft border-b px-3 py-2`,children:[(0,s.jsx)(`div`,{className:`flex min-w-0 flex-wrap gap-1`,children:g.length>1?g.map(([e,n])=>(0,s.jsxs)(`a`,{href:`#${m}-part-${e}`,className:`rounded-full px-2.5 py-1 text-[0.8125rem] text-ink-2 hover:bg-accent`,children:[hg(e,n),Array.isArray(t[e])?(0,s.jsx)(`span`,{className:`ml-1 text-ink-4 tabular-nums`,children:t[e].length}):null]},e)):null}),l.length>1?(0,s.jsx)(ry,{value:f,onChange:p,label:G(`data.modes`),options:l.map(e=>({id:e,label:G(`data.${e}`)}))}):null]}),f===`json`?(0,s.jsx)(`pre`,{className:`max-h-[36rem] overflow-auto p-4 font-mono text-[0.75rem] text-ink-2 leading-relaxed`,children:JSON.stringify(t,null,2)}):(0,s.jsx)(`div`,{className:`flex flex-col gap-7 p-4 sm:p-5`,children:g.map(([e,n])=>(0,s.jsxs)(`section`,{id:`${m}-part-${e}`,className:`flex scroll-mt-4 flex-col gap-2`,children:[(0,s.jsxs)(`h3`,{className:`flex items-baseline gap-2 font-display font-semibold text-[1rem]`,children:[hg(e,n),Array.isArray(t[e])?(0,s.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-4 tabular-nums`,children:t[e].length}):null]}),(0,s.jsx)(`div`,{className:`text-[0.9375rem] leading-relaxed`,children:(0,s.jsx)(bx,{shape:n,value:t[e],path:[e],ctx:h})})]},e))})]})}function Mx({items:e}){let[t,n]=(0,o.useState)(!1),r=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!t)return;let e=e=>{r.current?.contains(e.target)||n(!1)},i=e=>e.key===`Escape`&&n(!1);return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,i)}},[t]),(0,s.jsxs)(`div`,{ref:r,className:`relative`,children:[(0,s.jsx)(`button`,{type:`button`,"aria-label":G(`data.menu`),title:G(`data.menu`),"aria-haspopup":`menu`,"aria-expanded":t,onClick:()=>n(e=>!e),className:q(`grid size-8 place-items-center rounded-full text-ink-3 transition hover:bg-accent hover:text-ink coarse:size-11`,t&&`bg-accent text-ink`),children:(0,s.jsx)(Zi,{className:`size-4`})}),t?(0,s.jsx)(`div`,{role:`menu`,className:`absolute top-full right-0 z-50 mt-1 w-60 animate-rise rounded-xl bg-card p-1.5 shadow-overlay ring-1 ring-border-soft`,children:e.map(e=>(0,s.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-[0.875rem] text-ink-2 transition hover:bg-accent hover:text-ink`,onClick:()=>{n(!1),e.onClick()},children:[e.icon,e.label]},e.label))}):null]})}function Nx(e){return e.toLowerCase().replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/ß/g,`ss`).replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``)||`output`}function Px({shape:e,title:t,open:n,onClose:r}){let[i,a]=(0,o.useState)(!1),c=n?JSON.stringify(yg(e,t),null,2):``;return(0,s.jsx)(ly,{open:n,onClose:r,title:`${G(`data.schema`)} · ${t}`,wide:!0,height:`tall`,children:(0,s.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3`,children:[(0,s.jsx)(`pre`,{className:`min-h-0 flex-1 overflow-auto rounded-lg bg-paper-2 p-3 font-mono text-[0.75rem] text-ink-2 leading-relaxed`,children:c}),(0,s.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,s.jsxs)(`button`,{type:`button`,onClick:()=>{navigator.clipboard.writeText(c),a(!0),setTimeout(()=>a(!1),1500)},className:`inline-flex h-8 items-center gap-1.5 rounded-full bg-paper-2 px-3 text-[0.8125rem] text-ink-2 hover:text-ink coarse:h-11 coarse:px-4`,children:[i?(0,s.jsx)(Ni,{className:`size-3.5`}):(0,s.jsx)(Ui,{className:`size-3.5`}),G(i?`share.copied`:`data.copy`)]}),(0,s.jsxs)(`button`,{type:`button`,onClick:()=>{let e=URL.createObjectURL(new Blob([c],{type:`application/schema+json`})),n=document.createElement(`a`);n.href=e,n.download=`${Nx(t)}.schema.json`,n.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)},className:`inline-flex h-8 items-center gap-1.5 rounded-full bg-paper-2 px-3 text-[0.8125rem] text-ink-2 hover:text-ink coarse:h-11 coarse:px-4`,children:[(0,s.jsx)(Yi,{className:`size-3.5`}),` `,G(`data.download`)]})]})]})})}function Fx(e){let t=e;return t.type===`agent`&&t.output.format===`json`&&!t.each&&!t.call}function Ix({runId:e,step:t,output:n,header:r,children:i}){let a=j_(t),[c,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),[f,p]=(0,o.useState)(null),[m,h]=(0,o.useState)(!1),[g,_]=(0,o.useState)(null),v=f??(fx(n.json)?n.json:{}),y=async()=>{if(f){h(!0),_(null);try{await _b.put(`${Y(e)}/outputs/${t.id}`,{json:f}),p(null),l(!1)}catch(e){_(e.message)}finally{h(!1)}}},b=(0,s.jsx)(Mx,{items:[{label:G(c?`data.close`:`data.open`),icon:(0,s.jsx)(qi,{className:`size-4 shrink-0`}),onClick:()=>{l(e=>!e),p(null)}},{label:G(`data.schema`),icon:(0,s.jsx)(Di,{className:`size-4 shrink-0`}),onClick:()=>d(!0)}]});return(0,s.jsxs)(s.Fragment,{children:[r(b),c?(0,s.jsxs)(`div`,{className:`overflow-hidden rounded-xl bg-card ring-1 ring-border-soft`,children:[(0,s.jsx)(jx,{shape:a,value:v,onChange:p}),f?(0,s.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-border-soft border-t px-3 py-2`,children:[g?(0,s.jsx)(`span`,{className:`mr-auto text-[0.8125rem] text-rose`,children:g}):null,(0,s.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>p(null),children:G(`common.cancel`)}),(0,s.jsx)(J,{size:`sm`,busy:m,onClick:()=>void y(),children:G(`data.save`)})]}):null]}):i,(0,s.jsx)(Px,{shape:a,title:t.title,open:u,onClose:()=>d(!1)})]})}var Lx=25,Rx=9e3;function zx(e){return e.code===e.PERMISSION_DENIED?`denied`:e.code===e.TIMEOUT?`timeout`:`unavailable`}function Bx({value:e,runId:t,placeholder:n,onChange:r,onBusy:i}){let a=Kg(e)?e:null,[c,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(null),f=(0,o.useRef)(null),p=(0,o.useRef)(!!a?.label),m=(0,o.useRef)(a);m.current=a;let h=a?.lat!==void 0&&a.lng!==void 0,g=typeof navigator<`u`&&`geolocation`in navigator,_=()=>{f.current!==null&&(navigator.geolocation.clearWatch(f.current),f.current=null),l(!1),i?.(!1)};(0,o.useEffect)(()=>()=>{f.current!==null&&navigator.geolocation.clearWatch(f.current)},[]);let v=async(e,n)=>{try{let{label:i}=await _b.post(`${Y(t)}/geocode`,{lat:e,lng:n,language:mv}),a=m.current;i&&!p.current&&a?.lat===e&&a.lng===n&&r({...a,label:i})}catch{}},y=()=>{d(null),l(!0),i?.(!0);let e=Date.now(),t=1/0;f.current=navigator.geolocation.watchPosition(n=>{let{latitude:i,longitude:a,accuracy:o}=n.coords;if(o<t){t=o;let e=Math.round(i*1e6)/1e6,n=Math.round(a*1e6)/1e6,s=p.current?m.current?.label:void 0,c={lat:e,lng:n,accuracy:Math.round(o),...s?{label:s}:{}};m.current=c,r(c)}if(t<=Lx||Date.now()-e>Rx){_();let e=m.current;e?.lat!==void 0&&e.lng!==void 0&&v(e.lat,e.lng)}},e=>{_(),t===1/0&&d(zx(e))},{enableHighAccuracy:!0,timeout:15e3,maximumAge:1e4})},b=e=>{p.current=e.trim().length>0;let t={...h?a:{},label:e};r(h||e.trim()?t:void 0)};return(0,s.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[h?(0,s.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl bg-card p-3 ring-1 ring-input`,children:[(0,s.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-full bg-moss-tint text-moss`,children:(0,s.jsx)(ja,{className:`size-5`})}),(0,s.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,s.jsxs)(`div`,{className:`truncate font-medium text-[0.9375rem] tabular-nums`,children:[a.lat?.toFixed(5),`, `,a.lng?.toFixed(5)]}),(0,s.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 text-[0.8125rem] text-ink-3`,children:[(0,s.jsx)(`span`,{children:c?G(`location.refining`):a.accuracy?G(`location.accuracy`,{m:a.accuracy}):null}),(0,s.jsxs)(`a`,{href:`https://www.openstreetmap.org/?mlat=${a.lat}&mlon=${a.lng}#map=17/${a.lat}/${a.lng}`,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 underline-offset-2 hover:text-ink hover:underline coarse:-my-3 coarse:min-h-11 coarse:min-w-11`,children:[G(`location.map`),` `,(0,s.jsx)(ta,{className:`size-3`})]})]})]}),(0,s.jsx)(Jv,{label:G(`location.remove`),onClick:()=>{_(),p.current=!1,r(void 0)},children:(0,s.jsx)(Eo,{className:`size-4`})})]}):g?(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(J,{variant:`secondary`,size:`lg`,busy:c,onClick:y,className:`w-full sm:w-auto`,children:[c?null:(0,s.jsx)(Da,{className:`size-4`}),G(c?`location.locating`:`location.use`)]}),u?(0,s.jsx)(`p`,{className:`mt-2 rounded-lg bg-amber-tint px-3 py-2 text-[0.8125rem] text-ink-2 leading-relaxed`,children:G(`location.${u}`)}):(0,s.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3 leading-relaxed`,children:G(`location.why`)})]}):null,(0,s.jsx)(Zv,{value:a?.label??``,placeholder:n??G(h?`location.label`:`location.manual`),autoComplete:`street-address`,enterKeyHint:`done`,"aria-label":G(`location.manual`),onChange:e=>b(e.target.value)})]})}var Vx=null;function Hx(){return Vx??=(async()=>{let e=window.BarcodeDetector;if(e)try{let t=await e.getSupportedFormats();if(t.includes(`qr_code`)){let n=new e({formats:t});return{qrOnly:!1,detect:async e=>(await n.detect(e))[0]?.rawValue||null}}}catch{}let{default:t}=await a(async()=>{let{default:e}=await import(`./qr-scanner.min-C_UI0gH-.js`);return{default:e}},__vite__mapDeps([0,1])),n=t.createQrEngine();return{qrOnly:!0,detect:async e=>{try{return(await t.scanImage(e,{qrEngine:n,returnDetailedScanResult:!0})).data||null}catch{return null}}}})(),Vx}function Ux({open:e,onClose:t,onResult:n}){let r=(0,o.useRef)(n);r.current=n;let i=(0,o.useRef)(t);return i.current=t,(0,o.useEffect)(()=>{e&&xb(`scan`).then(e=>{e&&r.current(e)}).catch(()=>void 0).finally(()=>i.current())},[e]),null}function Wx(e){return bb(`scan`)?(0,s.jsx)(Ux,{...e}):(0,s.jsx)(Gx,{...e})}function Gx({open:e,onClose:t,onResult:n}){let[r,i]=(0,o.useState)(`environment`),[a,c]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1),d=(0,o.useRef)(null),f=ex(e,r),p=(0,o.useRef)(n);p.current=n;let m=(0,o.useRef)(t);m.current=t,(0,o.useEffect)(()=>{e&&(u(!1),Hx().then(e=>c(e.qrOnly)))},[e]),(0,o.useEffect)(()=>{if(!e||!f.stream)return;let t=!1,n,r=async()=>{let e=f.video.current;if(!t&&e&&e.readyState>=2&&e.videoWidth){let n=await(await Hx()).detect(e).catch(()=>null);if(n&&!t){navigator.vibrate?.(60),p.current(n),m.current();return}}t||(n=setTimeout(r,200))};return r(),()=>{t=!0,clearTimeout(n)}},[e,f.stream,f.video]);let h=async e=>{if(!e)return;u(!1);let r=await createImageBitmap(e).catch(()=>null),i=r?await(await Hx()).detect(r).catch(()=>null):null;i?(n(i),t()):u(!0)};return(0,s.jsxs)(tx,{open:e,onClose:t,label:G(`scan.title`),children:[(0,s.jsx)(rx,{title:G(`scan.title`),onClose:t,camera:f,onFlip:()=>i(e=>e===`environment`?`user`:`environment`)}),(0,s.jsx)(ix,{camera:f,asking:G(`scan.asking`),actions:(0,s.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,s.jsxs)(lx,{onClick:()=>d.current?.click(),children:[(0,s.jsx)(ya,{className:`size-4`}),` `,G(`scan.fromPhoto`)]}),(0,s.jsx)(lx,{quiet:!0,onClick:t,children:G(`scan.typeInstead`)})]}),children:(0,s.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,s.jsx)(`div`,{className:`aspect-square w-[min(68%,320px)] rounded-3xl border-2 border-white/90 shadow-[0_0_0_100vmax_rgb(0_0_0/0.35)]`})})}),(0,s.jsxs)(`div`,{className:`safe-bottom flex flex-col items-center gap-3 px-5 pt-3 text-center`,children:[(0,s.jsx)(`p`,{className:`text-[0.8125rem] text-white/75 leading-snug`,children:G(l?`scan.miss`:a?`scan.hintQr`:`scan.hint`)}),f.stream?(0,s.jsxs)(lx,{quiet:!0,onClick:()=>d.current?.click(),children:[(0,s.jsx)(ya,{className:`size-4`}),` `,G(`scan.fromPhoto`)]}):null]}),(0,s.jsx)(`input`,{ref:d,type:`file`,hidden:!0,accept:`image/*`,onChange:e=>{h(e.target.files?.[0]),e.target.value=``}})]})}var Kx=`#1d1a17`,qx={width:1200,height:480};function Jx(e,t,n,r,i){e.lineCap=`round`,e.lineJoin=`round`,e.strokeStyle=Kx,e.fillStyle=Kx,e.lineWidth=i;for(let a of t){if(a.length===1){e.beginPath(),e.arc(a[0].x*n,a[0].y*r,i/2,0,Math.PI*2),e.fill();continue}e.beginPath(),e.moveTo(a[0].x*n,a[0].y*r);for(let t=1;t<a.length-1;t++){let i=a[t],o=a[t+1];e.quadraticCurveTo(i.x*n,i.y*r,(i.x+o.x)/2*n,(i.y+o.y)/2*r)}let t=a[a.length-1];e.lineTo(t.x*n,t.y*r),e.stroke()}}function Yx({strokes:e,onStrokes:t}){let n=(0,o.useRef)(null),r=(0,o.useRef)(null),i=(0,o.useRef)(e);i.current=e;let a=()=>{let e=n.current,t=e?.getContext(`2d`);if(!e||!t)return;let a=window.devicePixelRatio||1,o=Math.round(e.clientWidth*a),s=Math.round(e.clientHeight*a);(e.width!==o||e.height!==s)&&(e.width=o,e.height=s),t.clearRect(0,0,o,s),Jx(t,r.current?[...i.current,r.current]:i.current,o,s,2.4*a)};(0,o.useEffect)(()=>{a();let e=n.current;if(!e)return;let t=new ResizeObserver(a);return t.observe(e),()=>t.disconnect()},[e]);let c=e=>{let t=e.currentTarget.getBoundingClientRect();return{x:Math.min(1,Math.max(0,(e.clientX-t.left)/t.width)),y:Math.min(1,Math.max(0,(e.clientY-t.top)/t.height))}};return(0,s.jsxs)(`div`,{className:`relative overflow-hidden rounded-xl bg-white ring-1 ring-input`,children:[(0,s.jsx)(`canvas`,{ref:n,"aria-label":G(`sign.pad`),className:`block aspect-[5/2] w-full cursor-crosshair touch-none select-none`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),r.current=[c(e)],a()},onPointerMove:e=>{r.current&&(r.current.push(c(e)),a())},onPointerUp:()=>{if(r.current){let e=r.current;r.current=null,t([...i.current,e])}},onPointerCancel:()=>{r.current=null,a()}}),(0,s.jsx)(`div`,{className:`pointer-events-none absolute inset-x-6 bottom-[22%] border-[#1d1a17]/25 border-b`}),e.length?null:(0,s.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center text-[#1d1a17]/40 text-[0.875rem]`,children:G(`sign.hint`)})]})}async function Xx(e){let t=document.createElement(`canvas`);t.width=qx.width,t.height=qx.height;let n=t.getContext(`2d`);if(!n)return null;Jx(n,e,qx.width,qx.height,7);let r=await new Promise(e=>t.toBlob(e,`image/png`));return r?new File([r],`unterschrift.png`,{type:`image/png`}):null}function Zx({label:e,value:t,runId:n,onChange:r}){let[i,a]=(0,o.useState)(!1),[c,l]=(0,o.useState)([]),[u,d]=(0,o.useState)(!1),[f,p]=(0,o.useState)(null),m=typeof t==`string`&&t?t:null,h=async()=>{d(!0),p(null);try{let e=await Xx(c);if(!e)return;r((await _b.upload(`${Y(n)}/uploads`,e)).id),a(!1)}catch(e){p(e.message)}finally{d(!1)}};return(0,s.jsxs)(`div`,{children:[m?(0,s.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl bg-card p-2 ring-1 ring-input`,children:[(0,s.jsx)(`button`,{type:`button`,onClick:()=>{l([]),a(!0)},className:`min-w-0 flex-1 rounded-lg bg-white px-3`,"aria-label":G(`sign.again`),children:(0,s.jsx)(`img`,{src:vb(`${Y(n)}/assets/${m}`),alt:e,className:`mx-auto h-20 object-contain`})}),(0,s.jsx)(Jv,{label:G(`sign.remove`),onClick:()=>r(void 0),children:(0,s.jsx)(Eo,{className:`size-4`})})]}):(0,s.jsxs)(`button`,{type:`button`,onClick:()=>{l([]),a(!0)},className:`flex w-full flex-col items-center justify-center gap-2 rounded-xl border border-input border-dashed bg-card px-4 py-7 text-[0.875rem] text-ink-3 transition hover:border-ember hover:text-ink`,children:[(0,s.jsx)(Va,{className:`size-6`}),G(`sign.open`)]}),(0,s.jsxs)(ly,{open:i,onClose:()=>a(!1),title:e,wide:!0,children:[(0,s.jsx)(Yx,{strokes:c,onStrokes:l}),f?(0,s.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-rose`,children:f}):null,(0,s.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3`,children:[(0,s.jsxs)(J,{variant:`ghost`,disabled:!c.length||u,onClick:()=>l([]),children:[(0,s.jsx)($i,{className:`size-4`}),` `,G(`sign.clear`)]}),(0,s.jsx)(J,{busy:u,disabled:!c.length,onClick:()=>void h(),children:G(`sign.accept`)})]})]})]})}function Qx({runId:e,connectionId:t,connector:n,onCancel:r}){let[i,a]=(0,o.useState)({}),[c,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(null),f=async()=>{l(!0),d(null);try{await _b.post(`${Y(e)}/connections/${t}/credentials/${n.id}`,{values:i})}catch(e){d(e.message)}finally{l(!1)}};return(0,s.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-xl bg-card p-4 ring-1 ring-input`,children:[(n.fields??[]).map(e=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(ay,{children:e.label}),(0,s.jsx)(Zv,{type:e.secret?`password`:`text`,autoComplete:`off`,value:i[e.key]??``,placeholder:e.placeholder,onChange:t=>a(n=>({...n,[e.key]:t.target.value})),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),f())}})]},e.key)),n.hint?(0,s.jsx)(`p`,{className:`text-[0.8125rem] text-ink-3`,children:n.hint}):null,u?(0,s.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:u}):null,(0,s.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,s.jsx)(J,{variant:`ghost`,size:`sm`,onClick:r,children:G(`common.cancel`)}),(0,s.jsx)(J,{size:`sm`,busy:c,onClick:()=>void f(),children:G(`connect.go`)})]})]})}function $x({runId:e,connection:t}){let[n,r]=(0,o.useState)(null),[i,a]=(0,o.useState)(null),[c,l]=(0,o.useState)(null);if(!t)return null;if(t.account){let n=t.connectors.find(e=>e.id===t.account?.connector)?.name??``;return(0,s.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl bg-card p-3 ring-1 ring-input`,children:[(0,s.jsx)(`div`,{className:`flex size-10 items-center justify-center rounded-full bg-moss-tint text-moss`,children:(0,s.jsx)(Ni,{className:`size-5`})}),(0,s.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,s.jsx)(`div`,{className:`truncate font-medium text-[0.9375rem]`,children:t.account.label}),(0,s.jsx)(`div`,{className:`text-[0.8125rem] text-ink-3`,children:G(`connect.connected`,{name:n})})]}),(0,s.jsx)(Jv,{label:G(`connect.disconnect`),onClick:()=>void _b.del(`${Y(e)}/connections/${t.id}`),children:(0,s.jsx)(So,{className:`size-4`})})]})}let u=async n=>{if(l(null),a(null),bb(`signIn`)){try{let{url:r}=await _b.post(`${Y(e)}/connections/${t.id}/oauth/${n.id}`);await xb(`signIn`,{url:r})}catch(e){l(e.message)}return}let r=window.open(`about:blank`,`wizard-connect`,`width=540,height=700`);try{let{url:i}=await _b.post(`${Y(e)}/connections/${t.id}/oauth/${n.id}`);r?r.location.replace(i):a(i)}catch(e){r?.close(),l(e.message)}},d=t.connectors.find(e=>e.id===n);return t.connectors.length?(0,s.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,s.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.connectors.map(e=>(0,s.jsxs)(`button`,{type:`button`,onClick:()=>e.auth===`oauth2`?void u(e):r(n===e.id?null:e.id),className:q(`inline-flex h-11 items-center gap-2 rounded-full px-4 font-medium text-[0.875rem] ring-1 transition`,n===e.id?`bg-ember-veil text-ink ring-ember`:`bg-card text-ink-2 ring-input hover:text-ink hover:ring-ember`),children:[(0,s.jsx)(Ta,{className:`size-4`}),` `,e.name]},e.id))}),d?(0,s.jsx)(Qx,{runId:e,connectionId:t.id,connector:d,onCancel:()=>r(null)}):null,i?(0,s.jsx)(`a`,{href:i,target:`_blank`,rel:`noreferrer`,className:`text-[0.875rem] text-ember underline`,children:G(`connect.openLink`)}):null,c?(0,s.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:c}):null]}):(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:G(`connect.none`)})}function eS(e){return e==null?``:Array.isArray(e)?e.join(`, `):String(e)}function tS(e,t){if(t.trim()===``)return null;if(e.type===`number`){let e=Number(t.replace(/\s/g,``).replace(`,`,`.`));return Number.isFinite(e)?e:t}return e.type===`boolean`?t===`true`:t}function nS({column:e,value:t,boxed:n,onCommit:r}){let[i,a]=(0,o.useState)(eS(t));(0,o.useEffect)(()=>a(eS(t)),[t]);let c=q(`w-full min-w-0 rounded-md border border-transparent px-2 text-[0.8125rem] outline-none focus:border-ember focus:bg-card`,n?`h-11 bg-paper-2`:`h-9 bg-transparent hover:bg-paper-2 coarse:h-11`);return e.type===`boolean`?(0,s.jsx)(`label`,{className:`flex size-9 cursor-pointer items-center justify-center coarse:size-11`,children:(0,s.jsx)(`input`,{type:`checkbox`,"aria-label":e.name,checked:t===!0,onChange:e=>r(e.target.checked),className:`size-4 accent-[var(--ember)] coarse:size-6`})}):e.type===`select`&&!e.format.multiple&&!e.format.allowCustom?(0,s.jsxs)(`select`,{value:i,onChange:e=>r(e.target.value||null),className:c,children:[(0,s.jsx)(`option`,{value:``}),e.format.options.map(e=>(0,s.jsx)(`option`,{value:e.id,children:e.label},e.id))]}):(0,s.jsx)(`input`,{"aria-label":e.name,type:e.type===`date`&&e.format.kind===`date`?`date`:`text`,inputMode:e.type===`number`?`decimal`:void 0,enterKeyHint:`done`,autoComplete:`off`,value:i,onChange:e=>a(e.target.value),onBlur:()=>{i!==eS(t)&&r(tS(e,i))},onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.target.blur())},className:q(c,e.type===`number`&&`text-right tabular-nums`)})}function rS({runId:e,list:t,editable:n}){let{def:r,rows:i}=t,[a,c]=(0,o.useState)(null),[l,u]=(0,o.useState)({}),d=`${Y(e)}/lists/${r.id}/rows`,f=async e=>{c(null);try{await e()}catch(e){c(e instanceof lb?e.message:String(e))}},p=()=>f(async()=>{await _b.post(d,{cells:l}),u({})}),m=Object.values(l).some(e=>e!=null&&e!==``);if(!i.length&&!n)return(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:G(`list.empty`)});let h=(e,t)=>t===0||e.type===`text`&&e.format?.style===`multiline`,g=(e,t,n)=>void f(()=>_b.patch(`${d}/${e}`,{cells:{[t]:n}}));return(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(`div`,{className:`flex flex-col gap-2 sm:hidden`,children:[i.map(e=>(0,s.jsxs)(`div`,{className:`rounded-lg bg-paper p-2 ring-1 ring-border-soft`,children:[(0,s.jsx)(`div`,{className:`grid grid-cols-2 gap-x-2 gap-y-1.5`,children:r.columns.map((t,r)=>(0,s.jsxs)(`div`,{className:q(`min-w-0`,h(t,r)&&`col-span-2`),children:[(0,s.jsx)(`div`,{className:`px-1 pb-0.5 text-[0.6875rem] text-ink-3`,children:t.name}),n?(0,s.jsx)(nS,{boxed:!0,column:t,value:e.cells[t.id],onCommit:n=>g(e.id,t.id,n)}):(0,s.jsx)(`div`,{className:q(`break-words px-1 text-[0.875rem]`,t.type===`number`&&`tabular-nums`),children:rg(t,e.cells[t.id],mv)||`—`})]},t.id))}),n?(0,s.jsx)(`div`,{className:`mt-1 flex justify-end`,children:(0,s.jsx)(Jv,{label:G(`list.delete`),onClick:()=>void f(()=>_b.del(`${d}/${e.id}`)),children:(0,s.jsx)(vo,{className:`size-4`})})}):null]},e.id)),n?(0,s.jsxs)(`div`,{className:`rounded-lg border border-input border-dashed p-2`,children:[(0,s.jsx)(`div`,{className:`grid grid-cols-2 gap-x-2 gap-y-1.5`,children:r.columns.map((e,t)=>(0,s.jsxs)(`div`,{className:q(`min-w-0`,h(e,t)&&`col-span-2`),children:[(0,s.jsx)(`div`,{className:`px-1 pb-0.5 text-[0.6875rem] text-ink-3`,children:e.name}),(0,s.jsx)(nS,{boxed:!0,column:e,value:l[e.id],onCommit:t=>u(n=>({...n,[e.id]:t}))})]},e.id))}),(0,s.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,s.jsxs)(J,{variant:`secondary`,size:`sm`,onClick:()=>m?void p():void 0,children:[(0,s.jsx)(qa,{className:`size-4`}),` `,G(`run.addRow`)]})})]}):null]}),(0,s.jsx)(`div`,{className:`hidden overflow-x-auto rounded-lg ring-1 ring-border-soft sm:block`,children:(0,s.jsxs)(`table`,{className:`w-full text-[0.8125rem]`,children:[(0,s.jsx)(`thead`,{className:`bg-paper-2 text-ink-2`,children:(0,s.jsxs)(`tr`,{children:[r.columns.map(e=>(0,s.jsx)(`th`,{className:`whitespace-nowrap px-3 py-2 text-left font-medium`,children:e.name},e.id)),n?(0,s.jsx)(`th`,{className:`w-10`}):null]})}),(0,s.jsxs)(`tbody`,{children:[i.map(e=>(0,s.jsxs)(`tr`,{className:`border-border-soft border-t align-top`,children:[r.columns.map(t=>(0,s.jsx)(`td`,{className:q(`min-w-[7.5rem]`,n?`px-1 py-0.5`:`px-3 py-2`),children:n?(0,s.jsx)(nS,{column:t,value:e.cells[t.id],onCommit:n=>g(e.id,t.id,n)}):(0,s.jsx)(`span`,{className:q(t.type===`number`&&`tabular-nums`),children:rg(t,e.cells[t.id],mv)})},t.id)),n?(0,s.jsx)(`td`,{className:`px-1 py-0.5`,children:(0,s.jsx)(Jv,{label:G(`list.delete`),className:`size-9`,onClick:()=>void f(()=>_b.del(`${d}/${e.id}`)),children:(0,s.jsx)(vo,{className:`size-3.5`})})}):null]},e.id)),n?(0,s.jsxs)(`tr`,{className:`border-border-soft border-t bg-paper`,children:[r.columns.map(e=>(0,s.jsx)(`td`,{className:`px-1 py-0.5`,children:(0,s.jsx)(nS,{column:e,value:l[e.id],onCommit:t=>u(n=>({...n,[e.id]:t}))})},e.id)),(0,s.jsx)(`td`,{className:`px-1 py-0.5`,children:(0,s.jsx)(Jv,{label:G(`run.addRow`),className:`size-9`,onClick:()=>m?void p():void 0,children:(0,s.jsx)(qa,{className:`size-4`})})})]}):null]})]})}),a?(0,s.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-rose`,children:a}):null]})}function iS(e,t,n){let r=t.split(`/`).map(encodeURIComponent).join(`/`);return vb(`${Y(e)}/store/files/${r}${n?`?inline=1`:``}`)}var aS=[`bg-paper-3 text-ink-3`,`bg-moss-tint text-moss`,`bg-rose-tint text-rose`,`bg-ember-tint text-ember-strong`];function oS({runId:e,list:t}){let{def:n,rows:r}=t,i=n.columns.find(e=>e.id===n.check?.file),a=n.columns.find(e=>e.id===n.check?.status),c=a?.type===`select`?a.format.options:[],l=c[0]?.id,u=e=>a?String(e.cells[a.id]??l??``):``,d=e=>!a||u(e)===l,[f,p]=(0,o.useState)(()=>(r.find(d)??r[0])?.id??null),[m,h]=(0,o.useState)(!1),[g,_]=(0,o.useState)(null),v=`${Y(e)}/lists/${n.id}/rows`,y=r.find(e=>e.id===f)??r[0],b=m?r.filter(e=>d(e)||e.id===y?.id):r,x=r.filter(e=>!d(e)).length,S=n.columns.filter(e=>e!==i&&e!==a),C=S.filter(e=>e.id!==n.key),w=C.find(e=>e.type===`text`)??C[0],T=C.filter(e=>e!==w),E=async(e,t)=>{_(null);try{await _b.patch(`${v}/${e}`,{cells:t})}catch(e){_(e instanceof lb?e.message:String(e))}},ee=e=>{let t=b.findIndex(e=>e.id===y?.id),n=b[Math.min(b.length-1,Math.max(0,t+e))];n&&p(n.id)},te=async e=>{if(!y||!a)return;let t=r.findIndex(e=>e.id===y.id),n=[...r.slice(t+1),...r.slice(0,t)].find(d);await E(y.id,{[a.id]:e}),n&&e!==l&&p(n.id)},ne=e=>{e.target.closest(`input, textarea, select`)||(e.key===`ArrowDown`||e.key===`ArrowUp`?(e.preventDefault(),ee(e.key===`ArrowDown`?1:-1)):/^[1-9]$/.test(e.key)&&c[Number(e.key)]&&(e.preventDefault(),te(c[Number(e.key)].id)))};if(!r.length)return(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:G(`list.empty`)});let D=i&&y?String(y.cells[i.id]??``).trim():``,re=D.split(`.`).pop()?.toLowerCase()??``,ie=e=>aS[Math.min(Math.max(0,c.findIndex(t=>t.id===u(e))),3)];return(0,s.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-[minmax(280px,360px)_minmax(0,1fr)]`,onKeyDown:ne,children:[(0,s.jsxs)(`div`,{className:`flex min-h-0 flex-col`,children:[(0,s.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[(0,s.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:G(`check.progress`,{done:x,total:r.length})}),a?(0,s.jsx)(`button`,{type:`button`,"aria-pressed":m,onClick:()=>h(e=>!e),className:q(`inline-flex h-8 items-center rounded-full px-3 text-[0.8125rem] ring-1 transition coarse:h-11`,m?`bg-ember-tint text-ink ring-ember`:`bg-card text-ink-2 ring-input hover:text-ink`),children:G(`check.onlyOpen`)}):null]}),(0,s.jsx)(`ul`,{className:`flex max-h-[38vh] flex-col gap-1.5 overflow-y-auto p-0.5 pr-1 lg:max-h-[calc(100vh-15rem)]`,children:b.map(e=>(0,s.jsx)(`li`,{children:(0,s.jsxs)(`button`,{type:`button`,onClick:()=>p(e.id),"aria-current":e.id===y?.id,className:q(`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left ring-1 transition`,e.id===y?.id?`bg-card shadow-soft ring-ember`:`bg-paper ring-border-soft hover:bg-card`),children:[(0,s.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,s.jsx)(`span`,{className:`block truncate font-medium text-[0.875rem]`,children:w&&rg(w,e.cells[w.id],mv)||`—`}),(0,s.jsx)(`span`,{className:`block truncate text-[0.75rem] text-ink-3 tabular-nums`,children:T.slice(0,2).map(t=>rg(t,e.cells[t.id],mv)).filter(Boolean).join(` · `)})]}),a?(0,s.jsx)(`span`,{className:q(`shrink-0 rounded-full px-2 py-0.5 font-medium text-[0.6875rem]`,ie(e)),children:c.find(t=>t.id===u(e))?.label??u(e)}):null]})},e.id))})]}),y?(0,s.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[c.length>1?(0,s.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[c.slice(1).map((e,t)=>(0,s.jsxs)(J,{size:`md`,variant:u(y)===e.id?`primary`:`secondary`,onClick:()=>void te(e.id),children:[u(y)===e.id?(0,s.jsx)(Ni,{className:`size-4`}):null,e.label,(0,s.jsx)(`kbd`,{className:`ml-1 hidden rounded bg-black/10 px-1.5 text-[0.6875rem] lg:inline`,children:t+1})]},e.id)),u(y)===l?null:(0,s.jsx)(J,{size:`md`,variant:`ghost`,onClick:()=>void te(l??``),children:G(`check.reopen`)})]}):null,(0,s.jsx)(`div`,{className:`overflow-hidden rounded-lg bg-paper-2 ring-1 ring-border-soft`,children:D?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(`div`,{className:`flex items-center gap-2 border-border-soft border-b bg-card px-3 py-2 text-[0.8125rem]`,children:[(0,s.jsx)(aa,{className:`size-3.5 shrink-0 text-ink-3`}),(0,s.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:D.split(`/`).pop()}),(0,s.jsx)(`a`,{href:iS(e,D,re===`pdf`),target:`_blank`,rel:`noreferrer`,className:`shrink-0 text-ink-2 underline-offset-2 hover:text-ink hover:underline`,children:G(`run.openFull`)})]}),re===`pdf`?(0,s.jsx)(`iframe`,{title:D,src:`${iS(e,D,!0)}#toolbar=0&navpanes=0&view=FitH`,className:`h-[46vh] w-full border-0 bg-white lg:h-[calc(100vh-27rem)] lg:min-h-[360px]`},D):[`png`,`jpg`,`jpeg`,`webp`].includes(re)?(0,s.jsx)(`div`,{className:`flex max-h-[46vh] justify-center overflow-auto bg-white lg:max-h-[calc(100vh-27rem)]`,children:(0,s.jsx)(`img`,{src:iS(e,D,!0),alt:D,className:`max-w-full object-contain`},D)}):(0,s.jsx)(`p`,{className:`px-4 py-10 text-center text-[0.875rem] text-ink-3`,children:G(`check.noPreview`)})]}):(0,s.jsx)(`p`,{className:`px-4 py-14 text-center text-[0.875rem] text-ink-3`,children:G(`check.noFile`)})}),(0,s.jsx)(`div`,{className:`grid grid-cols-2 gap-x-3 gap-y-2 sm:grid-cols-3`,children:S.map(e=>(0,s.jsxs)(`div`,{className:q(`min-w-0`,e.type===`text`&&e.format?.style===`multiline`&&`col-span-full`),children:[(0,s.jsx)(`div`,{className:`px-1 pb-0.5 text-[0.6875rem] text-ink-3`,children:e.name}),(0,s.jsx)(nS,{boxed:!0,column:e,value:y.cells[e.id],onCommit:t=>void E(y.id,{[e.id]:t})})]},e.id))}),g?(0,s.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:g}):null]}):null]})}var sS={xlsx:`Excel`,csv:`CSV`,json:`JSON`,md:`Markdown`,zip:`ZIP`};function cS({runId:e,list:t}){return(0,s.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.formats.map(n=>(0,s.jsx)(`a`,{href:vb(`${Y(e)}/lists/${t.def.id}/download?format=${n}`),className:`inline-flex h-9 items-center rounded-full bg-paper-2 px-3.5 font-medium text-[0.8125rem] text-ink-2 transition hover:bg-paper-3 hover:text-ink coarse:h-11 coarse:px-4`,children:sS[n]??n},n))})}function lS(e){return e>1e6?`${(e/1e6).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1e3))} KB`}function uS({runId:e}){let[t,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)(null),[a,c]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&(c(!1),_b.get(`${Y(e)}/store`).then(i))},[t,e]);let l=r&&!r.files.length&&!r.connections.length&&!r.keepsSignIns&&r.lists.every(e=>!e.rows);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(`button`,{type:`button`,onClick:()=>n(!0),className:`inline-flex items-center gap-1.5 text-[0.8125rem] text-ink-4 transition hover:text-ink-2 coarse:min-h-11`,children:[(0,s.jsx)(qi,{className:`size-3.5`}),` `,G(`store.open`)]}),(0,s.jsx)(ly,{open:t,onClose:()=>n(!1),title:G(`store.title`),wide:!0,children:r?(0,s.jsxs)(`div`,{className:`flex flex-col gap-5 text-[0.875rem]`,children:[(0,s.jsx)(`p`,{className:`text-ink-3`,children:G(`store.explain`)}),l?(0,s.jsx)(`p`,{className:`text-ink-2`,children:G(`store.empty`)}):null,r.lists.some(e=>e.rows)?(0,s.jsx)(`ul`,{className:`flex flex-col gap-1`,children:r.lists.filter(e=>e.rows).map(e=>(0,s.jsxs)(`li`,{className:`flex justify-between gap-3`,children:[(0,s.jsx)(`span`,{children:e.title}),(0,s.jsx)(`span`,{className:`text-ink-3 tabular-nums`,children:G(`store.rows`,{n:e.rows})})]},e.id))}):null,r.connections.map(e=>(0,s.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,s.jsx)(Ta,{className:`size-4 text-ink-3`}),` `,e.account?.label]},e.id)),r.keepsSignIns?(0,s.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,s.jsx)(Ni,{className:`size-4 text-ink-3`}),` `,G(`store.signIns`)]}):null,r.files.length?(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`div`,{className:`mb-1 text-ink-3`,children:G(`store.files`,{n:r.files.length,size:lS(r.files.reduce((e,t)=>e+t.size,0))})}),(0,s.jsx)(`ul`,{className:`max-h-56 overflow-y-auto rounded-lg ring-1 ring-border-soft`,children:r.files.map(t=>(0,s.jsx)(`li`,{className:`border-border-soft border-b last:border-0`,children:(0,s.jsxs)(`a`,{href:vb(`${Y(e)}/store/files/${t.path}`),className:`flex items-center gap-2 px-3 py-2 text-[0.8125rem] hover:bg-paper-2 coarse:min-h-11`,title:t.source??void 0,children:[(0,s.jsx)(aa,{className:`size-3.5 shrink-0 text-ink-3`}),(0,s.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t.path}),(0,s.jsx)(`span`,{className:`text-ink-4 tabular-nums`,children:lS(t.size)})]})},t.path))})]}):null,(0,s.jsxs)(`div`,{className:`flex items-center justify-between gap-3 pt-1`,children:[l?(0,s.jsx)(`span`,{}):a?(0,s.jsxs)(J,{variant:`secondary`,onClick:async()=>{await _b.del(`${Y(e)}/store`),i(await _b.get(`${Y(e)}/store`)),c(!1)},children:[(0,s.jsx)(vo,{className:`size-4`}),` `,G(`store.confirmDelete`)]}):(0,s.jsxs)(J,{variant:`ghost`,onClick:()=>c(!0),children:[(0,s.jsx)(vo,{className:`size-4`}),` `,G(`store.delete`)]}),(0,s.jsx)(J,{onClick:()=>n(!1),children:G(`common.close`)})]})]}):(0,s.jsx)(`div`,{className:`flex justify-center py-8 text-ink-4`,children:(0,s.jsx)(oy,{})})})]})}var dS=300;function fS(){if(typeof MediaRecorder<`u`)return(bb(`transcribe`)?[`audio/mp4`,`audio/webm;codecs=opus`,`audio/webm`,`audio/ogg;codecs=opus`]:[`audio/webm;codecs=opus`,`audio/mp4`,`audio/webm`,`audio/ogg;codecs=opus`]).find(e=>MediaRecorder.isTypeSupported(e))}async function pS(e,t){if(bb(`transcribe`))try{let n=await xb(`transcribe`,{audio:await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result).split(`,`)[1]??``),r.onerror=()=>n(r.error),r.readAsDataURL(e)}),mime:e.type,lang:t});return typeof n?.text==`string`?n.text:void 0}catch{return}}function mS(e){return`${Math.floor(e/60)}:${String(Math.floor(e%60)).padStart(2,`0`)}`}function hS({value:e,runId:t,onChange:n,onBusy:r}){let i=qg(e)?e:null,[a,c]=(0,o.useState)(null),[l,u]=(0,o.useState)(0),[d,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(null),[h,g]=(0,o.useState)(!1),[_,v]=(0,o.useState)(null),y=(0,o.useRef)(null),b=(0,o.useRef)(null),x=fS(),S=Mb&&!!x;(0,o.useEffect)(()=>()=>{y.current&&(y.current.recorder.onstop=null,y.current.stop())},[]),(0,o.useEffect)(()=>()=>{_&&URL.revokeObjectURL(_.url)},[_]);let C=async(e,i)=>{f(!0),r?.(!0),m(null);try{let r=await _b.upload(`${Y(t)}/uploads`,e);v({asset:r.id,url:URL.createObjectURL(e)});let{lang:a}=gb(),o=await pS(e,a);n({asset:r.id,lang:a,...i===void 0?{}:{seconds:i},...o===void 0?{}:{transcript:o}})}catch(e){m(e.message)}finally{f(!1),r?.(!1)}},w=async()=>{m(null),g(!1);let e;try{e=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0}})}catch{g(!0);return}let t=[],n=new MediaRecorder(e,{mimeType:x,audioBitsPerSecond:48e3}),i=Date.now(),a=new AudioContext,o=a.createAnalyser();o.fftSize=256,a.createMediaStreamSource(e).connect(o);let s=new Uint8Array(o.fftSize),l=0,d=()=>{o.getByteTimeDomainData(s);let e=0;for(let t of s)e=Math.max(e,Math.abs(t-128));if(u(Math.min(1,e/64)),c((Date.now()-i)/1e3),(Date.now()-i)/1e3>=dS){f();return}l=requestAnimationFrame(d)},f=()=>{cancelAnimationFrame(l),n.state!==`inactive`&&n.stop();for(let t of e.getTracks())t.stop();a.close().catch(()=>void 0),y.current=null,c(null),u(0)};n.ondataavailable=e=>e.data.size&&t.push(e.data),n.onstop=()=>{let e=(n.mimeType||x||`audio/webm`).split(`;`)[0],r=e===`audio/mp4`?`m4a`:e===`audio/ogg`?`ogg`:`webm`,a=Math.max(1,Math.round((Date.now()-i)/1e3));C(new File(t,`sprachnotiz-${Zb()}.${r}`,{type:e}),a)},y.current={recorder:n,stop:f},r?.(!0),n.start(1e3),l=requestAnimationFrame(d)},T=a!==null,E=(0,s.jsxs)(J,{variant:`secondary`,onClick:()=>b.current?.click(),children:[(0,s.jsx)(ra,{className:`size-4`}),` `,G(`voice.pick`)]});return(0,s.jsxs)(`div`,{children:[T?(0,s.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl bg-card p-3 ring-1 ring-ember`,children:[(0,s.jsxs)(`span`,{className:`relative flex size-11 shrink-0 items-center justify-center`,children:[(0,s.jsx)(`span`,{className:`absolute inset-0 rounded-full bg-rose-tint transition-transform duration-75`,style:{transform:`scale(${.7+l*.5})`}}),(0,s.jsx)(`span`,{className:`relative size-3.5 animate-pulse-dot rounded-full bg-rose`})]}),(0,s.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,s.jsx)(`div`,{className:`font-medium text-[0.9375rem] tabular-nums`,children:mS(a)}),(0,s.jsx)(`div`,{className:`text-[0.8125rem] text-ink-3`,children:a>270?G(`voice.left`,{s:Math.ceil(dS-a)}):G(`voice.recording`)})]}),(0,s.jsxs)(J,{onClick:()=>y.current?.stop(),children:[(0,s.jsx)(mo,{className:`size-3.5 fill-current`}),` `,G(`voice.stop`)]})]}):d?(0,s.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl bg-card p-4 text-[0.875rem] text-ink-3 ring-1 ring-input`,children:[(0,s.jsx)(oy,{className:`size-4`}),` `,G(`run.uploading`)]}):i?(0,s.jsxs)(`div`,{className:`rounded-xl bg-card p-3 ring-1 ring-input`,children:[(0,s.jsx)(`audio`,{controls:!0,preload:`metadata`,src:_?.asset===i.asset?_.url:`${Y(t)}/assets/${i.asset}`,className:`h-11 w-full`}),i.transcript?(0,s.jsx)(`p`,{className:`mt-2 whitespace-pre-wrap px-1 text-[0.875rem] text-ink-2 leading-relaxed`,children:i.transcript}):null,(0,s.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center justify-between gap-2`,children:[(0,s.jsx)(`span`,{className:`px-1 text-[0.8125rem] text-ink-3`,children:i.seconds?mS(i.seconds):null}),(0,s.jsxs)(`div`,{className:`flex gap-1`,children:[S?(0,s.jsxs)(J,{variant:`ghost`,size:`sm`,onClick:()=>void w(),children:[(0,s.jsx)($a,{className:`size-3.5`}),` `,G(`voice.again`)]}):null,(0,s.jsx)(J,{variant:`ghost`,size:`sm`,onClick:()=>n(void 0),children:G(`voice.remove`)})]})]})]}):(0,s.jsxs)(`div`,{children:[(0,s.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[S?(0,s.jsxs)(J,{variant:`secondary`,size:`lg`,onClick:()=>void w(),className:`w-full sm:w-auto`,children:[(0,s.jsx)(Fa,{className:`size-4`}),` `,G(`voice.start`)]}):E,S&&h?E:null]}),h?(0,s.jsx)(`p`,{className:`mt-2 rounded-lg bg-amber-tint px-3 py-2 text-[0.8125rem] text-ink-2 leading-relaxed`,children:G(`voice.denied`)}):(0,s.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3 leading-relaxed`,children:G(S?`voice.why`:`voice.noRecorder`)})]}),(0,s.jsx)(`input`,{ref:b,type:`file`,hidden:!0,accept:`audio/*`,capture:!0,onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&C(t,void 0)}}),p?(0,s.jsx)(`div`,{className:`mt-2 text-[0.8125rem] text-rose`,children:p}):null]})}function gS(e,t){try{return new Intl.NumberFormat(mv,{style:`currency`,currency:t}).format(e)}catch{return`${e.toFixed(2)} ${t}`}}function _S({field:e,value:t,values:n,onChange:r}){let i=e.columns??[],a=Array.isArray(t)&&t.length?t:[{}],o=$_(e,a,n),c=(e,t,n)=>{r(a.map((r,i)=>i===e?{...r,[t]:n}:r))},l=i.map(e=>e.kind===`text`&&e===i[0]?`minmax(0,3fr)`:`minmax(0,1fr)`).join(` `);return(0,s.jsxs)(`div`,{className:`rounded-xl bg-card p-2 ring-1 ring-input`,children:[(0,s.jsx)(`div`,{className:`hidden gap-2 px-2 pt-1 pb-2 text-[0.75rem] text-ink-3 sm:grid`,style:{gridTemplateColumns:`${l} 36px`},children:i.map(e=>(0,s.jsx)(`div`,{className:e.kind===`text`?``:`text-right`,children:e.label},e.id))}),(0,s.jsx)(`div`,{className:`flex flex-col gap-2`,children:a.map((e,t)=>(0,s.jsxs)(`div`,{className:`grid grid-cols-6 gap-2 rounded-lg bg-paper p-2 sm:bg-transparent sm:p-0 sm:[grid-template-columns:var(--cols)]`,style:{"--cols":`${l} 36px`},children:[i.map((n,r)=>(0,s.jsxs)(`label`,{className:q(`flex min-w-0 flex-col gap-1 sm:col-span-1`,r===0?`col-span-5`:i.length-1<=2?`col-span-3`:`col-span-2`),children:[(0,s.jsx)(`span`,{className:`px-0.5 text-[0.6875rem] text-ink-3 sm:hidden`,children:n.label}),(0,s.jsx)(`input`,{"aria-label":n.label,placeholder:n.label,inputMode:n.kind===`text`?`text`:`decimal`,autoComplete:`off`,value:String(e[n.id]??``),onChange:e=>c(t,n.id,e.target.value),className:q(`h-11 w-full min-w-0 rounded-md border border-transparent bg-paper-2 px-2.5 text-[0.875rem] outline-none placeholder:text-transparent focus:border-focus focus:bg-card sm:placeholder:text-ink-4`,n.kind!==`text`&&`text-right tabular-nums`)})]},n.id)),(0,s.jsx)(Jv,{label:G(`list.delete`),onClick:()=>r(a.filter((e,n)=>n!==t)),className:`order-first col-start-6 row-start-1 size-11 justify-self-end self-end sm:order-none sm:col-start-auto sm:row-start-auto`,children:(0,s.jsx)(vo,{className:`size-4`})})]},t))}),(0,s.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-end justify-between gap-3 px-2 pb-1`,children:[(0,s.jsxs)(`button`,{type:`button`,onClick:()=>r([...a,{}]),className:`inline-flex h-9 items-center gap-1.5 rounded-full px-3 text-[0.8125rem] text-ink-2 hover:bg-accent coarse:h-11`,children:[(0,s.jsx)(qa,{className:`size-4`}),` `,G(`run.addRow`)]}),(0,s.jsxs)(`div`,{className:`text-right text-[0.8125rem] tabular-nums`,children:[(0,s.jsxs)(`div`,{className:`text-ink-3`,children:[G(`run.net`),` `,gS(o.net,o.currency)]}),o.vatRate?(0,s.jsxs)(`div`,{className:`text-ink-3`,children:[G(`run.vat`,{r:o.vatRate}),` `,gS(o.vat,o.currency)]}):null,(0,s.jsxs)(`div`,{className:`font-semibold text-[0.9375rem] text-ink`,children:[G(`run.total`),` `,gS(o.gross,o.currency)]})]})]})]})}function vS(e){return!!e?.closest(`input, textarea, [contenteditable='true']`)}function yS({field:e,value:t,runId:n,onChange:r,onBusy:i}){let a=(0,o.useRef)(null),c=(0,o.useRef)(null),l=(0,o.useRef)(null),u=(0,o.useRef)(null),[d,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)({}),[h,g]=(0,o.useState)(null),[_,v]=(0,o.useState)(!1),[y,b]=(0,o.useState)(!1),[x,S]=(0,o.useState)(null),C=(0,o.useRef)(null),w=e=>{C.current=e,S(e)},T=e.kind===`image`,E=!!e.multiple,ee=E?e.max??30:1,te=T||!!e.camera||!!e.video,ne=!T&&!!e.video,D=Array.isArray(t)?t:typeof t==`string`&&t?[t]:[],re=(0,o.useRef)(D);re.current=D;let ie=D.length<ee,ae=async e=>{let t=(T?e.filter(e=>e.type.startsWith(`image/`)):e).sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0}));if(!t.length)return;let a=ee-(E?re.current.length:0);f(!0),i?.(!0),g(t.length>a&&E?G(`run.maxFiles`,{n:ee}):null);try{for(let e of t.slice(0,Math.max(0,a))){let t=await Xb(e),i=await _b.upload(`${Y(n)}/uploads`,t);m(e=>({...e,[i.id]:{name:i.name,mime:i.mime}}));let a=E?[...re.current,i.id]:i.id;re.current=E?a:[i.id],r(a)}}catch(e){g(e.message)}finally{f(!1),i?.(!1)}},oe=(0,o.useRef)(ae);oe.current=ae;let se=e=>{let t=D.filter(t=>t!==e);r(E?t:void 0)},ce=(e,t)=>{let n=re.current.indexOf(e),i=Math.min(re.current.length-1,Math.max(0,t));if(n<0||n===i)return;let a=re.current.filter(t=>t!==e);a.splice(i,0,e),re.current=a,r(a)},le=E&&D.length>1;(0,o.useEffect)(()=>{if(!ie)return;let e=e=>{let t=Array.from(e.clipboardData?.files??[]),n=a.current;if(!t.length||!n||vS(document.activeElement))return;let r=document.querySelectorAll(`[data-upload-field]`);(n.matches(`:hover`)||n.contains(document.activeElement)||r.length===1)&&(e.preventDefault(),oe.current(t))};return document.addEventListener(`paste`,e),()=>document.removeEventListener(`paste`,e)},[ie]);let ue=q(`flex flex-col items-center justify-center gap-2 rounded-xl border border-input border-dashed bg-card px-3 text-[0.875rem] text-ink-3 transition hover:border-ember hover:text-ink`,D.length?`py-4`:`py-8`);return(0,s.jsxs)(`div`,{ref:a,"data-upload-field":``,onDragOver:e=>{ie&&(e.preventDefault(),b(!0))},onDragLeave:()=>b(!1),onDrop:e=>{b(!1),ie&&(e.preventDefault(),ae(Array.from(e.dataTransfer.files)))},children:[D.length?(0,s.jsx)(`div`,{className:`mb-2 flex flex-col gap-2`,children:D.map((e,t)=>{let r=p[e],i=r?.mime??(T?`image/`:``);return(0,s.jsxs)(`div`,{"data-file-id":e,className:q(`flex items-center gap-3 rounded-xl bg-card p-2 ring-1 ring-input transition-shadow`,x===e&&`relative z-10 shadow-elevated ring-2 ring-ember`),children:[le?(0,s.jsxs)(`button`,{type:`button`,"aria-label":G(`run.moveFile`,{n:t+1}),title:G(`run.moveFileHint`),className:q(`-mr-1 flex h-14 w-9 shrink-0 touch-none flex-col items-center justify-center gap-0.5 rounded-lg text-ink-3 hover:bg-paper-2 hover:text-ink`,x===e?`cursor-grabbing`:`cursor-grab`),onPointerDown:t=>{try{t.currentTarget.setPointerCapture(t.pointerId)}catch{}w(e)},onPointerMove:t=>{if(C.current!==e)return;let n=document.elementFromPoint(t.clientX,t.clientY)?.closest(`[data-file-id]`),r=n?.getAttribute(`data-file-id`);r&&r!==e&&a.current?.contains(n??null)&&ce(e,re.current.indexOf(r))},onPointerUp:()=>w(null),onPointerCancel:()=>w(null),onKeyDown:n=>{(n.key===`ArrowUp`||n.key===`ArrowDown`)&&(n.preventDefault(),ce(e,t+(n.key===`ArrowUp`?-1:1)))},children:[(0,s.jsx)(`span`,{className:`font-medium text-[0.75rem] tabular-nums`,children:t+1}),(0,s.jsx)(ha,{className:`size-4`})]}):null,i.startsWith(`image/`)?(0,s.jsx)(`img`,{src:vb(`${Y(n)}/assets/${e}`),alt:``,className:`size-14 rounded-lg object-cover`}):(0,s.jsx)(`div`,{className:`flex size-12 shrink-0 items-center justify-center rounded-lg bg-paper-2`,children:i.startsWith(`video/`)?(0,s.jsx)(sa,{className:`size-5 text-ink-3`}):(0,s.jsx)(za,{className:`size-5 text-ink-3`})}),(0,s.jsx)(`div`,{className:`min-w-0 flex-1 truncate text-[0.875rem]`,children:r?.name??`✓`}),(0,s.jsx)(Jv,{label:G(`run.removeFile`),onClick:()=>se(e),children:(0,s.jsx)(Eo,{className:`size-4`})})]},e)})}):null,ie?(0,s.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,s.jsxs)(`button`,{type:`button`,onClick:()=>c.current?.click(),className:q(ue,`min-w-[9rem] flex-1 px-4`,y&&`border-ember text-ink`),children:[T?(0,s.jsx)(_a,{className:`size-6`}):(0,s.jsx)(za,{className:`size-6`}),d?G(`run.uploading`):D.length?G(`run.uploadMore`):G(jb?`run.uploadTouch`:`run.upload`)]}),te?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>Mb?v(!0):l.current?.click(),className:q(ue,`w-28`),children:[(0,s.jsx)(ji,{className:`size-6`}),G(`run.camera`)]}):null,ne&&!(Mb&&sx)?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>u.current?.click(),className:q(ue,`w-28`),children:[(0,s.jsx)(wo,{className:`size-6`}),G(`camera.video`)]}):null]}):null,(0,s.jsx)(`input`,{ref:c,type:`file`,hidden:!0,multiple:E,accept:T?`image/*`:void 0,onChange:e=>{ae(Array.from(e.target.files??[])),e.target.value=``}}),(0,s.jsx)(`input`,{ref:l,type:`file`,hidden:!0,accept:`image/*`,capture:`environment`,onChange:e=>{ae(Array.from(e.target.files??[])),e.target.value=``}}),ne?(0,s.jsx)(`input`,{ref:u,type:`file`,hidden:!0,accept:`video/*`,capture:`environment`,onChange:e=>{ae(Array.from(e.target.files??[])),e.target.value=``}}):null,(0,s.jsx)(cx,{open:_,multiple:E,video:ne,onClose:()=>v(!1),onCapture:e=>ae([e]),onNative:()=>l.current?.click()}),E&&(e.min||e.max)?(0,s.jsx)(`div`,{className:`mt-2 text-[0.8125rem] text-ink-3 tabular-nums`,children:e.min&&D.length<e.min?G(`run.filesMin`,{n:D.length,min:e.min}):e.max?G(`run.filesOf`,{n:D.length,max:e.max}):null}):null,h?(0,s.jsx)(`div`,{className:`mt-2 text-[0.8125rem] text-rose`,children:h}):null]})}function bS(e){let t=`${e.id} ${e.label}`.toLowerCase();return/telefon|phone|handy|mobil(?!it)|\btel\b|rückruf/.test(t)?{type:`tel`,inputMode:`tel`,autoComplete:`tel`}:/\bplz\b|postleitzahl|postal|zip/.test(t)?{inputMode:`numeric`,autoComplete:`postal-code`}:/iban/.test(t)?{autoCapitalize:`characters`,autoCorrect:`off`,spellCheck:!1}:/vorname|first.?name/.test(t)?{autoComplete:`given-name`,autoCapitalize:`words`}:/nachname|last.?name|surname/.test(t)?{autoComplete:`family-name`,autoCapitalize:`words`}:/firma|unternehmen|company|organi[sz]ation/.test(t)?{autoComplete:`organization`,autoCapitalize:`words`}:/straße|strasse|street|anschrift|adresse|address/.test(t)?{autoComplete:`street-address`,autoCapitalize:`words`}:/\b(ort|stadt|city|town)\b/.test(t)?{autoComplete:`address-level2`,autoCapitalize:`words`}:/\bname\b|ansprechp/.test(t)?{autoComplete:`name`,autoCapitalize:`words`}:{autoCapitalize:`sentences`}}function xS({field:e,value:t,onChange:n}){let[r,i]=(0,o.useState)(!1);return(0,s.jsxs)(`div`,{className:`flex gap-2`,children:[(0,s.jsx)(Zv,{value:t,placeholder:e.placeholder,autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,onChange:e=>n(e.target.value)}),(0,s.jsxs)(`button`,{type:`button`,onClick:()=>i(!0),className:`inline-flex h-11 shrink-0 items-center gap-2 rounded-lg border border-input bg-card px-3.5 font-medium text-[0.875rem] text-ink-2 transition hover:border-ember hover:text-ink`,children:[(0,s.jsx)(to,{className:`size-4`}),` `,G(`scan.button`)]}),(0,s.jsx)(Wx,{open:r,onClose:()=>i(!1),onResult:n})]})}var SS=4;function CS(e){let t=new Map,n=e.map(e=>({value:e,slot:Z_(e)})).filter(e=>e.slot).sort((e,t)=>Date.parse(e.value)-Date.parse(t.value));for(let{value:e,slot:r}of n){if(!r)continue;let n=t.get(r.day)??{label:Q_(e,mv),times:[]};n.times.push({value:e,time:r.time}),t.set(r.day,n)}return[...t.values()]}function wS({name:e,label:t,options:n,value:r,onChange:i,disabled:a}){let c=CS(n),l=c.findIndex(e=>e.times.some(e=>e.value===r)),[u,d]=(0,o.useState)(l>=SS);if(!c.length)return(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:G(`slot.none`)});let f=u?c:c.slice(0,SS);return(0,s.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,s.jsxs)(`fieldset`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,s.jsx)(`legend`,{className:`sr-only`,children:t}),f.map(t=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`div`,{className:`mb-2 font-medium text-[0.75rem] text-ink-3`,children:t.label}),(0,s.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.times.map(n=>(0,s.jsxs)(`label`,{className:`relative`,children:[(0,s.jsx)(`input`,{type:`radio`,name:`slot-${e}`,value:n.value,checked:n.value===r,disabled:a.has(n.value),"aria-label":`${t.label}, ${n.time}`,onChange:()=>i(n.value),className:`peer sr-only`}),(0,s.jsx)(`span`,{className:q(`inline-flex h-10 cursor-pointer items-center rounded-full border px-4 text-sm tabular-nums transition coarse:h-11`,`border-input bg-card text-ink-2 hover:border-ink-4 hover:text-ink`,`peer-checked:border-ember peer-checked:bg-ember-tint peer-checked:text-ink`,`peer-disabled:pointer-events-none peer-disabled:line-through peer-disabled:opacity-60`,`peer-focus-visible:outline-[1.5px] peer-focus-visible:outline-offset-2 peer-focus-visible:outline-(--focus-line) peer-focus-visible:outline-solid`),children:n.time})]},n.value))})]},t.label))]}),c.length>f.length?(0,s.jsx)(`button`,{type:`button`,onClick:()=>d(!0),className:`self-start text-[0.8125rem] text-ink-3 underline-offset-4 transition hover:text-ink hover:underline coarse:min-h-11`,children:G(`slot.later`)}):null]})}function TS({cards:e,value:t,multi:n,runId:r,onChange:i,disabled:a}){let o=new Set(n?Array.isArray(t)?t.map(String):[]:t==null||t===``?[]:[String(t)]),c=e=>{i(n?o.has(e)?[...o].filter(t=>t!==e):[...o,e]:o.has(e)?``:e)},l=e=>/^(https?:|data:|\/)/.test(e)?e:vb(`/api/runs/${r}/assets/${e}`);return(0,s.jsx)(`div`,{className:`grid gap-3`,style:{gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr))`},children:e.map(e=>{let t=o.has(e.value),n=a.has(e.value);return(0,s.jsxs)(`div`,{className:q(`flex flex-col overflow-hidden rounded-xl bg-card ring-1 ring-border-soft transition`,t&&`ring-2 ring-ember`,n&&`opacity-50`),children:[e.image?(0,s.jsx)(`img`,{src:l(e.image),alt:``,className:`aspect-square w-full object-cover`}):null,(0,s.jsxs)(`div`,{className:`flex flex-1 flex-col gap-1 p-3`,children:[(0,s.jsx)(`div`,{className:`font-medium text-[0.9375rem] leading-snug`,children:e.label}),e.subtitle?(0,s.jsx)(`div`,{className:`text-[0.8125rem] text-ink-3 leading-snug`,children:e.subtitle}):null,e.meta?(0,s.jsx)(`div`,{className:`mt-auto pt-1 font-display font-semibold text-[0.9375rem] tabular-nums`,children:e.meta}):null,(0,s.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:[(0,s.jsx)(`button`,{type:`button`,"aria-pressed":t,disabled:n,onClick:()=>c(e.value),className:q(`inline-flex h-9 flex-1 items-center justify-center rounded-full px-3 text-[0.8125rem] transition coarse:h-11`,t?`bg-ember text-ember-on`:`bg-paper-2 text-ink-2 hover:text-ink`),children:G(t?`cards.picked`:`cards.pick`)}),e.link?(0,s.jsx)(`a`,{href:e.link,target:`_blank`,rel:`noopener`,className:`inline-flex h-9 items-center rounded-full px-3 text-[0.8125rem] text-ink-2 ring-1 ring-border-soft hover:text-ink coarse:h-11`,children:G(`cards.open`)}):null]})]})]},e.value)})})}function ES({field:e,value:t,values:n,runId:r,view:i,onChange:a,onBusy:o,error:c,closed:l}){let u=t==null?``:String(t),d=new Set(l?.values.map(String)),f;switch(e.kind){case`textarea`:f=(0,s.jsx)($v,{value:u,placeholder:e.placeholder,autoCapitalize:`sentences`,enterKeyHint:`enter`,onChange:e=>a(e.target.value)});break;case`number`:f=(0,s.jsx)(Zv,{inputMode:`decimal`,autoComplete:`off`,value:u,placeholder:e.placeholder,onChange:e=>a(e.target.value)});break;case`select`:{let n=e.options??[],o=i?.cards?.[e.id];f=o?.length?(0,s.jsx)(TS,{cards:o,value:t,multi:!1,runId:r,onChange:a,disabled:d}):n.length<=5&&n.every(e=>e.length<=28)?(0,s.jsx)(ty,{value:u,options:n,onChange:a,disabled:[...d],label:Ev}):(0,s.jsx)(ey,{value:u,placeholder:`—`,onChange:a,options:n.map(e=>({value:e,label:Ev(e),disabled:d.has(e)}))});break}case`slot`:f=(0,s.jsx)(wS,{name:e.id,label:e.label,options:e.options??[],value:u,onChange:a,disabled:d});break;case`multiselect`:{let n=i?.cards?.[e.id];f=n?.length?(0,s.jsx)(TS,{cards:n,value:t,multi:!0,runId:r,onChange:a,disabled:d}):(0,s.jsx)(ty,{multi:!0,value:Array.isArray(t)?t:[],options:e.options??[],onChange:a,label:Ev});break}case`date`:f=(0,s.jsx)(Zv,{type:`date`,value:u,onChange:e=>a(e.target.value),className:`w-full sm:w-56`});break;case`email`:f=(0,s.jsx)(Zv,{type:`email`,inputMode:`email`,autoComplete:`email`,autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,value:u,placeholder:e.placeholder,onChange:e=>a(e.target.value)});break;case`url`:f=(0,s.jsx)(Zv,{type:`url`,inputMode:`url`,autoComplete:`url`,autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,value:u,placeholder:e.placeholder??`https://`,onChange:e=>a(e.target.value)});break;case`toggle`:f=(0,s.jsx)(iy,{checked:t===!0,onChange:a,label:e.label,disabled:d.has(String(t!==!0))});break;case`color`:f=(0,s.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,s.jsx)(Qv,{value:u||`#e0531b`,onChange:e=>a(e.target.value)}),(0,s.jsx)(Zv,{value:u,placeholder:`#e0531b`,autoCapitalize:`off`,autoCorrect:`off`,spellCheck:!1,onChange:e=>a(e.target.value),className:`w-36`})]});break;case`image`:case`file`:f=(0,s.jsx)(yS,{field:e,value:t,runId:r,onChange:a,onBusy:o});break;case`items`:f=(0,s.jsx)(_S,{field:e,value:t,values:n,onChange:a});break;case`connection`:f=(0,s.jsx)($x,{runId:r,connection:i?.connections.find(t=>t.id===e.connection)});break;case`list`:{let t=i?.lists.find(t=>t.def.id===e.list);f=t?(0,s.jsx)(rS,{runId:r,list:t,editable:!0}):null;break}case`location`:f=(0,s.jsx)(Bx,{value:t,runId:r,placeholder:e.placeholder,onChange:a,onBusy:o});break;case`audio`:f=l?null:(0,s.jsx)(hS,{value:t,runId:r,onChange:a,onBusy:o});break;case`signature`:f=(0,s.jsx)(Zx,{label:e.label,value:t,runId:r,onChange:a});break;default:f=e.scan?(0,s.jsx)(xS,{field:e,value:u,onChange:a}):(0,s.jsx)(Zv,{...bS(e),value:u,placeholder:e.placeholder,onChange:e=>a(e.target.value)})}return(0,s.jsxs)(`div`,{children:[e.kind===`toggle`?(0,s.jsxs)(`div`,{className:`flex items-start justify-between gap-6`,children:[(0,s.jsx)(ay,{hint:e.help,children:e.label}),f]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ay,{hint:e.help,required:e.required,children:e.label}),f]}),l?(0,s.jsx)(`div`,{className:`mt-1.5 text-[0.8125rem] text-ink-3`,children:G(`run.closed`,{list:l.classes.map(e=>G(`run.cls.${DS(e)}`)).join(`, `)})}):null,c?(0,s.jsx)(`div`,{className:`mt-1.5 text-[0.8125rem] text-rose`,children:c}):null]})}function DS(e){return e in OS?OS[e]:e===`account`?`account`:`text`}var OS={classifier:`text`,standard:`text`,high:`text`,highest:`text`,image:`image`,video:`video`,speech:`speech`,audio:`audio`};function kS(e,t){this.v=e,this.k=t}function AS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jS(e){if(Array.isArray(e))return e}function MS(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function NS(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
59
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PS(e,t){return jS(e)||MS(e,t)||FS(e,t)||NS()}function FS(e,t){if(e){if(typeof e==`string`)return AS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AS(e,t):void 0}}function IS(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof kS;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}IS.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},IS.prototype.next=function(e){return this._invoke(`next`,e)},IS.prototype.throw=function(e){return this._invoke(`throw`,e)},IS.prototype.return=function(e){return this._invoke(`return`,e)};var LS=Object.entries,RS=Object.setPrototypeOf,zS=Object.isFrozen,BS=Object.getPrototypeOf,VS=Object.getOwnPropertyDescriptor,HS=Object.freeze,US=Object.seal,WS=Object.create,GS=typeof Reflect<`u`&&Reflect,KS=GS.apply,qS=GS.construct;HS||=function(e){return e},US||=function(e){return e},KS||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},qS||=function(e){return new e(...[...arguments].slice(1))};var JS=mC(Array.prototype.forEach);Array.prototype.indexOf;var YS=mC(Array.prototype.lastIndexOf),XS=mC(Array.prototype.pop),ZS=mC(Array.prototype.push);Array.prototype.slice;var QS=mC(Array.prototype.splice),$S=Array.isArray,eC=mC(String.prototype.toLowerCase),tC=mC(String.prototype.toString),nC=mC(String.prototype.match),rC=mC(String.prototype.replace),iC=mC(String.prototype.indexOf),aC=mC(String.prototype.trim),oC=mC(Number.prototype.toString),sC=mC(Boolean.prototype.toString),cC=typeof BigInt>`u`?null:mC(BigInt.prototype.toString),lC=typeof Symbol>`u`?null:mC(Symbol.prototype.toString),uC=mC(Object.prototype.hasOwnProperty),dC=mC(Object.prototype.toString),fC=mC(RegExp.prototype.test),pC=hC(TypeError);function mC(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return KS(e,t,n)}}function hC(e){return function(){return qS(e,[...arguments])}}function X(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eC;if(RS&&RS(e,null),!$S(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(zS(t)||(t[r]=e),i=e)}e[i]=!0}return e}function gC(e){for(let t=0;t<e.length;t++)uC(e,t)||(e[t]=null);return e}function _C(e){let t=WS(null);for(let r of LS(e)){var n=PS(r,2);let i=n[0],a=n[1];uC(e,i)&&(t[i]=$S(a)?gC(a):a&&typeof a==`object`&&a.constructor===Object?_C(a):a)}return t}function vC(e){switch(typeof e){case`string`:return e;case`number`:return oC(e);case`boolean`:return sC(e);case`bigint`:return cC?cC(e):`0`;case`symbol`:return lC?lC(e):`Symbol()`;case`undefined`:return dC(e);case`function`:case`object`:{if(e===null)return dC(e);let t=e,n=yC(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:dC(e)}return dC(e)}default:return dC(e)}}function yC(e,t){for(;e!==null;){let n=VS(e,t);if(n){if(n.get)return mC(n.get);if(typeof n.value==`function`)return mC(n.value)}e=BS(e)}function n(){return null}return n}function bC(e){try{return fC(e,``),!0}catch{return!1}}var xC=HS(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),SC=HS(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),CC=HS([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),wC=HS([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),TC=HS(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),EC=HS([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),DC=HS([`#text`]),OC=HS(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),kC=HS(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),AC=HS(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),jC=HS([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),MC=US(/{{[\w\W]*|^[\w\W]*}}/g),NC=US(/<%[\w\W]*|^[\w\W]*%>/g),PC=US(/\${[\w\W]*/g),FC=US(/^data-[\-\w.\u00B7-\uFFFF]+$/),IC=US(/^aria-[\-\w]+$/),LC=US(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),RC=US(/^(?:\w+script|data):/i),zC=US(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),BC=US(/^html$/i),VC=US(/^[a-z][.\w]*(-[.\w]+)+$/i),HC=US(/<[/\w!]/g),UC=US(/<[/\w]/g),WC=US(/<\/no(script|embed|frames)/i),GC=US(/\/>/i),KC={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qC=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],JC=HS(X({},qC)),YC=function(){let e={};return JS(qC,t=>{e[t]=US(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),HS(e)}(),XC=function(){return typeof window>`u`?null:window},ZC=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},QC=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},$C=function(e,t,n,r){return uC(e,t)&&$S(e[t])?X(r.base?_C(r.base):{},e[t],r.transform):n},ew=function(e,t,n){let r=uC(e,t)?e[t]:void 0;return r&&typeof r==`object`?_C(r):n()};function tw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),t=e=>tw(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==KC.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=yC(d,`cloneNode`),p=yC(d,`remove`),m=yC(d,`removeAttributeNode`),h=yC(d,`nextSibling`),g=yC(d,`childNodes`),_=yC(d,`parentNode`),v=yC(d,`shadowRoot`),y=yC(d,`attributes`),b=o&&o.prototype?yC(o.prototype,`nodeType`):null,x=o&&o.prototype?yC(o.prototype,`nodeName`):null,S=o&&o.prototype?yC(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,ee,te=!1,ne=0,D=function(){if(ne>0)throw pC(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},re=function(e){D(),ne++;try{return T.createHTML(e)}finally{ne--}},ie=function(e){D(),ne++;try{return T.createScriptURL(e)}finally{ne--}},ae=function(){return te||=(ee=ZC(u,i),!0),ee},oe=n,se=oe.implementation,ce=oe.createNodeIterator,le=oe.createDocumentFragment,ue=oe.getElementsByTagName,de=r.importNode,O=QC();t.isSupported=typeof LS==`function`&&typeof _==`function`&&se&&se.createHTMLDocument!==void 0;let fe=MC,pe=NC,me=PC,he=FC,ge=IC,_e=RC,ve=zC,ye=VC,be=LC,k=null,xe=X({},[...xC,...SC,...CC,...TC,...DC]),A=null,Se=X({},[...OC,...kC,...AC,...jC]),Ce=Object.seal(WS(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,Te=null,Ee=Object.seal(WS(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),De=!0,Oe=!0,ke=!1,Ae=!0,je=!1,Me=!0,Ne=!1,Pe=!1,Fe=null,Ie=null,Le=!1,Re=!1,ze=!1,Be=!1,Ve=!0,He=!1,Ue=`user-content-`,We=!0,Ge=!1,Ke={},qe=null,Je=X({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ye=null,Xe=X({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ze=null,Qe=X({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),$e=`http://www.w3.org/1998/Math/MathML`,et=`http://www.w3.org/2000/svg`,tt=`http://www.w3.org/1999/xhtml`,nt=tt,rt=!1,j=null,it=X({},[$e,et,tt],tC),at=HS([`mi`,`mo`,`mn`,`ms`,`mtext`]),ot=X({},at),st=HS([`annotation-xml`]),ct=X({},st),lt=X({},[`title`,`style`,`font`,`a`,`script`]),ut=null,dt=[`application/xhtml+xml`,`text/html`],ft=null,pt=null,mt=n.createElement(`form`),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pt&&pt===e)return;(!e||typeof e!=`object`)&&(e={}),e=_C(e),ut=dt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ft=ut===`application/xhtml+xml`?tC:eC,k=$C(e,`ALLOWED_TAGS`,xe,{transform:ft}),A=$C(e,`ALLOWED_ATTR`,Se,{transform:ft}),j=$C(e,`ALLOWED_NAMESPACES`,it,{transform:tC}),Ze=$C(e,`ADD_URI_SAFE_ATTR`,Qe,{transform:ft,base:Qe}),Ye=$C(e,`ADD_DATA_URI_TAGS`,Xe,{transform:ft,base:Xe}),qe=$C(e,`FORBID_CONTENTS`,Je,{transform:ft}),we=$C(e,`FORBID_TAGS`,_C({}),{transform:ft}),Te=$C(e,`FORBID_ATTR`,_C({}),{transform:ft}),Ke=uC(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?_C(e.USE_PROFILES):e.USE_PROFILES:!1,De=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=e.SAFE_FOR_TEMPLATES||!1,Me=e.SAFE_FOR_XML!==!1,Ne=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ve=e.SANITIZE_DOM!==!1,He=e.SANITIZE_NAMED_PROPS||!1,We=e.KEEP_CONTENT!==!1,Ge=e.IN_PLACE||!1,be=bC(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:LC,nt=typeof e.NAMESPACE==`string`?e.NAMESPACE:tt,ot=ew(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>X({},at)),ct=ew(e,`HTML_INTEGRATION_POINTS`,()=>X({},st));let t=ew(e,`CUSTOM_ELEMENT_HANDLING`,()=>WS(null));if(Ce=WS(null),uC(t,`tagNameCheck`)&&ht(t.tagNameCheck)&&(Ce.tagNameCheck=t.tagNameCheck),uC(t,`attributeNameCheck`)&&ht(t.attributeNameCheck)&&(Ce.attributeNameCheck=t.attributeNameCheck),uC(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Ce.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),US(Ce),je&&(Oe=!1),ze&&(Re=!0),Ke&&(k=X({},DC),A=WS(null),Ke.html===!0&&(X(k,xC),X(A,OC)),Ke.svg===!0&&(X(k,SC),X(A,kC),X(A,jC)),Ke.svgFilters===!0&&(X(k,CC),X(A,kC),X(A,jC)),Ke.mathMl===!0&&(X(k,TC),X(A,AC),X(A,jC))),Ee.tagCheck=null,Ee.attributeCheck=null,uC(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ee.tagCheck=e.ADD_TAGS:$S(e.ADD_TAGS)&&(k===xe&&(k=_C(k)),X(k,e.ADD_TAGS,ft))),uC(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ee.attributeCheck=e.ADD_ATTR:$S(e.ADD_ATTR)&&(A===Se&&(A=_C(A)),X(A,e.ADD_ATTR,ft))),uC(e,`ADD_FORBID_CONTENTS`)&&$S(e.ADD_FORBID_CONTENTS)&&(qe===Je&&(qe=_C(qe)),X(qe,e.ADD_FORBID_CONTENTS,ft)),We&&(k[`#text`]=!0),Ne&&X(k,[`html`,`head`,`body`]),k.table&&(X(k,[`tbody`]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw pC(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw pC(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=re(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=ae()),T&&typeof E==`string`&&(E=re(``)));HS&&HS(e),pt=e},_t=X({},[...SC,...CC,...wC]),vt=X({},[...TC,...EC]),yt=function(e,t,n){return t.namespaceURI===tt?e===`svg`:t.namespaceURI===$e?e===`svg`&&(n===`annotation-xml`||ot[n]):!!_t[e]},bt=function(e,t,n){return t.namespaceURI===tt?e===`math`:t.namespaceURI===et?e===`math`&&ct[n]:!!vt[e]},xt=function(e,t,n){return t.namespaceURI===et&&!ct[n]||t.namespaceURI===$e&&!ot[n]?!1:!vt[e]&&(lt[e]||!_t[e])},St=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:nt,tagName:`template`});let n=eC(e.tagName),r=eC(t.tagName);return j[e.namespaceURI]?e.namespaceURI===et?yt(n,t,r):e.namespaceURI===$e?bt(n,t,r):e.namespaceURI===tt?xt(n,t,r):!!(ut===`application/xhtml+xml`&&j[e.namespaceURI]):!1},Ct=function(e){ZS(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw pC(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},wt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Tt=function(e){Ot(e);let t=g(e);if(t){let e=[];JS(t,t=>{ZS(e,t)}),JS(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&wt(e,r,i)}},Et=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ZS(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Re||ze)try{Ct(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Dt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||A[ft(i)]||wt(e,r,i)}},Ot=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===KC.element&&Dt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},kt=function(e,t){return Me?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},At=function(e){if(!Me)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===KC.processingInstruction||n===KC.comment&&fC(UC,e.data)){try{p(e)}catch{}continue}if(n===KC.element){let t=e,n=ft(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&kt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},jt=function(e){let t=null,r=null;if(Le)e=`<remove></remove>`+e;else{let t=nC(e,/^[\r\n\t ]+/);r=t&&t[0]}ut===`application/xhtml+xml`&&nt===tt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?re(e):e;if(nt===tt)try{t=new l().parseFromString(i,ut)}catch{}if(!t||!t.documentElement){t=se.createDocument(nt,`template`,null);try{t.documentElement.innerHTML=rt?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),nt===tt?ue.call(t,Ne?`html`:`body`)[0]:Ne?t.documentElement:a},Mt=function(e){let t=S?S(e):e.ownerDocument;return ce.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Nt=function(e){return e=rC(e,fe,` `),e=rC(e,pe,` `),e=rC(e,me,` `),e},Pt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=ce.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Nt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&JS(i,e=>{It(e.content)&&Pt(e.content)})},Ft=function(e){let t=x?x(e):null;return typeof t!=`string`||ft(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},It=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===KC.documentFragment}catch{return!1}},Lt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Rt(e,n,r){e.length!==0&&JS(e,e=>{e.call(t,n,r,pt)})}let zt=function(e,t){return!!(Me&&e.hasChildNodes()&&!Lt(e.firstElementChild)&&fC(HC,e.textContent)&&fC(HC,e.innerHTML)||Me&&e.namespaceURI===tt&&JC[t]&&(Lt(e.firstElementChild)||typeof e.textContent==`string`&&fC(YC[t],e.textContent))||e.nodeType===KC.processingInstruction||Me&&e.nodeType===KC.comment&&fC(UC,e.data))},Bt=function(e,t){return e instanceof RegExp?fC(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Vt=function(e,t,n){if(!we[t]&&qt(t)&&Bt(Ce.tagNameCheck,t))return!1;if(We&&!qe[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Ct(e),!0},Ht=function(e,t,n,r){return e.length===0?t:t===n||t===r?_C(t):t},Ut=function(e,t){return e===t||_(e)!==null?!1:(Ge&&Ot(e),!0)},Wt=function(e,n){if(Rt(O.beforeSanitizeElements,e,null),Ut(e,n))return!0;if(Ft(e))return Ct(e),!0;let r=ft(w(e));if(k=Ht(O.uponSanitizeElement,k,xe,Fe),Rt(O.uponSanitizeElement,e,{tagName:r,allowedTags:k}),Ut(e,n))return!0;if(zt(e,r))return Ct(e),!0;if(we[r]||!(Ee.tagCheck instanceof Function&&Ee.tagCheck(r))&&!k[r]){let t=Vt(e,r,n);return t===!1&&(Rt(O.afterSanitizeElements,e,null),Ut(e,n))?!0:t}if(C(e)===KC.element&&!St(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&fC(WC,e.innerHTML))return Ct(e),!0;if(je&&e.nodeType===KC.text){let n=Nt(e.textContent);e.textContent!==n&&(ZS(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Rt(O.afterSanitizeElements,e,null),Ut(e,n)},Gt=function(e,t,r){if(Te[t]||kt(t,e)||Ve&&(t===`id`||t===`name`)&&(r in n||r in mt))return!1;let i=A[t]||Ee.attributeCheck instanceof Function&&Ee.attributeCheck(t,e);return Oe&&fC(he,t)||De&&fC(ge,t)?!0:i?Ze[t]||fC(be,rC(r,ve,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&iC(r,`data:`)===0&&Ye[e]||ke&&!fC(_e,rC(r,ve,``))?!0:!r:qt(e)&&Bt(Ce.tagNameCheck,e)&&Bt(Ce.attributeNameCheck,t,e)||t===`is`&&Ce.allowCustomizedBuiltInElements&&Bt(Ce.tagNameCheck,r)},Kt=X({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),qt=function(e){return!Kt[eC(e)]&&fC(ye,e)},Jt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return re(r);case`TrustedScriptURL`:return ie(r)}return r},Yt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Ft(e)||(Ct(e),!1)}catch{return Et(t,e),!1}},Xt=function(e,n){if(Rt(O.beforeSanitizeAttributes,e,null),Ut(e,n))return;let r=e.attributes;if(!r||Ft(e))return;A=Ht(O.uponSanitizeAttribute,A,Se,Ie);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},a=r.length,o=ft(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=ft(s),d=l,f=s===`value`?d:aC(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Rt(O.uponSanitizeAttribute,e,i),f=i.attrValue,He&&(u===`id`||u===`name`)&&iC(f,Ue)!==0&&(Et(s,e,n),f=Ue+f,p=!0),Me&&fC(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Et(s,e,n);continue}if(u===`attributename`&&nC(f,`href`)){Et(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){Et(s,e,n);continue}if(!Ae&&fC(GC,f)){Et(s,e,n);continue}if(je&&(f=Nt(f)),!Gt(o,u,f)){Et(s,e,n);continue}f=Jt(o,u,c,f),f!==d&&Yt(e,s,c,f)&&p&&XS(t.removed)}}Rt(O.afterSanitizeAttributes,e,null),Ut(e,n)},Zt=function(e){let t=null,n=Mt(e);for(Rt(O.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Rt(O.uponSanitizeShadowNode,t,null),Wt(t,e),Xt(t,e),It(t.content)&&Zt(t.content),C(t)===KC.element){let e=v(t);It(e)&&(Qt(e),Zt(e))}Rt(O.afterSanitizeShadowDOM,e,null)},Qt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Zt(e.shadow);continue}let n=e.node,r=C(n)===KC.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&ft(e)===`template`){let e=n.content;It(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);It(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(rt=!e,rt&&(e=`<!-->`),typeof e!=`string`&&!Lt(e)&&(e=vC(e),typeof e!=`string`))throw pC(`dirty is not a string, aborting`);if(!t.isSupported)return e;Pe?(k=Fe,A=Ie):gt(n),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(k=_C(k)),O.uponSanitizeAttribute.length>0&&(A=_C(A)),t.removed=[];let c=Ge&&typeof e!=`string`&&Lt(e);if(c){At(e);let t=w(e);if(typeof t==`string`){let n=ft(t);if(!k[n]||we[n])throw Tt(e),pC(`root node is forbidden and cannot be sanitized in-place`)}if(Ft(e))throw Tt(e),pC(`root node is clobbered and cannot be sanitized in-place`);try{Qt(e)}catch(t){throw Tt(e),t}}else if(Lt(e))i=jt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===KC.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Qt(i);else{if(!Re&&!je&&!Ne&&e.indexOf(`<`)===-1)return T&&Be?re(e):e;if(i=jt(e),!i)return Re?null:Be?E:``}i&&Le&&Ct(i.firstChild);let l=c?e:i;try{let e=Mt(l);for(;o=e.nextNode();)Wt(o,l),Xt(o,l),It(o.content)&&Zt(o.content)}catch(n){throw c&&(Tt(e),JS(t.removed,e=>{e.element&&Ot(e.element)})),n}if(c){let n=!1;if(JS(t.removed,t=>{t.element&&(t.element===e&&(n=!0),Ot(t.element))}),n)throw pC(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return je&&Pt(e),e}if(Re){if(je&&Pt(i),ze)for(s=le.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(A.shadowroot||A.shadowrootmode)&&(s=de.call(r,s,!0)),s}let u=Ne?i.outerHTML:i.innerHTML;return Ne&&k[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&fC(BC,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
60
|
-
`+u),je&&(u=Nt(u)),T&&Be?re(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gt(e),Pe=!0,Fe=k,Ie=A},t.clearConfig=function(){pt=null,Pe=!1,Fe=null,Ie=null,T=ee,E=``},t.isValidAttribute=function(e,t,n){pt||gt({});let r=ft(e),i=ft(t);return Gt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&uC(O,e)&&ZS(O[e],t)},t.removeHook=function(e,t){if(uC(O,e)){if(t!==void 0){let n=YS(O[e],t);return n===-1?void 0:QS(O[e],n,1)[0]}return XS(O[e])}},t.removeHooks=function(e){uC(O,e)&&(O[e]=[])},t.removeAllHooks=function(){O=QC()},t}var nw=tw();function rw(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var iw=rw();function aw(e){iw=e}var ow={exec:()=>null};function sw(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Z(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(lw.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var cw=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),lw={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:sw(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:sw(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:sw(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:sw(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:sw(e=>RegExp(`^ {0,${e}}(?:</?(?:${ww})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,`i`)),blockquoteBeginRegex:sw(e=>RegExp(`^ {0,${e}}>`))},uw=/^(?:[ \t]*(?:\n|$))+/,dw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pw=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hw=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,gw=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_w=Z(gw).replace(/bull/g,hw).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),vw=Z(gw).replace(/bull/g,hw).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yw=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,bw=/^[^\n]+/,xw=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Sw=Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,xw).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cw=Z(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,hw).getRegex(),ww=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Tw=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ew=Z(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Tw).replace(`tag`,ww).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dw=e=>Z(yw).replace(`hr`,pw).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,ww).getRegex(),Ow=Dw(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kw=Dw(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Aw={blockquote:Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,kw).getRegex(),code:dw,def:Sw,fences:fw,heading:mw,hr:pw,html:Ew,lheading:_w,list:Cw,newline:uw,paragraph:Ow,table:ow,text:bw},jw=Z(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,pw).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,ww).getRegex(),Mw={...Aw,lheading:vw,table:jw,paragraph:Z(yw).replace(`hr`,pw).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,jw).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,ww).getRegex()},Nw={...Aw,html:Z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Tw).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ow,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Z(yw).replace(`hr`,pw).replace(`heading`,` *#{1,6} *[^
|
|
61
|
-
]`).replace(`lheading`,_w).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Pw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Iw=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Lw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rw=/[\p{P}\p{S}]/u,zw=/[\s\p{P}\p{S}]/u,Bw=/[^\s\p{P}\p{S}]/u,Vw=Z(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,zw).getRegex(),Hw=/[\p{Pi}\p{Ps}"']/u,Uw=/(?!~)[\p{P}\p{S}]/u,Ww=/(?!~)[\s\p{P}\p{S}]/u,Gw=/(?:[^\s\p{P}\p{S}]|~)/u,Kw=Z(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,cw?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),qw=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Jw=Z(qw,`u`).replace(/punct/g,Rw).getRegex(),Yw=Z(qw,`u`).replace(/punct/g,Uw).getRegex(),Xw=Z(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,Hw).replace(/punct/g,Rw).getRegex(),Zw=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Qw=Z(Zw,`gu`).replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,zw).replace(/punct/g,Rw).getRegex(),$w=Z(Zw,`gu`).replace(/notPunctSpace/g,Gw).replace(/punctSpace/g,Ww).replace(/punct/g,Uw).getRegex(),eT=Z(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,zw).replace(/punct/g,Rw).getRegex(),tT=Z(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,zw).replace(/punct/g,Rw).getRegex(),nT=Z(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,zw).replace(/punct/g,Rw).getRegex(),rT=Z(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Rw).getRegex(),iT=Z(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,zw).replace(/punct/g,Rw).getRegex(),aT=Z(/\\(punct)/,`gu`).replace(/punct/g,Rw).getRegex(),oT=Z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sT=Z(Tw).replace(`(?:-->|$)`,`-->`).getRegex(),cT=Z(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,sT).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),lT=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,uT=Z(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,lT).getRegex(),dT=Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,uT).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),fT=Z(/^!?\[(label)\]\[(ref)\]/).replace(`label`,uT).replace(`ref`,xw).getRegex(),pT=Z(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,xw).getRegex(),mT=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,hT=Z(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,lT).getRegex(),gT=Z(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Z(/^!?\[(label)\]\[(ref)\]/).replace(`label`,hT).replace(`ref`,mT).getRegex()).replace(`nolink`,Z(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,mT).getRegex()).getRegex(),_T=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vT=Z(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),yT={_backpedal:ow,anyPunctuation:aT,autolink:oT,blockSkip:Kw,br:Iw,code:Fw,del:ow,delLDelim:ow,delRDelim:ow,emStrongLDelim:Jw,emStrongRDelimAst:Qw,emStrongRDelimUnd:tT,escape:Pw,link:dT,nolink:pT,punctuation:Vw,reflink:fT,reflinkSearch:gT,tag:cT,text:Lw,url:ow},bT={...yT,emStrongLDelim:Xw,emStrongRDelimAst:eT,emStrongRDelimUnd:nT,link:Z(/^!?\[(label)\]\((.*?)\)/).replace(`label`,uT).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,uT).getRegex()},xT={...yT,emStrongRDelimAst:$w,emStrongLDelim:Yw,delLDelim:rT,delRDelim:iT,url:Z(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,vT).replace(`protocol`,_T).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Z(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,_T).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},ST={...xT,br:Z(Iw).replace(`{2,}`,`*`).getRegex(),text:Z(xT.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},CT={normal:Aw,gfm:Mw,pedantic:Nw},wT={normal:yT,gfm:xT,breaks:ST,pedantic:bT},TT={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},ET=e=>TT[e];function DT(e,t){if(t){if(lw.escapeTest.test(e))return e.replace(lw.escapeReplace,ET)}else if(lw.escapeTestNoEncode.test(e))return e.replace(lw.escapeReplaceNoEncode,ET);return e}function OT(e){return e.replace(lw.numericCharacterReference,(e,t,n)=>{let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:String.fromCodePoint(r)})}function kT(e){try{e=encodeURI(e).replace(lw.percentDecode,`%`)}catch{return null}return e}function AT(e,t){let n=e.replace(lw.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(lw.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(lw.slashPipe,`|`);return n}function jT(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function MT(e){let t=e.split(`
|
|
62
|
-
`),n=t.length-1;for(;n>=0&&lw.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
63
|
-
`)}function NT(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function PT(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function FT(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function IT(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function LT(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
64
|
-
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
|
|
65
|
-
`)}function RT(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var zT=class{options;rules;lexer;constructor(e){this.options=e||iw}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:MT(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=LT(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=jT(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:jT(t[0],`
|
|
66
|
-
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:jT(t[0],`
|
|
67
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=jT(t[0],`
|
|
68
|
-
`).split(`
|
|
69
|
-
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
70
|
-
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
71
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
72
|
-
${s}`:s,r=r?`${r}
|
|
73
|
-
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
|
|
74
|
-
`),o=t.raw+`
|
|
75
|
-
`+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
|
|
76
|
-
`).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
|
|
77
|
-
${d.join(`
|
|
78
|
-
`)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
|
|
79
|
-
`+e.join(`
|
|
80
|
-
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
81
|
-
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
|
|
82
|
-
`,1)[0],l=t[1].length,u=this.options.pedantic?FT(c,l):c.replace(this.rules.other.leadingSpaceTab,e=>FT(e,l)),d=e.split(`
|
|
83
|
-
`,1)[0],f=!u.trim(),p=0;if(this.options.pedantic?(p=2,s=u.trimStart()):f?p=l+1:(p=u.search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=u.slice(p),p+=l),f&&this.rules.other.blankLine.test(d)&&(r+=d+`
|
|
84
|
-
`,e=e.substring(d.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p),c=this.rules.other.blockquoteBeginRegex(p);for(;e;){let l=e.split(`
|
|
85
|
-
`,1)[0],m;if(d=l,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting,` `),m=d):m=d.replace(this.rules.other.leadingSpaceTab,e=>e.replace(this.rules.other.tabCharGlobal,` `)),i.test(d)||a.test(d)||o.test(d)||c.test(d)||t.test(d)||n.test(d))break;if(m.search(this.rules.other.nonSpaceChar)>=p||!d.trim())s+=`
|
|
86
|
-
`+m.slice(p);else{if(f||u.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(u)||a.test(u)||n.test(u))break;s+=`
|
|
87
|
-
`+d}f=!d.trim(),r+=l+`
|
|
88
|
-
`,e=e.substring(l.length+1),u=m.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=MT(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=NT(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:jT(t[0],`
|
|
89
|
-
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=AT(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
90
|
-
`):[],a={type:`table`,raw:jT(t[0],`
|
|
91
|
-
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(AT(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:jT(t[0],`
|
|
92
|
-
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
93
|
-
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&RT(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=jT(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=PT(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),IT(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&RT(e,n[1],r,this.rules))return;let i=t[NT((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return IT(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:OT(t[0]),escaped:e}}}},BT=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||iw,this.options.tokenizer=this.options.tokenizer||new zT,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:lw,block:CT.normal,inline:wT.normal};this.options.pedantic?(t.block=CT.pedantic,t.inline=wT.pedantic):this.options.gfm&&(t.block=CT.gfm,t.inline=this.options.breaks?wT.breaks:wT.gfm),this.tokenizer.rules=t}static get rules(){return{block:CT,inline:wT}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(lw.carriageReturn,`
|
|
94
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(lw.tabCharGlobal,` `).replace(lw.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|
95
|
-
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
96
|
-
`)?``:`
|
|
97
|
-
`)+i.raw,n.text+=`
|
|
98
|
-
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
99
|
-
`)?``:`
|
|
100
|
-
`)+i.raw,n.text+=`
|
|
101
|
-
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|
102
|
-
`)?``:`
|
|
103
|
-
`)+i.raw,r.text+=`
|
|
104
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
105
|
-
`)?``:`
|
|
106
|
-
`)+i.raw,n.text+=`
|
|
107
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,NT(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,NT(n.slice(r+1,-1))))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},VT=class{options;parser;constructor(e){this.options=e||iw}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(lw.notSpaceStart)?.[0],i=e?e.replace(lw.endingNewline,``)+`
|
|
108
|
-
`:``;return r?`<pre><code class="language-`+DT(r)+`">`+(n?i:DT(i,!0))+`</code></pre>
|
|
109
|
-
`:`<pre><code>`+(n?i:DT(i,!0))+`</code></pre>
|
|
110
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
111
|
-
${this.parser.parse(e)}</blockquote>
|
|
112
|
-
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
113
|
-
`}hr(e){return`<hr>
|
|
114
|
-
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
115
|
-
`+r+`</`+i+`>
|
|
116
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
117
|
-
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
118
|
-
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
119
|
-
<thead>
|
|
120
|
-
`+t+`</thead>
|
|
121
|
-
`+r+`</table>
|
|
122
|
-
`}tablerow({text:e}){return`<tr>
|
|
123
|
-
${e}</tr>
|
|
124
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
125
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${DT(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?DT(n,!0):this.parser.parseInline(r),o=kT(e);if(o===null)return a;e=DT(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+DT(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=kT(e);if(i===null)return DT(n);e=i;let a=`<img src="${DT(e)}" alt="${DT(n)}"`;return t&&(a+=` title="${DT(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:DT(e.text)}},HT=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},UT=class e{options;renderer;textRenderer;constructor(e){this.options=e||iw,this.options.renderer=this.options.renderer||new VT,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new HT}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},WT=class{options;block;constructor(e){this.options=e||iw}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?BT.lex:BT.lexInline}provideParser(e=this.block){return e?UT.parse:UT.parseInline}},GT=new class{defaults=rw();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=UT;Renderer=VT;TextRenderer=HT;Lexer=BT;Tokenizer=zT;Hooks=WT;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new VT(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new zT(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new WT;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=WT.passThroughHooks.has(n)?e=>{if(this.defaults.async&&WT.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return BT.lex(e,t??this.defaults)}parser(e,t){return UT.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?BT.lex:BT.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?UT.parse:UT.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?BT.lex:BT.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?UT.parse:UT.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
126
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+DT(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Q(e,t){return GT.parse(e,t)}Q.options=Q.setOptions=function(e){return GT.setOptions(e),Q.defaults=GT.defaults,aw(Q.defaults),Q},Q.getDefaults=rw,Q.defaults=iw;function KT(...e){return GT.use(...e),Q.defaults=GT.defaults,aw(Q.defaults),Q}Q.use=KT,Q.walkTokens=function(e,t){return GT.walkTokens(e,t)},Q.parseInline=GT.parseInline,Q.Parser=UT,Q.parser=UT.parse,Q.Renderer=VT,Q.TextRenderer=HT,Q.Lexer=BT,Q.lexer=BT.lex,Q.Tokenizer=zT,Q.Hooks=WT,Q.parse=Q,Q.options,Q.setOptions,Q.walkTokens,Q.parseInline,UT.parse,BT.lex;var qT=e=>e==null?``:typeof e==`object`?JSON.stringify(e):String(e),JT=`mb-1.5 font-medium text-[0.75rem] text-ink-3 uppercase tracking-[0.06em]`;function YT(e,t){if(e?.kind===`object`)return e;let n=[...new Set(t.flatMap(e=>Object.keys(e??{})))];return{kind:`object`,fields:Object.fromEntries(n.map(e=>{let n=t.map(t=>t?.[e]).filter(e=>e!=null),r=n.every(e=>typeof e==`number`)?`number`:n.every(e=>typeof e==`boolean`)?`yesno`:`text`,i=r===`text`&&n.some(e=>String(e).length>80);return[e,r===`text`?{kind:r,long:i}:{kind:r}]}))}}function XT(e){let t=Object.values(e.fields),n=t.filter(e=>e.kind===`number`).length;return n>=3&&n>t.length/2}function ZT(e,t,n){if(t==null||t===``)return``;switch(e.kind){case`number`:return`${typeof t==`number`?t.toLocaleString(mv):qT(t)}${e.unit?` ${e.unit}`:``}`;case`yesno`:return t?e.yes??G(`run.yes`):e.no??G(`run.no`);case`ref`:{let r=n[e.to],i=Array.isArray(r)?r.find(e=>e&&qT(e.id)===qT(t)):void 0;return qT(i?i.title??i.name??i.label??t:t)}default:return qT(t)}}function QT({items:e}){return(0,s.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.map((e,t)=>(0,s.jsx)(`span`,{className:`rounded-full bg-card px-2.5 py-0.5 text-[0.8125rem] text-ink-2 ring-1 ring-border-soft`,children:e},t))})}function $T({of:e,values:t,root:n}){let r=t.map(t=>ZT(e,t,n)).filter(Boolean);return r.every(e=>e.length<=32)?(0,s.jsx)(QT,{items:r}):(0,s.jsx)(`ul`,{className:`flex list-disc flex-col gap-1 pl-5 text-[0.9375rem]`,children:r.map((e,t)=>(0,s.jsx)(`li`,{className:`break-words`,children:e},t))})}function eE({shape:e,rows:t,root:n}){let r=Object.entries(e.fields);return(0,s.jsx)(`div`,{className:`overflow-x-auto rounded-lg ring-1 ring-border-soft`,children:(0,s.jsxs)(`table`,{className:`w-full text-[0.8125rem]`,children:[(0,s.jsx)(`thead`,{className:`bg-paper-2 text-ink-2`,children:(0,s.jsx)(`tr`,{children:r.map(([e,t])=>(0,s.jsx)(`th`,{className:q(`whitespace-nowrap px-3 py-2 text-left font-medium`,t.kind===`number`&&`text-right`),children:hg(e,t)},e))})}),(0,s.jsx)(`tbody`,{children:t.map((e,t)=>(0,s.jsx)(`tr`,{className:`border-border-soft border-t`,children:r.map(([t,r])=>(0,s.jsx)(`td`,{className:q(`px-3 py-2 tabular-nums`,r.kind===`number`&&`text-right`),children:ZT(r,e?.[t],n)},t))},t))})]})})}function tE({shape:e,rows:t,root:n}){let r=Object.entries(e.fields),i=r.find(([,e])=>e.kind===`text`&&e.long)?.[0]??mg(e),a=r.filter(([e,t])=>e!==i&&e!==`id`&&t.kind!==`list`),o=!!r.find(([,e])=>e.kind===`text`&&e.long);return(0,s.jsx)(o?`ol`:`ul`,{className:`flex flex-col gap-1.5 text-[0.875rem]`,children:t.map((e,t)=>{let r=[i?qT(e?.[i]):``,...a.map(([t,r])=>ZT(r,e?.[t],n))].filter(Boolean);return(0,s.jsxs)(`li`,{className:q(o&&`grid grid-cols-[1.25rem_1fr] gap-1.5`),children:[o?(0,s.jsx)(`span`,{className:`font-semibold text-ember tabular-nums`,children:t+1}):null,(0,s.jsxs)(`span`,{children:[r[0],r.length>1?(0,s.jsxs)(`span`,{className:`text-ink-3`,children:[` · `,r.slice(1).join(` · `)]}):null]})]},t)})})}function nE({fields:e,entry:t}){let n=e.flatMap(([e,n])=>{if(n.kind!==`yesno`||t[e]===void 0||t[e]===null)return[];let r=t[e]?n.yes??hg(e,n):n.no;return r?[{k:e,words:r,on:!!t[e]}]:[]});return n.length?(0,s.jsx)(`span`,{className:`flex shrink-0 flex-wrap justify-end gap-1`,children:n.map(e=>(0,s.jsx)(`span`,{className:q(`rounded-full px-2 py-0.5 text-[0.75rem]`,e.on?`bg-second-tint text-second`:`bg-ember-tint text-ember-strong`),children:e.words},e.k))}):null}function rE({shape:e,rows:t,root:n}){let r=Object.entries(e.fields).filter(([e])=>e!==`id`),i=mg(e),a=r.filter(([,e])=>e.kind===`yesno`),o=r.filter(([e,t])=>e!==i&&t.kind!==`yesno`);return(0,s.jsx)(`div`,{className:`divide-y divide-border-soft overflow-hidden rounded-xl bg-card ring-1 ring-border-soft`,children:t.map((e,t)=>(0,s.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-2.5`,children:[(0,s.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,s.jsx)(`div`,{className:`text-[0.9375rem]`,children:i?qT(e?.[i]):``}),(0,s.jsx)(`div`,{className:`text-[0.8125rem] text-ink-3`,children:o.map(([t,r])=>ZT(r,e?.[t],n)).filter(Boolean).join(` · `)})]}),(0,s.jsx)(nE,{fields:a,entry:e??{}})]},t))})}function iE({shape:e,entry:t,root:n}){let r=Object.entries(e.fields).filter(([e])=>e!==`id`),i=mg(e),a=r.find(([,e])=>e.kind===`text`&&e.long),o=r.filter(([e,t])=>e!==i&&e!==a?.[0]&&(t.kind===`number`||t.kind===`choice`||t.kind===`score`||t.kind===`ref`||t.kind===`text`&&!t.long)),c=r.filter(([,e])=>e.kind===`yesno`),l=r.filter(([e,t])=>t.kind===`text`&&t.long&&e!==a?.[0]),u=r.filter(([,e])=>e.kind===`list`||e.kind===`table`);return(0,s.jsxs)(`article`,{className:`flex flex-col gap-2 rounded-xl bg-card p-4 ring-1 ring-border-soft`,children:[(0,s.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,s.jsx)(`h4`,{className:`text-balance font-display font-semibold text-[1.0625rem] leading-snug`,children:i?qT(t[i]):``}),(0,s.jsx)(nE,{fields:c,entry:t})]}),a?(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3 leading-relaxed`,children:qT(t[a[0]])}):null,o.length?(0,s.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:o.map(([e,r])=>ZT(r,t[e],n)).filter(Boolean).map((e,t)=>(0,s.jsx)(`span`,{className:`rounded-full bg-paper-2 px-2 py-0.5 text-[0.75rem] text-ink-2`,children:e},t))}):null,l.map(([e,n])=>t[e]?(0,s.jsxs)(`p`,{className:`text-[0.875rem] leading-relaxed`,children:[(0,s.jsxs)(`span`,{className:`text-ink-3`,children:[hg(e,n),`: `]}),qT(t[e])]},e):null),u.map(([e,r])=>{let i=t[e];return!Array.isArray(i)||!i.length?null:(0,s.jsxs)(`div`,{className:`border-border-soft border-t pt-2`,children:[(0,s.jsx)(`div`,{className:JT,children:hg(e,r)}),r.kind===`list`&&r.of.kind!==`object`?(0,s.jsx)($T,{of:r.of,values:i,root:n}):(0,s.jsx)(tE,{shape:YT(r.kind===`list`?r.of:void 0,i),rows:i,root:n})]},e)})]})}function aE({of:e,rows:t,root:n}){let r=YT(e,t);return XT(r)?(0,s.jsx)(eE,{shape:r,rows:t,root:n}):Object.values(r.fields).some(e=>e.kind===`list`||e.kind===`table`||e.kind===`text`&&e.long)?(0,s.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(min(100%,16rem),1fr))] gap-3`,children:t.map((e,t)=>(0,s.jsx)(iE,{shape:r,entry:e??{},root:n},t))}):(0,s.jsx)(rE,{shape:r,rows:t,root:n})}function oE({step:e,json:t}){if(!t||typeof t!=`object`||Array.isArray(t))return(0,s.jsx)(`pre`,{className:`text-[0.8125rem]`,children:JSON.stringify(t,null,2)});let n=t,r=j_(e);return(0,s.jsx)(`div`,{className:`flex flex-col gap-5`,children:Object.entries(n).map(([e,t])=>{let i=r.fields[e],a=i?hg(e,i):e,o;if(Array.isArray(t)&&t.length&&t.every(e=>e&&typeof e==`object`))o=(0,s.jsx)(aE,{of:i?.kind===`list`?i.of:void 0,rows:t,root:n});else if(Array.isArray(t))o=(0,s.jsx)($T,{of:i?.kind===`list`?i.of:{kind:`text`},values:t,root:n});else if(t&&typeof t==`object`)o=(0,s.jsx)(`pre`,{className:`overflow-auto rounded-lg bg-paper-2 p-3 text-[0.75rem]`,children:JSON.stringify(t,null,2)});else{let e=i&&i.kind!==`list`&&i.kind!==`table`?i:{kind:`text`};o=(0,s.jsx)(`div`,{className:`whitespace-pre-wrap text-[0.9375rem] leading-relaxed`,children:ZT(e,t,n)})}return(0,s.jsxs)(`section`,{children:[(0,s.jsx)(`div`,{className:JT,children:a}),o]},e)})})}var sE=`#282623`,cE=`#81807e`,lE=`#1a5fb4`,uE=`#dbd9d6`,dE=483.28,fE={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,"#39":`'`,nbsp:`\xA0`};function pE(e){return e.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+\d*);/gi,(e,t)=>{if(t[0]===`#`){let n=t[1]?.toLowerCase()===`x`?Number.parseInt(t.slice(2),16):Number(t.slice(1));return Number.isFinite(n)?String.fromCodePoint(n):e}return fE[t.toLowerCase()]??e})}function mE(e){return pE(e.replace(/<[^>]+>/g,``)).trim()}function hE(e,t={}){let n=[];for(let r of e??[])switch(r.type){case`text`:{let e=r.tokens;e?.length?n.push(...hE(e,t)):n.push({...t,text:pE(r.text)});break}case`escape`:n.push({...t,text:pE(r.text)});break;case`strong`:n.push(...hE(r.tokens,{...t,bold:!0}));break;case`em`:n.push(...hE(r.tokens,{...t,italics:!0}));break;case`del`:n.push(...hE(r.tokens,{...t,decoration:`lineThrough`}));break;case`codespan`:n.push({...t,text:pE(r.text),color:`#3d3b38`});break;case`link`:{let e=r;n.push(...hE(e.tokens,{...t,link:e.href,color:lE,decoration:`underline`}));break}case`image`:n.push({...t,text:r.text});break;case`br`:n.push({...t,text:`
|
|
127
|
-
`});break;case`html`:n.push({...t,text:mE(r.text)});break;default:`tokens`in r&&Array.isArray(r.tokens)?n.push(...hE(r.tokens,t)):`text`in r&&typeof r.text==`string`&&n.push({...t,text:pE(r.text)})}return n}function gE(e){let t=yE(e);if(t.length===1&&typeof t[0]==`object`&&`style`in t[0]){let{style:e,...n}=t[0];return n}return t.length===1?t[0]:{stack:t}}function _E(e,t){return{text:hE(e.tokens),alignment:e.align??`left`,...t?{style:`th`}:{}}}var vE={hLineWidth:()=>.5,vLineWidth:()=>0,hLineColor:()=>uE,paddingTop:()=>4,paddingBottom:()=>4};function yE(e){let t=[];for(let n of e)switch(n.type){case`space`:break;case`heading`:{let e=n.depth;t.push({text:hE(n.tokens),style:e<=1?`h1`:e===2?`h2`:`h3`});break}case`paragraph`:t.push({text:hE(n.tokens),style:`p`});break;case`text`:t.push({text:hE([n]),style:`p`});break;case`list`:{let e=n,r=e.items.map(e=>gE(e.tokens));t.push(e.ordered?{ol:r,style:`list`,start:Number(e.start)||1}:{ul:r,style:`list`});break}case`table`:{let e=n;if(!e.header.length)break;t.push({table:{headerRows:1,widths:e.header.map(()=>`*`),body:[e.header.map(e=>_E(e,!0)),...e.rows.map(e=>e.map(e=>_E(e,!1)))]},layout:vE,style:`table`});break}case`code`:t.push({text:pE(n.text),style:`code`,preserveLeadingSpaces:!0});break;case`blockquote`:t.push({stack:yE(n.tokens),style:`quote`});break;case`hr`:t.push({canvas:[{type:`line`,x1:0,y1:0,x2:dE,y2:0,lineWidth:.5,lineColor:uE}],margin:[0,6,0,12]});break;case`html`:{let e=mE(n.text);e&&t.push({text:e,style:`p`});break}default:`tokens`in n&&Array.isArray(n.tokens)?t.push({text:hE(n.tokens),style:`p`}):`text`in n&&typeof n.text==`string`&&t.push({text:pE(n.text),style:`p`})}return t}function bE(e){return yE(Q.lexer(e))}function xE(e,t=e=>e){if(!e||typeof e!=`object`)return[{text:JSON.stringify(e,null,2)??``,style:`code`}];let n=[];for(let[r,i]of Object.entries(e))if(n.push({text:t(r),style:`label`}),typeof i==`boolean`)n.push({text:G(i?`run.yes`:`run.no`),style:`p`});else if(typeof i==`string`||typeof i==`number`)n.push({text:String(i),style:`p`});else if(Array.isArray(i)&&i.every(e=>typeof e!=`object`))n.push({ul:i.map(e=>String(e)),style:`list`});else if(Array.isArray(i)&&i.length&&typeof i[0]==`object`){let e=i,t=[...new Set(e.flatMap(e=>Object.keys(e)))];n.push({table:{headerRows:1,widths:t.map(()=>`*`),body:[t.map(e=>({text:e,style:`th`})),...e.map(e=>t.map(t=>({text:e[t]===null||e[t]===void 0?``:String(e[t])})))]},layout:vE,style:`table`})}else n.push({text:JSON.stringify(i,null,2),style:`code`});return n}function SE(e){let t=e.json!==void 0&&e.json!==null?xE(e.json,e.label):bE(e.text??``),n=e.foot??``;return{info:{title:e.title},pageSize:`A4`,pageMargins:[56,60,56,64],defaultStyle:{font:`Roboto`,fontSize:10.5,lineHeight:1.3,color:sE},styles:{title:{fontSize:20,bold:!0,lineHeight:1.15,margin:[0,0,0,16]},h1:{fontSize:15,bold:!0,margin:[0,14,0,6]},h2:{fontSize:13,bold:!0,margin:[0,12,0,5]},h3:{fontSize:11,bold:!0,margin:[0,10,0,4]},p:{margin:[0,0,0,7]},list:{margin:[0,0,0,7]},table:{margin:[0,2,0,10]},th:{bold:!0,fillColor:`#f3f1ee`},label:{fontSize:8,bold:!0,color:cE,characterSpacing:.6,margin:[0,8,0,2]},code:{fontSize:9,color:`#3d3b38`,margin:[0,0,0,8]},quote:{italics:!0,color:`#5d5b58`,margin:[14,0,0,8]}},content:[{text:e.title,style:`title`},...t],footer:(e,t)=>({columns:[{text:n,color:cE,fontSize:8.5},{text:`${e} / ${t}`,alignment:`right`,color:cE,fontSize:8.5}],margin:[56,26,56,0]})}}var CE={Roboto:{normal:`Roboto-Regular.ttf`,bold:`Roboto-Medium.ttf`,italics:`Roboto-Italic.ttf`,bolditalics:`Roboto-MediumItalic.ttf`}},wE=null;function TE(){return wE??=Promise.all([a(()=>import(`./pdfmake-Cx9scTbD.js`).then(e=>t(e.default,1)),__vite__mapDeps([2,3])),a(()=>import(`./vfs_fonts-DllDSYt1.js`).then(e=>t(e.default,1)),__vite__mapDeps([4,3]))]).then(([e,t])=>{let n=e.default;return n.addVirtualFileSystem(t.default),n.addFonts(CE),n}).catch(e=>{throw wE=null,e}),wE}function EE(e){return e.replace(/[\\/:*?"<>|]+|\p{Cc}+/gu,`-`).replace(/\s+/g,` `).trim()||`result`}async function DE(e){let t=await(await TE()).createPdf(SE(e)).getBlob();return new File([t],`${EE(e.title)}.pdf`,{type:`application/pdf`})}var $=e=>e==null?``:typeof e==`boolean`?G(e?`run.yes`:`run.no`):typeof e==`object`?JSON.stringify(e):String(e),OE=e=>{let t=typeof e==`number`?e:Number(String(e??``).replace(`,`,`.`));return Number.isFinite(t)?t:0};function kE(e,t){let n=$(e);return n?/^(https?:|data:|\/)/.test(n)?n:t(n):null}function AE(e,t,n,r){return wg(e[t],n.data,r)}function jE(e,t,n){let r=$(t)||`label`,i=$(n)||`value`;return Array.isArray(e)?e.map(e=>({label:$(e?.[r]),value:OE(e?.[i])})):[]}function ME({c:e,ctx:t,row:n}){let r=e.children;if(!r)return null;if(Array.isArray(r))return(0,s.jsx)(s.Fragment,{children:r.map(e=>(0,s.jsx)(JE,{id:e,ctx:t,row:n},e))});let i=wg({path:r.path},t.data,n);return(0,s.jsx)(s.Fragment,{children:(Array.isArray(i)?i:[]).map((e,n)=>(0,s.jsx)(JE,{id:r.componentId,ctx:t,row:e},n))})}var NE={success:`bg-second-tint text-second`,warning:`bg-amber-tint text-ink-2`,accent:`bg-ember-tint text-ember-strong`,default:`bg-paper-2 text-ink-2`},PE=e=>Array.isArray(e)?e:[];function FE(e,t){return typeof e!=`object`||!e?t===``?e:void 0:e[t]}function IE(e,t){if(typeof e!=`object`||!e)return $(e);let n=e;return $(t?n[t]:n.label??n.name??n.title??n.text)}function LE(e,t,n){let r=new Map;for(let n of e){let e=$(FE(n,t));r.set(e,[...r.get(e)??[],n])}let i=e=>{let t=n.indexOf(e);return t<0?n.length:t};return[...r.entries()].sort((e,t)=>i(e[0])-i(t[0]))}var RE=e=>e?`${$(e)} ${mv===`de`?`Min`:`min`}`:``;function zE({items:e}){return e.length?(0,s.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.map((e,t)=>(0,s.jsx)(`span`,{className:`rounded-full bg-paper-2 px-2 py-0.5 text-[0.75rem] text-ink-2`,children:e},t))}):null}function BE(e,t,n){let r=e.meta;return(Array.isArray(r)?r:[r]).map(e=>$(wg(e,t.data,n))).filter(Boolean)}function VE({c:e,ctx:t,row:n}){let[r,i]=(0,o.useState)(`0`),a=PE(e.tabs),c=a.map((e,r)=>{let i=wg(e?.count,t.data,n),a=Array.isArray(i)?i.length:i,o=$(wg(e?.label,t.data,n));return{id:String(r),label:a==null||a===``?o:`${o} (${$(a)})`}}),l=a[Number(r)]?.child;return(0,s.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,s.jsx)(`div`,{className:`sticky top-2 z-10 max-w-full self-start overflow-x-auto rounded-full`,children:(0,s.jsx)(ry,{value:r,onChange:i,options:c})}),typeof l==`string`?(0,s.jsx)(JE,{id:l,ctx:t,row:n}):null]})}function HE({c:e,ctx:t,row:n}){let r=r=>AE(e,r,t,n),[i,a]=(0,o.useState)(!1),c=PE(r(`items`)),l=$(r(`labelKey`)),u=$(r(`detailKey`))||`amount`,d=$(r(`noteKey`)),f=$(r(`noteFormat`)),p=$(r(`groupKey`)),m=PE(r(`groupOrder`)).map($),h=t.state[e.id]??{},g=(e,t)=>`${t}:${IE(e,l)}`,_=c.filter((e,t)=>h[g(e,t)]).length,v=c.map((e,t)=>({item:e,i:t})),y=p?LE(c,p,m).map(([e])=>[e,v.filter(({item:t})=>$(FE(t,p))===e)]):[[``,v]],b=e=>$(FE(e,u)),x=r(`noteMap`),S=e=>{let t=d?FE(e,d):void 0;if(typeof t==`boolean`)return $((x&&typeof x==`object`?x[String(t)]:``)??``);let n=Array.isArray(t)?t.map($).join(`, `):$(t);return n&&f?f.replace(`{}`,n):n};return(0,s.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,s.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,s.jsx)(`div`,{className:`h-1.5 flex-1 overflow-hidden rounded-full bg-paper-2`,children:(0,s.jsx)(`div`,{className:`h-full rounded-full bg-second transition-[width] duration-300`,style:{width:`${c.length?_/c.length*100:0}%`}})}),(0,s.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:_===c.length&&c.length?G(`surface.allDone`):G(`surface.done`,{done:_,total:c.length})}),r(`share`)===!1?null:(0,s.jsxs)(`button`,{type:`button`,onClick:async()=>{let e=y.map(([e,t])=>{let n=t.filter(({item:e,i:t})=>!h[g(e,t)]).map(({item:e})=>`☐ ${IE(e,l)}${b(e)?` – ${b(e)}`:``}`);return n.length?[e,...n].filter(Boolean).join(`
|
|
128
|
-
`):``}).filter(Boolean).join(`
|
|
129
|
-
|
|
130
|
-
`);try{navigator.share?await navigator.share({text:e}):(await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),1600))}catch{}},className:`inline-flex h-8 items-center gap-1.5 rounded-full bg-paper-2 px-3 text-[0.8125rem] text-ink-2 hover:text-ink coarse:h-10`,children:[i?(0,s.jsx)(Ni,{className:`size-3.5`}):(0,s.jsx)(ao,{className:`size-3.5`}),G(i?`share.copied`:`run.share`)]})]}),y.map(([n,r])=>(0,s.jsxs)(`section`,{className:`rounded-xl bg-card px-4 py-1 ring-1 ring-border-soft`,children:[n?(0,s.jsx)(`h4`,{className:`pt-3 pb-1 font-semibold text-[0.6875rem] text-second uppercase tracking-[0.14em]`,children:n}):null,r.map(({item:n,i:r})=>{let i=g(n,r),a=!!h[i],o=S(n);return(0,s.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-3 border-border-soft border-b border-dashed py-2.5 last:border-0`,children:[(0,s.jsx)(`input`,{type:`checkbox`,checked:a,onChange:()=>t.setState(e.id,{...h,[i]:!a}),className:`mt-0.5 size-[1.125rem] shrink-0 accent-[var(--second)] coarse:size-6`}),(0,s.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,s.jsxs)(`span`,{className:q(`text-[0.9375rem]`,a&&`text-ink-3 line-through`),children:[IE(n,l),b(n)?(0,s.jsxs)(`span`,{className:`text-ink-3`,children:[` · `,b(n)]}):null]}),o?(0,s.jsx)(`span`,{className:`block text-[0.75rem] text-ink-3`,children:o}):null]})]},i)})]},n))]})}function UE({data:e}){let t=Math.max(1,...e.map(e=>e.value));return(0,s.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:e.map((e,n)=>(0,s.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,8rem)_1fr_auto] items-center gap-2`,children:[(0,s.jsx)(`span`,{className:`truncate text-[0.8125rem] text-ink-2`,children:e.label}),(0,s.jsx)(`span`,{className:`h-2.5 rounded-full bg-paper-2`,children:(0,s.jsx)(`span`,{className:`block h-full rounded-full bg-ember`,style:{width:`${e.value/t*100}%`}})}),(0,s.jsx)(`span`,{className:`text-[0.8125rem] tabular-nums`,children:e.value.toLocaleString(mv)})]},n))})}function WE({data:e}){if(e.length<2)return(0,s.jsx)(UE,{data:e});let t=Math.max(...e.map(e=>e.value)),n=Math.min(...e.map(e=>e.value)),r=t-n||1,i=e.map((t,i)=>[i/(e.length-1)*312+4,116-(t.value-n)/r*112]);return(0,s.jsxs)(`figure`,{children:[(0,s.jsxs)(`svg`,{viewBox:`0 0 320 120`,className:`w-full text-ember`,role:`img`,children:[(0,s.jsx)(`polyline`,{points:i.map(([e,t])=>`${e},${t}`).join(` `),fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinejoin:`round`}),i.map(([t,n],r)=>(0,s.jsx)(`circle`,{cx:t,cy:n,r:`3`,fill:`currentColor`,children:(0,s.jsx)(`title`,{children:`${e[r].label}: ${e[r].value}`})},r))]}),(0,s.jsxs)(`figcaption`,{className:`mt-1 flex justify-between text-[0.75rem] text-ink-3`,children:[(0,s.jsx)(`span`,{children:e[0].label}),(0,s.jsx)(`span`,{children:e.at(-1)?.label})]})]})}var GE=[`var(--color-ember)`,`var(--color-cobalt)`,`var(--color-moss)`,`var(--color-amber)`,`var(--color-ink-3)`];function KE({data:e}){let t=e.reduce((e,t)=>e+Math.max(0,t.value),0)||1,n=0,r=2*Math.PI*40;return(0,s.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,s.jsx)(`svg`,{viewBox:`0 0 100 100`,className:`size-28 shrink-0 -rotate-90`,role:`img`,children:e.map((e,i)=>{let a=Math.max(0,e.value)/t*r,o=(0,s.jsx)(`circle`,{cx:`50`,cy:`50`,r:40,fill:`none`,stroke:GE[i%GE.length],strokeWidth:`16`,strokeDasharray:`${a} ${r-a}`,strokeDashoffset:-n,children:(0,s.jsx)(`title`,{children:`${e.label}: ${e.value}`})},i);return n+=a,o})}),(0,s.jsx)(`ul`,{className:`flex flex-col gap-1 text-[0.8125rem]`,children:e.map((e,t)=>(0,s.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,s.jsx)(`span`,{className:`size-2.5 rounded-full`,style:{background:GE[t%GE.length]}}),(0,s.jsx)(`span`,{className:`text-ink-2`,children:e.label}),(0,s.jsx)(`span`,{className:`tabular-nums`,children:e.value.toLocaleString(mv)})]},t))})]})}function qE({title:e,children:t}){return(0,s.jsxs)(`div`,{className:`rounded-xl bg-card p-4 ring-1 ring-border-soft`,children:[e?(0,s.jsx)(`div`,{className:`mb-3 font-medium text-[0.875rem]`,children:e}):null,t]})}function JE({id:e,ctx:t,row:n}){let r=t.byId.get(e);if(!r)return null;let i=e=>AE(r,e,t,n);switch(r.component){case`Column`:return(0,s.jsx)(`div`,{className:`flex flex-col gap-4`,children:(0,s.jsx)(ME,{c:r,ctx:t,row:n})});case`Text`:{let e=$(i(`variant`))||`body`;return(0,s.jsx)(`p`,{className:q(e===`h3`&&`font-display font-semibold text-[1.25rem] leading-tight`,e===`h4`&&`font-semibold text-[1rem]`,e===`lead`&&`font-display text-[1.0625rem] text-ink-2 leading-relaxed`,e===`body`&&`text-[0.9375rem] leading-relaxed`,e===`muted`&&`text-[0.8125rem] text-ink-3`),children:$(i(`text`))})}case`List`:return(0,s.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft overflow-hidden rounded-xl bg-card ring-1 ring-border-soft`,children:(0,s.jsx)(ME,{c:r,ctx:t,row:n})});case`Row`:{let e=kE(i(`image`),t.assetUrl),n=$(i(`badge`));return(0,s.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-3`,children:[e?(0,s.jsx)(`img`,{src:e,alt:``,className:`size-10 shrink-0 rounded-lg object-cover`}):null,(0,s.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,s.jsx)(`div`,{className:`truncate text-[0.9375rem]`,children:$(i(`title`))}),i(`subtitle`)?(0,s.jsx)(`div`,{className:`truncate text-[0.8125rem] text-ink-3`,children:$(i(`subtitle`))}):null]}),i(`meta`)?(0,s.jsx)(`span`,{className:`shrink-0 text-[0.8125rem] text-ink-3 tabular-nums`,children:$(i(`meta`))}):null,n?(0,s.jsx)(`span`,{className:q(`shrink-0 rounded-full px-2 py-0.5 text-[0.75rem]`,NE[$(i(`badgeTone`))]??NE.default),children:n}):null]})}case`DetailGrid`:{let e=i(`rows`);return(0,s.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 rounded-xl bg-card p-4 text-[0.875rem] ring-1 ring-border-soft`,children:(Array.isArray(e)?e:[]).map((e,r)=>(0,s.jsxs)(`div`,{className:`contents`,children:[(0,s.jsx)(`dt`,{className:`text-ink-3`,children:$(wg(e?.label,t.data,n))}),(0,s.jsx)(`dd`,{className:`break-words`,children:$(wg(e?.value,t.data,n))})]},r))})}case`Badge`:return(0,s.jsx)(`span`,{className:q(`inline-flex w-fit rounded-full px-2.5 py-0.5 text-[0.75rem]`,NE[$(i(`tone`))]??NE.default),children:$(i(`label`))});case`Grid`:{let e=Math.min(4,Math.max(1,OE(i(`columns`))||2)),a=Math.min(24,Math.max(6,OE(i(`min`))||(e>2?9:12)));return(0,s.jsx)(`div`,{className:`grid gap-3`,style:{gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, ${a}rem), 1fr))`},children:(0,s.jsx)(ME,{c:r,ctx:t,row:n})})}case`Metric`:return(0,s.jsxs)(`div`,{className:`rounded-xl bg-card p-4 ring-1 ring-border-soft`,children:[(0,s.jsx)(`div`,{className:`text-[0.75rem] text-ink-3 uppercase tracking-[0.06em]`,children:$(i(`label`))}),(0,s.jsx)(`div`,{className:`mt-1 font-display font-semibold text-[1.5rem] tabular-nums`,children:$(i(`value`))}),i(`caption`)?(0,s.jsx)(`div`,{className:`text-[0.8125rem] text-ink-3`,children:$(i(`caption`))}):null]});case`Table`:{let e=i(`rows`),t=Array.isArray(e)?e:[],n=i(`columns`),r=Array.isArray(n)?n.map(e=>({key:$(e?.key),label:$(e?.label??e?.key)})):[...new Set(t.flatMap(e=>Object.keys(e??{})))].map(e=>({key:e,label:e}));return(0,s.jsx)(`div`,{className:`overflow-x-auto rounded-xl ring-1 ring-border-soft`,children:(0,s.jsxs)(`table`,{className:`w-full text-[0.8125rem]`,children:[(0,s.jsx)(`thead`,{className:`bg-paper-2 text-ink-2`,children:(0,s.jsx)(`tr`,{children:r.map(e=>(0,s.jsx)(`th`,{className:`px-3 py-2 text-left font-medium`,children:e.label},e.key))})}),(0,s.jsx)(`tbody`,{children:t.map((e,t)=>(0,s.jsx)(`tr`,{className:`border-border-soft border-t`,children:r.map(t=>(0,s.jsx)(`td`,{className:`px-3 py-2 tabular-nums`,children:$(e?.[t.key])},t.key))},t))})]})})}case`Image`:{let e=kE(i(`src`),t.assetUrl);return e?(0,s.jsx)(`img`,{src:e,alt:$(i(`alt`)),className:`w-full rounded-xl`}):null}case`BarChart`:return(0,s.jsx)(qE,{title:$(i(`title`)),children:(0,s.jsx)(UE,{data:jE(i(`points`),i(`labelKey`),i(`valueKey`))})});case`LineChart`:return(0,s.jsx)(qE,{title:$(i(`title`)),children:(0,s.jsx)(WE,{data:jE(i(`points`),i(`labelKey`),i(`valueKey`))})});case`DonutChart`:return(0,s.jsx)(qE,{title:$(i(`title`)),children:(0,s.jsx)(KE,{data:jE(i(`slices`),i(`labelKey`),i(`valueKey`))})});case`Actions`:return(0,s.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,s.jsx)(ME,{c:r,ctx:t,row:n})});case`Button`:{let e=$(i(`action`));return!t.onAction&&e!==`open`?null:(0,s.jsx)(`button`,{type:`button`,onClick:()=>{let n=i(`target`);if(e===`open`){let e=kE(n,t.assetUrl);e&&window.open(e,`_blank`,`noopener`);return}t.onAction?.({action:e,target:n})},className:`inline-flex h-9 items-center rounded-full bg-paper-2 px-4 text-[0.875rem] text-ink-2 hover:text-ink coarse:h-11`,children:$(i(`label`))})}case`Tabs`:return(0,s.jsx)(VE,{c:r,ctx:t,row:n});case`Card`:{let e=kE(i(`image`),t.assetUrl),a=$(i(`eyebrow`)),o=$(i(`subtitle`));return(0,s.jsxs)(`article`,{className:`overflow-hidden rounded-xl bg-card ring-1 ring-border-soft`,children:[e?(0,s.jsx)(`img`,{src:e,alt:``,className:`aspect-[16/9] w-full object-cover`}):null,(0,s.jsxs)(`div`,{className:q(`flex flex-col gap-1.5 px-4 py-3.5`,r.children&&`bg-paper-2/60`),children:[a?(0,s.jsx)(`div`,{className:`font-medium text-[0.6875rem] text-ink-3 uppercase tracking-[0.14em]`,children:a}):null,(0,s.jsx)(`h3`,{className:`text-balance font-display font-semibold text-[1.1875rem] leading-snug`,children:$(i(`title`))}),o?(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3 leading-relaxed`,children:o}):null,(0,s.jsx)(zE,{items:BE(r,t,n)})]}),r.children?(0,s.jsx)(`div`,{className:`flex flex-col gap-3 border-border-soft border-t px-4 py-3.5 empty:hidden`,children:(0,s.jsx)(ME,{c:r,ctx:t,row:n})}):null]})}case`Fold`:return(0,s.jsxs)(`details`,{open:!!i(`open`),className:`group border-border-soft border-t pt-3 first:border-0 first:pt-0`,children:[(0,s.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center justify-between gap-3 font-display font-semibold text-[1rem] [&::-webkit-details-marker]:hidden`,children:[$(i(`title`)),(0,s.jsx)(zi,{className:`size-4 text-ink-3 transition-transform group-open:rotate-90 motion-reduce:transition-none`})]}),(0,s.jsx)(`div`,{className:`flex flex-col gap-3 pt-3`,children:(0,s.jsx)(ME,{c:r,ctx:t,row:n})})]});case`Group`:{let e=r.children;if(!e||Array.isArray(e))return null;let a=PE(wg({path:e.path},t.data,n));return(0,s.jsx)(`div`,{className:`flex flex-col gap-5`,children:LE(a,$(i(`by`)),PE(i(`order`)).map($)).map(([n,r])=>(0,s.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[n?(0,s.jsx)(`h4`,{className:`font-semibold text-[0.6875rem] text-second uppercase tracking-[0.14em]`,children:n}):null,r.map((n,r)=>(0,s.jsx)(JE,{id:e.componentId,ctx:t,row:n},r))]},n))})}case`Chips`:{let e=$(i(`labelKey`)),t=$(i(`flagKey`)),n=$(i(`flag`)),r=$(i(`title`));return(0,s.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[r?(0,s.jsx)(`div`,{className:`text-[0.8125rem] text-ink-3`,children:r}):null,(0,s.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:PE(i(`items`)).map((r,i)=>{let a=!!(t&&FE(r,t));return(0,s.jsxs)(`span`,{className:q(`rounded-full px-2.5 py-1 text-[0.8125rem]`,a?`bg-amber-tint font-medium text-ink ring-1 ring-amber/60`:`bg-card text-ink-2 ring-1 ring-border-soft`),children:[IE(r,e),a&&n?` · ${n}`:``]},i)})})]})}case`Checklist`:return(0,s.jsx)(HE,{c:r,ctx:t,row:n});case`Steps`:{let e=$(i(`textKey`))||`text`,t=$(i(`minutesKey`))||`minutes`;return(0,s.jsx)(`ol`,{className:`flex flex-col gap-3`,children:PE(i(`items`)).map((n,r)=>{let i=$(typeof n==`object`?FE(n,e):n),a=RE(FE(n,t));return(0,s.jsxs)(`li`,{className:`grid grid-cols-[1.5rem_1fr] gap-2`,children:[(0,s.jsx)(`span`,{className:`font-display font-semibold text-[1.125rem] text-ember leading-snug`,children:r+1}),(0,s.jsxs)(`span`,{className:`text-[0.9375rem] leading-relaxed`,children:[i,a?(0,s.jsxs)(`span`,{className:`ml-1.5 inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-paper-2 px-2 py-0.5 align-[1px] text-[0.75rem] text-ink-2`,children:[(0,s.jsx)(Vi,{className:`size-3`}),a]}):null]})]},r)})})}case`Link`:{let e=$(i(`key`))||`id`,n=$(i(`value`)),a=PE(i(`items`)).find(t=>$(FE(t,e))===n),o=r.view;if(a===void 0)return null;let c=e=>wg(r[e],t.data,a),l=$(i(`eyebrow`)),u=BE(r,t,a);return(0,s.jsxs)(`button`,{type:`button`,onClick:()=>typeof o==`string`&&t.open(o,a),className:q(`group flex w-full items-center gap-3 text-left`,$(i(`look`))===`card`?`rounded-xl bg-card p-4 ring-1 ring-border-soft hover:ring-ink-4`:`-mx-2 w-[calc(100%+1rem)] rounded-lg px-2 py-2 hover:bg-paper-2/70 coarse:py-3`),children:[(0,s.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[l?(0,s.jsx)(`span`,{className:`block font-semibold text-[0.6875rem] text-second uppercase tracking-[0.14em]`,children:l}):null,(0,s.jsx)(`span`,{className:`block font-display font-semibold text-[1rem] leading-snug group-hover:text-ember`,children:$(c(`title`))}),c(`subtitle`)?(0,s.jsx)(`span`,{className:`block text-[0.8125rem] text-ink-3`,children:$(c(`subtitle`))}):null,u.length?(0,s.jsxs)(`span`,{className:`mt-0.5 flex items-center gap-1 text-[0.75rem] text-ink-3`,children:[(0,s.jsx)(Vi,{className:`size-3`}),u.join(` · `)]}):null]}),(0,s.jsx)(zi,{className:`size-4 shrink-0 text-ink-3`})]})}case`Callout`:{let e=$(i(`tone`))||`tip`,t=$(i(`title`));return(0,s.jsxs)(`div`,{className:q(`flex gap-2.5 rounded-xl px-4 py-3 text-[0.875rem] leading-relaxed`,e===`tip`&&`bg-second-tint`,e===`note`&&`bg-paper-2`,e===`warning`&&`bg-amber-tint`),children:[(0,s.jsx)(Ca,{className:q(`mt-0.5 size-4 shrink-0`,e===`tip`?`text-second`:`text-ink-3`)}),(0,s.jsxs)(`p`,{children:[t?(0,s.jsxs)(`b`,{className:`font-semibold`,children:[t,` `]}):null,$(i(`text`))]})]})}}return null}function YE({surface:e,assetUrl:t,onAction:n,initial:r,onState:i}){let[a,c]=(0,o.useState)(r??{}),[l,u]=(0,o.useState)(null),d={byId:new Map(e.components.map(e=>[e.id,e])),data:e.data,assetUrl:t,onAction:n,state:a,setState:(e,t)=>{let n={...a,[e]:t};c(n),i?.(n)},open:(e,t)=>u({view:e,row:t})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(JE,{id:`root`,ctx:d}),(0,s.jsx)(ly,{open:l!==null,onClose:()=>u(null),height:`tall`,children:l?(0,s.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,s.jsx)(JE,{id:l.view,ctx:d,row:l.row}),(0,s.jsx)(`button`,{type:`button`,onClick:()=>u(null),className:`h-10 self-center rounded-full bg-paper-2 px-5 text-[0.875rem] text-ink-2 hover:text-ink`,children:G(`surface.close`)})]}):null})]})}function XE({text:e,className:t}){let n=(0,o.useMemo)(()=>nw.sanitize(Q.parse(e,{async:!1})),[e]);return(0,s.jsx)(`div`,{className:q(`prose-zen`,t),dangerouslySetInnerHTML:{__html:n}})}function ZE({src:e,page:t,height:n,fit:r,flow:i,state:a,onState:c}){let l=(0,o.useRef)(null),[u,d]=(0,o.useState)(n),[f]=(0,o.useState)(()=>a??{}),p=(0,o.useRef)(c);p.current=c,(0,o.useEffect)(()=>{let e=e=>{if(!l.current||e.source!==l.current.contentWindow)return;let t=e.data;if(t?.wizard===`height`&&typeof t.height==`number`)d(Math.min(2e4,Math.max(120,Math.ceil(t.height))));else if(t?.wizard===`state`&&t.state&&typeof t.state==`object`)p.current?.(t.state);else if(t?.wizard===`share`&&typeof t.text==`string`){let e=t.text.slice(0,1e4);navigator.share?navigator.share({text:e}).catch(()=>void 0):navigator.clipboard?.writeText(e).catch(()=>void 0)}};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]);let m=(0,o.useRef)(null),[h,g]=(0,o.useState)(0);(0,o.useEffect)(()=>{let e=m.current;if(!e)return;let t=new ResizeObserver(()=>g(e.clientWidth));return t.observe(e),g(e.clientWidth),()=>t.disconnect()},[]);let[_,v]=(0,o.useState)(null);(0,o.useEffect)(()=>{let t=!0;return fetch(e,{credentials:`include`}).then(e=>e.ok?e.text():``).then(n=>t&&v({src:e,text:n})),()=>{t=!1}},[e]);let y=i?h||360:t??Math.max(h,900),b=i?1:h?r?h/y:Math.min(1,h/y):1,x=i?u:n,S=i&&_?`<script>window.__WIZARD_STATE=${JSON.stringify(f).replace(/</g,`\\u003c`)}<\/script>${_.text}`:_?.text;return(0,s.jsxs)(`div`,{ref:m,className:q(`relative overflow-hidden`,!i&&`rounded-lg bg-white ring-1 ring-border-soft`),style:{height:x*b},children:[_?.src===e?(0,s.jsx)(`iframe`,{ref:l,title:G(`output.preview`),srcDoc:S,sandbox:`allow-scripts allow-popups allow-popups-to-escape-sandbox`,className:`absolute top-0 left-0 origin-top-left border-0`,style:{width:y,height:x,transform:`scale(${b})`}},e):(0,s.jsx)(`div`,{className:`absolute inset-0 animate-pulse bg-paper-2`}),i?null:(0,s.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:`absolute top-3 right-3 inline-flex size-9 items-center justify-center rounded-full bg-card/90 text-ink-2 shadow-soft ring-1 ring-border-soft backdrop-blur hover:text-ink coarse:size-11`,"aria-label":G(`run.openFull`),children:(0,s.jsx)(Na,{className:`size-4`})})]})}var QE={disc:{file:`ai`,box:566.93,x:89.28,y:100.72,w:365.49,h:365.49},generated:{file:`ai-generated`,box:1789.84,x:207.3,y:144.36,w:1384.24,h:266.41},edited:{file:`ai-modified`,box:1700.79,x:231.11,y:144.36,w:1230.56,h:266.41}};function $E({icon:e,tone:t,size:n,className:r}){let i=QE[e],a=n/i.h;return(0,s.jsx)(`img`,{src:yb(`ai-labels/${i.file}-${t}.svg`),alt:``,draggable:!1,className:q(`pointer-events-none absolute max-w-none select-none`,r),style:{width:i.box*a,height:566.93*a,left:-i.x*a,top:-i.y*a}})}function eD({ai:e,className:t}){let[n,r]=(0,o.useState)(!1);if(!e)return null;let i=QE[e],a=t===`static`,c=a?[[`black`,`dark:hidden`],[`white`,`hidden dark:block`]]:[[`white`,``]];return(0,s.jsx)(`button`,{type:`button`,"aria-label":G(e===`edited`?`ai.modified`:`ai.generated`),"aria-expanded":n,"data-open":n,onClick:()=>r(e=>!e),className:q(`group block cursor-default overflow-hidden rounded-full backdrop-blur-md transition-[width] duration-200`,`w-[var(--ai-disc)] hover:w-[var(--ai-long)] focus-visible:w-[var(--ai-long)] data-[open=true]:w-[var(--ai-long)]`,a?`relative`:q(`absolute shadow-[0_1px_3px_rgba(0,0,0,0.25)]`,t??`bottom-2 left-2`)),style:{height:18,"--ai-disc":`18px`,"--ai-long":`${i.w/i.h*18}px`},children:c.map(([t,r])=>(0,s.jsxs)(`span`,{className:r,children:[(0,s.jsx)($E,{icon:`disc`,tone:t,size:18,className:q(`transition-opacity duration-200`,n?`opacity-0`:`opacity-100 group-hover:opacity-0 group-focus-visible:opacity-0`)}),(0,s.jsx)($E,{icon:e,tone:t,size:18,className:q(`transition-opacity duration-200`,n?`opacity-100`:`opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`)})]},t))})}function tD(e,t){let n=e.type===`agent`?j_(e).fields[t]:void 0;return n?hg(t,n):t}function nD({text:e}){let[t,n]=(0,o.useState)(!1);return(0,s.jsxs)(`button`,{type:`button`,onClick:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),1500)},className:`inline-flex h-8 items-center gap-1.5 rounded-full bg-paper-2 px-3 text-[0.8125rem] text-ink-2 hover:text-ink coarse:h-11 coarse:px-4`,children:[t?(0,s.jsx)(Ni,{className:`size-3.5`}):(0,s.jsx)(Ui,{className:`size-3.5`}),G(t?`share.copied`:`run.copy`)]})}function rD({base:e,step:t,output:n,editable:r,draft:i,onDraft:a,picked:o,onPick:c,onSurfaceAction:l,onView:u}){if(!n)return null;let d=t=>vb(`${e}/assets/${t}`);if(n.surface)return(0,s.jsx)(YE,{surface:n.surface,assetUrl:d,onAction:l,initial:n.view,onState:u});if(t.type===`widget`||t.type===`film`){let e=n.assets?.find(e=>e.kind===`video`);if(e){let r=n.assets?.find(e=>e.kind===`poster`),i=t.type===`film`?t.format===`9:16`:(t.size?.height??0)>(t.size?.width??1);return(0,s.jsxs)(`div`,{className:q(`relative mx-auto`,i?`w-fit`:`w-full`),children:[(0,s.jsx)(`video`,{src:d(e.id),poster:r?d(r.id):void 0,controls:!0,playsInline:!0,className:q(`rounded-lg bg-black ring-1 ring-border-soft`,i?`max-h-[76vh]`:`w-full`)}),(0,s.jsx)(eD,{ai:e.ai,className:`top-2 right-2`})]})}if(t.type===`film`)return null;let r=n.assets?.find(e=>e.mime===`text/html`),i=t.size??{width:1280,height:720};return r?(0,s.jsx)(ZE,{src:d(r.id),page:i.width,height:i.height,fit:!0,flow:t.layout===`page`,state:n.view,onState:u}):null}if(t.type===`generate`){let e=n.assets?.[0];if(!e)return null;if(t.asset===`voice`)return(0,s.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,s.jsx)(`audio`,{src:d(e.id),controls:!0,className:`w-full`}),(0,s.jsx)(eD,{ai:e.ai,className:`static`}),n.text?(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-2 leading-relaxed`,children:n.text}):null]});if((n.assets?.length??0)>1&&(t.asset===`image`||t.asset===`video`)){let e=t.options?.aspectRatio===`9:16`||t.options?.aspectRatio===`2:3`;return(0,s.jsx)(`div`,{className:q(`grid gap-3`,e?`grid-cols-2 sm:grid-cols-3`:`sm:grid-cols-2`),children:n.assets?.map((e,n)=>{let r=o?.includes(n);return(0,s.jsxs)(`figure`,{className:q(`relative overflow-hidden rounded-lg bg-paper-2 ring-1 ring-border-soft`,r&&`ring-2 ring-ember`),children:[t.asset===`image`?(0,s.jsx)(`img`,{src:d(e.id),alt:`${t.title} ${n+1}`,className:`w-full`}):(0,s.jsx)(`video`,{src:d(e.id),controls:!0,playsInline:!0,loop:!0,className:`w-full`}),c?(0,s.jsxs)(`button`,{type:`button`,"aria-pressed":r,onClick:()=>c(n),className:q(`absolute top-2 left-2 inline-flex h-8 items-center gap-1.5 rounded-full px-3 font-medium text-[0.75rem] shadow-soft backdrop-blur coarse:h-11`,r?`bg-ember text-ember-on`:`bg-card/90 text-ink-2 hover:text-ink`),children:[r?(0,s.jsx)(Ni,{className:`size-3.5`}):null,G(r?`run.pickedItem`:`run.pickItem`,{n:n+1})]}):(0,s.jsx)(`span`,{className:`absolute top-2 left-2 rounded-full bg-card/90 px-2.5 py-1 font-medium text-[0.75rem] text-ink-2`,children:n+1}),(0,s.jsx)(eD,{ai:e.ai,className:t.asset===`image`?`bottom-2 left-2`:`top-2 right-2`})]},e.id)})})}if(t.asset===`image`)return(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(`img`,{src:d(e.id),alt:t.title,className:`w-full rounded-lg bg-paper-2 ring-1 ring-border-soft`}),(0,s.jsx)(eD,{ai:e.ai})]});if(t.asset===`video`){let n=t.options?.aspectRatio===`9:16`;return(0,s.jsxs)(`div`,{className:q(`relative mx-auto`,n?`w-fit`:`w-full`),children:[(0,s.jsx)(`video`,{src:d(e.id),controls:!0,playsInline:!0,loop:!0,className:q(`rounded-lg bg-black ring-1 ring-border-soft`,n?`max-h-[70vh]`:`w-full`)}),(0,s.jsx)(eD,{ai:e.ai,className:`top-2 left-2`})]})}return t.asset===`document`?(0,s.jsx)(ZE,{src:d(e.id),page:820,height:1100}):(0,s.jsx)(ZE,{src:d(e.id),page:null,height:760})}if(t.type===`agent`){let e=n.assets?.filter(e=>e.kind!==`file`&&e.mime.startsWith(`image/`))??[],o=n.assets?.filter(e=>e.kind===`file`)??[];return(0,s.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[t.output.format===`json`&&n.json!==void 0?(0,s.jsx)(oE,{step:t,json:n.json}):r?(0,s.jsx)($v,{value:i??n.text??``,onChange:e=>a?.(e.target.value),minRows:4,maxRows:24}):t.output.format===`markdown`?(0,s.jsx)(XE,{text:n.text??``}):(0,s.jsx)(`div`,{className:`whitespace-pre-wrap text-[1rem] leading-relaxed`,children:n.text}),e.map(e=>(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(`img`,{src:d(e.id),alt:``,className:`w-full rounded-lg ring-1 ring-border-soft`}),(0,s.jsx)(eD,{ai:e.ai})]},e.id)),o.length?(0,s.jsx)(`ul`,{className:`overflow-hidden rounded-lg ring-1 ring-border-soft`,children:o.map(e=>(0,s.jsx)(`li`,{className:`border-border-soft border-b last:border-0`,children:(0,s.jsxs)(`a`,{href:d(e.id),download:e.name,onClick:t=>Cb(t,d(e.id),e.name),className:`flex items-center gap-2 px-3 py-2 text-[0.8125rem] hover:bg-paper-2 coarse:min-h-11`,children:[(0,s.jsx)(aa,{className:`size-3.5 shrink-0 text-ink-3`}),(0,s.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name})]})},e.id))}):null,t.output.format!==`json`&&!r&&n.text?(0,s.jsx)(`div`,{children:(0,s.jsx)(nD,{text:n.text})}):null]})}return null}var iD={png:`PNG`,mp4:`MP4`,mp3:`MP3`,pdf:`PDF`,docx:`Word`,html:`HTML`,md:`Markdown`,txt:`Text`,csv:`CSV`,xlsx:`Excel`,json:`JSON`,zip:`ZIP`};function aD(e,t){return(e.headers.get(`content-disposition`)??``).match(/filename="([^"]+)"/)?.[1]??t}function oD(e){let t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=e.name,n.rel=`noopener`,document.body.append(n),n.click(),n.remove(),setTimeout(()=>URL.revokeObjectURL(t),6e4)}function sD({url:e,format:t,title:n,make:r}){let[i,a]=(0,o.useState)(`idle`),c=(0,o.useRef)(null),l=async()=>{if(bb(`share`)&&!r){a(`busy`),await xb(`share`,{url:new URL(e,location.href).href,title:n}).catch(()=>void 0),a(`idle`);return}try{if(!c.current){if(a(`busy`),r)c.current=await r();else{let n=await fetch(e,{credentials:`include`});if(!n.ok)throw Error(String(n.status));let r=await n.blob();c.current=new File([r],aD(n,`download.${t}`),{type:r.type.split(`;`)[0]})}}let i={files:[c.current],title:n};if(!navigator.canShare(i)){r?oD(c.current):location.href=e,a(`idle`);return}await navigator.share(i),a(`idle`)}catch(e){a(c.current&&e.name===`NotAllowedError`?`ready`:`idle`)}};return(0,s.jsxs)(`button`,{type:`button`,onClick:()=>void l(),disabled:i===`busy`,"aria-label":G(`run.shareFile`),title:G(`run.shareFile`),className:q(`inline-flex h-9 items-center gap-1.5 rounded-full px-3 font-medium text-[0.8125rem] transition coarse:h-11 coarse:px-4`,i===`ready`?`bg-ember-tint text-ink ring-1 ring-ember`:`bg-paper-2 text-ink-2 hover:bg-paper-3 hover:text-ink`),children:[i===`busy`?(0,s.jsx)(oy,{className:`size-3.5`}):(0,s.jsx)(so,{className:`size-3.5`}),G(i===`ready`?`run.shareNow`:`run.share`)]})}var cD=bb(`share`)||Yb();function lD({base:e,stepId:t,formats:n,title:r,step:i,output:a,foot:c}){let l=n=>vb(`${e}/steps/${t}/download?format=${n}`),[u,d]=(0,o.useState)(!1),f=(0,o.useRef)(null),p=wb()&&i?.type===`agent`&&a&&(a.text||a.json!==void 0)?{title:r??i.title,text:a.text,json:i.output.format===`json`?a.json:void 0,label:e=>tD(i,e),foot:c}:null,m=async()=>{if(!p)throw Error(`nothing written`);return f.current??=await DE(p),f.current},h=async()=>{d(!0);try{oD(await m())}catch(e){console.warn(`pdf: ${e.message}`),n.includes(`html`)&&window.open(l(`html`),`_blank`,`noopener`)}finally{d(!1)}},g=e=>q(`inline-flex h-9 items-center gap-1.5 rounded-full px-3.5 font-medium text-[0.8125rem] transition coarse:h-11 coarse:px-4`,e===0?`bg-primary text-primary-foreground hover:brightness-105`:`bg-paper-2 text-ink-2 hover:bg-paper-3 hover:text-ink`),_=e=>e===`pdf`&&p!==null;return(0,s.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[n.map((e,t)=>_(e)?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>void h(),disabled:u,className:g(t),children:[u?(0,s.jsx)(oy,{className:`size-3.5`}):t===0?(0,s.jsx)(Yi,{className:`size-3.5`}):null,iD[e]]},e):e===`html`&&wb()?(0,s.jsxs)(`a`,{href:l(e),target:`_blank`,rel:`noopener`,className:g(t),children:[t===0?(0,s.jsx)(Ya,{className:`size-3.5`}):null,G(`run.print`)]},e):(0,s.jsxs)(`a`,{href:l(e),onClick:t=>Cb(t,l(e)),className:g(t),children:[t===0?(0,s.jsx)(Yi,{className:`size-3.5`}):null,iD[e]]},e)),cD&&n.length?(0,s.jsx)(sD,{url:l(n[0]),format:n[0],title:r,make:_(n[0])?m:void 0},l(n[0])):null]})}function uD({view:e}){let t=Math.round(Math.min(e.progress.done,e.progress.total)/Math.max(1,e.progress.total)*100);return(0,s.jsx)(`div`,{className:`h-[3px] w-full bg-paper-2`,children:(0,s.jsx)(`div`,{className:`h-full bg-ember transition-[width] duration-700 ease-out`,style:{width:`${t}%`}})})}var dD=(e,t)=>n=>{_b.put(`${Y(e)}/views/${t}`,{state:n}).catch(()=>void 0)};function fD({title:e,description:t,kicker:n}){return(0,s.jsxs)(`div`,{className:`mb-8`,children:[n?(0,s.jsx)(`p`,{className:`mb-4 text-[0.9375rem] text-ink-2 leading-relaxed`,children:n}):null,(0,s.jsx)(`h1`,{className:`font-display font-semibold text-[1.75rem] leading-[1.15] tracking-tight sm:text-[2rem]`,children:e}),t?(0,s.jsx)(`p`,{className:`mt-2 text-[0.9375rem] text-ink-3 leading-relaxed`,children:t}):null]})}function pD(e,t){let n={};for(let r of e.fields)n[r.id]=t.values[r.id]??t.prefill?.[r.id]??r.default??(r.kind===`multiselect`?[]:void 0);return n}function mD(e){return Array.from(e.querySelectorAll(`input:not([type="hidden"], [type="file"], [type="checkbox"], [type="color"], [type="range"], [disabled]), textarea:not([disabled])`)).filter(e=>!e.closest(`dialog`)&&e.offsetParent!==null)}function hD({view:e,run:t,step:n}){let[r,i]=(0,o.useState)(()=>pD(n,e)),[a,c]=(0,o.useState)(new Set),l=(0,o.useRef)(null),u=e.progress.done===0,d=Y_((0,o.useMemo)(()=>n.fields.filter(t=>!J_(t)||e.decidedFields?.includes(t.id)).map(t=>e.options?.[t.id]?.length?{...t,options:e.options[t.id]}:t),[n.fields,e.options,e.decidedFields]),e.known??{},r),f=()=>void t.submitPage(n.id,r);return(0,o.useEffect)(()=>{if(!l.current)return;let e=mD(l.current).filter(e=>e instanceof HTMLInputElement);for(let[t,n]of e.entries())(n.dataset.hint||!n.hasAttribute(`enterkeyhint`))&&(n.dataset.hint=`1`,n.setAttribute(`enterkeyhint`,t===e.length-1?`go`:`next`))}),(0,s.jsxs)(`form`,{ref:l,className:`animate-rise`,onSubmit:e=>{e.preventDefault(),a.size||f()},onKeyDown:e=>{let t=e.target;if(e.key!==`Enter`||e.defaultPrevented||e.nativeEvent.isComposing||!(t instanceof HTMLInputElement)||t.closest(`dialog`))return;let n=mD(e.currentTarget),r=n[n.indexOf(t)+1];r&&(e.preventDefault(),r.focus())},children:[(0,s.jsx)(fD,{title:n.title,description:n.description,kicker:u?e.wizard.intro:null}),(0,s.jsx)(`div`,{className:`flex flex-col gap-7`,children:d.map(n=>(0,s.jsx)(ES,{field:n,value:r[n.id],values:r,runId:e.id,view:e,error:t.fieldErrors[n.id],closed:e.closed?.[n.id],onChange:e=>i(t=>({...t,[n.id]:e})),onBusy:e=>c(t=>{if(t.has(n.id)===e)return t;let r=new Set(t);return e?r.add(n.id):r.delete(n.id),r})},n.id))}),(0,s.jsx)(gD,{view:e,run:t,sticky:!0,children:(0,s.jsxs)(J,{type:`submit`,size:`lg`,busy:t.busy,disabled:a.size>0,children:[n.cta||G(`run.next`),` `,(0,s.jsx)(_i,{className:`size-4`})]})})]})}function gD({view:e,run:t,sticky:n,children:r}){return(0,s.jsxs)(`div`,{className:q(`mt-10 flex items-center justify-between gap-3`,n&&`action-bar`),children:[e.canBack?(0,s.jsxs)(J,{variant:`ghost`,onClick:()=>void t.back(),disabled:t.busy,children:[(0,s.jsx)(hi,{className:`size-4`}),` `,G(`run.back`)]}):(0,s.jsx)(`span`,{}),r]})}function _D(){let e=Ub(),[t,n]=(0,o.useState)(!1),r=e!==`off`;return(0,s.jsxs)(`div`,{className:`mt-6 flex flex-col items-center gap-2`,children:[(0,s.jsxs)(`button`,{type:`button`,"aria-pressed":r,disabled:t,onClick:async()=>{if(r){Kb();return}n(!0),await Gb(),n(!1)},className:q(`inline-flex h-11 items-center gap-2 rounded-full px-4 font-medium text-[0.875rem] ring-1 transition`,r?`bg-ember-tint text-ink ring-ember`:`bg-card text-ink-2 ring-input hover:text-ink hover:ring-ink-4`),children:[r?(0,s.jsx)(Ci,{className:`size-4 text-ember-strong`}):(0,s.jsx)(Ti,{className:`size-4`}),G(r?`notify.on`:`notify.ask`)]}),(0,s.jsx)(`p`,{className:`max-w-xs text-[0.75rem] text-ink-4 leading-relaxed`,children:G(e===`off`?`notify.why`:e===`on`?`notify.onHint`:Wb()?`notify.blocked`:`notify.quiet`)})]})}function vD({view:e,compact:t,awake:n}){let r=(0,o.useMemo)(()=>{let t=[...e.events].reverse().find(t=>t.type===`step_started`&&t.stepId===e.step?.id);return t?new Date(t.at).getTime():Date.now()},[e.events,e.step?.id]),[i,a]=(0,o.useState)(Date.now());(0,o.useEffect)(()=>{let e=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(e)},[]);let c=[...e.events].reverse().find(t=>t.type===`step_started`&&t.stepId===e.step?.id)?.message??e.step?.title??G(`run.working`),l=e.events.filter(e=>(e.type===`tool`||e.type===`info`)&&new Date(e.at).getTime()>=r-500),u=l.slice(-4),{Mascot:d}=gb(),f=[...new Set(l.map(e=>e.asset).filter(e=>!!e))],p=[...l].reverse().find(e=>e.asset)?.asset;return(0,s.jsxs)(`div`,{className:`flex animate-rise flex-col items-center pt-6 text-center`,children:[(0,s.jsx)(d,{kind:e.wizard.avatar,size:t?130:170,fluffy:!0}),(0,s.jsx)(`h2`,{className:`mt-4 font-display font-semibold text-[1.375rem] tracking-tight`,children:c}),(0,s.jsx)(`div`,{className:`mt-1 text-[0.8125rem] text-ink-4 tabular-nums`,children:G(`run.elapsed`,{s:Math.max(0,Math.round((i-r)/1e3))})}),f.length?(0,s.jsx)(`div`,{className:`mt-5 flex max-w-full flex-wrap justify-center gap-2`,children:f.slice(-8).map(t=>(0,s.jsx)(`img`,{src:vb(`${Y(e.id)}/assets/${t}`),alt:``,className:q(`size-16 animate-rise rounded-lg bg-paper-2 object-cover ring-1 ring-border-soft transition sm:size-20`,t===p?`ring-2 ring-ember`:`opacity-70`)},t))}):null,(0,s.jsx)(`div`,{className:`mt-6 flex min-h-[7rem] w-full max-w-sm flex-col gap-1.5`,children:u.map((e,t)=>(0,s.jsxs)(`div`,{className:q(`flex items-center justify-center gap-2 text-[0.8125rem] transition-opacity`,t===u.length-1?`text-ink-2`:`text-ink-4`),children:[t===u.length-1?(0,s.jsx)(fo,{className:`size-3.5 animate-breathe text-ember`}):null,(0,s.jsx)(`span`,{className:`truncate`,children:Cv(e)})]},e.id))}),t?null:(0,s.jsx)(_D,{}),n?(0,s.jsx)(`p`,{className:`mt-3 text-[0.75rem] text-ink-4`,children:G(`run.awake`)}):null]})}function yD(e){let t=(0,o.useRef)({running:!1,since:0,ask:null});(0,o.useEffect)(()=>{if(!e)return;let n=t.current,r=e.status===`running`,i=r?n.running?n.since:Date.now():0,a=t=>{document.visibilityState!==`visible`&&!document.title.startsWith(`● `)&&(document.title=`● ${document.title}`),Jb({title:e.wizard.title,body:t,tag:e.id})};r&&e.ask&&e.ask.id!==n.ask?a(G(`notify.needsYou`)):!r&&n.running&&Date.now()-n.since>8e3&&a(e.status===`failed`?G(`run.failed`):e.status===`done`?G(`notify.done`):G(`notify.next`)),t.current={running:r,since:i,ask:e.ask?.id??null}},[e]),(0,o.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&document.title.startsWith(`● `)&&(document.title=document.title.slice(2))};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[])}function bD({view:e,run:t,step:n,studio:r}){let[i,a]=(0,o.useState)({}),[c,l]=(0,o.useState)({}),[u,d]=(0,o.useState)(``),f=e.shown.filter(e=>e.output),[p,m]=(0,o.useState)(f.length===1?f[0].step.id:null),[h,g]=(0,o.useState)({}),_=(0,o.useRef)(null),v=f.find(e=>e.step.id===p),y=v?.step.type===`generate`&&(v.output?.assets?.length??0)>1,b=()=>{v&&u.trim()&&t.regenerate(n.id,v.step.id,u.trim(),h[v.step.id])};return(0,s.jsxs)(`div`,{className:`animate-rise`,children:[(0,s.jsx)(fD,{title:n.title,description:n.description}),(0,s.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[e.shown.filter(e=>e.output).map(({step:t,output:o})=>{let u=Fx(t)?t:null,d=!!n.edit&&t.type===`agent`&&(t.output.format!==`json`||!!u),f=i[t.id],p=e=>(0,s.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3`,children:[(0,s.jsx)(`h3`,{className:`font-medium text-[0.8125rem] text-ink-3 uppercase tracking-[0.06em]`,children:t.title}),(0,s.jsxs)(`div`,{className:`flex items-center`,children:[d&&!c[t.id]?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>l(e=>({...e,[t.id]:!0})),className:`inline-flex h-8 items-center gap-1.5 rounded-full px-3 text-[0.8125rem] text-ink-2 hover:bg-accent hover:text-ink coarse:h-11`,children:[(0,s.jsx)(Ga,{className:`size-3.5`}),` `,G(`run.edit`)]}):null,e]})]}),v=u&&o&&d&&c[t.id]?(0,s.jsx)(`div`,{className:`overflow-hidden rounded-xl bg-card ring-1 ring-border-soft`,children:(0,s.jsx)(jx,{shape:j_(u),value:f&&typeof f==`object`?f:o.json??{},onChange:e=>a(n=>({...n,[t.id]:e})),start:`edit`})}):(0,s.jsx)(rD,{base:`${Y(e.id)}`,step:t,output:o,onView:dD(e.id,t.id),editable:d&&c[t.id]&&!u,draft:typeof f==`string`?f:void 0,onDraft:e=>a(n=>({...n,[t.id]:e})),picked:h[t.id],onPick:n.regenerate?e=>{m(t.id),g(n=>{let r=n[t.id]??[];return{...n,[t.id]:r.includes(e)?r.filter(t=>t!==e):[...r,e]}}),_.current?.focus()}:void 0,onSurfaceAction:n.regenerate?()=>{m(t.id),_.current?.focus()}:void 0});return(0,s.jsx)(`section`,{children:r&&u&&o?(0,s.jsx)(Ix,{runId:e.id,step:u,output:o,header:p,children:v}):(0,s.jsxs)(s.Fragment,{children:[p(null),v]})},t.id)}),e.lists.map(t=>(0,s.jsxs)(`section`,{children:[(0,s.jsx)(`h3`,{className:`mb-2 font-medium text-[0.8125rem] text-ink-3 uppercase tracking-[0.06em]`,children:t.def.title}),t.def.check?(0,s.jsx)(oS,{runId:e.id,list:t}):(0,s.jsx)(rS,{runId:e.id,list:t,editable:!0})]},t.def.id)),n.regenerate&&f.length?(0,s.jsxs)(sy,{className:`p-3`,children:[f.length>1?(0,s.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 px-1 pb-2`,children:[(0,s.jsx)(`span`,{className:`mr-1 text-[0.8125rem] text-ink-3`,children:G(`run.feedbackTarget`)}),f.map(({step:e})=>(0,s.jsx)(`button`,{type:`button`,"aria-pressed":p===e.id,onClick:()=>{m(e.id),_.current?.focus()},className:q(`inline-flex h-8 items-center rounded-full px-3 text-[0.8125rem] ring-1 transition coarse:h-11`,p===e.id?`bg-ember-tint text-ink ring-ember`:`bg-card text-ink-2 ring-input hover:text-ink`),children:e.title},e.id))]}):null,(0,s.jsx)($v,{ref:_,minRows:2,maxRows:8,value:u,placeholder:G(`run.feedbackPlaceholder`),onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())},className:`border-0 bg-transparent shadow-none focus:ring-0`}),(0,s.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-1 pt-1`,children:[(0,s.jsx)(`span`,{className:`min-w-0 text-[0.75rem] text-ink-3`,children:y?h[v.step.id]?.length?G(`run.regeneratePicked`,{n:[...h[v.step.id]].sort((e,t)=>e-t).map(e=>e+1).join(`, `)}):G(`run.regenerateAll`):!v&&u.trim()?G(`run.feedbackPick`):null}),(0,s.jsxs)(J,{size:`sm`,variant:`secondary`,busy:t.busy,disabled:!u.trim()||!v,onClick:b,children:[(0,s.jsx)(Za,{className:`size-3.5`}),` `,G(`run.regenerateGo`)]})]})]}):null]}),(0,s.jsx)(gD,{view:e,run:t,sticky:!0,children:(0,s.jsxs)(J,{size:`lg`,busy:t.busy,onClick:()=>void t.accept(n.id,Object.keys(i).length?i:void 0),children:[G(`run.accept`),` `,(0,s.jsx)(_i,{className:`size-4`})]})})]})}function xD({view:e,run:t,step:n,onRestart:r,studio:i}){let a=e.shown.filter(e=>e.output),{Mascot:o,ShareResultButton:c}=gb();return(0,s.jsxs)(`div`,{className:`animate-rise`,children:[(0,s.jsxs)(`div`,{className:`mb-8 flex flex-wrap items-center gap-x-4 gap-y-5`,children:[(0,s.jsx)(o,{kind:e.wizard.avatar,size:64}),(0,s.jsxs)(`div`,{className:`min-w-0 flex-1 basis-[12rem]`,children:[(0,s.jsx)(`h1`,{className:`text-balance font-display font-semibold text-[1.75rem] leading-tight tracking-tight sm:text-[2rem]`,children:n.title}),n.message?(0,s.jsx)(`p`,{className:`mt-1 text-[0.9375rem] text-ink-3`,children:n.message}):null]}),c&&e.shown.some(e=>e.output)?(0,s.jsx)(`div`,{className:`max-sm:basis-full`,children:(0,s.jsx)(c,{runId:e.id,title:`${n.title} · ${e.wizard.title}`,initial:e.shareUrl?{url:e.shareUrl,expiresAt:e.expiresAt}:null})}):null]}),(0,s.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[a.map(({step:n,output:r,formats:a,label:o})=>{let c=t=>(0,s.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,s.jsx)(`h3`,{className:`font-display font-semibold text-[1.0625rem]`,children:o??n.title}),(0,s.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,s.jsx)(lD,{base:`${Y(e.id)}`,stepId:n.id,formats:a,title:o??n.title,step:n,output:r??void 0,foot:`${e.wizard.title} · ${new Date().toLocaleDateString(gb().lang)}`}),t]})]}),l=(0,s.jsx)(CD,{view:e,run:t,step:n,output:r,onView:dD(e.id,n.id)});return(0,s.jsxs)(sy,{className:`p-4 sm:p-5`,children:[i&&Fx(n)&&r?(0,s.jsx)(Ix,{runId:e.id,step:n,output:r,header:c,children:l}):(0,s.jsxs)(s.Fragment,{children:[c(null),l]}),r?.assets?.some(e=>e.ai)?(0,s.jsx)(`p`,{className:`mt-3 text-[0.75rem] text-ink-3 leading-relaxed`,children:G(`ai.publish`)}):null]},n.id)}),e.lists.map(t=>(0,s.jsxs)(sy,{className:`p-4 sm:p-5`,children:[(0,s.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,s.jsx)(`h3`,{className:`font-display font-semibold text-[1.0625rem]`,children:t.label??t.def.title}),(0,s.jsx)(cS,{runId:e.id,list:t})]}),(0,s.jsx)(rS,{runId:e.id,list:t,editable:!0})]},t.def.id))]}),(0,s.jsx)(gD,{view:e,run:t,children:r?(0,s.jsxs)(J,{variant:`secondary`,onClick:r,children:[(0,s.jsx)($a,{className:`size-4`}),` `,G(`run.again`)]}):(0,s.jsx)(`span`,{})})]})}function SD({view:e,run:t}){let{Mascot:n}=gb();return(0,s.jsxs)(`div`,{className:`flex animate-rise flex-col items-center pt-8 text-center`,children:[(0,s.jsx)(n,{kind:e.wizard.avatar,size:90}),(0,s.jsx)(`h2`,{className:`mt-4 font-display font-semibold text-[1.375rem]`,children:G(`run.failed`)}),(0,s.jsx)(`p`,{className:`mt-2 max-w-md text-[0.9375rem] text-ink-3`,children:(0,s.jsx)(dy,{text:e.error??``})}),(0,s.jsxs)(`div`,{className:`mt-8 flex gap-3`,children:[e.canBack?(0,s.jsxs)(J,{variant:`ghost`,onClick:()=>void t.back(),children:[(0,s.jsx)(hi,{className:`size-4`}),` `,G(`run.back`)]}):null,(0,s.jsxs)(J,{onClick:()=>void t.retry(),busy:t.busy,children:[(0,s.jsx)($a,{className:`size-4`}),` `,G(`run.retry`)]})]})]})}function CD({view:e,run:t,step:n,output:r,onView:i}){let[a,c]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1),d=Y(e.id),f=e.translation?.results[n.id];if(!(e.translation&&r?.text&&t.translateResult))return(0,s.jsx)(rD,{base:d,step:n,output:r,onView:i});let p=f&&!a?{...r,text:f}:r;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rD,{base:d,step:n,output:p,onView:i}),(0,s.jsx)(`div`,{className:`mt-3 flex items-center gap-3 text-[0.8125rem] text-ink-3`,children:f?(0,s.jsxs)(s.Fragment,{children:[a?null:(0,s.jsx)(`span`,{children:G(`translation.machine`)}),(0,s.jsx)(`button`,{type:`button`,className:`underline-offset-4 hover:text-ink hover:underline coarse:min-h-11`,onClick:()=>c(e=>!e),children:G(a?`translation.showTranslated`:`translation.showOriginal`)})]}):(0,s.jsxs)(J,{size:`sm`,variant:`secondary`,busy:l,onClick:async()=>{u(!0),await t.translateResult?.(n.id),u(!1)},children:[(0,s.jsx)(xa,{className:`size-4`}),` `,G(l?`translation.working`:`result.translate`)]})})]})}function wD({run:e,compact:t,onRestart:n,onView:r,stickyProgress:i,studio:a}){let{view:c}=e;Tv(c?.translation?.labels),(0,o.useEffect)(()=>{r?.(c)},[c,r]),Nb();let l=Pb(c?.status===`running`&&!c.ask);if(yD(c),e.notFound)return(0,s.jsx)(`div`,{className:`py-24 text-center text-ink-3`,children:G(`run.notFound`)});if(!c)return(0,s.jsx)(`div`,{className:`flex justify-center py-24 text-ink-4`,children:(0,s.jsx)(oy,{})});let u=c.step,d=null;if(c.status===`running`&&c.ask)d=(0,s.jsx)(Ob,{runId:c.id,ask:c.ask},c.ask.id);else if(c.status===`running`)d=(0,s.jsx)(vD,{view:c,compact:t,awake:l});else if(c.status===`failed`)d=(0,s.jsx)(SD,{view:c,run:e});else if(c.status===`cancelled`)d=(0,s.jsx)(`div`,{className:`py-24 text-center text-ink-3`,children:G(`run.cancelled`)});else if(u?.type===`page`)d=(0,s.jsx)(hD,{view:c,run:e,step:u},u.id);else if(u?.type===`review`){let t=c.shown.map(e=>e.output?.at??``).join(`|`);d=(0,s.jsx)(bD,{view:c,run:e,step:u,studio:a},`${u.id}:${t}`)}else u?.type===`result`&&(d=(0,s.jsx)(xD,{view:c,run:e,step:u,onRestart:n,studio:a}));let f=u?.type===`review`&&c.status===`waiting_input`&&c.lists.some(e=>e.def.check);return(0,s.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[i?(0,s.jsx)(`div`,{className:`sticky top-0 z-10`,children:(0,s.jsx)(uD,{view:c})}):(0,s.jsx)(uD,{view:c}),(0,s.jsxs)(`div`,{className:q(`safe-x mx-auto w-full flex-1`,f?`max-w-[1240px] py-8`:t?`max-w-[620px] py-8`:`max-w-[640px] py-8 sm:py-16`),children:[d,e.error&&c.status!==`failed`?(0,s.jsx)(`div`,{className:`mt-4 rounded-lg bg-rose-tint px-4 py-3 text-[0.875rem] text-rose`,children:e.error}):null,c.keeps&&c.status!==`running`?(0,s.jsx)(`div`,{className:`mt-10 flex justify-center`,children:(0,s.jsx)(uS,{runId:c.id})}):null]})]})}var TD=``.replace(/\/+$/,``),ED=`${TD}/studio`,DD=null;function OD(e){DD=e?e.replace(/\/+$/,``):null}function kD(){return DD??`${window.location.origin}${TD}`}function AD(e){return!TD||!e.startsWith(`/`)||e.startsWith(`//`)||e===TD||e.startsWith(`${TD}/`)?e:`${TD}${e}`}function jD(e){return`/studio/${e.replace(/^\/+/,``)}`}var MD=new Set,ND=0,PD=20;function FD(e,t,n){let r=String(t||``).slice(0,2e3);if(!r||ND>=PD||MD.has(r))return;MD.add(r),ND++;let i=JSON.stringify({level:e,message:r,stack:n?.slice(0,4e3),url:window.location.href.slice(0,500),agent:navigator.userAgent.slice(0,300)});fetch(AD(`/api/log`),{method:`POST`,headers:{"content-type":`application/json`},body:i,keepalive:!0,credentials:`include`}).catch(()=>void 0)}function ID(){window.addEventListener(`error`,e=>{let t=e.error;FD(`error`,e.message||String(e.error),t?.stack)}),window.addEventListener(`unhandledrejection`,e=>{let t=e.reason;FD(`error`,t?.message??String(e.reason),t?.stack)})}var LD=fb(AD,{},e=>FD(`error`,e));function RD(e){try{return JSON.parse(e)}catch{return{error:e}}}async function zD(e,t,n,r){let i=await fetch(AD(e),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`,"accept-language":Lv},body:JSON.stringify(t),signal:r});if(!i.ok||!i.body){let e=RD(await i.text());throw new lb(e?.error??i.statusText,i.status,e)}let a=i.body.getReader(),o=new TextDecoder,s=``;for(;;){let{done:e,value:t}=await a.read();if(e)break;s+=o.decode(t,{stream:!0});let r=s.indexOf(`
|
|
131
|
-
|
|
132
|
-
`);for(;r!==-1;){let e=s.slice(0,r);s=s.slice(r+2);let t=`message`,i=[];for(let n of e.split(`
|
|
133
|
-
`))n.startsWith(`event:`)?t=n.slice(6).trim():n.startsWith(`data:`)&&i.push(n.slice(5).replace(/^ /,``));n(t,i.join(`
|
|
134
|
-
`)),r=s.indexOf(`
|
|
135
|
-
|
|
136
|
-
`)}}}var BD=e=>[`project-files`,e];function VD(e){return Ye({queryKey:BD(e),queryFn:()=>LD.get(`/api/studio/projects/${e}/files`),refetchInterval:e=>e.state.data?.files.some(e=>e.status===`pending`)?2e3:!1})}function HD(e,t){return AD(`/api/studio/projects/${e}/files/${t}/content`)}function UD(e,t=!1){let n=l(),[r,i]=(0,o.useState)(!1),[a,s]=(0,o.useState)(null),c=()=>n.invalidateQueries({queryKey:BD(e)}),u=async e=>{s(null);try{await e()}catch(e){s(e.message)}finally{await c()}};return{busy:r,error:a,readOnly:t,upload:async(t,n)=>{i(!0);let r=[];return await u(async()=>{for(let i of n)r.push(await LD.upload(`/api/studio/projects/${e}/files?kind=${t}`,i)),await c()}),i(!1),r},fromUrl:async(t,n)=>{let r=await LD.post(`/api/studio/projects/${e}/files/url`,{kind:t,url:n});return r.file&&await c(),r},describe:(t,n)=>u(()=>LD.patch(`/api/studio/projects/${e}/files/${t}`,{description:n})),remove:t=>u(()=>LD.del(`/api/studio/projects/${e}/files/${t}`)),reindex:t=>u(()=>LD.post(`/api/studio/projects/${e}/files/${t}/reindex`)),order:(t,n)=>u(()=>LD.put(`/api/studio/projects/${e}/files/order`,{kind:t,ids:n}))}}function WD(e,t){let n=`wz.layout.${e}`,[r,i]=(0,o.useState)(()=>{try{let e=localStorage.getItem(n);return e===`list`||e===`cards`?e:t}catch{return t}});return[r,()=>i(e=>{let t=e===`list`?`cards`:`list`;try{localStorage.setItem(n,t)}catch{}return t})]}function GD(e,t,n=700){let[r,i]=(0,o.useState)(`idle`),[a,s]=(0,o.useState)(null),c=JSON.stringify(e),l=(0,o.useRef)(c),u=(0,o.useRef)({value:e,json:c,save:t});u.current={value:e,json:c,save:t};let d=(0,o.useRef)(Promise.resolve()),f=(0,o.useCallback)(()=>{let e=u.current;e.json!==l.current&&(l.current=e.json,i(`saving`),d.current=d.current.then(async()=>{try{await e.save(e.value),s(null),i(`saved`)}catch(e){l.current=``,s(e.message),i(`error`)}}))},[]);return(0,o.useEffect)(()=>{if(c===l.current)return;let e=setTimeout(f,n);return()=>clearTimeout(e)},[c,n,f]),(0,o.useEffect)(()=>f,[f]),{state:r,error:a}}function KD(e){return e<1e6?`${Math.max(1,Math.round(e/1e3))} KB`:`${(e/1e6).toFixed(1)} MB`}var qD=[`text`,`longtext`,`number`,`date`,`url`,`email`,`phone`,`boolean`],JD=/^(\d{4}-\d{2}-\d{2}|\d{1,2}\.\s?\d{1,2}\.\s?\d{4})$/,YD=/^[+-]?\d{1,3}([.,\s']?\d{3})*([.,]\d+)?$/,XD=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/,ZD=/^(https?:\/\/|www\.)\S+$/i,QD=/^\+?[\d\s()/.-]{7,20}$/,$D=/^(ja|nein|yes|no|true|false)$/i;function eO(e){let t=e.trim();return t?t.includes(`
|
|
137
|
-
`)||t.length>140?`longtext`:$D.test(t)?`boolean`:XD.test(t)?`email`:ZD.test(t)?`url`:JD.test(t)?`date`:YD.test(t)&&!/^(\+|0\d)/.test(t)?`number`:QD.test(t)&&t.replace(/\D/g,``).length>=7?`phone`:`text`:`text`}function tO(e,t=[]){let n=e.toLowerCase().replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/ß/g,`ss`).normalize(`NFD`).replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``).slice(0,40)||`fakt`,r=n;for(let e=2;t.includes(r);e++)r=`${n}_${e}`;return r}var nO=[`adresse`,`plz`,`ort`,`uid`,`telefon`,`e_mail`,`website`,`iban`],rO=[`linear`,`radial`,`conic`];function iO(e){let t=[...e.stops].sort((e,t)=>e.at-t.at).map(e=>`${e.color} ${Math.round(e.at)}%`).join(`, `);return e.type===`radial`?`radial-gradient(circle at center, ${t})`:e.type===`conic`?`conic-gradient(from ${Math.round(e.angle)}deg at center, ${t})`:`linear-gradient(${Math.round(e.angle)}deg, ${t})`}var aO={top:0,"top right":45,right:90,"bottom right":135,bottom:180,"bottom left":225,left:270,"top left":315};function oO(e){let t=e.trim().match(/^(repeating-)?(linear|radial|conic)-gradient\(\s*([\s\S]*)\)\s*;?$/i);if(!t)return null;let n=t[2].toLowerCase(),r=t[3].split(/,(?![^(]*\))/).map(e=>e.trim()),i=n===`linear`?180:0,a=r[0]??``;if(!/^#|^rgb|^hsl|^oklch/i.test(a)){r.shift();let e=a.match(/(-?[\d.]+)deg/),t=a.match(/^to\s+(.+)$/i)?.[1].toLowerCase();e?i=Number(e[1]):t&&t in aO&&(i=aO[t])}let o=r.map(e=>e.match(/^(#[0-9a-f]{3,8})\b\s*(-?[\d.]+%)?/i)).filter(e=>!!e).map((e,t,n)=>({color:e[1].toLowerCase(),at:e[2]?Number.parseFloat(e[2]):n.length>1?t/(n.length-1)*100:0}));return o.length>=2?{type:n,angle:(i%360+360)%360,stops:o}:null}function sO(e,t){let n=new Set(t?.flatMap(e=>e.logos));return e.find(e=>!n.has(e.id))??e[0]}var cO=[`bullet`,`do`,`dont`,`question`,`important`,`number`],lO=[`web`,`documents`,`print`,`images`,`video`],uO=[300,400,500,600,700,800],dO={facts:100,colors:32,fonts:6,textStyles:16,logoSections:8,logoRules:16,files:{logo:24,asset:100,document:2e3,pattern:24},gradients:24,bytes:{logo:5e6,asset:15e6,video:8e7,document:3e7,pattern:1e7}};function fO({id:e,children:t}){return(0,s.jsx)(`div`,{id:e,"data-assist":e,className:`scroll-mt-6 max-md:scroll-mt-20`,children:t})}function pO({title:e,hint:t,save:n,action:r,tabs:i,locked:a,plain:o,children:c}){return(0,s.jsxs)(`section`,{"data-assist-section":e,className:`flex flex-col gap-2.5`,children:[(0,s.jsxs)(`div`,{className:`group/head flex items-end justify-between gap-4 px-1`,children:[(0,s.jsxs)(`div`,{className:`min-w-0`,children:[(0,s.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,s.jsx)(`h2`,{className:`font-display font-semibold text-lg leading-tight`,children:e}),n?.state===`saving`?(0,s.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-[0.75rem] text-ink-3`,children:[(0,s.jsx)(oy,{className:`size-3`}),` `,K(`project.saving`)]}):n?.state===`saved`?(0,s.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[0.75rem] text-moss`,children:[(0,s.jsx)(Ni,{className:`size-3.5`}),` `,K(`settings.saved`)]}):null]}),t?(0,s.jsx)(`p`,{className:`mt-1 text-[0.875rem] text-ink-3 leading-snug`,children:t}):null]}),r?(0,s.jsx)(`div`,{className:`shrink-0`,children:r}):null]}),i,o?c:(0,s.jsxs)(sy,{className:`p-3.5 sm:p-5`,children:[a?(0,s.jsx)(`fieldset`,{disabled:!0,className:`min-w-0`,children:c}):c,n?.state===`error`&&n.error?(0,s.jsx)(`p`,{className:`mt-4 text-[0.875rem] text-rose`,children:n.error}):null]})]})}function mO({value:e,onChange:t,onEnter:n,placeholder:r,busy:i}){return(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(ro,{className:`-translate-y-1/2 pointer-events-none absolute top-1/2 left-3 size-4 text-ink-4`}),(0,s.jsx)(`input`,{type:`search`,value:e,placeholder:r,onChange:e=>t(e.target.value),onKeyDown:e=>e.key===`Enter`&&n?.(),className:`h-9 w-full rounded-full border border-input bg-card pr-3 pl-9 text-[0.875rem] text-ink outline-none transition placeholder:text-ink-4 focus:border-focus focus:ring-4 focus:ring-focus-glow`}),i?(0,s.jsx)(oy,{className:`-translate-y-1/2 absolute top-1/2 right-3 size-4 text-ink-3`}):null]})}function hO({onFiles:e,accept:t,multiple:n=!0,className:r,children:i}){return(0,s.jsxs)(`label`,{onDragOver:e=>{e.preventDefault(),e.currentTarget.dataset.over=`1`},onDragLeave:e=>{delete e.currentTarget.dataset.over},onDrop:t=>{t.preventDefault(),delete t.currentTarget.dataset.over;let r=Array.from(t.dataTransfer.files);r.length&&e(n?r:r.slice(0,1))},className:q(`flex cursor-pointer items-center justify-center gap-2 rounded-lg border border-input border-dashed text-[0.875rem] text-ink-3 transition focus-within:border-focus focus-within:ring-4 focus-within:ring-focus-glow hover:border-ink-4 hover:text-ink data-[over]:border-focus data-[over]:bg-paper-2 data-[over]:text-ink`,r),children:[i,(0,s.jsx)(`input`,{className:`sr-only`,type:`file`,accept:t,multiple:n,onChange:t=>{let n=Array.from(t.target.files??[]);t.target.value=``,n.length&&e(n)}})]})}function gO({value:e,onChange:t,placeholder:n,maxLength:r,className:i,autoFocus:a,label:o,onEnter:c,fit:l}){let u=(0,s.jsx)(`input`,{value:e,size:l?1:void 0,"aria-label":o,placeholder:n,maxLength:r,autoFocus:a,onChange:e=>t(e.target.value),onKeyDown:e=>{e.key===`Enter`&&c&&(e.preventDefault(),c())},className:q(`-mx-1 block w-[calc(100%+0.5rem)] rounded-md bg-transparent px-1 py-0.5 outline-none transition placeholder:text-ink-4 hover:bg-paper-2 focus:bg-card focus:text-ink focus:ring-1 focus:ring-border`,l&&`col-start-1 row-start-1 min-w-0`,i)});return l?(0,s.jsxs)(`span`,{className:`inline-grid min-w-0 max-w-full`,children:[(0,s.jsx)(`span`,{"aria-hidden":!0,className:q(`invisible col-start-1 row-start-1 overflow-hidden whitespace-pre`,i),children:e||n}),u]}):u}function _O(){let[e,t]=(0,o.useState)(!1),n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!e)return;let r=e=>{n.current?.contains(e.target)||t(!1)},i=e=>e.key===`Escape`&&t(!1);return document.addEventListener(`mousedown`,r),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`keydown`,i)}},[e]),{open:e,setOpen:t,ref:n}}function vO({entries:e}){let{open:t,setOpen:n,ref:r}=_O();return(0,s.jsxs)(`div`,{className:`relative`,ref:r,children:[(0,s.jsxs)(J,{variant:`secondary`,size:`sm`,"aria-haspopup":`menu`,"aria-expanded":t,onClick:()=>n(e=>!e),children:[(0,s.jsx)(qa,{className:`size-4`}),` `,K(`project.add`)]}),t?(0,s.jsx)(`div`,{role:`menu`,className:`absolute top-10 right-0 z-50 w-56 animate-rise rounded-xl bg-card p-1.5 shadow-overlay ring-1 ring-border-soft`,children:e.map(e=>(0,s.jsxs)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{n(!1),e.onPick()},className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-[0.875rem] text-ink-2 hover:bg-accent hover:text-ink`,children:[e.icon,e.label]},e.label))}):null]})}var yO=()=>Math.random().toString(36).slice(2,10);function bO({options:e,value:t,onChange:n,className:r}){return(0,s.jsxs)(`label`,{title:K(`project.sectionMove`),className:q(`relative inline-flex size-8 shrink-0 items-center justify-center rounded-full text-ink-3 transition hover:text-ink coarse:size-11`,r),children:[(0,s.jsx)(pa,{className:`size-4`}),(0,s.jsx)(`select`,{"aria-label":K(`project.sectionMove`),value:t,onChange:e=>n(e.target.value),className:`absolute inset-0 cursor-pointer opacity-0`,children:e.map(e=>(0,s.jsx)(`option`,{value:e.value,children:e.label},e.value))})]})}function xO(e){let[t,n]=(0,o.useState)(()=>e.map(e=>({id:yO(),text:e.text,mark:e.mark??`bullet`}))),[r,i]=(0,o.useState)(null);return{rows:t,setRows:n,focus:r,add:(e=t.length-1)=>{if(t.length>=dO.logoRules)return;let r=yO();i(r);let a=t[e]?.mark??`bullet`;n(t=>[...t.slice(0,e+1),{id:r,text:``,mark:a},...t.slice(e+1)])},rules:t.map(({text:e,mark:t})=>t===`bullet`?{text:e}:{text:e,mark:t}),full:t.length>=dO.logoRules}}var SO={bullet:`project.markBullet`,do:`project.markDo`,dont:`project.markDont`,question:`project.markQuestion`,important:`project.markImportant`,number:`project.markNumber`};function CO({mark:e,n:t}){let n=`grid size-5 place-items-center rounded-full font-semibold text-[0.6875rem]`;switch(e){case`do`:return(0,s.jsx)(`span`,{className:q(n,`bg-moss-tint text-moss`),children:(0,s.jsx)(Ni,{className:`size-3`,strokeWidth:3})});case`dont`:return(0,s.jsx)(`span`,{className:q(n,`bg-rose-tint text-rose`),children:(0,s.jsx)(Eo,{className:`size-3`,strokeWidth:3})});case`question`:return(0,s.jsx)(`span`,{className:q(n,`bg-amber-tint text-ink-2`),children:`?`});case`important`:return(0,s.jsx)(`span`,{className:q(n,`bg-ember-tint text-ember-strong`),children:`!`});case`number`:return(0,s.jsx)(`span`,{className:q(n,`bg-paper-2 text-ink-2 tabular-nums`),children:t});default:return(0,s.jsx)(`span`,{className:`grid size-5 place-items-center`,children:(0,s.jsx)(`span`,{className:`size-1.5 rounded-full bg-ink-4`})})}}function wO({mark:e,n:t,onChange:n}){let{open:r,setOpen:i,ref:a}=_O();return(0,s.jsxs)(`div`,{className:`relative shrink-0`,ref:a,children:[(0,s.jsx)(`button`,{type:`button`,"aria-haspopup":`menu`,"aria-expanded":r,"aria-label":K(SO[e]),title:K(SO[e]),onClick:()=>i(e=>!e),className:`grid size-7 place-items-center rounded-full transition hover:bg-paper-2`,children:(0,s.jsx)(CO,{mark:e,n:t})}),r?(0,s.jsx)(`div`,{role:`menu`,className:`absolute top-7 left-0 z-50 w-44 animate-rise rounded-xl bg-card p-1.5 shadow-overlay ring-1 ring-border-soft`,children:cO.map(t=>(0,s.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":t===e,onClick:()=>{n(t),i(!1)},className:q(`flex w-full items-center gap-3 rounded-lg px-2.5 py-1.5 text-left text-[0.875rem] hover:bg-accent hover:text-ink`,t===e?`text-ink`:`text-ink-2`),children:[(0,s.jsx)(`span`,{className:`grid size-5 place-items-center`,children:(0,s.jsx)(CO,{mark:t,n:1})}),K(SO[t])]},t))}):null]})}function TO({rules:e,placeholder:t,readOnly:n}){if(!e.rows.length)return null;let r=t=>e.rows.slice(0,t+1).filter(e=>e.mark===`number`).length;return(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h3`,{className:`font-medium text-[0.9375rem]`,children:K(`project.rules`)}),n?null:(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3 leading-snug`,children:K(`project.rulesHint`)}),(0,s.jsx)(`ul`,{className:`mt-2 flex flex-col`,children:e.rows.map((i,a)=>(0,s.jsx)(`li`,{className:`group/rule flex items-center gap-1.5 py-0.5`,children:n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`span`,{className:`grid size-7 shrink-0 place-items-center`,children:(0,s.jsx)(CO,{mark:i.mark,n:r(a)})}),(0,s.jsx)(`span`,{className:`py-0.5 text-[0.9375rem] text-ink`,children:i.text})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wO,{mark:i.mark,n:r(a),onChange:t=>e.setRows(e=>e.map(e=>e.id===i.id?{...e,mark:t}:e))}),(0,s.jsx)(gO,{value:i.text,label:K(`project.rules`),placeholder:t,maxLength:200,autoFocus:i.id===e.focus,onChange:t=>e.setRows(e=>e.map(e=>e.id===i.id?{...e,text:t}:e)),onEnter:()=>e.add(a),className:`text-[0.9375rem] text-ink`}),(0,s.jsx)(Jv,{label:K(`project.remove`),onClick:()=>e.setRows(e=>e.filter(e=>e.id!==i.id)),className:`size-7 opacity-0 transition focus:opacity-100 group-hover/rule:opacity-100 coarse:opacity-100 hover:text-rose`,children:(0,s.jsx)(vo,{className:`size-3.5`})})]})},i.id))}),n||e.full?null:(0,s.jsx)(EO,{label:K(`project.ruleNew`),onClick:()=>e.add(),className:`mt-1`})]})}function EO({label:e,onClick:t,className:n}){return(0,s.jsxs)(`button`,{type:`button`,onClick:t,className:q(`inline-flex items-center gap-1.5 self-start rounded-full py-1 pr-2 text-[0.875rem] text-ink-3 transition hover:text-ink`,n),children:[(0,s.jsx)(`span`,{className:`grid size-7 place-items-center`,children:(0,s.jsx)(qa,{className:`size-4`})}),e]})}function DO({title:e,description:t,titlePlaceholder:n,descriptionPlaceholder:r,kind:i,autoFocus:a,readOnly:o,onChange:c,onRemove:l}){let u=i?(0,s.jsx)(`span`,{role:`img`,"aria-label":i.label,title:i.label,className:`shrink-0 self-center text-ink-4 [&>svg]:size-4`,children:i.icon}):null;return(0,s.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,s.jsx)(`div`,{className:`min-w-0 flex-1`,children:o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,s.jsx)(`h3`,{className:`min-w-0 truncate font-medium text-[0.9375rem]`,children:e}),u]}),t?(0,s.jsx)(`p`,{className:`text-[0.875rem] text-ink-3 leading-snug`,children:t}):null]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,s.jsx)(gO,{fit:!!i,value:e,label:n,placeholder:n,maxLength:80,autoFocus:a,onChange:e=>c({title:e}),className:`font-medium text-[0.9375rem]`}),u]}),r===void 0?null:(0,s.jsx)(gO,{value:t??``,label:r,placeholder:r,maxLength:400,onChange:e=>c({description:e}),className:`text-[0.875rem] text-ink-3`})]})}),o?null:(0,s.jsx)(Jv,{label:K(`project.sectionRemove`),onClick:l,className:`opacity-0 transition focus:opacity-100 group-hover/section:opacity-100 coarse:opacity-100 hover:text-rose`,children:(0,s.jsx)(vo,{className:`size-4`})})]})}var OO=!1;function kO(){if(!(typeof window>`u`||OO))return window.SpeechRecognition??window.webkitSpeechRecognition}var AO=typeof navigator<`u`&&!!navigator.mediaDevices?.getUserMedia&&typeof MediaRecorder<`u`,jO=`wizards.dictation`,MO=new Set,NO=(()=>{try{let e=JSON.parse(localStorage.getItem(jO)??`{}`);return{deviceId:String(e.deviceId??``),hold:e.hold===!0}}catch{return{deviceId:``,hold:!1}}})();function PO(){return[(0,o.useSyncExternalStore)(e=>(MO.add(e),()=>MO.delete(e)),()=>NO),(0,o.useCallback)(e=>{NO={...NO,...e};try{localStorage.setItem(jO,JSON.stringify(NO))}catch{}for(let e of MO)e()},[])]}function FO(){let[e,t]=(0,o.useState)([]),n=(0,o.useCallback)(async()=>{if(!navigator.mediaDevices?.enumerateDevices)return;let e=await navigator.mediaDevices.enumerateDevices();t(e.filter(e=>e.kind===`audioinput`&&!!e.deviceId&&e.deviceId!=="default"&&e.deviceId!==`communications`).map(e=>({deviceId:e.deviceId,label:e.label})))},[]);return(0,o.useEffect)(()=>(n(),navigator.mediaDevices?.addEventListener?.(`devicechange`,n),()=>navigator.mediaDevices?.removeEventListener?.(`devicechange`,n)),[n]),{devices:e,named:e.some(e=>e.label),allow:async()=>{try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});for(let t of e.getTracks())t.stop()}catch{return!1}return await n(),!0},refresh:n}}function IO(e,t){let n=e.trimEnd(),r=t.trim();return n&&r?`${n} ${r}`:n||r}function LO(e,t,n={}){let r=n.endpoint===void 0?`/api/studio/transcribe`:n.endpoint,i=AO&&r!==null,a=n.deviceId??``,[s,c]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1),[d,f]=(0,o.useState)(null),p=(0,o.useRef)(e);p.current=e;let m=(0,o.useRef)(t);m.current=t;let h=(0,o.useRef)(null),g=(0,o.useRef)(!1),_=(0,o.useRef)(!1);(0,o.useEffect)(()=>()=>h.current?.stop(),[]);let v=async()=>{let e=p.current,t;g.current=!0;try{t=await navigator.mediaDevices.getUserMedia({audio:!a||{deviceId:{exact:a}}})}catch{g.current=!1,_.current=!1,f(`denied`);return}finally{g.current=!1}let n=[],i=new MediaRecorder(t);i.ondataavailable=e=>e.data.size&&n.push(e.data),i.onstop=async()=>{for(let e of t.getTracks())e.stop();h.current=null,c(!1);let a=(i.mimeType||`audio/webm`).split(`;`)[0],o=new File(n,`dictation`,{type:a});if(o.size&&r){u(!0);try{let{text:t}=await LD.upload(r,o);t.trim()&&m.current(IO(e,t))}catch(e){f(e.message)}finally{u(!1)}}},h.current={stop:()=>i.state!==`inactive`&&i.stop()},i.start(),c(!0),_.current&&(_.current=!1,i.stop())},y=e=>{let t=p.current,n=``,r=new e;r.continuous=!0,r.interimResults=!0,r.lang=Ag[Lv],r.onresult=e=>{let r=``;for(let t=Math.max(0,e.resultIndex);t<e.results.length;t++){let i=e.results[t],a=i[0]?.transcript??``;i.isFinal?n=IO(n,a):r+=a}m.current(IO(t,IO(n,r)))},r.onerror=e=>{if(e.error!==`aborted`&&e.error!==`no-speech`){if(e.error===`not-allowed`){f(`denied`);return}OO=!0,i&&!n?(r.onend=null,h.current=null,v()):f(e.error)}},r.onend=()=>{h.current=null,c(!1)},h.current={stop:()=>r.stop()},r.start(),c(!0)},b=()=>{if(l||h.current||g.current)return;f(null),_.current=!1;let e=kO();e&&!(a&&i)?y(e):i&&v()},x=()=>{h.current?h.current.stop():g.current&&(_.current=!0)};return{supported:!!kO()||i,listening:s,processing:l,error:d,toggle:()=>{h.current?x():b()},start:b,stop:x}}function RO(e,t){if(e.name&&e.name!==`image.png`)return e;let n=e.type.split(`/`)[1]?.replace(`jpeg`,`jpg`)||`png`,r=new Date().toISOString().slice(0,19).replace(/[-:]/g,``).replace(`T`,`-`);return new File([e],`paste-${r}${t?`-${t+1}`:``}.${n}`,{type:e.type})}function zO(e){let t=e=>e.replace(/ä/g,`ae`).replace(/ö/g,`oe`).replace(/ü/g,`ue`).replace(/Ä/g,`Ae`).replace(/Ö/g,`Oe`).replace(/Ü/g,`Ue`).replace(/ß/g,`ss`).normalize(`NFKD`).replace(/[^A-Za-z0-9_-]+/g,`-`).replace(/-+/g,`-`).replace(/^-|-$/g,``),n=e.name.lastIndexOf(`.`),r=t(n>0?e.name.slice(0,n):e.name)||`file`,i=n>0?t(e.name.slice(n+1)):``,a=i?`${r}.${i}`:r;return a===e.name?e:new File([e],a,{type:e.type})}function BO({url:e,label:t,children:n}){return(0,s.jsxs)(`div`,{className:`group relative`,title:t,children:[(0,s.jsx)(`img`,{src:e,alt:t,width:64,height:64,className:`size-16 rounded-lg bg-paper-2 object-cover ring-1 ring-border`}),n]})}var VO=200,HO=typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent)?`⌘↩`:`Ctrl+↩`;function UO({placeholder:e,disabled:t,busy:n,onStop:r,onSend:i,attach:a=!0,floating:c,bare:l,autoFocus:u,className:d,onTalk:f,ref:p}){let[m,h]=(0,o.useState)(``),[g,_]=(0,o.useState)([]),[v,y]=(0,o.useState)(!1),b=(0,o.useRef)(null),x=(0,o.useRef)(null),[S]=PO(),C=LO(m,h,{deviceId:S.deviceId}),w=e=>_(t=>[...t.filter(t=>!e.some(e=>e.name===t.name)),...e]);(0,o.useImperativeHandle)(p,()=>({add:w,focus:()=>b.current?.focus(),fill:e=>{h(e),requestAnimationFrame(()=>{let t=b.current;t?.focus(),t?.setSelectionRange(e.length,e.length)})}})),(0,o.useEffect)(()=>{let e=b.current;if(!e)return;let t=()=>{e.style.height=`auto`;let t=Number.parseFloat(getComputedStyle(e).minHeight)||0;e.style.height=m?`${Math.min(e.scrollHeight,VO)}px`:``,y(!!m&&e.scrollHeight>t+1)};t();let n=e.clientWidth,r=new ResizeObserver(()=>{e.clientWidth!==n&&(n=e.clientWidth,t())});return r.observe(e),()=>r.disconnect()},[m]);let[T,E]=(0,o.useState)(new Map);(0,o.useEffect)(()=>{let e=new Map(g.filter(e=>e.type.startsWith(`image/`)).map(e=>[e,URL.createObjectURL(e)]));return E(e),()=>{for(let t of e.values())URL.revokeObjectURL(t)}},[g]);let ee=!!(m.trim()||g.length>0),te=ee&&!t,ne=async(e=!1)=>{if(!te)return;C.listening&&C.stop();let t={text:m,files:g};h(``),_([]),await i(t.text.trim(),t.files,e)||(h(t.text),_(t.files))},D=e=>_(t=>t.filter((t,n)=>n!==e));return(0,s.jsxs)(`div`,{className:d,children:[(0,s.jsxs)(`div`,{className:q(l?`px-2 py-3`:`p-1`,!l&&`bg-card ring-1 ring-border focus-within:ring-focus`,!l&&(v||g.length?`rounded-[1.375rem]`:`rounded-full`),!l&&(c?`shadow-overlay`:`shadow-soft`)),children:[T.size?(0,s.jsx)(`div`,{className:`flex flex-wrap gap-2 px-2 pt-2 pb-1`,children:g.map((e,t)=>{let n=T.get(e);return n?(0,s.jsx)(BO,{url:n,label:e.name,children:(0,s.jsx)(`button`,{type:`button`,"aria-label":K(`editor.detach`),onClick:()=>D(t),className:`-top-1.5 -right-1.5 absolute flex size-5 items-center justify-center rounded-full bg-ink text-paper opacity-0 shadow-soft transition focus-visible:opacity-100 group-hover:opacity-100`,children:(0,s.jsx)(Eo,{className:`size-3`})})},`${e.name}-${t}`):null})}):null,g.some(e=>!T.has(e))?(0,s.jsx)(`ul`,{className:`flex flex-wrap gap-1.5 px-2 pt-2 pb-1`,children:g.map((e,t)=>T.has(e)?null:(0,s.jsxs)(`li`,{className:`inline-flex max-w-full items-center gap-1.5 rounded-full bg-paper-2 py-1 pr-1 pl-2.5 text-[0.75rem] text-ink-2`,children:[(0,s.jsx)(za,{className:`size-3 shrink-0 text-ink-4`}),(0,s.jsx)(`span`,{className:`truncate`,children:e.name}),(0,s.jsx)(`button`,{type:`button`,"aria-label":K(`editor.detach`),onClick:()=>D(t),className:`inline-flex size-5 shrink-0 items-center justify-center rounded-full text-ink-3 hover:bg-paper-3 hover:text-ink`,children:(0,s.jsx)(Eo,{className:`size-3`})})]},`${e.name}-${t}`))}):null,(0,s.jsxs)(`div`,{className:`flex items-end gap-0.5`,children:[a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Jv,{label:K(`editor.attach`),onClick:()=>x.current?.click(),children:(0,s.jsx)(qa,{className:`size-4`})}),(0,s.jsx)(`input`,{ref:x,type:`file`,multiple:!0,hidden:!0,onChange:e=>{let t=Array.from(e.target.files??[]);e.target.value=``,w(t)}})]}):null,(0,s.jsx)(`textarea`,{ref:b,rows:1,value:m,autoFocus:u,onChange:e=>h(e.target.value),onPaste:e=>{let t=Array.from(e.clipboardData.files);a&&t.length&&(e.preventDefault(),w(t.map(RO)))},onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),ne(e.metaKey||e.ctrlKey))},placeholder:C.listening?K(`editor.listening`):e,className:q(`max-h-[200px] min-h-9 flex-1 resize-none bg-transparent py-2 text-[0.875rem] leading-5 outline-none placeholder:truncate placeholder:text-ink-4 coarse:min-h-11 coarse:py-3`,a?`px-1`:`px-3`)}),C.supported?(0,s.jsx)(WO,{speech:C}):null,n&&r&&!ee?(0,s.jsx)(`button`,{type:`button`,onClick:r,className:`inline-flex size-9 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground transition coarse:size-11`,"aria-label":K(`composer.stop`),title:K(`composer.stop`),children:(0,s.jsx)(mo,{className:`size-3 fill-current`})}):f&&!(m.trim()||g.length||C.listening)?(0,s.jsxs)(`button`,{type:`button`,onClick:f,disabled:t,className:`inline-flex h-9 shrink-0 items-center gap-1.5 rounded-full bg-primary px-3.5 font-medium text-[0.8125rem] text-primary-foreground transition disabled:opacity-50 coarse:h-11`,"aria-label":K(`assistant.talk`),children:[(0,s.jsx)(xi,{className:`size-4`}),` `,K(`assistant.talk`)]}):(0,s.jsx)(`button`,{type:`button`,onClick:()=>void ne(),disabled:!te,className:q(`inline-flex size-9 shrink-0 items-center justify-center rounded-full transition coarse:size-11`,te?`bg-primary text-primary-foreground`:`bg-paper-2 text-ink-4`),"aria-label":K(`composer.send`),title:n&&r?K(`composer.sendBusy`,{keys:HO}):void 0,children:(0,s.jsx)(yi,{className:`size-4`})})]})]}),C.error?(0,s.jsx)(`p`,{className:`mt-2 px-3 text-[0.75rem] text-rose`,children:C.error===`denied`?K(`editor.micDenied`):C.error}):null]})}function WO({speech:e,labelled:t}){let[n,r]=PO(),i=FO(),[a,c]=(0,o.useState)(null),l=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(!a)return;i.refresh();let e=e=>{let t=e.target;d.current?.contains(t)||l.current?.contains(t)||c(null)},t=e=>{e.key===`Escape`&&(c(null),l.current?.focus())},n=()=>c(null);return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),window.addEventListener(`resize`,n),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,n)}},[a,i.refresh]);let f=()=>{let e=l.current?.getBoundingClientRect(),n=u.current?.getBoundingClientRect();if(e&&n){let r=window.innerHeight-e.top+8;c(t?{bottom:r,left:n.left}:{bottom:r,right:window.innerWidth-e.right})}},p=e.processing?K(`editor.transcribing`):e.listening?K(`editor.voiceStop`):n.hold?K(`dictation.holdToTalk`):K(`editor.voice`),m=n.hold?{onPointerDown:t=>{t.button===0&&(t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),e.start())},onPointerUp:()=>e.stop(),onPointerCancel:()=>e.stop(),onKeyDown:t=>{(t.key===` `||t.key===`Enter`)&&!t.repeat&&(t.preventDefault(),e.start())},onKeyUp:t=>{(t.key===` `||t.key===`Enter`)&&e.stop()}}:{onClick:e.toggle},h=[{deviceId:``,label:K(`dictation.default`)},...i.devices.map((e,t)=>({deviceId:e.deviceId,label:e.label||K(`dictation.mic`,{n:t+1})}))],g=h.some(e=>e.deviceId===n.deviceId)?n.deviceId:``,_=e.processing?(0,s.jsx)(oy,{className:`size-4`}):e.listening?(0,s.jsx)(mo,{className:`size-3.5 animate-pulse-dot fill-current`}):(0,s.jsx)(Fa,{className:`size-4`});return(0,s.jsxs)(`div`,{ref:u,className:`flex shrink-0 items-center`,children:[t?(0,s.jsxs)(`button`,{type:`button`,title:p,"aria-pressed":e.listening,disabled:e.processing,...m,className:q(`inline-flex h-10 touch-none select-none items-center gap-2 whitespace-nowrap rounded-full border px-4 font-medium text-sm transition disabled:opacity-60 coarse:h-11`,e.listening?`border-rose/40 bg-rose-tint text-rose`:`border-border text-ink hover:bg-paper-2`),children:[_,e.processing?K(`dictation.writing`):e.listening?K(`dictation.stop`):K(`dictation.speak`)]}):(0,s.jsx)(Jv,{label:p,"aria-pressed":e.listening,disabled:e.processing,...m,className:q(`touch-none`,e.listening&&`bg-rose-tint text-rose hover:bg-rose-tint hover:text-rose`),children:_}),(0,s.jsx)(`button`,{ref:l,type:`button`,"aria-label":K(`dictation.settings`),title:K(`dictation.settings`),"aria-haspopup":`menu`,"aria-expanded":!!a,onClick:()=>a?c(null):f(),className:q(`inline-flex h-9 w-5 shrink-0 items-center justify-center rounded-full text-ink-4 transition hover:text-ink coarse:h-11`,t?`ml-0.5`:`-ml-1.5`,a&&`text-ink`),children:(0,s.jsx)(Fi,{className:q(`size-3.5 transition-transform`,a&&`rotate-180`)})}),a?(0,s.jsxs)(`div`,{ref:d,role:`menu`,"aria-label":K(`dictation.settings`),className:`fixed z-50 w-72 max-w-[calc(100vw-2rem)] animate-rise rounded-xl bg-card p-1.5 text-[0.875rem] shadow-overlay ring-1 ring-border-soft`,style:a.left===void 0?{bottom:a.bottom,right:Math.max(16,(a.right??0)-8)}:{bottom:a.bottom,left:Math.max(16,a.left)},children:[(0,s.jsx)(`p`,{className:`px-2.5 pt-1.5 pb-1 text-[0.75rem] text-ink-3`,children:K(`dictation.microphone`)}),h.map(e=>(0,s.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":e.deviceId===g,onClick:()=>{r({deviceId:e.deviceId}),c(null)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left hover:bg-paper-2`,children:[(0,s.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.deviceId===g?(0,s.jsx)(Ni,{className:`size-4 shrink-0 text-ember-strong`}):null]},e.deviceId||`default`)),i.named?null:(0,s.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>void i.allow(),className:`flex w-full rounded-lg px-2.5 py-2 text-left text-ink-3 hover:bg-paper-2 hover:text-ink`,children:K(`dictation.showMics`)}),(0,s.jsx)(`div`,{className:`my-1.5 h-px bg-border-soft`}),(0,s.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-2.5 py-1.5`,children:[(0,s.jsx)(`span`,{children:K(`dictation.hold`)}),(0,s.jsx)(iy,{checked:n.hold,label:K(`dictation.hold`),onChange:e=>r({hold:e})})]})]}):null]})}var GO=()=>kg[Lv],KO=e=>String(e).padStart(2,`0`),qO=(e,t,n)=>`${e}-${KO(t+1)}-${KO(n)}`,JO=e=>e.split(`-`).map(Number),YO=e=>{let[t,n,r]=JO(e);return new Date(Date.UTC(t,n-1,r,12))};function XO(e,t){let n=YO(e);return n.setUTCDate(n.getUTCDate()+t),n.toISOString().slice(0,10)}function ZO(){let e=new Date;return qO(e.getFullYear(),e.getMonth(),e.getDate())}var QO=/^\d{4}-\d{2}-\d{2}$/;function $O(e,t=!0){return new Intl.DateTimeFormat(GO(),{...t?{weekday:`short`}:{},day:`numeric`,month:`short`,year:`numeric`,timeZone:`UTC`}).format(YO(e))}function ek(e,t){return new Intl.DateTimeFormat(GO(),{day:`numeric`,month:`short`,year:`numeric`,timeZone:`UTC`}).formatRange(YO(e),YO(t))}function tk(){let[e,t]=(0,o.useState)(!1),n=(0,o.useRef)(null),r=(0,o.useRef)(null),[i,a]=(0,o.useState)(null),s=(0,o.useCallback)(()=>{let e=n.current?.getBoundingClientRect(),t=r.current?.getBoundingClientRect();if(!e)return;let i=t?.height??360,o=t?.width??304,s=e.bottom+6+i<=window.innerHeight-8;a({top:s?e.bottom+6:Math.max(8,e.top-6-i),left:Math.max(8,Math.min(e.left,window.innerWidth-o-8))})},[]);return(0,o.useLayoutEffect)(()=>{if(!e)return;s();let t=()=>s();return window.addEventListener(`resize`,t),window.addEventListener(`scroll`,t,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t,!0)}},[e,s]),(0,o.useEffect)(()=>{if(!e)return;let i=e=>{let i=e.target;!r.current?.contains(i)&&!n.current?.contains(i)&&t(!1)};return document.addEventListener(`pointerdown`,i),()=>document.removeEventListener(`pointerdown`,i)},[e]),{open:e,setOpen:t,close:(0,o.useCallback)(()=>{t(!1),n.current?.focus()},[]),anchor:n,panel:r,place:i}}var nk=`flex h-11 w-full min-w-0 items-center gap-2.5 rounded-lg border border-input bg-card px-3 text-left text-[0.9375rem] text-ink outline-none transition hover:border-ink-4 focus-visible:border-focus focus-visible:ring-4 focus-visible:ring-focus-glow disabled:pointer-events-none disabled:opacity-60`;function rk({anchor:e,open:t,onOpen:n,disabled:r,text:i,placeholder:a,onClear:o,id:c}){return(0,s.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,s.jsxs)(`button`,{ref:e,id:c,type:`button`,disabled:r,"aria-haspopup":`dialog`,"aria-expanded":t,onClick:n,onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),n())},className:q(nk,t&&`border-focus ring-4 ring-focus-glow`,o&&`pr-9`),children:[(0,s.jsx)(ki,{className:`size-4 shrink-0 text-ink-3`}),(0,s.jsx)(`span`,{className:q(`min-w-0 flex-1 truncate tabular-nums`,!i&&`text-ink-4`),children:i??a})]}),o&&!r?(0,s.jsx)(`button`,{type:`button`,"aria-label":K(`date.clear`),onClick:o,className:`-translate-y-1/2 absolute top-1/2 right-2 grid size-6 place-items-center rounded-full text-ink-4 transition hover:bg-paper-2 hover:text-ink`,children:(0,s.jsx)(Eo,{className:`size-3.5`})}):null]})}function ik({focus:e,setFocus:t,min:n,max:r,selected:i,preview:a,onHover:c,onPick:l,onClose:u,footer:d}){let f=(0,o.useRef)(null),[p,m]=JO(e),h=new Date(Date.UTC(p,m-1,1,12)),g=(h.getUTCDay()+6)%7,_=XO(qO(p,m-1,1),-g),v=Array.from({length:42},(e,t)=>XO(_,t)),y=ZO(),b=e=>!!(n&&e<n||r&&e>r),x=Array.from({length:7},(e,t)=>new Intl.DateTimeFormat(GO(),{weekday:`short`,timeZone:`UTC`}).format(new Date(Date.UTC(2024,0,1+t,12))).replace(`.`,``).slice(0,2)),S=new Intl.DateTimeFormat(GO(),{month:`long`,year:`numeric`,timeZone:`UTC`}).format(h),C=t=>{let n=YO(e),r=n.getUTCDate();n.setUTCDate(1),n.setUTCMonth(n.getUTCMonth()+t);let i=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth()+1,0)).getUTCDate();return n.setUTCDate(Math.min(r,i)),n.toISOString().slice(0,10)},w=i.to??(i.from&&a?a:null),T=i.from&&w?i.from<w?i.from:w:i.from,E=i.from&&w&&i.from<w?w:i.from;return(0,o.useEffect)(()=>{f.current?.querySelector(`[data-day="${e}"]`)?.focus()},[e]),(0,s.jsxs)(`div`,{className:`w-[19rem] max-w-[calc(100vw-16px)] p-3`,children:[(0,s.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2 pl-2`,children:[(0,s.jsx)(`span`,{className:`font-display font-semibold text-[0.9375rem] capitalize`,children:S}),(0,s.jsxs)(`span`,{className:`flex gap-1`,children:[(0,s.jsx)(`button`,{type:`button`,"aria-label":K(`date.prev`),onClick:()=>t(C(-1)),className:`grid size-8 place-items-center rounded-full text-ink-3 transition hover:bg-paper-2 hover:text-ink`,children:(0,s.jsx)(Li,{className:`size-4`})}),(0,s.jsx)(`button`,{type:`button`,"aria-label":K(`date.next`),onClick:()=>t(C(1)),className:`grid size-8 place-items-center rounded-full text-ink-3 transition hover:bg-paper-2 hover:text-ink`,children:(0,s.jsx)(zi,{className:`size-4`})})]})]}),(0,s.jsx)(`div`,{className:`grid grid-cols-7 text-center text-[0.6875rem] text-ink-4 uppercase tracking-wide`,children:x.map(e=>(0,s.jsx)(`span`,{className:`py-1.5`,children:e},e))}),(0,s.jsx)(`div`,{ref:f,className:`grid grid-cols-7 gap-y-0.5`,onKeyDown:n=>{let r={ArrowLeft:()=>XO(e,-1),ArrowRight:()=>XO(e,1),ArrowUp:()=>XO(e,-7),ArrowDown:()=>XO(e,7),PageUp:()=>C(n.shiftKey?-12:-1),PageDown:()=>C(n.shiftKey?12:1),Home:()=>XO(e,-((YO(e).getUTCDay()+6)%7)),End:()=>XO(e,6-(YO(e).getUTCDay()+6)%7)};r[n.key]?(n.preventDefault(),t(r[n.key]())):n.key===`Escape`&&(n.preventDefault(),n.stopPropagation(),u())},onPointerLeave:()=>c?.(null),children:v.map(t=>{let n=t.slice(0,7)===e.slice(0,7),r=t===T||t===E,i=!!(T&&E&&t>T&&t<E),a=b(t);return(0,s.jsx)(`div`,{className:q(`relative flex h-9 items-center justify-center`,i&&`bg-ember-tint`,T!==E&&t===T&&`bg-linear-to-r from-transparent from-50% to-ember-tint to-50%`,T!==E&&t===E&&`bg-linear-to-l from-transparent from-50% to-ember-tint to-50%`),children:(0,s.jsxs)(`button`,{type:`button`,"data-day":t,tabIndex:t===e?0:-1,disabled:a,"aria-pressed":r,"aria-current":t===y?`date`:void 0,"aria-label":$O(t),onClick:()=>l(t),onPointerEnter:()=>c?.(t),className:q(`relative grid size-9 place-items-center rounded-full text-[0.875rem] tabular-nums outline-none transition focus-visible:ring-2 focus-visible:ring-focus coarse:size-10`,r?`bg-primary font-semibold text-primary-foreground`:i?`text-ink hover:bg-card`:n?`text-ink hover:bg-paper-2`:`text-ink-4 hover:bg-paper-2`,t===y&&!r&&`font-semibold text-ember-strong`,a&&`pointer-events-none line-through opacity-35`),children:[Number(t.slice(8)),t===y&&!r?(0,s.jsx)(`span`,{className:`-translate-x-1/2 absolute bottom-1 left-1/2 size-1 rounded-full bg-ember`}):null]})},t)})}),d?(0,s.jsx)(`div`,{className:`mt-2 flex items-center justify-between gap-2 border-border-soft border-t pt-2`,children:d}):null]})}var ak=`fixed z-50 animate-rise rounded-xl bg-card shadow-overlay ring-1 ring-border-soft`,ok=`rounded-md px-2 py-1 font-medium text-[0.8125rem] text-ink-2 transition hover:bg-paper-2 hover:text-ink disabled:pointer-events-none disabled:opacity-40`;function sk({value:e,onChange:t,min:n,max:r,placeholder:i,disabled:a,clearable:c,className:l,id:u}){let d=tk(),f=QO.test(e)?e:``,[p,m]=(0,o.useState)(f||n||ZO()),h=ZO(),g=()=>{m(f||(n&&n>h?n:h)),d.setOpen(!0)};return(0,s.jsxs)(`div`,{className:q(`min-w-0`,l),children:[(0,s.jsx)(rk,{id:u,anchor:d.anchor,open:d.open,onOpen:()=>d.open?d.setOpen(!1):g(),disabled:a,text:f?$O(f):null,placeholder:i??K(`date.pick`),onClear:c&&f?()=>t(``):void 0}),d.open?(0,s.jsx)(`div`,{ref:d.panel,role:`dialog`,className:ak,style:{top:d.place?.top??-9999,left:d.place?.left??-9999},children:(0,s.jsx)(ik,{focus:p,setFocus:m,min:n,max:r,selected:{from:f||null,to:f||null},onPick:e=>{t(e),d.close()},onClose:d.close,footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`button`,{type:`button`,className:ok,disabled:!!(n&&h<n||r&&h>r),onClick:()=>{t(h),d.close()},children:K(`date.today`)}),f?(0,s.jsx)(`button`,{type:`button`,className:ok,onClick:()=>{t(``),d.close()},children:K(`date.clear`)}):null]})})}):null]})}function ck({from:e,to:t,onChange:n,min:r,max:i,placeholder:a,disabled:c,className:l,id:u}){let d=tk(),[f,p]=(0,o.useState)(e||r||ZO()),[m,h]=(0,o.useState)(null),[g,_]=(0,o.useState)(null),v=QO.test(e),y=QO.test(t)?t:e,b=v?y===e?$O(e):ek(e,y):null,x=()=>{let t=ZO();p(v?e:r&&r>t?r:t),h(null),_(null),d.setOpen(!0)};return(0,s.jsxs)(`div`,{className:q(`min-w-0`,l),children:[(0,s.jsx)(rk,{id:u,anchor:d.anchor,open:d.open,onOpen:()=>d.open?d.setOpen(!1):x(),disabled:c,text:b,placeholder:a??K(`date.pickRange`),onClear:v?()=>n({from:``,to:``}):void 0}),d.open?(0,s.jsx)(`div`,{ref:d.panel,role:`dialog`,className:ak,style:{top:d.place?.top??-9999,left:d.place?.left??-9999},children:(0,s.jsx)(ik,{focus:f,setFocus:p,min:r,max:i,selected:m?{from:m,to:null}:{from:v?e:null,to:v?y:null},preview:m?g:null,onHover:_,onPick:e=>{if(!m){h(e);return}let[t,r]=m<=e?[m,e]:[e,m];n({from:t,to:r}),h(null),d.close()},onClose:d.close,footer:(0,s.jsx)(`span`,{className:`px-2 py-1 text-[0.75rem] text-ink-3`,children:K(m?`date.pickEnd`:`date.pickStart`)})})}):null]})}var lk=`wizards.spaceSidebar`,uk=new Set;function dk(){try{return localStorage.getItem(lk)===`1`}catch{return!1}}function fk(e){try{localStorage.setItem(lk,e?`1`:`0`)}catch{}for(let e of uk)e()}function pk(){return(0,o.useSyncExternalStore)(e=>(uk.add(e),()=>uk.delete(e)),dk,()=>!1)}function mk(){return pk()}var hk=`(min-width: 1024px)`;function gk(){return(0,o.useSyncExternalStore)(e=>{let t=window.matchMedia(hk);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},()=>window.matchMedia(hk).matches,()=>!0)}function _k(){let e=pk(),t=gk();return e&&t}var vk=null,yk=new Set;function bk(e){if(vk!==e){vk=e;for(let e of yk)e()}}var xk=0,Sk=new Set;function Ck(){return(0,o.useSyncExternalStore)(e=>(Sk.add(e),()=>Sk.delete(e)),()=>xk>0,()=>!1)}function wk(){(0,o.useEffect)(()=>{xk+=1;for(let e of Sk)e();return()=>{--xk;for(let e of Sk)e()}},[]);let e=Tk();return _k()?e:null}function Tk(){return(0,o.useSyncExternalStore)(e=>(yk.add(e),()=>yk.delete(e)),()=>vk,()=>null)}var Ek=Ze();function Dk({title:e,entries:t,current:n,footer:r}){let i=t.find(e=>e.entries?.some(e=>e.id===n))??null,a=i?.id??n,c=i?.id??null,[l,u]=(0,o.useState)(c),[d,f]=(0,o.useState)(null);(0,o.useEffect)(()=>{u(e=>(e!==c&&f(c?`deeper`:`back`),c))},[c]);let p=t.find(e=>e.id===l)??null,m=p?.entries??null;return(0,s.jsxs)(`nav`,{"aria-label":e,children:[(0,s.jsxs)(`div`,{className:`flex flex-col gap-2 md:hidden`,children:[(0,s.jsx)(Ok,{entries:t,current:a}),i?.entries?(0,s.jsx)(Ok,{entries:i.entries,current:n,small:!0}):null]}),(0,s.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,s.jsx)(`div`,{className:`mb-2 flex h-9 min-w-0 items-center px-1`,children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`button`,{type:`button`,onClick:()=>{f(`back`),u(null)},"aria-label":e,className:`-ml-1.5 mr-0.5 grid size-8 place-items-center rounded-lg text-ink-3 transition hover:bg-accent hover:text-ink`,children:(0,s.jsx)(hi,{className:`size-4`})}),(0,s.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 font-medium text-[0.875rem]`,children:[p.icon?(0,s.jsx)(p.icon,{className:`size-4 shrink-0 text-ember-strong`}):null,(0,s.jsx)(`span`,{className:`truncate`,children:p.label})]})]}):(0,s.jsx)(`span`,{className:`truncate font-medium text-[0.875rem]`,children:e})}),(0,s.jsx)(`div`,{className:q(d===`deeper`&&`animate-step-deeper`,d===`back`&&`animate-step-back`),children:(0,s.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:(m??t).map(e=>{let t=m?e.id===n:e.id===a;return(0,s.jsx)(`li`,{children:(0,s.jsxs)(Vr,{to:e.to,"aria-current":t?`page`:void 0,className:q(`group flex items-center gap-2 rounded-lg px-2 py-1 text-[0.875rem] transition`,t?`bg-paper-2 font-medium text-ink`:`text-ink-2 hover:bg-accent hover:text-ink`),children:[(0,s.jsx)(`span`,{className:`grid size-7 shrink-0 place-items-center`,children:e.icon?(0,s.jsx)(e.icon,{className:`size-4 transition-transform duration-200 ease-out group-hover:scale-110`}):null}),(0,s.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),!m&&e.entries?.length?(0,s.jsx)(zi,{className:`size-4 text-ink-4`}):null]})},e.id)})})},p?.id??``),r]})]})}function Ok({entries:e,current:t,small:n}){return(0,s.jsx)(`div`,{className:q(`-mx-1 flex min-w-0 gap-1 overflow-x-auto px-1 [scrollbar-width:none]`,n?``:`rounded-full bg-paper-2 p-1`),children:e.map(e=>{let r=e.id===t;return(0,s.jsx)(Vr,{to:e.to,"aria-current":r?`page`:void 0,className:q(`inline-flex shrink-0 items-center gap-1.5 rounded-full transition`,n?`h-8 px-3 text-[0.8125rem]`:`h-9 flex-1 justify-center px-3.5 text-[0.875rem]`,r?n?`bg-paper-2 font-medium text-ink`:`bg-card font-medium text-ink shadow-soft`:`text-ink-3 hover:text-ink`),children:e.label},e.id)})})}function kk({menu:e,children:t}){let n=wk();return n?(0,s.jsxs)(s.Fragment,{children:[(0,Ek.createPortal)(e,n),t]}):(0,s.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-[13.5rem_minmax(0,1fr)] md:gap-8 lg:grid-cols-[15rem_minmax(0,1fr)] lg:gap-10`,children:[(0,s.jsx)(`aside`,{className:`min-w-0 md:sticky md:top-6 md:self-start`,children:e}),t]})}var Ak=e=>String(e).padStart(2,`0`),jk=/^([01]\d|2[0-3]):([0-5]\d)$/,Mk=e=>{let t=jk.exec(e);return t?Number(t[1])*60+Number(t[2]):null},Nk=e=>{let t=(e%1440+1440)%1440;return`${Ak(Math.floor(t/60))}:${Ak(t%60)}`};function Pk({value:e,onChange:t,step:n=5,disabled:r,placeholder:i=`--:--`,compact:a,className:o,id:c,label:l}){let{open:u,setOpen:d,close:f,anchor:p,panel:m,place:h}=tk(),g=Mk(e),_=g===null?null:Math.floor(g/60),v=g===null?null:g%60,y=Array.from({length:Math.ceil(60/n)},(e,t)=>t*n);return v!==null&&!y.includes(v)&&(y.push(v),y.sort((e,t)=>e-t)),(0,s.jsxs)(`div`,{className:q(`relative min-w-0`,o),children:[(0,s.jsxs)(`button`,{ref:p,id:c,type:`button`,disabled:r,"aria-label":l?`${l}: ${e||i}`:void 0,"aria-haspopup":`dialog`,"aria-expanded":u,onClick:()=>d(!u),onKeyDown:e=>{if(e.key!==`ArrowUp`&&e.key!==`ArrowDown`)return;e.preventDefault();let r=g??540,i=e.key===`ArrowUp`?n:-n;t(Nk(r%n?Math[i>0?`ceil`:`floor`](r/n)*n:r+i))},className:q(`flex w-full min-w-0 items-center rounded-lg border border-input bg-card text-ink tabular-nums outline-none transition hover:border-ink-4 focus-visible:border-focus focus-visible:ring-4 focus-visible:ring-focus-glow disabled:pointer-events-none disabled:opacity-60`,a?`h-9 justify-center px-2 text-[14px] coarse:h-11`:`h-11 gap-2.5 px-3 text-left text-[0.9375rem]`,u&&`border-focus ring-4 ring-focus-glow`),children:[a?null:(0,s.jsx)(Vi,{className:`size-4 shrink-0 text-ink-3`}),(0,s.jsx)(`span`,{className:q(`min-w-0 truncate`,!e&&`text-ink-4`),children:e||i})]}),u?(0,s.jsxs)(`div`,{ref:m,role:`dialog`,"aria-label":l??K(`time.pick`),onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),f())},className:`fixed z-50 flex animate-rise gap-1 rounded-xl bg-card p-1.5 shadow-overlay ring-1 ring-border-soft`,style:h?{top:h.top,left:h.left}:{visibility:`hidden`},children:[(0,s.jsx)(Fk,{label:K(`time.hour`),items:Array.from({length:24},(e,t)=>t),chosen:_,onPick:e=>t(Nk(e*60+(v??0)))}),(0,s.jsx)(`div`,{className:`w-px self-stretch bg-border-soft`}),(0,s.jsx)(Fk,{label:K(`time.minute`),items:y,chosen:v,onPick:e=>{t(Nk((_??9)*60+e)),f()}})]}):null]})}function Fk({label:e,items:t,chosen:n,onPick:r}){let i=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{let e=i.current?.querySelector(`[aria-selected=true]`);e&&i.current&&(i.current.scrollTop=e.offsetTop-i.current.clientHeight/2+e.clientHeight/2)},[]),(0,s.jsx)(`div`,{ref:i,role:`listbox`,"aria-label":e,className:`flex max-h-56 w-14 flex-col gap-0.5 overflow-y-auto overscroll-contain [scrollbar-width:none]`,children:t.map(e=>(0,s.jsx)(`button`,{type:`button`,role:`option`,"aria-selected":e===n,onClick:()=>r(e),className:q(`h-8 shrink-0 rounded-md text-[14px] tabular-nums transition`,e===n?`bg-primary font-medium text-primary-foreground`:`text-ink-2 hover:bg-paper-2 hover:text-ink`),children:Ak(e)},e))})}var Ik=e({AddMenu:()=>vO,AddRow:()=>EO,Anchor:()=>fO,Button:()=>J,Card:()=>sy,Chip:()=>cy,Composer:()=>UO,DatePicker:()=>sk,DateRangePicker:()=>ck,Dialog:()=>ly,DictationButton:()=>WO,Empty:()=>uy,IconButton:()=>Jv,InlineText:()=>gO,Input:()=>Zv,LATER_KEYS:()=>HO,Label:()=>ay,LinkedText:()=>dy,MenuPage:()=>kk,PageMenu:()=>Dk,QrCode:()=>cb,RuleRows:()=>TO,Section:()=>pO,Segmented:()=>ty,Select:()=>ey,Spinner:()=>oy,Swatch:()=>Qv,Switch:()=>iy,Tabs:()=>ry,Textarea:()=>$v,Thumb:()=>BO,TimePicker:()=>Pk,cn:()=>q,dateText:()=>$O,newId:()=>yO,pastedName:()=>RO,useAutosave:()=>GD,useRuleRows:()=>xO,workspaceFile:()=>zO});export{AD as $,Va as $n,x as $r,K as $t,uO as A,Vg as An,Qn as Ar,J as At,GD as B,wo as Bn,De as Br,ey as Bt,pO as C,A_ as Cn,hi as Cr,lb as Ct,nO as D,jg as Dn,Vr as Dr,nb as Dt,xO as E,k_ as En,Br as Er,ob as Et,iO as F,Y_ as Fn,qr as Fr,Jv as Ft,zD as G,ao as Gn,ve as Gr,$v as Gt,WD as H,go as Hn,Ee as Hr,Qv as Ht,sO as I,Ug as In,Ze as Ir,Zv as It,TD as J,Za as Jn,pe as Jr,Lv as Jt,FD as K,ro as Kn,_e as Kr,q as Kt,oO as L,j_ as Ln,Ye as Lr,ay as Lt,dO as M,M_ as Mn,wn as Mr,cy as Mt,eO as N,Zg as Nn,Dn as Nr,ly as Nt,qD as O,V_ as On,Hr as Or,ab as Ot,tO as P,q_ as Pn,kn as Pr,uy as Pt,OD as Q,Ua as Qn,ae as Qr,Fv as Qt,KD as R,B_ as Rn,Je as Rr,dy as Rt,mO as S,R_ as Sn,_i as Sr,hb as St,yO as T,J_ as Tn,M as Tr,sb as Tt,VD as U,mo as Un,A as Ur,iy as Ut,UD as V,vo as Vn,Te as Vr,oy as Vt,LD as W,fo as Wn,xe as Wr,ry as Wt,jD as X,qa as Xn,C as Xr,Uv as Xt,ED as Y,Ya as Yn,g as Yr,Bv as Yt,kD as Z,Ga as Zn,S as Zr,Wv as Zt,fO as _,Jg as _n,Fi as _r,Fx as _t,wk as a,ue as ai,r_ as an,ya as ar,ZE as at,bO as b,T_ as bn,xi as br,Ob as bt,WO as c,l as ci,Eg as cn,aa as cr,YE as ct,RO as d,Dg as dn,Yi as dr,oS as dt,b as ei,Gv as en,za as er,wD as et,zO as f,Og as fn,qi as fr,cS as ft,EO as g,Qg as gn,Li as gr,Px as gt,vO as h,Ag as hn,zi as hr,Mx as ht,Ck as i,ee as ii,sv as in,Ta as ir,iD as it,rO as j,L_ as jn,er as jr,sy as jt,lO as k,zg as kn,Zn as kr,tb as kt,HO as l,Wg as ln,ta as lr,ES as lt,PO as m,$g as mn,Vi as mr,uS as mt,bk as n,w as ni,Ev as nn,Fa as nr,yD as nt,mk as o,ce as oi,s_ as on,ha as or,XE as ot,LO as p,kg as pn,Ui as pr,rS as pt,ID as q,$a as qn,me as qr,Kv as qt,fk as r,y as ri,Tv as rn,Na as rr,lD as rt,UO as s,u as si,e_ as sn,sa as sr,rD as st,Ik as t,h as ti,zv as tn,La as tr,pD as tt,BO as u,Gg as un,Zi as ur,bS as ut,hO as v,i_ as vn,Ni as vr,jb as vt,DO as w,F_ as wn,pi as wr,ub as wt,TO as x,U_ as xn,yi as xr,Eb as xt,gO as y,Pg as yn,Di as yr,Pb as yt,HD as z,Eo as zn,je as zr,ty as zt};
|