@exponential_app/eui-element 0.15.2 → 0.15.3

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
- const Ib=(e,t)=>e===t,Gs=Symbol("solid-proxy"),Zh=typeof Proxy=="function",Jh=Symbol("solid-track"),Ys={equals:Ib};let di=null,Qh=om;const Rn=1,Xs=2,em={owned:null,cleanups:null,context:null,owner:null};var Re=null;let vl=null,Pb=null,Xe=null,kt=null,yn=null,La=0;function Kn(e,t){const n=Xe,r=Re,o=e.length===0,i=t===void 0?r:t,s=o?em:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>W(()=>$i(s)));Re=s,Xe=null;try{return Jr(a,!0)}finally{Xe=n,Re=r}}function G(e,t){t=t?Object.assign({},Ys,t):Ys;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),rm(n,o));return[nm.bind(n),r]}function er(e,t,n){const r=Ui(e,t,!0,Rn);Lo(r)}function re(e,t,n){const r=Ui(e,t,!1,Rn);Lo(r)}function ge(e,t,n){Qh=zb;const r=Ui(e,t,!1,Rn);(!n||!n.render)&&(r.user=!0),yn?yn.push(r):Lo(r)}function j(e,t,n){n=n?Object.assign({},Ys,n):Ys;const r=Ui(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Lo(r),nm.bind(r)}function dc(e){return Jr(e,!1)}function W(e){if(Xe===null)return e();const t=Xe;Xe=null;try{return e()}finally{Xe=t}}function Ne(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(i)return i=!1,s;const l=W(()=>t(a,o,s));return o=a,l}}function ot(e){ge(()=>W(e))}function de(e){return Re===null||(Re.cleanups===null?Re.cleanups=[e]:Re.cleanups.push(e)),e}function Db(e,t){di||(di=Symbol("error")),Re=Ui(void 0,void 0,!0),Re.context={...Re.context,[di]:[t]};try{return e()}catch(n){Vi(n)}finally{Re=Re.owner}}function yu(){return Re}function tm(e,t){const n=Re,r=Xe;Re=e,Xe=null;try{return Jr(t,!0)}catch(o){Vi(o)}finally{Re=n,Xe=r}}const[Wz,Hz]=G(!1);function br(e,t){const n=Symbol("context");return{id:n,Provider:Lb(n),defaultValue:e}}function tr(e){let t;return Re&&Re.context&&(t=Re.context[e.id])!==void 0?t:e.defaultValue}function Zs(e){const t=j(e),n=j(()=>pc(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function nm(){if(this.sources&&this.state)if(this.state===Rn)Lo(this);else{const e=kt;kt=null,Jr(()=>Qs(this),!1),kt=e}if(Xe){const e=this.observers;if(!e||e[e.length-1]!==Xe){const t=e?e.length:0;Xe.sources?(Xe.sources.push(this),Xe.sourceSlots.push(t)):(Xe.sources=[this],Xe.sourceSlots=[t]),e?(e.push(Xe),this.observerSlots.push(Xe.sources.length-1)):(this.observers=[Xe],this.observerSlots=[Xe.sources.length-1])}}return this.value}function rm(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Jr(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=vl&&vl.running;s&&vl.disposed.has(i),(s?!i.tState:!i.state)&&(i.pure?kt.push(i):yn.push(i),i.observers&&im(i)),s||(i.state=Rn)}if(kt.length>1e6)throw kt=[],new Error},!1)),t}function Lo(e){if(!e.fn)return;$i(e);const t=La;Rb(e,e.value,t)}function Rb(e,t,n){let r;const o=Re,i=Xe;Xe=Re=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=Rn,e.owned&&e.owned.forEach($i),e.owned=null),e.updatedAt=n+1,Vi(s)}finally{Xe=i,Re=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?rm(e,r):e.value=r,e.updatedAt=n)}function Ui(e,t,n,r=Rn,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Re,context:Re?Re.context:null,pure:n};return Re===null||Re!==em&&(Re.owned?Re.owned.push(i):Re.owned=[i]),i}function Js(e){if(e.state===0)return;if(e.state===Xs)return Qs(e);if(e.suspense&&W(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<La);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Rn)Lo(e);else if(e.state===Xs){const r=kt;kt=null,Jr(()=>Qs(e,t[0]),!1),kt=r}}function Jr(e,t){if(kt)return e();let n=!1;t||(kt=[]),yn?n=!0:yn=[],La++;try{const r=e();return Fb(n),r}catch(r){n||(yn=null),kt=null,Vi(r)}}function Fb(e){if(kt&&(om(kt),kt=null),e)return;const t=yn;yn=null,t.length&&Jr(()=>Qh(t),!1)}function om(e){for(let t=0;t<e.length;t++)Js(e[t])}function zb(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Js(r)}for(t=0;t<n;t++)Js(e[t])}function Qs(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const o=r.state;o===Rn?r!==t&&(!r.updatedAt||r.updatedAt<La)&&Js(r):o===Xs&&Qs(r,t)}}}function im(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Xs,n.pure?kt.push(n):yn.push(n),n.observers&&im(n))}}function $i(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)$i(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)$i(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Nb(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Ld(e,t,n){try{for(const r of t)r(e)}catch(r){Vi(r,n&&n.owner||null)}}function Vi(e,t=Re){const n=di&&t&&t.context&&t.context[di],r=Nb(e);if(!n)throw r;yn?yn.push({fn(){Ld(r,n,t)},state:Rn}):Ld(r,n,t)}function pc(e){if(typeof e=="function"&&!e.length)return pc(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=pc(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let o=0;o<r.length;o++)t.push(r[o]);else t.push(r)}return t}return e}function Lb(e,t){return function(r){let o;return re(()=>o=W(()=>(Re.context={...Re.context,[e]:r.value},Zs(()=>r.children))),void 0),o}}const fc=Symbol("fallback");function ea(e){for(let t=0;t<e.length;t++)e[t]()}function jb(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return de(()=>ea(i)),()=>{let l=e()||[],c=l.length,u,d;return l[Jh],W(()=>{let h,f,y,g,v,m,b,x,$;if(c===0)s!==0&&(ea(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[fc],o[0]=Kn(S=>(i[0]=S,n.fallback())),s=1);else if(s===0){for(o=new Array(c),d=0;d<c;d++)r[d]=l[d],o[d]=Kn(p);s=c}else{for(y=new Array(c),g=new Array(c),a&&(v=new Array(c)),m=0,b=Math.min(s,c);m<b&&r[m]===l[m];m++);for(b=s-1,x=c-1;b>=m&&x>=m&&r[b]===l[x];b--,x--)y[x]=o[b],g[x]=i[b],a&&(v[x]=a[b]);for(h=new Map,f=new Array(x+1),d=x;d>=m;d--)$=l[d],u=h.get($),f[d]=u===void 0?-1:u,h.set($,d);for(u=m;u<=b;u++)$=r[u],d=h.get($),d!==void 0&&d!==-1?(y[d]=o[u],g[d]=i[u],a&&(v[d]=a[u]),d=f[d],h.set($,d)):i[u]();for(d=m;d<c;d++)d in y?(o[d]=y[d],i[d]=g[d],a&&(a[d]=v[d],a[d](d))):o[d]=Kn(p);o=o.slice(0,s=c),r=l.slice(0)}return o});function p(h){if(i[d]=h,a){const[f,y]=G(d);return a[d]=y,t(l[d],f)}return t(l[d])}}}function Bb(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,l;return de(()=>ea(i)),()=>{const c=e()||[],u=c.length;return c[Jh],W(()=>{if(u===0)return a!==0&&(ea(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[fc],o[0]=Kn(p=>(i[0]=p,n.fallback())),a=1),o;for(r[0]===fc&&(i[0](),i=[],r=[],o=[],a=0),l=0;l<u;l++)l<r.length&&r[l]!==c[l]?s[l](()=>c[l]):l>=r.length&&(o[l]=Kn(d));for(;l<r.length;l++)i[l]();return a=s.length=i.length=u,r=c.slice(0),o=o.slice(0,a)});function d(p){i[l]=p;const[h,f]=G(c[l]);return s[l]=f,t(h,l)}}}function w(e,t){return W(()=>e(t||{}))}function ms(){return!0}const hc={get(e,t,n){return t===Gs?n:e.get(t)},has(e,t){return t===Gs?!0:e.has(t)},set:ms,deleteProperty:ms,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ms,deleteProperty:ms}},ownKeys(e){return e.keys()}};function $l(e){return(e=typeof e=="function"?e():e)?e:{}}function Wb(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function T(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&Gs in a,e[s]=typeof a=="function"?(t=!0,j(a)):a}if(Zh&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const l=$l(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in $l(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys($l(e[a])));return[...new Set(s)]}},hc);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:Wb.bind(n[u]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const p=n[u];p&&(d.get?p.push(d.get.bind(a)):d.value!==void 0&&p.push(()=>d.value))}}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const a=i[s],l=r[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function Ki(e,...t){const n=t.length;if(Zh&&Gs in e){const o=n>1?t.flat():t[0],i=new Set,s=t.map(a=>{const l=a.filter(c=>!i.has(c)&&(i.add(c),!0));return new Proxy({get(c){return l.includes(c)?e[c]:void 0},has(c){return l.includes(c)&&c in e},keys(){return l.filter(c=>c in e)}},hc)});return s.push(new Proxy({get(a){return o.includes(a)?void 0:e[a]},has(a){return o.includes(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.includes(a))}},hc)),s}const r=[];for(let o=0;o<=n;o++)r[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=n;for(let l=0;l<t.length;l++)if(t[l].includes(o)){i=l;break}const s=Object.getOwnPropertyDescriptor(e,o);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[i][o]=s.value:Object.defineProperty(r[i],o,s)}return r}let Hb=0;function Fe(){return`cl-${Hb++}`}const qb=e=>`Stale read from <${e}>.`;function Te(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(jb(()=>e.each,e.children,t||void 0))}function tn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(Bb(()=>e.each,e.children,t||void 0))}function ee(e){const t=e.keyed,n=j(()=>e.when,void 0,void 0),r=t?n:j(n,void 0,{equals:(o,i)=>!o==!i});return j(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?W(()=>i(t?o:()=>{if(!W(r))throw qb("Show");return n()})):i}return e.fallback},void 0,void 0)}let gs;function Ub(e){let t;const[n,r]=G(t,void 0);return gs||(gs=new Set),gs.add(r),de(()=>gs.delete(r)),j(()=>{let o;if(o=n()){const i=e.fallback;return typeof i=="function"&&i.length?W(()=>i(o,()=>r())):i}return Db(()=>e.children,r)},void 0,void 0)}const Vb=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Kb=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Vb]),Gb=new Set(["innerHTML","textContent","innerText","children"]),Yb=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Xb=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Zb(e,t){const n=Xb[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Jb=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Qb=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ev={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Q=e=>j(()=>e());function tv(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const u=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],u)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],u),t[o]=n[i]}else{if(!c){c=new Map;let d=a;for(;d<i;)c.set(n[d],d++)}const u=c.get(t[s]);if(u!=null)if(a<u&&u<i){let d=s,p=1,h;for(;++d<o&&d<i&&!((h=c.get(t[d]))==null||h!==u+p);)p++;if(p>u-a){const f=t[s];for(;a<u;)e.insertBefore(n[a++],f)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const jd="_$DX_DELEGATE";function nv(e,t,n,r={}){let o;return Kn(i=>{o=i,t===document?e():k(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function F(e,t,n,r){let o;const i=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},s=t?()=>W(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function Yt(e,t=window.document){const n=t[jd]||(t[jd]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,cv))}}function U(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function rv(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function ov(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function hr(e,t){t==null?e.removeAttribute("class"):e.className=t}function fo(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function iv(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const a=o[i];!a||a==="undefined"||t[a]||(Bd(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){const a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Bd(e,a,!0),n[a]=l)}return n}function Le(e,t,n){if(!t)return n?U(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function sv(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function P(e,t={},n,r){const o={};return r||re(()=>o.children=xi(e,t.children,o.children)),re(()=>typeof t.ref=="function"&&ie(t.ref,e)),re(()=>av(e,t,n,!0,o,!0)),o}function ie(e,t,n){return W(()=>e(t,n))}function k(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return xi(e,t,r,n);re(o=>xi(e,t(),o,n),r)}function av(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=Wd(e,s,null,o[s],n,i,t)}for(const s in t){if(s==="children")continue;const a=t[s];o[s]=Wd(e,s,a,o[s],n,i,t)}}function lv(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Bd(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Wd(e,t,n,r,o,i,s){let a,l,c,u,d;if(t==="style")return Le(e,n,r);if(t==="classList")return iv(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0)}else if(t.slice(0,2)==="on"){const p=t.slice(2).toLowerCase(),h=Jb.has(p);if(!h&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f)}(h||n)&&(fo(e,p,n,h),h&&Yt([p]))}else if(t.slice(0,5)==="attr:")U(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")ov(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=Gb.has(t))||!o&&((u=Zb(t,e.tagName))||(l=Kb.has(t)))||(a=e.nodeName.includes("-")||"is"in s))d&&(t=t.slice(5),l=!0),t==="class"||t==="className"?hr(e,n):a&&!l&&!c?e[lv(t)]=n:(t==="value"||t==="defaultValue")&&(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA")?e[u||t]=n??"":e[u||t]=n;else{const p=o&&t.indexOf(":")>-1&&ev[t.split(":")[0]];p?rv(e,p,t,n):U(e,Yb[t]||t,n)}return n}function cv(e){let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}});try{if(e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r)}finally{e=t=null}}function xi(e,t,n,r,o){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===n))return n;if(s){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=to(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean")n=to(e,n,r);else{if(i==="function")return re(()=>{let a=t();for(;typeof a=="function";)a=a();n=xi(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],l=n&&Array.isArray(n);if(mc(a,t,n,o))return re(()=>n=xi(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=to(e,n,r),s)return n}else l?n.length===0?Hd(e,a,r):tv(e,n,a):(n&&to(e),Hd(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=to(e,n,r,t);to(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function mc(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=mc(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=mc(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return o}function Hd(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function to(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}const uv="http://www.w3.org/2000/svg";function sm(e,t=!1,n=void 0){return t?document.createElementNS(uv,e):document.createElement(e,{is:n})}function dv(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=yu();let i;return ge(()=>{i||(i=tm(o,()=>j(()=>e.children)));const s=r();if(s instanceof HTMLHeadElement){const[a,l]=G(!1),c=()=>l(!0);Kn(u=>k(s,()=>a()?u():i(),null)),de(c)}else{const a=sm(e.isSVG?"g":"div",e.isSVG),l=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),k(l,i),s.appendChild(a),e.ref&&e.ref(a),de(()=>s.contains(a)&&s.removeChild(a))}},void 0,{render:!0}),n}function pv(e,t){const n=j(e);return j(()=>{const r=n();switch(typeof r){case"function":return W(()=>r(t));case"string":const o=Qb.has(r),i=sm(r,o,W(()=>t.is));return P(i,t,o),i}})}function Qr(e){const[,t]=Ki(e,["component"]);return pv(()=>e.component,t)}const fv="https://ui.exponential.at/catalogs/core/v1",hv="https://ui.exponential.at/catalogs/core-lite/v1",mv="Unknown",gv={variant:["default","secondary","outline","ghost","destructive","link"],size:["sm","default","lg","icon"],tone:["neutral","primary","success","warning","danger","info"],gap:["none","xs","sm","md","lg","xl"],align:["start","center","end","stretch"],justify:["start","center","end","between","around","evenly"],textVariant:["body","caption","muted","lead","code","label","title"],headingLevel:["h1","h2","h3","h4"],imageFit:["contain","cover","fill","none","scaleDown"],orientation:["horizontal","vertical"],side:["top","right","bottom","left"],inputType:["text","email","password","number","search","url","tel"],validateOn:["change","blur","submit"],alertType:["info","success","warning","error"],controlSize:["sm","default","lg"],spinnerSize:["xs","sm","default","lg"],tabClosable:["none","hover","always"],groupType:["single","multiple"],rowChevron:["none","right","selector"],rowSurface:["flat","card"],chipShape:["pill","rect"],density:["default","compact"],listDirection:["vertical","horizontal"],chartKind:["bar","stackedBar","line","area","pie","donut","sparkline"],segmentedVariant:["segmented","toggles","outline","bar"],liveTone:["live","attention","done","unread","idle","muted"],menuItemKind:["item","checkbox","separator","label","submenu"],openOn:["press","hover"],menuOpenOn:["press","contextmenu"],live:["off","polite","assertive"],selectable:["none","single","multiple"],cellType:["text","number","date","boolean","badge","slot","currency","percent","relativeTime"],sortDirection:["asc","desc"],imageLoading:["lazy","eager"],scrollDirection:["vertical","horizontal","both"],collapseBelow:["never","sm","md","lg","xl"],codeLanguage:["plain","json","js","ts","tsx","rust","swift","kotlin","python","bash","html","css","sql","yaml","markdown","ansi"],codeToken:["plain","keyword","string","number","comment","punctuation","operator","type","function","property","tag","attribute","success","warning","error"],codeBlockVariant:["default","destructive"],codeBlockSize:["default","sm"],switchSize:["default","compact"],traceStatus:["running","error","pending","done","skipped"],traceSize:["default","sm"],voiceWaveActivity:["idle","listening","thinking","speaking","muted"],voiceWaveSize:["sm","md","lg","xl"],messageSide:["in","out"],messageStatus:["sending","sent","read"],callState:["ringing","connecting","talking","ended"],voiceWaveVariant:["ring","bars"],qrLevel:["L","M","Q","H"],planState:["proposed","running","done","declined"],zoomInitial:["auto","fit","fitWidth","actual"],zoomControls:["auto","always","none"],motionDirection:["forward","reverse","alternate"],motionFit:["contain","cover","fill"],calendarView:["month","week"]},yv={option:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},disabled:{type:"boolean"},description:{type:"string"},image:{type:"url"},count:{type:"number",bindable:!0}}},check:{properties:{condition:{type:"boolean",required:!0,bindable:!0},message:{type:"string",required:!0}}},tab:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},count:{type:"number"}}},menuItem:{properties:{label:{type:"string"},value:{type:"string"},kind:{type:"enum",enum:"menuItemKind",default:"item"},icon:{type:"icon"},shortcut:{type:"string"},checked:{type:"boolean",bindable:!0},destructive:{type:"boolean"},disabled:{type:"boolean"},items:{type:"array",items:{type:"object",shape:"menuItem"},bindable:!0},searchable:{type:"boolean"},placeholder:{type:"string"}}},searchItem:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},identifier:{type:"string"},disabled:{type:"boolean"}}},accordionItem:{properties:{title:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},count:{type:"number"}}},segment:{properties:{value:{type:"number",required:!0},tone:{type:"enum",enum:"tone"},label:{type:"string"}}},series:{properties:{name:{type:"string",required:!0},values:{type:"array",items:{type:"number"},required:!0},tone:{type:"enum",enum:"tone"}}},pageItem:{properties:{title:{type:"string"}}},step:{properties:{label:{type:"string",required:!0},description:{type:"string"}}},column:{properties:{key:{type:"string",required:!0},label:{type:"string",required:!0},type:{type:"enum",enum:"cellType",default:"text"},slot:{type:"string"},width:{type:"number"},align:{type:"enum",values:["start","center","end"],default:"start"},sortable:{type:"boolean",default:!1},currency:{type:"string"},decimals:{type:"number"},truncate:{type:"boolean",default:!1}}},sort:{properties:{key:{type:"string",required:!0},direction:{type:"enum",enum:"sortDirection",required:!0}}},panel:{properties:{min:{type:"number"},max:{type:"number"},collapsible:{type:"boolean"}}},file:{properties:{name:{type:"string",required:!0},size:{type:"number"},type:{type:"string"},url:{type:"url"}}},planStep:{properties:{title:{type:"string",required:!0},detail:{type:"string"},icon:{type:"icon"},status:{type:"enum",enum:"traceStatus"}}},outlineItem:{properties:{id:{type:"string",required:!0},title:{type:"string",required:!0,bindable:!0},count:{type:"number",bindable:!0}}},picture:{properties:{src:{type:"url",required:!0},alt:{type:"string"}}}},bv={names:["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter","bind","mul","div","mod","round","floor","ceil","abs","min","max","today","now","dateAdd","dateDiff","startOf","endOf","weekday","isoWeek","hours","formatDuration","orElse","expr"]},vv={"Accordion.trigger":"ui-chevron-down","Carousel.previous":"ui-chevron-left","Carousel.next":"ui-chevron-right","Checkbox.check":"ui-check","ChipInput.remove":"ui-close","CodeBlock.copy":"ui-copy","CodeBlock.copied":"ui-check","Composer.attachment":"ui-attach","Composer.send":"ui-send","Composer.stop":"ui-stop","DatePicker.trigger":"calendar","DatePicker.previousMonth":"ui-chevron-left","DatePicker.nextMonth":"ui-chevron-right","DateRangePicker.trigger":"calendar","Dialog.close":"ui-close","Menu.check":"ui-check","Menu.submenuIndicator":"ui-chevron-right","FileUpload.icon":"upload","FileUpload.file":"ui-file","FileUpload.remove":"ui-close","Image.fallback":"ui-icon-placeholder","NumberField.decrement":"ui-minus","NumberField.increment":"ui-add","Select.trigger":"ui-selector","Select.search":"search","Select.check":"ui-check","SearchList.search":"search","SearchList.check":"ui-check","Table.sortIcon.asc":"ui-chevron-up","Table.sortIcon.desc":"ui-chevron-down","Tabs.close":"ui-close","Tabs.new":"ui-add","TimePicker.trigger":"ui-clock","Toast.close":"ui-close","Toast.icon.info":"ui-info","Toast.icon.success":"ui-success","Toast.icon.warning":"ui-warning","Toast.icon.error":"ui-error","Unknown.root":"ui-warning","ZoomableImage.zoomOut":"ui-minus","ZoomableImage.zoomIn":"ui-add","ZoomableImage.fit":"ui-fullscreen"},$v=JSON.parse('{"Box":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"style":{"type":"style"},"pressable":{"type":"boolean"}},"events":["press"]},"Stack":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"vertical","responsive":true,"bindable":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"align":{"type":"enum","enum":"align","responsive":true,"bindable":true},"justify":{"type":"enum","enum":"justify","default":"start","responsive":true,"bindable":true},"wrap":{"type":"boolean","default":false,"responsive":true},"style":{"type":"style"}}},"Grid":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"columns":{"type":"number","default":2,"responsive":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"style":{"type":"style"}}},"Card":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"title":{"type":"string"},"description":{"type":"string"},"padded":{"type":"boolean","default":true},"style":{"type":"style"}}},"Separator":{"kind":"macro","group":"layout","lite":true,"children":"none","props":{"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"List":{"kind":"native","group":"layout","lite":true,"children":"many","slots":["section"],"slotScope":"row","props":{"direction":{"type":"enum","enum":"listDirection","default":"vertical"},"gap":{"type":"enum","enum":"gap","default":"none"},"divided":{"type":"boolean","default":false},"sectionBy":{"type":"string"},"stickyHeaders":{"type":"boolean","default":false},"style":{"type":"style"}}},"Resizable":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"horizontal","responsive":true},"sizes":{"type":"array","items":{"type":"number"},"bindable":true},"panels":{"type":"array","items":{"type":"object","shape":"panel"}},"handle":{"type":"boolean","default":false},"style":{"type":"style"}},"events":["change"]},"ScrollArea":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"scrollDirection","default":"vertical"},"maxHeight":{"type":"number"},"style":{"type":"style"}}},"Sidebar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["sidebar"],"props":{"side":{"type":"enum","values":["left","right"],"default":"left"},"width":{"type":"number","default":240},"collapseBelow":{"type":"enum","enum":"collapseBelow","default":"md"},"collapsed":{"type":"boolean","default":false,"bindable":true}}},"SplitView":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["list"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"width":{"type":"number","default":320}},"events":["back"]},"AppBar":{"kind":"macro","group":"layout","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false}},"events":["back"]},"Page":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false},"padded":{"type":"boolean","default":true}},"events":["back"]},"Toolbar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["trailing"],"props":{"gap":{"type":"enum","enum":"gap","default":"sm"}}},"Section":{"kind":"macro","group":"list","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"count":{"type":"number","bindable":true},"icon":{"type":"icon"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":true,"bindable":true},"tint":{"type":"enum","enum":"tone","default":"neutral"},"tree":{"type":"boolean","default":false},"loading":{"type":"boolean","default":false,"bindable":true},"style":{"type":"style"}},"events":["change"]},"Group":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string"},"footer":{"type":"string"}}},"Text":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"textVariant","default":"body"},"align":{"type":"enum","values":["start","center","end"]},"lines":{"type":"number"},"tone":{"type":"enum","enum":"tone"},"shimmer":{"type":"boolean","default":false},"live":{"type":"enum","enum":"live","default":"off"},"style":{"type":"style"}}},"Heading":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"level":{"type":"enum","enum":"headingLevel","default":"h2"}}},"Markdown":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"markdown","required":true,"bindable":true},"lines":{"type":"number"},"style":{"type":"style"}}},"CodeBlock":{"kind":"native","group":"text","lite":true,"children":"none","props":{"code":{"type":"string","required":true,"bindable":true},"language":{"type":"enum","enum":"codeLanguage","default":"plain"},"title":{"type":"string"},"lineNumbers":{"type":"boolean","default":false},"wrap":{"type":"boolean","default":false},"copyable":{"type":"boolean","default":true},"highlight":{"type":"array","items":{"type":"number"}},"maxLines":{"type":"number"},"variant":{"type":"enum","enum":"codeBlockVariant","default":"default","bindable":true},"size":{"type":"enum","enum":"codeBlockSize","default":"default"}}},"Kbd":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"keys":{"type":"string","required":true}}},"Label":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"for":{"type":"string"},"required":{"type":"boolean","default":false}}},"Image":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","bindable":true},"alt":{"type":"string","required":true,"bindable":true},"fit":{"type":"enum","enum":"imageFit","default":"cover"},"width":{"type":"number"},"height":{"type":"number"},"aspectRatio":{"type":"number"},"fallback":{"type":"icon"},"loading":{"type":"enum","enum":"imageLoading","default":"lazy"},"focalX":{"type":"number"},"focalY":{"type":"number"},"style":{"type":"style"}}},"ZoomableImage":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"alt":{"type":"string","required":true,"bindable":true},"naturalWidth":{"type":"number"},"naturalHeight":{"type":"number"},"initial":{"type":"enum","enum":"zoomInitial","default":"auto"},"maxScale":{"type":"number","default":8},"controls":{"type":"enum","enum":"zoomControls","default":"auto"},"scale":{"type":"number","bindable":true},"style":{"type":"style"}},"events":["zoom","tap"]},"Icon":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"icon","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","bindable":true},"label":{"type":"string"}}},"Video":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"poster":{"type":"url"},"durationMs":{"type":"number"},"autoplay":{"type":"boolean","default":false},"aspectRatio":{"type":"number","default":1.7777778},"style":{"type":"style"}}},"AudioPlayer":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"title":{"type":"string"},"durationMs":{"type":"number"}}},"Avatar":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"src":{"type":"url","bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"seed":{"type":"string"}}},"QrCode":{"kind":"native","group":"media","lite":false,"children":"none","props":{"value":{"type":"string","required":true,"bindable":true},"size":{"type":"number","default":160},"level":{"type":"enum","enum":"qrLevel","default":"M"},"label":{"type":"string"}}},"Carousel":{"kind":"native","group":"media","lite":false,"children":"many","props":{"page":{"type":"number","default":0,"bindable":true},"loop":{"type":"boolean","default":false},"indicators":{"type":"boolean","default":true},"counter":{"type":"boolean","default":false},"thumbnails":{"type":"array","items":{"type":"url"}}},"events":["change"]},"Mosaic":{"kind":"macro","group":"media","lite":false,"children":"none","props":{"pictures":{"type":"array","items":{"type":"object","shape":"picture"},"required":true},"label":{"type":"string"}},"events":["select"]},"Tabs":{"kind":"native","group":"navigation","lite":true,"children":"many","props":{"tabs":{"type":"array","items":{"type":"object","shape":"tab"},"required":true},"value":{"type":"string","bindable":true},"fill":{"type":"boolean","default":false},"closable":{"type":"enum","enum":"tabClosable","default":"none"},"addable":{"type":"boolean","default":false}},"events":["change","close","new"]},"Segmented":{"kind":"native","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"variant":{"type":"enum","enum":"segmentedVariant","default":"segmented"},"size":{"type":"enum","enum":"controlSize","default":"default"},"fill":{"type":"boolean","default":false},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}},"events":["change"]},"Accordion":{"kind":"native","group":"navigation","lite":false,"children":"many","props":{"items":{"type":"array","items":{"type":"object","shape":"accordionItem"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true}},"events":["change"]},"Collapsible":{"kind":"macro","group":"navigation","lite":true,"children":"many","props":{"title":{"type":"string","required":true},"open":{"type":"boolean","default":false,"bindable":true},"count":{"type":"number"}},"events":["change"]},"Trace":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"size":{"type":"enum","enum":"traceSize","default":"default"}}},"TraceItem":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string","required":true,"bindable":true},"icon":{"type":"icon"},"description":{"type":"string"},"status":{"type":"enum","enum":"traceStatus"},"size":{"type":"enum","enum":"traceSize","default":"default"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["change"]},"Plan":{"kind":"macro","group":"list","lite":true,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"steps":{"type":"array","items":{"type":"object","shape":"planStep"}},"state":{"type":"enum","enum":"planState","default":"proposed","bindable":true},"progress":{"type":"number","bindable":true},"approveLabel":{"type":"string","default":"$string.yes"},"declineLabel":{"type":"string","default":"$string.no"},"stopLabel":{"type":"string","default":"$string.stop"}},"events":["approve","decline","stop"]},"Pagination":{"kind":"macro","group":"navigation","lite":false,"children":"none","props":{"totalPages":{"type":"number","required":true},"page":{"type":"number","default":1,"bindable":true}},"events":["change"]},"Breadcrumb":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true}},"events":["select"]},"Outline":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"outlineItem"},"required":true},"value":{"type":"string","bindable":true},"caption":{"type":"string"}},"events":["select"]},"Stepper":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"steps":{"type":"array","items":{"type":"object","shape":"step"},"required":true},"current":{"type":"number","default":0,"bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"Dialog":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"dismissible":{"type":"boolean","default":true}},"events":["change"]},"Drawer":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom","responsive":true},"dismissible":{"type":"boolean","default":true},"dragToDismiss":{"type":"boolean","default":true}},"events":["change"]},"DockCard":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["footer"],"props":{"label":{"type":"string","required":true,"bindable":true},"title":{"type":"string","required":true,"bindable":true},"caption":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"icon":{"type":"icon"},"tone":{"type":"enum","enum":"tone","default":"neutral"},"open":{"type":"boolean","default":false,"bindable":true}},"events":["press","change"]},"AlertDialog":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"title":{"type":"string","required":true},"description":{"type":"string"},"confirmLabel":{"type":"string","default":"$string.confirm"},"cancelLabel":{"type":"string","default":"$string.cancel"},"destructive":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["confirm","cancel","change"]},"Popover":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom"},"openOn":{"type":"enum","enum":"openOn","default":"press"}},"events":["change"]},"Tooltip":{"kind":"native","group":"overlay","lite":false,"children":"many","props":{"content":{"type":"string","required":true},"side":{"type":"enum","enum":"side","default":"top"}}},"Menu":{"kind":"native","group":"overlay","lite":false,"children":"one","props":{"label":{"type":"string"},"icon":{"type":"icon"},"items":{"type":"array","items":{"type":"object","shape":"menuItem"},"required":true},"openOn":{"type":"enum","enum":"menuOpenOn","default":"press"}},"events":["select"]},"Toast":{"kind":"native","group":"overlay","lite":false,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"type":{"type":"enum","enum":"alertType","default":"info"},"open":{"type":"boolean","default":true,"bindable":true},"duration":{"type":"number","default":5000},"actionLabel":{"type":"string"},"dismissible":{"type":"boolean","default":true}},"events":["dismiss","action","change"]},"Badge":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"variant","default":"default","bindable":true},"icon":{"type":"icon"}}},"Alert":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"title":{"type":"string","required":true},"message":{"type":"string"},"type":{"type":"enum","enum":"alertType","default":"info"}}},"Chip":{"kind":"macro","group":"feedback","lite":true,"children":"none","slots":["leading"],"props":{"label":{"type":"string","required":true,"bindable":true},"shape":{"type":"enum","enum":"chipShape","default":"pill"},"selected":{"type":"boolean","default":false},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"dot":{"type":"color"},"icon":{"type":"icon"},"image":{"type":"url"},"detail":{"type":"string"},"removable":{"type":"boolean","default":false},"pressable":{"type":"boolean","default":false}},"events":["press","remove"]},"EmptyState":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"icon":{"type":"icon","required":true},"title":{"type":"string","required":true},"description":{"type":"string"},"actionLabel":{"type":"string"},"size":{"type":"enum","values":["page","list"],"default":"page"}},"events":["press"]},"Progress":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"max":{"type":"number","default":100},"label":{"type":"string"},"tone":{"type":"enum","enum":"tone","default":"primary"}}},"Meter":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"segments":{"type":"array","items":{"type":"object","shape":"segment"},"required":true},"max":{"type":"number","default":100},"label":{"type":"string"},"value":{"type":"string"}}},"Ring":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","default":"primary"},"label":{"type":"string"}}},"Spinner":{"kind":"native","group":"feedback","lite":false,"children":"none","props":{"size":{"type":"enum","enum":"spinnerSize","default":"default"},"label":{"type":"string"}}},"Skeleton":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"width":{"type":"string"},"height":{"type":"string"},"rounded":{"type":"boolean","default":false},"rows":{"type":"number"},"rowHeight":{"type":"number"},"dot":{"type":"boolean","default":true}}},"VoiceWave":{"kind":"native","group":"feedback","lite":false,"children":"one","props":{"activity":{"type":"enum","enum":"voiceWaveActivity","default":"idle","bindable":true},"variant":{"type":"enum","enum":"voiceWaveVariant","default":"ring"},"level":{"type":"number","default":0,"bindable":true},"bands":{"type":"array","items":{"type":"number"},"bindable":true},"size":{"type":"enum","enum":"voiceWaveSize","default":"md"},"label":{"type":"string"}}},"CallSurface":{"kind":"macro","group":"media","lite":false,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"avatar":{"type":"url","bindable":true},"state":{"type":"enum","enum":"callState","default":"talking","bindable":true},"activity":{"type":"enum","enum":"voiceWaveActivity","default":"speaking","bindable":true},"level":{"type":"number","bindable":true},"bands":{"type":"array","items":{"type":"number"},"bindable":true},"status":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"muted":{"type":"boolean","default":false,"bindable":true},"speaker":{"type":"boolean","bindable":true}},"events":["mute","speaker","hangUp"]},"Table":{"kind":"native","group":"data","lite":false,"children":"none","slots":["*"],"slotScope":"row","props":{"columns":{"type":"array","items":{"type":"object","shape":"column"},"required":true},"rows":{"type":"array","items":{"type":"object"},"required":true,"bindable":true},"rowKey":{"type":"string","default":"id"},"sort":{"type":"object","shape":"sort","bindable":true},"selectable":{"type":"enum","enum":"selectable","default":"none"},"selected":{"type":"array","items":{"type":"string"},"bindable":true},"caption":{"type":"string"},"emptyText":{"type":"string","default":"$string.noResults"},"striped":{"type":"boolean","default":false},"density":{"type":"enum","enum":"density","default":"default"},"stickyHeader":{"type":"boolean","default":false}},"events":["sort","select","rowPress"]},"Chart":{"kind":"native","group":"data","lite":false,"children":"none","props":{"kind":{"type":"enum","enum":"chartKind","required":true},"categories":{"type":"array","items":{"type":"string"},"bindable":true},"series":{"type":"array","items":{"type":"object","shape":"series"},"required":true,"bindable":true},"title":{"type":"string"},"height":{"type":"number","default":200},"xLabel":{"type":"string"},"yLabel":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"showAxes":{"type":"boolean","default":true},"showGrid":{"type":"boolean","default":true},"showLegend":{"type":"boolean","default":true},"showValues":{"type":"boolean","default":false}}},"Sparkline":{"kind":"macro","group":"data","lite":false,"children":"none","props":{"values":{"type":"array","items":{"type":"number"},"required":true,"bindable":true},"tone":{"type":"enum","enum":"tone","default":"primary"},"height":{"type":"number","default":24}}},"StatTile":{"kind":"macro","group":"data","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true,"bindable":true},"delta":{"type":"string","bindable":true},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"trend":{"type":"array","items":{"type":"number"},"bindable":true}}},"Button":{"kind":"native","group":"action","lite":true,"children":"one","props":{"label":{"type":"string","bindable":true},"icon":{"type":"icon","bindable":true},"href":{"type":"url"},"variant":{"type":"enum","enum":"variant","default":"default"},"size":{"type":"enum","enum":"size","default":"default"},"disabled":{"type":"boolean","default":false,"bindable":true},"loading":{"type":"boolean","default":false},"pendingLabel":{"type":"string"},"submit":{"type":"boolean","default":false},"hold":{"type":"boolean","default":false},"holdingLabel":{"type":"string"}},"events":["press","holdStart","holdEnd","holdCancel"]},"Link":{"kind":"native","group":"action","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"href":{"type":"url"},"external":{"type":"boolean","default":false}},"events":["press"]},"Toggle":{"kind":"native","group":"action","lite":false,"children":"none","props":{"label":{"type":"string","required":true},"icon":{"type":"icon"},"pressed":{"type":"boolean","default":false,"bindable":true},"variant":{"type":"enum","values":["default","outline"],"default":"default"},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Form":{"kind":"native","group":"input","lite":true,"children":"many","props":{"name":{"type":"string","required":true},"disabled":{"type":"boolean","default":false,"bindable":true},"busy":{"type":"boolean","default":false,"bindable":true},"summary":{"type":"boolean","default":false}},"events":["submit","invalid","change"]},"FieldGroup":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"columns":{"type":"number","default":2}}},"FormActions":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"submit":{"type":"string","required":true,"bindable":true},"cancel":{"type":"boolean","default":false},"destructive":{"type":"boolean","default":false}},"events":["cancel"]},"Input":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"type":{"type":"enum","enum":"inputType","default":"text"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Textarea":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"placeholder":{"type":"string"},"rows":{"type":"number","default":3},"autosize":{"type":"boolean","default":false},"maxRows":{"type":"number"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","focus","blur"]},"NumberField":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"value":{"type":"number","bindable":true},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number","default":1},"precision":{"type":"number"},"unit":{"type":"string"},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Checkbox":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Radio":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"value":{"type":"string","bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"vertical"},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"ChoiceTiles":{"kind":"native","group":"input","lite":false,"children":"none","props":{"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"columns":{"type":"number","default":2},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Switch":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"description":{"type":"string"},"disabled":{"type":"boolean","default":false},"size":{"type":"enum","enum":"switchSize","default":"default"}},"events":["change"]},"Slider":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"min":{"type":"number","default":0,"bindable":true},"max":{"type":"number","required":true,"bindable":true},"step":{"type":"number","default":1},"value":{"type":"number","bindable":true}},"events":["change"]},"Rating":{"kind":"macro","group":"input","lite":true,"children":"none","props":{"value":{"type":"number","default":0,"bindable":true},"max":{"type":"number","default":5,"minimum":1,"maximum":100},"readOnly":{"type":"boolean","default":false},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Select":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"source":{"type":"string"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"multiple":{"type":"boolean","default":false},"searchable":{"type":"boolean","default":false},"emptyText":{"type":"string","default":"$string.noResults"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"change"}},"events":["change","search"]},"SearchList":{"kind":"native","group":"input","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"searchItem"},"required":true,"bindable":true},"query":{"type":"string","bindable":true},"placeholder":{"type":"string","default":"$string.search"},"value":{"type":"string","bindable":true},"emptyText":{"type":"string","default":"$string.noResults"},"maxRows":{"type":"number","default":8},"showCount":{"type":"boolean","default":true}},"events":["search","select"]},"ChipInput":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"values":{"type":"array","items":{"type":"string"},"bindable":true},"suggestions":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"placeholder":{"type":"string"},"max":{"type":"number"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change","add","remove"]},"DatePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"DateRangePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"start":{"type":"date","bindable":true},"end":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"TimePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"string","bindable":true},"min":{"type":"string"},"max":{"type":"string"},"step":{"type":"number","default":15},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["change"]},"FileUpload":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"accept":{"type":"string"},"multiple":{"type":"boolean","default":false},"maxSize":{"type":"number"},"files":{"type":"array","items":{"type":"object","shape":"file"},"bindable":true},"hint":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["upload","remove"]},"QrScanner":{"kind":"native","group":"input","lite":false,"children":"none","props":{"hint":{"type":"string","bindable":true},"formats":{"type":"array","items":{"type":"string"},"default":["qr"]},"label":{"type":"string","default":"$string.scanQrCode"},"disabled":{"type":"boolean","default":false}},"events":["scanned"]},"Composer":{"kind":"native","group":"input","lite":true,"children":"none","props":{"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"submitLabel":{"type":"string","default":"$string.send"},"attachments":{"type":"boolean","default":false},"busy":{"type":"boolean","default":false}},"events":["submit","change","stop"]},"Row":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"identifier":{"type":"string","bindable":true},"subtitle":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"value":{"type":"string","bindable":true},"placeholder":{"type":"string"},"icon":{"type":"icon","bindable":true},"chevron":{"type":"enum","enum":"rowChevron","default":"none","bindable":true},"selected":{"type":"boolean","default":false,"bindable":true},"density":{"type":"enum","enum":"density","default":"default"},"surface":{"type":"enum","enum":"rowSurface","default":"flat"},"pressable":{"type":"boolean","default":false},"href":{"type":"url"},"depth":{"type":"number","default":0}},"events":["press"]},"MessageBubble":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["attachment"],"props":{"text":{"type":"markdown","required":true,"bindable":true},"side":{"type":"enum","enum":"messageSide","default":"in"},"time":{"type":"string","bindable":true},"status":{"type":"enum","enum":"messageStatus","bindable":true},"author":{"type":"string","bindable":true}}},"TreeGuides":{"kind":"native","group":"list","lite":true,"children":"none","hidden":true,"props":{"depth":{"type":"number","required":true},"elbowAt":{"type":"number"},"tee":{"type":"boolean","default":false},"passThrough":{"type":"array","items":{"type":"number"}}}},"Unknown":{"kind":"native","group":"feedback","lite":true,"children":"none","hidden":true,"props":{"component":{"type":"string","required":true},"catalogId":{"type":"string"}}},"Motion":{"kind":"native","group":"media","lite":true,"children":"none","props":{"layers":{"type":"array","items":{"type":"object"}},"size":{"type":"array","items":{"type":"number"}},"duration":{"type":"number"},"fps":{"type":"number","default":60},"assets":{"type":"object"},"markers":{"type":"array","items":{"type":"object"}},"lottie":{"type":"object"},"src":{"type":"url"},"autoplay":{"type":"boolean","default":true},"loop":{"type":"boolean","default":true},"plays":{"type":"number"},"direction":{"type":"enum","enum":"motionDirection","default":"forward"},"speed":{"type":"number","default":1},"segment":{"type":"array","items":{"type":"number"}},"marker":{"type":"string"},"progress":{"type":"number","bindable":true},"play":{"type":"boolean","bindable":true,"default":true},"poster":{"type":"number"},"fit":{"type":"enum","enum":"motionFit","default":"contain"},"slots":{"type":"object"},"stateMachine":{"type":"object"},"inputs":{"type":"object","bindable":true},"label":{"type":"string"},"style":{"type":"style"}},"events":["press","hover","visible","complete","state"]},"Calendar":{"kind":"macro","group":"data","lite":true,"children":"none","events":["select","open"],"props":{"source":{"type":"string"},"view":{"type":"enum","enum":"calendarView","default":"month"},"labelField":{"type":"string","default":"title"},"detailField":{"type":"string","default":"detail"},"metaField":{"type":"string","default":"status"},"style":{"type":"style"}}},"Timeline":{"kind":"macro","group":"data","lite":true,"children":"none","events":["open"],"props":{"source":{"type":"string"},"labelField":{"type":"string","default":"title"},"rowTitle":{"type":"string"},"showCount":{"type":"boolean","default":false},"style":{"type":"style"}}},"RecordForm":{"kind":"macro","group":"data","lite":true,"children":"none","props":{"kind":{"type":"string","required":true},"recordId":{"type":"string","bindable":true},"submitLabel":{"type":"string","default":"$string.save"},"readOnly":{"type":"boolean","default":false},"cancel":{"type":"boolean","default":false},"path":{"type":"string"},"fields":{"type":"array","items":{"type":"object"},"host":true},"missing":{"type":"boolean","default":false,"host":true}},"events":["submit","cancel"]},"RecordTable":{"kind":"macro","group":"data","lite":false,"children":"none","props":{"kind":{"type":"string","required":true},"query":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}},"add":{"type":"boolean","default":true},"editable":{"type":"boolean","default":true},"title":{"type":"string","host":true},"cols":{"type":"array","items":{"type":"object","shape":"column"},"host":true},"rows":{"type":"array","items":{"type":"object"},"bindable":true,"host":true},"count":{"type":"string","bindable":true,"host":true},"loading":{"type":"boolean","default":false,"bindable":true,"host":true},"fields":{"type":"array","items":{"type":"object"},"host":true},"path":{"type":"string","host":true},"editorOpen":{"type":"boolean","default":false,"bindable":true,"host":true},"editorId":{"type":"string","bindable":true,"host":true},"deleteOpen":{"type":"boolean","default":false,"bindable":true,"host":true},"missing":{"type":"boolean","default":false,"host":true}}}}'),xv={id:fv,liteId:hv,unknownComponent:mv,enums:gv,defs:yv,functions:bv,builtinIcons:vv,components:$v},wv="VAPP-85: the token NAMES the core catalog's macros and Box styles reference as `$<group>.<name>` (e.g. `$color.primary`, `$spacing.md`). VALUES come from a theme (VAPP-92); this file only fixes the vocabulary. `color` = the shadcn semantic set plus success/warning/info and the eight chart hues (round 1 added chart6..8); `spacing`/`radius`/`type` mirror packages/design-tokens' scales by NAME (xl2 because 2xl is not an identifier in Swift/Kotlin/Rust); `control` = the per-kind control heights the VAPP-4 spike asked for instead of px (round 1 adds `appBar`, `tabBar`, `toast`); `shadow` = the boxShadow presets, ALSO the elevation scale (none < sm < md < lg < xl: flat, card, popover, dialog, toast; paint order inside a layer stays tree order, overlays stack by layer, never by zIndex); `opacity` = the text-emphasis ladder; VAPP-92 adds `border` (the border-width ladder, px) and `motion` (durations, ms). Round 1 (docs/round-1-contract.md) adds `breakpoint` (px, the ONLY tokens a style CONDITION may reference: `\"@media (min-width: $breakpoint.md)\"`; resolved against the theme before matching), `ease` (cubic-bezier control points [x1, y1, x2, y2], referenced by `transitionEasing`) and `density` (multipliers over `control` and `spacing` for the surface density `compact`/`comfortable`; `default` = 1, never a token). Round 2 (docs/round-2-contract.md §2) adds `blur` (px radii, the ONLY values `backdropBlur` takes). EXP-1259 (EXP-1243, packages/design-tokens motion.scale) adds `scale` (unitless multipliers the PAINTERS read, never a style value): `press` = what a pressed button scales to, `popoverFrom` = what a popover or menu scales FROM while it fades in (never from 0); reduce motion = no scale. VAPP-162 appends `type.family.serif` (the platform's system serif, `ui-serif` in every built-in theme). Every group is append-only: a theme is validated against these names.",kv=["background","foreground","card","cardForeground","popover","popoverForeground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","accent","accentForeground","destructive","destructiveForeground","success","successForeground","warning","warningForeground","info","infoForeground","border","input","ring","chart1","chart2","chart3","chart4","chart5","chart6","chart7","chart8"],Sv=["none","xxs","xs","sm","md","lg","xl","xl2","xl3"],Cv=["none","sm","md","lg","xl","xl2","xl3","full"],Av={size:["xs","sm","base","lg","xl","xl2","xl3"],lineHeight:["xs","sm","base","lg","xl","xl2","xl3"],weight:["regular","medium","semibold","bold"],family:["sans","mono","serif"]},_v=["buttonSm","buttonMd","buttonLg","buttonIcon","input","textarea","row","rowCompact","pill","badge","chip","toggle","switch","checkbox","slider","progress","meter","avatarSm","avatarMd","avatarLg","iconSm","iconMd","iconLg","hairline","appBar","tabBar","toast"],Ov=["none","sm","md","lg","xl"],Tv=["primary","secondary","tertiary","quaternary","disabled"],Mv=["none","hairline","thick"],Ev=["fast","standard","slow"],Iv=["sm","md","lg","xl"],Pv=["standard","decelerate","accelerate"],Dv=["compact","comfortable"],Rv=["sm","md","lg","xl"],Fv=["press","popoverFrom"],zv={$comment:wv,color:kv,spacing:Sv,radius:Cv,type:Av,control:_v,shadow:Ov,opacity:Tv,border:Mv,motion:Ev,breakpoint:Iv,ease:Pv,density:Dv,blur:Rv,scale:Fv},Nv="https://a2ui.org/specification/v0_9/basic_catalog.json",Lv="v0.9",jv="ui-icon-placeholder",Bv={Text:{to:"Text",props:{text:"text"},transform:"textVariant"},Image:{to:"Image",props:{src:"url",alt:{from:"description",default:""},fit:{from:"fit",default:"cover"}},transform:"imageVariant"},Icon:{to:"Icon",props:{},transform:"iconName"},Video:{to:"Video",props:{src:"url"}},AudioPlayer:{to:"AudioPlayer",props:{src:"url",title:"description"}},Row:{to:"Stack",children:"children",props:{direction:{const:"horizontal"},justify:{from:"justify",map:{spaceBetween:"between",spaceAround:"around",spaceEvenly:"evenly",stretch:"start"},default:"start"},align:{from:"align",default:"stretch"},gap:{const:"sm"}}},Column:{to:"Stack",children:"children",props:{direction:{const:"vertical"},justify:{from:"justify",map:{spaceBetween:"between",spaceAround:"around",spaceEvenly:"evenly",stretch:"start"},default:"start"},align:{from:"align",default:"stretch"},gap:{const:"sm"}}},List:{to:"List",children:"children",props:{direction:{from:"direction",default:"vertical"},gap:{const:"sm"}}},Card:{to:"Card",children:"child",props:{}},Tabs:{to:"Tabs",props:{},transform:"tabs"},Modal:{to:"Dialog",props:{},transform:"modal"},Divider:{to:"Separator",props:{orientation:{from:"axis",default:"horizontal"}}},Button:{to:"Button",props:{variant:{from:"variant",map:{primary:"default",default:"secondary",borderless:"ghost"},default:"secondary"}},transform:"buttonChild"},TextField:{to:"Input",props:{label:"label",value:"value",checks:"checks"},transform:"textField"},CheckBox:{to:"Checkbox",props:{label:"label",checked:"value",checks:"checks"},transform:"fieldName"},ChoicePicker:{to:"Radio",props:{label:"label",options:"options",checks:"checks"},transform:"choicePicker"},Slider:{to:"Slider",props:{label:"label",min:{from:"min",default:0},max:"max",value:"value"}},DateTimeInput:{to:"DatePicker",props:{label:"label",value:"value",min:"min",max:"max"},transform:"fieldName"}},Wv={accountCircle:"ui-assignee",add:"ui-add",arrowBack:"ui-back",arrowForward:"ui-arrow-right",attachFile:"ui-attach",calendarToday:"calendar",call:"phone",camera:"camera",check:"ui-check",close:"ui-close",delete:"ui-delete",download:"ui-download",edit:"ui-edit",event:"ui-due-date",error:"ui-error",fastForward:"media-fast-forward",favorite:"heart",favoriteOff:"ui-favorite-off",folder:"ui-folder",help:"ui-help",home:"house",info:"ui-info",locationOn:"map-pin",lock:"ui-private",lockOpen:"ui-unlock",mail:"ui-mail",menu:"ui-menu",moreVert:"ui-more-vertical",moreHoriz:"ui-more",notificationsOff:"ui-unsubscribe",notifications:"ui-subscribe",pause:"run-pause",payment:"credit-card",person:"ui-avatar-placeholder",phone:"smartphone",photo:"image",play:"action-run",print:"ui-print",refresh:"ui-refresh",rewind:"media-rewind",search:"nav-search",send:"ui-send",settings:"nav-settings",share:"ui-share",shoppingCart:"shopping-cart",skipNext:"media-skip-next",skipPrevious:"media-skip-previous",star:"star",starHalf:"ui-star-half",starOff:"ui-star-off",stop:"ui-stop",upload:"sc-push",visibility:"ui-watch",visibilityOff:"ui-hide",volumeDown:"media-volume-down",volumeMute:"media-volume-mute",volumeOff:"media-volume-off",volumeUp:"media-volume-up",warning:"ui-warning"},bu={from:Nv,version:Lv,placeholderIcon:jv,components:Bv,icons:Wv},Hv=JSON.parse('{"Stack":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"flexWrap":{"$cond":["props.wrap","wrap","nowrap"]},"gap":"$spacing.{props.gap|md}","alignItems":{"$coalesce":["{props.align}",{"$map":{"from":"props.direction","cases":{"horizontal":"center"},"default":"stretch"}}]},"justifyContent":{"$map":{"from":"props.justify","cases":{"between":"space-between","around":"space-around","evenly":"space-evenly"},"default":"{props.justify|start}"}}},"children":["$children"]}},"Grid":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))","gap":"$spacing.{props.gap|md}"},"children":["$children"]}},"Card":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.xl","overflow":"hidden"},"children":[{"part":"header","component":"Box","$any":["props.title","props.description"],"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","paddingTop":"$spacing.lg","paddingHorizontal":"$spacing.lg"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"title"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Separator":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"separator"},"style":{"alignSelf":"stretch","flexShrink":0,"width":{"$map":{"from":"props.orientation","cases":{"vertical":1},"default":"auto"}},"height":{"$map":{"from":"props.orientation","cases":{"vertical":"auto"},"default":1}}}}},"Section":{"recipeProps":["tint","tree","open","collapsible"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.sm"},"children":[{"part":"header","component":"Box","$if":["props.title",{"$not":"props.collapsible"}],"$a11y":{"role":"heading","level":3},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"header","component":"Box","$if":["props.title","props.collapsible"],"$a11y":{"role":"button","expanded":"{props.open|true}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":{"$not":"props.open|true"}},"$set":{"press":{"prop":"open","value":{"$not":"props.open|true"}}},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"body","component":"List","$if":"props.open|true","$a11y":{"role":{"$cond":["props.tree","tree","list"]}},"props":{"divided":true,"gap":"none","style":"{props.style}"},"children":["$children"]}]}},"Group":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}","description":"{props.footer}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"label"},"style":{"paddingHorizontal":"$spacing.md"}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.lg","overflow":"hidden"},"children":["$children"]},{"part":"footer","component":"Text","$if":"props.footer","props":{"text":"{props.footer}","variant":"muted"},"style":{"paddingHorizontal":"$spacing.md"}}]}},"Heading":{"recipeProps":["level"],"root":{"part":"root","component":"Text","$a11y":{"role":"heading","level":{"$map":{"from":"props.level","cases":{"h1":1,"h2":2,"h3":3,"h4":4},"default":2}}},"props":{"text":"{props.text}","variant":"title"}}},"Collapsible":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":"$control.row","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.md"},"$recipe":{"open":"{props.open|false}"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$recipe":{"open":"{props.open|false}"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}}]},{"part":"body","component":"Box","$if":"props.open","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","paddingHorizontal":"$spacing.sm"},"children":["$children"]}]}},"Trace":{"recipeProps":["size"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0},"children":["$children"]}},"TraceItem":{"recipeProps":["status","size","collapsible","open"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"line","component":"Box","$if":{"$not":"props.collapsible"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}}]},{"part":"line","component":"Box","$if":"props.collapsible","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"chevron","component":"Icon","props":{"name":"trace-chevron","size":"sm"},"$recipe":{"open":"{props.open|false}"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0,"marginLeft":{"$map":{"from":"props.size","cases":{"sm":-2},"default":-4}}}}]},{"part":"content","component":"Box","$if":["props.collapsible","props.open"],"style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0,"marginTop":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"marginBottom":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}},"marginLeft":{"$map":{"from":"props.size","cases":{"sm":6},"default":7}},"borderLeftWidth":1,"paddingLeft":{"$map":{"from":"props.size","cases":{"sm":13},"default":16}},"paddingRight":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}}},"children":["$children"]}]}},"Pagination":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.pagination"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"prev","component":"Button","props":{"icon":"ui-chevron-left","variant":"outline","size":"icon","label":"$string.previous","disabled":{"$not":{"$lt":[1,"{props.page|1}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}}}},{"part":"label","component":"Text","props":{"text":"{props.page|1} / {props.totalPages}","variant":"muted"},"$a11y":{"role":"status","label":{"$fill":["$string.pageOf",{"page":"{props.page|1}","total":"{props.totalPages}"}]}}},{"part":"next","component":"Button","props":{"icon":"ui-chevron-right","variant":"outline","size":"icon","label":"$string.next","disabled":{"$not":{"$lt":["{props.page|1}","{props.totalPages}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}}}}]}},"Badge":{"recipeProps":["variant"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","height":"$control.badge","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.full","alignSelf":"flex-start"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.text}","variant":"caption","lines":1}}]}},"Alert":{"recipeProps":["type"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$map":{"from":"props.type","cases":{"warning":"alert","error":"alert"},"default":"status"}}},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.lg"},"children":[{"part":"icon","component":"Icon","props":{"name":{"$map":{"from":"props.type","cases":{"success":"ui-success","warning":"ui-warning","error":"ui-error"},"default":"ui-info"}},"size":"sm","tone":{"$map":{"from":"props.type","cases":{"success":"success","warning":"warning","error":"danger"},"default":"info"}}}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label"}},{"part":"message","component":"Text","$if":"props.message","props":{"text":"{props.message}","variant":"muted"}}]}]}},"Chip":{"recipeProps":["shape","selected","tone"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"pressed":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs","paddingHorizontal":"$spacing.sm","alignSelf":"flex-start","height":{"$map":{"from":"props.shape","cases":{"rect":"$control.chip"},"default":"$control.pill"}},"borderRadius":{"$map":{"from":"props.shape","cases":{"rect":"$radius.md"},"default":"$radius.full"}}},"children":["$slot:leading",{"part":"dot","component":"Box","$if":"props.dot","style":{"width":8,"height":8,"borderRadius":"$radius.full","backgroundColor":"{props.dot}","flexShrink":0}},{"part":"image","component":"Image","$if":"props.image","props":{"src":"{props.image}","alt":"{props.label}","width":16,"height":16,"fit":"cover"},"style":{"borderRadius":"$radius.full"}},{"part":"icon","component":"Icon","$if":["props.icon","!props.image"],"props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","lines":1}},{"part":"detail","component":"Text","$if":"props.detail","props":{"text":"{props.detail}","variant":"muted","lines":1}},{"part":"remove","component":"Button","$if":"props.removable","props":{"icon":"ui-close","variant":"ghost","size":"icon","label":"$string.remove"},"$on":{"press":"remove"}}]}},"EmptyState":{"recipeProps":["size"],"root":{"part":"root","component":"Box","$a11y":{"role":"status"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"list":"$spacing.xs"},"default":"$spacing.md"}},"paddingVertical":{"$map":{"from":"props.size","cases":{"list":"$spacing.xl"},"default":"$spacing.xl3"}},"paddingHorizontal":{"$map":{"from":"props.size","cases":{"list":"$spacing.md"},"default":"$spacing.xl"}}},"children":[{"part":"disc","component":"Box","$if":{"$not":{"$eq":["{props.size|page}","list"]}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":48,"height":48,"borderRadius":"$radius.full","flexShrink":0},"children":[{"part":"icon","component":"Icon","props":{"name":"{props.icon}","size":"lg","tone":"neutral"}}]},{"part":"icon","component":"Icon","$if":{"$eq":["{props.size|page}","list"]},"props":{"name":"{props.icon}","size":"default","tone":"neutral"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":{"$map":{"from":"props.size","cases":{"list":"muted"},"default":"title"}},"align":"center"}},{"part":"description","component":"Text","$if":["props.description",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"text":"{props.description}","variant":"muted","align":"center"}},{"part":"action","component":"Button","$if":["props.actionLabel",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"label":"{props.actionLabel}","variant":"outline"},"$on":{"press":"press"}}]}},"Progress":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","$a11y":{"role":"progressbar","label":"{props.label}","valueNow":"{props.value}","valueMin":0,"valueMax":"{props.max|100}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"}},{"part":"track","component":"Box","style":{"height":"$control.progress","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"fill","component":"Box","style":{"height":"100%","width":{"$percent":["{props.value}","{props.max|100}"]},"borderRadius":"$radius.full"}}]}]}},"Meter":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"meter","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"header","component":"Box","$any":["props.label","props.value"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"},"style":{"flexGrow":1,"minWidth":0}},{"part":"value","component":"Text","$if":"props.value","props":{"text":"{props.value}","variant":"muted"}}]},{"part":"track","component":"Box","style":{"display":"flex","flexDirection":"row","height":"$control.meter","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"segment","component":"Box","$each":"props.segments","$as":"item","style":{"height":"100%","width":{"$percent":["{item.value}","{props.max|100}"]}},"$recipe":{"tone":"{item.tone|neutral}"}}]}]}},"Row":{"recipeProps":["selected","density","surface","depth"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"selected":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}","href":"{props.href}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":{"$map":{"from":"props.density","cases":{"compact":"$control.rowCompact"},"default":"$control.row"}},"paddingHorizontal":"$spacing.md","borderRadius":{"$map":{"from":"props.surface","cases":{"card":"$radius.lg"},"default":"$radius.md"}}},"children":[{"part":"guides","component":"TreeGuides","$if":{"$lt":[0,"{props.depth|0}"]},"props":{"depth":"{props.depth}"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"identifier","component":"Text","$if":"props.identifier","props":{"text":"{props.identifier}","variant":"code","lines":1},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0,"paddingVertical":{"$map":{"from":"props.surface","cases":{"card":"$spacing.md"},"default":"$spacing.xs"}}},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"body","lines":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1,"hostLinks":true}}]},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}},{"part":"value","component":"Text","$any":["props.value","props.placeholder"],"props":{"text":{"$coalesce":["{props.value}","{props.placeholder}"]},"variant":{"$cond":["props.value","body","muted"]},"lines":1,"align":"end"}},"$slot:trailing",{"part":"chevron","component":"Icon","$if":{"$not":{"$eq":["{props.chevron|none}","none"]}},"props":{"name":{"$map":{"from":"props.chevron","cases":{"selector":"ui-selector"},"default":"ui-chevron-right"}},"size":"sm","tone":"neutral"}}]}},"ScrollArea":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"region"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"overflowX":{"$map":{"from":"props.direction","cases":{"horizontal":"auto","both":"auto"},"default":"hidden"}},"overflowY":{"$map":{"from":"props.direction","cases":{"vertical":"auto","both":"auto"},"default":"hidden"}},"minWidth":0,"minHeight":0,"maxHeight":"{props.maxHeight}"},"children":["$children"]}},"Sidebar":{"recipeProps":["side"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.side","cases":{"right":"row-reverse"},"default":"row"}},"alignItems":"stretch","gap":"$spacing.lg","width":"100%","minHeight":0},"children":[{"part":"sidebar","component":"Box","$if":"!props.collapsed","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|240}","flexShrink":0,"minHeight":0,"@media (max-width: $breakpoint.{props.collapseBelow|md})":{"$cond":[{"$not":{"$eq":["{props.collapseBelow|md}","never"]}},{"display":"none"}]}},"children":["$slot:sidebar"]},{"part":"main","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0},"children":["$children"]}]}},"AppBar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"banner"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.appBar","paddingHorizontal":"$spacing.md","width":"100%"},"children":[{"part":"back","component":"Button","$if":"props.back","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"}},"$slot:leading",{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"title","lines":1},"$a11y":{"role":"heading","level":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1}}]},"$slot:trailing"]}},"Kbd":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","height":"$control.badge","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","alignSelf":"flex-start"},"children":[{"part":"label","component":"Text","props":{"text":"{props.keys}","variant":"code","lines":1}}]}},"Label":{"recipeProps":["required"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs"},"children":[{"part":"text","component":"Text","props":{"text":"{props.text}","variant":"label"}},{"part":"mark","component":"Text","$if":"props.required","props":{"text":"*","variant":"label","tone":"danger"}}]}},"Breadcrumb":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.breadcrumb"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","flexWrap":"wrap","gap":"$spacing.xs"},"children":[{"part":"item","component":"Box","$each":"props.items","$as":"item","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs"},"$recipe":{"current":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"children":[{"part":"separator","component":"Icon","$if":{"$lt":[0,"{index}"]},"props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$a11y":{"hidden":true}},{"part":"link","component":"Button","$if":{"$not":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"props":{"label":"{item.label}","icon":"{item.icon}","variant":"link","size":"sm"},"$on":{"press":"select"},"$context":{"value":"{item.value}"}},{"part":"current","component":"Text","$if":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]},"props":{"text":"{item.label}","variant":"label","lines":1},"$a11y":{"current":"page"}}]}]}},"Outline":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"{props.caption|$string.outline}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"caption","lines":1},"$a11y":{"hidden":true}},{"part":"row","component":"Box","$each":"props.items","$as":"item","props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs","position":"relative","height":"$control.rowCompact","paddingHorizontal":"$spacing.sm","minWidth":0,"overflow":"hidden","cursor":"pointer"},"$recipe":{"active":{"$eq":["{item.id}","{props.value}"]}},"$a11y":{"role":"link","label":{"$cond":["item.count",{"$fill":["$string.outlineRow",{"title":"{item.title}","count":"{item.count}"}]},"{item.title}"]},"current":{"$cond":[{"$eq":["{item.id}","{props.value}"]},"location",false]}},"$on":{"press":"select"},"$context":{"id":"{item.id}"},"$set":{"press":{"prop":"value","value":"{item.id}"}},"children":[{"part":"bar","component":"Box","$if":{"$eq":["{item.id}","{props.value}"]},"$a11y":{"hidden":true},"style":{"position":"absolute","insetInlineStart":0,"top":0,"bottom":0,"width":2}},{"part":"title","component":"Text","props":{"text":"{item.title}","lines":1},"$recipe":{"active":{"$eq":["{item.id}","{props.value}"]}},"style":{"flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0}},{"part":"count","component":"Text","$if":"item.count","props":{"text":"· {item.count}","variant":"caption","lines":1},"$a11y":{"hidden":true},"style":{"flexShrink":0}}]}]}},"Stepper":{"recipeProps":["orientation"],"root":{"part":"root","component":"Box","$a11y":{"role":"list"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"column"},"default":"row"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"stretch"},"default":"flex-start"}},"gap":"$spacing.md","width":"100%"},"children":[{"part":"step","component":"Box","$each":"props.steps","$as":"step","style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"row"},"default":"column"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"flex-start"},"default":"center"}},"gap":"$spacing.xs","flexGrow":1,"flexBasis":0,"minWidth":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"$a11y":{"role":"listitem","current":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"step",false]},"label":{"$fill":[{"$cond":[{"$lt":["{index}","{props.current|0}"]},"$string.stepDone",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"$string.stepCurrent","$string.stepUpcoming"]}]},{"step":{"$add":["{index}",1]},"total":"{len(props.steps)}","label":"{step.label}"}]}},"children":[{"part":"marker","component":"Box","$a11y":{"hidden":true},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":"$control.iconLg","height":"$control.iconLg","borderRadius":"$radius.full","flexShrink":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"children":[{"part":"check","component":"Icon","$if":{"$lt":["{index}","{props.current|0}"]},"props":{"name":"ui-check","size":"sm"}},{"part":"number","component":"Text","$if":{"$not":{"$lt":["{index}","{props.current|0}"]}},"props":{"text":{"$text":{"$add":["{index}",1]}},"variant":"caption"},"$recipe":{"status":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"label","component":"Text","props":{"text":"{step.label}","variant":"label","lines":1},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}}},{"part":"description","component":"Text","$if":"step.description","props":{"text":"{step.description}","variant":"muted","lines":2}}]}]}]}},"Rating":{"recipeProps":["size","readOnly"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.readOnly","img","group"]},"label":{"$cond":["props.readOnly",{"$fill":["$string.ratingValue",{"value":"{props.value|0}","max":"{props.max|5}"}]}]}},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","alignSelf":"flex-start"},"children":[{"part":"star","component":"Box","$each":"range(props.max|5)","$as":"star","props":{"pressable":{"$not":"props.readOnly"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}},"$a11y":{"role":{"$cond":["props.readOnly","hidden","button"]},"label":{"$fill":["$string.ratingStar",{"value":{"$add":["{index}",1]},"max":"{props.max|5}"}]},"pressed":{"$eq":[{"$add":["{index}",1]},"{props.value|0}"]}},"$on":{"press":"change"},"$context":{"value":{"$add":["{index}",1]}},"$set":{"press":{"prop":"value","value":{"$add":["{index}",1]}}},"children":[{"part":"icon","component":"Icon","props":{"name":"star","size":"{props.size|default}"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}}}]}]}},"AlertDialog":{"recipeProps":["destructive"],"root":{"part":"root","component":"Dialog","$a11y":{"role":"alertdialog"},"props":{"title":"{props.title}","description":"{props.description}","open":"{props.open|false}","dismissible":false},"slots":{"trigger":"$slot:trigger","footer":{"part":"footer","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"cancel","component":"Button","props":{"label":"{props.cancelLabel|$string.cancel}","variant":"outline"},"$a11y":{"autoFocus":true},"$on":{"press":"cancel"},"$set":{"press":{"prop":"open","value":false}}},{"part":"confirm","component":"Button","props":{"label":"{props.confirmLabel|$string.confirm}","variant":{"$cond":["props.destructive","destructive","default"]}},"$on":{"press":"confirm"},"$set":{"press":{"prop":"open","value":false}}}]}},"$on":{"change":"change"},"children":["$children"]}},"DockCard":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","label":"{props.label}: {props.title}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.xl"},"$on":{"press":"press"},"$set":{"press":{"prop":"open","value":true}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm","tone":"{props.tone|neutral}"},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","tone":"{props.tone|neutral}","lines":1}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}}]},{"part":"row","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}}]}]}]},{"part":"sheet","component":"Drawer","props":{"title":"{props.label}","description":"{props.caption}","open":"{props.open|false}","side":"bottom"},"slots":{"footer":"$slot:footer"},"$on":{"change":"change"},"children":["$children"]}]}},"Sparkline":{"recipeProps":["tone"],"root":{"part":"root","component":"Chart","props":{"kind":"sparkline","series":[{"name":"","values":"{props.values}","tone":"{props.tone|primary}"}],"height":"{props.height|24}","showAxes":false,"showGrid":false,"showLegend":false},"style":{"width":"100%"}}},"Page":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"width":"100%"},"children":[{"part":"header","component":"AppBar","props":{"title":"{props.title}","subtitle":"{props.subtitle}","back":"{props.back|false}"},"slots":{"leading":"$slot:leading","trailing":"$slot:trailing"},"$on":{"back":"back"}},{"part":"body","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"overflowY":"auto","gap":"$spacing.lg","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Toolbar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","alignItems":"flex-end","gap":"$spacing.{props.gap|sm}","width":"100%"},"children":["$children",{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]}},"SplitView":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"stretch","width":"100%","flexGrow":1,"minHeight":0},"children":[{"part":"list","component":"Box","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|320}","flexShrink":0,"minHeight":0,"overflowY":"auto","@media (max-width: $breakpoint.md)":{"width":"100%","flexShrink":1,"display":{"$cond":["props.open","none","flex"]}}},"children":["$slot:list"]},{"part":"divider","component":"Separator","props":{"orientation":"vertical"},"style":{"@media (max-width: $breakpoint.md)":{"display":"none"}}},{"part":"detail","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0,"@media (max-width: $breakpoint.md)":{"display":{"$cond":["props.open","flex","none"]}}},"children":[{"part":"backBar","component":"Box","style":{"display":"none","flexDirection":"row","alignItems":"center","height":"$control.appBar","paddingHorizontal":"$spacing.sm","@media (max-width: $breakpoint.md)":{"display":"flex"}},"children":[{"part":"back","component":"Button","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"},"$set":{"press":{"prop":"open","value":false}}}]},"$children"]}]}},"FieldGroup":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"grid","gridTemplateColumns":"repeat(1, minmax(0, 1fr))","gap":"$spacing.md","alignItems":"start","@media (min-width: $breakpoint.md)":{"gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))"}},"children":["$children"]}},"FormActions":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","justifyContent":"flex-end","alignItems":"center","gap":"$spacing.sm","width":"100%"},"children":["$children",{"part":"cancel","component":"Button","$if":"props.cancel","props":{"label":"$string.cancel","variant":"outline"},"$on":{"press":"cancel"}},{"part":"submit","component":"Button","props":{"label":"{props.submit}","variant":{"$cond":["props.destructive","destructive","default"]},"submit":true}}]}},"StatTile":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"muted","lines":1},"style":{"flexGrow":1,"flexShrink":1,"minWidth":0}},{"part":"delta","component":"Text","$if":"props.delta","props":{"text":"{props.delta}","variant":"caption","tone":"{props.tone|neutral}"}}]},{"part":"value","component":"Text","props":{"text":"{props.value}","variant":"title","lines":1}},{"part":"trend","component":"Sparkline","$if":"props.trend","props":{"values":"{props.trend}","height":32}}]}]}},"CallSurface":{"recipeProps":["state","muted"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.name}"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","width":"100%","height":"100%","minHeight":0,"paddingHorizontal":"$spacing.xl","paddingTop":"$spacing.xl3","paddingBottom":"$spacing.xl3"},"children":[{"part":"head","component":"Box","style":{"display":"flex","flexDirection":"column","alignItems":"center","width":"100%","maxWidth":384,"minWidth":0},"children":[{"part":"wave","component":"VoiceWave","props":{"activity":{"$cond":["props.muted","muted",{"$map":{"from":"props.state","cases":{"ringing":"thinking","connecting":"thinking","ended":"idle"},"default":"{props.activity|speaking}"}}]},"level":"{props.level}","bands":"{props.bands}","size":"xl"},"$a11y":{"hidden":true},"children":[{"part":"avatar","component":"Avatar","props":{"name":"{props.name}","src":"{props.avatar}","size":"lg"}}]},{"part":"name","component":"Text","$a11y":{"role":"heading","level":2},"props":{"text":"{props.name}","variant":"title","align":"center","lines":1},"style":{"marginTop":"$spacing.sm","maxWidth":"100%"}},{"part":"status","component":"Text","$if":"props.status","props":{"text":"{props.status}","variant":"muted","align":"center","lines":1},"style":{"marginTop":"$spacing.xs"}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","align":"center","lines":4,"live":"polite"},"style":{"marginTop":"$spacing.xl2","maxWidth":"100%"}}]},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minHeight":"$spacing.xl"}},{"part":"controls","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"center","alignItems":"flex-start","gap":32},"children":[{"part":"muteTip","component":"Tooltip","$if":{"$not":{"$eq":["{props.state|talking}","ringing"]}},"props":{"content":{"$cond":["props.muted","$string.unmute","$string.mute"]}},"children":[{"part":"mute","component":"Button","props":{"variant":"secondary","size":"icon"},"$a11y":{"label":{"$cond":["props.muted","$string.unmute","$string.mute"]}},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"mute"},"$context":{"muted":"{!props.muted}"},"$set":{"press":{"prop":"muted","value":"{!props.muted}"}},"children":[{"part":"muteIcon","component":"Icon","props":{"name":{"$cond":["props.muted","call-unmute","call-mute"]},"size":"lg"}}]}]},{"part":"speakerTip","component":"Tooltip","$if":[{"$not":{"$eq":["{props.state|talking}","ringing"]}},{"$not":{"$eq":["{props.speaker|none}","none"]}}],"props":{"content":{"$cond":["props.speaker","$string.speaker","$string.speakerOff"]}},"children":[{"part":"speaker","component":"Button","props":{"variant":"secondary","size":"icon"},"$a11y":{"label":{"$cond":["props.speaker","$string.speaker","$string.speakerOff"]}},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"speaker"},"$context":{"speaker":"{!props.speaker}"},"$set":{"press":{"prop":"speaker","value":"{!props.speaker}"}},"children":[{"part":"speakerIcon","component":"Icon","props":{"name":{"$cond":["props.speaker","call-speaker","call-speaker-off"]},"size":"lg"}}]}]},{"part":"endTip","component":"Tooltip","$if":{"$not":{"$eq":["{props.state|talking}","ringing"]}},"props":{"content":"$string.endCall"},"children":[{"part":"end","component":"Button","props":{"variant":"destructive","size":"icon"},"$a11y":{"label":"$string.endCall"},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"hangUp"},"children":[{"part":"endIcon","component":"Icon","props":{"name":"call-end","size":"lg"}}]}]},{"part":"cancel","component":"Box","$if":{"$eq":["{props.state|talking}","ringing"]},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xs"},"children":[{"part":"end","component":"Button","props":{"variant":"destructive","size":"icon"},"$a11y":{"label":"$string.cancel"},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"hangUp"},"children":[{"part":"endIcon","component":"Icon","props":{"name":"call-end","size":"lg"}}]},{"part":"cancelLabel","component":"Text","props":{"text":"$string.cancel","variant":"caption"},"$a11y":{"hidden":true}}]}]}]}},"MessageBubble":{"recipeProps":["side","status"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":{"$coalesce":["{props.author}","{props.time}"]}},"style":{"display":"flex","flexDirection":"column","alignItems":{"$map":{"from":"props.side","cases":{"out":"flex-end"},"default":"flex-start"}},"width":"100%","minWidth":0},"children":[{"part":"bubble","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","maxWidth":"80%","minWidth":0,"paddingHorizontal":"$spacing.md","paddingVertical":"$spacing.sm","borderRadius":"$radius.xl","borderTopLeftRadius":{"$map":{"from":"props.side","cases":{"out":"$radius.xl"},"default":6}}},"children":[{"part":"author","component":"Text","$if":["props.author",{"$not":{"$eq":["{props.side|in}","out"]}}],"props":{"text":"{props.author}","variant":"caption","lines":1}},"$slot:attachment",{"part":"text","component":"Markdown","props":{"text":"{props.text}"}},{"part":"footer","component":"Box","$any":["props.time","props.status"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","justifyContent":"flex-end","alignSelf":"flex-end","gap":"$spacing.xs"},"children":[{"part":"time","component":"Text","$if":"props.time","props":{"text":"{props.time}","variant":"caption","lines":1}},{"part":"status","component":"Icon","$if":["props.status",{"$eq":["{props.side|in}","out"]}],"props":{"name":{"$map":{"from":"props.status","cases":{"sending":"ui-clock","sent":"ui-check","read":"ui-read"},"default":"ui-check"}},"size":"sm","label":{"$map":{"from":"props.status","cases":{"sending":"$string.sending","sent":"$string.sent","read":"$string.read"},"default":"$string.sent"}}},"style":{"width":14,"height":14,"flexShrink":0}}]}]}]}},"Plan":{"recipeProps":["state"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"title","component":"Heading","props":{"text":"{props.title}","level":"h3"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"steps","component":"Trace","$if":"props.steps","children":[{"part":"step","component":"TraceItem","$each":"props.steps","$as":"step","props":{"title":"{step.title}","icon":"{step.icon}","description":"{step.detail}","status":"{step.status}"}}]},{"part":"footer","component":"Box","$if":{"$eq":["{props.state|proposed}","proposed"]},"style":{"display":"flex","flexDirection":"row","alignItems":"center","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"decline","component":"Button","props":{"label":"{props.declineLabel|$string.no}","variant":"outline"},"$on":{"press":"decline"}},{"part":"approve","component":"Button","props":{"label":"{props.approveLabel|$string.yes}","icon":"ui-check","variant":"default"},"$on":{"press":"approve"}}]},{"part":"running","component":"Box","$if":{"$eq":["{props.state|proposed}","running"]},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.md"},"children":[{"part":"progress","component":"Progress","props":{"value":"{props.progress|0}","max":1,"tone":"primary"},"style":{"flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0}},{"part":"stop","component":"Button","props":{"label":"{props.stopLabel|$string.stop}","icon":"ui-stop","variant":"destructive"},"$on":{"press":"stop"}}]}]}]}},"Mosaic":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.label}"},"style":{"display":"flex","flexDirection":"row","width":"100%","aspectRatio":1.6,"minWidth":0},"children":[{"part":"lead","component":"Box","$if":"props.pictures.0","props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},0,1]},"flexShrink":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},0,1]},"flexBasis":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},"60%",0]},"height":"100%"},"$recipe":{"size":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},"large",{"$cond":[{"$lt":[1,"{len(props.pictures)}"]},"half","large"]}]}},"$a11y":{"role":"button","label":"{props.pictures.0.alt}"},"$on":{"press":"select"},"$context":{"index":0},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.0.src}","alt":"{props.pictures.0.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}}]},{"part":"pair","component":"Box","$if":[{"$eq":["{len(props.pictures)}",2]}],"props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":1,"flexShrink":1,"flexBasis":0,"height":"100%"},"$recipe":{"size":"half"},"$a11y":{"role":"button","label":"{props.pictures.1.alt}"},"$on":{"press":"select"},"$context":{"index":1},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.1.src}","alt":"{props.pictures.1.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}}]},{"part":"side","component":"Box","$if":{"$lt":[2,"{len(props.pictures)}"]},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0,"height":"100%"},"children":[{"part":"top","component":"Box","$if":"props.pictures.1","props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":1,"flexShrink":1,"flexBasis":0,"width":"100%"},"$recipe":{"size":"small"},"$a11y":{"role":"button","label":"{props.pictures.1.alt}"},"$on":{"press":"select"},"$context":{"index":1},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.1.src}","alt":"{props.pictures.1.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}}]},{"part":"bottom","component":"Box","$if":"props.pictures.2","props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":1,"flexShrink":1,"flexBasis":0,"width":"100%"},"$recipe":{"size":"small"},"$a11y":{"role":"button","label":{"$cond":[{"$lt":[3,"{len(props.pictures)}"]},{"$fill":["$string.morePicturesLabel",{"alt":"{props.pictures.2.alt}","count":{"$sub":["{len(props.pictures)}",3]}}]},"{props.pictures.2.alt}"]}},"$on":{"press":"select"},"$context":{"index":2},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.2.src}","alt":"{props.pictures.2.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}},{"part":"more","component":"Box","$if":{"$lt":[3,"{len(props.pictures)}"]},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"display":"flex","alignItems":"center","justifyContent":"center"},"children":[{"part":"moreLabel","component":"Text","props":{"text":{"$fill":["$string.morePictures",{"count":{"$sub":["{len(props.pictures)}",3]}}]},"lines":1}}]}]}]}]}},"Calendar":{"recipeProps":["view"],"root":{"part":"root","component":"Box","$a11y":{"role":"table"},"style":{"display":"flex","flexDirection":"column","width":"100%","gap":"$spacing.none","@media (form-factor: phone)":{"gap":"$spacing.md"},"minHeight":"$control.row"},"children":[{"part":"frame","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"column","width":"100%","overflow":"hidden","borderRadius":"$radius.lg","borderWidth":"$border.hairline","@media (form-factor: phone)":{"borderWidth":0,"borderRadius":0}},"children":[{"part":"head","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))"},"$template":{"path":"{props.source}/month/weeks/0/days","key":"date","item":{"part":"weekday","component":"Box","style":{"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","@media (form-factor: phone)":{"display":"flex","justifyContent":"center"}},"children":[{"part":"weekdayName","component":"Text","props":{"text":{"path":"weekday"},"variant":"caption"},"style":{"@media (form-factor: phone)":{"display":"none"}}},{"part":"weekdayInitial","component":"Text","props":{"text":{"path":"initial"},"variant":"caption"},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}}}]}},"$if":{"$eq":["{props.view|month}","month"]}},{"part":"head","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))"},"$template":{"path":"{props.source}/week/days","key":"date","item":{"part":"weekday","component":"Box","style":{"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","@media (form-factor: phone)":{"display":"flex","justifyContent":"center"}},"children":[{"part":"weekdayName","component":"Text","props":{"text":{"path":"weekday"},"variant":"caption"},"style":{"@media (form-factor: phone)":{"display":"none"}}},{"part":"weekdayInitial","component":"Text","props":{"text":{"path":"initial"},"variant":"caption"},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}}}]}},"$if":{"$eq":["{props.view|month}","week"]}},{"part":"weeks","component":"Box","$if":{"$eq":["{props.view|month}","month"]},"style":{"display":"flex","flexDirection":"column"},"$template":{"path":"{props.source}/month/weeks","key":"key","item":{"part":"week","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","minWidth":0},"children":[{"part":"shade","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"days","key":"date","item":{"part":"shadeCell","component":"Box","$recipe":{"weekend":{"path":"weekend"}},"style":{"borderTopWidth":"$border.hairline","borderRightWidth":"$border.hairline","minWidth":0}}}},{"part":"cells","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1"},"$template":{"path":"days","key":"date","item":{"part":"day","component":"Box","props":{"pressable":true},"$on":{"press":"select"},"$a11y":{"role":"button","label":{"path":"date"},"selected":{"path":"selected"}},"style":{"display":"flex","flexDirection":"column","alignItems":"flex-start","padding":"$spacing.xs","minHeight":"$control.textarea","minWidth":0,"@media (form-factor: phone)":{"alignItems":"stretch","minHeight":0,"padding":"$spacing.xxs"}},"children":[{"part":"number","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full","@media (form-factor: phone)":{"display":"none"}},"children":[{"part":"numberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"compact","component":"Box","$recipe":{"selected":{"path":"selected"}},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xxs","paddingVertical":"$spacing.sm","borderRadius":"$radius.lg"}},"children":[{"part":"compactNumber","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full"},"children":[{"part":"compactNumberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"dots","component":"Box","style":{"display":"flex","flexDirection":"row","gap":"$spacing.xxs","justifyContent":"center","height":"$spacing.sm"},"$template":{"path":"dots","item":{"part":"dot","component":"Box","$recipe":{"tone":{"path":"tone"}},"style":{"width":"$radius.sm","height":"$radius.sm","borderRadius":"$radius.full"}}}}]}]}}},{"part":"bars","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","alignContent":"start","rowGap":"$spacing.xxs","paddingTop":"$spacing.xl2","paddingBottom":"$spacing.xs","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"segments","key":"id","item":{"part":"segment","component":"Box","props":{"pressable":true},"$on":{"press":"open"},"$recipe":{"tone":{"path":"tone"},"marker":{"$lt":[0,{"path":"more"}]},"contL":{"path":"contL"},"contR":{"path":"contR"}},"style":{"display":"flex","alignItems":"center","height":"$control.badge","minWidth":0,"overflow":"hidden","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"gridRow":{"call":"concat","args":{"values":[{"call":"add","args":{"a":{"path":"lane"},"b":1}}," / span 1"]}},"marginLeft":{"$cond":[{"path":"contL"},0,"$spacing.xxs"]},"marginRight":{"$cond":[{"path":"contR"},0,"$spacing.xxs"]}},"children":[{"part":"label","component":"Text","$if":{"$eq":[{"path":"more"},0]},"props":{"text":{"path":"row/{props.labelField|title}"},"variant":"caption","lines":1}},{"part":"more","component":"Text","$if":{"$lt":[0,{"path":"more"}]},"props":{"text":{"$fill":["$string.calendarMore",{"count":{"path":"more"}}]},"variant":"caption","lines":1}}]}}}]}}},{"part":"week","component":"Box","$if":{"$eq":["{props.view|month}","week"]},"style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","minWidth":0,"minHeight":"$control.toast"},"children":[{"part":"shade","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"{props.source}/week/days","key":"date","item":{"part":"shadeCell","component":"Box","$recipe":{"weekend":{"path":"weekend"}},"style":{"borderTopWidth":"$border.hairline","borderRightWidth":"$border.hairline","minWidth":0}}}},{"part":"cells","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1"},"$template":{"path":"{props.source}/week/days","key":"date","item":{"part":"day","component":"Box","props":{"pressable":true},"$on":{"press":"select"},"$a11y":{"role":"button","label":{"path":"date"},"selected":{"path":"selected"}},"style":{"display":"flex","flexDirection":"column","alignItems":"flex-start","padding":"$spacing.xs","minHeight":"$control.textarea","minWidth":0,"@media (form-factor: phone)":{"alignItems":"stretch","minHeight":0,"padding":"$spacing.xxs"}},"children":[{"part":"number","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full","@media (form-factor: phone)":{"display":"none"}},"children":[{"part":"numberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"compact","component":"Box","$recipe":{"selected":{"path":"selected"}},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xxs","paddingVertical":"$spacing.sm","borderRadius":"$radius.lg"}},"children":[{"part":"compactNumber","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full"},"children":[{"part":"compactNumberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"dots","component":"Box","style":{"display":"flex","flexDirection":"row","gap":"$spacing.xxs","justifyContent":"center","height":"$spacing.sm"},"$template":{"path":"dots","item":{"part":"dot","component":"Box","$recipe":{"tone":{"path":"tone"}},"style":{"width":"$radius.sm","height":"$radius.sm","borderRadius":"$radius.full"}}}}]}]}}},{"part":"bars","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","alignContent":"start","rowGap":"$spacing.xxs","paddingTop":"$spacing.xl2","paddingBottom":"$spacing.xs","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"{props.source}/week/segments","key":"id","item":{"part":"segment","component":"Box","props":{"pressable":true},"$on":{"press":"open"},"$recipe":{"tone":{"path":"tone"},"marker":{"$lt":[0,{"path":"more"}]},"contL":{"path":"contL"},"contR":{"path":"contR"}},"style":{"display":"flex","alignItems":"center","height":"$control.badge","minWidth":0,"overflow":"hidden","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"gridRow":{"call":"concat","args":{"values":[{"call":"add","args":{"a":{"path":"lane"},"b":1}}," / span 1"]}},"marginLeft":{"$cond":[{"path":"contL"},0,"$spacing.xxs"]},"marginRight":{"$cond":[{"path":"contR"},0,"$spacing.xxs"]}},"children":[{"part":"label","component":"Text","$if":{"$eq":[{"path":"more"},0]},"props":{"text":{"path":"row/{props.labelField|title}"},"variant":"caption","lines":1}},{"part":"more","component":"Text","$if":{"$lt":[0,{"path":"more"}]},"props":{"text":{"$fill":["$string.calendarMore",{"count":{"path":"more"}}]},"variant":"caption","lines":1}}]}}}]}]},{"part":"agenda","component":"Section","$if":["props.source",{"$eq":["{props.view|month}","month"]}],"props":{"title":{"path":"{props.source}/month/agenda/label"},"count":{"path":"{props.source}/month/agenda/count"}},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}},"$template":{"path":"{props.source}/month/agenda/items","key":"id","item":{"part":"entry","component":"Row","props":{"title":{"path":"row/{props.labelField|title}"},"subtitle":{"path":"row/{props.detailField|detail}"},"meta":{"path":"row/{props.metaField|status}"},"pressable":true},"$on":{"press":"open"},"slots":{"leading":{"part":"entryTone","component":"Box","$recipe":{"tone":{"path":"tone"}},"style":{"width":"$spacing.xs","height":"$control.iconLg","borderRadius":"$radius.full"}}}}}}]}},"Timeline":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"table"},"style":{"display":"flex","flexDirection":"column","width":"100%","overflow":"hidden","borderRadius":"$radius.lg","borderWidth":"$border.hairline","minHeight":"$control.row","@media (form-factor: phone)":{"overflowX":"auto","overflowY":"hidden","backgroundColor":"$color.background"}},"children":[{"part":"bandsRow","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"row","@media (form-factor: phone)":{"minWidth":{"call":"add","args":{"a":96,"b":{"call":"mul","args":{"a":72,"b":{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}}}}}}}},"children":[{"part":"corner","component":"Box","style":{"width":"18%","flexShrink":0,"minWidth":0,"@media (form-factor: phone)":{"width":96,"position":"sticky","insetInlineStart":0,"backgroundColor":"$color.background"},"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","borderRightWidth":"$border.hairline"},"children":[{"part":"cornerLabel","component":"Text","$if":"props.rowTitle","props":{"text":"{props.rowTitle}","variant":"caption","lines":1}}]},{"part":"bands","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"flexGrow":1,"minWidth":0},"$template":{"path":"{props.source}/timeline/bands","key":"col","item":{"part":"band","component":"Box","style":{"gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","minWidth":0,"borderLeftWidth":"$border.hairline"},"children":[{"part":"bandLabel","component":"Text","props":{"text":{"path":"label"},"variant":"label","lines":1}}]}}}]},{"part":"columnsRow","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"row","borderTopWidth":"$border.hairline","@media (form-factor: phone)":{"minWidth":{"call":"add","args":{"a":96,"b":{"call":"mul","args":{"a":72,"b":{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}}}}}}}},"children":[{"part":"columnsCorner","component":"Box","style":{"width":"18%","flexShrink":0,"minWidth":0,"@media (form-factor: phone)":{"width":96,"position":"sticky","insetInlineStart":0,"backgroundColor":"$color.background"},"borderRightWidth":"$border.hairline"}},{"part":"columns","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"flexGrow":1,"minWidth":0},"$template":{"path":"{props.source}/timeline/columns","key":"key","item":{"part":"column","component":"Box","$recipe":{"today":{"path":"today"}},"style":{"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","minWidth":0,"borderLeftWidth":"$border.hairline"},"children":[{"part":"columnLabel","component":"Text","$recipe":{"today":{"path":"today"}},"props":{"text":{"path":"label"},"variant":"caption","lines":1}}]}}}]},{"part":"rows","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"column","@media (form-factor: phone)":{"minWidth":{"call":"add","args":{"a":96,"b":{"call":"mul","args":{"a":72,"b":{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}}}}}}}},"$template":{"path":"{props.source}/timeline/rows","key":"key","item":{"part":"row","component":"Box","style":{"display":"flex","flexDirection":"row","minWidth":0,"borderTopWidth":"$border.hairline"},"children":[{"part":"rowHead","component":"Box","style":{"width":"18%","flexShrink":0,"minWidth":0,"@media (form-factor: phone)":{"width":96,"position":"sticky","insetInlineStart":0,"backgroundColor":"$color.background"},"display":"flex","flexDirection":"column","justifyContent":"center","gap":"$spacing.xxs","paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","borderRightWidth":"$border.hairline"},"children":[{"part":"rowLabel","component":"Text","props":{"text":{"path":"key"},"variant":"body","lines":1}},{"part":"rowCount","component":"Text","$if":"props.showCount","props":{"text":{"$text":{"path":"count"}},"variant":"muted","lines":1}}]},{"part":"track","component":"Box","style":{"display":"grid","flexGrow":1,"minWidth":0,"position":"relative"},"children":[{"part":"cells","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"gridColumn":"1 / span 1","gridRow":"1 / span 1","minWidth":0},"$template":{"path":"{props.source}/timeline/columns","key":"key","item":{"part":"cell","component":"Box","style":{"minWidth":0,"borderLeftWidth":"$border.hairline"}}}},{"part":"bars","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"gridColumn":"1 / span 1","gridRow":"1 / span 1","alignContent":"center","rowGap":"$spacing.xxs","paddingVertical":"$spacing.sm","minWidth":0},"$template":{"path":"items","key":"id","item":{"part":"bar","component":"Box","props":{"pressable":true},"$on":{"press":"open"},"$recipe":{"tone":{"path":"tone"},"contL":{"path":"contL"},"contR":{"path":"contR"}},"style":{"display":"flex","alignItems":"center","height":"$control.badge","minWidth":0,"overflow":"hidden","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","marginHorizontal":"$spacing.xxs","gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"gridRow":{"call":"concat","args":{"values":[{"call":"add","args":{"a":{"path":"lane"},"b":1}}," / span 1"]}}},"children":[{"part":"barLabel","component":"Text","props":{"text":{"path":"row/{props.labelField|title}"},"variant":"caption","lines":1}}]}}},{"part":"now","component":"Box","$if":{"path":"{props.source}/timeline/now"},"style":{"position":"absolute","top":0,"bottom":0,"width":"$control.hairline","left":{"call":"concat","args":{"values":[{"path":"{props.source}/timeline/now/percent"},"%"]}}}}]}]}}}]}},"RecordForm":{"recipeProps":[],"root":{"part":"root","component":"Form","props":{"name":"{props.kind}","disabled":"{props.readOnly|false}"},"$on":{"submit":"submit"},"children":[{"part":"unknown","component":"EmptyState","$if":"props.missing","props":{"icon":"ui-error","title":"$string.unknownKind","size":"list"}},{"part":"fields","component":"FieldGroup","$if":{"$not":"props.missing"},"props":{"columns":2},"children":[{"part":"field","component":"Box","$each":"props.fields","$as":"field","style":{"display":"flex","flexDirection":"column","minWidth":0,"gridColumn":{"$cond":["field.wide","1 / -1","auto"]}},"children":[{"part":"text","component":"Input","$if":{"$eq":["{field.widget}","text"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}","checks":"{field.checks}"}},{"part":"textarea","component":"Textarea","$if":{"$eq":["{field.widget}","textarea"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}","rows":3,"autosize":true,"checks":"{field.checks}"}},{"part":"number","component":"NumberField","$if":{"$eq":["{field.widget}","number"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","min":"{field.min}","max":"{field.max}","step":"{field.step}","precision":"{field.precision}","placeholder":"{field.placeholder}","checks":"{field.checks}"}},{"part":"switch","component":"Switch","$if":{"$eq":["{field.widget}","switch"]},"props":{"label":"{field.label}","name":"{field.name}","checked":"{field.value}","description":"{field.placeholder}"}},{"part":"select","component":"Select","$if":{"$eq":["{field.widget}","select"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","options":"{field.options}","source":"{field.source}","searchable":"{field.searchable|false}","multiple":"{field.multiple|false}","placeholder":"{field.placeholder}","checks":"{field.checks}"}},{"part":"date","component":"DatePicker","$if":{"$eq":["{field.widget}","date"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}"}},{"part":"time","component":"TimePicker","$if":{"$eq":["{field.widget}","time"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}"}},{"part":"chips","component":"ChipInput","$if":{"$eq":["{field.widget}","chips"]},"props":{"label":"{field.label}","name":"{field.name}","values":"{field.value}","max":"{field.max}","placeholder":"{field.placeholder}","checks":"{field.checks}"}}]}]},{"part":"actions","component":"FormActions","$if":[{"$not":"props.readOnly"},{"$not":"props.missing"}],"props":{"submit":"{props.submitLabel|$string.save}","cancel":"{props.cancel|false}"},"$on":{"cancel":"cancel"}}]}},"RecordTable":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","minWidth":0},"children":[{"part":"unknown","component":"EmptyState","$if":"props.missing","props":{"icon":"ui-error","title":"$string.unknownKind","size":"list"}},{"part":"toolbar","component":"Toolbar","$if":{"$not":"props.missing"},"children":[{"part":"count","component":"Text","props":{"text":"{props.count}","variant":"muted"}}],"slots":{"trailing":{"part":"add","component":"Button","$if":{"$map":{"from":"props.add","cases":{"false":false},"default":true}},"props":{"label":"$string.add","icon":"ui-add","variant":"outline","size":"sm"},"$on":{"press":"add"}}}},{"part":"loading","component":"Skeleton","$if":[{"$not":"props.missing"},"props.loading"],"props":{"rows":3}},{"part":"table","component":"Table","$if":[{"$not":"props.missing"},{"$not":"props.loading"}],"props":{"columns":"{props.cols}","rows":"{props.rows}","density":"compact","stickyHeader":true,"emptyText":"$string.noRecords"},"style":{"@media (form-factor: phone)":{"display":"none"}},"slots":{"menu":{"part":"menu","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"flex-end","gap":"$spacing.xxs"},"children":[{"part":"edit","component":"Button","$if":{"$map":{"from":"props.editable","cases":{"false":false},"default":true}},"props":{"icon":"ui-edit","variant":"ghost","size":"icon"},"$a11y":{"label":"$string.edit"},"$on":{"press":"edit"}},{"part":"delete","component":"Button","$if":{"$map":{"from":"props.editable","cases":{"false":false},"default":true}},"props":{"icon":"ui-delete","variant":"ghost","size":"icon"},"$a11y":{"label":"$string.delete"},"$on":{"press":"delete"}}]}}},{"part":"list","component":"List","$if":[{"$not":"props.missing"},{"$not":"props.loading"}],"props":{"divided":true},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}},"children":["$children"]},{"part":"editor","component":"Drawer","$if":[{"$not":"props.missing"},{"$map":{"from":"props.editable","cases":{"false":false},"default":true}}],"props":{"title":"{props.title}","open":"{props.editorOpen|false}","side":"right"},"children":[{"part":"form","component":"RecordForm","props":{"kind":"{props.kind}","fields":"{props.fields}","path":"{props.path}","recordId":"{props.editorId}","cancel":true},"$on":{"submit":"submit","cancel":"cancel"}}]},{"part":"confirm","component":"Dialog","$if":[{"$not":"props.missing"},{"$map":{"from":"props.editable","cases":{"false":false},"default":true}}],"$a11y":{"role":"alertdialog"},"props":{"title":"$string.deleteRecord","description":"$string.deleteRecordBody","open":"{props.deleteOpen|false}"},"children":[{"part":"confirmForm","component":"Form","props":{"name":"delete"},"$on":{"submit":"confirm"},"children":[{"part":"confirmActions","component":"FormActions","props":{"submit":"$string.delete","cancel":true,"destructive":true},"$on":{"cancel":"cancelDelete"}}]}]}]}}}'),qv={macros:Hv},Lt=xv,jr=Lt.id,vu=Lt.liteId,ja=bu.from,$u=bu.version,wi=Lt.unknownComponent,Uv=qv.macros,yt=(()=>{const e={};for(const[t,n]of Object.entries(zv))if(!t.startsWith("$"))if(Array.isArray(n))e[t]=n;else for(const[r,o]of Object.entries(n))e[`${t}.${r}`]=o;return e})(),Vv=/^\$([a-z][a-zA-Z0-9]*(?:\.[a-z][a-zA-Z0-9]*)*)\.([a-zA-Z0-9]+)$/;function nr(e){if(typeof e!="string")return null;const t=Vv.exec(e);return t?{group:t[1],name:t[2]}:null}function am(e){const t=nr(e);return t!==null&&(yt[t.group]?.includes(t.name)??!1)}function ys(e){return Object.assign(Object.create(null),e)}function Mo(e=[]){const t={components:ys(Lt.components),enums:ys(Lt.enums),defs:ys(Lt.defs),macros:ys(Uv)};for(const n of e)Object.assign(t.components,n.components),Object.assign(t.enums,n.enums??{}),Object.assign(t.defs,n.defs??{}),Object.assign(t.macros,n.macros??{});return t}let Kv;const qd=new WeakMap;function Gi(e=[]){if(e.length===0)return Kv??=Mo();let t=qd.get(e);return t||qd.set(e,t=Mo(e)),t}const Gv=["Box","Stack","Grid","Card","Separator","List","Resizable","ScrollArea","Sidebar","SplitView","AppBar","Page","Toolbar","Section","Group","Text","Heading","Markdown","CodeBlock","Kbd","Label","Image","ZoomableImage","Icon","Video","AudioPlayer","Avatar","QrCode","Carousel","Mosaic","Tabs","Segmented","Accordion","Collapsible","Trace","TraceItem","Plan","Pagination","Breadcrumb","Outline","Stepper","Dialog","Drawer","DockCard","AlertDialog","Popover","Tooltip","Menu","Toast","Badge","Alert","Chip","EmptyState","Progress","Meter","Ring","Spinner","Skeleton","VoiceWave","CallSurface","Table","Chart","Sparkline","StatTile","Button","Link","Toggle","Form","FieldGroup","FormActions","Input","Textarea","NumberField","Checkbox","Radio","ChoiceTiles","Switch","Slider","Rating","Select","SearchList","ChipInput","DatePicker","DateRangePicker","TimePicker","FileUpload","QrScanner","Composer","Row","MessageBubble","TreeGuides","Unknown","Motion","Calendar","Timeline","RecordForm","RecordTable"],lm=["a-large-small","action-chat","action-create","action-default","action-repository","action-run","action-suggestion","activity","anchor","app-editor-chat","archive","archive-restore","arrow-down","arrow-down-left","arrow-left","arrow-left-right","arrow-right","arrow-up-right","at-sign","atom","audio-lines","auth-passkey","award","ban","bell","bell-off","bold","book-open","bookmark","bot","boxes","braces","brain","briefcase","brush-cleaning","bug","building","building-2","calculator","calendar","calendar-days","call-end","call-incoming","call-mute","call-speaker","call-speaker-off","call-unmute","camera","car","chart-line","check","check-check","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-up-down","ci-failed","ci-passed","ci-queued","ci-running","ci-skipped","circle","circle-arrow-up","circle-check","circle-dashed","circle-dot","circle-question-mark","circle-slash","circle-stop","circle-user","circle-x","clipboard-list","clock","cloud","code","coding-assistant","coding-command","coding-compact","coding-diff","coding-ended","coding-in-review","coding-needs-input","coding-plan","coding-running","coding-stop","coding-subagent","coding-tool","coffee","compass","computer","copy","corner-down-right","cpu","credit-card","crown","database","download","droplet","dumbbell","ear","editor-bold","editor-clear-formatting","editor-code","editor-emoji","editor-heading-1","editor-heading-2","editor-heading-3","editor-image","editor-issue-ref","editor-italic","editor-link","editor-list","editor-list-ordered","editor-list-todo","editor-mention","editor-quote","editor-strikethrough","editor-text","editor-text-format","editor-unlink","ellipsis","ellipsis-vertical","event-assignee-changed","event-board-moved","event-estimate-changed","event-label-added","event-label-removed","event-priority-changed","event-relation-added","event-relation-removed","event-status-changed","event-title-changed","external-link","eye","eye-off","fast-forward","file","file-diff","file-pen-line","file-text","fingerprint","flag","flame","flask-conical","fold-vertical","folder","folder-kanban","folder-open","gamepad-2","gauge","gem","gift","git-branch","git-merge","git-pull-request","github","globe","graduation-cap","guide-changes","hammer","hand","hard-drive","hash","heading-1","heading-2","heading-3","headphones","heart","heart-off","history","hourglass","house","image","images","inbox","info","italic","key","landmark","laptop","layers","layers-2","layout-grid","leaf","lightbulb","link","link-2","list","list-checks","list-end","list-ordered","list-todo","list-tree","loader-circle","lock","lock-open","log-in","log-out","mail","mail-open","map","map-pin","maximize-2","media-fast-forward","media-rewind","media-skip-next","media-skip-previous","media-volume-down","media-volume-mute","media-volume-off","media-volume-up","megaphone","menu","message-circle","message-square","message-square-plus","message-square-reply","mic","mic-off","microscope","minimize-2","minus","monitor","monitor-off","moon","mountain","move","music","nav-account","nav-actions","nav-admin","nav-apps","nav-boards","nav-changelog","nav-computer","nav-create-issue","nav-devices","nav-drafts","nav-files","nav-getting-started","nav-inbox","nav-issues","nav-my-issues","nav-notifications","nav-rail-collapse","nav-rail-expand","nav-report-bug","nav-search","nav-settings","nav-sign-out","nav-source-control","nav-team-switcher","nav-terminal","nav-threads","newspaper","notification-agent-message","notification-agent-signed-out","notification-issue-assigned","notification-issue-comment","notification-issue-created","notification-issue-mention","notification-issue-status-changed","notification-mark-read","notification-mute","notification-pr-merged","notification-pr-opened","notification-reporter-reply","notification-session-blocked","os-apple","os-linux","os-windows","package","paintbrush","palette","panel-left-close","panel-left-open","paperclip","pause","pen-tool","pencil","phone","phone-incoming","phone-off","pin","pin-off","plane","play","plug","plus","pr-batch","pr-closed","pr-draft","pr-merged","pr-open","pr-stack","printer","priority-high","priority-low","priority-medium","priority-none","priority-urgent","progress-1-4","progress-1-5","progress-2-4","progress-2-5","progress-3-4","progress-3-5","progress-4-5","puzzle","qr-code","quote","refresh-cw","relation-blocked-by","relation-blocks","relation-duplicate","relation-parent","relation-related","relation-section","relation-sub-issue","remove-formatting","repeat","rewind","rocket","rotate-ccw","run-pause","run-resume","sc-push","scale","scan-line","search","search-x","send","server","session-shell","session-tree","settings","settings-about","settings-account","settings-agents","settings-api","settings-billing","settings-boards","settings-general","settings-import","settings-issues","settings-labels","settings-licenses","settings-local-repos","settings-mcp","settings-members","settings-notifications","settings-rate","settings-repositories","settings-servers","settings-sessions","settings-statuses","settings-storage","settings-sync","settings-tools","settings-voice","settings-widget","share-2","shield","shield-check","shield-question-mark","shopping-bag","shopping-cart","signal-high","signal-low","signal-medium","skip-back","skip-forward","sliders-horizontal","smartphone","smile","sparkles","square","square-check","square-kanban","square-minus","square-pen","square-slash","square-terminal","star","star-half","star-off","status-backlog","status-cancelled","status-done","status-duplicate","status-in-progress","status-in-review","status-todo","stethoscope","store","strikethrough","sun","support-open","support-resolved","tag","target","terminal","thread-stories","tool-script","trace-background","trace-chevron","trace-completed","trace-edit","trace-failed","trace-fetch","trace-read","trace-reasoning","trace-search","trace-subagent","trace-task-done","trace-task-pending","trace-task-running","trace-terminal","trace-todo","trace-tool","trash-2","tree-pine","triangle-alert","trigger-event","trigger-schedule","trophy","truck","type","ui-add","ui-agent-source","ui-archive","ui-arrow-down","ui-arrow-right","ui-assignee","ui-attach","ui-avatar-placeholder","ui-back","ui-branch","ui-camera","ui-check","ui-checklist","ui-chevron-down","ui-chevron-left","ui-chevron-right","ui-chevron-up","ui-clean","ui-clear","ui-clock","ui-close","ui-cloud","ui-copy","ui-delete","ui-delete-account","ui-device","ui-device-default","ui-device-offline","ui-dock-side","ui-docs","ui-download","ui-due-date","ui-edit","ui-empty-search","ui-error","ui-estimate","ui-external-link","ui-favorite-off","ui-file","ui-float","ui-folder","ui-folder-open","ui-fullscreen","ui-fullscreen-exit","ui-github","ui-help","ui-hide","ui-history","ui-hold","ui-icon-placeholder","ui-indeterminate","ui-info","ui-invite","ui-issue","ui-link","ui-loading","ui-mail","ui-mark-read","ui-mark-unread","ui-mcp","ui-member","ui-menu","ui-minus","ui-more","ui-more-vertical","ui-offline","ui-organization","ui-owner","ui-permission","ui-photos","ui-pin","ui-print","ui-private","ui-properties","ui-qr-code","ui-queued","ui-read","ui-redock","ui-refresh","ui-remove-member","ui-repeat","ui-repository","ui-scan","ui-selected","ui-selector","ui-send","ui-server","ui-share","ui-sign-in","ui-sign-out","ui-staging","ui-star-half","ui-star-off","ui-stop","ui-submit","ui-subscribe","ui-success","ui-swap","ui-team","ui-unarchive","ui-unassigned","ui-undo","ui-undock","ui-unlock","ui-unpin","ui-unselected","ui-unsubscribe","ui-update","ui-usage","ui-warning","ui-watch","ui-widget","undo-2","unlink","upload","user","user-minus","user-plus","user-x","users","video","voice-call","voice-level","volume-1","volume-2","volume-off","volume-x","wallet","wifi-off","work-faces","work-results","workflow","wrench","x","zap"],Yv=["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter","bind","mul","div","mod","round","floor","ceil","abs","min","max","today","now","dateAdd","dateDiff","startOf","endOf","weekday","isoWeek","hours","formatDuration","orElse","expr"],Xv={display:{enum:["flex","grid","block","none"]},flexDirection:{enum:["row","column","row-reverse","column-reverse"]},flexWrap:{enum:["nowrap","wrap","wrap-reverse"]},justifyContent:{enum:["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},alignItems:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},alignContent:{enum:["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},alignSelf:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},justifySelf:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},flexGrow:{type:"number"},flexShrink:{type:"number"},flexBasis:{type:"length"},gap:{type:"length"},rowGap:{type:"length"},columnGap:{type:"length"},direction:{enum:["ltr","rtl"]},overflow:{enum:["visible","hidden","clip","scroll","auto"]},overflowX:{enum:["visible","hidden","clip","scroll","auto"]},overflowY:{enum:["visible","hidden","clip","scroll","auto"]},width:{type:"length"},height:{type:"length"},minWidth:{type:"length"},minHeight:{type:"length"},maxWidth:{type:"length"},maxHeight:{type:"length"},aspectRatio:{type:"ratio"},position:{enum:["relative","absolute","sticky"]},top:{type:"length"},right:{type:"length"},bottom:{type:"length"},left:{type:"length"},inset:{type:"length"},insetInlineStart:{type:"length"},insetInlineEnd:{type:"length"},insetBlockStart:{type:"length"},insetBlockEnd:{type:"length"},padding:{type:"length"},paddingTop:{type:"length"},paddingRight:{type:"length"},paddingBottom:{type:"length"},paddingLeft:{type:"length"},paddingHorizontal:{type:"length"},paddingVertical:{type:"length"},paddingInlineStart:{type:"length"},paddingInlineEnd:{type:"length"},margin:{type:"length"},marginTop:{type:"length"},marginRight:{type:"length"},marginBottom:{type:"length"},marginLeft:{type:"length"},marginHorizontal:{type:"length"},marginVertical:{type:"length"},marginInlineStart:{type:"length"},marginInlineEnd:{type:"length"},gridTemplateColumns:{type:"tracks"},gridTemplateRows:{type:"tracks"},gridTemplateAreas:{type:"areas"},gridArea:{type:"string"},gridColumn:{type:"string"},gridRow:{type:"string"}},Zv={backgroundColor:{type:"color"},backgroundGradient:{type:"gradient"},color:{type:"color"},borderWidth:{type:"number",layoutEffect:!0},borderTopWidth:{type:"number",layoutEffect:!0},borderRightWidth:{type:"number",layoutEffect:!0},borderBottomWidth:{type:"number",layoutEffect:!0},borderLeftWidth:{type:"number",layoutEffect:!0},borderColor:{type:"color"},borderStyle:{enum:["solid","dashed","dotted"]},borderRadius:{type:"length"},borderTopLeftRadius:{type:"length"},borderTopRightRadius:{type:"length"},borderBottomRightRadius:{type:"length"},borderBottomLeftRadius:{type:"length"},opacity:{type:"number"},boxShadow:{type:"token",group:"shadow"},fontSize:{type:"length"},fontWeight:{enum:[300,400,500,600,700,800]},lineHeight:{type:"length"},letterSpacing:{type:"length"},textAlign:{enum:["left","right","center","start","end","justify"]},textDecoration:{enum:["none","underline","line-through"]},textTransform:{enum:["none","uppercase","lowercase","capitalize"]},fontStyle:{enum:["normal","italic"]},fontFamily:{type:"token",group:"type.family"},transition:{type:"token",group:"motion"},transitionEasing:{type:"token",group:"ease"},transform:{type:"transform"},visibility:{enum:["visible","hidden"]},pointerEvents:{enum:["auto","none"]},userSelect:{enum:["auto","none","text"]},cursor:{enum:["auto","default","pointer","text","not-allowed","grab","grabbing","move","col-resize","row-resize"]},backdropBlur:{type:"token",group:"blur"},animation:{enum:["pulse","spin","fade-in","slide-in-up","slide-in-down","slide-in-left","slide-in-right","shimmer"]},animationDuration:{type:"token",group:"motion"}},Jv={pulse:{duration:"$motion.slow",factor:7,easing:"$ease.standard",iterations:"infinite",rest:0,keyframes:[{offset:0,opacity:1},{offset:.5,opacity:.5},{offset:1,opacity:1}]},spin:{duration:"$motion.slow",factor:4,easing:"linear",iterations:"infinite",rest:0,keyframes:[{offset:0,rotate:0},{offset:1,rotate:360}]},"fade-in":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0},{offset:1,opacity:1}]},"slide-in-up":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateY:8},{offset:1,opacity:1,translateY:0}]},"slide-in-down":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateY:-8},{offset:1,opacity:1,translateY:0}]},"slide-in-left":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateX:8},{offset:1,opacity:1,translateX:0}]},"slide-in-right":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateX:-8},{offset:1,opacity:1,translateX:0}]},shimmer:{duration:"$motion.slow",factor:5,easing:"linear",iterations:"infinite",rest:0,keyframes:[{offset:0,band:-1},{offset:1,band:1}],band:{color:"$color.background",stops:[{offset:0,alpha:0},{offset:.5,alpha:.5},{offset:1,alpha:0}]}}},Qv={media:"^@media \\((min-width|max-width|min-height|max-height): (\\d+(\\.\\d+)?px|\\$breakpoint\\.[a-zA-Z0-9]+)\\)$|^@media \\(orientation: (portrait|landscape)\\)$|^@media \\(hover: (hover|none)\\)$|^@media \\(prefers-reduced-motion: (reduce|no-preference)\\)$|^@media \\(form-factor: (phone|wide)\\)$",states:[":hover",":focus-visible",":pressed"],transform:"^((translate\\(-?\\d+(\\.\\d+)?px, -?\\d+(\\.\\d+)?px\\)|scale\\(-?\\d+(\\.\\d+)?\\)|rotate\\(-?\\d+(\\.\\d+)?deg\\))( (?=\\S)|$))+$"},e$={durationMs:2e3,angleDeg:20,spreadPx:60,highlightLightnessMin:.8,highlightLightnessBoost:.4,highlightAlphaBoost:.4,lightAlphaFactor:.2},t$={steps:120,radius:[.33,.3,.26],harmonics:[[11,17,23],[9,15,21],[7,13]],phase0:[.4,1.9,3.1],ringAmp:[1,.85,.45],ampBase:2,ampLevel:6,thinkingAmp:2.5,phaseSpeed:.9,fillAlpha:[.1,.1,.15],strokeAlpha:[.7,.8,.4],strokeWidth:[1.5,1.5,1],childScale:.3,childScaleLarge:.22,maxBands:8,bars:{count:20,minFraction:.12,envelope:.5,shapeFreq:1.7,shapeBase:.35,sizes:{sm:{height:16,barWidth:2,gap:2},md:{height:24,barWidth:3,gap:3},lg:{height:40,barWidth:4,gap:4},xl:{height:56,barWidth:5,gap:5}}}},n$={quietZone:4},r$={maxWidth:280,aspectRatio:1,cornerLength:24,cornerStroke:3,feedAlpha:.06,scanLineHeight:2,scanLineInset:16,sweepMs:2e3,placeholderIcon:"ui-scan",placeholderIconSize:32},o$={tallAspect:.3333333333333333,maxScale:8,presets:[.25,.33,.5,.67,1,1.5,2,3,4,6,8],menuPresets:[0,.5,1,2,4],doubleTapFactor:2,wheelRate:.002,wheelLinePx:16,rubber:.55,momentumTauMs:325,autoHideMs:2e3,pill:{height:36,inset:16,padding:4,gap:2,percentMinWidth:56,dividerHeight:16}},on={layout:Xv,visual:Zv,animations:Jv,conditions:Qv,textShimmer:e$,voiceWave:t$,qrCode:n$,qrScanner:r$,zoomableImage:o$},cm=on.layout,xu=on.visual,i$=[...Object.keys(cm),...Object.keys(xu)];Object.entries(xu).filter(([,e])=>e.layoutEffect).map(([e])=>e);const wu={...cm,...xu},s$=new Set(i$),ku=new RegExp(on.conditions.media),um=new RegExp(on.conditions.transform),a$=on.conditions.states,l$=/^-?\d+(\.\d+)?(px|%)$/,c$=/^\d+(\.\d+)?\/\d+(\.\d+)?$/,Ud=new Set(["spacing","radius","control","type.size","type.lineHeight","opacity","border"]);function Es(e,t){const n=nr(e);return n!==null&&t.has(n.group)&&am(e)}function dm(e){return Es(e,new Set(["color"]))}function u$(e,t){const n=`${e}: expected {angle, stops: [{color, offset 0..1}, …]} with two or more stops`;if(typeof t!="object"||t===null||Array.isArray(t))return n;const r=t;if(typeof r.angle!="number"||!Number.isFinite(r.angle)||!Array.isArray(r.stops)||r.stops.length<2)return n;for(const o of r.stops){if(typeof o!="object"||o===null)return n;const i=o;if(!dm(i.color)||typeof i.offset!="number"||i.offset<0||i.offset>1)return n}for(const o of Object.keys(r))if(o!=="angle"&&o!=="stops")return n;return null}function d$(e,t){const n=wu[e];if(n.enum)return n.enum.includes(t)?null:`${e}: expected one of ${n.enum.join("|")}`;switch(n.type){case"number":return typeof t=="number"&&Number.isFinite(t)||Es(t,Ud)?null:`${e}: expected a number or a numeric token`;case"length":return typeof t=="number"&&Number.isFinite(t)||t==="auto"||typeof t=="string"&&l$.test(t)||Es(t,Ud)?null:`${e}: expected px, "N%", "auto" or a numeric token`;case"color":return dm(t)?null:`${e}: expected $color.<name>`;case"gradient":return u$(e,t);case"token":return Es(t,new Set([n.group??""]))?null:`${e}: expected $${n.group}.<name>`;case"transform":return typeof t=="string"&&um.test(t)?null:`${e}: expected translate(Xpx, Ypx), scale(N) and/or rotate(Ndeg)`;case"ratio":return typeof t=="number"&&t>0||typeof t=="string"&&c$.test(t)?null:`${e}: expected a number or "w/h"`;case"tracks":case"string":return typeof t=="string"?null:`${e}: expected a string`;case"areas":return Array.isArray(t)&&t.every(r=>typeof r=="string")?null:`${e}: expected an array of row strings`;default:return`${e}: unknown spec`}}function Vd(e){return wu[e]?.enum}function p$(e){return ku.test(e)||a$.includes(e)}function pm(e,t={}){const n=[],r=t.path??"style",o=(i,s,a)=>{for(const[l,c]of Object.entries(i)){if(c===void 0)continue;if(p$(l)){const d=/\$breakpoint\.([a-zA-Z0-9]+)/.exec(l);d&&!yt.breakpoint.includes(d[1])&&n.push({path:`${s}.${l}`,message:`unknown breakpoint $breakpoint.${d[1]}; known: ${yt.breakpoint.join("|")}`}),a?n.push({path:`${s}.${l}`,message:"conditions do not nest"}):typeof c!="object"||c===null||Array.isArray(c)?n.push({path:`${s}.${l}`,message:"must be an object"}):o(c,`${s}.${l}`,!0);continue}if(!s$.has(l)){n.push({path:`${s}.${l}`,message:l.startsWith("@media")||l.startsWith(":")?"not a supported condition":"not in the Box style whitelist"});continue}wu[l].rootOnly&&t.root===!1&&n.push({path:`${s}.${l}`,message:"allowed on the root only"});const u=d$(l,c);u&&n.push({path:`${s}.${l}`,message:u})}};return typeof e!="object"||e===null||Array.isArray(e)?[{path:r,message:"expected an object"}]:(o(e,r,!1),n)}const f$=768;function h$(e){if(e.formFactor==="phone"||e.formFactor==="wide")return e.formFactor;const t=e.breakpoints?.md;return e.width<(typeof t=="number"?t:f$)?"phone":"wide"}const m$=/^@media \(([a-z-]+): ([^)]+)\)$/;function Su(e){if(!ku.test(e))return null;const t=m$.exec(e);return t?{feature:t[1],value:t[2]}:null}function g$(e,t){const n=nr(e);if(n){if(n.group!=="breakpoint")return null;const o=t.breakpoints?.[n.name];return typeof o=="number"?o:null}const r=parseFloat(e);return Number.isFinite(r)?r:null}function y$(e,t){switch(e.feature){case"min-width":case"max-width":case"min-height":case"max-height":{const n=g$(e.value,t);if(n===null)return!1;const r=e.feature.endsWith("width")?t.width:t.height;return r===void 0?!1:e.feature.startsWith("min")?r>=n:r<n}case"orientation":{const n=t.height!==void 0&&t.height>=t.width;return e.value===(n?"portrait":"landscape")}case"hover":return e.value===(t.hover?"hover":"none");case"prefers-reduced-motion":return e.value===(t.reducedMotion?"reduce":"no-preference");case"form-factor":return e.value===h$(t)}}function b$(e,t){let n=null;for(const r of yt.breakpoint){const o=t[r];typeof o=="number"&&e>=o&&(n=r)}return n}const v$={add:"Add",back:"Back",breadcrumb:"Breadcrumb",browse:"Browse",calendarMore:"+{count} more",cameraUnavailable:"Camera unavailable",cancel:"Cancel",carousel:"Carousel",chartSummary:"Chart of {series}, values from {min} to {max}",choose:"Choose",clear:"Clear",close:"Close",closeTab:"Close {name}",codeBlock:"Code",collapse:"Collapse",confirm:"Confirm",copied:"Copied",copy:"Copy",decrement:"Decrease",delete:"Delete",deleteRecord:"Delete this record?",deleteRecordBody:"The app stops showing it.",dialog:"Dialog",dismiss:"Dismiss",dropFiles:"Drop files here",edit:"Edit",endCall:"End call",expand:"Expand",fileTooLarge:"File too large",fileTooLargeNamed:"{name}: File too large",increment:"Increase",invalidFields:"Check the highlighted fields",invalidValue:"Invalid value",loading:"Loading",menu:"Menu",message:"Message",more:"More",morePictures:"+{count}",morePicturesLabel:"{alt}, {count} more",mute:"Mute",newTab:"New tab",next:"Next",nextMonth:"Next month",no:"No",noRecords:"No records yet",noResults:"No results",optional:"Optional",outline:"Outline",outlineRow:"{title}, {count}",pageCounter:"{page} / {total}",pageOf:"Page {page} of {total}",pagination:"Pagination",pause:"Pause",play:"Play",previous:"Previous",previousMonth:"Previous month",ratingStar:"{value} of {max}",ratingValue:"Rated {value} of {max}",read:"Read",recordCount:"{count} records",remove:"Remove",removeItem:"Remove {name}",required:"Required",resize:"Resize",save:"Save",scanQrCode:"Scan a QR code",search:"Search…",selectAll:"Select all",selectRow:"Select row",selectedCount:"{count} selected",send:"Send",sending:"Sending",sent:"Sent",showLess:"Show less",showMore:"Show more",slide:"Slide",sortAscending:"Sort ascending",sortByAscending:"{name}: Sort ascending",sortByDescending:"{name}: Sort descending",sortDescending:"Sort descending",sparklineSummary:"Trend from {first} to {last}, low {min}, high {max}",speaker:"Speaker",speakerOff:"Speaker off",stepCurrent:"Step {step} of {total}: {label}, current",stepDone:"Step {step} of {total}: {label}, completed",stepUpcoming:"Step {step} of {total}: {label}",stop:"Stop",submit:"Submit",table:"Table",today:"Today",unknownComponent:"Unknown component",unknownKind:"This record kind is not declared",unmute:"Unmute",unsupportedFile:"Unsupported file",unsupportedFileNamed:"{name}: Unsupported file",yes:"Yes",zoomFit:"Fit",zoomIn:"Zoom in",zoomLevel:"Zoom level",zoomOut:"Zoom out",zoomToFit:"Zoom to fit"},$$={strings:v$},Ba=$$.strings,x$=/^\$string\.([a-zA-Z][a-zA-Z0-9]*)$/,w$=/\{([a-zA-Z][a-zA-Z0-9]*)\}/g;function Cu(e){if(typeof e!="string")return null;const t=x$.exec(e);return t?t[1]:null}function k$(e){const t=Cu(e);return t!==null&&t in Ba}function S$(e={}){return{...Ba,...e}}function fm(e,t={}){return e.replace(w$,(n,r)=>r in t&&t[r]!==void 0&&t[r]!==null?String(t[r]):n)}function C$(e,t=Ba){const n=Cu(e);return n===null?e:t[n]??n}const A$={default:1,regions:{0:["AG","AS","BD","BR","BS","BT","BW","BZ","CA","CN","CO","DM","DO","ET","GT","GU","HK","HN","ID","IL","IN","JM","JP","KE","KH","KR","LA","MH","MM","MO","MT","MX","MZ","NI","NP","PA","PE","PH","PK","PR","PT","PY","SA","SG","SV","TH","TT","TW","UM","US","VE","VI","WS","YE","ZA","ZW"],5:["MV"],6:["AE","AF","BH","DJ","DZ","EG","IQ","IR","JO","KW","LY","OM","QA","SD","SY"]}},_$={af:"ZA",am:"ET",ar:"EG",az:"AZ",be:"BY",bg:"BG",bn:"BD",bs:"BA",ca:"ES",ckb:"IQ",cs:"CZ",cy:"GB",da:"DK",de:"DE",dv:"MV",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fa:"IR",fi:"FI",fil:"PH",fr:"FR",ga:"IE",gl:"ES",gu:"IN",ha:"NG",he:"IL",hi:"IN",hr:"HR",hu:"HU",hy:"AM",id:"ID",ig:"NG",is:"IS",it:"IT",ja:"JP",jv:"ID",ka:"GE",kk:"KZ",km:"KH",kn:"IN",ko:"KR",ku:"TR",ky:"KG",lo:"LA",lt:"LT",lv:"LV",mk:"MK",ml:"IN",mn:"MN",mr:"IN",ms:"MY",mt:"MT",my:"MM",nb:"NO",ne:"NP",nl:"NL",nn:"NO",no:"NO",or:"IN",pa:"IN",pl:"PL",ps:"AF",pt:"BR",ro:"RO",ru:"RU",sd:"PK",si:"LK",sk:"SK",sl:"SI",so:"SO",sq:"AL",sr:"RS",sv:"SE",sw:"TZ",ta:"IN",te:"IN",th:"TH",tl:"PH",tr:"TR",ug:"CN",uk:"UA",ur:"PK",uz:"UZ",vi:"VN",yi:"001",yo:"NG",zh:"CN",zu:"ZA"},O$={in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",tl:"fil"},T$=["ar","ckb","dv","fa","he","ps","sd","ug","ur","yi"],M$=["ui-back","ui-chevron-left","ui-chevron-right","ui-arrow-right","ui-send","ui-undo","ui-external-link","arrow-left","arrow-right","chevron-left","chevron-right","send","undo-2","external-link"],E$={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayPeriods:["AM","PM"],currencyPrefix:{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CNY:"CN¥",INR:"₹",KRW:"₩",CAD:"CA$",AUD:"A$",MXN:"MX$",BRL:"R$",ILS:"₪",NZD:"NZ$",HKD:"HK$",TWD:"NT$",VND:"₫",PHP:"₱",XAF:"FCFA ",XOF:"F CFA "},currencyDigits:{JPY:0,KRW:0,VND:0,CLP:0,ISK:0,UGX:0,PYG:0,XAF:0,XOF:0,BHD:3,IQD:3,JOD:3,KWD:3,OMR:3,TND:3},relative:{units:{second:["second","seconds"],minute:["minute","minutes"],hour:["hour","hours"],day:["day","days"],week:["week","weeks"],month:["month","months"],year:["year","years"]},auto:{second:{0:"now"},day:{1:"tomorrow","-1":"yesterday"},week:{1:"next week","-1":"last week"},month:{1:"next month","-1":"last month"},year:{1:"next year","-1":"last year"}},past:"{value} {unit} ago",future:"in {value} {unit}"},unknownCurrency:"{code} ",datePatterns:{short:"M/d/yy",medium:"MMM d, y",long:"MMMM d, y",full:"EEEE, MMMM d, y"},timePattern:"h:mm a",dateTimeJoin:{short:"{date}, {time}",medium:"{date}, {time}",long:"{date} at {time}",full:"{date} at {time}"}},vr={default:"en-US",weekStart:A$,likelyRegion:_$,languageAliases:O$,rtl:T$,rtlMirroredIcons:M$,englishFallback:E$},pn=vr.englishFallback,Ht={second:1e3,minute:6e4,hour:36e5,day:864e5};function Eo(e){return typeof e=="string"?e:typeof e=="number"?Number.isFinite(e)?String(e):"":typeof e=="boolean"?String(e):""}function hm(e){const t=/^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(String(e));if(!t)return{int:"0",frac:""};const n=t[1]+(t[2]??"");let r=t[1].length+(t[3]?Number(t[3]):0),o=n;return r<=0&&(o="0".repeat(1-r)+o,r=1),r>o.length&&(o=o+"0".repeat(r-o.length)),{int:o.slice(0,r).replace(/^0+(?=\d)/,""),frac:o.slice(r).replace(/0+$/,"")}}function I$(e,t){const n=e.frac+"0".repeat(Math.max(0,t-e.frac.length));return{int:(e.int+n.slice(0,t)).replace(/^0+(?=\d)/,""),frac:n.slice(t).replace(/0+$/,"")}}function mm(e,t,n){let{int:r,frac:o}=e;if(o.length>n){const i=o.charCodeAt(n)>=53;let s=r+o.slice(0,n);if(i){const l=s.split("");let c=l.length-1;for(;c>=0;c--)if(l[c]==="9")l[c]="0";else{l[c]=String(Number(l[c])+1);break}s=(c<0?"1":"")+l.join("")}const a=s.length-n;r=s.slice(0,a)||"0",o=s.slice(a).replace(/0+$/,"")}return o.length<t&&(o=o+"0".repeat(t-o.length)),{int:r,frac:o}}function gm(e,t){if(!t||e.length<4)return e;let n="";for(let r=0;r<e.length;r++)r>0&&(e.length-r)%3===0&&(n+=","),n+=e[r];return n}function bs(e,t,n,r){const o=e<0||Object.is(e,-0);if(Number.isNaN(e))return{sign:"",body:"NaN"};if(!Number.isFinite(e))return{sign:o?"-":"",body:"∞"};const i=mm(hm(Math.abs(e)),t,n);return{sign:o?"-":"",body:`${gm(i.int,r)}${i.frac?`.${i.frac}`:""}`}}const go=e=>typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.min(20,Math.trunc(e))):void 0;function P$(e){return pn.currencyDigits[e.toUpperCase()]??2}function ki(e){if(typeof e=="number")return Number.isFinite(e)?{ms:e,dateOnly:!1}:null;if(typeof e!="string"||e.trim()==="")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t){const o=Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3]));return Number.isFinite(o)?{ms:o,dateOnly:!0}:null}if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/.test(e))return null;const n=/(Z|[+-]\d{2}:\d{2})$/.test(e)?e:`${e}Z`,r=Date.parse(n);return Number.isFinite(r)?{ms:r,dateOnly:!1}:null}function ym(e){const t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),weekday:t.getUTCDay(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}const ir=(e,t)=>String(e).padStart(t,"0");function Is(e,t,n){let r="",o=0;for(;o<e.length;){const i=e[o];if(i==="'"){if(e[o+1]==="'"){r+="'",o+=2;continue}for(o++;o<e.length;){if(e[o]==="'"){if(e[o+1]==="'"){r+="'",o+=2;continue}o++;break}r+=e[o],o++}continue}if(!/[A-Za-z]/.test(i)){r+=i,o++;continue}let s=1;for(;e[o+s]===i;)s++;const a=e.slice(o,o+s);o+=s;const l=t.hour%12===0?12:t.hour%12;switch(i){case"y":r+=s===2?ir(t.year%100,2):ir(t.year,s);break;case"M":r+=s>=4?n.months[t.month-1]:s===3?n.monthsShort[t.month-1]:ir(t.month,s);break;case"d":r+=ir(t.day,s);break;case"E":r+=s>=4?n.weekdays[t.weekday]:n.weekdaysShort[t.weekday];break;case"h":r+=ir(l,s);break;case"H":r+=ir(t.hour,s);break;case"m":r+=ir(t.minute,s);break;case"s":r+=ir(t.second,s);break;case"a":r+=n.dayPeriods[t.hour<12?0:1];break;default:r+=a}}return r}const D$=pn.datePatterns,R$=pn.timePattern,F$=pn.dateTimeJoin,z$=e=>()=>e;function N$(e){const t=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"});return n=>{const r=Math.floor(n/1e3)*1e3,o=Object.fromEntries(t.formatToParts(new Date(r)).map(s=>[s.type,s.value])),i=Date.UTC(Number(o.year),Number(o.month)-1,Number(o.day),Number(o.hour)%24,Number(o.minute),Number(o.second));return Math.round((i-r)/6e4)}}function bm(e){const t=Math.abs(e),n=r=>Math.trunc(e/r)||0;return t<Ht.minute?{value:n(Ht.second),unit:"second"}:t<Ht.hour?{value:n(Ht.minute),unit:"minute"}:t<Ht.day?{value:n(Ht.hour),unit:"hour"}:t<7*Ht.day?{value:n(Ht.day),unit:"day"}:t<30*Ht.day?{value:n(7*Ht.day),unit:"week"}:t<365*Ht.day?{value:n(30*Ht.day),unit:"month"}:{value:n(365*Ht.day),unit:"year"}}const xl=pn;function L$(e=z$(0)){return{locale:"en-US",offsetMinutes:e,number(t,n={}){const r=go(n.decimals),{sign:o,body:i}=bs(t,r??0,r??3,n.grouping!==!1);return`${o}${i}`},currency(t,n,r={}){const o=n.toUpperCase(),i=go(r.decimals)??P$(o),{sign:s,body:a}=bs(t,i,i,r.grouping!==!1),l=pn.currencyPrefix[o]??pn.unknownCurrency.replace("{code}",o);return`${s}${l}${a}`},percent(t,n={}){const r=go(n.decimals)??0;if(!Number.isFinite(t)){const{sign:s,body:a}=bs(t,0,0,!0);return`${s}${a}%`}const o=t<0||Object.is(t,-0),i=mm(I$(hm(Math.abs(t)),2),r,r);return`${o?"-":""}${gm(i.int,!0)}${i.frac?`.${i.frac}`:""}%`},date(t,n={}){const r=ki(t);if(!r)return"";const o=ym(r.dateOnly?r.ms:r.ms+e(r.ms)*6e4);if(n.format)return Is(n.format,o,xl);const i=n.style??"medium",s=Is(D$[i],o,xl);if(!n.time)return s;const a=Is(R$,o,xl);return F$[i].replace("{date}",s).replace("{time}",a)},relativeTime(t,n){const r=ki(t);if(!r)return"";const{value:o,unit:i}=bm(r.ms-n),s=pn.relative.auto[i]?.[String(o)];if(s)return s;const[a,l]=pn.relative.units[i],c=bs(Math.abs(o),0,0,!0).body,u=Math.abs(o)===1?a:l;return(o<0?pn.relative.past:pn.relative.future).replace("{value}",c).replace("{unit}",u)},plural(t){return Math.abs(t)===1?"one":"other"}}}function vm(e,t="UTC"){const n=a=>new Intl.NumberFormat(e,a);let r=null;const o=()=>{if(r)return r;const a=(d,p)=>new Intl.DateTimeFormat(e,{...d,timeZone:"UTC"}).format(new Date(p)),l=Array.from({length:12},(d,p)=>Date.UTC(2026,p,1)),c=Array.from({length:7},(d,p)=>Date.UTC(2026,0,4+p)),u=d=>new Intl.DateTimeFormat(e,{hour:"numeric",hour12:!0,timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2026,0,1,d))).find(p=>p.type==="dayPeriod")?.value??(d<12?"AM":"PM");return r={months:l.map(d=>a({month:"long"},d)),monthsShort:l.map(d=>a({month:"short"},d)),weekdays:c.map(d=>a({weekday:"long"},d)),weekdaysShort:c.map(d=>a({weekday:"short"},d)),dayPeriods:[u(9),u(15)]},r},i=a=>{const l=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",weekday:"short",hourCycle:"h23"}).formatToParts(new Date(a)),c=u=>l.find(d=>d.type===u)?.value??"0";return{year:Number(c("year")),month:Number(c("month")),day:Number(c("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(c("weekday")),hour:Number(c("hour"))%24,minute:Number(c("minute")),second:Number(c("second"))}},s=N$(t);return{locale:e,offsetMinutes:s,number(a,l={}){const c=go(l.decimals);return n({minimumFractionDigits:c??0,maximumFractionDigits:c??3,useGrouping:l.grouping!==!1}).format(a)},currency(a,l,c={}){const u=go(c.decimals);return n({style:"currency",currency:l,...u!==void 0?{minimumFractionDigits:u,maximumFractionDigits:u}:{},useGrouping:c.grouping!==!1}).format(a)},percent(a,l={}){const c=go(l.decimals)??0;return n({style:"percent",minimumFractionDigits:c,maximumFractionDigits:c}).format(a)},date(a,l={}){const c=ki(a);if(!c)return"";const u=c.dateOnly?"UTC":t;return l.format?Is(l.format,c.dateOnly?ym(c.ms):i(c.ms),o()):new Intl.DateTimeFormat(e,{dateStyle:l.style??"medium",...l.time?{timeStyle:"short"}:{},timeZone:u}).format(new Date(c.ms))},relativeTime(a,l){const c=ki(a);if(!c)return"";const{value:u,unit:d}=bm(c.ms-l);return new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(u,d)},plural(a){return new Intl.PluralRules(e).select(a)}}}const $m=["formatNumber","formatCurrency","formatPercent","formatDate","formatRelativeTime","pluralize"],j$=/^[ \t\n\r]*[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?[ \t\n\r]*$/,gc=e=>typeof e=="number"?e:typeof e=="string"&&j$.test(e)?Number(e):NaN,wl=e=>e==null?void 0:gc(e);function xm(e,t=()=>Date.now()){const n=(r,o)=>{const i=gc(r);return Number.isFinite(i)?o(i):""};return{formatNumber:({value:r,decimals:o,grouping:i})=>n(r,s=>e.number(s,{decimals:wl(o),grouping:i===void 0?void 0:i!==!1})),formatCurrency:({value:r,currency:o,decimals:i,grouping:s})=>n(r,a=>typeof o=="string"&&/^[A-Za-z]{3}$/.test(o)?e.currency(a,o,{decimals:wl(i),grouping:s===void 0?void 0:s!==!1}):""),formatPercent:({value:r,decimals:o})=>n(r,i=>e.percent(i,{decimals:wl(o)})),formatDate:({value:r,format:o,style:i,time:s})=>e.date(r,{...typeof o=="string"&&o?{format:o}:{},...i==="short"||i==="medium"||i==="long"||i==="full"?{style:i}:{},...s===!0?{time:!0}:{}}),formatRelativeTime:({value:r,now:o})=>e.relativeTime(r,typeof o=="number"?o:ki(o)?.ms??t()),pluralize:r=>{const o=gc(r.value);if(!Number.isFinite(o))return r.other;const i=a=>typeof a=="string"?a.replaceAll("{count}",e.number(o)):a;if(o===0&&r.zero!==void 0)return i(r.zero);const s=e.plural(o);return i(r[s]??r.other)}}}const yc=xm(L$()),wm=/^\{([^{}]+)\}$/,B$=/\{([^{}]+)\}/g,W$=/^(len|range)\((.+)\)$/;function Wa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.path=="string"&&Object.keys(e).length===1}function jo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.call=="string"}function Ue(e){return Wa(e)||jo(e)}function On(e){return e!=null&&e!==!1&&e!==""}function wt(e,t){const n={};for(const[r,o]of Object.entries(t))o!==void 0&&(n[r]=o);return{call:e,args:n}}function H$(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function q$(e,t){if(e==="id")return t.id;const[n,...r]=e.split(".");let o;if(n==="props")o=t.props;else if(n in t.vars)o=t.vars[n];else return;for(const i of r){if(o==null)return;o=o[i]}return o}function dt(e){return typeof e=="number"?e:Number(e??0)||0}function Kd(e){const t=e.trim();if(t==="")return;const n=Number(t);return Number.isFinite(n)?n:void 0}function Au(e,t){return e===t?!0:typeof e=="number"&&typeof t=="string"?Kd(t)===e:typeof t=="number"&&typeof e=="string"?Kd(e)===t:!1}function km(e,t,n){let r=dt(e);return n!=null&&(r=Math.min(r,dt(n))),t!=null&&(r=Math.max(r,dt(t))),r}function U$(e,t){const n=e==null?"":String(e);return fm(n,typeof t=="object"&&t!==null?t:{})}const V$=1e4;function Gn(e,t){const n=e.trim(),r=W$.exec(n);if(r){const i=Gn(r[2],t);if(r[1]==="len")return Ue(i)?wt("len",{value:i}):Array.isArray(i)||typeof i=="string"?i.length:0;if(Ue(i))return;const s=Math.min(V$,Math.max(0,Math.floor(dt(i)))||0);return Array.from({length:s},(a,l)=>l)}const o=n.indexOf("|");if(o>=0){const i=Gn(n.slice(0,o),t),s=H$(n.slice(o+1));return i==null?s:Ue(i)?wt("fallback",{value:i,default:s}):i}if(n.startsWith("!")){const i=Gn(n.slice(1),t);return Ue(i)?wt("not",{value:i}):!On(i)}return q$(n,t)}function K$(e){return jo(e)&&e.call==="fallback"&&Ue(e.args?.value)?e.args?.value:e}function gt(e,t){if(typeof e=="string"){const n=wm.exec(e);if(n)return Gn(n[1],t)}return Nt(e,t)}function ta(e,t){const n=typeof e=="string"?Gn(e,t):gt(e,t);return Ue(n)?n:On(n)}function G$(e,t){const n=[];let r=!1,o=0;for(const i of e.matchAll(B$)){const s=i.index??0;s>o&&n.push(e.slice(o,s));const a=Gn(i[1],t);Ue(a)&&(r=!0),n.push(a),o=s+i[0].length}return o<e.length&&n.push(e.slice(o)),r?wt("concat",{values:n.filter(i=>i!=null&&i!=="")}):n.map(i=>i==null?"":String(i)).join("")}function Nt(e,t){if(typeof e=="string"){const o=wm.exec(e);return o?K$(Gn(o[1],t)):G$(e,t)}if(Array.isArray(e))return e.map(o=>Nt(o,t)).filter(o=>o!==void 0);if(typeof e!="object"||e===null)return e;const n=e;if("$map"in n){const o=n.$map,i=Gn(o.from,t);if(Ue(i)){const l={};for(const[c,u]of Object.entries(o.cases)){const d=gt(u,t);d!==void 0&&(l[c]=d)}return wt("map",{value:i,cases:l,default:gt(o.default,t)})}const s=i==null?"":String(i),a=Object.prototype.hasOwnProperty.call(o.cases,s)?o.cases[s]:o.default;return gt(a,t)}if("$cond"in n){const[o,i,s]=n.$cond,a=ta(o,t);return Ue(a)?wt("cond",{if:a,then:gt(i,t),else:gt(s,t)}):gt(a?i:s,t)}if("$eq"in n){const[o,i]=n.$eq.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("eq",{a:o,b:i}):Au(o,i)}if("$lt"in n){const[o,i]=n.$lt.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("lt",{a:o,b:i}):dt(o)<dt(i)}if("$add"in n){const[o,i]=n.$add.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("add",{a:o,b:i}):dt(o)+dt(i)}if("$sub"in n){const[o,i]=n.$sub.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("sub",{a:o,b:i}):dt(o)-dt(i)}if("$clamp"in n){const[o,i,s]=n.$clamp.map(a=>gt(a,t));return Ue(o)||Ue(i)||Ue(s)?wt("clamp",{value:o,min:i,max:s}):km(o,i,s)}if("$fill"in n){const[o,i]=n.$fill,s={};for(const[a,l]of Object.entries(i??{})){const c=gt(l,t);c!==void 0&&(s[a]=c)}return wt("fill",{template:gt(o,t),params:s})}if("$percent"in n){const[o,i]=n.$percent.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("percent",{value:o,max:i}):Sm(o,i)}if("$text"in n){const o=n.$text,i=typeof o=="string"?Gn(o,t):gt(o,t);return Ue(i)?wt("text",{value:i}):i==null?void 0:String(i)}if("$coalesce"in n){const o=[];for(const i of n.$coalesce){const s=gt(i,t);if(s!==void 0){if(Ue(s)){o.push(s);continue}if(On(s)){if(o.length===0)return s;o.push(s);break}}}return o.length===0?void 0:o.length===1?o[0]:wt("coalesce",{values:o})}if("$not"in n){const o=ta(n.$not,t);return Ue(o)?wt("not",{value:o}):!o}const r={};for(const[o,i]of Object.entries(n)){const s=Nt(i,t);if(s===void 0)continue;const a=o.includes("{")?Nt(o,t):o;r[typeof a=="string"?a:o]=s}return r}function Sm(e,t){const n=dt(t),r=n>0?dt(e)/n*100:0,o=Math.min(100,Math.max(0,r));return`${Math.round(o*100)/100}%`}function Y$(e,t,n,r){if(!Array.isArray(e))return[];const o=typeof t=="string"?t.trim().toLowerCase():typeof t=="number"?String(t):"",i=Array.isArray(n)?n.filter(l=>typeof l=="string"):null,s=typeof r=="object"&&r!==null&&!Array.isArray(r)?Object.entries(r).filter(([,l])=>l!=null&&l!==""):[],a=l=>typeof l=="string"?l:typeof l=="number"?String(l):null;return e.filter(l=>{const c=typeof l=="object"&&l!==null&&!Array.isArray(l)?l:null;for(const[d,p]of s)if(!Au(c?.[d],p))return!1;return o===""?!0:(c?(i??Object.keys(c)).map(d=>c[d]):[l]).some(d=>a(d)?.toLowerCase().includes(o)??!1)})}const X$={percent:({value:e,max:t})=>Sm(e,t),add:({a:e,b:t})=>dt(e)+dt(t),sub:({a:e,b:t})=>dt(e)-dt(t),eq:({a:e,b:t})=>Au(e,t),lt:({a:e,b:t})=>dt(e)<dt(t),clamp:({value:e,min:t,max:n})=>km(e,t,n),cond:({if:e,then:t,else:n})=>On(e)?t:n,fallback:({value:e,default:t})=>e??t,concat:({values:e})=>Array.isArray(e)?e.map(t=>t==null?"":String(t)).join(""):"",coalesce:({values:e})=>Array.isArray(e)?e.find(On):void 0,text:({value:e})=>e==null?void 0:String(e),map:({value:e,cases:t,default:n})=>{const r=e==null?"":String(e),o=t??{};return Object.prototype.hasOwnProperty.call(o,r)?o[r]:n},len:({value:e})=>Array.isArray(e)||typeof e=="string"?e.length:0,fill:({template:e,params:t})=>U$(e,t),filter:({items:e,query:t,fields:n,where:r})=>Y$(e,t,n,r),formatPercent:yc.formatPercent,formatRelativeTime:yc.formatRelativeTime},_u=["mul","div","mod","round","floor","ceil","abs","min","max","today","now","dateAdd","dateDiff","startOf","endOf","weekday","isoWeek","hours","formatDuration","orElse","expr"],Gd=["day","week","month","quarter","year"],Z$=e=>e!==void 0&&e>="0"&&e<="9",yo=(e,t,n)=>{for(let r=t;r<t+n;r++)if(!Z$(e[r]))return!1;return!0};function Cm(e){return e%4===0&&e%100!==0||e%400===0}function Io(e,t){return t===2?Cm(e)?29:28:t===4||t===6||t===9||t===11?30:31}function Yi(e,t,n){const r=[0,3,2,5,0,3,5,1,4,6,2,4],o=t<3?e-1:e,i=(s,a)=>Math.floor(s/a);return((o+i(o,4)-i(o,100)+i(o,400)+r[t-1]+n)%7+7)%7}function J$(e,t,n){let r=n;for(let o=1;o<t;o++)r+=Io(e,o);return r}function Yd(e){const t=Yi(e,1,1);return t===4||t===3&&Cm(e)?53:52}function Am(e,t,n){const r=Yi(e,t,n)||7,o=Math.floor((J$(e,t,n)-r+10)/7);return o<1?{year:e-1,week:Yd(e-1)}:o>Yd(e)?{year:e+1,week:1}:{year:e,week:o}}function Xi(e){if(e.length<10||!yo(e,0,4)||e[4]!=="-"||!yo(e,5,2)||e[7]!=="-"||!yo(e,8,2)||e.length>10&&e[10]!=="T"&&e[10]!==" ")return null;const t=Number(e.slice(0,4)),n=Number(e.slice(5,7)),r=Number(e.slice(8,10));return n<1||n>12||r<1||r>Io(t,n)?null:{y:t,m:n,d:r}}function Q$(e){if(e.length<7||!yo(e,0,4)||e[4]!=="-"||!yo(e,5,2)||e.length>7&&e[7]!=="-")return null;const t=Number(e.slice(5,7));return t>=1&&t<=12?{y:Number(e.slice(0,4)),m:t}:null}function ex(e){return e.length<4||!yo(e,0,4)||e.length>4&&e[4]!=="-"?null:Number(e.slice(0,4))}const jn=(e,t)=>String(e).padStart(t,"0");function Zi(e){return`${jn(e.y,4)}-${jn(e.m,2)}-${jn(e.d,2)}`}function _m(e,t){if(t==="day"||t==="week"){const r=Xi(e);if(!r)return null;if(t==="day")return Zi(r);const o=Am(r.y,r.m,r.d);return`${jn(o.year,4)}-W${jn(o.week,2)}`}if(t==="year"){const r=ex(e);return r===null?null:jn(r,4)}const n=Q$(e);return n?t==="month"?`${jn(n.y,4)}-${jn(n.m,2)}`:`${jn(n.y,4)}-Q${Math.floor((n.m-1)/3)+1}`:null}function bn(e,t,n){const r=t<=2?e-1:e,o=Math.floor(r/400),i=r-o*400,s=Math.floor((153*(t+(t>2?-3:9))+2)/5)+n-1,a=i*365+Math.floor(i/4)-Math.floor(i/100)+s;return o*146097+a-719468}function vt(e){const t=e+719468,n=Math.floor(t/146097),r=t-n*146097,o=Math.floor((r-Math.floor(r/1460)+Math.floor(r/36524)-Math.floor(r/146096))/365),i=r-(365*o+Math.floor(o/4)-Math.floor(o/100)),s=Math.floor((5*i+2)/153),a=i-Math.floor((153*s+2)/5)+1,l=s<10?s+3:s-9;return{y:o+n*400+(l<=2?1:0),m:l,d:a}}const Po={maxLength:1e3,maxDepth:32,maxSteps:1e4},tx=["set","records.upsert","records.delete","records.batch"],nx=["openUrl","bind","app.navigate"],rx=["actions.","harness.","exponential.","tools.","upstream."];function Si(e){return tx.includes(e)?"write":nx.includes(e)||rx.some(t=>e.startsWith(t))?"host":"pure"}function na(e,t){return`${e} ${t==="write"?"writes":"is a host function"}`}class Bo extends Error{}const se=e=>{throw new Bo(e)},Dr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function We(e){return e==null?"null":typeof e=="number"?"number":typeof e=="string"?"string":typeof e=="boolean"?"bool":Array.isArray(e)?"list":"map"}function st(e){return Number.isFinite(e)||se("number out of range"),e===0?0:e}const Ha=e=>String(e);function ra(e,t){if(e=e??null,t=t??null,e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((n,r)=>ra(n,t[r]));if(Dr(e)&&Dr(t)){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&ra(e[o],t[o]))}return!1}function Om(e){const t=Math.abs(e),n=Math.floor(t),r=t-n>=.5?n+1:n;return e<0?-r:r}const et=864e5,bo={second:1e3,minute:6e4,hour:36e5},Ou=["second","minute","hour","day","week","month","quarter","year"],Tm=["day","week","month","quarter","year"],Mm=["h:mm","hh:mm"],ox=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|[+-]\d{2}:\d{2})?$/;function qa(e){const t=ox.exec(e);if(!t)return null;const n=Xi(e.slice(0,10));if(!n)return null;const r=Number(t[4]),o=Number(t[5]),i=t[6]===void 0?0:Number(t[6]);if(r>23||o>59||i>59)return null;const s=t[7]===void 0?0:Number(t[7].slice(0,3).padEnd(3,"0"));let a=0;if(t[8]!==void 0&&t[8]!=="Z"){const l=Number(t[8].slice(1,3)),c=Number(t[8].slice(4,6));if(l>23||c>59)return null;a=(t[8][0]==="-"?-1:1)*(l*60+c)}return bn(n.y,n.m,n.d)*et+r*36e5+o*6e4+i*1e3+s-a*6e4}const ho=(e,t)=>String(e).padStart(t,"0"),Em=-719528,Im=2932896,ix=4e6;function Ci(e){e>=Em*et&&e<(Im+1)*et||se("date out of range");const t=Math.floor(e/et),n=e-t*et,r=vt(t);return(r.y<0||r.y>9999)&&se("date out of range"),`${Zi(r)}T${ho(Math.floor(n/36e5),2)}:${ho(Math.floor(n/6e4)%60,2)}:${ho(Math.floor(n/1e3)%60,2)}.${ho(n%1e3,3)}Z`}function oa(e){e>=Em&&e<=Im||se("date out of range");const t=vt(e);return(t.y<0||t.y>9999)&&se("date out of range"),Zi(t)}const Ji=(e,t)=>t+e.offset(t)*6e4;function ia(e,t){const n=e.offset(t),r=t-n*6e4,o=e.offset(r);return o===n?r:t-o*6e4}function Ai(e,t){if(typeof t!="string")return se(`${e} needs a date, got ${We(t)}`);if(t.length===10){const r=Xi(t);if(r)return{date:!0,day:bn(r.y,r.m,r.d)}}const n=qa(t);return n===null&&se(`not a date: ${t}`),{date:!1,ms:n}}const Xd=(e,t)=>t.date?t.day*et:Ji(e,t.ms);function Tu(e,t,n){return typeof t!="string"?se(`${e} needs a string, got ${We(t)}`):(n.includes(t)||se(`unknown unit ${t}`),t)}function sx(e,t){const n=vt(e),r=n.y*12+(n.m-1)+t,o=Math.floor(r/12),i=r-o*12+1;return bn(o,i,Math.min(n.d,Io(o,i)))}function bc(e,t,n){return Math.abs(t)<=ix||se("date out of range"),n==="day"?e+t:n==="week"?e+7*t:sx(e,t*(n==="month"?1:n==="quarter"?3:12))}function vc(e,t){const n=vt(e);return t==="day"?e:t==="week"?e-((Yi(n.y,n.m,n.d)||7)-1):t==="month"?bn(n.y,n.m,1):t==="quarter"?bn(n.y,Math.floor((n.m-1)/3)*3+1,1):bn(n.y,1,1)}function ax(e,t){return bc(vc(e,t),1,t)}function lx(e,t){const n=_t(e,t);return Number.isInteger(n)||se(`${e} needs a whole number, got ${Ha(n)}`),n}function _t(e,t){return typeof t!="number"?se(`${e} needs a number, got ${We(t)}`):t}function cx(e,t){return typeof t!="string"?se(`${e} needs a string, got ${We(t)}`):t}const mt=e=>()=>e,kl=e=>e[0]==="date"||e[0]==="timestamp"?e[0]:"dyn";function ux(e,t){const n=Ai("dateAdd",e[0]),r=lx("dateAdd",e[1]),o=Tu("dateAdd",e[2],Ou);if(n.date)return bo[o]!==void 0&&se(`unit ${o} needs a timestamp`),oa(bc(n.day,r,o));if(bo[o]!==void 0)return Ci(st(n.ms+r*bo[o]));const i=Ji(t,n.ms),s=Math.floor(i/et);return Ci(ia(t,bc(s,r,o)*et+(i-s*et)))}function dx(e,t){const n=Ai("dateDiff",e[0]),r=Ai("dateDiff",e[1]),o=Tu("dateDiff",e[2],Ou);if(bo[o]!==void 0){const f=y=>y.date?ia(t,y.day*et):y.ms;return st(Math.trunc((f(r)-f(n))/bo[o]))}const i=Xd(t,n),s=Xd(t,r);if(o==="day"||o==="week")return st(Math.trunc((s-i)/(o==="day"?et:7*et)));const a=Math.floor(i/et),l=Math.floor(s/et),c=vt(a),u=vt(l);let d=(u.y-c.y)*12+(u.m-c.m);const p=c.d*et+(i-a*et),h=u.d*et+(s-l*et);return d>0&&h<p?d--:d<0&&h>p&&d++,st(Math.trunc(d/(o==="month"?1:o==="quarter"?3:12)))}function Zd(e,t,n){const r=Ai(e,t[0]),o=Tu(e,t[1],Tm),i=r.date?r.day:Math.floor(Ji(n,r.ms)/et);if(e==="startOf")return r.date?oa(vc(i,o)):Ci(ia(n,vc(i,o)*et));const s=ax(i,o);return r.date?oa(s-1):Ci(ia(n,s*et)-1)}function Jd(e,t,n){const r=Ai(e,t);return vt(r.date?r.day:Math.floor(Ji(n,r.ms)/et))}function px(e){const t=_t("formatDuration",e[0]),n=cx("formatDuration",e[1]);Mm.includes(n)||se(`unknown duration format ${n}`);const r=Om(Math.abs(t)*60);r>1e15&&se("number out of range");const o=Math.floor(r/60),i=r-o*60;return`${t<0&&r>0?"-":""}${n==="hh:mm"?ho(o,2):String(o)}:${ho(i,2)}`}function fx(e){const t=_t("round",e[0]),n=e.length>1?e[1]:0;(typeof n!="number"||!Number.isInteger(n)||n<0||n>10)&&se("round needs 0 to 10 digits");let r=1;for(let o=0;o<n;o++)r*=10;return st(Om(t*r)/r)}function hx(e){return typeof e=="string"?[...e].length:Array.isArray(e)?e.length:Dr(e)?Object.keys(e).length:se(`size needs a list, string or map, got ${We(e)}`)}const _i={mul:{params:["number","number"],args:["a","b"],run:([e,t])=>st(_t("mul",e)*_t("mul",t)),returns:mt("number")},div:{params:["number","number"],args:["a","b"],run:([e,t])=>{const n=_t("div",e),r=_t("div",t);return r===0&&se("division by zero"),st(n/r)},returns:mt("number")},mod:{params:["number","number"],args:["a","b"],run:([e,t])=>{const n=_t("mod",e),r=_t("mod",t);return r===0&&se("modulo by zero"),st(n%r)},returns:mt("number")},round:{params:["number","number"],min:1,args:["value","digits"],run:fx,returns:mt("number")},floor:{params:["number"],args:["value"],run:([e])=>st(Math.floor(_t("floor",e))),returns:mt("number")},ceil:{params:["number"],args:["value"],run:([e])=>st(Math.ceil(_t("ceil",e))),returns:mt("number")},abs:{params:["number"],args:["value"],run:([e])=>st(Math.abs(_t("abs",e))),returns:mt("number")},min:{params:["number"],variadic:!0,args:["values"],run:e=>st(Math.min(...e.map(t=>_t("min",t)))),returns:mt("number")},max:{params:["number"],variadic:!0,args:["values"],run:e=>st(Math.max(...e.map(t=>_t("max",t)))),returns:mt("number")},today:{params:[],args:[],run:(e,t)=>oa(Math.floor(Ji(t,t.now)/et)),returns:mt("date")},now:{params:[],args:[],run:(e,t)=>Ci(t.now),returns:mt("timestamp")},dateAdd:{params:["temporal","number","string"],args:["date","n","unit"],run:ux,returns:kl},dateDiff:{params:["temporal","temporal","string"],args:["a","b","unit"],run:dx,returns:mt("number")},startOf:{params:["temporal","string"],args:["date","unit"],run:(e,t)=>Zd("startOf",e,t),returns:kl},endOf:{params:["temporal","string"],args:["date","unit"],run:(e,t)=>Zd("endOf",e,t),returns:kl},weekday:{params:["temporal"],args:["date"],run:([e],t)=>{const n=Jd("weekday",e,t);return Yi(n.y,n.m,n.d)||7},returns:mt("number")},isoWeek:{params:["temporal"],args:["date"],run:([e],t)=>{const n=Jd("isoWeek",e,t);return Am(n.y,n.m,n.d).week},returns:mt("number")},hours:{params:["number"],args:["minutes"],run:([e])=>st(_t("hours",e)/60),returns:mt("number")},formatDuration:{params:["number","string"],args:["hours","format"],run:px,returns:mt("string")},size:{params:["sized"],args:["value"],run:([e])=>hx(e),returns:mt("number")},orElse:{params:["any","any"],args:["value","default"],run:([e,t])=>e??t??null,returns:e=>{const t=Pt(e[0]);return t==="null"?Pt(e[1]):t}}},mx=Object.fromEntries(_u.map(e=>[e,t=>Pm(e,t)?.value])),gx=new Set(["map","filter","all","exists"]);function Mu(e){return{now:Math.floor(e.now??Date.now()),offset:e.offset??(()=>0)}}function Eu(e,t,n){const r=t.variadic?1:t.min??t.params.length,o=t.variadic?1/0:t.params.length;return n>=r&&n<=o?null:t.variadic?`${e} takes at least 1 argument`:r===o?`${e} takes ${r} argument${r===1?"":"s"}`:`${e} takes ${r} or ${o} arguments`}function Pm(e,t,n={}){const r={value:t.default};if(e==="expr"){if(typeof t.expr!="string")return r;const s=Iu(t.expr,Dr(t.vars)?t.vars:{},n);return"value"in s?{value:s.value}:r}if(e==="size"||!Object.prototype.hasOwnProperty.call(_i,e))return;const o=_i[e];let i;if(o.variadic)i=Array.isArray(t.values)?t.values:[];else for(i=o.args.map(s=>t[s]);i.length>(o.min??o.params.length)&&i[i.length-1]===void 0;)i.pop();if(Eu(e,o,i.length))return r;try{return{value:o.run(i,Mu(n))}}catch(s){if(s instanceof Bo)return r;throw s}}const yx=["==","!=","<=",">=","&&","||"],bx="+-*/%<>!()[],.?:",ar=e=>e!==void 0&&e>="0"&&e<="9",Dm=e=>e!==void 0&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"),vx=e=>Dm(e)||ar(e);function $x(e){const t=[];let n=0;for(;n<e.length;){const r=e[n];if(r===" "||r===" "||r===`
1
+ const Ib=(e,t)=>e===t,Gs=Symbol("solid-proxy"),Zh=typeof Proxy=="function",Jh=Symbol("solid-track"),Ys={equals:Ib};let di=null,Qh=om;const Rn=1,Xs=2,em={owned:null,cleanups:null,context:null,owner:null};var Re=null;let vl=null,Pb=null,Xe=null,kt=null,yn=null,La=0;function Kn(e,t){const n=Xe,r=Re,o=e.length===0,i=t===void 0?r:t,s=o?em:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>W(()=>$i(s)));Re=s,Xe=null;try{return Jr(a,!0)}finally{Xe=n,Re=r}}function G(e,t){t=t?Object.assign({},Ys,t):Ys;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),rm(n,o));return[nm.bind(n),r]}function er(e,t,n){const r=Ui(e,t,!0,Rn);Lo(r)}function re(e,t,n){const r=Ui(e,t,!1,Rn);Lo(r)}function ge(e,t,n){Qh=zb;const r=Ui(e,t,!1,Rn);(!n||!n.render)&&(r.user=!0),yn?yn.push(r):Lo(r)}function j(e,t,n){n=n?Object.assign({},Ys,n):Ys;const r=Ui(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Lo(r),nm.bind(r)}function dc(e){return Jr(e,!1)}function W(e){if(Xe===null)return e();const t=Xe;Xe=null;try{return e()}finally{Xe=t}}function Ne(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(i)return i=!1,s;const l=W(()=>t(a,o,s));return o=a,l}}function ot(e){ge(()=>W(e))}function de(e){return Re===null||(Re.cleanups===null?Re.cleanups=[e]:Re.cleanups.push(e)),e}function Db(e,t){di||(di=Symbol("error")),Re=Ui(void 0,void 0,!0),Re.context={...Re.context,[di]:[t]};try{return e()}catch(n){Vi(n)}finally{Re=Re.owner}}function yu(){return Re}function tm(e,t){const n=Re,r=Xe;Re=e,Xe=null;try{return Jr(t,!0)}catch(o){Vi(o)}finally{Re=n,Xe=r}}const[Wz,Hz]=G(!1);function br(e,t){const n=Symbol("context");return{id:n,Provider:Lb(n),defaultValue:e}}function tr(e){let t;return Re&&Re.context&&(t=Re.context[e.id])!==void 0?t:e.defaultValue}function Zs(e){const t=j(e),n=j(()=>pc(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function nm(){if(this.sources&&this.state)if(this.state===Rn)Lo(this);else{const e=kt;kt=null,Jr(()=>Qs(this),!1),kt=e}if(Xe){const e=this.observers;if(!e||e[e.length-1]!==Xe){const t=e?e.length:0;Xe.sources?(Xe.sources.push(this),Xe.sourceSlots.push(t)):(Xe.sources=[this],Xe.sourceSlots=[t]),e?(e.push(Xe),this.observerSlots.push(Xe.sources.length-1)):(this.observers=[Xe],this.observerSlots=[Xe.sources.length-1])}}return this.value}function rm(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Jr(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=vl&&vl.running;s&&vl.disposed.has(i),(s?!i.tState:!i.state)&&(i.pure?kt.push(i):yn.push(i),i.observers&&im(i)),s||(i.state=Rn)}if(kt.length>1e6)throw kt=[],new Error},!1)),t}function Lo(e){if(!e.fn)return;$i(e);const t=La;Rb(e,e.value,t)}function Rb(e,t,n){let r;const o=Re,i=Xe;Xe=Re=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=Rn,e.owned&&e.owned.forEach($i),e.owned=null),e.updatedAt=n+1,Vi(s)}finally{Xe=i,Re=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?rm(e,r):e.value=r,e.updatedAt=n)}function Ui(e,t,n,r=Rn,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Re,context:Re?Re.context:null,pure:n};return Re===null||Re!==em&&(Re.owned?Re.owned.push(i):Re.owned=[i]),i}function Js(e){if(e.state===0)return;if(e.state===Xs)return Qs(e);if(e.suspense&&W(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<La);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Rn)Lo(e);else if(e.state===Xs){const r=kt;kt=null,Jr(()=>Qs(e,t[0]),!1),kt=r}}function Jr(e,t){if(kt)return e();let n=!1;t||(kt=[]),yn?n=!0:yn=[],La++;try{const r=e();return Fb(n),r}catch(r){n||(yn=null),kt=null,Vi(r)}}function Fb(e){if(kt&&(om(kt),kt=null),e)return;const t=yn;yn=null,t.length&&Jr(()=>Qh(t),!1)}function om(e){for(let t=0;t<e.length;t++)Js(e[t])}function zb(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Js(r)}for(t=0;t<n;t++)Js(e[t])}function Qs(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const o=r.state;o===Rn?r!==t&&(!r.updatedAt||r.updatedAt<La)&&Js(r):o===Xs&&Qs(r,t)}}}function im(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Xs,n.pure?kt.push(n):yn.push(n),n.observers&&im(n))}}function $i(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)$i(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)$i(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Nb(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Ld(e,t,n){try{for(const r of t)r(e)}catch(r){Vi(r,n&&n.owner||null)}}function Vi(e,t=Re){const n=di&&t&&t.context&&t.context[di],r=Nb(e);if(!n)throw r;yn?yn.push({fn(){Ld(r,n,t)},state:Rn}):Ld(r,n,t)}function pc(e){if(typeof e=="function"&&!e.length)return pc(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=pc(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let o=0;o<r.length;o++)t.push(r[o]);else t.push(r)}return t}return e}function Lb(e,t){return function(r){let o;return re(()=>o=W(()=>(Re.context={...Re.context,[e]:r.value},Zs(()=>r.children))),void 0),o}}const fc=Symbol("fallback");function ea(e){for(let t=0;t<e.length;t++)e[t]()}function jb(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return de(()=>ea(i)),()=>{let l=e()||[],c=l.length,u,d;return l[Jh],W(()=>{let h,f,y,g,v,m,b,x,$;if(c===0)s!==0&&(ea(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[fc],o[0]=Kn(S=>(i[0]=S,n.fallback())),s=1);else if(s===0){for(o=new Array(c),d=0;d<c;d++)r[d]=l[d],o[d]=Kn(p);s=c}else{for(y=new Array(c),g=new Array(c),a&&(v=new Array(c)),m=0,b=Math.min(s,c);m<b&&r[m]===l[m];m++);for(b=s-1,x=c-1;b>=m&&x>=m&&r[b]===l[x];b--,x--)y[x]=o[b],g[x]=i[b],a&&(v[x]=a[b]);for(h=new Map,f=new Array(x+1),d=x;d>=m;d--)$=l[d],u=h.get($),f[d]=u===void 0?-1:u,h.set($,d);for(u=m;u<=b;u++)$=r[u],d=h.get($),d!==void 0&&d!==-1?(y[d]=o[u],g[d]=i[u],a&&(v[d]=a[u]),d=f[d],h.set($,d)):i[u]();for(d=m;d<c;d++)d in y?(o[d]=y[d],i[d]=g[d],a&&(a[d]=v[d],a[d](d))):o[d]=Kn(p);o=o.slice(0,s=c),r=l.slice(0)}return o});function p(h){if(i[d]=h,a){const[f,y]=G(d);return a[d]=y,t(l[d],f)}return t(l[d])}}}function Bb(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,l;return de(()=>ea(i)),()=>{const c=e()||[],u=c.length;return c[Jh],W(()=>{if(u===0)return a!==0&&(ea(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[fc],o[0]=Kn(p=>(i[0]=p,n.fallback())),a=1),o;for(r[0]===fc&&(i[0](),i=[],r=[],o=[],a=0),l=0;l<u;l++)l<r.length&&r[l]!==c[l]?s[l](()=>c[l]):l>=r.length&&(o[l]=Kn(d));for(;l<r.length;l++)i[l]();return a=s.length=i.length=u,r=c.slice(0),o=o.slice(0,a)});function d(p){i[l]=p;const[h,f]=G(c[l]);return s[l]=f,t(h,l)}}}function w(e,t){return W(()=>e(t||{}))}function ms(){return!0}const hc={get(e,t,n){return t===Gs?n:e.get(t)},has(e,t){return t===Gs?!0:e.has(t)},set:ms,deleteProperty:ms,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ms,deleteProperty:ms}},ownKeys(e){return e.keys()}};function $l(e){return(e=typeof e=="function"?e():e)?e:{}}function Wb(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function T(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&Gs in a,e[s]=typeof a=="function"?(t=!0,j(a)):a}if(Zh&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const l=$l(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in $l(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys($l(e[a])));return[...new Set(s)]}},hc);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:Wb.bind(n[u]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const p=n[u];p&&(d.get?p.push(d.get.bind(a)):d.value!==void 0&&p.push(()=>d.value))}}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const a=i[s],l=r[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function Ki(e,...t){const n=t.length;if(Zh&&Gs in e){const o=n>1?t.flat():t[0],i=new Set,s=t.map(a=>{const l=a.filter(c=>!i.has(c)&&(i.add(c),!0));return new Proxy({get(c){return l.includes(c)?e[c]:void 0},has(c){return l.includes(c)&&c in e},keys(){return l.filter(c=>c in e)}},hc)});return s.push(new Proxy({get(a){return o.includes(a)?void 0:e[a]},has(a){return o.includes(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.includes(a))}},hc)),s}const r=[];for(let o=0;o<=n;o++)r[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=n;for(let l=0;l<t.length;l++)if(t[l].includes(o)){i=l;break}const s=Object.getOwnPropertyDescriptor(e,o);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[i][o]=s.value:Object.defineProperty(r[i],o,s)}return r}let Hb=0;function Fe(){return`cl-${Hb++}`}const qb=e=>`Stale read from <${e}>.`;function Te(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(jb(()=>e.each,e.children,t||void 0))}function tn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(Bb(()=>e.each,e.children,t||void 0))}function ee(e){const t=e.keyed,n=j(()=>e.when,void 0,void 0),r=t?n:j(n,void 0,{equals:(o,i)=>!o==!i});return j(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?W(()=>i(t?o:()=>{if(!W(r))throw qb("Show");return n()})):i}return e.fallback},void 0,void 0)}let gs;function Ub(e){let t;const[n,r]=G(t,void 0);return gs||(gs=new Set),gs.add(r),de(()=>gs.delete(r)),j(()=>{let o;if(o=n()){const i=e.fallback;return typeof i=="function"&&i.length?W(()=>i(o,()=>r())):i}return Db(()=>e.children,r)},void 0,void 0)}const Vb=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Kb=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Vb]),Gb=new Set(["innerHTML","textContent","innerText","children"]),Yb=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Xb=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Zb(e,t){const n=Xb[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Jb=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Qb=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ev={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Q=e=>j(()=>e());function tv(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const u=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],u)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],u),t[o]=n[i]}else{if(!c){c=new Map;let d=a;for(;d<i;)c.set(n[d],d++)}const u=c.get(t[s]);if(u!=null)if(a<u&&u<i){let d=s,p=1,h;for(;++d<o&&d<i&&!((h=c.get(t[d]))==null||h!==u+p);)p++;if(p>u-a){const f=t[s];for(;a<u;)e.insertBefore(n[a++],f)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const jd="_$DX_DELEGATE";function nv(e,t,n,r={}){let o;return Kn(i=>{o=i,t===document?e():k(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function F(e,t,n,r){let o;const i=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},s=t?()=>W(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function Yt(e,t=window.document){const n=t[jd]||(t[jd]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,cv))}}function U(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function rv(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function ov(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function hr(e,t){t==null?e.removeAttribute("class"):e.className=t}function fo(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function iv(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const a=o[i];!a||a==="undefined"||t[a]||(Bd(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){const a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Bd(e,a,!0),n[a]=l)}return n}function Le(e,t,n){if(!t)return n?U(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function sv(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function P(e,t={},n,r){const o={};return r||re(()=>o.children=xi(e,t.children,o.children)),re(()=>typeof t.ref=="function"&&ie(t.ref,e)),re(()=>av(e,t,n,!0,o,!0)),o}function ie(e,t,n){return W(()=>e(t,n))}function k(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return xi(e,t,r,n);re(o=>xi(e,t(),o,n),r)}function av(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=Wd(e,s,null,o[s],n,i,t)}for(const s in t){if(s==="children")continue;const a=t[s];o[s]=Wd(e,s,a,o[s],n,i,t)}}function lv(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Bd(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Wd(e,t,n,r,o,i,s){let a,l,c,u,d;if(t==="style")return Le(e,n,r);if(t==="classList")return iv(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0)}else if(t.slice(0,2)==="on"){const p=t.slice(2).toLowerCase(),h=Jb.has(p);if(!h&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f)}(h||n)&&(fo(e,p,n,h),h&&Yt([p]))}else if(t.slice(0,5)==="attr:")U(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")ov(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=Gb.has(t))||!o&&((u=Zb(t,e.tagName))||(l=Kb.has(t)))||(a=e.nodeName.includes("-")||"is"in s))d&&(t=t.slice(5),l=!0),t==="class"||t==="className"?hr(e,n):a&&!l&&!c?e[lv(t)]=n:(t==="value"||t==="defaultValue")&&(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA")?e[u||t]=n??"":e[u||t]=n;else{const p=o&&t.indexOf(":")>-1&&ev[t.split(":")[0]];p?rv(e,p,t,n):U(e,Yb[t]||t,n)}return n}function cv(e){let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}});try{if(e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r)}finally{e=t=null}}function xi(e,t,n,r,o){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===n))return n;if(s){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=to(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean")n=to(e,n,r);else{if(i==="function")return re(()=>{let a=t();for(;typeof a=="function";)a=a();n=xi(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],l=n&&Array.isArray(n);if(mc(a,t,n,o))return re(()=>n=xi(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=to(e,n,r),s)return n}else l?n.length===0?Hd(e,a,r):tv(e,n,a):(n&&to(e),Hd(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=to(e,n,r,t);to(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function mc(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=mc(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=mc(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return o}function Hd(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function to(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}const uv="http://www.w3.org/2000/svg";function sm(e,t=!1,n=void 0){return t?document.createElementNS(uv,e):document.createElement(e,{is:n})}function dv(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=yu();let i;return ge(()=>{i||(i=tm(o,()=>j(()=>e.children)));const s=r();if(s instanceof HTMLHeadElement){const[a,l]=G(!1),c=()=>l(!0);Kn(u=>k(s,()=>a()?u():i(),null)),de(c)}else{const a=sm(e.isSVG?"g":"div",e.isSVG),l=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),k(l,i),s.appendChild(a),e.ref&&e.ref(a),de(()=>s.contains(a)&&s.removeChild(a))}},void 0,{render:!0}),n}function pv(e,t){const n=j(e);return j(()=>{const r=n();switch(typeof r){case"function":return W(()=>r(t));case"string":const o=Qb.has(r),i=sm(r,o,W(()=>t.is));return P(i,t,o),i}})}function Qr(e){const[,t]=Ki(e,["component"]);return pv(()=>e.component,t)}const fv="https://ui.exponential.at/catalogs/core/v1",hv="https://ui.exponential.at/catalogs/core-lite/v1",mv="Unknown",gv={variant:["default","secondary","outline","ghost","destructive","link"],size:["sm","default","lg","icon"],tone:["neutral","primary","success","warning","danger","info"],gap:["none","xs","sm","md","lg","xl"],align:["start","center","end","stretch"],justify:["start","center","end","between","around","evenly"],textVariant:["body","caption","muted","lead","code","label","title"],headingLevel:["h1","h2","h3","h4"],imageFit:["contain","cover","fill","none","scaleDown"],orientation:["horizontal","vertical"],side:["top","right","bottom","left"],inputType:["text","email","password","number","search","url","tel"],validateOn:["change","blur","submit"],alertType:["info","success","warning","error"],controlSize:["sm","default","lg"],spinnerSize:["xs","sm","default","lg"],tabClosable:["none","hover","always"],groupType:["single","multiple"],rowChevron:["none","right","selector"],rowSurface:["flat","card"],chipShape:["pill","rect"],density:["default","compact"],listDirection:["vertical","horizontal"],chartKind:["bar","stackedBar","line","area","pie","donut","sparkline"],segmentedVariant:["segmented","toggles","outline","bar"],liveTone:["live","attention","done","unread","idle","muted"],menuItemKind:["item","checkbox","separator","label","submenu"],openOn:["press","hover"],menuOpenOn:["press","contextmenu"],live:["off","polite","assertive"],selectable:["none","single","multiple"],cellType:["text","number","date","boolean","badge","slot","currency","percent","relativeTime"],sortDirection:["asc","desc"],imageLoading:["lazy","eager"],scrollDirection:["vertical","horizontal","both"],collapseBelow:["never","sm","md","lg","xl"],codeLanguage:["plain","json","js","ts","tsx","rust","swift","kotlin","python","bash","html","css","sql","yaml","markdown","ansi"],codeToken:["plain","keyword","string","number","comment","punctuation","operator","type","function","property","tag","attribute","success","warning","error"],codeBlockVariant:["default","destructive"],codeBlockSize:["default","sm"],switchSize:["default","compact"],traceStatus:["running","error","pending","done","skipped"],traceSize:["default","sm"],voiceWaveActivity:["idle","listening","thinking","speaking","muted"],voiceWaveSize:["sm","md","lg","xl"],messageSide:["in","out"],messageStatus:["sending","sent","read"],callState:["ringing","connecting","talking","ended"],voiceWaveVariant:["ring","bars"],qrLevel:["L","M","Q","H"],planState:["proposed","running","done","declined"],zoomInitial:["auto","fit","fitWidth","actual"],zoomControls:["auto","always","none"],motionDirection:["forward","reverse","alternate"],motionFit:["contain","cover","fill"],calendarView:["month","week"]},yv={option:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},disabled:{type:"boolean"},description:{type:"string"},image:{type:"url"},count:{type:"number",bindable:!0}}},check:{properties:{condition:{type:"boolean",required:!0,bindable:!0},message:{type:"string",required:!0}}},tab:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},count:{type:"number"}}},menuItem:{properties:{label:{type:"string"},value:{type:"string"},kind:{type:"enum",enum:"menuItemKind",default:"item"},icon:{type:"icon"},shortcut:{type:"string"},checked:{type:"boolean",bindable:!0},destructive:{type:"boolean"},disabled:{type:"boolean"},items:{type:"array",items:{type:"object",shape:"menuItem"},bindable:!0},searchable:{type:"boolean"},placeholder:{type:"string"}}},searchItem:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},identifier:{type:"string"},disabled:{type:"boolean"}}},accordionItem:{properties:{title:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},count:{type:"number"}}},segment:{properties:{value:{type:"number",required:!0},tone:{type:"enum",enum:"tone"},label:{type:"string"}}},series:{properties:{name:{type:"string",required:!0},values:{type:"array",items:{type:"number"},required:!0},tone:{type:"enum",enum:"tone"}}},pageItem:{properties:{title:{type:"string"}}},step:{properties:{label:{type:"string",required:!0},description:{type:"string"}}},column:{properties:{key:{type:"string",required:!0},label:{type:"string",required:!0},type:{type:"enum",enum:"cellType",default:"text"},slot:{type:"string"},width:{type:"number"},align:{type:"enum",values:["start","center","end"],default:"start"},sortable:{type:"boolean",default:!1},currency:{type:"string"},decimals:{type:"number"},truncate:{type:"boolean",default:!1}}},sort:{properties:{key:{type:"string",required:!0},direction:{type:"enum",enum:"sortDirection",required:!0}}},panel:{properties:{min:{type:"number"},max:{type:"number"},collapsible:{type:"boolean"}}},file:{properties:{name:{type:"string",required:!0},size:{type:"number"},type:{type:"string"},url:{type:"url"}}},planStep:{properties:{title:{type:"string",required:!0},detail:{type:"string"},icon:{type:"icon"},status:{type:"enum",enum:"traceStatus"}}},outlineItem:{properties:{id:{type:"string",required:!0},title:{type:"string",required:!0,bindable:!0},count:{type:"number",bindable:!0}}},picture:{properties:{src:{type:"url",required:!0},alt:{type:"string"}}}},bv={names:["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter","bind","mul","div","mod","round","floor","ceil","abs","min","max","today","now","dateAdd","dateDiff","startOf","endOf","weekday","isoWeek","hours","formatDuration","orElse","expr"]},vv={"Accordion.trigger":"ui-chevron-down","Carousel.previous":"ui-chevron-left","Carousel.next":"ui-chevron-right","Checkbox.check":"ui-check","ChipInput.remove":"ui-close","CodeBlock.copy":"ui-copy","CodeBlock.copied":"ui-check","Composer.attachment":"ui-attach","Composer.send":"ui-send","Composer.stop":"ui-stop","DatePicker.trigger":"calendar","DatePicker.previousMonth":"ui-chevron-left","DatePicker.nextMonth":"ui-chevron-right","DateRangePicker.trigger":"calendar","Dialog.close":"ui-close","Menu.check":"ui-check","Menu.submenuIndicator":"ui-chevron-right","FileUpload.icon":"upload","FileUpload.file":"ui-file","FileUpload.remove":"ui-close","Image.fallback":"ui-icon-placeholder","NumberField.decrement":"ui-minus","NumberField.increment":"ui-add","Select.trigger":"ui-selector","Select.search":"search","Select.check":"ui-check","SearchList.search":"search","SearchList.check":"ui-check","Table.sortIcon.asc":"ui-chevron-up","Table.sortIcon.desc":"ui-chevron-down","Tabs.close":"ui-close","Tabs.new":"ui-add","TimePicker.trigger":"ui-clock","Toast.close":"ui-close","Toast.icon.info":"ui-info","Toast.icon.success":"ui-success","Toast.icon.warning":"ui-warning","Toast.icon.error":"ui-error","Unknown.root":"ui-warning","ZoomableImage.zoomOut":"ui-minus","ZoomableImage.zoomIn":"ui-add","ZoomableImage.fit":"ui-fullscreen"},$v=JSON.parse('{"Box":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"style":{"type":"style"},"pressable":{"type":"boolean"}},"events":["press"]},"Stack":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"vertical","responsive":true,"bindable":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"align":{"type":"enum","enum":"align","responsive":true,"bindable":true},"justify":{"type":"enum","enum":"justify","default":"start","responsive":true,"bindable":true},"wrap":{"type":"boolean","default":false,"responsive":true},"style":{"type":"style"}}},"Grid":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"columns":{"type":"number","default":2,"responsive":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"style":{"type":"style"}}},"Card":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"title":{"type":"string"},"description":{"type":"string"},"padded":{"type":"boolean","default":true},"style":{"type":"style"}}},"Separator":{"kind":"macro","group":"layout","lite":true,"children":"none","props":{"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"List":{"kind":"native","group":"layout","lite":true,"children":"many","slots":["section"],"slotScope":"row","props":{"direction":{"type":"enum","enum":"listDirection","default":"vertical"},"gap":{"type":"enum","enum":"gap","default":"none"},"divided":{"type":"boolean","default":false},"sectionBy":{"type":"string"},"stickyHeaders":{"type":"boolean","default":false},"style":{"type":"style"}}},"Resizable":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"horizontal","responsive":true},"sizes":{"type":"array","items":{"type":"number"},"bindable":true},"panels":{"type":"array","items":{"type":"object","shape":"panel"}},"handle":{"type":"boolean","default":false},"style":{"type":"style"}},"events":["change"]},"ScrollArea":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"scrollDirection","default":"vertical"},"maxHeight":{"type":"number"},"style":{"type":"style"}}},"Sidebar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["sidebar"],"props":{"side":{"type":"enum","values":["left","right"],"default":"left"},"width":{"type":"number","default":240},"collapseBelow":{"type":"enum","enum":"collapseBelow","default":"md"},"collapsed":{"type":"boolean","default":false,"bindable":true}}},"SplitView":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["list"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"width":{"type":"number","default":320}},"events":["back"]},"AppBar":{"kind":"macro","group":"layout","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false}},"events":["back"]},"Page":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false},"padded":{"type":"boolean","default":true}},"events":["back"]},"Toolbar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["trailing"],"props":{"gap":{"type":"enum","enum":"gap","default":"sm"}}},"Section":{"kind":"macro","group":"list","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"count":{"type":"number","bindable":true},"icon":{"type":"icon"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":true,"bindable":true},"tint":{"type":"enum","enum":"tone","default":"neutral"},"tree":{"type":"boolean","default":false},"loading":{"type":"boolean","default":false,"bindable":true},"style":{"type":"style"}},"events":["change"]},"Group":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string"},"footer":{"type":"string"}}},"Text":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"textVariant","default":"body"},"align":{"type":"enum","values":["start","center","end"]},"lines":{"type":"number"},"tone":{"type":"enum","enum":"tone"},"shimmer":{"type":"boolean","default":false},"live":{"type":"enum","enum":"live","default":"off"},"style":{"type":"style"}}},"Heading":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"level":{"type":"enum","enum":"headingLevel","default":"h2"}}},"Markdown":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"markdown","required":true,"bindable":true},"lines":{"type":"number"},"style":{"type":"style"}}},"CodeBlock":{"kind":"native","group":"text","lite":true,"children":"none","props":{"code":{"type":"string","required":true,"bindable":true},"language":{"type":"enum","enum":"codeLanguage","default":"plain"},"title":{"type":"string"},"lineNumbers":{"type":"boolean","default":false},"wrap":{"type":"boolean","default":false},"copyable":{"type":"boolean","default":true},"highlight":{"type":"array","items":{"type":"number"}},"maxLines":{"type":"number"},"variant":{"type":"enum","enum":"codeBlockVariant","default":"default","bindable":true},"size":{"type":"enum","enum":"codeBlockSize","default":"default"}}},"Kbd":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"keys":{"type":"string","required":true}}},"Label":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"for":{"type":"string"},"required":{"type":"boolean","default":false}}},"Image":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","bindable":true},"alt":{"type":"string","required":true,"bindable":true},"fit":{"type":"enum","enum":"imageFit","default":"cover"},"width":{"type":"number"},"height":{"type":"number"},"aspectRatio":{"type":"number"},"fallback":{"type":"icon"},"loading":{"type":"enum","enum":"imageLoading","default":"lazy"},"focalX":{"type":"number"},"focalY":{"type":"number"},"style":{"type":"style"}}},"ZoomableImage":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"alt":{"type":"string","required":true,"bindable":true},"naturalWidth":{"type":"number"},"naturalHeight":{"type":"number"},"initial":{"type":"enum","enum":"zoomInitial","default":"auto"},"maxScale":{"type":"number","default":8},"controls":{"type":"enum","enum":"zoomControls","default":"auto"},"scale":{"type":"number","bindable":true},"style":{"type":"style"}},"events":["zoom","tap"]},"Icon":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"icon","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","bindable":true},"label":{"type":"string"}}},"Video":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"poster":{"type":"url"},"durationMs":{"type":"number"},"autoplay":{"type":"boolean","default":false},"aspectRatio":{"type":"number","default":1.7777778},"style":{"type":"style"}}},"AudioPlayer":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"title":{"type":"string"},"durationMs":{"type":"number"}}},"Avatar":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"src":{"type":"url","bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"seed":{"type":"string"}}},"QrCode":{"kind":"native","group":"media","lite":false,"children":"none","props":{"value":{"type":"string","required":true,"bindable":true},"size":{"type":"number","default":160},"level":{"type":"enum","enum":"qrLevel","default":"M"},"label":{"type":"string"}}},"Carousel":{"kind":"native","group":"media","lite":false,"children":"many","props":{"page":{"type":"number","default":0,"bindable":true},"loop":{"type":"boolean","default":false},"indicators":{"type":"boolean","default":true},"counter":{"type":"boolean","default":false},"thumbnails":{"type":"array","items":{"type":"url"}}},"events":["change"]},"Mosaic":{"kind":"macro","group":"media","lite":false,"children":"none","props":{"pictures":{"type":"array","items":{"type":"object","shape":"picture"},"required":true},"label":{"type":"string"}},"events":["select"]},"Tabs":{"kind":"native","group":"navigation","lite":true,"children":"many","props":{"tabs":{"type":"array","items":{"type":"object","shape":"tab"},"required":true},"value":{"type":"string","bindable":true},"fill":{"type":"boolean","default":false},"closable":{"type":"enum","enum":"tabClosable","default":"none"},"addable":{"type":"boolean","default":false}},"events":["change","close","new"]},"Segmented":{"kind":"native","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"variant":{"type":"enum","enum":"segmentedVariant","default":"segmented"},"size":{"type":"enum","enum":"controlSize","default":"default"},"fill":{"type":"boolean","default":false},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}},"events":["change"]},"Accordion":{"kind":"native","group":"navigation","lite":false,"children":"many","props":{"items":{"type":"array","items":{"type":"object","shape":"accordionItem"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true}},"events":["change"]},"Collapsible":{"kind":"macro","group":"navigation","lite":true,"children":"many","props":{"title":{"type":"string","required":true},"open":{"type":"boolean","default":false,"bindable":true},"count":{"type":"number"}},"events":["change"]},"Trace":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"size":{"type":"enum","enum":"traceSize","default":"default"}}},"TraceItem":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string","required":true,"bindable":true},"icon":{"type":"icon"},"description":{"type":"string"},"status":{"type":"enum","enum":"traceStatus"},"size":{"type":"enum","enum":"traceSize","default":"default"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["change"]},"Plan":{"kind":"macro","group":"list","lite":true,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"steps":{"type":"array","items":{"type":"object","shape":"planStep"}},"state":{"type":"enum","enum":"planState","default":"proposed","bindable":true},"progress":{"type":"number","bindable":true},"approveLabel":{"type":"string","default":"$string.yes"},"declineLabel":{"type":"string","default":"$string.no"},"stopLabel":{"type":"string","default":"$string.stop"}},"events":["approve","decline","stop"]},"Pagination":{"kind":"macro","group":"navigation","lite":false,"children":"none","props":{"totalPages":{"type":"number","required":true},"page":{"type":"number","default":1,"bindable":true}},"events":["change"]},"Breadcrumb":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true}},"events":["select"]},"Outline":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"outlineItem"},"required":true},"value":{"type":"string","bindable":true},"caption":{"type":"string"}},"events":["select"]},"Stepper":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"steps":{"type":"array","items":{"type":"object","shape":"step"},"required":true},"current":{"type":"number","default":0,"bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"Dialog":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"dismissible":{"type":"boolean","default":true}},"events":["change"]},"Drawer":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom","responsive":true},"dismissible":{"type":"boolean","default":true},"dragToDismiss":{"type":"boolean","default":true}},"events":["change"]},"DockCard":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["footer"],"props":{"label":{"type":"string","required":true,"bindable":true},"title":{"type":"string","required":true,"bindable":true},"caption":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"icon":{"type":"icon"},"tone":{"type":"enum","enum":"tone","default":"neutral"},"open":{"type":"boolean","default":false,"bindable":true}},"events":["press","change"]},"AlertDialog":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"title":{"type":"string","required":true},"description":{"type":"string"},"confirmLabel":{"type":"string","default":"$string.confirm"},"cancelLabel":{"type":"string","default":"$string.cancel"},"destructive":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["confirm","cancel","change"]},"Popover":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom"},"openOn":{"type":"enum","enum":"openOn","default":"press"}},"events":["change"]},"Tooltip":{"kind":"native","group":"overlay","lite":false,"children":"many","props":{"content":{"type":"string","required":true},"side":{"type":"enum","enum":"side","default":"top"}}},"Menu":{"kind":"native","group":"overlay","lite":false,"children":"one","props":{"label":{"type":"string"},"icon":{"type":"icon"},"items":{"type":"array","items":{"type":"object","shape":"menuItem"},"required":true},"openOn":{"type":"enum","enum":"menuOpenOn","default":"press"}},"events":["select"]},"Toast":{"kind":"native","group":"overlay","lite":false,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"type":{"type":"enum","enum":"alertType","default":"info"},"open":{"type":"boolean","default":true,"bindable":true},"duration":{"type":"number","default":5000},"actionLabel":{"type":"string"},"dismissible":{"type":"boolean","default":true}},"events":["dismiss","action","change"]},"Badge":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"variant","default":"default","bindable":true},"icon":{"type":"icon"}}},"Alert":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"title":{"type":"string","required":true},"message":{"type":"string"},"type":{"type":"enum","enum":"alertType","default":"info"}}},"Chip":{"kind":"macro","group":"feedback","lite":true,"children":"none","slots":["leading"],"props":{"label":{"type":"string","required":true,"bindable":true},"shape":{"type":"enum","enum":"chipShape","default":"pill"},"selected":{"type":"boolean","default":false},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"dot":{"type":"color"},"icon":{"type":"icon"},"image":{"type":"url"},"detail":{"type":"string"},"removable":{"type":"boolean","default":false},"pressable":{"type":"boolean","default":false}},"events":["press","remove"]},"EmptyState":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"icon":{"type":"icon","required":true},"title":{"type":"string","required":true},"description":{"type":"string"},"actionLabel":{"type":"string"},"size":{"type":"enum","values":["page","list"],"default":"page"}},"events":["press"]},"Progress":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"max":{"type":"number","default":100},"label":{"type":"string"},"tone":{"type":"enum","enum":"tone","default":"primary"}}},"Meter":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"segments":{"type":"array","items":{"type":"object","shape":"segment"},"required":true},"max":{"type":"number","default":100},"label":{"type":"string"},"value":{"type":"string"}}},"Ring":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","default":"primary"},"label":{"type":"string"}}},"Spinner":{"kind":"native","group":"feedback","lite":false,"children":"none","props":{"size":{"type":"enum","enum":"spinnerSize","default":"default"},"label":{"type":"string"}}},"Skeleton":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"width":{"type":"string"},"height":{"type":"string"},"rounded":{"type":"boolean","default":false},"rows":{"type":"number"},"rowHeight":{"type":"number"},"dot":{"type":"boolean","default":true}}},"VoiceWave":{"kind":"native","group":"feedback","lite":false,"children":"one","props":{"activity":{"type":"enum","enum":"voiceWaveActivity","default":"idle","bindable":true},"variant":{"type":"enum","enum":"voiceWaveVariant","default":"ring"},"level":{"type":"number","default":0,"bindable":true},"bands":{"type":"array","items":{"type":"number"},"bindable":true},"size":{"type":"enum","enum":"voiceWaveSize","default":"md"},"label":{"type":"string"}}},"CallSurface":{"kind":"macro","group":"media","lite":false,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"avatar":{"type":"url","bindable":true},"state":{"type":"enum","enum":"callState","default":"talking","bindable":true},"activity":{"type":"enum","enum":"voiceWaveActivity","default":"speaking","bindable":true},"level":{"type":"number","bindable":true},"bands":{"type":"array","items":{"type":"number"},"bindable":true},"status":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"muted":{"type":"boolean","default":false,"bindable":true},"speaker":{"type":"boolean","bindable":true}},"events":["mute","speaker","hangUp"]},"Table":{"kind":"native","group":"data","lite":false,"children":"none","slots":["*"],"slotScope":"row","props":{"columns":{"type":"array","items":{"type":"object","shape":"column"},"required":true},"rows":{"type":"array","items":{"type":"object"},"required":true,"bindable":true},"rowKey":{"type":"string","default":"id"},"sort":{"type":"object","shape":"sort","bindable":true},"selectable":{"type":"enum","enum":"selectable","default":"none"},"selected":{"type":"array","items":{"type":"string"},"bindable":true},"caption":{"type":"string"},"emptyText":{"type":"string","default":"$string.noResults"},"striped":{"type":"boolean","default":false},"density":{"type":"enum","enum":"density","default":"default"},"stickyHeader":{"type":"boolean","default":false}},"events":["sort","select","rowPress"]},"Chart":{"kind":"native","group":"data","lite":false,"children":"none","props":{"kind":{"type":"enum","enum":"chartKind","required":true},"categories":{"type":"array","items":{"type":"string"},"bindable":true},"series":{"type":"array","items":{"type":"object","shape":"series"},"required":true,"bindable":true},"title":{"type":"string"},"height":{"type":"number","default":200},"xLabel":{"type":"string"},"yLabel":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"showAxes":{"type":"boolean","default":true},"showGrid":{"type":"boolean","default":true},"showLegend":{"type":"boolean","default":true},"showValues":{"type":"boolean","default":false}}},"Sparkline":{"kind":"macro","group":"data","lite":false,"children":"none","props":{"values":{"type":"array","items":{"type":"number"},"required":true,"bindable":true},"tone":{"type":"enum","enum":"tone","default":"primary"},"height":{"type":"number","default":24}}},"StatTile":{"kind":"macro","group":"data","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true,"bindable":true},"delta":{"type":"string","bindable":true},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"trend":{"type":"array","items":{"type":"number"},"bindable":true}}},"Button":{"kind":"native","group":"action","lite":true,"children":"one","props":{"label":{"type":"string","bindable":true},"icon":{"type":"icon","bindable":true},"href":{"type":"url"},"variant":{"type":"enum","enum":"variant","default":"default"},"size":{"type":"enum","enum":"size","default":"default"},"disabled":{"type":"boolean","default":false,"bindable":true},"loading":{"type":"boolean","default":false},"pendingLabel":{"type":"string"},"submit":{"type":"boolean","default":false},"hold":{"type":"boolean","default":false},"holdingLabel":{"type":"string"}},"events":["press","holdStart","holdEnd","holdCancel"]},"Link":{"kind":"native","group":"action","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"href":{"type":"url"},"external":{"type":"boolean","default":false}},"events":["press"]},"Toggle":{"kind":"native","group":"action","lite":false,"children":"none","props":{"label":{"type":"string","required":true},"icon":{"type":"icon"},"pressed":{"type":"boolean","default":false,"bindable":true},"variant":{"type":"enum","values":["default","outline"],"default":"default"},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Form":{"kind":"native","group":"input","lite":true,"children":"many","props":{"name":{"type":"string","required":true},"disabled":{"type":"boolean","default":false,"bindable":true},"busy":{"type":"boolean","default":false,"bindable":true},"summary":{"type":"boolean","default":false}},"events":["submit","invalid","change"]},"FieldGroup":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"columns":{"type":"number","default":2}}},"FormActions":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"submit":{"type":"string","required":true,"bindable":true},"cancel":{"type":"boolean","default":false},"destructive":{"type":"boolean","default":false}},"events":["cancel"]},"Input":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"type":{"type":"enum","enum":"inputType","default":"text"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Textarea":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"placeholder":{"type":"string"},"rows":{"type":"number","default":3},"autosize":{"type":"boolean","default":false},"maxRows":{"type":"number"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","focus","blur"]},"NumberField":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"value":{"type":"number","bindable":true},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number","default":1},"precision":{"type":"number"},"unit":{"type":"string"},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Checkbox":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Radio":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"value":{"type":"string","bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"vertical"},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"ChoiceTiles":{"kind":"native","group":"input","lite":false,"children":"none","props":{"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"columns":{"type":"number","default":2},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Switch":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"description":{"type":"string"},"disabled":{"type":"boolean","default":false},"size":{"type":"enum","enum":"switchSize","default":"default"}},"events":["change"]},"Slider":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"min":{"type":"number","default":0,"bindable":true},"max":{"type":"number","required":true,"bindable":true},"step":{"type":"number","default":1},"value":{"type":"number","bindable":true}},"events":["change"]},"Rating":{"kind":"macro","group":"input","lite":true,"children":"none","props":{"value":{"type":"number","default":0,"bindable":true},"max":{"type":"number","default":5,"minimum":1,"maximum":100},"readOnly":{"type":"boolean","default":false},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Select":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"source":{"type":"string"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"multiple":{"type":"boolean","default":false},"searchable":{"type":"boolean","default":false},"emptyText":{"type":"string","default":"$string.noResults"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"change"}},"events":["change","search"]},"SearchList":{"kind":"native","group":"input","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"searchItem"},"required":true,"bindable":true},"query":{"type":"string","bindable":true},"placeholder":{"type":"string","default":"$string.search"},"value":{"type":"string","bindable":true},"emptyText":{"type":"string","default":"$string.noResults"},"maxRows":{"type":"number","default":8},"showCount":{"type":"boolean","default":true}},"events":["search","select"]},"ChipInput":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"values":{"type":"array","items":{"type":"string"},"bindable":true},"suggestions":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"placeholder":{"type":"string"},"max":{"type":"number"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change","add","remove"]},"DatePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"DateRangePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"start":{"type":"date","bindable":true},"end":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"TimePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"string","bindable":true},"min":{"type":"string"},"max":{"type":"string"},"step":{"type":"number","default":15},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["change"]},"FileUpload":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"accept":{"type":"string"},"multiple":{"type":"boolean","default":false},"maxSize":{"type":"number"},"files":{"type":"array","items":{"type":"object","shape":"file"},"bindable":true},"hint":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["upload","remove"]},"QrScanner":{"kind":"native","group":"input","lite":false,"children":"none","props":{"hint":{"type":"string","bindable":true},"formats":{"type":"array","items":{"type":"string"},"default":["qr"]},"label":{"type":"string","default":"$string.scanQrCode"},"disabled":{"type":"boolean","default":false}},"events":["scanned"]},"Composer":{"kind":"native","group":"input","lite":true,"children":"none","props":{"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"submitLabel":{"type":"string","default":"$string.send"},"attachments":{"type":"boolean","default":false},"busy":{"type":"boolean","default":false}},"events":["submit","change","stop"]},"Row":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"identifier":{"type":"string","bindable":true},"subtitle":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"value":{"type":"string","bindable":true},"placeholder":{"type":"string"},"icon":{"type":"icon","bindable":true},"chevron":{"type":"enum","enum":"rowChevron","default":"none","bindable":true},"selected":{"type":"boolean","default":false,"bindable":true},"density":{"type":"enum","enum":"density","default":"default"},"surface":{"type":"enum","enum":"rowSurface","default":"flat"},"pressable":{"type":"boolean","default":false},"href":{"type":"url"},"depth":{"type":"number","default":0}},"events":["press"]},"MessageBubble":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["attachment"],"props":{"text":{"type":"markdown","required":true,"bindable":true},"side":{"type":"enum","enum":"messageSide","default":"in"},"time":{"type":"string","bindable":true},"status":{"type":"enum","enum":"messageStatus","bindable":true},"author":{"type":"string","bindable":true}}},"TreeGuides":{"kind":"native","group":"list","lite":true,"children":"none","hidden":true,"props":{"depth":{"type":"number","required":true},"elbowAt":{"type":"number"},"tee":{"type":"boolean","default":false},"passThrough":{"type":"array","items":{"type":"number"}}}},"Unknown":{"kind":"native","group":"feedback","lite":true,"children":"none","hidden":true,"props":{"component":{"type":"string","required":true},"catalogId":{"type":"string"}}},"Motion":{"kind":"native","group":"media","lite":true,"children":"none","props":{"layers":{"type":"array","items":{"type":"object"}},"size":{"type":"array","items":{"type":"number"}},"duration":{"type":"number"},"fps":{"type":"number","default":60},"assets":{"type":"object"},"markers":{"type":"array","items":{"type":"object"}},"lottie":{"type":"object"},"src":{"type":"url"},"autoplay":{"type":"boolean","default":true},"loop":{"type":"boolean","default":true},"plays":{"type":"number"},"direction":{"type":"enum","enum":"motionDirection","default":"forward"},"speed":{"type":"number","default":1},"segment":{"type":"array","items":{"type":"number"}},"marker":{"type":"string"},"progress":{"type":"number","bindable":true},"play":{"type":"boolean","bindable":true,"default":true},"poster":{"type":"number"},"fit":{"type":"enum","enum":"motionFit","default":"contain"},"slots":{"type":"object"},"stateMachine":{"type":"object"},"inputs":{"type":"object","bindable":true},"label":{"type":"string"},"style":{"type":"style"}},"events":["press","hover","visible","complete","state"]},"Calendar":{"kind":"macro","group":"data","lite":true,"children":"none","events":["select","open"],"props":{"source":{"type":"string"},"view":{"type":"enum","enum":"calendarView","default":"month"},"labelField":{"type":"string","default":"title"},"detailField":{"type":"string","default":"detail"},"metaField":{"type":"string","default":"status"},"style":{"type":"style"}}},"Timeline":{"kind":"macro","group":"data","lite":true,"children":"none","events":["open"],"props":{"source":{"type":"string"},"labelField":{"type":"string","default":"title"},"rowTitle":{"type":"string"},"showCount":{"type":"boolean","default":false},"style":{"type":"style"}}},"RecordForm":{"kind":"macro","group":"data","lite":true,"children":"none","props":{"kind":{"type":"string","required":true},"recordId":{"type":"string","bindable":true},"submitLabel":{"type":"string","default":"$string.save"},"readOnly":{"type":"boolean","default":false},"cancel":{"type":"boolean","default":false},"path":{"type":"string"},"fields":{"type":"array","items":{"type":"object"},"host":true},"missing":{"type":"boolean","default":false,"host":true}},"events":["submit","cancel"]},"RecordTable":{"kind":"macro","group":"data","lite":false,"children":"none","props":{"kind":{"type":"string","required":true},"query":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}},"add":{"type":"boolean","default":true},"editable":{"type":"boolean","default":true},"title":{"type":"string","host":true},"cols":{"type":"array","items":{"type":"object","shape":"column"},"host":true},"rows":{"type":"array","items":{"type":"object"},"bindable":true,"host":true},"count":{"type":"string","bindable":true,"host":true},"loading":{"type":"boolean","default":false,"bindable":true,"host":true},"fields":{"type":"array","items":{"type":"object"},"host":true},"path":{"type":"string","host":true},"editorOpen":{"type":"boolean","default":false,"bindable":true,"host":true},"editorId":{"type":"string","bindable":true,"host":true},"deleteOpen":{"type":"boolean","default":false,"bindable":true,"host":true},"missing":{"type":"boolean","default":false,"host":true}}}}'),xv={id:fv,liteId:hv,unknownComponent:mv,enums:gv,defs:yv,functions:bv,builtinIcons:vv,components:$v},wv="VAPP-85: the token NAMES the core catalog's macros and Box styles reference as `$<group>.<name>` (e.g. `$color.primary`, `$spacing.md`). VALUES come from a theme (VAPP-92); this file only fixes the vocabulary. `color` = the shadcn semantic set plus success/warning/info and the eight chart hues (round 1 added chart6..8); `spacing`/`radius`/`type` mirror packages/design-tokens' scales by NAME (xl2 because 2xl is not an identifier in Swift/Kotlin/Rust); `control` = the per-kind control heights the VAPP-4 spike asked for instead of px (round 1 adds `appBar`, `tabBar`, `toast`); `shadow` = the boxShadow presets, ALSO the elevation scale (none < sm < md < lg < xl: flat, card, popover, dialog, toast; paint order inside a layer stays tree order, overlays stack by layer, never by zIndex); `opacity` = the text-emphasis ladder; VAPP-92 adds `border` (the border-width ladder, px) and `motion` (durations, ms). Round 1 (docs/round-1-contract.md) adds `breakpoint` (px, the ONLY tokens a style CONDITION may reference: `\"@media (min-width: $breakpoint.md)\"`; resolved against the theme before matching), `ease` (cubic-bezier control points [x1, y1, x2, y2], referenced by `transitionEasing`) and `density` (multipliers over `control` and `spacing` for the surface density `compact`/`comfortable`; `default` = 1, never a token). Round 2 (docs/round-2-contract.md §2) adds `blur` (px radii, the ONLY values `backdropBlur` takes). EXP-1259 (EXP-1243, packages/design-tokens motion.scale) adds `scale` (unitless multipliers the PAINTERS read, never a style value): `press` = what a pressed button scales to, `popoverFrom` = what a popover or menu scales FROM while it fades in (never from 0); reduce motion = no scale. VAPP-162 appends `type.family.serif` (the platform's system serif, `ui-serif` in every built-in theme). Every group is append-only: a theme is validated against these names.",kv=["background","foreground","card","cardForeground","popover","popoverForeground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","accent","accentForeground","destructive","destructiveForeground","success","successForeground","warning","warningForeground","info","infoForeground","border","input","ring","chart1","chart2","chart3","chart4","chart5","chart6","chart7","chart8"],Sv=["none","xxs","xs","sm","md","lg","xl","xl2","xl3"],Cv=["none","sm","md","lg","xl","xl2","xl3","full"],Av={size:["xs","sm","base","lg","xl","xl2","xl3"],lineHeight:["xs","sm","base","lg","xl","xl2","xl3"],weight:["regular","medium","semibold","bold"],family:["sans","mono","serif"]},_v=["buttonSm","buttonMd","buttonLg","buttonIcon","input","textarea","row","rowCompact","pill","badge","chip","toggle","switch","checkbox","slider","progress","meter","avatarSm","avatarMd","avatarLg","iconSm","iconMd","iconLg","hairline","appBar","tabBar","toast"],Ov=["none","sm","md","lg","xl"],Tv=["primary","secondary","tertiary","quaternary","disabled"],Mv=["none","hairline","thick"],Ev=["fast","standard","slow"],Iv=["sm","md","lg","xl"],Pv=["standard","decelerate","accelerate"],Dv=["compact","comfortable"],Rv=["sm","md","lg","xl"],Fv=["press","popoverFrom"],zv={$comment:wv,color:kv,spacing:Sv,radius:Cv,type:Av,control:_v,shadow:Ov,opacity:Tv,border:Mv,motion:Ev,breakpoint:Iv,ease:Pv,density:Dv,blur:Rv,scale:Fv},Nv="https://a2ui.org/specification/v0_9/basic_catalog.json",Lv="v0.9",jv="ui-icon-placeholder",Bv={Text:{to:"Text",props:{text:"text"},transform:"textVariant"},Image:{to:"Image",props:{src:"url",alt:{from:"description",default:""},fit:{from:"fit",default:"cover"}},transform:"imageVariant"},Icon:{to:"Icon",props:{},transform:"iconName"},Video:{to:"Video",props:{src:"url"}},AudioPlayer:{to:"AudioPlayer",props:{src:"url",title:"description"}},Row:{to:"Stack",children:"children",props:{direction:{const:"horizontal"},justify:{from:"justify",map:{spaceBetween:"between",spaceAround:"around",spaceEvenly:"evenly",stretch:"start"},default:"start"},align:{from:"align",default:"stretch"},gap:{const:"sm"}}},Column:{to:"Stack",children:"children",props:{direction:{const:"vertical"},justify:{from:"justify",map:{spaceBetween:"between",spaceAround:"around",spaceEvenly:"evenly",stretch:"start"},default:"start"},align:{from:"align",default:"stretch"},gap:{const:"sm"}}},List:{to:"List",children:"children",props:{direction:{from:"direction",default:"vertical"},gap:{const:"sm"}}},Card:{to:"Card",children:"child",props:{}},Tabs:{to:"Tabs",props:{},transform:"tabs"},Modal:{to:"Dialog",props:{},transform:"modal"},Divider:{to:"Separator",props:{orientation:{from:"axis",default:"horizontal"}}},Button:{to:"Button",props:{variant:{from:"variant",map:{primary:"default",default:"secondary",borderless:"ghost"},default:"secondary"}},transform:"buttonChild"},TextField:{to:"Input",props:{label:"label",value:"value",checks:"checks"},transform:"textField"},CheckBox:{to:"Checkbox",props:{label:"label",checked:"value",checks:"checks"},transform:"fieldName"},ChoicePicker:{to:"Radio",props:{label:"label",options:"options",checks:"checks"},transform:"choicePicker"},Slider:{to:"Slider",props:{label:"label",min:{from:"min",default:0},max:"max",value:"value"}},DateTimeInput:{to:"DatePicker",props:{label:"label",value:"value",min:"min",max:"max"},transform:"fieldName"}},Wv={accountCircle:"ui-assignee",add:"ui-add",arrowBack:"ui-back",arrowForward:"ui-arrow-right",attachFile:"ui-attach",calendarToday:"calendar",call:"phone",camera:"camera",check:"ui-check",close:"ui-close",delete:"ui-delete",download:"ui-download",edit:"ui-edit",event:"ui-due-date",error:"ui-error",fastForward:"media-fast-forward",favorite:"heart",favoriteOff:"ui-favorite-off",folder:"ui-folder",help:"ui-help",home:"house",info:"ui-info",locationOn:"map-pin",lock:"ui-private",lockOpen:"ui-unlock",mail:"ui-mail",menu:"ui-menu",moreVert:"ui-more-vertical",moreHoriz:"ui-more",notificationsOff:"ui-unsubscribe",notifications:"ui-subscribe",pause:"run-pause",payment:"credit-card",person:"ui-avatar-placeholder",phone:"smartphone",photo:"image",play:"action-run",print:"ui-print",refresh:"ui-refresh",rewind:"media-rewind",search:"nav-search",send:"ui-send",settings:"nav-settings",share:"ui-share",shoppingCart:"shopping-cart",skipNext:"media-skip-next",skipPrevious:"media-skip-previous",star:"star",starHalf:"ui-star-half",starOff:"ui-star-off",stop:"ui-stop",upload:"sc-push",visibility:"ui-watch",visibilityOff:"ui-hide",volumeDown:"media-volume-down",volumeMute:"media-volume-mute",volumeOff:"media-volume-off",volumeUp:"media-volume-up",warning:"ui-warning"},bu={from:Nv,version:Lv,placeholderIcon:jv,components:Bv,icons:Wv},Hv=JSON.parse('{"Stack":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"flexWrap":{"$cond":["props.wrap","wrap","nowrap"]},"gap":"$spacing.{props.gap|md}","alignItems":{"$coalesce":["{props.align}",{"$map":{"from":"props.direction","cases":{"horizontal":"center"},"default":"stretch"}}]},"justifyContent":{"$map":{"from":"props.justify","cases":{"between":"space-between","around":"space-around","evenly":"space-evenly"},"default":"{props.justify|start}"}}},"children":["$children"]}},"Grid":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))","gap":"$spacing.{props.gap|md}"},"children":["$children"]}},"Card":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.xl","overflow":"hidden"},"children":[{"part":"header","component":"Box","$any":["props.title","props.description"],"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","paddingTop":"$spacing.lg","paddingHorizontal":"$spacing.lg"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"title"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Separator":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"separator"},"style":{"alignSelf":"stretch","flexShrink":0,"width":{"$map":{"from":"props.orientation","cases":{"vertical":1},"default":"auto"}},"height":{"$map":{"from":"props.orientation","cases":{"vertical":"auto"},"default":1}}}}},"Section":{"recipeProps":["tint","tree","open","collapsible"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.sm"},"children":[{"part":"header","component":"Box","$if":["props.title",{"$not":"props.collapsible"}],"$a11y":{"role":"heading","level":3},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"header","component":"Box","$if":["props.title","props.collapsible"],"$a11y":{"role":"button","expanded":"{props.open|true}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":{"$not":"props.open|true"}},"$set":{"press":{"prop":"open","value":{"$not":"props.open|true"}}},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"body","component":"List","$if":"props.open|true","$a11y":{"role":{"$cond":["props.tree","tree","list"]}},"props":{"divided":true,"gap":"none","style":"{props.style}"},"children":["$children"]}]}},"Group":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}","description":"{props.footer}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"label"},"style":{"paddingHorizontal":"$spacing.md"}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.lg","overflow":"hidden"},"children":["$children"]},{"part":"footer","component":"Text","$if":"props.footer","props":{"text":"{props.footer}","variant":"muted"},"style":{"paddingHorizontal":"$spacing.md"}}]}},"Heading":{"recipeProps":["level"],"root":{"part":"root","component":"Text","$a11y":{"role":"heading","level":{"$map":{"from":"props.level","cases":{"h1":1,"h2":2,"h3":3,"h4":4},"default":2}}},"props":{"text":"{props.text}","variant":"title"}}},"Collapsible":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":"$control.row","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.md"},"$recipe":{"open":"{props.open|false}"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$recipe":{"open":"{props.open|false}"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}}]},{"part":"body","component":"Box","$if":"props.open","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","paddingHorizontal":"$spacing.sm"},"children":["$children"]}]}},"Trace":{"recipeProps":["size"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0},"children":["$children"]}},"TraceItem":{"recipeProps":["status","size","collapsible","open"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"line","component":"Box","$if":{"$not":"props.collapsible"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}}]},{"part":"line","component":"Box","$if":"props.collapsible","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"chevron","component":"Icon","props":{"name":"trace-chevron","size":"sm"},"$recipe":{"open":"{props.open|false}"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0,"marginLeft":{"$map":{"from":"props.size","cases":{"sm":-2},"default":-4}}}}]},{"part":"content","component":"Box","$if":["props.collapsible","props.open"],"style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0,"marginTop":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"marginBottom":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}},"marginLeft":{"$map":{"from":"props.size","cases":{"sm":6},"default":7}},"borderLeftWidth":1,"paddingLeft":{"$map":{"from":"props.size","cases":{"sm":13},"default":16}},"paddingRight":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}}},"children":["$children"]}]}},"Pagination":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.pagination"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"prev","component":"Button","props":{"icon":"ui-chevron-left","variant":"outline","size":"icon","label":"$string.previous","disabled":{"$not":{"$lt":[1,"{props.page|1}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}}}},{"part":"label","component":"Text","props":{"text":"{props.page|1} / {props.totalPages}","variant":"muted"},"$a11y":{"role":"status","label":{"$fill":["$string.pageOf",{"page":"{props.page|1}","total":"{props.totalPages}"}]}}},{"part":"next","component":"Button","props":{"icon":"ui-chevron-right","variant":"outline","size":"icon","label":"$string.next","disabled":{"$not":{"$lt":["{props.page|1}","{props.totalPages}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}}}}]}},"Badge":{"recipeProps":["variant"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","height":"$control.badge","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.full","alignSelf":"flex-start"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.text}","variant":"caption","lines":1}}]}},"Alert":{"recipeProps":["type"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$map":{"from":"props.type","cases":{"warning":"alert","error":"alert"},"default":"status"}}},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.lg"},"children":[{"part":"icon","component":"Icon","props":{"name":{"$map":{"from":"props.type","cases":{"success":"ui-success","warning":"ui-warning","error":"ui-error"},"default":"ui-info"}},"size":"sm","tone":{"$map":{"from":"props.type","cases":{"success":"success","warning":"warning","error":"danger"},"default":"info"}}}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label"}},{"part":"message","component":"Text","$if":"props.message","props":{"text":"{props.message}","variant":"muted"}}]}]}},"Chip":{"recipeProps":["shape","selected","tone"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"pressed":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs","paddingHorizontal":"$spacing.sm","alignSelf":"flex-start","height":{"$map":{"from":"props.shape","cases":{"rect":"$control.chip"},"default":"$control.pill"}},"borderRadius":{"$map":{"from":"props.shape","cases":{"rect":"$radius.md"},"default":"$radius.full"}}},"children":["$slot:leading",{"part":"dot","component":"Box","$if":"props.dot","style":{"width":8,"height":8,"borderRadius":"$radius.full","backgroundColor":"{props.dot}","flexShrink":0}},{"part":"image","component":"Image","$if":"props.image","props":{"src":"{props.image}","alt":"{props.label}","width":16,"height":16,"fit":"cover"},"style":{"borderRadius":"$radius.full"}},{"part":"icon","component":"Icon","$if":["props.icon","!props.image"],"props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","lines":1}},{"part":"detail","component":"Text","$if":"props.detail","props":{"text":"{props.detail}","variant":"muted","lines":1}},{"part":"remove","component":"Button","$if":"props.removable","props":{"icon":"ui-close","variant":"ghost","size":"icon","label":"$string.remove"},"$on":{"press":"remove"}}]}},"EmptyState":{"recipeProps":["size"],"root":{"part":"root","component":"Box","$a11y":{"role":"status"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"list":"$spacing.xs"},"default":"$spacing.md"}},"paddingVertical":{"$map":{"from":"props.size","cases":{"list":"$spacing.xl"},"default":"$spacing.xl3"}},"paddingHorizontal":{"$map":{"from":"props.size","cases":{"list":"$spacing.md"},"default":"$spacing.xl"}}},"children":[{"part":"disc","component":"Box","$if":{"$not":{"$eq":["{props.size|page}","list"]}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":48,"height":48,"borderRadius":"$radius.full","flexShrink":0},"children":[{"part":"icon","component":"Icon","props":{"name":"{props.icon}","size":"lg","tone":"neutral"}}]},{"part":"icon","component":"Icon","$if":{"$eq":["{props.size|page}","list"]},"props":{"name":"{props.icon}","size":"default","tone":"neutral"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":{"$map":{"from":"props.size","cases":{"list":"muted"},"default":"title"}},"align":"center"}},{"part":"description","component":"Text","$if":["props.description",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"text":"{props.description}","variant":"muted","align":"center"}},{"part":"action","component":"Button","$if":["props.actionLabel",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"label":"{props.actionLabel}","variant":"outline"},"$on":{"press":"press"}}]}},"Progress":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","$a11y":{"role":"progressbar","label":"{props.label}","valueNow":"{props.value}","valueMin":0,"valueMax":"{props.max|100}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"}},{"part":"track","component":"Box","style":{"height":"$control.progress","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"fill","component":"Box","style":{"height":"100%","width":{"$percent":["{props.value}","{props.max|100}"]},"borderRadius":"$radius.full"}}]}]}},"Meter":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"meter","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"header","component":"Box","$any":["props.label","props.value"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"},"style":{"flexGrow":1,"minWidth":0}},{"part":"value","component":"Text","$if":"props.value","props":{"text":"{props.value}","variant":"muted"}}]},{"part":"track","component":"Box","style":{"display":"flex","flexDirection":"row","height":"$control.meter","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"segment","component":"Box","$each":"props.segments","$as":"item","style":{"height":"100%","width":{"$percent":["{item.value}","{props.max|100}"]}},"$recipe":{"tone":"{item.tone|neutral}"}}]}]}},"Row":{"recipeProps":["selected","density","surface","depth"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"selected":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}","href":"{props.href}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":{"$map":{"from":"props.density","cases":{"compact":"$control.rowCompact"},"default":"$control.row"}},"paddingHorizontal":"$spacing.md","borderRadius":{"$map":{"from":"props.surface","cases":{"card":"$radius.lg"},"default":"$radius.md"}}},"children":[{"part":"guides","component":"TreeGuides","$if":{"$lt":[0,"{props.depth|0}"]},"props":{"depth":"{props.depth}"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"identifier","component":"Text","$if":"props.identifier","props":{"text":"{props.identifier}","variant":"code","lines":1},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0,"paddingVertical":{"$map":{"from":"props.surface","cases":{"card":"$spacing.md"},"default":"$spacing.xs"}}},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"body","lines":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1,"hostLinks":true}}]},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}},{"part":"value","component":"Text","$any":["props.value","props.placeholder"],"props":{"text":{"$coalesce":["{props.value}","{props.placeholder}"]},"variant":{"$cond":["props.value","body","muted"]},"lines":1,"align":"end"}},"$slot:trailing",{"part":"chevron","component":"Icon","$if":{"$not":{"$eq":["{props.chevron|none}","none"]}},"props":{"name":{"$map":{"from":"props.chevron","cases":{"selector":"ui-selector"},"default":"ui-chevron-right"}},"size":"sm","tone":"neutral"}}]}},"ScrollArea":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"region"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"overflowX":{"$map":{"from":"props.direction","cases":{"horizontal":"auto","both":"auto"},"default":"hidden"}},"overflowY":{"$map":{"from":"props.direction","cases":{"vertical":"auto","both":"auto"},"default":"hidden"}},"minWidth":0,"minHeight":0,"maxHeight":"{props.maxHeight}"},"children":["$children"]}},"Sidebar":{"recipeProps":["side"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.side","cases":{"right":"row-reverse"},"default":"row"}},"alignItems":"stretch","gap":"$spacing.lg","width":"100%","minHeight":0},"children":[{"part":"sidebar","component":"Box","$if":"!props.collapsed","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|240}","flexShrink":0,"minHeight":0,"@media (max-width: $breakpoint.{props.collapseBelow|md})":{"$cond":[{"$not":{"$eq":["{props.collapseBelow|md}","never"]}},{"display":"none"}]}},"children":["$slot:sidebar"]},{"part":"main","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0},"children":["$children"]}]}},"AppBar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"banner"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.appBar","paddingHorizontal":"$spacing.md","width":"100%"},"children":[{"part":"back","component":"Button","$if":"props.back","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"}},"$slot:leading",{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"title","lines":1},"$a11y":{"role":"heading","level":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1}}]},"$slot:trailing"]}},"Kbd":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","height":"$control.badge","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","alignSelf":"flex-start"},"children":[{"part":"label","component":"Text","props":{"text":"{props.keys}","variant":"code","lines":1}}]}},"Label":{"recipeProps":["required"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs"},"children":[{"part":"text","component":"Text","props":{"text":"{props.text}","variant":"label"}},{"part":"mark","component":"Text","$if":"props.required","props":{"text":"*","variant":"label","tone":"danger"}}]}},"Breadcrumb":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.breadcrumb"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","flexWrap":"wrap","gap":"$spacing.xs"},"children":[{"part":"item","component":"Box","$each":"props.items","$as":"item","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs"},"$recipe":{"current":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"children":[{"part":"separator","component":"Icon","$if":{"$lt":[0,"{index}"]},"props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$a11y":{"hidden":true}},{"part":"link","component":"Button","$if":{"$not":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"props":{"label":"{item.label}","icon":"{item.icon}","variant":"link","size":"sm"},"$on":{"press":"select"},"$context":{"value":"{item.value}"}},{"part":"current","component":"Text","$if":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]},"props":{"text":"{item.label}","variant":"label","lines":1},"$a11y":{"current":"page"}}]}]}},"Outline":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"{props.caption|$string.outline}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"caption","lines":1},"$a11y":{"hidden":true}},{"part":"row","component":"Box","$each":"props.items","$as":"item","props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs","position":"relative","height":"$control.rowCompact","paddingHorizontal":"$spacing.sm","minWidth":0,"overflow":"hidden","cursor":"pointer"},"$recipe":{"active":{"$eq":["{item.id}","{props.value}"]}},"$a11y":{"role":"link","label":{"$cond":["item.count",{"$fill":["$string.outlineRow",{"title":"{item.title}","count":"{item.count}"}]},"{item.title}"]},"current":{"$cond":[{"$eq":["{item.id}","{props.value}"]},"location",false]}},"$on":{"press":"select"},"$context":{"id":"{item.id}"},"$set":{"press":{"prop":"value","value":"{item.id}"}},"children":[{"part":"bar","component":"Box","$if":{"$eq":["{item.id}","{props.value}"]},"$a11y":{"hidden":true},"style":{"position":"absolute","insetInlineStart":0,"top":0,"bottom":0,"width":2}},{"part":"title","component":"Text","props":{"text":"{item.title}","lines":1},"$recipe":{"active":{"$eq":["{item.id}","{props.value}"]}},"style":{"flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0}},{"part":"count","component":"Text","$if":"item.count","props":{"text":"· {item.count}","variant":"caption","lines":1},"$a11y":{"hidden":true},"style":{"flexShrink":0}}]}]}},"Stepper":{"recipeProps":["orientation"],"root":{"part":"root","component":"Box","$a11y":{"role":"list"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"column"},"default":"row"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"stretch"},"default":"flex-start"}},"gap":"$spacing.md","width":"100%"},"children":[{"part":"step","component":"Box","$each":"props.steps","$as":"step","style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"row"},"default":"column"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"flex-start"},"default":"center"}},"gap":"$spacing.xs","flexGrow":1,"flexBasis":0,"minWidth":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"$a11y":{"role":"listitem","current":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"step",false]},"label":{"$fill":[{"$cond":[{"$lt":["{index}","{props.current|0}"]},"$string.stepDone",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"$string.stepCurrent","$string.stepUpcoming"]}]},{"step":{"$add":["{index}",1]},"total":"{len(props.steps)}","label":"{step.label}"}]}},"children":[{"part":"marker","component":"Box","$a11y":{"hidden":true},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":"$control.iconLg","height":"$control.iconLg","borderRadius":"$radius.full","flexShrink":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"children":[{"part":"check","component":"Icon","$if":{"$lt":["{index}","{props.current|0}"]},"props":{"name":"ui-check","size":"sm"}},{"part":"number","component":"Text","$if":{"$not":{"$lt":["{index}","{props.current|0}"]}},"props":{"text":{"$text":{"$add":["{index}",1]}},"variant":"caption"},"$recipe":{"status":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"label","component":"Text","props":{"text":"{step.label}","variant":"label","lines":1},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}}},{"part":"description","component":"Text","$if":"step.description","props":{"text":"{step.description}","variant":"muted","lines":2}}]}]}]}},"Rating":{"recipeProps":["size","readOnly"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.readOnly","img","group"]},"label":{"$cond":["props.readOnly",{"$fill":["$string.ratingValue",{"value":"{props.value|0}","max":"{props.max|5}"}]}]}},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","alignSelf":"flex-start"},"children":[{"part":"star","component":"Box","$each":"range(props.max|5)","$as":"star","props":{"pressable":{"$not":"props.readOnly"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}},"$a11y":{"role":{"$cond":["props.readOnly","hidden","button"]},"label":{"$fill":["$string.ratingStar",{"value":{"$add":["{index}",1]},"max":"{props.max|5}"}]},"pressed":{"$eq":[{"$add":["{index}",1]},"{props.value|0}"]}},"$on":{"press":"change"},"$context":{"value":{"$add":["{index}",1]}},"$set":{"press":{"prop":"value","value":{"$add":["{index}",1]}}},"children":[{"part":"icon","component":"Icon","props":{"name":"star","size":"{props.size|default}"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}}}]}]}},"AlertDialog":{"recipeProps":["destructive"],"root":{"part":"root","component":"Dialog","$a11y":{"role":"alertdialog"},"props":{"title":"{props.title}","description":"{props.description}","open":"{props.open|false}","dismissible":false},"slots":{"trigger":"$slot:trigger","footer":{"part":"footer","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"cancel","component":"Button","props":{"label":"{props.cancelLabel|$string.cancel}","variant":"outline"},"$a11y":{"autoFocus":true},"$on":{"press":"cancel"},"$set":{"press":{"prop":"open","value":false}}},{"part":"confirm","component":"Button","props":{"label":"{props.confirmLabel|$string.confirm}","variant":{"$cond":["props.destructive","destructive","default"]}},"$on":{"press":"confirm"},"$set":{"press":{"prop":"open","value":false}}}]}},"$on":{"change":"change"},"children":["$children"]}},"DockCard":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","label":"{props.label}: {props.title}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.xl"},"$on":{"press":"press"},"$set":{"press":{"prop":"open","value":true}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm","tone":"{props.tone|neutral}"},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","tone":"{props.tone|neutral}","lines":1}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}}]},{"part":"row","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}}]}]}]},{"part":"sheet","component":"Drawer","props":{"title":"{props.label}","description":"{props.caption}","open":"{props.open|false}","side":"bottom"},"slots":{"footer":"$slot:footer"},"$on":{"change":"change"},"children":["$children"]}]}},"Sparkline":{"recipeProps":["tone"],"root":{"part":"root","component":"Chart","props":{"kind":"sparkline","series":[{"name":"","values":"{props.values}","tone":"{props.tone|primary}"}],"height":"{props.height|24}","showAxes":false,"showGrid":false,"showLegend":false},"style":{"width":"100%"}}},"Page":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"width":"100%"},"children":[{"part":"header","component":"AppBar","props":{"title":"{props.title}","subtitle":"{props.subtitle}","back":"{props.back|false}"},"slots":{"leading":"$slot:leading","trailing":"$slot:trailing"},"$on":{"back":"back"}},{"part":"body","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"overflowY":"auto","gap":"$spacing.lg","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Toolbar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","alignItems":"flex-end","gap":"$spacing.{props.gap|sm}","width":"100%"},"children":["$children",{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]}},"SplitView":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"stretch","width":"100%","flexGrow":1,"minHeight":0},"children":[{"part":"list","component":"Box","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|320}","flexShrink":0,"minHeight":0,"overflowY":"auto","@media (max-width: $breakpoint.md)":{"width":"100%","flexShrink":1,"display":{"$cond":["props.open","none","flex"]}}},"children":["$slot:list"]},{"part":"divider","component":"Separator","props":{"orientation":"vertical"},"style":{"@media (max-width: $breakpoint.md)":{"display":"none"}}},{"part":"detail","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0,"@media (max-width: $breakpoint.md)":{"display":{"$cond":["props.open","flex","none"]}}},"children":[{"part":"backBar","component":"Box","style":{"display":"none","flexDirection":"row","alignItems":"center","height":"$control.appBar","paddingHorizontal":"$spacing.sm","@media (max-width: $breakpoint.md)":{"display":"flex"}},"children":[{"part":"back","component":"Button","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"},"$set":{"press":{"prop":"open","value":false}}}]},"$children"]}]}},"FieldGroup":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"grid","gridTemplateColumns":"repeat(1, minmax(0, 1fr))","gap":"$spacing.md","alignItems":"start","@media (min-width: $breakpoint.md)":{"gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))"}},"children":["$children"]}},"FormActions":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","justifyContent":"flex-end","alignItems":"center","gap":"$spacing.sm","width":"100%"},"children":["$children",{"part":"cancel","component":"Button","$if":"props.cancel","props":{"label":"$string.cancel","variant":"outline"},"$on":{"press":"cancel"}},{"part":"submit","component":"Button","props":{"label":"{props.submit}","variant":{"$cond":["props.destructive","destructive","default"]},"submit":true}}]}},"StatTile":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"muted","lines":1},"style":{"flexGrow":1,"flexShrink":1,"minWidth":0}},{"part":"delta","component":"Text","$if":"props.delta","props":{"text":"{props.delta}","variant":"caption","tone":"{props.tone|neutral}"}}]},{"part":"value","component":"Text","props":{"text":"{props.value}","variant":"title","lines":1}},{"part":"trend","component":"Sparkline","$if":"props.trend","props":{"values":"{props.trend}","height":32}}]}]}},"CallSurface":{"recipeProps":["state","muted"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.name}"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","width":"100%","height":"100%","minHeight":0,"paddingHorizontal":"$spacing.xl","paddingTop":"$spacing.xl3","paddingBottom":"$spacing.xl3"},"children":[{"part":"head","component":"Box","style":{"display":"flex","flexDirection":"column","alignItems":"center","width":"100%","maxWidth":384,"minWidth":0},"children":[{"part":"wave","component":"VoiceWave","props":{"activity":{"$cond":["props.muted","muted",{"$map":{"from":"props.state","cases":{"ringing":"thinking","connecting":"thinking","ended":"idle"},"default":"{props.activity|speaking}"}}]},"level":"{props.level}","bands":"{props.bands}","size":"xl"},"$a11y":{"hidden":true},"children":[{"part":"avatar","component":"Avatar","props":{"name":"{props.name}","src":"{props.avatar}","size":"lg"}}]},{"part":"name","component":"Text","$a11y":{"role":"heading","level":2},"props":{"text":"{props.name}","variant":"title","align":"center","lines":1},"style":{"marginTop":"$spacing.sm","maxWidth":"100%"}},{"part":"status","component":"Text","$if":"props.status","props":{"text":"{props.status}","variant":"muted","align":"center","lines":1},"style":{"marginTop":"$spacing.xs"}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","align":"center","lines":4,"live":"polite"},"style":{"marginTop":"$spacing.xl2","maxWidth":"100%"}}]},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minHeight":"$spacing.xl"}},{"part":"controls","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"center","alignItems":"flex-start","gap":32},"children":[{"part":"muteTip","component":"Tooltip","$if":{"$not":{"$eq":["{props.state|talking}","ringing"]}},"props":{"content":{"$cond":["props.muted","$string.unmute","$string.mute"]}},"children":[{"part":"mute","component":"Button","props":{"variant":"secondary","size":"icon"},"$a11y":{"label":{"$cond":["props.muted","$string.unmute","$string.mute"]}},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"mute"},"$context":{"muted":"{!props.muted}"},"$set":{"press":{"prop":"muted","value":"{!props.muted}"}},"children":[{"part":"muteIcon","component":"Icon","props":{"name":{"$cond":["props.muted","call-unmute","call-mute"]},"size":"lg"}}]}]},{"part":"speakerTip","component":"Tooltip","$if":[{"$not":{"$eq":["{props.state|talking}","ringing"]}},{"$not":{"$eq":["{props.speaker|none}","none"]}}],"props":{"content":{"$cond":["props.speaker","$string.speaker","$string.speakerOff"]}},"children":[{"part":"speaker","component":"Button","props":{"variant":"secondary","size":"icon"},"$a11y":{"label":{"$cond":["props.speaker","$string.speaker","$string.speakerOff"]}},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"speaker"},"$context":{"speaker":"{!props.speaker}"},"$set":{"press":{"prop":"speaker","value":"{!props.speaker}"}},"children":[{"part":"speakerIcon","component":"Icon","props":{"name":{"$cond":["props.speaker","call-speaker","call-speaker-off"]},"size":"lg"}}]}]},{"part":"endTip","component":"Tooltip","$if":{"$not":{"$eq":["{props.state|talking}","ringing"]}},"props":{"content":"$string.endCall"},"children":[{"part":"end","component":"Button","props":{"variant":"destructive","size":"icon"},"$a11y":{"label":"$string.endCall"},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"hangUp"},"children":[{"part":"endIcon","component":"Icon","props":{"name":"call-end","size":"lg"}}]}]},{"part":"cancel","component":"Box","$if":{"$eq":["{props.state|talking}","ringing"]},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xs"},"children":[{"part":"end","component":"Button","props":{"variant":"destructive","size":"icon"},"$a11y":{"label":"$string.cancel"},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"hangUp"},"children":[{"part":"endIcon","component":"Icon","props":{"name":"call-end","size":"lg"}}]},{"part":"cancelLabel","component":"Text","props":{"text":"$string.cancel","variant":"caption"},"$a11y":{"hidden":true}}]}]}]}},"MessageBubble":{"recipeProps":["side","status"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":{"$coalesce":["{props.author}","{props.time}"]}},"style":{"display":"flex","flexDirection":"column","alignItems":{"$map":{"from":"props.side","cases":{"out":"flex-end"},"default":"flex-start"}},"width":"100%","minWidth":0},"children":[{"part":"bubble","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","maxWidth":"80%","minWidth":0,"paddingHorizontal":"$spacing.md","paddingVertical":"$spacing.sm","borderRadius":"$radius.xl","borderTopLeftRadius":{"$map":{"from":"props.side","cases":{"out":"$radius.xl"},"default":6}}},"children":[{"part":"author","component":"Text","$if":["props.author",{"$not":{"$eq":["{props.side|in}","out"]}}],"props":{"text":"{props.author}","variant":"caption","lines":1}},"$slot:attachment",{"part":"text","component":"Markdown","props":{"text":"{props.text}"}},{"part":"footer","component":"Box","$any":["props.time","props.status"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","justifyContent":"flex-end","alignSelf":"flex-end","gap":"$spacing.xs"},"children":[{"part":"time","component":"Text","$if":"props.time","props":{"text":"{props.time}","variant":"caption","lines":1}},{"part":"status","component":"Icon","$if":["props.status",{"$eq":["{props.side|in}","out"]}],"props":{"name":{"$map":{"from":"props.status","cases":{"sending":"ui-clock","sent":"ui-check","read":"ui-read"},"default":"ui-check"}},"size":"sm","label":{"$map":{"from":"props.status","cases":{"sending":"$string.sending","sent":"$string.sent","read":"$string.read"},"default":"$string.sent"}}},"style":{"width":14,"height":14,"flexShrink":0}}]}]}]}},"Plan":{"recipeProps":["state"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"title","component":"Heading","props":{"text":"{props.title}","level":"h3"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"steps","component":"Trace","$if":"props.steps","children":[{"part":"step","component":"TraceItem","$each":"props.steps","$as":"step","props":{"title":"{step.title}","icon":"{step.icon}","description":"{step.detail}","status":"{step.status}"}}]},{"part":"footer","component":"Box","$if":{"$eq":["{props.state|proposed}","proposed"]},"style":{"display":"flex","flexDirection":"row","alignItems":"center","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"decline","component":"Button","props":{"label":"{props.declineLabel|$string.no}","variant":"outline"},"$on":{"press":"decline"}},{"part":"approve","component":"Button","props":{"label":"{props.approveLabel|$string.yes}","icon":"ui-check","variant":"default"},"$on":{"press":"approve"}}]},{"part":"running","component":"Box","$if":{"$eq":["{props.state|proposed}","running"]},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.md"},"children":[{"part":"progress","component":"Progress","props":{"value":"{props.progress|0}","max":1,"tone":"primary"},"style":{"flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0}},{"part":"stop","component":"Button","props":{"label":"{props.stopLabel|$string.stop}","icon":"ui-stop","variant":"destructive"},"$on":{"press":"stop"}}]}]}]}},"Mosaic":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.label}"},"style":{"display":"flex","flexDirection":"row","width":"100%","aspectRatio":1.6,"minWidth":0},"children":[{"part":"lead","component":"Box","$if":"props.pictures.0","props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},0,1]},"flexShrink":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},0,1]},"flexBasis":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},"60%",0]},"height":"100%"},"$recipe":{"size":{"$cond":[{"$lt":[2,"{len(props.pictures)}"]},"large",{"$cond":[{"$lt":[1,"{len(props.pictures)}"]},"half","large"]}]}},"$a11y":{"role":"button","label":"{props.pictures.0.alt}"},"$on":{"press":"select"},"$context":{"index":0},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.0.src}","alt":"{props.pictures.0.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}}]},{"part":"pair","component":"Box","$if":[{"$eq":["{len(props.pictures)}",2]}],"props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":1,"flexShrink":1,"flexBasis":0,"height":"100%"},"$recipe":{"size":"half"},"$a11y":{"role":"button","label":"{props.pictures.1.alt}"},"$on":{"press":"select"},"$context":{"index":1},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.1.src}","alt":"{props.pictures.1.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}}]},{"part":"side","component":"Box","$if":{"$lt":[2,"{len(props.pictures)}"]},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0,"height":"100%"},"children":[{"part":"top","component":"Box","$if":"props.pictures.1","props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":1,"flexShrink":1,"flexBasis":0,"width":"100%"},"$recipe":{"size":"small"},"$a11y":{"role":"button","label":"{props.pictures.1.alt}"},"$on":{"press":"select"},"$context":{"index":1},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.1.src}","alt":"{props.pictures.1.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}}]},{"part":"bottom","component":"Box","$if":"props.pictures.2","props":{"pressable":true},"style":{"position":"relative","overflow":"hidden","minWidth":0,"minHeight":0,"cursor":"pointer","flexGrow":1,"flexShrink":1,"flexBasis":0,"width":"100%"},"$recipe":{"size":"small"},"$a11y":{"role":"button","label":{"$cond":[{"$lt":[3,"{len(props.pictures)}"]},{"$fill":["$string.morePicturesLabel",{"alt":"{props.pictures.2.alt}","count":{"$sub":["{len(props.pictures)}",3]}}]},"{props.pictures.2.alt}"]}},"$on":{"press":"select"},"$context":{"index":2},"children":[{"part":"image","component":"Image","props":{"src":"{props.pictures.2.src}","alt":"{props.pictures.2.alt}","fit":"cover"},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"width":"100%","height":"100%"}},{"part":"more","component":"Box","$if":{"$lt":[3,"{len(props.pictures)}"]},"$a11y":{"hidden":true},"style":{"position":"absolute","inset":0,"display":"flex","alignItems":"center","justifyContent":"center"},"children":[{"part":"moreLabel","component":"Text","props":{"text":{"$fill":["$string.morePictures",{"count":{"$sub":["{len(props.pictures)}",3]}}]},"lines":1}}]}]}]}]}},"Calendar":{"recipeProps":["view"],"root":{"part":"root","component":"Box","$a11y":{"role":"table"},"style":{"display":"flex","flexDirection":"column","width":"100%","gap":"$spacing.none","@media (form-factor: phone)":{"gap":"$spacing.md"},"minHeight":"$control.row"},"children":[{"part":"frame","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"column","width":"100%","overflow":"hidden","borderRadius":"$radius.lg","borderWidth":"$border.hairline","@media (form-factor: phone)":{"borderWidth":0,"borderRadius":0}},"children":[{"part":"head","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))"},"$template":{"path":"{props.source}/month/weeks/0/days","key":"date","item":{"part":"weekday","component":"Box","style":{"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","@media (form-factor: phone)":{"display":"flex","justifyContent":"center"}},"children":[{"part":"weekdayName","component":"Text","props":{"text":{"path":"weekday"},"variant":"caption"},"style":{"@media (form-factor: phone)":{"display":"none"}}},{"part":"weekdayInitial","component":"Text","props":{"text":{"path":"initial"},"variant":"caption"},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}}}]}},"$if":{"$eq":["{props.view|month}","month"]}},{"part":"head","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))"},"$template":{"path":"{props.source}/week/days","key":"date","item":{"part":"weekday","component":"Box","style":{"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","@media (form-factor: phone)":{"display":"flex","justifyContent":"center"}},"children":[{"part":"weekdayName","component":"Text","props":{"text":{"path":"weekday"},"variant":"caption"},"style":{"@media (form-factor: phone)":{"display":"none"}}},{"part":"weekdayInitial","component":"Text","props":{"text":{"path":"initial"},"variant":"caption"},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}}}]}},"$if":{"$eq":["{props.view|month}","week"]}},{"part":"weeks","component":"Box","$if":{"$eq":["{props.view|month}","month"]},"style":{"display":"flex","flexDirection":"column"},"$template":{"path":"{props.source}/month/weeks","key":"key","item":{"part":"week","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","minWidth":0},"children":[{"part":"shade","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"days","key":"date","item":{"part":"shadeCell","component":"Box","$recipe":{"weekend":{"path":"weekend"}},"style":{"borderTopWidth":"$border.hairline","borderRightWidth":"$border.hairline","minWidth":0}}}},{"part":"cells","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1"},"$template":{"path":"days","key":"date","item":{"part":"day","component":"Box","props":{"pressable":true},"$on":{"press":"select"},"$a11y":{"role":"button","label":{"path":"date"},"selected":{"path":"selected"}},"style":{"display":"flex","flexDirection":"column","alignItems":"flex-start","padding":"$spacing.xs","minHeight":"$control.textarea","minWidth":0,"@media (form-factor: phone)":{"alignItems":"stretch","minHeight":0,"padding":"$spacing.xxs"}},"children":[{"part":"number","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full","@media (form-factor: phone)":{"display":"none"}},"children":[{"part":"numberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"compact","component":"Box","$recipe":{"selected":{"path":"selected"}},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xxs","paddingVertical":"$spacing.sm","borderRadius":"$radius.lg"}},"children":[{"part":"compactNumber","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full"},"children":[{"part":"compactNumberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"dots","component":"Box","style":{"display":"flex","flexDirection":"row","gap":"$spacing.xxs","justifyContent":"center","height":"$spacing.sm"},"$template":{"path":"dots","item":{"part":"dot","component":"Box","$recipe":{"tone":{"path":"tone"}},"style":{"width":"$radius.sm","height":"$radius.sm","borderRadius":"$radius.full"}}}}]}]}}},{"part":"bars","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","alignContent":"start","rowGap":"$spacing.xxs","paddingTop":"$spacing.xl2","paddingBottom":"$spacing.xs","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"segments","key":"id","item":{"part":"segment","component":"Box","props":{"pressable":true},"$on":{"press":"open"},"$recipe":{"tone":{"path":"tone"},"marker":{"$lt":[0,{"path":"more"}]},"contL":{"path":"contL"},"contR":{"path":"contR"}},"style":{"display":"flex","alignItems":"center","height":"$control.badge","minWidth":0,"overflow":"hidden","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"gridRow":{"call":"concat","args":{"values":[{"call":"add","args":{"a":{"path":"lane"},"b":1}}," / span 1"]}},"marginLeft":{"$cond":[{"path":"contL"},0,"$spacing.xxs"]},"marginRight":{"$cond":[{"path":"contR"},0,"$spacing.xxs"]}},"children":[{"part":"label","component":"Text","$if":{"$eq":[{"path":"more"},0]},"props":{"text":{"path":"row/{props.labelField|title}"},"variant":"caption","lines":1}},{"part":"more","component":"Text","$if":{"$lt":[0,{"path":"more"}]},"props":{"text":{"$fill":["$string.calendarMore",{"count":{"path":"more"}}]},"variant":"caption","lines":1}}]}}}]}}},{"part":"week","component":"Box","$if":{"$eq":["{props.view|month}","week"]},"style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","minWidth":0,"minHeight":"$control.toast"},"children":[{"part":"shade","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"{props.source}/week/days","key":"date","item":{"part":"shadeCell","component":"Box","$recipe":{"weekend":{"path":"weekend"}},"style":{"borderTopWidth":"$border.hairline","borderRightWidth":"$border.hairline","minWidth":0}}}},{"part":"cells","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1"},"$template":{"path":"{props.source}/week/days","key":"date","item":{"part":"day","component":"Box","props":{"pressable":true},"$on":{"press":"select"},"$a11y":{"role":"button","label":{"path":"date"},"selected":{"path":"selected"}},"style":{"display":"flex","flexDirection":"column","alignItems":"flex-start","padding":"$spacing.xs","minHeight":"$control.textarea","minWidth":0,"@media (form-factor: phone)":{"alignItems":"stretch","minHeight":0,"padding":"$spacing.xxs"}},"children":[{"part":"number","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full","@media (form-factor: phone)":{"display":"none"}},"children":[{"part":"numberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"compact","component":"Box","$recipe":{"selected":{"path":"selected"}},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xxs","paddingVertical":"$spacing.sm","borderRadius":"$radius.lg"}},"children":[{"part":"compactNumber","component":"Box","$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","minWidth":"$control.badge","height":"$control.badge","paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full"},"children":[{"part":"compactNumberText","component":"Text","props":{"text":{"path":"day"},"variant":"caption"},"$recipe":{"inMonth":{"path":"inMonth"},"today":{"path":"today"}}}]},{"part":"dots","component":"Box","style":{"display":"flex","flexDirection":"row","gap":"$spacing.xxs","justifyContent":"center","height":"$spacing.sm"},"$template":{"path":"dots","item":{"part":"dot","component":"Box","$recipe":{"tone":{"path":"tone"}},"style":{"width":"$radius.sm","height":"$radius.sm","borderRadius":"$radius.full"}}}}]}]}}},{"part":"bars","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat(7, minmax(0, 1fr))","gridColumn":"1 / span 7","gridRow":"1 / span 1","alignContent":"start","rowGap":"$spacing.xxs","paddingTop":"$spacing.xl2","paddingBottom":"$spacing.xs","@media (form-factor: phone)":{"display":"none"}},"$template":{"path":"{props.source}/week/segments","key":"id","item":{"part":"segment","component":"Box","props":{"pressable":true},"$on":{"press":"open"},"$recipe":{"tone":{"path":"tone"},"marker":{"$lt":[0,{"path":"more"}]},"contL":{"path":"contL"},"contR":{"path":"contR"}},"style":{"display":"flex","alignItems":"center","height":"$control.badge","minWidth":0,"overflow":"hidden","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"gridRow":{"call":"concat","args":{"values":[{"call":"add","args":{"a":{"path":"lane"},"b":1}}," / span 1"]}},"marginLeft":{"$cond":[{"path":"contL"},0,"$spacing.xxs"]},"marginRight":{"$cond":[{"path":"contR"},0,"$spacing.xxs"]}},"children":[{"part":"label","component":"Text","$if":{"$eq":[{"path":"more"},0]},"props":{"text":{"path":"row/{props.labelField|title}"},"variant":"caption","lines":1}},{"part":"more","component":"Text","$if":{"$lt":[0,{"path":"more"}]},"props":{"text":{"$fill":["$string.calendarMore",{"count":{"path":"more"}}]},"variant":"caption","lines":1}}]}}}]}]},{"part":"agenda","component":"Section","$if":["props.source",{"$eq":["{props.view|month}","month"]}],"props":{"title":{"path":"{props.source}/month/agenda/label"},"count":{"path":"{props.source}/month/agenda/count"}},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}},"$template":{"path":"{props.source}/month/agenda/items","key":"id","item":{"part":"entry","component":"Row","props":{"title":{"path":"row/{props.labelField|title}"},"subtitle":{"path":"row/{props.detailField|detail}"},"meta":{"path":"row/{props.metaField|status}"},"pressable":true},"$on":{"press":"open"},"slots":{"leading":{"part":"entryTone","component":"Box","$recipe":{"tone":{"path":"tone"}},"style":{"width":"$spacing.xs","height":"$control.iconLg","borderRadius":"$radius.full"}}}}}}]}},"Timeline":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"table"},"style":{"display":"flex","flexDirection":"column","width":"100%","overflow":"hidden","borderRadius":"$radius.lg","borderWidth":"$border.hairline","minHeight":"$control.row","@media (form-factor: phone)":{"overflowX":"auto","overflowY":"hidden","backgroundColor":"$color.background"}},"children":[{"part":"bandsRow","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"row","@media (form-factor: phone)":{"minWidth":{"call":"add","args":{"a":96,"b":{"call":"mul","args":{"a":72,"b":{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}}}}}}}},"children":[{"part":"corner","component":"Box","style":{"width":"18%","flexShrink":0,"minWidth":0,"@media (form-factor: phone)":{"width":96,"position":"sticky","insetInlineStart":0,"backgroundColor":"$color.background"},"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","borderRightWidth":"$border.hairline"},"children":[{"part":"cornerLabel","component":"Text","$if":"props.rowTitle","props":{"text":"{props.rowTitle}","variant":"caption","lines":1}}]},{"part":"bands","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"flexGrow":1,"minWidth":0},"$template":{"path":"{props.source}/timeline/bands","key":"col","item":{"part":"band","component":"Box","style":{"gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","minWidth":0,"borderLeftWidth":"$border.hairline"},"children":[{"part":"bandLabel","component":"Text","props":{"text":{"path":"label"},"variant":"label","lines":1}}]}}}]},{"part":"columnsRow","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"row","borderTopWidth":"$border.hairline","@media (form-factor: phone)":{"minWidth":{"call":"add","args":{"a":96,"b":{"call":"mul","args":{"a":72,"b":{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}}}}}}}},"children":[{"part":"columnsCorner","component":"Box","style":{"width":"18%","flexShrink":0,"minWidth":0,"@media (form-factor: phone)":{"width":96,"position":"sticky","insetInlineStart":0,"backgroundColor":"$color.background"},"borderRightWidth":"$border.hairline"}},{"part":"columns","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"flexGrow":1,"minWidth":0},"$template":{"path":"{props.source}/timeline/columns","key":"key","item":{"part":"column","component":"Box","$recipe":{"today":{"path":"today"}},"style":{"paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","minWidth":0,"borderLeftWidth":"$border.hairline"},"children":[{"part":"columnLabel","component":"Text","$recipe":{"today":{"path":"today"}},"props":{"text":{"path":"label"},"variant":"caption","lines":1}}]}}}]},{"part":"rows","component":"Box","$if":"props.source","style":{"display":"flex","flexDirection":"column","@media (form-factor: phone)":{"minWidth":{"call":"add","args":{"a":96,"b":{"call":"mul","args":{"a":72,"b":{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}}}}}}}},"$template":{"path":"{props.source}/timeline/rows","key":"key","item":{"part":"row","component":"Box","style":{"display":"flex","flexDirection":"row","minWidth":0,"borderTopWidth":"$border.hairline"},"children":[{"part":"rowHead","component":"Box","style":{"width":"18%","flexShrink":0,"minWidth":0,"@media (form-factor: phone)":{"width":96,"position":"sticky","insetInlineStart":0,"backgroundColor":"$color.background"},"display":"flex","flexDirection":"column","justifyContent":"center","gap":"$spacing.xxs","paddingHorizontal":"$spacing.sm","paddingVertical":"$spacing.xs","borderRightWidth":"$border.hairline"},"children":[{"part":"rowLabel","component":"Text","props":{"text":{"path":"key"},"variant":"body","lines":1}},{"part":"rowCount","component":"Text","$if":"props.showCount","props":{"text":{"$text":{"path":"count"}},"variant":"muted","lines":1}}]},{"part":"track","component":"Box","style":{"display":"grid","flexGrow":1,"minWidth":0,"position":"relative"},"children":[{"part":"cells","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"gridColumn":"1 / span 1","gridRow":"1 / span 1","minWidth":0},"$template":{"path":"{props.source}/timeline/columns","key":"key","item":{"part":"cell","component":"Box","style":{"minWidth":0,"borderLeftWidth":"$border.hairline"}}}},{"part":"bars","component":"Box","style":{"display":"grid","gridTemplateColumns":{"call":"concat","args":{"values":["repeat(",{"call":"len","args":{"value":{"path":"{props.source}/timeline/columns"}}},", minmax(0, 1fr))"]}},"gridColumn":"1 / span 1","gridRow":"1 / span 1","alignContent":"center","rowGap":"$spacing.xxs","paddingVertical":"$spacing.sm","minWidth":0},"$template":{"path":"items","key":"id","item":{"part":"bar","component":"Box","props":{"pressable":true},"$on":{"press":"open"},"$recipe":{"tone":{"path":"tone"},"contL":{"path":"contL"},"contR":{"path":"contR"}},"style":{"display":"flex","alignItems":"center","height":"$control.badge","minWidth":0,"overflow":"hidden","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","marginHorizontal":"$spacing.xxs","gridColumn":{"call":"concat","args":{"values":[{"path":"col"}," / span ",{"path":"span"}]}},"gridRow":{"call":"concat","args":{"values":[{"call":"add","args":{"a":{"path":"lane"},"b":1}}," / span 1"]}}},"children":[{"part":"barLabel","component":"Text","props":{"text":{"path":"row/{props.labelField|title}"},"variant":"caption","lines":1}}]}}},{"part":"now","component":"Box","$if":{"path":"{props.source}/timeline/now"},"style":{"position":"absolute","top":0,"bottom":0,"width":"$control.hairline","left":{"call":"concat","args":{"values":[{"path":"{props.source}/timeline/now/percent"},"%"]}}}}]}]}}}]}},"RecordForm":{"recipeProps":[],"root":{"part":"root","component":"Form","props":{"name":"{props.kind}","disabled":"{props.readOnly|false}"},"$on":{"submit":"submit"},"children":[{"part":"unknown","component":"EmptyState","$if":"props.missing","props":{"icon":"ui-error","title":"$string.unknownKind","size":"list"}},{"part":"fields","component":"FieldGroup","$if":{"$not":"props.missing"},"props":{"columns":2},"children":[{"part":"field","component":"Box","$each":"props.fields","$as":"field","style":{"display":"flex","flexDirection":"column","minWidth":0,"gridColumn":{"$cond":["field.wide","1 / -1","auto"]}},"children":[{"part":"text","component":"Input","$if":{"$eq":["{field.widget}","text"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}","checks":"{field.checks}"}},{"part":"textarea","component":"Textarea","$if":{"$eq":["{field.widget}","textarea"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}","rows":3,"autosize":true,"checks":"{field.checks}"}},{"part":"number","component":"NumberField","$if":{"$eq":["{field.widget}","number"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","min":"{field.min}","max":"{field.max}","step":"{field.step}","precision":"{field.precision}","placeholder":"{field.placeholder}","checks":"{field.checks}"}},{"part":"switch","component":"Switch","$if":{"$eq":["{field.widget}","switch"]},"props":{"label":"{field.label}","name":"{field.name}","checked":"{field.value}","description":"{field.placeholder}"}},{"part":"select","component":"Select","$if":{"$eq":["{field.widget}","select"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","options":"{field.options}","source":"{field.source}","searchable":"{field.searchable|false}","multiple":"{field.multiple|false}","placeholder":"{field.placeholder}","checks":"{field.checks}"}},{"part":"date","component":"DatePicker","$if":{"$eq":["{field.widget}","date"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}"}},{"part":"time","component":"TimePicker","$if":{"$eq":["{field.widget}","time"]},"props":{"label":"{field.label}","name":"{field.name}","value":"{field.value}","placeholder":"{field.placeholder}"}},{"part":"chips","component":"ChipInput","$if":{"$eq":["{field.widget}","chips"]},"props":{"label":"{field.label}","name":"{field.name}","values":"{field.value}","max":"{field.max}","placeholder":"{field.placeholder}","checks":"{field.checks}"}}]}]},{"part":"actions","component":"FormActions","$if":[{"$not":"props.readOnly"},{"$not":"props.missing"}],"props":{"submit":"{props.submitLabel|$string.save}","cancel":"{props.cancel|false}"},"$on":{"cancel":"cancel"}}]}},"RecordTable":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","minWidth":0},"children":[{"part":"unknown","component":"EmptyState","$if":"props.missing","props":{"icon":"ui-error","title":"$string.unknownKind","size":"list"}},{"part":"toolbar","component":"Toolbar","$if":{"$not":"props.missing"},"children":[{"part":"count","component":"Text","props":{"text":"{props.count}","variant":"muted"}}],"slots":{"trailing":{"part":"add","component":"Button","$if":{"$map":{"from":"props.add","cases":{"false":false},"default":true}},"props":{"label":"$string.add","icon":"ui-add","variant":"outline","size":"sm"},"$on":{"press":"add"}}}},{"part":"loading","component":"Skeleton","$if":[{"$not":"props.missing"},"props.loading"],"props":{"rows":3}},{"part":"table","component":"Table","$if":[{"$not":"props.missing"},{"$not":"props.loading"}],"props":{"columns":"{props.cols}","rows":"{props.rows}","density":"compact","stickyHeader":true,"emptyText":"$string.noRecords"},"style":{"@media (form-factor: phone)":{"display":"none"}},"slots":{"menu":{"part":"menu","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"flex-end","gap":"$spacing.xxs"},"children":[{"part":"edit","component":"Button","$if":{"$map":{"from":"props.editable","cases":{"false":false},"default":true}},"props":{"icon":"ui-edit","variant":"ghost","size":"icon"},"$a11y":{"label":"$string.edit"},"$on":{"press":"edit"}},{"part":"delete","component":"Button","$if":{"$map":{"from":"props.editable","cases":{"false":false},"default":true}},"props":{"icon":"ui-delete","variant":"ghost","size":"icon"},"$a11y":{"label":"$string.delete"},"$on":{"press":"delete"}}]}}},{"part":"list","component":"List","$if":[{"$not":"props.missing"},{"$not":"props.loading"}],"props":{"divided":true},"style":{"display":"none","@media (form-factor: phone)":{"display":"flex"}},"children":["$children"]},{"part":"editor","component":"Drawer","$if":[{"$not":"props.missing"},{"$map":{"from":"props.editable","cases":{"false":false},"default":true}}],"props":{"title":"{props.title}","open":"{props.editorOpen|false}","side":"right"},"children":[{"part":"form","component":"RecordForm","props":{"kind":"{props.kind}","fields":"{props.fields}","path":"{props.path}","recordId":"{props.editorId}","cancel":true},"$on":{"submit":"submit","cancel":"cancel"}}]},{"part":"confirm","component":"Dialog","$if":[{"$not":"props.missing"},{"$map":{"from":"props.editable","cases":{"false":false},"default":true}}],"$a11y":{"role":"alertdialog"},"props":{"title":"$string.deleteRecord","description":"$string.deleteRecordBody","open":"{props.deleteOpen|false}"},"children":[{"part":"confirmForm","component":"Form","props":{"name":"delete"},"$on":{"submit":"confirm"},"children":[{"part":"confirmActions","component":"FormActions","props":{"submit":"$string.delete","cancel":true,"destructive":true},"$on":{"cancel":"cancelDelete"}}]}]}]}}}'),qv={macros:Hv},Lt=xv,jr=Lt.id,vu=Lt.liteId,ja=bu.from,$u=bu.version,wi=Lt.unknownComponent,Uv=qv.macros,yt=(()=>{const e={};for(const[t,n]of Object.entries(zv))if(!t.startsWith("$"))if(Array.isArray(n))e[t]=n;else for(const[r,o]of Object.entries(n))e[`${t}.${r}`]=o;return e})(),Vv=/^\$([a-z][a-zA-Z0-9]*(?:\.[a-z][a-zA-Z0-9]*)*)\.([a-zA-Z0-9]+)$/;function nr(e){if(typeof e!="string")return null;const t=Vv.exec(e);return t?{group:t[1],name:t[2]}:null}function am(e){const t=nr(e);return t!==null&&(yt[t.group]?.includes(t.name)??!1)}function ys(e){return Object.assign(Object.create(null),e)}function Mo(e=[]){const t={components:ys(Lt.components),enums:ys(Lt.enums),defs:ys(Lt.defs),macros:ys(Uv)};for(const n of e)Object.assign(t.components,n.components),Object.assign(t.enums,n.enums??{}),Object.assign(t.defs,n.defs??{}),Object.assign(t.macros,n.macros??{});return t}let Kv;const qd=new WeakMap;function Gi(e=[]){if(e.length===0)return Kv??=Mo();let t=qd.get(e);return t||qd.set(e,t=Mo(e)),t}const Gv=["Box","Stack","Grid","Card","Separator","List","Resizable","ScrollArea","Sidebar","SplitView","AppBar","Page","Toolbar","Section","Group","Text","Heading","Markdown","CodeBlock","Kbd","Label","Image","ZoomableImage","Icon","Video","AudioPlayer","Avatar","QrCode","Carousel","Mosaic","Tabs","Segmented","Accordion","Collapsible","Trace","TraceItem","Plan","Pagination","Breadcrumb","Outline","Stepper","Dialog","Drawer","DockCard","AlertDialog","Popover","Tooltip","Menu","Toast","Badge","Alert","Chip","EmptyState","Progress","Meter","Ring","Spinner","Skeleton","VoiceWave","CallSurface","Table","Chart","Sparkline","StatTile","Button","Link","Toggle","Form","FieldGroup","FormActions","Input","Textarea","NumberField","Checkbox","Radio","ChoiceTiles","Switch","Slider","Rating","Select","SearchList","ChipInput","DatePicker","DateRangePicker","TimePicker","FileUpload","QrScanner","Composer","Row","MessageBubble","TreeGuides","Unknown","Motion","Calendar","Timeline","RecordForm","RecordTable"],lm=["a-large-small","action-chat","action-create","action-default","action-repository","action-run","action-suggestion","activity","anchor","app-editor-chat","archive","archive-restore","arrow-down","arrow-down-left","arrow-left","arrow-left-right","arrow-right","arrow-up-right","at-sign","atom","audio-lines","auth-passkey","award","ban","bell","bell-off","bold","book-open","bookmark","bot","boxes","braces","brain","briefcase","brush-cleaning","bug","building","building-2","calculator","calendar","calendar-days","call-end","call-incoming","call-mute","call-speaker","call-speaker-off","call-unmute","camera","car","chart-line","check","check-check","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-up-down","ci-failed","ci-passed","ci-queued","ci-running","ci-skipped","circle","circle-arrow-up","circle-check","circle-dashed","circle-dot","circle-question-mark","circle-slash","circle-stop","circle-user","circle-x","clipboard-list","clock","cloud","code","coding-assistant","coding-command","coding-compact","coding-diff","coding-ended","coding-in-review","coding-needs-input","coding-plan","coding-running","coding-stop","coding-subagent","coding-tool","coffee","compass","computer","copy","corner-down-right","cpu","credit-card","crown","database","download","droplet","dumbbell","ear","editor-bold","editor-clear-formatting","editor-code","editor-emoji","editor-heading-1","editor-heading-2","editor-heading-3","editor-image","editor-issue-ref","editor-italic","editor-link","editor-list","editor-list-ordered","editor-list-todo","editor-mention","editor-quote","editor-strikethrough","editor-text","editor-text-format","editor-unlink","ellipsis","ellipsis-vertical","event-assignee-changed","event-board-moved","event-estimate-changed","event-label-added","event-label-removed","event-priority-changed","event-relation-added","event-relation-removed","event-status-changed","event-title-changed","external-link","eye","eye-off","fast-forward","file","file-diff","file-pen-line","file-text","fingerprint","flag","flame","flask-conical","fold-vertical","folder","folder-kanban","folder-open","gamepad-2","gauge","gem","gift","git-branch","git-merge","git-pull-request","github","globe","graduation-cap","guide-changes","hammer","hand","hard-drive","hash","heading-1","heading-2","heading-3","headphones","heart","heart-off","history","hourglass","house","image","images","inbox","info","italic","key","landmark","laptop","layers","layers-2","layout-grid","leaf","lightbulb","link","link-2","list","list-checks","list-end","list-ordered","list-todo","list-tree","loader-circle","lock","lock-open","log-in","log-out","mail","mail-open","map","map-pin","maximize-2","media-fast-forward","media-rewind","media-skip-next","media-skip-previous","media-volume-down","media-volume-mute","media-volume-off","media-volume-up","megaphone","menu","message-circle","message-square","message-square-plus","message-square-reply","mic","mic-off","microscope","minimize-2","minus","monitor","monitor-off","moon","mountain","move","music","nav-account","nav-actions","nav-admin","nav-apps","nav-boards","nav-changelog","nav-computer","nav-create-issue","nav-devices","nav-drafts","nav-files","nav-getting-started","nav-inbox","nav-issues","nav-my-issues","nav-needs-you","nav-notifications","nav-rail-collapse","nav-rail-expand","nav-report-bug","nav-search","nav-settings","nav-sign-out","nav-source-control","nav-team-switcher","nav-terminal","nav-threads","newspaper","notification-agent-message","notification-agent-signed-out","notification-issue-assigned","notification-issue-comment","notification-issue-created","notification-issue-mention","notification-issue-status-changed","notification-mark-read","notification-mute","notification-pr-merged","notification-pr-opened","notification-reporter-reply","notification-session-blocked","os-apple","os-linux","os-windows","package","paintbrush","palette","panel-left-close","panel-left-open","paperclip","pause","pen-tool","pencil","phone","phone-incoming","phone-off","pin","pin-off","plane","play","plug","plus","pr-batch","pr-closed","pr-draft","pr-merged","pr-open","pr-stack","printer","priority-high","priority-low","priority-medium","priority-none","priority-urgent","progress-1-4","progress-1-5","progress-2-4","progress-2-5","progress-3-4","progress-3-5","progress-4-5","puzzle","qr-code","quote","refresh-cw","relation-blocked-by","relation-blocks","relation-duplicate","relation-parent","relation-related","relation-section","relation-sub-issue","remove-formatting","repeat","rewind","rocket","rotate-ccw","run-pause","run-resume","sc-push","scale","scan-line","search","search-x","send","server","session-shell","session-tree","settings","settings-about","settings-account","settings-agents","settings-api","settings-billing","settings-boards","settings-general","settings-import","settings-issues","settings-labels","settings-licenses","settings-local-repos","settings-mcp","settings-members","settings-notifications","settings-rate","settings-repositories","settings-servers","settings-sessions","settings-statuses","settings-storage","settings-sync","settings-tools","settings-voice","settings-widget","share-2","shield","shield-check","shield-question-mark","shopping-bag","shopping-cart","signal-high","signal-low","signal-medium","skip-back","skip-forward","sliders-horizontal","smartphone","smile","sparkles","square","square-check","square-kanban","square-minus","square-pen","square-slash","square-terminal","star","star-half","star-off","status-backlog","status-cancelled","status-done","status-duplicate","status-in-progress","status-in-review","status-todo","stethoscope","store","strikethrough","sun","support-open","support-resolved","tag","target","terminal","thread-results","tool-script","trace-background","trace-chevron","trace-completed","trace-edit","trace-failed","trace-fetch","trace-read","trace-reasoning","trace-search","trace-subagent","trace-task-done","trace-task-pending","trace-task-running","trace-terminal","trace-todo","trace-tool","trash-2","tree-pine","triangle-alert","trigger-event","trigger-schedule","trophy","truck","type","ui-add","ui-agent-source","ui-archive","ui-arrow-down","ui-arrow-right","ui-assignee","ui-attach","ui-avatar-placeholder","ui-back","ui-branch","ui-camera","ui-check","ui-checklist","ui-chevron-down","ui-chevron-left","ui-chevron-right","ui-chevron-up","ui-clean","ui-clear","ui-clock","ui-close","ui-cloud","ui-copy","ui-delete","ui-delete-account","ui-device","ui-device-default","ui-device-offline","ui-dock-side","ui-docs","ui-download","ui-due-date","ui-edit","ui-empty-search","ui-error","ui-estimate","ui-external-link","ui-favorite-off","ui-file","ui-float","ui-folder","ui-folder-open","ui-fullscreen","ui-fullscreen-exit","ui-github","ui-help","ui-hide","ui-history","ui-hold","ui-icon-placeholder","ui-indeterminate","ui-info","ui-invite","ui-issue","ui-link","ui-loading","ui-mail","ui-mark-read","ui-mark-unread","ui-mcp","ui-member","ui-menu","ui-minus","ui-more","ui-more-vertical","ui-offline","ui-organization","ui-owner","ui-permission","ui-photos","ui-pin","ui-print","ui-private","ui-properties","ui-qr-code","ui-queued","ui-read","ui-redock","ui-refresh","ui-remove-member","ui-repeat","ui-repository","ui-scan","ui-selected","ui-selector","ui-send","ui-server","ui-share","ui-sign-in","ui-sign-out","ui-staging","ui-star-half","ui-star-off","ui-stop","ui-submit","ui-subscribe","ui-success","ui-swap","ui-team","ui-unarchive","ui-unassigned","ui-undo","ui-undock","ui-unlock","ui-unpin","ui-unselected","ui-unsubscribe","ui-update","ui-usage","ui-warning","ui-watch","ui-widget","undo-2","unlink","upload","user","user-minus","user-plus","user-x","users","video","voice-call","voice-level","volume-1","volume-2","volume-off","volume-x","wallet","wifi-off","work-faces","work-results","workflow","wrench","x","zap"],Yv=["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter","bind","mul","div","mod","round","floor","ceil","abs","min","max","today","now","dateAdd","dateDiff","startOf","endOf","weekday","isoWeek","hours","formatDuration","orElse","expr"],Xv={display:{enum:["flex","grid","block","none"]},flexDirection:{enum:["row","column","row-reverse","column-reverse"]},flexWrap:{enum:["nowrap","wrap","wrap-reverse"]},justifyContent:{enum:["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},alignItems:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},alignContent:{enum:["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},alignSelf:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},justifySelf:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},flexGrow:{type:"number"},flexShrink:{type:"number"},flexBasis:{type:"length"},gap:{type:"length"},rowGap:{type:"length"},columnGap:{type:"length"},direction:{enum:["ltr","rtl"]},overflow:{enum:["visible","hidden","clip","scroll","auto"]},overflowX:{enum:["visible","hidden","clip","scroll","auto"]},overflowY:{enum:["visible","hidden","clip","scroll","auto"]},width:{type:"length"},height:{type:"length"},minWidth:{type:"length"},minHeight:{type:"length"},maxWidth:{type:"length"},maxHeight:{type:"length"},aspectRatio:{type:"ratio"},position:{enum:["relative","absolute","sticky"]},top:{type:"length"},right:{type:"length"},bottom:{type:"length"},left:{type:"length"},inset:{type:"length"},insetInlineStart:{type:"length"},insetInlineEnd:{type:"length"},insetBlockStart:{type:"length"},insetBlockEnd:{type:"length"},padding:{type:"length"},paddingTop:{type:"length"},paddingRight:{type:"length"},paddingBottom:{type:"length"},paddingLeft:{type:"length"},paddingHorizontal:{type:"length"},paddingVertical:{type:"length"},paddingInlineStart:{type:"length"},paddingInlineEnd:{type:"length"},margin:{type:"length"},marginTop:{type:"length"},marginRight:{type:"length"},marginBottom:{type:"length"},marginLeft:{type:"length"},marginHorizontal:{type:"length"},marginVertical:{type:"length"},marginInlineStart:{type:"length"},marginInlineEnd:{type:"length"},gridTemplateColumns:{type:"tracks"},gridTemplateRows:{type:"tracks"},gridTemplateAreas:{type:"areas"},gridArea:{type:"string"},gridColumn:{type:"string"},gridRow:{type:"string"}},Zv={backgroundColor:{type:"color"},backgroundGradient:{type:"gradient"},color:{type:"color"},borderWidth:{type:"number",layoutEffect:!0},borderTopWidth:{type:"number",layoutEffect:!0},borderRightWidth:{type:"number",layoutEffect:!0},borderBottomWidth:{type:"number",layoutEffect:!0},borderLeftWidth:{type:"number",layoutEffect:!0},borderColor:{type:"color"},borderStyle:{enum:["solid","dashed","dotted"]},borderRadius:{type:"length"},borderTopLeftRadius:{type:"length"},borderTopRightRadius:{type:"length"},borderBottomRightRadius:{type:"length"},borderBottomLeftRadius:{type:"length"},opacity:{type:"number"},boxShadow:{type:"token",group:"shadow"},fontSize:{type:"length"},fontWeight:{enum:[300,400,500,600,700,800]},lineHeight:{type:"length"},letterSpacing:{type:"length"},textAlign:{enum:["left","right","center","start","end","justify"]},textDecoration:{enum:["none","underline","line-through"]},textTransform:{enum:["none","uppercase","lowercase","capitalize"]},fontStyle:{enum:["normal","italic"]},fontFamily:{type:"token",group:"type.family"},transition:{type:"token",group:"motion"},transitionEasing:{type:"token",group:"ease"},transform:{type:"transform"},visibility:{enum:["visible","hidden"]},pointerEvents:{enum:["auto","none"]},userSelect:{enum:["auto","none","text"]},cursor:{enum:["auto","default","pointer","text","not-allowed","grab","grabbing","move","col-resize","row-resize"]},backdropBlur:{type:"token",group:"blur"},animation:{enum:["pulse","spin","fade-in","slide-in-up","slide-in-down","slide-in-left","slide-in-right","shimmer"]},animationDuration:{type:"token",group:"motion"}},Jv={pulse:{duration:"$motion.slow",factor:7,easing:"$ease.standard",iterations:"infinite",rest:0,keyframes:[{offset:0,opacity:1},{offset:.5,opacity:.5},{offset:1,opacity:1}]},spin:{duration:"$motion.slow",factor:4,easing:"linear",iterations:"infinite",rest:0,keyframes:[{offset:0,rotate:0},{offset:1,rotate:360}]},"fade-in":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0},{offset:1,opacity:1}]},"slide-in-up":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateY:8},{offset:1,opacity:1,translateY:0}]},"slide-in-down":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateY:-8},{offset:1,opacity:1,translateY:0}]},"slide-in-left":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateX:8},{offset:1,opacity:1,translateX:0}]},"slide-in-right":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateX:-8},{offset:1,opacity:1,translateX:0}]},shimmer:{duration:"$motion.slow",factor:5,easing:"linear",iterations:"infinite",rest:0,keyframes:[{offset:0,band:-1},{offset:1,band:1}],band:{color:"$color.background",stops:[{offset:0,alpha:0},{offset:.5,alpha:.5},{offset:1,alpha:0}]}}},Qv={media:"^@media \\((min-width|max-width|min-height|max-height): (\\d+(\\.\\d+)?px|\\$breakpoint\\.[a-zA-Z0-9]+)\\)$|^@media \\(orientation: (portrait|landscape)\\)$|^@media \\(hover: (hover|none)\\)$|^@media \\(prefers-reduced-motion: (reduce|no-preference)\\)$|^@media \\(form-factor: (phone|wide)\\)$",states:[":hover",":focus-visible",":pressed"],transform:"^((translate\\(-?\\d+(\\.\\d+)?px, -?\\d+(\\.\\d+)?px\\)|scale\\(-?\\d+(\\.\\d+)?\\)|rotate\\(-?\\d+(\\.\\d+)?deg\\))( (?=\\S)|$))+$"},e$={durationMs:2e3,angleDeg:20,spreadPx:60,highlightLightnessMin:.8,highlightLightnessBoost:.4,highlightAlphaBoost:.4,lightAlphaFactor:.2},t$={steps:120,radius:[.33,.3,.26],harmonics:[[11,17,23],[9,15,21],[7,13]],phase0:[.4,1.9,3.1],ringAmp:[1,.85,.45],ampBase:2,ampLevel:6,thinkingAmp:2.5,phaseSpeed:.9,fillAlpha:[.1,.1,.15],strokeAlpha:[.7,.8,.4],strokeWidth:[1.5,1.5,1],childScale:.3,childScaleLarge:.22,maxBands:8,bars:{count:20,minFraction:.12,envelope:.5,shapeFreq:1.7,shapeBase:.35,sizes:{sm:{height:16,barWidth:2,gap:2},md:{height:24,barWidth:3,gap:3},lg:{height:40,barWidth:4,gap:4},xl:{height:56,barWidth:5,gap:5}}}},n$={quietZone:4},r$={maxWidth:280,aspectRatio:1,cornerLength:24,cornerStroke:3,feedAlpha:.06,scanLineHeight:2,scanLineInset:16,sweepMs:2e3,placeholderIcon:"ui-scan",placeholderIconSize:32},o$={tallAspect:.3333333333333333,maxScale:8,presets:[.25,.33,.5,.67,1,1.5,2,3,4,6,8],menuPresets:[0,.5,1,2,4],doubleTapFactor:2,wheelRate:.002,wheelLinePx:16,rubber:.55,momentumTauMs:325,autoHideMs:2e3,pill:{height:36,inset:16,padding:4,gap:2,percentMinWidth:56,dividerHeight:16}},on={layout:Xv,visual:Zv,animations:Jv,conditions:Qv,textShimmer:e$,voiceWave:t$,qrCode:n$,qrScanner:r$,zoomableImage:o$},cm=on.layout,xu=on.visual,i$=[...Object.keys(cm),...Object.keys(xu)];Object.entries(xu).filter(([,e])=>e.layoutEffect).map(([e])=>e);const wu={...cm,...xu},s$=new Set(i$),ku=new RegExp(on.conditions.media),um=new RegExp(on.conditions.transform),a$=on.conditions.states,l$=/^-?\d+(\.\d+)?(px|%)$/,c$=/^\d+(\.\d+)?\/\d+(\.\d+)?$/,Ud=new Set(["spacing","radius","control","type.size","type.lineHeight","opacity","border"]);function Es(e,t){const n=nr(e);return n!==null&&t.has(n.group)&&am(e)}function dm(e){return Es(e,new Set(["color"]))}function u$(e,t){const n=`${e}: expected {angle, stops: [{color, offset 0..1}, …]} with two or more stops`;if(typeof t!="object"||t===null||Array.isArray(t))return n;const r=t;if(typeof r.angle!="number"||!Number.isFinite(r.angle)||!Array.isArray(r.stops)||r.stops.length<2)return n;for(const o of r.stops){if(typeof o!="object"||o===null)return n;const i=o;if(!dm(i.color)||typeof i.offset!="number"||i.offset<0||i.offset>1)return n}for(const o of Object.keys(r))if(o!=="angle"&&o!=="stops")return n;return null}function d$(e,t){const n=wu[e];if(n.enum)return n.enum.includes(t)?null:`${e}: expected one of ${n.enum.join("|")}`;switch(n.type){case"number":return typeof t=="number"&&Number.isFinite(t)||Es(t,Ud)?null:`${e}: expected a number or a numeric token`;case"length":return typeof t=="number"&&Number.isFinite(t)||t==="auto"||typeof t=="string"&&l$.test(t)||Es(t,Ud)?null:`${e}: expected px, "N%", "auto" or a numeric token`;case"color":return dm(t)?null:`${e}: expected $color.<name>`;case"gradient":return u$(e,t);case"token":return Es(t,new Set([n.group??""]))?null:`${e}: expected $${n.group}.<name>`;case"transform":return typeof t=="string"&&um.test(t)?null:`${e}: expected translate(Xpx, Ypx), scale(N) and/or rotate(Ndeg)`;case"ratio":return typeof t=="number"&&t>0||typeof t=="string"&&c$.test(t)?null:`${e}: expected a number or "w/h"`;case"tracks":case"string":return typeof t=="string"?null:`${e}: expected a string`;case"areas":return Array.isArray(t)&&t.every(r=>typeof r=="string")?null:`${e}: expected an array of row strings`;default:return`${e}: unknown spec`}}function Vd(e){return wu[e]?.enum}function p$(e){return ku.test(e)||a$.includes(e)}function pm(e,t={}){const n=[],r=t.path??"style",o=(i,s,a)=>{for(const[l,c]of Object.entries(i)){if(c===void 0)continue;if(p$(l)){const d=/\$breakpoint\.([a-zA-Z0-9]+)/.exec(l);d&&!yt.breakpoint.includes(d[1])&&n.push({path:`${s}.${l}`,message:`unknown breakpoint $breakpoint.${d[1]}; known: ${yt.breakpoint.join("|")}`}),a?n.push({path:`${s}.${l}`,message:"conditions do not nest"}):typeof c!="object"||c===null||Array.isArray(c)?n.push({path:`${s}.${l}`,message:"must be an object"}):o(c,`${s}.${l}`,!0);continue}if(!s$.has(l)){n.push({path:`${s}.${l}`,message:l.startsWith("@media")||l.startsWith(":")?"not a supported condition":"not in the Box style whitelist"});continue}wu[l].rootOnly&&t.root===!1&&n.push({path:`${s}.${l}`,message:"allowed on the root only"});const u=d$(l,c);u&&n.push({path:`${s}.${l}`,message:u})}};return typeof e!="object"||e===null||Array.isArray(e)?[{path:r,message:"expected an object"}]:(o(e,r,!1),n)}const f$=768;function h$(e){if(e.formFactor==="phone"||e.formFactor==="wide")return e.formFactor;const t=e.breakpoints?.md;return e.width<(typeof t=="number"?t:f$)?"phone":"wide"}const m$=/^@media \(([a-z-]+): ([^)]+)\)$/;function Su(e){if(!ku.test(e))return null;const t=m$.exec(e);return t?{feature:t[1],value:t[2]}:null}function g$(e,t){const n=nr(e);if(n){if(n.group!=="breakpoint")return null;const o=t.breakpoints?.[n.name];return typeof o=="number"?o:null}const r=parseFloat(e);return Number.isFinite(r)?r:null}function y$(e,t){switch(e.feature){case"min-width":case"max-width":case"min-height":case"max-height":{const n=g$(e.value,t);if(n===null)return!1;const r=e.feature.endsWith("width")?t.width:t.height;return r===void 0?!1:e.feature.startsWith("min")?r>=n:r<n}case"orientation":{const n=t.height!==void 0&&t.height>=t.width;return e.value===(n?"portrait":"landscape")}case"hover":return e.value===(t.hover?"hover":"none");case"prefers-reduced-motion":return e.value===(t.reducedMotion?"reduce":"no-preference");case"form-factor":return e.value===h$(t)}}function b$(e,t){let n=null;for(const r of yt.breakpoint){const o=t[r];typeof o=="number"&&e>=o&&(n=r)}return n}const v$={add:"Add",back:"Back",breadcrumb:"Breadcrumb",browse:"Browse",calendarMore:"+{count} more",cameraUnavailable:"Camera unavailable",cancel:"Cancel",carousel:"Carousel",chartSummary:"Chart of {series}, values from {min} to {max}",choose:"Choose",clear:"Clear",close:"Close",closeTab:"Close {name}",codeBlock:"Code",collapse:"Collapse",confirm:"Confirm",copied:"Copied",copy:"Copy",decrement:"Decrease",delete:"Delete",deleteRecord:"Delete this record?",deleteRecordBody:"The app stops showing it.",dialog:"Dialog",dismiss:"Dismiss",dropFiles:"Drop files here",edit:"Edit",endCall:"End call",expand:"Expand",fileTooLarge:"File too large",fileTooLargeNamed:"{name}: File too large",increment:"Increase",invalidFields:"Check the highlighted fields",invalidValue:"Invalid value",loading:"Loading",menu:"Menu",message:"Message",more:"More",morePictures:"+{count}",morePicturesLabel:"{alt}, {count} more",mute:"Mute",newTab:"New tab",next:"Next",nextMonth:"Next month",no:"No",noRecords:"No records yet",noResults:"No results",optional:"Optional",outline:"Outline",outlineRow:"{title}, {count}",pageCounter:"{page} / {total}",pageOf:"Page {page} of {total}",pagination:"Pagination",pause:"Pause",play:"Play",previous:"Previous",previousMonth:"Previous month",ratingStar:"{value} of {max}",ratingValue:"Rated {value} of {max}",read:"Read",recordCount:"{count} records",remove:"Remove",removeItem:"Remove {name}",required:"Required",resize:"Resize",save:"Save",scanQrCode:"Scan a QR code",search:"Search…",selectAll:"Select all",selectRow:"Select row",selectedCount:"{count} selected",send:"Send",sending:"Sending",sent:"Sent",showLess:"Show less",showMore:"Show more",slide:"Slide",sortAscending:"Sort ascending",sortByAscending:"{name}: Sort ascending",sortByDescending:"{name}: Sort descending",sortDescending:"Sort descending",sparklineSummary:"Trend from {first} to {last}, low {min}, high {max}",speaker:"Speaker",speakerOff:"Speaker off",stepCurrent:"Step {step} of {total}: {label}, current",stepDone:"Step {step} of {total}: {label}, completed",stepUpcoming:"Step {step} of {total}: {label}",stop:"Stop",submit:"Submit",table:"Table",today:"Today",unknownComponent:"Unknown component",unknownKind:"This record kind is not declared",unmute:"Unmute",unsupportedFile:"Unsupported file",unsupportedFileNamed:"{name}: Unsupported file",yes:"Yes",zoomFit:"Fit",zoomIn:"Zoom in",zoomLevel:"Zoom level",zoomOut:"Zoom out",zoomToFit:"Zoom to fit"},$$={strings:v$},Ba=$$.strings,x$=/^\$string\.([a-zA-Z][a-zA-Z0-9]*)$/,w$=/\{([a-zA-Z][a-zA-Z0-9]*)\}/g;function Cu(e){if(typeof e!="string")return null;const t=x$.exec(e);return t?t[1]:null}function k$(e){const t=Cu(e);return t!==null&&t in Ba}function S$(e={}){return{...Ba,...e}}function fm(e,t={}){return e.replace(w$,(n,r)=>r in t&&t[r]!==void 0&&t[r]!==null?String(t[r]):n)}function C$(e,t=Ba){const n=Cu(e);return n===null?e:t[n]??n}const A$={default:1,regions:{0:["AG","AS","BD","BR","BS","BT","BW","BZ","CA","CN","CO","DM","DO","ET","GT","GU","HK","HN","ID","IL","IN","JM","JP","KE","KH","KR","LA","MH","MM","MO","MT","MX","MZ","NI","NP","PA","PE","PH","PK","PR","PT","PY","SA","SG","SV","TH","TT","TW","UM","US","VE","VI","WS","YE","ZA","ZW"],5:["MV"],6:["AE","AF","BH","DJ","DZ","EG","IQ","IR","JO","KW","LY","OM","QA","SD","SY"]}},_$={af:"ZA",am:"ET",ar:"EG",az:"AZ",be:"BY",bg:"BG",bn:"BD",bs:"BA",ca:"ES",ckb:"IQ",cs:"CZ",cy:"GB",da:"DK",de:"DE",dv:"MV",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fa:"IR",fi:"FI",fil:"PH",fr:"FR",ga:"IE",gl:"ES",gu:"IN",ha:"NG",he:"IL",hi:"IN",hr:"HR",hu:"HU",hy:"AM",id:"ID",ig:"NG",is:"IS",it:"IT",ja:"JP",jv:"ID",ka:"GE",kk:"KZ",km:"KH",kn:"IN",ko:"KR",ku:"TR",ky:"KG",lo:"LA",lt:"LT",lv:"LV",mk:"MK",ml:"IN",mn:"MN",mr:"IN",ms:"MY",mt:"MT",my:"MM",nb:"NO",ne:"NP",nl:"NL",nn:"NO",no:"NO",or:"IN",pa:"IN",pl:"PL",ps:"AF",pt:"BR",ro:"RO",ru:"RU",sd:"PK",si:"LK",sk:"SK",sl:"SI",so:"SO",sq:"AL",sr:"RS",sv:"SE",sw:"TZ",ta:"IN",te:"IN",th:"TH",tl:"PH",tr:"TR",ug:"CN",uk:"UA",ur:"PK",uz:"UZ",vi:"VN",yi:"001",yo:"NG",zh:"CN",zu:"ZA"},O$={in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",tl:"fil"},T$=["ar","ckb","dv","fa","he","ps","sd","ug","ur","yi"],M$=["ui-back","ui-chevron-left","ui-chevron-right","ui-arrow-right","ui-send","ui-undo","ui-external-link","arrow-left","arrow-right","chevron-left","chevron-right","send","undo-2","external-link"],E$={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayPeriods:["AM","PM"],currencyPrefix:{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CNY:"CN¥",INR:"₹",KRW:"₩",CAD:"CA$",AUD:"A$",MXN:"MX$",BRL:"R$",ILS:"₪",NZD:"NZ$",HKD:"HK$",TWD:"NT$",VND:"₫",PHP:"₱",XAF:"FCFA ",XOF:"F CFA "},currencyDigits:{JPY:0,KRW:0,VND:0,CLP:0,ISK:0,UGX:0,PYG:0,XAF:0,XOF:0,BHD:3,IQD:3,JOD:3,KWD:3,OMR:3,TND:3},relative:{units:{second:["second","seconds"],minute:["minute","minutes"],hour:["hour","hours"],day:["day","days"],week:["week","weeks"],month:["month","months"],year:["year","years"]},auto:{second:{0:"now"},day:{1:"tomorrow","-1":"yesterday"},week:{1:"next week","-1":"last week"},month:{1:"next month","-1":"last month"},year:{1:"next year","-1":"last year"}},past:"{value} {unit} ago",future:"in {value} {unit}"},unknownCurrency:"{code} ",datePatterns:{short:"M/d/yy",medium:"MMM d, y",long:"MMMM d, y",full:"EEEE, MMMM d, y"},timePattern:"h:mm a",dateTimeJoin:{short:"{date}, {time}",medium:"{date}, {time}",long:"{date} at {time}",full:"{date} at {time}"}},vr={default:"en-US",weekStart:A$,likelyRegion:_$,languageAliases:O$,rtl:T$,rtlMirroredIcons:M$,englishFallback:E$},pn=vr.englishFallback,Ht={second:1e3,minute:6e4,hour:36e5,day:864e5};function Eo(e){return typeof e=="string"?e:typeof e=="number"?Number.isFinite(e)?String(e):"":typeof e=="boolean"?String(e):""}function hm(e){const t=/^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(String(e));if(!t)return{int:"0",frac:""};const n=t[1]+(t[2]??"");let r=t[1].length+(t[3]?Number(t[3]):0),o=n;return r<=0&&(o="0".repeat(1-r)+o,r=1),r>o.length&&(o=o+"0".repeat(r-o.length)),{int:o.slice(0,r).replace(/^0+(?=\d)/,""),frac:o.slice(r).replace(/0+$/,"")}}function I$(e,t){const n=e.frac+"0".repeat(Math.max(0,t-e.frac.length));return{int:(e.int+n.slice(0,t)).replace(/^0+(?=\d)/,""),frac:n.slice(t).replace(/0+$/,"")}}function mm(e,t,n){let{int:r,frac:o}=e;if(o.length>n){const i=o.charCodeAt(n)>=53;let s=r+o.slice(0,n);if(i){const l=s.split("");let c=l.length-1;for(;c>=0;c--)if(l[c]==="9")l[c]="0";else{l[c]=String(Number(l[c])+1);break}s=(c<0?"1":"")+l.join("")}const a=s.length-n;r=s.slice(0,a)||"0",o=s.slice(a).replace(/0+$/,"")}return o.length<t&&(o=o+"0".repeat(t-o.length)),{int:r,frac:o}}function gm(e,t){if(!t||e.length<4)return e;let n="";for(let r=0;r<e.length;r++)r>0&&(e.length-r)%3===0&&(n+=","),n+=e[r];return n}function bs(e,t,n,r){const o=e<0||Object.is(e,-0);if(Number.isNaN(e))return{sign:"",body:"NaN"};if(!Number.isFinite(e))return{sign:o?"-":"",body:"∞"};const i=mm(hm(Math.abs(e)),t,n);return{sign:o?"-":"",body:`${gm(i.int,r)}${i.frac?`.${i.frac}`:""}`}}const go=e=>typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.min(20,Math.trunc(e))):void 0;function P$(e){return pn.currencyDigits[e.toUpperCase()]??2}function ki(e){if(typeof e=="number")return Number.isFinite(e)?{ms:e,dateOnly:!1}:null;if(typeof e!="string"||e.trim()==="")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t){const o=Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3]));return Number.isFinite(o)?{ms:o,dateOnly:!0}:null}if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/.test(e))return null;const n=/(Z|[+-]\d{2}:\d{2})$/.test(e)?e:`${e}Z`,r=Date.parse(n);return Number.isFinite(r)?{ms:r,dateOnly:!1}:null}function ym(e){const t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),weekday:t.getUTCDay(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}const ir=(e,t)=>String(e).padStart(t,"0");function Is(e,t,n){let r="",o=0;for(;o<e.length;){const i=e[o];if(i==="'"){if(e[o+1]==="'"){r+="'",o+=2;continue}for(o++;o<e.length;){if(e[o]==="'"){if(e[o+1]==="'"){r+="'",o+=2;continue}o++;break}r+=e[o],o++}continue}if(!/[A-Za-z]/.test(i)){r+=i,o++;continue}let s=1;for(;e[o+s]===i;)s++;const a=e.slice(o,o+s);o+=s;const l=t.hour%12===0?12:t.hour%12;switch(i){case"y":r+=s===2?ir(t.year%100,2):ir(t.year,s);break;case"M":r+=s>=4?n.months[t.month-1]:s===3?n.monthsShort[t.month-1]:ir(t.month,s);break;case"d":r+=ir(t.day,s);break;case"E":r+=s>=4?n.weekdays[t.weekday]:n.weekdaysShort[t.weekday];break;case"h":r+=ir(l,s);break;case"H":r+=ir(t.hour,s);break;case"m":r+=ir(t.minute,s);break;case"s":r+=ir(t.second,s);break;case"a":r+=n.dayPeriods[t.hour<12?0:1];break;default:r+=a}}return r}const D$=pn.datePatterns,R$=pn.timePattern,F$=pn.dateTimeJoin,z$=e=>()=>e;function N$(e){const t=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"});return n=>{const r=Math.floor(n/1e3)*1e3,o=Object.fromEntries(t.formatToParts(new Date(r)).map(s=>[s.type,s.value])),i=Date.UTC(Number(o.year),Number(o.month)-1,Number(o.day),Number(o.hour)%24,Number(o.minute),Number(o.second));return Math.round((i-r)/6e4)}}function bm(e){const t=Math.abs(e),n=r=>Math.trunc(e/r)||0;return t<Ht.minute?{value:n(Ht.second),unit:"second"}:t<Ht.hour?{value:n(Ht.minute),unit:"minute"}:t<Ht.day?{value:n(Ht.hour),unit:"hour"}:t<7*Ht.day?{value:n(Ht.day),unit:"day"}:t<30*Ht.day?{value:n(7*Ht.day),unit:"week"}:t<365*Ht.day?{value:n(30*Ht.day),unit:"month"}:{value:n(365*Ht.day),unit:"year"}}const xl=pn;function L$(e=z$(0)){return{locale:"en-US",offsetMinutes:e,number(t,n={}){const r=go(n.decimals),{sign:o,body:i}=bs(t,r??0,r??3,n.grouping!==!1);return`${o}${i}`},currency(t,n,r={}){const o=n.toUpperCase(),i=go(r.decimals)??P$(o),{sign:s,body:a}=bs(t,i,i,r.grouping!==!1),l=pn.currencyPrefix[o]??pn.unknownCurrency.replace("{code}",o);return`${s}${l}${a}`},percent(t,n={}){const r=go(n.decimals)??0;if(!Number.isFinite(t)){const{sign:s,body:a}=bs(t,0,0,!0);return`${s}${a}%`}const o=t<0||Object.is(t,-0),i=mm(I$(hm(Math.abs(t)),2),r,r);return`${o?"-":""}${gm(i.int,!0)}${i.frac?`.${i.frac}`:""}%`},date(t,n={}){const r=ki(t);if(!r)return"";const o=ym(r.dateOnly?r.ms:r.ms+e(r.ms)*6e4);if(n.format)return Is(n.format,o,xl);const i=n.style??"medium",s=Is(D$[i],o,xl);if(!n.time)return s;const a=Is(R$,o,xl);return F$[i].replace("{date}",s).replace("{time}",a)},relativeTime(t,n){const r=ki(t);if(!r)return"";const{value:o,unit:i}=bm(r.ms-n),s=pn.relative.auto[i]?.[String(o)];if(s)return s;const[a,l]=pn.relative.units[i],c=bs(Math.abs(o),0,0,!0).body,u=Math.abs(o)===1?a:l;return(o<0?pn.relative.past:pn.relative.future).replace("{value}",c).replace("{unit}",u)},plural(t){return Math.abs(t)===1?"one":"other"}}}function vm(e,t="UTC"){const n=a=>new Intl.NumberFormat(e,a);let r=null;const o=()=>{if(r)return r;const a=(d,p)=>new Intl.DateTimeFormat(e,{...d,timeZone:"UTC"}).format(new Date(p)),l=Array.from({length:12},(d,p)=>Date.UTC(2026,p,1)),c=Array.from({length:7},(d,p)=>Date.UTC(2026,0,4+p)),u=d=>new Intl.DateTimeFormat(e,{hour:"numeric",hour12:!0,timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2026,0,1,d))).find(p=>p.type==="dayPeriod")?.value??(d<12?"AM":"PM");return r={months:l.map(d=>a({month:"long"},d)),monthsShort:l.map(d=>a({month:"short"},d)),weekdays:c.map(d=>a({weekday:"long"},d)),weekdaysShort:c.map(d=>a({weekday:"short"},d)),dayPeriods:[u(9),u(15)]},r},i=a=>{const l=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",weekday:"short",hourCycle:"h23"}).formatToParts(new Date(a)),c=u=>l.find(d=>d.type===u)?.value??"0";return{year:Number(c("year")),month:Number(c("month")),day:Number(c("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(c("weekday")),hour:Number(c("hour"))%24,minute:Number(c("minute")),second:Number(c("second"))}},s=N$(t);return{locale:e,offsetMinutes:s,number(a,l={}){const c=go(l.decimals);return n({minimumFractionDigits:c??0,maximumFractionDigits:c??3,useGrouping:l.grouping!==!1}).format(a)},currency(a,l,c={}){const u=go(c.decimals);return n({style:"currency",currency:l,...u!==void 0?{minimumFractionDigits:u,maximumFractionDigits:u}:{},useGrouping:c.grouping!==!1}).format(a)},percent(a,l={}){const c=go(l.decimals)??0;return n({style:"percent",minimumFractionDigits:c,maximumFractionDigits:c}).format(a)},date(a,l={}){const c=ki(a);if(!c)return"";const u=c.dateOnly?"UTC":t;return l.format?Is(l.format,c.dateOnly?ym(c.ms):i(c.ms),o()):new Intl.DateTimeFormat(e,{dateStyle:l.style??"medium",...l.time?{timeStyle:"short"}:{},timeZone:u}).format(new Date(c.ms))},relativeTime(a,l){const c=ki(a);if(!c)return"";const{value:u,unit:d}=bm(c.ms-l);return new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(u,d)},plural(a){return new Intl.PluralRules(e).select(a)}}}const $m=["formatNumber","formatCurrency","formatPercent","formatDate","formatRelativeTime","pluralize"],j$=/^[ \t\n\r]*[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?[ \t\n\r]*$/,gc=e=>typeof e=="number"?e:typeof e=="string"&&j$.test(e)?Number(e):NaN,wl=e=>e==null?void 0:gc(e);function xm(e,t=()=>Date.now()){const n=(r,o)=>{const i=gc(r);return Number.isFinite(i)?o(i):""};return{formatNumber:({value:r,decimals:o,grouping:i})=>n(r,s=>e.number(s,{decimals:wl(o),grouping:i===void 0?void 0:i!==!1})),formatCurrency:({value:r,currency:o,decimals:i,grouping:s})=>n(r,a=>typeof o=="string"&&/^[A-Za-z]{3}$/.test(o)?e.currency(a,o,{decimals:wl(i),grouping:s===void 0?void 0:s!==!1}):""),formatPercent:({value:r,decimals:o})=>n(r,i=>e.percent(i,{decimals:wl(o)})),formatDate:({value:r,format:o,style:i,time:s})=>e.date(r,{...typeof o=="string"&&o?{format:o}:{},...i==="short"||i==="medium"||i==="long"||i==="full"?{style:i}:{},...s===!0?{time:!0}:{}}),formatRelativeTime:({value:r,now:o})=>e.relativeTime(r,typeof o=="number"?o:ki(o)?.ms??t()),pluralize:r=>{const o=gc(r.value);if(!Number.isFinite(o))return r.other;const i=a=>typeof a=="string"?a.replaceAll("{count}",e.number(o)):a;if(o===0&&r.zero!==void 0)return i(r.zero);const s=e.plural(o);return i(r[s]??r.other)}}}const yc=xm(L$()),wm=/^\{([^{}]+)\}$/,B$=/\{([^{}]+)\}/g,W$=/^(len|range)\((.+)\)$/;function Wa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.path=="string"&&Object.keys(e).length===1}function jo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.call=="string"}function Ue(e){return Wa(e)||jo(e)}function On(e){return e!=null&&e!==!1&&e!==""}function wt(e,t){const n={};for(const[r,o]of Object.entries(t))o!==void 0&&(n[r]=o);return{call:e,args:n}}function H$(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function q$(e,t){if(e==="id")return t.id;const[n,...r]=e.split(".");let o;if(n==="props")o=t.props;else if(n in t.vars)o=t.vars[n];else return;for(const i of r){if(o==null)return;o=o[i]}return o}function dt(e){return typeof e=="number"?e:Number(e??0)||0}function Kd(e){const t=e.trim();if(t==="")return;const n=Number(t);return Number.isFinite(n)?n:void 0}function Au(e,t){return e===t?!0:typeof e=="number"&&typeof t=="string"?Kd(t)===e:typeof t=="number"&&typeof e=="string"?Kd(e)===t:!1}function km(e,t,n){let r=dt(e);return n!=null&&(r=Math.min(r,dt(n))),t!=null&&(r=Math.max(r,dt(t))),r}function U$(e,t){const n=e==null?"":String(e);return fm(n,typeof t=="object"&&t!==null?t:{})}const V$=1e4;function Gn(e,t){const n=e.trim(),r=W$.exec(n);if(r){const i=Gn(r[2],t);if(r[1]==="len")return Ue(i)?wt("len",{value:i}):Array.isArray(i)||typeof i=="string"?i.length:0;if(Ue(i))return;const s=Math.min(V$,Math.max(0,Math.floor(dt(i)))||0);return Array.from({length:s},(a,l)=>l)}const o=n.indexOf("|");if(o>=0){const i=Gn(n.slice(0,o),t),s=H$(n.slice(o+1));return i==null?s:Ue(i)?wt("fallback",{value:i,default:s}):i}if(n.startsWith("!")){const i=Gn(n.slice(1),t);return Ue(i)?wt("not",{value:i}):!On(i)}return q$(n,t)}function K$(e){return jo(e)&&e.call==="fallback"&&Ue(e.args?.value)?e.args?.value:e}function gt(e,t){if(typeof e=="string"){const n=wm.exec(e);if(n)return Gn(n[1],t)}return Nt(e,t)}function ta(e,t){const n=typeof e=="string"?Gn(e,t):gt(e,t);return Ue(n)?n:On(n)}function G$(e,t){const n=[];let r=!1,o=0;for(const i of e.matchAll(B$)){const s=i.index??0;s>o&&n.push(e.slice(o,s));const a=Gn(i[1],t);Ue(a)&&(r=!0),n.push(a),o=s+i[0].length}return o<e.length&&n.push(e.slice(o)),r?wt("concat",{values:n.filter(i=>i!=null&&i!=="")}):n.map(i=>i==null?"":String(i)).join("")}function Nt(e,t){if(typeof e=="string"){const o=wm.exec(e);return o?K$(Gn(o[1],t)):G$(e,t)}if(Array.isArray(e))return e.map(o=>Nt(o,t)).filter(o=>o!==void 0);if(typeof e!="object"||e===null)return e;const n=e;if("$map"in n){const o=n.$map,i=Gn(o.from,t);if(Ue(i)){const l={};for(const[c,u]of Object.entries(o.cases)){const d=gt(u,t);d!==void 0&&(l[c]=d)}return wt("map",{value:i,cases:l,default:gt(o.default,t)})}const s=i==null?"":String(i),a=Object.prototype.hasOwnProperty.call(o.cases,s)?o.cases[s]:o.default;return gt(a,t)}if("$cond"in n){const[o,i,s]=n.$cond,a=ta(o,t);return Ue(a)?wt("cond",{if:a,then:gt(i,t),else:gt(s,t)}):gt(a?i:s,t)}if("$eq"in n){const[o,i]=n.$eq.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("eq",{a:o,b:i}):Au(o,i)}if("$lt"in n){const[o,i]=n.$lt.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("lt",{a:o,b:i}):dt(o)<dt(i)}if("$add"in n){const[o,i]=n.$add.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("add",{a:o,b:i}):dt(o)+dt(i)}if("$sub"in n){const[o,i]=n.$sub.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("sub",{a:o,b:i}):dt(o)-dt(i)}if("$clamp"in n){const[o,i,s]=n.$clamp.map(a=>gt(a,t));return Ue(o)||Ue(i)||Ue(s)?wt("clamp",{value:o,min:i,max:s}):km(o,i,s)}if("$fill"in n){const[o,i]=n.$fill,s={};for(const[a,l]of Object.entries(i??{})){const c=gt(l,t);c!==void 0&&(s[a]=c)}return wt("fill",{template:gt(o,t),params:s})}if("$percent"in n){const[o,i]=n.$percent.map(s=>gt(s,t));return Ue(o)||Ue(i)?wt("percent",{value:o,max:i}):Sm(o,i)}if("$text"in n){const o=n.$text,i=typeof o=="string"?Gn(o,t):gt(o,t);return Ue(i)?wt("text",{value:i}):i==null?void 0:String(i)}if("$coalesce"in n){const o=[];for(const i of n.$coalesce){const s=gt(i,t);if(s!==void 0){if(Ue(s)){o.push(s);continue}if(On(s)){if(o.length===0)return s;o.push(s);break}}}return o.length===0?void 0:o.length===1?o[0]:wt("coalesce",{values:o})}if("$not"in n){const o=ta(n.$not,t);return Ue(o)?wt("not",{value:o}):!o}const r={};for(const[o,i]of Object.entries(n)){const s=Nt(i,t);if(s===void 0)continue;const a=o.includes("{")?Nt(o,t):o;r[typeof a=="string"?a:o]=s}return r}function Sm(e,t){const n=dt(t),r=n>0?dt(e)/n*100:0,o=Math.min(100,Math.max(0,r));return`${Math.round(o*100)/100}%`}function Y$(e,t,n,r){if(!Array.isArray(e))return[];const o=typeof t=="string"?t.trim().toLowerCase():typeof t=="number"?String(t):"",i=Array.isArray(n)?n.filter(l=>typeof l=="string"):null,s=typeof r=="object"&&r!==null&&!Array.isArray(r)?Object.entries(r).filter(([,l])=>l!=null&&l!==""):[],a=l=>typeof l=="string"?l:typeof l=="number"?String(l):null;return e.filter(l=>{const c=typeof l=="object"&&l!==null&&!Array.isArray(l)?l:null;for(const[d,p]of s)if(!Au(c?.[d],p))return!1;return o===""?!0:(c?(i??Object.keys(c)).map(d=>c[d]):[l]).some(d=>a(d)?.toLowerCase().includes(o)??!1)})}const X$={percent:({value:e,max:t})=>Sm(e,t),add:({a:e,b:t})=>dt(e)+dt(t),sub:({a:e,b:t})=>dt(e)-dt(t),eq:({a:e,b:t})=>Au(e,t),lt:({a:e,b:t})=>dt(e)<dt(t),clamp:({value:e,min:t,max:n})=>km(e,t,n),cond:({if:e,then:t,else:n})=>On(e)?t:n,fallback:({value:e,default:t})=>e??t,concat:({values:e})=>Array.isArray(e)?e.map(t=>t==null?"":String(t)).join(""):"",coalesce:({values:e})=>Array.isArray(e)?e.find(On):void 0,text:({value:e})=>e==null?void 0:String(e),map:({value:e,cases:t,default:n})=>{const r=e==null?"":String(e),o=t??{};return Object.prototype.hasOwnProperty.call(o,r)?o[r]:n},len:({value:e})=>Array.isArray(e)||typeof e=="string"?e.length:0,fill:({template:e,params:t})=>U$(e,t),filter:({items:e,query:t,fields:n,where:r})=>Y$(e,t,n,r),formatPercent:yc.formatPercent,formatRelativeTime:yc.formatRelativeTime},_u=["mul","div","mod","round","floor","ceil","abs","min","max","today","now","dateAdd","dateDiff","startOf","endOf","weekday","isoWeek","hours","formatDuration","orElse","expr"],Gd=["day","week","month","quarter","year"],Z$=e=>e!==void 0&&e>="0"&&e<="9",yo=(e,t,n)=>{for(let r=t;r<t+n;r++)if(!Z$(e[r]))return!1;return!0};function Cm(e){return e%4===0&&e%100!==0||e%400===0}function Io(e,t){return t===2?Cm(e)?29:28:t===4||t===6||t===9||t===11?30:31}function Yi(e,t,n){const r=[0,3,2,5,0,3,5,1,4,6,2,4],o=t<3?e-1:e,i=(s,a)=>Math.floor(s/a);return((o+i(o,4)-i(o,100)+i(o,400)+r[t-1]+n)%7+7)%7}function J$(e,t,n){let r=n;for(let o=1;o<t;o++)r+=Io(e,o);return r}function Yd(e){const t=Yi(e,1,1);return t===4||t===3&&Cm(e)?53:52}function Am(e,t,n){const r=Yi(e,t,n)||7,o=Math.floor((J$(e,t,n)-r+10)/7);return o<1?{year:e-1,week:Yd(e-1)}:o>Yd(e)?{year:e+1,week:1}:{year:e,week:o}}function Xi(e){if(e.length<10||!yo(e,0,4)||e[4]!=="-"||!yo(e,5,2)||e[7]!=="-"||!yo(e,8,2)||e.length>10&&e[10]!=="T"&&e[10]!==" ")return null;const t=Number(e.slice(0,4)),n=Number(e.slice(5,7)),r=Number(e.slice(8,10));return n<1||n>12||r<1||r>Io(t,n)?null:{y:t,m:n,d:r}}function Q$(e){if(e.length<7||!yo(e,0,4)||e[4]!=="-"||!yo(e,5,2)||e.length>7&&e[7]!=="-")return null;const t=Number(e.slice(5,7));return t>=1&&t<=12?{y:Number(e.slice(0,4)),m:t}:null}function ex(e){return e.length<4||!yo(e,0,4)||e.length>4&&e[4]!=="-"?null:Number(e.slice(0,4))}const jn=(e,t)=>String(e).padStart(t,"0");function Zi(e){return`${jn(e.y,4)}-${jn(e.m,2)}-${jn(e.d,2)}`}function _m(e,t){if(t==="day"||t==="week"){const r=Xi(e);if(!r)return null;if(t==="day")return Zi(r);const o=Am(r.y,r.m,r.d);return`${jn(o.year,4)}-W${jn(o.week,2)}`}if(t==="year"){const r=ex(e);return r===null?null:jn(r,4)}const n=Q$(e);return n?t==="month"?`${jn(n.y,4)}-${jn(n.m,2)}`:`${jn(n.y,4)}-Q${Math.floor((n.m-1)/3)+1}`:null}function bn(e,t,n){const r=t<=2?e-1:e,o=Math.floor(r/400),i=r-o*400,s=Math.floor((153*(t+(t>2?-3:9))+2)/5)+n-1,a=i*365+Math.floor(i/4)-Math.floor(i/100)+s;return o*146097+a-719468}function vt(e){const t=e+719468,n=Math.floor(t/146097),r=t-n*146097,o=Math.floor((r-Math.floor(r/1460)+Math.floor(r/36524)-Math.floor(r/146096))/365),i=r-(365*o+Math.floor(o/4)-Math.floor(o/100)),s=Math.floor((5*i+2)/153),a=i-Math.floor((153*s+2)/5)+1,l=s<10?s+3:s-9;return{y:o+n*400+(l<=2?1:0),m:l,d:a}}const Po={maxLength:1e3,maxDepth:32,maxSteps:1e4},tx=["set","records.upsert","records.delete","records.batch"],nx=["openUrl","bind","app.navigate"],rx=["actions.","harness.","exponential.","tools.","upstream."];function Si(e){return tx.includes(e)?"write":nx.includes(e)||rx.some(t=>e.startsWith(t))?"host":"pure"}function na(e,t){return`${e} ${t==="write"?"writes":"is a host function"}`}class Bo extends Error{}const se=e=>{throw new Bo(e)},Dr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function We(e){return e==null?"null":typeof e=="number"?"number":typeof e=="string"?"string":typeof e=="boolean"?"bool":Array.isArray(e)?"list":"map"}function st(e){return Number.isFinite(e)||se("number out of range"),e===0?0:e}const Ha=e=>String(e);function ra(e,t){if(e=e??null,t=t??null,e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((n,r)=>ra(n,t[r]));if(Dr(e)&&Dr(t)){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&ra(e[o],t[o]))}return!1}function Om(e){const t=Math.abs(e),n=Math.floor(t),r=t-n>=.5?n+1:n;return e<0?-r:r}const et=864e5,bo={second:1e3,minute:6e4,hour:36e5},Ou=["second","minute","hour","day","week","month","quarter","year"],Tm=["day","week","month","quarter","year"],Mm=["h:mm","hh:mm"],ox=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|[+-]\d{2}:\d{2})?$/;function qa(e){const t=ox.exec(e);if(!t)return null;const n=Xi(e.slice(0,10));if(!n)return null;const r=Number(t[4]),o=Number(t[5]),i=t[6]===void 0?0:Number(t[6]);if(r>23||o>59||i>59)return null;const s=t[7]===void 0?0:Number(t[7].slice(0,3).padEnd(3,"0"));let a=0;if(t[8]!==void 0&&t[8]!=="Z"){const l=Number(t[8].slice(1,3)),c=Number(t[8].slice(4,6));if(l>23||c>59)return null;a=(t[8][0]==="-"?-1:1)*(l*60+c)}return bn(n.y,n.m,n.d)*et+r*36e5+o*6e4+i*1e3+s-a*6e4}const ho=(e,t)=>String(e).padStart(t,"0"),Em=-719528,Im=2932896,ix=4e6;function Ci(e){e>=Em*et&&e<(Im+1)*et||se("date out of range");const t=Math.floor(e/et),n=e-t*et,r=vt(t);return(r.y<0||r.y>9999)&&se("date out of range"),`${Zi(r)}T${ho(Math.floor(n/36e5),2)}:${ho(Math.floor(n/6e4)%60,2)}:${ho(Math.floor(n/1e3)%60,2)}.${ho(n%1e3,3)}Z`}function oa(e){e>=Em&&e<=Im||se("date out of range");const t=vt(e);return(t.y<0||t.y>9999)&&se("date out of range"),Zi(t)}const Ji=(e,t)=>t+e.offset(t)*6e4;function ia(e,t){const n=e.offset(t),r=t-n*6e4,o=e.offset(r);return o===n?r:t-o*6e4}function Ai(e,t){if(typeof t!="string")return se(`${e} needs a date, got ${We(t)}`);if(t.length===10){const r=Xi(t);if(r)return{date:!0,day:bn(r.y,r.m,r.d)}}const n=qa(t);return n===null&&se(`not a date: ${t}`),{date:!1,ms:n}}const Xd=(e,t)=>t.date?t.day*et:Ji(e,t.ms);function Tu(e,t,n){return typeof t!="string"?se(`${e} needs a string, got ${We(t)}`):(n.includes(t)||se(`unknown unit ${t}`),t)}function sx(e,t){const n=vt(e),r=n.y*12+(n.m-1)+t,o=Math.floor(r/12),i=r-o*12+1;return bn(o,i,Math.min(n.d,Io(o,i)))}function bc(e,t,n){return Math.abs(t)<=ix||se("date out of range"),n==="day"?e+t:n==="week"?e+7*t:sx(e,t*(n==="month"?1:n==="quarter"?3:12))}function vc(e,t){const n=vt(e);return t==="day"?e:t==="week"?e-((Yi(n.y,n.m,n.d)||7)-1):t==="month"?bn(n.y,n.m,1):t==="quarter"?bn(n.y,Math.floor((n.m-1)/3)*3+1,1):bn(n.y,1,1)}function ax(e,t){return bc(vc(e,t),1,t)}function lx(e,t){const n=_t(e,t);return Number.isInteger(n)||se(`${e} needs a whole number, got ${Ha(n)}`),n}function _t(e,t){return typeof t!="number"?se(`${e} needs a number, got ${We(t)}`):t}function cx(e,t){return typeof t!="string"?se(`${e} needs a string, got ${We(t)}`):t}const mt=e=>()=>e,kl=e=>e[0]==="date"||e[0]==="timestamp"?e[0]:"dyn";function ux(e,t){const n=Ai("dateAdd",e[0]),r=lx("dateAdd",e[1]),o=Tu("dateAdd",e[2],Ou);if(n.date)return bo[o]!==void 0&&se(`unit ${o} needs a timestamp`),oa(bc(n.day,r,o));if(bo[o]!==void 0)return Ci(st(n.ms+r*bo[o]));const i=Ji(t,n.ms),s=Math.floor(i/et);return Ci(ia(t,bc(s,r,o)*et+(i-s*et)))}function dx(e,t){const n=Ai("dateDiff",e[0]),r=Ai("dateDiff",e[1]),o=Tu("dateDiff",e[2],Ou);if(bo[o]!==void 0){const f=y=>y.date?ia(t,y.day*et):y.ms;return st(Math.trunc((f(r)-f(n))/bo[o]))}const i=Xd(t,n),s=Xd(t,r);if(o==="day"||o==="week")return st(Math.trunc((s-i)/(o==="day"?et:7*et)));const a=Math.floor(i/et),l=Math.floor(s/et),c=vt(a),u=vt(l);let d=(u.y-c.y)*12+(u.m-c.m);const p=c.d*et+(i-a*et),h=u.d*et+(s-l*et);return d>0&&h<p?d--:d<0&&h>p&&d++,st(Math.trunc(d/(o==="month"?1:o==="quarter"?3:12)))}function Zd(e,t,n){const r=Ai(e,t[0]),o=Tu(e,t[1],Tm),i=r.date?r.day:Math.floor(Ji(n,r.ms)/et);if(e==="startOf")return r.date?oa(vc(i,o)):Ci(ia(n,vc(i,o)*et));const s=ax(i,o);return r.date?oa(s-1):Ci(ia(n,s*et)-1)}function Jd(e,t,n){const r=Ai(e,t);return vt(r.date?r.day:Math.floor(Ji(n,r.ms)/et))}function px(e){const t=_t("formatDuration",e[0]),n=cx("formatDuration",e[1]);Mm.includes(n)||se(`unknown duration format ${n}`);const r=Om(Math.abs(t)*60);r>1e15&&se("number out of range");const o=Math.floor(r/60),i=r-o*60;return`${t<0&&r>0?"-":""}${n==="hh:mm"?ho(o,2):String(o)}:${ho(i,2)}`}function fx(e){const t=_t("round",e[0]),n=e.length>1?e[1]:0;(typeof n!="number"||!Number.isInteger(n)||n<0||n>10)&&se("round needs 0 to 10 digits");let r=1;for(let o=0;o<n;o++)r*=10;return st(Om(t*r)/r)}function hx(e){return typeof e=="string"?[...e].length:Array.isArray(e)?e.length:Dr(e)?Object.keys(e).length:se(`size needs a list, string or map, got ${We(e)}`)}const _i={mul:{params:["number","number"],args:["a","b"],run:([e,t])=>st(_t("mul",e)*_t("mul",t)),returns:mt("number")},div:{params:["number","number"],args:["a","b"],run:([e,t])=>{const n=_t("div",e),r=_t("div",t);return r===0&&se("division by zero"),st(n/r)},returns:mt("number")},mod:{params:["number","number"],args:["a","b"],run:([e,t])=>{const n=_t("mod",e),r=_t("mod",t);return r===0&&se("modulo by zero"),st(n%r)},returns:mt("number")},round:{params:["number","number"],min:1,args:["value","digits"],run:fx,returns:mt("number")},floor:{params:["number"],args:["value"],run:([e])=>st(Math.floor(_t("floor",e))),returns:mt("number")},ceil:{params:["number"],args:["value"],run:([e])=>st(Math.ceil(_t("ceil",e))),returns:mt("number")},abs:{params:["number"],args:["value"],run:([e])=>st(Math.abs(_t("abs",e))),returns:mt("number")},min:{params:["number"],variadic:!0,args:["values"],run:e=>st(Math.min(...e.map(t=>_t("min",t)))),returns:mt("number")},max:{params:["number"],variadic:!0,args:["values"],run:e=>st(Math.max(...e.map(t=>_t("max",t)))),returns:mt("number")},today:{params:[],args:[],run:(e,t)=>oa(Math.floor(Ji(t,t.now)/et)),returns:mt("date")},now:{params:[],args:[],run:(e,t)=>Ci(t.now),returns:mt("timestamp")},dateAdd:{params:["temporal","number","string"],args:["date","n","unit"],run:ux,returns:kl},dateDiff:{params:["temporal","temporal","string"],args:["a","b","unit"],run:dx,returns:mt("number")},startOf:{params:["temporal","string"],args:["date","unit"],run:(e,t)=>Zd("startOf",e,t),returns:kl},endOf:{params:["temporal","string"],args:["date","unit"],run:(e,t)=>Zd("endOf",e,t),returns:kl},weekday:{params:["temporal"],args:["date"],run:([e],t)=>{const n=Jd("weekday",e,t);return Yi(n.y,n.m,n.d)||7},returns:mt("number")},isoWeek:{params:["temporal"],args:["date"],run:([e],t)=>{const n=Jd("isoWeek",e,t);return Am(n.y,n.m,n.d).week},returns:mt("number")},hours:{params:["number"],args:["minutes"],run:([e])=>st(_t("hours",e)/60),returns:mt("number")},formatDuration:{params:["number","string"],args:["hours","format"],run:px,returns:mt("string")},size:{params:["sized"],args:["value"],run:([e])=>hx(e),returns:mt("number")},orElse:{params:["any","any"],args:["value","default"],run:([e,t])=>e??t??null,returns:e=>{const t=Pt(e[0]);return t==="null"?Pt(e[1]):t}}},mx=Object.fromEntries(_u.map(e=>[e,t=>Pm(e,t)?.value])),gx=new Set(["map","filter","all","exists"]);function Mu(e){return{now:Math.floor(e.now??Date.now()),offset:e.offset??(()=>0)}}function Eu(e,t,n){const r=t.variadic?1:t.min??t.params.length,o=t.variadic?1/0:t.params.length;return n>=r&&n<=o?null:t.variadic?`${e} takes at least 1 argument`:r===o?`${e} takes ${r} argument${r===1?"":"s"}`:`${e} takes ${r} or ${o} arguments`}function Pm(e,t,n={}){const r={value:t.default};if(e==="expr"){if(typeof t.expr!="string")return r;const s=Iu(t.expr,Dr(t.vars)?t.vars:{},n);return"value"in s?{value:s.value}:r}if(e==="size"||!Object.prototype.hasOwnProperty.call(_i,e))return;const o=_i[e];let i;if(o.variadic)i=Array.isArray(t.values)?t.values:[];else for(i=o.args.map(s=>t[s]);i.length>(o.min??o.params.length)&&i[i.length-1]===void 0;)i.pop();if(Eu(e,o,i.length))return r;try{return{value:o.run(i,Mu(n))}}catch(s){if(s instanceof Bo)return r;throw s}}const yx=["==","!=","<=",">=","&&","||"],bx="+-*/%<>!()[],.?:",ar=e=>e!==void 0&&e>="0"&&e<="9",Dm=e=>e!==void 0&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"),vx=e=>Dm(e)||ar(e);function $x(e){const t=[];let n=0;for(;n<e.length;){const r=e[n];if(r===" "||r===" "||r===`
2
2
  `||r==="\r"){n++;continue}const o=n;if(ar(r)){for(;ar(e[n]);)n++;if(e[n]==="."&&ar(e[n+1]))for(n++;ar(e[n]);)n++;if((e[n]==="e"||e[n]==="E")&&(ar(e[n+1])||(e[n+1]==="+"||e[n+1]==="-")&&ar(e[n+2])))for(n+=2;ar(e[n]);)n++;const s=e.slice(o,n).join("");t.push({t:"num",v:Number(s),at:o,text:s});continue}if(r==="'"||r==='"'){n++;let s="";for(;;){const a=e[n];if((a===void 0||a===`
3
3
  `)&&se(`at ${o}: unterminated string`),a===r)break;if(a==="\\"){const l=e[n+1],c={"\\":"\\","'":"'",'"':'"',n:`
4
4
  `,t:" ",r:"\r"};(l===void 0||c[l]===void 0)&&se(`at ${n}: unknown escape \\${l??""}`),s+=c[l],n+=2;continue}s+=a,n++}n++,t.push({t:"str",v:s,at:o,text:e.slice(o,n).join("")});continue}if(Dm(r)){for(;vx(e[n]);)n++;const s=e.slice(o,n).join("");t.push({t:"id",v:s,at:o,text:s});continue}const i=r+(e[n+1]??"");if(yx.includes(i)){t.push({t:"op",v:i,at:o,text:i}),n+=2;continue}if(bx.includes(r)){t.push({t:"op",v:r,at:o,text:r}),n++;continue}se(`at ${o}: unexpected ${r}`)}return t.push({t:"end",v:"",at:e.length,text:"end"}),t}function Rm(e){if(e.k==="id")return e.name;if(e.k!=="field")return null;const t=Rm(e.of);return t===null?null:`${t}.${e.name}`}function Do(e){if(e.k==="id")return e.name;if(e.k==="field"){const t=Do(e.of);return t===null?null:`${t}.${e.name}`}if(e.k==="index"){const t=Do(e.of),n=e.index.k==="lit"?e.index.v:void 0;if(t===null)return null;if(typeof n=="number")return`${t}[${Ha(n)}]`;if(typeof n=="string")return`${t}['${n}']`}return null}function Fm(e){const t=new Set,n=(r,o)=>{switch(r.k){case"lit":return;case"id":o.includes(r.name)||t.add(r.name);return;case"list":return r.items.forEach(i=>n(i,o));case"field":return n(r.of,o);case"has":return n(r.of,o);case"index":return n(r.of,o),n(r.index,o);case"unary":return n(r.arg,o);case"bin":return n(r.a,o),n(r.b,o);case"cond":return n(r.test,o),n(r.then,o),n(r.else,o);case"call":return r.args.forEach(i=>n(i,o));case"macro":return n(r.of,o),n(r.body,[...o,r.v])}};return n(e,[]),[...t].sort((r,o)=>r<o?-1:r>o?1:0)}const zm=e=>e.k==="field"?zm(e.of):e.at;class xx{constructor(t){this.tokens=t}tokens;i=0;depth=0;inBody=0;peek(){return this.tokens[this.i]}isOp(t){const n=this.peek();return n.t==="op"&&n.v===t}next(){return this.tokens[this.i++]}unexpected(){const t=this.peek();return se(`at ${t.at}: unexpected ${t.text}`)}expect(t){return this.isOp(t)||this.unexpected(),this.next()}enter(t){++this.depth>Po.maxDepth&&se(`at ${t}: expression is nested too deeply`)}parseAll(){const t=this.expr();return this.peek().t!=="end"&&this.unexpected(),t}expr(){const t=this.peek().at;this.enter(t);const n=this.or();let r=n;if(this.isOp("?")){this.next();const o=this.expr();this.expect(":");const i=this.expr();r={k:"cond",test:n,then:o,else:i,at:t}}return this.depth--,r}binary(t,n){let r=n();for(;;){const o=this.peek();if(o.t!=="op"||!t.includes(o.v))return r;this.next();const i=n();r={k:"bin",op:o.v,a:r,b:i,at:o.at}}}or(){return this.binary(["||"],()=>this.and())}and(){return this.binary(["&&"],()=>this.rel())}rel(){return this.binary(["==","!=","<","<=",">",">="],()=>this.add())}add(){return this.binary(["+","-"],()=>this.mul())}mul(){return this.binary(["*","/","%"],()=>this.unary())}unary(){const t=this.peek();if(t.t==="op"&&(t.v==="!"||t.v==="-")){this.next(),this.enter(t.at);const n=this.unary();return this.depth--,{k:"unary",op:t.v,arg:n,at:t.at}}return this.postfix()}postfix(){let t=this.primary();for(;;){if(this.isOp(".")){this.next();const n=this.peek();if(n.t!=="id"&&this.unexpected(),this.next(),this.isOp("(")){if(!gx.has(n.v)){const i=Rm(t),s=i===null?"pure":Si(`${i}.${n.v}`);s!=="pure"&&se(`at ${zm(t)}: ${na(`${i}.${n.v}`,s)}: an expression is pure, use an action step`),se(`at ${n.at}: unknown method ${n.v}`)}this.inBody>0&&se(`at ${n.at}: nested comprehensions are not allowed`),this.next();const r=this.peek();(r.t!=="id"||this.tokens[this.i+1]?.t!=="op"||this.tokens[this.i+1]?.v!==",")&&se(`at ${r.at}: ${n.v} needs a name first`),this.next(),this.next(),this.inBody++;const o=this.expr();this.inBody--,this.expect(")"),t={k:"macro",fn:n.v,of:t,v:r.v,body:o,at:n.at}}else t={k:"field",of:t,name:n.v,at:n.at};continue}if(this.isOp("[")){const n=this.next().at,r=this.expr();this.expect("]"),t={k:"index",of:t,index:r,at:n};continue}return t}}list(t){const n=[];if(this.isOp(t))return this.next(),n;for(;;){if(n.push(this.expr()),this.isOp(",")){if(this.next(),this.isOp(t)&&t==="]")return this.next(),n;continue}return this.expect(t),n}}primary(){const t=this.peek();if(t.t==="num")return this.next(),Number.isFinite(t.v)||se(`at ${t.at}: number out of range`),{k:"lit",v:t.v,at:t.at};if(t.t==="str")return this.next(),{k:"lit",v:t.v,at:t.at};if(t.t==="id"){this.next();const n=t.v;if(n==="true"||n==="false")return{k:"lit",v:n==="true",at:t.at};if(n==="null")return{k:"lit",v:null,at:t.at};if(n==="has"&&this.isOp("(")){this.next();const r=this.expr();return this.expect(")"),r.k!=="field"&&se(`at ${t.at}: has needs a field: has(a.b)${r.k==="id"?`; for a name write ${r.name} != null`:""}`),{k:"has",of:r,at:t.at}}if(this.isOp("(")){if(!Object.prototype.hasOwnProperty.call(_i,n)){const r=Si(n);r!=="pure"&&se(`at ${t.at}: ${na(n,r)}: an expression is pure, use an action step`),se(`at ${t.at}: unknown function ${n}`)}return this.next(),{k:"call",fn:n,args:this.list(")"),at:t.at}}return{k:"id",name:n,at:t.at}}if(t.t==="op"&&t.v==="("){this.next();const n=this.expr();return this.expect(")"),n}return t.t==="op"&&t.v==="["?(this.next(),{k:"list",items:this.list("]"),at:t.at}):this.unexpected()}}function Wo(e){try{const t=Array.from(e);return t.length>Po.maxLength&&se(`expression is longer than ${Po.maxLength} characters`),{ast:new xx($x(t)).parseAll()}}catch(t){if(t instanceof Bo)return{error:t.message};throw t}}class Nm{constructor(t,n,r){this.vars=t,this.env=n,this.maxSteps=r}vars;env;maxSteps;steps=0;step(){++this.steps>this.maxSteps&&se("step limit exceeded")}ev(t,n){switch(this.step(),t.k){case"lit":return t.v;case"list":return t.items.map(r=>this.ev(r,n));case"id":{for(let r=n;r;r=r.parent)if(r.name===t.name)return r.value;return Object.prototype.hasOwnProperty.call(this.vars,t.name)||se(`unknown name ${t.name}`),this.vars[t.name]??null}case"has":{const r=this.ev(t.of.of,n);return r==null?!1:Dr(r)?Object.prototype.hasOwnProperty.call(r,t.of.name)&&r[t.of.name]!==null&&r[t.of.name]!==void 0:se(`no field ${t.of.name} on ${We(r)}`)}case"field":{const r=this.ev(t.of,n);return r==null?null:Dr(r)?Object.prototype.hasOwnProperty.call(r,t.name)?r[t.name]??null:null:se(`no field ${t.name} on ${We(r)}`)}case"index":{const r=this.ev(t.of,n),o=this.ev(t.index,n);return Array.isArray(r)?typeof o!="number"?se(`a list index is a number, got ${We(o)}`):(Number.isInteger(o)||se(`a list index is a whole number, got ${Ha(o)}`),r[o]??null):Dr(r)?typeof o!="string"?se(`a map key is a string, got ${We(o)}`):Object.prototype.hasOwnProperty.call(r,o)?r[o]??null:null:r==null?null:se(`cannot index ${We(r)}`)}case"unary":{const r=this.ev(t.arg,n);return t.op==="-"?(typeof r!="number"&&se(`cannot apply - to ${We(r)}`),st(-r)):(typeof r!="boolean"&&se(`cannot apply ! to ${We(r)}`),!r)}case"cond":{const r=this.ev(t.test,n);return typeof r!="boolean"&&se(`cannot use ${We(r)} as a condition`),this.ev(r?t.then:t.else,n)}case"bin":return this.binary(t,n);case"call":{const r=t.args.map(s=>this.ev(s,n)),o=_i[t.fn],i=Eu(t.fn,o,r.length);return i&&se(i),o.run(r,this.env)}case"macro":{const r=this.ev(t.of,n);if(!Array.isArray(r))return se(`${t.fn} needs a list, got ${We(r)}`);const o=[];for(const i of r){this.step();const s=this.ev(t.body,{name:t.v,value:i??null,parent:n});if(t.fn==="map"){o.push(s);continue}if(typeof s!="boolean"&&se(`${t.fn} needs a bool, got ${We(s)}`),t.fn==="filter")s&&o.push(i??null);else{if(t.fn==="all"&&!s)return!1;if(t.fn==="exists"&&s)return!0}}return t.fn==="all"?!0:t.fn==="exists"?!1:o}}}binary(t,n){if(t.op==="&&"||t.op==="||"){const i=this.ev(t.a,n);if(typeof i!="boolean"&&se(`cannot apply ${t.op} to ${We(i)}`),t.op==="&&"?!i:i)return i;const s=this.ev(t.b,n);return typeof s!="boolean"&&se(`cannot apply ${t.op} to ${We(s)}`),s}const r=this.ev(t.a,n)??null,o=this.ev(t.b,n)??null;switch(t.op){case"==":return ra(r,o);case"!=":return!ra(r,o);case"<":case"<=":case">":case">=":{typeof r=="number"&&typeof o=="number"||typeof r=="string"&&typeof o=="string"||se(`cannot compare ${We(r)} and ${We(o)}`);const i=r<o?-1:r>o?1:0;return t.op==="<"?i<0:t.op==="<="?i<=0:t.op===">"?i>0:i>=0}case"+":return typeof r=="number"&&typeof o=="number"?st(r+o):typeof r=="string"&&typeof o=="string"?r+o:Array.isArray(r)&&Array.isArray(o)?[...r,...o]:se(`cannot apply + to ${We(r)} and ${We(o)}`);default:return typeof r!="number"||typeof o!="number"?se(`cannot apply ${t.op} to ${We(r)} and ${We(o)}`):t.op==="-"?st(r-o):t.op==="*"?st(r*o):(o===0&&se(t.op==="/"?"division by zero":"modulo by zero"),st(t.op==="/"?r/o:r%o))}}}function wx(e,t,n={}){const r=new Nm(t,Mu(n),n.maxSteps??Po.maxSteps);try{return{result:{value:r.ev(e,null)??null},steps:r.steps}}catch(o){if(o instanceof Bo)return{result:{error:o.message},steps:r.steps};throw o}}function Iu(e,t={},n={}){let r;if(typeof e=="string"){const o=Wo(e);if("error"in o)return o;r=o.ast}else r=e;try{return{value:new Nm(t,Mu(n),n.maxSteps??Po.maxSteps).ev(r,null)??null}}catch(o){if(o instanceof Bo)return{error:o.message};throw o}}const Ot=e=>typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===1&&Object.prototype.hasOwnProperty.call(e,"?"),Ze=e=>Ot(e)||e==="null"?e:{"?":e},Pt=e=>Ot(e)?e["?"]:e;function Be(e){return Ot(e)?`${Be(e["?"])}?`:typeof e=="string"?e:Array.isArray(e)?"list":"map"}const Ps=e=>typeof e=="object"&&!Array.isArray(e)&&!Ot(e),Xt=e=>e==="string"||e==="date"||e==="timestamp",Ye=e=>e==="dyn"||e==="null";function kx(e,t){return e==="any"||Ye(t)?!0:e==="number"?t==="number":e==="string"||e==="temporal"?Xt(t):t==="string"||t==="map"||Array.isArray(t)||Ps(t)}const Sx={number:"a number",string:"a string",temporal:"a date",sized:"a list, string or map",any:"a value"};function pi(e){return e.k==="lit"?e.v:void 0}function Mr(e){if(e.k==="has"){const t=Do(e.of);return{yes:t===null?[]:[t],no:[]}}if(e.k==="bin"&&(e.op==="=="||e.op==="!=")){const t=pi(e.a)===null&&e.a.k==="lit"?e.b:pi(e.b)===null&&e.b.k==="lit"?e.a:null,n=t?Do(t):null;return n===null?{yes:[],no:[]}:e.op==="!="?{yes:[n],no:[]}:{yes:[],no:[n]}}if(e.k==="bin"&&e.op==="&&"){const t=Mr(e.a),n=Mr(e.b);return{yes:[...t.yes,...n.yes],no:[]}}if(e.k==="bin"&&e.op==="||"){const t=Mr(e.a),n=Mr(e.b);return{yes:[],no:[...t.no,...n.no]}}if(e.k==="unary"&&e.op==="!"){const t=Mr(e.arg);return{yes:t.no,no:t.yes}}return{yes:[],no:[]}}function Sl(e){const t=Do(e);return se(`${t??`the value at ${e.at}`} may be missing: guard it with has(), a null check or orElse()`)}class Cx{constructor(t){this.types=t}types;present=[];within(t,n,r){const o=this.present;this.present=[...o,...t];try{return this.tc(n,r)}finally{this.present=o}}need(t,n){const r=this.tc(t,n);return Ot(r)&&Sl(t),r}tc(t,n){const r=this.type(t,n),o=t.k==="id"||t.k==="field"||t.k==="index"?Do(t):null;return o!==null&&this.present.includes(o)?Pt(r):r}type(t,n){switch(t.k){case"lit":return We(t.v);case"list":{const r=t.items.map(o=>this.tc(o,n));return r.length===0?["dyn"]:[r.every(o=>JSON.stringify(o)===JSON.stringify(r[0]))?r[0]:"dyn"]}case"id":{for(let r=n;r;r=r.parent)if(r.name===t.name)return r.type;return Object.prototype.hasOwnProperty.call(this.types,t.name)?this.types[t.name]:se(`unknown name ${t.name}`)}case"field":case"has":{const r=t.k==="has"?t.of:t,o=this.tc(r.of,n),i=Pt(o);let s;if(i==="map")s=Ze("dyn");else if(i==="dyn"||i==="null")s="dyn";else if(Ps(i)){if(!Object.prototype.hasOwnProperty.call(i,r.name))return se(`unknown field ${r.name}`);s=i[r.name]}else return se(`no field ${r.name} on ${Be(i)}`);return t.k==="has"?"bool":Ot(o)?Ze(s):s}case"index":{const r=this.tc(t.of,n),o=Pt(r),i=this.need(t.index,n),s=a=>Ot(r)?Ze(a):a;if(Array.isArray(o))return!Ye(i)&&i!=="number"&&se(`a list index is a number, got ${Be(i)}`),Ze(o[0]);if(Ps(o)||o==="map"){!Ye(i)&&!Xt(i)&&se(`a map key is a string, got ${Be(i)}`);const a=pi(t.index);return Ps(o)&&typeof a=="string"?(Object.prototype.hasOwnProperty.call(o,a)||se(`unknown field ${a}`),s(o[a])):Ze("dyn")}return Ye(o)?s("dyn"):se(`cannot index ${Be(o)}`)}case"unary":{const r=this.need(t.arg,n),o=t.op==="-"?"number":"bool";return!Ye(r)&&r!==o&&se(`cannot apply ${t.op} to ${Be(r)}`),o}case"cond":{const r=this.need(t.test,n);!Ye(r)&&r!=="bool"&&se(`cannot use ${Be(r)} as a condition`);const o=Mr(t.test),i=this.within(o.yes,t.then,n),s=this.within(o.no,t.else,n);return JSON.stringify(i)===JSON.stringify(s)?i:i==="null"?Ze(s):s==="null"?Ze(i):JSON.stringify(Pt(i))===JSON.stringify(Pt(s))?Ze(Pt(i)):Ot(i)||Ot(s)?Ze("dyn"):"dyn"}case"bin":return this.binary(t,n);case"call":return this.call(t,n);case"macro":{const r=this.need(t.of,n);!Array.isArray(r)&&!Ye(r)&&se(`${t.fn} needs a list, got ${Be(r)}`);const o=Array.isArray(r)?r[0]:"dyn",i=this.tc(t.body,{name:t.v,type:o,parent:n});return t.fn==="map"?[i]:(Ot(i)&&Sl(t.body),!Ye(i)&&i!=="bool"&&se(`${t.fn} needs a bool, got ${Be(i)}`),t.fn==="filter"?Array.isArray(r)?r:["dyn"]:"bool")}}}binary(t,n){if(t.op==="&&"||t.op==="||"){const a=this.need(t.a,n),l=Mr(t.a),c=this.within(t.op==="&&"?l.yes:l.no,t.b,n);Ot(c)&&Sl(t.b);for(const u of[a,c])!Ye(u)&&u!=="bool"&&se(`cannot apply ${t.op} to ${Be(u)}`);return"bool"}if(t.op==="=="||t.op==="!="){const a=Pt(this.tc(t.a,n)),l=Pt(this.tc(t.b,n));return Ye(a)||Ye(l)||Xt(a)&&Xt(l)||Be(a)===Be(l)||se(`cannot compare ${Be(a)} and ${Be(l)}`),"bool"}const r=this.need(t.a,n),o=this.need(t.b,n),i=Be(r),s=Be(o);switch(t.op){case"<":case"<=":case">":case">=":{const a=l=>Ye(l)||l==="number"||Xt(l);return(!a(r)||!a(o)||r==="number"&&Xt(o)||o==="number"&&Xt(r))&&se(`cannot compare ${i} and ${s}`),"bool"}case"+":return Ye(r)&&Ye(o)?"dyn":(r==="number"||Ye(r))&&(o==="number"||Ye(o))?"number":(Xt(r)||Ye(r))&&(Xt(o)||Ye(o))?"string":(Array.isArray(r)||Ye(r))&&(Array.isArray(o)||Ye(o))?Array.isArray(r)&&Array.isArray(o)&&JSON.stringify(r)===JSON.stringify(o)?r:["dyn"]:se(`cannot apply + to ${i} and ${s}`);default:return(r==="number"||Ye(r))&&(o==="number"||Ye(o))||se(`cannot apply ${t.op} to ${i} and ${s}`),(t.op==="/"||t.op==="%")&&pi(t.b)===0&&se(t.op==="/"?"division by zero":"modulo by zero"),"number"}}call(t,n){const r=_i[t.fn],o=Eu(t.fn,r,t.args.length);o&&se(o);const i=t.args.map((u,d)=>t.fn==="orElse"&&d===0?this.tc(u,n):this.need(u,n));if(i.forEach((u,d)=>{const p=r.params[Math.min(d,r.params.length-1)];kx(p,Pt(u))||se(`${t.fn} needs ${Sx[p]}, got ${Be(u)}`)}),t.fn==="orElse"){const u=Pt(i[0]),d=i[1];!Ye(u)&&!Ye(d)&&!(Xt(u)&&Xt(d))&&Be(u)!==Be(d)&&se(`orElse needs a ${Be(u)} default, got ${Be(d)}`)}const s=u=>t.args[u]?pi(t.args[u]):void 0,a=t.fn==="dateAdd"||t.fn==="dateDiff"?2:t.fn==="startOf"||t.fn==="endOf"?1:-1,l=a>=0?s(a):void 0;if(typeof l=="string"&&((a===2?Ou:Tm).includes(l)||se(`unknown unit ${l}`),t.fn==="dateAdd"&&i[0]==="date"&&bo[l]!==void 0&&se(`unit ${l} needs a timestamp`)),t.fn==="dateAdd"&&typeof s(1)=="number"&&!Number.isInteger(s(1))&&se(`dateAdd needs a whole number, got ${Ha(s(1))}`),t.fn==="round"&&t.args.length>1){const u=s(1);typeof u=="number"&&(!Number.isInteger(u)||u<0||u>10)&&se("round needs 0 to 10 digits")}t.fn==="div"&&s(1)===0&&se("division by zero"),t.fn==="mod"&&s(1)===0&&se("modulo by zero");const c=t.fn==="formatDuration"?s(1):void 0;return typeof c=="string"&&!Mm.includes(c)&&se(`unknown duration format ${c}`),r.returns(i)}}function Ua(e,t){const n=Wo(e);if("error"in n)return n;try{return{type:new Cx(t).tc(n.ast,null)}}catch(r){if(r instanceof Bo)return{error:r.message};throw r}}const Ax="VAPP-103: the input LIMITS every core enforces (the TS reference, the Rust core and through it Swift, Compose and gpui). An agent's input past a limit is refused with an issue, never worked on. `maxComponents` = nodes the reducer places in one surface's tree, template nodes included (the rest is dropped: `surface: more than N components; the rest is dropped`); a renderer's build holds at most `maxComponents` nodes too: the reduced tree's (after expansion, children and slots) plus, per template ITEM, its template subtree's (nested items charged when they are instantiated); the first item that does not fit and every later one are not rendered, with ONE issue on the template component (the same message). `maxDepth` = nesting levels of the REDUCED tree, after macro expansion (the root and every lifted template = 1, children and slots one level down; a Card, Section or Group macro adds a level; a deeper node is the Unknown placeholder, its subtree dropped: `nesting deeper than N levels`); 48 keeps every tree a core emits (2 JSON levels per node) inside serde_json's default recursion limit of 128, so reduced trees, fixtures and the FFI's JSON round-trip; the Rust core's recursive passes switch to a heap-allocated stack segment when the host thread runs low, so an iOS secondary thread's 512 KB never decides (a 48-level surface lays out on a 128 KB thread, debug build). `maxMessageBytes` = one server message as UTF-8 JSON (host routers refuse it: INVALID_MESSAGE). `maxTemplateItems` = template items one surface instantiates (beyond it the items are not rendered: `template: more than N items; the rest is not rendered`). `maxPointerBytes` / `maxPointerSegments` = a data pointer's length and token count (a longer write is refused). Generated into every target; src/limits.ts reads it.",_x=2e4,Ox=48,Tx=4194304,Mx=1e4,Ex=1024,Ix=64,Px={$comment:"EXP-1584/1602: the eUI Motion (Lottie) limits, enforced by the one engine (apps/desktop/crates/eui-motion, src/validate.rs Limits) on every renderer through its WASM and uniffi builds. A source past maxBytes (UTF-8 JSON), maxShapes (shape items: objects with a string `ty` inside a layer's `shapes` or a group's `it`) or maxSeconds ((op − ip) / fr) is refused with an issue (`limit-bytes`, `limit-shapes`, `limit-duration`; expressions are refused too: `expression`); maxVertices = path vertices in one sampled frame (checked per frame by the player, not by the validator); maxFps = the highest frame rate a player samples at; maxPlayingPerSurface = Motion components one surface animates at once. Cases: fixtures/motion-validate.json.",maxBytes:2097152,maxShapes:5e3,maxVertices:1e5,maxSeconds:120,maxFps:60,maxPlayingPerSurface:8},eo={$comment:Ax,maxComponents:_x,maxDepth:Ox,maxMessageBytes:Tx,maxTemplateItems:Mx,maxPointerBytes:Ex,maxPointerSegments:Ix,motion:Px};Object.fromEntries(Object.entries(eo).filter(([e,t])=>!e.startsWith("$")&&typeof t=="number"));const Qi=eo.maxComponents,Oi=eo.maxDepth,Rr=eo.maxMessageBytes,Lm=eo.maxTemplateItems,jm=eo.maxPointerBytes,Bm=eo.maxPointerSegments,$n={usedTwice:"id used twice; only its first place renders",depth:`nesting deeper than ${Oi} levels`,components:`surface: more than ${Qi} components; the rest is dropped`,templateItems:`template: more than ${Lm} items; the rest is not rendered`,messageBytes:`message larger than ${Rr} bytes`},Wm=e=>e.replace(/~1/g,"/").replace(/~0/g,"~");function Hm(e,t={}){if(e.startsWith("/"))return e;const n=t.base??"";return e===""?n:`${n}/${e}`}function Dx(e){return e!==void 0&&Object.prototype.hasOwnProperty.call(e,"item")}const qm=/^[0-9]+$/;function Va(e,t){if(t===""||t==="/")return e;let n=e;for(const r of(t.startsWith("/")?t.slice(1):t).split("/")){if(n==null||typeof n!="object")return;const o=Wm(r);Array.isArray(n)?n=o==="-"?n.at(-1):qm.test(o)?n[Number(o)]:void 0:n=Object.prototype.hasOwnProperty.call(n,o)?n[o]:void 0}return n}const Rx=e=>new TextEncoder().encode(e).length;function Fx(e){if(Rx(e)>jm)return sa.bytes;if(e===""||e==="/")return[];const t=(e.startsWith("/")?e.slice(1):e).split("/");return t.length>Bm?sa.segments:t.map(Wm)}const sa={bytes:`data: pointer longer than ${jm} bytes`,segments:`data: pointer has more than ${Bm} segments`,notIndex:e=>`data: ${JSON.stringify(e)} is not an array index`,pastEnd:(e,t)=>`data: index ${e} is past the end of the array (${t} items)`};function zx(e,t){if(e==="-")return t;if(!qm.test(e))return sa.notIndex(e);const n=Number(e);return n<=t?n:sa.pastEnd(e,t)}function Cl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Pu(e,t,n){const r=Fx(t);if(typeof r=="string")return{data:e,error:r};if(r.length===0)return{data:n===void 0?{}:n};const o=[],i=[];let s=e;for(let a=0;a<r.length;a++){const l=r[a],c=a===r.length-1;if(Array.isArray(s)){const u=zx(l,s.length);if(typeof u=="string")return{data:e,error:u};const d=[...s];c?n===void 0?u<d.length&&d.splice(u,1):d[u]=n:s=d[u],o.push(d),i.push(u)}else{const u={};if(s!==null&&typeof s=="object")for(const[d,p]of Object.entries(s))Cl(u,d,p);c?n===void 0?delete u[l]:Cl(u,l,n):s=Object.prototype.hasOwnProperty.call(u,l)?u[l]:void 0,o.push(u),i.push(l)}}for(let a=o.length-2;a>=0;a--){const l=o[a];Array.isArray(l)?l[i[a]]=o[a+1]:Cl(l,i[a],o[a+1])}return{data:o[0]}}({...yc,...mx});new Set($m);new Set(_u);function Nx(e,t,n,r={}){let o=e;for(const[i,s]of Object.entries(n??{})){const a=t[i];Wa(a)&&(!a.path.startsWith("/")&&Dx(r)||(o=Pu(o,Hm(a.path,r),s).data))}return o}const Lx=["Dialog","Drawer","AlertDialog","Popover","Tooltip","Menu","Toast"];new Set(Lx);function Du(e){return e?e.type==="object"?e.shape===void 0:e.type==="array"?e.items!==void 0&&Du(e.items):!1:!1}function Qd(e,t,n){for(let r=t+1;r<e.length;r+=1){const o=e[r];if(o<=n)return!1;if(o===n+1)return!0}return!1}function jx(e){return e.map((t,n)=>{if(t<=0)return{elbowAt:null,tee:!1,passThrough:[]};const r=[];for(let o=0;o<=t-2;o+=1)Qd(e,n,o)&&r.push(o);return{elbowAt:t-1,tee:Qd(e,n,t-1),passThrough:r}})}function Ru(e){return e.recipe?.macro==="Row"&&e.recipe.part==="root"}function Bx(e){const t=Ru(e)?e.recipe?.props.depth:e.props.depth;return typeof t=="number"&&Number.isFinite(t)&&t>0?Math.floor(t):0}function Wx(e){return!Ru(e)&&e.component!=="TreeGuides"&&typeof e.props.depth=="number"}function ep(e,t){const n={depth:e};return t.elbowAt!==null&&(n.elbowAt=t.elbowAt),n.tee=t.tee,n.passThrough=t.passThrough,n}function Al(e){const t=e.map(Bx),n=jx(t);e.forEach((r,o)=>{const i=n[o];if(Ru(r)){const s=Hx(r);s&&(s.props=ep(t[o],i))}else if(Wx(r)){const{depth:s,...a}=ep(t[o],i);r.props={...r.props,guide:a}}})}function Hx(e){return e.children.find(t=>t.component==="TreeGuides"&&t.recipe?.part==="guides")}function tp(e){const t=n=>{Al(n.children);for(const r of Object.values(n.slots??{}))Al([r]),t(r);n.children.forEach(t)};return Al([e]),t(e),e}const np=16,Ka=yt.breakpoint;function Um(e){return e===void 0?e:JSON.parse(JSON.stringify(e))}const qx=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Ga(e){return!qx(e)||!("base"in e)?!1:Object.keys(e).every(t=>t==="base"||Ka.includes(t))}function Vm(e,t){let n=e.base;if(t===null)return n;for(const r of Ka)if(r in e&&(n=e[r]),r===t)break;return n}function Km(e,t){const n={};for(const[r,o]of Object.entries(e))n[r]=Ga(o)?Vm(o,t):o;return n}function Ux(e){const t=new Set;for(const n of Object.values(e))if(Ga(n))for(const r of Object.keys(n))r!=="base"&&t.add(r);return Ka.filter(n=>t.has(n)).map(n=>({breakpoint:n,props:Km(e,n)}))}function Vx(e,t){if(!e&&!t)return;const n={...e??{}};for(const[r,o]of Object.entries(t??{})){const i=typeof o=="object"&&o!==null&&!Array.isArray(o);n[r]=i?{...n[r]??{},...o}:o}return n}function Kx(e,t){const n=Um(e);return t&&n.event&&(n.event.context={...n.event.context??{},...t}),n}function Gx(e,t,n){const r={},o=e.view.components[e.macro]?.props??{};for(const i of e.def.recipeProps){const s=e.baseProps[i]??o[i]?.default;s!==void 0&&(r[i]=s)}if(n){const i=Nt(n,t);for(const[s,a]of Object.entries(i))r[s]=a}return r}function rp(e,t){return e.length===1?e[0]:{call:t,args:{values:e}}}function Yx(e,t){const n=[];if(e.$if!==void 0){const r=Array.isArray(e.$if)?e.$if:[e.$if];for(const o of r){const i=ta(o,t);if(i===!1)return!1;i!==!0&&n.push(i)}}if(e.$any!==void 0){let r=!1;const o=[];for(const i of e.$any){const s=ta(i,t);if(s===!0){r=!0;break}s!==!1&&o.push(s)}if(!r){if(o.length===0)return!1;n.push(rp(o,"or"))}}return n.length===0?!0:rp(n,"and")}function Ds(e,t,n,r){const o=Yx(e,n);if(o===!1)return[];const i=o===!0?void 0:o;if(e.$each!==void 0){const a=Nt(`{${e.$each}}`,n);if(!Array.isArray(a))return[];const l=e.$as??"item";return a.map((c,u)=>ip(e,t,{...n,vars:{...n.vars,[l]:c,index:u}},`${r}.${e.part}.${u}`,i))}const s=e.part==="root"?t.source.id:`${r}.${e.part}`;return[ip(e,t,n,s,i)]}const op=e=>JSON.stringify(e);function Xx(e,t,n){if(!e.style)return;const r=Nt(e.style,n);let o=r;for(const i of t.variants){const s=Nt(e.style,{...n,props:i.props}),a={};for(const[l,c]of Object.entries(s))!l.startsWith("@")&&!l.startsWith(":")&&op(o[l])!==op(c)&&(a[l]=c);if(Object.keys(a).length>0){const l=`@media (min-width: $breakpoint.${i.breakpoint})`;r[l]={...r[l]??{},...a}}o=s}return Object.keys(r).length>0?r:void 0}function ip(e,t,n,r,o){const i=Nt(e.props??{},n)??{},s=Xx(e,t,n),a={id:r,component:e.component,props:i,children:[]};if(s&&(a.style=s),o!==void 0&&(a.visible=o),a.recipe={macro:t.macro,part:e.part,props:Gx(t,n,e.$recipe)},e.$on){const l={};for(const[c,u]of Object.entries(e.$on)){const d=t.source.on?.[u];if(!d)continue;t.claimed.add(u);const p=e.$context?Nt(e.$context,n):void 0;l[c]=Kx(d,p)}Object.keys(l).length>0&&(a.on=l)}if(e.$set)for(const[l,c]of Object.entries(e.$set)){const u=t.baseProps[c.prop];if(!Wa(u))continue;const d=a.on??={};if(d[l]?.functionCall){const f=`on.${e.$on?.[l]??l}: a function action replaces the two-way set of props.${c.prop}; write it in that function's handler or use an event`;t.issues?.some(y=>y.id===t.source.id&&y.message===f)||t.issues?.push({id:t.source.id,message:f});continue}const p=Nt(c.value,n);d[l]={...d[l]??{},functionCall:{call:"set",args:p===void 0?{path:u.path}:{path:u.path,value:p}}}}if(e.$a11y){const l=Nt(e.$a11y,n);Object.keys(l).length>0&&(a.accessibility=l)}if(e.slots)for(const[l,c]of Object.entries(e.slots)){if(typeof c=="string"){const d=c.startsWith("$slot:")?c.slice(6):null,p=d?t.source.slots?.[d]:void 0;p&&((a.slots??={})[l]=p);continue}const[u]=Ds(c,t,n,r);u&&((a.slots??={})[l]=u)}if(e.$template){const l=Nt(e.$template.path,n),c=e.$template.key===void 0?void 0:Nt(e.$template.key,n),[u]=typeof l=="string"&&l?Ds(e.$template.item,t,n,r):[];u&&(t.built.push(u),a.template=typeof c=="string"&&c?{component:u.id,path:l,key:c}:{component:u.id,path:l})}for(const l of e.children??[]){if(l==="$children"){a.children.push(...t.source.children),t.source.template&&(a.template=t.source.template);continue}if(typeof l=="string"){if(l.startsWith("$slot:")){const c=t.source.slots?.[l.slice(6)];c&&a.children.push(c)}continue}a.children.push(...Ds(l,t,n,r))}return a}function Zx(e,t,n,r,o,i,s){if(o>np)throw new Error(`macro ${t}: expansion deeper than ${np}`);const a=Km(e.props,null);(e.on?.press||a.href)&&a.pressable===void 0&&r.components[t]?.props.pressable&&(a.pressable=!0);const l={view:r,macro:t,def:n,source:e,baseProps:a,variants:Ux(e.props),claimed:new Set,issues:i,built:[]},c={id:e.id,props:a,vars:{}},[u]=Ds(n.root,l,c,e.id);u.style=Vx(u.style,e.style),u.style&&Object.keys(u.style).length===0&&delete u.style;const d=e.recipe?[...e.recipe.authored??[]]:Object.keys(e.style??{}).sort();d.length>0&&u.recipe&&(u.recipe={...u.recipe,authored:d}),e.visible!==void 0&&(u.visible=e.visible),e.accessibility&&(u.accessibility={...u.accessibility??{},...e.accessibility});const p={...u.on??{}};for(const[f,y]of Object.entries(e.on??{}))l.claimed.has(f)||(p[f]=y);Object.keys(p).length>0?u.on=p:delete u.on;const h=Ti(u,r,o+1,i,s);for(const f of l.built)s.push(Ti(f,r,o+1,i,s));return h}function Ti(e,t,n,r,o){const i={...e,children:e.children.map(a=>Ti(a,t,n,r,o))};if(e.slots){i.slots={};for(const[a,l]of Object.entries(e.slots))i.slots[a]=Ti(l,t,n,r,o)}const s=t.macros[i.component];return s&&t.components[i.component]?.kind==="macro"?Zx(i,i.component,s,t,n,r,o):i}function sp(e,t={}){const n=[],r=tp(Ti(Um(e),Gi(t.extensions),0,t.issues,n));for(const o of n)t.templates?.push(tp(o));return r}const Jx=new Set(lm),Gm=e=>Gi(e),Qx=new Set(Yv),ew=/^\d{4}-\d{2}-\d{2}$/;function ap(e,t,n,r,o){switch(e.type){case"string":case"markdown":case"url":typeof t!="string"?o.push({path:n,message:"expected a string"}):Cu(t)!==null&&!k$(t)&&o.push({path:n,message:`unknown built-in string ${t} (catalog/strings.json)`});return;case"date":(typeof t!="string"||t!==""&&!ew.test(t))&&o.push({path:n,message:"expected yyyy-mm-dd"});return;case"number":typeof t!="number"||!Number.isFinite(t)?o.push({path:n,message:"expected a number"}):e.minimum!==void 0&&t<e.minimum?o.push({path:n,message:`expected at least ${e.minimum}`}):e.maximum!==void 0&&t>e.maximum&&o.push({path:n,message:`expected at most ${e.maximum}`});return;case"boolean":typeof t!="boolean"&&o.push({path:n,message:"expected a boolean"});return;case"enum":{const i=e.values??(e.enum?r.enums[e.enum]:void 0);i?i.includes(t)||o.push({path:n,message:`expected one of ${i.join("|")}`}):o.push({path:n,message:`enum ${e.enum} is not defined`});return}case"icon":(typeof t!="string"||!Jx.has(t))&&o.push({path:n,message:"not an icons.json name"});return;case"color":if(am(t)&&nr(t)?.group==="color")return;o.push({path:n,message:"expected $color.<name>"});return;case"style":for(const i of pm(t,{path:n,root:!1}))o.push(i);return;case"array":if(!Array.isArray(t)){o.push({path:n,message:"expected an array"});return}e.items&&t.forEach((i,s)=>Ym(e.items,i,`${n}[${s}]`,r,o));return;case"object":{if(typeof t!="object"||t===null||Array.isArray(t)){o.push({path:n,message:"expected an object"});return}if(!e.shape)return;const i=r.defs[e.shape];if(!i){o.push({path:n,message:`shape ${e.shape} is not defined`});return}Xm(i.properties,t,n,r,o);return}}}function Ym(e,t,n,r,o){if(!(e.bindable&&Ue(t))){if(e.responsive&&Ga(t)){for(const[i,s]of Object.entries(t))ap(e,s,`${n}.${i}`,r,o);return}if(e.responsive&&typeof t=="object"&&t!==null&&!Array.isArray(t)&&!Ue(t)){o.push({path:n,message:`a responsive value needs base and only ${Ka.join("|")} besides`});return}ap(e,t,n,r,o)}}function Xm(e,t,n,r,o){for(const[i,s]of Object.entries(e)){const a=t[i];if(a==null){s.required&&o.push({path:`${n}.${i}`,message:"required"});continue}Ym(s,a,`${n}.${i}`,r,o)}for(const i of Object.keys(t))i in e||o.push({path:`${n}.${i}`,message:"unknown prop"})}function tw(e){return Qx.has(e)||/^[A-Za-z_][\w-]*(\.[A-Za-z_][\w-]*)+$/.test(e)}function Fu(e,t,n){tw(e.call)||n.push({path:t,message:`unknown function "${e.call}"; known: the catalog functions, or a namespaced host function (app.toast)`})}function Br(e,t,n){if(Array.isArray(e)){e.forEach((r,o)=>Br(r,`${t}[${o}]`,n));return}if(!(typeof e!="object"||e===null)){jo(e)&&Fu(e,t,n);for(const[r,o]of Object.entries(e))Br(o,`${t}.${r}`,n)}}function $c(e,t,n,r,o){if(jo(e)){Fu(e,n,o),Br(e.args,`${n}.args`,o);return}if(!t||Du(t))return;if(t.type==="style")return Br(e,n,o);if(t.type==="array"&&t.items&&Array.isArray(e)){e.forEach((s,a)=>$c(s,t.items,`${n}[${a}]`,r,o));return}const i=t.type==="object"&&t.shape?r.defs[t.shape]:void 0;if(i&&typeof e=="object"&&e!==null&&!Array.isArray(e))for(const[s,a]of Object.entries(e))$c(a,i.properties[s],`${n}.${s}`,r,o)}function nw(e,t,n){if(typeof e!="object"||e===null)return;const{functionCall:r,event:o}=e;jo(r)&&(Fu(r,`${t}.functionCall`,n),Br(r.args,`${t}.functionCall.args`,n)),typeof o=="object"&&o!==null&&Br(o.context,`${t}.event.context`,n)}function Zm(e,t={}){const n=[],r=Gm(t.extensions),o=r.components[e.component];if(e.style!==void 0)for(const i of pm(e.style,{path:"style"}))n.push(i);for(const[i,s]of Object.entries(e.props))$c(s,o?.props[i],`props.${i}`,r,n);e.visible!==void 0&&Br(e.visible,"visible",n);for(const[i,s]of Object.entries(e.on??{}))nw(s,`on.${i}`,n);if(e.component==="Table"&&Array.isArray(e.props.columns)){const i=Object.keys(e.slots??{});e.props.columns.forEach((s,a)=>{if(typeof s!="object"||s===null||s.type!=="slot")return;const l=s.slot;typeof l!="string"?n.push({path:`props.columns[${a}].slot`,message:"a slot column names one of the Table's slots"}):i.includes(l)||n.push({path:`props.columns[${a}].slot`,message:`no slot "${l}" on this Table; slots: ${i.join("|")||"none"}`})})}return n}function Jm(e,t,n={}){const r=[];return Xm(e.props,t,n.path??"props",Gm(n.extensions),r),r}const rw="Round 2 (docs/round-2-contract.md §7): the layout NUMBERS every painter shares where no theme token decides (px unless noted). `windowThreshold` = items past which List and Table window; `windowOverscan` = items rendered beyond each viewport edge; `resizeStep` = percentage points per arrow key on a Resizable handle; `panelMin` = a panel's min (percent) when unset; `resizeHandleHit` = a handle's hit area across its hairline; `fieldIntrinsicWidth` = the max-content width of a text field (Input, Textarea, NumberField, ChipInput: never the browser's `size` default) — picker triggers (Select, DatePicker, DateRangePicker, TimePicker) size to their content; `mediaIntrinsicWidth` = the max-content width of an Image/Video without a width (its min-content is 0); `mediaAspectRatio` = width/height of an Image without `aspectRatio` or a height (Video: its `aspectRatio` default); `treeGuideColumn` = one TreeGuides gutter column (the recipe's `line` width is the STROKE; round 3: 14, the ×4 app indent, the elbow lands on the parent's lead glyph); `treeGuideRadius` = the elbow's corner radius; `treeGuideBridge` = how far the guide verticals overshoot the row's TOP edge (paint only) so a Section's hairline divider never breaks the line. EXP-1259 (packages/domain-contract/fixtures/feedback-states.json + search-list.json): `pendingDelayMs` = how long a `loading` Button waits before it shows the spinner and its `pendingLabel` (a fast action never flashes; presses are refused at once); `skeletonPulseMs` / `skeletonOpacityLow` / `skeletonOpacityHigh` = the placeholder's ONE opacity pulse (low → high → low, ease-in-out), `skeletonReducedOpacity` = its static opacity under reduce motion; `searchListFade` = the bottom fade over a SearchList (or a searchable submenu) while more rows sit below. EXP-1548: `tableColumnMin` = the narrowest a Table column without a `width` gets; a table whose columns need more than its box scrolls horizontally (VAPP-250: 96, three columns fit a 360 pt phone's 296 px with \"qualified\" badges and \"€12,000\" cells whole; lower breaks 11-letter words mid-word in a table that scrolls anyway). Generated into every target; src/layout.ts reads it.",ow=50,iw=5,sw=10,aw=10,lw=8,cw=160,uw=320,dw=1.7777778,pw=14,fw=3,hw=1,mw=150,gw=1600,yw=.45,bw=.9,vw=.6,$w=24,xw=96,ft={$comment:rw,windowThreshold:ow,windowOverscan:iw,resizeStep:sw,panelMin:aw,resizeHandleHit:lw,fieldIntrinsicWidth:cw,mediaIntrinsicWidth:uw,mediaAspectRatio:dw,treeGuideColumn:pw,treeGuideRadius:fw,treeGuideBridge:hw,pendingDelayMs:mw,skeletonPulseMs:gw,skeletonOpacityLow:yw,skeletonOpacityHigh:bw,skeletonReducedOpacity:vw,searchListFade:$w,tableColumnMin:xw};Object.fromEntries(Object.entries(ft).filter(([e])=>!e.startsWith("$")));const zu=ft.windowThreshold,Qm=ft.windowOverscan,ww=ft.resizeStep,kw=ft.panelMin,lp=ft.resizeHandleHit,eg=ft.mediaIntrinsicWidth,xc=ft.mediaAspectRatio,_l=ft.treeGuideColumn,Sw=ft.treeGuideRadius,Ol=ft.treeGuideBridge,Cw=ft.pendingDelayMs,Aw=ft.skeletonPulseMs,cp=ft.skeletonOpacityLow,_w=ft.skeletonOpacityHigh,Ow=ft.skeletonReducedOpacity,Tw=ft.searchListFade,tg=ft.tableColumnMin;function ng(e,t){const n=new Set;return e.map((r,o)=>{let i=String(o);if(t!==void 0){const s=Va(r,t.startsWith("/")?t:`/${t}`),a=s==null||s===""?null:typeof s=="object"?JSON.stringify(s):String(s);for(i=a!==null&&!n.has(a)?a:`#${o}`;n.has(i);)i=`#${i}`}return n.add(i),i})}const Mw=e=>e.replace(/~/g,"~0").replace(/\//g,"~1");function Ew(e,t="id"){return ng(e,`/${Mw(t)}`)}const Iw=e=>e.replace(/~/g,"~0").replace(/\./g,"~1"),rg=(e,t)=>`${e}\0${t}`;function up(e){let t=0;const n=[e];for(;n.length;){const r=n.pop();t++;for(const o of Object.values(r.slots??{}))n.push(o);for(const o of r.children)n.push(o)}return t}function Pw(e,t,n){const r=new Map,o=new Map,i=u=>{let d=o.get(u);return d===void 0&&o.set(u,d=up(u)),d};let s=0,a=up(e),l=null;const c=[{node:e,scope:""}];for(;c.length;){const u=c.pop();if("site"in u){if(l||u.index>=u.length||(s>=Lm?l={id:u.component,message:$n.templateItems}:a+u.size>Qi&&(l={id:u.component,message:$n.components}),l))continue;s++,a+=u.size,r.set(u.site,u.index+1),c.push({...u,index:u.index+1}),c.push({node:u.tpl,scope:`${u.path}/${u.index}`});continue}const{node:d,scope:p}=u,h=[];for(const g of Object.values(d.slots??{}))h.push({node:g,scope:p});for(const g of d.children)h.push({node:g,scope:p});const f=d.template,y=f?n(f.component):void 0;if(f&&y){const g=Hm(f.path,{base:p}),v=Va(t,g),m=Array.isArray(v)&&d.component==="List"&&d.children.length+v.length>zu;if(Array.isArray(v)&&!m){const b=rg(d.id,p);r.set(b,0),h.push({site:b,component:f.component,tpl:y,path:g,size:i(y),index:0,length:v.length})}}for(let g=h.length-1;g>=0;g--)c.push(h[g])}return{allowed:r,issue:l}}function Nu(e,t=0){const n=new Array(e.length+1);let r=0;for(let o=0;o<e.length;o++)n[o]=r,r+=e[o]+(o<e.length-1?t:0);return n[e.length]=r,n}function Dw(e,t){let n=0,r=0;for(const i of e)typeof i=="number"&&(n+=i,r++);const o=r?n/r:t;return e.map(i=>typeof i=="number"?i:o)}function wc(e,t,n){for(;e<t;){const r=e+t>>>1;n(r)?t=r:e=r+1}return e}function Rw(e,t,n,r,o=Qm,i){const s=e.length,a=i??Nu(e,t),l=a[s];let c=wc(0,s,h=>a[h]+e[h]>=n),u=wc(c,s,h=>a[h]>=n+r);if(c=Math.max(0,c-o),u=Math.min(s,u+o),u<=c)return{start:c,end:c,before:0,after:l,total:l};const d=a[c],p=l-(a[u-1]+e[u-1]);return{start:c,end:u,before:d,after:p,total:l}}function Fw(e,t,n,r,o,i="nearest",s=0,a){const l=Nu(e,t),c=l[e.length];if(n<0||n>=e.length)return o;const u=l[n],d=e[n];let p=o;return i==="start"?p=u-s:i==="end"?p=u+d-r:i==="center"?p=u+d/2-(r+s)/2:u-s<o?p=u-s:u+d>o+r&&(p=u+d-r),Math.max(0,Math.min(Math.max(0,c-r),p))}function zw(e,t){const n=[],r=t.startsWith("/")?t:`/${t}`;return e.forEach((o,i)=>{const s=Va(o,r),a=s==null?"":typeof s=="object"?JSON.stringify(s):String(s),l=n.at(-1);l&&l.value===a?l.count++:n.push({value:a,start:i,count:1})}),n}function Nw(e){const t=[];return e.forEach((n,r)=>{t.push({header:r});for(let o=0;o<n.count;o++)t.push({item:n.start+o})}),t}function Lw(e,t,n,r){const o=wc(0,n.length,c=>e[n[c]]>r)-1;if(o<0)return null;const i=n[o],s=n[o+1],a=t[i],l=s===void 0?r:Math.min(r,e[s]-a);return{row:i,offset:l}}const rn=on.zoomableImage,Xn=1e-6,vo=e=>{const t=Math.round(e*1e6)/1e6;return Object.is(t,-0)?0:t},Lu=e=>({scale:vo(e.scale),x:vo(e.x),y:vo(e.y)}),Ya=(e,t,n)=>Math.max(t,Math.min(n,e)),qn=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:0;function rr(e){return{iw:qn(e.natural.width),ih:qn(e.natural.height),vw:qn(e.viewport.width),vh:qn(e.viewport.height)}}function og(e){const t=qn(e.width),n=qn(e.height);return t>0&&n>0&&t/n<rn.tallAspect}function jw(e){const{iw:t,ih:n,vw:r,vh:o}=rr(e);return t===0||n===0||r===0||o===0?1:Math.min(1,r/t,o/n)}function $r(e){const t=jw(e),n=qn(e.maxScale)||rn.maxScale;return{min:t,max:Math.max(t,n)}}function Xa(e){const{iw:t,vw:n}=rr(e),{min:r,max:o}=$r(e),i=e.initial??"auto",s=i==="auto"?og(e.natural)?"fitWidth":"fit":i;let a=r;return s==="fitWidth"?a=t>0&&n>0?Math.min(1,n/t):1:s==="actual"&&(a=1),Ya(a,r,o)}function dp(e,t,n){return t<=n+Xn?(n-t)/2:Ya(e,n-t,0)}function Ho(e,t){const{iw:n,ih:r,vw:o,vh:i}=rr(t),{min:s,max:a}=$r(t),l=Ya(e.scale,s,a);return Lu({scale:l,x:dp(e.x,n*l,o),y:dp(e.y,r*l,i)})}function Za(e){const{iw:t,vw:n}=rr(e),r=Xa(e);return Ho({scale:r,x:(n-t*r)/2,y:0},e)}function Ja(e,t){return Math.abs(e.scale-Xa(t))<1e-4}function es(e,t,n,r){const{min:o,max:i}=$r(r),s=Ya(t,o,i),a=e.scale>0?s/e.scale:1;return Ho({scale:s,x:n.x-(n.x-e.x)*a,y:n.y-(n.y-e.y)*a},r)}function ju(e){const{vw:t,vh:n}=rr(e);return{x:t/2,y:n/2}}function Bw(e,t="pixel"){const n=t==="line"?e*rn.wheelLinePx:e;return Math.exp(-n*rn.wheelRate)}function Ww(e,t,n,r,o){return es(e,e.scale*Bw(t,n),r,o)}function Hw(e,t,n,r){return Ho({scale:e.scale,x:e.x-t,y:e.y-n},r)}function qw(e){const{min:t,max:n}=$r(e),r=Xa(e),o=[...rn.presets,t,r,n].filter(s=>s>=t-Xn&&s<=n+Xn),i=[];for(const s of o.sort((a,l)=>a-l))(i.length===0||s-i[i.length-1]>1e-4)&&i.push(vo(s));return i}function Uw(e,t,n){const r=qw(n);if(t>0)return r.find(o=>o>e+1e-4)??r[r.length-1];for(let o=r.length-1;o>=0;o--)if(r[o]<e-1e-4)return r[o];return r[0]}function kc(e,t,n){return es(e,Uw(e.scale,t,n),ju(n),n)}function Vw(e){const{max:t}=$r(e);return vo(Math.min(t,Math.max(1,rn.doubleTapFactor*Xa(e))))}function Kw(e,t,n){return Ja(e,n)?es(e,Vw(n),t,n):Za(n)}function Gw(e,t,n){return t==="+"||t==="="?kc(e,1,n):t==="-"||t==="−"||t==="_"?kc(e,-1,n):t==="0"?Za(n):t==="1"?es(e,1,ju(n),n):null}function aa(e,t){if(t<=0||e===0)return 0;const n=e<0?-1:1,r=Math.abs(e);return vo(n*(1-1/(r*rn.rubber/t+1))*t)}function la(e,t,n){const r=t<=n+Xn?(n-t)/2:n-t,o=t<=n+Xn?(n-t)/2:0;return e>o?o+aa(e-o,n):e<r?r+aa(e-r,n):e}function Yw(e,t,n,r){const{iw:o,ih:i,vw:s,vh:a}=rr(r);return Lu({scale:e.scale,x:la(e.x+t,o*e.scale,s),y:la(e.y+n,i*e.scale,a)})}function Xw(e,t,n,r){const{iw:o,ih:i,vw:s,vh:a}=rr(r),{min:l,max:c}=$r(r),u=e.scale*t;let d=u;u>c?d=c+aa(u-c,c):u<l&&(d=l+aa(u-l,l));const p=e.scale>0?d/e.scale:1;return Lu({scale:d,x:la(n.x-(n.x-e.x)*p,o*d,s),y:la(n.y-(n.y-e.y)*p,i*d,a)})}function Zw(e,t,n,r,o){const i=rn.momentumTauMs,s=i*(1-Math.exp(-Math.max(0,r)/i));return Ho({scale:e.scale,x:e.x+t*s,y:e.y+n*s},o)}function Jw(e,t,n){const r=Math.exp(-Math.max(0,n)/rn.momentumTauMs);return Math.hypot(e,t)*r>.01}function Qw(e,t){const{iw:n,ih:r,vw:o,vh:i}=rr(t);return{x:n*e.scale>o+Xn,y:r*e.scale>i+Xn}}function e1(e,t,n){const r={...n,viewport:t};if(Ja(e,r))return Za(n);const{vw:o,vh:i}=rr(n),s=qn(t.width)/2,a=qn(t.height)/2;return Ho({scale:e.scale,x:o/2-(s-e.x),y:i/2-(a-e.y)},n)}function Bu(e){return`${Math.round(e*100)}%`}function ig(e,t,n){const{min:r,max:o}=$r(t),i=Ja(e,t),s=[];for(const a of rn.menuPresets)a===0?s.push({scale:null,label:n,checked:i}):a>=r-Xn&&a<=o+Xn&&s.push({scale:a,label:Bu(a),checked:!i&&Math.abs(e.scale-a)<1e-4});return s}function t1(e,t){const{min:n,max:r}=$r(t);return{atMin:e.scale<=n+1e-4,atMax:e.scale>=r-1e-4}}const Un=1e-9,$o=(e,t,n)=>Math.max(t,Math.min(n,e)),Vt=e=>{const t=Math.round(e*1e6)/1e6;return Object.is(t,-0)?0:t};function Mi(e,t,n){const r=e?.[t]??{},o=100/Math.max(1,n),i=$o(typeof r.min=="number"&&Number.isFinite(r.min)?r.min:kw,0,o),s=$o(typeof r.max=="number"&&Number.isFinite(r.max)?r.max:100,i,100);return{min:i,max:s,collapsible:r.collapsible===!0}}function n1(e,t,n){if(t<=0)return[];const r=Array.from({length:t},(c,u)=>{const d=e?.[u];return typeof d=="number"&&Number.isFinite(d)&&d>=0?d:null}),o=r.filter(c=>c===null).length;let i;if(o===t)i=r.map(()=>100/t);else{const c=r.reduce((d,p)=>d+(p??0),0),u=Math.max(0,100-c);i=r.map(d=>d??u/o)}const s=i.reduce((c,u)=>c+u,0);i=s>Un?i.map(c=>c*100/s):i.map(()=>100/t);const a=i.map((c,u)=>Mi(n,u,t));i=i.map((c,u)=>a[u].collapsible&&c<=Un?0:$o(c,a[u].min,a[u].max));let l=100-i.reduce((c,u)=>c+u,0);for(let c=0;c<t&&Math.abs(l)>Un;c++){if(a[c].collapsible&&i[c]===0)continue;const u=l>0?a[c].max-i[c]:a[c].min-i[c],d=l>0?Math.min(l,u):Math.max(l,u);i[c]+=d,l-=d}return i.map(Vt)}function Rs(e,t,n,r){const o=[...e],i=t,s=t+1;if(i<0||s>=e.length||!Number.isFinite(n))return o.map(Vt);const a=Mi(r,i,e.length),l=Mi(r,s,e.length),c=Math.max(a.min-e[i],e[s]-l.max),u=Math.min(a.max-e[i],e[s]-l.min);let d=$o(n,Math.min(c,0),Math.max(u,0));return a.collapsible&&n<0&&e[i]>0&&e[i]+n<a.min/2&&e[s]+e[i]<=l.max+Un?d=-e[i]:l.collapsible&&n>0&&e[s]>0&&e[s]-n<l.min/2&&e[i]+e[s]<=a.max+Un?d=e[s]:a.collapsible&&e[i]===0?d=n>=a.min/2&&u>=a.min-Un?$o(n,a.min,u):0:l.collapsible&&e[s]===0&&(d=-n>=l.min/2&&-c>=l.min-Un?-$o(-n,l.min,-c):0),o[i]=e[i]+d,o[s]=e[s]-d,o.map(Vt)}function r1(e,t,n,r,o="ltr",i){const s=t,a=t+1;if(s<0||a>=e.length)return e.map(Vt);const l=Mi(i,s,e.length),c=Mi(i,a,e.length),u=r==="horizontal"&&o==="rtl"?-1:1,d=p=>Rs(e,t,p*ww,i);switch(n){case"ArrowRight":return r==="horizontal"?d(u):e.map(Vt);case"ArrowLeft":return r==="horizontal"?d(-u):e.map(Vt);case"ArrowDown":return r==="vertical"?d(1):e.map(Vt);case"ArrowUp":return r==="vertical"?d(-1):e.map(Vt);case"Home":return Rs(e,t,l.min-e[s],i);case"End":return Rs(e,t,l.max-e[s],i);case"Enter":{const p=[...e];if(l.collapsible){const h=e[s]>0?-e[s]:Math.min(l.min,e[a]-c.min);if(e[a]-h>c.max+Un||h===0)return e.map(Vt);p[s]+=h,p[a]-=h}else if(c.collapsible){const h=e[a]>0?e[a]:-Math.min(c.min,e[s]-l.min);if(e[s]+h>l.max+Un||h===0)return e.map(Vt);p[s]+=h,p[a]-=h}return p.map(Vt)}default:return e.map(Vt)}}function o1(e,t,n,r,o="ltr",i=1){const s=Math.max(1,t-Math.max(0,n-1)*i),a=r==="horizontal"&&o==="rtl"?-1:1;return Vt(e*100/s*a)}const i1=["Input","Textarea","NumberField","Checkbox","Radio","ChoiceTiles","Switch","Select","ChipInput","DatePicker","DateRangePicker","TimePicker","FileUpload","Slider"],s1=["records.","actions."];function a1(e){return s1.some(t=>e.startsWith(t))}function l1(e){if(!e||typeof e!="object")return!1;const t=e.functionCall?.call;return typeof t=="string"&&a1(t)}function c1(e){const t=Object.values(e.on??{});return t.length>0?t.some(l1):i1.includes(e.component)}function ca(e){let t=e.children;for(let i=0;i<e.children.length;i++){const s=ca(e.children[i]);s!==e.children[i]&&(t===e.children&&(t=e.children.slice()),t[i]=s)}let n=e.slots;if(e.slots)for(const[i,s]of Object.entries(e.slots)){const a=ca(s);a!==s&&(n={...n===e.slots?e.slots:n,[i]:a})}const r=c1(e)&&e.props.disabled!==!0;if(!r&&t===e.children&&n===e.slots)return e;const o={...e,children:t};return n&&(o.slots=n),r&&(o.props={...e.props,disabled:!0}),o}function u1(e){let t=null;for(const[n,r]of Object.entries(e)){const o=ca(r);o!==r&&((t??={...e})[n]=o)}return t??e}const ts=Object.fromEntries(Object.entries(on.animations).filter(([e])=>!e.startsWith("$"))),d1=Object.keys(ts),p1=e=>{const t=Math.round(e*1e4)/1e4;return Object.is(t,-0)?0:t},xr=e=>String(p1(e)),f1='@property --xui-a-opacity{syntax:"<number>";inherits:false;initial-value:1}@property --xui-band{syntax:"<number>";inherits:true;initial-value:1}';function h1(e){return ts[e]?.keyframes.some(t=>t.opacity!==void 0)??!1}function m1(e){const t=ts[e];if(!t)return"";const n=t.keyframes.map(r=>{const o=[];return r.opacity!==void 0&&o.push(`--xui-a-opacity:${xr(r.opacity)}`),(r.translateX!==void 0||r.translateY!==void 0)&&o.push(`translate:${xr(r.translateX??0)}px ${xr(r.translateY??0)}px`),r.rotate!==void 0&&o.push(`rotate:${xr(r.rotate)}deg`),r.scale!==void 0&&o.push(`scale:${xr(r.scale)}`),r.band!==void 0&&o.push(`--xui-band:${xr(r.band)}`),`${xr(r.offset*100)}%{${o.join(";")}}`});return`@keyframes xui-${e}{${n.join("")}}`}const sg=vr.default,g1=vr.languageAliases;function ag(e){const t=e.replace(/_/g,"-").split("-").filter(Boolean),n=(t[0]??"").toLowerCase(),r=g1[n]??n,o=t.slice(1).find(i=>/^[A-Za-z]{2}$|^\d{3}$/.test(i));return{language:r,region:o?o.toUpperCase():null}}const pp=(()=>{const e={};for(const[t,n]of Object.entries(vr.weekStart.regions))for(const r of n)e[r]=Number(t);return e})();function y1(e){const{language:t,region:n}=ag(e);return n??vr.likelyRegion[t]??null}function b1(e){const t=y1(e);return t!==null&&t in pp?pp[t]:vr.weekStart.default}function v1(e){return vr.rtl.includes(ag(e).language)?"rtl":"ltr"}const $1=vr.rtlMirroredIcons,x1={operators:"+-*/%=&|<>!?^~:@#",punctuation:"()[]{},.;"},w1={plain:{plain:!0},json:{strings:['"'],keywords:["true","false","null"],keyStrings:!0},js:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'","`"],multiline:["`"],types:"capitalized",keywords:["async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","if","import","in","instanceof","let","new","null","of","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]},ts:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'","`"],multiline:["`"],types:"capitalized",typeNames:["any","bigint","boolean","never","number","object","string","symbol","unknown"],keywords:["abstract","as","async","await","break","case","catch","class","const","continue","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","infer","instanceof","interface","is","keyof","let","namespace","new","null","of","private","protected","public","readonly","return","satisfies","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","yield"]},tsx:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'","`"],multiline:["`"],types:"capitalized",typeNames:["any","bigint","boolean","never","number","object","string","symbol","unknown"],keywords:["abstract","as","async","await","break","case","catch","class","const","continue","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","infer","instanceof","interface","is","keyof","let","namespace","new","null","of","private","protected","public","readonly","return","satisfies","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","yield"]},rust:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"'],multiline:['"'],types:"capitalized",typeNames:["bool","char","f32","f64","i8","i16","i32","i64","i128","isize","str","u8","u16","u32","u64","u128","usize"],keywords:["as","async","await","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","Self","static","struct","super","trait","true","type","unsafe","use","where","while"]},swift:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"'],types:"capitalized",keywords:["any","as","associatedtype","async","await","break","case","catch","class","continue","default","defer","do","else","enum","extension","fallthrough","false","for","func","guard","if","import","in","init","inout","internal","is","let","nil","private","protocol","public","repeat","rethrows","return","self","Self","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","var","where","while"]},kotlin:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'"],types:"capitalized",keywords:["as","break","by","catch","class","companion","constructor","continue","data","do","else","enum","false","finally","for","fun","if","import","in","init","interface","internal","is","lateinit","null","object","open","override","package","private","protected","public","return","sealed","super","suspend","this","throw","true","try","typealias","val","var","when","while"]},python:{lineComment:["#"],strings:['"',"'"],types:"capitalized",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","self","try","while","with","yield"]},bash:{lineComment:["#"],strings:['"',"'"],multiline:['"',"'"],keywords:["case","do","done","echo","elif","else","esac","exit","export","fi","for","function","if","in","local","readonly","return","then","until","while"]},html:{markup:!0,blockComment:[["<!--","-->"]],strings:['"',"'"],numbers:!1},css:{blockComment:[["/*","*/"]],strings:['"',"'"],identExtra:"-@",keyIdents:!0,operators:"+*/%=&|<>!?^~:#",keywords:["@container","@font-face","@import","@keyframes","@layer","@media","@supports","auto","important","inherit","initial","none","unset"]},sql:{lineComment:["--"],blockComment:[["/*","*/"]],strings:["'",'"'],caseInsensitive:!0,keywords:["all","alter","and","as","asc","between","by","case","create","default","delete","desc","distinct","drop","else","end","exists","foreign","from","group","having","in","index","inner","insert","into","is","join","key","left","like","limit","not","null","offset","on","or","order","outer","primary","references","returning","right","select","set","table","then","union","update","values","when","where","with"]},yaml:{lineComment:["#"],strings:['"',"'"],keyIdents:!0,identExtra:"-",keywords:["true","false","null","yes","no"]},markdown:{lineKinds:{"#":"keyword",">":"comment"},strings:["`"],numbers:!1,operators:"",punctuation:""},ansi:{ansi:!0,numbers:!1,operators:"",punctuation:"",lineKinds:{"$ ":"comment","> ":"comment","BUILD SUCCESSFUL":"success","BUILD FAILED":"error","PASS ":"success","FAIL ":"error",FAILED:"error","(pass)":"success","(fail)":"error","test result: ok":"success","test result: FAILED":"error","error:":"error","error[":"error","Error:":"error","warning:":"warning","✓":"success","✔":"success","✗":"error","✘":"error"}}},Sc={defaults:x1,languages:w1},Cc=Sc.languages,no=e=>e!==void 0&&e>="0"&&e<="9",ro=e=>e!==void 0&&(e>="a"&&e<="z"||e>="A"&&e<="Z"),ur=e=>e===" "||e===" ";function fp(e,t){let n=t;for(;ur(e[n]);)n++;return e[n]}function lg(e,t,n=!0){const r=[],o=e.length,i=t.operators??Sc.defaults.operators,s=t.punctuation??Sc.defaults.punctuation,a=t.identExtra??"",l=g=>ro(g)||g==="_"||g==="$"||g!==void 0&&a.includes(g),c=g=>l(g)||no(g),u=new Set(t.keywords??[]),d=new Set(t.typeNames??[]),p=(g,v)=>r.push({kind:g,text:v}),h=()=>{for(let g=r.length-1;g>=0;g--)if(r[g].text.trim()!=="")return r[g]};if(t.plain)return e?[{kind:"plain",text:e}]:[];let f=0,y=!1;for(;f<o;){const g=e[f];if(g===`