@pixerate/editor 0.128.0 → 0.129.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.
@@ -1,5 +1,5 @@
1
- import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-BkYQvV56.cjs';
2
- export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, aa as CreateAnnotationPayload, ab as CropHandle, ac as CurvesParams, ad as DEFAULT_ADJUSTMENTS, ae as DEFAULT_DEPTH_MASK, af as DEFAULT_MITER_LIMIT, ag as DEFAULT_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertHex, dj as convertSurfaceColors, dk as convertToSmartObject, dl as copySmartObject, dm as cornersFromMatrix, dn as coverageToByte, dp as createSelectionMask, dq as createShapeLayer, dr as createTypeLayer, ds as decodeDeepSurface, dt as decodeLayerChannel, du as decodeLayerMask, dv as decodeMergedImage, dw as decodePngDataUrl, dx as decodeSelectionRle, dy as defaultShapeName, dz as depthMaskAlpha, dA as describeTransform, dB as deserializeColorMode, dC as deserializeColorProfile, dD as deserializeEffects, dE as deserializeLayer, dF as deserializeLayers, dG as deserializePatterns, dH as deserializeSelection, dI as developFilter, dJ as displayTransform, dK as distanceTransform, dL as documentContents, dM as documentProfile, dN as duplicateLayer, dO as edgeWidth, dP as effectPixelsToSurface, dQ as effectiveProof, dR as ellipsePoints, dS as ellipseSelection, dT as encodeDeepSurface, dU as encodeSelectionRle, dV as encodeSurface, dW as expandCoverage, dX as exportPsd, dY as featherCoverage, dZ as filterMaskCoverage, d_ as flipCorners, d$ as fullSelection, e0 as geometryHomography, e1 as getAnnotationBounds, e2 as getCropCursor, e3 as getRotatedSize, e4 as getViewportMetrics, e5 as getViewportProjection, e6 as globalImageCache, e7 as greyMorphology, e8 as groupLayers, e9 as guidePlanes, ea as guidedFilterColor, eb as hasSurface, ec as hasWarp, ed as hashMaskContent, ee as histogramPath, ef as hitTestAnnotation, eg as hitTestCrop, eh as hueRange, ei as identityTransform, ej as imageToCanvasPoint, ek as importPsd, el as instancesOf, em as invertSelection, en as isActiveFilter, eo as isContentsDecoded, ep as isIdentityTransform, eq as isQuarterTurnSwapped, er as isRenderedLayer, es as isRetouchTool, et as isSelectionEmpty, eu as isSelectionMode, ev as isSmartSurfaceIncomplete, ew as isSpatialFilter, ex as isSrgb, ey as isTransformAnchor, ez as isValidWarp, eA as layerEffectsOf, eB as layerMaskCoverage, eC as layerMaskFromSelection, eD as layerMaskKey, eE as layerName, eF as layerTree, eG as layerTypeLabel, eH as liveComponent, eI as liveShapeSubpaths, eJ as magicWand, eK as mapCropHandle, eL as mapSubpaths, eM as matrixFromCorners, eN as matrixFromParams, eO as mergeShapeComponents, eP as migrateSerializedImageEditorState, eQ as migrateToLayeredState, eR as modifySelection, eS as moveLayer, eT as moveSmartFilter, eU as newContentsId, eV as newLayerId, eW as normalizeAngle, eX as normalizeFilter, eY as normalizeLayerMask, eZ as normalizeLiveShape, e_ as normalizePlacement, e$ as normalizeRect, f0 as normalizeRefineEdgeParams, f1 as normalizeShapePaint, f2 as normalizeShapeStroke, f3 as normalizeSmartFilter, f4 as normalizeStoredAdjustments, f5 as normalizeSubpaths, f6 as normalizeText, f7 as offsetLayer, f8 as offsetShape, f9 as offsetSmartObject, fa as parseBlend, fb as parseColor, fc as parseSelectionMode, fd as patchParagraphStyle, fe as patchTextStyle, ff as pixelLayerBounds, fg as pixelLayers, fh as placeContents, fi as placeLayer, fj as placementAt, fk as placementBounds, fl as placementGeometry, fm as polygonCoverage, fn as polygonSelection, fo as presetWarp, fp as previewStep, fq as profileBytes, fr as projectImagePoint, fs as projectImageRect, ft as projectMaskCoverage, fu as psdToLayers, fv as rasterContents, fw as rasterizeSmartObject, fx as readPsd, fy as rectSelection, fz as referencePoint, fA as refineCoverage, fB as refineEdgeHalo, fC as refineSelection, fD as removeLayer, fE as removeLayerEffect, fF as removeLayerFilter, fG as removeSmartFilter, fH as renderShape, fI as renderShapeRect, fJ as renderSmartObject, fK as renderText, fL as replaceContents, fM as replaceTextRange, fN as requireLayer, fO as requireOperation, fP as requireShapeLayer, fQ as requireSmartObject, fR as requireTypeLayer, fS as requireUnlocked, fT as rerender, fU as rerenderShape, fV as rerenderText, fW as resizePixels, fX as resizeSelection, fY as resolveExternalAssets, fZ as resolveProfile, f_ as runLayerFilters, f$ as runLayerFiltersFloat, g0 as selectionArea, g1 as selectionFromCoverage, g2 as selectionFromPixels, g3 as selectionToCoverage, g4 as selectionToPixels, g5 as selectionValueAt, g6 as serializeColorMode, g7 as serializeColorProfile, g8 as serializeContents, g9 as serializeEffects, ga as serializeLayer, gb as serializeLayers, gc as serializeLayersExternal, gd as serializePatterns, ge as serializeSelection, gf as setLayerEffects, gg as setLayerEffectsEnabled, gh as setLayerMask, gi as setLayerProperties, gj as setSmartFilterMask, gk as setSmartFiltersEnabled, gl as setSmartPlacement, gm as shapeAsPixelLayer, gn as shapeFromAnnotation, go as shapeGeometryBounds, gp as shapeLayers, gq as shapeOutline, gr as shapeRenderClip, gs as shiftCoverage, gt as smartObjectLayers, gu as smoothCoverage, gv as srgb8ToLab, gw as textMatrix, gx as textOutlines, gy as textRange, gz as toHex, gA as toTextSpace, gB as toneRange, gC as transformHomography, gD as transformMap, gE as transformShapeComponents, gF as transformTypeLayer, gG as transformedBox, gH as transformedPoint, gI as typeAsPixelLayer, gJ as typeFrame, gK as typeFromAnnotation, gL as typeLayerName, gM as ungroupLayer, gN as unionRect, gO as unprojectCanvasPoint, gP as updateLayerEffect, gQ as updateLayerFilter, gR as updateLayerMaskProps, gS as updateShapeLayer, gT as updateSmartFilter, gU as updateTypeLayer, gV as withFilterMaskSurface, gW as withNewIds, gX as writePsd } from '../export-BkYQvV56.cjs';
1
+ import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-DRzNhrdx.cjs';
2
+ export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, aa as CreateAnnotationPayload, ab as CropHandle, ac as CurvesParams, ad as DEFAULT_ADJUSTMENTS, ae as DEFAULT_DEPTH_MASK, af as DEFAULT_MITER_LIMIT, ag as DEFAULT_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertColorFields, dj as convertHex, dk as convertSurfaceColors, dl as convertToSmartObject, dm as copySmartObject, dn as cornersFromMatrix, dp as coverageToByte, dq as createSelectionMask, dr as createShapeLayer, ds as createTypeLayer, dt as decodeDeepSurface, du as decodeLayerChannel, dv as decodeLayerMask, dw as decodeMergedImage, dx as decodePngDataUrl, dy as decodeSelectionRle, dz as defaultShapeName, dA as depthMaskAlpha, dB as describeTransform, dC as deserializeColorMode, dD as deserializeColorProfile, dE as deserializeEffects, dF as deserializeLayer, dG as deserializeLayers, dH as deserializePatterns, dI as deserializeSelection, dJ as developFilter, dK as displayTransform, dL as distanceTransform, dM as documentContents, dN as documentProfile, dO as duplicateLayer, dP as edgeWidth, dQ as effectPixelsToSurface, dR as effectiveProof, dS as ellipsePoints, dT as ellipseSelection, dU as encodeDeepSurface, dV as encodeSelectionRle, dW as encodeSurface, dX as expandCoverage, dY as exportPsd, dZ as featherCoverage, d_ as filterMaskCoverage, d$ as flipCorners, e0 as fullSelection, e1 as geometryHomography, e2 as getAnnotationBounds, e3 as getCropCursor, e4 as getRotatedSize, e5 as getViewportMetrics, e6 as getViewportProjection, e7 as globalImageCache, e8 as greyMorphology, e9 as groupLayers, ea as guidePlanes, eb as guidedFilterColor, ec as hasSurface, ed as hasWarp, ee as hashMaskContent, ef as histogramPath, eg as hitTestAnnotation, eh as hitTestCrop, ei as hueRange, ej as identityTransform, ek as imageToCanvasPoint, el as importPsd, em as instancesOf, en as invertSelection, eo as isActiveFilter, ep as isContentsDecoded, eq as isIdentityTransform, er as isQuarterTurnSwapped, es as isRenderedLayer, et as isRetouchTool, eu as isSelectionEmpty, ev as isSelectionMode, ew as isSmartSurfaceIncomplete, ex as isSpatialFilter, ey as isSrgb, ez as isTransformAnchor, eA as isValidWarp, eB as layerEffectsOf, eC as layerMaskCoverage, eD as layerMaskFromSelection, eE as layerMaskKey, eF as layerName, eG as layerTree, eH as layerTypeLabel, eI as liveComponent, eJ as liveShapeSubpaths, eK as magicWand, eL as mapCropHandle, eM as mapSubpaths, eN as matrixFromCorners, eO as matrixFromParams, eP as mergeShapeComponents, eQ as migrateSerializedImageEditorState, eR as migrateToLayeredState, eS as modifySelection, eT as moveLayer, eU as moveSmartFilter, eV as newContentsId, eW as newLayerId, eX as normalizeAngle, eY as normalizeFilter, eZ as normalizeLayerMask, e_ as normalizeLiveShape, e$ as normalizePlacement, f0 as normalizeRect, f1 as normalizeRefineEdgeParams, f2 as normalizeShapePaint, f3 as normalizeShapeStroke, f4 as normalizeSmartFilter, f5 as normalizeStoredAdjustments, f6 as normalizeSubpaths, f7 as normalizeText, f8 as offsetLayer, f9 as offsetShape, fa as offsetSmartObject, fb as parseBlend, fc as parseColor, fd as parseSelectionMode, fe as patchParagraphStyle, ff as patchTextStyle, fg as pixelLayerBounds, fh as pixelLayers, fi as placeContents, fj as placeLayer, fk as placementAt, fl as placementBounds, fm as placementGeometry, fn as polygonCoverage, fo as polygonSelection, fp as presetWarp, fq as previewStep, fr as profileBytes, fs as projectImagePoint, ft as projectImageRect, fu as projectMaskCoverage, fv as psdToLayers, fw as rasterContents, fx as rasterizeSmartObject, fy as readPsd, fz as rectSelection, fA as referencePoint, fB as refineCoverage, fC as refineEdgeHalo, fD as refineSelection, fE as removeLayer, fF as removeLayerEffect, fG as removeLayerFilter, fH as removeSmartFilter, fI as renderShape, fJ as renderShapeRect, fK as renderSmartObject, fL as renderText, fM as replaceContents, fN as replaceTextRange, fO as requireLayer, fP as requireOperation, fQ as requireShapeLayer, fR as requireSmartObject, fS as requireTypeLayer, fT as requireUnlocked, fU as rerender, fV as rerenderShape, fW as rerenderText, fX as resizePixels, fY as resizeSelection, fZ as resolveExternalAssets, f_ as resolveProfile, f$ as runLayerFilters, g0 as runLayerFiltersFloat, g1 as selectionArea, g2 as selectionFromCoverage, g3 as selectionFromPixels, g4 as selectionToCoverage, g5 as selectionToPixels, g6 as selectionValueAt, g7 as serializeColorMode, g8 as serializeColorProfile, g9 as serializeContents, ga as serializeEffects, gb as serializeLayer, gc as serializeLayers, gd as serializeLayersExternal, ge as serializePatterns, gf as serializeSelection, gg as setLayerEffects, gh as setLayerEffectsEnabled, gi as setLayerMask, gj as setLayerProperties, gk as setSmartFilterMask, gl as setSmartFiltersEnabled, gm as setSmartPlacement, gn as shapeAsPixelLayer, go as shapeFromAnnotation, gp as shapeGeometryBounds, gq as shapeLayers, gr as shapeOutline, gs as shapeRenderClip, gt as shiftCoverage, gu as smartObjectLayers, gv as smoothCoverage, gw as srgb8ToLab, gx as textMatrix, gy as textOutlines, gz as textRange, gA as toHex, gB as toTextSpace, gC as toneRange, gD as transformHomography, gE as transformMap, gF as transformShapeComponents, gG as transformTypeLayer, gH as transformedBox, gI as transformedPoint, gJ as typeAsPixelLayer, gK as typeFrame, gL as typeFromAnnotation, gM as typeLayerName, gN as ungroupLayer, gO as unionRect, gP as unprojectCanvasPoint, gQ as updateLayerEffect, gR as updateLayerFilter, gS as updateLayerMaskProps, gT as updateShapeLayer, gU as updateSmartFilter, gV as updateTypeLayer, gW as withFilterMaskSurface, gX as withNewIds, gY as writePsd } from '../export-DRzNhrdx.cjs';
3
3
  import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
