@1agh/maude 2.1.2 → 2.2.1

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.
@@ -1,4 +1,4 @@
1
- var WEt=Object.create;var{getPrototypeOf:VEt,defineProperty:HL,getOwnPropertyNames:GEt}=Object;var jbe=Object.prototype.hasOwnProperty;function qEt(e){return this[e]}var KEt,YEt,XEt=(e,t,n)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?KEt??=new WeakMap:YEt??=new WeakMap,a=r.get(e);if(a)return a}n=e!=null?WEt(VEt(e)):{};let s=t||!e||!e.__esModule||!jbe.call(e,"default")?HL(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let l of GEt(e))if(!jbe.call(s,l))HL(s,l,{get:qEt.bind(e,l),enumerable:!0})}if(o)r.set(e,s);return s};var ZEt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var JEt=(e)=>e;function QEt(e,t){this[e]=JEt.bind(null,t)}var TG=(e,t)=>{for(var n in t)HL(e,n,{get:t[n],enumerable:!0,configurable:!0,set:QEt.bind(t,n)})};var qe=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(o){n=[o]}if(n)throw n[0];return t};var Ube=(e,t,n)=>{for(var o in t)HL(e,o,{get:t[o],set:n[o],enumerable:!0,configurable:!0})},$S=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _a={};Ube(_a,{Activity:()=>oye,Children:()=>V2,Component:()=>VL,Fragment:()=>_s,Profiler:()=>rye,PureComponent:()=>aye,StrictMode:()=>sye,Suspense:()=>iye,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>OS,__COMPILER_RUNTIME:()=>lye,cache:()=>cye,cacheSignal:()=>uye,cloneElement:()=>jc,createContext:()=>bl,createElement:()=>ar,createRef:()=>dye,forwardRef:()=>jn,isValidElement:()=>Zs,lazy:()=>pye,memo:()=>Vr,startTransition:()=>fye,unstable_useCacheRefresh:()=>mye,use:()=>PG,useActionState:()=>hye,useCallback:()=>ee,useContext:()=>Ir,useDebugValue:()=>DG,useDeferredValue:()=>gye,useEffect:()=>M,useEffectEvent:()=>bye,useId:()=>ra,useImperativeHandle:()=>yye,useInsertionEffect:()=>G2,useLayoutEffect:()=>eo,useMemo:()=>fe,useOptimistic:()=>vye,useReducer:()=>LS,useRef:()=>H,useState:()=>T,useSyncExternalStore:()=>We,useTransition:()=>wye,version:()=>GL},{Activity:(eMn)=>oye=eMn,Children:(eMn)=>V2=eMn,Component:(eMn)=>VL=eMn,Fragment:(eMn)=>_s=eMn,Profiler:(eMn)=>rye=eMn,PureComponent:(eMn)=>aye=eMn,StrictMode:(eMn)=>sye=eMn,Suspense:(eMn)=>iye=eMn,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(eMn)=>OS=eMn,__COMPILER_RUNTIME:(eMn)=>lye=eMn,cache:(eMn)=>cye=eMn,cacheSignal:(eMn)=>uye=eMn,cloneElement:(eMn)=>jc=eMn,createContext:(eMn)=>bl=eMn,createElement:(eMn)=>ar=eMn,createRef:(eMn)=>dye=eMn,forwardRef:(eMn)=>jn=eMn,isValidElement:(eMn)=>Zs=eMn,lazy:(eMn)=>pye=eMn,memo:(eMn)=>Vr=eMn,startTransition:(eMn)=>fye=eMn,unstable_useCacheRefresh:(eMn)=>mye=eMn,use:(eMn)=>PG=eMn,useActionState:(eMn)=>hye=eMn,useCallback:(eMn)=>ee=eMn,useContext:(eMn)=>Ir=eMn,useDebugValue:(eMn)=>DG=eMn,useDeferredValue:(eMn)=>gye=eMn,useEffect:(eMn)=>M=eMn,useEffectEvent:(eMn)=>bye=eMn,useId:(eMn)=>ra=eMn,useImperativeHandle:(eMn)=>yye=eMn,useInsertionEffect:(eMn)=>G2=eMn,useLayoutEffect:(eMn)=>eo=eMn,useMemo:(eMn)=>fe=eMn,useOptimistic:(eMn)=>vye=eMn,useReducer:(eMn)=>LS=eMn,useRef:(eMn)=>H=eMn,useState:(eMn)=>T=eMn,useSyncExternalStore:(eMn)=>We=eMn,useTransition:(eMn)=>wye=eMn,version:(eMn)=>GL=eMn});function g$t(e){if(e===null||typeof e!=="object")return null;return e=qbe&&e[qbe]||e["@@iterator"],typeof e==="function"?e:null}function MS(e,t,n){this.props=e,this.context=t,this.refs=eye,this.updater=n||Jbe}function tye(){}function RG(e,t,n){this.props=e,this.context=t,this.refs=eye,this.updater=n||Jbe}function EG(){}function OG(e,t,n){var o=n.ref;return{$$typeof:$G,type:e,key:t,ref:o!==void 0?o:null,props:n}}function b$t(e,t){return OG(e.type,t,e.props)}function LG(e){return typeof e==="object"&&e!==null&&e.$$typeof===$G}function y$t(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}function IG(e,t){return typeof e==="object"&&e!==null&&e.key!=null?y$t(""+e.key):t.toString(36)}function v$t(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(EG,EG):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function RS(e,t,n,o,r){var a=typeof e;if(a==="undefined"||a==="boolean")e=null;var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case $G:case s$t:s=!0;break;case Zbe:return s=e._init,RS(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+IG(e,0):o,Kbe(r)?(n="",s!=null&&(n=s.replace(Ybe,"$&/")+"/"),RS(r,t,n,"",function(u){return u})):r!=null&&(LG(r)&&(r=b$t(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Ybe,"$&/")+"/")+s)),t.push(r)),1;s=0;var l=o===""?".":o+":";if(Kbe(e))for(var c=0;c<e.length;c++)o=e[c],a=l+IG(o,c),s+=RS(o,t,n,a,r);else if(c=g$t(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,a=l+IG(o,c++),s+=RS(o,t,n,a,r);else if(a==="object"){if(typeof e.then==="function")return RS(v$t(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function WL(e,t,n){if(e==null)return e;var o=[],r=0;return RS(e,o,"","",function(a){return t.call(n,a,r++)}),o}function w$t(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $G,s$t,i$t,l$t,c$t,u$t,d$t,p$t,f$t,m$t,Zbe,h$t,qbe,Jbe,Qbe,eye,MG,Kbe,za,nye,Ybe,Xbe,x$t,oye,V2,VL,_s,rye,aye,sye,iye,OS,lye,cye=function(e){return function(){return e.apply(null,arguments)}},uye=function(){return null},jc=function(e,t,n){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=Qbe({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!nye.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(o[a]=t[a]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}return OG(e.type,r,o)},bl=function(e){return e={$$typeof:d$t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:u$t,_context:e},e},ar=function(e,t,n){var o,r={},a=null;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)nye.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return OG(e,a,r)},dye=function(){return{current:null}},jn=function(e){return{$$typeof:p$t,render:e}},Zs,pye=function(e){return{$$typeof:Zbe,_payload:{_status:-1,_result:e},_init:w$t}},Vr=function(e,t){return{$$typeof:m$t,type:e,compare:t===void 0?null:t}},fye=function(e){var t=za.T,n={};za.T=n;try{var o=e(),r=za.S;r!==null&&r(n,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(EG,Xbe)}catch(a){Xbe(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),za.T=t}},mye=function(){return za.H.useCacheRefresh()},PG=function(e){return za.H.use(e)},hye=function(e,t,n){return za.H.useActionState(e,t,n)},ee=function(e,t){return za.H.useCallback(e,t)},Ir=function(e){return za.H.useContext(e)},DG=function(){},gye=function(e,t){return za.H.useDeferredValue(e,t)},M=function(e,t){return za.H.useEffect(e,t)},bye=function(e){return za.H.useEffectEvent(e)},ra=function(){return za.H.useId()},yye=function(e,t,n){return za.H.useImperativeHandle(e,t,n)},G2=function(e,t){return za.H.useInsertionEffect(e,t)},eo=function(e,t){return za.H.useLayoutEffect(e,t)},fe=function(e,t){return za.H.useMemo(e,t)},vye=function(e,t){return za.H.useOptimistic(e,t)},LS=function(e,t,n){return za.H.useReducer(e,t,n)},H=function(e){return za.H.useRef(e)},T=function(e){return za.H.useState(e)},We=function(e,t,n){return za.H.useSyncExternalStore(e,t,n)},wye=function(){return za.H.useTransition()},GL="19.2.7";var oe=qe(()=>{$G=Symbol.for("react.transitional.element"),s$t=Symbol.for("react.portal"),i$t=Symbol.for("react.fragment"),l$t=Symbol.for("react.strict_mode"),c$t=Symbol.for("react.profiler"),u$t=Symbol.for("react.consumer"),d$t=Symbol.for("react.context"),p$t=Symbol.for("react.forward_ref"),f$t=Symbol.for("react.suspense"),m$t=Symbol.for("react.memo"),Zbe=Symbol.for("react.lazy"),h$t=Symbol.for("react.activity"),qbe=Symbol.iterator;Jbe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qbe=Object.assign,eye={};MS.prototype.isReactComponent={};MS.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};MS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};tye.prototype=MS.prototype;MG=RG.prototype=new tye;MG.constructor=RG;Qbe(MG,MS.prototype);MG.isPureReactComponent=!0;Kbe=Array.isArray;za={H:null,A:null,T:null,S:null},nye=Object.prototype.hasOwnProperty;Ybe=/\/+/g;Xbe=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},x$t={map:WL,forEach:function(e,t,n){WL(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return WL(e,function(){t++}),t},toArray:function(e){return WL(e,function(t){return t})||[]},only:function(e){if(!LG(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oye=h$t,V2=x$t,VL=MS,_s=i$t,rye=c$t,aye=RG,sye=l$t,iye=f$t,OS=za,lye={__proto__:null,c:function(e){return za.H.useMemoCache(e)}},Zs=LG});function xye(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 Qb(){}function S$t(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:k$t,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var q2,k$t,zG,FG,fm=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(xye(299));return S$t(e,t,null,n)},BG=function(e){var t=zG.T,n=q2.p;try{if(zG.T=null,q2.p=2,e)return e()}finally{zG.T=t,q2.p=n,q2.d.f()}};var kye=qe(()=>{oe();q2={d:{f:Qb,r:function(){throw Error(xye(522))},D:Qb,C:Qb,L:Qb,m:Qb,X:Qb,S:Qb,M:Qb},p:0,findDOMNode:null},k$t=Symbol.for("react.portal");zG=OS;FG=q2});function Sye(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sye)}catch(e){console.error(e)}}var mm=qe(()=>{kye();Sye()});function ug(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>60?`${n.slice(0,60)}…`:n}function zx(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>160?`${n.slice(0,160)}…`:n}function E9(e){return(e??[]).slice(0,3).map((t)=>ug(t,"(unnamed)"))}function gOt(e){if(!e)return null;let t=(n)=>typeof n==="number"&&Number.isInteger(n)&&n>=0;if(!t(e.synced)||!t(e.pending)||!t(e.rejected))return null;return{synced:e.synced,pending:e.pending,rejected:e.rejected}}function bOt(e){let t={unreadable:!1,sourceSlugs:[],failedFiles:0,tooLarge:0,blockedOther:0,held:0,failedMedia:0,moving:null,paused:!1},{conflicts:n,files:o,assets:r}=e;if(n!==void 0){if(!Array.isArray(n))t.unreadable=!0;else for(let a of n)if(Ny(a)&&a.kind==="body-rejected")t.sourceSlugs.push(typeof a.slug==="string"?a.slug:"(unnamed)")}if(o!==void 0)if(!Ny(o))t.unreadable=!0;else{for(let l of["synced","pulled","conflicts","pushed","failed"])if(o[l]!==void 0&&!xm(o[l]))t.unreadable=!0;if(xm(o.failed))t.failedFiles=o.failed;if(Array.isArray(o.held))for(let l of o.held){if(Ny(l)&&(l.kind==="hub-older"||l.kind==="hub-refused"))continue;t.held+=Ny(l)&&xm(l.count)?l.count:1}let a=0;if(Ny(o.rateLimited)){if(t.paused=!0,xm(o.rateLimited.waiting))a=o.rateLimited.waiting;if(a>0)t.failedFiles=0}let s=o.progress;if(Ny(s)){if(Array.isArray(s.blocked))for(let l of s.blocked){if(!Ny(l)||!xm(l.count))continue;if(l.class==="too-large")t.tooLarge+=l.count;else t.blockedOther+=l.count}if(s.phase==="paused")t.paused=!0;if(s.phase==="scanning"||s.phase==="seeding"||s.phase==="paused")t.moving=xm(s.delivered)&&xm(s.tracked)?{delivered:Math.min(s.delivered,s.tracked),tracked:s.tracked}:{delivered:0,tracked:0}}else if(s!==void 0)t.unreadable=!0;if(a>0&&!t.moving)t.moving={delivered:0,tracked:a}}if(r!==void 0)if(!Ny(r))t.unreadable=!0;else{if(xm(r.failedCount))t.failedMedia=r.failedCount;else if(r.failedCount!==void 0)t.unreadable=!0;if(r.finished===!1&&!t.moving)t.moving={media:{done:xm(r.done)?r.done:0,total:xm(r.total)?r.total:0}}}return t}function Sl(e,t={}){if(!e||e.linked===!1)return null;let n=ug(t.project,"the workspace"),o=typeof t.now==="number"?t.now:Date.now(),r=typeof e.startedAt==="number"&&Number.isFinite(e.startedAt)&&e.startedAt>0?e.startedAt:null,a=(N=!1)=>{let C=Math.max(1,Math.round((o-(r??o))/60000));return{phase:"stalled",online:!1,label:"stalled",title:`Nothing has synced with ${n} in the ${C} minute${C===1?"":"s"} since Maude started trying.`,next:N?"Maude keeps retrying. If it persists, reconnect the workspace — the sign-in may have expired.":"Maude keeps retrying — the workspace is reachable but is not completing handshakes.",names:[]}},s=r!==null&&o-r>300000;if(e.notSyncable){let N=e.tsxCount??0;return{phase:"nothing-syncable",online:!1,label:`0 syncable${N>0?` · ${N} tsx`:""}`,title:e.reason?ug(e.reason,"No canvases in this project are syncable yet."):`Connected to ${n} — no canvases here are syncable yet.`,next:"Create a canvas — it will start syncing on its own.",names:[]}}let l=e.queuedOps??0,c=l>0?` ${l} local edit${l===1?"":"s"} are queued.`:"",u=e.state==="offline"||e.state==="offline-long",d=bOt(e),p=(N)=>{let C=[],I=0,R=(U,F)=>{if(U<=0)return;C.push(F),I+=U},O=d.sourceSlugs.length;if(R(O,`${A1(O,"source change")} ${O===1?"was":"were"} not applied`),!N)R(d.failedFiles,`${A1(d.failedFiles,"file")} could not be delivered`),R(d.tooLarge,`${A1(d.tooLarge,"file")} ${d.tooLarge===1?"is":"are"} too large to sync`),R(d.blockedOther,`${A1(d.blockedOther,"file")} ${d.blockedOther===1?"is":"are"} blocked`),R(d.held,`${A1(d.held,"change")} ${d.held===1?"is":"are"} held for your decision`),R(d.failedMedia,`${A1(d.failedMedia,"media upload")} failed`);if(I===0)return null;return{phase:"attention",online:!1,label:`${I} to review`,title:`${I===1?"A change needs":`${I} changes need`} your attention in ${n}: ${C.join("; ")}.`+(u?" The hub is also unreachable right now.":"")+c,next:"Open the Sync panel to see what is waiting and why.",names:E9(d.sourceSlugs)}},f=gOt(e.docs),h=e.docs!==void 0&&f===null;if(f&&f.rejected>0){let N=f.synced+f.pending+f.rejected;return{phase:"refused",online:!1,label:`${f.rejected} refused`,title:`${f.rejected} of ${N} canvas${N===1?"":"es"} were refused by ${n} — their edits are not syncing.`+(u?" The hub is also unreachable right now.":""),next:"Reconnect the workspace — the credential may have been rotated.",names:E9(e.rejectedSlugs)}}let g=vOt(e.accepted);if(g){let N=g.pending;return{phase:"refused",online:!1,label:"sign in again",title:`${n} no longer accepts your sign-in — `+(N>0?`${N} change${N===1?" is":"s are"} kept on this device and not shared.`:"your changes are not shared."),next:"Sign in again to share them.",names:[]}}if(d.sourceSlugs.length>0){let N=p(u);if(N)return N}let b=e.parked?.since;if(typeof b==="number"&&Number.isFinite(b)&&b>0){let N=p(!1);if(N)return N;return{phase:"parked",online:!1,label:"asleep",title:"Cloud project asleep. Wakes on your next change.",next:"Nothing to do — edit or click anywhere and it reconnects.",names:[]}}if(u)return{phase:"offline",online:!1,label:l>0?`offline · ${l} ↑`:"offline",title:`Not reachable: ${n}. Your edits are safe on this machine and queued.${c}`,next:"Nothing to do — syncing resumes by itself when the hub is back.",names:[]};if(h||d.unreadable)return{phase:"connecting",online:!1,label:"status unreadable",title:`Cannot read the sync status for ${n} — the counts on disk are malformed.`,next:"Reconnect the workspace; if it persists, restart Maude.",names:[]};if(!f){let N=e.state==="online"||e.flash==="synced";if(!N&&s)return a(!0);let C=N?p(!1):null;if(C)return C;return{phase:N?"synced":"connecting",online:N,label:N?l>0?`${l} ↑`:"synced":"connecting…",title:N?`Syncing with ${n}.${c}`:`Connecting to ${n}…`,next:N?null:"Nothing to do — this usually takes a moment.",names:[]}}let v=f.synced+f.pending+f.rejected;if(v===0){if(s)return a();return{phase:"connecting",online:!1,label:"connecting…",title:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}let y=p(!1);if(y)return y;let w=wOt(e.aiAction);if(w?.state==="held"){let N=w.canvases;return{phase:"attention",online:!0,label:"AI edit held",title:`An unfinished AI edit to ${N} canvas${N===1?"":"es"} is kept on this device — it is not shared with ${n} yet.`,next:"Open the Sync panel to publish it as it stands or discard it.",names:[]}}if(f.pending>0){let N=f.synced>0;if(!N&&s)return a();return{phase:N?"syncing":"connecting",online:!1,label:N?`${f.synced}/${v}`:"connecting…",title:N?`Syncing with ${n} — ${f.synced} of ${v} canvas${v===1?"":"es"} so far.`:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}if(d.moving){let N=d.moving,C="media"in N?`uploading media (${N.media.done} of ${N.media.total})`:N.tracked>0?`files ${N.delivered} of ${N.tracked} delivered`:"checking project files";return{phase:"syncing",online:!0,label:"media"in N?"media ↑":N.tracked>0?`${N.delivered}/${N.tracked} files`:"files…",title:`Syncing with ${n} — all ${v} canvas${v===1?"":"es"} in step, ${C}.`+(d.paused?" Paused while the hub asks us to wait.":"")+c,next:"Nothing to do — this continues on its own.",names:[]}}if(w?.state==="open")return{phase:"syncing",online:!0,label:"AI editing",title:`An AI edit is in progress — its changes are shared with ${n} together when it finishes.`,next:null,names:[]};let x=yOt(e.accepted);if(x){let N=x.oldestPendingAt?Math.max(0,Math.round((Date.now()-x.oldestPendingAt)/1000)):0;return{phase:"syncing",online:!0,label:`saving ${x.pending}`,title:`Saving ${x.pending} change${x.pending===1?"":"s"} to ${n}`+(N>=10?` — the oldest has waited ${N} s.`:".")+" They are kept on this device until the project confirms them.",next:N>=60?"Maude keeps trying. If this persists, check your connection.":null,names:[]}}let k=e.pulled?.count,_=typeof k==="number"&&Number.isInteger(k)&&k>=0?Math.min(k,v):0;return{phase:"synced",online:!0,label:l>0?`${l} ↑`:"synced",title:`Synced with ${n} — all ${v} canvas${v===1?"":"es"}.`+(_>0?` ${_} came down from the project on this connect.`:"")+c,next:_>0?"They are new to this machine — look them over before editing.":null,names:_>0?E9(e.pulled?.names):[]}}function yOt(e){if(!e||typeof e!=="object")return null;let t=e,n=t.pending;if(typeof n!=="number"||!Number.isInteger(n)||n<=0||n>1e6)return null;let o=t.oldestPendingAt;return{pending:n,oldestPendingAt:typeof o==="number"&&Number.isFinite(o)&&o>0?o:null}}function vOt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.credentialRefused!==!0)return null;let n=t.pending;return{pending:typeof n==="number"&&Number.isInteger(n)&&n>0&&n<=1e6?n:0}}function wOt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.state!=="open"&&t.state!=="held")return null;let n=Array.isArray(t.canvases)?Math.min(t.canvases.length,1e4):0;return{state:t.state,canvases:n}}var xm=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>=0,Ny=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),A1=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Ay(e,t){let n=e?.access;if(!n||typeof n!=="object")return e?.cloud?.role??void 0;let o=(l,c)=>l===null||Yd[c]>Yd[l]?c:l,r=(Array.isArray(n.grants)?n.grants:[]).filter((l)=>typeof l?.r==="string"&&(l.r in Yd)),a=typeof n.role==="string"&&n.role in Yd?n.role:null,s=r.filter((l)=>t&&l.c===t);for(let l of s.length||a!==null?s:r)a=o(a,l.r);return a??void 0}function Jke(e,t){if(e0e(e))return!1;if(!e?.readOnly)return!0;if(e.formatGate||e.readOnlyReason!=="role")return!1;let n=e.access;if(!n||typeof n!=="object"||!t)return!1;if(Yd[n.role]>=R9)return!0;return(Array.isArray(n.grants)?n.grants:[]).some((o)=>o?.c===t&&Yd[o?.r]>=R9)}function Qke(e,t){if(typeof t!=="string"||!t)return null;let n=(e?.designRel||".design").replace(/^\/+|\/+$/g,"");return t.startsWith(`${n}/`)?t.slice(n.length+1):t}function RD(e,t){return!Jke(e,Qke(e,t))}function Fx(e){let t=e?.access;return!!t&&typeof t==="object"&&t.role==null&&Array.isArray(t.grants)&&t.grants.length>0}function MD(e,t){if(!e0e(e)||e.formatGate||!t)return!1;return(Array.isArray(e.access?.grants)?e.access.grants:[]).some((n)=>n?.c===t&&Yd[n?.r]>=R9)}function t0e(e,t){let n=Qke(e,t),o=!Jke(e,n);if(!o)return{ro:!1,cm:!1};let r=!!e.access&&typeof e.access==="object"&&(Array.isArray(e.access.grants)?e.access.grants:[]).some((s)=>s?.c===n&&Yd[s?.r]>=Yd.viewer),a=!!e.canComment||r;return{ro:o,cm:a,...a&&e.formatGate?{cg:!0}:{}}}function Yke(e){let t=typeof e==="string"?e.trim():"";if(!t)return"";return t.split(/\s+/)[0]}function Yc(e){if(typeof e!=="string"||!e)return"";return(e.split("/").pop()||e).replace(/\.(tsx|jsx|html)$/i,"")}function ef(e,t=".design"){if(typeof e!=="string"||!e||e.startsWith("__"))return null;let n=String(t||".design").replace(/\/+$/,""),o=e.startsWith(`${n}/`)?e.slice(n.length+1):e;if(!/\.(tsx|jsx|html)$/i.test(o)||o.split("/").some((r)=>r===""||r===".."))return null;return o}async function P9(e,t,n,o){try{let r=await e(n,{method:t,headers:o===void 0?{}:{"content-type":"application/json"},...o===void 0?{}:{body:JSON.stringify(o)}}),a=await r.text().catch(()=>""),s=null;try{s=a?JSON.parse(a):null}catch{s=null}return{status:r.status,body:s}}catch{return{status:0,body:null}}}async function COt({canvas:e=null}={},t=fetch){let o=await P9(t,"POST","/_api/share/requests",typeof e==="string"&&e?{canvas:e}:{}),r=o.body?.reason;if(o.status===201)return{ok:!0,state:"asked",words:er.asked};if(o.status===202&&o.body?.queued)return{ok:!0,state:"queued",words:nI({error:o.body.words},er.queued)};if(r==="pending")return{ok:!0,state:"pending",words:nI(o.body,er.asked)};if(r==="already-can-edit")return{ok:!0,state:"already",words:er.alreadyCan};if(o.status===429)return{ok:!1,state:"limited",words:nI(o.body,er.unavailable)};if(r==="not-linked")return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===404||o.status===405)return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===0||o.status>=500)return{ok:!1,state:"unavailable",words:er.unavailable};return{ok:!1,state:"refused",words:nI(o.body,er.notLinked)}}async function n0e(e=fetch){let t=await P9(e,"GET","/_api/share/requests");return t.status===200&&Array.isArray(t.body?.requests)?t.body.requests:[]}async function $D(e,t,n=fetch){if(t!=="approve"&&t!=="decline")throw Error(`answerAccessRequest: ${t}`);if(typeof e!=="string"||!/^[A-Za-z0-9_-]{1,128}$/.test(e))return{ok:!1,words:er.answered};let o=await P9(n,"POST",`/_api/share/requests/${encodeURIComponent(e)}/${t}`,{});if(o.status>=200&&o.status<300)return{ok:!0,words:""};return{ok:!1,words:nI(o.body,er.answered)}}function NOt(e,t){let n=typeof t?.reason==="string"?t.reason:null;if(n==="link-off")return{kind:"link-off"};if(n==="access-withdrawn"||n==="removed"||n==="access-removed"||n==="expired"||n==="no-access")return{kind:"ended",reason:n==="expired"?"expired":"removed"};if(e===404||n==="not-in-scope"||n==="gone")return{kind:"missing"};return null}function D9(e,t){if(e!==401)return null;let n=NOt(e,t);return n&&(n.kind==="link-off"||n.kind==="ended")?n:null}function o0e(e,t){let n=e?.fetch;if(typeof n!=="function"||n[Xke])return()=>{};let o=async(...r)=>{let a=await n.apply(e,r);try{if(a?.status===401&&AOt(r[0],e.location?.origin)&&(a.headers?.get?.("content-type")??"").includes("json"))a.clone().json().then((s)=>{let l=D9(401,s);if(l)t(l)}).catch(()=>{})}catch{}return a};return o[Xke]=!0,e.fetch=o,()=>{if(e.fetch===o)e.fetch=n}}function TOt(e){if(e?.type!=="maude.access")return null;if(e.change==="raised")return{kind:"raised"};if(e.change==="narrowed"){let t=typeof e.by?.name==="string"?e.by.name.slice(0,80):"",n=$9(e.role)?e.role:null;return{kind:"narrowed",...t?{by:t}:{},...n?{role:n}:{}}}if(e.change==="ended")return e.reason==="link-off"?{kind:"link-off"}:{kind:"ended",reason:e.reason==="expired"?"expired":"removed"};return null}function IOt(e){if(e?.type!=="maude.access-request"||typeof e.id!=="string")return null;let t=typeof e.from?.name==="string"?e.from.name.slice(0,80):"",n=typeof e.canvas==="string"?e.canvas:null;return{id:e.id,text:er.asksToEdit(t,n?Yc(n):""),action:er.review}}function r0e(e){if(e?.type==="access")return TOt({type:"maude.access",change:e.change,reason:e.reason,by:e.by,role:e.role});if(e?.type==="access-request"){let t=IOt({type:"maude.access-request",id:e.id,from:e.from,canvas:e.canvas});return t?{kind:"request",...t}:null}return null}function j9(e){let t=typeof e==="string"&&e?e:null;if(t===M9)return;M9=t;for(let n of O9)n()}function s0e(e){return O9.add(e),()=>O9.delete(e)}function i0e(e,t=(...n)=>fetch(...n)){return{"share.ask-to-edit":async()=>{let n=ef(e.activePath,e.designRel),o=await COt({canvas:n},t);return e.toast?.(o.words,o.ok),o},"share.request-approve":async(n)=>{let o=await $D(n?.id,"approve",t);if(!o.ok)e.toast?.(o.words);return o},"share.request-decline":async(n)=>{let o=await $D(n?.id,"decline",t);if(!o.ok)e.toast?.(o.words);return o}}}var _Ot,$9=(e)=>typeof e==="string"&&_Ot[e]||"",Yd,T1=(e)=>typeof e==="string"&&(e in Yd)?Yd[e]:void 0,Zke=(e,t)=>Ay(e,t)==="observer",R9,e0e=(e)=>!!e?.cloud&&!e.canvasToken&&Fx(e),L9=(e)=>e?.canComment===!0&&!e.formatGate,er,nI=(e,t)=>typeof e?.error==="string"&&e.error&&e.error.length<=200?e.error:t,z9,F9,B9=(e,t)=>e==="observer"&&!t?.ended&&!t?.linkOff,Xke,AOt=(e,t)=>{let n=typeof e==="string"?e:typeof e?.url==="string"?e.url:String(e??"");if(n.startsWith("/")&&!n.startsWith("//"))return!0;return!!t&&(n===t||n.startsWith(`${t}/`))},oI="maude:access-frame",rI="maude:view-only-gesture",M9=null,O9,a0e=()=>M9;var ni=qe(()=>{_Ot=Object.freeze({owner:"Owner",member:"Can edit",viewer:"Can comment",observer:"Can view"}),Yd=Object.freeze({observer:0,viewer:1,member:2,owner:3});R9=Yd.member;er=Object.freeze({asked:"Asked. The owner will see your request.",queued:"Queued — sends when this Mac is online.",alreadyCan:"You can already edit this.",unavailable:"Could not ask right now. Try again in a minute.",notLinked:"Ask a project owner for edit access.",answered:"That request is no longer open.",tipTitle:(e)=>`You can look at ${e||"this canvas"}, not change it.`,tipLine:"Ask to edit, top right, sends a request to its owner.",appOnlyTitle:(e)=>`You can look at ${e||"this canvas"} here, not change it.`,appOnlyLine:"You can edit it in the desktop app. Editing one canvas in a browser comes later.",asksToEdit:(e,t)=>`${e||"Someone"} asks to edit ${t||"this project"}`,canViewNow:"can view it now",letEdit:(e)=>`Let ${Yke(e)||"them"} edit`,notNow:"Not now",review:"Review",raised:(e)=>`You can edit ${e||"this project"} now.`,narrowedTo:(e,t)=>`${Yke(e)||"Someone"} changed you to ${$9(t)}. Your changes were saved first.`,endedTitle:(e)=>`You no longer have access to ${e||"this project"}.`,endedLine:"Your last changes were saved first. If this is a surprise, ask someone on the team.",backHome:"Back to Home",linkOffTitle:"This link was turned off.",linkOffLine:(e)=>`Ask the person who shared ${e||"it"} for a new one.`,trashedTitle:(e,t)=>`${e||"Someone"} moved ${t||"this canvas"} to the trash`,trashedLine:"You can keep looking. Your unsent changes stay with it.",restore:"Restore",restoredAs:(e)=>`Restored as ${e}. A canvas with the old name already exists.`,sharedWithYou:(e)=>`Shared with you · ${$9(e)}`,onlyOne:(e)=>`Only ${e} was shared with you.`,onlyMany:(e)=>`Only these ${e} canvases were shared with you.`});z9=Object.freeze({path:"/_health",ms:30000}),F9=Object.freeze({path:"/_api/share/me",ms:60000}),Xke=Symbol.for("maude.access.refusal-watch");O9=new Set});function C0e(e=globalThis.window){Q9=!0,e?.dispatchEvent?.(new CustomEvent("maude:open-trash"))}function o7(){let e=Q9;return Q9=!1,e}function jx(e,t=globalThis.window){e7.push(e),t?.dispatchEvent?.(new CustomEvent(DD))}function N0e(){let e=e7;return e7=[],e}function tf(e,t,n,o=globalThis.window){o?.dispatchEvent?.(new CustomEvent(aI,{detail:{op:e,path:t,label:n}}))}function dg(e,t,n=globalThis.window){n?.dispatchEvent?.(new CustomEvent(aI,{detail:{op:"jump",path:e,artboardId:t}}))}function A0e(e=globalThis.window){t7=!0,e?.dispatchEvent?.(new CustomEvent(zD))}function T0e(){let e=t7;return t7=!1,e}var n7="maude:open-trash",Q9=!1,DD="maude:canvases-op",e7,aI="maude:canvas-op",zD="maude:focus-selector",t7=!1;var qu=qe(()=>{e7=[]});var nf=(...e)=>e,Ux;var FD=qe(()=>{Ux=Object.freeze([{id:"kanban",title:"Kanban",desc:"To do · Doing · Done",thumb:"kanban",board:{groups:[{title:"To do",cards:nf("","")},{title:"Doing",cards:nf("")},{title:"Done",cards:nf("")}]}},{id:"retro",title:"Retro",desc:"Went well · To improve · Actions",thumb:"retro",board:{groups:[{title:"Went well",cards:nf("","")},{title:"To improve",cards:nf("","")},{title:"Actions",cards:nf("")}]}},{id:"flow",title:"Flowchart",desc:"Steps and decisions",thumb:"flow",board:{layout:"flow",nodes:[{id:"start",label:"Start"},{id:"decide",label:"Decision?",shape:"diamond"},{id:"yes",label:"Yes"},{id:"no",label:"No"}],edges:[{from:"start",to:"decide"},{from:"decide",to:"yes",label:"Yes"},{from:"decide",to:"no",label:"No"}]}},{id:"calendar",title:"Content calendar",desc:"One column a day",thumb:"cal",board:{groups:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map((e)=>({title:e,cards:nf("")}))}},{id:"roadmap",title:"Roadmap",desc:"One column a month",thumb:"road",board:{groups:[{title:"This month",cards:nf("","")},{title:"Next month",cards:nf("","")},{title:"The month after",cards:nf("")}]}},{id:"brainstorm",title:"Brainstorm",desc:"A topic and ideas round it",thumb:"brain",board:{title:"Topic",layout:"radial",groups:[{title:"Ideas",cards:nf("","","","","","")}]}},{id:"checklist",title:"Checklist",desc:"One section, ticks",thumb:"check",board:{groups:[{title:"Checklist",cards:[{text:"Checklist",items:["","",""]}]}]}},{id:"blank",title:"Blank section",desc:"Draw it, name it",thumb:"blank",board:{groups:[{title:"Section"}]}}])});var sI,iI,I0e;var E0e=qe(()=>{sI={shell:["desktop"],minRole:"edit"},iI={hidden:!0},I0e=[{id:"ai.runs.list",label:"AI runs",kind:"command",icon:"sparkle",exec:"shell",visible:sI,search:iI},{id:"ai.stop",label:"Stop",kind:"command",exec:"shell",visible:sI,search:iI},{id:"ai.cancel-waiting",label:"Cancel the waiting prompt",kind:"command",exec:"shell",visible:sI,search:iI},{id:"ai.run-on-copy",label:"Run on a copy",kind:"command",exec:"shell",visible:sI,search:iI},{id:"ai.keep-going",label:"Keep going",kind:"command",exec:"shell",visible:sI,search:iI}]});function R0e(e){if(e===" ")return"Space";let t=String(e).trim();if(!t||/\b(click|hover|drag|scroll)\b/i.test(t))return null;let n=new Set;t=t.replace(/\b(cmd|command|meta|ctrl|control|alt|opt|option|shift)\s*\+\s*/gi,(r,a)=>(n.add(qOt[a.toLowerCase()]),""));for(;;){t=t.replace(/^\s+/,"");let r=BD.find((a)=>t.startsWith(a));if(!r||t.trim().length===r.length)break;n.add(r),t=t.slice(r.length)}let o=t.trim();if(jD[o])o=jD[o];else if(/^[a-z]$/i.test(o))o=o.toUpperCase();else if(/^f\d{1,2}$/i.test(o))o=o.toUpperCase();if(!o)return null;return BD.filter((r)=>n.has(r)).join("")+o}function E1(e){let t=R0e(e);if(!t)throw Error(`actions/keys: '${e}' is not a key chord`);return t}function $1(e){let t=new Set;if(e.metaKey||e.ctrlKey)t.add("⌘");if(e.altKey)t.add("⌥");let n=e.key??"";if(jD[n])n=jD[n];else if(/^F\d{1,2}$/.test(n));else if(/^[\x21-\x7e]$/.test(n)){if(/^[a-z]$/i.test(n))n=n.toUpperCase();else if(n==="/"&&e.shiftKey&&e.code==="Slash"&&!e.altKey)n="?"}else if(e.code){let a=/^Key([A-Z])$/.exec(e.code)??/^Digit(\d)$/.exec(e.code);n=a?a[1]:KOt[e.code]??n}let o=e.shiftKey&&t.size===0?/^Digit(\d)$/.exec(e.code??""):null;if(o)n=o[1];let r=!!o||/^[A-Z]$/.test(n)||$0e.has(n)||/^F\d/.test(n);if(e.shiftKey&&r)t.add("⇧");return BD.filter((a)=>t.has(a)).join("")+n}function M0e(e){let{mods:t,key:n}=L0e(e);if(t.some((o)=>o!=="⇧"))return!1;if($0e.has(n)||/^F\d{1,2}$/.test(n))return!1;return n.length===1}function O0e(e){return e.includes("⌘")||e.includes("⌃")}function L0e(e){let t=[],n=e;for(;;){let o=BD.find((r)=>n.startsWith(r)&&n.length>r.length);if(!o)break;t.push(o),n=n.slice(o.length)}return{mods:t,key:n}}function km(e,t={}){let{mods:n,key:o}=L0e(R0e(e)??e),r=o==="="&&n.includes("⌘")?"+":o;return t.spaced?[...n,r].join(" "):n.join("")+r}var BD,jD,$0e,qOt,KOt,P0e,D0e;var of=qe(()=>{BD=["⌃","⌥","⇧","⌘"],jD={Enter:"↵",Return:"↵","↩":"↵",Escape:"esc",Esc:"esc",esc:"esc"," ":"Space",Space:"Space",Spacebar:"Space",ArrowLeft:"←",ArrowRight:"→",ArrowUp:"↑",ArrowDown:"↓",Backspace:"⌫",Delete:"⌦",Del:"⌦",Tab:"tab",tab:"tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown","-":"−","–":"−"},$0e=new Set(["↵","esc","Space","tab","⌫","⌦","←","→","↑","↓","Home","End","PageUp","PageDown"]),qOt={cmd:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",opt:"⌥",option:"⌥",shift:"⇧"};KOt={Minus:"−",Equal:"=",Slash:"/",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Period:".",Semicolon:";",Quote:"'",Backquote:"`",Space:"Space"};P0e=new Set(["⌘Z","⇧⌘Z","⌘Y","⌘A","⌘C","⌘X","⌘V","⇧⌘V","⌥⇧⌘V","⌘B","⌘I","⌘U","⌘←","⌘→","⌘↑","⌘↓","⇧⌘←","⇧⌘→","⌥←","⌥→","⌘⌫","⌥⌫"].map(E1)),D0e=new Set(["⌘N","⇧⌘N","⌘T","⌘W","⌘Q","⌘L"].map(E1))});function Tt(e,t,n={}){return{chord:E1(e),layer:t,...n}}function Kr(e,t,n,o={}){let r=[...t],a=[];for(let s=0;s<1<<r.length;s++){let l=r.filter((u,d)=>s&1<<d).join(""),c=Tt(l+e,n,o);a.push(s===0?c:{...c,alias:!0})}return a}var Zd,lI,UD,Xc,Hx;var Jd=qe(()=>{of();Zd=["chrome","timeline","text"],lI={focus:["chrome","timeline"],notFacts:["rangeFocused"]},UD={notFacts:["selectFocused"]},Xc={focus:["canvas"]},Hx={focus:["canvas","text"]}});var $y,Iy,Wx,r7,z0e,Zc=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",keys:n}),Ey=(e,t,n,o={})=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},keys:n,...o}),YOt,F0e,B0e,j0e;var U0e=qe(()=>{FD();Jd();$y={...Xc,selection:["annotation"]},Iy={...$y,mode:["preview"]},Wx={focus:["canvas"],selection:["annotation"],facts:["checkItemFocused"]},r7={...Wx,focus:["text"]},z0e={...$y,notFacts:["checkItemFocused"]},YOt=[{id:"annotation.make-checklist",label:"Turn into checklist",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["checklist","todo","to-do","tasks","tick","sticky","list"]}},Ey("checklist.toggle","Tick / untick",[Tt("Space","selection",{when:Wx}),Tt("⌘↵","selection",{when:r7,inText:!0})],{search:{keywords:["tick","check","done","todo","checklist"]}}),Ey("checklist.edit","Edit item",[Tt("↵","selection",{when:Wx})],{search:{keywords:["checklist","item","rename","reword"]}}),Ey("checklist.add-below","Add an item",[Tt("↵","selection",{when:r7,inText:!0})],{search:{keywords:["checklist","item","add","todo","new"]}}),Ey("checklist.remove-empty","Remove the empty item",[Tt("⌫","selection",{when:r7,inText:!0})],{search:{keywords:["checklist","item","remove","delete"]}}),Ey("checklist.move-up","Move item up",[Tt("⌥⌘↑","selection",{when:{...Wx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","up"]}}),Ey("checklist.move-down","Move item down",[Tt("⌥⌘↓","selection",{when:{...Wx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","down"]}}),Ey("checklist.focus-prev","Previous item",[Tt("↑","selection",{when:Wx})],{search:{hidden:!0}}),Ey("checklist.focus-next","Next item",[Tt("↓","selection",{when:Wx})],{search:{hidden:!0}})],F0e=[Zc("annotation.group","Group",[Tt("⌘G","selection",{when:Iy})]),Zc("annotation.ungroup","Ungroup",[Tt("⇧⌘G","selection",{when:Iy})]),Zc("annotation.lock","Lock / unlock",[Tt("⇧⌘L","selection",{when:Iy})]),Zc("annotation.duplicate","Duplicate",[Tt("⌘D","selection",{when:$y})]),Zc("annotation.to-front","Bring to front",[Tt("]","selection",{when:Iy})]),Zc("annotation.forward","Bring forward",[Tt("⌘]","selection",{when:Iy})]),Zc("annotation.to-back","Send to back",[Tt("[","selection",{when:Iy})]),Zc("annotation.backward","Send backward",[Tt("⌘[","selection",{when:Iy})]),Zc("annotation.copy","Copy",[Tt("⌘C","selection",{when:$y})]),Zc("annotation.cut","Cut",[Tt("⌘X","selection",{when:$y})]),Zc("annotation.chain","Add the next one",[Tt("⌘↵","selection",{when:$y})]),Zc("annotation.edit-text","Edit text",[Tt("↵","selection",{when:z0e})]),Zc("annotation.nudge","Nudge",["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:z0e}))),Zc("annotation.remove","Remove",[...Kr("⌫","⇧","selection",{when:$y}),...Kr("⌦","⇧","selection",{when:$y})]),{id:"annotation.point-to",label:"Point to…",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["arrow","point","bind","re-aim","dangling"]}},{id:"annotation.resolve",label:"Resolve",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["resolve","reopen","done","sticky","strike"]}},{id:"annotation.fan-out",label:"Fan out",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["stack","spread","sticky","row"]}},{id:"annotation.to-comment",label:"Turn into a comment",kind:"command",exec:"canvas",icon:"comment",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["comment","thread","sticky","convert","answer"]}},{id:"annotation.fold",label:"Fold section",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["fold","unfold","collapse","section","expand"]}},{id:"annotation.ask-ai",label:"Ask AI about this",kind:"command",exec:"canvas",icon:"sparkle",enabled:{minRole:"edit",selection:["annotation"]},keys:[Tt("⌘/","selection",{when:Iy})],search:{keywords:["ask ai","sticky","section","selection"]}},...YOt],B0e=[{id:"annotations.hide-resolved",label:"Hide resolved stickies",kind:"command",exec:"canvas",visible:{minRole:"view"},search:{keywords:["resolved","done","sticky","hide","show"]}},{id:"annotations.trash-resolved",label:"Move resolved stickies to the trash",kind:"command",exec:"canvas",icon:"trash",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["resolved","trash","clear","sticky","done","delete"]}},{id:"annotations.start-vote",label:"Start a vote…",kind:"command",exec:"canvas",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","poll","dot","decide","ballot","pick"]}},{id:"annotations.end-vote",label:"End vote",kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","end","finish","results","count"]}},{id:"annotations.select-resolved",label:"Select resolved stickies",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen"]},search:{keywords:["resolved","select","sticky","done"]}}],j0e=Ux.map((e)=>({id:`annotation.template-${e.id}`,label:`${e.title} template`,kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["template","start","section"]}}))});var H0e,W0e;var V0e=qe(()=>{Jd();H0e={focus:["chrome","timeline","canvas"],notFacts:["rangeFocused"]},W0e=[{id:"settings.open",label:"Settings…",kind:"command",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Tt("⌘,","global",{inText:!0,when:{focus:[...Zd,"canvas"]}})],legacy:{palette:"Settings…",menu:"Settings…"}},{id:"settings.reset-panel-layout",label:"Reset panel layout",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["panels","sides","dock","layout","left","right"]}},{id:"settings.reset-all",label:"Reset all settings…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["defaults","preferences","fresh"]}},{id:"settings.use-own-plugin-copy",label:"Use my own plugin copy",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["plugins","claude code","bundled","marketplace"]}},{id:"settings.experimental-teams",label:"AI reviews argue it out (teams)",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["teams","debate","review","experimental"]}},{id:"connections.replace-hub-token",label:"Replace the team server’s access token…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["hub","token","team server","self-hosted","credential","access"]}},{id:"connections.figma-test",label:"Test the Figma connection",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["figma","token","import","check"]}},{id:"connections.cloud-project-connect",label:"Connect this folder to a cloud project…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["cloud","link","attach","sync","workspace"]}},{id:"connections.cloud-project-disconnect",label:"Disconnect this folder from its server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["cloud","unlink","detach","stop syncing","sign out"]}},{id:"account.switch",label:"Switch account…",kind:"command",exec:"shell",visible:{shell:["desktop","cloud"]},search:{keywords:["account","sign in","profile","no account","this mac only"]}},{id:"account.add-cloud",label:"Add a Maude Cloud account…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["cloud","sign in","account","login"]}},{id:"account.link-server",label:"Link your server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["team server","hub","self-hosted","custom server","sign in","link"]}},{id:"account.github-signin",label:"Sign in with GitHub…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["github","sign in","login","publish","connect"]}},{id:"ai.chat",label:"AI chat",kind:"toggle",icon:"sparkle",exec:"shell",visible:{shell:["desktop","cloud"]},enabled:{shell:["desktop"]},search:{note:"in the desktop app"},keys:[Tt("⌘/","global",{inText:!0,when:{focus:Zd,facts:["native"]}})],legacy:{menu:"Assistant"}},{id:"help.shortcuts",label:"Keyboard shortcuts",kind:"toggle",icon:"help",exec:"shell",fromCanvas:!0,keys:[Tt("?","global",{inText:!1,when:H0e}),Tt("⌘?","global",{inText:!1,alias:!0,when:H0e})],legacy:{palette:"Keyboard shortcuts",menu:"Keyboard shortcuts",sheet:"This cheat sheet · help"}},{id:"help.guides",label:"Help and guides",kind:"command",icon:"help",exec:"shell",keys:Kr("F1","⌥⇧⌘","global",{inText:!1,when:lI}),legacy:{palette:"Help · commands & flows",menu:"Help · commands & flows",sheet:"This cheat sheet · help"}},{id:"help.add-guides",label:"Add the guide canvases to this project",kind:"command",icon:"help",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["guides","how to use maude","how to make video","tutorial","examples"],where:"Help and guides"}},{id:"ai.ask-fill-artboard",label:"Ask AI to fill this artboard",kind:"command",icon:"sparkle",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{keywords:["fill","empty artboard","draft","ask ai"],where:"Empty artboard › Ask AI"}},{id:"ai.generate",label:"Ask AI to generate…",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"Ask AI to generate…",menu:"Ask AI to generate…"}},{id:"ai.draw-mark",label:"Draw a mark",kind:"command",icon:"pen",exec:"shell",legacy:{palette:"Draw a mark with the SVG agent"}},{id:"help.whats-new",label:"What's new",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"What's new in maude",menu:"What's new"}},{id:"help.tour",label:"Take the tour",kind:"command",exec:"shell",legacy:{menu:"Take the tour"}},{id:"help.intro",label:"Watch the intro",kind:"command",exec:"shell",legacy:{menu:"Watch the intro"}},{id:"help.sharing",label:"How sharing works",kind:"command",exec:"shell",legacy:{menu:"How sharing works"}},{id:"help.setup",label:"Set up Maude…",kind:"command",exec:"shell",legacy:{menu:"Quick setup"}},{id:"help.ai-readiness",label:"Check AI setup again",kind:"command",exec:"shell",legacy:{menu:"Check AI editing readiness…"}},{id:"help.report-bug",label:"Report a bug…",kind:"command",icon:"help",exec:"shell",native:{menu:"Help",order:1},legacy:{palette:"Report a bug…",menu:"Report a bug…"}}]});var G0e;var q0e=qe(()=>{Jd();G0e=[{id:"canvas.new",label:"New canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"An empty canvas, ready to draw on"},visible:{minRole:"edit"},keys:[Tt("⌘N","global",{inText:!0,when:{shell:["desktop"]}})],legacy:{palette:"New canvas",menu:"New canvas…",sheet:"New brief board"}},{id:"canvas.new-brief",label:"New brief canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"A board to write a brief on, for AI to draft from"},visible:{minRole:"edit"}},{id:"home.ask",label:"Ask AI for a new canvas…",kind:"command",icon:"sparkle",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"canvas.reload",label:"Reload canvas",kind:"command",icon:"reload",exec:"shell",fromCanvas:!0,keys:[Tt("⌘R","global",{inText:!0})],legacy:{palette:"Reload active canvas",menu:"Reload canvas",sheet:"Reload canvas"}},{id:"canvas.new-video",label:"New video",kind:"command",icon:"plus",exec:"shell",search:{hint:"A canvas for a video, with its timeline"},visible:{minRole:"edit"},legacy:{palette:"New video…"}},{id:"canvas.close",label:"Close canvas",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Close canvas"}},{id:"canvas.duplicate",label:"Duplicate canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.rename",label:"Rename canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.move",label:"Move to…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.copy-link",label:"Copy canvas link",kind:"command",exec:"shell",search:{where:"Canvases panel › row menu"},enabled:{facts:["canvasOpen"]}},{id:"canvas.trash",label:"Move canvas to trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.view-code",label:"View code",kind:"command",icon:"code",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["code","source","tsx","developer","read only"],where:"Canvases panel › row menu › View code"}},{id:"canvas.reveal-in-finder",label:"Reveal in Finder",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["finder","show","file","folder","explorer"],where:"Canvases › Advanced"}},{id:"canvas.open-in-editor",label:"Open in editor",kind:"command",icon:"edit",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["editor","code","vscode","file","tsx"],where:"Canvases › Advanced"}},{id:"canvas.copy-file-path",label:"Copy file path",kind:"command",icon:"duplicate",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["path","file","copy","location"],where:"Canvases › Advanced"}},{id:"canvas.rename-file",label:"Rename file…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["rename","file","name"],where:"Canvases › Advanced"}},{id:"canvas.copy-error",label:"Copy error",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"canvas.ask-ai-fix",label:"Ask AI to fix it",kind:"command",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{hidden:!0}},{id:"canvas.last-good",label:"Last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"import.figma",label:"Import from Figma…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{keywords:["figma","frames","dev mode","access token"]}},{id:"import.brand",label:"Import a brand…",kind:"command",exec:"shell",visible:{minRole:"edit"}},{id:"video.assemble",label:"Assemble clips into a video",kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:"Assemble dropped clips → video"}},...[["desktop","Desktop"],["laptop","Laptop"],["tablet","Tablet"],["mobile","Mobile"],["a4","A4 (print)"],["letter","Letter (print)"]].map(([e,t])=>({id:`artboard.new-${e}`,label:`New artboard: ${t.replace(" (print)","")}`,kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:`New artboard: ${t}`}})),{id:"artboard.new-video",label:"New artboard: Video",kind:"command",exec:"shell",visible:{minRole:"edit"}}]});function Gx(e,t,n){return{id:`chat.advanced.${e}`,label:t,kind:"command",exec:"shell",visible:a7,search:{keywords:n,where:"AI chat panel › Advanced"}}}var a7,Vx,Sm,K0e;var Y0e=qe(()=>{a7={shell:["desktop"]},Vx={shell:["desktop"],minRole:"edit"},Sm={hidden:!0};K0e=[{id:"chat.new",label:"New chat",kind:"command",icon:"plus",exec:"shell",visible:a7,search:Sm},{id:"chat.rename",label:"Rename…",kind:"command",exec:"shell",visible:Vx,search:Sm},{id:"chat.archive",label:"Archive",kind:"command",exec:"shell",visible:Vx,search:Sm},{id:"chat.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",visible:Vx,search:Sm},{id:"chat.undo",label:"Undo this chat",kind:"command",exec:"shell",visible:Vx,search:Sm},{id:"chat.copy-transcript",label:"Copy transcript",kind:"command",exec:"shell",visible:a7,search:Sm},{id:"chat.open-in-terminal",label:"Open in terminal",kind:"command",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:{keywords:["terminal","resume","claude"],where:"AI chat panel › Advanced"}},Gx("ask-before","Permissions",["ask before","mode","permission","plan","suggest only","bypass","auto"]),Gx("model","Model",["opus","sonnet","haiku","claude"]),Gx("effort","Effort",["thinking","think harder","low","high"]),Gx("fast-mode","Fast mode",["fast","speed"]),Gx("show-in-chat","Show in chat",["verbose","thinking","transcript","detail","view"]),Gx("suggestions","Suggestions",["chips","suggest","quick"]),Gx("raw-log","Raw log",["tool log","tools","calls","debug","log"]),{id:"ai.attach-files",label:"Attach files…",kind:"command",icon:"file",exec:"shell",visible:Vx,search:Sm},{id:"ai.attach-folder",label:"Choose a folder…",kind:"command",icon:"folder",exec:"shell",visible:{shell:["desktop"],minRole:"edit",facts:["native"]},search:Sm},{id:"ai.attach-assets",label:"From Assets",kind:"command",icon:"image",exec:"shell",visible:Vx,search:Sm},{id:"ai.attach-screenshot",label:"Paste a screenshot",kind:"command",exec:"shell",visible:Vx,search:Sm}]});var rf=(e,t,n={})=>({id:e,label:t,kind:"command",exec:"shell",...n}),X0e;var Z0e=qe(()=>{X0e=[rf("diag.sync","Sync"),rf("diag.server","Server"),rf("diag.ai","AI setup"),rf("diag.logs","Logs"),rf("diag.copy-logs","Copy logs",{search:{where:"Menu › Diagnostics › Logs"}}),{id:"diag.logs-show-in-finder",label:"Show logs in Finder",kind:"command",exec:"native",search:{where:"Menu › Diagnostics › Logs"}},rf("diag.ai-recheck","Check AI setup again"),rf("diag.address","Address"),rf("diag.process","Process"),rf("diag.project-folder","Project folder"),rf("sync.resync","Resync now",{visible:{minRole:"edit"},enabled:{facts:["online"]}}),rf("sync.download-all","Download all",{enabled:{facts:["online"]}})]});var J0e,XOt,cI,Q0e,mr=(e,t,n=J0e)=>({id:e,label:t,kind:"command",exec:"shell",visible:n,search:Q0e}),eSe;var tSe=qe(()=>{J0e={minRole:"edit"},XOt={minRole:"owner"},cI={minRole:"view"},Q0e={hidden:!0},eSe=[mr("ds.publish","Update canvases"),mr("ds.cancel-pending","Cancel"),mr("ds.keep-outside","Keep"),mr("ds.undo-outside","Undo"),mr("ds.pick","Use this"),mr("ds.canvas-update","Update"),mr("ds.canvas-leave","Keep this version"),mr("ds.trash-token","Move to Trash"),mr("ds.restore-token","Restore"),mr("ds.clear-token","Clear out",XOt),mr("ds.open","Design system",cI),mr("ds.set-theme-preview","Show the system in Light or Dark",cI),mr("ds.show-reach","Show where it lands",cI),mr("ds.review-update","Update for every canvas…"),mr("ds.go-to","Go to the design system",cI),mr("ds.instance-update","Update to the current look"),mr("ds.set-token","Change a token"),mr("ds.set-dark-follows","Dark follows Light"),mr("ds.set-master","Change a component"),mr("ds.make","Make a design system"),mr("ds.draft","Write a direction"),mr("ds.use-direction","Use this direction"),mr("ds.mix","Mix directions"),mr("ds.make-done","Finish the design system"),mr("ds.set-default","Use for new canvases"),mr("ds.rename","Rename…"),mr("ds.switch","Switch canvases to another system…"),mr("ds.preview","Preview in another system…",cI),mr("ds.convert","Turn into a Design system canvas"),mr("ds.convert-restore","Restore the system folder"),mr("ds.fix-contrast","Lighten to 4.5:1"),mr("ds.add-colour","Add it to the system"),mr("ds.use-nearest","Use the system colour"),mr("ds.check-system","Check the system"),{id:"ds.reveal-files",label:"Reveal in Finder",kind:"command",exec:"shell",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:Q0e},mr("ds.handoff-tokens","Hand off tokens"),{id:"ds.upgrade",label:"Bring it up to the schema",kind:"command",exec:"shell",visible:{minRole:"edit",facts:["dsUpgradeOffered"]},search:{keywords:["design system","schema","upgrade","bring up","conformant","tokens"]}},{id:"ds.library-link",label:"Link a team library",kind:"command",exec:"shell",visible:J0e,search:{keywords:["team","library","share","shared","brand kit","design system"]}},mr("ds.library-update","Update from the library"),mr("ds.library-unlink","Unlink the library")]});var nSe,oSe,rSe,Ln,Ni,s7,Ry=(e,t={})=>Tt(e,"selection",{when:s7,...t}),My=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},...n.length?{keys:n}:{}}),aSe;var sSe=qe(()=>{Jd();nSe={focus:["chrome"],facts:["canvasOpen"],notFacts:["rangeFocused"]},oSe={when:UD,inText:!1},rSe={focus:["chrome","timeline"],facts:["canvasOpen"],notFacts:["rangeFocused"]},Ln={minRole:"edit"},Ni=Xc,s7={...Ni,mode:["edit"],selection:["object"]},aSe=[{id:"edit.undo",label:"Undo",kind:"command",exec:"canvas",enabled:Ln,keys:[Tt("⌘Z","global",{inText:!1,when:nSe}),Tt("⌘Z","timeline",oSe),Tt("⌘Z","global",{when:Xc})],legacy:{menu:"Undo",sheet:"Undo / redo"}},{id:"edit.redo",label:"Redo",kind:"command",exec:"canvas",enabled:Ln,keys:[Tt("⇧⌘Z","global",{inText:!1,when:nSe}),Tt("⇧⌘Z","timeline",oSe),Tt("⌘Y","global",{inText:!1,alias:!0,when:rSe}),Tt("⇧⌘Y","global",{inText:!1,alias:!0,when:rSe}),Tt("⇧⌘Z","global",{when:Xc}),Tt("⌘Y","global",{alias:!0,when:Xc})],legacy:{menu:"Redo",sheet:"Undo / redo"}},{id:"edit.undo-history",label:"Undo history…",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{...Ln,facts:["canvasOpen"]}},{id:"edit.copy",label:"Copy",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Tt("⌘C","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.cut",label:"Cut",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Tt("⌘X","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.paste",label:"Paste",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Tt("⌘V","global",{inText:!0,when:{focus:Zd}})]},{id:"select.all",label:"Select all",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:[Tt("⌘A","selection",{when:Ni})]},{id:"select.none",label:"Deselect all",kind:"command",exec:"canvas",visible:{minRole:"comment"},legacy:{menu:"Deselect all"}},{id:"select.all-annotations",label:"Select all annotations",kind:"command",exec:"canvas",visible:Ln,keys:[Tt("⇧⌘A","global",{inText:!1,when:Xc})],legacy:{menu:"Select all annotations"}},{id:"object.duplicate",label:"Duplicate",kind:"command",exec:"canvas",keys:[Tt("⌘D","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.copy",label:"Copy",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Tt("⌘C","selection",{when:s7})],search:{hidden:!0},help:{group:"objects",order:901}},{id:"object.cut",label:"Cut",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Tt("⌘X","selection",{when:s7})],search:{hidden:!0},help:{group:"objects",order:902}},{id:"artboard.copy",label:"Copy artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Tt("⌘C","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:903}},{id:"artboard.cut",label:"Cut artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Tt("⌘X","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:904}},{id:"canvas.paste",label:"Paste objects",kind:"command",exec:"canvas",enabled:Ln,search:{keywords:["paste","clipboard","objects","artboard"]}},{id:"edit.copy-properties",label:"Copy properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:Kr("⌥⌘C","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"edit.paste-properties",label:"Paste properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},enabled:Ln,keys:Kr("⌥⌘V","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"object.enter",label:"Go inside",kind:"command",exec:"canvas",keys:[Tt("↵","selection",{when:{...Ni,mode:["edit"],selection:["object"],notFacts:["toolArmed"]}})]},{id:"object.step-out",label:"Step out",kind:"command",exec:"canvas",enabled:{selection:["object"]}},{id:"object.select-child",label:"Select first child",kind:"command",exec:"canvas"},{id:"object.select-parent",label:"Select parent",kind:"command",exec:"canvas",keys:[Tt("⇧↵","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.select-next",label:"Select next object",kind:"command",exec:"canvas",keys:[Tt("tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.select-prev",label:"Select previous object",kind:"command",exec:"canvas",keys:[Tt("⇧tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.remove",label:"Remove",kind:"command",exec:"canvas",keys:[...Kr("⌫","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...Kr("⌦","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...["⌘⌫","⇧⌘⌫","⌥⌫","⌥⇧⌫","⌥⌘⌫","⌥⇧⌘⌫","⌘⌦","⇧⌘⌦","⌥⌦","⌥⇧⌦","⌥⌘⌦","⌥⇧⌘⌦"].map((e)=>Tt(e,"timeline",{inText:!1,alias:!0,when:{selection:["clip"],notFacts:["selectFocused"]}})),...Kr("⌫","⇧","selection",{when:{...Ni,selection:["object"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.nudge",label:"Nudge",kind:"command",exec:"canvas",keys:["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:{...Ni,selection:["object","artboard"]}}).map((t)=>t.chord==="←"||t.chord==="→"?{...t,when:{...t.when,notFacts:["selectionHasTakes"]}}:t))},My("object.frame","Frame selection",[Ry("⌥⌘G"),Ry("⌘G",{alias:!0})]),My("object.unframe","Remove frame",[Ry("⇧⌘G")]),My("object.bring-front","Bring to front",[Ry("⌘]")]),My("object.bring-forward","Bring forward",[Ry("]")]),My("object.send-backward","Send backward",[Ry("[")]),My("object.send-back","Send to back",[Ry("⌘[")]),My("object.lock","Lock",[Ry("⇧⌘L")]),My("object.hide","Hide",[]),{id:"object.select-matching",label:"Select matching",kind:"command",exec:"canvas",enabled:{selection:["object"]}},...[["align.left","Align left",["align","left","edge"]],["align.hcentre","Align horizontal centres",["align","centre","center","middle"]],["align.right","Align right",["align","right","edge"]],["align.top","Align top",["align","top","edge"]],["align.vmiddle","Align vertical middles",["align","middle","centre","center"]],["align.bottom","Align bottom",["align","bottom","edge"]],["distribute.h","Distribute horizontally",["distribute","space","even","gaps"]],["distribute.v","Distribute vertically",["distribute","space","even","gaps"]]].map(([e,t,n])=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object","artboard"]},search:{keywords:[...n]}})),{id:"object.rotate",label:"Rotate 90°",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["rotate","turn","angle"]}},{id:"object.place-freely",label:"Place freely",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["absolute","free","position","ignore auto layout","x y"]}},{id:"object.reorder-earlier",label:"Move earlier",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","earlier","before","left","up"]}},{id:"object.reorder-later",label:"Move later",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","later","after","right","down"]}},{id:"object.reorder-to",label:"Move next to…",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"object.constrain",label:"Constraints",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.set-gap",label:"Set gap",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.convert-to-absolute",label:"Convert children to absolute position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["remove auto layout","absolute","free","unlayout","convert layout"]}},{id:"object.insert-shape",label:"Draw a shape",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.draw",label:"Draw an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.insert-preset",label:"Add an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"object.insert-path",label:"Draw a path",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"path.edit",label:"Edit path points",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},...[["union","Union selection"],["subtract","Subtract selection"],["intersect","Intersect selection"],["exclude","Exclude selection"]].map(([e,t])=>({id:`shape.combine.${e}`,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]}})),{id:"object.set-corner-radius",label:"Round a corner",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set",label:"Set text",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-language",label:"Set language",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-case",label:"Set case",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.use-style",label:"Use a style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.reset-style",label:"Reset text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","style","type","font","size"]}},{id:"component.insert",label:"Place a component",kind:"command",exec:"canvas",enabled:{...Ln},search:{hidden:!0}},{id:"image.place",label:"Place a picture",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"image.crop",label:"Crop",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["crop","fit","fill","tile","zoom","picture","image","photo"]}},{id:"image.replace",label:"Replace…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["replace","swap","picture","image","photo"]}},{id:"image.next-take",label:"Next take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Tt("→","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"image.prev-take",label:"Previous take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Tt("←","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"photo.use-edit",label:"Edit this use of the photo",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"photo.apply-every-use",label:"Apply to every use…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["apply","every","use","all","photo","picture","image","look"]}},{id:"figma.make-editable",label:"Make editable",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"component.swap-variant",label:"Swap variant or component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"component.reset",label:"Reset to the main component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","instance","component","changes","master"]}},{id:"component.detach",label:"Detach instance",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","unlink","instance","component","plain","frame"]}},{id:"component.go-to-main",label:"Go to the main component",kind:"command",exec:"shell",enabled:{selection:["object"]},search:{hidden:!0}},{id:"text.detach-style",label:"Detach text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","style","unlink","type","no style"]}},{id:"inspector.copy-css",label:"Copy CSS",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.copy-id",label:"Copy element id",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.set-id",label:"Edit element id…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.stamp",label:"Name element",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.resize",label:"Resize artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.add-width",label:"Add a width",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.tidy",label:"Tidy up artboards",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["tidy","row","even","gaps","arrange","line up"]}},{id:"artboard.duplicate",label:"Duplicate artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Tt("⌘D","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{keywords:["copy","clone","duplicate","artboard"]}},{id:"artboard.duplicate-at-width",label:"Duplicate at another width",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-safe-zones",label:"Set safe zones",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print",label:"Set paper, size, bleed or margin",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.convert-kind",label:"Change kind",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"warning.fix",label:"Fix what to check",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print-guides",label:"Print guides on this artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-guides",label:"Set layout guides",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.rename",label:"Rename artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["name","label","artboard"]}},{id:"artboard.reset-position",label:"Reset artboard position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["position","grid","back","artboard"]}},{id:"artboard.trash",label:"Move artboard to the trash",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[...Kr("⌫","⇧","selection",{when:{...Ni,selection:["artboard"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["artboard"]}})],search:{keywords:["delete","remove","trash","artboard"]}},{id:"artboard.ask-ai",label:"Ask AI about this artboard",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"ai.ask-selection",label:"Ask AI about the selection",kind:"command",icon:"sparkle",exec:"canvas",visible:Ln,enabled:{...Ln,selection:["object"]},keys:[Tt("⌘/","selection",{when:{...Ni,mode:["edit"],selection:["object"]}})],search:{keywords:["ask ai","selection","in place","change these"]}},{id:"element.set-link",label:"Set link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"element.clear-link",label:"Clear link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"inspector.copy-code",label:"Copy code",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{minRole:"comment",selection:["object"]}},{id:"inspector.edit-css-as-text",label:"Edit CSS as text…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.detach",label:"Detach from shared component",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"inspect.copy-code",label:"Copy code",kind:"command",exec:"shell",enabled:{minRole:"comment",mode:["preview","viewing"],selection:["object"]}},{id:"inspect.edit",label:"Edit",kind:"command",exec:"canvas",enabled:{...Ln,mode:["preview","viewing"],selection:["object"]},keys:[Tt("↵","selection",{when:{...Ni,mode:["preview","viewing"],selection:["object"]}})],search:{keywords:["inspect","switch","edit mode"]}},{id:"asset.relink",label:"Relink…",kind:"command",exec:"shell",enabled:{...Ln}}]});var iSe;var lSe=qe(()=>{Jd();iSe=[{id:"export.open",label:"Export…",kind:"command",icon:"download",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},keys:[Tt("⇧⌘E","global",{inText:!0})],legacy:{palette:"Export…",menu:"Export…",sheet:"Export…"}},{id:"export.copy-png",label:"Copy as PNG",kind:"command",icon:"image",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},keys:[Tt("⇧⌘C","selection",{inText:!1,when:{selection:["artboard","object","video-artboard","generated-image"]}})],search:{keywords:["clipboard","image","paste","png"]}},{id:"export.copy-command",label:"Copy export command",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{where:"Export › Advanced",keywords:["terminal","cli","command line","script"]}},{id:"handoff.open",label:"Handoff to production",kind:"command",icon:"external",exec:"shell",visible:{minRole:"comment"},fromCanvas:!0,enabled:{minRole:"edit",facts:["canvasOpen"]},keys:[Tt("⇧⌘H","global",{inText:!0})],legacy:{palette:"Handoff to production",menu:"Handoff to production",sheet:"Handoff to production"}},{id:"export.rerun-last",label:"Export again",kind:"command",exec:"shell",visible:{minRole:"comment"},legacy:{sheet:"Export again"}},{id:"export.retry",label:"Retry",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"export.cancel",label:"Cancel",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"share.open",label:"Share…",kind:"command",icon:"share",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Share link…"}},{id:"share.copy-link",label:"Copy link",kind:"command",icon:"link",exec:"shell",search:{where:"Share"},legacy:{palette:"Copy link"}},{id:"share.move-to-cloud",label:"Move to Maude Cloud…",kind:"command",exec:"shell",visible:{shell:["desktop"],notFacts:["linkedHub"]}},{id:"sync.connect-link",label:"Connect",kind:"command",exec:"shell",visible:{minRole:"edit",notFacts:["linkedHub"]},search:{hidden:!0,where:"Share"}},{id:"share.link-settings",label:"Link settings…",kind:"command",icon:"link",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["link","expires","anyone with the link","team only","turn off link"]}},{id:"share.invite",label:"Invite people…",kind:"command",icon:"people",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["invite","add people","collaborator","email"]}},{id:"share.set-role",label:"Change what someone can do…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["role","permission","can edit","can comment","can view","make owner"]}},{id:"share.remove",label:"Remove someone…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["remove","revoke","access"]}},{id:"share.resend",label:"Resend an invite…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["resend","invitation","pending"]}},{id:"share.ask-to-edit",label:"Ask to edit",kind:"command",exec:"shell",visible:{minRole:"view",facts:["linkedHub"]},search:{keywords:["ask to edit","request access","edit access","permission"]}},{id:"share.request-approve",label:"Let them edit",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}},{id:"share.request-decline",label:"Not now",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}}]});var Ai,cSe;var uSe=qe(()=>{Ai={hidden:!0},cSe=[{id:"history.filter",label:"Filter versions",kind:"command",exec:"shell",search:Ai},{id:"history.view-version",label:"View this version",kind:"command",exec:"shell",search:Ai},{id:"history.object",label:"Version history of this object",kind:"command",exec:"shell",search:Ai},{id:"history.compare",label:"Compare",kind:"command",exec:"shell",search:Ai},{id:"history.compare-pictures",label:"Compare pictures",kind:"command",exec:"shell",search:Ai},{id:"history.name",label:"Name this version…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore",label:"Restore this version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-artboard",label:"Restore only this artboard",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-object",label:"Restore this object",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.go-back",label:"Go back to the last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.branch-switch",label:"Switch branch",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.new-branch",label:"New branch…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.fetch",label:"Fetch",kind:"command",exec:"shell",search:Ai},{id:"history.publish",label:"Publish",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.save-with-note",label:"Save a version with a note…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.open-pr",label:"Add to main · opens a pull request",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.discard-file",label:"Discard changes to a file",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.continue-draft",label:"Continue on your draft",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.undo-action",label:"Undo this change",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai}]});var Jc,dSe;var pSe=qe(()=>{Jd();Jc={shell:["desktop"]},dSe=[{id:"project.new",label:"New project…",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Tt("⇧⌘N","global",{inText:!0,when:Jc})],native:{menu:"File",order:2}},{id:"project.pull-copy",label:"Pull a local copy…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.share-github",label:"Share on GitHub…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.open",label:"Open project…",kind:"command",exec:"native",visible:{minRole:"comment"},keys:[Tt("⌘O","global",{inText:!0,when:Jc})],help:{group:"finding",order:20},native:{menu:"File",order:3}},{id:"home.open",label:"Show Home",kind:"command",exec:"native",keys:[Tt("⌘T","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:30},native:{menu:"File",order:4}},{id:"home.search",label:"Search",kind:"command",icon:"search",exec:"shell",visible:{shell:["home"]},search:{hidden:!0},keys:[Tt("⌘K","global",{inText:!0,when:{shell:["home"]}})]},{id:"cloud.open-remote",label:"Open",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"home.signin",label:"Sign in to Maude Cloud",kind:"command",icon:"cloud",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.join",label:"Join",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.leave",label:"Leave",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"hub.connect",label:"Connect to your own hub…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["hub","team server","self-hosted","address","sign in"]}},{id:"project.open-github",label:"Open a folder or a GitHub project…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["github","folder","repo","clone","open"]}},{id:"ai.connect",label:"Connect AI…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["api key","claude","anthropic","sign in","connect ai"]}},{id:"cli.install",label:"Install the maude command…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["terminal","cli","command","plugin","claude code","path"]}},{id:"nav.home",label:"Back to Home",kind:"command",icon:"home",exec:"native",visible:{shell:["desktop","cloud"]}},{id:"tab.close",label:"Close tab",kind:"command",exec:"native",keys:[Tt("⌘W","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:40},native:{menu:"File",order:5}},{id:"tab.next",label:"Show next tab",kind:"command",exec:"native",keys:[Tt("⌃tab","global",{inText:!0,when:Jc}),Tt("⇧⌘]","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:10},native:{menu:"Window",order:1}},{id:"tab.prev",label:"Show previous tab",kind:"command",exec:"native",keys:[Tt("⌃⇧tab","global",{inText:!0,when:Jc}),Tt("⇧⌘[","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:20},native:{menu:"Window",order:2}},{id:"tab.overview",label:"Show all tabs",kind:"command",exec:"native",keys:[Tt("⇧⌘\\","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:25},native:{menu:"Window",order:3}},{id:"tab.rename",label:"Rename…",kind:"command",exec:"native",visible:Jc},...[1,2,3,4,5,6,7,8].map((e)=>({id:`tab.select-${e}`,label:`Show tab ${e}`,kind:"command",exec:"native",keys:[Tt(`⌘${e}`,"global",{inText:!0,when:Jc})],native:{menu:"Window",order:2+e}})),{id:"tab.select-last",label:"Show last tab",kind:"command",exec:"native",keys:[Tt("⌘9","global",{inText:!0,when:Jc})],native:{menu:"Window",order:11}},{id:"app.check-updates",label:"Check for updates…",kind:"command",exec:"native",visible:{shell:["desktop"]},native:{menu:"App",order:1}}]});var i7,l7,fSe;var mSe=qe(()=>{i7={facts:["canvasOpen"]},l7={hidden:!0},fSe=[{id:"presence.follow",label:"Follow",kind:"command",icon:"eye",exec:"canvas",visible:i7,search:l7},{id:"presence.go-to",label:"Go to",kind:"command",exec:"canvas",visible:i7,search:l7},{id:"presence.bring-everyone",label:"Bring everyone here",kind:"command",icon:"share",exec:"canvas",visible:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["summon","spotlight","follow me","gather","everyone","people"]}},{id:"presence.stop",label:"Stop following",kind:"command",exec:"canvas",visible:i7,search:l7}]});var hSe;var gSe=qe(()=>{Jd();hSe=[{id:"search.open",label:"Search",kind:"command",icon:"search",exec:"shell",fromCanvas:!0,keys:[Tt("⌘K","global",{inText:!0,when:{notShell:["home"]}}),Tt("⇧⌘K","global",{inText:!0,alias:!0,when:{focus:Zd,notShell:["home"]}})],help:{group:"finding",order:10},legacy:{sheet:"Command palette"}},{id:"canvases.search",label:"Search canvases",kind:"command",exec:"shell",keys:[Tt("/","global",{inText:!1,when:lI})],legacy:{sheet:"Search files"}},{id:"canvases.find",label:"Find a canvas",kind:"command",exec:"shell",keys:Kr("⌘F","⇧","global",{inText:!1,when:lI}),legacy:{sheet:"Search files"}},{id:"canvases.pin",label:"Pin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.unpin",label:"Unpin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.sort",label:"Sort canvases",kind:"command",exec:"shell"},{id:"canvases.filter-kind",label:"Filter canvases by kind",kind:"command",exec:"shell",search:{where:"Canvases panel"}},{id:"canvases.refresh",label:"Refresh canvases",kind:"command",exec:"shell",keys:[Tt("⇧⌘R","global",{inText:!0,when:{focus:Zd}})]}]});var ZOt,uI,Ti=(e,t,n)=>({id:e,label:t,kind:"command",...n?{icon:n}:{},exec:"shell",visible:ZOt,search:uI}),bSe;var ySe=qe(()=>{ZOt={minRole:"edit"},uI={hidden:!0},bSe=[Ti("sync.conflict.keep-mine","Keep yours"),Ti("sync.conflict.keep-theirs","Keep theirs"),Ti("sync.conflict.keep-both","Keep both","duplicate"),Ti("save.retry-held","Retry saving"),Ti("sync.keep-mine","Keep mine"),Ti("sync.use-theirs","Use theirs"),Ti("sync.keep-both","Keep both","duplicate"),{id:"sync.compare",label:"Compare",kind:"command",exec:"shell",search:uI},Ti("sync.publish-ai-edit","Publish"),Ti("sync.discard-ai-edit","Discard"),Ti("sync.cancel-transfer","Cancel the transfer"),Ti("sync.allow-code","Allow shared code…"),Ti("sync.stop-code","Stop allowing shared code…"),Ti("sync.ignore-folder","Don’t sync this folder"),Ti("sync.sync-folder-again","Sync it again"),Ti("sync.delete-held-on-hub","Move to the hub’s trash too…"),Ti("sync.keep-held-on-hub","Keep on the hub"),Ti("sync.remove-held-here","Remove here too"),Ti("sync.keep-held-here","Keep them here"),Ti("sync.adopt-as-code","Adopt as code"),{id:"sync.open-canvas-folders",label:"Open canvas folders",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:uI},{id:"sync.get-latest",label:"Get latest",kind:"command",exec:"shell",search:uI},{id:"sync.sign-in-again",label:"Sign in again",kind:"command",exec:"shell",search:uI}]});var Ki,c7=(e,t,n)=>({id:e,label:t,kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0,where:n,note:"a pointer gesture on the timeline"}}),JOt,vSe;var wSe=qe(()=>{Jd();Ki={when:UD,inText:!1},JOt=[["comment","Comment on clip","comment"],["generate","Generate this clip","edit"],["adjust","Adjust the clip","edit"],["hide","Hide clip","edit"],["show","Show clip","edit"],["remove","Remove clip","edit"],["replace","Replace the clip’s media","edit"],["mute","Mute clip","edit"],["unmute","Unmute clip","edit"],["detach-audio","Detach audio","edit"],["to-overlay","Move to overlay layer","edit"],["to-storyline","Move to storyline","edit"],["layer-up","Move layer up","edit"],["layer-down","Move layer down","edit"],["earlier","Move clip earlier","edit"],["later","Move clip later","edit"],["replace-layer","Replace a layer’s media","edit"]],vSe=[{id:"timeline.play",label:"Play / pause",kind:"toggle",exec:"shell",keys:Kr("Space","⌥⇧⌘","timeline",Ki)},{id:"timeline.step",label:"Step a frame",kind:"command",exec:"shell",keys:[...Kr("←","⌥⇧⌘","timeline",Ki),...Kr("→","⌥⇧⌘","timeline",Ki)]},{id:"timeline.to-start",label:"Go to start",kind:"command",exec:"shell",keys:Kr("Home","⌥⇧⌘","timeline",Ki)},{id:"timeline.to-end",label:"Go to end",kind:"command",exec:"shell",keys:Kr("End","⌥⇧⌘","timeline",Ki)},{id:"timeline.prev-keyframe",label:"Previous keyframe",kind:"command",exec:"shell",keys:[Tt(",","timeline",Ki)]},{id:"timeline.next-keyframe",label:"Next keyframe",kind:"command",exec:"shell",keys:[Tt(".","timeline",Ki),Tt("⌘.","timeline",{...Ki,alias:!0})]},{id:"timeline.split",label:"Split at playhead",kind:"command",exec:"shell",keys:[Tt("S","timeline",Ki),...Kr("⌘B","⇧","timeline",Ki),Tt("⌘B","global",{...Ki,alias:!0,when:{facts:["timelineVisible"]}})]},{id:"timeline.loop-in",label:"Loop starts here",kind:"command",exec:"shell",keys:[Tt("I","timeline",Ki)]},{id:"timeline.loop-out",label:"Loop ends here",kind:"command",exec:"shell",keys:[Tt("O","timeline",Ki)]},{id:"timeline.loop-clear",label:"Clear the loop range",kind:"command",exec:"shell"},{id:"timeline.zoom-in",label:"Zoom timeline in",kind:"command",exec:"shell",keys:[Tt("⌘=","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}}),Tt("⌘+","timeline",{...Ki,alias:!0,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-out",label:"Zoom timeline out",kind:"command",exec:"shell",keys:[Tt("⌘−","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-fit",label:"Fit the timeline",kind:"command",exec:"shell",keys:[Tt("0","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.expand",label:"Expand the timeline",kind:"command",exec:"shell"},{id:"timeline.compact",label:"Make the timeline compact",kind:"command",exec:"shell"},{id:"timeline.add-track",label:"Add a track",kind:"command",exec:"shell",search:{where:"Timeline › Advanced",keywords:["track","video 2","music 2","layer","lane"]}},{id:"timeline.fold-track",label:"Fold a track",kind:"command",exec:"shell",search:{where:"Timeline",keywords:["fold","collapse","hide","track","text","graphics","lane"]}},{id:"timeline.marker.add",label:"Add a marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","chapter","bookmark","moment","name"]}},{id:"timeline.marker.remove",label:"Remove the marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","delete","remove"]}},{id:"timeline.marker.jump",label:"Jump to the next marker",kind:"command",exec:"shell",search:{where:"Timeline › Markers",keywords:["marker","next","previous","jump","chapter","flag"]}},{id:"timeline.comment-mode",label:"Comment on the timeline",kind:"toggle",exec:"shell",keys:Kr("C","⇧","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})},c7("timeline.trim","Trim a clip","Timeline › Drag a clip’s edge"),c7("timeline.move-clip","Move a clip","Timeline › Drag a clip"),c7("timeline.add-clips","Add footage to the video","Timeline › Drop footage"),...JOt.map(([e,t,n])=>({id:`timeline.clip-menu.${e}`,label:t,kind:"command",exec:"shell",enabled:{minRole:n},search:{hidden:!0,where:"Timeline › Right-click a clip",note:"the clip menu runs it"}}))]});function QOt(e,t){if(e==="present")return t?.kind==="artboards"?"present-artboards":"present-canvas";return e}function fc(e,t,n){return eLt[e][QOt(t,n)]}function qx(e,t,n){if(!e)return t==="measure"||t==="comment-pins"||t==="object-tools";return tLt[t](e,n)}var Qd=(e,t,n,o,r)=>Object.freeze({edit:e,preview:t,"present-artboards":n,"present-canvas":o,viewing:r}),eLt,tLt,xSe=(e,t)=>fc("left-panels",e,t)==="folded";var _m=qe(()=>{eLt=Object.freeze({clicks:Qd("tool","live","next-artboard","pan-zoom","specs"),toolbar:Qd("edit","preview","none","none","viewing"),annotations:Qd("quiet","drawn","hidden","hidden","read-only"),"comment-pins":Qd("shown","shown","hidden","hidden","shown"),measure:Qd("on","on","off","off","on"),"ai-changes":Qd("live","live","held","live-unmarked","live"),"left-panels":Qd("shown","shown","hidden","hidden","shown"),"ai-panel":Qd("shown","shown","hidden","hidden","none"),"share-cluster":Qd("full","full","hidden","hidden","full-access"),inspect:Qd("inspector","panel-on-cmd-click","hidden","hidden","panel-on-click"),"project-menu":Qd("pill","pill","esc-first","esc-first","pill"),esc:Qd("steps-back","steps-back","settles-back","same-view","deselect")});tLt=Object.freeze({measure:(e,t)=>fc("measure",e,t)==="on","inspect-panel":(e,t)=>fc("inspect",e,t).startsWith("panel"),"comment-pins":(e,t)=>fc("comment-pins",e,t)==="shown","object-tools":(e,t)=>fc("clicks",e,t)==="tool","live-design":(e,t)=>fc("clicks",e,t)==="live","annotations-editable":(e,t)=>fc("annotations",e,t)==="drawn",chrome:(e,t)=>fc("share-cluster",e,t)!=="hidden"})});function Yx(e,t){if(e==="edit"&&!t.edit)return"viewing";if(e==="viewing"&&t.edit)return"edit";return e}function NSe(e){if(e.edit||e.annotate)return"edit";return e.comment?"comment":"view"}function M1(e,t){for(let n of[e,...ASe[e]]){let o=af[n].slots.find((r)=>r.key===t);if(o)return{mode:n,slot:o}}return null}function m7(e,t,n,o){let r=M1(e,t);if(!r||r.slot.pending)return null;let{slot:a}=r,s=!!a.panel&&(a.tool===null||!!a.panelFirst),l=a.insert||a.panelFirst?null:a.tips&&o&&a.tips.includes(o)?o:a.tool,c=NSe(n);if(HD[c]<HD[a.minRole]||r.mode==="edit"&&!n.edit){if(l)return{kind:"deny",mode:r.mode,tool:l};return s&&a.panel?{kind:"deny",mode:r.mode,panel:a.panel}:{kind:"deny",mode:r.mode}}if(r.mode!==e){let u={kind:"request",mode:r.mode};if(l)u.tool=l;if(s&&a.panel)u.panel=a.panel;return u}if(a.insert)return{kind:"insert",insert:a.insert};if(l)return{kind:"arm",tool:l};return a.panel?{kind:"panel",panel:a.panel}:null}function TSe(e){let t=[];for(let n of[e,...ASe[e]])for(let o of af[n].slots){if(!o.key||t.includes(o.key))continue;if(M1(e,o.key)?.slot===o&&!o.pending)t.push(o.key)}return t}function ISe(e,t,n){if(!_Se(t))return!1;let o=af[e].slots.find((r)=>r.tool===t||!!r.tips?.includes(t)||!!r.more?.some((a)=>a.tool===t));return!o||HD[NSe(n)]>=HD[o.minRole]}function kSe(e,t){return af[e].slots.some((n)=>n.tool===t||n.tool!==null&&rLt[n.tool]===t||!!n.tips?.includes(t)||!!n.lights?.includes(t)||!!n.more?.some((o)=>o.tool===t))}function ESe(e,t,n){if(!_Se(e)||aLt.has(e))return null;if(kSe(n,e))return n;if(e==="move")return t.edit?"edit":"viewing";for(let o of["preview","edit"])if(kSe(o,e))return o;return null}function dI(e){let t=e&&typeof e==="object"?e:{};if(t.kind!=="artboards")return{kind:"canvas"};if(typeof t.from==="string"&&t.from&&t.from.length<=200)return t.only==="formats"&&t.from!=="start"?{kind:"artboards",from:t.from,only:"formats"}:{kind:"artboards",from:t.from};return{kind:"artboards",from:"start"}}var u7,SSe,d7,nLt,p7,sOn,oLt,_Se=(e)=>typeof e==="string"&&oLt.has(e),Kx,R1,CSe=(e)=>e.edit?"edit":"viewing",f7=(e)=>e.edit?"edit":"preview",iOn,lOn,HD,Na=(e)=>Object.freeze(e),af,rLt,ASe,aLt;var sf=qe(()=>{_m();u7=["edit","viewing","preview","present"],SSe=["artboards","canvas"],d7=["browse","move","hand","comment","pen","highlighter","eraser","shape","sticky","section","arrow","text"],nLt=["inspect","frame","el-shape","el-pen","el-text","image","component","line","ellipse","polygon","crop","slice","pointer"],p7=[...d7,...nLt],sOn=new Set(u7),oLt=new Set(p7),Kx=Object.freeze({edit:!1,annotate:!1,comment:!1}),R1=Object.freeze({edit:!0,annotate:!0,comment:!0});iOn=Object.freeze({edit:"edit",viewing:"edit",preview:"preview",present:"preview"}),lOn=Object.freeze({edit:"move",viewing:"inspect",preview:"browse",present:"browse"}),HD=Object.freeze({view:0,comment:1,edit:2});af=Object.freeze({edit:Object.freeze({rest:"move",slots:Object.freeze([Na({key:"V",label:"Select",tool:"move",minRole:"edit"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"edit"}),Na({key:"F",label:"Artboard / Frame",tool:"frame",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"el-shape",minRole:"edit"}),Na({key:"P",label:"Pen",tool:"el-pen",minRole:"edit"}),Na({key:"T",label:"Text",tool:"el-text",minRole:"edit"}),Na({key:"I",label:"Image",tool:"image",minRole:"edit",panel:"image",panelFirst:!0}),Na({key:"⇧I",label:"Component",tool:null,minRole:"edit",panel:"components"}),Na({key:"",label:"More",tool:null,minRole:"edit",popover:"more",more:Object.freeze([Na({key:"",label:"Line",tool:"line",minRole:"edit"}),Na({key:"",label:"Ellipse",tool:"ellipse",minRole:"edit"}),Na({key:"",label:"Polygon",tool:"polygon",minRole:"edit"}),Na({key:"",label:"Crop",tool:"crop",minRole:"edit"}),Na({key:"",label:"Export area",tool:"slice",minRole:"edit"})])})])}),preview:Object.freeze({rest:"browse",slots:Object.freeze([Na({key:"V",label:"Select",tool:"browse",minRole:"view"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"view"}),Na({key:"N",label:"Sticky",tool:"sticky",minRole:"edit",popover:"sticky-colours"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"}),Na({key:"M",label:"Marker",tool:"pen",minRole:"edit",popover:"marker-tips",tips:["pen","highlighter","eraser"]}),Na({key:"A",label:"Arrow",tool:"arrow",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"shape",minRole:"edit",popover:"shape-kinds"}),Na({key:"T",label:"Text",tool:"text",minRole:"edit"}),Na({key:"E",label:"Stickers",tool:null,minRole:"edit",panel:"stickers"}),Na({key:"S",label:"Section",tool:"section",minRole:"edit",panel:"templates"})])}),viewing:Object.freeze({rest:"inspect",slots:Object.freeze([Na({key:"H",label:"Hand",tool:"inspect",minRole:"view"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"})])}),present:Object.freeze({rest:"browse",hidden:!0,slots:Object.freeze([Na({key:"L",label:"Pointer",tool:"pointer",minRole:"view"})])})}),rLt=Object.freeze({}),ASe=Object.freeze({edit:["preview"],preview:["edit"],viewing:["preview","edit"],present:[]});aLt=new Set(["hand"])});function $Se(e){if(e.tool==="move")return"tool.select";return`tool.${e.tool??e.panel??e.label.toLowerCase()}`}function cLt(){let e=new Map,t=0;for(let n of MSe)for(let o of af[n].slots){if(o.pending||o.more||!o.key)continue;let r=$Se(o);if(!e.has(r))e.set(r,{slot:o,home:n,order:t++,keys:new Map})}for(let n of MSe)for(let o of TSe(n)){let r=M1(n,o);if(!r)continue;let a=e.get($Se(r.slot));if(!a)continue;let s=a.keys.get(o)??[];s.push(n),a.keys.set(o,s)}return[...e.entries()].map(([n,o])=>{let r=[...o.keys.entries()].map(([s,l])=>({chord:E1(s),layer:"tools",when:{focus:lLt,mode:l}})),a=iLt[o.home];return{id:n,label:sLt[n]??o.slot.label,kind:"tool",exec:"canvas",keys:r,...a?{help:{group:a,order:o.order}}:{},...RSe[n]?{legacy:{menu:RSe[n]}}:{}}})}var sLt,RSe,iLt,lLt,MSe,Oy=(e,t,n)=>({id:e,label:t,kind:"tool",exec:"canvas",keys:[],...n?{legacy:{menu:n}}:{}}),OSe;var LSe=qe(()=>{sf();of();Jd();sLt={"tool.browse":"Select","tool.inspect":"Inspect","tool.pen":"Marker"},RSe={"tool.select":"Select","tool.hand":"Hand","tool.comment":"Comment","tool.pen":"Pen","tool.arrow":"Arrow","tool.sticky":"Sticky","tool.text":"Text","tool.browse":"Browse (interact)"},iLt={edit:"edit-tools",preview:"preview-tools"},lLt=["canvas","chrome"],MSe=["edit","preview","viewing","present"];OSe=[...cLt(),{id:"tool.hand-hold",label:"Hand (hold Space)",kind:"tool",exec:"canvas",keys:Kr("Space","⌥⇧⌘","tools",{hold:!0,when:Xc})},{id:"tool.create-default",label:"Add one at its default size",kind:"command",exec:"canvas",enabled:{minRole:"edit"},keys:[Tt("↵","tools",{when:{focus:["canvas"],mode:["edit","preview"],facts:["toolArmed"]}})],search:{hidden:!0}},Oy("tool.highlighter","Highlighter"),Oy("tool.eraser","Eraser","Eraser"),Oy("tool.rect","Rectangle","Rect"),Oy("tool.ellipse","Ellipse","Ellipse"),Oy("tool.line","Line"),Oy("tool.polygon","Polygon"),Oy("tool.slice","Export area"),Oy("tool.crop","Crop")]});var PSe;var DSe=qe(()=>{Jd();PSe=[{id:"ui.step-back",label:"Step back",kind:"command",exec:"shell",keys:[...Kr("esc","⌥⇧⌘","global",{inText:!0,when:{focus:Zd}}),...Kr("esc","⌥⇧⌘","selection",{inText:!1,when:Xc})],legacy:{sheet:"Deselect · close menu"}},{id:"ui.cycle-region",label:"Move between the panels and the canvas",kind:"command",exec:"shell",fromCanvas:!0,keys:[Tt("F6","global",{inText:!0}),Tt("⇧F6","global",{inText:!0,alias:!0})],search:{keywords:["focus","panels","canvas","keyboard","f6"]}}]});var uLt,dLt=(e)=>({hidden:!0,where:e,note:"bound by its S7 surface"}),Ua=(e,t,n,o="edit")=>({id:e,label:t,kind:"command",exec:"shell",enabled:o==="edit"?uLt:{minRole:o},search:dLt(n)}),zSe;var FSe=qe(()=>{uLt={minRole:"edit"},zSe=[{...Ua("video.captions.add","Captions from speech","Timeline › Captions"),search:{where:"Timeline › Captions",keywords:["captions","subtitles","speech","transcribe"]}},{...Ua("video.transcript.open","Transcript","Timeline › Transcript","comment"),search:{where:"Timeline › Transcript",keywords:["transcript","words","captions","text"]}},Ua("video.captions.style","Caption style","Inspector › Captions"),Ua("video.captions.fix-word","Fix a caption word","Transcript panel"),Ua("video.captions.export","Export captions","Export sheet","comment"),Ua("video.transcript.cut","Cut these words","Transcript panel"),Ua("video.transcript.find-speech","Find speech","Transcript panel"),Ua("video.music.beats","Find the beat","Inspector › Music"),Ua("video.music.duck","Lower under speech","Inspector › Music"),Ua("video.music.volume","Music volume","Inspector › Music"),Ua("video.cut-to-beat","Cut to the beat","Inspector › Music"),Ua("video.snap","Snap to the beat","Timeline"),{...Ua("video.reframe","Re-frame","Timeline › Re-frame"),search:{where:"Timeline › Re-frame",keywords:["reframe","crop","framing","vertical","focus","window"]}},{...Ua("video.frame-handle","Move and zoom on the canvas","Timeline › Clip"),search:{where:"Timeline › Clip",keywords:["move","zoom","pan","crop","position","scale","drag","video","framing"]}},{...Ua("video.poster.set","Set as poster frame","Timeline"),search:{where:"Timeline › Poster",keywords:["poster","cover","thumbnail"]}},{...Ua("video.format.add","Add a format","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["format","size","16:9","9:16","1:1","reels","linked","aspect"]}},{...Ua("video.format.unlink","Make an unlinked copy","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["unlink","copy","own cut","fork","format"]}},{...Ua("video.allow-longer","Allow longer videos","Timeline › Advanced"),search:{where:"Timeline › Advanced",keywords:["longer","length","limit","2 min","frames"]}},Ua("video.easing.set","Keyframe curve","Timeline › Advanced"),{...Ua("video.take.swap","Swap a take","Timeline › Other takes"),search:{where:"Timeline › Other takes",keywords:["take","other takes","swap","alternate"]}},Ua("video.fit","Fit the picture","Inspector › Clip"),Ua("video.place","Place the title","Inspector › Formats"),Ua("video.title.motion","Title motion","Inspector › Title"),Ua("video.title.style","Title font and colour","Inspector › Title"),Ua("video.transition.set","Set the transition","Timeline › Join")]});var WD="switch to Canvas first",BSe;var jSe=qe(()=>{Jd();BSe=[{id:"mode.preview",label:"Preview",kind:"toggle",icon:"eye",exec:"canvas",keys:[Tt("⌥⌘P","global",{inText:!0,when:{mode:["edit","preview","viewing"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["mode","live","interact","edit"],note:WD}},{id:"preview.back",label:"Back",kind:"command",exec:"shell",enabled:{mode:["preview"]},search:{keywords:["link","previous","return","canvas"]}},{id:"view.panels",label:"Hide panels",kind:"toggle",exec:"shell",keys:[Tt("⌘\\","global",{inText:!0})],fromCanvas:!0,legacy:{menu:"Hide panels",sheet:"Hide / show panels"}},{id:"view.pin-panels",label:"Pin panels to the side",kind:"toggle",exec:"shell",legacy:{menu:"Pin panels to the side"}},{id:"view.hidden-files",label:"Hidden files",kind:"toggle",exec:"shell",legacy:{menu:"Show hidden files",sheet:"Hidden files"}},{id:"canvases.show-file-names",label:"Show file names",kind:"toggle",exec:"shell",search:{keywords:["file","names","tsx","files"],where:"Canvases › Advanced"}},{id:"layers.show-tags",label:"Show tags and ids",kind:"toggle",exec:"shell",search:{keywords:["tags","ids","layers","html"],where:"Layers panel › Advanced"}},{id:"layers.select-by-selector",label:"Select by selector",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{keywords:["selector","css","query","select","matching"],where:"Layers panel › Advanced"}},{id:"layers.filter-kind",label:"Filter layers by kind",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{where:"Layers panel"}},{id:"view.design-system",label:"Design system",kind:"toggle",icon:"sliders",exec:"shell",legacy:{palette:"Design system",sheet:"Design system view"}},{id:"view.assets",label:"Assets",kind:"toggle",icon:"image",exec:"shell"},{id:"assets.place",label:"Place",kind:"command",icon:"image",exec:"shell",enabled:{minRole:"edit"},keys:[Tt("↵","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.add",label:"Add files…",kind:"command",icon:"plus",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.add-link",label:"Add from a link…",kind:"command",icon:"link",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["link","url","web","download","import","picture","video"]}},{id:"assets.generate",label:"Generate an image…",kind:"command",icon:"sparkle",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["generate","ai","image","picture","takes"]}},{id:"assets.details",label:"Show details",kind:"command",exec:"shell",keys:[Tt("⌘I","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.spotlight",label:"View larger",kind:"command",icon:"image",exec:"shell",keys:[Tt("Space","selection",{when:{focus:["chrome"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.rename",label:"Rename…",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.describe",label:"Search in pictures",kind:"toggle",icon:"search",exec:"shell",search:{keywords:["describe","pictures","photos","what is in","ai","search"]}},{id:"assets.describe-stop",label:"Stop describing pictures",kind:"command",exec:"shell",search:{hidden:!0}},{id:"view.layers-panel",label:"Layers as a panel",kind:"toggle",exec:"shell"},{id:"view.trash",label:"Trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"}},{id:"trash.restore",label:"Restore",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"trash.clear",label:"Clear out the trash…",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"owner"}},{id:"view.comments",label:"Comments",kind:"toggle",icon:"resolve",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌘M","global",{inText:!0})],legacy:{palette:"Toggle comments panel",menu:"Comments Sidebar",sheet:"Comments sidebar"}},{id:"comments.filter-open",label:"Show open comments",kind:"command",exec:"shell"},{id:"comments.filter-mine",label:"Show my comments",kind:"command",exec:"shell"},{id:"comments.filter-resolved",label:"Show resolved comments",kind:"command",exec:"shell"},{id:"comments.filter-all",label:"Show all comments",kind:"command",exec:"shell"},{id:"comments.open-thread",label:"Open comment thread",kind:"command",exec:"shell"},{id:"view.exports",label:"Exports",kind:"toggle",icon:"export",exec:"shell",visible:{minRole:"comment"}},{id:"history.open",label:"Version history",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Tt("⌥⌘H","global",{inText:!0})],help:{group:"finding",order:30},legacy:{menu:"Changes"}},{id:"view.inspector",label:"Inspector",kind:"toggle",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌘I","global",{inText:!0})],legacy:{palette:"Open inspector",menu:"Inspector",sheet:"Inspector"}},{id:"view.timeline-keep-open",label:"Keep timeline open",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌘T","global",{inText:!0})],legacy:{menu:"Timeline"}},{id:"view.annotations",label:"Annotations",kind:"toggle",exec:"canvas",keys:[Tt("⇧P","global",{inText:!1,when:Xc})],legacy:{menu:"Annotations",sheet:"Annotations"}},{id:"view.layers",label:"Layers",kind:"toggle",exec:"shell",legacy:{menu:"Layers"}},{id:"view.inspector-on-select",label:"Open inspector on select",kind:"toggle",exec:"shell",legacy:{menu:"Auto-open Inspector on select"}},{id:"view.minimap",label:"Minimap",kind:"toggle",exec:"shell",legacy:{menu:"Minimap"}},{id:"view.zoom-controls",label:"Zoom controls",kind:"toggle",exec:"shell",legacy:{menu:"Zoom controls"}},{id:"view.print-guides",label:"Print guides",kind:"toggle",exec:"shell",legacy:{menu:"Show print guides"}},{id:"present.from-selection",label:"Present",kind:"command",exec:"shell",fromCanvas:!0,keys:[Tt("⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","artboards","selected"],note:WD}},{id:"present.from-start",label:"Present from the start",kind:"command",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","beginning","first"],note:WD}},{id:"present.next",label:"Next artboard",kind:"command",exec:"shell",keys:[Tt("→","global",{when:{mode:["present"]}}),Tt("Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","advance","forward"]}},{id:"present.prev",label:"Previous artboard",kind:"command",exec:"shell",keys:[Tt("←","global",{when:{mode:["present"]}}),Tt("⇧Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","back","backward"]}},{id:"present.canvas",label:"Present the canvas",kind:"toggle",exec:"shell",enabled:{notFacts:["pagesView"]},search:{note:WD},legacy:{menu:"Presentation Mode"}},{id:"present.order-notes",label:"Order and notes…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["presentation","slides","speaker notes","skip","reorder"]}},{id:"present.presenter-view",label:"Presenter view on another display",kind:"toggle",exec:"shell",visible:{shell:["desktop"],facts:["native"]},search:{keywords:["presentation","second screen","audience","notes","projector"]}},{id:"present.copy-link",label:"Copy presentation link",kind:"command",icon:"link",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["online"],any:[{facts:["linkedHub"]},{shell:["cloud"]}]},search:{keywords:["presentation","slideshow","audience","follow","share","link","url"],note:"in a Maude Cloud project"}},{id:"settings.theme",label:"Theme",kind:"toggle",icon:"sun",exec:"shell",legacy:{palette:"Toggle light / dark theme"}},{id:"view.zoom-in",label:"Zoom in",kind:"command",exec:"canvas",keys:[Tt("⌘=","global",{inText:!0,when:Hx}),Tt("⌘+","global",{inText:!0,alias:!0,when:Hx})],legacy:{menu:"Zoom In",sheet:"Zoom in / out"}},{id:"view.zoom-out",label:"Zoom out",kind:"command",exec:"canvas",keys:[Tt("⌘−","global",{inText:!0,when:Hx})],legacy:{menu:"Zoom Out",sheet:"Zoom in / out"}},{id:"view.zoom-fit",label:"Zoom to fit",kind:"command",exec:"canvas",keys:[Tt("⌘0","global",{inText:!0,when:Hx})],legacy:{menu:"Fit to Screen",sheet:"Fit · actual size"}},{id:"view.zoom-actual",label:"Actual size",kind:"command",exec:"canvas",keys:[Tt("⇧0","global",{inText:!1,when:Hx})],legacy:{menu:"Actual Size · 100 %",sheet:"Fit · actual size"}},{id:"view.zoom-to-artboard",label:"Zoom to artboard",kind:"command",exec:"canvas"},{id:"view.jump-artboard",label:"Go to artboard",kind:"command",exec:"canvas",keys:["1","2","3","4","5","6","7","8","9"].map((e,t)=>Tt(`⌥⌘${e}`,"global",{inText:!0,alias:t>0,when:Hx}))},{id:"view.pages",label:"Pages",kind:"toggle",exec:"canvas",enabled:{facts:["canvasOpen"],mode:["edit","viewing"]},help:{group:"canvas",order:60},search:{keywords:["pages","one at a time","artboards","page","canvas","slides"]}},{id:"pages.next",label:"Next page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Tt("PageDown","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Tt("→","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:61},search:{keywords:["pages","forward","artboard","page"]}},{id:"pages.prev",label:"Previous page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Tt("PageUp","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Tt("←","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:62},search:{keywords:["pages","back","artboard","page"]}},{id:"view.advanced-open-all",label:"Open all Advanced sections",kind:"command",exec:"shell",search:{where:"Once · every panel"}},{id:"view.advanced-close-all",label:"Close all Advanced sections",kind:"command",exec:"shell",search:{where:"Settings › Advanced › Reset"}}]});var Cm,ir;var Ii=qe(()=>{E0e();U0e();V0e();q0e();Y0e();Z0e();tSe();sSe();lSe();uSe();pSe();mSe();gSe();ySe();wSe();LSe();DSe();FSe();jSe();Cm=Object.freeze([...hSe,...G0e,...aSe,...BSe,...OSe,...PSe,...vSe,...zSe,...iSe,...W0e,...I0e,...X0e,...F0e,...j0e,...B0e,...dSe,...K0e,...cSe,...fSe,...bSe,...eSe]),ir=new Map(Cm.map((e)=>[e.id,e]))});function g7(e){let t=Array.isArray(e)?e.filter((n)=>typeof n==="string"&&n):[];if(t.length===pI.length&&t.every((n,o)=>n===pI[o]))return;pI=t;for(let n of[...h7])n(pI)}function VD(){return[...pI]}function USe(e){return h7.add(e),()=>{h7.delete(e)}}var pI,h7;var GD=qe(()=>{pI=[],h7=new Set});var b7,HSe;var WSe=qe(()=>{b7={view:0,comment:1,edit:2,owner:3},HSe=["timeline","selection","tools","global"]});function Qc(e,t){if(!e)return!0;if(e.minRole&&b7[t.role]<b7[e.minRole])return!1;if(e.shell&&!e.shell.includes(t.shell))return!1;if(e.notShell?.includes(t.shell))return!1;if(e.mode&&!e.mode.includes(t.mode))return!1;if(e.focus&&!e.focus.includes(t.focus))return!1;if(e.selection&&!e.selection.includes(t.selection))return!1;if(e.facts&&!e.facts.every((n)=>t.facts.has(n)))return!1;if(e.notFacts?.some((n)=>t.facts.has(n)))return!1;if(e.any&&!e.any.some((n)=>Qc(n,t)))return!1;return!0}function ql(e,t){return Qc(e.visible,t)}function O1(e,t){return ql(e,t)&&Qc(e.enabled,t)}function VSe(e,t=()=>!0){let n=new Map;for(let o of e)for(let r of o.keys??[]){if(!t(o,r))continue;let a=n.get(r.chord)??[];a.push({action:o,binding:r}),n.set(r.chord,a)}return n}function pLt(e){return e.inText??(O0e(e.chord)&&!P0e.has(e.chord))}function fLt(e,t){if(t.focus==="text"&&!pLt(e.binding))return!1;if(t.focus==="modal"&&!e.binding.inModal)return!1;if(e.binding.layer==="timeline"&&t.focus!=="timeline")return!1;return ql(e.action,t)&&Qc(e.binding.when,t)}function L1(e,t,n,o="tap"){if(n.singleKeys===!1&&M0e(t))return null;let r=e.get(t);if(!r?.length)return null;let a=r.filter((s)=>o==="hold"===!!s.binding.hold&&fLt(s,n));if(!a.length)return null;for(let s of HSe){let l=a.filter((c)=>c.binding.layer===s);if(l.length)return{action:l[0].action,binding:l[0].binding,ambiguous:l.slice(1)}}return null}var Ku=qe(()=>{of();WSe()});function mLt(e,t){let n=e.when?.focus;if(t==="shell")return e.layer==="timeline"||!n||n.some((o)=>o==="chrome"||o==="timeline"||o==="modal");return e.layer!=="timeline"&&(!n||n.includes("canvas")||n.every((o)=>o==="text"))}function P1(e,t,n){return VSe(e,(o,r)=>n(o.id)&&mLt(r,t))}var qD=qe(()=>{Ku()});function fI(e,t=120){if(typeof e!=="string")return null;return e.replace(hLt,"").trim().slice(0,t).trim()||null}function y7(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let{artboardId:n=null,total:o=0}=t,r=(Array.isArray(n)?n:[n]).filter(Boolean);for(let a of r){let s=e.find((l)=>l.artboardId===a);if(s)return s.id}for(let a of r){let s=e.find((l)=>l.id===a);if(s)return s.id}if(o>0){let a=e.filter((s)=>s.durationInFrames===o);if(a.length===1)return a[0].id}return e[0].id}function Xx(e,t){if(!Array.isArray(e)||e.length===0)return null;return e.find((n)=>n.id===t)??e[0]}var hLt;var D1=qe(()=>{hLt=/[\u202a-\u202e\u2066-\u2069\u200b-\u200f\u2060\u00ad\ufeff\u0000-\u001f\u007f-\u009f]/g});var KD="mdcc-usage-tour-seen",YD="mdcc-collab-tour-seen",wt="__system__",mI="mdcc-theme",hI="mdcc-show-hidden",XD="maude-cp-mode",gI="mdcc-sidebar-open",bI="mdcc-minimap-visible",yI="mdcc-zoomctl-visible",vI="mdcc-annotations-visible",v7=30000,wI="mdcc-panel-sides",xI="mdcc-layers-mode",ts,kI=(e)=>/\.(tsx|jsx)$/i.test(String(e||"")),Nm="2.1.2",w7;var Ho=qe(()=>{ts=/\.(tsx|html?)$/i,w7=[]});function gLt(){return typeof window<"u"?window.__TAURI__:null}function bLt(){let e=typeof window<"u"?window:null;if(!e)return null;if(e.__maudeShellBus)return e.__maudeShellBus;let t=gLt(),n=t?.core?.Channel;if(!n||!t?.core?.invoke)return null;let o=new Map,r=new n;r.onmessage=(s)=>{let l=s&&typeof s.kind==="string"?o.get(s.kind):null;if(!l)return;for(let c of[...l])try{c(s.payload)}catch(u){console.error("[maude] shell message handler failed",u)}};let a={handlers:o,ready:null};return a.ready=Promise.resolve().then(()=>t.core.invoke("shell_subscribe",{onMessage:r})).then(()=>!0,(s)=>{if(e.__maudeShellBus===a)delete e.__maudeShellBus;throw s}),e.__maudeShellBus=a,a}function Zx(e,t){let n=bLt();if(!n)return Promise.resolve(()=>{});let o=n.handlers.get(e);if(!o)o=new Set,n.handlers.set(e,o);o.add(t);let r=()=>{o.delete(t)};return n.ready.then(()=>r,(a)=>{throw r(),a})}function xLt(e){return e.length<=63&&yLt.test(e)&&e!=="canvas"&&!e.startsWith("view-")&&!e.startsWith("canvas-")}function kLt(e){if(!e||e.length>512||wLt.test(e)||/^[A-Za-z]:/.test(e))return null;let t=e.startsWith(".design/")?e.slice(8):e;if(t.split("/").some((n)=>n===""||n==="."||n===".."))return null;return t}function SLt(e){try{return decodeURIComponent(e)}catch{return null}}function qSe(e){if(typeof e!=="string"||e===""||vLt.test(e))return null;if(new TextEncoder().encode(e).length>2048)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="https:"||t.port!==""||t.username!==""||t.password!=="")return null;let n=".cloud.maude.sh";if(!t.hostname.endsWith(n))return null;let o=t.hostname.slice(0,-n.length);if(!xLt(o))return null;let r=`https://${o}.cloud.maude.sh`;if(t.origin!==r)return null;if(t.pathname===""||t.pathname==="/")return`${r}/`;if(!t.pathname.startsWith("/c/"))return null;let a=t.pathname.slice(3).split("/").map(SLt);if(a.some((l)=>l===null||l.includes("/")||l.includes("\\")))return null;let s=kLt(a.join("/"));if(!s)return null;return`${r}/c/${s.split("/").map(encodeURIComponent).join("/")}`}function ZD(e,t){if(!e||typeof e!=="object")return null;let n=e;if(n.reason!=="browser-door")return null;let o=qSe(n.url);if(!o)return null;if(t&&new URL(o).hostname!==`${t}.cloud.maude.sh`)return null;return{url:o}}function _Lt(e){try{globalThis.window?.open?.(e,"_blank","noopener,noreferrer")}catch{}}async function JD({url:e,profile:t},{invoke:n,openInBrowser:o=_Lt}){let r=qSe(e);if(!r)return{ok:!1,error:"That isn't a Maude Cloud project address."};if(!n)return o(r),{ok:!0,via:"browser"};try{return await n("open_cell_tab",typeof t==="string"&&t?{url:r,profile:t}:{url:r}),{ok:!0,via:"tab"}}catch(a){let s=GSe(a);if(!s.includes("Open this project in your browser."))return{ok:!1,error:s||"That isn't a Maude Cloud project address."}}try{return await n("open_cloud_url",{url:new URL(r).origin}),{ok:!0,via:"browser"}}catch(a){return{ok:!1,error:GSe(a)||"Open this project in your browser."}}}var yLt,vLt,wLt,GSe=(e)=>String((e&&typeof e==="object"&&"message"in e?e.message:e)??"").trim();var QD=qe(()=>{yLt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,vLt=/[\s\u0000-\u001f\u007f-\u009f\\@?#]/,wLt=/[\u0000-\u001f\u007f-\u009f\\]/});function Vt(){return typeof window<"u"&&!!window.__TAURI__}function CLt(){let e=typeof window<"u"?window.__TAURI__:null;if(!e)throw Error("GitHub sign-in is only available in the Maude desktop app.");return e}function Co(e,t){return CLt().core.invoke(e,t)}function NLt(e,t){return Zx(e,t)}function pg(e,t){return Zx(e,t)}async function fg(e,t={}){let n={...t.headers||{}};if(t.body)n["Content-Type"]="application/json";let o;try{o=await fetch(e,{...t,headers:n})}catch{return{ok:!1,status:0,json:{error:"Maude isn’t reachable right now."}}}let r=null;try{r=await o.json()}catch{r=null}return{ok:o.ok,status:o.status,json:r}}function B1(e){if(Vt())return Co("open_team_server_signin",{url:e}).then(()=>"ok",(t)=>/Refusing/i.test(String(t))?"refused":"failed");try{return window.open(e,"_blank","noopener"),Promise.resolve("ok")}catch{return Promise.resolve("failed")}}async function Jx(e){let t=await ALt(e),n=ZD(t.json);if(n)return JD({url:n.url},{invoke:Vt()?Co:null});if(!t.ok||!t.json?.ok)return{ok:!1,error:t.json?.error||"The project could not be opened.",status:t.status};try{return{ok:!0,path:await x7(t.json),project:t.json}}catch(o){return{ok:!1,error:String(o?.message||o||"The project could not be opened.")}}}function hg(e,t){return{size:e.size,type:t||"",name:e.name,async read(n,o){let r=await Co("read_picked_media",{token:e.token,offset:n,len:o-n});return new Uint8Array(r)},release:()=>Co("release_picked_media",{token:e.token}).catch(()=>{})}}async function i3(e,t){let n=hg(e,t);try{return new Blob([await n.read(0,e.size)],t?{type:t}:void 0)}finally{n.release()}}var e3=()=>Co("github_sign_in"),t3=()=>Co("github_sign_out"),Ly=()=>Vt()?Co("cloud_sign_in_prepare"):Promise.resolve(!1),z1=()=>Vt()?Co("cloud_signed_in"):Promise.resolve(!1),KSe=()=>Vt()?Promise.resolve().then(()=>Co("accounts_list")).then((e)=>Array.isArray(e)?e:null,()=>null):Promise.resolve(null),n3=()=>Co("github_is_signed_in"),YSe=()=>Co("github_open_verification",{url:"https://github.com/login/device"}),SI=(e)=>Co("open_github_url",{url:e}),o3=(e)=>Co("open_cloud_url",{url:e}),r3=(e)=>pg("github://device-code",e),a3=(e)=>pg("github://signed-in",e),F1=(e)=>pg("menu://action",(t)=>e(t?.id)),Py=()=>fg("/_api/github/identity"),XSe=()=>fg("/_api/github/repos"),ZSe=(e)=>fg("/_api/github/invite",{method:"POST",body:JSON.stringify({username:e})}),JSe=(e)=>fg("/_api/github/clone",{method:"POST",body:JSON.stringify(e)}),QSe=(e)=>fg("/_api/github/create-project",{method:"POST",body:JSON.stringify(e)}),e1e=(e)=>fg("/_api/project/create-local",{method:"POST",body:JSON.stringify(e)}),t1e=(e)=>fg("/_api/design/init",{method:"POST",body:JSON.stringify({dir:e})}),n1e=(e)=>fg("/_api/hub/link",{method:"POST",body:JSON.stringify(e)}),ALt=(e)=>fg("/_api/projects/prepare",{method:"POST",body:JSON.stringify(e)}),x7=(e)=>Co("managed_project_open",{serverUrl:e.serverUrl,projectId:e.projectId,name:e.name||e.projectId,canvasGroups:e.canvasGroups||[]}),s3=()=>Vt()?Co("managed_projects_list"):Promise.resolve([]),o1e=()=>Co("app_recent_projects"),_I=()=>Co("pick_directory"),mg=(e,t)=>Co("open_local_project",{path:e,open:t}),r1e=(e)=>Co("resolve_project_for_link",{project:e}),Dy=()=>Co("pick_media_file"),Qx=()=>Co("pick_media_files"),k7=(e)=>NLt("update-ready",e),ek=()=>Co("restart_to_update"),a1e=()=>Co("check_for_updates"),s1e=()=>Co("prefs_get_claude_auto_setup"),i1e=(e)=>Co("prefs_set_claude_auto_setup",{enabled:e}),l1e=()=>Co("prefs_get_terminal_opens"),c1e=(e)=>Co("prefs_set_terminal_opens",{enabled:e});var Mo=qe(()=>{QD()});function TLt(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class f1e{constructor(){this.subscribe=(e)=>(this.subscribers.push(e),this.getActiveToasts().forEach((t)=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=(e)=>{this.subscribers.forEach((t)=>t(e))},this.addToast=(e)=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-FLt;if(e<=0)return;this.toasts=this.toasts.filter((t)=>{if(e>0&&this.dismissedToasts.has(t.id))return this.dismissedToasts.delete(t.id),e--,!1;return!0})},this.create=(e)=>{let{message:t,...n}=e,o=u1e(e),r=this.pendingDismissals.get(o);if(r!==void 0)cancelAnimationFrame(r),this.pendingDismissals.delete(o),this.dismissedToasts.delete(o);let a=this.dismissedToasts.has(o),s=e.dismissible===void 0?!0:e.dismissible;if(a)this.dismissedToasts.delete(o),this.toasts=this.toasts.filter((c)=>c.id!==o);if(a?void 0:this.toasts.find((c)=>c.id===o))this.toasts=this.toasts.map((c)=>{if(c.id===o)return this.publish({...c,...e,id:o,title:t}),{...c,...e,id:o,dismissible:s,title:t};return c});else this.addToast({title:t,...n,dismissible:s,id:o});return o},this.dismiss=(e)=>{if(e===void 0||e===null)return this.getActiveToasts().forEach((n)=>{this.dismissedToasts.add(n.id),this.subscribers.forEach((o)=>o({id:n.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);if(t!==void 0)cancelAnimationFrame(t);return this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach((n)=>n({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n=void 0;if(t.loading!==void 0)n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!=="function"?t.description:void 0});let o=Promise.resolve(e instanceof Function?e():e),r=n!==void 0,a,s=o.then(async(c)=>{if(a=["resolve",c],Zs(c))r=!1,this.create({id:n,type:"default",message:c});else if(jLt(c)&&!c.ok){r=!1;let d=typeof t.error==="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,p=typeof t.description==="function"?await t.description(`HTTP error! status: ${c.status}`):t.description,h=typeof d==="object"&&!Zs(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(c instanceof Error){r=!1;let d=typeof t.error==="function"?await t.error(c):t.error,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Zs(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(t.success!==void 0){r=!1;let d=typeof t.success==="function"?await t.success(c):t.success,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Zs(d)?d:{message:d};this.create({id:n,type:"success",description:p,...h})}}).catch(async(c)=>{if(a=["reject",c],t.error!==void 0){r=!1;let u=typeof t.error==="function"?await t.error(c):t.error,d=typeof t.description==="function"?await t.description(c):t.description,f=typeof u==="object"&&!Zs(u)?u:{message:u};this.create({id:n,type:"error",description:d,...f})}}).finally(()=>{if(r)this.dismiss(n),n=void 0;t.finally==null||t.finally.call(t)}),l=()=>new Promise((c,u)=>s.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));if(typeof n!=="string"&&typeof n!=="number")return{unwrap:l};else return Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=u1e(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter((e)=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}function l3(e){return e.label!==void 0}function Am(...e){return e.filter(Boolean).join(" ")}function JLt(e){let[t,n]=e.split("-"),o=[];if(t)o.push(t);if(n)o.push(n);return o}function p1e(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");if(e==="auto"||!e)return window.getComputedStyle(document.documentElement).direction;return e}function ePt(e,t){let n={};return[e,t].forEach((o,r)=>{let a=r===1,s=a?"--mobile-offset":"--offset",l=a?qLt:GLt;function c(u){["top","right","bottom","left"].forEach((d)=>{n[`${s}-${d}`]=typeof u==="number"?`${u}px`:u})}if(typeof o==="number"||typeof o==="string")c(o);else if(typeof o==="object")["top","right","bottom","left"].forEach((u)=>{if(o[u]===void 0)n[`${s}-${u}`]=l;else n[`${s}-${u}`]=typeof o[u]==="number"?`${o[u]}px`:o[u]});else c(l)}),n}var ILt=(e)=>{switch(e){case"success":return RLt;case"info":return OLt;case"warning":return MLt;case"error":return LLt;default:return null}},ELt,$Lt=({visible:e,className:t})=>ar("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ar("div",{className:"sonner-spinner"},ELt.map((n,o)=>ar("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),RLt,MLt,OLt,LLt,PLt,DLt=()=>{let[e,t]=T(document.hidden);return M(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e},zLt=1,FLt=100,u1e=(e)=>{var t;return typeof(e==null?void 0:e.id)==="number"||(e==null?void 0:(t=e.id)==null?void 0:t.length)>0?e.id:zLt++},eu,BLt=(e,t)=>eu.message(e,t),jLt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",ULt,HLt=()=>eu.toasts,WLt=()=>eu.getActiveToasts(),c3,VLt=3,GLt="24px",qLt="16px",d1e=4000,KLt=356,YLt=14,XLt=45,ZLt=200,QLt=(e)=>{var t,n,o,r,a,s,l,c,u;let{invert:d,toast:p,unstyled:f,interacting:h,setHeights:g,visibleToasts:b,heights:v,index:y,toasts:w,expanded:x,removeToast:k,defaultRichColors:_,closeButton:N,style:C,cancelButtonStyle:I,actionButtonStyle:R,className:O="",descriptionClassName:U="",duration:F,position:j,gap:B,expandByDefault:G,classNames:X,icons:Y,closeButtonAriaLabel:W="Close toast"}=e,[D,K]=T(null),[P,q]=T(null),[Z,te]=T(!1),[re,me]=T(!1),[se,xe]=T(!1),[_e,Ae]=T(!1),[Ue,le]=T(!1),[Se,he]=T(0),[we,Me]=T(0),Ct=H(p.duration||F||d1e),pe=H(null),He=H(null),ve=y===0,Qe=y+1<=b,je=p.type,$t=je!=null?je:"default",sn=p.dismissible!==!1,Nt=p.className||"",ut=p.descriptionClassName||"",rn=fe(()=>v.findIndex((Yt)=>Yt.toastId===p.id)||0,[v,p.id]),Oe=fe(()=>{var Yt;return(Yt=p.closeButton)!=null?Yt:N},[p.closeButton,N]),ct=fe(()=>p.duration||F||d1e,[p.duration,F]),pt=H(0),Re=H(0),nt=H(0),Fe=H(null),[et,_t]=j.split("-"),Bt=fe(()=>v.reduce((Yt,jt,Tn)=>{if(Tn>=rn)return Yt;return Yt+jt.height},0),[v,rn]),Ht=DLt(),At=fe(()=>{var Yt;return(Yt=e.swipeDirections)!=null?Yt:JLt(j)},[e.swipeDirections,j]),Jt=p.invert||d,Kt=je==="loading";Re.current=fe(()=>rn*B+Bt,[rn,Bt]),M(()=>{Ct.current=ct},[ct]),M(()=>{te(!0)},[]),M(()=>{let Yt=He.current;if(Yt){let jt=Yt.getBoundingClientRect().height;return Me(jt),g((Tn)=>[{toastId:p.id,height:jt,position:p.position},...Tn]),()=>g((Tn)=>Tn.filter((Qt)=>Qt.toastId!==p.id))}},[g,p.id]),eo(()=>{if(!Z)return;let Yt=He.current,jt=Yt.style.height;Yt.style.height="auto";let Tn=Yt.getBoundingClientRect().height;Yt.style.height=jt,Me(Tn),g((Qt)=>{if(!Qt.find((Xt)=>Xt.toastId===p.id))return[{toastId:p.id,height:Tn,position:p.position},...Qt];else return Qt.map((Xt)=>Xt.toastId===p.id?{...Xt,height:Tn}:Xt)})},[Z,p.title,p.description,g,p.id,p.jsx,p.action,p.cancel]);let it=ee(()=>{me(!0),he(Re.current),g((Yt)=>Yt.filter((jt)=>jt.toastId!==p.id)),setTimeout(()=>{k(p)},ZLt)},[p,k,g,Re]);M(()=>{if(p.promise&&je==="loading"||p.duration===1/0||p.type==="loading")return;let Yt,jt=()=>{if(nt.current<pt.current){let Qt=new Date().getTime()-pt.current;Ct.current=Ct.current-Qt}nt.current=new Date().getTime()},Tn=()=>{if(Ct.current===1/0)return;pt.current=new Date().getTime(),Yt=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),it()},Ct.current)};if(x||h||Ht)jt();else Tn();return()=>clearTimeout(Yt)},[x,h,p,je,Ht,it]),M(()=>{if(p.delete)it(),p.onDismiss==null||p.onDismiss.call(p,p)},[it,p.delete]);function Ot(){var Yt;if(Y==null?void 0:Y.loading){var jt;return ar("div",{className:Am(X==null?void 0:X.loader,p==null?void 0:(jt=p.classNames)==null?void 0:jt.loader,"sonner-loader"),"data-visible":je==="loading"},Y.loading)}return ar($Lt,{className:Am(X==null?void 0:X.loader,p==null?void 0:(Yt=p.classNames)==null?void 0:Yt.loader),visible:je==="loading"})}let ft=p.icon||(Y==null?void 0:Y[je])||ILt(je);var yt,pn;return ar("li",{tabIndex:0,ref:He,className:Am(O,Nt,X==null?void 0:X.toast,p==null?void 0:(t=p.classNames)==null?void 0:t.toast,X==null?void 0:X[$t],p==null?void 0:(n=p.classNames)==null?void 0:n[$t]),"data-sonner-toast":"","data-rich-colors":(yt=p.richColors)!=null?yt:_,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":Z,"data-promise":Boolean(p.promise),"data-swiped":Ue,"data-removed":re,"data-visible":Qe,"data-y-position":et,"data-x-position":_t,"data-index":y,"data-front":ve,"data-swiping":se,"data-dismissible":sn,"data-type":je,"data-invert":Jt,"data-swipe-out":_e,"data-swipe-direction":P,"data-expanded":Boolean(x||G&&Z),"data-testid":p.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${re?Se:Re.current}px`,"--initial-height":G?"auto":`${we}px`,...C,...p.style},onDragEnd:()=>{xe(!1),K(null),Fe.current=null},onPointerDown:(Yt)=>{if(Yt.button===2)return;if(Kt||!sn)return;if(pe.current=new Date,he(Re.current),Yt.target.setPointerCapture(Yt.pointerId),Yt.target.tagName==="BUTTON")return;xe(!0),Fe.current={x:Yt.clientX,y:Yt.clientY}},onPointerUp:()=>{var Yt,jt,Tn;if(_e||!sn)return;Fe.current=null;let Qt=Number(((Yt=He.current)==null?void 0:Yt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((jt=He.current)==null?void 0:jt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xt=new Date().getTime()-((Tn=pe.current)==null?void 0:Tn.getTime()),Ye=D==="x"?Qt:Cn,en=Math.abs(Ye)/Xt;if((D==="x"?At.includes(Qt>0?"right":"left"):At.includes(Cn>0?"bottom":"top"))&&(Math.abs(Ye)>=XLt||en>0.11)){if(he(Re.current),p.onDismiss==null||p.onDismiss.call(p,p),D==="x")q(Qt>0?"right":"left");else q(Cn>0?"down":"up");it(),Ae(!0);return}else{var Kn,ue;(Kn=He.current)==null||Kn.style.setProperty("--swipe-amount-x","0px"),(ue=He.current)==null||ue.style.setProperty("--swipe-amount-y","0px")}le(!1),xe(!1),K(null)},onPointerMove:(Yt)=>{var jt,Tn,Qt;if(!Fe.current||!sn)return;if(((jt=window.getSelection())==null?void 0:jt.toString().length)>0)return;let Xt=Yt.clientY-Fe.current.y,Ye=Yt.clientX-Fe.current.x;if(!D&&(Math.abs(Ye)>1||Math.abs(Xt)>1))K(Math.abs(Ye)>Math.abs(Xt)?"x":"y");let en={x:0,y:0},Rn=(Kn)=>1/(1.5+Math.abs(Kn)/20);if(D==="y"){if(At.includes("top")||At.includes("bottom"))if(At.includes("top")&&Xt<0||At.includes("bottom")&&Xt>0)en.y=Xt;else{let Kn=Xt*Rn(Xt);en.y=Math.abs(Kn)<Math.abs(Xt)?Kn:Xt}}else if(D==="x"){if(At.includes("left")||At.includes("right"))if(At.includes("left")&&Ye<0||At.includes("right")&&Ye>0)en.x=Ye;else{let Kn=Ye*Rn(Ye);en.x=Math.abs(Kn)<Math.abs(Ye)?Kn:Ye}}if(Math.abs(en.x)>0||Math.abs(en.y)>0)le(!0);(Tn=He.current)==null||Tn.style.setProperty("--swipe-amount-x",`${en.x}px`),(Qt=He.current)==null||Qt.style.setProperty("--swipe-amount-y",`${en.y}px`)}},Oe&&!p.jsx&&je!=="loading"?ar("button",{"aria-label":W,"data-disabled":Kt,"data-close-button":!0,onClick:Kt||!sn?()=>{}:()=>{it(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Am(X==null?void 0:X.closeButton,p==null?void 0:(o=p.classNames)==null?void 0:o.closeButton)},(pn=Y==null?void 0:Y.close)!=null?pn:PLt):null,(je||p.icon||p.promise)&&p.icon!==null&&((Y==null?void 0:Y[je])!==null||p.icon)?ar("div",{"data-icon":"",className:Am(X==null?void 0:X.icon,p==null?void 0:(r=p.classNames)==null?void 0:r.icon)},je==="loading"?p.icon||Ot():p.promise?Ot():null,je!=="loading"?ft:null):null,ar("div",{"data-content":"",className:Am(X==null?void 0:X.content,p==null?void 0:(a=p.classNames)==null?void 0:a.content)},ar("div",{"data-title":"",className:Am(X==null?void 0:X.title,p==null?void 0:(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title==="function"?p.title():p.title),p.description?ar("div",{"data-description":"",className:Am(U,ut,X==null?void 0:X.description,p==null?void 0:(l=p.classNames)==null?void 0:l.description)},typeof p.description==="function"?p.description():p.description):null),Zs(p.cancel)?p.cancel:p.cancel&&l3(p.cancel)?ar("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||I,onClick:(Yt)=>{if(!l3(p.cancel))return;if(!sn)return;p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Yt),it()},className:Am(X==null?void 0:X.cancelButton,p==null?void 0:(c=p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Zs(p.action)?p.action:p.action&&l3(p.action)?ar("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||R,onClick:(Yt)=>{if(!l3(p.action))return;if(p.action.onClick==null||p.action.onClick.call(p.action,Yt),Yt.defaultPrevented)return;it()},className:Am(X==null?void 0:X.actionButton,p==null?void 0:(u=p.classNames)==null?void 0:u.actionButton)},p.action.label):null)},m1e;var h1e=qe(()=>{oe();mm();ELt=Array(12).fill(0),RLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),MLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),OLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),LLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),PLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},ar("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ar("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));eu=new f1e,ULt=BLt,c3=Object.assign(ULt,{success:eu.success,info:eu.info,warning:eu.warning,error:eu.error,custom:eu.custom,message:eu.message,promise:eu.promise,dismiss:eu.dismiss,loading:eu.loading},{getHistory:HLt,getToasts:WLt});TLt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");m1e=jn(function(t,n){let{id:o,invert:r,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:p,theme:f="light",richColors:h,duration:g,style:b,visibleToasts:v=VLt,toastOptions:y,dir:w=p1e(),gap:x=YLt,icons:k,customAriaLabel:_,containerAriaLabel:N="Notifications"}=t,[C,I]=T([]),R=fe(()=>{if(o)return C.filter((te)=>te.toasterId===o);return C.filter((te)=>!te.toasterId)},[C,o]),O=fe(()=>Array.from(new Set([a].concat(R.filter((te)=>te.position).map((te)=>te.position)))),[R,a]),[U,F]=T([]),[j,B]=T(!1),[G,X]=T(!1),[Y,W]=T(f!=="system"?f:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),D=H(null),K=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=H(null),q=H(!1),Z=ee((te)=>{I((re)=>{var me;if(!((me=re.find((se)=>se.id===te.id))==null?void 0:me.delete))eu.dismiss(te.id);return re.filter(({id:se})=>se!==te.id)})},[]);return M(()=>eu.subscribe((te)=>{if(te.dismiss){requestAnimationFrame(()=>{I((re)=>re.map((me)=>me.id===te.id?{...me,delete:!0}:me))});return}setTimeout(()=>{BG(()=>{I((re)=>{let me=re.findIndex((se)=>se.id===te.id);if(me!==-1)return[...re.slice(0,me),{...re[me],...te},...re.slice(me+1)];return[te,...re]})})})}),[]),M(()=>{if(f!=="system"){W(f);return}if(f==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)W("dark");else W("light");if(typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:re})=>{if(re)W("dark");else W("light")})}catch(re){te.addListener(({matches:me})=>{try{if(me)W("dark");else W("light")}catch(se){console.error(se)}})}},[f]),M(()=>{if(C.length<=1)B(!1)},[C]),M(()=>{let te=(re)=>{var me;if(s.length>0&&s.every((_e)=>re[_e]||re.code===_e)){var xe;B(!0),(xe=D.current)==null||xe.focus()}if(re.code==="Escape"&&(document.activeElement===D.current||((me=D.current)==null?void 0:me.contains(document.activeElement))))B(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),M(()=>{if(D.current)return()=>{if(P.current)P.current.focus({preventScroll:!0}),P.current=null,q.current=!1}},[D.current]),ar("section",{ref:n,"aria-label":_!=null?_:`${N} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},O.map((te,re)=>{var me;let[se,xe]=te.split("-");if(!R.length)return null;return ar("ol",{key:te,dir:w==="auto"?p1e():w,tabIndex:-1,ref:D,className:u,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":se,"data-x-position":xe,style:{"--front-toast-height":`${((me=U[0])==null?void 0:me.height)||0}px`,"--width":`${KLt}px`,"--gap":`${x}px`,...b,...ePt(d,p)},onBlur:(_e)=>{if(q.current&&!_e.currentTarget.contains(_e.relatedTarget)){if(q.current=!1,P.current)P.current.focus({preventScroll:!0}),P.current=null}},onFocus:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;if(!q.current)q.current=!0,P.current=_e.relatedTarget},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{if(!G)B(!1)},onDragEnd:()=>B(!1),onPointerDown:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;X(!0)},onPointerUp:()=>X(!1)},R.filter((_e)=>!_e.position&&re===0||_e.position===te).map((_e,Ae)=>{var Ue,le;return ar(QLt,{key:_e.id,icons:k,index:Ae,toast:_e,defaultRichColors:h,duration:(Ue=y==null?void 0:y.duration)!=null?Ue:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:v,closeButton:(le=y==null?void 0:y.closeButton)!=null?le:c,interacting:G,position:te,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:Z,toasts:R.filter((Se)=>Se.position==_e.position),heights:U.filter((Se)=>Se.position==_e.position),setHeights:F,expandByDefault:l,gap:x,expanded:j,swipeDirections:t.swipeDirections})}))}))})});function g1e(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:tPt,type:e,key:o,ref:t!==void 0?t:null,props:n}}var tPt,nPt,J,i,m;var V=qe(()=>{tPt=Symbol.for("react.transitional.element"),nPt=Symbol.for("react.fragment");J=nPt,i=g1e,m=g1e});function j1({d:e,size:t=14,color:n}){return i("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flex:"none"},children:i("path",{d:e})})}function de({name:e,size:t=16,className:n}){return i("svg",{className:n,width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:CI[e]})}function zy(e){if(!e||typeof e!=="string")return"?";let t=e.trim().split(/[\s._-]+/).filter(Boolean);if(!t.length)return"?";if(t.length===1)return t[0].slice(0,2).toUpperCase();return((t[0][0]||"")+(t[t.length-1][0]||"")).toUpperCase()||"?"}function tr({children:e}){return i("span",{className:"kbd",children:e})}var Er=({as:e,size:t=14})=>i(e,{size:t,strokeWidth:1.75,style:{display:"block"}}),CI;var Dt=qe(()=>{V();CI={"chevron-down":i("polyline",{points:"3.5 6 8 10.5 12.5 6"}),"chevron-right":i("polyline",{points:"6 3.5 10.5 8 6 12.5"}),chevron:i("path",{d:"M5 6.5l3 3 3-3"}),submenu:i("path",{d:"M6 4.5l3.5 3.5L6 11.5"}),tab:i("path",{d:"M1.5 13.5h2v-7A2.5 2.5 0 0 1 6 4h4a2.5 2.5 0 0 1 2.5 2.5v7h2"}),more:m("g",{fill:"currentColor",stroke:"none",children:[i("circle",{cx:"3.5",cy:"8",r:"1.1"}),i("circle",{cx:"8",cy:"8",r:"1.1"}),i("circle",{cx:"12.5",cy:"8",r:"1.1"})]}),undo:i("path",{d:"M6 3.5L3 6.5l3 3M3 6.5h6.25a3.75 3.75 0 0 1 0 7.5H7.5"}),redo:i("path",{d:"M10 3.5l3 3-3 3M13 6.5H6.75a3.75 3.75 0 0 0 0 7.5H8.5"}),history:i("path",{d:"M2.75 8A5.25 5.25 0 1 0 4.3 4.3M4.3 1.8v2.5h2.5M8 5.25V8l2 1.5"}),pin:i("path",{d:"M6 2.5h4l-.5 4 2.5 2.5H4l2.5-2.5zM8 9v4.5"}),duplicate:m(J,{children:[i("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.75"}),i("path",{d:"M10.5 5.5V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5"})]}),home:i("path",{d:"M2.5 7.25L8 2.75l5.5 4.5v5.25a1 1 0 0 1-1 1h-2.75V10h-3.5v3.5H3.5a1 1 0 0 1-1-1z"}),trash:i("path",{d:"M3 4.5h10M6.5 4.5V3h3v1.5M4.5 4.5l.6 8.1a1 1 0 0 0 1 .9h3.8a1 1 0 0 0 1-.9l.6-8.1"}),settings:m(J,{children:[i("path",{d:"M2.5 5h4.5M10 5h3.5M2.5 11h1.5M7 11h6.5"}),i("circle",{cx:"8.5",cy:"5",r:"1.5"}),i("circle",{cx:"5.5",cy:"11",r:"1.5"})]}),corner:i("path",{d:"M3.5 12.5V8a4.5 4.5 0 0 1 4.5-4.5h4.5"}),done:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M5.5 8.25l1.75 1.75 3.25-3.75"})]}),view:m(J,{children:[i("path",{d:"M1.75 8S4 3.75 8 3.75 14.25 8 14.25 8 12 12.25 8 12.25 1.75 8 1.75 8z"}),i("circle",{cx:"8",cy:"8",r:"1.75"})]}),minus:i("path",{d:"M3 8h10"}),spark:i("path",{d:"M16 3L19.309 12.691L29 16L19.309 19.309L16 29L12.691 19.309L3 16L12.691 12.691Z",transform:"scale(0.5)",fill:"currentColor",stroke:"none"}),file:m(J,{children:[i("path",{d:"M4 2h5l3 3v9H4z"}),i("polyline",{points:"9 2 9 5 12 5"})]}),folder:i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),"folder-plus":m(J,{children:[i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),i("path",{d:"M8 7.5v3.5M6.25 9.25h3.5"})]}),warn:m(J,{children:[i("path",{d:"M8 2.2 14.2 13H1.8z"}),i("path",{d:"M8 6.4v3.2"}),i("path",{d:"M8 11.3h.01"})]}),lock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015 0v2"})]}),unlock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015-.7"})]}),search:m(J,{children:[i("circle",{cx:"7",cy:"7",r:"4"}),i("line",{x1:"10",y1:"10",x2:"13.5",y2:"13.5"})]}),plus:m(J,{children:[i("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),i("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]}),check:i("polyline",{points:"3 8.2 6.4 11.5 13 4.2"}),x:m(J,{children:[i("line",{x1:"4.3",y1:"4.3",x2:"11.7",y2:"11.7"}),i("line",{x1:"11.7",y1:"4.3",x2:"4.3",y2:"11.7"})]}),sun:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"2.6"}),i("line",{x1:"8",y1:"1.5",x2:"8",y2:"3"}),i("line",{x1:"8",y1:"13",x2:"8",y2:"14.5"}),i("line",{x1:"1.5",y1:"8",x2:"3",y2:"8"}),i("line",{x1:"13",y1:"8",x2:"14.5",y2:"8"}),i("line",{x1:"3.4",y1:"3.4",x2:"4.4",y2:"4.4"}),i("line",{x1:"11.6",y1:"11.6",x2:"12.6",y2:"12.6"}),i("line",{x1:"12.6",y1:"3.4",x2:"11.6",y2:"4.4"}),i("line",{x1:"4.4",y1:"11.6",x2:"3.4",y2:"12.6"})]}),moon:i("path",{d:"M12.5 9.6A5 5 0 1 1 7 3a4 4 0 0 0 5.5 6.6z"}),sparkle:i("path",{d:"M8 1.8l1.4 4.8L14 8l-4.6 1.4L8 14.2l-1.4-4.8L2 8l4.6-1.4z",fill:"currentColor",stroke:"none"}),megaphone:m(J,{children:[i("path",{d:"M2 6.7 11 4v8L2 9.3z"}),i("path",{d:"M11 5.2a2.4 2.4 0 0 1 0 5.6"}),i("path",{d:"M4.3 9.5v2.3a1.2 1.2 0 0 0 2.4 0v-1.7"})]}),bug:m(J,{children:[i("circle",{cx:"8",cy:"9",r:"3.6"}),i("circle",{cx:"8",cy:"4.4",r:"1.3"}),i("path",{d:"M6.2 3.4 5.2 2M9.8 3.4l1-1.4"}),i("path",{d:"M4.6 7.6H2.2M4.6 9H2.2M4.6 10.6H2.5M11.4 7.6h2.4M11.4 9h2.4M11.4 10.6h2.3"})]}),"panel-left":m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("line",{x1:"6.4",y1:"3",x2:"6.4",y2:"13"})]}),resolve:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.6"}),i("polyline",{points:"5.4 8 7.2 9.9 10.6 6"})]}),reopen:m(J,{children:[i("path",{d:"M3.2 8a5 5 0 1 1 1.4 3.5"}),i("polyline",{points:"3.2 11.4 3.2 8 6.6 8"})]}),layers:m(J,{children:[i("polygon",{points:"8 2.2 13.8 5.5 8 8.8 2.2 5.5"}),i("polyline",{points:"2.2 9 8 12.3 13.8 9"})]}),box:i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.2"}),type:m(J,{children:[i("polyline",{points:"4 4 12 4"}),i("line",{x1:"8",y1:"4",x2:"8",y2:"12"})]}),button:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"3"}),i("line",{x1:"6",y1:"8",x2:"10",y2:"8"})]}),input:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"1.2"}),i("line",{x1:"5",y1:"8",x2:"5",y2:"8"})]}),link:m(J,{children:[i("path",{d:"M6.5 9.5a2.5 2.5 0 0 1 0-3.5l1.5-1.5a2.5 2.5 0 0 1 3.5 3.5l-1 1"}),i("path",{d:"M9.5 6.5a2.5 2.5 0 0 1 0 3.5l-1.5 1.5a2.5 2.5 0 0 1-3.5-3.5l1-1"})]}),list:m(J,{children:[i("line",{x1:"6",y1:"4.5",x2:"13",y2:"4.5"}),i("line",{x1:"6",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6",y1:"11.5",x2:"13",y2:"11.5"}),i("circle",{cx:"3.2",cy:"4.5",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"8",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"11.5",r:"0.8",fill:"currentColor"})]}),eye:m(J,{children:[i("path",{d:"M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z"}),i("circle",{cx:"8",cy:"8",r:"2"})]}),eyedropper:m(J,{children:[i("path",{d:"M11 2.6a1.7 1.7 0 0 1 2.4 2.4l-1.2 1.2-2.4-2.4z"}),i("path",{d:"M9.5 4.6 4 10.1V12h1.9l5.5-5.5"})]}),"p-corner":i("path",{d:"M3.5 12.5V7a3.5 3.5 0 0 1 3.5-3.5h5.5"}),"p-opacity":m(J,{children:[i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"}),i("path",{d:"M3 8h10M8 3v10",strokeWidth:"0.9",opacity:"0.55"})]}),"p-lineheight":m(J,{children:[i("line",{x1:"6.5",y1:"4",x2:"13",y2:"4"}),i("line",{x1:"6.5",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6.5",y1:"12",x2:"13",y2:"12"}),i("path",{d:"M3.2 4.6 3.2 11.4M2 6 3.2 4.5 4.4 6M2 10 3.2 11.5 4.4 10"})]}),"p-letterspacing":m(J,{children:[i("path",{d:"M3 4v8M13 4v8"}),i("path",{d:"M6 11.5 8 5l2 6.5M6.7 9.3h2.6",strokeWidth:"1.1"})]}),"p-gap":m(J,{children:[i("rect",{x:"2",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("rect",{x:"10.4",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("path",{d:"M6.8 8h2.4M7.4 6.9 6.4 8l1 1.1M8.6 6.9 9.6 8l-1 1.1",strokeWidth:"1"})]}),"p-border":i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1"}),"p-size":m(J,{children:[i("path",{d:"M3 13 6.6 3l3.6 10"}),i("path",{d:"M4.3 9.6h4.6"})]}),"eye-off":m(J,{children:[i("path",{d:"M6.3 4A6.7 6.7 0 0 1 8 3.5C12 3.5 14.5 8 14.5 8a12 12 0 0 1-2 2.4M4.4 5.3A12 12 0 0 0 1.5 8S4 12.5 8 12.5a6.5 6.5 0 0 0 2.1-.35"}),i("line",{x1:"2.5",y1:"2.5",x2:"13.5",y2:"13.5"})]}),sliders:m(J,{children:[i("line",{x1:"3",y1:"5",x2:"13",y2:"5"}),i("circle",{cx:"6",cy:"5",r:"1.7",fill:"currentColor"}),i("line",{x1:"3",y1:"11",x2:"13",y2:"11"}),i("circle",{cx:"10",cy:"11",r:"1.7",fill:"currentColor"})]}),code:m(J,{children:[i("polyline",{points:"6 5 3 8 6 11"}),i("polyline",{points:"10 5 13 8 10 11"})]}),download:m(J,{children:[i("line",{x1:"8",y1:"2.5",x2:"8",y2:"10"}),i("polyline",{points:"4.5 7 8 10.5 11.5 7"}),i("polyline",{points:"3 12.8 3 13.6 13 13.6 13 12.8"})]}),reload:m(J,{children:[i("path",{d:"M14 8a6 6 0 1 1-2-4.47L14 5.33"}),i("path",{d:"M14 2v3.33h-3.33"})]}),help:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"6"}),i("path",{d:"M6.3 6.2a1.8 1.8 0 1 1 2.3 1.9c-.5.2-.6.5-.6 1v.3"}),i("line",{x1:"8",y1:"11.4",x2:"8",y2:"11.5"})]}),image:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("circle",{cx:"6",cy:"6.3",r:"1.1"}),i("path",{d:"M3 12l3-2.8 2.2 1.8 2.4-3L13.5 12"})]}),vector:m(J,{children:[i("path",{d:"M3.6 11.2C6 5 10 5 12.4 11.2"}),i("rect",{x:"1.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"11.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"6.7",y:"2.6",width:"2.6",height:"2.6",rx:"0.4"})]}),presentation:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"7.4",rx:"1"}),i("line",{x1:"8",y1:"10.4",x2:"8",y2:"13"}),i("line",{x1:"5.6",y1:"13.4",x2:"10.4",y2:"13.4"})]}),archive:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"3",rx:"0.8"}),i("path",{d:"M3.6 6v6.2a1 1 0 0 0 1 1h6.8a1 1 0 0 0 1-1V6"}),i("line",{x1:"6.6",y1:"8.8",x2:"9.4",y2:"8.8"})]}),external:m(J,{children:[i("path",{d:"M11 8.5V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3.5"}),i("polyline",{points:"9.5 3 13 3 13 6.5"}),i("line",{x1:"13",y1:"3",x2:"7.6",y2:"8.4"})]}),share:m(J,{children:[i("circle",{cx:"4",cy:"8",r:"1.9"}),i("circle",{cx:"11.6",cy:"3.6",r:"1.9"}),i("circle",{cx:"11.6",cy:"12.4",r:"1.9"}),i("line",{x1:"5.7",y1:"7",x2:"9.9",y2:"4.6"}),i("line",{x1:"5.7",y1:"9",x2:"9.9",y2:"11.4"})]}),pen:m(J,{children:[i("path",{d:"M3 13l.8-3L10.6 3.2a1.1 1.1 0 0 1 1.6 0l.6.6a1.1 1.1 0 0 1 0 1.6L6 12.2z"}),i("line",{x1:"9.6",y1:"4.2",x2:"11.8",y2:"6.4"})]}),square:i("rect",{x:"3.5",y:"3.5",width:"9",height:"9",rx:"1"}),cloud:i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5zM6.25 9.5l1.25 1.25 2.25-2.5"}),sync:i("path",{d:"M3 7.25a5 5 0 0 1 8.6-3L13 5.5M13 2.5v3h-3M13 8.75a5 5 0 0 1-8.6 3L3 10.5M3 13.5v-3h3"}),offline:m(J,{children:[i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5z"}),i("path",{d:"M2.5 2.5l11 11"})]}),laptop:m(J,{children:[i("rect",{x:"3.5",y:"3.5",width:"9",height:"6.5",rx:"1.25"}),i("path",{d:"M1.75 12.5h12.5"})]}),problem:m(J,{children:[i("path",{d:"M8 2.75l5.75 10H2.25z"}),i("path",{d:"M8 6.75v2.5M8 11h.01"})]}),"panel-right":m(J,{children:[i("rect",{x:"2",y:"3",width:"12",height:"10",rx:"2.5"}),i("path",{d:"M10 3v10"})]}),comment:i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),"comment-bubble":i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),export:m(J,{children:[i("path",{d:"M8 2.5V10M5.25 7.25L8 10l2.75-2.75"}),i("path",{d:"M2.75 10.5V12a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-1.5"})]}),clock:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M8 4.75V8l2.25 1.5"})]}),"share-up":m(J,{children:[i("path",{d:"M8 9.5v-7M5.25 5.25L8 2.5l2.75 2.75"}),i("path",{d:"M5 7.5h-.5A1.5 1.5 0 0 0 3 9v3a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V9a1.5 1.5 0 0 0-1.5-1.5H11"})]}),frame:i("path",{d:"M5 2.5v11M11 2.5v11M2.5 5h11M2.5 11h11"}),print:m(J,{children:[i("path",{d:"M4.5 6V2.5h7V6M4.5 11.5h-1A1.5 1.5 0 0 1 2 10V7.5A1.5 1.5 0 0 1 3.5 6h9A1.5 1.5 0 0 1 14 7.5V10a1.5 1.5 0 0 1-1.5 1.5h-1"}),i("path",{d:"M4.5 9.5h7v4h-7z"})]}),system:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"8.75",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"2.5",y:"8.75",width:"4.75",height:"4.75",rx:"1.25"}),i("circle",{cx:"11.125",cy:"11.125",r:"2.375"})]}),insert:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"2.5"}),i("path",{d:"M8 5.5v5M5.5 8h5"})]})}});var T1e={};TG(T1e,{MAX_NOTICE_ENTRIES:()=>v1e,NoticeCard:()=>C1e,NotificationHost:()=>E7,dismissCanvasNotices:()=>sPt,dismissNotice:()=>Kl,noticeDuration:()=>I7,noticeEntries:()=>rPt,noticePlacement:()=>_1e,notify:()=>Yo,notifyCanvasText:()=>NI,notifyCanvasTriggered:()=>Tm,notifyUndo:()=>T7,setCanvasPopoverOpen:()=>m3,shownNoticeIds:()=>N1e,summarizeNoticeText:()=>U1});function aPt(){while(Ws.length>v1e){let e=Ws.findIndex(w1e);if(e<0)e=Ws.findIndex((t)=>t.kind!=="error"&&!t.paused&&I7(t)!==1/0);if(e<0)e=0;Ws=[...Ws.slice(0,e),...Ws.slice(e+1)]}}function x1e(e,t){let n={...e,title:u3(e.title),...e.description!==void 0?{description:u3(e.description)}:{}},o=n.id??`notice-${++f3}`,r=t?{...n,id:o,canvasTriggered:t}:{...n,id:o},a=n.action?.armAfterMs;if(typeof a==="number"&&a>0)r.actionArmedAt=Date.now()+a;if(Ws.findIndex((l)=>l.id===o)<0)Ws=[...Ws,r];else Ws=Ws.map((l)=>l.id===o?r:l);return aPt(),A7(),o}function Yo(e){return x1e(e,!1)}function S1e(){let e=Date.now();if(e<S7||e-S7>=1000)S7=e,_7=0;if(_7>=5)return!1;return _7++,!0}function Tm(e){if(!S1e())return null;return x1e(e,!0)}function NI(e,t="info"){if(!S1e())return null;let o=(t==="undo"?Ws.find((r)=>r.group==="canvas"&&r.kind==="undo"):void 0)?.id??`canvas-notice-${k1e++%2}`;return Yo({id:o,title:u3(e).slice(0,4000),kind:t,group:"canvas",timerKey:`${++f3}`})}function T7(e,t){let n=Ws.find((o)=>o.group==="canvas"&&o.kind==="undo");return Yo({id:n?.id??`canvas-notice-${k1e++%2}`,title:e,kind:"undo",group:"canvas",timerKey:`${++f3}`,...t?{action:t}:{}})}function sPt(){if(!Ws.some((e)=>e.group==="canvas"))return;Ws=Ws.filter((e)=>e.group!=="canvas"),A7()}function Kl(e){Ws=Ws.filter((t)=>t.id!==e),A7()}function d3(e){let t=Ws.find((n)=>n.id===e);Kl(e),t?.onDismiss?.()}function I7(e){return e.duration??(e.action||["error","warning","undo"].includes(e.kind??"")?1e4:5000)}function U1(e){let t=u3(e).trim().replace(/\s+/g," ");return t.length>280?`${t.slice(0,279)}…`:t}function m3(e){if(p3===e)return;p3=e;for(let t of N7)t()}function iPt(e){return N7.add(e),()=>N7.delete(e)}function _1e(e){if(p3)return"top";if(e.placement)return e.placement;return typeof document<"u"&&document.querySelector(".tl-track")?"top":"bottom"}function C1e({entry:e}){let t=e.icon??lPt[e.kind??"info"],n=e.actionArmedAt??0,[o,r]=T(()=>Date.now()>=n);return M(()=>{let a=n-Date.now();if(r(a<=0),a<=0)return;let s=setTimeout(()=>r(!0),a);return()=>clearTimeout(s)},[n]),m("div",{className:"maude-notice","data-kind":e.kind??"info","data-testid":`notice-${e.id}`,children:[t?i("span",{className:`maude-notice-ic maude-notice-ic--${t}`,"aria-hidden":"true",children:i(de,{name:t,size:16,className:"maude-notice-glyph"})}):null,m("div",{className:"maude-notice-txt",children:[i("div",{className:"maude-notice-title",children:U1(e.title)}),e.description&&i("div",{className:"maude-notice-summary",children:U1(e.description)}),e.content]}),e.action&&i("button",{type:"button",className:"maude-notice-action",disabled:!o,onClick:(a)=>{if(Date.now()<n)return;a.currentTarget.blur(),e.action?.onClick(),d3(e.id)},children:e.action.label}),i("button",{type:"button",className:"maude-notice-close","aria-label":"Dismiss notification",onClick:(a)=>{a.currentTarget.blur(),d3(e.id)},children:"×"})]})}function cPt({entry:e,visible:t,paused:n}){let o=I7(e),r=We(iPt,y1e,y1e),a=H(null),s=H(o);return M(()=>{s.current=o},[o,e.timerKey]),M(()=>{if(!t||n||e.paused||o===1/0)return;let l=Date.now(),c=setTimeout(()=>d3(e.id),Math.max(0,s.current));return()=>{clearTimeout(c),s.current=Math.max(0,s.current-(Date.now()-l))}},[t,n,e.paused,o,e.timerKey,e.id]),M(()=>{if(t){let l=a.current??`${e.id}:view-${++f3}`;a.current=l,c3.custom(()=>i(C1e,{entry:e}),{id:l,duration:1/0,position:_1e(e)==="top"?"top-center":"bottom-center",onDismiss:()=>{if(a.current===l)d3(e.id)}})}else if(a.current){let l=a.current;a.current=null,c3.dismiss(l)}},[e,t,r]),M(()=>()=>{let l=a.current;if(a.current=null,l)c3.dismiss(l)},[]),null}function N1e(e){let t=e.filter((s)=>!w1e(s)),n=e.filter((s)=>s.group!=="canvas"&&s.canvasTriggered),o=t.length?t:n.length?n:e,r=o.filter((s)=>s.kind==="error"),a=o.filter((s)=>s.kind!=="error").reverse();return[...r,...a].slice(0,A1e).map((s)=>s.id)}function E7({paused:e=!1,hiddenGroups:t=dPt}){let n=We(oPt,b1e,b1e),o=H(null),[r,a]=T(!1),[s,l]=T(!1),[c,u]=T(()=>typeof document<"u"&&document.hidden);M(()=>{let f=()=>u(document.hidden);return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)},[]),M(()=>{if(!n.length)a(!1),l(!1);if(s&&!o.current?.contains(document.activeElement))l(!1)},[n,s]);let d=n.filter((f)=>!t.includes(f.group??"")),p=new Set(N1e(d));return m("div",{ref:o,className:"maude-notifications","data-paused":e,onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),onFocusCapture:()=>l(!0),onBlurCapture:(f)=>{if(!f.currentTarget.contains(f.relatedTarget))l(!1)},children:[i("style",{children:uPt}),i(m1e,{position:"bottom-center",offset:{bottom:84,top:16},mobileOffset:{left:16,right:16,bottom:84,top:16},visibleToasts:A1e,expand:s,style:{"--width":"min(640px, calc(100vw - 32px))"},containerAriaLabel:"Notifications"}),n.map((f)=>i(cPt,{entry:f,visible:p.has(f.id),paused:e||r||s||c||!p.has(f.id)},f.id))]})}var Ws,f3=0,C7,A7=()=>{for(let e of C7)e()},oPt=(e)=>(C7.add(e),()=>{C7.delete(e)}),b1e=()=>Ws,rPt=()=>Ws,v1e=40,w1e=(e)=>e.group==="canvas"||!!e.canvasTriggered,u3=(e)=>typeof e==="string"?e:e===null||e===void 0?"":String(e),k1e=0,S7=-1/0,_7=0,p3=!1,N7,y1e=()=>p3,lPt,uPt=`
1
+ var WEt=Object.create;var{getPrototypeOf:VEt,defineProperty:HL,getOwnPropertyNames:GEt}=Object;var jbe=Object.prototype.hasOwnProperty;function qEt(e){return this[e]}var KEt,YEt,XEt=(e,t,n)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?KEt??=new WeakMap:YEt??=new WeakMap,a=r.get(e);if(a)return a}n=e!=null?WEt(VEt(e)):{};let s=t||!e||!e.__esModule||!jbe.call(e,"default")?HL(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let l of GEt(e))if(!jbe.call(s,l))HL(s,l,{get:qEt.bind(e,l),enumerable:!0})}if(o)r.set(e,s);return s};var ZEt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var JEt=(e)=>e;function QEt(e,t){this[e]=JEt.bind(null,t)}var TG=(e,t)=>{for(var n in t)HL(e,n,{get:t[n],enumerable:!0,configurable:!0,set:QEt.bind(t,n)})};var qe=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(o){n=[o]}if(n)throw n[0];return t};var Ube=(e,t,n)=>{for(var o in t)HL(e,o,{get:t[o],set:n[o],enumerable:!0,configurable:!0})},$S=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _a={};Ube(_a,{Activity:()=>oye,Children:()=>V2,Component:()=>VL,Fragment:()=>_s,Profiler:()=>rye,PureComponent:()=>aye,StrictMode:()=>sye,Suspense:()=>iye,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>OS,__COMPILER_RUNTIME:()=>lye,cache:()=>cye,cacheSignal:()=>uye,cloneElement:()=>jc,createContext:()=>bl,createElement:()=>ar,createRef:()=>dye,forwardRef:()=>jn,isValidElement:()=>Zs,lazy:()=>pye,memo:()=>Vr,startTransition:()=>fye,unstable_useCacheRefresh:()=>mye,use:()=>PG,useActionState:()=>hye,useCallback:()=>ee,useContext:()=>Ir,useDebugValue:()=>DG,useDeferredValue:()=>gye,useEffect:()=>M,useEffectEvent:()=>bye,useId:()=>ra,useImperativeHandle:()=>yye,useInsertionEffect:()=>G2,useLayoutEffect:()=>eo,useMemo:()=>fe,useOptimistic:()=>vye,useReducer:()=>LS,useRef:()=>H,useState:()=>T,useSyncExternalStore:()=>We,useTransition:()=>wye,version:()=>GL},{Activity:(eMn)=>oye=eMn,Children:(eMn)=>V2=eMn,Component:(eMn)=>VL=eMn,Fragment:(eMn)=>_s=eMn,Profiler:(eMn)=>rye=eMn,PureComponent:(eMn)=>aye=eMn,StrictMode:(eMn)=>sye=eMn,Suspense:(eMn)=>iye=eMn,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(eMn)=>OS=eMn,__COMPILER_RUNTIME:(eMn)=>lye=eMn,cache:(eMn)=>cye=eMn,cacheSignal:(eMn)=>uye=eMn,cloneElement:(eMn)=>jc=eMn,createContext:(eMn)=>bl=eMn,createElement:(eMn)=>ar=eMn,createRef:(eMn)=>dye=eMn,forwardRef:(eMn)=>jn=eMn,isValidElement:(eMn)=>Zs=eMn,lazy:(eMn)=>pye=eMn,memo:(eMn)=>Vr=eMn,startTransition:(eMn)=>fye=eMn,unstable_useCacheRefresh:(eMn)=>mye=eMn,use:(eMn)=>PG=eMn,useActionState:(eMn)=>hye=eMn,useCallback:(eMn)=>ee=eMn,useContext:(eMn)=>Ir=eMn,useDebugValue:(eMn)=>DG=eMn,useDeferredValue:(eMn)=>gye=eMn,useEffect:(eMn)=>M=eMn,useEffectEvent:(eMn)=>bye=eMn,useId:(eMn)=>ra=eMn,useImperativeHandle:(eMn)=>yye=eMn,useInsertionEffect:(eMn)=>G2=eMn,useLayoutEffect:(eMn)=>eo=eMn,useMemo:(eMn)=>fe=eMn,useOptimistic:(eMn)=>vye=eMn,useReducer:(eMn)=>LS=eMn,useRef:(eMn)=>H=eMn,useState:(eMn)=>T=eMn,useSyncExternalStore:(eMn)=>We=eMn,useTransition:(eMn)=>wye=eMn,version:(eMn)=>GL=eMn});function g$t(e){if(e===null||typeof e!=="object")return null;return e=qbe&&e[qbe]||e["@@iterator"],typeof e==="function"?e:null}function MS(e,t,n){this.props=e,this.context=t,this.refs=eye,this.updater=n||Jbe}function tye(){}function RG(e,t,n){this.props=e,this.context=t,this.refs=eye,this.updater=n||Jbe}function EG(){}function OG(e,t,n){var o=n.ref;return{$$typeof:$G,type:e,key:t,ref:o!==void 0?o:null,props:n}}function b$t(e,t){return OG(e.type,t,e.props)}function LG(e){return typeof e==="object"&&e!==null&&e.$$typeof===$G}function y$t(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}function IG(e,t){return typeof e==="object"&&e!==null&&e.key!=null?y$t(""+e.key):t.toString(36)}function v$t(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(EG,EG):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function RS(e,t,n,o,r){var a=typeof e;if(a==="undefined"||a==="boolean")e=null;var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case $G:case s$t:s=!0;break;case Zbe:return s=e._init,RS(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+IG(e,0):o,Kbe(r)?(n="",s!=null&&(n=s.replace(Ybe,"$&/")+"/"),RS(r,t,n,"",function(u){return u})):r!=null&&(LG(r)&&(r=b$t(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Ybe,"$&/")+"/")+s)),t.push(r)),1;s=0;var l=o===""?".":o+":";if(Kbe(e))for(var c=0;c<e.length;c++)o=e[c],a=l+IG(o,c),s+=RS(o,t,n,a,r);else if(c=g$t(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,a=l+IG(o,c++),s+=RS(o,t,n,a,r);else if(a==="object"){if(typeof e.then==="function")return RS(v$t(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function WL(e,t,n){if(e==null)return e;var o=[],r=0;return RS(e,o,"","",function(a){return t.call(n,a,r++)}),o}function w$t(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $G,s$t,i$t,l$t,c$t,u$t,d$t,p$t,f$t,m$t,Zbe,h$t,qbe,Jbe,Qbe,eye,MG,Kbe,za,nye,Ybe,Xbe,x$t,oye,V2,VL,_s,rye,aye,sye,iye,OS,lye,cye=function(e){return function(){return e.apply(null,arguments)}},uye=function(){return null},jc=function(e,t,n){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=Qbe({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!nye.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(o[a]=t[a]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}return OG(e.type,r,o)},bl=function(e){return e={$$typeof:d$t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:u$t,_context:e},e},ar=function(e,t,n){var o,r={},a=null;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)nye.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)r[o]===void 0&&(r[o]=s[o]);return OG(e,a,r)},dye=function(){return{current:null}},jn=function(e){return{$$typeof:p$t,render:e}},Zs,pye=function(e){return{$$typeof:Zbe,_payload:{_status:-1,_result:e},_init:w$t}},Vr=function(e,t){return{$$typeof:m$t,type:e,compare:t===void 0?null:t}},fye=function(e){var t=za.T,n={};za.T=n;try{var o=e(),r=za.S;r!==null&&r(n,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(EG,Xbe)}catch(a){Xbe(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),za.T=t}},mye=function(){return za.H.useCacheRefresh()},PG=function(e){return za.H.use(e)},hye=function(e,t,n){return za.H.useActionState(e,t,n)},ee=function(e,t){return za.H.useCallback(e,t)},Ir=function(e){return za.H.useContext(e)},DG=function(){},gye=function(e,t){return za.H.useDeferredValue(e,t)},M=function(e,t){return za.H.useEffect(e,t)},bye=function(e){return za.H.useEffectEvent(e)},ra=function(){return za.H.useId()},yye=function(e,t,n){return za.H.useImperativeHandle(e,t,n)},G2=function(e,t){return za.H.useInsertionEffect(e,t)},eo=function(e,t){return za.H.useLayoutEffect(e,t)},fe=function(e,t){return za.H.useMemo(e,t)},vye=function(e,t){return za.H.useOptimistic(e,t)},LS=function(e,t,n){return za.H.useReducer(e,t,n)},H=function(e){return za.H.useRef(e)},T=function(e){return za.H.useState(e)},We=function(e,t,n){return za.H.useSyncExternalStore(e,t,n)},wye=function(){return za.H.useTransition()},GL="19.2.7";var oe=qe(()=>{$G=Symbol.for("react.transitional.element"),s$t=Symbol.for("react.portal"),i$t=Symbol.for("react.fragment"),l$t=Symbol.for("react.strict_mode"),c$t=Symbol.for("react.profiler"),u$t=Symbol.for("react.consumer"),d$t=Symbol.for("react.context"),p$t=Symbol.for("react.forward_ref"),f$t=Symbol.for("react.suspense"),m$t=Symbol.for("react.memo"),Zbe=Symbol.for("react.lazy"),h$t=Symbol.for("react.activity"),qbe=Symbol.iterator;Jbe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qbe=Object.assign,eye={};MS.prototype.isReactComponent={};MS.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};MS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};tye.prototype=MS.prototype;MG=RG.prototype=new tye;MG.constructor=RG;Qbe(MG,MS.prototype);MG.isPureReactComponent=!0;Kbe=Array.isArray;za={H:null,A:null,T:null,S:null},nye=Object.prototype.hasOwnProperty;Ybe=/\/+/g;Xbe=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},x$t={map:WL,forEach:function(e,t,n){WL(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return WL(e,function(){t++}),t},toArray:function(e){return WL(e,function(t){return t})||[]},only:function(e){if(!LG(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oye=h$t,V2=x$t,VL=MS,_s=i$t,rye=c$t,aye=RG,sye=l$t,iye=f$t,OS=za,lye={__proto__:null,c:function(e){return za.H.useMemoCache(e)}},Zs=LG});function xye(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 Qb(){}function S$t(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:k$t,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var q2,k$t,zG,FG,fm=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(xye(299));return S$t(e,t,null,n)},BG=function(e){var t=zG.T,n=q2.p;try{if(zG.T=null,q2.p=2,e)return e()}finally{zG.T=t,q2.p=n,q2.d.f()}};var kye=qe(()=>{oe();q2={d:{f:Qb,r:function(){throw Error(xye(522))},D:Qb,C:Qb,L:Qb,m:Qb,X:Qb,S:Qb,M:Qb},p:0,findDOMNode:null},k$t=Symbol.for("react.portal");zG=OS;FG=q2});function Sye(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sye)}catch(e){console.error(e)}}var mm=qe(()=>{kye();Sye()});function ug(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>60?`${n.slice(0,60)}…`:n}function zx(e,t){let n=String(e??"").replace(/[\p{Cc}\p{Cf}]/gu,"").replace(/\s+/g," ").trim();if(!n)return t;return n.length>160?`${n.slice(0,160)}…`:n}function E9(e){return(e??[]).slice(0,3).map((t)=>ug(t,"(unnamed)"))}function gOt(e){if(!e)return null;let t=(n)=>typeof n==="number"&&Number.isInteger(n)&&n>=0;if(!t(e.synced)||!t(e.pending)||!t(e.rejected))return null;return{synced:e.synced,pending:e.pending,rejected:e.rejected}}function bOt(e){let t={unreadable:!1,sourceSlugs:[],failedFiles:0,tooLarge:0,blockedOther:0,held:0,failedMedia:0,moving:null,paused:!1},{conflicts:n,files:o,assets:r}=e;if(n!==void 0){if(!Array.isArray(n))t.unreadable=!0;else for(let a of n)if(Ny(a)&&a.kind==="body-rejected")t.sourceSlugs.push(typeof a.slug==="string"?a.slug:"(unnamed)")}if(o!==void 0)if(!Ny(o))t.unreadable=!0;else{for(let l of["synced","pulled","conflicts","pushed","failed"])if(o[l]!==void 0&&!xm(o[l]))t.unreadable=!0;if(xm(o.failed))t.failedFiles=o.failed;if(Array.isArray(o.held))for(let l of o.held){if(Ny(l)&&(l.kind==="hub-older"||l.kind==="hub-refused"))continue;t.held+=Ny(l)&&xm(l.count)?l.count:1}let a=0;if(Ny(o.rateLimited)){if(t.paused=!0,xm(o.rateLimited.waiting))a=o.rateLimited.waiting;if(a>0)t.failedFiles=0}let s=o.progress;if(Ny(s)){if(Array.isArray(s.blocked))for(let l of s.blocked){if(!Ny(l)||!xm(l.count))continue;if(l.class==="too-large")t.tooLarge+=l.count;else t.blockedOther+=l.count}if(s.phase==="paused")t.paused=!0;if(s.phase==="scanning"||s.phase==="seeding"||s.phase==="paused")t.moving=xm(s.delivered)&&xm(s.tracked)?{delivered:Math.min(s.delivered,s.tracked),tracked:s.tracked}:{delivered:0,tracked:0}}else if(s!==void 0)t.unreadable=!0;if(a>0&&!t.moving)t.moving={delivered:0,tracked:a}}if(r!==void 0)if(!Ny(r))t.unreadable=!0;else{if(xm(r.failedCount))t.failedMedia=r.failedCount;else if(r.failedCount!==void 0)t.unreadable=!0;if(r.finished===!1&&!t.moving)t.moving={media:{done:xm(r.done)?r.done:0,total:xm(r.total)?r.total:0}}}return t}function Sl(e,t={}){if(!e||e.linked===!1)return null;let n=ug(t.project,"the workspace"),o=typeof t.now==="number"?t.now:Date.now(),r=typeof e.startedAt==="number"&&Number.isFinite(e.startedAt)&&e.startedAt>0?e.startedAt:null,a=(N=!1)=>{let C=Math.max(1,Math.round((o-(r??o))/60000));return{phase:"stalled",online:!1,label:"stalled",title:`Nothing has synced with ${n} in the ${C} minute${C===1?"":"s"} since Maude started trying.`,next:N?"Maude keeps retrying. If it persists, reconnect the workspace — the sign-in may have expired.":"Maude keeps retrying — the workspace is reachable but is not completing handshakes.",names:[]}},s=r!==null&&o-r>300000;if(e.notSyncable){let N=e.tsxCount??0;return{phase:"nothing-syncable",online:!1,label:`0 syncable${N>0?` · ${N} tsx`:""}`,title:e.reason?ug(e.reason,"No canvases in this project are syncable yet."):`Connected to ${n} — no canvases here are syncable yet.`,next:"Create a canvas — it will start syncing on its own.",names:[]}}let l=e.queuedOps??0,c=l>0?` ${l} local edit${l===1?"":"s"} are queued.`:"",u=e.state==="offline"||e.state==="offline-long",d=bOt(e),p=(N)=>{let C=[],I=0,R=(U,F)=>{if(U<=0)return;C.push(F),I+=U},O=d.sourceSlugs.length;if(R(O,`${A1(O,"source change")} ${O===1?"was":"were"} not applied`),!N)R(d.failedFiles,`${A1(d.failedFiles,"file")} could not be delivered`),R(d.tooLarge,`${A1(d.tooLarge,"file")} ${d.tooLarge===1?"is":"are"} too large to sync`),R(d.blockedOther,`${A1(d.blockedOther,"file")} ${d.blockedOther===1?"is":"are"} blocked`),R(d.held,`${A1(d.held,"change")} ${d.held===1?"is":"are"} held for your decision`),R(d.failedMedia,`${A1(d.failedMedia,"media upload")} failed`);if(I===0)return null;return{phase:"attention",online:!1,label:`${I} to review`,title:`${I===1?"A change needs":`${I} changes need`} your attention in ${n}: ${C.join("; ")}.`+(u?" The hub is also unreachable right now.":"")+c,next:"Open the Sync panel to see what is waiting and why.",names:E9(d.sourceSlugs)}},f=gOt(e.docs),h=e.docs!==void 0&&f===null;if(f&&f.rejected>0){let N=f.synced+f.pending+f.rejected;return{phase:"refused",online:!1,label:`${f.rejected} refused`,title:`${f.rejected} of ${N} canvas${N===1?"":"es"} were refused by ${n} — their edits are not syncing.`+(u?" The hub is also unreachable right now.":""),next:"Reconnect the workspace — the credential may have been rotated.",names:E9(e.rejectedSlugs)}}let g=vOt(e.accepted);if(g){let N=g.pending;return{phase:"refused",online:!1,label:"sign in again",title:`${n} no longer accepts your sign-in — `+(N>0?`${N} change${N===1?" is":"s are"} kept on this device and not shared.`:"your changes are not shared."),next:"Sign in again to share them.",names:[]}}if(d.sourceSlugs.length>0){let N=p(u);if(N)return N}let b=e.parked?.since;if(typeof b==="number"&&Number.isFinite(b)&&b>0){let N=p(!1);if(N)return N;return{phase:"parked",online:!1,label:"asleep",title:"Cloud project asleep. Wakes on your next change.",next:"Nothing to do — edit or click anywhere and it reconnects.",names:[]}}if(u)return{phase:"offline",online:!1,label:l>0?`offline · ${l} ↑`:"offline",title:`Not reachable: ${n}. Your edits are safe on this machine and queued.${c}`,next:"Nothing to do — syncing resumes by itself when the hub is back.",names:[]};if(h||d.unreadable)return{phase:"connecting",online:!1,label:"status unreadable",title:`Cannot read the sync status for ${n} — the counts on disk are malformed.`,next:"Reconnect the workspace; if it persists, restart Maude.",names:[]};if(!f){let N=e.state==="online"||e.flash==="synced";if(!N&&s)return a(!0);let C=N?p(!1):null;if(C)return C;return{phase:N?"synced":"connecting",online:N,label:N?l>0?`${l} ↑`:"synced":"connecting…",title:N?`Syncing with ${n}.${c}`:`Connecting to ${n}…`,next:N?null:"Nothing to do — this usually takes a moment.",names:[]}}let v=f.synced+f.pending+f.rejected;if(v===0){if(s)return a();return{phase:"connecting",online:!1,label:"connecting…",title:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}let y=p(!1);if(y)return y;let w=wOt(e.aiAction);if(w?.state==="held"){let N=w.canvases;return{phase:"attention",online:!0,label:"AI edit held",title:`An unfinished AI edit to ${N} canvas${N===1?"":"es"} is kept on this device — it is not shared with ${n} yet.`,next:"Open the Sync panel to publish it as it stands or discard it.",names:[]}}if(f.pending>0){let N=f.synced>0;if(!N&&s)return a();return{phase:N?"syncing":"connecting",online:!1,label:N?`${f.synced}/${v}`:"connecting…",title:N?`Syncing with ${n} — ${f.synced} of ${v} canvas${v===1?"":"es"} so far.`:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}if(d.moving){let N=d.moving,C="media"in N?`uploading media (${N.media.done} of ${N.media.total})`:N.tracked>0?`files ${N.delivered} of ${N.tracked} delivered`:"checking project files";return{phase:"syncing",online:!0,label:"media"in N?"media ↑":N.tracked>0?`${N.delivered}/${N.tracked} files`:"files…",title:`Syncing with ${n} — all ${v} canvas${v===1?"":"es"} in step, ${C}.`+(d.paused?" Paused while the hub asks us to wait.":"")+c,next:"Nothing to do — this continues on its own.",names:[]}}if(w?.state==="open")return{phase:"syncing",online:!0,label:"AI editing",title:`An AI edit is in progress — its changes are shared with ${n} together when it finishes.`,next:null,names:[]};let x=yOt(e.accepted);if(x){let N=x.oldestPendingAt?Math.max(0,Math.round((Date.now()-x.oldestPendingAt)/1000)):0;return{phase:"syncing",online:!0,label:`saving ${x.pending}`,title:`Saving ${x.pending} change${x.pending===1?"":"s"} to ${n}`+(N>=10?` — the oldest has waited ${N} s.`:".")+" They are kept on this device until the project confirms them.",next:N>=60?"Maude keeps trying. If this persists, check your connection.":null,names:[]}}let k=e.pulled?.count,_=typeof k==="number"&&Number.isInteger(k)&&k>=0?Math.min(k,v):0;return{phase:"synced",online:!0,label:l>0?`${l} ↑`:"synced",title:`Synced with ${n} — all ${v} canvas${v===1?"":"es"}.`+(_>0?` ${_} came down from the project on this connect.`:"")+c,next:_>0?"They are new to this machine — look them over before editing.":null,names:_>0?E9(e.pulled?.names):[]}}function yOt(e){if(!e||typeof e!=="object")return null;let t=e,n=t.pending;if(typeof n!=="number"||!Number.isInteger(n)||n<=0||n>1e6)return null;let o=t.oldestPendingAt;return{pending:n,oldestPendingAt:typeof o==="number"&&Number.isFinite(o)&&o>0?o:null}}function vOt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.credentialRefused!==!0)return null;let n=t.pending;return{pending:typeof n==="number"&&Number.isInteger(n)&&n>0&&n<=1e6?n:0}}function wOt(e){if(!e||typeof e!=="object")return null;let t=e;if(t.state!=="open"&&t.state!=="held")return null;let n=Array.isArray(t.canvases)?Math.min(t.canvases.length,1e4):0;return{state:t.state,canvases:n}}var xm=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>=0,Ny=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),A1=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Ay(e,t){let n=e?.access;if(!n||typeof n!=="object")return e?.cloud?.role??void 0;let o=(l,c)=>l===null||Yd[c]>Yd[l]?c:l,r=(Array.isArray(n.grants)?n.grants:[]).filter((l)=>typeof l?.r==="string"&&(l.r in Yd)),a=typeof n.role==="string"&&n.role in Yd?n.role:null,s=r.filter((l)=>t&&l.c===t);for(let l of s.length||a!==null?s:r)a=o(a,l.r);return a??void 0}function Jke(e,t){if(e0e(e))return!1;if(!e?.readOnly)return!0;if(e.formatGate||e.readOnlyReason!=="role")return!1;let n=e.access;if(!n||typeof n!=="object"||!t)return!1;if(Yd[n.role]>=R9)return!0;return(Array.isArray(n.grants)?n.grants:[]).some((o)=>o?.c===t&&Yd[o?.r]>=R9)}function Qke(e,t){if(typeof t!=="string"||!t)return null;let n=(e?.designRel||".design").replace(/^\/+|\/+$/g,"");return t.startsWith(`${n}/`)?t.slice(n.length+1):t}function RD(e,t){return!Jke(e,Qke(e,t))}function Fx(e){let t=e?.access;return!!t&&typeof t==="object"&&t.role==null&&Array.isArray(t.grants)&&t.grants.length>0}function MD(e,t){if(!e0e(e)||e.formatGate||!t)return!1;return(Array.isArray(e.access?.grants)?e.access.grants:[]).some((n)=>n?.c===t&&Yd[n?.r]>=R9)}function t0e(e,t){let n=Qke(e,t),o=!Jke(e,n);if(!o)return{ro:!1,cm:!1};let r=!!e.access&&typeof e.access==="object"&&(Array.isArray(e.access.grants)?e.access.grants:[]).some((s)=>s?.c===n&&Yd[s?.r]>=Yd.viewer),a=!!e.canComment||r;return{ro:o,cm:a,...a&&e.formatGate?{cg:!0}:{}}}function Yke(e){let t=typeof e==="string"?e.trim():"";if(!t)return"";return t.split(/\s+/)[0]}function Yc(e){if(typeof e!=="string"||!e)return"";return(e.split("/").pop()||e).replace(/\.(tsx|jsx|html)$/i,"")}function ef(e,t=".design"){if(typeof e!=="string"||!e||e.startsWith("__"))return null;let n=String(t||".design").replace(/\/+$/,""),o=e.startsWith(`${n}/`)?e.slice(n.length+1):e;if(!/\.(tsx|jsx|html)$/i.test(o)||o.split("/").some((r)=>r===""||r===".."))return null;return o}async function P9(e,t,n,o){try{let r=await e(n,{method:t,headers:o===void 0?{}:{"content-type":"application/json"},...o===void 0?{}:{body:JSON.stringify(o)}}),a=await r.text().catch(()=>""),s=null;try{s=a?JSON.parse(a):null}catch{s=null}return{status:r.status,body:s}}catch{return{status:0,body:null}}}async function COt({canvas:e=null}={},t=fetch){let o=await P9(t,"POST","/_api/share/requests",typeof e==="string"&&e?{canvas:e}:{}),r=o.body?.reason;if(o.status===201)return{ok:!0,state:"asked",words:er.asked};if(o.status===202&&o.body?.queued)return{ok:!0,state:"queued",words:nI({error:o.body.words},er.queued)};if(r==="pending")return{ok:!0,state:"pending",words:nI(o.body,er.asked)};if(r==="already-can-edit")return{ok:!0,state:"already",words:er.alreadyCan};if(o.status===429)return{ok:!1,state:"limited",words:nI(o.body,er.unavailable)};if(r==="not-linked")return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===404||o.status===405)return{ok:!1,state:"not-linked",words:er.notLinked};if(o.status===0||o.status>=500)return{ok:!1,state:"unavailable",words:er.unavailable};return{ok:!1,state:"refused",words:nI(o.body,er.notLinked)}}async function n0e(e=fetch){let t=await P9(e,"GET","/_api/share/requests");return t.status===200&&Array.isArray(t.body?.requests)?t.body.requests:[]}async function $D(e,t,n=fetch){if(t!=="approve"&&t!=="decline")throw Error(`answerAccessRequest: ${t}`);if(typeof e!=="string"||!/^[A-Za-z0-9_-]{1,128}$/.test(e))return{ok:!1,words:er.answered};let o=await P9(n,"POST",`/_api/share/requests/${encodeURIComponent(e)}/${t}`,{});if(o.status>=200&&o.status<300)return{ok:!0,words:""};return{ok:!1,words:nI(o.body,er.answered)}}function NOt(e,t){let n=typeof t?.reason==="string"?t.reason:null;if(n==="link-off")return{kind:"link-off"};if(n==="access-withdrawn"||n==="removed"||n==="access-removed"||n==="expired"||n==="no-access")return{kind:"ended",reason:n==="expired"?"expired":"removed"};if(e===404||n==="not-in-scope"||n==="gone")return{kind:"missing"};return null}function D9(e,t){if(e!==401)return null;let n=NOt(e,t);return n&&(n.kind==="link-off"||n.kind==="ended")?n:null}function o0e(e,t){let n=e?.fetch;if(typeof n!=="function"||n[Xke])return()=>{};let o=async(...r)=>{let a=await n.apply(e,r);try{if(a?.status===401&&AOt(r[0],e.location?.origin)&&(a.headers?.get?.("content-type")??"").includes("json"))a.clone().json().then((s)=>{let l=D9(401,s);if(l)t(l)}).catch(()=>{})}catch{}return a};return o[Xke]=!0,e.fetch=o,()=>{if(e.fetch===o)e.fetch=n}}function TOt(e){if(e?.type!=="maude.access")return null;if(e.change==="raised")return{kind:"raised"};if(e.change==="narrowed"){let t=typeof e.by?.name==="string"?e.by.name.slice(0,80):"",n=$9(e.role)?e.role:null;return{kind:"narrowed",...t?{by:t}:{},...n?{role:n}:{}}}if(e.change==="ended")return e.reason==="link-off"?{kind:"link-off"}:{kind:"ended",reason:e.reason==="expired"?"expired":"removed"};return null}function IOt(e){if(e?.type!=="maude.access-request"||typeof e.id!=="string")return null;let t=typeof e.from?.name==="string"?e.from.name.slice(0,80):"",n=typeof e.canvas==="string"?e.canvas:null;return{id:e.id,text:er.asksToEdit(t,n?Yc(n):""),action:er.review}}function r0e(e){if(e?.type==="access")return TOt({type:"maude.access",change:e.change,reason:e.reason,by:e.by,role:e.role});if(e?.type==="access-request"){let t=IOt({type:"maude.access-request",id:e.id,from:e.from,canvas:e.canvas});return t?{kind:"request",...t}:null}return null}function j9(e){let t=typeof e==="string"&&e?e:null;if(t===M9)return;M9=t;for(let n of O9)n()}function s0e(e){return O9.add(e),()=>O9.delete(e)}function i0e(e,t=(...n)=>fetch(...n)){return{"share.ask-to-edit":async()=>{let n=ef(e.activePath,e.designRel),o=await COt({canvas:n},t);return e.toast?.(o.words,o.ok),o},"share.request-approve":async(n)=>{let o=await $D(n?.id,"approve",t);if(!o.ok)e.toast?.(o.words);return o},"share.request-decline":async(n)=>{let o=await $D(n?.id,"decline",t);if(!o.ok)e.toast?.(o.words);return o}}}var _Ot,$9=(e)=>typeof e==="string"&&_Ot[e]||"",Yd,T1=(e)=>typeof e==="string"&&(e in Yd)?Yd[e]:void 0,Zke=(e,t)=>Ay(e,t)==="observer",R9,e0e=(e)=>!!e?.cloud&&!e.canvasToken&&Fx(e),L9=(e)=>e?.canComment===!0&&!e.formatGate,er,nI=(e,t)=>typeof e?.error==="string"&&e.error&&e.error.length<=200?e.error:t,z9,F9,B9=(e,t)=>e==="observer"&&!t?.ended&&!t?.linkOff,Xke,AOt=(e,t)=>{let n=typeof e==="string"?e:typeof e?.url==="string"?e.url:String(e??"");if(n.startsWith("/")&&!n.startsWith("//"))return!0;return!!t&&(n===t||n.startsWith(`${t}/`))},oI="maude:access-frame",rI="maude:view-only-gesture",M9=null,O9,a0e=()=>M9;var ni=qe(()=>{_Ot=Object.freeze({owner:"Owner",member:"Can edit",viewer:"Can comment",observer:"Can view"}),Yd=Object.freeze({observer:0,viewer:1,member:2,owner:3});R9=Yd.member;er=Object.freeze({asked:"Asked. The owner will see your request.",queued:"Queued — sends when this Mac is online.",alreadyCan:"You can already edit this.",unavailable:"Could not ask right now. Try again in a minute.",notLinked:"Ask a project owner for edit access.",answered:"That request is no longer open.",tipTitle:(e)=>`You can look at ${e||"this canvas"}, not change it.`,tipLine:"Ask to edit, top right, sends a request to its owner.",appOnlyTitle:(e)=>`You can look at ${e||"this canvas"} here, not change it.`,appOnlyLine:"You can edit it in the desktop app. Editing one canvas in a browser comes later.",asksToEdit:(e,t)=>`${e||"Someone"} asks to edit ${t||"this project"}`,canViewNow:"can view it now",letEdit:(e)=>`Let ${Yke(e)||"them"} edit`,notNow:"Not now",review:"Review",raised:(e)=>`You can edit ${e||"this project"} now.`,narrowedTo:(e,t)=>`${Yke(e)||"Someone"} changed you to ${$9(t)}. Your changes were saved first.`,endedTitle:(e)=>`You no longer have access to ${e||"this project"}.`,endedLine:"Your last changes were saved first. If this is a surprise, ask someone on the team.",backHome:"Back to Home",linkOffTitle:"This link was turned off.",linkOffLine:(e)=>`Ask the person who shared ${e||"it"} for a new one.`,trashedTitle:(e,t)=>`${e||"Someone"} moved ${t||"this canvas"} to the trash`,trashedLine:"You can keep looking. Your unsent changes stay with it.",restore:"Restore",restoredAs:(e)=>`Restored as ${e}. A canvas with the old name already exists.`,sharedWithYou:(e)=>`Shared with you · ${$9(e)}`,onlyOne:(e)=>`Only ${e} was shared with you.`,onlyMany:(e)=>`Only these ${e} canvases were shared with you.`});z9=Object.freeze({path:"/_health",ms:30000}),F9=Object.freeze({path:"/_api/share/me",ms:60000}),Xke=Symbol.for("maude.access.refusal-watch");O9=new Set});function C0e(e=globalThis.window){Q9=!0,e?.dispatchEvent?.(new CustomEvent("maude:open-trash"))}function o7(){let e=Q9;return Q9=!1,e}function jx(e,t=globalThis.window){e7.push(e),t?.dispatchEvent?.(new CustomEvent(DD))}function N0e(){let e=e7;return e7=[],e}function tf(e,t,n,o=globalThis.window){o?.dispatchEvent?.(new CustomEvent(aI,{detail:{op:e,path:t,label:n}}))}function dg(e,t,n=globalThis.window){n?.dispatchEvent?.(new CustomEvent(aI,{detail:{op:"jump",path:e,artboardId:t}}))}function A0e(e=globalThis.window){t7=!0,e?.dispatchEvent?.(new CustomEvent(zD))}function T0e(){let e=t7;return t7=!1,e}var n7="maude:open-trash",Q9=!1,DD="maude:canvases-op",e7,aI="maude:canvas-op",zD="maude:focus-selector",t7=!1;var qu=qe(()=>{e7=[]});var nf=(...e)=>e,Ux;var FD=qe(()=>{Ux=Object.freeze([{id:"kanban",title:"Kanban",desc:"To do · Doing · Done",thumb:"kanban",board:{groups:[{title:"To do",cards:nf("","")},{title:"Doing",cards:nf("")},{title:"Done",cards:nf("")}]}},{id:"retro",title:"Retro",desc:"Went well · To improve · Actions",thumb:"retro",board:{groups:[{title:"Went well",cards:nf("","")},{title:"To improve",cards:nf("","")},{title:"Actions",cards:nf("")}]}},{id:"flow",title:"Flowchart",desc:"Steps and decisions",thumb:"flow",board:{layout:"flow",nodes:[{id:"start",label:"Start"},{id:"decide",label:"Decision?",shape:"diamond"},{id:"yes",label:"Yes"},{id:"no",label:"No"}],edges:[{from:"start",to:"decide"},{from:"decide",to:"yes",label:"Yes"},{from:"decide",to:"no",label:"No"}]}},{id:"calendar",title:"Content calendar",desc:"One column a day",thumb:"cal",board:{groups:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map((e)=>({title:e,cards:nf("")}))}},{id:"roadmap",title:"Roadmap",desc:"One column a month",thumb:"road",board:{groups:[{title:"This month",cards:nf("","")},{title:"Next month",cards:nf("","")},{title:"The month after",cards:nf("")}]}},{id:"brainstorm",title:"Brainstorm",desc:"A topic and ideas round it",thumb:"brain",board:{title:"Topic",layout:"radial",groups:[{title:"Ideas",cards:nf("","","","","","")}]}},{id:"checklist",title:"Checklist",desc:"One section, ticks",thumb:"check",board:{groups:[{title:"Checklist",cards:[{text:"Checklist",items:["","",""]}]}]}},{id:"blank",title:"Blank section",desc:"Draw it, name it",thumb:"blank",board:{groups:[{title:"Section"}]}}])});var sI,iI,I0e;var E0e=qe(()=>{sI={shell:["desktop"],minRole:"edit"},iI={hidden:!0},I0e=[{id:"ai.runs.list",label:"AI runs",kind:"command",icon:"sparkle",exec:"shell",visible:sI,search:iI},{id:"ai.stop",label:"Stop",kind:"command",exec:"shell",visible:sI,search:iI},{id:"ai.cancel-waiting",label:"Cancel the waiting prompt",kind:"command",exec:"shell",visible:sI,search:iI},{id:"ai.run-on-copy",label:"Run on a copy",kind:"command",exec:"shell",visible:sI,search:iI},{id:"ai.keep-going",label:"Keep going",kind:"command",exec:"shell",visible:sI,search:iI}]});function R0e(e){if(e===" ")return"Space";let t=String(e).trim();if(!t||/\b(click|hover|drag|scroll)\b/i.test(t))return null;let n=new Set;t=t.replace(/\b(cmd|command|meta|ctrl|control|alt|opt|option|shift)\s*\+\s*/gi,(r,a)=>(n.add(qOt[a.toLowerCase()]),""));for(;;){t=t.replace(/^\s+/,"");let r=BD.find((a)=>t.startsWith(a));if(!r||t.trim().length===r.length)break;n.add(r),t=t.slice(r.length)}let o=t.trim();if(jD[o])o=jD[o];else if(/^[a-z]$/i.test(o))o=o.toUpperCase();else if(/^f\d{1,2}$/i.test(o))o=o.toUpperCase();if(!o)return null;return BD.filter((r)=>n.has(r)).join("")+o}function E1(e){let t=R0e(e);if(!t)throw Error(`actions/keys: '${e}' is not a key chord`);return t}function $1(e){let t=new Set;if(e.metaKey||e.ctrlKey)t.add("⌘");if(e.altKey)t.add("⌥");let n=e.key??"";if(jD[n])n=jD[n];else if(/^F\d{1,2}$/.test(n));else if(/^[\x21-\x7e]$/.test(n)){if(/^[a-z]$/i.test(n))n=n.toUpperCase();else if(n==="/"&&e.shiftKey&&e.code==="Slash"&&!e.altKey)n="?"}else if(e.code){let a=/^Key([A-Z])$/.exec(e.code)??/^Digit(\d)$/.exec(e.code);n=a?a[1]:KOt[e.code]??n}let o=e.shiftKey&&t.size===0?/^Digit(\d)$/.exec(e.code??""):null;if(o)n=o[1];let r=!!o||/^[A-Z]$/.test(n)||$0e.has(n)||/^F\d/.test(n);if(e.shiftKey&&r)t.add("⇧");return BD.filter((a)=>t.has(a)).join("")+n}function M0e(e){let{mods:t,key:n}=L0e(e);if(t.some((o)=>o!=="⇧"))return!1;if($0e.has(n)||/^F\d{1,2}$/.test(n))return!1;return n.length===1}function O0e(e){return e.includes("⌘")||e.includes("⌃")}function L0e(e){let t=[],n=e;for(;;){let o=BD.find((r)=>n.startsWith(r)&&n.length>r.length);if(!o)break;t.push(o),n=n.slice(o.length)}return{mods:t,key:n}}function km(e,t={}){let{mods:n,key:o}=L0e(R0e(e)??e),r=o==="="&&n.includes("⌘")?"+":o;return t.spaced?[...n,r].join(" "):n.join("")+r}var BD,jD,$0e,qOt,KOt,P0e,D0e;var of=qe(()=>{BD=["⌃","⌥","⇧","⌘"],jD={Enter:"↵",Return:"↵","↩":"↵",Escape:"esc",Esc:"esc",esc:"esc"," ":"Space",Space:"Space",Spacebar:"Space",ArrowLeft:"←",ArrowRight:"→",ArrowUp:"↑",ArrowDown:"↓",Backspace:"⌫",Delete:"⌦",Del:"⌦",Tab:"tab",tab:"tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown","-":"−","–":"−"},$0e=new Set(["↵","esc","Space","tab","⌫","⌦","←","→","↑","↓","Home","End","PageUp","PageDown"]),qOt={cmd:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",opt:"⌥",option:"⌥",shift:"⇧"};KOt={Minus:"−",Equal:"=",Slash:"/",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Period:".",Semicolon:";",Quote:"'",Backquote:"`",Space:"Space"};P0e=new Set(["⌘Z","⇧⌘Z","⌘Y","⌘A","⌘C","⌘X","⌘V","⇧⌘V","⌥⇧⌘V","⌘B","⌘I","⌘U","⌘←","⌘→","⌘↑","⌘↓","⇧⌘←","⇧⌘→","⌥←","⌥→","⌘⌫","⌥⌫"].map(E1)),D0e=new Set(["⌘N","⇧⌘N","⌘T","⌘W","⌘Q","⌘L"].map(E1))});function Tt(e,t,n={}){return{chord:E1(e),layer:t,...n}}function Kr(e,t,n,o={}){let r=[...t],a=[];for(let s=0;s<1<<r.length;s++){let l=r.filter((u,d)=>s&1<<d).join(""),c=Tt(l+e,n,o);a.push(s===0?c:{...c,alias:!0})}return a}var Zd,lI,UD,Xc,Hx;var Jd=qe(()=>{of();Zd=["chrome","timeline","text"],lI={focus:["chrome","timeline"],notFacts:["rangeFocused"]},UD={notFacts:["selectFocused"]},Xc={focus:["canvas"]},Hx={focus:["canvas","text"]}});var $y,Iy,Wx,r7,z0e,Zc=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",keys:n}),Ey=(e,t,n,o={})=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},keys:n,...o}),YOt,F0e,B0e,j0e;var U0e=qe(()=>{FD();Jd();$y={...Xc,selection:["annotation"]},Iy={...$y,mode:["preview"]},Wx={focus:["canvas"],selection:["annotation"],facts:["checkItemFocused"]},r7={...Wx,focus:["text"]},z0e={...$y,notFacts:["checkItemFocused"]},YOt=[{id:"annotation.make-checklist",label:"Turn into checklist",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["checklist","todo","to-do","tasks","tick","sticky","list"]}},Ey("checklist.toggle","Tick / untick",[Tt("Space","selection",{when:Wx}),Tt("⌘↵","selection",{when:r7,inText:!0})],{search:{keywords:["tick","check","done","todo","checklist"]}}),Ey("checklist.edit","Edit item",[Tt("↵","selection",{when:Wx})],{search:{keywords:["checklist","item","rename","reword"]}}),Ey("checklist.add-below","Add an item",[Tt("↵","selection",{when:r7,inText:!0})],{search:{keywords:["checklist","item","add","todo","new"]}}),Ey("checklist.remove-empty","Remove the empty item",[Tt("⌫","selection",{when:r7,inText:!0})],{search:{keywords:["checklist","item","remove","delete"]}}),Ey("checklist.move-up","Move item up",[Tt("⌥⌘↑","selection",{when:{...Wx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","up"]}}),Ey("checklist.move-down","Move item down",[Tt("⌥⌘↓","selection",{when:{...Wx,focus:["canvas","text"]},inText:!0})],{search:{keywords:["checklist","reorder","down"]}}),Ey("checklist.focus-prev","Previous item",[Tt("↑","selection",{when:Wx})],{search:{hidden:!0}}),Ey("checklist.focus-next","Next item",[Tt("↓","selection",{when:Wx})],{search:{hidden:!0}})],F0e=[Zc("annotation.group","Group",[Tt("⌘G","selection",{when:Iy})]),Zc("annotation.ungroup","Ungroup",[Tt("⇧⌘G","selection",{when:Iy})]),Zc("annotation.lock","Lock / unlock",[Tt("⇧⌘L","selection",{when:Iy})]),Zc("annotation.duplicate","Duplicate",[Tt("⌘D","selection",{when:$y})]),Zc("annotation.to-front","Bring to front",[Tt("]","selection",{when:Iy})]),Zc("annotation.forward","Bring forward",[Tt("⌘]","selection",{when:Iy})]),Zc("annotation.to-back","Send to back",[Tt("[","selection",{when:Iy})]),Zc("annotation.backward","Send backward",[Tt("⌘[","selection",{when:Iy})]),Zc("annotation.copy","Copy",[Tt("⌘C","selection",{when:$y})]),Zc("annotation.cut","Cut",[Tt("⌘X","selection",{when:$y})]),Zc("annotation.chain","Add the next one",[Tt("⌘↵","selection",{when:$y})]),Zc("annotation.edit-text","Edit text",[Tt("↵","selection",{when:z0e})]),Zc("annotation.nudge","Nudge",["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:z0e}))),Zc("annotation.remove","Remove",[...Kr("⌫","⇧","selection",{when:$y}),...Kr("⌦","⇧","selection",{when:$y})]),{id:"annotation.point-to",label:"Point to…",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["arrow","point","bind","re-aim","dangling"]}},{id:"annotation.resolve",label:"Resolve",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["resolve","reopen","done","sticky","strike"]}},{id:"annotation.fan-out",label:"Fan out",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["stack","spread","sticky","row"]}},{id:"annotation.to-comment",label:"Turn into a comment",kind:"command",exec:"canvas",icon:"comment",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["comment","thread","sticky","convert","answer"]}},{id:"annotation.fold",label:"Fold section",kind:"command",exec:"canvas",enabled:{minRole:"edit",selection:["annotation"]},search:{keywords:["fold","unfold","collapse","section","expand"]}},{id:"annotation.ask-ai",label:"Ask AI about this",kind:"command",exec:"canvas",icon:"sparkle",enabled:{minRole:"edit",selection:["annotation"]},keys:[Tt("⌘/","selection",{when:Iy})],search:{keywords:["ask ai","sticky","section","selection"]}},...YOt],B0e=[{id:"annotations.hide-resolved",label:"Hide resolved stickies",kind:"command",exec:"canvas",visible:{minRole:"view"},search:{keywords:["resolved","done","sticky","hide","show"]}},{id:"annotations.trash-resolved",label:"Move resolved stickies to the trash",kind:"command",exec:"canvas",icon:"trash",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["resolved","trash","clear","sticky","done","delete"]}},{id:"annotations.start-vote",label:"Start a vote…",kind:"command",exec:"canvas",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","poll","dot","decide","ballot","pick"]}},{id:"annotations.end-vote",label:"End vote",kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["vote","end","finish","results","count"]}},{id:"annotations.select-resolved",label:"Select resolved stickies",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen"]},search:{keywords:["resolved","select","sticky","done"]}}],j0e=Ux.map((e)=>({id:`annotation.template-${e.id}`,label:`${e.title} template`,kind:"command",exec:"shell",enabled:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["template","start","section"]}}))});var H0e,W0e;var V0e=qe(()=>{Jd();H0e={focus:["chrome","timeline","canvas"],notFacts:["rangeFocused"]},W0e=[{id:"settings.open",label:"Settings…",kind:"command",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Tt("⌘,","global",{inText:!0,when:{focus:[...Zd,"canvas"]}})],legacy:{palette:"Settings…",menu:"Settings…"}},{id:"settings.reset-panel-layout",label:"Reset panel layout",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["panels","sides","dock","layout","left","right"]}},{id:"settings.reset-all",label:"Reset all settings…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["defaults","preferences","fresh"]}},{id:"settings.use-own-plugin-copy",label:"Use my own plugin copy",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["plugins","claude code","bundled","marketplace"]}},{id:"settings.experimental-teams",label:"AI reviews argue it out (teams)",kind:"toggle",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["teams","debate","review","experimental"]}},{id:"connections.replace-hub-token",label:"Replace the team server’s access token…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["hub","token","team server","self-hosted","credential","access"]}},{id:"connections.figma-test",label:"Test the Figma connection",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["figma","token","import","check"]}},{id:"connections.cloud-project-connect",label:"Connect this folder to a cloud project…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["cloud","link","attach","sync","workspace"]}},{id:"connections.cloud-project-disconnect",label:"Disconnect this folder from its server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["cloud","unlink","detach","stop syncing","sign out"]}},{id:"account.switch",label:"Switch account…",kind:"command",exec:"shell",visible:{shell:["desktop","cloud"]},search:{keywords:["account","sign in","profile","no account","this mac only"]}},{id:"account.add-cloud",label:"Add a Maude Cloud account…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["cloud","sign in","account","login"]}},{id:"account.link-server",label:"Link your server…",kind:"command",exec:"shell",visible:{shell:["desktop","browser"]},search:{keywords:["team server","hub","self-hosted","custom server","sign in","link"]}},{id:"account.github-signin",label:"Sign in with GitHub…",kind:"command",exec:"shell",visible:{shell:["desktop"]},search:{keywords:["github","sign in","login","publish","connect"]}},{id:"ai.chat",label:"AI chat",kind:"toggle",icon:"sparkle",exec:"shell",visible:{shell:["desktop","cloud"]},enabled:{shell:["desktop"]},search:{note:"in the desktop app"},keys:[Tt("⌘/","global",{inText:!0,when:{focus:Zd,facts:["native"]}})],legacy:{menu:"Assistant"}},{id:"help.shortcuts",label:"Keyboard shortcuts",kind:"toggle",icon:"help",exec:"shell",fromCanvas:!0,keys:[Tt("?","global",{inText:!1,when:H0e}),Tt("⌘?","global",{inText:!1,alias:!0,when:H0e})],legacy:{palette:"Keyboard shortcuts",menu:"Keyboard shortcuts",sheet:"This cheat sheet · help"}},{id:"help.guides",label:"Help and guides",kind:"command",icon:"help",exec:"shell",keys:Kr("F1","⌥⇧⌘","global",{inText:!1,when:lI}),legacy:{palette:"Help · commands & flows",menu:"Help · commands & flows",sheet:"This cheat sheet · help"}},{id:"help.add-guides",label:"Add the guide canvases to this project",kind:"command",icon:"help",exec:"shell",visible:{shell:["desktop","browser"],minRole:"edit"},search:{keywords:["guides","how to use maude","how to make video","tutorial","examples"],where:"Help and guides"}},{id:"ai.ask-fill-artboard",label:"Ask AI to fill this artboard",kind:"command",icon:"sparkle",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{keywords:["fill","empty artboard","draft","ask ai"],where:"Empty artboard › Ask AI"}},{id:"ai.generate",label:"Ask AI to generate…",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"Ask AI to generate…",menu:"Ask AI to generate…"}},{id:"ai.draw-mark",label:"Draw a mark",kind:"command",icon:"pen",exec:"shell",legacy:{palette:"Draw a mark with the SVG agent"}},{id:"help.whats-new",label:"What's new",kind:"command",icon:"sparkle",exec:"shell",legacy:{palette:"What's new in maude",menu:"What's new"}},{id:"help.tour",label:"Take the tour",kind:"command",exec:"shell",legacy:{menu:"Take the tour"}},{id:"help.intro",label:"Watch the intro",kind:"command",exec:"shell",legacy:{menu:"Watch the intro"}},{id:"help.sharing",label:"How sharing works",kind:"command",exec:"shell",legacy:{menu:"How sharing works"}},{id:"help.setup",label:"Set up Maude…",kind:"command",exec:"shell",legacy:{menu:"Quick setup"}},{id:"help.ai-readiness",label:"Check AI setup again",kind:"command",exec:"shell",legacy:{menu:"Check AI editing readiness…"}},{id:"help.report-bug",label:"Report a bug…",kind:"command",icon:"help",exec:"shell",native:{menu:"Help",order:1},legacy:{palette:"Report a bug…",menu:"Report a bug…"}}]});var G0e;var q0e=qe(()=>{Jd();G0e=[{id:"canvas.new",label:"New canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"An empty canvas, ready to draw on"},visible:{minRole:"edit"},keys:[Tt("⌘N","global",{inText:!0,when:{shell:["desktop"]}})],legacy:{palette:"New canvas",menu:"New canvas…",sheet:"New brief board"}},{id:"canvas.new-brief",label:"New brief canvas",kind:"command",icon:"plus",exec:"shell",search:{hint:"A board to write a brief on, for AI to draft from"},visible:{minRole:"edit"}},{id:"home.ask",label:"Ask AI for a new canvas…",kind:"command",icon:"sparkle",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"canvas.reload",label:"Reload canvas",kind:"command",icon:"reload",exec:"shell",fromCanvas:!0,keys:[Tt("⌘R","global",{inText:!0})],legacy:{palette:"Reload active canvas",menu:"Reload canvas",sheet:"Reload canvas"}},{id:"canvas.new-video",label:"New video",kind:"command",icon:"plus",exec:"shell",search:{hint:"A canvas for a video, with its timeline"},visible:{minRole:"edit"},legacy:{palette:"New video…"}},{id:"canvas.close",label:"Close canvas",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Close canvas"}},{id:"canvas.duplicate",label:"Duplicate canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.rename",label:"Rename canvas",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.move",label:"Move to…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.copy-link",label:"Copy canvas link",kind:"command",exec:"shell",search:{where:"Canvases panel › row menu"},enabled:{facts:["canvasOpen"]}},{id:"canvas.trash",label:"Move canvas to trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]}},{id:"canvas.view-code",label:"View code",kind:"command",icon:"code",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["code","source","tsx","developer","read only"],where:"Canvases panel › row menu › View code"}},{id:"canvas.reveal-in-finder",label:"Reveal in Finder",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["finder","show","file","folder","explorer"],where:"Canvases › Advanced"}},{id:"canvas.open-in-editor",label:"Open in editor",kind:"command",icon:"edit",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["editor","code","vscode","file","tsx"],where:"Canvases › Advanced"}},{id:"canvas.copy-file-path",label:"Copy file path",kind:"command",icon:"duplicate",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{keywords:["path","file","copy","location"],where:"Canvases › Advanced"}},{id:"canvas.rename-file",label:"Rename file…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["rename","file","name"],where:"Canvases › Advanced"}},{id:"canvas.copy-error",label:"Copy error",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"canvas.ask-ai-fix",label:"Ask AI to fix it",kind:"command",exec:"shell",visible:{shell:["desktop"],minRole:"edit"},search:{hidden:!0}},{id:"canvas.last-good",label:"Last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"import.figma",label:"Import from Figma…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:{keywords:["figma","frames","dev mode","access token"]}},{id:"import.brand",label:"Import a brand…",kind:"command",exec:"shell",visible:{minRole:"edit"}},{id:"video.assemble",label:"Assemble clips into a video",kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:"Assemble dropped clips → video"}},...[["desktop","Desktop"],["laptop","Laptop"],["tablet","Tablet"],["mobile","Mobile"],["a4","A4 (print)"],["letter","Letter (print)"]].map(([e,t])=>({id:`artboard.new-${e}`,label:`New artboard: ${t.replace(" (print)","")}`,kind:"command",exec:"shell",visible:{minRole:"edit"},legacy:{menu:`New artboard: ${t}`}})),{id:"artboard.new-video",label:"New artboard: Video",kind:"command",exec:"shell",visible:{minRole:"edit"}}]});function Gx(e,t,n){return{id:`chat.advanced.${e}`,label:t,kind:"command",exec:"shell",visible:a7,search:{keywords:n,where:"AI chat panel › Advanced"}}}var a7,Vx,Sm,K0e;var Y0e=qe(()=>{a7={shell:["desktop"]},Vx={shell:["desktop"],minRole:"edit"},Sm={hidden:!0};K0e=[{id:"chat.new",label:"New chat",kind:"command",icon:"plus",exec:"shell",visible:a7,search:Sm},{id:"chat.rename",label:"Rename…",kind:"command",exec:"shell",visible:Vx,search:Sm},{id:"chat.archive",label:"Archive",kind:"command",exec:"shell",visible:Vx,search:Sm},{id:"chat.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",visible:Vx,search:Sm},{id:"chat.undo",label:"Undo this chat",kind:"command",exec:"shell",visible:Vx,search:Sm},{id:"chat.copy-transcript",label:"Copy transcript",kind:"command",exec:"shell",visible:a7,search:Sm},{id:"chat.open-in-terminal",label:"Open in terminal",kind:"command",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:{keywords:["terminal","resume","claude"],where:"AI chat panel › Advanced"}},Gx("ask-before","Permissions",["ask before","mode","permission","plan","suggest only","bypass","auto"]),Gx("model","Model",["opus","sonnet","haiku","claude"]),Gx("effort","Effort",["thinking","think harder","low","high"]),Gx("fast-mode","Fast mode",["fast","speed"]),Gx("show-in-chat","Show in chat",["verbose","thinking","transcript","detail","view"]),Gx("suggestions","Suggestions",["chips","suggest","quick"]),Gx("raw-log","Raw log",["tool log","tools","calls","debug","log"]),{id:"ai.attach-files",label:"Attach files…",kind:"command",icon:"file",exec:"shell",visible:Vx,search:Sm},{id:"ai.attach-folder",label:"Choose a folder…",kind:"command",icon:"folder",exec:"shell",visible:{shell:["desktop"],minRole:"edit",facts:["native"]},search:Sm},{id:"ai.attach-assets",label:"From Assets",kind:"command",icon:"image",exec:"shell",visible:Vx,search:Sm},{id:"ai.attach-screenshot",label:"Paste a screenshot",kind:"command",exec:"shell",visible:Vx,search:Sm}]});var rf=(e,t,n={})=>({id:e,label:t,kind:"command",exec:"shell",...n}),X0e;var Z0e=qe(()=>{X0e=[rf("diag.sync","Sync"),rf("diag.server","Server"),rf("diag.ai","AI setup"),rf("diag.logs","Logs"),rf("diag.copy-logs","Copy logs",{search:{where:"Menu › Diagnostics › Logs"}}),{id:"diag.logs-show-in-finder",label:"Show logs in Finder",kind:"command",exec:"native",search:{where:"Menu › Diagnostics › Logs"}},rf("diag.ai-recheck","Check AI setup again"),rf("diag.address","Address"),rf("diag.process","Process"),rf("diag.project-folder","Project folder"),rf("sync.resync","Resync now",{visible:{minRole:"edit"},enabled:{facts:["online"]}}),rf("sync.download-all","Download all",{enabled:{facts:["online"]}})]});var J0e,XOt,cI,Q0e,mr=(e,t,n=J0e)=>({id:e,label:t,kind:"command",exec:"shell",visible:n,search:Q0e}),eSe;var tSe=qe(()=>{J0e={minRole:"edit"},XOt={minRole:"owner"},cI={minRole:"view"},Q0e={hidden:!0},eSe=[mr("ds.publish","Update canvases"),mr("ds.cancel-pending","Cancel"),mr("ds.keep-outside","Keep"),mr("ds.undo-outside","Undo"),mr("ds.pick","Use this"),mr("ds.canvas-update","Update"),mr("ds.canvas-leave","Keep this version"),mr("ds.trash-token","Move to Trash"),mr("ds.restore-token","Restore"),mr("ds.clear-token","Clear out",XOt),mr("ds.open","Design system",cI),mr("ds.set-theme-preview","Show the system in Light or Dark",cI),mr("ds.show-reach","Show where it lands",cI),mr("ds.review-update","Update for every canvas…"),mr("ds.go-to","Go to the design system",cI),mr("ds.instance-update","Update to the current look"),mr("ds.set-token","Change a token"),mr("ds.set-dark-follows","Dark follows Light"),mr("ds.set-master","Change a component"),mr("ds.make","Make a design system"),mr("ds.draft","Write a direction"),mr("ds.use-direction","Use this direction"),mr("ds.mix","Mix directions"),mr("ds.make-done","Finish the design system"),mr("ds.set-default","Use for new canvases"),mr("ds.rename","Rename…"),mr("ds.switch","Switch canvases to another system…"),mr("ds.preview","Preview in another system…",cI),mr("ds.convert","Turn into a Design system canvas"),mr("ds.convert-restore","Restore the system folder"),mr("ds.fix-contrast","Lighten to 4.5:1"),mr("ds.add-colour","Add it to the system"),mr("ds.use-nearest","Use the system colour"),mr("ds.check-system","Check the system"),{id:"ds.reveal-files",label:"Reveal in Finder",kind:"command",exec:"shell",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:Q0e},mr("ds.handoff-tokens","Hand off tokens"),{id:"ds.upgrade",label:"Bring it up to the schema",kind:"command",exec:"shell",visible:{minRole:"edit",facts:["dsUpgradeOffered"]},search:{keywords:["design system","schema","upgrade","bring up","conformant","tokens"]}},{id:"ds.library-link",label:"Link a team library",kind:"command",exec:"shell",visible:J0e,search:{keywords:["team","library","share","shared","brand kit","design system"]}},mr("ds.library-update","Update from the library"),mr("ds.library-unlink","Unlink the library")]});var nSe,oSe,rSe,Ln,Ni,s7,Ry=(e,t={})=>Tt(e,"selection",{when:s7,...t}),My=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},...n.length?{keys:n}:{}}),aSe;var sSe=qe(()=>{Jd();nSe={focus:["chrome"],facts:["canvasOpen"],notFacts:["rangeFocused"]},oSe={when:UD,inText:!1},rSe={focus:["chrome","timeline"],facts:["canvasOpen"],notFacts:["rangeFocused"]},Ln={minRole:"edit"},Ni=Xc,s7={...Ni,mode:["edit"],selection:["object"]},aSe=[{id:"edit.undo",label:"Undo",kind:"command",exec:"canvas",enabled:Ln,keys:[Tt("⌘Z","global",{inText:!1,when:nSe}),Tt("⌘Z","timeline",oSe),Tt("⌘Z","global",{when:Xc})],legacy:{menu:"Undo",sheet:"Undo / redo"}},{id:"edit.redo",label:"Redo",kind:"command",exec:"canvas",enabled:Ln,keys:[Tt("⇧⌘Z","global",{inText:!1,when:nSe}),Tt("⇧⌘Z","timeline",oSe),Tt("⌘Y","global",{inText:!1,alias:!0,when:rSe}),Tt("⇧⌘Y","global",{inText:!1,alias:!0,when:rSe}),Tt("⇧⌘Z","global",{when:Xc}),Tt("⌘Y","global",{alias:!0,when:Xc})],legacy:{menu:"Redo",sheet:"Undo / redo"}},{id:"edit.undo-history",label:"Undo history…",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{...Ln,facts:["canvasOpen"]}},{id:"edit.copy",label:"Copy",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Tt("⌘C","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.cut",label:"Cut",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Tt("⌘X","global",{inText:!0,when:{focus:Zd}})]},{id:"edit.paste",label:"Paste",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:Ln,keys:[Tt("⌘V","global",{inText:!0,when:{focus:Zd}})]},{id:"select.all",label:"Select all",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:[Tt("⌘A","selection",{when:Ni})]},{id:"select.none",label:"Deselect all",kind:"command",exec:"canvas",visible:{minRole:"comment"},legacy:{menu:"Deselect all"}},{id:"select.all-annotations",label:"Select all annotations",kind:"command",exec:"canvas",visible:Ln,keys:[Tt("⇧⌘A","global",{inText:!1,when:Xc})],legacy:{menu:"Select all annotations"}},{id:"object.duplicate",label:"Duplicate",kind:"command",exec:"canvas",keys:[Tt("⌘D","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.copy",label:"Copy",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Tt("⌘C","selection",{when:s7})],search:{hidden:!0},help:{group:"objects",order:901}},{id:"object.cut",label:"Cut",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},keys:[Tt("⌘X","selection",{when:s7})],search:{hidden:!0},help:{group:"objects",order:902}},{id:"artboard.copy",label:"Copy artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Tt("⌘C","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:903}},{id:"artboard.cut",label:"Cut artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Tt("⌘X","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:904}},{id:"canvas.paste",label:"Paste objects",kind:"command",exec:"canvas",enabled:Ln,search:{keywords:["paste","clipboard","objects","artboard"]}},{id:"edit.copy-properties",label:"Copy properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:Kr("⌥⌘C","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"edit.paste-properties",label:"Paste properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},enabled:Ln,keys:Kr("⌥⌘V","⇧","selection",{when:{...Ni,selection:["object"]}})},{id:"object.enter",label:"Go inside",kind:"command",exec:"canvas",keys:[Tt("↵","selection",{when:{...Ni,mode:["edit"],selection:["object"],notFacts:["toolArmed"]}})]},{id:"object.step-out",label:"Step out",kind:"command",exec:"canvas",enabled:{selection:["object"]}},{id:"object.select-child",label:"Select first child",kind:"command",exec:"canvas"},{id:"object.select-parent",label:"Select parent",kind:"command",exec:"canvas",keys:[Tt("⇧↵","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.select-next",label:"Select next object",kind:"command",exec:"canvas",keys:[Tt("tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.select-prev",label:"Select previous object",kind:"command",exec:"canvas",keys:[Tt("⇧tab","selection",{when:{...Ni,mode:["edit"]}})]},{id:"object.remove",label:"Remove",kind:"command",exec:"canvas",keys:[...Kr("⌫","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...Kr("⌦","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...["⌘⌫","⇧⌘⌫","⌥⌫","⌥⇧⌫","⌥⌘⌫","⌥⇧⌘⌫","⌘⌦","⇧⌘⌦","⌥⌦","⌥⇧⌦","⌥⌘⌦","⌥⇧⌘⌦"].map((e)=>Tt(e,"timeline",{inText:!1,alias:!0,when:{selection:["clip"],notFacts:["selectFocused"]}})),...Kr("⌫","⇧","selection",{when:{...Ni,selection:["object"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["object"]}})]},{id:"object.nudge",label:"Nudge",kind:"command",exec:"canvas",keys:["←","→","↑","↓"].flatMap((e)=>Kr(e,"⇧","selection",{when:{...Ni,selection:["object","artboard"]}}).map((t)=>t.chord==="←"||t.chord==="→"?{...t,when:{...t.when,notFacts:["selectionHasTakes"]}}:t))},My("object.frame","Frame selection",[Ry("⌥⌘G"),Ry("⌘G",{alias:!0})]),My("object.unframe","Remove frame",[Ry("⇧⌘G")]),My("object.bring-front","Bring to front",[Ry("⌘]")]),My("object.bring-forward","Bring forward",[Ry("]")]),My("object.send-backward","Send backward",[Ry("[")]),My("object.send-back","Send to back",[Ry("⌘[")]),My("object.lock","Lock",[Ry("⇧⌘L")]),My("object.hide","Hide",[]),{id:"object.select-matching",label:"Select matching",kind:"command",exec:"canvas",enabled:{selection:["object"]}},...[["align.left","Align left",["align","left","edge"]],["align.hcentre","Align horizontal centres",["align","centre","center","middle"]],["align.right","Align right",["align","right","edge"]],["align.top","Align top",["align","top","edge"]],["align.vmiddle","Align vertical middles",["align","middle","centre","center"]],["align.bottom","Align bottom",["align","bottom","edge"]],["distribute.h","Distribute horizontally",["distribute","space","even","gaps"]],["distribute.v","Distribute vertically",["distribute","space","even","gaps"]]].map(([e,t,n])=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object","artboard"]},search:{keywords:[...n]}})),{id:"object.rotate",label:"Rotate 90°",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["rotate","turn","angle"]}},{id:"object.place-freely",label:"Place freely",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["absolute","free","position","ignore auto layout","x y"]}},{id:"object.reorder-earlier",label:"Move earlier",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","earlier","before","left","up"]}},{id:"object.reorder-later",label:"Move later",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reorder","order","later","after","right","down"]}},{id:"object.reorder-to",label:"Move next to…",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"object.constrain",label:"Constraints",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.set-gap",label:"Set gap",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"layout.convert-to-absolute",label:"Convert children to absolute position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["remove auto layout","absolute","free","unlayout","convert layout"]}},{id:"object.insert-shape",label:"Draw a shape",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.draw",label:"Draw an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.insert-preset",label:"Add an artboard",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"object.insert-path",label:"Draw a path",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"path.edit",label:"Edit path points",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},...[["union","Union selection"],["subtract","Subtract selection"],["intersect","Intersect selection"],["exclude","Exclude selection"]].map(([e,t])=>({id:`shape.combine.${e}`,label:t,kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]}})),{id:"object.set-corner-radius",label:"Round a corner",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set",label:"Set text",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-language",label:"Set language",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.set-case",label:"Set case",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.use-style",label:"Use a style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"text.reset-style",label:"Reset text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","style","type","font","size"]}},{id:"component.insert",label:"Place a component",kind:"command",exec:"canvas",enabled:{...Ln},search:{hidden:!0}},{id:"image.place",label:"Place a picture",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"image.crop",label:"Crop",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["crop","fit","fill","tile","zoom","picture","image","photo"]}},{id:"image.replace",label:"Replace…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["replace","swap","picture","image","photo"]}},{id:"image.next-take",label:"Next take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Tt("→","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"image.prev-take",label:"Previous take",kind:"command",exec:"shell",enabled:{...Ln},keys:[Tt("←","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"photo.use-edit",label:"Edit this use of the photo",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"photo.apply-every-use",label:"Apply to every use…",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]},search:{keywords:["apply","every","use","all","photo","picture","image","look"]}},{id:"figma.make-editable",label:"Make editable",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"component.swap-variant",label:"Swap variant or component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{hidden:!0}},{id:"component.reset",label:"Reset to the main component",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["reset","override","instance","component","changes","master"]}},{id:"component.detach",label:"Detach instance",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","unlink","instance","component","plain","frame"]}},{id:"component.go-to-main",label:"Go to the main component",kind:"command",exec:"shell",enabled:{selection:["object"]},search:{hidden:!0}},{id:"text.detach-style",label:"Detach text style",kind:"command",exec:"canvas",enabled:{...Ln,selection:["object"]},search:{keywords:["detach","style","unlink","type","no style"]}},{id:"inspector.copy-css",label:"Copy CSS",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.copy-id",label:"Copy element id",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{selection:["object"]}},{id:"element.set-id",label:"Edit element id…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.stamp",label:"Name element",kind:"command",exec:"canvas",enabled:Ln,search:{hidden:!0}},{id:"artboard.resize",label:"Resize artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.add-width",label:"Add a width",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.tidy",label:"Tidy up artboards",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["tidy","row","even","gaps","arrange","line up"]}},{id:"artboard.duplicate",label:"Duplicate artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[Tt("⌘D","selection",{when:{...Ni,mode:["edit"],selection:["artboard"]}})],search:{keywords:["copy","clone","duplicate","artboard"]}},{id:"artboard.duplicate-at-width",label:"Duplicate at another width",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-safe-zones",label:"Set safe zones",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print",label:"Set paper, size, bleed or margin",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.convert-kind",label:"Change kind",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"warning.fix",label:"Fix what to check",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print-guides",label:"Print guides on this artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-guides",label:"Set layout guides",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.rename",label:"Rename artboard",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["name","label","artboard"]}},{id:"artboard.reset-position",label:"Reset artboard position",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},search:{keywords:["position","grid","back","artboard"]}},{id:"artboard.trash",label:"Move artboard to the trash",kind:"command",exec:"canvas",enabled:{...Ln,selection:["artboard"]},keys:[...Kr("⌫","⇧","selection",{when:{...Ni,selection:["artboard"]}}),...Kr("⌦","⇧","selection",{when:{...Ni,selection:["artboard"]}})],search:{keywords:["delete","remove","trash","artboard"]}},{id:"artboard.ask-ai",label:"Ask AI about this artboard",kind:"command",exec:"shell",enabled:{...Ln,selection:["artboard"]},search:{hidden:!0}},{id:"ai.ask-selection",label:"Ask AI about the selection",kind:"command",icon:"sparkle",exec:"canvas",visible:Ln,enabled:{...Ln,selection:["object"]},keys:[Tt("⌘/","selection",{when:{...Ni,mode:["edit"],selection:["object"]}})],search:{keywords:["ask ai","selection","in place","change these"]}},{id:"element.set-link",label:"Set link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"element.clear-link",label:"Clear link",kind:"command",exec:"shell",enabled:{...Ln,selection:["object"]}},{id:"inspector.copy-code",label:"Copy code",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{minRole:"comment",selection:["object"]}},{id:"inspector.edit-css-as-text",label:"Edit CSS as text…",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"element.detach",label:"Detach from shared component",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...Ln,selection:["object"]}},{id:"inspect.copy-code",label:"Copy code",kind:"command",exec:"shell",enabled:{minRole:"comment",mode:["preview","viewing"],selection:["object"]}},{id:"inspect.edit",label:"Edit",kind:"command",exec:"canvas",enabled:{...Ln,mode:["preview","viewing"],selection:["object"]},keys:[Tt("↵","selection",{when:{...Ni,mode:["preview","viewing"],selection:["object"]}})],search:{keywords:["inspect","switch","edit mode"]}},{id:"asset.relink",label:"Relink…",kind:"command",exec:"shell",enabled:{...Ln}}]});var iSe;var lSe=qe(()=>{Jd();iSe=[{id:"export.open",label:"Export…",kind:"command",icon:"download",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},keys:[Tt("⇧⌘E","global",{inText:!0})],legacy:{palette:"Export…",menu:"Export…",sheet:"Export…"}},{id:"export.copy-png",label:"Copy as PNG",kind:"command",icon:"image",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},keys:[Tt("⇧⌘C","selection",{inText:!1,when:{selection:["artboard","object","video-artboard","generated-image"]}})],search:{keywords:["clipboard","image","paste","png"]}},{id:"export.copy-command",label:"Copy export command",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},search:{where:"Export › Advanced",keywords:["terminal","cli","command line","script"]}},{id:"handoff.open",label:"Handoff to production",kind:"command",icon:"external",exec:"shell",visible:{minRole:"comment"},fromCanvas:!0,enabled:{minRole:"edit",facts:["canvasOpen"]},keys:[Tt("⇧⌘H","global",{inText:!0})],legacy:{palette:"Handoff to production",menu:"Handoff to production",sheet:"Handoff to production"}},{id:"export.rerun-last",label:"Export again",kind:"command",exec:"shell",visible:{minRole:"comment"},legacy:{sheet:"Export again"}},{id:"export.retry",label:"Retry",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"export.cancel",label:"Cancel",kind:"command",exec:"shell",visible:{minRole:"comment"},search:{hidden:!0}},{id:"share.open",label:"Share…",kind:"command",icon:"share",exec:"shell",visible:{minRole:"comment"},enabled:{facts:["canvasOpen"]},legacy:{menu:"Share link…"}},{id:"share.copy-link",label:"Copy link",kind:"command",icon:"link",exec:"shell",search:{where:"Share"},legacy:{palette:"Copy link"}},{id:"share.move-to-cloud",label:"Move to Maude Cloud…",kind:"command",exec:"shell",visible:{shell:["desktop"],notFacts:["linkedHub"]}},{id:"sync.connect-link",label:"Connect",kind:"command",exec:"shell",visible:{minRole:"edit",notFacts:["linkedHub"]},search:{hidden:!0,where:"Share"}},{id:"share.link-settings",label:"Link settings…",kind:"command",icon:"link",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["link","expires","anyone with the link","team only","turn off link"]}},{id:"share.invite",label:"Invite people…",kind:"command",icon:"people",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["invite","add people","collaborator","email"]}},{id:"share.set-role",label:"Change what someone can do…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["role","permission","can edit","can comment","can view","make owner"]}},{id:"share.remove",label:"Remove someone…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["remove","revoke","access"]}},{id:"share.resend",label:"Resend an invite…",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{keywords:["resend","invitation","pending"]}},{id:"share.ask-to-edit",label:"Ask to edit",kind:"command",exec:"shell",visible:{minRole:"view",facts:["linkedHub"]},search:{keywords:["ask to edit","request access","edit access","permission"]}},{id:"share.request-approve",label:"Let them edit",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}},{id:"share.request-decline",label:"Not now",kind:"command",exec:"shell",visible:{minRole:"owner",facts:["linkedHub"]},search:{hidden:!0}}]});var Ai,cSe;var uSe=qe(()=>{Ai={hidden:!0},cSe=[{id:"history.filter",label:"Filter versions",kind:"command",exec:"shell",search:Ai},{id:"history.view-version",label:"View this version",kind:"command",exec:"shell",search:Ai},{id:"history.object",label:"Version history of this object",kind:"command",exec:"shell",search:Ai},{id:"history.compare",label:"Compare",kind:"command",exec:"shell",search:Ai},{id:"history.compare-pictures",label:"Compare pictures",kind:"command",exec:"shell",search:Ai},{id:"history.name",label:"Name this version…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore",label:"Restore this version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-artboard",label:"Restore only this artboard",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.restore-object",label:"Restore this object",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.go-back",label:"Go back to the last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.branch-switch",label:"Switch branch",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.new-branch",label:"New branch…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.fetch",label:"Fetch",kind:"command",exec:"shell",search:Ai},{id:"history.publish",label:"Publish",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.save-with-note",label:"Save a version with a note…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.open-pr",label:"Add to main · opens a pull request",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.discard-file",label:"Discard changes to a file",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.continue-draft",label:"Continue on your draft",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai},{id:"history.undo-action",label:"Undo this change",kind:"command",exec:"shell",visible:{minRole:"edit"},search:Ai}]});var Jc,dSe;var pSe=qe(()=>{Jd();Jc={shell:["desktop"]},dSe=[{id:"project.new",label:"New project…",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Tt("⇧⌘N","global",{inText:!0,when:Jc})],native:{menu:"File",order:2}},{id:"project.pull-copy",label:"Pull a local copy…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.share-github",label:"Share on GitHub…",kind:"command",exec:"shell",visible:{...Jc,minRole:"comment"}},{id:"project.open",label:"Open project…",kind:"command",exec:"native",visible:{minRole:"comment"},keys:[Tt("⌘O","global",{inText:!0,when:Jc})],help:{group:"finding",order:20},native:{menu:"File",order:3}},{id:"home.open",label:"Show Home",kind:"command",exec:"native",keys:[Tt("⌘T","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:30},native:{menu:"File",order:4}},{id:"home.search",label:"Search",kind:"command",icon:"search",exec:"shell",visible:{shell:["home"]},search:{hidden:!0},keys:[Tt("⌘K","global",{inText:!0,when:{shell:["home"]}})]},{id:"cloud.open-remote",label:"Open",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"home.signin",label:"Sign in to Maude Cloud",kind:"command",icon:"cloud",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.join",label:"Join",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"invite.leave",label:"Leave",kind:"command",exec:"shell",visible:{shell:["home"]},search:{hidden:!0}},{id:"hub.connect",label:"Connect to your own hub…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["hub","team server","self-hosted","address","sign in"]}},{id:"project.open-github",label:"Open a folder or a GitHub project…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["github","folder","repo","clone","open"]}},{id:"ai.connect",label:"Connect AI…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["api key","claude","anthropic","sign in","connect ai"]}},{id:"cli.install",label:"Install the maude command…",kind:"command",exec:"shell",visible:{shell:["home"]},search:{keywords:["terminal","cli","command","plugin","claude code","path"]}},{id:"nav.home",label:"Back to Home",kind:"command",icon:"home",exec:"native",visible:{shell:["desktop","cloud"]}},{id:"tab.close",label:"Close tab",kind:"command",exec:"native",keys:[Tt("⌘W","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:40},native:{menu:"File",order:5}},{id:"tab.next",label:"Show next tab",kind:"command",exec:"native",keys:[Tt("⌃tab","global",{inText:!0,when:Jc}),Tt("⇧⌘]","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:10},native:{menu:"Window",order:1}},{id:"tab.prev",label:"Show previous tab",kind:"command",exec:"native",keys:[Tt("⌃⇧tab","global",{inText:!0,when:Jc}),Tt("⇧⌘[","global",{inText:!0,alias:!0,when:Jc})],help:{group:"tabs-windows",order:20},native:{menu:"Window",order:2}},{id:"tab.overview",label:"Show all tabs",kind:"command",exec:"native",keys:[Tt("⇧⌘\\","global",{inText:!0,when:Jc})],help:{group:"tabs-windows",order:25},native:{menu:"Window",order:3}},{id:"tab.rename",label:"Rename…",kind:"command",exec:"native",visible:Jc},...[1,2,3,4,5,6,7,8].map((e)=>({id:`tab.select-${e}`,label:`Show tab ${e}`,kind:"command",exec:"native",keys:[Tt(`⌘${e}`,"global",{inText:!0,when:Jc})],native:{menu:"Window",order:2+e}})),{id:"tab.select-last",label:"Show last tab",kind:"command",exec:"native",keys:[Tt("⌘9","global",{inText:!0,when:Jc})],native:{menu:"Window",order:11}},{id:"app.check-updates",label:"Check for updates…",kind:"command",exec:"native",visible:{shell:["desktop"]},native:{menu:"App",order:1}}]});var i7,l7,fSe;var mSe=qe(()=>{i7={facts:["canvasOpen"]},l7={hidden:!0},fSe=[{id:"presence.follow",label:"Follow",kind:"command",icon:"eye",exec:"canvas",visible:i7,search:l7},{id:"presence.go-to",label:"Go to",kind:"command",exec:"canvas",visible:i7,search:l7},{id:"presence.bring-everyone",label:"Bring everyone here",kind:"command",icon:"share",exec:"canvas",visible:{minRole:"edit",facts:["canvasOpen"]},search:{keywords:["summon","spotlight","follow me","gather","everyone","people"]}},{id:"presence.stop",label:"Stop following",kind:"command",exec:"canvas",visible:i7,search:l7}]});var hSe;var gSe=qe(()=>{Jd();hSe=[{id:"search.open",label:"Search",kind:"command",icon:"search",exec:"shell",fromCanvas:!0,keys:[Tt("⌘K","global",{inText:!0,when:{notShell:["home"]}}),Tt("⇧⌘K","global",{inText:!0,alias:!0,when:{focus:Zd,notShell:["home"]}})],help:{group:"finding",order:10},legacy:{sheet:"Command palette"}},{id:"canvases.search",label:"Search canvases",kind:"command",exec:"shell",keys:[Tt("/","global",{inText:!1,when:lI})],legacy:{sheet:"Search files"}},{id:"canvases.find",label:"Find a canvas",kind:"command",exec:"shell",keys:Kr("⌘F","⇧","global",{inText:!1,when:lI}),legacy:{sheet:"Search files"}},{id:"canvases.pin",label:"Pin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.unpin",label:"Unpin canvas",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]}},{id:"canvases.sort",label:"Sort canvases",kind:"command",exec:"shell"},{id:"canvases.filter-kind",label:"Filter canvases by kind",kind:"command",exec:"shell",search:{where:"Canvases panel"}},{id:"canvases.refresh",label:"Refresh canvases",kind:"command",exec:"shell",keys:[Tt("⇧⌘R","global",{inText:!0,when:{focus:Zd}})]}]});var ZOt,uI,Ti=(e,t,n)=>({id:e,label:t,kind:"command",...n?{icon:n}:{},exec:"shell",visible:ZOt,search:uI}),bSe;var ySe=qe(()=>{ZOt={minRole:"edit"},uI={hidden:!0},bSe=[Ti("sync.conflict.keep-mine","Keep yours"),Ti("sync.conflict.keep-theirs","Keep theirs"),Ti("sync.conflict.keep-both","Keep both","duplicate"),Ti("save.retry-held","Retry saving"),Ti("sync.keep-mine","Keep mine"),Ti("sync.use-theirs","Use theirs"),Ti("sync.keep-both","Keep both","duplicate"),{id:"sync.compare",label:"Compare",kind:"command",exec:"shell",search:uI},Ti("sync.publish-ai-edit","Publish"),Ti("sync.discard-ai-edit","Discard"),Ti("sync.cancel-transfer","Cancel the transfer"),Ti("sync.allow-code","Allow shared code…"),Ti("sync.stop-code","Stop allowing shared code…"),Ti("sync.ignore-folder","Don’t sync this folder"),Ti("sync.sync-folder-again","Sync it again"),Ti("sync.delete-held-on-hub","Move to the hub’s trash too…"),Ti("sync.keep-held-on-hub","Keep on the hub"),Ti("sync.remove-held-here","Remove here too"),Ti("sync.keep-held-here","Keep them here"),Ti("sync.adopt-as-code","Adopt as code"),{id:"sync.open-canvas-folders",label:"Open canvas folders",kind:"command",icon:"folder",exec:"native",visible:{shell:["desktop"],facts:["native"],minRole:"edit"},search:uI},{id:"sync.get-latest",label:"Get latest",kind:"command",exec:"shell",search:uI},{id:"sync.sign-in-again",label:"Sign in again",kind:"command",exec:"shell",search:uI}]});var Ki,c7=(e,t,n)=>({id:e,label:t,kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0,where:n,note:"a pointer gesture on the timeline"}}),JOt,vSe;var wSe=qe(()=>{Jd();Ki={when:UD,inText:!1},JOt=[["comment","Comment on clip","comment"],["generate","Generate this clip","edit"],["adjust","Adjust the clip","edit"],["hide","Hide clip","edit"],["show","Show clip","edit"],["remove","Remove clip","edit"],["replace","Replace the clip’s media","edit"],["mute","Mute clip","edit"],["unmute","Unmute clip","edit"],["detach-audio","Detach audio","edit"],["to-overlay","Move to overlay layer","edit"],["to-storyline","Move to storyline","edit"],["layer-up","Move layer up","edit"],["layer-down","Move layer down","edit"],["earlier","Move clip earlier","edit"],["later","Move clip later","edit"],["replace-layer","Replace a layer’s media","edit"]],vSe=[{id:"timeline.play",label:"Play / pause",kind:"toggle",exec:"shell",keys:Kr("Space","⌥⇧⌘","timeline",Ki)},{id:"timeline.step",label:"Step a frame",kind:"command",exec:"shell",keys:[...Kr("←","⌥⇧⌘","timeline",Ki),...Kr("→","⌥⇧⌘","timeline",Ki)]},{id:"timeline.to-start",label:"Go to start",kind:"command",exec:"shell",keys:Kr("Home","⌥⇧⌘","timeline",Ki)},{id:"timeline.to-end",label:"Go to end",kind:"command",exec:"shell",keys:Kr("End","⌥⇧⌘","timeline",Ki)},{id:"timeline.prev-keyframe",label:"Previous keyframe",kind:"command",exec:"shell",keys:[Tt(",","timeline",Ki)]},{id:"timeline.next-keyframe",label:"Next keyframe",kind:"command",exec:"shell",keys:[Tt(".","timeline",Ki),Tt("⌘.","timeline",{...Ki,alias:!0})]},{id:"timeline.split",label:"Split at playhead",kind:"command",exec:"shell",keys:[Tt("S","timeline",Ki),...Kr("⌘B","⇧","timeline",Ki),Tt("⌘B","global",{...Ki,alias:!0,when:{facts:["timelineVisible"]}})]},{id:"timeline.loop-in",label:"Loop starts here",kind:"command",exec:"shell",keys:[Tt("I","timeline",Ki)]},{id:"timeline.loop-out",label:"Loop ends here",kind:"command",exec:"shell",keys:[Tt("O","timeline",Ki)]},{id:"timeline.loop-clear",label:"Clear the loop range",kind:"command",exec:"shell"},{id:"timeline.zoom-in",label:"Zoom timeline in",kind:"command",exec:"shell",keys:[Tt("⌘=","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}}),Tt("⌘+","timeline",{...Ki,alias:!0,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-out",label:"Zoom timeline out",kind:"command",exec:"shell",keys:[Tt("⌘−","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-fit",label:"Fit the timeline",kind:"command",exec:"shell",keys:[Tt("0","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.expand",label:"Expand the timeline",kind:"command",exec:"shell"},{id:"timeline.compact",label:"Make the timeline compact",kind:"command",exec:"shell"},{id:"timeline.add-track",label:"Add a track",kind:"command",exec:"shell",search:{where:"Timeline › Advanced",keywords:["track","video 2","music 2","layer","lane"]}},{id:"timeline.fold-track",label:"Fold a track",kind:"command",exec:"shell",search:{where:"Timeline",keywords:["fold","collapse","hide","track","text","graphics","lane"]}},{id:"timeline.marker.add",label:"Add a marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","chapter","bookmark","moment","name"]}},{id:"timeline.marker.remove",label:"Remove the marker here",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{where:"Timeline › Markers",keywords:["marker","flag","delete","remove"]}},{id:"timeline.marker.jump",label:"Jump to the next marker",kind:"command",exec:"shell",search:{where:"Timeline › Markers",keywords:["marker","next","previous","jump","chapter","flag"]}},{id:"timeline.comment-mode",label:"Comment on the timeline",kind:"toggle",exec:"shell",keys:Kr("C","⇧","timeline",{...Ki,when:{notFacts:["selectFocused","rangeFocused"]}})},c7("timeline.trim","Trim a clip","Timeline › Drag a clip’s edge"),c7("timeline.move-clip","Move a clip","Timeline › Drag a clip"),c7("timeline.add-clips","Add footage to the video","Timeline › Drop footage"),...JOt.map(([e,t,n])=>({id:`timeline.clip-menu.${e}`,label:t,kind:"command",exec:"shell",enabled:{minRole:n},search:{hidden:!0,where:"Timeline › Right-click a clip",note:"the clip menu runs it"}}))]});function QOt(e,t){if(e==="present")return t?.kind==="artboards"?"present-artboards":"present-canvas";return e}function fc(e,t,n){return eLt[e][QOt(t,n)]}function qx(e,t,n){if(!e)return t==="measure"||t==="comment-pins"||t==="object-tools";return tLt[t](e,n)}var Qd=(e,t,n,o,r)=>Object.freeze({edit:e,preview:t,"present-artboards":n,"present-canvas":o,viewing:r}),eLt,tLt,xSe=(e,t)=>fc("left-panels",e,t)==="folded";var _m=qe(()=>{eLt=Object.freeze({clicks:Qd("tool","live","next-artboard","pan-zoom","specs"),toolbar:Qd("edit","preview","none","none","viewing"),annotations:Qd("quiet","drawn","hidden","hidden","read-only"),"comment-pins":Qd("shown","shown","hidden","hidden","shown"),measure:Qd("on","on","off","off","on"),"ai-changes":Qd("live","live","held","live-unmarked","live"),"left-panels":Qd("shown","shown","hidden","hidden","shown"),"ai-panel":Qd("shown","shown","hidden","hidden","none"),"share-cluster":Qd("full","full","hidden","hidden","full-access"),inspect:Qd("inspector","panel-on-cmd-click","hidden","hidden","panel-on-click"),"project-menu":Qd("pill","pill","esc-first","esc-first","pill"),esc:Qd("steps-back","steps-back","settles-back","same-view","deselect")});tLt=Object.freeze({measure:(e,t)=>fc("measure",e,t)==="on","inspect-panel":(e,t)=>fc("inspect",e,t).startsWith("panel"),"comment-pins":(e,t)=>fc("comment-pins",e,t)==="shown","object-tools":(e,t)=>fc("clicks",e,t)==="tool","live-design":(e,t)=>fc("clicks",e,t)==="live","annotations-editable":(e,t)=>fc("annotations",e,t)==="drawn",chrome:(e,t)=>fc("share-cluster",e,t)!=="hidden"})});function Yx(e,t){if(e==="edit"&&!t.edit)return"viewing";if(e==="viewing"&&t.edit)return"edit";return e}function NSe(e){if(e.edit||e.annotate)return"edit";return e.comment?"comment":"view"}function M1(e,t){for(let n of[e,...ASe[e]]){let o=af[n].slots.find((r)=>r.key===t);if(o)return{mode:n,slot:o}}return null}function m7(e,t,n,o){let r=M1(e,t);if(!r||r.slot.pending)return null;let{slot:a}=r,s=!!a.panel&&(a.tool===null||!!a.panelFirst),l=a.insert||a.panelFirst?null:a.tips&&o&&a.tips.includes(o)?o:a.tool,c=NSe(n);if(HD[c]<HD[a.minRole]||r.mode==="edit"&&!n.edit){if(l)return{kind:"deny",mode:r.mode,tool:l};return s&&a.panel?{kind:"deny",mode:r.mode,panel:a.panel}:{kind:"deny",mode:r.mode}}if(r.mode!==e){let u={kind:"request",mode:r.mode};if(l)u.tool=l;if(s&&a.panel)u.panel=a.panel;return u}if(a.insert)return{kind:"insert",insert:a.insert};if(l)return{kind:"arm",tool:l};return a.panel?{kind:"panel",panel:a.panel}:null}function TSe(e){let t=[];for(let n of[e,...ASe[e]])for(let o of af[n].slots){if(!o.key||t.includes(o.key))continue;if(M1(e,o.key)?.slot===o&&!o.pending)t.push(o.key)}return t}function ISe(e,t,n){if(!_Se(t))return!1;let o=af[e].slots.find((r)=>r.tool===t||!!r.tips?.includes(t)||!!r.more?.some((a)=>a.tool===t));return!o||HD[NSe(n)]>=HD[o.minRole]}function kSe(e,t){return af[e].slots.some((n)=>n.tool===t||n.tool!==null&&rLt[n.tool]===t||!!n.tips?.includes(t)||!!n.lights?.includes(t)||!!n.more?.some((o)=>o.tool===t))}function ESe(e,t,n){if(!_Se(e)||aLt.has(e))return null;if(kSe(n,e))return n;if(e==="move")return t.edit?"edit":"viewing";for(let o of["preview","edit"])if(kSe(o,e))return o;return null}function dI(e){let t=e&&typeof e==="object"?e:{};if(t.kind!=="artboards")return{kind:"canvas"};if(typeof t.from==="string"&&t.from&&t.from.length<=200)return t.only==="formats"&&t.from!=="start"?{kind:"artboards",from:t.from,only:"formats"}:{kind:"artboards",from:t.from};return{kind:"artboards",from:"start"}}var u7,SSe,d7,nLt,p7,sOn,oLt,_Se=(e)=>typeof e==="string"&&oLt.has(e),Kx,R1,CSe=(e)=>e.edit?"edit":"viewing",f7=(e)=>e.edit?"edit":"preview",iOn,lOn,HD,Na=(e)=>Object.freeze(e),af,rLt,ASe,aLt;var sf=qe(()=>{_m();u7=["edit","viewing","preview","present"],SSe=["artboards","canvas"],d7=["browse","move","hand","comment","pen","highlighter","eraser","shape","sticky","section","arrow","text"],nLt=["inspect","frame","el-shape","el-pen","el-text","image","component","line","ellipse","polygon","crop","slice","pointer"],p7=[...d7,...nLt],sOn=new Set(u7),oLt=new Set(p7),Kx=Object.freeze({edit:!1,annotate:!1,comment:!1}),R1=Object.freeze({edit:!0,annotate:!0,comment:!0});iOn=Object.freeze({edit:"edit",viewing:"edit",preview:"preview",present:"preview"}),lOn=Object.freeze({edit:"move",viewing:"inspect",preview:"browse",present:"browse"}),HD=Object.freeze({view:0,comment:1,edit:2});af=Object.freeze({edit:Object.freeze({rest:"move",slots:Object.freeze([Na({key:"V",label:"Select",tool:"move",minRole:"edit"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"edit"}),Na({key:"F",label:"Artboard / Frame",tool:"frame",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"el-shape",minRole:"edit"}),Na({key:"P",label:"Pen",tool:"el-pen",minRole:"edit"}),Na({key:"T",label:"Text",tool:"el-text",minRole:"edit"}),Na({key:"I",label:"Image",tool:"image",minRole:"edit",panel:"image",panelFirst:!0}),Na({key:"⇧I",label:"Component",tool:null,minRole:"edit",panel:"components"}),Na({key:"",label:"More",tool:null,minRole:"edit",popover:"more",more:Object.freeze([Na({key:"",label:"Line",tool:"line",minRole:"edit"}),Na({key:"",label:"Ellipse",tool:"ellipse",minRole:"edit"}),Na({key:"",label:"Polygon",tool:"polygon",minRole:"edit"}),Na({key:"",label:"Crop",tool:"crop",minRole:"edit"}),Na({key:"",label:"Export area",tool:"slice",minRole:"edit"})])})])}),preview:Object.freeze({rest:"browse",slots:Object.freeze([Na({key:"V",label:"Select",tool:"browse",minRole:"view"}),Na({key:"H",label:"Hand",tool:"hand",minRole:"view"}),Na({key:"N",label:"Sticky",tool:"sticky",minRole:"edit",popover:"sticky-colours"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"}),Na({key:"M",label:"Marker",tool:"pen",minRole:"edit",popover:"marker-tips",tips:["pen","highlighter","eraser"]}),Na({key:"A",label:"Arrow",tool:"arrow",minRole:"edit"}),Na({key:"R",label:"Shape",tool:"shape",minRole:"edit",popover:"shape-kinds"}),Na({key:"T",label:"Text",tool:"text",minRole:"edit"}),Na({key:"E",label:"Stickers",tool:null,minRole:"edit",panel:"stickers"}),Na({key:"S",label:"Section",tool:"section",minRole:"edit",panel:"templates"})])}),viewing:Object.freeze({rest:"inspect",slots:Object.freeze([Na({key:"H",label:"Hand",tool:"inspect",minRole:"view"}),Na({key:"C",label:"Comment",tool:"comment",minRole:"comment"})])}),present:Object.freeze({rest:"browse",hidden:!0,slots:Object.freeze([Na({key:"L",label:"Pointer",tool:"pointer",minRole:"view"})])})}),rLt=Object.freeze({}),ASe=Object.freeze({edit:["preview"],preview:["edit"],viewing:["preview","edit"],present:[]});aLt=new Set(["hand"])});function $Se(e){if(e.tool==="move")return"tool.select";return`tool.${e.tool??e.panel??e.label.toLowerCase()}`}function cLt(){let e=new Map,t=0;for(let n of MSe)for(let o of af[n].slots){if(o.pending||o.more||!o.key)continue;let r=$Se(o);if(!e.has(r))e.set(r,{slot:o,home:n,order:t++,keys:new Map})}for(let n of MSe)for(let o of TSe(n)){let r=M1(n,o);if(!r)continue;let a=e.get($Se(r.slot));if(!a)continue;let s=a.keys.get(o)??[];s.push(n),a.keys.set(o,s)}return[...e.entries()].map(([n,o])=>{let r=[...o.keys.entries()].map(([s,l])=>({chord:E1(s),layer:"tools",when:{focus:lLt,mode:l}})),a=iLt[o.home];return{id:n,label:sLt[n]??o.slot.label,kind:"tool",exec:"canvas",keys:r,...a?{help:{group:a,order:o.order}}:{},...RSe[n]?{legacy:{menu:RSe[n]}}:{}}})}var sLt,RSe,iLt,lLt,MSe,Oy=(e,t,n)=>({id:e,label:t,kind:"tool",exec:"canvas",keys:[],...n?{legacy:{menu:n}}:{}}),OSe;var LSe=qe(()=>{sf();of();Jd();sLt={"tool.browse":"Select","tool.inspect":"Inspect","tool.pen":"Marker"},RSe={"tool.select":"Select","tool.hand":"Hand","tool.comment":"Comment","tool.pen":"Pen","tool.arrow":"Arrow","tool.sticky":"Sticky","tool.text":"Text","tool.browse":"Browse (interact)"},iLt={edit:"edit-tools",preview:"preview-tools"},lLt=["canvas","chrome"],MSe=["edit","preview","viewing","present"];OSe=[...cLt(),{id:"tool.hand-hold",label:"Hand (hold Space)",kind:"tool",exec:"canvas",keys:Kr("Space","⌥⇧⌘","tools",{hold:!0,when:Xc})},{id:"tool.create-default",label:"Add one at its default size",kind:"command",exec:"canvas",enabled:{minRole:"edit"},keys:[Tt("↵","tools",{when:{focus:["canvas"],mode:["edit","preview"],facts:["toolArmed"]}})],search:{hidden:!0}},Oy("tool.highlighter","Highlighter"),Oy("tool.eraser","Eraser","Eraser"),Oy("tool.rect","Rectangle","Rect"),Oy("tool.ellipse","Ellipse","Ellipse"),Oy("tool.line","Line"),Oy("tool.polygon","Polygon"),Oy("tool.slice","Export area"),Oy("tool.crop","Crop")]});var PSe;var DSe=qe(()=>{Jd();PSe=[{id:"ui.step-back",label:"Step back",kind:"command",exec:"shell",keys:[...Kr("esc","⌥⇧⌘","global",{inText:!0,when:{focus:Zd}}),...Kr("esc","⌥⇧⌘","selection",{inText:!1,when:Xc})],legacy:{sheet:"Deselect · close menu"}},{id:"ui.cycle-region",label:"Move between the panels and the canvas",kind:"command",exec:"shell",fromCanvas:!0,keys:[Tt("F6","global",{inText:!0}),Tt("⇧F6","global",{inText:!0,alias:!0})],search:{keywords:["focus","panels","canvas","keyboard","f6"]}}]});var uLt,dLt=(e)=>({hidden:!0,where:e,note:"bound by its S7 surface"}),Ua=(e,t,n,o="edit")=>({id:e,label:t,kind:"command",exec:"shell",enabled:o==="edit"?uLt:{minRole:o},search:dLt(n)}),zSe;var FSe=qe(()=>{uLt={minRole:"edit"},zSe=[{...Ua("video.captions.add","Captions from speech","Timeline › Captions"),search:{where:"Timeline › Captions",keywords:["captions","subtitles","speech","transcribe"]}},{...Ua("video.transcript.open","Transcript","Timeline › Transcript","comment"),search:{where:"Timeline › Transcript",keywords:["transcript","words","captions","text"]}},Ua("video.captions.style","Caption style","Inspector › Captions"),Ua("video.captions.fix-word","Fix a caption word","Transcript panel"),Ua("video.captions.export","Export captions","Export sheet","comment"),Ua("video.transcript.cut","Cut these words","Transcript panel"),Ua("video.transcript.find-speech","Find speech","Transcript panel"),Ua("video.music.beats","Find the beat","Inspector › Music"),Ua("video.music.duck","Lower under speech","Inspector › Music"),Ua("video.music.volume","Music volume","Inspector › Music"),Ua("video.cut-to-beat","Cut to the beat","Inspector › Music"),Ua("video.snap","Snap to the beat","Timeline"),{...Ua("video.reframe","Re-frame","Timeline › Re-frame"),search:{where:"Timeline › Re-frame",keywords:["reframe","crop","framing","vertical","focus","window"]}},{...Ua("video.frame-handle","Move and zoom on the canvas","Timeline › Clip"),search:{where:"Timeline › Clip",keywords:["move","zoom","pan","crop","position","scale","drag","video","framing"]}},{...Ua("video.poster.set","Set as poster frame","Timeline"),search:{where:"Timeline › Poster",keywords:["poster","cover","thumbnail"]}},{...Ua("video.format.add","Add a format","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["format","size","16:9","9:16","1:1","reels","linked","aspect"]}},{...Ua("video.format.unlink","Make an unlinked copy","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["unlink","copy","own cut","fork","format"]}},{...Ua("video.allow-longer","Allow longer videos","Timeline › Advanced"),search:{where:"Timeline › Advanced",keywords:["longer","length","limit","2 min","frames"]}},Ua("video.easing.set","Keyframe curve","Timeline › Advanced"),{...Ua("video.take.swap","Swap a take","Timeline › Other takes"),search:{where:"Timeline › Other takes",keywords:["take","other takes","swap","alternate"]}},Ua("video.fit","Fit the picture","Inspector › Clip"),Ua("video.place","Place the title","Inspector › Formats"),Ua("video.title.motion","Title motion","Inspector › Title"),Ua("video.title.style","Title font and colour","Inspector › Title"),Ua("video.transition.set","Set the transition","Timeline › Join")]});var WD="switch to Canvas first",BSe;var jSe=qe(()=>{Jd();BSe=[{id:"mode.preview",label:"Preview",kind:"toggle",icon:"eye",exec:"canvas",keys:[Tt("⌥⌘P","global",{inText:!0,when:{mode:["edit","preview","viewing"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["mode","live","interact","edit"],note:WD}},{id:"preview.back",label:"Back",kind:"command",exec:"shell",enabled:{mode:["preview"]},search:{keywords:["link","previous","return","canvas"]}},{id:"view.panels",label:"Hide panels",kind:"toggle",exec:"shell",keys:[Tt("⌘\\","global",{inText:!0})],fromCanvas:!0,legacy:{menu:"Hide panels",sheet:"Hide / show panels"}},{id:"view.pin-panels",label:"Pin panels to the side",kind:"toggle",exec:"shell",legacy:{menu:"Pin panels to the side"}},{id:"view.hidden-files",label:"Hidden files",kind:"toggle",exec:"shell",legacy:{menu:"Show hidden files",sheet:"Hidden files"}},{id:"canvases.show-file-names",label:"Show file names",kind:"toggle",exec:"shell",search:{keywords:["file","names","tsx","files"],where:"Canvases › Advanced"}},{id:"layers.show-tags",label:"Show tags and ids",kind:"toggle",exec:"shell",search:{keywords:["tags","ids","layers","html"],where:"Layers panel › Advanced"}},{id:"layers.select-by-selector",label:"Select by selector",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{keywords:["selector","css","query","select","matching"],where:"Layers panel › Advanced"}},{id:"layers.filter-kind",label:"Filter layers by kind",kind:"command",exec:"shell",enabled:{facts:["canvasOpen"]},search:{where:"Layers panel"}},{id:"view.design-system",label:"Design system",kind:"toggle",icon:"sliders",exec:"shell",legacy:{palette:"Design system",sheet:"Design system view"}},{id:"view.assets",label:"Assets",kind:"toggle",icon:"image",exec:"shell"},{id:"assets.place",label:"Place",kind:"command",icon:"image",exec:"shell",enabled:{minRole:"edit"},keys:[Tt("↵","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.add",label:"Add files…",kind:"command",icon:"plus",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.add-link",label:"Add from a link…",kind:"command",icon:"link",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["link","url","web","download","import","picture","video"]}},{id:"assets.generate",label:"Generate an image…",kind:"command",icon:"sparkle",exec:"shell",enabled:{minRole:"edit"},search:{keywords:["generate","ai","image","picture","takes"]}},{id:"assets.details",label:"Show details",kind:"command",exec:"shell",keys:[Tt("⌘I","selection",{when:{focus:["chrome","timeline"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.spotlight",label:"View larger",kind:"command",icon:"image",exec:"shell",keys:[Tt("Space","selection",{when:{focus:["chrome"],facts:["assetTileSelected"]}})],search:{hidden:!0}},{id:"assets.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.rename",label:"Rename…",kind:"command",exec:"shell",enabled:{minRole:"edit"},search:{hidden:!0}},{id:"assets.describe",label:"Search in pictures",kind:"toggle",icon:"search",exec:"shell",search:{keywords:["describe","pictures","photos","what is in","ai","search"]}},{id:"assets.describe-stop",label:"Stop describing pictures",kind:"command",exec:"shell",search:{hidden:!0}},{id:"view.layers-panel",label:"Layers as a panel",kind:"toggle",exec:"shell"},{id:"view.trash",label:"Trash",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"}},{id:"trash.restore",label:"Restore",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"edit"},search:{hidden:!0}},{id:"trash.clear",label:"Clear out the trash…",kind:"command",icon:"trash",exec:"shell",visible:{minRole:"owner"}},{id:"view.comments",label:"Comments",kind:"toggle",icon:"resolve",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌘M","global",{inText:!0})],legacy:{palette:"Toggle comments panel",menu:"Comments Sidebar",sheet:"Comments sidebar"}},{id:"comments.filter-open",label:"Show open comments",kind:"command",exec:"shell"},{id:"comments.filter-mine",label:"Show my comments",kind:"command",exec:"shell"},{id:"comments.filter-resolved",label:"Show resolved comments",kind:"command",exec:"shell"},{id:"comments.filter-all",label:"Show all comments",kind:"command",exec:"shell"},{id:"comments.open-thread",label:"Open comment thread",kind:"command",exec:"shell"},{id:"view.exports",label:"Exports",kind:"toggle",icon:"export",exec:"shell",visible:{minRole:"comment"}},{id:"history.open",label:"Version history",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Tt("⌥⌘H","global",{inText:!0})],help:{group:"finding",order:30},legacy:{menu:"Changes"}},{id:"view.inspector",label:"Inspector",kind:"toggle",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌘I","global",{inText:!0})],legacy:{palette:"Open inspector",menu:"Inspector",sheet:"Inspector"}},{id:"view.timeline-keep-open",label:"Keep timeline open",kind:"toggle",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌘T","global",{inText:!0})],legacy:{menu:"Timeline"}},{id:"view.annotations",label:"Annotations",kind:"toggle",exec:"canvas",keys:[Tt("⇧P","global",{inText:!1,when:Xc})],legacy:{menu:"Annotations",sheet:"Annotations"}},{id:"view.layers",label:"Layers",kind:"toggle",exec:"shell",legacy:{menu:"Layers"}},{id:"view.inspector-on-select",label:"Open inspector on select",kind:"toggle",exec:"shell",legacy:{menu:"Auto-open Inspector on select"}},{id:"view.minimap",label:"Minimap",kind:"toggle",exec:"shell",legacy:{menu:"Minimap"}},{id:"view.zoom-controls",label:"Zoom controls",kind:"toggle",exec:"shell",legacy:{menu:"Zoom controls"}},{id:"view.print-guides",label:"Print guides",kind:"toggle",exec:"shell",legacy:{menu:"Show print guides"}},{id:"present.from-selection",label:"Present",kind:"command",exec:"shell",fromCanvas:!0,keys:[Tt("⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","artboards","selected"],note:WD}},{id:"present.from-start",label:"Present from the start",kind:"command",exec:"shell",fromCanvas:!0,keys:[Tt("⇧⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],enabled:{notFacts:["pagesView"]},search:{keywords:["presentation","slideshow","beginning","first"],note:WD}},{id:"present.next",label:"Next artboard",kind:"command",exec:"shell",keys:[Tt("→","global",{when:{mode:["present"]}}),Tt("Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","advance","forward"]}},{id:"present.prev",label:"Previous artboard",kind:"command",exec:"shell",keys:[Tt("←","global",{when:{mode:["present"]}}),Tt("⇧Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","back","backward"]}},{id:"present.canvas",label:"Present the canvas",kind:"toggle",exec:"shell",enabled:{notFacts:["pagesView"]},search:{note:WD},legacy:{menu:"Presentation Mode"}},{id:"present.order-notes",label:"Order and notes…",kind:"command",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["canvasOpen"]},search:{keywords:["presentation","slides","speaker notes","skip","reorder"]}},{id:"present.presenter-view",label:"Presenter view on another display",kind:"toggle",exec:"shell",visible:{shell:["desktop"],facts:["native"]},search:{keywords:["presentation","second screen","audience","notes","projector"]}},{id:"present.copy-link",label:"Copy presentation link",kind:"command",icon:"link",exec:"shell",visible:{minRole:"edit"},enabled:{facts:["online"],any:[{facts:["linkedHub"]},{shell:["cloud"]}]},search:{keywords:["presentation","slideshow","audience","follow","share","link","url"],note:"in a Maude Cloud project"}},{id:"settings.theme",label:"Theme",kind:"toggle",icon:"sun",exec:"shell",legacy:{palette:"Toggle light / dark theme"}},{id:"view.zoom-in",label:"Zoom in",kind:"command",exec:"canvas",keys:[Tt("⌘=","global",{inText:!0,when:Hx}),Tt("⌘+","global",{inText:!0,alias:!0,when:Hx})],legacy:{menu:"Zoom In",sheet:"Zoom in / out"}},{id:"view.zoom-out",label:"Zoom out",kind:"command",exec:"canvas",keys:[Tt("⌘−","global",{inText:!0,when:Hx})],legacy:{menu:"Zoom Out",sheet:"Zoom in / out"}},{id:"view.zoom-fit",label:"Zoom to fit",kind:"command",exec:"canvas",keys:[Tt("⌘0","global",{inText:!0,when:Hx})],legacy:{menu:"Fit to Screen",sheet:"Fit · actual size"}},{id:"view.zoom-actual",label:"Actual size",kind:"command",exec:"canvas",keys:[Tt("⇧0","global",{inText:!1,when:Hx})],legacy:{menu:"Actual Size · 100 %",sheet:"Fit · actual size"}},{id:"view.zoom-to-artboard",label:"Zoom to artboard",kind:"command",exec:"canvas"},{id:"view.jump-artboard",label:"Go to artboard",kind:"command",exec:"canvas",keys:["1","2","3","4","5","6","7","8","9"].map((e,t)=>Tt(`⌥⌘${e}`,"global",{inText:!0,alias:t>0,when:Hx}))},{id:"view.pages",label:"Pages",kind:"toggle",exec:"canvas",enabled:{facts:["canvasOpen"],mode:["edit","viewing"]},help:{group:"canvas",order:60},search:{keywords:["pages","one at a time","artboards","page","canvas","slides"]}},{id:"pages.next",label:"Next page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Tt("PageDown","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Tt("→","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:61},search:{keywords:["pages","forward","artboard","page"]}},{id:"pages.prev",label:"Previous page",kind:"command",exec:"canvas",enabled:{facts:["canvasOpen","pagesView"]},keys:[Tt("PageUp","global",{when:{focus:["canvas"],mode:["edit","viewing"]}}),Tt("←","global",{alias:!0,when:{focus:["canvas"],mode:["edit","viewing"],selection:["none"]}})],help:{group:"canvas",order:62},search:{keywords:["pages","back","artboard","page"]}},{id:"view.advanced-open-all",label:"Open all Advanced sections",kind:"command",exec:"shell",search:{where:"Once · every panel"}},{id:"view.advanced-close-all",label:"Close all Advanced sections",kind:"command",exec:"shell",search:{where:"Settings › Advanced › Reset"}}]});var Cm,ir;var Ii=qe(()=>{E0e();U0e();V0e();q0e();Y0e();Z0e();tSe();sSe();lSe();uSe();pSe();mSe();gSe();ySe();wSe();LSe();DSe();FSe();jSe();Cm=Object.freeze([...hSe,...G0e,...aSe,...BSe,...OSe,...PSe,...vSe,...zSe,...iSe,...W0e,...I0e,...X0e,...F0e,...j0e,...B0e,...dSe,...K0e,...cSe,...fSe,...bSe,...eSe]),ir=new Map(Cm.map((e)=>[e.id,e]))});function g7(e){let t=Array.isArray(e)?e.filter((n)=>typeof n==="string"&&n):[];if(t.length===pI.length&&t.every((n,o)=>n===pI[o]))return;pI=t;for(let n of[...h7])n(pI)}function VD(){return[...pI]}function USe(e){return h7.add(e),()=>{h7.delete(e)}}var pI,h7;var GD=qe(()=>{pI=[],h7=new Set});var b7,HSe;var WSe=qe(()=>{b7={view:0,comment:1,edit:2,owner:3},HSe=["timeline","selection","tools","global"]});function Qc(e,t){if(!e)return!0;if(e.minRole&&b7[t.role]<b7[e.minRole])return!1;if(e.shell&&!e.shell.includes(t.shell))return!1;if(e.notShell?.includes(t.shell))return!1;if(e.mode&&!e.mode.includes(t.mode))return!1;if(e.focus&&!e.focus.includes(t.focus))return!1;if(e.selection&&!e.selection.includes(t.selection))return!1;if(e.facts&&!e.facts.every((n)=>t.facts.has(n)))return!1;if(e.notFacts?.some((n)=>t.facts.has(n)))return!1;if(e.any&&!e.any.some((n)=>Qc(n,t)))return!1;return!0}function ql(e,t){return Qc(e.visible,t)}function O1(e,t){return ql(e,t)&&Qc(e.enabled,t)}function VSe(e,t=()=>!0){let n=new Map;for(let o of e)for(let r of o.keys??[]){if(!t(o,r))continue;let a=n.get(r.chord)??[];a.push({action:o,binding:r}),n.set(r.chord,a)}return n}function pLt(e){return e.inText??(O0e(e.chord)&&!P0e.has(e.chord))}function fLt(e,t){if(t.focus==="text"&&!pLt(e.binding))return!1;if(t.focus==="modal"&&!e.binding.inModal)return!1;if(e.binding.layer==="timeline"&&t.focus!=="timeline")return!1;return ql(e.action,t)&&Qc(e.binding.when,t)}function L1(e,t,n,o="tap"){if(n.singleKeys===!1&&M0e(t))return null;let r=e.get(t);if(!r?.length)return null;let a=r.filter((s)=>o==="hold"===!!s.binding.hold&&fLt(s,n));if(!a.length)return null;for(let s of HSe){let l=a.filter((c)=>c.binding.layer===s);if(l.length)return{action:l[0].action,binding:l[0].binding,ambiguous:l.slice(1)}}return null}var Ku=qe(()=>{of();WSe()});function mLt(e,t){let n=e.when?.focus;if(t==="shell")return e.layer==="timeline"||!n||n.some((o)=>o==="chrome"||o==="timeline"||o==="modal");return e.layer!=="timeline"&&(!n||n.includes("canvas")||n.every((o)=>o==="text"))}function P1(e,t,n){return VSe(e,(o,r)=>n(o.id)&&mLt(r,t))}var qD=qe(()=>{Ku()});function fI(e,t=120){if(typeof e!=="string")return null;return e.replace(hLt,"").trim().slice(0,t).trim()||null}function y7(e,t={}){if(!Array.isArray(e)||e.length===0)return null;let{artboardId:n=null,total:o=0}=t,r=(Array.isArray(n)?n:[n]).filter(Boolean);for(let a of r){let s=e.find((l)=>l.artboardId===a);if(s)return s.id}for(let a of r){let s=e.find((l)=>l.id===a);if(s)return s.id}if(o>0){let a=e.filter((s)=>s.durationInFrames===o);if(a.length===1)return a[0].id}return e[0].id}function Xx(e,t){if(!Array.isArray(e)||e.length===0)return null;return e.find((n)=>n.id===t)??e[0]}var hLt;var D1=qe(()=>{hLt=/[\u202a-\u202e\u2066-\u2069\u200b-\u200f\u2060\u00ad\ufeff\u0000-\u001f\u007f-\u009f]/g});var KD="mdcc-usage-tour-seen",YD="mdcc-collab-tour-seen",wt="__system__",mI="mdcc-theme",hI="mdcc-show-hidden",XD="maude-cp-mode",gI="mdcc-sidebar-open",bI="mdcc-minimap-visible",yI="mdcc-zoomctl-visible",vI="mdcc-annotations-visible",v7=30000,wI="mdcc-panel-sides",xI="mdcc-layers-mode",ts,kI=(e)=>/\.(tsx|jsx)$/i.test(String(e||"")),Nm="2.2.1",w7;var Ho=qe(()=>{ts=/\.(tsx|html?)$/i,w7=[]});function gLt(){return typeof window<"u"?window.__TAURI__:null}function bLt(){let e=typeof window<"u"?window:null;if(!e)return null;if(e.__maudeShellBus)return e.__maudeShellBus;let t=gLt(),n=t?.core?.Channel;if(!n||!t?.core?.invoke)return null;let o=new Map,r=new n;r.onmessage=(s)=>{let l=s&&typeof s.kind==="string"?o.get(s.kind):null;if(!l)return;for(let c of[...l])try{c(s.payload)}catch(u){console.error("[maude] shell message handler failed",u)}};let a={handlers:o,ready:null};return a.ready=Promise.resolve().then(()=>t.core.invoke("shell_subscribe",{onMessage:r})).then(()=>!0,(s)=>{if(e.__maudeShellBus===a)delete e.__maudeShellBus;throw s}),e.__maudeShellBus=a,a}function Zx(e,t){let n=bLt();if(!n)return Promise.resolve(()=>{});let o=n.handlers.get(e);if(!o)o=new Set,n.handlers.set(e,o);o.add(t);let r=()=>{o.delete(t)};return n.ready.then(()=>r,(a)=>{throw r(),a})}function xLt(e){return e.length<=63&&yLt.test(e)&&e!=="canvas"&&!e.startsWith("view-")&&!e.startsWith("canvas-")}function kLt(e){if(!e||e.length>512||wLt.test(e)||/^[A-Za-z]:/.test(e))return null;let t=e.startsWith(".design/")?e.slice(8):e;if(t.split("/").some((n)=>n===""||n==="."||n===".."))return null;return t}function SLt(e){try{return decodeURIComponent(e)}catch{return null}}function qSe(e){if(typeof e!=="string"||e===""||vLt.test(e))return null;if(new TextEncoder().encode(e).length>2048)return null;let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="https:"||t.port!==""||t.username!==""||t.password!=="")return null;let n=".cloud.maude.sh";if(!t.hostname.endsWith(n))return null;let o=t.hostname.slice(0,-n.length);if(!xLt(o))return null;let r=`https://${o}.cloud.maude.sh`;if(t.origin!==r)return null;if(t.pathname===""||t.pathname==="/")return`${r}/`;if(!t.pathname.startsWith("/c/"))return null;let a=t.pathname.slice(3).split("/").map(SLt);if(a.some((l)=>l===null||l.includes("/")||l.includes("\\")))return null;let s=kLt(a.join("/"));if(!s)return null;return`${r}/c/${s.split("/").map(encodeURIComponent).join("/")}`}function ZD(e,t){if(!e||typeof e!=="object")return null;let n=e;if(n.reason!=="browser-door")return null;let o=qSe(n.url);if(!o)return null;if(t&&new URL(o).hostname!==`${t}.cloud.maude.sh`)return null;return{url:o}}function _Lt(e){try{globalThis.window?.open?.(e,"_blank","noopener,noreferrer")}catch{}}async function JD({url:e,profile:t},{invoke:n,openInBrowser:o=_Lt}){let r=qSe(e);if(!r)return{ok:!1,error:"That isn't a Maude Cloud project address."};if(!n)return o(r),{ok:!0,via:"browser"};try{return await n("open_cell_tab",typeof t==="string"&&t?{url:r,profile:t}:{url:r}),{ok:!0,via:"tab"}}catch(a){let s=GSe(a);if(!s.includes("Open this project in your browser."))return{ok:!1,error:s||"That isn't a Maude Cloud project address."}}try{return await n("open_cloud_url",{url:new URL(r).origin}),{ok:!0,via:"browser"}}catch(a){return{ok:!1,error:GSe(a)||"Open this project in your browser."}}}var yLt,vLt,wLt,GSe=(e)=>String((e&&typeof e==="object"&&"message"in e?e.message:e)??"").trim();var QD=qe(()=>{yLt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,vLt=/[\s\u0000-\u001f\u007f-\u009f\\@?#]/,wLt=/[\u0000-\u001f\u007f-\u009f\\]/});function Vt(){return typeof window<"u"&&!!window.__TAURI__}function CLt(){let e=typeof window<"u"?window.__TAURI__:null;if(!e)throw Error("GitHub sign-in is only available in the Maude desktop app.");return e}function Co(e,t){return CLt().core.invoke(e,t)}function NLt(e,t){return Zx(e,t)}function pg(e,t){return Zx(e,t)}async function fg(e,t={}){let n={...t.headers||{}};if(t.body)n["Content-Type"]="application/json";let o;try{o=await fetch(e,{...t,headers:n})}catch{return{ok:!1,status:0,json:{error:"Maude isn’t reachable right now."}}}let r=null;try{r=await o.json()}catch{r=null}return{ok:o.ok,status:o.status,json:r}}function B1(e){if(Vt())return Co("open_team_server_signin",{url:e}).then(()=>"ok",(t)=>/Refusing/i.test(String(t))?"refused":"failed");try{return window.open(e,"_blank","noopener"),Promise.resolve("ok")}catch{return Promise.resolve("failed")}}async function Jx(e){let t=await ALt(e),n=ZD(t.json);if(n)return JD({url:n.url},{invoke:Vt()?Co:null});if(!t.ok||!t.json?.ok)return{ok:!1,error:t.json?.error||"The project could not be opened.",status:t.status};try{return{ok:!0,path:await x7(t.json),project:t.json}}catch(o){return{ok:!1,error:String(o?.message||o||"The project could not be opened.")}}}function hg(e,t){return{size:e.size,type:t||"",name:e.name,async read(n,o){let r=await Co("read_picked_media",{token:e.token,offset:n,len:o-n});return new Uint8Array(r)},release:()=>Co("release_picked_media",{token:e.token}).catch(()=>{})}}async function i3(e,t){let n=hg(e,t);try{return new Blob([await n.read(0,e.size)],t?{type:t}:void 0)}finally{n.release()}}var e3=()=>Co("github_sign_in"),t3=()=>Co("github_sign_out"),Ly=()=>Vt()?Co("cloud_sign_in_prepare"):Promise.resolve(!1),z1=()=>Vt()?Co("cloud_signed_in"):Promise.resolve(!1),KSe=()=>Vt()?Promise.resolve().then(()=>Co("accounts_list")).then((e)=>Array.isArray(e)?e:null,()=>null):Promise.resolve(null),n3=()=>Co("github_is_signed_in"),YSe=()=>Co("github_open_verification",{url:"https://github.com/login/device"}),SI=(e)=>Co("open_github_url",{url:e}),o3=(e)=>Co("open_cloud_url",{url:e}),r3=(e)=>pg("github://device-code",e),a3=(e)=>pg("github://signed-in",e),F1=(e)=>pg("menu://action",(t)=>e(t?.id)),Py=()=>fg("/_api/github/identity"),XSe=()=>fg("/_api/github/repos"),ZSe=(e)=>fg("/_api/github/invite",{method:"POST",body:JSON.stringify({username:e})}),JSe=(e)=>fg("/_api/github/clone",{method:"POST",body:JSON.stringify(e)}),QSe=(e)=>fg("/_api/github/create-project",{method:"POST",body:JSON.stringify(e)}),e1e=(e)=>fg("/_api/project/create-local",{method:"POST",body:JSON.stringify(e)}),t1e=(e)=>fg("/_api/design/init",{method:"POST",body:JSON.stringify({dir:e})}),n1e=(e)=>fg("/_api/hub/link",{method:"POST",body:JSON.stringify(e)}),ALt=(e)=>fg("/_api/projects/prepare",{method:"POST",body:JSON.stringify(e)}),x7=(e)=>Co("managed_project_open",{serverUrl:e.serverUrl,projectId:e.projectId,name:e.name||e.projectId,canvasGroups:e.canvasGroups||[]}),s3=()=>Vt()?Co("managed_projects_list"):Promise.resolve([]),o1e=()=>Co("app_recent_projects"),_I=()=>Co("pick_directory"),mg=(e,t)=>Co("open_local_project",{path:e,open:t}),r1e=(e)=>Co("resolve_project_for_link",{project:e}),Dy=()=>Co("pick_media_file"),Qx=()=>Co("pick_media_files"),k7=(e)=>NLt("update-ready",e),ek=()=>Co("restart_to_update"),a1e=()=>Co("check_for_updates"),s1e=()=>Co("prefs_get_claude_auto_setup"),i1e=(e)=>Co("prefs_set_claude_auto_setup",{enabled:e}),l1e=()=>Co("prefs_get_terminal_opens"),c1e=(e)=>Co("prefs_set_terminal_opens",{enabled:e});var Mo=qe(()=>{QD()});function TLt(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}class f1e{constructor(){this.subscribe=(e)=>(this.subscribers.push(e),this.getActiveToasts().forEach((t)=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=(e)=>{this.subscribers.forEach((t)=>t(e))},this.addToast=(e)=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-FLt;if(e<=0)return;this.toasts=this.toasts.filter((t)=>{if(e>0&&this.dismissedToasts.has(t.id))return this.dismissedToasts.delete(t.id),e--,!1;return!0})},this.create=(e)=>{let{message:t,...n}=e,o=u1e(e),r=this.pendingDismissals.get(o);if(r!==void 0)cancelAnimationFrame(r),this.pendingDismissals.delete(o),this.dismissedToasts.delete(o);let a=this.dismissedToasts.has(o),s=e.dismissible===void 0?!0:e.dismissible;if(a)this.dismissedToasts.delete(o),this.toasts=this.toasts.filter((c)=>c.id!==o);if(a?void 0:this.toasts.find((c)=>c.id===o))this.toasts=this.toasts.map((c)=>{if(c.id===o)return this.publish({...c,...e,id:o,title:t}),{...c,...e,id:o,dismissible:s,title:t};return c});else this.addToast({title:t,...n,dismissible:s,id:o});return o},this.dismiss=(e)=>{if(e===void 0||e===null)return this.getActiveToasts().forEach((n)=>{this.dismissedToasts.add(n.id),this.subscribers.forEach((o)=>o({id:n.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);if(t!==void 0)cancelAnimationFrame(t);return this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach((n)=>n({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n=void 0;if(t.loading!==void 0)n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!=="function"?t.description:void 0});let o=Promise.resolve(e instanceof Function?e():e),r=n!==void 0,a,s=o.then(async(c)=>{if(a=["resolve",c],Zs(c))r=!1,this.create({id:n,type:"default",message:c});else if(jLt(c)&&!c.ok){r=!1;let d=typeof t.error==="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,p=typeof t.description==="function"?await t.description(`HTTP error! status: ${c.status}`):t.description,h=typeof d==="object"&&!Zs(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(c instanceof Error){r=!1;let d=typeof t.error==="function"?await t.error(c):t.error,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Zs(d)?d:{message:d};this.create({id:n,type:"error",description:p,...h})}else if(t.success!==void 0){r=!1;let d=typeof t.success==="function"?await t.success(c):t.success,p=typeof t.description==="function"?await t.description(c):t.description,h=typeof d==="object"&&!Zs(d)?d:{message:d};this.create({id:n,type:"success",description:p,...h})}}).catch(async(c)=>{if(a=["reject",c],t.error!==void 0){r=!1;let u=typeof t.error==="function"?await t.error(c):t.error,d=typeof t.description==="function"?await t.description(c):t.description,f=typeof u==="object"&&!Zs(u)?u:{message:u};this.create({id:n,type:"error",description:d,...f})}}).finally(()=>{if(r)this.dismiss(n),n=void 0;t.finally==null||t.finally.call(t)}),l=()=>new Promise((c,u)=>s.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));if(typeof n!=="string"&&typeof n!=="number")return{unwrap:l};else return Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=u1e(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter((e)=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}function l3(e){return e.label!==void 0}function Am(...e){return e.filter(Boolean).join(" ")}function JLt(e){let[t,n]=e.split("-"),o=[];if(t)o.push(t);if(n)o.push(n);return o}function p1e(){if(typeof window>"u")return"ltr";if(typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");if(e==="auto"||!e)return window.getComputedStyle(document.documentElement).direction;return e}function ePt(e,t){let n={};return[e,t].forEach((o,r)=>{let a=r===1,s=a?"--mobile-offset":"--offset",l=a?qLt:GLt;function c(u){["top","right","bottom","left"].forEach((d)=>{n[`${s}-${d}`]=typeof u==="number"?`${u}px`:u})}if(typeof o==="number"||typeof o==="string")c(o);else if(typeof o==="object")["top","right","bottom","left"].forEach((u)=>{if(o[u]===void 0)n[`${s}-${u}`]=l;else n[`${s}-${u}`]=typeof o[u]==="number"?`${o[u]}px`:o[u]});else c(l)}),n}var ILt=(e)=>{switch(e){case"success":return RLt;case"info":return OLt;case"warning":return MLt;case"error":return LLt;default:return null}},ELt,$Lt=({visible:e,className:t})=>ar("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ar("div",{className:"sonner-spinner"},ELt.map((n,o)=>ar("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),RLt,MLt,OLt,LLt,PLt,DLt=()=>{let[e,t]=T(document.hidden);return M(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e},zLt=1,FLt=100,u1e=(e)=>{var t;return typeof(e==null?void 0:e.id)==="number"||(e==null?void 0:(t=e.id)==null?void 0:t.length)>0?e.id:zLt++},eu,BLt=(e,t)=>eu.message(e,t),jLt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",ULt,HLt=()=>eu.toasts,WLt=()=>eu.getActiveToasts(),c3,VLt=3,GLt="24px",qLt="16px",d1e=4000,KLt=356,YLt=14,XLt=45,ZLt=200,QLt=(e)=>{var t,n,o,r,a,s,l,c,u;let{invert:d,toast:p,unstyled:f,interacting:h,setHeights:g,visibleToasts:b,heights:v,index:y,toasts:w,expanded:x,removeToast:k,defaultRichColors:_,closeButton:N,style:C,cancelButtonStyle:I,actionButtonStyle:R,className:O="",descriptionClassName:U="",duration:F,position:j,gap:B,expandByDefault:G,classNames:X,icons:Y,closeButtonAriaLabel:W="Close toast"}=e,[D,K]=T(null),[P,q]=T(null),[Z,te]=T(!1),[re,me]=T(!1),[se,xe]=T(!1),[_e,Ae]=T(!1),[Ue,le]=T(!1),[Se,he]=T(0),[we,Me]=T(0),Ct=H(p.duration||F||d1e),pe=H(null),He=H(null),ve=y===0,Qe=y+1<=b,je=p.type,$t=je!=null?je:"default",sn=p.dismissible!==!1,Nt=p.className||"",ut=p.descriptionClassName||"",rn=fe(()=>v.findIndex((Yt)=>Yt.toastId===p.id)||0,[v,p.id]),Oe=fe(()=>{var Yt;return(Yt=p.closeButton)!=null?Yt:N},[p.closeButton,N]),ct=fe(()=>p.duration||F||d1e,[p.duration,F]),pt=H(0),Re=H(0),nt=H(0),Fe=H(null),[et,_t]=j.split("-"),Bt=fe(()=>v.reduce((Yt,jt,Tn)=>{if(Tn>=rn)return Yt;return Yt+jt.height},0),[v,rn]),Ht=DLt(),At=fe(()=>{var Yt;return(Yt=e.swipeDirections)!=null?Yt:JLt(j)},[e.swipeDirections,j]),Jt=p.invert||d,Kt=je==="loading";Re.current=fe(()=>rn*B+Bt,[rn,Bt]),M(()=>{Ct.current=ct},[ct]),M(()=>{te(!0)},[]),M(()=>{let Yt=He.current;if(Yt){let jt=Yt.getBoundingClientRect().height;return Me(jt),g((Tn)=>[{toastId:p.id,height:jt,position:p.position},...Tn]),()=>g((Tn)=>Tn.filter((Qt)=>Qt.toastId!==p.id))}},[g,p.id]),eo(()=>{if(!Z)return;let Yt=He.current,jt=Yt.style.height;Yt.style.height="auto";let Tn=Yt.getBoundingClientRect().height;Yt.style.height=jt,Me(Tn),g((Qt)=>{if(!Qt.find((Xt)=>Xt.toastId===p.id))return[{toastId:p.id,height:Tn,position:p.position},...Qt];else return Qt.map((Xt)=>Xt.toastId===p.id?{...Xt,height:Tn}:Xt)})},[Z,p.title,p.description,g,p.id,p.jsx,p.action,p.cancel]);let it=ee(()=>{me(!0),he(Re.current),g((Yt)=>Yt.filter((jt)=>jt.toastId!==p.id)),setTimeout(()=>{k(p)},ZLt)},[p,k,g,Re]);M(()=>{if(p.promise&&je==="loading"||p.duration===1/0||p.type==="loading")return;let Yt,jt=()=>{if(nt.current<pt.current){let Qt=new Date().getTime()-pt.current;Ct.current=Ct.current-Qt}nt.current=new Date().getTime()},Tn=()=>{if(Ct.current===1/0)return;pt.current=new Date().getTime(),Yt=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),it()},Ct.current)};if(x||h||Ht)jt();else Tn();return()=>clearTimeout(Yt)},[x,h,p,je,Ht,it]),M(()=>{if(p.delete)it(),p.onDismiss==null||p.onDismiss.call(p,p)},[it,p.delete]);function Ot(){var Yt;if(Y==null?void 0:Y.loading){var jt;return ar("div",{className:Am(X==null?void 0:X.loader,p==null?void 0:(jt=p.classNames)==null?void 0:jt.loader,"sonner-loader"),"data-visible":je==="loading"},Y.loading)}return ar($Lt,{className:Am(X==null?void 0:X.loader,p==null?void 0:(Yt=p.classNames)==null?void 0:Yt.loader),visible:je==="loading"})}let ft=p.icon||(Y==null?void 0:Y[je])||ILt(je);var yt,pn;return ar("li",{tabIndex:0,ref:He,className:Am(O,Nt,X==null?void 0:X.toast,p==null?void 0:(t=p.classNames)==null?void 0:t.toast,X==null?void 0:X[$t],p==null?void 0:(n=p.classNames)==null?void 0:n[$t]),"data-sonner-toast":"","data-rich-colors":(yt=p.richColors)!=null?yt:_,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":Z,"data-promise":Boolean(p.promise),"data-swiped":Ue,"data-removed":re,"data-visible":Qe,"data-y-position":et,"data-x-position":_t,"data-index":y,"data-front":ve,"data-swiping":se,"data-dismissible":sn,"data-type":je,"data-invert":Jt,"data-swipe-out":_e,"data-swipe-direction":P,"data-expanded":Boolean(x||G&&Z),"data-testid":p.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${re?Se:Re.current}px`,"--initial-height":G?"auto":`${we}px`,...C,...p.style},onDragEnd:()=>{xe(!1),K(null),Fe.current=null},onPointerDown:(Yt)=>{if(Yt.button===2)return;if(Kt||!sn)return;if(pe.current=new Date,he(Re.current),Yt.target.setPointerCapture(Yt.pointerId),Yt.target.tagName==="BUTTON")return;xe(!0),Fe.current={x:Yt.clientX,y:Yt.clientY}},onPointerUp:()=>{var Yt,jt,Tn;if(_e||!sn)return;Fe.current=null;let Qt=Number(((Yt=He.current)==null?void 0:Yt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((jt=He.current)==null?void 0:jt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xt=new Date().getTime()-((Tn=pe.current)==null?void 0:Tn.getTime()),Ye=D==="x"?Qt:Cn,en=Math.abs(Ye)/Xt;if((D==="x"?At.includes(Qt>0?"right":"left"):At.includes(Cn>0?"bottom":"top"))&&(Math.abs(Ye)>=XLt||en>0.11)){if(he(Re.current),p.onDismiss==null||p.onDismiss.call(p,p),D==="x")q(Qt>0?"right":"left");else q(Cn>0?"down":"up");it(),Ae(!0);return}else{var Kn,ue;(Kn=He.current)==null||Kn.style.setProperty("--swipe-amount-x","0px"),(ue=He.current)==null||ue.style.setProperty("--swipe-amount-y","0px")}le(!1),xe(!1),K(null)},onPointerMove:(Yt)=>{var jt,Tn,Qt;if(!Fe.current||!sn)return;if(((jt=window.getSelection())==null?void 0:jt.toString().length)>0)return;let Xt=Yt.clientY-Fe.current.y,Ye=Yt.clientX-Fe.current.x;if(!D&&(Math.abs(Ye)>1||Math.abs(Xt)>1))K(Math.abs(Ye)>Math.abs(Xt)?"x":"y");let en={x:0,y:0},Rn=(Kn)=>1/(1.5+Math.abs(Kn)/20);if(D==="y"){if(At.includes("top")||At.includes("bottom"))if(At.includes("top")&&Xt<0||At.includes("bottom")&&Xt>0)en.y=Xt;else{let Kn=Xt*Rn(Xt);en.y=Math.abs(Kn)<Math.abs(Xt)?Kn:Xt}}else if(D==="x"){if(At.includes("left")||At.includes("right"))if(At.includes("left")&&Ye<0||At.includes("right")&&Ye>0)en.x=Ye;else{let Kn=Ye*Rn(Ye);en.x=Math.abs(Kn)<Math.abs(Ye)?Kn:Ye}}if(Math.abs(en.x)>0||Math.abs(en.y)>0)le(!0);(Tn=He.current)==null||Tn.style.setProperty("--swipe-amount-x",`${en.x}px`),(Qt=He.current)==null||Qt.style.setProperty("--swipe-amount-y",`${en.y}px`)}},Oe&&!p.jsx&&je!=="loading"?ar("button",{"aria-label":W,"data-disabled":Kt,"data-close-button":!0,onClick:Kt||!sn?()=>{}:()=>{it(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Am(X==null?void 0:X.closeButton,p==null?void 0:(o=p.classNames)==null?void 0:o.closeButton)},(pn=Y==null?void 0:Y.close)!=null?pn:PLt):null,(je||p.icon||p.promise)&&p.icon!==null&&((Y==null?void 0:Y[je])!==null||p.icon)?ar("div",{"data-icon":"",className:Am(X==null?void 0:X.icon,p==null?void 0:(r=p.classNames)==null?void 0:r.icon)},je==="loading"?p.icon||Ot():p.promise?Ot():null,je!=="loading"?ft:null):null,ar("div",{"data-content":"",className:Am(X==null?void 0:X.content,p==null?void 0:(a=p.classNames)==null?void 0:a.content)},ar("div",{"data-title":"",className:Am(X==null?void 0:X.title,p==null?void 0:(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title==="function"?p.title():p.title),p.description?ar("div",{"data-description":"",className:Am(U,ut,X==null?void 0:X.description,p==null?void 0:(l=p.classNames)==null?void 0:l.description)},typeof p.description==="function"?p.description():p.description):null),Zs(p.cancel)?p.cancel:p.cancel&&l3(p.cancel)?ar("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||I,onClick:(Yt)=>{if(!l3(p.cancel))return;if(!sn)return;p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Yt),it()},className:Am(X==null?void 0:X.cancelButton,p==null?void 0:(c=p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Zs(p.action)?p.action:p.action&&l3(p.action)?ar("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||R,onClick:(Yt)=>{if(!l3(p.action))return;if(p.action.onClick==null||p.action.onClick.call(p.action,Yt),Yt.defaultPrevented)return;it()},className:Am(X==null?void 0:X.actionButton,p==null?void 0:(u=p.classNames)==null?void 0:u.actionButton)},p.action.label):null)},m1e;var h1e=qe(()=>{oe();mm();ELt=Array(12).fill(0),RLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),MLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),OLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),LLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ar("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),PLt=ar("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},ar("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ar("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));eu=new f1e,ULt=BLt,c3=Object.assign(ULt,{success:eu.success,info:eu.info,warning:eu.warning,error:eu.error,custom:eu.custom,message:eu.message,promise:eu.promise,dismiss:eu.dismiss,loading:eu.loading},{getHistory:HLt,getToasts:WLt});TLt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");m1e=jn(function(t,n){let{id:o,invert:r,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:p,theme:f="light",richColors:h,duration:g,style:b,visibleToasts:v=VLt,toastOptions:y,dir:w=p1e(),gap:x=YLt,icons:k,customAriaLabel:_,containerAriaLabel:N="Notifications"}=t,[C,I]=T([]),R=fe(()=>{if(o)return C.filter((te)=>te.toasterId===o);return C.filter((te)=>!te.toasterId)},[C,o]),O=fe(()=>Array.from(new Set([a].concat(R.filter((te)=>te.position).map((te)=>te.position)))),[R,a]),[U,F]=T([]),[j,B]=T(!1),[G,X]=T(!1),[Y,W]=T(f!=="system"?f:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),D=H(null),K=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=H(null),q=H(!1),Z=ee((te)=>{I((re)=>{var me;if(!((me=re.find((se)=>se.id===te.id))==null?void 0:me.delete))eu.dismiss(te.id);return re.filter(({id:se})=>se!==te.id)})},[]);return M(()=>eu.subscribe((te)=>{if(te.dismiss){requestAnimationFrame(()=>{I((re)=>re.map((me)=>me.id===te.id?{...me,delete:!0}:me))});return}setTimeout(()=>{BG(()=>{I((re)=>{let me=re.findIndex((se)=>se.id===te.id);if(me!==-1)return[...re.slice(0,me),{...re[me],...te},...re.slice(me+1)];return[te,...re]})})})}),[]),M(()=>{if(f!=="system"){W(f);return}if(f==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)W("dark");else W("light");if(typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:re})=>{if(re)W("dark");else W("light")})}catch(re){te.addListener(({matches:me})=>{try{if(me)W("dark");else W("light")}catch(se){console.error(se)}})}},[f]),M(()=>{if(C.length<=1)B(!1)},[C]),M(()=>{let te=(re)=>{var me;if(s.length>0&&s.every((_e)=>re[_e]||re.code===_e)){var xe;B(!0),(xe=D.current)==null||xe.focus()}if(re.code==="Escape"&&(document.activeElement===D.current||((me=D.current)==null?void 0:me.contains(document.activeElement))))B(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),M(()=>{if(D.current)return()=>{if(P.current)P.current.focus({preventScroll:!0}),P.current=null,q.current=!1}},[D.current]),ar("section",{ref:n,"aria-label":_!=null?_:`${N} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},O.map((te,re)=>{var me;let[se,xe]=te.split("-");if(!R.length)return null;return ar("ol",{key:te,dir:w==="auto"?p1e():w,tabIndex:-1,ref:D,className:u,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":se,"data-x-position":xe,style:{"--front-toast-height":`${((me=U[0])==null?void 0:me.height)||0}px`,"--width":`${KLt}px`,"--gap":`${x}px`,...b,...ePt(d,p)},onBlur:(_e)=>{if(q.current&&!_e.currentTarget.contains(_e.relatedTarget)){if(q.current=!1,P.current)P.current.focus({preventScroll:!0}),P.current=null}},onFocus:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;if(!q.current)q.current=!0,P.current=_e.relatedTarget},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{if(!G)B(!1)},onDragEnd:()=>B(!1),onPointerDown:(_e)=>{if(_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false")return;X(!0)},onPointerUp:()=>X(!1)},R.filter((_e)=>!_e.position&&re===0||_e.position===te).map((_e,Ae)=>{var Ue,le;return ar(QLt,{key:_e.id,icons:k,index:Ae,toast:_e,defaultRichColors:h,duration:(Ue=y==null?void 0:y.duration)!=null?Ue:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:v,closeButton:(le=y==null?void 0:y.closeButton)!=null?le:c,interacting:G,position:te,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:Z,toasts:R.filter((Se)=>Se.position==_e.position),heights:U.filter((Se)=>Se.position==_e.position),setHeights:F,expandByDefault:l,gap:x,expanded:j,swipeDirections:t.swipeDirections})}))}))})});function g1e(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:tPt,type:e,key:o,ref:t!==void 0?t:null,props:n}}var tPt,nPt,J,i,m;var V=qe(()=>{tPt=Symbol.for("react.transitional.element"),nPt=Symbol.for("react.fragment");J=nPt,i=g1e,m=g1e});function j1({d:e,size:t=14,color:n}){return i("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flex:"none"},children:i("path",{d:e})})}function de({name:e,size:t=16,className:n}){return i("svg",{className:n,width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:CI[e]})}function zy(e){if(!e||typeof e!=="string")return"?";let t=e.trim().split(/[\s._-]+/).filter(Boolean);if(!t.length)return"?";if(t.length===1)return t[0].slice(0,2).toUpperCase();return((t[0][0]||"")+(t[t.length-1][0]||"")).toUpperCase()||"?"}function tr({children:e}){return i("span",{className:"kbd",children:e})}var Er=({as:e,size:t=14})=>i(e,{size:t,strokeWidth:1.75,style:{display:"block"}}),CI;var Dt=qe(()=>{V();CI={"chevron-down":i("polyline",{points:"3.5 6 8 10.5 12.5 6"}),"chevron-right":i("polyline",{points:"6 3.5 10.5 8 6 12.5"}),chevron:i("path",{d:"M5 6.5l3 3 3-3"}),submenu:i("path",{d:"M6 4.5l3.5 3.5L6 11.5"}),tab:i("path",{d:"M1.5 13.5h2v-7A2.5 2.5 0 0 1 6 4h4a2.5 2.5 0 0 1 2.5 2.5v7h2"}),more:m("g",{fill:"currentColor",stroke:"none",children:[i("circle",{cx:"3.5",cy:"8",r:"1.1"}),i("circle",{cx:"8",cy:"8",r:"1.1"}),i("circle",{cx:"12.5",cy:"8",r:"1.1"})]}),undo:i("path",{d:"M6 3.5L3 6.5l3 3M3 6.5h6.25a3.75 3.75 0 0 1 0 7.5H7.5"}),redo:i("path",{d:"M10 3.5l3 3-3 3M13 6.5H6.75a3.75 3.75 0 0 0 0 7.5H8.5"}),history:i("path",{d:"M2.75 8A5.25 5.25 0 1 0 4.3 4.3M4.3 1.8v2.5h2.5M8 5.25V8l2 1.5"}),pin:i("path",{d:"M6 2.5h4l-.5 4 2.5 2.5H4l2.5-2.5zM8 9v4.5"}),duplicate:m(J,{children:[i("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.75"}),i("path",{d:"M10.5 5.5V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5"})]}),home:i("path",{d:"M2.5 7.25L8 2.75l5.5 4.5v5.25a1 1 0 0 1-1 1h-2.75V10h-3.5v3.5H3.5a1 1 0 0 1-1-1z"}),trash:i("path",{d:"M3 4.5h10M6.5 4.5V3h3v1.5M4.5 4.5l.6 8.1a1 1 0 0 0 1 .9h3.8a1 1 0 0 0 1-.9l.6-8.1"}),settings:m(J,{children:[i("path",{d:"M2.5 5h4.5M10 5h3.5M2.5 11h1.5M7 11h6.5"}),i("circle",{cx:"8.5",cy:"5",r:"1.5"}),i("circle",{cx:"5.5",cy:"11",r:"1.5"})]}),corner:i("path",{d:"M3.5 12.5V8a4.5 4.5 0 0 1 4.5-4.5h4.5"}),done:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M5.5 8.25l1.75 1.75 3.25-3.75"})]}),view:m(J,{children:[i("path",{d:"M1.75 8S4 3.75 8 3.75 14.25 8 14.25 8 12 12.25 8 12.25 1.75 8 1.75 8z"}),i("circle",{cx:"8",cy:"8",r:"1.75"})]}),minus:i("path",{d:"M3 8h10"}),spark:i("path",{d:"M16 3L19.309 12.691L29 16L19.309 19.309L16 29L12.691 19.309L3 16L12.691 12.691Z",transform:"scale(0.5)",fill:"currentColor",stroke:"none"}),file:m(J,{children:[i("path",{d:"M4 2h5l3 3v9H4z"}),i("polyline",{points:"9 2 9 5 12 5"})]}),folder:i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),"folder-plus":m(J,{children:[i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),i("path",{d:"M8 7.5v3.5M6.25 9.25h3.5"})]}),warn:m(J,{children:[i("path",{d:"M8 2.2 14.2 13H1.8z"}),i("path",{d:"M8 6.4v3.2"}),i("path",{d:"M8 11.3h.01"})]}),lock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015 0v2"})]}),unlock:m(J,{children:[i("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1"}),i("path",{d:"M5.5 7V5a2.5 2.5 0 015-.7"})]}),search:m(J,{children:[i("circle",{cx:"7",cy:"7",r:"4"}),i("line",{x1:"10",y1:"10",x2:"13.5",y2:"13.5"})]}),plus:m(J,{children:[i("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),i("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]}),check:i("polyline",{points:"3 8.2 6.4 11.5 13 4.2"}),x:m(J,{children:[i("line",{x1:"4.3",y1:"4.3",x2:"11.7",y2:"11.7"}),i("line",{x1:"11.7",y1:"4.3",x2:"4.3",y2:"11.7"})]}),sun:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"2.6"}),i("line",{x1:"8",y1:"1.5",x2:"8",y2:"3"}),i("line",{x1:"8",y1:"13",x2:"8",y2:"14.5"}),i("line",{x1:"1.5",y1:"8",x2:"3",y2:"8"}),i("line",{x1:"13",y1:"8",x2:"14.5",y2:"8"}),i("line",{x1:"3.4",y1:"3.4",x2:"4.4",y2:"4.4"}),i("line",{x1:"11.6",y1:"11.6",x2:"12.6",y2:"12.6"}),i("line",{x1:"12.6",y1:"3.4",x2:"11.6",y2:"4.4"}),i("line",{x1:"4.4",y1:"11.6",x2:"3.4",y2:"12.6"})]}),moon:i("path",{d:"M12.5 9.6A5 5 0 1 1 7 3a4 4 0 0 0 5.5 6.6z"}),sparkle:i("path",{d:"M8 1.8l1.4 4.8L14 8l-4.6 1.4L8 14.2l-1.4-4.8L2 8l4.6-1.4z",fill:"currentColor",stroke:"none"}),megaphone:m(J,{children:[i("path",{d:"M2 6.7 11 4v8L2 9.3z"}),i("path",{d:"M11 5.2a2.4 2.4 0 0 1 0 5.6"}),i("path",{d:"M4.3 9.5v2.3a1.2 1.2 0 0 0 2.4 0v-1.7"})]}),bug:m(J,{children:[i("circle",{cx:"8",cy:"9",r:"3.6"}),i("circle",{cx:"8",cy:"4.4",r:"1.3"}),i("path",{d:"M6.2 3.4 5.2 2M9.8 3.4l1-1.4"}),i("path",{d:"M4.6 7.6H2.2M4.6 9H2.2M4.6 10.6H2.5M11.4 7.6h2.4M11.4 9h2.4M11.4 10.6h2.3"})]}),"panel-left":m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("line",{x1:"6.4",y1:"3",x2:"6.4",y2:"13"})]}),resolve:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.6"}),i("polyline",{points:"5.4 8 7.2 9.9 10.6 6"})]}),reopen:m(J,{children:[i("path",{d:"M3.2 8a5 5 0 1 1 1.4 3.5"}),i("polyline",{points:"3.2 11.4 3.2 8 6.6 8"})]}),layers:m(J,{children:[i("polygon",{points:"8 2.2 13.8 5.5 8 8.8 2.2 5.5"}),i("polyline",{points:"2.2 9 8 12.3 13.8 9"})]}),box:i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.2"}),type:m(J,{children:[i("polyline",{points:"4 4 12 4"}),i("line",{x1:"8",y1:"4",x2:"8",y2:"12"})]}),button:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"3"}),i("line",{x1:"6",y1:"8",x2:"10",y2:"8"})]}),input:m(J,{children:[i("rect",{x:"2.5",y:"5",width:"11",height:"6",rx:"1.2"}),i("line",{x1:"5",y1:"8",x2:"5",y2:"8"})]}),link:m(J,{children:[i("path",{d:"M6.5 9.5a2.5 2.5 0 0 1 0-3.5l1.5-1.5a2.5 2.5 0 0 1 3.5 3.5l-1 1"}),i("path",{d:"M9.5 6.5a2.5 2.5 0 0 1 0 3.5l-1.5 1.5a2.5 2.5 0 0 1-3.5-3.5l1-1"})]}),list:m(J,{children:[i("line",{x1:"6",y1:"4.5",x2:"13",y2:"4.5"}),i("line",{x1:"6",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6",y1:"11.5",x2:"13",y2:"11.5"}),i("circle",{cx:"3.2",cy:"4.5",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"8",r:"0.8",fill:"currentColor"}),i("circle",{cx:"3.2",cy:"11.5",r:"0.8",fill:"currentColor"})]}),eye:m(J,{children:[i("path",{d:"M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z"}),i("circle",{cx:"8",cy:"8",r:"2"})]}),eyedropper:m(J,{children:[i("path",{d:"M11 2.6a1.7 1.7 0 0 1 2.4 2.4l-1.2 1.2-2.4-2.4z"}),i("path",{d:"M9.5 4.6 4 10.1V12h1.9l5.5-5.5"})]}),"p-corner":i("path",{d:"M3.5 12.5V7a3.5 3.5 0 0 1 3.5-3.5h5.5"}),"p-opacity":m(J,{children:[i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"}),i("path",{d:"M3 8h10M8 3v10",strokeWidth:"0.9",opacity:"0.55"})]}),"p-lineheight":m(J,{children:[i("line",{x1:"6.5",y1:"4",x2:"13",y2:"4"}),i("line",{x1:"6.5",y1:"8",x2:"13",y2:"8"}),i("line",{x1:"6.5",y1:"12",x2:"13",y2:"12"}),i("path",{d:"M3.2 4.6 3.2 11.4M2 6 3.2 4.5 4.4 6M2 10 3.2 11.5 4.4 10"})]}),"p-letterspacing":m(J,{children:[i("path",{d:"M3 4v8M13 4v8"}),i("path",{d:"M6 11.5 8 5l2 6.5M6.7 9.3h2.6",strokeWidth:"1.1"})]}),"p-gap":m(J,{children:[i("rect",{x:"2",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("rect",{x:"10.4",y:"4.5",width:"3.6",height:"7",rx:"0.6"}),i("path",{d:"M6.8 8h2.4M7.4 6.9 6.4 8l1 1.1M8.6 6.9 9.6 8l-1 1.1",strokeWidth:"1"})]}),"p-border":i("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1"}),"p-size":m(J,{children:[i("path",{d:"M3 13 6.6 3l3.6 10"}),i("path",{d:"M4.3 9.6h4.6"})]}),"eye-off":m(J,{children:[i("path",{d:"M6.3 4A6.7 6.7 0 0 1 8 3.5C12 3.5 14.5 8 14.5 8a12 12 0 0 1-2 2.4M4.4 5.3A12 12 0 0 0 1.5 8S4 12.5 8 12.5a6.5 6.5 0 0 0 2.1-.35"}),i("line",{x1:"2.5",y1:"2.5",x2:"13.5",y2:"13.5"})]}),sliders:m(J,{children:[i("line",{x1:"3",y1:"5",x2:"13",y2:"5"}),i("circle",{cx:"6",cy:"5",r:"1.7",fill:"currentColor"}),i("line",{x1:"3",y1:"11",x2:"13",y2:"11"}),i("circle",{cx:"10",cy:"11",r:"1.7",fill:"currentColor"})]}),code:m(J,{children:[i("polyline",{points:"6 5 3 8 6 11"}),i("polyline",{points:"10 5 13 8 10 11"})]}),download:m(J,{children:[i("line",{x1:"8",y1:"2.5",x2:"8",y2:"10"}),i("polyline",{points:"4.5 7 8 10.5 11.5 7"}),i("polyline",{points:"3 12.8 3 13.6 13 13.6 13 12.8"})]}),reload:m(J,{children:[i("path",{d:"M14 8a6 6 0 1 1-2-4.47L14 5.33"}),i("path",{d:"M14 2v3.33h-3.33"})]}),help:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"6"}),i("path",{d:"M6.3 6.2a1.8 1.8 0 1 1 2.3 1.9c-.5.2-.6.5-.6 1v.3"}),i("line",{x1:"8",y1:"11.4",x2:"8",y2:"11.5"})]}),image:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.5"}),i("circle",{cx:"6",cy:"6.3",r:"1.1"}),i("path",{d:"M3 12l3-2.8 2.2 1.8 2.4-3L13.5 12"})]}),vector:m(J,{children:[i("path",{d:"M3.6 11.2C6 5 10 5 12.4 11.2"}),i("rect",{x:"1.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"11.7",y:"9.8",width:"2.6",height:"2.6",rx:"0.4"}),i("rect",{x:"6.7",y:"2.6",width:"2.6",height:"2.6",rx:"0.4"})]}),presentation:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"7.4",rx:"1"}),i("line",{x1:"8",y1:"10.4",x2:"8",y2:"13"}),i("line",{x1:"5.6",y1:"13.4",x2:"10.4",y2:"13.4"})]}),archive:m(J,{children:[i("rect",{x:"2.5",y:"3",width:"11",height:"3",rx:"0.8"}),i("path",{d:"M3.6 6v6.2a1 1 0 0 0 1 1h6.8a1 1 0 0 0 1-1V6"}),i("line",{x1:"6.6",y1:"8.8",x2:"9.4",y2:"8.8"})]}),external:m(J,{children:[i("path",{d:"M11 8.5V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3.5"}),i("polyline",{points:"9.5 3 13 3 13 6.5"}),i("line",{x1:"13",y1:"3",x2:"7.6",y2:"8.4"})]}),share:m(J,{children:[i("circle",{cx:"4",cy:"8",r:"1.9"}),i("circle",{cx:"11.6",cy:"3.6",r:"1.9"}),i("circle",{cx:"11.6",cy:"12.4",r:"1.9"}),i("line",{x1:"5.7",y1:"7",x2:"9.9",y2:"4.6"}),i("line",{x1:"5.7",y1:"9",x2:"9.9",y2:"11.4"})]}),pen:m(J,{children:[i("path",{d:"M3 13l.8-3L10.6 3.2a1.1 1.1 0 0 1 1.6 0l.6.6a1.1 1.1 0 0 1 0 1.6L6 12.2z"}),i("line",{x1:"9.6",y1:"4.2",x2:"11.8",y2:"6.4"})]}),square:i("rect",{x:"3.5",y:"3.5",width:"9",height:"9",rx:"1"}),cloud:i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5zM6.25 9.5l1.25 1.25 2.25-2.5"}),sync:i("path",{d:"M3 7.25a5 5 0 0 1 8.6-3L13 5.5M13 2.5v3h-3M13 8.75a5 5 0 0 1-8.6 3L3 10.5M3 13.5v-3h3"}),offline:m(J,{children:[i("path",{d:"M4.75 12.5a2.75 2.75 0 0 1-.4-5.47A3.75 3.75 0 0 1 11.6 6a3.25 3.25 0 0 1 .15 6.5z"}),i("path",{d:"M2.5 2.5l11 11"})]}),laptop:m(J,{children:[i("rect",{x:"3.5",y:"3.5",width:"9",height:"6.5",rx:"1.25"}),i("path",{d:"M1.75 12.5h12.5"})]}),problem:m(J,{children:[i("path",{d:"M8 2.75l5.75 10H2.25z"}),i("path",{d:"M8 6.75v2.5M8 11h.01"})]}),"panel-right":m(J,{children:[i("rect",{x:"2",y:"3",width:"12",height:"10",rx:"2.5"}),i("path",{d:"M10 3v10"})]}),comment:i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),"comment-bubble":i("path",{d:"M5 2.5h6A2.5 2.5 0 0 1 13.5 5v3.5A2.5 2.5 0 0 1 11 11H8l-3 2.5V11A2.5 2.5 0 0 1 2.5 8.5V5A2.5 2.5 0 0 1 5 2.5z"}),export:m(J,{children:[i("path",{d:"M8 2.5V10M5.25 7.25L8 10l2.75-2.75"}),i("path",{d:"M2.75 10.5V12a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-1.5"})]}),clock:m(J,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M8 4.75V8l2.25 1.5"})]}),"share-up":m(J,{children:[i("path",{d:"M8 9.5v-7M5.25 5.25L8 2.5l2.75 2.75"}),i("path",{d:"M5 7.5h-.5A1.5 1.5 0 0 0 3 9v3a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V9a1.5 1.5 0 0 0-1.5-1.5H11"})]}),frame:i("path",{d:"M5 2.5v11M11 2.5v11M2.5 5h11M2.5 11h11"}),print:m(J,{children:[i("path",{d:"M4.5 6V2.5h7V6M4.5 11.5h-1A1.5 1.5 0 0 1 2 10V7.5A1.5 1.5 0 0 1 3.5 6h9A1.5 1.5 0 0 1 14 7.5V10a1.5 1.5 0 0 1-1.5 1.5h-1"}),i("path",{d:"M4.5 9.5h7v4h-7z"})]}),system:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"8.75",y:"2.5",width:"4.75",height:"4.75",rx:"1.25"}),i("rect",{x:"2.5",y:"8.75",width:"4.75",height:"4.75",rx:"1.25"}),i("circle",{cx:"11.125",cy:"11.125",r:"2.375"})]}),insert:m(J,{children:[i("rect",{x:"2.5",y:"2.5",width:"11",height:"11",rx:"2.5"}),i("path",{d:"M8 5.5v5M5.5 8h5"})]})}});var T1e={};TG(T1e,{MAX_NOTICE_ENTRIES:()=>v1e,NoticeCard:()=>C1e,NotificationHost:()=>E7,dismissCanvasNotices:()=>sPt,dismissNotice:()=>Kl,noticeDuration:()=>I7,noticeEntries:()=>rPt,noticePlacement:()=>_1e,notify:()=>Yo,notifyCanvasText:()=>NI,notifyCanvasTriggered:()=>Tm,notifyUndo:()=>T7,setCanvasPopoverOpen:()=>m3,shownNoticeIds:()=>N1e,summarizeNoticeText:()=>U1});function aPt(){while(Ws.length>v1e){let e=Ws.findIndex(w1e);if(e<0)e=Ws.findIndex((t)=>t.kind!=="error"&&!t.paused&&I7(t)!==1/0);if(e<0)e=0;Ws=[...Ws.slice(0,e),...Ws.slice(e+1)]}}function x1e(e,t){let n={...e,title:u3(e.title),...e.description!==void 0?{description:u3(e.description)}:{}},o=n.id??`notice-${++f3}`,r=t?{...n,id:o,canvasTriggered:t}:{...n,id:o},a=n.action?.armAfterMs;if(typeof a==="number"&&a>0)r.actionArmedAt=Date.now()+a;if(Ws.findIndex((l)=>l.id===o)<0)Ws=[...Ws,r];else Ws=Ws.map((l)=>l.id===o?r:l);return aPt(),A7(),o}function Yo(e){return x1e(e,!1)}function S1e(){let e=Date.now();if(e<S7||e-S7>=1000)S7=e,_7=0;if(_7>=5)return!1;return _7++,!0}function Tm(e){if(!S1e())return null;return x1e(e,!0)}function NI(e,t="info"){if(!S1e())return null;let o=(t==="undo"?Ws.find((r)=>r.group==="canvas"&&r.kind==="undo"):void 0)?.id??`canvas-notice-${k1e++%2}`;return Yo({id:o,title:u3(e).slice(0,4000),kind:t,group:"canvas",timerKey:`${++f3}`})}function T7(e,t){let n=Ws.find((o)=>o.group==="canvas"&&o.kind==="undo");return Yo({id:n?.id??`canvas-notice-${k1e++%2}`,title:e,kind:"undo",group:"canvas",timerKey:`${++f3}`,...t?{action:t}:{}})}function sPt(){if(!Ws.some((e)=>e.group==="canvas"))return;Ws=Ws.filter((e)=>e.group!=="canvas"),A7()}function Kl(e){Ws=Ws.filter((t)=>t.id!==e),A7()}function d3(e){let t=Ws.find((n)=>n.id===e);Kl(e),t?.onDismiss?.()}function I7(e){return e.duration??(e.action||["error","warning","undo"].includes(e.kind??"")?1e4:5000)}function U1(e){let t=u3(e).trim().replace(/\s+/g," ");return t.length>280?`${t.slice(0,279)}…`:t}function m3(e){if(p3===e)return;p3=e;for(let t of N7)t()}function iPt(e){return N7.add(e),()=>N7.delete(e)}function _1e(e){if(p3)return"top";if(e.placement)return e.placement;return typeof document<"u"&&document.querySelector(".tl-track")?"top":"bottom"}function C1e({entry:e}){let t=e.icon??lPt[e.kind??"info"],n=e.actionArmedAt??0,[o,r]=T(()=>Date.now()>=n);return M(()=>{let a=n-Date.now();if(r(a<=0),a<=0)return;let s=setTimeout(()=>r(!0),a);return()=>clearTimeout(s)},[n]),m("div",{className:"maude-notice","data-kind":e.kind??"info","data-testid":`notice-${e.id}`,children:[t?i("span",{className:`maude-notice-ic maude-notice-ic--${t}`,"aria-hidden":"true",children:i(de,{name:t,size:16,className:"maude-notice-glyph"})}):null,m("div",{className:"maude-notice-txt",children:[i("div",{className:"maude-notice-title",children:U1(e.title)}),e.description&&i("div",{className:"maude-notice-summary",children:U1(e.description)}),e.content]}),e.action&&i("button",{type:"button",className:"maude-notice-action",disabled:!o,onClick:(a)=>{if(Date.now()<n)return;a.currentTarget.blur(),e.action?.onClick(),d3(e.id)},children:e.action.label}),i("button",{type:"button",className:"maude-notice-close","aria-label":"Dismiss notification",onClick:(a)=>{a.currentTarget.blur(),d3(e.id)},children:"×"})]})}function cPt({entry:e,visible:t,paused:n}){let o=I7(e),r=We(iPt,y1e,y1e),a=H(null),s=H(o);return M(()=>{s.current=o},[o,e.timerKey]),M(()=>{if(!t||n||e.paused||o===1/0)return;let l=Date.now(),c=setTimeout(()=>d3(e.id),Math.max(0,s.current));return()=>{clearTimeout(c),s.current=Math.max(0,s.current-(Date.now()-l))}},[t,n,e.paused,o,e.timerKey,e.id]),M(()=>{if(t){let l=a.current??`${e.id}:view-${++f3}`;a.current=l,c3.custom(()=>i(C1e,{entry:e}),{id:l,duration:1/0,position:_1e(e)==="top"?"top-center":"bottom-center",onDismiss:()=>{if(a.current===l)d3(e.id)}})}else if(a.current){let l=a.current;a.current=null,c3.dismiss(l)}},[e,t,r]),M(()=>()=>{let l=a.current;if(a.current=null,l)c3.dismiss(l)},[]),null}function N1e(e){let t=e.filter((s)=>!w1e(s)),n=e.filter((s)=>s.group!=="canvas"&&s.canvasTriggered),o=t.length?t:n.length?n:e,r=o.filter((s)=>s.kind==="error"),a=o.filter((s)=>s.kind!=="error").reverse();return[...r,...a].slice(0,A1e).map((s)=>s.id)}function E7({paused:e=!1,hiddenGroups:t=dPt}){let n=We(oPt,b1e,b1e),o=H(null),[r,a]=T(!1),[s,l]=T(!1),[c,u]=T(()=>typeof document<"u"&&document.hidden);M(()=>{let f=()=>u(document.hidden);return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)},[]),M(()=>{if(!n.length)a(!1),l(!1);if(s&&!o.current?.contains(document.activeElement))l(!1)},[n,s]);let d=n.filter((f)=>!t.includes(f.group??"")),p=new Set(N1e(d));return m("div",{ref:o,className:"maude-notifications","data-paused":e,onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),onFocusCapture:()=>l(!0),onBlurCapture:(f)=>{if(!f.currentTarget.contains(f.relatedTarget))l(!1)},children:[i("style",{children:uPt}),i(m1e,{position:"bottom-center",offset:{bottom:84,top:16},mobileOffset:{left:16,right:16,bottom:84,top:16},visibleToasts:A1e,expand:s,style:{"--width":"min(640px, calc(100vw - 32px))"},containerAriaLabel:"Notifications"}),n.map((f)=>i(cPt,{entry:f,visible:p.has(f.id),paused:e||r||s||c||!p.has(f.id)},f.id))]})}var Ws,f3=0,C7,A7=()=>{for(let e of C7)e()},oPt=(e)=>(C7.add(e),()=>{C7.delete(e)}),b1e=()=>Ws,rPt=()=>Ws,v1e=40,w1e=(e)=>e.group==="canvas"||!!e.canvasTriggered,u3=(e)=>typeof e==="string"?e:e===null||e===void 0?"":String(e),k1e=0,S7=-1/0,_7=0,p3=!1,N7,y1e=()=>p3,lPt,uPt=`
2
2
  .maude-notifications [data-sonner-toaster] { --width: min(640px, calc(100vw - 32px)); z-index: 8000; }
3
3
  /* the kit pill hugs its sentence (one line, up to the list's width); it does not stretch to a fixed card */
4
4
  /* P8 C9 (01 cf-open-big): the toast is absolutely positioned in its toaster, so margin-inline: auto centres only