grab 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core-B-Khfj_M.cjs +11 -0
- package/dist/core-B1AFUjSC.cjs +11 -0
- package/dist/core-BidH6Dr_.js +11 -0
- package/dist/core-DceltyXc.js +11 -0
- package/dist/create-element-selector-CA_x0jT4.cjs +9 -0
- package/dist/create-element-selector-CE8DT97A.cjs +9 -0
- package/dist/create-element-selector-CyDMEkYV.js +9 -0
- package/dist/create-element-selector-DXGzc20x.js +9 -0
- package/dist/freeze-updates-BMHg9jtm.js +52 -0
- package/dist/freeze-updates-CyZYvC-n.cjs +52 -0
- package/dist/freeze-updates-W92Tv24a.cjs +52 -0
- package/dist/freeze-updates-pl4bncJb.js +52 -0
- package/dist/index.cjs +1 -1
- package/dist/index.global.js +15 -24
- package/dist/index.js +1 -1
- package/dist/primitives.cjs +2 -2
- package/dist/primitives.js +2 -2
- package/dist/renderer-9DVex4g4.cjs +9 -0
- package/dist/renderer-BHtpQ-BY.cjs +9 -0
- package/dist/renderer-CiIPsSof.js +9 -0
- package/dist/renderer-Q2ZCGKZI.js +9 -0
- package/dist/state-BqjLpM7A.js +9 -0
- package/dist/state-CLrWsl_z.cjs +9 -0
- package/dist/state-CRSyg2Ji.cjs +9 -0
- package/dist/state-DC5RpAo4.js +9 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import{A as e,B as t,E as n,L as r,O as i,P as a,R as o,T as s,_ as c,a as l,b as u,c as d,d as f,f as p,h as m,i as h,j as g,k as _,l as v,m as y,n as b,p as x,r as S,t as C,u as w,v as T,w as E,x as D,y as O,z as k}from"./state-BqjLpM7A.js";import{$ as A,A as j,H as M,I as N,L as P,Q as F,U as I,V as L,W as R,c as z,ct as B,dt as ee,et as te,ft as V,i as ne,it as re,k as H,l as U,nt as ie,ot as W,pt as G,r as ae,s as oe,st as se,t as ce,tt as K,z as le}from"./freeze-updates-BMHg9jtm.js";const q=(e,t,n)=>e+(t-e)*n,ue=(e,t)=>{let n=Math.max(t,1);return 1-(1-e)**(n/P)};var de=u(`<canvas data-react-grab-overlay-canvas style=position:fixed;top:0;left:0;pointer-events:none>`);const fe={borderColor:A,fillColor:K,lerpFactor:se},J={drag:{borderColor:te,fillColor:ie,lerpFactor:le},selection:fe,grabbed:fe},pe=e=>{let n,r=null,i=0,a=0,s=1,c=null,l=null,u={drag:{canvas:null,context:null},selection:{canvas:null,context:null},grabbed:{canvas:null,context:null}},d=[],f=null,p=[],m=G()?`display-p3`:`srgb`,h=(e,t,n)=>{let r=new OffscreenCanvas(e*n,t*n),i=r.getContext(`2d`,{colorSpace:m});return i&&i.scale(n,n),{canvas:r,context:i}},v=()=>{if(n){s=Math.max(window.devicePixelRatio||1,2),i=window.innerWidth,a=window.innerHeight,n.width=i*s,n.height=a*s,n.style.width=`${i}px`,n.style.height=`${a}px`,r=n.getContext(`2d`,{colorSpace:m}),r&&r.scale(s,s);for(let e of Object.keys(u))u[e]=h(i,a,s)}},y=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:y(t.borderRadius),opacity:n?.opacity??1,targetOpacity:n?.targetOpacity??n?.opacity??1,createdAt:n?.createdAt,fadeStartTimestamp:null,isInitialized:!0}),x=(e,t,n)=>{e.target={x:t.x,y:t.y,width:t.width,height:t.height},e.borderRadius=y(t.borderRadius),n!==void 0&&(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);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(),e.globalAlpha=1},w=()=>{let t=u.drag;if(!t.context)return;let n=t.context;if(n.clearRect(0,0,i,a),!e.dragVisible||!f)return;let r=J.drag;C(n,f.current.x,f.current.y,f.current.width,f.current.height,f.borderRadius,r.fillColor,r.borderColor)},E=()=>{let t=u.selection;if(!t.context)return;let n=t.context;if(n.clearRect(0,0,i,a),!e.selectionVisible)return;let r=J.selection;for(let e of d)C(n,e.current.x,e.current.y,e.current.width,e.current.height,e.borderRadius,r.fillColor,r.borderColor,e.opacity)},O=(e,t)=>{let n=u[e];if(!n.context)return;let r=n.context;r.clearRect(0,0,i,a);let o=J[e];for(let e of t)C(r,e.current.x,e.current.y,e.current.width,e.current.height,e.borderRadius,o.fillColor,o.borderColor,e.opacity)},A=()=>{if(!(!r||!n)){r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,n.width,n.height),r.setTransform(s,0,0,s,0,0),w(),E(),O(`grabbed`,p);for(let e of[`drag`,`selection`,`grabbed`]){let t=u[e];t.canvas&&r.drawImage(t.canvas,0,0,i,a)}}},M=(e,t,n)=>{let r=q(e.current.x,e.target.x,t),i=q(e.current.y,e.target.y,t),a=q(e.current.width,e.target.width,t),o=q(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=q(e.opacity,e.targetOpacity,t);c=Math.abs(n-e.targetOpacity)<F,e.opacity=c?e.targetOpacity:n}return!s||!c},N=()=>{let e=performance.now(),t=l===null?P:e-l;l=e;let n=ue(J.drag.lerpFactor,t),r=ue(J.selection.lerpFactor,t),i=ue(J.grabbed.lerpFactor,t),a=!1;f?.isInitialized&&M(f,n)&&(a=!0);for(let e of d)e.isInitialized&&M(e,r)&&(a=!0);let o=Date.now();p=p.filter(t=>{let n=t.id.startsWith(`label-`);if(t.isInitialized&&M(t,i)&&(a=!0),n&&t.targetOpacity===0){t.fadeStartTimestamp===null&&(t.fadeStartTimestamp=e);let n=e-t.fadeStartTimestamp,r=Math.min(1,n/150),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){let e=o-t.createdAt;if(e>=1650)return!1;if(e>1500){let n=Math.min(1,(e-I)/150);t.opacity=1-(1-(1-n)*(1-n)),a=!0}return!0}return n?!0:t.opacity>0}),A(),a?c=j(N):(c=null,l=null)},L=()=>{c===null&&(c=j(N))},R=()=>{v(),L()};return _(o(()=>[e.selectionVisible,e.selectionBounds,e.selectionBoundsMultiple,e.selectionShouldSnap],([e,t,n,r])=>{if(!e||!t&&(!n||n.length===0)){d=[],L();return}let i;i=n&&n.length>0?n:t?[t]:[],d=i.map((e,t)=>{let n=`selection-${t}`,i=d.find(e=>e.id===n);return i?(x(i,e),r&&(i.current={...i.target}),i):b(n,e)}),L()})),_(o(()=>[e.dragVisible,e.dragBounds],([e,t])=>{if(!e||!t){f=null,L();return}f?x(f,t):f=b(`drag`,t),L()})),_(o(()=>[e.grabbedBoxes,e.labelInstances],([e,t])=>{let n=e??[],r=new Set(n.map(e=>e.id)),i=new Set(p.map(e=>e.id));for(let e of n)i.has(e.id)||p.push(b(e.id,e.bounds,{createdAt:e.createdAt}));for(let e of p){let t=n.find(t=>t.id===e.id);t&&x(e,t.bounds)}let a=t??[];for(let e of a){let t=S(e),n=e.status===`fading`?0:1;for(let r=0;r<t.length;r++){let i=t[r],a=`label-${e.id}-${r}`,o=p.find(e=>e.id===a);o?x(o,i,n):p.push(b(a,i,{opacity:1,targetOpacity:n}))}}let o=new Set;for(let e of a){let t=S(e);for(let n=0;n<t.length;n++)o.add(`label-${e.id}-${n}`)}p=p.filter(e=>e.id.startsWith(`label-`)?o.has(e.id):!!(r.has(e.id)||e.createdAt&&e.opacity>0)),L()})),t(()=>{v(),L(),window.addEventListener(`resize`,R);let e=null,t=()=>{Math.max(window.devicePixelRatio||1,2)!==s&&(R(),n())},n=()=>{e&&e.removeEventListener(`change`,t),e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),e.addEventListener(`change`,t)};n(),k(()=>{window.removeEventListener(`resize`,R),e&&e.removeEventListener(`change`,t),c!==null&&H(c)})}),(()=>{var e=de(),t=n;return typeof t==`function`?D(t,e):n=e,g(t=>T(e,`z-index`,String(V))),e})()},me=(e,t)=>{e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,t)}px`},he=e=>{if(e<=0)return 8;let t=e*N;return Math.max(4,Math.min(8,t))},Y=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=Y(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},X=(...e)=>{let t=``;for(let n of e){if(!n)continue;let e=Y(n);e&&(t=t?`${t} ${e}`:e)}return t},Z=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};var ge=u(`<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">`);const _e=e=>{let t=()=>e.size??10;return(()=>{var n=ge();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var ve=u(`<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>`);const ye=e=>{let t=()=>e.size??16;return(()=>{var n=ve();return n.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling,g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var be=u(`<div data-react-grab-arrow class="absolute w-0 h-0 z-10">`);const xe=e=>{let t=()=>e.color??`var(--rg-panel-bg)`,n=()=>e.position===`bottom`,r=()=>he(e.labelWidth??0);return(()=>{var i=be();return g(a=>{var o=`calc(${e.leftPercent}% + ${e.leftOffsetPx}px)`,s=n()?`0`:void 0,c=n()?void 0:`0`,l=n()?`translateX(-50%) translateY(-100%)`:`translateX(-50%) translateY(100%)`,u=`${r()}px solid transparent`,d=`${r()}px solid transparent`,f=n()?`${r()}px solid ${t()}`:void 0,p=n()?void 0:`${r()}px solid ${t()}`;return o!==a.e&&T(i,`left`,a.e=o),s!==a.t&&T(i,`top`,a.t=s),c!==a.a&&T(i,`bottom`,a.a=c),l!==a.o&&T(i,`transform`,a.o=l),u!==a.i&&T(i,`border-left`,a.i=u),d!==a.n&&T(i,`border-right`,a.n=d),f!==a.s&&T(i,`border-bottom`,a.s=f),p!==a.h&&T(i,`border-top`,a.h=p),a},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),i})()};var Se=u(`<span class=text-[var(--rg-text-primary)]>`),Ce=u(`<span class=text-[var(--rg-text-secondary)]>.`),we=u(`<div><span class="text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0">`);const Te=e=>{let t=()=>{e.onHoverChange?.(!0)},r=()=>{e.onHoverChange?.(!1)};return(()=>{var a=we(),o=a.firstChild;return w(a,`click`,e.onClick,!0),a.addEventListener(`mouseleave`,r),a.addEventListener(`mouseenter`,t),y(o,i(n,{get when(){return e.componentName},get children(){return[(()=>{var t=Se();return y(t,()=>e.componentName),t})(),(()=>{var t=Ce();return t.firstChild,y(t,()=>e.tagName,null),t})()]}}),null),y(o,i(n,{get when(){return!e.componentName},get children(){var t=Se();return y(t,()=>e.tagName),t}}),null),g(()=>p(a,X(`contain-layout flex items-center gap-1 max-w-[280px] overflow-hidden`,e.shrink&&`shrink-0`,e.isClickable&&`cursor-pointer`))),a})()};x([`click`]);var Ee=u(`<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-solid border-t-[var(--rg-border-subtle)] antialiased rounded-t-none rounded-b-[6px]">`);const De=e=>(()=>{var t=Ee();return y(t,()=>e.children),t})();let Oe=null;const Q={claim:e=>{Oe=e},release:e=>{Oe===e&&(Oe=null)},isActive:e=>Oe===e};var ke=u(`<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">`);const Ae=e=>{let t=()=>e.size??10;return(()=>{var n=ke();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var je=u(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button data-react-grab-discard-no class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] cursor-pointer transition-all hover:bg-[var(--rg-surface-active)] press-scale h-[17px]"><span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">No</span></button><button data-react-grab-discard-yes class="contain-layout shrink-0 flex items-center justify-center gap-0.5 px-[3px] py-px rounded-sm bg-[var(--rg-error-bg)] cursor-pointer transition-all hover:bg-[var(--rg-error-bg-hover)] press-scale h-[17px]"><span class="text-[var(--rg-error-text)] text-[13px] leading-3.5 font-sans font-medium">Yes`),Me=u(`<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">`);const Ne=e=>{let n=Symbol(),r=t=>{if(!Q.isActive(n)||d(t))return;let r=t.code===`Enter`,i=t.code===`Escape`;(r||i)&&(t.preventDefault(),t.stopPropagation(),i&&e.cancelOnEscape?e.onCancel?.():e.onConfirm?.())},a=()=>{Q.claim(n)};return t(()=>{Q.claim(n),window.addEventListener(`keydown`,r,{capture:!0})}),k(()=>{Q.release(n),window.removeEventListener(`keydown`,r,{capture:!0})}),(()=>{var t=Me(),n=t.firstChild.firstChild;return t.$$click=a,t.$$pointerdown=a,y(n,()=>e.label??`Discard?`),y(t,i(De,{get children(){var t=je(),n=t.firstChild,r=n.nextSibling;return r.firstChild,w(n,`click`,e.onCancel,!0),w(r,`click`,e.onConfirm,!0),y(r,i(Ae,{size:10,class:`text-[var(--rg-error-text)] opacity-50`}),null),t}}),null),t})()};x([`pointerdown`,`click`]);var Pe=u(`<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">`);const Fe=e=>{let t=()=>e.size??12;return(()=>{var n=Pe();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var Ie=u(`<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button data-react-grab-retry class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] cursor-pointer transition-all hover:bg-[var(--rg-surface-active)] press-scale h-[17px]"><span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Retry</span></button><button data-react-grab-error-ok class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] cursor-pointer transition-all hover:bg-[var(--rg-surface-active)] press-scale h-[17px]"><span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Ok`),Le=u(`<div data-react-grab-error 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">`);const Re=e=>{let r=Symbol(),a=t=>{if(!Q.isActive(r)||d(t))return;let n=t.code===`Enter`,i=t.code===`Escape`;n?(t.preventDefault(),t.stopPropagation(),e.onRetry?.()):i&&(t.preventDefault(),t.stopPropagation(),e.onAcknowledge?.())},o=()=>{Q.claim(r)};t(()=>{Q.claim(r),window.addEventListener(`keydown`,a,{capture:!0})}),k(()=>{Q.release(r),window.removeEventListener(`keydown`,a,{capture:!0})});let s=()=>!!(e.onRetry||e.onAcknowledge);return(()=>{var t=Le(),r=t.firstChild,a=r.firstChild;return t.$$click=o,t.$$pointerdown=o,y(a,()=>e.error),y(t,i(n,{get when(){return s()},get children(){return i(De,{get children(){var t=Ie(),n=t.firstChild;n.firstChild;var r=n.nextSibling;return w(n,`click`,e.onRetry,!0),y(n,i(Fe,{size:10,class:`text-[var(--rg-text-secondary)]`}),null),w(r,`click`,e.onAcknowledge,!0),t}})}}),null),g(t=>{var n={"pt-1.5 pb-1":s(),"py-1.5":!s()},i=e.error;return t.e=f(r,n,t.e),i!==t.t&&c(a,`title`,t.t=i),t},{e:void 0,t:void 0}),t})()};x([`pointerdown`,`click`]);var ze=u(`<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">`);const Be=e=>{let t=()=>e.size??14;return(()=>{var n=ze();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var Ve=u(`<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">`);const He=e=>{let t=()=>e.size??14;return(()=>{var n=Ve();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var Ue=u(`<button data-react-grab-ignore-events data-react-grab-more-options class="flex items-center justify-center size-4 rounded-sm cursor-pointer bg-transparent hover:bg-[var(--rg-surface-hover)] text-[var(--rg-text-secondary)] hover:text-[var(--rg-text-primary)] border-none outline-none p-0 shrink-0 press-scale">`),We=u(`<button data-react-grab-dismiss class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-[var(--rg-surface-hover)] [border-width:0.5px] border-solid border-[var(--rg-border-button)] cursor-pointer transition-all hover:bg-[var(--rg-surface-active)] press-scale h-[17px]"><span class="text-[var(--rg-text-primary)] text-[13px] leading-3.5 font-sans font-medium">Keep`),Ge=u(`<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">`),Ke=u(`<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">`),qe=u(`<div data-react-grab-completion>`);const Je=e=>(()=>{var t=Ue();return w(t,`click`,t=>{t.stopImmediatePropagation(),e.onClick()}),w(t,`pointerdown`,e=>{e.stopImmediatePropagation()}),y(t,i(Be,{size:14})),t})(),Ye=e=>{let r=Symbol(),o,s,[c,l]=a(!1),[u,f]=a(!1),h=()=>c()?`Copied`:e.statusText,_=()=>{o!==void 0&&window.clearTimeout(o),s!==void 0&&window.clearTimeout(s),f(!0),e.onFadingChange?.(!0),e.onShowContextMenu?.()},v=()=>{c()||(l(!0),o=window.setTimeout(()=>{f(!0),e.onFadingChange?.(!0),s=window.setTimeout(()=>{e.onDismiss?.()},150)},I-150))},b=t=>{if(!Q.isActive(r))return;let n=t.code===`Enter`,i=t.code===`Escape`;d(t)||(n?(t.preventDefault(),t.stopPropagation(),v()):i&&(t.preventDefault(),t.stopPropagation(),e.onDismiss?.()))},x=()=>{Q.claim(r)};return t(()=>{Q.claim(r),window.addEventListener(`keydown`,b,{capture:!0})}),k(()=>{Q.release(r),window.removeEventListener(`keydown`,b,{capture:!0}),o!==void 0&&window.clearTimeout(o),s!==void 0&&window.clearTimeout(s)}),(()=>{var t=qe();return t.$$click=x,t.$$pointerdown=x,y(t,i(n,{get when(){return m(()=>!c())()&&e.onDismiss},get children(){var t=Ge(),r=t.firstChild,a=r.nextSibling;return y(r,h),y(a,i(n,{get when(){return e.onShowContextMenu},get children(){return i(Je,{onClick:_})}}),null),y(a,i(n,{get when(){return e.onDismiss},get children(){var e=We();return e.firstChild,e.$$click=v,y(e,i(n,{get when(){return!c()},get children(){return i(Ae,{size:10,class:`text-[var(--rg-text-secondary)]`})}}),null),g(()=>e.disabled=c()),e}}),null),t}}),null),y(t,i(n,{get when(){return c()||!e.onDismiss},get children(){var t=Ke(),r=t.firstChild;return y(t,i(He,{size:14,class:`text-[var(--rg-text-primary-85)] shrink-0 animate-success-pop`}),r),y(r,h),y(t,i(n,{get when(){return e.onShowContextMenu},get children(){return i(Je,{onClick:_})}}),null),t}}),null),g(e=>{var n=X(`contain-layout shrink-0 flex flex-col justify-center items-end rounded-[10px] antialiased w-fit h-fit max-w-[280px] transition-opacity duration-100 ease-out [font-synthesis:none] [corner-shape:superellipse(1.25)]`,`bg-[var(--rg-panel-bg)]`),r=+!u();return n!==e.e&&p(t,e.e=n),r!==e.t&&T(t,`opacity`,e.t=r),e},{e:void 0,t:void 0}),t})()};x([`pointerdown`,`click`]);const Xe=({hiddenOpacity:e=`0`,visibleOpacity:t=`1`}={})=>{let n,r,i=()=>{r&&(r.style.opacity=e)};return{containerRef:e=>{n=e},followerRef:e=>{r=e},followElement:e=>{if(!r||!n)return;if(!e){i();return}let a=n.getBoundingClientRect(),o=e.getBoundingClientRect(),s=o.top-a.top+n.scrollTop,c=o.left-a.left+n.scrollLeft;r.style.opacity=t,r.style.top=`${s}px`,r.style.left=`${c}px`,r.style.width=`${o.width}px`,r.style.height=`${o.height}px`},hideFollower:i}},Ze=()=>{let{containerRef:e,followerRef:t,followElement:n,hideFollower:r}=Xe();return{containerRef:e,highlightRef:t,updateHighlight:n,clearHighlight:r}};var Qe=u(`<div class="relative flex flex-col w-[calc(100%+16px)] -mx-2 -my-1.5"><div class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),$e=u(`<span class=text-[var(--rg-text-secondary)]>.`),et=u(`<button data-react-grab-ignore-events class="relative z-1 contain-layout flex items-center w-full px-2 py-1 cursor-pointer text-left border-none bg-transparent"><span class="text-[13px] leading-4 h-fit font-medium overflow-hidden text-ellipsis whitespace-nowrap min-w-0 transition-colors">`);const tt=e=>{let{containerRef:t,highlightRef:r,updateHighlight:a,clearHighlight:o}=Ze(),s,l=!1,u=e=>{if(s)return s.querySelector(`[data-react-grab-arrow-nav-index="${e}"]`)??void 0};return _(()=>{e.items,l=!1}),_(()=>{let t=u(e.activeIndex);t&&a(t)}),i(De,{get children(){var d=Qe(),f=d.firstChild;return d.$$pointermove=()=>{l=!0},D(e=>{s=e,t(e)},d),D(r,f),y(d,i(E,{get each(){return e.items},children:(t,r)=>(()=>{var s=et(),d=s.firstChild;return s.$$click=t=>{t.stopPropagation(),e.onSelect(r())},s.addEventListener(`pointerleave`,()=>{let t=u(e.activeIndex);t?a(t):o()}),s.addEventListener(`pointerenter`,t=>{a(t.currentTarget),l&&e.onSelect(r())}),s.$$pointerdown=e=>e.stopPropagation(),y(d,i(n,{get when(){return t.componentName},get children(){return[m(()=>t.componentName),$e()]}}),null),y(d,()=>t.tagName,null),g(n=>{var i=t.tagName,a=r(),o=r()===e.activeIndex,l=r()!==e.activeIndex;return i!==n.e&&c(s,`data-react-grab-arrow-nav-item`,n.e=i),a!==n.t&&c(s,`data-react-grab-arrow-nav-index`,n.t=a),o!==n.a&&d.classList.toggle(`text-[var(--rg-text-primary)]`,n.a=o),l!==n.o&&d.classList.toggle(`text-[var(--rg-text-secondary)]`,n.o=l),n},{e:void 0,t:void 0,a:void 0,o:void 0}),s})()}),null),d}})};x([`pointermove`,`pointerdown`,`click`]);var nt=u(`<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">`),rt=u(`<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">`),it=u(`<button data-react-grab-submit 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">`),at=u(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events data-react-grab-input class="text-[var(--rg-text-primary)] text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="Add context"rows=1 style=field-sizing:content;min-height:16px;scrollbar-width:none>`),ot=u(`<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">`),st=u(`<div data-react-grab-ignore-events data-react-grab-selection-label><div>`);const ct={left:W,top:W,arrowLeftPercent:50,arrowLeftOffset:0,edgeOffsetX:0},lt=r=>{let s,c,l,u=!1,[h,v]=a(0),[b,x]=a(0),[S,C]=a(0),[w,E]=a(0),[O,A]=a(!1),[j,M]=a(!1),N=()=>r.status!==`copying`&&r.status!==`copied`&&r.status!==`fading`&&r.status!==`error`,P=()=>r.status===`copied`||r.status===`fading`,F=()=>!!r.shouldToggleExpandOnClick&&!!r.onToggleExpand&&N()&&!r.isPromptMode,I=()=>!!(r.isPromptMode||F()||P()&&(r.onDismiss||r.onShowContextMenu)||r.status===`error`&&(r.onAcknowledgeError||r.onRetry)||r.arrowNavigationState?.isVisible),L,R=e=>{u=e},z=()=>{E(e=>e+1)},B=e=>{d(e)||e.code===`Enter`&&!r.isPromptMode&&N()&&(e.preventDefault(),e.stopImmediatePropagation(),r.onToggleExpand?.())};t(()=>{if(L=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();t.target===s&&!u?(v(e.width),x(e.height)):t.target===c&&C(e.width)}}),s){let e=s.getBoundingClientRect();v(e.width),x(e.height),L.observe(s)}c&&(C(c.getBoundingClientRect().width),L.observe(c)),window.addEventListener(`scroll`,z,!0),window.addEventListener(`resize`,z),window.visualViewport?.addEventListener(`resize`,z),window.visualViewport?.addEventListener(`scroll`,z),r.onToggleExpand&&window.addEventListener(`keydown`,B,{capture:!0})}),k(()=>{L?.disconnect(),window.removeEventListener(`scroll`,z,!0),window.removeEventListener(`resize`,z),window.visualViewport?.removeEventListener(`resize`,z),window.visualViewport?.removeEventListener(`scroll`,z),window.removeEventListener(`keydown`,B,{capture:!0})});let te=()=>`${r.tagName??``}:${r.componentName??``}`,V=e(e=>{w();let t=te(),n=t===e.elementIdentity?e:{position:ct,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:t},i=r.selectionBounds,a=h(),o=b(),s=a>0&&o>0,c=i&&i.width>0&&i.height>0;if(!s||!c)return{position:n.hadValidBounds?n.position:ct,computedArrowPosition:n.computedArrowPosition,hadValidBounds:n.hadValidBounds,elementIdentity:t};let l=window.visualViewport,u=l?.offsetLeft??0,d=l?.offsetTop??0,f=u+(l?.width??window.innerWidth),p=d+(l?.height??window.innerHeight);if(!(i.x+i.width>u&&i.x<f&&i.y+i.height>d&&i.y<p))return{position:ct,computedArrowPosition:n.computedArrowPosition,hadValidBounds:n.hadValidBounds,elementIdentity:t};let m=i.x+i.width/2,g=r.mouseX??m,_=i.y+i.height,v=i.y,y=r.hideArrow?0:he(S()),x=g,C=0,T=_+y+4;if(a>0){let e=x-a/2,t=x+a/2;t>f-8&&(C=f-8-t),e+C<u+8&&(C=u+8-e)}let E=o+y+4,D=T+o<=p-8;D||(T=v-E),T<d+8&&(T=d+8);let O=a/2,k=O-C,A=Math.min(16,O),j=Math.max(a-16,O),M=Math.max(A,Math.min(j,k))-O;return{position:{left:x,top:T,arrowLeftPercent:50,arrowLeftOffset:M,edgeOffsetX:C},computedArrowPosition:D?`bottom`:`top`,hadValidBounds:!0,elementIdentity:t}},{position:ct,computedArrowPosition:null,hadValidBounds:!1,elementIdentity:``}),ne=()=>V().computedArrowPosition??`bottom`,H=()=>V().hadValidBounds;_(o(()=>r.selectionLabelShakeCount,()=>M(!0),{defer:!0}));let U=e=>{if(e.isComposing||e.keyCode===229)return;e.stopImmediatePropagation();let t=e.code===`Enter`&&!e.shiftKey,n=e.code===`Escape`;t?(e.preventDefault(),r.onSubmit?.()):n&&(e.preventDefault(),r.onConfirmDismiss?.())},ie=e=>{let t=e.target;t instanceof HTMLTextAreaElement&&(me(t,95),r.onInputChange?.(t.value))},W=()=>Z({tagName:r.tagName,componentName:r.componentName,elementsCount:r.elementsCount}),G=()=>!!r.arrowNavigationState?.isVisible,ae=e=>{if(e.stopImmediatePropagation(),r.filePath&&r.onOpen){r.onOpen();return}F()&&r.onToggleExpand?.()},oe=e=>{e.stopImmediatePropagation(),N()&&r.isPromptMode&&!r.isPendingDismiss&&r.onSubmit&&l&&l.focus({preventScroll:!0})},se=()=>H()&&(P()||r.status===`error`);return i(n,{get when(){return m(()=>r.visible!==!1)()&&(r.selectionBounds||se())},get children(){var e=st(),t=e.firstChild;e.addEventListener(`mouseleave`,()=>r.onHoverChange?.(!1)),e.addEventListener(`mouseenter`,()=>r.onHoverChange?.(!0)),e.$$click=e=>{e.stopImmediatePropagation()},e.$$pointerdown=oe;var a=s;typeof a==`function`?D(a,e):s=e,T(e,`z-index`,`${ee}`),T(e,`transition`,`opacity 150ms ease-out, filter 150ms ease-out`),y(e,i(n,{get when(){return!r.hideArrow},get children(){return i(xe,{get position(){return ne()},get leftPercent(){return V().position.arrowLeftPercent},get leftOffsetPx(){return V().position.arrowLeftOffset},get labelWidth(){return S()}})}}),t),y(e,i(n,{get when(){return m(()=>!!P())()&&!r.error},get children(){return i(Ye,{get statusText(){return r.statusText??`Copied`},get onDismiss(){return r.onDismiss},onFadingChange:A,get onShowContextMenu(){return r.onShowContextMenu}})}}),t),t.addEventListener(`animationend`,()=>M(!1));var o=c;return typeof o==`function`?D(o,t):c=t,y(t,i(n,{get when(){return r.status===`copying`},get children(){var e=nt(),t=e.firstChild,n=t.firstChild;return y(t,i(ye,{size:13,class:`text-[var(--rg-text-secondary)] shrink-0`}),n),y(n,()=>r.statusText??`Grabbing…`),e}}),null),y(t,i(n,{get when(){return m(()=>!!N())()&&!r.isPromptMode},get children(){var e=rt(),t=e.firstChild;return y(t,i(Te,{get tagName(){return W().tagName},get componentName(){return W().componentName},get isClickable(){return!!(r.filePath&&r.onOpen)},onClick:ae,onHoverChange:R,shrink:!0,get forceShowIcon(){return m(()=>!!G())()?!!(r.filePath&&r.onOpen):!!r.isContextMenuOpen}})),y(e,i(n,{get when(){return r.arrowNavigationState?.isVisible},get children(){return i(tt,{get items(){return r.arrowNavigationState.items},get activeIndex(){return r.arrowNavigationState.activeIndex},onSelect:e=>r.onArrowNavigationSelect?.(e)})}}),null),g(n=>{var r=!!G(),i={"py-1.5":!G(),"pt-1.5 pb-1":G()};return r!==n.e&&e.classList.toggle(`min-w-[100px]`,n.e=r),n.t=f(t,i,n.t),n},{e:void 0,t:void 0}),e}}),null),y(t,i(n,{get when(){return m(()=>!!(N()&&r.isPromptMode))()&&!r.isPendingDismiss},get children(){var e=ot(),t=e.firstChild;return y(t,i(Te,{get tagName(){return W().tagName},get componentName(){return W().componentName},get isClickable(){return!!(r.filePath&&r.onOpen)},onClick:ae,onHoverChange:R,forceShowIcon:!0})),y(e,i(De,{get children(){var e=at(),t=e.firstChild;return t.$$keydown=U,t.$$input=ie,D(e=>{l=e,r.onSubmit&&queueMicrotask(()=>{e.focus({preventScroll:!0}),me(e,95)})},t),T(t,`max-height`,`95px`),y(e,i(n,{get when(){return r.onSubmit},get children(){var e=it();return e.$$click=()=>r.onSubmit?.(),y(e,i(_e,{size:10,class:`text-[var(--rg-submit-fg)]`})),e}}),null),g(()=>t.readOnly=!r.onSubmit),g(()=>t.value=r.inputValue??``),e}}),null),e}}),null),y(t,i(n,{get when(){return r.isPendingDismiss},get children(){return i(Ne,{get onConfirm(){return r.onConfirmDismiss},onCancel:()=>{r.onCancelDismiss?.(),l?.focus({preventScroll:!0})}})}}),null),y(t,i(n,{get when(){return r.error},get children(){return i(Re,{get error(){return r.error},get onAcknowledge(){return r.onAcknowledgeError},get onRetry(){return r.onRetry}})}}),null),g(n=>{var i=X(`fixed font-sans text-[13px] antialiased select-none ease-out`),a=`${V().position.top}px`,o=`${V().position.left}px`,s=`translateX(calc(-50% + ${V().position.edgeOffsetX}px))`,c=I()?`auto`:`none`,l=r.status===`fading`||O()?0:1,u=`drop-shadow(${re}) blur(${r.status===`fading`||O()?`3px`:`0`})`,d=X(`contain-layout flex items-center gap-[5px] rounded-[10px] antialiased w-fit h-fit p-0 [font-synthesis:none] [corner-shape:superellipse(1.25)]`,`bg-[var(--rg-panel-bg)]`,j()&&`animate-shake`),f=P()&&!r.error?`none`:void 0;return i!==n.e&&p(e,n.e=i),a!==n.t&&T(e,`top`,n.t=a),o!==n.a&&T(e,`left`,n.a=o),s!==n.o&&T(e,`transform`,n.o=s),c!==n.i&&T(e,`pointer-events`,n.i=c),l!==n.n&&T(e,`opacity`,n.n=l),u!==n.s&&T(e,`filter`,n.s=u),d!==n.h&&p(t,n.h=d),f!==n.r&&T(t,`display`,n.r=f),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),e}})};x([`pointerdown`,`click`,`input`,`keydown`]);var ut=u(`<span style="transition-property:transform, color;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">`);const dt=e=>{let t=()=>e.size??14,n=()=>e.rotationDeg??0;return(()=>{var r=ut(),i=r.firstChild;return T(r,`transition-duration`,`180ms`),g(a=>{var o=X(`inline-flex items-center justify-center will-change-transform`,e.class),s=`rotate(${n()}deg)`,l=t(),u=t();return o!==a.e&&p(r,a.e=o),s!==a.t&&T(r,`transform`,a.t=s),l!==a.a&&c(i,`width`,a.a=l),u!==a.o&&c(i,`height`,a.o=u),a},{e:void 0,t:void 0,a:void 0,o:void 0}),r})()},ft=e=>e?`mb-1.5`:`mr-1.5`,pt=e=>e?`min-h-0`:`min-w-0`;var mt=u(`<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">`);const ht=e=>{let t=()=>e.size??14;return(()=>{var n=mt();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var gt=u(`<button data-react-grab-ignore-events data-react-grab-toolbar-collapse class="contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale">`),_t=u(`<div data-react-grab-toolbar-panel><div><div><div>`);const vt=e=>{let t=()=>e.snapEdge??`bottom`,n=()=>t()===`left`||t()===`right`,r=()=>e.isCollapsed?`duration-140`:`duration-220`,a=()=>n()?`transition-[grid-template-rows] ${r()} ease-drawer`:`transition-[grid-template-columns] ${r()} ease-drawer`,o=()=>pt(n()),s=()=>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`}`:``,l=()=>{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`}},u=()=>{if(e.isChevronPressed)return n()?`scale(0.97, 1)`:`scale(1, 0.97)`},d=()=>(()=>{var t=gt();return w(t,`pointercancel`,e.onCollapsePointerLeave),w(t,`pointerleave`,e.onCollapsePointerLeave),w(t,`pointerup`,e.onCollapsePointerUp,!0),w(t,`pointerdown`,e.onCollapsePointerDown),w(t,`click`,e.onCollapseClick,!0),y(t,i(ht,{size:18,get class(){return X(`text-[var(--rg-text-secondary)] transition-transform duration-150 ease-drawer -m-0.5`,l())}})),g(()=>c(t,`aria-label`,e.isCollapsed?`Expand toolbar`:`Collapse toolbar`)),t})(),f=()=>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=_t(),r=t.firstChild,i=r.firstChild,c=i.firstChild;return w(t,`click`,e.onPanelClick,!0),w(t,`animationend`,e.onAnimationEnd),y(c,()=>e.selectButton),y(t,()=>e.collapseButton??d(),null),g(l=>{var d=X(`flex items-center justify-center rounded-full antialiased relative overflow-visible [font-synthesis:none]`,f(),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`),s(),e.isShaking&&`animate-shake`),m=e.transformOrigin,h=u(),g=X(`grid relative overflow-visible`,a(),e.isCollapsed?n()?`grid-rows-[0fr] pointer-events-none`:`grid-cols-[0fr] pointer-events-none`:n()?`grid-rows-[1fr]`:`grid-cols-[1fr]`),_=X(`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=X(`relative overflow-visible`,o());return d!==l.e&&p(t,l.e=d),m!==l.t&&T(t,`transform-origin`,l.t=m),h!==l.a&&T(t,`transform`,l.a=h),g!==l.o&&p(r,l.o=g),_!==l.i&&p(i,l.i=_),v!==l.n&&p(c,l.n=v),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})()};x([`click`,`pointerup`]);const yt=()=>{let e=window.visualViewport;return e?{width:e.width,height:e.height,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop}:{width:window.innerWidth,height:window.innerHeight,offsetLeft:0,offsetTop:0}},bt=e=>e===`top`||e===`bottom`,xt=e=>{let t=bt(e);return{width:t?30:16,height:t?16:30}},St=(e,t,n,r)=>{let i=yt(),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(e===`top`||e===`bottom`){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}},Ct=(e,t,n,r,i)=>{let a=yt(),o=a.width,s=a.height;if(e===`top`||e===`bottom`){let e=o-r-32;return e<=0?B:Math.max(0,Math.min(1,(t-a.offsetLeft-16)/e))}let c=s-i-32;return c<=0?B:Math.max(0,Math.min(1,(n-a.offsetTop-16)/c))},wt=(e,t,n,r,i)=>{let a=yt(),o=a.width,s=a.height,{width:c,height:u}=n,d;if(t===`top`||t===`bottom`){let n=(c-r)/2;d={x:l(e.x-n,a.offsetLeft+16,a.offsetLeft+o-c-16),y:t===`top`?a.offsetTop+16:a.offsetTop+s-u-16}}else{let n=(u-i)/2,r=l(e.y-n,a.offsetTop+16,a.offsetTop+s-u-16);d={x:t===`left`?a.offsetLeft+16:a.offsetLeft+o-c-16,y:r}}let f=Ct(t,d.x,d.y,c,u);return{position:d,ratio:f}},Tt=(e,t,n,r)=>{let i=yt(),{width:a,height:o}=n,{width:s,height:c}=r;switch(e){case`top`:case`bottom`:{let n=(a-s)/2;return{x:l(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=l(t.y+n,i.offsetTop,i.offsetTop+i.height-c);return{x:e===`left`?i.offsetLeft:i.offsetLeft+i.width-s,y:r}}}},Et=(e,t,n,r,i,a)=>{let o=yt(),s=o.width,c=o.height,u=e+i*150,d=t+a*150,f=d-o.offsetTop+r/2,p=o.offsetTop+c-d-r/2,m=u-o.offsetLeft+n/2,h=o.offsetLeft+s-u-n/2,g=Math.min(f,p,m,h),_=e=>l(e,o.offsetLeft+16,o.offsetLeft+s-n-16),v=e=>l(e,o.offsetTop+16,o.offsetTop+c-r-16);return g===f?{edge:`top`,x:_(u),y:o.offsetTop+16}:g===m?{edge:`left`,x:o.offsetLeft+16,y:v(d)}:g===h?{edge:`right`,x:o.offsetLeft+s-n-16,y:v(d)}:{edge:`bottom`,x:_(u),y:o.offsetTop+c-r-16}},Dt=e=>{let[t,n]=a(!1),[r,i]=a(!1),[o,s]=a(!1),[c,l]=a({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=null,g=()=>{h?.abort(),h=null},_=t=>{if(!o()){if(Math.hypot(t.clientX-f.x,t.clientY-f.y)<=5)return;s(!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,a=t.clientY-u.y;e.onPositionUpdate({x:i,y:a})},v=()=>{g();let t=o();if(n(!1),!t)return;p=!0;let r=e.getContainerRef(),a=r?.getBoundingClientRect();if(!a)return;let s=c(),l=Et(a.left,a.top,a.width,a.height,s.x,s.y),u=Ct(l.edge,l.x,l.y,a.width,a.height);e.onSnapEdgeChange(l.edge,u),i(!0),j(()=>{let t=r?.getBoundingClientRect(),n=t?{width:t.width,height:t.height}:e.getExpandedDimensions();j(()=>{let t=St(l.edge,u,n.width,n.height);e.onSnapComplete({edge:l.edge,ratio:u,position:t,expandedDimensions:n}),m=setTimeout(()=>{i(!1),e.onSnapAnimationEnd?.()},300)})})};return k(()=>{g(),clearTimeout(m)}),{isDragging:t,isSnapping:r,handlePointerDown:t=>{if(t.button!==0||e.isCollapsed())return;let r=e.getContainerRef()?.getBoundingClientRect();if(!r)return;f={x:t.clientX,y:t.clientY},u={x:t.clientX-r.left,y:t.clientY-r.top},n(!0),s(!1),l({x:0,y:0}),d={x:t.clientX,y:t.clientY,time:performance.now()},g(),h=new AbortController;let{signal:i}=h;window.addEventListener(`pointermove`,_,{signal:i}),window.addEventListener(`pointerup`,v,{signal:i}),window.addEventListener(`pointercancel`,v,{signal:i})},createDragAwareHandler:e=>t=>{if(t.stopImmediatePropagation(),p){p=!1;return}e()}}},Ot=(e,t)=>{let n=t,r=n-e;for(;r>180;)n-=360,r=n-e;for(;r<-180;)n+=360,r=n-e;return n};var kt=u(`<div data-react-grab-ignore-events data-react-grab-toolbar>`),At=u(`<button data-react-grab-ignore-events data-react-grab-toolbar-toggle>`);const jt=e=>{let n,s,c=null,l=C(),[u,d]=a(!1),[f,m]=a(!1),[h,v]=a(!1),[x,S]=a(l?.edge??`bottom`),[E,A]=a(l?.ratio??.5),[j,M]=a({x:0,y:0}),[N,P]=a(!1),[F,I]=a(!1),[L,R]=a(!1),[te,V]=a(!1),[re,H]=a(0),U=Dt({getContainerRef:()=>n,isCollapsed:f,getExpandedDimensions:()=>K,onDragStart:()=>{c&&(c(),c=null,z(),ne())},onPositionUpdate:e=>M(e),onSnapEdgeChange:(e,t)=>{ue(x(),e),S(e),A(t)},onSnapComplete:e=>{K=e.expandedDimensions,M(e.position),ye({edge:e.edge,ratio:e.ratio,collapsed:f(),enabled:!f()})}}),ie=()=>x()===`left`||x()===`right`,W=()=>ft(ie()),G=e=>{e.stopImmediatePropagation()},se=t=>({onMouseEnter:e=>{U.isDragging()||(t?.shouldFreezeInteractions!==!1&&!c&&(c=ce(),oe(),ae(e.clientX,e.clientY)),t?.onHoverChange?.(!0))},onMouseLeave:()=>{t?.shouldFreezeInteractions!==!1&&!e.isActive&&!e.isContextMenuOpen&&(c?.(),c=null,z(),ne()),t?.onHoverChange?.(!1)}});_(o(()=>e.shakeCount,t=>{t&&!e.enabled&&P(!0)})),_(o(()=>[e.isActive,e.isContextMenuOpen],([e,t])=>{!e&&!t&&c&&(c(),c=null)})),_(o(()=>!!e.isActive,e=>{if(!e){H(e=>Ot(e,0));return}let t=e=>{if(!s)return;let t=s.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/2,i=e.clientX-n,a=e.clientY-r;if(Math.hypot(i,a)<4)return;let o=Math.atan2(a,i)*180/Math.PI- -45;H(e=>Ot(e,o))};window.addEventListener(`pointermove`,t,{passive:!0}),k(()=>{window.removeEventListener(`pointermove`,t)})}));let K={width:78,height:28},[le,q]=a(xt(x())),ue=(e,t)=>{bt(e)!==bt(t)&&q(xt(t))},de=(e,t)=>{let r=n?.getBoundingClientRect(),i=xt(t);return wt(e,t,K,r?.width??i.width,r?.height??i.height)},fe=()=>{M(St(x(),E(),K.width,K.height))},J=U.createDragAwareHandler(()=>e.onToggle?.()),pe=U.createDragAwareHandler(()=>{let e=n?.getBoundingClientRect(),t=f(),r=E();if(t){let{position:e,ratio:t}=de(be(),x());r=t,M(e),A(r)}else e&&(K={width:e.width,height:e.height});I(!0),m(e=>!e),ye({edge:x(),ratio:r,collapsed:!t,enabled:t}),Y&&clearTimeout(Y),Y=setTimeout(()=>{I(!1),ge()},260)}),me=()=>Tt(x(),j(),K,le()),he,Y,Z=null,ge=()=>{let e=n?.getBoundingClientRect();!e||e.width===0||e.height===0||(f()?q({width:e.width,height:e.height}):(K={width:e.width,height:e.height},Z={width:e.width,height:e.height}))},_e=(e,t)=>{if(!(e===0||t===0)&&!(U.isDragging()||U.isSnapping())&&!F()){if(f()){let n=le();if(n.width===e&&n.height===t)return;q({width:e,height:t});return}Z&&Z.width===e&&Z.height===t||(Z={width:e,height:t},K={width:e,height:t},M(St(x(),E(),e,t)))}},ve=()=>{U.isDragging()||(v(!0),fe(),he&&clearTimeout(he),he=setTimeout(()=>{v(!1);let e=Ct(x(),j().x,j().y,K.width,K.height);A(e),ye({edge:x(),ratio:e,collapsed:f(),enabled:!f()})},500))},ye=t=>{b(t),e.onStateChange?.(t)};t(()=>{n&&e.onContainerRef?.(n);let t=n?.getBoundingClientRect(),r=yt(),i=!!(t&&t.width>0&&t.height>0);if(l?(i&&t&&(K={width:t.width,height:t.height}),m(l.collapsed),M(St(l.edge,l.ratio,K.width,K.height))):i&&t?(K={width:t.width,height:t.height},M({x:r.offsetLeft+(r.width-t.width)/2,y:r.offsetTop+r.height-t.height-16}),A(B)):(M(St(`bottom`,B,K.width,K.height)),A(B)),e.onSubscribeToStateChanges&&k(e.onSubscribeToStateChanges(e=>{if(F()||!n?.getBoundingClientRect())return;let t=f()!==e.collapsed;if(ue(x(),e.edge),S(e.edge),t&&!e.collapsed){let t=be();I(!0),m(e.collapsed);let{position:n,ratio:r}=de(t,e.edge);M(n),A(r),clearTimeout(Y),Y=setTimeout(()=>{I(!1),ge()},260)}else t&&(I(!0),clearTimeout(Y),Y=setTimeout(()=>{I(!1),ge()},260)),m(e.collapsed),M(St(e.edge,e.ratio,K.width,K.height)),A(e.ratio)})),window.addEventListener(`resize`,ve),window.visualViewport?.addEventListener(`resize`,ve),window.visualViewport?.addEventListener(`scroll`,ve),typeof ResizeObserver<`u`&&n){let e=new ResizeObserver(e=>{let t=e[0];if(!t)return;let r=t.borderBoxSize?.[0],i,a;if(r)i=r.inlineSize,a=r.blockSize;else{let e=n?.getBoundingClientRect();if(!e)return;i=e.width,a=e.height}_e(i,a)});e.observe(n),k(()=>e.disconnect())}let a=setTimeout(()=>{d(!0)},500);k(()=>{clearTimeout(a)})}),k(()=>{window.removeEventListener(`resize`,ve),window.visualViewport?.removeEventListener(`resize`,ve),window.visualViewport?.removeEventListener(`scroll`,ve),clearTimeout(he),clearTimeout(Y),c?.()});let be=()=>f()?me():j(),xe=()=>f()?`cursor-pointer`:U.isDragging()?`cursor-grabbing`:`cursor-grab`,Se=()=>te()||!!e.isContextMenuOpen||U.isDragging()||U.isSnapping()||F()||L(),Ce=()=>!!e.isActive&&!Se(),we=()=>h()||U.isDragging()?``:U.isSnapping()?`transition-[transform,opacity] duration-300 ease-out`:F()?`transition-[transform,opacity] ${f()?`duration-140`:`duration-220`} ease-drawer`:`transition-[transform,opacity] duration-400 ease-drawer`,Te=()=>{switch(x()){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 t=kt();t.addEventListener(`mouseleave`,()=>{V(!1),e.onSelectHoverChange?.(!1)}),t.addEventListener(`mouseenter`,()=>{V(!0),f()||e.onSelectHoverChange?.(!0)}),w(t,`mousedown`,G),w(t,`pointerdown`,e=>{G(e),U.handlePointerDown(e)});var a=n;return typeof a==`function`?D(a,t):n=t,y(t,i(vt,{get isCollapsed(){return f()},get snapEdge(){return x()},get isShaking(){return N()},get isChevronPressed(){return L()},get transformOrigin(){return Te()},onAnimationEnd:()=>P(!1),onCollapseClick:pe,onCollapsePointerDown:()=>R(!0),onCollapsePointerUp:()=>R(!1),onCollapsePointerLeave:()=>R(!1),onPanelClick:e=>{if(f()){e.stopPropagation();let{position:t,ratio:n}=de(be(),x());M(t),A(n),I(!0),m(!1),ye({edge:x(),ratio:n,collapsed:!1,enabled:!0}),Y&&clearTimeout(Y),Y=setTimeout(()=>{I(!1),ge()},260)}},get selectButton(){return(()=>{var t=At();w(t,`contextmenu`,t=>{t.preventDefault(),t.stopPropagation(),e.onToggleToolbarMenu?.()}),w(t,`click`,J,!0);var n=s;return typeof n==`function`?D(n,t):s=t,O(t,r({get"aria-label"(){return e.isActive?`Stop selecting element`:`Select element`},get"aria-pressed"(){return!!e.isActive},get class(){return X(`contain-layout flex items-center justify-center cursor-pointer interactive-scale touch-hitbox`,W())}},se),!1,!0),y(t,i(dt,{size:14,get rotationDeg(){return re()},get class(){return e.isActive?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)]`}})),t})()}})),g(e=>{var n=X(`fixed left-0 top-0 font-sans text-[13px] antialiased select-none`,xe(),we(),u()?`pointer-events-auto`:`pointer-events-none`),r=String(ee),i=`translate(${be().x}px, ${be().y}px) scale(${Ce()?.97:1})`,a=Te(),o=u()?Ce()?.55:1:0;return n!==e.e&&p(t,e.e=n),r!==e.t&&T(t,`z-index`,e.t=r),i!==e.a&&T(t,`transform`,e.a=i),a!==e.o&&T(t,`transform-origin`,e.o=a),o!==e.i&&T(t,`opacity`,e.i=o),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()};x([`click`]);var Mt=u(`<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">`);const Nt=e=>{let t=()=>e.size??11;return(()=>{var n=Mt();return g(r=>{var i=t(),a=t(),o=e.class;return i!==r.e&&c(n,`width`,r.e=i),a!==r.t&&c(n,`height`,r.t=a),o!==r.a&&c(n,`class`,r.a=o),r},{e:void 0,t:void 0,a:void 0}),n})()};var Pt=u(`<span>`),Ft=u(`<span style=display:inline-flex;align-items:center;gap:2px>`),It=u(`<span>Ctrl+`);const Lt=e=>{let t=()=>e.shortcut===`Enter`,r=h();return(()=>{var a=Ft();return y(a,i(n,{get when(){return t()},get children(){return i(Ae,{size:8})}}),null),y(a,i(n,{get when(){return!t()},get children(){return i(n,{when:r,get fallback(){return(()=>{var t=It();return t.firstChild,y(t,()=>e.shortcut,null),t})()},get children(){return[i(Nt,{size:9}),(()=>{var t=Pt();return y(t,()=>e.shortcut),t})()]}})}}),null),g(()=>p(a,e.class)),a})()},Rt=e=>e??!0,zt=(e,t)=>typeof e.enabled==`function`?t?e.enabled(t):!1:Rt(e.enabled),$=e=>{e.type===`contextmenu`&&e.preventDefault(),e.stopImmediatePropagation()},Bt=e=>{let t=t=>{if(e.isOpen()&&!(e.shouldIgnoreInputEvents&&d(t))){if(t.code===`Escape`){t.preventDefault(),t.stopImmediatePropagation(),e.onDismiss();return}t.code===`Enter`&&e.onConfirm&&(t.preventDefault(),t.stopImmediatePropagation(),e.onConfirm())}},n=t=>{e.isOpen()&&(S(t,`data-react-grab-ignore-events`)||e.shouldIgnoreRightClick&&t instanceof MouseEvent&&t.button===2||e.onDismiss())},r=j(()=>{window.addEventListener(`mousedown`,n,{capture:!0}),window.addEventListener(`touchstart`,n,{capture:!0})});return window.addEventListener(`keydown`,t,{capture:!0}),()=>{H(r),window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`mousedown`,n,{capture:!0}),window.removeEventListener(`touchstart`,n,{capture:!0})}};var Vt=u(`<div class="relative flex flex-col w-[calc(100%+16px)] -mx-2 -my-1.5"><div class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),Ht=u(`<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><div><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 w-fit h-fit px-2">`),Ut=u(`<button data-react-grab-ignore-events class="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"><span class="text-[13px] leading-4 font-sans font-medium text-[var(--rg-text-primary)]">`);const Wt=r=>{let o,{containerRef:s,highlightRef:l,updateHighlight:u,clearHighlight:d}=Ze(),[f,m]=a(0),[h,v]=a(0),b=()=>r.position!==null,x=e(()=>Z({tagName:r.tagName,componentName:r.componentName})),S=()=>{if(o){let e=o.getBoundingClientRect();m(e.width),v(e.height)}};_(()=>{b()&&j(S)});let C=e(()=>{let e=r.selectionBounds,t=r.position,n=f(),i=h();if(n===0||i===0||!e||!t)return{left:M.left,top:M.top,arrowLeft:0,arrowPosition:`bottom`};let a=t.x??e.x+e.width/2,o=Math.max(4,Math.min(a-n/2,window.innerWidth-n-4)),s=Math.max(8,Math.min(a-o,n-8)),c=e.y+e.height+8+4,l=e.y-i-8-4,u=c+i>window.innerHeight,d=l>=0,p=u&&d,m=p?l:c,g=p?`top`:`bottom`;if(u&&!d){let n=t.y??e.y+e.height/2;m=Math.max(4,Math.min(n+4,window.innerHeight-i-4)),g=`top`}return{left:o,top:m,arrowLeft:s,arrowPosition:g}}),O=e(()=>{let e=r.actions??[],t=r.actionContext;return e.map(e=>({label:e.label,action:()=>{t&&e.onAction(t)},enabled:zt(e,t),shortcut:e.shortcut}))}),A=(e,t)=>{t.stopPropagation(),e.enabled&&(e.action(),r.onHide())};return t(()=>{S();let e=e=>{if(!b())return;let t=e.key===`Enter`,n=e.metaKey||e.ctrlKey,i=e.key.toLowerCase(),a=r.actions??[],o=r.actionContext,s=t=>{o&&zt(t,o)&&(e.preventDefault(),e.stopPropagation(),t.onAction(o),r.onHide())};if(t){let e=a.find(e=>e.shortcut===`Enter`);e&&s(e);return}if(!n||e.repeat)return;let c=a.find(e=>e.shortcut&&e.shortcut!==`Enter`&&i===e.shortcut.toLowerCase());c&&s(c)},t=Bt({isOpen:b,onDismiss:r.onDismiss,shouldIgnoreRightClick:!0});window.addEventListener(`keydown`,e,{capture:!0}),k(()=>{t(),window.removeEventListener(`keydown`,e,{capture:!0})})}),i(n,{get when(){return b()},get children(){var e=Ht(),t=e.firstChild,a=t.firstChild;w(e,`contextmenu`,$,!0),w(e,`click`,$,!0),w(e,`mousedown`,$,!0),w(e,`pointerdown`,$,!0);var f=o;return typeof f==`function`?D(f,e):o=e,T(e,`z-index`,`${ee}`),y(e,i(xe,{get position(){return C().arrowPosition},leftPercent:0,get leftOffsetPx(){return C().arrowLeft}}),t),y(a,i(Te,{get tagName(){return x().tagName},get componentName(){return x().componentName},get isClickable(){return r.hasFilePath},onClick:e=>{e.stopPropagation(),r.hasFilePath&&r.actionContext&&(r.actions?.find(e=>e.id===`open`))?.onAction(r.actionContext)},shrink:!0,get forceShowIcon(){return r.hasFilePath}})),y(t,i(De,{get children(){var e=Vt(),t=e.firstChild;return D(s,e),D(l,t),y(e,i(E,{get each(){return O()},children:e=>(()=>{var t=Ut(),r=t.firstChild;return t.$$click=t=>A(e,t),w(t,`pointerleave`,d),t.addEventListener(`pointerenter`,t=>{e.enabled&&u(t.currentTarget)}),t.$$pointerdown=e=>e.stopPropagation(),y(r,()=>e.label),y(t,i(n,{get when(){return e.shortcut},children:e=>i(Lt,{get shortcut(){return e()},class:`text-[11px] font-sans text-[var(--rg-text-secondary)] ml-4`})}),null),g(n=>{var r=e.label.toLowerCase(),i=!e.enabled;return r!==n.e&&c(t,`data-react-grab-menu-item`,n.e=r),i!==n.t&&(t.disabled=n.t=i),n},{e:void 0,t:void 0}),t})()}),null),e}}),null),g(n=>{var r=`${C().top}px`,i=`${C().left}px`,a=X(`contain-layout flex flex-col justify-center items-start rounded-[10px] antialiased w-fit h-fit min-w-[100px] [font-synthesis:none] [corner-shape:superellipse(1.25)]`,`bg-[var(--rg-panel-bg)]`);return r!==n.e&&T(e,`top`,n.e=r),i!==n.t&&T(e,`left`,n.t=i),a!==n.a&&p(t,n.a=a),n},{e:void 0,t:void 0,a:void 0}),e}})};x([`pointerdown`,`mousedown`,`click`,`contextmenu`]);const Gt=(e,t,n,r)=>Math.max(r,Math.min(e,n-t-r)),Kt=({anchor:e,measuredWidth:t,measuredHeight:n,viewportWidth:r,viewportHeight:i,anchorGapPx:a,viewportPaddingPx:o,offscreenPosition:s})=>{if(!e||t===0||n===0)return s;let c,l;return e.edge===`left`||e.edge===`right`?(c=e.edge===`left`?e.x+a:e.x-t-a,l=e.y-n/2):(c=e.x-t/2,l=e.edge===`top`?e.y+a:e.y-n-a),{left:Gt(c,t,r,o),top:Gt(l,n,i,o)}},qt=(t,n)=>{let[r,i]=a(0),[o,s]=a(0),[c,l]=a(!1),[u,d]=a(!1),[f,p]=a(0),[m,h]=a(`bottom`),g,v,y=()=>{clearTimeout(g),v!==void 0&&(H(v),v=void 0)},b=()=>{let e=t();e&&(i(e.offsetWidth),s(e.offsetHeight))},x=()=>{p(e=>e+1),b()};return _(()=>{let e=n();e?(h(e.edge),clearTimeout(g),l(!0),v!==void 0&&H(v),v=j(()=>{b(),t()?.offsetHeight,d(!0)})):(v!==void 0&&H(v),d(!1),g=setTimeout(()=>{l(!1)},120)),k(y)}),_(()=>{n()&&(window.addEventListener(`resize`,x),window.visualViewport?.addEventListener(`resize`,x),window.visualViewport?.addEventListener(`scroll`,x),k(()=>{window.removeEventListener(`resize`,x),window.visualViewport?.removeEventListener(`resize`,x),window.visualViewport?.removeEventListener(`scroll`,x)}))}),{shouldMount:c,isAnimatedIn:u,lastAnchorEdge:m,displayPosition:e(e=>{f();let t=Kt({anchor:n(),measuredWidth:r(),measuredHeight:o(),viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,anchorGapPx:8,viewportPaddingPx:8,offscreenPosition:M});return t.left===M.left?e:t},M),measure:b,clearAnimationHandles:y}};var Jt=u(`<div data-react-grab-ignore-events data-react-grab-toolbar-menu><div><div class="relative flex flex-col py-1"><div class="pointer-events-none absolute opacity-0 transition-[top,left,width,height,opacity] duration-75 ease-out bg-[var(--rg-surface-hover)]">`),Yt=u(`<button data-react-grab-ignore-events class="relative z-1 contain-layout flex items-center justify-between w-full px-2 py-1 cursor-pointer text-left border-none bg-transparent"><span>`);const Xt=e=>{let r,{containerRef:a,highlightRef:o,updateHighlight:s,clearHighlight:l}=Ze(),u=qt(()=>r,()=>e.position),d=(t,n)=>{n.stopPropagation(),e.onSetDefaultAction(t.id),e.onDismiss()};return t(()=>{u.measure();let t=Bt({isOpen:()=>!!e.position,onDismiss:e.onDismiss});k(()=>{u.clearAnimationHandles(),t()})}),i(n,{get when(){return u.shouldMount()},get children(){var t=Jt(),f=t.firstChild,m=f.firstChild,h=m.firstChild;w(t,`contextmenu`,$,!0),w(t,`click`,$,!0),w(t,`mousedown`,$,!0),w(t,`pointerdown`,$,!0);var _=r;return typeof _==`function`?D(_,t):r=t,T(t,`z-index`,`${ee}`),T(f,`min-width`,`100px`),D(a,m),D(o,h),y(m,i(E,{get each(){return e.actions},children:t=>{let r=()=>t.id===e.defaultActionId;return(()=>{var e=Yt(),a=e.firstChild;return e.$$click=e=>d(t,e),w(e,`pointerleave`,l),e.addEventListener(`pointerenter`,e=>s(e.currentTarget)),e.$$pointerdown=e=>e.stopPropagation(),y(a,()=>t.label),y(e,i(n,{get when(){return t.shortcut},children:e=>i(Lt,{get shortcut(){return e()},class:`text-[11px] font-sans text-[var(--rg-text-secondary)] ml-4`})}),null),g(n=>{var i=t.id,o=X(`text-[13px] leading-4 font-sans font-medium`,r()?`text-[var(--rg-text-primary)]`:`text-[var(--rg-text-secondary)]`);return i!==n.e&&c(e,`data-react-grab-menu-item`,n.e=i),o!==n.t&&p(a,n.t=o),n},{e:void 0,t:void 0}),e})()}}),null),g(e=>{var n=X(`fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none will-change-[opacity,transform]`,u.isAnimatedIn()?`transition-[opacity,transform] duration-220 ease-spring`:`transition-[opacity,transform] duration-120 ease-drawer`),r=`${u.displayPosition().top}px`,i=`${u.displayPosition().left}px`,a=u.isAnimatedIn()?`auto`:`none`,o=L[u.lastAnchorEdge()],s=u.isAnimatedIn()?`1`:`0`,c=u.isAnimatedIn()?`scale(1)`:`scale(0.92)`,l=X(`contain-layout flex flex-col rounded-[10px] antialiased w-fit h-fit overflow-hidden [font-synthesis:none] [corner-shape:superellipse(1.25)]`,`bg-[var(--rg-panel-bg)]`);return n!==e.e&&p(t,e.e=n),r!==e.t&&T(t,`top`,e.t=r),i!==e.a&&T(t,`left`,e.a=i),a!==e.o&&T(t,`pointer-events`,e.o=a),o!==e.i&&T(t,`transform-origin`,e.i=o),s!==e.n&&T(t,`opacity`,e.n=s),c!==e.s&&T(t,`transform`,e.s=c),l!==e.h&&p(f,e.h=l),e},{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}})};x([`pointerdown`,`mousedown`,`click`,`contextmenu`]);var Zt=u(`<div style=position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;will-change:opacity;contain:strict;transform:translateZ(0)>`);const Qt=e=>[i(pe,{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}}),(()=>{var t=Zt();return T(t,`z-index`,V),T(t,`transition`,`opacity 150ms ease-out`),T(t,`box-shadow`,`inset 0 0 50px ${R}`),g(n=>T(t,`opacity`,+!!e.isFrozen)),t})(),i(n,{get when(){return m(()=>!!e.selectionLabelVisible)()&&(e.frozenLabelEntries?.length??0)>0},get children(){return i(s,{get each(){return e.frozenLabelEntries??[]},children:(t,n)=>i(lt,{get tagName(){return t().tagName},get componentName(){return t().componentName},get selectionBounds(){return t().bounds},get mouseX(){return t().mouseX},visible:!0,shouldToggleExpandOnClick:n===0,get onToggleExpand(){return n===0?e.onToggleExpand:void 0}})})}}),i(n,{get when(){return m(()=>!!e.selectionLabelVisible)()&&e.pendingShiftPreviewEntry},children:e=>i(lt,{get tagName(){return e().tagName},get componentName(){return e().componentName},get selectionBounds(){return e().bounds},get mouseX(){return e().mouseX},visible:!0})}),i(n,{get when(){return m(()=>!!(e.selectionLabelVisible&&e.selectionBounds))()&&(e.frozenLabelEntries?.length??0)===0},get children(){return i(lt,{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 arrowNavigationState(){return e.selectionArrowNavigationState},get onArrowNavigationSelect(){return e.onArrowNavigationSelect},get filePath(){return e.selectionFilePath},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onToggleExpand(){return e.onToggleExpand},get isPendingDismiss(){return e.isPendingDismiss},get selectionLabelShakeCount(){return e.selectionLabelShakeCount},get onConfirmDismiss(){return e.onConfirmDismiss},get onCancelDismiss(){return e.onCancelDismiss},onOpen:()=>{e.selectionFilePath&&U(e.selectionFilePath,e.selectionLineNumber)},get isContextMenuOpen(){return e.contextMenuPosition!==null}})}}),i(s,{get each(){return e.labelInstances??[]},children:t=>i(lt,{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`)||!v(n.element)))return()=>e.onShowContextMenuInstance?.(n.id)},onHoverChange:n=>e.onLabelInstanceHoverChange?.(t().id,n)})}),i(n,{get when(){return e.toolbarVisible!==!1},get children(){return i(jt,{get isActive(){return e.isActive},get isContextMenuOpen(){return e.contextMenuPosition!==null},get onToggle(){return e.onToggleActive},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}})}}),i(Wt,{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??(()=>{})}}),i(Xt,{get position(){return e.toolbarMenuPosition??null},get actions(){return e.toolbarMenuActions??[]},get defaultActionId(){return e.defaultActionId??`comment`},get onSetDefaultAction(){return e.onSetDefaultAction??(()=>{})},get onDismiss(){return e.onToolbarMenuDismiss??(()=>{})}})];export{Qt as ReactGrabRenderer};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import{P as e,R as t,ct as n}from"./freeze-updates-BMHg9jtm.js";const r={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return i(this.context.count)},getNextContextId(){return i(this.context.count++)}};function i(e){let t=String(e),n=t.length-1;return r.context.id+(n?String.fromCharCode(96+n):``)+t}function a(e){r.context=e}const o=(e,t)=>e===t,s=Symbol(`solid-proxy`),c=typeof Proxy==`function`,l=Symbol(`solid-track`),u={equals:o};let d=ce;const f={owned:null,cleanups:null,context:null,owner:null},p={};var m=null;let h=null,g=null,_=null,v=null,y=0;function b(e,t){let n=g,r=m,i=e.length===0,a=t===void 0?r:t,o=i?f:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>T(()=>B(o)));m=o,g=null;try{return R(s,!0)}finally{g=n,m=r}}function x(e,t){t=t?Object.assign({},u,t):u;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[P.bind(n),e=>(typeof e==`function`&&(e=h&&h.running&&h.sources.has(n)?e(n.tValue):e(n.value)),ae(n,e))]}function ee(e,t,n){F(I(e,t,!0,1))}function S(e,t,n){F(I(e,t,!1,1))}function C(e,t,n){d=le;let r=I(e,t,!1,1),i=N&&M(N);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),v?v.push(r):F(r)}function w(e,t,n){n=n?Object.assign({},u,n):u;let r=I(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,F(r),P.bind(r)}function te(e){return e&&typeof e==`object`&&`then`in e}function ne(e,t,n){let i,a,o;typeof t==`function`?(i=e,a=t,o=n||{}):(i=!0,a=e,o=t||{});let s=null,c=p,l=null,u=!1,d=!1,f=`initialValue`in o,_=typeof i==`function`&&w(i),v=new Set,[y,b]=(o.storage||x)(o.initialValue),[S,C]=x(void 0),[ne,re]=x(void 0,{equals:!1}),[E,D]=x(f?`ready`:`unresolved`);r.context&&(l=r.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:r.load&&r.has(l)&&(c=r.load(l)));function O(e,t,n,r){return s===e&&(s=null,r!==void 0&&(f=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=p,h&&e&&u?(h.promises.delete(e),u=!1,R(()=>{h.running=!0,k(t,n)},!1)):k(t,n)),t}function k(e,t){R(()=>{t===void 0&&b(()=>e),D(t===void 0?f?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function A(){let e=N&&M(N),t=y(),n=S();if(n!==void 0&&!s)throw n;return g&&!g.user&&e&&ee(()=>{ne(),s&&(e.resolved&&h&&u?h.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function j(e=!0){if(e!==!1&&d)return;d=!1;let t=_?_():i;if(u=h&&h.running,t==null||t===!1){O(s,T(y));return}h&&s&&h.promises.delete(s);let n,r=c===p?T(()=>{try{return a(t,{value:y(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){O(s,void 0,V(n),t);return}else if(!te(r))return O(s,r,void 0,t),r;return s=r,`v`in r?(r.s===1?O(s,r.v,void 0,t):O(s,void 0,V(r.v),t),r):(d=!0,queueMicrotask(()=>d=!1),R(()=>{D(f?`refreshing`:`pending`),re()},!1),r.then(e=>O(r,e,void 0,t),e=>O(r,void 0,V(e),t)))}Object.defineProperties(A,{state:{get:()=>E()},error:{get:()=>S()},loading:{get(){let e=E();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return A();let e=S();if(e&&!s)throw e;return y()}}});let P=m;return _?ee(()=>(P=m,j(!1))):j(!1),[A,{refetch:e=>ie(P,()=>j(e)),mutate:b}]}function re(e){return R(e,!1)}function T(e){if(g===null)return e();let t=g;g=null;try{return e()}finally{g=t}}function E(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=T(()=>t(o,i,n));return i=o,s}}function D(e){C(()=>T(e))}function O(e){return m===null||(m.cleanups===null?m.cleanups=[e]:m.cleanups.push(e)),e}function k(){return g}function ie(e,t){let n=m,r=g;m=e,g=null;try{return R(t,!0)}catch(e){H(e)}finally{m=n,g=r}}const[A,j]=x(!1);function M(e){let t;return m&&m.context&&(t=m.context[e.id])!==void 0?t:e.defaultValue}let N;function P(){let e=h&&h.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)F(this);else{let e=_;_=null,R(()=>z(this),!1),_=e}if(g){let e=this.observers?this.observers.length:0;g.sources?(g.sources.push(this),g.sourceSlots.push(e)):(g.sources=[this],g.sourceSlots=[e]),this.observers?(this.observers.push(g),this.observerSlots.push(g.sources.length-1)):(this.observers=[g],this.observerSlots=[g.sources.length-1])}return e&&h.sources.has(this)?this.tValue:this.value}function ae(e,t,n){let r=h&&h.running&&h.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(h){let r=h.running;(r||!n&&h.sources.has(e))&&(h.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&R(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=h&&h.running;r&&h.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?_.push(n):v.push(n),n.observers&&ue(n)),r?n.tState=1:n.state=1)}if(_.length>1e6)throw _=[],Error()},!1)}return t}function F(e){if(!e.fn)return;B(e);let t=y;oe(e,h&&h.running&&h.sources.has(e)?e.tValue:e.value,t),h&&!h.running&&h.sources.has(e)&&queueMicrotask(()=>{R(()=>{h&&(h.running=!0),g=m=e,oe(e,e.tValue,t),g=m=null},!1)})}function oe(e,t,n){let r,i=m,a=g;g=m=e;try{r=e.fn(t)}catch(t){return e.pure&&(h&&h.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(B),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(B),e.owned=null)),e.updatedAt=n+1,H(t)}finally{g=a,m=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ae(e,r,!0):h&&h.running&&e.pure?(h.sources.has(e)||(e.value=r),h.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function I(e,t,n,r=1,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:m,context:m?m.context:null,pure:n};return h&&h.running&&(a.state=0,a.tState=r),m===null||m!==f&&(h&&h.running&&m.pure?m.tOwned?m.tOwned.push(a):m.tOwned=[a]:m.owned?m.owned.push(a):m.owned=[a]),a}function L(e){let t=h&&h.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return z(e);if(e.suspense&&T(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<y);){if(t&&h.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(h.disposed.has(t))return}if((t?e.tState:e.state)===1)F(e);else if((t?e.tState:e.state)===2){let t=_;_=null,R(()=>z(e,n[0]),!1),_=t}}}function R(e,t){if(_)return e();let n=!1;t||(_=[]),v?n=!0:v=[],y++;try{let t=e();return se(n),t}catch(e){n||(v=null),_=null,H(e)}}function se(e){if(_&&=(ce(_),null),e)return;let t;if(h){if(!h.promises.size&&!h.queue.size){let e=h.sources,n=h.disposed;v.push.apply(v,h.effects),t=h.resolve;for(let e of v)`tState`in e&&(e.state=e.tState),delete e.tState;h=null,R(()=>{for(let e of n)B(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)B(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}j(!1)},!1)}else if(h.running){h.running=!1,h.effects.push.apply(h.effects,v),v=null,j(!0);return}}let n=v;v=null,n.length&&R(()=>d(n),!1),t&&t()}function ce(e){for(let t=0;t<e.length;t++)L(e[t])}function le(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:L(r)}if(r.context){if(r.count){r.effects||=[],r.effects.push(...e.slice(0,n));return}a()}for(r.effects&&(r.done||!r.count)&&(e=[...r.effects,...e],n+=r.effects.length,delete r.effects),t=0;t<n;t++)L(e[t])}function z(e,t){let n=h&&h.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===1?i!==t&&(!i.updatedAt||i.updatedAt<y)&&L(i):e===2&&z(i,t)}}}function ue(e){let t=h&&h.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=2:r.state=2,r.pure?_.push(r):v.push(r),r.observers&&ue(r))}}function B(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--)B(e.tOwned[t]);delete e.tOwned}if(h&&h.running&&e.pure)de(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)B(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}h&&h.running?e.tState=0:e.state=0}function de(e,t){if(t||(e.tState=0,h.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)de(e.owned[t])}function V(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function H(e,t=m){throw V(e)}const U=Symbol(`fallback`);function W(e){for(let t=0;t<e.length;t++)e[t]()}function fe(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return O(()=>W(a)),()=>{let c=e()||[],u=c.length,d,f;return c[l],T(()=>{let e,t,l,m,h,g,_,v,y;if(u===0)o!==0&&(W(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[U],i[0]=b(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(u),f=0;f<u;f++)r[f]=c[f],i[f]=b(p);o=u}else{for(l=Array(u),m=Array(u),s&&(h=Array(u)),g=0,_=Math.min(o,u);g<_&&r[g]===c[g];g++);for(_=o-1,v=u-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)l[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=c[f],d=e.get(y),t[f]=d===void 0?-1:d,e.set(y,f);for(d=g;d<=_;d++)y=r[d],f=e.get(y),f!==void 0&&f!==-1?(l[f]=i[d],m[f]=a[d],s&&(h[f]=s[d]),f=t[f],e.set(y,f)):a[d]();for(f=g;f<u;f++)f in l?(i[f]=l[f],a[f]=m[f],s&&(s[f]=h[f],s[f](f))):i[f]=b(p);i=i.slice(0,o=u),r=c.slice(0)}return i});function p(e){if(a[f]=e,s){let[e,n]=x(f);return s[f]=n,t(c[f],e)}return t(c[f])}}}function pe(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return O(()=>W(a)),()=>{let u=e()||[],d=u.length;return u[l],T(()=>{if(d===0)return s!==0&&(W(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[U],i[0]=b(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===U&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<d;c++)c<r.length&&r[c]!==u[c]?o[c](()=>u[c]):c>=r.length&&(i[c]=b(f));for(;c<r.length;c++)a[c]();return s=o.length=a.length=d,r=u.slice(0),i=i.slice(0,s)});function f(e){a[c]=e;let[n,r]=x(u[c]);return o[c]=r,t(n,c)}}}function me(e,t){return T(()=>e(t||{}))}function G(){return!0}const he={get(e,t,n){return t===s?n:e.get(t)},has(e,t){return t===s?!0:e.has(t)},set:G,deleteProperty:G,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:G,deleteProperty:G}},ownKeys(e){return e.keys()}};function K(e){return(e=typeof e==`function`?e():e)?e:{}}function ge(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function _e(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&s in r,e[n]=typeof r==`function`?(t=!0,w(r)):r}if(c&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=K(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in K(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(K(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:ge.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}const ve=e=>`Stale read from <${e}>.`;function ye(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(fe(()=>e.each,e.children,t||void 0))}function be(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(pe(()=>e.each,e.children,t||void 0))}function xe(e){let t=e.keyed,n=w(()=>e.when,void 0,void 0),r=t?n:w(n,void 0,{equals:(e,t)=>!e==!t});return w(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?T(()=>a(t?i:()=>{if(!T(r))throw ve(`Show`);return n()})):a}return e.fallback},void 0,void 0)}const Se=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(`.`)]),Ce=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),we=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),Te=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 Ee(e,t){let n=Te[e];return typeof n==`object`?n[t]?n.$:void 0:n}const De=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Oe={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},ke=e=>w(()=>e());function Ae(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()}}}const je=`_$DX_DELEGATE`;function Me(e,t,n,r={}){let i;return b(r=>{i=r,t===document?e():Ue(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function Ne(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?()=>T(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Pe(e,t=window.document){let n=t[je]||(t[je]=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,Je))}}function q(e,t,n){Y(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Fe(e,t,n,r){Y(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Ie(e,t,n){Y(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Le(e,t){Y(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function Re(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]||(Ke(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||(Ke(e,i,!0),n[i]=o)}return n}function Be(e,t,n){if(!t)return n?q(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 Ve(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function He(e,t={},n,r){let i={};return r||S(()=>i.children=X(e,t.children,i.children)),S(()=>typeof t.ref==`function`&&J(t.ref,e)),S(()=>We(e,t,n,!0,i,!0)),i}function J(e,t,n){return T(()=>e(t,n))}function Ue(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return X(e,t,r,n);S(r=>X(e,t(),r,n),r)}function We(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=qe(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||X(e,t.children);continue}let s=t[o];i[o]=qe(e,o,s,i[o],n,a,t)}}function Y(e){return!!r.context&&!r.done&&(!e||e.isConnected)}function Ge(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Ke(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 qe(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Be(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=De.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(Re(e,i,n,a),a&&Pe([i]))}else if(t.slice(0,5)===`attr:`)q(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Ie(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Ce.has(t))||!i&&((u=Ee(t,e.tagName))||(c=Se.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(Y(e))return n;t===`class`||t===`className`?Le(e,n):s&&!c&&!l?e[Ge(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Oe[t.split(`:`)[0]];r?Fe(e,r,t,n):q(e,we[t]||t,n)}return n}function Je(e){if(r.registry&&r.events&&r.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,i=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{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)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),r.registry&&!r.done&&(r.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===a)break}}else c();o(i)}function X(e,t,n,r,i){let a=Y(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=Q(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=Q(e,n,r)}else if(o===`function`)return S(()=>{let i=t();for(;typeof i==`function`;)i=i();n=X(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Z(o,t,n,i))return S(()=>n=X(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=Q(e,n,r),s)return n}else c?n.length===0?Ye(e,o,r):Ae(e,n,o):(n&&Q(e),Ye(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=Q(e,n,r,t);Q(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Z(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=Z(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Z(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 Ye(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Q(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]}const Xe=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),Ze=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],Qe=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},$e=t=>{if(document.designMode===`on`)return!0;let n=Qe(t);if(!n)return!1;if(n.isContentEditable)return!0;let r=e(n);return Ze.some(e=>e===r||e===n.role)},et=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},tt=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},nt=(e,t,n)=>Math.max(t,Math.min(e,n));let $=null;const rt=()=>{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},it=()=>{if($===null){if(typeof navigator>`u`)return $=!1,$;let e=navigator.platform??rt()??navigator.userAgent;$=/Mac|iPhone|iPad|iPod/i.test(e)}return $},at=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},ot=`react-grab-toolbar-state`,st=()=>{try{let e=localStorage.getItem(ot);if(!e)return null;let r=JSON.parse(e);if(typeof r!=`object`||!r)return null;let i=r,a=typeof i.collapsed==`boolean`?i.collapsed:!1;return{edge:i.edge===`top`||i.edge===`bottom`||i.edge===`left`||i.edge===`right`?i.edge:`bottom`,ratio:typeof i.ratio==`number`?i.ratio:n,collapsed:a,enabled:!a,defaultAction:typeof i.defaultAction==`string`?i.defaultAction:t}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},ct=e=>{try{localStorage.setItem(ot,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}};export{w as A,D as B,l as C,re as D,xe as E,k as F,fe as I,_e as L,ne as M,b as N,me as O,x as P,E as R,s as S,be as T,q as _,nt as a,Ne as b,$e as c,ze as d,Le as f,Me as g,ke as h,it as i,S as j,C as k,Xe as l,Ue as m,ct as n,et as o,Pe as p,at as r,tt as s,st as t,Re as u,Ve as v,ye as w,J as x,He as y,O as z};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
const e=require(`./freeze-updates-CyZYvC-n.cjs`),t=Symbol(`error`);function n(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function r(e,i=a){let o=i&&i.context&&i.context[t],s=n(e);if(!o)throw s;try{for(let e of o)e(s)}catch(e){r(e,i&&i.owner||null)}}const i={context:null,owner:null,owned:null,cleanups:null};let a=null;function o(){let e={owner:a,context:a?a.context:null,owned:null,cleanups:null};return a&&(a.owned?a.owned.push(e):a.owned=[e]),e}function s(e,t){let n=a,o=t===void 0?n:t,s=e.length===0?i:{context:o?o.context:null,owner:o,owned:null,cleanups:null};a=s;let c;try{c=e(e.length===0?()=>{}:()=>g(s))}catch(e){r(e)}finally{a=n}return c}function c(e,t){return[()=>e,t=>e=typeof t==`function`?t(e):t]}function l(e,t){a=o();try{e(t)}catch(e){r(e)}finally{a=a.owner}}const u=l;function d(e,t){}function f(e,t){a=o();let n;try{n=e(t)}catch(e){r(e)}finally{a=a.owner}return()=>n}function p(e){return e()}const m=p;function ee(e,t,n={}){let r=Array.isArray(e),i=n.defer;return()=>{if(i)return;let n;if(r){n=[];for(let t=0;t<e.length;t++)n.push(e[t]())}else n=e();return t(n)}}function te(e){}function h(e){return a&&(a.cleanups?a.cleanups.push(e):a.cleanups=[e]),e}function g(e){if(e.owned){for(let t=0;t<e.owned.length;t++)g(e.owned[t]);e.owned=null}if(e.cleanups){for(let t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}}function ne(e){let t=Symbol(`context`);return{id:t,Provider:v(t),defaultValue:e}}function re(e){return a&&a.context&&a.context[e.id]!==void 0?a.context[e.id]:e.defaultValue}function ie(e){let t=f(()=>_(e()));return t.toArray=()=>{let e=t();return Array.isArray(e)?e:e==null?[]:[e]},t}function _(e){if(typeof e==`function`&&!e.length)return _(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=_(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function v(e){return function(t){return f(()=>(a.context={...a.context,[e]:t.value},ie(()=>t.children)))}}function y(e,t,n={}){let r=e(),i=[];if(r&&r.length)for(let e=0,n=r.length;e<n;e++)i.push(t(r[e],()=>e));else n.fallback&&(i=[n.fallback()]);return()=>i}const b={context:void 0,getContextId(){if(!this.context)throw Error(`getContextId cannot be used under non-hydrating context`);return x(this.context.count)},getNextContextId(){if(!this.context)throw Error(`getNextContextId cannot be used under non-hydrating context`);return x(this.context.count++)}};function x(e){let t=String(e),n=t.length-1;return b.context.id+(n?String.fromCharCode(96+n):``)+t}function S(e){b.context=e}function ae(){return b.context?{...b.context,id:b.getNextContextId(),count:0}:void 0}function oe(e,t){if(b.context&&!b.context.noHydrate){let n=b.context;S(ae());let r=e(t||{});return S(n),r}return e(t||{})}function se(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`function`&&(r=r()),r){let n=Object.getOwnPropertyDescriptors(r);for(let r in n)r in t||Object.defineProperty(t,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){let n,i=e[t];if(typeof i==`function`&&(i=i()),n=(i||{})[r],n!==void 0)return n}}})}}return t}function C(e,t){let n=e.each||[],r=n.length,i=e.children;if(r){let e=Array(r);for(let a=0;a<r;a++)e[a]=t(i,n[a],a);return e}return e.fallback}function ce(e){return C(e,(e,t,n)=>e(t,()=>n))}function le(e){return C(e,(e,t,n)=>e(()=>t,n))}function ue(e){let t;return e.when?typeof(t=e.children)==`function`?t(e.keyed?e.when:()=>e.when):t:e.fallback||``}const de=ne();let w=null;function fe(e,t,r={}){typeof t!=`function`&&(r=t||{},t=e,e=!0);let i=new Set,a=b.getNextContextId(),o={},s=r.storage?r.storage(r.initialValue)[0]():r.initialValue,c,l;if(b.context.async&&r.ssrLoadFrom!==`initial`&&(o=b.context.resources[a]||(b.context.resources[a]={}),o.ref))return!o.data&&!o.ref[0]._loading&&!o.ref[0].error&&o.ref[1].refetch(),o.ref;let u=()=>{if(l)throw l;let e=r.ssrLoadFrom!==`initial`&&b.context.async&&`data`in b.context.resources[a];if(!e&&w&&w.push(a),!e&&d._loading){let e=re(de);e&&(e.resources.set(a,d),i.add(e))}return e},d=()=>u()?b.context.resources[a].data:s,f=()=>(u(),d._loading);d._loading=!1,d.error=void 0,d.state=`initialValue`in r?`ready`:`unresolved`,Object.defineProperties(d,{latest:{get(){return d()}},loading:{get(){return f()}}});function p(){let o=b.context;if(!o.async)return d._loading=!!(typeof e==`function`?e():e);if(o.resources&&a in o.resources&&`data`in o.resources[a]){s=o.resources[a].data;return}let u;try{if(w=[],u=typeof e==`function`?e():e,w.length)return}finally{w=null}if(!c){if(u==null||u===!1)return;c=t(u,{value:s})}return typeof c==`object`&&c&&`then`in c?(d._loading=!0,d.state=`pending`,c=c.then(e=>(d._loading=!1,d.state=`ready`,o.resources[a].data=e,c=null,T(i),e)).catch(e=>{throw d._loading=!1,d.state=`errored`,d.error=l=n(e),c=null,T(i),l}),o.serialize&&o.serialize(a,c,r.deferStream),c):(o.resources[a].data=c,o.serialize&&o.serialize(a,c),c=null,o.resources[a].data)}r.ssrLoadFrom!==`initial`&&p();let m=[d,{refetch:p,mutate:e=>s=e}];return c&&(o.ref=m),m}function pe(e){for(let t of e.resources.values())if(t._loading)return!1;return!0}function T(e){for(let t of e)pe(t)&&(t.completed(),e.delete(t))}const me=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(`.`)]),he=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),E=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),D=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 O(e,t){let n=D[e];return typeof n==`object`?n[t]?n.$:void 0:n}const k=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),A={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},j=e=>f(()=>e());function M(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()}}}const N=`_$DX_DELEGATE`;function P(e,t,n,r={}){let i;return s(r=>{i=r,t===document?e():U(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function F(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?()=>m(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function I(e,t=window.document){let n=t[N]||(t[N]=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,Se))}}function L(e,t,n){W(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function R(e,t,n,r){W(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ge(e,t,n){W(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function z(e,t){W(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function B(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 V(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]||(G(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||(G(e,i,!0),n[i]=o)}return n}function _e(e,t,n){if(!t)return n?L(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 ve(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function ye(e,t={},n,r){let i={};return r||u(()=>i.children=q(e,t.children,i.children)),u(()=>typeof t.ref==`function`&&H(t.ref,e)),u(()=>be(e,t,n,!0,i,!0)),i}function H(e,t,n){return m(()=>e(t,n))}function U(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return q(e,t,r,n);u(r=>q(e,t(),r,n),r)}function be(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=K(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||q(e,t.children);continue}let s=t[o];i[o]=K(e,o,s,i[o],n,a,t)}}function W(e){return!!b.context&&!b.done&&(!e||e.isConnected)}function xe(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function G(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 K(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 V(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=k.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(B(e,i,n,a),a&&I([i]))}else if(t.slice(0,5)===`attr:`)L(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)ge(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=he.has(t))||!i&&((u=O(t,e.tagName))||(c=me.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(W(e))return n;t===`class`||t===`className`?z(e,n):s&&!c&&!l?e[xe(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&A[t.split(`:`)[0]];r?R(e,r,t,n):L(e,E[t]||t,n)}return n}function Se(e){if(b.registry&&b.events&&b.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}}),b.registry&&!b.done&&(b.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 q(e,t,n,r,i){let a=W(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=X(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=X(e,n,r)}else if(o===`function`)return u(()=>{let i=t();for(;typeof i==`function`;)i=i();n=q(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(J(o,t,n,i))return u(()=>n=q(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=X(e,n,r),s)return n}else c?n.length===0?Y(e,o,r):M(e,n,o):(n&&X(e),Y(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=X(e,n,r,t);X(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function J(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=J(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=J(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 Y(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function X(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]}const Ce=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),we=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],Te=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},Ee=t=>{if(document.designMode===`on`)return!0;let n=Te(t);if(!n)return!1;if(n.isContentEditable)return!0;let r=e.P(n);return we.some(e=>e===r||e===n.role)},De=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},Oe=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},ke=(e,t,n)=>Math.max(t,Math.min(e,n));let Z=null;const Ae=()=>{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},je=()=>{if(Z===null){if(typeof navigator>`u`)return Z=!1,Z;let e=navigator.platform??Ae()??navigator.userAgent;Z=/Mac|iPhone|iPad|iPod/i.test(e)}return Z},Q=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},$=`react-grab-toolbar-state`,Me=()=>{try{let t=localStorage.getItem($);if(!t)return null;let n=JSON.parse(t);if(typeof n!=`object`||!n)return null;let r=n,i=typeof r.collapsed==`boolean`?r.collapsed:!1;return{edge:r.edge===`top`||r.edge===`bottom`||r.edge===`left`||r.edge===`right`?r.edge:`bottom`,ratio:typeof r.ratio==`number`?r.ratio:e.ct,collapsed:i,enabled:!i,defaultAction:typeof r.defaultAction==`string`?r.defaultAction:e.R}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},Ne=e=>{try{localStorage.setItem($,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return ye}});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
const e=require(`./freeze-updates-W92Tv24a.cjs`),t=Symbol(`error`);function n(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function r(e,i=a){let o=i&&i.context&&i.context[t],s=n(e);if(!o)throw s;try{for(let e of o)e(s)}catch(e){r(e,i&&i.owner||null)}}const i={context:null,owner:null,owned:null,cleanups:null};let a=null;function o(){let e={owner:a,context:a?a.context:null,owned:null,cleanups:null};return a&&(a.owned?a.owned.push(e):a.owned=[e]),e}function s(e,t){let n=a,o=t===void 0?n:t,s=e.length===0?i:{context:o?o.context:null,owner:o,owned:null,cleanups:null};a=s;let c;try{c=e(e.length===0?()=>{}:()=>g(s))}catch(e){r(e)}finally{a=n}return c}function c(e,t){return[()=>e,t=>e=typeof t==`function`?t(e):t]}function l(e,t){a=o();try{e(t)}catch(e){r(e)}finally{a=a.owner}}const u=l;function d(e,t){}function f(e,t){a=o();let n;try{n=e(t)}catch(e){r(e)}finally{a=a.owner}return()=>n}function p(e){return e()}const m=p;function ee(e,t,n={}){let r=Array.isArray(e),i=n.defer;return()=>{if(i)return;let n;if(r){n=[];for(let t=0;t<e.length;t++)n.push(e[t]())}else n=e();return t(n)}}function te(e){}function h(e){return a&&(a.cleanups?a.cleanups.push(e):a.cleanups=[e]),e}function g(e){if(e.owned){for(let t=0;t<e.owned.length;t++)g(e.owned[t]);e.owned=null}if(e.cleanups){for(let t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}}function ne(e){let t=Symbol(`context`);return{id:t,Provider:v(t),defaultValue:e}}function re(e){return a&&a.context&&a.context[e.id]!==void 0?a.context[e.id]:e.defaultValue}function ie(e){let t=f(()=>_(e()));return t.toArray=()=>{let e=t();return Array.isArray(e)?e:e==null?[]:[e]},t}function _(e){if(typeof e==`function`&&!e.length)return _(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=_(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function v(e){return function(t){return f(()=>(a.context={...a.context,[e]:t.value},ie(()=>t.children)))}}function y(e,t,n={}){let r=e(),i=[];if(r&&r.length)for(let e=0,n=r.length;e<n;e++)i.push(t(r[e],()=>e));else n.fallback&&(i=[n.fallback()]);return()=>i}const b={context:void 0,getContextId(){if(!this.context)throw Error(`getContextId cannot be used under non-hydrating context`);return x(this.context.count)},getNextContextId(){if(!this.context)throw Error(`getNextContextId cannot be used under non-hydrating context`);return x(this.context.count++)}};function x(e){let t=String(e),n=t.length-1;return b.context.id+(n?String.fromCharCode(96+n):``)+t}function S(e){b.context=e}function ae(){return b.context?{...b.context,id:b.getNextContextId(),count:0}:void 0}function oe(e,t){if(b.context&&!b.context.noHydrate){let n=b.context;S(ae());let r=e(t||{});return S(n),r}return e(t||{})}function se(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`function`&&(r=r()),r){let n=Object.getOwnPropertyDescriptors(r);for(let r in n)r in t||Object.defineProperty(t,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){let n,i=e[t];if(typeof i==`function`&&(i=i()),n=(i||{})[r],n!==void 0)return n}}})}}return t}function C(e,t){let n=e.each||[],r=n.length,i=e.children;if(r){let e=Array(r);for(let a=0;a<r;a++)e[a]=t(i,n[a],a);return e}return e.fallback}function ce(e){return C(e,(e,t,n)=>e(t,()=>n))}function le(e){return C(e,(e,t,n)=>e(()=>t,n))}function ue(e){let t;return e.when?typeof(t=e.children)==`function`?t(e.keyed?e.when:()=>e.when):t:e.fallback||``}const de=ne();let w=null;function fe(e,t,r={}){typeof t!=`function`&&(r=t||{},t=e,e=!0);let i=new Set,a=b.getNextContextId(),o={},s=r.storage?r.storage(r.initialValue)[0]():r.initialValue,c,l;if(b.context.async&&r.ssrLoadFrom!==`initial`&&(o=b.context.resources[a]||(b.context.resources[a]={}),o.ref))return!o.data&&!o.ref[0]._loading&&!o.ref[0].error&&o.ref[1].refetch(),o.ref;let u=()=>{if(l)throw l;let e=r.ssrLoadFrom!==`initial`&&b.context.async&&`data`in b.context.resources[a];if(!e&&w&&w.push(a),!e&&d._loading){let e=re(de);e&&(e.resources.set(a,d),i.add(e))}return e},d=()=>u()?b.context.resources[a].data:s,f=()=>(u(),d._loading);d._loading=!1,d.error=void 0,d.state=`initialValue`in r?`ready`:`unresolved`,Object.defineProperties(d,{latest:{get(){return d()}},loading:{get(){return f()}}});function p(){let o=b.context;if(!o.async)return d._loading=!!(typeof e==`function`?e():e);if(o.resources&&a in o.resources&&`data`in o.resources[a]){s=o.resources[a].data;return}let u;try{if(w=[],u=typeof e==`function`?e():e,w.length)return}finally{w=null}if(!c){if(u==null||u===!1)return;c=t(u,{value:s})}return typeof c==`object`&&c&&`then`in c?(d._loading=!0,d.state=`pending`,c=c.then(e=>(d._loading=!1,d.state=`ready`,o.resources[a].data=e,c=null,T(i),e)).catch(e=>{throw d._loading=!1,d.state=`errored`,d.error=l=n(e),c=null,T(i),l}),o.serialize&&o.serialize(a,c,r.deferStream),c):(o.resources[a].data=c,o.serialize&&o.serialize(a,c),c=null,o.resources[a].data)}r.ssrLoadFrom!==`initial`&&p();let m=[d,{refetch:p,mutate:e=>s=e}];return c&&(o.ref=m),m}function pe(e){for(let t of e.resources.values())if(t._loading)return!1;return!0}function T(e){for(let t of e)pe(t)&&(t.completed(),e.delete(t))}const me=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(`.`)]),he=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),E=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),D=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 O(e,t){let n=D[e];return typeof n==`object`?n[t]?n.$:void 0:n}const k=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),A={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},j=e=>f(()=>e());function M(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()}}}const N=`_$DX_DELEGATE`;function P(e,t,n,r={}){let i;return s(r=>{i=r,t===document?e():U(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function F(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?()=>m(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function I(e,t=window.document){let n=t[N]||(t[N]=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,Se))}}function L(e,t,n){W(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function R(e,t,n,r){W(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ge(e,t,n){W(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function z(e,t){W(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function B(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 V(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]||(G(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||(G(e,i,!0),n[i]=o)}return n}function _e(e,t,n){if(!t)return n?L(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 ve(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function ye(e,t={},n,r){let i={};return r||u(()=>i.children=q(e,t.children,i.children)),u(()=>typeof t.ref==`function`&&H(t.ref,e)),u(()=>be(e,t,n,!0,i,!0)),i}function H(e,t,n){return m(()=>e(t,n))}function U(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return q(e,t,r,n);u(r=>q(e,t(),r,n),r)}function be(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=K(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||q(e,t.children);continue}let s=t[o];i[o]=K(e,o,s,i[o],n,a,t)}}function W(e){return!!b.context&&!b.done&&(!e||e.isConnected)}function xe(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function G(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 K(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 V(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=k.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(B(e,i,n,a),a&&I([i]))}else if(t.slice(0,5)===`attr:`)L(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)ge(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=he.has(t))||!i&&((u=O(t,e.tagName))||(c=me.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(W(e))return n;t===`class`||t===`className`?z(e,n):s&&!c&&!l?e[xe(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&A[t.split(`:`)[0]];r?R(e,r,t,n):L(e,E[t]||t,n)}return n}function Se(e){if(b.registry&&b.events&&b.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}}),b.registry&&!b.done&&(b.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 q(e,t,n,r,i){let a=W(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=X(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=X(e,n,r)}else if(o===`function`)return u(()=>{let i=t();for(;typeof i==`function`;)i=i();n=q(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(J(o,t,n,i))return u(()=>n=q(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=X(e,n,r),s)return n}else c?n.length===0?Y(e,o,r):M(e,n,o):(n&&X(e),Y(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=X(e,n,r,t);X(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function J(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=J(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=J(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 Y(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function X(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]}const Ce=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),we=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],Te=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},Ee=t=>{if(document.designMode===`on`)return!0;let n=Te(t);if(!n)return!1;if(n.isContentEditable)return!0;let r=e.P(n);return we.some(e=>e===r||e===n.role)},De=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},Oe=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},ke=(e,t,n)=>Math.max(t,Math.min(e,n));let Z=null;const Ae=()=>{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},je=()=>{if(Z===null){if(typeof navigator>`u`)return Z=!1,Z;let e=navigator.platform??Ae()??navigator.userAgent;Z=/Mac|iPhone|iPad|iPod/i.test(e)}return Z},Q=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},$=`react-grab-toolbar-state`,Me=()=>{try{let t=localStorage.getItem($);if(!t)return null;let n=JSON.parse(t);if(typeof n!=`object`||!n)return null;let r=n,i=typeof r.collapsed==`boolean`?r.collapsed:!1;return{edge:r.edge===`top`||r.edge===`bottom`||r.edge===`left`||r.edge===`right`?r.edge:`bottom`,ratio:typeof r.ratio==`number`?r.ratio:e.ct,collapsed:i,enabled:!i,defaultAction:typeof r.defaultAction==`string`?r.defaultAction:e.R}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},Ne=e=>{try{localStorage.setItem($,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return ye}});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import{P as e,R as t,ct as n}from"./freeze-updates-pl4bncJb.js";const r={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return i(this.context.count)},getNextContextId(){return i(this.context.count++)}};function i(e){let t=String(e),n=t.length-1;return r.context.id+(n?String.fromCharCode(96+n):``)+t}function a(e){r.context=e}const o=(e,t)=>e===t,s=Symbol(`solid-proxy`),c=typeof Proxy==`function`,l=Symbol(`solid-track`),u={equals:o};let d=ce;const f={owned:null,cleanups:null,context:null,owner:null},p={};var m=null;let h=null,g=null,_=null,v=null,y=0;function b(e,t){let n=g,r=m,i=e.length===0,a=t===void 0?r:t,o=i?f:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>T(()=>B(o)));m=o,g=null;try{return R(s,!0)}finally{g=n,m=r}}function x(e,t){t=t?Object.assign({},u,t):u;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[P.bind(n),e=>(typeof e==`function`&&(e=h&&h.running&&h.sources.has(n)?e(n.tValue):e(n.value)),ae(n,e))]}function ee(e,t,n){F(I(e,t,!0,1))}function S(e,t,n){F(I(e,t,!1,1))}function C(e,t,n){d=le;let r=I(e,t,!1,1),i=N&&M(N);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),v?v.push(r):F(r)}function w(e,t,n){n=n?Object.assign({},u,n):u;let r=I(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,F(r),P.bind(r)}function te(e){return e&&typeof e==`object`&&`then`in e}function ne(e,t,n){let i,a,o;typeof t==`function`?(i=e,a=t,o=n||{}):(i=!0,a=e,o=t||{});let s=null,c=p,l=null,u=!1,d=!1,f=`initialValue`in o,_=typeof i==`function`&&w(i),v=new Set,[y,b]=(o.storage||x)(o.initialValue),[S,C]=x(void 0),[ne,re]=x(void 0,{equals:!1}),[E,D]=x(f?`ready`:`unresolved`);r.context&&(l=r.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:r.load&&r.has(l)&&(c=r.load(l)));function O(e,t,n,r){return s===e&&(s=null,r!==void 0&&(f=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=p,h&&e&&u?(h.promises.delete(e),u=!1,R(()=>{h.running=!0,k(t,n)},!1)):k(t,n)),t}function k(e,t){R(()=>{t===void 0&&b(()=>e),D(t===void 0?f?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function A(){let e=N&&M(N),t=y(),n=S();if(n!==void 0&&!s)throw n;return g&&!g.user&&e&&ee(()=>{ne(),s&&(e.resolved&&h&&u?h.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function j(e=!0){if(e!==!1&&d)return;d=!1;let t=_?_():i;if(u=h&&h.running,t==null||t===!1){O(s,T(y));return}h&&s&&h.promises.delete(s);let n,r=c===p?T(()=>{try{return a(t,{value:y(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){O(s,void 0,V(n),t);return}else if(!te(r))return O(s,r,void 0,t),r;return s=r,`v`in r?(r.s===1?O(s,r.v,void 0,t):O(s,void 0,V(r.v),t),r):(d=!0,queueMicrotask(()=>d=!1),R(()=>{D(f?`refreshing`:`pending`),re()},!1),r.then(e=>O(r,e,void 0,t),e=>O(r,void 0,V(e),t)))}Object.defineProperties(A,{state:{get:()=>E()},error:{get:()=>S()},loading:{get(){let e=E();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return A();let e=S();if(e&&!s)throw e;return y()}}});let P=m;return _?ee(()=>(P=m,j(!1))):j(!1),[A,{refetch:e=>ie(P,()=>j(e)),mutate:b}]}function re(e){return R(e,!1)}function T(e){if(g===null)return e();let t=g;g=null;try{return e()}finally{g=t}}function E(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=T(()=>t(o,i,n));return i=o,s}}function D(e){C(()=>T(e))}function O(e){return m===null||(m.cleanups===null?m.cleanups=[e]:m.cleanups.push(e)),e}function k(){return g}function ie(e,t){let n=m,r=g;m=e,g=null;try{return R(t,!0)}catch(e){H(e)}finally{m=n,g=r}}const[A,j]=x(!1);function M(e){let t;return m&&m.context&&(t=m.context[e.id])!==void 0?t:e.defaultValue}let N;function P(){let e=h&&h.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)F(this);else{let e=_;_=null,R(()=>z(this),!1),_=e}if(g){let e=this.observers?this.observers.length:0;g.sources?(g.sources.push(this),g.sourceSlots.push(e)):(g.sources=[this],g.sourceSlots=[e]),this.observers?(this.observers.push(g),this.observerSlots.push(g.sources.length-1)):(this.observers=[g],this.observerSlots=[g.sources.length-1])}return e&&h.sources.has(this)?this.tValue:this.value}function ae(e,t,n){let r=h&&h.running&&h.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(h){let r=h.running;(r||!n&&h.sources.has(e))&&(h.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&R(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=h&&h.running;r&&h.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?_.push(n):v.push(n),n.observers&&ue(n)),r?n.tState=1:n.state=1)}if(_.length>1e6)throw _=[],Error()},!1)}return t}function F(e){if(!e.fn)return;B(e);let t=y;oe(e,h&&h.running&&h.sources.has(e)?e.tValue:e.value,t),h&&!h.running&&h.sources.has(e)&&queueMicrotask(()=>{R(()=>{h&&(h.running=!0),g=m=e,oe(e,e.tValue,t),g=m=null},!1)})}function oe(e,t,n){let r,i=m,a=g;g=m=e;try{r=e.fn(t)}catch(t){return e.pure&&(h&&h.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(B),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(B),e.owned=null)),e.updatedAt=n+1,H(t)}finally{g=a,m=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ae(e,r,!0):h&&h.running&&e.pure?(h.sources.has(e)||(e.value=r),h.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function I(e,t,n,r=1,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:m,context:m?m.context:null,pure:n};return h&&h.running&&(a.state=0,a.tState=r),m===null||m!==f&&(h&&h.running&&m.pure?m.tOwned?m.tOwned.push(a):m.tOwned=[a]:m.owned?m.owned.push(a):m.owned=[a]),a}function L(e){let t=h&&h.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return z(e);if(e.suspense&&T(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<y);){if(t&&h.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(h.disposed.has(t))return}if((t?e.tState:e.state)===1)F(e);else if((t?e.tState:e.state)===2){let t=_;_=null,R(()=>z(e,n[0]),!1),_=t}}}function R(e,t){if(_)return e();let n=!1;t||(_=[]),v?n=!0:v=[],y++;try{let t=e();return se(n),t}catch(e){n||(v=null),_=null,H(e)}}function se(e){if(_&&=(ce(_),null),e)return;let t;if(h){if(!h.promises.size&&!h.queue.size){let e=h.sources,n=h.disposed;v.push.apply(v,h.effects),t=h.resolve;for(let e of v)`tState`in e&&(e.state=e.tState),delete e.tState;h=null,R(()=>{for(let e of n)B(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)B(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}j(!1)},!1)}else if(h.running){h.running=!1,h.effects.push.apply(h.effects,v),v=null,j(!0);return}}let n=v;v=null,n.length&&R(()=>d(n),!1),t&&t()}function ce(e){for(let t=0;t<e.length;t++)L(e[t])}function le(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:L(r)}if(r.context){if(r.count){r.effects||=[],r.effects.push(...e.slice(0,n));return}a()}for(r.effects&&(r.done||!r.count)&&(e=[...r.effects,...e],n+=r.effects.length,delete r.effects),t=0;t<n;t++)L(e[t])}function z(e,t){let n=h&&h.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===1?i!==t&&(!i.updatedAt||i.updatedAt<y)&&L(i):e===2&&z(i,t)}}}function ue(e){let t=h&&h.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=2:r.state=2,r.pure?_.push(r):v.push(r),r.observers&&ue(r))}}function B(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--)B(e.tOwned[t]);delete e.tOwned}if(h&&h.running&&e.pure)de(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)B(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}h&&h.running?e.tState=0:e.state=0}function de(e,t){if(t||(e.tState=0,h.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)de(e.owned[t])}function V(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function H(e,t=m){throw V(e)}const U=Symbol(`fallback`);function W(e){for(let t=0;t<e.length;t++)e[t]()}function fe(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return O(()=>W(a)),()=>{let c=e()||[],u=c.length,d,f;return c[l],T(()=>{let e,t,l,m,h,g,_,v,y;if(u===0)o!==0&&(W(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[U],i[0]=b(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(u),f=0;f<u;f++)r[f]=c[f],i[f]=b(p);o=u}else{for(l=Array(u),m=Array(u),s&&(h=Array(u)),g=0,_=Math.min(o,u);g<_&&r[g]===c[g];g++);for(_=o-1,v=u-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)l[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=c[f],d=e.get(y),t[f]=d===void 0?-1:d,e.set(y,f);for(d=g;d<=_;d++)y=r[d],f=e.get(y),f!==void 0&&f!==-1?(l[f]=i[d],m[f]=a[d],s&&(h[f]=s[d]),f=t[f],e.set(y,f)):a[d]();for(f=g;f<u;f++)f in l?(i[f]=l[f],a[f]=m[f],s&&(s[f]=h[f],s[f](f))):i[f]=b(p);i=i.slice(0,o=u),r=c.slice(0)}return i});function p(e){if(a[f]=e,s){let[e,n]=x(f);return s[f]=n,t(c[f],e)}return t(c[f])}}}function pe(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return O(()=>W(a)),()=>{let u=e()||[],d=u.length;return u[l],T(()=>{if(d===0)return s!==0&&(W(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[U],i[0]=b(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===U&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<d;c++)c<r.length&&r[c]!==u[c]?o[c](()=>u[c]):c>=r.length&&(i[c]=b(f));for(;c<r.length;c++)a[c]();return s=o.length=a.length=d,r=u.slice(0),i=i.slice(0,s)});function f(e){a[c]=e;let[n,r]=x(u[c]);return o[c]=r,t(n,c)}}}function me(e,t){return T(()=>e(t||{}))}function G(){return!0}const he={get(e,t,n){return t===s?n:e.get(t)},has(e,t){return t===s?!0:e.has(t)},set:G,deleteProperty:G,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:G,deleteProperty:G}},ownKeys(e){return e.keys()}};function K(e){return(e=typeof e==`function`?e():e)?e:{}}function ge(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function _e(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&s in r,e[n]=typeof r==`function`?(t=!0,w(r)):r}if(c&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=K(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in K(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(K(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:ge.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}const ve=e=>`Stale read from <${e}>.`;function ye(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(fe(()=>e.each,e.children,t||void 0))}function be(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(pe(()=>e.each,e.children,t||void 0))}function xe(e){let t=e.keyed,n=w(()=>e.when,void 0,void 0),r=t?n:w(n,void 0,{equals:(e,t)=>!e==!t});return w(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?T(()=>a(t?i:()=>{if(!T(r))throw ve(`Show`);return n()})):a}return e.fallback},void 0,void 0)}const Se=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(`.`)]),Ce=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),we=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),Te=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 Ee(e,t){let n=Te[e];return typeof n==`object`?n[t]?n.$:void 0:n}const De=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Oe={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},ke=e=>w(()=>e());function Ae(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()}}}const je=`_$DX_DELEGATE`;function Me(e,t,n,r={}){let i;return b(r=>{i=r,t===document?e():Ue(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function Ne(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?()=>T(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Pe(e,t=window.document){let n=t[je]||(t[je]=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,Je))}}function q(e,t,n){Y(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Fe(e,t,n,r){Y(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Ie(e,t,n){Y(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Le(e,t){Y(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function Re(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]||(Ke(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||(Ke(e,i,!0),n[i]=o)}return n}function Be(e,t,n){if(!t)return n?q(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 Ve(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function He(e,t={},n,r){let i={};return r||S(()=>i.children=X(e,t.children,i.children)),S(()=>typeof t.ref==`function`&&J(t.ref,e)),S(()=>We(e,t,n,!0,i,!0)),i}function J(e,t,n){return T(()=>e(t,n))}function Ue(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return X(e,t,r,n);S(r=>X(e,t(),r,n),r)}function We(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=qe(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||X(e,t.children);continue}let s=t[o];i[o]=qe(e,o,s,i[o],n,a,t)}}function Y(e){return!!r.context&&!r.done&&(!e||e.isConnected)}function Ge(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Ke(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 qe(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Be(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=De.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(Re(e,i,n,a),a&&Pe([i]))}else if(t.slice(0,5)===`attr:`)q(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Ie(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Ce.has(t))||!i&&((u=Ee(t,e.tagName))||(c=Se.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(Y(e))return n;t===`class`||t===`className`?Le(e,n):s&&!c&&!l?e[Ge(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Oe[t.split(`:`)[0]];r?Fe(e,r,t,n):q(e,we[t]||t,n)}return n}function Je(e){if(r.registry&&r.events&&r.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,i=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{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)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),r.registry&&!r.done&&(r.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===a)break}}else c();o(i)}function X(e,t,n,r,i){let a=Y(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=Q(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=Q(e,n,r)}else if(o===`function`)return S(()=>{let i=t();for(;typeof i==`function`;)i=i();n=X(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Z(o,t,n,i))return S(()=>n=X(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=Q(e,n,r),s)return n}else c?n.length===0?Ye(e,o,r):Ae(e,n,o):(n&&Q(e),Ye(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=Q(e,n,r,t);Q(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Z(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=Z(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Z(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 Ye(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Q(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]}const Xe=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),Ze=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],Qe=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},$e=t=>{if(document.designMode===`on`)return!0;let n=Qe(t);if(!n)return!1;if(n.isContentEditable)return!0;let r=e(n);return Ze.some(e=>e===r||e===n.role)},et=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},tt=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},nt=(e,t,n)=>Math.max(t,Math.min(e,n));let $=null;const rt=()=>{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},it=()=>{if($===null){if(typeof navigator>`u`)return $=!1,$;let e=navigator.platform??rt()??navigator.userAgent;$=/Mac|iPhone|iPad|iPod/i.test(e)}return $},at=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},ot=`react-grab-toolbar-state`,st=()=>{try{let e=localStorage.getItem(ot);if(!e)return null;let r=JSON.parse(e);if(typeof r!=`object`||!r)return null;let i=r,a=typeof i.collapsed==`boolean`?i.collapsed:!1;return{edge:i.edge===`top`||i.edge===`bottom`||i.edge===`left`||i.edge===`right`?i.edge:`bottom`,ratio:typeof i.ratio==`number`?i.ratio:n,collapsed:a,enabled:!a,defaultAction:typeof i.defaultAction==`string`?i.defaultAction:t}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},ct=e=>{try{localStorage.setItem(ot,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}};export{w as A,D as B,l as C,re as D,xe as E,k as F,fe as I,_e as L,ne as M,b as N,me as O,x as P,E as R,s as S,be as T,q as _,nt as a,Ne as b,$e as c,ze as d,Le as f,Me as g,ke as h,it as i,S as j,C as k,Xe as l,Ue as m,ct as n,et as o,Pe as p,at as r,tt as s,st as t,Re as u,Ve as v,ye as w,J as x,He as y,O as z};
|
package/dist/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@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{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.touch-hitbox{position:relative}.touch-hitbox:before{content:"";width:100%;min-width:44px;height:100%;min-height:44px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-0{top:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.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)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-0{height:calc(var(--spacing) * 0)}.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-0{width:calc(var(--spacing) * 0)}.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{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-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-\[10px\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-\[10px\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-\[6px\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\[10px\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.\[border-width\:0\.5px\]{border-width:.5px}.\[border-top-width\:0\.5px\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[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\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-px{padding-block:1px}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-\[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-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\]{transition-property:top,left,width,height,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[transform\,opacity\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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}.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){.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}@keyframes rg-badge-slide{0%{transform:translate(-8.2px,12.4px)}to{transform:translate(0)}}@media (prefers-reduced-motion:reduce){[data-react-grab-unread-indicator],[data-react-grab-unread-indicator] *{transition:none!important;animation:none!important}}@keyframes shake{0%,to{transform:translate(0)}15%{transform:translate(-3px)}30%{transform:translate(3px)}45%{transform:translate(-3px)}60%{transform:translate(3px)}75%{transform:translate(-2px)}90%{transform:translate(2px)}}@keyframes success-pop{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes icon-loader-spin{0%{opacity:1}50%{opacity:.5}to{opacity:.2}}.icon-loader-bar{animation:.5s linear infinite icon-loader-spin}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.shimmer-text{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}@keyframes clock-flash{0%{transform:scale(1)}25%{transform:scale(1.2)}50%{transform:scale(.92)}75%{transform:scale(1.05)}to{transform:scale(1)}}.animate-clock-flash{will-change:transform;animation:.4s ease-out clock-flash}.animate-shake{will-change:transform;animation:.3s ease-out shake}.animate-success-pop{will-change:transform, opacity;animation:.35s cubic-bezier(.34,1.56,.64,1) both success-pop}@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}
|
|
2
|
+
@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{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.touch-hitbox{position:relative}.touch-hitbox:before{content:"";width:100%;min-width:44px;height:100%;min-height:44px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-0{top:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.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)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-4{margin-left:calc(var(--spacing) * 4)}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-0{height:calc(var(--spacing) * 0)}.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-0{width:calc(var(--spacing) * 0)}.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{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-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l-\[10px\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-\[10px\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-\[6px\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\[10px\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.\[border-width\:0\.5px\]{border-width:.5px}.\[border-top-width\:0\.5px\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[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\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-px{padding-block:1px}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-\[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-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\]{transition-property:top,left,width,height,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[transform\,opacity\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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){.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}@keyframes rg-badge-slide{0%{transform:translate(-8.2px,12.4px)}to{transform:translate(0)}}@media (prefers-reduced-motion:reduce){[data-react-grab-unread-indicator],[data-react-grab-unread-indicator] *{transition:none!important;animation:none!important}}@keyframes shake{0%,to{transform:translate(0)}15%{transform:translate(-3px)}30%{transform:translate(3px)}45%{transform:translate(-3px)}60%{transform:translate(3px)}75%{transform:translate(-2px)}90%{transform:translate(2px)}}@keyframes success-pop{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes icon-loader-spin{0%{opacity:1}50%{opacity:.5}to{opacity:.2}}.icon-loader-bar{animation:.5s linear infinite icon-loader-spin}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.shimmer-text{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}@keyframes clock-flash{0%{transform:scale(1)}25%{transform:scale(1.2)}50%{transform:scale(.92)}75%{transform:scale(1.05)}to{transform:scale(1)}}.animate-clock-flash{will-change:transform;animation:.4s ease-out clock-flash}.animate-shake{will-change:transform;animation:.3s ease-out shake}.animate-success-pop{will-change:transform, opacity;animation:.35s cubic-bezier(.34,1.56,.64,1) both success-pop}@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}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grab",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "Select context for coding agents directly from your website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@react-grab/cli": "0.1.
|
|
70
|
+
"@react-grab/cli": "0.1.37"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "node scripts/build.js"
|