4
4
  import { a as BlendMode } from '../surface-1MRncXpF.cjs';
5
5
  export { B as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, P as PAINTERLY_BLEND_MODES, Z as PIGMENT_BANDS, _ as PIGMENT_LAMBDA_MIN, $ as PIGMENT_LAMBDA_STEP, a0 as PIGMENT_WAVELENGTHS, Y as Pigment, a1 as PigmentOptions, a2 as PigmentRgb, c as PixelSurface, R as RasterRect, d as Rgb, e as Rgba, S as SHADOW_AMBIENT, f as SurfaceDraft, g as TILE, h as TILE_SHIFT, i as Tile, j as TileKey, T as TiledSurface, k as blendChannel, l as blendImageData, m as blendLum, n as blendPixel, o as blendRgb, p as canvasCompositeOperation, q as collectTiles, r as contentBounds, a3 as createPigment, s as emptySurface, t as fillRect, u as finishTile, v as isBlendMode, w as isPainterlyBlendMode, x as isSeparableBlendMode, a4 as lerpPigment, a5 as lerpPigmentInto, y as mixPigment8, z as mixPigmentRgb, a6 as mixPigments, A as normalizeBlendMode, C as packRgba, D as pigment8, E as readPixel, F as readRegion, a7 as reflectanceToRgb, a8 as rgbToReflectance, G as setLum, a9 as setPigmentColor, H as solidSurface, I as standardBlendMode, J as surfaceBytes, K as surfaceFromPixels, L as surfacesEqual, N as tileCoord, O as tileKey, Q as tileRect, U as tilesInRect, V as translateSurface, W as uniformTile, X as writeRegion } from '../surface-1MRncXpF.cjs';
