offsite 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +10 -0
  2. package/apps/server/dist/main.mjs +3 -1
  3. package/apps/server/dist/main.mjs.map +1 -1
  4. package/apps/web/dist/assets/HugeiconsIcon-eRbI5N8r.js +1 -0
  5. package/apps/web/dist/assets/audio-player-DPpDuqFI.js +1 -0
  6. package/apps/web/dist/assets/{dist-CuGUlcoC.js → dist-BxKL_-7_.js} +1 -1
  7. package/apps/web/dist/assets/{image-viewer-DnE3hPpr.js → image-viewer-CXSBWHCX.js} +1 -1
  8. package/apps/web/dist/assets/index-CjjE4vH0.css +2 -0
  9. package/apps/web/dist/assets/index-_B37DCJA.js +781 -0
  10. package/apps/web/dist/assets/{preview-dialog-CApdSumg.js → preview-dialog-Cgeg3W6o.js} +12 -12
  11. package/apps/web/dist/assets/react-BlUBLzv4.js +1416 -0
  12. package/apps/web/dist/assets/{tooltip-DZsSQhD8.js → tooltip-D08x1wZY.js} +1 -1
  13. package/apps/web/dist/assets/utils-PtDt7m8t.js +1 -0
  14. package/apps/web/dist/assets/video-player-DDu2cDQE.js +1 -0
  15. package/apps/web/dist/assets/video-player-DlVZx3V3.js +1 -0
  16. package/apps/web/dist/assets/{video-viewer-B404MUMw.js → video-viewer-Cr1-BYtu.js} +1 -1
  17. package/apps/web/dist/assets/{zoomable-image-CjNpa0bY.js → zoomable-image-CrpD_Zwi.js} +1 -1
  18. package/apps/web/dist/assets/zoomable-image-Fkv4fx_U.js +1 -0
  19. package/apps/web/dist/index.html +6 -5
  20. package/apps/web/dist/sw.js +1 -1
  21. package/package.json +1 -1
  22. package/apps/web/dist/assets/HugeiconsIcon-B46TDTdz.js +0 -1
  23. package/apps/web/dist/assets/index-BGGXjM1y.css +0 -2
  24. package/apps/web/dist/assets/index-Dv6wE5Po.js +0 -783
  25. package/apps/web/dist/assets/video-player-05lO0mz3.js +0 -1416
  26. package/apps/web/dist/assets/video-player-DGtpeSpK.js +0 -1
  27. package/apps/web/dist/assets/zoomable-image-CzRbnhdc.js +0 -1
