react-grab 0.1.50-dev.f350003 → 0.1.50-dev.f8c2c71

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.
@@ -6,33 +6,33 @@
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
- this.globalThis=this.globalThis||{},this.globalThis.__REACT_GRAB_MODULE__=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,t)=>()=>(e&&(t=e(e=0)),t),r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r};function i(e){let t=String(e),n=t.length-1;return M.context.id+(n?String.fromCharCode(96+n):``)+t}function a(e){M.context=e}function o(){return{...M.context,id:M.getNextContextId(),count:0}}function s(e,t){let n=I,r=P,i=e.length===0,a=t===void 0?r:t,o=i?Ne:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>g(()=>ue(o)));P=o,I=null;try{return ie(s,!0)}finally{I=n,P=r}}function c(e,t){t=t?Object.assign({},Oe,t):Oe;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[T.bind(n),e=>(typeof e==`function`&&(e=F&&F.running&&F.sources.has(n)?e(n.tValue):e(n.value)),ne(n,e))]}function l(e,t,n){let r=O(e,t,!0,je);Fe&&F&&F.running?L.push(r):E(r)}function u(e,t,n){let r=O(e,t,!1,je);Fe&&F&&F.running?L.push(r):E(r)}function d(e,t,n){Ae=se;let r=O(e,t,!1,je),i=ze&&ee(ze);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),R?R.push(r):E(r)}function f(e,t,n){n=n?Object.assign({},Oe,n):Oe;let r=O(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Fe&&F&&F.running?(r.tState=je,L.push(r)):E(r),T.bind(r)}function p(e){return e&&typeof e==`object`&&`then`in e}function m(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=Pe,u=null,d=!1,m=!1,h=`initialValue`in a,_=typeof r==`function`&&f(r),v=new Set,[y,b]=(a.storage||c)(a.initialValue),[x,C]=c(void 0),[w,te]=c(void 0,{equals:!1}),[T,ne]=c(h?`ready`:`unresolved`);M.context&&(u=M.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:M.load&&M.has(u)&&(s=M.load(u)));function E(e,t,n,r){return o===e&&(o=null,r!==void 0&&(h=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=Pe,F&&e&&d?(F.promises.delete(e),d=!1,ie(()=>{F.running=!0,D(t,n)},!1)):D(t,n)),t}function D(e,t){ie(()=>{t===void 0&&b(()=>e),ne(t===void 0?h?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function O(){let e=ze&&ee(ze),t=y(),n=x();if(n!==void 0&&!o)throw n;return I&&!I.user&&e&&l(()=>{w(),o&&(e.resolved&&F&&d?F.promises.add(o):v.has(e)||(e.increment(),v.add(e)))}),t}function re(e=!0){if(e!==!1&&m)return;m=!1;let t=_?_():r;if(d=F&&F.running,t==null||t===!1){E(o,g(y));return}F&&o&&F.promises.delete(o);let n,a=s===Pe?g(()=>{try{return i(t,{value:y(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){E(o,void 0,fe(n),t);return}else if(!p(a))return E(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?E(o,a.v,void 0,t):E(o,void 0,fe(a.v),t),a):(m=!0,queueMicrotask(()=>m=!1),ie(()=>{ne(h?`refreshing`:`pending`),te()},!1),a.then(e=>E(a,e,void 0,t),e=>E(a,void 0,fe(e),t)))}Object.defineProperties(O,{state:{get:()=>T()},error:{get:()=>x()},loading:{get(){let e=T();return e===`pending`||e===`refreshing`}},latest:{get(){if(!h)return O();let e=x();if(e&&!o)throw e;return y()}}});let ae=P;return _?l(()=>(ae=P,re(!1))):re(!1),[O,{refetch:e=>S(ae,()=>re(e)),mutate:b}]}function h(e){return ie(e,!1)}function g(e){if(!Ie&&I===null)return e();let t=I;I=null;try{return Ie?Ie.untrack(e):e()}finally{I=t}}function _(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=g(()=>t(o,i,n));return i=o,s}}function v(e){d(()=>g(e))}function y(e){return P===null||(P.cleanups===null?P.cleanups=[e]:P.cleanups.push(e)),e}function b(){return I}function x(){return P}function S(e,t){let n=P,r=I;P=e,I=null;try{return ie(t,!0)}catch(e){me(e)}finally{P=n,I=r}}function C(e){if(F&&F.running)return e(),F.done;let t=I,n=P;return Promise.resolve().then(()=>{I=t,P=n;let r;return(Fe||ze)&&(r=F||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),ie(e,!1),I=P=null,r?r.done:void 0})}function w(e,t){let n=Symbol(`context`);return{id:n,Provider:ge(n),defaultValue:e}}function ee(e){let t;return P&&P.context&&(t=P.context[e.id])!==void 0?t:e.defaultValue}function te(e){let t=f(e),n=f(()=>he(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function T(){let e=F&&F.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===je)E(this);else{let e=L;L=null,ie(()=>ce(this),!1),L=e}if(I){let e=this.observers?this.observers.length:0;I.sources?(I.sources.push(this),I.sourceSlots.push(e)):(I.sources=[this],I.sourceSlots=[e]),this.observers?(this.observers.push(I),this.observerSlots.push(I.sources.length-1)):(this.observers=[I],this.observerSlots=[I.sources.length-1])}return e&&F.sources.has(this)?this.tValue:this.value}function ne(e,t,n){let r=F&&F.running&&F.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(F){let r=F.running;(r||!n&&F.sources.has(e))&&(F.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ie(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=F&&F.running;r&&F.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?L.push(n):R.push(n),n.observers&&le(n)),r?n.tState=je:n.state=je)}if(L.length>1e6)throw L=[],Error()},!1)}return t}function E(e){if(!e.fn)return;ue(e);let t=z;D(e,F&&F.running&&F.sources.has(e)?e.tValue:e.value,t),F&&!F.running&&F.sources.has(e)&&queueMicrotask(()=>{ie(()=>{F&&(F.running=!0),I=P=e,D(e,e.tValue,t),I=P=null},!1)})}function D(e,t,n){let r,i=P,a=I;I=P=e;try{r=e.fn(t)}catch(t){return e.pure&&(F&&F.running?(e.tState=je,e.tOwned&&e.tOwned.forEach(ue),e.tOwned=void 0):(e.state=je,e.owned&&e.owned.forEach(ue),e.owned=null)),e.updatedAt=n+1,me(t)}finally{I=a,P=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ne(e,r,!0):F&&F.running&&e.pure?(F.sources.has(e)||(e.value=r),F.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function O(e,t,n,r=je,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:P,context:P?P.context:null,pure:n};if(F&&F.running&&(a.state=0,a.tState=r),P===null||P!==Ne&&(F&&F.running&&P.pure?P.tOwned?P.tOwned.push(a):P.tOwned=[a]:P.owned?P.owned.push(a):P.owned=[a]),Ie&&a.fn){let e=a.fn,[t,n]=c(void 0,{equals:!1}),r=Ie.factory(e,n);y(()=>r.dispose());let i,o=()=>C(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),F&&F.running?(i||=Ie.factory(e,o),i.track(n)):r.track(n))}return a}function re(e){let t=F&&F.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Me)return ce(e);if(e.suspense&&g(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<z);){if(t&&F.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(F.disposed.has(t))return}if((t?e.tState:e.state)===je)E(e);else if((t?e.tState:e.state)===Me){let t=L;L=null,ie(()=>ce(e,n[0]),!1),L=t}}}function ie(e,t){if(L)return e();let n=!1;t||(L=[]),R?n=!0:R=[],z++;try{let t=e();return ae(n),t}catch(e){n||(R=null),L=null,me(e)}}function ae(e){if(L&&=(Fe&&F&&F.running?k(L):oe(L),null),e)return;let t;if(F){if(!F.promises.size&&!F.queue.size){let e=F.sources,n=F.disposed;R.push.apply(R,F.effects),t=F.resolve;for(let e of R)`tState`in e&&(e.state=e.tState),delete e.tState;F=null,ie(()=>{for(let e of n)ue(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)ue(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}Re(!1)},!1)}else if(F.running){F.running=!1,F.effects.push.apply(F.effects,R),R=null,Re(!0);return}}let n=R;R=null,n.length&&ie(()=>Ae(n),!1),t&&t()}function oe(e){for(let t=0;t<e.length;t++)re(e[t])}function k(e){for(let t=0;t<e.length;t++){let n=e[t],r=F.queue;r.has(n)||(r.add(n),Fe(()=>{r.delete(n),ie(()=>{F.running=!0,re(n)},!1),F&&(F.running=!1)}))}}function se(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:re(r)}if(M.context){if(M.count){M.effects||=[],M.effects.push(...e.slice(0,n));return}a()}for(M.effects&&(M.done||!M.count)&&(e=[...M.effects,...e],n+=M.effects.length,delete M.effects),t=0;t<n;t++)re(e[t])}function ce(e,t){let n=F&&F.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===je?i!==t&&(!i.updatedAt||i.updatedAt<z)&&re(i):e===Me&&ce(i,t)}}}function le(e){let t=F&&F.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=Me:r.state=Me,r.pure?L.push(r):R.push(r),r.observers&&le(r))}}function ue(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ue(e.tOwned[t]);delete e.tOwned}if(F&&F.running&&e.pure)de(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ue(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}F&&F.running?e.tState=0:e.state=0}function de(e,t){if(t||(e.tState=0,F.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)de(e.owned[t])}function fe(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function pe(e,t,n){try{for(let n of t)n(e)}catch(e){me(e,n&&n.owner||null)}}function me(e,t=P){let n=ke&&t&&t.context&&t.context[ke],r=fe(e);if(!n)throw r;R?R.push({fn(){pe(r,n,t)},state:je}):pe(r,n,t)}function he(e){if(typeof e==`function`&&!e.length)return he(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=he(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function ge(e,t){return function(t){let n;return u(()=>n=g(()=>(P.context={...P.context,[e]:t.value},te(()=>t.children))),void 0),n}}function _e(e){for(let t=0;t<e.length;t++)e[t]()}function ve(e,t,n={}){let r=[],i=[],a=[],o=0,l=t.length>1?[]:null;return y(()=>_e(a)),()=>{let u=e()||[],d=u.length,f,p;return u[De],g(()=>{let e,t,c,h,g,_,v,y,b;if(d===0)o!==0&&(_e(a),a=[],r=[],i=[],o=0,l&&=[]),n.fallback&&(r=[Be],i[0]=s(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(d),p=0;p<d;p++)r[p]=u[p],i[p]=s(m);o=d}else{for(c=Array(d),h=Array(d),l&&(g=Array(d)),_=0,v=Math.min(o,d);_<v&&r[_]===u[_];_++);for(v=o-1,y=d-1;v>=_&&y>=_&&r[v]===u[y];v--,y--)c[y]=i[v],h[y]=a[v],l&&(g[y]=l[v]);for(e=new Map,t=Array(y+1),p=y;p>=_;p--)b=u[p],f=e.get(b),t[p]=f===void 0?-1:f,e.set(b,p);for(f=_;f<=v;f++)b=r[f],p=e.get(b),p!==void 0&&p!==-1?(c[p]=i[f],h[p]=a[f],l&&(g[p]=l[f]),p=t[p],e.set(b,p)):a[f]();for(p=_;p<d;p++)p in c?(i[p]=c[p],a[p]=h[p],l&&(l[p]=g[p],l[p](p))):i[p]=s(m);i=i.slice(0,o=d),r=u.slice(0)}return i});function m(e){if(a[p]=e,l){let[e,n]=c(p);return l[p]=n,t(u[p],e)}return t(u[p])}}}function A(e,t){if(Ve&&M.context){let n=M.context;a(o());let r=g(()=>e(t||{}));return a(n),r}return g(()=>e(t||{}))}function ye(){return!0}function be(e){return(e=typeof e==`function`?e():e)?e:{}}function xe(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function Se(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&N in r,e[n]=typeof r==`function`?(t=!0,f(r)):r}if(Ee&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=be(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in be(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(be(e[n])));return[...new Set(t)]}},He);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:xe.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function Ce(e,...t){let n=t.length;if(Ee&&N in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},He));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},He)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}function we(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return f(ve(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,n=f(()=>e.when,void 0,void 0),r=t?n:f(n,void 0,{equals:(e,t)=>!e==!t});return f(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?g(()=>a(t?i:()=>{if(!g(r))throw Ue(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var M,Te,N,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,P,F,Fe,Ie,I,L,R,z,Le,Re,ze,Be,Ve,He,Ue,B=n((()=>{M={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return i(this.context.count)},getNextContextId(){return i(this.context.count++)}},Te=(e,t)=>e===t,N=Symbol(`solid-proxy`),Ee=typeof Proxy==`function`,De=Symbol(`solid-track`),Oe={equals:Te},ke=null,Ae=oe,je=1,Me=2,Ne={owned:null,cleanups:null,context:null,owner:null},Pe={},P=null,F=null,Fe=null,Ie=null,I=null,L=null,R=null,z=0,[Le,Re]=c(!1),Be=Symbol(`fallback`),Ve=!1,He={get(e,t,n){return t===N?n:e.get(t)},has(e,t){return t===N?!0:e.has(t)},set:ye,deleteProperty:ye,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ye,deleteProperty:ye}},ownKeys(e){return e.keys()}},Ue=e=>`Stale read from <${e}>.`}));function We(e,t){let n=mt[e];return typeof n==`object`?n[t]?n.$:void 0:n}function Ge(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}function Ke(e,t,n,r={}){let i;return s(r=>{i=r,t===document?e():G(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function V(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>g(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function qe(e,t=window.document){let n=t[vt]||(t[vt]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ot))}}function H(e,t,n){nt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Je(e,t,n,r){nt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Ye(e,t,n){nt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Xe(e,t){nt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function U(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Ze(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(it(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(it(e,i,!0),n[i]=o)}return n}function Qe(e,t,n){if(!t)return n?H(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function W(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function $e(e,t={},n,r){let i={};return r||u(()=>i.children=st(e,t.children,i.children)),u(()=>typeof t.ref==`function`&&et(t.ref,e)),u(()=>tt(e,t,n,!0,i,!0)),i}function et(e,t,n){return g(()=>e(t,n))}function G(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return st(e,t,r,n);u(r=>st(e,t(),r,n),r)}function tt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=at(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||st(e,t.children);continue}let s=t[o];i[o]=at(e,o,s,i[o],n,a,t)}}function nt(e){return!!M.context&&!M.done&&(!e||e.isConnected)}function rt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function it(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function at(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Qe(e,n,r);if(t===`classList`)return Ze(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ht.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(U(e,i,n,a),a&&qe([i]))}else if(t.slice(0,5)===`attr:`)H(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Ye(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=ft.has(t))||!i&&((u=We(t,e.tagName))||(c=dt.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(nt(e))return n;t===`class`||t===`className`?Xe(e,n):s&&!c&&!l?e[rt(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&gt[t.split(`:`)[0]];r?Je(e,r,t,n):H(e,pt[t]||t,n)}return n}function ot(e){if(M.registry&&M.events&&M.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),M.registry&&!M.done&&(M.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function st(e,t,n,r,i){let a=nt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=ut(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=ut(e,n,r)}else if(o===`function`)return u(()=>{let i=t();for(;typeof i==`function`;)i=i();n=st(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(ct(o,t,n,i))return u(()=>n=st(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=ut(e,n,r),s)return n}else c?n.length===0?lt(e,o,r):Ge(e,n,o):(n&&ut(e),lt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=ut(e,n,r,t);ut(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function ct(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=ct(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=ct(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function lt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function ut(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var dt,ft,pt,mt,ht,gt,_t,vt,K=n((()=>{B(),dt=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`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`.split(`.`)]),ft=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),pt=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),mt=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}}),ht=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),gt={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},_t=e=>f(()=>e()),vt=`_$DX_DELEGATE`}));K();var yt=`/*! tailwindcss v4.3.0 | 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-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}}}@layer theme{:root,:host{--font-sans:"Geist", ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:4px;--font-weight-medium:500;--radius-sm:4px;--ease-out:cubic-bezier(0, 0, .2, 1);--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);--ease-drawer:cubic-bezier(.32, .72, 0, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1)}}@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{.a11y-hitbox{position:relative}.a11y-hitbox:before{content:"";pointer-events:auto;width:100%;min-width:24px;height:100%;min-height:24px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing) * 0)}.top-full{top:100%}.right-full{right:100%}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.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\\.5{margin:calc(var(--spacing) * -.5)}.m-0{margin:calc(var(--spacing) * 0)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.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)}.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{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-\\[17px\\]{height:17px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.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}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.interactive-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}@media (hover:hover) and (pointer:fine){.interactive-scale:hover{transform:scale(1.05)}}.interactive-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);transform:scale(.96)}.press-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}.press-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);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,)}.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{gap:calc(var(--spacing) * 0)}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.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-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.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-\\[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-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-transparent{background-color:#0000}.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-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.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-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-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\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-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,)}.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\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[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-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,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\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;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))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-drawer{--tw-ease:var(--ease-drawer);transition-timing-function:var(--ease-drawer)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.ease-spring{--tw-ease:var(--ease-spring);transition-timing-function:var(--ease-spring)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change: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}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}}:host{all:initial;direction:ltr}:host,[data-rg-theme=dark]{--rg-panel-bg:#161616;--rg-text-primary:#fff;--rg-text-secondary:#a7a7a7;--rg-surface-hover:#ffffff1a;--rg-surface-active:#ffffff26;--rg-border-subtle:#ffffff1a;--rg-border-button:#fff3;--rg-submit-bg:#fff;--rg-submit-fg:#161616;--rg-error-text:#f87171;--rg-error-bg:#3d1515;--rg-error-bg-hover:#4d1f1f;--rg-shadow:0 2px 8px #00000014;--rg-drop-shadow:drop-shadow(0px 2px 8px #00000014);--rg-shimmer-from:#a1a1aa;--rg-shimmer-to:#d4d4d8;--rg-text-primary-85:#ffffffd9}@media (prefers-color-scheme:dark){:host:not([data-rg-theme]){--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}}:host([data-rg-theme=light]),[data-rg-theme=light]{--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}@media (prefers-reduced-motion:reduce){:host,:host *,:host :before,:host :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:host :focus{box-shadow:none!important;outline:none!important}@keyframes shake{0%,to{translate:0}15%,45%{translate:calc(-3px * var(--rg-shake-x,1)) calc(-3px * var(--rg-shake-y,0))}30%,60%{translate:calc(3px * var(--rg-shake-x,1)) calc(3px * var(--rg-shake-y,0))}75%{translate:calc(-2px * var(--rg-shake-x,1)) calc(-2px * var(--rg-shake-y,0))}90%{translate:calc(2px * var(--rg-shake-x,1)) calc(2px * var(--rg-shake-y,0))}}@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{background:linear-gradient(90deg, var(--rg-shimmer-from) 0%, var(--rg-shimmer-to) 25%, var(--rg-shimmer-from) 50%, var(--rg-shimmer-to) 75%, var(--rg-shimmer-from) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.5s linear infinite shimmer}.animate-shake,.animate-shake-vertical{will-change:translate;animation:.3s ease-out shake}@keyframes tooltip-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.animate-tooltip-fade-in{will-change:transform, opacity;animation:.1s ease-out tooltip-fade-in}.animate-shake-vertical{--rg-shake-x:0;--rg-shake-y:1}@supports (-webkit-touch-callout:none){textarea[data-react-grab-input]{font-size:16px}}@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}`;B();let bt=Symbol(`store-raw`),xt=Symbol(`store-node`),St=Symbol(`store-has`),Ct=Symbol(`store-self`);function wt(e){let t=e[N];if(!t&&(Object.defineProperty(e,N,{value:t=new Proxy(e,Mt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Tt(e){let t;return typeof e==`object`&&!!e&&(e[N]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Et(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[bt])return n;if(!Tt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Et(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Et(i,t))!==i&&(e[a]=r))}return e}function Dt(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Ot(e,t,n){if(e[t])return e[t];let[r,i]=c(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function kt(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===N||t===xt?n:(delete n.value,delete n.writable,n.get=()=>e[N][t],n)}function At(e){b()&&Ot(Dt(e,xt),Ct)()}function jt(e){return At(e),Reflect.ownKeys(e)}let Mt={get(e,t,n){if(t===bt)return e;if(t===N)return n;if(t===De)return At(e),n;let r=Dt(e,xt),i=r[t],a=i?i():e[t];if(t===xt||t===St||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);b()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=Ot(r,t,a)())}return Tt(a)?wt(a):a},has(e,t){return t===bt||t===N||t===De||t===xt||t===St||t===`__proto__`?!0:(b()&&Ot(Dt(e,St),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:jt,getOwnPropertyDescriptor:kt};function Nt(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[St]&&e[St][t]&&i!==void 0&&e[St][t].$()):(e[t]=n,e[St]&&e[St][t]&&i===void 0&&e[St][t].$());let o=Dt(e,xt),s;if((s=Ot(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Ot(o,`length`,a))&&s.$(e.length)}(s=o[Ct])&&s.$()}function Pt(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Nt(e,i,t[i])}}function Ft(e,t){if(typeof t==`function`&&(t=t(e)),t=Et(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Nt(e,n,r)}Nt(e,`length`,r)}else Pt(e,t)}function It(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)It(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&It(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)It(e,[r].concat(t),n);return}else if(t.length>1){It(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Et(a),r===void 0||Tt(i)&&Tt(a)&&!Array.isArray(a)?Pt(i,a):Nt(e,r,a))}function Lt(...[e,t]){let n=Et(e||{}),r=Array.isArray(n),i=wt(n);function a(...e){h(()=>{r&&e.length===1?Ft(n,e[0]):It(n,e)})}return[i,a]}let Rt=new WeakMap,zt={get(e,t){if(t===bt)return e;let n=e[t],r;return Tt(n)?Rt.get(n)||(Rt.set(n,r=new Proxy(n,zt)),r):n},set(e,t,n){return Nt(e,t,Et(n)),!0},deleteProperty(e,t){return Nt(e,t,void 0,!0),!0}};function Bt(e){return t=>{if(Tt(t)){let n;(n=Rt.get(t))||Rt.set(t,n=new Proxy(t,zt)),e(n)}return t}}var Vt,Ht,Ut=n((()=>{Vt=null,Ht=()=>{if(Vt!==null)return Vt;try{Vt=window.matchMedia(`(color-gamut: p3)`).matches}catch{Vt=!1}return Vt}})),Wt,Gt,Kt,qt,Jt=n((()=>{Ut(),Wt=Ht(),Gt=`210, 57, 192`,Kt=`0.84 0.19 0.78`,qt=e=>Wt?`color(display-p3 ${Kt} / ${e})`:`rgba(${Gt}, ${e})`})),Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,q,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,J=n((()=>{Jt(),Yt=`0.1.50-dev.f350003`,Xt=`var(--rg-panel-bg)`,Zt=`var(--rg-shadow)`,Qt=-1e3,$t=.95,en=1500,tn=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],nn=5e3,rn=8e3,q=1e4,an=.5,on=2147483647,sn=2147483645,cn=.7,ln=1e3/60,un=.01,dn=qt(.4),fn=qt(.05),pn=qt(.5),mn=qt(.08),hn=qt(.15),gn=.2,_n=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],vn=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),yn=new Set([`a`,`button`,`code`,`label`,`option`,`pre`,`summary`,`text`]),bn=new Set([`script`,`style`,`template`,`noscript`]),xn=[`Meta`,`Control`,`Shift`,`Alt`],Sn=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),Cn=`data-react-grab-frozen`,wn=`data-react-grab-same-origin-frame`,Tn=.5,En=`data-react-grab-input`,Dn=.5,On=`copy`,kn=`comment`,An=`superellipse(1.25)`,jn=.01,Mn=1e3,Nn={left:-9999,top:-9999},Pn={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Fn=1e3,In=-9999})),Ln,Rn=n((()=>{Ln=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE})),zn,Bn=n((()=>{Rn(),zn=e=>Ln(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`})),Vn,Hn=n((()=>{Bn(),Vn=e=>zn(e)&&e.tagName===`IFRAME`})),Un,Wn,Gn,Kn=n((()=>{J(),Un=new WeakMap,Wn=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},Gn=e=>{let t=performance.now(),n=Un.get(e);if(n&&t-n.timestamp<16)return n.metrics;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i;if(!r)i={contentOffsetX:e.clientLeft,contentOffsetY:e.clientTop,height:e.offsetHeight,width:e.offsetWidth};else{let t=Wn(r.borderLeftWidth),n=Wn(r.borderRightWidth),a=Wn(r.borderTopWidth),o=Wn(r.borderBottomWidth),s=Wn(r.paddingLeft),c=Wn(r.paddingRight),l=Wn(r.paddingTop),u=Wn(r.paddingBottom),d=Wn(r.width),f=Wn(r.height),p=t+n+s+c,m=a+o+l+u,h=r.boxSizing===`border-box`?d:d+p,g=r.boxSizing===`border-box`?f:f+m;i={contentOffsetX:t+s,contentOffsetY:a+l,height:g>0?g:e.offsetHeight,width:h>0?h:e.offsetWidth}}return Un.set(e,{metrics:i,timestamp:t}),i}})),qn,Jn=n((()=>{qn=(e,t)=>t>0?e/t:1})),Yn,Xn=n((()=>{Yn=e=>{if(!e)return null;try{return e.frameElement}catch{return null}}})),Zn,Qn=n((()=>{Hn(),Kn(),Jn(),Xn(),Zn=(e,t,n)=>{let r=t,i=n,a=1,o=1,s=e;for(;s&&s!==window;){let e=Yn(s);if(!e||!Vn(e))break;let t=e.getBoundingClientRect(),n=Gn(e),c=qn(t.width,n.width),l=qn(t.height,n.height);r=t.left+(n.contentOffsetX+r)*c,i=t.top+(n.contentOffsetY+i)*l,a*=c,o*=l,s=e.ownerDocument.defaultView}return{x:r,y:i,scaleX:a,scaleY:o}}})),$n,er=n((()=>{$n=e=>{let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e):window.getComputedStyle(e)}})),tr,nr,rr=n((()=>{J(),tr=(e,t)=>e.replace(/([\d.]+)px/g,(e,n)=>{let r=Number(n)*Math.abs(t);return`${Number(r.toFixed(3))}px`}),nr=(e,t,n)=>{let[r,i]=e.split(`/`).map(e=>e.trim()),a=tr(r,t),o=tr(i??r,n);return i===void 0&&a===o?a:`${a} / ${o}`}})),ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr=n((()=>{ir=e=>Object.assign(e,{[Symbol.dispose]:e}),ar=`0.6.1`,or=`bippy-${ar}`,sr=Object.defineProperty,cr=Object.prototype.hasOwnProperty,lr=()=>{},ur=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{}},dr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),fr=!1,mr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>fr?!0:(e&&typeof e.inject==`function`&&(pr=e.inject.toString()),!!pr?.includes(`(injected)`)),hr=new Set,gr=new Set,_r=e=>{e&&hr.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:or,checkDCE:ur,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),gr.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,hr.forEach(e=>e())),i},on:lr,onCommitFiberRoot:lr,onCommitFiberUnmount:lr,onPostCommitFiberRoot:lr,renderers:t,supportsFiber:!0,supportsFlight:!0};try{sr(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{gr.add(e),t.renderers.set(n,e)}),vr(e))}}});let t=window.hasOwnProperty,n=!1;sr(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{vr(e)}return r},vr=e=>{e&&hr.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ur,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=or,t._instrumentationIsActive=!1;let e=dr(t);if(e||(t.on=lr),t.renderers.size){t._instrumentationIsActive=!0,hr.forEach(e=>e());return}let n=t.inject,r=mr(t);r&&!e&&(fr=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return gr.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,hr.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||mr())&&e?.()}catch{}},yr=()=>cr.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),br=e=>yr()?(vr(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):_r(e),xr=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),Sr=()=>{try{xr()&&br()}catch{}}})),wr=n((()=>{Cr(),Sr()}));function Tr(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await Ir(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=Fr(i,t,n);if(e)return e;i=n?null:i.sibling}return null}var Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui=n((()=>{Cr(),Er=60111,Dr=`Symbol(react.concurrent_mode)`,Or=`Symbol(react.async_mode)`,kr=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return typeof e.type==`string`}},Ar=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}},jr=e=>!e||typeof e!=`object`?!1:`pendingProps`in e&&!(`containerInfo`in e),Mr=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 9:case 11:case 0:case 14:case 15:return(r&1)==1;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},Nr=e=>{switch(e.tag){case 18:return!0;case 7:case 6:case 23:case 22:return!0;case 3:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===`react.concurrent_mode`||t.description===`react.async_mode`;switch(t){case Er:case Dr:case Or:return!0;default:return!1}}}},Pr=e=>{let t=[],n=[];for(kr(e)?t.push(e):e.child&&n.push(e.child);n.length;){let e=n.pop();if(!e)break;kr(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t},Fr=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=Fr(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Ir=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await Ir(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Lr=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Lr(t.type||t.render):null},Rr=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Lr(t);return r&&(r.displayName||r.name)||null},zr=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||dr(e)||mr(e)},Br=new Set,Vr=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let t of Br){let n=Tr(t.current,t=>{if(t===e)return!0});if(n)return n}return e},Hr=0,Ur=new WeakMap,Wr=(e,t=Hr++)=>{Ur.set(e,t)},Gr=e=>{let t=Ur.get(e);return t===void 0&&e.alternate&&(t=Ur.get(e.alternate)),t===void 0&&(t=Hr++,Wr(e,t)),t},Kr=(e,t,n)=>{let r=t;for(;r!=null;){if(Ur.has(r)||Gr(r),!Nr(r)&&Mr(r)&&e(r,`mount`),r.tag===13)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&Kr(e,t,!1)}}else{let t=null;r.child!==null&&(t=r.child.child),t!==null&&Kr(e,t,!1)}else r.child!=null&&Kr(e,r.child,!0);r=n?r.sibling:null}},qr=(e,t,n,r)=>{if(Ur.has(t)||Gr(t),!n)return;Ur.has(n)||Gr(n);let i=t.tag===13,a=!Nr(t);a&&Mr(t)&&e(t,`update`);let o=i&&n.memoizedState!==null,s=i&&t.memoizedState!==null;if(o&&s){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&qr(e,r,i,t)}else if(o&&!s){let n=t.child;n!==null&&Kr(e,n,!0)}else if(!o&&s){Yr(e,n);let r=t.child?.sibling??null;r!==null&&Kr(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){let i=n.alternate;qr(e,n,i,a?t:r)}else Kr(e,n,!1);n=n.sibling}}},Jr=(e,t)=>{(t.tag===3||!Nr(t))&&e(t,`unmount`)},Yr=(e,t)=>{let n=t.tag===13&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(Jr(e,r),Yr(e,r)),r=r.sibling},Xr=e=>{if(!yr())return null;let t=e;for(;t.return;)t=t.return;let n=ii.get(t.stateNode);return n===void 0?null:br().renderers?.get(n)??null},Zr=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Qr=(e,t=[])=>{if(!Zr(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);Zr(i)?n.push(...Qr(i,a)):n.push({path:a,value:i})}return n},$r=new Set,ei=new Set,ti=new Set,ni=new Set,ri=new WeakMap,ii=new WeakMap,ai=e=>{let t=ri.get(e)??{};if(ri.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),ri.get(e)?.onCommitFiberRoot===r){Br.add(i),ii.set(i,t);for(let e of $r)e(t,i,a)}};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(n?.(t,i),ri.get(e)?.onCommitFiberUnmount===r)for(let e of ei)e(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n?.(t,i),ri.get(e)?.onPostCommitFiberRoot===r)for(let e of ti)e(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),ri.get(e)?.onScheduleFiberRoot===r)for(let e of ni)e(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},oi=e=>{let t=br(e.onActive);t._instrumentationSource=e.name??or,ai(t);let{onActive:n,onCommitFiberRoot:r,onCommitFiberUnmount:i,onPostCommitFiberRoot:a,onScheduleFiberRoot:o}=e;return r&&$r.add(r),i&&ei.add(i),a&&ti.add(a),o&&ni.add(o),ir(()=>{n&&hr.delete(n),r&&$r.delete(r),i&&ei.delete(i),a&&ti.delete(a),o&&ni.delete(o)})},si=new Set,ci=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),li=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;let t=e.__internalInstanceHandle??e._internalInstanceHandle;if(jr(t))return t;let n=e;for(let e of si){let t=n[e];if(t)return t}for(let e of Object.keys(n))if(ci(e))return si.add(e),n[e]||null;for(let t of Br){if(Xr(t.current)?.findFiberByHostInstance)continue;let n=Tr(t.current,t=>t.stateNode===e);if(n)return n}}return null}})),di=n((()=>{Cr(),wr(),ui()})),fi,pi,mi,hi,gi=n((()=>{di(),fi=new WeakMap,pi=(e,t)=>{fi.set(e,t)},mi=e=>fi.get(e)??null,hi=e=>mi(e)?.getFiber()??li(e)})),_i,vi,yi,bi,Y,xi=n((()=>{J(),Qn(),er(),rr(),gi(),_i=new WeakMap,vi=new WeakMap,yi=()=>{_i=new WeakMap,vi=new WeakMap},bi=(e,t,n)=>{let r=vi.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??$n(e)).borderRadius||`0px`;return vi.set(e,{borderRadius:i,timestamp:n}),i},Y=e=>{let t=performance.now(),n=_i.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=mi(e);if(r){let n=r.getBounds();return _i.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Zn(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:nr(bi(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return _i.set(e,{bounds:o,timestamp:t}),o}}));xi();let Si=e=>({x:e.x+e.width/2,y:e.y+e.height/2});var X,Ci=n((()=>{gi(),X=e=>{if(!e)return!1;let t=mi(e);return t?t.isConnected():!!(e.isConnected||e.ownerDocument?.contains(e))}}));Ci();let wi=e=>{let t=0,n=e.previousElementSibling;for(;n;)t+=1,n=n.previousElementSibling;return t};var Ti,Ei=n((()=>{Ti=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)}}));di(),Ei(),Rn();let Di=new WeakMap,Oi=e=>{if(e.anchorElement.isConnected)return e.anchorElement;let t=e.anchorElement.tagName,n=Vr(e.anchorParentFiber);if(kr(n)){let r=n.stateNode;if(!Ln(r)||!r.isConnected)return null;let i=r.children[e.anchorIndexInParent];return i&&i.tagName===t?i:null}for(let e of Pr(n)){let n=e.stateNode;if(Ln(n)&&n.isConnected&&n.tagName===t)return n}return null},ki=(e,t)=>{let n=e;for(let e of t){let t=(e.isShadowChild?n.shadowRoot?.children:n.children)?.[e.childIndex];if(!t)return null;n=t}return n},Ai=e=>{let t=[],n=e,r=li(n);for(;n&&!r;){let e=n.parentElement;if(e)t.unshift({childIndex:wi(n),isShadowChild:!1}),n=e;else{let e=n.getRootNode();if(!Ti(e))break;t.unshift({childIndex:wi(n),isShadowChild:!0}),n=e.host}r=li(n)}let i=r?.return;return!n||!i?null:{anchorElement:n,anchorParentFiber:i,anchorIndexInParent:wi(n),domPath:t,targetTagName:e.tagName}},ji=(e,t)=>e.anchorElement.isConnected&&e.anchorIndexInParent===wi(e.anchorElement)&&ki(e.anchorElement,e.domPath)===t,Mi=e=>{if(!e.isConnected)return;let t=Di.get(e);if(t&&ji(t,e))return;let n=Ai(e);n&&Di.set(e,n)},Ni=e=>{if(e.isConnected)return e;let t=Di.get(e);if(!t)return null;let n=Oi(t);if(!n)return null;let r=ki(n,t.domPath);return r&&r.isConnected&&r.tagName===t.targetTagName?r:null};B(),J();let Pi=e=>{let t=Ni(e)??e;return Mi(t),t},Fi=e=>{for(let t=0;t<e.frozenElements.length;t+=1)e.frozenElements[t]=Pi(e.frozenElements[t]);e.frozenElement=e.frozenElement&&Pi(e.frozenElement),e.detectedElement=e.detectedElement&&Pi(e.detectedElement),e.contextMenuElement=e.contextMenuElement&&Pi(e.contextMenuElement);for(let t of e.labelInstances)if(t.element&&=Pi(t.element),t.elements)for(let e=0;e<t.elements.length;e+=1)t.elements[e]=Pi(t.elements[e]);for(let t of e.grabbedBoxes)t.element&&=Pi(t.element)},Ii=e=>({selectionInteractionLockDepth:0,wasActivatedByToggle:!1,pendingCommentMode:!1,keyHoldDuration:e.keyHoldDuration,dragStart:{x:Qt,y:Qt},copyStart:{x:Qt,y:Qt},copyOffsetFromCenterX:0,detectedElement:null,frozenElement:null,frozenElements:[],frozenDragRect:null,lastGrabbedElement:null,selectionFilePath:null,selectionLineNumber:null,inputText:``,grabbedBoxes:[],labelInstances:[],isTouchMode:!1,activationTimestamp:null,previouslyFocusedElement:null,contextMenuPosition:null,contextMenuElement:null,contextMenuClickOffset:null}),Li=e=>{let[t,n]=Lt(Ii(e)),[r,i]=c({x:Qt,y:Qt}),[a,o]=c(0),[s,l]=c({state:`idle`}),u=e=>{n(Bt(t=>{e(t),t.frozenElement=t.frozenElements.length>0?t.frozenElements[0]:null,t.frozenDragRect=null;for(let e of t.frozenElements)Mi(e)}))},d=()=>{u(e=>{e.frozenElements=[]})},f=e=>{l(t=>t.state===`active`?{...t,phase:e}:t)},p={startHold:e=>{e!==void 0&&n(`keyHoldDuration`,e),l({state:`holding`,startedAt:Date.now()})},releaseHold:()=>{s().state===`holding`&&l({state:`idle`})},activate:()=>{h(()=>{l({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement)})},deactivate:()=>{h(()=>{l({state:`idle`}),n(Bt(e=>{e.wasActivatedByToggle=!1,e.pendingCommentMode=!1,e.inputText=``,e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null,e.activationTimestamp=null,e.previouslyFocusedElement=null,e.contextMenuPosition=null,e.contextMenuElement=null,e.contextMenuClickOffset=null,e.isTouchMode&&(e.detectedElement=null)}))})},toggle:()=>{t.activationTimestamp===null?(n(`wasActivatedByToggle`,!0),p.activate()):p.deactivate()},freeze:()=>{if(s().state===`active`){let e=t.frozenElement??t.detectedElement;e&&(Mi(e),n(`frozenElement`,e)),f(`frozen`)}},unfreeze:()=>{s().state===`active`&&h(()=>{n(Bt(e=>{e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null})),f(`hovering`)})},startDrag:(e,t)=>{s().state===`active`&&h(()=>{t||d(),n(`dragStart`,{x:e.x+window.scrollX,y:e.y+window.scrollY}),f(`dragging-select`)})},startDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-select`&&f(`dragging-reposition`)},stopDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-reposition`&&f(`dragging-select`)},shiftDragStart:e=>{let t=s();t.state===`active`&&t.phase===`dragging-reposition`&&n(`dragStart`,t=>({x:t.x+e.x,y:t.y+e.y}))},endDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&h(()=>{n(`dragStart`,{x:Qt,y:Qt}),f(`justDragged`)})},cancelDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&h(()=>{n(`dragStart`,{x:Qt,y:Qt}),f(`hovering`)})},finishJustDragged:()=>{let e=s();e.state===`active`&&e.phase===`justDragged`&&f(`hovering`)},startCopy:()=>{let e=s().state===`active`;l({state:`copying`,startedAt:Date.now(),wasActive:e})},completeCopy:()=>{let e=s(),t=e.state===`copying`?e.wasActive:!1;l({state:`justCopied`,copiedAt:Date.now(),wasActive:t})},finishJustCopied:()=>{let e=s();e.state===`justCopied`&&(e.wasActive&&!t.wasActivatedByToggle?h(()=>{d(),l({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1})}):p.deactivate())},enterPromptMode:(e,t)=>{let{x:r}=Si(Y(t));Mi(t),h(()=>{n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r),i(e),n(`frozenElement`,t),n(`wasActivatedByToggle`,!0),s().state===`active`?l(e=>e.state===`active`?{...e,isPromptMode:!0,phase:`frozen`}:e):(l({state:`active`,phase:`frozen`,isPromptMode:!0,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement))})},exitPromptMode:()=>{l(e=>e.state===`active`?{...e,isPromptMode:!1,isPendingDismiss:!1}:e)},setInputText:e=>{n(`inputText`,e)},clearInputText:()=>{n(`inputText`,``)},setPendingDismiss:e=>{l(t=>t.state===`active`?{...t,isPendingDismiss:e}:t)},setPointer:e=>{i(t=>t.x===e.x&&t.y===e.y?t:e)},setDetectedElement:e=>{e&&Mi(e),n(`detectedElement`,e)},setFrozenElement:e=>{u(t=>{t.frozenElements=[e]})},setFrozenElements:e=>{u(t=>{t.frozenElements=e})},toggleFrozenElement:e=>{u(t=>{let n=t.frozenElements.indexOf(e);n>=0?t.frozenElements.splice(n,1):t.frozenElements.push(e)})},addFrozenElements:e=>{u(t=>{for(let n of e)t.frozenElements.includes(n)||t.frozenElements.push(n)})},setFrozenDragRect:e=>{n(`frozenDragRect`,e)},relinkLiveElements:()=>{n(Bt(Fi))},setCopyStart:(e,t)=>{let{x:r}=Si(Y(t));n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r)},setLastGrabbed:e=>{n(`lastGrabbedElement`,e)},setWasActivatedByToggle:e=>{n(`wasActivatedByToggle`,e)},setPendingCommentMode:e=>{n(`pendingCommentMode`,e)},setTouchMode:e=>{n(`isTouchMode`,e)},incrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>e+1)},decrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>Math.max(0,e-1))},setSelectionSource:(e,t)=>{h(()=>{n(`selectionFilePath`,e),n(`selectionLineNumber`,t)})},incrementViewportVersion:()=>{o(e=>e+1)},addGrabbedBox:e=>{e.element&&Mi(e.element),n(`grabbedBoxes`,t=>[...t,e])},removeGrabbedBox:e=>{n(`grabbedBoxes`,t=>t.filter(t=>t.id!==e))},clearGrabbedBoxes:()=>{n(`grabbedBoxes`,[])},addLabelInstance:e=>{e.element&&Mi(e.element);for(let t of e.elements??[])Mi(t);n(`labelInstances`,t=>[...t,e])},updateLabelInstance:(e,r,i)=>{let a=t.labelInstances.findIndex(t=>t.id===e);a!==-1&&h(()=>{n(`labelInstances`,a,`status`,r),i===void 0?r!==`error`&&n(`labelInstances`,a,`errorMessage`,void 0):n(`labelInstances`,a,`errorMessage`,i)})},removeLabelInstance:e=>{n(`labelInstances`,t=>t.filter(t=>t.id!==e))},clearLabelInstances:()=>{n(`labelInstances`,[])},showContextMenu:(e,t)=>{let{x:r,y:i}=Si(Y(t));Mi(t),h(()=>{n(`contextMenuPosition`,e),n(`contextMenuElement`,t),n(`contextMenuClickOffset`,{x:e.x-r,y:e.y-i})})},hideContextMenu:()=>{h(()=>{n(`contextMenuPosition`,null),n(`contextMenuElement`,null),n(`contextMenuClickOffset`,null)})},updateContextMenuPosition:()=>{let e=t.contextMenuElement,r=t.contextMenuClickOffset;if(!e||!r||!X(e))return;let{x:i,y:a}=Si(Y(e));n(`contextMenuPosition`,{x:i+r.x,y:a+r.y})}};return{store:t,actions:p,pointer:r,viewportVersion:a,current:s}};var Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi=n((()=>{Ri=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},zi=class extends Ri{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},Bi=class extends Ri{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},Vi=class extends zi{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},Hi=class extends zi{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Ui=class extends zi{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},Wi=class extends zi{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},Gi=class extends zi{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},Ki=class extends zi{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},qi=class extends Ri{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},Ji=class extends Ri{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},Yi=class extends Ri{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},Xi=class extends Ri{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}}})),Qi,$i=n((()=>{gi(),Qi=e=>mi(e)?.getTagName()??(e.tagName||``).toLowerCase()})),ea,ta,na,ra,ia,aa=n((()=>{$i(),ea=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],ta=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},na=e=>{if(document.designMode===`on`)return!0;let t=ta(e);if(!t)return!1;if(t.isContentEditable)return!0;let n=Qi(t);return ea.some(e=>e===n||e===t.role)},ra=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},ia=()=>{let e=window.getSelection();return e?e.toString().length>0:!1}})),oa,sa,ca=n((()=>{oa=new WeakMap,sa=(e=document)=>{let t=oa.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&oa.set(e,r),r}})),la,ua,da=n((()=>{la=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],ua=e=>{for(let[t,n]of la)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)}})),fa,pa=n((()=>{J(),fa=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9})),ma,ha=n((()=>{Ei(),pa(),Xn(),ma=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return Ti(t)?t.host:fa(t)?Yn(t.defaultView):null}})),ga,_a,va,ya,ba,xa=n((()=>{ha(),ga=null,_a=e=>{ga=e},va=()=>ga,ya=e=>{if(!ga)return!0;let t=e;for(;t;){if(t===ga)return!0;t=ma(t)}return!1},ba=e=>e}));Zi(),aa(),ca(),da(),xa();let Sa=`data-react-grab`;J();let Ca=e=>{if(!document.body)return;let t=document.querySelectorAll(`[${Sa}]`);for(let n of t)n!==e&&n.parentNode!==e&&(n.shadowRoot||n.remove());document.body.appendChild(e)},wa=e=>{if(document.body)return Ca(e),()=>{};let t=()=>{document.removeEventListener(`DOMContentLoaded`,t),Ca(e)};return document.addEventListener(`DOMContentLoaded`,t,{once:!0}),()=>document.removeEventListener(`DOMContentLoaded`,t)},Ta=e=>{let t=window.setTimeout(()=>{Ca(e)},Mn),n=new MutationObserver(()=>{e.parentNode!==document.body&&Ca(e)});return n.observe(document.documentElement,{childList:!0}),()=>{window.clearTimeout(t),n.disconnect()}},Ea=e=>{let t=document.querySelectorAll(`[${Sa}]`);for(let e of t){let t=e.shadowRoot?.querySelector(`[${Sa}]`);if(t instanceof HTMLDivElement)return{root:t,host:e,cancelPendingAttachment:Ta(e)};e.remove()}let n=document.createElement(`div`);n.setAttribute(Sa,`true`),ua(n),n.style.zIndex=String(on),n.style.position=`fixed`,n.style.inset=`0`,n.style.pointerEvents=`none`,n.style.contain=`strict`;let r=n.attachShadow({mode:`open`}),i=document.createElement(`style`),a=sa();a&&(i.nonce=a),i.textContent=`@import url("https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap");\n${e??``}`,r.appendChild(i);let o=document.createElement(`div`);o.setAttribute(Sa,`true`),r.appendChild(o);let s=wa(n),c=Ta(n);return{root:o,host:n,cancelPendingAttachment:()=>{s(),c()}}};Cr(),ui();let Da=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Oa=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],ka=[`rsc://`,`about://React/`],Aa=[`<anonymous>`,`eval`,``],ja=/\.(jsx|tsx|ts|js)$/,Ma=/(\.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,Na=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,Pa=/\(at [^)]+\)$/,Fa=[`react_stack_bottom_frame`,`react-stack-bottom-frame`],Ia=/(^|@)\S+:\d+/,La=/^\s*at .*(\S+:\d+|\(native\))/m,Ra=/^(eval@)?(\[native code\])?$/,za=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
11
- `),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=Ha(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(Ia)){let t=Ua(e,void 0)[0];t&&r.push(t)}return Va(r,t)}return e.match(La)?Ha(e,t):Ua(e,t)},Ba=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Va=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,Ha=(e,t)=>Va(e.split(`
12
- `).filter(e=>!!e.match(La)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Ba(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),Ua=(e,t)=>Va(e.split(`
13
- `).filter(e=>!e.match(Ra)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Ba(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}}),Wa=new WeakMap,Ga=e=>Fa.some(t=>e.includes(t)),Ka=e=>{let t=e.getFunctionName?.()??``;if(t)return t;let n=e.getTypeName?.()??``,r=e.getMethodName?.()??``;return n&&r?`${n}.${r}`:r},qa=e=>{let t=[];for(let n=1;n<e.length;n++){let r=e[n],i=Ka(r);if(Ga(i))return{frames:t,isTrusted:!0};if(r.isNative?.()){t.push({functionName:i||void 0});continue}let a=r.getScriptNameOrSourceURL?.()??``;!a&&r.isEval?.()&&(a=r.getEvalOrigin?.()??``),t.push({functionName:i&&i!==`<anonymous>`?i:void 0,fileName:a&&a!==`<anonymous>`?a:void 0,lineNumber:r.getLineNumber?.()??void 0,columnNumber:r.getColumnNumber?.()??void 0,enclosingLineNumber:r.getEnclosingLineNumber?.()??void 0,enclosingColumnNumber:r.getEnclosingColumnNumber?.()??void 0,source:` at ${r.toString()}`})}return{frames:t,isTrusted:!1}},Ja=e=>{let t=-1;for(let n of Fa)if(t=e.indexOf(n),t!==-1)break;return{frames:za(t===-1?e:e.slice(0,e.lastIndexOf(`
14
- `,t))).slice(1),isTrusted:t!==-1}},Ya=e=>{let t=Wa.get(e);if(t)return t;let n=null,r=(e,t)=>{n=qa(t);let r=`${e.name||`Error`}: ${e.message||``}`;for(let e of t)r+=`\n at ${e.toString()}`;return r},i=Error.prepareStackTrace;Error.prepareStackTrace=r;let a;try{a=String(e.stack)}finally{Error.prepareStackTrace=i}let o=n??Ja(a);return Wa.set(e,o),o};var Xa=44,Za=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Qa=new Uint8Array(64),$a=new Uint8Array(128);for(let e=0;e<Za.length;e++){let t=Za.charCodeAt(e);Qa[e]=t,$a[t]=e}function eo(e,t){let n=0,r=0,i=0;do i=$a[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function to(e,t){return e.pos>=t?!1:e.peek()!==Xa}var no=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function ro(e){let{length:t}=e,n=new no(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=eo(n,i),i<u&&(l=!1),u=i,to(n,e)?(a=eo(n,a),o=eo(n,o),s=eo(n,s),to(n,e)?(c=eo(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||io(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function io(e){e.sort(ao)}function ao(e,t){return e[0]-t[0]}let oo=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,so=/^data:application\/json[^,]+base64,/,co=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,lo=new Map,uo=new Map,fo=(e,t,n,r,i)=>{if(n<0||n>=e.length)return null;let a=e[n];if(!a||a.length===0)return null;let o=null,s=0,c=a.length-1;for(;s<=c;){let e=s+c>>1;a[e][0]<=r?(o=a[e],s=e+1):c=e-1}if(!o||o.length<4)return null;let[,l,u,d]=o;if(l===void 0||u===void 0||d===void 0)return null;let f=t[l];return f?{columnNumber:d,fileName:f,lineNumber:u+1,isIgnoreListed:i?.has(l)??!1}:null},po=(e,t,n)=>{if(e.sections){let r=t-1,i=null;for(let t of e.sections)if(r>t.offset.line||r===t.offset.line&&n>=t.offset.column)i=t;else break;if(!i)return null;let a=r-i.offset.line,o=r===i.offset.line?n-i.offset.column:n;return fo(i.map.mappings,i.map.sources,a,o,i.map.ignoredSourceIndices)}return fo(e.mappings,e.sources,t-1,n,e.ignoredSourceIndices)},mo=(e,t)=>{let n,r=t.length;for(;r>0&&!n;){let e=t.lastIndexOf(`
15
- `,r-1)+1,i=t.slice(e,r).match(co);i&&(n=i[1]||i[2]),r=e-1}if(!n)return null;let i=oo.test(n);if(!(so.test(n)||i||n.startsWith(`/`))){let t=e.split(`/`);t[t.length-1]=n,n=t.join(`/`)}return n},ho=e=>{let t=e.ignoreList??e.x_google_ignoreList;return Array.isArray(t)&&t.length>0?new Set(t):void 0},go=e=>({file:e.file,ignoredSourceIndices:ho(e),mappings:ro(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),_o=e=>{let t=e.sections.map(({map:e,offset:t})=>({map:{...e,ignoredSourceIndices:ho(e),mappings:ro(e.mappings)},offset:t})),n=new Set;for(let e of t)for(let t of e.map.sources)n.add(t);return{file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},vo=e=>{if(!e)return!1;let t=e.trim();if(!t)return!1;let n=t.match(oo);if(!n)return!0;let r=n[0].toLowerCase();return r===`http:`||r===`https:`},yo=async(e,t=fetch)=>{if(!vo(e))return null;let n=await t(e);if(!n.ok)return null;let r=await n.text();if(!r)return null;let i=mo(e,r);if(!i||!vo(i)&&!so.test(i))return null;let a=await t(i);if(!a.ok)return null;try{let e=await a.json();return`sections`in e?_o(e):go(e)}catch{return null}},bo=async(e,t=!0,n)=>{if(t&&lo.has(e))return lo.get(e)??null;let r=t?uo.get(e):void 0;if(r)return(await r).sourceMap;let i=yo(e,n).then(e=>({sourceMap:e,isTransientFailure:!1}),()=>({sourceMap:null,isTransientFailure:!0}));t&&uo.set(e,i);let{sourceMap:a,isTransientFailure:o}=await i;return t&&(uo.delete(e),o||lo.set(e,a)),a},xo=async(e,t=!0,n)=>await Promise.all(e.map(async e=>{if(!e.fileName)return e;let r=await bo(e.fileName,t,n);if(!r||typeof e.lineNumber!=`number`||typeof e.columnNumber!=`number`)return e;let i=po(r,e.lineNumber,e.columnNumber);return i?{...e,source:i.fileName&&e.source?e.source.replace(e.fileName,i.fileName):e.source,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,isIgnoreListed:i.isIgnoreListed,isSymbolicated:!0}:e})),So=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack==`string`,Co=e=>typeof e.tag==`number`,wo=e=>e._debugOwner,To=e=>{let t=null;if(Tr(e,n=>{if(n===e)return!1;let r=n._debugOwner;return(r===e||e.alternate!==null&&r===e.alternate)&&n._debugStack instanceof Error?(t=n._debugStack,!0):!1}),!t)return null;let{frames:n,isTrusted:r}=Ya(t);if(!r)return null;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.fileName)return{...t,lineNumber:t.enclosingLineNumber||t.lineNumber,columnNumber:t.enclosingColumnNumber||t.columnNumber}}return null},Eo=()=>{let e=br();for(let t of[...Array.from(gr),...Array.from(e.renderers.values())]){let e=t.currentDispatcherRef;if(e&&typeof e==`object`)return`H`in e?e.H:e.current}return null},Do=e=>{for(let t of gr){let n=t.currentDispatcherRef;n&&typeof n==`object`&&(`H`in n?n.H=e:n.current=e)}},Oo=e=>`\n in ${e}`,ko=(e,t)=>{let n=Oo(e);return t&&(n+=` (at ${t})`),n},Ao=!1,jo=new WeakMap,Mo=(e,t)=>{if(!e||Ao)return``;let n=jo.get(e);if(n!==void 0)return n;let r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Ao=!0;let i=Eo();Do(null);let a=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let n;try{if(t){let t=function(){throw Error()};if(Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}let t=e();t&&typeof t.catch==`function`&&t.catch(()=>{})}}catch(e){if(e instanceof Error&&n instanceof Error&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`,Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,`name`)?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});let[r,i]=n.DetermineComponentFrameRoot();if(r&&i){let t=r.split(`
9
+ this.globalThis=this.globalThis||{},this.globalThis.__REACT_GRAB_MODULE__=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,t)=>()=>(e&&(t=e(e=0)),t),r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r};function i(e){let t=String(e),n=t.length-1;return N.context.id+(n?String.fromCharCode(96+n):``)+t}function a(e){N.context=e}function o(){return{...N.context,id:N.getNextContextId(),count:0}}function s(e,t){let n=L,r=F,i=e.length===0,a=t===void 0?r:t,o=i?Me:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>g(()=>le(o)));F=o,L=null;try{return re(s,!0)}finally{L=n,F=r}}function c(e,t){t=t?Object.assign({},De,t):De;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[E.bind(n),e=>(typeof e==`function`&&(e=I&&I.running&&I.sources.has(n)?e(n.tValue):e(n.value)),te(n,e))]}function l(e,t,n){let r=k(e,t,!0,Ae);Pe&&I&&I.running?Ie.push(r):D(r)}function u(e,t,n){let r=k(e,t,!1,Ae);Pe&&I&&I.running?Ie.push(r):D(r)}function d(e,t,n){ke=oe;let r=k(e,t,!1,Ae),i=Ve&&T(Ve);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),Le?Le.push(r):D(r)}function f(e,t,n){n=n?Object.assign({},De,n):De;let r=k(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Pe&&I&&I.running?(r.tState=Ae,Ie.push(r)):D(r),E.bind(r)}function p(e){return e&&typeof e==`object`&&`then`in e}function m(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=Ne,u=null,d=!1,m=!1,h=`initialValue`in a,_=typeof r==`function`&&f(r),v=new Set,[y,b]=(a.storage||c)(a.initialValue),[x,C]=c(void 0),[w,ee]=c(void 0,{equals:!1}),[E,te]=c(h?`ready`:`unresolved`);N.context&&(u=N.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:N.load&&N.has(u)&&(s=N.load(u)));function D(e,t,n,r){return o===e&&(o=null,r!==void 0&&(h=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=Ne,I&&e&&d?(I.promises.delete(e),d=!1,re(()=>{I.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){re(()=>{t===void 0&&b(()=>e),te(t===void 0?h?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function k(){let e=Ve&&T(Ve),t=y(),n=x();if(n!==void 0&&!o)throw n;return L&&!L.user&&e&&l(()=>{w(),o&&(e.resolved&&I&&d?I.promises.add(o):v.has(e)||(e.increment(),v.add(e)))}),t}function ne(e=!0){if(e!==!1&&m)return;m=!1;let t=_?_():r;if(d=I&&I.running,t==null||t===!1){D(o,g(y));return}I&&o&&I.promises.delete(o);let n,a=s===Ne?g(()=>{try{return i(t,{value:y(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){D(o,void 0,de(n),t);return}else if(!p(a))return D(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?D(o,a.v,void 0,t):D(o,void 0,de(a.v),t),a):(m=!0,queueMicrotask(()=>m=!1),re(()=>{te(h?`refreshing`:`pending`),ee()},!1),a.then(e=>D(a,e,void 0,t),e=>D(a,void 0,de(e),t)))}Object.defineProperties(k,{state:{get:()=>E()},error:{get:()=>x()},loading:{get(){let e=E();return e===`pending`||e===`refreshing`}},latest:{get(){if(!h)return k();let e=x();if(e&&!o)throw e;return y()}}});let ie=F;return _?l(()=>(ie=F,ne(!1))):ne(!1),[k,{refetch:e=>S(ie,()=>ne(e)),mutate:b}]}function h(e){return re(e,!1)}function g(e){if(!Fe&&L===null)return e();let t=L;L=null;try{return Fe?Fe.untrack(e):e()}finally{L=t}}function _(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=g(()=>t(o,i,n));return i=o,s}}function v(e){d(()=>g(e))}function y(e){return F===null||(F.cleanups===null?F.cleanups=[e]:F.cleanups.push(e)),e}function b(){return L}function x(){return F}function S(e,t){let n=F,r=L;F=e,L=null;try{return re(t,!0)}catch(e){pe(e)}finally{F=n,L=r}}function C(e){if(I&&I.running)return e(),I.done;let t=L,n=F;return Promise.resolve().then(()=>{L=t,F=n;let r;return(Pe||Ve)&&(r=I||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),re(e,!1),L=F=null,r?r.done:void 0})}function w(e,t){let n=Symbol(`context`);return{id:n,Provider:he(n),defaultValue:e}}function T(e){let t;return F&&F.context&&(t=F.context[e.id])!==void 0?t:e.defaultValue}function ee(e){let t=f(e),n=f(()=>me(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function E(){let e=I&&I.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===Ae)D(this);else{let e=Ie;Ie=null,re(()=>se(this),!1),Ie=e}if(L){let e=this.observers?this.observers.length:0;L.sources?(L.sources.push(this),L.sourceSlots.push(e)):(L.sources=[this],L.sourceSlots=[e]),this.observers?(this.observers.push(L),this.observerSlots.push(L.sources.length-1)):(this.observers=[L],this.observerSlots=[L.sources.length-1])}return e&&I.sources.has(this)?this.tValue:this.value}function te(e,t,n){let r=I&&I.running&&I.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(I){let r=I.running;(r||!n&&I.sources.has(e))&&(I.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&re(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=I&&I.running;r&&I.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?Ie.push(n):Le.push(n),n.observers&&ce(n)),r?n.tState=Ae:n.state=Ae)}if(Ie.length>1e6)throw Ie=[],Error()},!1)}return t}function D(e){if(!e.fn)return;le(e);let t=Re;O(e,I&&I.running&&I.sources.has(e)?e.tValue:e.value,t),I&&!I.running&&I.sources.has(e)&&queueMicrotask(()=>{re(()=>{I&&(I.running=!0),L=F=e,O(e,e.tValue,t),L=F=null},!1)})}function O(e,t,n){let r,i=F,a=L;L=F=e;try{r=e.fn(t)}catch(t){return e.pure&&(I&&I.running?(e.tState=Ae,e.tOwned&&e.tOwned.forEach(le),e.tOwned=void 0):(e.state=Ae,e.owned&&e.owned.forEach(le),e.owned=null)),e.updatedAt=n+1,pe(t)}finally{L=a,F=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?te(e,r,!0):I&&I.running&&e.pure?(I.sources.has(e)||(e.value=r),I.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function k(e,t,n,r=Ae,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:F,context:F?F.context:null,pure:n};if(I&&I.running&&(a.state=0,a.tState=r),F===null||F!==Me&&(I&&I.running&&F.pure?F.tOwned?F.tOwned.push(a):F.tOwned=[a]:F.owned?F.owned.push(a):F.owned=[a]),Fe&&a.fn){let e=a.fn,[t,n]=c(void 0,{equals:!1}),r=Fe.factory(e,n);y(()=>r.dispose());let i,o=()=>C(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),I&&I.running?(i||=Fe.factory(e,o),i.track(n)):r.track(n))}return a}function ne(e){let t=I&&I.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===je)return se(e);if(e.suspense&&g(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Re);){if(t&&I.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(I.disposed.has(t))return}if((t?e.tState:e.state)===Ae)D(e);else if((t?e.tState:e.state)===je){let t=Ie;Ie=null,re(()=>se(e,n[0]),!1),Ie=t}}}function re(e,t){if(Ie)return e();let n=!1;t||(Ie=[]),Le?n=!0:Le=[],Re++;try{let t=e();return ie(n),t}catch(e){n||(Le=null),Ie=null,pe(e)}}function ie(e){if(Ie&&=(Pe&&I&&I.running?A(Ie):ae(Ie),null),e)return;let t;if(I){if(!I.promises.size&&!I.queue.size){let e=I.sources,n=I.disposed;Le.push.apply(Le,I.effects),t=I.resolve;for(let e of Le)`tState`in e&&(e.state=e.tState),delete e.tState;I=null,re(()=>{for(let e of n)le(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)le(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}Be(!1)},!1)}else if(I.running){I.running=!1,I.effects.push.apply(I.effects,Le),Le=null,Be(!0);return}}let n=Le;Le=null,n.length&&re(()=>ke(n),!1),t&&t()}function ae(e){for(let t=0;t<e.length;t++)ne(e[t])}function A(e){for(let t=0;t<e.length;t++){let n=e[t],r=I.queue;r.has(n)||(r.add(n),Pe(()=>{r.delete(n),re(()=>{I.running=!0,ne(n)},!1),I&&(I.running=!1)}))}}function oe(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:ne(r)}if(N.context){if(N.count){N.effects||=[],N.effects.push(...e.slice(0,n));return}a()}for(N.effects&&(N.done||!N.count)&&(e=[...N.effects,...e],n+=N.effects.length,delete N.effects),t=0;t<n;t++)ne(e[t])}function se(e,t){let n=I&&I.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===Ae?i!==t&&(!i.updatedAt||i.updatedAt<Re)&&ne(i):e===je&&se(i,t)}}}function ce(e){let t=I&&I.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=je:r.state=je,r.pure?Ie.push(r):Le.push(r),r.observers&&ce(r))}}function le(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)le(e.tOwned[t]);delete e.tOwned}if(I&&I.running&&e.pure)ue(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)le(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}I&&I.running?e.tState=0:e.state=0}function ue(e,t){if(t||(e.tState=0,I.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ue(e.owned[t])}function de(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function fe(e,t,n){try{for(let n of t)n(e)}catch(e){pe(e,n&&n.owner||null)}}function pe(e,t=F){let n=Oe&&t&&t.context&&t.context[Oe],r=de(e);if(!n)throw r;Le?Le.push({fn(){fe(r,n,t)},state:Ae}):fe(r,n,t)}function me(e){if(typeof e==`function`&&!e.length)return me(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=me(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function he(e,t){return function(t){let n;return u(()=>n=g(()=>(F.context={...F.context,[e]:t.value},ee(()=>t.children))),void 0),n}}function ge(e){for(let t=0;t<e.length;t++)e[t]()}function _e(e,t,n={}){let r=[],i=[],a=[],o=0,l=t.length>1?[]:null;return y(()=>ge(a)),()=>{let u=e()||[],d=u.length,f,p;return u[Ee],g(()=>{let e,t,c,h,g,_,v,y,b;if(d===0)o!==0&&(ge(a),a=[],r=[],i=[],o=0,l&&=[]),n.fallback&&(r=[He],i[0]=s(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(d),p=0;p<d;p++)r[p]=u[p],i[p]=s(m);o=d}else{for(c=Array(d),h=Array(d),l&&(g=Array(d)),_=0,v=Math.min(o,d);_<v&&r[_]===u[_];_++);for(v=o-1,y=d-1;v>=_&&y>=_&&r[v]===u[y];v--,y--)c[y]=i[v],h[y]=a[v],l&&(g[y]=l[v]);for(e=new Map,t=Array(y+1),p=y;p>=_;p--)b=u[p],f=e.get(b),t[p]=f===void 0?-1:f,e.set(b,p);for(f=_;f<=v;f++)b=r[f],p=e.get(b),p!==void 0&&p!==-1?(c[p]=i[f],h[p]=a[f],l&&(g[p]=l[f]),p=t[p],e.set(b,p)):a[f]();for(p=_;p<d;p++)p in c?(i[p]=c[p],a[p]=h[p],l&&(l[p]=g[p],l[p](p))):i[p]=s(m);i=i.slice(0,o=d),r=u.slice(0)}return i});function m(e){if(a[p]=e,l){let[e,n]=c(p);return l[p]=n,t(u[p],e)}return t(u[p])}}}function j(e,t){if(Ue&&N.context){let n=N.context;a(o());let r=g(()=>e(t||{}));return a(n),r}return g(()=>e(t||{}))}function ve(){return!0}function ye(e){return(e=typeof e==`function`?e():e)?e:{}}function be(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function xe(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&P in r,e[n]=typeof r==`function`?(t=!0,f(r)):r}if(Te&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=ye(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in ye(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(ye(e[n])));return[...new Set(t)]}},We);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:be.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function Se(e,...t){let n=t.length;if(Te&&P in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},We));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},We)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}function Ce(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return f(_e(()=>e.each,e.children,t||void 0))}function M(e){let t=e.keyed,n=f(()=>e.when,void 0,void 0),r=t?n:f(n,void 0,{equals:(e,t)=>!e==!t});return f(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?g(()=>a(t?i:()=>{if(!g(r))throw Ge(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var N,we,P,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,F,I,Pe,Fe,L,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,R=n((()=>{N={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return i(this.context.count)},getNextContextId(){return i(this.context.count++)}},we=(e,t)=>e===t,P=Symbol(`solid-proxy`),Te=typeof Proxy==`function`,Ee=Symbol(`solid-track`),De={equals:we},Oe=null,ke=ae,Ae=1,je=2,Me={owned:null,cleanups:null,context:null,owner:null},Ne={},F=null,I=null,Pe=null,Fe=null,L=null,Ie=null,Le=null,Re=0,[ze,Be]=c(!1),He=Symbol(`fallback`),Ue=!1,We={get(e,t,n){return t===P?n:e.get(t)},has(e,t){return t===P?!0:e.has(t)},set:ve,deleteProperty:ve,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ve,deleteProperty:ve}},ownKeys(e){return e.keys()}},Ge=e=>`Stale read from <${e}>.`}));function Ke(e,t){let n=ht[e];return typeof n==`object`?n[t]?n.$:void 0:n}function qe(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}function Je(e,t,n,r={}){let i;return s(r=>{i=r,t===document?e():W(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function z(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>g(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ye(e,t=window.document){let n=t[yt]||(t[yt]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,st))}}function B(e,t,n){rt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Xe(e,t,n,r){rt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Ze(e,t,n){rt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function V(e,t){rt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function H(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Qe(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(at(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(at(e,i,!0),n[i]=o)}return n}function $e(e,t,n){if(!t)return n?B(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function U(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function et(e,t={},n,r){let i={};return r||u(()=>i.children=ct(e,t.children,i.children)),u(()=>typeof t.ref==`function`&&tt(t.ref,e)),u(()=>nt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return g(()=>e(t,n))}function W(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return ct(e,t,r,n);u(r=>ct(e,t(),r,n),r)}function nt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ot(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||ct(e,t.children);continue}let s=t[o];i[o]=ot(e,o,s,i[o],n,a,t)}}function rt(e){return!!N.context&&!N.done&&(!e||e.isConnected)}function it(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function at(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ot(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return $e(e,n,r);if(t===`classList`)return Qe(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=gt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(H(e,i,n,a),a&&Ye([i]))}else if(t.slice(0,5)===`attr:`)B(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Ze(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=pt.has(t))||!i&&((u=Ke(t,e.tagName))||(c=ft.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(rt(e))return n;t===`class`||t===`className`?V(e,n):s&&!c&&!l?e[it(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&_t[t.split(`:`)[0]];r?Xe(e,r,t,n):B(e,mt[t]||t,n)}return n}function st(e){if(N.registry&&N.events&&N.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),N.registry&&!N.done&&(N.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function ct(e,t,n,r,i){let a=rt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=dt(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=dt(e,n,r)}else if(o===`function`)return u(()=>{let i=t();for(;typeof i==`function`;)i=i();n=ct(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(lt(o,t,n,i))return u(()=>n=ct(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=dt(e,n,r),s)return n}else c?n.length===0?ut(e,o,r):qe(e,n,o):(n&&dt(e),ut(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=dt(e,n,r,t);dt(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function lt(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=lt(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=lt(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function ut(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function dt(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var ft,pt,mt,ht,gt,_t,vt,yt,G=n((()=>{R(),ft=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`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`.split(`.`)]),pt=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),mt=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),ht=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}}),gt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),_t={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},vt=e=>f(()=>e()),yt=`_$DX_DELEGATE`}));G();var bt=`/*! tailwindcss v4.3.0 | 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-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}}}@layer theme{:root,:host{--font-sans:"Geist", ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:4px;--font-weight-medium:500;--radius-sm:4px;--ease-out:cubic-bezier(0, 0, .2, 1);--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);--ease-drawer:cubic-bezier(.32, .72, 0, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1)}}@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{.a11y-hitbox{position:relative}.a11y-hitbox:before{content:"";pointer-events:auto;width:100%;min-width:24px;height:100%;min-height:24px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing) * 0)}.top-full{top:100%}.right-full{right:100%}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.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\\.5{margin:calc(var(--spacing) * -.5)}.m-0{margin:calc(var(--spacing) * 0)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.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)}.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{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-\\[17px\\]{height:17px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.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}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.interactive-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}@media (hover:hover) and (pointer:fine){.interactive-scale:hover{transform:scale(1.05)}}.interactive-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);transform:scale(.96)}.press-scale{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}.press-scale:active{transition:transform 60ms cubic-bezier(0,0,.2,1);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,)}.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{gap:calc(var(--spacing) * 0)}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.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-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.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-\\[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-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-transparent{background-color:#0000}.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-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.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-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-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\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-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,)}.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\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[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-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,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\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;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))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-drawer{--tw-ease:var(--ease-drawer);transition-timing-function:var(--ease-drawer)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.ease-spring{--tw-ease:var(--ease-spring);transition-timing-function:var(--ease-spring)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change: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}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}}:host{all:initial;direction:ltr}:host,[data-rg-theme=dark]{--rg-panel-bg:#161616;--rg-text-primary:#fff;--rg-text-secondary:#a7a7a7;--rg-surface-hover:#ffffff1a;--rg-surface-active:#ffffff26;--rg-border-subtle:#ffffff1a;--rg-border-button:#fff3;--rg-submit-bg:#fff;--rg-submit-fg:#161616;--rg-error-text:#f87171;--rg-error-bg:#3d1515;--rg-error-bg-hover:#4d1f1f;--rg-shadow:0 2px 8px #00000014;--rg-drop-shadow:drop-shadow(0px 2px 8px #00000014);--rg-shimmer-from:#a1a1aa;--rg-shimmer-to:#d4d4d8;--rg-text-primary-85:#ffffffd9}@media (prefers-color-scheme:dark){:host:not([data-rg-theme]){--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}}:host([data-rg-theme=light]),[data-rg-theme=light]{--rg-panel-bg:#fff;--rg-text-primary:#171717;--rg-text-secondary:#737373;--rg-surface-hover:#0000000d;--rg-surface-active:#00000014;--rg-border-subtle:#00000014;--rg-border-button:#00000026;--rg-submit-bg:#171717;--rg-submit-fg:#fff;--rg-error-text:#dc2626;--rg-error-bg:#fee2e2;--rg-error-bg-hover:#fecaca;--rg-shadow:0 2px 12px #0000001a;--rg-drop-shadow:drop-shadow(0px 2px 12px #0000001a);--rg-shimmer-from:#71717a;--rg-shimmer-to:#a1a1aa;--rg-text-primary-85:#171717d9}@media (prefers-reduced-motion:reduce){:host,:host *,:host :before,:host :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:host :focus{box-shadow:none!important;outline:none!important}@keyframes shake{0%,to{translate:0}15%,45%{translate:calc(-3px * var(--rg-shake-x,1)) calc(-3px * var(--rg-shake-y,0))}30%,60%{translate:calc(3px * var(--rg-shake-x,1)) calc(3px * var(--rg-shake-y,0))}75%{translate:calc(-2px * var(--rg-shake-x,1)) calc(-2px * var(--rg-shake-y,0))}90%{translate:calc(2px * var(--rg-shake-x,1)) calc(2px * var(--rg-shake-y,0))}}@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{background:linear-gradient(90deg, var(--rg-shimmer-from) 0%, var(--rg-shimmer-to) 25%, var(--rg-shimmer-from) 50%, var(--rg-shimmer-to) 75%, var(--rg-shimmer-from) 100%);color:#0000;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2.5s linear infinite shimmer}.animate-shake,.animate-shake-vertical{will-change:translate;animation:.3s ease-out shake}@keyframes tooltip-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.animate-tooltip-fade-in{will-change:transform, opacity;animation:.1s ease-out tooltip-fade-in}.animate-shake-vertical{--rg-shake-x:0;--rg-shake-y:1}@supports (-webkit-touch-callout:none){textarea[data-react-grab-input]{font-size:16px}}@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}`;R();let xt=Symbol(`store-raw`),St=Symbol(`store-node`),Ct=Symbol(`store-has`),wt=Symbol(`store-self`);function Tt(e){let t=e[P];if(!t&&(Object.defineProperty(e,P,{value:t=new Proxy(e,Nt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Et(e){let t;return typeof e==`object`&&!!e&&(e[P]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Dt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[xt])return n;if(!Et(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Dt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Dt(i,t))!==i&&(e[a]=r))}return e}function Ot(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function kt(e,t,n){if(e[t])return e[t];let[r,i]=c(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function At(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===P||t===St?n:(delete n.value,delete n.writable,n.get=()=>e[P][t],n)}function jt(e){b()&&kt(Ot(e,St),wt)()}function Mt(e){return jt(e),Reflect.ownKeys(e)}let Nt={get(e,t,n){if(t===xt)return e;if(t===P)return n;if(t===Ee)return jt(e),n;let r=Ot(e,St),i=r[t],a=i?i():e[t];if(t===St||t===Ct||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);b()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=kt(r,t,a)())}return Et(a)?Tt(a):a},has(e,t){return t===xt||t===P||t===Ee||t===St||t===Ct||t===`__proto__`?!0:(b()&&kt(Ot(e,Ct),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Mt,getOwnPropertyDescriptor:At};function Pt(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Ct]&&e[Ct][t]&&i!==void 0&&e[Ct][t].$()):(e[t]=n,e[Ct]&&e[Ct][t]&&i===void 0&&e[Ct][t].$());let o=Ot(e,St),s;if((s=kt(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=kt(o,`length`,a))&&s.$(e.length)}(s=o[wt])&&s.$()}function Ft(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Pt(e,i,t[i])}}function It(e,t){if(typeof t==`function`&&(t=t(e)),t=Dt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Pt(e,n,r)}Pt(e,`length`,r)}else Ft(e,t)}function Lt(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)Lt(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Lt(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Lt(e,[r].concat(t),n);return}else if(t.length>1){Lt(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Dt(a),r===void 0||Et(i)&&Et(a)&&!Array.isArray(a)?Ft(i,a):Pt(e,r,a))}function Rt(...[e,t]){let n=Dt(e||{}),r=Array.isArray(n),i=Tt(n);function a(...e){h(()=>{r&&e.length===1?It(n,e[0]):Lt(n,e)})}return[i,a]}let zt=new WeakMap,Bt={get(e,t){if(t===xt)return e;let n=e[t],r;return Et(n)?zt.get(n)||(zt.set(n,r=new Proxy(n,Bt)),r):n},set(e,t,n){return Pt(e,t,Dt(n)),!0},deleteProperty(e,t){return Pt(e,t,void 0,!0),!0}};function Vt(e){return t=>{if(Et(t)){let n;(n=zt.get(t))||zt.set(t,n=new Proxy(t,Bt)),e(n)}return t}}var Ht,Ut,Wt=n((()=>{Ht=null,Ut=()=>{if(Ht!==null)return Ht;try{Ht=window.matchMedia(`(color-gamut: p3)`).matches}catch{Ht=!1}return Ht}})),Gt,Kt,qt,Jt,Yt=n((()=>{Wt(),Gt=Ut(),Kt=`210, 57, 192`,qt=`0.84 0.19 0.78`,Jt=e=>Gt?`color(display-p3 ${qt} / ${e})`:`rgba(${Kt}, ${e})`})),Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,K,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,q=n((()=>{Yt(),Xt=`0.1.50-dev.f8c2c71`,Zt=`var(--rg-panel-bg)`,Qt=`var(--rg-shadow)`,$t=-1e3,en=.95,tn=1500,nn=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],rn=5e3,an=8e3,on=1e4,sn=.5,cn=2147483647,ln=2147483645,un=.7,dn=1e3/60,K=.01,fn=Jt(.4),pn=Jt(.05),mn=Jt(.5),hn=Jt(.08),gn=Jt(.15),_n=.2,vn=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],yn=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),bn=new Set([`a`,`button`,`code`,`label`,`option`,`pre`,`summary`,`text`]),xn=new Set([`script`,`style`,`template`,`noscript`]),Sn=[`Meta`,`Control`,`Shift`,`Alt`],Cn=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),wn=`data-react-grab-frozen`,Tn=`data-react-grab-same-origin-frame`,En=.5,Dn=`data-react-grab-input`,On=.9,kn=.5,An=`copy`,jn=`comment`,Mn=`superellipse(1.25)`,Nn=.01,Pn=1e3,Fn={left:-9999,top:-9999},In={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ln=1e3,Rn=-9999})),zn,Bn=n((()=>{zn=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE})),Vn,Hn=n((()=>{Bn(),Vn=e=>zn(e)&&e.namespaceURI===`http://www.w3.org/1999/xhtml`})),Un,J=n((()=>{Hn(),Un=e=>Vn(e)&&e.tagName===`IFRAME`})),Wn,Gn,Kn,qn=n((()=>{q(),Wn=new WeakMap,Gn=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?t:0},Kn=e=>{let t=performance.now(),n=Wn.get(e);if(n&&t-n.timestamp<16)return n.metrics;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i;if(!r)i={contentOffsetX:e.clientLeft,contentOffsetY:e.clientTop,height:e.offsetHeight,width:e.offsetWidth};else{let t=Gn(r.borderLeftWidth),n=Gn(r.borderRightWidth),a=Gn(r.borderTopWidth),o=Gn(r.borderBottomWidth),s=Gn(r.paddingLeft),c=Gn(r.paddingRight),l=Gn(r.paddingTop),u=Gn(r.paddingBottom),d=Gn(r.width),f=Gn(r.height),p=t+n+s+c,m=a+o+l+u,h=r.boxSizing===`border-box`?d:d+p,g=r.boxSizing===`border-box`?f:f+m;i={contentOffsetX:t+s,contentOffsetY:a+l,height:g>0?g:e.offsetHeight,width:h>0?h:e.offsetWidth}}return Wn.set(e,{metrics:i,timestamp:t}),i}})),Jn,Yn=n((()=>{Jn=(e,t)=>t>0?e/t:1})),Xn,Zn=n((()=>{Xn=e=>{if(!e)return null;try{return e.frameElement}catch{return null}}})),Qn,$n=n((()=>{J(),qn(),Yn(),Zn(),Qn=(e,t,n)=>{let r=t,i=n,a=1,o=1,s=e;for(;s&&s!==window;){let e=Xn(s);if(!e||!Un(e))break;let t=e.getBoundingClientRect(),n=Kn(e),c=Jn(t.width,n.width),l=Jn(t.height,n.height);r=t.left+(n.contentOffsetX+r)*c,i=t.top+(n.contentOffsetY+i)*l,a*=c,o*=l,s=e.ownerDocument.defaultView}return{x:r,y:i,scaleX:a,scaleY:o}}})),er,tr=n((()=>{er=e=>{let t=e.ownerDocument.defaultView;return t?t.getComputedStyle(e):window.getComputedStyle(e)}})),nr,rr,ir=n((()=>{q(),nr=(e,t)=>e.replace(/([\d.]+)px/g,(e,n)=>{let r=Number(n)*Math.abs(t);return`${Number(r.toFixed(3))}px`}),rr=(e,t,n)=>{let[r,i]=e.split(`/`).map(e=>e.trim()),a=nr(r,t),o=nr(i??r,n);return i===void 0&&a===o?a:`${a} / ${o}`}})),ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr=n((()=>{ar=e=>Object.assign(e,{[Symbol.dispose]:e}),or=`0.6.1`,sr=`bippy-${or}`,cr=Object.defineProperty,lr=Object.prototype.hasOwnProperty,ur=()=>{},dr=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{}},fr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),pr=!1,hr=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>pr?!0:(e&&typeof e.inject==`function`&&(mr=e.inject.toString()),!!mr?.includes(`(injected)`)),gr=new Set,_r=new Set,vr=e=>{e&&gr.add(e);let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:sr,checkDCE:dr,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),_r.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,gr.forEach(e=>e())),i},on:ur,onCommitFiberRoot:ur,onCommitFiberUnmount:ur,onPostCommitFiberRoot:ur,renderers:t,supportsFiber:!0,supportsFlight:!0};try{cr(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{_r.add(e),t.renderers.set(n,e)}),yr(e))}}});let t=window.hasOwnProperty,n=!1;cr(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{yr(e)}return r},yr=e=>{e&&gr.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=dr,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=sr,t._instrumentationIsActive=!1;let e=fr(t);if(e||(t.on=ur),t.renderers.size){t._instrumentationIsActive=!0,gr.forEach(e=>e());return}let n=t.inject,r=hr(t);r&&!e&&(pr=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return _r.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,gr.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||hr())&&e?.()}catch{}},br=()=>lr.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),xr=e=>br()?(yr(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):vr(e),Sr=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),Cr=()=>{try{Sr()&&xr()}catch{}}})),Tr=n((()=>{wr(),Cr()}));function Er(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await Lr(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=Ir(i,t,n);if(e)return e;i=n?null:i.sibling}return null}var Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di=n((()=>{wr(),Dr=60111,Or=`Symbol(react.concurrent_mode)`,kr=`Symbol(react.async_mode)`,Ar=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return typeof e.type==`string`}},jr=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}},Mr=e=>!e||typeof e!=`object`?!1:`pendingProps`in e&&!(`containerInfo`in e),Nr=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 9:case 11:case 0:case 14:case 15:return(r&1)==1;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},Pr=e=>{switch(e.tag){case 18:return!0;case 7:case 6:case 23:case 22:return!0;case 3:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===`react.concurrent_mode`||t.description===`react.async_mode`;switch(t){case Dr:case Or:case kr:return!0;default:return!1}}}},Fr=e=>{let t=[],n=[];for(Ar(e)?t.push(e):e.child&&n.push(e.child);n.length;){let e=n.pop();if(!e)break;Ar(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t},Ir=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=Ir(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Lr=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await Lr(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Rr=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Rr(t.type||t.render):null},zr=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Rr(t);return r&&(r.displayName||r.name)||null},Br=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||fr(e)||hr(e)},Vr=new Set,Hr=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let t of Vr){let n=Er(t.current,t=>{if(t===e)return!0});if(n)return n}return e},Ur=0,Wr=new WeakMap,Gr=(e,t=Ur++)=>{Wr.set(e,t)},Kr=e=>{let t=Wr.get(e);return t===void 0&&e.alternate&&(t=Wr.get(e.alternate)),t===void 0&&(t=Ur++,Gr(e,t)),t},qr=(e,t,n)=>{let r=t;for(;r!=null;){if(Wr.has(r)||Kr(r),!Pr(r)&&Nr(r)&&e(r,`mount`),r.tag===13)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&qr(e,t,!1)}}else{let t=null;r.child!==null&&(t=r.child.child),t!==null&&qr(e,t,!1)}else r.child!=null&&qr(e,r.child,!0);r=n?r.sibling:null}},Jr=(e,t,n,r)=>{if(Wr.has(t)||Kr(t),!n)return;Wr.has(n)||Kr(n);let i=t.tag===13,a=!Pr(t);a&&Nr(t)&&e(t,`update`);let o=i&&n.memoizedState!==null,s=i&&t.memoizedState!==null;if(o&&s){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&Jr(e,r,i,t)}else if(o&&!s){let n=t.child;n!==null&&qr(e,n,!0)}else if(!o&&s){Xr(e,n);let r=t.child?.sibling??null;r!==null&&qr(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){let i=n.alternate;Jr(e,n,i,a?t:r)}else qr(e,n,!1);n=n.sibling}}},Yr=(e,t)=>{(t.tag===3||!Pr(t))&&e(t,`unmount`)},Xr=(e,t)=>{let n=t.tag===13&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(Yr(e,r),Xr(e,r)),r=r.sibling},Zr=e=>{if(!br())return null;let t=e;for(;t.return;)t=t.return;let n=ai.get(t.stateNode);return n===void 0?null:xr().renderers?.get(n)??null},Qr=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),$r=(e,t=[])=>{if(!Qr(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);Qr(i)?n.push(...$r(i,a)):n.push({path:a,value:i})}return n},ei=new Set,ti=new Set,ni=new Set,ri=new Set,ii=new WeakMap,ai=new WeakMap,oi=e=>{let t=ii.get(e)??{};if(ii.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),ii.get(e)?.onCommitFiberRoot===r){Vr.add(i),ai.set(i,t);for(let e of ei)e(t,i,a)}};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(n?.(t,i),ii.get(e)?.onCommitFiberUnmount===r)for(let e of ti)e(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n?.(t,i),ii.get(e)?.onPostCommitFiberRoot===r)for(let e of ni)e(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),ii.get(e)?.onScheduleFiberRoot===r)for(let e of ri)e(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},si=e=>{let t=xr(e.onActive);t._instrumentationSource=e.name??sr,oi(t);let{onActive:n,onCommitFiberRoot:r,onCommitFiberUnmount:i,onPostCommitFiberRoot:a,onScheduleFiberRoot:o}=e;return r&&ei.add(r),i&&ti.add(i),a&&ni.add(a),o&&ri.add(o),ar(()=>{n&&gr.delete(n),r&&ei.delete(r),i&&ti.delete(i),a&&ni.delete(a),o&&ri.delete(o)})},ci=new Set,li=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),ui=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;let t=e.__internalInstanceHandle??e._internalInstanceHandle;if(Mr(t))return t;let n=e;for(let e of ci){let t=n[e];if(t)return t}for(let e of Object.keys(n))if(li(e))return ci.add(e),n[e]||null;for(let t of Vr){if(Zr(t.current)?.findFiberByHostInstance)continue;let n=Er(t.current,t=>t.stateNode===e);if(n)return n}}return null}})),fi=n((()=>{wr(),Tr(),di()})),pi,mi,hi,gi,_i=n((()=>{fi(),pi=new WeakMap,mi=(e,t)=>{pi.set(e,t)},hi=e=>pi.get(e)??null,gi=e=>hi(e)?.getFiber()??ui(e)})),vi,yi,bi,xi,Y,Si=n((()=>{q(),$n(),tr(),ir(),_i(),vi=new WeakMap,yi=new WeakMap,bi=()=>{vi=new WeakMap,yi=new WeakMap},xi=(e,t,n)=>{let r=yi.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??er(e)).borderRadius||`0px`;return yi.set(e,{borderRadius:i,timestamp:n}),i},Y=e=>{let t=performance.now(),n=vi.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=hi(e);if(r){let n=r.getBounds();return vi.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Qn(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:rr(xi(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return vi.set(e,{bounds:o,timestamp:t}),o}}));Si();let Ci=e=>({x:e.x+e.width/2,y:e.y+e.height/2});var X,wi=n((()=>{_i(),X=e=>{if(!e)return!1;let t=hi(e);return t?t.isConnected():!!(e.isConnected||e.ownerDocument?.contains(e))}}));wi();let Ti=e=>{let t=0,n=e.previousElementSibling;for(;n;)t+=1,n=n.previousElementSibling;return t};var Ei,Di=n((()=>{Ei=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)}}));fi(),Di(),Bn();let Oi=new WeakMap,ki=e=>{if(e.anchorElement.isConnected)return e.anchorElement;let t=e.anchorElement.tagName,n=Hr(e.anchorParentFiber);if(Ar(n)){let r=n.stateNode;if(!zn(r)||!r.isConnected)return null;let i=r.children[e.anchorIndexInParent];return i&&i.tagName===t?i:null}for(let e of Fr(n)){let n=e.stateNode;if(zn(n)&&n.isConnected&&n.tagName===t)return n}return null},Ai=(e,t)=>{let n=e;for(let e of t){let t=(e.isShadowChild?n.shadowRoot?.children:n.children)?.[e.childIndex];if(!t)return null;n=t}return n},ji=e=>{let t=[],n=e,r=ui(n);for(;n&&!r;){let e=n.parentElement;if(e)t.unshift({childIndex:Ti(n),isShadowChild:!1}),n=e;else{let e=n.getRootNode();if(!Ei(e))break;t.unshift({childIndex:Ti(n),isShadowChild:!0}),n=e.host}r=ui(n)}let i=r?.return;return!n||!i?null:{anchorElement:n,anchorParentFiber:i,anchorIndexInParent:Ti(n),domPath:t,targetTagName:e.tagName}},Mi=(e,t)=>e.anchorElement.isConnected&&e.anchorIndexInParent===Ti(e.anchorElement)&&Ai(e.anchorElement,e.domPath)===t,Ni=e=>{if(!e.isConnected)return;let t=Oi.get(e);if(t&&Mi(t,e))return;let n=ji(e);n&&Oi.set(e,n)},Pi=e=>{if(e.isConnected)return e;let t=Oi.get(e);if(!t)return null;let n=ki(t);if(!n)return null;let r=Ai(n,t.domPath);return r&&r.isConnected&&r.tagName===t.targetTagName?r:null};R(),q();let Fi=e=>{let t=Pi(e)??e;return Ni(t),t},Ii=e=>{for(let t=0;t<e.frozenElements.length;t+=1)e.frozenElements[t]=Fi(e.frozenElements[t]);e.frozenElement=e.frozenElement&&Fi(e.frozenElement),e.detectedElement=e.detectedElement&&Fi(e.detectedElement),e.contextMenuElement=e.contextMenuElement&&Fi(e.contextMenuElement);for(let t of e.labelInstances)if(t.element&&=Fi(t.element),t.elements)for(let e=0;e<t.elements.length;e+=1)t.elements[e]=Fi(t.elements[e]);for(let t of e.grabbedBoxes)t.element&&=Fi(t.element)},Li=e=>({selectionInteractionLockDepth:0,wasActivatedByToggle:!1,pendingCommentMode:!1,keyHoldDuration:e.keyHoldDuration,dragStart:{x:$t,y:$t},copyStart:{x:$t,y:$t},copyOffsetFromCenterX:0,detectedElement:null,frozenElement:null,frozenElements:[],frozenDragRect:null,lastGrabbedElement:null,selectionFilePath:null,selectionLineNumber:null,inputText:``,grabbedBoxes:[],labelInstances:[],isTouchMode:!1,activationTimestamp:null,previouslyFocusedElement:null,contextMenuPosition:null,contextMenuElement:null,contextMenuClickOffset:null}),Ri=e=>{let[t,n]=Rt(Li(e)),[r,i]=c({x:$t,y:$t}),[a,o]=c(0),[s,l]=c({state:`idle`}),u=e=>{n(Vt(t=>{e(t),t.frozenElement=t.frozenElements.length>0?t.frozenElements[0]:null,t.frozenDragRect=null;for(let e of t.frozenElements)Ni(e)}))},d=()=>{u(e=>{e.frozenElements=[]})},f=e=>{l(t=>t.state===`active`?{...t,phase:e}:t)},p={startHold:e=>{e!==void 0&&n(`keyHoldDuration`,e),l({state:`holding`,startedAt:Date.now()})},releaseHold:()=>{s().state===`holding`&&l({state:`idle`})},activate:()=>{h(()=>{l({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement)})},deactivate:()=>{h(()=>{l({state:`idle`}),n(Vt(e=>{e.wasActivatedByToggle=!1,e.pendingCommentMode=!1,e.inputText=``,e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null,e.activationTimestamp=null,e.previouslyFocusedElement=null,e.contextMenuPosition=null,e.contextMenuElement=null,e.contextMenuClickOffset=null,e.isTouchMode&&(e.detectedElement=null)}))})},toggle:()=>{t.activationTimestamp===null?(n(`wasActivatedByToggle`,!0),p.activate()):p.deactivate()},freeze:()=>{if(s().state===`active`){let e=t.frozenElement??t.detectedElement;e&&(Ni(e),n(`frozenElement`,e)),f(`frozen`)}},unfreeze:()=>{s().state===`active`&&h(()=>{n(Vt(e=>{e.frozenElement=null,e.frozenElements=[],e.frozenDragRect=null})),f(`hovering`)})},startDrag:(e,t)=>{s().state===`active`&&h(()=>{t||d(),n(`dragStart`,{x:e.x+window.scrollX,y:e.y+window.scrollY}),f(`dragging-select`)})},startDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-select`&&f(`dragging-reposition`)},stopDragReposition:()=>{let e=s();e.state===`active`&&e.phase===`dragging-reposition`&&f(`dragging-select`)},shiftDragStart:e=>{let t=s();t.state===`active`&&t.phase===`dragging-reposition`&&n(`dragStart`,t=>({x:t.x+e.x,y:t.y+e.y}))},endDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&h(()=>{n(`dragStart`,{x:$t,y:$t}),f(`justDragged`)})},cancelDrag:()=>{let e=s();e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)&&h(()=>{n(`dragStart`,{x:$t,y:$t}),f(`hovering`)})},finishJustDragged:()=>{let e=s();e.state===`active`&&e.phase===`justDragged`&&f(`hovering`)},startCopy:()=>{let e=s().state===`active`;l({state:`copying`,startedAt:Date.now(),wasActive:e})},completeCopy:()=>{let e=s(),t=e.state===`copying`?e.wasActive:!1;l({state:`justCopied`,copiedAt:Date.now(),wasActive:t})},finishJustCopied:()=>{let e=s();e.state===`justCopied`&&(e.wasActive&&!t.wasActivatedByToggle?h(()=>{d(),l({state:`active`,phase:`hovering`,isPromptMode:!1,isPendingDismiss:!1})}):p.deactivate())},enterPromptMode:(e,t)=>{let{x:r}=Ci(Y(t));Ni(t),h(()=>{n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r),i(e),n(`frozenElement`,t),n(`wasActivatedByToggle`,!0),s().state===`active`?l(e=>e.state===`active`?{...e,isPromptMode:!0,phase:`frozen`}:e):(l({state:`active`,phase:`frozen`,isPromptMode:!0,isPendingDismiss:!1}),n(`activationTimestamp`,Date.now()),n(`previouslyFocusedElement`,document.activeElement))})},exitPromptMode:()=>{l(e=>e.state===`active`?{...e,isPromptMode:!1,isPendingDismiss:!1}:e)},setInputText:e=>{n(`inputText`,e)},clearInputText:()=>{n(`inputText`,``)},setPendingDismiss:e=>{l(t=>t.state===`active`?{...t,isPendingDismiss:e}:t)},setPointer:e=>{i(t=>t.x===e.x&&t.y===e.y?t:e)},setDetectedElement:e=>{e&&Ni(e),n(`detectedElement`,e)},setFrozenElement:e=>{u(t=>{t.frozenElements=[e]})},setFrozenElements:e=>{u(t=>{t.frozenElements=e})},toggleFrozenElement:e=>{u(t=>{let n=t.frozenElements.indexOf(e);n>=0?t.frozenElements.splice(n,1):t.frozenElements.push(e)})},addFrozenElements:e=>{u(t=>{for(let n of e)t.frozenElements.includes(n)||t.frozenElements.push(n)})},setFrozenDragRect:e=>{n(`frozenDragRect`,e)},relinkLiveElements:()=>{n(Vt(Ii))},setCopyStart:(e,t)=>{let{x:r}=Ci(Y(t));n(`copyStart`,e),n(`copyOffsetFromCenterX`,e.x-r)},setLastGrabbed:e=>{n(`lastGrabbedElement`,e)},setWasActivatedByToggle:e=>{n(`wasActivatedByToggle`,e)},setPendingCommentMode:e=>{n(`pendingCommentMode`,e)},setTouchMode:e=>{n(`isTouchMode`,e)},incrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>e+1)},decrementSelectionInteractionLockDepth:()=>{n(`selectionInteractionLockDepth`,e=>Math.max(0,e-1))},setSelectionSource:(e,t)=>{h(()=>{n(`selectionFilePath`,e),n(`selectionLineNumber`,t)})},incrementViewportVersion:()=>{o(e=>e+1)},addGrabbedBox:e=>{e.element&&Ni(e.element),n(`grabbedBoxes`,t=>[...t,e])},removeGrabbedBox:e=>{n(`grabbedBoxes`,t=>t.filter(t=>t.id!==e))},clearGrabbedBoxes:()=>{n(`grabbedBoxes`,[])},addLabelInstance:e=>{e.element&&Ni(e.element);for(let t of e.elements??[])Ni(t);n(`labelInstances`,t=>[...t,e])},updateLabelInstance:(e,r,i)=>{let a=t.labelInstances.findIndex(t=>t.id===e);a!==-1&&h(()=>{n(`labelInstances`,a,`status`,r),i===void 0?r!==`error`&&n(`labelInstances`,a,`errorMessage`,void 0):n(`labelInstances`,a,`errorMessage`,i)})},removeLabelInstance:e=>{n(`labelInstances`,t=>t.filter(t=>t.id!==e))},clearLabelInstances:()=>{n(`labelInstances`,[])},showContextMenu:(e,t)=>{let{x:r,y:i}=Ci(Y(t));Ni(t),h(()=>{n(`contextMenuPosition`,e),n(`contextMenuElement`,t),n(`contextMenuClickOffset`,{x:e.x-r,y:e.y-i})})},hideContextMenu:()=>{h(()=>{n(`contextMenuPosition`,null),n(`contextMenuElement`,null),n(`contextMenuClickOffset`,null)})},updateContextMenuPosition:()=>{let e=t.contextMenuElement,r=t.contextMenuClickOffset;if(!e||!r||!X(e))return;let{x:i,y:a}=Ci(Y(e));n(`contextMenuPosition`,{x:i+r.x,y:a+r.y})}};return{store:t,actions:p,pointer:r,viewportVersion:a,current:s}};var zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi=n((()=>{zi=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},Bi=class extends zi{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},Vi=class extends zi{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},Hi=class extends Bi{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},Ui=class extends Bi{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Wi=class extends Bi{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},Gi=class extends Bi{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},Ki=class extends Bi{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},qi=class extends Bi{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},Ji=class extends zi{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},Yi=class extends zi{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},Xi=class extends zi{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},Zi=class extends zi{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}}})),$i,ea=n((()=>{_i(),$i=e=>hi(e)?.getTagName()??(e.tagName||``).toLowerCase()})),ta,na,ra,ia,aa,oa=n((()=>{ea(),ta=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],na=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},ra=e=>{if(document.designMode===`on`)return!0;let t=na(e);if(!t)return!1;if(t.isContentEditable)return!0;let n=$i(t);return ta.some(e=>e===n||e===t.role)},ia=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},aa=()=>{let e=window.getSelection();return e?e.toString().length>0:!1}})),sa,ca,la=n((()=>{sa=new WeakMap,ca=(e=document)=>{let t=sa.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&sa.set(e,r),r}})),ua,da,fa=n((()=>{ua=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],da=e=>{for(let[t,n]of ua)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)}})),pa,ma=n((()=>{q(),pa=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9})),ha,ga=n((()=>{Di(),ma(),Zn(),ha=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return Ei(t)?t.host:pa(t)?Xn(t.defaultView):null}})),_a,va=n((()=>{ga(),_i(),_a=(e,t)=>{let n=hi(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=ha(n)}return!1}})),ya,ba,xa,Sa,Ca,wa=n((()=>{va(),ya=null,ba=e=>{ya=e},xa=()=>ya,Sa=e=>ya?e?_a(e,ya):!1:!0,Ca=e=>e}));Qi(),oa(),la(),fa(),wa();let Ta=`data-react-grab`;q();let Ea=e=>{if(!document.body)return;let t=document.querySelectorAll(`[${Ta}]`);for(let n of t)n!==e&&n.parentNode!==e&&(n.shadowRoot||n.remove());document.body.appendChild(e)},Da=e=>{if(document.body)return Ea(e),()=>{};let t=()=>{document.removeEventListener(`DOMContentLoaded`,t),Ea(e)};return document.addEventListener(`DOMContentLoaded`,t,{once:!0}),()=>document.removeEventListener(`DOMContentLoaded`,t)},Oa=e=>{let t=window.setTimeout(()=>{Ea(e)},Pn),n=new MutationObserver(()=>{e.parentNode!==document.body&&Ea(e)});return n.observe(document.documentElement,{childList:!0}),()=>{window.clearTimeout(t),n.disconnect()}},ka=e=>{let t=document.querySelectorAll(`[${Ta}]`);for(let e of t){let t=e.shadowRoot?.querySelector(`[${Ta}]`);if(t instanceof HTMLDivElement)return{root:t,host:e,cancelPendingAttachment:Oa(e)};e.remove()}let n=document.createElement(`div`);n.setAttribute(Ta,`true`),da(n),n.style.zIndex=String(cn),n.style.position=`fixed`,n.style.inset=`0`,n.style.pointerEvents=`none`,n.style.contain=`strict`;let r=n.attachShadow({mode:`open`}),i=document.createElement(`style`),a=ca();a&&(i.nonce=a),i.textContent=`@import url("https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap");\n${e??``}`,r.appendChild(i);let o=document.createElement(`div`);o.setAttribute(Ta,`true`),r.appendChild(o);let s=Da(n),c=Oa(n);return{root:o,host:n,cancelPendingAttachment:()=>{s(),c()}}};wr(),di();let Aa=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,ja=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],Ma=[`rsc://`,`about://React/`],Na=[`<anonymous>`,`eval`,``],Pa=/\.(jsx|tsx|ts|js)$/,Fa=/(\.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,Ia=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,La=/\(at [^)]+\)$/,Ra=[`react_stack_bottom_frame`,`react-stack-bottom-frame`],za=/(^|@)\S+:\d+/,Ba=/^\s*at .*(\S+:\d+|\(native\))/m,Va=/^(eval@)?(\[native code\])?$/,Ha=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
11
+ `),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=Ga(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(za)){let t=Ka(e,void 0)[0];t&&r.push(t)}return Wa(r,t)}return e.match(Ba)?Ga(e,t):Ka(e,t)},Ua=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Wa=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,Ga=(e,t)=>Wa(e.split(`
12
+ `).filter(e=>!!e.match(Ba)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Ua(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),Ka=(e,t)=>Wa(e.split(`
13
+ `).filter(e=>!e.match(Va)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Ua(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}}),qa=new WeakMap,Ja=e=>Ra.some(t=>e.includes(t)),Ya=e=>{let t=e.getFunctionName?.()??``;if(t)return t;let n=e.getTypeName?.()??``,r=e.getMethodName?.()??``;return n&&r?`${n}.${r}`:r},Xa=e=>{let t=[];for(let n=1;n<e.length;n++){let r=e[n],i=Ya(r);if(Ja(i))return{frames:t,isTrusted:!0};if(r.isNative?.()){t.push({functionName:i||void 0});continue}let a=r.getScriptNameOrSourceURL?.()??``;!a&&r.isEval?.()&&(a=r.getEvalOrigin?.()??``),t.push({functionName:i&&i!==`<anonymous>`?i:void 0,fileName:a&&a!==`<anonymous>`?a:void 0,lineNumber:r.getLineNumber?.()??void 0,columnNumber:r.getColumnNumber?.()??void 0,enclosingLineNumber:r.getEnclosingLineNumber?.()??void 0,enclosingColumnNumber:r.getEnclosingColumnNumber?.()??void 0,source:` at ${r.toString()}`})}return{frames:t,isTrusted:!1}},Za=e=>{let t=-1;for(let n of Ra)if(t=e.indexOf(n),t!==-1)break;return{frames:Ha(t===-1?e:e.slice(0,e.lastIndexOf(`
14
+ `,t))).slice(1),isTrusted:t!==-1}},Qa=e=>{let t=qa.get(e);if(t)return t;let n=null,r=(e,t)=>{n=Xa(t);let r=`${e.name||`Error`}: ${e.message||``}`;for(let e of t)r+=`\n at ${e.toString()}`;return r},i=Error.prepareStackTrace;Error.prepareStackTrace=r;let a;try{a=String(e.stack)}finally{Error.prepareStackTrace=i}let o=n??Za(a);return qa.set(e,o),o};var $a=44,eo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,to=new Uint8Array(64),no=new Uint8Array(128);for(let e=0;e<eo.length;e++){let t=eo.charCodeAt(e);to[e]=t,no[t]=e}function ro(e,t){let n=0,r=0,i=0;do i=no[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function io(e,t){return e.pos>=t?!1:e.peek()!==$a}var ao=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function oo(e){let{length:t}=e,n=new ao(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=ro(n,i),i<u&&(l=!1),u=i,io(n,e)?(a=ro(n,a),o=ro(n,o),s=ro(n,s),io(n,e)?(c=ro(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||so(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function so(e){e.sort(co)}function co(e,t){return e[0]-t[0]}let lo=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,uo=/^data:application\/json[^,]+base64,/,fo=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,po=new Map,mo=new Map,ho=(e,t,n,r,i)=>{if(n<0||n>=e.length)return null;let a=e[n];if(!a||a.length===0)return null;let o=null,s=0,c=a.length-1;for(;s<=c;){let e=s+c>>1;a[e][0]<=r?(o=a[e],s=e+1):c=e-1}if(!o||o.length<4)return null;let[,l,u,d]=o;if(l===void 0||u===void 0||d===void 0)return null;let f=t[l];return f?{columnNumber:d,fileName:f,lineNumber:u+1,isIgnoreListed:i?.has(l)??!1}:null},go=(e,t,n)=>{if(e.sections){let r=t-1,i=null;for(let t of e.sections)if(r>t.offset.line||r===t.offset.line&&n>=t.offset.column)i=t;else break;if(!i)return null;let a=r-i.offset.line,o=r===i.offset.line?n-i.offset.column:n;return ho(i.map.mappings,i.map.sources,a,o,i.map.ignoredSourceIndices)}return ho(e.mappings,e.sources,t-1,n,e.ignoredSourceIndices)},_o=(e,t)=>{let n,r=t.length;for(;r>0&&!n;){let e=t.lastIndexOf(`
15
+ `,r-1)+1,i=t.slice(e,r).match(fo);i&&(n=i[1]||i[2]),r=e-1}if(!n)return null;let i=lo.test(n);if(!(uo.test(n)||i||n.startsWith(`/`))){let t=e.split(`/`);t[t.length-1]=n,n=t.join(`/`)}return n},vo=e=>{let t=e.ignoreList??e.x_google_ignoreList;return Array.isArray(t)&&t.length>0?new Set(t):void 0},yo=e=>({file:e.file,ignoredSourceIndices:vo(e),mappings:oo(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),bo=e=>{let t=e.sections.map(({map:e,offset:t})=>({map:{...e,ignoredSourceIndices:vo(e),mappings:oo(e.mappings)},offset:t})),n=new Set;for(let e of t)for(let t of e.map.sources)n.add(t);return{file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},xo=e=>{if(!e)return!1;let t=e.trim();if(!t)return!1;let n=t.match(lo);if(!n)return!0;let r=n[0].toLowerCase();return r===`http:`||r===`https:`},So=async(e,t=fetch)=>{if(!xo(e))return null;let n=await t(e);if(!n.ok)return null;let r=await n.text();if(!r)return null;let i=_o(e,r);if(!i||!xo(i)&&!uo.test(i))return null;let a=await t(i);if(!a.ok)return null;try{let e=await a.json();return`sections`in e?bo(e):yo(e)}catch{return null}},Co=async(e,t=!0,n)=>{if(t&&po.has(e))return po.get(e)??null;let r=t?mo.get(e):void 0;if(r)return(await r).sourceMap;let i=So(e,n).then(e=>({sourceMap:e,isTransientFailure:!1}),()=>({sourceMap:null,isTransientFailure:!0}));t&&mo.set(e,i);let{sourceMap:a,isTransientFailure:o}=await i;return t&&(mo.delete(e),o||po.set(e,a)),a},wo=async(e,t=!0,n)=>await Promise.all(e.map(async e=>{if(!e.fileName)return e;let r=await Co(e.fileName,t,n);if(!r||typeof e.lineNumber!=`number`||typeof e.columnNumber!=`number`)return e;let i=go(r,e.lineNumber,e.columnNumber);return i?{...e,source:i.fileName&&e.source?e.source.replace(e.fileName,i.fileName):e.source,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,isIgnoreListed:i.isIgnoreListed,isSymbolicated:!0}:e})),To=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack==`string`,Eo=e=>typeof e.tag==`number`,Do=e=>e._debugOwner,Oo=e=>{let t=null;if(Er(e,n=>{if(n===e)return!1;let r=n._debugOwner;return(r===e||e.alternate!==null&&r===e.alternate)&&n._debugStack instanceof Error?(t=n._debugStack,!0):!1}),!t)return null;let{frames:n,isTrusted:r}=Qa(t);if(!r)return null;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.fileName)return{...t,lineNumber:t.enclosingLineNumber||t.lineNumber,columnNumber:t.enclosingColumnNumber||t.columnNumber}}return null},ko=()=>{let e=xr();for(let t of[...Array.from(_r),...Array.from(e.renderers.values())]){let e=t.currentDispatcherRef;if(e&&typeof e==`object`)return`H`in e?e.H:e.current}return null},Ao=e=>{for(let t of _r){let n=t.currentDispatcherRef;n&&typeof n==`object`&&(`H`in n?n.H=e:n.current=e)}},jo=e=>`\n in ${e}`,Mo=(e,t)=>{let n=jo(e);return t&&(n+=` (at ${t})`),n},No=!1,Po=new WeakMap,Fo=(e,t)=>{if(!e||No)return``;let n=Po.get(e);if(n!==void 0)return n;let r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,No=!0;let i=ko();Ao(null);let a=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let n;try{if(t){let t=function(){throw Error()};if(Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}let t=e();t&&typeof t.catch==`function`&&t.catch(()=>{})}}catch(e){if(e instanceof Error&&n instanceof Error&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`,Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,`name`)?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});let[r,i]=n.DetermineComponentFrameRoot();if(r&&i){let t=r.split(`
16
16
  `),n=i.split(`
17
- `),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,r=Rr(e);return r&&n.includes(`<anonymous>`)&&(n=n.replace(`<anonymous>`,r)),jo.set(e,n),n}while(a>=1&&o>=0);break}}}finally{Ao=!1,Error.prepareStackTrace=r,Do(i),console.error=a,console.warn=o}let s=e?Rr(e):``,c=s?Oo(s):``;return jo.set(e,c),c},No=(e,t)=>{let n=e.tag,r=``;switch(n){case 28:r=Oo(`Activity`);break;case 1:r=Mo(e.type,!0);break;case 11:r=Mo(e.type.render,!1);break;case 0:case 15:r=Mo(e.type,!1);break;case 5:case 26:case 27:r=Oo(e.type);break;case 16:r=Oo(`Lazy`);break;case 13:r=e.child!==t&&t!==null?Oo(`Suspense Fallback`):Oo(`Suspense`);break;case 19:r=Oo(`SuspenseList`);break;case 30:r=Oo(`ViewTransition`);break;default:return``}return r},Po=e=>{try{let t=``,n=e,r=null;do{t+=No(n,r);let e=n._debugInfo;if(e&&Array.isArray(e))for(let n=e.length-1;n>=0;n--){let r=e[n];typeof r.name==`string`&&(t+=ko(r.name,r.env))}r=n,n=n.return}while(n);return t}catch(e){return e instanceof Error?`\nError generating stack: ${e.message}\n${e.stack}`:``}},Fo=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return``;Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
17
+ `),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,r=zr(e);return r&&n.includes(`<anonymous>`)&&(n=n.replace(`<anonymous>`,r)),Po.set(e,n),n}while(a>=1&&o>=0);break}}}finally{No=!1,Error.prepareStackTrace=r,Ao(i),console.error=a,console.warn=o}let s=e?zr(e):``,c=s?jo(s):``;return Po.set(e,c),c},Io=(e,t)=>{let n=e.tag,r=``;switch(n){case 28:r=jo(`Activity`);break;case 1:r=Fo(e.type,!0);break;case 11:r=Fo(e.type.render,!1);break;case 0:case 15:r=Fo(e.type,!1);break;case 5:case 26:case 27:r=jo(e.type);break;case 16:r=jo(`Lazy`);break;case 13:r=e.child!==t&&t!==null?jo(`Suspense Fallback`):jo(`Suspense`);break;case 19:r=jo(`SuspenseList`);break;case 30:r=jo(`ViewTransition`);break;default:return``}return r},Lo=e=>{try{let t=``,n=e,r=null;do{t+=Io(n,r);let e=n._debugInfo;if(e&&Array.isArray(e))for(let n=e.length-1;n>=0;n--){let r=e[n];typeof r.name==`string`&&(t+=Mo(r.name,r.env))}r=n,n=n.return}while(n);return t}catch(e){return e instanceof Error?`\nError generating stack: ${e.message}\n${e.stack}`:``}},Ro=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return``;Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(n=n.slice(29));let r=n.indexOf(`
19
19
  `);r!==-1&&(n=n.slice(r+1));let i=Math.max(n.indexOf(`react_stack_bottom_frame`),n.indexOf(`react-stack-bottom-frame`));if(i!==-1&&(i=n.lastIndexOf(`
20
- `,i)),i!==-1)n=n.slice(0,i);else return``;return n},Io=e=>!!(e.functionName&&e.fileName&&Bo(e.fileName)),Lo=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Ro=e=>{let t=new Map;for(let n of e)for(let e of n.stackFrames){if(!Io(e))continue;let n=e.functionName,r=t.get(n)??[];r.some(t=>Lo(t,e))||(r.push(e),t.set(n,r))}return t},zo=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},Bo=e=>ka.some(t=>e.startsWith(t)),Vo=e=>!e.isServer&&e.fileName&&Bo(e.fileName)?{...e,isServer:!0}:e,Ho=e=>{let t=[],n=e;for(;n;)if(Co(n)){let e=n;if(n=wo(e),n&&So(e)){let{frames:n,isTrusted:r}=Ya(e._debugStack);if(r)for(let e of n)t.push(Vo(e))}}else{let e=n;if(n=e.owner,n&&e.debugStack instanceof Error)for(let n of Ya(e.debugStack).frames)t.push({...n,isServer:!0})}return t},Uo=e=>{let t=[];return Tr(e,e=>{if(!So(e))return;let n=typeof e.type==`string`?e.type:Rr(e.type)||`<anonymous>`;t.push({componentName:n,stackFrames:za(Fo(e._debugStack?.stack))})},!0),t},Wo=async(e,t=!0,n)=>{let r=Uo(e),i=za(Po(e)),a=Ro(r),o=new Map;return xo(i.map(e=>(e.source?.includes(`(at Server)`)??!1)||e.source!=null&&Pa.test(e.source)?zo(e,a,o):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName}),t,n)},Go=e=>!!e.fileName&&!e.isIgnoreListed,Ko=async(e,t=!0,n)=>{let r=Ho(e);if(r.length>0){let i=To(e)??{};i.functionName=Rr(e.type)??i.functionName;let a=await xo([i,...r],t,n);if(a.some((e,t)=>t>0&&Go(e)))return a}return Wo(e,t,n)},qo=e=>{let t=e._debugSource;return t?typeof t==`object`&&!!t&&`fileName`in t&&typeof t.fileName==`string`&&`lineNumber`in t&&typeof t.lineNumber==`number`:!1},Jo=e=>e.fileName?{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName}:null,Yo=e=>{if(!So(e))return null;let{frames:t,isTrusted:n}=Ya(e._debugStack);if(!n)return null;for(let e of t)if(e.fileName)return e;return null},Xo=async(e,t=!0,n)=>{if(qo(e))return e._debugSource||null;let r=Yo(e)??To(e);if(r){let[e]=await xo([r],t,n),i=Jo(e);if(i)return i}let i=await Wo(e,t,n);for(let e of i)if(e.fileName)return Jo(e);return null},Zo=e=>e.split(`/`).filter(Boolean).length,Qo=e=>e.split(`/`).filter(Boolean)[0]??null,$o=e=>{let t=e.indexOf(`/`,1);if(t===-1||Zo(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!ja.test(n)||Zo(n)<2)return e;let r=Qo(n);return!r||r.startsWith(`@`)||r.length>4?e:n},es=e=>{if(!e||Aa.some(t=>t===e))return``;let t=e,n=t.startsWith(`http://`)||t.startsWith(`https://`);if(n)try{t=new URL(t).pathname}catch{}if(n&&(t=$o(t)),t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of Oa)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(Da.test(t)){let e=t.match(Da);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);Na.test(e)&&(t=t.slice(0,i))}return t},ts=e=>{let t=es(e);return!(!t||!ja.test(t)||Ma.test(t))};Cr(),ui();let ns=Symbol.for(`react.context`),rs=[],is=null,as=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."),os=()=>{let e=is;return e!==null&&(is=e.next),e},ss=e=>e._currentValue,cs=(e,t,n,r=null)=>{rs.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},ls=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:return cs(`Promise`,e.value,`Use`),e.value;case`rejected`:throw e.reason}throw cs(`Unresolved`,e,`Use`),as}if(t.$$typeof===ns&&`_currentValue`in t){let e=t,n=ss(e);return cs(`Context (use)`,n,`Use`,e.displayName||`Context`),n}}throw Error(`An unsupported type was passed to use(): `+String(e))},us=e=>{let t=ss(e);return cs(`Context`,t,`Context`,e.displayName||null),t},ds=e=>{let t=os(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return cs(`State`,n,`State`),[n,()=>{}]},fs=(e,t,n)=>{let r=os(),i=r===null?n===void 0?t:n(t):r.memoizedState;return cs(`Reducer`,i,`Reducer`),[i,()=>{}]},ps=e=>{let t=os(),n=t===null?{current:e}:t.memoizedState;return cs(`Ref`,n.current,`Ref`),n},ms=()=>{let e=os();return cs(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},hs=e=>{os(),cs(`LayoutEffect`,e,`LayoutEffect`)},gs=e=>{os(),cs(`InsertionEffect`,e,`InsertionEffect`)},_s=e=>{os(),cs(`Effect`,e,`Effect`)},vs=e=>{os();let t;typeof e==`object`&&e&&`current`in e&&(t=e.current),cs(`ImperativeHandle`,t,`ImperativeHandle`)},ys=(e,t)=>{cs(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},bs=e=>{let t=os();return cs(`Callback`,t===null?e:t.memoizedState[0],`Callback`),e},xs=e=>{let t=os(),n=t===null?e():t.memoizedState[0];return cs(`Memo`,n,`Memo`),n},Ss=(e,t)=>{let n=os();os();let r=n===null?t():n.memoizedState;return cs(`SyncExternalStore`,r,`SyncExternalStore`),r},Cs=()=>{let e=os();os();let t=e===null?!1:e.memoizedState;return cs(`Transition`,t,`Transition`),[t,()=>{}]},ws=e=>{let t=os(),n=t===null?e:t.memoizedState;return cs(`DeferredValue`,n,`DeferredValue`),n},Ts=()=>{let e=os(),t=e===null?``:e.memoizedState;return cs(`Id`,t,`Id`),t},Es=e=>[],Ds=e=>{let t=os(),n=t===null?e:t.memoizedState;return cs(`Optimistic`,n,`Optimistic`),[n,()=>{}]},Os=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(typeof t==`object`&&t&&`then`in t&&typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:n=e.value;break;case`rejected`:r=e.reason;break;default:r=as,n=e}}else n=t}else n=t;return{value:n,error:r}},ks=e=>(t,n)=>{let r=os();os(),os();let i=Error(),{value:a,error:o}=Os(r,n);if(rs.push({displayName:null,primitive:e,stackError:i,value:a,dispatcherHookName:e}),o!==null)throw o;return[a,()=>{},!1]},As=ks(`ActionState`),js={readContext:ss,use:ls,useCallback:bs,useContext:us,useEffect:_s,useImperativeHandle:vs,useLayoutEffect:hs,useInsertionEffect:gs,useMemo:xs,useReducer:fs,useRef:ps,useState:ds,useDebugValue:ys,useDeferredValue:ws,useTransition:Cs,useSyncExternalStore:Ss,useId:Ts,useHostTransitionStatus:()=>{let e=ss({_currentValue:null});return cs(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:ks(`FormState`),useActionState:As,useOptimistic:Ds,useMemoCache:Es,useCacheRefresh:ms,useEffectEvent:e=>(os(),cs(`EffectEvent`,e,`EffectEvent`),e)};typeof Proxy>`u`||new Proxy(js,{get(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=Error(`Missing method in Dispatcher: `+t);throw n.name=`ReactDebugToolsUnsupportedHookError`,n}}),J();let Ms=e=>e===void 0||!Number.isFinite(e)?3:Math.max(0,Math.floor(e)),Ns=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,Ps=e=>{let t=es(e);return t=t.replace(Ns,``),t.startsWith(`./`)&&(t=t.slice(2)),t},Fs=e=>{try{return decodeURIComponent(e)}catch{return e}},Is=/(?:^|[/\\])node_modules[/\\]/,Ls=/[/\\]\.vite[/\\]deps[^/\\]*[/\\]/,Rs=/\.[mc]?[jt]sx?$/i,zs=/^chunk-[A-Za-z0-9_-]+$/,Bs=/[/\\]/,Vs=/^(.+?)@v?\d/,Hs=e=>e.split(Bs).filter(Boolean),Us=e=>{let[t,n]=Hs(e);return!t||t.startsWith(`.`)?null:t.startsWith(`@`)?n?`${t}/${n}`:null:t},Ws=e=>{let t=Hs(e)[0];if(!t)return null;let n=t.replace(Rs,``);if(zs.test(n))return null;if(!n.startsWith(`@`))return n;let r=n.indexOf(`_`);return r===-1?null:`${n.slice(0,r)}/${n.slice(r+1)}`},Gs=(e,t,n)=>{let r=e.split(t);return r.length>1?n(r[r.length-1]):null},Ks=e=>e?.match(Vs)?.[1]??null,qs=e=>{let t;try{t=new URL(e)}catch{return null}if(!t.hostname)return null;let n=Hs(t.pathname).map(Fs);for(let[e,t]of n.entries()){if(t.startsWith(`@`)){let r=Ks(n[e+1]);if(r)return`${t}/${r}`;continue}let r=Ks(t);if(r)return r}return null},Js=e=>Gs(e,Ls,Ws)??Gs(e,Is,Us),Ys=e=>{if(!e)return null;let t=es(e);return t&&(Js(Fs(t))||qs(e))||null},Xs=/^@[A-Za-z0-9][A-Za-z0-9._-]*$/,Zs=/^[A-Za-z0-9][A-Za-z0-9._-]*$/,Qs=new Set([`app`,`web`,`website`,`frontend`,`client`,`src`]),$s=new Set([`app`,`src`,`components`,`pages`,`features`,`modules`,`hooks`,`lib`,`utils`,`ui`,`shared`,`common`,`core`,`styles`,`assets`]),ec=e=>{let t=e;for(;t.startsWith(`../`)||t.startsWith(`./`);)t=t.slice(t.startsWith(`../`)?3:2);return t},tc=e=>{let t=ec(Fs(es(e)));if(t.startsWith(`/`))return null;let[n,r,...i]=Hs(t);return!n||!r||i.length===0||!Xs.test(n)||$s.has(n.slice(1))||!Zs.test(r)||Rs.test(r)||Qs.has(r)?null:`${n}/${r}`},nc=e=>e?Ys(e)??tc(e):null,rc=e=>{if(!e)return{origin:`unknown`,packageName:null};let t=nc(e);return t?{origin:`package`,packageName:t}:ts(e)?{origin:`app`,packageName:null}:{origin:`unknown`,packageName:null}};J(),pa(),Rn(),Ei();let ic=new Set([`role`,`name`,`aria-label`,`rel`,`href`]),ac=e=>{if(!/^[a-z-]{3,}$/i.test(e))return!1;let t=e.split(/-|[A-Z]/);for(let e of t)if(e.length<=2||/[^aeiou]{4,}/i.test(e))return!1;return!0},oc=(e,t)=>{let n=ic.has(e)||e.startsWith(`data-`)&&ac(e),r=ac(t)&&t.length<100||t.startsWith(`#`)&&ac(t.slice(1));return n&&r},sc=e=>{let t=e[0].name;for(let n=1;n<e.length;n++)t=`${e[n].name} > ${t}`;return t},cc=e=>{let t=0;for(let n of e)t+=n.penalty;return t},lc=(e,t)=>cc(e)-cc(t),uc=(e,t)=>{let n=e.parentNode;if(!n)return;let r=n.firstChild;if(!r)return;let i=0;for(;r&&(Ln(r)&&(t===void 0||r.tagName.toLowerCase()===t)&&i++,r!==e);)r=r.nextSibling;return i},dc=(e,t)=>e===`html`?`html`:`${e}:nth-child(${t})`,fc=(e,t)=>e===`html`?`html`:`${e}:nth-of-type(${t})`,pc=(e,t)=>{let n=[],r=e.getAttribute(`id`),i=e.tagName.toLowerCase();r&&ac(r)&&n.push({name:`#${CSS.escape(r)}`,penalty:0});for(let t of e.classList)ac(t)&&n.push({name:`.${CSS.escape(t)}`,penalty:1});for(let r of e.attributes)t(r.name,r.value)&&n.push({name:`[${CSS.escape(r.name)}="${CSS.escape(r.value)}"]`,penalty:2});n.push({name:i,penalty:5});let a=uc(e,i);a!==void 0&&n.push({name:fc(i,a),penalty:10});let o=uc(e);return o!==void 0&&n.push({name:dc(i,o),penalty:50}),n},mc=(e,t=q,n=[])=>{if(t<=0)return[];if(e.length===0)return[n];let r=[];for(let i of e[0]){let a=t-r.length;if(a<=0)break;r.push(...mc(e.slice(1),a,[...n,i]))}return r},hc=(e,t)=>{let n=t.getRootNode();return Ti(n)?n:fa(e)?e:e.ownerDocument},gc=(e,t)=>t.querySelectorAll(sc(e)).length===1,_c=(e,t)=>{let n=e,r=[];for(;n&&n!==t;){let e=n.tagName.toLowerCase(),t=uc(n,e);if(t===void 0)return;r.push({name:fc(e,t),penalty:10}),n=n.parentElement}return gc(r,t)?r:void 0},vc=(e,t,n,r)=>{if(e.nodeType!==Node.ELEMENT_NODE)throw new qi;if(e.tagName.toLowerCase()===`html`)return`html`;let i=hc(t,e),a=Date.now(),o=[],s=e,c=0,l;for(;s&&s!==i&&!l;)if(o.push(pc(s,r)),s=s.parentElement,c++,c>=3){let t=mc(o);t.sort(lc);for(let r of t){if(Date.now()-a>n){let t=_c(e,i);if(!t)throw new Ji(n);return sc(t)}if(gc(r,i)){l=r;break}}}if(!l&&c<3){let e=mc(o);e.sort(lc);for(let t of e){if(Date.now()-a>n)break;if(gc(t,i)){l=t;break}}}if(!l)throw new Yi;return sc(l)};J();let yc=/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i,bc=/:r[a-z0-9]+:/i,xc=/_r_[a-z0-9]+_(?:$|-)/i,Sc=/«r[a-z0-9]+»/i,Cc=/^(?:downshift-\d+(?:-|$)|headlessui-[a-z-]+-\d+(?:-|$)|mui-\d+(?:-|$)|radix-\d+(?:-|$)|react-aria-\d+(?:-|$)|react-select-\d+(?:-|$))/i,wc=/^ember\d+$/i,Tc=/^\d+$/,Ec=e=>e.length>0&&e.length<=120&&!bc.test(e)&&!yc.test(e)&&!xc.test(e)&&!Sc.test(e)&&!Cc.test(e)&&!wc.test(e)&&!Tc.test(e),Dc=new Set([`data-testid`,`data-test-id`,`data-test`,`data-cy`,`data-qa`,`aria-label`,`href`,`src`,`role`,`name`,`title`,`alt`]),Oc=new Set([`button`,`link`,`checkbox`,`radio`,`switch`,`tab`,`menuitem`,`option`,`textbox`,`combobox`,`slider`,`spinbutton`]);J(),Xn(),Ei(),Rn(),gi();let kc=e=>e.ownerDocument.body??e.ownerDocument.documentElement,Ac=e=>e.length>0&&e.length<=120,jc=(e,t)=>Dc.has(e)&&Ac(t)&&(e!==`role`||t.split(/\s+/).some(e=>Oc.has(e))),Mc=(e,t)=>{try{let n=e.getRootNode(),r=(Ti(n)?n:e.ownerDocument).querySelectorAll(t);return r.length===1&&r[0]===e}catch{return!1}},Nc=e=>{let t=e.getAttribute(`id`),n=null;if(t){let r=`#${CSS.escape(t)}`;if(Mc(e,r)){if(Ec(t))return{selector:r,isSemantic:!0};n=r}}for(let t of Dc){let n=e.getAttribute(t);if(!n||!jc(t,n))continue;let r=`[${t}=${JSON.stringify(n)}]`;if(Mc(e,r))return{selector:r,isSemantic:!0};let i=`${e.tagName.toLowerCase()}${r}`;if(Mc(e,i))return{selector:i,isSemantic:!0}}return n?{selector:n,isSemantic:!1}:null},Pc=e=>{let t=[],n=e.getRootNode(),r=Ti(n)?n:kc(e),i=e;for(;i;){let e=i.getAttribute(`id`);if(e){t.unshift(`#${CSS.escape(e)}`);break}let n=i.parentNode;if(!n){t.unshift(i.tagName.toLowerCase());break}let a=Array.from(n.children).indexOf(i)+1;if(t.unshift(`${i.tagName.toLowerCase()}:nth-child(${a})`),n===r){Ln(r)&&t.unshift(r.tagName.toLowerCase());break}i=Ln(n)?n:null}return t.join(` > `)},Fc=e=>{let t=Nc(e);if(t)return t;try{let t=vc(e,kc(e),200,(e,t)=>oc(e,t)||jc(e,t));if(t)return{selector:t,isSemantic:!1}}catch{}return{selector:Pc(e),isSemantic:!1}},Ic=e=>{let t=mi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=Nc(e);if(!n?.isSemantic)return null;let r=e.getRootNode();if(Ti(r)){let e=Ic(r.host);return e?{selector:`${e.selector} >>> ${n.selector}`,isSemantic:!0}:null}let i=Yn(e.ownerDocument.defaultView);if(!i)return n;let a=Ic(i);return a?{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:!0}:null},Lc=e=>{let t=mi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=Fc(e),r=e.getRootNode();if(Ti(r)){let e=Lc(r.host);return{selector:`${e.selector} >>> ${n.selector}`,isSemantic:e.isSemantic&&n.isSemantic}}let i=Yn(e.ownerDocument.defaultView);if(!i)return n;let a=Lc(i);return{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:a.isSemantic&&n.isSemantic}};J(),ha();let Rc=[...Array.from(Dc).filter(e=>e!==`role`).map(e=>`[${e}]`),...Array.from(Oc).map(e=>`[role~="${e}"]`)].join(`,`),zc=[`button`,`input`,`select`,`textarea`].join(`,`),Bc=e=>{let t=e.getAttribute(`id`);return!!(t&&Ec(t)||e.matches(Rc))},Vc=e=>Bc(e)||e.matches(zc),Hc=e=>{let{body:t,documentElement:n}=e.ownerDocument;if(e===t||e===n)return!0;if(!t)return!1;let r=t.getElementsByTagName(`*`).length;return r===0?!1:e.getElementsByTagName(`*`).length/r>=an},Uc=(e,t)=>{let n=e.getRootNode(),r=e;for(;r;){let i=Vc(r),a=i&&Hc(r);if(i){if(a&&r!==e)return e;if(!t||t(r)||a||!Bc(r)&&r===e)return r}let o=ma(r);r=o?.getRootNode()===n?o:null}return e};gi();let Wc=e=>{if(mi(e))return Ic(e);let t=null;return Uc(e,e=>{let n=Ic(e);return n?(t=n,!0):!1}),t},Gc=[/\/assets\/[^/?#]+-[a-z0-9_-]{6,}\.(?:c|m)?js(?:[?#]|$)/,/\/_next\/static\/.*\.(?:c|m)?js(?:[?#]|$)/,/\/static\/chunks\/.*\.(?:c|m)?js(?:[?#]|$)/],Kc=e=>{if(!e)return!1;let t=`/${Ps(e)}`.toLowerCase();return Gc.some(e=>e.test(t))};J();let qc=e=>{if(!e)return!1;let t=`/${Ps(e)}/`.toLowerCase();return tn.some(e=>t.includes(e))},Jc,Yc=(e=!1)=>{let t=new URL(document.baseURI);return Array.from(document.scripts).some(n=>{if(!n.src)return!1;try{let r=new URL(n.src,t);return(e||r.origin===t.origin)&&r.pathname.includes(`/_next/static/`)}catch{return!1}})},Xc=()=>Array.from(document.scripts).some(e=>e.textContent?.includes(`self.__next_f.push`)),Zc=e=>(e&&(Jc=void 0),Jc??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)||Yc()||Xc()&&Yc(!0)),Jc),Qc=e=>e.map(e=>`\n in ${e}`).join(``),$c,el=()=>{if($c!==void 0)return $c;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return $c=n>0?t.slice(0,n):``,$c};di(),J();let tl=[`about://React/`,`rsc://React/`],nl=e=>tl.some(t=>e.startsWith(t)),rl=e=>{for(let t of tl){if(!e.startsWith(t))continue;let n=e.indexOf(`/`,t.length);if(n===-1)continue;let r=n+1,i=e.lastIndexOf(`?`);return Fs(i>r?e.slice(r,i):e.slice(r))}return e},il=e=>{if(typeof e!=`object`||!e||!(`status`in e)||e.status!==`fulfilled`||!(`value`in e)||typeof e.value!=`object`||e.value===null||!(`originalStackFrame`in e.value))return null;let t=e.value.originalStackFrame;return typeof t!=`object`||!t||!(`file`in t)||typeof t.file!=`string`||!t.file||`ignored`in t&&t.ignored?null:{file:t.file,line1:`line1`in t&&typeof t.line1==`number`?t.line1:null,column1:`column1`in t&&typeof t.column1==`number`?t.column1:null}},al=async(e,t)=>{let n=[],r=[];for(let t=0;t<e.length;t++){let i=e[t];!i.isServer||!i.fileName||(n.push(t),r.push({file:rl(i.fileName),methodName:i.functionName??`<unknown>`,line1:i.lineNumber??null,column1:i.columnNumber??null,arguments:[]}))}if(r.length===0)return e;let i=new AbortController,a=setTimeout(()=>i.abort(),nn),o=()=>i.abort();t?.aborted&&i.abort(),t?.addEventListener(`abort`,o);try{let t=await fetch(`${el()}/__nextjs_original-stack-frames`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({frames:r,isServer:!0,isEdgeServer:!1,isAppDirectory:!0}),priority:`high`,signal:i.signal});if(!t.ok)return e;let a=await t.json();if(!Array.isArray(a))return e;let o=[...e];for(let t=0;t<n.length;t++){let r=il(a[t]);if(!r)continue;let i=n[t];o[i]={...e[i],fileName:r.file,lineNumber:r.line1??void 0,columnNumber:r.column1??void 0,isSymbolicated:!0}}return o}catch{return e}finally{clearTimeout(a),t?.removeEventListener(`abort`,o)}},ol=e=>{let t=new Map;return Tr(e,e=>{if(!So(e))return!1;let n=Fo(e._debugStack.stack);if(!n)return!1;for(let e of za(n))!e.functionName||!e.fileName||nl(e.fileName)&&(t.has(e.functionName)||t.set(e.functionName,{...e,isServer:!0}));return!1},!0),t},sl=(e,t)=>{if(!t.some(e=>e.isServer&&!e.fileName&&e.functionName))return t;let n=ol(e);return n.size===0?t:t.map(e=>{if(!e.isServer||e.fileName||!e.functionName)return e;let t=n.get(e.functionName);return t?{...e,fileName:t.fileName,lineNumber:t.lineNumber,columnNumber:t.columnNumber}:e})};J();let cl=0,ll=[],ul=e=>e?.aborted?Promise.resolve(!1):cl<3?(cl+=1,Promise.resolve(!0)):new Promise(t=>{let n={abortSignal:e,resolve:t};e&&(n.handleAbort=()=>{let e=ll.indexOf(n);e!==-1&&(ll.splice(e,1),t(!1))},e.addEventListener(`abort`,n.handleAbort,{once:!0})),ll.push(n)}),dl=()=>{let e=ll.shift();if(e){e.abortSignal&&e.handleAbort&&e.abortSignal.removeEventListener(`abort`,e.handleAbort),e.resolve(!0);return}--cl},fl=async(e,t,n=rn,r)=>{if(!await ul(r))return t;let i=new AbortController,a,o=new Promise(e=>{a=setTimeout(()=>{i.abort(),e(t)},n)}),s,c=new Promise(e=>{r&&(s=()=>{i.abort(),e(t)},r.aborted?s():r.addEventListener(`abort`,s,{once:!0}))});try{let t=e(i.signal);return t.catch(()=>{}),await Promise.race([t,o,c])}finally{clearTimeout(a),s&&r?.removeEventListener(`abort`,s),dl()}},pl=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),ml=e=>pl(e).replace(/"/g,`&quot;`).replace(/\r/g,`&#13;`).replace(/\n/g,`&#10;`).replace(/\t/g,`&#9;`),hl=(e,t)=>{if(e.length<=t)return e;let n=Math.max(0,t-3),r=e.slice(0,n),i=r.lastIndexOf(`&`);return`${i>r.lastIndexOf(`;`)?r.slice(0,i):r}...`.slice(0,t)},gl=e=>e.startsWith(`data-react-grab-`);J(),Rn();let _l=e=>e.replace(/\s+/g,` `).trim(),vl=e=>{let t=[];for(let n of e.childNodes){if(n.nodeType!==Node.TEXT_NODE)continue;let e=_l(n.textContent??``);e&&t.push(e)}return t.join(` `)},yl=e=>e.getAttribute(`aria-hidden`)===`true`||e.hasAttribute(`hidden`)?!0:bn.has(e.tagName.toLowerCase()),bl=(e,t,n)=>{if(e.nodeType===Node.TEXT_NODE){let r=_l(e.textContent??``);return r?(t.push(r),n-r.length):n}if(!Ln(e)||yl(e))return n;for(let r of e.childNodes)if(n=bl(r,t,n),n<=0)break;return n},xl=(e,t)=>{if(yl(e))return``;let n=vl(e);if(!yn.has(t)||n&&e.children.length===0)return n;let r=[];return bl(e,r,100),r.join(` `)};J(),$i(),Rn(),Bn(),gi();let Sl=(e,t,n)=>`${e}="${hl(ml(t),n)}"`,Cl=e=>{let t=[];for(let n of _n){if(t.length>=8)break;let r=e.getAttribute(n);if(!r)continue;let i=n===`class`?15:120;t.push(Sl(n,r,i))}return t},wl=e=>{let t=Cl(e);return t.length>0?` ${t.join(` `)}`:``},Tl=e=>e===`class`||e===`className`||e===`style`,El=e=>{let t=Cl(e).map(e=>` ${e}`),n=[],r=[];for(let{name:t,value:i}of e.attributes)gl(t)||_n.includes(t)||Tl(t)||(vn.has(t)?n.push(i?` ${Sl(t,i,120)}`:` ${t}`):i&&r.push(` ${Sl(t,i,15)}`));return[...t,...n,...r].slice(0,8).join(``)},Dl=e=>e.length===0?``:e.length<=2?e.map(e=>`<${Qi(e)} ...>`).join(`
21
- `):`(${e.length} elements)`,Ol=e=>{let t=mi(e);if(t)return t.getPreview();let n=Qi(e);if(!zn(e)){let t=wl(e),r=hl(pl(xl(e,n)),100);return r?`<${n}${t}>${r}</${n}>`:`<${n}${t} />`}let r=El(e),i=hl(pl(xl(e,n)),100);return i?`<${n}${r}>${i}</${n}>`:`<${n}${r} />`},kl=e=>{let t=mi(e);if(t)return t.getPreview();let n=Qi(e),r=El(e),i=xl(e,n),a=[],o=[],s=!1;for(let t of e.childNodes)t.nodeType!==Node.COMMENT_NODE&&(t.nodeType===Node.TEXT_NODE?t.textContent&&t.textContent.trim().length>0&&(s=!0):Ln(t)&&(s?o.push(t):a.push(t)));let c=i.length>0&&yn.has(n),l=``,u=Dl(a);u&&!c&&(l+=`\n ${u}`),i&&(l+=`\n ${hl(pl(i),100)}`);let d=Dl(o);return d&&!c&&(l+=`\n ${d}`),l.length>0?`<${n}${r}>${l}\n</${n}>`:`<${n}${r} />`},Al=new Set([`_`,`$`,`motion.`,`styled.`,`chakra.`,`ark.`,`Primitive.`,`Slot.`]),jl=new Set(`AppRouter.AppRouterAnnouncer.AppDevOverlay.AppDevOverlayErrorBoundary.ClientPageRoot.ClientSegmentRoot.DevRootHTTPAccessFallbackBoundary.ErrorBoundary.ErrorBoundaryHandler.GracefulDegradeBoundary.HTTPAccessErrorFallback.HTTPAccessFallbackBoundary.HTTPAccessFallbackErrorBoundary.HandleRedirect.Head.HistoryUpdater.HotReload.InnerLayoutRouter.InnerScrollAndFocusHandler.InnerScrollAndFocusHandlerOld.InnerScrollAndMaybeFocusHandler.InnerScrollHandlerNew.LinkComponent.LoadableComponent.LoadingBoundary.LoadingBoundaryProvider.NotAllowedRootHTTPFallbackError.OfflineProvider.OuterLayoutRouter.RedirectBoundary.RedirectErrorBoundary.RenderFromTemplateContext.RenderValidationBoundaryAtThisLevel.ReplaySsrOnlyErrors.RootErrorBoundary.RootLevelDevOverlayElement.Router.ScrollAndFocusHandler.ScrollAndMaybeFocusHandler.SegmentBoundaryTrigger.SegmentBoundaryTriggerNode.SegmentStateProvider.SegmentTrieNode.SegmentViewNode.SegmentViewStateNode.ServerRoot.body.html`.split(`.`)),Ml=new Set([`<anonymous>`,`<unknown>`,`Anonymous`,`Unknown`]),Nl=new Set([`Suspense`,`Fragment`,`StrictMode`,`Profiler`,`SuspenseList`]),Pl=new Set([`MotionDOMComponent`,`Slot`,`SlotClone`]),Fl=[`.Consumer`,`.Context`,`.Provider`,`.Slot`,`.SlotClone`,`.Slottable`,`ProviderProvider`],Il=(e,t=!1)=>{if(Ml.has(e)||t&&jl.has(e)||Nl.has(e)||Pl.has(e))return!0;for(let t of Fl)if(e.endsWith(t))return!0;for(let t of Al)if(e.startsWith(t))return!0;return!1},Ll=(e,t=!1)=>!(!e||Il(e,t)),Rl=(e,t)=>e||t.isSemantic,zl=e=>{let t=e.alternate,n=e._debugOwner,r=e._debugSource,i=e._debugStack;return{matches:a=>(a===e||a===t||a.alternate===e)&&a._debugOwner===n&&a._debugSource===r&&a._debugStack===i}},Bl=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e;J();let Vl=e=>JSON.stringify(Bl(e,120)),Hl=(e,t,n)=>{e.get(t)===n&&e.delete(t)};J();let Ul=async(e,t)=>{for(let n=0;n<2;n+=1){let r=e();if(!r)return t();let i=await r.valuePromise;if(r.isCurrent()||n===1)return i}return t()};di(),J(),Ei(),gi();let Wl=(e,t)=>!(e.length<=1||Il(e,t)||e[0]!==e[0].toUpperCase()),Gl=(e,t)=>e&&Wl(e,t)?e:null,Kl=e=>!qc(e)&&!Kc(e),ql=e=>{if(!zr())return e;let t=e;for(;t?.ownerDocument===e.ownerDocument;){if(hi(t))return t;if(t.parentElement){t=t.parentElement;continue}let e=t.getRootNode();t=Ti(e)?e.host:null}return e},Jl=e=>{let t=e.return?.child??null;for(;t;){if(t!==e&&t.key!==null)return!0;t=t.sibling}return!1},Yl=e=>{let t=e,n=0;for(;t;){if(t.key!==null&&Jl(t))return String(t.key);if(Ar(t)&&(n+=1,n===2))break;t=t.return}return null},Xl=e=>{if(!zr())return null;let t=hi(ql(e));return Yl(t?Vr(t):null)},Zl=new WeakMap,Ql=new WeakMap,$l=e=>{let t=ql(e),n=hi(t);if(!n)return null;let r=Vr(n);return{element:t,fiber:r,revision:zl(r)}},eu=(e,t)=>{let n=$l(e);return!!(n&&n.element===t.element&&t.revision.matches(n.fiber))},tu=(e,t,n)=>Ul(()=>{let t=$l(e);return t?{isCurrent:()=>eu(e,t),valuePromise:n(t)}:null},t),nu=e=>t=>fetch(t,{signal:e,priority:`high`}),ru=(e,t)=>fl(async t=>{try{let n=await Ko(e,!0,nu(t));return Zc()?await al(sl(e,n),t):n}catch{return null}},null,void 0,t),iu=e=>{if(!zr())return Promise.resolve([]);let t=Zl.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=ru(e.fiber,n.signal);if(!eu(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return Zl.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t===null&&Hl(Zl,e.element,i)}),i.promise},au=e=>zr()?tu(e,()=>null,iu):Promise.resolve([]),ou=async e=>{if(!zr())return null;let t=Zc(),n=Gl(mi(e)?mu(e):null,t);if(n)return n;let r=await au(e);if(!r)return null;for(let e of r){let n=Gl(e.functionName,t);if(n)return n}return null},su=e=>e[0]??null,cu=(e,t)=>!e||!Ar(e)?null:Gl(Rr(e.type),t),lu=(e,t)=>fl(async t=>{try{let n=await Xo(e,!0,nu(t));if(!n?.fileName)return null;let r=Zc();return{filePath:Ps(n.fileName),lineNumber:n.lineNumber??null,columnNumber:n.columnNumber??null,componentName:Gl(n.functionName,r)??cu(e._debugOwner,r),origin:rc(n.fileName).origin}}catch{return null}},null,void 0,t),uu=e=>{let t=Ql.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=lu(e.fiber,n.signal);if(!eu(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return Ql.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t||Hl(Ql,e.element,i)}),i.promise},du=async e=>{let[t,n]=await Promise.all([uu(e),iu(e)]);return{fiber:e.fiber,fiberSource:t,stack:n}},fu=(e,t)=>{let n=Zc(),r=(e,t)=>{let r=su(e);return r?.fileName?{filePath:Ps(r.fileName),lineNumber:r.lineNumber??null,columnNumber:r.columnNumber??null,componentName:Gl(r.functionName,n),origin:t}:null},i=t.filter(e=>rc(e.fileName).origin===`app`),a=i.filter(e=>Kl(e.fileName));return e?.origin===`app`&&Kl(e.filePath)?e:r(a,`app`)||(e?.origin===`app`&&!Kc(e.filePath)?e:r(i,`app`)||(e?.origin===`app`||e?.origin===`package`?e:r(t.filter(e=>rc(e.fileName).origin===`package`),`package`)))},pu=async e=>tu(e,()=>null,async e=>{let t=await uu(e);return t?.origin===`app`&&Kl(t.filePath)?t:fu(t,await iu(e)??[])}),mu=e=>hu(ql(e),1)[0]??null,hu=(e,t,n=()=>!0)=>{if(!zr())return[];let r=hi(e);if(!r)return[];let i=Zc(),a=[];return Tr(Vr(r),e=>{if(a.length>=t)return!0;if(Ar(e)){let t=Rr(e.type);t&&Ll(t,i)&&n(t)&&a.push(t)}return!1},!0),a},gu=[`/src/app/`,`/src/pages/`,`/app/`,`/pages/`],_u=(e,t)=>{let n=Ps(e);if(!t||!n.startsWith(`/`))return n;for(let e of gu){let t=n.indexOf(e);if(t!==-1)return`/./${n.slice(t+1)}`}return n},vu=(e,t)=>{let n=_u(e.filePath,t),r=t&&e.lineNumber?`${n}:${e.lineNumber}${e.columnNumber?`:${e.columnNumber}`:``}`:n;return e.componentName?`\n in ${e.componentName} (at ${r})`:`\n in ${r}`},yu={isAppSource:!1,consumesBudget:!1},bu=(e,t,n,r)=>{let i=t.packageName,a=t.origin===`app`?e.fileName:null;if(e.isServer&&!a&&(n||!e.functionName)){let e=i?`${i} at Server`:`at Server`;return{text:`\n in ${n??`<anonymous>`} (${e})`,...yu}}return!a&&n?{text:i?`\n in ${n} (${i})`:`\n in ${n}`,...yu}:i?{text:`\n in ${i}`,...yu}:a?{text:vu({componentName:n,filePath:a,lineNumber:e.lineNumber??null,columnNumber:e.columnNumber??null},r),isAppSource:!0,consumesBudget:Kl(a)}:null},xu=(e,t={},n=null)=>{let r=Ms(t.maxLines),i=Math.max(r,20),a=Zc(),o=[],s=new Set,c=null,l=!1,u=!1,d=!1,f=0,p=e=>{e&&s.add(e)};if(n){let e=n.origin===`app`&&Kl(n.filePath);u=e,e&&(f+=1),p(n.componentName),o.push(vu(n,a))}for(let t of e){if(!r||o.length>=i)break;let e=rc(t.fileName),s=Gl(t.functionName,a),m=e.packageName?`${e.packageName}:${s??``}:${t.isServer?`server`:`client`}`:null;if(m&&m===c)continue;if(!l&&s&&s===n?.componentName){l=!0;continue}let h=bu(t,e,s,a);h!==null&&(h.consumesBudget&&f>=r||h.text!==o[o.length-1]&&(h.isAppSource&&h.consumesBudget&&(u=!0),h.consumesBudget&&(f+=1,d=!0),p(s),o.push(h.text),c=m))}return{text:o.join(``),shouldAppendSelectorHint:!u,hasBudgetedStackFrame:d,renderedComponentNames:s,remainingHardLineCapacity:Math.max(0,i-o.length)}},Su=(e,t)=>{let n=fu(e,t);return n?.origin===`app`?n:null},Cu=(e,t,n)=>{let r=Math.min(n,t.remainingHardLineCapacity);if(r===0)return t;let i=Zc(),a=hu(ql(e),r,e=>Wl(e,i)&&!t.renderedComponentNames.has(e));return a.length===0?t:{...t,text:`${t.text}${Qc(a)}`,remainingHardLineCapacity:t.remainingHardLineCapacity-a.length}},wu=(e,t,n)=>{let r=n.stack??[],i=Su(n.fiberSource,r),a=Ms(t.maxLines),o=xu(r,t,i);if(o.text)return o.hasBudgetedStackFrame?o:Cu(e,o,a);let s=hu(ql(e),a),c=Math.max(a,20);return{text:Qc(s),shouldAppendSelectorHint:!0,hasBudgetedStackFrame:!1,renderedComponentNames:new Set(s),remainingHardLineCapacity:Math.max(0,c-s.length)}},Tu=(e,t={})=>tu(e,()=>wu(e,t,{fiber:null,fiberSource:null,stack:[]}),async n=>wu(e,t,await du(n))),Eu=async(e,t={})=>(await Tu(e,t)).text,Du=(e,t)=>{let n=Xl(e),r=n===null?``:`\n key: ${Vl(n)}`,i=t.shouldAppendSelectorHint?Lc(Uc(e)):Wc(e),a=i&&Rl(t.shouldAppendSelectorHint,i)?i.selector:null,o=a?`\n selector: ${a}`:``;return{selector:a,text:`${t.text}${r}${o}`}},Ou=async(e,t={})=>{let n=ql(e);return`${kl(n)}${Du(n,await Tu(n,t)).text}`},ku=(e,t,n)=>{let r=t.stack??[],i=fu(t.fiberSource,r);return{componentName:mu(e),fiber:t.fiber,source:i,stack:r,stackContext:n.text}},Au=(e,t,n)=>{let r=wu(e,t,n),i=Du(e,r);return{...ku(e,n,r),referenceContext:`${Ol(e)}${i.text.replace(/\n\s+/g,` `)}`}},ju=(e,t,n)=>tu(e,()=>n(e,t,{fiber:null,fiberSource:null,stack:[]}),async r=>n(e,t,await du(r))),Mu=(e,t={})=>ju(e,t,Au);B();let Nu=e=>{let[t,n]=c(void 0),r=0;return d(_(e,e=>{let t=++r;if(!e){n(void 0);return}let i=mu(e)??void 0;n(i),ou(e).then(e=>{r===t&&n(e??i)}).catch(()=>{r===t&&n(i)})})),[t,n]};var Pu,Fu,Iu,Lu,Ru,zu,Bu=n((()=>{Pu=typeof window<`u`,Fu=e=>0,Iu=e=>{},Lu=Pu?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Fu,Ru=Pu?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):Iu,zu=()=>Pu?new Promise(e=>Lu(()=>e())):Promise.resolve()}));Bu();let Vu=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,Hu=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),Uu=(e,t,n,r=1)=>{let i=Hu(e),a=Hu(t),o=Hu(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${Hu(r*255)}`},Wu=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},Gu=e=>{let t=e.match(Vu);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return Uu(Number(t[1]),Number(t[2]),Number(t[3]),n)},Ku=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,qu=e=>{let t=e.match(Ku);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},Ju=`rgba(0, 0, 0, 0)`,Yu=`#00000000`,Xu=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,Zu=180/Math.PI,Qu=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),$u=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*Zu:t===`turn`?n*360:n},ed=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},td=e=>{let t=e.match(Xu);if(!t)return null;let n=Qu(t[1],1),r=Qu(t[2],.4),i=$u(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:Qu(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return Uu(ed(m),ed(h),ed(g),Math.max(0,Math.min(1,a)))},nd=null,rd=()=>nd||(typeof document>`u`?null:(nd=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),nd)),id=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?Yu:Uu(n[0],n[1],n[2],n[3]/255)},ad=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return Yu;let n=qu(t);if(n)return n;let r=td(t);if(r)return r;let i=rd();if(!i)return null;i.fillStyle=Ju,i.fillStyle=t;let a=i.fillStyle;return typeof a==`string`?a.toLowerCase()===Ju?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?Yu:null:a.startsWith(`#`)&&a.length===7?a:a.startsWith(`rgb`)?Gu(a):id(i,t):null};J();let od=[`data-theme`,`data-mode`,`data-color-scheme`,`data-bs-theme`,`data-mui-color-scheme`,`data-mantine-color-scheme`],sd=[{attribute:`data-dark`,theme:`dark`},{attribute:`data-light`,theme:`light`}],cd=(e,t,n)=>{let[r,i,a]=[e,t,n].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*i+.0722*a},ld=(e,t=0)=>{let n=ad(e),r=n?Wu(n):null;return!r||r.alpha<=t?null:cd(r.red,r.green,r.blue)},ud=e=>{let t=ld(e);return t===null?null:t<.18?`dark`:`light`},dd=e=>ud(getComputedStyle(e).backgroundColor),fd=()=>{let e=ld(getComputedStyle(document.documentElement).color,Tn);return e===null?null:e>.6?`dark`:null},pd=()=>{let e=document.createElement(`div`);e.style.cssText=`position:fixed;width:0;height:0;background-color:Canvas!important`,document.documentElement.appendChild(e);let t=ud(getComputedStyle(e).backgroundColor);return e.remove(),t},md=e=>{let t=e.toLowerCase();return t===`dark`?`dark`:t===`light`?`light`:null},hd=e=>{let t=e.style.colorScheme||getComputedStyle(e).colorScheme;return t?t.trim().toLowerCase().split(/\s+/):[]},gd=e=>{let t=hd(e),n=t.includes(`dark`);return n===t.includes(`light`)?null:n?`dark`:`light`},_d=e=>{if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;for(let t of od){let n=e.getAttribute(t);if(!n)continue;let r=md(n);if(r)return r}for(let{attribute:t,theme:n}of sd)if(e.hasAttribute(t))return n;return null},vd=(e,t)=>{for(let n of e){if(!n)continue;let e=t(n);if(e)return e}return null},yd=()=>{let e=[document.documentElement,document.body],t=[document.body,document.documentElement];return vd(e,_d)??vd(e,gd)??vd(t,dd)??fd()??pd()??`light`},bd=e=>e===`dark`?`light`:`dark`,xd=()=>{let e=[];for(let t of[document.documentElement,document.body]){if(!t)continue;e.push(t.className);for(let n of od)e.push(t.getAttribute(n)??``);for(let{attribute:n}of sd)e.push(t.hasAttribute(n)?`1`:``);let n=t.style;e.push(n.colorScheme,n.backgroundColor,n.color);for(let t=0;t<n.length;t++){let r=n[t];r.startsWith(`--`)&&e.push(`${r}:${n.getPropertyValue(r)}`)}}return e.join(`|`)},Sd={attributes:!0,attributeFilter:[`class`,`style`,...od,...sd.map(({attribute:e})=>e)]},Cd=(e,t)=>{let n=null,r=null,i=null,a=i=>{if(i===r&&n!==null)return getComputedStyle(document.body??document.documentElement).backgroundColor,n;r=i;let a=bd(yd());return a!==n&&(n=a,e.setAttribute(`data-rg-theme`,a),t?.(a)),a},o=()=>a(xd()),s=()=>{i!==null&&(Ru(i),i=null)},c=()=>{i===null&&(i=Lu(()=>{i=null,o()}))},l=o(),u=()=>{let e=xd();if(e===r){c();return}s(),a(e)},d=new MutationObserver(u);d.observe(document.documentElement,Sd);let f=null;document.body?d.observe(document.body,Sd):(f=new MutationObserver((e,t)=>{document.body&&(t.disconnect(),f=null,d.observe(document.body,Sd),u())}),f.observe(document.documentElement,{childList:!0}));let p=()=>{r=null,c()},m=window.matchMedia(`(prefers-color-scheme: dark)`);return m.addEventListener(`change`,p),{theme:l,cleanup:()=>{f?.disconnect(),d.disconnect(),m.removeEventListener(`change`,p),s()}}},wd=()=>{},Td=()=>({activate:wd,deactivate:wd,toggle:wd,comment:wd,isActive:()=>!1,isEnabled:()=>!1,setEnabled:wd,getToolbarState:()=>null,setToolbarState:wd,onToolbarStateChange:()=>wd,reset:wd,dispose:wd,copyElement:()=>Promise.resolve(!1),getSource:()=>Promise.resolve(null),getStackContext:()=>Promise.resolve(``),getState:()=>({isActive:!1,isDragging:!1,isCopying:!1,isPromptMode:!1,isSelectionBoxVisible:!1,isDragBoxVisible:!1,targetElement:null,dragBounds:null,grabbedBoxes:[],labelInstances:[],selectionFilePath:null,toolbarState:null}),setOptions:wd,registerPlugin:wd,unregisterPlugin:wd,getPlugins:()=>[],getDisplayName:()=>null}),Ed=()=>{let e=new AbortController;return{signal:e.signal,abort:()=>e.abort(),addWindowListener:(t,n,r={})=>{window.addEventListener(t,n,{...r,signal:e.signal})},addDocumentListener:(t,n,r={})=>{document.addEventListener(t,n,{...r,signal:e.signal})}}};J(),xa();let Dd=(e,t)=>{let n=t?.componentName??`div`,r={version:Yt,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${pl(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},Od=(e,t=`Unknown error`)=>e instanceof Error&&e.message?e.message:t,kd=e=>e instanceof Error?e:Error(String(e)),Ad=Symbol(`aborted-promise-result`),jd=async(e,t)=>{if(!t)return e;if(t.aborted)return Ad;let n=()=>{},r=new Promise(e=>{n=()=>e(Ad)});t.addEventListener(`abort`,n,{once:!0});try{return await Promise.race([e,r])}finally{t.removeEventListener(`abort`,n)}};$i();let Md={status:`cancelled`},Nd=e=>({functionName:e.functionName,fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,isServer:e.isServer,isSymbolicated:e.isSymbolicated}),Pd=async(e,t)=>{let n=await Mu(e,{maxLines:t});return{tagName:Qi(e),componentName:n.componentName??n.source?.componentName??void 0,content:`[${n.referenceContext}]`,source:n.source,stackContext:n.stackContext,frames:n.stack.map(Nd)}},Fd=async(e,t)=>{let n=[...new Set(e)],r=await Promise.all(n.map(e=>Pd(e,t)));return r.length>0?{content:r.map(e=>e.content).join(`
22
- `),entries:r}:null},Id=(e,t,n)=>{if(e?.entries)return t===e.content?e.entries:e.entries.length===1?[{...e.entries[0],content:t,commentText:n}]:e.entries.map(e=>({...e,commentText:n}))},Ld=async(e,t,n,r)=>{if(e.signal?.aborted||await jd(t.onBeforeCopy(n),e.signal)===Ad)return Md;let i=!1,a=!1,o=``;try{let s=await jd(e.getContent?Promise.resolve(e.getContent(n)).then(e=>({content:e})):Fd(n,e.maxContextLines),e.signal);if(s===Ad)return Md;let c=s?.content;if(c?.trim()){let l=await jd(t.transformCopyContent(c,n),e.signal);if(l===Ad)return Md;o=r?`${r}\n${l}`:l,o.trim()&&(a=!0,i=Dd(o,{componentName:e.componentName,entries:Id(s,o,r)}))}}catch(n){if(!a&&e.signal?.aborted)return Md;t.onCopyError(kd(n))}return!a&&e.signal?.aborted?Md:(i&&t.onCopySuccess(n,o),t.onAfterCopy(n,i),{status:i?`succeeded`:`failed`})};var Rd,zd=n((()=>{Rd=e=>{try{return e.contentDocument}catch{return null}}})),Bd,Vd=n((()=>{Kn(),Jn(),Bd=(e,t,n)=>{let r=e.getBoundingClientRect(),i=Gn(e),a=qn(r.width,i.width),o=qn(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}}})),Hd,Ud,Wd=n((()=>{Vd(),zd(),Hn(),Hd=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(Vn(r)){let e=Rd(r);if(!e)return r;let i=Bd(r,t,n);return Hd(e,i.x,i.y)??r}return r}return null},Ud=(e,t)=>Hd(document,e,t)})),Gd,Kd=n((()=>{J(),ha(),Gd=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=ma(t)}return!1}})),qd,Jd,Yd,Xd,Zd=n((()=>{er(),qd=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,Jd={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},Yd={checkVisibilityCSS:!0,visibilityProperty:!0},Xd=(e,t)=>{if(qd&&!t)return e.checkVisibility(Jd)?!0:e.checkVisibility(Yd)?$n(e).opacity!==`0`:!1;let n=t??$n(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`}})),Qd,$d=n((()=>{$i(),Qd=e=>{let t=Qi(e);return t===`html`||t===`body`}})),ef,tf,nf=n((()=>{ef=[`data-react-grab`,`data-react-grab-demo`],tf=e=>ef.some(t=>e.hasAttribute(t))})),rf,af=n((()=>{nf(),Ei(),rf=e=>{if(tf(e))return!0;let t=e.getRootNode();return Ti(t)&&tf(t.host)}})),of,sf,cf,lf,uf,df,ff=n((()=>{J(),Zd(),$d(),er(),af(),Kd(),gi(),of=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},sf=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},cf=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(sf(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3},lf=new WeakMap,uf=()=>{lf=new WeakMap},df=e=>{let t=mi(e);if(t)return t.isConnected();if(Qd(e)||rf(e)||Gd(e))return!1;let n=performance.now(),r=lf.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!Xd(e))return lf.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=$n(e);if(of(t)||cf(t))return!1}return lf.set(e,{isVisible:!0,timestamp:n}),!0}})),pf,mf,hf=n((()=>{Vd(),zd(),Hn(),Kd(),ff(),xa(),pf=(e,t,n)=>{let r=!0;for(let i of e.elementsFromPoint(t,n)){if(Gd(i)&&(r=!1),!ya(i))continue;let a=i.shadowRoot;if(r&&a&&a!==e){let e=pf(a,t,n);if(e)return e}if(r&&Vn(i)){let e=Rd(i);if(e){let r=Bd(i,t,n),a=pf(e,r.x,r.y);if(a)return a}}if(df(i))return i}return null},mf=(e,t)=>pf(document,e,t)})),gf,_f,vf=n((()=>{Vd(),zd(),Hn(),Kd(),gf=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(Gd(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&gf(o.shadowRoot,t,n,r),a&&Vn(o)){let e=Rd(o);if(e){let i=Bd(o,t,n);gf(e,i.x,i.y,r)}}r.add(o)}},_f=(e,t)=>{let n=new Set;return gf(document,e,t,n),[...n]}})),yf,bf=n((()=>{yf=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom})),xf,Sf=n((()=>{ca(),da(),xf=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=sa(n);return i&&(r.nonce=i),ua(r),r.textContent=t,n.head.appendChild(r),r}})),Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If=n((()=>{J(),Sf(),Cf=`html { pointer-events: none !important; }
23
- iframe[${wn}] { pointer-events: auto !important; }`,wf=`html, body { pointer-events: auto !important; }`,Tf=new Set,Ef=new Map,Df=!1,Of=e=>{if(Ef.has(e))return;let t=xf(`data-react-grab-frozen-pseudo`,Cf,e),n=xf(`data-react-grab-hittest-override`,wf,e);n.disabled=!0,Ef.set(e,{pointerEventsStyle:t,hitTestOverrideStyle:n})},kf=e=>{let t=Ef.get(e);t&&(t.pointerEventsStyle.remove(),t.hitTestOverrideStyle.remove(),Ef.delete(e))},Af=()=>Df,jf=e=>(Tf.add(e),Df&&Of(e),()=>{Tf.delete(e),kf(e)}),Mf=()=>{if(!Df){Df=!0,Tf.add(document);for(let e of Tf)Of(e)}},Nf=()=>{if(Df){Df=!1;for(let e of[...Ef.keys()])kf(e)}},Pf=()=>{if(Df)for(let e of Ef.values())e.pointerEventsStyle.disabled||(e.pointerEventsStyle.disabled=!0),e.hitTestOverrideStyle.disabled&&(e.hitTestOverrideStyle.disabled=!1)},Ff=()=>{if(Df)for(let e of Ef.values())e.pointerEventsStyle.disabled&&(e.pointerEventsStyle.disabled=!1),e.hitTestOverrideStyle.disabled||(e.hitTestOverrideStyle.disabled=!0)}})),Lf,Rf=n((()=>{Lf=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)}})),zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf=n((()=>{xa(),Rf(),zf=new Set,Bf=new Set,Vf=!1,Hf=(e,t)=>{if(Bf.has(e))try{e.unfreeze()}catch(e){t.push(e)}finally{Bf.delete(e)}},Uf=e=>{zf.add(e);try{Vf&&e.isConnected()&&(e.freeze(),Bf.add(e))}catch(t){throw zf.delete(e),t}return()=>{let t=[];Hf(e,t),zf.delete(e),Lf(t,`Unregistering renderer freeze failed`)}},Wf=()=>{if(!Vf){Vf=!0;try{for(let e of zf)e.isConnected()&&(e.freeze(),Bf.add(e))}catch(e){Vf=!1;let t=[];for(let e of[...Bf].reverse())Hf(e,t);throw t.length===0?e:AggregateError([e,...t],`Rolling back renderer freeze failed`)}}},Gf=()=>{if(!Vf)return;Vf=!1;let e=[];for(let t of[...Bf].reverse())Hf(t,e);Lf(e,`Unfreezing renderers failed`)}})),qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp=n((()=>{di(),J(),xi(),Kf(),gi(),qf=new WeakMap,Jf=new WeakMap,Yf=new WeakMap,Xf=new WeakMap,Zf=[`name`,`position`,`rotation`,`scale`,`color`,`visible`,`args`],Qf=e=>typeof e==`object`&&!!e,$f=e=>typeof e==`object`&&!!e||typeof e==`function`,ep=(e,t)=>typeof e[t]==`function`,tp=e=>Qf(e)&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.z==`number`&&ep(e,`set`)&&ep(e,`clone`)&&ep(e,`applyMatrix4`)&&ep(e,`project`),np=e=>Qf(e)&&ep(e,`clone`)&&ep(e,`premultiply`),rp=e=>Qf(e)&&`boundingBox`in e&&ep(e,`computeBoundingBox`),ip=e=>Qf(e)&&typeof e.type==`string`&&Qf(e.props)&&ap(e.object),ap=e=>Qf(e)&&e.isObject3D===!0&&typeof e.uuid==`string`&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.visible==`boolean`&&np(e.matrixWorld)&&ep(e,`updateWorldMatrix`),op=e=>Qf(e)&&e.isCamera===!0,sp=e=>ap(e)&&e.isScene===!0&&Array.isArray(e.children),cp=e=>Qf(e)&&typeof e.tagName==`string`&&e.tagName.toLowerCase()===`canvas`&&ep(e,`getContext`),lp=e=>Qf(e)&&cp(e.domElement),up=e=>Qf(e)&&ep(e,`set`),dp=e=>Qf(e)&&ep(e,`setFromCamera`)&&ep(e,`intersectObjects`),fp=e=>Qf(e)&&lp(e.gl)&&sp(e.scene)&&op(e.camera)&&dp(e.raycaster)&&up(e.pointer),pp=e=>e===`always`||e===`demand`||e===`never`,mp=e=>Qf(e)&&typeof e.elapsedTime==`number`,hp=(e,t)=>{let n=e.getState();if(typeof n.setFrameloop!=`function`)return;let r=mp(n.clock)?n.clock.elapsedTime:null;n.setFrameloop(t);let i=e.getState().clock;r!==null&&mp(i)&&(i.elapsedTime=r)},gp=e=>{if(Yf.has(e))return;let t=null,n=Uf({freeze:()=>{let n=Jf.get(e);if(!n)return;let r=n.getState();if(pp(r.frameloop)&&typeof r.setFrameloop==`function`){let e=r.frameloop;hp(n,`never`),t=()=>hp(n,e)}},isConnected:()=>e.isConnected,unfreeze:()=>{t?.(),t=null}});Yf.set(e,n)},_p=e=>{let t=Yf.get(e);t&&(Yf.delete(e),t())},vp=e=>ip(e.__r3f)?e.__r3f:null,yp=e=>{let t=e.current.stateNode;if(!Qf(t)||!$f(t.containerInfo))return null;let n=t.containerInfo,r=Reflect.get(n,`getState`);if(typeof r!=`function`)return null;let i=Reflect.apply(r,n,[]);return fp(i)?()=>{let e=Reflect.apply(r,n,[]);return fp(e)?e:i}:null},bp=e=>{let t=Xf.get(e);t&&(Xf.delete(e),Jf.get(t.canvas)===t.root&&(Jf.delete(t.canvas),_p(t.canvas)))},xp=e=>{let t=yp(e);if(!t){bp(e);return}let n=t().gl.domElement;if(!n.isConnected||!e.current.child){bp(e);return}let r=Xf.get(e);r&&r.canvas!==n&&(bp(e),r=void 0),r?r.root.getState=t:(r={canvas:n,root:{getState:t}},Xf.set(e,r)),Jf.set(n,r.root),gp(n)},oi({name:`react-grab-three-selection`,onCommitFiberRoot:(e,t)=>xp(t)}),Sp=e=>{let t=e;for(;t;){if(vp(t))return t;t=t.parent}return null},Cp=e=>{let t=e;for(;t;){let e=vp(t);if(e&&typeof e.eventCount==`number`&&e.eventCount>0)return!0;t=t.parent}return!1},wp=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1},Tp=(e,t,n)=>{let r=typeof n.instanceId==`number`&&Number.isInteger(n.instanceId)?n.instanceId:null,i=qf.get(t);i||(i=new Map,qf.set(t,i));let a=i.get(r);if(a)return a.canvas=e.gl.domElement,a.intersectionPoint=tp(n.point)?n.point:null,a.object=t,a.rootState=e,a.element;let o=vp(t),s=o?li(o):null;if(o&&!s)return null;let c=(o?.type||t.type||`object-3d`).toLowerCase(),l=e.gl.domElement.ownerDocument.createElement(c),u={canvas:e.gl.domElement,element:l,fiber:s,instance:o,instanceId:r,intersectionPoint:tp(n.point)?n.point:null,object:t,rootState:e,tagName:c},d=l.getBoundingClientRect.bind(l);return l.getBoundingClientRect=()=>{let e=Np(u),t=l.ownerDocument.defaultView?.DOMRect;return t?new t(e.x,e.y,e.width,e.height):d()},pi(l,{hostElement:u.canvas,supportsDomEditing:!1,getBounds:()=>Np(u),getFiber:()=>u.fiber?Vr(u.fiber):null,getPreview:()=>Op(u),getSelector:()=>kp(u),getTagName:()=>u.tagName,isConnected:()=>u.canvas.isConnected&&wp(u.object,u.rootState.scene)}),i.set(r,u),l},Ep=(e,t,n)=>{if(!cp(e))return e;let r=Jf.get(e);if(!r)return e;let i=r.getState(),a=Y(e);if(a.width<=0||a.height<=0)return e;let o=(t-a.x)/a.width*2-1,s=-((n-a.y)/a.height)*2+1;if(o<-1||o>1||s<-1||s>1)return e;try{i.pointer.set(o,s),i.raycaster.setFromCamera(i.pointer,i.camera);let e=i.raycaster.intersectObjects(i.scene.children,!0);for(let t of e){if(!Cp(t.object))continue;let e=Sp(t.object);if(!e||e.visible===!1)continue;let n=Tp(i,e,t);if(n)return n}for(let t of e){let e=Sp(t.object);if(!e||e.visible===!1)continue;let n=Tp(i,e,t);if(n)return n}}catch{}return e},Dp=e=>typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?`{${String(e)}}`:Array.isArray(e)&&e.length<=4&&e.every(e=>typeof e==`number`||typeof e==`string`)?`{${JSON.stringify(e)}}`:null,Op=e=>{let t=e.instance?.props??{},n=[];for(let r of Zf){let i=t[r];r===`name`&&i===void 0&&e.object.name&&(i=e.object.name);let a=Dp(i);a&&n.push(`${r}=${a}`)}return e.instanceId!==null&&n.push(`instanceId={${e.instanceId}}`),`<${e.tagName}${n.length>0?` ${n.join(` `)}`:``} />`},kp=e=>{if(e.object.name)return`${e.tagName}[name=${JSON.stringify(e.object.name)}]`;let t=e.instanceId===null?``:`:${e.instanceId}`;return`${e.tagName}[uuid=${JSON.stringify(`${e.object.uuid}${t}`)}]`},Ap=e=>{e.object.updateWorldMatrix(!0,!1);let t=e.object.matrixWorld.clone();if(e.instanceId===null||!e.object.getMatrixAt)return t;let n=e.object.matrixWorld.clone();return e.object.getMatrixAt(e.instanceId,n),n.premultiply(t)},jp=e=>{if(!rp(e.geometry))return null;e.geometry.boundingBox||e.geometry.computeBoundingBox();let t=e.geometry.boundingBox;return!t||!tp(t.min)||!tp(t.max)?null:t},Mp=(e,t)=>{let n=t.x+t.width/2,r=t.y+t.height/2;if(e.intersectionPoint){let i=e.intersectionPoint.clone().project(e.rootState.camera);Number.isFinite(i.x)&&Number.isFinite(i.y)&&(n=t.x+(i.x+1)/2*t.width,r=t.y+(1-i.y)/2*t.height)}return{x:n-16/2,y:r-16/2,width:16,height:16,borderRadius:`0px`}},Np=e=>{let t=Y(e.canvas),n=jp(e.object);if(!n)return Mp(e,t);let r=Ap(e),i=[n.min.x,n.max.x],a=[n.min.y,n.max.y],o=[n.min.z,n.max.z],s=1/0,c=1/0,l=-1/0,u=-1/0,d=n.min.clone();for(let n of i)for(let i of a)for(let a of o){if(d.set(n,i,a).applyMatrix4(r).project(e.rootState.camera),!Number.isFinite(d.x)||!Number.isFinite(d.y))continue;let o=t.x+(d.x+1)/2*t.width,f=t.y+(1-d.y)/2*t.height;s=Math.min(s,o),c=Math.min(c,f),l=Math.max(l,o),u=Math.max(u,f)}if(!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(l)||!Number.isFinite(u))return Mp(e,t);let f=Math.max(t.x,s),p=Math.max(t.y,c),m=Math.min(t.x+t.width,l),h=Math.min(t.y+t.height,u);return m<=f||h<=p?Mp(e,t):{x:f,y:p,width:m-f,height:h-p,borderRadius:`0px`}}})),Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp=n((()=>{J(),xi(),zd(),Wd(),hf(),vf(),xa(),Hn(),bf(),ff(),If(),Pp(),Fp=null,Ip=null,Lp=null,Rp=()=>{Lp!==null&&clearTimeout(Lp),Lp=setTimeout(()=>{Lp=null,Ff()},100)},zp=()=>{Lp!==null&&(clearTimeout(Lp),Lp=null)},Bp=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},Vp=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];zp(),Pf();try{let n=_f(e,t),r=va()?n.filter(ya):n,i=[];for(let n of r)i.push(Ep(n,e,t));return i}finally{Rp()}},Hp=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(Ip){let r=Ip.element,i=n-Ip.timestamp<16;if(r.isConnected&&i&&yf(e,t,Ip.bounds)&&!Rd(r))return r;Ip=null,Fp?.element===r&&(Fp=null)}if(Fp){let r=Bp(e,t,Fp.clientX,Fp.clientY),i=n-Fp.timestamp<16;if(r||i)return Fp.element}zp(),Pf();try{let r=null,i=Ud(e,t),a=i?Ep(i,e,t):null;if(r=i&&a&&df(a)&&ya(i)?a:mf(e,t),r&&Vn(r)&&!Rd(r)){let e=Y(r);Ip={element:r,timestamp:n,bounds:{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}}else Ip=null;return Fp={clientX:e,clientY:t,element:r,timestamp:n},r}finally{Rp()}},Up=()=>{zp(),Ff(),Fp=null,Ip=null}})),Gp,Kp=n((()=>{Gp=(e,t,n)=>Math.max(t,Math.min(e,n))}));Wp(),Kp(),pa(),Ei(),Xn();let qp=e=>{let t=[],n=e;for(;n;){t.unshift(n);let e=n.getRootNode();if(Ti(e)){n=e.host;continue}if(!fa(e))break;n=Yn(e.defaultView)}return t},Jp=(e,t)=>{if(e===t)return 0;let n=qp(e),r=qp(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1){let t=n[e],i=r[e];if(t===i)continue;let a=t.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}return n.length-r.length};If(),J(),$d(),xa(),vf(),xi(),ha(),zd(),Hn(),Ei();let Yp=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),a=Math.min(e.bottom,t.bottom);return Math.max(0,i-n)*Math.max(0,a-r)},Xp=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,Zp=e=>e.sort(Jp),Qp=e=>{if(e.width<=0||e.height<=0)return[];let t=window.innerWidth,n=window.innerHeight,r=e.x,i=e.y,a=e.x+e.width,o=e.y+e.height,s=r+e.width/2,c=i+e.height/2,l=Gp(Math.ceil(e.width/32),3,20),u=Gp(Math.ceil(e.height/32),3,20),d=l*u,f=d>100?Math.sqrt(100/d):1,p=Gp(Math.floor(l*f),3,20),m=Gp(Math.floor(u*f),3,20),h=new Set,g=[],_=(e,r)=>{let i=Gp(Math.round(e),0,t-1),a=Gp(Math.round(r),0,n-1),o=`${i}:${a}`;h.has(o)||(h.add(o),g.push({x:i,y:a}))};_(r+1,i+1),_(a-1,i+1),_(r+1,o-1),_(a-1,o-1),_(s,i+1),_(s,o-1),_(r+1,c),_(a-1,c),_(s,c);for(let t=0;t<p;t+=1){let n=r+(t+.5)/p*e.width;for(let t=0;t<m;t+=1)_(n,i+(t+.5)/m*e.height)}return g},$p=(e,t,n)=>{let r={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height},i=new Set,a=Qp(e);Pf();try{for(let e of a){let t=_f(e.x,e.y);for(let e of t)i.add(e)}}finally{Ff()}let o=[];for(let e of i){if(Vn(e)&&Rd(e)||!n&&Qd(e)||!ya(e)||!t(e))continue;let i=Y(e);if(i.width<=0||i.height<=0)continue;let a={left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height};n?Yp(r,a)/(i.width*i.height)>=.75&&o.push(e):Xp(a,r)&&o.push(e)}return Zp(o)},em=e=>{let t=new Set(e),n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];if(!t.has(i))continue;let a=i,o=ma(a),s=!1;for(;o;){let e=a.getRootNode();if(t.has(o)&&Ti(e)&&e.host===o)t.delete(o);else if(t.has(o)){s=!0;break}a=o,o=ma(a)}s||n.push(i)}return n.reverse()},tm=(e,t,n=!0)=>em($p(e,t,n));J(),Kp();let nm=(e,t)=>e.width<=0?0:Gp((t.x-e.x)/e.width,0,1);xi();let rm=()=>{yi(),Up()},im=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.pageX-window.scrollX,y:e.pageY-window.scrollY}),am=e=>({pageX:e.x+window.scrollX,pageY:e.y+window.scrollY,width:e.width,height:e.height}),om=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.x,y:e.y});J(),ha();let sm=(e,t,n)=>{let r=(e,t,n,r)=>{let i=[],a=e,o=0;for(;a&&i.length<n&&o<100;)r(a)&&i.push(a),a=t(a),o+=1;return i},i=r(ma(e),ma,6,t);i.reverse();let a=i.map((e,t)=>({element:e,depth:t,isLast:!0})),o=i.length,s=r(e.previousElementSibling,e=>e.previousElementSibling,7,n),c=r(e.nextElementSibling,e=>e.nextElementSibling,7,n),l=Math.min(s.length,Math.max(3,7-c.length)),u=Math.min(c.length,7-l),d=[...s.slice(0,l).reverse(),e,...c.slice(0,u)],f=r(e.firstElementChild,e=>e.nextElementSibling,6,t),p=d.length-1,m=f.length-1;return d.forEach((t,n)=>{a.push({element:t,depth:o,isLast:n===p}),t===e&&f.forEach((e,t)=>{a.push({element:e,depth:o+1,isLast:t===m})})}),a};J();let cm=e=>e.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName!==`svg`,lm=e=>{let t=e.getBoundingClientRect();return t.width>=16||t.height>=16},um=(e,t)=>t(e)&&!cm(e)&&lm(e);J();let dm=e=>e===`edit`?On:e,fm=new Set([`c`,`C`,`с`,`С`,`ȼ`,`Ȼ`,`ↄ`,`Ↄ`,`ᴄ`,`ᶜ`,`ⱼ`,`ⅽ`,`Ⅽ`,`ç`,`Ç`,`ć`,`Ć`,`č`,`Č`,`ĉ`,`Ĉ`,`ċ`,`Ċ`]),pm=(e,t)=>t===`KeyC`?!0:!e||e.length!==1?!1:fm.has(e);var mm,hm,gm,_m=n((()=>{mm=null,hm=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},gm=()=>{if(mm===null){if(typeof navigator>`u`)return mm=!1,mm;let e=navigator.platform??hm()??navigator.userAgent;mm=/Mac|iPhone|iPad|iPod/i.test(e)}return mm}}));_m();let vm=(e,t)=>{if(!e||!t)return!1;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:!1},ym={meta:`metaKey`,cmd:`metaKey`,command:`metaKey`,win:`metaKey`,windows:`metaKey`,ctrl:`ctrlKey`,control:`ctrlKey`,shift:`shiftKey`,alt:`altKey`,option:`altKey`,opt:`altKey`},bm=e=>{let t=e.split(`+`).map(e=>e.trim().toLowerCase()),n={metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1,key:null};for(let e of t){let t=ym[e];t?n[t]=!0:n.key=e}return n},xm=e=>{if(typeof e==`function`)return t=>{try{return e(t)}catch{return!1}};let t=bm(e),n=t.key;return e=>{if(n===null){let n=t.metaKey?e.metaKey||e.key===`Meta`:!0,r=t.ctrlKey?e.ctrlKey||e.key===`Control`:!0,i=t.shiftKey?e.shiftKey||e.key===`Shift`:!0,a=t.altKey?e.altKey||e.key===`Alt`:!0,o=n&&r&&i&&a,s=[t.metaKey,t.ctrlKey,t.shiftKey,t.altKey].filter(Boolean).length,c=[e.metaKey||e.key===`Meta`,e.ctrlKey||e.key===`Control`,e.shiftKey||e.key===`Shift`,e.altKey||e.key===`Alt`].filter(Boolean).length;return o&&c>=s}let r=e.key?.toLowerCase()===n||vm(n,e.code),i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?(t.metaKey?e.metaKey:!0)&&(t.ctrlKey?e.ctrlKey:!0)&&(t.shiftKey?e.shiftKey:!0)&&(t.altKey?e.altKey:!0):!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey;return r&&i}},Sm=e=>!e||typeof e==`function`?{metaKey:gm(),ctrlKey:!gm(),shiftKey:!1,altKey:!1,key:null}:bm(e);_m();let Cm=(e,t)=>{if(t.activationKey)return xm(t.activationKey)(e);let n=(gm()?e.metaKey:e.ctrlKey)&&!e.shiftKey&&!e.altKey;return!!(e.key&&n&&pm(e.key,e.code))};var wm,Tm=n((()=>{Bn(),wm=(e,t)=>{try{return e.composedPath().some(e=>zn(e)&&e.hasAttribute(t))}catch{return!1}}}));Tm(),Zi();let Em=async(e,t)=>{let n=Zc(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${el()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},Dm=async(e,t,n)=>{try{let r=Ps(e);if(await Em(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)}catch(n){throw n instanceof Vi?n:new Vi(e,t,n)}};var Z,Om=n((()=>{Z=e=>{console.warn(`[react-grab]`,e)}}));Zi(),Om();let km=(e,t,n)=>{Z(e instanceof Vi?e:new Vi(t,n,e))},Am=(e,t,n)=>{try{if(n.onOpenFile(e,t))return;Dm(e,t,n.transformOpenFileUrl).catch(n=>{km(n,e,t)})}catch(n){km(n,e,t)}},jm=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,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height);return{x:t,y:n,width:r-t,height:i-n}},Mm={enabled:!0,hue:0,selectionBox:{enabled:!0},dragBox:{enabled:!0},grabbedBoxes:{enabled:!0},elementLabel:{enabled:!0},toolbar:{enabled:!0}},Nm=(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},toolbar:{enabled:t.toolbar?.enabled??e.toolbar.enabled}});B(),J(),Zi(),Om();let Pm={activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,activationKey:void 0,getContent:void 0,maxContextLines:3,freezeReactUpdates:!0},Fm=(e={})=>{let t=new Map,n=[],r={},i=!1,[a,o]=Lt({theme:Mm,options:{...Pm,...e},actions:[]}),s=t=>{let n=Mm,r={...Pm,...e},i=[];for(let{config:e}of t)if(e.theme&&(n=Nm(n,e.theme)),e.options&&(r={...r,...e.options}),e.actions)for(let t of e.actions)i.push(t);return{theme:n,options:r,actions:i}},c=e=>{o(`theme`,e.theme),o(`options`,{...e.options,...r}),o(`actions`,e.actions)},l=()=>{c(s(n))},u=(e,t)=>{r[e]=t,o(`options`,e,()=>t)},d=[`activationMode`,`keyHoldDuration`,`allowActivationInsideInput`,`activationKey`,`getContent`,`maxContextLines`,`freezeReactUpdates`],f=e=>{if(!i)for(let t of d)e[t]!==void 0&&u(t,e[t])},p=({plugin:e,config:t})=>{try{let n=t.cleanup?.();Promise.resolve(n).catch(t=>{Z(new Ui(e.name,t))})}catch(t){Z(new Ui(e.name,t))}},m=(e,t)=>{let n;try{n=e.setup?.(t,te)??{};let r=n.cleanup?.bind(n);return{...n,cleanup:r,theme:e.theme?n.theme?Nm(Nm(Mm,e.theme),n.theme):e.theme:n.theme,options:e.options?{...e.options,...n.options}:n.options,actions:e.actions?[...e.actions,...n.actions??[]]:n.actions,hooks:e.hooks?{...e.hooks,...n.hooks}:n.hooks}}catch(t){throw n&&p({plugin:e,config:n}),new Wi(e.name,t)}},h=(e,r)=>{if(i)return;let a={plugin:e,config:m(e,r)},o=t.get(e.name),l=new Map(t);l.set(e.name,a);let u;try{u=s(l.values())}catch(t){throw p(a),new Wi(e.name,t)}t.set(e.name,a),n=Array.from(t.values()),c(u),o&&p(o)},g=e=>{if(i)return;let r=t.get(e);r&&(t.delete(e),n=Array.from(t.values()),p(r),l())},_=()=>{if(i)return;i=!0;let e=n;t.clear(),n=[],e.forEach(p),l()},v=()=>n.map(({plugin:e})=>e.name),b=(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{let i=n(...t);i&&Promise.resolve(i).catch(t=>{Z(new Hi(r.name,String(e),t))})}catch(t){Z(new Hi(r.name,String(e),t))}}},S=(e,...t)=>{let r=!1;for(let{plugin:i,config:a}of n){let n=a.hooks?.[e];if(n)try{n(...t)===!0&&(r=!0)}catch(t){Z(new Hi(i.name,String(e),t))}}return r},C=async(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{await n(...t)}catch(t){Z(new Hi(r.name,String(e),t))}}},w=async(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=await n(i,...r)}catch(n){Z(new Hi(t.name,String(e),n))}}return i},ee=(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=n(i,...r)}catch(n){Z(new Hi(t.name,String(e),n))}}return i},te={onActivate:()=>b(`onActivate`),onDeactivate:()=>b(`onDeactivate`),onElementHover:e=>b(`onElementHover`,e),onElementSelect:e=>{let t=!1,r=[];for(let{plugin:i,config:a}of n){let n=a.hooks?.onElementSelect;if(n)try{let a=n(e);if(a){if(t=!0,a===!0)continue;r.push(a.catch(e=>(Z(new Hi(i.name,`onElementSelect`,e)),!1)))}}catch(e){Z(new Hi(i.name,`onElementSelect`,e))}}let i=r.length>0?Promise.all(r).then(e=>e.every(Boolean)):void 0;return{wasIntercepted:t,pendingResult:i}},onDragStart:(e,t)=>b(`onDragStart`,e,t),onDragEnd:(e,t)=>b(`onDragEnd`,e,t),onBeforeCopy:async e=>C(`onBeforeCopy`,e),transformCopyContent:async(e,t)=>w(`transformCopyContent`,e,t),onAfterCopy:(e,t)=>b(`onAfterCopy`,e,t),onCopySuccess:(e,t)=>b(`onCopySuccess`,e,t),onCopyError:e=>b(`onCopyError`,e),onStateChange:e=>b(`onStateChange`,e),onPromptModeChange:(e,t)=>b(`onPromptModeChange`,e,t),onSelectionBox:(e,t,n)=>b(`onSelectionBox`,e,t,n),onDragBox:(e,t)=>b(`onDragBox`,e,t),onGrabbedBox:(e,t)=>b(`onGrabbedBox`,e,t),onElementLabel:(e,t,n)=>b(`onElementLabel`,e,t,n),onContextMenu:(e,t)=>b(`onContextMenu`,e,t),onOpenFile:(e,t)=>S(`onOpenFile`,e,t),transformHtmlContent:async(e,t)=>w(`transformHtmlContent`,e,t),transformAgentContext:async(e,t)=>w(`transformAgentContext`,e,t),transformActionContext:e=>ee(`transformActionContext`,e),transformOpenFileUrl:(e,t,n)=>ee(`transformOpenFileUrl`,e,t,n)};return x()&&y(_),{register:h,unregister:g,getPluginNames:v,setOptions:f,dispose:_,store:a,hooks:te}},Im=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;J(),xi();let Lm=e=>{let t=e.bounds.x+e.bounds.width/2,n=e.bounds.width/2,r=e.mouseX===void 0?void 0:e.mouseX-t;return{id:Im(`label`),bounds:e.bounds,boundsMultiple:e.boundsMultiple,tagName:e.tagName,componentName:e.componentName,status:e.status,createdAt:Date.now(),element:e.element,elements:e.elements,mouseX:e.mouseX,mouseXOffsetFromCenter:r,mouseXOffsetRatio:r!==void 0&&n>0?r/n:void 0,hideArrow:e.hideArrow}},Rm=(e,t,n)=>{let r=new Map,i=e=>{let t=r.get(e);t!==void 0&&(window.clearTimeout(t),r.delete(e))},a=()=>{for(let e of r.values())window.clearTimeout(e);r.clear()},o=()=>{a(),e.clearLabelInstances(),n?.()},s=t=>{i(t);let n=window.setTimeout(()=>{e.updateLabelInstance(t,`fading`);let n=window.setTimeout(()=>{r.delete(t),e.removeLabelInstance(t)},125);r.set(t,n)},en);r.set(t,n)};return{createInstance:(t,n,r,i,a)=>{o();let s=Lm({bounds:t,tagName:n,componentName:r,status:i,element:a?.element,mouseX:a?.mouseX,elements:a?.elements,boundsMultiple:a?.boundsMultiple,hideArrow:a?.hideArrow});return e.addLabelInstance(s),s.id},createPerElementInstances:(t,n)=>{o();let r=[];for(let i of t){let t=Lm({bounds:Y(i.element),tagName:i.tagName,componentName:i.componentName,status:n,element:i.element,mouseX:i.mouseX});e.addLabelInstance(t),r.push(t.id)}return r},updateAfterCopy:(t,n,r)=>{n?(e.updateLabelInstance(t,`copied`),s(t)):(i(t),e.updateLabelInstance(t,`error`,r||`Unknown error`))},markRetrying:t=>{i(t),e.updateLabelInstance(t,`copying`)},dismissInstance:t=>{i(t),e.removeLabelInstance(t)},cancelAllFades:a,clearAll:o,handleHoverChange:(n,r)=>{let a=t().find(e=>e.id===n);if(a){if(r){i(n),a.status===`fading`&&e.updateLabelInstance(n,`copied`);return}(a.status===`copied`||a.status===`fading`)&&s(n)}}}},zm=e=>{let t=window.innerWidth,n=window.innerHeight,r=Math.max(0,e.x),i=Math.min(t,e.x+e.width),a=Math.max(0,e.y),o=Math.min(n,e.y+e.height);return{x:(r+i)/2,y:(a+o)/2}};J(),Wp(),Ci();let Bm=(e,t,n)=>{let r=[],i=(t,r)=>{let i=zm(n(t)),a=Vp(i.x,i.y).filter(e),o=a.indexOf(t);return o===-1?null:a[o+r]??null},a=e=>{let t=i(e,1);return t&&(r.push(e),r.length>50&&(r=r.slice(-50))),t},o=e=>{if(r.length>0){let e=r.pop();if(X(e))return e}return i(e,-1)},s=(e,n)=>{let i=e=>n?e.nextElementSibling:e.previousElementSibling,a=i(e);for(;a;){if(t(a))return r=[],a;a=i(a)}return null};return{findNext:(e,t)=>{switch(e){case`ArrowUp`:return a(t);case`ArrowDown`:return o(t);case`ArrowRight`:return s(t,!0);case`ArrowLeft`:return s(t,!1);default:return null}},clearHistory:()=>{r=[]}}},Vm=()=>{let e=new WeakSet,t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,`key`),n=!1;if(t?.get&&!t.get.__reactGrabPatched){n=!0;let r=t.get,i=function(){return e.has(this)?``:r.call(this)};i.__reactGrabPatched=!0,Object.defineProperty(KeyboardEvent.prototype,`key`,{get:i,configurable:!0})}return{claimedEvents:e,originalKeyDescriptor:t,restore:()=>{n&&t&&Object.defineProperty(KeyboardEvent.prototype,`key`,t)}}};J(),Bu();let Hm=(e,t)=>({top:t<25,bottom:t>window.innerHeight-25,left:e<25,right:e>window.innerWidth-25}),Um=(e,t,n)=>{let r=null,i=()=>{if(!t()){a();return}let o=e(),s=Hm(o.x,o.y),c=0,l=0;s.top&&(l-=10),s.bottom&&(l+=10),s.left&&(c-=10),s.right&&(c+=10);let u=!1;if(c!==0||l!==0){let e=window.scrollX,t=window.scrollY;window.scrollBy({behavior:`instant`,left:c,top:l});let r=window.scrollX-e,i=window.scrollY-t;u=r!==0||i!==0,u&&n?.({x:r,y:i})}r=u?Lu(i):null},a=()=>{r!==null&&(Ru(r),r=null)};return{start:i,stop:a,isActive:()=>r!==null}},Wm=()=>{let e=globalThis;return!!(e.chrome?.runtime?.id||e.browser?.runtime?.id)},Gm=e=>{try{let t=`0.1.50-dev.f350003`,n=`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 294 294"><path fill="#ff40e0" d="M145 47c25-20 50-27 67-17 16 9 23 30 20 60 0 2-1 5-1 7l-2 13h-1l-12-4c-8-3-17-5-25-6l-17-3c-10-1-20-1-29-1-10 0-20 0-29 1-6 8-11 16-16 24-5 9-9 17-13 26 4 9 8 18 13 26s10 16 16 24l11 14c5 7 11 13 18 19l10 8s-1 0 0 0l-11 9c-17 14-35 22-49 22-6 0-13-2-18-5-16-9-23-30-20-59 1-3 1-5 1-8-30-12-48-29-48-50 0-18 14-35 41-47 2-1 5-2 7-3 0-2 0-5-1-7-3-30 4-51 20-60 18-10 42-3 68 17M71 201c-1 2-1 4-1 5-2 24 3 41 13 47h1c11 7 30 1 51-15-10-9-18-18-26-29-13-1-26-4-38-8m9-38c-3 9-5 17-7 26 8 2 17 4 25 6-3-5-6-10-9-16-3-5-6-10-9-16m-19-53c-2 1-3 1-5 2-21 10-34 23-34 35 0 13 14 27 39 37 3-12 7-25 12-37-5-12-9-24-12-37m37-10c-8 1-17 3-25 6 2 8 4 16 7 25 3-5 6-11 9-16zm-3-61c-4-1-8 0-12 2-10 7-15 24-13 47 0 2 0 3 1 5 12-4 25-6 38-8 8-10 16-20 26-29-15-11-29-17-40-17m111 2c-4-2-8-3-12-2-11 0-25 5-40 17 10 9 19 19 26 29 13 2 26 4 39 8v-5c3-23-2-40-13-47m-61 23c-7 6-13 13-19 19h37c-6-6-12-13-18-19"/><mask id="a"><path fill="#fff" d="m235 85-133 27 28 133 133-27Z"/></mask><path fill="#ff40e0" d="m137 130 76 11c8 1 9 11 3 15l-28 16-4 32c-1 8-10 10-14 4l-41-66c-3-6 1-13 8-12" mask="url(#a)"/></svg>`)}`;console.log(`%cReact Grab${` v${t}`}%c\nhttps://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${n}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,``),e&&navigator.onLine&&!Wm()&&fetch(`https://www.react-grab.com/api/version?source=browser&v=${t}&t=${Date.now()}`,{referrerPolicy:`origin`,keepalive:!0,priority:`low`,cache:`no-store`}).then(e=>e.text()).then(e=>{e&&e!==t&&console.warn(`[React Grab] v${t} is outdated (latest: v${e}). Run \`npx grab@latest upgrade\` to upgrade.`)}).catch(()=>null)}catch{}},Km=e=>typeof e==`object`&&!!e,qm=e=>{if(!Km(e))return null;let t={};return typeof e.enabled==`boolean`&&(t.enabled=e.enabled),(e.activationMode===`toggle`||e.activationMode===`hold`)&&(t.activationMode=e.activationMode),typeof e.keyHoldDuration==`number`&&Number.isFinite(e.keyHoldDuration)&&(t.keyHoldDuration=e.keyHoldDuration),typeof e.allowActivationInsideInput==`boolean`&&(t.allowActivationInsideInput=e.allowActivationInsideInput),typeof e.activationKey==`string`&&(t.activationKey=e.activationKey),typeof e.maxContextLines==`number`&&Number.isFinite(e.maxContextLines)&&(t.maxContextLines=e.maxContextLines),typeof e.freezeReactUpdates==`boolean`&&(t.freezeReactUpdates=e.freezeReactUpdates),typeof e.telemetry==`boolean`&&(t.telemetry=e.telemetry),Object.keys(t).length===0?null:t},Jm=()=>{if(typeof window>`u`)return null;try{let e=(document.currentScript instanceof HTMLScriptElement?document.currentScript:null)?.getAttribute(`data-options`);return e?qm(JSON.parse(e)):null}catch{return null}},Ym=e=>e===`Enter`||e===`NumpadEnter`,Xm=(e,t)=>e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height;var Zm,Qm,$m,eh=n((()=>{J(),xa(),Zm=`react-grab-toolbar-state`,Qm=()=>{try{let e=localStorage.getItem(Zm);if(!e)return null;let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t,r=typeof n.collapsed==`boolean`?n.collapsed:!1;return{edge:n.edge===`top`||n.edge===`bottom`||n.edge===`left`||n.edge===`right`?n.edge:`bottom`,ratio:typeof n.ratio==`number`?n.ratio:Dn,collapsed:r,enabled:!r,defaultAction:typeof n.defaultAction==`string`?n.defaultAction:On}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},$m=e=>{try{localStorage.setItem(Zm,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}}}));eh(),B(),xa();let th=e=>{let[t,n]=c(!1);return v(()=>{let t=ba(t=>n(e(t))),r=()=>n(!1);window.addEventListener(`keydown`,t,{capture:!0}),window.addEventListener(`keyup`,t,{capture:!0}),window.addEventListener(`blur`,r),y(()=>{window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`keyup`,t,{capture:!0}),window.removeEventListener(`blur`,r)})}),t},nh={name:`copy`,actions:[{id:`copy`,label:`Copy`,shortcut:`C`,showInToolbarMenu:!0,onAction:e=>{e.copy?.()}}]},rh={name:`comment`,actions:[{id:`comment`,label:`Comment`,shortcut:`Enter`,showInToolbarMenu:!0,onAction:e=>{e.enterPromptMode?.()}}]},ih={name:`open`,actions:[{id:`open`,label:`Open`,shortcut:`O`,enabled:e=>!!e.filePath,onAction:e=>{e.filePath&&(Am(e.filePath,e.lineNumber,e.hooks),e.hideContextMenu(),e.cleanup())}}]};var ah,oh=n((()=>{ah=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n])})),sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh=n((()=>{J(),Bu(),sh=!1,ch=null,lh=!1,uh=new Map,dh=-1,fh=new WeakSet,ph=new WeakSet,mh=new WeakMap,hh=new Map,gh=new Map,_h=e=>{if(ch===e&&(lh=!0),fh.has(e))return!0;if(!sh&&ch===e){let t=(mh.get(e)??0)+1;return mh.set(e,t),t<4?!1:(fh.add(e),!0)}return!sh||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(fh.add(e),ph.add(e),!0)},typeof window<`u`&&(window.requestAnimationFrame=e=>{let t=_h(e);if(sh&&t){let t=dh--;return uh.set(t,e),t}let n=Lu(t=>{if(sh&&_h(e)){let t=dh--;uh.set(t,e),hh.set(n,t);return}let r=ch,i=lh;ch=e,lh=!1;try{e(t)}finally{let t=lh;ch=r,lh=i,!t&&!ph.has(e)&&(fh.delete(e),mh.delete(e))}});return n},window.cancelAnimationFrame=e=>{if(uh.has(e)){uh.delete(e);return}let t=gh.get(e);if(t!==void 0){Ru(t.nativeId),gh.delete(e);return}let n=hh.get(e);if(n!==void 0){uh.delete(n),hh.delete(e);return}Ru(e)}),vh=()=>{if(!sh){sh=!0,uh.clear(),hh.clear();for(let[e,{nativeId:t,callback:n}]of gh)Ru(t),uh.set(e,n);gh.clear()}},yh=()=>{if(sh){sh=!1;for(let[e,t]of uh.entries()){let n=Lu(n=>{gh.delete(e);let r=ch,i=lh;ch=t,lh=!1;try{t(n)}finally{let e=lh;ch=r,lh=i,!e&&!ph.has(t)&&(fh.delete(t),mh.delete(t))}});gh.set(e,{nativeId:n,callback:t})}uh.clear(),hh.clear()}}})),xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h=n((()=>{J(),oh(),Sf(),bh(),Rn(),nf(),Ei(),xa(),Rf(),xh=`
24
- [${Cn}],
25
- [${Cn}] * {
20
+ `,i)),i!==-1)n=n.slice(0,i);else return``;return n},zo=e=>!!(e.functionName&&e.fileName&&Uo(e.fileName)),Bo=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Vo=e=>{let t=new Map;for(let n of e)for(let e of n.stackFrames){if(!zo(e))continue;let n=e.functionName,r=t.get(n)??[];r.some(t=>Bo(t,e))||(r.push(e),t.set(n,r))}return t},Ho=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},Uo=e=>Ma.some(t=>e.startsWith(t)),Wo=e=>!e.isServer&&e.fileName&&Uo(e.fileName)?{...e,isServer:!0}:e,Go=e=>{let t=[],n=e;for(;n;)if(Eo(n)){let e=n;if(n=Do(e),n&&To(e)){let{frames:n,isTrusted:r}=Qa(e._debugStack);if(r)for(let e of n)t.push(Wo(e))}}else{let e=n;if(n=e.owner,n&&e.debugStack instanceof Error)for(let n of Qa(e.debugStack).frames)t.push({...n,isServer:!0})}return t},Ko=e=>{let t=[];return Er(e,e=>{if(!To(e))return;let n=typeof e.type==`string`?e.type:zr(e.type)||`<anonymous>`;t.push({componentName:n,stackFrames:Ha(Ro(e._debugStack?.stack))})},!0),t},qo=async(e,t=!0,n)=>{let r=Ko(e),i=Ha(Lo(e)),a=Vo(r),o=new Map;return wo(i.map(e=>(e.source?.includes(`(at Server)`)??!1)||e.source!=null&&La.test(e.source)?Ho(e,a,o):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName}),t,n)},Jo=e=>!!e.fileName&&!e.isIgnoreListed,Yo=async(e,t=!0,n)=>{let r=Go(e);if(r.length>0){let i=Oo(e)??{};i.functionName=zr(e.type)??i.functionName;let a=await wo([i,...r],t,n);if(a.some((e,t)=>t>0&&Jo(e)))return a}return qo(e,t,n)},Xo=e=>{let t=e._debugSource;return t?typeof t==`object`&&!!t&&`fileName`in t&&typeof t.fileName==`string`&&`lineNumber`in t&&typeof t.lineNumber==`number`:!1},Zo=e=>e.fileName?{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName}:null,Qo=e=>{if(!To(e))return null;let{frames:t,isTrusted:n}=Qa(e._debugStack);if(!n)return null;for(let e of t)if(e.fileName)return e;return null},$o=async(e,t=!0,n)=>{if(Xo(e))return e._debugSource||null;let r=Qo(e)??Oo(e);if(r){let[e]=await wo([r],t,n),i=Zo(e);if(i)return i}let i=await qo(e,t,n);for(let e of i)if(e.fileName)return Zo(e);return null},es=e=>e.split(`/`).filter(Boolean).length,ts=e=>e.split(`/`).filter(Boolean)[0]??null,ns=e=>{let t=e.indexOf(`/`,1);if(t===-1||es(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!Pa.test(n)||es(n)<2)return e;let r=ts(n);return!r||r.startsWith(`@`)||r.length>4?e:n},rs=e=>{if(!e||Na.some(t=>t===e))return``;let t=e,n=t.startsWith(`http://`)||t.startsWith(`https://`);if(n)try{t=new URL(t).pathname}catch{}if(n&&(t=ns(t)),t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of ja)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(Aa.test(t)){let e=t.match(Aa);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);Ia.test(e)&&(t=t.slice(0,i))}return t},is=e=>{let t=rs(e);return!(!t||!Pa.test(t)||Fa.test(t))};wr(),di();let as=Symbol.for(`react.context`),os=[],ss=null,cs=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."),ls=()=>{let e=ss;return e!==null&&(ss=e.next),e},us=e=>e._currentValue,ds=(e,t,n,r=null)=>{os.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},fs=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:return ds(`Promise`,e.value,`Use`),e.value;case`rejected`:throw e.reason}throw ds(`Unresolved`,e,`Use`),cs}if(t.$$typeof===as&&`_currentValue`in t){let e=t,n=us(e);return ds(`Context (use)`,n,`Use`,e.displayName||`Context`),n}}throw Error(`An unsupported type was passed to use(): `+String(e))},ps=e=>{let t=us(e);return ds(`Context`,t,`Context`,e.displayName||null),t},ms=e=>{let t=ls(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return ds(`State`,n,`State`),[n,()=>{}]},hs=(e,t,n)=>{let r=ls(),i=r===null?n===void 0?t:n(t):r.memoizedState;return ds(`Reducer`,i,`Reducer`),[i,()=>{}]},gs=e=>{let t=ls(),n=t===null?{current:e}:t.memoizedState;return ds(`Ref`,n.current,`Ref`),n},_s=()=>{let e=ls();return ds(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},vs=e=>{ls(),ds(`LayoutEffect`,e,`LayoutEffect`)},ys=e=>{ls(),ds(`InsertionEffect`,e,`InsertionEffect`)},bs=e=>{ls(),ds(`Effect`,e,`Effect`)},xs=e=>{ls();let t;typeof e==`object`&&e&&`current`in e&&(t=e.current),ds(`ImperativeHandle`,t,`ImperativeHandle`)},Ss=(e,t)=>{ds(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},Cs=e=>{let t=ls();return ds(`Callback`,t===null?e:t.memoizedState[0],`Callback`),e},ws=e=>{let t=ls(),n=t===null?e():t.memoizedState[0];return ds(`Memo`,n,`Memo`),n},Ts=(e,t)=>{let n=ls();ls();let r=n===null?t():n.memoizedState;return ds(`SyncExternalStore`,r,`SyncExternalStore`),r},Es=()=>{let e=ls();ls();let t=e===null?!1:e.memoizedState;return ds(`Transition`,t,`Transition`),[t,()=>{}]},Ds=e=>{let t=ls(),n=t===null?e:t.memoizedState;return ds(`DeferredValue`,n,`DeferredValue`),n},Os=()=>{let e=ls(),t=e===null?``:e.memoizedState;return ds(`Id`,t,`Id`),t},ks=e=>[],As=e=>{let t=ls(),n=t===null?e:t.memoizedState;return ds(`Optimistic`,n,`Optimistic`),[n,()=>{}]},js=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(typeof t==`object`&&t&&`then`in t&&typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:n=e.value;break;case`rejected`:r=e.reason;break;default:r=cs,n=e}}else n=t}else n=t;return{value:n,error:r}},Ms=e=>(t,n)=>{let r=ls();ls(),ls();let i=Error(),{value:a,error:o}=js(r,n);if(os.push({displayName:null,primitive:e,stackError:i,value:a,dispatcherHookName:e}),o!==null)throw o;return[a,()=>{},!1]},Ns=Ms(`ActionState`),Ps={readContext:us,use:fs,useCallback:Cs,useContext:ps,useEffect:bs,useImperativeHandle:xs,useLayoutEffect:vs,useInsertionEffect:ys,useMemo:ws,useReducer:hs,useRef:gs,useState:ms,useDebugValue:Ss,useDeferredValue:Ds,useTransition:Es,useSyncExternalStore:Ts,useId:Os,useHostTransitionStatus:()=>{let e=us({_currentValue:null});return ds(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:Ms(`FormState`),useActionState:Ns,useOptimistic:As,useMemoCache:ks,useCacheRefresh:_s,useEffectEvent:e=>(ls(),ds(`EffectEvent`,e,`EffectEvent`),e)};typeof Proxy>`u`||new Proxy(Ps,{get(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=Error(`Missing method in Dispatcher: `+t);throw n.name=`ReactDebugToolsUnsupportedHookError`,n}}),q();let Fs=e=>e===void 0||!Number.isFinite(e)?3:Math.max(0,Math.floor(e)),Is=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,Ls=e=>{let t=rs(e);return t=t.replace(Is,``),t.startsWith(`./`)&&(t=t.slice(2)),t},Rs=e=>{try{return decodeURIComponent(e)}catch{return e}},zs=/(?:^|[/\\])node_modules[/\\]/,Bs=/[/\\]\.vite[/\\]deps[^/\\]*[/\\]/,Vs=/\.[mc]?[jt]sx?$/i,Hs=/^chunk-[A-Za-z0-9_-]+$/,Us=/[/\\]/,Ws=/^(.+?)@v?\d/,Gs=e=>e.split(Us).filter(Boolean),Ks=e=>{let[t,n]=Gs(e);return!t||t.startsWith(`.`)?null:t.startsWith(`@`)?n?`${t}/${n}`:null:t},qs=e=>{let t=Gs(e)[0];if(!t)return null;let n=t.replace(Vs,``);if(Hs.test(n))return null;if(!n.startsWith(`@`))return n;let r=n.indexOf(`_`);return r===-1?null:`${n.slice(0,r)}/${n.slice(r+1)}`},Js=(e,t,n)=>{let r=e.split(t);return r.length>1?n(r[r.length-1]):null},Ys=e=>e?.match(Ws)?.[1]??null,Xs=e=>{let t;try{t=new URL(e)}catch{return null}if(!t.hostname)return null;let n=Gs(t.pathname).map(Rs);for(let[e,t]of n.entries()){if(t.startsWith(`@`)){let r=Ys(n[e+1]);if(r)return`${t}/${r}`;continue}let r=Ys(t);if(r)return r}return null},Zs=e=>Js(e,Bs,qs)??Js(e,zs,Ks),Qs=e=>{if(!e)return null;let t=rs(e);return t&&(Zs(Rs(t))||Xs(e))||null},$s=/^@[A-Za-z0-9][A-Za-z0-9._-]*$/,ec=/^[A-Za-z0-9][A-Za-z0-9._-]*$/,tc=new Set([`app`,`web`,`website`,`frontend`,`client`,`src`]),nc=new Set([`app`,`src`,`components`,`pages`,`features`,`modules`,`hooks`,`lib`,`utils`,`ui`,`shared`,`common`,`core`,`styles`,`assets`]),rc=e=>{let t=e;for(;t.startsWith(`../`)||t.startsWith(`./`);)t=t.slice(t.startsWith(`../`)?3:2);return t},ic=e=>{let t=rc(Rs(rs(e)));if(t.startsWith(`/`))return null;let[n,r,...i]=Gs(t);return!n||!r||i.length===0||!$s.test(n)||nc.has(n.slice(1))||!ec.test(r)||Vs.test(r)||tc.has(r)?null:`${n}/${r}`},ac=e=>e?Qs(e)??ic(e):null,oc=e=>{if(!e)return{origin:`unknown`,packageName:null};let t=ac(e);return t?{origin:`package`,packageName:t}:is(e)?{origin:`app`,packageName:null}:{origin:`unknown`,packageName:null}};q(),ma(),Bn(),Di();let sc=new Set([`role`,`name`,`aria-label`,`rel`,`href`]),cc=e=>{if(!/^[a-z-]{3,}$/i.test(e))return!1;let t=e.split(/-|[A-Z]/);for(let e of t)if(e.length<=2||/[^aeiou]{4,}/i.test(e))return!1;return!0},lc=(e,t)=>{let n=sc.has(e)||e.startsWith(`data-`)&&cc(e),r=cc(t)&&t.length<100||t.startsWith(`#`)&&cc(t.slice(1));return n&&r},uc=e=>{let t=e[0].name;for(let n=1;n<e.length;n++)t=`${e[n].name} > ${t}`;return t},dc=e=>{let t=0;for(let n of e)t+=n.penalty;return t},fc=(e,t)=>dc(e)-dc(t),pc=(e,t)=>{let n=e.parentNode;if(!n)return;let r=n.firstChild;if(!r)return;let i=0;for(;r&&(zn(r)&&(t===void 0||r.tagName.toLowerCase()===t)&&i++,r!==e);)r=r.nextSibling;return i},mc=(e,t)=>e===`html`?`html`:`${e}:nth-child(${t})`,hc=(e,t)=>e===`html`?`html`:`${e}:nth-of-type(${t})`,gc=(e,t)=>{let n=[],r=e.getAttribute(`id`),i=e.tagName.toLowerCase();r&&cc(r)&&n.push({name:`#${CSS.escape(r)}`,penalty:0});for(let t of e.classList)cc(t)&&n.push({name:`.${CSS.escape(t)}`,penalty:1});for(let r of e.attributes)t(r.name,r.value)&&n.push({name:`[${CSS.escape(r.name)}="${CSS.escape(r.value)}"]`,penalty:2});n.push({name:i,penalty:5});let a=pc(e,i);a!==void 0&&n.push({name:hc(i,a),penalty:10});let o=pc(e);return o!==void 0&&n.push({name:mc(i,o),penalty:50}),n},_c=(e,t=on,n=[])=>{if(t<=0)return[];if(e.length===0)return[n];let r=[];for(let i of e[0]){let a=t-r.length;if(a<=0)break;r.push(..._c(e.slice(1),a,[...n,i]))}return r},vc=(e,t)=>{let n=t.getRootNode();return Ei(n)?n:pa(e)?e:e.ownerDocument},yc=(e,t)=>t.querySelectorAll(uc(e)).length===1,bc=(e,t)=>{let n=e,r=[];for(;n&&n!==t;){let e=n.tagName.toLowerCase(),t=pc(n,e);if(t===void 0)return;r.push({name:hc(e,t),penalty:10}),n=n.parentElement}return yc(r,t)?r:void 0},xc=(e,t,n,r)=>{if(e.nodeType!==Node.ELEMENT_NODE)throw new Ji;if(e.tagName.toLowerCase()===`html`)return`html`;let i=vc(t,e),a=Date.now(),o=[],s=e,c=0,l;for(;s&&s!==i&&!l;)if(o.push(gc(s,r)),s=s.parentElement,c++,c>=3){let t=_c(o);t.sort(fc);for(let r of t){if(Date.now()-a>n){let t=bc(e,i);if(!t)throw new Yi(n);return uc(t)}if(yc(r,i)){l=r;break}}}if(!l&&c<3){let e=_c(o);e.sort(fc);for(let t of e){if(Date.now()-a>n)break;if(yc(t,i)){l=t;break}}}if(!l)throw new Xi;return uc(l)};q();let Sc=/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i,Cc=/:r[a-z0-9]+:/i,wc=/_r_[a-z0-9]+_(?:$|-)/i,Tc=/«r[a-z0-9]+»/i,Ec=/^(?:downshift-\d+(?:-|$)|headlessui-[a-z-]+-\d+(?:-|$)|mui-\d+(?:-|$)|radix-\d+(?:-|$)|react-aria-\d+(?:-|$)|react-select-\d+(?:-|$))/i,Dc=/^ember\d+$/i,Oc=/^\d+$/,kc=e=>e.length>0&&e.length<=120&&!Cc.test(e)&&!Sc.test(e)&&!wc.test(e)&&!Tc.test(e)&&!Ec.test(e)&&!Dc.test(e)&&!Oc.test(e),Ac=new Set([`data-testid`,`data-test-id`,`data-test`,`data-cy`,`data-qa`,`aria-label`,`href`,`src`,`role`,`name`,`title`,`alt`]),jc=new Set([`button`,`link`,`checkbox`,`radio`,`switch`,`tab`,`menuitem`,`option`,`textbox`,`combobox`,`slider`,`spinbutton`]);q(),Zn(),Di(),Bn(),_i();let Mc=e=>e.ownerDocument.body??e.ownerDocument.documentElement,Nc=e=>e.length>0&&e.length<=120,Pc=(e,t)=>Ac.has(e)&&Nc(t)&&(e!==`role`||t.split(/\s+/).some(e=>jc.has(e))),Fc=(e,t)=>{try{let n=e.getRootNode(),r=(Ei(n)?n:e.ownerDocument).querySelectorAll(t);return r.length===1&&r[0]===e}catch{return!1}},Ic=e=>{let t=e.getAttribute(`id`),n=null;if(t){let r=`#${CSS.escape(t)}`;if(Fc(e,r)){if(kc(t))return{selector:r,isSemantic:!0};n=r}}for(let t of Ac){let n=e.getAttribute(t);if(!n||!Pc(t,n))continue;let r=`[${t}=${JSON.stringify(n)}]`;if(Fc(e,r))return{selector:r,isSemantic:!0};let i=`${e.tagName.toLowerCase()}${r}`;if(Fc(e,i))return{selector:i,isSemantic:!0}}return n?{selector:n,isSemantic:!1}:null},Lc=e=>{let t=[],n=e.getRootNode(),r=Ei(n)?n:Mc(e),i=e;for(;i;){let e=i.getAttribute(`id`);if(e){t.unshift(`#${CSS.escape(e)}`);break}let n=i.parentNode;if(!n){t.unshift(i.tagName.toLowerCase());break}let a=Array.from(n.children).indexOf(i)+1;if(t.unshift(`${i.tagName.toLowerCase()}:nth-child(${a})`),n===r){zn(r)&&t.unshift(r.tagName.toLowerCase());break}i=zn(n)?n:null}return t.join(` > `)},Rc=e=>{let t=Ic(e);if(t)return t;try{let t=xc(e,Mc(e),200,(e,t)=>lc(e,t)||Pc(e,t));if(t)return{selector:t,isSemantic:!1}}catch{}return{selector:Lc(e),isSemantic:!1}},zc=e=>{let t=hi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=Ic(e);if(!n?.isSemantic)return null;let r=e.getRootNode();if(Ei(r)){let e=zc(r.host);return e?{selector:`${e.selector} >>> ${n.selector}`,isSemantic:!0}:null}let i=Xn(e.ownerDocument.defaultView);if(!i)return n;let a=zc(i);return a?{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:!0}:null},Bc=e=>{let t=hi(e);if(t)return{selector:t.getSelector(),isSemantic:!0};let n=Rc(e),r=e.getRootNode();if(Ei(r)){let e=Bc(r.host);return{selector:`${e.selector} >>> ${n.selector}`,isSemantic:e.isSemantic&&n.isSemantic}}let i=Xn(e.ownerDocument.defaultView);if(!i)return n;let a=Bc(i);return{selector:`${a.selector} >>iframe>> ${n.selector}`,isSemantic:a.isSemantic&&n.isSemantic}};q(),ga();let Vc=[...Array.from(Ac).filter(e=>e!==`role`).map(e=>`[${e}]`),...Array.from(jc).map(e=>`[role~="${e}"]`)].join(`,`),Hc=[`button`,`input`,`select`,`textarea`].join(`,`),Uc=e=>{let t=e.getAttribute(`id`);return!!(t&&kc(t)||e.matches(Vc))},Wc=e=>Uc(e)||e.matches(Hc),Gc=e=>{let{body:t,documentElement:n}=e.ownerDocument;if(e===t||e===n)return!0;if(!t)return!1;let r=t.getElementsByTagName(`*`).length;return r===0?!1:e.getElementsByTagName(`*`).length/r>=sn},Kc=(e,t)=>{let n=e.getRootNode(),r=e;for(;r;){let i=Wc(r),a=i&&Gc(r);if(i){if(a&&r!==e)return e;if(!t||t(r)||a||!Uc(r)&&r===e)return r}let o=ha(r);r=o?.getRootNode()===n?o:null}return e};_i();let qc=e=>{if(hi(e))return zc(e);let t=null;return Kc(e,e=>{let n=zc(e);return n?(t=n,!0):!1}),t},Jc=[/\/assets\/[^/?#]+-[a-z0-9_-]{6,}\.(?:c|m)?js(?:[?#]|$)/,/\/_next\/static\/.*\.(?:c|m)?js(?:[?#]|$)/,/\/static\/chunks\/.*\.(?:c|m)?js(?:[?#]|$)/],Yc=e=>{if(!e)return!1;let t=`/${Ls(e)}`.toLowerCase();return Jc.some(e=>e.test(t))};q();let Xc=e=>{if(!e)return!1;let t=`/${Ls(e)}/`.toLowerCase();return nn.some(e=>t.includes(e))},Zc,Qc=(e=!1)=>{let t=new URL(document.baseURI);return Array.from(document.scripts).some(n=>{if(!n.src)return!1;try{let r=new URL(n.src,t);return(e||r.origin===t.origin)&&r.pathname.includes(`/_next/static/`)}catch{return!1}})},$c=()=>Array.from(document.scripts).some(e=>e.textContent?.includes(`self.__next_f.push`)),el=e=>(e&&(Zc=void 0),Zc??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)||Qc()||$c()&&Qc(!0)),Zc),tl=e=>e.map(e=>`\n in ${e}`).join(``),nl,rl=()=>{if(nl!==void 0)return nl;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return nl=n>0?t.slice(0,n):``,nl};fi(),q();let il=[`about://React/`,`rsc://React/`],al=e=>il.some(t=>e.startsWith(t)),ol=e=>{for(let t of il){if(!e.startsWith(t))continue;let n=e.indexOf(`/`,t.length);if(n===-1)continue;let r=n+1,i=e.lastIndexOf(`?`);return Rs(i>r?e.slice(r,i):e.slice(r))}return e},sl=e=>{if(typeof e!=`object`||!e||!(`status`in e)||e.status!==`fulfilled`||!(`value`in e)||typeof e.value!=`object`||e.value===null||!(`originalStackFrame`in e.value))return null;let t=e.value.originalStackFrame;return typeof t!=`object`||!t||!(`file`in t)||typeof t.file!=`string`||!t.file||`ignored`in t&&t.ignored?null:{file:t.file,line1:`line1`in t&&typeof t.line1==`number`?t.line1:null,column1:`column1`in t&&typeof t.column1==`number`?t.column1:null}},cl=async(e,t)=>{let n=[],r=[];for(let t=0;t<e.length;t++){let i=e[t];!i.isServer||!i.fileName||(n.push(t),r.push({file:ol(i.fileName),methodName:i.functionName??`<unknown>`,line1:i.lineNumber??null,column1:i.columnNumber??null,arguments:[]}))}if(r.length===0)return e;let i=new AbortController,a=setTimeout(()=>i.abort(),rn),o=()=>i.abort();t?.aborted&&i.abort(),t?.addEventListener(`abort`,o);try{let t=await fetch(`${rl()}/__nextjs_original-stack-frames`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({frames:r,isServer:!0,isEdgeServer:!1,isAppDirectory:!0}),priority:`high`,signal:i.signal});if(!t.ok)return e;let a=await t.json();if(!Array.isArray(a))return e;let o=[...e];for(let t=0;t<n.length;t++){let r=sl(a[t]);if(!r)continue;let i=n[t];o[i]={...e[i],fileName:r.file,lineNumber:r.line1??void 0,columnNumber:r.column1??void 0,isSymbolicated:!0}}return o}catch{return e}finally{clearTimeout(a),t?.removeEventListener(`abort`,o)}},ll=e=>{let t=new Map;return Er(e,e=>{if(!To(e))return!1;let n=Ro(e._debugStack.stack);if(!n)return!1;for(let e of Ha(n))!e.functionName||!e.fileName||al(e.fileName)&&(t.has(e.functionName)||t.set(e.functionName,{...e,isServer:!0}));return!1},!0),t},ul=(e,t)=>{if(!t.some(e=>e.isServer&&!e.fileName&&e.functionName))return t;let n=ll(e);return n.size===0?t:t.map(e=>{if(!e.isServer||e.fileName||!e.functionName)return e;let t=n.get(e.functionName);return t?{...e,fileName:t.fileName,lineNumber:t.lineNumber,columnNumber:t.columnNumber}:e})};q();let dl=0,fl=[],pl=e=>e?.aborted?Promise.resolve(!1):dl<3?(dl+=1,Promise.resolve(!0)):new Promise(t=>{let n={abortSignal:e,resolve:t};e&&(n.handleAbort=()=>{let e=fl.indexOf(n);e!==-1&&(fl.splice(e,1),t(!1))},e.addEventListener(`abort`,n.handleAbort,{once:!0})),fl.push(n)}),ml=()=>{let e=fl.shift();if(e){e.abortSignal&&e.handleAbort&&e.abortSignal.removeEventListener(`abort`,e.handleAbort),e.resolve(!0);return}--dl},hl=async(e,t,n=an,r)=>{if(!await pl(r))return t;let i=new AbortController,a,o=new Promise(e=>{a=setTimeout(()=>{i.abort(),e(t)},n)}),s,c=new Promise(e=>{r&&(s=()=>{i.abort(),e(t)},r.aborted?s():r.addEventListener(`abort`,s,{once:!0}))});try{let t=e(i.signal);return t.catch(()=>{}),await Promise.race([t,o,c])}finally{clearTimeout(a),s&&r?.removeEventListener(`abort`,s),ml()}},gl=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),_l=e=>gl(e).replace(/"/g,`&quot;`).replace(/\r/g,`&#13;`).replace(/\n/g,`&#10;`).replace(/\t/g,`&#9;`),vl=(e,t)=>{if(e.length<=t)return e;let n=Math.max(0,t-3),r=e.slice(0,n),i=r.lastIndexOf(`&`);return`${i>r.lastIndexOf(`;`)?r.slice(0,i):r}...`.slice(0,t)},yl=e=>e.startsWith(`data-react-grab-`);q(),Bn();let bl=e=>e.replace(/\s+/g,` `).trim(),xl=e=>{let t=[];for(let n of e.childNodes){if(n.nodeType!==Node.TEXT_NODE)continue;let e=bl(n.textContent??``);e&&t.push(e)}return t.join(` `)},Sl=e=>e.getAttribute(`aria-hidden`)===`true`||e.hasAttribute(`hidden`)?!0:xn.has(e.tagName.toLowerCase()),Cl=(e,t,n)=>{if(e.nodeType===Node.TEXT_NODE){let r=bl(e.textContent??``);return r?(t.push(r),n-r.length):n}if(!zn(e)||Sl(e))return n;for(let r of e.childNodes)if(n=Cl(r,t,n),n<=0)break;return n},wl=(e,t)=>{if(Sl(e))return``;let n=xl(e);if(!bn.has(t)||n&&e.children.length===0)return n;let r=[];return Cl(e,r,100),r.join(` `)};q(),ea(),Bn(),Hn(),_i();let Tl=(e,t,n)=>`${e}="${vl(_l(t),n)}"`,El=e=>{let t=[];for(let n of vn){if(t.length>=8)break;let r=e.getAttribute(n);if(!r)continue;let i=n===`class`?15:120;t.push(Tl(n,r,i))}return t},Dl=e=>{let t=El(e);return t.length>0?` ${t.join(` `)}`:``},Ol=e=>e===`class`||e===`className`||e===`style`,kl=e=>{let t=El(e).map(e=>` ${e}`),n=[],r=[];for(let{name:t,value:i}of e.attributes)yl(t)||vn.includes(t)||Ol(t)||(yn.has(t)?n.push(i?` ${Tl(t,i,120)}`:` ${t}`):i&&r.push(` ${Tl(t,i,15)}`));return[...t,...n,...r].slice(0,8).join(``)},Al=e=>e.length===0?``:e.length<=2?e.map(e=>`<${$i(e)} ...>`).join(`
21
+ `):`(${e.length} elements)`,jl=e=>{let t=hi(e);if(t)return t.getPreview();let n=$i(e);if(!Vn(e)){let t=Dl(e),r=vl(gl(wl(e,n)),100);return r?`<${n}${t}>${r}</${n}>`:`<${n}${t} />`}let r=kl(e),i=vl(gl(wl(e,n)),100);return i?`<${n}${r}>${i}</${n}>`:`<${n}${r} />`},Ml=e=>{let t=hi(e);if(t)return t.getPreview();let n=$i(e),r=kl(e),i=wl(e,n),a=[],o=[],s=!1;for(let t of e.childNodes)t.nodeType!==Node.COMMENT_NODE&&(t.nodeType===Node.TEXT_NODE?t.textContent&&t.textContent.trim().length>0&&(s=!0):zn(t)&&(s?o.push(t):a.push(t)));let c=i.length>0&&bn.has(n),l=``,u=Al(a);u&&!c&&(l+=`\n ${u}`),i&&(l+=`\n ${vl(gl(i),100)}`);let d=Al(o);return d&&!c&&(l+=`\n ${d}`),l.length>0?`<${n}${r}>${l}\n</${n}>`:`<${n}${r} />`},Nl=new Set([`_`,`$`,`motion.`,`styled.`,`chakra.`,`ark.`,`Primitive.`,`Slot.`]),Pl=new Set(`AppRouter.AppRouterAnnouncer.AppDevOverlay.AppDevOverlayErrorBoundary.ClientPageRoot.ClientSegmentRoot.DevRootHTTPAccessFallbackBoundary.ErrorBoundary.ErrorBoundaryHandler.GracefulDegradeBoundary.HTTPAccessErrorFallback.HTTPAccessFallbackBoundary.HTTPAccessFallbackErrorBoundary.HandleRedirect.Head.HistoryUpdater.HotReload.InnerLayoutRouter.InnerScrollAndFocusHandler.InnerScrollAndFocusHandlerOld.InnerScrollAndMaybeFocusHandler.InnerScrollHandlerNew.LinkComponent.LoadableComponent.LoadingBoundary.LoadingBoundaryProvider.NotAllowedRootHTTPFallbackError.OfflineProvider.OuterLayoutRouter.RedirectBoundary.RedirectErrorBoundary.RenderFromTemplateContext.RenderValidationBoundaryAtThisLevel.ReplaySsrOnlyErrors.RootErrorBoundary.RootLevelDevOverlayElement.Router.ScrollAndFocusHandler.ScrollAndMaybeFocusHandler.SegmentBoundaryTrigger.SegmentBoundaryTriggerNode.SegmentStateProvider.SegmentTrieNode.SegmentViewNode.SegmentViewStateNode.ServerRoot.body.html`.split(`.`)),Fl=new Set([`<anonymous>`,`<unknown>`,`Anonymous`,`Unknown`]),Il=new Set([`Suspense`,`Fragment`,`StrictMode`,`Profiler`,`SuspenseList`]),Ll=new Set([`MotionDOMComponent`,`Slot`,`SlotClone`]),Rl=[`.Consumer`,`.Context`,`.Provider`,`.Slot`,`.SlotClone`,`.Slottable`,`ProviderProvider`],zl=(e,t=!1)=>{if(Fl.has(e)||t&&Pl.has(e)||Il.has(e)||Ll.has(e))return!0;for(let t of Rl)if(e.endsWith(t))return!0;for(let t of Nl)if(e.startsWith(t))return!0;return!1},Bl=(e,t=!1)=>!(!e||zl(e,t)),Vl=(e,t)=>e||t.isSemantic,Hl=e=>{let t=e.alternate,n=e._debugOwner,r=e._debugSource,i=e._debugStack;return{matches:a=>(a===e||a===t||a.alternate===e)&&a._debugOwner===n&&a._debugSource===r&&a._debugStack===i}},Ul=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e;q();let Wl=e=>JSON.stringify(Ul(e,120)),Gl=(e,t,n)=>{e.get(t)===n&&e.delete(t)};q();let Kl=async(e,t)=>{for(let n=0;n<2;n+=1){let r=e();if(!r)return t();let i=await r.valuePromise;if(r.isCurrent()||n===1)return i}return t()};fi(),q(),Di(),_i();let ql=(e,t)=>!(e.length<=1||zl(e,t)||e[0]!==e[0].toUpperCase()),Jl=(e,t)=>e&&ql(e,t)?e:null,Yl=e=>!Xc(e)&&!Yc(e),Xl=e=>{if(!Br())return e;let t=e;for(;t?.ownerDocument===e.ownerDocument;){if(gi(t))return t;if(t.parentElement){t=t.parentElement;continue}let e=t.getRootNode();t=Ei(e)?e.host:null}return e},Zl=e=>{let t=e.return?.child??null;for(;t;){if(t!==e&&t.key!==null)return!0;t=t.sibling}return!1},Ql=e=>{let t=e,n=0;for(;t;){if(t.key!==null&&Zl(t))return String(t.key);if(jr(t)&&(n+=1,n===2))break;t=t.return}return null},$l=e=>{if(!Br())return null;let t=gi(Xl(e));return Ql(t?Hr(t):null)},eu=new WeakMap,tu=new WeakMap,nu=e=>{let t=Xl(e),n=gi(t);if(!n)return null;let r=Hr(n);return{element:t,fiber:r,revision:Hl(r)}},ru=(e,t)=>{let n=nu(e);return!!(n&&n.element===t.element&&t.revision.matches(n.fiber))},iu=(e,t,n)=>Kl(()=>{let t=nu(e);return t?{isCurrent:()=>ru(e,t),valuePromise:n(t)}:null},t),au=e=>t=>fetch(t,{signal:e,priority:`high`}),ou=(e,t)=>hl(async t=>{try{let n=await Yo(e,!0,au(t));return el()?await cl(ul(e,n),t):n}catch{return null}},null,void 0,t),su=e=>{if(!Br())return Promise.resolve([]);let t=eu.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=ou(e.fiber,n.signal);if(!ru(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return eu.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t===null&&Gl(eu,e.element,i)}),i.promise},cu=e=>Br()?iu(e,()=>null,su):Promise.resolve([]),lu=async e=>{if(!Br())return null;let t=el(),n=Jl(hi(e)?_u(e):null,t);if(n)return n;let r=await cu(e);if(!r)return null;for(let e of r){let n=Jl(e.functionName,t);if(n)return n}return null},uu=e=>e[0]??null,du=(e,t)=>!e||!jr(e)?null:Jl(zr(e.type),t),fu=(e,t)=>hl(async t=>{try{let n=await $o(e,!0,au(t));if(!n?.fileName)return null;let r=el();return{filePath:Ls(n.fileName),lineNumber:n.lineNumber??null,columnNumber:n.columnNumber??null,componentName:Jl(n.functionName,r)??du(e._debugOwner,r),origin:oc(n.fileName).origin}}catch{return null}},null,void 0,t),pu=e=>{let t=tu.get(e.element);if(t?.revision.matches(e.fiber))return t.promise;let n=new AbortController,r=fu(e.fiber,n.signal);if(!ru(e.element,e))return r;let i={controller:n,promise:r,revision:e.revision};return tu.set(e.element,i),t?.controller.abort(),i.promise.then(t=>{t||Gl(tu,e.element,i)}),i.promise},mu=async e=>{let[t,n]=await Promise.all([pu(e),su(e)]);return{fiber:e.fiber,fiberSource:t,stack:n}},hu=(e,t)=>{let n=el(),r=(e,t)=>{let r=uu(e);return r?.fileName?{filePath:Ls(r.fileName),lineNumber:r.lineNumber??null,columnNumber:r.columnNumber??null,componentName:Jl(r.functionName,n),origin:t}:null},i=t.filter(e=>oc(e.fileName).origin===`app`),a=i.filter(e=>Yl(e.fileName));return e?.origin===`app`&&Yl(e.filePath)?e:r(a,`app`)||(e?.origin===`app`&&!Yc(e.filePath)?e:r(i,`app`)||(e?.origin===`app`||e?.origin===`package`?e:r(t.filter(e=>oc(e.fileName).origin===`package`),`package`)))},gu=async e=>iu(e,()=>null,async e=>{let t=await pu(e);return t?.origin===`app`&&Yl(t.filePath)?t:hu(t,await su(e)??[])}),_u=e=>vu(Xl(e),1)[0]??null,vu=(e,t,n=()=>!0)=>{if(!Br())return[];let r=gi(e);if(!r)return[];let i=el(),a=[];return Er(Hr(r),e=>{if(a.length>=t)return!0;if(jr(e)){let t=zr(e.type);t&&Bl(t,i)&&n(t)&&a.push(t)}return!1},!0),a},yu=[`/src/app/`,`/src/pages/`,`/app/`,`/pages/`],bu=(e,t)=>{let n=Ls(e);if(!t||!n.startsWith(`/`))return n;for(let e of yu){let t=n.indexOf(e);if(t!==-1)return`/./${n.slice(t+1)}`}return n},xu=(e,t)=>{let n=bu(e.filePath,t),r=t&&e.lineNumber?`${n}:${e.lineNumber}${e.columnNumber?`:${e.columnNumber}`:``}`:n;return e.componentName?`\n in ${e.componentName} (at ${r})`:`\n in ${r}`},Su={isAppSource:!1,consumesBudget:!1},Cu=(e,t,n,r)=>{let i=t.packageName,a=t.origin===`app`?e.fileName:null;if(e.isServer&&!a&&(n||!e.functionName)){let e=i?`${i} at Server`:`at Server`;return{text:`\n in ${n??`<anonymous>`} (${e})`,...Su}}return!a&&n?{text:i?`\n in ${n} (${i})`:`\n in ${n}`,...Su}:i?{text:`\n in ${i}`,...Su}:a?{text:xu({componentName:n,filePath:a,lineNumber:e.lineNumber??null,columnNumber:e.columnNumber??null},r),isAppSource:!0,consumesBudget:Yl(a)}:null},wu=(e,t={},n=null)=>{let r=Fs(t.maxLines),i=Math.max(r,20),a=el(),o=[],s=new Set,c=null,l=!1,u=!1,d=!1,f=0,p=e=>{e&&s.add(e)};if(n){let e=n.origin===`app`&&Yl(n.filePath);u=e,e&&(f+=1),p(n.componentName),o.push(xu(n,a))}for(let t of e){if(!r||o.length>=i)break;let e=oc(t.fileName),s=Jl(t.functionName,a),m=e.packageName?`${e.packageName}:${s??``}:${t.isServer?`server`:`client`}`:null;if(m&&m===c)continue;if(!l&&s&&s===n?.componentName){l=!0;continue}let h=Cu(t,e,s,a);h!==null&&(h.consumesBudget&&f>=r||h.text!==o[o.length-1]&&(h.isAppSource&&h.consumesBudget&&(u=!0),h.consumesBudget&&(f+=1,d=!0),p(s),o.push(h.text),c=m))}return{text:o.join(``),shouldAppendSelectorHint:!u,hasBudgetedStackFrame:d,renderedComponentNames:s,remainingHardLineCapacity:Math.max(0,i-o.length)}},Tu=(e,t)=>{let n=hu(e,t);return n?.origin===`app`?n:null},Eu=(e,t,n)=>{let r=Math.min(n,t.remainingHardLineCapacity);if(r===0)return t;let i=el(),a=vu(Xl(e),r,e=>ql(e,i)&&!t.renderedComponentNames.has(e));return a.length===0?t:{...t,text:`${t.text}${tl(a)}`,remainingHardLineCapacity:t.remainingHardLineCapacity-a.length}},Du=(e,t,n)=>{let r=n.stack??[],i=Tu(n.fiberSource,r),a=Fs(t.maxLines),o=wu(r,t,i);if(o.text)return o.hasBudgetedStackFrame?o:Eu(e,o,a);let s=vu(Xl(e),a),c=Math.max(a,20);return{text:tl(s),shouldAppendSelectorHint:!0,hasBudgetedStackFrame:!1,renderedComponentNames:new Set(s),remainingHardLineCapacity:Math.max(0,c-s.length)}},Ou=(e,t={})=>iu(e,()=>Du(e,t,{fiber:null,fiberSource:null,stack:[]}),async n=>Du(e,t,await mu(n))),ku=async(e,t={})=>(await Ou(e,t)).text,Au=(e,t)=>{let n=$l(e),r=n===null?``:`\n key: ${Wl(n)}`,i=t.shouldAppendSelectorHint?Bc(Kc(e)):qc(e),a=i&&Vl(t.shouldAppendSelectorHint,i)?i.selector:null,o=a?`\n selector: ${a}`:``;return{selector:a,text:`${t.text}${r}${o}`}},ju=async(e,t={})=>{let n=Xl(e);return`${Ml(n)}${Au(n,await Ou(n,t)).text}`},Mu=(e,t,n)=>{let r=t.stack??[],i=hu(t.fiberSource,r);return{componentName:_u(e),fiber:t.fiber,source:i,stack:r,stackContext:n.text}},Nu=(e,t,n)=>{let r=Du(e,t,n),i=Au(e,r);return{...Mu(e,n,r),referenceContext:`${jl(e)}${i.text.replace(/\n\s+/g,` `)}`}},Pu=(e,t,n)=>iu(e,()=>n(e,t,{fiber:null,fiberSource:null,stack:[]}),async r=>n(e,t,await mu(r))),Fu=(e,t={})=>Pu(e,t,Nu);R();let Iu=e=>{let[t,n]=c(void 0),r=0;return d(_(e,e=>{let t=++r;if(!e){n(void 0);return}let i=_u(e)??void 0;n(i),lu(e).then(e=>{r===t&&n(e??i)}).catch(()=>{r===t&&n(i)})})),[t,n]};var Lu,Ru,zu,Bu,Vu,Hu,Uu=n((()=>{Lu=typeof window<`u`,Ru=e=>0,zu=e=>{},Bu=Lu?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Ru,Vu=Lu?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):zu,Hu=()=>Lu?new Promise(e=>Bu(()=>e())):Promise.resolve()}));Uu();let Wu=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,Gu=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),Ku=(e,t,n,r=1)=>{let i=Gu(e),a=Gu(t),o=Gu(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${Gu(r*255)}`},qu=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},Ju=e=>{let t=e.match(Wu);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return Ku(Number(t[1]),Number(t[2]),Number(t[3]),n)},Yu=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Xu=e=>{let t=e.match(Yu);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},Zu=`rgba(0, 0, 0, 0)`,Qu=`#00000000`,$u=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,ed=180/Math.PI,td=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),nd=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*ed:t===`turn`?n*360:n},rd=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},id=e=>{let t=e.match($u);if(!t)return null;let n=td(t[1],1),r=td(t[2],.4),i=nd(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:td(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return Ku(rd(m),rd(h),rd(g),Math.max(0,Math.min(1,a)))},ad=null,od=()=>ad||(typeof document>`u`?null:(ad=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),ad)),sd=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?Qu:Ku(n[0],n[1],n[2],n[3]/255)},cd=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return Qu;let n=Xu(t);if(n)return n;let r=id(t);if(r)return r;let i=od();if(!i)return null;i.fillStyle=Zu,i.fillStyle=t;let a=i.fillStyle;return typeof a==`string`?a.toLowerCase()===Zu?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?Qu:null:a.startsWith(`#`)&&a.length===7?a:a.startsWith(`rgb`)?Ju(a):sd(i,t):null};q();let ld=[`data-theme`,`data-mode`,`data-color-scheme`,`data-bs-theme`,`data-mui-color-scheme`,`data-mantine-color-scheme`],ud=[{attribute:`data-dark`,theme:`dark`},{attribute:`data-light`,theme:`light`}],dd=(e,t,n)=>{let[r,i,a]=[e,t,n].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*i+.0722*a},fd=(e,t=0)=>{let n=cd(e),r=n?qu(n):null;return!r||r.alpha<=t?null:dd(r.red,r.green,r.blue)},pd=e=>{let t=fd(e);return t===null?null:t<.18?`dark`:`light`},md=e=>pd(getComputedStyle(e).backgroundColor),hd=()=>{let e=fd(getComputedStyle(document.documentElement).color,En);return e===null?null:e>.6?`dark`:null},gd=()=>{let e=document.createElement(`div`);e.style.cssText=`position:fixed;width:0;height:0;background-color:Canvas!important`,document.documentElement.appendChild(e);let t=pd(getComputedStyle(e).backgroundColor);return e.remove(),t},_d=e=>{let t=e.toLowerCase();return t===`dark`?`dark`:t===`light`?`light`:null},vd=e=>{let t=e.style.colorScheme||getComputedStyle(e).colorScheme;return t?t.trim().toLowerCase().split(/\s+/):[]},yd=e=>{let t=vd(e),n=t.includes(`dark`);return n===t.includes(`light`)?null:n?`dark`:`light`},bd=e=>{if(e.classList.contains(`dark`))return`dark`;if(e.classList.contains(`light`))return`light`;for(let t of ld){let n=e.getAttribute(t);if(!n)continue;let r=_d(n);if(r)return r}for(let{attribute:t,theme:n}of ud)if(e.hasAttribute(t))return n;return null},xd=(e,t)=>{for(let n of e){if(!n)continue;let e=t(n);if(e)return e}return null},Sd=()=>{let e=[document.documentElement,document.body],t=[document.body,document.documentElement];return xd(e,bd)??xd(e,yd)??xd(t,md)??hd()??gd()??`light`},Cd=e=>e===`dark`?`light`:`dark`,wd=()=>{let e=[];for(let t of[document.documentElement,document.body]){if(!t)continue;e.push(t.className);for(let n of ld)e.push(t.getAttribute(n)??``);for(let{attribute:n}of ud)e.push(t.hasAttribute(n)?`1`:``);let n=t.style;e.push(n.colorScheme,n.backgroundColor,n.color);for(let t=0;t<n.length;t++){let r=n[t];r.startsWith(`--`)&&e.push(`${r}:${n.getPropertyValue(r)}`)}}return e.join(`|`)},Td={attributes:!0,attributeFilter:[`class`,`style`,...ld,...ud.map(({attribute:e})=>e)]},Ed=(e,t)=>{let n=null,r=null,i=null,a=i=>{if(i===r&&n!==null)return getComputedStyle(document.body??document.documentElement).backgroundColor,n;r=i;let a=Cd(Sd());return a!==n&&(n=a,e.setAttribute(`data-rg-theme`,a),t?.(a)),a},o=()=>a(wd()),s=()=>{i!==null&&(Vu(i),i=null)},c=()=>{i===null&&(i=Bu(()=>{i=null,o()}))},l=o(),u=()=>{let e=wd();if(e===r){c();return}s(),a(e)},d=new MutationObserver(u);d.observe(document.documentElement,Td);let f=null;document.body?d.observe(document.body,Td):(f=new MutationObserver((e,t)=>{document.body&&(t.disconnect(),f=null,d.observe(document.body,Td),u())}),f.observe(document.documentElement,{childList:!0}));let p=()=>{r=null,c()},m=window.matchMedia(`(prefers-color-scheme: dark)`);return m.addEventListener(`change`,p),{theme:l,cleanup:()=>{f?.disconnect(),d.disconnect(),m.removeEventListener(`change`,p),s()}}},Dd=()=>{},Od=()=>({activate:Dd,deactivate:Dd,toggle:Dd,comment:Dd,isActive:()=>!1,isEnabled:()=>!1,setEnabled:Dd,getToolbarState:()=>null,setToolbarState:Dd,onToolbarStateChange:()=>Dd,reset:Dd,dispose:Dd,copyElement:()=>Promise.resolve(!1),getSource:()=>Promise.resolve(null),getStackContext:()=>Promise.resolve(``),getState:()=>({isActive:!1,isDragging:!1,isCopying:!1,isPromptMode:!1,isSelectionBoxVisible:!1,isDragBoxVisible:!1,targetElement:null,dragBounds:null,grabbedBoxes:[],labelInstances:[],selectionFilePath:null,toolbarState:null}),setOptions:Dd,registerPlugin:Dd,unregisterPlugin:Dd,getPlugins:()=>[],getDisplayName:()=>null}),kd=()=>{let e=new AbortController;return{signal:e.signal,abort:()=>e.abort(),addWindowListener:(t,n,r={})=>{window.addEventListener(t,n,{...r,signal:e.signal})},addDocumentListener:(t,n,r={})=>{document.addEventListener(t,n,{...r,signal:e.signal})}}};q(),wa();let Ad=(e,t)=>{let n=t?.componentName??`div`,r={version:Xt,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${gl(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},jd=(e,t=`Unknown error`)=>e instanceof Error&&e.message?e.message:t,Md=e=>e instanceof Error?e:Error(String(e)),Nd=Symbol(`aborted-promise-result`),Pd=async(e,t)=>{if(!t)return e;if(t.aborted)return Nd;let n=()=>{},r=new Promise(e=>{n=()=>e(Nd)});t.addEventListener(`abort`,n,{once:!0});try{return await Promise.race([e,r])}finally{t.removeEventListener(`abort`,n)}};ea();let Fd={status:`cancelled`},Id=e=>({functionName:e.functionName,fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,isServer:e.isServer,isSymbolicated:e.isSymbolicated}),Ld=async(e,t)=>{let n=await Fu(e,{maxLines:t});return{tagName:$i(e),componentName:n.componentName??n.source?.componentName??void 0,content:`[${n.referenceContext}]`,source:n.source,stackContext:n.stackContext,frames:n.stack.map(Id)}},Rd=async(e,t)=>{let n=[...new Set(e)],r=await Promise.all(n.map(e=>Ld(e,t)));return r.length>0?{content:r.map(e=>e.content).join(`
22
+ `),entries:r}:null},zd=(e,t,n)=>{if(e?.entries)return t===e.content?e.entries:e.entries.length===1?[{...e.entries[0],content:t,commentText:n}]:e.entries.map(e=>({...e,commentText:n}))},Bd=async(e,t,n,r)=>{if(e.signal?.aborted||await Pd(t.onBeforeCopy(n),e.signal)===Nd)return Fd;let i=!1,a=!1,o=``;try{let s=await Pd(e.getContent?Promise.resolve(e.getContent(n)).then(e=>({content:e})):Rd(n,e.maxContextLines),e.signal);if(s===Nd)return Fd;let c=s?.content;if(c?.trim()){let l=await Pd(t.transformCopyContent(c,n),e.signal);if(l===Nd)return Fd;o=r?`${r}\n${l}`:l,o.trim()&&(a=!0,i=Ad(o,{componentName:e.componentName,entries:zd(s,o,r)}))}}catch(n){if(!a&&e.signal?.aborted)return Fd;t.onCopyError(Md(n))}return!a&&e.signal?.aborted?Fd:(i&&t.onCopySuccess(n,o),t.onAfterCopy(n,i),{status:i?`succeeded`:`failed`})};var Vd,Hd=n((()=>{Vd=e=>{try{return e.contentDocument}catch{return null}}})),Ud,Wd=n((()=>{qn(),Yn(),Ud=(e,t,n)=>{let r=e.getBoundingClientRect(),i=Kn(e),a=Jn(r.width,i.width),o=Jn(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}}})),Gd,Kd,qd=n((()=>{Wd(),Hd(),J(),Gd=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(Un(r)){let e=Vd(r);if(!e)return r;let i=Ud(r,t,n);return Gd(e,i.x,i.y)??r}return r}return null},Kd=(e,t)=>Gd(document,e,t)})),Jd,Yd=n((()=>{q(),ga(),Jd=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=ha(t)}return!1}})),Xd,Zd,Qd,$d,ef=n((()=>{tr(),Xd=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,Zd={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},Qd={checkVisibilityCSS:!0,visibilityProperty:!0},$d=(e,t)=>{if(Xd&&!t)return e.checkVisibility(Zd)?!0:e.checkVisibility(Qd)?er(e).opacity!==`0`:!1;let n=t??er(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`}})),tf,nf=n((()=>{ea(),tf=e=>{let t=$i(e);return t===`html`||t===`body`}})),rf,af,of=n((()=>{rf=[`data-react-grab`,`data-react-grab-demo`],af=e=>rf.some(t=>e.hasAttribute(t))})),sf,cf=n((()=>{of(),Di(),sf=e=>{if(af(e))return!0;let t=e.getRootNode();return Ei(t)&&af(t.host)}})),lf,uf,df,ff,pf,mf,hf=n((()=>{q(),ef(),nf(),tr(),cf(),Yd(),_i(),lf=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},uf=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},df=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(uf(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3},ff=new WeakMap,pf=()=>{ff=new WeakMap},mf=e=>{let t=hi(e);if(t)return t.isConnected();if(tf(e)||sf(e)||Jd(e))return!1;let n=performance.now(),r=ff.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!$d(e))return ff.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=er(e);if(lf(t)||df(t))return!1}return ff.set(e,{isVisible:!0,timestamp:n}),!0}})),gf,_f=n((()=>{gf=e=>{if(e===`transparent`)return!0;let t=e.lastIndexOf(`/`);if(t>=0)return Number.parseFloat(e.slice(t+1))===0;if(!e.startsWith(`rgba(`))return!1;let n=e.lastIndexOf(`,`);return n>=0&&Number.parseFloat(e.slice(n+1))===0}})),vf,yf=n((()=>{_f(),vf=e=>{let t=e.ownerDocument.defaultView?.getComputedStyle?.(e);if(!t)return!1;let n=t.backgroundClip!==`text`&&(t.backgroundImage!==`none`||!gf(t.backgroundColor)),r=t.borderTopStyle!==`none`&&t.borderTopWidth!==`0px`||t.borderRightStyle!==`none`&&t.borderRightWidth!==`0px`||t.borderBottomStyle!==`none`&&t.borderBottomWidth!==`0px`||t.borderLeftStyle!==`none`&&t.borderLeftWidth!==`0px`;return n||r||t.boxShadow!==`none`||t.outlineStyle!==`none`}})),bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf=n((()=>{q(),$n(),yf(),Bn(),Hn(),bf=new Set([`A`,`AUDIO`,`BUTTON`,`CANVAS`,`DETAILS`,`EMBED`,`IFRAME`,`IMG`,`INPUT`,`METER`,`OBJECT`,`OPTION`,`PROGRESS`,`SELECT`,`SUMMARY`,`SVG`,`TEXTAREA`,`VIDEO`]),xf=new Set([`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`scrollbar`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`,`treeitem`]),Sf=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DEL.DFN.EM.I.INS.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`)),Cf=new WeakMap,wf=new WeakMap,Tf=()=>{Cf=new WeakMap,wf=new WeakMap},Ef=(e,t,n)=>(Cf.set(e,t),wf.set(e,n),t),Df=e=>bf.has(e.tagName)||xf.has(e.getAttribute(`role`)??``)||Vn(e)&&e.isContentEditable,Of=e=>{let t=performance.now(),n=wf.get(e);if(n!==void 0&&t-n<16)return Cf.get(e)??null;if(Df(e)||e.childNodes.length>64)return Ef(e,null,t);let r=[],i=[],a=0;for(let t=e.childNodes.length-1;t>=0;--t)i.push(e.childNodes[t]);for(;i.length>0;){if(a+=1,a>64)return Ef(e,null,t);let n=i.pop();if(n){if(n.nodeType===Node.TEXT_NODE){if(n.textContent?.trim()&&(r.push(n),r.length>32))return Ef(e,null,t);continue}if(!zn(n)||!Sf.has(n.tagName)||a+i.length+n.childNodes.length>64)return Ef(e,null,t);for(let e=n.childNodes.length-1;e>=0;--e)i.push(n.childNodes[e])}}if(r.length===0||vf(e))return Ef(e,null,t);try{let n=e.ownerDocument.createRange(),i=Qn(e.ownerDocument.defaultView,0,0),a=[];for(let o of r){n.selectNodeContents(o);let r=n.getClientRects();if(a.length+r.length>64)return Ef(e,null,t);for(let e=0;e<r.length;e+=1){let t=r[e],n=t.width*i.scaleX,o=t.height*i.scaleY;!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(n)||!Number.isFinite(o)||n<=0||o<=0||a.push({borderRadius:`0px`,height:o,width:n,x:i.x+t.left*i.scaleX,y:i.y+t.top*i.scaleY})}}return Ef(e,a.length>0?a:null,t)}catch{return Ef(e,null,t)}}})),Af,jf=n((()=>{kf(),Af=(e,t,n)=>{let r=Of(e);if(!r)return!0;for(let e of r)if(t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height)return!0;return!1}})),Mf,Nf,Pf=n((()=>{Wd(),Hd(),J(),Yd(),hf(),jf(),wa(),Mf=(e,t,n,r,i)=>{let a=!0;for(let o of e.elementsFromPoint(t,n)){if(Jd(o)&&(a=!1),!Sa(o))continue;let s=o.shadowRoot;if(a&&s&&s!==e){let e=Mf(s,t,n,r,i);if(e)return e}if(a&&Un(o)){let e=Vd(o);if(e){let a=Ud(o,t,n),s=Mf(e,a.x,a.y,r,i);if(s)return s}}if(mf(o)&&Af(o,r,i))return o}return null},Nf=(e,t)=>Mf(document,e,t,e,t)})),Ff,If,Lf=n((()=>{Wd(),Hd(),J(),Yd(),Ff=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(Jd(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&Ff(o.shadowRoot,t,n,r),a&&Un(o)){let e=Vd(o);if(e){let i=Ud(o,t,n);Ff(e,i.x,i.y,r)}}r.add(o)}},If=(e,t)=>{let n=new Set;return Ff(document,e,t,n),[...n]}})),Rf,zf=n((()=>{Wd(),Zn(),J(),Rf=(e,t,n)=>{let r=[],i=e;for(;i&&i!==window;){let e=Xn(i);if(!e||!Un(e))break;r.push(e),i=e.ownerDocument.defaultView}let a=t,o=n;for(let e=r.length-1;e>=0;--e){let t=Ud(r[e],a,o);a=t.x,o=t.y}return{x:a,y:o}}})),Bf,Vf,Hf,Uf,Wf=n((()=>{zf(),tr(),Bn(),nf(),Di(),Bf=`http://www.w3.org/2000/svg`,Vf=e=>{if(e.localName===`svg`)return e;let t=e,n=e.parentElement;for(;n?.namespaceURI===Bf&&(t=n,n.localName!==`svg`);)n=n.parentElement;return t},Hf=(e,t,n,r)=>{if(typeof e.caretPositionFromPoint==`function`){let i=e.caretPositionFromPoint(t,n,{shadowRoots:r?[r]:[]});if(i)return i.offsetNode}return typeof e.caretRangeFromPoint==`function`?e.caretRangeFromPoint(t,n)?.startContainer??null:null},Uf=(e,t,n)=>{if(tf(e))return null;let r=e.ownerDocument,i=r.defaultView;if(!i)return null;let a=Rf(i,t,n),o=e.getRootNode(),s=Hf(r,a.x,a.y,Ei(o)?o:null);if(!s)return null;let c=zn(s)?s:s.parentElement;if(!c||c===e)return null;let l=e.namespaceURI===Bf;return!(l?Vf(e):e).contains(c)||!l&&er(c).pointerEvents!==`none`?null:c}})),Gf,Kf=n((()=>{Gf=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom})),qf,Jf=n((()=>{la(),fa(),qf=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=ca(n);return i&&(r.nonce=i),da(r),r.textContent=t,n.head.appendChild(r),r}})),Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp=n((()=>{q(),Jf(),Yf=`html { pointer-events: none !important; }
23
+ iframe[${Tn}] { pointer-events: auto !important; }`,Xf=`html, body { pointer-events: auto !important; }`,Zf=new Set,Qf=new Map,$f=!1,ep=e=>{if(Qf.has(e))return;let t=qf(`data-react-grab-frozen-pseudo`,Yf,e),n=qf(`data-react-grab-hittest-override`,Xf,e);n.disabled=!0,Qf.set(e,{pointerEventsStyle:t,hitTestOverrideStyle:n})},tp=e=>{let t=Qf.get(e);t&&(t.pointerEventsStyle.remove(),t.hitTestOverrideStyle.remove(),Qf.delete(e))},np=()=>$f,rp=e=>(Zf.add(e),$f&&ep(e),()=>{Zf.delete(e),tp(e)}),ip=()=>{if(!$f){$f=!0,Zf.add(document);for(let e of Zf)ep(e)}},ap=()=>{if($f){$f=!1;for(let e of[...Qf.keys()])tp(e)}},op=()=>{if($f)for(let e of Qf.values())e.pointerEventsStyle.disabled||(e.pointerEventsStyle.disabled=!0),e.hitTestOverrideStyle.disabled&&(e.hitTestOverrideStyle.disabled=!1)},sp=()=>{if($f)for(let e of Qf.values())e.pointerEventsStyle.disabled&&(e.pointerEventsStyle.disabled=!1),e.hitTestOverrideStyle.disabled||(e.hitTestOverrideStyle.disabled=!0)}})),lp,up=n((()=>{lp=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)}})),dp,fp,pp,mp,hp,gp,_p,vp=n((()=>{wa(),up(),dp=new Set,fp=new Set,pp=!1,mp=(e,t)=>{if(fp.has(e))try{e.unfreeze()}catch(e){t.push(e)}finally{fp.delete(e)}},hp=e=>{dp.add(e);try{pp&&e.isConnected()&&(e.freeze(),fp.add(e))}catch(t){throw dp.delete(e),t}return()=>{let t=[];mp(e,t),dp.delete(e),lp(t,`Unregistering renderer freeze failed`)}},gp=()=>{if(!pp){pp=!0;try{for(let e of dp)e.isConnected()&&(e.freeze(),fp.add(e))}catch(e){pp=!1;let t=[];for(let e of[...fp].reverse())mp(e,t);throw t.length===0?e:AggregateError([e,...t],`Rolling back renderer freeze failed`)}}},_p=()=>{if(!pp)return;pp=!1;let e=[];for(let t of[...fp].reverse())mp(t,e);lp(e,`Unfreezing renderers failed`)}})),yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm=n((()=>{fi(),q(),Si(),vp(),_i(),yp=new WeakMap,bp=new WeakMap,xp=new WeakMap,Sp=new WeakMap,Cp=new WeakMap,wp=[`name`,`position`,`rotation`,`scale`,`color`,`visible`,`args`],Tp=e=>typeof e==`object`&&!!e,Ep=e=>typeof e==`object`&&!!e||typeof e==`function`,Dp=(e,t)=>typeof e[t]==`function`,Op=e=>Tp(e)&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.z==`number`&&Dp(e,`set`)&&Dp(e,`clone`)&&Dp(e,`applyMatrix4`)&&Dp(e,`project`),kp=e=>Tp(e)&&Dp(e,`clone`)&&Dp(e,`premultiply`),Ap=e=>Tp(e)&&`boundingBox`in e&&Dp(e,`computeBoundingBox`),jp=e=>Tp(e)&&typeof e.type==`string`&&Tp(e.props)&&Mp(e.object),Mp=e=>Tp(e)&&e.isObject3D===!0&&typeof e.uuid==`string`&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.visible==`boolean`&&kp(e.matrixWorld)&&Dp(e,`updateWorldMatrix`),Np=e=>Tp(e)&&e.isCamera===!0,Pp=e=>Mp(e)&&e.isScene===!0&&Array.isArray(e.children),Fp=e=>Tp(e)&&typeof e.tagName==`string`&&e.tagName.toLowerCase()===`canvas`&&Dp(e,`getContext`),Ip=e=>Tp(e)&&Fp(e.domElement),Lp=e=>Tp(e)&&Dp(e,`set`),Rp=e=>Tp(e)&&Dp(e,`setFromCamera`)&&Dp(e,`intersectObjects`),zp=e=>Tp(e)&&Ip(e.gl)&&Pp(e.scene)&&Np(e.camera)&&Rp(e.raycaster)&&Lp(e.pointer),Bp=e=>e===`always`||e===`demand`||e===`never`,Vp=e=>Tp(e)&&typeof e.elapsedTime==`number`,Hp=(e,t)=>{let n=e.getState();if(typeof n.setFrameloop!=`function`)return;let r=Vp(n.clock)?n.clock.elapsedTime:null;n.setFrameloop(t);let i=e.getState().clock;r!==null&&Vp(i)&&(i.elapsedTime=r)},Up=e=>{if(Sp.has(e))return;let t=null,n=hp({freeze:()=>{let n=xp.get(e);if(!n)return;let r=n.getState();if(Bp(r.frameloop)&&typeof r.setFrameloop==`function`){let e=r.frameloop;Hp(n,`never`),t=()=>Hp(n,e)}},isConnected:()=>e.isConnected,unfreeze:()=>{t?.(),t=null}});Sp.set(e,n)},Wp=e=>{let t=Sp.get(e);t&&(Sp.delete(e),t())},Gp=e=>jp(e.__r3f)?e.__r3f:null,Kp=e=>{let t=e.current.stateNode;if(!Tp(t)||!Ep(t.containerInfo))return null;let n=t.containerInfo,r=Reflect.get(n,`getState`);if(typeof r!=`function`)return null;let i=Reflect.apply(r,n,[]);return zp(i)?()=>{let e=Reflect.apply(r,n,[]);return zp(e)?e:i}:null},qp=e=>{let t=Cp.get(e);t&&(Cp.delete(e),xp.get(t.canvas)===t.root&&(xp.delete(t.canvas),Wp(t.canvas)))},Jp=e=>{let t=Kp(e);if(!t){qp(e);return}let n=t().gl.domElement;if(!n.isConnected||!e.current.child){qp(e);return}let r=Cp.get(e);r&&r.canvas!==n&&(qp(e),r=void 0),r?(r.root.getState=t,r.root.selectableObjects=null):(r={canvas:n,root:{getState:t,selectableObjects:null}},Cp.set(e,r)),xp.set(n,r.root),Up(n)},si({name:`react-grab-three-selection`,onCommitFiberRoot:(e,t)=>Jp(t)}),Yp=e=>{let t=e;for(;t;){if(Gp(t))return t;t=t.parent}return null},Xp=e=>{let t=e;for(;t;){let e=Gp(t);if(e&&typeof e.eventCount==`number`&&e.eventCount>0)return!0;t=t.parent}return!1},Zp=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1},Qp=e=>{let t=e;for(;t;){if(!t.visible)return!1;t=t.parent}return!0},$p=e=>!!Gp(e)&&(Ap(e.geometry)||e.type.toLowerCase()===`sprite`),em=e=>e.isInstancedMesh!==!0||typeof e.count!=`number`||!Number.isInteger(e.count)||e.count<=0||!e.getMatrixAt?0:e.count,tm=(e,t,n,r)=>{try{let i={object:n};r!==void 0&&(i.instanceId=r);let a=nm(t,n,i);a&&e.push(a)}catch{}},nm=(e,t,n)=>{let r=typeof n.instanceId==`number`&&Number.isInteger(n.instanceId)?n.instanceId:null,i=yp.get(t);i||(i=new Map,yp.set(t,i));let a=i.get(r);if(a)return a.canvas=e.gl.domElement,a.intersectionPoint=Op(n.point)?n.point:null,a.object=t,a.rootState=e,a.element;let o=Gp(t),s=o?ui(o):null;if(o&&!s)return null;let c=(o?.type||t.type||`object-3d`).toLowerCase(),l=e.gl.domElement.ownerDocument.createElement(c),u={canvas:e.gl.domElement,element:l,fiber:s,instance:o,instanceId:r,intersectionPoint:Op(n.point)?n.point:null,object:t,rootState:e,tagName:c},d=l.getBoundingClientRect.bind(l);return l.getBoundingClientRect=()=>{let e=pm(u),t=l.ownerDocument.defaultView?.DOMRect;return t?new t(e.x,e.y,e.width,e.height):d()},mi(l,{hostElement:u.canvas,supportsDomEditing:!1,getBounds:()=>pm(u),getFiber:()=>u.fiber?Hr(u.fiber):null,getPreview:()=>om(u),getSelector:()=>sm(u),getTagName:()=>u.tagName,isConnected:()=>u.canvas.isConnected&&Zp(u.object,u.rootState.scene)}),i.set(r,u),bp.set(l,u),l},rm=(e,t,n)=>{if(!Fp(e))return e;let r=xp.get(e);if(!r)return e;try{let i=r.getState(),a=Y(e);if(a.width<=0||a.height<=0)return e;let o=(t-a.x)/a.width*2-1,s=-((n-a.y)/a.height)*2+1;if(o<-1||o>1||s<-1||s>1)return e;i.pointer.set(o,s),i.raycaster.setFromCamera(i.pointer,i.camera);let c=i.raycaster.intersectObjects(i.scene.children,!0);for(let e of c){if(!Xp(e.object))continue;let t=Yp(e.object);if(!t||t.visible===!1)continue;let n=nm(i,t,e);if(n)return n}for(let e of c){let t=Yp(e.object);if(!t||t.visible===!1)continue;let n=nm(i,t,e);if(n)return n}}catch{}return e},im=(e,t)=>{if(!Fp(e))return[];let n=xp.get(e);if(!n)return[];try{let e=n.getState(),r=t?bp.get(t):null;if(!n.selectableObjects){let t=[],r=[...e.scene.children];for(let e=0;e<r.length;e+=1){let n=r[e];if(n.children)for(let e of n.children)r.push(e);$p(n)&&t.push(n)}n.selectableObjects=t}let i=[];for(let t of n.selectableObjects){if(!Qp(t)||!Zp(t,e.scene)||t.isInstancedMesh===!0&&t.count===0)continue;let n=em(t);if(n>0&&n<=512){for(let r=0;r<n;r+=1)tm(i,e,t,r);continue}if(n>512&&r?.object===t&&r.instanceId!==null){i.push(r.element);continue}tm(i,e,t)}return i}catch{return[]}},am=e=>typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?`{${String(e)}}`:Array.isArray(e)&&e.length<=4&&e.every(e=>typeof e==`number`||typeof e==`string`)?`{${JSON.stringify(e)}}`:null,om=e=>{let t=e.instance?.props??{},n=[];for(let r of wp){let i=t[r];r===`name`&&i===void 0&&e.object.name&&(i=e.object.name);let a=am(i);a&&n.push(`${r}=${a}`)}return e.instanceId!==null&&n.push(`instanceId={${e.instanceId}}`),`<${e.tagName}${n.length>0?` ${n.join(` `)}`:``} />`},sm=e=>{if(e.object.name)return`${e.tagName}[name=${JSON.stringify(e.object.name)}]`;let t=e.instanceId===null?``:`:${e.instanceId}`;return`${e.tagName}[uuid=${JSON.stringify(`${e.object.uuid}${t}`)}]`},cm=e=>{e.object.updateWorldMatrix(!0,!1);let t=e.object.matrixWorld.clone();if(e.instanceId===null||!e.object.getMatrixAt)return t;let n=e.object.matrixWorld.clone();return e.object.getMatrixAt(e.instanceId,n),n.premultiply(t)},lm=e=>{if(!Ap(e.geometry))return null;if(!e.geometry.boundingBox)try{e.geometry.computeBoundingBox()}catch{return null}let t=e.geometry.boundingBox;return!t||!Op(t.min)||!Op(t.max)?null:t},um=e=>{if(e.isInstancedMesh!==!0||typeof e.computeBoundingBox!=`function`)return null;if(!e.boundingBox)try{e.computeBoundingBox()}catch{return null}let t=e.boundingBox;return!t||!Op(t.min)||!Op(t.max)?null:t},dm=e=>e.instanceId===null?um(e.object)??lm(e.object):lm(e.object),fm=(e,t)=>{let n=t.x+t.width/2,r=t.y+t.height/2;try{let i=e.intersectionPoint?e.intersectionPoint.clone():Op(e.object.position)?e.object.position.clone().set(0,0,0).applyMatrix4(cm(e)):null;i&&(i.project(e.rootState.camera),Number.isFinite(i.x)&&Number.isFinite(i.y)&&(n=t.x+(i.x+1)/2*t.width,r=t.y+(1-i.y)/2*t.height))}catch{}return{x:n-16/2,y:r-16/2,width:16,height:16,borderRadius:`0px`}},pm=e=>{let t=Y(e.canvas);try{let n=dm(e);if(!n)return fm(e,t);let r=cm(e),i=[n.min.x,n.max.x],a=[n.min.y,n.max.y],o=[n.min.z,n.max.z],s=1/0,c=1/0,l=-1/0,u=-1/0,d=n.min.clone();for(let n of i)for(let i of a)for(let a of o){if(d.set(n,i,a).applyMatrix4(r).project(e.rootState.camera),!Number.isFinite(d.x)||!Number.isFinite(d.y))continue;let o=t.x+(d.x+1)/2*t.width,f=t.y+(1-d.y)/2*t.height;s=Math.min(s,o),c=Math.min(c,f),l=Math.max(l,o),u=Math.max(u,f)}if(!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(l)||!Number.isFinite(u))return fm(e,t);let f=Math.max(t.x,s),p=Math.max(t.y,c),m=Math.min(t.x+t.width,l),h=Math.min(t.y+t.height,u);return m<=f||h<=p?fm(e,t):{x:f,y:p,width:m-f,height:h-p,borderRadius:`0px`}}catch{return fm(e,t)}}})),hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm=n((()=>{q(),Si(),Hd(),qd(),Pf(),Lf(),ga(),kf(),Wf(),wa(),J(),Kf(),jf(),hf(),cp(),mm(),hm=null,gm=null,_m=null,vm=()=>{_m!==null&&clearTimeout(_m),_m=setTimeout(()=>{_m=null,sp()},100)},ym=()=>{_m!==null&&(clearTimeout(_m),_m=null)},bm=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},xm=(e,t,n)=>{let r=rm(e,t,n);return mf(r)&&Sa(e)&&Af(e,t,n)?r:null},Sm=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];ym(),op();try{let n=If(e,t),r=xa()?n.filter(Sa):n,i=[],a=new Set,o=!1;for(let n of r){let r=n,s=Af(n,e,t);if(!o){let i=Uf(n,e,t);i&&Sa(i)&&mf(i)&&Af(i,e,t)?(r=i,s=!0,o=!0):mf(n)&&s&&(o=!0)}let c=rm(r,e,t);if(s&&!a.has(c)&&(a.add(c),i.push(c)),r===n)continue;let l=ha(r);for(;l&&Sa(l);){let n=rm(l,e,t);Af(l,e,t)&&!a.has(n)&&(a.add(n),i.push(n)),l=ha(l)}break}return i}finally{vm()}},Cm=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(gm){let r=gm.element,i=n-gm.timestamp<16;if(r.isConnected&&i&&Gf(e,t,gm.bounds)&&!Vd(r))return r;gm=null,hm?.element===r&&(hm=null)}if(hm){let r=bm(e,t,hm.clientX,hm.clientY),i=n-hm.timestamp<16;if(r&&i){if(!hm.preciseHitElement)return hm.element;let n=Uf(hm.preciseHitElement,e,t);if(n){let r=xm(n,e,t);if(r)return r}return hm.usesTextHitTesting?xm(hm.preciseHitElement,e,t)??Nf(e,t):hm.fallbackElement}}ym(),op();try{let r=null,i=Kd(e,t),a=i?Of(i)!==null:!1,o=i?Uf(i,e,t):null,s=o?xm(o,e,t):null,c=(i?xm(i,e,t):null)??Nf(e,t);if(r=s??c,r&&Un(r)&&!Vd(r)){let e=Y(r);gm={element:r,timestamp:n,bounds:{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}}else gm=null;return hm={clientX:e,clientY:t,element:r,fallbackElement:c,preciseHitElement:i?.namespaceURI===`http://www.w3.org/2000/svg`||o||a?i:null,usesTextHitTesting:a,timestamp:n},r}finally{vm()}},wm=()=>{ym(),sp(),hm=null,gm=null}})),Em,Dm=n((()=>{Em=(e,t,n)=>Math.max(t,Math.min(e,n))}));Tm(),Dm(),ma(),Di(),Zn();let Om=e=>{let t=[],n=e;for(;n;){t.unshift(n);let e=n.getRootNode();if(Ei(e)){n=e.host;continue}if(!pa(e))break;n=Xn(e.defaultView)}return t},km=(e,t)=>{if(e===t)return 0;let n=Om(e),r=Om(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1){let t=n[e],i=r[e];if(t===i)continue;let a=t.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}return n.length-r.length};cp(),q(),nf(),wa(),Lf(),Wf(),Si(),kf(),ga(),Hd(),J(),Di(),mm();let Am=e=>e.sort(km),jm=e=>Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.width)&&Number.isFinite(e.height)&&e.width>0&&e.height>0,Mm=(e,t)=>e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y,Nm=(e,t,n,r)=>{let i=[...e].filter(e=>!r.has(e)),a=i.filter(e=>e.tagName===`TR`),o=0;for(let t=0;t<i.length&&o<64;t+=1){let n=ha(i[t]);!n||n.tagName!==`TR`||e.has(n)||(o+=1,e.add(n),i.push(n),a.push(n))}let s=s=>{if(!s||e.has(s)||r.has(s)||o>=64)return;o+=1;let c=n.get(s);c||(c=Y(s),n.set(s,c)),!(!jm(c)||!Mm(c,t))&&(e.add(s),i.push(s),s.tagName===`TR`&&a.push(s))},c=e=>{if(!(e.length>32))for(let t of e){if(o>=64)return;s(t)}};for(let e=0;e<a.length&&o<64;e+=1){let t=a[e];s(t.previousElementSibling),s(t.nextElementSibling)}for(let e=0;e<i.length&&o<64;e+=1){let t=i[e];if(tf(t))continue;let n=t.parentElement?.children.length??0;(t.tagName===`TR`||n<=32)&&(s(t.previousElementSibling),s(t.nextElementSibling)),c(t.children),t.shadowRoot&&c(t.shadowRoot.children)}},Pm=(e,t)=>{if(e.width<=0||e.height<=0)return[];let n=Math.max(1,Math.round(window.innerWidth)),r=Math.max(1,Math.round(window.innerHeight)),i=e.x,a=e.y,o=e.x+e.width,s=e.y+e.height,c=i+e.width/2,l=a+e.height/2,u=Em(Math.ceil(e.width/32),3,20),d=Em(Math.ceil(e.height/32),3,20),f=u*d,p=f>100?Math.sqrt(100/f):1,m=Em(Math.floor(u*p),3,20),h=Em(Math.floor(d*p),3,20),g=new Set,_=[],v=(e,t)=>{let i=Em(Math.round(e),0,n-1),a=Em(Math.round(t),0,r-1),o=a*n+i;g.has(o)||(g.add(o),_.push(i,a))};v(t.x,t.y),v(i+1,a+1),v(o-1,a+1),v(i+1,s-1),v(o-1,s-1),v(c,a+1),v(c,s-1),v(i+1,l),v(o-1,l),v(c,l);for(let t=0;t<m;t+=1){let n=i+(t+.5)/m*e.width;for(let t=0;t<h;t+=1)v(n,a+(t+.5)/h*e.height)}return _},Fm=(e,t,n)=>{let r=e.x,i=e.y,a=e.x+e.width,o=e.y+e.height,s=new Set,c=new Map,l=new Map,u=new Set,d=new Set,f=new Set,p=Pm(e,t),m=e=>{let t=l.get(e);if(t!==void 0)return t;let r=n(e);return l.set(e,r),r};op();try{for(let e=0;e<p.length;e+=2){let t=If(p[e],p[e+1]);for(let n of t){if(n.tagName===`CANVAS`){if(d.has(n))continue;if(u.has(n)){s.add(n);continue}u.add(n);let t=n;if(e===0)try{t=rm(n,p[e],p[e+1])}catch{}let r=im(n,t);if(r.length>0||t!==n){d.add(n);for(let e of r)s.add(e);t!==n&&s.add(t);continue}}s.add(n)}let n=!1;for(let r of t){let t=r;if(e===0&&!n){let n=Uf(r,p[e],p[e+1]);n&&m(n)&&(s.add(n),n!==r&&f.add(r),t=n)}if(m(t)){if(!n){n=!0;continue}f.add(t)}}}}finally{sp()}for(let e of d)s.delete(e);Nm(s,e,c,d);let h=[],g=null,_=1/0,v=1/0,y=window.innerWidth,b=window.innerHeight,x=y>0&&b>0,S=y*On,C=b*On;for(let e of s){if(Un(e)&&Vd(e)||tf(e)||!Sa(e)||!m(e))continue;let n=c.get(e)??Y(e);if(!jm(n))continue;let s=n.x,l=n.y,u=s+n.width,d=l+n.height;if(x&&n.width>=S&&n.height>=C&&Math.min(y,u)-Math.max(0,s)>=S&&Math.min(b,d)-Math.max(0,l)>=C)continue;let p=Math.max(0,Math.min(a,u)-Math.max(r,s)),w=Math.max(0,Math.min(o,d)-Math.max(i,l)),T=n.width*n.height;if(p<=0||w<=0||T<=0)continue;let ee=Of(e),E=0,te=0,D=1/0;if(ee)for(let e of ee){let n=e.x,s=e.y,c=n+e.width,l=s+e.height,u=Math.max(0,Math.min(a,c)-Math.max(r,n)),d=Math.max(0,Math.min(o,l)-Math.max(i,s));E+=u*d,te+=e.width*e.height;let f=Math.max(n-t.x,0,t.x-c),p=Math.max(s-t.y,0,t.y-l),m=f*f+p*p;D=Math.min(D,m)}else{E=p*w;let e=Math.max(s-t.x,0,t.x-u),n=Math.max(l-t.y,0,t.y-d);D=e*e+n*n}if(E<=0)continue;let O=ee&&!f.has(e)?te:T;if(E/O>=.75){h.push(e);continue}(D<_||D===_&&T<v)&&(g=e,_=D,v=T)}return h.length>0?Am(h):g?[g]:[]},Im=e=>{let t=new Set(e),n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];if(!t.has(i))continue;let a=i,o=ha(a),s=!1;for(;o;){let e=a.getRootNode();if(t.has(o)&&Ei(e)&&e.host===o)t.delete(o);else if(t.has(o)){s=!0;break}a=o,o=ha(a)}s||n.push(i)}return n.reverse()},Lm=(e,t,n)=>Im(Fm(e,t,n));q(),Dm();let Rm=(e,t)=>e.width<=0?0:Em((t.x-e.x)/e.width,0,1);Si(),kf();let zm=()=>{bi(),Tf(),wm()},Bm=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.pageX-window.scrollX,y:e.pageY-window.scrollY}),Vm=e=>({pageX:e.x+window.scrollX,pageY:e.y+window.scrollY,width:e.width,height:e.height}),Hm=e=>({borderRadius:`0px`,height:e.height,width:e.width,x:e.x,y:e.y});q(),ga();let Um=(e,t,n)=>{let r=(e,t,n,r)=>{let i=[],a=e,o=0;for(;a&&i.length<n&&o<100;)r(a)&&i.push(a),a=t(a),o+=1;return i},i=r(ha(e),ha,6,t);i.reverse();let a=i.map((e,t)=>({element:e,depth:t,isLast:!0})),o=i.length,s=r(e.previousElementSibling,e=>e.previousElementSibling,7,n),c=r(e.nextElementSibling,e=>e.nextElementSibling,7,n),l=Math.min(s.length,Math.max(3,7-c.length)),u=Math.min(c.length,7-l),d=[...s.slice(0,l).reverse(),e,...c.slice(0,u)],f=r(e.firstElementChild,e=>e.nextElementSibling,6,t),p=d.length-1,m=f.length-1;return d.forEach((t,n)=>{a.push({element:t,depth:o,isLast:n===p}),t===e&&f.forEach((e,t)=>{a.push({element:e,depth:o+1,isLast:t===m})})}),a};q();let Wm=e=>e.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName!==`svg`,Gm=e=>{let t=e.getBoundingClientRect();return t.width>=16||t.height>=16},Km=(e,t)=>t(e)&&!Wm(e)&&Gm(e);q();let qm=e=>e===`edit`?An:e,Jm=new Set([`c`,`C`,`с`,`С`,`ȼ`,`Ȼ`,`ↄ`,`Ↄ`,`ᴄ`,`ᶜ`,`ⱼ`,`ⅽ`,`Ⅽ`,`ç`,`Ç`,`ć`,`Ć`,`č`,`Č`,`ĉ`,`Ĉ`,`ċ`,`Ċ`]),Ym=(e,t)=>t===`KeyC`?!0:!e||e.length!==1?!1:Jm.has(e);var Xm,Zm,Qm,$m=n((()=>{Xm=null,Zm=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},Qm=()=>{if(Xm===null){if(typeof navigator>`u`)return Xm=!1,Xm;let e=navigator.platform??Zm()??navigator.userAgent;Xm=/Mac|iPhone|iPad|iPod/i.test(e)}return Xm}}));$m();let eh=(e,t)=>{if(!e||!t)return!1;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:!1},th={meta:`metaKey`,cmd:`metaKey`,command:`metaKey`,win:`metaKey`,windows:`metaKey`,ctrl:`ctrlKey`,control:`ctrlKey`,shift:`shiftKey`,alt:`altKey`,option:`altKey`,opt:`altKey`},nh=e=>{let t=e.split(`+`).map(e=>e.trim().toLowerCase()),n={metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1,key:null};for(let e of t){let t=th[e];t?n[t]=!0:n.key=e}return n},rh=e=>{if(typeof e==`function`)return t=>{try{return e(t)}catch{return!1}};let t=nh(e),n=t.key;return e=>{if(n===null){let n=t.metaKey?e.metaKey||e.key===`Meta`:!0,r=t.ctrlKey?e.ctrlKey||e.key===`Control`:!0,i=t.shiftKey?e.shiftKey||e.key===`Shift`:!0,a=t.altKey?e.altKey||e.key===`Alt`:!0,o=n&&r&&i&&a,s=[t.metaKey,t.ctrlKey,t.shiftKey,t.altKey].filter(Boolean).length,c=[e.metaKey||e.key===`Meta`,e.ctrlKey||e.key===`Control`,e.shiftKey||e.key===`Shift`,e.altKey||e.key===`Alt`].filter(Boolean).length;return o&&c>=s}let r=e.key?.toLowerCase()===n||eh(n,e.code),i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?(t.metaKey?e.metaKey:!0)&&(t.ctrlKey?e.ctrlKey:!0)&&(t.shiftKey?e.shiftKey:!0)&&(t.altKey?e.altKey:!0):!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey;return r&&i}},ih=e=>!e||typeof e==`function`?{metaKey:Qm(),ctrlKey:!Qm(),shiftKey:!1,altKey:!1,key:null}:nh(e);$m();let ah=(e,t)=>{if(t.activationKey)return rh(t.activationKey)(e);let n=(Qm()?e.metaKey:e.ctrlKey)&&!e.shiftKey&&!e.altKey;return!!(e.key&&n&&Ym(e.key,e.code))};var oh,sh=n((()=>{Hn(),oh=(e,t)=>{try{return e.composedPath().some(e=>Vn(e)&&e.hasAttribute(t))}catch{return!1}}}));sh(),Qi();let ch=async(e,t)=>{let n=el(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${rl()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},lh=async(e,t,n)=>{try{let r=Ls(e);if(await ch(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)}catch(n){throw n instanceof Hi?n:new Hi(e,t,n)}};var Z,uh=n((()=>{Z=e=>{console.warn(`[react-grab]`,e)}}));Qi(),uh();let dh=(e,t,n)=>{Z(e instanceof Hi?e:new Hi(t,n,e))},fh=(e,t,n)=>{try{if(n.onOpenFile(e,t))return;lh(e,t,n.transformOpenFileUrl).catch(n=>{dh(n,e,t)})}catch(n){dh(n,e,t)}},ph=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,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height);return{x:t,y:n,width:r-t,height:i-n}},mh={enabled:!0,hue:0,selectionBox:{enabled:!0},dragBox:{enabled:!0},grabbedBoxes:{enabled:!0},elementLabel:{enabled:!0},toolbar:{enabled:!0}},hh=(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},toolbar:{enabled:t.toolbar?.enabled??e.toolbar.enabled}});R(),q(),Qi(),uh();let gh={activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,activationKey:void 0,getContent:void 0,maxContextLines:3,freezeReactUpdates:!0},_h=(e={})=>{let t=new Map,n=[],r={},i=!1,[a,o]=Rt({theme:mh,options:{...gh,...e},actions:[]}),s=t=>{let n=mh,r={...gh,...e},i=[];for(let{config:e}of t)if(e.theme&&(n=hh(n,e.theme)),e.options&&(r={...r,...e.options}),e.actions)for(let t of e.actions)i.push(t);return{theme:n,options:r,actions:i}},c=e=>{o(`theme`,e.theme),o(`options`,{...e.options,...r}),o(`actions`,e.actions)},l=()=>{c(s(n))},u=(e,t)=>{r[e]=t,o(`options`,e,()=>t)},d=[`activationMode`,`keyHoldDuration`,`allowActivationInsideInput`,`activationKey`,`getContent`,`maxContextLines`,`freezeReactUpdates`],f=e=>{if(!i)for(let t of d)e[t]!==void 0&&u(t,e[t])},p=({plugin:e,config:t})=>{try{let n=t.cleanup?.();Promise.resolve(n).catch(t=>{Z(new Wi(e.name,t))})}catch(t){Z(new Wi(e.name,t))}},m=(e,t)=>{let n;try{n=e.setup?.(t,ee)??{};let r=n.cleanup?.bind(n);return{...n,cleanup:r,theme:e.theme?n.theme?hh(hh(mh,e.theme),n.theme):e.theme:n.theme,options:e.options?{...e.options,...n.options}:n.options,actions:e.actions?[...e.actions,...n.actions??[]]:n.actions,hooks:e.hooks?{...e.hooks,...n.hooks}:n.hooks}}catch(t){throw n&&p({plugin:e,config:n}),new Gi(e.name,t)}},h=(e,r)=>{if(i)return;let a={plugin:e,config:m(e,r)},o=t.get(e.name),l=new Map(t);l.set(e.name,a);let u;try{u=s(l.values())}catch(t){throw p(a),new Gi(e.name,t)}t.set(e.name,a),n=Array.from(t.values()),c(u),o&&p(o)},g=e=>{if(i)return;let r=t.get(e);r&&(t.delete(e),n=Array.from(t.values()),p(r),l())},_=()=>{if(i)return;i=!0;let e=n;t.clear(),n=[],e.forEach(p),l()},v=()=>n.map(({plugin:e})=>e.name),b=(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{let i=n(...t);i&&Promise.resolve(i).catch(t=>{Z(new Ui(r.name,String(e),t))})}catch(t){Z(new Ui(r.name,String(e),t))}}},S=(e,...t)=>{let r=!1;for(let{plugin:i,config:a}of n){let n=a.hooks?.[e];if(n)try{n(...t)===!0&&(r=!0)}catch(t){Z(new Ui(i.name,String(e),t))}}return r},C=async(e,...t)=>{for(let{plugin:r,config:i}of n){let n=i.hooks?.[e];if(n)try{await n(...t)}catch(t){Z(new Ui(r.name,String(e),t))}}},w=async(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=await n(i,...r)}catch(n){Z(new Ui(t.name,String(e),n))}}return i},T=(e,t,...r)=>{let i=t;for(let{plugin:t,config:a}of n){let n=a.hooks?.[e];if(n)try{i=n(i,...r)}catch(n){Z(new Ui(t.name,String(e),n))}}return i},ee={onActivate:()=>b(`onActivate`),onDeactivate:()=>b(`onDeactivate`),onElementHover:e=>b(`onElementHover`,e),onElementSelect:e=>{let t=!1,r=[];for(let{plugin:i,config:a}of n){let n=a.hooks?.onElementSelect;if(n)try{let a=n(e);if(a){if(t=!0,a===!0)continue;r.push(a.catch(e=>(Z(new Ui(i.name,`onElementSelect`,e)),!1)))}}catch(e){Z(new Ui(i.name,`onElementSelect`,e))}}let i=r.length>0?Promise.all(r).then(e=>e.every(Boolean)):void 0;return{wasIntercepted:t,pendingResult:i}},onDragStart:(e,t)=>b(`onDragStart`,e,t),onDragEnd:(e,t)=>b(`onDragEnd`,e,t),onBeforeCopy:async e=>C(`onBeforeCopy`,e),transformCopyContent:async(e,t)=>w(`transformCopyContent`,e,t),onAfterCopy:(e,t)=>b(`onAfterCopy`,e,t),onCopySuccess:(e,t)=>b(`onCopySuccess`,e,t),onCopyError:e=>b(`onCopyError`,e),onStateChange:e=>b(`onStateChange`,e),onPromptModeChange:(e,t)=>b(`onPromptModeChange`,e,t),onSelectionBox:(e,t,n)=>b(`onSelectionBox`,e,t,n),onDragBox:(e,t)=>b(`onDragBox`,e,t),onGrabbedBox:(e,t)=>b(`onGrabbedBox`,e,t),onElementLabel:(e,t,n)=>b(`onElementLabel`,e,t,n),onContextMenu:(e,t)=>b(`onContextMenu`,e,t),onOpenFile:(e,t)=>S(`onOpenFile`,e,t),transformHtmlContent:async(e,t)=>w(`transformHtmlContent`,e,t),transformAgentContext:async(e,t)=>w(`transformAgentContext`,e,t),transformActionContext:e=>T(`transformActionContext`,e),transformOpenFileUrl:(e,t,n)=>T(`transformOpenFileUrl`,e,t,n)};return x()&&y(_),{register:h,unregister:g,getPluginNames:v,setOptions:f,dispose:_,store:a,hooks:ee}},vh=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;q(),Si();let yh=e=>{let t=e.bounds.x+e.bounds.width/2,n=e.bounds.width/2,r=e.mouseX===void 0?void 0:e.mouseX-t;return{id:vh(`label`),bounds:e.bounds,boundsMultiple:e.boundsMultiple,tagName:e.tagName,componentName:e.componentName,status:e.status,createdAt:Date.now(),element:e.element,elements:e.elements,mouseX:e.mouseX,mouseXOffsetFromCenter:r,mouseXOffsetRatio:r!==void 0&&n>0?r/n:void 0,hideArrow:e.hideArrow}},bh=(e,t,n)=>{let r=new Map,i=e=>{let t=r.get(e);t!==void 0&&(window.clearTimeout(t),r.delete(e))},a=()=>{for(let e of r.values())window.clearTimeout(e);r.clear()},o=()=>{a(),e.clearLabelInstances(),n?.()},s=t=>{i(t);let n=window.setTimeout(()=>{e.updateLabelInstance(t,`fading`);let n=window.setTimeout(()=>{r.delete(t),e.removeLabelInstance(t)},125);r.set(t,n)},tn);r.set(t,n)};return{createInstance:(t,n,r,i,a)=>{o();let s=yh({bounds:t,tagName:n,componentName:r,status:i,element:a?.element,mouseX:a?.mouseX,elements:a?.elements,boundsMultiple:a?.boundsMultiple,hideArrow:a?.hideArrow});return e.addLabelInstance(s),s.id},createPerElementInstances:(t,n)=>{o();let r=[];for(let i of t){let t=yh({bounds:Y(i.element),tagName:i.tagName,componentName:i.componentName,status:n,element:i.element,mouseX:i.mouseX});e.addLabelInstance(t),r.push(t.id)}return r},updateAfterCopy:(t,n,r)=>{n?(e.updateLabelInstance(t,`copied`),s(t)):(i(t),e.updateLabelInstance(t,`error`,r||`Unknown error`))},markRetrying:t=>{i(t),e.updateLabelInstance(t,`copying`)},dismissInstance:t=>{i(t),e.removeLabelInstance(t)},cancelAllFades:a,clearAll:o,handleHoverChange:(n,r)=>{let a=t().find(e=>e.id===n);if(a){if(r){i(n),a.status===`fading`&&e.updateLabelInstance(n,`copied`);return}(a.status===`copied`||a.status===`fading`)&&s(n)}}}},xh=e=>{let t=window.innerWidth,n=window.innerHeight,r=Math.max(0,e.x),i=Math.min(t,e.x+e.width),a=Math.max(0,e.y),o=Math.min(n,e.y+e.height);return{x:(r+i)/2,y:(a+o)/2}};q(),Tm(),kf(),wi();let Sh=(e,t,n)=>{let r=[],i=(t,r)=>{let i=Of(t),a=n(t);if(i){for(let e of i)if(e.x<window.innerWidth&&e.x+e.width>0&&e.y<window.innerHeight&&e.y+e.height>0){a=e;break}}let o=xh(a),s=Sm(o.x,o.y).filter(e),c=s.indexOf(t);return c===-1?null:s[c+r]??null},a=e=>{let t=i(e,1);return t&&(r.push(e),r.length>50&&(r=r.slice(-50))),t},o=e=>{if(r.length>0){let e=r.pop();if(X(e))return e}return i(e,-1)},s=(e,n)=>{let i=e=>n?e.nextElementSibling:e.previousElementSibling,a=i(e);for(;a;){if(t(a))return r=[],a;a=i(a)}return null};return{findNext:(e,t)=>{switch(e){case`ArrowUp`:return a(t);case`ArrowDown`:return o(t);case`ArrowRight`:return s(t,!0);case`ArrowLeft`:return s(t,!1);default:return null}},clearHistory:()=>{r=[]}}},Ch=()=>{let e=new WeakSet,t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,`key`),n=!1;if(t?.get&&!t.get.__reactGrabPatched){n=!0;let r=t.get,i=function(){return e.has(this)?``:r.call(this)};i.__reactGrabPatched=!0,Object.defineProperty(KeyboardEvent.prototype,`key`,{get:i,configurable:!0})}return{claimedEvents:e,originalKeyDescriptor:t,restore:()=>{n&&t&&Object.defineProperty(KeyboardEvent.prototype,`key`,t)}}};q(),Uu();let wh=(e,t)=>({top:t<25,bottom:t>window.innerHeight-25,left:e<25,right:e>window.innerWidth-25}),Th=(e,t,n)=>{let r=null,i=()=>{if(!t()){a();return}let o=e(),s=wh(o.x,o.y),c=0,l=0;s.top&&(l-=10),s.bottom&&(l+=10),s.left&&(c-=10),s.right&&(c+=10);let u=!1;if(c!==0||l!==0){let e=window.scrollX,t=window.scrollY;window.scrollBy({behavior:`instant`,left:c,top:l});let r=window.scrollX-e,i=window.scrollY-t;u=r!==0||i!==0,u&&n?.({x:r,y:i})}r=u?Bu(i):null},a=()=>{r!==null&&(Vu(r),r=null)};return{start:i,stop:a,isActive:()=>r!==null}},Eh=()=>{let e=globalThis;return!!(e.chrome?.runtime?.id||e.browser?.runtime?.id)},Dh=e=>{try{let t=`0.1.50-dev.f8c2c71`,n=`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 294 294"><path fill="#ff40e0" d="M145 47c25-20 50-27 67-17 16 9 23 30 20 60 0 2-1 5-1 7l-2 13h-1l-12-4c-8-3-17-5-25-6l-17-3c-10-1-20-1-29-1-10 0-20 0-29 1-6 8-11 16-16 24-5 9-9 17-13 26 4 9 8 18 13 26s10 16 16 24l11 14c5 7 11 13 18 19l10 8s-1 0 0 0l-11 9c-17 14-35 22-49 22-6 0-13-2-18-5-16-9-23-30-20-59 1-3 1-5 1-8-30-12-48-29-48-50 0-18 14-35 41-47 2-1 5-2 7-3 0-2 0-5-1-7-3-30 4-51 20-60 18-10 42-3 68 17M71 201c-1 2-1 4-1 5-2 24 3 41 13 47h1c11 7 30 1 51-15-10-9-18-18-26-29-13-1-26-4-38-8m9-38c-3 9-5 17-7 26 8 2 17 4 25 6-3-5-6-10-9-16-3-5-6-10-9-16m-19-53c-2 1-3 1-5 2-21 10-34 23-34 35 0 13 14 27 39 37 3-12 7-25 12-37-5-12-9-24-12-37m37-10c-8 1-17 3-25 6 2 8 4 16 7 25 3-5 6-11 9-16zm-3-61c-4-1-8 0-12 2-10 7-15 24-13 47 0 2 0 3 1 5 12-4 25-6 38-8 8-10 16-20 26-29-15-11-29-17-40-17m111 2c-4-2-8-3-12-2-11 0-25 5-40 17 10 9 19 19 26 29 13 2 26 4 39 8v-5c3-23-2-40-13-47m-61 23c-7 6-13 13-19 19h37c-6-6-12-13-18-19"/><mask id="a"><path fill="#fff" d="m235 85-133 27 28 133 133-27Z"/></mask><path fill="#ff40e0" d="m137 130 76 11c8 1 9 11 3 15l-28 16-4 32c-1 8-10 10-14 4l-41-66c-3-6 1-13 8-12" mask="url(#a)"/></svg>`)}`;console.log(`%cReact Grab${` v${t}`}%c\nhttps://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${n}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,``),e&&navigator.onLine&&!Eh()&&fetch(`https://www.react-grab.com/api/version?source=browser&v=${t}&t=${Date.now()}`,{referrerPolicy:`origin`,keepalive:!0,priority:`low`,cache:`no-store`}).then(e=>e.text()).then(e=>{e&&e!==t&&console.warn(`[React Grab] v${t} is outdated (latest: v${e}). Run \`npx grab@latest upgrade\` to upgrade.`)}).catch(()=>null)}catch{}},Oh=e=>typeof e==`object`&&!!e,kh=e=>{if(!Oh(e))return null;let t={};return typeof e.enabled==`boolean`&&(t.enabled=e.enabled),(e.activationMode===`toggle`||e.activationMode===`hold`)&&(t.activationMode=e.activationMode),typeof e.keyHoldDuration==`number`&&Number.isFinite(e.keyHoldDuration)&&(t.keyHoldDuration=e.keyHoldDuration),typeof e.allowActivationInsideInput==`boolean`&&(t.allowActivationInsideInput=e.allowActivationInsideInput),typeof e.activationKey==`string`&&(t.activationKey=e.activationKey),typeof e.maxContextLines==`number`&&Number.isFinite(e.maxContextLines)&&(t.maxContextLines=e.maxContextLines),typeof e.freezeReactUpdates==`boolean`&&(t.freezeReactUpdates=e.freezeReactUpdates),typeof e.telemetry==`boolean`&&(t.telemetry=e.telemetry),Object.keys(t).length===0?null:t},Ah=()=>{if(typeof window>`u`)return null;try{let e=(document.currentScript instanceof HTMLScriptElement?document.currentScript:null)?.getAttribute(`data-options`);return e?kh(JSON.parse(e)):null}catch{return null}},jh=e=>e===`Enter`||e===`NumpadEnter`,Mh=(e,t)=>e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height;var Nh,Ph,Fh,Ih=n((()=>{q(),wa(),Nh=`react-grab-toolbar-state`,Ph=()=>{try{let e=localStorage.getItem(Nh);if(!e)return null;let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t,r=typeof n.collapsed==`boolean`?n.collapsed:!1;return{edge:n.edge===`top`||n.edge===`bottom`||n.edge===`left`||n.edge===`right`?n.edge:`bottom`,ratio:typeof n.ratio==`number`?n.ratio:kn,collapsed:r,enabled:!r,defaultAction:typeof n.defaultAction==`string`?n.defaultAction:An}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},Fh=e=>{try{localStorage.setItem(Nh,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}}}));Ih(),R(),wa();let Lh=e=>{let[t,n]=c(!1);return v(()=>{let t=Ca(t=>n(e(t))),r=()=>n(!1);window.addEventListener(`keydown`,t,{capture:!0}),window.addEventListener(`keyup`,t,{capture:!0}),window.addEventListener(`blur`,r),y(()=>{window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`keyup`,t,{capture:!0}),window.removeEventListener(`blur`,r)})}),t},Rh={name:`copy`,actions:[{id:`copy`,label:`Copy`,shortcut:`C`,showInToolbarMenu:!0,onAction:e=>{e.copy?.()}}]},zh={name:`comment`,actions:[{id:`comment`,label:`Comment`,shortcut:`Enter`,showInToolbarMenu:!0,onAction:e=>{e.enterPromptMode?.()}}]},Bh={name:`open`,actions:[{id:`open`,label:`Open`,shortcut:`O`,enabled:e=>!!e.filePath,onAction:e=>{e.filePath&&(fh(e.filePath,e.lineNumber,e.hooks),e.hideContextMenu(),e.cleanup())}}]};var Vh,Hh=n((()=>{Vh=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n])})),Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng=n((()=>{q(),Uu(),Uh=!1,Wh=null,Gh=!1,Kh=new Map,qh=-1,Jh=new WeakSet,Yh=new WeakSet,Xh=new WeakMap,Zh=new Map,Qh=new Map,$h=e=>{if(Wh===e&&(Gh=!0),Jh.has(e))return!0;if(!Uh&&Wh===e){let t=(Xh.get(e)??0)+1;return Xh.set(e,t),t<4?!1:(Jh.add(e),!0)}return!Uh||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(Jh.add(e),Yh.add(e),!0)},typeof window<`u`&&(window.requestAnimationFrame=e=>{let t=$h(e);if(Uh&&t){let t=qh--;return Kh.set(t,e),t}let n=Bu(t=>{if(Uh&&$h(e)){let t=qh--;Kh.set(t,e),Zh.set(n,t);return}let r=Wh,i=Gh;Wh=e,Gh=!1;try{e(t)}finally{let t=Gh;Wh=r,Gh=i,!t&&!Yh.has(e)&&(Jh.delete(e),Xh.delete(e))}});return n},window.cancelAnimationFrame=e=>{if(Kh.has(e)){Kh.delete(e);return}let t=Qh.get(e);if(t!==void 0){Vu(t.nativeId),Qh.delete(e);return}let n=Zh.get(e);if(n!==void 0){Kh.delete(n),Zh.delete(e);return}Vu(e)}),eg=()=>{if(!Uh){Uh=!0,Kh.clear(),Zh.clear();for(let[e,{nativeId:t,callback:n}]of Qh)Vu(t),Kh.set(e,n);Qh.clear()}},tg=()=>{if(Uh){Uh=!1;for(let[e,t]of Kh.entries()){let n=Bu(n=>{Qh.delete(e);let r=Wh,i=Gh;Wh=t,Gh=!1;try{t(n)}finally{let e=Gh;Wh=r,Gh=i,!e&&!Yh.has(t)&&(Jh.delete(t),Xh.delete(t))}});Qh.set(e,{nativeId:n,callback:t})}Kh.clear(),Zh.clear()}}})),rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg=n((()=>{q(),Hh(),Jf(),ng(),Bn(),of(),Di(),wa(),up(),rg=`
24
+ [${wn}],
25
+ [${wn}] * {
26
26
  animation-play-state: paused !important;
27
27
  transition: none !important;
28
28
  }
29
- `,Sh=`
29
+ `,ig=`
30
30
  *, *::before, *::after {
31
31
  animation-play-state: paused !important;
32
32
  transition: none !important;
33
33
  }
34
- `,Ch=`svg`,wh=e=>e?.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName===`svg`,Th=null,Eh=[],Dh=[],Oh=[],kh=new Set,Ah=new Map,jh=new Map,Mh=[],Nh=()=>Ah.size>0,Ph=()=>{Th||=xf(`data-react-grab-frozen-styles`,xh)},Fh=e=>{let t=new Set;for(let n of e){let e=wh(n)?n:n.closest(`svg`);wh(e)&&t.add(e);for(let e of n.querySelectorAll(Ch))wh(e)&&t.add(e)}return[...t]},Ih=(e,t)=>{let n=Reflect.get(e,t);typeof n==`function`&&n.call(e)},Lh=(e,t)=>{for(let n of e){let e=jh.get(n)??0;if(e===0){jh.set(n,1),t.push(n),Ih(n,`pauseAnimations`);continue}jh.set(n,e+1),t.push(n)}},Rh=(e,t)=>{let n=[];for(let r of e){let e=jh.get(r);if(e){if(e===1){try{Ih(r,`unpauseAnimations`),jh.delete(r)}catch(e){n.push(r),t.push(e)}continue}jh.set(r,e-1)}}return n},zh=e=>{let t=[];for(let n of e)for(let e of n.getAnimations({subtree:!0}))e.playState===`running`&&t.push(e);return t},Bh=e=>{for(let t of e)try{t.finish()}catch{}},Vh=e=>{for(let t of e)try{t.finish()}catch{try{t.play()}catch{}}},Hh=e=>{if(!(e.effect instanceof KeyframeEffect))return!1;let t=e.effect.target;if(!Ln(t))return!1;let n=t.getRootNode();return Ti(n)&&tf(n.host)},Uh=e=>{if(e.length===0||ah(e,Oh))return;Wh();let t=[...e];Ph(),Eh=t,Dh=[];try{Lh(Fh(Eh),Dh);for(let e of Eh)e.setAttribute(Cn,``);let e=zh(Eh);Mh=[];for(let t of e)t.pause(),Mh.push(t);Oh=t}catch(e){try{Wh()}catch(t){throw AggregateError([e,t],`Rolling back animation freeze failed`)}throw e}},Wh=()=>{if(Eh.length===0&&Dh.length===0&&Mh.length===0)return;let e=Eh,t=Dh,n=Mh,r=[],i=[];Oh=[];for(let t of e)try{t.removeAttribute(Cn)}catch(e){i.push(t),r.push(e)}Eh=i,Dh=Rh(t,r),Vh(n),Mh=[],Lf(r,`Unfreezing element animations failed`)},Gh=e=>e.length===0?(Wh(),()=>{}):(Uh(e),Wh),Kh=e=>{let t=[];for(let n of e.getAnimations())Hh(n)||n.playState===`running`&&t.push(n);return{targetDocument:e,runningAnimations:t}},qh=e=>{let t=Ah.get(e);if(!t)return[];let n=[],r=t.styleElement;if(r){try{if(t.didUseCssFreeze){r.textContent=`
34
+ `,ag=`svg`,og=e=>e?.namespaceURI===`http://www.w3.org/2000/svg`&&e.tagName===`svg`,sg=null,cg=[],lg=[],ug=[],dg=new Set,fg=new Map,pg=new Map,mg=[],hg=()=>fg.size>0,gg=()=>{sg||=qf(`data-react-grab-frozen-styles`,rg)},_g=e=>{let t=new Set;for(let n of e){let e=og(n)?n:n.closest(`svg`);og(e)&&t.add(e);for(let e of n.querySelectorAll(ag))og(e)&&t.add(e)}return[...t]},vg=(e,t)=>{let n=Reflect.get(e,t);typeof n==`function`&&n.call(e)},yg=(e,t)=>{for(let n of e){let e=pg.get(n)??0;if(e===0){pg.set(n,1),t.push(n),vg(n,`pauseAnimations`);continue}pg.set(n,e+1),t.push(n)}},bg=(e,t)=>{let n=[];for(let r of e){let e=pg.get(r);if(e){if(e===1){try{vg(r,`unpauseAnimations`),pg.delete(r)}catch(e){n.push(r),t.push(e)}continue}pg.set(r,e-1)}}return n},xg=e=>{let t=[];for(let n of e)for(let e of n.getAnimations({subtree:!0}))e.playState===`running`&&t.push(e);return t},Sg=e=>{for(let t of e)try{t.finish()}catch{}},Cg=e=>{for(let t of e)try{t.finish()}catch{try{t.play()}catch{}}},wg=e=>{if(!(e.effect instanceof KeyframeEffect))return!1;let t=e.effect.target;if(!zn(t))return!1;let n=t.getRootNode();return Ei(n)&&af(n.host)},Tg=e=>{if(e.length===0||Vh(e,ug))return;Eg();let t=[...e];gg(),cg=t,lg=[];try{yg(_g(cg),lg);for(let e of cg)e.setAttribute(wn,``);let e=xg(cg);mg=[];for(let t of e)t.pause(),mg.push(t);ug=t}catch(e){try{Eg()}catch(t){throw AggregateError([e,t],`Rolling back animation freeze failed`)}throw e}},Eg=()=>{if(cg.length===0&&lg.length===0&&mg.length===0)return;let e=cg,t=lg,n=mg,r=[],i=[];ug=[];for(let t of e)try{t.removeAttribute(wn)}catch(e){i.push(t),r.push(e)}cg=i,lg=bg(t,r),Cg(n),mg=[],lp(r,`Unfreezing element animations failed`)},Dg=e=>e.length===0?(Eg(),()=>{}):(Tg(e),Eg),Og=e=>{let t=[];for(let n of e.getAnimations())wg(n)||n.playState===`running`&&t.push(n);return{targetDocument:e,runningAnimations:t}},kg=e=>{let t=fg.get(e);if(!t)return[];let n=[],r=t.styleElement;if(r){try{if(t.didUseCssFreeze){r.textContent=`
35
35
  *, *::before, *::after {
36
36
  transition: none !important;
37
37
  }
38
- `;let t=[];for(let n of e.getAnimations())Hh(n)||t.push(n);Bh(t)}else Vh(t.frozenWaapiAnimations);t.didUseCssFreeze=!1,t.frozenWaapiAnimations=[]}catch(e){n.push(e)}try{r.remove(),t.styleElement=null}catch(e){n.push(e)}}return t.frozenSvgElements=Rh(t.frozenSvgElements,n),t.styleElement===null&&t.frozenSvgElements.length===0&&t.frozenWaapiAnimations.length===0&&Ah.delete(e),n},Jh=e=>{if(Ah.has(e.targetDocument))return;let t=xf(`data-react-grab-global-freeze`,``,e.targetDocument),n={styleElement:t,frozenSvgElements:[],frozenWaapiAnimations:[],didUseCssFreeze:!1};if(Ah.set(e.targetDocument,n),e.runningAnimations.length>200)t.textContent=Sh,n.didUseCssFreeze=!0;else for(let t of e.runningAnimations)t.pause(),n.frozenWaapiAnimations.push(t);Lh(Fh(Array.from(e.targetDocument.querySelectorAll(Ch))),n.frozenSvgElements)},Yh=e=>{kh.add(e);try{Nh()&&Jh(Kh(e))}catch(t){kh.delete(e);let n=qh(e);throw n.length===0?t:AggregateError([t,...n],`Freezing frame animations failed`)}return()=>{kh.delete(e),Lf(qh(e),`Unfreezing frame animations failed`)}},Xh=()=>Nh()?[]:(kh.add(document),[...kh].map(Kh)),Zh=e=>{if(!Nh()){for(let t of e)Jh(t);vh()}},Qh=()=>{if(!Nh())return;let e=[];for(let t of[...Ah.keys()])e.push(...qh(t));try{yh()}catch(t){e.push(t)}Lf(e,`Unfreezing global animations failed`)}})),eg,tg,ng=n((()=>{zd(),Bn(),Hn(),af(),eg=(e,t)=>{for(let n of e.querySelectorAll(`:hover`))if(!rf(n)&&(zn(n)&&t.add(n),n.shadowRoot&&eg(n.shadowRoot,t),Vn(n))){let e=Rd(n);e&&eg(e,t)}},tg=()=>{let e=new Set;return eg(document,e),[...e]}})),rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg=n((()=>{Wp(),zd(),ha(),Wd(),ng(),Bn(),Hn(),af(),xa(),If(),Rf(),rg=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],ig=[`focus`,`blur`,`focusin`,`focusout`],ag=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`,`display`],og=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],sg=new Map,cg=new Map,lg=new Set,ug=!1,dg=e=>{e.stopImmediatePropagation()},fg=e=>{e.preventDefault(),e.stopImmediatePropagation()},pg=e=>{for(let t of rg)e.addEventListener(t,dg,!0);for(let t of ig)e.addEventListener(t,fg,!0)},mg=e=>{for(let t of rg)e.removeEventListener(t,dg,!0);for(let t of ig)e.removeEventListener(t,fg,!0)},hg=e=>{lg.add(e);let t=jf(e);return ug&&pg(e),()=>{ug&&mg(e),lg.delete(e),t()}},gg=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=new Map,a=new Map;for(let n of t){let t=r.getPropertyValue(n);t&&(i.set(n,t),a.set(n,{value:e.style.getPropertyValue(n),priority:e.style.getPropertyPriority(n)}))}return{element:e,frozenPropertyValues:i,originalPropertyValues:a}},_g=(e,t)=>{let n=[],r=Ud(e,t);for(;r&&r!==document.documentElement&&!rf(r);)zn(r)&&n.push(r),r=ma(r);return n},vg=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;){if(zn(t)&&e.push(t),t.shadowRoot?.activeElement){t=t.shadowRoot.activeElement;continue}if(Vn(t)){t=Rd(t)?.activeElement??null;continue}t=null}return e},yg=(e,t)=>{for(let{element:n,frozenPropertyValues:r,originalPropertyValues:i}of e){t.set(n,i);for(let[e,t]of r)n.style.setProperty(e,t,`important`)}},bg=e=>{let t=[];for(let[n,r]of e){for(let[e,i]of r)try{i.value?n.style.setProperty(e,i.value,i.priority):n.style.removeProperty(e),r.delete(e)}catch(e){t.push(e)}r.size===0&&e.delete(n)}return t},xg=(e,t)=>{if(Af())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?_g(e,t):tg();for(let e of r){let t=gg(e,ag);t&&n.push(t)}let i=[];for(let e of vg()){let t=gg(e,og,cg);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Sg=e=>{if(e){ug=!0,lg.add(document);for(let e of lg)pg(e);yg(e.hoverStates,sg),yg(e.focusStates,cg),Mf()}},Cg=()=>{Up(),ug=!1;for(let e of lg)mg(e);let e=[...bg(sg),...bg(cg)];try{Nf()}catch(t){e.push(t)}Lf(e,`Unfreezing pseudo states failed`)}})),Tg,Eg,Dg,Og=n((()=>{$h(),wg(),Kf(),Rf(),Tg=()=>{let e=[];try{Gf()}catch(t){e.push(t)}try{Cg()}catch(t){e.push(t)}try{Qh()}catch(t){e.push(t)}return e},Eg=(e,t)=>{let n=xg(e,t),r=Xh();try{Sg(n),Zh(r),Wf()}catch(e){let t=Tg();throw t.length===0?e:AggregateError([e,...t],`Freezing global interactions failed`)}},Dg=()=>{Lf(Tg(),`Unfreezing global interactions failed`)}})),kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_=n((()=>{di(),Zi(),Om(),xa(),kg=!1,Ag=0,jg=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},Mg=new WeakMap,Ng=new WeakMap,Pg=new WeakMap,Fg=new Set,Ig=[],Lg=[],Rg=new WeakMap,zg=new WeakMap,Bg=new WeakSet,Vg=Br,Hg=new Set,Ug=e=>e.rendererPackageName.startsWith(`react-dom`),Wg=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Gg=e=>{let t=e.current?.stateNode;if(!t||typeof t!=`object`)return!1;let n=Reflect.get(t,`containerInfo`);return!!(n&&typeof n==`object`&&typeof Reflect.get(n,`nodeType`)==`number`)},Kg=()=>{if(Vg.size>0){let e=new Set;for(let t of Vg)Gg(t)&&e.add(t);return e}let e=new Set,t=n=>{let r=li(n);if(r){let t=Wg(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},qg=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Jg=e=>{if(!e||Rg.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>kg?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>kg?null:n,set:e=>{if(kg){e!==null&&(t.bufferedPending=qg(t.bufferedPending??null,e));return}n=e}}),Rg.set(e,t)},Yg=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},Xg=e=>{let t=Rg.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=Yg(t.pendingValueAtPause??null),r=Yg(t.bufferedPending??null);for(let t of[...e,...r])Lg.push(()=>n(t))}Rg.delete(e)},Zg=e=>{if(zg.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return kg?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(kg){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),zg.set(e,t)},Qg=e=>{let t=zg.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),zg.delete(e))},$g=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Jg(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Zg(n),n=n.next},e_=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Xg(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Qg(n),n=n.next},t_=e=>{let t=e;for(;t;){if(Ar(t)&&$g(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},n_=e=>{let t=e;for(;t;){if(Ar(t)&&e_(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},r_=e=>{if(Mg.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};Mg.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!kg||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,jg(Ng,a,()=>(...e)=>{kg?Lg.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!kg||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,jg(Ng,a,()=>(...e)=>{kg?Lg.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!kg||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,jg(Pg,a,()=>e=>{kg?Ig.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>kg?n.useSyncExternalStore(t=>e(()=>{kg?Fg.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},i_=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&r_(r),r),set:e=>{r=e}})},a_=e=>{queueMicrotask(()=>{try{for(let t of br().renderers.values())if(Ug(t)&&typeof t.scheduleUpdate==`function`){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current)}catch(e){Z(new zi(`scheduleUpdate failed during unfreeze`,e))}}}catch(e){Z(new zi(`scheduleReactUpdate failed`,e))}})},o_=e=>{for(let t of e)try{t()}catch(e){Z(new zi(`Callback failed during state replay`,e))}},s_=()=>{for(let e of br().renderers.values())Ug(e)&&(Bg.has(e)||(i_(e),Bg.add(e)))},c_=()=>{Fg.clear(),Ig.length=0,Lg.length=0},l_=()=>{let e=new Set(Hg);try{for(let t of Kg())e.add(t)}catch(e){Z(new zi(`Collecting fiber roots failed during unfreeze`,e))}Hg.clear(),kg=!1;for(let t of e)try{n_(t.current)}catch(e){Z(new zi(`Resuming a fiber root failed during unfreeze`,e))}let t=Array.from(Fg),n=Ig.slice(),r=Lg.slice();c_(),o_(t),o_(n),o_(r),kg||a_(e)},u_=()=>{let e=Ag===0;if(Ag+=1,e)try{s_(),kg=!0;let e=Kg();for(let t of e)Hg.add(t),t_(t.current)}catch(e){throw--Ag,kg&&l_(),e}let t=!1;return()=>{t||(t=!0,--Ag,Ag===0&&l_())}},d_=()=>{try{return u_()}catch(e){return Z(new zi(`Pausing React updates failed`,e)),()=>{}}}}));Og(),f_();let p_=e=>{let t=e.left+e.width/2,n=e.top+e.height/2,r=n,i=window.innerHeight-n,a=t,o=window.innerWidth-t,s=Math.min(r,i,a,o);return s===r?`top`:s===a?`left`:s===o?`right`:`bottom`};var m_,h_,g_,__=n((()=>{m_=e=>e.key===`Enter`,h_=e=>e.metaKey||e.ctrlKey,g_=(e,t,n={})=>{if(!t.key)return null;if(m_(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return h_(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null}}));__();let v_=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};B(),Ci();let y_=()=>{let[e,t]=c(!1),[n,r]=c(null),i=v_(),a=()=>{let e=n();return X(e)?e:null},o=()=>{r(null),i.clear(),t(!1)};return{selectedElement:a,isPendingDismiss:e,select:(e,n)=>{r(e),t(!1),n?.shouldPromptBeforeMouseHandoff?i.arm():i.clear()},clear:o,consumeMouseHandoff:()=>i.consume()&&a()!==null,showDismissPrompt:()=>a()?e()?!1:(t(!0),!0):(o(),!1),takeSelection:e=>{let t=a()??(X(e)?e:null);return o(),t}}};var b_,x_,S_=n((()=>{Zi(),Om(),b_=e=>e??!0,x_=(e,t)=>{if(typeof e.enabled==`function`){if(!t)return!1;try{return e.enabled(t)}catch(t){return Z(new Ki(e.id,t)),!1}}return b_(e.enabled)}})),C_,w_=n((()=>{Zi(),S_(),Om(),C_=(e,t)=>{if(!x_(e,t))return!1;try{let n=e.onAction(t);n&&n.catch(t=>{Z(new Gi(e.id,t))})}catch(t){Z(new Gi(e.id,t))}return!0}}));w_(),Zi(),Om();let T_=e=>{Z(new zi(`Toolbar state change subscriber failed`,e))},E_=(e,t)=>{for(let n of e)try{Promise.resolve(n(t)).catch(T_)}catch(e){T_(e)}},Q=(e,t)=>{try{e()}catch(e){t.push(e)}};J(),zd(),Rn(),Hn(),af(),Rf();let D_=e=>{let t=new Map,n=new Map,r=new Map,i=new Map,a=(e,a)=>{let c=r.get(e);c&&(r.delete(e),Q(()=>c.disconnect(),a));for(let t of[...r.keys()])`host`in t&&t.ownerDocument===e&&o(t,a);for(let t of[...i.keys()])t.ownerDocument===e&&s(t,a);let l=n.get(e);n.delete(e),l&&Q(l,a);let u=t.get(e);t.delete(e),u&&Q(u,a)},o=(e,t)=>{let n=r.get(e);if(n){r.delete(e),Q(()=>n.disconnect(),t);for(let n of e.querySelectorAll(`*`))c(n,t)}},s=(e,t)=>{let n=i.get(e);n&&(i.delete(e),Q(()=>n.abortController.abort(),t),Q(()=>e.removeAttribute(wn),t),n.document&&a(n.document,t))},c=(e,t)=>{Vn(e)&&s(e,t),e.shadowRoot&&o(e.shadowRoot,t)},l=(e,t)=>{for(let n of e.querySelectorAll(`*`))c(n,t);c(e,t)},u=n=>{t.has(n)||(t.set(n,e(n)),d(n),h(n))},d=e=>{let r=e.defaultView?.Element.prototype;if(!r)return;let i=r.attachShadow,a=new Proxy(i,{apply:(n,r,i)=>{let a=Reflect.apply(n,r,i);return a.mode===`open`&&r.isConnected&&t.has(e)&&h(a),a}});r.attachShadow=a,n.set(e,()=>{r.attachShadow===a&&(r.attachShadow=i)})},f=e=>{if(i.has(e))return;let t={abortController:new AbortController,document:null};i.set(e,t);let n=()=>{let n=[],r=Rd(e);if(t.document&&t.document!==r&&a(t.document,n),t.document=r,!r){e.removeAttribute(wn),Lf(n,`Cleaning up replaced frame document failed`);return}e.setAttribute(wn,``),u(r),Lf(n,`Cleaning up replaced frame document failed`)};e.addEventListener(`load`,n,{signal:t.abortController.signal}),n()},p=e=>{rf(e)||(Vn(e)&&f(e),e.shadowRoot&&h(e.shadowRoot))},m=e=>{if(p(e),!rf(e))for(let t of e.querySelectorAll(`*`))p(t)},h=e=>{if(r.has(e))return;let t=`defaultView`in e?e.defaultView:e.ownerDocument.defaultView;if(!t)return;let n=new t.MutationObserver(e=>{let t=[];for(let n of e){for(let e of n.removedNodes)Ln(e)&&l(e,t);for(let e of n.addedNodes)Ln(e)&&m(e)}Lf(t,`Cleaning up removed frame documents failed`)});r.set(e,n),n.observe(e,{childList:!0,subtree:!0});for(let t of e.querySelectorAll(`*`))p(t)};return u(document),()=>{let e=[];for(let t of[...i.keys()])s(t,e);for(let[t,n]of r)r.delete(t),Q(()=>n.disconnect(),e);for(let[t,r]of n)n.delete(t),Q(r,e);for(let[n,r]of t)t.delete(n),r&&Q(r,e);Lf(e,`Cleaning up same-origin frame documents failed`)}};Qn(),$h(),wg(),Rf();let O_=(e,t)=>{window.dispatchEvent(t),t.defaultPrevented&&(e.preventDefault(),e.stopImmediatePropagation())},k_=(e,t,n)=>({bubbles:!0,cancelable:!0,composed:!0,clientX:t,clientY:n,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}),A_=e=>{let t=Zn(e.view,e.clientX,e.clientY);O_(e,new PointerEvent(e.type,{...k_(e,t.x,t.y),pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure,tangentialPressure:e.tangentialPressure,tiltX:e.tiltX,tiltY:e.tiltY,twist:e.twist,width:e.width,height:e.height}))},j_=e=>{let t=Zn(e.view,e.clientX,e.clientY);O_(e,new MouseEvent(e.type,k_(e,t.x,t.y)))},M_=e=>{O_(e,new KeyboardEvent(e.type,{bubbles:!0,cancelable:!0,composed:!0,key:e.key,code:e.code,location:e.location,repeat:e.repeat,isComposing:e.isComposing,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}))},N_=e=>D_(t=>{if(t===document)return;let n=t.defaultView;if(!n)return;let r=new AbortController,i=Yh(t),a=hg(t),o={capture:!0,signal:r.signal},s=t=>{e.shouldForwardInteraction()&&A_(t)},c=t=>{e.shouldForwardInteraction()&&j_(t)},l=t=>{(e.shouldForwardInteraction()||e.shouldForwardKeyboardEvent(t))&&M_(t)},u=n=>{e.shouldForwardInteraction()&&e.shouldForwardViewportEvent(t)&&window.dispatchEvent(new Event(n.type))};return n.addEventListener(`pointermove`,s,o),n.addEventListener(`pointerdown`,s,o),n.addEventListener(`pointerup`,s,o),n.addEventListener(`pointercancel`,s,o),n.addEventListener(`contextmenu`,c,o),n.addEventListener(`click`,c,o),n.addEventListener(`keydown`,l,o),n.addEventListener(`keyup`,l,o),n.addEventListener(`keypress`,l,o),n.addEventListener(`scroll`,u,o),n.addEventListener(`resize`,u,o),()=>{r.abort();let e=[];for(let t of[i,a])try{t()}catch(t){e.push(t)}Lf(e,`Cleaning up frame event forwarding failed`)}});Xn();let P_=(e,t)=>{let n=t.ownerDocument;for(;n;){if(n===e)return!0;n=Yn(n.defaultView)?.ownerDocument??null}return!1};Zi(),Om();let F_=null,I_=new Map,L_=()=>typeof window>`u`?F_:window.__REACT_GRAB__??F_??null,R_=e=>{if(F_=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__),e)for(let[t,n]of I_){I_.delete(t);try{e.registerPlugin(n)}catch(e){Z(e instanceof Wi?e:new Wi(t,e))}}},z_=e=>{F_===e&&(F_=null),typeof window<`u`&&window.__REACT_GRAB__===e&&delete window.__REACT_GRAB__},B_=e=>{let t=L_();if(t){t.registerPlugin(e);return}I_.set(e.name,e)},V_=e=>{let t=L_();if(t){t.unregisterPlugin(e);return}I_.delete(e)},H_=async(e,t={})=>(await Promise.allSettled(e.map(e=>Ou(e,t)))).map(e=>e.status===`fulfilled`?e.value:``);var U_,W_=n((()=>{U_=(e,t,n)=>e+(t-e)*n})),G_,K_=n((()=>{J(),G_=(e,t)=>{let n=Math.max(t,1);return 1-(1-e)**(n/ln)}})),q_,J_,Y_,X_,Z_=n((()=>{B(),W_(),J(),Bu(),Ut(),K_(),q_=V(`<canvas data-react-grab-overlay-canvas style=position:fixed;top:0;left:0;pointer-events:none>`),J_={borderColor:pn,fillColor:mn,lerpFactor:$t},Y_={drag:{borderColor:dn,fillColor:fn,lerpFactor:cn},selection:J_,grabbed:J_},X_=e=>{let t,n=null,r=0,i=0,a=1,o=null,s=null,c=null,l=[],f=null,p=[],m=Ht()?`display-p3`:`srgb`,h=()=>{t&&(a=Math.max(window.devicePixelRatio||1,2),r=document.documentElement.clientWidth||window.innerWidth,i=document.documentElement.clientHeight||window.innerHeight,t.width=r*a,t.height=i*a,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext(`2d`,{colorSpace:m}),n&&n.scale(a,a))},g=e=>{if(!e)return 0;let t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):0},b=(e,t,n)=>({id:e,current:{x:t.x,y:t.y,width:t.width,height:t.height},target:{x:t.x,y:t.y,width:t.width,height:t.height},borderRadius:g(t.borderRadius),opacity:n?.opacity??1,targetOpacity:n?.targetOpacity??n?.opacity??1,createdAt:n?.createdAt,fadeStartTimestamp:null,isInitialized:!0}),x=(e,t,n)=>{let r=e.target;r.x=t.x,r.y=t.y,r.width=t.width,r.height=t.height,e.borderRadius=g(t.borderRadius),n!==void 0&&(n>e.targetOpacity&&(e.opacity=n),e.targetOpacity=n)},S=e=>e.boundsMultiple??[e.bounds],C=(e,t,n,r,i,a,o,s,c=1)=>{if(r<=0||i<=0)return;let l=Math.min(r/2,i/2),u=Math.min(a,l),d=c!==1;d&&(e.globalAlpha=c),e.beginPath(),u>0?e.roundRect(t,n,r,i,u):e.rect(t,n,r,i),e.fillStyle=o,e.fill(),e.strokeStyle=s,e.lineWidth=1,e.stroke(),d&&(e.globalAlpha=1)},w=()=>{if(!n||!e.dragVisible||!f)return;let t=Y_.drag;C(n,f.current.x,f.current.y,f.current.width,f.current.height,f.borderRadius,t.fillColor,t.borderColor)},ee=()=>{if(!n||!e.selectionVisible)return;let t=Y_.selection;for(let e of l)C(n,e.current.x,e.current.y,e.current.width,e.current.height,e.borderRadius,t.fillColor,t.borderColor,e.opacity)},te=e=>{if(!n)return;let t=Y_.grabbed;for(let r of e)C(n,r.current.x,r.current.y,r.current.width,r.current.height,r.borderRadius,t.fillColor,t.borderColor,r.opacity)},T=()=>{!n||!t||r<=0||i<=0||(n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.width,t.height),n.setTransform(a,0,0,a,0,0),w(),ee(),te(p))},ne=(e,t,n)=>{let r=U_(e.current.x,e.target.x,t),i=U_(e.current.y,e.target.y,t),a=U_(e.current.width,e.target.width,t),o=U_(e.current.height,e.target.height,t),s=Math.abs(r-e.target.x)<.5&&Math.abs(i-e.target.y)<.5&&Math.abs(a-e.target.width)<.5&&Math.abs(o-e.target.height)<.5;e.current.x=s?e.target.x:r,e.current.y=s?e.target.y:i,e.current.width=s?e.target.width:a,e.current.height=s?e.target.height:o;let c=!0;if(n?.interpolateOpacity){let n=U_(e.opacity,e.targetOpacity,t);c=Math.abs(n-e.targetOpacity)<un,e.opacity=c?e.targetOpacity:n}return!s||!c},E=()=>{let e=performance.now(),t=c===null?ln:e-c;c=e;let n=G_(Y_.drag.lerpFactor,t),r=G_(Y_.selection.lerpFactor,t),i=G_(Y_.grabbed.lerpFactor,t),a=!1,u=null;f?.isInitialized&&ne(f,n)&&(a=!0);for(let e of l)e.isInitialized&&ne(e,r)&&(a=!0);let d=Date.now();p=p.filter(t=>{let n=t.id.startsWith(`label-`);if(t.isInitialized&&ne(t,i)&&(a=!0),n&&t.targetOpacity===0){t.fadeStartTimestamp===null&&(t.fadeStartTimestamp=e);let n=e-t.fadeStartTimestamp,r=Math.min(1,n/125),i=1-(1-r)*(1-r);return t.opacity=Math.max(0,1-i),r>=1?!1:(a=!0,!0)}else n&&(t.fadeStartTimestamp=null);if(t.createdAt!==void 0){let e=d-t.createdAt;if(e>=1625)return!1;if(e>1500){let n=Math.min(1,(e-en)/125);t.opacity=1-(1-(1-n)*(1-n)),a=!0}else{let t=en-e;u=u===null?t:Math.min(u,t)}return!0}return n?!0:t.opacity>0}),T(),a?o=Lu(E):(o=null,c=null,u!==null&&(s=window.setTimeout(()=>{s=null,D()},Math.max(0,u))))},D=()=>{s!==null&&(window.clearTimeout(s),s=null),o===null&&(o=Lu(E))},O=()=>{h(),D()};return d(_(()=>[e.selectionVisible,e.selectionBounds,e.selectionBoundsMultiple,e.selectionShouldSnap],([e,t,n,r])=>{if(!e||!t&&(!n||n.length===0)){l=[],D();return}let i;i=n&&n.length>0?n:t?[t]:[];let a=new Map;for(let e of l)a.set(e.id,e);l=i.map((e,t)=>{let n=`selection-${t}`,i=a.get(n);return i?(x(i,e),r&&(i.current.x=i.target.x,i.current.y=i.target.y,i.current.width=i.target.width,i.current.height=i.target.height),i):b(n,e)}),D()})),d(_(()=>[e.dragVisible,e.dragBounds],([e,t])=>{if(!e||!t){f=null,D();return}f?x(f,t):f=b(`drag`,t),D()})),d(_(()=>[e.grabbedBoxes,e.labelInstances],([e,t])=>{let n=e??[],r=t??[],i=new Map;for(let e of n)i.set(e.id,e);let a=new Map;for(let e of p)a.set(e.id,e);for(let e of n)if(!a.has(e.id)){let t=b(e.id,e.bounds,{createdAt:e.createdAt});p.push(t),a.set(e.id,t)}for(let e of p){let t=i.get(e.id);t&&x(e,t.bounds)}let o=new Set;for(let e of r){let t=S(e),n=e.status===`fading`?0:1;for(let r=0;r<t.length;r++){let i=t[r],s=`label-${e.id}-${r}`;o.add(s);let c=a.get(s);if(c)x(c,i,n);else{let e=b(s,i,{opacity:1,targetOpacity:n});p.push(e),a.set(s,e)}}}p=p.filter(e=>e.id.startsWith(`label-`)?o.has(e.id):i.has(e.id)),D()})),v(()=>{h(),D(),window.addEventListener(`resize`,O);let e=null,t=()=>{Math.max(window.devicePixelRatio||1,2)!==a&&(O(),n())},n=()=>{e&&e.removeEventListener(`change`,t),e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),e.addEventListener(`change`,t)};n(),y(()=>{window.removeEventListener(`resize`,O),e&&e.removeEventListener(`change`,t),o!==null&&Ru(o),s!==null&&window.clearTimeout(s)})}),(()=>{var e=q_(),n=t;return typeof n==`function`?et(n,e):t=e,u(t=>W(e,`z-index`,String(sn))),e})()}})),Q_,$_,ev=n((()=>{K(),B(),J(),xa(),Q_=V(`<div style=position:fixed;pointer-events:none;will-change:opacity;contain:strict;transform:translateZ(0)>`),$_=e=>{let t=va(),n=t?getComputedStyle(t).borderRadius:`0px`,r=()=>t?.getBoundingClientRect()??null,[i,a]=c(r());if(t){let n=()=>a(r());v(()=>{let e=new ResizeObserver(n);e.observe(t),window.addEventListener(`scroll`,n,{capture:!0,passive:!0}),window.addEventListener(`resize`,n),y(()=>{e.disconnect(),window.removeEventListener(`scroll`,n,{capture:!0}),window.removeEventListener(`resize`,n)})}),d(()=>{e.visible&&n()})}let o=()=>{let e=i();return e?`${e.top}px`:`0`},s=()=>{let e=i();return e?`${e.left}px`:`0`},l=()=>{let e=i();return e?`${e.width}px`:`100%`},f=()=>{let e=i();return e?`${e.height}px`:`100%`};return(()=>{var t=Q_();return W(t,`border-radius`,n),W(t,`z-index`,sn),W(t,`transition`,`opacity 125ms ease-out`),W(t,`box-shadow`,`inset 0 0 50px ${hn}`),u(n=>{var r=o(),i=s(),a=l(),c=f(),u=+!!e.visible;return r!==n.e&&W(t,`top`,n.e=r),i!==n.t&&W(t,`left`,n.t=i),a!==n.a&&W(t,`width`,n.a=a),c!==n.o&&W(t,`height`,n.o=c),u!==n.i&&W(t,`opacity`,n.i=u),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()}})),tv,nv=n((()=>{tv=(e,t)=>{e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,t)}px`}})),rv,iv=n((()=>{xa(),rv=(e,t)=>{e&&e.focus(t)}})),av,ov=n((()=>{J(),av=e=>{if(e<=0)return 8;let t=e*gn;return Math.round(Math.max(4,Math.min(8,t)))}})),sv,cv=n((()=>{xa(),sv=()=>{let e=va();if(e){let t=e.getBoundingClientRect();return{width:t.width,height:t.height,offsetLeft:t.left,offsetTop:t.top}}let t=window.visualViewport;return t?{width:t.width,height:t.height,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop}:{width:window.innerWidth,height:window.innerHeight,offsetLeft:0,offsetTop:0}}})),lv,uv=n((()=>{J(),lv=e=>e.isComposing||e.keyCode===229})),dv,$,fv=n((()=>{dv=e=>{if(typeof e==`string`||typeof e==`number`)return String(e);if(!e||typeof e!=`object`)return``;if(Array.isArray(e)){let t=``;for(let n of e){if(!n)continue;let e=dv(n);e&&(t=t?`${t} ${e}`:e)}return t}let t=``;for(let n in e)e[n]&&(t=t?`${t} ${n}`:n);return t},$=(...e)=>{let t=``;for(let n of e){if(!n)continue;let e=dv(n);e&&(t=t?`${t} ${e}`:e)}return t}})),pv,mv=n((()=>{pv=e=>e.elementsCount&&e.elementsCount>1?{tagName:`${e.elementsCount} elements`,componentName:void 0}:{tagName:e.tagName||e.componentName||`element`,componentName:e.tagName?e.componentName:void 0}})),hv,gv,_v=n((()=>{K(),hv=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M19.2929 12.7071C19.6834 13.0976 20.3166 13.0976 20.7071 12.7071C21.0976 12.3166 21.0976 11.6834 20.7071 11.2929L12.7071 3.29289C12.5196 3.10536 12.2652 3 12 3C11.7348 3 11.4804 3.10536 11.2929 3.29289L3.29289 11.2929C2.90237 11.6834 2.90237 12.3166 3.29289 12.7071C3.68342 13.0976 4.31658 13.0976 4.70711 12.7071L11 6.41421L11 20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20L13 6.41422L19.2929 12.7071Z">`),gv=e=>{let t=()=>e.size??10;return(()=>{var n=hv();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),vv,yv,bv=n((()=>{K(),vv=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path class=icon-loader-bar d="M12 2v4"style=animation-delay:0ms></path><path class=icon-loader-bar d="M15 6.8l2-3.5"style=animation-delay:-42ms></path><path class=icon-loader-bar d="M17.2 9l3.5-2"style=animation-delay:-83ms></path><path class=icon-loader-bar d="M18 12h4"style=animation-delay:-125ms></path><path class=icon-loader-bar d="M17.2 15l3.5 2"style=animation-delay:-167ms></path><path class=icon-loader-bar d="M15 17.2l2 3.5"style=animation-delay:-208ms></path><path class=icon-loader-bar d="M12 18v4"style=animation-delay:-250ms></path><path class=icon-loader-bar d="M9 17.2l-2 3.5"style=animation-delay:-292ms></path><path class=icon-loader-bar d="M6.8 15l-3.5 2"style=animation-delay:-333ms></path><path class=icon-loader-bar d="M2 12h4"style=animation-delay:-375ms></path><path class=icon-loader-bar d="M6.8 9l-3.5-2"style=animation-delay:-417ms></path><path class=icon-loader-bar d="M9 6.8l-2-3.5"style=animation-delay:-458ms>`),yv=e=>{let t=()=>e.size??16;return(()=>{var n=vv();return n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling,u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),xv,Sv,Cv=n((()=>{K(),J(),ov(),xv=V(`<svg data-react-grab-arrow class="absolute block z-10"><path>`),Sv=e=>{let t=()=>e.position===`bottom`,n=()=>av(e.labelWidth??0),r=()=>n()*2,i=()=>n(),a=()=>{let e=r(),n=i(),a=1*Math.SQRT1_2,o=e/2,s=t()?n:0,c=t()?a:n-a,l=+!!t();return`M0 ${s} L${o-a} ${c} A1 1 0 0 ${l} ${o+a} ${c} L${e} ${s} Z`};return(()=>{var n=xv(),o=n.firstChild;return H(o,`fill`,Xt),u(s=>{var c=r(),l=i(),u=`0 0 ${r()} ${i()}`,d=`calc(${e.leftPercent}% + ${e.leftOffsetPx}px)`,f=t()?`0`:void 0,p=t()?void 0:`0`,m=t()?`translateX(-50%) translateY(calc(-100% + 1px))`:`translateX(-50%) translateY(calc(100% - 1px))`,h=a();return c!==s.e&&H(n,`width`,s.e=c),l!==s.t&&H(n,`height`,s.t=l),u!==s.a&&H(n,`viewBox`,s.a=u),d!==s.o&&W(n,`left`,s.o=d),f!==s.i&&W(n,`top`,s.i=f),p!==s.n&&W(n,`bottom`,s.n=p),m!==s.s&&W(n,`transform`,s.s=m),h!==s.h&&H(o,`d`,s.h=h),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),n})()}})),wv,Tv,Ev,Dv,Ov,kv,Av,jv=n((()=>{K(),B(),fv(),wv=V(`<span> `),Tv=V(`<span class=text-[var(--rg-text-secondary)]> `),Ev=V(`<span class=text-[var(--rg-text-primary)]> `),Dv=V(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0">`),Ov=V(`<button type=button>`),kv=V(`<div>`),Av=e=>{let t=()=>{e.onHoverChange?.(!0)},n=()=>{e.onHoverChange?.(!1)},r=()=>e.componentName?`${e.componentName}.${e.tagName}`:e.tagName,i=()=>(()=>{var t=Dv();return G(t,A(j,{get when(){return e.componentName},get children(){return[(()=>{var t=wv(),n=t.firstChild;return u(()=>n.data=e.componentName),t})(),(()=>{var t=Tv(),n=t.firstChild;return u(()=>n.data=`.${e.tagName}`),t})()]}}),null),G(t,A(j,{get when(){return!e.componentName},get children(){var t=Ev(),n=t.firstChild;return u(()=>n.data=e.tagName),t}}),null),t})();return A(j,{get when(){return e.isClickable},get fallback(){return(()=>{var r=kv();return U(r,`click`,e.onClick,!0),r.addEventListener(`mouseleave`,n),r.addEventListener(`mouseenter`,t),G(r,i),u(()=>Xe(r,$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden`,e.shrink&&`shrink-0`))),r})()},get children(){var a=Ov();return U(a,`click`,e.onClick,!0),a.addEventListener(`mouseleave`,n),a.addEventListener(`mouseenter`,t),G(a,i),u(t=>{var n=`Open source for ${r()}`,i=$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden cursor-pointer bg-transparent border-none p-0 m-0 text-left`,e.shrink&&`shrink-0`);return n!==t.e&&H(a,`aria-label`,t.e=n),i!==t.t&&Xe(a,t.t=i),t},{e:void 0,t:void 0}),a}})},qe([`click`])})),Mv,Nv,Pv=n((()=>{K(),Mv=V(`<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-auto h-fit self-stretch [border-top-width:0.5px] border-t-[var(--rg-border-subtle)] antialiased">`),Nv=e=>(()=>{var t=Mv();return G(t,()=>e.children),t})()})),Fv,Iv=n((()=>{fv(),Fv=(e,t={})=>(n={})=>{let r=t.variants;if(!r)return e;let i=[e];for(let e in r){let a=n[e]??t.defaultVariants?.[e];if(a===void 0)continue;let o=r[e][String(a)];o&&i.push(o)}return $(...i)}})),Lv,Rv,zv,Bv=n((()=>{K(),B(),fv(),Iv(),Lv=V(`<div>`),Rv=Fv(`contain-layout antialiased [font-synthesis:none] bg-[var(--rg-panel-bg)]`,{variants:{shape:{panel:`rounded-[14px] [corner-shape:superellipse(1.25)]`,pill:`rounded-full`}},defaultVariants:{shape:`panel`}}),zv=e=>{let[t,n]=Ce(e,[`shape`,`class`]);return(()=>{var e=Lv();return $e(e,Se({get class(){return $(Rv({shape:t.shape}),t.class)}},n),!1,!1),e})()}})),Vv,Hv,Uv=n((()=>{Vv=null,Hv={claim:e=>{Vv=e},release:e=>{Vv===e&&(Vv=null)},isActive:e=>Vv===e}})),Wv,Gv=n((()=>{B(),Uv(),xa(),Wv=e=>{let t=Symbol(),n=ba(n=>{Hv.isActive(t)&&(na(n)||(n.code===`Enter`?e.onEnter?.(n):n.code===`Escape`&&e.onEscape?.(n)))});return v(()=>{Hv.claim(t),window.addEventListener(`keydown`,n,{capture:!0})}),y(()=>{Hv.release(t),window.removeEventListener(`keydown`,n,{capture:!0})}),{claimFocus:()=>Hv.claim(t)}}})),Kv,qv,Jv=n((()=>{K(),Kv=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M10.7071 21.2071C10.3166 21.5976 9.68342 21.5976 9.29289 21.2071L3.29289 15.2071C2.90237 14.8166 2.90237 14.1834 3.29289 13.7929L9.29289 7.79289C9.68342 7.40237 10.3166 7.40237 10.7071 7.79289C11.0976 8.18342 11.0976 8.81658 10.7071 9.20711L6.41421 13.5H16C16.5523 13.5 17 13.0523 17 12.5V3.5C17 2.94772 17.4477 2.5 18 2.5C18.5523 2.5 19 2.94772 19 3.5V12.5C19 14.1569 17.6569 15.5 16 15.5H6.41421L10.7071 19.7929C11.0976 20.1834 11.0976 20.8166 10.7071 21.2071Z">`),qv=e=>{let t=()=>e.size??10;return(()=>{var n=Kv();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Yv,Xv,Zv,Qv=n((()=>{K(),B(),fv(),Iv(),Yv=V(`<button>`),Xv=Fv(`contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all press-scale`,{variants:{variant:{chip:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] hover:bg-[var(--rg-surface-active)] text-[var(--rg-text-primary)]`,destructive:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-error-bg)] hover:bg-[var(--rg-error-bg-hover)] text-[var(--rg-error-text)]`,ghost:`rounded-sm bg-transparent hover:bg-[var(--rg-surface-hover)] border-none outline-none p-0`}},defaultVariants:{variant:`chip`}}),Zv=e=>{let[t,n]=Ce(e,[`variant`,`class`,`type`]);return(()=>{var e=Yv();return $e(e,Se({get type(){return t.type??`button`},get class(){return $(Xv({variant:t.variant}),t.class)}},n),!1,!1),e})()}})),$v,ey,ty,ny,ry,iy,ay=n((()=>{K(),B(),Gv(),Jv(),Qv(),Pv(),$v=V(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">No`),ey=V(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Copy`),ty=V(`<span class="text-[var(--rg-error-text)] text-[13px] leading-3.5 font-sans font-medium">Yes`),ny=V(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),ry=V(`<div data-react-grab-discard-prompt class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"> `),iy=e=>{let t=()=>e.showCancel??!0,{claimFocus:n}=Wv({onEnter:t=>{t.preventDefault(),t.stopPropagation();let n=t.composedPath()[0],r=n instanceof HTMLElement?n:null;if(r?.closest(`[data-react-grab-discard-copy]`)){e.onCopy?.();return}if(r?.closest(`[data-react-grab-discard-no]`)){e.onCancel?.();return}e.onConfirm?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.cancelOnEscape?e.onCancel?.():e.onConfirm?.()}});return(()=>{var r=ry(),i=r.firstChild.firstChild.firstChild;return U(r,`click`,n,!0),U(r,`pointerdown`,n,!0),G(r,A(Nv,{get children(){var n=ny();return G(n,A(j,{get when(){return t()},get children(){return A(Zv,{"data-react-grab-discard-no":!0,get onClick(){return e.onCancel},get children(){return $v()}})}}),null),G(n,A(j,{get when(){return e.onCopy},get children(){return A(Zv,{"data-react-grab-discard-copy":!0,get onClick(){return e.onCopy},get children(){return ey()}})}}),null),G(n,A(Zv,{variant:`destructive`,class:`gap-0.5`,"data-react-grab-discard-yes":!0,get onClick(){return e.onConfirm},get children(){return[ty(),A(qv,{size:10,class:`text-[var(--rg-error-text)] opacity-50`})]}}),null),n}}),null),u(()=>i.data=e.label??`Discard?`),r})()},qe([`pointerdown`,`click`])})),oy,sy,cy=n((()=>{K(),oy=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7 2C4.23858 2 2 4.23858 2 7V15C2 17.7614 4.23858 20 7 20H8C8.55228 20 9 19.5523 9 19C9 18.4477 8.55228 18 8 18H7C5.34315 18 4 16.6569 4 15V7C4 5.34315 5.34315 4 7 4H17C18.6569 4 20 5.34315 20 7V15C20 16.6569 18.6569 18 17 18H14.4142L16.2071 16.2071C16.5976 15.8166 16.5976 15.1834 16.2071 14.7929C15.8166 14.4024 15.1834 14.4024 14.7929 14.7929L11.2929 18.2929C11.197 18.3888 11.1247 18.4993 11.0759 18.6172C11.027 18.7351 11 18.8644 11 19C11 19.2728 11.1093 19.5201 11.2864 19.7005C11.2889 19.7031 11.2914 19.7056 11.2939 19.7081L14.7929 23.2071C15.1834 23.5976 15.8166 23.5976 16.2071 23.2071C16.5976 22.8166 16.5976 22.1834 16.2071 21.7929L14.4142 20H17C19.7614 20 22 17.7614 22 15V7C22 4.23858 19.7614 2 17 2H7Z">`),sy=e=>{let t=()=>e.size??12;return(()=>{var n=oy();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),ly,uy,dy,fy,py,my=n((()=>{K(),B(),Gv(),cy(),Qv(),Pv(),ly=V(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Retry`),uy=V(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Ok`),dy=V(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),fy=V(`<div data-react-grab-error role=alert aria-live=assertive class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-start gap-1 px-2 w-full h-fit"><span class="text-[var(--rg-error-text)] text-[13px] leading-4 font-sans font-medium overflow-hidden line-clamp-5"> `),py=e=>{let{claimFocus:t}=Wv({onEnter:t=>{if(wm(t,`data-react-grab-error-ok`)){t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.();return}t.preventDefault(),t.stopPropagation(),e.onRetry?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.()}}),n=()=>!!(e.onRetry||e.onAcknowledge);return(()=>{var r=fy(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return U(r,`click`,t,!0),U(r,`pointerdown`,t,!0),G(r,A(j,{get when(){return n()},get children(){return A(Nv,{get children(){var t=dy();return G(t,A(j,{get when(){return e.onRetry},get children(){return A(Zv,{"data-react-grab-retry":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,get onClick(){return e.onRetry},get children(){return[ly(),A(sy,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-text-secondary)]`})]}})}}),null),G(t,A(j,{get when(){return e.onAcknowledge},get children(){return A(Zv,{"data-react-grab-error-ok":!0,class:`gap-1`,"aria-keyshortcuts":`Escape`,get onClick(){return e.onAcknowledge},get children(){return uy()}})}}),null),t}})}}),null),u(t=>{var r={"pt-1.5 pb-1":n(),"py-1.5":!n()},s=e.error,c=e.error;return t.e=Ze(i,r,t.e),s!==t.t&&H(a,`title`,t.t=s),c!==t.a&&(o.data=t.a=c),t},{e:void 0,t:void 0,a:void 0}),r})()},qe([`pointerdown`,`click`])})),hy,gy,_y=n((()=>{K(),hy=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7.5 12C7.5 13.3807 6.38071 14.5 5 14.5C3.61929 14.5 2.5 13.3807 2.5 12C2.5 10.6193 3.61929 9.5 5 9.5C6.38071 9.5 7.5 10.6193 7.5 12ZM14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12ZM19 14.5C20.3807 14.5 21.5 13.3807 21.5 12C21.5 10.6193 20.3807 9.5 19 9.5C17.6193 9.5 16.5 10.6193 16.5 12C16.5 13.3807 17.6193 14.5 19 14.5Z">`),gy=e=>{let t=()=>e.size??14;return(()=>{var n=hy();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),vy,yy,by=n((()=>{K(),vy=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM17.7071 10.7071C18.0976 10.3166 18.0976 9.68342 17.7071 9.29289C17.3166 8.90237 16.6834 8.90237 16.2929 9.29289L11 14.5858L8.70711 12.2929C8.31658 11.9024 7.68342 11.9024 7.29289 12.2929C6.90237 12.6834 6.90237 13.3166 7.29289 13.7071L10.2929 16.7071C10.6834 17.0976 11.3166 17.0976 11.7071 16.7071L17.7071 10.7071Z">`),yy=e=>{let t=()=>e.size??14;return(()=>{var n=vy();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),xy,Sy,Cy,wy,Ty,Ey,Dy=n((()=>{K(),B(),J(),Gv(),Tm(),Jv(),_y(),fv(),Qv(),Bv(),by(),xy=V(`<button type=button data-react-grab-ignore-events data-react-grab-more-options aria-label="More options">`),Sy=V(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Keep`),Cy=V(`<div class="contain-layout shrink-0 flex items-center justify-between gap-2 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> </span><div class="contain-layout shrink-0 flex items-center gap-2 h-fit">`),wy=V(`<div class="contain-layout shrink-0 flex items-center gap-0.5 py-1.5 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> `),Ty=e=>(()=>{var t=xy();return U(t,`click`,t=>{t.stopImmediatePropagation(),e.onClick()}),U(t,`pointerdown`,e=>{e.stopImmediatePropagation()}),G(t,A(gy,{size:14,"aria-hidden":`true`,class:`opacity-50 group-hover:opacity-100 transition-opacity`})),u(()=>Xe(t,$(Xv({variant:`ghost`}),`group size-4 text-[var(--rg-text-secondary)] hover:text-[var(--rg-text-primary)]`))),t})(),Ey=e=>{let t,n,[r,i]=c(!1),[a,o]=c(!1),s=()=>r()?`Copied`:e.statusText,l=()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n),o(!0),e.onFadingChange?.(!0),e.onShowContextMenu?.()},d=()=>{r()||(i(!0),t=window.setTimeout(()=>{o(!0),e.onFadingChange?.(!0),n=window.setTimeout(()=>{e.onDismiss?.()},125)},en-125))},{claimFocus:f}=Wv({onEnter:e=>{if(wm(e,`data-react-grab-more-options`)){e.preventDefault(),e.stopPropagation(),l();return}wm(e,`data-react-grab-context-menu`)||(e.preventDefault(),e.stopPropagation(),d())},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onDismiss?.()}});return y(()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n)}),A(zv,{shape:`pill`,"data-react-grab-completion":!0,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,class:`shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px] transition-opacity duration-100 ease-out`,get style(){return{opacity:+!a()}},onPointerDown:f,onClick:f,get children(){return[A(j,{get when(){return _t(()=>!r())()&&e.onDismiss},get children(){var t=Cy(),n=t.firstChild,i=n.firstChild,a=n.nextSibling;return G(a,A(j,{get when(){return e.onShowContextMenu},get children(){return A(Ty,{onClick:l})}}),null),G(a,A(j,{get when(){return e.onDismiss},get children(){return A(Zv,{"data-react-grab-dismiss":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,onClick:d,get disabled(){return r()},get"aria-disabled"(){return r()},get children(){return[Sy(),A(j,{get when(){return!r()},get children(){return A(qv,{size:10,class:`text-[var(--rg-text-secondary)]`})}})]}})}}),null),u(()=>i.data=s()),t}}),A(j,{get when(){return r()||!e.onDismiss},get children(){var t=wy(),n=t.firstChild,r=n.firstChild;return G(t,A(yy,{size:14,"aria-hidden":`true`,class:`text-[var(--rg-text-primary-85)] shrink-0`}),n),G(t,A(j,{get when(){return e.onShowContextMenu},get children(){return A(Ty,{onClick:l})}}),null),u(()=>r.data=s()),t}})]}})}})),Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy=n((()=>{K(),B(),J(),nv(),iv(),ov(),cv(),uv(),xa(),fv(),mv(),_v(),bv(),Cv(),jv(),Pv(),Bv(),ay(),my(),Dy(),Oy=V(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 py-1.5 px-2 w-full h-fit"><span class="shimmer-text text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap"> `),ky=V(`<div class="contain-layout shrink-0 flex flex-col items-start w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit px-2 py-1.5">`),Ay=V(`<button data-react-grab-submit type=button aria-label="Submit context"class="contain-layout shrink-0 flex items-center justify-center size-4 rounded-full bg-[var(--rg-submit-bg)] cursor-pointer ml-1 interactive-scale a11y-hitbox">`),jy=V(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events data-react-grab-input aria-label="Add context for selected element"aria-keyshortcuts="Enter Escape"class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-medium bg-transparent border-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="Add context"rows=1 style=field-sizing:content;min-height:16px;scrollbar-width:none>`),My=V(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit min-w-[150px] max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2 max-w-full">`),Ny=V(`<div data-react-grab-ignore-events data-react-grab-selection-label class="fixed font-sans text-[13px] antialiased select-none">`),Py={left:In,top:In,arrowLeftPercent:50,arrowLeftOffset:0,edgeOffsetX:0},Fy=e=>{let t,n,r,i=!1,[a,o]=c(0),[s,l]=c(0),[p,m]=c(0),[h,g]=c(0),[b,x]=c(!1),[S,C]=c(!1),w=()=>e.status!==`copying`&&e.status!==`copied`&&e.status!==`fading`&&e.status!==`error`,ee=()=>e.status===`copied`||e.status===`fading`,te=()=>!!(e.isPromptMode||e.discardPrompt||ee()&&(e.onDismiss||e.onShowContextMenu)||e.status===`error`&&(e.onAcknowledgeError||e.onRetry)),T,ne=e=>{i=e},E=()=>{g(e=>e+1)};v(()=>{let e=va();if(T=new ResizeObserver(r=>{for(let a of r){let r=a.target.getBoundingClientRect();a.target===t&&!i?(o(r.width),l(r.height)):a.target===n?m(r.width):a.target===e&&E()}}),e&&T.observe(e),t){let e=t.getBoundingClientRect();o(e.width),l(e.height),T.observe(t)}n&&(m(n.getBoundingClientRect().width),T.observe(n)),window.addEventListener(`scroll`,E,!0),window.addEventListener(`resize`,E),window.visualViewport?.addEventListener(`resize`,E),window.visualViewport?.addEventListener(`scroll`,E)}),y(()=>{T?.disconnect(),window.removeEventListener(`scroll`,E,!0),window.removeEventListener(`resize`,E),window.visualViewport?.removeEventListener(`resize`,E),window.visualViewport?.removeEventListener(`scroll`,E)});let D=()=>`${e.tagName??``}:${e.componentName??``}`,O=f(t=>{h();let n=D(),r=n===t.elementIdentity?t:{position:Py,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:n},i=e.selectionBounds,o=a(),c=s(),l=o>0&&c>0,u=i&&i.width>0&&i.height>0;if(!l||!u)return{position:r.hadValidBounds?r.position:Py,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let d=sv(),f=d.offsetLeft,m=d.offsetTop,g=f+d.width,_=m+d.height;if(!(i.x+i.width>f&&i.x<g&&i.y+i.height>m&&i.y<_))return{position:Py,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let v=i.x+i.width/2,y=e.mouseX??v,b=i.y+i.height,x=i.y,S=e.hideArrow?0:av(p()),C=y,w=0,ee=b+S+4,te=C-o/2,T=C+o/2;T>g-8&&(w=g-8-T),te+w<f+8&&(w=f+8-te);let ne=c+S+4,E=ee+c<=_-8;E||(ee=x-ne),ee<m+8&&(ee=m+8);let O=o/2,re=O-w,ie=Math.min(16,O),ae=Math.max(o-16,O),oe=Math.max(ie,Math.min(ae,re))-O;return{position:{left:C,top:ee,arrowLeftPercent:50,arrowLeftOffset:oe,edgeOffsetX:w},computedArrowPosition:E?`bottom`:`top`,hadValidBounds:!0,elementIdentity:n}},{position:Py,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:``}),re=()=>O().computedArrowPosition??`bottom`,ie=()=>O().hadValidBounds;d(_(()=>e.selectionLabelShakeCount,()=>C(!0),{defer:!0}));let ae=t=>{if(lv(t))return;t.stopImmediatePropagation();let n=t.code===`Enter`&&!t.shiftKey,r=t.code===`Escape`;n?(t.preventDefault(),e.onSubmit?.()):r&&(t.preventDefault(),e.onConfirmDismiss?.())},oe=t=>{let n=t.target;n instanceof HTMLTextAreaElement&&(tv(n,95),e.onInputChange?.(n.value))},k=()=>pv({tagName:e.tagName,componentName:e.componentName,elementsCount:e.elementsCount}),se=f(()=>!(e.error||e.discardPrompt||w()&&e.isPromptMode)),ce=t=>{t.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen()},le=t=>{t.stopImmediatePropagation(),w()&&e.isPromptMode&&!e.discardPrompt&&e.onSubmit&&r&&rv(r,{preventScroll:!0})},ue=()=>ie()&&(ee()||e.status===`error`);return A(j,{get when(){return _t(()=>e.visible!==!1)()&&(e.selectionBounds||ue())},get children(){var i=Ny();i.addEventListener(`mouseleave`,()=>e.onHoverChange?.(!1)),i.addEventListener(`mouseenter`,()=>e.onHoverChange?.(!0)),i.$$click=e=>{e.stopImmediatePropagation()},i.$$pointerdown=le;var a=t;return typeof a==`function`?et(a,i):t=i,W(i,`z-index`,`${on}`),W(i,`transition`,`opacity 125ms ease-out, filter 125ms ease-out`),G(i,A(j,{get when(){return!e.hideArrow},get children(){return A(Sv,{get position(){return re()},get leftPercent(){return O().position.arrowLeftPercent},get leftOffsetPx(){return O().position.arrowLeftOffset},get labelWidth(){return p()}})}}),null),G(i,A(j,{get when(){return _t(()=>!!ee())()&&!e.error},get children(){return A(Ey,{get statusText(){return e.statusText??`Copied`},get onDismiss(){return e.onDismiss},onFadingChange:x,get onShowContextMenu(){return e.onShowContextMenu}})}}),null),G(i,A(zv,{ref:e=>n=e,get shape(){return se()?`pill`:`panel`},get class(){return $(`flex items-center gap-[5px] w-fit h-fit p-0`,S()&&`animate-shake`)},get style(){return{display:ee()&&!e.error?`none`:void 0}},onAnimationEnd:()=>C(!1),get children(){return[A(j,{get when(){return e.status===`copying`},get children(){var t=Oy(),n=t.firstChild,r=n.firstChild,i=r.firstChild;return G(n,A(yv,{size:13,class:`text-[var(--rg-text-secondary)] shrink-0`}),r),u(()=>i.data=e.statusText??`Grabbing…`),t}}),A(j,{get when(){return _t(()=>!!(w()&&!e.isPromptMode))()&&!e.discardPrompt},get children(){var t=ky(),n=t.firstChild;return G(n,A(Av,{get tagName(){return k().tagName},get componentName(){return k().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:ce,onHoverChange:ne,shrink:!0})),t}}),A(j,{get when(){return _t(()=>!!(w()&&e.isPromptMode))()&&!e.discardPrompt},get children(){var t=My(),n=t.firstChild;return G(n,A(Av,{get tagName(){return k().tagName},get componentName(){return k().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:ce,onHoverChange:ne})),G(t,A(Nv,{get children(){var t=jy(),n=t.firstChild;return n.$$keydown=ae,n.$$input=oe,et(t=>{r=t,e.onSubmit&&queueMicrotask(()=>{rv(t,{preventScroll:!0}),tv(t,95)})},n),W(n,`max-height`,`95px`),G(t,A(j,{get when(){return e.onSubmit},get children(){var t=Ay();return t.$$click=()=>e.onSubmit?.(),G(t,A(gv,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-submit-fg)]`})),t}}),null),u(()=>n.readOnly=!e.onSubmit),u(()=>n.value=e.inputValue??``),t}}),null),t}}),A(j,{get when(){return e.discardPrompt},keyed:!0,children:e=>A(iy,{get label(){return _t(()=>!!e.isKeyboardSelection)()?`Discard selection?`:e.label},get showCancel(){return!e.isKeyboardSelection},get cancelOnEscape(){return e.cancelOnEscape},get onConfirm(){return e.onConfirm},get onCopy(){return e.onCopy},onCancel:()=>{e.isKeyboardSelection||e.onCancel?.(),rv(r,{preventScroll:!0})}})}),A(j,{get when(){return e.error},get children(){return A(py,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}})]}}),null),u(t=>{var n=`${O().position.top}px`,r=`${O().position.left}px`,a=`translateX(calc(-50% + ${O().position.edgeOffsetX}px))`,o=te()?`auto`:`none`,s=e.status===`fading`||b()?0:1,c=`drop-shadow(${Zt}) blur(${e.status===`fading`||b()?`3px`:`0`})`;return n!==t.e&&W(i,`top`,t.e=n),r!==t.t&&W(i,`left`,t.t=r),a!==t.a&&W(i,`transform`,t.a=a),o!==t.o&&W(i,`pointer-events`,t.o=o),s!==t.i&&W(i,`opacity`,t.i=s),c!==t.n&&W(i,`filter`,t.n=c),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),i}})},qe([`pointerdown`,`click`,`input`,`keydown`])})),Ly,Ry,zy=n((()=>{K(),fv(),J(),Ly=V(`<span style="transition-property:transform;transition-timing-function:cubic-bezier(0.32, 0.72, 0, 1)"><svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M20.8977 4.02356L21.8277 4.39121C22.3784 2.99813 21.0382 1.60206 19.6238 2.09546L3.47334 7.72936C1.38661 8.45728 1.49021 11.443 3.6224 12.0245L10.1289 13.799L11.2331 19.8724C11.638 22.0991 14.7072 22.4019 15.5393 20.2972L21.8277 4.39121L20.8977 4.02356Z">`),Ry=e=>{let t=()=>e.size??14,n=()=>e.rotationDeg??0;return(()=>{var r=Ly(),i=r.firstChild;return W(r,`transition-duration`,`180ms`),u(a=>{var o=$(`inline-flex items-center justify-center will-change-transform`,e.class),s=`rotate(${n()}deg)`,c=t(),l=t();return o!==a.e&&Xe(r,a.e=o),s!==a.t&&W(r,`transform`,a.t=s),c!==a.a&&H(i,`width`,a.a=c),l!==a.o&&H(i,`height`,a.o=l),a},{e:void 0,t:void 0,a:void 0,o:void 0}),r})()}})),By,Vy,Hy,Uy,Wy=n((()=>{K(),B(),fv(),J(),By=V(`<div> `),Vy=0,Hy=()=>Date.now()-Vy<800,Uy=e=>{let[t,n]=c(!1),[r,i]=c(!0),a;d(_(()=>e.visible,e=>{a!==void 0&&(clearTimeout(a),a=void 0),e?Hy()?(i(!1),n(!0)):(i(!0),a=setTimeout(()=>{n(!0)},400)):(t()&&(Vy=Date.now()),n(!1))})),y(()=>{a!==void 0&&clearTimeout(a),t()&&(Vy=Date.now())});let o=()=>e.position===`top`||e.position===`bottom`?{left:`50%`,translate:`-50%`,"z-index":`${on}`}:{top:`50%`,translate:`0 -50%`,"z-index":`${on}`};return A(j,{get when(){return t()},get children(){var t=By(),n=t.firstChild;return u(i=>{var a=$(`absolute whitespace-nowrap px-2 py-0.5 rounded-full text-[10px] font-sans font-medium leading-4 pointer-events-none`,`bg-[var(--rg-panel-bg)] text-[var(--rg-text-primary)] [box-shadow:var(--rg-shadow)]`,e.position===`top`&&`bottom-full mb-2.5`,e.position===`bottom`&&`top-full mt-2.5`,e.position===`left`&&`right-full mr-2.5`,e.position===`right`&&`left-full ml-2.5`,r()&&`animate-tooltip-fade-in`),s=o(),c=e.textContent;return a!==i.e&&Xe(t,i.e=a),i.t=Qe(t,s,i.t),c!==i.a&&(n.data=i.a=c),i},{e:void 0,t:void 0,a:void 0}),t}})}})),Gy,Ky,qy=n((()=>{K(),B(),Wy(),Gy=V(`<div><button data-react-grab-ignore-events type=button>`),Ky=e=>(()=>{var t=Gy(),n=t.firstChild;U(n,`mouseleave`,e.onMouseLeave),U(n,`mouseenter`,e.onMouseEnter),U(n,`contextmenu`,t=>e.onContextMenu?.(t)),U(n,`click`,e.onClick,!0);var r=e.ref;return typeof r==`function`?et(r,n):e.ref=n,G(n,()=>e.icon),G(t,A(j,{get when(){return e.tooltip},children:t=>A(Uy,{get visible(){return!!e.tooltipVisible},get position(){return e.tooltipPosition??`top`},get textContent(){return t()}})}),null),u(r=>{var i=e.wrapperClass,a=e.isToggle?``:void 0,o=e.actionId,s=e.label,c=!!e.isActive,l=e.class;return i!==r.e&&Xe(t,r.e=i),a!==r.t&&H(n,`data-react-grab-toolbar-toggle`,r.t=a),o!==r.a&&H(n,`data-react-grab-toolbar-action`,r.a=o),s!==r.o&&H(n,`aria-label`,r.o=s),c!==r.i&&H(n,`aria-pressed`,r.i=c),l!==r.n&&Xe(n,r.n=l),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})(),qe([`click`])})),Jy,Yy,Xy,Zy,Qy,$y,eb,tb=n((()=>{J(),cv(),Kp(),Jy=e=>e===`top`||e===`bottom`,Yy=e=>{let t=Jy(e);return{width:t?30:16,height:t?16:30}},Xy=(e,t,n,r)=>{let i=sv(),a=i.width,o=i.height,s=i.offsetLeft+16,c=Math.max(s,i.offsetLeft+a-n-16),l=i.offsetTop+16,u=Math.max(l,i.offsetTop+o-r-16);if(Jy(e)){let r=Math.max(0,a-n-32);return{x:Math.min(c,Math.max(s,i.offsetLeft+16+r*t)),y:e===`top`?l:u}}let d=Math.max(0,o-r-32),f=Math.min(u,Math.max(l,i.offsetTop+16+d*t));return{x:e===`left`?s:c,y:f}},Zy=(e,t,n,r,i)=>{let a=sv(),o=a.width,s=a.height;if(Jy(e)){let e=o-r-32;return e<=0?Dn:Math.max(0,Math.min(1,(t-a.offsetLeft-16)/e))}let c=s-i-32;return c<=0?Dn:Math.max(0,Math.min(1,(n-a.offsetTop-16)/c))},Qy=(e,t,n,r,i)=>{let a=sv(),o=a.width,s=a.height,{width:c,height:l}=n,u;if(Jy(t)){let n=(c-r)/2;u={x:Gp(e.x-n,a.offsetLeft+16,a.offsetLeft+o-c-16),y:t===`top`?a.offsetTop+16:a.offsetTop+s-l-16}}else{let n=(l-i)/2,r=Gp(e.y-n,a.offsetTop+16,a.offsetTop+s-l-16);u={x:t===`left`?a.offsetLeft+16:a.offsetLeft+o-c-16,y:r}}let d=Zy(t,u.x,u.y,c,l);return{position:u,ratio:d}},$y=(e,t,n,r)=>{let i=sv(),{width:a,height:o}=n,{width:s,height:c}=r;switch(e){case`top`:case`bottom`:{let n=(a-s)/2;return{x:Gp(t.x+n,i.offsetLeft,i.offsetLeft+i.width-s),y:e===`top`?i.offsetTop:i.offsetTop+i.height-c}}case`left`:case`right`:{let n=(o-c)/2,r=Gp(t.y+n,i.offsetTop,i.offsetTop+i.height-c);return{x:e===`left`?i.offsetLeft:i.offsetLeft+i.width-s,y:r}}}},eb=(e,t,n,r,i,a)=>{let o=sv(),s=o.width,c=o.height,l=e+i*150,u=t+a*150,d=u-o.offsetTop+r/2,f=o.offsetTop+c-u-r/2,p=l-o.offsetLeft+n/2,m=o.offsetLeft+s-l-n/2,h=Math.min(d,f,p,m),g=e=>Gp(e,o.offsetLeft+16,o.offsetLeft+s-n-16),_=e=>Gp(e,o.offsetTop+16,o.offsetTop+c-r-16);return h===d?{edge:`top`,x:g(l),y:o.offsetTop+16}:h===p?{edge:`left`,x:o.offsetLeft+16,y:_(u)}:h===m?{edge:`right`,x:o.offsetLeft+s-n-16,y:_(u)}:{edge:`bottom`,x:g(l),y:o.offsetTop+c-r-16}}})),nb,rb,ib=n((()=>{K(),nb=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M9.29289 16.7071C8.90237 16.3166 8.90237 15.6834 9.29289 15.2929L12.5858 12L9.29289 8.70711C8.90237 8.31658 8.90237 7.68342 9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C14.8946 11.4804 15 11.7348 15 12C15 12.2652 14.8946 12.5196 14.7071 12.7071L10.7071 16.7071C10.3166 17.0976 9.68342 17.0976 9.29289 16.7071Z">`),rb=e=>{let t=()=>e.size??14;return(()=>{var n=nb();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),ab,ob,sb=n((()=>{K(),fv(),tb(),ib(),ab=V(`<div data-react-grab-toolbar-panel><div><div><div></div></div></div><button data-react-grab-ignore-events data-react-grab-toolbar-collapse type=button class="group contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox">`),ob=e=>{let t=()=>e.snapEdge??`bottom`,n=()=>!Jy(t()),r=()=>e.isCollapsed?`duration-140`:`duration-220`,i=()=>n()?`transition-[grid-template-rows] ${r()} ease-drawer`:`transition-[grid-template-columns] ${r()} ease-drawer`,a=()=>n()?`min-h-0`:`min-w-0`,o=()=>e.isCollapsed?`${{top:`rounded-t-none rounded-b-[10px]`,bottom:`rounded-b-none rounded-t-[10px]`,left:`rounded-l-none rounded-r-[10px]`,right:`rounded-r-none rounded-l-[10px]`}[t()]} ${n()?`px-0.25 py-2`:`px-2 py-0.25`}`:``,s=()=>{let n=e.isCollapsed;switch(t()){case`top`:return n?`rotate-90`:`-rotate-90`;case`bottom`:return n?`-rotate-90`:`rotate-90`;case`left`:return n?`rotate-0`:`rotate-180`;case`right`:return n?`rotate-180`:`rotate-0`;default:return`-rotate-90`}},c=()=>{if(e.isChevronPressed)return n()?`scale(0.97, 1)`:`scale(1, 0.97)`},l=()=>e.isChevronPressed?`transition-[padding,border-radius,transform] duration-60 ease-[cubic-bezier(0,0,0.2,1)]`:`transition-[padding,border-radius,transform] ${r()} ease-drawer`;return(()=>{var t=ab(),r=t.firstChild,d=r.firstChild,f=d.firstChild,p=r.nextSibling;return U(t,`click`,e.onPanelClick,!0),U(t,`animationend`,e.onAnimationEnd),G(f,()=>e.actionButtons),U(p,`pointercancel`,e.onCollapsePointerLeave),U(p,`pointerleave`,e.onCollapsePointerLeave),U(p,`pointerup`,e.onCollapsePointerUp,!0),U(p,`pointerdown`,e.onCollapsePointerDown),U(p,`click`,e.onCollapseClick,!0),G(p,A(rb,{size:18,get class(){return $(`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)] transition-[transform,color] duration-150 ease-drawer -m-0.5`,s())}})),u(s=>{var u=$(`flex items-center justify-center rounded-[13px] antialiased relative overflow-visible [font-synthesis:none]`,l(),n()&&`flex-col`,`bg-[var(--rg-panel-bg)] [box-shadow:var(--rg-shadow)]`,!e.isCollapsed&&(n()?`px-1.5 gap-0 py-2`:`py-1.5 gap-0 px-2`),o(),e.isShaking&&(n()?`animate-shake-vertical`:`animate-shake`)),m=e.transformOrigin,h=c(),g=$(`grid relative overflow-visible`,i(),e.isCollapsed?n()?`grid-rows-[0fr] pointer-events-none`:`grid-cols-[0fr] pointer-events-none`:n()?`grid-rows-[1fr]`:`grid-cols-[1fr]`),_=$(`flex`,n()?`flex-col items-center min-h-0`:`items-center min-w-0`,e.isCollapsed?`opacity-0`:`opacity-100`,e.isCollapsed?`transition-opacity duration-100 ease-drawer`:`transition-opacity duration-180 ease-drawer delay-[80ms]`),v=$(`relative overflow-visible flex`,n()?`flex-col items-center`:`items-center`,a()),y=e.isCollapsed?`Expand toolbar`:`Collapse toolbar`,b=!e.isCollapsed;return u!==s.e&&Xe(t,s.e=u),m!==s.t&&W(t,`transform-origin`,s.t=m),h!==s.a&&W(t,`transform`,s.a=h),g!==s.o&&Xe(r,s.o=g),_!==s.i&&Xe(d,s.i=_),v!==s.n&&Xe(f,s.n=v),y!==s.s&&H(p,`aria-label`,s.s=y),b!==s.h&&H(p,`aria-expanded`,s.h=b),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),t})()},qe([`click`,`pointerup`])})),cb,lb=n((()=>{B(),J(),Bu(),xa(),tb(),cb=e=>{let[t,n]=c(!1),[r,i]=c(!1),[a,o]=c(!1),[s,l]=c({x:0,y:0}),u={x:0,y:0},d={x:0,y:0,time:0},f={x:0,y:0},p=!1,m,h,g=null,_=()=>{g?.abort(),g=null},v=()=>{m!==void 0&&(Ru(m),m=void 0)},b=t=>{if(!a()){if(Math.hypot(t.clientX-f.x,t.clientY-f.y)<=5)return;o(!0),e.onDragStart()}let n=performance.now(),r=n-d.time;r>0&&l({x:(t.clientX-d.x)/r,y:(t.clientY-d.y)/r}),d={x:t.clientX,y:t.clientY,time:n};let i=t.clientX-u.x,s=t.clientY-u.y;e.onPositionUpdate({x:i,y:s})},x=()=>{_();let t=a();if(n(!1),!t)return;p=!0;let r=e.getContainerRef(),o=r?.getBoundingClientRect();if(!o)return;let c=s(),l=eb(o.left,o.top,o.width,o.height,c.x,c.y),u=Zy(l.edge,l.x,l.y,o.width,o.height);e.onSnapEdgeChange(l.edge,u),i(!0),v(),m=Lu(()=>{let t=r?.getBoundingClientRect(),n=t?{width:t.width,height:t.height}:e.getExpandedDimensions();m=Lu(()=>{m=void 0;let t=Xy(l.edge,u,n.width,n.height);e.onSnapComplete({edge:l.edge,ratio:u,position:t,expandedDimensions:n}),h=setTimeout(()=>{i(!1),e.onSnapAnimationEnd?.()},300)})})},S=ba(t=>{if(t.button!==0||e.isCollapsed()||r())return;let i=e.getContainerRef()?.getBoundingClientRect();if(!i)return;f={x:t.clientX,y:t.clientY},u={x:t.clientX-i.left,y:t.clientY-i.top},n(!0),o(!1),l({x:0,y:0}),d={x:t.clientX,y:t.clientY,time:performance.now()},_(),g=new AbortController;let{signal:a}=g;window.addEventListener(`pointermove`,b,{signal:a}),window.addEventListener(`pointerup`,x,{signal:a}),window.addEventListener(`pointercancel`,x,{signal:a})});return y(()=>{_(),v(),clearTimeout(h)}),{isDragging:t,isSnapping:r,handlePointerDown:S,createDragAwareHandler:e=>t=>{if(t.stopImmediatePropagation(),p){p=!1;return}e()}}}})),ub,db,fb=n((()=>{ub=360,db=(e,t)=>{let n=t-e;return e+(n-Math.round(n/ub)*ub)}})),pb,mb,hb=n((()=>{K(),B(),fv(),zy(),qy(),J(),sb(),cv(),xa(),Bu(),tb(),lb(),fb(),pb=V(`<div data-react-grab-ignore-events data-react-grab-toolbar>`),mb=e=>{let t,n,r=null,i=Qm(),[a,o]=c(!1),[s,l]=c(!1),[f,p]=c(!1),[m,h]=c(i?.edge??`bottom`),[g,b]=c(i?.ratio??.5),[x,S]=c({x:0,y:0}),[C,w]=c(!1),[ee,te]=c(!1),[T,ne]=c(!1),[E,D]=c(!1),[O,re]=c(0),[ie,ae]=c(null),oe=()=>{r?.(),r=null,e.isActive||Dg()},k=cb({getContainerRef:()=>t,isCollapsed:s,getExpandedDimensions:()=>ge,onDragStart:()=>{ae(null),r&&oe()},onPositionUpdate:e=>S(e),onSnapEdgeChange:(e,t)=>{ye(m(),e),h(e),b(t)},onSnapComplete:e=>{ge=e.expandedDimensions,S(e.position),P({edge:e.edge,ratio:e.ratio,collapsed:s(),enabled:!s()})}}),se=()=>!Jy(m()),ce=()=>se()?`mb-1.5`:`mr-1.5`,le=()=>e.defaultActionId??`copy`,ue=()=>e.defaultActionLabel??`Copy`,de=()=>!!e.isActive&&(e.activeActionId??`copy`)===le(),fe=t=>ie()===t&&!e.isActive&&!s()&&!k.isDragging()&&!k.isSnapping()&&!e.isContextMenuOpen,pe=()=>{switch(m()){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`;default:return`top`}},me=e=>{e.stopImmediatePropagation()},he=t=>({onMouseEnter:e=>{k.isDragging()||(ae(t()),r||(r=d_(),Eg(e.clientX,e.clientY)))},onMouseLeave:()=>{let n=t();ae(e=>e===n?null:e),!e.isActive&&!e.isContextMenuOpen&&oe()}});d(_(()=>e.shakeCount,t=>{t&&!e.enabled&&w(!0)})),d(_(()=>[e.isActive,e.isContextMenuOpen],([e,t])=>{!e&&!t&&r&&oe()})),d(_(()=>de(),e=>{if(!e){re(e=>db(e,0));return}let t=null,r=0,i=0,a=()=>{if(t=null,!n)return;let e=n.getBoundingClientRect(),a=e.left+e.width/2,o=e.top+e.height/2,s=r-a,c=i-o;if(Math.hypot(s,c)<4)return;let l=Math.atan2(c,s)*180/Math.PI- -45;re(e=>db(e,l))},o=ba(e=>{r=e.clientX,i=e.clientY,t===null&&(t=Lu(a))});window.addEventListener(`pointermove`,o,{passive:!0}),y(()=>{window.removeEventListener(`pointermove`,o),t!==null&&Ru(t)})}));let ge={width:38,height:28},[_e,ve]=c(Yy(m())),ye=(e,t)=>{Jy(e)!==Jy(t)&&ve(Yy(t))},be=(e,n)=>{let r=t?.getBoundingClientRect(),i=Yy(n);return Qy(e,n,ge,r?.width??i.width,r?.height??i.height)},xe=()=>{S(Xy(m(),g(),ge.width,ge.height))},Ce=k.createDragAwareHandler(()=>e.onToggle?.()),we=()=>$(`relative contain-layout flex items-center justify-center`,ce()),j=e=>e?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]`,M=k.createDragAwareHandler(()=>{if(s()){Ae();return}let e=t?.getBoundingClientRect(),n=g();e&&(ge={width:e.width,height:e.height}),te(!0),l(!0),P({edge:m(),ratio:n,collapsed:!0,enabled:!1}),ke()}),Te=()=>$y(m(),x(),ge,_e()),N,Ee,De=null,Oe=()=>{let e=t?.getBoundingClientRect();!e||e.width===0||e.height===0||(s()?ve({width:e.width,height:e.height}):(ge={width:e.width,height:e.height},De={width:e.width,height:e.height}))},ke=()=>{Ee&&clearTimeout(Ee),Ee=setTimeout(()=>{te(!1),Oe()},260)},Ae=()=>{let{position:e,ratio:t}=be(F(),m());S(e),b(t),te(!0),l(!1),P({edge:m(),ratio:t,collapsed:!1,enabled:!0}),ke()},je=(e,t)=>{if(!(e===0||t===0)&&!(k.isDragging()||k.isSnapping())&&!ee()){if(s()){let n=_e();if(n.width===e&&n.height===t)return;ve({width:e,height:t});return}De&&De.width===e&&De.height===t||(De={width:e,height:t},ge={width:e,height:t},S(Xy(m(),g(),e,t)))}},Me=null,Ne=()=>{k.isDragging()||k.isSnapping()||Me===null&&(Me=Lu(()=>{Me=null,xe()}))},Pe=()=>{k.isDragging()||(p(!0),xe(),N&&clearTimeout(N),N=setTimeout(()=>{p(!1);let e=Zy(m(),x().x,x().y,ge.width,ge.height);b(e),P({edge:m(),ratio:e,collapsed:s(),enabled:!s()})},500))},P=t=>{let n={...t,defaultAction:le()};$m(n),e.onStateChange?.(n)};v(()=>{t&&e.onContainerRef?.(t);let n=t?.getBoundingClientRect(),r=sv(),a=!!(n&&n.width>0&&n.height>0);i?(a&&n&&(ge={width:n.width,height:n.height}),l(i.collapsed),S(Xy(i.edge,i.ratio,ge.width,ge.height))):a&&n?(ge={width:n.width,height:n.height},S({x:r.offsetLeft+(r.width-n.width)/2,y:r.offsetTop+r.height-n.height-16}),b(Dn)):(S(Xy(`bottom`,Dn,ge.width,ge.height)),b(Dn)),e.onSubscribeToStateChanges&&y(e.onSubscribeToStateChanges(e=>{if(ee()||!t?.getBoundingClientRect())return;let n=s()!==e.collapsed;if(ye(m(),e.edge),h(e.edge),n&&!e.collapsed){let t=F();te(!0),l(e.collapsed);let{position:n,ratio:r}=be(t,e.edge);S(n),b(r),ke()}else n&&(te(!0),ke()),l(e.collapsed),S(Xy(e.edge,e.ratio,ge.width,ge.height)),b(e.ratio)})),window.addEventListener(`resize`,Pe),window.visualViewport?.addEventListener(`resize`,Pe),window.visualViewport?.addEventListener(`scroll`,Pe);let c=va();if(c&&(window.addEventListener(`scroll`,Ne,{passive:!0,capture:!0}),typeof ResizeObserver<`u`)){let e=new ResizeObserver(Ne);e.observe(c),y(()=>e.disconnect())}if(typeof ResizeObserver<`u`&&t){let e=new ResizeObserver(e=>{let n=e[0];if(!n)return;let r=n.borderBoxSize?.[0],i,a;if(r)i=r.inlineSize,a=r.blockSize;else{let e=t?.getBoundingClientRect();if(!e)return;i=e.width,a=e.height}je(i,a)});e.observe(t),y(()=>e.disconnect())}let u=setTimeout(()=>{o(!0)},500);y(()=>{clearTimeout(u)})}),y(()=>{window.removeEventListener(`resize`,Pe),window.visualViewport?.removeEventListener(`resize`,Pe),window.visualViewport?.removeEventListener(`scroll`,Pe),window.removeEventListener(`scroll`,Ne,{capture:!0}),Me!==null&&Ru(Me),clearTimeout(N),clearTimeout(Ee),r&&oe()});let F=()=>s()?Te():x(),Fe=()=>s()?`cursor-pointer`:k.isDragging()?`cursor-grabbing`:`cursor-grab`,Ie=()=>E()||!!e.isContextMenuOpen||k.isDragging()||k.isSnapping()||ee()||T(),I=()=>!!e.isActive&&!Ie(),L=()=>f()||k.isDragging()?``:k.isSnapping()?`transition-[transform,opacity] duration-300 ease-out`:ee()?`transition-[transform,opacity] ${s()?`duration-140`:`duration-220`} ease-drawer`:`transition-[transform,opacity] duration-400 ease-drawer`,R=()=>{switch(m()){case`top`:return`center top`;case`bottom`:return`center bottom`;case`left`:return`left center`;case`right`:return`right center`;default:return`center center`}};return(()=>{var r=pb();r.addEventListener(`mouseleave`,()=>{D(!1),e.onSelectHoverChange?.(!1)}),r.addEventListener(`mouseenter`,()=>{D(!0),s()||e.onSelectHoverChange?.(!0)}),U(r,`mousedown`,me),U(r,`pointerdown`,e=>{me(e),k.handlePointerDown(e)});var i=t;return typeof i==`function`?et(i,r):t=r,G(r,A(ob,{get isCollapsed(){return s()},get snapEdge(){return m()},get isShaking(){return C()},get isChevronPressed(){return T()},get transformOrigin(){return R()},onAnimationEnd:()=>w(!1),onCollapseClick:M,onCollapsePointerDown:()=>ne(!0),onCollapsePointerUp:()=>ne(!1),onCollapsePointerLeave:()=>ne(!1),onPanelClick:e=>{s()&&(e.stopPropagation(),Ae())},get actionButtons(){return A(Ky,Se({get actionId(){return le()},isToggle:!0,ref:e=>n=e,get label(){return _t(()=>!!de())()?`Stop selecting element`:`${ue()} element`},get isActive(){return de()},class:`group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox`,get wrapperClass(){return we()},onClick:Ce,onContextMenu:t=>{t.preventDefault(),t.stopPropagation(),ae(null),e.onToggleToolbarMenu?.()}},()=>he(le),{get icon(){return A(Ry,{size:14,get rotationDeg(){return O()},get class(){return j(de())}})},get tooltipVisible(){return fe(le())},get tooltipPosition(){return pe()},get tooltip(){return ue()}}))}})),u(e=>{var t=$(`fixed left-0 top-0 font-sans text-[13px] antialiased select-none`,Fe(),L(),a()?`pointer-events-auto`:`pointer-events-none`),n=String(on),i=`translate(${F().x}px, ${F().y}px) scale(${I()?.97:1})`,o=R(),s=a()?I()?.55:1:0;return t!==e.e&&Xe(r,e.e=t),n!==e.t&&W(r,`z-index`,e.t=n),i!==e.a&&W(r,`transform`,e.a=i),o!==e.o&&W(r,`transform-origin`,e.o=o),s!==e.i&&W(r,`opacity`,e.i=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})()}})),gb,_b,vb=n((()=>{B(),gb=w(),_b=()=>{let e=ee(gb);if(!e)throw Error(`Menu subcomponents must be rendered inside <Menu.Provider>`);return e}})),yb,bb=n((()=>{K(),vb(),yb=e=>A(gb.Provider,{get value(){return e.store},get children(){return e.children}})})),xb,Sb=n((()=>{K(),fv(),Bv(),xb=e=>A(zv,{get class(){return $(`flex flex-col w-fit h-fit`,e.class)},get style(){return e.style},get children(){return e.children}})})),Cb,wb,Tb=n((()=>{K(),fv(),vb(),Cb=V(`<div role=menu aria-orientation=vertical><div aria-hidden=true class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity,border-radius] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),wb=e=>{let t=_b();return(()=>{var n=Cb(),r=n.firstChild;n.$$pointermove=()=>t.notePointerMove(),et(n=>{t.setHighlightContainer(n),e.ref?.(n)},n);var i=t.setHighlightRail;return typeof i==`function`?et(i,r):t.setHighlightRail=r,G(n,()=>e.children,null),u(r=>{var i=e.label,a=t.keyboardNavigation?t.activeDescendantId():void 0,o=t.keyboardNavigation?-1:void 0,s=$(`relative flex flex-col`,e.class);return i!==r.e&&H(n,`aria-label`,r.e=i),a!==r.t&&H(n,`aria-activedescendant`,r.t=a),o!==r.a&&H(n,`tabindex`,r.a=o),s!==r.o&&Xe(n,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()},qe([`pointermove`])})),Eb,Db,Ob=n((()=>{K(),B(),fv(),vb(),Eb=V(`<button data-react-grab-ignore-events type=button>`),Db=e=>{let t=_b(),n=t.createItemId(),r=e.value,i=()=>e.role??`menuitem`,a=()=>!e.disabled,o=()=>t.activeValue()===r,s;return v(()=>{s&&(t.registerItem({value:r,domId:n,element:s,isEnabled:a,onSelect:()=>e.onSelect?.()}),y(()=>t.unregisterItem(r)))}),(()=>{var c=Eb();c.$$click=t=>{t.stopPropagation(),a()&&e.onSelect?.()},c.addEventListener(`pointerleave`,()=>{t.clearActiveOnPointerLeave&&t.setActiveItem(null)}),c.addEventListener(`pointerenter`,()=>{a()&&t.canActivateOnHover()&&t.setActiveItem(r)}),c.$$pointerdown=e=>e.stopPropagation();var l=s;return typeof l==`function`?et(l,c):s=c,H(c,`id`,n),G(c,()=>e.children),u(n=>{var a=e.dataId??r,s=i(),l=i()===`menuitemradio`?!!e.checked:void 0,u=!!e.disabled,d=t.keyboardNavigation?o()?0:-1:void 0,f=e.disabled,p=$(`relative z-1 contain-layout flex items-center justify-between w-full px-2 py-1 cursor-pointer text-left border-none bg-transparent disabled:opacity-40 disabled:cursor-default`,e.class);return a!==n.e&&H(c,`data-react-grab-menu-item`,n.e=a),s!==n.t&&H(c,`role`,n.t=s),l!==n.a&&H(c,`aria-checked`,n.a=l),u!==n.o&&H(c,`aria-disabled`,n.o=u),d!==n.i&&H(c,`tabindex`,n.i=d),f!==n.n&&(c.disabled=n.n=f),p!==n.s&&Xe(c,n.s=p),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),c})()},qe([`pointerdown`,`click`])})),kb,Ab,jb=n((()=>{K(),fv(),kb=V(`<span> `),Ab=e=>(()=>{var t=kb(),n=t.firstChild;return u(r=>{var i=$(`text-[13px] leading-4 font-sans font-medium`,e.class),a=e.textContent;return i!==r.e&&Xe(t,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t})()})),Mb,Nb,Pb=n((()=>{K(),Mb=V(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M6.5 5C5.67157 5 5 5.67157 5 6.5C5 7.32843 5.67157 8 6.5 8H8V6.5C8 5.67157 7.32843 5 6.5 5ZM10 8V6.5C10 4.567 8.433 3 6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10H8V14H6.5C4.567 14 3 15.567 3 17.5C3 19.433 4.567 21 6.5 21C8.433 21 10 19.433 10 17.5V16H14V17.5C14 19.433 15.567 21 17.5 21C19.433 21 21 19.433 21 17.5C21 15.567 19.433 14 17.5 14H16V10H17.5C19.433 10 21 8.433 21 6.5C21 4.567 19.433 3 17.5 3C15.567 3 14 4.567 14 6.5V8H10ZM10 10V14H14V10H10ZM16 8H17.5C18.3284 8 19 7.32843 19 6.5C19 5.67157 18.3284 5 17.5 5C16.6716 5 16 5.67157 16 6.5V8ZM16 16V17.5C16 18.3284 16.6716 19 17.5 19C18.3284 19 19 18.3284 19 17.5C19 16.6716 18.3284 16 17.5 16H16ZM8 16H6.5C5.67157 16 5 16.6716 5 17.5C5 18.3284 5.67157 19 6.5 19C7.32843 19 8 18.3284 8 17.5V16Z">`),Nb=e=>{let t=()=>e.size??11;return(()=>{var n=Mb();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&H(n,`width`,r.e=i),a!==r.t&&H(n,`height`,r.t=a),o!==r.a&&H(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Fb,Ib,Lb,Rb=n((()=>{K(),B(),_m(),Pb(),Jv(),Fb=V(`<span> `),Ib=V(`<span style=display:inline-flex;align-items:center;gap:2px>`),Lb=e=>{let t=()=>e.shortcut===`Enter`,n=()=>e.modifier!==!1,r=gm();return(()=>{var i=Ib();return G(i,A(j,{get when(){return t()},get children(){return A(qv,{size:8})}}),null),G(i,A(j,{get when(){return!t()},get children(){return A(j,{get when(){return n()},get fallback(){return(()=>{var t=Fb(),n=t.firstChild;return u(()=>n.data=e.shortcut),t})()},get children(){return A(j,{when:r,get fallback(){return(()=>{var t=Fb(),n=t.firstChild;return u(()=>n.data=`Ctrl+${e.shortcut}`),t})()},get children(){return[A(Nb,{size:9}),(()=>{var t=Fb(),n=t.firstChild;return u(()=>n.data=e.shortcut),t})()]}})}})}}),null),u(()=>Xe(i,e.class)),i})()}})),zb,Bb=n((()=>{K(),fv(),Rb(),zb=e=>A(Lb,{get shortcut(){return e.shortcut},get modifier(){return e.modifier},get class(){return $(`text-[11px] font-sans text-[var(--rg-text-secondary)] ml-4`,e.class)}})})),Vb,Hb,Ub,Wb,Gb,Kb,qb=n((()=>{B(),Vb=`0`,Hb=`1`,Ub=({hiddenOpacity:e=Vb,visibleOpacity:t=Hb}={})=>{let n,r,i,a=e=>{r&&(r.style.opacity=t,r.style.top=`${e.offsetTop}px`,r.style.left=`${e.offsetLeft}px`,r.style.width=`${e.offsetWidth}px`,r.style.height=`${e.offsetHeight}px`)},o=typeof ResizeObserver>`u`?void 0:new ResizeObserver(()=>{i&&a(i)});y(()=>o?.disconnect());let s=()=>{i=void 0,o?.disconnect(),r&&(r.style.opacity=e)};return{containerRef:e=>{n=e},followerRef:e=>{r=e},followElement:e=>{if(!(!r||!n)){if(!e){s();return}i=e,a(e),o?.disconnect(),o?.observe(e),o?.observe(n)}},hideFollower:s}},Wb=(e,t)=>e!==t&&e instanceof HTMLElement,Gb=(e,t)=>{let n=[];for(let r of Array.from(e.children))Wb(r,t)&&n.push(r);return n},Kb=(e={})=>{let{topCornerRadiusPx:t,bottomCornerRadiusPx:n,cornerShape:r}=e,i=t!==void 0||n!==void 0,a,o=!1,s=e=>{if(!a||!i)return;let s=e.parentElement;if(!s)return;let c=Gb(s,a),l=c[0]===e,u=c[c.length-1]===e,d=l&&t!==void 0?`${t}px`:`0px`,f=u&&n!==void 0?`${n}px`:`0px`;a.style.borderTopLeftRadius=d,a.style.borderTopRightRadius=d,a.style.borderBottomLeftRadius=f,a.style.borderBottomRightRadius=f,r&&!o&&(a.style.setProperty(`corner-shape`,r),o=!0)},{containerRef:c,followerRef:l,followElement:u,hideFollower:d}=Ub();return{containerRef:c,highlightRef:e=>{a=e,o=!1,l(e)},updateHighlight:e=>{u(e),e&&s(e)},clearHighlight:d}}})),Jb,Yb=n((()=>{B(),qb(),Jb=(e={})=>{let t=new Map,n=[],r=`react-grab-menu-${Math.random().toString(36).slice(2,8)}`,i=0,a=!1,o=e.value!==void 0,[s,l]=c(null),[u,p]=c(0),m=f(()=>o?e.value?.()??null:s()),h=t=>{if(o){e.onValueChange?.(t);return}l(t)},g=Kb(e.highlight??{});d(_([m,u],([e])=>{if(e===null){g.clearHighlight();return}let n=t.get(e);n?g.updateHighlight(n.element):g.clearHighlight()}));let v=()=>n.filter(e=>t.get(e)?.isEnabled()),y=()=>{let e=v();e.length>0&&h(e[0])},b=()=>{let e=v();e.length>0&&h(e[e.length-1])},x=()=>{let e=v();if(e.length===0)return;let t=e.indexOf(m()??``);h(e[t===-1?0:(t+1)%e.length])},S=()=>{let e=v();if(e.length===0)return;let t=e.indexOf(m()??``);h(e[t===-1?e.length-1:(t-1+e.length)%e.length])},C=f(()=>{u();let e=m();if(e!==null)return t.get(e)?.domId});return{keyboardNavigation:e.keyboardNavigation??!1,clearActiveOnPointerLeave:e.clearActiveOnPointerLeave??!1,activeValue:m,activeDescendantId:C,setActiveItem:h,createItemId:()=>`${r}-item-${i++}`,canActivateOnHover:()=>!(e.requirePointerMove??!1)||a,notePointerMove:()=>{a=!0},resetPointerMove:()=>{a=!1},registerItem:e=>{t.set(e.value,e),n.includes(e.value)||n.push(e.value),p(e=>e+1)},unregisterItem:e=>{t.delete(e);let r=n.indexOf(e);r!==-1&&n.splice(r,1),o||l(t=>t===e?null:t),p(e=>e+1)},getActiveItem:()=>{let e=m();return e===null?void 0:t.get(e)},selectFirst:y,selectLast:b,selectNext:x,selectPrevious:S,setHighlightContainer:g.containerRef,setHighlightRail:g.highlightRef}}})),Xb,Zb=n((()=>{bb(),Sb(),Tb(),Ob(),jb(),Bb(),Yb(),Xb={Provider:yb,Panel:xb,List:wb,Item:Db,Label:Ab,Shortcut:zb}})),Qb,$b=n((()=>{Qb=e=>{e.type===`contextmenu`&&e.preventDefault(),e.stopImmediatePropagation()}})),ex,tx=n((()=>{xa(),Tm(),aa(),Bu(),ex=e=>{let t=ba(t=>{e.isOpen()&&(e.shouldIgnoreKeyboardEvent?.(t)||e.shouldIgnoreInputEvents&&na(t)||t.code===`Escape`&&(t.preventDefault(),t.stopImmediatePropagation(),e.onDismiss(`keyboard`)))}),n=ba(t=>{e.isOpen()&&(wm(t,`data-react-grab-ignore-events`)||e.shouldIgnoreRightClick&&t instanceof MouseEvent&&t.button===2||e.onDismiss(`pointer`))}),r=Lu(()=>{window.addEventListener(`mousedown`,n,{capture:!0}),window.addEventListener(`touchstart`,n,{capture:!0})});return window.addEventListener(`keydown`,t,{capture:!0}),()=>{Ru(r),window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`mousedown`,n,{capture:!0}),window.removeEventListener(`touchstart`,n,{capture:!0})}}})),nx,rx,ix,ax=n((()=>{K(),B(),J(),Cv(),jv(),Pv(),Zb(),mv(),S_(),Bu(),$b(),tx(),xa(),nx=V(`<div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2">`),rx=V(`<div data-react-grab-ignore-events data-react-grab-context-menu class="fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none"style=pointer-events:auto>`),ix=e=>{let t,n,r=null,i=Jb({keyboardNavigation:!0,highlight:{bottomCornerRadiusPx:14,cornerShape:An}}),[a,o]=c(0),[s,l]=c(0),p=f(()=>e.position!==null),m=f(()=>pv({tagName:e.tagName,componentName:e.componentName})),h=()=>{if(t){let e=t.getBoundingClientRect();o(e.width),l(e.height)}};d(()=>{p()&&Lu(h)});let g=f(()=>{let t=e.selectionBounds,n=e.position,r=a(),i=s();if(r===0||i===0||!t||!n)return{left:Nn.left,top:Nn.top,arrowLeft:0,arrowPosition:`bottom`};let o=n.x??t.x+t.width/2,c=Math.max(4,Math.min(o-r/2,window.innerWidth-r-4)),l=Math.max(8,Math.min(o-c,r-8)),u=t.y+t.height+8+4,d=t.y-i-8-4,f=u+i>window.innerHeight,p=d>=0,m=f&&p,h=m?d:u,g=m?`top`:`bottom`;if(f&&!p){let e=n.y??t.y+t.height/2;h=Math.max(4,Math.min(e+4,window.innerHeight-i-4)),g=`top`}return{left:c,top:h,arrowLeft:l,arrowPosition:g}}),b=f(()=>{let t=e.actions??[],n=e.actionContext;return t.map(e=>({id:e.id,label:e.label,action:()=>{n&&C_(e,n)},enabled:x_(e,n),shortcut:e.shortcut,shortcutModifier:e.shortcutModifier}))});d(_(p,e=>{if(e){let e=t?.getRootNode(),i=e instanceof ShadowRoot?e.activeElement:null,a=document.activeElement;r=a instanceof HTMLElement&&i===null&&!(t instanceof Element&&t.contains(a))?a:null,n?.focus({preventScroll:!0});return}i.setActiveItem(null);let a=r;r=null,!(!(a instanceof HTMLElement)||!document.contains(a))&&Lu(()=>{let e=document.activeElement;(e===null||e===document.body)&&a.focus({preventScroll:!0})})})),v(()=>{h();let t=t=>{if(!p())return;let n=t.key===`ArrowDown`,r=t.key===`ArrowUp`,a=t.key===`Home`,o=t.key===`End`,s=t.key===`Tab`;if(n||r||a||o||s){t.preventDefault(),t.stopPropagation();let e=n||s&&!t.shiftKey;a?i.selectFirst():o?i.selectLast():e?i.selectNext():i.selectPrevious();return}let c=e.actions??[],l=e.actionContext,u=n=>{l&&C_(n,l)&&(t.preventDefault(),t.stopPropagation(),e.onHide())};if(t.key===`Enter`){let e=i.getActiveItem();if(e){t.preventDefault(),t.stopPropagation(),e.isEnabled()&&e.onSelect();return}}let d=g_(c,t,{includeModifierShortcuts:!0});d&&u(d)},n=ex({isOpen:p,onDismiss:e.onDismiss,shouldIgnoreRightClick:!0}),r=ba(t);window.addEventListener(`keydown`,r,{capture:!0}),y(()=>{n(),window.removeEventListener(`keydown`,r,{capture:!0})})});let x=f(()=>{let{tagName:e,componentName:t}=m();return`Actions for ${t?`${t}.${e}`:e}`});return A(j,{get when(){return p()},get children(){var r=rx();U(r,`contextmenu`,Qb,!0),U(r,`click`,Qb,!0),U(r,`mousedown`,Qb,!0),U(r,`pointerdown`,Qb,!0);var a=t;return typeof a==`function`?et(a,r):t=r,W(r,`z-index`,`${on}`),G(r,A(Sv,{get position(){return g().arrowPosition},leftPercent:0,get leftOffsetPx(){return g().arrowLeft}}),null),G(r,A(Xb.Panel,{class:`justify-center items-start min-w-[100px]`,get children(){return[(()=>{var t=nx();return G(t,A(Av,{get tagName(){return m().tagName},get componentName(){return m().componentName},get isClickable(){return e.hasFilePath},onClick:t=>{if(t.stopPropagation(),e.hasFilePath&&e.actionContext){let t=e.actions?.find(e=>e.id===`open`);t&&C_(t,e.actionContext)}},shrink:!0})),t})(),A(Nv,{get children(){return A(Xb.Provider,{store:i,get children(){return A(Xb.List,{ref:e=>n=e,get label(){return x()},class:`w-[calc(100%+16px)] -mx-2 -my-1.5 outline-none`,get children(){return A(we,{get each(){return b()},children:t=>A(Xb.Item,{get value(){return t.id},get dataId(){return t.label.toLowerCase()},get disabled(){return!t.enabled},onSelect:()=>{t.action(),e.onHide()},get children(){return[A(Xb.Label,{class:`text-[var(--rg-text-primary)]`,get textContent(){return t.label}}),A(j,{get when(){return t.shortcut},children:e=>A(Xb.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})})}})}})}})]}}),null),u(e=>{var t=`${g().top}px`,n=`${g().left}px`;return t!==e.e&&W(r,`top`,e.e=t),n!==e.t&&W(r,`left`,e.t=n),e},{e:void 0,t:void 0}),r}})},qe([`pointerdown`,`mousedown`,`click`,`contextmenu`])})),ox,sx=n((()=>{ox=(e,t,n,r)=>Math.max(r,Math.min(e,n-t-r))})),cx,lx=n((()=>{sx(),cx=({anchor:e,measuredWidth:t,measuredHeight:n,viewportLeft:r=0,viewportTop:i=0,viewportWidth:a,viewportHeight:o,anchorGapPx:s,viewportPaddingPx:c,offscreenPosition:l})=>{if(!e||t===0||n===0)return l;let u,d;return e.edge===`left`||e.edge===`right`?(u=e.edge===`left`?e.x+s:e.x-t-s,d=e.y-n/2):(u=e.x-t/2,d=e.edge===`top`?e.y+s:e.y-n-s),{left:r+ox(u-r,t,a,c),top:i+ox(d-i,n,o,c)}}})),ux,dx=n((()=>{B(),J(),lx(),cv(),xa(),Bu(),ux=(e,t)=>{let[n,r]=c(0),[i,a]=c(0),[o,s]=c(!1),[l,u]=c(!1),[p,m]=c(0),[g,_]=c(`bottom`),v,b,x=()=>{clearTimeout(v),b!==void 0&&(Ru(b),b=void 0)},S=()=>{let t=e();t&&(r(t.offsetWidth),a(t.offsetHeight))},C=()=>{h(()=>{m(e=>e+1),S()})},w=f(()=>t()!==null);return d(()=>{let n=t();n?(_(n.edge),clearTimeout(v),s(!0),b!==void 0&&Ru(b),b=Lu(()=>{S(),e()?.offsetHeight,u(!0)})):(b!==void 0&&Ru(b),u(!1),v=setTimeout(()=>{s(!1)},120)),y(x)}),d(()=>{if(!w())return;window.addEventListener(`resize`,C),window.visualViewport?.addEventListener(`resize`,C),window.visualViewport?.addEventListener(`scroll`,C);let e=va(),t;e&&typeof ResizeObserver<`u`&&(t=new ResizeObserver(C),t.observe(e)),y(()=>{window.removeEventListener(`resize`,C),window.visualViewport?.removeEventListener(`resize`,C),window.visualViewport?.removeEventListener(`scroll`,C),t?.disconnect()})}),{shouldMount:o,isAnimatedIn:l,lastAnchorEdge:g,displayPosition:f(e=>{p();let r=sv(),a=cx({anchor:t(),measuredWidth:n(),measuredHeight:i(),viewportLeft:r.offsetLeft,viewportTop:r.offsetTop,viewportWidth:r.width,viewportHeight:r.height,anchorGapPx:8,viewportPaddingPx:8,offscreenPosition:Nn});return a.left===Nn.left?e:a},Nn),measure:S,clearAnimationHandles:x}}})),fx,px,mx=n((()=>{K(),B(),J(),fv(),$b(),dx(),tx(),fx=V(`<div data-react-grab-ignore-events>`),px=e=>{let t,n=()=>e.interactive!==!1,r=ux(()=>t,()=>e.position);return v(()=>{r.measure();let t=e.onDismiss?ex({isOpen:()=>!!e.position,onDismiss:e.onDismiss}):void 0;y(()=>{r.clearAnimationHandles(),t?.()})}),A(j,{get when(){return r.shouldMount()},get children(){var i=fx(),a=t;return typeof a==`function`?et(a,i):t=i,$e(i,Se(()=>({[e.dataAttribute]:``}),{get class(){return $(`fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none will-change-[opacity,transform]`,r.isAnimatedIn()?`transition-[opacity,transform] duration-220 ease-spring`:`transition-[opacity,transform] duration-120 ease-drawer`)},get style(){return{top:`${r.displayPosition().top}px`,left:`${r.displayPosition().left}px`,"z-index":`${on}`,"pointer-events":n()&&r.isAnimatedIn()?`auto`:`none`,"transform-origin":Pn[r.lastAnchorEdge()],opacity:r.isAnimatedIn()?`1`:`0`,transform:r.isAnimatedIn()?`scale(1)`:`scale(0.92)`}},onPointerDown:Qb,onMouseDown:Qb,onClick:Qb,onContextMenu:Qb}),!1,!0),G(i,()=>e.children),i}})}})),hx,gx=n((()=>{K(),B(),J(),Zb(),mx(),hx=e=>{let t=Jb({clearActiveOnPointerLeave:!0,highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:An}});return A(px,{get position(){return e.position},dataAttribute:`data-react-grab-toolbar-menu`,get onDismiss(){return e.onDismiss},get children(){return A(Xb.Panel,{class:`overflow-hidden`,style:{"min-width":`100px`},get children(){return A(Xb.Provider,{store:t,get children(){return A(Xb.List,{label:`Default action`,get children(){return A(we,{get each(){return e.actions},children:t=>{let n=()=>t.id===e.defaultActionId;return A(Xb.Item,{get value(){return t.id},role:`menuitemradio`,get checked(){return n()},onSelect:()=>{e.onSetDefaultAction(t.id),e.onDismiss()},get children(){return[A(Xb.Label,{get class(){return n()?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)]`},get textContent(){return t.label}}),A(j,{get when(){return t.shortcut},children:e=>A(Xb.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})}})}})}})}})}})}})),_x,vx,yx,bx,xx,Sx=n((()=>{K(),B(),J(),Zb(),mx(),_x=V(`<span aria-hidden=true class="shrink-0 font-mono text-[11px] leading-4 text-[var(--rg-text-secondary)] opacity-60 mr-1"> `),vx=V(`<span> `),yx=V(`<span class=text-[var(--rg-text-secondary)]>.`),bx=V(`<span class="flex items-center min-w-0 w-full"><span class="text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0 transition-colors"><span> `),xx=e=>{let t=()=>e.state?.activeIndex??0,n=Jb({value:()=>String(t()),highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:An}});return A(px,{get position(){return e.position},dataAttribute:`data-react-grab-hierarchy-menu`,interactive:!1,get children(){return A(Xb.Panel,{class:`overflow-hidden`,style:{"min-width":`160px`},get children(){return A(Xb.Provider,{store:n,get children(){return A(Xb.List,{label:`Navigate element hierarchy`,get children(){return A(we,{get each(){return e.state?.items??[]},children:(e,n)=>A(Xb.Item,{get value(){return String(n())},role:`menuitemradio`,get checked(){return n()===t()},get children(){var r=bx(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return G(r,A(j,{get when(){return e.depth>0},get children(){var t=_x(),n=t.firstChild;return u(r=>{var i=`${(e.depth-1)*12}px`,a=e.isLast?`└─`:`├─`;return i!==r.e&&W(t,`padding-left`,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t}}),i),G(i,A(j,{get when(){return e.componentName},get children(){return[(()=>{var t=vx(),n=t.firstChild;return u(()=>n.data=e.componentName),t})(),yx()]}}),a),u(r=>{var a=n()===t(),s=n()!==t(),c=e.tagName;return a!==r.e&&i.classList.toggle(`text-[var(--rg-text-primary)]`,r.e=a),s!==r.t&&i.classList.toggle(`text-[var(--rg-text-secondary)]`,r.t=s),c!==r.a&&(o.data=r.a=c),r},{e:void 0,t:void 0,a:void 0}),r}})})}})}})}})}})}})),Cx=r({ReactGrabRenderer:()=>wx}),wx,Tx=n((()=>{K(),B(),J(),Ci(),Z_(),ev(),Iy(),hb(),ax(),gx(),Sx(),wx=e=>[A(X_,{get selectionVisible(){return e.selectionVisible},get selectionBounds(){return e.selectionBounds},get selectionBoundsMultiple(){return e.selectionBoundsMultiple},get selectionShouldSnap(){return e.selectionShouldSnap},get dragVisible(){return e.dragVisible},get dragBounds(){return e.dragBounds},get grabbedBoxes(){return e.grabbedBoxes},get labelInstances(){return e.labelInstances}}),A($_,{get visible(){return e.isFrozen??!1}}),A(j,{get when(){return _t(()=>!!e.selectionLabelVisible)()&&(e.frozenLabelEntryAccessors?.length??0)>0},get children(){return A(we,{get each(){return e.frozenLabelEntryAccessors??[]},children:e=>A(j,{get when(){return e.read()},children:e=>A(Fy,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})})})}}),A(j,{get when(){return _t(()=>!!e.selectionLabelVisible)()&&e.pendingShiftPreviewEntry},children:e=>A(Fy,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})}),A(j,{get when(){return _t(()=>!!(e.selectionLabelVisible&&e.selectionBounds))()&&(e.frozenLabelEntryAccessors?.length??0)===0},get children(){return A(Fy,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get elementsCount(){return e.selectionElementsCount},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isPromptMode(){return e.isPromptMode},get inputValue(){return e.inputValue},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get selectionLabelShakeCount(){return e.selectionLabelShakeCount},get onConfirmDismiss(){return e.onConfirmDismiss},get discardPrompt(){return e.discardPrompt},get onOpen(){return e.onOpenSelectionFile}})}}),A(we,{get each(){return e.labelInstanceAccessors??[]},children:t=>A(j,{get when(){return t.read()},children:t=>A(Fy,{get tagName(){return t().tagName},get componentName(){return t().componentName},get elementsCount(){return t().elementsCount},get selectionBounds(){return t().bounds},get mouseX(){return t().mouseX},visible:!0,get status(){return t().status},get statusText(){return t().statusText},get isPromptMode(){return t().isPromptMode},get inputValue(){return t().inputValue},get error(){return t().errorMessage},get hideArrow(){return t().hideArrow},get onShowContextMenu(){let n=t();if(!(!(n.status===`copied`||n.status===`fading`)||!X(n.element)))return()=>e.onShowContextMenuInstance?.(n.id)},onRetry:()=>e.onRetryInstance?.(t().id),onAcknowledgeError:()=>e.onAcknowledgeErrorInstance?.(t().id),onHoverChange:n=>e.onLabelInstanceHoverChange?.(t().id,n)})})}),A(j,{get when(){return e.toolbarVisible!==!1},get children(){return A(mb,{get isActive(){return e.isActive},get isContextMenuOpen(){return e.contextMenuPosition!==null},get onToggle(){return e.onToggleActive},get activeActionId(){return e.activeActionId},get defaultActionId(){return e.defaultActionId},get defaultActionLabel(){return e.defaultActionLabel},get enabled(){return e.enabled},get shakeCount(){return e.shakeCount},get onStateChange(){return e.onToolbarStateChange},get onSubscribeToStateChanges(){return e.onSubscribeToToolbarStateChanges},get onSelectHoverChange(){return e.onToolbarSelectHoverChange},get onContainerRef(){return e.onToolbarRef},get onToggleToolbarMenu(){return e.onToggleToolbarMenu}})}}),A(ix,{get position(){return e.contextMenuPosition??null},get selectionBounds(){return e.contextMenuBounds??null},get tagName(){return e.contextMenuTagName},get componentName(){return e.contextMenuComponentName},get hasFilePath(){return e.contextMenuHasFilePath??!1},get actions(){return e.actions},get actionContext(){return e.actionContext},get onDismiss(){return e.onContextMenuDismiss??(()=>{})},get onHide(){return e.onContextMenuHide??(()=>{})}}),A(hx,{get position(){return e.toolbarMenuPosition??null},get actions(){return e.toolbarMenuActions??[]},get defaultActionId(){return e.defaultActionId??`copy`},get onSetDefaultAction(){return e.onSetDefaultAction??(()=>{})},get onDismiss(){return e.onToolbarMenuDismiss??(()=>{})}}),A(xx,{get position(){return e.hierarchyMenuPosition??null},get state(){return e.hierarchyState}})]}));K(),B(),Zi(),aa(),xa(),Bu(),Wp(),ff(),$d(),Ci(),xi(),$i(),J(),da(),ca(),Tm(),_m(),eh(),$h(),Og(),f_(),Om(),__(),w_(),Bn(),Rf(),di();let Ex=[nh,rh,ih],Dx={status:`cancelled`},Ox=!1,kx=e=>{if(typeof window>`u`)return Td();let t={enabled:!0,activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,...Jm(),...e};if(t.enabled===!1||Ox)return Td();Ox=!0,_a(t.container??null),Gm(t.telemetry!==!1);let{enabled:n,telemetry:r,container:i,...a}=t;return s(e=>{let t=!1,n=new AbortController,r=null,i,o=new Set,s=Fm(a),{store:l,actions:u,pointer:p,viewportVersion:h,current:v}=Li({keyHoldDuration:s.store.options.keyHoldDuration??100}),b=f(()=>v().state===`holding`),x=f(()=>v().state===`active`),S=f(()=>{let e=v();return e.state===`active`&&e.phase===`frozen`}),C=f(()=>{let e=v();return e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)}),w=f(()=>{if(!C())return!1;let e=Math.abs(p().x+window.scrollX-l.dragStart.x),t=Math.abs(p().y+window.scrollY-l.dragStart.y);return e>2||t>2}),ee=f(()=>{let e=v();return e.state===`active`&&e.phase===`dragging-reposition`}),te=f(()=>{let e=v();return e.state===`active`&&e.phase===`justDragged`}),T=f(()=>v().state===`copying`),ne=f(()=>l.selectionInteractionLockDepth>0),E=f(()=>v().state===`justCopied`),D=f(()=>{let e=v();return e.state===`active`&&!!e.isPromptMode}),O=f(()=>l.pendingCommentMode||D()),re=f(()=>{let e=v();return e.state===`active`&&!!e.isPromptMode&&!!e.isPendingDismiss}),ie=new Map,ae=(e,t)=>{ie.has(e)||ie.set(e,document.body.style[e]),document.body.style[e]=t},oe=e=>{let t=ie.get(e);t!==void 0&&(document.body.style[e]=t,ie.delete(e))};d(_(x,(e,t)=>{e&&!t?(Eg(p().x,p().y),ae(`touchAction`,`none`)):!e&&t&&(Dg(),oe(`touchAction`))}));let k=Qm(),[se,ce]=c(k?!k.collapsed:!0),[le,ue]=c(0),[de,fe]=c(0),[pe,me]=c(k),[he,ge]=c(!1),_e=th(e=>e.shiftKey),[ye,be]=c(null),[xe,Se]=c(null),Ce=f(()=>l.contextMenuPosition!==null),we=f(()=>Ce()||ye()!==null),j,M=null,Te=new WeakMap,N=y_(),Ee=()=>!se()||D()||ne()||Ce()||N.isPendingDismiss(),De=()=>{ze(!1),Te=new WeakMap},Oe=e=>{let t=pe()??Qm(),n={edge:t?.edge??`bottom`,ratio:t?.ratio??.5,collapsed:t?.collapsed??!1,enabled:t?.enabled??!0,defaultAction:t?.defaultAction??`copy`,...e};$m(n),me(n),E_(o,n)},ke=()=>{z.timerId!==null&&(clearTimeout(z.timerId),z.timerId=null)},Ae=()=>{z.copyWaiting=!1,z.holdTimerFired=!1,z.startTimestamp=null};d(()=>{if(v().state!==`holding`){ke();return}z.startTimestamp=Date.now(),z.timerId=window.setTimeout(()=>{if(z.timerId=null,z.copyWaiting){z.holdTimerFired=!0;return}u.activate()},l.keyHoldDuration),y(ke)}),d(()=>{let e=v();if(e.state!==`active`||e.phase!==`justDragged`)return;let t=setTimeout(()=>{u.finishJustDragged()},en);y(()=>clearTimeout(t))}),d(()=>{if(v().state!==`justCopied`)return;let e=setTimeout(()=>{u.finishJustCopied()},en);y(()=>clearTimeout(e))}),d(_(b,(e,t=!1)=>{!t||e||!x()||(s.store.options.activationMode!==`hold`&&u.setWasActivatedByToggle(!0),s.hooks.onActivate())}));let je=(e,t,n)=>{u.setCopyStart({x:t,y:n},e),u.clearInputText()},Me=()=>{let e=l.frozenElement||Ct();e&&u.enterPromptMode({x:p().x,y:p().y},e)},Ne={lastDetectionTimestamp:0,pendingDetectionScheduledAt:0,latestPointerX:0,latestPointerY:0},Pe=null,[P,F]=c(null),[Fe,Ie]=c(0),I=(e,t)=>{Pe!==null&&clearTimeout(Pe),F(null),Pe=window.setTimeout(()=>{F({x:e,y:t}),Pe=null},32)},L=()=>{Pe!==null&&(clearTimeout(Pe),Pe=null),F(null),Wt()},R=null,z={timerId:null,startTimestamp:null,copyWaiting:!1,holdTimerFired:!1},Le=null,[Re,ze]=c(!1),Be=0,Ve=!1,He=null,Ue=()=>{Ve=!0,He!==null&&window.clearTimeout(He),He=window.setTimeout(()=>{Ve=!1,He=null},en)},B=()=>{He!==null&&(window.clearTimeout(He),He=null),Ve=!1},We=0,Ge=null,V=null,[qe,H]=c(!1),[Je,Ye]=c(null),[Xe,U]=c(null),[Ze,Qe]=Nu(Xe),W=f(()=>O()?kn:qe()?Je():x()?On:null),$e=e=>um(e,df),et=Bm(df,$e,Y),G=Um(p,()=>C(),e=>{if(ee()){if(u.shiftDragStart(e),Le){Le={x:Le.x+e.x,y:Le.y+e.y};return}let{pageX:t,pageY:n}=Lt(p().x,p().y);Le={x:t,y:n}}}),tt=f(()=>x()&&!T()),nt=new Map,rt=(e,t)=>{let n=Im(`grabbed`),r={id:n,bounds:e,createdAt:Date.now(),element:t};u.addGrabbedBox(r),s.hooks.onGrabbedBox(e,t);let i=window.setTimeout(()=>{nt.delete(n),u.removeGrabbedBox(n)},en+125);nt.set(n,i)},it=async e=>{let n=await Promise.all(e.map(async e=>{let t=await pu(e),n=t?.componentName??null,r=t?.filePath,i=t?.lineNumber??void 0,a=t?.columnNumber??void 0;n||=mu(e);let o=zn(e)?e.innerText?.slice(0,100):void 0;return{tagName:Qi(e),id:e.id||void 0,className:e.getAttribute(`class`)||void 0,textContent:o,componentName:n??void 0,filePath:r,lineNumber:i,columnNumber:a}}));t||window.dispatchEvent(new CustomEvent(`react-grab:element-selected`,{detail:{elements:n}}))},at=new Map,ot=Rm(u,()=>l.labelInstances,()=>at.clear()),st=e=>{for(let t of e)l.labelInstances.find(e=>e.id===t)?.status===`copying`&&(at.delete(t),ot.dismissInstance(t))},ct=()=>{n.abort()},lt=()=>(n.signal.aborted&&!t&&(n=new AbortController),n.signal),ut=()=>(ct(),lt()),dt=()=>{ct(),r=null,st(l.labelInstances.filter(e=>e.status===`copying`).map(e=>e.id))},ft=async(e,t,n)=>{let r,i;try{if(r=await e(n),r.status===`cancelled`)return r;r.status===`failed`&&(i=`Failed to copy`)}catch(e){if(n.aborted)return Dx;r={status:`failed`},i=Od(e,`Action failed`)}if(t)for(let e of t)ot.updateAfterCopy(e,r.status===`succeeded`,i);return r},pt=(e,t,n,r)=>{if(e){for(let e of n)at.delete(e);return}let i={operation:t,siblingIds:new Set(n),shouldDeactivateAfter:r};for(let e of n)at.set(e,i)},mt=async(e,t,n,r=ut())=>{if(r.aborted)return!1;B(),v().state!==`copying`&&u.startCopy();let i=await ft(e,t,r);if(i.status===`cancelled`)return!1;let a=i.status===`succeeded`;return t&&pt(a,e,t,!!n),v().state===`copying`?(a&&u.completeCopy(),n?q():a?(u.activate(),Ue()):(u.activate(),u.unfreeze()),!0):!0},ht=e=>{let t=at.get(e);if(!t)return;let n=[...t.siblingIds];for(let e of n)ot.markRetrying(e),at.delete(e);mt(t.operation,n,t.shouldDeactivateAfter).then(e=>{e||st(n)})},gt=e=>{at.get(e)?.siblingIds.delete(e),at.delete(e),ot.dismissInstance(e)},vt=(e,t,n,r)=>{let i=e[0],a=r??(i?mu(i):null),o=i?Qi(i):null,c=a??o??void 0;return Ld({getContent:s.store.options.getContent,componentName:c,maxContextLines:s.store.options.maxContextLines,signal:t},s.hooks,e,n)},K=async(e,t,n,r=lt())=>{if(e.length===0||r.aborted)return Dx;let i=[],a=[];for(let t of e){let{wasIntercepted:e,pendingResult:n}=s.hooks.onElementSelect(t);e||i.push(t),n&&a.push(n),s.store.theme.grabbedBoxes.enabled&&rt(Y(t),t)}if(await zu(),r.aborted)return Dx;let o;if(i.length>0&&(o=await vt(i,r,t,n),o.status===`cancelled`))return o;if(a.length>0){let e=await jd(Promise.all(a),r);if(e===Ad)return o?.status===`succeeded`?o:Dx;if(!e.every(Boolean))throw new Xi}return r.aborted&&!o?Dx:(it(e).catch(e=>{Z(new zi(`Element selection notification failed`,e))}),o??{status:`succeeded`})},bt=e=>{let n=ut(),i={},a=!1;r=i,ou(e.primaryElement).then(async t=>{if(n.aborted||r!==i){st(e.labelInstanceIds);return}r=null,a=!0,await mt(n=>K(e.targetElements,e.extraPrompt,t??void 0,n),e.labelInstanceIds.length>0?e.labelInstanceIds:null,e.shouldDeactivateAfter,n)?e.onComplete?.():st(e.labelInstanceIds)}).catch(o=>{if(n.aborted){st(e.labelInstanceIds);return}if(t||!a&&r!==i)return;Z(new zi(`Copy operation failed`,o));let s=Od(o,`Action failed`);for(let t of e.labelInstanceIds)ot.updateAfterCopy(t,!1,s);e.labelInstanceIds.length>0&&pt(!1,t=>ou(e.primaryElement).then(n=>t.aborted?Dx:K(e.targetElements,e.extraPrompt,n??void 0,t)),e.labelInstanceIds,!!e.shouldDeactivateAfter),v().state===`copying`&&(e.shouldDeactivateAfter?q():(u.activate(),u.unfreeze()))}).finally(()=>{r===i&&(r=null)})},xt=e=>{let{element:t,cursorX:n,selectedElements:r,extraPrompt:i,shouldDeactivateAfter:a,onComplete:o,dragRect:s}=e,c=r??[t],d=s??l.frozenDragRect,f=c.length>1,p=!f&&t===At()?It():void 0,m=d&&f?im(d):p??Y(t),h=f?m.x+m.width/2:n,g=Qi(t);B(),u.startCopy();let _=g?ot.createInstance(m,g,void 0,`copying`,{element:t,mouseX:h,elements:r}):null;bt({primaryElement:t,targetElements:c,labelInstanceIds:_?[_]:[],extraPrompt:i,shouldDeactivateAfter:a,onComplete:o})},St=e=>{let{elements:t,labelEntries:n,shouldDeactivateAfter:r,onComplete:i}=e,a=t[0];B(),u.startCopy(),bt({primaryElement:a,targetElements:t,labelInstanceIds:ot.createPerElementInstances(n,`copying`),shouldDeactivateAfter:r,onComplete:i})},Ct=f(()=>{if(h(),!tt()||w()||ne()||N.isPendingDismiss())return null;let e=l.detectedElement;return X(e)?e:null}),wt=f(()=>l.frozenElement||(S()?null:Ct())),Tt=f(()=>!x()||D()||Re()||T()||we()||N.isPendingDismiss()?null:_e()?S()?wt():Ct()??l.frozenElement:N.selectedElement()),Et=f(()=>{let e=Tt();return e?sm(e,df,$e):[]}),Dt=f(()=>{let e=Tt();return e?Math.max(0,Et().findIndex(t=>t.element===e)):0}),Ot=f(()=>Tt()!==null);d(()=>{if(!l.detectedElement)return;let e=1,t=setInterval(()=>{if(X(l.detectedElement)||u.relinkLiveElements(),!X(l.detectedElement)){if(e>0){--e;return}ar()}},100);y(()=>clearInterval(t))}),d(_(wt,e=>{if(Ge!==null&&(clearTimeout(Ge),Ge=null),!e){U(null);return}Ge=window.setTimeout(()=>{Ge=null,U(e)},100)})),y(()=>{Ge!==null&&(clearTimeout(Ge),Ge=null)}),d(()=>{let e=l.frozenElements;y(Gh(e))}),d(_(x,e=>{e&&s.store.options.freezeReactUpdates&&y(d_())}));let kt=()=>{if(l.isTouchMode&&C()){let e=l.detectedElement;return!X(e)||Qd(e)?void 0:e}let e=wt();if(!(!e||Qd(e)))return e},At=f(()=>kt()),jt=()=>At()?l.isTouchMode&&C()?tt():tt()&&!w():!1,Mt=ve(()=>l.frozenElements,e=>f(()=>(h(),Y(e)))),Nt=f(()=>{let e=l.frozenElements;if(e.length===0)return[];let t=l.frozenDragRect;return t&&e.length>1?[im(t)]:Mt().map(e=>e())}),Pt=f(()=>{if(!Re()||l.pendingCommentMode||qe())return null;let e=l.detectedElement;return!X(e)||Qd(e)||l.frozenElements.includes(e)?null:e}),Ft=f(()=>{h();let e=Pt();if(e)return Y(e)}),It=f(()=>{h();let e=l.frozenElements;if(e.length>0){let t=Nt();if(e.length===1){let e=t[0];if(e)return e}let n=l.frozenDragRect;return n?t[0]??im(n):om(jm(t))}let t=At();if(t)return Y(t)}),Lt=(e,t)=>({pageX:e+window.scrollX,pageY:t+window.scrollY}),Rt=(e,t)=>{let{pageX:n,pageY:r}=Lt(e,t);return{x:Math.abs(n-l.dragStart.x),y:Math.abs(r-l.dragStart.y)}},zt=(e,t)=>{let{pageX:n,pageY:r}=Lt(e,t),i=Math.min(l.dragStart.x,n),a=Math.min(l.dragStart.y,r),o=Math.abs(n-l.dragStart.x),s=Math.abs(r-l.dragStart.y);return{x:i-window.scrollX,y:a-window.scrollY,width:o,height:s}},Bt=e=>e.code===`Space`||e.key===` `,Vt=()=>{if(!C())return;u.startDragReposition();let{pageX:e,pageY:t}=Lt(p().x,p().y);Le={x:e,y:t}},Ht=()=>{u.stopDragReposition(),Le=null},Ut=f(()=>{if(h(),w())return om(zt(p().x,p().y))}),Wt=f(()=>{if(Fe(),!w())return[];let e=P();if(!e)return[];let t=zt(e.x,e.y),n=tm(t,df);return n.length>0?n:tm(t,df,!1)}),Gt=f(()=>(h(),Wt().map(e=>Y(e)))),Kt=f(()=>{let e=Gt();if(e.length>0)return e;let t=Ft();return t?[...Nt(),t]:Nt()}),qt=ve(()=>l.frozenElements,e=>{let t=Qi(e)||`element`,n=mu(e)??void 0;return{read:f(()=>{if(h(),!X(e))return null;let r=Y(e),i=Te.get(e);return{tagName:t,componentName:n,bounds:r,mouseX:i===void 0?void 0:r.x+r.width*i}})}}),Jt=f(()=>{if(D()||l.frozenElements.length<2)return[];let e=[];for(let t of qt())t.read()!==null&&e.push(t);return e}),Yt=f(()=>{if(D())return null;let e=Pt();return e?(h(),{tagName:Qi(e)||`element`,componentName:mu(e)??void 0,bounds:Y(e),mouseX:p().x}):null}),Xt=f(()=>{if(T()||D()){h();let e=l.frozenElement||Ct();return e?{x:Si(Y(e)).x+l.copyOffsetFromCenterX,y:l.copyStart.y}:{x:l.copyStart.x,y:l.copyStart.y}}return{x:p().x,y:p().y}}),Zt=f(()=>{if(!Re()||l.frozenElements.length!==1)return;h();let e=l.frozenElements[0];if(!X(e))return;let t=Te.get(e);if(t===void 0)return;let n=Y(e);return n.x+n.width*t});d(_(()=>[Ct(),l.lastGrabbedElement],([e,t])=>{t&&e&&t!==e&&u.setLastGrabbed(null),e&&s.hooks.onElementHover(e)})),d(_(()=>Ct(),e=>{let t=++We,n=()=>{We===t&&u.setSelectionSource(null,null)};if(!e){n();return}pu(e).then(e=>{if(We===t){if(!e){n();return}u.setSelectionSource(e.filePath,e.lineNumber)}}).catch(()=>{We===t&&u.setSelectionSource(null,null)})}));let Qt=f(()=>l.grabbedBoxes.map(e=>({id:e.id,bounds:e.bounds,createdAt:e.createdAt}))),$t=f(()=>l.labelInstances.map(e=>({id:e.id,status:e.status,tagName:e.tagName,componentName:e.componentName,createdAt:e.createdAt})));d(_(f(()=>{let e=x(),t=C(),n=T(),r=D(),i=Ct(),a=Ut(),o=s.store.theme.enabled,c=s.store.theme.selectionBox.enabled,u=s.store.theme.dragBox.enabled,d=w(),f=wt(),p=E();return{isActive:e,isDragging:t,isCopying:n,isPromptMode:r,isSelectionBoxVisible:!!(o&&c&&e&&!n&&!p&&!t&&f!=null),isDragBoxVisible:!!(o&&u&&e&&!n&&d),targetElement:i,dragBounds:a?{x:a.x,y:a.y,width:a.width,height:a.height}:null,grabbedBoxes:[...Qt()],labelInstances:[...$t()],selectionFilePath:l.selectionFilePath,toolbarState:pe()}}),e=>{s.hooks.onStateChange(e)})),d(_(()=>{let e=D();return{inputMode:e,position:e?p():g(p),target:e?Ct():g(Ct)}},({inputMode:e,position:t,target:n})=>{s.hooks.onPromptModeChange(e,{x:t.x,y:t.y,targetElement:n})})),d(_(()=>[Cr(),It(),Ct()],([e,t,n])=>{s.hooks.onSelectionBox(!!e,t??null,n)})),d(_(()=>[Nr(),Ut()],([e,t])=>{s.hooks.onDragBox(!!e,t??null)})),d(_(()=>{let e=Fr();return[e,Pr(),e?Xt():g(Xt),e?Ct():g(Ct),l.selectionFilePath,l.selectionLineNumber]},([e,t,n,r,i,a])=>{s.hooks.onElementLabel(e,t,{x:n.x,y:n.y,content:``,element:r??void 0,tagName:r&&Qi(r)||void 0,filePath:i??void 0,lineNumber:a??void 0})}));let tn=null,nn=e=>{if(e){if(!tn){tn=document.createElement(`style`),tn.setAttribute(`data-react-grab-cursor`,``);let e=sa();e&&(tn.nonce=e),ua(tn),document.head.appendChild(tn)}tn.textContent=`* { cursor: ${e} !important; }`}else tn&&=(tn.remove(),null)};d(_(()=>[x(),T(),D()],([e,t,n])=>{nn(t?`progress`:e&&!n?`crosshair`:null)}));let rn=()=>{let e=b();u.activate(),e||s.hooks.onActivate()},q=()=>{dt();let e=C(),t=l.previouslyFocusedElement;Ht(),u.deactivate(),Yr(),De(),Vn(),N.clear(),H(!1),Ye(null),e&&(oe(`userSelect`),L()),R&&window.clearTimeout(R),G.stop(),zn(t)&&t!==document.body&&t!==document.activeElement&&X(t)&&t.focus({preventScroll:!0}),s.hooks.onDeactivate()},an=()=>{b()&&u.releaseHold(),x()||T()?q():dt(),B()},on=()=>{u.setWasActivatedByToggle(!0),rn()},sn=()=>{let e=[...l.frozenElements],t=l.frozenElement||Ct(),n=D()?l.inputText.trim():``;if(!t){q();return}let r=e.length>0?e:[t],i=r.map(e=>Y(e))[0],{x:a,y:o}=Si(i),s=a+l.copyOffsetFromCenterX;u.setPointer({x:a,y:o}),u.exitPromptMode(),u.clearInputText(),xt({element:t,cursorX:s,selectedElements:r,extraPrompt:n||void 0,shouldDeactivateAfter:!0})},cn=()=>{if(D()){if(re()){u.clearInputText(),q();return}u.setPendingDismiss(!0),fe(e=>e+1)}},ln=()=>{if(N.isPendingDismiss()){Wn();return}u.clearInputText(),q()},un=()=>{u.setPendingDismiss(!1)},dn=()=>{V=null,H(!1),u.setPendingCommentMode(!1),Ye(null)},fn=e=>{V=e,Ye(e),H(!0)},pn=e=>{let t=l.frozenElement||Ct();if(!t)return!1;let n={x:p().x,y:p().y},r=s.store.actions.find(t=>t.id===e);return r?(u.clearInputText(),u.exitPromptMode(),dn(),C_(r,Xn(t,n))||vn(t,n),!0):(u.clearInputText(),u.exitPromptMode(),dn(),vn(t,n),!0)},mn=e=>{if(T()){q();return}if(x()){if(W()!==e){if(D()){if(pn(e))return;q();return}u.setPendingCommentMode(!1),fn(e);return}q();return}se()&&(fn(e),on())},hn=()=>{mn(pe()?.defaultAction??`copy`)},gn=()=>{let e=pe()?.defaultAction??`copy`;return s.store.actions.find(t=>t.id===e)?.label??`Copy`},_n=(e,t,n)=>{dn(),u.clearInputText(),u.enterPromptMode({x:t,y:n},e)},vn=(e,t)=>{De(),Xr(),u.showContextMenu(t,e),Vn(),s.hooks.onContextMenu(e,t)},yn=(e,t)=>{let n=V;if(V=null,Ye(null),!n)return;let r=s.store.actions.find(e=>e.id===n);if(!r){vn(e,t);return}C_(r,Xn(e,t))||vn(e,t)},bn=()=>{if(se()){if(x()&&O()){q();return}u.setPendingCommentMode(!0),x()||on()}},Cn=(e,t,n)=>{let r=n&&Re()&&!C()&&!l.pendingCommentMode&&!qe();if(Ee()||S()&&!r)return;if(u.setPointer({x:e,y:t}),Ne.latestPointerX=e,Ne.latestPointerY=t,r){let n=Hp(e,t);n!==l.detectedElement&&u.setDetectedElement(n);return}let i=performance.now(),a=Ne.pendingDetectionScheduledAt>0&&i-Ne.pendingDetectionScheduledAt<200;if(!w()&&i-Ne.lastDetectionTimestamp>=32&&!a&&(Ne.lastDetectionTimestamp=i,Ne.pendingDetectionScheduledAt=i,setTimeout(()=>{if(Ee()||w()){Ne.pendingDetectionScheduledAt=0;return}let e=Hp(Ne.latestPointerX,Ne.latestPointerY);e!==l.detectedElement&&u.setDetectedElement(e),Ne.pendingDetectionScheduledAt=0})),C()){if(ee()){let{pageX:n,pageY:r}=Lt(e,t);Le&&u.shiftDragStart({x:n-Le.x,y:r-Le.y}),Le={x:n,y:r}}I(e,t);let n=Hm(e,t),r=n.top||n.bottom||n.left||n.right;r&&!G.isActive()?G.start():!r&&G.isActive()&&G.stop()}},wn=(e,t,n)=>{if(!tt()||ne())return!1;!n&&Re()&&De();let r=N.selectedElement()!==null;return u.startDrag({x:e,y:t},n||r),u.setPointer({x:e,y:t}),ae(`userSelect`,`none`),I(e,t),s.hooks.onDragStart(e+window.scrollX,t+window.scrollY),!0},Tn=(e,t)=>{let n=l.frozenElements.includes(e),r=l.frozenElements.length===0;if(!n){let n=nm(Y(e),t);Te.set(e,n),r&&Qe(mu(e)??void 0)}u.toggleFrozenElement(e),Up();let i=l.frozenElements.includes(e);if(i||Te.delete(e),l.frozenElements.length===0){De(),u.unfreeze();return}Uh(l.frozenElements),ze(!0),u.setPointer(t),u.setLastGrabbed(i?e:l.frozenElements[l.frozenElements.length-1]),u.freeze(),Vn()},Dn=()=>{let e=l.frozenElements.filter(X),t=e.map(e=>{let t=Qi(e)||`element`,n=mu(e)??void 0,r=Te.get(e),i=Y(e);return{element:e,tagName:t,componentName:n,mouseX:r===void 0?i.x+i.width/2:i.x+i.width*r}});if(De(),e.length===0){u.unfreeze();return}if(e.length===1){xt({element:e[0],cursorX:t[0].mouseX,selectedElements:e,shouldDeactivateAfter:l.wasActivatedByToggle});return}St({elements:e,labelEntries:t,shouldDeactivateAfter:l.wasActivatedByToggle})},An=(e,t,n)=>{let r=tm(e,df),i=r.length>0?r:tm(e,df,!1);if(i.length===0)return;let a=n&&!l.pendingCommentMode&&!qe();if(a&&u.addFrozenElements(i),Uh(a?l.frozenElements:i),s.hooks.onDragEnd(i,e),a){let e=i[i.length-1];ze(!0),Up(),u.setPointer(Si(Y(e))),u.setLastGrabbed(e),u.freeze(),Vn();return}let o=i[0],c=Si(Y(o));u.setPointer(c),u.setFrozenElements(i);let d=am(e);if(u.setFrozenDragRect(d),u.freeze(),u.setLastGrabbed(o),l.pendingCommentMode){_n(o,c.x,c.y);return}if(qe()){H(!1),V?yn(o,c):vn(o,c);return}let f=l.wasActivatedByToggle&&!t;xt({element:o,cursorX:c.x,selectedElements:i,shouldDeactivateAfter:f,dragRect:d})},Mn=e=>{for(let t of l.frozenElements)if(X(t)&&Xm(e,Y(t)))return t;return null},Nn=(e,t,n,r)=>{let i=X(l.frozenElement)?l.frozenElement:null,a=N.selectedElement(),o=()=>Vp(e,t).find(df)??null;if(r&&!l.pendingCommentMode&&!qe()){let n=o();n!==null&&Tn(n,{x:e,y:t});return}let c=o()??(X(l.detectedElement)?l.detectedElement:null),d=a??c??i;if(!d)return;let f,m,h=c===null&&i===d,g=a===d;if(h)f=p().x,m=p().y;else if(g){let e=Si(Y(d));f=e.x,m=e.y}else f=e,m=t;if(l.pendingCommentMode){_n(d,f,m),N.clear();return}if(qe()){H(!1);let{wasIntercepted:e}=s.hooks.onElementSelect(d);if(e)return;N.clear(),Uh([d]),u.setFrozenElement(d);let t={x:f,y:m};u.setPointer(t),u.freeze(),V?yn(d,t):vn(d,t);return}let _=l.wasActivatedByToggle&&!n;u.setLastGrabbed(d),xt({element:d,cursorX:f,shouldDeactivateAfter:_}),N.clear()},Pn=()=>{C()&&(Ht(),L(),u.cancelDrag(),G.stop(),oe(`userSelect`),ar())},In=(e,t,n,r)=>{if(!C())return;L();let i=Rt(e,t),a=i.x>2||i.y>2,o=a?zt(e,t):null;a?u.endDrag():u.cancelDrag(),Ht(),G.stop(),oe(`userSelect`),o?An(o,n,r):Nn(e,t,n,r)},J=Ed(),Ln=N_({shouldForwardInteraction:()=>x()||b()||C()||ne(),shouldForwardKeyboardEvent:e=>Cm(e,s.store.options),shouldForwardViewportEvent:e=>{let t=l.frozenElement??Ct();return t&&P_(e,t)?!0:l.frozenElements.some(t=>P_(e,t))}}),Rn=Vm(),Bn=e=>{let t;try{t=Rn.originalKeyDescriptor?.get?Rn.originalKeyDescriptor.get.call(e):e.key}catch{return!1}let n=t===`Enter`||Ym(e.code),r=x()||b();return n&&r&&!D()&&!N.isPendingDismiss()&&!l.wasActivatedByToggle?wm(e,`data-react-grab-input`)?!1:(Rn.claimedEvents.add(e),e.preventDefault(),e.stopImmediatePropagation(),!0):!1};J.addDocumentListener(`keydown`,ba(Bn),{capture:!0}),J.addDocumentListener(`keyup`,ba(Bn),{capture:!0}),J.addDocumentListener(`keypress`,ba(Bn),{capture:!0});let Vn=()=>{et.clearHistory(),N.clear()},Hn=(e,t=!1)=>{u.setFrozenElement(e),u.freeze(),N.select(e,{shouldPromptBeforeMouseHandoff:t});let n=Si(Y(e));u.setPointer(n),l.contextMenuPosition!==null&&u.showContextMenu(n,e)},Un=()=>{N.showDismissPrompt()&&fe(e=>e+1)},Wn=()=>{N.clear(),u.unfreeze(),Vn()},Gn=()=>{let e=N.takeSelection(l.frozenElement);if(!e){Wn();return}let t=Si(Y(e));Vn(),u.setLastGrabbed(e),xt({element:e,cursorX:t.x,shouldDeactivateAfter:l.wasActivatedByToggle})},Kn=e=>Sn.has(e.key)?e.key:e.key===`Tab`?e.shiftKey?`ArrowLeft`:`ArrowRight`:null,qn=(e,t={})=>{if(!x()||D()||Re()||N.isPendingDismiss()&&!t.allowPendingKeyboardSelection)return!1;let n=Kn(e);if(!n||we())return!1;let r=wt(),i=!r;if(!r){let e=va()?.getBoundingClientRect();r=e?Hp(e.left+e.width/2,e.top+e.height/2):Hp(window.innerWidth/2,window.innerHeight/2)}if(!r)return!1;let a=n===`ArrowUp`||n===`ArrowDown`,o=et.findNext(n,r);if(!o&&!a&&!i)return!1;let s=o??r;return e.preventDefault(),e.stopPropagation(),Hn(s,!0),!0},Jn=e=>e.metaKey||e.ctrlKey||e.altKey||e.repeat||na(e)||!x()||T()||ne()||we()?null:l.frozenElement||Ct(),Yn=e=>{let t=Jn(e);if(!t)return null;let n=g_(s.store.actions,e);return n?{element:t,action:n}:null},Xn=(e,t)=>{let n=Y(e);return Wr({element:e,filePath:l.selectionFilePath??void 0,lineNumber:l.selectionLineNumber??void 0,tagName:Qi(e)||void 0,componentName:Ze(),position:t,shouldDeferHideContextMenu:!1,performWithFeedbackOptions:{fallbackBounds:n,fallbackSelectionBounds:[n],position:t}})},Zn=e=>{let t=Yn(e);if(!t)return!1;let{element:n,action:r}=t;return D()?pn(r.id)?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1:C_(r,Xn(n,{x:p().x,y:p().y}))?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1},Qn=()=>{let e=l.selectionFilePath,t=l.selectionLineNumber;e&&Am(e,t??void 0,s.hooks)},$n=e=>e.key?.toLowerCase()!==`o`||!x()||!(e.metaKey||e.ctrlKey)||!l.selectionFilePath?!1:(e.preventDefault(),e.stopPropagation(),Qn(),!0),er=e=>{if(!x()||T()||l.contextMenuPosition!==null)return!1;let t=e.key===`F10`&&e.shiftKey,n=e.key===`ContextMenu`;if(!t&&!n)return!1;let r=l.frozenElements,i=r.length>1,a=(i?r[0]:null)||l.frozenElement||Ct();if(!a)return!1;e.preventDefault(),e.stopPropagation();let o=Si(Y(a));return i?Uh(r):(Uh([a]),u.setFrozenElement(a)),u.setPointer(o),u.freeze(),vn(a,o),!0},tr=f(()=>Et().map(e=>({tagName:Qi(e.element)||`element`,componentName:mu(e.element)??void 0,depth:e.depth,isLast:e.isLast}))),nr=f(()=>({items:tr(),activeIndex:Dt()})),rr=e=>{if(!(!s.store.options.allowActivationInsideInput&&na(e))&&!(!Cm(e,s.store.options)&&((e.metaKey||e.ctrlKey)&&!xn.includes(e.key)&&!Ym(e.code)&&(x()&&!l.wasActivatedByToggle?q():b()&&(ke(),Ae(),u.releaseHold())),!Ym(e.code)||!b()))){if((x()||b())&&!D()&&(e.preventDefault(),Ym(e.code)&&e.stopImmediatePropagation()),x()){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e.repeat)return;R!==null&&window.clearTimeout(R),R=window.setTimeout(()=>{q()},200);return}if(b()&&e.repeat){if(z.copyWaiting){let e=z.holdTimerFired;Ae(),e&&u.activate()}return}if(!(T()||E())&&!b()){let t=s.store.options.keyHoldDuration??100;na(e)?ra(e)?t+=600:t+=400:ia()&&(t+=600),Ae(),u.startHold(t)}}},ir=e=>{if(!N.isPendingDismiss())return!1;if(Ym(e.code))return!0;let t=Sn.has(e.key),n=Yn(e)!==null;return!t&&!n?!1:t?qn(e,{allowPendingKeyboardSelection:!0}):Zn(e)?(Vn(),!0):!1};J.addWindowListener(`keydown`,ba(e=>{if(Kn(e)&&na(e)||ir(e))return;if(Bn(e),!se()){Cm(e,s.store.options)&&!e.repeat&&ue(e=>e+1);return}let t=Ym(e.code)&&b()&&!D(),n=wm(e,En);if(D()&&Cm(e,s.store.options)&&!e.repeat&&!n){e.preventDefault(),e.stopPropagation(),cn();return}if(e.key===`Escape`&&T()){q();return}if(e.key===`Escape`&&we()){ye()!==null&&Yr();return}let r=wm(e,`data-react-grab-ignore-events`)&&!t;if(D()||r)return D()&&!n&&Zn(e)||(e.key===`Escape`&&(D()?cn():l.wasActivatedByToggle&&q()),r&&Sn.has(e.key)&&qn(e)),void 0;if(C()&&Bt(e)){e.repeat||Vt(),e.preventDefault(),e.stopPropagation();return}if(e.key===`Escape`&&(b()||l.wasActivatedByToggle)){q();return}x()&&!xn.includes(e.key)&&e.preventDefault();let i=Date.now()-Be<200;qn(e)||$n(e)||er(e)||Zn(e)||i||rr(e)}),{capture:!0}),J.addWindowListener(`keyup`,ba(e=>{if(Bn(e))return;if(Bt(e)&&ee()&&(Ht(),e.preventDefault(),e.stopPropagation()),e.key===`Shift`&&Re()){C()&&Pn(),Dn();return}if(wm(e,`data-react-grab-ignore-events`))return;let t=Sm(s.store.options.activationKey),n=t.metaKey||t.ctrlKey?gm()?!e.metaKey:!e.ctrlKey:t.shiftKey&&!e.shiftKey||t.altKey&&!e.altKey,r=s.store.options.activationKey?xm(s.store.options.activationKey)(e):pm(e.key,e.code);if(E()||Ve){(r||n)&&(B(),q());return}if(!b()&&!x()||D())return;let i=!!s.store.options.activationKey,a=s.store.options.activationMode===`hold`,o=C();if(x()){let e=Ce();if(n){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e)return;q()}else if(a&&r){if(R!==null&&(window.clearTimeout(R),R=null),e||o)return;q()}else !i&&r&&R!==null&&(window.clearTimeout(R),R=null);return}if(r||n){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`)return;if(b()||z.holdTimerFired&&n){ke();let t=(z.startTimestamp?Date.now()-z.startTimestamp:0)>=200,n=z.holdTimerFired&&t&&(s.store.options.allowActivationInsideInput||!na(e));Ae(),n?u.activate():u.releaseHold()}else q()}}),{capture:!0}),J.addDocumentListener(`copy`,()=>{b()&&(z.copyWaiting=!0)}),J.addWindowListener(`keypress`,ba(Bn),{capture:!0}),J.addWindowListener(`pointermove`,ba(e=>{if(!e.isPrimary)return;let t=e.pointerType===`touch`;if(u.setTouchMode(t),!wm(e,`data-react-grab-ignore-events`)&&!Ee()&&!(t&&!b()&&!x())){if((t?b():x())&&!D()&&S()&&!e.shiftKey&&!Re()){if(N.consumeMouseHandoff()){Un();return}u.unfreeze(),Vn()}Cn(e.clientX,e.clientY,e.shiftKey)}}),{passive:!0,capture:!0}),J.addWindowListener(`pointerdown`,ba(e=>{if(e.button===0&&e.isPrimary&&(u.setTouchMode(e.pointerType===`touch`),!(!C()&&wm(e,`data-react-grab-ignore-events`))&&!Ce())){if(D()){let t=It();t&&e.clientX>=t.x&&e.clientX<=t.x+t.width&&e.clientY>=t.y&&e.clientY<=t.y+t.height?sn():cn();return}if(N.isPendingDismiss()){e.preventDefault(),e.stopImmediatePropagation();return}if(ne()){e.preventDefault(),e.stopImmediatePropagation();return}if(wn(e.clientX,e.clientY,e.shiftKey)){if(e.pointerId!==void 0)try{document.documentElement.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),e.stopImmediatePropagation()}}}),{capture:!0}),J.addWindowListener(`pointerup`,ba(e=>{if(e.button!==0||!e.isPrimary||wm(e,`data-react-grab-ignore-events`)||Ce())return;let t=tt()||ne()||C(),n=e.metaKey||e.ctrlKey;In(e.clientX,e.clientY,n,e.shiftKey),t&&(e.preventDefault(),e.stopImmediatePropagation())}),{capture:!0}),J.addWindowListener(`contextmenu`,ba(e=>{if(!tt()||T()||D())return;let t=wm(e,`data-react-grab-ignore-events`),n={x:e.clientX,y:e.clientY},r=t&&l.frozenElements.length>1?Mn(n):null,i=N.isPendingDismiss();if(t&&!r&&!i&&!Ot())return;if(Ce()){e.preventDefault();return}e.preventDefault(),e.stopPropagation();let a=r??Hp(e.clientX,e.clientY);if(!a)return;let o=l.frozenElements;o.length>1&&o.includes(a)?Uh(o):(Uh([a]),u.setFrozenElement(a)),u.setPointer(n),u.freeze(),vn(a,n)}),{capture:!0}),J.addWindowListener(`pointercancel`,ba(e=>{e.isPrimary&&Pn()}),{capture:!0}),J.addWindowListener(`click`,ba(e=>{wm(e,`data-react-grab-ignore-events`)||Ce()||(tt()||te())&&(e.preventDefault(),e.stopImmediatePropagation(),l.wasActivatedByToggle&&!D()&&!e.shiftKey&&(b()?u.setWasActivatedByToggle(!1):q()))}),{capture:!0}),J.addDocumentListener(`visibilitychange`,()=>{if(document.hidden){u.clearGrabbedBoxes();let e=l.activationTimestamp;x()&&!D()&&e!==null&&Date.now()-e>500&&q()}}),J.addWindowListener(`blur`,()=>{Pn(),b()&&(ke(),u.releaseHold(),Ae()),De()}),J.addWindowListener(`focus`,()=>{Be=Date.now()}),J.addWindowListener(`focusin`,e=>{wm(e,Sa)&&e.stopPropagation()},{capture:!0});let ar=()=>{if(!(l.isTouchMode&&!b()&&!x())&&!Ee()&&!S()&&!C()&&l.frozenElements.length===0){let e=Hp(p().x,p().y);u.setDetectedElement(e)}},or=null,sr=null,cr=()=>{rm(),ar(),Ie(e=>e+1),u.incrementViewportVersion(),u.updateContextMenuPosition()},lr=()=>{uf(),cr()};J.addWindowListener(`scroll`,cr,{capture:!0});let ur=window.innerWidth,dr=window.innerHeight;J.addWindowListener(`resize`,()=>{let e=window.innerWidth,t=window.innerHeight;if(ur>0&&dr>0){let n=e/ur,r=t/dr,i=Math.abs(n-r)<jn,a=Math.abs(n-1)>jn;i&&a&&u.setPointer({x:p().x*n,y:p().y*r})}ur=e,dr=t,lr()});let fr=window.visualViewport;if(fr){let{signal:e}=J;fr.addEventListener(`resize`,lr,{signal:e}),fr.addEventListener(`scroll`,cr,{signal:e})}let pr=()=>{sr===null&&(sr=Lu(()=>{sr=null,u.incrementViewportVersion()}))};d(()=>{if(s.store.theme.enabled&&(x()||T()||l.labelInstances.length>0||l.grabbedBoxes.length>0)){if(or!==null)return;or=window.setInterval(()=>{u.relinkLiveElements(),pr()},100);return}or!==null&&(window.clearInterval(or),or=null),sr!==null&&(Ru(sr),sr=null)}),y(()=>{or!==null&&window.clearInterval(or),sr!==null&&Ru(sr)}),J.addDocumentListener(`copy`,ba(e=>{D()||wm(e,`data-react-grab-ignore-events`)||tt()&&e.preventDefault()}),{capture:!0}),y(()=>{let e=[];Q(Ln,e),Q(()=>J.abort(),e),Pe!==null&&window.clearTimeout(Pe),R&&window.clearTimeout(R),Q(B,e),M&&Q(M,e),M=null,nt.forEach(e=>window.clearTimeout(e)),nt.clear(),Q(ot.cancelAllFades,e),at.clear(),Q(G.stop,e),Q(Dg,e),Q(()=>oe(`userSelect`),e),Q(()=>oe(`touchAction`),e),Q(()=>nn(null),e),Q(Rn.restore,e),Q(()=>_a(null),e),Lf(e,`Disposing React Grab failed`)});let{root:mr,host:hr,cancelPendingAttachment:gr}=Ea(yt);y(gr),y(Cd(hr).cleanup);let _r=f(()=>s.store.theme.enabled),vr=f(()=>s.store.theme.selectionBox.enabled),yr=f(()=>s.store.theme.elementLabel.enabled),br=f(()=>s.store.theme.dragBox.enabled),xr=f(()=>E()||he()&&!S()),Sr=f(()=>Gt().length>0),Cr=f(()=>!_r()||!vr()||xr()?!1:Sr()?!0:jt()),wr=f(()=>{let e=At();if(e)return Qi(e)||void 0}),Tr=f(()=>!_r()||Ce()||!yr()||xr()?!1:jt()),Er=new Map,Dr=e=>{let t=e.elements?.filter(X)??[],n=e.element,r=null;t.length>0?r=t.map(Y):n&&X(n)&&(r=[Y(n)]);let i=e.bounds,a=e.boundsMultiple;r&&(i=r.length>1?om(jm(r)):r[0],e.boundsMultiple!==void 0&&(a=e.boundsMultiple.length>1&&e.boundsMultiple.length===e.elements?.length?r:[i]));let o=Er.get(e.id),s=o?.boundsMultiple,c=s===a||s!==void 0&&a!==void 0&&s.length===a.length&&s.every((e,t)=>e.x===a[t].x&&e.y===a[t].y&&e.width===a[t].width&&e.height===a[t].height);if(o&&o.status===e.status&&o.errorMessage===e.errorMessage&&o.bounds.x===i.x&&o.bounds.y===i.y&&o.bounds.width===i.width&&o.bounds.height===i.height&&c)return o;let l=i.x+i.width/2,u=i.width/2,d;d=e.mouseXOffsetRatio!==void 0&&u>0?l+e.mouseXOffsetRatio*u:e.mouseXOffsetFromCenter===void 0?e.mouseX??l:l+e.mouseXOffsetFromCenter;let f={...e,bounds:i,boundsMultiple:a,mouseX:d};return Er.set(e.id,f),f},Or=f(()=>{if(!_r()||!s.store.theme.grabbedBoxes.enabled)return[];h();let e=new Set(l.labelInstances.map(e=>e.id));for(let t of Er.keys())e.has(t)||Er.delete(t);return l.labelInstances.map(Dr)}),kr=f(()=>new Map(Or().map(e=>[e.id,e]))),Ar=new Map,jr=f(()=>{let e=Or(),t=new Set(e.map(e=>e.id));for(let e of Ar.keys())t.has(e)||Ar.delete(e);return e.map(e=>{let t=Ar.get(e.id);if(t)return t;let n=e.id,r={read:()=>kr().get(n)??null};return Ar.set(n,r),r})}),Mr=f(()=>!_r()||!s.store.theme.grabbedBoxes.enabled?[]:(h(),l.grabbedBoxes.map(e=>X(e.element)?{...e,bounds:Y(e.element)}:e))),Nr=f(()=>_r()&&br()&&tt()&&w()),Pr=f(()=>T()?`processing`:`hover`),Fr=f(()=>{if(!_r())return!1;let e=yr(),t=D(),n=T(),r=tt(),i=C(),a=!!wt(),o=he(),s=S();return!e||t||o&&!s?!1:n?!0:r&&!i&&a}),Ir=f(()=>{h();let e=l.contextMenuElement;return e?Y(e):null}),Lr=f(()=>(h(),l.contextMenuPosition)),Rr=f(()=>{let e=l.contextMenuElement;if(!e)return;let t=l.frozenElements.length;return t>1?`${t} elements`:Qi(e)||void 0}),[zr]=Nu(()=>l.frozenElements.length>1?null:l.contextMenuElement),[Br]=m(()=>l.contextMenuElement,async e=>e?pu(e):null),Vr=async e=>{u.incrementSelectionInteractionLockDepth();try{return await e()}finally{u.decrementSelectionInteractionLockDepth()}},Hr=(e,t,n,r,i)=>async a=>{await Vr(async()=>{let o=i?.fallbackBounds??null,s=i?.fallbackSelectionBounds??[],c=i?.position??l.contextMenuPosition??p(),d=Nt(),f=Ir()??o,m=t.length>1,h=m?om(jm(d)):f,g=l.wasActivatedByToggle,_;if(_=m?d:f?[f]:s,u.hideContextMenu(),h){let i=m?h.x+h.width/2:c.x,o=ot.createInstance(h,n||`element`,r,`copying`,{element:e,mouseX:i,elements:m?t:void 0,boundsMultiple:_}),s=!1,l;try{s=await a(),s||(l=`Failed to copy`)}catch(e){l=Od(e,`Action failed`)}ot.updateAfterCopy(o,s,l)}else try{await a()}catch(e){Z(new zi(`Action failed without feedback bounds`,e))}g?q():u.unfreeze()})},Ur=()=>{setTimeout(()=>{u.hideContextMenu()},0)},Wr=e=>{let{element:t,filePath:n,lineNumber:r,tagName:i,componentName:a,position:o,performWithFeedbackOptions:c,shouldDeferHideContextMenu:d,onBeforeCopy:f,onBeforePrompt:p,customEnterPromptMode:m}=e,h=l.frozenElements.length>0?l.frozenElements:[t],g=d?Ur:u.hideContextMenu,_={element:t,elements:h,filePath:n,lineNumber:r,componentName:a,tagName:i,enterPromptMode:m??(()=>{ot.clearAll(),dn(),p?.(),je(t,o.x,o.y),u.setPointer({x:o.x,y:o.y}),u.setFrozenElement(t),Me(),x()||rn(),g()}),copy:()=>{dn(),f?.(),xt({element:t,cursorX:o.x,selectedElements:h.length>1?h:void 0,shouldDeactivateAfter:l.wasActivatedByToggle}),g()},hooks:{transformHtmlContent:s.hooks.transformHtmlContent,onOpenFile:s.hooks.onOpenFile,transformOpenFileUrl:s.hooks.transformOpenFileUrl},performWithFeedback:Hr(t,h,i,a,c),hideContextMenu:g,cleanup:()=>{l.wasActivatedByToggle?q():u.unfreeze()}},v=s.hooks.transformActionContext(_);return{..._,...v}},Gr=f(()=>{let e=l.contextMenuElement;if(!e)return;let t=Br(),n=l.contextMenuPosition??p();return Wr({element:e,filePath:t?.filePath,lineNumber:t?.lineNumber??void 0,tagName:Rr(),componentName:zr(),position:n,shouldDeferHideContextMenu:!0,onBeforeCopy:()=>{N.clear()},customEnterPromptMode:()=>{ot.clearAll(),dn(),u.clearInputText(),u.enterPromptMode(n,e),Ur()}})}),Kr=()=>{setTimeout(()=>{u.hideContextMenu(),q()},0)},qr=()=>{if(!j)return null;let e=j.getBoundingClientRect(),t=p_(e);return t===`left`||t===`right`?{x:t===`left`?e.right:e.left,y:e.top+e.height/2,edge:t}:{x:e.left+e.width/2,y:t===`top`?e.bottom:e.top,edge:t}},Jr=(e,t)=>{let n=null,r=()=>{let i=e();i&&t(i),n=Lu(r)};return r(),()=>{n!==null&&(Ru(n),n=null)}};d(()=>{if(!Ot())return;let e=Jr(qr,Se);y(()=>{e(),Se(null)})});let Yr=()=>{M?.(),M=null,be(null)},Xr=()=>{u.hideContextMenu(),Yr()},Zr=()=>{ye()===null?(u.hideContextMenu(),M?.(),M=Jr(qr,be)):Yr()},Qr=e=>{Oe({defaultAction:e}),qe()&&fn(e)},$r=e=>{let t=l.labelInstances.find(t=>t.id===e);if(!t?.element||!X(t.element))return;let n=t.element,r=Si(Y(n)),i={x:t.mouseX??r.x,y:r.y},a=t.elements&&t.elements.length>0?t.elements.filter(e=>X(e)):[n];setTimeout(()=>{Yr(),x()||(u.setWasActivatedByToggle(!0),rn()),u.setPointer(i),u.setFrozenElements(a),a.length>1&&t.bounds&&u.setFrozenDragRect(am(t.bounds)),u.freeze(),u.showContextMenu(i,n)},0)};d(()=>{let e=s.store.theme.hue;e===0?mr.style.filter=``:mr.style.filter=`hue-rotate(${e}deg)`}),s.store.theme.enabled&&Promise.resolve().then(()=>(Tx(),Cx)).then(({ReactGrabRenderer:e})=>{t||(i=Ke(()=>A(e,{get selectionVisible(){return Cr()},get selectionBounds(){return It()},get selectionBoundsMultiple(){return Kt()},get selectionShouldSnap(){return l.frozenElements.length>0||Gt().length>0},get selectionElementsCount(){return l.frozenElements.length},get frozenLabelEntryAccessors(){return Jt()},get pendingShiftPreviewEntry(){return Yt()??void 0},get selectionFilePath(){return l.selectionFilePath??void 0},get selectionTagName(){return wr()},get selectionComponentName(){return Ze()},get selectionLabelVisible(){return Tr()},selectionLabelStatus:`idle`,get hierarchyState(){return nr()},get hierarchyMenuPosition(){return xe()},get labelInstances(){return Or()},get labelInstanceAccessors(){return jr()},get dragVisible(){return Nr()},get dragBounds(){return Ut()},get grabbedBoxes(){return Mr()},get mouseX(){return _t(()=>l.frozenElements.length>1)()?void 0:Zt()??Xt().x},get isFrozen(){return S()||x()||he()},get inputValue(){return l.inputText},get isPromptMode(){return D()},onShowContextMenuInstance:$r,onRetryInstance:ht,onAcknowledgeErrorInstance:gt,get onLabelInstanceHoverChange(){return ot.handleHoverChange},get onInputChange(){return u.setInputText},onInputSubmit:()=>void sn(),get selectionLabelShakeCount(){return de()},onConfirmDismiss:ln,onOpenSelectionFile:Qn,get discardPrompt(){return _t(()=>!!N.isPendingDismiss())()?{isKeyboardSelection:!0,onConfirm:ln,onCopy:Gn}:re()?{onConfirm:ln,onCancel:un}:void 0},get toolbarVisible(){return s.store.theme.toolbar.enabled},get isActive(){return x()},onToggleActive:hn,get activeActionId(){return W()},get enabled(){return se()},get shakeCount(){return le()},onToolbarStateChange:e=>{me(e),e.enabled!==se()&&(ce(e.enabled),e.enabled||(an(),Xr())),E_(o,e)},onSubscribeToToolbarStateChanges:e=>(o.add(e),()=>{o.delete(e)}),onToolbarSelectHoverChange:ge,onToolbarRef:e=>{j=e},get contextMenuPosition(){return Lr()},get contextMenuBounds(){return Ir()},get contextMenuTagName(){return Rr()},get contextMenuComponentName(){return zr()},get contextMenuHasFilePath(){return!!Br()?.filePath},get actions(){return s.store.actions},get actionContext(){return Gr()},onContextMenuDismiss:Kr,onContextMenuHide:Ur,get toolbarMenuPosition(){return ye()},get toolbarMenuActions(){return s.store.actions.filter(e=>e.showInToolbarMenu===!0)},get defaultActionId(){return pe()?.defaultAction??`copy`},get defaultActionLabel(){return gn()},onSetDefaultAction:Qr,onToggleToolbarMenu:Zr,onToolbarMenuDismiss:Yr}),mr))}).catch(e=>{console.warn(`[react-grab] Failed to load renderer:`,e)});let ei={activate:()=>{u.setPendingCommentMode(!1),!x()&&se()&&on()},deactivate:()=>{x()||T()?q():dt()},toggle:()=>{x()||T()?q():se()&&on()},comment:bn,isActive:()=>x(),isEnabled:()=>se(),setEnabled:e=>{e!==se()&&(ce(e),Oe({enabled:e,collapsed:!e}),e||(an(),Xr()))},getToolbarState:()=>pe()??Qm(),setToolbarState:e=>{let t=pe()??Qm(),n=e.collapsed??t?.collapsed??!1,r=e.defaultAction??t?.defaultAction??`copy`,i={edge:e.edge??t?.edge??`bottom`,ratio:e.ratio??t?.ratio??.5,collapsed:n,enabled:e.enabled??!n,defaultAction:dm(r)};$m(i),me(i),i.enabled!==se()&&(ce(i.enabled),i.enabled||(an(),Xr())),E_(o,i)},onToolbarStateChange:e=>(o.add(e),()=>{o.delete(e)}),reset:()=>{an(),Xr(),u.clearGrabbedBoxes(),ot.clearAll(),u.setSelectionSource(null,null)},dispose:()=>{if(t)return;let n=[];t=!0,Ox=!1,Q(dt,n),Q(ot.clearAll,n),i&&Q(i,n),i=void 0,M&&Q(M,n),M=null,o.clear(),Q(e,n),Q(()=>z_(ei),n),Lf(n,`Disposing React Grab failed`)},copyElement:async e=>{let t=Array.isArray(e)?e:[e];return t.length===0?!1:(await vt(t,lt())).status===`succeeded`},getSource:async e=>{let t=await pu(e);return t?{filePath:t.filePath,lineNumber:t.lineNumber,columnNumber:t.columnNumber??null,componentName:t.componentName}:null},getStackContext:e=>Eu(e,{maxLines:s.store.options.maxContextLines}),getState:()=>({isActive:x(),isDragging:C(),isCopying:T(),isPromptMode:D(),isSelectionBoxVisible:!!Cr(),isDragBoxVisible:!!Nr(),targetElement:Ct(),dragBounds:Ut()??null,grabbedBoxes:[...Qt()],labelInstances:[...$t()],selectionFilePath:l.selectionFilePath,toolbarState:pe()}),setOptions:e=>{s.setOptions(e)},registerPlugin:e=>{s.register(e,ei)},unregisterPlugin:e=>{s.unregister(e)},getPlugins:()=>s.getPluginNames(),getDisplayName:mu};for(let e of Ex)s.register(e,ei);return queueMicrotask(()=>{if(t)return;let e=pe();if(!e)return;let n=dm(e.defaultAction??`copy`);n!==e.defaultAction&&Oe({defaultAction:n})}),setTimeout(()=>{Zc(!0)},Fn),ei})};return Zi(),typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(R_((window.__REACT_GRAB__??(()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}})())||kx()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:L_()}))),e.DEFAULT_THEME=Mm,e.FreezeError=Bi,e.OpenFileError=Vi,e.PluginSetupError=Wi,e.ReactGrabError=Ri,e.commentPlugin=rh,e.formatElementInfo=Ou,e.generateSnippet=H_,e.getGlobalApi=L_,e.getStack=au,e.init=kx,e.isInstrumentationActive=zr,e.openPlugin=ih,e.registerPlugin=B_,e.setGlobalApi=R_,e.unregisterPlugin=V_,e})({});
38
+ `;let t=[];for(let n of e.getAnimations())wg(n)||t.push(n);Sg(t)}else Cg(t.frozenWaapiAnimations);t.didUseCssFreeze=!1,t.frozenWaapiAnimations=[]}catch(e){n.push(e)}try{r.remove(),t.styleElement=null}catch(e){n.push(e)}}return t.frozenSvgElements=bg(t.frozenSvgElements,n),t.styleElement===null&&t.frozenSvgElements.length===0&&t.frozenWaapiAnimations.length===0&&fg.delete(e),n},Ag=e=>{if(fg.has(e.targetDocument))return;let t=qf(`data-react-grab-global-freeze`,``,e.targetDocument),n={styleElement:t,frozenSvgElements:[],frozenWaapiAnimations:[],didUseCssFreeze:!1};if(fg.set(e.targetDocument,n),e.runningAnimations.length>200)t.textContent=ig,n.didUseCssFreeze=!0;else for(let t of e.runningAnimations)t.pause(),n.frozenWaapiAnimations.push(t);yg(_g(Array.from(e.targetDocument.querySelectorAll(ag))),n.frozenSvgElements)},jg=e=>{dg.add(e);try{hg()&&Ag(Og(e))}catch(t){dg.delete(e);let n=kg(e);throw n.length===0?t:AggregateError([t,...n],`Freezing frame animations failed`)}return()=>{dg.delete(e),lp(kg(e),`Unfreezing frame animations failed`)}},Mg=()=>hg()?[]:(dg.add(document),[...dg].map(Og)),Ng=e=>{if(!hg()){for(let t of e)Ag(t);eg()}},Pg=()=>{if(!hg())return;let e=[];for(let t of[...fg.keys()])e.push(...kg(t));try{tg()}catch(t){e.push(t)}lp(e,`Unfreezing global animations failed`)}})),Ig,Lg,Rg=n((()=>{Hd(),Hn(),J(),cf(),Ig=(e,t)=>{for(let n of e.querySelectorAll(`:hover`))if(!sf(n)&&(Vn(n)&&t.add(n),n.shadowRoot&&Ig(n.shadowRoot,t),Un(n))){let e=Vd(n);e&&Ig(e,t)}},Lg=()=>{let e=new Set;return Ig(document,e),[...e]}})),zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_=n((()=>{Tm(),Hd(),ga(),qd(),Rg(),Hn(),J(),cf(),wa(),cp(),up(),zg=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],Bg=[`focus`,`blur`,`focusin`,`focusout`],Vg=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`,`display`],Hg=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],Ug=new Map,Wg=new Map,Gg=new Set,Kg=!1,qg=e=>{e.stopImmediatePropagation()},Jg=e=>{e.preventDefault(),e.stopImmediatePropagation()},Yg=e=>{for(let t of zg)e.addEventListener(t,qg,!0);for(let t of Bg)e.addEventListener(t,Jg,!0)},Xg=e=>{for(let t of zg)e.removeEventListener(t,qg,!0);for(let t of Bg)e.removeEventListener(t,Jg,!0)},Zg=e=>{Gg.add(e);let t=rp(e);return Kg&&Yg(e),()=>{Kg&&Xg(e),Gg.delete(e),t()}},Qg=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=new Map,a=new Map;for(let n of t){let t=r.getPropertyValue(n);t&&(i.set(n,t),a.set(n,{value:e.style.getPropertyValue(n),priority:e.style.getPropertyPriority(n)}))}return{element:e,frozenPropertyValues:i,originalPropertyValues:a}},$g=(e,t)=>{let n=[],r=Kd(e,t);for(;r&&r!==document.documentElement&&!sf(r);)Vn(r)&&n.push(r),r=ha(r);return n},e_=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;){if(Vn(t)&&e.push(t),t.shadowRoot?.activeElement){t=t.shadowRoot.activeElement;continue}if(Un(t)){t=Vd(t)?.activeElement??null;continue}t=null}return e},t_=(e,t)=>{for(let{element:n,frozenPropertyValues:r,originalPropertyValues:i}of e){t.set(n,i);for(let[e,t]of r)n.style.setProperty(e,t,`important`)}},n_=e=>{let t=[];for(let[n,r]of e){for(let[e,i]of r)try{i.value?n.style.setProperty(e,i.value,i.priority):n.style.removeProperty(e),r.delete(e)}catch(e){t.push(e)}r.size===0&&e.delete(n)}return t},r_=(e,t)=>{if(np())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?$g(e,t):Lg();for(let e of r){let t=Qg(e,Vg);t&&n.push(t)}let i=[];for(let e of e_()){let t=Qg(e,Hg,Wg);t&&i.push(t)}return{hoverStates:n,focusStates:i}},i_=e=>{if(e){Kg=!0,Gg.add(document);for(let e of Gg)Yg(e);t_(e.hoverStates,Ug),t_(e.focusStates,Wg),ip()}},a_=()=>{wm(),Kg=!1;for(let e of Gg)Xg(e);let e=[...n_(Ug),...n_(Wg)];try{ap()}catch(t){e.push(t)}lp(e,`Unfreezing pseudo states failed`)}})),s_,c_,l_,u_=n((()=>{Fg(),o_(),vp(),up(),s_=()=>{let e=[];try{_p()}catch(t){e.push(t)}try{a_()}catch(t){e.push(t)}try{Pg()}catch(t){e.push(t)}return e},c_=(e,t)=>{let n=r_(e,t),r=Mg();try{i_(n),Ng(r),gp()}catch(e){let t=s_();throw t.length===0?e:AggregateError([e,...t],`Freezing global interactions failed`)}},l_=()=>{lp(s_(),`Unfreezing global interactions failed`)}})),d_,f_,p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_=n((()=>{fi(),Qi(),uh(),wa(),d_=!1,f_=0,p_=0,m_=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},h_=new WeakMap,g_=new WeakMap,__=new WeakMap,v_=new Set,y_=[],b_=[],x_=new WeakMap,S_=new WeakMap,C_=new WeakSet,w_=Vr,T_=new Set,E_=new WeakMap,si({name:`react-grab-freeze-updates`,onCommitFiberRoot:(e,t)=>{let n=xr().renderers.get(e);n&&E_.set(t,n)}}),D_=e=>{try{let t=e.rendererPackageName;return typeof t==`string`&&t.startsWith(`react-dom`)}catch{return!1}},O_=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},k_=e=>{let t=e.current,n=t;for(;n;){let e=n.stateNode;if(e&&typeof e==`object`&&typeof Reflect.get(e,`nodeType`)==`number`)return e;if(n.child){n=n.child;continue}for(;n!==t&&!n.sibling;)if(n=n.return,!n)return null;if(n===t)return null;n=n.sibling}return null},A_=e=>{let t=E_.get(e);if(t)return D_(t)?t:null;let n=Array.from(xr().renderers.values()).filter(D_);if(n.length===1){let t=n[0];return t&&E_.set(e,t),t??null}let r=k_(e);if(!r)return null;for(let t of n)try{let n=t.findFiberByHostInstance?.(r);if(n&&O_(n)===e)return E_.set(e,t),t}catch{}return null},j_=e=>{let t=e.current?.stateNode;if(!t||typeof t!=`object`)return!1;let n=Reflect.get(t,`containerInfo`);return!!(n&&typeof n==`object`&&typeof Reflect.get(n,`nodeType`)==`number`)},M_=()=>{if(w_.size>0){let e=new Set;for(let t of w_)j_(t)&&e.add(t);return e}let e=new Set,t=n=>{let r=ui(n);if(r){let t=O_(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},N_=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},P_=e=>{if(!e||x_.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>d_?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>d_?null:n,set:e=>{if(d_){e!==null&&(t.bufferedPending=N_(t.bufferedPending??null,e));return}n=e}}),x_.set(e,t)},F_=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},I_=e=>{let t=x_.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=F_(t.pendingValueAtPause??null),r=F_(t.bufferedPending??null);for(let t of[...e,...r])b_.push(()=>n(t))}x_.delete(e)},L_=e=>{if(S_.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return d_?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(d_){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),S_.set(e,t)},R_=e=>{let t=S_.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),S_.delete(e))},z_=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&P_(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)L_(n),n=n.next},B_=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&I_(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)R_(n),n=n.next},V_=e=>{let t=e;for(;t;){if(jr(t)&&z_(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},H_=e=>{let t=e;for(;t;){if(jr(t)&&B_(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},U_=e=>{if(h_.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};h_.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!d_||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,m_(g_,a,()=>(...e)=>{d_?b_.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!d_||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,m_(g_,a,()=>(...e)=>{d_?b_.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!d_||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,m_(__,a,()=>e=>{d_?y_.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>d_?n.useSyncExternalStore(t=>e(()=>{d_?v_.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},W_=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&U_(r),r),set:e=>{r=e}})},G_=(e,t)=>{queueMicrotask(()=>{if(!(d_||p_!==t))try{for(let t of e){let e=A_(t);if(t.current&&e?.scheduleUpdate)try{e.scheduleUpdate(t.current)}catch(e){Z(new Bi(`scheduleUpdate failed during unfreeze`,e))}}}catch(e){Z(new Bi(`scheduleReactUpdate failed`,e))}})},K_=e=>{for(let t of e)try{t()}catch(e){Z(new Bi(`Callback failed during state replay`,e))}},q_=()=>{for(let e of xr().renderers.values())D_(e)&&(C_.has(e)||(W_(e),C_.add(e)))},J_=()=>{v_.clear(),y_.length=0,b_.length=0},Y_=()=>{let e=p_,t=new Set(T_);try{for(let e of M_())t.add(e)}catch(e){Z(new Bi(`Collecting fiber roots failed during unfreeze`,e))}T_.clear(),d_=!1;for(let e of t)try{H_(e.current)}catch(e){Z(new Bi(`Resuming a fiber root failed during unfreeze`,e))}let n=Array.from(v_),r=y_.slice(),i=b_.slice();J_(),K_(n),K_(r),K_(i),!d_&&p_===e&&G_(t,e)},X_=()=>{let e=f_===0;if(f_+=1,e)try{q_(),p_+=1,d_=!0;let e=M_();for(let t of e)T_.add(t),V_(t.current)}catch(e){throw--f_,d_&&Y_(),e}let t=!1;return()=>{t||(t=!0,--f_,f_===0&&Y_())}},Z_=()=>{try{return X_()}catch(e){return Z(new Bi(`Pausing React updates failed`,e)),()=>{}}}}));u_(),Q_();let $_=e=>{let t=e.left+e.width/2,n=e.top+e.height/2,r=n,i=window.innerHeight-n,a=t,o=window.innerWidth-t,s=Math.min(r,i,a,o);return s===r?`top`:s===a?`left`:s===o?`right`:`bottom`};var ev,tv,nv,rv=n((()=>{ev=e=>e.key===`Enter`,tv=e=>e.metaKey||e.ctrlKey,nv=(e,t,n={})=>{if(!t.key)return null;if(ev(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return tv(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null}}));rv();let iv=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};R(),wi();let av=()=>{let[e,t]=c(!1),[n,r]=c(null),i=iv(),a=()=>{let e=n();return X(e)?e:null},o=()=>{r(null),i.clear(),t(!1)};return{selectedElement:a,isPendingDismiss:e,select:(e,n)=>{r(e),t(!1),n?.shouldPromptBeforeMouseHandoff?i.arm():i.clear()},clear:o,consumeMouseHandoff:()=>i.consume()&&a()!==null,showDismissPrompt:()=>a()?e()?!1:(t(!0),!0):(o(),!1),takeSelection:e=>{let t=a()??(X(e)?e:null);return o(),t}}};var ov,sv,cv=n((()=>{Qi(),uh(),ov=e=>e??!0,sv=(e,t)=>{if(typeof e.enabled==`function`){if(!t)return!1;try{return e.enabled(t)}catch(t){return Z(new qi(e.id,t)),!1}}return ov(e.enabled)}})),lv,uv=n((()=>{Qi(),cv(),uh(),lv=(e,t)=>{if(!sv(e,t))return!1;try{let n=e.onAction(t);n&&n.catch(t=>{Z(new Ki(e.id,t))})}catch(t){Z(new Ki(e.id,t))}return!0}}));uv(),Qi(),uh();let dv=e=>{Z(new Bi(`Toolbar state change subscriber failed`,e))},fv=(e,t)=>{for(let n of e)try{Promise.resolve(n(t)).catch(dv)}catch(e){dv(e)}},Q=(e,t)=>{try{e()}catch(e){t.push(e)}};q(),Hd(),Bn(),J(),cf(),up();let pv=e=>{let t=new Map,n=new Map,r=new Map,i=new Map,a=(e,a)=>{let c=r.get(e);c&&(r.delete(e),Q(()=>c.disconnect(),a));for(let t of[...r.keys()])`host`in t&&t.ownerDocument===e&&o(t,a);for(let t of[...i.keys()])t.ownerDocument===e&&s(t,a);let l=n.get(e);n.delete(e),l&&Q(l,a);let u=t.get(e);t.delete(e),u&&Q(u,a)},o=(e,t)=>{let n=r.get(e);if(n){r.delete(e),Q(()=>n.disconnect(),t);for(let n of e.querySelectorAll(`*`))c(n,t)}},s=(e,t)=>{let n=i.get(e);n&&(i.delete(e),Q(()=>n.abortController.abort(),t),Q(()=>e.removeAttribute(Tn),t),n.document&&a(n.document,t))},c=(e,t)=>{Un(e)&&s(e,t),e.shadowRoot&&o(e.shadowRoot,t)},l=(e,t)=>{for(let n of e.querySelectorAll(`*`))c(n,t);c(e,t)},u=n=>{t.has(n)||(t.set(n,e(n)),d(n),h(n))},d=e=>{let r=e.defaultView?.Element.prototype;if(!r)return;let i=r.attachShadow,a=new Proxy(i,{apply:(n,r,i)=>{let a=Reflect.apply(n,r,i);return a.mode===`open`&&r.isConnected&&t.has(e)&&h(a),a}});r.attachShadow=a,n.set(e,()=>{r.attachShadow===a&&(r.attachShadow=i)})},f=e=>{if(i.has(e))return;let t={abortController:new AbortController,document:null};i.set(e,t);let n=()=>{let n=[],r=Vd(e);if(t.document&&t.document!==r&&a(t.document,n),t.document=r,!r){e.removeAttribute(Tn),lp(n,`Cleaning up replaced frame document failed`);return}e.setAttribute(Tn,``),u(r),lp(n,`Cleaning up replaced frame document failed`)};e.addEventListener(`load`,n,{signal:t.abortController.signal}),n()},p=e=>{sf(e)||(Un(e)&&f(e),e.shadowRoot&&h(e.shadowRoot))},m=e=>{if(p(e),!sf(e))for(let t of e.querySelectorAll(`*`))p(t)},h=e=>{if(r.has(e))return;let t=`defaultView`in e?e.defaultView:e.ownerDocument.defaultView;if(!t)return;let n=new t.MutationObserver(e=>{let t=[];for(let n of e){for(let e of n.removedNodes)zn(e)&&l(e,t);for(let e of n.addedNodes)zn(e)&&m(e)}lp(t,`Cleaning up removed frame documents failed`)});r.set(e,n),n.observe(e,{childList:!0,subtree:!0});for(let t of e.querySelectorAll(`*`))p(t)};return u(document),()=>{let e=[];for(let t of[...i.keys()])s(t,e);for(let[t,n]of r)r.delete(t),Q(()=>n.disconnect(),e);for(let[t,r]of n)n.delete(t),Q(r,e);for(let[n,r]of t)t.delete(n),r&&Q(r,e);lp(e,`Cleaning up same-origin frame documents failed`)}};$n(),Fg(),o_(),up();let mv=(e,t)=>{window.dispatchEvent(t),t.defaultPrevented&&(e.preventDefault(),e.stopImmediatePropagation())},hv=(e,t,n)=>({bubbles:!0,cancelable:!0,composed:!0,clientX:t,clientY:n,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}),gv=e=>{let t=Qn(e.view,e.clientX,e.clientY);mv(e,new PointerEvent(e.type,{...hv(e,t.x,t.y),pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure,tangentialPressure:e.tangentialPressure,tiltX:e.tiltX,tiltY:e.tiltY,twist:e.twist,width:e.width,height:e.height}))},_v=e=>{let t=Qn(e.view,e.clientX,e.clientY);mv(e,new MouseEvent(e.type,hv(e,t.x,t.y)))},vv=e=>{mv(e,new KeyboardEvent(e.type,{bubbles:!0,cancelable:!0,composed:!0,key:e.key,code:e.code,location:e.location,repeat:e.repeat,isComposing:e.isComposing,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}))},yv=e=>pv(t=>{if(t===document)return;let n=t.defaultView;if(!n)return;let r=new AbortController,i=jg(t),a=Zg(t),o={capture:!0,signal:r.signal},s=t=>{e.shouldForwardInteraction()&&gv(t)},c=t=>{e.shouldForwardInteraction()&&_v(t)},l=t=>{(e.shouldForwardInteraction()||e.shouldForwardKeyboardEvent(t))&&vv(t)},u=n=>{e.shouldForwardInteraction()&&e.shouldForwardViewportEvent(t)&&window.dispatchEvent(new Event(n.type))};return n.addEventListener(`pointermove`,s,o),n.addEventListener(`pointerdown`,s,o),n.addEventListener(`pointerup`,s,o),n.addEventListener(`pointercancel`,s,o),n.addEventListener(`contextmenu`,c,o),n.addEventListener(`click`,c,o),n.addEventListener(`keydown`,l,o),n.addEventListener(`keyup`,l,o),n.addEventListener(`keypress`,l,o),n.addEventListener(`scroll`,u,o),n.addEventListener(`resize`,u,o),()=>{r.abort();let e=[];for(let t of[i,a])try{t()}catch(t){e.push(t)}lp(e,`Cleaning up frame event forwarding failed`)}});Zn();let bv=(e,t)=>{let n=t.ownerDocument;for(;n;){if(n===e)return!0;n=Xn(n.defaultView)?.ownerDocument??null}return!1};Qi(),uh();let xv=null,Sv=new Map,Cv=()=>typeof window>`u`?xv:window.__REACT_GRAB__??xv??null,wv=e=>{if(xv=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__),e)for(let[t,n]of Sv){Sv.delete(t);try{e.registerPlugin(n)}catch(e){Z(e instanceof Gi?e:new Gi(t,e))}}},Tv=e=>{xv===e&&(xv=null),typeof window<`u`&&window.__REACT_GRAB__===e&&delete window.__REACT_GRAB__},Ev=e=>{let t=Cv();if(t){t.registerPlugin(e);return}Sv.set(e.name,e)},Dv=e=>{let t=Cv();if(t){t.unregisterPlugin(e);return}Sv.delete(e)},Ov=async(e,t={})=>(await Promise.allSettled(e.map(e=>ju(e,t)))).map(e=>e.status===`fulfilled`?e.value:``);var kv,Av=n((()=>{kv=(e,t,n)=>e+(t-e)*n})),jv,Mv=n((()=>{q(),jv=(e,t)=>{let n=Math.max(t,1);return 1-(1-e)**(n/dn)}})),Nv,Pv,Fv,Iv,Lv=n((()=>{R(),Av(),q(),Uu(),Wt(),Mv(),Nv=z(`<canvas data-react-grab-overlay-canvas style=position:fixed;top:0;left:0;pointer-events:none>`),Pv={borderColor:mn,fillColor:hn,lerpFactor:en},Fv={drag:{borderColor:fn,fillColor:pn,lerpFactor:un},selection:Pv,grabbed:Pv},Iv=e=>{let t,n=null,r=0,i=0,a=1,o=null,s=null,c=null,l=[],f=null,p=[],m=Ut()?`display-p3`:`srgb`,h=()=>{t&&(a=Math.max(window.devicePixelRatio||1,2),r=document.documentElement.clientWidth||window.innerWidth,i=document.documentElement.clientHeight||window.innerHeight,t.width=r*a,t.height=i*a,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext(`2d`,{colorSpace:m}),n&&n.scale(a,a))},g=e=>{if(!e)return 0;let t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):0},b=(e,t,n)=>({id:e,current:{x:t.x,y:t.y,width:t.width,height:t.height},target:{x:t.x,y:t.y,width:t.width,height:t.height},borderRadius:g(t.borderRadius),opacity:n?.opacity??1,targetOpacity:n?.targetOpacity??n?.opacity??1,createdAt:n?.createdAt,fadeStartTimestamp:null,isInitialized:!0}),x=(e,t,n)=>{let r=e.target;r.x=t.x,r.y=t.y,r.width=t.width,r.height=t.height,e.borderRadius=g(t.borderRadius),n!==void 0&&(n>e.targetOpacity&&(e.opacity=n),e.targetOpacity=n)},S=e=>e.boundsMultiple??[e.bounds],C=(e,t,n,r,i,a,o,s,c=1)=>{if(r<=0||i<=0)return;let l=Math.min(r/2,i/2),u=Math.min(a,l),d=c!==1;d&&(e.globalAlpha=c),e.beginPath(),u>0?e.roundRect(t,n,r,i,u):e.rect(t,n,r,i),e.fillStyle=o,e.fill(),e.strokeStyle=s,e.lineWidth=1,e.stroke(),d&&(e.globalAlpha=1)},w=()=>{if(!n||!e.dragVisible||!f)return;let t=Fv.drag;C(n,f.current.x,f.current.y,f.current.width,f.current.height,f.borderRadius,t.fillColor,t.borderColor)},T=()=>{if(!n||!e.selectionVisible)return;let t=Fv.selection;for(let e of l)C(n,e.current.x,e.current.y,e.current.width,e.current.height,e.borderRadius,t.fillColor,t.borderColor,e.opacity)},ee=e=>{if(!n)return;let t=Fv.grabbed;for(let r of e)C(n,r.current.x,r.current.y,r.current.width,r.current.height,r.borderRadius,t.fillColor,t.borderColor,r.opacity)},E=()=>{!n||!t||r<=0||i<=0||(n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.width,t.height),n.setTransform(a,0,0,a,0,0),w(),T(),ee(p))},te=(e,t,n)=>{let r=kv(e.current.x,e.target.x,t),i=kv(e.current.y,e.target.y,t),a=kv(e.current.width,e.target.width,t),o=kv(e.current.height,e.target.height,t),s=Math.abs(r-e.target.x)<.5&&Math.abs(i-e.target.y)<.5&&Math.abs(a-e.target.width)<.5&&Math.abs(o-e.target.height)<.5;e.current.x=s?e.target.x:r,e.current.y=s?e.target.y:i,e.current.width=s?e.target.width:a,e.current.height=s?e.target.height:o;let c=!0;if(n?.interpolateOpacity){let n=kv(e.opacity,e.targetOpacity,t);c=Math.abs(n-e.targetOpacity)<K,e.opacity=c?e.targetOpacity:n}return!s||!c},D=()=>{let e=performance.now(),t=c===null?dn:e-c;c=e;let n=jv(Fv.drag.lerpFactor,t),r=jv(Fv.selection.lerpFactor,t),i=jv(Fv.grabbed.lerpFactor,t),a=!1,u=null;f?.isInitialized&&te(f,n)&&(a=!0);for(let e of l)e.isInitialized&&te(e,r)&&(a=!0);let d=Date.now();p=p.filter(t=>{let n=t.id.startsWith(`label-`);if(t.isInitialized&&te(t,i)&&(a=!0),n&&t.targetOpacity===0){t.fadeStartTimestamp===null&&(t.fadeStartTimestamp=e);let n=e-t.fadeStartTimestamp,r=Math.min(1,n/125),i=1-(1-r)*(1-r);return t.opacity=Math.max(0,1-i),r>=1?!1:(a=!0,!0)}else n&&(t.fadeStartTimestamp=null);if(t.createdAt!==void 0){let e=d-t.createdAt;if(e>=1625)return!1;if(e>1500){let n=Math.min(1,(e-tn)/125);t.opacity=1-(1-(1-n)*(1-n)),a=!0}else{let t=tn-e;u=u===null?t:Math.min(u,t)}return!0}return n?!0:t.opacity>0}),E(),a?o=Bu(D):(o=null,c=null,u!==null&&(s=window.setTimeout(()=>{s=null,O()},Math.max(0,u))))},O=()=>{s!==null&&(window.clearTimeout(s),s=null),o===null&&(o=Bu(D))},k=()=>{h(),O()};return d(_(()=>[e.selectionVisible,e.selectionBounds,e.selectionBoundsMultiple,e.selectionShouldSnap],([e,t,n,r])=>{if(!e||!t&&(!n||n.length===0)){l=[],O();return}let i;i=n&&n.length>0?n:t?[t]:[];let a=new Map;for(let e of l)a.set(e.id,e);l=i.map((e,t)=>{let n=`selection-${t}`,i=a.get(n);return i?(x(i,e),r&&(i.current.x=i.target.x,i.current.y=i.target.y,i.current.width=i.target.width,i.current.height=i.target.height),i):b(n,e)}),O()})),d(_(()=>[e.dragVisible,e.dragBounds],([e,t])=>{if(!e||!t){f=null,O();return}f?x(f,t):f=b(`drag`,t),O()})),d(_(()=>[e.grabbedBoxes,e.labelInstances],([e,t])=>{let n=e??[],r=t??[],i=new Map;for(let e of n)i.set(e.id,e);let a=new Map;for(let e of p)a.set(e.id,e);for(let e of n)if(!a.has(e.id)){let t=b(e.id,e.bounds,{createdAt:e.createdAt});p.push(t),a.set(e.id,t)}for(let e of p){let t=i.get(e.id);t&&x(e,t.bounds)}let o=new Set;for(let e of r){let t=S(e),n=e.status===`fading`?0:1;for(let r=0;r<t.length;r++){let i=t[r],s=`label-${e.id}-${r}`;o.add(s);let c=a.get(s);if(c)x(c,i,n);else{let e=b(s,i,{opacity:1,targetOpacity:n});p.push(e),a.set(s,e)}}}p=p.filter(e=>e.id.startsWith(`label-`)?o.has(e.id):i.has(e.id)),O()})),v(()=>{h(),O(),window.addEventListener(`resize`,k);let e=null,t=()=>{Math.max(window.devicePixelRatio||1,2)!==a&&(k(),n())},n=()=>{e&&e.removeEventListener(`change`,t),e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),e.addEventListener(`change`,t)};n(),y(()=>{window.removeEventListener(`resize`,k),e&&e.removeEventListener(`change`,t),o!==null&&Vu(o),s!==null&&window.clearTimeout(s)})}),(()=>{var e=Nv(),n=t;return typeof n==`function`?tt(n,e):t=e,u(t=>U(e,`z-index`,String(ln))),e})()}})),Rv,zv,Bv=n((()=>{G(),R(),q(),wa(),Rv=z(`<div style=position:fixed;pointer-events:none;will-change:opacity;contain:strict;transform:translateZ(0)>`),zv=e=>{let t=xa(),n=t?getComputedStyle(t).borderRadius:`0px`,r=()=>t?.getBoundingClientRect()??null,[i,a]=c(r());if(t){let n=()=>a(r());v(()=>{let e=new ResizeObserver(n);e.observe(t),window.addEventListener(`scroll`,n,{capture:!0,passive:!0}),window.addEventListener(`resize`,n),y(()=>{e.disconnect(),window.removeEventListener(`scroll`,n,{capture:!0}),window.removeEventListener(`resize`,n)})}),d(()=>{e.visible&&n()})}let o=()=>{let e=i();return e?`${e.top}px`:`0`},s=()=>{let e=i();return e?`${e.left}px`:`0`},l=()=>{let e=i();return e?`${e.width}px`:`100%`},f=()=>{let e=i();return e?`${e.height}px`:`100%`};return(()=>{var t=Rv();return U(t,`border-radius`,n),U(t,`z-index`,ln),U(t,`transition`,`opacity 125ms ease-out`),U(t,`box-shadow`,`inset 0 0 50px ${gn}`),u(n=>{var r=o(),i=s(),a=l(),c=f(),u=+!!e.visible;return r!==n.e&&U(t,`top`,n.e=r),i!==n.t&&U(t,`left`,n.t=i),a!==n.a&&U(t,`width`,n.a=a),c!==n.o&&U(t,`height`,n.o=c),u!==n.i&&U(t,`opacity`,n.i=u),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()}})),Vv,Hv=n((()=>{Vv=(e,t)=>{e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,t)}px`}})),Uv,Wv=n((()=>{wa(),Uv=(e,t)=>{e&&e.focus(t)}})),Gv,Kv=n((()=>{q(),Gv=e=>{if(e<=0)return 8;let t=e*_n;return Math.round(Math.max(4,Math.min(8,t)))}})),qv,Jv=n((()=>{wa(),qv=()=>{let e=xa();if(e){let t=e.getBoundingClientRect();return{width:t.width,height:t.height,offsetLeft:t.left,offsetTop:t.top}}let t=window.visualViewport;return t?{width:t.width,height:t.height,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop}:{width:window.innerWidth,height:window.innerHeight,offsetLeft:0,offsetTop:0}}})),Yv,Xv=n((()=>{q(),Yv=e=>e.isComposing||e.keyCode===229})),Zv,$,Qv=n((()=>{Zv=e=>{if(typeof e==`string`||typeof e==`number`)return String(e);if(!e||typeof e!=`object`)return``;if(Array.isArray(e)){let t=``;for(let n of e){if(!n)continue;let e=Zv(n);e&&(t=t?`${t} ${e}`:e)}return t}let t=``;for(let n in e)e[n]&&(t=t?`${t} ${n}`:n);return t},$=(...e)=>{let t=``;for(let n of e){if(!n)continue;let e=Zv(n);e&&(t=t?`${t} ${e}`:e)}return t}})),$v,ey=n((()=>{$v=e=>e.elementsCount&&e.elementsCount>1?{tagName:`${e.elementsCount} elements`,componentName:void 0}:{tagName:e.tagName||e.componentName||`element`,componentName:e.tagName?e.componentName:void 0}})),ty,ny,ry=n((()=>{G(),ty=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M19.2929 12.7071C19.6834 13.0976 20.3166 13.0976 20.7071 12.7071C21.0976 12.3166 21.0976 11.6834 20.7071 11.2929L12.7071 3.29289C12.5196 3.10536 12.2652 3 12 3C11.7348 3 11.4804 3.10536 11.2929 3.29289L3.29289 11.2929C2.90237 11.6834 2.90237 12.3166 3.29289 12.7071C3.68342 13.0976 4.31658 13.0976 4.70711 12.7071L11 6.41421L11 20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20L13 6.41422L19.2929 12.7071Z">`),ny=e=>{let t=()=>e.size??10;return(()=>{var n=ty();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),iy,ay,oy=n((()=>{G(),iy=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path class=icon-loader-bar d="M12 2v4"style=animation-delay:0ms></path><path class=icon-loader-bar d="M15 6.8l2-3.5"style=animation-delay:-42ms></path><path class=icon-loader-bar d="M17.2 9l3.5-2"style=animation-delay:-83ms></path><path class=icon-loader-bar d="M18 12h4"style=animation-delay:-125ms></path><path class=icon-loader-bar d="M17.2 15l3.5 2"style=animation-delay:-167ms></path><path class=icon-loader-bar d="M15 17.2l2 3.5"style=animation-delay:-208ms></path><path class=icon-loader-bar d="M12 18v4"style=animation-delay:-250ms></path><path class=icon-loader-bar d="M9 17.2l-2 3.5"style=animation-delay:-292ms></path><path class=icon-loader-bar d="M6.8 15l-3.5 2"style=animation-delay:-333ms></path><path class=icon-loader-bar d="M2 12h4"style=animation-delay:-375ms></path><path class=icon-loader-bar d="M6.8 9l-3.5-2"style=animation-delay:-417ms></path><path class=icon-loader-bar d="M9 6.8l-2-3.5"style=animation-delay:-458ms>`),ay=e=>{let t=()=>e.size??16;return(()=>{var n=iy();return n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling,u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),sy,cy,ly=n((()=>{G(),q(),Kv(),sy=z(`<svg data-react-grab-arrow class="absolute block z-10"><path>`),cy=e=>{let t=()=>e.position===`bottom`,n=()=>Gv(e.labelWidth??0),r=()=>n()*2,i=()=>n(),a=()=>{let e=r(),n=i(),a=1*Math.SQRT1_2,o=e/2,s=t()?n:0,c=t()?a:n-a,l=+!!t();return`M0 ${s} L${o-a} ${c} A1 1 0 0 ${l} ${o+a} ${c} L${e} ${s} Z`};return(()=>{var n=sy(),o=n.firstChild;return B(o,`fill`,Zt),u(s=>{var c=r(),l=i(),u=`0 0 ${r()} ${i()}`,d=`calc(${e.leftPercent}% + ${e.leftOffsetPx}px)`,f=t()?`0`:void 0,p=t()?void 0:`0`,m=t()?`translateX(-50%) translateY(calc(-100% + 1px))`:`translateX(-50%) translateY(calc(100% - 1px))`,h=a();return c!==s.e&&B(n,`width`,s.e=c),l!==s.t&&B(n,`height`,s.t=l),u!==s.a&&B(n,`viewBox`,s.a=u),d!==s.o&&U(n,`left`,s.o=d),f!==s.i&&U(n,`top`,s.i=f),p!==s.n&&U(n,`bottom`,s.n=p),m!==s.s&&U(n,`transform`,s.s=m),h!==s.h&&B(o,`d`,s.h=h),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),n})()}})),uy,dy,fy,py,my,hy,gy,_y=n((()=>{G(),R(),Qv(),uy=z(`<span> `),dy=z(`<span class=text-[var(--rg-text-secondary)]> `),fy=z(`<span class=text-[var(--rg-text-primary)]> `),py=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0">`),my=z(`<button type=button>`),hy=z(`<div>`),gy=e=>{let t=()=>{e.onHoverChange?.(!0)},n=()=>{e.onHoverChange?.(!1)},r=()=>e.componentName?`${e.componentName}.${e.tagName}`:e.tagName,i=()=>(()=>{var t=py();return W(t,j(M,{get when(){return e.componentName},get children(){return[(()=>{var t=uy(),n=t.firstChild;return u(()=>n.data=e.componentName),t})(),(()=>{var t=dy(),n=t.firstChild;return u(()=>n.data=`.${e.tagName}`),t})()]}}),null),W(t,j(M,{get when(){return!e.componentName},get children(){var t=fy(),n=t.firstChild;return u(()=>n.data=e.tagName),t}}),null),t})();return j(M,{get when(){return e.isClickable},get fallback(){return(()=>{var r=hy();return H(r,`click`,e.onClick,!0),r.addEventListener(`mouseleave`,n),r.addEventListener(`mouseenter`,t),W(r,i),u(()=>V(r,$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden`,e.shrink&&`shrink-0`))),r})()},get children(){var a=my();return H(a,`click`,e.onClick,!0),a.addEventListener(`mouseleave`,n),a.addEventListener(`mouseenter`,t),W(a,i),u(t=>{var n=`Open source for ${r()}`,i=$(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden cursor-pointer bg-transparent border-none p-0 m-0 text-left`,e.shrink&&`shrink-0`);return n!==t.e&&B(a,`aria-label`,t.e=n),i!==t.t&&V(a,t.t=i),t},{e:void 0,t:void 0}),a}})},Ye([`click`])})),vy,yy,by=n((()=>{G(),vy=z(`<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-auto h-fit self-stretch [border-top-width:0.5px] border-t-[var(--rg-border-subtle)] antialiased">`),yy=e=>(()=>{var t=vy();return W(t,()=>e.children),t})()})),xy,Sy=n((()=>{Qv(),xy=(e,t={})=>(n={})=>{let r=t.variants;if(!r)return e;let i=[e];for(let e in r){let a=n[e]??t.defaultVariants?.[e];if(a===void 0)continue;let o=r[e][String(a)];o&&i.push(o)}return $(...i)}})),Cy,wy,Ty,Ey=n((()=>{G(),R(),Qv(),Sy(),Cy=z(`<div>`),wy=xy(`contain-layout antialiased [font-synthesis:none] bg-[var(--rg-panel-bg)]`,{variants:{shape:{panel:`rounded-[14px] [corner-shape:superellipse(1.25)]`,pill:`rounded-full`}},defaultVariants:{shape:`panel`}}),Ty=e=>{let[t,n]=Se(e,[`shape`,`class`]);return(()=>{var e=Cy();return et(e,xe({get class(){return $(wy({shape:t.shape}),t.class)}},n),!1,!1),e})()}})),Dy,Oy,ky=n((()=>{Dy=null,Oy={claim:e=>{Dy=e},release:e=>{Dy===e&&(Dy=null)},isActive:e=>Dy===e}})),Ay,jy=n((()=>{R(),ky(),wa(),Ay=e=>{let t=Symbol(),n=Ca(n=>{Oy.isActive(t)&&(ra(n)||(n.code===`Enter`?e.onEnter?.(n):n.code===`Escape`&&e.onEscape?.(n)))});return v(()=>{Oy.claim(t),window.addEventListener(`keydown`,n,{capture:!0})}),y(()=>{Oy.release(t),window.removeEventListener(`keydown`,n,{capture:!0})}),{claimFocus:()=>Oy.claim(t)}}})),My,Ny,Py=n((()=>{G(),My=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M10.7071 21.2071C10.3166 21.5976 9.68342 21.5976 9.29289 21.2071L3.29289 15.2071C2.90237 14.8166 2.90237 14.1834 3.29289 13.7929L9.29289 7.79289C9.68342 7.40237 10.3166 7.40237 10.7071 7.79289C11.0976 8.18342 11.0976 8.81658 10.7071 9.20711L6.41421 13.5H16C16.5523 13.5 17 13.0523 17 12.5V3.5C17 2.94772 17.4477 2.5 18 2.5C18.5523 2.5 19 2.94772 19 3.5V12.5C19 14.1569 17.6569 15.5 16 15.5H6.41421L10.7071 19.7929C11.0976 20.1834 11.0976 20.8166 10.7071 21.2071Z">`),Ny=e=>{let t=()=>e.size??10;return(()=>{var n=My();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Fy,Iy,Ly,Ry=n((()=>{G(),R(),Qv(),Sy(),Fy=z(`<button>`),Iy=xy(`contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all press-scale`,{variants:{variant:{chip:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] hover:bg-[var(--rg-surface-active)] text-[var(--rg-text-primary)]`,destructive:`px-[3px] py-px h-[17px] rounded-sm bg-[var(--rg-error-bg)] hover:bg-[var(--rg-error-bg-hover)] text-[var(--rg-error-text)]`,ghost:`rounded-sm bg-transparent hover:bg-[var(--rg-surface-hover)] border-none outline-none p-0`}},defaultVariants:{variant:`chip`}}),Ly=e=>{let[t,n]=Se(e,[`variant`,`class`,`type`]);return(()=>{var e=Fy();return et(e,xe({get type(){return t.type??`button`},get class(){return $(Iy({variant:t.variant}),t.class)}},n),!1,!1),e})()}})),zy,By,Vy,Hy,Uy,Wy,Gy=n((()=>{G(),R(),jy(),Py(),Ry(),by(),zy=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">No`),By=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Copy`),Vy=z(`<span class="text-[var(--rg-error-text)] text-[13px] leading-3.5 font-sans font-medium">Yes`),Hy=z(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),Uy=z(`<div data-react-grab-discard-prompt class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"> `),Wy=e=>{let t=()=>e.showCancel??!0,{claimFocus:n}=Ay({onEnter:t=>{t.preventDefault(),t.stopPropagation();let n=t.composedPath()[0],r=n instanceof HTMLElement?n:null;if(r?.closest(`[data-react-grab-discard-copy]`)){e.onCopy?.();return}if(r?.closest(`[data-react-grab-discard-no]`)){e.onCancel?.();return}e.onConfirm?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.cancelOnEscape?e.onCancel?.():e.onConfirm?.()}});return(()=>{var r=Uy(),i=r.firstChild.firstChild.firstChild;return H(r,`click`,n,!0),H(r,`pointerdown`,n,!0),W(r,j(yy,{get children(){var n=Hy();return W(n,j(M,{get when(){return t()},get children(){return j(Ly,{"data-react-grab-discard-no":!0,get onClick(){return e.onCancel},get children(){return zy()}})}}),null),W(n,j(M,{get when(){return e.onCopy},get children(){return j(Ly,{"data-react-grab-discard-copy":!0,get onClick(){return e.onCopy},get children(){return By()}})}}),null),W(n,j(Ly,{variant:`destructive`,class:`gap-0.5`,"data-react-grab-discard-yes":!0,get onClick(){return e.onConfirm},get children(){return[Vy(),j(Ny,{size:10,class:`text-[var(--rg-error-text)] opacity-50`})]}}),null),n}}),null),u(()=>i.data=e.label??`Discard?`),r})()},Ye([`pointerdown`,`click`])})),Ky,qy,Jy=n((()=>{G(),Ky=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7 2C4.23858 2 2 4.23858 2 7V15C2 17.7614 4.23858 20 7 20H8C8.55228 20 9 19.5523 9 19C9 18.4477 8.55228 18 8 18H7C5.34315 18 4 16.6569 4 15V7C4 5.34315 5.34315 4 7 4H17C18.6569 4 20 5.34315 20 7V15C20 16.6569 18.6569 18 17 18H14.4142L16.2071 16.2071C16.5976 15.8166 16.5976 15.1834 16.2071 14.7929C15.8166 14.4024 15.1834 14.4024 14.7929 14.7929L11.2929 18.2929C11.197 18.3888 11.1247 18.4993 11.0759 18.6172C11.027 18.7351 11 18.8644 11 19C11 19.2728 11.1093 19.5201 11.2864 19.7005C11.2889 19.7031 11.2914 19.7056 11.2939 19.7081L14.7929 23.2071C15.1834 23.5976 15.8166 23.5976 16.2071 23.2071C16.5976 22.8166 16.5976 22.1834 16.2071 21.7929L14.4142 20H17C19.7614 20 22 17.7614 22 15V7C22 4.23858 19.7614 2 17 2H7Z">`),qy=e=>{let t=()=>e.size??12;return(()=>{var n=Ky();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Yy,Xy,Zy,Qy,$y,eb=n((()=>{G(),R(),jy(),Jy(),Ry(),by(),Yy=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Retry`),Xy=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Ok`),Zy=z(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">`),Qy=z(`<div data-react-grab-error role=alert aria-live=assertive class="contain-layout shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-start gap-1 px-2 w-full h-fit"><span class="text-[var(--rg-error-text)] text-[13px] leading-4 font-sans font-medium overflow-hidden line-clamp-5"> `),$y=e=>{let{claimFocus:t}=Ay({onEnter:t=>{if(oh(t,`data-react-grab-error-ok`)){t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.();return}t.preventDefault(),t.stopPropagation(),e.onRetry?.()},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.()}}),n=()=>!!(e.onRetry||e.onAcknowledge);return(()=>{var r=Qy(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return H(r,`click`,t,!0),H(r,`pointerdown`,t,!0),W(r,j(M,{get when(){return n()},get children(){return j(yy,{get children(){var t=Zy();return W(t,j(M,{get when(){return e.onRetry},get children(){return j(Ly,{"data-react-grab-retry":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,get onClick(){return e.onRetry},get children(){return[Yy(),j(qy,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-text-secondary)]`})]}})}}),null),W(t,j(M,{get when(){return e.onAcknowledge},get children(){return j(Ly,{"data-react-grab-error-ok":!0,class:`gap-1`,"aria-keyshortcuts":`Escape`,get onClick(){return e.onAcknowledge},get children(){return Xy()}})}}),null),t}})}}),null),u(t=>{var r={"pt-1.5 pb-1":n(),"py-1.5":!n()},s=e.error,c=e.error;return t.e=Qe(i,r,t.e),s!==t.t&&B(a,`title`,t.t=s),c!==t.a&&(o.data=t.a=c),t},{e:void 0,t:void 0,a:void 0}),r})()},Ye([`pointerdown`,`click`])})),tb,nb,rb=n((()=>{G(),tb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M7.5 12C7.5 13.3807 6.38071 14.5 5 14.5C3.61929 14.5 2.5 13.3807 2.5 12C2.5 10.6193 3.61929 9.5 5 9.5C6.38071 9.5 7.5 10.6193 7.5 12ZM14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12ZM19 14.5C20.3807 14.5 21.5 13.3807 21.5 12C21.5 10.6193 20.3807 9.5 19 9.5C17.6193 9.5 16.5 10.6193 16.5 12C16.5 13.3807 17.6193 14.5 19 14.5Z">`),nb=e=>{let t=()=>e.size??14;return(()=>{var n=tb();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),ib,ab,ob=n((()=>{G(),ib=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM17.7071 10.7071C18.0976 10.3166 18.0976 9.68342 17.7071 9.29289C17.3166 8.90237 16.6834 8.90237 16.2929 9.29289L11 14.5858L8.70711 12.2929C8.31658 11.9024 7.68342 11.9024 7.29289 12.2929C6.90237 12.6834 6.90237 13.3166 7.29289 13.7071L10.2929 16.7071C10.6834 17.0976 11.3166 17.0976 11.7071 16.7071L17.7071 10.7071Z">`),ab=e=>{let t=()=>e.size??14;return(()=>{var n=ib();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),sb,cb,lb,ub,db,fb,pb=n((()=>{G(),R(),q(),jy(),sh(),Py(),rb(),Qv(),Ry(),Ey(),ob(),sb=z(`<button type=button data-react-grab-ignore-events data-react-grab-more-options aria-label="More options">`),cb=z(`<span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Keep`),lb=z(`<div class="contain-layout shrink-0 flex items-center justify-between gap-2 pt-1.5 pb-1 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> </span><div class="contain-layout shrink-0 flex items-center gap-2 h-fit">`),ub=z(`<div class="contain-layout shrink-0 flex items-center gap-0.5 py-1.5 px-2 w-full h-fit"><span class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap min-w-0"> `),db=e=>(()=>{var t=sb();return H(t,`click`,t=>{t.stopImmediatePropagation(),e.onClick()}),H(t,`pointerdown`,e=>{e.stopImmediatePropagation()}),W(t,j(nb,{size:14,"aria-hidden":`true`,class:`opacity-50 group-hover:opacity-100 transition-opacity`})),u(()=>V(t,$(Iy({variant:`ghost`}),`group size-4 text-[var(--rg-text-secondary)] hover:text-[var(--rg-text-primary)]`))),t})(),fb=e=>{let t,n,[r,i]=c(!1),[a,o]=c(!1),s=()=>r()?`Copied`:e.statusText,l=()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n),o(!0),e.onFadingChange?.(!0),e.onShowContextMenu?.()},d=()=>{r()||(i(!0),t=window.setTimeout(()=>{o(!0),e.onFadingChange?.(!0),n=window.setTimeout(()=>{e.onDismiss?.()},125)},tn-125))},{claimFocus:f}=Ay({onEnter:e=>{if(oh(e,`data-react-grab-more-options`)){e.preventDefault(),e.stopPropagation(),l();return}oh(e,`data-react-grab-context-menu`)||(e.preventDefault(),e.stopPropagation(),d())},onEscape:t=>{t.preventDefault(),t.stopPropagation(),e.onDismiss?.()}});return y(()=>{t!==void 0&&window.clearTimeout(t),n!==void 0&&window.clearTimeout(n)}),j(Ty,{shape:`pill`,"data-react-grab-completion":!0,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,class:`shrink-0 flex flex-col justify-center items-end w-fit h-fit max-w-[280px] transition-opacity duration-100 ease-out`,get style(){return{opacity:+!a()}},onPointerDown:f,onClick:f,get children(){return[j(M,{get when(){return vt(()=>!r())()&&e.onDismiss},get children(){var t=lb(),n=t.firstChild,i=n.firstChild,a=n.nextSibling;return W(a,j(M,{get when(){return e.onShowContextMenu},get children(){return j(db,{onClick:l})}}),null),W(a,j(M,{get when(){return e.onDismiss},get children(){return j(Ly,{"data-react-grab-dismiss":!0,class:`gap-1`,"aria-keyshortcuts":`Enter`,onClick:d,get disabled(){return r()},get"aria-disabled"(){return r()},get children(){return[cb(),j(M,{get when(){return!r()},get children(){return j(Ny,{size:10,class:`text-[var(--rg-text-secondary)]`})}})]}})}}),null),u(()=>i.data=s()),t}}),j(M,{get when(){return r()||!e.onDismiss},get children(){var t=ub(),n=t.firstChild,r=n.firstChild;return W(t,j(ab,{size:14,"aria-hidden":`true`,class:`text-[var(--rg-text-primary-85)] shrink-0`}),n),W(t,j(M,{get when(){return e.onShowContextMenu},get children(){return j(db,{onClick:l})}}),null),u(()=>r.data=s()),t}})]}})}})),mb,hb,gb,_b,vb,yb,bb,xb,Sb=n((()=>{G(),R(),q(),Hv(),Wv(),Kv(),Jv(),Xv(),wa(),Qv(),ey(),ry(),oy(),ly(),_y(),by(),Ey(),Gy(),eb(),pb(),mb=z(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 py-1.5 px-2 w-full h-fit"><span class="shimmer-text text-[13px] leading-4 font-sans font-medium h-fit tabular-nums overflow-hidden text-ellipsis whitespace-nowrap"> `),hb=z(`<div class="contain-layout shrink-0 flex flex-col items-start w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit px-2 py-1.5">`),gb=z(`<button data-react-grab-submit type=button aria-label="Submit context"class="contain-layout shrink-0 flex items-center justify-center size-4 rounded-full bg-[var(--rg-submit-bg)] cursor-pointer ml-1 interactive-scale a11y-hitbox">`),_b=z(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events data-react-grab-input aria-label="Add context for selected element"aria-keyshortcuts="Enter Escape"class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-medium bg-transparent border-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="Add context"rows=1 style=field-sizing:content;min-height:16px;scrollbar-width:none>`),vb=z(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start w-fit h-fit min-w-[150px] max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2 max-w-full">`),yb=z(`<div data-react-grab-ignore-events data-react-grab-selection-label class="fixed font-sans text-[13px] antialiased select-none">`),bb={left:Rn,top:Rn,arrowLeftPercent:50,arrowLeftOffset:0,edgeOffsetX:0},xb=e=>{let t,n,r,i=!1,[a,o]=c(0),[s,l]=c(0),[p,m]=c(0),[h,g]=c(0),[b,x]=c(!1),[S,C]=c(!1),w=()=>e.status!==`copying`&&e.status!==`copied`&&e.status!==`fading`&&e.status!==`error`,T=()=>e.status===`copied`||e.status===`fading`,ee=()=>!!(e.isPromptMode||e.discardPrompt||T()&&(e.onDismiss||e.onShowContextMenu)||e.status===`error`&&(e.onAcknowledgeError||e.onRetry)),E,te=e=>{i=e},D=()=>{g(e=>e+1)};v(()=>{let e=xa();if(E=new ResizeObserver(r=>{for(let a of r){let r=a.target.getBoundingClientRect();a.target===t&&!i?(o(r.width),l(r.height)):a.target===n?m(r.width):a.target===e&&D()}}),e&&E.observe(e),t){let e=t.getBoundingClientRect();o(e.width),l(e.height),E.observe(t)}n&&(m(n.getBoundingClientRect().width),E.observe(n)),window.addEventListener(`scroll`,D,!0),window.addEventListener(`resize`,D),window.visualViewport?.addEventListener(`resize`,D),window.visualViewport?.addEventListener(`scroll`,D)}),y(()=>{E?.disconnect(),window.removeEventListener(`scroll`,D,!0),window.removeEventListener(`resize`,D),window.visualViewport?.removeEventListener(`resize`,D),window.visualViewport?.removeEventListener(`scroll`,D)});let O=()=>`${e.tagName??``}:${e.componentName??``}`,k=f(t=>{h();let n=O(),r=n===t.elementIdentity?t:{position:bb,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:n},i=e.selectionBounds,o=a(),c=s(),l=o>0&&c>0,u=i&&i.width>0&&i.height>0;if(!l||!u)return{position:r.hadValidBounds?r.position:bb,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let d=qv(),f=d.offsetLeft,m=d.offsetTop,g=f+d.width,_=m+d.height;if(!(i.x+i.width>f&&i.x<g&&i.y+i.height>m&&i.y<_))return{position:bb,computedArrowPosition:r.computedArrowPosition,hadValidBounds:r.hadValidBounds,elementIdentity:n};let v=i.x+i.width/2,y=e.mouseX??v,b=i.y+i.height,x=i.y,S=e.hideArrow?0:Gv(p()),C=y,w=0,T=b+S+4,ee=C-o/2,E=C+o/2;E>g-8&&(w=g-8-E),ee+w<f+8&&(w=f+8-ee);let te=c+S+4,D=T+c<=_-8;D||(T=x-te),T<m+8&&(T=m+8);let k=o/2,ne=k-w,re=Math.min(16,k),ie=Math.max(o-16,k),ae=Math.max(re,Math.min(ie,ne))-k;return{position:{left:C,top:T,arrowLeftPercent:50,arrowLeftOffset:ae,edgeOffsetX:w},computedArrowPosition:D?`bottom`:`top`,hadValidBounds:!0,elementIdentity:n}},{position:bb,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:``}),ne=()=>k().computedArrowPosition??`bottom`,re=()=>k().hadValidBounds;d(_(()=>e.selectionLabelShakeCount,()=>C(!0),{defer:!0}));let ie=t=>{if(Yv(t))return;t.stopImmediatePropagation();let n=t.code===`Enter`&&!t.shiftKey,r=t.code===`Escape`;n?(t.preventDefault(),e.onSubmit?.()):r&&(t.preventDefault(),e.onConfirmDismiss?.())},ae=t=>{let n=t.target;n instanceof HTMLTextAreaElement&&(Vv(n,95),e.onInputChange?.(n.value))},A=()=>$v({tagName:e.tagName,componentName:e.componentName,elementsCount:e.elementsCount}),oe=f(()=>!(e.error||e.discardPrompt||w()&&e.isPromptMode)),se=t=>{t.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen()},ce=t=>{t.stopImmediatePropagation(),w()&&e.isPromptMode&&!e.discardPrompt&&e.onSubmit&&r&&Uv(r,{preventScroll:!0})},le=()=>re()&&(T()||e.status===`error`);return j(M,{get when(){return vt(()=>e.visible!==!1)()&&(e.selectionBounds||le())},get children(){var i=yb();i.addEventListener(`mouseleave`,()=>e.onHoverChange?.(!1)),i.addEventListener(`mouseenter`,()=>e.onHoverChange?.(!0)),i.$$click=e=>{e.stopImmediatePropagation()},i.$$pointerdown=ce;var a=t;return typeof a==`function`?tt(a,i):t=i,U(i,`z-index`,`${cn}`),U(i,`transition`,`opacity 125ms ease-out, filter 125ms ease-out`),W(i,j(M,{get when(){return!e.hideArrow},get children(){return j(cy,{get position(){return ne()},get leftPercent(){return k().position.arrowLeftPercent},get leftOffsetPx(){return k().position.arrowLeftOffset},get labelWidth(){return p()}})}}),null),W(i,j(M,{get when(){return vt(()=>!!T())()&&!e.error},get children(){return j(fb,{get statusText(){return e.statusText??`Copied`},get onDismiss(){return e.onDismiss},onFadingChange:x,get onShowContextMenu(){return e.onShowContextMenu}})}}),null),W(i,j(Ty,{ref:e=>n=e,get shape(){return oe()?`pill`:`panel`},get class(){return $(`flex items-center gap-[5px] w-fit h-fit p-0`,S()&&`animate-shake`)},get style(){return{display:T()&&!e.error?`none`:void 0}},onAnimationEnd:()=>C(!1),get children(){return[j(M,{get when(){return e.status===`copying`},get children(){var t=mb(),n=t.firstChild,r=n.firstChild,i=r.firstChild;return W(n,j(ay,{size:13,class:`text-[var(--rg-text-secondary)] shrink-0`}),r),u(()=>i.data=e.statusText??`Grabbing…`),t}}),j(M,{get when(){return vt(()=>!!(w()&&!e.isPromptMode))()&&!e.discardPrompt},get children(){var t=hb(),n=t.firstChild;return W(n,j(gy,{get tagName(){return A().tagName},get componentName(){return A().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:se,onHoverChange:te,shrink:!0})),t}}),j(M,{get when(){return vt(()=>!!(w()&&e.isPromptMode))()&&!e.discardPrompt},get children(){var t=vb(),n=t.firstChild;return W(n,j(gy,{get tagName(){return A().tagName},get componentName(){return A().componentName},get isClickable(){return!!(e.filePath&&e.onOpen)},onClick:se,onHoverChange:te})),W(t,j(yy,{get children(){var t=_b(),n=t.firstChild;return n.$$keydown=ie,n.$$input=ae,tt(t=>{r=t,e.onSubmit&&queueMicrotask(()=>{Uv(t,{preventScroll:!0}),Vv(t,95)})},n),U(n,`max-height`,`95px`),W(t,j(M,{get when(){return e.onSubmit},get children(){var t=gb();return t.$$click=()=>e.onSubmit?.(),W(t,j(ny,{size:10,"aria-hidden":`true`,class:`text-[var(--rg-submit-fg)]`})),t}}),null),u(()=>n.readOnly=!e.onSubmit),u(()=>n.value=e.inputValue??``),t}}),null),t}}),j(M,{get when(){return e.discardPrompt},keyed:!0,children:e=>j(Wy,{get label(){return vt(()=>!!e.isKeyboardSelection)()?`Discard selection?`:e.label},get showCancel(){return!e.isKeyboardSelection},get cancelOnEscape(){return e.cancelOnEscape},get onConfirm(){return e.onConfirm},get onCopy(){return e.onCopy},onCancel:()=>{e.isKeyboardSelection||e.onCancel?.(),Uv(r,{preventScroll:!0})}})}),j(M,{get when(){return e.error},get children(){return j($y,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}})]}}),null),u(t=>{var n=`${k().position.top}px`,r=`${k().position.left}px`,a=`translateX(calc(-50% + ${k().position.edgeOffsetX}px))`,o=ee()?`auto`:`none`,s=e.status===`fading`||b()?0:1,c=`drop-shadow(${Qt}) blur(${e.status===`fading`||b()?`3px`:`0`})`;return n!==t.e&&U(i,`top`,t.e=n),r!==t.t&&U(i,`left`,t.t=r),a!==t.a&&U(i,`transform`,t.a=a),o!==t.o&&U(i,`pointer-events`,t.o=o),s!==t.i&&U(i,`opacity`,t.i=s),c!==t.n&&U(i,`filter`,t.n=c),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),i}})},Ye([`pointerdown`,`click`,`input`,`keydown`])})),Cb,wb,Tb=n((()=>{G(),Qv(),q(),Cb=z(`<span style="transition-property:transform;transition-timing-function:cubic-bezier(0.32, 0.72, 0, 1)"><svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M20.8977 4.02356L21.8277 4.39121C22.3784 2.99813 21.0382 1.60206 19.6238 2.09546L3.47334 7.72936C1.38661 8.45728 1.49021 11.443 3.6224 12.0245L10.1289 13.799L11.2331 19.8724C11.638 22.0991 14.7072 22.4019 15.5393 20.2972L21.8277 4.39121L20.8977 4.02356Z">`),wb=e=>{let t=()=>e.size??14,n=()=>e.rotationDeg??0;return(()=>{var r=Cb(),i=r.firstChild;return U(r,`transition-duration`,`180ms`),u(a=>{var o=$(`inline-flex items-center justify-center will-change-transform`,e.class),s=`rotate(${n()}deg)`,c=t(),l=t();return o!==a.e&&V(r,a.e=o),s!==a.t&&U(r,`transform`,a.t=s),c!==a.a&&B(i,`width`,a.a=c),l!==a.o&&B(i,`height`,a.o=l),a},{e:void 0,t:void 0,a:void 0,o:void 0}),r})()}})),Eb,Db,Ob,kb,Ab=n((()=>{G(),R(),Qv(),q(),Eb=z(`<div> `),Db=0,Ob=()=>Date.now()-Db<800,kb=e=>{let[t,n]=c(!1),[r,i]=c(!0),a;d(_(()=>e.visible,e=>{a!==void 0&&(clearTimeout(a),a=void 0),e?Ob()?(i(!1),n(!0)):(i(!0),a=setTimeout(()=>{n(!0)},400)):(t()&&(Db=Date.now()),n(!1))})),y(()=>{a!==void 0&&clearTimeout(a),t()&&(Db=Date.now())});let o=()=>e.position===`top`||e.position===`bottom`?{left:`50%`,translate:`-50%`,"z-index":`${cn}`}:{top:`50%`,translate:`0 -50%`,"z-index":`${cn}`};return j(M,{get when(){return t()},get children(){var t=Eb(),n=t.firstChild;return u(i=>{var a=$(`absolute whitespace-nowrap px-2 py-0.5 rounded-full text-[10px] font-sans font-medium leading-4 pointer-events-none`,`bg-[var(--rg-panel-bg)] text-[var(--rg-text-primary)] [box-shadow:var(--rg-shadow)]`,e.position===`top`&&`bottom-full mb-2.5`,e.position===`bottom`&&`top-full mt-2.5`,e.position===`left`&&`right-full mr-2.5`,e.position===`right`&&`left-full ml-2.5`,r()&&`animate-tooltip-fade-in`),s=o(),c=e.textContent;return a!==i.e&&V(t,i.e=a),i.t=$e(t,s,i.t),c!==i.a&&(n.data=i.a=c),i},{e:void 0,t:void 0,a:void 0}),t}})}})),jb,Mb,Nb=n((()=>{G(),R(),Ab(),jb=z(`<div><button data-react-grab-ignore-events type=button>`),Mb=e=>(()=>{var t=jb(),n=t.firstChild;H(n,`mouseleave`,e.onMouseLeave),H(n,`mouseenter`,e.onMouseEnter),H(n,`contextmenu`,t=>e.onContextMenu?.(t)),H(n,`click`,e.onClick,!0);var r=e.ref;return typeof r==`function`?tt(r,n):e.ref=n,W(n,()=>e.icon),W(t,j(M,{get when(){return e.tooltip},children:t=>j(kb,{get visible(){return!!e.tooltipVisible},get position(){return e.tooltipPosition??`top`},get textContent(){return t()}})}),null),u(r=>{var i=e.wrapperClass,a=e.isToggle?``:void 0,o=e.actionId,s=e.label,c=!!e.isActive,l=e.class;return i!==r.e&&V(t,r.e=i),a!==r.t&&B(n,`data-react-grab-toolbar-toggle`,r.t=a),o!==r.a&&B(n,`data-react-grab-toolbar-action`,r.a=o),s!==r.o&&B(n,`aria-label`,r.o=s),c!==r.i&&B(n,`aria-pressed`,r.i=c),l!==r.n&&V(n,r.n=l),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})(),Ye([`click`])})),Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb=n((()=>{q(),Jv(),Dm(),Pb=e=>e===`top`||e===`bottom`,Fb=e=>{let t=Pb(e);return{width:t?30:16,height:t?16:30}},Ib=(e,t,n,r)=>{let i=qv(),a=i.width,o=i.height,s=i.offsetLeft+16,c=Math.max(s,i.offsetLeft+a-n-16),l=i.offsetTop+16,u=Math.max(l,i.offsetTop+o-r-16);if(Pb(e)){let r=Math.max(0,a-n-32);return{x:Math.min(c,Math.max(s,i.offsetLeft+16+r*t)),y:e===`top`?l:u}}let d=Math.max(0,o-r-32),f=Math.min(u,Math.max(l,i.offsetTop+16+d*t));return{x:e===`left`?s:c,y:f}},Lb=(e,t,n,r,i)=>{let a=qv(),o=a.width,s=a.height;if(Pb(e)){let e=o-r-32;return e<=0?kn:Math.max(0,Math.min(1,(t-a.offsetLeft-16)/e))}let c=s-i-32;return c<=0?kn:Math.max(0,Math.min(1,(n-a.offsetTop-16)/c))},Rb=(e,t,n,r,i)=>{let a=qv(),o=a.width,s=a.height,{width:c,height:l}=n,u;if(Pb(t)){let n=(c-r)/2;u={x:Em(e.x-n,a.offsetLeft+16,a.offsetLeft+o-c-16),y:t===`top`?a.offsetTop+16:a.offsetTop+s-l-16}}else{let n=(l-i)/2,r=Em(e.y-n,a.offsetTop+16,a.offsetTop+s-l-16);u={x:t===`left`?a.offsetLeft+16:a.offsetLeft+o-c-16,y:r}}let d=Lb(t,u.x,u.y,c,l);return{position:u,ratio:d}},zb=(e,t,n,r)=>{let i=qv(),{width:a,height:o}=n,{width:s,height:c}=r;switch(e){case`top`:case`bottom`:{let n=(a-s)/2;return{x:Em(t.x+n,i.offsetLeft,i.offsetLeft+i.width-s),y:e===`top`?i.offsetTop:i.offsetTop+i.height-c}}case`left`:case`right`:{let n=(o-c)/2,r=Em(t.y+n,i.offsetTop,i.offsetTop+i.height-c);return{x:e===`left`?i.offsetLeft:i.offsetLeft+i.width-s,y:r}}}},Bb=(e,t,n,r,i,a)=>{let o=qv(),s=o.width,c=o.height,l=e+i*150,u=t+a*150,d=u-o.offsetTop+r/2,f=o.offsetTop+c-u-r/2,p=l-o.offsetLeft+n/2,m=o.offsetLeft+s-l-n/2,h=Math.min(d,f,p,m),g=e=>Em(e,o.offsetLeft+16,o.offsetLeft+s-n-16),_=e=>Em(e,o.offsetTop+16,o.offsetTop+c-r-16);return h===d?{edge:`top`,x:g(l),y:o.offsetTop+16}:h===p?{edge:`left`,x:o.offsetLeft+16,y:_(u)}:h===m?{edge:`right`,x:o.offsetLeft+s-n-16,y:_(u)}:{edge:`bottom`,x:g(l),y:o.offsetTop+c-r-16}}})),Hb,Ub,Wb=n((()=>{G(),Hb=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M9.29289 16.7071C8.90237 16.3166 8.90237 15.6834 9.29289 15.2929L12.5858 12L9.29289 8.70711C8.90237 8.31658 8.90237 7.68342 9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C14.8946 11.4804 15 11.7348 15 12C15 12.2652 14.8946 12.5196 14.7071 12.7071L10.7071 16.7071C10.3166 17.0976 9.68342 17.0976 9.29289 16.7071Z">`),Ub=e=>{let t=()=>e.size??14;return(()=>{var n=Hb();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),Gb,Kb,qb=n((()=>{G(),Qv(),Vb(),Wb(),Gb=z(`<div data-react-grab-toolbar-panel><div><div><div></div></div></div><button data-react-grab-ignore-events data-react-grab-toolbar-collapse type=button class="group contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox">`),Kb=e=>{let t=()=>e.snapEdge??`bottom`,n=()=>!Pb(t()),r=()=>e.isCollapsed?`duration-140`:`duration-220`,i=()=>n()?`transition-[grid-template-rows] ${r()} ease-drawer`:`transition-[grid-template-columns] ${r()} ease-drawer`,a=()=>n()?`min-h-0`:`min-w-0`,o=()=>e.isCollapsed?`${{top:`rounded-t-none rounded-b-[10px]`,bottom:`rounded-b-none rounded-t-[10px]`,left:`rounded-l-none rounded-r-[10px]`,right:`rounded-r-none rounded-l-[10px]`}[t()]} ${n()?`px-0.25 py-2`:`px-2 py-0.25`}`:``,s=()=>{let n=e.isCollapsed;switch(t()){case`top`:return n?`rotate-90`:`-rotate-90`;case`bottom`:return n?`-rotate-90`:`rotate-90`;case`left`:return n?`rotate-0`:`rotate-180`;case`right`:return n?`rotate-180`:`rotate-0`;default:return`-rotate-90`}},c=()=>{if(e.isChevronPressed)return n()?`scale(0.97, 1)`:`scale(1, 0.97)`},l=()=>e.isChevronPressed?`transition-[padding,border-radius,transform] duration-60 ease-[cubic-bezier(0,0,0.2,1)]`:`transition-[padding,border-radius,transform] ${r()} ease-drawer`;return(()=>{var t=Gb(),r=t.firstChild,d=r.firstChild,f=d.firstChild,p=r.nextSibling;return H(t,`click`,e.onPanelClick,!0),H(t,`animationend`,e.onAnimationEnd),W(f,()=>e.actionButtons),H(p,`pointercancel`,e.onCollapsePointerLeave),H(p,`pointerleave`,e.onCollapsePointerLeave),H(p,`pointerup`,e.onCollapsePointerUp,!0),H(p,`pointerdown`,e.onCollapsePointerDown),H(p,`click`,e.onCollapseClick,!0),W(p,j(Ub,{size:18,get class(){return $(`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)] transition-[transform,color] duration-150 ease-drawer -m-0.5`,s())}})),u(s=>{var u=$(`flex items-center justify-center rounded-[13px] antialiased relative overflow-visible [font-synthesis:none]`,l(),n()&&`flex-col`,`bg-[var(--rg-panel-bg)] [box-shadow:var(--rg-shadow)]`,!e.isCollapsed&&(n()?`px-1.5 gap-0 py-2`:`py-1.5 gap-0 px-2`),o(),e.isShaking&&(n()?`animate-shake-vertical`:`animate-shake`)),m=e.transformOrigin,h=c(),g=$(`grid relative overflow-visible`,i(),e.isCollapsed?n()?`grid-rows-[0fr] pointer-events-none`:`grid-cols-[0fr] pointer-events-none`:n()?`grid-rows-[1fr]`:`grid-cols-[1fr]`),_=$(`flex`,n()?`flex-col items-center min-h-0`:`items-center min-w-0`,e.isCollapsed?`opacity-0`:`opacity-100`,e.isCollapsed?`transition-opacity duration-100 ease-drawer`:`transition-opacity duration-180 ease-drawer delay-[80ms]`),v=$(`relative overflow-visible flex`,n()?`flex-col items-center`:`items-center`,a()),y=e.isCollapsed?`Expand toolbar`:`Collapse toolbar`,b=!e.isCollapsed;return u!==s.e&&V(t,s.e=u),m!==s.t&&U(t,`transform-origin`,s.t=m),h!==s.a&&U(t,`transform`,s.a=h),g!==s.o&&V(r,s.o=g),_!==s.i&&V(d,s.i=_),v!==s.n&&V(f,s.n=v),y!==s.s&&B(p,`aria-label`,s.s=y),b!==s.h&&B(p,`aria-expanded`,s.h=b),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),t})()},Ye([`click`,`pointerup`])})),Jb,Yb=n((()=>{R(),q(),Uu(),wa(),Vb(),Jb=e=>{let[t,n]=c(!1),[r,i]=c(!1),[a,o]=c(!1),[s,l]=c({x:0,y:0}),u={x:0,y:0},d={x:0,y:0,time:0},f={x:0,y:0},p=!1,m,h,g=null,_=()=>{g?.abort(),g=null},v=()=>{m!==void 0&&(Vu(m),m=void 0)},b=t=>{if(!a()){if(Math.hypot(t.clientX-f.x,t.clientY-f.y)<=5)return;o(!0),e.onDragStart()}let n=performance.now(),r=n-d.time;r>0&&l({x:(t.clientX-d.x)/r,y:(t.clientY-d.y)/r}),d={x:t.clientX,y:t.clientY,time:n};let i=t.clientX-u.x,s=t.clientY-u.y;e.onPositionUpdate({x:i,y:s})},x=()=>{_();let t=a();if(n(!1),!t)return;p=!0;let r=e.getContainerRef(),o=r?.getBoundingClientRect();if(!o)return;let c=s(),l=Bb(o.left,o.top,o.width,o.height,c.x,c.y),u=Lb(l.edge,l.x,l.y,o.width,o.height);e.onSnapEdgeChange(l.edge,u),i(!0),v(),m=Bu(()=>{let t=r?.getBoundingClientRect(),n=t?{width:t.width,height:t.height}:e.getExpandedDimensions();m=Bu(()=>{m=void 0;let t=Ib(l.edge,u,n.width,n.height);e.onSnapComplete({edge:l.edge,ratio:u,position:t,expandedDimensions:n}),h=setTimeout(()=>{i(!1),e.onSnapAnimationEnd?.()},300)})})},S=Ca(t=>{if(t.button!==0||e.isCollapsed()||r())return;let i=e.getContainerRef()?.getBoundingClientRect();if(!i)return;f={x:t.clientX,y:t.clientY},u={x:t.clientX-i.left,y:t.clientY-i.top},n(!0),o(!1),l({x:0,y:0}),d={x:t.clientX,y:t.clientY,time:performance.now()},_(),g=new AbortController;let{signal:a}=g;window.addEventListener(`pointermove`,b,{signal:a}),window.addEventListener(`pointerup`,x,{signal:a}),window.addEventListener(`pointercancel`,x,{signal:a})});return y(()=>{_(),v(),clearTimeout(h)}),{isDragging:t,isSnapping:r,handlePointerDown:S,createDragAwareHandler:e=>t=>{if(t.stopImmediatePropagation(),p){p=!1;return}e()}}}})),Xb,Zb,Qb=n((()=>{Xb=360,Zb=(e,t)=>{let n=t-e;return e+(n-Math.round(n/Xb)*Xb)}})),$b,ex,tx=n((()=>{G(),R(),Qv(),Tb(),Nb(),q(),qb(),Jv(),wa(),Uu(),Vb(),Yb(),Qb(),$b=z(`<div data-react-grab-ignore-events data-react-grab-toolbar>`),ex=e=>{let t,n,r=null,i=Ph(),[a,o]=c(!1),[s,l]=c(!1),[f,p]=c(!1),[m,h]=c(i?.edge??`bottom`),[g,b]=c(i?.ratio??.5),[x,S]=c({x:0,y:0}),[C,w]=c(!1),[T,ee]=c(!1),[E,te]=c(!1),[D,O]=c(!1),[k,ne]=c(0),[re,ie]=c(null),ae=()=>{r?.(),r=null,e.isActive||l_()},A=Jb({getContainerRef:()=>t,isCollapsed:s,getExpandedDimensions:()=>he,onDragStart:()=>{ie(null),r&&ae()},onPositionUpdate:e=>S(e),onSnapEdgeChange:(e,t)=>{ve(m(),e),h(e),b(t)},onSnapComplete:e=>{he=e.expandedDimensions,S(e.position),F({edge:e.edge,ratio:e.ratio,collapsed:s(),enabled:!s()})}}),oe=()=>!Pb(m()),se=()=>oe()?`mb-1.5`:`mr-1.5`,ce=()=>e.defaultActionId??`copy`,le=()=>e.defaultActionLabel??`Copy`,ue=()=>!!e.isActive&&(e.activeActionId??`copy`)===ce(),de=t=>re()===t&&!e.isActive&&!s()&&!A.isDragging()&&!A.isSnapping()&&!e.isContextMenuOpen,fe=()=>{switch(m()){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`;default:return`top`}},pe=e=>{e.stopImmediatePropagation()},me=t=>({onMouseEnter:e=>{A.isDragging()||(ie(t()),r||(r=Z_(),c_(e.clientX,e.clientY)))},onMouseLeave:()=>{let n=t();ie(e=>e===n?null:e),!e.isActive&&!e.isContextMenuOpen&&ae()}});d(_(()=>e.shakeCount,t=>{t&&!e.enabled&&w(!0)})),d(_(()=>[e.isActive,e.isContextMenuOpen],([e,t])=>{!e&&!t&&r&&ae()})),d(_(()=>ue(),e=>{if(!e){ne(e=>Zb(e,0));return}let t=null,r=0,i=0,a=()=>{if(t=null,!n)return;let e=n.getBoundingClientRect(),a=e.left+e.width/2,o=e.top+e.height/2,s=r-a,c=i-o;if(Math.hypot(s,c)<4)return;let l=Math.atan2(c,s)*180/Math.PI- -45;ne(e=>Zb(e,l))},o=Ca(e=>{r=e.clientX,i=e.clientY,t===null&&(t=Bu(a))});window.addEventListener(`pointermove`,o,{passive:!0}),y(()=>{window.removeEventListener(`pointermove`,o),t!==null&&Vu(t)})}));let he={width:38,height:28},[ge,_e]=c(Fb(m())),ve=(e,t)=>{Pb(e)!==Pb(t)&&_e(Fb(t))},ye=(e,n)=>{let r=t?.getBoundingClientRect(),i=Fb(n);return Rb(e,n,he,r?.width??i.width,r?.height??i.height)},be=()=>{S(Ib(m(),g(),he.width,he.height))},Se=A.createDragAwareHandler(()=>e.onToggle?.()),Ce=()=>$(`relative contain-layout flex items-center justify-center`,se()),M=e=>e?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]`,N=A.createDragAwareHandler(()=>{if(s()){ke();return}let e=t?.getBoundingClientRect(),n=g();e&&(he={width:e.width,height:e.height}),ee(!0),l(!0),F({edge:m(),ratio:n,collapsed:!0,enabled:!1}),Oe()}),we=()=>zb(m(),x(),he,ge()),P,Te,Ee=null,De=()=>{let e=t?.getBoundingClientRect();!e||e.width===0||e.height===0||(s()?_e({width:e.width,height:e.height}):(he={width:e.width,height:e.height},Ee={width:e.width,height:e.height}))},Oe=()=>{Te&&clearTimeout(Te),Te=setTimeout(()=>{ee(!1),De()},260)},ke=()=>{let{position:e,ratio:t}=ye(I(),m());S(e),b(t),ee(!0),l(!1),F({edge:m(),ratio:t,collapsed:!1,enabled:!0}),Oe()},Ae=(e,t)=>{if(!(e===0||t===0)&&!(A.isDragging()||A.isSnapping())&&!T()){if(s()){let n=ge();if(n.width===e&&n.height===t)return;_e({width:e,height:t});return}Ee&&Ee.width===e&&Ee.height===t||(Ee={width:e,height:t},he={width:e,height:t},S(Ib(m(),g(),e,t)))}},je=null,Me=()=>{A.isDragging()||A.isSnapping()||je===null&&(je=Bu(()=>{je=null,be()}))},Ne=()=>{A.isDragging()||(p(!0),be(),P&&clearTimeout(P),P=setTimeout(()=>{p(!1);let e=Lb(m(),x().x,x().y,he.width,he.height);b(e),F({edge:m(),ratio:e,collapsed:s(),enabled:!s()})},500))},F=t=>{let n={...t,defaultAction:ce()};Fh(n),e.onStateChange?.(n)};v(()=>{t&&e.onContainerRef?.(t);let n=t?.getBoundingClientRect(),r=qv(),a=!!(n&&n.width>0&&n.height>0);i?(a&&n&&(he={width:n.width,height:n.height}),l(i.collapsed),S(Ib(i.edge,i.ratio,he.width,he.height))):a&&n?(he={width:n.width,height:n.height},S({x:r.offsetLeft+(r.width-n.width)/2,y:r.offsetTop+r.height-n.height-16}),b(kn)):(S(Ib(`bottom`,kn,he.width,he.height)),b(kn)),e.onSubscribeToStateChanges&&y(e.onSubscribeToStateChanges(e=>{if(T()||!t?.getBoundingClientRect())return;let n=s()!==e.collapsed;if(ve(m(),e.edge),h(e.edge),n&&!e.collapsed){let t=I();ee(!0),l(e.collapsed);let{position:n,ratio:r}=ye(t,e.edge);S(n),b(r),Oe()}else n&&(ee(!0),Oe()),l(e.collapsed),S(Ib(e.edge,e.ratio,he.width,he.height)),b(e.ratio)})),window.addEventListener(`resize`,Ne),window.visualViewport?.addEventListener(`resize`,Ne),window.visualViewport?.addEventListener(`scroll`,Ne);let c=xa();if(c&&(window.addEventListener(`scroll`,Me,{passive:!0,capture:!0}),typeof ResizeObserver<`u`)){let e=new ResizeObserver(Me);e.observe(c),y(()=>e.disconnect())}if(typeof ResizeObserver<`u`&&t){let e=new ResizeObserver(e=>{let n=e[0];if(!n)return;let r=n.borderBoxSize?.[0],i,a;if(r)i=r.inlineSize,a=r.blockSize;else{let e=t?.getBoundingClientRect();if(!e)return;i=e.width,a=e.height}Ae(i,a)});e.observe(t),y(()=>e.disconnect())}let u=setTimeout(()=>{o(!0)},500);y(()=>{clearTimeout(u)})}),y(()=>{window.removeEventListener(`resize`,Ne),window.visualViewport?.removeEventListener(`resize`,Ne),window.visualViewport?.removeEventListener(`scroll`,Ne),window.removeEventListener(`scroll`,Me,{capture:!0}),je!==null&&Vu(je),clearTimeout(P),clearTimeout(Te),r&&ae()});let I=()=>s()?we():x(),Pe=()=>s()?`cursor-pointer`:A.isDragging()?`cursor-grabbing`:`cursor-grab`,Fe=()=>D()||!!e.isContextMenuOpen||A.isDragging()||A.isSnapping()||T()||E(),L=()=>!!e.isActive&&!Fe(),Ie=()=>f()||A.isDragging()?``:A.isSnapping()?`transition-[transform,opacity] duration-300 ease-out`:T()?`transition-[transform,opacity] ${s()?`duration-140`:`duration-220`} ease-drawer`:`transition-[transform,opacity] duration-400 ease-drawer`,Le=()=>{switch(m()){case`top`:return`center top`;case`bottom`:return`center bottom`;case`left`:return`left center`;case`right`:return`right center`;default:return`center center`}};return(()=>{var r=$b();r.addEventListener(`mouseleave`,()=>{O(!1),e.onSelectHoverChange?.(!1)}),r.addEventListener(`mouseenter`,()=>{O(!0),s()||e.onSelectHoverChange?.(!0)}),H(r,`mousedown`,pe),H(r,`pointerdown`,e=>{pe(e),A.handlePointerDown(e)});var i=t;return typeof i==`function`?tt(i,r):t=r,W(r,j(Kb,{get isCollapsed(){return s()},get snapEdge(){return m()},get isShaking(){return C()},get isChevronPressed(){return E()},get transformOrigin(){return Le()},onAnimationEnd:()=>w(!1),onCollapseClick:N,onCollapsePointerDown:()=>te(!0),onCollapsePointerUp:()=>te(!1),onCollapsePointerLeave:()=>te(!1),onPanelClick:e=>{s()&&(e.stopPropagation(),ke())},get actionButtons(){return j(Mb,xe({get actionId(){return ce()},isToggle:!0,ref:e=>n=e,get label(){return vt(()=>!!ue())()?`Stop selecting element`:`${le()} element`},get isActive(){return ue()},class:`group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox`,get wrapperClass(){return Ce()},onClick:Se,onContextMenu:t=>{t.preventDefault(),t.stopPropagation(),ie(null),e.onToggleToolbarMenu?.()}},()=>me(ce),{get icon(){return j(wb,{size:14,get rotationDeg(){return k()},get class(){return M(ue())}})},get tooltipVisible(){return de(ce())},get tooltipPosition(){return fe()},get tooltip(){return le()}}))}})),u(e=>{var t=$(`fixed left-0 top-0 font-sans text-[13px] antialiased select-none`,Pe(),Ie(),a()?`pointer-events-auto`:`pointer-events-none`),n=String(cn),i=`translate(${I().x}px, ${I().y}px) scale(${L()?.97:1})`,o=Le(),s=a()?L()?.55:1:0;return t!==e.e&&V(r,e.e=t),n!==e.t&&U(r,`z-index`,e.t=n),i!==e.a&&U(r,`transform`,e.a=i),o!==e.o&&U(r,`transform-origin`,e.o=o),s!==e.i&&U(r,`opacity`,e.i=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})()}})),nx,rx,ix=n((()=>{R(),nx=w(),rx=()=>{let e=T(nx);if(!e)throw Error(`Menu subcomponents must be rendered inside <Menu.Provider>`);return e}})),ax,ox=n((()=>{G(),ix(),ax=e=>j(nx.Provider,{get value(){return e.store},get children(){return e.children}})})),sx,cx=n((()=>{G(),Qv(),Ey(),sx=e=>j(Ty,{get class(){return $(`flex flex-col w-fit h-fit`,e.class)},get style(){return e.style},get children(){return e.children}})})),lx,ux,dx=n((()=>{G(),Qv(),ix(),lx=z(`<div role=menu aria-orientation=vertical><div aria-hidden=true class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity,border-radius] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),ux=e=>{let t=rx();return(()=>{var n=lx(),r=n.firstChild;n.$$pointermove=()=>t.notePointerMove(),tt(n=>{t.setHighlightContainer(n),e.ref?.(n)},n);var i=t.setHighlightRail;return typeof i==`function`?tt(i,r):t.setHighlightRail=r,W(n,()=>e.children,null),u(r=>{var i=e.label,a=t.keyboardNavigation?t.activeDescendantId():void 0,o=t.keyboardNavigation?-1:void 0,s=$(`relative flex flex-col`,e.class);return i!==r.e&&B(n,`aria-label`,r.e=i),a!==r.t&&B(n,`aria-activedescendant`,r.t=a),o!==r.a&&B(n,`tabindex`,r.a=o),s!==r.o&&V(n,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()},Ye([`pointermove`])})),fx,px,mx=n((()=>{G(),R(),Qv(),ix(),fx=z(`<button data-react-grab-ignore-events type=button>`),px=e=>{let t=rx(),n=t.createItemId(),r=e.value,i=()=>e.role??`menuitem`,a=()=>!e.disabled,o=()=>t.activeValue()===r,s;return v(()=>{s&&(t.registerItem({value:r,domId:n,element:s,isEnabled:a,onSelect:()=>e.onSelect?.()}),y(()=>t.unregisterItem(r)))}),(()=>{var c=fx();c.$$click=t=>{t.stopPropagation(),a()&&e.onSelect?.()},c.addEventListener(`pointerleave`,()=>{t.clearActiveOnPointerLeave&&t.setActiveItem(null)}),c.addEventListener(`pointerenter`,()=>{a()&&t.canActivateOnHover()&&t.setActiveItem(r)}),c.$$pointerdown=e=>e.stopPropagation();var l=s;return typeof l==`function`?tt(l,c):s=c,B(c,`id`,n),W(c,()=>e.children),u(n=>{var a=e.dataId??r,s=i(),l=i()===`menuitemradio`?!!e.checked:void 0,u=!!e.disabled,d=t.keyboardNavigation?o()?0:-1:void 0,f=e.disabled,p=$(`relative z-1 contain-layout flex items-center justify-between w-full px-2 py-1 cursor-pointer text-left border-none bg-transparent disabled:opacity-40 disabled:cursor-default`,e.class);return a!==n.e&&B(c,`data-react-grab-menu-item`,n.e=a),s!==n.t&&B(c,`role`,n.t=s),l!==n.a&&B(c,`aria-checked`,n.a=l),u!==n.o&&B(c,`aria-disabled`,n.o=u),d!==n.i&&B(c,`tabindex`,n.i=d),f!==n.n&&(c.disabled=n.n=f),p!==n.s&&V(c,n.s=p),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),c})()},Ye([`pointerdown`,`click`])})),hx,gx,_x=n((()=>{G(),Qv(),hx=z(`<span> `),gx=e=>(()=>{var t=hx(),n=t.firstChild;return u(r=>{var i=$(`text-[13px] leading-4 font-sans font-medium`,e.class),a=e.textContent;return i!==r.e&&V(t,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t})()})),vx,yx,bx=n((()=>{G(),vx=z(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor><path fill-rule=evenodd clip-rule=evenodd d="M6.5 5C5.67157 5 5 5.67157 5 6.5C5 7.32843 5.67157 8 6.5 8H8V6.5C8 5.67157 7.32843 5 6.5 5ZM10 8V6.5C10 4.567 8.433 3 6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10H8V14H6.5C4.567 14 3 15.567 3 17.5C3 19.433 4.567 21 6.5 21C8.433 21 10 19.433 10 17.5V16H14V17.5C14 19.433 15.567 21 17.5 21C19.433 21 21 19.433 21 17.5C21 15.567 19.433 14 17.5 14H16V10H17.5C19.433 10 21 8.433 21 6.5C21 4.567 19.433 3 17.5 3C15.567 3 14 4.567 14 6.5V8H10ZM10 10V14H14V10H10ZM16 8H17.5C18.3284 8 19 7.32843 19 6.5C19 5.67157 18.3284 5 17.5 5C16.6716 5 16 5.67157 16 6.5V8ZM16 16V17.5C16 18.3284 16.6716 19 17.5 19C18.3284 19 19 18.3284 19 17.5C19 16.6716 18.3284 16 17.5 16H16ZM8 16H6.5C5.67157 16 5 16.6716 5 17.5C5 18.3284 5.67157 19 6.5 19C7.32843 19 8 18.3284 8 17.5V16Z">`),yx=e=>{let t=()=>e.size??11;return(()=>{var n=vx();return u(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&B(n,`width`,r.e=i),a!==r.t&&B(n,`height`,r.t=a),o!==r.a&&B(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()}})),xx,Sx,Cx,wx=n((()=>{G(),R(),$m(),bx(),Py(),xx=z(`<span> `),Sx=z(`<span style=display:inline-flex;align-items:center;gap:2px>`),Cx=e=>{let t=()=>e.shortcut===`Enter`,n=()=>e.modifier!==!1,r=Qm();return(()=>{var i=Sx();return W(i,j(M,{get when(){return t()},get children(){return j(Ny,{size:8})}}),null),W(i,j(M,{get when(){return!t()},get children(){return j(M,{get when(){return n()},get fallback(){return(()=>{var t=xx(),n=t.firstChild;return u(()=>n.data=e.shortcut),t})()},get children(){return j(M,{when:r,get fallback(){return(()=>{var t=xx(),n=t.firstChild;return u(()=>n.data=`Ctrl+${e.shortcut}`),t})()},get children(){return[j(yx,{size:9}),(()=>{var t=xx(),n=t.firstChild;return u(()=>n.data=e.shortcut),t})()]}})}})}}),null),u(()=>V(i,e.class)),i})()}})),Tx,Ex=n((()=>{G(),Qv(),wx(),Tx=e=>j(Cx,{get shortcut(){return e.shortcut},get modifier(){return e.modifier},get class(){return $(`text-[11px] font-sans text-[var(--rg-text-secondary)] ml-4`,e.class)}})})),Dx,Ox,kx,Ax,jx,Mx,Nx=n((()=>{R(),Dx=`0`,Ox=`1`,kx=({hiddenOpacity:e=Dx,visibleOpacity:t=Ox}={})=>{let n,r,i,a=e=>{r&&(r.style.opacity=t,r.style.top=`${e.offsetTop}px`,r.style.left=`${e.offsetLeft}px`,r.style.width=`${e.offsetWidth}px`,r.style.height=`${e.offsetHeight}px`)},o=typeof ResizeObserver>`u`?void 0:new ResizeObserver(()=>{i&&a(i)});y(()=>o?.disconnect());let s=()=>{i=void 0,o?.disconnect(),r&&(r.style.opacity=e)};return{containerRef:e=>{n=e},followerRef:e=>{r=e},followElement:e=>{if(!(!r||!n)){if(!e){s();return}i=e,a(e),o?.disconnect(),o?.observe(e),o?.observe(n)}},hideFollower:s}},Ax=(e,t)=>e!==t&&e instanceof HTMLElement,jx=(e,t)=>{let n=[];for(let r of Array.from(e.children))Ax(r,t)&&n.push(r);return n},Mx=(e={})=>{let{topCornerRadiusPx:t,bottomCornerRadiusPx:n,cornerShape:r}=e,i=t!==void 0||n!==void 0,a,o=!1,s=e=>{if(!a||!i)return;let s=e.parentElement;if(!s)return;let c=jx(s,a),l=c[0]===e,u=c[c.length-1]===e,d=l&&t!==void 0?`${t}px`:`0px`,f=u&&n!==void 0?`${n}px`:`0px`;a.style.borderTopLeftRadius=d,a.style.borderTopRightRadius=d,a.style.borderBottomLeftRadius=f,a.style.borderBottomRightRadius=f,r&&!o&&(a.style.setProperty(`corner-shape`,r),o=!0)},{containerRef:c,followerRef:l,followElement:u,hideFollower:d}=kx();return{containerRef:c,highlightRef:e=>{a=e,o=!1,l(e)},updateHighlight:e=>{u(e),e&&s(e)},clearHighlight:d}}})),Px,Fx=n((()=>{R(),Nx(),Px=(e={})=>{let t=new Map,n=[],r=`react-grab-menu-${Math.random().toString(36).slice(2,8)}`,i=0,a=!1,o=e.value!==void 0,[s,l]=c(null),[u,p]=c(0),m=f(()=>o?e.value?.()??null:s()),h=t=>{if(o){e.onValueChange?.(t);return}l(t)},g=Mx(e.highlight??{});d(_([m,u],([e])=>{if(e===null){g.clearHighlight();return}let n=t.get(e);n?g.updateHighlight(n.element):g.clearHighlight()}));let v=()=>n.filter(e=>t.get(e)?.isEnabled()),y=()=>{let e=v();e.length>0&&h(e[0])},b=()=>{let e=v();e.length>0&&h(e[e.length-1])},x=()=>{let e=v();if(e.length===0)return;let t=e.indexOf(m()??``);h(e[t===-1?0:(t+1)%e.length])},S=()=>{let e=v();if(e.length===0)return;let t=e.indexOf(m()??``);h(e[t===-1?e.length-1:(t-1+e.length)%e.length])},C=f(()=>{u();let e=m();if(e!==null)return t.get(e)?.domId});return{keyboardNavigation:e.keyboardNavigation??!1,clearActiveOnPointerLeave:e.clearActiveOnPointerLeave??!1,activeValue:m,activeDescendantId:C,setActiveItem:h,createItemId:()=>`${r}-item-${i++}`,canActivateOnHover:()=>!(e.requirePointerMove??!1)||a,notePointerMove:()=>{a=!0},resetPointerMove:()=>{a=!1},registerItem:e=>{t.set(e.value,e),n.includes(e.value)||n.push(e.value),p(e=>e+1)},unregisterItem:e=>{t.delete(e);let r=n.indexOf(e);r!==-1&&n.splice(r,1),o||l(t=>t===e?null:t),p(e=>e+1)},getActiveItem:()=>{let e=m();return e===null?void 0:t.get(e)},selectFirst:y,selectLast:b,selectNext:x,selectPrevious:S,setHighlightContainer:g.containerRef,setHighlightRail:g.highlightRef}}})),Ix,Lx=n((()=>{ox(),cx(),dx(),mx(),_x(),Ex(),Fx(),Ix={Provider:ax,Panel:sx,List:ux,Item:px,Label:gx,Shortcut:Tx}})),Rx,zx=n((()=>{Rx=e=>{e.type===`contextmenu`&&e.preventDefault(),e.stopImmediatePropagation()}})),Bx,Vx=n((()=>{wa(),sh(),oa(),Uu(),Bx=e=>{let t=Ca(t=>{e.isOpen()&&(e.shouldIgnoreKeyboardEvent?.(t)||e.shouldIgnoreInputEvents&&ra(t)||t.code===`Escape`&&(t.preventDefault(),t.stopImmediatePropagation(),e.onDismiss(`keyboard`)))}),n=Ca(t=>{e.isOpen()&&(oh(t,`data-react-grab-ignore-events`)||e.shouldIgnoreRightClick&&t instanceof MouseEvent&&t.button===2||e.onDismiss(`pointer`))}),r=Bu(()=>{window.addEventListener(`mousedown`,n,{capture:!0}),window.addEventListener(`touchstart`,n,{capture:!0})});return window.addEventListener(`keydown`,t,{capture:!0}),()=>{Vu(r),window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`mousedown`,n,{capture:!0}),window.removeEventListener(`touchstart`,n,{capture:!0})}}})),Hx,Ux,Wx,Gx=n((()=>{G(),R(),q(),ly(),_y(),by(),Lx(),ey(),cv(),Uu(),zx(),Vx(),wa(),Hx=z(`<div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2">`),Ux=z(`<div data-react-grab-ignore-events data-react-grab-context-menu class="fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none"style=pointer-events:auto>`),Wx=e=>{let t,n,r=null,i=Px({keyboardNavigation:!0,highlight:{bottomCornerRadiusPx:14,cornerShape:Mn}}),[a,o]=c(0),[s,l]=c(0),p=f(()=>e.position!==null),m=f(()=>$v({tagName:e.tagName,componentName:e.componentName})),h=()=>{if(t){let e=t.getBoundingClientRect();o(e.width),l(e.height)}};d(()=>{p()&&Bu(h)});let g=f(()=>{let t=e.selectionBounds,n=e.position,r=a(),i=s();if(r===0||i===0||!t||!n)return{left:Fn.left,top:Fn.top,arrowLeft:0,arrowPosition:`bottom`};let o=n.x??t.x+t.width/2,c=Math.max(4,Math.min(o-r/2,window.innerWidth-r-4)),l=Math.max(8,Math.min(o-c,r-8)),u=t.y+t.height+8+4,d=t.y-i-8-4,f=u+i>window.innerHeight,p=d>=0,m=f&&p,h=m?d:u,g=m?`top`:`bottom`;if(f&&!p){let e=n.y??t.y+t.height/2;h=Math.max(4,Math.min(e+4,window.innerHeight-i-4)),g=`top`}return{left:c,top:h,arrowLeft:l,arrowPosition:g}}),b=f(()=>{let t=e.actions??[],n=e.actionContext;return t.map(e=>({id:e.id,label:e.label,action:()=>{n&&lv(e,n)},enabled:sv(e,n),shortcut:e.shortcut,shortcutModifier:e.shortcutModifier}))});d(_(p,e=>{if(e){let e=t?.getRootNode(),i=e instanceof ShadowRoot?e.activeElement:null,a=document.activeElement;r=a instanceof HTMLElement&&i===null&&!(t instanceof Element&&t.contains(a))?a:null,n?.focus({preventScroll:!0});return}i.setActiveItem(null);let a=r;r=null,!(!(a instanceof HTMLElement)||!document.contains(a))&&Bu(()=>{let e=document.activeElement;(e===null||e===document.body)&&a.focus({preventScroll:!0})})})),v(()=>{h();let t=t=>{if(!p())return;let n=t.key===`ArrowDown`,r=t.key===`ArrowUp`,a=t.key===`Home`,o=t.key===`End`,s=t.key===`Tab`;if(n||r||a||o||s){t.preventDefault(),t.stopPropagation();let e=n||s&&!t.shiftKey;a?i.selectFirst():o?i.selectLast():e?i.selectNext():i.selectPrevious();return}let c=e.actions??[],l=e.actionContext,u=n=>{l&&lv(n,l)&&(t.preventDefault(),t.stopPropagation(),e.onHide())};if(t.key===`Enter`){let e=i.getActiveItem();if(e){t.preventDefault(),t.stopPropagation(),e.isEnabled()&&e.onSelect();return}}let d=nv(c,t,{includeModifierShortcuts:!0});d&&u(d)},n=Bx({isOpen:p,onDismiss:e.onDismiss,shouldIgnoreRightClick:!0}),r=Ca(t);window.addEventListener(`keydown`,r,{capture:!0}),y(()=>{n(),window.removeEventListener(`keydown`,r,{capture:!0})})});let x=f(()=>{let{tagName:e,componentName:t}=m();return`Actions for ${t?`${t}.${e}`:e}`});return j(M,{get when(){return p()},get children(){var r=Ux();H(r,`contextmenu`,Rx,!0),H(r,`click`,Rx,!0),H(r,`mousedown`,Rx,!0),H(r,`pointerdown`,Rx,!0);var a=t;return typeof a==`function`?tt(a,r):t=r,U(r,`z-index`,`${cn}`),W(r,j(cy,{get position(){return g().arrowPosition},leftPercent:0,get leftOffsetPx(){return g().arrowLeft}}),null),W(r,j(Ix.Panel,{class:`justify-center items-start min-w-[100px]`,get children(){return[(()=>{var t=Hx();return W(t,j(gy,{get tagName(){return m().tagName},get componentName(){return m().componentName},get isClickable(){return e.hasFilePath},onClick:t=>{if(t.stopPropagation(),e.hasFilePath&&e.actionContext){let t=e.actions?.find(e=>e.id===`open`);t&&lv(t,e.actionContext)}},shrink:!0})),t})(),j(yy,{get children(){return j(Ix.Provider,{store:i,get children(){return j(Ix.List,{ref:e=>n=e,get label(){return x()},class:`w-[calc(100%+16px)] -mx-2 -my-1.5 outline-none`,get children(){return j(Ce,{get each(){return b()},children:t=>j(Ix.Item,{get value(){return t.id},get dataId(){return t.label.toLowerCase()},get disabled(){return!t.enabled},onSelect:()=>{t.action(),e.onHide()},get children(){return[j(Ix.Label,{class:`text-[var(--rg-text-primary)]`,get textContent(){return t.label}}),j(M,{get when(){return t.shortcut},children:e=>j(Ix.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})})}})}})}})]}}),null),u(e=>{var t=`${g().top}px`,n=`${g().left}px`;return t!==e.e&&U(r,`top`,e.e=t),n!==e.t&&U(r,`left`,e.t=n),e},{e:void 0,t:void 0}),r}})},Ye([`pointerdown`,`mousedown`,`click`,`contextmenu`])})),Kx,qx=n((()=>{Kx=(e,t,n,r)=>Math.max(r,Math.min(e,n-t-r))})),Jx,Yx=n((()=>{qx(),Jx=({anchor:e,measuredWidth:t,measuredHeight:n,viewportLeft:r=0,viewportTop:i=0,viewportWidth:a,viewportHeight:o,anchorGapPx:s,viewportPaddingPx:c,offscreenPosition:l})=>{if(!e||t===0||n===0)return l;let u,d;return e.edge===`left`||e.edge===`right`?(u=e.edge===`left`?e.x+s:e.x-t-s,d=e.y-n/2):(u=e.x-t/2,d=e.edge===`top`?e.y+s:e.y-n-s),{left:r+Kx(u-r,t,a,c),top:i+Kx(d-i,n,o,c)}}})),Xx,Zx=n((()=>{R(),q(),Yx(),Jv(),wa(),Uu(),Xx=(e,t)=>{let[n,r]=c(0),[i,a]=c(0),[o,s]=c(!1),[l,u]=c(!1),[p,m]=c(0),[g,_]=c(`bottom`),v,b,x=()=>{clearTimeout(v),b!==void 0&&(Vu(b),b=void 0)},S=()=>{let t=e();t&&(r(t.offsetWidth),a(t.offsetHeight))},C=()=>{h(()=>{m(e=>e+1),S()})},w=f(()=>t()!==null);return d(()=>{let n=t();n?(_(n.edge),clearTimeout(v),s(!0),b!==void 0&&Vu(b),b=Bu(()=>{S(),e()?.offsetHeight,u(!0)})):(b!==void 0&&Vu(b),u(!1),v=setTimeout(()=>{s(!1)},120)),y(x)}),d(()=>{if(!w())return;window.addEventListener(`resize`,C),window.visualViewport?.addEventListener(`resize`,C),window.visualViewport?.addEventListener(`scroll`,C);let e=xa(),t;e&&typeof ResizeObserver<`u`&&(t=new ResizeObserver(C),t.observe(e)),y(()=>{window.removeEventListener(`resize`,C),window.visualViewport?.removeEventListener(`resize`,C),window.visualViewport?.removeEventListener(`scroll`,C),t?.disconnect()})}),{shouldMount:o,isAnimatedIn:l,lastAnchorEdge:g,displayPosition:f(e=>{p();let r=qv(),a=Jx({anchor:t(),measuredWidth:n(),measuredHeight:i(),viewportLeft:r.offsetLeft,viewportTop:r.offsetTop,viewportWidth:r.width,viewportHeight:r.height,anchorGapPx:8,viewportPaddingPx:8,offscreenPosition:Fn});return a.left===Fn.left?e:a},Fn),measure:S,clearAnimationHandles:x}}})),Qx,$x,eS=n((()=>{G(),R(),q(),Qv(),zx(),Zx(),Vx(),Qx=z(`<div data-react-grab-ignore-events>`),$x=e=>{let t,n=()=>e.interactive!==!1,r=Xx(()=>t,()=>e.position);return v(()=>{r.measure();let t=e.onDismiss?Bx({isOpen:()=>!!e.position,onDismiss:e.onDismiss}):void 0;y(()=>{r.clearAnimationHandles(),t?.()})}),j(M,{get when(){return r.shouldMount()},get children(){var i=Qx(),a=t;return typeof a==`function`?tt(a,i):t=i,et(i,xe(()=>({[e.dataAttribute]:``}),{get class(){return $(`fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none will-change-[opacity,transform]`,r.isAnimatedIn()?`transition-[opacity,transform] duration-220 ease-spring`:`transition-[opacity,transform] duration-120 ease-drawer`)},get style(){return{top:`${r.displayPosition().top}px`,left:`${r.displayPosition().left}px`,"z-index":`${cn}`,"pointer-events":n()&&r.isAnimatedIn()?`auto`:`none`,"transform-origin":In[r.lastAnchorEdge()],opacity:r.isAnimatedIn()?`1`:`0`,transform:r.isAnimatedIn()?`scale(1)`:`scale(0.92)`}},onPointerDown:Rx,onMouseDown:Rx,onClick:Rx,onContextMenu:Rx}),!1,!0),W(i,()=>e.children),i}})}})),tS,nS=n((()=>{G(),R(),q(),Lx(),eS(),tS=e=>{let t=Px({clearActiveOnPointerLeave:!0,highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:Mn}});return j($x,{get position(){return e.position},dataAttribute:`data-react-grab-toolbar-menu`,get onDismiss(){return e.onDismiss},get children(){return j(Ix.Panel,{class:`overflow-hidden`,style:{"min-width":`100px`},get children(){return j(Ix.Provider,{store:t,get children(){return j(Ix.List,{label:`Default action`,get children(){return j(Ce,{get each(){return e.actions},children:t=>{let n=()=>t.id===e.defaultActionId;return j(Ix.Item,{get value(){return t.id},role:`menuitemradio`,get checked(){return n()},onSelect:()=>{e.onSetDefaultAction(t.id),e.onDismiss()},get children(){return[j(Ix.Label,{get class(){return n()?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)]`},get textContent(){return t.label}}),j(M,{get when(){return t.shortcut},children:e=>j(Ix.Shortcut,{get shortcut(){return e()},get modifier(){return t.shortcutModifier}})})]}})}})}})}})}})}})}})),rS,iS,aS,oS,sS,cS=n((()=>{G(),R(),q(),Lx(),eS(),rS=z(`<span aria-hidden=true class="shrink-0 font-mono text-[11px] leading-4 text-[var(--rg-text-secondary)] opacity-60 mr-1"> `),iS=z(`<span> `),aS=z(`<span class=text-[var(--rg-text-secondary)]>.`),oS=z(`<span class="flex items-center min-w-0 w-full"><span class="text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0 transition-colors"><span> `),sS=e=>{let t=()=>e.state?.activeIndex??0,n=Px({value:()=>String(t()),highlight:{topCornerRadiusPx:14,bottomCornerRadiusPx:14,cornerShape:Mn}});return j($x,{get position(){return e.position},dataAttribute:`data-react-grab-hierarchy-menu`,interactive:!1,get children(){return j(Ix.Panel,{class:`overflow-hidden`,style:{"min-width":`160px`},get children(){return j(Ix.Provider,{store:n,get children(){return j(Ix.List,{label:`Navigate element hierarchy`,get children(){return j(Ce,{get each(){return e.state?.items??[]},children:(e,n)=>j(Ix.Item,{get value(){return String(n())},role:`menuitemradio`,get checked(){return n()===t()},get children(){var r=oS(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return W(r,j(M,{get when(){return e.depth>0},get children(){var t=rS(),n=t.firstChild;return u(r=>{var i=`${(e.depth-1)*12}px`,a=e.isLast?`└─`:`├─`;return i!==r.e&&U(t,`padding-left`,r.e=i),a!==r.t&&(n.data=r.t=a),r},{e:void 0,t:void 0}),t}}),i),W(i,j(M,{get when(){return e.componentName},get children(){return[(()=>{var t=iS(),n=t.firstChild;return u(()=>n.data=e.componentName),t})(),aS()]}}),a),u(r=>{var a=n()===t(),s=n()!==t(),c=e.tagName;return a!==r.e&&i.classList.toggle(`text-[var(--rg-text-primary)]`,r.e=a),s!==r.t&&i.classList.toggle(`text-[var(--rg-text-secondary)]`,r.t=s),c!==r.a&&(o.data=r.a=c),r},{e:void 0,t:void 0,a:void 0}),r}})})}})}})}})}})}})),lS=r({ReactGrabRenderer:()=>uS}),uS,dS=n((()=>{G(),R(),q(),wi(),Lv(),Bv(),Sb(),tx(),Gx(),nS(),cS(),uS=e=>[j(Iv,{get selectionVisible(){return e.selectionVisible},get selectionBounds(){return e.selectionBounds},get selectionBoundsMultiple(){return e.selectionBoundsMultiple},get selectionShouldSnap(){return e.selectionShouldSnap},get dragVisible(){return e.dragVisible},get dragBounds(){return e.dragBounds},get grabbedBoxes(){return e.grabbedBoxes},get labelInstances(){return e.labelInstances}}),j(zv,{get visible(){return e.isFrozen??!1}}),j(M,{get when(){return vt(()=>!!e.selectionLabelVisible)()&&(e.frozenLabelEntryAccessors?.length??0)>0},get children(){return j(Ce,{get each(){return e.frozenLabelEntryAccessors??[]},children:e=>j(M,{get when(){return e.read()},children:e=>j(xb,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})})})}}),j(M,{get when(){return vt(()=>!!e.selectionLabelVisible)()&&e.pendingShiftPreviewEntry},children:e=>j(xb,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})}),j(M,{get when(){return vt(()=>!!(e.selectionLabelVisible&&e.selectionBounds))()&&(e.frozenLabelEntryAccessors?.length??0)===0},get children(){return j(xb,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get elementsCount(){return e.selectionElementsCount},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isPromptMode(){return e.isPromptMode},get inputValue(){return e.inputValue},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get selectionLabelShakeCount(){return e.selectionLabelShakeCount},get onConfirmDismiss(){return e.onConfirmDismiss},get discardPrompt(){return e.discardPrompt},get onOpen(){return e.onOpenSelectionFile}})}}),j(Ce,{get each(){return e.labelInstanceAccessors??[]},children:t=>j(M,{get when(){return t.read()},children:t=>j(xb,{get tagName(){return t().tagName},get componentName(){return t().componentName},get elementsCount(){return t().elementsCount},get selectionBounds(){return t().bounds},get mouseX(){return t().mouseX},visible:!0,get status(){return t().status},get statusText(){return t().statusText},get isPromptMode(){return t().isPromptMode},get inputValue(){return t().inputValue},get error(){return t().errorMessage},get hideArrow(){return t().hideArrow},get onShowContextMenu(){let n=t();if(!(!(n.status===`copied`||n.status===`fading`)||!X(n.element)))return()=>e.onShowContextMenuInstance?.(n.id)},onRetry:()=>e.onRetryInstance?.(t().id),onAcknowledgeError:()=>e.onAcknowledgeErrorInstance?.(t().id),onHoverChange:n=>e.onLabelInstanceHoverChange?.(t().id,n)})})}),j(M,{get when(){return e.toolbarVisible!==!1},get children(){return j(ex,{get isActive(){return e.isActive},get isContextMenuOpen(){return e.contextMenuPosition!==null},get onToggle(){return e.onToggleActive},get activeActionId(){return e.activeActionId},get defaultActionId(){return e.defaultActionId},get defaultActionLabel(){return e.defaultActionLabel},get enabled(){return e.enabled},get shakeCount(){return e.shakeCount},get onStateChange(){return e.onToolbarStateChange},get onSubscribeToStateChanges(){return e.onSubscribeToToolbarStateChanges},get onSelectHoverChange(){return e.onToolbarSelectHoverChange},get onContainerRef(){return e.onToolbarRef},get onToggleToolbarMenu(){return e.onToggleToolbarMenu}})}}),j(Wx,{get position(){return e.contextMenuPosition??null},get selectionBounds(){return e.contextMenuBounds??null},get tagName(){return e.contextMenuTagName},get componentName(){return e.contextMenuComponentName},get hasFilePath(){return e.contextMenuHasFilePath??!1},get actions(){return e.actions},get actionContext(){return e.actionContext},get onDismiss(){return e.onContextMenuDismiss??(()=>{})},get onHide(){return e.onContextMenuHide??(()=>{})}}),j(tS,{get position(){return e.toolbarMenuPosition??null},get actions(){return e.toolbarMenuActions??[]},get defaultActionId(){return e.defaultActionId??`copy`},get onSetDefaultAction(){return e.onSetDefaultAction??(()=>{})},get onDismiss(){return e.onToolbarMenuDismiss??(()=>{})}}),j(sS,{get position(){return e.hierarchyMenuPosition??null},get state(){return e.hierarchyState}})]}));G(),R(),Qi(),oa(),wa(),Uu(),Tm(),hf(),nf(),wi(),Si(),ea(),q(),fa(),la(),sh(),$m(),Ih(),Fg(),u_(),Q_(),uh(),rv(),uv(),Hn(),up(),fi();let fS=[Rh,zh,Bh],pS={status:`cancelled`},mS=!1,hS=e=>{if(typeof window>`u`)return Od();let t={enabled:!0,activationMode:`toggle`,keyHoldDuration:100,allowActivationInsideInput:!0,...Ah(),...e};if(t.enabled===!1||mS)return Od();mS=!0,ba(t.container??null),Dh(t.telemetry!==!1);let{enabled:n,telemetry:r,container:i,...a}=t;return s(e=>{let t=!1,n=new AbortController,r=null,i,o=new Set,s=_h(a),{store:l,actions:u,pointer:p,viewportVersion:h,current:v}=Ri({keyHoldDuration:s.store.options.keyHoldDuration??100}),b=f(()=>v().state===`holding`),x=f(()=>v().state===`active`),S=f(()=>{let e=v();return e.state===`active`&&e.phase===`frozen`}),C=f(()=>{let e=v();return e.state===`active`&&(e.phase===`dragging-select`||e.phase===`dragging-reposition`)}),w=f(()=>{if(!C())return!1;let e=Math.abs(p().x+window.scrollX-l.dragStart.x),t=Math.abs(p().y+window.scrollY-l.dragStart.y);return e>2||t>2}),T=f(()=>{let e=v();return e.state===`active`&&e.phase===`dragging-reposition`}),ee=f(()=>{let e=v();return e.state===`active`&&e.phase===`justDragged`}),E=f(()=>v().state===`copying`),te=f(()=>l.selectionInteractionLockDepth>0),D=f(()=>v().state===`justCopied`),O=f(()=>{let e=v();return e.state===`active`&&!!e.isPromptMode}),k=f(()=>l.pendingCommentMode||O()),ne=f(()=>{let e=v();return e.state===`active`&&!!e.isPromptMode&&!!e.isPendingDismiss}),re=new Map,ie=(e,t)=>{re.has(e)||re.set(e,document.body.style[e]),document.body.style[e]=t},ae=e=>{let t=re.get(e);t!==void 0&&(document.body.style[e]=t,re.delete(e))};d(_(x,(e,t)=>{e&&!t?(c_(p().x,p().y),ie(`touchAction`,`none`)):!e&&t&&(l_(),ae(`touchAction`))}));let A=Ph(),[oe,se]=c(A?!A.collapsed:!0),[ce,le]=c(0),[ue,de]=c(0),[fe,pe]=c(A),[me,he]=c(!1),ge=Lh(e=>e.shiftKey),[ve,ye]=c(null),[be,xe]=c(null),Se=f(()=>l.contextMenuPosition!==null),Ce=f(()=>Se()||ve()!==null),M,N=null,we=new WeakMap,P=av(),Te=()=>!oe()||O()||te()||Se()||P.isPendingDismiss(),Ee=()=>{Ke(!1),we=new WeakMap},De=e=>{let t=fe()??Ph(),n={edge:t?.edge??`bottom`,ratio:t?.ratio??.5,collapsed:t?.collapsed??!1,enabled:t?.enabled??!0,defaultAction:t?.defaultAction??`copy`,...e};Fh(n),pe(n),fv(o,n)},Oe=()=>{We.timerId!==null&&(clearTimeout(We.timerId),We.timerId=null)},ke=()=>{We.copyWaiting=!1,We.holdTimerFired=!1,We.startTimestamp=null};d(()=>{if(v().state!==`holding`){Oe();return}We.startTimestamp=Date.now(),We.timerId=window.setTimeout(()=>{if(We.timerId=null,We.copyWaiting){We.holdTimerFired=!0;return}u.activate()},l.keyHoldDuration),y(Oe)}),d(()=>{let e=v();if(e.state!==`active`||e.phase!==`justDragged`)return;let t=setTimeout(()=>{u.finishJustDragged()},tn);y(()=>clearTimeout(t))}),d(()=>{if(v().state!==`justCopied`)return;let e=setTimeout(()=>{u.finishJustCopied()},tn);y(()=>clearTimeout(e))}),d(_(b,(e,t=!1)=>{!t||e||!x()||(s.store.options.activationMode!==`hold`&&u.setWasActivatedByToggle(!0),s.hooks.onActivate())}));let Ae=(e,t,n)=>{u.setCopyStart({x:t,y:n},e),u.clearInputText()},je=()=>{let e=l.frozenElement||At();e&&u.enterPromptMode({x:p().x,y:p().y},e)},Me={lastDetectionTimestamp:0,pendingDetectionScheduledAt:0,latestPointerX:0,latestPointerY:0},Ne=null,F={x:0,y:0},I=0,Pe=0,[Fe,L]=c(null),[Ie,Le]=c(0),Re=()=>{Ne!==null&&(clearTimeout(Ne),Ne=null)},ze=e=>{L({x:F.x,y:F.y}),I=e},Be=(e,t)=>{if(!w())return;F.x=e,F.y=t;let n=performance.now(),r=n-I,i=Pe>=16;if(I===0||!i&&r>=100){Re(),ze(n);return}Re(),Ne=window.setTimeout(()=>{w()&&ze(performance.now()),Ne=null},i?32:Math.min(32,100-r))},Ve=(e,t,n)=>(Re(),Lm(e,{x:t,y:n},mf)),He=()=>{Re(),I=0,Pe=0,L(null),Zt()},Ue=null,We={timerId:null,startTimestamp:null,copyWaiting:!1,holdTimerFired:!1},Ge=null,[R,Ke]=c(!1),qe=0,z=!1,Ye=null,B=()=>{z=!0,Ye!==null&&window.clearTimeout(Ye),Ye=window.setTimeout(()=>{z=!1,Ye=null},tn)},Xe=()=>{Ye!==null&&(window.clearTimeout(Ye),Ye=null),z=!1},Ze=0,V=null,H=null,[Qe,$e]=c(!1),[U,et]=c(null),[tt,W]=c(null),[nt,rt]=Iu(tt),it=f(()=>k()?jn:Qe()?U():x()?An:null),at=e=>Km(e,mf),ot=Sh(mf,at,Y),st=Th(p,()=>C(),e=>{if(T()){if(u.shiftDragStart(e),Ge){Ge={x:Ge.x+e.x,y:Ge.y+e.y};return}let{pageX:t,pageY:n}=Wt(p().x,p().y);Ge={x:t,y:n}}}),ct=f(()=>x()&&!E()),lt=new Map,ut=(e,t)=>{let n=vh(`grabbed`),r={id:n,bounds:e,createdAt:Date.now(),element:t};u.addGrabbedBox(r),s.hooks.onGrabbedBox(e,t);let i=window.setTimeout(()=>{lt.delete(n),u.removeGrabbedBox(n)},tn+125);lt.set(n,i)},dt=async e=>{let n=await Promise.all(e.map(async e=>{let t=await gu(e),n=t?.componentName??null,r=t?.filePath,i=t?.lineNumber??void 0,a=t?.columnNumber??void 0;n||=_u(e);let o=Vn(e)?e.innerText?.slice(0,100):void 0;return{tagName:$i(e),id:e.id||void 0,className:e.getAttribute(`class`)||void 0,textContent:o,componentName:n??void 0,filePath:r,lineNumber:i,columnNumber:a}}));t||window.dispatchEvent(new CustomEvent(`react-grab:element-selected`,{detail:{elements:n}}))},ft=new Map,pt=bh(u,()=>l.labelInstances,()=>ft.clear()),mt=e=>{for(let t of e)l.labelInstances.find(e=>e.id===t)?.status===`copying`&&(ft.delete(t),pt.dismissInstance(t))},ht=()=>{n.abort()},gt=()=>(n.signal.aborted&&!t&&(n=new AbortController),n.signal),_t=()=>(ht(),gt()),yt=()=>{ht(),r=null,mt(l.labelInstances.filter(e=>e.status===`copying`).map(e=>e.id))},G=async(e,t,n)=>{let r,i;try{if(r=await e(n),r.status===`cancelled`)return r;r.status===`failed`&&(i=`Failed to copy`)}catch(e){if(n.aborted)return pS;r={status:`failed`},i=jd(e,`Action failed`)}if(t)for(let e of t)pt.updateAfterCopy(e,r.status===`succeeded`,i);return r},xt=(e,t,n,r)=>{if(e){for(let e of n)ft.delete(e);return}let i={operation:t,siblingIds:new Set(n),shouldDeactivateAfter:r};for(let e of n)ft.set(e,i)},St=async(e,t,n,r=_t())=>{if(r.aborted)return!1;Xe(),v().state!==`copying`&&u.startCopy();let i=await G(e,t,r);if(i.status===`cancelled`)return!1;let a=i.status===`succeeded`;return t&&xt(a,e,t,!!n),v().state===`copying`?(a&&u.completeCopy(),n?K():a?(u.activate(),B()):(u.activate(),u.unfreeze()),!0):!0},Ct=e=>{let t=ft.get(e);if(!t)return;let n=[...t.siblingIds];for(let e of n)pt.markRetrying(e),ft.delete(e);St(t.operation,n,t.shouldDeactivateAfter).then(e=>{e||mt(n)})},wt=e=>{ft.get(e)?.siblingIds.delete(e),ft.delete(e),pt.dismissInstance(e)},Tt=(e,t,n,r)=>{let i=e[0],a=r??(i?_u(i):null),o=i?$i(i):null,c=a??o??void 0;return Bd({getContent:s.store.options.getContent,componentName:c,maxContextLines:s.store.options.maxContextLines,signal:t},s.hooks,e,n)},Et=async(e,t,n,r=gt())=>{if(e.length===0||r.aborted)return pS;let i=[],a=[];for(let t of e){let{wasIntercepted:e,pendingResult:n}=s.hooks.onElementSelect(t);e||i.push(t),n&&a.push(n),s.store.theme.grabbedBoxes.enabled&&ut(Y(t),t)}if(await Hu(),r.aborted)return pS;let o;if(i.length>0&&(o=await Tt(i,r,t,n),o.status===`cancelled`))return o;if(a.length>0){let e=await Pd(Promise.all(a),r);if(e===Nd)return o?.status===`succeeded`?o:pS;if(!e.every(Boolean))throw new Zi}return r.aborted&&!o?pS:(dt(e).catch(e=>{Z(new Bi(`Element selection notification failed`,e))}),o??{status:`succeeded`})},Dt=e=>{let n=_t(),i={},a=!1;r=i,lu(e.primaryElement).then(async t=>{if(n.aborted||r!==i){mt(e.labelInstanceIds);return}r=null,a=!0,await St(n=>Et(e.targetElements,e.extraPrompt,t??void 0,n),e.labelInstanceIds.length>0?e.labelInstanceIds:null,e.shouldDeactivateAfter,n)?e.onComplete?.():mt(e.labelInstanceIds)}).catch(o=>{if(n.aborted){mt(e.labelInstanceIds);return}if(t||!a&&r!==i)return;Z(new Bi(`Copy operation failed`,o));let s=jd(o,`Action failed`);for(let t of e.labelInstanceIds)pt.updateAfterCopy(t,!1,s);e.labelInstanceIds.length>0&&xt(!1,t=>lu(e.primaryElement).then(n=>t.aborted?pS:Et(e.targetElements,e.extraPrompt,n??void 0,t)),e.labelInstanceIds,!!e.shouldDeactivateAfter),v().state===`copying`&&(e.shouldDeactivateAfter?K():(u.activate(),u.unfreeze()))}).finally(()=>{r===i&&(r=null)})},Ot=e=>{let{element:t,cursorX:n,selectedElements:r,extraPrompt:i,shouldDeactivateAfter:a,onComplete:o,dragRect:s}=e,c=r??[t],d=s??l.frozenDragRect,f=c.length>1,p=!f&&t===Lt()?Ut():void 0,m=d&&f?Bm(d):p??Y(t),h=f?m.x+m.width/2:n,g=$i(t);Xe(),u.startCopy();let _=g?pt.createInstance(m,g,void 0,`copying`,{element:t,mouseX:h,elements:r}):null;Dt({primaryElement:t,targetElements:c,labelInstanceIds:_?[_]:[],extraPrompt:i,shouldDeactivateAfter:a,onComplete:o})},kt=e=>{let{elements:t,labelEntries:n,shouldDeactivateAfter:r,onComplete:i}=e,a=t[0];Xe(),u.startCopy(),Dt({primaryElement:a,targetElements:t,labelInstanceIds:pt.createPerElementInstances(n,`copying`),shouldDeactivateAfter:r,onComplete:i})},At=f(()=>{if(h(),!ct()||w()||te()||P.isPendingDismiss())return null;let e=l.detectedElement;return X(e)?e:null}),jt=f(()=>l.frozenElement||(S()?null:At())),Mt=f(()=>!x()||O()||R()||E()||Ce()||P.isPendingDismiss()?null:ge()?S()?jt():At()??l.frozenElement:P.selectedElement()),Nt=f(()=>{let e=Mt();return e?Um(e,mf,at):[]}),Pt=f(()=>{let e=Mt();return e?Math.max(0,Nt().findIndex(t=>t.element===e)):0}),Ft=f(()=>Mt()!==null);d(()=>{if(!l.detectedElement)return;let e=1,t=setInterval(()=>{if(X(l.detectedElement)||u.relinkLiveElements(),!X(l.detectedElement)){if(e>0){--e;return}dr()}},100);y(()=>clearInterval(t))}),d(_(jt,e=>{if(V!==null&&(clearTimeout(V),V=null),!e){W(null);return}V=window.setTimeout(()=>{V=null,W(e)},100)})),y(()=>{V!==null&&(clearTimeout(V),V=null)}),d(()=>{let e=l.frozenElements;y(Dg(e))}),d(_(x,e=>{e&&s.store.options.freezeReactUpdates&&y(Z_())}));let It=()=>{if(l.isTouchMode&&C()){let e=l.detectedElement;return!X(e)||tf(e)?void 0:e}let e=jt();if(!(!e||tf(e)))return e},Lt=f(()=>It()),Rt=()=>Lt()?l.isTouchMode&&C()?ct():ct()&&!w():!1,zt=_e(()=>l.frozenElements,e=>f(()=>(h(),Y(e)))),Bt=f(()=>{let e=l.frozenElements;if(e.length===0)return[];let t=l.frozenDragRect;return t&&e.length>1?[Bm(t)]:zt().map(e=>e())}),Vt=f(()=>{if(!R()||l.pendingCommentMode||Qe())return null;let e=l.detectedElement;return!X(e)||tf(e)||l.frozenElements.includes(e)?null:e}),Ht=f(()=>{h();let e=Vt();if(e)return Y(e)}),Ut=f(()=>{h();let e=l.frozenElements;if(e.length>0){let t=Bt();if(e.length===1){let e=t[0];if(e)return e}let n=l.frozenDragRect;return n?t[0]??Bm(n):Hm(ph(t))}let t=Lt();if(t)return Y(t)}),Wt=(e,t)=>({pageX:e+window.scrollX,pageY:t+window.scrollY}),Gt=(e,t)=>{let{pageX:n,pageY:r}=Wt(e,t);return{x:Math.abs(n-l.dragStart.x),y:Math.abs(r-l.dragStart.y)}},Kt=(e,t)=>{let{pageX:n,pageY:r}=Wt(e,t),i=Math.min(l.dragStart.x,n),a=Math.min(l.dragStart.y,r),o=Math.abs(n-l.dragStart.x),s=Math.abs(r-l.dragStart.y);return{x:i-window.scrollX,y:a-window.scrollY,width:o,height:s}},qt=e=>e.code===`Space`||e.key===` `,Jt=()=>{if(!C())return;u.startDragReposition();let{pageX:e,pageY:t}=Wt(p().x,p().y);Ge={x:e,y:t}},Yt=()=>{u.stopDragReposition(),Ge=null},Xt=f(()=>{if(h(),w())return Hm(Kt(p().x,p().y))}),Zt=f(()=>{if(Ie(),!w())return[];let e=Fe();if(!e)return[];let t=Kt(e.x,e.y),n=performance.now(),r=Lm(t,e,mf);return Pe=performance.now()-n,r}),Qt=f(()=>(h(),Zt().map(e=>Y(e)))),$t=f(()=>{let e=Qt();if(e.length>0)return e;let t=Ht();return t?[...Bt(),t]:Bt()}),en=_e(()=>l.frozenElements,e=>{let t=$i(e)||`element`,n=_u(e)??void 0;return{read:f(()=>{if(h(),!X(e))return null;let r=Y(e),i=we.get(e);return{tagName:t,componentName:n,bounds:r,mouseX:i===void 0?void 0:r.x+r.width*i}})}}),nn=f(()=>{if(O()||l.frozenElements.length<2)return[];let e=[];for(let t of en())t.read()!==null&&e.push(t);return e}),rn=f(()=>{if(O())return null;let e=Vt();return e?(h(),{tagName:$i(e)||`element`,componentName:_u(e)??void 0,bounds:Y(e),mouseX:p().x}):null}),an=f(()=>{if(E()||O()){h();let e=l.frozenElement||At();return e?{x:Ci(Y(e)).x+l.copyOffsetFromCenterX,y:l.copyStart.y}:{x:l.copyStart.x,y:l.copyStart.y}}return{x:p().x,y:p().y}}),on=f(()=>{if(!R()||l.frozenElements.length!==1)return;h();let e=l.frozenElements[0];if(!X(e))return;let t=we.get(e);if(t===void 0)return;let n=Y(e);return n.x+n.width*t});d(_(()=>[At(),l.lastGrabbedElement],([e,t])=>{t&&e&&t!==e&&u.setLastGrabbed(null),e&&s.hooks.onElementHover(e)})),d(_(()=>At(),e=>{let t=++Ze,n=()=>{Ze===t&&u.setSelectionSource(null,null)};if(!e){n();return}gu(e).then(e=>{if(Ze===t){if(!e){n();return}u.setSelectionSource(e.filePath,e.lineNumber)}}).catch(()=>{Ze===t&&u.setSelectionSource(null,null)})}));let sn=f(()=>l.grabbedBoxes.map(e=>({id:e.id,bounds:e.bounds,createdAt:e.createdAt}))),cn=f(()=>l.labelInstances.map(e=>({id:e.id,status:e.status,tagName:e.tagName,componentName:e.componentName,createdAt:e.createdAt})));d(_(f(()=>{let e=x(),t=C(),n=E(),r=O(),i=At(),a=Xt(),o=s.store.theme.enabled,c=s.store.theme.selectionBox.enabled,u=s.store.theme.dragBox.enabled,d=w(),f=jt(),p=D();return{isActive:e,isDragging:t,isCopying:n,isPromptMode:r,isSelectionBoxVisible:!!(o&&c&&e&&!n&&!p&&!t&&f!=null),isDragBoxVisible:!!(o&&u&&e&&!n&&d),targetElement:i,dragBounds:a?{x:a.x,y:a.y,width:a.width,height:a.height}:null,grabbedBoxes:[...sn()],labelInstances:[...cn()],selectionFilePath:l.selectionFilePath,toolbarState:fe()}}),e=>{s.hooks.onStateChange(e)})),d(_(()=>{let e=O();return{inputMode:e,position:e?p():g(p),target:e?At():g(At)}},({inputMode:e,position:t,target:n})=>{s.hooks.onPromptModeChange(e,{x:t.x,y:t.y,targetElement:n})})),d(_(()=>[kr(),Ut(),At()],([e,t,n])=>{s.hooks.onSelectionBox(!!e,t??null,n)})),d(_(()=>[zr(),Xt()],([e,t])=>{s.hooks.onDragBox(!!e,t??null)})),d(_(()=>{let e=Vr();return[e,Br(),e?an():g(an),e?At():g(At),l.selectionFilePath,l.selectionLineNumber]},([e,t,n,r,i,a])=>{s.hooks.onElementLabel(e,t,{x:n.x,y:n.y,content:``,element:r??void 0,tagName:r&&$i(r)||void 0,filePath:i??void 0,lineNumber:a??void 0})}));let ln=null,un=e=>{if(e){if(!ln){ln=document.createElement(`style`),ln.setAttribute(`data-react-grab-cursor`,``);let e=ca();e&&(ln.nonce=e),da(ln),document.head.appendChild(ln)}ln.textContent=`* { cursor: ${e} !important; }`}else ln&&=(ln.remove(),null)};d(_(()=>[x(),E(),O()],([e,t,n])=>{un(t?`progress`:e&&!n?`crosshair`:null)}));let dn=()=>{let e=b();u.activate(),e||s.hooks.onActivate()},K=()=>{yt();let e=C(),t=l.previouslyFocusedElement;Yt(),u.deactivate(),ti(),Ee(),qn(),P.clear(),$e(!1),et(null),e&&(ae(`userSelect`),He()),Ue&&window.clearTimeout(Ue),st.stop(),Vn(t)&&t!==document.body&&t!==document.activeElement&&X(t)&&t.focus({preventScroll:!0}),s.hooks.onDeactivate()},fn=()=>{b()&&u.releaseHold(),x()||E()?K():yt(),Xe()},pn=()=>{u.setWasActivatedByToggle(!0),dn()},mn=()=>{let e=[...l.frozenElements],t=l.frozenElement||At(),n=O()?l.inputText.trim():``;if(!t){K();return}let r=e.length>0?e:[t],i=r.map(e=>Y(e))[0],{x:a,y:o}=Ci(i),s=a+l.copyOffsetFromCenterX;u.setPointer({x:a,y:o}),u.exitPromptMode(),u.clearInputText(),Ot({element:t,cursorX:s,selectedElements:r,extraPrompt:n||void 0,shouldDeactivateAfter:!0})},hn=()=>{if(O()){if(ne()){u.clearInputText(),K();return}u.setPendingDismiss(!0),de(e=>e+1)}},gn=()=>{if(P.isPendingDismiss()){Xn();return}u.clearInputText(),K()},_n=()=>{u.setPendingDismiss(!1)},vn=()=>{H=null,$e(!1),u.setPendingCommentMode(!1),et(null)},yn=e=>{H=e,et(e),$e(!0)},bn=e=>{let t=l.frozenElement||At();if(!t)return!1;let n={x:p().x,y:p().y},r=s.store.actions.find(t=>t.id===e);return r?(u.clearInputText(),u.exitPromptMode(),vn(),lv(r,nr(t,n))||On(t,n),!0):(u.clearInputText(),u.exitPromptMode(),vn(),On(t,n),!0)},xn=e=>{if(E()){K();return}if(x()){if(it()!==e){if(O()){if(bn(e))return;K();return}u.setPendingCommentMode(!1),yn(e);return}K();return}oe()&&(yn(e),pn())},wn=()=>{xn(fe()?.defaultAction??`copy`)},Tn=()=>{let e=fe()?.defaultAction??`copy`;return s.store.actions.find(t=>t.id===e)?.label??`Copy`},En=(e,t,n)=>{vn(),u.clearInputText(),u.enterPromptMode({x:t,y:n},e)},On=(e,t)=>{Ee(),ni(),u.showContextMenu(t,e),qn(),s.hooks.onContextMenu(e,t)},kn=(e,t)=>{let n=H;if(H=null,et(null),!n)return;let r=s.store.actions.find(e=>e.id===n);if(!r){On(e,t);return}lv(r,nr(e,t))||On(e,t)},Mn=()=>{if(oe()){if(x()&&k()){K();return}u.setPendingCommentMode(!0),x()||pn()}},Pn=(e,t,n)=>{let r=n&&R()&&!C()&&!l.pendingCommentMode&&!Qe();if(Te()||S()&&!r)return;if(u.setPointer({x:e,y:t}),Me.latestPointerX=e,Me.latestPointerY=t,r){let n=Cm(e,t);n!==l.detectedElement&&u.setDetectedElement(n);return}let i=performance.now(),a=Me.pendingDetectionScheduledAt>0&&i-Me.pendingDetectionScheduledAt<200;if(!w()&&!a){Me.pendingDetectionScheduledAt=i;let e=Math.max(0,32-(i-Me.lastDetectionTimestamp));setTimeout(()=>{if(Te()||S()||w()){Me.pendingDetectionScheduledAt=0;return}l.detectedElement&&!X(l.detectedElement)&&(u.relinkLiveElements(),wm()),Me.lastDetectionTimestamp=performance.now();let e=Cm(Me.latestPointerX,Me.latestPointerY);e!==l.detectedElement&&u.setDetectedElement(e),Me.pendingDetectionScheduledAt=0},e)}if(C()){if(T()){let{pageX:n,pageY:r}=Wt(e,t);Ge&&u.shiftDragStart({x:n-Ge.x,y:r-Ge.y}),Ge={x:n,y:r}}Be(e,t);let n=wh(e,t),r=n.top||n.bottom||n.left||n.right;r&&!st.isActive()?st.start():!r&&st.isActive()&&st.stop()}},Fn=(e,t,n)=>{if(!ct()||te())return!1;!n&&R()&&Ee();let r=P.selectedElement()!==null;return u.startDrag({x:e,y:t},n||r),u.setPointer({x:e,y:t}),ie(`userSelect`,`none`),s.hooks.onDragStart(e+window.scrollX,t+window.scrollY),!0},In=(e,t)=>{let n=l.frozenElements.includes(e),r=l.frozenElements.length===0;if(!n){let n=Rm(Y(e),t);we.set(e,n),r&&rt(_u(e)??void 0)}u.toggleFrozenElement(e),wm();let i=l.frozenElements.includes(e);if(i||we.delete(e),l.frozenElements.length===0){Ee(),u.unfreeze();return}Tg(l.frozenElements),Ke(!0),u.setPointer(t),u.setLastGrabbed(i?e:l.frozenElements[l.frozenElements.length-1]),u.freeze(),qn()},Rn=()=>{let e=l.frozenElements.filter(X),t=e.map(e=>{let t=$i(e)||`element`,n=_u(e)??void 0,r=we.get(e),i=Y(e);return{element:e,tagName:t,componentName:n,mouseX:r===void 0?i.x+i.width/2:i.x+i.width*r}});if(Ee(),e.length===0){u.unfreeze();return}if(e.length===1){Ot({element:e[0],cursorX:t[0].mouseX,selectedElements:e,shouldDeactivateAfter:l.wasActivatedByToggle});return}kt({elements:e,labelEntries:t,shouldDeactivateAfter:l.wasActivatedByToggle})},q=(e,t,n,r)=>{if(t.length===0)return;let i=r&&!l.pendingCommentMode&&!Qe();if(i&&u.addFrozenElements(t),Tg(i?l.frozenElements:t),s.hooks.onDragEnd(t,e),i){let e=t[t.length-1];Ke(!0),wm(),u.setPointer(Ci(Y(e))),u.setLastGrabbed(e),u.freeze(),qn();return}let a=t[0],o=Ci(Y(a));u.setPointer(o),u.setFrozenElements(t);let c=Vm(e);if(u.setFrozenDragRect(c),u.freeze(),u.setLastGrabbed(a),l.pendingCommentMode){En(a,o.x,o.y);return}if(Qe()){$e(!1),H?kn(a,o):On(a,o);return}let d=l.wasActivatedByToggle&&!n;Ot({element:a,cursorX:o.x,selectedElements:t,shouldDeactivateAfter:d,dragRect:c})},zn=e=>{for(let t of l.frozenElements)if(X(t)&&Mh(e,Y(t)))return t;return null},Bn=(e,t,n,r)=>{let i=X(l.frozenElement)?l.frozenElement:null,a=P.selectedElement(),o=()=>Sm(e,t).find(mf)??null;if(r&&!l.pendingCommentMode&&!Qe()){let n=o();n!==null&&In(n,{x:e,y:t});return}let c=o()??(X(l.detectedElement)?l.detectedElement:null),d=a??c??i;if(!d)return;let f,m,h=c===null&&i===d,g=a===d;if(h)f=p().x,m=p().y;else if(g){let e=Ci(Y(d));f=e.x,m=e.y}else f=e,m=t;if(l.pendingCommentMode){En(d,f,m),P.clear();return}if(Qe()){$e(!1);let{wasIntercepted:e}=s.hooks.onElementSelect(d);if(e)return;P.clear(),Tg([d]),u.setFrozenElement(d);let t={x:f,y:m};u.setPointer(t),u.freeze(),H?kn(d,t):On(d,t);return}let _=l.wasActivatedByToggle&&!n;u.setLastGrabbed(d),Ot({element:d,cursorX:f,shouldDeactivateAfter:_}),P.clear()},Hn=()=>{C()&&(Yt(),He(),u.cancelDrag(),st.stop(),ae(`userSelect`),dr())},Un=(e,t,n,r)=>{if(!C())return;let i=Gt(e,t),a=i.x>2||i.y>2,o=a?Kt(e,t):null,s=o?Ve(o,e,t):[];He(),a?u.endDrag():u.cancelDrag(),Yt(),st.stop(),ae(`userSelect`),o?q(o,s,n,r):Bn(e,t,n,r)},J=kd(),Wn=yv({shouldForwardInteraction:()=>x()||b()||C()||te(),shouldForwardKeyboardEvent:e=>ah(e,s.store.options),shouldForwardViewportEvent:e=>{let t=l.frozenElement??At();return t&&bv(e,t)?!0:l.frozenElements.some(t=>bv(e,t))}}),Gn=Ch(),Kn=e=>{let t;try{t=Gn.originalKeyDescriptor?.get?Gn.originalKeyDescriptor.get.call(e):e.key}catch{return!1}let n=t===`Enter`||jh(e.code),r=x()||b();return n&&r&&!O()&&!P.isPendingDismiss()&&!l.wasActivatedByToggle?oh(e,`data-react-grab-input`)?!1:(Gn.claimedEvents.add(e),e.preventDefault(),e.stopImmediatePropagation(),!0):!1};J.addDocumentListener(`keydown`,Ca(Kn),{capture:!0}),J.addDocumentListener(`keyup`,Ca(Kn),{capture:!0}),J.addDocumentListener(`keypress`,Ca(Kn),{capture:!0});let qn=()=>{ot.clearHistory(),P.clear()},Jn=(e,t=!1)=>{u.setFrozenElement(e),u.freeze(),P.select(e,{shouldPromptBeforeMouseHandoff:t});let n=Ci(Y(e));u.setPointer(n),l.contextMenuPosition!==null&&u.showContextMenu(n,e)},Yn=()=>{P.showDismissPrompt()&&de(e=>e+1)},Xn=()=>{P.clear(),u.unfreeze(),qn()},Zn=()=>{let e=P.takeSelection(l.frozenElement);if(!e){Xn();return}let t=Ci(Y(e));qn(),u.setLastGrabbed(e),Ot({element:e,cursorX:t.x,shouldDeactivateAfter:l.wasActivatedByToggle})},Qn=e=>Cn.has(e.key)?e.key:e.key===`Tab`?e.shiftKey?`ArrowLeft`:`ArrowRight`:null,$n=(e,t={})=>{if(!x()||O()||R()||P.isPendingDismiss()&&!t.allowPendingKeyboardSelection)return!1;let n=Qn(e);if(!n||Ce())return!1;let r=jt(),i=!r;if(!r){let e=xa()?.getBoundingClientRect();r=e?Cm(e.left+e.width/2,e.top+e.height/2):Cm(window.innerWidth/2,window.innerHeight/2)}if(!r)return!1;let a=n===`ArrowUp`||n===`ArrowDown`,o=ot.findNext(n,r);if(!o&&!a&&!i)return!1;let s=o??r;return e.preventDefault(),e.stopPropagation(),Jn(s,!0),!0},er=e=>e.metaKey||e.ctrlKey||e.altKey||e.repeat||ra(e)||!x()||E()||te()||Ce()?null:l.frozenElement||At(),tr=e=>{let t=er(e);if(!t)return null;let n=nv(s.store.actions,e);return n?{element:t,action:n}:null},nr=(e,t)=>{let n=Y(e);return Xr({element:e,filePath:l.selectionFilePath??void 0,lineNumber:l.selectionLineNumber??void 0,tagName:$i(e)||void 0,componentName:nt(),position:t,shouldDeferHideContextMenu:!1,performWithFeedbackOptions:{fallbackBounds:n,fallbackSelectionBounds:[n],position:t}})},rr=e=>{let t=tr(e);if(!t)return!1;let{element:n,action:r}=t;return O()?bn(r.id)?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1:lv(r,nr(n,{x:p().x,y:p().y}))?(e.preventDefault(),e.stopImmediatePropagation(),!0):!1},ir=()=>{let e=l.selectionFilePath,t=l.selectionLineNumber;e&&fh(e,t??void 0,s.hooks)},ar=e=>e.key?.toLowerCase()!==`o`||!x()||!(e.metaKey||e.ctrlKey)||!l.selectionFilePath?!1:(e.preventDefault(),e.stopPropagation(),ir(),!0),or=e=>{if(!x()||E()||l.contextMenuPosition!==null)return!1;let t=e.key===`F10`&&e.shiftKey,n=e.key===`ContextMenu`;if(!t&&!n)return!1;let r=l.frozenElements,i=r.length>1,a=(i?r[0]:null)||l.frozenElement||At();if(!a)return!1;e.preventDefault(),e.stopPropagation();let o=Ci(Y(a));return i?Tg(r):(Tg([a]),u.setFrozenElement(a)),u.setPointer(o),u.freeze(),On(a,o),!0},sr=f(()=>Nt().map(e=>({tagName:$i(e.element)||`element`,componentName:_u(e.element)??void 0,depth:e.depth,isLast:e.isLast}))),cr=f(()=>({items:sr(),activeIndex:Pt()})),lr=e=>{if(!(!s.store.options.allowActivationInsideInput&&ra(e))&&!(!ah(e,s.store.options)&&((e.metaKey||e.ctrlKey)&&!Sn.includes(e.key)&&!jh(e.code)&&(x()&&!l.wasActivatedByToggle?K():b()&&(Oe(),ke(),u.releaseHold())),!jh(e.code)||!b()))){if((x()||b())&&!O()&&(e.preventDefault(),jh(e.code)&&e.stopImmediatePropagation()),x()){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e.repeat)return;Ue!==null&&window.clearTimeout(Ue),Ue=window.setTimeout(()=>{K()},200);return}if(b()&&e.repeat){if(We.copyWaiting){let e=We.holdTimerFired;ke(),e&&u.activate()}return}if(!(E()||D())&&!b()){let t=s.store.options.keyHoldDuration??100;ra(e)?ia(e)?t+=600:t+=400:aa()&&(t+=600),ke(),u.startHold(t)}}},ur=e=>{if(!P.isPendingDismiss())return!1;if(jh(e.code))return!0;let t=Cn.has(e.key),n=tr(e)!==null;return!t&&!n?!1:t?$n(e,{allowPendingKeyboardSelection:!0}):rr(e)?(qn(),!0):!1};J.addWindowListener(`keydown`,Ca(e=>{if(Qn(e)&&ra(e)||ur(e))return;if(Kn(e),!oe()){ah(e,s.store.options)&&!e.repeat&&le(e=>e+1);return}let t=jh(e.code)&&b()&&!O(),n=oh(e,Dn);if(O()&&ah(e,s.store.options)&&!e.repeat&&!n){e.preventDefault(),e.stopPropagation(),hn();return}if(e.key===`Escape`&&E()){K();return}if(e.key===`Escape`&&Ce()){ve()!==null&&ti();return}let r=oh(e,`data-react-grab-ignore-events`)&&!t;if(O()||r)return O()&&!n&&rr(e)||(e.key===`Escape`&&(O()?hn():l.wasActivatedByToggle&&K()),r&&Cn.has(e.key)&&$n(e)),void 0;if(C()&&qt(e)){e.repeat||Jt(),e.preventDefault(),e.stopPropagation();return}if(e.key===`Escape`&&(b()||l.wasActivatedByToggle)){K();return}x()&&!Sn.includes(e.key)&&e.preventDefault();let i=Date.now()-qe<200;$n(e)||ar(e)||or(e)||rr(e)||i||lr(e)}),{capture:!0}),J.addWindowListener(`keyup`,Ca(e=>{if(Kn(e))return;if(qt(e)&&T()&&(Yt(),e.preventDefault(),e.stopPropagation()),e.key===`Shift`&&R()){C()&&Hn(),Rn();return}if(oh(e,`data-react-grab-ignore-events`))return;let t=ih(s.store.options.activationKey),n=t.metaKey||t.ctrlKey?Qm()?!e.metaKey:!e.ctrlKey:t.shiftKey&&!e.shiftKey||t.altKey&&!e.altKey,r=s.store.options.activationKey?rh(s.store.options.activationKey)(e):Ym(e.key,e.code);if(D()||z){(r||n)&&(Xe(),K());return}if(!b()&&!x()||O())return;let i=!!s.store.options.activationKey,a=s.store.options.activationMode===`hold`,o=C();if(x()){let e=Se();if(n){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`||e)return;K()}else if(a&&r){if(Ue!==null&&(window.clearTimeout(Ue),Ue=null),e||o)return;K()}else !i&&r&&Ue!==null&&(window.clearTimeout(Ue),Ue=null);return}if(r||n){if(l.wasActivatedByToggle&&s.store.options.activationMode!==`hold`)return;if(b()||We.holdTimerFired&&n){Oe();let t=(We.startTimestamp?Date.now()-We.startTimestamp:0)>=200,n=We.holdTimerFired&&t&&(s.store.options.allowActivationInsideInput||!ra(e));ke(),n?u.activate():u.releaseHold()}else K()}}),{capture:!0}),J.addDocumentListener(`copy`,()=>{b()&&(We.copyWaiting=!0)}),J.addWindowListener(`keypress`,Ca(Kn),{capture:!0}),J.addWindowListener(`pointermove`,Ca(e=>{if(!e.isPrimary)return;let t=e.pointerType===`touch`;if(u.setTouchMode(t),!oh(e,`data-react-grab-ignore-events`)&&!Te()&&!(t&&!b()&&!x())){if((t?b():x())&&!O()&&S()&&!e.shiftKey&&!R()){if(P.consumeMouseHandoff()){Yn();return}u.unfreeze(),qn()}Pn(e.clientX,e.clientY,e.shiftKey)}}),{passive:!0,capture:!0}),J.addWindowListener(`pointerdown`,Ca(e=>{if(e.button===0&&e.isPrimary&&(u.setTouchMode(e.pointerType===`touch`),!(!C()&&oh(e,`data-react-grab-ignore-events`))&&!Se())){if(O()){let t=Ut();t&&e.clientX>=t.x&&e.clientX<=t.x+t.width&&e.clientY>=t.y&&e.clientY<=t.y+t.height?mn():hn();return}if(P.isPendingDismiss()){e.preventDefault(),e.stopImmediatePropagation();return}if(te()){e.preventDefault(),e.stopImmediatePropagation();return}if(Fn(e.clientX,e.clientY,e.shiftKey)){if(e.pointerId!==void 0)try{document.documentElement.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),e.stopImmediatePropagation()}}}),{capture:!0}),J.addWindowListener(`pointerup`,Ca(e=>{if(e.button!==0||!e.isPrimary||oh(e,`data-react-grab-ignore-events`)||Se())return;let t=ct()||te()||C(),n=e.metaKey||e.ctrlKey;Un(e.clientX,e.clientY,n,e.shiftKey),t&&(e.preventDefault(),e.stopImmediatePropagation())}),{capture:!0}),J.addWindowListener(`contextmenu`,Ca(e=>{if(!ct()||E()||O())return;let t=oh(e,`data-react-grab-ignore-events`),n={x:e.clientX,y:e.clientY},r=t&&l.frozenElements.length>1?zn(n):null,i=P.isPendingDismiss();if(t&&!r&&!i&&!Ft())return;if(Se()){e.preventDefault();return}e.preventDefault(),e.stopPropagation();let a=r??Cm(e.clientX,e.clientY);if(!a)return;let o=l.frozenElements;o.length>1&&o.includes(a)?Tg(o):(Tg([a]),u.setFrozenElement(a)),u.setPointer(n),u.freeze(),On(a,n)}),{capture:!0}),J.addWindowListener(`pointercancel`,Ca(e=>{e.isPrimary&&Hn()}),{capture:!0}),J.addWindowListener(`click`,Ca(e=>{oh(e,`data-react-grab-ignore-events`)||Se()||(ct()||ee())&&(e.preventDefault(),e.stopImmediatePropagation(),l.wasActivatedByToggle&&!O()&&!e.shiftKey&&(b()?u.setWasActivatedByToggle(!1):K()))}),{capture:!0}),J.addDocumentListener(`visibilitychange`,()=>{if(document.hidden){u.clearGrabbedBoxes();let e=l.activationTimestamp;x()&&!O()&&e!==null&&Date.now()-e>500&&K()}}),J.addWindowListener(`blur`,()=>{Hn(),b()&&(Oe(),u.releaseHold(),ke()),Ee()}),J.addWindowListener(`focus`,()=>{qe=Date.now()}),J.addWindowListener(`focusin`,e=>{oh(e,Ta)&&e.stopPropagation()},{capture:!0});let dr=()=>{if(!(l.isTouchMode&&!b()&&!x())&&!Te()&&!S()&&!C()&&l.frozenElements.length===0){let e=Cm(p().x,p().y);u.setDetectedElement(e)}},fr=null,pr=null,mr=()=>{zm(),dr(),Le(e=>e+1),u.incrementViewportVersion(),u.updateContextMenuPosition()},hr=()=>{pf(),mr()};J.addWindowListener(`scroll`,mr,{capture:!0});let gr=window.innerWidth,_r=window.innerHeight;J.addWindowListener(`resize`,()=>{let e=window.innerWidth,t=window.innerHeight;if(gr>0&&_r>0){let n=e/gr,r=t/_r,i=Math.abs(n-r)<Nn,a=Math.abs(n-1)>Nn;i&&a&&u.setPointer({x:p().x*n,y:p().y*r})}gr=e,_r=t,hr()});let vr=window.visualViewport;if(vr){let{signal:e}=J;vr.addEventListener(`resize`,hr,{signal:e}),vr.addEventListener(`scroll`,mr,{signal:e})}let yr=()=>{pr===null&&(pr=Bu(()=>{pr=null,u.incrementViewportVersion()}))};d(()=>{if(s.store.theme.enabled&&(x()||E()||l.labelInstances.length>0||l.grabbedBoxes.length>0)){if(fr!==null)return;fr=window.setInterval(()=>{u.relinkLiveElements(),yr()},100);return}fr!==null&&(window.clearInterval(fr),fr=null),pr!==null&&(Vu(pr),pr=null)}),y(()=>{fr!==null&&window.clearInterval(fr),pr!==null&&Vu(pr)}),J.addDocumentListener(`copy`,Ca(e=>{O()||oh(e,`data-react-grab-ignore-events`)||ct()&&e.preventDefault()}),{capture:!0}),y(()=>{let e=[];Q(Wn,e),Q(()=>J.abort(),e),Re(),Ue&&window.clearTimeout(Ue),Q(Xe,e),N&&Q(N,e),N=null,lt.forEach(e=>window.clearTimeout(e)),lt.clear(),Q(pt.cancelAllFades,e),ft.clear(),Q(st.stop,e),Q(l_,e),Q(()=>ae(`userSelect`),e),Q(()=>ae(`touchAction`),e),Q(()=>un(null),e),Q(Gn.restore,e),Q(()=>ba(null),e),lp(e,`Disposing React Grab failed`)});let{root:br,host:xr,cancelPendingAttachment:Sr}=ka(bt);y(Sr),y(Ed(xr).cleanup);let Cr=f(()=>s.store.theme.enabled),wr=f(()=>s.store.theme.selectionBox.enabled),Tr=f(()=>s.store.theme.elementLabel.enabled),Er=f(()=>s.store.theme.dragBox.enabled),Dr=f(()=>D()||me()&&!S()),Or=f(()=>Qt().length>0),kr=f(()=>!Cr()||!wr()||Dr()?!1:Or()?!0:Rt()),Ar=f(()=>{let e=Lt();if(e)return $i(e)||void 0}),jr=f(()=>!Cr()||Se()||!Tr()||Dr()?!1:Rt()),Mr=new Map,Nr=e=>{let t=e.elements?.filter(X)??[],n=e.element,r=null;t.length>0?r=t.map(Y):n&&X(n)&&(r=[Y(n)]);let i=e.bounds,a=e.boundsMultiple;r&&(i=r.length>1?Hm(ph(r)):r[0],e.boundsMultiple!==void 0&&(a=e.boundsMultiple.length>1&&e.boundsMultiple.length===e.elements?.length?r:[i]));let o=Mr.get(e.id),s=o?.boundsMultiple,c=s===a||s!==void 0&&a!==void 0&&s.length===a.length&&s.every((e,t)=>e.x===a[t].x&&e.y===a[t].y&&e.width===a[t].width&&e.height===a[t].height);if(o&&o.status===e.status&&o.errorMessage===e.errorMessage&&o.bounds.x===i.x&&o.bounds.y===i.y&&o.bounds.width===i.width&&o.bounds.height===i.height&&c)return o;let l=i.x+i.width/2,u=i.width/2,d;d=e.mouseXOffsetRatio!==void 0&&u>0?l+e.mouseXOffsetRatio*u:e.mouseXOffsetFromCenter===void 0?e.mouseX??l:l+e.mouseXOffsetFromCenter;let f={...e,bounds:i,boundsMultiple:a,mouseX:d};return Mr.set(e.id,f),f},Pr=f(()=>{if(!Cr()||!s.store.theme.grabbedBoxes.enabled)return[];h();let e=new Set(l.labelInstances.map(e=>e.id));for(let t of Mr.keys())e.has(t)||Mr.delete(t);return l.labelInstances.map(Nr)}),Fr=f(()=>new Map(Pr().map(e=>[e.id,e]))),Ir=new Map,Lr=f(()=>{let e=Pr(),t=new Set(e.map(e=>e.id));for(let e of Ir.keys())t.has(e)||Ir.delete(e);return e.map(e=>{let t=Ir.get(e.id);if(t)return t;let n=e.id,r={read:()=>Fr().get(n)??null};return Ir.set(n,r),r})}),Rr=f(()=>!Cr()||!s.store.theme.grabbedBoxes.enabled?[]:(h(),l.grabbedBoxes.map(e=>X(e.element)?{...e,bounds:Y(e.element)}:e))),zr=f(()=>Cr()&&Er()&&ct()&&w()),Br=f(()=>E()?`processing`:`hover`),Vr=f(()=>{if(!Cr())return!1;let e=Tr(),t=O(),n=E(),r=ct(),i=C(),a=!!jt(),o=me(),s=S();return!e||t||o&&!s?!1:n?!0:r&&!i&&a}),Hr=f(()=>{h();let e=l.contextMenuElement;return e?Y(e):null}),Ur=f(()=>(h(),l.contextMenuPosition)),Wr=f(()=>{let e=l.contextMenuElement;if(!e)return;let t=l.frozenElements.length;return t>1?`${t} elements`:$i(e)||void 0}),[Gr]=Iu(()=>l.frozenElements.length>1?null:l.contextMenuElement),[Kr]=m(()=>l.contextMenuElement,async e=>e?gu(e):null),qr=async e=>{u.incrementSelectionInteractionLockDepth();try{return await e()}finally{u.decrementSelectionInteractionLockDepth()}},Jr=(e,t,n,r,i)=>async a=>{await qr(async()=>{let o=i?.fallbackBounds??null,s=i?.fallbackSelectionBounds??[],c=i?.position??l.contextMenuPosition??p(),d=Bt(),f=Hr()??o,m=t.length>1,h=m?Hm(ph(d)):f,g=l.wasActivatedByToggle,_;if(_=m?d:f?[f]:s,u.hideContextMenu(),h){let i=m?h.x+h.width/2:c.x,o=pt.createInstance(h,n||`element`,r,`copying`,{element:e,mouseX:i,elements:m?t:void 0,boundsMultiple:_}),s=!1,l;try{s=await a(),s||(l=`Failed to copy`)}catch(e){l=jd(e,`Action failed`)}pt.updateAfterCopy(o,s,l)}else try{await a()}catch(e){Z(new Bi(`Action failed without feedback bounds`,e))}g?K():u.unfreeze()})},Yr=()=>{setTimeout(()=>{u.hideContextMenu()},0)},Xr=e=>{let{element:t,filePath:n,lineNumber:r,tagName:i,componentName:a,position:o,performWithFeedbackOptions:c,shouldDeferHideContextMenu:d,onBeforeCopy:f,onBeforePrompt:p,customEnterPromptMode:m}=e,h=l.frozenElements.length>0?l.frozenElements:[t],g=d?Yr:u.hideContextMenu,_={element:t,elements:h,filePath:n,lineNumber:r,componentName:a,tagName:i,enterPromptMode:m??(()=>{pt.clearAll(),vn(),p?.(),Ae(t,o.x,o.y),u.setPointer({x:o.x,y:o.y}),u.setFrozenElement(t),je(),x()||dn(),g()}),copy:()=>{vn(),f?.(),Ot({element:t,cursorX:o.x,selectedElements:h.length>1?h:void 0,shouldDeactivateAfter:l.wasActivatedByToggle}),g()},hooks:{transformHtmlContent:s.hooks.transformHtmlContent,onOpenFile:s.hooks.onOpenFile,transformOpenFileUrl:s.hooks.transformOpenFileUrl},performWithFeedback:Jr(t,h,i,a,c),hideContextMenu:g,cleanup:()=>{l.wasActivatedByToggle?K():u.unfreeze()}},v=s.hooks.transformActionContext(_);return{..._,...v}},Zr=f(()=>{let e=l.contextMenuElement;if(!e)return;let t=Kr(),n=l.contextMenuPosition??p();return Xr({element:e,filePath:t?.filePath,lineNumber:t?.lineNumber??void 0,tagName:Wr(),componentName:Gr(),position:n,shouldDeferHideContextMenu:!0,onBeforeCopy:()=>{P.clear()},customEnterPromptMode:()=>{pt.clearAll(),vn(),u.clearInputText(),u.enterPromptMode(n,e),Yr()}})}),Qr=()=>{setTimeout(()=>{u.hideContextMenu(),K()},0)},$r=()=>{if(!M)return null;let e=M.getBoundingClientRect(),t=$_(e);return t===`left`||t===`right`?{x:t===`left`?e.right:e.left,y:e.top+e.height/2,edge:t}:{x:e.left+e.width/2,y:t===`top`?e.bottom:e.top,edge:t}},ei=(e,t)=>{let n=null,r=()=>{let i=e();i&&t(i),n=Bu(r)};return r(),()=>{n!==null&&(Vu(n),n=null)}};d(()=>{if(!Ft())return;let e=ei($r,xe);y(()=>{e(),xe(null)})});let ti=()=>{N?.(),N=null,ye(null)},ni=()=>{u.hideContextMenu(),ti()},ri=()=>{ve()===null?(u.hideContextMenu(),N?.(),N=ei($r,ye)):ti()},ii=e=>{De({defaultAction:e}),Qe()&&yn(e)},ai=e=>{let t=l.labelInstances.find(t=>t.id===e);if(!t?.element||!X(t.element))return;let n=t.element,r=Ci(Y(n)),i={x:t.mouseX??r.x,y:r.y},a=t.elements&&t.elements.length>0?t.elements.filter(e=>X(e)):[n];setTimeout(()=>{ti(),x()||(u.setWasActivatedByToggle(!0),dn()),u.setPointer(i),u.setFrozenElements(a),a.length>1&&t.bounds&&u.setFrozenDragRect(Vm(t.bounds)),u.freeze(),u.showContextMenu(i,n)},0)};d(()=>{let e=s.store.theme.hue;e===0?br.style.filter=``:br.style.filter=`hue-rotate(${e}deg)`}),s.store.theme.enabled&&Promise.resolve().then(()=>(dS(),lS)).then(({ReactGrabRenderer:e})=>{t||(i=Je(()=>j(e,{get selectionVisible(){return kr()},get selectionBounds(){return Ut()},get selectionBoundsMultiple(){return $t()},get selectionShouldSnap(){return l.frozenElements.length>0||Qt().length>0},get selectionElementsCount(){return l.frozenElements.length},get frozenLabelEntryAccessors(){return nn()},get pendingShiftPreviewEntry(){return rn()??void 0},get selectionFilePath(){return l.selectionFilePath??void 0},get selectionTagName(){return Ar()},get selectionComponentName(){return nt()},get selectionLabelVisible(){return jr()},selectionLabelStatus:`idle`,get hierarchyState(){return cr()},get hierarchyMenuPosition(){return be()},get labelInstances(){return Pr()},get labelInstanceAccessors(){return Lr()},get dragVisible(){return zr()},get dragBounds(){return Xt()},get grabbedBoxes(){return Rr()},get mouseX(){return vt(()=>l.frozenElements.length>1)()?void 0:on()??an().x},get isFrozen(){return S()||x()||me()},get inputValue(){return l.inputText},get isPromptMode(){return O()},onShowContextMenuInstance:ai,onRetryInstance:Ct,onAcknowledgeErrorInstance:wt,get onLabelInstanceHoverChange(){return pt.handleHoverChange},get onInputChange(){return u.setInputText},onInputSubmit:()=>void mn(),get selectionLabelShakeCount(){return ue()},onConfirmDismiss:gn,onOpenSelectionFile:ir,get discardPrompt(){return vt(()=>!!P.isPendingDismiss())()?{isKeyboardSelection:!0,onConfirm:gn,onCopy:Zn}:ne()?{onConfirm:gn,onCancel:_n}:void 0},get toolbarVisible(){return s.store.theme.toolbar.enabled},get isActive(){return x()},onToggleActive:wn,get activeActionId(){return it()},get enabled(){return oe()},get shakeCount(){return ce()},onToolbarStateChange:e=>{pe(e),e.enabled!==oe()&&(se(e.enabled),e.enabled||(fn(),ni())),fv(o,e)},onSubscribeToToolbarStateChanges:e=>(o.add(e),()=>{o.delete(e)}),onToolbarSelectHoverChange:he,onToolbarRef:e=>{M=e},get contextMenuPosition(){return Ur()},get contextMenuBounds(){return Hr()},get contextMenuTagName(){return Wr()},get contextMenuComponentName(){return Gr()},get contextMenuHasFilePath(){return!!Kr()?.filePath},get actions(){return s.store.actions},get actionContext(){return Zr()},onContextMenuDismiss:Qr,onContextMenuHide:Yr,get toolbarMenuPosition(){return ve()},get toolbarMenuActions(){return s.store.actions.filter(e=>e.showInToolbarMenu===!0)},get defaultActionId(){return fe()?.defaultAction??`copy`},get defaultActionLabel(){return Tn()},onSetDefaultAction:ii,onToggleToolbarMenu:ri,onToolbarMenuDismiss:ti}),br))}).catch(e=>{console.warn(`[react-grab] Failed to load renderer:`,e)});let oi={activate:()=>{u.setPendingCommentMode(!1),!x()&&oe()&&pn()},deactivate:()=>{x()||E()?K():yt()},toggle:()=>{x()||E()?K():oe()&&pn()},comment:Mn,isActive:()=>x(),isEnabled:()=>oe(),setEnabled:e=>{e!==oe()&&(se(e),De({enabled:e,collapsed:!e}),e||(fn(),ni()))},getToolbarState:()=>fe()??Ph(),setToolbarState:e=>{let t=fe()??Ph(),n=e.collapsed??t?.collapsed??!1,r=e.defaultAction??t?.defaultAction??`copy`,i={edge:e.edge??t?.edge??`bottom`,ratio:e.ratio??t?.ratio??.5,collapsed:n,enabled:e.enabled??!n,defaultAction:qm(r)};Fh(i),pe(i),i.enabled!==oe()&&(se(i.enabled),i.enabled||(fn(),ni())),fv(o,i)},onToolbarStateChange:e=>(o.add(e),()=>{o.delete(e)}),reset:()=>{fn(),ni(),u.clearGrabbedBoxes(),pt.clearAll(),u.setSelectionSource(null,null)},dispose:()=>{if(t)return;let n=[];t=!0,mS=!1,Q(yt,n),Q(pt.clearAll,n),i&&Q(i,n),i=void 0,N&&Q(N,n),N=null,o.clear(),Q(e,n),Q(()=>Tv(oi),n),lp(n,`Disposing React Grab failed`)},copyElement:async e=>{let t=Array.isArray(e)?e:[e];return t.length===0?!1:(await Tt(t,gt())).status===`succeeded`},getSource:async e=>{let t=await gu(e);return t?{filePath:t.filePath,lineNumber:t.lineNumber,columnNumber:t.columnNumber??null,componentName:t.componentName}:null},getStackContext:e=>ku(e,{maxLines:s.store.options.maxContextLines}),getState:()=>({isActive:x(),isDragging:C(),isCopying:E(),isPromptMode:O(),isSelectionBoxVisible:!!kr(),isDragBoxVisible:!!zr(),targetElement:At(),dragBounds:Xt()??null,grabbedBoxes:[...sn()],labelInstances:[...cn()],selectionFilePath:l.selectionFilePath,toolbarState:fe()}),setOptions:e=>{s.setOptions(e)},registerPlugin:e=>{s.register(e,oi)},unregisterPlugin:e=>{s.unregister(e)},getPlugins:()=>s.getPluginNames(),getDisplayName:_u};for(let e of fS)s.register(e,oi);return queueMicrotask(()=>{if(t)return;let e=fe();if(!e)return;let n=qm(e.defaultAction??`copy`);n!==e.defaultAction&&De({defaultAction:n})}),setTimeout(()=>{el(!0)},Ln),oi})};return Qi(),typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(wv((window.__REACT_GRAB__??(()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}})())||hS()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:Cv()}))),e.DEFAULT_THEME=mh,e.FreezeError=Vi,e.OpenFileError=Hi,e.PluginSetupError=Gi,e.ReactGrabError=zi,e.commentPlugin=zh,e.formatElementInfo=ju,e.generateSnippet=Ov,e.getGlobalApi=Cv,e.getStack=cu,e.init=hS,e.isInstrumentationActive=Br,e.openPlugin=Bh,e.registerPlugin=Ev,e.setGlobalApi=wv,e.unregisterPlugin=Dv,e})({});