@@ -1,5 +1,5 @@
1
- import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-DHrFJ8r_.js';
2
- export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, aa as CreateAnnotationPayload, ab as CropHandle, ac as CurvesParams, ad as DEFAULT_ADJUSTMENTS, ae as DEFAULT_DEPTH_MASK, af as DEFAULT_MITER_LIMIT, ag as DEFAULT_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertHex, dj as convertSurfaceColors, dk as convertToSmartObject, dl as copySmartObject, dm as cornersFromMatrix, dn as coverageToByte, dp as createSelectionMask, dq as createShapeLayer, dr as createTypeLayer, ds as decodeDeepSurface, dt as decodeLayerChannel, du as decodeLayerMask, dv as decodeMergedImage, dw as decodePngDataUrl, dx as decodeSelectionRle, dy as defaultShapeName, dz as depthMaskAlpha, dA as describeTransform, dB as deserializeColorMode, dC as deserializeColorProfile, dD as deserializeEffects, dE as deserializeLayer, dF as deserializeLayers, dG as deserializePatterns, dH as deserializeSelection, dI as developFilter, dJ as displayTransform, dK as distanceTransform, dL as documentContents, dM as documentProfile, dN as duplicateLayer, dO as edgeWidth, dP as effectPixelsToSurface, dQ as effectiveProof, dR as ellipsePoints, dS as ellipseSelection, dT as encodeDeepSurface, dU as encodeSelectionRle, dV as encodeSurface, dW as expandCoverage, dX as exportPsd, dY as featherCoverage, dZ as filterMaskCoverage, d_ as flipCorners, d$ as fullSelection, e0 as geometryHomography, e1 as getAnnotationBounds, e2 as getCropCursor, e3 as getRotatedSize, e4 as getViewportMetrics, e5 as getViewportProjection, e6 as globalImageCache, e7 as greyMorphology, e8 as groupLayers, e9 as guidePlanes, ea as guidedFilterColor, eb as hasSurface, ec as hasWarp, ed as hashMaskContent, ee as histogramPath, ef as hitTestAnnotation, eg as hitTestCrop, eh as hueRange, ei as identityTransform, ej as imageToCanvasPoint, ek as importPsd, el as instancesOf, em as invertSelection, en as isActiveFilter, eo as isContentsDecoded, ep as isIdentityTransform, eq as isQuarterTurnSwapped, er as isRenderedLayer, es as isRetouchTool, et as isSelectionEmpty, eu as isSelectionMode, ev as isSmartSurfaceIncomplete, ew as isSpatialFilter, ex as isSrgb, ey as isTransformAnchor, ez as isValidWarp, eA as layerEffectsOf, eB as layerMaskCoverage, eC as layerMaskFromSelection, eD as layerMaskKey, eE as layerName, eF as layerTree, eG as layerTypeLabel, eH as liveComponent, eI as liveShapeSubpaths, eJ as magicWand, eK as mapCropHandle, eL as mapSubpaths, eM as matrixFromCorners, eN as matrixFromParams, eO as mergeShapeComponents, eP as migrateSerializedImageEditorState, eQ as migrateToLayeredState, eR as modifySelection, eS as moveLayer, eT as moveSmartFilter, eU as newContentsId, eV as newLayerId, eW as normalizeAngle, eX as normalizeFilter, eY as normalizeLayerMask, eZ as normalizeLiveShape, e_ as normalizePlacement, e$ as normalizeRect, f0 as normalizeRefineEdgeParams, f1 as normalizeShapePaint, f2 as normalizeShapeStroke, f3 as normalizeSmartFilter, f4 as normalizeStoredAdjustments, f5 as normalizeSubpaths, f6 as normalizeText, f7 as offsetLayer, f8 as offsetShape, f9 as offsetSmartObject, fa as parseBlend, fb as parseColor, fc as parseSelectionMode, fd as patchParagraphStyle, fe as patchTextStyle, ff as pixelLayerBounds, fg as pixelLayers, fh as placeContents, fi as placeLayer, fj as placementAt, fk as placementBounds, fl as placementGeometry, fm as polygonCoverage, fn as polygonSelection, fo as presetWarp, fp as previewStep, fq as profileBytes, fr as projectImagePoint, fs as projectImageRect, ft as projectMaskCoverage, fu as psdToLayers, fv as rasterContents, fw as rasterizeSmartObject, fx as readPsd, fy as rectSelection, fz as referencePoint, fA as refineCoverage, fB as refineEdgeHalo, fC as refineSelection, fD as removeLayer, fE as removeLayerEffect, fF as removeLayerFilter, fG as removeSmartFilter, fH as renderShape, fI as renderShapeRect, fJ as renderSmartObject, fK as renderText, fL as replaceContents, fM as replaceTextRange, fN as requireLayer, fO as requireOperation, fP as requireShapeLayer, fQ as requireSmartObject, fR as requireTypeLayer, fS as requireUnlocked, fT as rerender, fU as rerenderShape, fV as rerenderText, fW as resizePixels, fX as resizeSelection, fY as resolveExternalAssets, fZ as resolveProfile, f_ as runLayerFilters, f$ as runLayerFiltersFloat, g0 as selectionArea, g1 as selectionFromCoverage, g2 as selectionFromPixels, g3 as selectionToCoverage, g4 as selectionToPixels, g5 as selectionValueAt, g6 as serializeColorMode, g7 as serializeColorProfile, g8 as serializeContents, g9 as serializeEffects, ga as serializeLayer, gb as serializeLayers, gc as serializeLayersExternal, gd as serializePatterns, ge as serializeSelection, gf as setLayerEffects, gg as setLayerEffectsEnabled, gh as setLayerMask, gi as setLayerProperties, gj as setSmartFilterMask, gk as setSmartFiltersEnabled, gl as setSmartPlacement, gm as shapeAsPixelLayer, gn as shapeFromAnnotation, go as shapeGeometryBounds, gp as shapeLayers, gq as shapeOutline, gr as shapeRenderClip, gs as shiftCoverage, gt as smartObjectLayers, gu as smoothCoverage, gv as srgb8ToLab, gw as textMatrix, gx as textOutlines, gy as textRange, gz as toHex, gA as toTextSpace, gB as toneRange, gC as transformHomography, gD as transformMap, gE as transformShapeComponents, gF as transformTypeLayer, gG as transformedBox, gH as transformedPoint, gI as typeAsPixelLayer, gJ as typeFrame, gK as typeFromAnnotation, gL as typeLayerName, gM as ungroupLayer, gN as unionRect, gO as unprojectCanvasPoint, gP as updateLayerEffect, gQ as updateLayerFilter, gR as updateLayerMaskProps, gS as updateShapeLayer, gT as updateSmartFilter, gU as updateTypeLayer, gV as withFilterMaskSurface, gW as withNewIds, gX as writePsd } from '../export-DHrFJ8r_.js';
1
+ import { a as ImageAdjustments, D as DepthMaskOptions, b as SerializedImageEditorState, A as AdjustmentKind, c as AdjustmentLayer, d as AdjustmentParamsMap, e as AdjustmentLayerMask, f as AdjustmentLayerOf, C as CurvePoint, H as HueRange, L as LevelsChannel, g as ImageEditorController, h as SelectionMask, i as SelectionMode, j as ColorDistance, R as RefineEdgeParams, k as ImagePoint, l as ImageLayer, m as CropBox, n as RasterMask, o as Annotation, p as AdjustmentLayerNode, T as TextEnv, q as AnnotationLayer, r as ShapeLayer, s as TypeLayer, t as LayerFilter, u as PixelLayer, v as DevelopFilter, w as ImageTransform, x as ImageHistogram, y as ImageProjection, z as CompositorSources, B as LayerCompositor, E as LiveShapeKind, F as TypeLayerInfo, G as SmartFilter, J as LayerPlacement, K as FreeTransformMode, M as FreeTransformResult, N as FreeTransformSession, O as FreeTransformInit, Q as TransformAnchor } from '../export-DotEEyXj.js';
2
+ export { U as AIResultOptions, V as AdjustmentLayerBase, W as AdjustmentLayerInit, X as AdjustmentLayerUpdate, Y as AnnotationPlacement, Z as AnnotationType, _ as ArrowAnnotation, $ as AspectRatio, a0 as BaseAnnotation, a1 as BlackWhiteParams, a2 as BlurFilter, a3 as CircleAnnotation, a4 as CloneSource, a5 as ColorBalanceParams, a6 as ColorBalanceTone, a7 as ColorRangeOptions, a8 as ColorRangeSample, a9 as ConvertOptions, aa as CreateAnnotationPayload, ab as CropHandle, ac as CurvesParams, ad as DEFAULT_ADJUSTMENTS, ae as DEFAULT_DEPTH_MASK, af as DEFAULT_MITER_LIMIT, ag as DEFAULT_PROOF, ah as DEFAULT_REFINE_EDGE_PARAMS, ai as DEFAULT_TRANSFORM, aj as DeserializeContext, ak as DevelopSettings, al as DocumentColorMode, am as DocumentColorProfile, an as EMPTY_DISTANCE, ao as EffectSmartFilter, ap as ExportOptions, aq as FREE_TRANSFORM_CONTENTS, ar as FREE_TRANSFORM_MODES, as as FillOptions, at as FreeTransformContent, au as FreeTransformGeometry, av as FreeTransformHost, aw as FreeTransformPreview, ax as GUIDED_FILTER_EPS, ay as GroupLayer, az as HISTOGRAM_BINS, aA as HistogramChannel, aB as HistoryEntryHandle, aC as HueSaturationParams, aD as IMAGE_EDITOR_SCHEMA_VERSION, aE as IMAGE_EFFECT_PLACES, aF as ImageAnnotation, aG as ImageDimensions, aH as ImageEditorAIHooks, I as ImageEditorAssetStore, aI as ImageEditorFit, aJ as ImageEditorOptions, aK as ImageEditorRenderer, aL as ImageEditorState, aM as ImageEditorTool, aN as ImageEffectGenerator, aO as ImageEffectPlace, aP as ImageEffectsEngine, aQ as ImageEffectsEngineOptions, aR as ImageLayerType, aS as InpaintHook, aT as InpaintOptions, aU as InvertParams, aV as LAYERED_SCHEMA_VERSION, aW as LIVE_SHAPE_KINDS, aX as LayerBase, aY as LayerBlendMode, aZ as LayerFilterKind, a_ as LayerLocation, a$ as LayerMaskProps, b0 as LayerOperationError, b1 as LayerProperties, b2 as LayerSourcesHost, b3 as LayerTarget, b4 as LegacySerializedImageEditorState, b5 as LevelsParams, b6 as LineAnnotation, b7 as LiveShape, b8 as MagicWandOptions, b9 as MixerStrokeInit, ba as PARAGRAPH_STYLE_FIELDS, bb as PSD_BLEND_KEYS, bc as PaintOptions, bd as PaintStrokeResult, be as PaintStrokeSession, bf as PenAnnotation, bg as PhotoFilterParams, bh as PixelBuffer, bi as PixelLayerInit, bj as PixelTransform, bk as PosterizeParams, bl as ProofSetup, bm as PsdChannel, bn as PsdExportInput, P as PsdExportResult, bo as PsdFile, bp as PsdHeader, bq as PsdImportOptions, br as PsdImportResult, bs as PsdLayerMask, bt as PsdLayerRecord, bu as PsdLayerSummary, bv as PsdRect, bw as PsdResource, bx as PsdSmartFilter, by as PsdTaggedBlock, bz as PsdTreeNode, bA as RETOUCH_TOOLS, bB as RectAnnotation, bC as RemoveBackgroundHook, bD as RemoveBackgroundOptions, bE as RenderOptions, bF as RetouchStrokeInit, bG as RetouchTool, bH as SELECTION_MODES, bI as SELECTION_MODIFY_OPS, bJ as SHAPE_OPERATIONS, bK as SHAPE_RENDER_MARGIN, bL as SMART_RENDER_MARGIN, bM as SampleOptions, bN as SelectionChannel, bO as SelectionCommandOptions, bP as SelectionModifyOp, bQ as SerializeContext, bR as SerializedAdjustmentLayer, bS as SerializedAnnotationLayer, bT as SerializedColorMode, bU as SerializedColorProfile, bV as SerializedDeepPixels, bW as SerializedGroupLayer, S as SerializedLayer, bX as SerializedLayerEffects, bY as SerializedLayeredImageEditorState, bZ as SerializedPattern, b_ as SerializedPixelLayer, b$ as SerializedRasterMask, c0 as SerializedSelection, c1 as SerializedShapeLayer, c2 as SerializedSmartContents, c3 as SerializedSmartFilter, c4 as SerializedSmartObjectLayer, c5 as SerializedTypeLayer, c6 as ShapeArrowhead, c7 as ShapeComponent, c8 as ShapeEnv, c9 as ShapeFillRule, ca as ShapeGeometryInput, cb as ShapeLayerData, cc as ShapeLayerInfo, cd as ShapeLayerInit, ce as ShapeLineCap, cf as ShapeLineJoin, cg as ShapeOperation, ch as ShapePaint, ci as ShapePsdData, cj as ShapeSelectionOptions, ck as ShapeStroke, cl as ShapeStrokeAlign, cm as ShapeStrokeInput, cn as SmartCanvas, co as SmartContents, cp as SmartDocument, cq as SmartEffectResolver, cr as SmartFilterKind, cs as SmartFilterStack, ct as SmartObjectInfo, cu as SmartObjectLayer, cv as SmartPlacement, cw as SmartPsdData, cx as SmartRenderOptions, cy as StrokeInit, cz as StrokeTool, cA as TEXT_RENDER_MARGIN, cB as TEXT_STYLE_FIELDS, cC as TONE_RANGE_PRESETS, cD as TRANSFORM_ANCHORS, cE as TextAnnotation, cF as TextLayerInit, cG as ThresholdParams, cH as ToneRangePreset, cI as TransformParams, cJ as TransformReadout, cK as TypeLayerData, cL as TypePsdData, cM as VibranceParams, cN as ViewportMetrics, cO as activeEffectSmartFilters, cP as activeSmartFilters, cQ as addLayerEffect, cR as addLayerFilter, cS as addSmartFilter, cT as adjustmentNodeAsLayer, cU as anchorPoint, cV as annotationBlend, cW as annotationOfShape, cX as annotationOfType, cY as applyImageProjectionToContext, cZ as applyParams, c_ as applySmartFilters, c$ as blurFilter, d0 as borderCoverage, d1 as boxMean, d2 as boxPointOf, d3 as buildLayerMaskPlanes, d4 as calculateCropDrag, d5 as canvasToImagePoint, d6 as checkImageEffectPlace, d7 as clampCropToImage, d8 as colorModePlanes, d9 as colorRange, da as combineSelections, db as componentPath, dc as compositeDeep, dd as computeHistogram, de as computeSelectionBounds, df as contentsBox, dg as contentsSurface, dh as contractCoverage, di as convertColorFields, dj as convertHex, dk as convertSurfaceColors, dl as convertToSmartObject, dm as copySmartObject, dn as cornersFromMatrix, dp as coverageToByte, dq as createSelectionMask, dr as createShapeLayer, ds as createTypeLayer, dt as decodeDeepSurface, du as decodeLayerChannel, dv as decodeLayerMask, dw as decodeMergedImage, dx as decodePngDataUrl, dy as decodeSelectionRle, dz as defaultShapeName, dA as depthMaskAlpha, dB as describeTransform, dC as deserializeColorMode, dD as deserializeColorProfile, dE as deserializeEffects, dF as deserializeLayer, dG as deserializeLayers, dH as deserializePatterns, dI as deserializeSelection, dJ as developFilter, dK as displayTransform, dL as distanceTransform, dM as documentContents, dN as documentProfile, dO as duplicateLayer, dP as edgeWidth, dQ as effectPixelsToSurface, dR as effectiveProof, dS as ellipsePoints, dT as ellipseSelection, dU as encodeDeepSurface, dV as encodeSelectionRle, dW as encodeSurface, dX as expandCoverage, dY as exportPsd, dZ as featherCoverage, d_ as filterMaskCoverage, d$ as flipCorners, e0 as fullSelection, e1 as geometryHomography, e2 as getAnnotationBounds, e3 as getCropCursor, e4 as getRotatedSize, e5 as getViewportMetrics, e6 as getViewportProjection, e7 as globalImageCache, e8 as greyMorphology, e9 as groupLayers, ea as guidePlanes, eb as guidedFilterColor, ec as hasSurface, ed as hasWarp, ee as hashMaskContent, ef as histogramPath, eg as hitTestAnnotation, eh as hitTestCrop, ei as hueRange, ej as identityTransform, ek as imageToCanvasPoint, el as importPsd, em as instancesOf, en as invertSelection, eo as isActiveFilter, ep as isContentsDecoded, eq as isIdentityTransform, er as isQuarterTurnSwapped, es as isRenderedLayer, et as isRetouchTool, eu as isSelectionEmpty, ev as isSelectionMode, ew as isSmartSurfaceIncomplete, ex as isSpatialFilter, ey as isSrgb, ez as isTransformAnchor, eA as isValidWarp, eB as layerEffectsOf, eC as layerMaskCoverage, eD as layerMaskFromSelection, eE as layerMaskKey, eF as layerName, eG as layerTree, eH as layerTypeLabel, eI as liveComponent, eJ as liveShapeSubpaths, eK as magicWand, eL as mapCropHandle, eM as mapSubpaths, eN as matrixFromCorners, eO as matrixFromParams, eP as mergeShapeComponents, eQ as migrateSerializedImageEditorState, eR as migrateToLayeredState, eS as modifySelection, eT as moveLayer, eU as moveSmartFilter, eV as newContentsId, eW as newLayerId, eX as normalizeAngle, eY as normalizeFilter, eZ as normalizeLayerMask, e_ as normalizeLiveShape, e$ as normalizePlacement, f0 as normalizeRect, f1 as normalizeRefineEdgeParams, f2 as normalizeShapePaint, f3 as normalizeShapeStroke, f4 as normalizeSmartFilter, f5 as normalizeStoredAdjustments, f6 as normalizeSubpaths, f7 as normalizeText, f8 as offsetLayer, f9 as offsetShape, fa as offsetSmartObject, fb as parseBlend, fc as parseColor, fd as parseSelectionMode, fe as patchParagraphStyle, ff as patchTextStyle, fg as pixelLayerBounds, fh as pixelLayers, fi as placeContents, fj as placeLayer, fk as placementAt, fl as placementBounds, fm as placementGeometry, fn as polygonCoverage, fo as polygonSelection, fp as presetWarp, fq as previewStep, fr as profileBytes, fs as projectImagePoint, ft as projectImageRect, fu as projectMaskCoverage, fv as psdToLayers, fw as rasterContents, fx as rasterizeSmartObject, fy as readPsd, fz as rectSelection, fA as referencePoint, fB as refineCoverage, fC as refineEdgeHalo, fD as refineSelection, fE as removeLayer, fF as removeLayerEffect, fG as removeLayerFilter, fH as removeSmartFilter, fI as renderShape, fJ as renderShapeRect, fK as renderSmartObject, fL as renderText, fM as replaceContents, fN as replaceTextRange, fO as requireLayer, fP as requireOperation, fQ as requireShapeLayer, fR as requireSmartObject, fS as requireTypeLayer, fT as requireUnlocked, fU as rerender, fV as rerenderShape, fW as rerenderText, fX as resizePixels, fY as resizeSelection, fZ as resolveExternalAssets, f_ as resolveProfile, f$ as runLayerFilters, g0 as runLayerFiltersFloat, g1 as selectionArea, g2 as selectionFromCoverage, g3 as selectionFromPixels, g4 as selectionToCoverage, g5 as selectionToPixels, g6 as selectionValueAt, g7 as serializeColorMode, g8 as serializeColorProfile, g9 as serializeContents, ga as serializeEffects, gb as serializeLayer, gc as serializeLayers, gd as serializeLayersExternal, ge as serializePatterns, gf as serializeSelection, gg as setLayerEffects, gh as setLayerEffectsEnabled, gi as setLayerMask, gj as setLayerProperties, gk as setSmartFilterMask, gl as setSmartFiltersEnabled, gm as setSmartPlacement, gn as shapeAsPixelLayer, go as shapeFromAnnotation, gp as shapeGeometryBounds, gq as shapeLayers, gr as shapeOutline, gs as shapeRenderClip, gt as shiftCoverage, gu as smartObjectLayers, gv as smoothCoverage, gw as srgb8ToLab, gx as textMatrix, gy as textOutlines, gz as textRange, gA as toHex, gB as toTextSpace, gC as toneRange, gD as transformHomography, gE as transformMap, gF as transformShapeComponents, gG as transformTypeLayer, gH as transformedBox, gI as transformedPoint, gJ as typeAsPixelLayer, gK as typeFrame, gL as typeFromAnnotation, gM as typeLayerName, gN as ungroupLayer, gO as unionRect, gP as unprojectCanvasPoint, gQ as updateLayerEffect, gR as updateLayerFilter, gS as updateLayerMaskProps, gT as updateShapeLayer, gU as updateSmartFilter, gV as updateTypeLayer, gW as withFilterMaskSurface, gX as withNewIds, gY as writePsd } from '../export-DotEEyXj.js';
3
3
  import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
