efficient-shell 15.6.0 → 15.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +11 -5
  2. package/dist/{Browser-MBT76EKF.js → Browser-5QLDJ74Z.js} +13 -13
  3. package/dist/Calculator-6WNTZLWL.js +29 -0
  4. package/dist/{CurrencyConverter-UAZYLLHT.js → CurrencyConverter-C4KCZWUM.js} +10 -10
  5. package/dist/{Files-G5VBN3GD.js → Files-VFRXPQLV.js} +46 -46
  6. package/dist/{Notepad-23YBRLDH.js → Notepad-S5JMXH2O.js} +9 -9
  7. package/dist/PomodoroTimer-BGTCWT53.js +91 -0
  8. package/dist/{Preview-4VKAQ4TY.js → Preview-HTFTEL7K.js} +19 -19
  9. package/dist/{Stock-6YYK6VWP.js → Stock-LIOPTQG5.js} +6 -6
  10. package/dist/{Weather-2OU3LEWQ.js → Weather-K3BVAFRV.js} +18 -18
  11. package/dist/{WorldClock-PYJ4762U.js → WorldClock-RHAHXLW4.js} +6 -6
  12. package/dist/ai/index.js +8 -8
  13. package/dist/apps/ImageAnnotator.js +1 -1
  14. package/dist/apps/index.js +1 -1
  15. package/dist/bin/browser-check.js +1 -1
  16. package/dist/bin/media-host-check.js +1 -1
  17. package/dist/bin/ui-check.js +1 -1
  18. package/dist/brand.css +1 -1
  19. package/dist/chunk-3AUPCKBR.js +1 -0
  20. package/dist/chunk-6FOLK4HD.js +1 -0
  21. package/dist/{chunk-6ZNJ6JU5.js → chunk-E4WVF6AS.js} +6 -6
  22. package/dist/{chunk-OQAGCYR7.js → chunk-EA423N2F.js} +3 -3
  23. package/dist/chunk-GD5NGS6D.js +89 -0
  24. package/dist/chunk-GZ4AMXEU.js +1 -0
  25. package/dist/{chunk-N3T5BE2T.js → chunk-OHPDB4UN.js} +4 -4
  26. package/dist/{chunk-3C2VY2VF.js → chunk-RRWQBWLW.js} +1 -1
  27. package/dist/chunk-WGDVYCQX.js +69 -0
  28. package/dist/{chunk-OZNCUWYB.js → chunk-XZKVGJIB.js} +1 -1
  29. package/dist/{chunk-NICH2O4C.js → chunk-YFVQKS5U.js} +1 -1
  30. package/dist/chunk-ZLB5GRL6.js +1 -0
  31. package/dist/format/index.d.ts +15 -1
  32. package/dist/format/index.js +1 -1
  33. package/dist/forms/LinkPicker.js +1 -1
  34. package/dist/forms/MediaLibrary.js +1 -1
  35. package/dist/hooks/index.d.ts +42 -1
  36. package/dist/hooks/index.js +1 -1
  37. package/dist/icons/index.js +1 -1
  38. package/dist/index.d.ts +117 -75
  39. package/dist/index.js +662 -662
  40. package/dist/motion.css +9 -4
  41. package/dist/routine-index.json +1 -1
  42. package/dist/shell/LanguageSelect.js +1 -1
  43. package/dist/telemetry/index.js +1 -1
  44. package/dist/ui/index.js +1 -1
  45. package/dist/value-index.json +1 -1
  46. package/dist/version.js +1 -1
  47. package/package.json +1 -1
  48. package/dist/Calculator-PAMITD4N.js +0 -29
  49. package/dist/PomodoroTimer-QFF2FTAG.js +0 -91
  50. package/dist/chunk-IN36HWJK.js +0 -1
  51. package/dist/chunk-TDUOBP55.js +0 -69
  52. package/dist/chunk-XRWUNOI3.js +0 -92
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";import"../chunk-GKYGPCGL.js";import"../chunk-3C7JKJGL.js";import"../chunk-RQGLDRRF.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-VQCKMT5F.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";import"../chunk-GKYGPCGL.js";import"../chunk-3C7JKJGL.js";import"../chunk-VQCKMT5F.js";import"../chunk-RQGLDRRF.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{startClientTelemetry}from"../chunk-NICH2O4C.js";import"../chunk-KNUR2UEG.js";import"../chunk-IN36HWJK.js";
1
+ export{startClientTelemetry}from"../chunk-YFVQKS5U.js";import"../chunk-KNUR2UEG.js";import"../chunk-6FOLK4HD.js";
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-SSAYFELC.js";export{FormLayoutPage}from"../chunk-KTI4ZJVX.js";export{GalleryTemplate}from"../chunk-5OXQ5M5S.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{AuthScreen}from"../chunk-YXMXATYP.js";export{ChatTemplate}from"../chunk-FQ3SYDKI.js";export{CheckoutTemplate}from"../chunk-A3RD7AQ2.js";export{DashboardTemplate}from"../chunk-62UNBUTU.js";export{DataTablePage}from"../chunk-ZVKUOJNS.js";export{EmailTemplate}from"../chunk-QJ3X2PHY.js";export{ErrorBoundary}from"../chunk-ASNRA3ZL.js";export{ErrorPage}from"../chunk-6NXPOZ6X.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-EJMCK7E3.js";export{Paragraph,Text,Title}from"../chunk-366URRSE.js";export{TimeAgo}from"../chunk-DV6TUXCZ.js";export{TopNav}from"../chunk-FHTL7ZZR.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-5LG6TOV6.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-R3BSWWGB.js";export{Stepper}from"../chunk-KTO427N3.js";export{SettingReset}from"../chunk-INQQUAIO.js";export{SettingRow}from"../chunk-LRMDLZMM.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-FUUUPTVN.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-JIHDUZJZ.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-PLESHI3E.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-VTCMO3K7.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-E57C7NBA.js";export{PageHeader}from"../chunk-3EYJ4G7L.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-KE7P74XM.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-Q7FPGOUY.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{ResizeHandle}from"../chunk-WNHDYTTI.js";export{HelpCenter}from"../chunk-U7PA4KNZ.js";export{IconRail,IconRailButton}from"../chunk-SJUEGYT2.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";export{EditableGrid}from"../chunk-YGNJIOOH.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-WSQ73CRR.js";export{GlobalSearch,openGlobalSearch}from"../chunk-HU5FTTW2.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{ContainerFillChart}from"../chunk-BL347U3N.js";export{CountBadge}from"../chunk-PFOTEDSQ.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-3BQMICGG.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-QSFQTMWV.js";export{BudgetBar,budgetState}from"../chunk-7B6JPNOD.js";export{Card,StatCard}from"../chunk-RKSCB5BJ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-GKYGPCGL.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{WidthsBar}from"../chunk-KIIZNION.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{SplitButton_default as SplitButton}from"../chunk-R6YVKP6D.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-B36ZROD7.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-QXEZBS3H.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-72UHB4JU.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-ZRWZHWKI.js";export{SearchInput_default as SearchInput}from"../chunk-AKEED2BC.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-V62FEHS4.js";export{Slider,SliderGroup}from"../chunk-RIA6KKIB.js";export{Snippet}from"../chunk-QSOBETAI.js";export{NumericKeypad}from"../chunk-KERCZSIA.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-OHWP24DL.js";export{PositionInput}from"../chunk-YEDAXZYO.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-N3T5BE2T.js";export{SearchableSelect}from"../chunk-DVKOVZJ2.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-6ZNJ6JU5.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-BTMZ5MUY.js";import"../chunk-5B7CLXHC.js";export{ImageLightbox,lightboxKind}from"../chunk-MQNSKFZY.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-DEV3ZHPP.js";export{EmptyState}from"../chunk-W3454ZES.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-WREUA43Q.js";export{mediaLibraryMenu}from"../chunk-UFJR63AO.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-GRAFJD3L.js";export{RenameField}from"../chunk-OK2J6WSC.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-B4Y5NGHR.js";export{MediaUsedInList}from"../chunk-EULBBS5L.js";export{NativeSelect,Select_default as Select}from"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";export{CornersInput}from"../chunk-GUOAPXUY.js";export{DatePicker_default as DatePicker}from"../chunk-GGNQEZ2D.js";export{DateRangePicker,toISODate}from"../chunk-S6C7X6CR.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-ROYHU3E5.js";export{DisplayChips}from"../chunk-52RSW6TO.js";export{FilePicker_default as FilePicker}from"../chunk-QE2F4YQQ.js";export{FormErrorSummary}from"../chunk-UDJPSHVI.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-4NTAZLT3.js";export{IconPicker}from"../chunk-QYOIS4BN.js";export{BrandAssetEditor}from"../chunk-VHBRVW5O.js";export{MediaUploadField}from"../chunk-KJ4CHRRC.js";export{ImageFocusPoint}from"../chunk-CUJ537IY.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-PPHGBEJA.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-PCNFY6EK.js";export{Popover}from"../chunk-345FP3IX.js";export{InputNumber_default as InputNumber}from"../chunk-TEYG2W7A.js";export{UnitMenu}from"../chunk-4MDSZSLC.js";export{WidestLabel}from"../chunk-X3LMTOMA.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4K32E3AO.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-VB4ZPIZF.js";export{statusColumn}from"../chunk-QLK2NCXK.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{useSort}from"../chunk-22SVN2ZM.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-YYGA4Y6E.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-5Y2JZL3I.js";export{EntityList}from"../chunk-NM7U42KL.js";import"../chunk-XYVFJLAU.js";export{ResizableTable}from"../chunk-TXGVSWH6.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-XGEN76DG.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Gantt}from"../chunk-JGN27L4Q.js";export{Segmented}from"../chunk-TALQMTCE.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-MXRF5YVN.js";export{ListFooter}from"../chunk-U73K3ICC.js";export{ListLoadError}from"../chunk-LGVVXYW7.js";export{ListToolbar}from"../chunk-C75ICYHF.js";export{Pagination}from"../chunk-Q2RNFBYS.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{TreemapChart}from"../chunk-PRN2QDX6.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-WCAABJEV.js";export{RangeChart}from"../chunk-Q7CM4UDG.js";export{RankedBars}from"../chunk-53HHYEN4.js";export{SankeyChart}from"../chunk-R72SBGYR.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-PPI4WJ3V.js";export{StatTile}from"../chunk-XX34ZFYB.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-3H476JWK.js";export{FunnelChart}from"../chunk-QZ2XRFDP.js";export{HeatmapChart}from"../chunk-FBI3XJWH.js";export{HistogramChart}from"../chunk-N64YAF5N.js";export{Meter}from"../chunk-MMA3WTF2.js";export{PieChart}from"../chunk-6EGZ4PV4.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-FGP2IOFN.js";export{RadialBarChart}from"../chunk-OOND66P2.js";export{ChordChart}from"../chunk-35Q7ZMQD.js";import"../chunk-RTZFWH5U.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-3AVXNZY5.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-SCNQK5NF.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{ContextMenu,useContextMenu}from"../chunk-MF7OELXP.js";export{Banner}from"../chunk-OSMRYND3.js";export{Input_default as Input}from"../chunk-D7MRZZVV.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-UYM7562M.js";export{mediaFileName}from"../chunk-TAIH2VIW.js";export{TransferProgress}from"../chunk-TAB3K2WF.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-TNGIXSTM.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-CMEPDSYB.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-P5TSGXL4.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-LFUXWZV7.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-SAMPXZF3.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-A6TOHNJY.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-AQVPWUJ3.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-MEFB2KGF.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-TDUOBP55.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-PSVGB7KT.js";import"../chunk-YI4T5I5D.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-TTD2M6RF.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-JRKD7SD3.js";export{Dialog}from"../chunk-5RCKE4X2.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-PO2KNVCC.js";import"../chunk-CJ4OEY3T.js";import"../chunk-5QHNDAZ6.js";import"../chunk-TEQ5ZPAL.js";import"../chunk-VWGWZY7A.js";import"../chunk-DBQNYJZ6.js";export{ColoredBadge}from"../chunk-L2WQOJ3T.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-5VJVEKVM.js";export{parseOption}from"../chunk-YPXONNBV.js";import"../chunk-4PJFL26P.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-POBVGDZP.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-IN36HWJK.js";export{DropdownMenu}from"../chunk-NJY4HPNB.js";import"../chunk-PM6HY5BH.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{IconButton_default as IconButton}from"../chunk-APFDZ2HG.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-ABIWAS5K.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-A4ROXNUF.js";import"../chunk-TSZPGDU3.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-FAPZFMS3.js";export{Tooltip}from"../chunk-CIZAUBWA.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-I2NVBDKH.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-P234FPKJ.js";export{CandlestickChart}from"../chunk-BEXFMSNK.js";export{CartesianPlot}from"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-SSAYFELC.js";export{FormLayoutPage}from"../chunk-KTI4ZJVX.js";export{GalleryTemplate}from"../chunk-5OXQ5M5S.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{AuthScreen}from"../chunk-YXMXATYP.js";export{ChatTemplate}from"../chunk-FQ3SYDKI.js";export{CheckoutTemplate}from"../chunk-A3RD7AQ2.js";export{DashboardTemplate}from"../chunk-62UNBUTU.js";export{DataTablePage}from"../chunk-ZVKUOJNS.js";export{EmailTemplate}from"../chunk-QJ3X2PHY.js";export{ErrorBoundary}from"../chunk-ASNRA3ZL.js";export{ErrorPage}from"../chunk-6NXPOZ6X.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-EJMCK7E3.js";export{Paragraph,Text,Title}from"../chunk-366URRSE.js";export{TimeAgo}from"../chunk-DV6TUXCZ.js";export{TopNav}from"../chunk-FHTL7ZZR.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-5LG6TOV6.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-R3BSWWGB.js";export{Stepper}from"../chunk-KTO427N3.js";export{SettingReset}from"../chunk-INQQUAIO.js";export{SettingRow}from"../chunk-LRMDLZMM.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-FUUUPTVN.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-JIHDUZJZ.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-PLESHI3E.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-VTCMO3K7.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-E57C7NBA.js";export{PageHeader}from"../chunk-3EYJ4G7L.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-KE7P74XM.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-Q7FPGOUY.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{ResizeHandle}from"../chunk-WNHDYTTI.js";export{HelpCenter}from"../chunk-U7PA4KNZ.js";export{IconRail,IconRailButton}from"../chunk-SJUEGYT2.js";import"../chunk-FQEALPZJ.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-TTD2M6RF.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";export{EditableGrid}from"../chunk-YGNJIOOH.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-WSQ73CRR.js";export{GlobalSearch,openGlobalSearch}from"../chunk-HU5FTTW2.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{ContainerFillChart}from"../chunk-BL347U3N.js";export{CountBadge}from"../chunk-PFOTEDSQ.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-3BQMICGG.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-QSFQTMWV.js";export{BudgetBar,budgetState}from"../chunk-7B6JPNOD.js";export{Card,StatCard}from"../chunk-RKSCB5BJ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-GKYGPCGL.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4K32E3AO.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{WidthsBar}from"../chunk-KIIZNION.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-QSOBETAI.js";export{SplitButton_default as SplitButton}from"../chunk-R6YVKP6D.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-B36ZROD7.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-QXEZBS3H.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-72UHB4JU.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-ZRWZHWKI.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{SearchInput_default as SearchInput}from"../chunk-AKEED2BC.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-V62FEHS4.js";export{Slider,SliderGroup}from"../chunk-RIA6KKIB.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-E4WVF6AS.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-BTMZ5MUY.js";import"../chunk-5B7CLXHC.js";export{ImageLightbox,lightboxKind}from"../chunk-MQNSKFZY.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-DEV3ZHPP.js";export{EmptyState}from"../chunk-W3454ZES.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-WREUA43Q.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-UFJR63AO.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-GRAFJD3L.js";export{RenameField}from"../chunk-OK2J6WSC.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-B4Y5NGHR.js";export{MediaUsedInList}from"../chunk-EULBBS5L.js";export{NumericKeypad}from"../chunk-KERCZSIA.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-OHWP24DL.js";export{PositionInput}from"../chunk-YEDAXZYO.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-OHPDB4UN.js";export{SearchableSelect}from"../chunk-DVKOVZJ2.js";export{NativeSelect,Select_default as Select}from"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-GUOAPXUY.js";export{DatePicker_default as DatePicker}from"../chunk-GGNQEZ2D.js";export{DateRangePicker,toISODate}from"../chunk-S6C7X6CR.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-ROYHU3E5.js";export{DisplayChips}from"../chunk-52RSW6TO.js";export{FilePicker_default as FilePicker}from"../chunk-QE2F4YQQ.js";export{FormErrorSummary}from"../chunk-UDJPSHVI.js";export{AlignmentGrid}from"../chunk-VB4ZPIZF.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-4NTAZLT3.js";export{IconPicker}from"../chunk-QYOIS4BN.js";export{BrandAssetEditor}from"../chunk-VHBRVW5O.js";export{MediaUploadField}from"../chunk-KJ4CHRRC.js";export{ImageFocusPoint}from"../chunk-CUJ537IY.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-PPHGBEJA.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-PCNFY6EK.js";export{Popover}from"../chunk-345FP3IX.js";export{InputNumber_default as InputNumber}from"../chunk-TEYG2W7A.js";export{UnitMenu}from"../chunk-4MDSZSLC.js";export{WidestLabel}from"../chunk-X3LMTOMA.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{statusColumn}from"../chunk-QLK2NCXK.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{useSort}from"../chunk-22SVN2ZM.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-YYGA4Y6E.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-5Y2JZL3I.js";export{EntityList}from"../chunk-NM7U42KL.js";import"../chunk-XYVFJLAU.js";export{ResizableTable}from"../chunk-TXGVSWH6.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-XGEN76DG.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Gantt}from"../chunk-JGN27L4Q.js";export{Segmented}from"../chunk-TALQMTCE.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-MXRF5YVN.js";export{ListFooter}from"../chunk-U73K3ICC.js";export{ListLoadError}from"../chunk-LGVVXYW7.js";export{ListToolbar}from"../chunk-C75ICYHF.js";export{Pagination}from"../chunk-Q2RNFBYS.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{TreemapChart}from"../chunk-PRN2QDX6.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-WCAABJEV.js";export{RangeChart}from"../chunk-Q7CM4UDG.js";export{RankedBars}from"../chunk-53HHYEN4.js";export{SankeyChart}from"../chunk-R72SBGYR.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-PPI4WJ3V.js";export{StatTile}from"../chunk-XX34ZFYB.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-3H476JWK.js";export{FunnelChart}from"../chunk-QZ2XRFDP.js";export{HeatmapChart}from"../chunk-FBI3XJWH.js";export{HistogramChart}from"../chunk-N64YAF5N.js";export{Meter}from"../chunk-MMA3WTF2.js";export{PieChart}from"../chunk-6EGZ4PV4.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-FGP2IOFN.js";export{RadialBarChart}from"../chunk-OOND66P2.js";export{ChordChart}from"../chunk-35Q7ZMQD.js";import"../chunk-RTZFWH5U.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-3AVXNZY5.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-SCNQK5NF.js";export{ContextMenu,useContextMenu}from"../chunk-MF7OELXP.js";export{Banner}from"../chunk-OSMRYND3.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-UYM7562M.js";export{Input_default as Input}from"../chunk-D7MRZZVV.js";export{mediaFileName}from"../chunk-TAIH2VIW.js";export{TransferProgress}from"../chunk-TAB3K2WF.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-TNGIXSTM.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-CMEPDSYB.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-P5TSGXL4.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-LFUXWZV7.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-SAMPXZF3.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-A6TOHNJY.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-AQVPWUJ3.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-MEFB2KGF.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-WGDVYCQX.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-PSVGB7KT.js";import"../chunk-YI4T5I5D.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-JRKD7SD3.js";export{Dialog}from"../chunk-5RCKE4X2.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-PO2KNVCC.js";import"../chunk-CJ4OEY3T.js";import"../chunk-5QHNDAZ6.js";import"../chunk-TEQ5ZPAL.js";import"../chunk-VWGWZY7A.js";import"../chunk-DBQNYJZ6.js";export{ColoredBadge}from"../chunk-L2WQOJ3T.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-5VJVEKVM.js";export{parseOption}from"../chunk-YPXONNBV.js";import"../chunk-4PJFL26P.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-POBVGDZP.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-6FOLK4HD.js";export{DropdownMenu}from"../chunk-NJY4HPNB.js";import"../chunk-PM6HY5BH.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{IconButton_default as IconButton}from"../chunk-APFDZ2HG.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-ABIWAS5K.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-A4ROXNUF.js";import"../chunk-TSZPGDU3.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-FAPZFMS3.js";export{Tooltip}from"../chunk-CIZAUBWA.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";import"../chunk-GZ4AMXEU.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";import"../chunk-3AUPCKBR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-I2NVBDKH.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-P234FPKJ.js";export{CandlestickChart}from"../chunk-BEXFMSNK.js";export{CartesianPlot}from"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- {"schema":1,"package":"efficient-shell","version":"15.6.0","entries":[{"entry":"efficient-shell","name":"ACCENT_ROLES","hash":"bd7fd9e5b26249a998b2"},{"entry":"efficient-shell","name":"BORDER_WIDTHS","hash":"78a506e44a654d5b22dd"},{"entry":"efficient-shell","name":"BRAND_ICON_NAMES","hash":"9f47dc20f8029a420b70"},{"entry":"efficient-shell","name":"CHART_INK","hash":"3f4d30da8161976c516b"},{"entry":"efficient-shell","name":"CHART_SPEC_LIMITS","hash":"301b29dfb507675e845d"},{"entry":"efficient-shell","name":"COLUMN_COUNT_WIDTHS","hash":"287a95f277695d0635fe"},{"entry":"efficient-shell","name":"COLUMN_SHARES_EQUAL","hash":"79cad7d332efce44435c"},{"entry":"efficient-shell","name":"CONTROL_HEIGHTS","hash":"26fdd7e9bd83bfe00f5e"},{"entry":"efficient-shell","name":"DATE_FORMAT_OPTIONS","hash":"25598ad7ed2742e39f98"},{"entry":"efficient-shell","name":"DEFAULT_FLOW_CHART_LABELS","hash":"56e77e95b8c1a6839984"},{"entry":"efficient-shell","name":"DEV_BANNER_TEXT","hash":"6f7e89424a7f413a139f"},{"entry":"efficient-shell","name":"ENGLISH","hash":"121b17f8146326744275"},{"entry":"efficient-shell","name":"ENTRANCE_ATTR","hash":"fc79fde5667e4be907a6"},{"entry":"efficient-shell","name":"ENTRANCE_FROM_ATTR","hash":"e5753ff44b8f14537d40"},{"entry":"efficient-shell","name":"ENTRANCE_STATE_ATTR","hash":"6feecdb8e8c4d673cd25"},{"entry":"efficient-shell","name":"FLAT_STATUS_ROLES","hash":"38f538e0036062cc3f1b"},{"entry":"efficient-shell","name":"FLOW_LAYOUT","hash":"6355c496cbbe32189091"},{"entry":"efficient-shell","name":"FLOW_SPEC_LIMITS","hash":"31add05b65bd74b7d006"},{"entry":"efficient-shell","name":"FONT_WEIGHTS","hash":"52b4a2a4070f79ac24c3"},{"entry":"efficient-shell","name":"GLASS_DIVIDER","hash":"4abe484f8492531e6e01"},{"entry":"efficient-shell","name":"GLASS_INPUT_BG","hash":"2cc213cc21bdcbe5ee79"},{"entry":"efficient-shell","name":"GROUP_COLORS","hash":"7aabea256a050c690c98"},{"entry":"efficient-shell","name":"GROUP_COLORS_SOLID","hash":"a620712d032b782085db"},{"entry":"efficient-shell","name":"HOVER_MOTION","hash":"af0a80b3c85e3fbf85d8"},{"entry":"efficient-shell","name":"ICON_NAMES","hash":"cfa9f4558fa1a147302b"},{"entry":"efficient-shell","name":"ICON_SET_FOR_THEME","hash":"8103453b2b0aa00255a3"},{"entry":"efficient-shell","name":"IDENTITY_ROLES","hash":"21f80df1c4baff623350"},{"entry":"efficient-shell","name":"INPUT_SIZES","hash":"c5d43314d24fd6735f5c"},{"entry":"efficient-shell","name":"LIGHTBOX_PICTURE_FIT","hash":"a93a7592a4af090e56b8"},{"entry":"efficient-shell","name":"MARQUEE_IGNORE","hash":"f8ed1942eb85570db2f0"},{"entry":"efficient-shell","name":"MEDIA_FILES_DRAG_TYPE","hash":"724ea23a8bdd3e839308"},{"entry":"efficient-shell","name":"MEDIA_FILE_DRAG_TYPE","hash":"4c811c3891dfb852805d"},{"entry":"efficient-shell","name":"MEDIA_FOLDER_DRAG_TYPE","hash":"3bb01ff9a70c4d5f7393"},{"entry":"efficient-shell","name":"MENU_ON_MEDIA_ATTR","hash":"8920dd2122ac10c310af"},{"entry":"efficient-shell","name":"MODAL_SUBMIT_SELECTOR","hash":"d84bdbfd01a8805d95b7"},{"entry":"efficient-shell","name":"MOTION","hash":"afb7e9a03604f388b85d"},{"entry":"efficient-shell","name":"MOTION_EASING","hash":"4789d99f72a99fc71931"},{"entry":"efficient-shell","name":"MOTION_GROUPS","hash":"72eccd969d7845e62f7c"},{"entry":"efficient-shell","name":"NATIVE_MENU_ATTR","hash":"005131ab6b8f236a967e"},{"entry":"efficient-shell","name":"NEUTRAL_ROLES","hash":"e0ffa42a68fdebbc6f4a"},{"entry":"efficient-shell","name":"NEXT_CHUNK_PATH_PREFIX","hash":"09c4a7664b671338c222"},{"entry":"efficient-shell","name":"OVERLAY_OPEN_EVENT","hash":"5029df721a453803dc12"},{"entry":"efficient-shell","name":"PICTURE_TILES_COLUMNS_VAR","hash":"8ff0bf10875ffde65e40"},{"entry":"efficient-shell","name":"PLACEHOLDER_INK","hash":"2df66d0d39e28d3b53e7"},{"entry":"efficient-shell","name":"ROW_HEIGHTS","hash":"ab50f79f754505120192"},{"entry":"efficient-shell","name":"SCRIM_ROLES","hash":"eb89174bfef99154962d"},{"entry":"efficient-shell","name":"SERIES_VARS","hash":"6fb1755e5ee724888d5b"},{"entry":"efficient-shell","name":"SHELL_LANGUAGE_STORAGE_KEY","hash":"6e4367376ca83b903d75"},{"entry":"efficient-shell","name":"SPACING_ROLES","hash":"6a56d2441721d205e749"},{"entry":"efficient-shell","name":"STAGES","hash":"9632e5aae395880146f2"},{"entry":"efficient-shell","name":"STALE_CHUNK_RELOAD_KEY","hash":"68a7205bd9736805ac7f"},{"entry":"efficient-shell","name":"STATUS_VARS","hash":"4f9dd4373172ce6a7d64"},{"entry":"efficient-shell","name":"TEXT_ALIGN_ICONS","hash":"c1a50003c898d5dc6cc7"},{"entry":"efficient-shell","name":"THEME_ICON_SETS","hash":"c04ed577f1f8de5ea01e"},{"entry":"efficient-shell","name":"VITE_PRELOAD_ERROR_EVENT","hash":"dfad33b292b16949faf1"},{"entry":"efficient-shell","name":"Z_LAYERS","hash":"0b590a52752106009d6a"},{"entry":"efficient-shell/ai","name":"DEFAULT_ASSISTANT_CHAT_LABELS","hash":"e021be115baf6c56c0ca"},{"entry":"efficient-shell/ai","name":"ROW_EXTRA_LABELS","hash":"3c2a34facf25ae548f39"},{"entry":"efficient-shell/apps","name":"FILES_OFFICE_EXTENSIONS","hash":"ec322d0793d079446bd9"},{"entry":"efficient-shell/apps","name":"FILES_ROLE_LABELS","hash":"2de2334df77090846b67"},{"entry":"efficient-shell/apps","name":"SPREADSHEET_PREVIEW_UPDATE_EVENT","hash":"834ba753658d2c8d0a31"},{"entry":"efficient-shell/format","name":"ENTRANCE_DELAY_VAR","hash":"8a2f4a1e751ec138bbbf"},{"entry":"efficient-shell/format","name":"ENTRANCE_DURATION_VAR","hash":"ed9dff0a293be26a023e"},{"entry":"efficient-shell/format","name":"HOVER_KINDS","hash":"e2c76e5db09742cb68d9"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_ATTR","hash":"1cd4918b109d8fb8a75a"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_Z_VAR","hash":"da1d8d7520816a38349f"},{"entry":"efficient-shell/format","name":"PIN_ATTR","hash":"90fa72a3274aefa2672f"},{"entry":"efficient-shell/format","name":"PIN_FRAME_ATTR","hash":"7762b6fd5c2094673b82"},{"entry":"efficient-shell/format","name":"PIN_LENGTH_VAR","hash":"0fcd5a46096644382ba1"},{"entry":"efficient-shell/format","name":"PIN_ON_VAR","hash":"727387fbc36cde299ff1"},{"entry":"efficient-shell/format","name":"PIN_POSITION_VAR","hash":"6c45b2190b5524b1b15f"},{"entry":"efficient-shell/format","name":"PIN_STICK_VAR","hash":"b3d4702280b41f24617f"},{"entry":"efficient-shell/format","name":"PIN_TOP_VAR","hash":"093101ff1937dabe4daa"},{"entry":"efficient-shell/format","name":"PIN_TRACK_POSITION_VAR","hash":"1f9df4b27f9f5421fbea"},{"entry":"efficient-shell/format","name":"SCROLL_ATTR","hash":"6f55192d6271f711b399"},{"entry":"efficient-shell/format","name":"SCROLL_EFFECTS","hash":"158d40bf267a46b5a92b"},{"entry":"efficient-shell/format","name":"SCROLL_END_VAR","hash":"c0c679414eb0277fbf63"},{"entry":"efficient-shell/format","name":"SCROLL_ORIGIN_VAR","hash":"0098429747fe503a2242"},{"entry":"efficient-shell/format","name":"SCROLL_PROGRESS_VAR","hash":"72041dc916102bdcc9d8"},{"entry":"efficient-shell/format","name":"SCROLL_START_VAR","hash":"7b65b18fff5c610b4bab"},{"entry":"efficient-shell/format","name":"SCROLL_ZOOM_VAR","hash":"0d8ae643ee6e1790db87"},{"entry":"efficient-shell/icons/efficient","name":"efficientIconMeanings","hash":"8a08f4c0030f8f952668"},{"entry":"efficient-shell/icons/sets","name":"efficientLookNames","hash":"eb8a3af463df1f310f4c"},{"entry":"efficient-shell/map","name":"COMPACT_SHOW","hash":"8e104672613835524e35"},{"entry":"efficient-shell/map","name":"MAPLIBRE_WORKER_FILE","hash":"ea4884f1e1bd66e2cc4e"},{"entry":"efficient-shell/map","name":"MAP_CATEGORIES","hash":"9c7650509b67d02224e3"},{"entry":"efficient-shell/map","name":"MAP_TILE_ORIGIN","hash":"2becdbb36cdfe9f5ef24"},{"entry":"efficient-shell/markup","name":"COLOR_SLOTS","hash":"546d8695bfd3a4168b36"},{"entry":"efficient-shell/markup","name":"MARKUP_TOOLS","hash":"c00656098e6c6de33881"},{"entry":"efficient-shell/markup","name":"MARK_NAMES","hash":"d44aa3e35fd85db3d037"},{"entry":"efficient-shell/markup","name":"STANDARD_MARKUP","hash":"dfb86d96534febeba3e0"},{"entry":"efficient-shell/model-viewer","name":"MODEL_VIEWER_DECODER_ORIGIN","hash":"dee20e1d75b05718f79c"}]}
1
+ {"schema":1,"package":"efficient-shell","version":"15.8.0","entries":[{"entry":"efficient-shell","name":"ACCENT_ROLES","hash":"bd7fd9e5b26249a998b2"},{"entry":"efficient-shell","name":"BORDER_WIDTHS","hash":"78a506e44a654d5b22dd"},{"entry":"efficient-shell","name":"BRAND_ICON_NAMES","hash":"9f47dc20f8029a420b70"},{"entry":"efficient-shell","name":"CHART_INK","hash":"3f4d30da8161976c516b"},{"entry":"efficient-shell","name":"CHART_SPEC_LIMITS","hash":"301b29dfb507675e845d"},{"entry":"efficient-shell","name":"COLUMN_COUNT_WIDTHS","hash":"287a95f277695d0635fe"},{"entry":"efficient-shell","name":"COLUMN_SHARES_EQUAL","hash":"79cad7d332efce44435c"},{"entry":"efficient-shell","name":"CONTROL_HEIGHTS","hash":"26fdd7e9bd83bfe00f5e"},{"entry":"efficient-shell","name":"DATE_FORMAT_OPTIONS","hash":"25598ad7ed2742e39f98"},{"entry":"efficient-shell","name":"DEFAULT_FLOW_CHART_LABELS","hash":"56e77e95b8c1a6839984"},{"entry":"efficient-shell","name":"DEV_BANNER_TEXT","hash":"6f7e89424a7f413a139f"},{"entry":"efficient-shell","name":"ENGLISH","hash":"121b17f8146326744275"},{"entry":"efficient-shell","name":"ENTRANCE_ATTR","hash":"fc79fde5667e4be907a6"},{"entry":"efficient-shell","name":"ENTRANCE_FROM_ATTR","hash":"e5753ff44b8f14537d40"},{"entry":"efficient-shell","name":"ENTRANCE_STATE_ATTR","hash":"6feecdb8e8c4d673cd25"},{"entry":"efficient-shell","name":"FLAT_STATUS_ROLES","hash":"38f538e0036062cc3f1b"},{"entry":"efficient-shell","name":"FLOW_LAYOUT","hash":"6355c496cbbe32189091"},{"entry":"efficient-shell","name":"FLOW_SPEC_LIMITS","hash":"31add05b65bd74b7d006"},{"entry":"efficient-shell","name":"FONT_WEIGHTS","hash":"52b4a2a4070f79ac24c3"},{"entry":"efficient-shell","name":"GLASS_DIVIDER","hash":"4abe484f8492531e6e01"},{"entry":"efficient-shell","name":"GLASS_INPUT_BG","hash":"2cc213cc21bdcbe5ee79"},{"entry":"efficient-shell","name":"GROUP_COLORS","hash":"7aabea256a050c690c98"},{"entry":"efficient-shell","name":"GROUP_COLORS_SOLID","hash":"a620712d032b782085db"},{"entry":"efficient-shell","name":"HOVER_MOTION","hash":"af0a80b3c85e3fbf85d8"},{"entry":"efficient-shell","name":"ICON_NAMES","hash":"cfa9f4558fa1a147302b"},{"entry":"efficient-shell","name":"ICON_SET_FOR_THEME","hash":"8103453b2b0aa00255a3"},{"entry":"efficient-shell","name":"IDENTITY_ROLES","hash":"21f80df1c4baff623350"},{"entry":"efficient-shell","name":"INPUT_SIZES","hash":"c5d43314d24fd6735f5c"},{"entry":"efficient-shell","name":"LIGHTBOX_PICTURE_FIT","hash":"a93a7592a4af090e56b8"},{"entry":"efficient-shell","name":"MARQUEE_IGNORE","hash":"f8ed1942eb85570db2f0"},{"entry":"efficient-shell","name":"MEDIA_FILES_DRAG_TYPE","hash":"724ea23a8bdd3e839308"},{"entry":"efficient-shell","name":"MEDIA_FILE_DRAG_TYPE","hash":"4c811c3891dfb852805d"},{"entry":"efficient-shell","name":"MEDIA_FOLDER_DRAG_TYPE","hash":"3bb01ff9a70c4d5f7393"},{"entry":"efficient-shell","name":"MENU_ON_MEDIA_ATTR","hash":"8920dd2122ac10c310af"},{"entry":"efficient-shell","name":"MODAL_SUBMIT_SELECTOR","hash":"d84bdbfd01a8805d95b7"},{"entry":"efficient-shell","name":"MOTION","hash":"afb7e9a03604f388b85d"},{"entry":"efficient-shell","name":"MOTION_EASING","hash":"4789d99f72a99fc71931"},{"entry":"efficient-shell","name":"MOTION_GROUPS","hash":"72eccd969d7845e62f7c"},{"entry":"efficient-shell","name":"NATIVE_MENU_ATTR","hash":"005131ab6b8f236a967e"},{"entry":"efficient-shell","name":"NEUTRAL_ROLES","hash":"e0ffa42a68fdebbc6f4a"},{"entry":"efficient-shell","name":"NEXT_CHUNK_PATH_PREFIX","hash":"09c4a7664b671338c222"},{"entry":"efficient-shell","name":"OVERLAY_OPEN_EVENT","hash":"5029df721a453803dc12"},{"entry":"efficient-shell","name":"PICTURE_TILES_COLUMNS_VAR","hash":"8ff0bf10875ffde65e40"},{"entry":"efficient-shell","name":"PLACEHOLDER_INK","hash":"2df66d0d39e28d3b53e7"},{"entry":"efficient-shell","name":"ROW_HEIGHTS","hash":"ab50f79f754505120192"},{"entry":"efficient-shell","name":"SCRIM_ROLES","hash":"eb89174bfef99154962d"},{"entry":"efficient-shell","name":"SERIES_VARS","hash":"6fb1755e5ee724888d5b"},{"entry":"efficient-shell","name":"SHELL_LANGUAGE_STORAGE_KEY","hash":"6e4367376ca83b903d75"},{"entry":"efficient-shell","name":"SPACING_ROLES","hash":"6a56d2441721d205e749"},{"entry":"efficient-shell","name":"STAGES","hash":"9632e5aae395880146f2"},{"entry":"efficient-shell","name":"STALE_CHUNK_RELOAD_KEY","hash":"68a7205bd9736805ac7f"},{"entry":"efficient-shell","name":"STATUS_VARS","hash":"4f9dd4373172ce6a7d64"},{"entry":"efficient-shell","name":"TEXT_ALIGN_ICONS","hash":"c1a50003c898d5dc6cc7"},{"entry":"efficient-shell","name":"THEME_ICON_SETS","hash":"c04ed577f1f8de5ea01e"},{"entry":"efficient-shell","name":"VITE_PRELOAD_ERROR_EVENT","hash":"dfad33b292b16949faf1"},{"entry":"efficient-shell","name":"Z_LAYERS","hash":"0b590a52752106009d6a"},{"entry":"efficient-shell/ai","name":"DEFAULT_ASSISTANT_CHAT_LABELS","hash":"e021be115baf6c56c0ca"},{"entry":"efficient-shell/ai","name":"ROW_EXTRA_LABELS","hash":"3c2a34facf25ae548f39"},{"entry":"efficient-shell/apps","name":"FILES_OFFICE_EXTENSIONS","hash":"ec322d0793d079446bd9"},{"entry":"efficient-shell/apps","name":"FILES_ROLE_LABELS","hash":"2de2334df77090846b67"},{"entry":"efficient-shell/apps","name":"SPREADSHEET_PREVIEW_UPDATE_EVENT","hash":"834ba753658d2c8d0a31"},{"entry":"efficient-shell/format","name":"ENTRANCE_DELAY_VAR","hash":"8a2f4a1e751ec138bbbf"},{"entry":"efficient-shell/format","name":"ENTRANCE_DURATION_VAR","hash":"ed9dff0a293be26a023e"},{"entry":"efficient-shell/format","name":"HOVER_KINDS","hash":"e2c76e5db09742cb68d9"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_ATTR","hash":"1cd4918b109d8fb8a75a"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_Z_VAR","hash":"da1d8d7520816a38349f"},{"entry":"efficient-shell/format","name":"PIN_ATTR","hash":"90fa72a3274aefa2672f"},{"entry":"efficient-shell/format","name":"PIN_FRAME_ATTR","hash":"7762b6fd5c2094673b82"},{"entry":"efficient-shell/format","name":"PIN_LENGTH_VAR","hash":"0fcd5a46096644382ba1"},{"entry":"efficient-shell/format","name":"PIN_ON_VAR","hash":"727387fbc36cde299ff1"},{"entry":"efficient-shell/format","name":"PIN_OVER_VAR","hash":"ebbc56ad7131eeb2120a"},{"entry":"efficient-shell/format","name":"PIN_POSITION_VAR","hash":"6c45b2190b5524b1b15f"},{"entry":"efficient-shell/format","name":"PIN_STICK_VAR","hash":"b3d4702280b41f24617f"},{"entry":"efficient-shell/format","name":"PIN_TOP_VAR","hash":"093101ff1937dabe4daa"},{"entry":"efficient-shell/format","name":"PIN_TRACK_POSITION_VAR","hash":"1f9df4b27f9f5421fbea"},{"entry":"efficient-shell/format","name":"SCROLL_ATTR","hash":"6f55192d6271f711b399"},{"entry":"efficient-shell/format","name":"SCROLL_EFFECTS","hash":"158d40bf267a46b5a92b"},{"entry":"efficient-shell/format","name":"SCROLL_END_VAR","hash":"c0c679414eb0277fbf63"},{"entry":"efficient-shell/format","name":"SCROLL_ORIGIN_VAR","hash":"0098429747fe503a2242"},{"entry":"efficient-shell/format","name":"SCROLL_PROGRESS_VAR","hash":"72041dc916102bdcc9d8"},{"entry":"efficient-shell/format","name":"SCROLL_START_VAR","hash":"7b65b18fff5c610b4bab"},{"entry":"efficient-shell/format","name":"SCROLL_ZOOM_VAR","hash":"0d8ae643ee6e1790db87"},{"entry":"efficient-shell/icons/efficient","name":"efficientIconMeanings","hash":"8a08f4c0030f8f952668"},{"entry":"efficient-shell/icons/sets","name":"efficientLookNames","hash":"eb8a3af463df1f310f4c"},{"entry":"efficient-shell/map","name":"COMPACT_SHOW","hash":"8e104672613835524e35"},{"entry":"efficient-shell/map","name":"MAPLIBRE_WORKER_FILE","hash":"ea4884f1e1bd66e2cc4e"},{"entry":"efficient-shell/map","name":"MAP_CATEGORIES","hash":"9c7650509b67d02224e3"},{"entry":"efficient-shell/map","name":"MAP_TILE_ORIGIN","hash":"2becdbb36cdfe9f5ef24"},{"entry":"efficient-shell/markup","name":"COLOR_SLOTS","hash":"546d8695bfd3a4168b36"},{"entry":"efficient-shell/markup","name":"MARKUP_TOOLS","hash":"c00656098e6c6de33881"},{"entry":"efficient-shell/markup","name":"MARK_NAMES","hash":"d44aa3e35fd85db3d037"},{"entry":"efficient-shell/markup","name":"STANDARD_MARKUP","hash":"dfb86d96534febeba3e0"},{"entry":"efficient-shell/model-viewer","name":"MODEL_VIEWER_DECODER_ORIGIN","hash":"dee20e1d75b05718f79c"}]}
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-IN36HWJK.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-6FOLK4HD.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "15.6.0",
3
+ "version": "15.8.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-3C2VY2VF.js";import{useWidgetSettings as n}from"./chunk-XRWUNOI3.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-PSVGB7KT.js";import"./chunk-YI4T5I5D.js";import"./chunk-TTD2M6RF.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-JRKD7SD3.js";import"./chunk-5RCKE4X2.js";import"./chunk-EIFNESXS.js";import"./chunk-PO2KNVCC.js";import"./chunk-CJ4OEY3T.js";import"./chunk-5QHNDAZ6.js";import"./chunk-TEQ5ZPAL.js";import"./chunk-VWGWZY7A.js";import"./chunk-DBQNYJZ6.js";import"./chunk-L2WQOJ3T.js";import"./chunk-5VJVEKVM.js";import"./chunk-YPXONNBV.js";import"./chunk-4PJFL26P.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-POBVGDZP.js";import"./chunk-F3ZOO23R.js";import"./chunk-NJY4HPNB.js";import"./chunk-PM6HY5BH.js";import"./chunk-DWGYC7OD.js";import"./chunk-APFDZ2HG.js";import"./chunk-ABIWAS5K.js";import"./chunk-P56YLT73.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-A4ROXNUF.js";import"./chunk-TSZPGDU3.js";import{Icon as r}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-FAPZFMS3.js";import"./chunk-CIZAUBWA.js";import"./chunk-PGN5ME7B.js";import"./chunk-5QRHQCRG.js";import"./chunk-62LW225J.js";import"./chunk-TAHHZGRH.js";import"./chunk-KEFNQEXZ.js";import"./chunk-PU2GJVMG.js";import"./chunk-3FININUU.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[j,b]=c(null),[g,N]=c(!1),[C,y]=c(""),[x,f]=c([]),[v,T]=c(!1),[$,P]=c(()=>t(h)),[E,F]=c(!1),[D,R]=c($),Z=i(null);n(o(()=>{R({...$}),F(!0)},[$]));const A=o(t=>{y(""),k(e=>g||"0"===e?(N(!1),"."===t?"0.":t):"."===t&&e.includes(".")?e:e+t)},[g]),S=o(()=>{k("0"),d(null),b(null),N(!1)},[]),W=o((t,e,n)=>{switch(n){case"+":return t+e;case"-":return t-e;case"×":return t*e;case"÷":return 0===e?0:t/e;default:return e}},[]),H=o(t=>{const e=parseFloat(m);if(null!==p&&j&&!g){const t=W(p,e,j);k(String(t)),d(t),f(n=>[`${p} ${j} ${e} = ${t}`,...n].slice(0,20))}else d(e);b(t),N(!0)},[m,p,j,g,W]),J=o(()=>{if(null===p||!j)return;const t=parseFloat(m),e=W(p,t,j),n=`${p} ${j} ${t} =`;f(t=>[`${n} ${e}`,...t].slice(0,20)),y(n),k(String(e)),d(null),b(null),N(!0)},[m,p,j,W]),U=o(()=>{k(t=>String(parseFloat(t)/100))},[]),V=o(()=>{k(t=>t.startsWith("-")?t.slice(1):"0"===t?t:"-"+t)},[]);s(()=>{const t=t=>{const e=t.target.tagName;"INPUT"!==e&&"TEXTAREA"!==e&&"SELECT"!==e&&(t.key>="0"&&t.key<="9"?A(t.key):"."===t.key?A("."):"+"===t.key?H("+"):"-"===t.key?H("-"):"*"===t.key?H("×"):"/"===t.key?(t.preventDefault(),H("÷")):"Enter"===t.key||"="===t.key?("Enter"===t.key&&t.target instanceof Node&&Z.current?.contains(t.target)&&t.preventDefault(),J()):"Escape"===t.key?S():"Backspace"===t.key?k(t=>t.length>1?t.slice(0,-1):"0"):"%"===t.key&&U())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[A,H,J,S,U]);const B="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",G=`${B} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,M=`${B} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,Q=`${B} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,Y=`${B} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return l(a,{children:[
3
- /* @__PURE__ */l("div",{ref:Z,className:"flex flex-col h-full",style:{opacity:$.activeOpacity/100,backdropFilter:$.activeBlur>0?`blur(${$.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */l("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:x.slice(0,3).reverse().map((t,e)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:t},e))}),(C||j&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:C||`${p} ${j} ${g?"":m}`}),
6
- /* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),T(!0),setTimeout(()=>T(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
- /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(t=>{const e=parseFloat(t);return isNaN(e)||t.endsWith(".")||t.endsWith(".0")||Math.abs(e)<1e15&&t.length<16?t:e.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:S,className:Q,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:V,className:Q,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:U,className:Q,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>H("÷"),className:`${M} ${"÷"===j?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>A("7"),className:G,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>A("8"),className:G,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>A("9"),className:G,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>H("×"),className:`${M} ${"×"===j?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>A("4"),className:G,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>A("5"),className:G,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>A("6"),className:G,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>H("-"),className:`${M} ${"-"===j?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>A("1"),className:G,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>A("2"),className:G,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>A("3"),className:G,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>H("+"),className:`${M} ${"+"===j?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>A("0"),className:`${G} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>A("."),className:G,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:J,className:Y,children:"="})]})]}),
29
- /* @__PURE__ */u(e,{open:E,onClose:()=>F(!1),title:"Calculator Settings",appearance:D,onAppearanceChange:R,onSave:()=>{P(D),localStorage.setItem(h,JSON.stringify(D)),F(!1)}})]})}export{m as default};
@@ -1,91 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-3C2VY2VF.js";import{subscribePomo as o,getPomoSnapshot as n,setPomoDurations as a,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,pomodoroToday as u,migratePomodoroTasksOnce as m,pomoSwitchMode as d,pomoPause as h,pomoStart as p,ALARM_OPTIONS as g,playAlarm as k,FOCUS_SOUND_OPTIONS as f,previewFocusSound as b}from"./chunk-GUUBFQ6L.js";import{PLACEHOLDER_INK as x}from"./chunk-AYZY3YNC.js";import{formatTime as v}from"./chunk-NHKT5IH6.js";import"./chunk-36BRD5J3.js";import"./chunk-JRQMX4PK.js";import{pad2 as y}from"./chunk-LF27WIN2.js";import{useWidgetSettings as N}from"./chunk-XRWUNOI3.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-PSVGB7KT.js";import"./chunk-YI4T5I5D.js";import"./chunk-TTD2M6RF.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-JRKD7SD3.js";import"./chunk-5RCKE4X2.js";import"./chunk-EIFNESXS.js";import"./chunk-PO2KNVCC.js";import"./chunk-CJ4OEY3T.js";import"./chunk-5QHNDAZ6.js";import"./chunk-TEQ5ZPAL.js";import"./chunk-VWGWZY7A.js";import"./chunk-DBQNYJZ6.js";import"./chunk-L2WQOJ3T.js";import"./chunk-5VJVEKVM.js";import"./chunk-YPXONNBV.js";import"./chunk-4PJFL26P.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as C}from"./chunk-POBVGDZP.js";import"./chunk-F3ZOO23R.js";import"./chunk-NJY4HPNB.js";import"./chunk-PM6HY5BH.js";import"./chunk-DWGYC7OD.js";import"./chunk-APFDZ2HG.js";import"./chunk-ABIWAS5K.js";import"./chunk-P56YLT73.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-A4ROXNUF.js";import"./chunk-TSZPGDU3.js";import{Icon as j}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-FAPZFMS3.js";import"./chunk-CIZAUBWA.js";import"./chunk-PGN5ME7B.js";import"./chunk-5QRHQCRG.js";import"./chunk-62LW225J.js";import"./chunk-TAHHZGRH.js";import"./chunk-KEFNQEXZ.js";import"./chunk-PU2GJVMG.js";import"./chunk-3FININUU.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-I2NVBDKH.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as S,useEffect as w,useMemo as B,useState as M,useRef as T,useCallback as P}from"react";import{jsxs as I,Fragment as A,jsx as V}from"react/jsx-runtime";var D="pomodoro_appearance",R="pomodoro_active_task_id",F={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var H=25,W=5,U=15,Z=!1,$=!1,J=4,Y=!0,E=!0,K="bell",Q=100,G=1,O="none",X=50,_=(e,t,o,n)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):n;function z(){const t=S(o,n,n),{prefs:k,save:b}=C(),x=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:_(t.focusMinutes,1,120,H),shortBreakMinutes:_(t.shortBreakMinutes,1,120,W),longBreakMinutes:_(t.longBreakMinutes,1,120,U),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:Z,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:$,longBreakInterval:_(t.longBreakInterval,1,20,J),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:Y,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:E,alarmSound:g.some(e=>e.id===t.alarmSound)?t.alarmSound:K,alarmVolume:_(t.alarmVolume,0,100,Q),alarmRepeat:_(t.alarmRepeat,1,5,G),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:O,focusVolume:_(t.focusVolume,0,100,X)}}(k.pomodoro_settings);w(()=>{a({focus:60*x.focusMinutes,short:60*x.shortBreakMinutes,long:60*x.longBreakMinutes})},[x.focusMinutes,x.shortBreakMinutes,x.longBreakMinutes]),w(()=>{r(x.alarmSound),s(x.alarmVolume,x.alarmRepeat)},[x.alarmSound,x.alarmVolume,x.alarmRepeat]),w(()=>{i({autoStartBreaks:x.autoStartBreaks,autoStartPomodoros:x.autoStartPomodoros,longBreakInterval:x.longBreakInterval})},[x.autoStartBreaks,x.autoStartPomodoros,x.longBreakInterval]),w(()=>{l(x.focusSound,x.focusVolume)},[x.focusSound,x.focusVolume]),w(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const z=c(),ee=z.tasks,te=B(()=>u(),[]),oe=function(e,t){return B(()=>t?(e=>{const t=[],o=[];for(const n of e)(n.done?o:t).push(n);return[...t,...o]})(e):e,[e,t])}(B(()=>ee.filter(e=>!!e.dueDate&&(e.dueDate===te||e.dueDate<te&&!e.done)),[ee,te]),x.checkToBottom),[ne,ae]=M(()=>localStorage.getItem(R)),[re,se]=M(!1),[ie,le]=M(null),ce=T(!1);w(()=>{ce.current||(ce.current=!0,m(ee,z.setAllTasks))},[]),w(()=>{try{ne?localStorage.setItem(R,ne):localStorage.removeItem(R)}catch{}},[ne]),w(()=>{if(!ie)return;const e=()=>le(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ie]);const ue=T(t.streak);w(()=>{if(t.streak>ue.current&&ne){const e=ee.find(e=>e.id===ne);if(e){const t=(e.completed??0)+1,o=e.estimated??0,n=x.autoCheckTasks&&o>0&&t>=o;z.updateTask(ne,{completed:t,done:e.done||n})}}ue.current=t.streak},[t.streak,ne,x.autoCheckTasks,ee,z]);const de=oe.reduce((e,t)=>e+(t.completed??0),0),he=oe.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),pe=oe.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),ge=t.running&&"focus"===t.mode?t.remaining:0,ke=pe*x.focusMinutes*60+ge,fe=new Date(Date.now()+1e3*ke),be=v(fe.toISOString(),{clock:{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}}),xe=(ke/3600).toFixed(1),ve=ne?ee.find(e=>e.id===ne)??null:null,ye=y(Math.floor(t.remaining/60)),Ne=y(t.remaining%60),[Ce,je]=M(()=>e(D)),[Se,we]=M(!1),[Be,Me]=M(Ce),[Te,Pe]=M(x);N(P(()=>{Me({...Ce}),Pe({...x}),we(!0)},[Ce,x]));const Ie="focus"!==t.mode,Ae=L[t.mode],Ve=Ie?(De=Ae,Re=Ce.activeOpacity/100,`rgba(${parseInt(De.slice(1,3),16)}, ${parseInt(De.slice(3,5),16)}, ${parseInt(De.slice(5,7),16)}, ${Re})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${Ce.activeOpacity/100})`;var De,Re;const Fe={primary:Ie?"text-white":"text-gray-900",secondary:Ie?"text-white/85":"text-gray-700",muted:Ie?"text-white/65":"text-gray-500",tabActive:Ie?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Ie?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Ie?"border-white/30":"border-gray-200",softDivider:Ie?"border-white/20":"border-gray-200",iconBtn:Ie?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Ie?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Le=Ie?Ae:"#0f172a";/* @__PURE__ */
2
- return I(A,{children:[
3
- /* @__PURE__ */I("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Fe.primary}`,style:{backgroundColor:Ve,backdropFilter:Ce.activeBlur>0?`blur(${Ce.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */V("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */V("button",{onClick:()=>d(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Fe.tabActive:Fe.tabInactive}`,children:F[e]},e))}),
5
- /* @__PURE__ */I("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ye,":",Ne]}),
6
- /* @__PURE__ */V("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */V("button",{onClick:()=>t.running?h():p(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Le,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
- /* @__PURE__ */V("div",{className:"px-3 py-3 text-center",children:ve?/* @__PURE__ */I(A,{children:[
8
- /* @__PURE__ */I("div",{className:`text-xs leading-tight ${Fe.muted}`,children:["#",(ve.completed??0)+1]}),
9
- /* @__PURE__ */V("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Fe.primary}`,children:ve.name})]}):/* @__PURE__ */V("div",{className:`text-xs italic ${Fe.muted}`,children:"No task selected"})}),
10
- /* @__PURE__ */I("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
11
- /* @__PURE__ */V("h3",{className:`text-base font-bold tracking-tight ${Fe.primary}`,children:"Tasks"}),
12
- /* @__PURE__ */V("button",{className:`rounded p-1 transition-colors ${Fe.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */V(j,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
- /* @__PURE__ */V("div",{className:`border-t mx-3 mt-2 ${Fe.divider}`}),
14
- /* @__PURE__ */I("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[oe.map(e=>{const t=e.id===ne;/* @__PURE__ */
15
- return I("div",{onClick:()=>ae(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
- /* @__PURE__ */V("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */V("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Le},children:/* @__PURE__ */V("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */V("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */V("circle",{cx:"12",cy:"12",r:"10"})})}),
17
- /* @__PURE__ */V("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
18
- /* @__PURE__ */I("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
- /* @__PURE__ */V("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
- /* @__PURE__ */V("span",{className:"text-gray-400",children:" / "}),
21
- /* @__PURE__ */V("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
- /* @__PURE__ */I("div",{className:"relative",children:[
23
- /* @__PURE__ */V("button",{onClick:t=>{t.stopPropagation(),le(ie===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */V(j,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),ie===e.id&&/* @__PURE__ */V("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */V("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.removeTask(o),ne===o&&ae(null),le(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),re?/* @__PURE__ */V(me,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const n=z.addTask({name:o,estimated:t,completed:0,dueDate:te});ne||ae(n),se(!1)},onCancel:()=>se(!1),accentColor:Le}):/* @__PURE__ */I("button",{onClick:()=>se(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Fe.addTaskBtn}`,children:[
24
- /* @__PURE__ */V(j,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
- /* @__PURE__ */I("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Fe.softDivider}`,children:[
26
- /* @__PURE__ */I("span",{className:Fe.secondary,children:["Pomos: ",
27
- /* @__PURE__ */V("span",{className:`font-bold ${Fe.primary}`,children:de}),
28
- /* @__PURE__ */V("span",{className:Fe.muted,children:" / "}),
29
- /* @__PURE__ */V("span",{className:`font-bold ${Fe.primary}`,children:he})]}),ke>0&&/* @__PURE__ */I("span",{className:Fe.secondary,children:["Finish At: ",
30
- /* @__PURE__ */V("span",{className:`font-bold ${Fe.primary}`,children:be}),
31
- /* @__PURE__ */I("span",{className:Fe.muted,children:[" (",xe,"h)"]})]})]})]}),
32
- /* @__PURE__ */V(q,{open:Se,onClose:()=>we(!1),onSave:()=>{je(Be),localStorage.setItem(D,JSON.stringify(Be)),b({pomodoro_settings:Te}),we(!1)},configAppearance:Be,setConfigAppearance:Me,configPrefs:Te,setConfigPrefs:Pe})]})}function q({open:e,onClose:o,onSave:n,configAppearance:a,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
33
- return I(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:a,onAppearanceChange:r,onSave:n,children:[
34
- /* @__PURE__ */I(ee,{icon:/* @__PURE__ */V(le,{}),label:"TIMER",children:[
35
- /* @__PURE__ */I("div",{children:[
36
- /* @__PURE__ */V("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
37
- /* @__PURE__ */I("div",{className:"grid grid-cols-3 gap-3",children:[
38
- /* @__PURE__ */V(ne,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
39
- /* @__PURE__ */V(ne,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
40
- /* @__PURE__ */V(ne,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
41
- /* @__PURE__ */V(te,{label:"Auto Start Breaks",children:/* @__PURE__ */V(se,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
42
- /* @__PURE__ */V(te,{label:"Auto Start Pomodoros",children:/* @__PURE__ */V(se,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
43
- /* @__PURE__ */V(te,{label:"Long Break interval",children:/* @__PURE__ */V(ae,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
44
- /* @__PURE__ */I(ee,{icon:/* @__PURE__ */V(ce,{}),label:"TASK",children:[
45
- /* @__PURE__ */V(te,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */V(se,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
46
- /* @__PURE__ */V(te,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */V(se,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
47
- /* @__PURE__ */I(ee,{icon:/* @__PURE__ */V(ue,{}),label:"SOUND",children:[
48
- /* @__PURE__ */V(te,{label:"Alarm Sound",children:/* @__PURE__ */I("div",{className:"flex items-center gap-2",children:[
49
- /* @__PURE__ */V(re,{value:s.alarmSound,onChange:e=>l("alarmSound",e),options:g.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */V("button",{type:"button",onClick:()=>k(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
50
- /* @__PURE__ */V(oe,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
51
- /* @__PURE__ */V(te,{label:"repeat",children:/* @__PURE__ */V(ae,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
52
- /* @__PURE__ */V(te,{label:"Focus Sound",children:/* @__PURE__ */I("div",{className:"flex items-center gap-2",children:[
53
- /* @__PURE__ */V(re,{value:s.focusSound,onChange:e=>l("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */V("button",{type:"button",onClick:()=>b(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
54
- /* @__PURE__ */V(oe,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function ee({icon:e,label:t,children:o}){/* @__PURE__ */
55
- return I("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
56
- /* @__PURE__ */I("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
57
- /* @__PURE__ */V("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
58
- /* @__PURE__ */V("div",{className:"space-y-3",children:o})]})}function te({label:e,info:t,children:o}){/* @__PURE__ */
59
- return I("div",{className:"flex items-center justify-between gap-3",children:[
60
- /* @__PURE__ */I("div",{className:"flex items-center gap-2 min-w-0",children:[
61
- /* @__PURE__ */V("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */V(ie,{title:t})]}),
62
- /* @__PURE__ */V("div",{className:"shrink-0",children:o})]})}function oe({value:e,onChange:t}){/* @__PURE__ */
63
- return I("div",{className:"flex items-center justify-end gap-3",children:[
64
- /* @__PURE__ */V("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
65
- /* @__PURE__ */V("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function ne({label:e,value:t,onChange:o,min:n=1,max:a=99}){/* @__PURE__ */
66
- return I("label",{className:"flex flex-col",children:[
67
- /* @__PURE__ */V("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
68
- /* @__PURE__ */V(ae,{value:t,onChange:o,min:n,max:a})]})}function ae({value:e,onChange:t,min:o=1,max:n=99,className:a=""}){/* @__PURE__ */
69
- return V("input",{type:"number",min:o,max:n,value:e,onChange:e=>t(Math.max(o,Math.min(n,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${a}`})}function re({value:e,onChange:t,options:o}){/* @__PURE__ */
70
- return I("div",{className:"relative",children:[
71
- /* @__PURE__ */V("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */V("option",{value:e.id,children:e.label},e.id))}),
72
- /* @__PURE__ */V(j,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${x}`,strokeWidth:2.5})]})}function se({checked:e,onChange:t}){/* @__PURE__ */
73
- return V("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */V("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function ie({title:e}){/* @__PURE__ */
74
- return V("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function le(){/* @__PURE__ */
75
- return I("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
76
- /* @__PURE__ */V("circle",{cx:"12",cy:"12",r:"9"}),
77
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ce(){/* @__PURE__ */
78
- return I("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
79
- /* @__PURE__ */V("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
80
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function ue(){/* @__PURE__ */
81
- return I("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
82
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
83
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function me({onSubmit:e,onCancel:t,accentColor:o}){const[n,a]=M(""),[r,s]=M(1),i=()=>e(n,r);/* @__PURE__ */
84
- return I("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
85
- /* @__PURE__ */V("input",{autoFocus:!0,value:n,onChange:e=>a(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
86
- /* @__PURE__ */I("div",{className:"flex items-center justify-between mt-2",children:[
87
- /* @__PURE__ */V("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
88
- /* @__PURE__ */V("input",{type:"number",min:1,max:20,value:r,onChange:e=>s(Math.max(1,Math.min(20,parseInt(e.target.value,10)||1))),className:"w-16 bg-gray-100 rounded px-2 py-1 text-sm text-right border-0 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),
89
- /* @__PURE__ */I("div",{className:"flex gap-2 mt-3 justify-end",children:[
90
- /* @__PURE__ */V("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
91
- /* @__PURE__ */V("button",{onClick:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{z as default};
@@ -1 +0,0 @@
1
- var r="15.6.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -1,69 +0,0 @@
1
- import{fitBoxScale as e}from"./chunk-M6UKCZHT.js";import{toast_default as t}from"./chunk-I2NVBDKH.js";import{useShellStrings as r}from"./chunk-NRHG4R2Q.js";import{forwardRef as n,useRef as o,useState as i,useMemo as a,useEffect as l,useImperativeHandle as s}from"react";import{jsx as c,jsxs as d,Fragment as h}from"react/jsx-runtime";var u=["#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#000000","#ffffff"],p=[{id:"system",name:"fontSystem",css:"-apple-system, system-ui, sans-serif"},{id:"serif",name:"fontSerif",css:'Georgia, "Times New Roman", serif'},{id:"mono",name:"fontMono",css:'ui-monospace, "SF Mono", Menlo, monospace'},{id:"cursive",name:"fontCursive",css:'"Brush Script MT", "Comic Sans MS", cursive'}],y=()=>Math.random().toString(36).slice(2,9),x=n(function({src:n,filename:x,onApply:g,onCancel:w},C){const z=o(null),D=o(null),P=o(null),$=o(null),E=r().annotator,I=o(E);I.current=E;const[S,W]=i("select"),[B,R]=i(u[0]),[j,H]=i(4),[T,F]=i(24),[U,A]=i(p[0].id),[K,O]=i(!0),[V,Z]=i(!1),[G,X]=i(!1),[q,Y]=i(null),[_,Q]=i(null),[J,ee]=i(6),[te,re]=i(12),[ne,oe]=i([]),[ie,ae]=i(null),[le,se]=i(null),[ce,de]=i(null),[he,ue]=i(1),[pe,ye]=i(null),[xe,me]=i(null),[ge,we]=i(null),fe=o(null),[ve,be]=i(!1),ke=a(()=>ce?{w:ce.w*he,h:ce.h*he}:null,[ce,he]),Me=ke&&le?ke.w/le.w:1,Ne=a(()=>ne.find(e=>e.id===ie)??null,[ne,ie]);l(()=>{"select"===S&&Ne&&("color"in Ne&&R(Ne.color),"stroke"in Ne&&H(Ne.stroke),"rect"===Ne.type&&re(Ne.radius),"text"===Ne.type&&(F(Ne.size),A(Ne.font),O(Ne.bold),Z(Ne.italic),X(Ne.underline),Y(Ne.borderColor),Q(Ne.background),ee(Ne.padding)))},[ie]),l(()=>{const e=new Image;e.crossOrigin="anonymous",e.onload=()=>{$.current=e,se({w:e.naturalWidth,h:e.naturalHeight}),oe([]),ae(null)},e.onerror=()=>t.error(I.current.loadFailed),e.src=n},[n]),l(()=>{if(!le)return;const t=()=>{const t=z.current;if(!t)return;const r=t.getBoundingClientRect(),n=Math.max(0,r.width-32),o=Math.max(0,r.height-32);if(0===n||0===o)return;const i=e({width:n,height:o},{width:le.w,height:le.h},1);de({w:le.w*i,h:le.h*i})};t();const r=new ResizeObserver(t);return z.current&&r.observe(z.current),()=>r.disconnect()},[le]);const Ce=a(()=>ne.filter(e=>"mosaic"===e.type),[ne]);l(()=>{const e=$.current,t=D.current;if(!e||!t||!le)return;t.width=le.w,t.height=le.h;const r=t.getContext("2d");r.drawImage(e,0,0);for(const e of Ce)L(r,e)},[le,Ce,ce]);const Le=e=>{const t=P.current;if(!t)return{x:0,y:0};const r=t.createSVGPoint();r.x=e.clientX,r.y=e.clientY;const n=t.getScreenCTM();if(!n)return{x:0,y:0};const o=r.matrixTransform(n.inverse());return{x:o.x,y:o.y}},ze=e=>{fe.current=e,be(!0)};l(()=>{if(!ve)return;const e=e=>{const t=fe.current;if(!t)return;const r=Le(e);if("draw"===t.kind)ye(b(S,t.start,r,B,j,te));else if("pen"===t.kind){const e=t.points[t.points.length-1];(Math.abs(r.x-e.x)>1||Math.abs(r.y-e.y)>1)&&(t.points.push(r),ye({id:"",type:"draw",points:t.points.slice(),color:B,stroke:j}))}else if("crop"===t.kind)we(N(t.start,r));else if("move"===t.kind){const e=r.x-t.start.x,n=r.y-t.start.y;oe(r=>r.map(r=>r.id===t.id?k(t.original,e,n):r))}else"resize"===t.kind&&oe(e=>e.map(e=>e.id===t.id?function(e,t,r){if("arrow"===e.type)return"start"===t?{...e,x1:r.x,y1:r.y}:"end"===t?{...e,x2:r.x,y2:r.y}:e;if("text"===e.type||"draw"===e.type)return e;const n=e.x,o=e.x+e.w,i=e.y,a=e.y+e.h;let l=n,s=i,c=o,d=a;"nw"===t&&(l=r.x,s=r.y);"ne"===t&&(c=r.x,s=r.y);"se"===t&&(c=r.x,d=r.y);"sw"===t&&(l=r.x,d=r.y);const h=N({x:l,y:s},{x:c,y:d});return{...e,x:h.x,y:h.y,w:h.w,h:h.h}}(t.original,t.corner,r):e))},t=()=>{const e=fe.current;if(fe.current=null,be(!1),"draw"===e?.kind)ye(e=>{if(!e||("arrow"===(t=e).type?Math.abs(t.x2-t.x1)<4&&Math.abs(t.y2-t.y1)<4:"draw"===t.type?t.points.length<2:"w"in t&&"h"in t&&(t.w<4||t.h<4)))return null;var t;const r={...e,id:y()};return oe(e=>[...e,r]),ae(r.id),W("select"),null});else if("pen"===e?.kind){if(e.points.length<2)return void ye(null);const t={id:y(),type:"draw",points:e.points,color:B,stroke:j};oe(e=>[...e,t]),ae(t.id),W("select"),ye(null)}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[ve,S,B,j,te]);l(()=>{const e=e=>{if(!document.activeElement||!/^(INPUT|TEXTAREA)$/.test(document.activeElement.tagName))return!e.metaKey&&!e.ctrlKey||"z"!==e.key&&"Z"!==e.key||e.shiftKey?void(ie&&("Delete"===e.key||"Backspace"===e.key?(e.preventDefault(),oe(e=>e.filter(e=>e.id!==ie)),ae(null)):"Escape"===e.key&&ae(null))):(e.preventDefault(),oe(e=>e.slice(0,-1)),void ae(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[ie]);const De=e=>{const t=!{bold:K,italic:V,underline:G}[e];"bold"===e&&O(t),"italic"===e&&Z(t),"underline"===e&&X(t),ie&&oe(r=>r.map(r=>r.id===ie&&"text"===r.type?{...r,[e]:t}:r))},Pe=e=>{Y(e),ie&&oe(t=>t.map(t=>t.id===ie&&"text"===t.type?{...t,borderColor:e}:t))},$e=e=>{Q(e),ie&&oe(t=>t.map(t=>t.id===ie&&"text"===t.type?{...t,background:e}:t))},Ee=e=>{if(!xe)return;const t=e??xe.value;if(!t.trim())return xe.editingId&&oe(e=>e.filter(e=>e.id!==xe.editingId)),void me(null);if(xe.editingId)oe(e=>e.map(e=>e.id===xe.editingId&&"text"===e.type?{...e,text:t}:e));else{const e={id:y(),type:"text",x:xe.x,y:xe.y,text:t,color:B,size:T,font:U,bold:K,italic:V,underline:G,borderColor:q,background:_,padding:J};oe(t=>[...t,e]),ae(e.id),W("select")}me(null)},Ie=async()=>{const e=D.current,t=P.current;if(!e||!t||!le)return null;const r=document.createElement("canvas");r.width=le.w,r.height=le.h;const n=r.getContext("2d");n.drawImage(e,0,0);const o=t.cloneNode(!0);o.querySelectorAll("[data-chrome]").forEach(e=>e.remove());const i=(new XMLSerializer).serializeToString(o),a=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(a),s=new Image;return await new Promise(e=>{s.onload=()=>e(),s.onerror=()=>e(),s.src=l}),n.drawImage(s,0,0,le.w,le.h),URL.revokeObjectURL(l),r};s(C,()=>({save:async()=>{const e=await Ie();e&&e.toBlob(e=>{if(!e)return void t.error(I.current.exportFailed);const r=URL.createObjectURL(e),n=document.createElement("a");n.href=r;const o=x.replace(/\.[^.]+$/,"");n.download=`${o}-annotated.png`,n.click(),URL.revokeObjectURL(r)},"image/png")},copy:async()=>{if(!("clipboard"in navigator)||"undefined"==typeof ClipboardItem)return void t.error(I.current.clipboardUnsupported);const e=await Ie();e&&e.toBlob(async e=>{if(e)try{await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),t.success(I.current.copied)}catch{t.error(I.current.copyRefused)}else t.error(I.current.copyFailed)},"image/png")}}),[le,x]);const Se=a(()=>[{id:"select",label:E.toolSelect,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3l7 17 2-7 7-2L5 3z"})})},{id:"draw",label:E.toolDraw,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487z"})})},{id:"rect",label:E.toolRect,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("rect",{x:"4",y:"6",width:"16",height:"12",rx:"3"})})},{id:"circle",label:E.toolEllipse,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("ellipse",{cx:"12",cy:"12",rx:"8",ry:"6"})})},{id:"arrow",label:E.toolArrow,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 19L19 5m0 0h-7m7 0v7"})})},{id:"mosaic",label:E.toolMosaic,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z"})})},{id:"text",label:E.toolText,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M12 6v14M9 20h6"})})},{id:"crop",label:E.toolCrop,icon:/* @__PURE__ */c("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 2v15a1 1 0 001 1h15M2 6h15a1 1 0 011 1v15"})})}],[E]),We=e=>"p-2 rounded transition-colors "+(e?"bg-blue-500 text-on-accent":"text-ink hover:bg-gray-200"),Be=Ne?.type??("select"===S?null:S),Re="rect"===Be||"circle"===Be||"arrow"===Be||"draw"===Be,je="rect"===Be,He="text"===Be;/* @__PURE__ */
2
- return d("div",{className:"flex flex-col h-full bg-gray-100",children:[
3
- /* @__PURE__ */d("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-line bg-surface shrink-0 flex-wrap text-xs",children:[Se.map(e=>/* @__PURE__ */c("button",{onClick:()=>{W(e.id),ae(null)},title:e.label,className:We(S===e.id),children:e.icon},e.id)),
4
- /* @__PURE__ */c("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
5
- /* @__PURE__ */c("div",{className:"flex items-center gap-1",children:u.map(e=>/* @__PURE__ */c("button",{onClick:()=>(e=>{R(e),ie&&oe(t=>t.map(t=>t.id!==ie||"mosaic"===t.type?t:{...t,color:e}))})(e),title:e,className:"h-5 w-5 rounded-full border "+(B===e?"ring-2 ring-blue-500 ring-offset-1":"border-gray-300"),style:{background:e}},e))}),Re&&/* @__PURE__ */d(h,{children:[
6
- /* @__PURE__ */c("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
7
- /* @__PURE__ */d("label",{className:"flex items-center gap-2 text-gray-600",children:[
8
- /* @__PURE__ */c("span",{children:E.weight}),
9
- /* @__PURE__ */c("input",{type:"range",min:1,max:20,step:1,value:j,onChange:e=>{return t=Number(e.target.value),H(t),void(ie&&oe(e=>e.map(e=>e.id!==ie?e:"rect"===e.type||"circle"===e.type||"arrow"===e.type||"draw"===e.type?{...e,stroke:t}:e)));var t},className:"w-16 accent-blue-500"}),
10
- /* @__PURE__ */c("span",{className:"tabular-nums w-5 text-right",children:j})]})]}),je&&/* @__PURE__ */d(h,{children:[
11
- /* @__PURE__ */c("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
12
- /* @__PURE__ */d("label",{className:"flex items-center gap-2 text-gray-600",children:[
13
- /* @__PURE__ */c("span",{children:E.radius}),
14
- /* @__PURE__ */c("input",{type:"range",min:0,max:48,step:1,value:te,onChange:e=>{return t=Number(e.target.value),re(t),void(ie&&oe(e=>e.map(e=>e.id===ie&&"rect"===e.type?{...e,radius:t}:e)));var t},className:"w-16 accent-blue-500"}),
15
- /* @__PURE__ */c("span",{className:"tabular-nums w-6 text-right",children:te})]})]}),He&&/* @__PURE__ */d(h,{children:[
16
- /* @__PURE__ */c("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
17
- /* @__PURE__ */c("select",{value:U,onChange:e=>{return t=e.target.value,A(t),void(ie&&oe(e=>e.map(e=>e.id===ie&&"text"===e.type?{...e,font:t}:e)));var t},className:"text-xs border border-gray-300 rounded px-1 py-0.5 bg-white",children:p.map(e=>/* @__PURE__ */c("option",{value:e.id,children:E[e.name]},e.id))}),
18
- /* @__PURE__ */c("button",{onClick:()=>De("bold"),className:We(K),title:E.bold,children:/* @__PURE__ */c("span",{className:"font-bold",children:E.boldLetter})}),
19
- /* @__PURE__ */c("button",{onClick:()=>De("italic"),className:We(V),title:E.italic,children:/* @__PURE__ */c("span",{className:"italic",children:E.italicLetter})}),
20
- /* @__PURE__ */c("button",{onClick:()=>De("underline"),className:We(G),title:E.underline,children:/* @__PURE__ */c("span",{className:"underline",children:E.underlineLetter})}),
21
- /* @__PURE__ */d("label",{className:"flex items-center gap-2 text-gray-600",children:[
22
- /* @__PURE__ */c("span",{children:E.size}),
23
- /* @__PURE__ */c("input",{type:"range",min:10,max:96,step:1,value:T,onChange:e=>{return t=Number(e.target.value),F(t),void(ie&&oe(e=>e.map(e=>e.id===ie&&"text"===e.type?{...e,size:t}:e)));var t},className:"w-16 accent-blue-500"}),
24
- /* @__PURE__ */c("span",{className:"tabular-nums w-7 text-right",children:T})]}),
25
- /* @__PURE__ */d("label",{className:"flex items-center gap-1 text-gray-600",children:[
26
- /* @__PURE__ */c("span",{children:E.border}),q?/* @__PURE__ */d(h,{children:[
27
- /* @__PURE__ */c("input",{type:"color",value:q,onChange:e=>Pe(e.target.value),title:E.borderColor,className:"h-5 w-6 rounded border border-gray-300 bg-white p-0 cursor-pointer"}),
28
- /* @__PURE__ */c("button",{onClick:()=>Pe(null),title:E.removeBorder,className:"px-0.5 text-gray-400 hover:text-gray-700",children:"✕"})]}):/* @__PURE__ */c("button",{onClick:()=>Pe(B),title:E.addBorder,className:"px-2 py-0.5 rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:E.add})]}),
29
- /* @__PURE__ */d("label",{className:"flex items-center gap-1 text-gray-600",children:[
30
- /* @__PURE__ */c("span",{children:E.fill}),_?/* @__PURE__ */d(h,{children:[
31
- /* @__PURE__ */c("input",{type:"color",value:_,onChange:e=>$e(e.target.value),title:E.fillColor,className:"h-5 w-6 rounded border border-gray-300 bg-white p-0 cursor-pointer"}),
32
- /* @__PURE__ */c("button",{onClick:()=>$e(null),title:E.removeFill,className:"px-0.5 text-gray-400 hover:text-gray-700",children:"✕"})]}):/* @__PURE__ */c("button",{onClick:()=>$e("#ffffff"),title:E.addFill,className:"px-2 py-0.5 rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:E.add})]}),
33
- /* @__PURE__ */d("label",{className:"flex items-center gap-2 text-gray-600",children:[
34
- /* @__PURE__ */c("span",{children:E.padding}),
35
- /* @__PURE__ */c("input",{type:"range",min:0,max:40,step:1,value:J,onChange:e=>{return t=Number(e.target.value),ee(t),void(ie&&oe(e=>e.map(e=>e.id===ie&&"text"===e.type?{...e,padding:t}:e)));var t},className:"w-14 accent-blue-500"}),
36
- /* @__PURE__ */c("span",{className:"tabular-nums w-6 text-right",children:J})]})]}),
37
- /* @__PURE__ */c("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
38
- /* @__PURE__ */c("button",{onClick:()=>ue(e=>Math.max(.25,Math.round(100*(e-.25))/100)),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",title:E.zoomOut,children:"−"}),
39
- /* @__PURE__ */d("span",{className:"text-gray-600 tabular-nums w-10 text-center",children:[Math.round(100*he),"%"]}),
40
- /* @__PURE__ */c("button",{onClick:()=>ue(e=>Math.min(4,Math.round(100*(e+.25))/100)),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",title:E.zoomIn,children:"+"}),
41
- /* @__PURE__ */c("button",{onClick:()=>ue(1),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",title:E.fitHint,children:E.fit}),
42
- /* @__PURE__ */c("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
43
- /* @__PURE__ */c("button",{onClick:()=>{oe(e=>e.slice(0,-1)),ae(null)},disabled:0===ne.length,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-700",children:E.undo}),
44
- /* @__PURE__ */d("div",{className:"ml-auto flex items-center gap-2",children:[ge&&/* @__PURE__ */d(h,{children:[
45
- /* @__PURE__ */c("button",{onClick:()=>{if(!ge||!$.current||!le)return;const e=ge,t=document.createElement("canvas");t.width=Math.round(e.w),t.height=Math.round(e.h);const r=t.getContext("2d"),n=document.createElement("canvas");n.width=le.w,n.height=le.h;const o=n.getContext("2d");o.drawImage($.current,0,0);for(const e of Ce)L(o,e);r.drawImage(n,e.x,e.y,e.w,e.h,0,0,e.w,e.h);const i=new Image;i.onload=()=>{$.current=i,se({w:i.naturalWidth,h:i.naturalHeight}),oe(t=>t.filter(e=>"mosaic"!==e.type).map(t=>k(t,-e.x,-e.y)).filter(e=>function(e,t,r){const n=M(e);return n.x+n.w>0&&n.y+n.h>0&&n.x<t&&n.y<r}(e,i.naturalWidth,i.naturalHeight))),we(null)},i.src=t.toDataURL("image/png")},className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600",children:E.applyCrop}),
46
- /* @__PURE__ */c("button",{onClick:()=>we(null),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",children:E.cancel})]}),g&&!ge&&/* @__PURE__ */d(h,{children:[w&&/* @__PURE__ */c("button",{onClick:w,className:"px-3 py-1 rounded hover:bg-gray-200 text-gray-700 text-xs font-medium",children:E.cancel}),
47
- /* @__PURE__ */c("button",{onClick:async()=>{const e=await Ie();e?e.toBlob(e=>{e?g(e):t.error(I.current.exportFailed)},"image/png"):t.error(I.current.exportFailed)},className:"px-3 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 text-xs font-medium",children:E.apply})]})]})]}),
48
- /* @__PURE__ */c("div",{ref:z,className:"flex-1 overflow-auto bg-gray-200 flex items-center justify-center p-4 relative",children:ke&&le&&/* @__PURE__ */d("div",{className:"relative shadow-lg rounded overflow-hidden bg-white shrink-0",style:{width:ke.w,height:ke.h},children:[
49
- /* @__PURE__ */c("canvas",{ref:D,style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"block"}}),
50
- /* @__PURE__ */d("svg",{ref:P,viewBox:`0 0 ${le.w} ${le.h}`,preserveAspectRatio:"none",style:{position:"absolute",inset:0,width:"100%",height:"100%",touchAction:"none",cursor:"select"===S?"default":"text"===S?"text":"crosshair"},onPointerDown:e=>{if("select"===S)return void ae(null);if("text"===S){if(xe)return void Ee();const t=Le(e);return void me({x:t.x,y:t.y,value:""})}const t=Le(e);if("crop"!==S){if("draw"===S)return ze({kind:"pen",points:[t]}),void ye({id:"",type:"draw",points:[t],color:B,stroke:j});ye(b(S,t,t,B,j,te)),ze({kind:"draw",start:t})}else ze({kind:"crop",start:t})},children:[ne.map(e=>/* @__PURE__ */c(m,{anno:e,selected:ie===e.id,zoom:he,onPointerDown:t=>((e,t)=>{"select"===S&&(e.stopPropagation(),ae(t.id),ze({kind:"move",id:t.id,start:Le(e),original:t}))})(t,e),onDoubleClick:()=>{var t;"text"===(t=e).type&&me({x:t.x,y:t.y,value:t.text,editingId:t.id})},onHandlePointerDown:(t,r)=>((e,t,r)=>{e.stopPropagation(),ze({kind:"resize",id:t.id,corner:r,start:Le(e),original:t})})(t,e,r)},e.id)),pe&&/* @__PURE__ */c(m,{anno:{...pe,id:"__preview"},preview:!0}),ge&&/* @__PURE__ */c(f,{rect:ge,imageSize:le})]}),xe&&/* @__PURE__ */c(v,{pendingText:xe,color:B,size:T,font:p.find(e=>e.id===U)?.css??p[0].css,bold:K,italic:V,underline:G,borderColor:q,background:_,padding:J,scale:Me,onChange:e=>me({...xe,value:e}),onCommit:Ee,onCancel:()=>me(null)})]})}),
51
- /* @__PURE__ */c("div",{className:"px-3 py-2 border-t border-line bg-surface text-2xs text-ink-faint shrink-0",children:"select"===S?ie?E.hintSelected:E.hintSelect:"text"===S?E.hintText:"crop"===S?E.hintCrop:"draw"===S?E.hintDraw:E.hintShape})]})});function m({anno:e,selected:t,preview:r,zoom:n=1,onPointerDown:o,onDoubleClick:i,onHandlePointerDown:a}){const l=M(e),s=o?{onPointerDown:o,pointerEvents:"all",style:{cursor:"move"}}:{},u=i?{onDoubleClick:i}:{};let y;if("rect"===e.type)y=/* @__PURE__ */c("rect",{x:e.x,y:e.y,width:e.w,height:e.h,rx:e.radius,ry:e.radius,fill:"none",stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round",strokeLinejoin:"round",...s});else if("circle"===e.type)y=/* @__PURE__ */c("ellipse",{cx:e.x+e.w/2,cy:e.y+e.h/2,rx:e.w/2,ry:e.h/2,fill:"none",stroke:e.color,strokeWidth:e.stroke,...s});else if("arrow"===e.type)y=/* @__PURE__ */c(w,{anno:e,interactive:s});else if("draw"===e.type)y=/* @__PURE__ */c("path",{d:C(e.points),fill:"none",stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round",strokeLinejoin:"round",...s});else if("mosaic"===e.type)y=/* @__PURE__ */c("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:"rgba(0,0,0,0.001)",stroke:"none",strokeWidth:t?2:0,strokeDasharray:t?"6,4":void 0,...s,style:t?{...s.style,stroke:"var(--rosh-annotator-selection)"}:s.style});else{const t=p.find(t=>t.id===e.font)?.css??p[0].css,r=e.padding??0,n=!!e.borderColor||!!e.background,o=M(e),i=e.borderColor?Math.max(1,Math.round(e.size/12)):0;y=/* @__PURE__ */d("g",{...s,...u,children:[n&&/* @__PURE__ */c("rect",{x:o.x-r,y:o.y-r,width:Math.max(0,o.w)+2*r,height:Math.max(0,o.h)+2*r,rx:Math.min(8,r),ry:Math.min(8,r),fill:e.background??"none",stroke:e.borderColor??"none",strokeWidth:i}),
52
- /* @__PURE__ */c("text",{x:e.x,y:e.y+e.size,fill:e.color,fontSize:e.size,fontWeight:e.bold?700:400,fontStyle:e.italic?"italic":"normal",textDecoration:e.underline?"underline":void 0,fontFamily:t,style:{userSelect:"none"},children:e.text.split("\n").map((t,r)=>/* @__PURE__ */c("tspan",{x:e.x,dy:0===r?0:1.2*e.size,children:t},r))})]})}/* @__PURE__ */
53
- return d("g",{children:[y,t&&!r&&/* @__PURE__ */d(h,{children:[
54
- /* @__PURE__ */c("rect",{"data-chrome":"selection",x:l.x-4,y:l.y-4,width:l.w+8,height:l.h+8,fill:"none",strokeWidth:2/n,strokeDasharray:`${6/n},${4/n}`,pointerEvents:"none",style:{stroke:"var(--rosh-annotator-selection)"}}),a&&/* @__PURE__ */c(g,{anno:e,zoom:n,onHandlePointerDown:a})]})]})}function g({anno:e,zoom:t,onHandlePointerDown:r}){const n=6/t,o=1.5/t,i=e=>({fill:"white",strokeWidth:o,pointerEvents:"all",style:{cursor:e,stroke:"var(--rosh-annotator-selection)"},"data-chrome":"handle"});if("arrow"===e.type)/* @__PURE__ */
55
- return d(h,{children:[
56
- /* @__PURE__ */c("circle",{cx:e.x1,cy:e.y1,r:n,...i("grab"),onPointerDown:e=>r(e,"start")}),
57
- /* @__PURE__ */c("circle",{cx:e.x2,cy:e.y2,r:n,...i("grab"),onPointerDown:e=>r(e,"end")})]});if("text"===e.type||"draw"===e.type)return null;const a=e.x,l=e.y,s=e.w,u=e.h;/* @__PURE__ */
58
- return d(h,{children:[
59
- /* @__PURE__ */c("circle",{cx:a,cy:l,r:n,...i("nwse-resize"),onPointerDown:e=>r(e,"nw")}),
60
- /* @__PURE__ */c("circle",{cx:a+s,cy:l,r:n,...i("nesw-resize"),onPointerDown:e=>r(e,"ne")}),
61
- /* @__PURE__ */c("circle",{cx:a+s,cy:l+u,r:n,...i("nwse-resize"),onPointerDown:e=>r(e,"se")}),
62
- /* @__PURE__ */c("circle",{cx:a,cy:l+u,r:n,...i("nesw-resize"),onPointerDown:e=>r(e,"sw")})]})}function w({anno:e,interactive:t}){const r=Math.max(12,4*e.stroke),n=Math.atan2(e.y2-e.y1,e.x2-e.x1),o=n+Math.PI-Math.PI/7,i=n+Math.PI+Math.PI/7,a=`M${e.x2},${e.y2} L${e.x2+r*Math.cos(o)},${e.y2+r*Math.sin(o)} L${e.x2+r*Math.cos(i)},${e.y2+r*Math.sin(i)} Z`;/* @__PURE__ */
63
- return d("g",{...t,children:[
64
- /* @__PURE__ */c("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round"}),
65
- /* @__PURE__ */c("path",{d:a,fill:e.color})]})}function f({rect:e,imageSize:t}){/* @__PURE__ */
66
- return d("g",{pointerEvents:"none",children:[
67
- /* @__PURE__ */c("path",{d:`M0,0 H${t.w} V${t.h} H0 Z M${e.x},${e.y} V${e.y+e.h} H${e.x+e.w} V${e.y} Z`,fillRule:"evenodd",style:{fill:"var(--rosh-annotator-crop-scrim)"}}),
68
- /* @__PURE__ */c("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:"none",stroke:"white",strokeWidth:2,strokeDasharray:"8,6"})]})}function v({pendingText:e,color:t,size:n,font:i,bold:a,italic:s,underline:d,borderColor:h,background:u,padding:p,scale:y,onChange:x,onCommit:m,onCancel:g}){const w=o(null),f=r().annotator;l(()=>{const e=requestAnimationFrame(()=>{w.current?.focus(),w.current?.select?.()});return()=>cancelAnimationFrame(e)},[]);const v=()=>m(w.current?.value),b=h?Math.max(1,Math.round(n/12)):0;/* @__PURE__ */
69
- return c("div",{style:{position:"absolute",left:e.x*y+"px",top:e.y*y+"px",transform:"translateY(-2px)",zIndex:5},onPointerDown:e=>e.stopPropagation(),children:/* @__PURE__ */c("textarea",{ref:w,value:e.value,onChange:e=>x(e.target.value),onBlur:v,onKeyDown:e=>{"Escape"===e.key?(e.preventDefault(),g()):"Enter"!==e.key||e.shiftKey||(e.preventDefault(),v())},placeholder:f.textPlaceholder,rows:1,className:"rosh-focus-ring resize-none shadow-(--elevation-panel)",style:{color:t,fontSize:n*y+"px",fontFamily:i,fontWeight:a?700:400,fontStyle:s?"italic":"normal",textDecoration:d?"underline":void 0,minWidth:80,padding:p*y+"px",borderRadius:Math.min(8,p)*y+"px",border:h?`${b*y}px solid ${h}`:"1px dashed var(--rosh-annotator-edit-hint)",background:u??"var(--rosh-annotator-edit-surface)"}})})}function b(e,t,r,n,o,i){if("rect"===e){const e=N(t,r);return{id:"",type:"rect",x:e.x,y:e.y,w:e.w,h:e.h,color:n,stroke:o,radius:i}}if("circle"===e){const e=N(t,r);return{id:"",type:"circle",x:e.x,y:e.y,w:e.w,h:e.h,color:n,stroke:o}}if("arrow"===e)return{id:"",type:"arrow",x1:t.x,y1:t.y,x2:r.x,y2:r.y,color:n,stroke:o};if("mosaic"===e){const e=N(t,r);return{id:"",type:"mosaic",x:e.x,y:e.y,w:e.w,h:e.h}}return null}function k(e,t,r){return"arrow"===e.type?{...e,x1:e.x1+t,y1:e.y1+r,x2:e.x2+t,y2:e.y2+r}:"draw"===e.type?{...e,points:e.points.map(e=>({x:e.x+t,y:e.y+r}))}:(e.type,{...e,x:e.x+t,y:e.y+r})}function M(e){if("arrow"===e.type){return{x:Math.min(e.x1,e.x2),y:Math.min(e.y1,e.y2),w:Math.abs(e.x2-e.x1),h:Math.abs(e.y2-e.y1)}}if("draw"===e.type){if(0===e.points.length)return{x:0,y:0,w:0,h:0};let t=e.points[0].x,r=e.points[0].x,n=e.points[0].y,o=e.points[0].y;for(const i of e.points)i.x<t&&(t=i.x),i.x>r&&(r=i.x),i.y<n&&(n=i.y),i.y>o&&(o=i.y);return{x:t,y:n,w:r-t,h:o-n}}if("text"===e.type){const t=e.text.split("\n"),r=t.reduce((e,t)=>Math.max(e,t.length),0);return{x:e.x,y:e.y,w:r*e.size*.55,h:t.length*e.size*1.2}}return{x:e.x,y:e.y,w:e.w,h:e.h}}function N(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),w:Math.abs(e.x-t.x),h:Math.abs(e.y-t.y)}}function C(e){if(0===e.length)return"";let t=`M ${e[0].x} ${e[0].y}`;for(let r=1;r<e.length;r++)t+=` L ${e[r].x} ${e[r].y}`;return t}function L(e,t){const r=Math.round(Math.max(0,t.x)),n=Math.round(Math.max(0,t.y)),o=Math.round(Math.min(e.canvas.width-r,t.w)),i=Math.round(Math.min(e.canvas.height-n,t.h));if(o<2||i<2)return;const a=e.getImageData(r,n,o,i);for(let e=0;e<i;e+=12)for(let t=0;t<o;t+=12){let r=0,n=0,l=0,s=0,c=0;const d=Math.min(12,o-t),h=Math.min(12,i-e);for(let i=0;i<h;i++)for(let h=0;h<d;h++){const d=4*((e+i)*o+(t+h));r+=a.data[d],n+=a.data[d+1],l+=a.data[d+2],s+=a.data[d+3],c++}r=Math.round(r/c),n=Math.round(n/c),l=Math.round(l/c),s=Math.round(s/c);for(let i=0;i<h;i++)for(let c=0;c<d;c++){const d=4*((e+i)*o+(t+c));a.data[d]=r,a.data[d+1]=n,a.data[d+2]=l,a.data[d+3]=s}}e.putImageData(a,r,n)}export{x as ImageAnnotator_default};