grab 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -103,23 +103,12 @@ export default function Document() {
103
103
 
104
104
  #### Vite
105
105
 
106
- Add this to your `index.html`:
107
-
108
- ```html
109
- <!doctype html>
110
- <html lang="en">
111
- <head>
112
- <script type="module">
113
- if (import.meta.env.DEV) {
114
- import("grab");
115
- }
116
- </script>
117
- </head>
118
- <body>
119
- <div id="root"></div>
120
- <script type="module" src="/src/main.tsx"></script>
121
- </body>
122
- </html>
106
+ Add this at the top of your main entry file (e.g., `src/main.tsx`):
107
+
108
+ ```tsx
109
+ if (import.meta.env.DEV) {
110
+ import("grab");
111
+ }
123
112
  ```
124
113
 
125
114
  #### Webpack
@@ -204,122 +193,6 @@ actions: [
204
193
 
205
194
  See [`packages/react-grab/src/types.ts`](https://github.com/aidenybai/react-grab/blob/main/packages/react-grab/src/types.ts) for the full `Plugin`, `PluginHooks`, and `PluginConfig` interfaces.
206
195
 
207
- ## Primitives
208
-
209
- Use primitives to build your own element selector from scratch. Unlike plugins, primitives are standalone utility functions that don't depend on React Grab being initialized.
210
-
211
- If you're using primitives to build a custom UI and don't want the default React Grab overlay, disable auto-initialization before importing `react-grab`:
212
-
213
- ```html
214
- <script>
215
- window.__REACT_GRAB_DISABLED__ = true;
216
- </script>
217
- ```
218
-
219
- Here's a simple example of how to build your own element selector with hover highlight and one-click inspection:
220
-
221
- ```bash
222
- npm install grab@latest
223
- ```
224
-
225
- ```tsx
226
- import { useState } from "react";
227
- import {
228
- getElementContext,
229
- freeze,
230
- unfreeze,
231
- openFile,
232
- type ReactGrabElementContext,
233
- } from "grab/primitives";
234
-
235
- const useElementSelector = (
236
- onSelect: (context: ReactGrabElementContext) => void,
237
- ) => {
238
- const [isActive, setIsActive] = useState(false);
239
-
240
- const startSelecting = () => {
241
- setIsActive(true);
242
-
243
- const highlightOverlay = document.createElement("div");
244
- Object.assign(highlightOverlay.style, {
245
- position: "fixed",
246
- pointerEvents: "none",
247
- zIndex: "999999",
248
- border: "2px solid #3b82f6",
249
- transition: "all 75ms ease-out",
250
- display: "none",
251
- });
252
- document.body.appendChild(highlightOverlay);
253
-
254
- const handleMouseMove = ({ clientX, clientY }: MouseEvent) => {
255
- highlightOverlay.style.display = "none";
256
- const target = document.elementFromPoint(clientX, clientY);
257
- if (!target) return;
258
- const { top, left, width, height } = target.getBoundingClientRect();
259
- Object.assign(highlightOverlay.style, {
260
- top: `${top}px`,
261
- left: `${left}px`,
262
- width: `${width}px`,
263
- height: `${height}px`,
264
- display: "block",
265
- });
266
- };
267
-
268
- const handleClick = async ({ clientX, clientY }: MouseEvent) => {
269
- highlightOverlay.style.display = "none";
270
- const target = document.elementFromPoint(clientX, clientY);
271
- teardown();
272
- if (!target) return;
273
- freeze();
274
- onSelect(await getElementContext(target));
275
- unfreeze();
276
- };
277
-
278
- const teardown = () => {
279
- document.removeEventListener("mousemove", handleMouseMove);
280
- document.removeEventListener("click", handleClick, true);
281
- highlightOverlay.remove();
282
- setIsActive(false);
283
- };
284
-
285
- document.addEventListener("mousemove", handleMouseMove);
286
- document.addEventListener("click", handleClick, true);
287
- };
288
-
289
- return { isActive, startSelecting };
290
- };
291
-
292
- const ElementSelector = () => {
293
- const [context, setContext] = useState<ReactGrabElementContext | null>(null);
294
- const selector = useElementSelector(setContext);
295
-
296
- return (
297
- <div>
298
- <button onClick={selector.startSelecting} disabled={selector.isActive}>
299
- {selector.isActive ? "Selecting…" : "Select Element"}
300
- </button>
301
- {context && (
302
- <div>
303
- <p>Component: {context.componentName}</p>
304
- <p>Selector: {context.selector}</p>
305
- <pre>{context.stackString}</pre>
306
- <button
307
- onClick={() => {
308
- const frame = context.stack[0];
309
- if (frame?.fileName) openFile(frame.fileName, frame.lineNumber);
310
- }}
311
- >
312
- Open in Editor
313
- </button>
314
- </div>
315
- )}
316
- </div>
317
- );
318
- };
319
- ```
320
-
321
- See [`packages/react-grab/src/primitives.ts`](https://github.com/aidenybai/react-grab/blob/main/packages/react-grab/src/primitives.ts) for the full `ReactGrabElementContext`, `getElementContext`, `freeze`, `unfreeze`, and `openFile` primitives.
322
-
323
196
  ## Resources & Contributing Back
324
197
 
325
198
  Want to try it out? Check out [our demo](https://react-grab.com).
@@ -0,0 +1,12 @@
1
+ 'use strict';var chunk3HCPVIMZ_cjs=require('./chunk-3HCPVIMZ.cjs'),finder=require('@medv/finder');/**
2
+ * @license MIT
3
+ *
4
+ * Copyright (c) 2025 Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ var p=t=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(t):t.replace(/[^a-zA-Z0-9_-]/g,e=>`\\${e}`),E=t=>t.ownerDocument.body??t.ownerDocument.documentElement,S=new Set(["data-testid","data-test-id","data-test","data-cy","data-qa","aria-label","role","name","title","alt"]),y=t=>t.length>0&&t.length<=chunk3HCPVIMZ_cjs.t,f=(t,e)=>{try{let r=t.ownerDocument.querySelectorAll(e);return r.length===1&&r[0]===t}catch{return false}},C=t=>{if(t instanceof HTMLElement&&t.id){let e=`#${p(t.id)}`;if(f(t,e))return e}for(let e of S){let r=t.getAttribute(e);if(!r||!y(r))continue;let n=JSON.stringify(r),o=`[${e}=${n}]`;if(f(t,o))return o;let s=`${t.tagName.toLowerCase()}${o}`;if(f(t,s))return s}return null},T=t=>{let e=[],r=E(t),n=t;for(;n;){if(n instanceof HTMLElement&&n.id){e.unshift(`#${p(n.id)}`);break}let o=n.parentElement;if(!o){e.unshift(n.tagName.toLowerCase());break}let i=Array.from(o.children).indexOf(n),a=i>=0?i+1:1;if(e.unshift(`${n.tagName.toLowerCase()}:nth-child(${a})`),o===r){e.unshift(r.tagName.toLowerCase());break}n=o;}return e.join(" > ")},_=(t,e=true)=>{let r=C(t);if(r)return r;if(e)try{let n=finder.finder(t,{root:E(t),timeoutMs:chunk3HCPVIMZ_cjs.s,attr:(o,s)=>finder.attr(o,s)||S.has(o)&&y(s)});if(n)return n}catch{}return T(t)};var w=new Map(["top","right","bottom","left"].flatMap(t=>[[`border-${t}-style`,t],[`border-${t}-color`,t]])),c=null,d=new Map,M=()=>c||(c=document.createElement("iframe"),c.style.cssText="position:fixed;left:-9999px;width:0;height:0;border:none;visibility:hidden;",document.body.appendChild(c),c),$=t=>{let e=d.get(t);if(e)return e;let r=M(),n=r.contentDocument,o=n.createElement(t);n.body.appendChild(o);let s=r.contentWindow.getComputedStyle(o),i=new Map;for(let a of chunk3HCPVIMZ_cjs.Va){let l=s.getPropertyValue(a);l&&i.set(a,l);}return o.remove(),d.set(t,i),i},A=(t,e)=>{let r=w.get(t);if(!r)return false;let n=e.getPropertyValue(`border-${r}-width`);return n==="0px"||n==="0"},D=t=>{let e=t.tagName.toLowerCase(),r=$(e),n=getComputedStyle(t),o=[];for(let a of chunk3HCPVIMZ_cjs.Va){let l=n.getPropertyValue(a);l&&l!==r.get(a)&&(A(a,n)||o.push(`${a}: ${l};`));}let s=t.getAttribute("class")?.trim(),i=o.join(`
10
+ `);return s?i?`className: ${s}
11
+
12
+ ${i}`:`className: ${s}`:i},x=()=>{c?.remove(),c=null,d.clear();};exports.a=_;exports.b=D;exports.c=x;
@@ -0,0 +1,83 @@
1
+ 'use strict';var elementSource=require('element-source');/**
2
+ * @license MIT
3
+ *
4
+ * Copyright (c) 2025 Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ var A=null,ve=()=>{if(A!==null)return A;try{A=window.matchMedia("(color-gamut: p3)").matches;}catch{A=false;}return A};var Ft=ve(),xt="210, 57, 192",It="0.84 0.19 0.78",S=e=>Ft?`color(display-p3 ${It} / ${e})`:`rgba(${xt}, ${e})`;var Wn="0.1.29",Xn=8,Yn=-1e3,Kn=.95,Zn=1500,Qn=100,qn=150,Jn=50,er=200,tr=500,nr=200,rr=400,or=600,sr=100,Fe=3,ir=200,ar=1e4,lr=200,cr=120,ur=600,pr=2,mr=32,fr=200,dr=100,Er=32,_r=16,gr=100,Tr=25,br=10,Sr=2147483647,hr=2147483647,Rr=2147483645,Or=.7,yr=.5,Nr=.01,Ar=100,Cr=2,vr=S(.4),Fr=S(.05),xr=S(.5),Ir=S(.08),Lr=S(.15),Pr=50,Dr=8,wr=4,Mr=.2,kr=50,Hr=16,Vr=4,ne=100,xe=15,Ie=3,re=["id","class","aria-label","data-testid","role","name","title"],Gr=["Meta","Control","Shift","Alt"],Ur=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),C="data-react-grab-frozen",oe="data-react-grab-ignore",v=.9,Le=1e3,Pe=2147483600,zr=400,Br=100,jr=16,$r=500,Wr=300,Xr=5,Yr=150,Kr=14,Zr=28,Qr=150,qr=50,Jr=78,eo=28,to=.5,no="comment",ro=1500,oo=3e3,so=3,io="animate-[hint-flip-in_var(--transition-normal)_ease-out]",ao=.75,lo=32,co=3,uo=20,po=100,mo=1,fo=50,Eo=50,_o=6,go=3,se=2,De=16,we=100,Me=50,To=.01,bo=1e3,So=20,ho=2*1024*1024,Ro=100,Oo=200,yo=8,No=8,Ao=8,Co=11,vo=180,Fo=280,xo=100,Io={left:-9999,top:-9999},Lo={left:"left center",right:"right center",top:"center top",bottom:"center bottom"},Po=1e3,Do=95,wo=229,Mo=-9999,ko=new Set(["display","position","top","right","bottom","left","z-index","overflow","overflow-x","overflow-y","width","height","min-width","min-height","max-width","max-height","margin-top","margin-right","margin-bottom","margin-left","padding-top","padding-right","padding-bottom","padding-left","flex-direction","flex-wrap","justify-content","align-items","align-self","align-content","flex-grow","flex-shrink","flex-basis","order","gap","row-gap","column-gap","grid-template-columns","grid-template-rows","grid-template-areas","font-family","font-size","font-weight","font-style","line-height","letter-spacing","text-align","text-decoration-line","text-decoration-style","text-transform","text-overflow","text-shadow","white-space","word-break","overflow-wrap","vertical-align","color","background-color","background-image","background-position","background-size","background-repeat","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","box-shadow","opacity","transform","filter","backdrop-filter","object-fit","object-position"]);var h=e=>(e.tagName||"").toLowerCase();var ie=typeof window<"u",Lt=e=>0,Pt=e=>{},F=ie?(Object.getOwnPropertyDescriptor(Window.prototype,"requestAnimationFrame")?.value??window.requestAnimationFrame).bind(window):Lt,U=ie?(Object.getOwnPropertyDescriptor(Window.prototype,"cancelAnimationFrame")?.value??window.cancelAnimationFrame).bind(window):Pt,Go=()=>ie?new Promise(e=>F(()=>e())):Promise.resolve();var ae="0.5.32",B=`bippy-${ae}`,ke=Object.defineProperty,Dt=Object.prototype.hasOwnProperty,x=()=>{},Ve=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{}},j=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&"getFiberRoots"in e),Ge=false,He,I=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>Ge?true:(e&&typeof e.inject=="function"&&(He=e.inject.toString()),!!He?.includes("(injected)")),z=new Set,R=new Set,le=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:B,checkDCE:Ve,hasUnsupportedRendererAttached:false,inject(o){let s=++n;return t.set(s,o),R.add(o),r._instrumentationIsActive||(r._instrumentationIsActive=true,z.forEach(i=>i())),s},on:x,onCommitFiberRoot:x,onCommitFiberUnmount:x,onPostCommitFiberRoot:x,renderers:t,supportsFiber:true,supportsFlight:true};try{ke(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(i){if(i&&typeof i=="object"){let a=r.renderers;r=i,a.size>0&&(a.forEach((l,p)=>{R.add(l),i.renderers.set(p,l);}),L(e));}}});let o=window.hasOwnProperty,s=!1;ke(window,"hasOwnProperty",{configurable:!0,value:function(...i){try{if(!s&&i[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,s=!0,-0}catch{}return o.apply(this,i)},writable:!0});}catch{L(e);}return r},L=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Ve,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=B,t._instrumentationIsActive=!1;let n=j(t);if(n||(t.on=x),t.renderers.size){t._instrumentationIsActive=!0,z.forEach(s=>s());return}let r=t.inject,o=I(t);o&&!n&&(Ge=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=s=>{let i=r(s);return R.add(s),o&&t.renderers.set(i,s),t._instrumentationIsActive=!0,z.forEach(a=>a()),i};}(t.renderers.size||t._instrumentationIsActive||I())&&e?.();}catch{}},ce=()=>Dt.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),d=e=>ce()?(L(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):le(e),ue=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),$=()=>{try{ue()&&d();}catch{}};var O=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return true;default:return false}};function W(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let s=n?e.return:e.child;for(;s;){let i=await me(s,t,n);if(i)return i;s=n?null:s.sibling;}return null})();if(r===true)return e;let o=n?e.return:e.child;for(;o;){let s=pe(o,t,n);if(s)return s;o=n?null:o.sibling;}return null}var pe=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let o=pe(r,t,n);if(o)return o;r=n?null:r.sibling;}return null},me=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let o=await me(r,t,n);if(o)return o;r=n?null:r.sibling;}return null};var fe=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?fe(t.type||t.render):null},P=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=fe(t);return r&&(r.displayName||r.name)||null};var D=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return !!e?._instrumentationIsActive||j(e)||I(e)};var E=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null},de=new Set;$();var X=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e;var Zt=new Set(["_","$","motion.","styled.","chakra.","ark.","Primitive.","Slot."]),Qt=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),qt=new Set(["Suspense","Fragment","StrictMode","Profiler","SuspenseList"]),ze=e=>{if(!e||Qt.has(e)||qt.has(e))return false;for(let t of Zt)if(e.startsWith(t))return false;return !(e==="SlotClone"||e==="Slot")},Be=e=>{if(!D())return e;let t=e;for(;t;){if(E(t))return t;t=t.parentElement;}return e},Zs=e=>{if(!D())return null;let t=Be(e),n=E(t);if(!n)return null;let r=n.return;for(;r;){if(O(r)){let o=P(r.type);if(o&&ze(o))return o}r=r.return;}return null},Jt=(e,t)=>{if(!D())return [];let n=E(e);if(!n)return [];let r=[];return W(n,o=>{if(r.length>=t)return true;if(O(o)){let s=P(o.type);s&&ze(s)&&r.push(s);}return false},true),r},en=async(e,t={})=>{let n=t.maxLines??Fe,r=await elementSource.resolveStack(e);if(r.length>0)return elementSource.formatStack(r,n);let o=Jt(e,n);return o.length>0?o.map(s=>`
10
+ in ${s}`).join(""):""},Qs=async(e,t={})=>{let n=Be(e),r=rn(n),o=await en(n,t);return o?`${r}${o}`:tn(n)},tn=e=>{let t=h(e);if(!(e instanceof HTMLElement)){let s=nn(e,{truncate:false,maxAttrs:re.length});return `<${t}${s} />`}let n=e.innerText?.trim()??e.textContent?.trim()??"",r="";for(let{name:s,value:i}of e.attributes)r+=` ${s}="${i}"`;let o=X(n,ne);return o.length>0?`<${t}${r}>
11
+ ${o}
12
+ </${t}>`:`<${t}${r} />`},je=e=>X(e,xe),nn=(e,t={})=>{let{truncate:n=true,maxAttrs:r=Ie}=t,o=[];for(let s of re){if(o.length>=r)break;let i=e.getAttribute(s);if(i){let a=n?je(i):i;o.push(`${s}="${a}"`);}}return o.length>0?` ${o.join(" ")}`:""},rn=e=>{let t=h(e),n=e instanceof HTMLElement?e.innerText?.trim()??e.textContent?.trim()??"":e.textContent?.trim()??"",r="";for(let{name:u,value:te}of e.attributes)r+=` ${u}="${je(te)}"`;let o=[],s=[],i=false,a=Array.from(e.childNodes);for(let u of a)u.nodeType!==Node.COMMENT_NODE&&(u.nodeType===Node.TEXT_NODE?u.textContent&&u.textContent.trim().length>0&&(i=true):u instanceof Element&&(i?s.push(u):o.push(u)));let l=u=>u.length===0?"":u.length<=2?u.map(te=>`<${h(te)} ...>`).join(`
13
+ `):`(${u.length} elements)`,p="",Ae=l(o);Ae&&(p+=`
14
+ ${Ae}`),n.length>0&&(p+=`
15
+ ${X(n,ne)}`);let Ce=l(s);return Ce&&(p+=`
16
+ ${Ce}`),p.length>0?`<${t}${r}>${p}
17
+ </${t}>`:`<${t}${r} />`};var $e=e=>{let t=h(e);return t==="html"||t==="body"};var We=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var on=e=>{if(e.hasAttribute("data-react-grab"))return true;let t=e.getRootNode();return t instanceof ShadowRoot&&t.host.hasAttribute("data-react-grab")},sn=e=>e.hasAttribute(oe)||e.closest(`[${oe}]`)!==null,an=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents==="none"&&e.position==="fixed"&&!isNaN(t)&&t>=Pe},ln=(e,t)=>{let n=t.position;if(n!=="fixed"&&n!=="absolute")return false;let r=e.getBoundingClientRect();if(!(r.width/window.innerWidth>=v&&r.height/window.innerHeight>=v))return false;let s=t.backgroundColor;if(s==="transparent"||s==="rgba(0, 0, 0, 0)"||parseFloat(t.opacity)<.1)return true;let a=parseInt(t.zIndex,10);return !isNaN(a)&&a>Le},Y=new WeakMap,si=()=>{Y=new WeakMap;},Ee=e=>{if($e(e)||on(e)||sn(e))return false;let t=performance.now(),n=Y.get(e);if(n&&t-n.timestamp<Me)return n.isVisible;let r=window.getComputedStyle(e);return We(e,r)?e.clientWidth/window.innerWidth>=v&&e.clientHeight/window.innerHeight>=v&&(an(r)||ln(e,r))?false:(Y.set(e,{isVisible:true,timestamp:t}),true):(Y.set(e,{isVisible:false,timestamp:t}),false)};var _=null,g=null,Xe=()=>{g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,ge();},we);},Te=()=>{g!==null&&(clearTimeout(g),g=null);},cn=(e,t,n,r)=>{let o=Math.abs(e-n),s=Math.abs(t-r);return o<=se&&s<=se},ui=(e,t)=>{Te(),_e();let n=document.elementsFromPoint(e,t);return Xe(),n},pi=(e,t)=>{let n=performance.now();if(_){let s=cn(e,t,_.clientX,_.clientY),i=n-_.timestamp<De;if(s||i)return _.element}Te(),_e();let r=null,o=document.elementFromPoint(e,t);if(o&&Ee(o))r=o;else {let s=document.elementsFromPoint(e,t);for(let i of s)if(i!==o&&Ee(i)){r=i;break}}return Xe(),_={clientX:e,clientY:t,element:r,timestamp:n},r},Ye=()=>{Te(),ge(),_=null;};var w=(e,t)=>{let n=document.createElement("style");return n.setAttribute(e,""),n.textContent=t,document.head.appendChild(n),n};var un="html { pointer-events: none !important; }",qe=["mouseenter","mouseleave","mouseover","mouseout","pointerenter","pointerleave","pointerover","pointerout"],Je=["focus","blur","focusin","focusout"],et=["background-color","color","border-color","box-shadow","transform","opacity","outline","filter","scale","visibility"],tt=["background-color","color","border-color","box-shadow","outline","outline-offset","outline-width","outline-color","outline-style","filter","opacity","ring-color","ring-width"],nt=new Map,be=new Map,f=null,rt=e=>{e.stopImmediatePropagation();},ot=e=>{e.preventDefault(),e.stopImmediatePropagation();},pn=(e,t)=>{let n=new Map;for(let r of t){let o=e.style.getPropertyValue(r);o&&n.set(r,o);}return n},Ke=(e,t,n)=>{let r=[];for(let o of document.querySelectorAll(e)){if(!(o instanceof HTMLElement)||n?.has(o))continue;let s=getComputedStyle(o),i=o.style.cssText,a=pn(o,t);for(let l of t){let p=s.getPropertyValue(l);p&&(i+=`${l}: ${p} !important; `);}r.push({element:o,frozenStyles:i,originalPropertyValues:a});}return r},Ze=(e,t)=>{for(let{element:n,frozenStyles:r,originalPropertyValues:o}of e)t.set(n,o),n.style.cssText=r;},Qe=(e,t)=>{for(let[n,r]of e)for(let o of t){let s=r.get(o);s?n.style.setProperty(o,s):n.style.removeProperty(o);}e.clear();},_e=()=>{f&&(f.disabled=true);},ge=()=>{f&&(f.disabled=false);},_i=()=>{if(f)return;for(let n of qe)document.addEventListener(n,rt,true);for(let n of Je)document.addEventListener(n,ot,true);let e=Ke(":hover",et),t=Ke(":focus, :focus-visible",tt,be);Ze(e,nt),Ze(t,be),f=w("data-react-grab-frozen-pseudo",un);},gi=()=>{Ye();for(let e of qe)document.removeEventListener(e,rt,true);for(let e of Je)document.removeEventListener(e,ot,true);Qe(nt,et),Qe(be,tt),f?.remove(),f=null;};var st=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,mn=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/","/(app-pages-browser)/"],fn=["<anonymous>","eval",""],dn=/\.(jsx|tsx|ts|js)$/;var En=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/;var it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_n=new Uint8Array(64),gn=new Uint8Array(128);for(let e=0;e<it.length;e++){let t=it.charCodeAt(e);_n[e]=t,gn[t]=e;}var at=e=>e.split("/").filter(Boolean).length,Tn=e=>e.split("/").filter(Boolean)[0]??null,bn=e=>{let t=e.indexOf("/",1);if(t===-1||at(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!dn.test(n)||at(n)<2)return e;let r=Tn(n);return !r||r.startsWith("@")||r.length>4?e:n},lt=e=>{if(!e||fn.some(s=>s===e))return "";let t=e,n=t.startsWith("http://")||t.startsWith("https://");if(n)try{t=new URL(t).pathname;}catch{}if(n&&(t=bn(t)),t.startsWith("about://React/")){let s=t.slice(14),i=s.indexOf("/"),a=s.indexOf(":");t=i!==-1&&(a===-1||i<a)?s.slice(i+1):s;}let r=true;for(;r;){r=false;for(let s of mn)if(t.startsWith(s)){t=t.slice(s.length),s==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),r=true;break}}if(st.test(t)){let s=t.match(st);s&&(t=t.slice(s[0].length));}if(t.startsWith("//")){let s=t.indexOf("/",2);t=s===-1?"":t.slice(s);}let o=t.indexOf("?");if(o!==-1){let s=t.slice(o);En.test(s)&&(t=t.slice(0,o));}return t};var K,ct=()=>{if(K!==void 0)return K;let e=document.querySelector('script[src*="/_next/"]')?.src,t=e?new URL(e).pathname:"",n=t.indexOf("/_next/");return K=n>0?t.slice(0,n):"",K};var Sn="https://react-grab.com",hn=async(e,t)=>{let n=elementSource.checkIsNextProject(),r=new URLSearchParams({file:e}),o=n?"line1":"line",s=n?"column1":"column";t&&r.set(o,String(t)),r.set(s,"1");let i=n?`${ct()}/__nextjs_launch-editor`:"/__open-in-editor";return (await fetch(`${i}?${r}`)).ok},Ai=async(e,t,n)=>{if(e=lt(e),await hn(e,t).catch(()=>false))return;let o=t?`&line=${t}`:"",s=`${Sn}/open-file?url=${encodeURIComponent(e)}${o}`,i=n?n(s,e,t):s;window.open(i,"_blank","noopener,noreferrer");};var Z=(e,t)=>{};var T=false,m=new Map,ut=-1,pt=new WeakSet,M=new Map,y=new Map,Rn=e=>pt.has(e)?true:!T||!("gsapVersions"in window)||!(new Error().stack??"").includes("_tick")?false:(pt.add(e),true);typeof window<"u"&&(window.requestAnimationFrame=e=>{if(!Rn(e))return F(e);if(T){let n=ut--;return m.set(n,e),n}let t=F(n=>{if(T){let r=ut--;m.set(r,e),M.set(t,r);return}e(n);});return t},window.cancelAnimationFrame=e=>{if(m.has(e)){m.delete(e);return}let t=y.get(e);if(t!==void 0){U(t.nativeId),y.delete(e);return}let n=M.get(e);if(n!==void 0){m.delete(n),M.delete(e);return}U(e);});var mt=()=>{if(!T){T=true,m.clear(),M.clear();for(let[e,{nativeId:t,callback:n}]of y)U(t),m.set(e,n);y.clear();}},ft=()=>{if(T){T=false;for(let[e,t]of m.entries()){let n=F(r=>{y.delete(e),t(r);});y.set(e,{nativeId:n,callback:t});}m.clear(),M.clear();}};var On=`
18
+ [${C}],
19
+ [${C}] * {
20
+ animation-play-state: paused !important;
21
+ transition: none !important;
22
+ }
23
+ `,yn=`
24
+ *, *::before, *::after {
25
+ animation-play-state: paused !important;
26
+ transition: none !important;
27
+ }
28
+ `,Et="svg",dt=null,b=[],k=[],Se=[],N=null,Q=[],H=new Map,V=[],Nn=()=>{dt||(dt=w("data-react-grab-frozen-styles",On));},An=(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),_t=e=>{let t=new Set;for(let n of e){n instanceof SVGSVGElement?t.add(n):n instanceof SVGElement&&n.ownerSVGElement&&t.add(n.ownerSVGElement);for(let r of n.querySelectorAll(Et))r instanceof SVGSVGElement&&t.add(r);}return [...t]},gt=(e,t)=>{let n=Reflect.get(e,t);typeof n=="function"&&n.call(e);},Tt=e=>{for(let t of e){let n=H.get(t)??0;n===0&&gt(t,"pauseAnimations"),H.set(t,n+1);}},bt=e=>{for(let t of e){let n=H.get(t);if(n){if(n===1){H.delete(t),gt(t,"unpauseAnimations");continue}H.set(t,n-1);}}},Cn=e=>{let t=[];for(let n of e)for(let r of n.getAnimations({subtree:true}))r.playState==="running"&&t.push(r);return t},St=e=>{for(let t of e)try{t.finish();}catch{}},vn=e=>{if(e.length!==0&&!An(e,Se)){he(),Se=[...e],Nn(),b=e,k=_t(b),Tt(k);for(let t of b)t.setAttribute(C,"");V=Cn(b);for(let t of V)t.pause();}},he=()=>{if(!(b.length===0&&k.length===0&&V.length===0)){for(let e of b)e.removeAttribute(C);bt(k),St(V),b=[],k=[],V=[],Se=[];}},Di=e=>e.length===0?(he(),()=>{}):(vn(e),he),wi=()=>{N||(N=w("data-react-grab-global-freeze",yn),Q=_t(Array.from(document.querySelectorAll(Et))),Tt(Q),mt());},Mi=()=>{if(!N)return;N.textContent=`
29
+ *, *::before, *::after {
30
+ transition: none !important;
31
+ }
32
+ `;let e=[];for(let t of document.getAnimations()){if(t.effect instanceof KeyframeEffect){let n=t.effect.target;if(n instanceof Element&&n.getRootNode()instanceof ShadowRoot)continue}e.push(t);}St(e),N.remove(),N=null,bt(Q),Q=[],ft();};var c=false,Re=(e,t,n)=>{let r=e.get(t);if(r)return r;let o=n();return e.set(t,o),o},ht=new WeakMap,Rt=new WeakMap,Fn=new WeakMap,ye=new Set,Ne=[],G=[],q=new WeakMap,J=new WeakMap,Ot=new WeakSet,yt=de,xn=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Nt=()=>{if(yt.size>0)return yt;let e=new Set,t=n=>{let r=E(n);if(r){let o=xn(r);o&&e.add(o);return}for(let o of Array.from(n.children))if(t(o),e.size>0)return};return t(document.body),e},In=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,o=e===n,s=t===r;return o&&s?(e.next=t,t.next=e):o?(e.next=r,t.next=e):s?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Ln=e=>{if(!e||q.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=()=>c?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,"pending",{configurable:true,enumerable:true,get:()=>c?null:n,set:r=>{if(c){r!==null&&(t.bufferedPending=In(t.bufferedPending??null,r));return}n=r;}}),q.set(e,t);},At=e=>{if(!e)return [];let t=[],n=e.next;if(!n)return [];let r=n;do r&&(t.push(r.action),r=r.next);while(r&&r!==n);return t},Pn=e=>{let t=q.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 r=At(t.pendingValueAtPause??null),o=At(t.bufferedPending??null);for(let s of [...r,...o])G.push(()=>n(s));}q.delete(e);},Dn=e=>{if(J.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,"memoizedValue"),frozenValue:e.memoizedValue};Object.defineProperty(e,"memoizedValue",{configurable:true,enumerable:true,get(){return c?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(n){if(c){t.pendingValue=n,t.didReceivePendingValue=true;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,n):this._memoizedValue=n;}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),J.set(e,t);},wn=e=>{let t=J.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,"memoizedValue",t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),J.delete(e));},Ct=(e,t)=>{let n=e.memoizedState;for(;n;)n.queue&&typeof n.queue=="object"&&t(n.queue),n=n.next;},vt=(e,t)=>{let n=e.dependencies?.firstContext;for(;n&&typeof n=="object"&&"memoizedValue"in n;)t(n),n=n.next;},ee=(e,t)=>{e&&(O(e)&&t(e),ee(e.child,t),ee(e.sibling,t));},Mn=e=>{Ct(e,Ln),vt(e,Dn);},kn=e=>{Ct(e,Pn),vt(e,wn);},Hn=e=>{if(ht.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};ht.set(e,n),t.useState=(...r)=>{let o=n.useState.apply(e,r);if(!c||!Array.isArray(o)||typeof o[1]!="function")return o;let[s,i]=o,a=Re(Rt,i,()=>(...l)=>{c?G.push(()=>i(...l)):i(...l);});return [s,a]},t.useReducer=(...r)=>{let o=n.useReducer.apply(e,r);if(!c||!Array.isArray(o)||typeof o[1]!="function")return o;let[s,i]=o,a=Re(Rt,i,()=>(...l)=>{c?G.push(()=>i(...l)):i(...l);});return [s,a]},t.useTransition=(...r)=>{let o=n.useTransition.apply(e,r);if(!c||!Array.isArray(o)||typeof o[1]!="function")return o;let[s,i]=o,a=Re(Fn,i,()=>l=>{c?Ne.push(()=>i(l)):i(l);});return [s,a]},t.useSyncExternalStore=(r,o,s)=>{if(!c)return n.useSyncExternalStore(r,o,s);let i=a=>r(()=>{c?ye.add(a):a();});return n.useSyncExternalStore(i,o,s)};},Vn=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:true,enumerable:true,get:()=>(r&&typeof r=="object"&&Hn(r),r),set:o=>{r=o;}});},Gn=e=>{queueMicrotask(()=>{try{for(let t of d().renderers.values())if(typeof t.scheduleUpdate=="function"){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current);}catch(r){Z("scheduleUpdate failed during unfreeze",r);}}}catch(t){}});},Oe=e=>{for(let t of e)try{t();}catch(n){}},Un=()=>{for(let e of d().renderers.values())Ot.has(e)||(Vn(e),Ot.add(e));},Gi=()=>{if(c)return ()=>{};Un(),c=true;let e=Nt();for(let t of e)ee(t.current,Mn);return ()=>{if(c)try{let t=Nt();for(let s of t)ee(s.current,kn);let n=Array.from(ye),r=Ne.slice(),o=G.slice();c=!1,Oe(n),Oe(r),Oe(o),Gn(t);}finally{ye.clear(),Ne.length=0,G.length=0;}}};/*! Bundled license information:
33
+
34
+ bippy/dist/rdt-hook.js:
35
+ (**
36
+ * @license bippy
37
+ *
38
+ * Copyright (c) Aiden Bai
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ *)
43
+
44
+ bippy/dist/core.js:
45
+ (**
46
+ * @license bippy
47
+ *
48
+ * Copyright (c) Aiden Bai
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE file in the root directory of this source tree.
52
+ *)
53
+
54
+ bippy/dist/install-hook-only.js:
55
+ (**
56
+ * @license bippy
57
+ *
58
+ * Copyright (c) Aiden Bai
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ *)
63
+
64
+ bippy/dist/index.js:
65
+ (**
66
+ * @license bippy
67
+ *
68
+ * Copyright (c) Aiden Bai
69
+ *
70
+ * This source code is licensed under the MIT license found in the
71
+ * LICENSE file in the root directory of this source tree.
72
+ *)
73
+
74
+ bippy/dist/source.js:
75
+ (**
76
+ * @license bippy
77
+ *
78
+ * Copyright (c) Aiden Bai
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE file in the root directory of this source tree.
82
+ *)
83
+ */Object.defineProperty(exports,"ab",{enumerable:true,get:function(){return elementSource.getReactStack}});Object.defineProperty(exports,"bb",{enumerable:true,get:function(){return elementSource.checkIsNextProject}});Object.defineProperty(exports,"cb",{enumerable:true,get:function(){return elementSource.resolveComponentName}});exports.$=zr;exports.$a=E;exports.A=_r;exports.Aa=_o;exports.B=gr;exports.Ba=go;exports.C=Tr;exports.Ca=To;exports.D=br;exports.Da=bo;exports.E=Sr;exports.Ea=So;exports.F=hr;exports.Fa=ho;exports.G=Rr;exports.Ga=Ro;exports.H=Or;exports.Ha=Oo;exports.I=yr;exports.Ia=yo;exports.J=Nr;exports.Ja=No;exports.K=Ar;exports.Ka=Ao;exports.L=Cr;exports.La=Co;exports.M=vr;exports.Ma=vo;exports.N=Fr;exports.Na=Fo;exports.O=xr;exports.Oa=xo;exports.P=Ir;exports.Pa=Io;exports.Q=Lr;exports.Qa=Lo;exports.R=Pr;exports.Ra=Po;exports.S=Dr;exports.Sa=Do;exports.T=wr;exports.Ta=wo;exports.U=Mr;exports.Ua=Mo;exports.V=kr;exports.Va=ko;exports.W=Hr;exports.Wa=h;exports.X=Vr;exports.Xa=F;exports.Y=ne;exports.Ya=U;exports.Z=Gr;exports.Za=Go;exports._=Ur;exports._a=D;exports.a=ve;exports.aa=Br;exports.b=Wn;exports.ba=jr;exports.c=Xn;exports.ca=$r;exports.d=Yn;exports.da=Wr;exports.db=Zs;exports.e=Kn;exports.ea=Xr;exports.eb=en;exports.f=Zn;exports.fa=Yr;exports.fb=Qs;exports.g=Qn;exports.ga=Kr;exports.gb=rn;exports.h=qn;exports.ha=Zr;exports.hb=$e;exports.i=Jn;exports.ia=Qr;exports.ib=si;exports.j=er;exports.ja=qr;exports.jb=Ee;exports.k=tr;exports.ka=Jr;exports.kb=_e;exports.l=nr;exports.la=eo;exports.lb=ge;exports.m=rr;exports.ma=to;exports.mb=_i;exports.n=or;exports.na=no;exports.nb=gi;exports.o=sr;exports.oa=ro;exports.ob=ui;exports.p=Fe;exports.pa=oo;exports.pb=pi;exports.q=ir;exports.qa=so;exports.qb=Ye;exports.r=ar;exports.ra=io;exports.rb=Ai;exports.s=lr;exports.sa=ao;exports.sb=Z;exports.t=cr;exports.ta=lo;exports.tb=vn;exports.u=ur;exports.ua=co;exports.ub=Di;exports.v=pr;exports.va=uo;exports.vb=wi;exports.w=mr;exports.wa=po;exports.wb=Mi;exports.x=fr;exports.xa=mo;exports.xb=Gi;exports.y=dr;exports.ya=fo;exports.z=Er;exports.za=Eo;
@@ -0,0 +1,10 @@
1
+ 'use strict';var chunk3HCPVIMZ_cjs=require('./chunk-3HCPVIMZ.cjs');/**
2
+ * @license MIT
3
+ *
4
+ * Copyright (c) 2025 Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ var Ge=(e,t)=>e===t,de=Symbol("solid-proxy"),Ke=typeof Proxy=="function",ve=Symbol("solid-track"),ee={equals:Ge},Pe=De,C=1,W=2,Oe={owned:null,cleanups:null,context:null,owner:null},ce={},h=null,c=null,_=null,b=null,x=null,E=null,re=0;function V(e,t){let n=b,r=h,i=e.length===0,s=t===void 0?r:t,l=i?Oe:{owned:null,cleanups:null,context:s?s.context:null,owner:s},o=i?e:()=>e(()=>k(()=>R(l)));h=l,b=null;try{return T(o,!0)}finally{b=n,h=r;}}function L(e,t){t=t?Object.assign({},ee,t):ee;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),Le(n,i));return [$e.bind(n),r]}function ke(e,t,n){let r=ie(e,t,true,C);B(r);}function H(e,t,n){let r=ie(e,t,false,C);B(r);}function Ie(e,t,n){Pe=Je;let r=ie(e,t,false,C);(!n||!n.render)&&(r.user=true),E?E.push(r):B(r);}function D(e,t,n){n=n?Object.assign({},ee,n):ee;let r=ie(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,B(r),$e.bind(r)}function Ye(e){return e&&typeof e=="object"&&"then"in e}function Ft(e,t,n){let r,i,s;typeof t=="function"?(r=e,i=t,s=n||{}):(r=true,i=e,s=t||{});let l=null,o=ce,d=false,a="initialValue"in s,g=typeof r=="function"&&D(r),y=new Set,[S,M]=(s.storage||L)(s.initialValue),[F,j]=L(void 0),[v,P]=L(void 0,{equals:false}),[O,N]=L(a?"ready":"unresolved");function $(p,w,I,A){return l===p&&(l=null,A!==void 0&&(a=true),(p===o||w===o)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(A,{value:w})),o=ce,be(w,I)),w}function be(p,w){T(()=>{w===void 0&&M(()=>p),N(w!==void 0?"errored":a?"ready":"unresolved"),j(w);for(let I of y.keys())I.decrement();y.clear();},false);}function le(){let p=z,w=S(),I=F();if(I!==void 0&&!l)throw I;return b&&!b.user&&p,w}function ue(p=true){if(p!==false&&d)return;d=false;let w=g?g():r;if(w==null||w===false){$(l,k(S));return}let I,A=o!==ce?o:k(()=>{try{return i(w,{value:S(),refetching:p})}catch(Y){I=Y;}});if(I!==void 0){$(l,void 0,Z(I),w);return}else if(!Ye(A))return $(l,A,void 0,w),A;return l=A,"v"in A?(A.s===1?$(l,A.v,void 0,w):$(l,void 0,Z(A.v),w),A):(d=true,queueMicrotask(()=>d=false),T(()=>{N(a?"refreshing":"pending"),P();},false),A.then(Y=>$(A,Y,void 0,w),Y=>$(A,void 0,Z(Y),w)))}Object.defineProperties(le,{state:{get:()=>O()},error:{get:()=>F()},loading:{get(){let p=O();return p==="pending"||p==="refreshing"}},latest:{get(){if(!a)return le();let p=F();if(p&&!l)throw p;return S()}}});let pe=h;return g?ke(()=>(pe=h,ue(false))):ue(false),[le,{refetch:p=>Me(pe,()=>ue(p)),mutate:M}]}function Rt(e){return T(e,false)}function k(e){if(b===null)return e();let t=b;b=null;try{return _?_.untrack(e):e()}finally{b=t;}}function Ht(e,t,n){let r=Array.isArray(e),i,s=n&&n.defer;return l=>{let o;if(r){o=Array(e.length);for(let f=0;f<e.length;f++)o[f]=e[f]();}else o=e();if(s)return s=false,l;let u=k(()=>t(o,i,l));return i=o,u}}function Vt(e){Ie(()=>k(e));}function se(e){return h===null||(h.cleanups===null?h.cleanups=[e]:h.cleanups.push(e)),e}function jt(){return b}function Me(e,t){let n=h,r=b;h=e,b=null;try{return T(t,!0)}catch(i){oe(i);}finally{h=n,b=r;}}var[_t,Ae]=L(false);var z;function $e(){let e=c;if(this.sources&&(this.state))if((this.state)===C)B(this);else {let t=x;x=null,T(()=>te(this),false),x=t;}if(b){let t=this.observers?this.observers.length:0;b.sources?(b.sources.push(this),b.sourceSlots.push(t)):(b.sources=[this],b.sourceSlots=[t]),this.observers?(this.observers.push(b),this.observerSlots.push(b.sources.length-1)):(this.observers=[b],this.observerSlots=[b.sources.length-1]);}return e&&c.sources.has(this)?this.tValue:this.value}function Le(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&T(()=>{for(let i=0;i<e.observers.length;i+=1){let s=e.observers[i],l=c&&c.running;l&&c.disposed.has(s)||((l?!s.tState:!s.state)&&(s.pure?x.push(s):E.push(s),s.observers&&Fe(s)),l?s.tState=C:s.state=C);}if(x.length>1e6)throw x=[],new Error},false);}return t}function B(e){if(!e.fn)return;R(e);let t=re;Te(e,e.value,t);}function Te(e,t,n){let r,i=h,s=b;b=h=e;try{r=e.fn(t);}catch(l){return e.pure&&((e.state=C,e.owned&&e.owned.forEach(R),e.owned=null)),e.updatedAt=n+1,oe(l)}finally{b=s,h=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Le(e,r):e.value=r,e.updatedAt=n);}function ie(e,t,n,r=C,i){let s={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:h?h.context:null,pure:n};if(h===null||h!==Oe&&(h.owned?h.owned.push(s):h.owned=[s]),_);return s}function X(e){let t=c;if((e.state)===0)return;if((e.state)===W)return te(e);if(e.suspense&&k(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<re);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===C)B(e);else if((e.state)===W){let i=x;x=null,T(()=>te(e,n[0]),false),x=i;}}}function T(e,t){if(x)return e();let n=false;t||(x=[]),E?n=true:E=[],re++;try{let r=e();return ze(n),r}catch(r){n||(E=null),x=null,oe(r);}}function ze(e){if(x&&(De(x),x=null),e)return;let n=E;E=null,n.length&&T(()=>Pe(n),false);}function De(e){for(let t=0;t<e.length;t++)X(e[t]);}function Je(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:X(r);}for(t=0;t<n;t++)X(e[t]);}function te(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let s=i.state;s===C?i!==t&&(!i.updatedAt||i.updatedAt<re)&&X(i):s===W&&te(i,t);}}}function Fe(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=W,r.pure?x.push(r):E.push(r),r.observers&&Fe(r));}}function R(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let s=i.pop(),l=n.observerSlots.pop();r<i.length&&(s.sourceSlots[l]=r,i[r]=s,n.observerSlots[r]=l);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)R(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)R(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function Z(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function oe(e,t=h){let r=Z(e);throw r;}var he=Symbol("fallback");function ne(e){for(let t=0;t<e.length;t++)e[t]();}function Qe(e,t,n={}){let r=[],i=[],s=[],l=0,o=t.length>1?[]:null;return se(()=>ne(s)),()=>{let u=e()||[],f=u.length,d,a;return u[ve],k(()=>{let y,S,M,F,j,v,P,O,N;if(f===0)l!==0&&(ne(s),s=[],r=[],i=[],l=0,o&&(o=[])),n.fallback&&(r=[he],i[0]=V($=>(s[0]=$,n.fallback())),l=1);else if(l===0){for(i=new Array(f),a=0;a<f;a++)r[a]=u[a],i[a]=V(g);l=f;}else {for(M=new Array(f),F=new Array(f),o&&(j=new Array(f)),v=0,P=Math.min(l,f);v<P&&r[v]===u[v];v++);for(P=l-1,O=f-1;P>=v&&O>=v&&r[P]===u[O];P--,O--)M[O]=i[P],F[O]=s[P],o&&(j[O]=o[P]);for(y=new Map,S=new Array(O+1),a=O;a>=v;a--)N=u[a],d=y.get(N),S[a]=d===void 0?-1:d,y.set(N,a);for(d=v;d<=P;d++)N=r[d],a=y.get(N),a!==void 0&&a!==-1?(M[a]=i[d],F[a]=s[d],o&&(j[a]=o[d]),a=S[a],y.set(N,a)):s[d]();for(a=v;a<f;a++)a in M?(i[a]=M[a],s[a]=F[a],o&&(o[a]=j[a],o[a](a))):i[a]=V(g);i=i.slice(0,l=f),r=u.slice(0);}return i});function g(y){if(s[a]=y,o){let[S,M]=L(a);return o[a]=M,t(u[a],S)}return t(u[a])}}}function Ze(e,t,n={}){let r=[],i=[],s=[],l=[],o=0,u;return se(()=>ne(s)),()=>{let f=e()||[],d=f.length;return f[ve],k(()=>{if(d===0)return o!==0&&(ne(s),s=[],r=[],i=[],o=0,l=[]),n.fallback&&(r=[he],i[0]=V(g=>(s[0]=g,n.fallback())),o=1),i;for(r[0]===he&&(s[0](),s=[],r=[],i=[],o=0),u=0;u<d;u++)u<r.length&&r[u]!==f[u]?l[u](()=>f[u]):u>=r.length&&(i[u]=V(a));for(;u<r.length;u++)s[u]();return o=l.length=s.length=d,r=f.slice(0),i=i.slice(0,o)});function a(g){s[u]=g;let[y,S]=L(f[u]);return l[u]=S,t(y,u)}}}function tt(e,t){return k(()=>e(t||{}))}function Q(){return true}var nt={get(e,t,n){return t===de?n:e.get(t)},has(e,t){return t===de?true:e.has(t)},set:Q,deleteProperty:Q,getOwnPropertyDescriptor(e,t){return {configurable:true,enumerable:true,get(){return e.get(t)},set:Q,deleteProperty:Q}},ownKeys(e){return e.keys()}};function ae(e){return (e=typeof e=="function"?e():e)?e:{}}function rt(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function st(...e){let t=false;for(let l=0;l<e.length;l++){let o=e[l];t=t||!!o&&de in o,e[l]=typeof o=="function"?(t=true,D(o)):o;}if(Ke&&t)return new Proxy({get(l){for(let o=e.length-1;o>=0;o--){let u=ae(e[o])[l];if(u!==void 0)return u}},has(l){for(let o=e.length-1;o>=0;o--)if(l in ae(e[o]))return true;return false},keys(){let l=[];for(let o=0;o<e.length;o++)l.push(...Object.keys(ae(e[o])));return [...new Set(l)]}},nt);let n={},r=Object.create(null);for(let l=e.length-1;l>=0;l--){let o=e[l];if(!o)continue;let u=Object.getOwnPropertyNames(o);for(let f=u.length-1;f>=0;f--){let d=u[f];if(d==="__proto__"||d==="constructor")continue;let a=Object.getOwnPropertyDescriptor(o,d);if(!r[d])r[d]=a.get?{enumerable:true,configurable:true,get:rt.bind(n[d]=[a.get.bind(o)])}:a.value!==void 0?a:void 0;else {let g=n[d];g&&(a.get?g.push(a.get.bind(o)):a.value!==void 0&&g.push(()=>a.value));}}}let i={},s=Object.keys(r);for(let l=s.length-1;l>=0;l--){let o=s[l],u=r[o];u&&u.get?Object.defineProperty(i,o,u):i[o]=u?u.value:void 0;}return i}var it=e=>`Stale read from <${e}>.`;function ot(e){let t="fallback"in e&&{fallback:()=>e.fallback};return D(Qe(()=>e.each,e.children,t||void 0))}function lt(e){let t="fallback"in e&&{fallback:()=>e.fallback};return D(Ze(()=>e.each,e.children,t||void 0))}function ut(e){let t=e.keyed,n=D(()=>e.when,void 0,void 0),r=t?n:D(n,void 0,{equals:(i,s)=>!i==!s});return D(()=>{let i=r();if(i){let s=e.children;return typeof s=="function"&&s.length>0?k(()=>s(t?i:()=>{if(!k(r))throw it("Show");return n()})):s}return e.fallback},void 0,void 0)}var at=["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"],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",...at]),dt=new Set(["innerHTML","textContent","innerText","children"]),ht=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),gt=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function mt(e,t){let n=gt[e];return typeof n=="object"?n[t]?n.$:void 0:n}var bt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]);var pt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};var Jt=e=>D(()=>e());function yt(e,t,n){let r=n.length,i=t.length,s=r,l=0,o=0,u=t[i-1].nextSibling,f=null;for(;l<i||o<s;){if(t[l]===n[o]){l++,o++;continue}for(;t[i-1]===n[s-1];)i--,s--;if(i===l){let d=s<r?o?n[o-1].nextSibling:n[s-o]:u;for(;o<s;)e.insertBefore(n[o++],d);}else if(s===o)for(;l<i;)(!f||!f.has(t[l]))&&t[l].remove(),l++;else if(t[l]===n[s-1]&&n[o]===t[i-1]){let d=t[--i].nextSibling;e.insertBefore(n[o++],t[l++].nextSibling),e.insertBefore(n[--s],d),t[i]=n[s];}else {if(!f){f=new Map;let a=o;for(;a<s;)f.set(n[a],a++);}let d=f.get(t[l]);if(d!=null)if(o<d&&d<s){let a=l,g=1,y;for(;++a<i&&a<s&&!((y=f.get(t[a]))==null||y!==d+g);)g++;if(g>d-o){let S=t[l];for(;o<d;)e.insertBefore(n[o++],S);}else e.replaceChild(n[o++],t[l++]);}else l++;else t[l++].remove();}}}var He="_$DX_DELEGATE";function Qt(e,t,n,r={}){let i;return V(s=>{i=s,t===document?e():vt(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function Zt(e,t,n,r){let i,s=()=>{let o=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return o.innerHTML=e,n?o.content.firstChild.firstChild:r?o.firstChild:o.content.firstChild},l=t?()=>k(()=>document.importNode(i||(i=s()),!0)):()=>(i||(i=s())).cloneNode(true);return l.cloneNode=l,l}function wt(e,t=window.document){let n=t[He]||(t[He]=new Set);for(let r=0,i=e.length;r<i;r++){let s=e[r];n.has(s)||(n.add(s),t.addEventListener(s,It));}}function ge(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function xt(e,t,n,r){(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r));}function St(e,t,n){(n?e.setAttribute(t,""):e.removeAttribute(t));}function Et(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function kt(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 i=n[0];e.addEventListener(t,n[0]=s=>i.call(e,n[1],s));}else e.addEventListener(t,n,typeof n!="function"&&n);}function At(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),s,l;for(s=0,l=i.length;s<l;s++){let o=i[s];!o||o==="undefined"||t[o]||(Ve(e,o,false),delete n[o]);}for(s=0,l=r.length;s<l;s++){let o=r[s],u=!!t[o];!o||o==="undefined"||n[o]===u||!u||(Ve(e,o,true),n[o]=u);}return n}function Tt(e,t,n){if(!t)return n?ge(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,s;for(s in n)t[s]==null&&r.removeProperty(s),delete n[s];for(s in t)i=t[s],i!==n[s]&&(r.setProperty(s,i),n[s]=i);return n}function en(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function tn(e,t={},n,r){let i={};return r||H(()=>i.children=G(e,t.children,i.children)),H(()=>typeof t.ref=="function"&&Ct(t.ref,e)),H(()=>Pt(e,t,n,true,i,true)),i}function Ct(e,t,n){return k(()=>e(t,n))}function vt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return G(e,t,r,n);H(i=>G(e,t(),i,n),r);}function Pt(e,t,n,r,i={},s=false){t||(t={});for(let l in i)if(!(l in t)){if(l==="children")continue;i[l]=je(e,l,null,i[l],n,s,t);}for(let l in t){if(l==="children"){continue}let o=t[l];i[l]=je(e,l,o,i[l],n,s,t);}}function Ot(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ve(e,t,n){let r=t.trim().split(/\s+/);for(let i=0,s=r.length;i<s;i++)e.classList.toggle(r[i],n);}function je(e,t,n,r,i,s,l){let o,u,f,d,a;if(t==="style")return Tt(e,n,r);if(t==="classList")return At(e,n,r);if(n===r)return r;if(t==="ref")s||n(e);else if(t.slice(0,3)==="on:"){let g=t.slice(3);r&&e.removeEventListener(g,r,typeof r!="function"&&r),n&&e.addEventListener(g,n,typeof n!="function"&&n);}else if(t.slice(0,10)==="oncapture:"){let g=t.slice(10);r&&e.removeEventListener(g,r,true),n&&e.addEventListener(g,n,true);}else if(t.slice(0,2)==="on"){let g=t.slice(2).toLowerCase(),y=bt.has(g);if(!y&&r){let S=Array.isArray(r)?r[0]:r;e.removeEventListener(g,S);}(y||n)&&(kt(e,g,n,y),y&&wt([g]));}else if(t.slice(0,5)==="attr:")ge(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")St(e,t.slice(5),n);else if((a=t.slice(0,5)==="prop:")||(f=dt.has(t))||!i&&((d=mt(t,e.tagName))||(u=ft.has(t)))||(o=e.nodeName.includes("-")||"is"in l)){if(a)t=t.slice(5),u=true;t==="class"||t==="className"?Et(e,n):o&&!u&&!f?e[Ot(t)]=n:e[d||t]=n;}else {let g=i&&t.indexOf(":")>-1&&pt[t.split(":")[0]];g?xt(e,g,t,n):ge(e,ht[t]||t,n);}return n}function It(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,s=u=>Object.defineProperty(e,"target",{configurable:true,value:u}),l=()=>{let u=t[n];if(u&&!t.disabled){let f=t[`${n}Data`];if(f!==void 0?u.call(t,f,e):u.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&s(t.host),true},o=()=>{for(;l()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let u=e.composedPath();s(u[0]);for(let f=0;f<u.length-2&&(t=u[f],!!l());f++){if(t._$host){t=t._$host,o();break}if(t.parentNode===i)break}}else o();s(r);}function G(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let l=typeof t,o=r!==void 0;if(e=o&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(t=t.toString(),t===n))return n;if(o){let u=n[0];u&&u.nodeType===3?u.data!==t&&(u.data=t):u=document.createTextNode(t),n=U(e,n,r,u);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||l==="boolean"){n=U(e,n,r);}else {if(l==="function")return H(()=>{let u=t();for(;typeof u=="function";)u=u();n=G(e,u,n,r);}),()=>n;if(Array.isArray(t)){let u=[],f=n&&Array.isArray(n);if(me(u,t,n,i))return H(()=>n=G(e,u,n,r,true)),()=>n;if(u.length===0){if(n=U(e,n,r),o)return n}else f?n.length===0?_e(e,u,r):yt(e,n,u):(n&&U(e),_e(e,u));n=u;}else if(t.nodeType){if(Array.isArray(n)){if(o)return n=U(e,n,r,t);U(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function me(e,t,n,r){let i=false;for(let s=0,l=t.length;s<l;s++){let o=t[s],u=n&&n[e.length],f;if(!(o==null||o===true||o===false))if((f=typeof o)=="object"&&o.nodeType)e.push(o);else if(Array.isArray(o))i=me(e,o,u)||i;else if(f==="function")if(r){for(;typeof o=="function";)o=o();i=me(e,Array.isArray(o)?o:[o],Array.isArray(u)?u:[u])||i;}else e.push(o),i=true;else {let d=String(o);u&&u.nodeType===3&&u.data===d?e.push(u):e.push(document.createTextNode(d));}}return i}function _e(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function U(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let s=false;for(let l=t.length-1;l>=0;l--){let o=t[l];if(i!==o){let u=o.parentNode===e;!s&&!l?u?e.replaceChild(i,o):e.insertBefore(i,n):u&&o.remove();}else s=true;}}else e.insertBefore(i,n);return [i]}var on=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e));var Mt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox","combobox"],Nt=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},cn=e=>{if(document.designMode==="on")return true;let t=Nt(e);if(!t)return false;if(t.isContentEditable)return true;let n=chunk3HCPVIMZ_cjs.Wa(t);return Mt.some(r=>r===n||r===t.role)},an=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let n=t.selectionStart??0;return (t.selectionEnd??0)-n>0}return false},fn=()=>{let e=window.getSelection();return e?e.toString().length>0:false};var J=null,$t=()=>{if(typeof navigator>"u"||!("userAgentData"in navigator))return null;let e=navigator.userAgentData;if(typeof e!="object"||e===null||!("platform"in e))return null;let t=e.platform;return typeof t!="string"?null:t},hn=()=>{if(J===null){if(typeof navigator>"u")return J=false,J;let e=navigator.platform??$t()??navigator.userAgent;J=/Mac|iPhone|iPad|iPod/i.test(e);}return J};var mn=(e,t)=>{try{return e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t))}catch{return false}};var Lt=e=>e??true,pn=(e,t)=>typeof e.enabled=="function"?t?e.enabled(t):false:Lt(e.enabled);var qe="react-grab-toolbar-state",xn=()=>{try{let e=localStorage.getItem(qe);if(!e)return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let n=t;return {edge:n.edge==="top"||n.edge==="bottom"||n.edge==="left"||n.edge==="right"?n.edge:"bottom",ratio:typeof n.ratio=="number"?n.ratio:chunk3HCPVIMZ_cjs.ma,collapsed:typeof n.collapsed=="boolean"?n.collapsed:!1,enabled:typeof n.enabled=="boolean"?n.enabled:!0,defaultAction:typeof n.defaultAction=="string"?n.defaultAction:chunk3HCPVIMZ_cjs.na}}catch(e){console.warn("[react-grab] Failed to load toolbar state from localStorage:",e);}return null},Sn=e=>{try{localStorage.setItem(qe,JSON.stringify(e));}catch(t){console.warn("[react-grab] Failed to save toolbar state to localStorage:",t);}};
10
+ exports.A=en;exports.B=tn;exports.C=Ct;exports.D=vt;exports.E=on;exports.F=cn;exports.G=an;exports.H=fn;exports.I=hn;exports.J=mn;exports.K=pn;exports.L=xn;exports.M=Sn;exports.a=de;exports.b=ve;exports.c=V;exports.d=L;exports.e=H;exports.f=Ie;exports.g=D;exports.h=Ft;exports.i=Rt;exports.j=Ht;exports.k=Vt;exports.l=se;exports.m=jt;exports.n=tt;exports.o=st;exports.p=ot;exports.q=lt;exports.r=ut;exports.s=Jt;exports.t=Qt;exports.u=Zt;exports.v=wt;exports.w=ge;exports.x=Et;exports.y=kt;exports.z=At;