4
4
  import { a as BlendMode } from '../surface-1MRncXpF.js';
5
5
  export { B as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, P as PAINTERLY_BLEND_MODES, Z as PIGMENT_BANDS, _ as PIGMENT_LAMBDA_MIN, $ as PIGMENT_LAMBDA_STEP, a0 as PIGMENT_WAVELENGTHS, Y as Pigment, a1 as PigmentOptions, a2 as PigmentRgb, c as PixelSurface, R as RasterRect, d as Rgb, e as Rgba, S as SHADOW_AMBIENT, f as SurfaceDraft, g as TILE, h as TILE_SHIFT, i as Tile, j as TileKey, T as TiledSurface, k as blendChannel, l as blendImageData, m as blendLum, n as blendPixel, o as blendRgb, p as canvasCompositeOperation, q as collectTiles, r as contentBounds, a3 as createPigment, s as emptySurface, t as fillRect, u as finishTile, v as isBlendMode, w as isPainterlyBlendMode, x as isSeparableBlendMode, a4 as lerpPigment, a5 as lerpPigmentInto, y as mixPigment8, z as mixPigmentRgb, a6 as mixPigments, A as normalizeBlendMode, C as packRgba, D as pigment8, E as readPixel, F as readRegion, a7 as reflectanceToRgb, a8 as rgbToReflectance, G as setLum, a9 as setPigmentColor, H as solidSurface, I as standardBlendMode, J as surfaceBytes, K as surfaceFromPixels, L as surfacesEqual, N as tileCoord, O as tileKey, Q as tileRect, U as tilesInRect, V as translateSurface, W as uniformTile, X as writeRegion } from '../surface-1MRncXpF.js';
