diffhub 0.1.13 → 0.1.14
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/.next/standalone/apps/cli/.next/BUILD_ID +1 -1
- package/.next/standalone/apps/cli/.next/build-manifest.json +3 -3
- package/.next/standalone/apps/cli/.next/prerender-manifest.json +3 -3
- package/.next/standalone/apps/cli/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/index.html +1 -1
- package/.next/standalone/apps/cli/.next/server/app/index.rsc +3 -3
- package/.next/standalone/apps/cli/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/apps/cli/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/apps/cli/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/apps/cli/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/cli/.next/server/chunks/[root-of-the-server]__07xhws9._.js +2 -2
- package/.next/standalone/apps/cli/.next/server/chunks/ssr/_00rs0r_._.js +1 -1
- package/.next/standalone/apps/cli/.next/server/chunks/ssr/_07okxca._.js +3 -3
- package/.next/standalone/apps/cli/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/apps/cli/.next/server/pages/404.html +1 -1
- package/.next/standalone/apps/cli/.next/server/pages/500.html +1 -1
- package/.next/standalone/apps/cli/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/apps/cli/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/apps/cli/.next/static/chunks/0gz~d56inmm7r.css +3 -0
- package/.next/standalone/apps/cli/.next/static/chunks/{0hvdc64bp.llu.js → 12fiag_-67~os.js} +5 -5
- package/.next/standalone/apps/cli/package.json +1 -1
- package/package.json +1 -1
- package/.next/standalone/apps/cli/.next/static/chunks/1543nwffryq_j.css +0 -3
- /package/.next/standalone/apps/cli/.next/static/{VS-lTkFb6EEslQOmLE3fi → m8XYYfcJFa8f3kjQKIQgd}/_buildManifest.js +0 -0
- /package/.next/standalone/apps/cli/.next/static/{VS-lTkFb6EEslQOmLE3fi → m8XYYfcJFa8f3kjQKIQgd}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/apps/cli/.next/static/{VS-lTkFb6EEslQOmLE3fi → m8XYYfcJFa8f3kjQKIQgd}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[33421,a=>{"use strict";a.s(["Agentation",()=>c,"AnimatedBunny",()=>d,"AnnotationPopupCSS",()=>e,"IconChatEllipsis",()=>f,"IconCheck",()=>g,"IconCheckSmall",()=>h,"IconCheckSmallAnimated",()=>i,"IconCheckmark",()=>j,"IconCheckmarkCircle",()=>k,"IconCheckmarkLarge",()=>l,"IconChevronLeft",()=>m,"IconChevronRight",()=>n,"IconClose",()=>o,"IconCopyAlt",()=>p,"IconCopyAnimated",()=>q,"IconEdit",()=>r,"IconEye",()=>s,"IconEyeAlt",()=>t,"IconEyeAnimated",()=>u,"IconEyeClosed",()=>v,"IconEyeMinus",()=>w,"IconGear",()=>x,"IconHelp",()=>y,"IconLayout",()=>z,"IconListSparkle",()=>A,"IconMoon",()=>B,"IconPause",()=>C,"IconPauseAlt",()=>D,"IconPausePlayAnimated",()=>E,"IconPlayAlt",()=>F,"IconPlus",()=>G,"IconSendAnimated",()=>H,"IconSendArrow",()=>I,"IconSun",()=>J,"IconTrash",()=>K,"IconTrashAlt",()=>L,"IconXmark",()=>M,"IconXmarkLarge",()=>N,"PageFeedbackToolbarCSS",()=>O,"closestCrossingShadow",()=>P,"getElementClasses",()=>Q,"getElementPath",()=>R,"getNearbyText",()=>S,"getShadowHost",()=>T,"getStorageKey",()=>U,"identifyAnimationElement",()=>V,"identifyElement",()=>W,"isInShadowDOM",()=>X,"loadAnnotations",()=>Y,"saveAnnotations",()=>Z]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Agentation() from the server but Agentation is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","Agentation"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnimatedBunny() from the server but AnimatedBunny is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","AnimatedBunny"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnnotationPopupCSS() from the server but AnnotationPopupCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","AnnotationPopupCSS"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChatEllipsis() from the server but IconChatEllipsis is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconChatEllipsis"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheck() from the server but IconCheck is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheck"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmall() from the server but IconCheckSmall is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckSmall"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmallAnimated() from the server but IconCheckSmallAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckSmallAnimated"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmark() from the server but IconCheckmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckmark"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkCircle() from the server but IconCheckmarkCircle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckmarkCircle"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkLarge() from the server but IconCheckmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckmarkLarge"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronLeft() from the server but IconChevronLeft is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconChevronLeft"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronRight() from the server but IconChevronRight is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconChevronRight"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconClose() from the server but IconClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconClose"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAlt() from the server but IconCopyAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCopyAlt"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAnimated() from the server but IconCopyAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCopyAnimated"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEdit() from the server but IconEdit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEdit"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEye() from the server but IconEye is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEye"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAlt() from the server but IconEyeAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeAlt"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAnimated() from the server but IconEyeAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeAnimated"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeClosed() from the server but IconEyeClosed is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeClosed"),w=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeMinus() from the server but IconEyeMinus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeMinus"),x=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconGear() from the server but IconGear is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconGear"),y=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconHelp() from the server but IconHelp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconHelp"),z=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconLayout() from the server but IconLayout is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconLayout"),A=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconListSparkle() from the server but IconListSparkle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconListSparkle"),B=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconMoon() from the server but IconMoon is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconMoon"),C=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPause() from the server but IconPause is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPause"),D=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPauseAlt() from the server but IconPauseAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPauseAlt"),E=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPausePlayAnimated() from the server but IconPausePlayAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPausePlayAnimated"),F=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlayAlt() from the server but IconPlayAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPlayAlt"),G=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlus() from the server but IconPlus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPlus"),H=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendAnimated() from the server but IconSendAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconSendAnimated"),I=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendArrow() from the server but IconSendArrow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconSendArrow"),J=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSun() from the server but IconSun is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconSun"),K=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrash() from the server but IconTrash is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconTrash"),L=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrashAlt() from the server but IconTrashAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconTrashAlt"),M=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmark() from the server but IconXmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconXmark"),N=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmarkLarge() from the server but IconXmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconXmarkLarge"),O=(0,b.registerClientReference)(function(){throw Error("Attempted to call PageFeedbackToolbarCSS() from the server but PageFeedbackToolbarCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","PageFeedbackToolbarCSS"),P=(0,b.registerClientReference)(function(){throw Error("Attempted to call closestCrossingShadow() from the server but closestCrossingShadow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","closestCrossingShadow"),Q=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementClasses() from the server but getElementClasses is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getElementClasses"),R=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementPath() from the server but getElementPath is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getElementPath"),S=(0,b.registerClientReference)(function(){throw Error("Attempted to call getNearbyText() from the server but getNearbyText is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getNearbyText"),T=(0,b.registerClientReference)(function(){throw Error("Attempted to call getShadowHost() from the server but getShadowHost is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getShadowHost"),U=(0,b.registerClientReference)(function(){throw Error("Attempted to call getStorageKey() from the server but getStorageKey is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getStorageKey"),V=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyAnimationElement() from the server but identifyAnimationElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","identifyAnimationElement"),W=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyElement() from the server but identifyElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","identifyElement"),X=(0,b.registerClientReference)(function(){throw Error("Attempted to call isInShadowDOM() from the server but isInShadowDOM is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","isInShadowDOM"),Y=(0,b.registerClientReference)(function(){throw Error("Attempted to call loadAnnotations() from the server but loadAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","loadAnnotations"),Z=(0,b.registerClientReference)(function(){throw Error("Attempted to call saveAnnotations() from the server but saveAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","saveAnnotations")},76494,a=>{"use strict";a.s(["Agentation",()=>c,"AnimatedBunny",()=>d,"AnnotationPopupCSS",()=>e,"IconChatEllipsis",()=>f,"IconCheck",()=>g,"IconCheckSmall",()=>h,"IconCheckSmallAnimated",()=>i,"IconCheckmark",()=>j,"IconCheckmarkCircle",()=>k,"IconCheckmarkLarge",()=>l,"IconChevronLeft",()=>m,"IconChevronRight",()=>n,"IconClose",()=>o,"IconCopyAlt",()=>p,"IconCopyAnimated",()=>q,"IconEdit",()=>r,"IconEye",()=>s,"IconEyeAlt",()=>t,"IconEyeAnimated",()=>u,"IconEyeClosed",()=>v,"IconEyeMinus",()=>w,"IconGear",()=>x,"IconHelp",()=>y,"IconLayout",()=>z,"IconListSparkle",()=>A,"IconMoon",()=>B,"IconPause",()=>C,"IconPauseAlt",()=>D,"IconPausePlayAnimated",()=>E,"IconPlayAlt",()=>F,"IconPlus",()=>G,"IconSendAnimated",()=>H,"IconSendArrow",()=>I,"IconSun",()=>J,"IconTrash",()=>K,"IconTrashAlt",()=>L,"IconXmark",()=>M,"IconXmarkLarge",()=>N,"PageFeedbackToolbarCSS",()=>O,"closestCrossingShadow",()=>P,"getElementClasses",()=>Q,"getElementPath",()=>R,"getNearbyText",()=>S,"getShadowHost",()=>T,"getStorageKey",()=>U,"identifyAnimationElement",()=>V,"identifyElement",()=>W,"isInShadowDOM",()=>X,"loadAnnotations",()=>Y,"saveAnnotations",()=>Z]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Agentation() from the server but Agentation is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","Agentation"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnimatedBunny() from the server but AnimatedBunny is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","AnimatedBunny"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnnotationPopupCSS() from the server but AnnotationPopupCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","AnnotationPopupCSS"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChatEllipsis() from the server but IconChatEllipsis is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconChatEllipsis"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheck() from the server but IconCheck is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheck"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmall() from the server but IconCheckSmall is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckSmall"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmallAnimated() from the server but IconCheckSmallAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckSmallAnimated"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmark() from the server but IconCheckmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckmark"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkCircle() from the server but IconCheckmarkCircle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckmarkCircle"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkLarge() from the server but IconCheckmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckmarkLarge"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronLeft() from the server but IconChevronLeft is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconChevronLeft"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronRight() from the server but IconChevronRight is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconChevronRight"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconClose() from the server but IconClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconClose"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAlt() from the server but IconCopyAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCopyAlt"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAnimated() from the server but IconCopyAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCopyAnimated"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEdit() from the server but IconEdit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEdit"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEye() from the server but IconEye is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEye"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAlt() from the server but IconEyeAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeAlt"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAnimated() from the server but IconEyeAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeAnimated"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeClosed() from the server but IconEyeClosed is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeClosed"),w=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeMinus() from the server but IconEyeMinus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeMinus"),x=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconGear() from the server but IconGear is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconGear"),y=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconHelp() from the server but IconHelp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconHelp"),z=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconLayout() from the server but IconLayout is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconLayout"),A=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconListSparkle() from the server but IconListSparkle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconListSparkle"),B=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconMoon() from the server but IconMoon is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconMoon"),C=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPause() from the server but IconPause is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPause"),D=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPauseAlt() from the server but IconPauseAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPauseAlt"),E=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPausePlayAnimated() from the server but IconPausePlayAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPausePlayAnimated"),F=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlayAlt() from the server but IconPlayAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPlayAlt"),G=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlus() from the server but IconPlus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPlus"),H=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendAnimated() from the server but IconSendAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconSendAnimated"),I=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendArrow() from the server but IconSendArrow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconSendArrow"),J=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSun() from the server but IconSun is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconSun"),K=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrash() from the server but IconTrash is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconTrash"),L=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrashAlt() from the server but IconTrashAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconTrashAlt"),M=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmark() from the server but IconXmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconXmark"),N=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmarkLarge() from the server but IconXmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconXmarkLarge"),O=(0,b.registerClientReference)(function(){throw Error("Attempted to call PageFeedbackToolbarCSS() from the server but PageFeedbackToolbarCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","PageFeedbackToolbarCSS"),P=(0,b.registerClientReference)(function(){throw Error("Attempted to call closestCrossingShadow() from the server but closestCrossingShadow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","closestCrossingShadow"),Q=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementClasses() from the server but getElementClasses is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getElementClasses"),R=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementPath() from the server but getElementPath is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getElementPath"),S=(0,b.registerClientReference)(function(){throw Error("Attempted to call getNearbyText() from the server but getNearbyText is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getNearbyText"),T=(0,b.registerClientReference)(function(){throw Error("Attempted to call getShadowHost() from the server but getShadowHost is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getShadowHost"),U=(0,b.registerClientReference)(function(){throw Error("Attempted to call getStorageKey() from the server but getStorageKey is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getStorageKey"),V=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyAnimationElement() from the server but identifyAnimationElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","identifyAnimationElement"),W=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyElement() from the server but identifyElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","identifyElement"),X=(0,b.registerClientReference)(function(){throw Error("Attempted to call isInShadowDOM() from the server but isInShadowDOM is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","isInShadowDOM"),Y=(0,b.registerClientReference)(function(){throw Error("Attempted to call loadAnnotations() from the server but loadAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","loadAnnotations"),Z=(0,b.registerClientReference)(function(){throw Error("Attempted to call saveAnnotations() from the server but saveAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","saveAnnotations")},86255,a=>{"use strict";a.i(33421);var b=a.i(76494);a.n(b)},41479,a=>{a.v({className:"glide_d2f847e3-module__jCZlzq__className",variable:"glide_d2f847e3-module__jCZlzq__variable"})},87051,a=>{a.v({className:"operatormono_ed74845e-module__g9tX8G__className",variable:"operatormono_ed74845e-module__g9tX8G__variable"})},60588,a=>{"use strict";a.s(["DiffsWorkerProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call DiffsWorkerProvider() from the server but DiffsWorkerProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/DiffsWorkerProvider.tsx <module evaluation>","DiffsWorkerProvider")},33734,a=>{"use strict";a.s(["DiffsWorkerProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call DiffsWorkerProvider() from the server but DiffsWorkerProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/DiffsWorkerProvider.tsx","DiffsWorkerProvider")},74543,a=>{"use strict";a.i(60588);var b=a.i(33734);a.n(b)},64181,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/theme-provider.tsx <module evaluation>","ThemeProvider")},58655,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/theme-provider.tsx","ThemeProvider")},31892,a=>{"use strict";a.i(64181);var b=a.i(58655);a.n(b)},80176,a=>{"use strict";var b=a.i(7997);a.i(86255);var c=a.i(41479);let d={className:c.default.className,style:{fontFamily:"'glide', 'glide Fallback'"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(87051);let f={className:e.default.className,style:{fontFamily:"'operatorMono', 'operatorMono Fallback'"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(74543),h=a.i(31892);a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",className:`${d.variable} ${f.variable} h-full`,suppressHydrationWarning:!0,children:(0,b.jsx)("body",{className:"h-full overflow-hidden bg-background antialiased",children:(0,b.jsxs)(h.ThemeProvider,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:[(0,b.jsx)(g.DiffsWorkerProvider,{children:a}),!1]})})})},"metadata",0,{description:"GitHub PR-style local diff viewer",title:"DiffHub"}],80176)},62191,a=>{a.n(a.i(80176))}];
|
|
1
|
+
module.exports=[33421,a=>{"use strict";a.s(["Agentation",()=>c,"AnimatedBunny",()=>d,"AnnotationPopupCSS",()=>e,"IconChatEllipsis",()=>f,"IconCheck",()=>g,"IconCheckSmall",()=>h,"IconCheckSmallAnimated",()=>i,"IconCheckmark",()=>j,"IconCheckmarkCircle",()=>k,"IconCheckmarkLarge",()=>l,"IconChevronLeft",()=>m,"IconChevronRight",()=>n,"IconClose",()=>o,"IconCopyAlt",()=>p,"IconCopyAnimated",()=>q,"IconEdit",()=>r,"IconEye",()=>s,"IconEyeAlt",()=>t,"IconEyeAnimated",()=>u,"IconEyeClosed",()=>v,"IconEyeMinus",()=>w,"IconGear",()=>x,"IconHelp",()=>y,"IconLayout",()=>z,"IconListSparkle",()=>A,"IconMoon",()=>B,"IconPause",()=>C,"IconPauseAlt",()=>D,"IconPausePlayAnimated",()=>E,"IconPlayAlt",()=>F,"IconPlus",()=>G,"IconSendAnimated",()=>H,"IconSendArrow",()=>I,"IconSun",()=>J,"IconTrash",()=>K,"IconTrashAlt",()=>L,"IconXmark",()=>M,"IconXmarkLarge",()=>N,"PageFeedbackToolbarCSS",()=>O,"closestCrossingShadow",()=>P,"getElementClasses",()=>Q,"getElementPath",()=>R,"getNearbyText",()=>S,"getShadowHost",()=>T,"getStorageKey",()=>U,"identifyAnimationElement",()=>V,"identifyElement",()=>W,"isInShadowDOM",()=>X,"loadAnnotations",()=>Y,"saveAnnotations",()=>Z]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Agentation() from the server but Agentation is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","Agentation"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnimatedBunny() from the server but AnimatedBunny is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","AnimatedBunny"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnnotationPopupCSS() from the server but AnnotationPopupCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","AnnotationPopupCSS"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChatEllipsis() from the server but IconChatEllipsis is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconChatEllipsis"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheck() from the server but IconCheck is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheck"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmall() from the server but IconCheckSmall is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckSmall"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmallAnimated() from the server but IconCheckSmallAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckSmallAnimated"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmark() from the server but IconCheckmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckmark"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkCircle() from the server but IconCheckmarkCircle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckmarkCircle"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkLarge() from the server but IconCheckmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCheckmarkLarge"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronLeft() from the server but IconChevronLeft is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconChevronLeft"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronRight() from the server but IconChevronRight is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconChevronRight"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconClose() from the server but IconClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconClose"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAlt() from the server but IconCopyAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCopyAlt"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAnimated() from the server but IconCopyAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconCopyAnimated"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEdit() from the server but IconEdit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEdit"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEye() from the server but IconEye is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEye"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAlt() from the server but IconEyeAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeAlt"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAnimated() from the server but IconEyeAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeAnimated"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeClosed() from the server but IconEyeClosed is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeClosed"),w=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeMinus() from the server but IconEyeMinus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconEyeMinus"),x=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconGear() from the server but IconGear is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconGear"),y=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconHelp() from the server but IconHelp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconHelp"),z=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconLayout() from the server but IconLayout is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconLayout"),A=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconListSparkle() from the server but IconListSparkle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconListSparkle"),B=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconMoon() from the server but IconMoon is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconMoon"),C=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPause() from the server but IconPause is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPause"),D=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPauseAlt() from the server but IconPauseAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPauseAlt"),E=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPausePlayAnimated() from the server but IconPausePlayAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPausePlayAnimated"),F=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlayAlt() from the server but IconPlayAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPlayAlt"),G=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlus() from the server but IconPlus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconPlus"),H=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendAnimated() from the server but IconSendAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconSendAnimated"),I=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendArrow() from the server but IconSendArrow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconSendArrow"),J=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSun() from the server but IconSun is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconSun"),K=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrash() from the server but IconTrash is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconTrash"),L=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrashAlt() from the server but IconTrashAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconTrashAlt"),M=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmark() from the server but IconXmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconXmark"),N=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmarkLarge() from the server but IconXmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","IconXmarkLarge"),O=(0,b.registerClientReference)(function(){throw Error("Attempted to call PageFeedbackToolbarCSS() from the server but PageFeedbackToolbarCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","PageFeedbackToolbarCSS"),P=(0,b.registerClientReference)(function(){throw Error("Attempted to call closestCrossingShadow() from the server but closestCrossingShadow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","closestCrossingShadow"),Q=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementClasses() from the server but getElementClasses is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getElementClasses"),R=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementPath() from the server but getElementPath is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getElementPath"),S=(0,b.registerClientReference)(function(){throw Error("Attempted to call getNearbyText() from the server but getNearbyText is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getNearbyText"),T=(0,b.registerClientReference)(function(){throw Error("Attempted to call getShadowHost() from the server but getShadowHost is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getShadowHost"),U=(0,b.registerClientReference)(function(){throw Error("Attempted to call getStorageKey() from the server but getStorageKey is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","getStorageKey"),V=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyAnimationElement() from the server but identifyAnimationElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","identifyAnimationElement"),W=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyElement() from the server but identifyElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","identifyElement"),X=(0,b.registerClientReference)(function(){throw Error("Attempted to call isInShadowDOM() from the server but isInShadowDOM is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","isInShadowDOM"),Y=(0,b.registerClientReference)(function(){throw Error("Attempted to call loadAnnotations() from the server but loadAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","loadAnnotations"),Z=(0,b.registerClientReference)(function(){throw Error("Attempted to call saveAnnotations() from the server but saveAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs <module evaluation>","saveAnnotations")},76494,a=>{"use strict";a.s(["Agentation",()=>c,"AnimatedBunny",()=>d,"AnnotationPopupCSS",()=>e,"IconChatEllipsis",()=>f,"IconCheck",()=>g,"IconCheckSmall",()=>h,"IconCheckSmallAnimated",()=>i,"IconCheckmark",()=>j,"IconCheckmarkCircle",()=>k,"IconCheckmarkLarge",()=>l,"IconChevronLeft",()=>m,"IconChevronRight",()=>n,"IconClose",()=>o,"IconCopyAlt",()=>p,"IconCopyAnimated",()=>q,"IconEdit",()=>r,"IconEye",()=>s,"IconEyeAlt",()=>t,"IconEyeAnimated",()=>u,"IconEyeClosed",()=>v,"IconEyeMinus",()=>w,"IconGear",()=>x,"IconHelp",()=>y,"IconLayout",()=>z,"IconListSparkle",()=>A,"IconMoon",()=>B,"IconPause",()=>C,"IconPauseAlt",()=>D,"IconPausePlayAnimated",()=>E,"IconPlayAlt",()=>F,"IconPlus",()=>G,"IconSendAnimated",()=>H,"IconSendArrow",()=>I,"IconSun",()=>J,"IconTrash",()=>K,"IconTrashAlt",()=>L,"IconXmark",()=>M,"IconXmarkLarge",()=>N,"PageFeedbackToolbarCSS",()=>O,"closestCrossingShadow",()=>P,"getElementClasses",()=>Q,"getElementPath",()=>R,"getNearbyText",()=>S,"getShadowHost",()=>T,"getStorageKey",()=>U,"identifyAnimationElement",()=>V,"identifyElement",()=>W,"isInShadowDOM",()=>X,"loadAnnotations",()=>Y,"saveAnnotations",()=>Z]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Agentation() from the server but Agentation is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","Agentation"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnimatedBunny() from the server but AnimatedBunny is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","AnimatedBunny"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call AnnotationPopupCSS() from the server but AnnotationPopupCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","AnnotationPopupCSS"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChatEllipsis() from the server but IconChatEllipsis is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconChatEllipsis"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheck() from the server but IconCheck is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheck"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmall() from the server but IconCheckSmall is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckSmall"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckSmallAnimated() from the server but IconCheckSmallAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckSmallAnimated"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmark() from the server but IconCheckmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckmark"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkCircle() from the server but IconCheckmarkCircle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckmarkCircle"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCheckmarkLarge() from the server but IconCheckmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCheckmarkLarge"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronLeft() from the server but IconChevronLeft is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconChevronLeft"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconChevronRight() from the server but IconChevronRight is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconChevronRight"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconClose() from the server but IconClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconClose"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAlt() from the server but IconCopyAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCopyAlt"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconCopyAnimated() from the server but IconCopyAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconCopyAnimated"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEdit() from the server but IconEdit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEdit"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEye() from the server but IconEye is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEye"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAlt() from the server but IconEyeAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeAlt"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeAnimated() from the server but IconEyeAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeAnimated"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeClosed() from the server but IconEyeClosed is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeClosed"),w=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconEyeMinus() from the server but IconEyeMinus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconEyeMinus"),x=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconGear() from the server but IconGear is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconGear"),y=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconHelp() from the server but IconHelp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconHelp"),z=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconLayout() from the server but IconLayout is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconLayout"),A=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconListSparkle() from the server but IconListSparkle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconListSparkle"),B=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconMoon() from the server but IconMoon is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconMoon"),C=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPause() from the server but IconPause is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPause"),D=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPauseAlt() from the server but IconPauseAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPauseAlt"),E=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPausePlayAnimated() from the server but IconPausePlayAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPausePlayAnimated"),F=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlayAlt() from the server but IconPlayAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPlayAlt"),G=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconPlus() from the server but IconPlus is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconPlus"),H=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendAnimated() from the server but IconSendAnimated is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconSendAnimated"),I=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSendArrow() from the server but IconSendArrow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconSendArrow"),J=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconSun() from the server but IconSun is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconSun"),K=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrash() from the server but IconTrash is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconTrash"),L=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconTrashAlt() from the server but IconTrashAlt is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconTrashAlt"),M=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmark() from the server but IconXmark is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconXmark"),N=(0,b.registerClientReference)(function(){throw Error("Attempted to call IconXmarkLarge() from the server but IconXmarkLarge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","IconXmarkLarge"),O=(0,b.registerClientReference)(function(){throw Error("Attempted to call PageFeedbackToolbarCSS() from the server but PageFeedbackToolbarCSS is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","PageFeedbackToolbarCSS"),P=(0,b.registerClientReference)(function(){throw Error("Attempted to call closestCrossingShadow() from the server but closestCrossingShadow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","closestCrossingShadow"),Q=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementClasses() from the server but getElementClasses is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getElementClasses"),R=(0,b.registerClientReference)(function(){throw Error("Attempted to call getElementPath() from the server but getElementPath is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getElementPath"),S=(0,b.registerClientReference)(function(){throw Error("Attempted to call getNearbyText() from the server but getNearbyText is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getNearbyText"),T=(0,b.registerClientReference)(function(){throw Error("Attempted to call getShadowHost() from the server but getShadowHost is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getShadowHost"),U=(0,b.registerClientReference)(function(){throw Error("Attempted to call getStorageKey() from the server but getStorageKey is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","getStorageKey"),V=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyAnimationElement() from the server but identifyAnimationElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","identifyAnimationElement"),W=(0,b.registerClientReference)(function(){throw Error("Attempted to call identifyElement() from the server but identifyElement is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","identifyElement"),X=(0,b.registerClientReference)(function(){throw Error("Attempted to call isInShadowDOM() from the server but isInShadowDOM is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","isInShadowDOM"),Y=(0,b.registerClientReference)(function(){throw Error("Attempted to call loadAnnotations() from the server but loadAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","loadAnnotations"),Z=(0,b.registerClientReference)(function(){throw Error("Attempted to call saveAnnotations() from the server but saveAnnotations is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/agentation/dist/index.mjs","saveAnnotations")},86255,a=>{"use strict";a.i(33421);var b=a.i(76494);a.n(b)},41479,a=>{a.v({className:"glide_d2f847e3-module__jCZlzq__className",variable:"glide_d2f847e3-module__jCZlzq__variable"})},87051,a=>{a.v({className:"operatormono_ed74845e-module__g9tX8G__className",variable:"operatormono_ed74845e-module__g9tX8G__variable"})},60588,a=>{"use strict";a.s(["DiffsWorkerProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call DiffsWorkerProvider() from the server but DiffsWorkerProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/DiffsWorkerProvider.tsx <module evaluation>","DiffsWorkerProvider")},33734,a=>{"use strict";a.s(["DiffsWorkerProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call DiffsWorkerProvider() from the server but DiffsWorkerProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/DiffsWorkerProvider.tsx","DiffsWorkerProvider")},74543,a=>{"use strict";a.i(60588);var b=a.i(33734);a.n(b)},64181,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/theme-provider.tsx <module evaluation>","ThemeProvider")},58655,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/cli/components/theme-provider.tsx","ThemeProvider")},31892,a=>{"use strict";a.i(64181);var b=a.i(58655);a.n(b)},80176,a=>{"use strict";var b=a.i(7997);a.i(86255);var c=a.i(41479);let d={className:c.default.className,style:{fontFamily:"'glide', 'glide Fallback'"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(87051);let f={className:e.default.className,style:{fontFamily:"'operatorMono', 'operatorMono Fallback'"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(74543),h=a.i(31892);a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",className:`${d.variable} ${f.variable}`,suppressHydrationWarning:!0,children:(0,b.jsx)("body",{className:"bg-background antialiased",children:(0,b.jsxs)(h.ThemeProvider,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:[(0,b.jsx)(g.DiffsWorkerProvider,{children:a}),!1]})})})},"metadata",0,{description:"GitHub PR-style local diff viewer",title:"DiffHub"}],80176)},62191,a=>{a.n(a.i(80176))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_00rs0r_._.js.map
|
|
@@ -13,7 +13,7 @@ ${b.join("\n")}`})(f);await navigator.clipboard.writeText(a),F.current&&clearTim
|
|
|
13
13
|
${a.right}px ${a.bottom}px,
|
|
14
14
|
${a.right}px ${a.top}px,
|
|
15
15
|
${a.left}px ${a.top}px
|
|
16
|
-
)`}return(0,o.jsx)("div",{ref:b,role:"presentation","data-base-ui-inert":"",...e,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),gm=p.forwardRef(function(a,b){let{keepMounted:c=!1,...d}=a,{store:e}=fO(),f=e.useState("mounted"),g=e.useState("modal"),h=e.useState("open");return f||c?(0,o.jsx)(gc.Provider,{value:c,children:(0,o.jsxs)(ej,{ref:b,...d,children:[f&&!0===g&&(0,o.jsx)(gl,{ref:e.context.internalBackdropRef,inert:fm(!h)}),a.children]})}):null}),gn={},go={},gp="";class gq{lockCount=0;restore=null;timeoutLock=b_.create();timeoutUnlock=b_.create();acquire(a){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(a)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(a){let b,c,d,e,f;if(0===this.lockCount||null!==this.restore)return;let g=b1(a).documentElement,h=bf(g).getComputedStyle(g).overflowY;if("hidden"===h||"clip"===h){this.restore=P;return}let i=bF||!function(a){if("u"<typeof document)return!1;let b=b1(a);return bf(b).innerWidth-b.documentElement.clientWidth>0}(a);this.restore=i?(c=(b=b1(a)).documentElement,d=b.body,f={overflowY:(e=bi(c)?c:d).style.overflowY,overflowX:e.style.overflowX},Object.assign(e.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(e.style,f)}):function(a){let b=b1(a),c=b.documentElement,d=b.body,e=bf(c),f=0,g=0,h=!1,i=ci.create();if(bE&&(e.visualViewport?.scale??1)!==1)return()=>{};function j(){let b=e.getComputedStyle(c),i=e.getComputedStyle(d),j=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";f=c.scrollTop,g=c.scrollLeft,gn={scrollbarGutter:c.style.scrollbarGutter,overflowY:c.style.overflowY,overflowX:c.style.overflowX},gp=c.style.scrollBehavior,go={position:d.style.position,height:d.style.height,width:d.style.width,boxSizing:d.style.boxSizing,overflowY:d.style.overflowY,overflowX:d.style.overflowX,scrollBehavior:d.style.scrollBehavior};let k=c.scrollHeight>c.clientHeight,l=c.scrollWidth>c.clientWidth,m="scroll"===b.overflowY||"scroll"===i.overflowY,n="scroll"===b.overflowX||"scroll"===i.overflowX,o=Math.max(0,e.innerWidth-d.clientWidth),p=Math.max(0,e.innerHeight-d.clientHeight),q=parseFloat(i.marginTop)+parseFloat(i.marginBottom),r=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s=bi(c)?c:d;if(h=function(a){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let b=b1(a),c=b.documentElement,d=b.body,e=bi(c)?c:d,f=e.style.overflowY,g=c.style.scrollbarGutter;c.style.scrollbarGutter="stable",e.style.overflowY="scroll";let h=e.offsetWidth;e.style.overflowY="hidden";let i=e.offsetWidth;return e.style.overflowY=f,c.style.scrollbarGutter=g,h===i}(a)){c.style.scrollbarGutter=j,s.style.overflowY="hidden",s.style.overflowX="hidden";return}Object.assign(c.style,{scrollbarGutter:j,overflowY:"hidden",overflowX:"hidden"}),(k||m)&&(c.style.overflowY="scroll"),(l||n)&&(c.style.overflowX="scroll"),Object.assign(d.style,{position:"relative",height:q||p?`calc(100dvh - ${q+p}px)`:"100dvh",width:r||o?`calc(100vw - ${r+o}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),d.scrollTop=f,d.scrollLeft=g,c.setAttribute("data-base-ui-scroll-locked",""),c.style.scrollBehavior="unset"}function k(){Object.assign(c.style,gn),Object.assign(d.style,go),h||(c.scrollTop=f,c.scrollLeft=g,c.removeAttribute("data-base-ui-scroll-locked"),c.style.scrollBehavior=gp)}function l(){k(),i.request(j)}return j(),e.addEventListener("resize",l),()=>{i.cancel(),k(),"function"==typeof e.removeEventListener&&e.removeEventListener("resize",l)}}(a)}}let gr=new gq,gs=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);var b9=b9;let gt={...c5,modal:cR(a=>a.modal),nested:cR(a=>a.nested),nestedOpenDialogCount:cR(a=>a.nestedOpenDialogCount),disablePointerDismissal:cR(a=>a.disablePointerDismissal),openMethod:cR(a=>a.openMethod),descriptionElementId:cR(a=>a.descriptionElementId),titleElementId:cR(a=>a.titleElementId),viewportElement:cR(a=>a.viewportElement),role:cR(a=>a.role)};class gu extends cW{constructor(a){super(function(a={}){return{...c3(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...a}}(a),{popupRef:p.createRef(),backdropRef:p.createRef(),internalBackdropRef:p.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new c2,onOpenChange:void 0,onOpenChangeComplete:void 0},gt)}setOpen=(a,b)=>{if(b.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},a||null!=b.trigger||null==this.state.activeTriggerId||(b.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(a,b),b.isCanceled)return;let c={open:a,nativeEvent:b.event,reason:b.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",c);let d={open:a},e=b.trigger?.id??null;(e||a)&&(d.activeTriggerId=e,d.activeTriggerElement=b.trigger??null),this.update(d)}}let gv=((m={})[m.open=c9.open]="open",m[m.closed=c9.closed]="closed",m[m.startingStyle=c9.startingStyle]="startingStyle",m[m.endingStyle=c9.endingStyle]="endingStyle",m.nested="data-nested",m.nestedDialogOpen="data-nested-dialog-open",m),gw={...dg,...cp,nested:a=>a?{[gv.nested]:""}:null,nestedDialogOpen:a=>a?{[gv.nestedDialogOpen]:""}:null},gx=p.forwardRef(function(a,b){let{className:c,render:d,children:e,...f}=a,g=gd(),{store:h}=fO(),i=h.useState("open"),j=h.useState("nested"),k=h.useState("transitionStatus"),l=h.useState("nestedOpenDialogCount"),m=h.useState("mounted");return R("div",a,{enabled:g||m,state:{open:i,nested:j,transitionStatus:k,nestedDialogOpen:l>0},ref:[b,h.useStateSetter("viewportElement")],stateAttributesMapping:gw,props:[{role:"presentation",hidden:!m,style:{pointerEvents:i?void 0:"none"},children:e},f]})}),gy=p.forwardRef(function(a,b){let{render:c,className:d,id:e,...f}=a,{store:g}=fO(),h=dh(e);return g.useSyncedValueWithCleanup("titleElementId",h),R("h2",a,{ref:b,props:[{id:h},f]})});var b9=b9;let gz=p.forwardRef(function(a,b){let{render:c,className:d,disabled:e=!1,nativeButton:f=!0,id:g,payload:h,handle:i,...j}=a,k=fO(!0),l=i?.store??k?.store;if(!l)throw Error(H(79));let m=dh(g),n=l.useState("floatingRootContext"),o=l.useState("isOpenedByTrigger",m),q=p.useRef(null),{registerTrigger:r,isMountedByThisTrigger:s}=cs(m,q,l,{payload:h}),{getButtonProps:t,buttonRef:u}=fS({disabled:e,native:f}),v=ce([function(a,b={}){let c="rootStore"in a?a.rootStore:a,d=c.context.dataRef,{enabled:e=!0,event:f="click",toggle:g=!0,ignoreMouse:h=!1,stickIfOpen:i=!0,touchOpenDelay:j=0,reason:k=b9.triggerPress}=b,l=p.useRef(void 0),m=cj(),n=b0(),o=p.useMemo(()=>({onPointerDown(a){l.current=a.pointerType},onMouseDown(a){let b=l.current,e=a.nativeEvent,o=c.select("open");if(0!==a.button||"click"===f||bW(b,!0)&&h)return;let p=d.current.openEvent,q=p?.type,r=c.select("domReferenceElement")!==a.currentTarget,s=o&&r||!(o&&g&&(!p||!i||"click"===q||"mousedown"===q));if(bT(e.target)){let a=b8(k,e,e.target);s&&"touch"===b&&j>0?n.start(j,()=>{c.setOpen(!0,a)}):c.setOpen(s,a);return}let t=a.currentTarget;m.request(()=>{let a=b8(k,e,t);s&&"touch"===b&&j>0?n.start(j,()=>{c.setOpen(!0,a)}):c.setOpen(s,a)})},onClick(a){if("mousedown-only"===f)return;let b=l.current;if("mousedown"===f&&b){l.current=void 0;return}if(bW(b,!0)&&h)return;let e=c.select("open"),m=d.current.openEvent,o=c.select("domReferenceElement")!==a.currentTarget,p=e&&o||!(e&&g&&(!m||!i||bX(m))),q=b8(k,a.nativeEvent,a.currentTarget);p&&"touch"===b&&j>0?n.start(j,()=>{c.setOpen(!0,q)}):c.setOpen(p,q)},onKeyDown(){l.current=void 0}}),[d,f,h,c,i,g,m,n,j,k]);return p.useMemo(()=>e?{reference:o}:Q,[e,o])}(n,{enabled:null!=n})]),w=l.useState("triggerProps",s);return R("button",a,{state:{disabled:e,open:o},ref:[u,b,r,q],props:[v.getReferenceProps(),w,{[ed]:"",id:m},j,t],stateAttributesMapping:df})});var b9=b9;class gA{constructor(a){this.store=a??new gu}open(a){let b=a?this.store.context.triggerElements.getById(a):void 0;this.store.setOpen(!0,b8(b9.imperativeAction,void 0,b))}openWithPayload(a){this.store.set("payload",a),this.store.setOpen(!0,b8(b9.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,b8(b9.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}a.s(["Backdrop",0,fQ,"Close",0,fU,"Description",0,fV,"Handle",0,gA,"Popup",0,gk,"Portal",0,gm,"Root",0,function(a){let{children:b,open:c,defaultOpen:d=!1,onOpenChange:e,onOpenChangeComplete:f,disablePointerDismissal:g=!1,modal:h=!0,actionsRef:i,handle:j,triggerId:k,defaultTriggerId:l=null}=a,m=fO(!0),n=!!m,q=J(()=>j?.store??new gu({open:d,openProp:c,activeTriggerId:l,triggerIdProp:k,modal:h,disablePointerDismissal:g,nested:n})).current;ba(()=>{void 0===c&&!1===q.state.open&&!0===d&&q.update({open:!0,activeTriggerId:l})}),q.useControlledProp("openProp",c),q.useControlledProp("triggerIdProp",k),q.useSyncedValues({disablePointerDismissal:g,nested:n,modal:h}),q.useContextCallback("onOpenChange",e),q.useContextCallback("onOpenChangeComplete",f);let r=q.useState("payload");!function(a){let{store:b,parentContext:c,actionsRef:d}=a,e=b.useState("open"),f=b.useState("disablePointerDismissal"),g=b.useState("modal"),h=b.useState("popupElement"),{openMethod:i,triggerProps:j}=function(a){let b,c,d,e,[f,g]=p.useState(null),h=bx((b,c)=>{a||g(c||(bF?"touch":""))});b=p.useRef(a),bb(()=>{b.current!==a&&c(b.current)},[a,c=bx(b=>{b&&!a&&g(null)})]),bb(()=>{b.current=a},[a]);let{onClick:i,onPointerDown:j}=(d=p.useRef(""),e=p.useCallback(a=>{a.defaultPrevented||(d.current=a.pointerType,h(a,a.pointerType))},[h]),{onClick:p.useCallback(a=>{0===a.detail?h(a,"keyboard"):(h(a,"pointerType"in a?a.pointerType:d.current),d.current="")},[h]),onPointerDown:e});return p.useMemo(()=>({openMethod:f,triggerProps:{onClick:i,onPointerDown:j}}),[f,i,j])}(e);ct(b);let{forceUnmount:k}=cu(e,b),l=bx(a=>{let c=b8(a);return c.preventUnmountOnClose=()=>{b.set("preventUnmountingOnClose",!0)},c}),m=p.useCallback(()=>{b.setOpen(!1,l(b9.imperativeAction))},[b,l]);p.useImperativeHandle(d,()=>({unmount:k,close:m}),[k,m]);let n=c1({popupStore:b,onOpenChange:b.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[o,q]=p.useState(0),r=0===o,s=function(a,b={}){let c="rootStore"in a?a.rootStore:a,d=c.useState("open"),e=c.useState("floatingId"),f=c.useState("domReferenceElement"),g=c.useState("floatingElement"),{role:h="dialog"}=b,i=c$(),j=f?.id||i,k=p.useMemo(()=>bV(g)?.id||e,[g,e]),l=gs.get(h)??h,m=null!=b6(),n=p.useMemo(()=>"tooltip"===l||"label"===h?Q:{"aria-haspopup":"alertdialog"===l?"dialog":l,"aria-expanded":"false",..."listbox"===l&&{role:"combobox"},..."menu"===l&&m&&{role:"menuitem"},..."select"===h&&{"aria-autocomplete":"none"},..."combobox"===h&&{"aria-autocomplete":"list"}},[l,m,h]),o=p.useMemo(()=>"tooltip"===l||"label"===h?{[`aria-${"label"===h?"labelledby":"describedby"}`]:d?k:void 0}:{...n,"aria-expanded":d?"true":"false","aria-controls":d?k:void 0,..."menu"===l&&{id:j}},[l,k,d,j,h,n]),q=p.useMemo(()=>{let a={id:k,...l&&{role:l}};return"tooltip"===l||"label"===h?a:{...a,..."menu"===l&&{"aria-labelledby":j}}},[l,k,j,h]),r=p.useCallback(({active:a,selected:b})=>{let c={role:"option",...a&&{id:`${k}-fui-option`}};switch(h){case"select":case"combobox":return{...c,"aria-selected":b}}return{}},[k,h]);return p.useMemo(()=>({reference:o,floating:q,item:r,trigger:n}),[o,q,n,r])}(n),t=cd(n,{outsidePressEvent:()=>b.context.internalBackdropRef.current||b.context.backdropRef.current?"intentional":{mouse:"trap-focus"===g?"sloppy":"intentional",touch:"sloppy"},outsidePress(a){if(!b.context.outsidePressEnabledRef.current||"button"in a&&0!==a.button||"touches"in a&&1!==a.touches.length)return!1;let c=bR(a);return!!r&&!f&&(!g||!b.context.internalBackdropRef.current&&!b.context.backdropRef.current||b.context.internalBackdropRef.current===c||b.context.backdropRef.current===c||bP(c,h)&&!c?.hasAttribute("data-base-ui-portal"))},escapeKey:r});!function(a=!0,b=null){bb(()=>{if(a)return gr.acquire(b)},[a,b])}(e&&!0===g,h);let{getReferenceProps:u,getFloatingProps:v,getTriggerProps:w}=ce([s,t]);b.useContextCallback("onNestedDialogOpen",a=>{q(a+1)}),b.useContextCallback("onNestedDialogClose",()=>{q(0)}),p.useEffect(()=>(c?.onNestedDialogOpen&&e&&c.onNestedDialogOpen(o),c?.onNestedDialogClose&&!e&&c.onNestedDialogClose(),()=>{c?.onNestedDialogClose&&e&&c.onNestedDialogClose()}),[e,c,o]);let x=p.useMemo(()=>u(j),[u,j]),y=p.useMemo(()=>w(j),[w,j]),z=p.useMemo(()=>v(),[v]);b.useSyncedValues({openMethod:i,activeTriggerProps:x,inactiveTriggerProps:y,popupProps:z,floatingRootContext:n,nestedOpenDialogCount:o})}({store:q,actionsRef:i,parentContext:m?.store.context,onOpenChange:e,triggerIdProp:k});let s=p.useMemo(()=>({store:q}),[q]);return(0,o.jsx)(fN.Provider,{value:s,children:"function"==typeof b?b({payload:r}):b})},"Title",0,gy,"Trigger",0,gz,"Viewport",0,gx,"createHandle",0,function(){return new gA}],79021);var gB=a.i(79021),gB=gB;let gC=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),gD=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var gE={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"};let gF=(0,p.createContext)({}),gG=(0,p.forwardRef)(({color:a,size:b,strokeWidth:c,absoluteStrokeWidth:d,className:e="",children:f,iconNode:g,...h},i)=>{let{size:j=24,strokeWidth:k=2,absoluteStrokeWidth:l=!1,color:m="currentColor",className:n=""}=(0,p.useContext)(gF)??{},o=d??l?24*Number(c??k)/Number(b??j):c??k;return(0,p.createElement)("svg",{ref:i,...gE,width:b??j??gE.width,height:b??j??gE.height,stroke:a??m,strokeWidth:o,className:gC("lucide",n,e),...!f&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...g.map(([a,b])=>(0,p.createElement)(a,b)),...Array.isArray(f)?f:[f]])}),gH=(n=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],(d=(0,p.forwardRef)(({className:a,...b},c)=>(0,p.createElement)(gG,{ref:c,iconNode:n,className:gC(`lucide-${gD("x").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,"lucide-x",a),...b}))).displayName=gD("x"),d),gI=({...a})=>(0,o.jsx)(gB.Root,{"data-slot":"sheet",...a}),gJ=({...a})=>(0,o.jsx)(gB.Portal,{"data-slot":"sheet-portal",...a}),gK=({className:a,...b})=>(0,o.jsx)(gB.Backdrop,{"data-slot":"sheet-overlay",className:((...a)=>a3(T(a)))("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",a),...b}),gL=({className:a,children:b,side:c="right",showCloseButton:d=!0,...e})=>(0,o.jsxs)(gJ,{children:[(0,o.jsx)(gK,{}),(0,o.jsxs)(gB.Popup,{"data-slot":"sheet-content","data-side":c,className:((...a)=>a3(T(a)))("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",a),...e,children:[b,d&&(0,o.jsxs)(gB.Close,{"data-slot":"sheet-close",render:(0,o.jsx)(a6,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,o.jsx)(gH,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}),gM=({className:a,...b})=>(0,o.jsx)("div",{"data-slot":"sheet-header",className:((...a)=>a3(T(a)))("flex flex-col gap-0.5 p-4",a),...b}),gN=({className:a,...b})=>(0,o.jsx)(gB.Title,{"data-slot":"sheet-title",className:((...a)=>a3(T(a)))("font-heading text-base font-medium text-foreground",a),...b}),gO=({className:a,...b})=>(0,o.jsx)(gB.Description,{"data-slot":"sheet-description",className:((...a)=>a3(T(a)))("text-sm text-muted-foreground",a),...b}),gP=(0,p.createContext)(null),gQ=({defaultOpen:a=!0,open:b,onOpenChange:c,className:d,style:e,children:f,...g})=>{let h=(()=>{let[a,b]=(0,p.useState)();return(0,p.useEffect)(()=>{let a=window.matchMedia("(max-width: 767px)"),c=()=>{b(window.innerWidth<768)};return a.addEventListener("change",c),b(window.innerWidth<768),()=>a.removeEventListener("change",c)},[]),!!a})(),[i,j]=(0,p.useState)(!1),[k,l]=(0,p.useState)(a),m=b??k,n=(0,p.useCallback)(a=>{let b="function"==typeof a?a(m):a;c?c(b):l(b),cookieStore.set({expires:Date.now()+6048e5,name:"sidebar_state",path:"/",value:String(b)})},[c,m]),q=(0,p.useCallback)(()=>h?j(a=>!a):n(a=>!a),[h,n]);(0,p.useEffect)(()=>{let a=a=>{"b"===a.key&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),q())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[q]);let r=m?"expanded":"collapsed",s=(0,p.useMemo)(()=>({isMobile:h,open:m,openMobile:i,setOpen:n,setOpenMobile:j,state:r,toggleSidebar:q}),[r,m,n,h,i,q]);return(0,o.jsx)(gP.Provider,{value:s,children:(0,o.jsx)(fx,{delay:0,children:(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",d),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...e},...g,children:f})})})},gR=({side:a="left",variant:b="sidebar",collapsible:c="offcanvas",className:d,children:e,...f})=>{let{isMobile:g,state:h,openMobile:i,setOpenMobile:j}=(()=>{let a=(0,p.useContext)(gP);if(!a)throw Error("useSidebar must be used within a SidebarProvider.");return a})();return"none"===c?(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",d),"data-slot":"sidebar",...f,children:e}):g?(0,o.jsx)(gI,{onOpenChange:j,open:i,...f,children:(0,o.jsxs)(gL,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:a,style:{"--sidebar-width":"18rem"},children:[(0,o.jsxs)(gM,{className:"sr-only",children:[(0,o.jsx)(gN,{children:"Sidebar"}),(0,o.jsx)(gO,{children:"Displays the mobile sidebar."})]}),(0,o.jsx)("div",{className:"flex h-full w-full flex-col",children:e})]})}):(0,o.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":"collapsed"===h?c:"","data-side":a,"data-slot":"sidebar","data-state":h,"data-variant":b,children:[(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===b||"inset"===b?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"),"data-slot":"sidebar-gap"}),(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===b||"inset"===b?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",d),"data-slot":"sidebar-container",...f,children:(0,o.jsx)("div",{className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:e})})]})},gS=({className:a,...b})=>(0,o.jsx)("main",{className:((...a)=>a3(T(a)))("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",a),"data-slot":"sidebar-inset",...b}),gT=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex flex-col gap-2 p-2",a),"data-sidebar":"header","data-slot":"sidebar-header",...b}),gU=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex flex-col gap-2 p-2",a),"data-sidebar":"footer","data-slot":"sidebar-footer",...b}),gV=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),"data-sidebar":"content","data-slot":"sidebar-content",...b}),gW="diffhub:file-tree:expand-all",gX="diffhub:file-tree:collapse-all",gY=a=>a.map(a=>{if("file"===a.type)return a;let b=gY(a.children);if(1===b.length&&"folder"===b[0].type){let c=b[0];return{...c,name:`${a.name}/${c.name}`}}return{...a,children:b}}),gZ=(a,b=[])=>{for(let c of a)"folder"===c.type&&(b.push(c.path),gZ(c.children,b));return b},g$=(0,p.memo)(function({node:a,depth:b,isSelected:c,commentCount:d,onNavigate:e}){let{insertions:f,deletions:g}=a.fileStat,h=fK;f>0&&0===g?h=fL:g>0&&0===f&&(h=fM);let i="shrink-0 text-sidebar-foreground/40";return f>0&&0===g?i="shrink-0 text-diff-green":g>0&&0===f&&(i="shrink-0 text-destructive"),(0,o.jsxs)("button",{type:"button","aria-current":c?"true":void 0,className:((...a)=>a3(T(a)))("flex w-full cursor-pointer items-center gap-1.5 py-1 text-left transition-colors",c?"bg-sidebar-accent text-sidebar-accent-foreground":"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),"data-file-path":a.path,"data-selected":c?"true":void 0,style:{containIntrinsicBlockSize:"26px",contentVisibility:"auto",paddingLeft:16*b+8,paddingRight:8},onClick:()=>e(a.path),children:[(0,o.jsx)(h,{size:16,className:i}),(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("span",{className:"flex-1 truncate text-[12px] leading-tight text-muted-foreground"}),children:a.name}),(0,o.jsx)(fA,{side:"right",children:a.path})]}),d>0&&(0,o.jsxs)("span",{className:"flex shrink-0 items-center gap-0.5 text-[10px] text-sidebar-foreground/50",children:[(0,o.jsx)(fG,{size:10}),d]})]})}),g_=(0,p.memo)(function({node:a,depth:b,isCollapsed:c,onToggle:d,children:e}){let f=16*b+8,g=a4(a.name),h=g.split("/");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("button",{type:"button","aria-expanded":!c,className:"flex w-full items-center gap-1.5 py-1 text-left transition-colors hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sidebar-ring",style:{paddingLeft:f,paddingRight:8},onClick:()=>d(a.path),children:[c?(0,o.jsx)(fH,{size:16,className:"shrink-0 text-sidebar-foreground/50"}):(0,o.jsx)(fI,{size:16,className:"shrink-0 text-sidebar-foreground/50"}),(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("span",{className:"truncate text-[12px] text-muted-foreground"}),children:h.map((a,b)=>{let c=h.slice(0,b+1).join("/");return(0,o.jsxs)(p.Fragment,{children:[a,b<h.length-1&&(0,o.jsx)("span",{className:"text-sidebar-foreground/30",children:"/"})]},c)})}),a.name!==g&&(0,o.jsx)(fA,{side:"right",children:a.name})]})]}),!c&&(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"pointer-events-none absolute inset-y-0 border-l border-sidebar-border/60",style:{left:f+8}}),e]})]})}),g0=(0,p.memo)(function a({nodes:b,depth:c,selectedFile:d,commentsByFile:e,collapsedFolders:f,onToggleFolder:g,onNavigate:h}){return b.map(b=>"folder"===b.type?(0,o.jsx)(g_,{node:b,depth:c,isCollapsed:f.has(b.path),onToggle:g,children:(0,o.jsx)(a,{nodes:b.children,depth:c+1,selectedFile:d,commentsByFile:e,collapsedFolders:f,onToggleFolder:g,onNavigate:h})},b.path):(0,o.jsx)(g$,{node:b,depth:c,isSelected:d===b.path,commentCount:e.get(b.path)??0,onNavigate:h},b.path))}),g1=({files:a,selectedFile:b,onSelectFile:c,comments:d,filterQuery:e,onFilterChange:f,isLoading:g=!1,insertions:h,deletions:i})=>{let[j,k]=(0,p.useState)(new Set),[l,m]=(0,p.useState)(256),n=(0,p.useRef)(null);(0,p.useEffect)(()=>{let a=()=>{n.current=null,document.body.style.cursor="",document.body.style.userSelect=""},b=a=>{n.current&&m(Math.max(8,n.current.startWidth+a.clientX-n.current.startX))},c=()=>{n.current&&a()};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",c),window.addEventListener("blur",c),()=>{a(),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",c),window.removeEventListener("blur",c)}},[]);let q=(0,p.useCallback)(a=>{a.preventDefault(),n.current={startWidth:l,startX:a.clientX},document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[l]),r=(0,p.useMemo)(()=>e?a.filter(a=>a.file.toLowerCase().includes(e.toLowerCase())):a,[a,e]),s=(0,p.useMemo)(()=>gY((a=>{let b={files:[],folders:{}};for(let c of a){let a=c.file.split("/"),d=b;for(let b=0;b<a.length-1;b+=1){let c=a[b];d.folders[c]||(d.folders[c]={files:[],folders:{}}),d=d.folders[c]}d.files.push(c)}let c=(a,b,d)=>{let e=d?`${d}/${a}`:a,f=[];for(let[a,d]of Object.entries(b.folders).toSorted())f.push(c(a,d,e));for(let a of b.files){let b=a.file.split("/");f.push({fileStat:a,name:b.at(-1)??a.file,path:a.file,type:"file"})}return{children:f,name:a,path:e,type:"folder"}},d=[];for(let[a,e]of Object.entries(b.folders).toSorted())d.push(c(a,e,""));for(let a of b.files)d.push({fileStat:a,name:a.file,path:a.file,type:"file"});return d})(r)),[r]),t=(0,p.useMemo)(()=>gZ(s),[s]);(0,p.useEffect)(()=>{let a=()=>{k(new Set)},b=()=>{k(new Set(t))};return window.addEventListener(gW,a),window.addEventListener(gX,b),()=>{window.removeEventListener(gW,a),window.removeEventListener(gX,b)}},[t]);let u=(0,p.useMemo)(()=>{let a=new Map;for(let b of d)a.set(b.file,(a.get(b.file)??0)+1);return a},[d]),v=(0,p.useCallback)(a=>{k(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[]),w=(0,p.useCallback)(a=>{let b=new CustomEvent("diffhub:file:navigate",{cancelable:!0,detail:{file:a,source:"sidebar"}});window.dispatchEvent(b)&&c(a,"auto")},[c]),x=null;return x=g?(0,o.jsx)("div",{className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:(0,o.jsx)("p",{className:"animate-pulse text-xs text-sidebar-foreground/50",children:"Loading…"})}):0===r.length?(0,o.jsxs)("div",{className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:[(0,o.jsx)("p",{className:"text-xs text-sidebar-foreground/50",children:"No changes"}),e&&(0,o.jsxs)("p",{className:"text-[10px] text-sidebar-foreground/30",children:["No files match “",e,"”"]})]}):(0,o.jsx)(g0,{nodes:s,depth:0,selectedFile:b,commentsByFile:u,collapsedFolders:j,onToggleFolder:v,onNavigate:w}),(0,o.jsx)(fx,{delay:400,children:(0,o.jsxs)(gR,{collapsible:"none",className:"relative overflow-hidden border-r border-sidebar-border",style:{"--sidebar-width":`${l}px`},children:[(0,o.jsx)(gT,{className:"border-b border-sidebar-border h-[52px] flex-row items-center py-0 px-2",children:(0,o.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,o.jsx)(fJ,{size:12,className:"pointer-events-none absolute left-2.5 text-sidebar-foreground/40"}),(0,o.jsx)("input",{type:"text",value:e,onChange:a=>f(a.target.value),placeholder:"Filter files…","aria-label":"Filter files",className:"w-full rounded-md border border-sidebar-border bg-sidebar-accent py-1.5 pl-7 pr-7 text-xs text-sidebar-foreground placeholder:text-sidebar-foreground/40 transition-colors focus:border-sidebar-ring/50 focus:outline-none"}),e&&(0,o.jsx)("button",{type:"button",onClick:()=>f(""),"aria-label":"Clear filter",className:"absolute right-2 text-sm leading-none text-sidebar-foreground/40 transition-colors hover:text-sidebar-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sidebar-ring",children:"×"})]})}),(0,o.jsx)(gV,{className:"gap-0 py-1",children:x}),(0,o.jsx)(gU,{className:"border-t border-sidebar-border px-3 py-2",children:(0,o.jsxs)("div",{className:"flex items-center gap-2 text-[12px] font-mono text-sidebar-foreground/60",children:[(0,o.jsxs)("span",{children:[a.length," ",1===a.length?"file":"files"]}),h>0&&(0,o.jsxs)("span",{className:"text-diff-green",children:["+",h]}),i>0&&(0,o.jsxs)("span",{className:"text-destructive",children:["−",i]})]})}),(0,o.jsx)("div",{"aria-hidden":!0,className:"absolute inset-y-0 right-0 z-20 w-[5px] cursor-col-resize after:absolute after:inset-y-0 after:left-1/2 after:-translate-x-1/2 after:w-px after:transition-colors hover:after:bg-sidebar-border",onMouseDown:q})]})})};var g2=a.i(19721),g3=p;let g4={dark:{addition:"oklch(0.696 0.15 145)",deletion:"oklch(0.704 0.191 22.216)"},light:{addition:"oklch(0.696 0.17 145)",deletion:"oklch(0.577 0.245 27.325)"}},g5={dark:{additionBg:"rgba(74, 222, 128, 0.12)",additionBgNumber:"rgba(74, 222, 128, 0.18)",additionEmphasis:"rgba(74, 222, 128, 0.25)",deletionBg:"rgba(248, 113, 113, 0.12)",deletionBgNumber:"rgba(248, 113, 113, 0.18)",deletionEmphasis:"rgba(248, 113, 113, 0.25)"},light:{additionBg:"rgba(34, 197, 94, 0.08)",additionBgNumber:"rgba(34, 197, 94, 0.12)",additionEmphasis:"rgba(34, 197, 94, 0.20)",deletionBg:"rgba(239, 68, 68, 0.08)",deletionBgNumber:"rgba(239, 68, 68, 0.12)",deletionEmphasis:"rgba(239, 68, 68, 0.20)"}},g6=({value:a,label:b="Copy file path",copiedLabel:c="Copied!",delay:d=400,className:e})=>{let[f,g]=(0,p.useState)(!1),h=(0,p.useCallback)(async()=>{try{await navigator.clipboard.writeText(a),g(!0),setTimeout(()=>g(!1),1500)}catch{}},[a]);return(0,o.jsx)(fx,{delay:d,children:(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)(a6,{variant:"ghost",size:"icon-xs",onClick:h,"aria-label":f?c:b,className:((...a)=>a3(T(a)))("size-6",f?"text-diff-green":"text-muted-foreground hover:text-foreground hover:bg-secondary",e)}),children:f?(0,o.jsx)(r,{size:12}):(0,o.jsx)(t,{size:12})}),(0,o.jsx)(fA,{side:"bottom",children:f?c:b})]})})},g7=({file:a,insertions:b,deletions:c,commentCount:d,repoPath:e,collapsed:f=!1,active:g=!1,onToggleCollapse:h,headingId:i,panelId:j})=>{let k=a4(a),l=k.lastIndexOf("/"),m=-1===l?"":k.slice(0,l),n=-1===l?k:k.slice(l+1);return(0,o.jsx)(fx,{delay:400,children:(0,o.jsxs)("div",{"data-active":g?"true":void 0,"data-state":f?"collapsed":"expanded",className:"flex items-center gap-2 px-3 h-9 border-b border-border bg-card sticky top-0 z-10",children:[(0,o.jsxs)("h3",{id:i,className:"flex min-w-0 flex-1 items-center gap-2 text-[12px] font-normal",children:[(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)(a6,{variant:"ghost",size:"icon-xs",onClick:()=>{h?h():window.dispatchEvent(new CustomEvent("diffhub:file:toggle-collapse",{detail:{file:a}}))},"aria-expanded":!f,"aria-controls":j,"aria-label":f?"Expand file section":"Collapse file section",className:"text-muted-foreground hover:bg-transparent active:bg-transparent aria-expanded:bg-transparent"}),children:(0,o.jsx)(s,{size:14,className:((...a)=>a3(T(a)))("transition-transform duration-150",f&&"-rotate-90")})}),(0,o.jsx)(fA,{side:"bottom",children:f?"Expand file section":"Collapse file section"})]}),(0,o.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,o.jsxs)(fy,{children:[(0,o.jsxs)(fz,{render:(0,o.jsx)("span",{className:"flex min-w-0 items-center gap-1"}),children:[(0,o.jsxs)("span",{className:"flex min-w-0 items-baseline gap-0 font-mono",children:[m&&(0,o.jsxs)("span",{className:"text-muted-foreground truncate shrink",children:[m,"/"]}),(0,o.jsx)("span",{className:"text-muted-foreground font-normal shrink-0",children:n})]}),(0,o.jsx)(g6,{value:`${e}/${a}`})]}),a!==k&&(0,o.jsx)(fA,{side:"bottom",children:a})]}),(0,o.jsxs)("span",{className:"flex items-center gap-1 shrink-0",children:[b>0&&(0,o.jsxs)("span",{className:"font-mono text-[12px] text-diff-green",children:["+",b]}),c>0&&(0,o.jsxs)("span",{className:"font-mono text-[12px] text-destructive",children:["−",c]})]})]})]}),d>0&&(0,o.jsxs)("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-diff-purple/10 text-diff-purple text-[10px] shrink-0",children:[(0,o.jsx)(fG,{size:10}),d]})]})})},g8=q("BranchIcon",(0,p.forwardRef)((a,b)=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",ref:b,...a},p.createElement("circle",{cx:6.5,cy:6,r:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),p.createElement("circle",{cx:6.5,cy:18,r:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),p.createElement("circle",{cx:17.5,cy:6,r:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),p.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.5 8v8M17.5 8v1c0 1.6569-1.3431 3-3 3h-5c-1.6569 0-3 1.3431-3 3v1"})))),g9=q("TrashCan2Icon",(0,p.forwardRef)((a,b)=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",ref:b,...a},p.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6v12c0 1.6569 1.3431 3 3 3h6c1.6569 0 3-1.3431 3-3V6M6 6h12M6 6H4m14 0h2M9 6c0-1.6569 1.3431-3 3-3s3 1.3431 3 3m-1 5v5m-4-5v5"})))),ha=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",a),"data-slot":"empty",...b}),hb=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex max-w-sm flex-col items-center gap-2 text-center",a),"data-slot":"empty-header",...b}),hc=V("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}}}),hd=({className:a,variant:b="default",...c})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))(hc({className:a,variant:b})),"data-slot":"empty-icon","data-variant":b,...c}),he=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("font-medium text-lg tracking-tight",a),"data-slot":"empty-title",...b}),hf=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("text-muted-foreground text-sm/relaxed [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",a),"data-slot":"empty-description",...b}),hg=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",a),"data-slot":"empty-content",...b}),hh=({className:a,children:b,...c})=>(0,o.jsx)("kbd",{className:((...a)=>a3(T(a)))("inline-flex h-5 items-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground",a),...c,children:b}),hi={"[must-fix]":{border:"border-l-destructive",text:"text-destructive"},"[nit]":{border:"border-l-muted-foreground/40",text:"text-muted-foreground"},"[question]":{border:"border-l-diff-purple",text:"text-diff-purple"},"[suggestion]":{border:"border-l-diff-green",text:"text-diff-green"}},hj=()=>(0,o.jsxs)("div",{className:"animate-pulse",children:[(0,o.jsx)("div",{className:"h-9 border-b border-border bg-card"}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3 bg-diff-green/5",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-diff-green/20"}),(0,o.jsx)("div",{className:"h-2 rounded bg-diff-green/15",style:{width:"67%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-muted"}),(0,o.jsx)("div",{className:"h-2 rounded bg-muted",style:{width:"82%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3 bg-destructive/5",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-destructive/20"}),(0,o.jsx)("div",{className:"h-2 rounded bg-destructive/15",style:{width:"54%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-muted"}),(0,o.jsx)("div",{className:"h-2 rounded bg-muted",style:{width:"78%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3 bg-diff-green/5",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-diff-green/20"}),(0,o.jsx)("div",{className:"h-2 rounded bg-diff-green/15",style:{width:"91%"}})]})]})]}),hk=({onRender:a,variant:b,changes:c})=>{let d="large"===b;return(0,o.jsxs)("div",{className:"mx-4 my-4 flex flex-col items-center justify-center gap-2 rounded-md border border-dashed border-border bg-muted/20 p-6","data-testid":"deferred-diff-placeholder","data-variant":b,children:[(0,o.jsx)(a6,{size:"sm",variant:"default",onClick:a,children:"Load diff"}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground",children:d?"Large diffs are not rendered by default.":"Diff rendering is deferred until this file becomes active or visible."}),d&&void 0!==c?(0,o.jsxs)("p",{className:"text-xs text-muted-foreground/70",children:[c.toLocaleString()," changed lines"]}):null]})};class hl extends g3.Component{constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a,b){console.error("[diffhub] PatchDiff threw",{componentStack:b.componentStack,error:a.message,file:this.props.file})}render(){return this.state.error?(0,o.jsxs)("div",{className:"px-4 py-6 text-sm text-destructive",children:["Failed to render diff for this file: ",this.state.error.message]}):this.props.children}}let hm=(0,g2.default)(async()=>{},{loadableGenerated:{modules:[11251]},loading:()=>(0,o.jsx)(hj,{}),ssr:!1}),hn=({onSubmit:a,onCancel:b})=>{let[c,d]=(0,g3.useState)(""),[e,f]=(0,g3.useState)(null),[g,h]=(0,g3.useState)(!1),i=(0,g3.useCallback)(a=>{a?.focus({preventScroll:!0})},[]),j=(0,g3.useCallback)(async()=>{let b=c.trim();!b||g||(f(null),h(!0),await a(b,"").catch(()=>!1)||f("Failed to save comment."),h(!1))},[c,g,a]);return(0,o.jsxs)("div",{className:"my-1 mx-4 rounded-md border border-border bg-background p-3 shadow-lg dark:shadow-none",children:[(0,o.jsx)("textarea",{ref:i,value:c,onChange:a=>d(a.target.value),placeholder:"Add a comment for the AI",rows:3,onKeyDown:a=>{("Enter"===a.key&&a.metaKey||"Return"===a.key)&&c.trim()&&j(),"Escape"===a.key&&b()},className:"w-full resize-none rounded border-0 bg-transparent px-0 py-0 font-sans text-sm text-foreground placeholder:text-muted-foreground focus:outline-none"}),(0,o.jsxs)("div",{className:"mt-2 flex justify-end gap-2",children:[(0,o.jsx)(a6,{variant:"ghost",size:"sm",onClick:b,children:"Cancel"}),(0,o.jsx)(a6,{size:"sm",disabled:!c.trim()||g,onClick:()=>void j(),children:g?"Saving…":"Comment"})]}),e&&(0,o.jsx)("p",{className:"mt-2 text-xs text-destructive",children:e})]})},ho=({comment:a,onDelete:b})=>{let[c,d]=(0,g3.useState)(!1),[e,f]=(0,g3.useState)(null),[g,h]=(0,g3.useState)(!1),i=(0,g3.useRef)(null);(0,g3.useEffect)(()=>()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]);let j=async()=>{let b=a.tag?`${a.tag} ${a.body}`:a.body;try{await navigator.clipboard.writeText(b),i.current&&clearTimeout(i.current),d(!0),i.current=setTimeout(()=>{d(!1),i.current=null},1500)}catch{}},k=(0,g3.useCallback)(async()=>{g||(f(null),h(!0),await b().catch(()=>!1)||f("Failed to delete comment."),h(!1))},[g,b]),l=a.tag?hi[a.tag]?.border??"border-l-ring/40":"border-l-ring/40";return(0,o.jsxs)("div",{className:((...a)=>a3(T(a)))("group my-1 mx-4 rounded-md border border-border bg-card shadow-sm dark:shadow-none overflow-hidden border-l-2",l),children:[(0,o.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2.5",children:[a.tag&&(0,o.jsx)("span",{className:((...a)=>a3(T(a)))("shrink-0 mt-0.5 text-[11px]",hi[a.tag]?.text??"text-muted-foreground"),children:a.tag}),(0,o.jsx)("p",{className:"flex-1 text-sm text-foreground leading-relaxed",children:a.body}),(0,o.jsx)(fx,{delay:400,children:(0,o.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:[(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("button",{type:"button",onClick:j,"aria-label":c?"Comment copied":"Copy comment",className:((...a)=>a3(T(a)))("rounded p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50",c?"text-diff-green":"text-muted-foreground hover:text-foreground hover:bg-secondary")}),children:c?(0,o.jsx)(r,{size:12}):(0,o.jsx)(t,{size:12})}),(0,o.jsx)(fA,{side:"top",children:c?"Copied!":"Copy comment"})]}),(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("button",{type:"button",onClick:k,"aria-label":"Delete comment",disabled:g,className:"rounded p-1 text-muted-foreground transition-colors hover:text-destructive hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50"}),children:(0,o.jsx)(g9,{size:12})}),(0,o.jsx)(fA,{side:"top",children:"Delete comment"})]})]})})]}),(0,o.jsxs)("div",{className:"border-t border-border/40 px-3 py-1 flex items-center gap-2 text-[10px] text-muted-foreground/60",children:[(0,o.jsxs)("span",{children:["L",a.lineNumber]}),a.createdAt&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:"·"}),(0,o.jsx)("span",{children:(a=>{let b=Math.floor((Date.now()-new Date(a).getTime())/1e3);if(b<60)return"just now";let c=Math.floor(b/60);if(c<60)return`${c}m ago`;let d=Math.floor(c/60);if(d<24)return`${d}h ago`;let e=Math.floor(d/24);return`${e}d ago`})(a.createdAt)})]})]}),e&&(0,o.jsx)("p",{className:"px-3 pb-2 text-xs text-destructive",children:e})]})},hp=a=>`diff-${encodeURIComponent(a)}`,hq=(0,g3.memo)(function({getHoveredLine:a,onCommentTargetChange:b}){let c=(0,g3.useCallback)(()=>{let c=a();c&&b({lineNumber:c.lineNumber,side:c.side})},[a,b]);return(0,o.jsx)("button",{type:"button",className:"diffhub-gutter-btn",title:"Add comment for AI",onClick:c,children:"+"})}),hr=(0,g3.memo)(function({file:a,filePatch:b,layout:c,prerenderedHTML:d,shouldRenderPatch:e,comments:f,fileStat:g,isLargeFile:h,collapsed:i,active:j=!1,sectionId:k,onToggleCollapse:l,repoPath:m,commentTarget:n,onCommentTargetChange:p,onRenderPatch:q,onAddComment:r,onDeleteComment:s}){let{resolvedTheme:t}=(0,y.useTheme)(),u=(0,g3.useMemo)(()=>f.filter(b=>b.file===a),[f,a]),v=`${k}-header`,w=`${k}-panel`,x=(0,g3.useMemo)(()=>{let b=u.map(a=>({lineNumber:a.lineNumber,metadata:{comment:a,type:"comment"},side:"left"===a.side?"deletions":"additions"}));return n&&b.push({lineNumber:n.lineNumber,metadata:{file:a,type:"input"},side:n.side}),b},[u,n,a]),z=(0,g3.useCallback)(b=>{let c=b.metadata;return c?"input"===c.type?(0,o.jsx)(hn,{onSubmit:async(c,d)=>{let e=await r(a,b.lineNumber,b.side,c,d);return e&&p(null),e},onCancel:()=>p(null)}):"comment"===c.type?(0,o.jsx)(ho,{comment:c.comment,onDelete:()=>s(c.comment.id)}):null:null},[a,r,p,s]),A=(0,g3.useCallback)(a=>(0,o.jsx)(hq,{getHoveredLine:a,onCommentTargetChange:p}),[p]),B=(0,g3.useCallback)(()=>{q()},[q]),C=i&&null===n,D=null;if(!C)if(b)if(e){var E;let e,f;D=(0,o.jsx)(hl,{file:a,children:(0,o.jsx)(hm,{patch:b,prerenderedHTML:d?.["light"===t?"light":"dark"],disableWorkerPool:!0,style:{colorScheme:"light"===t?"light":"dark"},options:{diffStyle:"split"===c?"split":"unified",disableFileHeader:!0,disableLineNumbers:!1,enableGutterUtility:!0,expansionLineCount:20,hunkSeparators:"line-info",lineDiffType:"word",lineHoverHighlight:"line",maxLineDiffLength:500,overflow:"wrap",theme:{dark:"github-dark",light:"github-light"},themeType:"light"===t?"light":"dark",unsafeCSS:(e=g4[E=t??"dark"],f=g5[E],`
|
|
16
|
+
)`}return(0,o.jsx)("div",{ref:b,role:"presentation","data-base-ui-inert":"",...e,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),gm=p.forwardRef(function(a,b){let{keepMounted:c=!1,...d}=a,{store:e}=fO(),f=e.useState("mounted"),g=e.useState("modal"),h=e.useState("open");return f||c?(0,o.jsx)(gc.Provider,{value:c,children:(0,o.jsxs)(ej,{ref:b,...d,children:[f&&!0===g&&(0,o.jsx)(gl,{ref:e.context.internalBackdropRef,inert:fm(!h)}),a.children]})}):null}),gn={},go={},gp="";class gq{lockCount=0;restore=null;timeoutLock=b_.create();timeoutUnlock=b_.create();acquire(a){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(a)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(a){let b,c,d,e,f;if(0===this.lockCount||null!==this.restore)return;let g=b1(a).documentElement,h=bf(g).getComputedStyle(g).overflowY;if("hidden"===h||"clip"===h){this.restore=P;return}let i=bF||!function(a){if("u"<typeof document)return!1;let b=b1(a);return bf(b).innerWidth-b.documentElement.clientWidth>0}(a);this.restore=i?(c=(b=b1(a)).documentElement,d=b.body,f={overflowY:(e=bi(c)?c:d).style.overflowY,overflowX:e.style.overflowX},Object.assign(e.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(e.style,f)}):function(a){let b=b1(a),c=b.documentElement,d=b.body,e=bf(c),f=0,g=0,h=!1,i=ci.create();if(bE&&(e.visualViewport?.scale??1)!==1)return()=>{};function j(){let b=e.getComputedStyle(c),i=e.getComputedStyle(d),j=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";f=c.scrollTop,g=c.scrollLeft,gn={scrollbarGutter:c.style.scrollbarGutter,overflowY:c.style.overflowY,overflowX:c.style.overflowX},gp=c.style.scrollBehavior,go={position:d.style.position,height:d.style.height,width:d.style.width,boxSizing:d.style.boxSizing,overflowY:d.style.overflowY,overflowX:d.style.overflowX,scrollBehavior:d.style.scrollBehavior};let k=c.scrollHeight>c.clientHeight,l=c.scrollWidth>c.clientWidth,m="scroll"===b.overflowY||"scroll"===i.overflowY,n="scroll"===b.overflowX||"scroll"===i.overflowX,o=Math.max(0,e.innerWidth-d.clientWidth),p=Math.max(0,e.innerHeight-d.clientHeight),q=parseFloat(i.marginTop)+parseFloat(i.marginBottom),r=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s=bi(c)?c:d;if(h=function(a){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let b=b1(a),c=b.documentElement,d=b.body,e=bi(c)?c:d,f=e.style.overflowY,g=c.style.scrollbarGutter;c.style.scrollbarGutter="stable",e.style.overflowY="scroll";let h=e.offsetWidth;e.style.overflowY="hidden";let i=e.offsetWidth;return e.style.overflowY=f,c.style.scrollbarGutter=g,h===i}(a)){c.style.scrollbarGutter=j,s.style.overflowY="hidden",s.style.overflowX="hidden";return}Object.assign(c.style,{scrollbarGutter:j,overflowY:"hidden",overflowX:"hidden"}),(k||m)&&(c.style.overflowY="scroll"),(l||n)&&(c.style.overflowX="scroll"),Object.assign(d.style,{position:"relative",height:q||p?`calc(100dvh - ${q+p}px)`:"100dvh",width:r||o?`calc(100vw - ${r+o}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),d.scrollTop=f,d.scrollLeft=g,c.setAttribute("data-base-ui-scroll-locked",""),c.style.scrollBehavior="unset"}function k(){Object.assign(c.style,gn),Object.assign(d.style,go),h||(c.scrollTop=f,c.scrollLeft=g,c.removeAttribute("data-base-ui-scroll-locked"),c.style.scrollBehavior=gp)}function l(){k(),i.request(j)}return j(),e.addEventListener("resize",l),()=>{i.cancel(),k(),"function"==typeof e.removeEventListener&&e.removeEventListener("resize",l)}}(a)}}let gr=new gq,gs=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);var b9=b9;let gt={...c5,modal:cR(a=>a.modal),nested:cR(a=>a.nested),nestedOpenDialogCount:cR(a=>a.nestedOpenDialogCount),disablePointerDismissal:cR(a=>a.disablePointerDismissal),openMethod:cR(a=>a.openMethod),descriptionElementId:cR(a=>a.descriptionElementId),titleElementId:cR(a=>a.titleElementId),viewportElement:cR(a=>a.viewportElement),role:cR(a=>a.role)};class gu extends cW{constructor(a){super(function(a={}){return{...c3(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...a}}(a),{popupRef:p.createRef(),backdropRef:p.createRef(),internalBackdropRef:p.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new c2,onOpenChange:void 0,onOpenChangeComplete:void 0},gt)}setOpen=(a,b)=>{if(b.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},a||null!=b.trigger||null==this.state.activeTriggerId||(b.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(a,b),b.isCanceled)return;let c={open:a,nativeEvent:b.event,reason:b.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",c);let d={open:a},e=b.trigger?.id??null;(e||a)&&(d.activeTriggerId=e,d.activeTriggerElement=b.trigger??null),this.update(d)}}let gv=((m={})[m.open=c9.open]="open",m[m.closed=c9.closed]="closed",m[m.startingStyle=c9.startingStyle]="startingStyle",m[m.endingStyle=c9.endingStyle]="endingStyle",m.nested="data-nested",m.nestedDialogOpen="data-nested-dialog-open",m),gw={...dg,...cp,nested:a=>a?{[gv.nested]:""}:null,nestedDialogOpen:a=>a?{[gv.nestedDialogOpen]:""}:null},gx=p.forwardRef(function(a,b){let{className:c,render:d,children:e,...f}=a,g=gd(),{store:h}=fO(),i=h.useState("open"),j=h.useState("nested"),k=h.useState("transitionStatus"),l=h.useState("nestedOpenDialogCount"),m=h.useState("mounted");return R("div",a,{enabled:g||m,state:{open:i,nested:j,transitionStatus:k,nestedDialogOpen:l>0},ref:[b,h.useStateSetter("viewportElement")],stateAttributesMapping:gw,props:[{role:"presentation",hidden:!m,style:{pointerEvents:i?void 0:"none"},children:e},f]})}),gy=p.forwardRef(function(a,b){let{render:c,className:d,id:e,...f}=a,{store:g}=fO(),h=dh(e);return g.useSyncedValueWithCleanup("titleElementId",h),R("h2",a,{ref:b,props:[{id:h},f]})});var b9=b9;let gz=p.forwardRef(function(a,b){let{render:c,className:d,disabled:e=!1,nativeButton:f=!0,id:g,payload:h,handle:i,...j}=a,k=fO(!0),l=i?.store??k?.store;if(!l)throw Error(H(79));let m=dh(g),n=l.useState("floatingRootContext"),o=l.useState("isOpenedByTrigger",m),q=p.useRef(null),{registerTrigger:r,isMountedByThisTrigger:s}=cs(m,q,l,{payload:h}),{getButtonProps:t,buttonRef:u}=fS({disabled:e,native:f}),v=ce([function(a,b={}){let c="rootStore"in a?a.rootStore:a,d=c.context.dataRef,{enabled:e=!0,event:f="click",toggle:g=!0,ignoreMouse:h=!1,stickIfOpen:i=!0,touchOpenDelay:j=0,reason:k=b9.triggerPress}=b,l=p.useRef(void 0),m=cj(),n=b0(),o=p.useMemo(()=>({onPointerDown(a){l.current=a.pointerType},onMouseDown(a){let b=l.current,e=a.nativeEvent,o=c.select("open");if(0!==a.button||"click"===f||bW(b,!0)&&h)return;let p=d.current.openEvent,q=p?.type,r=c.select("domReferenceElement")!==a.currentTarget,s=o&&r||!(o&&g&&(!p||!i||"click"===q||"mousedown"===q));if(bT(e.target)){let a=b8(k,e,e.target);s&&"touch"===b&&j>0?n.start(j,()=>{c.setOpen(!0,a)}):c.setOpen(s,a);return}let t=a.currentTarget;m.request(()=>{let a=b8(k,e,t);s&&"touch"===b&&j>0?n.start(j,()=>{c.setOpen(!0,a)}):c.setOpen(s,a)})},onClick(a){if("mousedown-only"===f)return;let b=l.current;if("mousedown"===f&&b){l.current=void 0;return}if(bW(b,!0)&&h)return;let e=c.select("open"),m=d.current.openEvent,o=c.select("domReferenceElement")!==a.currentTarget,p=e&&o||!(e&&g&&(!m||!i||bX(m))),q=b8(k,a.nativeEvent,a.currentTarget);p&&"touch"===b&&j>0?n.start(j,()=>{c.setOpen(!0,q)}):c.setOpen(p,q)},onKeyDown(){l.current=void 0}}),[d,f,h,c,i,g,m,n,j,k]);return p.useMemo(()=>e?{reference:o}:Q,[e,o])}(n,{enabled:null!=n})]),w=l.useState("triggerProps",s);return R("button",a,{state:{disabled:e,open:o},ref:[u,b,r,q],props:[v.getReferenceProps(),w,{[ed]:"",id:m},j,t],stateAttributesMapping:df})});var b9=b9;class gA{constructor(a){this.store=a??new gu}open(a){let b=a?this.store.context.triggerElements.getById(a):void 0;this.store.setOpen(!0,b8(b9.imperativeAction,void 0,b))}openWithPayload(a){this.store.set("payload",a),this.store.setOpen(!0,b8(b9.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,b8(b9.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}a.s(["Backdrop",0,fQ,"Close",0,fU,"Description",0,fV,"Handle",0,gA,"Popup",0,gk,"Portal",0,gm,"Root",0,function(a){let{children:b,open:c,defaultOpen:d=!1,onOpenChange:e,onOpenChangeComplete:f,disablePointerDismissal:g=!1,modal:h=!0,actionsRef:i,handle:j,triggerId:k,defaultTriggerId:l=null}=a,m=fO(!0),n=!!m,q=J(()=>j?.store??new gu({open:d,openProp:c,activeTriggerId:l,triggerIdProp:k,modal:h,disablePointerDismissal:g,nested:n})).current;ba(()=>{void 0===c&&!1===q.state.open&&!0===d&&q.update({open:!0,activeTriggerId:l})}),q.useControlledProp("openProp",c),q.useControlledProp("triggerIdProp",k),q.useSyncedValues({disablePointerDismissal:g,nested:n,modal:h}),q.useContextCallback("onOpenChange",e),q.useContextCallback("onOpenChangeComplete",f);let r=q.useState("payload");!function(a){let{store:b,parentContext:c,actionsRef:d}=a,e=b.useState("open"),f=b.useState("disablePointerDismissal"),g=b.useState("modal"),h=b.useState("popupElement"),{openMethod:i,triggerProps:j}=function(a){let b,c,d,e,[f,g]=p.useState(null),h=bx((b,c)=>{a||g(c||(bF?"touch":""))});b=p.useRef(a),bb(()=>{b.current!==a&&c(b.current)},[a,c=bx(b=>{b&&!a&&g(null)})]),bb(()=>{b.current=a},[a]);let{onClick:i,onPointerDown:j}=(d=p.useRef(""),e=p.useCallback(a=>{a.defaultPrevented||(d.current=a.pointerType,h(a,a.pointerType))},[h]),{onClick:p.useCallback(a=>{0===a.detail?h(a,"keyboard"):(h(a,"pointerType"in a?a.pointerType:d.current),d.current="")},[h]),onPointerDown:e});return p.useMemo(()=>({openMethod:f,triggerProps:{onClick:i,onPointerDown:j}}),[f,i,j])}(e);ct(b);let{forceUnmount:k}=cu(e,b),l=bx(a=>{let c=b8(a);return c.preventUnmountOnClose=()=>{b.set("preventUnmountingOnClose",!0)},c}),m=p.useCallback(()=>{b.setOpen(!1,l(b9.imperativeAction))},[b,l]);p.useImperativeHandle(d,()=>({unmount:k,close:m}),[k,m]);let n=c1({popupStore:b,onOpenChange:b.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[o,q]=p.useState(0),r=0===o,s=function(a,b={}){let c="rootStore"in a?a.rootStore:a,d=c.useState("open"),e=c.useState("floatingId"),f=c.useState("domReferenceElement"),g=c.useState("floatingElement"),{role:h="dialog"}=b,i=c$(),j=f?.id||i,k=p.useMemo(()=>bV(g)?.id||e,[g,e]),l=gs.get(h)??h,m=null!=b6(),n=p.useMemo(()=>"tooltip"===l||"label"===h?Q:{"aria-haspopup":"alertdialog"===l?"dialog":l,"aria-expanded":"false",..."listbox"===l&&{role:"combobox"},..."menu"===l&&m&&{role:"menuitem"},..."select"===h&&{"aria-autocomplete":"none"},..."combobox"===h&&{"aria-autocomplete":"list"}},[l,m,h]),o=p.useMemo(()=>"tooltip"===l||"label"===h?{[`aria-${"label"===h?"labelledby":"describedby"}`]:d?k:void 0}:{...n,"aria-expanded":d?"true":"false","aria-controls":d?k:void 0,..."menu"===l&&{id:j}},[l,k,d,j,h,n]),q=p.useMemo(()=>{let a={id:k,...l&&{role:l}};return"tooltip"===l||"label"===h?a:{...a,..."menu"===l&&{"aria-labelledby":j}}},[l,k,j,h]),r=p.useCallback(({active:a,selected:b})=>{let c={role:"option",...a&&{id:`${k}-fui-option`}};switch(h){case"select":case"combobox":return{...c,"aria-selected":b}}return{}},[k,h]);return p.useMemo(()=>({reference:o,floating:q,item:r,trigger:n}),[o,q,n,r])}(n),t=cd(n,{outsidePressEvent:()=>b.context.internalBackdropRef.current||b.context.backdropRef.current?"intentional":{mouse:"trap-focus"===g?"sloppy":"intentional",touch:"sloppy"},outsidePress(a){if(!b.context.outsidePressEnabledRef.current||"button"in a&&0!==a.button||"touches"in a&&1!==a.touches.length)return!1;let c=bR(a);return!!r&&!f&&(!g||!b.context.internalBackdropRef.current&&!b.context.backdropRef.current||b.context.internalBackdropRef.current===c||b.context.backdropRef.current===c||bP(c,h)&&!c?.hasAttribute("data-base-ui-portal"))},escapeKey:r});!function(a=!0,b=null){bb(()=>{if(a)return gr.acquire(b)},[a,b])}(e&&!0===g,h);let{getReferenceProps:u,getFloatingProps:v,getTriggerProps:w}=ce([s,t]);b.useContextCallback("onNestedDialogOpen",a=>{q(a+1)}),b.useContextCallback("onNestedDialogClose",()=>{q(0)}),p.useEffect(()=>(c?.onNestedDialogOpen&&e&&c.onNestedDialogOpen(o),c?.onNestedDialogClose&&!e&&c.onNestedDialogClose(),()=>{c?.onNestedDialogClose&&e&&c.onNestedDialogClose()}),[e,c,o]);let x=p.useMemo(()=>u(j),[u,j]),y=p.useMemo(()=>w(j),[w,j]),z=p.useMemo(()=>v(),[v]);b.useSyncedValues({openMethod:i,activeTriggerProps:x,inactiveTriggerProps:y,popupProps:z,floatingRootContext:n,nestedOpenDialogCount:o})}({store:q,actionsRef:i,parentContext:m?.store.context,onOpenChange:e,triggerIdProp:k});let s=p.useMemo(()=>({store:q}),[q]);return(0,o.jsx)(fN.Provider,{value:s,children:"function"==typeof b?b({payload:r}):b})},"Title",0,gy,"Trigger",0,gz,"Viewport",0,gx,"createHandle",0,function(){return new gA}],79021);var gB=a.i(79021),gB=gB;let gC=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),gD=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var gE={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"};let gF=(0,p.createContext)({}),gG=(0,p.forwardRef)(({color:a,size:b,strokeWidth:c,absoluteStrokeWidth:d,className:e="",children:f,iconNode:g,...h},i)=>{let{size:j=24,strokeWidth:k=2,absoluteStrokeWidth:l=!1,color:m="currentColor",className:n=""}=(0,p.useContext)(gF)??{},o=d??l?24*Number(c??k)/Number(b??j):c??k;return(0,p.createElement)("svg",{ref:i,...gE,width:b??j??gE.width,height:b??j??gE.height,stroke:a??m,strokeWidth:o,className:gC("lucide",n,e),...!f&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...g.map(([a,b])=>(0,p.createElement)(a,b)),...Array.isArray(f)?f:[f]])}),gH=(n=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],(d=(0,p.forwardRef)(({className:a,...b},c)=>(0,p.createElement)(gG,{ref:c,iconNode:n,className:gC(`lucide-${gD("x").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,"lucide-x",a),...b}))).displayName=gD("x"),d),gI=({...a})=>(0,o.jsx)(gB.Root,{"data-slot":"sheet",...a}),gJ=({...a})=>(0,o.jsx)(gB.Portal,{"data-slot":"sheet-portal",...a}),gK=({className:a,...b})=>(0,o.jsx)(gB.Backdrop,{"data-slot":"sheet-overlay",className:((...a)=>a3(T(a)))("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",a),...b}),gL=({className:a,children:b,side:c="right",showCloseButton:d=!0,...e})=>(0,o.jsxs)(gJ,{children:[(0,o.jsx)(gK,{}),(0,o.jsxs)(gB.Popup,{"data-slot":"sheet-content","data-side":c,className:((...a)=>a3(T(a)))("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",a),...e,children:[b,d&&(0,o.jsxs)(gB.Close,{"data-slot":"sheet-close",render:(0,o.jsx)(a6,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,o.jsx)(gH,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}),gM=({className:a,...b})=>(0,o.jsx)("div",{"data-slot":"sheet-header",className:((...a)=>a3(T(a)))("flex flex-col gap-0.5 p-4",a),...b}),gN=({className:a,...b})=>(0,o.jsx)(gB.Title,{"data-slot":"sheet-title",className:((...a)=>a3(T(a)))("font-heading text-base font-medium text-foreground",a),...b}),gO=({className:a,...b})=>(0,o.jsx)(gB.Description,{"data-slot":"sheet-description",className:((...a)=>a3(T(a)))("text-sm text-muted-foreground",a),...b}),gP=(0,p.createContext)(null),gQ=({defaultOpen:a=!0,open:b,onOpenChange:c,className:d,style:e,children:f,...g})=>{let h=(()=>{let[a,b]=(0,p.useState)();return(0,p.useEffect)(()=>{let a=window.matchMedia("(max-width: 767px)"),c=()=>{b(window.innerWidth<768)};return a.addEventListener("change",c),b(window.innerWidth<768),()=>a.removeEventListener("change",c)},[]),!!a})(),[i,j]=(0,p.useState)(!1),[k,l]=(0,p.useState)(a),m=b??k,n=(0,p.useCallback)(a=>{let b="function"==typeof a?a(m):a;c?c(b):l(b),cookieStore.set({expires:Date.now()+6048e5,name:"sidebar_state",path:"/",value:String(b)})},[c,m]),q=(0,p.useCallback)(()=>h?j(a=>!a):n(a=>!a),[h,n]);(0,p.useEffect)(()=>{let a=a=>{"b"===a.key&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),q())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[q]);let r=m?"expanded":"collapsed",s=(0,p.useMemo)(()=>({isMobile:h,open:m,openMobile:i,setOpen:n,setOpenMobile:j,state:r,toggleSidebar:q}),[r,m,n,h,i,q]);return(0,o.jsx)(gP.Provider,{value:s,children:(0,o.jsx)(fx,{delay:0,children:(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",d),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...e},...g,children:f})})})},gR=({side:a="left",variant:b="sidebar",collapsible:c="offcanvas",className:d,children:e,...f})=>{let{isMobile:g,state:h,openMobile:i,setOpenMobile:j}=(()=>{let a=(0,p.useContext)(gP);if(!a)throw Error("useSidebar must be used within a SidebarProvider.");return a})();return"none"===c?(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",d),"data-slot":"sidebar",...f,children:e}):g?(0,o.jsx)(gI,{onOpenChange:j,open:i,...f,children:(0,o.jsxs)(gL,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:a,style:{"--sidebar-width":"18rem"},children:[(0,o.jsxs)(gM,{className:"sr-only",children:[(0,o.jsx)(gN,{children:"Sidebar"}),(0,o.jsx)(gO,{children:"Displays the mobile sidebar."})]}),(0,o.jsx)("div",{className:"flex h-full w-full flex-col",children:e})]})}):(0,o.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":"collapsed"===h?c:"","data-side":a,"data-slot":"sidebar","data-state":h,"data-variant":b,children:[(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===b||"inset"===b?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"),"data-slot":"sidebar-gap"}),(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===b||"inset"===b?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",d),"data-slot":"sidebar-container",...f,children:(0,o.jsx)("div",{className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:e})})]})},gS=({className:a,...b})=>(0,o.jsx)("main",{className:((...a)=>a3(T(a)))("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",a),"data-slot":"sidebar-inset",...b}),gT=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex flex-col gap-2 p-2",a),"data-sidebar":"header","data-slot":"sidebar-header",...b}),gU=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex flex-col gap-2 p-2",a),"data-sidebar":"footer","data-slot":"sidebar-footer",...b}),gV=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),"data-sidebar":"content","data-slot":"sidebar-content",...b}),gW="diffhub:file-tree:expand-all",gX="diffhub:file-tree:collapse-all",gY=a=>a.map(a=>{if("file"===a.type)return a;let b=gY(a.children);if(1===b.length&&"folder"===b[0].type){let c=b[0];return{...c,name:`${a.name}/${c.name}`}}return{...a,children:b}}),gZ=(a,b=[])=>{for(let c of a)"folder"===c.type&&(b.push(c.path),gZ(c.children,b));return b},g$=(0,p.memo)(function({node:a,depth:b,isSelected:c,commentCount:d,onNavigate:e}){let{insertions:f,deletions:g}=a.fileStat,h=fK;f>0&&0===g?h=fL:g>0&&0===f&&(h=fM);let i="shrink-0 text-sidebar-foreground/40";return f>0&&0===g?i="shrink-0 text-diff-green":g>0&&0===f&&(i="shrink-0 text-destructive"),(0,o.jsxs)("button",{type:"button","aria-current":c?"true":void 0,className:((...a)=>a3(T(a)))("flex w-full cursor-pointer items-center gap-1.5 py-1 text-left transition-colors",c?"bg-sidebar-accent text-sidebar-accent-foreground":"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),"data-file-path":a.path,"data-selected":c?"true":void 0,style:{containIntrinsicBlockSize:"26px",contentVisibility:"auto",paddingLeft:16*b+8,paddingRight:8},onClick:()=>e(a.path),children:[(0,o.jsx)(h,{size:16,className:i}),(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("span",{className:"flex-1 truncate text-[12px] leading-tight text-muted-foreground"}),children:a.name}),(0,o.jsx)(fA,{side:"right",children:a.path})]}),d>0&&(0,o.jsxs)("span",{className:"flex shrink-0 items-center gap-0.5 text-[10px] text-sidebar-foreground/50",children:[(0,o.jsx)(fG,{size:10}),d]})]})}),g_=(0,p.memo)(function({node:a,depth:b,isCollapsed:c,onToggle:d,children:e}){let f=16*b+8,g=a4(a.name),h=g.split("/");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("button",{type:"button","aria-expanded":!c,className:"flex w-full items-center gap-1.5 py-1 text-left transition-colors hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sidebar-ring",style:{paddingLeft:f,paddingRight:8},onClick:()=>d(a.path),children:[c?(0,o.jsx)(fH,{size:16,className:"shrink-0 text-sidebar-foreground/50"}):(0,o.jsx)(fI,{size:16,className:"shrink-0 text-sidebar-foreground/50"}),(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("span",{className:"truncate text-[12px] text-muted-foreground"}),children:h.map((a,b)=>{let c=h.slice(0,b+1).join("/");return(0,o.jsxs)(p.Fragment,{children:[a,b<h.length-1&&(0,o.jsx)("span",{className:"text-sidebar-foreground/30",children:"/"})]},c)})}),a.name!==g&&(0,o.jsx)(fA,{side:"right",children:a.name})]})]}),!c&&(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"pointer-events-none absolute inset-y-0 border-l border-sidebar-border/60",style:{left:f+8}}),e]})]})}),g0=(0,p.memo)(function a({nodes:b,depth:c,selectedFile:d,commentsByFile:e,collapsedFolders:f,onToggleFolder:g,onNavigate:h}){return b.map(b=>"folder"===b.type?(0,o.jsx)(g_,{node:b,depth:c,isCollapsed:f.has(b.path),onToggle:g,children:(0,o.jsx)(a,{nodes:b.children,depth:c+1,selectedFile:d,commentsByFile:e,collapsedFolders:f,onToggleFolder:g,onNavigate:h})},b.path):(0,o.jsx)(g$,{node:b,depth:c,isSelected:d===b.path,commentCount:e.get(b.path)??0,onNavigate:h},b.path))}),g1=({files:a,selectedFile:b,onSelectFile:c,comments:d,filterQuery:e,onFilterChange:f,isLoading:g=!1,insertions:h,deletions:i})=>{let[j,k]=(0,p.useState)(new Set),[l,m]=(0,p.useState)(256),n=(0,p.useRef)(null);(0,p.useEffect)(()=>{let a=()=>{n.current=null,document.body.style.cursor="",document.body.style.userSelect=""},b=a=>{n.current&&m(Math.max(8,n.current.startWidth+a.clientX-n.current.startX))},c=()=>{n.current&&a()};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",c),window.addEventListener("blur",c),()=>{a(),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",c),window.removeEventListener("blur",c)}},[]);let q=(0,p.useCallback)(a=>{a.preventDefault(),n.current={startWidth:l,startX:a.clientX},document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[l]),r=(0,p.useMemo)(()=>e?a.filter(a=>a.file.toLowerCase().includes(e.toLowerCase())):a,[a,e]),s=(0,p.useMemo)(()=>gY((a=>{let b={files:[],folders:{}};for(let c of a){let a=c.file.split("/"),d=b;for(let b=0;b<a.length-1;b+=1){let c=a[b];d.folders[c]||(d.folders[c]={files:[],folders:{}}),d=d.folders[c]}d.files.push(c)}let c=(a,b,d)=>{let e=d?`${d}/${a}`:a,f=[];for(let[a,d]of Object.entries(b.folders).toSorted())f.push(c(a,d,e));for(let a of b.files){let b=a.file.split("/");f.push({fileStat:a,name:b.at(-1)??a.file,path:a.file,type:"file"})}return{children:f,name:a,path:e,type:"folder"}},d=[];for(let[a,e]of Object.entries(b.folders).toSorted())d.push(c(a,e,""));for(let a of b.files)d.push({fileStat:a,name:a.file,path:a.file,type:"file"});return d})(r)),[r]),t=(0,p.useMemo)(()=>gZ(s),[s]);(0,p.useEffect)(()=>{let a=()=>{k(new Set)},b=()=>{k(new Set(t))};return window.addEventListener(gW,a),window.addEventListener(gX,b),()=>{window.removeEventListener(gW,a),window.removeEventListener(gX,b)}},[t]);let u=(0,p.useMemo)(()=>{let a=new Map;for(let b of d)a.set(b.file,(a.get(b.file)??0)+1);return a},[d]),v=(0,p.useCallback)(a=>{k(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[]),w=(0,p.useCallback)(a=>{let b=new CustomEvent("diffhub:file:navigate",{cancelable:!0,detail:{file:a,source:"sidebar"}});window.dispatchEvent(b)&&c(a,"auto")},[c]),x=null;return x=g?(0,o.jsx)("div",{className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:(0,o.jsx)("p",{className:"animate-pulse text-xs text-sidebar-foreground/50",children:"Loading…"})}):0===r.length?(0,o.jsxs)("div",{className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:[(0,o.jsx)("p",{className:"text-xs text-sidebar-foreground/50",children:"No changes"}),e&&(0,o.jsxs)("p",{className:"text-[10px] text-sidebar-foreground/30",children:["No files match “",e,"”"]})]}):(0,o.jsx)(g0,{nodes:s,depth:0,selectedFile:b,commentsByFile:u,collapsedFolders:j,onToggleFolder:v,onNavigate:w}),(0,o.jsx)(fx,{delay:400,children:(0,o.jsxs)(gR,{collapsible:"none",className:"sticky top-0 h-svh self-start overflow-hidden border-r border-sidebar-border",style:{"--sidebar-width":`${l}px`},children:[(0,o.jsx)(gT,{className:"border-b border-sidebar-border h-[52px] flex-row items-center py-0 px-2",children:(0,o.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,o.jsx)(fJ,{size:12,className:"pointer-events-none absolute left-2.5 text-sidebar-foreground/40"}),(0,o.jsx)("input",{type:"text",value:e,onChange:a=>f(a.target.value),placeholder:"Filter files…","aria-label":"Filter files",className:"w-full rounded-md border border-sidebar-border bg-sidebar-accent py-1.5 pl-7 pr-7 text-xs text-sidebar-foreground placeholder:text-sidebar-foreground/40 transition-colors focus:border-sidebar-ring/50 focus:outline-none"}),e&&(0,o.jsx)("button",{type:"button",onClick:()=>f(""),"aria-label":"Clear filter",className:"absolute right-2 text-sm leading-none text-sidebar-foreground/40 transition-colors hover:text-sidebar-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sidebar-ring",children:"×"})]})}),(0,o.jsx)(gV,{className:"gap-0 py-1",children:x}),(0,o.jsx)(gU,{className:"border-t border-sidebar-border px-3 py-2",children:(0,o.jsxs)("div",{className:"flex items-center gap-2 text-[12px] font-mono text-sidebar-foreground/60",children:[(0,o.jsxs)("span",{children:[a.length," ",1===a.length?"file":"files"]}),h>0&&(0,o.jsxs)("span",{className:"text-diff-green",children:["+",h]}),i>0&&(0,o.jsxs)("span",{className:"text-destructive",children:["−",i]})]})}),(0,o.jsx)("div",{"aria-hidden":!0,className:"absolute inset-y-0 right-0 z-20 w-[5px] cursor-col-resize after:absolute after:inset-y-0 after:left-1/2 after:-translate-x-1/2 after:w-px after:transition-colors hover:after:bg-sidebar-border",onMouseDown:q})]})})};var g2=a.i(19721),g3=p;let g4={dark:{addition:"oklch(0.696 0.15 145)",deletion:"oklch(0.704 0.191 22.216)"},light:{addition:"oklch(0.696 0.17 145)",deletion:"oklch(0.577 0.245 27.325)"}},g5={dark:{additionBg:"rgba(74, 222, 128, 0.12)",additionBgNumber:"rgba(74, 222, 128, 0.18)",additionEmphasis:"rgba(74, 222, 128, 0.25)",deletionBg:"rgba(248, 113, 113, 0.12)",deletionBgNumber:"rgba(248, 113, 113, 0.18)",deletionEmphasis:"rgba(248, 113, 113, 0.25)"},light:{additionBg:"rgba(34, 197, 94, 0.08)",additionBgNumber:"rgba(34, 197, 94, 0.12)",additionEmphasis:"rgba(34, 197, 94, 0.20)",deletionBg:"rgba(239, 68, 68, 0.08)",deletionBgNumber:"rgba(239, 68, 68, 0.12)",deletionEmphasis:"rgba(239, 68, 68, 0.20)"}},g6=({value:a,label:b="Copy file path",copiedLabel:c="Copied!",delay:d=400,className:e})=>{let[f,g]=(0,p.useState)(!1),h=(0,p.useCallback)(async()=>{try{await navigator.clipboard.writeText(a),g(!0),setTimeout(()=>g(!1),1500)}catch{}},[a]);return(0,o.jsx)(fx,{delay:d,children:(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)(a6,{variant:"ghost",size:"icon-xs",onClick:h,"aria-label":f?c:b,className:((...a)=>a3(T(a)))("size-6",f?"text-diff-green":"text-muted-foreground hover:text-foreground hover:bg-secondary",e)}),children:f?(0,o.jsx)(r,{size:12}):(0,o.jsx)(t,{size:12})}),(0,o.jsx)(fA,{side:"bottom",children:f?c:b})]})})},g7=({file:a,insertions:b,deletions:c,commentCount:d,repoPath:e,collapsed:f=!1,active:g=!1,onToggleCollapse:h,headingId:i,panelId:j})=>{let k=a4(a),l=k.lastIndexOf("/"),m=-1===l?"":k.slice(0,l),n=-1===l?k:k.slice(l+1);return(0,o.jsx)(fx,{delay:400,children:(0,o.jsxs)("div",{"data-active":g?"true":void 0,"data-state":f?"collapsed":"expanded",className:"flex items-center gap-2 px-3 h-9 border-b border-border bg-card sticky top-[52px] z-10",children:[(0,o.jsxs)("h3",{id:i,className:"flex min-w-0 flex-1 items-center gap-2 text-[12px] font-normal",children:[(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)(a6,{variant:"ghost",size:"icon-xs",onClick:()=>{h?h():window.dispatchEvent(new CustomEvent("diffhub:file:toggle-collapse",{detail:{file:a}}))},"aria-expanded":!f,"aria-controls":j,"aria-label":f?"Expand file section":"Collapse file section",className:"text-muted-foreground hover:bg-transparent active:bg-transparent aria-expanded:bg-transparent"}),children:(0,o.jsx)(s,{size:14,className:((...a)=>a3(T(a)))("transition-transform duration-150",f&&"-rotate-90")})}),(0,o.jsx)(fA,{side:"bottom",children:f?"Expand file section":"Collapse file section"})]}),(0,o.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,o.jsxs)(fy,{children:[(0,o.jsxs)(fz,{render:(0,o.jsx)("span",{className:"flex min-w-0 items-center gap-1"}),children:[(0,o.jsxs)("span",{className:"flex min-w-0 items-baseline gap-0 font-mono",children:[m&&(0,o.jsxs)("span",{className:"text-muted-foreground truncate shrink",children:[m,"/"]}),(0,o.jsx)("span",{className:"text-muted-foreground font-normal shrink-0",children:n})]}),(0,o.jsx)(g6,{value:`${e}/${a}`})]}),a!==k&&(0,o.jsx)(fA,{side:"bottom",children:a})]}),(0,o.jsxs)("span",{className:"flex items-center gap-1 shrink-0",children:[b>0&&(0,o.jsxs)("span",{className:"font-mono text-[12px] text-diff-green",children:["+",b]}),c>0&&(0,o.jsxs)("span",{className:"font-mono text-[12px] text-destructive",children:["−",c]})]})]})]}),d>0&&(0,o.jsxs)("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-diff-purple/10 text-diff-purple text-[10px] shrink-0",children:[(0,o.jsx)(fG,{size:10}),d]})]})})},g8=q("BranchIcon",(0,p.forwardRef)((a,b)=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",ref:b,...a},p.createElement("circle",{cx:6.5,cy:6,r:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),p.createElement("circle",{cx:6.5,cy:18,r:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),p.createElement("circle",{cx:17.5,cy:6,r:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),p.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.5 8v8M17.5 8v1c0 1.6569-1.3431 3-3 3h-5c-1.6569 0-3 1.3431-3 3v1"})))),g9=q("TrashCan2Icon",(0,p.forwardRef)((a,b)=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",ref:b,...a},p.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6v12c0 1.6569 1.3431 3 3 3h6c1.6569 0 3-1.3431 3-3V6M6 6h12M6 6H4m14 0h2M9 6c0-1.6569 1.3431-3 3-3s3 1.3431 3 3m-1 5v5m-4-5v5"})))),ha=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",a),"data-slot":"empty",...b}),hb=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex max-w-sm flex-col items-center gap-2 text-center",a),"data-slot":"empty-header",...b}),hc=V("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}}}),hd=({className:a,variant:b="default",...c})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))(hc({className:a,variant:b})),"data-slot":"empty-icon","data-variant":b,...c}),he=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("font-medium text-lg tracking-tight",a),"data-slot":"empty-title",...b}),hf=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("text-muted-foreground text-sm/relaxed [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",a),"data-slot":"empty-description",...b}),hg=({className:a,...b})=>(0,o.jsx)("div",{className:((...a)=>a3(T(a)))("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",a),"data-slot":"empty-content",...b}),hh=({className:a,children:b,...c})=>(0,o.jsx)("kbd",{className:((...a)=>a3(T(a)))("inline-flex h-5 items-center rounded border border-border bg-muted px-1.5 font-mono text-[10px] text-muted-foreground",a),...c,children:b}),hi={"[must-fix]":{border:"border-l-destructive",text:"text-destructive"},"[nit]":{border:"border-l-muted-foreground/40",text:"text-muted-foreground"},"[question]":{border:"border-l-diff-purple",text:"text-diff-purple"},"[suggestion]":{border:"border-l-diff-green",text:"text-diff-green"}},hj=[],hk=null,hl=null,hm=0,hn=()=>(0,o.jsxs)("div",{className:"animate-pulse",children:[(0,o.jsx)("div",{className:"h-9 border-b border-border bg-card"}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3 bg-diff-green/5",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-diff-green/20"}),(0,o.jsx)("div",{className:"h-2 rounded bg-diff-green/15",style:{width:"67%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-muted"}),(0,o.jsx)("div",{className:"h-2 rounded bg-muted",style:{width:"82%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3 bg-destructive/5",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-destructive/20"}),(0,o.jsx)("div",{className:"h-2 rounded bg-destructive/15",style:{width:"54%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-muted"}),(0,o.jsx)("div",{className:"h-2 rounded bg-muted",style:{width:"78%"}})]}),(0,o.jsxs)("div",{className:"flex h-[22px] items-center gap-3 px-3 bg-diff-green/5",children:[(0,o.jsx)("div",{className:"h-2 w-6 shrink-0 rounded bg-diff-green/20"}),(0,o.jsx)("div",{className:"h-2 rounded bg-diff-green/15",style:{width:"91%"}})]})]})]}),ho=({onRender:a,variant:b,changes:c})=>{let d="large"===b;return(0,o.jsxs)("div",{className:"mx-4 my-4 flex flex-col items-center justify-center gap-2 rounded-md border border-dashed border-border bg-muted/20 p-6","data-testid":"deferred-diff-placeholder","data-variant":b,children:[(0,o.jsx)(a6,{size:"sm",variant:"default",onClick:a,children:"Load diff"}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground",children:d?"Large diffs are not rendered by default.":"Diff rendering is deferred until this file becomes active or visible."}),d&&void 0!==c?(0,o.jsxs)("p",{className:"text-xs text-muted-foreground/70",children:[c.toLocaleString()," changed lines"]}):null]})};class hp extends g3.Component{constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a,b){console.error("[diffhub] PatchDiff threw",{componentStack:b.componentStack,error:a.message,file:this.props.file})}render(){return this.state.error?(0,o.jsxs)("div",{className:"px-4 py-6 text-sm text-destructive",children:["Failed to render diff for this file: ",this.state.error.message]}):this.props.children}}let hq=(0,g2.default)(async()=>{},{loadableGenerated:{modules:[11251]},loading:()=>(0,o.jsx)(hn,{}),ssr:!1}),hr=({onSubmit:a,onCancel:b})=>{let[c,d]=(0,g3.useState)(""),[e,f]=(0,g3.useState)(null),[g,h]=(0,g3.useState)(!1),i=(0,g3.useCallback)(a=>{a?.focus({preventScroll:!0})},[]),j=(0,g3.useCallback)(async()=>{let b=c.trim();!b||g||(f(null),h(!0),await a(b,"").catch(()=>!1)||f("Failed to save comment."),h(!1))},[c,g,a]);return(0,o.jsxs)("div",{className:"my-1 mx-4 rounded-md border border-border bg-background p-3 shadow-lg dark:shadow-none",children:[(0,o.jsx)("textarea",{ref:i,value:c,onChange:a=>d(a.target.value),placeholder:"Add a comment for the AI",rows:3,onKeyDown:a=>{("Enter"===a.key&&a.metaKey||"Return"===a.key)&&c.trim()&&j(),"Escape"===a.key&&b()},className:"w-full resize-none rounded border-0 bg-transparent px-0 py-0 font-sans text-sm text-foreground placeholder:text-muted-foreground focus:outline-none"}),(0,o.jsxs)("div",{className:"mt-2 flex justify-end gap-2",children:[(0,o.jsx)(a6,{variant:"ghost",size:"sm",onClick:b,children:"Cancel"}),(0,o.jsx)(a6,{size:"sm",disabled:!c.trim()||g,onClick:()=>void j(),children:g?"Saving…":"Comment"})]}),e&&(0,o.jsx)("p",{className:"mt-2 text-xs text-destructive",children:e})]})},hs=({comment:a,onDelete:b})=>{let[c,d]=(0,g3.useState)(!1),[e,f]=(0,g3.useState)(null),[g,h]=(0,g3.useState)(!1),i=(0,g3.useRef)(null);(0,g3.useEffect)(()=>()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]);let j=async()=>{let b=a.tag?`${a.tag} ${a.body}`:a.body;try{await navigator.clipboard.writeText(b),i.current&&clearTimeout(i.current),d(!0),i.current=setTimeout(()=>{d(!1),i.current=null},1500)}catch{}},k=(0,g3.useCallback)(async()=>{g||(f(null),h(!0),await b().catch(()=>!1)||f("Failed to delete comment."),h(!1))},[g,b]),l=a.tag?hi[a.tag]?.border??"border-l-ring/40":"border-l-ring/40";return(0,o.jsxs)("div",{className:((...a)=>a3(T(a)))("group my-1 mx-4 rounded-md border border-border bg-card shadow-sm dark:shadow-none overflow-hidden border-l-2",l),children:[(0,o.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2.5",children:[a.tag&&(0,o.jsx)("span",{className:((...a)=>a3(T(a)))("shrink-0 mt-0.5 text-[11px]",hi[a.tag]?.text??"text-muted-foreground"),children:a.tag}),(0,o.jsx)("p",{className:"flex-1 text-sm text-foreground leading-relaxed",children:a.body}),(0,o.jsx)(fx,{delay:400,children:(0,o.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:[(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("button",{type:"button",onClick:j,"aria-label":c?"Comment copied":"Copy comment",className:((...a)=>a3(T(a)))("rounded p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50",c?"text-diff-green":"text-muted-foreground hover:text-foreground hover:bg-secondary")}),children:c?(0,o.jsx)(r,{size:12}):(0,o.jsx)(t,{size:12})}),(0,o.jsx)(fA,{side:"top",children:c?"Copied!":"Copy comment"})]}),(0,o.jsxs)(fy,{children:[(0,o.jsx)(fz,{render:(0,o.jsx)("button",{type:"button",onClick:k,"aria-label":"Delete comment",disabled:g,className:"rounded p-1 text-muted-foreground transition-colors hover:text-destructive hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50"}),children:(0,o.jsx)(g9,{size:12})}),(0,o.jsx)(fA,{side:"top",children:"Delete comment"})]})]})})]}),(0,o.jsxs)("div",{className:"border-t border-border/40 px-3 py-1 flex items-center gap-2 text-[10px] text-muted-foreground/60",children:[(0,o.jsxs)("span",{children:["L",a.lineNumber]}),a.createdAt&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:"·"}),(0,o.jsx)("span",{children:(a=>{let b=Math.floor((Date.now()-new Date(a).getTime())/1e3);if(b<60)return"just now";let c=Math.floor(b/60);if(c<60)return`${c}m ago`;let d=Math.floor(c/60);if(d<24)return`${d}h ago`;let e=Math.floor(d/24);return`${e}d ago`})(a.createdAt)})]})]}),e&&(0,o.jsx)("p",{className:"px-3 pb-2 text-xs text-destructive",children:e})]})},ht=a=>`diff-${encodeURIComponent(a)}`,hu=(0,g3.memo)(function({getHoveredLine:a,onCommentTargetChange:b}){let c=(0,g3.useCallback)(()=>{let c=a();c&&b({lineNumber:c.lineNumber,side:c.side})},[a,b]);return(0,o.jsx)("button",{type:"button",className:"diffhub-gutter-btn",title:"Add comment for AI",onClick:c,children:"+"})}),hv=(0,g3.memo)(function({file:a,filePatch:b,layout:c,prerenderedHTML:d,shouldRenderPatch:e,comments:f,fileStat:g,isLargeFile:h,collapsed:i,active:j=!1,sectionId:k,onToggleCollapse:l,repoPath:m,commentTarget:n,onCommentTargetChange:p,onRenderPatch:q,onAddComment:r,onDeleteComment:s}){let{resolvedTheme:t}=(0,y.useTheme)(),u=`${k}-header`,v=`${k}-panel`,w=(0,g3.useMemo)(()=>{let b=f.map(a=>({lineNumber:a.lineNumber,metadata:{comment:a,type:"comment"},side:"left"===a.side?"deletions":"additions"}));return n&&b.push({lineNumber:n.lineNumber,metadata:{file:a,type:"input"},side:n.side}),b},[f,n,a]),x=(0,g3.useCallback)(b=>{let c=b.metadata;return c?"input"===c.type?(0,o.jsx)(hr,{onSubmit:async(c,d)=>{let e=await r(a,b.lineNumber,b.side,c,d);return e&&p(null),e},onCancel:()=>p(null)}):"comment"===c.type?(0,o.jsx)(hs,{comment:c.comment,onDelete:()=>s(c.comment.id)}):null:null},[a,r,p,s]),z=(0,g3.useCallback)(a=>(0,o.jsx)(hu,{getHoveredLine:a,onCommentTargetChange:p}),[p]),A=(0,g3.useCallback)(()=>{q()},[q]),B=i&&null===n,C=null;if(!B)if(b)if(e){var D;let e,f;C=(0,o.jsx)(hp,{file:a,children:(0,o.jsx)(hq,{patch:b,prerenderedHTML:d?.["light"===t?"light":"dark"],disableWorkerPool:!0,style:{colorScheme:"light"===t?"light":"dark"},options:{diffStyle:"split"===c?"split":"unified",disableFileHeader:!0,disableLineNumbers:!1,enableGutterUtility:!0,expansionLineCount:20,hunkSeparators:"line-info",lineDiffType:"word",lineHoverHighlight:"line",maxLineDiffLength:500,overflow:"wrap",theme:{dark:"github-dark",light:"github-light"},themeType:"light"===t?"light":"dark",unsafeCSS:(e=g4[D=t??"dark"],f=g5[D],`
|
|
17
17
|
[data-diff-span] { border-radius: 0; }
|
|
18
18
|
:host {
|
|
19
19
|
/* Base colors for additions/deletions */
|
|
@@ -40,7 +40,7 @@ ${b.join("\n")}`})(f);await navigator.clipboard.writeText(a),F.current&&clearTim
|
|
|
40
40
|
--diffs-fg-number-addition-override: ${e.addition};
|
|
41
41
|
--diffs-fg-number-deletion-override: ${e.deletion};
|
|
42
42
|
}
|
|
43
|
-
`)},lineAnnotations:
|
|
44
|
-
`:"")}return b})(f.patch??"")),{baseBranch:f.baseBranch,branch:f.branch,generation:f.generation,mergeBase:f.mergeBase,patchesByFile:e,prerenderedHTMLByFile:f.prerenderedHTMLByFile,reviewKeysByFile:f.reviewKeysByFile??(h=f.generation,Object.fromEntries(Object.entries(e).map(([a,b])=>[a,`${h}:${(a=>{let b=0;for(let c=0;c<a.length;c+=1)b=Math.trunc(Math.imul(31,b)+(a.codePointAt(c)??0));return Math.abs(b).toString(36)})(`${a}:${b}`)}`]))),sourceFingerprint:g});if(a!==K.current||c!==D.current||b!==E.current){console.info("[diffhub] fetchDiff response stale",{fingerprint:c,generation:b,latestRequestId:K.current,requestId:a}),null!==E.current&&(L.current+=1,L.current>=3&&(console.warn("[diffhub] fetchDiff stale-drop limit reached, invalidating",{drops:L.current}),L.current=0,K.current+=1,C.current=null,j(null)),J.current=!0);return}L.current=0,console.info("[diffhub] fetchDiff success",{fileCount:Object.keys(k.patchesByFile).length,fingerprint:c,generation:k.generation,requestId:a}),P(()=>j(k))}catch(d){console.error("[diffhub] fetchDiff threw",{error:d,fingerprint:c,generation:b,mode:A.current,requestId:a}),a===K.current&&v(d instanceof Error?d.message:String(d))}finally{clearTimeout(e)}},[
|
|
43
|
+
`)},lineAnnotations:w,renderAnnotation:x,renderGutterUtility:z},a)})}else C=(0,o.jsx)(ho,{onRender:A,variant:h?"large":"auto",changes:g?.changes});else C=(0,o.jsx)("div",{className:"px-4 py-6 text-sm text-muted-foreground",children:"No textual patch available for this file."});return(0,o.jsxs)("div",{"data-filename":a,className:"font-sans",children:[(0,o.jsx)(g7,{file:a,insertions:g?.insertions??0,deletions:g?.deletions??0,commentCount:f.length,repoPath:m,collapsed:i,active:j,onToggleCollapse:l,headingId:u,panelId:v}),(0,o.jsx)("div",{id:v,role:"region","aria-labelledby":u,hidden:B,children:C})]})}),hw=(0,g3.memo)(function({file:a,filePatch:b,layout:c,prerenderedHTML:d,deferPatchRendering:e,isLargeFile:f,comments:g,fileStat:h,collapsed:i,active:j,onToggleCollapse:k,onVisible:l,repoPath:m,onAddComment:n,onDeleteComment:p}){let q=(0,g3.useRef)(null),[r,s]=(0,g3.useState)(null),t=e||f,[u,v]=(0,g3.useState)(()=>!t||j);!u&&(j||null!==r)&&v(!0);let w=(0,g3.useCallback)(()=>{v(!0)},[]),x=(0,g3.useRef)(l);(0,g3.useEffect)(()=>{x.current=l},[l]),(0,g3.useEffect)(()=>{let b=q.current;if(!b||"u"<typeof IntersectionObserver)return;let c=new IntersectionObserver(b=>{let[c]=b;if(c){var d;c.isIntersecting&&c.intersectionRatio>=.35&&(d=x.current,hk=a,hl=d,0===hm&&(hm=requestAnimationFrame(()=>{hm=0;let a=hk,b=hl;hk=null,hl=null,a&&b&&b(a)})))}},{rootMargin:"-52px 0px -55% 0px",threshold:[.35,.6]});return c.observe(b),()=>c.disconnect()},[a]);let y=ht(a);return(0,o.jsx)("section",{ref:q,id:y,"data-file-section":a,className:"scroll-mt-[52px]",children:(0,o.jsx)(hv,{file:a,filePatch:b,layout:c,prerenderedHTML:d?.[c],shouldRenderPatch:u||!t,comments:g,fileStat:h,isLargeFile:f,collapsed:i,active:j,sectionId:y,onToggleCollapse:k,repoPath:m,commentTarget:r,onCommentTargetChange:s,onRenderPatch:w,onAddComment:n,onDeleteComment:p})})}),hx=({patchesByFile:a,prerenderedHTMLByFile:b,layout:c,comments:d,onAddComment:e,onDeleteComment:f,activeFileId:g,fileStats:h,collapsedFiles:i,onToggleCollapse:j,onActiveFileChange:k,repoPath:l})=>{let m=(0,g3.useMemo)(()=>{let a=new Map;for(let b of h)a.set(b.file,b);return a},[h]),n=(0,g3.useMemo)(()=>(a=>{let b={files:[],folders:new Map};for(let c of a){let a=c.split("/"),d=b;for(let b=0;b<a.length-1;b+=1){let c=a[b];d.folders.has(c)||d.folders.set(c,{files:[],folders:new Map});let e=d.folders.get(c);e&&(d=e)}d.files.push(c)}let c=[],d=a=>{for(let[,b]of[...a.folders.entries()].toSorted((a,b)=>a[0].localeCompare(b[0])))d(b);let b=[...a.files].toSorted((a,b)=>{let c=a.split("/").at(-1)??a,d=b.split("/").at(-1)??b;return c.localeCompare(d)});c.push(...b)};return d(b),c})([...h.map(a=>a.file),...Object.keys(a).filter(a=>!m.has(a))]),[m,h,a]),p=(0,g3.useMemo)(()=>{let a=new Map;for(let b of d){let c=a.get(b.file);c?c.push(b):a.set(b.file,[b])}return a},[d]),q=n.length>=24&&0===Object.keys(b??{}).length,r=(0,g3.useMemo)(()=>{let a=new Map;for(let b of n)a.set(b,()=>j(b));return a},[n,j]);return 0===n.length?(0,o.jsxs)(ha,{className:"h-full",children:[(0,o.jsxs)(hb,{children:[(0,o.jsx)(hd,{variant:"icon",children:(0,o.jsx)(g8,{})}),(0,o.jsx)(he,{children:"No changes"}),(0,o.jsx)(hf,{children:"The working tree is clean relative to the base branch"})]}),(0,o.jsx)(hg,{children:(0,o.jsxs)("p",{className:"text-xs text-muted-foreground/60",children:["Press ",(0,o.jsx)(hh,{children:"r"})," to refresh"]})})]}):(0,o.jsx)("div",{id:"diff-container",children:n.map(d=>{var h;let j=m.get(d),n=a[d]??"",s=void 0!==j&&(h=n.length,!j.binary&&(j.changes>=500||void 0!==h&&h>=5e5));return(0,o.jsx)(hw,{file:d,filePatch:n,layout:c,prerenderedHTML:b?.[d],deferPatchRendering:q,isLargeFile:s,comments:p.get(d)??hj,fileStat:j,collapsed:i.has(d),active:g===d,onToggleCollapse:r.get(d),onVisible:k,repoPath:l,onAddComment:e,onDeleteComment:f},d)})})},hy=[1e3,2e3,5e3],hz=(a,b,c)=>{let[d,e]=(0,p.useState)(b);return(0,p.useEffect)(()=>{try{let b=localStorage.getItem(a);null!==b&&(!c||c.includes(b))&&e(b)}catch{}},[a,c]),[d,(0,p.useCallback)(b=>{e(c=>{let d="function"==typeof b?b(c):b;try{localStorage.setItem(a,d)}catch{}return d})},[a])]},hA=["split","stacked"],hB=["all","uncommitted"],hC=({text:a,pulse:b=!1})=>(0,o.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,o.jsx)("div",{className:`text-muted-foreground text-sm${b?" animate-pulse":""}`,children:a})}),hD=a=>{let b=ht(a).replaceAll(/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g,"\\$&");return`#${b}`},hE=({notice:a})=>{let b="border-border bg-muted/40 text-muted-foreground";return"destructive"===a.tone?b="border-destructive/30 bg-destructive/10 text-destructive":"warning"===a.tone&&(b="border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400"),(0,o.jsx)("div",{className:`border-b px-4 py-2 text-xs ${b}`,children:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("span",{className:"font-medium",children:a.label}),a.detail&&(0,o.jsx)("span",{className:"text-xs opacity-80",children:a.detail})]})})},hF=({filesData:a,deferredDiffData:b,diffError:c,syncNotice:d,layout:e,comments:f,onAddComment:g,onDeleteComment:h,selectedFile:i,collapsedFiles:j,onToggleCollapse:k,onActiveFileChange:l,repoPath:m,diffWatchdogTripped:n,onRetryDiff:p})=>null===a?(0,o.jsx)(hC,{text:"Loading diff…",pulse:!0}):0===a.files.length?(0,o.jsx)(hC,{text:"No changes"}):b?(0,o.jsxs)(o.Fragment,{children:[d&&(0,o.jsx)(hE,{notice:d}),(0,o.jsx)(hx,{patchesByFile:b.patchesByFile,prerenderedHTMLByFile:b.prerenderedHTMLByFile,layout:e,comments:f,onAddComment:g,onDeleteComment:h,activeFileId:i,fileStats:a.files,collapsedFiles:j,onToggleCollapse:k,onActiveFileChange:l,repoPath:m})]}):c?(0,o.jsx)(hC,{text:c}):n?(0,o.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3",children:[(0,o.jsx)("div",{className:"text-muted-foreground text-sm",children:"Still loading the diff — the server hasn't responded."}),(0,o.jsx)(a6,{size:"sm",variant:"default",onClick:p,children:"Retry"})]}):(0,o.jsx)(hC,{text:"Loading diff…",pulse:!0});a.s(["DiffApp",0,({repoPath:a})=>{let[b,c]=(0,p.useState)(null),[d,e]=(0,p.useState)([]),[f,g]=(0,p.useState)(null),h=(0,p.useRef)(null),[i,j]=(0,p.useState)(null),[k,l]=hz("diffhub-layout","stacked",hA),[m,n]=(0,p.useState)(""),[q,r]=(0,p.useState)(!1),[s,t]=(0,p.useState)(null),[u,v]=(0,p.useState)(null),[w,x]=(0,p.useState)(!1),[y,z]=hz("diffhub-diffMode","all",hB),A=(0,p.useRef)(y),B=(0,p.useRef)(null),C=(0,p.useRef)(null),D=(0,p.useRef)(null),E=(0,p.useRef)(null),F=(0,p.useRef)(!1),G=(0,p.useRef)(!1),H=(0,p.useRef)(()=>Promise.resolve()),I=(0,p.useRef)(!1),J=(0,p.useRef)(!1),K=(0,p.useRef)(0),L=(0,p.useRef)(0),M=(0,p.useRef)(null),[N,O]=(0,p.useState)(!1),[,P]=(0,p.useTransition)(),[Q,R]=(0,p.useState)(()=>new Set);(0,p.useEffect)(()=>{A.current=y},[y]),(0,p.useEffect)(()=>{R(new Set([]))},[a]);let S=(0,p.useCallback)(b=>{R(c=>{let d=b(c);if(d===c)return c;try{localStorage.setItem(`diffhub-collapsed:${a}`,JSON.stringify([...d]))}catch{}return d})},[a]),T=(0,p.useCallback)(()=>{let a=new URLSearchParams;"uncommitted"===A.current&&a.set("mode","uncommitted");let b=a.toString();return b?`?${b}`:""},[]),U=(0,p.useCallback)(()=>{let a=new URLSearchParams;E.current&&a.set("generation",E.current),"uncommitted"===A.current&&a.set("mode","uncommitted");let b=a.toString();return b?`?${b}`:""},[]),V=(0,p.useCallback)(async a=>{let b=E.current,c=D.current;M.current=Date.now(),O(!1),v(null),console.info("[diffhub] fetchDiff start",{fingerprint:c,generation:b,mode:A.current,requestId:a});let d=new AbortController,e=setTimeout(()=>{d.abort(Error("Diff request timed out"))},15e3);try{var f,g;let e,h,i=await fetch(`/api/diff${U()}`,{signal:d.signal});if(!i.ok){let d=(await i.json().catch(()=>({error:"Failed to load diff"}))).error??`Failed to load diff (${i.status})`;console.error("[diffhub] fetchDiff non-ok response",{fingerprint:c,generation:b,mode:A.current,requestId:a,responseStatus:i.status,responseStatusText:i.statusText,serverError:d}),a===K.current&&v(d);return}let k=(f=await i.json(),g=c??"unknown",e=f.patchesByFile??Object.fromEntries((a=>{let b=new Map,c=/^diff --git a\/(.+?) b\/(.+)$/gm,d=[],e=c.exec(a);for(;e;)d.push({file:e[2],start:e.index}),e=c.exec(a);for(let[c,e]of d.entries()){let f=d[c+1]?.start??a.length,g=a.slice(e.start,f).trimEnd();b.set(e.file,g?`${g}
|
|
44
|
+
`:"")}return b})(f.patch??"")),{baseBranch:f.baseBranch,branch:f.branch,generation:f.generation,mergeBase:f.mergeBase,patchesByFile:e,prerenderedHTMLByFile:f.prerenderedHTMLByFile,reviewKeysByFile:f.reviewKeysByFile??(h=f.generation,Object.fromEntries(Object.entries(e).map(([a,b])=>[a,`${h}:${(a=>{let b=0;for(let c=0;c<a.length;c+=1)b=Math.trunc(Math.imul(31,b)+(a.codePointAt(c)??0));return Math.abs(b).toString(36)})(`${a}:${b}`)}`]))),sourceFingerprint:g});if(a!==K.current||c!==D.current||b!==E.current){console.info("[diffhub] fetchDiff response stale",{fingerprint:c,generation:b,latestRequestId:K.current,requestId:a}),null!==E.current&&(L.current+=1,L.current>=3&&(console.warn("[diffhub] fetchDiff stale-drop limit reached, invalidating",{drops:L.current}),L.current=0,K.current+=1,C.current=null,j(null)),J.current=!0);return}L.current=0,console.info("[diffhub] fetchDiff success",{fileCount:Object.keys(k.patchesByFile).length,fingerprint:c,generation:k.generation,requestId:a}),P(()=>j(k))}catch(d){console.error("[diffhub] fetchDiff threw",{error:d,fingerprint:c,generation:b,mode:A.current,requestId:a}),a===K.current&&v(d instanceof Error?d.message:String(d))}finally{clearTimeout(e)}},[U,P]),W=(0,p.useCallback)(async()=>{if(J.current=!0,!I.current){for(I.current=!0,x(!0);J.current;)J.current=!1,K.current+=1,await V(K.current);I.current=!1,x(!1)}},[V]),X=(0,p.useRef)(i),Y=(0,p.useRef)(u);(0,p.useEffect)(()=>{X.current=i},[i]),(0,p.useEffect)(()=>{Y.current=u},[u]);let Z=(0,p.useCallback)(a=>{if(D.current=a.fingerprint,E.current=a.generation,0===a.files.length){h.current=null,K.current+=1,(0,p.startTransition)(()=>{g(null),j(null)}),v(null),C.current=a.fingerprint;return}let b=h.current;b&&a.files.some(a=>a.file===b)||(h.current=b=a.files[0]?.file??null,(0,p.startTransition)(()=>g(b)));let c=a.fingerprint!==C.current,d=X.current?.generation===a.generation;(c||!d||null!==Y.current)&&(C.current=a.fingerprint,c&&(K.current+=1),W())},[W]),$=(0,p.useCallback)(()=>{K.current+=1,C.current=null,D.current=null,E.current=null,j(null),v(null)},[]),_=(0,p.useCallback)(async(a=!1)=>{let b=()=>{a||r(!1),F.current=!1,G.current&&(G.current=!1,queueMicrotask(()=>{H.current(!0)}))};if(F.current){G.current=!0;return}F.current=!0,a||r(!0),t(null);let d=await Promise.all([fetch(`/api/files${T()}`),fetch("/api/comments").then(async a=>{if(!a.ok)throw Error(`Failed to load comments (${a.status})`);return await a.json()}).catch(a=>(console.error("[diffhub] comments refresh failed",{error:a}),null))]).catch(a=>(t(a instanceof Error?a.message:String(a)),null));if(!d)return void b();let[f,g]=d;if(!f.ok){t((await f.json().catch(()=>({error:"Network error"}))).error??"Failed to load files"),b();return}let h=await f.json();(0,p.startTransition)(()=>{c(h),null!==g&&e(g)}),Z(h),b()},[T,Z]);(0,p.useEffect)(()=>{H.current=_},[_]);let aa=(0,p.useRef)(!1),ab=(0,p.useRef)(!1);(0,p.useEffect)(()=>{let a=null,b=()=>{aa.current=!0,a&&clearTimeout(a),a=setTimeout(()=>{aa.current=!1,ab.current&&(ab.current=!1,H.current(!0))},200)};return window.addEventListener("scroll",b,{passive:!0}),()=>{window.removeEventListener("scroll",b),a&&clearTimeout(a)}},[]);let ac=(0,p.useCallback)(()=>{if(aa.current){ab.current=!0;return}H.current(!0)},[]),ad=(a=>{let[b,c]=(0,p.useState)("connecting"),d=(0,p.useEffectEvent)(a),e=(0,p.useRef)(null);return(0,p.useEffect)(()=>{let a=!1,b=0,f=null,g=new AbortController,h=async()=>{if(!a)try{let f=null===e.current?"":`?revision=${e.current}`,i=await fetch(`/api/watch${f}`,{cache:"no-store",signal:g.signal});if(a)return;if(!i.ok)throw Error(`Watch request failed with status ${i.status}`);let j=await i.json();if(a)return;b=0,c("live");let k=e.current;e.current=j.revision,j.changed&&null!==k&&j.revision!==k&&d(),a||queueMicrotask(()=>{a||h()})}catch(d){if(a||g.signal.aborted)return;if(console.error("[diffhub] file watch failed",{error:d,failureCount:b+=1}),b>10){console.error("[diffhub] file watch: max retries exceeded, stopping"),c("fallback");return}c(b>=hy.length?"fallback":"connecting"),f=setTimeout(()=>{f=null,a||h()},hy[Math.min(b-1,hy.length-1)])}};return c("connecting"),h(),()=>{a=!0,g.abort(),f&&clearTimeout(f)}},[]),b})(ac),ae=(0,p.useCallback)(()=>{_()},[_]),af=(0,p.useCallback)(()=>{O(!1),v(null),K.current+=1,C.current=null,j(null),W()},[W]);(0,p.useEffect)(()=>{_()},[_]),(0,p.useEffect)(()=>{let a=setInterval(ac,"live"===ad?3e4:5e3);return()=>clearInterval(a)},[ad,ac]),(0,p.useEffect)(()=>{if(!b||0===b.files.length||i||u)return void O(!1);let a=setTimeout(()=>O(!0),5e3);return()=>clearTimeout(a)},[b,i,u]);let ag=(0,p.useCallback)((a,b=800)=>{B.current={file:a,until:Date.now()+b},h.current=a,(0,p.startTransition)(()=>g(a))},[]),ah=(0,p.useCallback)((a,b="smooth")=>{ag(a),S(b=>{if(b.has(a)){let c=new Set(b);return c.delete(a),c}return b});let c=a=>{a.scrollIntoView({behavior:b,block:"start"})},d=document.querySelector(hD(a));if(d)return void c(d);let e=document.querySelector("#diff-container");if(!e)return;let f=new MutationObserver(()=>{let b=document.querySelector(hD(a));b&&(f.disconnect(),c(b))});f.observe(e,{childList:!0,subtree:!0}),setTimeout(()=>f.disconnect(),5e3)},[ag,S]),ai=(0,p.useCallback)(a=>{let b=B.current;if(b){if(Date.now()>b.until)B.current=null;else if(b.file!==a)return}h.current!==a&&(h.current=a,(0,p.startTransition)(()=>g(a)))},[]),aj=(0,p.useCallback)(a=>{ag(a),S(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[ag,S]),ak=(0,p.useCallback)(()=>{S(()=>new Set((b?.files??[]).map(a=>a.file)))},[b,S]),al=(0,p.useCallback)(()=>{S(()=>new Set)},[S]);(0,p.useEffect)(()=>{let a=a=>{if(!(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement)){if("s"!==a.key||a.metaKey||a.ctrlKey||l(a=>"split"===a?"stacked":"split"),"/"!==a.key&&"t"!==a.key.toLowerCase()||a.metaKey||a.ctrlKey||(a.preventDefault(),document.querySelector('input[placeholder="Filter files…"]')?.focus()),"c"===a.key.toLowerCase()&&!a.metaKey&&!a.ctrlKey&&f){if(a.shiftKey)return void ak();aj(f)}if("e"!==a.key.toLowerCase()||!a.shiftKey||a.metaKey||a.ctrlKey||al(),"r"!==a.key||a.metaKey||a.ctrlKey||_(),"j"===a.key||"k"===a.key){let c=b?.files??[];if(0===c.length)return;let d=c.findIndex(a=>a.file===f),e="j"===a.key?c[d+1]:c[d-1];e&&ah(e.file)}}};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[ak,al,b,_,ah,f,l,aj]);let am=(0,p.useCallback)(a=>{A.current=a,z(a),$(),_(!1)},[$,_,z]),an=(0,p.useCallback)(async(a,b,c,d,f)=>{let g=await fetch("/api/comments",{body:JSON.stringify({body:d,file:a,lineNumber:b,side:"deletions"===c?"left":"right",tag:f}),headers:{"Content-Type":"application/json"},method:"POST"});if(!g.ok)return console.error("[diffhub] add comment failed",{error:(await g.json().catch(()=>({error:"Failed to save comment"}))).error??`Failed to save comment (${g.status})`}),!1;let h=await g.json();return e(a=>[...a,h]),!0},[]),ao=(0,p.useCallback)(async a=>{let b=await fetch(`/api/comments?id=${a}`,{method:"DELETE"});return b.ok?(e(b=>b.filter(b=>b.id!==a)),!0):(console.error("[diffhub] delete comment failed",{error:(await b.json().catch(()=>({error:"Failed to delete comment"}))).error??`Failed to delete comment (${b.status})`}),!1)},[]),ap=s&&null!==b?{detail:s,label:"Background refresh failed",tone:"destructive"}:u&&i?{detail:u,label:"Diff refresh failed",tone:"destructive"}:"fallback"===ad?{detail:"Live watch is unavailable, so the app is polling every 5 seconds",label:"Polling fallback",tone:"warning"}:null;return s&&null===b?(0,o.jsx)(gQ,{className:"min-h-svh",children:(0,o.jsxs)(gS,{className:"flex flex-col h-svh items-center justify-center gap-4",children:[(0,o.jsxs)("div",{className:"rounded-lg border border-destructive/30 bg-destructive/10 px-6 py-4 text-sm text-destructive max-w-md text-center",children:[(0,o.jsx)("p",{className:"font-semibold mb-1",children:"Failed to load diff"}),(0,o.jsx)("p",{className:"text-xs opacity-80",children:s})]}),(0,o.jsx)(a6,{variant:"outline",onClick:ae,children:"Retry"})]})}):(0,o.jsxs)(gQ,{className:"min-h-svh",children:[(0,o.jsx)(g1,{files:b?.files??[],selectedFile:f,onSelectFile:ah,comments:d,filterQuery:m,onFilterChange:n,isLoading:null===b,insertions:b?.insertions??0,deletions:b?.deletions??0}),(0,o.jsxs)(gS,{className:"flex flex-col min-h-svh",children:[(0,o.jsx)("div",{className:"sticky top-0 z-20",children:(0,o.jsx)(fF,{branch:b?.branch??"…",baseBranch:b?.baseBranch??"main",refreshing:q||w,fileWatchState:ad,comments:d,diffMode:y,onDiffModeChange:am,layout:k,onLayoutChange:l,syncNotice:ap})}),(0,o.jsx)(hF,{filesData:b,deferredDiffData:i,diffError:u,syncNotice:ap,layout:k,comments:d,onAddComment:an,onDeleteComment:ao,selectedFile:f,collapsedFiles:Q,onToggleCollapse:aj,onActiveFileChange:ai,repoPath:a,diffWatchdogTripped:N,onRetryDiff:af})]})]})}],85340)}];
|
|
45
45
|
|
|
46
46
|
//# sourceMappingURL=_07okxca._.js.map
|