react-grab 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -7
- package/dist/{chunk-XWSK4QRO.cjs → chunk-2J7DC6YX.cjs} +1 -1
- package/dist/chunk-3NX6LHF6.cjs +26 -0
- package/dist/{chunk-UERZTOK6.js → chunk-MG2QQPFZ.js} +1 -1
- package/dist/chunk-T6Z6IZX5.js +26 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.global.js +2 -2
- package/dist/index.js +1 -1
- package/dist/primitives.cjs +2 -2
- package/dist/primitives.d.cts +6 -2
- package/dist/primitives.d.ts +6 -2
- package/dist/primitives.js +2 -2
- package/dist/react.cjs +3 -3
- package/dist/react.js +3 -3
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/chunk-CHTY5GHQ.cjs +0 -26
- package/dist/chunk-Z5IMKMDB.js +0 -26
package/dist/core/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3NX6LHF6_cjs=require('../chunk-3NX6LHF6.cjs'),chunk2J7DC6YX_cjs=require('../chunk-2J7DC6YX.cjs');Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.c}});Object.defineProperty(exports,"copyContent",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.a}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.f}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunk2J7DC6YX_cjs.wa}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunk2J7DC6YX_cjs.ra}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunk2J7DC6YX_cjs.la}});
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as DEFAULT_THEME,a as copyContent,b as generateSnippet,f as init}from'../chunk-
|
|
1
|
+
export{c as DEFAULT_THEME,a as copyContent,b as generateSnippet,f as init}from'../chunk-T6Z6IZX5.js';export{wa as formatElementInfo,ra as getStack,la as isInstrumentationActive}from'../chunk-MG2QQPFZ.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3NX6LHF6_cjs=require('./chunk-3NX6LHF6.cjs'),chunk2J7DC6YX_cjs=require('./chunk-2J7DC6YX.cjs');/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2025 Aiden Bai
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
var e=null,d=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,c=t=>{e=t,typeof window<"u"&&(t?window.__REACT_GRAB__=t:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?e=window.__REACT_GRAB__:(e=
|
|
9
|
+
var e=null,d=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,c=t=>{e=t,typeof window<"u"&&(t?window.__REACT_GRAB__=t:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?e=window.__REACT_GRAB__:(e=chunk3NX6LHF6_cjs.f(),window.__REACT_GRAB__=e),window.dispatchEvent(new CustomEvent("react-grab:init",{detail:e})));Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.c}});Object.defineProperty(exports,"commentPlugin",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.d}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.f}});Object.defineProperty(exports,"openPlugin",{enumerable:true,get:function(){return chunk3NX6LHF6_cjs.e}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunk2J7DC6YX_cjs.wa}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunk2J7DC6YX_cjs.ra}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunk2J7DC6YX_cjs.la}});exports.getGlobalApi=d;exports.setGlobalApi=c;
|
package/dist/index.global.js
CHANGED
|
@@ -7,7 +7,7 @@ this.globalThis=this.globalThis||{};this.globalThis.__REACT_GRAB_MODULE__=(funct
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
var sp=(e,t)=>e===t,nn=Symbol("solid-proxy"),ap=typeof Proxy=="function",Nr=Symbol("solid-track"),Gi={equals:sp},wc=Ac,Ft=1,Mr=2,xc={owned:null,cleanups:null,context:null,owner:null},ga={},$e=null,J=null,Fo=null,Ye=null,ft=null,Ct=null,Wi=0;function Tn(e,t){let n=Ye,o=$e,r=e.length===0,s=t===void 0?o:t,i=r?xc:{owned:null,cleanups:null,context:s?s.context:null,owner:s},c=r?e:()=>e(()=>Et(()=>Un(i)));$e=i,Ye=null;try{return Mt(c,!0)}finally{Ye=n,$e=o;}}function U(e,t){t=t?Object.assign({},Gi,t):Gi;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(r=r(n.value)),Sc(n,r));return [Ec.bind(n),o]}function gc(e,t,n){let o=Yi(e,t,true,Ft);Ho(o);}function te(e,t,n){let o=Yi(e,t,false,Ft);Ho(o);}function ye(e,t,n){wc=fp;let o=Yi(e,t,false,Ft);(o.user=true),Ct?Ct.push(o):Ho(o);}function se(e,t,n){n=n?Object.assign({},Gi,n):Gi;let o=Yi(e,t,true,0);return o.observers=null,o.observerSlots=null,o.comparator=n.equals||void 0,Ho(o),Ec.bind(o)}function lp(e){return e&&typeof e=="object"&&"then"in e}function wa(e,t,n){let o,r,s;typeof t=="function"?(o=e,r=t,s={}):(o=true,r=e,s=t||{});let i=null,c=ga,f=false,p="initialValue"in s,b=typeof o=="function"&&se(o),x=new Set,[H,M]=(s.storage||U)(s.initialValue),[Y,m]=U(void 0),[E,T]=U(void 0,{equals:false}),[C,R]=U(p?"ready":"unresolved");function X(L,A,w,h){return i===L&&(i=null,h!==void 0&&(p=true),(L===c||A===c)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(h,{value:A})),c=ga,fe(A,w)),A}function fe(L,A){Mt(()=>{A===void 0&&M(()=>L),R(A!==void 0?"errored":p?"ready":"unresolved"),m(A);for(let w of x.keys())w.decrement();x.clear();},false);}function j(){let L=Rr,A=H(),w=Y();if(w!==void 0&&!i)throw w;return Ye&&!Ye.user&&L,A}function le(L=true){if(L!==false&&f)return;f=false;let A=b?b():o;if(A==null||A===false){X(i,Et(H));return}let w,h=c!==ga?c:Et(()=>{try{return r(A,{value:H(),refetching:L})}catch(S){w=S;}});if(w!==void 0){X(i,void 0,Vi(w),A);return}else if(!lp(h))return X(i,h,void 0,A),h;return i=h,"v"in h?(h.s===1?X(i,h.v,void 0,A):X(i,void 0,Vi(h.v),A),h):(f=true,queueMicrotask(()=>f=false),Mt(()=>{R(p?"refreshing":"pending"),T();},false),h.then(S=>X(h,S,void 0,A),S=>X(h,void 0,Vi(S),A)))}Object.defineProperties(j,{state:{get:()=>C()},error:{get:()=>Y()},loading:{get(){let L=C();return L==="pending"||L==="refreshing"}},latest:{get(){if(!p)return j();let L=Y();if(L&&!i)throw L;return H()}}});let ue=$e;return b?gc(()=>(ue=$e,le(false))):le(false),[j,{refetch:L=>vc(ue,()=>le(L)),mutate:M}]}function Ki(e){return Mt(e,false)}function Et(e){if(Ye===null)return e();let t=Ye;Ye=null;try{return Fo?Fo.untrack(e):e()}finally{Ye=t;}}function He(e,t,n){let o=Array.isArray(e),r,s=n&&n.defer;return i=>{let c;if(o){c=Array(e.length);for(let u=0;u<e.length;u++)c[u]=e[u]();}else c=e();if(s)return s=false,i;let l=Et(()=>t(c,r,i));return r=c,l}}function mt(e){ye(()=>Et(e));}function Me(e){return $e===null||($e.cleanups===null?$e.cleanups=[e]:$e.cleanups.push(e)),e}function Xi(){return Ye}function vc(e,t){let n=$e,o=Ye;$e=e,Ye=null;try{return Mt(t,!0)}catch(r){qi(r);}finally{$e=n,Ye=o;}}var[Aw,hc]=U(false);var Rr;function Ec(){let e=J;if(this.sources&&(this.state))if((this.state)===Ft)Ho(this);else {let t=ft;ft=null,Mt(()=>Ui(this),false),ft=t;}if(Ye){let t=this.observers?this.observers.length:0;Ye.sources?(Ye.sources.push(this),Ye.sourceSlots.push(t)):(Ye.sources=[this],Ye.sourceSlots=[t]),this.observers?(this.observers.push(Ye),this.observerSlots.push(Ye.sources.length-1)):(this.observers=[Ye],this.observerSlots=[Ye.sources.length-1]);}return e&&J.sources.has(this)?this.tValue:this.value}function Sc(e,t,n){let o=e.value;if(!e.comparator||!e.comparator(o,t)){e.value=t;e.observers&&e.observers.length&&Mt(()=>{for(let r=0;r<e.observers.length;r+=1){let s=e.observers[r],i=J&&J.running;i&&J.disposed.has(s)||((i?!s.tState:!s.state)&&(s.pure?ft.push(s):Ct.push(s),s.observers&&Tc(s)),i?s.tState=Ft:s.state=Ft);}if(ft.length>1e6)throw ft=[],new Error},false);}return t}function Ho(e){if(!e.fn)return;Un(e);let t=Wi;bc(e,e.value,t);}function bc(e,t,n){let o,r=$e,s=Ye;Ye=$e=e;try{o=e.fn(t);}catch(i){return e.pure&&((e.state=Ft,e.owned&&e.owned.forEach(Un),e.owned=null)),e.updatedAt=n+1,qi(i)}finally{Ye=s,$e=r;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Sc(e,o):e.value=o,e.updatedAt=n);}function Yi(e,t,n,o=Ft,r){let s={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:$e,context:$e?$e.context:null,pure:n};if($e===null||$e!==xc&&($e.owned?$e.owned.push(s):$e.owned=[s]),Fo);return s}function Ir(e){let t=J;if((e.state)===0)return;if((e.state)===Mr)return Ui(e);if(e.suspense&&Et(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Wi);){(e.state)&&n.push(e);}for(let o=n.length-1;o>=0;o--){if(e=n[o],t);if((e.state)===Ft)Ho(e);else if((e.state)===Mr){let r=ft;ft=null,Mt(()=>Ui(e,n[0]),false),ft=r;}}}function Mt(e,t){if(ft)return e();let n=false;t||(ft=[]),Ct?n=true:Ct=[],Wi++;try{let o=e();return up(n),o}catch(o){n||(Ct=null),ft=null,qi(o);}}function up(e){if(ft&&(Ac(ft),ft=null),e)return;let n=Ct;Ct=null,n.length&&Mt(()=>wc(n),false);}function Ac(e){for(let t=0;t<e.length;t++)Ir(e[t]);}function fp(e){let t,n=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[n++]=o:Ir(o);}for(t=0;t<n;t++)Ir(e[t]);}function Ui(e,t){e.state=0;for(let o=0;o<e.sources.length;o+=1){let r=e.sources[o];if(r.sources){let s=r.state;s===Ft?r!==t&&(!r.updatedAt||r.updatedAt<Wi)&&Ir(r):s===Mr&&Ui(r,t);}}}function Tc(e){for(let n=0;n<e.observers.length;n+=1){let o=e.observers[n];(!o.state)&&(o.state=Mr,o.pure?ft.push(o):Ct.push(o),o.observers&&Tc(o));}}function Un(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),o=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){let s=r.pop(),i=n.observerSlots.pop();o<r.length&&(s.sourceSlots[i]=o,r[o]=s,n.observerSlots[o]=i);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Un(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Un(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 Vi(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function qi(e,t=$e){let o=Vi(e);throw o;}var ya=Symbol("fallback");function ji(e){for(let t=0;t<e.length;t++)e[t]();}function mp(e,t,n={}){let o=[],r=[],s=[],i=0,c=t.length>1?[]:null;return Me(()=>ji(s)),()=>{let l=e()||[],u=l.length,f,p;return l[Nr],Et(()=>{let x,H,M,Y,m,E,T,C,R;if(u===0)i!==0&&(ji(s),s=[],o=[],r=[],i=0,c&&(c=[])),n.fallback&&(o=[ya],r[0]=Tn(X=>(s[0]=X,n.fallback())),i=1);else if(i===0){for(r=new Array(u),p=0;p<u;p++)o[p]=l[p],r[p]=Tn(b);i=u;}else {for(M=new Array(u),Y=new Array(u),c&&(m=new Array(u)),E=0,T=Math.min(i,u);E<T&&o[E]===l[E];E++);for(T=i-1,C=u-1;T>=E&&C>=E&&o[T]===l[C];T--,C--)M[C]=r[T],Y[C]=s[T],c&&(m[C]=c[T]);for(x=new Map,H=new Array(C+1),p=C;p>=E;p--)R=l[p],f=x.get(R),H[p]=f===void 0?-1:f,x.set(R,p);for(f=E;f<=T;f++)R=o[f],p=x.get(R),p!==void 0&&p!==-1?(M[p]=r[f],Y[p]=s[f],c&&(m[p]=c[f]),p=H[p],x.set(R,p)):s[f]();for(p=E;p<u;p++)p in M?(r[p]=M[p],s[p]=Y[p],c&&(c[p]=m[p],c[p](p))):r[p]=Tn(b);r=r.slice(0,i=u),o=l.slice(0);}return r});function b(x){if(s[p]=x,c){let[H,M]=U(p);return c[p]=M,t(l[p],H)}return t(l[p])}}}function pp(e,t,n={}){let o=[],r=[],s=[],i=[],c=0,l;return Me(()=>ji(s)),()=>{let u=e()||[],f=u.length;return u[Nr],Et(()=>{if(f===0)return c!==0&&(ji(s),s=[],o=[],r=[],c=0,i=[]),n.fallback&&(o=[ya],r[0]=Tn(b=>(s[0]=b,n.fallback())),c=1),r;for(o[0]===ya&&(s[0](),s=[],o=[],r=[],c=0),l=0;l<f;l++)l<o.length&&o[l]!==u[l]?i[l](()=>u[l]):l>=o.length&&(r[l]=Tn(p));for(;l<o.length;l++)s[l]();return c=i.length=s.length=f,o=u.slice(0),r=r.slice(0,c)});function p(b){s[l]=b;let[x,H]=U(u[l]);return i[l]=H,t(x,l)}}}function O(e,t){return Et(()=>e(t||{}))}function zi(){return true}var hp={get(e,t,n){return t===nn?n:e.get(t)},has(e,t){return t===nn?true:e.has(t)},set:zi,deleteProperty:zi,getOwnPropertyDescriptor(e,t){return {configurable:true,enumerable:true,get(){return e.get(t)},set:zi,deleteProperty:zi}},ownKeys(e){return e.keys()}};function ha(e){return (e=typeof e=="function"?e():e)?e:{}}function bp(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function Bo(...e){let t=false;for(let i=0;i<e.length;i++){let c=e[i];t=t||!!c&&nn in c,e[i]=typeof c=="function"?(t=true,se(c)):c;}if(ap&&t)return new Proxy({get(i){for(let c=e.length-1;c>=0;c--){let l=ha(e[c])[i];if(l!==void 0)return l}},has(i){for(let c=e.length-1;c>=0;c--)if(i in ha(e[c]))return true;return false},keys(){let i=[];for(let c=0;c<e.length;c++)i.push(...Object.keys(ha(e[c])));return [...new Set(i)]}},hp);let n={},o=Object.create(null);for(let i=e.length-1;i>=0;i--){let c=e[i];if(!c)continue;let l=Object.getOwnPropertyNames(c);for(let u=l.length-1;u>=0;u--){let f=l[u];if(f==="__proto__"||f==="constructor")continue;let p=Object.getOwnPropertyDescriptor(c,f);if(!o[f])o[f]=p.get?{enumerable:true,configurable:true,get:bp.bind(n[f]=[p.get.bind(c)])}:p.value!==void 0?p:void 0;else {let b=n[f];b&&(p.get?b.push(p.get.bind(c)):p.value!==void 0&&b.push(()=>p.value));}}}let r={},s=Object.keys(o);for(let i=s.length-1;i>=0;i--){let c=s[i],l=o[c];l&&l.get?Object.defineProperty(r,c,l):r[c]=l?l.value:void 0;}return r}var yp=e=>`Stale read from <${e}>.`;function on(e){let t="fallback"in e&&{fallback:()=>e.fallback};return se(mp(()=>e.each,e.children,t||void 0))}function Zi(e){let t="fallback"in e&&{fallback:()=>e.fallback};return se(pp(()=>e.each,e.children,t||void 0))}function be(e){let t=e.keyed,n=se(()=>e.when,void 0,void 0),o=t?n:se(n,void 0,{equals:(r,s)=>!r==!s});return se(()=>{let r=o();if(r){let s=e.children;return typeof s=="function"&&s.length>0?Et(()=>s(t?r:()=>{if(!Et(o))throw yp("Show");return n()})):s}return e.fallback},void 0,void 0)}var xp=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],vp=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...xp]),Cp=new Set(["innerHTML","textContent","innerText","children"]),Ep=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Sp=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Ap(e,t){let n=Sp[e];return typeof n=="object"?n[t]?n.$:void 0:n}var Tp=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]);var Be=e=>se(()=>e());function Pp(e,t,n){let o=n.length,r=t.length,s=o,i=0,c=0,l=t[r-1].nextSibling,u=null;for(;i<r||c<s;){if(t[i]===n[c]){i++,c++;continue}for(;t[r-1]===n[s-1];)r--,s--;if(r===i){let f=s<o?c?n[c-1].nextSibling:n[s-c]:l;for(;c<s;)e.insertBefore(n[c++],f);}else if(s===c)for(;i<r;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[s-1]&&n[c]===t[r-1]){let f=t[--r].nextSibling;e.insertBefore(n[c++],t[i++].nextSibling),e.insertBefore(n[--s],f),t[r]=n[s];}else {if(!u){u=new Map;let p=c;for(;p<s;)u.set(n[p],p++);}let f=u.get(t[i]);if(f!=null)if(c<f&&f<s){let p=i,b=1,x;for(;++p<r&&p<s&&!((x=u.get(t[p]))==null||x!==f+b);)b++;if(b>f-c){let H=t[i];for(;c<f;)e.insertBefore(n[c++],H);}else e.replaceChild(n[c++],t[i++]);}else i++;else t[i++].remove();}}}var Pc="_$DX_DELEGATE";function Rc(e,t,n,o={}){let r;return Tn(s=>{r=s,t===document?e():z(t,e(),t.firstChild?null:void 0,n);},o.owner),()=>{r(),t.textContent="";}}function K(e,t,n,o){let r,s=()=>{let c=document.createElement("template");return c.innerHTML=e,c.content.firstChild},i=()=>(r||(r=s())).cloneNode(true);return i.cloneNode=i,i}function it(e,t=window.document){let n=t[Pc]||(t[Pc]=new Set);for(let o=0,r=e.length;o<r;o++){let s=e[o];n.has(s)||(n.add(s),t.addEventListener(s,Np));}}function ae(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function Op(e,t,n){(n?e.setAttribute(t,""):e.removeAttribute(t));}function Re(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function Je(e,t,n,o){if(o)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=s=>r.call(e,n[1],s));}else e.addEventListener(t,n,typeof n!="function"&&n);}function uo(e,t,n={}){let o=Object.keys(t||{}),r=Object.keys(n),s,i;for(s=0,i=r.length;s<i;s++){let c=r[s];!c||c==="undefined"||t[c]||(kc(e,c,false),delete n[c]);}for(s=0,i=o.length;s<i;s++){let c=o[s],l=!!t[c];!c||c==="undefined"||n[c]===l||!l||(kc(e,c,true),n[c]=l);}return n}function Mp(e,t,n){if(!t)return n?ae(e,"style"):t;let o=e.style;if(typeof t=="string")return o.cssText=t;typeof n=="string"&&(o.cssText=n=void 0),n||(n={}),t||(t={});let r,s;for(s in n)t[s]==null&&o.removeProperty(s),delete n[s];for(s in t)r=t[s],r!==n[s]&&(o.setProperty(s,r),n[s]=r);return n}function we(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function Lr(e,t={},n,o){let r={};return te(()=>typeof t.ref=="function"&&Ke(t.ref,e)),te(()=>Rp(e,t,n,true,r,true)),r}function Ke(e,t,n){return Et(()=>e(t,n))}function z(e,t,n,o){if(n!==void 0&&!o&&(o=[]),typeof t!="function")return Vo(e,t,o,n);te(r=>Vo(e,t(),r,n),o);}function Rp(e,t,n,o,r={},s=false){t||(t={});for(let i in r)if(!(i in t)){if(i==="children")continue;r[i]=Oc(e,i,null,r[i],n,s,t);}for(let i in t){if(i==="children"){continue}let c=t[i];r[i]=Oc(e,i,c,r[i],n,s,t);}}function Ip(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function kc(e,t,n){let o=t.trim().split(/\s+/);for(let r=0,s=o.length;r<s;r++)e.classList.toggle(o[r],n);}function Oc(e,t,n,o,r,s,i){let c,l,u,f,p;if(t==="style")return Mp(e,n,o);if(t==="classList")return uo(e,n,o);if(n===o)return o;if(t==="ref")s||n(e);else if(t.slice(0,3)==="on:"){let b=t.slice(3);o&&e.removeEventListener(b,o,typeof o!="function"&&o),n&&e.addEventListener(b,n,typeof n!="function"&&n);}else if(t.slice(0,10)==="oncapture:"){let b=t.slice(10);o&&e.removeEventListener(b,o,true),n&&e.addEventListener(b,n,true);}else if(t.slice(0,2)==="on"){let b=t.slice(2).toLowerCase(),x=Tp.has(b);if(!x&&o){let H=Array.isArray(o)?o[0]:o;e.removeEventListener(b,H);}(x||n)&&(Je(e,b,n,x),x&&it([b]));}else if(t.slice(0,5)==="attr:")ae(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Op(e,t.slice(5),n);else if((p=t.slice(0,5)==="prop:")||(u=Cp.has(t))||((f=Ap(t,e.tagName))||(l=vp.has(t)))||(c=e.nodeName.includes("-")||"is"in i)){if(p)t=t.slice(5),l=true;t==="class"||t==="className"?Re(e,n):c&&!l&&!u?e[Ip(t)]=n:e[f||t]=n;}else {ae(e,Ep[t]||t,n);}return n}function Np(e){let t=e.target,n=`$$${e.type}`,o=e.target,r=e.currentTarget,s=l=>Object.defineProperty(e,"target",{configurable:true,value:l}),i=()=>{let l=t[n];if(l&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&s(t.host),true},c=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let l=e.composedPath();s(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!i());u++){if(t._$host){t=t._$host,c();break}if(t.parentNode===r)break}}else c();s(o);}function Vo(e,t,n,o,r){for(;typeof n=="function";)n=n();if(t===n)return n;let i=typeof t,c=o!==void 0;if(e=c&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===n))return n;if(c){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=zo(e,n,o,l);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||i==="boolean"){n=zo(e,n,o);}else {if(i==="function")return te(()=>{let l=t();for(;typeof l=="function";)l=l();n=Vo(e,l,n,o);}),()=>n;if(Array.isArray(t)){let l=[],u=n&&Array.isArray(n);if(xa(l,t,n,r))return te(()=>n=Vo(e,l,n,o,true)),()=>n;if(l.length===0){if(n=zo(e,n,o),c)return n}else u?n.length===0?Mc(e,l,o):Pp(e,n,l):(n&&zo(e),Mc(e,l));n=l;}else if(t.nodeType){if(Array.isArray(n)){if(c)return n=zo(e,n,o,t);zo(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function xa(e,t,n,o){let r=false;for(let s=0,i=t.length;s<i;s++){let c=t[s],l=n&&n[e.length],u;if(!(c==null||c===true||c===false))if((u=typeof c)=="object"&&c.nodeType)e.push(c);else if(Array.isArray(c))r=xa(e,c,l)||r;else if(u==="function")if(o){for(;typeof c=="function";)c=c();r=xa(e,Array.isArray(c)?c:[c],Array.isArray(l)?l:[l])||r;}else e.push(c),r=true;else {let f=String(c);l&&l.nodeType===3&&l.data===f?e.push(l):e.push(document.createTextNode(f));}}return r}function Mc(e,t,n=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],n);}function zo(e,t,n,o){if(n===void 0)return e.textContent="";let r=o||document.createTextNode("");if(t.length){let s=false;for(let i=t.length-1;i>=0;i--){let c=t[i];if(r!==c){let l=c.parentNode===e;!s&&!i?l?e.replaceChild(r,c):e.insertBefore(r,n):l&&c.remove();}else s=true;}}else e.insertBefore(r,n);return [r]}var Ic=`/*! 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-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:"Geist",ui-sans-serif,system-ui,sans-serif;--font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--color-yellow-500:oklch(79.5% .184 86.047);--color-black:#000;--color-white:#fff;--spacing:4px;--text-sm:14px;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--radius-sm:4px;--ease-out:cubic-bezier(0,0,.2,1);--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--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);--transition-fast:.1s;--transition-normal:.15s;--transition-slow:.2s}}@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}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.touch-hitbox{position:relative}.touch-hitbox:before{content:"";width:100%;min-width:44px;height:100%;min-height:44px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-top-0\\.5{top:calc(var(--spacing)*-.5)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1\\/2{top:50%}.top-full{top:100%}.-right-0\\.5{right:calc(var(--spacing)*-.5)}.right-full{right:100%}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1\\.5{left:calc(var(--spacing)*1.5)}.left-1\\/2{left:50%}.left-2\\.5{left:calc(var(--spacing)*2.5)}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.m-0{margin:calc(var(--spacing)*0)}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-0\\.5{margin-inline:calc(var(--spacing)*.5)}.-my-1\\.5{margin-block:calc(var(--spacing)*-1.5)}.my-0\\.5{margin-block:calc(var(--spacing)*.5)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2\\.5{margin-top:calc(var(--spacing)*2.5)}.mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.mr-1\\.5{margin-right:calc(var(--spacing)*1.5)}.mr-2\\.5{margin-right:calc(var(--spacing)*2.5)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing)*2.5)}.-ml-\\[2px\\]{margin-left:-2px}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2\\.5{margin-left:calc(var(--spacing)*2.5)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-1\\.5{width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-\\[18px\\]{width:18px;height:18px}.h-0{height:calc(var(--spacing)*0)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-\\[17px\\]{height:17px}.h-fit{height:fit-content}.max-h-\\[240px\\]{max-height:240px}.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-1\\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-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}.interactive-scale{transition-property:transform;transition-duration:var(--transition-normal);transition-timing-function:cubic-bezier(.34,1.56,.64,1)}@media (hover:hover) and (pointer:fine){.interactive-scale:hover{transform:scale(1.05)}}.interactive-scale:active{transform:scale(.97)}.press-scale{transition-property:transform;transition-duration:var(--transition-fast);transition-timing-function:ease-out}.press-scale:active{transform:scale(.97)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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-2{gap:calc(var(--spacing)*2)}.gap-\\[5px\\]{gap:5px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.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-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#404040\\]{background-color:#404040}.bg-\\[\\#FEF2F2\\]{background-color:#fef2f2}.bg-black{background-color:var(--color-black)}.bg-black\\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\\/5{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.bg-black\\/25{background-color:#00000040}@supports (color:color-mix(in lab, red, red)){.bg-black\\/25{background-color:color-mix(in oklab,var(--color-black)25%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-0{padding: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\\.5{padding-block:calc(var(--spacing)*.5)}.py-0\\.25{padding-block:calc(var(--spacing)*.25)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-px{padding-block:1px}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.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)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#71717a\\]{color:#71717a}.text-\\[\\#B3B3B3\\]{color:#b3b3b3}.text-\\[\\#B91C1C\\]{color:#b91c1c}.text-\\[\\#B91C1C\\]\\/50{color:oklab(50.542% .168942 .0880134/.5)}.text-black{color:var(--color-black)}.text-black\\/25{color:#00000040}@supports (color:color-mix(in lab, red, red)){.text-black\\/25{color:color-mix(in oklab,var(--color-black)25%,transparent)}}.text-black\\/30{color:#0000004d}@supports (color:color-mix(in lab, red, red)){.text-black\\/30{color:color-mix(in oklab,var(--color-black)30%,transparent)}}.text-black\\/40{color:#0006}@supports (color:color-mix(in lab, red, red)){.text-black\\/40{color:color-mix(in oklab,var(--color-black)40%,transparent)}}.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\\/60{color:#0009}@supports (color:color-mix(in lab, red, red)){.text-black\\/60{color:color-mix(in oklab,var(--color-black)60%,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-black\\/80{color:#000c}@supports (color:color-mix(in lab, red, red)){.text-black\\/80{color:color-mix(in oklab,var(--color-black)80%,transparent)}}.text-black\\/85{color:#000000d9}@supports (color:color-mix(in lab, red, red)){.text-black\\/85{color:color-mix(in oklab,var(--color-black)85%,transparent)}}.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-35{opacity:.35}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);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_1px_2px_\\#51515140\\)\\]{filter:drop-shadow(0 1px 2px #51515140)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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-columns\\,opacity\\]{transition-property:grid-template-columns,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\,opacity\\]{transition-property:grid-template-rows,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\]{transition-property:top,left,width,height,opacity;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-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))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.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-\\[opacity\\,transform\\]{will-change:opacity,transform}.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}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.\\[grid-area\\:1\\/1\\]{grid-area:1/1}.\\[scrollbar-color\\:transparent_transparent\\]{scrollbar-color:transparent transparent}.\\[scrollbar-width\\:thin\\]{scrollbar-width:thin}.group-focus-within\\:invisible:is(:where(.group):focus-within *){visibility:hidden}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}@media (hover:hover){.group-hover\\:invisible:is(:where(.group):hover *){visibility:hidden}.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}}.before\\:\\!min-h-full:before{content:var(--tw-content);min-height:100%!important}.before\\:\\!min-w-full:before{content:var(--tw-content);min-width:100%!important}@media (hover:hover){.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#FEE2E2\\]:hover{background-color:#fee2e2}.hover\\:bg-black\\/10:hover{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/10:hover{background-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.hover\\:text-\\[\\#B91C1C\\]:hover{color:#b91c1c}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-black\\/60:hover{color:#0009}@supports (color:color-mix(in lab, red, red)){.hover\\:text-black\\/60:hover{color:color-mix(in oklab,var(--color-black)60%,transparent)}}.hover\\:opacity-100:hover{opacity:1}.hover\\:\\[scrollbar-color\\:rgba\\(0\\,0\\,0\\,0\\.15\\)_transparent\\]:hover{scrollbar-color:#00000026 transparent}}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}}:host{all:initial;direction:ltr}@keyframes shake{0%,to{transform:translate(0)}15%{transform:translate(-3px)}30%{transform:translate(3px)}45%{transform:translate(-3px)}60%{transform:translate(3px)}75%{transform:translate(-2px)}90%{transform:translate(2px)}}@keyframes pop-in{0%{opacity:0;transform:scale(.9)}70%{opacity:1;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@keyframes pop-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@keyframes slide-in-bottom{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-top{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-left{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slide-in-right{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}@keyframes success-pop{0%{opacity:0;transform:scale(.9)}60%{opacity:1;transform:scale(1.1)}80%{transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes tooltip-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes icon-loader-spin{0%{opacity:1}50%{opacity:.5}to{opacity:.2}}.icon-loader-bar{animation:.5s linear infinite icon-loader-spin}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.shimmer-text{color:#0000;background:linear-gradient(90deg,#71717a 0%,#a1a1aa 25%,#71717a 50%,#a1a1aa 75%,#71717a 100%) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.5s linear infinite shimmer}@keyframes clock-flash{0%{transform:scale(1)}25%{transform:scale(1.2)}50%{transform:scale(.92)}75%{transform:scale(1.05)}to{transform:scale(1)}}.animate-clock-flash{will-change:transform;animation:.4s ease-out clock-flash}.animate-shake{will-change:transform;animation:.3s ease-out shake}.animate-pop-in{animation:pop-in var(--transition-normal)ease-out;will-change:transform,opacity}.animate-pop-out{animation:pop-out var(--transition-normal)ease-out forwards;will-change:transform,opacity}.animate-slide-in-bottom{animation:slide-in-bottom var(--transition-slow)ease-out;will-change:transform,opacity}.animate-slide-in-top{animation:slide-in-top var(--transition-slow)ease-out;will-change:transform,opacity}.animate-slide-in-left{animation:slide-in-left var(--transition-slow)ease-out;will-change:transform,opacity}.animate-slide-in-right{animation:slide-in-right var(--transition-slow)ease-out;will-change:transform,opacity}.animate-success-pop{will-change:transform,opacity;animation:.25s ease-out success-pop}.animate-tooltip-fade-in{animation:tooltip-fade-in var(--transition-fast)ease-out;will-change:transform,opacity}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{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}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}`;var Ji=Symbol("store-raw"),Uo=Symbol("store-node"),_n=Symbol("store-has"),Nc=Symbol("store-self");function Lc(e){let t=e[nn];if(!t&&(Object.defineProperty(e,nn,{value:t=new Proxy(e,$p)}),!Array.isArray(e))){let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let r=0,s=n.length;r<s;r++){let i=n[r];o[i].get&&Object.defineProperty(e,i,{enumerable:o[i].enumerable,get:o[i].get.bind(t)});}}return t}function jo(e){let t;return e!=null&&typeof e=="object"&&(e[nn]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Wo(e,t=new Set){let n,o,r,s;if(n=e!=null&&e[Ji])return n;if(!jo(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let i=0,c=e.length;i<c;i++)r=e[i],(o=Wo(r,t))!==r&&(e[i]=o);}else {Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let i=Object.keys(e),c=Object.getOwnPropertyDescriptors(e);for(let l=0,u=i.length;l<u;l++)s=i[l],!c[s].get&&(r=e[s],(o=Wo(r,t))!==r&&(e[s]=o));}return e}function Qi(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Fr(e,t,n){if(e[t])return e[t];let[o,r]=U(n,{equals:false,internal:true});return o.$=r,e[t]=o}function Dp(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return !n||n.get||!n.configurable||t===nn||t===Uo||(delete n.value,delete n.writable,n.get=()=>e[nn][t]),n}function Dc(e){Xi()&&Fr(Qi(e,Uo),Nc)();}function Fp(e){return Dc(e),Reflect.ownKeys(e)}var $p={get(e,t,n){if(t===Ji)return e;if(t===nn)return n;if(t===Nr)return Dc(e),n;let o=Qi(e,Uo),r=o[t],s=r?r():e[t];if(t===Uo||t===_n||t==="__proto__")return s;if(!r){let i=Object.getOwnPropertyDescriptor(e,t);Xi()&&(typeof s!="function"||e.hasOwnProperty(t))&&!(i&&i.get)&&(s=Fr(o,t,s)());}return jo(s)?Lc(s):s},has(e,t){return t===Ji||t===nn||t===Nr||t===Uo||t===_n||t==="__proto__"?true:(Xi()&&Fr(Qi(e,_n),t)(),t in e)},set(){return true},deleteProperty(){return true},ownKeys:Fp,getOwnPropertyDescriptor:Dp};function Ko(e,t,n,o=false){if(!o&&e[t]===n)return;let r=e[t],s=e.length;n===void 0?(delete e[t],e[_n]&&e[_n][t]&&r!==void 0&&e[_n][t].$()):(e[t]=n,e[_n]&&e[_n][t]&&r===void 0&&e[_n][t].$());let i=Qi(e,Uo),c;if((c=Fr(i,t,r))&&c.$(()=>n),Array.isArray(e)&&e.length!==s){for(let l=e.length;l<s;l++)(c=i[l])&&c.$();(c=Fr(i,"length",s))&&c.$(e.length);}(c=i[Nc])&&c.$();}function Fc(e,t){let n=Object.keys(t);for(let o=0;o<n.length;o+=1){let r=n[o];Ko(e,r,t[r]);}}function Hp(e,t){if(typeof t=="function"&&(t=t(e)),t=Wo(t),Array.isArray(t)){if(e===t)return;let n=0,o=t.length;for(;n<o;n++){let r=t[n];e[n]!==r&&Ko(e,n,r);}Ko(e,"length",o);}else Fc(e,t);}function Dr(e,t,n=[]){let o,r=e;if(t.length>1){o=t.shift();let i=typeof o,c=Array.isArray(e);if(Array.isArray(o)){for(let l=0;l<o.length;l++)Dr(e,[o[l]].concat(t),n);return}else if(c&&i==="function"){for(let l=0;l<e.length;l++)o(e[l],l)&&Dr(e,[l].concat(t),n);return}else if(c&&i==="object"){let{from:l=0,to:u=e.length-1,by:f=1}=o;for(let p=l;p<=u;p+=f)Dr(e,[p].concat(t),n);return}else if(t.length>1){Dr(e[o],t,[o].concat(n));return}r=e[o],n=[o].concat(n);}let s=t[0];typeof s=="function"&&(s=s(r,n),s===r)||o===void 0&&s==null||(s=Wo(s),o===void 0||jo(r)&&jo(s)&&!Array.isArray(s)?Fc(r,s):Ko(e,o,s));}function ts(...[e,t]){let n=Wo(e||{}),o=Array.isArray(n),r=Lc(n);function s(...i){Ki(()=>{o&&i.length===1?Hp(n,i[0]):Dr(n,i);});}return [r,s]}var es=new WeakMap,$c={get(e,t){if(t===Ji)return e;let n=e[t],o;return jo(n)?es.get(n)||(es.set(n,o=new Proxy(n,$c)),o):n},set(e,t,n){return Ko(e,t,Wo(n)),true},deleteProperty(e,t){return Ko(e,t,void 0,true),true}};function Wt(e){return t=>{if(jo(t)){let n;(n=es.get(t))||es.set(t,n=new Proxy(t,$c)),e(n);}return t}}var Hc="0.1.24";var Xo="210, 57, 192",Bc=`rgba(${Xo}, 1)`,zc=`rgba(${Xo}, 0.4)`,Vc=`rgba(${Xo}, 0.05)`,ns=`rgba(${Xo}, 0.5)`,os=`rgba(${Xo}, 0.08)`,Gc=`rgba(${Xo}, 0.15)`,Uc=50,jn=8,jc=4,Wc=.2,va=50,Ca=16,rn=4,$r=100,Kc=15,Xc=3,Ea=["id","class","aria-label","data-testid","role","name","title"],Yc=5e3,qc=["Meta","Control","Shift","Alt"],Sa=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),Hr="data-react-grab-frozen",Aa="data-react-grab-ignore",Br=.9,Zc=1e3,Jc=2147483600,Qc=400,eu=100,_e=16,Ta=500,tu=300,nu=5,_a=150,fo=14,Pa=28,Pn=150,ou=50,ru=78,iu=28,su=1500,au=.75,ka=32,zr=3,Vr=20,Oa=100,$t=1,Ma=50,lu=50,cu=6,uu=3,Ra=2,du=16,fu=100,mu=50,Ia=.01,pu=1e3,gu=20,hu=2*1024*1024,Yo=100,Gr=200,Wn=8,qo=8,mn=8,mo=11,bu=180,yu=280,wu=100,ht="bg-white",Kt={left:-9999,top:-9999},Zo={left:"left center",right:"right center",top:"center top",bottom:"center bottom"},xu='<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>',vu=1e3,Cu=229,Na=-9999,La=new Set(["display","position","top","right","bottom","left","z-index","overflow","overflow-x","overflow-y","width","height","min-width","min-height","max-width","max-height","margin-top","margin-right","margin-bottom","margin-left","padding-top","padding-right","padding-bottom","padding-left","flex-direction","flex-wrap","justify-content","align-items","align-self","align-content","flex-grow","flex-shrink","flex-basis","order","gap","row-gap","column-gap","grid-template-columns","grid-template-rows","grid-template-areas","font-family","font-size","font-weight","font-style","line-height","letter-spacing","text-align","text-decoration-line","text-decoration-style","text-transform","text-overflow","text-shadow","white-space","word-break","overflow-wrap","vertical-align","color","background-color","background-image","background-position","background-size","background-repeat","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","box-shadow","opacity","transform","filter","backdrop-filter","object-fit","object-position"]);var Bp=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),zp=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return Bp(n)?n:null},Eu=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let o=[];for(let r of n){let s=zp(r);if(s===null)return null;o.push(s);}return o},Su=(e,t,n,o)=>e===1&&t===0&&n===0&&o===1,Vp=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,Au=e=>{if(!e||e==="none")return "none";if(e.charCodeAt(0)===109)if(e.charCodeAt(6)===51){let n=e.length-1,o=Eu(e.slice(9,n),16);if(o)return o[12]=0,o[13]=0,o[14]=0,Vp(o)?"none":`matrix3d(${o[0]}, ${o[1]}, ${o[2]}, ${o[3]}, ${o[4]}, ${o[5]}, ${o[6]}, ${o[7]}, ${o[8]}, ${o[9]}, ${o[10]}, ${o[11]}, 0, 0, 0, ${o[15]})`}else {let n=e.length-1,o=Eu(e.slice(7,n),6);if(o){let r=o[0],s=o[1],i=o[2],c=o[3];return Su(r,s,i,c)?"none":`matrix(${r}, ${s}, ${i}, ${c}, 0, 0)`}}return "none"},Tu=e=>e.isIdentity?"none":e.is2D?Su(e.a,e.b,e.c,e.d)?"none":`matrix(${e.a}, ${e.b}, ${e.c}, ${e.d}, 0, 0)`:e.m11===1&&e.m12===0&&e.m13===0&&e.m14===0&&e.m21===0&&e.m22===1&&e.m23===0&&e.m24===0&&e.m31===0&&e.m32===0&&e.m33===1&&e.m34===0&&e.m44===1?"none":`matrix3d(${e.m11}, ${e.m12}, ${e.m13}, ${e.m14}, ${e.m21}, ${e.m22}, ${e.m23}, ${e.m24}, ${e.m31}, ${e.m32}, ${e.m33}, ${e.m34}, 0, 0, 0, ${e.m44})`;var Da=new WeakMap,_u=()=>{Da=new WeakMap;},Up=(e,t)=>{let n=t&&t!=="none",o=null,r=e.parentElement,s=0;for(;r&&r!==document.documentElement&&s<cu;){let i=window.getComputedStyle(r).transform;if(i&&i!=="none")o=o?new DOMMatrix(i).multiply(o):new DOMMatrix(i);else if(!n&&!o&&s>=uu)return "none";r=r.parentElement,s++;}return o?(n&&(o=o.multiply(new DOMMatrix(t))),Tu(o)):n?Au(t):"none"},ze=e=>{let t=performance.now(),n=Da.get(e);if(n&&t-n.timestamp<16)return n.bounds;let o=e.getBoundingClientRect(),r=window.getComputedStyle(e),s=Up(e,r.transform),i;if(s!=="none"&&e instanceof HTMLElement){let c=e.offsetWidth,l=e.offsetHeight;if(c>0&&l>0){let u=o.left+o.width*.5,f=o.top+o.height*.5;i={borderRadius:r.borderRadius||"0px",height:l,transform:s,width:c,x:u-c*.5,y:f-l*.5};}else i={borderRadius:r.borderRadius||"0px",height:o.height,transform:s,width:o.width,x:o.left,y:o.top};}else i={borderRadius:r.borderRadius||"0px",height:o.height,transform:s,width:o.width,x:o.left,y:o.top};return Da.set(e,{bounds:i,timestamp:t}),i};var et=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e));var kn=e=>({x:e.x+e.width/2,y:e.y+e.height/2});var rs=({currentPosition:e,previousBounds:t,nextBounds:n})=>{if(!t||!n)return e;let o=kn(t),r=kn(n),s=t.width/2,i=e.x-o.x,c=s>0?i/s:0,l=n.width/2;return {...e,x:r.x+c*l}};var jp=e=>({current:{state:"idle"},wasActivatedByToggle:false,pendingCommentMode:false,hasAgentProvider:e.hasAgentProvider,keyHoldDuration:e.keyHoldDuration,pointer:{x:-1e3,y:-1e3},dragStart:{x:-1e3,y:-1e3},copyStart:{x:-1e3,y:-1e3},copyOffsetFromCenterX:0,detectedElement:null,frozenElement:null,frozenElements:[],frozenDragRect:null,lastGrabbedElement:null,lastCopiedElement:null,selectionFilePath:null,selectionLineNumber:null,inputText:"",pendingClickData:null,replySessionId:null,viewportVersion:0,grabbedBoxes:[],labelInstances:[],agentSessions:new Map,sessionElements:new Map,isTouchMode:false,theme:e.theme,activationTimestamp:null,previouslyFocusedElement:null,isAgentConnected:false,supportsUndo:false,supportsFollowUp:false,dismissButtonText:void 0,pendingAbortSessionId:null,contextMenuPosition:null,contextMenuElement:null,contextMenuClickOffset:null,selectedAgent:null}),Pu=e=>{let[t,n]=ts(jp(e)),o=()=>t.current.state==="active",r=()=>t.current.state==="holding",s={startHold:i=>{i!==void 0&&n("keyHoldDuration",i),n("current",{state:"holding",startedAt:Date.now()});},release:()=>{t.current.state==="holding"&&n("current",{state:"idle"});},activate:()=>{n("current",{state:"active",phase:"hovering",isPromptMode:false,isPendingDismiss:false}),n("activationTimestamp",Date.now()),n("previouslyFocusedElement",document.activeElement);},deactivate:()=>{n(Wt(i=>{i.current={state:"idle"},i.wasActivatedByToggle=false,i.pendingCommentMode=false,i.inputText="",i.frozenElement=null,i.frozenElements=[],i.frozenDragRect=null,i.pendingClickData=null,i.replySessionId=null,i.pendingAbortSessionId=null,i.activationTimestamp=null,i.previouslyFocusedElement=null,i.contextMenuPosition=null,i.contextMenuElement=null,i.contextMenuClickOffset=null,i.selectedAgent=null,i.lastCopiedElement=null;}));},toggle:()=>{t.activationTimestamp!==null?s.deactivate():(n("wasActivatedByToggle",true),s.activate());},freeze:()=>{if(t.current.state==="active"){let i=t.frozenElement??t.detectedElement;i&&n("frozenElement",i),n("current",Wt(c=>{c.state==="active"&&(c.phase="frozen");}));}},unfreeze:()=>{t.current.state==="active"&&(n("frozenElement",null),n("frozenElements",[]),n("frozenDragRect",null),n("current",Wt(i=>{i.state==="active"&&(i.phase="hovering");})));},startDrag:i=>{t.current.state==="active"&&(s.clearFrozenElement(),n("dragStart",{x:i.x+window.scrollX,y:i.y+window.scrollY}),n("current",Wt(c=>{c.state==="active"&&(c.phase="dragging");})));},endDrag:()=>{t.current.state==="active"&&t.current.phase==="dragging"&&(n("dragStart",{x:-1e3,y:-1e3}),n("current",Wt(i=>{i.state==="active"&&(i.phase="justDragged");})));},cancelDrag:()=>{t.current.state==="active"&&t.current.phase==="dragging"&&(n("dragStart",{x:-1e3,y:-1e3}),n("current",Wt(i=>{i.state==="active"&&(i.phase="hovering");})));},finishJustDragged:()=>{t.current.state==="active"&&t.current.phase==="justDragged"&&n("current",Wt(i=>{i.state==="active"&&(i.phase="hovering");}));},startCopy:()=>{let i=t.current.state==="active";n("current",{state:"copying",startedAt:Date.now(),wasActive:i});},completeCopy:i=>{n("pendingClickData",null),i&&n("lastCopiedElement",i);let c=t.current.state==="copying"?t.current.wasActive:false;n("current",{state:"justCopied",copiedAt:Date.now(),wasActive:c});},finishJustCopied:()=>{t.current.state==="justCopied"&&(t.current.wasActive&&!t.wasActivatedByToggle?(s.clearFrozenElement(),n("current",{state:"active",phase:"hovering",isPromptMode:false,isPendingDismiss:false})):s.deactivate());},enterPromptMode:(i,c)=>{let l=ze(c),u=l.x+l.width/2;n("copyStart",i),n("copyOffsetFromCenterX",i.x-u),n("pointer",i),n("frozenElement",c),n("wasActivatedByToggle",true),t.current.state!=="active"?(n("current",{state:"active",phase:"frozen",isPromptMode:true,isPendingDismiss:false}),n("activationTimestamp",Date.now()),n("previouslyFocusedElement",document.activeElement)):n("current",Wt(f=>{f.state==="active"&&(f.isPromptMode=true,f.phase="frozen");}));},exitPromptMode:()=>{t.current.state==="active"&&n("current",Wt(i=>{i.state==="active"&&(i.isPromptMode=false,i.isPendingDismiss=false);}));},setInputText:i=>{n("inputText",i);},clearInputText:()=>{n("inputText","");},setPendingDismiss:i=>{t.current.state==="active"&&n("current",Wt(c=>{c.state==="active"&&(c.isPendingDismiss=i);}));},setPointer:i=>{n("pointer",i);},setDetectedElement:i=>{n("detectedElement",i);},setFrozenElement:i=>{n("frozenElement",i),n("frozenElements",[i]),n("frozenDragRect",null);},setFrozenElements:i=>{n("frozenElements",i),n("frozenElement",i.length>0?i[0]:null),n("frozenDragRect",null);},setFrozenDragRect:i=>{n("frozenDragRect",i);},clearFrozenElement:()=>{n("frozenElement",null),n("frozenElements",[]),n("frozenDragRect",null);},setCopyStart:(i,c)=>{let l=ze(c),u=l.x+l.width/2;n("copyStart",i),n("copyOffsetFromCenterX",i.x-u);},setLastGrabbed:i=>{n("lastGrabbedElement",i);},clearLastCopied:()=>{n("lastCopiedElement",null);},setWasActivatedByToggle:i=>{n("wasActivatedByToggle",i);},setPendingCommentMode:i=>{n("pendingCommentMode",i);},setTouchMode:i=>{n("isTouchMode",i);},setSelectionSource:(i,c)=>{n("selectionFilePath",i),n("selectionLineNumber",c);},setPendingClickData:i=>{n("pendingClickData",i);},clearReplySessionId:()=>{n("replySessionId",null);},incrementViewportVersion:()=>{n("viewportVersion",i=>i+1);},addGrabbedBox:i=>{n("grabbedBoxes",c=>[...c,i]);},removeGrabbedBox:i=>{n("grabbedBoxes",c=>c.filter(l=>l.id!==i));},clearGrabbedBoxes:()=>{n("grabbedBoxes",[]);},addLabelInstance:i=>{n("labelInstances",c=>[...c,i]);},updateLabelInstance:(i,c,l)=>{let u=t.labelInstances.findIndex(f=>f.id===i);u!==-1&&n("labelInstances",u,Wt(f=>{f.status=c,l!==void 0&&(f.errorMessage=l);}));},removeLabelInstance:i=>{n("labelInstances",c=>c.filter(l=>l.id!==i));},clearLabelInstances:()=>{n("labelInstances",[]);},setHasAgentProvider:i=>{n("hasAgentProvider",i);},setAgentCapabilities:i=>{n("supportsUndo",i.supportsUndo),n("supportsFollowUp",i.supportsFollowUp),n("dismissButtonText",i.dismissButtonText),n("isAgentConnected",i.isAgentConnected);},setPendingAbortSessionId:i=>{n("pendingAbortSessionId",i);},updateSessionBounds:()=>{let i=t.agentSessions;if(i.size===0)return;let c=new Map(i),l=false;for(let[u,f]of i){let p=t.sessionElements.get(u)??null;if(et(p)){let b=ze(p),x=f.selectionBounds[0],H=rs({currentPosition:f.position,previousBounds:x,nextBounds:b});c.set(u,{...f,selectionBounds:[b],position:H}),l=true;}}l&&n("agentSessions",c);},addAgentSession:(i,c,l)=>{let u=new Map(t.agentSessions);u.set(i,c),n("agentSessions",u);let f=new Map(t.sessionElements);f.set(i,l),n("sessionElements",f);},updateAgentSessionStatus:(i,c)=>{let l=t.agentSessions.get(i);if(!l)return;let u=new Map(t.agentSessions);u.set(i,{...l,lastStatus:c}),n("agentSessions",u);},completeAgentSession:(i,c)=>{let l=t.agentSessions.get(i);if(!l)return;let u=new Map(t.agentSessions);u.set(i,{...l,isStreaming:false,lastStatus:c??l.lastStatus}),n("agentSessions",u);},setAgentSessionError:(i,c)=>{let l=t.agentSessions.get(i);if(!l)return;let u=new Map(t.agentSessions);u.set(i,{...l,isStreaming:false,error:c}),n("agentSessions",u);},removeAgentSession:i=>{let c=new Map(t.agentSessions);c.delete(i),n("agentSessions",c);let l=new Map(t.sessionElements);l.delete(i),n("sessionElements",l);},showContextMenu:(i,c)=>{let l=ze(c),u=l.x+l.width/2,f=l.y+l.height/2;n("contextMenuPosition",i),n("contextMenuElement",c),n("contextMenuClickOffset",{x:i.x-u,y:i.y-f});},hideContextMenu:()=>{n("contextMenuPosition",null),n("contextMenuElement",null),n("contextMenuClickOffset",null);},updateContextMenuPosition:()=>{let i=t.contextMenuElement,c=t.contextMenuClickOffset;if(!i||!c||!et(i))return;let l=ze(i),u=l.x+l.width/2,f=l.y+l.height/2;n("contextMenuPosition",{x:u+c.x,y:f+c.y});},setSelectedAgent:i=>{n("selectedAgent",i);}};return {store:t,setStore:n,actions:s,isActive:o,isHolding:r}};var pt=e=>(e.tagName||"").toLowerCase();var Wp=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox","combobox"],Kp=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},St=e=>{if(document.designMode==="on")return true;let t=Kp(e);if(!t)return false;if(t.isContentEditable)return true;let n=pt(t);return Wp.some(o=>o===n||o===t.role)},ku=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let n=t.selectionStart??0;return (t.selectionEnd??0)-n>0}return false},Ou=()=>{let e=window.getSelection();return e?e.toString().length>0:false};var is="data-react-grab",Mu="react-grab-fonts",Yp="https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap",qp=()=>{if(document.getElementById(Mu)||!document.head)return;let e=document.createElement("link");e.id=Mu,e.rel="stylesheet",e.href=Yp,document.head.appendChild(e);},Ru=e=>{qp();let t=document.querySelector(`[${is}]`);if(t){let i=t.shadowRoot?.querySelector(`[${is}]`);if(i instanceof HTMLDivElement&&t.shadowRoot)return i}let n=document.createElement("div");n.setAttribute(is,"true"),n.style.zIndex=String(2147483647),n.style.position="fixed",n.style.inset="0",n.style.pointerEvents="none";let o=n.attachShadow({mode:"open"});{let i=document.createElement("style");i.textContent=e,o.appendChild(i);}let r=document.createElement("div");r.setAttribute(is,"true"),o.appendChild(r);let s=document.body??document.documentElement;return s.appendChild(n),setTimeout(()=>{s.appendChild(n);},pu),r};var Fa=typeof window<"u",Zp=e=>0,Jp=e=>{},Ve=Fa?(Object.getOwnPropertyDescriptor(Window.prototype,"requestAnimationFrame")?.value??window.requestAnimationFrame).bind(window):Zp,Ge=Fa?(Object.getOwnPropertyDescriptor(Window.prototype,"cancelAnimationFrame")?.value??window.cancelAnimationFrame).bind(window):Jp,Iu=()=>Fa?new Promise(e=>Ve(()=>e())):Promise.resolve();var Du="0.5.30",ls=`bippy-${Du}`,Nu=Object.defineProperty,Qp=Object.prototype.hasOwnProperty,Ur=()=>{},Fu=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{}},cs=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&"getFiberRoots"in e),$u=false,Lu,jr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>$u?true:(e&&typeof e.inject=="function"&&(Lu=e.inject.toString()),!!Lu?.includes("(injected)")),ss=new Set,po=new Set,Hu=e=>{let t=new Map,n=0,o={_instrumentationIsActive:false,_instrumentationSource:ls,checkDCE:Fu,hasUnsupportedRendererAttached:false,inject(r){let s=++n;return t.set(s,r),po.add(r),o._instrumentationIsActive||(o._instrumentationIsActive=true,ss.forEach(i=>i())),s},on:Ur,onCommitFiberRoot:Ur,onCommitFiberUnmount:Ur,onPostCommitFiberRoot:Ur,renderers:t,supportsFiber:true,supportsFlight:true};try{Nu(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return o},set(i){if(i&&typeof i=="object"){let c=o.renderers;o=i,c.size>0&&(c.forEach((l,u)=>{po.add(l),i.renderers.set(u,l);}),as(e));}}});let r=window.hasOwnProperty,s=!1;Nu(window,"hasOwnProperty",{configurable:!0,value:function(...i){try{if(!s&&i[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,s=!0,-0}catch{}return r.apply(this,i)},writable:!0});}catch{as(e);}return o},as=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Fu,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=ls,t._instrumentationIsActive=!1;let n=cs(t);if(n||(t.on=Ur),t.renderers.size){t._instrumentationIsActive=!0,ss.forEach(s=>s());return}let o=t.inject,r=jr(t);r&&!n&&($u=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=s=>{let i=o(s);return po.add(s),r&&t.renderers.set(i,s),t._instrumentationIsActive=!0,ss.forEach(c=>c()),i};}(t.renderers.size||t._instrumentationIsActive||jr())&&e?.();}catch{}},$a=()=>Qp.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Kn=e=>$a()?(as(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Hu(e),Bu=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Ha=()=>{try{Bu()&&Kn();}catch{}};var us=0,ds=1;var Ba=5;var fs=11,za=13,zu=14,ms=15,Va=16;var Ga=19;var Ua=26,ja=27,Wa=28,Ka=30;var Jo=e=>{switch(e.tag){case ds:case fs:case us:case zu:case ms:return true;default:return false}};function Qo(e,t,n=false){if(!e)return null;let o=t(e);if(o instanceof Promise)return (async()=>{if(await o===true)return e;let s=n?e.return:e.child;for(;s;){let i=await Ya(s,t,n);if(i)return i;s=n?null:s.sibling;}return null})();if(o===true)return e;let r=n?e.return:e.child;for(;r;){let s=Xa(r,t,n);if(s)return s;r=n?null:r.sibling;}return null}var Xa=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let o=n?e.return:e.child;for(;o;){let r=Xa(o,t,n);if(r)return r;o=n?null:o.sibling;}return null},Ya=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let o=n?e.return:e.child;for(;o;){let r=await Ya(o,t,n);if(r)return r;o=n?null:o.sibling;}return null};var qa=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?qa(t.type||t.render):null},Xn=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 o=qa(t);return o&&(o.displayName||o.name)||null};var On=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return !!e?._instrumentationIsActive||cs(e)||jr(e)};var Yn=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let o=n.findFiberByHostInstance?.(e);if(o)return o}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},Za=new Set;var lg=Object.create,qu=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,ug=Object.getOwnPropertyNames,dg=Object.getPrototypeOf,fg=Object.prototype.hasOwnProperty,mg=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pg=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=ug(t),s=0,i=r.length,c;s<i;s++)c=r[s],!fg.call(e,c)&&c!==n&&qu(e,c,{get:(l=>t[l]).bind(null,c),enumerable:!(o=cg(t,c))||o.enumerable});return e},gg=(e,t,n)=>(n=e==null?{}:lg(dg(e)),pg(qu(n,"default",{value:e,enumerable:true}),e)),Vu=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,hg=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],Gu="about://React/",bg=["<anonymous>","eval",""],Zu=/\.(jsx|tsx|ts|js)$/,yg=/(\.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,wg=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,Ju="(at Server)",xg=/(^|@)\S+:\d+/,Qu=/^\s*at .*(\S+:\d+|\(native\))/m,vg=/^(eval@)?(\[native code\])?$/;var gs=(e,t)=>{{let n=e.split(`
|
|
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-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:"Geist",ui-sans-serif,system-ui,sans-serif;--font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--color-yellow-500:oklch(79.5% .184 86.047);--color-black:#000;--color-white:#fff;--spacing:4px;--text-sm:14px;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--radius-sm:4px;--ease-out:cubic-bezier(0,0,.2,1);--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--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);--transition-fast:.1s;--transition-normal:.15s;--transition-slow:.2s}}@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}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.touch-hitbox{position:relative}.touch-hitbox:before{content:"";width:100%;min-width:44px;height:100%;min-height:44px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-top-0\\.5{top:calc(var(--spacing)*-.5)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1\\/2{top:50%}.top-full{top:100%}.-right-0\\.5{right:calc(var(--spacing)*-.5)}.right-full{right:100%}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1\\.5{left:calc(var(--spacing)*1.5)}.left-1\\/2{left:50%}.left-2\\.5{left:calc(var(--spacing)*2.5)}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.m-0{margin:calc(var(--spacing)*0)}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-0\\.5{margin-inline:calc(var(--spacing)*.5)}.-my-1\\.5{margin-block:calc(var(--spacing)*-1.5)}.my-0\\.5{margin-block:calc(var(--spacing)*.5)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2\\.5{margin-top:calc(var(--spacing)*2.5)}.mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.mr-1\\.5{margin-right:calc(var(--spacing)*1.5)}.mr-2\\.5{margin-right:calc(var(--spacing)*2.5)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing)*2.5)}.-ml-\\[2px\\]{margin-left:-2px}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2\\.5{margin-left:calc(var(--spacing)*2.5)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-1\\.5{width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-\\[18px\\]{width:18px;height:18px}.h-0{height:calc(var(--spacing)*0)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-\\[17px\\]{height:17px}.h-fit{height:fit-content}.max-h-\\[240px\\]{max-height:240px}.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-1\\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-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}.interactive-scale{transition-property:transform;transition-duration:var(--transition-normal);transition-timing-function:cubic-bezier(.34,1.56,.64,1)}@media (hover:hover) and (pointer:fine){.interactive-scale:hover{transform:scale(1.05)}}.interactive-scale:active{transform:scale(.97)}.press-scale{transition-property:transform;transition-duration:var(--transition-fast);transition-timing-function:ease-out}.press-scale:active{transform:scale(.97)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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-2{gap:calc(var(--spacing)*2)}.gap-\\[5px\\]{gap:5px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.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-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#404040\\]{background-color:#404040}.bg-\\[\\#FEF2F2\\]{background-color:#fef2f2}.bg-black{background-color:var(--color-black)}.bg-black\\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\\/5{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.bg-black\\/25{background-color:#00000040}@supports (color:color-mix(in lab, red, red)){.bg-black\\/25{background-color:color-mix(in oklab,var(--color-black)25%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-0{padding: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\\.5{padding-block:calc(var(--spacing)*.5)}.py-0\\.25{padding-block:calc(var(--spacing)*.25)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-px{padding-block:1px}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.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)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#71717a\\]{color:#71717a}.text-\\[\\#B3B3B3\\]{color:#b3b3b3}.text-\\[\\#B91C1C\\]{color:#b91c1c}.text-\\[\\#B91C1C\\]\\/50{color:oklab(50.542% .168942 .0880134/.5)}.text-black{color:var(--color-black)}.text-black\\/25{color:#00000040}@supports (color:color-mix(in lab, red, red)){.text-black\\/25{color:color-mix(in oklab,var(--color-black)25%,transparent)}}.text-black\\/30{color:#0000004d}@supports (color:color-mix(in lab, red, red)){.text-black\\/30{color:color-mix(in oklab,var(--color-black)30%,transparent)}}.text-black\\/40{color:#0006}@supports (color:color-mix(in lab, red, red)){.text-black\\/40{color:color-mix(in oklab,var(--color-black)40%,transparent)}}.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\\/60{color:#0009}@supports (color:color-mix(in lab, red, red)){.text-black\\/60{color:color-mix(in oklab,var(--color-black)60%,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-black\\/80{color:#000c}@supports (color:color-mix(in lab, red, red)){.text-black\\/80{color:color-mix(in oklab,var(--color-black)80%,transparent)}}.text-black\\/85{color:#000000d9}@supports (color:color-mix(in lab, red, red)){.text-black\\/85{color:color-mix(in oklab,var(--color-black)85%,transparent)}}.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-35{opacity:.35}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);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_1px_2px_\\#51515140\\)\\]{filter:drop-shadow(0 1px 2px #51515140)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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-columns\\,opacity\\]{transition-property:grid-template-columns,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\,opacity\\]{transition-property:grid-template-rows,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\]{transition-property:top,left,width,height,opacity;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-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))}.duration-75{--tw-duration:75ms;transition-duration:75ms}.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-\\[opacity\\,transform\\]{will-change:opacity,transform}.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}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.\\[grid-area\\:1\\/1\\]{grid-area:1/1}.\\[scrollbar-color\\:transparent_transparent\\]{scrollbar-color:transparent transparent}.\\[scrollbar-width\\:thin\\]{scrollbar-width:thin}.group-focus-within\\:invisible:is(:where(.group):focus-within *){visibility:hidden}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}@media (hover:hover){.group-hover\\:invisible:is(:where(.group):hover *){visibility:hidden}.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}}.before\\:\\!min-h-full:before{content:var(--tw-content);min-height:100%!important}.before\\:\\!min-w-full:before{content:var(--tw-content);min-width:100%!important}@media (hover:hover){.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#FEE2E2\\]:hover{background-color:#fee2e2}.hover\\:bg-black\\/10:hover{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/10:hover{background-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.hover\\:text-\\[\\#B91C1C\\]:hover{color:#b91c1c}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-black\\/60:hover{color:#0009}@supports (color:color-mix(in lab, red, red)){.hover\\:text-black\\/60:hover{color:color-mix(in oklab,var(--color-black)60%,transparent)}}.hover\\:opacity-100:hover{opacity:1}.hover\\:\\[scrollbar-color\\:rgba\\(0\\,0\\,0\\,0\\.15\\)_transparent\\]:hover{scrollbar-color:#00000026 transparent}}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}}:host{all:initial;direction:ltr}@keyframes shake{0%,to{transform:translate(0)}15%{transform:translate(-3px)}30%{transform:translate(3px)}45%{transform:translate(-3px)}60%{transform:translate(3px)}75%{transform:translate(-2px)}90%{transform:translate(2px)}}@keyframes pop-in{0%{opacity:0;transform:scale(.9)}70%{opacity:1;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@keyframes pop-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@keyframes slide-in-bottom{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-top{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-left{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slide-in-right{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}@keyframes success-pop{0%{opacity:0;transform:scale(.9)}60%{opacity:1;transform:scale(1.1)}80%{transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes tooltip-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes icon-loader-spin{0%{opacity:1}50%{opacity:.5}to{opacity:.2}}.icon-loader-bar{animation:.5s linear infinite icon-loader-spin}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.shimmer-text{color:#0000;background:linear-gradient(90deg,#71717a 0%,#a1a1aa 25%,#71717a 50%,#a1a1aa 75%,#71717a 100%) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.5s linear infinite shimmer}@keyframes clock-flash{0%{transform:scale(1)}25%{transform:scale(1.2)}50%{transform:scale(.92)}75%{transform:scale(1.05)}to{transform:scale(1)}}.animate-clock-flash{will-change:transform;animation:.4s ease-out clock-flash}.animate-shake{will-change:transform;animation:.3s ease-out shake}.animate-pop-in{animation:pop-in var(--transition-normal)ease-out;will-change:transform,opacity}.animate-pop-out{animation:pop-out var(--transition-normal)ease-out forwards;will-change:transform,opacity}.animate-slide-in-bottom{animation:slide-in-bottom var(--transition-slow)ease-out;will-change:transform,opacity}.animate-slide-in-top{animation:slide-in-top var(--transition-slow)ease-out;will-change:transform,opacity}.animate-slide-in-left{animation:slide-in-left var(--transition-slow)ease-out;will-change:transform,opacity}.animate-slide-in-right{animation:slide-in-right var(--transition-slow)ease-out;will-change:transform,opacity}.animate-success-pop{will-change:transform,opacity;animation:.25s ease-out success-pop}.animate-tooltip-fade-in{animation:tooltip-fade-in var(--transition-fast)ease-out;will-change:transform,opacity}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{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}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}`;var Ji=Symbol("store-raw"),Uo=Symbol("store-node"),_n=Symbol("store-has"),Nc=Symbol("store-self");function Lc(e){let t=e[nn];if(!t&&(Object.defineProperty(e,nn,{value:t=new Proxy(e,$p)}),!Array.isArray(e))){let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let r=0,s=n.length;r<s;r++){let i=n[r];o[i].get&&Object.defineProperty(e,i,{enumerable:o[i].enumerable,get:o[i].get.bind(t)});}}return t}function jo(e){let t;return e!=null&&typeof e=="object"&&(e[nn]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Wo(e,t=new Set){let n,o,r,s;if(n=e!=null&&e[Ji])return n;if(!jo(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let i=0,c=e.length;i<c;i++)r=e[i],(o=Wo(r,t))!==r&&(e[i]=o);}else {Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let i=Object.keys(e),c=Object.getOwnPropertyDescriptors(e);for(let l=0,u=i.length;l<u;l++)s=i[l],!c[s].get&&(r=e[s],(o=Wo(r,t))!==r&&(e[s]=o));}return e}function Qi(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Fr(e,t,n){if(e[t])return e[t];let[o,r]=U(n,{equals:false,internal:true});return o.$=r,e[t]=o}function Dp(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return !n||n.get||!n.configurable||t===nn||t===Uo||(delete n.value,delete n.writable,n.get=()=>e[nn][t]),n}function Dc(e){Xi()&&Fr(Qi(e,Uo),Nc)();}function Fp(e){return Dc(e),Reflect.ownKeys(e)}var $p={get(e,t,n){if(t===Ji)return e;if(t===nn)return n;if(t===Nr)return Dc(e),n;let o=Qi(e,Uo),r=o[t],s=r?r():e[t];if(t===Uo||t===_n||t==="__proto__")return s;if(!r){let i=Object.getOwnPropertyDescriptor(e,t);Xi()&&(typeof s!="function"||e.hasOwnProperty(t))&&!(i&&i.get)&&(s=Fr(o,t,s)());}return jo(s)?Lc(s):s},has(e,t){return t===Ji||t===nn||t===Nr||t===Uo||t===_n||t==="__proto__"?true:(Xi()&&Fr(Qi(e,_n),t)(),t in e)},set(){return true},deleteProperty(){return true},ownKeys:Fp,getOwnPropertyDescriptor:Dp};function Ko(e,t,n,o=false){if(!o&&e[t]===n)return;let r=e[t],s=e.length;n===void 0?(delete e[t],e[_n]&&e[_n][t]&&r!==void 0&&e[_n][t].$()):(e[t]=n,e[_n]&&e[_n][t]&&r===void 0&&e[_n][t].$());let i=Qi(e,Uo),c;if((c=Fr(i,t,r))&&c.$(()=>n),Array.isArray(e)&&e.length!==s){for(let l=e.length;l<s;l++)(c=i[l])&&c.$();(c=Fr(i,"length",s))&&c.$(e.length);}(c=i[Nc])&&c.$();}function Fc(e,t){let n=Object.keys(t);for(let o=0;o<n.length;o+=1){let r=n[o];Ko(e,r,t[r]);}}function Hp(e,t){if(typeof t=="function"&&(t=t(e)),t=Wo(t),Array.isArray(t)){if(e===t)return;let n=0,o=t.length;for(;n<o;n++){let r=t[n];e[n]!==r&&Ko(e,n,r);}Ko(e,"length",o);}else Fc(e,t);}function Dr(e,t,n=[]){let o,r=e;if(t.length>1){o=t.shift();let i=typeof o,c=Array.isArray(e);if(Array.isArray(o)){for(let l=0;l<o.length;l++)Dr(e,[o[l]].concat(t),n);return}else if(c&&i==="function"){for(let l=0;l<e.length;l++)o(e[l],l)&&Dr(e,[l].concat(t),n);return}else if(c&&i==="object"){let{from:l=0,to:u=e.length-1,by:f=1}=o;for(let p=l;p<=u;p+=f)Dr(e,[p].concat(t),n);return}else if(t.length>1){Dr(e[o],t,[o].concat(n));return}r=e[o],n=[o].concat(n);}let s=t[0];typeof s=="function"&&(s=s(r,n),s===r)||o===void 0&&s==null||(s=Wo(s),o===void 0||jo(r)&&jo(s)&&!Array.isArray(s)?Fc(r,s):Ko(e,o,s));}function ts(...[e,t]){let n=Wo(e||{}),o=Array.isArray(n),r=Lc(n);function s(...i){Ki(()=>{o&&i.length===1?Hp(n,i[0]):Dr(n,i);});}return [r,s]}var es=new WeakMap,$c={get(e,t){if(t===Ji)return e;let n=e[t],o;return jo(n)?es.get(n)||(es.set(n,o=new Proxy(n,$c)),o):n},set(e,t,n){return Ko(e,t,Wo(n)),true},deleteProperty(e,t){return Ko(e,t,void 0,true),true}};function Wt(e){return t=>{if(jo(t)){let n;(n=es.get(t))||es.set(t,n=new Proxy(t,$c)),e(n);}return t}}var Hc="0.1.25";var Xo="210, 57, 192",Bc=`rgba(${Xo}, 1)`,zc=`rgba(${Xo}, 0.4)`,Vc=`rgba(${Xo}, 0.05)`,ns=`rgba(${Xo}, 0.5)`,os=`rgba(${Xo}, 0.08)`,Gc=`rgba(${Xo}, 0.15)`,Uc=50,jn=8,jc=4,Wc=.2,va=50,Ca=16,rn=4,$r=100,Kc=15,Xc=3,Ea=["id","class","aria-label","data-testid","role","name","title"],Yc=5e3,qc=["Meta","Control","Shift","Alt"],Sa=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),Hr="data-react-grab-frozen",Aa="data-react-grab-ignore",Br=.9,Zc=1e3,Jc=2147483600,Qc=400,eu=100,_e=16,Ta=500,tu=300,nu=5,_a=150,fo=14,Pa=28,Pn=150,ou=50,ru=78,iu=28,su=1500,au=.75,ka=32,zr=3,Vr=20,Oa=100,$t=1,Ma=50,lu=50,cu=6,uu=3,Ra=2,du=16,fu=100,mu=50,Ia=.01,pu=1e3,gu=20,hu=2*1024*1024,Yo=100,Gr=200,Wn=8,qo=8,mn=8,mo=11,bu=180,yu=280,wu=100,ht="bg-white",Kt={left:-9999,top:-9999},Zo={left:"left center",right:"right center",top:"center top",bottom:"center bottom"},xu='<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>',vu=1e3,Cu=229,Na=-9999,La=new Set(["display","position","top","right","bottom","left","z-index","overflow","overflow-x","overflow-y","width","height","min-width","min-height","max-width","max-height","margin-top","margin-right","margin-bottom","margin-left","padding-top","padding-right","padding-bottom","padding-left","flex-direction","flex-wrap","justify-content","align-items","align-self","align-content","flex-grow","flex-shrink","flex-basis","order","gap","row-gap","column-gap","grid-template-columns","grid-template-rows","grid-template-areas","font-family","font-size","font-weight","font-style","line-height","letter-spacing","text-align","text-decoration-line","text-decoration-style","text-transform","text-overflow","text-shadow","white-space","word-break","overflow-wrap","vertical-align","color","background-color","background-image","background-position","background-size","background-repeat","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","box-shadow","opacity","transform","filter","backdrop-filter","object-fit","object-position"]);var Bp=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),zp=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return Bp(n)?n:null},Eu=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let o=[];for(let r of n){let s=zp(r);if(s===null)return null;o.push(s);}return o},Su=(e,t,n,o)=>e===1&&t===0&&n===0&&o===1,Vp=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,Au=e=>{if(!e||e==="none")return "none";if(e.charCodeAt(0)===109)if(e.charCodeAt(6)===51){let n=e.length-1,o=Eu(e.slice(9,n),16);if(o)return o[12]=0,o[13]=0,o[14]=0,Vp(o)?"none":`matrix3d(${o[0]}, ${o[1]}, ${o[2]}, ${o[3]}, ${o[4]}, ${o[5]}, ${o[6]}, ${o[7]}, ${o[8]}, ${o[9]}, ${o[10]}, ${o[11]}, 0, 0, 0, ${o[15]})`}else {let n=e.length-1,o=Eu(e.slice(7,n),6);if(o){let r=o[0],s=o[1],i=o[2],c=o[3];return Su(r,s,i,c)?"none":`matrix(${r}, ${s}, ${i}, ${c}, 0, 0)`}}return "none"},Tu=e=>e.isIdentity?"none":e.is2D?Su(e.a,e.b,e.c,e.d)?"none":`matrix(${e.a}, ${e.b}, ${e.c}, ${e.d}, 0, 0)`:e.m11===1&&e.m12===0&&e.m13===0&&e.m14===0&&e.m21===0&&e.m22===1&&e.m23===0&&e.m24===0&&e.m31===0&&e.m32===0&&e.m33===1&&e.m34===0&&e.m44===1?"none":`matrix3d(${e.m11}, ${e.m12}, ${e.m13}, ${e.m14}, ${e.m21}, ${e.m22}, ${e.m23}, ${e.m24}, ${e.m31}, ${e.m32}, ${e.m33}, ${e.m34}, 0, 0, 0, ${e.m44})`;var Da=new WeakMap,_u=()=>{Da=new WeakMap;},Up=(e,t)=>{let n=t&&t!=="none",o=null,r=e.parentElement,s=0;for(;r&&r!==document.documentElement&&s<cu;){let i=window.getComputedStyle(r).transform;if(i&&i!=="none")o=o?new DOMMatrix(i).multiply(o):new DOMMatrix(i);else if(!n&&!o&&s>=uu)return "none";r=r.parentElement,s++;}return o?(n&&(o=o.multiply(new DOMMatrix(t))),Tu(o)):n?Au(t):"none"},ze=e=>{let t=performance.now(),n=Da.get(e);if(n&&t-n.timestamp<16)return n.bounds;let o=e.getBoundingClientRect(),r=window.getComputedStyle(e),s=Up(e,r.transform),i;if(s!=="none"&&e instanceof HTMLElement){let c=e.offsetWidth,l=e.offsetHeight;if(c>0&&l>0){let u=o.left+o.width*.5,f=o.top+o.height*.5;i={borderRadius:r.borderRadius||"0px",height:l,transform:s,width:c,x:u-c*.5,y:f-l*.5};}else i={borderRadius:r.borderRadius||"0px",height:o.height,transform:s,width:o.width,x:o.left,y:o.top};}else i={borderRadius:r.borderRadius||"0px",height:o.height,transform:s,width:o.width,x:o.left,y:o.top};return Da.set(e,{bounds:i,timestamp:t}),i};var et=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e));var kn=e=>({x:e.x+e.width/2,y:e.y+e.height/2});var rs=({currentPosition:e,previousBounds:t,nextBounds:n})=>{if(!t||!n)return e;let o=kn(t),r=kn(n),s=t.width/2,i=e.x-o.x,c=s>0?i/s:0,l=n.width/2;return {...e,x:r.x+c*l}};var jp=e=>({current:{state:"idle"},wasActivatedByToggle:false,pendingCommentMode:false,hasAgentProvider:e.hasAgentProvider,keyHoldDuration:e.keyHoldDuration,pointer:{x:-1e3,y:-1e3},dragStart:{x:-1e3,y:-1e3},copyStart:{x:-1e3,y:-1e3},copyOffsetFromCenterX:0,detectedElement:null,frozenElement:null,frozenElements:[],frozenDragRect:null,lastGrabbedElement:null,lastCopiedElement:null,selectionFilePath:null,selectionLineNumber:null,inputText:"",pendingClickData:null,replySessionId:null,viewportVersion:0,grabbedBoxes:[],labelInstances:[],agentSessions:new Map,sessionElements:new Map,isTouchMode:false,theme:e.theme,activationTimestamp:null,previouslyFocusedElement:null,isAgentConnected:false,supportsUndo:false,supportsFollowUp:false,dismissButtonText:void 0,pendingAbortSessionId:null,contextMenuPosition:null,contextMenuElement:null,contextMenuClickOffset:null,selectedAgent:null}),Pu=e=>{let[t,n]=ts(jp(e)),o=()=>t.current.state==="active",r=()=>t.current.state==="holding",s={startHold:i=>{i!==void 0&&n("keyHoldDuration",i),n("current",{state:"holding",startedAt:Date.now()});},release:()=>{t.current.state==="holding"&&n("current",{state:"idle"});},activate:()=>{n("current",{state:"active",phase:"hovering",isPromptMode:false,isPendingDismiss:false}),n("activationTimestamp",Date.now()),n("previouslyFocusedElement",document.activeElement);},deactivate:()=>{n(Wt(i=>{i.current={state:"idle"},i.wasActivatedByToggle=false,i.pendingCommentMode=false,i.inputText="",i.frozenElement=null,i.frozenElements=[],i.frozenDragRect=null,i.pendingClickData=null,i.replySessionId=null,i.pendingAbortSessionId=null,i.activationTimestamp=null,i.previouslyFocusedElement=null,i.contextMenuPosition=null,i.contextMenuElement=null,i.contextMenuClickOffset=null,i.selectedAgent=null,i.lastCopiedElement=null;}));},toggle:()=>{t.activationTimestamp!==null?s.deactivate():(n("wasActivatedByToggle",true),s.activate());},freeze:()=>{if(t.current.state==="active"){let i=t.frozenElement??t.detectedElement;i&&n("frozenElement",i),n("current",Wt(c=>{c.state==="active"&&(c.phase="frozen");}));}},unfreeze:()=>{t.current.state==="active"&&(n("frozenElement",null),n("frozenElements",[]),n("frozenDragRect",null),n("current",Wt(i=>{i.state==="active"&&(i.phase="hovering");})));},startDrag:i=>{t.current.state==="active"&&(s.clearFrozenElement(),n("dragStart",{x:i.x+window.scrollX,y:i.y+window.scrollY}),n("current",Wt(c=>{c.state==="active"&&(c.phase="dragging");})));},endDrag:()=>{t.current.state==="active"&&t.current.phase==="dragging"&&(n("dragStart",{x:-1e3,y:-1e3}),n("current",Wt(i=>{i.state==="active"&&(i.phase="justDragged");})));},cancelDrag:()=>{t.current.state==="active"&&t.current.phase==="dragging"&&(n("dragStart",{x:-1e3,y:-1e3}),n("current",Wt(i=>{i.state==="active"&&(i.phase="hovering");})));},finishJustDragged:()=>{t.current.state==="active"&&t.current.phase==="justDragged"&&n("current",Wt(i=>{i.state==="active"&&(i.phase="hovering");}));},startCopy:()=>{let i=t.current.state==="active";n("current",{state:"copying",startedAt:Date.now(),wasActive:i});},completeCopy:i=>{n("pendingClickData",null),i&&n("lastCopiedElement",i);let c=t.current.state==="copying"?t.current.wasActive:false;n("current",{state:"justCopied",copiedAt:Date.now(),wasActive:c});},finishJustCopied:()=>{t.current.state==="justCopied"&&(t.current.wasActive&&!t.wasActivatedByToggle?(s.clearFrozenElement(),n("current",{state:"active",phase:"hovering",isPromptMode:false,isPendingDismiss:false})):s.deactivate());},enterPromptMode:(i,c)=>{let l=ze(c),u=l.x+l.width/2;n("copyStart",i),n("copyOffsetFromCenterX",i.x-u),n("pointer",i),n("frozenElement",c),n("wasActivatedByToggle",true),t.current.state!=="active"?(n("current",{state:"active",phase:"frozen",isPromptMode:true,isPendingDismiss:false}),n("activationTimestamp",Date.now()),n("previouslyFocusedElement",document.activeElement)):n("current",Wt(f=>{f.state==="active"&&(f.isPromptMode=true,f.phase="frozen");}));},exitPromptMode:()=>{t.current.state==="active"&&n("current",Wt(i=>{i.state==="active"&&(i.isPromptMode=false,i.isPendingDismiss=false);}));},setInputText:i=>{n("inputText",i);},clearInputText:()=>{n("inputText","");},setPendingDismiss:i=>{t.current.state==="active"&&n("current",Wt(c=>{c.state==="active"&&(c.isPendingDismiss=i);}));},setPointer:i=>{n("pointer",i);},setDetectedElement:i=>{n("detectedElement",i);},setFrozenElement:i=>{n("frozenElement",i),n("frozenElements",[i]),n("frozenDragRect",null);},setFrozenElements:i=>{n("frozenElements",i),n("frozenElement",i.length>0?i[0]:null),n("frozenDragRect",null);},setFrozenDragRect:i=>{n("frozenDragRect",i);},clearFrozenElement:()=>{n("frozenElement",null),n("frozenElements",[]),n("frozenDragRect",null);},setCopyStart:(i,c)=>{let l=ze(c),u=l.x+l.width/2;n("copyStart",i),n("copyOffsetFromCenterX",i.x-u);},setLastGrabbed:i=>{n("lastGrabbedElement",i);},clearLastCopied:()=>{n("lastCopiedElement",null);},setWasActivatedByToggle:i=>{n("wasActivatedByToggle",i);},setPendingCommentMode:i=>{n("pendingCommentMode",i);},setTouchMode:i=>{n("isTouchMode",i);},setSelectionSource:(i,c)=>{n("selectionFilePath",i),n("selectionLineNumber",c);},setPendingClickData:i=>{n("pendingClickData",i);},clearReplySessionId:()=>{n("replySessionId",null);},incrementViewportVersion:()=>{n("viewportVersion",i=>i+1);},addGrabbedBox:i=>{n("grabbedBoxes",c=>[...c,i]);},removeGrabbedBox:i=>{n("grabbedBoxes",c=>c.filter(l=>l.id!==i));},clearGrabbedBoxes:()=>{n("grabbedBoxes",[]);},addLabelInstance:i=>{n("labelInstances",c=>[...c,i]);},updateLabelInstance:(i,c,l)=>{let u=t.labelInstances.findIndex(f=>f.id===i);u!==-1&&n("labelInstances",u,Wt(f=>{f.status=c,l!==void 0&&(f.errorMessage=l);}));},removeLabelInstance:i=>{n("labelInstances",c=>c.filter(l=>l.id!==i));},clearLabelInstances:()=>{n("labelInstances",[]);},setHasAgentProvider:i=>{n("hasAgentProvider",i);},setAgentCapabilities:i=>{n("supportsUndo",i.supportsUndo),n("supportsFollowUp",i.supportsFollowUp),n("dismissButtonText",i.dismissButtonText),n("isAgentConnected",i.isAgentConnected);},setPendingAbortSessionId:i=>{n("pendingAbortSessionId",i);},updateSessionBounds:()=>{let i=t.agentSessions;if(i.size===0)return;let c=new Map(i),l=false;for(let[u,f]of i){let p=t.sessionElements.get(u)??null;if(et(p)){let b=ze(p),x=f.selectionBounds[0],H=rs({currentPosition:f.position,previousBounds:x,nextBounds:b});c.set(u,{...f,selectionBounds:[b],position:H}),l=true;}}l&&n("agentSessions",c);},addAgentSession:(i,c,l)=>{let u=new Map(t.agentSessions);u.set(i,c),n("agentSessions",u);let f=new Map(t.sessionElements);f.set(i,l),n("sessionElements",f);},updateAgentSessionStatus:(i,c)=>{let l=t.agentSessions.get(i);if(!l)return;let u=new Map(t.agentSessions);u.set(i,{...l,lastStatus:c}),n("agentSessions",u);},completeAgentSession:(i,c)=>{let l=t.agentSessions.get(i);if(!l)return;let u=new Map(t.agentSessions);u.set(i,{...l,isStreaming:false,lastStatus:c??l.lastStatus}),n("agentSessions",u);},setAgentSessionError:(i,c)=>{let l=t.agentSessions.get(i);if(!l)return;let u=new Map(t.agentSessions);u.set(i,{...l,isStreaming:false,error:c}),n("agentSessions",u);},removeAgentSession:i=>{let c=new Map(t.agentSessions);c.delete(i),n("agentSessions",c);let l=new Map(t.sessionElements);l.delete(i),n("sessionElements",l);},showContextMenu:(i,c)=>{let l=ze(c),u=l.x+l.width/2,f=l.y+l.height/2;n("contextMenuPosition",i),n("contextMenuElement",c),n("contextMenuClickOffset",{x:i.x-u,y:i.y-f});},hideContextMenu:()=>{n("contextMenuPosition",null),n("contextMenuElement",null),n("contextMenuClickOffset",null);},updateContextMenuPosition:()=>{let i=t.contextMenuElement,c=t.contextMenuClickOffset;if(!i||!c||!et(i))return;let l=ze(i),u=l.x+l.width/2,f=l.y+l.height/2;n("contextMenuPosition",{x:u+c.x,y:f+c.y});},setSelectedAgent:i=>{n("selectedAgent",i);}};return {store:t,setStore:n,actions:s,isActive:o,isHolding:r}};var pt=e=>(e.tagName||"").toLowerCase();var Wp=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox","combobox"],Kp=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},St=e=>{if(document.designMode==="on")return true;let t=Kp(e);if(!t)return false;if(t.isContentEditable)return true;let n=pt(t);return Wp.some(o=>o===n||o===t.role)},ku=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let n=t.selectionStart??0;return (t.selectionEnd??0)-n>0}return false},Ou=()=>{let e=window.getSelection();return e?e.toString().length>0:false};var is="data-react-grab",Mu="react-grab-fonts",Yp="https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap",qp=()=>{if(document.getElementById(Mu)||!document.head)return;let e=document.createElement("link");e.id=Mu,e.rel="stylesheet",e.href=Yp,document.head.appendChild(e);},Ru=e=>{qp();let t=document.querySelector(`[${is}]`);if(t){let i=t.shadowRoot?.querySelector(`[${is}]`);if(i instanceof HTMLDivElement&&t.shadowRoot)return i}let n=document.createElement("div");n.setAttribute(is,"true"),n.style.zIndex=String(2147483647),n.style.position="fixed",n.style.inset="0",n.style.pointerEvents="none";let o=n.attachShadow({mode:"open"});{let i=document.createElement("style");i.textContent=e,o.appendChild(i);}let r=document.createElement("div");r.setAttribute(is,"true"),o.appendChild(r);let s=document.body??document.documentElement;return s.appendChild(n),setTimeout(()=>{s.appendChild(n);},pu),r};var Fa=typeof window<"u",Zp=e=>0,Jp=e=>{},Ve=Fa?(Object.getOwnPropertyDescriptor(Window.prototype,"requestAnimationFrame")?.value??window.requestAnimationFrame).bind(window):Zp,Ge=Fa?(Object.getOwnPropertyDescriptor(Window.prototype,"cancelAnimationFrame")?.value??window.cancelAnimationFrame).bind(window):Jp,Iu=()=>Fa?new Promise(e=>Ve(()=>e())):Promise.resolve();var Du="0.5.30",ls=`bippy-${Du}`,Nu=Object.defineProperty,Qp=Object.prototype.hasOwnProperty,Ur=()=>{},Fu=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{}},cs=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&"getFiberRoots"in e),$u=false,Lu,jr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>$u?true:(e&&typeof e.inject=="function"&&(Lu=e.inject.toString()),!!Lu?.includes("(injected)")),ss=new Set,po=new Set,Hu=e=>{let t=new Map,n=0,o={_instrumentationIsActive:false,_instrumentationSource:ls,checkDCE:Fu,hasUnsupportedRendererAttached:false,inject(r){let s=++n;return t.set(s,r),po.add(r),o._instrumentationIsActive||(o._instrumentationIsActive=true,ss.forEach(i=>i())),s},on:Ur,onCommitFiberRoot:Ur,onCommitFiberUnmount:Ur,onPostCommitFiberRoot:Ur,renderers:t,supportsFiber:true,supportsFlight:true};try{Nu(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return o},set(i){if(i&&typeof i=="object"){let c=o.renderers;o=i,c.size>0&&(c.forEach((l,u)=>{po.add(l),i.renderers.set(u,l);}),as(e));}}});let r=window.hasOwnProperty,s=!1;Nu(window,"hasOwnProperty",{configurable:!0,value:function(...i){try{if(!s&&i[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,s=!0,-0}catch{}return r.apply(this,i)},writable:!0});}catch{as(e);}return o},as=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Fu,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=ls,t._instrumentationIsActive=!1;let n=cs(t);if(n||(t.on=Ur),t.renderers.size){t._instrumentationIsActive=!0,ss.forEach(s=>s());return}let o=t.inject,r=jr(t);r&&!n&&($u=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=s=>{let i=o(s);return po.add(s),r&&t.renderers.set(i,s),t._instrumentationIsActive=!0,ss.forEach(c=>c()),i};}(t.renderers.size||t._instrumentationIsActive||jr())&&e?.();}catch{}},$a=()=>Qp.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Kn=e=>$a()?(as(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Hu(e),Bu=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Ha=()=>{try{Bu()&&Kn();}catch{}};var us=0,ds=1;var Ba=5;var fs=11,za=13,zu=14,ms=15,Va=16;var Ga=19;var Ua=26,ja=27,Wa=28,Ka=30;var Jo=e=>{switch(e.tag){case ds:case fs:case us:case zu:case ms:return true;default:return false}};function Qo(e,t,n=false){if(!e)return null;let o=t(e);if(o instanceof Promise)return (async()=>{if(await o===true)return e;let s=n?e.return:e.child;for(;s;){let i=await Ya(s,t,n);if(i)return i;s=n?null:s.sibling;}return null})();if(o===true)return e;let r=n?e.return:e.child;for(;r;){let s=Xa(r,t,n);if(s)return s;r=n?null:r.sibling;}return null}var Xa=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let o=n?e.return:e.child;for(;o;){let r=Xa(o,t,n);if(r)return r;o=n?null:o.sibling;}return null},Ya=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let o=n?e.return:e.child;for(;o;){let r=await Ya(o,t,n);if(r)return r;o=n?null:o.sibling;}return null};var qa=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?qa(t.type||t.render):null},Xn=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 o=qa(t);return o&&(o.displayName||o.name)||null};var On=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return !!e?._instrumentationIsActive||cs(e)||jr(e)};var Yn=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let o=n.findFiberByHostInstance?.(e);if(o)return o}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},Za=new Set;var lg=Object.create,qu=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,ug=Object.getOwnPropertyNames,dg=Object.getPrototypeOf,fg=Object.prototype.hasOwnProperty,mg=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pg=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=ug(t),s=0,i=r.length,c;s<i;s++)c=r[s],!fg.call(e,c)&&c!==n&&qu(e,c,{get:(l=>t[l]).bind(null,c),enumerable:!(o=cg(t,c))||o.enumerable});return e},gg=(e,t,n)=>(n=e==null?{}:lg(dg(e)),pg(qu(n,"default",{value:e,enumerable:true}),e)),Vu=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,hg=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],Gu="about://React/",bg=["<anonymous>","eval",""],Zu=/\.(jsx|tsx|ts|js)$/,yg=/(\.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,wg=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,Ju="(at Server)",xg=/(^|@)\S+:\d+/,Qu=/^\s*at .*(\S+:\d+|\(native\))/m,vg=/^(eval@)?(\[native code\])?$/;var gs=(e,t)=>{{let n=e.split(`
|
|
11
11
|
`),o=[];for(let r of n)if(/^\s*at\s+/.test(r)){let s=Uu(r,void 0)[0];s&&o.push(s);}else if(/^\s*in\s+/.test(r)){let s=r.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");o.push({functionName:s,source:r});}else if(r.match(xg)){let s=ju(r,void 0)[0];s&&o.push(s);}return el(o,t)}},ed=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=e.startsWith("(")&&/:\d+\)$/.test(e),n=t?e.slice(1,-1):e,o=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=o.exec(n);return r?[r[1],r[2]||void 0,r[3]||void 0]:[n,void 0,void 0]},el=(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 Uu=(e,t)=>el(e.split(`
|
|
12
12
|
`).filter(o=>!!o.match(Qu)),t).map(o=>{let r=o;r.includes("(eval ")&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let s=r.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=s.match(/ (\(.+\)$)/);s=i?s.replace(i[0],""):s;let c=ed(i?i[1]:s),l=i&&s||void 0,u=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return {functionName:l,fileName:u,lineNumber:c[1]?+c[1]:void 0,columnNumber:c[2]?+c[2]:void 0,source:r}});var ju=(e,t)=>el(e.split(`
|
|
13
13
|
`).filter(o=>!o.match(vg)),t).map(o=>{let r=o;if(r.includes(" > eval")&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!r.includes("@")&&!r.includes(":"))return {functionName:r};{let s=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,i=r.match(s),c=i&&i[1]?i[1]:void 0,l=ed(r.replace(s,""));return {functionName:c,fileName:l[0],lineNumber:l[1]?+l[1]:void 0,columnNumber:l[2]?+l[2]:void 0,source:r}}});var Cg=mg((e,t)=>{(function(n,o){typeof e=="object"&&t!==void 0?o(e):typeof define=="function"&&define.amd?define(["exports"],o):(n=typeof globalThis<"u"?globalThis:n||self,o(n.sourcemapCodec={}));})(void 0,function(n){let o=44,r=59,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),c=new Uint8Array(128);for(let L=0;L<s.length;L++){let A=s.charCodeAt(L);i[L]=A,c[A]=L;}function l(L,A){let w=0,h=0,S=0;do{let B=L.next();S=c[B],w|=(S&31)<<h,h+=5;}while(S&32);let D=w&1;return w>>>=1,D&&(w=-2147483648|-w),A+w}function u(L,A,w){let h=A-w;h=h<0?-h<<1|1:h<<1;do{let S=h&31;h>>>=5,h>0&&(S|=32),L.write(i[S]);}while(h>0);return A}function f(L,A){return L.pos>=A?false:L.peek()!==o}let p=1024*16,b=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(L){return Buffer.from(L.buffer,L.byteOffset,L.byteLength).toString()}}:{decode(L){let A="";for(let w=0;w<L.length;w++)A+=String.fromCharCode(L[w]);return A}};class x{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(p);}write(A){let{buffer:w}=this;w[this.pos++]=A,this.pos===p&&(this.out+=b.decode(w),this.pos=0);}flush(){let{buffer:A,out:w,pos:h}=this;return h>0?w+b.decode(A.subarray(0,h)):w}}class H{constructor(A){this.pos=0,this.buffer=A;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(A){let{buffer:w,pos:h}=this,S=w.indexOf(A,h);return S===-1?w.length:S}}let M=[];function Y(L){let{length:A}=L,w=new H(L),h=[],S=[],D=0;for(;w.pos<A;w.pos++){D=l(w,D);let B=l(w,0);if(!f(w,A)){let V=S.pop();V[2]=D,V[3]=B;continue}let y=l(w,0),v=l(w,0),$=v&1,N=$?[D,B,0,0,y,l(w,0)]:[D,B,0,0,y],W=M;if(f(w,A)){W=[];do{let V=l(w,0);W.push(V);}while(f(w,A))}N.vars=W,h.push(N),S.push(N);}return h}function m(L){let A=new x;for(let w=0;w<L.length;)w=E(L,w,A,[0]);return A.flush()}function E(L,A,w,h){let S=L[A],{0:D,1:B,2:y,3:v,4:$,vars:N}=S;A>0&&w.write(o),h[0]=u(w,D,h[0]),u(w,B,0),u(w,$,0);let W=S.length===6?1:0;u(w,W,0),S.length===6&&u(w,S[5],0);for(let V of N)u(w,V,0);for(A++;A<L.length;){let V=L[A],{0:oe,1:de}=V;if(oe>y||oe===y&&de>=v)break;A=E(L,A,w,h);}return w.write(o),h[0]=u(w,y,h[0]),u(w,v,0),A}function T(L){let{length:A}=L,w=new H(L),h=[],S=[],D=0,B=0,y=0,v=0,$=0,N=0,W=0,V=0;do{let oe=w.indexOf(";"),de=0;for(;w.pos<oe;w.pos++){if(de=l(w,de),!f(w,oe)){let pe=S.pop();pe[2]=D,pe[3]=de;continue}let I=l(w,0),G=I&1,Q=I&2,Ae=I&4,me=null,Se=M,ie;if(G){let pe=l(w,B);y=l(w,B===pe?y:0),B=pe,ie=[D,de,0,0,pe,y];}else ie=[D,de,0,0];if(ie.isScope=!!Ae,Q){let pe=v,ke=$;v=l(w,v);let Pe=pe===v;$=l(w,Pe?$:0),N=l(w,Pe&&ke===$?N:0),me=[v,$,N];}if(ie.callsite=me,f(w,oe)){Se=[];do{W=D,V=de;let pe=l(w,0),ke;if(pe<-1){ke=[[l(w,0)]];for(let Pe=-1;Pe>pe;Pe--){let ge=W;W=l(w,W),V=l(w,W===ge?V:0);let Te=l(w,0);ke.push([Te,W,V]);}}else ke=[[pe]];Se.push(ke);}while(f(w,oe))}ie.bindings=Se,h.push(ie),S.push(ie);}D++,w.pos=oe+1;}while(w.pos<A);return h}function C(L){if(L.length===0)return "";let A=new x;for(let w=0;w<L.length;)w=R(L,w,A,[0,0,0,0,0,0,0]);return A.flush()}function R(L,A,w,h){let S=L[A],{0:D,1:B,2:y,3:v,isScope:$,callsite:N,bindings:W}=S;h[0]<D?(X(w,h[0],D),h[0]=D,h[1]=0):A>0&&w.write(o),h[1]=u(w,S[1],h[1]);let V=(S.length===6?1:0)|(N?2:0)|($?4:0);if(u(w,V,0),S.length===6){let{4:oe,5:de}=S;oe!==h[2]&&(h[3]=0),h[2]=u(w,oe,h[2]),h[3]=u(w,de,h[3]);}if(N){let{0:oe,1:de,2:I}=S.callsite;oe===h[4]?de!==h[5]&&(h[6]=0):(h[5]=0,h[6]=0),h[4]=u(w,oe,h[4]),h[5]=u(w,de,h[5]),h[6]=u(w,I,h[6]);}if(W)for(let oe of W){oe.length>1&&u(w,-oe.length,0);let de=oe[0][0];u(w,de,0);let I=D,G=B;for(let Q=1;Q<oe.length;Q++){let Ae=oe[Q];I=u(w,Ae[1],I),G=u(w,Ae[2],G),u(w,Ae[0],0);}}for(A++;A<L.length;){let oe=L[A],{0:de,1:I}=oe;if(de>y||de===y&&I>=v)break;A=R(L,A,w,h);}return h[0]<y?(X(w,h[0],y),h[0]=y,h[1]=0):w.write(o),h[1]=u(w,v,h[1]),A}function X(L,A,w){do L.write(r);while(++A<w)}function fe(L){let{length:A}=L,w=new H(L),h=[],S=0,D=0,B=0,y=0,v=0;do{let $=w.indexOf(";"),N=[],W=true,V=0;for(S=0;w.pos<$;){let oe;S=l(w,S),S<V&&(W=false),V=S,f(w,$)?(D=l(w,D),B=l(w,B),y=l(w,y),f(w,$)?(v=l(w,v),oe=[S,D,B,y,v]):oe=[S,D,B,y]):oe=[S],N.push(oe),w.pos++;}W||j(N),h.push(N),w.pos=$+1;}while(w.pos<=A);return h}function j(L){L.sort(le);}function le(L,A){return L[0]-A[0]}function ue(L){let A=new x,w=0,h=0,S=0,D=0;for(let B=0;B<L.length;B++){let y=L[B];if(B>0&&A.write(r),y.length===0)continue;let v=0;for(let $=0;$<y.length;$++){let N=y[$];$>0&&A.write(o),v=u(A,N[0],v),N.length!==1&&(w=u(A,N[1],w),h=u(A,N[2],h),S=u(A,N[3],S),N.length!==4&&(D=u(A,N[4],D)));}}return A.flush()}n.decode=fe,n.decodeGeneratedRanges=T,n.decodeOriginalScopes=Y,n.encode=ue,n.encodeGeneratedRanges=C,n.encodeOriginalScopes=m,Object.defineProperty(n,"__esModule",{value:true});});}),td=gg(Cg()),nd=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Eg=/^data:application\/json[^,]+base64,/,Sg=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,od=typeof WeakRef<"u",Wr=new Map,ps=new Map,Ag=e=>od&&e instanceof WeakRef,Wu=(e,t,n,o)=>{if(n<0||n>=e.length)return null;let r=e[n];if(!r||r.length===0)return null;let s=null;for(let f of r)if(f[0]<=o)s=f;else break;if(!s||s.length<4)return null;let[,i,c,l]=s;if(i===void 0||c===void 0||l===void 0)return null;let u=t[i];return u?{columnNumber:l,fileName:u,lineNumber:c+1}:null},Tg=(e,t,n)=>{if(e.sections){let o=null;for(let i of e.sections)if(t>i.offset.line||t===i.offset.line&&n>=i.offset.column)o=i;else break;if(!o)return null;let r=t-o.offset.line,s=t===o.offset.line?n-o.offset.column:n;return Wu(o.map.mappings,o.map.sources,r,s)}return Wu(e.mappings,e.sources,t-1,n)},_g=(e,t)=>{let n=t.split(`
|
|
@@ -55,7 +55,7 @@ ${t}`).join(`
|
|
|
55
55
|
|
|
56
56
|
`);var Rf=async(e,t,n,o)=>{let r=false,s="";await t.onBeforeCopy(n);try{let i,c;if(e.getContent)i=await e.getContent(n);else {let l=await mr(n,{maxLines:e.maxContextLines}),f=(await Promise.all(l.map((p,b)=>p.trim()?t.transformSnippet(p,n[b]):Promise.resolve("")))).map((p,b)=>({snippet:p,element:n[b]})).filter(({snippet:p})=>p.trim());i=Bs(f.map(({snippet:p})=>p)),c=f.map(({snippet:p,element:b})=>({tagName:b.localName,content:p,commentText:o}));}if(i.trim()){let l=await t.transformCopyContent(i,n);s=o?`${o}
|
|
57
57
|
|
|
58
|
-
${l}`:l,r=Xt(s,{componentName:e.componentName,entries:c});}}catch(i){let c=i instanceof Error?i:new Error(String(i));t.onCopyError(c);}return r&&t.onCopySuccess(n,s),t.onAfterCopy(n,r),r};var Iy=(e,t)=>{let n=Math.max(e.left,t.left),o=Math.max(e.top,t.top),r=Math.min(e.right,t.right),s=Math.min(e.bottom,t.bottom),i=Math.max(0,r-n),c=Math.max(0,s-o);return i*c},Ny=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,pr=(e,t,n)=>Math.min(n,Math.max(t,e)),Ly=e=>e.sort((t,n)=>{if(t===n)return 0;let o=t.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}),Dy=e=>{if(e.width<=0||e.height<=0)return [];let t=window.innerWidth,n=window.innerHeight,o=e.x,r=e.y,s=e.x+e.width,i=e.y+e.height,c=o+e.width/2,l=r+e.height/2,u=pr(Math.ceil(e.width/ka),zr,Vr),f=pr(Math.ceil(e.height/ka),zr,Vr),p=u*f,b=p>Oa?Math.sqrt(Oa/p):1,x=pr(Math.floor(u*b),zr,Vr),H=pr(Math.floor(f*b),zr,Vr),M=new Set,Y=[],m=(E,T)=>{let C=pr(Math.round(E),0,t-1),R=pr(Math.round(T),0,n-1),X=`${C}:${R}`;M.has(X)||(M.add(X),Y.push({x:C,y:R}));};m(o+$t,r+$t),m(s-$t,r+$t),m(o+$t,i-$t),m(s-$t,i-$t),m(c,r+$t),m(c,i-$t),m(o+$t,l),m(s-$t,l),m(c,l);for(let E=0;E<x;E+=1){let T=o+(E+.5)/x*e.width;for(let C=0;C<H;C+=1){let R=r+(C+.5)/H*e.height;m(T,R);}}return Y},Fy=(e,t,n)=>{let o={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height},r=new Set,s=Dy(e);li();try{for(let c of s){let l=document.elementsFromPoint(c.x,c.y);for(let u of l)r.add(u);}}finally{ci();}let i=[];for(let c of r){if(!n&&vo(c)||!t(c))continue;let l=c.getBoundingClientRect();if(l.width<=0||l.height<=0)continue;let u={left:l.left,top:l.top,right:l.left+l.width,bottom:l.top+l.height};if(n){let f=Iy(o,u),p=l.width*l.height;p>0&&f/p>=au&&i.push(c);}else Ny(u,o)&&i.push(c);}return Ly(i)},$y=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),mi=(e,t,n=true)=>{let o=Fy(e,t,n);return $y(o)};var Hy=new Set(["role","name","aria-label","rel","href"]);function kl(e,t){let n=Hy.has(e);n||=e.startsWith("data-")&&pi(e);let o=pi(t)&&t.length<100;return o||=t.startsWith("#")&&pi(t.slice(1)),n&&o}function By(e){return pi(e)}function zy(e){return pi(e)}function Vy(e){return true}function Nf(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return "html";let n={root:document.body,idName:By,className:zy,tagName:Vy,attr:kl,timeoutMs:1e3,seedMinLength:3,optimizedMinLength:2,maxNumberOfPathChecks:1/0},o=new Date,r={...n,...t},s=Ky(r.root,n),i,c=0;for(let u of Gy(e,r,s)){if(new Date().getTime()-o.getTime()>r.timeoutMs||c>=r.maxNumberOfPathChecks){let p=jy(e,s);if(!p)throw new Error(`Timeout: Can't find a unique selector after ${r.timeoutMs}ms`);return gi(p)}if(c++,Ol(u,s)){i=u;break}}if(!i)throw new Error("Selector was not found.");let l=[...Ff(i,e,r,s,o)];return l.sort(_l),l.length>0?gi(l[0]):gi(i)}function*Gy(e,t,n){let o=[],r=[],s=e,i=0;for(;s&&s!==n;){let c=Uy(s,t);for(let l of c)l.level=i;if(o.push(c),s=s.parentElement,i++,r.push(...Df(o)),i>=t.seedMinLength){r.sort(_l);for(let l of r)yield l;r=[];}}r.sort(_l);for(let c of r)yield c;}function pi(e){if(/^[a-z\-]{3,}$/i.test(e)){let t=e.split(/-|[A-Z]/);for(let n of t)if(n.length<=2||/[^aeiou]{4,}/i.test(n))return false;return true}return false}function Uy(e,t){let n=[],o=e.getAttribute("id");o&&t.idName(o)&&n.push({name:"#"+CSS.escape(o),penalty:0});for(let i=0;i<e.classList.length;i++){let c=e.classList[i];t.className(c)&&n.push({name:"."+CSS.escape(c),penalty:1});}for(let i=0;i<e.attributes.length;i++){let c=e.attributes[i];t.attr(c.name,c.value)&&n.push({name:`[${CSS.escape(c.name)}="${CSS.escape(c.value)}"]`,penalty:2});}let r=e.tagName.toLowerCase();if(t.tagName(r)){n.push({name:r,penalty:5});let i=Pl(e,r);i!==void 0&&n.push({name:Lf(r,i),penalty:10});}let s=Pl(e);return s!==void 0&&n.push({name:Wy(r,s),penalty:50}),n}function gi(e){let t=e[0],n=t.name;for(let o=1;o<e.length;o++){let r=e[o].level||0;t.level===r-1?n=`${e[o].name} > ${n}`:n=`${e[o].name} ${n}`,t=e[o];}return n}function If(e){return e.map(t=>t.penalty).reduce((t,n)=>t+n,0)}function _l(e,t){return If(e)-If(t)}function Pl(e,t){let n=e.parentNode;if(!n)return;let o=n.firstChild;if(!o)return;let r=0;for(;o&&(o.nodeType===Node.ELEMENT_NODE&&(t===void 0||o.tagName.toLowerCase()===t)&&r++,o!==e);)o=o.nextSibling;return r}function jy(e,t){let n=0,o=e,r=[];for(;o&&o!==t;){let s=o.tagName.toLowerCase(),i=Pl(o,s);if(i===void 0)return;r.push({name:Lf(s,i),penalty:NaN,level:n}),o=o.parentElement,n++;}if(Ol(r,t))return r}function Wy(e,t){return e==="html"?"html":`${e}:nth-child(${t})`}function Lf(e,t){return e==="html"?"html":`${e}:nth-of-type(${t})`}function*Df(e,t=[]){if(e.length>0)for(let n of e[0])yield*Df(e.slice(1,e.length),t.concat(n));else yield t;}function Ky(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function Ol(e,t){let n=gi(e);switch(t.querySelectorAll(n).length){case 0:throw new Error(`Can't select any node with this selector: ${n}`);case 1:return true;default:return false}}function*Ff(e,t,n,o,r){if(e.length>2&&e.length>n.optimizedMinLength)for(let s=1;s<e.length-1;s++){if(new Date().getTime()-r.getTime()>n.timeoutMs)return;let c=[...e];c.splice(s,1),Ol(c,o)&&o.querySelector(gi(c))===t&&(yield c,yield*Ff(c,t,n,o,r));}}var $f=e=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,t=>`\\${t}`),Hf=e=>e.ownerDocument.body??e.ownerDocument.documentElement,Bf=new Set(["data-testid","data-test-id","data-test","data-cy","data-qa","aria-label","role","name","title","alt"]),zf=e=>e.length>0&&e.length<=120,Ml=(e,t)=>{try{let n=e.ownerDocument.querySelectorAll(t);return n.length===1&&n[0]===e}catch{return false}},qy=e=>{if(e instanceof HTMLElement&&e.id){let t=`#${$f(e.id)}`;if(Ml(e,t))return t}for(let t of Bf){let n=e.getAttribute(t);if(!n||!zf(n))continue;let o=JSON.stringify(n),r=`[${t}=${o}]`;if(Ml(e,r))return r;let s=`${e.tagName.toLowerCase()}${r}`;if(Ml(e,s))return s}return null},Zy=e=>{let t=[],n=Hf(e),o=e;for(;o;){if(o instanceof HTMLElement&&o.id){t.unshift(`#${$f(o.id)}`);break}let r=o.parentElement;if(!r){t.unshift(o.tagName.toLowerCase());break}let i=Array.from(r.children).indexOf(o),c=i>=0?i+1:1;if(t.unshift(`${o.tagName.toLowerCase()}:nth-child(${c})`),r===n){t.unshift(n.tagName.toLowerCase());break}o=r;}return t.join(" > ")},Vf=(e,t=true)=>{let n=qy(e);if(n)return n;if(t)try{let o=Nf(e,{root:Hf(e),timeoutMs:200,attr:(r,s)=>kl(r,s)||Bf.has(r)&&zf(s)});if(o)return o}catch{}return Zy(e)};var Gf=()=>{_u(),$s(),af();};var zs=e=>({x:e.pageX-window.scrollX,y:e.pageY-window.scrollY,width:e.width,height:e.height,borderRadius:"0px",transform:"none"}),Rl=e=>({pageX:e.x+window.scrollX,pageY:e.y+window.scrollY,width:e.width,height:e.height}),Vs=e=>({...e,borderRadius:"0px",transform:"none"});var Jy=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"]),Gs=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Jy.has(e);var Uf=(e,t)=>{let n=e.toLowerCase();return t==="Space"?n==="space"||n===" ":t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false};var Qy={meta:"metaKey",cmd:"metaKey",command:"metaKey",win:"metaKey",windows:"metaKey",ctrl:"ctrlKey",control:"ctrlKey",shift:"shiftKey",alt:"altKey",option:"altKey",opt:"altKey"},jf=e=>{let t=e.split("+").map(o=>o.trim().toLowerCase()),n={metaKey:false,ctrlKey:false,shiftKey:false,altKey:false,key:null};for(let o of t){let r=Qy[o];r?n[r]=true:n.key=o;}return n},Us=e=>{if(typeof e=="function")return e;let t=jf(e),n=t.key;return o=>{if(n===null){let c=t.metaKey?o.metaKey||o.key==="Meta":true,l=t.ctrlKey?o.ctrlKey||o.key==="Control":true,u=t.shiftKey?o.shiftKey||o.key==="Shift":true,f=t.altKey?o.altKey||o.key==="Alt":true,p=c&&l&&u&&f,b=[t.metaKey,t.ctrlKey,t.shiftKey,t.altKey].filter(Boolean).length,x=[o.metaKey||o.key==="Meta",o.ctrlKey||o.key==="Control",o.shiftKey||o.key==="Shift",o.altKey||o.key==="Alt"].filter(Boolean).length;return p&&x>=b}let r=o.key?.toLowerCase()===n||Uf(n,o.code),i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?(t.metaKey?o.metaKey:true)&&(t.ctrlKey?o.ctrlKey:true)&&(t.shiftKey?o.shiftKey:true)&&(t.altKey?o.altKey:true):!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&!o.altKey;return r&&i}},Wf=e=>!e||typeof e=="function"?{metaKey:Nn(),ctrlKey:!Nn(),shiftKey:false,altKey:false,key:null}:jf(e);var js=(e,t)=>{if(t.activationKey)return Us(t.activationKey)(e);let o=(Nn()?e.metaKey:e.ctrlKey)&&!e.shiftKey&&!e.altKey;return !!(e.key&&o&&Gs(e.key,e.code))};var Il=e=>{if(e.length===0)return {x:0,y:0,width:0,height:0};if(e.length===1)return e[0];let t=1/0,n=1/0,o=-1/0,r=-1/0;for(let s of e)t=Math.min(t,s.x),n=Math.min(n,s.y),o=Math.max(o,s.x+s.width),r=Math.max(r,s.y+s.height);return {x:t,y:n,width:o-t,height:r-n}};var no={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true},toolbar:{enabled:true}},Ws=(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},toolbar:{enabled:t.toolbar?.enabled??e.toolbar.enabled}});var Kf={activationMode:"toggle",keyHoldDuration:100,allowActivationInsideInput:true,maxContextLines:3,activationKey:void 0,getContent:void 0,freezeReactUpdates:true},Xf=(e={})=>{let t=new Map,n={},[o,r]=ts({theme:no,options:{...Kf,...e},actions:[],toolbarActions:[]}),s=m=>m.target==="toolbar",i=()=>{let m=no,E={...Kf,...e},T=[],C=[];for(let{config:R}of t.values())if(R.theme&&(m=Ws(m,R.theme)),R.options&&(E={...E,...R.options}),R.actions)for(let X of R.actions)if(s(X)){let fe=X.onAction;C.push({...X,onAction:()=>{p("cancelPendingToolbarActions"),fe();}});}else T.push(X);E={...E,...n},r("theme",m),r("options",E),r("actions",T),r("toolbarActions",C);},c=m=>{for(let[E,T]of Object.entries(m))T!==void 0&&(n[E]=T,r("options",E,T));},l=(m,E)=>{t.has(m.name)&&u(m.name);let T=m.setup?.(E,Y)??{};return m.theme&&(T.theme=T.theme?Ws(Ws(no,m.theme),T.theme):m.theme),m.actions&&(T.actions=[...m.actions,...T.actions??[]]),m.hooks&&(T.hooks=T.hooks?{...m.hooks,...T.hooks}:m.hooks),m.options&&(T.options=T.options?{...m.options,...T.options}:m.options),t.set(m.name,{plugin:m,config:T}),i(),T},u=m=>{let E=t.get(m);E&&(E.config.cleanup&&E.config.cleanup(),t.delete(m),i());},f=()=>Array.from(t.keys()),p=(m,...E)=>{for(let{config:T}of t.values()){let C=T.hooks?.[m];C&&C(...E);}},b=(m,...E)=>{let T=false;for(let{config:C}of t.values()){let R=C.hooks?.[m];R&&R(...E)===true&&(T=true);}return T},x=async(m,...E)=>{for(let{config:T}of t.values()){let C=T.hooks?.[m];C&&await C(...E);}},H=async(m,E,...T)=>{let C=E;for(let{config:R}of t.values()){let X=R.hooks?.[m];X&&(C=await X(C,...T));}return C},M=(m,E,...T)=>{let C=E;for(let{config:R}of t.values()){let X=R.hooks?.[m];X&&(C=X(C,...T));}return C},Y={onActivate:()=>p("onActivate"),onDeactivate:()=>p("onDeactivate"),onElementHover:m=>p("onElementHover",m),onElementSelect:m=>{let E=false,T;for(let{config:C}of t.values()){let R=C.hooks?.onElementSelect;if(R){let X=R(m);X===true?E=true:X instanceof Promise&&(E=true,T=X);}}return {wasIntercepted:E,pendingResult:T}},onDragStart:(m,E)=>p("onDragStart",m,E),onDragEnd:(m,E)=>p("onDragEnd",m,E),onBeforeCopy:async m=>x("onBeforeCopy",m),transformCopyContent:async(m,E)=>H("transformCopyContent",m,E),onAfterCopy:(m,E)=>p("onAfterCopy",m,E),onCopySuccess:(m,E)=>p("onCopySuccess",m,E),onCopyError:m=>p("onCopyError",m),onStateChange:m=>p("onStateChange",m),onPromptModeChange:(m,E)=>p("onPromptModeChange",m,E),onSelectionBox:(m,E,T)=>p("onSelectionBox",m,E,T),onDragBox:(m,E)=>p("onDragBox",m,E),onGrabbedBox:(m,E)=>p("onGrabbedBox",m,E),onElementLabel:(m,E,T)=>p("onElementLabel",m,E,T),onCrosshair:(m,E)=>p("onCrosshair",m,E),onContextMenu:(m,E)=>p("onContextMenu",m,E),cancelPendingToolbarActions:()=>p("cancelPendingToolbarActions"),onOpenFile:(m,E)=>b("onOpenFile",m,E),transformHtmlContent:async(m,E)=>H("transformHtmlContent",m,E),transformAgentContext:async(m,E)=>H("transformAgentContext",m,E),transformActionContext:m=>M("transformActionContext",m),transformOpenFileUrl:(m,E,T)=>M("transformOpenFileUrl",m,E,T),transformSnippet:async(m,E)=>H("transformSnippet",m,E)};return {register:l,unregister:u,getPluginNames:f,setOptions:c,store:o,hooks:Y}};var Nl="react-grab:agent-sessions",ew=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,qf=(e,t,n,o,r)=>{let s=Date.now();return {id:ew(),context:e,lastStatus:"",isStreaming:true,createdAt:s,lastUpdatedAt:s,position:t,selectionBounds:n,tagName:o,componentName:r}},hn=new Map,Yf=()=>{for(;hn.size>lu;){let e=hn.keys().next().value;e!==void 0&&hn.delete(e);}},Ks=(e,t)=>{if(!t){hn.clear(),e.forEach((n,o)=>hn.set(o,n)),Yf();return}try{let n=Object.fromEntries(e);t.setItem(Nl,JSON.stringify(n));}catch{hn.clear(),e.forEach((n,o)=>hn.set(o,n)),Yf();}},Xs=(e,t)=>{let n=Ys(t);n.set(e.id,e),Ks(n,t);},Ys=e=>{if(!e)return new Map(hn);try{let t=e.getItem(Nl);if(!t)return new Map;let n=JSON.parse(t);return new Map(Object.entries(n))}catch{return new Map}},qs=e=>{if(!e){hn.clear();return}try{e.removeItem(Nl);}catch{hn.clear();}},Ll=(e,t)=>{let n=Ys(t);n.delete(e),Ks(n,t);},oo=(e,t,n)=>{let o={...e,...t,lastUpdatedAt:Date.now()};return Xs(o,n),o};var Dl=(e,t)=>{let[n,o]=U(new Map),[r,s]=U(false),[i,c]=U(false),l=new Map,u=new Map,f=new Map,p=[],b=[],x=e,H=y=>f.get(y)?.agent??x,M=y=>f.get(y)?.elements??[],Y=y=>{let v=y??x,$=v?.provider?.canUndo?.()??false,N=v?.provider?.canRedo?.()??false;s($),c(N);},m=y=>{x=y,Y();},E=()=>x,T=()=>Array.from(n().values()).some(y=>y.isStreaming),C=async(y,v,$,N)=>{let W=N??x,V=W?.storage,oe=false,de=()=>l.get(y.id)===$;try{for await(let Q of v){if(!de())break;let me=n().get(y.id);if(!me)break;let Se=oo(me,{lastStatus:Q},V);o(ie=>new Map(ie).set(y.id,Se)),W?.onStatus?.(Q,Se);}if(!de())return;let G=n().get(y.id);if(G){let Q=W?.provider?.getCompletionMessage?.(),Ae=oo(G,{isStreaming:!1,...Q?{lastStatus:Q}:{}},V);o(pe=>new Map(pe).set(y.id,Ae));let me=M(y.id),Se=await W?.onComplete?.(Ae,me),ie=b.findIndex(pe=>pe.session.id===y.id);if(ie!==-1&&b.splice(ie,1),b.push({session:Ae,elements:me,agent:W}),Y(W),p.length=0,Se?.error){let pe=oo(Ae,{error:Se.error},V);o(ke=>new Map(ke).set(y.id,pe));}}}catch(I){if(!de())return;let Q=n().get(y.id);if(I instanceof Error&&I.name==="AbortError"){if(oe=true,Q){let Ae=M(y.id);W?.onAbort?.(Q,Ae);}}else {let Ae=I instanceof Error?I.message:"Unknown error";if(Q){let me=oo(Q,{error:Ae,isStreaming:false},V);o(Se=>new Map(Se).set(y.id,me)),I instanceof Error&&W?.onError?.(I,me);}}}finally{if(!de())return;if(l.delete(y.id),oe){let I=u.get(y.id);I&&(clearTimeout(I),u.delete(y.id)),f.delete(y.id),Ll(y.id,V),o(G=>{let Q=new Map(G);return Q.delete(y.id),Q});}}},R=y=>{let{selectionBounds:v,tagName:$}=y,N=v[0];if(!N)return;let W=N.x+N.width/2,V=N.y+N.height/2,oe=document.elementFromPoint(W,V);if(!(!oe||$&&!$.includes(" ")&&pt(oe)!==$))return oe},X=()=>{let y=x?.storage;if(!y)return;let v=Ys(y);if(v.size===0)return;let $=Date.now(),N=Array.from(v.values()).filter(V=>{if(V.isStreaming)return true;let oe=V.lastUpdatedAt??V.createdAt;return $-oe<1e4&&!!V.error});if(N.length===0){qs(y);return}if(!x?.provider?.supportsResume||!x.provider.resume){qs(y);return}u.forEach(V=>clearTimeout(V)),u.clear(),l.forEach(V=>V.abort()),l.clear(),f.clear();let W=new Map(N.map(V=>[V.id,V]));o(W),Ks(W,y);for(let V of N){let oe=R(V);oe&&x&&f.set(V.id,{elements:[oe],agent:x});let de={...V,isStreaming:true,error:void 0,lastStatus:V.lastStatus||"Resuming...",position:V.position??{x:window.innerWidth/2,y:window.innerHeight/2}};o(Q=>new Map(Q).set(V.id,de)),x?.onResume?.(de);let I=new AbortController;l.set(V.id,I);let G=x.provider.resume(V.id,I.signal,y);C(V,G,I);}},fe=async y=>{let{elements:v,prompt:$,position:N,selectionBounds:W,sessionId:V,agent:oe}=y,de=oe??(V?H(V):x),I=de?.storage;if(!de?.provider||v.length===0)return;let G=v[0],Q=V?n().get(V):void 0,Ae=!!V,Se={content:Q?Q.context.content:(await mr(v,{maxLines:1/0})).filter(Te=>Te.trim()),prompt:$,options:de?.getOptions?.(),sessionId:Ae?V:void 0},ie;if(Q)ie=oo(Q,{context:Se,isStreaming:true,lastStatus:"Thinking\u2026"},I);else {let Te=v.length>1?`${v.length} elements`:pt(G)||void 0,rt=v.length>1?void 0:await nr(G)||void 0;ie=qf(Se,N,W,Te,rt),ie.lastStatus="Thinking\u2026";}f.set(ie.id,{elements:v,agent:de}),o(Te=>new Map(Te).set(ie.id,ie)),Xs(ie,I),de.onStart?.(ie,v);let pe=new AbortController;l.set(ie.id,pe);let ke={...Se,sessionId:V??ie.id},Pe;try{Pe=t?.transformAgentContext?await t.transformAgentContext(ke,v):ke;}catch(Te){let rt=Te instanceof Error?Te.message:"Context transformation failed",ut=oo(ie,{error:rt,isStreaming:false},I);o(Ue=>new Map(Ue).set(ie.id,ut)),l.delete(ie.id),Te instanceof Error&&de.onError?.(Te,ut);return}let ge=de.provider.send(Pe,pe.signal);C(ie,ge,pe,de);},j=y=>{if(y){let v=l.get(y);v&&v.abort();}else l.forEach(v=>v.abort()),l.clear(),u.forEach(v=>clearTimeout(v)),u.clear(),f.clear(),b.length=0,p.length=0,o(new Map),qs(x?.storage),Y();},le=(y,v,$)=>{let W=n().get(y),V=v??H(y),oe=$??M(y);if(W?.isFading)return;W&&oe.length>0&&V?.onDismiss?.(W,oe),o(G=>{let Q=new Map(G),Ae=Q.get(y);return Ae&&Q.set(y,{...Ae,isFading:true}),Q});let de=u.get(y);de&&clearTimeout(de);let I=setTimeout(()=>{u.delete(y);let G=l.get(y);G&&(G.abort(),l.delete(y)),f.delete(y),Ll(y,V?.storage),o(Q=>{let Ae=new Map(Q);return Ae.delete(y),Ae});},150);u.set(y,I);};return {sessions:n,isProcessing:T,canUndo:r,canRedo:i,session:{start:fe,abort:j,dismiss:le,retry:y=>{let $=n().get(y),N=H(y);if(!$||!N?.provider)return;let W=N.storage,V=M(y),oe=oo($,{error:void 0,isStreaming:true,lastStatus:"Retrying\u2026"},W);o(Q=>new Map(Q).set(y,oe)),Xs(oe,W),V.length>0&&N.onStart?.(oe,V);let de=new AbortController;l.set(y,de);let I={...oe.context,sessionId:y},G=N.provider.send(I,de.signal);C(oe,G,de,N);},undo:y=>{let $=n().get(y),N=H(y),W=M(y);if($){p.push({session:$,elements:W,agent:N});let V=b.findIndex(oe=>oe.session.id===y);V!==-1&&b.splice(V,1),N?.onUndo?.($,W),N?.provider?.undo?.();}le(y,N,W),Y(N);},getElement:y=>M(y)[0],getElements:y=>M(y),tryResume:X,acknowledgeError:y=>{let N=n().get(y)?.context.prompt;return le(y),N}},history:{undo:()=>{let y=b.pop();if(!y)return;let{session:v,elements:$,agent:N}=y,W=N??x;p.push(y),W?.onUndo?.(v,$),W?.provider?.undo?.(),le(v.id,W,$),Y(W);},redo:()=>{let y=p.pop();if(!y)return;let v=y.agent??x,{session:$,elements:N}=y;v?.provider?.redo?.();let W=N.filter(V=>et(V));if(W.length===0){let V=R($);V&&(W=[V]);}if(W.length>0&&v){b.push(y);let V=W.map(de=>ze(de)),oe={...$,selectionBounds:V};f.set($.id,{elements:W,agent:v}),o(de=>new Map(de).set($.id,oe));}Y(v);}},_internal:{updateBoundsOnViewportChange:()=>{let y=n();if(y.size===0)return;let v=new Map(y),$=false;for(let[N,W]of y){let V=M(N),oe=V[0];if(et(oe)){let de=V.filter(I=>et(I)).map(I=>ze(I));if(de.length>0){let I=W.selectionBounds[0],G=de[0],Q=rs({currentPosition:W.position,previousBounds:I,nextBounds:G});v.set(N,{...W,selectionBounds:de,position:Q}),$=true;}}}$&&o(v);},setOptions:m,getOptions:E}}};var Zf=(e,t)=>{let n=[],o=(u,f)=>{let p=t(u),b=Fs(p.x+p.width/2,p.y+p.height/2).filter(e),x=b.indexOf(u);return x===-1?null:b[x+f]??null},r=u=>{let f=o(u,1);return f&&(n.push(u),n.length>Ma&&(n=n.slice(-Ma))),f},s=u=>{if(n.length>0){let f=n.pop();if(et(f))return f}return o(u,-1)},i=(u,f)=>{let p=H=>{let M=Array.from(H.children),Y=f?M:M.reverse();for(let m of Y)if(f){if(e(m))return m;let E=p(m);if(E)return E}else {let E=p(m);if(E)return E;if(e(m))return m}return null},b=H=>f?H.nextElementSibling:H.previousElementSibling,x=null;if(f&&(x=p(u)),!x){let H=u;for(;H;){let M=b(H);for(;M;){let m=p(M);if(m){x=m;break}if(e(M)){x=M;break}M=b(M);}if(x)break;let Y=H.parentElement;if(!f&&Y&&e(Y)){x=Y;break}H=Y;}}return x};return {findNext:(u,f)=>{switch(u){case "ArrowUp":return r(f);case "ArrowDown":return s(f);case "ArrowRight":return i(f,true);case "ArrowLeft":return i(f,false);default:return null}},clearHistory:()=>{n=[];}}};var Jf=e=>{let{metaKey:t,ctrlKey:n,shiftKey:o,altKey:r}=Wf(e.activationKey);return {metaKey:t,ctrlKey:n,shiftKey:o,altKey:r}},Qf=()=>{let e=new WeakSet,t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),n=false;if(t?.get&&!t.get.__reactGrabPatched){n=true;let r=t.get,s=function(){return e.has(this)?"":r.call(this)};s.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:s,configurable:true});}return {claimedEvents:e,originalKeyDescriptor:t,didPatch:n,restore:()=>{n&&t&&Object.defineProperty(KeyboardEvent.prototype,"key",t);}}};var Fl=(e,t)=>({top:t<25,bottom:t>window.innerHeight-25,left:e<25,right:e>window.innerWidth-25}),em=(e,t)=>{let n=null,o=()=>{if(!t()){s();return}let c=e(),l=Fl(c.x,c.y);l.top&&window.scrollBy(0,-10),l.bottom&&window.scrollBy(0,10),l.left&&window.scrollBy(-10,0),l.right&&window.scrollBy(10,0),l.top||l.bottom||l.left||l.right?n=Ve(o):n=null;},r=()=>{o();},s=()=>{n!==null&&(Ge(n),n=null);};return {start:r,stop:s,isActive:()=>n!==null}};var tm=()=>{let e=globalThis;return !!(e.chrome?.runtime?.id||e.browser?.runtime?.id)};var nm=()=>{try{let e="0.1.24",t=`data:image/svg+xml;base64,${btoa(xu)}`;console.log(`%cReact Grab${e?` v${e}`:""}%c
|
|
58
|
+
${l}`:l,r=Xt(s,{componentName:e.componentName,entries:c});}}catch(i){let c=i instanceof Error?i:new Error(String(i));t.onCopyError(c);}return r&&t.onCopySuccess(n,s),t.onAfterCopy(n,r),r};var Iy=(e,t)=>{let n=Math.max(e.left,t.left),o=Math.max(e.top,t.top),r=Math.min(e.right,t.right),s=Math.min(e.bottom,t.bottom),i=Math.max(0,r-n),c=Math.max(0,s-o);return i*c},Ny=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,pr=(e,t,n)=>Math.min(n,Math.max(t,e)),Ly=e=>e.sort((t,n)=>{if(t===n)return 0;let o=t.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}),Dy=e=>{if(e.width<=0||e.height<=0)return [];let t=window.innerWidth,n=window.innerHeight,o=e.x,r=e.y,s=e.x+e.width,i=e.y+e.height,c=o+e.width/2,l=r+e.height/2,u=pr(Math.ceil(e.width/ka),zr,Vr),f=pr(Math.ceil(e.height/ka),zr,Vr),p=u*f,b=p>Oa?Math.sqrt(Oa/p):1,x=pr(Math.floor(u*b),zr,Vr),H=pr(Math.floor(f*b),zr,Vr),M=new Set,Y=[],m=(E,T)=>{let C=pr(Math.round(E),0,t-1),R=pr(Math.round(T),0,n-1),X=`${C}:${R}`;M.has(X)||(M.add(X),Y.push({x:C,y:R}));};m(o+$t,r+$t),m(s-$t,r+$t),m(o+$t,i-$t),m(s-$t,i-$t),m(c,r+$t),m(c,i-$t),m(o+$t,l),m(s-$t,l),m(c,l);for(let E=0;E<x;E+=1){let T=o+(E+.5)/x*e.width;for(let C=0;C<H;C+=1){let R=r+(C+.5)/H*e.height;m(T,R);}}return Y},Fy=(e,t,n)=>{let o={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height},r=new Set,s=Dy(e);li();try{for(let c of s){let l=document.elementsFromPoint(c.x,c.y);for(let u of l)r.add(u);}}finally{ci();}let i=[];for(let c of r){if(!n&&vo(c)||!t(c))continue;let l=c.getBoundingClientRect();if(l.width<=0||l.height<=0)continue;let u={left:l.left,top:l.top,right:l.left+l.width,bottom:l.top+l.height};if(n){let f=Iy(o,u),p=l.width*l.height;p>0&&f/p>=au&&i.push(c);}else Ny(u,o)&&i.push(c);}return Ly(i)},$y=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),mi=(e,t,n=true)=>{let o=Fy(e,t,n);return $y(o)};var Hy=new Set(["role","name","aria-label","rel","href"]);function kl(e,t){let n=Hy.has(e);n||=e.startsWith("data-")&&pi(e);let o=pi(t)&&t.length<100;return o||=t.startsWith("#")&&pi(t.slice(1)),n&&o}function By(e){return pi(e)}function zy(e){return pi(e)}function Vy(e){return true}function Nf(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return "html";let n={root:document.body,idName:By,className:zy,tagName:Vy,attr:kl,timeoutMs:1e3,seedMinLength:3,optimizedMinLength:2,maxNumberOfPathChecks:1/0},o=new Date,r={...n,...t},s=Ky(r.root,n),i,c=0;for(let u of Gy(e,r,s)){if(new Date().getTime()-o.getTime()>r.timeoutMs||c>=r.maxNumberOfPathChecks){let p=jy(e,s);if(!p)throw new Error(`Timeout: Can't find a unique selector after ${r.timeoutMs}ms`);return gi(p)}if(c++,Ol(u,s)){i=u;break}}if(!i)throw new Error("Selector was not found.");let l=[...Ff(i,e,r,s,o)];return l.sort(_l),l.length>0?gi(l[0]):gi(i)}function*Gy(e,t,n){let o=[],r=[],s=e,i=0;for(;s&&s!==n;){let c=Uy(s,t);for(let l of c)l.level=i;if(o.push(c),s=s.parentElement,i++,r.push(...Df(o)),i>=t.seedMinLength){r.sort(_l);for(let l of r)yield l;r=[];}}r.sort(_l);for(let c of r)yield c;}function pi(e){if(/^[a-z\-]{3,}$/i.test(e)){let t=e.split(/-|[A-Z]/);for(let n of t)if(n.length<=2||/[^aeiou]{4,}/i.test(n))return false;return true}return false}function Uy(e,t){let n=[],o=e.getAttribute("id");o&&t.idName(o)&&n.push({name:"#"+CSS.escape(o),penalty:0});for(let i=0;i<e.classList.length;i++){let c=e.classList[i];t.className(c)&&n.push({name:"."+CSS.escape(c),penalty:1});}for(let i=0;i<e.attributes.length;i++){let c=e.attributes[i];t.attr(c.name,c.value)&&n.push({name:`[${CSS.escape(c.name)}="${CSS.escape(c.value)}"]`,penalty:2});}let r=e.tagName.toLowerCase();if(t.tagName(r)){n.push({name:r,penalty:5});let i=Pl(e,r);i!==void 0&&n.push({name:Lf(r,i),penalty:10});}let s=Pl(e);return s!==void 0&&n.push({name:Wy(r,s),penalty:50}),n}function gi(e){let t=e[0],n=t.name;for(let o=1;o<e.length;o++){let r=e[o].level||0;t.level===r-1?n=`${e[o].name} > ${n}`:n=`${e[o].name} ${n}`,t=e[o];}return n}function If(e){return e.map(t=>t.penalty).reduce((t,n)=>t+n,0)}function _l(e,t){return If(e)-If(t)}function Pl(e,t){let n=e.parentNode;if(!n)return;let o=n.firstChild;if(!o)return;let r=0;for(;o&&(o.nodeType===Node.ELEMENT_NODE&&(t===void 0||o.tagName.toLowerCase()===t)&&r++,o!==e);)o=o.nextSibling;return r}function jy(e,t){let n=0,o=e,r=[];for(;o&&o!==t;){let s=o.tagName.toLowerCase(),i=Pl(o,s);if(i===void 0)return;r.push({name:Lf(s,i),penalty:NaN,level:n}),o=o.parentElement,n++;}if(Ol(r,t))return r}function Wy(e,t){return e==="html"?"html":`${e}:nth-child(${t})`}function Lf(e,t){return e==="html"?"html":`${e}:nth-of-type(${t})`}function*Df(e,t=[]){if(e.length>0)for(let n of e[0])yield*Df(e.slice(1,e.length),t.concat(n));else yield t;}function Ky(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function Ol(e,t){let n=gi(e);switch(t.querySelectorAll(n).length){case 0:throw new Error(`Can't select any node with this selector: ${n}`);case 1:return true;default:return false}}function*Ff(e,t,n,o,r){if(e.length>2&&e.length>n.optimizedMinLength)for(let s=1;s<e.length-1;s++){if(new Date().getTime()-r.getTime()>n.timeoutMs)return;let c=[...e];c.splice(s,1),Ol(c,o)&&o.querySelector(gi(c))===t&&(yield c,yield*Ff(c,t,n,o,r));}}var $f=e=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,t=>`\\${t}`),Hf=e=>e.ownerDocument.body??e.ownerDocument.documentElement,Bf=new Set(["data-testid","data-test-id","data-test","data-cy","data-qa","aria-label","role","name","title","alt"]),zf=e=>e.length>0&&e.length<=120,Ml=(e,t)=>{try{let n=e.ownerDocument.querySelectorAll(t);return n.length===1&&n[0]===e}catch{return false}},qy=e=>{if(e instanceof HTMLElement&&e.id){let t=`#${$f(e.id)}`;if(Ml(e,t))return t}for(let t of Bf){let n=e.getAttribute(t);if(!n||!zf(n))continue;let o=JSON.stringify(n),r=`[${t}=${o}]`;if(Ml(e,r))return r;let s=`${e.tagName.toLowerCase()}${r}`;if(Ml(e,s))return s}return null},Zy=e=>{let t=[],n=Hf(e),o=e;for(;o;){if(o instanceof HTMLElement&&o.id){t.unshift(`#${$f(o.id)}`);break}let r=o.parentElement;if(!r){t.unshift(o.tagName.toLowerCase());break}let i=Array.from(r.children).indexOf(o),c=i>=0?i+1:1;if(t.unshift(`${o.tagName.toLowerCase()}:nth-child(${c})`),r===n){t.unshift(n.tagName.toLowerCase());break}o=r;}return t.join(" > ")},Vf=(e,t=true)=>{let n=qy(e);if(n)return n;if(t)try{let o=Nf(e,{root:Hf(e),timeoutMs:200,attr:(r,s)=>kl(r,s)||Bf.has(r)&&zf(s)});if(o)return o}catch{}return Zy(e)};var Gf=()=>{_u(),$s(),af();};var zs=e=>({x:e.pageX-window.scrollX,y:e.pageY-window.scrollY,width:e.width,height:e.height,borderRadius:"0px",transform:"none"}),Rl=e=>({pageX:e.x+window.scrollX,pageY:e.y+window.scrollY,width:e.width,height:e.height}),Vs=e=>({...e,borderRadius:"0px",transform:"none"});var Jy=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"]),Gs=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:Jy.has(e);var Uf=(e,t)=>{let n=e.toLowerCase();return t==="Space"?n==="space"||n===" ":t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false};var Qy={meta:"metaKey",cmd:"metaKey",command:"metaKey",win:"metaKey",windows:"metaKey",ctrl:"ctrlKey",control:"ctrlKey",shift:"shiftKey",alt:"altKey",option:"altKey",opt:"altKey"},jf=e=>{let t=e.split("+").map(o=>o.trim().toLowerCase()),n={metaKey:false,ctrlKey:false,shiftKey:false,altKey:false,key:null};for(let o of t){let r=Qy[o];r?n[r]=true:n.key=o;}return n},Us=e=>{if(typeof e=="function")return e;let t=jf(e),n=t.key;return o=>{if(n===null){let c=t.metaKey?o.metaKey||o.key==="Meta":true,l=t.ctrlKey?o.ctrlKey||o.key==="Control":true,u=t.shiftKey?o.shiftKey||o.key==="Shift":true,f=t.altKey?o.altKey||o.key==="Alt":true,p=c&&l&&u&&f,b=[t.metaKey,t.ctrlKey,t.shiftKey,t.altKey].filter(Boolean).length,x=[o.metaKey||o.key==="Meta",o.ctrlKey||o.key==="Control",o.shiftKey||o.key==="Shift",o.altKey||o.key==="Alt"].filter(Boolean).length;return p&&x>=b}let r=o.key?.toLowerCase()===n||Uf(n,o.code),i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?(t.metaKey?o.metaKey:true)&&(t.ctrlKey?o.ctrlKey:true)&&(t.shiftKey?o.shiftKey:true)&&(t.altKey?o.altKey:true):!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&!o.altKey;return r&&i}},Wf=e=>!e||typeof e=="function"?{metaKey:Nn(),ctrlKey:!Nn(),shiftKey:false,altKey:false,key:null}:jf(e);var js=(e,t)=>{if(t.activationKey)return Us(t.activationKey)(e);let o=(Nn()?e.metaKey:e.ctrlKey)&&!e.shiftKey&&!e.altKey;return !!(e.key&&o&&Gs(e.key,e.code))};var Il=e=>{if(e.length===0)return {x:0,y:0,width:0,height:0};if(e.length===1)return e[0];let t=1/0,n=1/0,o=-1/0,r=-1/0;for(let s of e)t=Math.min(t,s.x),n=Math.min(n,s.y),o=Math.max(o,s.x+s.width),r=Math.max(r,s.y+s.height);return {x:t,y:n,width:o-t,height:r-n}};var no={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true},toolbar:{enabled:true}},Ws=(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},toolbar:{enabled:t.toolbar?.enabled??e.toolbar.enabled}});var Kf={activationMode:"toggle",keyHoldDuration:100,allowActivationInsideInput:true,maxContextLines:3,activationKey:void 0,getContent:void 0,freezeReactUpdates:true},Xf=(e={})=>{let t=new Map,n={},[o,r]=ts({theme:no,options:{...Kf,...e},actions:[],toolbarActions:[]}),s=m=>m.target==="toolbar",i=()=>{let m=no,E={...Kf,...e},T=[],C=[];for(let{config:R}of t.values())if(R.theme&&(m=Ws(m,R.theme)),R.options&&(E={...E,...R.options}),R.actions)for(let X of R.actions)if(s(X)){let fe=X.onAction;C.push({...X,onAction:()=>{p("cancelPendingToolbarActions"),fe();}});}else T.push(X);E={...E,...n},r("theme",m),r("options",E),r("actions",T),r("toolbarActions",C);},c=m=>{for(let[E,T]of Object.entries(m))T!==void 0&&(n[E]=T,r("options",E,T));},l=(m,E)=>{t.has(m.name)&&u(m.name);let T=m.setup?.(E,Y)??{};return m.theme&&(T.theme=T.theme?Ws(Ws(no,m.theme),T.theme):m.theme),m.actions&&(T.actions=[...m.actions,...T.actions??[]]),m.hooks&&(T.hooks=T.hooks?{...m.hooks,...T.hooks}:m.hooks),m.options&&(T.options=T.options?{...m.options,...T.options}:m.options),t.set(m.name,{plugin:m,config:T}),i(),T},u=m=>{let E=t.get(m);E&&(E.config.cleanup&&E.config.cleanup(),t.delete(m),i());},f=()=>Array.from(t.keys()),p=(m,...E)=>{for(let{config:T}of t.values()){let C=T.hooks?.[m];C&&C(...E);}},b=(m,...E)=>{let T=false;for(let{config:C}of t.values()){let R=C.hooks?.[m];R&&R(...E)===true&&(T=true);}return T},x=async(m,...E)=>{for(let{config:T}of t.values()){let C=T.hooks?.[m];C&&await C(...E);}},H=async(m,E,...T)=>{let C=E;for(let{config:R}of t.values()){let X=R.hooks?.[m];X&&(C=await X(C,...T));}return C},M=(m,E,...T)=>{let C=E;for(let{config:R}of t.values()){let X=R.hooks?.[m];X&&(C=X(C,...T));}return C},Y={onActivate:()=>p("onActivate"),onDeactivate:()=>p("onDeactivate"),onElementHover:m=>p("onElementHover",m),onElementSelect:m=>{let E=false,T;for(let{config:C}of t.values()){let R=C.hooks?.onElementSelect;if(R){let X=R(m);X===true?E=true:X instanceof Promise&&(E=true,T=X);}}return {wasIntercepted:E,pendingResult:T}},onDragStart:(m,E)=>p("onDragStart",m,E),onDragEnd:(m,E)=>p("onDragEnd",m,E),onBeforeCopy:async m=>x("onBeforeCopy",m),transformCopyContent:async(m,E)=>H("transformCopyContent",m,E),onAfterCopy:(m,E)=>p("onAfterCopy",m,E),onCopySuccess:(m,E)=>p("onCopySuccess",m,E),onCopyError:m=>p("onCopyError",m),onStateChange:m=>p("onStateChange",m),onPromptModeChange:(m,E)=>p("onPromptModeChange",m,E),onSelectionBox:(m,E,T)=>p("onSelectionBox",m,E,T),onDragBox:(m,E)=>p("onDragBox",m,E),onGrabbedBox:(m,E)=>p("onGrabbedBox",m,E),onElementLabel:(m,E,T)=>p("onElementLabel",m,E,T),onCrosshair:(m,E)=>p("onCrosshair",m,E),onContextMenu:(m,E)=>p("onContextMenu",m,E),cancelPendingToolbarActions:()=>p("cancelPendingToolbarActions"),onOpenFile:(m,E)=>b("onOpenFile",m,E),transformHtmlContent:async(m,E)=>H("transformHtmlContent",m,E),transformAgentContext:async(m,E)=>H("transformAgentContext",m,E),transformActionContext:m=>M("transformActionContext",m),transformOpenFileUrl:(m,E,T)=>M("transformOpenFileUrl",m,E,T),transformSnippet:async(m,E)=>H("transformSnippet",m,E)};return {register:l,unregister:u,getPluginNames:f,setOptions:c,store:o,hooks:Y}};var Nl="react-grab:agent-sessions",ew=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,qf=(e,t,n,o,r)=>{let s=Date.now();return {id:ew(),context:e,lastStatus:"",isStreaming:true,createdAt:s,lastUpdatedAt:s,position:t,selectionBounds:n,tagName:o,componentName:r}},hn=new Map,Yf=()=>{for(;hn.size>lu;){let e=hn.keys().next().value;e!==void 0&&hn.delete(e);}},Ks=(e,t)=>{if(!t){hn.clear(),e.forEach((n,o)=>hn.set(o,n)),Yf();return}try{let n=Object.fromEntries(e);t.setItem(Nl,JSON.stringify(n));}catch{hn.clear(),e.forEach((n,o)=>hn.set(o,n)),Yf();}},Xs=(e,t)=>{let n=Ys(t);n.set(e.id,e),Ks(n,t);},Ys=e=>{if(!e)return new Map(hn);try{let t=e.getItem(Nl);if(!t)return new Map;let n=JSON.parse(t);return new Map(Object.entries(n))}catch{return new Map}},qs=e=>{if(!e){hn.clear();return}try{e.removeItem(Nl);}catch{hn.clear();}},Ll=(e,t)=>{let n=Ys(t);n.delete(e),Ks(n,t);},oo=(e,t,n)=>{let o={...e,...t,lastUpdatedAt:Date.now()};return Xs(o,n),o};var Dl=(e,t)=>{let[n,o]=U(new Map),[r,s]=U(false),[i,c]=U(false),l=new Map,u=new Map,f=new Map,p=[],b=[],x=e,H=y=>f.get(y)?.agent??x,M=y=>f.get(y)?.elements??[],Y=y=>{let v=y??x,$=v?.provider?.canUndo?.()??false,N=v?.provider?.canRedo?.()??false;s($),c(N);},m=y=>{x=y,Y();},E=()=>x,T=()=>Array.from(n().values()).some(y=>y.isStreaming),C=async(y,v,$,N)=>{let W=N??x,V=W?.storage,oe=false,de=()=>l.get(y.id)===$;try{for await(let Q of v){if(!de())break;let me=n().get(y.id);if(!me)break;let Se=oo(me,{lastStatus:Q},V);o(ie=>new Map(ie).set(y.id,Se)),W?.onStatus?.(Q,Se);}if(!de())return;let G=n().get(y.id);if(G){let Q=W?.provider?.getCompletionMessage?.(),Ae=oo(G,{isStreaming:!1,...Q?{lastStatus:Q}:{}},V);o(pe=>new Map(pe).set(y.id,Ae));let me=M(y.id),Se=await W?.onComplete?.(Ae,me),ie=b.findIndex(pe=>pe.session.id===y.id);if(ie!==-1&&b.splice(ie,1),b.push({session:Ae,elements:me,agent:W}),Y(W),p.length=0,Se?.error){let pe=oo(Ae,{error:Se.error},V);o(ke=>new Map(ke).set(y.id,pe));}}}catch(I){if(!de())return;let Q=n().get(y.id);if(I instanceof Error&&I.name==="AbortError"){if(oe=true,Q){let Ae=M(y.id);W?.onAbort?.(Q,Ae);}}else {let Ae=I instanceof Error?I.message:"Unknown error";if(Q){let me=oo(Q,{error:Ae,isStreaming:false},V);o(Se=>new Map(Se).set(y.id,me)),I instanceof Error&&W?.onError?.(I,me);}}}finally{if(!de())return;if(l.delete(y.id),oe){let I=u.get(y.id);I&&(clearTimeout(I),u.delete(y.id)),f.delete(y.id),Ll(y.id,V),o(G=>{let Q=new Map(G);return Q.delete(y.id),Q});}}},R=y=>{let{selectionBounds:v,tagName:$}=y,N=v[0];if(!N)return;let W=N.x+N.width/2,V=N.y+N.height/2,oe=document.elementFromPoint(W,V);if(!(!oe||$&&!$.includes(" ")&&pt(oe)!==$))return oe},X=()=>{let y=x?.storage;if(!y)return;let v=Ys(y);if(v.size===0)return;let $=Date.now(),N=Array.from(v.values()).filter(V=>{if(V.isStreaming)return true;let oe=V.lastUpdatedAt??V.createdAt;return $-oe<1e4&&!!V.error});if(N.length===0){qs(y);return}if(!x?.provider?.supportsResume||!x.provider.resume){qs(y);return}u.forEach(V=>clearTimeout(V)),u.clear(),l.forEach(V=>V.abort()),l.clear(),f.clear();let W=new Map(N.map(V=>[V.id,V]));o(W),Ks(W,y);for(let V of N){let oe=R(V);oe&&x&&f.set(V.id,{elements:[oe],agent:x});let de={...V,isStreaming:true,error:void 0,lastStatus:V.lastStatus||"Resuming...",position:V.position??{x:window.innerWidth/2,y:window.innerHeight/2}};o(Q=>new Map(Q).set(V.id,de)),x?.onResume?.(de);let I=new AbortController;l.set(V.id,I);let G=x.provider.resume(V.id,I.signal,y);C(V,G,I);}},fe=async y=>{let{elements:v,prompt:$,position:N,selectionBounds:W,sessionId:V,agent:oe}=y,de=oe??(V?H(V):x),I=de?.storage;if(!de?.provider||v.length===0)return;let G=v[0],Q=V?n().get(V):void 0,Ae=!!V,Se={content:Q?Q.context.content:(await mr(v,{maxLines:1/0})).filter(Te=>Te.trim()),prompt:$,options:de?.getOptions?.(),sessionId:Ae?V:void 0},ie;if(Q)ie=oo(Q,{context:Se,isStreaming:true,lastStatus:"Thinking\u2026"},I);else {let Te=v.length>1?`${v.length} elements`:pt(G)||void 0,rt=v.length>1?void 0:await nr(G)||void 0;ie=qf(Se,N,W,Te,rt),ie.lastStatus="Thinking\u2026";}f.set(ie.id,{elements:v,agent:de}),o(Te=>new Map(Te).set(ie.id,ie)),Xs(ie,I),de.onStart?.(ie,v);let pe=new AbortController;l.set(ie.id,pe);let ke={...Se,sessionId:V??ie.id},Pe;try{Pe=t?.transformAgentContext?await t.transformAgentContext(ke,v):ke;}catch(Te){let rt=Te instanceof Error?Te.message:"Context transformation failed",ut=oo(ie,{error:rt,isStreaming:false},I);o(Ue=>new Map(Ue).set(ie.id,ut)),l.delete(ie.id),Te instanceof Error&&de.onError?.(Te,ut);return}let ge=de.provider.send(Pe,pe.signal);C(ie,ge,pe,de);},j=y=>{if(y){let v=l.get(y);v&&v.abort();}else l.forEach(v=>v.abort()),l.clear(),u.forEach(v=>clearTimeout(v)),u.clear(),f.clear(),b.length=0,p.length=0,o(new Map),qs(x?.storage),Y();},le=(y,v,$)=>{let W=n().get(y),V=v??H(y),oe=$??M(y);if(W?.isFading)return;W&&oe.length>0&&V?.onDismiss?.(W,oe),o(G=>{let Q=new Map(G),Ae=Q.get(y);return Ae&&Q.set(y,{...Ae,isFading:true}),Q});let de=u.get(y);de&&clearTimeout(de);let I=setTimeout(()=>{u.delete(y);let G=l.get(y);G&&(G.abort(),l.delete(y)),f.delete(y),Ll(y,V?.storage),o(Q=>{let Ae=new Map(Q);return Ae.delete(y),Ae});},150);u.set(y,I);};return {sessions:n,isProcessing:T,canUndo:r,canRedo:i,session:{start:fe,abort:j,dismiss:le,retry:y=>{let $=n().get(y),N=H(y);if(!$||!N?.provider)return;let W=N.storage,V=M(y),oe=oo($,{error:void 0,isStreaming:true,lastStatus:"Retrying\u2026"},W);o(Q=>new Map(Q).set(y,oe)),Xs(oe,W),V.length>0&&N.onStart?.(oe,V);let de=new AbortController;l.set(y,de);let I={...oe.context,sessionId:y},G=N.provider.send(I,de.signal);C(oe,G,de,N);},undo:y=>{let $=n().get(y),N=H(y),W=M(y);if($){p.push({session:$,elements:W,agent:N});let V=b.findIndex(oe=>oe.session.id===y);V!==-1&&b.splice(V,1),N?.onUndo?.($,W),N?.provider?.undo?.();}le(y,N,W),Y(N);},getElement:y=>M(y)[0],getElements:y=>M(y),tryResume:X,acknowledgeError:y=>{let N=n().get(y)?.context.prompt;return le(y),N}},history:{undo:()=>{let y=b.pop();if(!y)return;let{session:v,elements:$,agent:N}=y,W=N??x;p.push(y),W?.onUndo?.(v,$),W?.provider?.undo?.(),le(v.id,W,$),Y(W);},redo:()=>{let y=p.pop();if(!y)return;let v=y.agent??x,{session:$,elements:N}=y;v?.provider?.redo?.();let W=N.filter(V=>et(V));if(W.length===0){let V=R($);V&&(W=[V]);}if(W.length>0&&v){b.push(y);let V=W.map(de=>ze(de)),oe={...$,selectionBounds:V};f.set($.id,{elements:W,agent:v}),o(de=>new Map(de).set($.id,oe));}Y(v);}},_internal:{updateBoundsOnViewportChange:()=>{let y=n();if(y.size===0)return;let v=new Map(y),$=false;for(let[N,W]of y){let V=M(N),oe=V[0];if(et(oe)){let de=V.filter(I=>et(I)).map(I=>ze(I));if(de.length>0){let I=W.selectionBounds[0],G=de[0],Q=rs({currentPosition:W.position,previousBounds:I,nextBounds:G});v.set(N,{...W,selectionBounds:de,position:Q}),$=true;}}}$&&o(v);},setOptions:m,getOptions:E}}};var Zf=(e,t)=>{let n=[],o=(u,f)=>{let p=t(u),b=Fs(p.x+p.width/2,p.y+p.height/2).filter(e),x=b.indexOf(u);return x===-1?null:b[x+f]??null},r=u=>{let f=o(u,1);return f&&(n.push(u),n.length>Ma&&(n=n.slice(-Ma))),f},s=u=>{if(n.length>0){let f=n.pop();if(et(f))return f}return o(u,-1)},i=(u,f)=>{let p=H=>{let M=Array.from(H.children),Y=f?M:M.reverse();for(let m of Y)if(f){if(e(m))return m;let E=p(m);if(E)return E}else {let E=p(m);if(E)return E;if(e(m))return m}return null},b=H=>f?H.nextElementSibling:H.previousElementSibling,x=null;if(f&&(x=p(u)),!x){let H=u;for(;H;){let M=b(H);for(;M;){let m=p(M);if(m){x=m;break}if(e(M)){x=M;break}M=b(M);}if(x)break;let Y=H.parentElement;if(!f&&Y&&e(Y)){x=Y;break}H=Y;}}return x};return {findNext:(u,f)=>{switch(u){case "ArrowUp":return r(f);case "ArrowDown":return s(f);case "ArrowRight":return i(f,true);case "ArrowLeft":return i(f,false);default:return null}},clearHistory:()=>{n=[];}}};var Jf=e=>{let{metaKey:t,ctrlKey:n,shiftKey:o,altKey:r}=Wf(e.activationKey);return {metaKey:t,ctrlKey:n,shiftKey:o,altKey:r}},Qf=()=>{let e=new WeakSet,t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),n=false;if(t?.get&&!t.get.__reactGrabPatched){n=true;let r=t.get,s=function(){return e.has(this)?"":r.call(this)};s.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:s,configurable:true});}return {claimedEvents:e,originalKeyDescriptor:t,didPatch:n,restore:()=>{n&&t&&Object.defineProperty(KeyboardEvent.prototype,"key",t);}}};var Fl=(e,t)=>({top:t<25,bottom:t>window.innerHeight-25,left:e<25,right:e>window.innerWidth-25}),em=(e,t)=>{let n=null,o=()=>{if(!t()){s();return}let c=e(),l=Fl(c.x,c.y);l.top&&window.scrollBy(0,-10),l.bottom&&window.scrollBy(0,10),l.left&&window.scrollBy(-10,0),l.right&&window.scrollBy(10,0),l.top||l.bottom||l.left||l.right?n=Ve(o):n=null;},r=()=>{o();},s=()=>{n!==null&&(Ge(n),n=null);};return {start:r,stop:s,isActive:()=>n!==null}};var tm=()=>{let e=globalThis;return !!(e.chrome?.runtime?.id||e.browser?.runtime?.id)};var nm=()=>{try{let e="0.1.25",t=`data:image/svg+xml;base64,${btoa(xu)}`;console.log(`%cReact Grab${e?` v${e}`:""}%c
|
|
59
59
|
https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${t}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&e&&!tm()&&fetch(`https://www.react-grab.com/api/version?source=browser&t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(n=>n.text()).then(n=>{n&&n!==e&&console.warn(`[React Grab] v${e} is outdated (latest: v${n})`);}).catch(()=>null);}catch{}};var om=e=>{if("scheduler"in globalThis){globalThis.scheduler.postTask(e,{priority:"background"});return}if(typeof window<"u"&&"requestIdleCallback"in window){requestIdleCallback(e);return}setTimeout(e,0);};var rm=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}};var So=e=>e==="Enter"||e==="NumpadEnter";var im={name:"copy",setup:e=>{let t=false;return {hooks:{onElementSelect:n=>{if(t)return t=false,e.copyElement(n),true},onDeactivate:()=>{t=false;},cancelPendingToolbarActions:()=>{t=false;}},actions:[{id:"copy",label:"Copy",shortcut:"C",onAction:n=>{n.copy?.();}},{id:"copy-toolbar",label:"Copy element",shortcut:"C",target:"toolbar",onAction:()=>{t=true,e.activate();}}]}}};var $l={name:"comment",setup:e=>({actions:[{id:"comment",label:"Comment",shortcut:"Enter",onAction:t=>{t.enterPromptMode?.();}},{id:"comment-toolbar",label:"Comment",shortcut:"Enter",target:"toolbar",onAction:()=>{e.comment();}}]})};var Hl={name:"open",actions:[{id:"open",label:"Open",shortcut:"O",enabled:e=>!!e.filePath,onAction:e=>{if(!e.filePath)return;e.hooks.onOpenFile(e.filePath,e.lineNumber)||or(e.filePath,e.lineNumber,e.hooks.transformOpenFileUrl),e.hideContextMenu(),e.cleanup();}}]};var gr=(e,t)=>t?`${e}
|
|
60
60
|
${t}`:e;var sm={name:"copy-html",setup:(e,t)=>{let n=false;return {hooks:{onElementSelect:o=>{if(n)return n=false,Promise.all([t.transformHtmlContent(o.outerHTML,[o]),e.getStackContext(o)]).then(([r,s])=>{r&&Xt(gr(r,s));}).catch(()=>{}),true},onDeactivate:()=>{n=false;},cancelPendingToolbarActions:()=>{n=false;}},actions:[{id:"copy-html",label:"Copy HTML",onAction:async o=>{await o.performWithFeedback(async()=>{let r=o.elements.map(c=>c.outerHTML).join(`
|
|
61
61
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-T6Z6IZX5.js';export{c as DEFAULT_THEME,d as commentPlugin,b as generateSnippet,f as init,e as openPlugin}from'./chunk-T6Z6IZX5.js';export{wa as formatElementInfo,ra as getStack,la as isInstrumentationActive}from'./chunk-MG2QQPFZ.js';/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2025 Aiden Bai
|
package/dist/primitives.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2J7DC6YX_cjs=require('./chunk-2J7DC6YX.cjs');/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2025 Aiden Bai
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
var
|
|
9
|
+
var D=async e=>{let o=await chunk2J7DC6YX_cjs.ra(e)??[],x=await chunk2J7DC6YX_cjs.va(e),y=chunk2J7DC6YX_cjs.xa(e),z=chunk2J7DC6YX_cjs.ua(e),S=chunk2J7DC6YX_cjs.ma(e),k=chunk2J7DC6YX_cjs.Oa(e),v=chunk2J7DC6YX_cjs.Pa(e);return {element:e,htmlPreview:y,stackString:x,stack:o,componentName:z,fiber:S,selector:k,styles:v}},t=new Set,n=false,I=e=>{n=true,t.add(chunk2J7DC6YX_cjs.za()),t.add(chunk2J7DC6YX_cjs.Ba(e??[document.body])),chunk2J7DC6YX_cjs.Ca(),chunk2J7DC6YX_cjs.Ma();},L=()=>{n=false;for(let e of Array.from(t))e();t.clear(),chunk2J7DC6YX_cjs.Ba([]),chunk2J7DC6YX_cjs.Da(),chunk2J7DC6YX_cjs.Na();},M=()=>n,T=async(e,o)=>{await chunk2J7DC6YX_cjs.ya(e,o);};exports.freeze=I;exports.getElementContext=D;exports.isFreezeActive=M;exports.openFile=T;exports.unfreeze=L;
|