@@ -3593,6 +3593,30 @@ function convertHex(hex, from, to, intent = "relative", bpc = true) {
3593
3593
  const c = (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, "0");
3594
3594
  return `#${c(out[0])}${c(out[1])}${c(out[2])}`;
3595
3595
  }
3596
+ function convertColorFields(value, convert) {
3597
+ const walk = (v, key) => {
3598
+ if (typeof v === "string") return /color$/i.test(key) && /^#[0-9a-f]{6}$/i.test(v) ? convert(v) : v;
3599
+ if (Array.isArray(v)) {
3600
+ let changed = false;
3601
+ const out = v.map((x) => {
3602
+ const y = walk(x, key);
3603
+ if (y !== x) changed = true;
3604
+ return y;
3605
+ });
3606
+ return changed ? out : v;
3607
+ }
3608
+ if (v && typeof v === "object" && Object.getPrototypeOf(v) === Object.prototype) {
3609
+ let out = null;
3610
+ for (const [k, x] of Object.entries(v)) {
3611
+ const y = walk(x, k);
3612
+ if (y !== x) (out ??= { ...v })[k] = y;
3613
+ }
3614
+ return out ?? v;
3615
+ }
3616
+ return v;
3617
+ };
3618
+ return walk(value, "");
3619
+ }
3596
3620
  function convertSurfaceColors(surface, t) {
3597
3621
  if (surface.channels !== 4 || t.inputs !== 3 || t.outputs !== 3) return surface;
3598
3622
  const tiles = /* @__PURE__ */ new Map();
@@ -7665,18 +7689,44 @@ var ImageEditorController = class {
7665
7689
  const t = Transform.create(resolveProfile(this.state.colorProfile), resolveProfile(doc), { intent, bpc: options.bpc ?? true });
7666
7690
  const converted = [];
7667
7691
  const unconverted = [];
7668
- const walk = (layers) => layers.map((l) => {
7669
- if (l.type === "group") return { ...l, children: walk(l.children) };
7670
- if (l.type === "pixel" && l.source !== "document") {
7671
- converted.push(l.id);
7672
- return { ...l, surface: convertSurfaceColors(l.surface, t) };
7673
- }
7674
- if (l.type === "pixel" && l.source === "document") {
7675
- converted.push(l.id);
7676
- return { ...l, surface: convertSurfaceColors(this.surfaceOf(l), t), source: void 0 };
7692
+ const memo = /* @__PURE__ */ new Map();
7693
+ const px2 = new Float32Array(4);
7694
+ const hex = (h) => {
7695
+ let out = memo.get(h.toLowerCase());
7696
+ if (out === void 0) {
7697
+ const n = parseInt(h.slice(1), 16);
7698
+ t.eval([(n >> 16 & 255) / 255, (n >> 8 & 255) / 255, (n & 255) / 255], px2);
7699
+ const c = (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, "0");
7700
+ out = `#${c(px2[0])}${c(px2[1])}${c(px2[2])}`;
7701
+ memo.set(h.toLowerCase(), out);
7677
7702
  }
7678
- if (l.type === "shape" || l.type === "type" || l.type === "smart" || l.effects?.items.length) unconverted.push(l.id);
7679
- return l;
7703
+ return out;
7704
+ };
7705
+ const shapeEnv = this.shapeEnv();
7706
+ const textEnv = this.textEnv();
7707
+ const walk = (layers) => layers.map((l) => {
7708
+ let next2 = l;
7709
+ if (l.effects?.items.length) next2 = { ...next2, effects: convertColorFields(l.effects, hex) };
7710
+ if (l.type === "group") {
7711
+ if (next2 !== l) converted.push(l.id);
7712
+ return { ...next2, children: walk(l.children) };
7713
+ }
7714
+ if (l.type === "pixel" && l.source !== "document") next2 = { ...next2, surface: convertSurfaceColors(l.surface, t) };
7715
+ else if (l.type === "pixel") next2 = { ...next2, surface: convertSurfaceColors(this.surfaceOf(l), t), source: void 0 };
7716
+ else if (l.type === "shape") {
7717
+ const s = next2;
7718
+ next2 = rerenderShape({ ...s, fill: convertColorFields(s.fill, hex), stroke: convertColorFields(s.stroke, hex), ...s.annotation ? { annotation: convertColorFields(s.annotation, hex) } : {} }, shapeEnv);
7719
+ } else if (l.type === "type") {
7720
+ const recoloured = { ...next2, runs: convertColorFields(l.runs, hex) };
7721
+ try {
7722
+ next2 = rerenderText(recoloured, textEnv);
7723
+ } catch {
7724
+ next2 = { ...recoloured, surface: convertSurfaceColors(l.surface, t) };
7725
+ }
7726
+ } else if (l.type === "annotation") next2 = { ...next2, annotation: convertColorFields(l.annotation, hex) };
7727
+ if (l.type === "smart") unconverted.push(l.id);
7728
+ else if (next2 !== l) converted.push(l.id);
7729
+ return next2;
7680
7730
  });
7681
7731
  const next = walk(this.state.layers);
7682
7732
  this.commitLayers(next, () => {
@@ -11020,7 +11070,7 @@ function createImageColorTools(controller) {
11020
11070
  const convert = {
11021
11071
  name: "convert_to_profile",
11022
11072
  title: "Convert to a colour profile",
11023
- description: "Edit \u203A Convert to Profile: converts every pixel layer's numbers so its colours stay the same in `profile`, then makes `profile` the document's. Colours outside the new space are mapped by `intent`. Shape and type layers, layer effects and smart objects keep their numbers and are listed in unconvertedLayerIds. RGB profiles only (proof CMYK with set_proof_setup). One undo step. Returns the profile, convertedLayerIds and unconvertedLayerIds.",
11073
+ description: "Edit \u203A Convert to Profile: converts every pixel layer's numbers so its colours stay the same in `profile`, then makes `profile` the document's. Colours outside the new space are mapped by `intent`. Shape fills and strokes, text colours, layer-effect colours and annotation colours convert too (and re-render); smart objects keep their contents' numbers and are listed in unconvertedLayerIds. RGB profiles only (proof CMYK with set_proof_setup). One undo step. Returns the profile, convertedLayerIds and unconvertedLayerIds.",
11024
11074
  inputSchema: {
11025
11075
  type: "object",
11026
11076
  properties: {
@@ -15108,6 +15158,7 @@ export {
15108
15158
  contractCoverage,
15109
15159
  controlPosition,
15110
15160
  controlTrackBackground,
15161
+ convertColorFields,
15111
15162
  convertHex,
15112
15163
  convertSurfaceColors,
15113
15164
  convertSurfaceDepth,