@cmmd-center/forge 0.13.128 → 0.13.130
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/bin.cjs +3 -2
- package/dist/bin.mjs +27 -26
- package/dist/client/assets/CanvasPanel-BBU-hosR.js +441 -0
- package/dist/client/assets/CompositeItem-DTyKsv13.js +2 -0
- package/dist/client/assets/CompositeList-Bc8TYCyy.js +2 -0
- package/dist/client/assets/DiffPanel-Mun9aNQu.js +64 -0
- package/dist/client/assets/{DiffPanel.logic-CaiJLSzy.js → DiffPanel.logic-64OYDD5i.js} +2 -2
- package/dist/client/assets/DiffWorkerPoolProvider-BWe6U2yc.js +74 -0
- package/dist/client/assets/PullRequestCodePanel-BB0oFGFq.js +5 -0
- package/dist/client/assets/ThemeEditorPanel-DHyAZtjN.js +2 -0
- package/dist/client/assets/Virtualizer-IjnQIg2n.js +2 -0
- package/dist/client/assets/{WorkerPoolContext-DE6P0yOd.js → WorkerPoolContext-CsSzcB1w.js} +46 -46
- package/dist/client/assets/canvasStateStore-DYt9MgFu.js +2 -0
- package/dist/client/assets/chevron-left-1XbEOuXj.js +2 -0
- package/dist/client/assets/chevron-right-DAF000Jz.js +2 -0
- package/dist/client/assets/{cmmdAuthRedirect-BUp02n05.js → cmmdAuthRedirect-B2FNK6pk.js} +2 -2
- package/dist/client/assets/{cmmdForgeRuntimeListResource-DokzffFK.js → cmmdForgeRuntimeListResource-Cq3OVsLZ.js} +9 -9
- package/dist/client/assets/{currentForgeWorkspaceStore-DANo4KV4.js → currentForgeWorkspaceStore-wQ-H1MIm.js} +2 -2
- package/dist/client/assets/debouncer-BEV7Iuwb.js +2 -0
- package/dist/client/assets/dialog-mwxYKYq-.js +2 -0
- package/dist/client/assets/getPseudoElementBounds-DJTX-eyW.js +2 -0
- package/dist/client/assets/index-MArBFUuB.js +301 -0
- package/dist/client/assets/index-whRqBJFC.css +1 -0
- package/dist/client/assets/minus-_j91i8bf.js +2 -0
- package/dist/client/assets/popover-BMHhFoom.js +2 -0
- package/dist/client/assets/react-D4GEJ3ir.js +2 -0
- package/dist/client/assets/scroll-area-9mmf9iy-.js +2 -0
- package/dist/client/assets/sidebarV2CustomSnoozeDialog-vLvqIwRU.js +2 -0
- package/dist/client/assets/{src-CFUzoLms.js → src-DICOHE3E.js} +2 -2
- package/dist/client/assets/switch-DpGoyzXB.js +2 -0
- package/dist/client/assets/themePalette-BII_gGLK.js +5 -0
- package/dist/client/assets/{toggle-CYJl9GZL.js → toggle-CiTk7ztA.js} +2 -2
- package/dist/client/assets/toggle-group-B0GQb1vL.js +2 -0
- package/dist/client/assets/tooltip-DlvXFVEM.js +2 -0
- package/dist/client/assets/useOpenInteractionType-KsRrk6uH.js +2 -0
- package/dist/client/assets/{utils-BQ72yH0H.js → utils-BWD4ATf-.js} +2 -2
- package/dist/client/index.html +29 -20
- package/dist/forge-build.json +1 -1
- package/dist/{open-yHTUkd2Y.mjs → open-2-reBrpv.mjs} +3 -3
- package/package.json +1 -1
- package/dist/client/assets/CanvasPanel-j0yQxyEH.js +0 -441
- package/dist/client/assets/CompositeItem-BxPZ_9BJ.js +0 -2
- package/dist/client/assets/DiffPanel-DW-4nhXm.js +0 -64
- package/dist/client/assets/DiffWorkerPoolProvider-DDV64q8E.js +0 -74
- package/dist/client/assets/PullRequestCodePanel-CPhvQnl6.js +0 -5
- package/dist/client/assets/ThemeEditorPanel-DCsxTx0Q.js +0 -2
- package/dist/client/assets/Virtualizer-C5HhtAFY.js +0 -2
- package/dist/client/assets/canvasStateStore-DKtQcBVc.js +0 -2
- package/dist/client/assets/debouncer-BmyJL8Gi.js +0 -2
- package/dist/client/assets/index-Bo3YIsVh.js +0 -169
- package/dist/client/assets/index-jrCMls69.css +0 -1
- package/dist/client/assets/popover-lOfV58pL.js +0 -2
- package/dist/client/assets/scroll-area-BxupGCij.js +0 -2
- package/dist/client/assets/switch-wFSVBlXv.js +0 -2
- package/dist/client/assets/themePalette-NfQV9Yfl.js +0 -5
- package/dist/client/assets/toggle-group-DB8Zelac.js +0 -2
- package/dist/client/assets/useOpenInteractionType-B983ff5H.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{Wa as n}from"./Stream-mUTFnSY9.js";var r=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),i=t(((e,t)=>{t.exports=r()})),a=t((e=>{var t=n(),r=i();function a(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var o=typeof Object.is==`function`?Object.is:a,s=r.useSyncExternalStore,c=t.useRef,l=t.useEffect,u=t.useMemo,d=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=c(null);if(a.current===null){var f={hasValue:!1,value:null};a.current=f}else f=a.current;a=u(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,o(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var a=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,a[0],a[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),o=t(((e,t)=>{t.exports=a()}));function s(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var c={};function l(e,t,n,r,i){if(!n&&!r&&!i&&!e)return d(t);let a=d(e);return t&&(a=f(a,t)),n&&(a=f(a,n)),r&&(a=f(a,r)),i&&(a=f(a,i)),a}function u(e){if(e.length===0)return c;if(e.length===1)return d(e[0]);let t=d(e[0]);for(let n=1;n<e.length;n+=1)t=f(t,e[n]);return t}function d(e){return g(e)?{..._(e,c)}:p(e)}function f(e,t){return g(t)?_(t,e):m(e,t)}function p(e){let t={...e};for(let e in t){let n=t[e];h(e,n)&&(t[e]=y(n))}return t}function m(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=s(e.style,r);break;case`className`:e[n]=ee(e.className,r);break;default:e[n]=h(n,r)?v(e[n],r):r}}return e}function h(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function g(e){return typeof e==`function`}function _(e,t){return g(e)?e(t):e??c}function v(e,t){return t?e?(...n)=>{let r=n[0];if(x(r)){let i=r;b(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:y(t):e}function y(e){return e&&((...t)=>{let n=t[0];return x(n)&&b(n),e(...t)})}function b(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ee(e,t){return t?e?t+` `+e:t:e}function x(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}var S=e(n(),1);function te(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var C=te(`https://base-ui.com/production-error`,`Base UI`),ne={};function w(e,t){let n=S.useRef(ne);return n.current===ne&&(n.current=e(t)),n}function T(e,t,n,r){let i=w(ie).current;return ae(i,e,t,n,r)&&se(i,[e,t,n,r]),i.callback}function re(e){let t=w(ie).current;return oe(t,e)&&se(t,e),t.callback}function ie(){return{callback:null,cleanup:null,refs:[]}}function ae(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function oe(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function se(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var ce=19;function le(e){return ce>=e}function ue(e){if(!S.isValidElement(e))return null;let t=e,n=t.props;return(le(19)?n?.ref:t.ref)??null}function de(){}var E=Object.freeze([]),D=Object.freeze({});function fe(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function pe(e,t){return typeof e==`function`?e(t):e}function me(e,t){return typeof e==`function`?e(t):e}function he(e,t,n={}){let r=t.render,i=ge(t,n);return n.enabled===!1?null:ye(e,r,i,n.state??D)}function ge(e,t={}){let{className:n,style:r,render:i}=e,{state:a=D,ref:o,props:c,stateAttributesMapping:l,enabled:u=!0}=t,d=u?pe(n,a):void 0,f=u?me(r,a):void 0,p=u?fe(a,l):D,m=u&&c?_e(c):void 0,h=u?s(p,m)??{}:D;return typeof document<`u`&&(u?h.ref=Array.isArray(o)?re([h.ref,ue(i),...o]):T(h.ref,ue(i),o):T(null,null)),u?(d!==void 0&&(h.className=ee(h.className,d)),f!==void 0&&(h.style=s(h.style,f)),h):D}function _e(e){return Array.isArray(e)?u(e):l(void 0,e)}var ve=Symbol.for(`react.lazy`);function ye(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=l(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===ve&&(i=S.Children.toArray(t)[0]),S.cloneElement(i,e)}if(e&&typeof e==`string`)return be(e,n);throw Error(C(8))}function be(e,t){return e===`button`?(0,S.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,S.createElement)(`img`,{alt:``,...t,key:t.key}):S.createElement(e,t)}var xe=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Se=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ce=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),we=e=>{let t=Ce(e);return t.charAt(0).toUpperCase()+t.slice(1)},Te={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ee=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},De=(0,S.createContext)({}),Oe=()=>(0,S.useContext)(De),ke=(0,S.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Oe()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,S.createElement)(`svg`,{ref:c,...Te,width:t??l??Te.width,height:t??l??Te.height,stroke:e??f,strokeWidth:m,className:xe(`lucide`,p,i),...!a&&!Ee(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,S.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Ae=(e,t)=>{let n=(0,S.forwardRef)(({className:n,...r},i)=>(0,S.createElement)(ke,{ref:i,iconNode:t,className:xe(`lucide-${Se(we(e))}`,`lucide-${e}`,n),...r}));return n.displayName=we(e),n},je=typeof document<`u`?S.useLayoutEffect:()=>{};function Me(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Ne,platform:Pe,maxTouchPoints:Fe}=Me(),O=Ne.toLowerCase(),k=Pe.toLowerCase(),A=/^i(os$|p)/.test(k)||k===`macintel`&&Fe>1,Ie=`android`,j=k===Ie||O.includes(Ie),Le=!A&&k.startsWith(`mac`);k.startsWith(`win`),!j&&/^(linux|chrome os)/.test(k);var Re=Le||A,ze=/jsdom|happydom/.test(O);function M(e){e.preventDefault(),e.stopPropagation()}function Be(e){return`nativeEvent`in e}function Ve(e){return e.pointerType===``&&e.isTrusted?!0:j&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function He(e){return ze?!1:!j&&e.width===0&&e.height===0||j&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Ue(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function We(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function N(){return typeof window<`u`}function P(e){return Ke(e)?(e.nodeName||``).toLowerCase():`#document`}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ge(e){return((Ke(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ke(e){return N()?e instanceof Node||e instanceof F(e).Node:!1}function qe(e){return N()?e instanceof Element||e instanceof F(e).Element:!1}function I(e){return N()?e instanceof HTMLElement||e instanceof F(e).HTMLElement:!1}function L(e){return!N()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}function Je(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ye(e){return/^(table|td|th)$/.test(P(e))}function Xe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ze=/transform|translate|scale|rotate|perspective|filter/,Qe=/paint|layout|strict|content/,R=e=>!!e&&e!==`none`,$e;function et(e){let t=qe(e)?z(e):e;return R(t.transform)||R(t.translate)||R(t.scale)||R(t.rotate)||R(t.perspective)||!nt()&&(R(t.backdropFilter)||R(t.filter))||Ze.test(t.willChange||``)||Qe.test(t.contain||``)}function tt(e){let t=B(e);for(;I(t)&&!rt(t);){if(et(t))return t;if(Xe(t))return null;t=B(t)}return null}function nt(){return $e??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),$e}function rt(e){return/^(html|body|#document)$/.test(P(e))}function z(e){return F(e).getComputedStyle(e)}function it(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if(P(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||L(e)&&e.host||Ge(e);return L(t)?t.host:t}function at(e){let t=B(e);return rt(t)?(e.ownerDocument||e).body:I(t)&&Je(t)?t:at(t)}function V(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=at(e),i=r===e.ownerDocument?.body,a=F(r);if(i){let e=ot(a);return t.concat(a,a.visualViewport||[],Je(r)?r:[],e&&n?V(e):[])}return t.concat(r,V(r,[],n))}function ot(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var st=`data-base-ui-focusable`,ct=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,lt=`ArrowLeft`,ut=`ArrowRight`,dt=`ArrowUp`,ft=`ArrowDown`;function pt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function mt(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&L(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ht(e){return`composedPath`in e?e.composedPath()[0]:e.target}var gt=`none`,_t=`trigger-press`,vt=`trigger-hover`,yt=`trigger-focus`,bt=`outside-press`,xt=`item-press`,St=`close-press`,Ct=`clear-press`,wt=`chip-remove-press`,Tt=`input-change`,Et=`input-clear`,Dt=`input-press`,Ot=`focus-out`,kt=`escape-key`,At=`list-navigation`,jt=`keyboard`,Mt=`pointer`,Nt=`cancel-open`,Pt=`sibling-open`,Ft=`disabled`,It=`imperative-action`,Lt=`window-resize`;function Rt(e,t,n,r){let i=!1,a=!1,o=r??D;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function zt(e,t,n){let r=n??D;return{reason:e,event:t??new Event(`base-ui`),...r}}var H={...S},U=H.useInsertionEffect,Bt=U&&U!==H.useLayoutEffect?U:e=>e();function Vt(e){let t=w(Ht).current;return t.next=e,Bt(t.effect),t.trampoline}function Ht(){let e={next:void 0,callback:Ut,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Ut(){}var Wt=Math.min,Gt=Math.max,Kt=Math.round,W=Math.floor,qt=e=>({x:e,y:e}),Jt={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Yt(e,t,n){return Gt(e,Wt(t,n))}function Xt(e,t){return typeof e==`function`?e(t):e}function G(e){return e.split(`-`)[0]}function K(e){return e.split(`-`)[1]}function Zt(e){return e===`x`?`y`:`x`}function Qt(e){return e===`y`?`height`:`width`}function $t(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function en(e){return Zt($t(e))}function tn(e,t,n){n===void 0&&(n=!1);let r=K(e),i=en(e),a=Qt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=J(o)),[o,J(o)]}function nn(e){let t=J(e);return[q(e),t,q(t)]}function q(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var rn=[`left`,`right`],an=[`right`,`left`],on=[`top`,`bottom`],sn=[`bottom`,`top`];function cn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?an:rn:t?rn:an;case`left`:case`right`:return t?on:sn;default:return[]}}function ln(e,t,n,r){let i=K(e),a=cn(G(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(q)))),a}function J(e){let t=G(e);return Jt[t]+e.slice(t.length)}function un(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function dn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:un(e)}function fn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Y(e,t,n){return Math.floor(e/t)!==n}function pn(e,t){return t<0||t>=e.length}function mn(e,t){return X(e.current,{disabledIndices:t})}function hn(e,t){return X(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function X(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Z(e,a,r));return a}function gn(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Z(e,n,s))return n}}},ee=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=W(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Z(e,r,s))return r}};d&&M(t);let x=b(p)??ee(p);if(x!==void 0)f=x;else if(u===-1)f=p===`up`?l:c;else if(f=X(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=X(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}pn(e,f)&&(f=u)}if(n===`both`){let n=W(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&M(t),u%o===o-1?r&&(f=X(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=X(e,{startingIndex:u,disabledIndices:s}),r&&Y(f,o,n)&&(f=X(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Y(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&M(t),u%o===0?r&&(f=X(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=X(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Y(f,o,n)&&(f=X(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Y(f,o,n)&&(f=u));let c=W(l/o)===n;pn(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:X(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Z(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!vn(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function _n(e){return e.visibility===`hidden`||e.visibility===`collapse`}function vn(e,t=e?z(e):null){return!e||!e.isConnected||!t||_n(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var yn=0;function bn(e,t=`mui`){let[n,r]=S.useState(e),i=e||n;return S.useEffect(()=>{n??(yn+=1,r(`${t}-${yn}`))},[n,t]),i}var xn=H.useId;function Sn(e,t){if(xn!==void 0){let n=xn();return e??(t?`${t}-${n}`:n)}return bn(e,t)}function Cn(e){return Sn(e,`base-ui`)}var wn=S.createContext(void 0);function Tn(){return S.useContext(wn)?.direction??`ltr`}var En=S.createContext(void 0);function Dn(e=!1){let t=S.useContext(En);if(t===void 0&&!e)throw Error(C(16));return t}function On(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:S.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Q(e,t,{detail:n=0}={}){e.dispatchEvent(new(F(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function kn(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=S.useRef(null),s=Dn(!0),c=a??s!==void 0,{props:u}=On({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),d=S.useCallback(()=>{let e=o.current;An(e)&&c&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,c]);return je(d,[d]),{getButtonProps:S.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...d}=e;return l({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(b(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=An(r),s=!i&&jn(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Q(r,e));return}if(!l||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Q(r,e)))},onKeyUp(e){if(!t){if(b(e),a?.(e),e.target===e.currentTarget&&i&&c&&An(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),Q(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},u,d)},[t,u,c,i]),buttonRef:Vt(e=>{o.current=e,d()})}}function An(e){return I(e)&&e.tagName===`BUTTON`}function jn(e){return I(e)&&e.tagName===`A`&&!!e.href}function Mn({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=S.useRef(e!==void 0),[a,o]=S.useState(t);return[i?e:a,S.useCallback(e=>{i||o(e)},[])]}var Nn=`ArrowUp`,Pn=`ArrowDown`,Fn=`ArrowLeft`,In=`ArrowRight`,Ln=`Home`,Rn=new Set([Nn,Pn,Fn,In,Ln,`End`]),zn=[`Shift`,`Control`,`Alt`,`Meta`];function Bn(e){return I(e)&&e.tagName===`INPUT`}function Vn(e){return!!(Bn(e)&&e.selectionStart!=null||I(e)&&e.tagName===`TEXTAREA`)}function Hn(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Un(e,t,`left`),a=$(e),o=$(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Un(e,t,`top`),r=$(e),i=$(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Un(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function $(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Wn=S.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Gn(){return S.useContext(Wn)}function Kn(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Gn(),u=S.useRef(-1),[d,f]=S.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=S.useRef(null),h=S.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return je(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var qn=S.createContext(void 0);function Jn(e){let t=S.useContext(qn);if(t===void 0&&!e)throw Error(C(69));return t}function Yn(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=Dn(),{ref:i,index:a}=Kn(e),o=n===a,s=S.useRef(null),c=T(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Xn(e){let{render:t,className:n,style:r,state:i=D,props:a=E,refs:o=E,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Yn({metadata:s});return he(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}export{Ct as $,ze as $t,qt as A,Ge as At,J as B,rt as Bt,gn as C,lt as Ct,pn as D,ct as Dt,vn as E,st as Et,tn as F,B as Ft,Wt as G,Xe as Gt,G as H,Je as Ht,Qt as I,F as It,Vt as J,Ue as Jt,fn as K,nt as Kt,nn as L,et as Lt,W as M,P as Mt,K as N,it as Nt,Z as O,z as Ot,en as P,V as Pt,wt as Q,M as Qt,Zt as R,qe as Rt,X as S,ft as St,mn as T,dt as Tt,$t as U,L as Ut,dn as V,Ke as Vt,Gt as W,Ye as Wt,zt as X,Ve as Xt,Rt as Y,Be as Yt,Nt as Z,He as Zt,En as _,o as _n,_t,Pn as a,je as an,Tt as at,Cn as b,mt as bt,Nn as c,me as cn,xt as ct,zn as d,de as dn,gt as dt,j as en,St as et,Vn as f,le as fn,bt as ft,Q as g,l as gn,vt as gt,kn as h,C as hn,yt as ht,Wn as i,O as in,It as it,Xt as j,ot as jt,Yt as k,tt as kt,Rn as l,E as ln,jt as lt,Mn as m,w as mn,Pt as mt,Jn as n,A as nn,kt as nt,Fn as o,Ae as on,Et as ot,Hn as p,T as pn,Mt as pt,Kt as q,We as qt,Kn as r,Le as rn,Ot as rt,In as s,he as sn,Dt as st,Xn as t,Re as tn,Ft as tt,Ln as u,D as un,At as ut,Dn as v,i as vn,Lt as vt,hn as w,ut as wt,Sn as x,ht as xt,Tn as y,pt as yt,ln as z,I as zt};
|
|
2
|
-
//# sourceMappingURL=CompositeItem-BxPZ_9BJ.js.map
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Ha as t,Mi as n,Ua as r,Wa as i}from"./Stream-mUTFnSY9.js";import{Gr as a,Lr as o,Ls as s,Nn as c,Qn as l,Tn as u,Vn as d,Wn as f,Yo as p,c as m,d as h,fi as g,fn as _,kn as v,m as y,mi as b,ns as x,o as S,qn as C,qt as w,s as T,t as E,ts as D,u as O,zn as k}from"./WorkerPoolContext-DE6P0yOd.js";import{a as A,c as j,i as M,l as N,n as P,o as F,r as I,s as L,t as R,u as z}from"./Virtualizer-C5HhtAFY.js";import{H as B,Hn as ee,Wn as te,j as V}from"./cmmdForgeRuntimeListResource-DokzffFK.js";import{On as H,at as U,ot as W}from"./src-CFUzoLms.js";import"./cmmdAuthRedirect-BUp02n05.js";import{t as G}from"./utils-BQ72yH0H.js";import{a as K,c as ne,d as re,h as ie,i as ae,l as oe,m as se,n as ce,o as q,p as le,r as ue,s as de,t as fe,u as pe}from"./DiffPanel.logic-CaiJLSzy.js";import{n as me,t as J}from"./toggle-group-DB8Zelac.js";var Y=e(i(),1),he=typeof window>`u`?Y.useEffect:Y.useLayoutEffect;function ge({fileDiff:e,options:t,editorOptions:n,lineAnnotations:r,selectedLines:i,prerenderedHTML:a,metrics:o,hasGutterRenderUtility:s,hasCustomHeader:c,disableWorkerPool:l,edit:u}){let d=P(),f=i!==void 0,p=(0,Y.useContext)(E),h=T(),g=(0,Y.useRef)(null),_=m(n=>{if(n!=null){if(g.current!=null)throw Error(`useFileDiffInstance: An instance should not already exist when a node is created`);d==null?g.current=new re(X({controlledSelection:f,hasCustomHeader:c,hasGutterRenderUtility:s,options:t}),l?void 0:p,!0):g.current=new pe(X({controlledSelection:f,hasCustomHeader:c,hasGutterRenderUtility:s,options:t}),d,o,l?void 0:p,!0),g.current.hydrate({fileDiff:e,fileContainer:n,lineAnnotations:r,prerenderedHTML:a})}else{if(g.current==null)throw Error(`useFileDiffInstance: A FileDiff instance should exist when unmounting`);g.current.cleanUp(),g.current=null}});return he(()=>{let{current:n}=g;if(n==null)return;let a=X({controlledSelection:f,hasCustomHeader:c,hasGutterRenderUtility:s,options:t}),o=a!==void 0&&!w(n.options,a);n.setOptions(a),n.render({forceRender:o,fileDiff:e,lineAnnotations:r}),i!==void 0&&n.setSelectedLines(i)}),he(()=>{if(u&&g.current!=null){if(h===void 0)throw Error(`FileDiff: EditContext is not attached`);let e=h(n??{});if(e==null)throw Error(`FileDiff: EditProvider.createEditor must return an editor instance`);try{return e.edit(g.current)}catch(t){throw e.cleanUp(),t}}},[u]),{ref:_,getHoveredLine:(0,Y.useCallback)(()=>g.current?.getHoveredLine(),[])}}function X({options:e,controlledSelection:t,hasCustomHeader:n,hasGutterRenderUtility:r}){return t||r||n?{...e,controlledSelection:t,renderCustomHeader:n?S:e?.renderCustomHeader,renderGutterUtility:r?S:e?.renderGutterUtility}:e}var Z=r();function _e({fileDiff:e,options:t,editorOptions:n,metrics:r,lineAnnotations:i,selectedLines:a,className:o,style:s,prerenderedHTML:c,renderAnnotation:l,renderCustomHeader:u,renderHeaderPrefix:d,renderHeaderFilenameSuffix:f,renderHeaderMetadata:p,renderGutterUtility:m,disableWorkerPool:h=!1,edit:g=!1}){let{ref:v,getHoveredLine:y}=ge({fileDiff:e,options:t,editorOptions:n,metrics:r,lineAnnotations:i,selectedLines:a,prerenderedHTML:c,hasGutterRenderUtility:m!=null,hasCustomHeader:u!=null,disableWorkerPool:h,edit:g});return(0,Z.jsx)(_,{ref:v,className:o,style:s,children:I(oe({fileDiff:e,renderCustomHeader:u,renderHeaderPrefix:d,renderHeaderFilenameSuffix:f,renderHeaderMetadata:p,renderAnnotation:l,renderGutterUtility:m,lineAnnotations:i,getHoveredLine:y}),c)})}var Q=t();function ve(e){return e.fromTurnCount===0?H(U)({threadId:e.threadId,toTurnCount:e.toTurnCount}).pipe(n(e=>({kind:`fullThreadDiff`,input:e}))):H(W)({threadId:e.threadId,fromTurnCount:e.fromTurnCount,toTurnCount:e.toTurnCount}).pipe(n(e=>({kind:`turnDiff`,input:e})))}function ye(e){return e instanceof Error?e.message:typeof e==`string`?e:``}function be(e){let t=ye(e).trim();if(t.length===0)return`Failed to load checkpoint diff.`;let n=t.toLowerCase();if(n.includes(`not a git repository`))return`Turn diffs are unavailable because this project is not a git repository.`;if(n.includes(`checkpoint unavailable for thread`)||n.includes(`checkpoint invariant violation`)){let e=t.indexOf(`:`);if(e>=0){let n=t.slice(e+1).trim();if(n.length>0)return n}}return t}function xe(e){let t=ye(e).toLowerCase();return t.includes(`exceeds current turn count`)||t.includes(`checkpoint is unavailable for turn`)||t.includes(`filesystem checkpoint is unavailable`)}function Se(e){let t=ve(e);return D({queryKey:p.checkpointDiff(e),queryFn:async({signal:n})=>{if(!e.environmentId||!e.threadId||t._tag===`None`)throw Error(`Checkpoint diff is unavailable.`);let r=l(e.environmentId);try{return t.value.kind===`fullThreadDiff`?await r.orchestration.getFullThreadDiff(t.value.input,{signal:n}):await r.orchestration.getTurnDiff(t.value.input,{signal:n})}catch(e){throw Error(be(e),{cause:e})}},enabled:(e.enabled??!0)&&!!e.environmentId&&!!e.threadId&&t._tag===`Some`,staleTime:1/0,retry:(e,t)=>xe(t)?e<12:e<3,retryDelay:(e,t)=>xe(t)?Math.min(5e3,250*2**(e-1)):Math.min(1e3,100*2**(e-1))})}function Ce(e){if(!(!e.canScrollLeft&&!e.canScrollRight))return{maskImage:`linear-gradient(to right, ${e.canScrollLeft?`transparent 24px, black 72px`:`black`}, ${e.canScrollRight?`black calc(100% - 72px), transparent calc(100% - 24px)`:`black`})`}}function we(e){return e instanceof Error?e.message:e?`Failed to load checkpoint diff.`:null}function Te(e){return{environmentId:e.environmentId??null,threadId:e.threadId,fromTurnCount:e.range?.fromTurnCount??null,toTurnCount:e.range?.toTurnCount??null,cacheScope:e.selectedTurnId?`turn:${e.selectedTurnId}`:e.conversationCacheScope,enabled:e.enabled}}function Ee(){let e=(0,Q.c)(8),t=(0,Y.useRef)(null),[n,r]=(0,Y.useState)(!1),[i,a]=(0,Y.useState)(!1),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{let e=t.current;if(!e){r(!1),a(!1);return}let n=de({scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth});r(n.canScrollLeft),a(n.canScrollRight)},e[0]=o):o=e[0];let s=o,c;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>{t.current?.scrollBy({left:e,behavior:`smooth`})},e[1]=c):c=e[1];let l=c,u;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=e=>{let n=t.current;n&&ne({scrollWidth:n.scrollWidth,clientWidth:n.clientWidth,deltaX:e.deltaX,deltaY:e.deltaY})&&(e.preventDefault(),n.scrollBy({left:e.deltaY,behavior:`auto`}))},e[2]=u):u=e[2];let d=u,f,p;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=t.current;if(!e)return;let n=window.requestAnimationFrame(s),r=()=>s();e.addEventListener(`scroll`,r,{passive:!0});let i=new ResizeObserver(()=>s());return i.observe(e),()=>{window.cancelAnimationFrame(n),e.removeEventListener(`scroll`,r),i.disconnect()}},p=[s],e[3]=f,e[4]=p):(f=e[3],p=e[4]),(0,Y.useEffect)(f,p);let m;return e[5]!==n||e[6]!==i?(m={ref:t,canScrollLeft:n,canScrollRight:i,scrollBy:l,onWheel:d,remeasure:s},e[5]=n,e[6]=i,e[7]=m):m=e[7],m}function De(e,t){let n=(0,Q.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{(e.current?.querySelector(`[data-turn-chip-selected='true']`))?.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`smooth`})},n[0]=e.current,n[1]=r);let i;n[2]!==e||n[3]!==t?(i=[e,t],n[2]=e,n[3]=t,n[4]=i):i=n[4],(0,Y.useEffect)(r,i)}var Oe=`
|
|
2
|
-
[data-diffs-header],
|
|
3
|
-
[data-diff],
|
|
4
|
-
[data-file],
|
|
5
|
-
[data-error-wrapper],
|
|
6
|
-
[data-virtualizer-buffer] {
|
|
7
|
-
--diffs-bg: color-mix(in srgb, var(--card) 90%, var(--background)) !important;
|
|
8
|
-
--diffs-light-bg: color-mix(in srgb, var(--card) 90%, var(--background)) !important;
|
|
9
|
-
--diffs-dark-bg: color-mix(in srgb, var(--card) 90%, var(--background)) !important;
|
|
10
|
-
--diffs-token-light-bg: transparent;
|
|
11
|
-
--diffs-token-dark-bg: transparent;
|
|
12
|
-
|
|
13
|
-
--diffs-bg-context-override: color-mix(in srgb, var(--background) 97%, var(--foreground));
|
|
14
|
-
--diffs-bg-hover-override: color-mix(in srgb, var(--background) 94%, var(--foreground));
|
|
15
|
-
--diffs-bg-separator-override: color-mix(in srgb, var(--background) 95%, var(--foreground));
|
|
16
|
-
--diffs-bg-buffer-override: color-mix(in srgb, var(--background) 90%, var(--foreground));
|
|
17
|
-
|
|
18
|
-
--diffs-bg-addition-override: color-mix(in srgb, var(--background) 92%, var(--success));
|
|
19
|
-
--diffs-bg-addition-number-override: color-mix(in srgb, var(--background) 88%, var(--success));
|
|
20
|
-
--diffs-bg-addition-hover-override: color-mix(in srgb, var(--background) 85%, var(--success));
|
|
21
|
-
--diffs-bg-addition-emphasis-override: color-mix(in srgb, var(--background) 80%, var(--success));
|
|
22
|
-
|
|
23
|
-
--diffs-bg-deletion-override: color-mix(in srgb, var(--background) 92%, var(--destructive));
|
|
24
|
-
--diffs-bg-deletion-number-override: color-mix(in srgb, var(--background) 88%, var(--destructive));
|
|
25
|
-
--diffs-bg-deletion-hover-override: color-mix(in srgb, var(--background) 85%, var(--destructive));
|
|
26
|
-
--diffs-bg-deletion-emphasis-override: color-mix(
|
|
27
|
-
in srgb,
|
|
28
|
-
var(--background) 80%,
|
|
29
|
-
var(--destructive)
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
background-color: var(--diffs-bg) !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[data-file-info] {
|
|
36
|
-
background-color: color-mix(in srgb, var(--card) 94%, var(--foreground)) !important;
|
|
37
|
-
border-block-color: var(--border) !important;
|
|
38
|
-
color: var(--foreground) !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
[data-diffs-header] {
|
|
42
|
-
position: sticky !important;
|
|
43
|
-
top: 0;
|
|
44
|
-
z-index: 4;
|
|
45
|
-
background-color: color-mix(in srgb, var(--card) 94%, var(--foreground)) !important;
|
|
46
|
-
border-bottom: 1px solid var(--border) !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
[data-title] {
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
transition:
|
|
52
|
-
color 120ms ease,
|
|
53
|
-
text-decoration-color 120ms ease;
|
|
54
|
-
text-decoration: underline;
|
|
55
|
-
text-decoration-color: transparent;
|
|
56
|
-
text-underline-offset: 2px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[data-title]:hover {
|
|
60
|
-
color: color-mix(in srgb, var(--foreground) 84%, var(--primary)) !important;
|
|
61
|
-
text-decoration-color: currentColor;
|
|
62
|
-
}
|
|
63
|
-
`;function ke(e){let t=(0,Q.c)(44),{mode:n}=e,r=n===void 0?`inline`:n,{resolvedTheme:i}=c(),o=a(),[s,l]=(0,Y.useState)(`stacked`),[d,f]=(0,Y.useState)(o.diffWordWrap),p=(0,Y.useRef)(null),m=(0,Y.useRef)(!1),g=Ee(),{activeCwd:_,activeThread:y,bodyState:b,diffOpen:x,inferredCheckpointTurnCountByTurnId:S,orderedTurnDiffSummaries:w,renderableFiles:T,renderablePatch:E,selectedFilePath:D,selectedTurn:O,selectedTurnId:A}=Le(i),j,M;t[0]!==x||t[1]!==o.diffWordWrap?(j=()=>{x&&!m.current&&f(o.diffWordWrap),m.current=x},M=[x,o.diffWordWrap],t[0]=x,t[1]=o.diffWordWrap,t[2]=j,t[3]=M):(j=t[2],M=t[3]),(0,Y.useEffect)(j,M);let N;t[4]===D?N=t[5]:(N=()=>{!D||!p.current||Array.from(p.current.querySelectorAll(`[data-diff-file-path]`)).find(e=>e.dataset.diffFilePath===D)?.scrollIntoView({block:`nearest`})},t[4]=D,t[5]=N);let P;t[6]!==T||t[7]!==D?(P=[D,T],t[6]=T,t[7]=D,t[8]=P):P=t[8],(0,Y.useEffect)(N,P);let F;t[9]===_?F=t[10]:(F=e=>{let t=k();if(!t)return;let n=_?u(e,_):e;v(t,n).catch(Ae)},t[9]=_,t[10]=F);let I=F,L;t[11]===y?L=t[12]:(L=e=>{y&&C.getState().openDiff(te(ee(y.environmentId,y.id)),e)},t[11]=y,t[12]=L);let R=L,z;t[13]===y?z=t[14]:(z=()=>{y&&C.getState().openDiff(te(ee(y.environmentId,y.id)))},t[13]=y,t[14]=z);let B=z,V;t[15]===g.remeasure?V=t[16]:(V=()=>{let e=window.requestAnimationFrame(g.remeasure);return()=>window.cancelAnimationFrame(e)},t[15]=g.remeasure,t[16]=V);let H;t[17]!==w||t[18]!==A||t[19]!==g.remeasure?(H=[w,A,g.remeasure],t[17]=w,t[18]=A,t[19]=g.remeasure,t[20]=H):H=t[20],(0,Y.useEffect)(V,H),De(g.ref,O?.turnId??A);let U;t[21]!==s||t[22]!==d||t[23]!==S||t[24]!==w||t[25]!==R||t[26]!==B||t[27]!==O||t[28]!==A||t[29]!==o||t[30]!==g?(U=(0,Z.jsx)(je,{diffRenderMode:s,diffWordWrap:d,inferredCheckpointTurnCountByTurnId:S,orderedTurnDiffSummaries:w,selectTurn:R,selectWholeConversation:B,selectedTurn:O,selectedTurnId:A,setDiffRenderMode:l,setDiffWordWrap:f,settings:o,turnStrip:g}),t[21]=s,t[22]=d,t[23]=S,t[24]=w,t[25]=R,t[26]=B,t[27]=O,t[28]=A,t[29]=o,t[30]=g,t[31]=U):U=t[31];let W=U,G;t[32]!==b||t[33]!==s||t[34]!==d||t[35]!==I||t[36]!==T||t[37]!==E||t[38]!==i?(G=(0,Z.jsx)(Me,{bodyState:b,diffRenderMode:s,diffWordWrap:d,openDiffFileInEditor:I,patchViewportRef:p,renderableFiles:T,renderablePatch:E,resolvedTheme:i}),t[32]=b,t[33]=s,t[34]=d,t[35]=I,t[36]=T,t[37]=E,t[38]=i,t[39]=G):G=t[39];let K;return t[40]!==W||t[41]!==r||t[42]!==G?(K=(0,Z.jsx)(h,{mode:r,header:W,children:G}),t[40]=W,t[41]=r,t[42]=G,t[43]=K):K=t[43],K}function Ae(e){console.warn(`Failed to open diff file in editor.`,e)}function je(e){let t=(0,Q.c)(59),{diffRenderMode:n,diffWordWrap:r,inferredCheckpointTurnCountByTurnId:i,orderedTurnDiffSummaries:a,selectTurn:o,selectWholeConversation:s,selectedTurn:c,selectedTurnId:l,setDiffRenderMode:u,setDiffWordWrap:d,settings:f,turnStrip:p}=e,m,h;t[0]===p?(m=t[1],h=t[2]):(m=(0,Z.jsx)(Be,{direction:`left`,strip:p}),h=(0,Z.jsx)(Be,{direction:`right`,strip:p}),t[0]=p,t[1]=m,t[2]=h);let g=p.ref,_;t[3]!==p.canScrollLeft||t[4]!==p.canScrollRight?(_=Ce({canScrollLeft:p.canScrollLeft,canScrollRight:p.canScrollRight}),t[3]=p.canScrollLeft,t[4]=p.canScrollRight,t[5]=_):_=t[5];let v=p.onWheel,y=l===null,b=l===null?`border-border bg-accent text-accent-foreground`:`border-border/70 bg-background/70 text-muted-foreground/80 hover:border-border hover:text-foreground/80`,x;t[6]===b?x=t[7]:(x=G(`rounded-md border px-2 py-1 text-left transition-colors`,b),t[6]=b,t[7]=x);let S;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(`div`,{className:`text-[10px] leading-tight font-medium`,children:`All turns`}),t[8]=S):S=t[8];let C;t[9]===x?C=t[10]:(C=(0,Z.jsx)(`div`,{className:x,children:S}),t[9]=x,t[10]=C);let w;t[11]!==s||t[12]!==C||t[13]!==y?(w=(0,Z.jsx)(`button`,{type:`button`,className:`shrink-0 rounded-md`,onClick:s,"data-turn-chip-selected":y,children:C}),t[11]=s,t[12]=C,t[13]=y,t[14]=w):w=t[14];let T;if(t[15]!==i||t[16]!==a||t[17]!==o||t[18]!==c?.turnId||t[19]!==f){let e;t[21]!==i||t[22]!==o||t[23]!==c?.turnId||t[24]!==f?(e=e=>(0,Z.jsx)(Ve,{summary:e,selected:e.turnId===c?.turnId,turnCount:e.checkpointTurnCount??i[e.turnId],timestampFormat:f.timestampFormat,onSelect:o},e.turnId),t[21]=i,t[22]=o,t[23]=c?.turnId,t[24]=f,t[25]=e):e=t[25],T=a.map(e),t[15]=i,t[16]=a,t[17]=o,t[18]=c?.turnId,t[19]=f,t[20]=T}else T=t[20];let E;t[26]!==w||t[27]!==T||t[28]!==_||t[29]!==p.onWheel||t[30]!==p.ref?(E=(0,Z.jsxs)(`div`,{ref:g,className:`turn-chip-strip flex gap-1 overflow-x-auto px-8 py-0.5`,style:_,onWheel:v,children:[w,T]}),t[26]=w,t[27]=T,t[28]=_,t[29]=p.onWheel,t[30]=p.ref,t[31]=E):E=t[31];let D;t[32]!==m||t[33]!==E||t[34]!==h?(D=(0,Z.jsxs)(`div`,{className:`relative min-w-0 flex-1 [-webkit-app-region:no-drag]`,children:[m,h,E]}),t[32]=m,t[33]=E,t[34]=h,t[35]=D):D=t[35];let O;t[36]===n?O=t[37]:(O=[n],t[36]=n,t[37]=O);let k;t[38]===u?k=t[39]:(k=e=>{let t=e[0];(t===`stacked`||t===`split`)&&u(t)},t[38]=u,t[39]=k);let A;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Z.jsx)(J,{"aria-label":`Stacked diff view`,value:`stacked`,children:(0,Z.jsx)(se,{className:`size-3`})}),t[40]=A):A=t[40];let j;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Z.jsx)(J,{"aria-label":`Split diff view`,value:`split`,children:(0,Z.jsx)(ie,{className:`size-3`})}),t[41]=j):j=t[41];let M;t[42]!==O||t[43]!==k?(M=(0,Z.jsxs)(me,{className:`shrink-0`,variant:`outline`,size:`xs`,value:O,onValueChange:k,children:[A,j]}),t[42]=O,t[43]=k,t[44]=M):M=t[44];let N=r?`Disable diff line wrapping`:`Enable diff line wrapping`,P=r?`Disable line wrapping`:`Enable line wrapping`,F;t[45]===d?F=t[46]:(F=e=>{d(!!e)},t[45]=d,t[46]=F);let I;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Z.jsx)(le,{className:`size-3`}),t[47]=I):I=t[47];let L;t[48]!==r||t[49]!==N||t[50]!==P||t[51]!==F?(L=(0,Z.jsx)(J,{"aria-label":N,title:P,variant:`outline`,size:`xs`,pressed:r,onPressedChange:F,children:I}),t[48]=r,t[49]=N,t[50]=P,t[51]=F,t[52]=L):L=t[52];let R;t[53]!==M||t[54]!==L?(R=(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 [-webkit-app-region:no-drag]`,children:[M,L]}),t[53]=M,t[54]=L,t[55]=R):R=t[55];let z;return t[56]!==D||t[57]!==R?(z=(0,Z.jsxs)(Z.Fragment,{children:[D,R]}),t[56]=D,t[57]=R,t[58]=z):z=t[58],z}function Me(e){let t=(0,Q.c)(18),{bodyState:n,diffRenderMode:r,diffWordWrap:i,openDiffFileInEditor:a,patchViewportRef:o,renderableFiles:s,renderablePatch:c,resolvedTheme:l}=e;if(n.kind===`no-thread`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)($,{children:`Select a thread to inspect turn diffs.`}),t[0]=e):e=t[0],e}if(n.kind===`not-git-repo`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)($,{children:`Turn diffs are unavailable because this project is not a git repository.`}),t[1]=e):e=t[1],e}if(n.kind===`no-completed-turns`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)($,{children:`No completed turns yet.`}),t[2]=e):e=t[2],e}let u;t[3]!==n.error||t[4]!==c?(u=n.error&&!c&&(0,Z.jsx)(`div`,{className:`px-3`,children:(0,Z.jsx)(`p`,{className:`mb-2 text-[11px] text-destructive-foreground`,children:n.error})}),t[3]=n.error,t[4]=c,t[5]=u):u=t[5];let d;t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==a||t[10]!==s||t[11]!==c||t[12]!==l?(d=c?c.kind===`files`?(0,Z.jsx)(R,{className:`diff-render-surface h-full min-h-0 overflow-auto px-2 pb-2`,config:{overscrollSize:600,intersectionObserverMargin:1200},children:s.map(e=>{let t=q(e),n=`${fe(e)}:${l}`;return(0,Z.jsx)(`div`,{"data-diff-file-path":t,className:`diff-render-file mb-2 rounded-md first:mt-2 last:mb-0`,onClickCapture:e=>{(e.nativeEvent.composedPath?.()??[]).some(Ne)&&a(t)},children:(0,Z.jsx)(_e,{fileDiff:e,options:{diffStyle:r===`split`?`split`:`unified`,lineDiffType:`none`,overflow:i?`wrap`:`scroll`,theme:y(l),themeType:l,unsafeCSS:Oe}})},n)})}):(0,Z.jsx)(`div`,{className:`h-full overflow-auto p-2`,children:(0,Z.jsxs)(`div`,{className:`space-y-2`,children:[(0,Z.jsx)(`p`,{className:`text-[11px] text-muted-foreground/75`,children:c.reason}),(0,Z.jsx)(`pre`,{className:G(`max-h-[72vh] rounded-md border border-border/70 bg-background/70 p-3 font-mono text-[11px] leading-relaxed text-muted-foreground/90`,i?`overflow-auto whitespace-pre-wrap wrap-break-word`:`overflow-auto`),children:c.text})]})}):(0,Z.jsx)(Re,{bodyState:n}),t[6]=n,t[7]=r,t[8]=i,t[9]=a,t[10]=s,t[11]=c,t[12]=l,t[13]=d):d=t[13];let f;return t[14]!==o||t[15]!==u||t[16]!==d?(f=(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)(`div`,{ref:o,className:`diff-panel-viewport min-h-0 min-w-0 flex-1 overflow-hidden`,children:[u,d]})}),t[14]=o,t[15]=u,t[16]=d,t[17]=f):f=t[17],f}function Ne(e){return e instanceof Element&&e.hasAttribute(`data-title`)}function $(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-5 text-center text-xs text-muted-foreground/70`,children:n}),t[0]=n,t[1]=r),r}function Pe(){let e=(0,Q.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:Ie},e[0]=t):t=e[0];let n=s(t),r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r={strict:!1,select:Fe},e[1]=r):r=e[1];let i=z(r),a=i.rightPanel===`diff`,c=n?.threadId??null,l,u;e[2]===n?u=e[3]:(u=o(n),e[2]=n,e[3]=u),l=u;let f=B(l),p=He(f),m=f?.worktreePath,h=p?.cwd,g;e[4]!==m||e[5]!==h?(g=F({threadWorktreePath:m,projectCwd:h}),e[4]=m,e[5]=h,e[6]=g):g=e[6];let _=g,v=f?.environmentId??null,y=_??null,b;e[7]!==v||e[8]!==y?(b={environmentId:v,cwd:y},e[7]=v,e[8]=y,e[9]=b):b=e[9];let x=d(b),S;e[10]===x.data?S=e[11]:(S=L(x.data),e[10]=x.data,e[11]=S);let C=S,w;return e[12]!==_||e[13]!==f||e[14]!==c||e[15]!==a||e[16]!==i||e[17]!==C?(w={activeThread:f,activeThreadId:c,activeCwd:_,isGitRepo:C,diffSearch:i,diffOpen:a},e[12]=_,e[13]=f,e[14]=c,e[15]=a,e[16]=i,e[17]=C,e[18]=w):w=e[18],w}function Fe(e){return A(e)}function Ie(e){return g(e)}function Le(e){let{activeThread:t,activeThreadId:n,activeCwd:r,isGitRepo:i,diffSearch:a,diffOpen:o}=Pe(),{turnDiffSummaries:s,inferredCheckpointTurnCountByTurnId:c}=M(t),l=a.diffTurnId??null,u=l===null?null:a.diffFilePath??null,{activeCheckpointRange:d,conversationCacheScope:f,orderedTurnDiffSummaries:p,selectedTurn:m}=(0,Y.useMemo)(()=>K({summaries:s,inferredCheckpointTurnCountByTurnId:c,selectedTurnId:l}),[c,l,s]),h=x(Se(Te({environmentId:t?.environmentId,threadId:n,range:d,selectedTurnId:m?.turnId,conversationCacheScope:f,enabled:i}))),g=h.isLoading,_=we(h.error),v=h.data?.diff,y=typeof v==`string`&&v.trim().length===0,{emptyDiffMessage:b}=(0,Y.useMemo)(()=>ae(m),[m]),S=(0,Y.useMemo)(()=>ce(v,`diff-panel:${e}`),[e,v]),C=(0,Y.useMemo)(()=>Ue(S),[S]);return{activeCwd:r,activeThread:t,bodyState:ue({hasActiveThread:!!t,isGitRepo:i,turnSummaryCount:p.length,checkpointDiffError:_,hasRenderablePatch:!!S,isLoadingCheckpointDiff:g,hasNoNetChanges:y,emptyDiffMessage:b}),diffOpen:o,inferredCheckpointTurnCountByTurnId:c,orderedTurnDiffSummaries:p,renderableFiles:C,renderablePatch:S,selectedFilePath:u,selectedTurn:m,selectedTurnId:l}}function Re(e){let t=(0,Q.c)(4),{bodyState:n}=e;if(n.kind===`loading`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(O,{label:`Loading checkpoint diff...`}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsx)(j,{className:`size-7 text-muted-foreground/25`}),t[1]=r):r=t[1];let i=n.kind===`empty`?n.message:`No diff is available for this range.`,a;return t[2]===i?a=t[3]:(a=(0,Z.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-2 px-5 py-2 text-center`,children:[r,(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground/70`,children:i})]}),t[2]=i,t[3]=a),a}var ze=180;function Be(e){let t=(0,Q.c)(14),{direction:n,strip:r}=e,i=n===`left`,a=i?r.canScrollLeft:r.canScrollRight,o=i?N:b,s=i?`left-0`:`right-0`,c=a?`border-border/70 hover:border-border hover:text-foreground`:`cursor-not-allowed border-border/40 text-muted-foreground/40`,l;t[0]!==s||t[1]!==c?(l=G(`absolute top-1/2 z-20 inline-flex size-6 -translate-y-1/2 items-center justify-center rounded-md border bg-background/90 text-muted-foreground transition-colors`,s,c),t[0]=s,t[1]=c,t[2]=l):l=t[2];let u;t[3]!==i||t[4]!==r?(u=()=>r.scrollBy(i?-180:ze),t[3]=i,t[4]=r,t[5]=u):u=t[5];let d=!a,f=`Scroll turn list ${n}`,p;t[6]===o?p=t[7]:(p=(0,Z.jsx)(o,{className:`size-3.5`}),t[6]=o,t[7]=p);let m;return t[8]!==l||t[9]!==u||t[10]!==d||t[11]!==f||t[12]!==p?(m=(0,Z.jsx)(`button`,{type:`button`,className:l,onClick:u,disabled:d,"aria-label":f,children:p}),t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m):m=t[13],m}function Ve(e){let t=(0,Q.c)(23),{summary:n,selected:r,turnCount:i,timestampFormat:a,onSelect:o}=e,s;t[0]!==o||t[1]!==n.turnId?(s=()=>o(n.turnId),t[0]=o,t[1]=n.turnId,t[2]=s):s=t[2];let c=n.turnId,l=r?`border-border bg-accent text-accent-foreground`:`border-border/70 bg-background/70 text-muted-foreground/80 hover:border-border hover:text-foreground/80`,u;t[3]===l?u=t[4]:(u=G(`rounded-md border px-2 py-1 text-left transition-colors`,l),t[3]=l,t[4]=u);let d=i??`?`,p;t[5]===d?p=t[6]:(p=(0,Z.jsxs)(`span`,{className:`text-[10px] leading-tight font-medium`,children:[`Turn `,d]}),t[5]=d,t[6]=p);let m;t[7]!==n.completedAt||t[8]!==a?(m=f(n.completedAt,a),t[7]=n.completedAt,t[8]=a,t[9]=m):m=t[9];let h;t[10]===m?h=t[11]:(h=(0,Z.jsx)(`span`,{className:`text-[9px] leading-tight opacity-70`,children:m}),t[10]=m,t[11]=h);let g;t[12]!==p||t[13]!==h?(g=(0,Z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[p,h]}),t[12]=p,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==u||t[16]!==g?(_=(0,Z.jsx)(`div`,{className:u,children:g}),t[15]=u,t[16]=g,t[17]=_):_=t[17];let v;return t[18]!==r||t[19]!==n.turnId||t[20]!==s||t[21]!==_?(v=(0,Z.jsx)(`button`,{type:`button`,className:`shrink-0 rounded-md`,onClick:s,title:c,"data-turn-chip-selected":r,children:_}),t[18]=r,t[19]=n.turnId,t[20]=s,t[21]=_,t[22]=v):v=t[22],v}function He(e){let t=(0,Q.c)(3),n=e?.environmentId,r=e?.projectId,i;return t[0]!==n||t[1]!==r?(i=e=>n&&r?V(e,{environmentId:n,projectId:r}):void 0,t[0]=n,t[1]=r,t[2]=i):i=t[2],B(i)}function Ue(e){return!e||e.kind!==`files`?[]:e.files.toSorted((e,t)=>q(e).localeCompare(q(t),void 0,{numeric:!0,sensitivity:`base`}))}export{ke as default};
|
|
64
|
-
//# sourceMappingURL=DiffPanel-DW-4nhXm.js.map
|