grab 0.0.90 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-DN7NT3CO.js +94 -0
- package/dist/chunk-W6BS7R5W.cjs +94 -0
- package/dist/cli.cjs +1 -1
- package/dist/{core-D6QsgQQN.d.cts → core-DLrSA8VT.d.cts} +13 -0
- package/dist/{core-D6QsgQQN.d.ts → core-DLrSA8VT.d.ts} +13 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +27 -27
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-AAPYQRSF.js +0 -94
- package/dist/chunk-WZQBGJJG.cjs +0 -94
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
var oa=(e,t)=>e===t;var zo=Symbol("solid-track"),Rn={equals:oa},jo=Yo,We=1,dn=2,Vo={owned:null,cleanups:null,context:null,owner:null},br={},le=null,A=null,Kt=null,he=null,Ie=null,De=null,On=0;function mt(e,t){let n=he,r=le,i=e.length===0,o=t===void 0?r:t,a=i?Vo:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>Fe(()=>xt(a)));le=a,he=null;try{return Ye(l,!0)}finally{he=n,le=r;}}function k(e,t){t=t?Object.assign({},Rn,t):Rn;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),Xo(n,i));return [Go.bind(n),r]}function Do(e,t,n){let r=Dn(e,t,true,We);Xt(r);}function be(e,t,n){let r=Dn(e,t,false,We);Xt(r);}function ce(e,t,n){jo=ca;let r=Dn(e,t,false,We);(r.user=true),De?De.push(r):Xt(r);}function ge(e,t,n){n=n?Object.assign({},Rn,n):Rn;let r=Dn(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Xt(r),Go.bind(r)}function ia(e){return e&&typeof e=="object"&&"then"in e}function $n(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=true,i=e,o=t||{});let a=null,l=br,g=false,p="initialValue"in o,S=typeof r=="function"&&ge(r),w=new Set,[x,I]=(o.storage||k)(o.initialValue),[j,K]=k(void 0),[_,F]=k(void 0,{equals:false}),[ne,v]=k(p?"ready":"unresolved");function O(h,m,f,b){return a===h&&(a=null,b!==void 0&&(p=true),(h===l||m===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(b,{value:m})),l=br,Z(m,f)),m}function Z(h,m){Ye(()=>{m===void 0&&I(()=>h),v(m!==void 0?"errored":p?"ready":"unresolved"),K(m);for(let f of w.keys())f.decrement();w.clear();},false);}function $(){let h=fn,m=x(),f=j();if(f!==void 0&&!a)throw f;return he&&!he.user&&h,m}function W(h=true){if(h!==false&&g)return;g=false;let m=S?S():r;if(m==null||m===false){O(a,Fe(x));return}let f,b=l!==br?l:Fe(()=>{try{return i(m,{value:x(),refetching:h})}catch(M){f=M;}});if(f!==void 0){O(a,void 0,Ln(f),m);return}else if(!ia(b))return O(a,b,void 0,m),b;return a=b,"v"in b?(b.s===1?O(a,b.v,void 0,m):O(a,void 0,Ln(b.v),m),b):(g=true,queueMicrotask(()=>g=false),Ye(()=>{v(p?"refreshing":"pending"),F();},false),b.then(M=>O(b,M,void 0,m),M=>O(b,void 0,Ln(M),m)))}Object.defineProperties($,{state:{get:()=>ne()},error:{get:()=>j()},loading:{get(){let h=ne();return h==="pending"||h==="refreshing"}},latest:{get(){if(!p)return $();let h=j();if(h&&!a)throw h;return x()}}});let D=le;return S?Do(()=>(D=le,W(false))):W(false),[$,{refetch:h=>Uo(D,()=>W(h)),mutate:I}]}function Fe(e){if(he===null)return e();let t=he;he=null;try{return Kt?Kt.untrack(e):e()}finally{he=t;}}function je(e,t,n){let r=Array.isArray(e),i;return a=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();let c=Fe(()=>t(l,i,a));return i=l,c}}function Rt(e){ce(()=>Fe(e));}function xe(e){return le===null||(le.cleanups===null?le.cleanups=[e]:le.cleanups.push(e)),e}function Uo(e,t){let n=le,r=he;le=e,he=null;try{return Ye(t,!0)}catch(i){Fn(i);}finally{le=n,he=r;}}var[du,Fo]=k(false);var fn;function Go(){let e=A;if(this.sources&&(this.state))if((this.state)===We)Xt(this);else {let t=Ie;Ie=null,Ye(()=>Mn(this),false),Ie=t;}if(he){let t=this.observers?this.observers.length:0;he.sources?(he.sources.push(this),he.sourceSlots.push(t)):(he.sources=[this],he.sourceSlots=[t]),this.observers?(this.observers.push(he),this.observerSlots.push(he.sources.length-1)):(this.observers=[he],this.observerSlots=[he.sources.length-1]);}return e&&A.sources.has(this)?this.tValue:this.value}function Xo(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&Ye(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],a=A&&A.running;a&&A.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?Ie.push(o):De.push(o),o.observers&&Wo(o)),a?o.tState=We:o.state=We);}if(Ie.length>1e6)throw Ie=[],new Error},false);}return t}function Xt(e){if(!e.fn)return;xt(e);let t=On;Bo(e,e.value,t);}function Bo(e,t,n){let r,i=le,o=he;he=le=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=We,e.owned&&e.owned.forEach(xt),e.owned=null)),e.updatedAt=n+1,Fn(a)}finally{he=o,le=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Xo(e,r):e.value=r,e.updatedAt=n);}function Dn(e,t,n,r=We,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:le,context:le?le.context:null,pure:n};if(le===null||le!==Vo&&(le.owned?le.owned.push(o):le.owned=[o]),Kt);return o}function mn(e){let t=A;if((e.state)===0)return;if((e.state)===dn)return Mn(e);if(e.suspense&&Fe(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<On);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===We)Xt(e);else if((e.state)===dn){let i=Ie;Ie=null,Ye(()=>Mn(e,n[0]),false),Ie=i;}}}function Ye(e,t){if(Ie)return e();let n=false;t||(Ie=[]),De?n=true:De=[],On++;try{let r=e();return aa(n),r}catch(r){n||(De=null),Ie=null,Fn(r);}}function aa(e){if(Ie&&(Yo(Ie),Ie=null),e)return;let n=De;De=null,n.length&&Ye(()=>jo(n),false);}function Yo(e){for(let t=0;t<e.length;t++)mn(e[t]);}function ca(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:mn(r);}for(t=0;t<n;t++)mn(e[t]);}function Mn(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===We?i!==t&&(!i.updatedAt||i.updatedAt<On)&&mn(i):o===dn&&Mn(i,t);}}}function Wo(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=dn,r.pure?Ie.push(r):De.push(r),r.observers&&Wo(r));}}function xt(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)xt(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)xt(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 Ln(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Fn(e,t=le){let r=Ln(e);throw r;}var wr=Symbol("fallback");function Pn(e){for(let t=0;t<e.length;t++)e[t]();}function ua(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return xe(()=>Pn(o)),()=>{let c=e()||[],u=c.length,g,p;return c[zo],Fe(()=>{let w,x,I,j,K,_,F,ne,v;if(u===0)a!==0&&(Pn(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[wr],i[0]=mt(O=>(o[0]=O,n.fallback())),a=1);else if(a===0){for(i=new Array(u),p=0;p<u;p++)r[p]=c[p],i[p]=mt(S);a=u;}else {for(I=new Array(u),j=new Array(u),l&&(K=new Array(u)),_=0,F=Math.min(a,u);_<F&&r[_]===c[_];_++);for(F=a-1,ne=u-1;F>=_&&ne>=_&&r[F]===c[ne];F--,ne--)I[ne]=i[F],j[ne]=o[F],l&&(K[ne]=l[F]);for(w=new Map,x=new Array(ne+1),p=ne;p>=_;p--)v=c[p],g=w.get(v),x[p]=g===void 0?-1:g,w.set(v,p);for(g=_;g<=F;g++)v=r[g],p=w.get(v),p!==void 0&&p!==-1?(I[p]=i[g],j[p]=o[g],l&&(K[p]=l[g]),p=x[p],w.set(v,p)):o[g]();for(p=_;p<u;p++)p in I?(i[p]=I[p],o[p]=j[p],l&&(l[p]=K[p],l[p](p))):i[p]=mt(S);i=i.slice(0,a=u),r=c.slice(0);}return i});function S(w){if(o[p]=w,l){let[x,I]=k(p);return l[p]=I,t(c[p],x)}return t(c[p])}}}function da(e,t,n={}){let r=[],i=[],o=[],a=[],l=0,c;return xe(()=>Pn(o)),()=>{let u=e()||[],g=u.length;return u[zo],Fe(()=>{if(g===0)return l!==0&&(Pn(o),o=[],r=[],i=[],l=0,a=[]),n.fallback&&(r=[wr],i[0]=mt(S=>(o[0]=S,n.fallback())),l=1),i;for(r[0]===wr&&(o[0](),o=[],r=[],i=[],l=0),c=0;c<g;c++)c<r.length&&r[c]!==u[c]?a[c](()=>u[c]):c>=r.length&&(i[c]=mt(p));for(;c<r.length;c++)o[c]();return l=a.length=o.length=g,r=u.slice(0),i=i.slice(0,l)});function p(S){o[c]=S;let[w,x]=k(u[c]);return a[c]=x,t(w,c)}}}function R(e,t){return Fe(()=>e(t||{}))}var ma=e=>`Stale read from <${e}>.`;function Bn(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ge(ua(()=>e.each,e.children,t||void 0))}function xr(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ge(da(()=>e.each,e.children,t||void 0))}function de(e){let t=e.keyed,n=ge(()=>e.when,void 0,void 0),r=t?n:ge(n,void 0,{equals:(i,o)=>!i==!o});return ge(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?Fe(()=>o(t?i:()=>{if(!Fe(r))throw ma("Show");return n()})):o}return e.fallback},void 0,void 0)}var ke=e=>ge(()=>e());function ha(e,t,n){let r=n.length,i=t.length,o=r,a=0,l=0,c=t[i-1].nextSibling,u=null;for(;a<i||l<o;){if(t[a]===n[l]){a++,l++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){let g=o<r?l?n[l-1].nextSibling:n[o-l]:c;for(;l<o;)e.insertBefore(n[l++],g);}else if(o===l)for(;a<i;)(!u||!u.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[l]===t[i-1]){let g=t[--i].nextSibling;e.insertBefore(n[l++],t[a++].nextSibling),e.insertBefore(n[--o],g),t[i]=n[o];}else {if(!u){u=new Map;let p=l;for(;p<o;)u.set(n[p],p++);}let g=u.get(t[a]);if(g!=null)if(l<g&&g<o){let p=a,S=1,w;for(;++p<i&&p<o&&!((w=u.get(t[p]))==null||w!==g+S);)S++;if(S>g-l){let x=t[a];for(;l<g;)e.insertBefore(n[l++],x);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var Zo="_$DX_DELEGATE";function Qo(e,t,n,r={}){let i;return mt(o=>{i=o,t===document?e():q(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function Q(e,t,n,r){let i,o=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},a=()=>(i||(i=o())).cloneNode(true);return a.cloneNode=a,a}function Wt(e,t=window.document){let n=t[Zo]||(t[Zo]=new Set);for(let r=0,i=e.length;r<i;r++){let o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,ba));}}function Te(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function qe(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function Mt(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function ei(e,t,n){if(!t)return n?Te(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function Ae(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function vt(e,t,n){return Fe(()=>e(t,n))}function q(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Hn(e,t,r,n);be(i=>Hn(e,t(),i,n),r);}function ba(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=c=>Object.defineProperty(e,"target",{configurable:true,value:c}),a=()=>{let c=t[n];if(c&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?c.call(t,u,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},l=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let c=e.composedPath();o(c[0]);for(let u=0;u<c.length-2&&(t=c[u],!!a());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===i)break}}else l();o(r);}function Hn(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let a=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===n))return n;if(l){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=Yt(e,n,r,c);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||a==="boolean"){n=Yt(e,n,r);}else {if(a==="function")return be(()=>{let c=t();for(;typeof c=="function";)c=c();n=Hn(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(vr(c,t,n,i))return be(()=>n=Hn(e,c,n,r,true)),()=>n;if(c.length===0){if(n=Yt(e,n,r),l)return n}else u?n.length===0?Jo(e,c,r):ha(e,n,c):(n&&Yt(e),Jo(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=Yt(e,n,r,t);Yt(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function vr(e,t,n,r){let i=false;for(let o=0,a=t.length;o<a;o++){let l=t[o],c=n&&n[e.length],u;if(!(l==null||l===true||l===false))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))i=vr(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=vr(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||i;}else e.push(l),i=true;else {let g=String(l);c&&c.nodeType===3&&c.data===g?e.push(c):e.push(document.createTextNode(g));}}return i}function Jo(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function Yt(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let a=t.length-1;a>=0;a--){let l=t[a];if(i!==l){let c=l.parentNode===e;!o&&!a?c?e.replaceChild(i,l):e.insertBefore(i,n):c&&l.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var ti=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
10
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-sm:.25rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-muted:#767676}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-mt-px{margin-top:-1px}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-\\[7px\\]{width:7px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-0{max-width:calc(var(--spacing)*0)}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-0{rotate:none}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-b-sm{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#7e0002\\]{border-color:#7e0002}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-black{border-color:var(--color-black)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-0\\.25{padding-inline:calc(var(--spacing)*.25)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.25{padding-block:calc(var(--spacing)*.25)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-\\[2px\\]{padding-block:2px}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-1{padding-right:calc(var(--spacing)*1)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pl-1\\.5{padding-left:calc(var(--spacing)*1.5)}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[10px\\]{font-size:10px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[13px\\]{font-size:13px}.leading-3{--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#71717a\\]{color:#71717a}.text-\\[\\#B3B3B3\\]{color:#b3b3b3}.text-\\[\\#B91C1C\\]{color:#b91c1c}.text-\\[\\#a1a1aa\\]{color:#a1a1aa}.text-\\[\\#c00002\\]{color:#c00002}.text-black{color:var(--color-black)}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-black\\/70{color:#000000b3}@supports (color:color-mix(in lab, red, red)){.text-black\\/70{color:color-mix(in oklab,var(--color-black)70%,transparent)}}.text-label-muted{color:var(--color-label-muted)}.text-white{color:var(--color-white)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.brightness-125{--tw-brightness:brightness(125%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter-\\[drop-shadow\\(0px_0px_4px_\\#51515180\\)\\]{filter:drop-shadow(0 0 4px #51515180)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#FEF2F2\\]:hover{background-color:#fef2f2}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;var wa=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],xa=e=>Array.isArray(e),va=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(n){let l=e.composedPath()[0];l instanceof HTMLElement&&(i=l.tagName,o=l.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return xa(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},st=e=>va(e,wa);var ni=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},ri=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(ni(r))return true;r=r.parentElement;}}if(e!==void 0&&t!==void 0){let r=document.elementsFromPoint(e,t);for(let i of r)if(ni(i))return true}return false};var qt="data-react-grab",oi=e=>{let t=document.querySelector(`[${qt}]`);if(t){let a=t.shadowRoot?.querySelector(`[${qt}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute(qt,"true"),n.style.zIndex="2147483646",n.style.position="fixed",n.style.top="0",n.style.left="0";let r=n.attachShadow({mode:"open"});{let a=document.createElement("style");a.textContent=e,r.appendChild(a);}let i=document.createElement("div");i.setAttribute(qt,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var Ca="https://react-grab.com",zn=(e,t)=>{let n=t?`&line=${t}`:"";return `${Ca}/open-file?url=${encodeURIComponent(e)}${n}`};var ii="0.0.91";var jn=["Meta","Control","Shift","Alt"],si='<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>';var Ct=(e,t,n)=>e+(t-e)*n;function ai(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ai(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function li(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ai(e))&&(r&&(r+=" "),r+=t);return r}var kr="-",Sa=e=>{let t=ka(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(kr);return l[0]===""&&l.length!==1&&l.shift(),di(l,t)||Ea(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},di=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?di(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(kr);return t.validators.find(({validator:a})=>a(o))?.classGroupId},ci=/^\[(.+)\]$/,Ea=e=>{if(ci.test(e)){let t=ci.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},ka=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Aa(Object.entries(e.classGroups),n).forEach(([o,a])=>{Er(a,r,o,t);}),r},Er=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:ui(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Ta(i)){Er(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{Er(a,ui(t,o),n,r);});});},ui=(e,t)=>{let n=e;return t.split(kr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},Ta=e=>e.isThemeGetter,Aa=(e,t)=>t?e.map(([n,r])=>{let i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,l])=>[t+a,l])):o);return [n,i]}):e,_a=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map);};return {get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a);}}},fi="!",Na=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=l=>{let c=[],u=0,g=0,p;for(let j=0;j<l.length;j++){let K=l[j];if(u===0){if(K===i&&(r||l.slice(j,j+o)===t)){c.push(l.slice(g,j)),g=j+o;continue}if(K==="/"){p=j;continue}}K==="["?u++:K==="]"&&u--;}let S=c.length===0?l:l.substring(g),w=S.startsWith(fi),x=w?S.substring(1):S,I=p&&p>g?p-g:void 0;return {modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:I}};return n?l=>n({className:l,parseClassName:a}):a},Ia=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r);}),t.push(...n.sort()),t},La=e=>({cache:_a(e.cacheSize),parseClassName:Na(e),...Sa(e)}),Ra=/\s+/,Ma=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(Ra),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:g,hasImportantModifier:p,baseClassName:S,maybePostfixModifierPosition:w}=n(u),x=!!w,I=r(x?S.substring(0,w):S);if(!I){if(!x){l=u+(l.length>0?" "+l:l);continue}if(I=r(S),!I){l=u+(l.length>0?" "+l:l);continue}x=false;}let j=Ia(g).join(":"),K=p?j+fi:j,_=K+I;if(o.includes(_))continue;o.push(_);let F=i(I,x);for(let ne=0;ne<F.length;++ne){let v=F[ne];o.push(K+v);}l=u+(l.length>0?" "+l:l);}return l};function Pa(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=mi(t))&&(r&&(r+=" "),r+=n);return r}var mi=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=mi(e[r]))&&(n&&(n+=" "),n+=t);return n};function Oa(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((g,p)=>p(g),e());return n=La(u),r=n.cache.get,i=n.cache.set,o=l,l(c)}function l(c){let u=r(c);if(u)return u;let g=Ma(c,n);return i(c,g),g}return function(){return o(Pa.apply(null,arguments))}}var ve=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},pi=/^\[(?:([a-z-]+):)?(.+)\]$/i,$a=/^\d+\/\d+$/,Da=new Set(["px","full","screen"]),Fa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ba=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ha=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,za=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ja=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pt=e=>Zt(e)||Da.has(e)||$a.test(e),St=e=>Jt(e,"length",qa),Zt=e=>!!e&&!Number.isNaN(Number(e)),Sr=e=>Jt(e,"number",Zt),pn=e=>!!e&&Number.isInteger(Number(e)),Va=e=>e.endsWith("%")&&Zt(e.slice(0,-1)),re=e=>pi.test(e),Et=e=>Fa.test(e),Ua=new Set(["length","size","percentage"]),Ka=e=>Jt(e,Ua,gi),Ga=e=>Jt(e,"position",gi),Xa=new Set(["image","url"]),Ya=e=>Jt(e,Xa,Ja),Wa=e=>Jt(e,"",Za),gn=()=>true,Jt=(e,t,n)=>{let r=pi.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},qa=e=>Ba.test(e)&&!Ha.test(e),gi=()=>false,Za=e=>za.test(e),Ja=e=>ja.test(e);var Qa=()=>{let e=ve("colors"),t=ve("spacing"),n=ve("blur"),r=ve("brightness"),i=ve("borderColor"),o=ve("borderRadius"),a=ve("borderSpacing"),l=ve("borderWidth"),c=ve("contrast"),u=ve("grayscale"),g=ve("hueRotate"),p=ve("invert"),S=ve("gap"),w=ve("gradientColorStops"),x=ve("gradientColorStopPositions"),I=ve("inset"),j=ve("margin"),K=ve("opacity"),_=ve("padding"),F=ve("saturate"),ne=ve("scale"),v=ve("sepia"),O=ve("skew"),Z=ve("space"),$=ve("translate"),W=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],h=()=>["auto",re,t],m=()=>[re,t],f=()=>["",pt,St],b=()=>["auto",Zt,re],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",re],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Zt,re];return {cacheSize:500,separator:":",theme:{colors:[gn],spacing:[pt,St],blur:["none","",Et,re],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Et,re],borderSpacing:m(),borderWidth:f(),contrast:Y(),grayscale:C(),hueRotate:Y(),invert:C(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[Va,St],inset:h(),margin:h(),opacity:Y(),padding:m(),saturate:Y(),scale:Y(),sepia:C(),skew:Y(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[Et]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),re]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",pn,re]}],basis:[{basis:h()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",pn,re]}],"grid-cols":[{"grid-cols":[gn]}],"col-start-end":[{col:["auto",{span:["full",pn,re]},re]}],"col-start":[{"col-start":b()}],"col-end":[{"col-end":b()}],"grid-rows":[{"grid-rows":[gn]}],"row-start-end":[{row:["auto",{span:[pn,re]},re]}],"row-start":[{"row-start":b()}],"row-end":[{"row-end":b()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[Et]},Et]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Et,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sr]}],"font-family":[{font:[gn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Zt,Sr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pt,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[K]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pt,St]}],"underline-offset":[{"underline-offset":["auto",pt,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[K]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),Ga]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ka]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ya]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[K]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[K]}],"divide-style":[{divide:G()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[pt,re]}],"outline-w":[{outline:[pt,St]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[K]}],"ring-offset-w":[{"ring-offset":[pt,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Et,Wa]}],"shadow-color":[{shadow:[gn]}],opacity:[{opacity:[K]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Et,re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[p]}],saturate:[{saturate:[F]}],sepia:[{sepia:[v]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[K]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ne]}],"scale-x":[{"scale-x":[ne]}],"scale-y":[{"scale-y":[ne]}],rotate:[{rotate:[pn,re]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pt,St,Sr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var hi=Oa(Qa);var Be=(...e)=>hi(li(e));var tl=Q("<div style=overflow:visible>"),Pt=e=>{let[t,n]=k(e.bounds.x),[r,i]=k(e.bounds.y),[o,a]=k(e.bounds.width),[l,c]=k(e.bounds.height),[u,g]=k(1),p=false,S=null,w=null,x=e.bounds,I=false,j=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,K=()=>{if(I)return;I=true;let _=()=>{let F=Ct(t(),x.x,j()),ne=Ct(r(),x.y,j()),v=Ct(o(),x.width,j()),O=Ct(l(),x.height,j());n(F),i(ne),a(v),c(O),Math.abs(F-x.x)<.5&&Math.abs(ne-x.y)<.5&&Math.abs(v-x.width)<.5&&Math.abs(O-x.height)<.5?(S=null,I=false):S=requestAnimationFrame(_);};S=requestAnimationFrame(_);};return ce(je(()=>e.bounds,_=>{if(x=_,!p){n(x.x),i(x.y),a(x.width),c(x.height),p=true;return}K();})),ce(()=>{e.variant==="grabbed"&&e.createdAt&&(w=window.setTimeout(()=>{g(0);},1500));}),xe(()=>{S!==null&&(cancelAnimationFrame(S),S=null),w!==null&&(window.clearTimeout(w),w=null),I=false;}),R(de,{get when(){return e.visible!==false},get children(){var _=tl();return be(F=>{var ne=Be("fixed box-border",e.variant==="drag"&&"pointer-events-none",e.variant!=="drag"&&"pointer-events-auto",e.variant==="grabbed"&&"z-2147483645",e.variant!=="grabbed"&&"z-2147483646",e.variant==="drag"&&"border border-solid border-grab-purple/40 bg-grab-purple/5 will-change-[transform,width,height] cursor-crosshair",e.variant==="selection"&&"border border-solid border-grab-purple/50 bg-grab-purple/8 transition-opacity duration-100 ease-out",e.variant==="grabbed"&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&!e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8"),v=`${r()}px`,O=`${t()}px`,Z=`${o()}px`,$=`${l()}px`,W=e.bounds.borderRadius,D=e.bounds.transform,h=e.isFading?0:u(),m=e.variant==="drag"?"layout paint size":void 0;return ne!==F.e&&qe(_,F.e=ne),v!==F.t&&Ae(_,"top",F.t=v),O!==F.a&&Ae(_,"left",F.a=O),Z!==F.o&&Ae(_,"width",F.o=Z),$!==F.i&&Ae(_,"height",F.i=$),W!==F.n&&Ae(_,"border-radius",F.n=W),D!==F.s&&Ae(_,"transform",F.s=D),h!==F.h&&Ae(_,"opacity",F.h=h),m!==F.r&&Ae(_,"contain",F.r=m),F},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),_}})};var bi=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=k(e.x()),[o,a]=k(e.y()),l=e.x(),c=e.y(),u=null,g=false,p=()=>{let w=Ct(r(),l,t),x=Ct(o(),c,t);i(w),a(x),Math.abs(w-l)<n&&Math.abs(x-c)<n?u=null:u=requestAnimationFrame(p);},S=()=>{u===null&&(u=requestAnimationFrame(p));};return ce(()=>{if(l=e.x(),c=e.y(),!g){i(l),a(c),g=true;return}S();}),xe(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var nl=Q('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),yi=e=>{let t,n=null,r=0,i=0,o=1,a=bi({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),l=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},c=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(a.x(),0),n.lineTo(a.x(),i),n.moveTo(0,a.y()),n.lineTo(r,a.y()),n.stroke());};return ce(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),xe(()=>{window.removeEventListener("resize",u);});}),ce(()=>{a.x(),a.y(),c();}),R(de,{get when(){return e.visible!==false},get children(){var u=nl(),g=t;return typeof g=="function"?vt(g,u):t=u,u}})};var rl=Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">'),wi=e=>{let t=()=>e.size??12;return (()=>{var n=rl();return be(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Te(n,"width",r.e=i),o!==r.t&&Te(n,"height",r.t=o),a!==r.a&&Te(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var ol=Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>'),Vn=e=>{let t=()=>e.size??12;return (()=>{var n=ol();return be(r=>{var i=t(),o=t()*19/22,a=e.class;return i!==r.e&&Te(n,"width",r.e=i),o!==r.t&&Te(n,"height",r.t=o),a!==r.a&&Te(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var il=Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>'),xi=e=>{let t=()=>e.size??12;return (()=>{var n=il();return be(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Te(n,"width",r.e=i),o!==r.t&&Te(n,"height",r.t=o),a!==r.a&&Te(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var sl=Q("<div><span>"),al=Q('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),ll=Q("<span class=text-black/50>"),cl=Q('<div role=button><div class="text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"><span class=text-black>'),ul=Q('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-sm -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">'),dl=Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[13px] leading-3.5 font-sans font-medium">Yes'),fl=Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?'),ml=Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Ok'),pl=Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[13px] leading-4 font-sans font-medium">'),gl=Q('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[13px] leading-3.5 font-sans font-medium">Undo'),hl=Q('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Reply'),bl=Q('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">'),yl=Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">'),wl=Q('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-sm bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">'),xl=Q('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">'),vl=Q('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>'),Cl=Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-sm gap-[3px]"><span class="text-[13px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">'),Sl=Q('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-label-muted text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[10px] leading-none font-medium text-black">Esc</span></div><span class="text-label-muted text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss'),El=Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5 pr-1"></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>'),kl=Q('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[10px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[10px] leading-3 italic truncate whitespace-nowrap">'),Tl=Q('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="type prompt"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105 ml-1">'),Al=Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5 pr-1">'),_l=Q('<div data-react-grab-ignore-events class="fixed font-sans text-[13px] antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-sm bg-white antialiased w-fit h-fit p-0">'),vi=8,Ci=4,Nl=400,Si=e=>{let[t,n]=k(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=sl(),a=o.firstChild;return Mt(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),q(a,()=>e.tagName),q(o,R(de,{get when(){return e.isClickable||e.forceShowIcon},get children(){return R(wi,{size:10,get class(){return Be("text-white transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),be(l=>{var c=Be("contain-layout flex items-center px-[3px] py-0 h-4 rounded-sm gap-0.5 [border-width:0.5px] border-solid border-black bg-black",e.shrink&&"shrink-0 w-fit",e.isClickable&&"cursor-pointer"),u=Be("text-white text-[12.5px] leading-3.5 shrink-0 w-fit h-fit font-medium");return c!==l.e&&qe(o,l.e=c),u!==l.t&&qe(a,l.t=u),l},{e:void 0,t:void 0}),o})()},Il=e=>{let t=()=>e.color??"white";return (()=>{var n=al();return be(r=>ei(n,{left:`${e.leftPx}px`,...e.position==="bottom"?{top:"0",transform:"translateX(-50%) translateY(-100%)"}:{bottom:"0",transform:"translateX(-50%) translateY(100%)"},...e.position==="bottom"?{"border-bottom":`8px solid ${t()}`}:{"border-top":`8px solid ${t()}`}},r)),n})()},Ei=e=>{let t=()=>e.hasAgent?e.isEditing?null:"Right click to ":"Click to ",n=()=>e.hasAgent?e.isEditing?"Editing":"Edit":"Copy";return (()=>{var r=cl(),i=r.firstChild,o=i.firstChild;return Mt(r,"click",e.onClick),q(i,R(de,{get when(){return t()},get children(){var a=ll();return q(a,t),a}}),o),q(o,n),be(()=>qe(r,Be("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-sm gap-[3px]",e.asButton&&"cursor-pointer",e.dimmed&&"opacity-50 hover:opacity-100 transition-opacity"))),r})()};var Qt=e=>(()=>{var t=ul();return q(t,()=>e.children),t})(),Ve=null,ki=e=>{let t=Symbol(),n=i=>{Ve===t&&(st(i)||(i.code==="Enter"||i.code==="Escape")&&(i.preventDefault(),i.stopPropagation(),e.onConfirm?.()));},r=()=>{Ve=t;};return Rt(()=>{Ve=t,window.addEventListener("keydown",n,{capture:true});}),xe(()=>{Ve===t&&(Ve=null),window.removeEventListener("keydown",n,{capture:true});}),(()=>{var i=fl();i.firstChild;return i.$$click=r,i.$$pointerdown=r,q(i,R(Qt,{get children(){var a=dl(),l=a.firstChild,c=l.nextSibling;c.firstChild;return Mt(l,"click",e.onCancel),Mt(c,"click",e.onConfirm),q(c,R(Vn,{size:10,class:"text-[#c00002]"}),null),a}}),null),i})()},Ti=50,Ll=e=>{let t=Symbol(),n=o=>{Ve===t&&(st(o)||(o.code==="Enter"?(o.preventDefault(),o.stopPropagation(),e.onRetry?.()):o.code==="Escape"&&(o.preventDefault(),o.stopPropagation(),e.onAcknowledge?.())));},r=()=>{Ve=t;},i=()=>{let o=e.error;return o.length<=Ti?o:`${o.slice(0,Ti)}\u2026`};return Rt(()=>{Ve=t,window.addEventListener("keydown",n,{capture:true});}),xe(()=>{Ve===t&&(Ve=null),window.removeEventListener("keydown",n,{capture:true});}),(()=>{var o=pl(),a=o.firstChild,l=a.firstChild;return o.$$click=r,o.$$pointerdown=r,q(l,i),q(o,R(Qt,{get children(){var c=ml(),u=c.firstChild;u.firstChild;var p=u.nextSibling;return Mt(u,"click",e.onRetry),q(u,R(xi,{size:10,class:"text-black/50"}),null),Mt(p,"click",e.onAcknowledge),c}}),null),be(()=>Te(l,"title",e.error)),o})()},Rl=e=>{let t=Symbol(),n=i=>{Ve===t&&(st(i)||(i.code==="Enter"||i.code==="Escape"?(i.preventDefault(),i.stopPropagation(),e.onDismiss?.()):i.code==="KeyZ"&&(i.metaKey||i.ctrlKey)&&e.supportsUndo&&e.onUndo?(i.preventDefault(),i.stopPropagation(),e.onUndo()):i.code==="KeyR"&&!i.metaKey&&!i.ctrlKey&&e.supportsFollowUp&&e.onReply&&(i.preventDefault(),i.stopPropagation(),e.onReply())));},r=()=>{Ve=t;};return Rt(()=>{Ve=t,window.addEventListener("keydown",n,{capture:true});}),xe(()=>{Ve===t&&(Ve=null),window.removeEventListener("keydown",n,{capture:true});}),(()=>{var i=wl(),o=i.firstChild,a=o.firstChild;return i.$$click=r,i.$$pointerdown=r,q(a,()=>e.statusText),q(i,R(de,{get when(){return e.onDismiss||e.onUndo||e.onReply},get children(){return R(Qt,{get children(){var l=yl();return q(l,R(de,{get when(){return ke(()=>!!e.supportsUndo)()&&e.onUndo},get children(){var c=gl();return c.$$click=()=>e.onUndo?.(),c}}),null),q(l,R(de,{get when(){return ke(()=>!!e.supportsFollowUp)()&&e.onReply},get children(){var c=hl();return c.$$click=()=>e.onReply?.(),c}}),null),q(l,R(de,{get when(){return e.onDismiss},get children(){var c=bl(),u=c.firstChild;return c.$$click=()=>e.onDismiss?.(),q(u,()=>e.dismissButtonText??"Ok"),q(c,R(Vn,{size:10,class:"text-black/50"}),null),c}}),null),l}})}}),null),i})()},en=e=>{let t,n,r=false,i=null,o=null,[a,l]=k(0),[c,u]=k(0),[g,p]=k("bottom"),[S,w]=k(0),[x,I]=k(false),[j,K]=k(false),_=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",F=()=>{if(t&&!r){let C=t.getBoundingClientRect();l(C.width),u(C.height);}},ne=C=>{r=C;},v=()=>{w(C=>C+1);},O,Z=()=>{I(false),O&&clearTimeout(O),O=setTimeout(()=>{I(true);},Nl);},$=C=>{st(C)||(C.code==="Enter"&&x()&&!e.isInputExpanded&&_()?(C.preventDefault(),C.stopPropagation(),C.stopImmediatePropagation(),e.onToggleExpand?.()):C.code==="KeyC"&&C.ctrlKey&&e.status==="copying"&&e.onAbort&&(C.preventDefault(),C.stopPropagation(),C.stopImmediatePropagation(),e.onAbort()));};Rt(()=>{F(),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),window.addEventListener("keydown",$,{capture:true}),Z();}),xe(()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v),window.removeEventListener("keydown",$,{capture:true}),O&&clearTimeout(O);}),ce(()=>{let C=`${e.tagName??""}:${e.componentName??""}`;C!==o&&(o=C,Z());}),ce(()=>{e.tagName,e.componentName,e.statusText,e.inputValue,e.hasAgent,e.isInputExpanded,e.isPendingDismiss,e.error,e.isPendingAbort,requestAnimationFrame(F);}),ce(()=>{e.visible&&requestAnimationFrame(F);}),ce(()=>{e.status,requestAnimationFrame(F);}),ce(()=>{e.isInputExpanded&&n&&setTimeout(()=>{n?.focus();},0);});let W=()=>{S();let C=e.selectionBounds,X=a(),Y=c(),P=X>0&&Y>0,se=C&&C.width>0&&C.height>0;if(!P||!se)return i??{left:-9999,top:-9999,arrowLeft:0};let V=window.innerWidth,U=window.innerHeight,ae=C.x+C.width/2,E=e.mouseX??ae,B=C.y+C.height,ee=C.y,J=E-X/2,me=B+vi+Ci;J+X>V-8&&(J=V-X-8),J<8&&(J=8);let Se=Y+vi+Ci;me+Y<=U-8?p("bottom"):(me=ee-Se,p("top")),me<8&&(me=8);let we=Math.max(12,Math.min(E-J,X-12)),ye={left:J,top:me,arrowLeft:we};return i=ye,K(true),ye},D=C=>{C.stopPropagation(),C.stopImmediatePropagation(),C.code==="Enter"&&!C.shiftKey?(C.preventDefault(),e.onSubmit?.()):C.code==="Escape"&&(C.preventDefault(),e.onConfirmDismiss?.());},h=C=>{let X=C.target;e.onInputChange?.(X.value);},m=()=>e.componentName&&e.tagName?`${e.componentName}.${e.tagName}`:e.componentName||e.tagName||"element",f=C=>{C.stopPropagation(),C.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},b=()=>!!(e.filePath&&e.onOpen),M=C=>{C.stopPropagation(),C.stopImmediatePropagation();},G=C=>{M(C),_()&&e.isInputExpanded&&!e.isPendingDismiss&&n&&n.focus();},oe=()=>{e.onSubmit?.();},ie=()=>j()&&(e.status==="copied"||e.status==="fading");return R(de,{get when(){return ke(()=>e.visible!==false)()&&(e.selectionBounds||ie())},get children(){var C=_l(),X=C.firstChild;C.$$click=M,C.$$mousedown=M,C.$$pointerdown=G;var Y=t;return typeof Y=="function"?vt(Y,C):t=C,q(C,R(Il,{get position(){return g()},get leftPx(){return W().arrowLeft}}),X),q(C,R(de,{get when(){return ke(()=>e.status==="copied"||e.status==="fading")()&&!e.error},get children(){return R(Rl,{get statusText(){return ke(()=>!!e.hasAgent)()?e.statusText??"Completed":"Copied"},get supportsUndo(){return e.supportsUndo},get supportsFollowUp(){return e.supportsFollowUp},get dismissButtonText(){return e.dismissButtonText},get onDismiss(){return e.onDismiss},get onUndo(){return e.onUndo},get onReply(){return e.onReply}})}}),X),q(X,R(de,{get when(){return ke(()=>e.status==="copying")()&&!e.isPendingAbort},get children(){var P=Cl(),se=P.firstChild,V=se.firstChild,U=V.firstChild;return q(U,()=>e.statusText??"Grabbing\u2026"),q(P,R(Qt,{get children(){var ae=vl(),E=ae.firstChild,B=n;return typeof B=="function"?vt(B,E):n=E,q(ae,R(de,{get when(){return e.onAbort},get children(){var ee=xl();return ee.$$click=J=>{J.stopPropagation(),e.onAbort?.();},ee.$$pointerup=J=>{J.stopPropagation(),e.onAbort?.();},ee.$$mousedown=J=>J.stopPropagation(),ee.$$pointerdown=J=>J.stopPropagation(),ee}}),null),be(()=>E.value=e.inputValue??""),ae}}),null),P}}),null),q(X,R(de,{get when(){return ke(()=>e.status==="copying")()&&e.isPendingAbort},get children(){return R(ki,{get onConfirm(){return e.onConfirmAbort},get onCancel(){return e.onCancelAbort}})}}),null),q(X,R(de,{get when(){return ke(()=>!!_())()&&!e.isInputExpanded},get children(){var P=El(),se=P.firstChild,V=se.nextSibling,U=V.firstChild;return q(se,R(Ei,{onClick:oe,shrink:true,get hasAgent(){return e.hasAgent}}),null),q(se,R(Si,{get tagName(){return m()},get isClickable(){return b()},onClick:f,onHoverChange:ne,shrink:true}),null),q(U,R(Qt,{get children(){return Sl()}})),be(ae=>{var E=x()?"1fr":"0fr",B=Be("overflow-hidden min-h-0",!x()&&"w-0");return E!==ae.e&&Ae(V,"grid-template-rows",ae.e=E),B!==ae.t&&qe(U,ae.t=B),ae},{e:void 0,t:void 0}),P}}),null),q(X,R(de,{get when(){return ke(()=>!!(_()&&e.isInputExpanded))()&&!e.isPendingDismiss},get children(){var P=Al(),se=P.firstChild;return q(se,R(Ei,{onClick:oe,dimmed:true,shrink:true,get hasAgent(){return e.hasAgent},isEditing:true}),null),q(se,R(Si,{get tagName(){return m()},get isClickable(){return b()},onClick:f,onHoverChange:ne,shrink:true,forceShowIcon:true}),null),q(P,R(Qt,{get children(){return [R(de,{get when(){return e.replyToPrompt},get children(){var V=kl(),U=V.firstChild,ae=U.nextSibling;return q(ae,()=>e.replyToPrompt),V}}),(()=>{var V=Tl(),U=V.firstChild,ae=U.nextSibling;U.$$keydown=D,U.$$input=h;var E=n;return typeof E=="function"?vt(E,U):n=U,ae.$$click=oe,q(ae,R(Vn,{size:10,class:"opacity-[0.99] text-black"})),be(()=>U.value=e.inputValue??""),V})()]}}),null),P}}),null),q(X,R(de,{get when(){return e.isPendingDismiss},get children(){return R(ki,{get onConfirm(){return e.onConfirmDismiss},get onCancel(){return e.onCancelDismiss}})}}),null),q(X,R(de,{get when(){return e.error},get children(){return R(Ll,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}}),null),be(P=>{var se=`${W().top}px`,V=`${W().left}px`,U=e.isInputExpanded||e.status==="copied"&&e.onDismiss||e.status==="copying"&&e.onAbort?"auto":"none",ae=e.status==="fading"?0:1,E=(e.status==="copied"||e.status==="fading")&&!e.error?"none":void 0;return se!==P.e&&Ae(C,"top",P.e=se),V!==P.t&&Ae(C,"left",P.t=V),U!==P.a&&Ae(C,"pointer-events",P.a=U),ae!==P.o&&Ae(C,"opacity",P.o=ae),E!==P.i&&Ae(X,"display",P.i=E),P},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),C}})};Wt(["click","pointerdown","mousedown","pointerup","input","keydown"]);var Pl=Q('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),Ai=e=>{let[t,n]=k(false),[r,i]=k(false);ce(()=>{let a=e.visible!==false;if(e.x,e.y,i(false),a){let l=setTimeout(()=>i(true),500);xe(()=>clearTimeout(l));}}),ce(()=>{if(!r()||!e.onEnter)return;let a=l=>{st(l)||!(l.code==="Enter"||l.code==="NumpadEnter")||(l.preventDefault(),l.stopPropagation(),l.stopImmediatePropagation(),e.onEnter?.());};window.addEventListener("keydown",a,true),xe(()=>{window.removeEventListener("keydown",a,true);});});let o=a=>{a.preventDefault(),a.stopPropagation(),e.onClick?.();};return R(de,{get when(){return r()},get children(){return [R(de,{get when(){return ke(()=>!!t())()&&e.elementBounds},get children(){return R(Pt,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=Pl(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,be(c=>{var u=`${e.x}px`,g=`${e.y}px`,p=Be("absolute left-0 top-0 -translate-x-1/2 -translate-y-1/2 bg-grab-pink cursor-pointer rounded-full transition-[width,height] duration-150",t()?"w-1 h-5.5 brightness-125":"w-0.5 h-5 animate-pulse");return u!==c.e&&Ae(a,"left",c.e=u),g!==c.t&&Ae(a,"top",c.t=g),p!==c.a&&qe(l,c.a=p),c},{e:void 0,t:void 0,a:void 0}),a})(),R(de,{get when(){return ke(()=>!!t())()&&e.elementBounds},get children(){return R(en,{get tagName(){return e.tagName},get componentName(){return e.componentName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};Wt(["click"]);var Ol=Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 18 18"fill=currentColor><path opacity=0.4 d="M7.65631 10.9565C7.31061 10.0014 7.54012 8.96635 8.25592 8.25195C8.74522 7.76615 9.38771 7.49951 10.0694 7.49951C10.3682 7.49951 10.6641 7.55171 10.9483 7.65381L16.0001 9.49902V4.75C16.0001 3.2334 14.7667 2 13.2501 2H4.75012C3.23352 2 2.00012 3.2334 2.00012 4.75V13.25C2.00012 14.7666 3.23352 16 4.75012 16H9.49962L7.65631 10.9565Z"></path><path d="M17.296 11.5694L10.4415 9.06545C10.0431 8.92235 9.61441 9.01658 9.31551 9.31338C9.01671 9.61168 8.92101 10.0429 9.06551 10.4413L11.5704 17.2948C11.7247 17.7191 12.128 18.0004 12.5772 18.0004C12.585 18.0004 12.5918 17.9999 12.5987 17.9999C13.0577 17.9906 13.4591 17.6913 13.5987 17.2543L14.4854 14.4857L17.2559 13.5985C17.6914 13.4589 17.9903 13.057 18 12.599C18.0097 12.141 17.7267 11.7276 17.296 11.5694Z">'),_i=e=>{let t=()=>e.size??14;return (()=>{var n=Ol();return be(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&Te(n,"width",r.e=i),o!==r.t&&Te(n,"height",r.t=o),a!==r.a&&Te(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var $l=Q('<svg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2.5 stroke-linecap=round stroke-linejoin=round><path d="m18 15-6-6-6 6">'),Dl=Q('<div data-react-grab-ignore-events style=z-index:2147483647><div><div><button data-react-grab-ignore-events class="contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all hover:scale-105"></button></div><button data-react-grab-ignore-events class="contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all hover:scale-105">'),Ce=16,Ii="react-grab-dock-state",Fl=e=>(()=>{var t=$l();return be(()=>Te(t,"class",e.class)),t})(),Bl=()=>{try{let e=localStorage.getItem(Ii);if(e)return JSON.parse(e)}catch{}return null},Tr=e=>{try{localStorage.setItem(Ii,JSON.stringify(e));}catch{}},Ni=500,Li=e=>{let t,[n,r]=k(false),[i,o]=k(false),[a,l]=k(false),[c,u]=k(false),[g,p]=k(false),[S,w]=k("bottom"),[x,I]=k(.5),[j,K]=k({x:0,y:0}),[_,F]=k({x:0,y:0}),[ne,v]=k({x:0,y:0}),[O,Z]=k(false),$={x:0,y:0,time:0},W={x:0,y:0},D=5,h=(E,B,ee,J)=>{let me=window.innerWidth,Se=window.innerHeight;if(E==="top"||E==="bottom"){let Le=me-ee-Ce*2,He=Ce+Le*B,fe=E==="top"?Ce:Se-J-Ce;return {x:He,y:fe}}let te=Se-J-Ce*2,we=Ce+te*B;return {x:E==="left"?Ce:me-ee-Ce,y:we}},m=(E,B,ee,J,me)=>{let Se=window.innerWidth,te=window.innerHeight;if(E==="top"||E==="bottom"){let ye=Se-J-Ce*2;return ye<=0?.5:Math.max(0,Math.min(1,(B-Ce)/ye))}let we=te-me-Ce*2;return we<=0?.5:Math.max(0,Math.min(1,(ee-Ce)/we))},f=()=>{let E=t?.getBoundingClientRect();if(!E)return;let B=h(S(),x(),E.width,E.height);K(B);},b=false,M=E=>{if(E.stopPropagation(),E.stopImmediatePropagation(),b){b=false;return}e.onToggle?.();},G=E=>{if(E.stopPropagation(),E.stopImmediatePropagation(),b){b=false;return}o(B=>{let ee=!B;return Tr({edge:S(),ratio:x(),collapsed:ee}),ee});},oe=(E,B,ee,J,me,Se)=>{let te=window.innerWidth,we=window.innerHeight,ye=150,Le=E+me*ye,He=B+Se*ye,fe=He+J/2,Ue=we-He-J/2,Bt=Le+ee/2,ze=te-Le-ee/2,rn=Math.min(fe,Ue,Bt,ze);return rn===fe?{edge:"top",x:Math.max(Ce,Math.min(Le,te-ee-Ce)),y:Ce}:rn===Bt?{edge:"left",x:Ce,y:Math.max(Ce,Math.min(He,we-J-Ce))}:rn===ze?{edge:"right",x:te-ee-Ce,y:Math.max(Ce,Math.min(He,we-J-Ce))}:{edge:"bottom",x:Math.max(Ce,Math.min(Le,te-ee-Ce)),y:we-J-Ce}},ie=E=>{if(i())return;let B=t?.getBoundingClientRect();B&&(W={x:E.clientX,y:E.clientY},F({x:E.clientX-B.left,y:E.clientY-B.top}),l(true),Z(false),v({x:0,y:0}),$={x:E.clientX,y:E.clientY,time:performance.now()},E.target.setPointerCapture(E.pointerId));},C=E=>{if(!a()||(Math.sqrt(Math.pow(E.clientX-W.x,2)+Math.pow(E.clientY-W.y,2))>D&&Z(true),!O()))return;let ee=performance.now(),J=ee-$.time;if(J>0){let te=(E.clientX-$.x)/J,we=(E.clientY-$.y)/J;v({x:te,y:we});}$={x:E.clientX,y:E.clientY,time:ee};let me=E.clientX-_().x,Se=E.clientY-_().y;K({x:me,y:Se});},X=()=>{if(!a())return;let E=O();if(l(false),!E)return;b=true;let B=t?.getBoundingClientRect();if(!B)return;let ee=ne(),J=oe(j().x,j().y,B.width,B.height,ee.x,ee.y),me=m(J.edge,J.x,J.y,B.width,B.height);w(J.edge),I(me),u(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>{K({x:J.x,y:J.y}),Tr({edge:J.edge,ratio:me,collapsed:i()}),setTimeout(()=>{u(false);},300);});});},Y=14,P=()=>{let E=S(),B=j();return E==="top"?{x:B.x,y:0}:E==="bottom"?{x:B.x,y:window.innerHeight-Y}:E==="left"?{x:0,y:B.y}:E==="right"?{x:window.innerWidth-Y,y:B.y}:B},se=()=>{let E=S(),B=i();return E==="top"?B?"rotate-180":"rotate-0":E==="bottom"?B?"rotate-0":"rotate-180":E==="left"?B?"rotate-90":"-rotate-90":E==="right"?B?"-rotate-90":"rotate-90":"rotate-0"},V,U=()=>{a()||(p(true),r(false),f(),V&&clearTimeout(V),V=setTimeout(()=>{r(true),p(false);},Ni));};Rt(()=>{let E=Bl(),B=t?.getBoundingClientRect();if(E&&B){w(E.edge),I(E.ratio),o(E.collapsed);let J=h(E.edge,E.ratio,B.width,B.height);K(J);}else B&&(K({x:(window.innerWidth-B.width)/2,y:window.innerHeight-B.height-Ce}),I(.5));window.addEventListener("resize",U);let ee=setTimeout(()=>{r(true);},Ni);xe(()=>{clearTimeout(ee);});}),xe(()=>{window.removeEventListener("resize",U),V&&clearTimeout(V);});let ae=()=>i()?P():j();return (()=>{var E=Dl(),B=E.firstChild,ee=B.firstChild,J=ee.firstChild,me=ee.nextSibling;E.$$pointerup=X,E.$$pointermove=C,E.$$pointerdown=ie;var Se=t;return typeof Se=="function"?vt(Se,E):t=E,B.$$click=te=>{i()&&(te.stopPropagation(),o(false),Tr({edge:S(),ratio:x(),collapsed:false}));},J.$$click=M,q(J,R(_i,{size:14,get class(){return Be("transition-colors",e.isActive?"text-black":"text-black/70")}})),me.$$click=G,q(me,R(Fl,{get class(){return Be("text-[#B3B3B3] transition-transform duration-100",se())}})),be(te=>{var we=Be("fixed left-0 top-0 font-sans text-[13px] antialiased filter-[drop-shadow(0px_0px_4px_#51515180)] select-none",i()?"cursor-pointer":a()?"cursor-grabbing":"cursor-grab",g()?"":c()?"transition-[transform,opacity] duration-300 ease-out":"transition-opacity duration-300 ease-out",n()?"opacity-100":"opacity-0 pointer-events-none"),ye=`translate(${ae().x}px, ${ae().y}px)`,Le=Be("[font-synthesis:none] contain-layout flex items-center justify-center rounded-sm bg-white antialiased transition-all duration-100 ease-out",i()?"":"gap-1.5 px-2 py-1.5",i()&&S()==="top"&&"rounded-t-none",i()&&S()==="bottom"&&"rounded-b-none",i()&&S()==="left"&&"rounded-l-none",i()&&S()==="right"&&"rounded-r-none",i()&&(S()==="top"||S()==="bottom")&&"px-2 py-0.25",i()&&(S()==="left"||S()==="right")&&"px-0.25 py-2"),He=Be("flex items-center gap-1.5 transition-all duration-100 ease-out overflow-hidden",i()?"max-w-0 opacity-0":"max-w-[200px] opacity-100");return we!==te.e&&qe(E,te.e=we),ye!==te.t&&Ae(E,"transform",te.t=ye),Le!==te.a&&qe(B,te.a=Le),He!==te.o&&qe(ee,te.o=He),te},{e:void 0,t:void 0,a:void 0,o:void 0}),E})()};Wt(["pointerdown","pointermove","pointerup","click"]);var Ri=e=>{let t=ge(()=>e.agentSessions?Array.from(e.agentSessions.values()):[]);return [R(de,{get when(){return ke(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return R(Pt,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),R(de,{get when(){return ke(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return R(yi,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),R(de,{get when(){return ke(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return R(Pt,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),R(Bn,{get each(){return e.grabbedBoxes??[]},children:n=>R(Pt,{variant:"grabbed",get bounds(){return n.bounds},get createdAt(){return n.createdAt}})}),R(xr,{get each(){return t()},children:n=>[R(de,{get when(){return n().selectionBounds},get children(){return R(Pt,{variant:"processing",get bounds(){return n().selectionBounds},visible:true,get isCompleted(){return !n().isStreaming}})}}),R(en,{get tagName(){return n().tagName},get componentName(){return n().componentName},get selectionBounds(){return n().selectionBounds},get mouseX(){return n().position.x},visible:true,hasAgent:true,isAgentConnected:true,get status(){return n().isStreaming?"copying":"copied"},get statusText(){return n().lastStatus||"Thinking\u2026"},get inputValue(){return n().context.prompt},get supportsUndo(){return e.supportsUndo},get supportsFollowUp(){return e.supportsFollowUp},get dismissButtonText(){return e.dismissButtonText},onAbort:()=>e.onAbortSession?.(n().id),get onDismiss(){return n().isStreaming?void 0:()=>e.onDismissSession?.(n().id)},get onUndo(){return n().isStreaming?void 0:()=>e.onUndoSession?.(n().id)},get onReply(){return n().isStreaming?void 0:()=>e.onReplySession?.(n().id)},get error(){return n().error},onAcknowledgeError:()=>e.onAcknowledgeSessionError?.(n().id),onRetry:()=>e.onRetrySession?.(n().id),get isPendingAbort(){return ke(()=>!!n().isStreaming)()?e.isPendingAgentAbort:false},get onConfirmAbort(){return e.onConfirmAgentAbort},get onCancelAbort(){return e.onCancelAgentAbort}})]}),R(de,{get when(){return ke(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return R(en,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isInputExpanded(){return e.isInputExpanded},get inputValue(){return e.inputValue},get replyToPrompt(){return e.replyToPrompt},get hasAgent(){return e.hasAgent},get isAgentConnected(){return e.isAgentConnected},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get lineNumber(){return e.selectionLineNumber},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel},get onToggleExpand(){return e.onToggleExpand},get isPendingDismiss(){return e.isPendingDismiss},get onConfirmDismiss(){return e.onConfirmDismiss},get onCancelDismiss(){return e.onCancelDismiss},onOpen:()=>{if(e.selectionFilePath){let n=zn(e.selectionFilePath,e.selectionLineNumber);window.open(n,"_blank");}}})}}),R(Bn,{get each(){return e.labelInstances??[]},children:n=>R(en,{get tagName(){return n.tagName},get componentName(){return n.componentName},get selectionBounds(){return n.bounds},get mouseX(){return n.mouseX},visible:true,get status(){return n.status}})}),R(de,{get when(){return ke(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return R(Ai,{get x(){return e.nativeSelectionCursorX},get y(){return e.nativeSelectionCursorY},get tagName(){return e.nativeSelectionTagName},get componentName(){return e.nativeSelectionComponentName},get elementBounds(){return e.nativeSelectionBounds},get visible(){return e.nativeSelectionCursorVisible},get onClick(){return e.onNativeSelectionCopy},get onEnter(){return e.onNativeSelectionEnter}})}}),R(de,{get when(){return e.dockVisible!==false},get children(){return R(Li,{get isActive(){return e.isActive},get onToggle(){return e.onToggleActive}})}})]};var Oi="0.5.26",Gn=`bippy-${Oi}`,Mi=Object.defineProperty,Hl=Object.prototype.hasOwnProperty,hn=()=>{},$i=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},Xn=(e=gt())=>"getFiberRoots"in e,Di=false,Pi,bn=(e=gt())=>Di?true:(typeof e.inject=="function"&&(Pi=e.inject.toString()),!!Pi?.includes("(injected)")),Un=new Set,$t=new Set,Fi=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:Gn,checkDCE:$i,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),$t.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,Un.forEach(a=>a())),o},on:hn,onCommitFiberRoot:hn,onCommitFiberUnmount:hn,onPostCommitFiberRoot:hn,renderers:t,supportsFiber:true,supportsFlight:true};try{Mi(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(a){if(a&&typeof a=="object"){let l=r.renderers;r=a,l.size>0&&(l.forEach((c,u)=>{$t.add(c),a.renderers.set(u,c);}),Kn(e));}}});let i=window.hasOwnProperty,o=!1;Mi(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!o&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,a)},writable:!0});}catch{Kn(e);}return r},Kn=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=$i,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=Gn,t._instrumentationIsActive=!1;let n=Xn(t);if(n||(t.on=hn),t.renderers.size){t._instrumentationIsActive=!0,Un.forEach(o=>o());return}let r=t.inject,i=bn(t);i&&!n&&(Di=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return $t.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,Un.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||bn())&&e?.();}catch{}},Ar=()=>Hl.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),gt=e=>Ar()?(Kn(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Fi(e),Bi=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),_r=()=>{try{Bi()&>();}catch{}};var Nr=0,Ir=1;var Lr=5;var Rr=11,Mr=13;var Pr=15,Or=16;var $r=19;var Dr=26,Fr=27,Br=28,Hr=30;function zr(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let o=n?e.return:e.child;for(;o;){let a=await Vr(o,t,n);if(a)return a;o=n?null:o.sibling;}return null})();if(r===true)return e;let i=n?e.return:e.child;for(;i;){let o=jr(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var jr=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=jr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},Vr=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await Vr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var Ur=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?Ur(t.type||t.render):null},yn=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Ur(t);return r&&(r.displayName||r.name)||null};var wn=()=>!!gt()._instrumentationIsActive||Xn()||bn();var Kr=e=>{let t=gt();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null};var Wl=Object.create,Xi=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Zl=Object.getOwnPropertyNames,Jl=Object.getPrototypeOf,Ql=Object.prototype.hasOwnProperty,ec=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Zl(t),o=0,a=i.length,l;o<a;o++)l=i[o],!Ql.call(e,l)&&l!==n&&Xi(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=ql(t,l))||r.enumerable});return e},nc=(e,t,n)=>(n=e==null?{}:Wl(Jl(e)),tc(Xi(n,"default",{value:e,enumerable:true}),e)),Hi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,rc=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],zi="about://React/",oc=["<anonymous>","eval",""],ic=/\.(jsx|tsx|ts|js)$/,sc=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,ac=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,Yi="(at Server)",lc=/(^|@)\S+:\d+/,Wi=/^\s*at .*(\S+:\d+|\(native\))/m,cc=/^(eval@)?(\[native code\])?$/;var qi=(e,t)=>{{let n=e.split(`
|
|
11
|
+
`),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=ji(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({functionName:o,source:i});}else if(i.match(lc)){let o=Vi(i,void 0)[0];o&&r.push(o);}return Yr(r,t)}},Zi=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},Yr=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var ji=(e,t)=>Yr(e.split(`
|
|
12
|
+
`).filter(r=>!!r.match(Wi)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),a=o.match(/ (\(.+\)$)/);o=a?o.replace(a[0],""):o;let l=Zi(a?a[1]:o),c=a&&o||void 0,u=["eval","<anonymous>"].includes(l[0])?void 0:l[0];return {functionName:c,fileName:u,lineNumber:l[1]?+l[1]:void 0,columnNumber:l[2]?+l[2]:void 0,source:i}});var Vi=(e,t)=>Yr(e.split(`
|
|
13
|
+
`).filter(r=>!r.match(cc)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {functionName:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,a=i.match(o),l=a&&a[1]?a[1]:void 0,c=Zi(i.replace(o,""));return {functionName:l,fileName:c[0],lineNumber:c[1]?+c[1]:void 0,columnNumber:c[2]?+c[2]:void 0,source:i}}});var uc=ec((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let h=0;h<o.length;h++){let m=o.charCodeAt(h);a[h]=m,l[m]=h;}function c(h,m){let f=0,b=0,M=0;do{let oe=h.next();M=l[oe],f|=(M&31)<<b,b+=5;}while(M&32);let G=f&1;return f>>>=1,G&&(f=-2147483648|-f),m+f}function u(h,m,f){let b=m-f;b=b<0?-b<<1|1:b<<1;do{let M=b&31;b>>>=5,b>0&&(M|=32),h.write(a[M]);}while(b>0);return m}function g(h,m){return h.pos>=m?false:h.peek()!==r}let p=1024*16,S=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(h){return Buffer.from(h.buffer,h.byteOffset,h.byteLength).toString()}}:{decode(h){let m="";for(let f=0;f<h.length;f++)m+=String.fromCharCode(h[f]);return m}};class w{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(p);}write(m){let{buffer:f}=this;f[this.pos++]=m,this.pos===p&&(this.out+=S.decode(f),this.pos=0);}flush(){let{buffer:m,out:f,pos:b}=this;return b>0?f+S.decode(m.subarray(0,b)):f}}class x{constructor(m){this.pos=0,this.buffer=m;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(m){let{buffer:f,pos:b}=this,M=f.indexOf(m,b);return M===-1?f.length:M}}let I=[];function j(h){let{length:m}=h,f=new x(h),b=[],M=[],G=0;for(;f.pos<m;f.pos++){G=c(f,G);let oe=c(f,0);if(!g(f,m)){let se=M.pop();se[2]=G,se[3]=oe;continue}let ie=c(f,0),C=c(f,0),X=C&1,Y=X?[G,oe,0,0,ie,c(f,0)]:[G,oe,0,0,ie],P=I;if(g(f,m)){P=[];do{let se=c(f,0);P.push(se);}while(g(f,m))}Y.vars=P,b.push(Y),M.push(Y);}return b}function K(h){let m=new w;for(let f=0;f<h.length;)f=_(h,f,m,[0]);return m.flush()}function _(h,m,f,b){let M=h[m],{0:G,1:oe,2:ie,3:C,4:X,vars:Y}=M;m>0&&f.write(r),b[0]=u(f,G,b[0]),u(f,oe,0),u(f,X,0);let P=M.length===6?1:0;u(f,P,0),M.length===6&&u(f,M[5],0);for(let se of Y)u(f,se,0);for(m++;m<h.length;){let se=h[m],{0:V,1:U}=se;if(V>ie||V===ie&&U>=C)break;m=_(h,m,f,b);}return f.write(r),b[0]=u(f,ie,b[0]),u(f,C,0),m}function F(h){let{length:m}=h,f=new x(h),b=[],M=[],G=0,oe=0,ie=0,C=0,X=0,Y=0,P=0,se=0;do{let V=f.indexOf(";"),U=0;for(;f.pos<V;f.pos++){if(U=c(f,U),!g(f,V)){let te=M.pop();te[2]=G,te[3]=U;continue}let ae=c(f,0),E=ae&1,B=ae&2,ee=ae&4,J=null,me=I,Se;if(E){let te=c(f,oe);ie=c(f,oe===te?ie:0),oe=te,Se=[G,U,0,0,te,ie];}else Se=[G,U,0,0];if(Se.isScope=!!ee,B){let te=C,we=X;C=c(f,C);let ye=te===C;X=c(f,ye?X:0),Y=c(f,ye&&we===X?Y:0),J=[C,X,Y];}if(Se.callsite=J,g(f,V)){me=[];do{P=G,se=U;let te=c(f,0),we;if(te<-1){we=[[c(f,0)]];for(let ye=-1;ye>te;ye--){let Le=P;P=c(f,P),se=c(f,P===Le?se:0);let He=c(f,0);we.push([He,P,se]);}}else we=[[te]];me.push(we);}while(g(f,V))}Se.bindings=me,b.push(Se),M.push(Se);}G++,f.pos=V+1;}while(f.pos<m);return b}function ne(h){if(h.length===0)return "";let m=new w;for(let f=0;f<h.length;)f=v(h,f,m,[0,0,0,0,0,0,0]);return m.flush()}function v(h,m,f,b){let M=h[m],{0:G,1:oe,2:ie,3:C,isScope:X,callsite:Y,bindings:P}=M;b[0]<G?(O(f,b[0],G),b[0]=G,b[1]=0):m>0&&f.write(r),b[1]=u(f,M[1],b[1]);let se=(M.length===6?1:0)|(Y?2:0)|(X?4:0);if(u(f,se,0),M.length===6){let{4:V,5:U}=M;V!==b[2]&&(b[3]=0),b[2]=u(f,V,b[2]),b[3]=u(f,U,b[3]);}if(Y){let{0:V,1:U,2:ae}=M.callsite;V===b[4]?U!==b[5]&&(b[6]=0):(b[5]=0,b[6]=0),b[4]=u(f,V,b[4]),b[5]=u(f,U,b[5]),b[6]=u(f,ae,b[6]);}if(P)for(let V of P){V.length>1&&u(f,-V.length,0);let U=V[0][0];u(f,U,0);let ae=G,E=oe;for(let B=1;B<V.length;B++){let ee=V[B];ae=u(f,ee[1],ae),E=u(f,ee[2],E),u(f,ee[0],0);}}for(m++;m<h.length;){let V=h[m],{0:U,1:ae}=V;if(U>ie||U===ie&&ae>=C)break;m=v(h,m,f,b);}return b[0]<ie?(O(f,b[0],ie),b[0]=ie,b[1]=0):f.write(r),b[1]=u(f,C,b[1]),m}function O(h,m,f){do h.write(i);while(++m<f)}function Z(h){let{length:m}=h,f=new x(h),b=[],M=0,G=0,oe=0,ie=0,C=0;do{let X=f.indexOf(";"),Y=[],P=true,se=0;for(M=0;f.pos<X;){let V;M=c(f,M),M<se&&(P=false),se=M,g(f,X)?(G=c(f,G),oe=c(f,oe),ie=c(f,ie),g(f,X)?(C=c(f,C),V=[M,G,oe,ie,C]):V=[M,G,oe,ie]):V=[M],Y.push(V),f.pos++;}P||$(Y),b.push(Y),f.pos=X+1;}while(f.pos<=m);return b}function $(h){h.sort(W);}function W(h,m){return h[0]-m[0]}function D(h){let m=new w,f=0,b=0,M=0,G=0;for(let oe=0;oe<h.length;oe++){let ie=h[oe];if(oe>0&&m.write(i),ie.length===0)continue;let C=0;for(let X=0;X<ie.length;X++){let Y=ie[X];X>0&&m.write(r),C=u(m,Y[0],C),Y.length!==1&&(f=u(m,Y[1],f),b=u(m,Y[2],b),M=u(m,Y[3],M),Y.length!==4&&(G=u(m,Y[4],G)));}}return m.flush()}n.decode=Z,n.decodeGeneratedRanges=F,n.decodeOriginalScopes=j,n.encode=D,n.encodeGeneratedRanges=ne,n.encodeOriginalScopes=K,Object.defineProperty(n,"__esModule",{value:true});});}),Ji=nc(uc()),Qi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,dc=/^data:application\/json[^,]+base64,/,fc=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,es=typeof WeakRef<"u",xn=new Map,Yn=new Map,mc=e=>es&&e instanceof WeakRef,Ui=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let g of i)if(g[0]<=r)o=g;else break;if(!o||o.length<4)return null;let[,a,l,c]=o;if(a===void 0||l===void 0||c===void 0)return null;let u=t[a];return u?{columnNumber:c,fileName:u,lineNumber:l+1}:null},pc=(e,t,n)=>{if(e.sections){let r=null;for(let a of e.sections)if(t>a.offset.line||t===a.offset.line&&n>=a.offset.column)r=a;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return Ui(r.map.mappings,r.map.sources,i,o)}return Ui(e.mappings,e.sources,t-1,n)},gc=(e,t)=>{let n=t.split(`
|
|
14
|
+
`),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(fc);a&&(r=a[1]||a[2]);}if(!r)return null;let i=Qi.test(r);if(!(dc.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},hc=e=>({file:e.file,mappings:(0, Ji.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),bc=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, Ji.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},Ki=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Qi);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},yc=async(e,t=fetch)=>{if(!Ki(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=gc(e,n);if(!r||!Ki(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?bc(o):hc(o)}catch{return null}},wc=async(e,t=true,n)=>{if(t&&xn.has(e)){let o=xn.get(e);if(o==null)return null;if(mc(o)){let a=o.deref();if(a)return a;xn.delete(e);}else return o}if(t&&Yn.has(e))return Yn.get(e);let r=yc(e,n);t&&Yn.set(e,r);let i=await r;return t&&Yn.delete(e),t&&(i===null?xn.set(e,null):xn.set(e,es?new WeakRef(i):i)),i},xc=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await wc(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=pc(i,r.lineNumber,r.columnNumber);return o?{...r,source:o.fileName&&r.source?r.source.replace(r.fileName,o.fileName):r.source,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,isSymbolicated:true}:r})),vc=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",Cc=()=>{let e=gt();for(let t of [...Array.from($t),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Gi=e=>{for(let t of $t){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},ht=e=>`
|
|
15
|
+
in ${e}`,Sc=(e,t)=>{let n=ht(e);return t&&(n+=` (at ${t})`),n},Gr=false,Xr=(e,t)=>{if(!e||Gr)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Gr=true;let r=Cc();Gi(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let S;try{if(t){let w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[]);}catch(x){S=x;}Reflect.construct(e,[],w);}else {try{w.call();}catch(x){S=x;}e.call(w.prototype);}}else {try{throw Error()}catch(x){S=x;}let w=e();w&&typeof w.catch=="function"&&w.catch(()=>{});}}catch(w){if(w instanceof Error&&S instanceof Error&&typeof w.stack=="string")return [w.stack,S.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[g,p]=c.DetermineComponentFrameRoot();if(g&&p){let S=g.split(`
|
|
16
|
+
`),w=p.split(`
|
|
17
|
+
`),x=0,I=0;for(;x<S.length&&!S[x].includes("DetermineComponentFrameRoot");)x++;for(;I<w.length&&!w[I].includes("DetermineComponentFrameRoot");)I++;if(x===S.length||I===w.length)for(x=S.length-1,I=w.length-1;x>=1&&I>=0&&S[x]!==w[I];)I--;for(;x>=1&&I>=0;x--,I--)if(S[x]!==w[I]){if(x!==1||I!==1)do if(x--,I--,I<0||S[x]!==w[I]){let j=`
|
|
18
|
+
${S[x].replace(" at new "," at ")}`,K=yn(e);return K&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",K)),j}while(x>=1&&I>=0);break}}}finally{Gr=false,Error.prepareStackTrace=n,Gi(r),console.error=i,console.warn=o;}let a=e?yn(e):"";return a?ht(a):""},Ec=(e,t)=>{let n=e.tag,r="";switch(n){case Br:r=ht("Activity");break;case Ir:r=Xr(e.type,true);break;case Rr:r=Xr(e.type.render,false);break;case Nr:case Pr:r=Xr(e.type,false);break;case Lr:case Dr:case Fr:r=ht(e.type);break;case Or:r=ht("Lazy");break;case Mr:r=e.child!==t&&t!==null?ht("Suspense Fallback"):ht("Suspense");break;case $r:r=ht("SuspenseList");break;case Hr:r=ht("ViewTransition");break;default:return ""}return r},kc=e=>{try{let t="",n=e,r=null;do{t+=Ec(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let a=i[o];typeof a.name=="string"&&(t+=Sc(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
|
|
19
|
+
Error generating stack: ${t.message}
|
|
20
|
+
${t.stack}`:""}},Tc=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
|
|
21
|
+
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
22
|
+
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
|
|
23
|
+
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},Ac=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),_c=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Nc=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!Ac(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>_c(l,r))||(o.push(r),t.set(i,o));}return t},Ic=(e,t,n)=>{if(!e.functionName)return {...e,isServer:true};let r=t.get(e.functionName);if(!r||r.length===0)return {...e,isServer:true};let i=n.get(e.functionName)??0,o=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:true,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,source:e.source?.replace(Yi,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Lc=e=>{let t=[];return zr(e,n=>{if(!vc(n))return;let r=typeof n.type=="string"?n.type:yn(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:qi(Tc(n._debugStack?.stack))});},true),t},ts=async(e,t=true,n)=>{let r=Lc(e),i=qi(kc(e)),o=Nc(r),a=new Map,l=i.map(u=>u.source?.includes(Yi)??false?Ic(u,o,a):u),c=l.filter((u,g,p)=>{if(g===0)return true;let S=p[g-1];return u.functionName!==S.functionName});return xc(c,t,n)};var vn=e=>{if(!e||oc.some(i=>i===e))return "";let t=e;if(t.startsWith("http://")||t.startsWith("https://"))try{t=new URL(t).pathname;}catch{}if(t.startsWith(zi)){let i=t.slice(zi.length),o=i.indexOf("/"),a=i.indexOf(":");t=o!==-1&&(a===-1||o<a)?i.slice(o+1):i;}let n=true;for(;n;){n=false;for(let i of rc)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(Hi.test(t)){let i=t.match(Hi);i&&(t=t.slice(i[0].length));}if(t.startsWith("//")){let i=t.indexOf("/",2);t=i===-1?"":t.slice(i);}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);ac.test(i)&&(t=t.slice(0,r));}return t},Wn=e=>{let t=vn(e);return !(!t||!ic.test(t)||sc.test(t))};var ns=e=>e.length>0&&/^[A-Z]/.test(e);_r();var Rc=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),Mc=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),Pc=e=>!!(e.startsWith("_")||Rc.has(e)),Wr=e=>!(e.length<=1||Pc(e)||!ns(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),Cn=async e=>{if(!wn())return [];let t=Kr(e);return t?await ts(t):null},nt=async e=>{if(!wn())return null;let t=await Cn(e);if(!t)return null;for(let n of t)if(n.functionName&&Wr(n.functionName))return n.functionName;return null},qr=async(e,t={})=>{let{maxLines:n=3}=t,r=Oc(e),i=await Cn(e),o=Mc(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||Wr(l.functionName))){a.push(`
|
|
24
|
+
in ${l.functionName||"<anonymous>"} (at Server)`);continue}if(l.fileName&&Wn(l.fileName)){let c=`
|
|
25
|
+
in `,u=l.functionName&&Wr(l.functionName);u&&(c+=`${l.functionName} (at `),c+=vn(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},Oc=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",i=Array.from(e.attributes);for(let w of i){let x=w.name,I=w.value;I.length>20&&(I=`${I.slice(0,20)}...`),r+=` ${x}="${I}"`;}let o=[],a=[],l=false,c=Array.from(e.childNodes);for(let w of c)w.nodeType!==Node.COMMENT_NODE&&(w.nodeType===Node.TEXT_NODE?w.textContent&&w.textContent.trim().length>0&&(l=true):w instanceof Element&&(l?a.push(w):o.push(w)));let u=w=>w.length===0?"":w.length<=2?w.map(x=>`<${x.tagName.toLowerCase()} ...>`).join(`
|
|
26
|
+
`):`(${w.length} elements)`,g="",p=u(o);if(p&&(g+=`
|
|
27
|
+
${p}`),n.length>0){let w=n.length>100?`${n.slice(0,100)}...`:n;g+=`
|
|
28
|
+
${w}`;}let S=u(a);return S&&(g+=`
|
|
29
|
+
${S}`),g.length>0?`<${t}${r}>${g}
|
|
30
|
+
</${t}>`:`<${t}${r} />`};var Zr=e=>({activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>e,setAgent:()=>{},updateOptions:()=>{}});var rs=()=>{let e=new AbortController,t=(r,i,o={})=>{window.addEventListener(r,i,{...o,signal:e.signal});},n=(r,i,o={})=>{document.addEventListener(r,i,{...o,signal:e.signal});};return {signal:e.signal,abort:()=>e.abort(),addWindowListener:t,addDocumentListener:n}};var os=e=>({createLabelInstance:(i,o,a,l,c,u)=>{let g=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return e(p=>[...p,{id:g,bounds:i,tagName:o,componentName:a,status:l,createdAt:Date.now(),element:c,mouseX:u}]),g},updateLabelInstance:(i,o)=>{e(a=>a.map(l=>l.id===i?{...l,status:o}:l));},removeLabelInstance:i=>{e(o=>o.filter(a=>a.id!==i));}});var $c="application/x-react-grab",tn=(e,t)=>{let n=JSON.stringify({version:ii,content:e,timestamp:Date.now(),...t?.prompt&&{prompt:t.prompt}}),r=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData($c,n);};document.addEventListener("copy",r);let i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.left="-9999px",i.ariaHidden="true",document.body.appendChild(i),i.select();try{let o=document.execCommand("copy");return o&&t?.onSuccess?.(),o}finally{document.removeEventListener("copy",r),i.remove();}};var Sn=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>qr(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
|
|
31
|
+
|
|
32
|
+
`)};var Dc=e=>"innerText"in e,Fc=e=>Dc(e)?e.innerText:e.textContent??"",is=e=>e.map(t=>Fc(t).trim()).filter(t=>t.length>0).join(`
|
|
33
|
+
|
|
34
|
+
`),ss=async(e,t,n)=>{let r=false,i="";await e.onBeforeCopy?.(t);try{if(e.getContent){let o=await e.getContent(t);if(o.trim()){let a=n?`${n}
|
|
35
|
+
|
|
36
|
+
${o}`:o;i=a,r=tn(a,{prompt:n});}}else {let o=await Sn(t,{maxLines:e.maxContextLines});if(o.trim()){let a=n?`${n}
|
|
37
|
+
|
|
38
|
+
${o}`:o;i=a,r=tn(a,{prompt:n});}if(!r){let a=is(t);if(a.length>0){let l=n?`${n}
|
|
39
|
+
|
|
40
|
+
${a}`:a;i=l,r=tn(l,{prompt:n});}}}}catch(o){let a=o instanceof Error?o:new Error(String(o));e.onCopyError?.(a);let l=is(t);if(l.length>0){let c=n?`${n}
|
|
41
|
+
|
|
42
|
+
${l}`:l;i=c,r=tn(c,{prompt:n});}}return r&&e.onCopySuccess?.(t,i),e.onAfterCopy?.(t,r),r};var as=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var rt=e=>{if(e.closest(`[${qt}]`))return false;let t=window.getComputedStyle(e);return !(!as(e,t)||t.pointerEvents==="none")};var qn=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(rt(r))return r;return null};var Bc=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=Math.max(0,i-n),l=Math.max(0,o-r);return a*l},Hc=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,nn=(e,t,n)=>Math.min(n,Math.max(t,e)),zc=e=>e.sort((t,n)=>{if(t===n)return 0;let r=t.compareDocumentPosition(n);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0}),jc=e=>{if(e.width<=0||e.height<=0)return [];let t=window.innerWidth,n=window.innerHeight,r=e.x,i=e.y,o=e.x+e.width,a=e.y+e.height,l=r+e.width/2,c=i+e.height/2,u=nn(Math.ceil(e.width/24),3,30),g=nn(Math.ceil(e.height/24),3,30),p=u*g,S=p>600?Math.sqrt(600/p):1,w=nn(Math.floor(u*S),3,30),x=nn(Math.floor(g*S),3,30),I=new Set,j=[],K=(F,ne)=>{let v=nn(Math.round(F),0,t-1),O=nn(Math.round(ne),0,n-1),Z=`${v}:${O}`;I.has(Z)||(I.add(Z),j.push({x:v,y:O}));},_=1;K(r+_,i+_),K(o-_,i+_),K(r+_,a-_),K(o-_,a-_),K(l,i+_),K(l,a-_),K(r+_,c),K(o-_,c),K(l,c);for(let F=0;F<w;F+=1){let ne=r+(F+.5)/w*e.width;for(let v=0;v<x;v+=1){let O=i+(v+.5)/x*e.height;K(ne,O);}}return j},ls=(e,t,n)=>{let r={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height},i=new Set,o=jc(e);for(let l of o){let c=document.elementsFromPoint(l.x,l.y);for(let u of c)i.add(u);}let a=[];for(let l of i){if(!n){let g=(l.tagName||"").toUpperCase();if(g==="HTML"||g==="BODY")continue}if(!t(l))continue;let c=l.getBoundingClientRect();if(c.width<=0||c.height<=0)continue;let u={left:c.left,top:c.top,right:c.left+c.width,bottom:c.top+c.height};if(n){let g=Bc(r,u),p=c.width*c.height;p>0&&g/p>=.75&&a.push(l);}else Hc(u,r)&&a.push(l);}return zc(a)},cs=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),us=(e,t)=>{let n=ls(e,t,true);return cs(n)},ds=(e,t)=>{let n=ls(e,t,false);return cs(n)};var Vc=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),Uc=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return Vc(n)?n:null},fs=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=Uc(i);if(o===null)return null;r.push(o);}return r},Kc=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Gc=e=>e[0]===1&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0&&e[8]===0&&e[9]===0&&e[10]===1&&e[11]===0&&e[15]===1,Zn=e=>{try{if(!(e instanceof Element))return "none";let t=window.getComputedStyle(e);if(!t)return "none";let n=t.transform;if(!n||n==="none")return "none";let r=n.match(/^matrix3d\(([^)]+)\)$/);if(r){let o=fs(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,Gc(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=fs(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return Kc(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var _e=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Zn(e),width:t.width,x:t.left,y:t.top}};var Xc=new Set(["c","C","\u0441","\u0421","\u023C","\u023B","\u2184","\u2183","\u1D04","\u1D9C","\u2C7C","\u217D","\u216D","\xE7","\xC7","\u0107","\u0106","\u010D","\u010C","\u0109","\u0108","\u010B","\u010A"]),Jn=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Xc.has(e);var Jr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},Qr=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:r,metaKey:i,ctrlKey:o,shiftKey:a,altKey:l}=t.activationKey;if(!r){if(!jn.includes(e.key))return false;let S=i?e.metaKey||e.key==="Meta":true,w=o?e.ctrlKey||e.key==="Control":true,x=a?e.shiftKey||e.key==="Shift":true,I=l?e.altKey||e.key==="Alt":true,j=S&&w&&x&&I,K=[i,o,a,l].filter(Boolean).length,_=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return j&&_>=K}let u=e.key?.toLowerCase()===r.toLowerCase()||Jr(r,e.code),p=i||o||a||l?(i?e.metaKey:true)&&(o?e.ctrlKey:true)&&(a?e.shiftKey:true)&&(l?e.altKey:true):e.metaKey||e.ctrlKey;return u&&p}let n=(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey;return !!(e.key&&n&&Jn(e.key,e.code))};var at=(e,t)=>{try{return e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t))}catch{return false}};var eo={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true},dock:{enabled:true}},ms=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},crosshair:{enabled:t.crosshair?.enabled??e.crosshair.enabled},dock:{enabled:t.dock?.enabled??e.dock.enabled}}),to=e=>e?ms(eo,e):eo,ps=ms;var no="react-grab:agent-sessions",Yc=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,gs=(e,t,n,r,i)=>{let o=Date.now();return {id:Yc(),context:e,lastStatus:"",isStreaming:true,createdAt:o,lastUpdatedAt:o,position:t,selectionBounds:n,tagName:r,componentName:i}},ro=e=>e||null,Dt=new Map,Qn=(e,t)=>{let n=ro(t);if(!n){Dt.clear(),e.forEach((r,i)=>Dt.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(no,JSON.stringify(r));}catch{Dt.clear(),e.forEach((r,i)=>Dt.set(i,r));}},er=(e,t)=>{let n=tr(t);n.set(e.id,e),Qn(n,t);},tr=e=>{let t=ro(e);if(!t)return new Map(Dt);try{let n=t.getItem(no);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var nr=e=>{let t=ro(e);if(!t){Dt.clear();return}try{t.removeItem(no);}catch{Dt.clear();}},oo=(e,t)=>{let n=tr(t);n.delete(e),Qn(n,t);},Ft=(e,t,n)=>{let r={...e,...t,lastUpdatedAt:Date.now()};return er(r,n),r};var hs=e=>{let[t,n]=k(new Map),r=new Map,i=new Map,o=e,a=v=>{o=v;},l=()=>o,c=()=>Array.from(t().values()).some(v=>v.isStreaming),u=async(v,O)=>{let Z=o?.storage,$=false;try{for await(let h of O){let f=t().get(v.id);if(!f)break;let b=Ft(f,{lastStatus:h},Z);n(M=>new Map(M).set(v.id,b)),o?.onStatus?.(h,b);}let D=t().get(v.id);if(D){let h=o?.provider?.getCompletionMessage?.(),m=Ft(D,{isStreaming:!1,...h?{lastStatus:h}:{}},Z);n(M=>new Map(M).set(v.id,m));let f=i.get(v.id),b=await o?.onComplete?.(m,f);if(b?.error){let M=Ft(m,{error:b.error},Z);n(G=>new Map(G).set(v.id,M));}}}catch(W){let h=t().get(v.id);if(W instanceof Error&&W.name==="AbortError"){if($=true,h){let m=i.get(v.id);o?.onAbort?.(h,m);}}else {let m=W instanceof Error?W.message:"Unknown error";if(h){let f=Ft(h,{error:m,isStreaming:false},Z);n(b=>new Map(b).set(v.id,f)),W instanceof Error&&o?.onError?.(W,f);}}}finally{r.delete(v.id),$&&(i.delete(v.id),oo(v.id,Z),n(W=>{let D=new Map(W);return D.delete(v.id),D}));}},g=v=>{let{selectionBounds:O,tagName:Z}=v;if(!O)return;let $=O.x+O.width/2,W=O.y+O.height/2,D=document.elementFromPoint($,W);if(D&&!(Z&&D.tagName.toLowerCase()!==Z))return D},p=()=>{let v=o?.storage;if(!v)return;let O=tr(v);if(O.size===0)return;let Z=Date.now(),$=Array.from(O.values()).filter(D=>{if(D.isStreaming)return true;let h=D.lastUpdatedAt??D.createdAt;return Z-h<1e4&&!!D.error});if($.length===0){nr(v);return}if(!o?.provider?.supportsResume||!o.provider.resume){nr(v);return}let W=new Map($.map(D=>[D.id,D]));n(W),Qn(W,v);for(let D of $){let h=g(D);h&&i.set(D.id,h);let m={...D,isStreaming:true,error:void 0,lastStatus:D.lastStatus||"Resuming...",position:D.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(M=>new Map(M).set(D.id,m)),o?.onResume?.(m);let f=new AbortController;r.set(D.id,f);let b=o.provider.resume(D.id,f.signal,v);u(D,b);}},S=async v=>{let{element:O,prompt:Z,position:$,selectionBounds:W,sessionId:D}=v,h=o?.storage;if(!o?.provider)return;let m=D?t().get(D):void 0,f=!!D,M={content:m?m.context.content:await Sn([O],{maxLines:1/0}),prompt:Z,options:o?.getOptions?.(),sessionId:f?D:void 0},G;if(m)G=Ft(m,{context:M,isStreaming:true,lastStatus:"Thinking\u2026"},h);else {let X=(O.tagName||"").toLowerCase()||void 0,Y=await nt(O)||void 0;G=gs(M,$,W,X,Y),G.lastStatus="Thinking\u2026",i.set(G.id,O);}n(X=>new Map(X).set(G.id,G)),er(G,h),o.onStart?.(G,O);let oe=new AbortController;r.set(G.id,oe);let ie={...M,sessionId:D??G.id},C=o.provider.send(ie,oe.signal);u(G,C);},w=v=>{let O=r.get(v);O&&O.abort();},x=()=>{r.forEach(v=>v.abort()),r.clear(),n(new Map),nr(o?.storage);},I=v=>{let O=o?.storage;i.delete(v),oo(v,O),n(Z=>{let $=new Map(Z);return $.delete(v),$});};return {sessions:t,isProcessing:c,tryResumeSessions:p,startSession:S,abortSession:w,abortAllSessions:x,dismissSession:I,undoSession:v=>{let Z=t().get(v);if(Z){let $=i.get(v);o?.onUndo?.(Z,$),o?.provider?.undo?.();}I(v);},acknowledgeSessionError:v=>{let $=t().get(v)?.context.prompt;return I(v),$},retrySession:v=>{let Z=t().get(v);if(!Z||!o?.provider)return;let $=o.storage,W=i.get(v),D=Ft(Z,{error:void 0,isStreaming:true,lastStatus:"Retrying\u2026"},$);n(b=>new Map(b).set(v,D)),er(D,$),W&&o.onStart?.(D,W);let h=new AbortController;r.set(v,h);let m={...D.context,sessionId:v},f=o.provider.send(m,h.signal);u(D,f);},updateSessionBoundsOnViewportChange:()=>{let v=t();if(v.size===0)return;let O=new Map(v),Z=false;for(let[$,W]of v){let D=i.get($);if(D&&document.contains(D)){let h=_e(D);if(h){let m=W.selectionBounds,f=W.position;if(m){let b=m.x+m.width/2,M=W.position.x-b,G=h.x+h.width/2;f={...W.position,x:G+M};}O.set($,{...W,selectionBounds:h,position:f}),Z=true;}}}Z&&n(O);},getSessionElement:v=>i.get(v),setOptions:a,getOptions:l}};var bs=Q('<span class="tabular-nums align-middle">'),ys=Q('<span class="font-mono tabular-nums align-middle"><<!>>'),ou=Q('<span class="tabular-nums ml-1 align-middle"> in '),iu=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),so=false,su=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},Kp=e=>{let t=to(e?.theme);if(typeof window>"u")return Zr(t);let n=su(),r={enabled:true,activationMode:"toggle",keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...n,...e},i=to(r.theme);return r.enabled===false||so?Zr(i):(so=true,(()=>{try{let a="0.0.91",l=`data:image/svg+xml;base64,${btoa(si)}`;console.log(`%cReact Grab${a?` v${a}`:""}%c
|
|
43
|
+
https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${l}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&a&&fetch(`https://www.react-grab.com/api/version?source=browser&t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(c=>c.text()).then(c=>{c&&c!==a&&console.warn(`[React Grab] v${a} is outdated (latest: v${c})`);}).catch(()=>null);}catch{}})(),mt(a=>{let[l,c]=k(i),[u,g]=k(false),[p,S]=k(-1e3),[w,x]=k(-1e3),[I,j]=k(null),K=0,[_,F]=k(false),[ne,v]=k(-1e3),[O,Z]=k(-1e3),[$,W]=k(false),[D,h]=k("idle"),[m,f]=k([]),[b,M]=k(null),[G,oe]=k(null),[ie,C]=k(null),[X,Y]=k([]),[P,se]=k(false),[V,U]=k(false),[ae,E]=k(false),[B,ee]=k(false),[J,me]=k(-1e3),[Se,te]=k(-1e3),[we,ye]=k(0),[Le,He]=k(0),[fe,Ue]=k(false),[Bt,ze]=k(""),[rn,sr]=k(false),[ao,lo]=k(void 0),[co,uo]=k(void 0),[Ht,Ke]=k(false),[fo,Qe]=k(false),[kt,ct]=k(null),[ot,ws]=k(!!r.agent?.provider),[xs,vs]=k(false),[Cs,Ss]=k(!!r.agent?.provider?.undo),[Es,ks]=k(!!r.agent?.provider?.supportsFollowUp),[Ts,As]=k(r.agent?.provider?.dismissButtonText),[_s,En]=k(null),[Ns,mo]=k(null),[po,zt]=k(false),[ar,kn]=k(false),ut=new WeakMap,[lr,cr]=k(-1e3),[ur,dr]=k(-1e3),[on,sn]=k(false),[jt,go]=k([]),dt=s=>(s.tagName||"").toLowerCase(),ho=ge(()=>{let s=jt();if(!(s.length===0||!s[0]))return dt(s[0])||void 0}),[bo]=$n(()=>{let s=jt();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await nt(s)||void 0}),et=()=>{sn(false),cr(-1e3),dr(-1e3),go([]);},Is=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let y=s.getRangeAt(0).getClientRects();if(y.length===0)return;let T=(()=>{if(!s.anchorNode||!s.focusNode)return false;let z=s.anchorNode.compareDocumentPosition(s.focusNode);return z&Node.DOCUMENT_POSITION_FOLLOWING?false:z&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),N=T?y[0]:y[y.length-1],L=T?N.left:N.right,H=N.top+N.height/2;cr(L),dr(H);};ce(je(()=>Le(),()=>{on()&&Is();}));let fr=ge(()=>{Le();let s=jt();if(!(s.length===0||!s[0]))return _e(s[0])}),ft=null,Tn=null,An=null,Ge=null,Tt=null,an=null,Xe=null,bt=null,Ze=ge(()=>P()&&!$()),yo=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),wo=(s,d)=>{let y=`grabbed-${Date.now()}-${Math.random()}`,T=Date.now(),N={id:y,bounds:s,createdAt:T,element:d},L=X();Y([...L,N]),r.onGrabbedBox?.(s,d),setTimeout(()=>{Y(H=>H.filter(z=>z.id!==y));},1700);},xo=s=>{let d=s.map(y=>({tagName:dt(y)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},{createLabelInstance:Ls,updateLabelInstance:vo,removeLabelInstance:Rs}=os(f),At=async(s,d,y,T,N,L,H,z)=>{if(me(s),te(d),T){let Re=T.x+T.width/2;ye(s-Re);}else ye(0);W(true),Os();let ue=T&&N?Ls(T,N,L,"copying",H,s):null;await y().finally(()=>{W(false),ee(true),H&&oe(H),_n(),ue&&(vo(ue,"copied"),setTimeout(()=>{vo(ue,"fading"),setTimeout(()=>{Rs(ue);},350);},1500)),(V()||z)&&Oe();});},mr=(s,d)=>ss(r,s,d),ln=async(s,d)=>{r.onElementSelect?.(s),l().grabbedBoxes.enabled&&wo(_e(s),s),await new Promise(y=>requestAnimationFrame(y)),await mr([s],d),xo([s]);},Co=async s=>{if(s.length!==0){for(let d of s)r.onElementSelect?.(d);if(l().grabbedBoxes.enabled)for(let d of s)wo(_e(d),d);await new Promise(d=>requestAnimationFrame(d)),await mr(s),xo(s);}},Me=ge(()=>{if(!Ze()||_())return null;let s=I();return s&&!document.contains(s)?null:s}),Vt=ge(()=>Ht()?kt():Me());ce(()=>{let s=I();if(!s)return;let d=setInterval(()=>{document.contains(s)||j(null);},100);xe(()=>clearInterval(d));}),ce(()=>{if(Ht())return;let s=Me();s&&ct(s);});let So=ge(()=>{Le();let s=Vt();if(s)return _e(s)}),Eo=(s,d)=>{let y=s+window.scrollX,T=d+window.scrollY;return {x:Math.abs(y-ne()),y:Math.abs(T-O())}},ko=ge(()=>{if(!_())return false;let s=Eo(p(),w());return s.x>2||s.y>2}),To=(s,d)=>{let y=s+window.scrollX,T=d+window.scrollY,N=Math.min(ne(),y),L=Math.min(O(),T),H=Math.abs(y-ne()),z=Math.abs(T-O());return {x:N-window.scrollX,y:L-window.scrollY,width:H,height:z}},yt=ge(()=>{if(!ko())return;let s=To(p(),w());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[Ms]=$n(()=>Me(),async s=>s?nt(s):null),Ps=ge(()=>{let s=Me(),d=$();if(!s)return (()=>{var N=bs();return q(N,d?"Processing\u2026":"1 element"),N})();let y=dt(s),T=Ms();return y&&T?[(()=>{var N=ys(),L=N.firstChild,H=L.nextSibling;H.nextSibling;return q(N,y,H),N})(),(()=>{var N=ou();N.firstChild;return q(N,T,null),N})()]:y?(()=>{var N=ys(),L=N.firstChild,H=L.nextSibling;H.nextSibling;return q(N,y,H),N})():(()=>{var N=bs();return q(N,d?"Processing\u2026":"1 element"),N})()}),pr=ge(()=>{if($()||fo()){Le();let s=kt()||Me();if(s){let d=_e(s);return {x:d.x+d.width/2+we(),y:Se()}}return {x:J(),y:Se()}}return {x:p(),y:w()}});ce(je(()=>[Me(),b()],([s,d])=>{d&&s&&d!==s&&M(null),s&&r.onElementHover?.(s);})),ce(je(()=>Me(),s=>{let d=()=>{lo(void 0),uo(void 0);};if(!s){d();return}Cn(s).then(y=>{if(y){for(let T of y)if(T.fileName&&Wn(T.fileName)){lo(vn(T.fileName)),uo(T.lineNumber);return}d();}}).catch(d);})),ce(je(()=>Le(),()=>Ne.updateSessionBoundsOnViewportChange())),ce(je(()=>[P(),_(),$(),fe(),Me(),yt()],([s,d,y,T,N,L])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:y,isInputMode:T,targetElement:N,dragBounds:L?{x:L.x,y:L.y,width:L.width,height:L.height}:null});})),ce(je(()=>[fe(),p(),w(),Me()],([s,d,y,T])=>{r.onInputModeChange?.(s,{x:d,y,targetElement:T});})),ce(je(()=>[Ro(),So(),Me()],([s,d,y])=>{r.onSelectionBox?.(!!s,d??null,y);})),ce(je(()=>[Mo(),yt()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),ce(je(()=>[Po(),p(),w()],([s,d,y])=>{r.onCrosshair?.(!!s,{x:d,y});})),ce(je(()=>[ea(),Qs(),Ps(),pr()],([s,d,y,T])=>{let N=typeof y=="string"?y:"";r.onElementLabel?.(!!s,d,{x:T.x,y:T.y,content:N});}));let wt=null,_t=s=>{s?(wt||(wt=document.createElement("style"),wt.setAttribute("data-react-grab-cursor",""),document.head.appendChild(wt)),wt.textContent=`* { cursor: ${s} !important; }`):wt&&(wt.remove(),wt=null);};ce(je(()=>[P(),$(),_(),fe(),Me()],([s,d,y,T,N])=>{_t(d?"progress":T?null:s&&y?"crosshair":s&&N?"default":s?"crosshair":null);}));let Os=s=>{let d=Date.now(),y=r.keyHoldDuration??200;C(d);let T=()=>{let N=ie();if(N===null)return;let H=(Date.now()-N)/y,z=1-Math.exp(-H);($()?Math.min(z,.95):1)<1&&(An=requestAnimationFrame(T));};T();},_n=()=>{An!==null&&(cancelAnimationFrame(An),An=null),C(null);},$s=()=>{let s=()=>{if(!_()){cn();return}let d=yo(p(),w());d.top&&window.scrollBy(0,-10),d.bottom&&window.scrollBy(0,10),d.left&&window.scrollBy(-10,0),d.right&&window.scrollBy(10,0),d.top||d.bottom||d.left||d.right?Tt=requestAnimationFrame(s):Tt=null;};s();},cn=()=>{Tt!==null&&(cancelAnimationFrame(Tt),Tt=null);},it=()=>{_n(),an=document.activeElement,Tn=Date.now(),se(true),r.onActivate?.();},Oe=()=>{if(U(false),g(false),se(false),Ue(false),ze(""),Ke(false),Qe(false),zt(false),ct(null),h("idle"),ee(false),_()&&(F(false),document.body.style.userSelect=""),ft&&window.clearTimeout(ft),Ge&&window.clearTimeout(Ge),Xe){window.clearTimeout(Xe),Xe=null;let s=bt;if(bt=null,s){M(s.element);let d=_e(s.element),y=dt(s.element);nt(s.element).then(T=>{At(s.clientX,s.clientY,()=>ln(s.element),d,y,T??void 0,s.element);});}}cn(),_n(),Tn=null,an instanceof HTMLElement&&document.contains(an)&&an.focus(),an=null,r.onDeactivate?.();},Nn=(s,d)=>{if(d&&document.contains(d)){let y=d.getBoundingClientRect(),T=y.top+y.height/2;S(s.position.x),x(T),ct(d),ze(s.context.prompt),Qe(true),Ue(true),U(true),Ke(true),P()||it();}},Ds=r.agent?{...r.agent,onAbort:(s,d)=>{r.agent?.onAbort?.(s,d),Nn(s,d);},onUndo:(s,d)=>{r.agent?.onUndo?.(s,d),Nn(s,d);}}:void 0,Ne=hs(Ds),Fs=s=>{ze(s);},Bs=()=>{oe(null);let s=kt()||Me(),d=fe()?Bt().trim():"";if(!s){Oe();return}let y=_e(s),T=p(),N=y.x+y.width/2,L=y.y+y.height/2;if(ot()&&d){ut.delete(s),Oe();let z=_s();En(null),mo(null),Ne.startSession({element:s,prompt:d,position:{x:T,y:L},selectionBounds:y,sessionId:z??void 0});return}S(N),x(L),Ue(false),ze(""),d?ut.set(s,d):ut.delete(s);let H=dt(s);nt(s).then(z=>{At(N,L,()=>ln(s,d||void 0),y,H,z??void 0,s).then(()=>{Oe();});});},gr=()=>{if(oe(null),!fe())return;let s=Bt().trim();if(s&&!po()){zt(true);return}let d=kt()||Me();d&&s&&ut.set(d,s),zt(false),En(null),Oe();},Hs=()=>{zt(false),En(null),Oe();},zs=()=>{zt(false);},js=()=>{kn(false),Ne.abortAllSessions();},Vs=()=>{kn(false);},Us=()=>{if(!ot())return;let s=kt()||Me();if(s){let d=_e(s),y=d.x+d.width/2;me(p()),te(w()),ye(p()-y);let T=ut.get(s);T&&ze(T);}U(true),Ke(true),Qe(true),Ue(true);},Ks=async()=>{let s=jt();if(s.length===0)return;let d=lr(),y=ur(),T=fr(),N=ho();sn(false),et(),window.getSelection()?.removeAllRanges();let L=bo();s.length===1?await At(d,y,()=>ln(s[0]),T,N,L):await At(d,y,()=>Co(s),T,N,L);},Gs=()=>{if(!ot()||jt().length===0)return;let d=fr(),y=d?d.x+d.width/2:lr(),T=d?d.y+d.height/2:ur();sn(false),et(),window.getSelection()?.removeAllRanges(),S(y),x(T),U(true),Ke(true),Qe(true),it(),Ue(true);},Ao=(s,d)=>{if(fe()||Ht())return;ee(false),S(s),x(d);let y=performance.now();if(y-K>=32&&(K=y,iu(()=>{let T=qn(s,d);j(T);})),_()){let T=yo(s,d),N=T.top||T.bottom||T.left||T.right;N&&Tt===null?$s():!N&&Tt!==null&&cn();}},_o=(s,d)=>{if(!Ze()||$())return false;F(true);let y=s+window.scrollX,T=d+window.scrollY;return v(y),Z(T),document.body.style.userSelect="none",r.onDragStart?.(y,T),true},No=(s,d)=>{if(!_())return;let y=Eo(s,d),T=y.x>2||y.y>2;if(F(false),cn(),document.body.style.userSelect="",T){E(true);let N=To(s,d),L=us(N,rt),H=L.length>0?L:ds(N,rt);if(H.length>0){r.onDragEnd?.(H,N);let z=H[0],ue=z.getBoundingClientRect(),Re={x:ue.left,y:ue.top,width:ue.width,height:ue.height,borderRadius:"0px",transform:Zn(z)},Pe=dt(z),$e=Re.x+Re.width/2,Je=Re.y+Re.height/2;ot()?(S($e),x(Je),ct(z),U(true),Ke(true),Qe(true),P()||it(),Ue(true)):nt(z).then(tt=>{At($e,Je,()=>Co(H),Re,Pe,tt??void 0,z,true);});}}else {let N=qn(s,d);if(!N)return;if(ot()){if(Xe!==null){window.clearTimeout(Xe),Xe=null;let L=bt?.element??N;bt=null;let H=_e(L),z=H.x+H.width/2;me(s),te(d),ye(s-z);let ue=ut.get(L);ue&&ze(ue),S(s),x(d),ct(L),U(true),Ke(true),Qe(true),Ue(true);return}bt={clientX:s,clientY:d,element:N},Xe=window.setTimeout(()=>{Xe=null;let L=bt;if(bt=null,!L)return;M(L.element);let H=_e(L.element),z=dt(L.element);nt(L.element).then(ue=>{At(L.clientX,L.clientY,()=>ln(L.element),H,z,ue??void 0,L.element);});},250);}else {M(N);let L=_e(N),H=dt(N);nt(N).then(z=>{At(s,d,()=>ln(N),L,H,z??void 0,N);});}}},Ee=rs(),Io=new WeakSet,Nt=s=>s==="Enter"||s==="NumpadEnter",It=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),Lo=false;if(It?.get&&!It.get.__reactGrabPatched){Lo=true;let s=It.get,d=function(){return Io.has(this)?"":s.call(this)};d.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:d,configurable:true});}let Ut=s=>{let d;try{d=It?.get?It.get.call(s):s.key;}catch{return false}let y=d==="Enter"||Nt(s.code),T=P()||u();return y&&T&&!fe()&&!V()?(Io.add(s),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),true):false};Ee.addDocumentListener("keydown",Ut,{capture:true}),Ee.addDocumentListener("keyup",Ut,{capture:true}),Ee.addDocumentListener("keypress",Ut,{capture:true}),Ee.addWindowListener("keydown",s=>{Ut(s);let d=Nt(s.code)&&u()&&!fe();if(fe()&&Qr(s,r)&&!s.repeat){s.preventDefault(),s.stopPropagation(),Ue(false),ze(""),Ke(false),Qe(false),zt(false);return}if(fe()||at(s,"data-react-grab-ignore-events")&&!d){s.key==="Escape"&&Ne.isProcessing()&&!ar()&&(s.preventDefault(),s.stopPropagation(),kn(true));return}if(s.key==="Escape"){if(Ne.isProcessing()){ar()||(s.preventDefault(),s.stopPropagation(),kn(true));return}if(u()){Oe();return}}if(u()&&!fe()){let L=kt()||Me();if(!L)return;let H=null;switch(s.key){case "ArrowUp":case "ArrowDown":{let z=_e(L),ue=document.elementsFromPoint(z.x+z.width/2,z.y+z.height/2).filter(rt),Re=ue.indexOf(L);if(Re!==-1){let Pe=s.key==="ArrowUp"?1:-1;H=ue[Re+Pe]??null;}break}case "ArrowRight":case "ArrowLeft":{let z=s.key==="ArrowRight",ue=Pe=>{let $e=Array.from(Pe.children),Je=z?$e:$e.reverse();for(let tt of Je)if(z){if(rt(tt))return tt;let un=ue(tt);if(un)return un}else {let un=ue(tt);if(un)return un;if(rt(tt))return tt}return null},Re=Pe=>z?Pe.nextElementSibling:Pe.previousElementSibling;if(z&&(H=ue(L)),!H){let Pe=L;for(;Pe;){let $e=Re(Pe);for(;$e;){let tt=ue($e);if(tt){H=tt;break}if(rt($e)){H=$e;break}$e=Re($e);}if(H)break;let Je=Pe.parentElement;if(!z&&Je&&rt(Je)){H=Je;break}Pe=Je;}}break}}if(H){s.preventDefault(),s.stopPropagation(),ct(H),Ke(true);let z=_e(H);S(z.x+z.width/2),x(z.y+z.height/2);return}}let y=G();if(Nt(s.code)&&!u()&&!fe()&&!P()&&y&&document.contains(y)&&ot()&&!m().some(L=>L.status==="copied"||L.status==="fading")){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let L=_e(y),H=L.x+L.width/2,z=L.y+L.height/2;S(H),x(z),me(H),te(z),ye(0),ct(y),oe(null),f([]);let ue=ut.get(y);ue&&ze(ue),U(true),Ke(true),Qe(true),it(),Ue(true);return}if(Nt(s.code)&&u()&&!fe()&&ot()){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let L=kt()||Me();if(L){let H=_e(L),z=H.x+H.width/2;me(p()),te(w()),ye(p()-z);let ue=ut.get(L);ue&&ze(ue);}U(true),Ke(true),Qe(true),Ge!==null&&(window.clearTimeout(Ge),Ge=null),P()||(ft&&window.clearTimeout(ft),it()),Ue(true);return}if(s.key?.toLowerCase()==="o"&&!fe()&&P()&&(s.metaKey||s.ctrlKey)){let L=ao(),H=co();if(L)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(L,H);else {let z=zn(L,H);window.open(z,"_blank");}return}if(!r.allowActivationInsideInput&&st(s)||!Qr(s,r)&&(P()&&!V()&&(s.metaKey||s.ctrlKey)&&!jn.includes(s.key)&&!Nt(s.code)&&Oe(),!Nt(s.code)||!u()))return;if((P()||u())&&!fe()&&(s.preventDefault(),Nt(s.code)&&(s.stopPropagation(),s.stopImmediatePropagation())),P()){if(V()&&r.activationMode!=="hold"||s.repeat)return;Ge!==null&&window.clearTimeout(Ge),Ge=window.setTimeout(()=>{Oe();},200);return}if(u()&&s.repeat)return;ft!==null&&window.clearTimeout(ft),u()||g(true);let T=r.keyHoldDuration??200,N=st(s)?T+150:T;ft=window.setTimeout(()=>{r.activationMode!=="hold"&&U(true),it();},N);},{capture:true}),Ee.addWindowListener("keyup",s=>{if(Ut(s)||!u()&&!P()||fe())return;let d=!!(r.activationShortcut||r.activationKey),T=(()=>{if(r.activationKey){let{metaKey:H,ctrlKey:z,shiftKey:ue,altKey:Re}=r.activationKey;return {metaKey:!!H,ctrlKey:!!z,shiftKey:!!ue,altKey:!!Re}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),N=T.metaKey||T.ctrlKey?!s.metaKey&&!s.ctrlKey:T.shiftKey&&!s.shiftKey||T.altKey&&!s.altKey,L=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key?.toLowerCase()===r.activationKey.key.toLowerCase()||Jr(r.activationKey.key,s.code):false:Jn(s.key,s.code);if(P()){if(N){if(V()&&r.activationMode!=="hold")return;Oe();}else !d&&L&&Ge!==null&&(window.clearTimeout(Ge),Ge=null);return}if(L||N){if(V()&&r.activationMode!=="hold")return;Oe();}},{capture:true}),Ee.addWindowListener("keypress",Ut,{capture:true}),Ee.addWindowListener("mousemove",s=>{sr(false),!at(s,"data-react-grab-ignore-events")&&(u()&&!fe()&&Ht()&&Ke(false),Ao(s.clientX,s.clientY));}),Ee.addWindowListener("mousedown",s=>{if(s.button!==0||at(s,"data-react-grab-ignore-events"))return;if(fe()){gr();return}_o(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{capture:true}),Ee.addWindowListener("pointerdown",s=>{s.button===0&&(at(s,"data-react-grab-ignore-events")||!Ze()||$()||fe()||s.stopPropagation());},{capture:true}),Ee.addWindowListener("mouseup",s=>{s.button===0&&No(s.clientX,s.clientY);}),Ee.addWindowListener("contextmenu",s=>{if(!Ze()||$()||fe()||at(s,"data-react-grab-ignore-events")||!ot())return;let d=qn(s.clientX,s.clientY);if(!d)return;s.preventDefault(),s.stopPropagation(),Xe!==null&&(window.clearTimeout(Xe),Xe=null,bt=null);let y=_e(d),T=y.x+y.width/2;me(s.clientX),te(s.clientY),ye(s.clientX-T);let N=ut.get(d);N&&ze(N),S(s.clientX),x(s.clientY),ct(d),U(true),Ke(true),Qe(true),Ue(true);},{capture:true}),Ee.addWindowListener("touchmove",s=>{s.touches.length!==0&&(sr(true),!at(s,"data-react-grab-ignore-events")&&(u()&&!fe()&&Ht()&&Ke(false),Ao(s.touches[0].clientX,s.touches[0].clientY)));},{passive:true}),Ee.addWindowListener("touchstart",s=>{if(s.touches.length===0||(sr(true),at(s,"data-react-grab-ignore-events")))return;if(fe()){gr();return}_o(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{passive:false}),Ee.addWindowListener("touchend",s=>{s.changedTouches.length!==0&&No(s.changedTouches[0].clientX,s.changedTouches[0].clientY);}),Ee.addWindowListener("click",s=>{at(s,"data-react-grab-ignore-events")||(Ze()||$()||ae())&&(s.preventDefault(),s.stopPropagation(),ae()&&E(false),V()&&!$()&&!fe()&&(u()?U(false):Oe()));},{capture:true}),Ee.addDocumentListener("visibilitychange",()=>{document.hidden&&(Y([]),P()&&!fe()&&Tn!==null&&Date.now()-Tn>500&&Oe());}),Ee.addWindowListener("scroll",()=>{He(s=>s+1);},{capture:true}),Ee.addWindowListener("resize",()=>{He(s=>s+1);}),Ee.addWindowListener("popstate",()=>{et();});let Lt=null,Xs=()=>{let s=l().enabled&&(on()||P()||$()||m().length>0||X().length>0||Ne.sessions().size>0);s&&Lt===null?Lt=window.setInterval(()=>{if(He(d=>d+1),on()){let d=jt();d.length>0&&d[0]&&document.body.contains(d[0])||et();}},100):!s&&Lt!==null&&(window.clearInterval(Lt),Lt=null);};ce(()=>{l().enabled,on(),P(),$(),m().length,X().length,Ne.sessions().size,Xs();}),xe(()=>{Lt!==null&&window.clearInterval(Lt);}),Ee.addDocumentListener("copy",s=>{fe()||at(s,"data-react-grab-ignore-events")||(Ze()||$())&&s.preventDefault();},{capture:true});let In=null;Ee.addDocumentListener("selectionchange",()=>{if(Ze())return;In!==null&&window.clearTimeout(In),sn(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){et();return}In=window.setTimeout(()=>{In=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0){et();return}let y=d.getRangeAt(0),T=y.getBoundingClientRect();if(T.width===0&&T.height===0){et();return}if(!d.toString().trim()){et();return}let L=(()=>{if(!d.anchorNode||!d.focusNode)return false;let Je=d.anchorNode.compareDocumentPosition(d.focusNode);return Je&Node.DOCUMENT_POSITION_FOLLOWING?false:Je&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),H=y.getClientRects();if(H.length===0){et();return}let z=L?H[0]:H[H.length-1],ue=L?z.left:z.right,Re=z.top+z.height/2;if(ri(ue,Re)){et();return}let Pe=y.commonAncestorContainer,$e=Pe.nodeType===Node.ELEMENT_NODE?Pe:Pe.parentElement;$e&&rt($e)?(cr(ue),dr(Re),go([$e]),sn(true)):et();},150);}),xe(()=>{Ee.abort(),ft&&window.clearTimeout(ft),Ge&&window.clearTimeout(Ge),Xe&&window.clearTimeout(Xe),cn(),_n(),document.body.style.userSelect="",_t(null),Lo&&It&&Object.defineProperty(KeyboardEvent.prototype,"key",It);});let hr=oi(ti),Ro=ge(()=>!l().selectionBox.enabled||B()?false:Ze()&&!_()&&!!Vt()),Ys=ge(()=>{let s=Vt();if(s)return dt(s)||void 0}),[Ws]=$n(()=>Vt(),async s=>s?await nt(s)??void 0:void 0),qs=ge(()=>!l().elementLabel.enabled||B()?false:Ze()&&!_()&&!!Vt()),Zs=ge(()=>(Le(),m().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:_e(s.element)}))),Js=ge(()=>(Le(),X().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:_e(s.element)}))),Mo=ge(()=>l().dragBox.enabled&&Ze()&&ko()),Qs=ge(()=>$()?"processing":"hover"),ea=ge(()=>!l().elementLabel.enabled||fe()?false:$()?true:Ze()&&!_()&&!!Vt()),Po=ge(()=>l().crosshair.enabled&&Ze()&&!_()&&!rn()&&!Ht()),ta=ge(()=>l().grabbedBoxes.enabled);return ce(je(l,s=>{s.hue!==0?hr.style.filter=`hue-rotate(${s.hue}deg)`:hr.style.filter="";})),l().enabled&&Qo(()=>R(Ri,{get selectionVisible(){return Ro()},get selectionBounds(){return So()},get selectionFilePath(){return ao()},get selectionLineNumber(){return co()},get selectionTagName(){return Ys()},get selectionComponentName(){return Ws()},get selectionLabelVisible(){return qs()},get selectionLabelStatus(){return D()},get labelInstances(){return Zs()},get dragVisible(){return Mo()},get dragBounds(){return yt()},get grabbedBoxes(){return ke(()=>!!ta())()?Js():[]},labelZIndex:2147483647,get mouseX(){return pr().x},get mouseY(){return pr().y},get crosshairVisible(){return Po()},get inputValue(){return Bt()},get isInputExpanded(){return fo()},get replyToPrompt(){return Ns()??void 0},get hasAgent(){return ot()},get isAgentConnected(){return xs()},get agentSessions(){return Ne.sessions()},get supportsUndo(){return Cs()},get supportsFollowUp(){return Es()},get dismissButtonText(){return Ts()},onAbortSession:s=>Ne.abortSession(s),onDismissSession:s=>Ne.dismissSession(s),onUndoSession:s=>Ne.undoSession(s),onReplySession:s=>{let d=Ne.sessions().get(s),y=Ne.getSessionElement(s);if(d&&y){let T=d.position.x,N=y.getBoundingClientRect(),L=N.top+N.height/2,H=d.context.prompt;Ne.dismissSession(s),S(T),x(L),ct(y),ze(""),Qe(true),Ue(true),U(true),Ke(true),En(d.context.sessionId??s),mo(H),P()||it();}},onAcknowledgeSessionError:s=>{let d=Ne.acknowledgeSessionError(s);d&&ze(d);},onRetrySession:s=>{Ne.retrySession(s);},onInputChange:Fs,onInputSubmit:()=>void Bs(),onInputCancel:gr,onToggleExpand:Us,get isPendingDismiss(){return po()},onConfirmDismiss:Hs,onCancelDismiss:zs,get isPendingAgentAbort(){return ar()},onConfirmAgentAbort:js,onCancelAgentAbort:Vs,get nativeSelectionCursorVisible(){return on()},get nativeSelectionCursorX(){return lr()},get nativeSelectionCursorY(){return ur()},get nativeSelectionTagName(){return ho()},get nativeSelectionComponentName(){return bo()},get nativeSelectionBounds(){return fr()},onNativeSelectionCopy:()=>void Ks(),onNativeSelectionEnter:Gs,get theme(){return l()},get dockVisible(){return l().dock.enabled},get isActive(){return P()},onToggleActive:()=>{P()?Oe():(U(true),it());}}),hr),ot()&&Ne.tryResumeSessions(),{activate:()=>{P()||(U(true),it());},deactivate:()=>{P()&&Oe();},toggle:()=>{P()?Oe():(U(true),it());},isActive:()=>P(),dispose:()=>{so=false,a();},copyElement:async s=>{let d=Array.isArray(s)?s:[s];return d.length===0?false:await mr(d)},getState:()=>({isActive:P(),isDragging:_(),isCopying:$(),isInputMode:fe(),targetElement:Me(),dragBounds:yt()?{x:yt().x,y:yt().y,width:yt().width,height:yt().height}:null}),updateTheme:s=>{let d=l(),y=ps(d,s);c(y);},getTheme:()=>l(),setAgent:s=>{let d=Ne.getOptions(),y={...d,...s,provider:s.provider??d?.provider,onAbort:(T,N)=>{s?.onAbort?.(T,N),Nn(T,N);},onUndo:(T,N)=>{s?.onUndo?.(T,N),Nn(T,N);}};Ne.setOptions(y),ws(!!y.provider),Ss(!!y.provider?.undo),ks(!!y.provider?.supportsFollowUp),As(y.provider?.dismissButtonText),y.provider?.checkConnection&&y.provider.checkConnection().then(T=>{vs(T);}),Ne.tryResumeSessions();},updateOptions:s=>{r={...r,...s};}}}))};/*! Bundled license information:
|
|
44
|
+
|
|
45
|
+
bippy/dist/rdt-hook-CqLYUkwN.js:
|
|
46
|
+
(**
|
|
47
|
+
* @license bippy
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Aiden Bai
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*)
|
|
54
|
+
|
|
55
|
+
bippy/dist/core-BmxLxXeu.js:
|
|
56
|
+
(**
|
|
57
|
+
* @license bippy
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Aiden Bai
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*)
|
|
64
|
+
|
|
65
|
+
bippy/dist/source.js:
|
|
66
|
+
(**
|
|
67
|
+
* @license bippy
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Aiden Bai
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*)
|
|
74
|
+
|
|
75
|
+
bippy/dist/install-hook-only-B8zA_JcI.js:
|
|
76
|
+
(**
|
|
77
|
+
* @license bippy
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Aiden Bai
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*)
|
|
84
|
+
|
|
85
|
+
bippy/dist/index.js:
|
|
86
|
+
(**
|
|
87
|
+
* @license bippy
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Aiden Bai
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*)
|
|
94
|
+
*/export{wn as a,Cn as b,qr as c,tn as d,Sn as e,eo as f,Kp as g};
|