@@ -1,9 +1,9 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{S as r,_ as i,a,c as o,d as s,f as c,g as l,h as u,i as d,l as f,m as p,n as m,p as h,r as g,s as _,t as v,x as y,y as ee}from"./HugeiconsIcon-B46TDTdz.js";var b=e(t(),1),te=Object.defineProperty,x=(e,t)=>te(e,`name`,{value:t,configurable:!0}),S=0,C=null;function ne(e){return w(),e.children}x(ne,`FocusGuards`);function w(){b.useEffect(()=>{C||={start:T(),end:T()};let{start:e,end:t}=C;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),S++,()=>{S===1&&(C?.start.remove(),C?.end.remove(),C=null),S=Math.max(0,S-1)}},[])}x(w,`useFocusGuards`);function T(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}x(T,`createFocusGuard`);var E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E.apply(this,arguments)};function re(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ie(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var D=`right-scroll-bar-position`,O=`width-before-scroll-bar`,ae=`with-scroll-bars-hidden`,oe=`--removed-body-scroll-bar-size`;function k(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function se(e,t){var n=(0,b.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ce=typeof window<`u`?b.useLayoutEffect:b.useEffect,le=new WeakMap;function ue(e,t){var n=se(t||null,function(t){return e.forEach(function(e){return k(e,t)})});return ce(function(){var t=le.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||k(e,null)}),i.forEach(function(e){r.has(e)||k(e,a)})}le.set(n,e)},[e]),n}function de(e){return e}function fe(e,t){t===void 0&&(t=de);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function pe(e){e===void 0&&(e={});var t=fe(null);return t.options=E({async:!0,ssr:!1},e),t}var me=function(e){var t=e.sideCar,n=re(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return b.createElement(r,E({},n))};me.isSideCarExport=!0;function he(e,t){return e.useMedium(t),me}var ge=pe(),A=function(){},j=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:A}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,ee=re(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),te=f,x=ue([n,t]),S=E(E({},ee),i);return b.createElement(b.Fragment,null,u&&b.createElement(te,{sideCar:ge,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?b.cloneElement(b.Children.only(s),E(E({},S),{ref:x})):b.createElement(v,E({},S,{className:c,ref:x}),s))});j.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},j.classNames={fullWidth:O,zeroRight:D};var _e=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ve(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=_e();return t&&e.setAttribute(`nonce`,t),e}function ye(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function be(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var xe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ve())&&(ye(t,n),be(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Se=function(){var e=xe();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ce=function(){var e=Se();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},we={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||``,10)||0},Te=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[M(n),M(r),M(i)]},Ee=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return we;var t=Te(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},De=Ce(),N=`data-scroll-locked`,Oe=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
- .${ae} {
1
+ import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{_ as r,a as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,p as m,r as h,s as g,t as _,x as v,y}from"./HugeiconsIcon-eRbI5N8r.js";import{t as b}from"./utils-PtDt7m8t.js";var x=e(t(),1),ee=Object.defineProperty,S=(e,t)=>ee(e,`name`,{value:t,configurable:!0}),C=0,w=null;function te(e){return T(),e.children}S(te,`FocusGuards`);function T(){x.useEffect(()=>{w||={start:E(),end:E()};let{start:e,end:t}=w;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),C++,()=>{C===1&&(w?.start.remove(),w?.end.remove(),w=null),C=Math.max(0,C-1)}},[])}S(T,`useFocusGuards`);function E(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}S(E,`createFocusGuard`);var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)};function ne(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function re(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var O=`right-scroll-bar-position`,k=`width-before-scroll-bar`,ie=`with-scroll-bars-hidden`,ae=`--removed-body-scroll-bar-size`;function A(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function oe(e,t){var n=(0,x.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var se=typeof window<`u`?x.useLayoutEffect:x.useEffect,ce=new WeakMap;function le(e,t){var n=oe(t||null,function(t){return e.forEach(function(e){return A(e,t)})});return se(function(){var t=ce.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||A(e,null)}),i.forEach(function(e){r.has(e)||A(e,a)})}ce.set(n,e)},[e]),n}function ue(e){return e}function de(e,t){t===void 0&&(t=ue);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function fe(e){e===void 0&&(e={});var t=de(null);return t.options=D({async:!0,ssr:!1},e),t}var pe=function(e){var t=e.sideCar,n=ne(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return x.createElement(r,D({},n))};pe.isSideCarExport=!0;function me(e,t){return e.useMedium(t),pe}var he=fe(),j=function(){},M=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:j}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=ne(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),ee=f,S=le([n,t]),C=D(D({},b),i);return x.createElement(x.Fragment,null,u&&x.createElement(ee,{sideCar:he,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?x.cloneElement(x.Children.only(s),D(D({},C),{ref:S})):x.createElement(v,D({},C,{className:c,ref:S}),s))});M.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},M.classNames={fullWidth:k,zeroRight:O};var ge=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ge();return t&&e.setAttribute(`nonce`,t),e}function ve(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ye(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var be=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(ve(t,n),ye(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xe=function(){var e=be();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Se=function(){var e=xe();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ce={left:0,top:0,right:0,gap:0},N=function(e){return parseInt(e||``,10)||0},we=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[N(n),N(r),N(i)]},Te=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ce;var t=we(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ee=Se(),P=`data-scroll-locked`,De=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${ie} {
3
3
  overflow: hidden ${r};
4
4
  padding-right: ${s}px ${r};
5
5
  }
6
- body[${N}] {
6
+ body[${P}] {
7
7
  overflow: hidden ${r};
8
8
  overscroll-behavior: contain;
9
9
  ${[t&&`position: relative ${r};`,n===`margin`&&`
@@ -16,29 +16,29 @@ import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{S as r,_ as i
16
16
  `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
17
  }
18
18
 
19
- .${D} {
19
+ .${O} {
20
20
  right: ${s}px ${r};
21
21
  }
22
22
 
23
- .${O} {
23
+ .${k} {
24
24
  margin-right: ${s}px ${r};
25
25
  }
26
26
 
27
- .${D} .${D} {
27
+ .${O} .${O} {
28
28
  right: 0 ${r};
29
29
  }
30
30
 
31
- .${O} .${O} {
31
+ .${k} .${k} {
32
32
  margin-right: 0 ${r};
33
33
  }
34
34
 
35
- body[${N}] {
36
- ${oe}: ${s}px;
35
+ body[${P}] {
36
+ ${ae}: ${s}px;
37
37
  }
38
- `},ke=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Ae=function(){b.useEffect(function(){return document.body.setAttribute(N,(ke()+1).toString()),function(){var e=ke()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},je=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Ae();var a=b.useMemo(function(){return Ee(i)},[i]);return b.createElement(De,{styles:Oe(a,!t,i,n?``:`!important`)})},P=!1;if(typeof window<`u`)try{var F=Object.defineProperty({},"passive",{get:function(){return P=!0,!0}});window.addEventListener(`test`,F,F),window.removeEventListener(`test`,F,F)}catch{P=!1}var I=P?{passive:!1}:!1,Me=function(e){return e.tagName===`TEXTAREA`},Ne=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Me(e)&&n[t]===`visible`)},Pe=function(e){return Ne(e,`overflowY`)},Fe=function(e){return Ne(e,`overflowX`)},Ie=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ze(e,r)){var i=Be(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Le=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Re=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ze=function(e,t){return e===`v`?Pe(t):Fe(t)},Be=function(e,t){return e===`v`?Le(t):Re(t)},Ve=function(e,t){return e===`h`&&t===`rtl`?-1:1},He=function(e,t,n,r,i){var a=Ve(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Be(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ze(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},L=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ue=function(e){return[e.deltaX,e.deltaY]},We=function(e){return e&&`current`in e?e.current:e},Ge=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ke=function(e){return`
38
+ `},Oe=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ke=function(){x.useEffect(function(){return document.body.setAttribute(P,(Oe()+1).toString()),function(){var e=Oe()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}},[])},Ae=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ke();var a=x.useMemo(function(){return Te(i)},[i]);return x.createElement(Ee,{styles:De(a,!t,i,n?``:`!important`)})},F=!1;if(typeof window<`u`)try{var I=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener(`test`,I,I),window.removeEventListener(`test`,I,I)}catch{F=!1}var L=F?{passive:!1}:!1,je=function(e){return e.tagName===`TEXTAREA`},Me=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!je(e)&&n[t]===`visible`)},Ne=function(e){return Me(e,`overflowY`)},Pe=function(e){return Me(e,`overflowX`)},Fe=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Re(e,r)){var i=ze(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ie=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Le=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Re=function(e,t){return e===`v`?Ne(t):Pe(t)},ze=function(e,t){return e===`v`?Ie(t):Le(t)},Be=function(e,t){return e===`h`&&t===`rtl`?-1:1},Ve=function(e,t,n,r,i){var a=Be(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ze(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Re(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},R=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},He=function(e){return[e.deltaX,e.deltaY]},Ue=function(e){return e&&`current`in e?e.current:e},We=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ge=function(e){return`
39
39
  .block-interactivity-${e} {pointer-events: none;}
40
40
  .allow-interactivity-${e} {pointer-events: all;}
41
- `},qe=0,R=[];function Je(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(qe++)[0],a=b.useState(Ce)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ie([e.lockRef.current],(e.shards||[]).map(We),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=b.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=L(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Ie(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Ie(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return He(h,t,e,h===`h`?s:c,!0)},[]),c=b.useCallback(function(e){var n=e;if(R.length&&R[R.length-1]===a){var r=`deltaY`in n?Ue(n):L(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Ge(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(We).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=b.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ye(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=b.useCallback(function(e){n.current=L(e),r.current=void 0},[]),d=b.useCallback(function(t){l(t.type,Ue(t),t.target,s(t,e.lockRef.current))},[]),f=b.useCallback(function(t){l(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);b.useEffect(function(){return R.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,I),document.addEventListener(`touchmove`,c,I),document.addEventListener(`touchstart`,u,I),function(){R=R.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,I),document.removeEventListener(`touchmove`,c,I),document.removeEventListener(`touchstart`,u,I)}},[]);var p=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(a,{styles:Ke(i)}):null,p?b.createElement(je,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ye(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Xe=he(ge,Je),z=b.forwardRef(function(e,t){return b.createElement(j,E({},e,{ref:t,sideCar:Xe}))});z.classNames=j.classNames;var Ze=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},B=new WeakMap,V=new WeakMap,H={},U=0,Qe=function(e){return e&&(e.host||Qe(e.parentNode))},$e=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Qe(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},et=function(e,t,n,r){var i=$e(t,Array.isArray(e)?e:[e]);H[n]||(H[n]=new WeakMap);var a=H[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(B.get(e)||0)+1,l=(a.get(e)||0)+1;B.set(e,c),a.set(e,l),o.push(e),c===1&&i&&V.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),U++,function(){o.forEach(function(e){var t=B.get(e)-1,i=a.get(e)-1;B.set(e,t),a.set(e,i),t||(V.has(e)||e.removeAttribute(r),V.delete(e)),i||e.removeAttribute(n)}),U--,U||(B=new WeakMap,B=new WeakMap,V=new WeakMap,H={})}},tt=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ze(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),et(r,i,n,`aria-hidden`)):function(){return null}},W=n(),nt=Object.defineProperty,G=(e,t)=>nt(e,`name`,{value:t,configurable:!0}),K=`Dialog`,[rt,it]=l(K),[at,q]=rt(K),ot=G(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,c=b.useRef(null),l=b.useRef(null),{nodes:u,registry:d}=_(),[f,p]=h({prop:r,defaultProp:i??!1,onChange:a,caller:K}),[m,g]=b.useState(0),[v,y]=b.useState(0);return(0,W.jsx)(at,{scope:t,triggerRef:c,contentRef:l,contentId:s(),titleId:s(),descriptionId:s(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:g,setDescriptionCount:y,open:f,onOpenChange:p,onOpenToggle:b.useCallback(()=>p(e=>!e),[p]),modal:o,branchNodes:u,branchRegistry:d,children:n})},`Dialog`),st=`DialogTrigger`,ct=b.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,a=q(st,n),o=y(t,a.triggerRef);return(0,W.jsx)(i.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Q(a.open),...r,ref:o,onClick:p(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),lt=`DialogPortal`,[ut,dt]=rt(lt,{forceMount:void 0}),ft=G(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=q(lt,t);return(0,W.jsx)(ut,{scope:t,forceMount:n,children:b.Children.map(r,e=>(0,W.jsx)(c,{present:n||a.open,children:(0,W.jsx)(g,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),J=`DialogOverlay`,pt=b.forwardRef(G(function(e,t){let n=dt(J,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=q(J,e.__scopeDialog);return a.modal?(0,W.jsx)(c,{present:r||a.open,children:(0,W.jsx)(ht,{...i,ref:t})}):null},`DialogOverlay`)),mt=ee(`DialogOverlay.RemoveScroll`),ht=b.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,a=q(J,n),o=f(),s=y(t,o);return(0,W.jsx)(z,{as:mt,allowPinchZoom:!0,shards:b.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,W.jsx)(i.div,{"data-state":Q(a.open),...r,ref:s,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Y=`DialogContent`,X=b.forwardRef(G(function(e,t){let n=dt(Y,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=q(Y,e.__scopeDialog);return(0,W.jsx)(c,{present:r||a.open,children:a.modal?(0,W.jsx)(gt,{...i,ref:t}):(0,W.jsx)(_t,{...i,ref:t})})},`DialogContent`)),gt=b.forwardRef(G(function(e,t){let n=q(Y,e.__scopeDialog),r=b.useRef(null),i=y(t,n.contentRef,r);return b.useEffect(()=>{let e=r.current;if(e)return tt(e)},[]),(0,W.jsx)(vt,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:p(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:p(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:p(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),_t=b.forwardRef(G(function(e,t){let n=q(Y,e.__scopeDialog),r=b.useRef(!1),i=b.useRef(!1);return(0,W.jsx)(vt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),vt=b.forwardRef(G(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,"aria-describedby":c,children:l,...u}=e,f=q(Y,n);return w(),(0,W.jsx)(a,{registry:f.branchRegistry,children:(0,W.jsx)(d,{asChild:!0,loop:!0,trapped:r,branches:f.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,W.jsx)(o,{role:`dialog`,id:f.contentId,"aria-labelledby":f.titlePresent?f.titleId:void 0,"aria-describedby":f.descriptionPresent?St(c,f.descriptionId):c,"data-state":Q(f.open),...u,ref:t,deferPointerDownOutside:!0,onDismiss:()=>f.onOpenChange(!1),children:l})})})},`DialogContentImpl`)),yt=b.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,a=q(`DialogTitle`,n),{setTitleCount:o}=a;return u(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,W.jsx)(i.h2,{id:a.titleId,...r,ref:t})},`DialogTitle`)),bt=b.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,a=q(`DialogDescription`,n),{setDescriptionCount:o}=a;return u(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,W.jsx)(i.p,{id:a.descriptionId,...r,ref:t})},`DialogDescription`)),xt=`DialogClose`,Z=b.forwardRef(G(function(e,t){let{__scopeDialog:n,...r}=e,a=q(xt,n);return(0,W.jsx)(i.button,{type:`button`,...r,ref:t,onClick:p(e.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function St(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}G(St,`concatAriaDescribedby`);function Q(e){return e?`open`:`closed`}G(Q,`getState`);var Ct=[[`path`,{d:`M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],wt=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
41
+ `},Ke=0,z=[];function qe(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),i=x.useState(Ke++)[0],a=x.useState(Se)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=re([e.lockRef.current],(e.shards||[]).map(Ue),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=R(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Fe(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Fe(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Ve(h,t,e,h===`h`?s:c,!0)},[]),c=x.useCallback(function(e){var n=e;if(z.length&&z[z.length-1]===a){var r=`deltaY`in n?He(n):R(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&We(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Ue).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=x.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Je(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=x.useCallback(function(e){n.current=R(e),r.current=void 0},[]),d=x.useCallback(function(t){l(t.type,He(t),t.target,s(t,e.lockRef.current))},[]),f=x.useCallback(function(t){l(t.type,R(t),t.target,s(t,e.lockRef.current))},[]);x.useEffect(function(){return z.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,L),document.addEventListener(`touchmove`,c,L),document.addEventListener(`touchstart`,u,L),function(){z=z.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,L),document.removeEventListener(`touchmove`,c,L),document.removeEventListener(`touchstart`,u,L)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(a,{styles:Ge(i)}):null,p?x.createElement(Ae,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Je(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ye=me(he,qe),B=x.forwardRef(function(e,t){return x.createElement(M,D({},e,{ref:t,sideCar:Ye}))});B.classNames=M.classNames;var Xe=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},V=new WeakMap,H=new WeakMap,U={},W=0,Ze=function(e){return e&&(e.host||Ze(e.parentNode))},Qe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ze(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},$e=function(e,t,n,r){var i=Qe(t,Array.isArray(e)?e:[e]);U[n]||(U[n]=new WeakMap);var a=U[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(V.get(e)||0)+1,l=(a.get(e)||0)+1;V.set(e,c),a.set(e,l),o.push(e),c===1&&i&&H.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),W++,function(){o.forEach(function(e){var t=V.get(e)-1,i=a.get(e)-1;V.set(e,t),a.set(e,i),t||(H.has(e)||e.removeAttribute(r),H.delete(e)),i||e.removeAttribute(n)}),W--,W||(V=new WeakMap,V=new WeakMap,H=new WeakMap,U={})}},et=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Xe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),$e(r,i,n,`aria-hidden`)):function(){return null}},G=n(),tt=Object.defineProperty,K=(e,t)=>tt(e,`name`,{value:t,configurable:!0}),q=`Dialog`,[nt,rt]=c(q),[it,J]=nt(q),at=K(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=x.useRef(null),l=x.useRef(null),{nodes:u,registry:d}=g(),[f,p]=m({prop:r,defaultProp:i??!1,onChange:a,caller:q}),[h,_]=x.useState(0),[v,y]=x.useState(0);return(0,G.jsx)(it,{scope:t,triggerRef:c,contentRef:l,contentId:o(),titleId:o(),descriptionId:o(),titlePresent:h>0,descriptionPresent:v>0,setTitleCount:_,setDescriptionCount:y,open:f,onOpenChange:p,onOpenToggle:x.useCallback(()=>p(e=>!e),[p]),modal:s,branchNodes:u,branchRegistry:d,children:n})},`Dialog`),ot=`DialogTrigger`,st=x.forwardRef(K(function(e,t){let{__scopeDialog:n,...i}=e,a=J(ot,n),o=v(t,a.triggerRef);return(0,G.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Q(a.open),...i,ref:o,onClick:f(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),ct=`DialogPortal`,[lt,ut]=nt(ct,{forceMount:void 0}),dt=K(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=J(ct,t);return(0,G.jsx)(lt,{scope:t,forceMount:n,children:x.Children.map(r,e=>(0,G.jsx)(s,{present:n||a.open,children:(0,G.jsx)(h,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Y=`DialogOverlay`,ft=x.forwardRef(K(function(e,t){let n=ut(Y,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=J(Y,e.__scopeDialog);return a.modal?(0,G.jsx)(s,{present:r||a.open,children:(0,G.jsx)(mt,{...i,ref:t})}):null},`DialogOverlay`)),pt=y(`DialogOverlay.RemoveScroll`),mt=x.forwardRef(K(function(e,t){let{__scopeDialog:n,...i}=e,a=J(Y,n),o=d(),s=v(t,o);return(0,G.jsx)(B,{as:pt,allowPinchZoom:!0,shards:x.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,G.jsx)(r.div,{"data-state":Q(a.open),...i,ref:s,style:{pointerEvents:`auto`,...i.style}})})},`DialogOverlayImpl`)),X=`DialogContent`,ht=x.forwardRef(K(function(e,t){let n=ut(X,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=J(X,e.__scopeDialog);return(0,G.jsx)(s,{present:r||a.open,children:a.modal?(0,G.jsx)(gt,{...i,ref:t}):(0,G.jsx)(_t,{...i,ref:t})})},`DialogContent`)),gt=x.forwardRef(K(function(e,t){let n=J(X,e.__scopeDialog),r=x.useRef(null),i=v(t,n.contentRef,r);return x.useEffect(()=>{let e=r.current;if(e)return et(e)},[]),(0,G.jsx)(vt,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:f(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:f(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),_t=x.forwardRef(K(function(e,t){let n=J(X,e.__scopeDialog),r=x.useRef(!1),i=x.useRef(!1);return(0,G.jsx)(vt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),vt=x.forwardRef(K(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,"aria-describedby":c,children:l,...d}=e,f=J(X,n);return T(),(0,G.jsx)(i,{registry:f.branchRegistry,children:(0,G.jsx)(u,{asChild:!0,loop:!0,trapped:r,branches:f.branchNodes,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,G.jsx)(a,{role:`dialog`,id:f.contentId,"aria-labelledby":f.titlePresent?f.titleId:void 0,"aria-describedby":f.descriptionPresent?St(c,f.descriptionId):c,"data-state":Q(f.open),...d,ref:t,deferPointerDownOutside:!0,onDismiss:()=>f.onOpenChange(!1),children:l})})})},`DialogContentImpl`)),yt=x.forwardRef(K(function(e,t){let{__scopeDialog:n,...i}=e,a=J(`DialogTitle`,n),{setTitleCount:o}=a;return l(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,G.jsx)(r.h2,{id:a.titleId,...i,ref:t})},`DialogTitle`)),bt=x.forwardRef(K(function(e,t){let{__scopeDialog:n,...i}=e,a=J(`DialogDescription`,n),{setDescriptionCount:o}=a;return l(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,G.jsx)(r.p,{id:a.descriptionId,...i,ref:t})},`DialogDescription`)),xt=`DialogClose`,Z=x.forwardRef(K(function(e,t){let{__scopeDialog:n,...i}=e,a=J(xt,n);return(0,G.jsx)(r.button,{type:`button`,...i,ref:t,onClick:f(e.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function St(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}K(St,`concatAriaDescribedby`);function Q(e){return e?`open`:`closed`}K(Q,`getState`);var Ct=[[`path`,{d:`M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],wt=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
42
42
  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
43
43
  <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
44
44
  </symbol>
@@ -270,4 +270,4 @@ import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{S as r,_ as i
270
270
  <symbol id="t3-file-icon-toml" viewBox="0 0 24 24">
271
271
  <path style="fill: light-dark(#84848a, #adadb1)" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z" />
272
272
  </symbol>
273
- </svg>`,Un=Vn({set:`complete`,colored:!0,spriteSheet:Hn,byFileName:{"package.json":`file-tree-builtin-npm`,"tsconfig.json":`file-tree-builtin-typescript`,"agents.md":`t3-file-icon-agents`,"pnpm-lock.yaml":`t3-file-icon-pnpm`,"pnpm-workspace.yaml":`t3-file-icon-pnpm`},byFileExtension:{avi:`t3-file-icon-video`,m4v:`t3-file-icon-video`,mkv:`t3-file-icon-video`,mov:`t3-file-icon-video`,mp4:`t3-file-icon-video`,ogv:`t3-file-icon-video`,webm:`t3-file-icon-video`,cs:`t3-file-icon-csharp`,csx:`t3-file-icon-csharp`,dart:`t3-file-icon-dart`,diff:`t3-file-icon-diff`,patch:`t3-file-icon-diff`,ex:`t3-file-icon-elixir`,exs:`t3-file-icon-elixir`,hs:`t3-file-icon-haskell`,lhs:`t3-file-icon-haskell`,java:`t3-file-icon-java`,kt:`t3-file-icon-kotlin`,kts:`t3-file-icon-kotlin`,lua:`t3-file-icon-lua`,php:`t3-file-icon-php`,ps1:`t3-file-icon-powershell`,psm1:`t3-file-icon-powershell`,psd1:`t3-file-icon-powershell`,r:`t3-file-icon-r`,scala:`t3-file-icon-scala`,toml:`t3-file-icon-toml`,xml:`t3-file-icon-xml`}}),Wn={astro:[`#a631be`,`#d568ea`],babel:[`#d5a910`,`#ffd452`],bash:[`#199f43`,`#5ecc71`],biome:[`#1a85d4`,`#69b1ff`],bootstrap:[`#693acf`,`#9d6afb`],browserslist:[`#d5a910`,`#ffd452`],bun:[`#594c5b`,`#79697b`],c:[`#1a85d4`,`#69b1ff`],claude:[`#d47628`,`#ffa359`],cpp:[`#1a85d4`,`#69b1ff`],css:[`#693acf`,`#9d6afb`],database:[`#a631be`,`#d568ea`],default:[`#84848a`,`#adadb1`],docker:[`#1a85d4`,`#69b1ff`],eslint:[`#693acf`,`#9d6afb`],git:[`#ff8c5b`,`#d5512f`],go:[`#1ca1c7`,`#68cdf2`],graphql:[`#d32a61`,`#ff678d`],html:[`#d47628`,`#ffa359`],image:[`#d32a61`,`#ff678d`],javascript:[`#d5a910`,`#ffd452`],json:[`#d47628`,`#ffa359`],markdown:[`#199f43`,`#5ecc71`],mcp:[`#17a5af`,`#64d1db`],nextjs:[`#84848a`,`#adadb1`],npm:[`#d52c36`,`#ff6762`],oxc:[`#1ca1c7`,`#68cdf2`],postcss:[`#d52c36`,`#ff6762`],prettier:[`#17a5af`,`#64d1db`],python:[`#1a85d4`,`#69b1ff`],react:[`#1ca1c7`,`#68cdf2`],ruby:[`#d52c36`,`#ff6762`],rust:[`#d47628`,`#ffa359`],sass:[`#d32a61`,`#ff678d`],stylelint:[`#84848a`,`#adadb1`],svelte:[`#d52c36`,`#ff6762`],svg:[`#d47628`,`#ffa359`],svgo:[`#199f43`,`#5ecc71`],swift:[`#d47628`,`#ffa359`],table:[`#17a5af`,`#64d1db`],tailwind:[`#1ca1c7`,`#68cdf2`],terraform:[`#693acf`,`#9d6afb`],text:[`#84848a`,`#adadb1`],typescript:[`#1a85d4`,`#69b1ff`],vite:[`#a631be`,`#d568ea`],vscode:[`#1a85d4`,`#69b1ff`],vue:[`#199f43`,`#5ecc71`],wasm:[`#693acf`,`#9d6afb`],webpack:[`#1a85d4`,`#69b1ff`],yml:[`#d52c36`,`#ff6762`],zig:[`#d47628`,`#ffa359`],zip:[`#d47628`,`#ffa359`]},Gn={bash:`sh`,csharp:`cs`,elixir:`ex`,haskell:`hs`,javascript:`js`,kotlin:`kt`,markdown:`md`,plaintext:`txt`,powershell:`ps1`,python:`py`,ruby:`rb`,rust:`rs`,shell:`sh`,shellscript:`sh`,typescript:`ts`,yaml:`yml`};function Kn(e){(0,b.useInsertionEffect)(Yn,[]);let t=Un.resolveIcon(`file-tree-icon-file`,e.path),n=Wn[t.token??`default`]??Wn.default;return(0,W.jsx)(`svg`,{"aria-hidden":`true`,className:r(`size-4 shrink-0`,e.className),style:{color:`light-dark(${n[0]}, ${n[1]})`},viewBox:`0 0 16 16`,children:(0,W.jsx)(`use`,{href:`#${t.name}`})})}function qn(e){let t=e.toLowerCase();return t===`dockerfile`?`Dockerfile`:`file.${Gn[t]??t}`}function Jn(e){return Un.resolveIcon(`file-tree-icon-file`,qn(e)).token!=="default"}function Yn(){if(document.getElementById(`file-icon-sprite`)!==null)return;let e=document.createElement(`div`);e.id=`file-icon-sprite`,e.setAttribute(`aria-hidden`,`true`),e.style.position=`absolute`,e.style.width=`0`,e.style.height=`0`,e.style.overflow=`hidden`,e.style.pointerEvents=`none`,e.innerHTML=`${Nn(`complete`)}${Hn}`,document.body.prepend(e)}function Xn({...e}){return(0,W.jsx)(ot,{"data-slot":`dialog`,...e})}function Zn({...e}){return(0,W.jsx)(ft,{"data-slot":`dialog-portal`,...e})}function Qn({...e}){return(0,W.jsx)(Z,{"data-slot":`dialog-close`,...e})}function $n({className:e,...t}){return(0,W.jsx)(pt,{"data-slot":`dialog-overlay`,className:r(`fixed inset-0 isolate z-50 bg-black/40 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function er({className:e,children:t,showCloseButton:n=!0,...i}){return(0,W.jsxs)(Zn,{children:[(0,W.jsx)($n,{}),(0,W.jsxs)(X,{"data-slot":`dialog-content`,className:r(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-2xl border bg-background p-5 text-sm text-foreground shadow-[0_18px_44px_-18px_rgb(0_0_0/55%)] duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...i,children:[t,n&&(0,W.jsx)(Z,{"data-slot":`dialog-close`,asChild:!0,children:(0,W.jsxs)(m,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,W.jsx)(v,{icon:Ct}),(0,W.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function tr({className:e,...t}){return(0,W.jsx)(`div`,{"data-slot":`dialog-header`,className:r(`flex flex-col gap-2`,e),...t})}function nr({className:e,showCloseButton:t=!1,children:n,...i}){return(0,W.jsxs)(`div`,{"data-slot":`dialog-footer`,className:r(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...i,children:[n,t&&(0,W.jsx)(Z,{asChild:!0,children:(0,W.jsx)(m,{variant:`outline`,children:`Close`})})]})}function rr({className:e,...t}){return(0,W.jsx)(yt,{"data-slot":`dialog-title`,className:r(`text-base leading-none font-medium`,e),...t})}function ir({className:e,...t}){return(0,W.jsx)(bt,{"data-slot":`dialog-description`,className:r(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function ar(e){return(0,W.jsx)(Xn,{open:e.open,onOpenChange:()=>e.onClose(),children:(0,W.jsx)(er,{"aria-describedby":void 0,className:`top-0 left-0 flex h-dvh w-dvw max-w-none translate-x-0 translate-y-0 flex-col gap-0 overflow-hidden rounded-none border-0 p-0 sm:max-w-none`,onCloseAutoFocus:e.onCloseAutoFocus,children:e.children})})}function or(e){return(0,W.jsxs)(`div`,{className:`border-border/60 flex h-11 shrink-0 items-center gap-2 border-b pr-12 pl-4`,children:[(0,W.jsx)(Kn,{path:e.title,className:`size-3.5`}),(0,W.jsx)(rr,{className:`min-w-0 truncate font-mono text-xs font-normal`,children:e.title}),e.children]})}export{tt as C,it as S,w as T,bt as _,er as a,yt as b,tr as c,Jn as d,qn as f,X as g,Z as h,Qn as i,rr as l,ot as m,or as n,ir as o,Ct as p,Xn as r,nr as s,ar as t,Kn as u,pt as v,z as w,ct as x,ft as y};
273
+ </svg>`,Un=Vn({set:`complete`,colored:!0,spriteSheet:Hn,byFileName:{"package.json":`file-tree-builtin-npm`,"tsconfig.json":`file-tree-builtin-typescript`,"agents.md":`t3-file-icon-agents`,"pnpm-lock.yaml":`t3-file-icon-pnpm`,"pnpm-workspace.yaml":`t3-file-icon-pnpm`},byFileExtension:{avi:`t3-file-icon-video`,m4v:`t3-file-icon-video`,mkv:`t3-file-icon-video`,mov:`t3-file-icon-video`,mp4:`t3-file-icon-video`,ogv:`t3-file-icon-video`,webm:`t3-file-icon-video`,cs:`t3-file-icon-csharp`,csx:`t3-file-icon-csharp`,dart:`t3-file-icon-dart`,diff:`t3-file-icon-diff`,patch:`t3-file-icon-diff`,ex:`t3-file-icon-elixir`,exs:`t3-file-icon-elixir`,hs:`t3-file-icon-haskell`,lhs:`t3-file-icon-haskell`,java:`t3-file-icon-java`,kt:`t3-file-icon-kotlin`,kts:`t3-file-icon-kotlin`,lua:`t3-file-icon-lua`,php:`t3-file-icon-php`,ps1:`t3-file-icon-powershell`,psm1:`t3-file-icon-powershell`,psd1:`t3-file-icon-powershell`,r:`t3-file-icon-r`,scala:`t3-file-icon-scala`,toml:`t3-file-icon-toml`,xml:`t3-file-icon-xml`}}),Wn={astro:[`#a631be`,`#d568ea`],babel:[`#d5a910`,`#ffd452`],bash:[`#199f43`,`#5ecc71`],biome:[`#1a85d4`,`#69b1ff`],bootstrap:[`#693acf`,`#9d6afb`],browserslist:[`#d5a910`,`#ffd452`],bun:[`#594c5b`,`#79697b`],c:[`#1a85d4`,`#69b1ff`],claude:[`#d47628`,`#ffa359`],cpp:[`#1a85d4`,`#69b1ff`],css:[`#693acf`,`#9d6afb`],database:[`#a631be`,`#d568ea`],default:[`#84848a`,`#adadb1`],docker:[`#1a85d4`,`#69b1ff`],eslint:[`#693acf`,`#9d6afb`],git:[`#ff8c5b`,`#d5512f`],go:[`#1ca1c7`,`#68cdf2`],graphql:[`#d32a61`,`#ff678d`],html:[`#d47628`,`#ffa359`],image:[`#d32a61`,`#ff678d`],javascript:[`#d5a910`,`#ffd452`],json:[`#d47628`,`#ffa359`],markdown:[`#199f43`,`#5ecc71`],mcp:[`#17a5af`,`#64d1db`],nextjs:[`#84848a`,`#adadb1`],npm:[`#d52c36`,`#ff6762`],oxc:[`#1ca1c7`,`#68cdf2`],postcss:[`#d52c36`,`#ff6762`],prettier:[`#17a5af`,`#64d1db`],python:[`#1a85d4`,`#69b1ff`],react:[`#1ca1c7`,`#68cdf2`],ruby:[`#d52c36`,`#ff6762`],rust:[`#d47628`,`#ffa359`],sass:[`#d32a61`,`#ff678d`],stylelint:[`#84848a`,`#adadb1`],svelte:[`#d52c36`,`#ff6762`],svg:[`#d47628`,`#ffa359`],svgo:[`#199f43`,`#5ecc71`],swift:[`#d47628`,`#ffa359`],table:[`#17a5af`,`#64d1db`],tailwind:[`#1ca1c7`,`#68cdf2`],terraform:[`#693acf`,`#9d6afb`],text:[`#84848a`,`#adadb1`],typescript:[`#1a85d4`,`#69b1ff`],vite:[`#a631be`,`#d568ea`],vscode:[`#1a85d4`,`#69b1ff`],vue:[`#199f43`,`#5ecc71`],wasm:[`#693acf`,`#9d6afb`],webpack:[`#1a85d4`,`#69b1ff`],yml:[`#d52c36`,`#ff6762`],zig:[`#d47628`,`#ffa359`],zip:[`#d47628`,`#ffa359`]},Gn={bash:`sh`,csharp:`cs`,elixir:`ex`,haskell:`hs`,javascript:`js`,kotlin:`kt`,markdown:`md`,plaintext:`txt`,powershell:`ps1`,python:`py`,ruby:`rb`,rust:`rs`,shell:`sh`,shellscript:`sh`,typescript:`ts`,yaml:`yml`};function Kn(e){(0,x.useInsertionEffect)(Yn,[]);let t=Un.resolveIcon(`file-tree-icon-file`,e.path),n=Wn[t.token??`default`]??Wn.default;return(0,G.jsx)(`svg`,{"aria-hidden":`true`,className:b(`size-4 shrink-0`,e.className),style:{color:`light-dark(${n[0]}, ${n[1]})`},viewBox:`0 0 16 16`,children:(0,G.jsx)(`use`,{href:`#${t.name}`})})}function qn(e){let t=e.toLowerCase();return t===`dockerfile`?`Dockerfile`:`file.${Gn[t]??t}`}function Jn(e){return Un.resolveIcon(`file-tree-icon-file`,qn(e)).token!=="default"}function Yn(){if(document.getElementById(`file-icon-sprite`)!==null)return;let e=document.createElement(`div`);e.id=`file-icon-sprite`,e.setAttribute(`aria-hidden`,`true`),e.style.position=`absolute`,e.style.width=`0`,e.style.height=`0`,e.style.overflow=`hidden`,e.style.pointerEvents=`none`,e.innerHTML=`${Nn(`complete`)}${Hn}`,document.body.prepend(e)}function Xn({...e}){return(0,G.jsx)(at,{"data-slot":`dialog`,...e})}function Zn({...e}){return(0,G.jsx)(dt,{"data-slot":`dialog-portal`,...e})}function Qn({...e}){return(0,G.jsx)(Z,{"data-slot":`dialog-close`,...e})}function $n({className:e,...t}){return(0,G.jsx)(ft,{"data-slot":`dialog-overlay`,className:b(`fixed inset-0 isolate z-50 bg-black/40 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function er({className:e,children:t,showCloseButton:n=!0,...r}){return(0,G.jsxs)(Zn,{children:[(0,G.jsx)($n,{}),(0,G.jsxs)(ht,{"data-slot":`dialog-content`,className:b(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-2xl border bg-background p-5 text-sm text-foreground shadow-[0_18px_44px_-18px_rgb(0_0_0/55%)] duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,G.jsx)(Z,{"data-slot":`dialog-close`,asChild:!0,children:(0,G.jsxs)(p,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,G.jsx)(_,{icon:Ct}),(0,G.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function tr({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`dialog-header`,className:b(`flex flex-col gap-2`,e),...t})}function nr({className:e,showCloseButton:t=!1,children:n,...r}){return(0,G.jsxs)(`div`,{"data-slot":`dialog-footer`,className:b(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,G.jsx)(Z,{asChild:!0,children:(0,G.jsx)(p,{variant:`outline`,children:`Close`})})]})}function rr({className:e,...t}){return(0,G.jsx)(yt,{"data-slot":`dialog-title`,className:b(`text-base leading-none font-medium`,e),...t})}function ir({className:e,...t}){return(0,G.jsx)(bt,{"data-slot":`dialog-description`,className:b(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function ar(e){return(0,G.jsx)(Xn,{open:e.open,onOpenChange:()=>e.onClose(),children:(0,G.jsx)(er,{"aria-describedby":void 0,className:`top-0 left-0 flex h-dvh w-dvw max-w-none translate-x-0 translate-y-0 flex-col gap-0 overflow-hidden rounded-none border-0 p-0 sm:max-w-none`,onCloseAutoFocus:e.onCloseAutoFocus,children:e.children})})}function or(e){return(0,G.jsxs)(`div`,{className:`border-border/60 flex h-11 shrink-0 items-center gap-2 border-b pr-12 pl-4`,children:[(0,G.jsx)(Kn,{path:e.title,className:`size-3.5`}),(0,G.jsx)(rr,{className:`min-w-0 truncate font-mono text-xs font-normal`,children:e.title}),e.children]})}export{et as C,rt as S,T,bt as _,er as a,yt as b,tr as c,Jn as d,qn as f,ht as g,Z as h,Qn as i,rr as l,at as m,or as n,ir as o,Ct as p,Xn as r,nr as s,ar as t,Kn as u,ft as v,B as w,st as x,dt as y};