@univerjs-pro/sheets-shape-ui 1.5.0 → 1.5.1

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 (81) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +19 -19
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x356faf=_0x4380;(function(_0x52a541,_0x40593a){const _0x36ce53=_0x4380,_0x1666dc=_0x52a541();while(!![]){try{const _0x573c85=parseInt(_0x36ce53(0x27c))/0x1*(parseInt(_0x36ce53(0x2b4))/0x2)+-parseInt(_0x36ce53(0x1fd))/0x3*(-parseInt(_0x36ce53(0x436))/0x4)+-parseInt(_0x36ce53(0x32d))/0x5*(-parseInt(_0x36ce53(0x421))/0x6)+-parseInt(_0x36ce53(0x35d))/0x7+-parseInt(_0x36ce53(0x267))/0x8+parseInt(_0x36ce53(0x360))/0x9+-parseInt(_0x36ce53(0x27e))/0xa;if(_0x573c85===_0x40593a)break;else _0x1666dc['push'](_0x1666dc['shift']());}catch(_0x32e7d1){_0x1666dc['push'](_0x1666dc['shift']());}}}(_0x3cc8,0x7921b));import{FormulaShapeAnimationController as _0x4233a2,MobileShapeEditorService as _0x257d12,SHAPE_CHANGE_PICKER_COMPONENT as _0x4dfa0e,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x498b2d,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x118b51,ShapeEditPanel as _0xaa1b53,ShapeFloatingToolbar as _0x3988da,ShapeFloatingToolbarService as _0x445bca,ShapeFloatingToolbarToggleFactory as _0x2737b1,ShapeFormulaRibbonControl as _0x4a64d0,ShapeGroupEnum as _0x5b263a,ShapePickerDropdown as _0x5ae484,ShapePickerPanel as _0x35925b,ShapeQuickStyleGallery as _0x4e4fc7,ShapeStyleRibbonControl as _0x19e9b3,ShapeTextEditorContainer as _0x3f0eef,ShapeTextFloatMenuRenderControllerBase as _0x50d208,ShapeTextFloatToolbar as _0x281e1e,ShapeTextHyperLinkHoverController as _0x313206,ShapeTextHyperLinkInfo as _0x336213,ShapeTextHyperLinkPopupService as _0xb67c72,ShapeTextRibbonControl as _0x13449d,ToggleShapeFloatingToolbarOperation as _0x3827bc,UniverShapeEditorMobileUIPlugin as _0x4d8d5d,UniverShapeEditorUIPlugin as _0x12203b,activateDrawingObject as _0x24c727,bindRenderTransformerLifecycle as _0x260443,buildShapeTextDataUpdate as _0x530bbe,clearActiveDrawingObjects as _0x268d65,createShapeTextHyperLinkRegions as _0x2c4b46,drawFormulaShapeAnimationLayers as _0xdbee50,getDrawingTypeNameKey as _0x15c98b,getTextModel as _0x5ee14a,getTextStyle as _0x358849,normalizeShapeTextModel as _0x9c5ba3,plainShapeTextToDocumentData as _0x3a8073,prepareShapeTextDocumentData as _0x678e30,registerShapeFormatPainter as _0x22e857,resolveFormulaShapeAutoFitSize as _0x5b62c4,resolveShapeContextualRibbonHostMode as _0x44c075,resolveShapeTextDocumentPageHeight as _0x4f4079,resolveShapeTextDocumentRenderLayout as _0x436c81,resolveShapeTextEditorBehaviorShapeData as _0x483831,resolveShapeTextEditorWrapStrategy as _0x410614,resolveShapeTextHyperLinkAt as _0x4b25a2,resolveShapeTextHyperLinkObject as _0x51e496,shouldAllowShapeTextEditorHostSizeShrink as _0x188eb4,shouldClipShapeTextDocument as _0x5cef3b,useFormulaShapeToolbar as _0x3e3da7}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x333fbe,ContextMenuGroup as _0xc4e583,ContextMenuPosition as _0x2c47b2,FloatingObjectToolbarPosition as _0x4e210f,FormatPainterSessionService as _0x10e30f,ILayoutService as _0x31805e,IMenuManagerService as _0x4d1e99,IRibbonService as _0x5a6823,ISidebarService as _0x1bca5a,IconManager as _0x400e62,MenuItemType as _0x15beab,MenuManagerPosition as _0x27db81,RibbonInsertGroup as _0x132936,UndoRedoGroupService as _0x22088b,UniverMobileUIPlugin as _0x579b29,getMenuHiddenObservable as _0x19910f,useDependency as _0xa92ee6,useObservable as _0x4bf3b4}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x378bce,ImageSourceTypeEnum as _0x17a185,ShapeArrowSizeEnum as _0x129acd,ShapeArrowTypeEnum as _0x2c5a73,ShapeDefaultConfig as _0x3c938b,ShapeFillEnum as _0x4fe8b0,ShapeLineTypeEnum as _0x1a0d93,ShapeModel as _0x6abf05,ShapeRenderModeEnum as _0xc9520d,ShapeTypeEnum as _0x43a99f,computeConnectorRouteLayout as _0x43de8e,getBasicShapeRotateBound as _0x591e93,isConnectorShape as _0x1a599b,isCurvedConnectorShape as _0x3d0683,routeConnectorLineShape as _0x171039}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x571a3e,UniverShapeEditorPlugin as _0xb35d1b,applyQuickStyleToShapeData as _0x11f536,cloneShapeDataForType as _0x23c006,createShapeFormulaDocument as _0xd8f830,createShapeTextBoxShapeData as _0x29343c,getShapeQuickStylePreset as _0x157ea3,getShapeQuickStyleType as _0x442b62,resolveActiveShapeQuickStylePresetId as _0x2b9d24}from'@univerjs-pro/shape-editor';import{DEFAULT_SHAPE_HEIGHT as _0x3a98cb,DEFAULT_SHAPE_WIDTH as _0x4796d7,InsertShapeCommand as _0x4ffb4b,InsertSheetsShapeMutation as _0x36b683,RemoveSheetsShapeMutation as _0x5a76a2,SetShapeDrawingDataCommand as _0x2af5b1,SetSheetsShapeRotateCommand as _0x4f56fd,SetSheetsShapeTextVerticalToggleCommand as _0x4c8a28,SheetsShapeService as _0x19e574,ToggleSheetsShapeFlipCommand as _0x20d0ce,UniverSheetsShapePlugin as _0x4745e0,UpdateConnectorRelationCommand as _0x585b91,UpdateLineShapeResizeCommand as _0x990977,UpdateSheetsShapeDataMutation as _0x49a64c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x26f099,BooleanNumber as _0x2539e5,CommandType as _0x5663ea,CustomCommandExecutionError as _0x47006a,DependentOn as _0x1cf835,Disposable as _0x1717dd,DisposableCollection as _0x9e178c,DocumentDataModel as _0xb52c88,DrawingTypeEnum as _0x3bf95f,FOCUSING_COMMON_DRAWINGS as _0x5ebd8a,FOCUSING_SHAPE_TEXT_EDITOR as _0x416e2b,HorizontalAlign as _0x481e9a,ICommandService as _0x44c672,IConfigService as _0x2e8539,IContextService as _0x5625c0,IImageIoService as _0x17c7e8,IPermissionService as _0x481a1b,IURLImageService as _0x3c040d,IUndoRedoService as _0x42c3b2,IUniverInstanceService as _0x6cef99,Inject as _0x2132cf,Injector as _0x967603,LocaleService as _0x4a6f46,Plugin as _0x3b1ef5,SheetTypes as _0x45630e,ThemeService as _0x57d594,Tools as _0xf9bfee,UniverInstanceType as _0xdbfe17,VerticalAlign as _0xb9de71,createInternalEditorID as _0x27157e,generateRandomId as _0x1545ee,merge as _0x52ebf2,registerDependencies as _0xb94778,toDisposable as _0x5381db,touchDependencies as _0x3de196}from'@univerjs/core';import{CURSOR_TYPE as _0xd5fe4f,Circle as _0x444dbb,DRAWING_OBJECT_LAYER_INDEX as _0x604e6e,DocumentSkeleton as _0x31fdd4,DocumentViewModel as _0x31288b,Documents as _0x1bddc3,IRenderManagerService as _0xfb1542,Image as _0x40e72e,RENDER_CLASS_TYPE as _0x105e76,SHEET_VIEWPORT_KEY as _0x47a5b2,Shape as _0x28b88a,Transform as _0x2fa44a,UniverRenderEnginePlugin as _0xc0fda2,Vector2 as _0x416379}from'@univerjs/engine-render';import{CopySheetCommand as _0xcbb4a0,RemoveSheetCommand as _0x1fa762,SheetInterceptorService as _0x420646,SheetPermissionCheckController as _0x51cf7a,SheetSkeletonService as _0x3ede4b,SheetsSelectionsService as _0x1290ea,UniverSheetsPlugin as _0x312ba7,WorkbookCopyPermission as _0x5b503b,WorkbookEditablePermission as _0x5f38a2,WorksheetCopyPermission as _0x1b9338,WorksheetEditPermission as _0x5a9082,attachRangeWithCoord as _0x439cda,discreteRangeToRange as _0x38c788,getSheetCommandTarget as _0x4d4744}from'@univerjs/sheets';import{DrawingApplyType as _0x1b1dfc,ISheetDrawingService as _0x2a26b5,RemoveSheetDrawingCommand as _0x2d5f78,SetDrawingApplyMutation as _0x509b36,SetDrawingArrangeCommand as _0x5541b1,SetSheetDrawingCommand as _0x228e22,SheetDrawingAnchorType as _0xd201ae,UniverSheetsDrawingPlugin as _0x1cd6d8,applySheetDrawingPlacement as _0x159bb7,transformDrawingsToChartSheet as _0x4a4ba5,transformToAxisAlignPosition as _0x57507c,transformToDrawingPosition as _0x2110e3}from'@univerjs/sheets-drawing';import{COPY_TYPE as _0x2b8128,ISheetClipboardService as _0x20e0d4,PREDEFINED_HOOK_NAME as _0xcbb90d,SHEET_VIEW_KEY as _0x2ae40f,SheetCanvasPopManagerService as _0x21e7cb,SheetPasteCommand as _0x573a54,SheetPrintInterceptorService as _0x33a6ba,SheetScrollManagerService as _0x5f11b1,SheetSkeletonManagerService as _0x1f2fa0,UniverSheetsMobileUIPlugin as _0xfd751e,UniverSheetsUIPlugin as _0x5427ee,deriveStateFromActiveSheet$ as _0x9f8092,getCurrentRangeDisable$ as _0x187ba9,getViewportByCell as _0x13cb47}from'@univerjs/sheets-ui';import{IDrawingManagerService as _0x5f48da,SetDrawingSelectedOperation as _0x105e30,UniverDrawingPlugin as _0x4a1c45,getDrawingShapeKeyByDrawingSearch as _0x4e19f9,getOrCreateDrawingCopyPlan as _0x5ebfee}from'@univerjs/drawing';import{BehaviorSubject as _0x359fcd,EMPTY as _0x44e428,Observable as _0x32ac08,defer as _0x3262b0,distinctUntilChanged as _0x48d97e,map as _0x168ee1,merge as _0x2893e6,of as _0x5ca9c3,startWith as _0x3e71c4,switchMap as _0x48cdae}from'rxjs';import{DrawingCommonPanel as _0x40ab77,DrawingImageClipService as _0x44c97e,DrawingRenderService as _0x406898,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x197574,MobileObjectListPanel as _0x565010,OBJECT_LIST_FLOATING_SECTION_ID as _0x5ddba8,ObjectListPanelBase as _0x58ca1b,UniverDrawingUIPlugin as _0x4d30e7,getCurrentUnitInfo as _0x1fb999,getObjectListPanelSectionIdForDrawingType as _0x2a7a9e,insertGroupObject as _0x1e03f5}from'@univerjs/drawing-ui';import{MobileDropdown as _0x496e96}from'@univerjs/design';import{Fragment as _0x2c43dd,jsx as _0x38e4c6,jsxs as _0x4e1d76}from'react/jsx-runtime';import{UniverLicensePlugin as _0x221f6b}from'@univerjs-pro/license';import{DocInterceptorService as _0x327511,DocSelectionManagerService as _0x482701,UniverDocsPlugin as _0x59875c}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x5d1df1,DocEventManagerService as _0x5f57ea,DocRenderController as _0x5af849,DocSelectionRenderService as _0x5c842d,UniverDocsUIPlugin as _0x1070c4}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x215974,SheetsDrawingGroupCopyPasteController as _0x33b573,UniverSheetsDrawingMobileUIPlugin as _0x1b6025,UniverSheetsDrawingUIPlugin as _0x580514}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x3437c2,FlipHorizontalIcon as _0xf7acb8,FlipVerticalIcon as _0x8f81ec,MoveDownIcon as _0x34c26e,MoveUpIcon as _0x78aa60,ObjectLayersIcon as _0x468afb,ShapeFormatSettingIcon as _0x4543d5,TopmostIcon as _0x11c142}from'@univerjs/icons';import{memo as _0x45a7dc,useEffect as _0x4a0dc4,useMemo as _0x471bd3,useReducer as _0x298795,useState as _0x3d59af}from'react';function Ur(_0xf0abeb,_0x103add){const _0x36d65c=_0x4380;let _0x249f2d={};for(let _0x552b6d of Object[_0x36d65c(0x34e)](_0x103add)){let _0xa39155=_0x103add[_0x552b6d],_0x37e2fc=_0xf0abeb[_0x552b6d];_0x249f2d[_0x552b6d]=_0x37e2fc===void 0x0?void 0x0:typeof _0xa39155==_0x36d65c(0x307)&&_0xa39155&&!Array[_0x36d65c(0x2da)](_0xa39155)&&typeof _0x37e2fc=='object'&&_0x37e2fc&&!Array[_0x36d65c(0x2da)](_0x37e2fc)?Ur(_0x37e2fc,_0xa39155):_0x37e2fc;}return _0x249f2d;}const K={'type':_0x5663ea[_0x356faf(0x349)],'id':_0x356faf(0x331),'handler':(_0x4fac5f,_0xf2072a)=>{const _0x2ec13d=_0x356faf;let _0x28871b=_0x4fac5f['get'](_0x19e574),{unitId:_0x3497a7,subUnitId:_0x39f5b7,shapeType:_0xd5841d,shapeId:_0x5f2f53,shapeData:_0x381537,replaceShapeData:_0x10c940,oldShapeJSON:_0x474f35}=_0xf2072a;if(!_0x28871b[_0x2ec13d(0x314)](_0x3497a7,_0x39f5b7,_0x5f2f53))return!0x1;let _0x170ba6=_0x4fac5f['get'](_0x44c672),_0x4136a9=_0x4fac5f['get'](_0x42c3b2),{oldShapeType:_0x2feb9e,oldShapeData:_0x11af7d={}}=_0x474f35,_0x492cf7=_0x10c940?_0x11af7d:Ur(_0x11af7d,_0x381537||{}),_0x3cfcdc={'id':_0x49a64c['id'],'params':{'unitId':_0x3497a7,'subUnitId':_0x39f5b7,'shapeId':_0x5f2f53,'shapeType':_0xd5841d,'shapeData':_0x381537,'replace':_0x10c940}},_0x3d2ad7={'id':_0x49a64c['id'],'params':{'unitId':_0x3497a7,'subUnitId':_0x39f5b7,'shapeId':_0x5f2f53,'shapeType':_0x2feb9e,'shapeData':_0x492cf7,'replace':_0x10c940}};return _0x170ba6[_0x2ec13d(0x44e)](_0x3cfcdc['id'],_0x3cfcdc[_0x2ec13d(0x285)])?(_0x4136a9[_0x2ec13d(0x46c)]({'unitID':_0x3497a7,'undoMutations':[_0x3d2ad7],'redoMutations':[_0x3cfcdc]}),!0x0):!0x1;}};function Wr(_0x17c45f,_0x24a4da,_0x51c3f3,_0x318b7a,_0x2c289e,_0x8b76d3){const _0x284c43=_0x356faf;let _0xb185ee={'unitId':_0x24a4da,'subUnitId':_0x51c3f3,'shapeId':_0x318b7a,'shapeData':_0x8b76d3,'oldShapeJSON':_0x2c289e};return _0x17c45f[_0x284c43(0x3e3)](K['id'],_0xb185ee);}function Gr(_0x108a4a,_0x4a78be,_0x20f3f7,_0xfd773d,_0x3c1ab2,_0x24dcd4){const _0x5d5f89=_0x356faf;let _0x4cf1e9={'unitId':_0x4a78be,'subUnitId':_0x20f3f7,'shapeId':_0xfd773d,'shapeData':_0x24dcd4,'oldShapeJSON':_0x3c1ab2};return _0x108a4a[_0x5d5f89(0x3e3)](K['id'],_0x4cf1e9);}function Kr(_0x38d1e5){'@babel/helpers - typeof';const _0x303881=_0x356faf;return Kr=typeof Symbol=='function'&&typeof Symbol[_0x303881(0x2f4)]==_0x303881(0x367)?function(_0x26e692){return typeof _0x26e692;}:function(_0x39e742){const _0x149375=_0x303881;return _0x39e742&&typeof Symbol==_0x149375(0x3e7)&&_0x39e742[_0x149375(0x216)]===Symbol&&_0x39e742!==Symbol[_0x149375(0x21a)]?_0x149375(0x367):typeof _0x39e742;},Kr(_0x38d1e5);}function qr(_0xe4b985,_0x334669){const _0xcfa042=_0x356faf;if(Kr(_0xe4b985)!=_0xcfa042(0x307)||!_0xe4b985)return _0xe4b985;var _0xb45846;if(typeof Symbol<'u'&&(_0xb45846=_0xe4b985[Symbol['toPrimitive']])!==void 0x0){var _0xcc3119=_0xb45846[_0xcfa042(0x1eb)](_0xe4b985,_0x334669||_0xcfa042(0x381));if(Kr(_0xcc3119)!=_0xcfa042(0x307))return _0xcc3119;throw TypeError(_0xcfa042(0x39d));}return(_0x334669===_0xcfa042(0x1e5)?String:Number)(_0xe4b985);}function Jr(_0x5233f2){const _0x2d5aa3=_0x356faf;var _0x583117=qr(_0x5233f2,'string');return Kr(_0x583117)==_0x2d5aa3(0x367)?_0x583117:_0x583117+'';}function q(_0xe0d21f,_0xac509e,_0x1aff93){const _0x4c68f0=_0x356faf;return(_0xac509e=Jr(_0xac509e))in _0xe0d21f?Object[_0x4c68f0(0x2a8)](_0xe0d21f,_0xac509e,{'value':_0x1aff93,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe0d21f[_0xac509e]=_0x1aff93,_0xe0d21f;}function Yr(_0x7a7e5d,_0x3b9675,_0x451a03){const _0x3e03c6=_0x356faf;let _0x1256b8={..._0x3b9675,'dataModel':{..._0x3b9675[_0x3e03c6(0x219)]??{},..._0x451a03?{'doc':_0x451a03}:null}},_0x316c7f=_0x483831(_0x7a7e5d,_0x1256b8),_0x441ece=_0x410614(_0x316c7f);return{'clip':_0x5cef3b(_0x316c7f,_0x441ece),'wrapStrategy':_0x441ece};}var J=class extends _0x28b88a{constructor(_0x2b2c12,_0xca1632){const _0x2c2aab=_0x356faf;super(_0x2b2c12,_0xca1632),q(this,_0x2c2aab(0x462),[]),q(this,_0x2c2aab(0x23c),void 0x0),q(this,_0x2c2aab(0x265),new _0x4233a2(()=>this[_0x2c2aab(0x248)](!0x0),()=>this[_0x2c2aab(0x3b0)]())),q(this,_0x2c2aab(0x456),!0x0),q(this,_0x2c2aab(0x271),_0x3bf95f['DRAWING_SHAPE']),q(this,'isDrawingObject',!0x0),this['_props']={..._0xca1632},this[_0x2c2aab(0x265)]['setPresentation'](_0xca1632['formulaPresentation'],_0xca1632[_0x2c2aab(0x42e)]!==!0x1),this[_0x2c2aab(0x45f)](),this[_0x2c2aab(0x3b0)]();}[_0x356faf(0x45f)](){const _0x1d259c=_0x356faf;this['onTransformChange$'][_0x1d259c(0x4a8)](_0x5e20e7=>{const _0x3b281d=_0x1d259c;this[_0x3b281d(0x2d6)](_0x5e20e7);});}[_0x356faf(0x455)](_0x33b3d8){const _0x4b962d=_0x356faf;this[_0x4b962d(0x23c)][_0x4b962d(0x2a6)]=_0x33b3d8;}['resolveHyperLinkAt'](_0x57effe){const _0x5ee735=_0x356faf;if(this[_0x5ee735(0x23c)][_0x5ee735(0x213)])return null;let _0x4ae9d8=this[_0x5ee735(0x481)](_0x57effe),{width:_0x41ccdb,height:_0x58d2ff}=this[_0x5ee735(0x43e)]();return _0x4b25a2(this[_0x5ee735(0x462)],{'x':(this[_0x5ee735(0x43d)]?-_0x4ae9d8['x']:_0x4ae9d8['x'])+_0x41ccdb/0x2,'y':_0x4ae9d8['y']+_0x58d2ff/0x2});}[_0x356faf(0x2ed)](_0x7e721f){const _0x4c840a=_0x356faf;this[_0x4c840a(0x23c)][_0x4c840a(0x213)]=_0x7e721f,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x49a8a9,_0x5e1c06=!0x0){const _0x2596f2=_0x356faf;this[_0x2596f2(0x265)]['setPresentation'](_0x49a8a9,_0x5e1c06),this['_props'][_0x2596f2(0x218)]=_0x49a8a9,this['_applyFormulaAutoFitSize'](),this['makeDirty'](!0x0);}[_0x356faf(0x3b0)](){const _0x2de54a=_0x356faf;let _0x45f115=this[_0x2de54a(0x23c)][_0x2de54a(0x42f)],_0x59f76e=_0x45f115[_0x2de54a(0x317)](),_0x323d8e=_0x9c5ba3(_0x59f76e==null?void 0x0:_0x59f76e[_0x2de54a(0x219)]),_0x2cd5be=_0x323d8e==null?void 0x0:_0x323d8e['doc'],_0x42c10a=this[_0x2de54a(0x265)][_0x2de54a(0x3f3)]();if(!_0x2cd5be||_0x42c10a['length']===0x0)return;_0x45f115[_0x2de54a(0x240)]({'width':this[_0x2de54a(0x4b1)],'height':this[_0x2de54a(0x4c4)]});let _0x3140fe=_0x5b62c4({'documentData':_0x42c10a[_0x2de54a(0x2f9)](_0xf13773=>_0xd8f830(_0x2cd5be,_0xf13773)),'height':this['height'],'shapeData':_0x45f115[_0x2de54a(0x32a)](),'textRect':_0x45f115[_0x2de54a(0x24c)]({'left':0x0,'top':0x0,'width':this[_0x2de54a(0x4b1)],'height':this[_0x2de54a(0x4c4)]}),'width':this[_0x2de54a(0x4b1)]});if(_0x3140fe){var _0x47af7c;this[_0x2de54a(0x292)](_0x3140fe[_0x2de54a(0x4b1)],_0x3140fe[_0x2de54a(0x4c4)]),(_0x47af7c=this['getScene']())==null||(_0x47af7c=_0x47af7c[_0x2de54a(0x370)]())==null||_0x47af7c[_0x2de54a(0x459)]();}}get[_0x356faf(0x358)](){const _0x4c1474=_0x356faf;return this[_0x4c1474(0x23c)][_0x4c1474(0x358)];}get[_0x356faf(0x220)](){const _0x3b1787=_0x356faf;return this[_0x3b1787(0x23c)][_0x3b1787(0x220)];}[_0x356faf(0x2d6)](_0x4c896d){const _0x24f7bb=_0x356faf;if(this[_0x24f7bb(0x23c)][_0x24f7bb(0x24d)]==null||!this[_0x24f7bb(0x456)])return;let {width:_0x1fd513,height:_0x347ff2}=this,{width:_0x4f70d1=0x0,height:_0xd016be=0x0}=_0x4c896d[_0x24f7bb(0x39a)],{left:_0x4b0a3e=0x0,top:_0x1748ca=0x0,right:_0x2bed26=0x0,bottom:_0x217f03=0x0}=this[_0x24f7bb(0x23c)]['srcRect'],_0x14fa12=_0x4b0a3e,_0xb5e549=_0x1748ca,_0x22d984=_0x2bed26,_0x4e0e6f=_0x217f03,_0x4bd7d7=!0x1;if(_0x4f70d1!==0x0&&_0x4f70d1!==_0x1fd513){let _0xf114bf=_0x4b0a3e/_0x4f70d1,_0x10207d=_0x2bed26/_0x4f70d1;_0x14fa12=_0x1fd513*_0xf114bf,_0x22d984=_0x1fd513*_0x10207d,_0x4bd7d7=!0x0;}if(_0xd016be!==0x0&&_0xd016be!==_0x347ff2){let _0x3e9336=_0x1748ca/_0xd016be,_0x2af327=_0x217f03/_0xd016be;_0xb5e549=_0x347ff2*_0x3e9336,_0x4e0e6f=_0x347ff2*_0x2af327,_0x4bd7d7=!0x0;}_0x4bd7d7&&this[_0x24f7bb(0x426)]({'left':_0x14fa12,'top':_0xb5e549,'right':_0x22d984,'bottom':_0x4e0e6f});}[_0x356faf(0x426)](_0x13670d){const _0x5b6baf=_0x356faf;this[_0x5b6baf(0x23c)][_0x5b6baf(0x24d)]=_0x13670d,this[_0x5b6baf(0x248)](!0x0);}[_0x356faf(0x36c)](_0x25fe66){const _0xfb38bc=_0x356faf;this[_0xfb38bc(0x23c)]['image']=_0x25fe66,this[_0xfb38bc(0x248)](!0x0);}set[_0x356faf(0x478)](_0x485ce1){const _0x44db52=_0x356faf;this[_0x44db52(0x2ce)]=_0x485ce1;}get['transform'](){const _0x1e2d77=_0x356faf;this[_0x1e2d77(0x2ce)]||this[_0x1e2d77(0x3aa)]();let _0x213316=this[_0x1e2d77(0x2ce)][_0x1e2d77(0x425)]();return this['transformForAngle'](_0x213316);}get[_0x356faf(0x42f)](){const _0xf5abd8=_0x356faf;return this[_0xf5abd8(0x23c)][_0xf5abd8(0x42f)];}get[_0x356faf(0x3fe)](){const _0x5f1a6e=_0x356faf;return this[_0x5f1a6e(0x23c)][_0x5f1a6e(0x3fe)];}get[_0x356faf(0x3cd)](){const _0x76c013=_0x356faf;return _0x105e76[_0x76c013(0x1f1)];}[_0x356faf(0x3a7)](_0x2f96a8,_0x3e282f,_0x3bfdbf,_0x419676){const _0x566dd4=_0x356faf;let _0x1899f8=this['_props']['shapeModel'];if(!_0x1899f8||!_0x3e282f)return;let _0x117698=_0x3bfdbf??this[_0x566dd4(0x4b1)],_0x2aba09=_0x419676??this['height'],_0xcc62fb={'shapeType':_0x1899f8['getShapeType'](),'width':_0x117698,'height':_0x2aba09},_0x50b336={'renderMode':_0xc9520d[_0x566dd4(0x32f)],'oKey':this['oKey'],'image':this[_0x566dd4(0x23c)][_0x566dd4(0x2c7)],'angle':this[_0x566dd4(0x2b9)]};_0x1899f8[_0x566dd4(0x240)](_0xcc62fb),_0x2f96a8[_0x566dd4(0x496)]();let _0x3eb1e5={'top':0x0,'left':0x0,'width':_0x117698,'height':_0x2aba09},_0x105061=_0x1899f8[_0x566dd4(0x3ea)](_0x3eb1e5);_0x105061?this[_0x566dd4(0x463)](_0x2f96a8,_0x105061,_0x54b019=>{const _0x20d7d0=_0x566dd4;_0x1899f8[_0x20d7d0(0x471)](_0x54b019,_0x3eb1e5,_0x50b336);}):(this[_0x566dd4(0x2f5)](),_0x1899f8[_0x566dd4(0x471)](_0x2f96a8,_0x3eb1e5,_0x50b336)),_0x2f96a8[_0x566dd4(0x346)]();let _0x3a400c=_0x1899f8[_0x566dd4(0x317)](),_0x11f592=_0x1899f8[_0x566dd4(0x24c)](_0x3eb1e5),_0x54b76e=_0x1899f8[_0x566dd4(0x34d)]();if(_0x3a400c&&_0x11f592&&!_0x54b76e){_0x2f96a8[_0x566dd4(0x496)](),this[_0x566dd4(0x1ed)]()['flipX']&&_0x2f96a8['scale'](-0x1,0x1);let _0x4a7c99=_0x117698/0x2,_0x575714=_0x2aba09/0x2;_0x2f96a8[_0x566dd4(0x44d)](-_0x4a7c99,-_0x575714),_0x2f96a8['beginPath'](),this[_0x566dd4(0x289)](_0x2f96a8,_0x3a400c,_0x11f592),_0x2f96a8[_0x566dd4(0x346)]();}}['getDrawingPoints'](_0x2c351c){}[_0x356faf(0x289)](_0x25d521,_0x4e2349,_0x2b7032){const _0x4f02d9=_0x356faf;var _0x3f26c8;this[_0x4f02d9(0x462)]=[],this['_props'][_0x4f02d9(0x213)]||(!((_0x3f26c8=_0x4e2349[_0x4f02d9(0x219)])!=null&&_0x3f26c8['doc'])&&'isRichText'in _0x4e2349&&_0x4e2349[_0x4f02d9(0x329)]===!0x1?this[_0x4f02d9(0x419)](_0x25d521,_0x4e2349,_0x2b7032):this[_0x4f02d9(0x42d)](_0x25d521,_0x4e2349,_0x2b7032));}[_0x356faf(0x419)](_0x351d8e,_0x51ef65,_0x291d58){const _0x371da8=_0x356faf;this[_0x371da8(0x42d)](_0x351d8e,{..._0x51ef65,'text':_0x51ef65[_0x371da8(0x24e)]??'','dataModel':{'doc':_0x3a8073(_0x51ef65,'sheets-shape-text-'+this[_0x371da8(0x221)])}},_0x291d58);}[_0x356faf(0x42d)](_0x2fd1b5,_0x766221,_0x276ea3){const _0x395ff8=_0x356faf;_0xdbee50(_0x2fd1b5,this[_0x395ff8(0x265)],(_0x3ca751,_0x196c9d,_0xba26aa)=>{const _0x22d6c0=_0x395ff8;this['_drawRichTextLayer'](_0x3ca751,_0x766221,_0x276ea3,_0x196c9d,_0xba26aa===_0x22d6c0(0x489));});}[_0x356faf(0x274)](_0x46eaab,_0x51669f,_0x5d4bcd,_0x7e640e,_0x4136c1){const _0x565ae6=_0x356faf;let _0x5a1a45=this[_0x565ae6(0x23c)][_0x565ae6(0x211)];if(!_0x51669f['dataModel']||!_0x5a1a45)return;let _0x3c0baa=_0x9c5ba3(_0x51669f[_0x565ae6(0x219)]);if(!_0x3c0baa)return;let _0x4c17be=_0x3c0baa[_0x565ae6(0x4bb)];if(!_0x4c17be)return;let _0xa78d68=_0xd8f830(_0x4c17be,_0x7e640e),_0x2d39a7=_0x3c0baa['va']??_0xb9de71['TOP'],_0x4e1760=_0x3c0baa['ha']??_0x481e9a['LEFT'],_0x2901dd=Yr(this[_0x565ae6(0x23c)]['shapeModel'][_0x565ae6(0x32a)](),_0x51669f,_0xa78d68),_0x8c1807=_0x51669f[_0x565ae6(0x4ba)],_0x190727=_0x678e30(_0xa78d68,{'isHorizontal':_0x8c1807!==!0x1,'textRect':_0x5d4bcd,'verticalAlign':_0x2d39a7,'horizontalAlign':_0x4e1760,'wrapStrategy':_0x2901dd[_0x565ae6(0x3ad)]}),_0x38c944=new _0xb52c88(_0x190727),_0x2755dd=new _0x31288b(_0x38c944),_0x173e4d=_0x31fdd4['create'](_0x2755dd,_0x5a1a45);_0x173e4d[_0x565ae6(0x29d)]();let _0x31b074=_0x173e4d[_0x565ae6(0x30c)]()[_0x565ae6(0x39e)],_0x23f1df=_0x436c81({'contentHeight':_0x31b074,'verticalAlign':_0x2d39a7,'viewportHeight':_0x5d4bcd[_0x565ae6(0x4c4)]});_0x38c944[_0x565ae6(0x2c0)]({'pageSize':{'width':_0x8c1807===!0x1?_0x5d4bcd[_0x565ae6(0x4c4)]:_0x5d4bcd['width'],'height':_0x4f4079(_0xa78d68,_0x23f1df[_0x565ae6(0x303)])}}),_0x38c944[_0x565ae6(0x225)]({'t':_0x23f1df[_0x565ae6(0x4b7)]}),_0x173e4d[_0x565ae6(0x29d)]();let _0x5da603=new _0x1bddc3(_0x565ae6(0x3c8)+this[_0x565ae6(0x221)],_0x173e4d,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x565ae6(0x248)](!0x0)});_0x5da603['resize'](_0x5d4bcd['width'],_0x23f1df[_0x565ae6(0x303)]),_0x46eaab[_0x565ae6(0x496)](),_0x46eaab[_0x565ae6(0x42a)](_0x5d4bcd[_0x565ae6(0x233)],_0x5d4bcd[_0x565ae6(0x48c)]),_0x2901dd[_0x565ae6(0x1ea)]&&(_0x46eaab[_0x565ae6(0x391)](),_0x46eaab[_0x565ae6(0x3da)](0x0,_0x23f1df['clipTop'],_0x5d4bcd[_0x565ae6(0x4b1)],_0x23f1df[_0x565ae6(0x38f)]),_0x46eaab['clip']()),_0x23f1df[_0x565ae6(0x1f6)]&&_0x46eaab[_0x565ae6(0x42a)](0x0,_0x23f1df['contentVerticalOffset']),_0x5da603[_0x565ae6(0x22d)](_0x46eaab),_0x4136c1&&(this[_0x565ae6(0x462)]=_0x2c4b46(_0x5da603,{'left':_0x5d4bcd[_0x565ae6(0x233)],'top':_0x5d4bcd[_0x565ae6(0x48c)]+_0x23f1df[_0x565ae6(0x1f6)]},_0x2901dd[_0x565ae6(0x1ea)]?{'left':_0x5d4bcd['left'],'right':_0x5d4bcd[_0x565ae6(0x233)]+_0x5d4bcd[_0x565ae6(0x4b1)],'top':_0x5d4bcd['top']+_0x23f1df['clipTop'],'bottom':_0x5d4bcd[_0x565ae6(0x48c)]+_0x23f1df[_0x565ae6(0x38a)]+_0x23f1df[_0x565ae6(0x38f)]}:void 0x0)),_0x46eaab[_0x565ae6(0x346)](),_0x5da603[_0x565ae6(0x40a)](),_0x173e4d['dispose'](),_0x2755dd[_0x565ae6(0x40a)](),_0x38c944[_0x565ae6(0x40a)]();}[_0x356faf(0x471)](_0xcf1ad,_0x427124,_0x1bd891=!0x1){const _0x23831c=_0x356faf;if(!this[_0x23831c(0x399)])return this[_0x23831c(0x248)](!0x1),this;let {width:_0x22f5e6,height:_0x4c7b82,left:_0x32c37d,top:_0xec2647}=this,_0x24de84=this['getRealBound']();if(_0x22f5e6=_0x24de84['width'],_0x4c7b82=_0x24de84[_0x23831c(0x4c4)],_0x32c37d=_0x24de84[_0x23831c(0x233)],_0xec2647=_0x24de84[_0x23831c(0x48c)],this['isRender'](_0x427124)){let {top:_0x59f22c,left:_0xd99b35,bottom:_0x41dd89,right:_0x1d6ef7}=_0x427124[_0x23831c(0x1e4)];if(_0x22f5e6+this[_0x23831c(0x2cf)]+_0x32c37d<_0xd99b35||_0x1d6ef7<_0x32c37d||_0x4c7b82+this[_0x23831c(0x2cf)]+_0xec2647<_0x59f22c||_0x41dd89<_0xec2647)return this;}let _0x2ff7c4=_0x32c37d+_0x22f5e6/0x2,_0x426eea=_0xec2647+_0x4c7b82/0x2,_0xbd20af=this['transform']['getMatrix']();if(this['_props'][_0x23831c(0x213)]){let _0x37126b=this['getState'](),_0x3fb51e=new _0x2fa44a();_0x3fb51e[_0x23831c(0x259)]({..._0x37126b}),_0xbd20af=_0x3fb51e[_0x23831c(0x365)]();}return _0xcf1ad[_0x23831c(0x496)](),this[_0x23831c(0x23c)][_0x23831c(0x42f)]['isRenderLinePointsMode']===!0x0||_0xcf1ad[_0x23831c(0x478)](_0xbd20af[0x0],_0xbd20af[0x1],_0xbd20af[0x2],_0xbd20af[0x3],_0x2ff7c4,_0x426eea),this['_draw'](_0xcf1ad,_0x427124,_0x22f5e6,_0x4c7b82),_0xcf1ad['restore'](),this[_0x23831c(0x248)](!0x1),this;}[_0x356faf(0x481)](_0x5d544b){const _0x46a998=_0x356faf;let {left:_0x13bef3,top:_0x2828ad,width:_0x5d5b4,height:_0x14e3bd}=this[_0x46a998(0x43e)](),_0x47d5ea=this[_0x46a998(0x478)][_0x46a998(0x365)](),_0x4ca2ad=_0x13bef3+_0x5d5b4/0x2,_0x203995=_0x2828ad+_0x14e3bd/0x2,_0xfe8cb7=new _0x2fa44a([_0x47d5ea[0x0],_0x47d5ea[0x1],_0x47d5ea[0x2],_0x47d5ea[0x3],_0x4ca2ad,_0x203995]),_0x2f3d3e=this['getParent']();return(this['isInGroup']&&(_0x2f3d3e==null?void 0x0:_0x2f3d3e[_0x46a998(0x3cd)])===_0x105e76['GROUP']?_0x2f3d3e[_0x46a998(0x3dc)][_0x46a998(0x282)](_0xfe8cb7):_0xfe8cb7)[_0x46a998(0x1fe)]()[_0x46a998(0x409)](_0x5d544b);}[_0x356faf(0x340)](_0x3cc7bb){const _0x47af7d=_0x356faf;let {left:_0x423b62,top:_0x38287a,width:_0x2adfd4,height:_0x365614}=this[_0x47af7d(0x43e)](),_0x3683ae=_0x423b62+_0x2adfd4/0x2,_0x2e0100=_0x38287a+_0x365614/0x2,_0xdb42cd=this[_0x47af7d(0x478)][_0x47af7d(0x365)](),_0x5b6cac=new _0x2fa44a([_0xdb42cd[0x0],_0xdb42cd[0x1],_0xdb42cd[0x2],_0xdb42cd[0x3],_0x3683ae,_0x2e0100]),_0x4083c3=this[_0x47af7d(0x255)](),_0x2337a6=(this[_0x47af7d(0x2e0)]&&(_0x4083c3==null?void 0x0:_0x4083c3[_0x47af7d(0x3cd)])===_0x105e76[_0x47af7d(0x313)]?_0x4083c3[_0x47af7d(0x3dc)][_0x47af7d(0x282)](_0x5b6cac):_0x5b6cac)['invert']()['applyPoint'](_0x3cc7bb),_0x2f0020=_0x2adfd4/0x2,_0x47c86f=_0x365614/0x2,_0x2322c9=this[_0x47af7d(0x23c)][_0x47af7d(0x42f)];return _0x2322c9&&_0x2322c9[_0x47af7d(0x34d)]()?_0x2322c9[_0x47af7d(0x2fb)](_0x2337a6['x'],_0x2337a6['y'],_0x2adfd4,_0x365614):_0x2337a6['x']>=-_0x2f0020-this['strokeWidth']/0x2&&_0x2337a6['x']<=_0x2f0020+this[_0x47af7d(0x2cf)]/0x2&&_0x2337a6['y']>=-_0x47c86f-this['strokeWidth']/0x2&&_0x2337a6['y']<=_0x47c86f+this['strokeWidth']/0x2;}[_0x356faf(0x40a)](){const _0x586811=_0x356faf;this[_0x586811(0x265)][_0x586811(0x40a)](),this['_props'][_0x586811(0x42f)]=null,super[_0x586811(0x40a)]();}},Xr=class extends _0x28b88a{constructor(_0x585d43,_0x5dce33){const _0x1ad8c9=_0x356faf;super(_0x585d43,_0x5dce33),q(this,_0x1ad8c9(0x369),null),q(this,_0x1ad8c9(0x281),null),q(this,_0x1ad8c9(0x46a),null),q(this,'_subUnitId',null),_0x5dce33&&this[_0x1ad8c9(0x3b3)](_0x5dce33);}[_0x356faf(0x443)](){const _0x51e3cf=_0x356faf;return{'unitId':this[_0x51e3cf(0x46a)],'subUnitId':this[_0x51e3cf(0x458)],'drawingId':this[_0x51e3cf(0x369)]};}[_0x356faf(0x3b3)](_0x8a9114){const _0x2e3cee=_0x356faf;_0x8a9114[_0x2e3cee(0x3fe)]!==void 0x0&&(this[_0x2e3cee(0x369)]=_0x8a9114[_0x2e3cee(0x3fe)]),_0x8a9114[_0x2e3cee(0x3b1)]!==void 0x0&&(this[_0x2e3cee(0x281)]=_0x8a9114[_0x2e3cee(0x3b1)]),_0x8a9114[_0x2e3cee(0x358)]!==void 0x0&&(this['_unitId']=_0x8a9114['unitId']),_0x8a9114[_0x2e3cee(0x220)]!==void 0x0&&(this[_0x2e3cee(0x458)]=_0x8a9114[_0x2e3cee(0x220)]),this[_0x2e3cee(0x3e5)]({'width':_0x8a9114[_0x2e3cee(0x4b1)],'height':_0x8a9114[_0x2e3cee(0x4c4)]});}[_0x356faf(0x3a7)](_0x1e63c8){const _0x1e48f4=_0x356faf;_0x444dbb[_0x1e48f4(0x492)](_0x1e63c8,{'radius':_0x3c938b['adjHandleSize'],'fill':_0x3c938b[_0x1e48f4(0x396)],'stroke':_0x3c938b[_0x1e48f4(0x4c6)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x3f6770,_0x2cd4cb){return function(_0x4f92ef,_0x36dc87){_0x2cd4cb(_0x4f92ef,_0x36dc87,_0x3f6770);};}function X(_0x525e79,_0x5bca9f,_0x7dc8d9,_0x26c2fd){const _0x201050=_0x356faf;var _0x2a82a=arguments[_0x201050(0x468)],_0x19e84d=_0x2a82a<0x3?_0x5bca9f:_0x26c2fd===null?_0x26c2fd=Object[_0x201050(0x40d)](_0x5bca9f,_0x7dc8d9):_0x26c2fd,_0x179ef6;if(typeof Reflect=='object'&&typeof Reflect[_0x201050(0x47c)]=='function')_0x19e84d=Reflect['decorate'](_0x525e79,_0x5bca9f,_0x7dc8d9,_0x26c2fd);else{for(var _0x112f64=_0x525e79[_0x201050(0x468)]-0x1;_0x112f64>=0x0;_0x112f64--)(_0x179ef6=_0x525e79[_0x112f64])&&(_0x19e84d=(_0x2a82a<0x3?_0x179ef6(_0x19e84d):_0x2a82a>0x3?_0x179ef6(_0x5bca9f,_0x7dc8d9,_0x19e84d):_0x179ef6(_0x5bca9f,_0x7dc8d9))||_0x19e84d);}return _0x2a82a>0x3&&_0x19e84d&&Object[_0x201050(0x2a8)](_0x5bca9f,_0x7dc8d9,_0x19e84d),_0x19e84d;}let Z=class extends _0x1717dd{constructor(_0x6ecaf5,_0x580ef5,_0x3abb39,_0x8baaae,_0x801e57,_0x28f7d3){const _0x3f7577=_0x356faf;super(),this[_0x3f7577(0x444)]=_0x6ecaf5,this[_0x3f7577(0x494)]=_0x580ef5,this[_0x3f7577(0x376)]=_0x3abb39,this[_0x3f7577(0x38c)]=_0x8baaae,this[_0x3f7577(0x2b6)]=_0x801e57,this[_0x3f7577(0x222)]=_0x28f7d3,q(this,_0x3f7577(0x2e3),new Map()),this['disposeWithMe'](this[_0x3f7577(0x222)][_0x3f7577(0x324)][_0x3f7577(0x2bd)](_0x39c2ad=>{const _0x1fe680=_0x3f7577;var _0x310efb;(_0x310efb=this[_0x1fe680(0x2e3)]['get'](this[_0x1fe680(0x3c2)](_0x39c2ad['unitId'],_0x39c2ad[_0x1fe680(0x220)],_0x39c2ad['shapeId'])))==null||_0x310efb[_0x1fe680(0x35e)](_0xcb1c9b=>_0xcb1c9b[_0x1fe680(0x36e)](_0x39c2ad[_0x1fe680(0x3ff)],_0x39c2ad[_0x1fe680(0x205)]));})),this[_0x3f7577(0x45d)](this[_0x3f7577(0x444)]['remove$'][_0x3f7577(0x2bd)](_0x243143=>{_0x243143['forEach'](_0x3fd2fc=>{const _0x223f8f=_0x4380;this[_0x223f8f(0x2e3)][_0x223f8f(0x2b2)](this[_0x223f8f(0x3c2)](_0x3fd2fc[_0x223f8f(0x358)],_0x3fd2fc[_0x223f8f(0x220)],_0x3fd2fc[_0x223f8f(0x3cb)]));});}));}[_0x356faf(0x28e)](_0x1d8e12,_0x1d2713,_0x1791f2){const _0x3f4a45=_0x356faf;let {transform:_0xb54024,drawingType:_0x1fb616,isMultiTransform:_0x34d7f1,transforms:_0x19b8e8}=_0x1d8e12;if(_0x1fb616===_0x3bf95f[_0x3f4a45(0x24a)]&&this[_0x3f4a45(0x444)][_0x3f4a45(0x22c)]()&&_0xb54024)return(_0x34d7f1&&_0x19b8e8?_0x19b8e8:[_0xb54024])['flatMap']((_0x57da67,_0x2ecae9)=>{const _0xc1ad6c=_0x3f4a45;var _0x451b27;let _0x179da7=_0x4e19f9(_0x1d8e12,_0x34d7f1?_0x2ecae9:void 0x0),_0x149441=_0x1d2713[_0xc1ad6c(0x348)](_0x179da7);if(_0x149441)return _0x149441 instanceof J&&this[_0xc1ad6c(0x326)](_0x149441,{'unitId':_0x1d8e12[_0xc1ad6c(0x358)],'subUnitId':_0x1d8e12[_0xc1ad6c(0x220)],'shapeId':_0x1d8e12[_0xc1ad6c(0x3cb)]}),_0x149441[_0xc1ad6c(0x3e5)](_0x57da67),[];let _0x19e676=this['_createShape'](_0x1d8e12,_0x57da67,_0x179da7,_0x1d2713);if(!_0x19e676)return[];let _0x5d8287=this[_0xc1ad6c(0x4af)](_0x19e676,_0x19e676[_0xc1ad6c(0x42f)][_0xc1ad6c(0x32a)]());return _0x5d8287&&(_0x1791f2==null||(_0x451b27=_0x1791f2[_0xc1ad6c(0x290)])==null||_0x451b27[_0xc1ad6c(0x460)](_0x5d8287)),[_0x19e676];});}[_0x356faf(0x457)](_0x3d0a9a,_0x23cbca,_0xed858e,_0x126a4b){const _0x27a3ec=_0x356faf;let {unitId:_0x111459,subUnitId:_0x78ca0c,drawingId:_0xb4593d,groupId:_0x347b31,hidden:_0x1b5e84,selectable:_0x13c789,prstGeom:_0x5808ac,srcRect:_0x48c34b}=_0x3d0a9a,_0x2f6f5b=this['_sheetsShapeService'][_0x27a3ec(0x314)](_0x111459,_0x78ca0c,_0xb4593d);if(!_0x2f6f5b)return;let _0x581c32=this[_0x27a3ec(0x444)][_0x27a3ec(0x2ca)](_0x111459,_0x78ca0c),_0x2f7050=_0x581c32['indexOf'](_0xb4593d),_0x434e81=_0x1a599b(_0x2f6f5b[_0x27a3ec(0x3cc)]()),_0x18feaa=_0x2f6f5b[_0x27a3ec(0x32a)]()[_0x27a3ec(0x356)],_0x4eecec={'unitId':_0x111459,'subUnitId':_0x78ca0c,'shapeId':_0xb4593d};_0x18feaa&&this[_0x27a3ec(0x222)][_0x27a3ec(0x451)](_0x4eecec,_0x18feaa);let _0xdcaf82=new J(_0xed858e,{..._0x23cbca,'zIndex':_0x2f7050===-0x1?_0x581c32['length']-0x1:_0x2f7050,'shapeModel':_0x2f6f5b,'drawingType':_0x3bf95f[_0x27a3ec(0x24a)],'localeService':this[_0x27a3ec(0x376)],'shapeId':_0xb4593d,'unitId':_0x111459,'subUnitId':_0x78ca0c,'visible':_0x1b5e84!==!0x0,'evented':_0x13c789!==!0x1,'formulaPresentation':_0x18feaa?this[_0x27a3ec(0x222)][_0x27a3ec(0x312)](_0x4eecec):void 0x0,'animateFormulaPresentation':(_0x18feaa==null?void 0x0:_0x18feaa['animationEnabled'])!==!0x1,'transformerConfig':{..._0x498b2d,..._0x434e81?{'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{},'moveBoundaryEnabled':!0x0}});if(_0x18feaa){let _0x5cd4df=this['_formulaKey'](_0x111459,_0x78ca0c,_0xb4593d),_0x45d96a=this[_0x27a3ec(0x2e3)][_0x27a3ec(0x230)](_0x5cd4df)??new Set();_0x45d96a[_0x27a3ec(0x460)](_0xdcaf82),this[_0x27a3ec(0x2e3)][_0x27a3ec(0x482)](_0x5cd4df,_0x45d96a);}return _0x126a4b[_0x27a3ec(0x46f)](_0xdcaf82,_0x604e6e),this[_0x27a3ec(0x444)][_0x27a3ec(0x35b)]()&&_0x126a4b[_0x27a3ec(0x3fc)](_0xdcaf82),_0x347b31&&_0x1e03f5({'drawingId':_0x347b31,'unitId':_0x111459,'subUnitId':_0x78ca0c},_0xdcaf82,_0x126a4b,this['_drawingManagerService']),_0x5808ac!=null&&_0xdcaf82[_0x27a3ec(0x455)](_0x5808ac),_0x48c34b!=null&&_0xdcaf82[_0x27a3ec(0x426)](_0x48c34b),_0xdcaf82;}[_0x356faf(0x3c2)](_0x25c3aa,_0xb9e91d,_0x2870b8){return _0x25c3aa+'\x00'+_0xb9e91d+'\x00'+_0x2870b8;}[_0x356faf(0x326)](_0x227c96,_0x547636){const _0x31fbb5=_0x356faf;let _0x2435a3=this[_0x31fbb5(0x494)][_0x31fbb5(0x314)](_0x547636['unitId'],_0x547636[_0x31fbb5(0x220)],_0x547636[_0x31fbb5(0x3fe)]),_0xd098df=_0x2435a3==null?void 0x0:_0x2435a3[_0x31fbb5(0x32a)]()[_0x31fbb5(0x356)],_0x47fd01=this['_formulaKey'](_0x547636[_0x31fbb5(0x358)],_0x547636[_0x31fbb5(0x220)],_0x547636[_0x31fbb5(0x3fe)]);if(_0xd098df){this[_0x31fbb5(0x222)][_0x31fbb5(0x451)](_0x547636,_0xd098df);let _0x21ad57=this['_formulaShapes']['get'](_0x47fd01)??new Set();_0x21ad57[_0x31fbb5(0x460)](_0x227c96),this[_0x31fbb5(0x2e3)][_0x31fbb5(0x482)](_0x47fd01,_0x21ad57);}else{var _0x315ff1;this[_0x31fbb5(0x222)][_0x31fbb5(0x4b3)](_0x547636),(_0x315ff1=this[_0x31fbb5(0x2e3)]['get'](_0x47fd01))==null||_0x315ff1[_0x31fbb5(0x2b2)](_0x227c96);}_0x227c96[_0x31fbb5(0x36e)](_0xd098df?this[_0x31fbb5(0x222)]['getPresentation'](_0x547636):void 0x0,(_0xd098df==null?void 0x0:_0xd098df[_0x31fbb5(0x205)])!==!0x1);}[_0x356faf(0x2fa)](_0x5cc62a){const _0x25fd2d=_0x356faf;let _0x63b35e=_0x5cc62a['shapeModel'][_0x25fd2d(0x32a)](),_0x26514b=_0x63b35e[_0x25fd2d(0x2f7)];!_0x26514b||_0x26514b[_0x25fd2d(0x379)]!==_0x4fe8b0[_0x25fd2d(0x387)]||!_0x26514b['fillImageSource']?_0x5cc62a['setFillImage'](void 0x0):this[_0x25fd2d(0x4af)](_0x5cc62a,_0x63b35e);}[_0x356faf(0x4af)](_0x366974,_0xfd49ac){const _0x4ef0b8=_0x356faf;let _0x37cf87=_0xfd49ac[_0x4ef0b8(0x2f7)];if(!_0x37cf87||_0x37cf87[_0x4ef0b8(0x379)]!==_0x4fe8b0['PictureFill']||!_0x37cf87[_0x4ef0b8(0x4b8)])return;let _0x568bb5=_0x37cf87[_0x4ef0b8(0x4b8)],_0x1a3ca7=_0x37cf87['fillImageSourceType']??_0x17a185[_0x4ef0b8(0x368)],_0x251287=this[_0x4ef0b8(0x38c)][_0x4ef0b8(0x3db)](_0x568bb5,_0x1a3ca7);if(_0x251287)_0x366974[_0x4ef0b8(0x36c)](_0x251287);else return this[_0x4ef0b8(0x4a0)](_0x366974,_0x568bb5,_0x1a3ca7);}async['_loadAndSetImage'](_0x181e67,_0x295a5a,_0x448665){const _0x91c925=_0x356faf;let _0x218f26;try{if(_0x448665===_0x17a185[_0x91c925(0x48e)])_0x218f26=await this[_0x91c925(0x38c)][_0x91c925(0x30e)](_0x295a5a);else{if(_0x448665===_0x17a185[_0x91c925(0x368)])try{_0x218f26=await this[_0x91c925(0x2b6)][_0x91c925(0x30e)](_0x295a5a);}catch{_0x218f26=_0x295a5a;}else _0x218f26=_0x295a5a;}}catch(_0x5dde8c){console['error'](_0x91c925(0x390),_0x5dde8c);return;}await new Promise(_0x161278=>{const _0x13fff4=_0x91c925;let _0x4eb5cc=new window[(_0x13fff4(0x1f7))]();_0x4eb5cc[_0x13fff4(0x1ff)]=()=>{const _0x285a42=_0x13fff4;this[_0x285a42(0x38c)][_0x285a42(0x3e2)](_0x295a5a,_0x448665,_0x4eb5cc),_0x181e67['setFillImage'](_0x4eb5cc),_0x161278();},_0x4eb5cc[_0x13fff4(0x278)]=()=>{const _0x9018ab=_0x13fff4;console[_0x9018ab(0x33a)](_0x9018ab(0x30b),_0x295a5a),_0x161278();},_0x4eb5cc[_0x13fff4(0x46b)]=_0x218f26;});}};Z=X([Y(0x0,_0x5f48da),Y(0x1,_0x2132cf(_0x19e574)),Y(0x2,_0x2132cf(_0x4a6f46)),Y(0x3,_0x17c7e8),Y(0x4,_0x3c040d),Y(0x5,_0x2132cf(_0x571a3e))],Z);let Zr=class extends _0x1717dd{constructor(_0x1e7f34,_0xf8a1e4,_0x16eec1,_0x40cb55,_0x23feca,_0x2b5469){const _0x4d3d87=_0x356faf;super(),this['_drawingManagerService']=_0x1e7f34,this[_0x4d3d87(0x494)]=_0xf8a1e4,this[_0x4d3d87(0x251)]=_0x16eec1,this[_0x4d3d87(0x404)]=_0x40cb55,this[_0x4d3d87(0x4cc)]=_0x23feca,this[_0x4d3d87(0x44f)]=_0x2b5469,q(this,_0x4d3d87(0x43c),null),q(this,_0x4d3d87(0x46a),null),q(this,_0x4d3d87(0x458),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x4d3d87(0x37d),0x0),q(this,'_baseShapeTop',0x0),q(this,_0x4d3d87(0x361),0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x4d3d87(0x20c),!0x1),q(this,_0x4d3d87(0x3d2),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x4d3d87(0x28c),void 0x0),q(this,_0x4d3d87(0x21b),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x4d3d87(0x423)]();}[_0x356faf(0x380)](_0x53f389,_0x18b46f,_0x108b4d){const _0x2b9a09=_0x356faf;let _0x1ddf59=this['_sheetsShapeService']['getShapeModel'](_0x53f389,_0x18b46f,_0x108b4d);if(_0x1ddf59)return _0x1ddf59[_0x2b9a09(0x34c)]();}[_0x356faf(0x2ee)](){const _0x422474=_0x356faf;this[_0x422474(0x27a)]();}[_0x356faf(0x276)](){const _0x20b57a=_0x356faf;this[_0x20b57a(0x2ba)](!0x0);}[_0x356faf(0x344)](_0x353b41){const _0x4f0ebf=_0x356faf;this[_0x4f0ebf(0x21b)]=_0x353b41;}['_getShapeAdjustInfosById'](_0x512b94,_0x243e7d,_0x13c0d6,_0xfc97f3){const _0x2b4b24=_0x356faf;let _0x33bb78=this[_0x2b4b24(0x494)][_0x2b4b24(0x314)](_0x512b94,_0x243e7d,_0x13c0d6);if(_0x33bb78)return _0x33bb78[_0x2b4b24(0x4a6)](_0xfc97f3);}[_0x356faf(0x2b8)](_0x47fa81=!0x1){const _0x1f9a5e=_0x356faf;if(this['_unitId']===null||this[_0x1f9a5e(0x458)]===null||this[_0x1f9a5e(0x43c)]===null)return;let _0x2b8e4c=this['_renderManagerService'][_0x1f9a5e(0x3ee)](this[_0x1f9a5e(0x46a)]);if(!_0x2b8e4c||!_0x2b8e4c[_0x1f9a5e(0x335)](_0x1f2fa0)['getCurrentSkeleton']())return;let {scene:_0x1efa12}=_0x2b8e4c,_0x3e3c75={'unitId':this[_0x1f9a5e(0x46a)],'subUnitId':this[_0x1f9a5e(0x458)],'drawingId':this[_0x1f9a5e(0x43c)]},_0x59f13b=this[_0x1f9a5e(0x444)][_0x1f9a5e(0x3fb)](_0x3e3c75),{transform:_0x3456fe}=_0x59f13b;if(!_0x3456fe||_0x59f13b[_0x1f9a5e(0x30d)]!==_0x3bf95f[_0x1f9a5e(0x24a)])return;let {left:_0x18b58f,top:_0x1b58bf,width:_0x585ce6,height:_0x9a04f8,flipX:_0x45b8c5,flipY:_0x38b9c0,angle:_0x3eb296=0x0}=_0x3456fe;if(_0x18b58f===void 0x0||_0x1b58bf===void 0x0)return;if(_0x47fa81){let _0x16c6bf=this[_0x1f9a5e(0x494)][_0x1f9a5e(0x314)](this[_0x1f9a5e(0x46a)],this[_0x1f9a5e(0x458)],this['_activeShapeId']);_0x16c6bf==null||_0x16c6bf[_0x1f9a5e(0x240)]({'width':_0x585ce6??0x0,'height':_0x9a04f8??0x0}),this['_activeShapeAdjustPointList']=_0x16c6bf==null?void 0x0:_0x16c6bf[_0x1f9a5e(0x34c)]();}let _0x3abb34=this[_0x1f9a5e(0x410)];for(let _0x4952e9=0x0;_0x4952e9<_0x3abb34['length'];_0x4952e9++){let _0x45ee7b=_0x3abb34[_0x4952e9],_0x1a8084=_0x45ee7b['x'],_0x2398c2=_0x45ee7b['y'];if(_0x45b8c5&&(_0x1a8084=(_0x585ce6||0x0)-_0x1a8084),_0x38b9c0&&(_0x2398c2=(_0x9a04f8||0x0)-_0x2398c2),_0x3eb296!==0x0){let _0x1eedc5=(_0x585ce6||0x0)/0x2,_0xec85fe=(_0x9a04f8||0x0)/0x2,_0x1953a5=_0x3eb296*Math['PI']/0xb4,_0x1a6947=Math[_0x1f9a5e(0x384)](_0x1953a5),_0x152519=Math[_0x1f9a5e(0x203)](_0x1953a5),_0x1bba13=_0x1a8084-_0x1eedc5,_0x25b08f=_0x2398c2-_0xec85fe;_0x1a8084=_0x1eedc5+(_0x1bba13*_0x1a6947-_0x25b08f*_0x152519),_0x2398c2=_0xec85fe+(_0x1bba13*_0x152519+_0x25b08f*_0x1a6947);}let _0x3c1a20={'x':_0x1a8084,'y':_0x2398c2,'adjName':_0x45ee7b[_0x1f9a5e(0x3b1)]};this[_0x1f9a5e(0x293)](_0x1efa12,_0x3c1a20,_0x3c1a20[_0x1f9a5e(0x3b1)],_0x18b58f,_0x1b58bf,this['_unitId'],this[_0x1f9a5e(0x458)]);}}[_0x356faf(0x2ba)](_0x64513e=!0x1){const _0x44baae=_0x356faf;_0x64513e&&(this[_0x44baae(0x27a)](),this[_0x44baae(0x2b8)](_0x64513e));}[_0x356faf(0x293)](_0x286714,_0x5b8498,_0x3e6d32,_0x4784d1,_0x2fa988,_0x5a7788,_0x32ee16){const _0x460fc8=_0x356faf;if(!this[_0x460fc8(0x43c)])return;let _0x1b265e=_0x286714[_0x460fc8(0x348)]('shape-adjust-point-'+this[_0x460fc8(0x43c)]+'-'+_0x3e6d32);if(_0x1b265e){_0x1b265e['transformByState']({'left':_0x5b8498['x']+_0x4784d1-_0x3c938b[_0x460fc8(0x43a)],'top':_0x5b8498['y']+_0x2fa988-_0x3c938b[_0x460fc8(0x43a)]});return;}let _0x1e713c={'left':_0x5b8498['x']+_0x4784d1-_0x3c938b[_0x460fc8(0x43a)],'top':_0x5b8498['y']+_0x2fa988-_0x3c938b[_0x460fc8(0x43a)],'adjName':_0x3e6d32,'shapeId':this[_0x460fc8(0x43c)],'unitId':_0x5a7788,'subUnitId':_0x32ee16,'width':_0x3c938b[_0x460fc8(0x43a)]+0x8,'height':_0x3c938b[_0x460fc8(0x43a)]+0x8,'zIndex':_0x604e6e+0x1,'evented':!0x0},_0x273d27=new Xr(_0x460fc8(0x2d7)+this[_0x460fc8(0x43c)]+'-'+_0x3e6d32,_0x1e713c);this[_0x460fc8(0x3f0)][_0x460fc8(0x1e9)](_0x273d27),this[_0x460fc8(0x385)](_0x273d27,_0x286714,_0x3e6d32),_0x286714['addObject'](_0x273d27,_0x604e6e+0x1);}['_clearShapeAdjustControls'](){const _0x2c033e=_0x356faf;this[_0x2c033e(0x3f0)]['length']!==0x0&&(this[_0x2c033e(0x3f0)][_0x2c033e(0x35e)](_0x5e45f4=>{const _0x58c4dd=_0x2c033e;_0x5e45f4[_0x58c4dd(0x40a)]();}),this[_0x2c033e(0x3f0)]=[]);}[_0x356faf(0x38b)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x1e60d5,_0x15d3e1){const _0xa549b8=_0x356faf;var _0x13964a;let _0x19659d={'x':0x0,'y':0x0};if(!_0x1e60d5||!_0x15d3e1)return _0x19659d;let _0x2ad95d=this['_renderManagerService'][_0xa549b8(0x3ee)](_0x1e60d5);if(!_0x2ad95d||!_0x2ad95d['with'](_0x1f2fa0)['getSkeleton'](_0x15d3e1))return _0x19659d;let _0xdc699a=_0x2ad95d[_0xa549b8(0x335)](_0x5f11b1),_0x5bc7df=_0xdc699a==null?void 0x0:_0xdc699a[_0xa549b8(0x2c1)]();if(!_0x5bc7df)return _0x19659d;let _0x28d8ee=(_0x13964a=this[_0xa549b8(0x4cc)][_0xa549b8(0x413)](_0x1e60d5))==null?void 0x0:_0x13964a['getSheetBySheetId'](_0x15d3e1);if(!_0x28d8ee)return _0x19659d;let _0x24c8c7=_0x13cb47(_0x5bc7df['sheetViewStartRow'],_0x5bc7df[_0xa549b8(0x2e1)],_0x2ad95d[_0xa549b8(0x364)],_0x28d8ee);return _0x24c8c7?{'x':_0x24c8c7[_0xa549b8(0x406)],'y':_0x24c8c7['viewportScrollY']}:_0x19659d;}[_0x356faf(0x2be)](_0x3a0ecc,_0x3fd655){const _0x333296=_0x356faf;var _0x25d59f;let _0xe45ee4=(_0x25d59f=this[_0x333296(0x4cc)][_0x333296(0x413)](_0x3a0ecc))==null?void 0x0:_0x25d59f[_0x333296(0x286)](_0x3fd655);return(_0xe45ee4==null?void 0x0:_0xe45ee4[_0x333296(0x4c5)]())??0x1;}[_0x356faf(0x385)](_0x288b80,_0x108775,_0x20f5c5){const _0x5c1a3f=_0x356faf;this[_0x5c1a3f(0x45d)](_0x5381db(_0x288b80[_0x5c1a3f(0x448)]['subscribeEvent']((_0x450619,_0x35d914)=>{const _0xac038d=_0x5c1a3f;var _0x53cfaa,_0x573123,_0x19fecc,_0x3597a1;let _0x8b52cf=_0x288b80['getDrawingSearch']();this['_activeAdjustInfo']=this[_0xac038d(0x294)](_0x8b52cf['unitId'],_0x8b52cf[_0xac038d(0x220)],_0x8b52cf[_0xac038d(0x3cb)],_0x20f5c5),this[_0xac038d(0x2ea)]=this[_0xac038d(0x494)]['getShapeModel'](_0x8b52cf[_0xac038d(0x358)],_0x8b52cf[_0xac038d(0x220)],_0x8b52cf[_0xac038d(0x3cb)]);let _0x3353af=this[_0xac038d(0x444)][_0xac038d(0x3fb)]({'unitId':this[_0xac038d(0x46a)],'subUnitId':this['_subUnitId'],'drawingId':this[_0xac038d(0x43c)]}),{transform:_0x4784b2}=_0x3353af;if(_0x4784b2){let {left:_0x1e0744,top:_0x15e212,width:_0xdc4999,height:_0x1ab637}=_0x4784b2;this[_0xac038d(0x37d)]=_0x1e0744||0x0,this[_0xac038d(0x474)]=_0x15e212||0x0,this[_0xac038d(0x361)]=_0xdc4999||0x0,this[_0xac038d(0x373)]=_0x1ab637||0x0;}let _0x399053=!!((_0x53cfaa=_0x3353af[_0xac038d(0x478)])!=null&&_0x53cfaa[_0xac038d(0x43d)]),_0xfff6d6=!!((_0x573123=_0x3353af['transform'])!=null&&_0x573123[_0xac038d(0x33b)]),_0x1330a5=((_0x19fecc=_0x3353af[_0xac038d(0x478)])==null?void 0x0:_0x19fecc[_0xac038d(0x2b9)])||0x0;this[_0xac038d(0x20c)]=!0x0,_0x108775[_0xac038d(0x3cf)]();let _0x1231e5={...((_0x3597a1=this[_0xac038d(0x3d2)])==null?void 0x0:_0x3597a1[_0xac038d(0x29c)])??{}};this[_0xac038d(0x378)]=_0x108775[_0xac038d(0x25f)]['subscribeEvent']((_0x9a8dd4,_0x5a3b21)=>{const _0xd2dc16=_0xac038d;if(!this['_isStartAdjusting'])return;let {offsetX:_0x5f5827,offsetY:_0x1f7003}=_0x9a8dd4,_0x1fa9cb=this['_activeAdjustInfo'];if(this['_activeShapeModel']&&_0x1fa9cb){_0x108775[_0xd2dc16(0x3cf)](),_0x108775[_0xd2dc16(0x2d0)](_0xd5fe4f['CROSSHAIR']);let _0x5aec9f={'left':0x0,'top':0x0,'width':this[_0xd2dc16(0x361)],'height':this['_baseShapeHeight']},_0x29c406=this['_getScrollInfo'](this['_unitId'],this[_0xd2dc16(0x458)]),_0x3f2973=this['_getZoomRatio'](this['_unitId'],this[_0xd2dc16(0x458)]),_0x3da9ac=_0x5f5827/_0x3f2973+_0x29c406['x']-this[_0xd2dc16(0x37d)],_0x5de2a8=_0x1f7003/_0x3f2973+_0x29c406['y']-this[_0xd2dc16(0x474)];if(_0x1330a5!==0x0){let _0x4df17c=this[_0xd2dc16(0x361)]/0x2,_0x29bd5e=this['_baseShapeHeight']/0x2,_0x163340=_0x1330a5*Math['PI']/0xb4,_0x2ac14d=Math[_0xd2dc16(0x384)](_0x163340),_0x4f6c7e=Math[_0xd2dc16(0x203)](_0x163340),_0x58980b=_0x3da9ac-_0x4df17c,_0xca4a8a=_0x5de2a8-_0x29bd5e;_0x3da9ac=_0x4df17c+(_0x58980b*_0x2ac14d+_0xca4a8a*_0x4f6c7e),_0x5de2a8=_0x29bd5e+(-_0x58980b*_0x4f6c7e+_0xca4a8a*_0x2ac14d);}_0x399053&&(_0x3da9ac=this['_baseShapeWidth']-_0x3da9ac),_0xfff6d6&&(_0x5de2a8=this[_0xd2dc16(0x373)]-_0x5de2a8);let _0x4a1ae1={'x':_0x3da9ac,'y':_0x5de2a8},_0x15a313=this[_0xd2dc16(0x2ea)]['calcAdjValues'](_0x5aec9f,_0x4a1ae1,_0x1fa9cb,_0x399053,_0xfff6d6);if(Object[_0xd2dc16(0x34e)](_0x15a313)[_0xd2dc16(0x468)]===0x0)return;for(let [_0x58ecf6,_0xe7cd94]of Object[_0xd2dc16(0x28f)](_0x15a313))this[_0xd2dc16(0x2ea)][_0xd2dc16(0x29a)](_0x58ecf6,_0xe7cd94);this[_0xd2dc16(0x2ea)][_0xd2dc16(0x240)]({'width':this['_baseShapeWidth'],'height':this[_0xd2dc16(0x373)]});let _0x5b821b=this['_drawingManagerService'][_0xd2dc16(0x3fb)]({'unitId':_0x8b52cf[_0xd2dc16(0x358)],'subUnitId':_0x8b52cf[_0xd2dc16(0x220)],'drawingId':_0x8b52cf[_0xd2dc16(0x3cb)]});_0x5b821b&&(this[_0xd2dc16(0x404)][_0xd2dc16(0x28e)](_0x5b821b,_0x108775),this[_0xd2dc16(0x410)]=this['_getShapeAdjustPointListById'](_0x8b52cf[_0xd2dc16(0x358)],_0x8b52cf[_0xd2dc16(0x220)],_0x8b52cf[_0xd2dc16(0x3cb)]),this['_updateAdjustControlPositions']());}_0x5a3b21[_0xd2dc16(0x21d)]();}),this[_0xac038d(0x28c)]=_0x108775[_0xac038d(0x3f5)][_0xac038d(0x4a8)]((_0x3365b5,_0x3e0bf0)=>{const _0x1af0c1=_0xac038d;this[_0x1af0c1(0x378)][_0x1af0c1(0x405)](),this['_adjHandlerPointerUp'][_0x1af0c1(0x405)](),_0x108775[_0x1af0c1(0x3b5)]();let _0x419123=this[_0x1af0c1(0x3d2)];if(_0x419123){let _0x5b35a8=_0x8b52cf[_0x1af0c1(0x358)],_0x3cfb9a=_0x8b52cf[_0x1af0c1(0x220)],_0x1ccb4e=_0x8b52cf[_0x1af0c1(0x3cb)],_0x566062={};for(let _0x5d4018 of Object[_0x1af0c1(0x34e)](_0x419123[_0x1af0c1(0x29c)])){var _0x54e459;let _0x45658e=(_0x54e459=this[_0x1af0c1(0x2ea)])==null?void 0x0:_0x54e459[_0x1af0c1(0x3f9)](_0x5d4018);_0x45658e!==void 0x0&&(_0x566062[_0x5d4018]=_0x45658e);}Object['keys'](_0x566062)[_0x1af0c1(0x468)]>0x0&&Wr(this[_0x1af0c1(0x44f)],_0x5b35a8,_0x3cfb9a,_0x1ccb4e,{'oldShapeData':{'adjustValues':_0x1231e5}},{'adjustValues':_0x566062});}this[_0x1af0c1(0x3d2)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x1af0c1(0x20c)]=!0x1,_0x3e0bf0[_0x1af0c1(0x21d)](),_0x108775['enableObjectsEvent']();}),_0x35d914['stopPropagation']();})));}[_0x356faf(0x423)](){const _0x53465f=_0x356faf;let _0x461f14=this[_0x53465f(0x4cc)][_0x53465f(0x1ee)](_0xdbfe17[_0x53465f(0x21c)]);this[_0x53465f(0x45d)](_0x461f14[_0x53465f(0x2f2)](_0x48cdae(_0x29f31d=>_0x29f31d?_0x29f31d[_0x53465f(0x470)][_0x53465f(0x2f2)](_0x48cdae(_0x4047a2=>{const _0xe242d=_0x53465f;if(!_0x4047a2)return _0x44e428;let _0x2634d4=_0x29f31d[_0xe242d(0x25a)](),_0x5721e0=this[_0xe242d(0x251)][_0xe242d(0x3ee)](_0x2634d4),_0x1a5f3a=_0x5721e0==null?void 0x0:_0x5721e0[_0xe242d(0x364)];return _0x1a5f3a?_0x5ca9c3(_0x1a5f3a):_0x44e428;})):_0x44e428))['subscribe'](_0x1a2141=>{const _0x84f1de=_0x53465f;let _0x20c250=_0x1a2141[_0x84f1de(0x2cc)]();this['disposeWithMe'](_0x1a2141[_0x84f1de(0x25f)][_0x84f1de(0x4a8)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this['disposeWithMe'](_0x20c250[_0x84f1de(0x25e)][_0x84f1de(0x2bd)](_0x3cf56e=>{const _0x1d13cb=_0x84f1de;let {objects:_0x2d8104}=_0x3cf56e;this[_0x1d13cb(0x2b8)](),_0x2d8104!==null&&_0x2d8104['size']===0x1&&_0x2d8104[_0x1d13cb(0x243)]()['next']()[_0x1d13cb(0x45e)]instanceof J&&this[_0x1d13cb(0x344)](!0x0);})),this[_0x84f1de(0x45d)](_0x20c250['changing$'][_0x84f1de(0x2bd)](()=>{const _0x6f31dd=_0x84f1de;this[_0x6f31dd(0x21b)]&&this[_0x6f31dd(0x27a)]();})),this[_0x84f1de(0x45d)](_0x1a2141['onPointerUp$'][_0x84f1de(0x4a8)](()=>{const _0x1994fb=_0x84f1de;this[_0x1994fb(0x21b)]&&(this['setShouldShowAdjust'](!0x1),this[_0x1994fb(0x2b8)]());})),this[_0x84f1de(0x45d)](_0x20c250[_0x84f1de(0x29e)][_0x84f1de(0x2bd)](()=>{const _0x3a1115=_0x84f1de;this['_unitId']&&this[_0x3a1115(0x458)]&&this['_activeShapeId']&&this[_0x3a1115(0x444)][_0x3a1115(0x3fb)]({'unitId':this[_0x3a1115(0x46a)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3a1115(0x43c)]})&&(this[_0x3a1115(0x410)]=this[_0x3a1115(0x380)](this[_0x3a1115(0x46a)],this[_0x3a1115(0x458)],this[_0x3a1115(0x43c)]),this[_0x3a1115(0x38b)]());}));}));}[_0x356faf(0x3af)](){const _0x109532=_0x356faf;this[_0x109532(0x45d)](this[_0x109532(0x44f)]['onCommandExecuted'](_0x19d024=>{const _0x42d3cb=_0x109532;if(_0x19d024['id']!==_0x49a64c['id'])return;let {unitId:_0x353672,subUnitId:_0x325ef8,shapeId:_0x4fd70a}=_0x19d024[_0x42d3cb(0x285)];_0x353672===this['_unitId']&&_0x325ef8===this[_0x42d3cb(0x458)]&&_0x4fd70a===this[_0x42d3cb(0x43c)]&&this[_0x42d3cb(0x276)]();})),this[_0x109532(0x45d)](this['_drawingManagerService'][_0x109532(0x354)]['subscribe'](_0x5d8652=>{const _0x42a75b=_0x109532;if(_0x5d8652['length']===0x1){let _0x1156f3=_0x5d8652[0x0];if(_0x1156f3[_0x42a75b(0x30d)]===_0x3bf95f[_0x42a75b(0x24a)]&&this['_univerInstanceService'][_0x42a75b(0x3d0)](_0x1156f3[_0x42a75b(0x358)])===_0xdbfe17[_0x42a75b(0x21c)]){this[_0x42a75b(0x43c)]=_0x1156f3['drawingId'];let {unitId:_0x1e3534,subUnitId:_0x4e3256}=_0x1156f3;this[_0x42a75b(0x410)]=this['_getShapeAdjustPointListById'](_0x1e3534,_0x4e3256,this[_0x42a75b(0x43c)]),this['_unitId']=_0x1e3534,this[_0x42a75b(0x458)]=_0x4e3256,this[_0x42a75b(0x27a)](),this[_0x42a75b(0x2b8)]();return;}}this[_0x42a75b(0x43c)]=null,this[_0x42a75b(0x410)]=void 0x0,this[_0x42a75b(0x46a)]=null,this[_0x42a75b(0x458)]=null,this[_0x42a75b(0x27a)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x109532(0x4ae)][_0x109532(0x2bd)](_0x13cc86=>{const _0x283768=_0x109532;if(_0x13cc86[_0x283768(0x468)]===0x1){var _0x4b4bbb;let _0x562b1b=_0x13cc86[0x0];((_0x4b4bbb=this['_drawingManagerService']['getDrawingByParam'](_0x562b1b))==null?void 0x0:_0x4b4bbb['drawingType'])===_0x3bf95f['DRAWING_SHAPE']&&this[_0x283768(0x2ba)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x109532(0x2bd)](_0x21e44f=>{const _0x1b58d1=_0x109532;for(let _0x52080a of _0x21e44f)this[_0x1b58d1(0x43c)]===_0x52080a[_0x1b58d1(0x3cb)]&&(this[_0x1b58d1(0x43c)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x1b58d1(0x27a)]());}));}};Zr=X([Y(0x0,_0x5f48da),Y(0x1,_0x2132cf(_0x19e574)),Y(0x2,_0x2132cf(_0xfb1542)),Y(0x3,_0x2132cf(Z)),Y(0x4,_0x6cef99),Y(0x5,_0x44c672)],Zr);const Qr={'id':_0x356faf(0x299),'type':_0x5663ea['OPERATION'],'handler':(_0x22db9a,_0x248caf)=>{const _0x83ae06=_0x356faf;let _0x216486=_0x22db9a[_0x83ae06(0x230)](_0x5f48da),_0x2b868f=_0x22db9a[_0x83ae06(0x230)](_0xfb1542),_0x2d7a90=_0x22db9a[_0x83ae06(0x230)](Zr);if(_0x248caf==null)return!0x0;if(_0x248caf['length']>0x0){var _0x3b90ef;let _0x48424f=(_0x3b90ef=_0x2b868f[_0x83ae06(0x3ee)](_0x248caf[0x0]['unitId']))==null?void 0x0:_0x3b90ef[_0x83ae06(0x364)];if(_0x48424f){let {unitId:_0x2c74eb,subUnitId:_0x318841,drawingId:_0x299bf9}=_0x248caf[0x0],_0x27ae81=_0x4e19f9({'unitId':_0x2c74eb,'subUnitId':_0x318841,'drawingId':_0x299bf9},void 0x0),_0x9d4c5a=_0x48424f[_0x83ae06(0x348)](_0x27ae81);if(_0x9d4c5a){var _0x10c85f;(_0x10c85f=_0x2b868f[_0x83ae06(0x3ee)](_0x248caf[0x0][_0x83ae06(0x358)]))==null||(_0x10c85f=_0x10c85f[_0x83ae06(0x364)][_0x83ae06(0x370)]())==null||_0x10c85f[_0x83ae06(0x345)](_0x9d4c5a);}}_0x216486[_0x83ae06(0x284)](_0x248caf),_0x2d7a90[_0x83ae06(0x344)](!0x1);}return!0x0;}},$r={'type':_0x5663ea['COMMAND'],'id':_0x356faf(0x415),'handler':async(_0x392185,_0xee57e6)=>{const _0x96293d=_0x356faf;var _0x2086ad,_0x2a4810;let _0x135a6a=_0x4d4744(_0x392185[_0x96293d(0x230)](_0x6cef99));if(!_0x135a6a)return!0x1;let {unitId:_0x2a1d78,subUnitId:_0x29d11c,worksheet:_0x112f1b}=_0x135a6a,_0x34eed8=_0x112f1b[_0x96293d(0x3f4)](),_0x25c362=_0x34eed8[_0x96293d(0x49d)]??_0x45630e[_0x96293d(0x2c4)];if(_0x25c362!==_0x45630e[_0x96293d(0x2c4)]&&_0x25c362!==_0x45630e['CHART'])return!0x1;let _0x18c160=_0x392185['get'](_0x481a1b);if(((_0x2086ad=_0x18c160['getPermissionPoint'](new _0x5f38a2(_0x2a1d78)['id']))==null?void 0x0:_0x2086ad['value'])!==!0x0||((_0x2a4810=_0x18c160['getPermissionPoint'](new _0x5a9082(_0x2a1d78,_0x29d11c)['id']))==null?void 0x0:_0x2a4810[_0x96293d(0x45e)])!==!0x0)return!0x1;let _0x27aaf8=_0x392185[_0x96293d(0x230)](_0x44c672),{value:_0x3eff55,enhanceParams:_0x1f8f46}=_0xee57e6,_0x30129d={'unitId':_0x2a1d78,'subUnitId':_0x29d11c,'shapeType':_0x3eff55,'shapeId':_0x1545ee()};if(_0x25c362===_0x45630e[_0x96293d(0x2f1)]){let _0x5f51ce=_0x392185[_0x96293d(0x230)](_0xfb1542)[_0x96293d(0x3ee)](_0x2a1d78),_0x4a9721=_0x5f51ce==null?void 0x0:_0x5f51ce['components']['get'](_0x2ae40f[_0x96293d(0x4ab)]);if(!_0x5f51ce||!_0x4a9721||![_0x4a9721['left'],_0x4a9721[_0x96293d(0x48c)],_0x4a9721[_0x96293d(0x4b1)],_0x4a9721[_0x96293d(0x4c4)]]['every'](Number[_0x96293d(0x209)])||_0x4a9721[_0x96293d(0x4b1)]<=0x0||_0x4a9721[_0x96293d(0x4c4)]<=0x0)return!0x1;let _0x1f85e8={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x56a299=_0x4a4ba5([{'unitId':_0x2a1d78,'subUnitId':_0x29d11c,'drawingId':_0x30129d[_0x96293d(0x3fe)],'drawingType':_0x3bf95f[_0x96293d(0x24a)],'transform':{'left':0x0,'top':0x0,'width':_0x4796d7,'height':_0x3a98cb},'sheetTransform':{'from':_0x1f85e8,'to':_0x1f85e8},'axisAlignSheetTransform':{'from':_0x1f85e8,'to':_0x1f85e8}}],{'left':_0x4a9721[_0x96293d(0x233)],'top':_0x4a9721['top'],'width':_0x4a9721[_0x96293d(0x4b1)],'height':_0x4a9721['height']},_0x34eed8[_0x96293d(0x464)]===_0x2539e5[_0x96293d(0x2f0)]);if(!(_0x56a299!=null&&_0x56a299['length']))return!0x1;let _0xd2ac02=_0x56a299[0x0][_0x96293d(0x478)];_0x30129d[_0x96293d(0x3f6)]={'x':_0xd2ac02['left'],'y':_0xd2ac02[_0x96293d(0x48c)]},_0x30129d[_0x96293d(0x4b1)]=_0xd2ac02['width'],_0x30129d['height']=_0xd2ac02['height'];}else{let _0x428300=_0x392185[_0x96293d(0x230)](_0x1290ea)[_0x96293d(0x3ed)]();if(!_0x428300)return!0x1;_0x30129d[_0x96293d(0x27f)]=_0x428300[_0x96293d(0x27f)];}if(_0x1f8f46){let {startArrow:_0xabe5a9,endArrow:_0x1e4f2c,horizontal:_0x5d3e03,vertical:_0x2cc32d}=_0x1f8f46,_0xec52e5=_0x1a599b(_0x3eff55),_0x1da920=_0x3eff55===_0x43a99f['Rect'];if(_0xec52e5&&(_0xabe5a9||_0x1e4f2c)&&(_0x30129d['shapeData']={'ln':{'startArrow':_0xabe5a9?{'type':_0x2c5a73[_0x96293d(0x2d1)],'size':_0x129acd[_0x96293d(0x26d)]}:void 0x0,'endArrow':_0x1e4f2c?{'type':_0x2c5a73[_0x96293d(0x2d1)],'size':_0x129acd[_0x96293d(0x266)]}:void 0x0}}),_0x1da920&&(_0x5d3e03||_0x2cc32d)){let _0x365a78=_0x392185['get'](_0x57d594);_0x30129d['shapeData']=_0x29343c({'fill':{'fillType':_0x4fe8b0['SolidFill'],'color':_0x365a78['getColorFromTheme'](_0x96293d(0x37e))},'isHorizontal':!!_0x5d3e03,'stroke':{'lineStrokeType':_0x1a0d93[_0x96293d(0x2a9)],'width':0x1,'color':_0x365a78[_0x96293d(0x499)](_0x96293d(0x226))}});}}let _0x545750=_0x27aaf8['syncExecuteCommand'](_0x4ffb4b['id'],_0x30129d);return _0x545750&&await _0x27aaf8[_0x96293d(0x3e3)](Qr['id'],[{'unitId':_0x2a1d78,'subUnitId':_0x29d11c,'drawingId':_0x30129d[_0x96293d(0x3fe)]}]),_0x545750;}},ei=_0x356faf(0x2fe),ti=_0x356faf(0x454),ni=_0x356faf(0x42b),ri=_0x356faf(0x422),ii=_0x27157e(_0x356faf(0x3b9)),ai=_0x356faf(0x283),oi={'id':_0x356faf(0x22e),'type':_0x5663ea['COMMAND'],'handler':(_0x55d1c5,_0x474dc6)=>{const _0x17840d=_0x356faf;let _0x3dcded=_0x55d1c5[_0x17840d(0x230)](_0x1bca5a),_0x1ca1de=_0x55d1c5[_0x17840d(0x230)](_0x4a6f46),_0x38fc36=_0x55d1c5[_0x17840d(0x230)](_0x6cef99),_0xae14a0=_0x55d1c5['get'](_0x44c672);return _0x4d4744(_0x38fc36)?(_0x474dc6==null?void 0x0:_0x474dc6[_0x17840d(0x45e)])===_0x17840d(0x2fc)?(_0x3dcded[_0x17840d(0x2fc)](ti),!0x0):(_0x3dcded['open']({'id':ti,'header':{'title':_0x1ca1de['t'](_0x17840d(0x476))},'children':{'label':ti},'onClose':()=>{const _0x479977=_0x17840d;_0xae14a0[_0x479977(0x44e)](_0x105e30['id'],[]);},'width':0x168}),!0x0):!0x1;}},si={'type':_0x5663ea[_0x356faf(0x3e4)],'id':_0x356faf(0x207),'handler'(){return!0x0;}};function ci(_0x142d44){const _0x18fdc6=_0x356faf;let _0x47a4e0=_0x142d44['get'](_0x5f48da)['getFocusDrawings'](),_0x32dba1=_0x47a4e0[_0x18fdc6(0x468)]===0x1?_0x47a4e0[0x0]:null;if(!_0x32dba1||_0x32dba1['drawingType']!==_0x3bf95f[_0x18fdc6(0x24a)])return null;let _0xd59e86=_0x142d44[_0x18fdc6(0x230)](_0x19e574),_0x18ad93=_0xd59e86['getShapeTypeById'](_0x32dba1[_0x18fdc6(0x358)],_0x32dba1[_0x18fdc6(0x220)],_0x32dba1[_0x18fdc6(0x3cb)]),_0x5bed47=_0xd59e86['getShapeDataById'](_0x32dba1[_0x18fdc6(0x358)],_0x32dba1[_0x18fdc6(0x220)],_0x32dba1[_0x18fdc6(0x3cb)]);return _0x18ad93===void 0x0||!_0x5bed47?null:{'drawing':_0x32dba1,'shapeData':_0x5bed47,'shapeType':_0x18ad93};}const li={'id':_0x356faf(0x3a8),'type':_0x5663ea[_0x356faf(0x3e4)],'handler':(_0x37028b,_0x29f5d4)=>{const _0x5b11d6=_0x356faf;let _0x9614c6=ci(_0x37028b),_0xb6104c=_0x157ea3((_0x29f5d4==null?void 0x0:_0x29f5d4[_0x5b11d6(0x279)])??(_0x29f5d4==null?void 0x0:_0x29f5d4[_0x5b11d6(0x45e)])??'');if(!_0x9614c6||!_0xb6104c||_0xb6104c[_0x5b11d6(0x49d)]!==_0x442b62(_0x9614c6[_0x5b11d6(0x2b5)]))return!0x1;let _0x3321be=_0x11f536(_0x9614c6[_0x5b11d6(0x2b5)],_0xb6104c);if(!_0x3321be)return!0x1;let {drawing:_0x1247f1}=_0x9614c6;return _0x37028b[_0x5b11d6(0x230)](_0x44c672)['executeCommand'](K['id'],{'unitId':_0x1247f1[_0x5b11d6(0x358)],'subUnitId':_0x1247f1[_0x5b11d6(0x220)],'shapeId':_0x1247f1['drawingId'],'shapeData':_0x3321be,'oldShapeJSON':{'oldShapeData':_0x9614c6['shapeData']}});}},ui={'id':'sheet.operation.update-shape-type','type':_0x5663ea['OPERATION'],'handler':(_0xe4f27,_0xd9e674)=>{const _0x2ab817=_0x356faf;let _0x2e60d5=ci(_0xe4f27),_0x247e32=(_0xd9e674==null?void 0x0:_0xd9e674[_0x2ab817(0x291)])??(_0xd9e674==null?void 0x0:_0xd9e674[_0x2ab817(0x45e)]);if(!_0x2e60d5||!_0x247e32||_0x1a599b(_0x2e60d5['shapeType'])||_0x1a599b(_0x247e32))return!0x1;let _0x27b4b9=_0x23c006(_0x2e60d5[_0x2ab817(0x2b5)],_0x247e32);if(!_0x27b4b9)return!0x1;let {drawing:_0x571a3a}=_0x2e60d5;return _0xe4f27[_0x2ab817(0x230)](_0x44c672)['executeCommand'](K['id'],{'unitId':_0x571a3a['unitId'],'subUnitId':_0x571a3a['subUnitId'],'shapeId':_0x571a3a[_0x2ab817(0x3cb)],'shapeType':_0x247e32,'shapeData':_0x27b4b9,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2e60d5['shapeType'],'oldShapeData':_0x2e60d5[_0x2ab817(0x2b5)]}});}};let Q=class extends _0x1717dd{constructor(_0x5434b4,_0x35acef){const _0x1ebb52=_0x356faf;super(),this[_0x1ebb52(0x427)]=_0x5434b4,this['_drawingManagerService']=_0x35acef,this[_0x1ebb52(0x3c6)](),this[_0x1ebb52(0x427)][_0x1ebb52(0x493)](!0x0),this[_0x1ebb52(0x45d)]({'dispose':()=>this['_clipService'][_0x1ebb52(0x493)](!0x1)});}[_0x356faf(0x3c6)](){const _0x286c3a=_0x356faf;let _0x4ec897=this['_clipService'],_0x4f891f=new Map(),_0x4ba877=_0x4ec897[_0x286c3a(0x38d)]((_0x6ce039,_0x262fd6,_0x1020e5,_0x58a8a7,_0x320178)=>{const _0x120dc3=_0x286c3a;let _0x8bfd93=_0x262fd6;if(_0x8bfd93===_0x43a99f[_0x120dc3(0x39c)]||_0x262fd6===_0x120dc3(0x2d5))return!0x1;try{let _0x4f00e9=_0x4f891f[_0x120dc3(0x230)](_0x262fd6);return _0x4f00e9||(_0x4f00e9=new _0x6abf05(_0x8bfd93,_0x120dc3(0x350)+_0x262fd6),_0x4f891f[_0x120dc3(0x482)](_0x262fd6,_0x4f00e9)),_0x4f00e9[_0x120dc3(0x383)](),_0x320178&&Object[_0x120dc3(0x34e)](_0x320178)[_0x120dc3(0x468)]>0x0&&_0x4f00e9[_0x120dc3(0x21e)]({'adjustValues':_0x320178},!0x0),_0x4f00e9[_0x120dc3(0x240)]({'width':_0x1020e5,'height':_0x58a8a7}),_0x4f00e9[_0x120dc3(0x497)](_0x6ce039,{'left':0x0,'top':0x0,'width':_0x1020e5,'height':_0x58a8a7});}catch{return!0x1;}});this[_0x286c3a(0x45d)](_0x4ba877),this[_0x286c3a(0x45d)]({'dispose':()=>_0x4f891f[_0x286c3a(0x234)]()});}['clipByShape'](_0xbdb166,_0x594418,_0x10ffe4,_0x1e8b6d,_0x163119){const _0x1b54f9=_0x356faf;let _0x312c0d=this['_drawingManagerService']['getDrawingData'](_0xbdb166,_0x594418);if(!_0x312c0d[_0x10ffe4])return;let _0x1df3b6={..._0x312c0d[_0x10ffe4],'prstGeom':_0x1e8b6d,'adjustValues':_0x163119};this[_0x1b54f9(0x444)][_0x1b54f9(0x3ce)]([_0x1df3b6]);}};Q=X([Y(0x0,_0x2132cf(_0x44c97e)),Y(0x1,_0x2132cf(_0x5f48da))],Q);const di='sheet.shape.picker.component',fi=_0x356faf(0x397);function pi({onShapeClick:_0x25a1c3,excludeGroups:_0x478d16}){const _0x287215=_0x356faf;return _0x38e4c6(_0x35925b,{'excludeGroups':_0x478d16,'onShapeClick':_0x25a1c3,'scrollContainer':_0x287215(0x318)});}function mi(){const _0x548475=_0x356faf;let _0x5015a2=_0xa92ee6(_0x5f48da),_0x4afd08=_0xa92ee6(Q);return _0x38e4c6(_0x5ae484,{'buttonLabel':_0x548475(0x33e),'excludeGroups':[_0x5b263a[_0x548475(0x332)]],'onShapeClick':_0x28adc9=>{const _0x5eb955=_0x548475;let _0x41bc33=_0x5015a2[_0x5eb955(0x48d)]()[_0x5eb955(0x4b6)](_0x68e3b7=>_0x68e3b7['drawingType']===_0x3bf95f[_0x5eb955(0x45a)]);if(!_0x41bc33)return;let {unitId:_0x35e82e,subUnitId:_0x3bb334,drawingId:_0x271165}=_0x41bc33;_0x4afd08[_0x5eb955(0x44c)](_0x35e82e,_0x3bb334,_0x271165,_0x28adc9['type']);}});}function hi(){const _0x3af747=_0x356faf;let _0x3cd65a=_0xa92ee6(_0x5f48da),_0x28c823=_0xa92ee6(Q);return _0x38e4c6(_0x5ae484,{'buttonLabel':_0x3af747(0x33e),'excludeGroups':[_0x5b263a[_0x3af747(0x332)]],'DropdownComponent':_0x496e96,'onShapeClick':_0x12a72e=>{const _0x5814cf=_0x3af747;let _0x20ff09=_0x3cd65a['getFocusDrawings']()[_0x5814cf(0x4b6)](_0xf2d4a6=>_0xf2d4a6['drawingType']===_0x3bf95f['DRAWING_IMAGE']);if(!_0x20ff09)return;let {unitId:_0x92ca28,subUnitId:_0x3e0ac8,drawingId:_0x4ff682}=_0x20ff09;_0x28c823[_0x5814cf(0x44c)](_0x92ca28,_0x3e0ac8,_0x4ff682,_0x12a72e[_0x5814cf(0x49d)]);}});}function gi(){const _0x3e7484=_0x356faf;let _0x164907=_0xa92ee6(_0x333fbe),_0x5aa50b=_0xa92ee6(_0x5f48da),_0x481936=_0xa92ee6(_0x6cef99),_0x1da168=_0x5aa50b[_0x3e7484(0x48d)]()[0x0],_0x5cd452=_0x1da168?_0x481936[_0x3e7484(0x3d0)](_0x1da168[_0x3e7484(0x358)]):void 0x0,_0xa8226=_0x5cd452===_0xdbfe17[_0x3e7484(0x452)]?'doc.image-clip.shape-picker.component':_0x5cd452===_0xdbfe17['UNIVER_SHEET']?fi:void 0x0,_0x32ba4b=_0xa8226?_0x164907[_0x3e7484(0x230)](_0xa8226):void 0x0;return _0x32ba4b?_0x38e4c6(_0x32ba4b,{}):null;}function _i(){let _0x24e671=_0xa92ee6(_0x44c672);return _0x38e4c6(pi,{'onShapeClick':_0x376658=>{const _0x4b02d4=_0x4380;_0x24e671['executeCommand']($r['id'],{'value':_0x376658[_0x4b02d4(0x49d)],'enhanceParams':{'endArrow':_0x376658[_0x4b02d4(0x43b)],'startArrow':_0x376658[_0x4b02d4(0x280)],'horizontal':_0x376658[_0x4b02d4(0x469)],'vertical':_0x376658['vertical']}});}});}function vi(){return _0x38e4c6(_i,{});}function yi(_0x19750b){const _0x555ab4=_0x356faf;return _0x9f8092(_0x19750b[_0x555ab4(0x230)](_0x6cef99),!0x0,({workbook:_0x35a59b,worksheet:_0x4c1600})=>{const _0x22df5f=_0x555ab4;let _0x450624=_0x4c1600[_0x22df5f(0x3f4)]()['type']??_0x45630e[_0x22df5f(0x2c4)];if(_0x450624===_0x45630e[_0x22df5f(0x2c4)])return _0x187ba9(_0x19750b);if(_0x450624!==_0x45630e[_0x22df5f(0x2f1)])return _0x5ca9c3(!0x0);let _0xe9da12=_0x19750b[_0x22df5f(0x230)](_0x481a1b),_0x192391=[new _0x5f38a2(_0x35a59b[_0x22df5f(0x25a)]())['id'],new _0x5a9082(_0x35a59b[_0x22df5f(0x25a)](),_0x4c1600[_0x22df5f(0x2a5)]())['id']];return _0xe9da12['permissionPointUpdate$']['pipe'](_0x3e71c4(null),_0x168ee1(()=>_0x192391[_0x22df5f(0x31b)](_0x3b4915=>{const _0x16cef0=_0x22df5f;var _0x2c73d9;return((_0x2c73d9=_0xe9da12['getPermissionPoint'](_0x3b4915))==null?void 0x0:_0x2c73d9[_0x16cef0(0x45e)])!==!0x0;})),_0x48d97e());});}function bi(_0x522a0d){const _0x581792=_0x356faf;let _0x5bc320=_0x522a0d[_0x581792(0x230)](_0x6cef99);return{'id':$r['id'],'type':_0x15beab[_0x581792(0x270)],'selections':[{'label':{'name':di,'hoverable':!0x1,'selectable':!0x1,'props':{'id':$r['id']}}}],'icon':_0x581792(0x200),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x9f8092(_0x5bc320,!0x1,()=>new _0x32ac08(_0x4813dd=>{const _0x21ebc5=_0x581792;_0x4813dd[_0x21ebc5(0x2a2)](!0x1);})),'hidden$':_0x19910f(_0x522a0d,_0xdbfe17['UNIVER_SHEET']),'disabled$':yi(_0x522a0d)};}function xi(_0x3afca0){const _0xc1fdad=_0x356faf;return _0x9f8092(_0x3afca0[_0xc1fdad(0x230)](_0x6cef99),!0x0,({workbook:_0x33e344,worksheet:_0x70e10})=>{const _0x386617=_0xc1fdad;let _0x44aa4d=_0x70e10[_0x386617(0x3f4)]()[_0x386617(0x49d)]??_0x45630e[_0x386617(0x2c4)];if(_0x44aa4d===_0x45630e['GRID'])return _0x187ba9(_0x3afca0);if(_0x44aa4d!==_0x45630e[_0x386617(0x2f1)])return _0x5ca9c3(!0x0);let _0x378d2f=_0x3afca0[_0x386617(0x230)](_0x481a1b),_0x587264=[new _0x5f38a2(_0x33e344['getUnitId']())['id'],new _0x5a9082(_0x33e344[_0x386617(0x25a)](),_0x70e10[_0x386617(0x2a5)]())['id']];return _0x378d2f[_0x386617(0x4bf)][_0x386617(0x2f2)](_0x3e71c4(null),_0x168ee1(()=>_0x587264[_0x386617(0x31b)](_0x1d3a6e=>{const _0x1c99e6=_0x386617;var _0x3fc81a;return((_0x3fc81a=_0x378d2f[_0x1c99e6(0x414)](_0x1d3a6e))==null?void 0x0:_0x3fc81a[_0x1c99e6(0x45e)])!==!0x0;})),_0x48d97e());});}function Si(_0x1c8b6f){const _0x4ddde7=_0x356faf;let _0x141de9=_0x1c8b6f[_0x4ddde7(0x230)](_0x1bca5a);return{'id':oi['id'],'type':_0x15beab[_0x4ddde7(0x48a)],'icon':'ObjectLayersIcon','title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x4ddde7(0x394),'activated$':_0x3262b0(()=>_0x141de9['sidebarOptions$']['pipe'](_0x3e71c4(_0x141de9[_0x4ddde7(0x325)]),_0x168ee1(_0x386dc5=>_0x386dc5[_0x4ddde7(0x399)]===!0x0&&_0x386dc5['id']===_0x4ddde7(0x454)),_0x48d97e())),'hidden$':_0x19910f(_0x1c8b6f,_0xdbfe17[_0x4ddde7(0x21c)]),'disabled$':xi(_0x1c8b6f)};}const Ci=_0x356faf(0x429),wi=_0x356faf(0x2af);function Ti(_0x31800d){const _0x533ba2=_0x356faf;let _0x53d2d5=_0x31800d['get'](_0x5f48da)[_0x533ba2(0x48d)]();return _0x53d2d5[_0x533ba2(0x468)]===0x1&&_0x53d2d5[0x0][_0x533ba2(0x30d)]===_0x3bf95f[_0x533ba2(0x24a)]?_0x53d2d5[0x0]:null;}function Ei(_0x11673a){const _0x48e8d7=_0x356faf;let _0x4c2325=_0x11673a['get'](_0x5f48da);return _0x4c2325[_0x48e8d7(0x354)]['pipe'](_0x3e71c4(_0x4c2325[_0x48e8d7(0x48d)]()),_0x168ee1(_0x3cf630=>_0x3cf630[_0x48e8d7(0x468)]!==0x1||_0x3cf630[0x0][_0x48e8d7(0x30d)]!==_0x3bf95f[_0x48e8d7(0x24a)]));}function Di(_0x31e8c5){const _0x2b1efc=_0x356faf;return{'id':Ci,'commandId':_0x20d0ce['id'],'type':_0x15beab[_0x2b1efc(0x48a)],'title':_0x2b1efc(0x337),'tooltip':_0x2b1efc(0x337),'icon':_0x2b1efc(0x3dd),'hidden$':Ei(_0x31e8c5),'params':()=>{const _0x303ea9=_0x2b1efc;let _0x1daacd=Ti(_0x31e8c5);return _0x1daacd?{'unitId':_0x1daacd[_0x303ea9(0x358)],'subUnitId':_0x1daacd[_0x303ea9(0x220)],'shapeId':_0x1daacd[_0x303ea9(0x3cb)],'flipH':!0x0}:void 0x0;}};}function Oi(_0xed3fc){const _0x4bcf19=_0x356faf;return{'id':wi,'commandId':_0x20d0ce['id'],'type':_0x15beab['BUTTON'],'title':_0x4bcf19(0x4b4),'tooltip':_0x4bcf19(0x4b4),'icon':_0x4bcf19(0x359),'hidden$':Ei(_0xed3fc),'params':()=>{const _0x46ad54=_0x4bcf19;let _0x58731c=Ti(_0xed3fc);return _0x58731c?{'unitId':_0x58731c[_0x46ad54(0x358)],'subUnitId':_0x58731c[_0x46ad54(0x220)],'shapeId':_0x58731c[_0x46ad54(0x3cb)],'flipV':!0x0}:void 0x0;}};}const ki=_0x356faf(0x446),Ai=_0x356faf(0x263),ji='sheets-shape-ui.shape-format.text-ribbon-control',Mi='sheets-shape-ui.shape-format.formula-ribbon-control';function Ni(){let _0x35f252=_0xa92ee6(_0x44c672),_0x888e79=_0xa92ee6(_0x5f48da),_0x2695b6=_0xa92ee6(_0x19e574),_0x4d7398=()=>{const _0x1153e7=_0x4380;var _0x3990ca;let _0x472318=_0x888e79[_0x1153e7(0x48d)]();if(_0x472318[_0x1153e7(0x468)]!==0x1||((_0x3990ca=_0x472318[0x0])==null?void 0x0:_0x3990ca['drawingType'])!==_0x3bf95f[_0x1153e7(0x24a)])return null;let {unitId:_0x2fb96f,subUnitId:_0x286382,drawingId:_0x36916b}=_0x472318[0x0],_0x2916d4=_0x2695b6[_0x1153e7(0x49c)](_0x2fb96f,_0x286382,_0x36916b),_0x2ede73=_0x2695b6[_0x1153e7(0x2e2)](_0x2fb96f,_0x286382,_0x36916b);return _0x2916d4===void 0x0||!_0x2ede73?null:{'unitId':_0x2fb96f,'subUnitId':_0x286382,'drawingId':_0x36916b,'shapeType':_0x2916d4,'shapeData':_0x2ede73};},_0x53e4d5=_0x4bf3b4(()=>new _0x32ac08(_0xdb9896=>{const _0x308c92=_0x4380;let _0x12ec53=()=>_0xdb9896['next'](_0x4d7398()),_0x404d8f=_0x888e79[_0x308c92(0x354)]['subscribe'](_0x12ec53),_0x52e147=_0x35f252[_0x308c92(0x311)](_0x4669e3=>{_0x4669e3['id']===_0x49a64c['id']&&_0x12ec53();});return _0x12ec53(),()=>{const _0x4f11ac=_0x308c92;_0x404d8f[_0x4f11ac(0x405)](),_0x52e147['dispose']();};}),_0x4d7398(),!0x1,[_0x35f252,_0x888e79,_0x2695b6]);return{'selection':_0x53e4d5,'updateShapeData':_0x3e09d0=>{const _0x5c9395=_0x4380;_0x53e4d5&&Wr(_0x35f252,_0x53e4d5['unitId'],_0x53e4d5[_0x5c9395(0x220)],_0x53e4d5[_0x5c9395(0x3cb)],{'oldShapeData':_0x53e4d5[_0x5c9395(0x2b5)]},_0x3e09d0);}};}function Pi(){const _0xf1c48a=_0x356faf;let {selection:_0x255488,updateShapeData:_0x1ef8da}=Ni();return _0x255488?_0x38e4c6(_0x19e9b3,{'shapeData':_0x255488[_0xf1c48a(0x2b5)],'shapeType':_0x255488[_0xf1c48a(0x291)],'onUpdateShapeData':_0x1ef8da}):null;}function Fi(){const _0x27907f=_0x356faf;let _0x25982f=_0xa92ee6(_0x44c672),_0x9db3f1=_0xa92ee6(_0x4a6f46),{selection:_0x412cdb}=Ni();return _0x412cdb?_0x38e4c6(_0x4e4fc7,{'type':_0x442b62(_0x412cdb[_0x27907f(0x2b5)]),'ariaLabel':_0x9db3f1['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x2b9d24(_0x412cdb[_0x27907f(0x2b5)]),'onSelect':_0x41c410=>_0x25982f[_0x27907f(0x3e3)](li['id'],{'presetId':_0x41c410})}):null;}function Ii(){const _0x34e937=_0x356faf;let {selection:_0x23136e,updateShapeData:_0x3eda4f}=Ni();return _0x23136e?_0x38e4c6(_0x13449d,{'fontFamilyPopupDataComponent':_0x34e937(0x4c2),'shapeData':_0x23136e['shapeData'],'onUpdateShapeData':_0x3eda4f}):null;}function Li(){const _0x41eb36=_0x356faf;var _0x301288;let {selection:_0x2eabba,updateShapeData:_0x3286be}=Ni(),_0x49f335=_0x3e3da7({'hostType':_0xdbfe17[_0x41eb36(0x21c)],'unitId':(_0x2eabba==null?void 0x0:_0x2eabba[_0x41eb36(0x358)])??'','subUnitId':(_0x2eabba==null?void 0x0:_0x2eabba['subUnitId'])??'','shapeId':(_0x2eabba==null?void 0x0:_0x2eabba[_0x41eb36(0x3cb)])??'','shapeData':_0x2eabba==null?void 0x0:_0x2eabba[_0x41eb36(0x2b5)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x41eb36(0x40f),'onUpdateBinding':_0x29a62b=>_0x3286be({'formulaBinding':_0x29a62b})}),_0x5aae22=((_0x301288=_0x49f335[_0x41eb36(0x441)])==null?void 0x0:_0x301288[_0x41eb36(0x485)](_0x1d3aec=>_0x1d3aec[_0x41eb36(0x3e1)])[_0x41eb36(0x227)](_0xc2671c=>_0xc2671c[_0x41eb36(0x399)]!==!0x1))??[];return _0x2eabba!=null&&_0x2eabba[_0x41eb36(0x2b5)][_0x41eb36(0x356)]?_0x38e4c6(_0x4a64d0,{'actions':_0x5aae22,'panel':_0x49f335[_0x41eb36(0x420)]}):null;}const Ri=_0x356faf(0x4a9),zi=_0x356faf(0x3c1),Bi=_0x356faf(0x44a),Vi=_0x356faf(0x247),Hi='sheets-shape-ui.ribbon.shape-format.arrange-backward',Ui=_0x356faf(0x36d),Wi='sheets-shape-ui.ribbon.shape-format.arrange-back';function _0x4380(_0x2662d5,_0x2cba75){_0x2662d5=_0x2662d5-0x1e2;const _0x3cc837=_0x3cc8();let _0x43801c=_0x3cc837[_0x2662d5];return _0x43801c;}function Gi(_0x443b6a){const _0x1ba05a=_0x356faf;let _0x38a75d=_0x443b6a['get'](_0x44c672),_0x5220ad=_0x443b6a['get'](_0x5f48da),_0x5f2fad=_0x443b6a[_0x1ba05a(0x230)](_0x19e574);return new _0x32ac08(_0x43f6fe=>{const _0x3515e0=_0x1ba05a;let _0x4030c2=()=>{const _0xd2c7ef=_0x4380;let _0x248e79=Ki(_0x443b6a),_0x191da0=_0x248e79?_0x5f2fad[_0xd2c7ef(0x2e2)](_0x248e79[_0xd2c7ef(0x358)],_0x248e79[_0xd2c7ef(0x220)],_0x248e79['drawingId']):null;_0x43f6fe[_0xd2c7ef(0x2a2)](_0x191da0?_0x2b9d24(_0x191da0)??'':'');},_0x205184=_0x5220ad[_0x3515e0(0x354)][_0x3515e0(0x2bd)](_0x4030c2),_0x314137=_0x38a75d['onCommandExecuted'](_0x1e48f8=>{_0x1e48f8['id']===_0x49a64c['id']&&_0x4030c2();});return _0x4030c2(),()=>{const _0x5dd368=_0x3515e0;_0x205184[_0x5dd368(0x405)](),_0x314137['dispose']();};});}function Ki(_0xf028d){const _0x523853=_0x356faf;var _0x5691a3;let _0x3454fa=_0xf028d[_0x523853(0x230)](_0x5f48da)['getFocusDrawings']();return _0x3454fa[_0x523853(0x468)]===0x1&&((_0x5691a3=_0x3454fa[0x0])==null?void 0x0:_0x5691a3[_0x523853(0x30d)])===_0x3bf95f[_0x523853(0x24a)]?_0x3454fa[0x0]:null;}function qi(_0x34c3ae,_0x39fb0a=!0x1){const _0x3a95f2=_0x356faf;let _0x455c73=_0x34c3ae[_0x3a95f2(0x230)](_0x44c672),_0x27b2ce=_0x34c3ae[_0x3a95f2(0x230)](_0x5f48da),_0x562b84=_0x34c3ae['get'](_0x19e574);return new _0x32ac08(_0x2b3f91=>{const _0x176df9=_0x3a95f2;let _0xe1d862=()=>{const _0x5ac67e=_0x4380;let _0x5c111e=Ki(_0x34c3ae);if(!_0x5c111e){_0x2b3f91['next'](!0x0);return;}let _0x5c7840=_0x562b84[_0x5ac67e(0x2e2)](_0x5c111e['unitId'],_0x5c111e[_0x5ac67e(0x220)],_0x5c111e[_0x5ac67e(0x3cb)]);_0x2b3f91[_0x5ac67e(0x2a2)](!_0x5c7840||_0x39fb0a&&_0x5c7840[_0x5ac67e(0x356)]==null);},_0x3d7a8b=_0x27b2ce[_0x176df9(0x354)][_0x176df9(0x2bd)](_0xe1d862),_0x856549=_0x455c73[_0x176df9(0x311)](_0x19ed6e=>{_0x19ed6e['id']===_0x49a64c['id']&&_0xe1d862();});return _0xe1d862(),()=>{const _0x49f51a=_0x176df9;_0x3d7a8b['unsubscribe'](),_0x856549[_0x49f51a(0x40a)]();};});}function Ji(_0x2386ac){const _0x35cc73=_0x356faf;let _0x2842e2=_0x2386ac[_0x35cc73(0x230)](_0x5f48da),_0x3b3d0d=_0x2386ac[_0x35cc73(0x230)](_0x19e574);return _0x2842e2[_0x35cc73(0x354)][_0x35cc73(0x2f2)](_0x3e71c4(_0x2842e2['getFocusDrawings']()),_0x168ee1(()=>{const _0x35a679=_0x35cc73;let _0x34a628=Ki(_0x2386ac),_0x59a26c=_0x34a628?_0x3b3d0d[_0x35a679(0x49c)](_0x34a628[_0x35a679(0x358)],_0x34a628[_0x35a679(0x220)],_0x34a628[_0x35a679(0x3cb)]):void 0x0;return _0x59a26c===void 0x0||_0x1a599b(_0x59a26c);}));}function Yi(_0x2600ef){const _0x2380b2=_0x356faf;return{'id':li['id'],'type':_0x15beab[_0x2380b2(0x270)],'icon':_0x2380b2(0x301),'title':_0x2380b2(0x484),'tooltip':_0x2380b2(0x484),'selections':[{'label':{'name':ki,'hoverable':!0x1,'selectable':!0x1}}],'value$':Gi(_0x2600ef),'hidden$':qi(_0x2600ef)};}function Xi(_0x3c679){const _0x2aa1bc=_0x356faf;return{'id':ui['id'],'type':_0x15beab[_0x2aa1bc(0x270)],'icon':'ShapeIcon','title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x2aa1bc(0x386),'slot':!0x0,'selections':[{'label':{'name':_0x4dfa0e,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ji(_0x3c679)};}function Zi(_0x79d9ae,_0x2a9351,_0x3dc3f=!0x1){const _0x32551d=_0x356faf;return _0x4a1dba=>({'id':_0x79d9ae,'type':_0x15beab[_0x32551d(0x48a)],'label':{'name':_0x2a9351,'hoverable':!0x1,'selectable':!0x1},'hidden$':qi(_0x4a1dba,_0x3dc3f)});}const Qi=Zi(Ri,Ai),$i=Zi(zi,ji),ea=Zi(Bi,Mi,!0x0);function ta(_0x10830d,_0x73122e,_0x2abe40,_0x343f42){const _0x4e8462=_0x356faf;return _0x211068=>({'id':_0x10830d,'commandId':_0x5541b1['id'],'type':_0x15beab[_0x4e8462(0x48a)],'icon':_0x2abe40,'title':_0x343f42,'tooltip':_0x343f42,'hidden$':qi(_0x211068),'params':()=>{const _0x3c5c09=_0x4e8462;let _0x529de6=Ki(_0x211068);return _0x529de6?{'unitId':_0x529de6[_0x3c5c09(0x358)],'subUnitId':_0x529de6['subUnitId'],'drawingIds':[_0x529de6['drawingId']],'arrangeType':_0x73122e}:void 0x0;}});}const na=ta(Vi,_0x26f099[_0x356faf(0x4a2)],'MoveUpIcon',_0x356faf(0x43f)),ra=ta(Hi,_0x26f099['backward'],'MoveDownIcon',_0x356faf(0x49a)),ia=ta(Ui,_0x26f099[_0x356faf(0x1ec)],_0x356faf(0x250),_0x356faf(0x408)),aa=ta(Wi,_0x26f099[_0x356faf(0x395)],_0x356faf(0x3bc),_0x356faf(0x4be));function oa(_0x883004){const _0xe6f6d=_0x356faf;let _0x4370d1=_0x883004['get'](_0x1bca5a);return{'activated$':_0x3262b0(()=>_0x4370d1[_0xe6f6d(0x392)][_0xe6f6d(0x2f2)](_0x3e71c4(_0x4370d1[_0xe6f6d(0x325)]),_0x168ee1(_0xaa439f=>_0xaa439f['visible']===!0x0&&_0xaa439f['id']===_0xe6f6d(0x2fe)),_0x48d97e())),'id':si['id'],'type':_0x15beab[_0xe6f6d(0x48a)],'icon':_0xe6f6d(0x1e8),'title':_0xe6f6d(0x2d4),'tooltip':'sheets-shape-ui.formatShape','hidden$':qi(_0x883004),'params':()=>{const _0x24f1c3=_0xe6f6d;let _0xf94841=Ki(_0x883004);return _0xf94841?{'unitId':_0xf94841[_0x24f1c3(0x358)],'subUnitId':_0xf94841[_0x24f1c3(0x220)],'drawingId':_0xf94841['drawingId']}:void 0x0;}};}const sa={[_0x27db81['RIBBON']]:{[ri]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[li['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Yi},[ui['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ri]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Qi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[zi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':$i}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Di},[wi]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Oi},[Vi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':na},[Hi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ra},[Ui]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ia},[Wi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':aa}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':ea}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[si['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':oa},[_0x3827bc['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x2737b1}}}}},ca={[_0x132936[_0x356faf(0x479)]]:{[$r['id']]:{'order':0x3,'menuItemFactory':bi}}},la={...ca,[_0x132936[_0x356faf(0x29b)]]:{[oi['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Si}},[_0x2c47b2[_0x356faf(0x442)]]:{[_0xc4e583['OTHERS']]:{[Ci]:{'order':0x4,'menuItemFactory':Di},[wi]:{'order':0x5,'menuItemFactory':Oi}}}};var ua=_0x356faf(0x275),da=_0x356faf(0x4ad);const fa={'id':_0x356faf(0x2ef),'type':_0x5663ea[_0x356faf(0x3e4)],'handler'(_0x2d47af,_0x53e368){const _0x3d81e4=_0x356faf;return _0x53e368?(_0x2d47af['get'](_0x257d12)['open'](_0x53e368[_0x3d81e4(0x3a1)],{'hostType':_0xdbfe17[_0x3d81e4(0x21c)],'shapeId':_0x53e368[_0x3d81e4(0x3cb)],'subUnitId':_0x53e368['subUnitId'],'unitId':_0x53e368[_0x3d81e4(0x358)]}),!0x0):!0x1;}},pa=_0x356faf(0x4cb),ma={};let ha=class extends _0x1717dd{constructor(_0x1781d6,_0x170359,_0x233e34,_0x37f4d4,_0x6be971){const _0x22a53e=_0x356faf;super(),this['_context']=_0x1781d6,this[_0x22a53e(0x444)]=_0x170359,this[_0x22a53e(0x251)]=_0x233e34,this[_0x22a53e(0x4cc)]=_0x37f4d4,this[_0x22a53e(0x316)]=_0x6be971,q(this,'_activeImageId',null),q(this,'_unitId',null),q(this,_0x22a53e(0x458),null),q(this,_0x22a53e(0x2c6),void 0x0),q(this,'_shapes',[]),q(this,'_baseLeft',0x0),q(this,_0x22a53e(0x3ae),0x0),q(this,'_baseWidth',0x0),q(this,'_baseHeight',0x0),q(this,_0x22a53e(0x20c),!0x1),q(this,_0x22a53e(0x3d2),void 0x0),q(this,_0x22a53e(0x2ea),void 0x0),q(this,_0x22a53e(0x378),void 0x0),q(this,_0x22a53e(0x28c),void 0x0),q(this,_0x22a53e(0x288),!0x1),this[_0x22a53e(0x4a3)](),this[_0x22a53e(0x33d)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x356faf(0x276)](){this['_clearControls'](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x3b3f53,_0x251b54,_0x512023,_0x309748){const _0x10c13c=_0x356faf;let _0x447153=_0x3b3f53;if(_0x447153!==_0x43a99f[_0x10c13c(0x39c)]&&_0x3b3f53!==_0x10c13c(0x2d5))try{let _0x283eef=new _0x6abf05(_0x447153,_0x10c13c(0x357)+_0x3b3f53);return _0x309748&&_0x283eef[_0x10c13c(0x21e)]({'adjustValues':_0x309748},!0x0),_0x283eef['updateContext']({'width':_0x251b54,'height':_0x512023}),_0x283eef;}catch{return;}}[_0x356faf(0x3d5)](_0x117473,_0x2c0f65,_0x2fe73a){const _0x13202a=_0x356faf;let _0x5cd79c={'unitId':_0x117473,'subUnitId':_0x2c0f65,'drawingId':_0x2fe73a},_0x2a2fdb=this[_0x13202a(0x444)]['getDrawingByParam'](_0x5cd79c);if(_0x2a2fdb&&_0x2a2fdb[_0x13202a(0x30d)]===_0x3bf95f[_0x13202a(0x45a)])return _0x2a2fdb;}[_0x356faf(0x287)](_0x402072,_0x4a40da,_0x492a54){const _0x4ae069=_0x356faf;let _0x50be2c=this[_0x4ae069(0x251)][_0x4ae069(0x3ee)](_0x402072);if(!_0x50be2c)return;let {scene:_0x1b6589}=_0x50be2c,_0x3b6af4=_0x4e19f9({'unitId':_0x402072,'subUnitId':_0x4a40da,'drawingId':_0x492a54}),_0x272e00=_0x1b6589[_0x4ae069(0x33f)](_0x3b6af4);if(_0x272e00 instanceof _0x40e72e){let _0x4b252d=_0x272e00[_0x4ae069(0x2a6)];if(_0x4b252d)return{'prstGeom':_0x4b252d,'adjustValues':_0x272e00[_0x4ae069(0x3b2)]};}}[_0x356faf(0x201)](_0xbe9f7c=!0x1){const _0x2b6ad1=_0x356faf;if(!this[_0x2b6ad1(0x46a)]||!this['_subUnitId']||!this[_0x2b6ad1(0x204)])return;let _0xf04ec9=this[_0x2b6ad1(0x251)][_0x2b6ad1(0x3ee)](this[_0x2b6ad1(0x46a)]);if(!_0xf04ec9||!_0xf04ec9[_0x2b6ad1(0x335)](_0x1f2fa0)[_0x2b6ad1(0x449)]())return;let {scene:_0x4ef742}=_0xf04ec9,_0x58e83c=this['_getImageDrawingInfo'](this[_0x2b6ad1(0x46a)],this[_0x2b6ad1(0x458)],this[_0x2b6ad1(0x204)]);if(!_0x58e83c)return;let {transform:_0x5d21ee}=_0x58e83c;if(!_0x5d21ee)return;let {left:_0x30210a,top:_0x139ac3,width:_0x2e58a1,height:_0xeabcbf,flipX:_0x3cac67,flipY:_0x3d197b,angle:_0x3ed910=0x0}=_0x5d21ee;if(_0x30210a===void 0x0||_0x139ac3===void 0x0)return;let _0x37abd8=this[_0x2b6ad1(0x287)](this[_0x2b6ad1(0x46a)],this[_0x2b6ad1(0x458)],this[_0x2b6ad1(0x204)]);if(!_0x37abd8)return;if(_0xbe9f7c){let _0x23b616=this[_0x2b6ad1(0x433)](_0x37abd8[_0x2b6ad1(0x2a6)],_0x2e58a1||0x0,_0xeabcbf||0x0,_0x37abd8['adjustValues']);if(!_0x23b616)return;this[_0x2b6ad1(0x2c6)]=_0x23b616[_0x2b6ad1(0x34c)]();}let _0x39a234=this[_0x2b6ad1(0x2c6)];if(_0x39a234&&_0x39a234[_0x2b6ad1(0x468)]!==0x0)for(let _0x19db72=0x0;_0x19db72<_0x39a234['length'];_0x19db72++){let _0x562f76=_0x39a234[_0x19db72],_0x2091d7=_0x562f76['x'],_0x4b6ff6=_0x562f76['y'];if(_0x3cac67&&(_0x2091d7=(_0x2e58a1||0x0)-_0x2091d7),_0x3d197b&&(_0x4b6ff6=(_0xeabcbf||0x0)-_0x4b6ff6),_0x3ed910!==0x0){let _0x40719=(_0x2e58a1||0x0)/0x2,_0x393afe=(_0xeabcbf||0x0)/0x2,_0x2f126b=_0x3ed910*Math['PI']/0xb4,_0x53ad5a=Math[_0x2b6ad1(0x384)](_0x2f126b),_0x2b5091=Math[_0x2b6ad1(0x203)](_0x2f126b),_0x1e2c28=_0x2091d7-_0x40719,_0x20759d=_0x4b6ff6-_0x393afe;_0x2091d7=_0x40719+(_0x1e2c28*_0x53ad5a-_0x20759d*_0x2b5091),_0x4b6ff6=_0x393afe+(_0x1e2c28*_0x2b5091+_0x20759d*_0x53ad5a);}let _0x6bf71d={'x':_0x2091d7,'y':_0x4b6ff6,'adjName':_0x562f76[_0x2b6ad1(0x3b1)]};this[_0x2b6ad1(0x2cb)](_0x4ef742,_0x6bf71d,_0x6bf71d[_0x2b6ad1(0x3b1)],_0x30210a,_0x139ac3,this[_0x2b6ad1(0x46a)],this['_subUnitId']);}}[_0x356faf(0x2cb)](_0x2f65c5,_0x239443,_0x55b78c,_0x3ed3e4,_0x18502e,_0x59568f,_0x2a6753){const _0x649513=_0x356faf;if(!this[_0x649513(0x204)])return;let _0x23e7ed='image-clip-adjust-point-'+this[_0x649513(0x204)]+'-'+_0x55b78c,_0x399d98=_0x2f65c5[_0x649513(0x348)](_0x23e7ed);if(_0x399d98){_0x399d98[_0x649513(0x3e5)]({'left':_0x239443['x']+_0x3ed3e4-_0x3c938b['adjHandleSize'],'top':_0x239443['y']+_0x18502e-_0x3c938b[_0x649513(0x43a)]});return;}let _0x32e649=new Xr(_0x23e7ed,{'left':_0x239443['x']+_0x3ed3e4-_0x3c938b[_0x649513(0x43a)],'top':_0x239443['y']+_0x18502e-_0x3c938b[_0x649513(0x43a)],'adjName':_0x55b78c,'shapeId':this['_activeImageId'],'unitId':_0x59568f,'subUnitId':_0x2a6753,'width':_0x3c938b[_0x649513(0x43a)]+0x8,'height':_0x3c938b[_0x649513(0x43a)]+0x8,'zIndex':_0x604e6e+0x1,'evented':!0x0});this[_0x649513(0x3f0)]['push'](_0x32e649),this['_attachAdjustEvent'](_0x32e649,_0x2f65c5,_0x55b78c),_0x2f65c5[_0x649513(0x46f)](_0x32e649,_0x604e6e+0x1);}[_0x356faf(0x320)](){const _0x323fa4=_0x356faf;this[_0x323fa4(0x3f0)][_0x323fa4(0x468)]!==0x0&&(this[_0x323fa4(0x3f0)][_0x323fa4(0x35e)](_0xa8f3d2=>_0xa8f3d2[_0x323fa4(0x40a)]()),this[_0x323fa4(0x3f0)]=[]);}[_0x356faf(0x45b)](_0x12e2b0,_0x4f916c){const _0x378e55=_0x356faf;var _0x31cb9e;let _0x2f7ebc={'x':0x0,'y':0x0},_0x1f96f3=this[_0x378e55(0x251)][_0x378e55(0x3ee)](_0x12e2b0);if(!_0x1f96f3||!_0x1f96f3[_0x378e55(0x335)](_0x1f2fa0)[_0x378e55(0x434)](_0x4f916c))return _0x2f7ebc;let _0x2aa8eb=_0x1f96f3[_0x378e55(0x335)](_0x5f11b1),_0x37ab56=_0x2aa8eb==null?void 0x0:_0x2aa8eb['getCurrentScrollState']();if(!_0x37ab56)return _0x2f7ebc;let _0x4db818=(_0x31cb9e=this[_0x378e55(0x4cc)]['getUnit'](_0x12e2b0))==null?void 0x0:_0x31cb9e[_0x378e55(0x286)](_0x4f916c);if(!_0x4db818)return _0x2f7ebc;let _0x4d9b99=_0x13cb47(_0x37ab56[_0x378e55(0x2e6)],_0x37ab56[_0x378e55(0x2e1)],_0x1f96f3[_0x378e55(0x364)],_0x4db818);return _0x4d9b99?{'x':_0x4d9b99[_0x378e55(0x406)],'y':_0x4d9b99[_0x378e55(0x2df)]}:_0x2f7ebc;}[_0x356faf(0x2be)](_0x53f167,_0x1dfddf){const _0x16e4fb=_0x356faf;var _0x293769;let _0x289664=(_0x293769=this[_0x16e4fb(0x4cc)]['getUnit'](_0x53f167))==null?void 0x0:_0x293769[_0x16e4fb(0x286)](_0x1dfddf);return(_0x289664==null?void 0x0:_0x289664[_0x16e4fb(0x4c5)]())??0x1;}[_0x356faf(0x385)](_0x1c6ee3,_0x4b3924,_0x517e50){const _0x19587a=_0x356faf;this['disposeWithMe'](_0x5381db(_0x1c6ee3[_0x19587a(0x448)][_0x19587a(0x4a8)]((_0x3bb15e,_0x575021)=>{const _0x3341fe=_0x19587a;var _0x2ba4fe,_0x5b022d,_0x2f746b;let {unitId:_0x4a76d0,subUnitId:_0x23d36e,drawingId:_0x35da4f}=_0x1c6ee3[_0x3341fe(0x443)](),_0x199ee9=this[_0x3341fe(0x3d5)](_0x4a76d0,_0x23d36e,_0x35da4f);if(!(_0x199ee9!=null&&_0x199ee9[_0x3341fe(0x478)]))return;let {left:_0x40b71b,top:_0x168047,width:_0x43c18c,height:_0xbb0529}=_0x199ee9[_0x3341fe(0x478)];this['_baseLeft']=_0x40b71b||0x0,this[_0x3341fe(0x3ae)]=_0x168047||0x0,this[_0x3341fe(0x3ec)]=_0x43c18c||0x0,this['_baseHeight']=_0xbb0529||0x0;let _0x35da5a=!!((_0x2ba4fe=_0x199ee9[_0x3341fe(0x478)])!=null&&_0x2ba4fe[_0x3341fe(0x43d)]),_0x37d71e=!!((_0x5b022d=_0x199ee9['transform'])!=null&&_0x5b022d[_0x3341fe(0x33b)]),_0x366d69=((_0x2f746b=_0x199ee9[_0x3341fe(0x478)])==null?void 0x0:_0x2f746b[_0x3341fe(0x2b9)])||0x0,_0x1cee47=this['_getImagePrstGeom'](_0x4a76d0,_0x23d36e,_0x35da4f);if(!_0x1cee47)return;let _0x4027f3=this[_0x3341fe(0x433)](_0x1cee47['prstGeom'],this[_0x3341fe(0x3ec)],this['_baseHeight'],_0x1cee47[_0x3341fe(0x236)]);if(!_0x4027f3||(this[_0x3341fe(0x2ea)]=_0x4027f3,this['_activeAdjustInfo']=_0x4027f3[_0x3341fe(0x4a6)](_0x517e50),!this[_0x3341fe(0x3d2)]))return;this[_0x3341fe(0x20c)]=!0x0,_0x4b3924[_0x3341fe(0x3cf)]();let _0x207f81=_0x1cee47[_0x3341fe(0x2a6)];this['_adjHandlerPointerMove']=_0x4b3924[_0x3341fe(0x25f)][_0x3341fe(0x4a8)]((_0x26f67e,_0x5ddb23)=>{const _0x20e9b5=_0x3341fe;if(!this['_isStartAdjusting'])return;let {offsetX:_0x4feb7b,offsetY:_0x65106a}=_0x26f67e,_0x18b120=this[_0x20e9b5(0x3d2)];if(!this[_0x20e9b5(0x2ea)]||!_0x18b120)return;_0x4b3924['disableObjectsEvent'](),_0x4b3924[_0x20e9b5(0x2d0)](_0xd5fe4f['CROSSHAIR']);let _0x26bca5={'left':0x0,'top':0x0,'width':this[_0x20e9b5(0x3ec)],'height':this[_0x20e9b5(0x23b)]},_0x578c93=this[_0x20e9b5(0x45b)](_0x4a76d0,_0x23d36e),_0x1685f1=this[_0x20e9b5(0x2be)](_0x4a76d0,_0x23d36e),_0x50ea5a=_0x4feb7b/_0x1685f1+_0x578c93['x']-this[_0x20e9b5(0x2dc)],_0xeca796=_0x65106a/_0x1685f1+_0x578c93['y']-this['_baseTop'];if(_0x366d69!==0x0){let _0x562162=this[_0x20e9b5(0x3ec)]/0x2,_0x952fec=this[_0x20e9b5(0x23b)]/0x2,_0x52862f=_0x366d69*Math['PI']/0xb4,_0x3b4027=Math['cos'](_0x52862f),_0x4af21e=Math['sin'](_0x52862f),_0x5b942e=_0x50ea5a-_0x562162,_0x1fa4c6=_0xeca796-_0x952fec;_0x50ea5a=_0x562162+(_0x5b942e*_0x3b4027+_0x1fa4c6*_0x4af21e),_0xeca796=_0x952fec+(-_0x5b942e*_0x4af21e+_0x1fa4c6*_0x3b4027);}_0x35da5a&&(_0x50ea5a=this['_baseWidth']-_0x50ea5a),_0x37d71e&&(_0xeca796=this['_baseHeight']-_0xeca796);let _0x46a594=this[_0x20e9b5(0x2ea)]['calcAdjValues'](_0x26bca5,{'x':_0x50ea5a,'y':_0xeca796},_0x18b120,_0x35da5a,_0x37d71e);if(Object['keys'](_0x46a594)[_0x20e9b5(0x468)]!==0x0){for(let [_0x385e53,_0x139f8a]of Object[_0x20e9b5(0x28f)](_0x46a594))this['_activeShapeModel'][_0x20e9b5(0x29a)](_0x385e53,_0x139f8a);this[_0x20e9b5(0x2ea)][_0x20e9b5(0x240)]({'width':this['_baseWidth'],'height':this['_baseHeight']}),this[_0x20e9b5(0x27d)](_0x4a76d0,_0x23d36e,_0x35da4f,_0x46a594),this[_0x20e9b5(0x2c6)]=this[_0x20e9b5(0x2ea)]['getDrawingPoints'](),this[_0x20e9b5(0x201)](),_0x5ddb23[_0x20e9b5(0x21d)]();}}),this['_adjHandlerPointerUp']=_0x4b3924[_0x3341fe(0x3f5)][_0x3341fe(0x4a8)]((_0x135788,_0xd7dd6)=>{const _0x2964be=_0x3341fe;if(this[_0x2964be(0x378)][_0x2964be(0x405)](),this[_0x2964be(0x28c)][_0x2964be(0x405)](),_0x4b3924['resetCursor'](),this[_0x2964be(0x2ea)]){let _0x16fca8=this[_0x2964be(0x2ea)]['getAdjustNames'](),_0x23335f={};for(let _0x2ca78c of _0x16fca8){let _0x4a4b23=this['_activeShapeModel'][_0x2964be(0x3f9)](_0x2ca78c);_0x4a4b23!==void 0x0&&(_0x23335f[_0x2ca78c]=_0x4a4b23);}this['_imageShapeClipController'][_0x2964be(0x44c)](_0x4a76d0,_0x23d36e,_0x35da4f,_0x207f81,_0x23335f);}this[_0x2964be(0x3d2)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x2964be(0x20c)]=!0x1,_0xd7dd6[_0x2964be(0x21d)](),_0x4b3924[_0x2964be(0x3a2)]();}),_0x575021[_0x3341fe(0x21d)]();})));}[_0x356faf(0x27d)](_0x362d59,_0x178897,_0x2eabd1,_0x41e6b3){const _0x7b400c=_0x356faf;let _0x401210=this['_renderManagerService'][_0x7b400c(0x3ee)](_0x362d59);if(!_0x401210)return;let {scene:_0x1f32bc}=_0x401210,_0x6e9356=_0x4e19f9({'unitId':_0x362d59,'subUnitId':_0x178897,'drawingId':_0x2eabd1}),_0xf04b2b=_0x1f32bc[_0x7b400c(0x33f)](_0x6e9356);if(_0xf04b2b instanceof _0x40e72e){let _0x41678e=_0xf04b2b[_0x7b400c(0x3b2)]??{};_0xf04b2b[_0x7b400c(0x424)]({..._0x41678e,..._0x41e6b3}),_0xf04b2b[_0x7b400c(0x248)](!0x0);}}[_0x356faf(0x33d)](){const _0x6a1920=_0x356faf;let _0x82be45=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0xdbfe17['UNIVER_SHEET']);this[_0x6a1920(0x45d)](_0x82be45[_0x6a1920(0x2f2)](_0x48cdae(_0x2fdb78=>_0x2fdb78?_0x2fdb78[_0x6a1920(0x470)][_0x6a1920(0x2f2)](_0x48cdae(_0x3606ea=>{const _0x1a9a60=_0x6a1920;if(!_0x3606ea)return _0x44e428;let _0x51d11e=_0x2fdb78['getUnitId'](),_0xa29caf=this['_renderManagerService'][_0x1a9a60(0x3ee)](_0x51d11e),_0x54e5ad=_0xa29caf==null?void 0x0:_0xa29caf[_0x1a9a60(0x364)];return _0x54e5ad?_0x5ca9c3(_0x54e5ad):_0x44e428;})):_0x44e428))['subscribe'](_0x271800=>{const _0x352f58=_0x6a1920;let _0x1aab17=_0x271800['getTransformerByCreate']();this[_0x352f58(0x45d)](_0x271800['onPointerMove$'][_0x352f58(0x4a8)](()=>{const _0x19e8ca=_0x352f58;this[_0x19e8ca(0x288)]&&this[_0x19e8ca(0x320)]();})),this[_0x352f58(0x45d)](_0x1aab17[_0x352f58(0x25e)]['subscribe'](_0x3d2cc6=>{const _0x3af0fb=_0x352f58;let {objects:_0x15ad55}=_0x3d2cc6;if(this['_createControls'](),_0x15ad55!==null&&_0x15ad55[_0x3af0fb(0x2de)]===0x1){let _0x3a238=_0x15ad55[_0x3af0fb(0x243)]()[_0x3af0fb(0x2a2)]()[_0x3af0fb(0x45e)];_0x3a238 instanceof _0x40e72e&&_0x3a238[_0x3af0fb(0x2a6)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x352f58(0x45d)](_0x1aab17[_0x352f58(0x36a)]['subscribe'](()=>{const _0x3d5c7b=_0x352f58;this[_0x3d5c7b(0x288)]&&this['_clearControls']();})),this[_0x352f58(0x45d)](_0x271800[_0x352f58(0x3f5)][_0x352f58(0x4a8)](()=>{const _0x2066a1=_0x352f58;this[_0x2066a1(0x288)]&&(this[_0x2066a1(0x288)]=!0x1,this[_0x2066a1(0x201)]());})),this[_0x352f58(0x45d)](_0x1aab17[_0x352f58(0x29e)][_0x352f58(0x2bd)](()=>{const _0x1ba56f=_0x352f58;if(this[_0x1ba56f(0x46a)]&&this['_subUnitId']&&this['_activeImageId']){let _0x1133b7=this[_0x1ba56f(0x287)](this[_0x1ba56f(0x46a)],this[_0x1ba56f(0x458)],this['_activeImageId']);if(_0x1133b7){var _0x1e0894,_0x20f2f1;let _0x14c559=this[_0x1ba56f(0x3d5)](this[_0x1ba56f(0x46a)],this['_subUnitId'],this[_0x1ba56f(0x204)]),_0x1a7e7a=(_0x14c559==null||(_0x1e0894=_0x14c559[_0x1ba56f(0x478)])==null?void 0x0:_0x1e0894[_0x1ba56f(0x4b1)])||0x0,_0x356c1a=(_0x14c559==null||(_0x20f2f1=_0x14c559[_0x1ba56f(0x478)])==null?void 0x0:_0x20f2f1['height'])||0x0,_0x5d25e0=this[_0x1ba56f(0x433)](_0x1133b7[_0x1ba56f(0x2a6)],_0x1a7e7a,_0x356c1a,_0x1133b7[_0x1ba56f(0x236)]);_0x5d25e0&&(this[_0x1ba56f(0x2c6)]=_0x5d25e0[_0x1ba56f(0x34c)](),this[_0x1ba56f(0x320)](),this['_createControls'](!0x0));}}}));}));}[_0x356faf(0x4a3)](){const _0x54f3a0=_0x356faf;this[_0x54f3a0(0x45d)](this['_drawingManagerService'][_0x54f3a0(0x354)][_0x54f3a0(0x2bd)](_0x301aa5=>{const _0x466a5c=_0x54f3a0;if(_0x301aa5[_0x466a5c(0x468)]===0x1){let _0x12a5a7=_0x301aa5[0x0];if(_0x12a5a7[_0x466a5c(0x30d)]===_0x3bf95f[_0x466a5c(0x45a)]){let {unitId:_0x3dd269,subUnitId:_0x56ef01,drawingId:_0x1fe5bc}=_0x12a5a7,_0x4e1ff2=this['_getImagePrstGeom'](_0x3dd269,_0x56ef01,_0x1fe5bc);if(_0x4e1ff2){var _0x18d6cc,_0x13d27f;this['_activeImageId']=_0x1fe5bc,this[_0x466a5c(0x46a)]=_0x3dd269,this['_subUnitId']=_0x56ef01;let _0x58d42e=this[_0x466a5c(0x3d5)](_0x3dd269,_0x56ef01,_0x1fe5bc),_0x21f12c=(_0x58d42e==null||(_0x18d6cc=_0x58d42e[_0x466a5c(0x478)])==null?void 0x0:_0x18d6cc['width'])||0x0,_0x3e51c2=(_0x58d42e==null||(_0x13d27f=_0x58d42e[_0x466a5c(0x478)])==null?void 0x0:_0x13d27f[_0x466a5c(0x4c4)])||0x0,_0x4b8f40=this['_getOrCreateShapeModel'](_0x4e1ff2[_0x466a5c(0x2a6)],_0x21f12c,_0x3e51c2,_0x4e1ff2['adjustValues']);_0x4b8f40&&(this['_activeAdjustPointList']=_0x4b8f40[_0x466a5c(0x34c)]()),this[_0x466a5c(0x320)](),this[_0x466a5c(0x201)](!0x0);}else this['_resetState']();}else this[_0x466a5c(0x3c0)]();}else this[_0x466a5c(0x3c0)]();})),this[_0x54f3a0(0x45d)](this[_0x54f3a0(0x444)][_0x54f3a0(0x4ae)][_0x54f3a0(0x2bd)](_0x5b63fd=>{const _0x3c879c=_0x54f3a0;if(_0x5b63fd['length']===0x1){let _0x2ab590=_0x5b63fd[0x0],_0x1dd4d2=this[_0x3c879c(0x444)][_0x3c879c(0x3fb)](_0x2ab590);(_0x1dd4d2==null?void 0x0:_0x1dd4d2[_0x3c879c(0x30d)])===_0x3bf95f[_0x3c879c(0x45a)]&&this[_0x3c879c(0x204)]===_0x2ab590[_0x3c879c(0x3cb)]&&(this[_0x3c879c(0x320)](),this[_0x3c879c(0x201)](!0x0));}})),this[_0x54f3a0(0x45d)](this[_0x54f3a0(0x444)][_0x54f3a0(0x46d)][_0x54f3a0(0x2bd)](_0x328ac5=>{const _0x5570c2=_0x54f3a0;for(let _0x796aa9 of _0x328ac5)this['_activeImageId']===_0x796aa9[_0x5570c2(0x3cb)]&&this['_resetState']();}));}[_0x356faf(0x3c0)](){const _0x43e900=_0x356faf;this[_0x43e900(0x204)]=null,this[_0x43e900(0x46a)]=null,this['_subUnitId']=null,this[_0x43e900(0x2c6)]=void 0x0,this['_clearControls']();}};ha=X([Y(0x1,_0x5f48da),Y(0x2,_0x2132cf(_0xfb1542)),Y(0x3,_0x6cef99),Y(0x4,_0x2132cf(Q))],ha);function ga({PanelComponent:_0x4f8bd4=_0x58ca1b}){const _0x5cd28a=_0x356faf;var _0x2f08e0;function _0x197012(_0x22c901){return _0x22c901['trim']()||void 0x0;}function _0x100f5c(_0x310aed,_0x1fc59f,_0x51ca11){const _0x13a8b1=_0x4380;var _0x4f287b;return((_0x4f287b=_0x310aed[_0x13a8b1(0x1ef)])==null?void 0x0:_0x4f287b[_0x13a8b1(0x353)]())||_0x51ca11['t'](_0x13a8b1(0x273)+_0x15c98b(_0x310aed[_0x13a8b1(0x30d)]))+'\x20'+(_0x1fc59f+0x1);}let _0xbfc544=_0xa92ee6(_0x4a6f46),_0x40bc07={'title':_0xbfc544['t'](_0x5cd28a(0x257)),'empty':_0xbfc544['t'](_0x5cd28a(0x20e)),'showAll':_0xbfc544['t'](_0x5cd28a(0x398)),'hideAll':_0xbfc544['t'](_0x5cd28a(0x445)),'lockAll':_0xbfc544['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0xbfc544['t'](_0x5cd28a(0x30a)),'moveForward':_0xbfc544['t'](_0x5cd28a(0x417)),'moveBackward':_0xbfc544['t'](_0x5cd28a(0x472)),'close':_0xbfc544['t'](_0x5cd28a(0x302)),'show':_0xbfc544['t'](_0x5cd28a(0x480)),'hide':_0xbfc544['t'](_0x5cd28a(0x401)),'lock':_0xbfc544['t'](_0x5cd28a(0x4b9)),'unlock':_0xbfc544['t'](_0x5cd28a(0x242)),'lockHint':_0xbfc544['t'](_0x5cd28a(0x2c9)),'unlockHint':_0xbfc544['t'](_0x5cd28a(0x453)),'name':_0xbfc544['t'](_0x5cd28a(0x3fa)),'nameInput':_0xbfc544['t'](_0x5cd28a(0x22b)),'description':_0xbfc544['t'](_0x5cd28a(0x298)),'descriptionPlaceholder':_0xbfc544['t'](_0x5cd28a(0x2eb)),'details':_0xbfc544['t'](_0x5cd28a(0x261)),'noSelection':_0xbfc544['t'](_0x5cd28a(0x262)),'locate':_0xbfc544['t'](_0x5cd28a(0x2bf)),'expand':_0xbfc544['t'](_0x5cd28a(0x3a5)),'collapse':_0xbfc544['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xbfc544['t'](_0x5cd28a(0x2a7)),'search':_0xbfc544['t'](_0x5cd28a(0x48b)),'filterAll':_0xbfc544['t'](_0x5cd28a(0x28b)),'filterHidden':_0xbfc544['t'](_0x5cd28a(0x272)),'filterLocked':_0xbfc544['t'](_0x5cd28a(0x310)),'sectionCanvas':_0xbfc544['t'](_0x5cd28a(0x3e8)),'sectionFloating':_0xbfc544['t'](_0x5cd28a(0x495))},_0x3fdec8=_0xa92ee6(_0x44c672),_0x1b4629=_0xa92ee6(_0x6cef99),_0x56e688=_0xa92ee6(_0x2a26b5),_0x191f34=_0xa92ee6(_0x5f48da),_0x29d223=_0xa92ee6(_0xfb1542),_0xd28d69=_0xa92ee6(_0x31805e),[,_0x14c7f2]=_0x298795(_0x4a0ce8=>_0x4a0ce8+0x1,0x0),_0x594dba=_0x1b4629[_0x5cd28a(0x3ab)](_0xdbfe17[_0x5cd28a(0x21c)]),_0x1d87de=(_0x594dba==null?void 0x0:_0x594dba['getUnitId']())??'',_0x3332dc=(_0x594dba==null||(_0x2f08e0=_0x594dba['getActiveSheet']())==null?void 0x0:_0x2f08e0[_0x5cd28a(0x2a5)]())??'',_0x11b685=_0x4bf3b4(()=>_0x191f34[_0x5cd28a(0x354)],_0x191f34[_0x5cd28a(0x48d)](),!0x1,[_0x191f34]);_0x4a0dc4(()=>{const _0x2c9683=_0x5cd28a;let _0x50088d=_0x3fdec8[_0x2c9683(0x311)](()=>_0x14c7f2());return()=>_0x50088d['dispose']();},[_0x3fdec8]);let _0x96aab5=_0x1d87de&&_0x3332dc?_0x56e688['getDrawingData'](_0x1d87de,_0x3332dc):{},_0x399dd7=(_0x1d87de&&_0x3332dc?_0x56e688[_0x5cd28a(0x2ca)](_0x1d87de,_0x3332dc):[])[_0x5cd28a(0x2f9)](_0x285b8c=>_0x96aab5[_0x285b8c])['filter'](_0x2d2d96=>!!_0x2d2d96)[_0x5cd28a(0x37a)](),_0x15ee12=_0x399dd7['reduce']((_0x31abb1,_0x5a99c6)=>(_0x31abb1[_0x2a7a9e(_0x5a99c6[_0x5cd28a(0x30d)])]+=0x1,_0x31abb1),{'canvas':0x0,'floating':0x0}),_0x5e772e={'canvas':0x0,'floating':0x0},_0x3f45ec=_0x399dd7[_0x5cd28a(0x2f9)]((_0x5615d6,_0x1b4277)=>{const _0x55476e=_0x5cd28a;let _0x1818ad=_0x2a7a9e(_0x5615d6[_0x55476e(0x30d)]),_0x2249e4=_0x1818ad===_0x5ddba8,_0x17bd40=_0x5e772e[_0x1818ad]++;return{'id':_0x5615d6[_0x55476e(0x3cb)],'name':_0x100f5c(_0x5615d6,_0x1b4277,_0xbfc544),'description':_0x5615d6['description'],'visible':_0x5615d6[_0x55476e(0x431)]!==!0x0,'selectable':_0x5615d6['selectable']!==!0x1,'sectionId':_0x1818ad,'sectionTitle':_0x2249e4?_0x40bc07['sectionFloating']:_0x40bc07['sectionCanvas'],'capabilities':_0x2249e4?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2249e4&&_0x17bd40>0x0,'canMoveBackward':!_0x2249e4&&_0x17bd40<_0x15ee12[_0x55476e(0x1f3)]-0x1,'canReorder':!_0x2249e4};}),_0x13fc3e=_0x471bd3(()=>(_0x11b685??[])['filter'](_0xedbe21=>_0xedbe21[_0x5cd28a(0x358)]===_0x1d87de&&_0xedbe21[_0x5cd28a(0x220)]===_0x3332dc)[_0x5cd28a(0x2f9)](_0x30f770=>_0x30f770[_0x5cd28a(0x3cb)]),[_0x11b685,_0x3332dc,_0x1d87de]),_0x255edf=_0x13fc3e[_0x13fc3e[_0x5cd28a(0x468)]-0x1]??null,_0x52296b=_0x466c0c=>_0x56e688['getDrawingByParam']({'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingId':_0x466c0c})??null,_0x5efa49=async _0x79c0d3=>{const _0x4c6796=_0x5cd28a;_0x1d87de&&_0x79c0d3[_0x4c6796(0x468)]&&await _0x3fdec8[_0x4c6796(0x3e3)](_0x228e22['id'],{'unitId':_0x1d87de,'drawings':_0x79c0d3});},_0x1a2b55=async(_0x56f989,_0x530b5a)=>{_0x52296b(_0x56f989)&&await _0x5efa49([{'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingId':_0x56f989,..._0x530b5a}]);},_0x10a9bb=(_0x30c03b,_0xbbf32b)=>{const _0x3625fa=_0x5cd28a;if(!_0x1d87de||!_0x3332dc)return;let _0x5084bf=_0xbbf32b?_0x13fc3e['includes'](_0x30c03b)?_0x13fc3e[_0x3625fa(0x227)](_0x2fa795=>_0x2fa795!==_0x30c03b):[..._0x13fc3e,_0x30c03b]:[_0x30c03b];_0x3fdec8[_0x3625fa(0x44e)](_0x105e30['id'],_0x5084bf['map'](_0x2d24c4=>({'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingId':_0x2d24c4})));let _0x35a197=_0x5084bf[_0x5084bf['length']-0x1];_0x35a197?(_0x24c727(_0x29d223,{'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingId':_0x35a197}),_0xd28d69[_0x3625fa(0x35c)](_0x1d87de)):_0x268d65(_0x29d223,_0x1d87de);},_0x2e0143=async(_0x597ba2,_0x30a86c)=>{const _0x11e929=_0x5cd28a;await _0x5efa49(_0x597ba2[_0x11e929(0x2f9)](_0x17a146=>_0x52296b(_0x17a146))[_0x11e929(0x227)](_0x5ec950=>!!_0x5ec950)[_0x11e929(0x227)](_0x5b36cb=>_0x5b36cb[_0x11e929(0x431)]!==!0x0!==_0x30a86c)[_0x11e929(0x2f9)](_0x458313=>({'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingId':_0x458313['drawingId'],'hidden':!_0x30a86c})));},_0xea0353=async(_0x15a0c1,_0x34ee29)=>{const _0x2567d3=_0x5cd28a;await _0x5efa49(_0x15a0c1[_0x2567d3(0x2f9)](_0x1c489d=>_0x52296b(_0x1c489d))[_0x2567d3(0x227)](_0x3209ed=>!!_0x3209ed)[_0x2567d3(0x227)](_0x52e358=>_0x52e358[_0x2567d3(0x32c)]!==!0x1!==_0x34ee29)[_0x2567d3(0x2f9)](_0x2a084a=>({'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingId':_0x2a084a[_0x2567d3(0x3cb)],'selectable':_0x34ee29})));},_0x56ce8f=_0x21d03d=>{const _0x3f3592=_0x5cd28a;let _0x4a4d37=_0x52296b(_0x21d03d);if(_0x4a4d37)return _0xea0353([_0x21d03d],_0x4a4d37[_0x3f3592(0x32c)]===!0x1);},_0x2ac127=async(_0x530f09,_0x39b6d3)=>{const _0x3dc207=_0x5cd28a;var _0x92a48;let _0x2c6aa8=_0x197012(_0x39b6d3);(((_0x92a48=_0x52296b(_0x530f09))==null?void 0x0:_0x92a48[_0x3dc207(0x1ef)])??void 0x0)!==_0x2c6aa8&&await _0x1a2b55(_0x530f09,{'name':_0x2c6aa8});},_0xe63016=async(_0x3a8e24,_0x5c09c2)=>{const _0x544b6c=_0x5cd28a;var _0x27483f;let _0x59c934=_0x197012(_0x5c09c2);(((_0x27483f=_0x52296b(_0x3a8e24))==null?void 0x0:_0x27483f[_0x544b6c(0x473)])??void 0x0)!==_0x59c934&&await _0x1a2b55(_0x3a8e24,{'description':_0x59c934});},_0x5878b9=async(_0x5ebf54,_0x442959)=>{const _0x37a438=_0x5cd28a;_0x1d87de&&_0x3332dc&&await _0x3fdec8[_0x37a438(0x3e3)](_0x5541b1['id'],{'unitId':_0x1d87de,'subUnitId':_0x3332dc,'drawingIds':[_0x5ebf54],'arrangeType':_0x442959});};return!_0x1d87de||!_0x3332dc?_0x38e4c6(_0x5cd28a(0x34a),{'className':_0x5cd28a(0x363),'children':_0x40bc07[_0x5cd28a(0x490)]}):_0x38e4c6(_0x4f8bd4,{'labels':_0x40bc07,'items':_0x3f45ec,'selectedIds':_0x13fc3e,'focusedId':_0x255edf,'showHeader':!0x1,'onSelect':_0x10a9bb,'onSetVisible':_0x2e0143,'onSetSelectable':_0xea0353,'onCommitName':_0x2ac127,'onCommitDescription':_0xe63016,'onMoveForward':async _0x49aaca=>_0x5878b9(_0x49aaca,_0x26f099['forward']),'onMoveBackward':async _0x46c2b9=>_0x5878b9(_0x46c2b9,_0x26f099[_0x5cd28a(0x48f)]),'onToggleSelectable':_0x56ce8f});}function _a(){return _0x38e4c6(ga,{'PanelComponent':_0x565010});}let va=class extends _0x1717dd{constructor(_0x54fd7e,_0x22e21f){const _0x516c0f=_0x356faf;super(),this['disposeWithMe'](_0x54fd7e[_0x516c0f(0x451)](ti,_a)),this[_0x516c0f(0x45d)](_0x22e21f[_0x516c0f(0x451)]({'BottomIcon':_0x3437c2,'FlipHorizontalIcon':_0xf7acb8,'FlipVerticalIcon':_0x8f81ec,'MoveDownIcon':_0x34c26e,'MoveUpIcon':_0x78aa60,'ObjectLayersIcon':_0x468afb,'ShapeFormatSettingIcon':_0x4543d5,'TopmostIcon':_0x11c142})),this[_0x516c0f(0x45d)](_0x54fd7e[_0x516c0f(0x451)](di,vi)),this[_0x516c0f(0x45d)](_0x54fd7e[_0x516c0f(0x451)](fi,hi)),_0x54fd7e['hasDefault'](_0x197574)||this[_0x516c0f(0x45d)](_0x54fd7e[_0x516c0f(0x451)](_0x197574,gi));}};va=X([Y(0x0,_0x2132cf(_0x333fbe)),Y(0x1,_0x2132cf(_0x400e62))],va);let $=class extends _0x1717dd{constructor(_0x213930){const _0x1af06c=_0x356faf;super(),this[_0x1af06c(0x4b5)]=_0x213930,q(this,_0x1af06c(0x42c),new _0x359fcd(null)),q(this,_0x1af06c(0x25c),this['_editingParams$']['asObservable']()),q(this,_0x1af06c(0x319),new _0x359fcd(!0x1)),q(this,_0x1af06c(0x30f),this[_0x1af06c(0x319)]['asObservable']()),q(this,_0x1af06c(0x1f8),void 0x0),this[_0x1af06c(0x45d)](this[_0x1af06c(0x4b5)][_0x1af06c(0x4bf)][_0x1af06c(0x2bd)](()=>{const _0x5ab6e8=_0x1af06c;let _0x1ca1e2=this[_0x5ab6e8(0x1fc)]();_0x1ca1e2!=null&&_0x1ca1e2[_0x5ab6e8(0x399)]&&!this[_0x5ab6e8(0x322)](_0x1ca1e2)&&this[_0x5ab6e8(0x2ed)](null);}));}[_0x356faf(0x40a)](){const _0x1b4005=_0x356faf;this[_0x1b4005(0x39b)](),this[_0x1b4005(0x42c)][_0x1b4005(0x2a2)](null),this[_0x1b4005(0x42c)][_0x1b4005(0x3b4)](),this['_onSavingEditorData$'][_0x1b4005(0x2a2)](!0x1),this[_0x1b4005(0x319)][_0x1b4005(0x3b4)](),super['dispose']();}[_0x356faf(0x2ed)](_0x48a55b){const _0x381af1=_0x356faf;(_0x48a55b==null||!_0x48a55b['visible']||this[_0x381af1(0x322)](_0x48a55b))&&(this[_0x381af1(0x39b)](),this[_0x381af1(0x42c)][_0x381af1(0x2a2)](_0x48a55b),(_0x48a55b==null||_0x48a55b[_0x381af1(0x399)]&&this[_0x381af1(0x319)][_0x381af1(0x2aa)]())&&this[_0x381af1(0x319)][_0x381af1(0x2a2)](!0x1));}['setOnSavingEditorData'](_0x412e0c){const _0x459761=_0x356faf;this[_0x459761(0x319)]['next'](_0x412e0c);}['getEditing'](){const _0xb67011=_0x356faf;return this[_0xb67011(0x42c)][_0xb67011(0x2aa)]();}[_0x356faf(0x322)](_0x4ea79d){const _0xf38384=_0x356faf;let _0x1eaa85=this[_0xf38384(0x4b5)]['getPermissionPoint'](new _0x5f38a2(_0x4ea79d[_0xf38384(0x358)])['id']),_0x3d8362=this[_0xf38384(0x4b5)][_0xf38384(0x414)](new _0x5a9082(_0x4ea79d[_0xf38384(0x358)],_0x4ea79d[_0xf38384(0x220)])['id']);return((_0x1eaa85==null?void 0x0:_0x1eaa85[_0xf38384(0x45e)])??!0x0)&&((_0x3d8362==null?void 0x0:_0x3d8362[_0xf38384(0x45e)])??!0x0);}[_0x356faf(0x3c7)](_0x3e90a6){const _0x1b9845=_0x356faf;let _0x1d3010=this[_0x1b9845(0x1fc)]();_0x1d3010&&this[_0x1b9845(0x1f8)]===void 0x0&&(this[_0x1b9845(0x487)](!0x0),this[_0x1b9845(0x1f8)]=requestAnimationFrame(()=>{const _0x8e599f=_0x1b9845;this[_0x8e599f(0x1f8)]=void 0x0,this['getEditing']()===_0x1d3010&&this['setEditing'](null);}));}[_0x356faf(0x39b)](){const _0x46fd90=_0x356faf;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x46fd90(0x1f8)]),this['_completionFrame']=void 0x0);}[_0x356faf(0x428)](){const _0x4579e8=_0x356faf;this[_0x4579e8(0x1fc)]()&&this['setEditing'](null);}};$=X([Y(0x0,_0x481a1b)],$);let ya=class extends _0x1717dd{constructor(_0x159d58,_0x47ebab,_0x5cc212,_0x297e5f,_0x1b0146,_0x1caf3d){const _0x56a932=_0x356faf;super(),this['_context']=_0x159d58,this['_injector']=_0x47ebab,this[_0x56a932(0x382)]=_0x5cc212,this['_drawingManagerService']=_0x297e5f,this[_0x56a932(0x3bf)]=_0x1b0146,this[_0x56a932(0x494)]=_0x1caf3d,q(this,'_lastEditingShapeKey',null),this[_0x56a932(0x4a5)](),this[_0x56a932(0x31a)](),this[_0x56a932(0x2fd)]();}[_0x356faf(0x4a5)](){const _0x4b9556=_0x356faf;let {scene:_0x395748}=this[_0x4b9556(0x4ca)];this[_0x4b9556(0x45d)](_0x395748['onDblclick$'][_0x4b9556(0x4a8)](_0x50aa44=>{const _0x120f86=_0x4b9556;let {offsetX:_0xf56e13,offsetY:_0x5b1867}=_0x50aa44,_0xb9b376=_0x395748[_0x120f86(0x4a7)](_0x416379['FromArray']([_0xf56e13,_0x5b1867]));if(_0xb9b376 instanceof J){let _0x43f91e=this[_0x120f86(0x494)][_0x120f86(0x314)](_0xb9b376[_0x120f86(0x358)],_0xb9b376[_0x120f86(0x220)],_0xb9b376[_0x120f86(0x3fe)]);if(_0x1a599b(this[_0x120f86(0x494)][_0x120f86(0x3cc)](_0xb9b376[_0x120f86(0x358)],_0xb9b376['subUnitId'],_0xb9b376[_0x120f86(0x3fe)]))||_0x43f91e!=null&&_0x43f91e[_0x120f86(0x32a)]()[_0x120f86(0x356)])return;this['_shapeTextEditingService'][_0x120f86(0x2ed)]({'visible':!0x0,'unitId':_0xb9b376['unitId'],'subUnitId':_0xb9b376['subUnitId'],'shapeId':_0xb9b376[_0x120f86(0x3fe)],'shapeKey':_0xb9b376[_0x120f86(0x221)]});}}));}[_0x356faf(0x31a)](){const _0x5d4ba0=_0x356faf;this[_0x5d4ba0(0x45d)](this[_0x5d4ba0(0x444)][_0x5d4ba0(0x354)][_0x5d4ba0(0x2bd)](_0x1e6e04=>{const _0xbcd40f=_0x5d4ba0;if(_0x1e6e04[_0xbcd40f(0x468)]===0x1){let _0xab9194=_0x1e6e04[0x0],_0x1c3f11=this[_0xbcd40f(0x444)][_0xbcd40f(0x3fb)](_0xab9194);if((_0x1c3f11==null?void 0x0:_0x1c3f11[_0xbcd40f(0x30d)])===_0x3bf95f[_0xbcd40f(0x24a)]){var _0x2341b3;let _0x19ea2a=this['_shapeTextEditingService'][_0xbcd40f(0x1fc)]();if((_0x19ea2a==null?void 0x0:_0x19ea2a['shapeId'])===_0xab9194[_0xbcd40f(0x3cb)]&&_0x19ea2a[_0xbcd40f(0x399)])return;let _0x43c58d=_0x1a599b(this[_0xbcd40f(0x494)][_0xbcd40f(0x3cc)](_0xab9194[_0xbcd40f(0x358)],_0xab9194[_0xbcd40f(0x220)],_0xab9194[_0xbcd40f(0x3cb)])),_0x25b7a3=!!((_0x2341b3=this[_0xbcd40f(0x494)][_0xbcd40f(0x314)](_0xab9194[_0xbcd40f(0x358)],_0xab9194[_0xbcd40f(0x220)],_0xab9194[_0xbcd40f(0x3cb)]))!=null&&_0x2341b3[_0xbcd40f(0x32a)]()['formulaBinding']);(_0x43c58d||_0x25b7a3)&&this[_0xbcd40f(0x382)]['setEditing'](null);}else this[_0xbcd40f(0x382)]['completeEditing']();}else this['_shapeTextEditingService'][_0xbcd40f(0x3c7)]();})),this['disposeWithMe'](this[_0x5d4ba0(0x444)][_0x5d4ba0(0x46d)][_0x5d4ba0(0x2bd)](_0x2761bc=>{const _0x496df0=_0x5d4ba0;let _0x4616c9=this[_0x496df0(0x382)][_0x496df0(0x1fc)]();_0x4616c9&&_0x2761bc[_0x496df0(0x31b)](_0x2de09c=>_0x2de09c[_0x496df0(0x3cb)]===_0x4616c9[_0x496df0(0x3fe)])&&this[_0x496df0(0x382)][_0x496df0(0x2ed)](null);}));}[_0x356faf(0x2fd)](){const _0x492564=_0x356faf;this[_0x492564(0x45d)](this[_0x492564(0x382)]['editingParams$'][_0x492564(0x2bd)](_0x4fa372=>{const _0x476d81=_0x492564;let {scene:_0x1035b3}=this['_context'];if(this[_0x476d81(0x309)]){let _0x10a6ef=_0x1035b3[_0x476d81(0x348)](this[_0x476d81(0x309)]);_0x10a6ef&&_0x10a6ef['setEditing'](!0x1);}if(_0x4fa372){let _0x1a0afc=!!_0x4fa372[_0x476d81(0x399)],_0x456b33=_0x1035b3[_0x476d81(0x348)](_0x4fa372[_0x476d81(0x4c9)]);_0x456b33&&(_0x456b33[_0x476d81(0x2ed)](_0x1a0afc),this[_0x476d81(0x309)]=_0x4fa372[_0x476d81(0x4c9)]),this['_contextService'][_0x476d81(0x39f)](_0x416e2b,_0x1a0afc);}else this['_lastEditingShapeKey']=null,this[_0x476d81(0x3bf)][_0x476d81(0x39f)](_0x416e2b,!0x1);}));}};ya=X([Y(0x1,_0x2132cf(_0x967603)),Y(0x2,_0x2132cf($)),Y(0x3,_0x5f48da),Y(0x4,_0x5625c0),Y(0x5,_0x2132cf(_0x19e574))],ya);var ba=class extends ya{[_0x356faf(0x4a5)](){const _0x1ae897=_0x356faf;let {scene:_0x25fa23}=this[_0x1ae897(0x4ca)],_0x2fd3d0=this[_0x1ae897(0x333)][_0x1ae897(0x230)](_0x257d12);this[_0x1ae897(0x45d)](_0x25fa23[_0x1ae897(0x24f)][_0x1ae897(0x4a8)](_0x583197=>{const _0x38ad44=_0x1ae897;let {offsetX:_0x5e2f02,offsetY:_0x3dac4f}=_0x583197,_0x174238=_0x25fa23['pick'](_0x416379['FromArray']([_0x5e2f02,_0x3dac4f]));if(!(_0x174238 instanceof J))return;let _0x35f0fe=this[_0x38ad44(0x494)][_0x38ad44(0x314)](_0x174238['unitId'],_0x174238[_0x38ad44(0x220)],_0x174238['shapeId']);_0x1a599b(this[_0x38ad44(0x494)][_0x38ad44(0x3cc)](_0x174238[_0x38ad44(0x358)],_0x174238[_0x38ad44(0x220)],_0x174238[_0x38ad44(0x3fe)]))||_0x35f0fe!=null&&_0x35f0fe[_0x38ad44(0x32a)]()['formulaBinding']||_0x2fd3d0[_0x38ad44(0x2f3)]('text',{'hostType':_0xdbfe17[_0x38ad44(0x21c)],'unitId':_0x174238['unitId'],'subUnitId':_0x174238[_0x38ad44(0x220)],'shapeId':_0x174238[_0x38ad44(0x3fe)]});}));}};const xa={...ca};let Sa=class extends _0x1717dd{constructor(_0x691183,_0x21ce23,_0x546f44,_0x32fe29,_0x5973b2,_0x1c2c98,_0x225684,_0x38f3e4){const _0x15ccbd=_0x356faf;super(),this[_0x15ccbd(0x1e6)]=_0x691183,this['_sheetsShapeService']=_0x21ce23,this[_0x15ccbd(0x44f)]=_0x546f44,this[_0x15ccbd(0x444)]=_0x32fe29,this[_0x15ccbd(0x215)]=_0x5973b2,this[_0x15ccbd(0x3bf)]=_0x1c2c98,this[_0x15ccbd(0x251)]=_0x225684,this['_shapeTextEditingService']=_0x38f3e4,q(this,_0x15ccbd(0x2b7),null),this['_menuManagerService'][_0x15ccbd(0x31c)](xa),this['_registerFeatureMenu'](),this[_0x15ccbd(0x45d)](this[_0x15ccbd(0x382)]['editingParams$'][_0x15ccbd(0x2bd)](_0xd3bcc=>{_0xd3bcc&&this['_clearFocusedShape']();}));}['initShapePopupMenu'](){const _0x18950c=_0x356faf;this[_0x18950c(0x2b7)]||=this[_0x18950c(0x45d)](_0x260443(this[_0x18950c(0x251)],_0xdbfe17['UNIVER_SHEET'],_0x3d5a5d=>this[_0x18950c(0x304)](_0x3d5a5d)));}[_0x356faf(0x2d3)](){const _0xb637a8=_0x356faf;this['_sheetCanvasPopManagerService']['registerFeatureMenu'](_0x3bf95f['DRAWING_SHAPE'],(_0x3f146a,_0x1092bd,_0x1e47a4,_0x11c01f)=>{const _0x3d7465=_0x4380;let _0x4b0d38=this['_sheetsShapeService']['getShapeTypeById'](_0x3f146a,_0x1092bd,_0x1e47a4),_0x1843dc=this[_0x3d7465(0x494)][_0x3d7465(0x2e2)](_0x3f146a,_0x1092bd,_0x1e47a4),_0x85e6f5=_0x4b0d38!==void 0x0&&!_0x1a599b(_0x4b0d38)&&!(_0x1843dc!=null&&_0x1843dc[_0x3d7465(0x356)]);return[{'label':_0x3d7465(0x1f0),'index':0x0,'commandId':fa['id'],'commandParams':{'unitId':_0x3f146a,'subUnitId':_0x1092bd,'drawingId':_0x1e47a4,'mode':_0x3d7465(0x32b)},'disable':!0x1},..._0x85e6f5?[{'label':_0x3d7465(0x297),'index':0x1,'commandId':fa['id'],'commandParams':{'unitId':_0x3f146a,'subUnitId':_0x1092bd,'drawingId':_0x1e47a4,'mode':_0x3d7465(0x24e)},'disable':!0x1}]:[],{'label':_0x3d7465(0x254),'index':0x2,'commandId':_0x2d5f78['id'],'commandParams':{'unitId':_0x3f146a,'drawings':[{'unitId':_0x3f146a,'subUnitId':_0x1092bd,'drawingId':_0x1e47a4,'drawingType':_0x11c01f}]},'disable':!0x1},{'label':_0x3d7465(0x337),'index':0x3,'commandId':_0x20d0ce['id'],'commandParams':{'unitId':_0x3f146a,'subUnitId':_0x1092bd,'shapeId':_0x1e47a4,'flipH':!0x0},'disable':!0x1},{'label':_0x3d7465(0x4b4),'index':0x4,'commandId':_0x20d0ce['id'],'commandParams':{'unitId':_0x3f146a,'subUnitId':_0x1092bd,'shapeId':_0x1e47a4,'flipV':!0x0},'disable':!0x1}];},_0xb637a8(0x3eb));}['_popupMenuListener'](_0x418b14){const _0x21cdac=_0x356faf;let _0x488fac=new _0x9e178c(),_0x37de2a=null,_0x37a6c7=()=>{const _0x5dd073=_0x4380;if(!_0x37de2a)return;let _0x5cf4da=this[_0x5dd073(0x444)][_0x5dd073(0x48d)](),_0x16d2d5=_0x5cf4da[_0x5dd073(0x468)]===0x0||_0x5cf4da[_0x5dd073(0x468)]===0x1&&_0x5cf4da[_0x5dd073(0x31b)](_0x20b227=>_0x20b227[_0x5dd073(0x358)]===(_0x37de2a==null?void 0x0:_0x37de2a[_0x5dd073(0x358)])&&_0x20b227[_0x5dd073(0x220)]===(_0x37de2a==null?void 0x0:_0x37de2a[_0x5dd073(0x220)])&&_0x20b227['drawingId']===(_0x37de2a==null?void 0x0:_0x37de2a[_0x5dd073(0x3cb)]));_0x37de2a=null,_0x16d2d5&&(this['_contextService'][_0x5dd073(0x39f)](_0x5ebd8a,!0x1),this[_0x5dd073(0x444)][_0x5dd073(0x284)](null));};return _0x488fac['add'](_0x418b14['createControl$'][_0x21cdac(0x2bd)](()=>{const _0xbdbefb=_0x21cdac;let _0x53ecdd=_0x418b14[_0xbdbefb(0x2d2)]();if(_0x53ecdd[_0xbdbefb(0x2de)]>0x1){_0x37a6c7();return;}let _0x29b6cc=_0x53ecdd[_0xbdbefb(0x243)]()[_0xbdbefb(0x2a2)]()[_0xbdbefb(0x45e)];if(!_0x29b6cc){_0x37a6c7();return;}let _0x3be0d6=this[_0xbdbefb(0x444)][_0xbdbefb(0x212)](_0x29b6cc[_0xbdbefb(0x221)]);if(!_0x3be0d6||_0x3be0d6[_0xbdbefb(0x30d)]!==_0x3bf95f['DRAWING_SHAPE']){_0x37a6c7();return;}let {unitId:_0x13aa34,subUnitId:_0x1bd4ed,drawingId:_0x3b5cc9}=_0x3be0d6;_0x37de2a={'unitId':_0x13aa34,'subUnitId':_0x1bd4ed,'drawingId':_0x3b5cc9},this[_0xbdbefb(0x3bf)][_0xbdbefb(0x39f)](_0x5ebd8a,!0x0),this[_0xbdbefb(0x444)][_0xbdbefb(0x48d)]()[_0xbdbefb(0x4b6)](_0x45c04a=>_0x45c04a['unitId']===_0x13aa34&&_0x45c04a['subUnitId']===_0x1bd4ed&&_0x45c04a[_0xbdbefb(0x3cb)]===_0x3b5cc9)||this[_0xbdbefb(0x444)][_0xbdbefb(0x284)]([{'unitId':_0x13aa34,'subUnitId':_0x1bd4ed,'drawingId':_0x3b5cc9}]);})),_0x488fac[_0x21cdac(0x460)](_0x418b14['clearControl$'][_0x21cdac(0x2bd)](()=>{_0x37a6c7();})),_0x5381db(()=>{const _0x48bf00=_0x21cdac;_0x488fac[_0x48bf00(0x40a)](),_0x37a6c7();});}[_0x356faf(0x256)](){const _0x36cbe6=_0x356faf;this[_0x36cbe6(0x3bf)][_0x36cbe6(0x39f)](_0x5ebd8a,!0x1),this[_0x36cbe6(0x444)][_0x36cbe6(0x284)](null);}};Sa=X([Y(0x0,_0x4d1e99),Y(0x1,_0x2132cf(_0x19e574)),Y(0x2,_0x44c672),Y(0x3,_0x5f48da),Y(0x4,_0x2132cf(_0x21e7cb)),Y(0x5,_0x5625c0),Y(0x6,_0xfb1542),Y(0x7,_0x2132cf($))],Sa);function Ca(_0x3c9082,_0x586c8c,_0x270d00,_0x36eb4e){const _0x3a9d22=_0x356faf;let _0x59f20e=_0x5ebfee(_0x3c9082,_0x586c8c,_0x270d00),_0x2662dd=[];for(let _0x183e72 of _0x586c8c){let _0x1f1f6f=_0x59f20e['idMap'][_0x3a9d22(0x230)](_0x183e72[_0x3a9d22(0x3cb)]),_0x39d6a9=_0x36eb4e(_0x183e72);_0x1f1f6f&&_0x39d6a9&&_0x2662dd[_0x3a9d22(0x1e9)]({'targetShapeId':_0x1f1f6f,'source':_0x39d6a9});}return _0x2662dd;}let wa=class extends _0x1717dd{constructor(_0x2d3876,_0x141209,_0x397167,_0x11a3e4){const _0x3f37e0=_0x356faf;super(),this[_0x3f37e0(0x4cc)]=_0x2d3876,this[_0x3f37e0(0x239)]=_0x141209,this[_0x3f37e0(0x3e6)]=_0x397167,this[_0x3f37e0(0x494)]=_0x11a3e4,this[_0x3f37e0(0x3d7)]();}[_0x356faf(0x3d7)](){const _0x3598bc=_0x356faf;this[_0x3598bc(0x45d)](this['_sheetInterceptorService'][_0x3598bc(0x440)]({'getMutations':_0x280901=>{const _0x42014b=_0x3598bc;if(_0x280901['id']===_0x1fa762['id']){let _0x3f6603=_0x4d4744(this[_0x42014b(0x4cc)],_0x280901[_0x42014b(0x285)]);if(!_0x3f6603)return{'redos':[],'undos':[]};let {unitId:_0x1b5e3a,subUnitId:_0x25f1e3}=_0x3f6603,_0x25a5fa=this[_0x42014b(0x3e6)][_0x42014b(0x3fd)](_0x1b5e3a,_0x25f1e3),_0x136279=Object['values'](_0x25a5fa)['filter'](_0x6cdf8f=>_0x6cdf8f['drawingType']===_0x3bf95f[_0x42014b(0x24a)]);if(_0x136279[_0x42014b(0x468)]===0x0)return{'redos':[],'undos':[]};let _0x5489b1=[],_0x579173=[];for(let _0x5b22ad=0x0;_0x5b22ad<_0x136279[_0x42014b(0x468)];_0x5b22ad++){let _0x283830=_0x136279[_0x5b22ad],_0xcac8d7=this[_0x42014b(0x494)][_0x42014b(0x314)](_0x283830['unitId'],_0x283830[_0x42014b(0x220)],_0x283830[_0x42014b(0x3cb)]);_0xcac8d7&&(_0x5489b1[_0x42014b(0x1e9)]({'id':_0x5a76a2['id'],'params':{'unitId':_0x1b5e3a,'subUnitId':_0x25f1e3,'shapeId':_0x283830[_0x42014b(0x3cb)]}}),_0x579173[_0x42014b(0x1e9)]({'id':_0x36b683['id'],'params':{'unitId':_0x1b5e3a,'subUnitId':_0x25f1e3,'shapeId':_0x283830[_0x42014b(0x3cb)],'shapeType':_0xcac8d7[_0x42014b(0x3cc)](),'shapeData':JSON[_0x42014b(0x300)](JSON[_0x42014b(0x2cd)](_0xcac8d7[_0x42014b(0x32a)]()))}}));}return{'redos':_0x5489b1,'undos':_0x579173};}if(_0x280901['id']===_0xcbb4a0['id']){let {unitId:_0x12c433,subUnitId:_0x1af7fd,targetSubUnitId:_0xe18a83,copyContext:_0x4e85e0}=_0x280901['params'];if(!_0x12c433||!_0x1af7fd||!_0xe18a83)return{'redos':[],'undos':[]};let _0x36a119=this[_0x42014b(0x3e6)][_0x42014b(0x3fd)](_0x12c433,_0x1af7fd),_0x228946=Object[_0x42014b(0x243)](_0x36a119)['filter'](_0x3aa259=>_0x3aa259[_0x42014b(0x30d)]===_0x3bf95f[_0x42014b(0x24a)]);if(_0x228946[_0x42014b(0x468)]===0x0)return{'redos':[],'undos':[]};let _0x18c793=Ca(_0x4e85e0,_0x228946,{'unitId':_0x12c433,'sourceSubUnitId':_0x1af7fd,'targetSubUnitId':_0xe18a83},_0x381657=>{const _0x1f1fb8=_0x42014b;let _0x573474=this['_sheetsShapeService'][_0x1f1fb8(0x314)](_0x381657['unitId'],_0x381657[_0x1f1fb8(0x220)],_0x381657[_0x1f1fb8(0x3cb)]);if(_0x573474)return{'shapeType':_0x573474['getShapeType'](),'shapeData':JSON[_0x1f1fb8(0x300)](JSON[_0x1f1fb8(0x2cd)](_0x573474[_0x1f1fb8(0x32a)]()))};}),_0x35b7cf=[],_0x494d76=[];for(let {targetShapeId:_0x3666cf,source:_0x48a0ef}of _0x18c793)_0x35b7cf[_0x42014b(0x1e9)]({'id':_0x36b683['id'],'params':{'unitId':_0x12c433,'subUnitId':_0xe18a83,'shapeId':_0x3666cf,'shapeType':_0x48a0ef[_0x42014b(0x291)],'shapeData':_0x48a0ef[_0x42014b(0x2b5)]}}),_0x494d76['push']({'id':_0x5a76a2['id'],'params':{'unitId':_0x12c433,'subUnitId':_0xe18a83,'shapeId':_0x3666cf}});return{'redos':_0x35b7cf,'undos':_0x494d76};}return{'redos':[],'undos':[]};}}));}};wa=X([Y(0x0,_0x2132cf(_0x6cef99)),Y(0x1,_0x2132cf(_0x420646)),Y(0x2,_0x2132cf(_0x2a26b5)),Y(0x3,_0x2132cf(_0x19e574))],wa);let Ta=class extends _0x1717dd{constructor(_0x5dfcc8,_0x10dff3,_0x24653e,_0x16f0bd,_0x2c7f66,_0xa6e505){const _0x1c6ad5=_0x356faf;super(),this[_0x1c6ad5(0x44f)]=_0x5dfcc8,this[_0x1c6ad5(0x251)]=_0x10dff3,this['_drawingManagerService']=_0x24653e,this[_0x1c6ad5(0x34b)]=_0x16f0bd,this[_0x1c6ad5(0x450)]=_0x2c7f66,this[_0x1c6ad5(0x404)]=_0xa6e505,q(this,_0x1c6ad5(0x258),new Set()),this[_0x1c6ad5(0x26e)]();}[_0x356faf(0x26e)](){const _0xc7595e=_0x356faf;this[_0xc7595e(0x2bc)](),this['_commandExecutedListener'](),this[_0xc7595e(0x393)]();}[_0x356faf(0x2bc)](){const _0x112b04=_0x356faf;this[_0x112b04(0x45d)](this[_0x112b04(0x444)]['add$'][_0x112b04(0x2bd)](_0xe8b09f=>{const _0xd06ee2=_0x112b04;this[_0xd06ee2(0x338)](_0xe8b09f);}));}['_commandExecutedListener'](){const _0x238dec=_0x356faf;this[_0x238dec(0x45d)](this[_0x238dec(0x44f)][_0x238dec(0x311)]((_0x444742,_0x4431f4)=>{const _0x31d2be=_0x238dec;if(_0x444742['id']===_0x49a64c['id']){let {unitId:_0x139f66,subUnitId:_0x37d62c,shapeId:_0x20e129}=_0x444742[_0x31d2be(0x285)],_0x1ce2e6=this['_getSceneAndTransformerByDrawingSearch'](_0x139f66),_0x1064e7=_0x4e19f9({'unitId':_0x139f66,'subUnitId':_0x37d62c,'drawingId':_0x20e129}),_0x382f27=_0x1ce2e6==null?void 0x0:_0x1ce2e6[_0x31d2be(0x364)]['getObjectIncludeInGroup'](_0x1064e7);_0x382f27&&(this[_0x31d2be(0x404)][_0x31d2be(0x2fa)](_0x382f27),this[_0x31d2be(0x404)][_0x31d2be(0x326)](_0x382f27,{'unitId':_0x139f66,'subUnitId':_0x37d62c,'shapeId':_0x20e129}),_0x382f27[_0x31d2be(0x248)](!0x0));}else{if(_0x444742['id']===_0x36b683['id']){var _0x26805e;let {unitId:_0x169e25,subUnitId:_0xd98e74,shapeId:_0x490e00}=_0x444742[_0x31d2be(0x285)],_0x1e547f=this[_0x31d2be(0x439)](_0x169e25);if(_0x1e547f==null)return;let {scene:_0x1a4138}=_0x1e547f,_0x27a6e6=_0x4e19f9({'unitId':_0x169e25,'subUnitId':_0xd98e74,'drawingId':_0x490e00}),_0x58ce8a=_0x1a4138[_0x31d2be(0x348)](_0x27a6e6);if(!((_0x26805e=this[_0x31d2be(0x251)][_0x31d2be(0x3ee)](_0x169e25))!=null&&_0x26805e[_0x31d2be(0x335)](_0x1f2fa0)[_0x31d2be(0x434)](_0xd98e74)))return!0x1;if(_0x58ce8a)return;if(_0x4431f4!=null&&_0x4431f4[_0x31d2be(0x305)]){queueMicrotask(()=>{const _0x393fab=_0x31d2be;this[_0x393fab(0x2ab)]||this[_0x393fab(0x338)]([{'unitId':_0x169e25,'subUnitId':_0xd98e74,'drawingId':_0x490e00}]);});return;}this['_insertShapes']([{'unitId':_0x169e25,'subUnitId':_0xd98e74,'drawingId':_0x490e00}]);}}}));}[_0x356faf(0x393)](){const _0x42cf5f=_0x356faf;this[_0x42cf5f(0x45d)](this['_drawingManagerService'][_0x42cf5f(0x4ae)]['subscribe'](_0x43bc46=>{const _0xff5987=_0x42cf5f;_0x43bc46[_0xff5987(0x35e)](_0x57e923=>{const _0x51a8d9=_0xff5987;let {unitId:_0x304a5d,subUnitId:_0x155023,drawingId:_0x44c9ed}=_0x57e923,_0x57164f=this[_0x51a8d9(0x444)]['getDrawingByParam'](_0x57e923);if(_0x57164f==null)return;let {transform:_0x10508d,drawingType:_0x2ad52f,srcRect:_0x2436ee,prstGeom:_0x1c4881}=_0x57164f;if(_0x2ad52f!==_0x3bf95f['DRAWING_SHAPE'])return;let _0x41eb2f=this[_0x51a8d9(0x439)](_0x304a5d);if(_0x41eb2f==null)return;let {scene:_0x2dc992,transformer:_0x2b75d8}=_0x41eb2f;if(_0x10508d==null)return!0x0;let _0x456748=_0x4e19f9({'unitId':_0x304a5d,'subUnitId':_0x155023,'drawingId':_0x44c9ed}),_0x2f803b=_0x2dc992[_0x51a8d9(0x348)](_0x456748);if(_0x2f803b==null)return!0x0;_0x2f803b['setSrcRect'](_0x2436ee),_0x2f803b[_0x51a8d9(0x455)](_0x1c4881);});}));}[_0x356faf(0x338)](_0x45cade){const _0x41a6a6=_0x356faf;for(let _0x47455d of _0x45cade){var _0x5bf31b;let {unitId:_0x5a124f,subUnitId:_0x37f4ea,drawingId:_0x422d04}=_0x47455d,_0x355daf=this[_0x41a6a6(0x439)](_0x5a124f),_0x370e14=(_0x5bf31b=_0x1fb999(this[_0x41a6a6(0x34b)],_0x5a124f))==null?void 0x0:_0x5bf31b[_0x41a6a6(0x220)];if(_0x355daf==null||_0x370e14!==_0x37f4ea)continue;let _0x173521=_0x4e19f9({'unitId':_0x5a124f,'subUnitId':_0x37f4ea,'drawingId':_0x422d04});if(this['_insertingShapeKeys'][_0x41a6a6(0x4aa)](_0x173521)||_0x355daf[_0x41a6a6(0x364)][_0x41a6a6(0x348)](_0x173521)!=null)continue;let _0x2e0ffc=this[_0x41a6a6(0x444)][_0x41a6a6(0x3fb)](_0x47455d);if(_0x2e0ffc==null||_0x2e0ffc['drawingType']!==_0x3bf95f[_0x41a6a6(0x24a)])continue;let _0x45c3a0=_0x2e0ffc[_0x41a6a6(0x23d)]||{};if(_0x1a599b(_0x45c3a0[_0x41a6a6(0x291)])){let _0x92f2bf=_0x2e0ffc[_0x41a6a6(0x478)];_0x92f2bf&&(_0x2e0ffc[_0x41a6a6(0x478)]={..._0x92f2bf,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x41a6a6(0x258)][_0x41a6a6(0x460)](_0x173521);try{this[_0x41a6a6(0x404)][_0x41a6a6(0x28e)](_0x2e0ffc,_0x355daf[_0x41a6a6(0x364)]);}finally{this['_insertingShapeKeys']['delete'](_0x173521);}queueMicrotask(()=>{const _0x2cb29a=_0x41a6a6;if(this[_0x2cb29a(0x2ab)])return;let _0x30ddeb=_0x4e19f9(_0x47455d);if(!_0x355daf[_0x2cb29a(0x364)][_0x2cb29a(0x348)](_0x30ddeb))return;let _0x524adf=this[_0x2cb29a(0x444)][_0x2cb29a(0x3fb)](_0x47455d);_0x524adf&&this[_0x2cb29a(0x444)][_0x2cb29a(0x40e)]([_0x524adf]);});}}[_0x356faf(0x439)](_0x241568){const _0x384982=_0x356faf;if(_0x241568==null)return;let _0x5336a9=this['_renderManagerService'][_0x384982(0x3ee)](_0x241568),_0x5e1c79=_0x5336a9==null?void 0x0:_0x5336a9[_0x384982(0x364)];return _0x5e1c79==null?null:{'scene':_0x5e1c79,'transformer':_0x5e1c79[_0x384982(0x2cc)]()};}};Ta=X([Y(0x0,_0x44c672),Y(0x1,_0xfb1542),Y(0x2,_0x5f48da),Y(0x3,_0x6cef99),Y(0x4,_0x2132cf(_0x406898)),Y(0x5,_0x2132cf(Z))],Ta);const Ea={'normal':{'fill':_0x3c938b['cxnPointFill'],'stroke':_0x3c938b['cxnPointStroke'],'strokeWidth':_0x3c938b[_0x356faf(0x44b)]},'highlighted':{'fill':_0x356faf(0x411),'stroke':_0x356faf(0x26b),'strokeWidth':0x2}};var Da=class extends _0x28b88a{constructor(_0x5d1521,_0xa36ae5){const _0x2da1ff=_0x356faf;super(_0x5d1521,_0xa36ae5),q(this,_0x2da1ff(0x371),''),q(this,_0x2da1ff(0x2bb),-0x1),q(this,_0x2da1ff(0x46a),''),q(this,'_subUnitId',''),q(this,_0x2da1ff(0x26c),!0x1),_0xa36ae5&&this[_0x2da1ff(0x3b3)](_0xa36ae5);}[_0x356faf(0x4c3)](){const _0x30ad83=_0x356faf;return{'unitId':this[_0x30ad83(0x46a)],'subUnitId':this[_0x30ad83(0x458)],'shapeId':this[_0x30ad83(0x371)],'cxnIndex':this[_0x30ad83(0x2bb)]};}[_0x356faf(0x447)](_0xfb167d){const _0x5b6145=_0x356faf;this[_0x5b6145(0x26c)]!==_0xfb167d&&(this[_0x5b6145(0x26c)]=_0xfb167d,this[_0x5b6145(0x248)](!0x0));}['isHighlighted'](){const _0x354ea8=_0x356faf;return this[_0x354ea8(0x26c)];}['setShapeProps'](_0x2edae5){const _0x51b308=_0x356faf;_0x2edae5['targetShapeId']!==void 0x0&&(this[_0x51b308(0x371)]=_0x2edae5['targetShapeId']),_0x2edae5[_0x51b308(0x461)]!==void 0x0&&(this[_0x51b308(0x2bb)]=_0x2edae5[_0x51b308(0x461)]),_0x2edae5['unitId']!==void 0x0&&(this[_0x51b308(0x46a)]=_0x2edae5[_0x51b308(0x358)]),_0x2edae5['subUnitId']!==void 0x0&&(this[_0x51b308(0x458)]=_0x2edae5['subUnitId']),_0x2edae5[_0x51b308(0x241)]!==void 0x0&&(this[_0x51b308(0x26c)]=_0x2edae5['isHighlighted']),this[_0x51b308(0x3e5)]({'width':_0x2edae5[_0x51b308(0x4b1)]??_0x3c938b[_0x51b308(0x217)]*0x2,'height':_0x2edae5[_0x51b308(0x4c4)]??_0x3c938b[_0x51b308(0x217)]*0x2});}[_0x356faf(0x3a7)](_0x3036fe){const _0x24dc7c=_0x356faf;let _0x4a2f71=this[_0x24dc7c(0x26c)]?Ea['highlighted']:Ea[_0x24dc7c(0x223)];_0x444dbb[_0x24dc7c(0x492)](_0x3036fe,{'radius':_0x3c938b[_0x24dc7c(0x217)],'fill':_0x4a2f71[_0x24dc7c(0x2f7)],'stroke':_0x4a2f71[_0x24dc7c(0x260)],'strokeWidth':_0x4a2f71[_0x24dc7c(0x2cf)],'evented':!0x0});}};let Oa=class extends _0x1717dd{constructor(_0x37f616,_0x57ea60,_0x4c911f,_0x491b2d){const _0x2e4baf=_0x356faf;super(),this['_context']=_0x37f616,this[_0x2e4baf(0x251)]=_0x57ea60,this['_drawingManagerService']=_0x4c911f,this['_sheetsShapeService']=_0x491b2d,q(this,'_connectionSiteObjects',[]),q(this,'_activeTargetShapeId',null),q(this,_0x2e4baf(0x330),-0x1),q(this,_0x2e4baf(0x35a),null),q(this,_0x2e4baf(0x46a),''),q(this,_0x2e4baf(0x458),''),q(this,_0x2e4baf(0x228),null);}['startConnectionDetection'](_0x4ffc09,_0x2fb0bb,_0x3a1180,_0x234ea7){this['_currentScene']=_0x4ffc09,this['_unitId']=_0x2fb0bb,this['_subUnitId']=_0x3a1180,this['_draggingConnectorId']=_0x234ea7;}[_0x356faf(0x4b0)](_0x4af724){const _0x27d715=_0x356faf;if(!this[_0x27d715(0x35a)])return null;let _0x3139cf=this[_0x27d715(0x3c5)](_0x4af724);return _0x3139cf?(this['_activeTargetShapeId']!==_0x3139cf[_0x27d715(0x3fe)]&&(this['_clearConnectionSites'](),this[_0x27d715(0x432)](_0x3139cf[_0x27d715(0x3fe)],_0x3139cf[_0x27d715(0x42f)]),this['_activeTargetShapeId']=_0x3139cf[_0x27d715(0x3fe)]),this['_findNearestConnectionSite'](_0x4af724)):(this[_0x27d715(0x3a6)]!==null&&(this[_0x27d715(0x208)](),this['_activeTargetShapeId']=null),null);}[_0x356faf(0x214)](){const _0x5dfee7=_0x356faf;this[_0x5dfee7(0x208)](),this[_0x5dfee7(0x35a)]=null,this[_0x5dfee7(0x3a6)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x5dfee7(0x228)]=null;}[_0x356faf(0x389)](){const _0xac3d62=_0x356faf;return this['_activeTargetShapeId']===null||this[_0xac3d62(0x330)]<0x0?null:{'shapeId':this[_0xac3d62(0x3a6)],'cxnIndex':this[_0xac3d62(0x330)]};}[_0x356faf(0x3c5)](_0x596ea1){const _0x4e5a3e=_0x356faf;let _0xfb779f=this['_drawingManagerService'][_0x4e5a3e(0x3fd)](this['_unitId'],this[_0x4e5a3e(0x458)]);for(let _0x57d962 of Object['keys'](_0xfb779f)){if(_0x57d962===this['_draggingConnectorId']||_0xfb779f[_0x57d962][_0x4e5a3e(0x30d)]!==_0x3bf95f[_0x4e5a3e(0x24a)])continue;let _0x4dfa59=this['_sheetsShapeService'][_0x4e5a3e(0x314)](this[_0x4e5a3e(0x46a)],this[_0x4e5a3e(0x458)],_0x57d962);if(!_0x4dfa59||_0x1a599b(_0x4dfa59[_0x4e5a3e(0x3cc)]())||_0x4dfa59[_0x4e5a3e(0x2b1)]()[_0x4e5a3e(0x468)]===0x0||!this[_0x4e5a3e(0x35a)])continue;let _0x295bc7=_0x4e19f9({'unitId':this[_0x4e5a3e(0x46a)],'subUnitId':this[_0x4e5a3e(0x458)],'drawingId':_0x57d962}),_0x554dac=this[_0x4e5a3e(0x35a)]['getObjectIncludeInGroup'](_0x295bc7);if(!_0x554dac)continue;let {left:_0x262eb9,top:_0x403d03,width:_0x505844,height:_0x86b9e9}=_0x554dac[_0x4e5a3e(0x43e)](),_0x255e6e=_0x262eb9+_0x505844/0x2,_0x90875d=_0x403d03+_0x86b9e9/0x2,_0x292ff3=_0x554dac[_0x4e5a3e(0x478)][_0x4e5a3e(0x365)](),_0x196701=new _0x2fa44a([_0x292ff3[0x0],_0x292ff3[0x1],_0x292ff3[0x2],_0x292ff3[0x3],_0x255e6e,_0x90875d]),_0x410b90=_0x554dac[_0x4e5a3e(0x255)](),_0x426fc6=(_0x554dac[_0x4e5a3e(0x2e0)]&&(_0x410b90==null?void 0x0:_0x410b90[_0x4e5a3e(0x3cd)])===_0x105e76[_0x4e5a3e(0x313)]?_0x410b90[_0x4e5a3e(0x3dc)][_0x4e5a3e(0x282)](_0x196701):_0x196701)[_0x4e5a3e(0x1fe)]()[_0x4e5a3e(0x409)](_0x596ea1),_0x970c07=_0x505844/0x2,_0x5983d9=_0x86b9e9/0x2;if(_0x426fc6['x']>=-_0x970c07-0x5&&_0x426fc6['x']<=_0x970c07+0x5&&_0x426fc6['y']>=-_0x5983d9-0x5&&_0x426fc6['y']<=_0x5983d9+0x5)return{'shapeId':_0x57d962,'shapeModel':_0x4dfa59};}return null;}[_0x356faf(0x432)](_0x3b78d8,_0x169e77){const _0x5dfc97=_0x356faf;if(!this[_0x5dfc97(0x35a)])return;let _0x4729f6=_0x4e19f9({'unitId':this[_0x5dfc97(0x46a)],'subUnitId':this[_0x5dfc97(0x458)],'drawingId':_0x3b78d8}),_0x14f364=this[_0x5dfc97(0x35a)][_0x5dfc97(0x348)](_0x4729f6);if(!_0x14f364)return;let {left:_0x16c1d5,top:_0x1cb798,width:_0x139fe6,height:_0x1ef232}=_0x14f364[_0x5dfc97(0x43e)](),_0x16deba=_0x16c1d5+_0x139fe6/0x2,_0x10f7d3=_0x1cb798+_0x1ef232/0x2,_0x140a39=_0x14f364[_0x5dfc97(0x478)][_0x5dfc97(0x365)](),_0x39c7aa=new _0x2fa44a([_0x140a39[0x0],_0x140a39[0x1],_0x140a39[0x2],_0x140a39[0x3],_0x16deba,_0x10f7d3]),_0x5c53b2=_0x14f364[_0x5dfc97(0x255)](),_0x48412a=_0x14f364[_0x5dfc97(0x2e0)]&&(_0x5c53b2==null?void 0x0:_0x5c53b2[_0x5dfc97(0x3cd)])===_0x105e76['GROUP']?_0x5c53b2[_0x5dfc97(0x3dc)]['multiply'](_0x39c7aa):_0x39c7aa;_0x169e77[_0x5dfc97(0x240)]({'width':_0x139fe6,'height':_0x1ef232});let _0xa74b9c=_0x169e77['getConnectionSiteList']();for(let _0x4b11f8 of _0xa74b9c){let _0x4cf448=_0x4b11f8['x']-_0x139fe6/0x2,_0x3663af=_0x4b11f8['y']-_0x1ef232/0x2,_0x4026c1=_0x48412a[_0x5dfc97(0x409)]({'x':_0x4cf448,'y':_0x3663af}),_0x37c43=_0x4026c1['x'],_0xad9061=_0x4026c1['y'],_0x448516=new Da(_0x5dfc97(0x232)+_0x3b78d8+'-'+_0x4b11f8[_0x5dfc97(0x41f)],{'left':_0x37c43-_0x3c938b[_0x5dfc97(0x217)],'top':_0xad9061-_0x3c938b[_0x5dfc97(0x217)],'targetShapeId':_0x3b78d8,'cxnIndex':_0x4b11f8['index'],'unitId':this[_0x5dfc97(0x46a)],'subUnitId':this[_0x5dfc97(0x458)],'width':_0x3c938b[_0x5dfc97(0x217)]*0x2,'height':_0x3c938b[_0x5dfc97(0x217)]*0x2,'zIndex':_0x604e6e+0x2,'evented':!0x1});this[_0x5dfc97(0x268)][_0x5dfc97(0x1e9)](_0x448516),this[_0x5dfc97(0x35a)][_0x5dfc97(0x46f)](_0x448516,_0x604e6e+0x2);}}[_0x356faf(0x3c3)](_0x2e765b){const _0x5b563e=_0x356faf;let _0x1b91d4=null,_0x310a52=0x1/0x0,_0x101a8c=null;for(let _0x5b37f9 of this['_connectionSiteObjects']){let _0x3c7c13=_0x5b37f9[_0x5b563e(0x233)]+_0x3c938b[_0x5b563e(0x217)],_0x28669d=_0x5b37f9['top']+_0x3c938b['cxnPointRadius'],_0x331a7e=_0x2e765b['x']-_0x3c7c13,_0x2a2597=_0x2e765b['y']-_0x28669d,_0x43e146=Math[_0x5b563e(0x2a1)](_0x331a7e*_0x331a7e+_0x2a2597*_0x2a2597);_0x43e146<_0x310a52&&(_0x310a52=_0x43e146,_0x1b91d4=_0x5b37f9,_0x101a8c={'x':_0x3c7c13,'y':_0x28669d});}let _0x21265e=_0x310a52<=0xa&&_0x1b91d4?_0x1b91d4[_0x5b563e(0x4c3)]()[_0x5b563e(0x461)]:-0x1;if(_0x21265e!==this[_0x5b563e(0x330)]){for(let _0x22a440 of this[_0x5b563e(0x268)]){let _0x532a26=_0x22a440[_0x5b563e(0x4c3)]();_0x22a440[_0x5b563e(0x447)](_0x532a26[_0x5b563e(0x461)]===_0x21265e);}this['_highlightedSiteIndex']=_0x21265e;}if(_0x310a52<=0xa&&_0x1b91d4&&_0x101a8c){let _0x35ebf4=_0x1b91d4[_0x5b563e(0x4c3)](),_0x4a5581=this[_0x5b563e(0x3d1)](_0x35ebf4[_0x5b563e(0x3fe)],_0x35ebf4[_0x5b563e(0x461)]);return{'shapeId':_0x35ebf4[_0x5b563e(0x3fe)],'cxnIndex':_0x35ebf4[_0x5b563e(0x461)],'unitId':_0x35ebf4[_0x5b563e(0x358)],'subUnitId':_0x35ebf4[_0x5b563e(0x220)],'worldPoint':_0x101a8c,'angle':_0x4a5581};}return null;}['_getConnectionSiteAngle'](_0x2aec1c,_0x3b3732){const _0x47c4af=_0x356faf;let _0x5b981d=this[_0x47c4af(0x494)]['getShapeModel'](this[_0x47c4af(0x46a)],this[_0x47c4af(0x458)],_0x2aec1c);if(!_0x5b981d)return 0x0;let _0x18c16c=this['_drawingManagerService'][_0x47c4af(0x3fb)]({'unitId':this[_0x47c4af(0x46a)],'subUnitId':this[_0x47c4af(0x458)],'drawingId':_0x2aec1c});if(!(_0x18c16c!=null&&_0x18c16c[_0x47c4af(0x478)]))return 0x0;let {width:_0x45647c=0x0,height:_0x1cf29d=0x0,flipX:_0x4e97c5=!0x1,flipY:_0x20a023=!0x1}=_0x18c16c[_0x47c4af(0x478)];_0x5b981d[_0x47c4af(0x240)]({'width':_0x45647c,'height':_0x1cf29d});let _0x1b0586=_0x5b981d[_0x47c4af(0x2b1)]()[_0x47c4af(0x4b6)](_0x5eba0b=>_0x5eba0b['index']===_0x3b3732);if(!_0x1b0586)return 0x0;let _0xc8e1e0=_0x1b0586[_0x47c4af(0x2e5)]/0xea60;return _0x4e97c5&&(_0xc8e1e0=0xb4-_0xc8e1e0),_0x20a023&&(_0xc8e1e0=-_0xc8e1e0),_0xc8e1e0=(_0xc8e1e0%0x168+0x168)%0x168,_0xc8e1e0;}[_0x356faf(0x208)](){const _0x3e3883=_0x356faf;for(let _0x3e0e68 of this[_0x3e3883(0x268)])_0x3e0e68[_0x3e3883(0x40a)]();this[_0x3e3883(0x268)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x356faf(0x40a)](){const _0x53ad5e=_0x356faf;this['_clearConnectionSites'](),super[_0x53ad5e(0x40a)]();}};Oa=X([Y(0x1,_0x2132cf(_0xfb1542)),Y(0x2,_0x2132cf(_0x5f48da)),Y(0x3,_0x2132cf(_0x19e574))],Oa);let ka=class extends _0x1717dd{constructor(_0xc18ff1,_0x243c93,_0x3d265b,_0x379a04,_0x19fe60,_0x3f5a35,_0x357771,_0x1b3043){const _0x1f311a=_0x356faf;super(),this[_0x1f311a(0x25b)]=_0xc18ff1,this[_0x1f311a(0x235)]=_0x243c93,this[_0x1f311a(0x3e6)]=_0x3d265b,this['_shapeService']=_0x379a04,this['_groupCopyPasteController']=_0x19fe60,this['_instances']=_0x3f5a35,this[_0x1f311a(0x23e)]=_0x357771,this[_0x1f311a(0x28a)]=_0x1b3043,q(this,_0x1f311a(0x24b),void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get[_0x356faf(0x20b)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0x356faf(0x336)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0xe71d27,fromSubUnitId:_0x439a2a,toUnitId:_0x23bf98,toSubUnitId:_0x2fc160,idMap:_0x2da540})=>{const _0x3da39a=_0x4380;let _0x41368f=[],_0x2f8526=[];for(let [_0x291640,_0x1e65ae]of _0x2da540[_0x3da39a(0x28f)]()){let _0x34a35d=this['_shapeService']['getShapeModel'](_0xe71d27,_0x439a2a,_0x291640);if(!_0x34a35d)continue;let _0xa02ee3=_0x34a35d[_0x3da39a(0x3cc)](),_0x6d56ec=JSON['parse'](JSON[_0x3da39a(0x2cd)](_0x34a35d[_0x3da39a(0x32a)]()));if(_0x6d56ec[_0x3da39a(0x1f9)]){var _0x4b8032,_0x40080f;let _0x3c4351=(_0x4b8032=_0x6d56ec[_0x3da39a(0x1f9)][_0x3da39a(0x31f)])==null?void 0x0:_0x4b8032[_0x3da39a(0x3fe)],_0x1b1e5a=(_0x40080f=_0x6d56ec['relation']['to'])==null?void 0x0:_0x40080f[_0x3da39a(0x3fe)],_0x4c4fdd=!_0x3c4351||_0x2da540['has'](_0x3c4351),_0x44558e=!_0x1b1e5a||_0x2da540[_0x3da39a(0x4aa)](_0x1b1e5a);_0x4c4fdd&&_0x3c4351&&_0x6d56ec['relation']['from']?_0x6d56ec[_0x3da39a(0x1f9)][_0x3da39a(0x31f)]={..._0x6d56ec[_0x3da39a(0x1f9)][_0x3da39a(0x31f)],'shapeId':_0x2da540[_0x3da39a(0x230)](_0x3c4351)}:_0x6d56ec['relation']['from']=void 0x0,_0x44558e&&_0x1b1e5a&&_0x6d56ec[_0x3da39a(0x1f9)]['to']?_0x6d56ec[_0x3da39a(0x1f9)]['to']={..._0x6d56ec[_0x3da39a(0x1f9)]['to'],'shapeId':_0x2da540[_0x3da39a(0x230)](_0x1b1e5a)}:_0x6d56ec[_0x3da39a(0x1f9)]['to']=void 0x0;}_0x41368f[_0x3da39a(0x1e9)]({'id':_0x36b683['id'],'params':{'unitId':_0x23bf98,'subUnitId':_0x2fc160,'shapeId':_0x1e65ae,'shapeType':_0xa02ee3,'shapeData':_0x6d56ec}}),_0x2f8526[_0x3da39a(0x1e9)]({'id':_0x5a76a2['id'],'params':{'unitId':_0x23bf98,'subUnitId':_0x2fc160,'shapeId':_0x1e65ae}});}return{'redos':_0x41368f,'undos':_0x2f8526};});}[_0x356faf(0x375)](){const _0x2d4727=_0x356faf;this[_0x2d4727(0x45d)](this[_0x2d4727(0x235)]['addClipboardHook']({'id':_0x2d4727(0x206),'onBeforeCopyFocusedObject':(_0x51f4b7,_0x39aaf8,_0x5d3114)=>{const _0x274d38=_0x2d4727;this['_copyInfo']=null;let _0xe9e36e=this[_0x274d38(0x20b)][_0x274d38(0x227)](_0x21ab67=>_0x21ab67[_0x274d38(0x30d)]===_0x3bf95f['DRAWING_SHAPE']);return _0xe9e36e[_0x274d38(0x468)]!==0x0&&(this['_copyInfo']={'unitId':_0x51f4b7,'subUnitId':_0x39aaf8,'copyType':_0x5d3114,'drawings':_0xe9e36e},!0x0);},'onBeforeCopy':(_0x48a92a,_0xb9eed1,_0x5dc4e7,_0x6b5023)=>{const _0x21a706=_0x2d4727;this[_0x21a706(0x24b)]=null,this[_0x21a706(0x36b)](_0x48a92a,_0xb9eed1,_0x5dc4e7,_0x6b5023);},'onPasteCells':(_0xc0acb0,_0x1d6409,_0x53e90c,_0x4deb76)=>{const _0x5e8330=_0x2d4727;if(!_0x4deb76[_0x5e8330(0x2ae)]||!_0xc0acb0||!this[_0x5e8330(0x24b)])return{'redos':[],'undos':[]};let {pasteType:_0x1c1ef5}=_0x4deb76;return _0x1c1ef5===_0xcbb90d[_0x5e8330(0x403)]?this[_0x5e8330(0x2a3)](_0x1d6409,this[_0x5e8330(0x24b)][_0x5e8330(0x2ec)]===_0x2b8128['CUT']):{'redos':[],'undos':[]};}}));}[_0x356faf(0x36b)](_0x27b702,_0x4aa50c,_0x86bd98,_0xf470c9){const _0x1f7324=_0x356faf;let _0x55255f=this['_sheetSkeletonService'][_0x1f7324(0x434)](_0x27b702,_0x4aa50c);if(!_0x55255f)return;let _0x2e753b=_0x439cda(_0x55255f,_0x86bd98);if(!_0x2e753b)return;let {startX:_0x9b36a9,endX:_0x5eb102,startY:_0x2fbe51,endY:_0x5af52d}=_0x2e753b,_0x588d3f=this['_sheetDrawingService'][_0x1f7324(0x3fd)](_0x27b702,_0x4aa50c),_0x366e37=[];for(let [_0xc1f815,_0x4e02c2]of Object[_0x1f7324(0x28f)](_0x588d3f)){if(_0x4e02c2[_0x1f7324(0x30d)]!==_0x3bf95f['DRAWING_SHAPE'])continue;let {transform:_0x57d484}=_0x4e02c2;if(!_0x57d484)continue;let {left:_0x3f9737=0x0,top:_0x3646db=0x0,width:_0x49299c=0x0,height:_0x5da4fc=0x0}=_0x57d484;_0x9b36a9<=_0x3f9737&&_0x5eb102>=_0x3f9737+_0x49299c&&_0x2fbe51<=_0x3646db&&_0x5af52d>=_0x3646db+_0x5da4fc&&_0x366e37[_0x1f7324(0x1e9)](_0x4e02c2);}_0x366e37[_0x1f7324(0x468)]>0x0&&(this[_0x1f7324(0x24b)]={'unitId':_0x27b702,'subUnitId':_0x4aa50c,'copyType':_0xf470c9,'copyRange':_0x86bd98,'drawings':_0x366e37});}[_0x356faf(0x2a3)](_0x1dda4a,_0x2499cc){const _0x1adf14=_0x356faf;var _0x109088,_0x3d92da;let {unitId:_0x387bcb,subUnitId:_0x5e5ce4,range:_0x364ca2}=_0x1dda4a,_0x13cfda=this[_0x1adf14(0x24b)],_0x45e989=(_0x109088=this[_0x1adf14(0x22f)][_0x1adf14(0x413)](_0x13cfda[_0x1adf14(0x358)],_0xdbfe17[_0x1adf14(0x21c)]))==null?void 0x0:_0x109088[_0x1adf14(0x286)](_0x13cfda[_0x1adf14(0x220)]),_0x296db5=(_0x3d92da=this[_0x1adf14(0x22f)][_0x1adf14(0x413)](_0x387bcb,_0xdbfe17[_0x1adf14(0x21c)]))==null?void 0x0:_0x3d92da[_0x1adf14(0x286)](_0x5e5ce4),_0x432500=(_0x45e989==null?void 0x0:_0x45e989[_0x1adf14(0x3f4)]()[_0x1adf14(0x49d)])??_0x45630e[_0x1adf14(0x2c4)],_0xde3f85=(_0x296db5==null?void 0x0:_0x296db5['getConfig']()[_0x1adf14(0x49d)])??_0x45630e[_0x1adf14(0x2c4)];if(_0x432500===_0x45630e[_0x1adf14(0x2f1)]||_0xde3f85===_0x45630e[_0x1adf14(0x2f1)])return this[_0x1adf14(0x341)](_0x1dda4a,_0x2499cc);let _0x2d9f1e=this[_0x1adf14(0x25b)][_0x1adf14(0x434)](_0x387bcb,_0x5e5ce4);if(!_0x2d9f1e)return{'redos':[],'undos':[]};let _0x363fbf=_0x38c788(_0x364ca2),{unitId:_0x243838,subUnitId:_0x3071f1,copyRange:_0x284536,drawings:_0x3c8395}=this['_copyInfo'],_0x47327b=this[_0x1adf14(0x25b)]['getSkeleton'](_0x243838,_0x3071f1);if(!_0x47327b)return{'redos':[],'undos':[]};let _0x470575;if(!_0x284536){let _0x2a3ed0=0x1/0x0,_0x25bcf0=0x1/0x0;for(let _0x29abc9 of _0x3c8395){let {left:_0x582eb8=0x0,top:_0x29e211=0x0}=_0x29abc9['transform']??{};_0x582eb8<_0x2a3ed0&&(_0x2a3ed0=_0x582eb8),_0x29e211<_0x25bcf0&&(_0x25bcf0=_0x29e211);}_0x2a3ed0!==0x1/0x0&&_0x25bcf0!==0x1/0x0&&(_0x470575={'left':_0x2a3ed0,'top':_0x25bcf0});}let _0x28ce1b=new Map();if(!_0x2499cc){for(let _0x585196 of _0x3c8395)_0x28ce1b[_0x1adf14(0x482)](_0x585196['drawingId'],_0x1545ee());}let _0x4d0933=[],_0x5b5e03=[];for(let _0x2a688b of _0x3c8395){let {drawingId:_0x2688f2,transform:_0x2c0761,sheetTransform:_0x1b530e}=_0x2a688b;if(!_0x2c0761||!_0x1b530e)continue;let _0x2f92bc=this[_0x1adf14(0x321)]({'transform':_0x2c0761,'sheetTransform':_0x1b530e},{'skeleton':_0x47327b,'range':_0x284536},{'skeleton':_0x2d9f1e,'range':_0x363fbf},_0x470575);if(_0x2499cc){let {redos:_0x41ae43,undos:_0x5cb719}=this[_0x1adf14(0x264)]({'fromUnitId':_0x243838,'fromSubUnitId':_0x3071f1,'toUnitId':_0x387bcb,'toSubUnitId':_0x5e5ce4,'drawing':_0x2a688b,'newTransforms':_0x2f92bc});_0x4d0933[_0x1adf14(0x1e9)](..._0x41ae43),_0x5b5e03['push'](..._0x5cb719);continue;}let {redos:_0x4eb582,undos:_0x4451b5}=this[_0x1adf14(0x2ad)]({'toUnitId':_0x387bcb,'toSubUnitId':_0x5e5ce4,'drawing':_0x2a688b,'newTransforms':_0x2f92bc,'newDrawingId':_0x28ce1b[_0x1adf14(0x230)](_0x2688f2),'idMap':_0x28ce1b});_0x4d0933['push'](..._0x4eb582),_0x5b5e03['push'](..._0x4451b5);}return{'redos':_0x4d0933,'undos':_0x5b5e03};}['_generateChartSheetCopy'](_0x58a723,_0xa985cc){const _0x4b4830=_0x356faf;var _0x25dc2c;if(_0xa985cc)throw new _0x47006a(_0x573a54['id']);let {unitId:_0x1a0b0d,subUnitId:_0x1eb562}=_0x58a723;if(!this[_0x4b4830(0x28a)][_0x4b4830(0x3be)]({'workbookTypes':[_0x5f38a2],'worksheetTypes':[_0x5a9082]},_0x1a0b0d,_0x1eb562))throw new _0x47006a(_0x573a54['id']);let _0x55ae70=(_0x25dc2c=this[_0x4b4830(0x22f)][_0x4b4830(0x413)](_0x1a0b0d,_0xdbfe17[_0x4b4830(0x21c)]))==null?void 0x0:_0x25dc2c[_0x4b4830(0x286)](_0x1eb562),_0x27dd63=_0x55ae70==null?void 0x0:_0x55ae70[_0x4b4830(0x3f4)](),_0x55c616=(_0x27dd63==null?void 0x0:_0x27dd63[_0x4b4830(0x49d)])??_0x45630e[_0x4b4830(0x2c4)],_0x4f3734=this[_0x4b4830(0x24b)],_0x1c616a=_0x4f3734['drawings'];if(!this['_permissions']['permissionCheckWithoutRange']({'workbookTypes':[_0x5b503b],'worksheetTypes':[_0x1b9338]},_0x4f3734[_0x4b4830(0x358)],_0x4f3734[_0x4b4830(0x220)])||_0x1c616a[_0x4b4830(0x31b)](_0x4b59d8=>_0x4b59d8[_0x4b4830(0x46e)]||!this[_0x4b4830(0x2c2)][_0x4b4830(0x314)](_0x4f3734[_0x4b4830(0x358)],_0x4f3734[_0x4b4830(0x220)],_0x4b59d8['drawingId'])||!_0xf9bfee[_0x4b4830(0x269)](_0x4b59d8,this[_0x4b4830(0x3e6)][_0x4b4830(0x3fb)](_0x4b59d8))))throw new _0x47006a(_0x573a54['id']);let _0x21ba32=null;if(_0x55c616===_0x45630e[_0x4b4830(0x2f1)]){var _0x47946d;let _0x11f805=(_0x47946d=this[_0x4b4830(0x23e)]['getRenderUnitById'](_0x1a0b0d))==null?void 0x0:_0x47946d['components']['get'](_0x2ae40f['CHART_PAGE']);_0x11f805&&(_0x21ba32=_0x4a4ba5(_0x1c616a,{'left':_0x11f805[_0x4b4830(0x233)],'top':_0x11f805[_0x4b4830(0x48c)],'width':_0x11f805[_0x4b4830(0x4b1)],'height':_0x11f805['height']},(_0x27dd63==null?void 0x0:_0x27dd63[_0x4b4830(0x464)])===_0x2539e5['TRUE']));}else{let _0x5468b1=this[_0x4b4830(0x25b)][_0x4b4830(0x434)](_0x1a0b0d,_0x1eb562),_0x178885=_0x5468b1&&_0x439cda(_0x5468b1,_0x38c788(_0x58a723[_0x4b4830(0x27f)]));if(_0x178885&&_0x1c616a['length']){let _0x45119f=Math[_0x4b4830(0x2dd)](..._0x1c616a[_0x4b4830(0x2f9)](_0x50670e=>_0x50670e['transform'][_0x4b4830(0x233)])),_0x596ecf=Math[_0x4b4830(0x2dd)](..._0x1c616a['map'](_0x1d173c=>_0x1d173c[_0x4b4830(0x478)][_0x4b4830(0x48c)]));_0x21ba32=_0x1c616a[_0x4b4830(0x2f9)](_0x5b4c0f=>_0x159bb7(_0x5b4c0f,{'kind':_0xd201ae[_0x4b4830(0x2a0)],'bounds':{'left':_0x178885[_0x4b4830(0x4c7)]+_0x5b4c0f[_0x4b4830(0x478)]['left']-_0x45119f,'top':_0x178885[_0x4b4830(0x41a)]+_0x5b4c0f[_0x4b4830(0x478)][_0x4b4830(0x48c)]-_0x596ecf,'width':_0x5b4c0f[_0x4b4830(0x478)]['width'],'height':_0x5b4c0f[_0x4b4830(0x478)][_0x4b4830(0x4c4)]}},_0x5468b1));}}if(!_0x21ba32)throw new _0x47006a(_0x573a54['id']);let _0x24c617=new Map(_0x1c616a[_0x4b4830(0x2f9)](_0x40d682=>[_0x40d682[_0x4b4830(0x3cb)],_0x1545ee()])),_0xbbcae4=[],_0x441c52=[];for(let [_0x2aa101,_0x1bc0f4]of _0x1c616a[_0x4b4830(0x28f)]()){let _0x593572=_0x21ba32[_0x2aa101],_0x2410c0=this[_0x4b4830(0x2ad)]({'toUnitId':_0x1a0b0d,'toSubUnitId':_0x1eb562,'drawing':_0x1bc0f4,'idMap':_0x24c617,'newDrawingId':_0x24c617[_0x4b4830(0x230)](_0x1bc0f4[_0x4b4830(0x3cb)]),'newTransforms':{'transform':_0x593572['transform'],'sheetTransform':_0x593572[_0x4b4830(0x2f6)],'axisAlignSheetTransform':_0x593572['axisAlignSheetTransform'],'anchorType':_0x593572['anchorType']}});_0xbbcae4[_0x4b4830(0x1e9)](..._0x2410c0[_0x4b4830(0x374)]),_0x441c52[_0x4b4830(0x2db)](..._0x2410c0[_0x4b4830(0x3a4)]);}return{'redos':_0xbbcae4,'undos':_0x441c52};}[_0x356faf(0x264)](_0x2f81cf){const _0xdee2fd=_0x356faf;let {fromUnitId:_0x48bffb,fromSubUnitId:_0x1b3c62,toUnitId:_0x28f180,toSubUnitId:_0x4c33a8,drawing:_0x34ce16,newTransforms:_0x41fe02}=_0x2f81cf,_0x469119={..._0x34ce16,'unitId':_0x28f180,'subUnitId':_0x4c33a8,..._0x41fe02};if(_0x28f180===_0x48bffb&&_0x4c33a8===_0x1b3c62){let {redo:_0x578a7a,undo:_0x14018b,objects:_0x3eecbb}=this[_0xdee2fd(0x3e6)][_0xdee2fd(0x26a)]([_0x469119]);return{'redos':[{'id':_0x509b36['id'],'params':{'unitId':_0x28f180,'subUnitId':_0x4c33a8,'type':_0x1b1dfc[_0xdee2fd(0x245)],'op':_0x578a7a,'objects':_0x3eecbb}}],'undos':[{'id':_0x509b36['id'],'params':{'unitId':_0x28f180,'subUnitId':_0x4c33a8,'type':_0x1b1dfc[_0xdee2fd(0x245)],'op':_0x14018b,'objects':_0x3eecbb}}]};}{let _0x69bace=this[_0xdee2fd(0x3e6)][_0xdee2fd(0x418)]([_0x34ce16]),_0x4211ea=this[_0xdee2fd(0x3e6)][_0xdee2fd(0x351)]([_0x469119]),_0x4c3a66=this[_0xdee2fd(0x2c2)][_0xdee2fd(0x314)](_0x34ce16[_0xdee2fd(0x358)],_0x34ce16[_0xdee2fd(0x220)],_0x34ce16[_0xdee2fd(0x3cb)]);if(!_0x4c3a66)return{'redos':[],'undos':[]};let _0x38b431=_0x4c3a66['getShapeType'](),_0x5819ef=JSON[_0xdee2fd(0x300)](JSON[_0xdee2fd(0x2cd)](_0x4c3a66[_0xdee2fd(0x32a)]()));return{'redos':[{'id':_0x509b36['id'],'params':{'unitId':_0x48bffb,'subUnitId':_0x1b3c62,'type':_0x1b1dfc['REMOVE'],'op':_0x69bace['redo'],'objects':_0x69bace[_0xdee2fd(0x2d9)]}},{'id':_0x5a76a2['id'],'params':{'unitId':_0x48bffb,'subUnitId':_0x1b3c62,'shapeId':_0x34ce16[_0xdee2fd(0x3cb)]}},{'id':_0x509b36['id'],'params':{'unitId':_0x28f180,'subUnitId':_0x4c33a8,'type':_0x1b1dfc['INSERT'],'op':_0x4211ea['redo'],'objects':_0x4211ea[_0xdee2fd(0x2d9)]}},{'id':_0x36b683['id'],'params':{'unitId':_0x28f180,'subUnitId':_0x4c33a8,'shapeId':_0x34ce16['drawingId'],'shapeType':_0x38b431,'shapeData':_0x5819ef}}],'undos':[{'id':_0x509b36['id'],'params':{'unitId':_0x48bffb,'subUnitId':_0x1b3c62,'type':_0x1b1dfc[_0xdee2fd(0x4bc)],'op':_0x69bace['undo'],'objects':_0x69bace[_0xdee2fd(0x2d9)]}},{'id':_0x36b683['id'],'params':{'unitId':_0x48bffb,'subUnitId':_0x1b3c62,'shapeId':_0x34ce16[_0xdee2fd(0x3cb)],'shapeType':_0x38b431,'shapeData':_0x5819ef}},{'id':_0x509b36['id'],'params':{'unitId':_0x28f180,'subUnitId':_0x4c33a8,'type':_0x1b1dfc[_0xdee2fd(0x1f5)],'op':_0x4211ea[_0xdee2fd(0x2e7)],'objects':_0x4211ea['objects']}},{'id':_0x5a76a2['id'],'params':{'unitId':_0x28f180,'subUnitId':_0x4c33a8,'shapeId':_0x34ce16[_0xdee2fd(0x3cb)]}}]};}}['_generateCopyPasteMutations'](_0x2f797e){const _0x41bc27=_0x356faf;let {toUnitId:_0x52d9eb,toSubUnitId:_0x59fb14,drawing:_0x5f3808,newTransforms:_0x597805,newDrawingId:_0x3ee26b,idMap:_0x154341}=_0x2f797e,_0x555b19={..._0x5f3808,'unitId':_0x52d9eb,'subUnitId':_0x59fb14,'drawingId':_0x3ee26b,..._0x597805},{redo:_0x1c2c56,undo:_0x4b1452,objects:_0x4ed1b2}=this[_0x41bc27(0x3e6)][_0x41bc27(0x351)]([_0x555b19]),_0x1bdf84=this[_0x41bc27(0x2c2)]['getShapeModel'](_0x5f3808['unitId'],_0x5f3808['subUnitId'],_0x5f3808[_0x41bc27(0x3cb)]);if(!_0x1bdf84)return{'redos':[],'undos':[]};let _0x57ca9e=_0x1bdf84['getShapeType'](),_0x2117d6=JSON['parse'](JSON[_0x41bc27(0x2cd)](_0x1bdf84['getShapeData']()));if(_0x2117d6['relation']){var _0x1ee009,_0xbe56c9;let _0x164cbd=(_0x1ee009=_0x2117d6['relation'][_0x41bc27(0x31f)])==null?void 0x0:_0x1ee009[_0x41bc27(0x3fe)],_0x3c8b31=(_0xbe56c9=_0x2117d6[_0x41bc27(0x1f9)]['to'])==null?void 0x0:_0xbe56c9[_0x41bc27(0x3fe)],_0x338681=!_0x164cbd||_0x154341[_0x41bc27(0x4aa)](_0x164cbd),_0x5ae507=!_0x3c8b31||_0x154341[_0x41bc27(0x4aa)](_0x3c8b31);_0x338681&&_0x164cbd&&_0x2117d6['relation'][_0x41bc27(0x31f)]?_0x2117d6[_0x41bc27(0x1f9)][_0x41bc27(0x31f)]={..._0x2117d6['relation'][_0x41bc27(0x31f)],'shapeId':_0x154341['get'](_0x164cbd)}:_0x2117d6[_0x41bc27(0x1f9)][_0x41bc27(0x31f)]=void 0x0,_0x5ae507&&_0x3c8b31&&_0x2117d6[_0x41bc27(0x1f9)]['to']?_0x2117d6[_0x41bc27(0x1f9)]['to']={..._0x2117d6[_0x41bc27(0x1f9)]['to'],'shapeId':_0x154341[_0x41bc27(0x230)](_0x3c8b31)}:_0x2117d6[_0x41bc27(0x1f9)]['to']=void 0x0;}return{'redos':[{'id':_0x509b36['id'],'params':{'unitId':_0x52d9eb,'subUnitId':_0x59fb14,'type':_0x1b1dfc[_0x41bc27(0x4bc)],'op':_0x1c2c56,'objects':_0x4ed1b2}},{'id':_0x36b683['id'],'params':{'unitId':_0x52d9eb,'subUnitId':_0x59fb14,'shapeId':_0x3ee26b,'shapeType':_0x57ca9e,'shapeData':_0x2117d6}}],'undos':[{'id':_0x509b36['id'],'params':{'unitId':_0x52d9eb,'subUnitId':_0x59fb14,'type':_0x1b1dfc[_0x41bc27(0x1f5)],'op':_0x4b1452,'objects':_0x4ed1b2}},{'id':_0x5a76a2['id'],'params':{'unitId':_0x52d9eb,'subUnitId':_0x59fb14,'shapeId':_0x3ee26b}}]};}['_updateTransform'](_0x208cd2,_0x1100bc,_0x3fba9a,_0x4a0902){const _0x55f634=_0x356faf;let {range:_0x38bd51,skeleton:_0x1845e3}=_0x1100bc,{range:_0x39ce2c,skeleton:_0x4df0ec}=_0x3fba9a,{transform:_0x741839,sheetTransform:_0x3895f9}=_0x208cd2,_0x55c5f2={..._0x741839};if(_0x38bd51){let _0x217117=_0x439cda(_0x1845e3,_0x38bd51),_0x564de7=_0x439cda(_0x4df0ec,_0x39ce2c);if(_0x217117&&_0x564de7){let _0x248aa9=_0x564de7[_0x55f634(0x4c7)]-_0x217117[_0x55f634(0x4c7)],_0x357d5b=_0x564de7[_0x55f634(0x41a)]-_0x217117[_0x55f634(0x41a)];_0x55c5f2[_0x55f634(0x233)]=(_0x55c5f2[_0x55f634(0x233)]??0x0)+_0x248aa9,_0x55c5f2[_0x55f634(0x48c)]=(_0x55c5f2['top']??0x0)+_0x357d5b;}}else{let _0x18203b=_0x439cda(_0x4df0ec,_0x39ce2c);if(_0x4a0902&&_0x18203b){let _0x1c2aff=(_0x55c5f2[_0x55f634(0x233)]??0x0)-_0x4a0902[_0x55f634(0x233)],_0x28ac06=(_0x55c5f2[_0x55f634(0x48c)]??0x0)-_0x4a0902['top'];_0x55c5f2['left']=_0x18203b[_0x55f634(0x4c7)]+_0x1c2aff,_0x55c5f2[_0x55f634(0x48c)]=_0x18203b[_0x55f634(0x41a)]+_0x28ac06;}else _0x55c5f2[_0x55f634(0x233)]=_0x18203b==null?void 0x0:_0x18203b['startX'],_0x55c5f2[_0x55f634(0x48c)]=_0x18203b==null?void 0x0:_0x18203b[_0x55f634(0x41a)];}return{'transform':_0x55c5f2,'sheetTransform':_0x2110e3(_0x55c5f2,_0x4df0ec)??_0x3895f9};}};ka=X([Y(0x0,_0x2132cf(_0x3ede4b)),Y(0x1,_0x2132cf(_0x20e0d4)),Y(0x2,_0x2132cf(_0x2a26b5)),Y(0x3,_0x2132cf(_0x19e574)),Y(0x4,_0x2132cf(_0x33b573)),Y(0x5,_0x6cef99),Y(0x6,_0xfb1542),Y(0x7,_0x2132cf(_0x51cf7a))],ka);var Aa=class extends _0x28b88a{constructor(_0x3a54a5,_0x266eeb){const _0x3c789e=_0x356faf;super(_0x3a54a5,_0x266eeb),q(this,_0x3c789e(0x369),null),q(this,'_index',null),q(this,_0x3c789e(0x46a),null),q(this,_0x3c789e(0x458),null),q(this,'_isStartConnectorPoint',!0x1),_0x266eeb&&this[_0x3c789e(0x3b3)](_0x266eeb);}[_0x356faf(0x443)](){const _0x144429=_0x356faf;return{'unitId':this[_0x144429(0x46a)],'subUnitId':this[_0x144429(0x458)],'drawingId':this[_0x144429(0x369)]};}['setShapeProps'](_0x305fa7){const _0x969e30=_0x356faf;_0x305fa7[_0x969e30(0x3fe)]!==void 0x0&&(this['_shapeId']=_0x305fa7['shapeId']),_0x305fa7['unitId']!==void 0x0&&(this['_unitId']=_0x305fa7[_0x969e30(0x358)]),_0x305fa7[_0x969e30(0x220)]!==void 0x0&&(this[_0x969e30(0x458)]=_0x305fa7[_0x969e30(0x220)]),_0x305fa7[_0x969e30(0x237)]!==void 0x0&&(this[_0x969e30(0x20f)]=_0x305fa7['isStartConnectorPoint']),this['transformByState']({'width':_0x305fa7[_0x969e30(0x4b1)],'height':_0x305fa7[_0x969e30(0x4c4)]});}['_draw'](_0x21eedc){const _0x4d1d45=_0x356faf;_0x444dbb[_0x4d1d45(0x492)](_0x21eedc,{'radius':_0x3c938b[_0x4d1d45(0x217)],'fill':_0x3c938b[_0x4d1d45(0x2d8)],'stroke':_0x3c938b['cxnPointStroke'],'strokeWidth':_0x3c938b[_0x4d1d45(0x44b)],'evented':!0x0});}};let ja=class extends _0x1717dd{constructor(_0x74f046,_0x523299,_0x121726,_0xbbfb88,_0x5248aa,_0x537965,_0x219801,_0x2d50f3){const _0x1dc2cf=_0x356faf;super(),this[_0x1dc2cf(0x4ca)]=_0x74f046,this[_0x1dc2cf(0x44f)]=_0x523299,this['_renderManagerService']=_0x121726,this['_drawingManagerService']=_0xbbfb88,this[_0x1dc2cf(0x4cc)]=_0x5248aa,this[_0x1dc2cf(0x494)]=_0x537965,this[_0x1dc2cf(0x4b2)]=_0x219801,this['_sheetBasicShapeConnectionPointController']=_0x2d50f3,q(this,_0x1dc2cf(0x43c),void 0x0),q(this,_0x1dc2cf(0x46a),void 0x0),q(this,_0x1dc2cf(0x458),void 0x0),q(this,_0x1dc2cf(0x47e),[]),q(this,_0x1dc2cf(0x37c),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x1dc2cf(0x2ea),void 0x0),q(this,_0x1dc2cf(0x34f),!0x1),q(this,_0x1dc2cf(0x3a0),!0x1),q(this,'_hasReset',!0x1),q(this,_0x1dc2cf(0x3a9),void 0x0),q(this,_0x1dc2cf(0x308),void 0x0),q(this,_0x1dc2cf(0x29f),null),this[_0x1dc2cf(0x26e)]();}[_0x356faf(0x26e)](){const _0x17ee25=_0x356faf;this[_0x17ee25(0x3af)](),this['_registerDrawingMoveHandler']();}[_0x356faf(0x412)](){const _0x397b50=_0x356faf;if(!this[_0x397b50(0x46a)]||!this[_0x397b50(0x458)]||!this['_activeShapeId'])return;let _0x19ea94={'unitId':this[_0x397b50(0x46a)],'subUnitId':this[_0x397b50(0x458)],'drawingId':this[_0x397b50(0x43c)]},{transform:_0x22ef15}=this['_drawingManagerService'][_0x397b50(0x3fb)](_0x19ea94);if(_0x22ef15)return{'left':_0x22ef15[_0x397b50(0x233)]||0x0,'top':_0x22ef15[_0x397b50(0x48c)]||0x0,'width':_0x22ef15[_0x397b50(0x4b1)]||0x0,'height':_0x22ef15['height']||0x0,'flipX':_0x22ef15[_0x397b50(0x43d)]||!0x1,'flipY':_0x22ef15[_0x397b50(0x33b)]||!0x1,'angle':_0x22ef15[_0x397b50(0x2b9)]};}[_0x356faf(0x402)](){const _0x30760e=_0x356faf;if(this[_0x30760e(0x46a)]===void 0x0||this[_0x30760e(0x458)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x26e8ed=this[_0x30760e(0x251)][_0x30760e(0x3ee)](this[_0x30760e(0x46a)]);if(!_0x26e8ed||!_0x26e8ed[_0x30760e(0x335)](_0x1f2fa0)[_0x30760e(0x449)]())return;let {scene:_0x59b197}=_0x26e8ed,_0x590cf4=this['_getDrawingRect']();if(!_0x590cf4)return;let _0x58b50d=this[_0x30760e(0x494)]['getShapeModel'](this[_0x30760e(0x46a)],this['_subUnitId'],this[_0x30760e(0x43c)]);if(!_0x58b50d||!_0x1a599b(_0x58b50d['getShapeType']()))return;let _0x2f1d73=_0x58b50d[_0x30760e(0x244)]();if(_0x2f1d73[_0x30760e(0x468)]<0x2)return;let _0x27a0c0=new _0x378bce(_0x590cf4),_0x392c77=_0x2f1d73[0x0],_0x27c63c=_0x2f1d73[_0x2f1d73[_0x30760e(0x468)]-0x1],_0x4c7e86=_0x27a0c0[_0x30760e(0x3a3)](_0x392c77),_0x217066=_0x27a0c0[_0x30760e(0x3a3)](_0x27c63c);this[_0x30760e(0x3c9)](_0x59b197,{..._0x4c7e86},!0x0),this['_addShapeConnectorHandlerObject'](_0x59b197,{..._0x217066},!0x1);}[_0x356faf(0x3c9)](_0x117718,_0x3a5d6c,_0x5a295c){const _0x4cd47c=_0x356faf;if(this[_0x4cd47c(0x43c)]===void 0x0||this['_unitId']===void 0x0||this[_0x4cd47c(0x458)]===void 0x0)return;let _0x91f0ea=_0x4cd47c(0x1e2)+this[_0x4cd47c(0x46a)]+'-'+this[_0x4cd47c(0x458)]+'-'+this[_0x4cd47c(0x43c)]+'-'+(_0x5a295c?_0x4cd47c(0x483):_0x4cd47c(0x438)),_0x5eb72f=_0x117718['getObjectIncludeInGroup'](_0x91f0ea);if(_0x5eb72f){_0x5eb72f[_0x4cd47c(0x3e5)]({'left':_0x3a5d6c['x']-_0x3c938b['cxnPointRadius'],'top':_0x3a5d6c['y']-_0x3c938b[_0x4cd47c(0x217)]});return;}let _0x5258e5=new Aa(_0x91f0ea,{'left':_0x3a5d6c['x']-_0x3c938b[_0x4cd47c(0x217)],'top':_0x3a5d6c['y']-_0x3c938b['cxnPointRadius'],'shapeId':this[_0x4cd47c(0x43c)],'unitId':this[_0x4cd47c(0x46a)],'subUnitId':this[_0x4cd47c(0x458)],'isStartConnectorPoint':_0x5a295c,'width':_0x3c938b[_0x4cd47c(0x217)]*0x2,'height':_0x3c938b[_0x4cd47c(0x217)]*0x2,'zIndex':_0x604e6e+0x1,'evented':!0x0});this[_0x4cd47c(0x47e)][_0x4cd47c(0x1e9)](_0x5258e5),this['_attachConnectorObjectEvent'](_0x5258e5,_0x117718,_0x5a295c),_0x117718[_0x4cd47c(0x46f)](_0x5258e5,_0x604e6e+0x1);}['_getScrollInfo'](_0x1f95e0,_0x1749bd){const _0x5f41c7=_0x356faf;var _0x5d0e7a;let _0x53ba13={'x':0x0,'y':0x0};if(!_0x1f95e0||!_0x1749bd)return _0x53ba13;let _0x21351b=this[_0x5f41c7(0x251)][_0x5f41c7(0x3ee)](_0x1f95e0);if(!_0x21351b||!_0x21351b['with'](_0x1f2fa0)[_0x5f41c7(0x434)](_0x1749bd))return _0x53ba13;let _0x5af78b=_0x21351b['with'](_0x5f11b1),_0x2a1d1c=_0x5af78b==null?void 0x0:_0x5af78b['getCurrentScrollState']();if(!_0x2a1d1c)return _0x53ba13;let _0x4fb85a=(_0x5d0e7a=this[_0x5f41c7(0x4cc)]['getUnit'](_0x1f95e0))==null?void 0x0:_0x5d0e7a[_0x5f41c7(0x286)](_0x1749bd);if(!_0x4fb85a)return _0x53ba13;let _0x3f586a=_0x13cb47(_0x2a1d1c[_0x5f41c7(0x2e6)],_0x2a1d1c[_0x5f41c7(0x2e1)],_0x21351b[_0x5f41c7(0x364)],_0x4fb85a);return _0x3f586a?{'x':_0x3f586a[_0x5f41c7(0x406)],'y':_0x3f586a['viewportScrollY']}:_0x53ba13;}[_0x356faf(0x2be)](_0x4b8123,_0x3e0ef5){const _0x517267=_0x356faf;var _0x5f0503;let _0x1beffa=(_0x5f0503=this[_0x517267(0x4cc)][_0x517267(0x413)](_0x4b8123))==null?void 0x0:_0x5f0503['getSheetBySheetId'](_0x3e0ef5);return(_0x1beffa==null?void 0x0:_0x1beffa[_0x517267(0x4c5)]())??0x1;}[_0x356faf(0x3b8)](_0x5b2cdb,_0x5786c8,_0x5f8d0b,_0x8ea83f,_0xd149d5){const _0x338cf5=_0x356faf;this[_0x338cf5(0x3a9)][_0x338cf5(0x405)](),this[_0x338cf5(0x308)]['unsubscribe'](),this[_0x338cf5(0x4b2)][_0x338cf5(0x276)]();let _0x5f396f=this[_0x338cf5(0x29f)];this[_0x338cf5(0x2c5)]['endConnectionDetection']();let _0x2e290c=this[_0x338cf5(0x45b)](this['_unitId'],this[_0x338cf5(0x458)]),_0x57311b=this[_0x338cf5(0x2be)](this[_0x338cf5(0x46a)],this[_0x338cf5(0x458)]),_0x3e1073={'x':_0x5f8d0b[_0x338cf5(0x372)]/_0x57311b+_0x2e290c['x'],'y':_0x5f8d0b['offsetY']/_0x57311b+_0x2e290c['y']},_0x4cd7fe=_0x5f396f?_0x5f396f[_0x338cf5(0x3b7)]:_0x3e1073,_0x1a601e=_0x8ea83f?this[_0x338cf5(0x2ea)]['getEndConnectInfo']():this['_activeShapeModel'][_0x338cf5(0x366)](),_0x1e3fab=this[_0x338cf5(0x2ea)]['getShapeType']();_0x1a601e?this[_0x338cf5(0x466)](_0x1a601e,_0x4cd7fe,_0x8ea83f,_0x5f396f,_0xd149d5):this[_0x338cf5(0x1fa)](_0x5786c8,_0x4cd7fe,_0x8ea83f,_0x5f396f,_0xd149d5,_0x1e3fab),this['_isConnecting']=!0x1,this[_0x338cf5(0x4a4)]=!0x1,this[_0x338cf5(0x29f)]=null,_0x5b2cdb[_0x338cf5(0x3a2)]();}[_0x356faf(0x1fa)](_0x341ccb,_0x2c788b,_0x23d670,_0x52e565,_0x18bdf5,_0x59ba5d){const _0x5d9047=_0x356faf;let _0x3dcd6=_0x59ba5d===_0x43a99f[_0x5d9047(0x332)]||_0x59ba5d===_0x43a99f[_0x5d9047(0x2e4)],_0x335a34=_0x23d670?_0x2c788b:_0x341ccb,_0x218ea4=_0x23d670?_0x341ccb:_0x2c788b,_0x3c366e=this[_0x5d9047(0x2ea)][_0x5d9047(0x244)](),_0x4b4b20=this[_0x5d9047(0x2ea)]['getShapeType'](),_0xb0afe5=_0x3d0683(_0x4b4b20),_0x26fdb6=_0x378bce[_0x5d9047(0x342)](_0x3c366e,_0xb0afe5),_0x395a9d=_0x3dcd6?_0x378bce[_0x5d9047(0x3ef)](_0x335a34,_0x218ea4):_0x378bce[_0x5d9047(0x3ca)](_0x341ccb,_0x2c788b,_0x23d670,_0x26fdb6);_0x52e565?this[_0x5d9047(0x40b)](_0x395a9d,_0x52e565,_0x23d670,_0x18bdf5):this[_0x5d9047(0x3ba)](_0x395a9d,_0x18bdf5);}['_handleConnectedEndpointPointerUp'](_0x1a350b,_0x57d7ce,_0x43c130,_0x2b45b7,_0x5c55f8){const _0x222a0e=_0x356faf;let _0x12f0ee=this[_0x222a0e(0x3de)](_0x1a350b);if(!_0x12f0ee)return;let _0x12fb27=_0x2b45b7?_0x2b45b7[_0x222a0e(0x2b9)]:this['_calculateFreeEndpointAngle'](_0x12f0ee[_0x222a0e(0x49f)],_0x57d7ce),_0x9fe2c2;if(_0x2b45b7){let _0x413315=this['_drawingManagerService'][_0x222a0e(0x3fb)]({'unitId':_0x2b45b7[_0x222a0e(0x358)],'subUnitId':_0x2b45b7['subUnitId'],'drawingId':_0x2b45b7[_0x222a0e(0x3fe)]});if(_0x413315!=null&&_0x413315[_0x222a0e(0x478)]){let {left:_0x243f16=0x0,top:_0x1f375c=0x0,width:_0x5d0c76=0x0,height:_0x8df31c=0x0,angle:_0x3451ae}=_0x413315[_0x222a0e(0x478)];_0x9fe2c2=_0x591e93({'left':_0x243f16,'top':_0x1f375c,'width':_0x5d0c76,'height':_0x8df31c},_0x3451ae||0x0);}else _0x9fe2c2={'left':_0x57d7ce['x'],'top':_0x57d7ce['y'],'width':0x0,'height':0x0};}else _0x9fe2c2={'left':_0x57d7ce['x'],'top':_0x57d7ce['y'],'width':0x0,'height':0x0};let _0x31367e={'point':_0x57d7ce,'angle':_0x12fb27,'bounds':_0x9fe2c2},_0x3de2ac=_0x43c130?_0x31367e:_0x12f0ee,_0x10e089=_0x43c130?_0x12f0ee:_0x31367e,_0x1d784b=this[_0x222a0e(0x2ea)][_0x222a0e(0x3cc)](),_0xc2ff7e=_0x171039(_0x3de2ac,_0x10e089,_0x1d784b);this['_activeShapeModel'][_0x222a0e(0x315)]();let _0x5aa534=_0x43de8e(_0xc2ff7e,_0x1d784b);_0x2b45b7?this[_0x222a0e(0x202)](_0x5aa534,_0x2b45b7,_0x1a350b,_0x43c130,_0x5c55f8):this[_0x222a0e(0x2c8)](_0x5aa534,_0x1a350b,_0x43c130,_0x5c55f8);}['_executeConnectionCommand'](_0xa6c01d,_0x15e7e4,_0x2fef71,_0x2b63df){const _0x44052d=_0x356faf;let _0xa1f277=this['_activeShapeModel'][_0x44052d(0x32a)]()[_0x44052d(0x1f9)],_0x5c31fc={..._0xa1f277},_0x2326f8={'shapeId':_0x15e7e4['shapeId'],'cxnIndex':_0x15e7e4[_0x44052d(0x461)]};_0x2fef71?_0x5c31fc['from']=_0x2326f8:_0x5c31fc['to']=_0x2326f8;let _0x79401c=this[_0x44052d(0x2ea)][_0x44052d(0x3cc)](),_0x1aa196=_0x43de8e(_0xa6c01d[_0x44052d(0x41d)],_0x79401c),_0x238b7f={'unitId':this[_0x44052d(0x46a)],'subUnitId':this[_0x44052d(0x458)],'connectorShapeId':this[_0x44052d(0x43c)],'width':_0xa6c01d['worldRect']['width'],'height':_0xa6c01d['worldRect'][_0x44052d(0x4c4)],'left':_0xa6c01d[_0x44052d(0x3d4)]['left'],'top':_0xa6c01d['worldRect'][_0x44052d(0x48c)],'flipX':_0xa6c01d[_0x44052d(0x3d4)][_0x44052d(0x43d)]||!0x1,'flipY':_0xa6c01d[_0x44052d(0x3d4)][_0x44052d(0x33b)]||!0x1,'newAdjustValues':_0x1aa196[_0x44052d(0x236)],'oldAdjustValues':_0x2b63df,'oldRelation':_0xa1f277,'newRelation':_0x5c31fc,'newLineType':_0x1aa196[_0x44052d(0x249)],'oldLineType':_0x79401c};this[_0x44052d(0x44f)][_0x44052d(0x3e3)](_0x585b91['id'],_0x238b7f);}[_0x356faf(0x3ba)](_0x5f0080,_0x3156d5){const _0x2808f2=_0x356faf;let _0x34f3a6=this[_0x2808f2(0x2ea)][_0x2808f2(0x3cc)](),_0x29ffe3=_0x43de8e(_0x5f0080['worldPoints'],_0x34f3a6),_0x2e6ac4={'unitId':this[_0x2808f2(0x46a)],'subUnitId':this[_0x2808f2(0x458)],'shapeId':this['_activeShapeId'],'width':_0x5f0080[_0x2808f2(0x3d4)][_0x2808f2(0x4b1)],'height':_0x5f0080[_0x2808f2(0x3d4)][_0x2808f2(0x4c4)],'left':_0x5f0080[_0x2808f2(0x3d4)][_0x2808f2(0x233)],'top':_0x5f0080[_0x2808f2(0x3d4)][_0x2808f2(0x48c)],'flipX':_0x5f0080[_0x2808f2(0x3d4)][_0x2808f2(0x43d)]||!0x1,'flipY':_0x5f0080[_0x2808f2(0x3d4)][_0x2808f2(0x33b)]||!0x1,'angle':_0x5f0080['worldRect']['angle']||0x0,'newAdjustValues':_0x29ffe3[_0x2808f2(0x236)],'oldAdjustValues':_0x3156d5,'newLineType':_0x29ffe3['lineType'],'oldLineType':_0x34f3a6};this[_0x2808f2(0x44f)][_0x2808f2(0x3e3)](_0x990977['id'],_0x2e6ac4);}[_0x356faf(0x202)](_0x11a5ce,_0x3b58b1,_0x527c58,_0x4c1988,_0x399c63){const _0x376069=_0x356faf;let _0x16da83=this[_0x376069(0x2ea)][_0x376069(0x32a)]()['relation'],_0x1a962d={..._0x16da83},_0x5658ff={'shapeId':_0x3b58b1[_0x376069(0x3fe)],'cxnIndex':_0x3b58b1[_0x376069(0x461)]};_0x4c1988?(_0x1a962d[_0x376069(0x31f)]=_0x5658ff,_0x1a962d['to']=_0x527c58):(_0x1a962d[_0x376069(0x31f)]=_0x527c58,_0x1a962d['to']=_0x5658ff);let _0x2e7d81={'unitId':this[_0x376069(0x46a)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x376069(0x43c)],'width':_0x11a5ce['worldRect'][_0x376069(0x4b1)],'height':_0x11a5ce[_0x376069(0x3d4)][_0x376069(0x4c4)],'left':_0x11a5ce[_0x376069(0x3d4)][_0x376069(0x233)],'top':_0x11a5ce[_0x376069(0x3d4)][_0x376069(0x48c)],'flipX':_0x11a5ce[_0x376069(0x3d4)][_0x376069(0x43d)]||!0x1,'flipY':_0x11a5ce[_0x376069(0x3d4)][_0x376069(0x33b)]||!0x1,'oldAdjustValues':_0x399c63,'newAdjustValues':_0x11a5ce['adjustValues'],'newLineType':_0x11a5ce[_0x376069(0x249)],'rotation':_0x11a5ce[_0x376069(0x3e9)],'oldRelation':_0x16da83,'newRelation':_0x1a962d};this[_0x376069(0x44f)][_0x376069(0x3e3)](_0x585b91['id'],_0x2e7d81);}[_0x356faf(0x2c8)](_0x3b193f,_0x5a7a82,_0x3bbb84,_0x2e9880){const _0x476ecb=_0x356faf;let _0x3f113c=this[_0x476ecb(0x2ea)]['getShapeData']()[_0x476ecb(0x1f9)],_0x19054b={};_0x3bbb84?(_0x19054b['to']=_0x5a7a82,_0x19054b['from']=void 0x0):(_0x19054b[_0x476ecb(0x31f)]=_0x5a7a82,_0x19054b['to']=void 0x0);let _0x40e9d4={'unitId':this[_0x476ecb(0x46a)],'subUnitId':this[_0x476ecb(0x458)],'connectorShapeId':this[_0x476ecb(0x43c)],'width':_0x3b193f[_0x476ecb(0x3d4)][_0x476ecb(0x4b1)],'height':_0x3b193f[_0x476ecb(0x3d4)][_0x476ecb(0x4c4)],'left':_0x3b193f[_0x476ecb(0x3d4)][_0x476ecb(0x233)],'top':_0x3b193f[_0x476ecb(0x3d4)][_0x476ecb(0x48c)],'flipX':_0x3b193f[_0x476ecb(0x3d4)][_0x476ecb(0x43d)]||!0x1,'flipY':_0x3b193f[_0x476ecb(0x3d4)][_0x476ecb(0x33b)]||!0x1,'oldAdjustValues':_0x2e9880,'newAdjustValues':_0x3b193f[_0x476ecb(0x236)],'newLineType':_0x3b193f[_0x476ecb(0x249)],'rotation':_0x3b193f[_0x476ecb(0x3e9)],'oldRelation':_0x3f113c,'newRelation':_0x19054b};this[_0x476ecb(0x44f)][_0x476ecb(0x3e3)](_0x585b91['id'],_0x40e9d4);}[_0x356faf(0x20a)](_0x231244,_0x5502b2,_0x1cb781){const _0x37deac=_0x356faf;this[_0x37deac(0x45d)](_0x5381db(_0x231244[_0x37deac(0x448)]['subscribeEvent']((_0x5b93dc,_0x5e7cb9)=>{const _0x40e962=_0x37deac;let _0x29ccf0=_0x231244[_0x40e962(0x443)]();if(this[_0x40e962(0x2ea)]=this[_0x40e962(0x494)][_0x40e962(0x314)](_0x29ccf0[_0x40e962(0x358)],_0x29ccf0[_0x40e962(0x220)],_0x29ccf0[_0x40e962(0x3cb)]),!this[_0x40e962(0x2ea)])return;let _0x1a2bc4={};this[_0x40e962(0x2ea)]['getAdjustNames']()[_0x40e962(0x35e)](_0x23c46d=>{const _0x4fe964=_0x40e962;let _0x336917=this[_0x4fe964(0x2ea)][_0x4fe964(0x3f9)](_0x23c46d);_0x336917!==void 0x0&&(_0x1a2bc4[_0x23c46d]=_0x336917);});let _0x12729f=this[_0x40e962(0x412)]();if(!_0x12729f)return;this[_0x40e962(0x37c)]={..._0x12729f};let _0x48d0e4=new _0x378bce(this[_0x40e962(0x37c)]),_0x30888d=_0x4e19f9({'unitId':this[_0x40e962(0x46a)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x40e962(0x43c)]}),_0x20cdaa=_0x5502b2[_0x40e962(0x348)](_0x30888d);this[_0x40e962(0x34f)]=!0x0,_0x5502b2[_0x40e962(0x3cf)](),this[_0x40e962(0x2c5)][_0x40e962(0x437)](_0x5502b2,this[_0x40e962(0x46a)],this['_subUnitId'],this['_activeShapeId']),this['_currentConnectionTarget']=null;let _0x52f403=this['_activeShapeModel'][_0x40e962(0x244)](),_0x4d95fd=_0x52f403[0x0],_0x11bcd8=_0x52f403[_0x52f403['length']-0x1],_0x30a38c=_0x1cb781?_0x48d0e4['localToWorld'](_0x11bcd8):_0x48d0e4[_0x40e962(0x3a3)](_0x4d95fd);this['_cxtHandlerPointerMove']=_0x5502b2[_0x40e962(0x25f)][_0x40e962(0x4a8)]((_0x5c6ae1,_0x558698)=>{const _0x344708=_0x40e962;if(!this[_0x344708(0x34f)]||!this[_0x344708(0x2ea)])return;this['_hasReset']||=(this[_0x344708(0x4b2)][_0x344708(0x2ee)](),this[_0x344708(0x2ea)][_0x344708(0x383)](),!0x0);let _0x2b3dc7=this[_0x344708(0x45b)](this[_0x344708(0x46a)],this[_0x344708(0x458)]),_0x5201b5=this['_getZoomRatio'](this[_0x344708(0x46a)],this[_0x344708(0x458)]),_0xb6c98f={'x':_0x5c6ae1[_0x344708(0x372)]/_0x5201b5+_0x2b3dc7['x'],'y':_0x5c6ae1['offsetY']/_0x5201b5+_0x2b3dc7['y']},_0x4843ca=this[_0x344708(0x2c5)][_0x344708(0x4b0)](_0xb6c98f);if(_0x4843ca){let {shapeId:_0x4ae728,unitId:_0x32d65c,subUnitId:_0xde953e}=_0x4843ca;if(_0x4ae728&&_0x32d65c&&_0xde953e){let _0xa29aef=_0x4e19f9({'unitId':_0x32d65c,'subUnitId':_0xde953e,'drawingId':_0x4ae728});_0x4843ca[_0x344708(0x2b9)]=(_0x5502b2[_0x344708(0x348)](_0xa29aef)[_0x344708(0x2b9)]||0x0)+_0x4843ca[_0x344708(0x2b9)];}}this['_currentConnectionTarget']=_0x4843ca;let _0x23b372=_0x1cb781?this['_activeShapeModel'][_0x344708(0x3f2)]():this[_0x344708(0x2ea)]['getStartConnectInfo']();_0x23b372?this[_0x344708(0x32e)](_0x23b372,_0xb6c98f,_0x1cb781,_0x20cdaa,_0x231244):this[_0x344708(0x4ac)](_0xb6c98f,_0x30a38c,_0x1cb781,_0x20cdaa,_0x231244);}),this[_0x40e962(0x308)]=_0x5502b2['onPointerUp$'][_0x40e962(0x4a8)]((_0x3aeff6,_0x2dd74f)=>{const _0x32cf7d=_0x40e962;this[_0x32cf7d(0x3b8)](_0x5502b2,_0x30a38c,_0x3aeff6,_0x1cb781,_0x1a2bc4);}),_0x5e7cb9[_0x40e962(0x21d)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x22826f,_0x259f09,_0x2af053){const _0x22ec21=_0x356faf;let _0x434576=this[_0x22ec21(0x494)][_0x22ec21(0x35f)](_0x22826f,_0x259f09,_0x2af053);if(!_0x434576||_0x434576[_0x22ec21(0x468)]===0x0)return;let _0x4eeeb9=this[_0x22ec21(0x251)][_0x22ec21(0x3ee)](_0x22826f);if(!_0x4eeeb9)return;let {scene:_0x37f432}=_0x4eeeb9;for(let _0x5c2b44 of _0x434576){let _0x34b3fd=_0x5c2b44[_0x22ec21(0x20d)],_0x8773ef=this['_sheetsShapeService'][_0x22ec21(0x314)](_0x22826f,_0x259f09,_0x34b3fd);if(!_0x8773ef)continue;let _0x15931c=_0x8773ef[_0x22ec21(0x366)](),_0x1945e5=_0x8773ef[_0x22ec21(0x3f2)](),_0x5520e3=(_0x15931c==null?void 0x0:_0x15931c[_0x22ec21(0x3fe)])===_0x2af053,_0x272e7e=_0x4e19f9({'unitId':_0x22826f,'subUnitId':_0x259f09,'drawingId':_0x34b3fd}),_0x13b808=_0x37f432[_0x22ec21(0x348)](_0x272e7e);if(!_0x13b808)continue;let _0x547f7f=this['_drawingManagerService'][_0x22ec21(0x3fb)]({'unitId':_0x22826f,'subUnitId':_0x259f09,'drawingId':_0x34b3fd});_0x547f7f!=null&&_0x547f7f['transform']&&(_0x15931c&&_0x1945e5?this['_rerouteConnectorLine'](_0x22826f,_0x259f09,_0x34b3fd,_0x8773ef,_0x15931c,_0x1945e5,_0x13b808):this['_moveConnectorWithShape'](_0x22826f,_0x259f09,_0x34b3fd,_0x8773ef,_0x5520e3?_0x15931c:_0x1945e5,_0x5520e3,_0x547f7f,_0x13b808));}}[_0x356faf(0x37f)](_0x559cdf,_0x5939f6,_0x5f1eff,_0x239fa5,_0x5e6142,_0x360421,_0xb8c6f0){const _0x2ced5c=_0x356faf;let _0x537a96=this[_0x2ced5c(0x46a)],_0x20fdcd=this['_subUnitId'];this[_0x2ced5c(0x46a)]=_0x559cdf,this['_subUnitId']=_0x5939f6;let _0x2ccb4d=this['_getConnectPointInfo'](_0x5e6142),_0x1fb0e7=this[_0x2ced5c(0x3de)](_0x360421);if(this[_0x2ced5c(0x46a)]=_0x537a96,this[_0x2ced5c(0x458)]=_0x20fdcd,!_0x2ccb4d||!_0x1fb0e7)return;let _0x4339f2=_0x239fa5[_0x2ced5c(0x3cc)](),_0x5bc6f6=_0x171039(_0x2ccb4d,_0x1fb0e7,_0x4339f2);_0x5bc6f6&&_0x239fa5[_0x2ced5c(0x347)](_0x5bc6f6);let _0x157af7=_0x43de8e(_0x5bc6f6,_0x4339f2);_0x157af7[_0x2ced5c(0x249)]!==_0x4339f2&&_0x239fa5[_0x2ced5c(0x498)](_0x157af7['lineType']),_0x239fa5['clearAdjustValue']();for(let [_0x2dfcbb,_0x2c069b]of Object[_0x2ced5c(0x28f)](_0x157af7[_0x2ced5c(0x236)]))_0x239fa5[_0x2ced5c(0x29a)](_0x2dfcbb,_0x2c069b);_0x239fa5['updateContext']({'width':_0x157af7[_0x2ced5c(0x3d4)][_0x2ced5c(0x4b1)],'height':_0x157af7[_0x2ced5c(0x3d4)][_0x2ced5c(0x4c4)]}),_0xb8c6f0[_0x2ced5c(0x3e5)]({'flipX':_0x157af7[_0x2ced5c(0x3d4)]['flipX'],'flipY':_0x157af7[_0x2ced5c(0x3d4)]['flipY'],'left':_0x157af7['worldRect'][_0x2ced5c(0x233)],'top':_0x157af7[_0x2ced5c(0x3d4)][_0x2ced5c(0x48c)],'width':_0x157af7[_0x2ced5c(0x3d4)]['width'],'height':_0x157af7[_0x2ced5c(0x3d4)]['height'],'angle':_0x157af7['rotation']}),_0x239fa5[_0x2ced5c(0x315)]();}[_0x356faf(0x2c3)](_0xb3be8a,_0x3fd914,_0x2aa44b,_0x57a2ac,_0x1f55f7,_0x1ee012,_0x4f4f92,_0x43fada){const _0x1fe990=_0x356faf;let _0x37c067=this[_0x1fe990(0x46a)],_0x3ad9f8=this[_0x1fe990(0x458)];this[_0x1fe990(0x46a)]=_0xb3be8a,this[_0x1fe990(0x458)]=_0x3fd914;let _0x3c256d=this[_0x1fe990(0x3de)](_0x1f55f7);if(this['_unitId']=_0x37c067,this['_subUnitId']=_0x3ad9f8,!_0x3c256d)return;let {left:_0x5298eb=0x0,top:_0x80e869=0x0,width:_0x9d207a=0x0,height:_0x1de6a7=0x0,flipX:_0x2fd99c=!0x1,flipY:_0x321423=!0x1}=_0x4f4f92[_0x1fe990(0x478)],_0x1986c6=_0x57a2ac[_0x1fe990(0x244)]();if(_0x1986c6[_0x1fe990(0x468)]<0x2)return;let _0x4f0d40=new _0x378bce({'left':_0x5298eb,'top':_0x80e869,'width':_0x9d207a,'height':_0x1de6a7,'flipX':_0x2fd99c,'flipY':_0x321423}),_0x476371=_0x1ee012?_0x1986c6[_0x1986c6[_0x1fe990(0x468)]-0x1]:_0x1986c6[0x0],_0x1891d0=_0x4f0d40[_0x1fe990(0x3a3)](_0x476371),_0x2c4587=_0x378bce[_0x1fe990(0x3ca)](_0x1891d0,_0x3c256d[_0x1fe990(0x49f)],!_0x1ee012);_0x43fada[_0x1fe990(0x3e5)]({'flipX':_0x2c4587[_0x1fe990(0x3d4)][_0x1fe990(0x43d)],'flipY':_0x2c4587['worldRect']['flipY'],'left':_0x2c4587[_0x1fe990(0x3d4)][_0x1fe990(0x233)],'top':_0x2c4587[_0x1fe990(0x3d4)][_0x1fe990(0x48c)],'width':_0x2c4587[_0x1fe990(0x3d4)]['width'],'height':_0x2c4587[_0x1fe990(0x3d4)][_0x1fe990(0x4c4)],'angle':_0x2c4587['worldRect']['angle']}),_0x43fada[_0x1fe990(0x248)](!0x0);}[_0x356faf(0x475)](){const _0x547cb6=_0x356faf;this['_connectorObjects'][_0x547cb6(0x468)]!==0x0&&(this['_connectorObjects'][_0x547cb6(0x35e)](_0x2d1670=>{const _0x25ee2b=_0x547cb6;_0x2d1670[_0x25ee2b(0x40a)]();}),this[_0x547cb6(0x47e)]=[]);}[_0x356faf(0x423)](){const _0x2741f0=_0x356faf;let _0x9a76ee=this[_0x2741f0(0x4cc)][_0x2741f0(0x1ee)](_0xdbfe17[_0x2741f0(0x21c)]);this[_0x2741f0(0x45d)](_0x9a76ee[_0x2741f0(0x2f2)](_0x48cdae(_0x354404=>_0x354404?_0x354404[_0x2741f0(0x470)][_0x2741f0(0x2f2)](_0x48cdae(_0x374279=>{const _0x317346=_0x2741f0;if(!_0x374279)return _0x44e428;let _0x2e27d2=_0x354404[_0x317346(0x25a)](),_0x44f52d=this['_renderManagerService'][_0x317346(0x3ee)](_0x2e27d2),_0x2cb812=_0x44f52d==null?void 0x0:_0x44f52d['scene'];return _0x2cb812?_0x5ca9c3(_0x2cb812):_0x44e428;})):_0x44e428))[_0x2741f0(0x2bd)](_0x3c9062=>{const _0x249c2e=_0x2741f0;let _0x41e395=_0x3c9062['getTransformerByCreate']();this[_0x249c2e(0x45d)](_0x3c9062[_0x249c2e(0x25f)]['subscribeEvent'](_0x3f03ad=>{const _0x52d514=_0x249c2e;this[_0x52d514(0x3a0)]&&this[_0x52d514(0x43c)]&&this[_0x52d514(0x475)]();})),this[_0x249c2e(0x45d)](_0x41e395[_0x249c2e(0x25e)][_0x249c2e(0x2bd)](_0x1c36d0=>{const _0x278f9e=_0x249c2e;let {objects:_0x454085}=_0x1c36d0;this[_0x278f9e(0x475)](),_0x454085!==null&&_0x454085[_0x278f9e(0x2de)]===0x1&&_0x454085[_0x278f9e(0x243)]()[_0x278f9e(0x2a2)]()[_0x278f9e(0x45e)]instanceof J&&(this[_0x278f9e(0x3a0)]=!0x0);})),this[_0x249c2e(0x45d)](_0x41e395[_0x249c2e(0x36a)][_0x249c2e(0x2bd)](_0x53c07a=>{const _0x4e7b77=_0x249c2e;this[_0x4e7b77(0x3a0)]&&this[_0x4e7b77(0x475)]();})),this[_0x249c2e(0x45d)](_0x3c9062[_0x249c2e(0x3f5)][_0x249c2e(0x4a8)](()=>{const _0x1a4996=_0x249c2e;this[_0x1a4996(0x3a0)]&&(this[_0x1a4996(0x3a0)]=!0x1,this[_0x1a4996(0x402)]());})),this[_0x249c2e(0x45d)](_0x41e395[_0x249c2e(0x29e)][_0x249c2e(0x2bd)](()=>{const _0x3df55d=_0x249c2e;this[_0x3df55d(0x46a)]&&this[_0x3df55d(0x458)]&&this[_0x3df55d(0x43c)]&&this[_0x3df55d(0x444)]['getDrawingByParam']({'unitId':this[_0x3df55d(0x46a)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3df55d(0x43c)]})&&(this[_0x3df55d(0x475)](),this[_0x3df55d(0x402)]());}));}));}[_0x356faf(0x3af)](){const _0x7d5842=_0x356faf;this[_0x7d5842(0x45d)](this['_drawingManagerService'][_0x7d5842(0x354)][_0x7d5842(0x2bd)](_0x9c14ed=>{const _0x17ab77=_0x7d5842;if(_0x9c14ed['length']===0x1){let _0x524a1f=_0x9c14ed[0x0];if(_0x524a1f['drawingType']===_0x3bf95f['DRAWING_SHAPE']){let _0x371951=this[_0x17ab77(0x494)]['getShapeModel'](_0x524a1f[_0x17ab77(0x358)],_0x524a1f[_0x17ab77(0x220)],_0x524a1f[_0x17ab77(0x3cb)]);if(_0x371951&&_0x1a599b(_0x371951[_0x17ab77(0x3cc)]())){this[_0x17ab77(0x43c)]=_0x524a1f[_0x17ab77(0x3cb)],this[_0x17ab77(0x46a)]=_0x524a1f[_0x17ab77(0x358)],this[_0x17ab77(0x458)]=_0x524a1f[_0x17ab77(0x220)],this[_0x17ab77(0x475)](),this[_0x17ab77(0x402)]();return;}}}this[_0x17ab77(0x43c)]=void 0x0,this[_0x17ab77(0x46a)]=void 0x0,this[_0x17ab77(0x458)]=void 0x0,this[_0x17ab77(0x475)]();})),this['disposeWithMe'](this[_0x7d5842(0x444)][_0x7d5842(0x4ae)][_0x7d5842(0x2bd)](_0x2d3528=>{const _0x5cee59=_0x7d5842;if(_0x2d3528['length']===0x1){var _0x2f4b07;let _0x12499b=_0x2d3528[0x0],_0xce65cd=(_0x2f4b07=this['_drawingManagerService']['getDrawingByParam'](_0x12499b))==null?void 0x0:_0x2f4b07[_0x5cee59(0x30d)];_0xce65cd===_0x3bf95f[_0x5cee59(0x24a)]&&_0x12499b['drawingId']===this[_0x5cee59(0x43c)]?(this[_0x5cee59(0x475)](),this['_addShapeConnectorHandlerObjects']()):!this['_activeShapeId']&&_0xce65cd===_0x3bf95f['DRAWING_SHAPE']&&this[_0x5cee59(0x49e)](_0x12499b['unitId'],_0x12499b[_0x5cee59(0x220)],_0x12499b[_0x5cee59(0x3cb)]);}})),this[_0x7d5842(0x45d)](this[_0x7d5842(0x444)]['remove$'][_0x7d5842(0x2bd)](_0x4a93ee=>{const _0x358fb2=_0x7d5842;for(let _0x4f2973 of _0x4a93ee){let {drawingId:_0x57a794}=_0x4f2973;if(this[_0x358fb2(0x43c)]===_0x57a794){this[_0x358fb2(0x3d9)]();return;}}}));}[_0x356faf(0x32e)](_0x11a948,_0x20e272,_0x8c6fc4,_0x471c28,_0x29e423){const _0x594969=_0x356faf;var _0x3ce69c;if(!this[_0x594969(0x2ea)])return;let _0x5bed93=this['_getConnectPointInfo'](_0x11a948);if(!_0x5bed93)return;let _0x8dc3f=this[_0x594969(0x29f)]?this['_currentConnectionTarget'][_0x594969(0x3b7)]:_0x20e272,_0x5bc1aa=this[_0x594969(0x29f)]?this[_0x594969(0x29f)][_0x594969(0x2b9)]:this[_0x594969(0x2ff)](_0x5bed93[_0x594969(0x49f)],_0x8dc3f),_0x31387a;if(this[_0x594969(0x29f)]){let _0x27bd41=this[_0x594969(0x444)][_0x594969(0x3fb)]({'unitId':this['_currentConnectionTarget'][_0x594969(0x358)],'subUnitId':this[_0x594969(0x29f)][_0x594969(0x220)],'drawingId':this[_0x594969(0x29f)][_0x594969(0x3fe)]});if(_0x27bd41!=null&&_0x27bd41[_0x594969(0x478)]){let {left:_0x1475b5=0x0,top:_0x19bf02=0x0,width:_0x3e88f9=0x0,height:_0x11afe6=0x0,angle:_0x50fdd1}=_0x27bd41['transform'];_0x31387a=_0x591e93({'left':_0x1475b5,'top':_0x19bf02,'width':_0x3e88f9,'height':_0x11afe6},_0x50fdd1||0x0);}else _0x31387a={'left':_0x8dc3f['x'],'top':_0x8dc3f['y'],'width':0x0,'height':0x0};}else _0x31387a={'left':_0x8dc3f['x'],'top':_0x8dc3f['y'],'width':0x0,'height':0x0};let _0x19987a={'point':_0x8dc3f,'angle':_0x5bc1aa,'bounds':_0x31387a},_0x2c57c6=_0x8c6fc4?_0x19987a:_0x5bed93,_0x42bcd6=_0x8c6fc4?_0x5bed93:_0x19987a,_0x3c3ea2=this['_activeShapeModel'][_0x594969(0x3cc)](),_0x22e51c=_0x171039(_0x2c57c6,_0x42bcd6,_0x3c3ea2);_0x22e51c&&this[_0x594969(0x2ea)]['updateLinePoints'](_0x22e51c);let _0x3e8202=_0x43de8e(_0x22e51c,_0x3c3ea2);_0x3e8202[_0x594969(0x249)]!==_0x3c3ea2&&this['_activeShapeModel']['changeShapeType'](_0x3e8202['lineType']);for(let [_0x1ce4d9,_0x1ce4a3]of Object['entries'](_0x3e8202[_0x594969(0x236)]))this['_activeShapeModel'][_0x594969(0x29a)](_0x1ce4d9,_0x1ce4a3);this[_0x594969(0x2ea)][_0x594969(0x240)]({'width':_0x3e8202[_0x594969(0x3d4)][_0x594969(0x4b1)],'height':_0x3e8202[_0x594969(0x3d4)]['height']}),_0x471c28['transformByState']({'flipX':_0x3e8202[_0x594969(0x3d4)][_0x594969(0x43d)],'flipY':_0x3e8202['worldRect'][_0x594969(0x33b)],'left':_0x3e8202[_0x594969(0x3d4)][_0x594969(0x233)],'top':_0x3e8202[_0x594969(0x3d4)][_0x594969(0x48c)],'width':_0x3e8202[_0x594969(0x3d4)][_0x594969(0x4b1)],'height':_0x3e8202['worldRect'][_0x594969(0x4c4)],'angle':_0x3e8202[_0x594969(0x3e9)]}),_0x471c28[_0x594969(0x248)](!0x0);let _0xe96bc2=((_0x3ce69c=this['_currentConnectionTarget'])==null?void 0x0:_0x3ce69c[_0x594969(0x3b7)])??_0x20e272;_0x29e423[_0x594969(0x3e5)]({'left':_0xe96bc2['x']-_0x3c938b['cxnPointRadius'],'top':_0xe96bc2['y']-_0x3c938b['cxnPointRadius']});}[_0x356faf(0x4ac)](_0x4d88bf,_0x47a4b0,_0x2c2f79,_0x516392,_0x5784b6){const _0x466823=_0x356faf;var _0x4cba6a,_0x5f160e;let _0x32f503=((_0x4cba6a=this[_0x466823(0x29f)])==null?void 0x0:_0x4cba6a['worldPoint'])??_0x4d88bf,_0x2b0170=_0x378bce['computeConnectorResizeLayout'](_0x47a4b0,_0x32f503,_0x2c2f79);_0x516392[_0x466823(0x3e5)]({'flipX':_0x2b0170[_0x466823(0x3d4)]['flipX'],'flipY':_0x2b0170['worldRect']['flipY'],'left':_0x2b0170[_0x466823(0x3d4)][_0x466823(0x233)],'top':_0x2b0170['worldRect'][_0x466823(0x48c)],'width':_0x2b0170[_0x466823(0x3d4)][_0x466823(0x4b1)],'height':_0x2b0170[_0x466823(0x3d4)]['height'],'angle':_0x2b0170[_0x466823(0x3d4)]['angle']});let _0xc653ff=((_0x5f160e=this['_currentConnectionTarget'])==null?void 0x0:_0x5f160e[_0x466823(0x3b7)])??_0x4d88bf;_0x5784b6['transformByState']({'left':_0xc653ff['x']-_0x3c938b[_0x466823(0x217)],'top':_0xc653ff['y']-_0x3c938b[_0x466823(0x217)]});}[_0x356faf(0x3de)](_0x13ff93){const _0x2384f3=_0x356faf;if(!this[_0x2384f3(0x46a)]||!this[_0x2384f3(0x458)])return null;let {shapeId:_0x2881ad,cxnIndex:_0x15bd04}=_0x13ff93,_0x1f861b=this[_0x2384f3(0x494)]['getShapeModel'](this[_0x2384f3(0x46a)],this[_0x2384f3(0x458)],_0x2881ad);if(!_0x1f861b)return null;let _0x434fed=this[_0x2384f3(0x444)][_0x2384f3(0x3fb)]({'unitId':this[_0x2384f3(0x46a)],'subUnitId':this[_0x2384f3(0x458)],'drawingId':_0x2881ad});if(!(_0x434fed!=null&&_0x434fed[_0x2384f3(0x478)]))return null;let {left:_0x5a85b4=0x0,top:_0x2b75cf=0x0,width:_0x4d48b8=0x0,height:_0x75f3f5=0x0,flipX:_0x453630=!0x1,flipY:_0x3c3192=!0x1,angle:_0x2596f9}=_0x434fed[_0x2384f3(0x478)];_0x1f861b[_0x2384f3(0x240)]({'width':_0x4d48b8,'height':_0x75f3f5});let _0x4b29f7=_0x1f861b[_0x2384f3(0x2b1)]()[_0x2384f3(0x4b6)](_0x124b05=>_0x124b05[_0x2384f3(0x41f)]===_0x15bd04);if(!_0x4b29f7)return null;let _0x3b46aa=_0x453630?_0x4d48b8-_0x4b29f7['x']:_0x4b29f7['x'],_0x2dd84a=_0x3c3192?_0x75f3f5-_0x4b29f7['y']:_0x4b29f7['y'];if(_0x2596f9!==0x0&&_0x2596f9!=null){let _0x4ee7bd=_0x2596f9*Math['PI']/0xb4,_0x1f1caf=Math[_0x2384f3(0x384)](_0x4ee7bd),_0x41f30d=Math[_0x2384f3(0x203)](_0x4ee7bd),_0x4cd6de=_0x4d48b8/0x2,_0x10a87a=_0x75f3f5/0x2,_0x5e970e=_0x3b46aa-_0x4cd6de,_0x108d3e=_0x2dd84a-_0x10a87a;_0x3b46aa=_0x4cd6de+_0x5e970e*_0x1f1caf-_0x108d3e*_0x41f30d,_0x2dd84a=_0x10a87a+_0x5e970e*_0x41f30d+_0x108d3e*_0x1f1caf;}_0x3b46aa+=_0x5a85b4,_0x2dd84a+=_0x2b75cf;let _0x867724=_0x4b29f7[_0x2384f3(0x2e5)]/0xea60;_0x453630&&(_0x867724=0xb4-_0x867724),_0x3c3192&&(_0x867724=-_0x867724),_0x867724+=_0x2596f9||0x0,_0x867724=(_0x867724%0x168+0x168)%0x168;let _0x3d6a4b=_0x591e93({'left':_0x5a85b4,'top':_0x2b75cf,'width':_0x4d48b8,'height':_0x75f3f5},_0x2596f9||0x0);return{'point':{'x':_0x3b46aa,'y':_0x2dd84a},'angle':_0x867724,'bounds':_0x3d6a4b};}[_0x356faf(0x2ff)](_0x5e7648,_0x4f439c){const _0x26c75e=_0x356faf;let _0x527e8c=_0x4f439c['x']-_0x5e7648['x'],_0x5dc806=_0x4f439c['y']-_0x5e7648['y'];return Math[_0x26c75e(0x47f)](_0x527e8c)>=Math['abs'](_0x5dc806)?_0x527e8c>=0x0?0xb4:0x0:_0x5dc806>=0x0?0x10e:0x5a;}[_0x356faf(0x3d9)](){const _0xd72c9e=_0x356faf;this[_0xd72c9e(0x43c)]=void 0x0,this[_0xd72c9e(0x46a)]=void 0x0,this[_0xd72c9e(0x458)]=void 0x0,this[_0xd72c9e(0x475)]();}[_0x356faf(0x40a)](){const _0xbda009=_0x356faf;this[_0xbda009(0x475)](),super[_0xbda009(0x40a)]();}};ja=X([Y(0x1,_0x44c672),Y(0x2,_0xfb1542),Y(0x3,_0x5f48da),Y(0x4,_0x6cef99),Y(0x5,_0x2132cf(_0x19e574)),Y(0x6,_0x2132cf(Zr)),Y(0x7,_0x2132cf(Oa))],ja);let Ma=class extends _0x1717dd{constructor(_0x386837,_0x1c0804,_0x5ab6f9){const _0x417a50=_0x356faf;super(),this[_0x417a50(0x40c)]=_0x386837,this[_0x417a50(0x444)]=_0x1c0804,this[_0x417a50(0x306)]=_0x5ab6f9,this['_initPrinting']();}['_initPrinting'](){const _0x180764=_0x356faf;this[_0x180764(0x45d)](this[_0x180764(0x40c)]['interceptor'][_0x180764(0x3f7)](this[_0x180764(0x40c)][_0x180764(0x4bd)]['getInterceptPoints']()[_0x180764(0x339)],{'handler':(_0x377c66,_0x340943,_0x26c658)=>{const _0x2093a3=_0x180764;var _0x54d614;let {unitId:_0x1dbead,subUnitId:_0x579cd2,scene:_0x58476c,resourceCollector:_0x431633}=_0x340943,_0x24faea=(_0x54d614=this[_0x2093a3(0x444)][_0x2093a3(0x23a)](_0x1dbead))==null?void 0x0:_0x54d614[_0x579cd2];return _0x24faea==null||_0x24faea[_0x2093a3(0x37b)][_0x2093a3(0x35e)](_0x42ce21=>{const _0x3564be=_0x2093a3;let _0x3e6686=_0x24faea[_0x3564be(0x23d)][_0x42ce21];_0x3e6686[_0x3564be(0x30d)]===_0x3bf95f['DRAWING_SHAPE']&&!_0x3e6686['hidden']&&this['_shapeRenderController'][_0x3564be(0x28e)](_0x3e6686,_0x58476c,{'resourceCollector':_0x431633});}),_0x26c658(_0x377c66);}}));}};Ma=X([Y(0x0,_0x2132cf(_0x33a6ba)),Y(0x1,_0x5f48da),Y(0x2,_0x2132cf(Z))],Ma);let Na=class extends _0x1717dd{constructor(_0xc1a785,_0x2cbbc0,_0x33e733,_0x36f1c7){const _0x2fc59d=_0x356faf;super(),this[_0x2fc59d(0x44f)]=_0xc1a785,this[_0x2fc59d(0x4cc)]=_0x2cbbc0,this[_0x2fc59d(0x376)]=_0x33e733,this['_sheetPermissionCheckController']=_0x36f1c7,this[_0x2fc59d(0x3df)]();}[_0x356faf(0x3df)](){const _0x512949=_0x356faf;let _0x510e2b=new Set([K['id'],_0x20d0ce['id'],_0x4f56fd['id'],_0x4c8a28['id'],_0x990977['id']]);this['disposeWithMe'](this[_0x512949(0x44f)][_0x512949(0x1fb)](_0x4fab84=>{const _0x14c18f=_0x512949;let _0x4c7e75,_0x5baa5b;if(_0x4fab84['id']===_0x4ffb4b['id']||_0x4fab84['id']===_0x2af5b1['id']||_0x4fab84['id']===_0x585b91['id']){let _0x132e4a=_0x4fab84['params'];_0x4c7e75=_0x132e4a[_0x14c18f(0x358)],_0x5baa5b=_0x132e4a[_0x14c18f(0x220)];}else{if(_0x510e2b['has'](_0x4fab84['id'])){let _0x8543d3=_0x4d4744(this[_0x14c18f(0x4cc)],_0x4fab84['params']);if((_0x8543d3==null?void 0x0:_0x8543d3['worksheet'][_0x14c18f(0x3f4)]()['type'])!==_0x45630e[_0x14c18f(0x2f1)])return;_0x4c7e75=_0x8543d3['unitId'],_0x5baa5b=_0x8543d3[_0x14c18f(0x220)];}}_0x4c7e75&&_0x5baa5b&&(this[_0x14c18f(0x47d)][_0x14c18f(0x3be)]({'workbookTypes':[_0x5f38a2],'worksheetTypes':[_0x5a9082]},_0x4c7e75,_0x5baa5b)||this['_sheetPermissionCheckController'][_0x14c18f(0x4c1)](this[_0x14c18f(0x376)]['t']('sheets-shape-ui.permission.editErr')));}));}};Na=X([Y(0x0,_0x2132cf(_0x44c672)),Y(0x1,_0x2132cf(_0x6cef99)),Y(0x2,_0x2132cf(_0x4a6f46)),Y(0x3,_0x2132cf(_0x51cf7a))],Na);let Pa=class{constructor(_0x122333){const _0x2b5950=_0x356faf;this[_0x2b5950(0x251)]=_0x122333;}[_0x356faf(0x28d)](_0x45e5dc,_0x223f25){const _0x3e205c=_0x356faf;let _0x19567b=this[_0x3e205c(0x251)][_0x3e205c(0x3ee)](_0x45e5dc[_0x3e205c(0x358)]),_0x1368ba=_0x19567b==null?void 0x0:_0x19567b[_0x3e205c(0x364)];if(!_0x1368ba)return;let _0x3b4566=_0x4e19f9(_0x45e5dc),_0xda4890=_0x1368ba[_0x3e205c(0x348)](_0x3b4566);_0xda4890==null||_0xda4890['setFillImage'](_0x223f25);}};Pa=X([Y(0x0,_0xfb1542)],Pa);let Fa=class extends _0x3b1ef5{constructor(_0x4e395a=ma,_0x382ea4,_0x50e689,_0x3c0dba,_0x1fca04){const _0x391470=_0x356faf;super(),this['_config']=_0x4e395a,this[_0x391470(0x333)]=_0x382ea4,this[_0x391470(0x44f)]=_0x50e689,this['_configService']=_0x3c0dba,this[_0x391470(0x251)]=_0x1fca04;let {..._0x32b3de}=_0x52ebf2({},ma,this['_config']);this[_0x391470(0x22a)][_0x391470(0x41c)](pa,_0x32b3de),this[_0x391470(0x2e8)]();}[_0x356faf(0x486)](){const _0x1e12fa=_0x356faf;this[_0x1e12fa(0x333)][_0x1e12fa(0x460)]([va]),this[_0x1e12fa(0x333)][_0x1e12fa(0x230)](va),_0xb94778(this[_0x1e12fa(0x333)],[[Sa],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na]]);}['onReady'](){const _0x3ec8b3=_0x356faf;_0xb94778(this[_0x3ec8b3(0x333)],[[Oa],[Zr],[ka]]),_0x3de196(this[_0x3ec8b3(0x333)],[[ka],[Zr]]),[[Oa],[ha],[ja],[ba]][_0x3ec8b3(0x35e)](_0xfdb98d=>{const _0x377f41=_0x3ec8b3;this[_0x377f41(0x45d)](this[_0x377f41(0x251)][_0x377f41(0x295)](_0xdbfe17[_0x377f41(0x21c)],_0xfdb98d));});}[_0x356faf(0x2e9)](){const _0xd10982=_0x356faf;_0x3de196(this[_0xd10982(0x333)],[[Sa],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na]]);}[_0x356faf(0x31e)](){const _0x419bd7=_0x356faf;this[_0x419bd7(0x333)]['get'](Sa)[_0x419bd7(0x3f8)]();}['_initCommands'](){const _0x286845=_0x356faf;[$r,K,Qr,fa][_0x286845(0x35e)](_0x43e04d=>this[_0x286845(0x45d)](this[_0x286845(0x44f)]['registerCommand'](_0x43e04d)));}};q(Fa,_0x356faf(0x49d),_0xdbfe17[_0x356faf(0x21c)]),q(Fa,_0x356faf(0x3c4),_0x356faf(0x488)),q(Fa,_0x356faf(0x47a),ua),q(Fa,_0x356faf(0x45c),da),Fa=X([_0x1cf835(_0x221f6b,_0x59875c,_0x4a1c45,_0xc0fda2,_0x312ba7,_0x1070c4,_0x1cd6d8,_0xb35d1b,_0x1b6025,_0x4745e0,_0xfd751e,_0x4d8d5d,_0x579b29),Y(0x1,_0x2132cf(_0x967603)),Y(0x2,_0x44c672),Y(0x3,_0x2e8539),Y(0x4,_0xfb1542)],Fa);function _0x3cc8(){const _0x381572=['canvasElement','map','refreshShapeFillImage','isHitLine','close','_initEditingParams','sheet.shape.edit.panel','_calculateFreeEndpointAngle','parse','PaintIcon','drawing-ui.objectListPanel.close','contentHeight','_popupMenuListener','fromChangeset','_shapeRenderController','object','_cxtHandlerPointerUp','_lastEditingShapeKey','drawing-ui.objectListPanel.unlockAll','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getActualSize','drawingType','getImage','onSavingEditorData$','drawing-ui.objectListPanel.filterLocked','onCommandExecuted','getPresentation','GROUP','getShapeModel','removeLinePoints','_imageShapeClipController','getShapeTextData','parent','_onSavingEditorData$','_initSelection','some','mergeMenu','_clearPopups','onSteady','from','_clearControls','_updateTransform','_canEdit','_disposePopups','presentationChanged$','options','refreshFormulaPresentation','_componentManager','_shapeEditPanelVersion','isRichText','getShapeData','style','selectable','10780vWtYSM','_handleConnectedEndpointMove','Path','_highlightedSiteIndex','sheet.command.update-shape-data','Line','_injector','skeleton','with','_registerGroupFeaturePasteHook','sheets-shape-ui.flipHorizontal','_insertShapes','PRINTING_COMPONENT_COLLECT','error','flipY','_registerIcons','_registerMoveHandler','sheets-shape-ui.imagePanel.crop.shape','getObject','isHit','_generateChartSheetCopy','getBentTypeFromPoints','_visible','setShouldShowAdjust','activeAnObject','restore','updateLinePoints','getObjectIncludeInGroup','COMMAND','div','_currentUniverService','getDrawingPoints','isLineShape','keys','_isConnecting','clip-','getBatchAddOp','_activeShapeInfo','trim','focus$','_hide','formulaBinding','clip-adj-','unitId','FlipVerticalIcon','_currentScene','getDrawingEditable','focus','6820471ntHsyf','forEach','getBasicShapeRelation','2857878eIEgDi','_baseShapeWidth','onReady','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','scene','getMatrix','getStartConnectInfo','symbol','URL','_shapeId','changing$','_createCopyInfoByRange','setFillImage','sheets-shape-ui.ribbon.shape-format.arrange-front','setFormulaPresentation','axisAlignSheetTransform','getTransformer','_targetShapeId','offsetX','_baseShapeHeight','redos','_initCopyPaste','_localeService','resolveHyperLinkAt','_adjHandlerPointerMove','fillType','reverse','order','_baseDrawingRect','_baseShapeLeft','gray.0','_rerouteConnectorLine','_getShapeAdjustPointListById','default','_shapeTextEditingService','clearAdjustValue','cos','_attachAdjustEvent','shape-editor-ui.toolbar.changeShape','PictureFill','popup','getConnectionRelation','clipTop','_updateAdjustControlPositions','_imageIoService','registerClipDelegate','color','clipHeight','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','beginPath','sidebarOptions$','_shapeUpdateListener','sheets-shape-ui.objectListPanel.open','back','adjHandleFill','sheet.image-clip.shape-picker.component','drawing-ui.objectListPanel.showAll','visible','preValue','_clearCompletionFrame','None','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','actualHeight','setContextValue','_isDrawingShapePointDown','mode','enableObjectsEvent','localToWorld','undos','drawing-ui.objectListPanel.expand','_activeTargetShapeId','_draw','sheet.operation.apply-shape-quick-style','_cxtHandlerPointerMove','_setTransForm','getCurrentUnitOfType','unit','wrapStrategy','_baseTop','_registerDrawingFocusChangeHandler','_applyFormulaAutoFitSize','adjName','prstGeomAdjValues','setShapeProps','complete','resetCursor','VIEW_MAIN_LEFT','worldPoint','_handleConnectorPointerUp','SHAPE_TEXT','_executeResizeCommand','isMainScene','BottomIcon','shapeText','permissionCheckWithoutRange','_contextService','_resetState','sheets-shape-ui.ribbon.shape-format.text-control','_formulaKey','_findNearestConnectionSite','pluginName','_findShapeAtPoint','_registerImageShapeClipDelegate','completeEditing','shape-text-','_addShapeConnectorHandlerObject','computeConnectorResizeLayout','drawingId','getShapeType','classType','featurePluginUpdateNotification','disableObjectsEvent','getUnitType','_getConnectionSiteAngle','_activeAdjustInfo','registerCommand','worldRect','_getImageDrawingInfo','SHEET','_initSheetChange','run','_reset','rect','getImageSourceCache','ancestorTransform','FlipHorizontalIcon','_getConnectPointInfo','_initPermission','MoveDownIcon','actions','addImageSourceCache','executeCommand','OPERATION','transformByState','_sheetDrawingService','function','drawing-ui.objectListPanel.sectionCanvas','rotation','getDrawingEffectBounds','sheets-shape-ui.title','_baseWidth','getCurrentLastSelection','getRenderUnitById','computeStraightConnectorLayout','_shapes','_openShapeEditPanel','getEndConnectInfo','getAutoFitPresentations','getConfig','onPointerUp$','position','intercept','initShapePopupMenu','getAdjustValueByName','drawing-ui.objectListPanel.name','getDrawingByParam','attachTransformerTo','getDrawingData','shapeId','presentation','SheetShapeTextEditorContainer','drawing-ui.objectListPanel.hide','_addShapeConnectorHandlerObjects','DEFAULT_PASTE','_sheetDrawingShapeRenderController','unsubscribe','viewportScrollX','_update','shape-editor-ui.arrange.front','applyPoint','dispose','_executeConnectionCommand','_sheetPrintInterceptorService','getOwnPropertyDescriptor','refreshTransform','bottom','_activeShapeAdjustPointList','#4285f4','_getDrawingRect','getUnit','getPermissionPoint','sheet.command.menu-insert-shape','_sidebarDisposable','drawing-ui.objectListPanel.moveForward','getBatchRemoveOp','_drawSimpleText','startY','disableShapeOption','setConfig','worldPoints','getVisible','index','panel','702pkVivU','sheets-shape-ui.ribbon.shape-format','_registerDrawingMoveHandler','setPrstGeomAdjValues','clone','setSrcRect','_clipService','cancelEditing','sheet.menu.shape.flip-horizontal','translateWithPrecision','sheet.shape.floating-toolbar','_editingParams$','_drawRichText','animateFormulaPresentation','shapeModel','visible$','hidden','_showConnectionSites','_getOrCreateShapeModel','getSkeleton','createControl$','438836PniDaW','startConnectionDetection','end','_getSceneAndTransformerByDrawingSearch','adjHandleSize','endArrow','_activeShapeId','flipX','getRealBound','shape-editor-ui.arrange.forward','interceptCommand','extensionGroups','DRAWING','getDrawingSearch','_drawingManagerService','drawing-ui.objectListPanel.hideAll','sheets-shape-ui.shape-format.quick-style-gallery','setHighlighted','onPointerDown$','getCurrentSkeleton','sheets-shape-ui.ribbon.shape-format.formula-control','cxnPointStrokeWidth','clipByShape','translate','syncExecuteCommand','_commandService','_drawingRenderService','register','UNIVER_DOC','drawing-ui.objectListPanel.unlockHint','sheet.shape.object-list.panel','setPrstGeom','_transformCalculateSrcRect','_createShape','_subUnitId','debounceRefreshControls','DRAWING_IMAGE','_getScrollInfo','version','disposeWithMe','value','_init','add','cxnIndex','_hyperLinkRegions','_renderWithCache','rightToLeft','VIEW_MAIN_TOP','_handleConnectedEndpointPointerUp','_registerOperations','length','horizontal','_unitId','src','pushUndoRedo','remove$','groupId','addObject','activeSheet$','render','drawing-ui.objectListPanel.moveBackward','description','_baseShapeTop','_clearShapeConnectorHandlerObjects','sheets-shape-ui.objectListPanel.title','_closeShapeEditPanel','transform','MEDIA','packageName','ObjectLayersIcon','decorate','_sheetPermissionCheckController','_connectorObjects','abs','drawing-ui.objectListPanel.show','getInverseCoord','set','start','shape-editor-ui.toolbar.quickStyles','flatMap','onStarting','setOnSavingEditorData','SHEET_SHAPE_UI_PLUGIN','current','BUTTON','drawing-ui.objectListPanel.search','top','getFocusDrawings','UUID','backward','title','getSkeletonParam','drawWith','setCanUseShapeClip','_sheetsShapeService','drawing-ui.objectListPanel.sectionFloating','save','buildClipPath','changeShapeType','getColorFromTheme','shape-editor-ui.arrange.backward','fontSize','getShapeTypeById','type','_handleBasicShapeUpdateConnectorLineShape','point','_loadAndSetImage','getCanvasElement','forward','_registerFocusChangeHandler','_hasReset','_initEvents','getAdjustInfoByName','pick','subscribeEvent','sheets-shape-ui.ribbon.shape-format.style-control','has','CHART_PAGE','_handleFreeEndpointMove','1.5.0','update$','_loadShapePictureFill','updateConnectionDetection','width','_sheetShapeAdjustController','unregister','sheets-shape-ui.flipVertical','_permissionService','find','marginTop','fillImageSource','drawing-ui.objectListPanel.lock','isHorizontal','doc','INSERT','interceptor','shape-editor-ui.arrange.back','permissionPointUpdate$','hasDefault','blockExecuteWithoutPermission','sheets-shape-format-font-family-menu','getConnectionInfo','height','getZoomRatio','adjHandleStroke','startX','_initMenu','shapeKey','_context','sheets-shape-ui.config','_univerInstanceService','connector-handler-','getContextValue','viewBound','string','_menuManagerService','offsetY','ShapeFormatSettingIcon','push','clip','call','front','getState','getCurrentTypeOfUnit$','name','sheets-shape-ui.editShape','SHAPE','sheets-shape-contextual-ribbon','canvas','hideInfoPopup','REMOVE','contentVerticalOffset','Image','_completionFrame','relation','_handleFreeEndpointPointerUp','beforeCommandExecuted','getEditing','21LjLIsM','invert','onload','ShapeIcon','_createControls','_executeConnectedRouteConnectionCommand','sin','_activeImageId','animationEnabled','sheets-shape-ui','sheet.operation.open-sheet-shape-format-panel','_clearConnectionSites','isFinite','_attachConnectorObjectEvent','_focusedDrawings','_isStartAdjusting','lineShapeId','drawing-ui.objectListPanel.empty','_isStartConnectorPoint','_registerComponents','localeService','getDrawingOKey','isEditing','endConnectionDetection','_sheetCanvasPopManagerService','constructor','cxnPointRadius','formulaPresentation','dataModel','prototype','_isShouldShowDrawingShapeAdjust','UNIVER_SHEET','stopPropagation','setShapeData','hideContextualTab','subUnitId','oKey','_shapeFormulaService','normal','_getShapeInfo','updateDocumentDataMargin','gray.300','filter','_draggingConnectorId','_isOpenedShapeEditPanel','_configService','drawing-ui.objectListPanel.nameInput','getDrawingVisible','draw','sheet.operation.open-shape-object-list-panel','_instances','get','isolated','connection-site-','left','clear','_sheetClipboardService','adjustValues','isStartConnectorPoint','vertical-center','_sheetInterceptorService','getDrawingDataForUnit','_baseHeight','_props','data','_renders','_iconManager','updateContext','isHighlighted','drawing-ui.objectListPanel.unlock','values','getConnectorLinePoints','UPDATE','univer-box-border\x20univer-px-4\x20univer-text-sm','sheets-shape-ui.ribbon.shape-format.arrange-forward','makeDirty','lineType','DRAWING_SHAPE','_copyInfo','getShapeTextRect','srcRect','text','onDblclick$','TopmostIcon','_renderManagerService','sheet.operation.close-sheet-shape-format-panel','_shapeFloatingToolbarService','sheets-shape-ui.deleteShape','getParent','_clearFocusedShape','drawing-ui.objectListPanel.title','_insertingShapeKeys','composeMatrix','getUnitId','_sheetSkeletonService','editingParams$','TOP','changeStart$','onPointerMove$','stroke','drawing-ui.objectListPanel.details','drawing-ui.objectListPanel.noSelection','sheets-shape-ui.shape-format.style-ribbon-control','_generateCutPasteMutations','_formulaAnimation','Large','2421032dqzPRA','_connectionSiteObjects','diffValue','getBatchUpdateOp','#1a73e8','_isHighlighted','Medium','_initialize','_config','SELECTOR','_drawingType','drawing-ui.objectListPanel.filterHidden','drawing-ui.objectListPanel.typeNames.','_drawRichTextLayer','@univerjs-pro/sheets-shape-ui','refreshAdjustControls','setFallbackVisible','onerror','presetId','_clearShapeAdjustControls','top-center','5566XEKJcj','_updateImageAdjValues','1100880mNpsMa','range','startArrow','_adjName','multiply','sheet.shape.text.float-menu','focusDrawing','params','getSheetBySheetId','_getImagePrstGeom','_isImagePointerDown','_drawShapeText','_permissions','drawing-ui.objectListPanel.filterAll','_adjHandlerPointerUp','updateShapeFillImage','renderDrawingShape','entries','resourceCollector','shapeType','resize','_addShapeAdjustControl','_getShapeAdjustInfosById','registerRenderModule','VIEW_MAIN','sheets-shape-ui.editText','drawing-ui.objectListPanel.description','drawing.operation.set-drawing-active','setAdjustValueByName','OTHERS','currentAdjustValues','calculate','changeEnd$','_currentConnectionTarget','Position','sqrt','next','_generatePasteMutations','_sidebarService','getSheetId','prstGeom','drawing-ui.objectListPanel.dragToReorder','defineProperty','SolidLine','getValue','_disposed','LEFT','_generateCopyPasteMutations','copyId','sheet.menu.shape.flip-vertical','showContextualTab','getConnectionSiteList','delete','_ribbonService','196ZrcOpx','shapeData','_urlImageService','_shapePopupMenuDisposable','_createShapeAdjustControls','angle','_updateShapeAdjustControls','_cxnIndex','_drawingAddListener','subscribe','_getZoomRatio','drawing-ui.objectListPanel.locate','updateDocumentStyle','getCurrentScrollState','_shapeService','_moveConnectorWithShape','GRID','_sheetBasicShapeConnectionPointController','_activeAdjustPointList','image','_executeConnectedRouteResizeCommand','drawing-ui.objectListPanel.lockHint','getDrawingOrder','_addControl','getTransformerByCreate','stringify','_transform','strokeWidth','setCursor','Arrow','getSelectedObjectMap','_registerFeatureMenu','sheets-shape-ui.formatShape','custom','_updateSrcRectByTransform','shape-adjust-point-','cxnPointFill','objects','isArray','unshift','_baseLeft','min','size','viewportScrollY','isInGroup','sheetViewStartColumn','getShapeDataById','_formulaShapes','StraightConnector1','ang','sheetViewStartRow','undo','_initCommands','onRendered','_activeShapeModel','drawing-ui.objectListPanel.descriptionPlaceholder','copyType','setEditing','clearAdjustControls','sheet.operation.open-mobile-shape-editor','TRUE','CHART','pipe','open','iterator','_releaseRenderCache','sheetTransform','fill'];_0x3cc8=function(){return _0x381572;};return _0x3cc8();}const Ia={'type':_0x5663ea[_0x356faf(0x3e4)],'id':_0x356faf(0x252),'handler'(){return!0x0;}};function La(){const _0x3c079f=_0x356faf;let _0xd50c97=_0xa92ee6(_0x5f48da),_0x59eed5=_0x4bf3b4(()=>_0xd50c97[_0x3c079f(0x354)],_0xd50c97[_0x3c079f(0x48d)](),!0x1,[_0xd50c97]);return _0x59eed5[_0x3c079f(0x468)]===0x0?null:_0x38e4c6(_0x3c079f(0x34a),{'children':_0x4e1d76('div',{'className':_0x3c079f(0x246),'children':[_0x38e4c6(_0x40ab77,{'drawings':_0x59eed5,'hasCropper':!0x1}),_0x38e4c6(_0x215974,{'drawings':_0x59eed5})]})});}function Ra(_0x2c5cb3){let {unitId:_0x2994aa,subUnitId:_0x2855ad,shapeId:_0x4ab25b}=_0x2c5cb3,_0x51156d=_0xa92ee6(_0x44c672),_0x5a832d=_0xa92ee6(Pa);return _0x38e4c6(_0xaa1b53,{..._0x2c5cb3,'positionEditor':_0x38e4c6(La,{}),'onUpdateShapeData':(_0x2b6884,_0x45dc2f)=>{Wr(_0x51156d,_0x2994aa,_0x2855ad,_0x4ab25b,_0x2b6884,_0x45dc2f);},'onUpdateLineShapeData':(_0x9b1f92,_0x36ab1c)=>{Gr(_0x51156d,_0x2994aa,_0x2855ad,_0x4ab25b,_0x9b1f92,_0x36ab1c);},'onUpdateShapeFillImage':_0x3ec9fe=>{const _0xb702a5=_0x4380;_0x5a832d[_0xb702a5(0x28d)]({'unitId':_0x2994aa,'subUnitId':_0x2855ad,'drawingId':_0x4ab25b},_0x3ec9fe);}});}function za(_0x3d9fc2){const _0x80f0d6=_0x356faf;let _0xec6025=_0xa92ee6(_0x445bca),_0x1881e1=_0x4bf3b4(()=>_0xec6025[_0x80f0d6(0x430)],_0xec6025[_0x80f0d6(0x41e)](),!0x1,[_0xec6025]),_0x58ec06=_0x3d9fc2[_0x80f0d6(0x388)]['extraProps'];return!_0x58ec06||!_0x1881e1?null:_0x38e4c6(Ba,{..._0x58ec06,'canvasElement':_0x3d9fc2[_0x80f0d6(0x388)][_0x80f0d6(0x2f8)]});}function Ba(_0xfe7dc9){const _0x9e9386=_0x356faf;let _0x30ed44=_0xa92ee6(_0x44c672),_0x16c0f8=_0xa92ee6(_0x19e574),{unitId:_0x1d12fa,subUnitId:_0x186a57,drawingId:_0x5044c9,drawingType:_0x1d009c,shapeType:_0x1ec184}=_0xfe7dc9,[_0x5098d5,_0x5172bc]=_0x3d59af(_0xfe7dc9[_0x9e9386(0x2b5)]),_0x59814d=_0x471bd3(()=>_0x358849(_0x5098d5),[_0x5098d5]),_0x5d7e7f=_0x471bd3(()=>_0x5ee14a(_0x5098d5),[_0x5098d5]);_0x4a0dc4(()=>{const _0xa58105=_0x9e9386;let _0x2fe45d=_0x30ed44['onCommandExecuted'](_0x4d44d6=>{const _0x34cecc=_0x4380;if(_0x4d44d6['id']!==_0x49a64c['id'])return;let _0x5685a2=_0x16c0f8[_0x34cecc(0x2e2)](_0x1d12fa,_0x186a57,_0x5044c9);_0x5685a2&&_0x5172bc(_0x5685a2);});return()=>_0x2fe45d[_0xa58105(0x40a)]();},[_0x30ed44,_0x5044c9,_0x16c0f8,_0x186a57,_0x1d12fa]);let _0x568576=_0x320c14=>{_0x5172bc(_0x252453=>({..._0x252453,..._0x320c14}));},_0x49e559=_0x8d4918=>{const _0x3415b3=_0x9e9386;let _0x3f2a7f=_0x530bbe(_0x5098d5,_0x8d4918);Wr(_0x30ed44,_0x1d12fa,_0x186a57,_0x5044c9,{'oldShapeData':{'shapeText':_0x5098d5[_0x3415b3(0x3bd)]}},_0x3f2a7f),_0x568576(_0x3f2a7f);},_0x3dd390=_0x3e3da7({'hostType':_0xdbfe17[_0x9e9386(0x21c)],'unitId':_0x1d12fa,'subUnitId':_0x186a57,'shapeId':_0x5044c9,'shapeData':_0x5098d5,'onUpdateBinding':_0x2f130f=>{const _0x1dac3e=_0x9e9386;let _0x33927a={'formulaBinding':_0x2f130f};Wr(_0x30ed44,_0x1d12fa,_0x186a57,_0x5044c9,{'oldShapeData':{'formulaBinding':_0x5098d5[_0x1dac3e(0x356)]}},_0x33927a),_0x568576(_0x33927a);}});return _0x4e1d76(_0x2c43dd,{'children':[_0x38e4c6(_0x3988da,{'canvasElement':_0xfe7dc9[_0x9e9386(0x2f8)],'shapeData':_0x5098d5,'shapeType':_0x1ec184,'textStyle':{'ff':_0x3c938b['shapeText']['fontFamily'],'fs':_0x3c938b[_0x9e9386(0x3bd)][_0x9e9386(0x49b)],'cl':{'rgb':_0x3c938b[_0x9e9386(0x3bd)][_0x9e9386(0x38e)]},..._0x59814d},'textModel':_0x5d7e7f?{'ha':_0x5d7e7f['ha']??_0x481e9a[_0x9e9386(0x2ac)],'va':_0x5d7e7f['va']??_0xb9de71[_0x9e9386(0x25d)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3c938b[_0x9e9386(0x2f7)],'defaultGradientEndColor':_0x3c938b['gradientEndColor'],'defaultStrokeColor':_0x3c938b[_0x9e9386(0x260)],'extensionGroups':_0x3dd390['extensionGroups'],'floatingObjectToolbarPosition':_0x4e210f[_0x9e9386(0x3d6)],'onUpdateShapeData':(_0x46bf5d,_0x1e391d)=>{Wr(_0x30ed44,_0x1d12fa,_0x186a57,_0x5044c9,_0x46bf5d,_0x1e391d),_0x1e391d&&_0x568576(_0x1e391d);},'onUpdateText':_0x49e559,'onOpenPanel':()=>{const _0x45b133=_0x9e9386;_0x30ed44[_0x45b133(0x3e3)](si['id'],{'unitId':_0x1d12fa,'subUnitId':_0x186a57,'drawingId':_0x5044c9});},'onDelete':()=>{const _0x1da411=_0x9e9386;_0x30ed44[_0x1da411(0x3e3)](_0x2d5f78['id'],{'unitId':_0x1d12fa,'drawings':[{'unitId':_0x1d12fa,'subUnitId':_0x186a57,'drawingId':_0x5044c9,'drawingType':_0x1d009c}]});}}),_0x3dd390[_0x9e9386(0x420)]]});}function Va(_0x35f560){const _0x3e493f=_0x356faf;return!!_0x35f560&&'axisAlignSheetTransform'in _0x35f560&&_0x3e493f(0x2f6)in _0x35f560;}const Ha=_0x45a7dc(()=>{const _0x5be354=_0x356faf;let _0x37434a=_0xa92ee6($),_0x3d1ca4=_0xa92ee6(_0x19e574),_0x32c165=_0xa92ee6(_0x5f48da),_0x4bbbd3=_0xa92ee6(_0x44c672),_0x358043=_0xa92ee6(_0x22088b),_0xa70f06=_0xa92ee6(_0xfb1542),_0x5b2147=_0x471bd3(()=>({'getShapeModel':(_0x5c2c34,_0x3bdd11,_0x9dbd7a)=>_0x3d1ca4[_0x5be354(0x314)](_0x5c2c34,_0x3bdd11,_0x9dbd7a),'getShapeData':(_0x91974f,_0x185556,_0x5c5ecc)=>_0x3d1ca4['getShapeDataById'](_0x91974f,_0x185556,_0x5c5ecc),'getDrawingTransform':(_0x433214,_0x518a27,_0x46ddbb)=>{const _0x5cdbef=_0x5be354;let _0x54c80c=_0x32c165[_0x5cdbef(0x3fb)]({'unitId':_0x433214,'subUnitId':_0x518a27,'drawingId':_0x46ddbb});return _0x54c80c==null?void 0x0:_0x54c80c['transform'];},'updateShapeText':({unitId:_0x3994ec,subUnitId:_0x2a2960,shapeId:_0x29f911,shapeText:_0x214c9c,oldShapeText:_0x31ae55,hostSize:_0x1ee7fa})=>{const _0x48b00e=_0x5be354;_0x358043[_0x48b00e(0x3d8)](_0x3994ec,()=>{const _0x14d69f=_0x48b00e;var _0x42580b;let _0x2b1209=_0x4bbbd3[_0x14d69f(0x44e)](K['id'],{'unitId':_0x3994ec,'subUnitId':_0x2a2960,'shapeId':_0x29f911,'shapeData':{'shapeText':_0x214c9c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x31ae55}}});if(!_0x2b1209||!_0x1ee7fa)return _0x2b1209;let _0x2c8702=_0x32c165[_0x14d69f(0x3fb)]({'unitId':_0x3994ec,'subUnitId':_0x2a2960,'drawingId':_0x29f911}),_0x44a08c=_0x2c8702==null?void 0x0:_0x2c8702['transform'];if(!Va(_0x2c8702)||!_0x44a08c)return!0x1;let _0x417ae4={..._0x44a08c,'width':_0x1ee7fa[_0x14d69f(0x4b1)],'height':_0x1ee7fa['height']},_0x16901c=(_0x42580b=_0xa70f06['getRenderUnitById'](_0x3994ec))==null||(_0x42580b=_0x42580b['with'](_0x1f2fa0)[_0x14d69f(0x491)](_0x2a2960))==null?void 0x0:_0x42580b[_0x14d69f(0x334)];return _0x4bbbd3['syncExecuteCommand'](_0x228e22['id'],{'unitId':_0x3994ec,'drawings':[{..._0x2c8702,'transform':_0x417ae4,'sheetTransform':_0x16901c?_0x2110e3(_0x417ae4,_0x16901c)??_0x2c8702[_0x14d69f(0x2f6)]:_0x2c8702[_0x14d69f(0x2f6)],'axisAlignSheetTransform':_0x16901c?_0x57507c(_0x417ae4,_0x16901c)??_0x2c8702[_0x14d69f(0x36f)]:_0x2c8702[_0x14d69f(0x36f)]}]});});},'updateHostSize':({unitId:_0x2721b6,subUnitId:_0x3bf888,shapeId:_0x4d4467,width:_0x284393,height:_0x58910a})=>{const _0x1a2b7e=_0x5be354;var _0x4df9c0;let _0x416a95=_0x32c165[_0x1a2b7e(0x3fb)]({'unitId':_0x2721b6,'subUnitId':_0x3bf888,'drawingId':_0x4d4467}),_0x208381=_0x416a95==null?void 0x0:_0x416a95[_0x1a2b7e(0x478)];if(!Va(_0x416a95)||!_0x208381)return;let _0x208287={..._0x208381,'width':_0x284393,'height':_0x58910a},_0xb49188=(_0x4df9c0=_0xa70f06[_0x1a2b7e(0x3ee)](_0x2721b6))==null||(_0x4df9c0=_0x4df9c0[_0x1a2b7e(0x335)](_0x1f2fa0)[_0x1a2b7e(0x491)](_0x3bf888))==null?void 0x0:_0x4df9c0['skeleton'],_0x10cc8b=_0xb49188?_0x2110e3(_0x208287,_0xb49188)??_0x416a95['sheetTransform']:_0x416a95[_0x1a2b7e(0x2f6)],_0x345c8a=_0xb49188?_0x57507c(_0x208287,_0xb49188)??_0x416a95[_0x1a2b7e(0x36f)]:_0x416a95[_0x1a2b7e(0x36f)];_0x4bbbd3['executeCommand'](_0x228e22['id'],{'unitId':_0x2721b6,'drawings':[{..._0x416a95,'transform':_0x208287,'sheetTransform':_0x10cc8b,'axisAlignSheetTransform':_0x345c8a}]});},'allowHostSizeShrink':({unitId:_0x26b8e9,subUnitId:_0x47eb2e,shapeId:_0x39a3d6})=>_0x188eb4(_0x3d1ca4[_0x5be354(0x2e2)](_0x26b8e9,_0x47eb2e,_0x39a3d6)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4bbbd3,_0x32c165,_0xa70f06,_0x3d1ca4,_0x358043]),_0x1d0d34=_0x471bd3(()=>({'viewportKeys':{'main':_0x47a5b2[_0x5be354(0x296)],'leftTop':_0x47a5b2['VIEW_MAIN_LEFT_TOP'],'top':_0x47a5b2[_0x5be354(0x465)],'left':_0x47a5b2[_0x5be354(0x3b6)]},'getSkeleton':(_0x15d6d0,_0xa19ee4)=>{const _0x4bb357=_0x5be354;var _0x5c860d;return((_0x5c860d=_0x15d6d0[_0x4bb357(0x335)](_0x1f2fa0)[_0x4bb357(0x491)](_0xa19ee4[_0x4bb357(0x220)]))==null?void 0x0:_0x5c860d[_0x4bb357(0x334)])??null;}}),[]);return _0x38e4c6(_0x3f0eef,{'adapter':_0x5b2147,'editingService':_0x37434a,'editorUnitId':ii,'positionOptions':_0x1d0d34});});let Ua=class extends _0x1717dd{constructor(_0x5143f8,_0x3ccc8b){const _0x2606da=_0x356faf;super(),this[_0x2606da(0x327)]=_0x5143f8,this['_iconManager']=_0x3ccc8b,this[_0x2606da(0x33c)](),this[_0x2606da(0x210)]();}[_0x356faf(0x33c)](){const _0x18f8ee=_0x356faf;this[_0x18f8ee(0x23f)][_0x18f8ee(0x4aa)](_0x18f8ee(0x47b))||this[_0x18f8ee(0x45d)](this[_0x18f8ee(0x23f)]['register']({'ObjectLayersIcon':_0x468afb})),this[_0x18f8ee(0x23f)][_0x18f8ee(0x4aa)](_0x18f8ee(0x3dd))||this['disposeWithMe'](this['_iconManager']['register']({'FlipHorizontalIcon':_0xf7acb8})),this[_0x18f8ee(0x23f)][_0x18f8ee(0x4aa)](_0x18f8ee(0x359))||this[_0x18f8ee(0x45d)](this['_iconManager'][_0x18f8ee(0x451)]({'FlipVerticalIcon':_0x8f81ec})),this[_0x18f8ee(0x23f)]['has'](_0x18f8ee(0x3bc))||this['disposeWithMe'](this['_iconManager']['register']({'BottomIcon':_0x3437c2})),this[_0x18f8ee(0x23f)]['has'](_0x18f8ee(0x3e0))||this[_0x18f8ee(0x45d)](this[_0x18f8ee(0x23f)]['register']({'MoveDownIcon':_0x34c26e})),this[_0x18f8ee(0x23f)]['has']('MoveUpIcon')||this[_0x18f8ee(0x45d)](this[_0x18f8ee(0x23f)][_0x18f8ee(0x451)]({'MoveUpIcon':_0x78aa60})),this[_0x18f8ee(0x23f)][_0x18f8ee(0x4aa)]('ShapeFormatSettingIcon')||this[_0x18f8ee(0x45d)](this['_iconManager'][_0x18f8ee(0x451)]({'ShapeFormatSettingIcon':_0x4543d5})),this['_iconManager'][_0x18f8ee(0x4aa)](_0x18f8ee(0x250))||this[_0x18f8ee(0x45d)](this[_0x18f8ee(0x23f)]['register']({'TopmostIcon':_0x11c142}));}[_0x356faf(0x210)](){const _0x4b0d70=_0x356faf;this[_0x4b0d70(0x45d)](this['_componentManager']['register'](ei,Ra)),this['disposeWithMe'](this[_0x4b0d70(0x327)]['register'](ti,ga)),this[_0x4b0d70(0x45d)](this[_0x4b0d70(0x327)][_0x4b0d70(0x451)](di,_i)),this[_0x4b0d70(0x45d)](this[_0x4b0d70(0x327)]['register'](fi,mi)),this[_0x4b0d70(0x327)][_0x4b0d70(0x4c0)](_0x197574)||this['disposeWithMe'](this[_0x4b0d70(0x327)]['register'](_0x197574,gi)),this[_0x4b0d70(0x45d)](this[_0x4b0d70(0x327)][_0x4b0d70(0x451)](ni,za)),this['disposeWithMe'](this['_componentManager'][_0x4b0d70(0x451)](Ai,Pi)),this[_0x4b0d70(0x45d)](this[_0x4b0d70(0x327)][_0x4b0d70(0x451)](ki,Fi)),this[_0x4b0d70(0x45d)](this['_componentManager'][_0x4b0d70(0x451)](ji,Ii)),this[_0x4b0d70(0x45d)](this[_0x4b0d70(0x327)][_0x4b0d70(0x451)](Mi,Li)),this[_0x4b0d70(0x45d)](this['_componentManager']['register'](ai,_0x281e1e)),this[_0x4b0d70(0x45d)](this[_0x4b0d70(0x327)][_0x4b0d70(0x451)](_0x4b0d70(0x400),Ha));}};Ua=X([Y(0x0,_0x2132cf(_0x333fbe)),Y(0x1,_0x2132cf(_0x400e62))],Ua);let Wa=class extends _0x1717dd{constructor(_0x234876,_0x3ebe57,_0x43ffda,_0x422ca0,_0x3fc523,_0x4ce3cb,_0x435dc2,_0x2984ab,_0x40f20d){const _0x213d51=_0x356faf;super();let _0x11a36e=_0x1fa0a6=>{const _0x1aed3b=_0x4380;var _0x594f0a,_0x502511;return(((_0x594f0a=_0x2984ab[_0x1aed3b(0x414)](new _0x5f38a2(_0x1fa0a6[_0x1aed3b(0x358)])['id']))==null?void 0x0:_0x594f0a['value'])??!0x0)&&(((_0x502511=_0x2984ab[_0x1aed3b(0x414)](new _0x5a9082(_0x1fa0a6[_0x1aed3b(0x358)],_0x1fa0a6[_0x1aed3b(0x220)])['id']))==null?void 0x0:_0x502511['value'])??!0x0);},_0x547e11=_0x20162e=>_0x20162e[_0x213d51(0x3fe)]&&_0x11a36e(_0x20162e)?_0x43ffda['getShapeDataById'](_0x20162e['unitId'],_0x20162e[_0x213d51(0x220)],_0x20162e[_0x213d51(0x3fe)])??null:null,_0x138f8f=()=>{const _0x24eaae=_0x213d51;let _0x10e3d3=_0x3fc523['getFocusDrawings'](),_0x112d26=_0x10e3d3['length']===0x1?_0x10e3d3[0x0]:null;return(_0x112d26==null?void 0x0:_0x112d26[_0x24eaae(0x30d)])===_0x3bf95f['DRAWING_SHAPE']&&_0x112d26[_0x24eaae(0x358)]===_0x234876[_0x24eaae(0x358)]?{'unitId':_0x112d26['unitId'],'subUnitId':_0x112d26[_0x24eaae(0x220)],'shapeId':_0x112d26[_0x24eaae(0x3cb)]}:null;};this['disposeWithMe'](_0x22e857(_0x234876,_0x3ebe57,{'changes$':_0x2893e6(_0x3fc523[_0x213d51(0x354)],_0x422ca0[_0x213d51(0x25c)],_0x2984ab[_0x213d51(0x4bf)]),'isActive':()=>{const _0x2f523d=_0x213d51;var _0x1945a7;return((_0x1945a7=_0x4ce3cb['getFocusedUnit']())==null?void 0x0:_0x1945a7[_0x2f523d(0x25a)]())===_0x234876[_0x2f523d(0x358)]&&!_0x435dc2[_0x2f523d(0x1e3)](_0x416e2b)&&_0x3fc523['getFocusDrawings']()['some'](_0x35f495=>_0x35f495[_0x2f523d(0x358)]===_0x234876[_0x2f523d(0x358)]);},'getSelectedTarget':_0x138f8f,'getSource':()=>{let _0x3865b5=_0x138f8f();return _0x3865b5?_0x547e11(_0x3865b5):null;},'getTarget':_0x3e3b64=>{const _0x52f732=_0x213d51;let _0x1bf9ee=_0x234876[_0x52f732(0x364)][_0x52f732(0x4a7)](new _0x416379(_0x3e3b64[_0x52f732(0x372)],_0x3e3b64[_0x52f732(0x1e7)]));if(!(_0x1bf9ee instanceof J))return null;let _0x2a8ef9={'unitId':_0x234876['unitId'],'subUnitId':_0x1bf9ee[_0x52f732(0x220)],'shapeId':_0x1bf9ee[_0x52f732(0x3fe)]};return _0x11a36e(_0x2a8ef9)?_0x2a8ef9:null;},'getShape':_0x547e11,'update':(_0x1289f1,_0xb6ab1a,_0x2103ce)=>_0x40f20d[_0x213d51(0x3e3)](K['id'],{..._0x1289f1,'shapeData':_0x2103ce,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0xb6ab1a}})}));}};Wa=X([Y(0x1,_0x2132cf(_0x10e30f)),Y(0x2,_0x2132cf(_0x19e574)),Y(0x3,_0x2132cf($)),Y(0x4,_0x5f48da),Y(0x5,_0x6cef99),Y(0x6,_0x5625c0),Y(0x7,_0x481a1b),Y(0x8,_0x44c672)],Wa);const Ga=_0x356faf(0x1f2);let Ka=class extends _0x1717dd{constructor(_0x104d79,_0x347722,_0x57db8c,_0x1efa49,_0x3f1c8d,_0x2cc11d){const _0x53b6d9=_0x356faf;super(),this['_menuManagerService']=_0x104d79,this['_ribbonService']=_0x347722,this['_drawingManagerService']=_0x57db8c,this[_0x53b6d9(0x4cc)]=_0x1efa49,this[_0x53b6d9(0x251)]=_0x3f1c8d,this[_0x53b6d9(0x253)]=_0x2cc11d,q(this,'_visible',!0x1),this['_menuManagerService'][_0x53b6d9(0x31c)](sa),this['disposeWithMe'](_0x5381db(this[_0x53b6d9(0x444)][_0x53b6d9(0x354)]['subscribe'](()=>this[_0x53b6d9(0x407)]()))),this[_0x53b6d9(0x407)]();}[_0x356faf(0x40a)](){const _0x90bdda=_0x356faf;this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,Ga),this[_0x90bdda(0x355)](),super[_0x90bdda(0x40a)]();}['_update'](){const _0x693cb4=_0x356faf;var _0xc5b436;let _0x1946a7=this[_0x693cb4(0x444)][_0x693cb4(0x48d)](),_0x4f78d0=_0x1946a7[_0x693cb4(0x468)]===0x1?_0x1946a7[0x0]:void 0x0;if((_0x4f78d0==null?void 0x0:_0x4f78d0[_0x693cb4(0x30d)])!==_0x3bf95f[_0x693cb4(0x24a)]||this['_univerInstanceService'][_0x693cb4(0x3d0)](_0x4f78d0[_0x693cb4(0x358)])!==_0xdbfe17[_0x693cb4(0x21c)]){this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,Ga),this[_0x693cb4(0x355)]();return;}let _0x54be55=(_0xc5b436=this[_0x693cb4(0x251)]['getRenderUnitById'](_0x4f78d0[_0x693cb4(0x358)]))==null?void 0x0:_0xc5b436['engine'][_0x693cb4(0x4a1)](),_0x4b9def=_0x44c075(_0x54be55)===_0x693cb4(0x231);this['_shapeFloatingToolbarService'][_0x693cb4(0x277)](_0x4b9def,Ga),_0x4b9def?this[_0x693cb4(0x355)]():this[_0x693cb4(0x343)]||(this[_0x693cb4(0x343)]=!0x0,this[_0x693cb4(0x2b3)][_0x693cb4(0x2b0)](ri,{'activate':!0x0}));}[_0x356faf(0x355)](){const _0x7435d7=_0x356faf;this[_0x7435d7(0x343)]&&(this[_0x7435d7(0x343)]=!0x1,this[_0x7435d7(0x2b3)][_0x7435d7(0x21f)](ri),this['_ribbonService']['setCollapsedIds']([]));}};Ka=X([Y(0x0,_0x4d1e99),Y(0x1,_0x5a6823),Y(0x2,_0x5f48da),Y(0x3,_0x6cef99),Y(0x4,_0xfb1542),Y(0x5,_0x2132cf(_0x445bca))],Ka);let qa=class extends _0x50d208{constructor(_0x2aa555,_0xf69bad,_0x10c5c2,_0x4b0e69,_0x1f1497,_0xc5be77,_0x40aaa4,_0x7e475f,_0x51b8d4,_0x319a20){super(_0x2aa555,_0xf69bad,_0x10c5c2,_0x4b0e69,_0x1f1497,_0xc5be77,_0x40aaa4,_0x7e475f,_0x51b8d4,_0x319a20,{'componentKey':ai,'editorUnitId':ii});}};qa=X([Y(0x1,_0x2132cf(_0x482701)),Y(0x2,_0x2132cf(_0x5d1df1)),Y(0x3,_0x2132cf(_0x5c842d)),Y(0x4,_0x44c672),Y(0x5,_0x2132cf(_0x5f57ea)),Y(0x6,_0x2132cf(_0xb67c72)),Y(0x7,_0x2132cf(_0x327511)),Y(0x8,_0x2132cf(_0x5af849)),Y(0x9,_0x2132cf($))],qa);let Ja=class extends _0x313206{constructor(_0x182d88,_0x17a05b,_0x3cad01,_0x30f132,_0x3e753c){const _0x23fef1=_0x356faf;super(_0x182d88,_0x17a05b,{'editing$':_0x3cad01['editingParams$'],'resolve':_0x5ea7a6=>{const _0x1470b0=_0x4380;var _0x480b8d,_0x4e83f0,_0x5172d2;let _0x3d716f=new _0x416379(_0x5ea7a6[_0x1470b0(0x372)],_0x5ea7a6[_0x1470b0(0x1e7)]),_0x4ef916=((_0x480b8d=_0x182d88['scene']['getActiveViewportByCoord'](_0x3d716f))==null?void 0x0:_0x480b8d['transformVector2SceneCoord'](_0x3d716f))??_0x3d716f,_0x41470a=_0x51e496(_0x182d88[_0x1470b0(0x364)][_0x1470b0(0x4a7)](_0x3d716f)??null,_0x4ef916);if(!(_0x41470a instanceof J))return null;let _0x28cf4f=_0x41470a[_0x1470b0(0x377)](_0x4ef916);if(!_0x28cf4f)return null;let _0x271175=_0x41470a,_0x42001d={'componentKey':_0x336213['componentKey'],'direction':_0x1470b0(0x27b),'offset':[0x0,0xa],'onClickOutside':()=>_0x17a05b[_0x1470b0(0x1f4)]()};return{'object':_0x41470a,'info':{..._0x28cf4f,'unitId':_0x41470a[_0x1470b0(0x358)],'subUnitId':_0x41470a['subUnitId'],'shapeKey':_0x41470a[_0x1470b0(0x221)],'readonly':!0x0,'copyable':((_0x4e83f0=_0x3e753c[_0x1470b0(0x414)](new _0x5b503b(_0x41470a[_0x1470b0(0x358)])['id']))==null?void 0x0:_0x4e83f0[_0x1470b0(0x45e)])!==!0x1&&((_0x5172d2=_0x3e753c[_0x1470b0(0x414)](new _0x1b9338(_0x41470a['unitId'],_0x41470a[_0x1470b0(0x220)])['id']))==null?void 0x0:_0x5172d2['value'])!==!0x1},'attachPopup':()=>_0x30f132['attachPopupToObject'](_0x271175,_0x42001d)};}}),this[_0x23fef1(0x45d)](_0x182d88[_0x23fef1(0x3ac)][_0x23fef1(0x470)][_0x23fef1(0x2bd)](()=>this[_0x23fef1(0x234)]()));}};Ja=X([Y(0x1,_0x2132cf(_0xb67c72)),Y(0x2,_0x2132cf($)),Y(0x3,_0x2132cf(_0x21e7cb)),Y(0x4,_0x481a1b)],Ja);let Ya=class extends _0x1717dd{constructor(_0x3f4da3,_0x3d2dd1,_0x2703a9,_0x352a74,_0xeadd5c,_0x5c150b,_0x3f8931,_0x6012d5,_0x167f9b,_0x5eab56,_0x5ced84){const _0x8c9726=_0x356faf;super(),this['_univerInstanceService']=_0x3f4da3,this[_0x8c9726(0x2a4)]=_0x3d2dd1,this[_0x8c9726(0x1e6)]=_0x2703a9,this[_0x8c9726(0x494)]=_0x352a74,this[_0x8c9726(0x376)]=_0xeadd5c,this[_0x8c9726(0x44f)]=_0x5c150b,this[_0x8c9726(0x444)]=_0x3f8931,this['_sheetCanvasPopManagerService']=_0x6012d5,this['_contextService']=_0x167f9b,this[_0x8c9726(0x251)]=_0x5eab56,this[_0x8c9726(0x382)]=_0x5ced84,q(this,'_sidebarDisposable',null),q(this,_0x8c9726(0x352),null),q(this,_0x8c9726(0x229),!0x1),q(this,_0x8c9726(0x328),0x0),q(this,_0x8c9726(0x2b7),null),q(this,_0x8c9726(0x323),[]),this[_0x8c9726(0x4c8)](),this[_0x8c9726(0x45d)](this[_0x8c9726(0x4cc)]['getCurrentTypeOfUnit$'](_0xdbfe17[_0x8c9726(0x21c)])[_0x8c9726(0x2bd)](_0x3e3cc0=>{const _0x57fd0c=_0x8c9726;if(!_0x3e3cc0){var _0x4f53f2;(_0x4f53f2=this[_0x57fd0c(0x416)])==null||_0x4f53f2[_0x57fd0c(0x40a)]();}})),this['_registerOperations'](),this[_0x8c9726(0x3f8)](),this[_0x8c9726(0x45d)](this['_shapeTextEditingService'][_0x8c9726(0x25c)][_0x8c9726(0x2bd)](_0x57b314=>{const _0x140d05=_0x8c9726;_0x57b314&&this[_0x140d05(0x31d)]();}));}[_0x356faf(0x4c8)](){const _0x5d596e=_0x356faf;this['_menuManagerService'][_0x5d596e(0x31c)](la);}[_0x356faf(0x3f8)](){const _0xe188bd=_0x356faf;this[_0xe188bd(0x2b7)]||=this['disposeWithMe'](_0x260443(this['_renderManagerService'],_0xdbfe17[_0xe188bd(0x21c)],_0x556483=>this[_0xe188bd(0x304)](_0x556483)));}[_0x356faf(0x224)](_0x5afa85,_0x4fff2d,_0x36ec81){const _0x2dee82=_0x356faf;let _0x4c07c0=this[_0x2dee82(0x494)]['getShapeTypeById'](_0x5afa85,_0x4fff2d,_0x36ec81),_0x2755e9=this[_0x2dee82(0x494)][_0x2dee82(0x2e2)](_0x5afa85,_0x4fff2d,_0x36ec81);return _0x4c07c0!==void 0x0&&_0x2755e9!==void 0x0?{'shapeData':_0x2755e9,'shapeId':_0x36ec81,'shapeType':_0x4c07c0,'unitId':_0x5afa85,'subUnitId':_0x4fff2d,'version':this[_0x2dee82(0x328)],'disableShapeOption':!0x1}:null;}[_0x356faf(0x31d)](){const _0xf6b48=_0x356faf;this[_0xf6b48(0x323)][_0xf6b48(0x35e)](_0x12d004=>_0x12d004[_0xf6b48(0x40a)]()),this[_0xf6b48(0x323)][_0xf6b48(0x468)]=0x0;}[_0x356faf(0x304)](_0x2d59eb){const _0x75f00=_0x356faf;let _0x3a9e30=new _0x9e178c();return _0x3a9e30['add'](_0x2d59eb[_0x75f00(0x435)]['subscribe'](()=>{const _0x3dfdb0=_0x75f00;let _0x57c63d=_0x2d59eb['getSelectedObjectMap']();if(this[_0x3dfdb0(0x31d)](),this[_0x3dfdb0(0x229)]||_0x57c63d[_0x3dfdb0(0x2de)]>0x1)return;let _0x5957b0=_0x57c63d[_0x3dfdb0(0x243)]()[_0x3dfdb0(0x2a2)]()[_0x3dfdb0(0x45e)];if(!_0x5957b0)return;let _0x45c44b=this[_0x3dfdb0(0x444)]['getDrawingOKey'](_0x5957b0[_0x3dfdb0(0x221)]);if(!_0x45c44b||_0x45c44b[_0x3dfdb0(0x30d)]!==_0x3bf95f[_0x3dfdb0(0x24a)])return;let {unitId:_0x4a152f,subUnitId:_0x14dc3c,drawingId:_0x3fe231,drawingType:_0x452cfd}=_0x45c44b,_0xa7fb4e=this[_0x3dfdb0(0x224)](_0x4a152f,_0x14dc3c,_0x3fe231);if(!_0xa7fb4e)return;this[_0x3dfdb0(0x3bf)][_0x3dfdb0(0x39f)](_0x5ebd8a,!0x0);let _0x7c0f4d=this[_0x3dfdb0(0x251)]['getRenderUnitById'](_0x4a152f),_0x367259=((_0x7c0f4d==null?void 0x0:_0x7c0f4d[_0x3dfdb0(0x3bb)])===!0x1?_0x7c0f4d[_0x3dfdb0(0x335)](_0x21e7cb):this[_0x3dfdb0(0x215)])['attachPopupToObject'](_0x5957b0,{'componentKey':ni,'direction':_0x3dfdb0(0x238),'offset':[0x0,_0x118b51],'extraProps':{'unitId':_0x4a152f,'subUnitId':_0x14dc3c,'drawingId':_0x3fe231,'drawingType':_0x452cfd,'shapeType':_0xa7fb4e['shapeType'],'shapeData':_0xa7fb4e['shapeData']}});this[_0x3dfdb0(0x323)][_0x3dfdb0(0x1e9)](this[_0x3dfdb0(0x45d)](_0x367259)),this[_0x3dfdb0(0x444)][_0x3dfdb0(0x48d)]()[_0x3dfdb0(0x4b6)](_0x45e0ff=>_0x45e0ff[_0x3dfdb0(0x358)]===_0x4a152f&&_0x45e0ff[_0x3dfdb0(0x220)]===_0x14dc3c&&_0x45e0ff[_0x3dfdb0(0x3cb)]===_0x3fe231)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x4a152f,'subUnitId':_0x14dc3c,'drawingId':_0x3fe231}]);})),_0x3a9e30['add'](_0x2d59eb['clearControl$'][_0x75f00(0x2bd)](()=>{const _0x2571d0=_0x75f00;this['_clearPopups'](),this[_0x2571d0(0x3bf)][_0x2571d0(0x39f)](_0x5ebd8a,!0x1),this[_0x2571d0(0x444)]['focusDrawing'](null);})),_0x3a9e30[_0x75f00(0x460)](_0x2d59eb[_0x75f00(0x36a)][_0x75f00(0x2bd)](()=>{const _0x543846=_0x75f00;this[_0x543846(0x31d)]();})),_0x3a9e30['add'](_0x2d59eb['changeStart$'][_0x75f00(0x2bd)](()=>{const _0x5a43a8=_0x75f00;this[_0x5a43a8(0x31d)]();})),_0x5381db(()=>{const _0x35d6d0=_0x75f00;_0x3a9e30[_0x35d6d0(0x40a)](),this['_clearPopups']();});}[_0x356faf(0x467)](){const _0x5e1751=_0x356faf;this[_0x5e1751(0x45d)](this['_commandService'][_0x5e1751(0x311)](_0x1fecc7=>{const _0x40e4d3=_0x5e1751;if(_0x1fecc7['id']===si['id']){let {unitId:_0x8ee2f4,subUnitId:_0x117d08,drawingId:_0x163737}=_0x1fecc7['params'];this[_0x40e4d3(0x328)]+=0x1,this[_0x40e4d3(0x352)]=this[_0x40e4d3(0x224)](_0x8ee2f4,_0x117d08,_0x163737),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x1fecc7['id']===Ia['id']&&(this[_0x40e4d3(0x352)]=null,this[_0x40e4d3(0x477)]()),_0x1fecc7['id']===_0x49a64c['id']){let {unitId:_0x36cf2f,subUnitId:_0x100cef,shapeId:_0x497fee}=_0x1fecc7[_0x40e4d3(0x285)];if(this[_0x40e4d3(0x352)]&&this[_0x40e4d3(0x352)]['shapeId']===_0x497fee){let _0x21a248=this['_getShapeInfo'](_0x36cf2f,_0x100cef,_0x497fee);_0x21a248&&(this['_shapeEditPanelVersion']+=0x1,_0x21a248[_0x40e4d3(0x45c)]=this[_0x40e4d3(0x328)],this[_0x40e4d3(0x352)]=_0x21a248,this[_0x40e4d3(0x229)]&&this[_0x40e4d3(0x3f1)]());}}})),this[_0x5e1751(0x45d)](this[_0x5e1751(0x444)][_0x5e1751(0x354)]['subscribe'](_0x410bc6=>{const _0x367d07=_0x5e1751;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x410bc6[_0x367d07(0x468)]===0x0){this[_0x367d07(0x352)]=null,this[_0x367d07(0x477)]();return;}if(_0x410bc6[_0x367d07(0x468)]===0x1&&_0x410bc6[0x0][_0x367d07(0x30d)]===_0x3bf95f[_0x367d07(0x24a)]&&(this[_0x367d07(0x328)]+=0x1,this[_0x367d07(0x352)]=this[_0x367d07(0x224)](_0x410bc6[0x0][_0x367d07(0x358)],_0x410bc6[0x0]['subUnitId'],_0x410bc6[0x0][_0x367d07(0x3cb)]),this['_activeShapeInfo'])){this[_0x367d07(0x3f1)]();return;}let _0x3563bc=_0x410bc6[_0x367d07(0x227)](_0x2328c2=>_0x2328c2[_0x367d07(0x30d)]===_0x3bf95f[_0x367d07(0x24a)]);if(_0x410bc6[_0x367d07(0x468)]>0x1&&_0x3563bc[_0x367d07(0x468)]===_0x410bc6[_0x367d07(0x468)]){if(this[_0x367d07(0x328)]+=0x1,this[_0x367d07(0x352)]=this[_0x367d07(0x224)](_0x410bc6[0x0][_0x367d07(0x358)],_0x410bc6[0x0]['subUnitId'],_0x410bc6[0x0][_0x367d07(0x3cb)]),this[_0x367d07(0x352)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x367d07(0x328)]+=0x1,this[_0x367d07(0x352)]=this[_0x367d07(0x224)](_0x410bc6[0x0][_0x367d07(0x358)],_0x410bc6[0x0]['subUnitId'],_0x410bc6[0x0]['drawingId']),this[_0x367d07(0x352)]){this['_activeShapeInfo'][_0x367d07(0x41b)]=!0x0,this[_0x367d07(0x3f1)]();return;}}this[_0x367d07(0x477)]();}));}[_0x356faf(0x3f1)](){const _0x5d194d=_0x356faf;this[_0x5d194d(0x352)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0x5d194d(0x2f3)]({'id':ei,'header':{'title':this[_0x5d194d(0x376)]['t'](_0x5d194d(0x2d4))},'width':0x184,'children':{'label':ei,...this[_0x5d194d(0x352)]},'onClose':()=>{const _0x23208d=_0x5d194d;this[_0x23208d(0x444)]['focusDrawing'](null),this['_contextService'][_0x23208d(0x39f)](_0x5ebd8a,!0x1),this['_sidebarDisposable']=null;}}),this[_0x5d194d(0x229)]=!0x0);}[_0x356faf(0x477)](){const _0x520880=_0x356faf;this['_isOpenedShapeEditPanel']=!0x1,this[_0x520880(0x2a4)][_0x520880(0x2fc)](ei),this['_sidebarDisposable']=null,this['_contextService'][_0x520880(0x39f)](_0x5ebd8a,!0x1),this[_0x520880(0x444)][_0x520880(0x284)](null);}};Ya=X([Y(0x0,_0x6cef99),Y(0x1,_0x2132cf(_0x1bca5a)),Y(0x2,_0x4d1e99),Y(0x3,_0x2132cf(_0x19e574)),Y(0x4,_0x2132cf(_0x4a6f46)),Y(0x5,_0x44c672),Y(0x6,_0x5f48da),Y(0x7,_0x2132cf(_0x21e7cb)),Y(0x8,_0x5625c0),Y(0x9,_0xfb1542),Y(0xa,_0x2132cf($))],Ya);let Xa=class extends _0x3b1ef5{constructor(_0x557bae=ma,_0x424cf2,_0x5ccf0b,_0x1f4476,_0x197834){const _0x1cd774=_0x356faf;super(),this[_0x1cd774(0x26f)]=_0x557bae,this[_0x1cd774(0x333)]=_0x424cf2,this['_commandService']=_0x5ccf0b,this[_0x1cd774(0x22a)]=_0x1f4476,this['_renderManagerService']=_0x197834;let {..._0x4ced89}=_0x52ebf2({},ma,this[_0x1cd774(0x26f)]);this['_configService'][_0x1cd774(0x41c)](pa,_0x4ced89),this['_initCommands']();}['onRendered'](){const _0x86e800=_0x356faf;this[_0x86e800(0x251)][_0x86e800(0x295)](_0xdbfe17[_0x86e800(0x452)],[qa]),_0x3de196(this['_injector'],[[Ya],[Ta],[Z],[Ma]]);}[_0x356faf(0x31e)](){const _0x2f3bf9=_0x356faf;this[_0x2f3bf9(0x333)][_0x2f3bf9(0x230)](Ya)[_0x2f3bf9(0x3f8)]();}[_0x356faf(0x362)](){const _0x463a56=_0x356faf;[[Oa],[Zr],[ka]][_0x463a56(0x35e)](_0x2b3efd=>this[_0x463a56(0x333)][_0x463a56(0x460)](_0x2b3efd)),_0x3de196(this[_0x463a56(0x333)],[[ka],[Zr]]),this[_0x463a56(0x251)][_0x463a56(0x295)](_0xdbfe17[_0x463a56(0x21c)],[Oa]),this[_0x463a56(0x251)][_0x463a56(0x295)](_0xdbfe17[_0x463a56(0x21c)],[ha]),this[_0x463a56(0x251)]['registerRenderModule'](_0xdbfe17['UNIVER_SHEET'],[ja]),this[_0x463a56(0x251)]['registerRenderModule'](_0xdbfe17['UNIVER_SHEET'],[ya]),this[_0x463a56(0x45d)](this[_0x463a56(0x251)][_0x463a56(0x295)](_0xdbfe17['UNIVER_SHEET'],[Ja])),this[_0x463a56(0x45d)](this[_0x463a56(0x251)][_0x463a56(0x295)](_0xdbfe17['UNIVER_SHEET'],[Wa]));}[_0x356faf(0x486)](){const _0x5a28d9=_0x356faf;this[_0x5a28d9(0x333)][_0x5a28d9(0x460)]([Ua]),this[_0x5a28d9(0x333)][_0x5a28d9(0x230)](Ua);let _0x909b6a=this[_0x5a28d9(0x333)];[[Ya],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na],[Ka]][_0x5a28d9(0x35e)](_0x4d6205=>_0x909b6a[_0x5a28d9(0x460)](_0x4d6205)),_0x3de196(this[_0x5a28d9(0x333)],[[Ya],[Ta],[Z],[Pa],[$],[wa],[Q],[Na],[Ka]]);}[_0x356faf(0x2e8)](){const _0x14d0c5=_0x356faf;[$r,K,Ia,si,oi,Qr,li,ui][_0x14d0c5(0x35e)](_0x353326=>this[_0x14d0c5(0x45d)](this['_commandService'][_0x14d0c5(0x3d3)](_0x353326)));}};q(Xa,_0x356faf(0x49d),_0xdbfe17[_0x356faf(0x21c)]),q(Xa,_0x356faf(0x3c4),'SHEET_SHAPE_UI_PLUGIN'),q(Xa,_0x356faf(0x47a),ua),q(Xa,_0x356faf(0x45c),da),Xa=X([_0x1cf835(_0x221f6b,_0x59875c,_0x4a1c45,_0x4d30e7,_0xc0fda2,_0x312ba7,_0x1070c4,_0x1cd6d8,_0xb35d1b,_0x580514,_0x4745e0,_0x5427ee,_0x12203b),Y(0x1,_0x2132cf(_0x967603)),Y(0x2,_0x44c672),Y(0x3,_0x2e8539),Y(0x4,_0xfb1542)],Xa);export{sa as SheetsShapeUIContextualRibbonSchema,la as SheetsShapeUIMenuSchema,Fa as UniverSheetsShapeMobileUIPlugin,Xa as UniverSheetsShapeUIPlugin};
1
+ const _0x38e982=_0x2e49;(function(_0x59b97c,_0x480053){const _0x25529e=_0x2e49,_0x3645de=_0x59b97c();while(!![]){try{const _0x514471=parseInt(_0x25529e(0x3c4))/0x1*(-parseInt(_0x25529e(0x360))/0x2)+parseInt(_0x25529e(0x308))/0x3+parseInt(_0x25529e(0x141))/0x4*(parseInt(_0x25529e(0x34c))/0x5)+parseInt(_0x25529e(0x3dd))/0x6+parseInt(_0x25529e(0x183))/0x7+-parseInt(_0x25529e(0x33b))/0x8+parseInt(_0x25529e(0x2a1))/0x9*(-parseInt(_0x25529e(0x144))/0xa);if(_0x514471===_0x480053)break;else _0x3645de['push'](_0x3645de['shift']());}catch(_0x3759eb){_0x3645de['push'](_0x3645de['shift']());}}}(_0x29d4,0x94775));import{FormulaShapeAnimationController as _0x5f160e,MobileShapeEditorService as _0x531a0e,SHAPE_CHANGE_PICKER_COMPONENT as _0x1d0554,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xa8ab70,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x326b6b,ShapeEditPanel as _0x46e52b,ShapeFloatingToolbar as _0x5c75fb,ShapeFloatingToolbarService as _0x17c0f2,ShapeFloatingToolbarToggleFactory as _0x5ceb83,ShapeFormulaRibbonControl as _0x2e03d4,ShapeGroupEnum as _0x1d29cc,ShapePickerDropdown as _0x51103d,ShapePickerPanel as _0x4c9f43,ShapeQuickStyleGallery as _0x772515,ShapeStyleRibbonControl as _0x1499a8,ShapeTextEditorContainer as _0x5ba1ea,ShapeTextFloatMenuRenderControllerBase as _0x54f47a,ShapeTextFloatToolbar as _0x217120,ShapeTextHyperLinkHoverController as _0x3904ee,ShapeTextHyperLinkInfo as _0x1b4edc,ShapeTextHyperLinkPopupService as _0x19e867,ShapeTextRibbonControl as _0x27e9dc,ToggleShapeFloatingToolbarOperation as _0x3e1e7a,UniverShapeEditorMobileUIPlugin as _0x22cb29,UniverShapeEditorUIPlugin as _0x1f70a8,activateDrawingObject as _0x9e13b2,bindRenderTransformerLifecycle as _0x4c4456,buildShapeTextDataUpdate as _0x7053b8,clearActiveDrawingObjects as _0x538fda,createShapeTextHyperLinkRegions as _0x4aa862,drawFormulaShapeAnimationLayers as _0x2516a4,getDrawingTypeNameKey as _0x492f89,getTextModel as _0x461fbf,getTextStyle as _0x43a739,normalizeShapeTextModel as _0x4e3a1b,plainShapeTextToDocumentData as _0x1d1969,prepareShapeTextDocumentData as _0x372037,registerShapeFormatPainter as _0x585447,resolveFormulaShapeAutoFitSize as _0x4f5c14,resolveShapeContextualRibbonHostMode as _0x163141,resolveShapeTextDocumentPageHeight as _0x3a0d3c,resolveShapeTextDocumentRenderLayout as _0x2a0578,resolveShapeTextEditorBehaviorShapeData as _0x3a71d2,resolveShapeTextEditorWrapStrategy as _0x241192,resolveShapeTextHyperLinkAt as _0x28dac3,resolveShapeTextHyperLinkObject as _0xa96c91,shouldAllowShapeTextEditorHostSizeShrink as _0x3d7e43,shouldClipShapeTextDocument as _0x21b9b3,useFormulaShapeToolbar as _0x574ef4}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a4631,ContextMenuGroup as _0x2fbb1e,ContextMenuPosition as _0x394bea,FloatingObjectToolbarPosition as _0x5cb346,FormatPainterSessionService as _0x5ea0fd,ILayoutService as _0x38c109,IMenuManagerService as _0x3d7840,IRibbonService as _0x22f46b,ISidebarService as _0x4e0164,IconManager as _0x26766a,MenuItemType as _0xbf3362,MenuManagerPosition as _0x427908,RibbonInsertGroup as _0x361031,UndoRedoGroupService as _0x302f61,UniverMobileUIPlugin as _0x2117cd,getMenuHiddenObservable as _0x520357,useDependency as _0x459a0a,useObservable as _0x3f5135}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x9a1248,ImageSourceTypeEnum as _0x39273b,ShapeArrowSizeEnum as _0x49fbc3,ShapeArrowTypeEnum as _0x32a83b,ShapeDefaultConfig as _0x436eb7,ShapeFillEnum as _0x16017b,ShapeLineTypeEnum as _0x34d8d6,ShapeModel as _0x623510,ShapeRenderModeEnum as _0x42bae9,ShapeTypeEnum as _0x321129,computeConnectorRouteLayout as _0x12fef6,getBasicShapeRotateBound as _0x39a2e7,isConnectorShape as _0x45fca5,isCurvedConnectorShape as _0x180d11,routeConnectorLineShape as _0x464f2a}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x171282,UniverShapeEditorPlugin as _0x16b801,applyQuickStyleToShapeData as _0x22b90b,cloneShapeDataForType as _0x584f1a,createShapeFormulaDocument as _0x44632b,createShapeTextBoxShapeData as _0x2c5125,getShapeQuickStylePreset as _0x140d22,getShapeQuickStyleType as _0x389c17,resolveActiveShapeQuickStylePresetId as _0xe6bf2b}from'@univerjs-pro/shape-editor';import{DEFAULT_SHAPE_HEIGHT as _0x3c21b5,DEFAULT_SHAPE_WIDTH as _0x242f37,InsertShapeCommand as _0x45fe66,InsertSheetsShapeMutation as _0x640227,RemoveSheetsShapeMutation as _0x568d3b,SetShapeDrawingDataCommand as _0x57d411,SetSheetsShapeRotateCommand as _0x261ac0,SetSheetsShapeTextVerticalToggleCommand as _0x569423,SheetsShapeService as _0x57544e,ToggleSheetsShapeFlipCommand as _0x4f77fb,UniverSheetsShapePlugin as _0x2fdc71,UpdateConnectorRelationCommand as _0x111b1f,UpdateLineShapeResizeCommand as _0x354d6f,UpdateSheetsShapeDataMutation as _0x5a5b4d}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x42ada2,BooleanNumber as _0x31e6e1,CommandType as _0x4dec04,CustomCommandExecutionError as _0x56fc1c,DependentOn as _0x5d2b6b,Disposable as _0x942aec,DisposableCollection as _0x21c758,DocumentDataModel as _0xf0569e,DrawingTypeEnum as _0x1afd9e,FOCUSING_COMMON_DRAWINGS as _0x27fe43,FOCUSING_SHAPE_TEXT_EDITOR as _0x5a8010,HorizontalAlign as _0x34ba0f,ICommandService as _0x5aac1e,IConfigService as _0x3e62ab,IContextService as _0x467548,IImageIoService as _0x34e53d,IPermissionService as _0x33574c,IURLImageService as _0x467b00,IUndoRedoService as _0x5b09e6,IUniverInstanceService as _0x5789bf,Inject as _0x304d45,Injector as _0x4cf09b,LocaleService as _0x1180ec,Plugin as _0x56cd9b,SheetTypes as _0xd3ed2e,ThemeService as _0x1d816e,Tools as _0x3b8ecf,UniverInstanceType as _0x19c9b9,VerticalAlign as _0xb24be5,createInternalEditorID as _0x270239,generateRandomId as _0x1fdb08,merge as _0x510611,registerDependencies as _0x5326a8,toDisposable as _0x3cb981,touchDependencies as _0x35c5d7}from'@univerjs/core';import{CURSOR_TYPE as _0x126c60,Circle as _0x417a06,DRAWING_OBJECT_LAYER_INDEX as _0x5c1c17,DocumentSkeleton as _0x19e223,DocumentViewModel as _0x54d20f,Documents as _0x16aae9,IRenderManagerService as _0x1fc6ff,Image as _0x21c6ff,RENDER_CLASS_TYPE as _0x4ede46,SHEET_VIEWPORT_KEY as _0xd1d04a,Shape as _0x45dea2,Transform as _0x18b849,UniverRenderEnginePlugin as _0x30c5c0,Vector2 as _0x225e34}from'@univerjs/engine-render';import{CopySheetCommand as _0x2f491b,RemoveSheetCommand as _0x56451c,SheetInterceptorService as _0x3f5c81,SheetPermissionCheckController as _0x46746e,SheetSkeletonService as _0x2e3691,SheetsSelectionsService as _0x16abf7,UniverSheetsPlugin as _0x42e7b6,WorkbookCopyPermission as _0x3527b0,WorkbookEditablePermission as _0x5d4362,WorksheetCopyPermission as _0x3feae7,WorksheetEditPermission as _0x2cc33f,attachRangeWithCoord as _0x2fe142,discreteRangeToRange as _0x1678bb,getSheetCommandTarget as _0x5290f5}from'@univerjs/sheets';import{DrawingApplyType as _0x5c3269,ISheetDrawingService as _0x1f9cb1,RemoveSheetDrawingCommand as _0x815e46,SetDrawingApplyMutation as _0x3c7ad2,SetDrawingArrangeCommand as _0x3cad82,SetSheetDrawingCommand as _0x438f96,SheetDrawingAnchorType as _0x19c1aa,UniverSheetsDrawingPlugin as _0x507ef6,applySheetDrawingPlacement as _0x44e689,transformDrawingsToChartSheet as _0x48f054,transformToAxisAlignPosition as _0x27d83c,transformToDrawingPosition as _0x3fd5de}from'@univerjs/sheets-drawing';import{COPY_TYPE as _0xaba887,ISheetClipboardService as _0x5ad4fe,PREDEFINED_HOOK_NAME as _0x48f2e3,SHEET_VIEW_KEY as _0x5e18b6,SheetCanvasPopManagerService as _0x3f309f,SheetPasteCommand as _0x4ff7a0,SheetPrintInterceptorService as _0x1b9d1a,SheetScrollManagerService as _0x4c002e,SheetSkeletonManagerService as _0x151dc3,UniverSheetsMobileUIPlugin as _0x410968,UniverSheetsUIPlugin as _0x398cc1,deriveStateFromActiveSheet$ as _0xd1ef5e,getCurrentRangeDisable$ as _0x32f5e7,getViewportByCell as _0x1aea05}from'@univerjs/sheets-ui';import{IDrawingManagerService as _0x457af4,SetDrawingSelectedOperation as _0x55fd78,UniverDrawingPlugin as _0x3c8ce8,getDrawingShapeKeyByDrawingSearch as _0x306bd8,getOrCreateDrawingCopyPlan as _0x6b5c1d}from'@univerjs/drawing';import{BehaviorSubject as _0x5384bc,EMPTY as _0x1d5ee8,Observable as _0x43994c,defer as _0x1ddfc3,distinctUntilChanged as _0x3cc419,map as _0x3f0b72,merge as _0x185653,of as _0x402dea,startWith as _0xb8ac8c,switchMap as _0x1b4a14}from'rxjs';import{DrawingCommonPanel as _0x35b2d6,DrawingImageClipService as _0x59e432,DrawingRenderService as _0x1418f0,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x768cfe,MobileObjectListPanel as _0x5f75fd,OBJECT_LIST_FLOATING_SECTION_ID as _0x337c00,ObjectListPanelBase as _0x573685,UniverDrawingUIPlugin as _0x34fb40,getCurrentUnitInfo as _0x2abb90,getObjectListPanelSectionIdForDrawingType as _0xb31f3d,insertGroupObject as _0x50c588}from'@univerjs/drawing-ui';import{MobileDropdown as _0x37ef1f}from'@univerjs/design';import{Fragment as _0x5673b6,jsx as _0xbd5fef,jsxs as _0x49dd55}from'react/jsx-runtime';import{UniverLicensePlugin as _0x457d6d}from'@univerjs-pro/license';function _0x29d4(){const _0x57c3b2=['_calculateFreeEndpointAngle','PRINTING_COMPONENT_COLLECT','GROUP','_handleConnectorPointerUp','_isShouldShowDrawingShapeAdjust','_registerComponents','disableObjectsEvent','sheet.shape.floating-toolbar','setCollapsedIds','_updateShapeAdjustControls','getFocusDrawings','pluginName','string','drawing-ui.objectListPanel.filterLocked','cxnPointRadius','getBatchAddOp','top','URL','_findShapeAtPoint','drawing-ui.objectListPanel.descriptionPlaceholder','shape-editor-ui.arrange.front','push','_activeImageId','sheets-shape-ui.editShape','SolidFill','setEditing','adjHandleFill','_updateTransform','drawing-ui.objectListPanel.noSelection','_getShapeAdjustPointListById','translateWithPrecision','stringify','setContextValue','_subUnitId','getValue','_addShapeConnectorHandlerObjects','addObject','worksheet','@univerjs-pro/sheets-shape-ui','stroke','sheets-shape-ui.permission.editErr','setFallbackVisible','changeStart$','_shapeFormulaService','_createShapeAdjustControls','refreshTransform','setHighlighted','_copyInfo','_permissions','resetCursor','abs','Medium','length','animateFormulaPresentation','onPointerMove$','_univerInstanceService','drawing-ui.objectListPanel.show','_createCopyInfoByRange','rotation','_localeService','_visible','viewportScrollX','setShapeData','permissionPointUpdate$','_registerIcons','sheets-shape-ui.formatShape','drawing-ui.objectListPanel.search','_shapeRenderController','_reset','getCurrentUnitOfType','run','with','setShapeProps','OTHERS','_getDrawingRect','sheet.command.menu-insert-shape','getDrawingByParam','_createShape','vertical-center','presentation','front','Line','contentHeight','_shapeFloatingToolbarService','_generateChartSheetCopy','image','setOnSavingEditorData','canvas','getObjectIncludeInGroup','_registerGroupFeaturePasteHook','_groupCopyPasteController','_sheetShapeAdjustController','getConnectionInfo','getSheetBySheetId','_props','next','drawing-ui.objectListPanel.filterAll','_clearShapeConnectorHandlerObjects','attachTransformerTo','sheets-shape-contextual-ribbon','_componentManager','_initCommands','getBasicShapeRelation','_activeAdjustInfo','gray.300','symbol','_registerImageShapeClipDelegate','shape-editor-ui.toolbar.changeShape','worldPoint','_onSavingEditorData$','updateContext','object','_clearCompletionFrame','transformVector2SceneCoord','shape-editor-ui.arrange.backward','_transformCalculateSrcRect','custom','Path','offsetY','update$','_activeShapeAdjustPointList','close','setFillImage','onReady','getShapeDataById','setAdjustValueByName','stopPropagation','setPresentation','updateShapeFillImage','asObservable','onload','size','drawWith','drawing-ui.objectListPanel.locate','_initPrinting','_activeShapeId','_showConnectionSites','_getShapeAdjustInfosById','get','_connectorObjects','getTransformerByCreate','getZoomRatio','backward','RIBBON','map','end','data','subscribeEvent','interceptor','sheets-shape-ui.editText','_cxtHandlerPointerMove','rect','subUnitId','60633jhQkof','getBatchRemoveOp','clearAdjustControls','_clearPopups','forEach','makeDirty','_adjHandlerPointerMove','refreshAdjustControls','presentationChanged$','_resetState','description','includes','invert','onRendered','_executeResizeCommand','_registerFocusChangeHandler','function','_isConnecting','getConnectionRelation','setShouldShowAdjust','set','UNIVER_SHEET','_sheetClipboardService','type','connection-site-','drawing-ui.objectListPanel.expand','copyId','ObjectLayersIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','addClipboardHook','_sidebarDisposable','sheets-shape-ui.ribbon.shape-format.arrange-back','drawing-ui.objectListPanel.unlock','_clearFocusedShape','updateLinePoints','MoveDownIcon','_openShapeEditPanel','fontFamily','getBentTypeFromPoints','getAdjustNames','targetShapeId','isLineShape','_getZoomRatio','_updateSrcRectByTransform','_transform','toPrimitive','getActiveViewportByCoord','getShapeTextData','isEditing','_ribbonService','filter','sheets-shape-ui.shape-format.formula-ribbon-control','DRAWING_SHAPE','diffValue','DEFAULT_PASTE','endArrow','DRAWING_IMAGE','_baseWidth','srcRect','_initEditingParams','_clearConnectionSites','unshift','cancelEditing','viewportScrollY','GRID','pick','Large','updateDocumentStyle','_sheetInterceptorService','cxnPointStrokeWidth','_updateImageAdjValues','hasDefault','_cxtHandlerPointerUp','_injector','getColorFromTheme','_disposePopups','iterator','SELECTOR','onStarting','prstGeom','_permissionService','_shapePopupMenuDisposable','cxnPointStroke','setFormulaPresentation','applyPoint','highlighted','syncExecuteCommand','_executeConnectedRouteResizeCommand','prototype','activeSheet$','_baseHeight','attachPopupToObject','gradientEndColor','onSavingEditorData$','isFinite','contentVerticalOffset','_sheetsShapeService','popup','current','width','computeConnectorResizeLayout','fillImageSourceType','ancestorTransform','3191670wYzdNc','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_formulaKey','fillType','getCurrentTypeOfUnit$','getDrawingDataForUnit','_config','_canEdit','_getScrollInfo','sheets-shape-ui.quickStyles','_generateCutPasteMutations','scene','presetId','_baseShapeHeight','restore','UPDATE','sheets-shape-ui.flipVertical','_loadAndSetImage','_update','classType','_targetShapeId','top-center','_isHighlighted','lineType','_popupMenuListener','Position','every','onDblclick$','panel','onCommandExecuted','marginTop','reduce','sheets-shape-ui.title','_isImagePointerDown','sheet.shape.edit.panel','_generatePasteMutations','startArrow','_activeAdjustPointList','getSelectedObjectMap','getDrawingOrder','MoveUpIcon','preValue','add$','_editingParams$','_generateCopyPasteMutations','subscribe','sheets-shape-ui.ribbon.shape-format.arrange-front','getRealBound','_commandService','debounceRefreshControls','setPrstGeom','2142672TMSXbg','LEFT','actions','shape-adjust-point-','_adjName','_sheetDrawingService','setSrcRect','_drawingManagerService','_getImageDrawingInfo','_initialize','canvasElement','render','SHAPE','SheetShapeTextEditorContainer','clipTop','adjName','CHART','25CEQymM','cxnIndex','keys','activeAnObject','_activeShapeModel','sheet.command.update-shape-data','_drawSimpleText','complete','_formulaShapes','_moveConnectorWithShape','getPresentation','_isStartAdjusting','redos','_lastEditingShapeKey','getInverseCoord','_initEvents','_registerDrawingFocusChangeHandler','shapeModel','extraProps','startConnectionDetection','10ESDEkZ','selectable','groupId','CHART_PAGE','UNIVER_DOC','multiply','_formulaAnimation','adjHandleSize','visible$','getShapeType','setCanUseShapeClip','sqrt','text','ang','sheetTransform','drawingId','onSteady','sheets-shape-ui.insertShape','StraightConnector1','_shapeService','_activeTargetShapeId','changeEnd$','_sidebarService','create','range','_handleConnectedEndpointPointerUp','default','sheet.operation.open-sheet-shape-format-panel','getActiveSheet','sheet.menu.shape.flip-horizontal','getRenderUnitById','_currentUniverService','cos','dataModel','_getConnectionSiteAngle','sheets-shape-ui.ribbon.shape-format.formula-control','getDrawingVisible','add','getDrawingPoints','blockExecuteWithoutPermission','_registerMoveHandler','FlipHorizontalIcon','some','translate','computeStraightConnectorLayout','_renders','values','ShapeIcon','drawing-ui.objectListPanel.sectionFloating','getCurrentScrollState','_drawRichText','_baseShapeWidth','drawing-ui.objectListPanel.moveForward','idMap','_shapeTextEditingService','find','getShapeModel','_cxnIndex','getDrawingData','left','_baseShapeTop','dispose','1.5.1','_commandExecutedListener','_shapes','fillImageSource','sin','_addShapeAdjustControl','PictureFill','_renderManagerService','scale','changing$','drawing-ui.objectListPanel.unlockAll','bottom','div','getStartConnectInfo','_createControls','clipHeight','drawing-ui.objectListPanel.moveBackward','_handleFreeEndpointMove','renderDrawingShape','mergeMenu','SHEET','defineProperty','VIEW_MAIN','_initMenu','_isOpenedShapeEditPanel','sheet.operation.open-shape-object-list-panel','_draggingConnectorId','getActualSize','indexOf','getEditing','isArray','drawingType','_contextService','decorate','version','fill','isMainScene','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','170795FSTKVY','packageName','params','DRAWING','_connectionSiteObjects','normal','_registerDrawingMoveHandler','offsetX','refreshShapeFillImage','Rect','_clearControls','_getImagePrstGeom','resize','getDrawingEffectBounds','transform','getShapeTypeById','_shapeId','formulaPresentation','unitId','registerFeaturePasteHook','_handleBasicShapeUpdateConnectorLineShape','clip-','BottomIcon','position','getDrawingEditable','7116738OkeUCz','drawing-ui.objectListPanel.filterHidden','unsubscribe','isRenderLinePointsMode','isInGroup','Arrow','_activeShapeInfo','TRUE','getSheetId','_imageIoService','_findNearestConnectionSite','drawing-ui.objectListPanel.hideAll','isHorizontal','shapeId','has','engine','getAutoFitPresentations','extensionGroups','focus','_baseTop','point','BUTTON','sheet.shape.object-list.panel','sheet.operation.open-mobile-shape-editor','getScene','FlipVerticalIcon','focusDrawing','#1a73e8','sheet.operation.apply-shape-quick-style','_index','_releaseRenderCache','localToWorld','_highlightedSiteIndex','onTransformChange$','getContextValue','sheets-shape-ui.objectListPanel.open','getUnitType','updateConnectionDetection','sheets-shape-ui.ribbon.shape-format.arrange-backward','vertical','index','style','getConfig','rightToLeft','entries','_getOrCreateShapeModel','getImageSourceCache','cxnPointFill','_sheetBasicShapeConnectionPointController','REMOVE','clip-adj-','getState','calcAdjValues','disableShapeOption','copyType','_baseShapeLeft','value','_loadShapePictureFill','drawing-ui.objectListPanel.nameInput','sheetViewStartColumn','startY','hideInfoPopup','permissionCheckWithoutRange','sheets-shape-format-font-family-menu','forward','_registerFeatureMenu','registerCommand','_baseLeft','parse','532784BTWsCI','animationEnabled','oKey','2580ygMvnp','title','hidden','_insertShapes','_clipService','onPointerDown$','drawing-ui.objectListPanel.dragToReorder','getConnectorLinePoints','objects','_hide','_getShapeInfo','_sheetPrintInterceptorService','getObject','_menuManagerService','shapeKey','undos','_executeConnectionCommand','drawing-ui.objectListPanel.sectionCanvas','adjHandleStroke','getOwnPropertyDescriptor','sheets-shape-ui.imagePanel.crop.shape','flatMap','min','getEndConnectInfo','isDrawingObject','drawing-ui.objectListPanel.name','onPointerUp$','UUID','CUT','getImage','angle','refreshFormulaPresentation','removeLinePoints','start','shape-text-','isStartConnectorPoint','parent','_isDrawingShapePointDown','createControl$','getMatrix','gray.0','clearControl$','worldPoints','getPermissionPoint','_initCopyPaste','call','editingParams$','startX','_initSelection','flipY','_addShapeConnectorHandlerObject','worldRect','isRichText','intercept','_disposed','initShapePopupMenu','INSERT','getSkeleton','_iconManager','connector-handler-','_focusedDrawings','getBatchUpdateOp','sheets-shape-ui.objectListPanel.title','3864553OOKQyn','getUnit','shapeType','_initSheetChange','drawing-ui.objectListPanel.title','OPERATION','open','_context','getShapeData','_attachAdjustEvent','drawing-ui.objectListPanel.empty','_sheetCanvasPopManagerService','getShapeTextRect','executeCommand','getAdjustValueByName','enableObjectsEvent','setCursor','shapeData','_getSceneAndTransformerByDrawingSearch','_drawRichTextLayer','_sheetPermissionCheckController','sheets-shape-ui.flipHorizontal','SHAPE_TEXT','prstGeomAdjValues','skeleton','_isStartConnectorPoint','_init','TOP','axisAlignSheetTransform','clipByShape','doc','_drawShapeText','_drawingAddListener','sheet.shape.picker.component','currentAdjustValues','remove$','COMMAND','focus$','formulaBinding','isHighlighted','isolated','_configService','_getConnectPointInfo','completeEditing','_updateAdjustControlPositions','disposeWithMe','_executeConnectedRouteConnectionCommand','sheets-shape-text-','_applyFormulaAutoFitSize','getParent','getAdjustInfoByName','sheets-shape-ui.shape-format.text-ribbon-control','_currentScene','_renderWithCache','sheets-shape-ui.shape-format.quick-style-gallery','delete','save','_setTransForm','_adjHandlerPointerUp','_shapeEditPanelVersion','changeShapeType','_closeShapeEditPanel','relation','getCurrentSkeleton','_completionFrame','sheets-shape-ui.deleteShape','_draw','getFocusedUnit','redo','VIEW_MAIN_LEFT','endConnectionDetection','from','horizontal','getUnitId','FromArray','_hyperLinkRegions','clip','components','getDrawingSearch','_currentConnectionTarget','_handleFreeEndpointPointerUp','_insertingShapeKeys','clearAdjustValue','drawing-ui.objectListPanel.showAll','_urlImageService','localeService','mode','getDrawingOKey','resolveHyperLinkAt','_rerouteConnectorLine','ShapeFormatSettingIcon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','options','adjustValues','getTransformer','setConfig','getConnectionSiteList','registerFeatureMenu','_instances','sheetViewStartRow','featurePluginUpdateNotification','_sheetDrawingShapeRenderController','_sheetSkeletonService','sheet.operation.update-shape-type','lineShapeId','drawing-ui.objectListPanel.lock','_hasReset','drawing-ui.objectListPanel.description','_clearShapeAdjustControls','_addControl','_imageShapeClipController','composeMatrix','sheets-shape-ui.ribbon.shape-format','flipX','sidebarOptions$','trim','isHitLine','_handleConnectedEndpointMove','None','shapeText','_baseDrawingRect','CROSSHAIR','pipe','transformByState','strokeWidth','reverse','getSkeletonParam','_unitId','registerRenderModule','height','visible','register','_initPermission'];_0x29d4=function(){return _0x57c3b2;};return _0x29d4();}import{DocInterceptorService as _0x28a9cc,DocSelectionManagerService as _0x1214d0,UniverDocsPlugin as _0x237574}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x34ad9a,DocEventManagerService as _0x5b3d6d,DocRenderController as _0x14e599,DocSelectionRenderService as _0xc704d0,UniverDocsUIPlugin as _0x3e7a54}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x316f41,SheetsDrawingGroupCopyPasteController as _0x372942,UniverSheetsDrawingMobileUIPlugin as _0x5ef2f9,UniverSheetsDrawingUIPlugin as _0x2be966}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5d3fb9,FlipHorizontalIcon as _0x332ddb,FlipVerticalIcon as _0x1b633e,MoveDownIcon as _0x5ac96f,MoveUpIcon as _0x415dfc,ObjectLayersIcon as _0x28a4bd,ShapeFormatSettingIcon as _0x323ccb,TopmostIcon as _0x3d647d}from'@univerjs/icons';import{memo as _0x540462,useEffect as _0x6e1245,useMemo as _0x2e7dde,useReducer as _0x5c57ec,useState as _0x4ddc5d}from'react';function Ur(_0x369e23,_0x4d3cab){const _0x42475d=_0x2e49;let _0x56f0ff={};for(let _0x21438d of Object[_0x42475d(0x34e)](_0x4d3cab)){let _0x353b8d=_0x4d3cab[_0x21438d],_0x3f5219=_0x369e23[_0x21438d];_0x56f0ff[_0x21438d]=_0x3f5219===void 0x0?void 0x0:typeof _0x353b8d==_0x42475d(0x277)&&_0x353b8d&&!Array[_0x42475d(0x3bc)](_0x353b8d)&&typeof _0x3f5219==_0x42475d(0x277)&&_0x3f5219&&!Array[_0x42475d(0x3bc)](_0x3f5219)?Ur(_0x3f5219,_0x353b8d):_0x3f5219;}return _0x56f0ff;}const K={'type':_0x4dec04[_0x38e982(0x1a7)],'id':_0x38e982(0x351),'handler':(_0x2b19ec,_0x146dc1)=>{const _0x379395=_0x38e982;let _0x43be7b=_0x2b19ec[_0x379395(0x292)](_0x57544e),{unitId:_0x5cd807,subUnitId:_0x50233d,shapeType:_0x2471d7,shapeId:_0x56935d,shapeData:_0xbebe79,replaceShapeData:_0x403504,oldShapeJSON:_0x144e46}=_0x146dc1;if(!_0x43be7b[_0x379395(0x398)](_0x5cd807,_0x50233d,_0x56935d))return!0x1;let _0x4653eb=_0x2b19ec['get'](_0x5aac1e),_0x1f7185=_0x2b19ec[_0x379395(0x292)](_0x5b09e6),{oldShapeType:_0x39b820,oldShapeData:_0x3564c3={}}=_0x144e46,_0xbf0dee=_0x403504?_0x3564c3:Ur(_0x3564c3,_0xbebe79||{}),_0x139f78={'id':_0x5a5b4d['id'],'params':{'unitId':_0x5cd807,'subUnitId':_0x50233d,'shapeId':_0x56935d,'shapeType':_0x2471d7,'shapeData':_0xbebe79,'replace':_0x403504}},_0xe0523a={'id':_0x5a5b4d['id'],'params':{'unitId':_0x5cd807,'subUnitId':_0x50233d,'shapeId':_0x56935d,'shapeType':_0x39b820,'shapeData':_0xbf0dee,'replace':_0x403504}};return _0x4653eb['syncExecuteCommand'](_0x139f78['id'],_0x139f78['params'])?(_0x1f7185['pushUndoRedo']({'unitID':_0x5cd807,'undoMutations':[_0xe0523a],'redoMutations':[_0x139f78]}),!0x0):!0x1;}};function Wr(_0x1e134c,_0x286bd5,_0x3142ad,_0xccaab,_0x5ee1fd,_0x40203f){let _0x431ce0={'unitId':_0x286bd5,'subUnitId':_0x3142ad,'shapeId':_0xccaab,'shapeData':_0x40203f,'oldShapeJSON':_0x5ee1fd};return _0x1e134c['executeCommand'](K['id'],_0x431ce0);}function Gr(_0x3dc47c,_0x560277,_0x3766f4,_0x20111c,_0x52d0d9,_0x2ca9eb){let _0x197008={'unitId':_0x560277,'subUnitId':_0x3766f4,'shapeId':_0x20111c,'shapeData':_0x2ca9eb,'oldShapeJSON':_0x52d0d9};return _0x3dc47c['executeCommand'](K['id'],_0x197008);}function Kr(_0x2add89){'@babel/helpers - typeof';const _0x1702e2=_0x38e982;return Kr=typeof Symbol=='function'&&typeof Symbol[_0x1702e2(0x2ed)]==_0x1702e2(0x271)?function(_0x23e6cd){return typeof _0x23e6cd;}:function(_0xbc5ada){const _0x5807ae=_0x1702e2;return _0xbc5ada&&typeof Symbol==_0x5807ae(0x2b1)&&_0xbc5ada['constructor']===Symbol&&_0xbc5ada!==Symbol[_0x5807ae(0x2f9)]?_0x5807ae(0x271):typeof _0xbc5ada;},Kr(_0x2add89);}function qr(_0x9874fa,_0x53f835){const _0x23bebb=_0x38e982;if(Kr(_0x9874fa)!=_0x23bebb(0x277)||!_0x9874fa)return _0x9874fa;var _0xb890a8;if(typeof Symbol<'u'&&(_0xb890a8=_0x9874fa[Symbol[_0x23bebb(0x2ce)]])!==void 0x0){var _0x471506=_0xb890a8[_0x23bebb(0x171)](_0x9874fa,_0x53f835||_0x23bebb(0x37a));if(Kr(_0x471506)!=_0x23bebb(0x277))return _0x471506;throw TypeError(_0x23bebb(0x1de));}return(_0x53f835===_0x23bebb(0x214)?String:Number)(_0x9874fa);}function Jr(_0x39220f){const _0x1f1082=_0x38e982;var _0x444f8c=qr(_0x39220f,_0x1f1082(0x214));return Kr(_0x444f8c)==_0x1f1082(0x271)?_0x444f8c:_0x444f8c+'';}function q(_0x25889d,_0x3cd933,_0x91ee1d){const _0x423edb=_0x38e982;return(_0x3cd933=Jr(_0x3cd933))in _0x25889d?Object[_0x423edb(0x3b3)](_0x25889d,_0x3cd933,{'value':_0x91ee1d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25889d[_0x3cd933]=_0x91ee1d,_0x25889d;}function Yr(_0x12a998,_0x2d95c2,_0x2b4128){const _0x2eb533=_0x38e982;let _0x547044={..._0x2d95c2,'dataModel':{..._0x2d95c2[_0x2eb533(0x381)]??{},..._0x2b4128?{'doc':_0x2b4128}:null}},_0x5559cf=_0x3a71d2(_0x12a998,_0x547044),_0x3f5fcb=_0x241192(_0x5559cf);return{'clip':_0x21b9b3(_0x5559cf,_0x3f5fcb),'wrapStrategy':_0x3f5fcb};}var J=class extends _0x45dea2{constructor(_0x489806,_0xac582d){const _0x3b3ebd=_0x38e982;super(_0x489806,_0xac582d),q(this,_0x3b3ebd(0x1ce),[]),q(this,_0x3b3ebd(0x266),void 0x0),q(this,_0x3b3ebd(0x366),new _0x5f160e(()=>this[_0x3b3ebd(0x2a6)](!0x0),()=>this[_0x3b3ebd(0x1b3)]())),q(this,_0x3b3ebd(0x27b),!0x0),q(this,'_drawingType',_0x1afd9e[_0x3b3ebd(0x2d5)]),q(this,_0x3b3ebd(0x15c),!0x0),this[_0x3b3ebd(0x266)]={..._0xac582d},this[_0x3b3ebd(0x366)][_0x3b3ebd(0x287)](_0xac582d[_0x3b3ebd(0x3d5)],_0xac582d[_0x3b3ebd(0x23d)]!==!0x1),this['_init'](),this[_0x3b3ebd(0x1b3)]();}[_0x38e982(0x19d)](){const _0x52e03f=_0x38e982;this[_0x52e03f(0x11d)][_0x52e03f(0x29b)](_0x65d37=>{const _0x28f695=_0x52e03f;this[_0x28f695(0x2cc)](_0x65d37);});}[_0x38e982(0x33a)](_0x496c85){const _0x26264e=_0x38e982;this['_props'][_0x26264e(0x2f0)]=_0x496c85;}[_0x38e982(0x1db)](_0x5a9cff){const _0x1475f9=_0x38e982;if(this[_0x1475f9(0x266)]['isEditing'])return null;let _0x5b39f4=this[_0x1475f9(0x35a)](_0x5a9cff),{width:_0x2dce7a,height:_0x5525b3}=this[_0x1475f9(0x337)]();return _0x28dac3(this['_hyperLinkRegions'],{'x':(this['flipX']?-_0x5b39f4['x']:_0x5b39f4['x'])+_0x2dce7a/0x2,'y':_0x5b39f4['y']+_0x5525b3/0x2});}['setEditing'](_0x2a8f72){const _0x4b2b34=_0x38e982;this[_0x4b2b34(0x266)]['isEditing']=_0x2a8f72,this[_0x4b2b34(0x2a6)](!0x0);}[_0x38e982(0x2f4)](_0xf816a7,_0x3650d9=!0x0){const _0x1114f5=_0x38e982;this[_0x1114f5(0x366)]['setPresentation'](_0xf816a7,_0x3650d9),this[_0x1114f5(0x266)]['formulaPresentation']=_0xf816a7,this[_0x1114f5(0x1b3)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x54d6a2=_0x38e982;let _0x3a3934=this[_0x54d6a2(0x266)][_0x54d6a2(0x35d)],_0x4ab24d=_0x3a3934[_0x54d6a2(0x2d0)](),_0xa8dbb=_0x4e3a1b(_0x4ab24d==null?void 0x0:_0x4ab24d[_0x54d6a2(0x381)]),_0x3d0bed=_0xa8dbb==null?void 0x0:_0xa8dbb['doc'],_0x10721b=this['_formulaAnimation'][_0x54d6a2(0x3ed)]();if(!_0x3d0bed||_0x10721b['length']===0x0)return;_0x3a3934[_0x54d6a2(0x276)]({'width':this[_0x54d6a2(0x304)],'height':this[_0x54d6a2(0x204)]});let _0x16b46d=_0x4f5c14({'documentData':_0x10721b[_0x54d6a2(0x298)](_0x42d1f2=>_0x44632b(_0x3d0bed,_0x42d1f2)),'height':this[_0x54d6a2(0x204)],'shapeData':_0x3a3934[_0x54d6a2(0x18b)](),'textRect':_0x3a3934[_0x54d6a2(0x18f)]({'left':0x0,'top':0x0,'width':this[_0x54d6a2(0x304)],'height':this[_0x54d6a2(0x204)]}),'width':this[_0x54d6a2(0x304)]});if(_0x16b46d){var _0x597f7c;this[_0x54d6a2(0x3d0)](_0x16b46d[_0x54d6a2(0x304)],_0x16b46d[_0x54d6a2(0x204)]),(_0x597f7c=this[_0x54d6a2(0x114)]())==null||(_0x597f7c=_0x597f7c[_0x54d6a2(0x1e1)]())==null||_0x597f7c[_0x54d6a2(0x339)]();}}get[_0x38e982(0x3d6)](){const _0x561521=_0x38e982;return this[_0x561521(0x266)][_0x561521(0x3d6)];}get[_0x38e982(0x2a0)](){const _0x15bbeb=_0x38e982;return this['_props'][_0x15bbeb(0x2a0)];}['_updateSrcRectByTransform'](_0x52ebb4){const _0x5c8aeb=_0x38e982;if(this['_props'][_0x5c8aeb(0x2db)]==null||!this[_0x5c8aeb(0x27b)])return;let {width:_0x2f5f7d,height:_0x2f77ba}=this,{width:_0x6d664c=0x0,height:_0xacf7f2=0x0}=_0x52ebb4[_0x5c8aeb(0x331)],{left:_0x45f1cc=0x0,top:_0x41171d=0x0,right:_0x21115a=0x0,bottom:_0x4f5786=0x0}=this['_props']['srcRect'],_0x5ef9ea=_0x45f1cc,_0x45bb64=_0x41171d,_0x403009=_0x21115a,_0x39e79e=_0x4f5786,_0x390d8f=!0x1;if(_0x6d664c!==0x0&&_0x6d664c!==_0x2f5f7d){let _0xf4537e=_0x45f1cc/_0x6d664c,_0x4a266e=_0x21115a/_0x6d664c;_0x5ef9ea=_0x2f5f7d*_0xf4537e,_0x403009=_0x2f5f7d*_0x4a266e,_0x390d8f=!0x0;}if(_0xacf7f2!==0x0&&_0xacf7f2!==_0x2f77ba){let _0x23a901=_0x41171d/_0xacf7f2,_0x46a22a=_0x4f5786/_0xacf7f2;_0x45bb64=_0x2f77ba*_0x23a901,_0x39e79e=_0x2f77ba*_0x46a22a,_0x390d8f=!0x0;}_0x390d8f&&this['setSrcRect']({'left':_0x5ef9ea,'top':_0x45bb64,'right':_0x403009,'bottom':_0x39e79e});}[_0x38e982(0x341)](_0x147594){const _0x462c9c=_0x38e982;this[_0x462c9c(0x266)][_0x462c9c(0x2db)]=_0x147594,this['makeDirty'](!0x0);}['setFillImage'](_0x197b2c){const _0x56186b=_0x38e982;this[_0x56186b(0x266)]['image']=_0x197b2c,this[_0x56186b(0x2a6)](!0x0);}set['transform'](_0x16af08){const _0x4b8d9f=_0x38e982;this[_0x4b8d9f(0x2cd)]=_0x16af08;}get[_0x38e982(0x3d2)](){const _0x4038cb=_0x38e982;this[_0x4038cb(0x2cd)]||this[_0x4038cb(0x1bc)]();let _0x5711d2=this[_0x4038cb(0x2cd)]['clone']();return this['transformForAngle'](_0x5711d2);}get[_0x38e982(0x35d)](){const _0x1023b9=_0x38e982;return this[_0x1023b9(0x266)][_0x1023b9(0x35d)];}get['shapeId'](){const _0x5e0882=_0x38e982;return this[_0x5e0882(0x266)][_0x5e0882(0x3ea)];}get[_0x38e982(0x31b)](){const _0x10ff32=_0x38e982;return _0x4ede46[_0x10ff32(0x347)];}[_0x38e982(0x1c5)](_0x329b06,_0x193f65,_0x4e2b94,_0x36eb0c){const _0xe7deee=_0x38e982;let _0x1966a7=this[_0xe7deee(0x266)][_0xe7deee(0x35d)];if(!_0x1966a7||!_0x193f65)return;let _0x16dfee=_0x4e2b94??this['width'],_0x566dae=_0x36eb0c??this['height'],_0x3f8242={'shapeType':_0x1966a7[_0xe7deee(0x369)](),'width':_0x16dfee,'height':_0x566dae},_0x19a7aa={'renderMode':_0x42bae9[_0xe7deee(0x27d)],'oKey':this[_0xe7deee(0x143)],'image':this[_0xe7deee(0x266)][_0xe7deee(0x25d)],'angle':this[_0xe7deee(0x162)]};_0x1966a7[_0xe7deee(0x276)](_0x3f8242),_0x329b06[_0xe7deee(0x1bb)]();let _0x1353db={'top':0x0,'left':0x0,'width':_0x16dfee,'height':_0x566dae},_0x4f61f0=_0x1966a7[_0xe7deee(0x3d1)](_0x1353db);_0x4f61f0?this[_0xe7deee(0x1b8)](_0x329b06,_0x4f61f0,_0x33c09c=>{const _0xbc23c0=_0xe7deee;_0x1966a7[_0xbc23c0(0x346)](_0x33c09c,_0x1353db,_0x19a7aa);}):(this[_0xe7deee(0x11a)](),_0x1966a7[_0xe7deee(0x346)](_0x329b06,_0x1353db,_0x19a7aa)),_0x329b06[_0xe7deee(0x316)]();let _0x58c3c4=_0x1966a7['getShapeTextData'](),_0x55b02d=_0x1966a7[_0xe7deee(0x18f)](_0x1353db),_0x2654e2=_0x1966a7[_0xe7deee(0x2ca)]();if(_0x58c3c4&&_0x55b02d&&!_0x2654e2){_0x329b06[_0xe7deee(0x1bb)](),this['getState']()[_0xe7deee(0x1f4)]&&_0x329b06[_0xe7deee(0x3a6)](-0x1,0x1);let _0x59e9e6=_0x16dfee/0x2,_0x966aba=_0x566dae/0x2;_0x329b06[_0xe7deee(0x38b)](-_0x59e9e6,-_0x966aba),_0x329b06['beginPath'](),this[_0xe7deee(0x1a2)](_0x329b06,_0x58c3c4,_0x55b02d),_0x329b06[_0xe7deee(0x316)]();}}[_0x38e982(0x386)](_0x3e88c6){}[_0x38e982(0x1a2)](_0x556f03,_0x3c1413,_0x336478){const _0x140cf6=_0x38e982;var _0x5c6b8b;this[_0x140cf6(0x1ce)]=[],this[_0x140cf6(0x266)]['isEditing']||(!((_0x5c6b8b=_0x3c1413[_0x140cf6(0x381)])!=null&&_0x5c6b8b['doc'])&&_0x140cf6(0x178)in _0x3c1413&&_0x3c1413[_0x140cf6(0x178)]===!0x1?this[_0x140cf6(0x352)](_0x556f03,_0x3c1413,_0x336478):this[_0x140cf6(0x392)](_0x556f03,_0x3c1413,_0x336478));}[_0x38e982(0x352)](_0x3fe3ca,_0x54a9d6,_0x3b1038){const _0x41a240=_0x38e982;this[_0x41a240(0x392)](_0x3fe3ca,{..._0x54a9d6,'text':_0x54a9d6[_0x41a240(0x36c)]??'','dataModel':{'doc':_0x1d1969(_0x54a9d6,_0x41a240(0x1b2)+this['oKey'])}},_0x3b1038);}['_drawRichText'](_0x49d254,_0xb36d06,_0x2b7178){const _0x1d5a62=_0x38e982;_0x2516a4(_0x49d254,this[_0x1d5a62(0x366)],(_0x4131ff,_0x3973df,_0x5142f8)=>{const _0x56b299=_0x1d5a62;this[_0x56b299(0x196)](_0x4131ff,_0xb36d06,_0x2b7178,_0x3973df,_0x5142f8===_0x56b299(0x303));});}[_0x38e982(0x196)](_0x1c9bfb,_0x4ca166,_0x2f8ff0,_0x133b92,_0x170c62){const _0x5e4125=_0x38e982;let _0x4ae360=this['_props'][_0x5e4125(0x1d8)];if(!_0x4ca166[_0x5e4125(0x381)]||!_0x4ae360)return;let _0x1962fd=_0x4e3a1b(_0x4ca166[_0x5e4125(0x381)]);if(!_0x1962fd)return;let _0x461179=_0x1962fd[_0x5e4125(0x1a1)];if(!_0x461179)return;let _0x4aeae6=_0x44632b(_0x461179,_0x133b92),_0xf977f9=_0x1962fd['va']??_0xb24be5[_0x5e4125(0x19e)],_0x79d3ca=_0x1962fd['ha']??_0x34ba0f[_0x5e4125(0x33c)],_0x4c1d74=Yr(this[_0x5e4125(0x266)][_0x5e4125(0x35d)][_0x5e4125(0x18b)](),_0x4ca166,_0x4aeae6),_0x586ae9=_0x4ca166[_0x5e4125(0x3e9)],_0x1ab685=_0x372037(_0x4aeae6,{'isHorizontal':_0x586ae9!==!0x1,'textRect':_0x2f8ff0,'verticalAlign':_0xf977f9,'horizontalAlign':_0x79d3ca,'wrapStrategy':_0x4c1d74['wrapStrategy']}),_0x4aee1b=new _0xf0569e(_0x1ab685),_0x24ca82=new _0x54d20f(_0x4aee1b),_0x2af45d=_0x19e223[_0x5e4125(0x377)](_0x24ca82,_0x4ae360);_0x2af45d['calculate']();let _0x25a3f4=_0x2af45d[_0x5e4125(0x3b9)]()['actualHeight'],_0x46a14d=_0x2a0578({'contentHeight':_0x25a3f4,'verticalAlign':_0xf977f9,'viewportHeight':_0x2f8ff0[_0x5e4125(0x204)]});_0x4aee1b[_0x5e4125(0x2e4)]({'pageSize':{'width':_0x586ae9===!0x1?_0x2f8ff0[_0x5e4125(0x204)]:_0x2f8ff0[_0x5e4125(0x304)],'height':_0x3a0d3c(_0x4aeae6,_0x46a14d[_0x5e4125(0x25a)])}}),_0x4aee1b['updateDocumentDataMargin']({'t':_0x46a14d[_0x5e4125(0x326)]}),_0x2af45d['calculate']();let _0x119850=new _0x16aae9(_0x5e4125(0x166)+this[_0x5e4125(0x143)],_0x2af45d,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5e4125(0x2a6)](!0x0)});_0x119850[_0x5e4125(0x3d0)](_0x2f8ff0[_0x5e4125(0x304)],_0x46a14d['contentHeight']),_0x1c9bfb[_0x5e4125(0x1bb)](),_0x1c9bfb[_0x5e4125(0x226)](_0x2f8ff0['left'],_0x2f8ff0[_0x5e4125(0x218)]),_0x4c1d74[_0x5e4125(0x1cf)]&&(_0x1c9bfb['beginPath'](),_0x1c9bfb[_0x5e4125(0x29f)](0x0,_0x46a14d[_0x5e4125(0x349)],_0x2f8ff0['width'],_0x46a14d[_0x5e4125(0x3ad)]),_0x1c9bfb[_0x5e4125(0x1cf)]()),_0x46a14d[_0x5e4125(0x300)]&&_0x1c9bfb[_0x5e4125(0x226)](0x0,_0x46a14d[_0x5e4125(0x300)]),_0x119850['draw'](_0x1c9bfb),_0x170c62&&(this[_0x5e4125(0x1ce)]=_0x4aa862(_0x119850,{'left':_0x2f8ff0['left'],'top':_0x2f8ff0[_0x5e4125(0x218)]+_0x46a14d[_0x5e4125(0x300)]},_0x4c1d74['clip']?{'left':_0x2f8ff0['left'],'right':_0x2f8ff0[_0x5e4125(0x39b)]+_0x2f8ff0[_0x5e4125(0x304)],'top':_0x2f8ff0[_0x5e4125(0x218)]+_0x46a14d['clipTop'],'bottom':_0x2f8ff0[_0x5e4125(0x218)]+_0x46a14d['clipTop']+_0x46a14d['clipHeight']}:void 0x0)),_0x1c9bfb[_0x5e4125(0x316)](),_0x119850[_0x5e4125(0x39d)](),_0x2af45d[_0x5e4125(0x39d)](),_0x24ca82[_0x5e4125(0x39d)](),_0x4aee1b[_0x5e4125(0x39d)]();}[_0x38e982(0x346)](_0x387919,_0x1b65c4,_0xcf2db8=!0x1){const _0x10d3ea=_0x38e982;if(!this[_0x10d3ea(0x205)])return this[_0x10d3ea(0x2a6)](!0x1),this;let {width:_0x53b5bf,height:_0x5ab4f6,left:_0x4bcc1a,top:_0x4af7ee}=this,_0x409e46=this[_0x10d3ea(0x337)]();if(_0x53b5bf=_0x409e46[_0x10d3ea(0x304)],_0x5ab4f6=_0x409e46[_0x10d3ea(0x204)],_0x4bcc1a=_0x409e46[_0x10d3ea(0x39b)],_0x4af7ee=_0x409e46[_0x10d3ea(0x218)],this['isRender'](_0x1b65c4)){let {top:_0x1dca32,left:_0x4558b8,bottom:_0x2c22ee,right:_0x27d493}=_0x1b65c4['viewBound'];if(_0x53b5bf+this[_0x10d3ea(0x1ff)]+_0x4bcc1a<_0x4558b8||_0x27d493<_0x4bcc1a||_0x5ab4f6+this['strokeWidth']+_0x4af7ee<_0x1dca32||_0x2c22ee<_0x4af7ee)return this;}let _0x490878=_0x4bcc1a+_0x53b5bf/0x2,_0x58691e=_0x4af7ee+_0x5ab4f6/0x2,_0x4a6dcc=this[_0x10d3ea(0x3d2)][_0x10d3ea(0x16b)]();if(this['_props'][_0x10d3ea(0x2d1)]){let _0x477b14=this[_0x10d3ea(0x12f)](),_0x1dba34=new _0x18b849();_0x1dba34[_0x10d3ea(0x1f2)]({..._0x477b14}),_0x4a6dcc=_0x1dba34['getMatrix']();}return _0x387919[_0x10d3ea(0x1bb)](),this[_0x10d3ea(0x266)][_0x10d3ea(0x35d)][_0x10d3ea(0x3e0)]===!0x0||_0x387919[_0x10d3ea(0x3d2)](_0x4a6dcc[0x0],_0x4a6dcc[0x1],_0x4a6dcc[0x2],_0x4a6dcc[0x3],_0x490878,_0x58691e),this[_0x10d3ea(0x1c5)](_0x387919,_0x1b65c4,_0x53b5bf,_0x5ab4f6),_0x387919[_0x10d3ea(0x316)](),this[_0x10d3ea(0x2a6)](!0x1),this;}[_0x38e982(0x35a)](_0x450783){const _0x2e1c3d=_0x38e982;let {left:_0xabc6cb,top:_0x27d8d4,width:_0x17ac48,height:_0x4751e9}=this[_0x2e1c3d(0x337)](),_0x147387=this[_0x2e1c3d(0x3d2)]['getMatrix'](),_0x57e705=_0xabc6cb+_0x17ac48/0x2,_0x4693df=_0x27d8d4+_0x4751e9/0x2,_0x589786=new _0x18b849([_0x147387[0x0],_0x147387[0x1],_0x147387[0x2],_0x147387[0x3],_0x57e705,_0x4693df]),_0x14f3a4=this[_0x2e1c3d(0x1b4)]();return(this[_0x2e1c3d(0x3e1)]&&(_0x14f3a4==null?void 0x0:_0x14f3a4['classType'])===_0x4ede46[_0x2e1c3d(0x20a)]?_0x14f3a4[_0x2e1c3d(0x307)][_0x2e1c3d(0x365)](_0x589786):_0x589786)[_0x2e1c3d(0x2ad)]()[_0x2e1c3d(0x2f5)](_0x450783);}['isHit'](_0x18f701){const _0x3b8876=_0x38e982;let {left:_0x6263fc,top:_0x545b4f,width:_0x51bd4b,height:_0x143f0c}=this[_0x3b8876(0x337)](),_0x118991=_0x6263fc+_0x51bd4b/0x2,_0x3ff985=_0x545b4f+_0x143f0c/0x2,_0x25401f=this['transform'][_0x3b8876(0x16b)](),_0x3a722c=new _0x18b849([_0x25401f[0x0],_0x25401f[0x1],_0x25401f[0x2],_0x25401f[0x3],_0x118991,_0x3ff985]),_0x3966a6=this[_0x3b8876(0x1b4)](),_0x1c5596=(this['isInGroup']&&(_0x3966a6==null?void 0x0:_0x3966a6['classType'])===_0x4ede46[_0x3b8876(0x20a)]?_0x3966a6[_0x3b8876(0x307)][_0x3b8876(0x365)](_0x3a722c):_0x3a722c)[_0x3b8876(0x2ad)]()['applyPoint'](_0x18f701),_0x5e86cf=_0x51bd4b/0x2,_0x136d1d=_0x143f0c/0x2,_0x5ad90c=this['_props']['shapeModel'];return _0x5ad90c&&_0x5ad90c[_0x3b8876(0x2ca)]()?_0x5ad90c[_0x3b8876(0x1f7)](_0x1c5596['x'],_0x1c5596['y'],_0x51bd4b,_0x143f0c):_0x1c5596['x']>=-_0x5e86cf-this['strokeWidth']/0x2&&_0x1c5596['x']<=_0x5e86cf+this[_0x3b8876(0x1ff)]/0x2&&_0x1c5596['y']>=-_0x136d1d-this['strokeWidth']/0x2&&_0x1c5596['y']<=_0x136d1d+this['strokeWidth']/0x2;}[_0x38e982(0x39d)](){const _0x55add6=_0x38e982;this['_formulaAnimation'][_0x55add6(0x39d)](),this['_props'][_0x55add6(0x35d)]=null,super[_0x55add6(0x39d)]();}},Xr=class extends _0x45dea2{constructor(_0x4f9e65,_0x45d43a){const _0x4a5717=_0x38e982;super(_0x4f9e65,_0x45d43a),q(this,_0x4a5717(0x3d4),null),q(this,_0x4a5717(0x33f),null),q(this,_0x4a5717(0x202),null),q(this,'_subUnitId',null),_0x45d43a&&this['setShapeProps'](_0x45d43a);}[_0x38e982(0x1d1)](){const _0x46e5f9=_0x38e982;return{'unitId':this[_0x46e5f9(0x202)],'subUnitId':this[_0x46e5f9(0x229)],'drawingId':this[_0x46e5f9(0x3d4)]};}[_0x38e982(0x250)](_0x5f1e51){const _0x55f7da=_0x38e982;_0x5f1e51['shapeId']!==void 0x0&&(this[_0x55f7da(0x3d4)]=_0x5f1e51[_0x55f7da(0x3ea)]),_0x5f1e51[_0x55f7da(0x34a)]!==void 0x0&&(this[_0x55f7da(0x33f)]=_0x5f1e51[_0x55f7da(0x34a)]),_0x5f1e51['unitId']!==void 0x0&&(this[_0x55f7da(0x202)]=_0x5f1e51[_0x55f7da(0x3d6)]),_0x5f1e51[_0x55f7da(0x2a0)]!==void 0x0&&(this[_0x55f7da(0x229)]=_0x5f1e51[_0x55f7da(0x2a0)]),this[_0x55f7da(0x1fe)]({'width':_0x5f1e51['width'],'height':_0x5f1e51['height']});}[_0x38e982(0x1c5)](_0x1b4677){const _0x3b06e2=_0x38e982;_0x417a06[_0x3b06e2(0x28c)](_0x1b4677,{'radius':_0x436eb7['adjHandleSize'],'fill':_0x436eb7[_0x3b06e2(0x222)],'stroke':_0x436eb7[_0x3b06e2(0x156)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x270af7,_0x33d60d){return function(_0x342d96,_0x375298){_0x33d60d(_0x342d96,_0x375298,_0x270af7);};}function X(_0x475fc1,_0xdf66bc,_0x43774e,_0x2e8e50){const _0x40a8f8=_0x38e982;var _0x4cce9e=arguments[_0x40a8f8(0x23c)],_0x5acc0e=_0x4cce9e<0x3?_0xdf66bc:_0x2e8e50===null?_0x2e8e50=Object[_0x40a8f8(0x157)](_0xdf66bc,_0x43774e):_0x2e8e50,_0x166583;if(typeof Reflect==_0x40a8f8(0x277)&&typeof Reflect[_0x40a8f8(0x3bf)]==_0x40a8f8(0x2b1))_0x5acc0e=Reflect[_0x40a8f8(0x3bf)](_0x475fc1,_0xdf66bc,_0x43774e,_0x2e8e50);else{for(var _0x3c1da2=_0x475fc1[_0x40a8f8(0x23c)]-0x1;_0x3c1da2>=0x0;_0x3c1da2--)(_0x166583=_0x475fc1[_0x3c1da2])&&(_0x5acc0e=(_0x4cce9e<0x3?_0x166583(_0x5acc0e):_0x4cce9e>0x3?_0x166583(_0xdf66bc,_0x43774e,_0x5acc0e):_0x166583(_0xdf66bc,_0x43774e))||_0x5acc0e);}return _0x4cce9e>0x3&&_0x5acc0e&&Object[_0x40a8f8(0x3b3)](_0xdf66bc,_0x43774e,_0x5acc0e),_0x5acc0e;}let Z=class extends _0x942aec{constructor(_0x1cf5db,_0x345639,_0x4a9c4f,_0x597d71,_0x8093e,_0x363ff9){const _0x5c339c=_0x38e982;super(),this[_0x5c339c(0x342)]=_0x1cf5db,this[_0x5c339c(0x301)]=_0x345639,this[_0x5c339c(0x243)]=_0x4a9c4f,this[_0x5c339c(0x3e6)]=_0x597d71,this['_urlImageService']=_0x8093e,this[_0x5c339c(0x233)]=_0x363ff9,q(this,'_formulaShapes',new Map()),this[_0x5c339c(0x1b0)](this['_shapeFormulaService'][_0x5c339c(0x2a9)][_0x5c339c(0x335)](_0x5c30ca=>{const _0x367b5b=_0x5c339c;var _0x3381f4;(_0x3381f4=this[_0x367b5b(0x354)][_0x367b5b(0x292)](this[_0x367b5b(0x30a)](_0x5c30ca[_0x367b5b(0x3d6)],_0x5c30ca[_0x367b5b(0x2a0)],_0x5c30ca[_0x367b5b(0x3ea)])))==null||_0x3381f4[_0x367b5b(0x2a5)](_0x14ad21=>_0x14ad21[_0x367b5b(0x2f4)](_0x5c30ca[_0x367b5b(0x257)],_0x5c30ca[_0x367b5b(0x142)]));})),this[_0x5c339c(0x1b0)](this[_0x5c339c(0x342)][_0x5c339c(0x1a6)][_0x5c339c(0x335)](_0x401657=>{const _0x476ea8=_0x5c339c;_0x401657[_0x476ea8(0x2a5)](_0x3c7396=>{const _0x1c0ee1=_0x476ea8;this[_0x1c0ee1(0x354)][_0x1c0ee1(0x1ba)](this['_formulaKey'](_0x3c7396['unitId'],_0x3c7396['subUnitId'],_0x3c7396[_0x1c0ee1(0x36f)]));});}));}[_0x38e982(0x3b0)](_0x4f0e73,_0x513822,_0x1a9e70){const _0x1d46d5=_0x38e982;let {transform:_0x58041d,drawingType:_0x3cc6c8,isMultiTransform:_0x426368,transforms:_0x219a83}=_0x4f0e73;if(_0x3cc6c8===_0x1afd9e['DRAWING_SHAPE']&&this[_0x1d46d5(0x342)][_0x1d46d5(0x384)]()&&_0x58041d)return(_0x426368&&_0x219a83?_0x219a83:[_0x58041d])[_0x1d46d5(0x159)]((_0x688748,_0x3a14dd)=>{const _0x21ddd5=_0x1d46d5;var _0x11b41d;let _0x372c09=_0x306bd8(_0x4f0e73,_0x426368?_0x3a14dd:void 0x0),_0x4cdd99=_0x513822[_0x21ddd5(0x260)](_0x372c09);if(_0x4cdd99)return _0x4cdd99 instanceof J&&this[_0x21ddd5(0x163)](_0x4cdd99,{'unitId':_0x4f0e73[_0x21ddd5(0x3d6)],'subUnitId':_0x4f0e73[_0x21ddd5(0x2a0)],'shapeId':_0x4f0e73[_0x21ddd5(0x36f)]}),_0x4cdd99['transformByState'](_0x688748),[];let _0xd440a3=this[_0x21ddd5(0x255)](_0x4f0e73,_0x688748,_0x372c09,_0x513822);if(!_0xd440a3)return[];let _0x45710d=this[_0x21ddd5(0x135)](_0xd440a3,_0xd440a3['shapeModel'][_0x21ddd5(0x18b)]());return _0x45710d&&(_0x1a9e70==null||(_0x11b41d=_0x1a9e70['resourceCollector'])==null||_0x11b41d[_0x21ddd5(0x385)](_0x45710d)),[_0xd440a3];});}[_0x38e982(0x255)](_0x2fd826,_0x4b0a4a,_0x317b30,_0x50aeb9){const _0x58d9a5=_0x38e982;let {unitId:_0x43d287,subUnitId:_0x45b620,drawingId:_0x3df111,groupId:_0x12ffd4,hidden:_0x5e624c,selectable:_0x4d9fef,prstGeom:_0x3ebe38,srcRect:_0x1531b1}=_0x2fd826,_0x46946a=this[_0x58d9a5(0x301)][_0x58d9a5(0x398)](_0x43d287,_0x45b620,_0x3df111);if(!_0x46946a)return;let _0x32c21c=this[_0x58d9a5(0x342)][_0x58d9a5(0x32f)](_0x43d287,_0x45b620),_0x3b49e2=_0x32c21c[_0x58d9a5(0x3ba)](_0x3df111),_0x3d44bb=_0x45fca5(_0x46946a[_0x58d9a5(0x369)]()),_0x33d911=_0x46946a[_0x58d9a5(0x18b)]()[_0x58d9a5(0x1a9)],_0x1503d7={'unitId':_0x43d287,'subUnitId':_0x45b620,'shapeId':_0x3df111};_0x33d911&&this[_0x58d9a5(0x233)]['register'](_0x1503d7,_0x33d911);let _0x325cfc=new J(_0x317b30,{..._0x4b0a4a,'zIndex':_0x3b49e2===-0x1?_0x32c21c[_0x58d9a5(0x23c)]-0x1:_0x3b49e2,'shapeModel':_0x46946a,'drawingType':_0x1afd9e[_0x58d9a5(0x2d5)],'localeService':this[_0x58d9a5(0x243)],'shapeId':_0x3df111,'unitId':_0x43d287,'subUnitId':_0x45b620,'visible':_0x5e624c!==!0x0,'evented':_0x4d9fef!==!0x1,'formulaPresentation':_0x33d911?this[_0x58d9a5(0x233)]['getPresentation'](_0x1503d7):void 0x0,'animateFormulaPresentation':(_0x33d911==null?void 0x0:_0x33d911[_0x58d9a5(0x142)])!==!0x1,'transformerConfig':{..._0xa8ab70,..._0x3d44bb?{'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{},'moveBoundaryEnabled':!0x0}});if(_0x33d911){let _0x4fdd99=this['_formulaKey'](_0x43d287,_0x45b620,_0x3df111),_0x355b16=this[_0x58d9a5(0x354)]['get'](_0x4fdd99)??new Set();_0x355b16[_0x58d9a5(0x385)](_0x325cfc),this[_0x58d9a5(0x354)][_0x58d9a5(0x2b5)](_0x4fdd99,_0x355b16);}return _0x50aeb9[_0x58d9a5(0x22c)](_0x325cfc,_0x5c1c17),this[_0x58d9a5(0x342)][_0x58d9a5(0x3dc)]()&&_0x50aeb9[_0x58d9a5(0x26a)](_0x325cfc),_0x12ffd4&&_0x50c588({'drawingId':_0x12ffd4,'unitId':_0x43d287,'subUnitId':_0x45b620},_0x325cfc,_0x50aeb9,this[_0x58d9a5(0x342)]),_0x3ebe38!=null&&_0x325cfc[_0x58d9a5(0x33a)](_0x3ebe38),_0x1531b1!=null&&_0x325cfc[_0x58d9a5(0x341)](_0x1531b1),_0x325cfc;}[_0x38e982(0x30a)](_0x2ac45f,_0xa147fa,_0x1022d0){return _0x2ac45f+'\x00'+_0xa147fa+'\x00'+_0x1022d0;}[_0x38e982(0x163)](_0x434ef0,_0xe65c5f){const _0x522223=_0x38e982;let _0x31b12f=this[_0x522223(0x301)]['getShapeModel'](_0xe65c5f[_0x522223(0x3d6)],_0xe65c5f[_0x522223(0x2a0)],_0xe65c5f[_0x522223(0x3ea)]),_0x1b3edb=_0x31b12f==null?void 0x0:_0x31b12f[_0x522223(0x18b)]()['formulaBinding'],_0x261ee4=this[_0x522223(0x30a)](_0xe65c5f[_0x522223(0x3d6)],_0xe65c5f[_0x522223(0x2a0)],_0xe65c5f[_0x522223(0x3ea)]);if(_0x1b3edb){this[_0x522223(0x233)][_0x522223(0x206)](_0xe65c5f,_0x1b3edb);let _0x26e30a=this['_formulaShapes'][_0x522223(0x292)](_0x261ee4)??new Set();_0x26e30a['add'](_0x434ef0),this['_formulaShapes'][_0x522223(0x2b5)](_0x261ee4,_0x26e30a);}else{var _0x58d179;this[_0x522223(0x233)]['unregister'](_0xe65c5f),(_0x58d179=this['_formulaShapes'][_0x522223(0x292)](_0x261ee4))==null||_0x58d179[_0x522223(0x1ba)](_0x434ef0);}_0x434ef0[_0x522223(0x2f4)](_0x1b3edb?this[_0x522223(0x233)][_0x522223(0x356)](_0xe65c5f):void 0x0,(_0x1b3edb==null?void 0x0:_0x1b3edb['animationEnabled'])!==!0x1);}[_0x38e982(0x3cc)](_0x5d52db){const _0xfb2e88=_0x38e982;let _0x197aeb=_0x5d52db['shapeModel'][_0xfb2e88(0x18b)](),_0xb646ae=_0x197aeb['fill'];!_0xb646ae||_0xb646ae['fillType']!==_0x16017b[_0xfb2e88(0x3a4)]||!_0xb646ae[_0xfb2e88(0x3a1)]?_0x5d52db[_0xfb2e88(0x282)](void 0x0):this['_loadShapePictureFill'](_0x5d52db,_0x197aeb);}[_0x38e982(0x135)](_0x2e143e,_0x327dac){const _0x53e3f0=_0x38e982;let _0x64efa9=_0x327dac[_0x53e3f0(0x3c1)];if(!_0x64efa9||_0x64efa9[_0x53e3f0(0x30b)]!==_0x16017b[_0x53e3f0(0x3a4)]||!_0x64efa9['fillImageSource'])return;let _0x3e9f5c=_0x64efa9['fillImageSource'],_0x5b68df=_0x64efa9[_0x53e3f0(0x306)]??_0x39273b[_0x53e3f0(0x219)],_0x22285f=this[_0x53e3f0(0x3e6)][_0x53e3f0(0x12a)](_0x3e9f5c,_0x5b68df);if(_0x22285f)_0x2e143e[_0x53e3f0(0x282)](_0x22285f);else return this['_loadAndSetImage'](_0x2e143e,_0x3e9f5c,_0x5b68df);}async[_0x38e982(0x319)](_0x326138,_0x2733cd,_0x87a5c4){const _0x1ec270=_0x38e982;let _0xf57756;try{if(_0x87a5c4===_0x39273b[_0x1ec270(0x15f)])_0xf57756=await this['_imageIoService'][_0x1ec270(0x161)](_0x2733cd);else{if(_0x87a5c4===_0x39273b[_0x1ec270(0x219)])try{_0xf57756=await this[_0x1ec270(0x1d7)][_0x1ec270(0x161)](_0x2733cd);}catch{_0xf57756=_0x2733cd;}else _0xf57756=_0x2733cd;}}catch(_0x5a7ae8){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x5a7ae8);return;}await new Promise(_0x3a9490=>{const _0x34d3eb=_0x1ec270;let _0xbdc86b=new window['Image']();_0xbdc86b[_0x34d3eb(0x28a)]=()=>{const _0x15d3ab=_0x34d3eb;this[_0x15d3ab(0x3e6)]['addImageSourceCache'](_0x2733cd,_0x87a5c4,_0xbdc86b),_0x326138['setFillImage'](_0xbdc86b),_0x3a9490();},_0xbdc86b['onerror']=()=>{const _0x30b49a=_0x34d3eb;console['error'](_0x30b49a(0x3c3),_0x2733cd),_0x3a9490();},_0xbdc86b['src']=_0xf57756;});}};Z=X([Y(0x0,_0x457af4),Y(0x1,_0x304d45(_0x57544e)),Y(0x2,_0x304d45(_0x1180ec)),Y(0x3,_0x34e53d),Y(0x4,_0x467b00),Y(0x5,_0x304d45(_0x171282))],Z);let Zr=class extends _0x942aec{constructor(_0x268dfe,_0x552928,_0x4ef127,_0x73d482,_0x4ad89b,_0x635d33){const _0x4af575=_0x38e982;super(),this[_0x4af575(0x342)]=_0x268dfe,this[_0x4af575(0x301)]=_0x552928,this[_0x4af575(0x3a5)]=_0x4ef127,this[_0x4af575(0x1e8)]=_0x73d482,this[_0x4af575(0x23f)]=_0x4ad89b,this[_0x4af575(0x338)]=_0x635d33,q(this,_0x4af575(0x28f),null),q(this,_0x4af575(0x202),null),q(this,_0x4af575(0x229),null),q(this,_0x4af575(0x280),void 0x0),q(this,'_shapes',[]),q(this,_0x4af575(0x133),0x0),q(this,_0x4af575(0x39c),0x0),q(this,_0x4af575(0x393),0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x4af575(0x357),!0x1),q(this,_0x4af575(0x26f),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x4af575(0x2a7),void 0x0),q(this,_0x4af575(0x1bd),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x4af575(0x35c)](),this[_0x4af575(0x3ca)]();}[_0x38e982(0x225)](_0x309994,_0x32f45d,_0x1ae1a9){const _0x597474=_0x38e982;let _0x288f86=this[_0x597474(0x301)][_0x597474(0x398)](_0x309994,_0x32f45d,_0x1ae1a9);if(_0x288f86)return _0x288f86[_0x597474(0x386)]();}[_0x38e982(0x2a3)](){this['_clearShapeAdjustControls']();}[_0x38e982(0x2a8)](){const _0x45133f=_0x38e982;this[_0x45133f(0x211)](!0x0);}[_0x38e982(0x2b4)](_0x3b3641){this['_isShouldShowDrawingShapeAdjust']=_0x3b3641;}[_0x38e982(0x291)](_0x17aa78,_0x2a8ae0,_0x376818,_0x43c413){const _0x369752=_0x38e982;let _0x96f7c4=this['_sheetsShapeService'][_0x369752(0x398)](_0x17aa78,_0x2a8ae0,_0x376818);if(_0x96f7c4)return _0x96f7c4[_0x369752(0x1b5)](_0x43c413);}[_0x38e982(0x234)](_0x52c85f=!0x1){const _0x40ba86=_0x38e982;if(this[_0x40ba86(0x202)]===null||this[_0x40ba86(0x229)]===null||this['_activeShapeId']===null)return;let _0x181560=this[_0x40ba86(0x3a5)][_0x40ba86(0x37e)](this[_0x40ba86(0x202)]);if(!_0x181560||!_0x181560[_0x40ba86(0x24f)](_0x151dc3)[_0x40ba86(0x1c2)]())return;let {scene:_0x14b8ee}=_0x181560,_0xd8d6af={'unitId':this[_0x40ba86(0x202)],'subUnitId':this[_0x40ba86(0x229)],'drawingId':this[_0x40ba86(0x28f)]},_0x4de768=this[_0x40ba86(0x342)]['getDrawingByParam'](_0xd8d6af),{transform:_0x150ba0}=_0x4de768;if(!_0x150ba0||_0x4de768[_0x40ba86(0x3bd)]!==_0x1afd9e[_0x40ba86(0x2d5)])return;let {left:_0xdcdcbc,top:_0x5e221c,width:_0x24207a,height:_0x30508b,flipX:_0x12679a,flipY:_0x4e511c,angle:_0x44a09a=0x0}=_0x150ba0;if(_0xdcdcbc===void 0x0||_0x5e221c===void 0x0)return;if(_0x52c85f){let _0x116599=this[_0x40ba86(0x301)][_0x40ba86(0x398)](this[_0x40ba86(0x202)],this[_0x40ba86(0x229)],this['_activeShapeId']);_0x116599==null||_0x116599[_0x40ba86(0x276)]({'width':_0x24207a??0x0,'height':_0x30508b??0x0}),this[_0x40ba86(0x280)]=_0x116599==null?void 0x0:_0x116599['getDrawingPoints']();}let _0x5837d1=this['_activeShapeAdjustPointList'];for(let _0x1373ea=0x0;_0x1373ea<_0x5837d1[_0x40ba86(0x23c)];_0x1373ea++){let _0x5f3e53=_0x5837d1[_0x1373ea],_0x4ce68c=_0x5f3e53['x'],_0x147f76=_0x5f3e53['y'];if(_0x12679a&&(_0x4ce68c=(_0x24207a||0x0)-_0x4ce68c),_0x4e511c&&(_0x147f76=(_0x30508b||0x0)-_0x147f76),_0x44a09a!==0x0){let _0x1cd6d3=(_0x24207a||0x0)/0x2,_0x4d75b3=(_0x30508b||0x0)/0x2,_0x4ade03=_0x44a09a*Math['PI']/0xb4,_0x10af0c=Math[_0x40ba86(0x380)](_0x4ade03),_0x525fca=Math[_0x40ba86(0x3a2)](_0x4ade03),_0xd563f8=_0x4ce68c-_0x1cd6d3,_0x4c02e6=_0x147f76-_0x4d75b3;_0x4ce68c=_0x1cd6d3+(_0xd563f8*_0x10af0c-_0x4c02e6*_0x525fca),_0x147f76=_0x4d75b3+(_0xd563f8*_0x525fca+_0x4c02e6*_0x10af0c);}let _0x28505b={'x':_0x4ce68c,'y':_0x147f76,'adjName':_0x5f3e53['adjName']};this[_0x40ba86(0x3a3)](_0x14b8ee,_0x28505b,_0x28505b[_0x40ba86(0x34a)],_0xdcdcbc,_0x5e221c,this[_0x40ba86(0x202)],this[_0x40ba86(0x229)]);}}[_0x38e982(0x211)](_0x142f98=!0x1){const _0x56fcf1=_0x38e982;_0x142f98&&(this[_0x56fcf1(0x1ef)](),this[_0x56fcf1(0x234)](_0x142f98));}[_0x38e982(0x3a3)](_0x439d74,_0x516841,_0x208ca6,_0x27fef3,_0x5785e5,_0x123389,_0x48c004){const _0x4c3b06=_0x38e982;if(!this['_activeShapeId'])return;let _0x47211a=_0x439d74[_0x4c3b06(0x260)](_0x4c3b06(0x33e)+this['_activeShapeId']+'-'+_0x208ca6);if(_0x47211a){_0x47211a[_0x4c3b06(0x1fe)]({'left':_0x516841['x']+_0x27fef3-_0x436eb7[_0x4c3b06(0x367)],'top':_0x516841['y']+_0x5785e5-_0x436eb7[_0x4c3b06(0x367)]});return;}let _0x11fc52={'left':_0x516841['x']+_0x27fef3-_0x436eb7[_0x4c3b06(0x367)],'top':_0x516841['y']+_0x5785e5-_0x436eb7[_0x4c3b06(0x367)],'adjName':_0x208ca6,'shapeId':this[_0x4c3b06(0x28f)],'unitId':_0x123389,'subUnitId':_0x48c004,'width':_0x436eb7['adjHandleSize']+0x8,'height':_0x436eb7[_0x4c3b06(0x367)]+0x8,'zIndex':_0x5c1c17+0x1,'evented':!0x0},_0x51702f=new Xr(_0x4c3b06(0x33e)+this[_0x4c3b06(0x28f)]+'-'+_0x208ca6,_0x11fc52);this[_0x4c3b06(0x3a0)]['push'](_0x51702f),this[_0x4c3b06(0x18c)](_0x51702f,_0x439d74,_0x208ca6),_0x439d74[_0x4c3b06(0x22c)](_0x51702f,_0x5c1c17+0x1);}[_0x38e982(0x1ef)](){const _0x5e7719=_0x38e982;this[_0x5e7719(0x3a0)][_0x5e7719(0x23c)]!==0x0&&(this[_0x5e7719(0x3a0)][_0x5e7719(0x2a5)](_0x269a54=>{const _0xe766f=_0x5e7719;_0x269a54[_0xe766f(0x39d)]();}),this[_0x5e7719(0x3a0)]=[]);}[_0x38e982(0x1af)](){this['_createShapeAdjustControls']();}[_0x38e982(0x310)](_0x3a42c9,_0x1fdc15){const _0x398112=_0x38e982;var _0x16b66b;let _0x807aaa={'x':0x0,'y':0x0};if(!_0x3a42c9||!_0x1fdc15)return _0x807aaa;let _0x3e67f8=this[_0x398112(0x3a5)][_0x398112(0x37e)](_0x3a42c9);if(!_0x3e67f8||!_0x3e67f8[_0x398112(0x24f)](_0x151dc3)[_0x398112(0x17d)](_0x1fdc15))return _0x807aaa;let _0x2f7d22=_0x3e67f8[_0x398112(0x24f)](_0x4c002e),_0x17fb97=_0x2f7d22==null?void 0x0:_0x2f7d22['getCurrentScrollState']();if(!_0x17fb97)return _0x807aaa;let _0x1fde7f=(_0x16b66b=this[_0x398112(0x23f)][_0x398112(0x184)](_0x3a42c9))==null?void 0x0:_0x16b66b[_0x398112(0x265)](_0x1fdc15);if(!_0x1fde7f)return _0x807aaa;let _0x204201=_0x1aea05(_0x17fb97['sheetViewStartRow'],_0x17fb97['sheetViewStartColumn'],_0x3e67f8[_0x398112(0x313)],_0x1fde7f);return _0x204201?{'x':_0x204201[_0x398112(0x245)],'y':_0x204201[_0x398112(0x2e0)]}:_0x807aaa;}['_getZoomRatio'](_0xb9a09c,_0x56eea7){const _0x17f11b=_0x38e982;var _0x53bb43;let _0x3f2306=(_0x53bb43=this[_0x17f11b(0x23f)][_0x17f11b(0x184)](_0xb9a09c))==null?void 0x0:_0x53bb43[_0x17f11b(0x265)](_0x56eea7);return(_0x3f2306==null?void 0x0:_0x3f2306[_0x17f11b(0x295)]())??0x1;}[_0x38e982(0x18c)](_0x1d8979,_0x27bfbd,_0x8109a){const _0x3343cc=_0x38e982;this[_0x3343cc(0x1b0)](_0x3cb981(_0x1d8979[_0x3343cc(0x149)]['subscribeEvent']((_0xbb276c,_0x2366c8)=>{const _0x16166d=_0x3343cc;var _0x7c8be7,_0x43913e,_0x524fcf,_0x2e04e0;let _0x5db37d=_0x1d8979[_0x16166d(0x1d1)]();this[_0x16166d(0x26f)]=this['_getShapeAdjustInfosById'](_0x5db37d['unitId'],_0x5db37d[_0x16166d(0x2a0)],_0x5db37d['drawingId'],_0x8109a),this[_0x16166d(0x350)]=this[_0x16166d(0x301)][_0x16166d(0x398)](_0x5db37d[_0x16166d(0x3d6)],_0x5db37d['subUnitId'],_0x5db37d[_0x16166d(0x36f)]);let _0x342b26=this[_0x16166d(0x342)]['getDrawingByParam']({'unitId':this[_0x16166d(0x202)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x16166d(0x28f)]}),{transform:_0x3c5c04}=_0x342b26;if(_0x3c5c04){let {left:_0x1300b0,top:_0x11682c,width:_0x2efc6e,height:_0x117868}=_0x3c5c04;this['_baseShapeLeft']=_0x1300b0||0x0,this[_0x16166d(0x39c)]=_0x11682c||0x0,this[_0x16166d(0x393)]=_0x2efc6e||0x0,this['_baseShapeHeight']=_0x117868||0x0;}let _0x280e6c=!!((_0x7c8be7=_0x342b26[_0x16166d(0x3d2)])!=null&&_0x7c8be7['flipX']),_0x27591a=!!((_0x43913e=_0x342b26['transform'])!=null&&_0x43913e[_0x16166d(0x175)]),_0x154136=((_0x524fcf=_0x342b26['transform'])==null?void 0x0:_0x524fcf['angle'])||0x0;this[_0x16166d(0x357)]=!0x0,_0x27bfbd['disableObjectsEvent']();let _0x1a7326={...((_0x2e04e0=this['_activeAdjustInfo'])==null?void 0x0:_0x2e04e0[_0x16166d(0x1a5)])??{}};this[_0x16166d(0x2a7)]=_0x27bfbd[_0x16166d(0x23e)]['subscribeEvent']((_0xf78cb8,_0x15de88)=>{const _0x5bfd96=_0x16166d;if(!this[_0x5bfd96(0x357)])return;let {offsetX:_0x1259d4,offsetY:_0x385e74}=_0xf78cb8,_0x2eb944=this[_0x5bfd96(0x26f)];if(this['_activeShapeModel']&&_0x2eb944){_0x27bfbd[_0x5bfd96(0x20e)](),_0x27bfbd[_0x5bfd96(0x193)](_0x126c60['CROSSHAIR']);let _0x2cd562={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x38b9bc=this[_0x5bfd96(0x310)](this[_0x5bfd96(0x202)],this[_0x5bfd96(0x229)]),_0x3c1458=this[_0x5bfd96(0x2cb)](this[_0x5bfd96(0x202)],this[_0x5bfd96(0x229)]),_0x439d4a=_0x1259d4/_0x3c1458+_0x38b9bc['x']-this[_0x5bfd96(0x133)],_0x510db2=_0x385e74/_0x3c1458+_0x38b9bc['y']-this[_0x5bfd96(0x39c)];if(_0x154136!==0x0){let _0x6ae0ae=this[_0x5bfd96(0x393)]/0x2,_0x438bc8=this[_0x5bfd96(0x315)]/0x2,_0x3bf75f=_0x154136*Math['PI']/0xb4,_0x2d3519=Math['cos'](_0x3bf75f),_0x186580=Math['sin'](_0x3bf75f),_0x573530=_0x439d4a-_0x6ae0ae,_0x4eb6de=_0x510db2-_0x438bc8;_0x439d4a=_0x6ae0ae+(_0x573530*_0x2d3519+_0x4eb6de*_0x186580),_0x510db2=_0x438bc8+(-_0x573530*_0x186580+_0x4eb6de*_0x2d3519);}_0x280e6c&&(_0x439d4a=this['_baseShapeWidth']-_0x439d4a),_0x27591a&&(_0x510db2=this[_0x5bfd96(0x315)]-_0x510db2);let _0x2bb09c={'x':_0x439d4a,'y':_0x510db2},_0x4b3d43=this[_0x5bfd96(0x350)][_0x5bfd96(0x130)](_0x2cd562,_0x2bb09c,_0x2eb944,_0x280e6c,_0x27591a);if(Object[_0x5bfd96(0x34e)](_0x4b3d43)[_0x5bfd96(0x23c)]===0x0)return;for(let [_0x21f002,_0x22c871]of Object['entries'](_0x4b3d43))this[_0x5bfd96(0x350)][_0x5bfd96(0x285)](_0x21f002,_0x22c871);this[_0x5bfd96(0x350)][_0x5bfd96(0x276)]({'width':this[_0x5bfd96(0x393)],'height':this['_baseShapeHeight']});let _0x1bf300=this[_0x5bfd96(0x342)][_0x5bfd96(0x254)]({'unitId':_0x5db37d[_0x5bfd96(0x3d6)],'subUnitId':_0x5db37d['subUnitId'],'drawingId':_0x5db37d[_0x5bfd96(0x36f)]});_0x1bf300&&(this[_0x5bfd96(0x1e8)][_0x5bfd96(0x3b0)](_0x1bf300,_0x27bfbd),this[_0x5bfd96(0x280)]=this[_0x5bfd96(0x225)](_0x5db37d[_0x5bfd96(0x3d6)],_0x5db37d[_0x5bfd96(0x2a0)],_0x5db37d[_0x5bfd96(0x36f)]),this['_updateAdjustControlPositions']());}_0x15de88[_0x5bfd96(0x286)]();}),this[_0x16166d(0x1bd)]=_0x27bfbd[_0x16166d(0x15e)]['subscribeEvent']((_0x52268d,_0x55d2fc)=>{const _0x30637c=_0x16166d;this[_0x30637c(0x2a7)][_0x30637c(0x3df)](),this[_0x30637c(0x1bd)][_0x30637c(0x3df)](),_0x27bfbd[_0x30637c(0x239)]();let _0x3c15c4=this[_0x30637c(0x26f)];if(_0x3c15c4){let _0x2d06a5=_0x5db37d[_0x30637c(0x3d6)],_0x593203=_0x5db37d['subUnitId'],_0x1fbb91=_0x5db37d[_0x30637c(0x36f)],_0x504a21={};for(let _0x317e76 of Object[_0x30637c(0x34e)](_0x3c15c4['currentAdjustValues'])){var _0x27c03a;let _0x9b04e2=(_0x27c03a=this[_0x30637c(0x350)])==null?void 0x0:_0x27c03a['getAdjustValueByName'](_0x317e76);_0x9b04e2!==void 0x0&&(_0x504a21[_0x317e76]=_0x9b04e2);}Object[_0x30637c(0x34e)](_0x504a21)[_0x30637c(0x23c)]>0x0&&Wr(this[_0x30637c(0x338)],_0x2d06a5,_0x593203,_0x1fbb91,{'oldShapeData':{'adjustValues':_0x1a7326}},{'adjustValues':_0x504a21});}this[_0x30637c(0x26f)]=void 0x0,this[_0x30637c(0x350)]=void 0x0,this[_0x30637c(0x357)]=!0x1,_0x55d2fc['stopPropagation'](),_0x27bfbd['enableObjectsEvent']();}),_0x2366c8[_0x16166d(0x286)]();})));}[_0x38e982(0x3ca)](){const _0x54a4a1=_0x38e982;let _0x30cdc6=this[_0x54a4a1(0x23f)][_0x54a4a1(0x30c)](_0x19c9b9[_0x54a4a1(0x2b6)]);this['disposeWithMe'](_0x30cdc6[_0x54a4a1(0x1fd)](_0x1b4a14(_0x183da9=>_0x183da9?_0x183da9[_0x54a4a1(0x2fa)]['pipe'](_0x1b4a14(_0x23305d=>{const _0x439fc9=_0x54a4a1;if(!_0x23305d)return _0x1d5ee8;let _0x4f79f0=_0x183da9['getUnitId'](),_0x369228=this[_0x439fc9(0x3a5)]['getRenderUnitById'](_0x4f79f0),_0x19cd93=_0x369228==null?void 0x0:_0x369228[_0x439fc9(0x313)];return _0x19cd93?_0x402dea(_0x19cd93):_0x1d5ee8;})):_0x1d5ee8))[_0x54a4a1(0x335)](_0x3157cd=>{const _0x53f0d4=_0x54a4a1;let _0x4fc5a6=_0x3157cd[_0x53f0d4(0x294)]();this[_0x53f0d4(0x1b0)](_0x3157cd[_0x53f0d4(0x23e)][_0x53f0d4(0x29b)](()=>{const _0x3ff023=_0x53f0d4;this[_0x3ff023(0x20c)];})),this[_0x53f0d4(0x1b0)](_0x4fc5a6[_0x53f0d4(0x232)]['subscribe'](_0x31ee8a=>{const _0x4cbf71=_0x53f0d4;let {objects:_0x4cf5b7}=_0x31ee8a;this[_0x4cbf71(0x234)](),_0x4cf5b7!==null&&_0x4cf5b7['size']===0x1&&_0x4cf5b7[_0x4cbf71(0x38e)]()[_0x4cbf71(0x267)]()['value']instanceof J&&this[_0x4cbf71(0x2b4)](!0x0);})),this['disposeWithMe'](_0x4fc5a6[_0x53f0d4(0x3a7)][_0x53f0d4(0x335)](()=>{const _0x20c85d=_0x53f0d4;this['_isShouldShowDrawingShapeAdjust']&&this[_0x20c85d(0x1ef)]();})),this[_0x53f0d4(0x1b0)](_0x3157cd['onPointerUp$'][_0x53f0d4(0x29b)](()=>{const _0x39822a=_0x53f0d4;this[_0x39822a(0x20c)]&&(this[_0x39822a(0x2b4)](!0x1),this[_0x39822a(0x234)]());})),this[_0x53f0d4(0x1b0)](_0x4fc5a6[_0x53f0d4(0x375)][_0x53f0d4(0x335)](()=>{const _0x24586b=_0x53f0d4;this['_unitId']&&this['_subUnitId']&&this[_0x24586b(0x28f)]&&this[_0x24586b(0x342)][_0x24586b(0x254)]({'unitId':this[_0x24586b(0x202)],'subUnitId':this[_0x24586b(0x229)],'drawingId':this['_activeShapeId']})&&(this[_0x24586b(0x280)]=this[_0x24586b(0x225)](this['_unitId'],this[_0x24586b(0x229)],this['_activeShapeId']),this[_0x24586b(0x1af)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x494844=_0x38e982;this[_0x494844(0x1b0)](this[_0x494844(0x338)][_0x494844(0x325)](_0x30b019=>{const _0x399f0f=_0x494844;if(_0x30b019['id']!==_0x5a5b4d['id'])return;let {unitId:_0x42a2ef,subUnitId:_0x397ec7,shapeId:_0x3011ea}=_0x30b019[_0x399f0f(0x3c6)];_0x42a2ef===this[_0x399f0f(0x202)]&&_0x397ec7===this['_subUnitId']&&_0x3011ea===this[_0x399f0f(0x28f)]&&this[_0x399f0f(0x2a8)]();})),this[_0x494844(0x1b0)](this[_0x494844(0x342)][_0x494844(0x1a8)][_0x494844(0x335)](_0x86aeb5=>{const _0xc21856=_0x494844;if(_0x86aeb5[_0xc21856(0x23c)]===0x1){let _0x383ccd=_0x86aeb5[0x0];if(_0x383ccd[_0xc21856(0x3bd)]===_0x1afd9e[_0xc21856(0x2d5)]&&this[_0xc21856(0x23f)][_0xc21856(0x120)](_0x383ccd[_0xc21856(0x3d6)])===_0x19c9b9[_0xc21856(0x2b6)]){this[_0xc21856(0x28f)]=_0x383ccd[_0xc21856(0x36f)];let {unitId:_0x16ec15,subUnitId:_0x3f2a0a}=_0x383ccd;this[_0xc21856(0x280)]=this[_0xc21856(0x225)](_0x16ec15,_0x3f2a0a,this[_0xc21856(0x28f)]),this[_0xc21856(0x202)]=_0x16ec15,this[_0xc21856(0x229)]=_0x3f2a0a,this[_0xc21856(0x1ef)](),this[_0xc21856(0x234)]();return;}}this['_activeShapeId']=null,this[_0xc21856(0x280)]=void 0x0,this[_0xc21856(0x202)]=null,this[_0xc21856(0x229)]=null,this['_clearShapeAdjustControls']();})),this['disposeWithMe'](this[_0x494844(0x342)][_0x494844(0x27f)][_0x494844(0x335)](_0x1d9d1b=>{const _0x5ce2b3=_0x494844;if(_0x1d9d1b[_0x5ce2b3(0x23c)]===0x1){var _0xb67927;let _0xa3701d=_0x1d9d1b[0x0];((_0xb67927=this[_0x5ce2b3(0x342)][_0x5ce2b3(0x254)](_0xa3701d))==null?void 0x0:_0xb67927['drawingType'])===_0x1afd9e[_0x5ce2b3(0x2d5)]&&this[_0x5ce2b3(0x211)](!0x0);}})),this[_0x494844(0x1b0)](this['_drawingManagerService'][_0x494844(0x1a6)][_0x494844(0x335)](_0x448989=>{const _0x135f9f=_0x494844;for(let _0x27d26e of _0x448989)this[_0x135f9f(0x28f)]===_0x27d26e[_0x135f9f(0x36f)]&&(this['_activeShapeId']=null,this[_0x135f9f(0x280)]=void 0x0,this[_0x135f9f(0x202)]=null,this[_0x135f9f(0x229)]=null,this['_clearShapeAdjustControls']());}));}};Zr=X([Y(0x0,_0x457af4),Y(0x1,_0x304d45(_0x57544e)),Y(0x2,_0x304d45(_0x1fc6ff)),Y(0x3,_0x304d45(Z)),Y(0x4,_0x5789bf),Y(0x5,_0x5aac1e)],Zr);const Qr={'id':'drawing.operation.set-drawing-active','type':_0x4dec04[_0x38e982(0x188)],'handler':(_0x52f8c3,_0x12fecf)=>{const _0x3fd496=_0x38e982;let _0x162942=_0x52f8c3[_0x3fd496(0x292)](_0x457af4),_0x596d24=_0x52f8c3[_0x3fd496(0x292)](_0x1fc6ff),_0xd3dcb6=_0x52f8c3[_0x3fd496(0x292)](Zr);if(_0x12fecf==null)return!0x0;if(_0x12fecf['length']>0x0){var _0x1315ca;let _0xd1b57e=(_0x1315ca=_0x596d24[_0x3fd496(0x37e)](_0x12fecf[0x0][_0x3fd496(0x3d6)]))==null?void 0x0:_0x1315ca[_0x3fd496(0x313)];if(_0xd1b57e){let {unitId:_0x13a622,subUnitId:_0x380a67,drawingId:_0x1c8001}=_0x12fecf[0x0],_0x3ee16e=_0x306bd8({'unitId':_0x13a622,'subUnitId':_0x380a67,'drawingId':_0x1c8001},void 0x0),_0x5c3084=_0xd1b57e['getObjectIncludeInGroup'](_0x3ee16e);if(_0x5c3084){var _0x134ac0;(_0x134ac0=_0x596d24[_0x3fd496(0x37e)](_0x12fecf[0x0]['unitId']))==null||(_0x134ac0=_0x134ac0[_0x3fd496(0x313)][_0x3fd496(0x1e1)]())==null||_0x134ac0[_0x3fd496(0x34f)](_0x5c3084);}}_0x162942['focusDrawing'](_0x12fecf),_0xd3dcb6[_0x3fd496(0x2b4)](!0x1);}return!0x0;}},$r={'type':_0x4dec04['COMMAND'],'id':_0x38e982(0x253),'handler':async(_0x54f68b,_0x19d8df)=>{const _0x20af17=_0x38e982;var _0x5b8a7f,_0x40ecbc;let _0x178c62=_0x5290f5(_0x54f68b[_0x20af17(0x292)](_0x5789bf));if(!_0x178c62)return!0x1;let {unitId:_0x223cc6,subUnitId:_0x15a8f7,worksheet:_0x392e5e}=_0x178c62,_0x5ce3ab=_0x392e5e[_0x20af17(0x126)](),_0x23f6a7=_0x5ce3ab[_0x20af17(0x2b8)]??_0xd3ed2e[_0x20af17(0x2e1)];if(_0x23f6a7!==_0xd3ed2e[_0x20af17(0x2e1)]&&_0x23f6a7!==_0xd3ed2e['CHART'])return!0x1;let _0x2a8d75=_0x54f68b[_0x20af17(0x292)](_0x33574c);if(((_0x5b8a7f=_0x2a8d75[_0x20af17(0x16f)](new _0x5d4362(_0x223cc6)['id']))==null?void 0x0:_0x5b8a7f[_0x20af17(0x134)])!==!0x0||((_0x40ecbc=_0x2a8d75[_0x20af17(0x16f)](new _0x2cc33f(_0x223cc6,_0x15a8f7)['id']))==null?void 0x0:_0x40ecbc[_0x20af17(0x134)])!==!0x0)return!0x1;let _0x32818b=_0x54f68b[_0x20af17(0x292)](_0x5aac1e),{value:_0x4d89d1,enhanceParams:_0x5749d9}=_0x19d8df,_0x2d6a84={'unitId':_0x223cc6,'subUnitId':_0x15a8f7,'shapeType':_0x4d89d1,'shapeId':_0x1fdb08()};if(_0x23f6a7===_0xd3ed2e[_0x20af17(0x34b)]){let _0x74441e=_0x54f68b[_0x20af17(0x292)](_0x1fc6ff)[_0x20af17(0x37e)](_0x223cc6),_0x3d33b4=_0x74441e==null?void 0x0:_0x74441e[_0x20af17(0x1d0)]['get'](_0x5e18b6[_0x20af17(0x363)]);if(!_0x74441e||!_0x3d33b4||![_0x3d33b4[_0x20af17(0x39b)],_0x3d33b4[_0x20af17(0x218)],_0x3d33b4[_0x20af17(0x304)],_0x3d33b4[_0x20af17(0x204)]][_0x20af17(0x322)](Number[_0x20af17(0x2ff)])||_0x3d33b4['width']<=0x0||_0x3d33b4[_0x20af17(0x204)]<=0x0)return!0x1;let _0x311a3f={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x53c196=_0x48f054([{'unitId':_0x223cc6,'subUnitId':_0x15a8f7,'drawingId':_0x2d6a84[_0x20af17(0x3ea)],'drawingType':_0x1afd9e['DRAWING_SHAPE'],'transform':{'left':0x0,'top':0x0,'width':_0x242f37,'height':_0x3c21b5},'sheetTransform':{'from':_0x311a3f,'to':_0x311a3f},'axisAlignSheetTransform':{'from':_0x311a3f,'to':_0x311a3f}}],{'left':_0x3d33b4[_0x20af17(0x39b)],'top':_0x3d33b4[_0x20af17(0x218)],'width':_0x3d33b4[_0x20af17(0x304)],'height':_0x3d33b4[_0x20af17(0x204)]},_0x5ce3ab[_0x20af17(0x127)]===_0x31e6e1['TRUE']);if(!(_0x53c196!=null&&_0x53c196['length']))return!0x1;let _0x287095=_0x53c196[0x0][_0x20af17(0x3d2)];_0x2d6a84[_0x20af17(0x3db)]={'x':_0x287095[_0x20af17(0x39b)],'y':_0x287095[_0x20af17(0x218)]},_0x2d6a84[_0x20af17(0x304)]=_0x287095[_0x20af17(0x304)],_0x2d6a84['height']=_0x287095[_0x20af17(0x204)];}else{let _0x5c695b=_0x54f68b[_0x20af17(0x292)](_0x16abf7)['getCurrentLastSelection']();if(!_0x5c695b)return!0x1;_0x2d6a84[_0x20af17(0x378)]=_0x5c695b['range'];}if(_0x5749d9){let {startArrow:_0x2379eb,endArrow:_0x44af01,horizontal:_0x32b950,vertical:_0x528561}=_0x5749d9,_0x22a76b=_0x45fca5(_0x4d89d1),_0x34be46=_0x4d89d1===_0x321129[_0x20af17(0x3cd)];if(_0x22a76b&&(_0x2379eb||_0x44af01)&&(_0x2d6a84['shapeData']={'ln':{'startArrow':_0x2379eb?{'type':_0x32a83b[_0x20af17(0x3e2)],'size':_0x49fbc3[_0x20af17(0x23b)]}:void 0x0,'endArrow':_0x44af01?{'type':_0x32a83b[_0x20af17(0x3e2)],'size':_0x49fbc3[_0x20af17(0x2e3)]}:void 0x0}}),_0x34be46&&(_0x32b950||_0x528561)){let _0x4bd277=_0x54f68b['get'](_0x1d816e);_0x2d6a84[_0x20af17(0x194)]=_0x2c5125({'fill':{'fillType':_0x16017b[_0x20af17(0x220)],'color':_0x4bd277[_0x20af17(0x2eb)](_0x20af17(0x16c))},'isHorizontal':!!_0x32b950,'stroke':{'lineStrokeType':_0x34d8d6['SolidLine'],'width':0x1,'color':_0x4bd277[_0x20af17(0x2eb)](_0x20af17(0x270))}});}}let _0x38420f=_0x32818b[_0x20af17(0x2f7)](_0x45fe66['id'],_0x2d6a84);return _0x38420f&&await _0x32818b[_0x20af17(0x190)](Qr['id'],[{'unitId':_0x223cc6,'subUnitId':_0x15a8f7,'drawingId':_0x2d6a84[_0x20af17(0x3ea)]}]),_0x38420f;}},ei=_0x38e982(0x32a),ti=_0x38e982(0x112),ni=_0x38e982(0x20f),ri=_0x38e982(0x1f3),ii=_0x270239(_0x38e982(0x199)),ai='sheet.shape.text.float-menu',oi={'id':_0x38e982(0x3b7),'type':_0x4dec04['COMMAND'],'handler':(_0x52f57e,_0x36fdb2)=>{const _0x482ee8=_0x38e982;let _0x11e01a=_0x52f57e[_0x482ee8(0x292)](_0x4e0164),_0x51ff82=_0x52f57e['get'](_0x1180ec),_0x4155a2=_0x52f57e['get'](_0x5789bf),_0x39e834=_0x52f57e[_0x482ee8(0x292)](_0x5aac1e);return _0x5290f5(_0x4155a2)?(_0x36fdb2==null?void 0x0:_0x36fdb2[_0x482ee8(0x134)])===_0x482ee8(0x281)?(_0x11e01a[_0x482ee8(0x281)](ti),!0x0):(_0x11e01a[_0x482ee8(0x189)]({'id':ti,'header':{'title':_0x51ff82['t'](_0x482ee8(0x182))},'children':{'label':ti},'onClose':()=>{_0x39e834['syncExecuteCommand'](_0x55fd78['id'],[]);},'width':0x168}),!0x0):!0x1;}},si={'type':_0x4dec04['OPERATION'],'id':_0x38e982(0x37b),'handler'(){return!0x0;}};function ci(_0x4f7d76){const _0x4cd17e=_0x38e982;let _0x5dc9eb=_0x4f7d76[_0x4cd17e(0x292)](_0x457af4)[_0x4cd17e(0x212)](),_0x579e80=_0x5dc9eb['length']===0x1?_0x5dc9eb[0x0]:null;if(!_0x579e80||_0x579e80[_0x4cd17e(0x3bd)]!==_0x1afd9e[_0x4cd17e(0x2d5)])return null;let _0x5bb834=_0x4f7d76[_0x4cd17e(0x292)](_0x57544e),_0x24cc6d=_0x5bb834[_0x4cd17e(0x3d3)](_0x579e80[_0x4cd17e(0x3d6)],_0x579e80[_0x4cd17e(0x2a0)],_0x579e80[_0x4cd17e(0x36f)]),_0x15d353=_0x5bb834['getShapeDataById'](_0x579e80[_0x4cd17e(0x3d6)],_0x579e80[_0x4cd17e(0x2a0)],_0x579e80[_0x4cd17e(0x36f)]);return _0x24cc6d===void 0x0||!_0x15d353?null:{'drawing':_0x579e80,'shapeData':_0x15d353,'shapeType':_0x24cc6d};}const li={'id':_0x38e982(0x118),'type':_0x4dec04['OPERATION'],'handler':(_0x420615,_0x481940)=>{const _0x24159d=_0x38e982;let _0x22483f=ci(_0x420615),_0x5e527b=_0x140d22((_0x481940==null?void 0x0:_0x481940[_0x24159d(0x314)])??(_0x481940==null?void 0x0:_0x481940[_0x24159d(0x134)])??'');if(!_0x22483f||!_0x5e527b||_0x5e527b['type']!==_0x389c17(_0x22483f[_0x24159d(0x194)]))return!0x1;let _0xa5a5a9=_0x22b90b(_0x22483f[_0x24159d(0x194)],_0x5e527b);if(!_0xa5a5a9)return!0x1;let {drawing:_0x5ba011}=_0x22483f;return _0x420615[_0x24159d(0x292)](_0x5aac1e)[_0x24159d(0x190)](K['id'],{'unitId':_0x5ba011['unitId'],'subUnitId':_0x5ba011[_0x24159d(0x2a0)],'shapeId':_0x5ba011[_0x24159d(0x36f)],'shapeData':_0xa5a5a9,'oldShapeJSON':{'oldShapeData':_0x22483f[_0x24159d(0x194)]}});}},ui={'id':_0x38e982(0x1ea),'type':_0x4dec04['OPERATION'],'handler':(_0x271337,_0x3e7158)=>{const _0x52cc2c=_0x38e982;let _0x315a9c=ci(_0x271337),_0x577ba6=(_0x3e7158==null?void 0x0:_0x3e7158[_0x52cc2c(0x185)])??(_0x3e7158==null?void 0x0:_0x3e7158['value']);if(!_0x315a9c||!_0x577ba6||_0x45fca5(_0x315a9c['shapeType'])||_0x45fca5(_0x577ba6))return!0x1;let _0x2ea8d5=_0x584f1a(_0x315a9c[_0x52cc2c(0x194)],_0x577ba6);if(!_0x2ea8d5)return!0x1;let {drawing:_0x4d7dc1}=_0x315a9c;return _0x271337[_0x52cc2c(0x292)](_0x5aac1e)[_0x52cc2c(0x190)](K['id'],{'unitId':_0x4d7dc1[_0x52cc2c(0x3d6)],'subUnitId':_0x4d7dc1[_0x52cc2c(0x2a0)],'shapeId':_0x4d7dc1[_0x52cc2c(0x36f)],'shapeType':_0x577ba6,'shapeData':_0x2ea8d5,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x315a9c[_0x52cc2c(0x185)],'oldShapeData':_0x315a9c[_0x52cc2c(0x194)]}});}};let Q=class extends _0x942aec{constructor(_0x249b8e,_0x284b19){const _0x10f24a=_0x38e982;super(),this[_0x10f24a(0x148)]=_0x249b8e,this[_0x10f24a(0x342)]=_0x284b19,this['_registerImageShapeClipDelegate'](),this[_0x10f24a(0x148)][_0x10f24a(0x36a)](!0x0),this[_0x10f24a(0x1b0)]({'dispose':()=>this[_0x10f24a(0x148)][_0x10f24a(0x36a)](!0x1)});}[_0x38e982(0x272)](){const _0x38458e=_0x38e982;let _0x1fd90e=this['_clipService'],_0x5880cd=new Map(),_0x16a26e=_0x1fd90e['registerClipDelegate']((_0x3b783e,_0x49b9ec,_0x4fe75d,_0x18e332,_0x4b43ae)=>{const _0x1807c0=_0x2e49;let _0x3ee649=_0x49b9ec;if(_0x3ee649===_0x321129[_0x1807c0(0x1f9)]||_0x49b9ec===_0x1807c0(0x27c))return!0x1;try{let _0xde6aae=_0x5880cd['get'](_0x49b9ec);return _0xde6aae||(_0xde6aae=new _0x623510(_0x3ee649,_0x1807c0(0x3d9)+_0x49b9ec),_0x5880cd[_0x1807c0(0x2b5)](_0x49b9ec,_0xde6aae)),_0xde6aae['clearAdjustValue'](),_0x4b43ae&&Object[_0x1807c0(0x34e)](_0x4b43ae)[_0x1807c0(0x23c)]>0x0&&_0xde6aae[_0x1807c0(0x246)]({'adjustValues':_0x4b43ae},!0x0),_0xde6aae[_0x1807c0(0x276)]({'width':_0x4fe75d,'height':_0x18e332}),_0xde6aae['buildClipPath'](_0x3b783e,{'left':0x0,'top':0x0,'width':_0x4fe75d,'height':_0x18e332});}catch{return!0x1;}});this[_0x38458e(0x1b0)](_0x16a26e),this[_0x38458e(0x1b0)]({'dispose':()=>_0x5880cd['clear']()});}[_0x38e982(0x1a0)](_0x5e177f,_0x3a7bf1,_0x1bbbe6,_0x40bf60,_0x54b576){const _0x5eed63=_0x38e982;let _0x2612a3=this[_0x5eed63(0x342)]['getDrawingData'](_0x5e177f,_0x3a7bf1);if(!_0x2612a3[_0x1bbbe6])return;let _0x3aea80={..._0x2612a3[_0x1bbbe6],'prstGeom':_0x40bf60,'adjustValues':_0x54b576};this[_0x5eed63(0x342)][_0x5eed63(0x1e7)]([_0x3aea80]);}};Q=X([Y(0x0,_0x304d45(_0x59e432)),Y(0x1,_0x304d45(_0x457af4))],Q);const di=_0x38e982(0x1a4),fi='sheet.image-clip.shape-picker.component';function pi({onShapeClick:_0x75ad2d,excludeGroups:_0x163f78}){const _0x55c37e=_0x38e982;return _0xbd5fef(_0x4c9f43,{'excludeGroups':_0x163f78,'onShapeClick':_0x75ad2d,'scrollContainer':_0x55c37e(0x168)});}function mi(){const _0x2d89d5=_0x38e982;let _0x40d866=_0x459a0a(_0x457af4),_0x54b6b1=_0x459a0a(Q);return _0xbd5fef(_0x51103d,{'buttonLabel':_0x2d89d5(0x158),'excludeGroups':[_0x1d29cc[_0x2d89d5(0x259)]],'onShapeClick':_0x384ddd=>{const _0x3dfb4a=_0x2d89d5;let _0x533115=_0x40d866[_0x3dfb4a(0x212)]()[_0x3dfb4a(0x397)](_0xdc5f42=>_0xdc5f42[_0x3dfb4a(0x3bd)]===_0x1afd9e[_0x3dfb4a(0x2d9)]);if(!_0x533115)return;let {unitId:_0x51ccce,subUnitId:_0x39877a,drawingId:_0x28bc92}=_0x533115;_0x54b6b1['clipByShape'](_0x51ccce,_0x39877a,_0x28bc92,_0x384ddd['type']);}});}function hi(){const _0x4b374c=_0x38e982;let _0x4e8da6=_0x459a0a(_0x457af4),_0x3b9ea7=_0x459a0a(Q);return _0xbd5fef(_0x51103d,{'buttonLabel':_0x4b374c(0x158),'excludeGroups':[_0x1d29cc[_0x4b374c(0x259)]],'DropdownComponent':_0x37ef1f,'onShapeClick':_0x4b34c6=>{const _0x570a74=_0x4b374c;let _0xcd0810=_0x4e8da6[_0x570a74(0x212)]()[_0x570a74(0x397)](_0x2c6d81=>_0x2c6d81[_0x570a74(0x3bd)]===_0x1afd9e[_0x570a74(0x2d9)]);if(!_0xcd0810)return;let {unitId:_0x58c6d9,subUnitId:_0x390477,drawingId:_0x17510d}=_0xcd0810;_0x3b9ea7[_0x570a74(0x1a0)](_0x58c6d9,_0x390477,_0x17510d,_0x4b34c6[_0x570a74(0x2b8)]);}});}function gi(){const _0xfbc72c=_0x38e982;let _0x308700=_0x459a0a(_0x5a4631),_0x12f481=_0x459a0a(_0x457af4),_0x2a5bb6=_0x459a0a(_0x5789bf),_0x32ebe7=_0x12f481[_0xfbc72c(0x212)]()[0x0],_0xba0b74=_0x32ebe7?_0x2a5bb6['getUnitType'](_0x32ebe7[_0xfbc72c(0x3d6)]):void 0x0,_0x38b1b0=_0xba0b74===_0x19c9b9['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0xba0b74===_0x19c9b9['UNIVER_SHEET']?fi:void 0x0,_0x144f2a=_0x38b1b0?_0x308700[_0xfbc72c(0x292)](_0x38b1b0):void 0x0;return _0x144f2a?_0xbd5fef(_0x144f2a,{}):null;}function _i(){let _0x2f6b81=_0x459a0a(_0x5aac1e);return _0xbd5fef(pi,{'onShapeClick':_0x3487b6=>{const _0x50cce9=_0x2e49;_0x2f6b81['executeCommand']($r['id'],{'value':_0x3487b6[_0x50cce9(0x2b8)],'enhanceParams':{'endArrow':_0x3487b6[_0x50cce9(0x2d8)],'startArrow':_0x3487b6[_0x50cce9(0x32c)],'horizontal':_0x3487b6[_0x50cce9(0x1cb)],'vertical':_0x3487b6[_0x50cce9(0x123)]}});}});}function vi(){return _0xbd5fef(_i,{});}function yi(_0x30896e){const _0x317c32=_0x38e982;return _0xd1ef5e(_0x30896e[_0x317c32(0x292)](_0x5789bf),!0x0,({workbook:_0x2bed41,worksheet:_0x423007})=>{const _0x1c27ef=_0x317c32;let _0x41765e=_0x423007[_0x1c27ef(0x126)]()[_0x1c27ef(0x2b8)]??_0xd3ed2e[_0x1c27ef(0x2e1)];if(_0x41765e===_0xd3ed2e[_0x1c27ef(0x2e1)])return _0x32f5e7(_0x30896e);if(_0x41765e!==_0xd3ed2e[_0x1c27ef(0x34b)])return _0x402dea(!0x0);let _0x330c33=_0x30896e[_0x1c27ef(0x292)](_0x33574c),_0x4bbd88=[new _0x5d4362(_0x2bed41[_0x1c27ef(0x1cc)]())['id'],new _0x2cc33f(_0x2bed41['getUnitId'](),_0x423007[_0x1c27ef(0x3e5)]())['id']];return _0x330c33[_0x1c27ef(0x247)][_0x1c27ef(0x1fd)](_0xb8ac8c(null),_0x3f0b72(()=>_0x4bbd88[_0x1c27ef(0x38a)](_0x36eb55=>{const _0x51a1f0=_0x1c27ef;var _0x30e1f6;return((_0x30e1f6=_0x330c33[_0x51a1f0(0x16f)](_0x36eb55))==null?void 0x0:_0x30e1f6['value'])!==!0x0;})),_0x3cc419());});}function bi(_0x552182){const _0x11740e=_0x38e982;let _0x56c71b=_0x552182[_0x11740e(0x292)](_0x5789bf);return{'id':$r['id'],'type':_0xbf3362['SELECTOR'],'selections':[{'label':{'name':di,'hoverable':!0x1,'selectable':!0x1,'props':{'id':$r['id']}}}],'icon':_0x11740e(0x38f),'tooltip':_0x11740e(0x371),'activated$':_0xd1ef5e(_0x56c71b,!0x1,()=>new _0x43994c(_0x59d7e1=>{const _0x347fd8=_0x11740e;_0x59d7e1[_0x347fd8(0x267)](!0x1);})),'hidden$':_0x520357(_0x552182,_0x19c9b9['UNIVER_SHEET']),'disabled$':yi(_0x552182)};}function xi(_0xe5cb03){const _0x3130b8=_0x38e982;return _0xd1ef5e(_0xe5cb03[_0x3130b8(0x292)](_0x5789bf),!0x0,({workbook:_0x26bf3d,worksheet:_0x1f0825})=>{const _0x42f649=_0x3130b8;let _0x19aaf1=_0x1f0825[_0x42f649(0x126)]()[_0x42f649(0x2b8)]??_0xd3ed2e[_0x42f649(0x2e1)];if(_0x19aaf1===_0xd3ed2e['GRID'])return _0x32f5e7(_0xe5cb03);if(_0x19aaf1!==_0xd3ed2e[_0x42f649(0x34b)])return _0x402dea(!0x0);let _0xcd4180=_0xe5cb03[_0x42f649(0x292)](_0x33574c),_0x2f9ca8=[new _0x5d4362(_0x26bf3d[_0x42f649(0x1cc)]())['id'],new _0x2cc33f(_0x26bf3d[_0x42f649(0x1cc)](),_0x1f0825[_0x42f649(0x3e5)]())['id']];return _0xcd4180[_0x42f649(0x247)][_0x42f649(0x1fd)](_0xb8ac8c(null),_0x3f0b72(()=>_0x2f9ca8[_0x42f649(0x38a)](_0x28924a=>{const _0x159e77=_0x42f649;var _0x6ab7f;return((_0x6ab7f=_0xcd4180[_0x159e77(0x16f)](_0x28924a))==null?void 0x0:_0x6ab7f[_0x159e77(0x134)])!==!0x0;})),_0x3cc419());});}function Si(_0x2e0a77){const _0x618754=_0x38e982;let _0xbb0669=_0x2e0a77['get'](_0x4e0164);return{'id':oi['id'],'type':_0xbf3362[_0x618754(0x111)],'icon':_0x618754(0x2bc),'title':_0x618754(0x11f),'tooltip':_0x618754(0x11f),'activated$':_0x1ddfc3(()=>_0xbb0669[_0x618754(0x1f5)]['pipe'](_0xb8ac8c(_0xbb0669[_0x618754(0x1df)]),_0x3f0b72(_0x2b5c7c=>_0x2b5c7c[_0x618754(0x205)]===!0x0&&_0x2b5c7c['id']==='sheet.shape.object-list.panel'),_0x3cc419())),'hidden$':_0x520357(_0x2e0a77,_0x19c9b9[_0x618754(0x2b6)]),'disabled$':xi(_0x2e0a77)};}const Ci=_0x38e982(0x37d),wi='sheet.menu.shape.flip-vertical';function Ti(_0x8908ed){const _0x4fc838=_0x38e982;let _0x4f472c=_0x8908ed[_0x4fc838(0x292)](_0x457af4)['getFocusDrawings']();return _0x4f472c[_0x4fc838(0x23c)]===0x1&&_0x4f472c[0x0][_0x4fc838(0x3bd)]===_0x1afd9e[_0x4fc838(0x2d5)]?_0x4f472c[0x0]:null;}function Ei(_0x267c0f){const _0x1d0d11=_0x38e982;let _0x4d7052=_0x267c0f['get'](_0x457af4);return _0x4d7052[_0x1d0d11(0x1a8)][_0x1d0d11(0x1fd)](_0xb8ac8c(_0x4d7052[_0x1d0d11(0x212)]()),_0x3f0b72(_0x238d1a=>_0x238d1a[_0x1d0d11(0x23c)]!==0x1||_0x238d1a[0x0][_0x1d0d11(0x3bd)]!==_0x1afd9e[_0x1d0d11(0x2d5)]));}function Di(_0x586408){const _0x280431=_0x38e982;return{'id':Ci,'commandId':_0x4f77fb['id'],'type':_0xbf3362[_0x280431(0x111)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x280431(0x198),'icon':_0x280431(0x389),'hidden$':Ei(_0x586408),'params':()=>{const _0x17c683=_0x280431;let _0x338845=Ti(_0x586408);return _0x338845?{'unitId':_0x338845[_0x17c683(0x3d6)],'subUnitId':_0x338845[_0x17c683(0x2a0)],'shapeId':_0x338845['drawingId'],'flipH':!0x0}:void 0x0;}};}function Oi(_0x34d042){const _0xb9a513=_0x38e982;return{'id':wi,'commandId':_0x4f77fb['id'],'type':_0xbf3362[_0xb9a513(0x111)],'title':_0xb9a513(0x318),'tooltip':'sheets-shape-ui.flipVertical','icon':_0xb9a513(0x115),'hidden$':Ei(_0x34d042),'params':()=>{const _0x23b3b7=_0xb9a513;let _0x128a63=Ti(_0x34d042);return _0x128a63?{'unitId':_0x128a63[_0x23b3b7(0x3d6)],'subUnitId':_0x128a63[_0x23b3b7(0x2a0)],'shapeId':_0x128a63['drawingId'],'flipV':!0x0}:void 0x0;}};}const ki=_0x38e982(0x1b9),Ai='sheets-shape-ui.shape-format.style-ribbon-control',ji=_0x38e982(0x1b6),Mi=_0x38e982(0x2d4);function Ni(){let _0x553b4f=_0x459a0a(_0x5aac1e),_0x12246d=_0x459a0a(_0x457af4),_0x2b58a9=_0x459a0a(_0x57544e),_0x2de3fc=()=>{const _0x47b2bc=_0x2e49;var _0x16bef0;let _0x36b11=_0x12246d['getFocusDrawings']();if(_0x36b11[_0x47b2bc(0x23c)]!==0x1||((_0x16bef0=_0x36b11[0x0])==null?void 0x0:_0x16bef0['drawingType'])!==_0x1afd9e['DRAWING_SHAPE'])return null;let {unitId:_0x263dc3,subUnitId:_0x241c73,drawingId:_0x471c4e}=_0x36b11[0x0],_0x3427cd=_0x2b58a9[_0x47b2bc(0x3d3)](_0x263dc3,_0x241c73,_0x471c4e),_0x214bbf=_0x2b58a9[_0x47b2bc(0x284)](_0x263dc3,_0x241c73,_0x471c4e);return _0x3427cd===void 0x0||!_0x214bbf?null:{'unitId':_0x263dc3,'subUnitId':_0x241c73,'drawingId':_0x471c4e,'shapeType':_0x3427cd,'shapeData':_0x214bbf};},_0x35b9ba=_0x3f5135(()=>new _0x43994c(_0x276232=>{const _0x43d70b=_0x2e49;let _0x51bebc=()=>_0x276232[_0x43d70b(0x267)](_0x2de3fc()),_0x57ed2d=_0x12246d['focus$'][_0x43d70b(0x335)](_0x51bebc),_0x19637a=_0x553b4f[_0x43d70b(0x325)](_0x2d664e=>{_0x2d664e['id']===_0x5a5b4d['id']&&_0x51bebc();});return _0x51bebc(),()=>{const _0x1e48eb=_0x43d70b;_0x57ed2d[_0x1e48eb(0x3df)](),_0x19637a[_0x1e48eb(0x39d)]();};}),_0x2de3fc(),!0x1,[_0x553b4f,_0x12246d,_0x2b58a9]);return{'selection':_0x35b9ba,'updateShapeData':_0x445a0f=>{const _0xeb1d1=_0x2e49;_0x35b9ba&&Wr(_0x553b4f,_0x35b9ba[_0xeb1d1(0x3d6)],_0x35b9ba['subUnitId'],_0x35b9ba[_0xeb1d1(0x36f)],{'oldShapeData':_0x35b9ba[_0xeb1d1(0x194)]},_0x445a0f);}};}function Pi(){const _0x3ff608=_0x38e982;let {selection:_0xe08856,updateShapeData:_0x51042f}=Ni();return _0xe08856?_0xbd5fef(_0x1499a8,{'shapeData':_0xe08856[_0x3ff608(0x194)],'shapeType':_0xe08856[_0x3ff608(0x185)],'onUpdateShapeData':_0x51042f}):null;}function Fi(){const _0x42f845=_0x38e982;let _0x187c47=_0x459a0a(_0x5aac1e),_0x4bbdcd=_0x459a0a(_0x1180ec),{selection:_0x5302cc}=Ni();return _0x5302cc?_0xbd5fef(_0x772515,{'type':_0x389c17(_0x5302cc[_0x42f845(0x194)]),'ariaLabel':_0x4bbdcd['t'](_0x42f845(0x311)),'activePresetId':_0xe6bf2b(_0x5302cc[_0x42f845(0x194)]),'onSelect':_0x426a54=>_0x187c47[_0x42f845(0x190)](li['id'],{'presetId':_0x426a54})}):null;}function Ii(){const _0x1ab03d=_0x38e982;let {selection:_0x5699ca,updateShapeData:_0x5be147}=Ni();return _0x5699ca?_0xbd5fef(_0x27e9dc,{'fontFamilyPopupDataComponent':_0x1ab03d(0x13b),'shapeData':_0x5699ca['shapeData'],'onUpdateShapeData':_0x5be147}):null;}function Li(){const _0x1c4485=_0x38e982;var _0x2b3df5;let {selection:_0x591128,updateShapeData:_0x5267e9}=Ni(),_0xe7b7fe=_0x574ef4({'hostType':_0x19c9b9[_0x1c4485(0x2b6)],'unitId':(_0x591128==null?void 0x0:_0x591128['unitId'])??'','subUnitId':(_0x591128==null?void 0x0:_0x591128[_0x1c4485(0x2a0)])??'','shapeId':(_0x591128==null?void 0x0:_0x591128[_0x1c4485(0x36f)])??'','shapeData':_0x591128==null?void 0x0:_0x591128[_0x1c4485(0x194)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1c4485(0x3a9),'onUpdateBinding':_0x720997=>_0x5267e9({'formulaBinding':_0x720997})}),_0x224791=((_0x2b3df5=_0xe7b7fe[_0x1c4485(0x10d)])==null?void 0x0:_0x2b3df5[_0x1c4485(0x159)](_0xf3db99=>_0xf3db99[_0x1c4485(0x33d)])[_0x1c4485(0x2d3)](_0x221867=>_0x221867[_0x1c4485(0x205)]!==!0x1))??[];return _0x591128!=null&&_0x591128[_0x1c4485(0x194)]['formulaBinding']?_0xbd5fef(_0x2e03d4,{'actions':_0x224791,'panel':_0xe7b7fe[_0x1c4485(0x324)]}):null;}const Ri='sheets-shape-ui.ribbon.shape-format.style-control',zi='sheets-shape-ui.ribbon.shape-format.text-control',Bi=_0x38e982(0x383),Vi='sheets-shape-ui.ribbon.shape-format.arrange-forward',Hi=_0x38e982(0x122),Ui=_0x38e982(0x336),Wi=_0x38e982(0x2c0);function Gi(_0x4146ad){const _0x53f373=_0x38e982;let _0x29f389=_0x4146ad[_0x53f373(0x292)](_0x5aac1e),_0x376a70=_0x4146ad['get'](_0x457af4),_0x224ab0=_0x4146ad[_0x53f373(0x292)](_0x57544e);return new _0x43994c(_0x212d46=>{const _0xb84d32=_0x53f373;let _0x2a29da=()=>{const _0x52bd7f=_0x2e49;let _0xb41092=Ki(_0x4146ad),_0x1d37bd=_0xb41092?_0x224ab0[_0x52bd7f(0x284)](_0xb41092[_0x52bd7f(0x3d6)],_0xb41092[_0x52bd7f(0x2a0)],_0xb41092[_0x52bd7f(0x36f)]):null;_0x212d46[_0x52bd7f(0x267)](_0x1d37bd?_0xe6bf2b(_0x1d37bd)??'':'');},_0x531c51=_0x376a70[_0xb84d32(0x1a8)][_0xb84d32(0x335)](_0x2a29da),_0x50c43e=_0x29f389[_0xb84d32(0x325)](_0x473d9a=>{_0x473d9a['id']===_0x5a5b4d['id']&&_0x2a29da();});return _0x2a29da(),()=>{const _0x4edc92=_0xb84d32;_0x531c51[_0x4edc92(0x3df)](),_0x50c43e[_0x4edc92(0x39d)]();};});}function Ki(_0x393eca){const _0x44a131=_0x38e982;var _0x322136;let _0xc24c90=_0x393eca['get'](_0x457af4)[_0x44a131(0x212)]();return _0xc24c90[_0x44a131(0x23c)]===0x1&&((_0x322136=_0xc24c90[0x0])==null?void 0x0:_0x322136[_0x44a131(0x3bd)])===_0x1afd9e['DRAWING_SHAPE']?_0xc24c90[0x0]:null;}function qi(_0x7e292f,_0x41ce75=!0x1){const _0x46e38b=_0x38e982;let _0x52599f=_0x7e292f[_0x46e38b(0x292)](_0x5aac1e),_0x5a0d17=_0x7e292f[_0x46e38b(0x292)](_0x457af4),_0x171b70=_0x7e292f['get'](_0x57544e);return new _0x43994c(_0x2cf245=>{const _0x4903be=_0x46e38b;let _0x175b01=()=>{const _0x326c50=_0x2e49;let _0x3ee497=Ki(_0x7e292f);if(!_0x3ee497){_0x2cf245[_0x326c50(0x267)](!0x0);return;}let _0x12d3f2=_0x171b70[_0x326c50(0x284)](_0x3ee497[_0x326c50(0x3d6)],_0x3ee497['subUnitId'],_0x3ee497[_0x326c50(0x36f)]);_0x2cf245[_0x326c50(0x267)](!_0x12d3f2||_0x41ce75&&_0x12d3f2['formulaBinding']==null);},_0x67990b=_0x5a0d17['focus$'][_0x4903be(0x335)](_0x175b01),_0x456d99=_0x52599f['onCommandExecuted'](_0x3c7847=>{_0x3c7847['id']===_0x5a5b4d['id']&&_0x175b01();});return _0x175b01(),()=>{_0x67990b['unsubscribe'](),_0x456d99['dispose']();};});}function Ji(_0x58da9d){const _0x4f9bd2=_0x38e982;let _0x19eec3=_0x58da9d[_0x4f9bd2(0x292)](_0x457af4),_0x41ce8f=_0x58da9d['get'](_0x57544e);return _0x19eec3[_0x4f9bd2(0x1a8)]['pipe'](_0xb8ac8c(_0x19eec3['getFocusDrawings']()),_0x3f0b72(()=>{const _0x12a004=_0x4f9bd2;let _0x36b3c6=Ki(_0x58da9d),_0x2a3d92=_0x36b3c6?_0x41ce8f['getShapeTypeById'](_0x36b3c6[_0x12a004(0x3d6)],_0x36b3c6[_0x12a004(0x2a0)],_0x36b3c6[_0x12a004(0x36f)]):void 0x0;return _0x2a3d92===void 0x0||_0x45fca5(_0x2a3d92);}));}function Yi(_0x2d4bfd){const _0x44f3ab=_0x38e982;return{'id':li['id'],'type':_0xbf3362[_0x44f3ab(0x2ee)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':ki,'hoverable':!0x1,'selectable':!0x1}}],'value$':Gi(_0x2d4bfd),'hidden$':qi(_0x2d4bfd)};}function Xi(_0x13007a){const _0x54c2b5=_0x38e982;return{'id':ui['id'],'type':_0xbf3362['SELECTOR'],'icon':_0x54c2b5(0x38f),'title':_0x54c2b5(0x273),'tooltip':_0x54c2b5(0x273),'slot':!0x0,'selections':[{'label':{'name':_0x1d0554,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ji(_0x13007a)};}function Zi(_0x410cde,_0x1c6e7e,_0x445610=!0x1){const _0x42ee62=_0x38e982;return _0x19c06f=>({'id':_0x410cde,'type':_0xbf3362[_0x42ee62(0x111)],'label':{'name':_0x1c6e7e,'hoverable':!0x1,'selectable':!0x1},'hidden$':qi(_0x19c06f,_0x445610)});}const Qi=Zi(Ri,Ai),$i=Zi(zi,ji),ea=Zi(Bi,Mi,!0x0);function ta(_0x325ff1,_0x338ec7,_0x2cd7ae,_0x3b0172){const _0x10fdb6=_0x38e982;return _0x12d890=>({'id':_0x325ff1,'commandId':_0x3cad82['id'],'type':_0xbf3362[_0x10fdb6(0x111)],'icon':_0x2cd7ae,'title':_0x3b0172,'tooltip':_0x3b0172,'hidden$':qi(_0x12d890),'params':()=>{const _0x273d3c=_0x10fdb6;let _0x47de03=Ki(_0x12d890);return _0x47de03?{'unitId':_0x47de03[_0x273d3c(0x3d6)],'subUnitId':_0x47de03[_0x273d3c(0x2a0)],'drawingIds':[_0x47de03['drawingId']],'arrangeType':_0x338ec7}:void 0x0;}});}const na=ta(Vi,_0x42ada2[_0x38e982(0x13c)],'MoveUpIcon','shape-editor-ui.arrange.forward'),ra=ta(Hi,_0x42ada2[_0x38e982(0x296)],_0x38e982(0x2c4),_0x38e982(0x27a)),ia=ta(Ui,_0x42ada2[_0x38e982(0x258)],'TopmostIcon',_0x38e982(0x21c)),aa=ta(Wi,_0x42ada2['back'],_0x38e982(0x3da),'shape-editor-ui.arrange.back');function oa(_0xfae158){const _0x344937=_0x38e982;let _0x3d09fd=_0xfae158[_0x344937(0x292)](_0x4e0164);return{'activated$':_0x1ddfc3(()=>_0x3d09fd[_0x344937(0x1f5)]['pipe'](_0xb8ac8c(_0x3d09fd[_0x344937(0x1df)]),_0x3f0b72(_0x5a87b1=>_0x5a87b1['visible']===!0x0&&_0x5a87b1['id']==='sheet.shape.edit.panel'),_0x3cc419())),'id':si['id'],'type':_0xbf3362['BUTTON'],'icon':_0x344937(0x1dd),'title':_0x344937(0x249),'tooltip':_0x344937(0x249),'hidden$':qi(_0xfae158),'params':()=>{const _0x26e8c2=_0x344937;let _0x472046=Ki(_0xfae158);return _0x472046?{'unitId':_0x472046[_0x26e8c2(0x3d6)],'subUnitId':_0x472046[_0x26e8c2(0x2a0)],'drawingId':_0x472046[_0x26e8c2(0x36f)]}:void 0x0;}};}const sa={[_0x427908[_0x38e982(0x297)]]:{[ri]:{'order':0x64,'title':_0x38e982(0x249),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[li['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Yi},[ui['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ri]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Qi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[zi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':$i}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Di},[wi]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Oi},[Vi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':na},[Hi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ra},[Ui]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ia},[Wi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':aa}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':ea}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[si['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':oa},[_0x3e1e7a['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5ceb83}}}}},ca={[_0x361031['MEDIA']]:{[$r['id']]:{'order':0x3,'menuItemFactory':bi}}},la={...ca,[_0x361031[_0x38e982(0x251)]]:{[oi['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Si}},[_0x394bea[_0x38e982(0x3c7)]]:{[_0x2fbb1e[_0x38e982(0x251)]]:{[Ci]:{'order':0x4,'menuItemFactory':Di},[wi]:{'order':0x5,'menuItemFactory':Oi}}}};var ua=_0x38e982(0x22e),da=_0x38e982(0x39e);const fa={'id':_0x38e982(0x113),'type':_0x4dec04[_0x38e982(0x188)],'handler'(_0xc8fbb8,_0x42a202){const _0x5de354=_0x38e982;return _0x42a202?(_0xc8fbb8['get'](_0x531a0e)['open'](_0x42a202[_0x5de354(0x1d9)],{'hostType':_0x19c9b9['UNIVER_SHEET'],'shapeId':_0x42a202[_0x5de354(0x36f)],'subUnitId':_0x42a202[_0x5de354(0x2a0)],'unitId':_0x42a202['unitId']}),!0x0):!0x1;}},pa='sheets-shape-ui.config',ma={};let ha=class extends _0x942aec{constructor(_0x3dd6d9,_0x5c2e0c,_0x1bdcf9,_0x117006,_0x477ab1){const _0x391bb4=_0x38e982;super(),this[_0x391bb4(0x18a)]=_0x3dd6d9,this[_0x391bb4(0x342)]=_0x5c2e0c,this[_0x391bb4(0x3a5)]=_0x1bdcf9,this[_0x391bb4(0x23f)]=_0x117006,this[_0x391bb4(0x1f1)]=_0x477ab1,q(this,'_activeImageId',null),q(this,'_unitId',null),q(this,_0x391bb4(0x229),null),q(this,_0x391bb4(0x32d),void 0x0),q(this,'_shapes',[]),q(this,_0x391bb4(0x13f),0x0),q(this,'_baseTop',0x0),q(this,_0x391bb4(0x2da),0x0),q(this,_0x391bb4(0x2fb),0x0),q(this,_0x391bb4(0x357),!0x1),q(this,_0x391bb4(0x26f),void 0x0),q(this,_0x391bb4(0x350),void 0x0),q(this,_0x391bb4(0x2a7),void 0x0),q(this,_0x391bb4(0x1bd),void 0x0),q(this,'_isImagePointerDown',!0x1),this['_registerFocusChangeHandler'](),this[_0x391bb4(0x388)]();}[_0x38e982(0x2a3)](){const _0x4d8ffa=_0x38e982;this[_0x4d8ffa(0x3ce)]();}['refreshAdjustControls'](){const _0x3384dd=_0x38e982;this[_0x3384dd(0x3ce)](),this['_createControls'](!0x0);}[_0x38e982(0x129)](_0x1a598b,_0x2b52a6,_0x3bf805,_0x47f664){const _0x4827f7=_0x38e982;let _0x1c8bcb=_0x1a598b;if(_0x1c8bcb!==_0x321129[_0x4827f7(0x1f9)]&&_0x1a598b!==_0x4827f7(0x27c))try{let _0x18dff4=new _0x623510(_0x1c8bcb,_0x4827f7(0x12e)+_0x1a598b);return _0x47f664&&_0x18dff4[_0x4827f7(0x246)]({'adjustValues':_0x47f664},!0x0),_0x18dff4[_0x4827f7(0x276)]({'width':_0x2b52a6,'height':_0x3bf805}),_0x18dff4;}catch{return;}}['_getImageDrawingInfo'](_0x2b65de,_0x5146b2,_0x4a793f){const _0x75e562=_0x38e982;let _0xd928b2={'unitId':_0x2b65de,'subUnitId':_0x5146b2,'drawingId':_0x4a793f},_0x16b780=this[_0x75e562(0x342)]['getDrawingByParam'](_0xd928b2);if(_0x16b780&&_0x16b780['drawingType']===_0x1afd9e[_0x75e562(0x2d9)])return _0x16b780;}['_getImagePrstGeom'](_0xee4d02,_0x31a48a,_0x13379f){const _0x2e5d64=_0x38e982;let _0x48c9d1=this[_0x2e5d64(0x3a5)]['getRenderUnitById'](_0xee4d02);if(!_0x48c9d1)return;let {scene:_0x1fed04}=_0x48c9d1,_0x18d792=_0x306bd8({'unitId':_0xee4d02,'subUnitId':_0x31a48a,'drawingId':_0x13379f}),_0xf96c36=_0x1fed04[_0x2e5d64(0x150)](_0x18d792);if(_0xf96c36 instanceof _0x21c6ff){let _0x3be3a1=_0xf96c36['prstGeom'];if(_0x3be3a1)return{'prstGeom':_0x3be3a1,'adjustValues':_0xf96c36[_0x2e5d64(0x19a)]};}}[_0x38e982(0x3ac)](_0x7d5bab=!0x1){const _0x556890=_0x38e982;if(!this['_unitId']||!this[_0x556890(0x229)]||!this[_0x556890(0x21e)])return;let _0x8a6ced=this[_0x556890(0x3a5)]['getRenderUnitById'](this[_0x556890(0x202)]);if(!_0x8a6ced||!_0x8a6ced[_0x556890(0x24f)](_0x151dc3)[_0x556890(0x1c2)]())return;let {scene:_0x8eeed5}=_0x8a6ced,_0x43197a=this[_0x556890(0x343)](this[_0x556890(0x202)],this[_0x556890(0x229)],this[_0x556890(0x21e)]);if(!_0x43197a)return;let {transform:_0x24da2b}=_0x43197a;if(!_0x24da2b)return;let {left:_0x3ad884,top:_0x30a980,width:_0x1da1aa,height:_0x232569,flipX:_0x55b45a,flipY:_0xb0a770,angle:_0x5c0166=0x0}=_0x24da2b;if(_0x3ad884===void 0x0||_0x30a980===void 0x0)return;let _0x59b6e8=this[_0x556890(0x3cf)](this[_0x556890(0x202)],this[_0x556890(0x229)],this['_activeImageId']);if(!_0x59b6e8)return;if(_0x7d5bab){let _0x9c136=this[_0x556890(0x129)](_0x59b6e8[_0x556890(0x2f0)],_0x1da1aa||0x0,_0x232569||0x0,_0x59b6e8[_0x556890(0x1e0)]);if(!_0x9c136)return;this[_0x556890(0x32d)]=_0x9c136[_0x556890(0x386)]();}let _0x4d5c93=this[_0x556890(0x32d)];if(_0x4d5c93&&_0x4d5c93[_0x556890(0x23c)]!==0x0)for(let _0x4b4d71=0x0;_0x4b4d71<_0x4d5c93['length'];_0x4b4d71++){let _0x33ce45=_0x4d5c93[_0x4b4d71],_0x6a37f4=_0x33ce45['x'],_0x38a429=_0x33ce45['y'];if(_0x55b45a&&(_0x6a37f4=(_0x1da1aa||0x0)-_0x6a37f4),_0xb0a770&&(_0x38a429=(_0x232569||0x0)-_0x38a429),_0x5c0166!==0x0){let _0x1594d4=(_0x1da1aa||0x0)/0x2,_0xe74fdd=(_0x232569||0x0)/0x2,_0x30e4ff=_0x5c0166*Math['PI']/0xb4,_0x2ea74d=Math[_0x556890(0x380)](_0x30e4ff),_0xdc2704=Math['sin'](_0x30e4ff),_0x3a0b05=_0x6a37f4-_0x1594d4,_0x562a31=_0x38a429-_0xe74fdd;_0x6a37f4=_0x1594d4+(_0x3a0b05*_0x2ea74d-_0x562a31*_0xdc2704),_0x38a429=_0xe74fdd+(_0x3a0b05*_0xdc2704+_0x562a31*_0x2ea74d);}let _0x47ce69={'x':_0x6a37f4,'y':_0x38a429,'adjName':_0x33ce45[_0x556890(0x34a)]};this[_0x556890(0x1f0)](_0x8eeed5,_0x47ce69,_0x47ce69[_0x556890(0x34a)],_0x3ad884,_0x30a980,this[_0x556890(0x202)],this[_0x556890(0x229)]);}}[_0x38e982(0x1f0)](_0x5ad3ce,_0x468e12,_0x225d2f,_0x49fc4a,_0x42ecf6,_0x1957c5,_0x24a586){const _0x4e6470=_0x38e982;if(!this[_0x4e6470(0x21e)])return;let _0x2f9775='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x225d2f,_0x57097a=_0x5ad3ce[_0x4e6470(0x260)](_0x2f9775);if(_0x57097a){_0x57097a['transformByState']({'left':_0x468e12['x']+_0x49fc4a-_0x436eb7['adjHandleSize'],'top':_0x468e12['y']+_0x42ecf6-_0x436eb7[_0x4e6470(0x367)]});return;}let _0x14a3bc=new Xr(_0x2f9775,{'left':_0x468e12['x']+_0x49fc4a-_0x436eb7['adjHandleSize'],'top':_0x468e12['y']+_0x42ecf6-_0x436eb7[_0x4e6470(0x367)],'adjName':_0x225d2f,'shapeId':this[_0x4e6470(0x21e)],'unitId':_0x1957c5,'subUnitId':_0x24a586,'width':_0x436eb7[_0x4e6470(0x367)]+0x8,'height':_0x436eb7[_0x4e6470(0x367)]+0x8,'zIndex':_0x5c1c17+0x1,'evented':!0x0});this[_0x4e6470(0x3a0)][_0x4e6470(0x21d)](_0x14a3bc),this['_attachAdjustEvent'](_0x14a3bc,_0x5ad3ce,_0x225d2f),_0x5ad3ce[_0x4e6470(0x22c)](_0x14a3bc,_0x5c1c17+0x1);}[_0x38e982(0x3ce)](){const _0x20a31e=_0x38e982;this[_0x20a31e(0x3a0)]['length']!==0x0&&(this[_0x20a31e(0x3a0)][_0x20a31e(0x2a5)](_0x4fc26d=>_0x4fc26d[_0x20a31e(0x39d)]()),this[_0x20a31e(0x3a0)]=[]);}[_0x38e982(0x310)](_0x219e13,_0x2f2396){const _0x154f37=_0x38e982;var _0x205d5c;let _0x57f25c={'x':0x0,'y':0x0},_0x27de36=this[_0x154f37(0x3a5)]['getRenderUnitById'](_0x219e13);if(!_0x27de36||!_0x27de36[_0x154f37(0x24f)](_0x151dc3)[_0x154f37(0x17d)](_0x2f2396))return _0x57f25c;let _0x55f551=_0x27de36['with'](_0x4c002e),_0x4e1b97=_0x55f551==null?void 0x0:_0x55f551[_0x154f37(0x391)]();if(!_0x4e1b97)return _0x57f25c;let _0x5a3e27=(_0x205d5c=this[_0x154f37(0x23f)]['getUnit'](_0x219e13))==null?void 0x0:_0x205d5c[_0x154f37(0x265)](_0x2f2396);if(!_0x5a3e27)return _0x57f25c;let _0x5ad0d1=_0x1aea05(_0x4e1b97[_0x154f37(0x1e6)],_0x4e1b97['sheetViewStartColumn'],_0x27de36[_0x154f37(0x313)],_0x5a3e27);return _0x5ad0d1?{'x':_0x5ad0d1[_0x154f37(0x245)],'y':_0x5ad0d1['viewportScrollY']}:_0x57f25c;}['_getZoomRatio'](_0x16a508,_0x514fe6){const _0x4310b5=_0x38e982;var _0x4a1e78;let _0x39b300=(_0x4a1e78=this[_0x4310b5(0x23f)]['getUnit'](_0x16a508))==null?void 0x0:_0x4a1e78[_0x4310b5(0x265)](_0x514fe6);return(_0x39b300==null?void 0x0:_0x39b300['getZoomRatio']())??0x1;}[_0x38e982(0x18c)](_0x2be08b,_0x5134eb,_0x41b020){const _0xdd9390=_0x38e982;this[_0xdd9390(0x1b0)](_0x3cb981(_0x2be08b[_0xdd9390(0x149)][_0xdd9390(0x29b)]((_0x562749,_0x2cb1ca)=>{const _0xaa59cf=_0xdd9390;var _0xf81e28,_0x3b59e4,_0x1c877c;let {unitId:_0x3e7565,subUnitId:_0x5456f4,drawingId:_0x53208e}=_0x2be08b[_0xaa59cf(0x1d1)](),_0x399f4f=this[_0xaa59cf(0x343)](_0x3e7565,_0x5456f4,_0x53208e);if(!(_0x399f4f!=null&&_0x399f4f['transform']))return;let {left:_0x1962e6,top:_0x15174c,width:_0x1182ea,height:_0x288546}=_0x399f4f[_0xaa59cf(0x3d2)];this[_0xaa59cf(0x13f)]=_0x1962e6||0x0,this[_0xaa59cf(0x10f)]=_0x15174c||0x0,this[_0xaa59cf(0x2da)]=_0x1182ea||0x0,this[_0xaa59cf(0x2fb)]=_0x288546||0x0;let _0x104ad3=!!((_0xf81e28=_0x399f4f[_0xaa59cf(0x3d2)])!=null&&_0xf81e28[_0xaa59cf(0x1f4)]),_0x25e8d8=!!((_0x3b59e4=_0x399f4f['transform'])!=null&&_0x3b59e4[_0xaa59cf(0x175)]),_0x501fac=((_0x1c877c=_0x399f4f[_0xaa59cf(0x3d2)])==null?void 0x0:_0x1c877c['angle'])||0x0,_0x2b9e9b=this[_0xaa59cf(0x3cf)](_0x3e7565,_0x5456f4,_0x53208e);if(!_0x2b9e9b)return;let _0x24753b=this[_0xaa59cf(0x129)](_0x2b9e9b[_0xaa59cf(0x2f0)],this[_0xaa59cf(0x2da)],this[_0xaa59cf(0x2fb)],_0x2b9e9b[_0xaa59cf(0x1e0)]);if(!_0x24753b||(this[_0xaa59cf(0x350)]=_0x24753b,this[_0xaa59cf(0x26f)]=_0x24753b[_0xaa59cf(0x1b5)](_0x41b020),!this[_0xaa59cf(0x26f)]))return;this[_0xaa59cf(0x357)]=!0x0,_0x5134eb[_0xaa59cf(0x20e)]();let _0xf49886=_0x2b9e9b[_0xaa59cf(0x2f0)];this['_adjHandlerPointerMove']=_0x5134eb[_0xaa59cf(0x23e)][_0xaa59cf(0x29b)]((_0x4bdffb,_0x2350aa)=>{const _0x595444=_0xaa59cf;if(!this['_isStartAdjusting'])return;let {offsetX:_0x3aa656,offsetY:_0x4054a4}=_0x4bdffb,_0x51ca6d=this['_activeAdjustInfo'];if(!this[_0x595444(0x350)]||!_0x51ca6d)return;_0x5134eb[_0x595444(0x20e)](),_0x5134eb['setCursor'](_0x126c60[_0x595444(0x1fc)]);let _0x52259c={'left':0x0,'top':0x0,'width':this[_0x595444(0x2da)],'height':this[_0x595444(0x2fb)]},_0x5450f9=this[_0x595444(0x310)](_0x3e7565,_0x5456f4),_0x4c752e=this[_0x595444(0x2cb)](_0x3e7565,_0x5456f4),_0x232c41=_0x3aa656/_0x4c752e+_0x5450f9['x']-this[_0x595444(0x13f)],_0x4cd55e=_0x4054a4/_0x4c752e+_0x5450f9['y']-this[_0x595444(0x10f)];if(_0x501fac!==0x0){let _0x11df6c=this[_0x595444(0x2da)]/0x2,_0x25421a=this[_0x595444(0x2fb)]/0x2,_0x221639=_0x501fac*Math['PI']/0xb4,_0x479c06=Math[_0x595444(0x380)](_0x221639),_0xaea176=Math[_0x595444(0x3a2)](_0x221639),_0x189728=_0x232c41-_0x11df6c,_0x412128=_0x4cd55e-_0x25421a;_0x232c41=_0x11df6c+(_0x189728*_0x479c06+_0x412128*_0xaea176),_0x4cd55e=_0x25421a+(-_0x189728*_0xaea176+_0x412128*_0x479c06);}_0x104ad3&&(_0x232c41=this[_0x595444(0x2da)]-_0x232c41),_0x25e8d8&&(_0x4cd55e=this[_0x595444(0x2fb)]-_0x4cd55e);let _0x30a826=this[_0x595444(0x350)][_0x595444(0x130)](_0x52259c,{'x':_0x232c41,'y':_0x4cd55e},_0x51ca6d,_0x104ad3,_0x25e8d8);if(Object[_0x595444(0x34e)](_0x30a826)[_0x595444(0x23c)]!==0x0){for(let [_0x3e4739,_0xa18070]of Object[_0x595444(0x128)](_0x30a826))this[_0x595444(0x350)][_0x595444(0x285)](_0x3e4739,_0xa18070);this[_0x595444(0x350)][_0x595444(0x276)]({'width':this[_0x595444(0x2da)],'height':this[_0x595444(0x2fb)]}),this[_0x595444(0x2e7)](_0x3e7565,_0x5456f4,_0x53208e,_0x30a826),this['_activeAdjustPointList']=this[_0x595444(0x350)][_0x595444(0x386)](),this[_0x595444(0x3ac)](),_0x2350aa[_0x595444(0x286)]();}}),this[_0xaa59cf(0x1bd)]=_0x5134eb[_0xaa59cf(0x15e)]['subscribeEvent']((_0x46efb3,_0x3935f5)=>{const _0xd37f9a=_0xaa59cf;if(this['_adjHandlerPointerMove']['unsubscribe'](),this[_0xd37f9a(0x1bd)][_0xd37f9a(0x3df)](),_0x5134eb[_0xd37f9a(0x239)](),this[_0xd37f9a(0x350)]){let _0x15cd2c=this[_0xd37f9a(0x350)][_0xd37f9a(0x2c8)](),_0x549a87={};for(let _0x31434f of _0x15cd2c){let _0x2cc1cb=this[_0xd37f9a(0x350)][_0xd37f9a(0x191)](_0x31434f);_0x2cc1cb!==void 0x0&&(_0x549a87[_0x31434f]=_0x2cc1cb);}this[_0xd37f9a(0x1f1)]['clipByShape'](_0x3e7565,_0x5456f4,_0x53208e,_0xf49886,_0x549a87);}this[_0xd37f9a(0x26f)]=void 0x0,this[_0xd37f9a(0x350)]=void 0x0,this[_0xd37f9a(0x357)]=!0x1,_0x3935f5[_0xd37f9a(0x286)](),_0x5134eb[_0xd37f9a(0x192)]();}),_0x2cb1ca[_0xaa59cf(0x286)]();})));}[_0x38e982(0x2e7)](_0x89e46c,_0x57a2ae,_0x7ffd59,_0x5e8636){const _0x3944ef=_0x38e982;let _0x8678d5=this[_0x3944ef(0x3a5)][_0x3944ef(0x37e)](_0x89e46c);if(!_0x8678d5)return;let {scene:_0x191a18}=_0x8678d5,_0x300c27=_0x306bd8({'unitId':_0x89e46c,'subUnitId':_0x57a2ae,'drawingId':_0x7ffd59}),_0x29ecbd=_0x191a18[_0x3944ef(0x150)](_0x300c27);if(_0x29ecbd instanceof _0x21c6ff){let _0x51272c=_0x29ecbd[_0x3944ef(0x19a)]??{};_0x29ecbd['setPrstGeomAdjValues']({..._0x51272c,..._0x5e8636}),_0x29ecbd[_0x3944ef(0x2a6)](!0x0);}}[_0x38e982(0x388)](){const _0x4c3d75=_0x38e982;let _0x4bdb17=this['_univerInstanceService'][_0x4c3d75(0x30c)](_0x19c9b9['UNIVER_SHEET']);this[_0x4c3d75(0x1b0)](_0x4bdb17[_0x4c3d75(0x1fd)](_0x1b4a14(_0x1153ef=>_0x1153ef?_0x1153ef[_0x4c3d75(0x2fa)]['pipe'](_0x1b4a14(_0xf73c72=>{const _0x540da6=_0x4c3d75;if(!_0xf73c72)return _0x1d5ee8;let _0x1308a4=_0x1153ef[_0x540da6(0x1cc)](),_0x13d1c8=this[_0x540da6(0x3a5)]['getRenderUnitById'](_0x1308a4),_0x4e4049=_0x13d1c8==null?void 0x0:_0x13d1c8[_0x540da6(0x313)];return _0x4e4049?_0x402dea(_0x4e4049):_0x1d5ee8;})):_0x1d5ee8))[_0x4c3d75(0x335)](_0x29ffac=>{const _0x51207f=_0x4c3d75;let _0x34138d=_0x29ffac[_0x51207f(0x294)]();this[_0x51207f(0x1b0)](_0x29ffac[_0x51207f(0x23e)][_0x51207f(0x29b)](()=>{const _0x3ba3f5=_0x51207f;this[_0x3ba3f5(0x329)]&&this[_0x3ba3f5(0x3ce)]();})),this[_0x51207f(0x1b0)](_0x34138d['changeStart$'][_0x51207f(0x335)](_0x5ab86e=>{const _0x3c3588=_0x51207f;let {objects:_0x39a813}=_0x5ab86e;if(this['_createControls'](),_0x39a813!==null&&_0x39a813[_0x3c3588(0x28b)]===0x1){let _0x2f8335=_0x39a813['values']()[_0x3c3588(0x267)]()['value'];_0x2f8335 instanceof _0x21c6ff&&_0x2f8335[_0x3c3588(0x2f0)]&&(this[_0x3c3588(0x329)]=!0x0);}})),this['disposeWithMe'](_0x34138d['changing$']['subscribe'](()=>{const _0x463ca6=_0x51207f;this['_isImagePointerDown']&&this[_0x463ca6(0x3ce)]();})),this[_0x51207f(0x1b0)](_0x29ffac[_0x51207f(0x15e)]['subscribeEvent'](()=>{const _0x390a1c=_0x51207f;this[_0x390a1c(0x329)]&&(this[_0x390a1c(0x329)]=!0x1,this[_0x390a1c(0x3ac)]());})),this[_0x51207f(0x1b0)](_0x34138d['changeEnd$']['subscribe'](()=>{const _0x469fb1=_0x51207f;if(this[_0x469fb1(0x202)]&&this[_0x469fb1(0x229)]&&this['_activeImageId']){let _0xdff4a=this['_getImagePrstGeom'](this[_0x469fb1(0x202)],this[_0x469fb1(0x229)],this[_0x469fb1(0x21e)]);if(_0xdff4a){var _0x3f94ee,_0x511718;let _0x52f696=this[_0x469fb1(0x343)](this[_0x469fb1(0x202)],this[_0x469fb1(0x229)],this['_activeImageId']),_0x265446=(_0x52f696==null||(_0x3f94ee=_0x52f696[_0x469fb1(0x3d2)])==null?void 0x0:_0x3f94ee[_0x469fb1(0x304)])||0x0,_0x10df3b=(_0x52f696==null||(_0x511718=_0x52f696[_0x469fb1(0x3d2)])==null?void 0x0:_0x511718[_0x469fb1(0x204)])||0x0,_0x4f1f7d=this[_0x469fb1(0x129)](_0xdff4a[_0x469fb1(0x2f0)],_0x265446,_0x10df3b,_0xdff4a[_0x469fb1(0x1e0)]);_0x4f1f7d&&(this[_0x469fb1(0x32d)]=_0x4f1f7d[_0x469fb1(0x386)](),this[_0x469fb1(0x3ce)](),this[_0x469fb1(0x3ac)](!0x0));}}}));}));}[_0x38e982(0x2b0)](){const _0x4f52c0=_0x38e982;this[_0x4f52c0(0x1b0)](this[_0x4f52c0(0x342)][_0x4f52c0(0x1a8)][_0x4f52c0(0x335)](_0x45ff46=>{const _0x21de65=_0x4f52c0;if(_0x45ff46[_0x21de65(0x23c)]===0x1){let _0x58b7b1=_0x45ff46[0x0];if(_0x58b7b1[_0x21de65(0x3bd)]===_0x1afd9e['DRAWING_IMAGE']){let {unitId:_0x2f1838,subUnitId:_0x48aeae,drawingId:_0x43215b}=_0x58b7b1,_0x24a842=this[_0x21de65(0x3cf)](_0x2f1838,_0x48aeae,_0x43215b);if(_0x24a842){var _0x3b3fb2,_0x1fb536;this[_0x21de65(0x21e)]=_0x43215b,this[_0x21de65(0x202)]=_0x2f1838,this[_0x21de65(0x229)]=_0x48aeae;let _0x1d5136=this[_0x21de65(0x343)](_0x2f1838,_0x48aeae,_0x43215b),_0x13b56f=(_0x1d5136==null||(_0x3b3fb2=_0x1d5136[_0x21de65(0x3d2)])==null?void 0x0:_0x3b3fb2[_0x21de65(0x304)])||0x0,_0x3ef8e1=(_0x1d5136==null||(_0x1fb536=_0x1d5136[_0x21de65(0x3d2)])==null?void 0x0:_0x1fb536['height'])||0x0,_0x3919b0=this[_0x21de65(0x129)](_0x24a842['prstGeom'],_0x13b56f,_0x3ef8e1,_0x24a842[_0x21de65(0x1e0)]);_0x3919b0&&(this[_0x21de65(0x32d)]=_0x3919b0[_0x21de65(0x386)]()),this[_0x21de65(0x3ce)](),this['_createControls'](!0x0);}else this[_0x21de65(0x2aa)]();}else this['_resetState']();}else this[_0x21de65(0x2aa)]();})),this[_0x4f52c0(0x1b0)](this[_0x4f52c0(0x342)]['update$'][_0x4f52c0(0x335)](_0x573585=>{const _0x4a420f=_0x4f52c0;if(_0x573585[_0x4a420f(0x23c)]===0x1){let _0xec06d7=_0x573585[0x0],_0x2d600b=this[_0x4a420f(0x342)][_0x4a420f(0x254)](_0xec06d7);(_0x2d600b==null?void 0x0:_0x2d600b[_0x4a420f(0x3bd)])===_0x1afd9e[_0x4a420f(0x2d9)]&&this['_activeImageId']===_0xec06d7['drawingId']&&(this['_clearControls'](),this[_0x4a420f(0x3ac)](!0x0));}})),this['disposeWithMe'](this[_0x4f52c0(0x342)][_0x4f52c0(0x1a6)][_0x4f52c0(0x335)](_0x278251=>{const _0x5b69f9=_0x4f52c0;for(let _0x3758bd of _0x278251)this[_0x5b69f9(0x21e)]===_0x3758bd[_0x5b69f9(0x36f)]&&this[_0x5b69f9(0x2aa)]();}));}['_resetState'](){const _0x2c8255=_0x38e982;this[_0x2c8255(0x21e)]=null,this[_0x2c8255(0x202)]=null,this[_0x2c8255(0x229)]=null,this[_0x2c8255(0x32d)]=void 0x0,this[_0x2c8255(0x3ce)]();}};ha=X([Y(0x1,_0x457af4),Y(0x2,_0x304d45(_0x1fc6ff)),Y(0x3,_0x5789bf),Y(0x4,_0x304d45(Q))],ha);function ga({PanelComponent:_0x46b23d=_0x573685}){const _0xd271be=_0x38e982;var _0x49dacc;function _0x1e00cc(_0x57a8d1){const _0x29d664=_0x2e49;return _0x57a8d1[_0x29d664(0x1f6)]()||void 0x0;}function _0x46e342(_0x1b5d10,_0x2cb62a,_0xeeb7d2){const _0x4537cb=_0x2e49;var _0x300024;return((_0x300024=_0x1b5d10['name'])==null?void 0x0:_0x300024[_0x4537cb(0x1f6)]())||_0xeeb7d2['t']('drawing-ui.objectListPanel.typeNames.'+_0x492f89(_0x1b5d10[_0x4537cb(0x3bd)]))+'\x20'+(_0x2cb62a+0x1);}let _0xa34d6f=_0x459a0a(_0x1180ec),_0x250739={'title':_0xa34d6f['t'](_0xd271be(0x187)),'empty':_0xa34d6f['t'](_0xd271be(0x18d)),'showAll':_0xa34d6f['t'](_0xd271be(0x1d6)),'hideAll':_0xa34d6f['t'](_0xd271be(0x3e8)),'lockAll':_0xa34d6f['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0xa34d6f['t'](_0xd271be(0x3a8)),'moveForward':_0xa34d6f['t'](_0xd271be(0x394)),'moveBackward':_0xa34d6f['t'](_0xd271be(0x3ae)),'close':_0xa34d6f['t']('drawing-ui.objectListPanel.close'),'show':_0xa34d6f['t'](_0xd271be(0x240)),'hide':_0xa34d6f['t']('drawing-ui.objectListPanel.hide'),'lock':_0xa34d6f['t'](_0xd271be(0x1ec)),'unlock':_0xa34d6f['t'](_0xd271be(0x2c1)),'lockHint':_0xa34d6f['t']('drawing-ui.objectListPanel.lockHint'),'unlockHint':_0xa34d6f['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0xa34d6f['t'](_0xd271be(0x15d)),'nameInput':_0xa34d6f['t'](_0xd271be(0x136)),'description':_0xa34d6f['t'](_0xd271be(0x1ee)),'descriptionPlaceholder':_0xa34d6f['t'](_0xd271be(0x21b)),'details':_0xa34d6f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0xa34d6f['t'](_0xd271be(0x224)),'locate':_0xa34d6f['t'](_0xd271be(0x28d)),'expand':_0xa34d6f['t'](_0xd271be(0x2ba)),'collapse':_0xa34d6f['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xa34d6f['t'](_0xd271be(0x14a)),'search':_0xa34d6f['t'](_0xd271be(0x24a)),'filterAll':_0xa34d6f['t'](_0xd271be(0x268)),'filterHidden':_0xa34d6f['t'](_0xd271be(0x3de)),'filterLocked':_0xa34d6f['t'](_0xd271be(0x215)),'sectionCanvas':_0xa34d6f['t'](_0xd271be(0x155)),'sectionFloating':_0xa34d6f['t'](_0xd271be(0x390))},_0x40392c=_0x459a0a(_0x5aac1e),_0x4ba5f0=_0x459a0a(_0x5789bf),_0x18d427=_0x459a0a(_0x1f9cb1),_0x6ad1b4=_0x459a0a(_0x457af4),_0x45209a=_0x459a0a(_0x1fc6ff),_0xa91014=_0x459a0a(_0x38c109),[,_0x4147f0]=_0x5c57ec(_0x58bb83=>_0x58bb83+0x1,0x0),_0x242e7b=_0x4ba5f0[_0xd271be(0x24d)](_0x19c9b9[_0xd271be(0x2b6)]),_0x5cbece=(_0x242e7b==null?void 0x0:_0x242e7b[_0xd271be(0x1cc)]())??'',_0x1bb5f3=(_0x242e7b==null||(_0x49dacc=_0x242e7b[_0xd271be(0x37c)]())==null?void 0x0:_0x49dacc['getSheetId']())??'',_0x3b69f1=_0x3f5135(()=>_0x6ad1b4[_0xd271be(0x1a8)],_0x6ad1b4[_0xd271be(0x212)](),!0x1,[_0x6ad1b4]);_0x6e1245(()=>{const _0x366a1e=_0xd271be;let _0x1c9e19=_0x40392c[_0x366a1e(0x325)](()=>_0x4147f0());return()=>_0x1c9e19[_0x366a1e(0x39d)]();},[_0x40392c]);let _0x30f3e5=_0x5cbece&&_0x1bb5f3?_0x18d427[_0xd271be(0x39a)](_0x5cbece,_0x1bb5f3):{},_0x4b83e3=(_0x5cbece&&_0x1bb5f3?_0x18d427['getDrawingOrder'](_0x5cbece,_0x1bb5f3):[])[_0xd271be(0x298)](_0x243a03=>_0x30f3e5[_0x243a03])[_0xd271be(0x2d3)](_0x3e980e=>!!_0x3e980e)[_0xd271be(0x200)](),_0x294cc8=_0x4b83e3[_0xd271be(0x327)]((_0x45424c,_0x383ee8)=>(_0x45424c[_0xb31f3d(_0x383ee8[_0xd271be(0x3bd)])]+=0x1,_0x45424c),{'canvas':0x0,'floating':0x0}),_0x453f99={'canvas':0x0,'floating':0x0},_0x442cd0=_0x4b83e3[_0xd271be(0x298)]((_0xf47ed3,_0x25ae54)=>{const _0x20a807=_0xd271be;let _0x374aab=_0xb31f3d(_0xf47ed3[_0x20a807(0x3bd)]),_0x34d945=_0x374aab===_0x337c00,_0x572f64=_0x453f99[_0x374aab]++;return{'id':_0xf47ed3[_0x20a807(0x36f)],'name':_0x46e342(_0xf47ed3,_0x25ae54,_0xa34d6f),'description':_0xf47ed3['description'],'visible':_0xf47ed3[_0x20a807(0x146)]!==!0x0,'selectable':_0xf47ed3[_0x20a807(0x361)]!==!0x1,'sectionId':_0x374aab,'sectionTitle':_0x34d945?_0x250739['sectionFloating']:_0x250739['sectionCanvas'],'capabilities':_0x34d945?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x34d945&&_0x572f64>0x0,'canMoveBackward':!_0x34d945&&_0x572f64<_0x294cc8[_0x20a807(0x25f)]-0x1,'canReorder':!_0x34d945};}),_0x421000=_0x2e7dde(()=>(_0x3b69f1??[])['filter'](_0xc351a2=>_0xc351a2[_0xd271be(0x3d6)]===_0x5cbece&&_0xc351a2['subUnitId']===_0x1bb5f3)[_0xd271be(0x298)](_0x2c8a6e=>_0x2c8a6e[_0xd271be(0x36f)]),[_0x3b69f1,_0x1bb5f3,_0x5cbece]),_0x2417a2=_0x421000[_0x421000[_0xd271be(0x23c)]-0x1]??null,_0x2eff7d=_0x3ac01d=>_0x18d427[_0xd271be(0x254)]({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x3ac01d})??null,_0x120b7=async _0xea42b=>{const _0x24786e=_0xd271be;_0x5cbece&&_0xea42b[_0x24786e(0x23c)]&&await _0x40392c[_0x24786e(0x190)](_0x438f96['id'],{'unitId':_0x5cbece,'drawings':_0xea42b});},_0x57e3d6=async(_0xe85e5a,_0x584814)=>{_0x2eff7d(_0xe85e5a)&&await _0x120b7([{'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0xe85e5a,..._0x584814}]);},_0x4c53c4=(_0x23d060,_0x52af9d)=>{const _0x764086=_0xd271be;if(!_0x5cbece||!_0x1bb5f3)return;let _0x759b49=_0x52af9d?_0x421000[_0x764086(0x2ac)](_0x23d060)?_0x421000[_0x764086(0x2d3)](_0x526832=>_0x526832!==_0x23d060):[..._0x421000,_0x23d060]:[_0x23d060];_0x40392c[_0x764086(0x2f7)](_0x55fd78['id'],_0x759b49[_0x764086(0x298)](_0x23580b=>({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x23580b})));let _0x543eec=_0x759b49[_0x759b49['length']-0x1];_0x543eec?(_0x9e13b2(_0x45209a,{'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x543eec}),_0xa91014[_0x764086(0x10e)](_0x5cbece)):_0x538fda(_0x45209a,_0x5cbece);},_0x112295=async(_0x5b1c64,_0x5abbaf)=>{const _0x39b552=_0xd271be;await _0x120b7(_0x5b1c64['map'](_0xc906b1=>_0x2eff7d(_0xc906b1))[_0x39b552(0x2d3)](_0x1894eb=>!!_0x1894eb)['filter'](_0x21a06f=>_0x21a06f[_0x39b552(0x146)]!==!0x0!==_0x5abbaf)[_0x39b552(0x298)](_0x36c224=>({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x36c224['drawingId'],'hidden':!_0x5abbaf})));},_0x32ef3f=async(_0x951d1d,_0x1d7d29)=>{const _0x1f1590=_0xd271be;await _0x120b7(_0x951d1d[_0x1f1590(0x298)](_0x454d64=>_0x2eff7d(_0x454d64))['filter'](_0x54e169=>!!_0x54e169)['filter'](_0x57eeb6=>_0x57eeb6[_0x1f1590(0x361)]!==!0x1!==_0x1d7d29)[_0x1f1590(0x298)](_0x5b22c9=>({'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingId':_0x5b22c9['drawingId'],'selectable':_0x1d7d29})));},_0x37ce8f=_0x4165c3=>{const _0x33d2e9=_0xd271be;let _0x9acbea=_0x2eff7d(_0x4165c3);if(_0x9acbea)return _0x32ef3f([_0x4165c3],_0x9acbea[_0x33d2e9(0x361)]===!0x1);},_0x3d11f1=async(_0x19b802,_0x57ad27)=>{var _0x25a768;let _0x249a81=_0x1e00cc(_0x57ad27);(((_0x25a768=_0x2eff7d(_0x19b802))==null?void 0x0:_0x25a768['name'])??void 0x0)!==_0x249a81&&await _0x57e3d6(_0x19b802,{'name':_0x249a81});},_0xc90856=async(_0x2af08e,_0x27a927)=>{const _0x173565=_0xd271be;var _0x38aa16;let _0x65a132=_0x1e00cc(_0x27a927);(((_0x38aa16=_0x2eff7d(_0x2af08e))==null?void 0x0:_0x38aa16[_0x173565(0x2ab)])??void 0x0)!==_0x65a132&&await _0x57e3d6(_0x2af08e,{'description':_0x65a132});},_0x38b3d8=async(_0x51a442,_0x2aa0e6)=>{const _0x4a4b20=_0xd271be;_0x5cbece&&_0x1bb5f3&&await _0x40392c[_0x4a4b20(0x190)](_0x3cad82['id'],{'unitId':_0x5cbece,'subUnitId':_0x1bb5f3,'drawingIds':[_0x51a442],'arrangeType':_0x2aa0e6});};return!_0x5cbece||!_0x1bb5f3?_0xbd5fef(_0xd271be(0x3aa),{'className':_0xd271be(0x309),'children':_0x250739[_0xd271be(0x145)]}):_0xbd5fef(_0x46b23d,{'labels':_0x250739,'items':_0x442cd0,'selectedIds':_0x421000,'focusedId':_0x2417a2,'showHeader':!0x1,'onSelect':_0x4c53c4,'onSetVisible':_0x112295,'onSetSelectable':_0x32ef3f,'onCommitName':_0x3d11f1,'onCommitDescription':_0xc90856,'onMoveForward':async _0x2143da=>_0x38b3d8(_0x2143da,_0x42ada2[_0xd271be(0x13c)]),'onMoveBackward':async _0x4bb2ae=>_0x38b3d8(_0x4bb2ae,_0x42ada2[_0xd271be(0x296)]),'onToggleSelectable':_0x37ce8f});}function _a(){return _0xbd5fef(ga,{'PanelComponent':_0x5f75fd});}let va=class extends _0x942aec{constructor(_0x5af384,_0x2da07d){const _0xedbb7=_0x38e982;super(),this['disposeWithMe'](_0x5af384['register'](ti,_a)),this[_0xedbb7(0x1b0)](_0x2da07d[_0xedbb7(0x206)]({'BottomIcon':_0x5d3fb9,'FlipHorizontalIcon':_0x332ddb,'FlipVerticalIcon':_0x1b633e,'MoveDownIcon':_0x5ac96f,'MoveUpIcon':_0x415dfc,'ObjectLayersIcon':_0x28a4bd,'ShapeFormatSettingIcon':_0x323ccb,'TopmostIcon':_0x3d647d})),this[_0xedbb7(0x1b0)](_0x5af384[_0xedbb7(0x206)](di,vi)),this[_0xedbb7(0x1b0)](_0x5af384[_0xedbb7(0x206)](fi,hi)),_0x5af384[_0xedbb7(0x2e8)](_0x768cfe)||this[_0xedbb7(0x1b0)](_0x5af384[_0xedbb7(0x206)](_0x768cfe,gi));}};va=X([Y(0x0,_0x304d45(_0x5a4631)),Y(0x1,_0x304d45(_0x26766a))],va);let $=class extends _0x942aec{constructor(_0x33c50d){const _0x41886c=_0x38e982;super(),this[_0x41886c(0x2f1)]=_0x33c50d,q(this,_0x41886c(0x333),new _0x5384bc(null)),q(this,_0x41886c(0x172),this[_0x41886c(0x333)][_0x41886c(0x289)]()),q(this,_0x41886c(0x275),new _0x5384bc(!0x1)),q(this,_0x41886c(0x2fe),this['_onSavingEditorData$'][_0x41886c(0x289)]()),q(this,_0x41886c(0x1c3),void 0x0),this[_0x41886c(0x1b0)](this['_permissionService']['permissionPointUpdate$'][_0x41886c(0x335)](()=>{const _0x43ebf8=_0x41886c;let _0x193ccc=this[_0x43ebf8(0x3bb)]();_0x193ccc!=null&&_0x193ccc[_0x43ebf8(0x205)]&&!this[_0x43ebf8(0x30f)](_0x193ccc)&&this['setEditing'](null);}));}[_0x38e982(0x39d)](){const _0x36b0c1=_0x38e982;this[_0x36b0c1(0x278)](),this[_0x36b0c1(0x333)][_0x36b0c1(0x267)](null),this['_editingParams$'][_0x36b0c1(0x353)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x36b0c1(0x275)]['complete'](),super['dispose']();}[_0x38e982(0x221)](_0x43b919){const _0x3a3bc9=_0x38e982;(_0x43b919==null||!_0x43b919[_0x3a3bc9(0x205)]||this[_0x3a3bc9(0x30f)](_0x43b919))&&(this['_clearCompletionFrame'](),this[_0x3a3bc9(0x333)][_0x3a3bc9(0x267)](_0x43b919),(_0x43b919==null||_0x43b919[_0x3a3bc9(0x205)]&&this[_0x3a3bc9(0x275)][_0x3a3bc9(0x22a)]())&&this['_onSavingEditorData$'][_0x3a3bc9(0x267)](!0x1));}[_0x38e982(0x25e)](_0x3288d7){this['_onSavingEditorData$']['next'](_0x3288d7);}['getEditing'](){const _0x1c48b1=_0x38e982;return this[_0x1c48b1(0x333)][_0x1c48b1(0x22a)]();}['_canEdit'](_0xa684ce){const _0x2c7afb=_0x38e982;let _0x4dbe91=this['_permissionService']['getPermissionPoint'](new _0x5d4362(_0xa684ce[_0x2c7afb(0x3d6)])['id']),_0x2e8234=this['_permissionService']['getPermissionPoint'](new _0x2cc33f(_0xa684ce['unitId'],_0xa684ce[_0x2c7afb(0x2a0)])['id']);return((_0x4dbe91==null?void 0x0:_0x4dbe91['value'])??!0x0)&&((_0x2e8234==null?void 0x0:_0x2e8234[_0x2c7afb(0x134)])??!0x0);}['completeEditing'](_0x135429){const _0x3af532=_0x38e982;let _0x3811c3=this[_0x3af532(0x3bb)]();_0x3811c3&&this[_0x3af532(0x1c3)]===void 0x0&&(this[_0x3af532(0x25e)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x544f68=_0x3af532;this[_0x544f68(0x1c3)]=void 0x0,this[_0x544f68(0x3bb)]()===_0x3811c3&&this['setEditing'](null);}));}[_0x38e982(0x278)](){const _0x1b6a58=_0x38e982;this[_0x1b6a58(0x1c3)]!==void 0x0&&(cancelAnimationFrame(this[_0x1b6a58(0x1c3)]),this[_0x1b6a58(0x1c3)]=void 0x0);}[_0x38e982(0x2df)](){const _0x1f8c79=_0x38e982;this[_0x1f8c79(0x3bb)]()&&this[_0x1f8c79(0x221)](null);}};$=X([Y(0x0,_0x33574c)],$);let ya=class extends _0x942aec{constructor(_0x2b86f0,_0x5aa367,_0x3ab398,_0x57af8e,_0x50d125,_0x51500c){const _0x51ce2d=_0x38e982;super(),this[_0x51ce2d(0x18a)]=_0x2b86f0,this['_injector']=_0x5aa367,this[_0x51ce2d(0x396)]=_0x3ab398,this[_0x51ce2d(0x342)]=_0x57af8e,this[_0x51ce2d(0x3be)]=_0x50d125,this[_0x51ce2d(0x301)]=_0x51500c,q(this,'_lastEditingShapeKey',null),this[_0x51ce2d(0x35b)](),this[_0x51ce2d(0x174)](),this[_0x51ce2d(0x2dc)]();}['_initEvents'](){const _0x398b71=_0x38e982;let {scene:_0x3e8faf}=this[_0x398b71(0x18a)];this[_0x398b71(0x1b0)](_0x3e8faf[_0x398b71(0x323)]['subscribeEvent'](_0x1df8fc=>{const _0x46ac2e=_0x398b71;let {offsetX:_0x1b2d00,offsetY:_0x5508c8}=_0x1df8fc,_0x380316=_0x3e8faf[_0x46ac2e(0x2e2)](_0x225e34['FromArray']([_0x1b2d00,_0x5508c8]));if(_0x380316 instanceof J){let _0x2ae8bf=this[_0x46ac2e(0x301)][_0x46ac2e(0x398)](_0x380316[_0x46ac2e(0x3d6)],_0x380316[_0x46ac2e(0x2a0)],_0x380316[_0x46ac2e(0x3ea)]);if(_0x45fca5(this[_0x46ac2e(0x301)][_0x46ac2e(0x369)](_0x380316[_0x46ac2e(0x3d6)],_0x380316[_0x46ac2e(0x2a0)],_0x380316[_0x46ac2e(0x3ea)]))||_0x2ae8bf!=null&&_0x2ae8bf[_0x46ac2e(0x18b)]()['formulaBinding'])return;this[_0x46ac2e(0x396)]['setEditing']({'visible':!0x0,'unitId':_0x380316[_0x46ac2e(0x3d6)],'subUnitId':_0x380316['subUnitId'],'shapeId':_0x380316[_0x46ac2e(0x3ea)],'shapeKey':_0x380316[_0x46ac2e(0x143)]});}}));}[_0x38e982(0x174)](){const _0x1f170e=_0x38e982;this[_0x1f170e(0x1b0)](this['_drawingManagerService'][_0x1f170e(0x1a8)][_0x1f170e(0x335)](_0x4618e0=>{const _0x46cd7a=_0x1f170e;if(_0x4618e0['length']===0x1){let _0x48a314=_0x4618e0[0x0],_0x4a10e5=this[_0x46cd7a(0x342)][_0x46cd7a(0x254)](_0x48a314);if((_0x4a10e5==null?void 0x0:_0x4a10e5[_0x46cd7a(0x3bd)])===_0x1afd9e[_0x46cd7a(0x2d5)]){var _0x45aa83;let _0x1bea91=this[_0x46cd7a(0x396)][_0x46cd7a(0x3bb)]();if((_0x1bea91==null?void 0x0:_0x1bea91[_0x46cd7a(0x3ea)])===_0x48a314[_0x46cd7a(0x36f)]&&_0x1bea91[_0x46cd7a(0x205)])return;let _0x11b5ad=_0x45fca5(this['_sheetsShapeService'][_0x46cd7a(0x369)](_0x48a314['unitId'],_0x48a314[_0x46cd7a(0x2a0)],_0x48a314[_0x46cd7a(0x36f)])),_0x344508=!!((_0x45aa83=this[_0x46cd7a(0x301)]['getShapeModel'](_0x48a314[_0x46cd7a(0x3d6)],_0x48a314[_0x46cd7a(0x2a0)],_0x48a314[_0x46cd7a(0x36f)]))!=null&&_0x45aa83[_0x46cd7a(0x18b)]()['formulaBinding']);(_0x11b5ad||_0x344508)&&this[_0x46cd7a(0x396)]['setEditing'](null);}else this[_0x46cd7a(0x396)]['completeEditing']();}else this[_0x46cd7a(0x396)][_0x46cd7a(0x1ae)]();})),this[_0x1f170e(0x1b0)](this[_0x1f170e(0x342)][_0x1f170e(0x1a6)]['subscribe'](_0x527f2f=>{const _0x14f984=_0x1f170e;let _0x1eed33=this[_0x14f984(0x396)][_0x14f984(0x3bb)]();_0x1eed33&&_0x527f2f['some'](_0x23b98b=>_0x23b98b[_0x14f984(0x36f)]===_0x1eed33[_0x14f984(0x3ea)])&&this[_0x14f984(0x396)][_0x14f984(0x221)](null);}));}['_initEditingParams'](){const _0x4b2f85=_0x38e982;this[_0x4b2f85(0x1b0)](this[_0x4b2f85(0x396)][_0x4b2f85(0x172)][_0x4b2f85(0x335)](_0x5d6263=>{const _0x297f10=_0x4b2f85;let {scene:_0x27ce40}=this[_0x297f10(0x18a)];if(this[_0x297f10(0x359)]){let _0xafbf68=_0x27ce40['getObjectIncludeInGroup'](this[_0x297f10(0x359)]);_0xafbf68&&_0xafbf68[_0x297f10(0x221)](!0x1);}if(_0x5d6263){let _0x4d7f27=!!_0x5d6263[_0x297f10(0x205)],_0x443556=_0x27ce40[_0x297f10(0x260)](_0x5d6263[_0x297f10(0x152)]);_0x443556&&(_0x443556[_0x297f10(0x221)](_0x4d7f27),this[_0x297f10(0x359)]=_0x5d6263[_0x297f10(0x152)]),this[_0x297f10(0x3be)][_0x297f10(0x228)](_0x5a8010,_0x4d7f27);}else this[_0x297f10(0x359)]=null,this[_0x297f10(0x3be)][_0x297f10(0x228)](_0x5a8010,!0x1);}));}};ya=X([Y(0x1,_0x304d45(_0x4cf09b)),Y(0x2,_0x304d45($)),Y(0x3,_0x457af4),Y(0x4,_0x467548),Y(0x5,_0x304d45(_0x57544e))],ya);var ba=class extends ya{[_0x38e982(0x35b)](){const _0x49b54b=_0x38e982;let {scene:_0x2ef182}=this[_0x49b54b(0x18a)],_0x297dac=this[_0x49b54b(0x2ea)][_0x49b54b(0x292)](_0x531a0e);this[_0x49b54b(0x1b0)](_0x2ef182['onDblclick$'][_0x49b54b(0x29b)](_0x35e223=>{const _0x584793=_0x49b54b;let {offsetX:_0x8f5d71,offsetY:_0x256be1}=_0x35e223,_0x1f0cca=_0x2ef182[_0x584793(0x2e2)](_0x225e34[_0x584793(0x1cd)]([_0x8f5d71,_0x256be1]));if(!(_0x1f0cca instanceof J))return;let _0x3aef32=this[_0x584793(0x301)][_0x584793(0x398)](_0x1f0cca[_0x584793(0x3d6)],_0x1f0cca[_0x584793(0x2a0)],_0x1f0cca[_0x584793(0x3ea)]);_0x45fca5(this[_0x584793(0x301)][_0x584793(0x369)](_0x1f0cca[_0x584793(0x3d6)],_0x1f0cca[_0x584793(0x2a0)],_0x1f0cca[_0x584793(0x3ea)]))||_0x3aef32!=null&&_0x3aef32[_0x584793(0x18b)]()[_0x584793(0x1a9)]||_0x297dac[_0x584793(0x189)](_0x584793(0x36c),{'hostType':_0x19c9b9[_0x584793(0x2b6)],'unitId':_0x1f0cca[_0x584793(0x3d6)],'subUnitId':_0x1f0cca[_0x584793(0x2a0)],'shapeId':_0x1f0cca['shapeId']});}));}};const xa={...ca};let Sa=class extends _0x942aec{constructor(_0x1a41c7,_0x250d2a,_0x474018,_0x1451d3,_0x411f42,_0x4ba932,_0x3d3412,_0x4b1db6){const _0x580a24=_0x38e982;super(),this[_0x580a24(0x151)]=_0x1a41c7,this['_sheetsShapeService']=_0x250d2a,this['_commandService']=_0x474018,this[_0x580a24(0x342)]=_0x1451d3,this['_sheetCanvasPopManagerService']=_0x411f42,this[_0x580a24(0x3be)]=_0x4ba932,this['_renderManagerService']=_0x3d3412,this[_0x580a24(0x396)]=_0x4b1db6,q(this,'_shapePopupMenuDisposable',null),this[_0x580a24(0x151)][_0x580a24(0x3b1)](xa),this[_0x580a24(0x13d)](),this[_0x580a24(0x1b0)](this[_0x580a24(0x396)][_0x580a24(0x172)][_0x580a24(0x335)](_0x57a86c=>{_0x57a86c&&this['_clearFocusedShape']();}));}[_0x38e982(0x17b)](){const _0x138a88=_0x38e982;this[_0x138a88(0x2f2)]||=this['disposeWithMe'](_0x4c4456(this[_0x138a88(0x3a5)],_0x19c9b9[_0x138a88(0x2b6)],_0x1cabd1=>this[_0x138a88(0x320)](_0x1cabd1)));}['_registerFeatureMenu'](){const _0x496cb4=_0x38e982;this[_0x496cb4(0x18e)][_0x496cb4(0x1e4)](_0x1afd9e['DRAWING_SHAPE'],(_0x16ac99,_0x3e4ea6,_0x4e3ba3,_0x4639d6)=>{const _0x9b51d8=_0x496cb4;let _0x48fc7c=this['_sheetsShapeService'][_0x9b51d8(0x3d3)](_0x16ac99,_0x3e4ea6,_0x4e3ba3),_0x1a4756=this[_0x9b51d8(0x301)]['getShapeDataById'](_0x16ac99,_0x3e4ea6,_0x4e3ba3),_0x3d2358=_0x48fc7c!==void 0x0&&!_0x45fca5(_0x48fc7c)&&!(_0x1a4756!=null&&_0x1a4756['formulaBinding']);return[{'label':_0x9b51d8(0x21f),'index':0x0,'commandId':fa['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'drawingId':_0x4e3ba3,'mode':_0x9b51d8(0x125)},'disable':!0x1},..._0x3d2358?[{'label':_0x9b51d8(0x29d),'index':0x1,'commandId':fa['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'drawingId':_0x4e3ba3,'mode':_0x9b51d8(0x36c)},'disable':!0x1}]:[],{'label':_0x9b51d8(0x1c4),'index':0x2,'commandId':_0x815e46['id'],'commandParams':{'unitId':_0x16ac99,'drawings':[{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'drawingId':_0x4e3ba3,'drawingType':_0x4639d6}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x4f77fb['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'shapeId':_0x4e3ba3,'flipH':!0x0},'disable':!0x1},{'label':_0x9b51d8(0x318),'index':0x4,'commandId':_0x4f77fb['id'],'commandParams':{'unitId':_0x16ac99,'subUnitId':_0x3e4ea6,'shapeId':_0x4e3ba3,'flipV':!0x0},'disable':!0x1}];},_0x496cb4(0x328));}['_popupMenuListener'](_0x22b327){const _0x1d39a2=_0x38e982;let _0x24e837=new _0x21c758(),_0x2a3803=null,_0x46001a=()=>{const _0x5bf92b=_0x2e49;if(!_0x2a3803)return;let _0x36b2cd=this[_0x5bf92b(0x342)][_0x5bf92b(0x212)](),_0x1b8c1c=_0x36b2cd[_0x5bf92b(0x23c)]===0x0||_0x36b2cd[_0x5bf92b(0x23c)]===0x1&&_0x36b2cd[_0x5bf92b(0x38a)](_0x5e45d6=>_0x5e45d6[_0x5bf92b(0x3d6)]===(_0x2a3803==null?void 0x0:_0x2a3803[_0x5bf92b(0x3d6)])&&_0x5e45d6[_0x5bf92b(0x2a0)]===(_0x2a3803==null?void 0x0:_0x2a3803[_0x5bf92b(0x2a0)])&&_0x5e45d6[_0x5bf92b(0x36f)]===(_0x2a3803==null?void 0x0:_0x2a3803[_0x5bf92b(0x36f)]));_0x2a3803=null,_0x1b8c1c&&(this['_contextService']['setContextValue'](_0x27fe43,!0x1),this[_0x5bf92b(0x342)][_0x5bf92b(0x116)](null));};return _0x24e837[_0x1d39a2(0x385)](_0x22b327[_0x1d39a2(0x16a)][_0x1d39a2(0x335)](()=>{const _0x16c0c5=_0x1d39a2;let _0x39161e=_0x22b327['getSelectedObjectMap']();if(_0x39161e['size']>0x1){_0x46001a();return;}let _0x3d5f1f=_0x39161e[_0x16c0c5(0x38e)]()[_0x16c0c5(0x267)]()['value'];if(!_0x3d5f1f){_0x46001a();return;}let _0x67957f=this[_0x16c0c5(0x342)][_0x16c0c5(0x1da)](_0x3d5f1f[_0x16c0c5(0x143)]);if(!_0x67957f||_0x67957f[_0x16c0c5(0x3bd)]!==_0x1afd9e['DRAWING_SHAPE']){_0x46001a();return;}let {unitId:_0x1212af,subUnitId:_0x1db73e,drawingId:_0x50d927}=_0x67957f;_0x2a3803={'unitId':_0x1212af,'subUnitId':_0x1db73e,'drawingId':_0x50d927},this[_0x16c0c5(0x3be)]['setContextValue'](_0x27fe43,!0x0),this[_0x16c0c5(0x342)][_0x16c0c5(0x212)]()[_0x16c0c5(0x397)](_0x456f20=>_0x456f20[_0x16c0c5(0x3d6)]===_0x1212af&&_0x456f20[_0x16c0c5(0x2a0)]===_0x1db73e&&_0x456f20[_0x16c0c5(0x36f)]===_0x50d927)||this[_0x16c0c5(0x342)][_0x16c0c5(0x116)]([{'unitId':_0x1212af,'subUnitId':_0x1db73e,'drawingId':_0x50d927}]);})),_0x24e837[_0x1d39a2(0x385)](_0x22b327[_0x1d39a2(0x16d)][_0x1d39a2(0x335)](()=>{_0x46001a();})),_0x3cb981(()=>{const _0x4ca489=_0x1d39a2;_0x24e837[_0x4ca489(0x39d)](),_0x46001a();});}[_0x38e982(0x2c2)](){const _0x414a5=_0x38e982;this[_0x414a5(0x3be)][_0x414a5(0x228)](_0x27fe43,!0x1),this[_0x414a5(0x342)]['focusDrawing'](null);}};Sa=X([Y(0x0,_0x3d7840),Y(0x1,_0x304d45(_0x57544e)),Y(0x2,_0x5aac1e),Y(0x3,_0x457af4),Y(0x4,_0x304d45(_0x3f309f)),Y(0x5,_0x467548),Y(0x6,_0x1fc6ff),Y(0x7,_0x304d45($))],Sa);function Ca(_0x536631,_0x11fda2,_0x151f92,_0x3ba997){const _0x202d87=_0x38e982;let _0x2af4cb=_0x6b5c1d(_0x536631,_0x11fda2,_0x151f92),_0x5abc52=[];for(let _0xcff6 of _0x11fda2){let _0x47f3c3=_0x2af4cb[_0x202d87(0x395)][_0x202d87(0x292)](_0xcff6[_0x202d87(0x36f)]),_0x5624b5=_0x3ba997(_0xcff6);_0x47f3c3&&_0x5624b5&&_0x5abc52[_0x202d87(0x21d)]({'targetShapeId':_0x47f3c3,'source':_0x5624b5});}return _0x5abc52;}let wa=class extends _0x942aec{constructor(_0x5d7f7d,_0x3b06d3,_0x5a7dda,_0x3535ba){const _0x560e8c=_0x38e982;super(),this[_0x560e8c(0x23f)]=_0x5d7f7d,this[_0x560e8c(0x2e5)]=_0x3b06d3,this[_0x560e8c(0x340)]=_0x5a7dda,this[_0x560e8c(0x301)]=_0x3535ba,this['_initSheetChange']();}[_0x38e982(0x186)](){const _0x1b701=_0x38e982;this['disposeWithMe'](this[_0x1b701(0x2e5)]['interceptCommand']({'getMutations':_0x3257be=>{const _0x1e0d1f=_0x1b701;if(_0x3257be['id']===_0x56451c['id']){let _0xaad3f3=_0x5290f5(this['_univerInstanceService'],_0x3257be['params']);if(!_0xaad3f3)return{'redos':[],'undos':[]};let {unitId:_0x5b0c13,subUnitId:_0x4fad33}=_0xaad3f3,_0x5906c9=this[_0x1e0d1f(0x340)][_0x1e0d1f(0x39a)](_0x5b0c13,_0x4fad33),_0x59a691=Object[_0x1e0d1f(0x38e)](_0x5906c9)[_0x1e0d1f(0x2d3)](_0x134d13=>_0x134d13[_0x1e0d1f(0x3bd)]===_0x1afd9e[_0x1e0d1f(0x2d5)]);if(_0x59a691[_0x1e0d1f(0x23c)]===0x0)return{'redos':[],'undos':[]};let _0x28a3aa=[],_0x305ebe=[];for(let _0x4feddb=0x0;_0x4feddb<_0x59a691[_0x1e0d1f(0x23c)];_0x4feddb++){let _0x180b28=_0x59a691[_0x4feddb],_0x1c05a3=this['_sheetsShapeService'][_0x1e0d1f(0x398)](_0x180b28[_0x1e0d1f(0x3d6)],_0x180b28[_0x1e0d1f(0x2a0)],_0x180b28[_0x1e0d1f(0x36f)]);_0x1c05a3&&(_0x28a3aa[_0x1e0d1f(0x21d)]({'id':_0x568d3b['id'],'params':{'unitId':_0x5b0c13,'subUnitId':_0x4fad33,'shapeId':_0x180b28[_0x1e0d1f(0x36f)]}}),_0x305ebe[_0x1e0d1f(0x21d)]({'id':_0x640227['id'],'params':{'unitId':_0x5b0c13,'subUnitId':_0x4fad33,'shapeId':_0x180b28[_0x1e0d1f(0x36f)],'shapeType':_0x1c05a3[_0x1e0d1f(0x369)](),'shapeData':JSON[_0x1e0d1f(0x140)](JSON[_0x1e0d1f(0x227)](_0x1c05a3[_0x1e0d1f(0x18b)]()))}}));}return{'redos':_0x28a3aa,'undos':_0x305ebe};}if(_0x3257be['id']===_0x2f491b['id']){let {unitId:_0x5cd6f7,subUnitId:_0x412f33,targetSubUnitId:_0x5336c0,copyContext:_0x3439c5}=_0x3257be[_0x1e0d1f(0x3c6)];if(!_0x5cd6f7||!_0x412f33||!_0x5336c0)return{'redos':[],'undos':[]};let _0x127b6c=this[_0x1e0d1f(0x340)][_0x1e0d1f(0x39a)](_0x5cd6f7,_0x412f33),_0x30f65b=Object[_0x1e0d1f(0x38e)](_0x127b6c)[_0x1e0d1f(0x2d3)](_0x54bb0e=>_0x54bb0e[_0x1e0d1f(0x3bd)]===_0x1afd9e[_0x1e0d1f(0x2d5)]);if(_0x30f65b[_0x1e0d1f(0x23c)]===0x0)return{'redos':[],'undos':[]};let _0x5de228=Ca(_0x3439c5,_0x30f65b,{'unitId':_0x5cd6f7,'sourceSubUnitId':_0x412f33,'targetSubUnitId':_0x5336c0},_0x130376=>{const _0x1c9d74=_0x1e0d1f;let _0x7e25d8=this[_0x1c9d74(0x301)][_0x1c9d74(0x398)](_0x130376[_0x1c9d74(0x3d6)],_0x130376[_0x1c9d74(0x2a0)],_0x130376['drawingId']);if(_0x7e25d8)return{'shapeType':_0x7e25d8['getShapeType'](),'shapeData':JSON[_0x1c9d74(0x140)](JSON[_0x1c9d74(0x227)](_0x7e25d8[_0x1c9d74(0x18b)]()))};}),_0x3a19a4=[],_0x4500d8=[];for(let {targetShapeId:_0xbafdf,source:_0x4d5212}of _0x5de228)_0x3a19a4[_0x1e0d1f(0x21d)]({'id':_0x640227['id'],'params':{'unitId':_0x5cd6f7,'subUnitId':_0x5336c0,'shapeId':_0xbafdf,'shapeType':_0x4d5212[_0x1e0d1f(0x185)],'shapeData':_0x4d5212[_0x1e0d1f(0x194)]}}),_0x4500d8[_0x1e0d1f(0x21d)]({'id':_0x568d3b['id'],'params':{'unitId':_0x5cd6f7,'subUnitId':_0x5336c0,'shapeId':_0xbafdf}});return{'redos':_0x3a19a4,'undos':_0x4500d8};}return{'redos':[],'undos':[]};}}));}};wa=X([Y(0x0,_0x304d45(_0x5789bf)),Y(0x1,_0x304d45(_0x3f5c81)),Y(0x2,_0x304d45(_0x1f9cb1)),Y(0x3,_0x304d45(_0x57544e))],wa);let Ta=class extends _0x942aec{constructor(_0xb3bff1,_0x292ac9,_0xadc6e3,_0x363bf0,_0xc9ef9f,_0x1b11d5){const _0x4a5f4f=_0x38e982;super(),this[_0x4a5f4f(0x338)]=_0xb3bff1,this[_0x4a5f4f(0x3a5)]=_0x292ac9,this[_0x4a5f4f(0x342)]=_0xadc6e3,this[_0x4a5f4f(0x37f)]=_0x363bf0,this['_drawingRenderService']=_0xc9ef9f,this[_0x4a5f4f(0x1e8)]=_0x1b11d5,q(this,_0x4a5f4f(0x1d4),new Set()),this[_0x4a5f4f(0x344)]();}[_0x38e982(0x344)](){const _0x6793a1=_0x38e982;this[_0x6793a1(0x1a3)](),this[_0x6793a1(0x39f)](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x535224=_0x38e982;this[_0x535224(0x1b0)](this[_0x535224(0x342)][_0x535224(0x332)][_0x535224(0x335)](_0x90eb84=>{const _0x109d28=_0x535224;this[_0x109d28(0x147)](_0x90eb84);}));}[_0x38e982(0x39f)](){const _0x51b853=_0x38e982;this[_0x51b853(0x1b0)](this[_0x51b853(0x338)][_0x51b853(0x325)]((_0x1eb613,_0x1bda03)=>{const _0x699f3b=_0x51b853;if(_0x1eb613['id']===_0x5a5b4d['id']){let {unitId:_0x27ca57,subUnitId:_0x19749e,shapeId:_0x26aa3a}=_0x1eb613[_0x699f3b(0x3c6)],_0x35ba27=this[_0x699f3b(0x195)](_0x27ca57),_0x5110ae=_0x306bd8({'unitId':_0x27ca57,'subUnitId':_0x19749e,'drawingId':_0x26aa3a}),_0x7d3a87=_0x35ba27==null?void 0x0:_0x35ba27[_0x699f3b(0x313)]['getObjectIncludeInGroup'](_0x5110ae);_0x7d3a87&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x7d3a87),this[_0x699f3b(0x1e8)][_0x699f3b(0x163)](_0x7d3a87,{'unitId':_0x27ca57,'subUnitId':_0x19749e,'shapeId':_0x26aa3a}),_0x7d3a87['makeDirty'](!0x0));}else{if(_0x1eb613['id']===_0x640227['id']){var _0x595366;let {unitId:_0x2a9dd7,subUnitId:_0x5a744c,shapeId:_0x131a9d}=_0x1eb613[_0x699f3b(0x3c6)],_0x1695db=this[_0x699f3b(0x195)](_0x2a9dd7);if(_0x1695db==null)return;let {scene:_0xbc15a}=_0x1695db,_0x4c91aa=_0x306bd8({'unitId':_0x2a9dd7,'subUnitId':_0x5a744c,'drawingId':_0x131a9d}),_0x18823b=_0xbc15a[_0x699f3b(0x260)](_0x4c91aa);if(!((_0x595366=this[_0x699f3b(0x3a5)]['getRenderUnitById'](_0x2a9dd7))!=null&&_0x595366[_0x699f3b(0x24f)](_0x151dc3)[_0x699f3b(0x17d)](_0x5a744c)))return!0x1;if(_0x18823b)return;if(_0x1bda03!=null&&_0x1bda03['fromChangeset']){queueMicrotask(()=>{const _0x45e805=_0x699f3b;this['_disposed']||this[_0x45e805(0x147)]([{'unitId':_0x2a9dd7,'subUnitId':_0x5a744c,'drawingId':_0x131a9d}]);});return;}this['_insertShapes']([{'unitId':_0x2a9dd7,'subUnitId':_0x5a744c,'drawingId':_0x131a9d}]);}}}));}['_shapeUpdateListener'](){const _0x374019=_0x38e982;this['disposeWithMe'](this[_0x374019(0x342)][_0x374019(0x27f)]['subscribe'](_0xb432ab=>{const _0x15bc65=_0x374019;_0xb432ab[_0x15bc65(0x2a5)](_0x4351ea=>{const _0xac4a7c=_0x15bc65;let {unitId:_0x29f0eb,subUnitId:_0x5d10fc,drawingId:_0x199fcb}=_0x4351ea,_0x3feb11=this[_0xac4a7c(0x342)]['getDrawingByParam'](_0x4351ea);if(_0x3feb11==null)return;let {transform:_0x2088e6,drawingType:_0x489e3a,srcRect:_0xee9010,prstGeom:_0x254b3}=_0x3feb11;if(_0x489e3a!==_0x1afd9e[_0xac4a7c(0x2d5)])return;let _0x1517be=this[_0xac4a7c(0x195)](_0x29f0eb);if(_0x1517be==null)return;let {scene:_0x163f4c,transformer:_0x53bddc}=_0x1517be;if(_0x2088e6==null)return!0x0;let _0x5f4292=_0x306bd8({'unitId':_0x29f0eb,'subUnitId':_0x5d10fc,'drawingId':_0x199fcb}),_0x3f423d=_0x163f4c[_0xac4a7c(0x260)](_0x5f4292);if(_0x3f423d==null)return!0x0;_0x3f423d[_0xac4a7c(0x341)](_0xee9010),_0x3f423d[_0xac4a7c(0x33a)](_0x254b3);});}));}[_0x38e982(0x147)](_0x2a6912){const _0x2a238d=_0x38e982;for(let _0x5b35f5 of _0x2a6912){var _0x4ff85c;let {unitId:_0x2b9af5,subUnitId:_0x45e78f,drawingId:_0xeceee5}=_0x5b35f5,_0x8be650=this[_0x2a238d(0x195)](_0x2b9af5),_0x20336b=(_0x4ff85c=_0x2abb90(this[_0x2a238d(0x37f)],_0x2b9af5))==null?void 0x0:_0x4ff85c[_0x2a238d(0x2a0)];if(_0x8be650==null||_0x20336b!==_0x45e78f)continue;let _0x39a7f9=_0x306bd8({'unitId':_0x2b9af5,'subUnitId':_0x45e78f,'drawingId':_0xeceee5});if(this[_0x2a238d(0x1d4)][_0x2a238d(0x3eb)](_0x39a7f9)||_0x8be650['scene'][_0x2a238d(0x260)](_0x39a7f9)!=null)continue;let _0x39b410=this[_0x2a238d(0x342)][_0x2a238d(0x254)](_0x5b35f5);if(_0x39b410==null||_0x39b410[_0x2a238d(0x3bd)]!==_0x1afd9e[_0x2a238d(0x2d5)])continue;let _0x4faaf5=_0x39b410['data']||{};if(_0x45fca5(_0x4faaf5['shapeType'])){let _0x4e0378=_0x39b410[_0x2a238d(0x3d2)];_0x4e0378&&(_0x39b410[_0x2a238d(0x3d2)]={..._0x4e0378,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2a238d(0x1d4)][_0x2a238d(0x385)](_0x39a7f9);try{this[_0x2a238d(0x1e8)]['renderDrawingShape'](_0x39b410,_0x8be650[_0x2a238d(0x313)]);}finally{this['_insertingShapeKeys'][_0x2a238d(0x1ba)](_0x39a7f9);}queueMicrotask(()=>{const _0x34284a=_0x2a238d;if(this[_0x34284a(0x17a)])return;let _0x17bcf3=_0x306bd8(_0x5b35f5);if(!_0x8be650[_0x34284a(0x313)][_0x34284a(0x260)](_0x17bcf3))return;let _0x891484=this[_0x34284a(0x342)][_0x34284a(0x254)](_0x5b35f5);_0x891484&&this[_0x34284a(0x342)][_0x34284a(0x235)]([_0x891484]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x28a4fe){const _0x2be9af=_0x38e982;if(_0x28a4fe==null)return;let _0x47adfd=this['_renderManagerService']['getRenderUnitById'](_0x28a4fe),_0x3f4f16=_0x47adfd==null?void 0x0:_0x47adfd[_0x2be9af(0x313)];return _0x3f4f16==null?null:{'scene':_0x3f4f16,'transformer':_0x3f4f16['getTransformerByCreate']()};}};Ta=X([Y(0x0,_0x5aac1e),Y(0x1,_0x1fc6ff),Y(0x2,_0x457af4),Y(0x3,_0x5789bf),Y(0x4,_0x304d45(_0x1418f0)),Y(0x5,_0x304d45(Z))],Ta);const Ea={'normal':{'fill':_0x436eb7[_0x38e982(0x12b)],'stroke':_0x436eb7[_0x38e982(0x2f3)],'strokeWidth':_0x436eb7[_0x38e982(0x2e6)]},'highlighted':{'fill':'#4285f4','stroke':_0x38e982(0x117),'strokeWidth':0x2}};var Da=class extends _0x45dea2{constructor(_0x4fcd8a,_0x48d798){const _0x28502f=_0x38e982;super(_0x4fcd8a,_0x48d798),q(this,_0x28502f(0x31c),''),q(this,'_cxnIndex',-0x1),q(this,_0x28502f(0x202),''),q(this,_0x28502f(0x229),''),q(this,'_isHighlighted',!0x1),_0x48d798&&this['setShapeProps'](_0x48d798);}['getConnectionInfo'](){const _0x59c7ba=_0x38e982;return{'unitId':this[_0x59c7ba(0x202)],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x59c7ba(0x399)]};}[_0x38e982(0x236)](_0x12f6d6){this['_isHighlighted']!==_0x12f6d6&&(this['_isHighlighted']=_0x12f6d6,this['makeDirty'](!0x0));}[_0x38e982(0x1aa)](){return this['_isHighlighted'];}[_0x38e982(0x250)](_0x461b58){const _0x418b5e=_0x38e982;_0x461b58['targetShapeId']!==void 0x0&&(this['_targetShapeId']=_0x461b58[_0x418b5e(0x2c9)]),_0x461b58[_0x418b5e(0x34d)]!==void 0x0&&(this[_0x418b5e(0x399)]=_0x461b58[_0x418b5e(0x34d)]),_0x461b58[_0x418b5e(0x3d6)]!==void 0x0&&(this[_0x418b5e(0x202)]=_0x461b58[_0x418b5e(0x3d6)]),_0x461b58[_0x418b5e(0x2a0)]!==void 0x0&&(this[_0x418b5e(0x229)]=_0x461b58[_0x418b5e(0x2a0)]),_0x461b58[_0x418b5e(0x1aa)]!==void 0x0&&(this[_0x418b5e(0x31e)]=_0x461b58[_0x418b5e(0x1aa)]),this[_0x418b5e(0x1fe)]({'width':_0x461b58[_0x418b5e(0x304)]??_0x436eb7['cxnPointRadius']*0x2,'height':_0x461b58[_0x418b5e(0x204)]??_0x436eb7[_0x418b5e(0x216)]*0x2});}[_0x38e982(0x1c5)](_0x25e07a){const _0x2657ee=_0x38e982;let _0x5bbcf9=this[_0x2657ee(0x31e)]?Ea[_0x2657ee(0x2f6)]:Ea[_0x2657ee(0x3c9)];_0x417a06['drawWith'](_0x25e07a,{'radius':_0x436eb7[_0x2657ee(0x216)],'fill':_0x5bbcf9[_0x2657ee(0x3c1)],'stroke':_0x5bbcf9[_0x2657ee(0x22f)],'strokeWidth':_0x5bbcf9[_0x2657ee(0x1ff)],'evented':!0x0});}};let Oa=class extends _0x942aec{constructor(_0x449af7,_0x3dad74,_0x248e2f,_0xd6e5b8){const _0x110390=_0x38e982;super(),this[_0x110390(0x18a)]=_0x449af7,this[_0x110390(0x3a5)]=_0x3dad74,this[_0x110390(0x342)]=_0x248e2f,this[_0x110390(0x301)]=_0xd6e5b8,q(this,_0x110390(0x3c8),[]),q(this,_0x110390(0x374),null),q(this,_0x110390(0x11c),-0x1),q(this,_0x110390(0x1b7),null),q(this,'_unitId',''),q(this,'_subUnitId',''),q(this,_0x110390(0x3b8),null);}['startConnectionDetection'](_0x1c44cd,_0x274ed2,_0x237a4f,_0x3262c1){const _0x31dc83=_0x38e982;this[_0x31dc83(0x1b7)]=_0x1c44cd,this[_0x31dc83(0x202)]=_0x274ed2,this['_subUnitId']=_0x237a4f,this[_0x31dc83(0x3b8)]=_0x3262c1;}['updateConnectionDetection'](_0x1c4f2b){const _0x420141=_0x38e982;if(!this[_0x420141(0x1b7)])return null;let _0x173ac2=this['_findShapeAtPoint'](_0x1c4f2b);return _0x173ac2?(this[_0x420141(0x374)]!==_0x173ac2['shapeId']&&(this[_0x420141(0x2dd)](),this['_showConnectionSites'](_0x173ac2[_0x420141(0x3ea)],_0x173ac2[_0x420141(0x35d)]),this[_0x420141(0x374)]=_0x173ac2[_0x420141(0x3ea)]),this['_findNearestConnectionSite'](_0x1c4f2b)):(this[_0x420141(0x374)]!==null&&(this[_0x420141(0x2dd)](),this[_0x420141(0x374)]=null),null);}[_0x38e982(0x1c9)](){const _0x649c56=_0x38e982;this[_0x649c56(0x2dd)](),this[_0x649c56(0x1b7)]=null,this['_activeTargetShapeId']=null,this[_0x649c56(0x11c)]=-0x1,this[_0x649c56(0x3b8)]=null;}[_0x38e982(0x2b3)](){const _0x58e593=_0x38e982;return this[_0x58e593(0x374)]===null||this[_0x58e593(0x11c)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x58e593(0x11c)]};}[_0x38e982(0x21a)](_0x3e77fc){const _0x48561a=_0x38e982;let _0x389632=this[_0x48561a(0x342)][_0x48561a(0x39a)](this[_0x48561a(0x202)],this[_0x48561a(0x229)]);for(let _0x13ac0e of Object[_0x48561a(0x34e)](_0x389632)){if(_0x13ac0e===this['_draggingConnectorId']||_0x389632[_0x13ac0e]['drawingType']!==_0x1afd9e[_0x48561a(0x2d5)])continue;let _0x40e33a=this[_0x48561a(0x301)][_0x48561a(0x398)](this[_0x48561a(0x202)],this[_0x48561a(0x229)],_0x13ac0e);if(!_0x40e33a||_0x45fca5(_0x40e33a[_0x48561a(0x369)]())||_0x40e33a[_0x48561a(0x1e3)]()[_0x48561a(0x23c)]===0x0||!this['_currentScene'])continue;let _0x4dbc9d=_0x306bd8({'unitId':this[_0x48561a(0x202)],'subUnitId':this[_0x48561a(0x229)],'drawingId':_0x13ac0e}),_0x5e912d=this[_0x48561a(0x1b7)]['getObjectIncludeInGroup'](_0x4dbc9d);if(!_0x5e912d)continue;let {left:_0x20bb01,top:_0x1cbe8e,width:_0x4bb186,height:_0x38ca7b}=_0x5e912d[_0x48561a(0x337)](),_0x4c2814=_0x20bb01+_0x4bb186/0x2,_0x201d34=_0x1cbe8e+_0x38ca7b/0x2,_0x1eed90=_0x5e912d[_0x48561a(0x3d2)][_0x48561a(0x16b)](),_0x37a0e2=new _0x18b849([_0x1eed90[0x0],_0x1eed90[0x1],_0x1eed90[0x2],_0x1eed90[0x3],_0x4c2814,_0x201d34]),_0x53d2b6=_0x5e912d[_0x48561a(0x1b4)](),_0x7aa307=(_0x5e912d[_0x48561a(0x3e1)]&&(_0x53d2b6==null?void 0x0:_0x53d2b6[_0x48561a(0x31b)])===_0x4ede46[_0x48561a(0x20a)]?_0x53d2b6[_0x48561a(0x307)][_0x48561a(0x365)](_0x37a0e2):_0x37a0e2)[_0x48561a(0x2ad)]()[_0x48561a(0x2f5)](_0x3e77fc),_0x107332=_0x4bb186/0x2,_0x537434=_0x38ca7b/0x2;if(_0x7aa307['x']>=-_0x107332-0x5&&_0x7aa307['x']<=_0x107332+0x5&&_0x7aa307['y']>=-_0x537434-0x5&&_0x7aa307['y']<=_0x537434+0x5)return{'shapeId':_0x13ac0e,'shapeModel':_0x40e33a};}return null;}[_0x38e982(0x290)](_0x43038d,_0x3301c9){const _0x36b831=_0x38e982;if(!this[_0x36b831(0x1b7)])return;let _0x1170ec=_0x306bd8({'unitId':this[_0x36b831(0x202)],'subUnitId':this['_subUnitId'],'drawingId':_0x43038d}),_0x49f38e=this[_0x36b831(0x1b7)][_0x36b831(0x260)](_0x1170ec);if(!_0x49f38e)return;let {left:_0x4ea3e5,top:_0x46725c,width:_0x41919b,height:_0x46bb5e}=_0x49f38e['getRealBound'](),_0x4cca3b=_0x4ea3e5+_0x41919b/0x2,_0x14ced8=_0x46725c+_0x46bb5e/0x2,_0x10d262=_0x49f38e[_0x36b831(0x3d2)][_0x36b831(0x16b)](),_0x4bcab3=new _0x18b849([_0x10d262[0x0],_0x10d262[0x1],_0x10d262[0x2],_0x10d262[0x3],_0x4cca3b,_0x14ced8]),_0x34bab9=_0x49f38e[_0x36b831(0x1b4)](),_0xa0a88c=_0x49f38e[_0x36b831(0x3e1)]&&(_0x34bab9==null?void 0x0:_0x34bab9[_0x36b831(0x31b)])===_0x4ede46[_0x36b831(0x20a)]?_0x34bab9[_0x36b831(0x307)]['multiply'](_0x4bcab3):_0x4bcab3;_0x3301c9[_0x36b831(0x276)]({'width':_0x41919b,'height':_0x46bb5e});let _0x248d4c=_0x3301c9[_0x36b831(0x1e3)]();for(let _0x5ed3ff of _0x248d4c){let _0x136722=_0x5ed3ff['x']-_0x41919b/0x2,_0x58f9c6=_0x5ed3ff['y']-_0x46bb5e/0x2,_0x44008f=_0xa0a88c[_0x36b831(0x2f5)]({'x':_0x136722,'y':_0x58f9c6}),_0x1d8927=_0x44008f['x'],_0x1e9d76=_0x44008f['y'],_0x2a270b=new Da(_0x36b831(0x2b9)+_0x43038d+'-'+_0x5ed3ff[_0x36b831(0x124)],{'left':_0x1d8927-_0x436eb7['cxnPointRadius'],'top':_0x1e9d76-_0x436eb7[_0x36b831(0x216)],'targetShapeId':_0x43038d,'cxnIndex':_0x5ed3ff[_0x36b831(0x124)],'unitId':this[_0x36b831(0x202)],'subUnitId':this[_0x36b831(0x229)],'width':_0x436eb7['cxnPointRadius']*0x2,'height':_0x436eb7[_0x36b831(0x216)]*0x2,'zIndex':_0x5c1c17+0x2,'evented':!0x1});this[_0x36b831(0x3c8)][_0x36b831(0x21d)](_0x2a270b),this['_currentScene'][_0x36b831(0x22c)](_0x2a270b,_0x5c1c17+0x2);}}[_0x38e982(0x3e7)](_0x247f6b){const _0x206be4=_0x38e982;let _0x2411e7=null,_0x16cd71=0x1/0x0,_0x13a699=null;for(let _0x4f99da of this[_0x206be4(0x3c8)]){let _0x3ac3ba=_0x4f99da[_0x206be4(0x39b)]+_0x436eb7[_0x206be4(0x216)],_0x2f2965=_0x4f99da[_0x206be4(0x218)]+_0x436eb7[_0x206be4(0x216)],_0xceb375=_0x247f6b['x']-_0x3ac3ba,_0x2f3288=_0x247f6b['y']-_0x2f2965,_0x40e0d0=Math[_0x206be4(0x36b)](_0xceb375*_0xceb375+_0x2f3288*_0x2f3288);_0x40e0d0<_0x16cd71&&(_0x16cd71=_0x40e0d0,_0x2411e7=_0x4f99da,_0x13a699={'x':_0x3ac3ba,'y':_0x2f2965});}let _0x21cda3=_0x16cd71<=0xa&&_0x2411e7?_0x2411e7[_0x206be4(0x264)]()['cxnIndex']:-0x1;if(_0x21cda3!==this[_0x206be4(0x11c)]){for(let _0x165a33 of this['_connectionSiteObjects']){let _0x4a2875=_0x165a33[_0x206be4(0x264)]();_0x165a33['setHighlighted'](_0x4a2875[_0x206be4(0x34d)]===_0x21cda3);}this[_0x206be4(0x11c)]=_0x21cda3;}if(_0x16cd71<=0xa&&_0x2411e7&&_0x13a699){let _0x5f5456=_0x2411e7[_0x206be4(0x264)](),_0x2de085=this[_0x206be4(0x382)](_0x5f5456[_0x206be4(0x3ea)],_0x5f5456[_0x206be4(0x34d)]);return{'shapeId':_0x5f5456[_0x206be4(0x3ea)],'cxnIndex':_0x5f5456[_0x206be4(0x34d)],'unitId':_0x5f5456['unitId'],'subUnitId':_0x5f5456['subUnitId'],'worldPoint':_0x13a699,'angle':_0x2de085};}return null;}[_0x38e982(0x382)](_0x354d6a,_0x3198f0){const _0x1de7d8=_0x38e982;let _0x5e7ee7=this[_0x1de7d8(0x301)][_0x1de7d8(0x398)](this[_0x1de7d8(0x202)],this[_0x1de7d8(0x229)],_0x354d6a);if(!_0x5e7ee7)return 0x0;let _0x499829=this[_0x1de7d8(0x342)][_0x1de7d8(0x254)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x354d6a});if(!(_0x499829!=null&&_0x499829['transform']))return 0x0;let {width:_0x1ecbb8=0x0,height:_0x2058c8=0x0,flipX:_0x313eea=!0x1,flipY:_0x472cfa=!0x1}=_0x499829[_0x1de7d8(0x3d2)];_0x5e7ee7[_0x1de7d8(0x276)]({'width':_0x1ecbb8,'height':_0x2058c8});let _0x937ab2=_0x5e7ee7[_0x1de7d8(0x1e3)]()[_0x1de7d8(0x397)](_0x2fd471=>_0x2fd471[_0x1de7d8(0x124)]===_0x3198f0);if(!_0x937ab2)return 0x0;let _0x365148=_0x937ab2['ang']/0xea60;return _0x313eea&&(_0x365148=0xb4-_0x365148),_0x472cfa&&(_0x365148=-_0x365148),_0x365148=(_0x365148%0x168+0x168)%0x168,_0x365148;}[_0x38e982(0x2dd)](){const _0x1446ef=_0x38e982;for(let _0x56e4bf of this[_0x1446ef(0x3c8)])_0x56e4bf[_0x1446ef(0x39d)]();this[_0x1446ef(0x3c8)]=[],this[_0x1446ef(0x11c)]=-0x1;}[_0x38e982(0x39d)](){const _0x5766b7=_0x38e982;this[_0x5766b7(0x2dd)](),super['dispose']();}};Oa=X([Y(0x1,_0x304d45(_0x1fc6ff)),Y(0x2,_0x304d45(_0x457af4)),Y(0x3,_0x304d45(_0x57544e))],Oa);let ka=class extends _0x942aec{constructor(_0xbacfdf,_0x2982d8,_0x5625a9,_0x49b974,_0x5d7097,_0x13c51a,_0x33f146,_0x4725a8){const _0x2a8bb3=_0x38e982;super(),this[_0x2a8bb3(0x1e9)]=_0xbacfdf,this[_0x2a8bb3(0x2b7)]=_0x2982d8,this['_sheetDrawingService']=_0x5625a9,this['_shapeService']=_0x49b974,this['_groupCopyPasteController']=_0x5d7097,this['_instances']=_0x13c51a,this[_0x2a8bb3(0x38d)]=_0x33f146,this[_0x2a8bb3(0x238)]=_0x4725a8,q(this,_0x2a8bb3(0x237),void 0x0),this[_0x2a8bb3(0x170)](),this[_0x2a8bb3(0x261)]();}get[_0x38e982(0x180)](){const _0xa6bdda=_0x38e982;return this[_0xa6bdda(0x340)][_0xa6bdda(0x212)]();}['_registerGroupFeaturePasteHook'](){const _0x14de19=_0x38e982;this[_0x14de19(0x262)][_0x14de19(0x3d7)](({fromUnitId:_0x4b321f,fromSubUnitId:_0x10ccf8,toUnitId:_0x15445a,toSubUnitId:_0x56dc3d,idMap:_0x2efd25})=>{const _0x29ab5a=_0x14de19;let _0x177114=[],_0x4fd9c5=[];for(let [_0x17d11f,_0x20218a]of _0x2efd25[_0x29ab5a(0x128)]()){let _0x1fc536=this[_0x29ab5a(0x373)][_0x29ab5a(0x398)](_0x4b321f,_0x10ccf8,_0x17d11f);if(!_0x1fc536)continue;let _0x1ef813=_0x1fc536[_0x29ab5a(0x369)](),_0x483795=JSON['parse'](JSON[_0x29ab5a(0x227)](_0x1fc536['getShapeData']()));if(_0x483795['relation']){var _0x45ef34,_0x2a5d3d;let _0x2ebf55=(_0x45ef34=_0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)])==null?void 0x0:_0x45ef34[_0x29ab5a(0x3ea)],_0x27454a=(_0x2a5d3d=_0x483795['relation']['to'])==null?void 0x0:_0x2a5d3d[_0x29ab5a(0x3ea)],_0x2e0a4b=!_0x2ebf55||_0x2efd25[_0x29ab5a(0x3eb)](_0x2ebf55),_0x5d4985=!_0x27454a||_0x2efd25[_0x29ab5a(0x3eb)](_0x27454a);_0x2e0a4b&&_0x2ebf55&&_0x483795[_0x29ab5a(0x1c1)]['from']?_0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)]={..._0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)],'shapeId':_0x2efd25[_0x29ab5a(0x292)](_0x2ebf55)}:_0x483795[_0x29ab5a(0x1c1)][_0x29ab5a(0x1ca)]=void 0x0,_0x5d4985&&_0x27454a&&_0x483795[_0x29ab5a(0x1c1)]['to']?_0x483795[_0x29ab5a(0x1c1)]['to']={..._0x483795[_0x29ab5a(0x1c1)]['to'],'shapeId':_0x2efd25['get'](_0x27454a)}:_0x483795[_0x29ab5a(0x1c1)]['to']=void 0x0;}_0x177114[_0x29ab5a(0x21d)]({'id':_0x640227['id'],'params':{'unitId':_0x15445a,'subUnitId':_0x56dc3d,'shapeId':_0x20218a,'shapeType':_0x1ef813,'shapeData':_0x483795}}),_0x4fd9c5[_0x29ab5a(0x21d)]({'id':_0x568d3b['id'],'params':{'unitId':_0x15445a,'subUnitId':_0x56dc3d,'shapeId':_0x20218a}});}return{'redos':_0x177114,'undos':_0x4fd9c5};});}[_0x38e982(0x170)](){const _0x553c2b=_0x38e982;this[_0x553c2b(0x1b0)](this['_sheetClipboardService'][_0x553c2b(0x2be)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x5e41f9,_0x32118b,_0x31e5dc)=>{const _0x492268=_0x553c2b;this[_0x492268(0x237)]=null;let _0x210e1d=this[_0x492268(0x180)][_0x492268(0x2d3)](_0x4747d2=>_0x4747d2['drawingType']===_0x1afd9e[_0x492268(0x2d5)]);return _0x210e1d['length']!==0x0&&(this[_0x492268(0x237)]={'unitId':_0x5e41f9,'subUnitId':_0x32118b,'copyType':_0x31e5dc,'drawings':_0x210e1d},!0x0);},'onBeforeCopy':(_0xe17dcb,_0x4e10f5,_0x4df6d7,_0x22409e)=>{const _0x3d112a=_0x553c2b;this['_copyInfo']=null,this[_0x3d112a(0x241)](_0xe17dcb,_0x4e10f5,_0x4df6d7,_0x22409e);},'onPasteCells':(_0x4af935,_0x4a1cd2,_0x3cb646,_0x3792af)=>{const _0x41bdc8=_0x553c2b;if(!_0x3792af[_0x41bdc8(0x2bb)]||!_0x4af935||!this[_0x41bdc8(0x237)])return{'redos':[],'undos':[]};let {pasteType:_0x27e5dc}=_0x3792af;return _0x27e5dc===_0x48f2e3[_0x41bdc8(0x2d7)]?this[_0x41bdc8(0x32b)](_0x4a1cd2,this['_copyInfo'][_0x41bdc8(0x132)]===_0xaba887[_0x41bdc8(0x160)]):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x5e4b93,_0x89cd08,_0x7f0800,_0x5725d8){const _0x30b695=_0x38e982;let _0x5a2b0d=this['_sheetSkeletonService'][_0x30b695(0x17d)](_0x5e4b93,_0x89cd08);if(!_0x5a2b0d)return;let _0x25046=_0x2fe142(_0x5a2b0d,_0x7f0800);if(!_0x25046)return;let {startX:_0x2d63bd,endX:_0x52a60a,startY:_0x1e45b7,endY:_0x27e58b}=_0x25046,_0x31410c=this['_sheetDrawingService'][_0x30b695(0x39a)](_0x5e4b93,_0x89cd08),_0x2e7f3a=[];for(let [_0x577d5c,_0x18cc9f]of Object[_0x30b695(0x128)](_0x31410c)){if(_0x18cc9f[_0x30b695(0x3bd)]!==_0x1afd9e[_0x30b695(0x2d5)])continue;let {transform:_0x59c146}=_0x18cc9f;if(!_0x59c146)continue;let {left:_0x14d28a=0x0,top:_0x55ca26=0x0,width:_0x22e2d3=0x0,height:_0x51e40c=0x0}=_0x59c146;_0x2d63bd<=_0x14d28a&&_0x52a60a>=_0x14d28a+_0x22e2d3&&_0x1e45b7<=_0x55ca26&&_0x27e58b>=_0x55ca26+_0x51e40c&&_0x2e7f3a[_0x30b695(0x21d)](_0x18cc9f);}_0x2e7f3a[_0x30b695(0x23c)]>0x0&&(this['_copyInfo']={'unitId':_0x5e4b93,'subUnitId':_0x89cd08,'copyType':_0x5725d8,'copyRange':_0x7f0800,'drawings':_0x2e7f3a});}[_0x38e982(0x32b)](_0x28c3da,_0x23bd0f){const _0x3e67c7=_0x38e982;var _0x2788f1,_0x3b3b43;let {unitId:_0x58f605,subUnitId:_0x2f9be7,range:_0x15d8f2}=_0x28c3da,_0x83c90e=this[_0x3e67c7(0x237)],_0x1d622a=(_0x2788f1=this[_0x3e67c7(0x1e5)][_0x3e67c7(0x184)](_0x83c90e[_0x3e67c7(0x3d6)],_0x19c9b9[_0x3e67c7(0x2b6)]))==null?void 0x0:_0x2788f1[_0x3e67c7(0x265)](_0x83c90e[_0x3e67c7(0x2a0)]),_0x5de9b1=(_0x3b3b43=this[_0x3e67c7(0x1e5)]['getUnit'](_0x58f605,_0x19c9b9[_0x3e67c7(0x2b6)]))==null?void 0x0:_0x3b3b43[_0x3e67c7(0x265)](_0x2f9be7),_0x418cea=(_0x1d622a==null?void 0x0:_0x1d622a['getConfig']()[_0x3e67c7(0x2b8)])??_0xd3ed2e[_0x3e67c7(0x2e1)],_0x3bfccc=(_0x5de9b1==null?void 0x0:_0x5de9b1[_0x3e67c7(0x126)]()[_0x3e67c7(0x2b8)])??_0xd3ed2e[_0x3e67c7(0x2e1)];if(_0x418cea===_0xd3ed2e[_0x3e67c7(0x34b)]||_0x3bfccc===_0xd3ed2e[_0x3e67c7(0x34b)])return this['_generateChartSheetCopy'](_0x28c3da,_0x23bd0f);let _0x3f6ef3=this[_0x3e67c7(0x1e9)]['getSkeleton'](_0x58f605,_0x2f9be7);if(!_0x3f6ef3)return{'redos':[],'undos':[]};let _0x204501=_0x1678bb(_0x15d8f2),{unitId:_0x19fca5,subUnitId:_0x4a6ed5,copyRange:_0x5be30d,drawings:_0x425e8e}=this[_0x3e67c7(0x237)],_0x595a91=this[_0x3e67c7(0x1e9)][_0x3e67c7(0x17d)](_0x19fca5,_0x4a6ed5);if(!_0x595a91)return{'redos':[],'undos':[]};let _0x29a2bf;if(!_0x5be30d){let _0x5e3ff7=0x1/0x0,_0x20bc45=0x1/0x0;for(let _0x3908d7 of _0x425e8e){let {left:_0x21feec=0x0,top:_0x38e575=0x0}=_0x3908d7[_0x3e67c7(0x3d2)]??{};_0x21feec<_0x5e3ff7&&(_0x5e3ff7=_0x21feec),_0x38e575<_0x20bc45&&(_0x20bc45=_0x38e575);}_0x5e3ff7!==0x1/0x0&&_0x20bc45!==0x1/0x0&&(_0x29a2bf={'left':_0x5e3ff7,'top':_0x20bc45});}let _0x5751e3=new Map();if(!_0x23bd0f){for(let _0x425509 of _0x425e8e)_0x5751e3[_0x3e67c7(0x2b5)](_0x425509[_0x3e67c7(0x36f)],_0x1fdb08());}let _0xf32b0a=[],_0x589bc0=[];for(let _0x7f9603 of _0x425e8e){let {drawingId:_0x183401,transform:_0x1b7662,sheetTransform:_0x1484e7}=_0x7f9603;if(!_0x1b7662||!_0x1484e7)continue;let _0x2731ce=this[_0x3e67c7(0x223)]({'transform':_0x1b7662,'sheetTransform':_0x1484e7},{'skeleton':_0x595a91,'range':_0x5be30d},{'skeleton':_0x3f6ef3,'range':_0x204501},_0x29a2bf);if(_0x23bd0f){let {redos:_0x2c826d,undos:_0x2be49f}=this[_0x3e67c7(0x312)]({'fromUnitId':_0x19fca5,'fromSubUnitId':_0x4a6ed5,'toUnitId':_0x58f605,'toSubUnitId':_0x2f9be7,'drawing':_0x7f9603,'newTransforms':_0x2731ce});_0xf32b0a['push'](..._0x2c826d),_0x589bc0['push'](..._0x2be49f);continue;}let {redos:_0x5a536a,undos:_0x4872e9}=this[_0x3e67c7(0x334)]({'toUnitId':_0x58f605,'toSubUnitId':_0x2f9be7,'drawing':_0x7f9603,'newTransforms':_0x2731ce,'newDrawingId':_0x5751e3[_0x3e67c7(0x292)](_0x183401),'idMap':_0x5751e3});_0xf32b0a[_0x3e67c7(0x21d)](..._0x5a536a),_0x589bc0['push'](..._0x4872e9);}return{'redos':_0xf32b0a,'undos':_0x589bc0};}[_0x38e982(0x25c)](_0x593b6d,_0x4304b4){const _0x38e3be=_0x38e982;var _0x3bd915;if(_0x4304b4)throw new _0x56fc1c(_0x4ff7a0['id']);let {unitId:_0x4041b6,subUnitId:_0x517b68}=_0x593b6d;if(!this[_0x38e3be(0x238)][_0x38e3be(0x13a)]({'workbookTypes':[_0x5d4362],'worksheetTypes':[_0x2cc33f]},_0x4041b6,_0x517b68))throw new _0x56fc1c(_0x4ff7a0['id']);let _0x531227=(_0x3bd915=this[_0x38e3be(0x1e5)][_0x38e3be(0x184)](_0x4041b6,_0x19c9b9['UNIVER_SHEET']))==null?void 0x0:_0x3bd915[_0x38e3be(0x265)](_0x517b68),_0x3183c4=_0x531227==null?void 0x0:_0x531227[_0x38e3be(0x126)](),_0x1bfd26=(_0x3183c4==null?void 0x0:_0x3183c4[_0x38e3be(0x2b8)])??_0xd3ed2e[_0x38e3be(0x2e1)],_0x2c608b=this[_0x38e3be(0x237)],_0x4df31a=_0x2c608b['drawings'];if(!this[_0x38e3be(0x238)][_0x38e3be(0x13a)]({'workbookTypes':[_0x3527b0],'worksheetTypes':[_0x3feae7]},_0x2c608b[_0x38e3be(0x3d6)],_0x2c608b['subUnitId'])||_0x4df31a[_0x38e3be(0x38a)](_0x318494=>_0x318494[_0x38e3be(0x362)]||!this[_0x38e3be(0x373)][_0x38e3be(0x398)](_0x2c608b[_0x38e3be(0x3d6)],_0x2c608b['subUnitId'],_0x318494[_0x38e3be(0x36f)])||!_0x3b8ecf[_0x38e3be(0x2d6)](_0x318494,this['_sheetDrawingService'][_0x38e3be(0x254)](_0x318494))))throw new _0x56fc1c(_0x4ff7a0['id']);let _0x3ac337=null;if(_0x1bfd26===_0xd3ed2e[_0x38e3be(0x34b)]){var _0x2e62a3;let _0x4613a2=(_0x2e62a3=this[_0x38e3be(0x38d)][_0x38e3be(0x37e)](_0x4041b6))==null?void 0x0:_0x2e62a3[_0x38e3be(0x1d0)][_0x38e3be(0x292)](_0x5e18b6[_0x38e3be(0x363)]);_0x4613a2&&(_0x3ac337=_0x48f054(_0x4df31a,{'left':_0x4613a2[_0x38e3be(0x39b)],'top':_0x4613a2[_0x38e3be(0x218)],'width':_0x4613a2[_0x38e3be(0x304)],'height':_0x4613a2[_0x38e3be(0x204)]},(_0x3183c4==null?void 0x0:_0x3183c4[_0x38e3be(0x127)])===_0x31e6e1[_0x38e3be(0x3e4)]));}else{let _0x49b836=this[_0x38e3be(0x1e9)][_0x38e3be(0x17d)](_0x4041b6,_0x517b68),_0x2ee987=_0x49b836&&_0x2fe142(_0x49b836,_0x1678bb(_0x593b6d[_0x38e3be(0x378)]));if(_0x2ee987&&_0x4df31a[_0x38e3be(0x23c)]){let _0x1a1c24=Math[_0x38e3be(0x15a)](..._0x4df31a['map'](_0x54a168=>_0x54a168[_0x38e3be(0x3d2)][_0x38e3be(0x39b)])),_0x1178fd=Math[_0x38e3be(0x15a)](..._0x4df31a[_0x38e3be(0x298)](_0x50474a=>_0x50474a[_0x38e3be(0x3d2)]['top']));_0x3ac337=_0x4df31a['map'](_0x41a363=>_0x44e689(_0x41a363,{'kind':_0x19c1aa[_0x38e3be(0x321)],'bounds':{'left':_0x2ee987[_0x38e3be(0x173)]+_0x41a363[_0x38e3be(0x3d2)]['left']-_0x1a1c24,'top':_0x2ee987[_0x38e3be(0x138)]+_0x41a363['transform'][_0x38e3be(0x218)]-_0x1178fd,'width':_0x41a363[_0x38e3be(0x3d2)][_0x38e3be(0x304)],'height':_0x41a363[_0x38e3be(0x3d2)][_0x38e3be(0x204)]}},_0x49b836));}}if(!_0x3ac337)throw new _0x56fc1c(_0x4ff7a0['id']);let _0x15153c=new Map(_0x4df31a['map'](_0x190c2b=>[_0x190c2b[_0x38e3be(0x36f)],_0x1fdb08()])),_0x17cdcb=[],_0x2167bd=[];for(let [_0x1b06f4,_0x163532]of _0x4df31a[_0x38e3be(0x128)]()){let _0xc019d9=_0x3ac337[_0x1b06f4],_0x5573ac=this['_generateCopyPasteMutations']({'toUnitId':_0x4041b6,'toSubUnitId':_0x517b68,'drawing':_0x163532,'idMap':_0x15153c,'newDrawingId':_0x15153c[_0x38e3be(0x292)](_0x163532[_0x38e3be(0x36f)]),'newTransforms':{'transform':_0xc019d9[_0x38e3be(0x3d2)],'sheetTransform':_0xc019d9[_0x38e3be(0x36e)],'axisAlignSheetTransform':_0xc019d9[_0x38e3be(0x19f)],'anchorType':_0xc019d9['anchorType']}});_0x17cdcb[_0x38e3be(0x21d)](..._0x5573ac[_0x38e3be(0x358)]),_0x2167bd[_0x38e3be(0x2de)](..._0x5573ac[_0x38e3be(0x153)]);}return{'redos':_0x17cdcb,'undos':_0x2167bd};}[_0x38e982(0x312)](_0x5321f1){const _0x30bfd3=_0x38e982;let {fromUnitId:_0x5998f2,fromSubUnitId:_0x55ffd3,toUnitId:_0x241c4e,toSubUnitId:_0x4e7607,drawing:_0x41be11,newTransforms:_0x3872c0}=_0x5321f1,_0x42a248={..._0x41be11,'unitId':_0x241c4e,'subUnitId':_0x4e7607,..._0x3872c0};if(_0x241c4e===_0x5998f2&&_0x4e7607===_0x55ffd3){let {redo:_0x580ddb,undo:_0x4e4e28,objects:_0x334912}=this[_0x30bfd3(0x340)][_0x30bfd3(0x181)]([_0x42a248]);return{'redos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269[_0x30bfd3(0x317)],'op':_0x580ddb,'objects':_0x334912}}],'undos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269['UPDATE'],'op':_0x4e4e28,'objects':_0x334912}}]};}{let _0x20af56=this[_0x30bfd3(0x340)][_0x30bfd3(0x2a2)]([_0x41be11]),_0x3ad2bc=this[_0x30bfd3(0x340)][_0x30bfd3(0x217)]([_0x42a248]),_0x4d117c=this[_0x30bfd3(0x373)][_0x30bfd3(0x398)](_0x41be11[_0x30bfd3(0x3d6)],_0x41be11['subUnitId'],_0x41be11[_0x30bfd3(0x36f)]);if(!_0x4d117c)return{'redos':[],'undos':[]};let _0x368906=_0x4d117c[_0x30bfd3(0x369)](),_0xb501c4=JSON[_0x30bfd3(0x140)](JSON[_0x30bfd3(0x227)](_0x4d117c[_0x30bfd3(0x18b)]()));return{'redos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'type':_0x5c3269[_0x30bfd3(0x12d)],'op':_0x20af56['redo'],'objects':_0x20af56['objects']}},{'id':_0x568d3b['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'shapeId':_0x41be11[_0x30bfd3(0x36f)]}},{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269[_0x30bfd3(0x17c)],'op':_0x3ad2bc[_0x30bfd3(0x1c7)],'objects':_0x3ad2bc['objects']}},{'id':_0x640227['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'shapeId':_0x41be11[_0x30bfd3(0x36f)],'shapeType':_0x368906,'shapeData':_0xb501c4}}],'undos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'type':_0x5c3269[_0x30bfd3(0x17c)],'op':_0x20af56['undo'],'objects':_0x20af56['objects']}},{'id':_0x640227['id'],'params':{'unitId':_0x5998f2,'subUnitId':_0x55ffd3,'shapeId':_0x41be11['drawingId'],'shapeType':_0x368906,'shapeData':_0xb501c4}},{'id':_0x3c7ad2['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'type':_0x5c3269[_0x30bfd3(0x12d)],'op':_0x3ad2bc['undo'],'objects':_0x3ad2bc[_0x30bfd3(0x14c)]}},{'id':_0x568d3b['id'],'params':{'unitId':_0x241c4e,'subUnitId':_0x4e7607,'shapeId':_0x41be11[_0x30bfd3(0x36f)]}}]};}}[_0x38e982(0x334)](_0x144222){const _0x5e9278=_0x38e982;let {toUnitId:_0x741457,toSubUnitId:_0x4e43ff,drawing:_0xd1a46d,newTransforms:_0x5972d0,newDrawingId:_0x451d73,idMap:_0x1ac74a}=_0x144222,_0x317bf7={..._0xd1a46d,'unitId':_0x741457,'subUnitId':_0x4e43ff,'drawingId':_0x451d73,..._0x5972d0},{redo:_0x1b3564,undo:_0x573d66,objects:_0x25b40c}=this[_0x5e9278(0x340)][_0x5e9278(0x217)]([_0x317bf7]),_0x22f50d=this[_0x5e9278(0x373)][_0x5e9278(0x398)](_0xd1a46d[_0x5e9278(0x3d6)],_0xd1a46d['subUnitId'],_0xd1a46d['drawingId']);if(!_0x22f50d)return{'redos':[],'undos':[]};let _0x40ce56=_0x22f50d[_0x5e9278(0x369)](),_0x43d073=JSON['parse'](JSON[_0x5e9278(0x227)](_0x22f50d['getShapeData']()));if(_0x43d073[_0x5e9278(0x1c1)]){var _0xb5ab00,_0x409e14;let _0x2a414a=(_0xb5ab00=_0x43d073['relation'][_0x5e9278(0x1ca)])==null?void 0x0:_0xb5ab00['shapeId'],_0x47763f=(_0x409e14=_0x43d073[_0x5e9278(0x1c1)]['to'])==null?void 0x0:_0x409e14['shapeId'],_0x2adbef=!_0x2a414a||_0x1ac74a[_0x5e9278(0x3eb)](_0x2a414a),_0x596309=!_0x47763f||_0x1ac74a[_0x5e9278(0x3eb)](_0x47763f);_0x2adbef&&_0x2a414a&&_0x43d073[_0x5e9278(0x1c1)][_0x5e9278(0x1ca)]?_0x43d073['relation'][_0x5e9278(0x1ca)]={..._0x43d073['relation'][_0x5e9278(0x1ca)],'shapeId':_0x1ac74a[_0x5e9278(0x292)](_0x2a414a)}:_0x43d073[_0x5e9278(0x1c1)][_0x5e9278(0x1ca)]=void 0x0,_0x596309&&_0x47763f&&_0x43d073[_0x5e9278(0x1c1)]['to']?_0x43d073['relation']['to']={..._0x43d073[_0x5e9278(0x1c1)]['to'],'shapeId':_0x1ac74a[_0x5e9278(0x292)](_0x47763f)}:_0x43d073[_0x5e9278(0x1c1)]['to']=void 0x0;}return{'redos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'type':_0x5c3269['INSERT'],'op':_0x1b3564,'objects':_0x25b40c}},{'id':_0x640227['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'shapeId':_0x451d73,'shapeType':_0x40ce56,'shapeData':_0x43d073}}],'undos':[{'id':_0x3c7ad2['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'type':_0x5c3269[_0x5e9278(0x12d)],'op':_0x573d66,'objects':_0x25b40c}},{'id':_0x568d3b['id'],'params':{'unitId':_0x741457,'subUnitId':_0x4e43ff,'shapeId':_0x451d73}}]};}['_updateTransform'](_0x13db56,_0x41ac0f,_0x5a325f,_0xeead14){const _0x53c2eb=_0x38e982;let {range:_0x1984eb,skeleton:_0x419977}=_0x41ac0f,{range:_0x4dfc0e,skeleton:_0x375877}=_0x5a325f,{transform:_0x4ffa07,sheetTransform:_0x44f830}=_0x13db56,_0xcc299e={..._0x4ffa07};if(_0x1984eb){let _0xd51598=_0x2fe142(_0x419977,_0x1984eb),_0x4a537=_0x2fe142(_0x375877,_0x4dfc0e);if(_0xd51598&&_0x4a537){let _0x325438=_0x4a537['startX']-_0xd51598[_0x53c2eb(0x173)],_0x36484f=_0x4a537[_0x53c2eb(0x138)]-_0xd51598[_0x53c2eb(0x138)];_0xcc299e[_0x53c2eb(0x39b)]=(_0xcc299e['left']??0x0)+_0x325438,_0xcc299e[_0x53c2eb(0x218)]=(_0xcc299e[_0x53c2eb(0x218)]??0x0)+_0x36484f;}}else{let _0x591f9d=_0x2fe142(_0x375877,_0x4dfc0e);if(_0xeead14&&_0x591f9d){let _0x3ef01c=(_0xcc299e[_0x53c2eb(0x39b)]??0x0)-_0xeead14[_0x53c2eb(0x39b)],_0x24487e=(_0xcc299e[_0x53c2eb(0x218)]??0x0)-_0xeead14[_0x53c2eb(0x218)];_0xcc299e['left']=_0x591f9d[_0x53c2eb(0x173)]+_0x3ef01c,_0xcc299e[_0x53c2eb(0x218)]=_0x591f9d['startY']+_0x24487e;}else _0xcc299e[_0x53c2eb(0x39b)]=_0x591f9d==null?void 0x0:_0x591f9d[_0x53c2eb(0x173)],_0xcc299e[_0x53c2eb(0x218)]=_0x591f9d==null?void 0x0:_0x591f9d[_0x53c2eb(0x138)];}return{'transform':_0xcc299e,'sheetTransform':_0x3fd5de(_0xcc299e,_0x375877)??_0x44f830};}};ka=X([Y(0x0,_0x304d45(_0x2e3691)),Y(0x1,_0x304d45(_0x5ad4fe)),Y(0x2,_0x304d45(_0x1f9cb1)),Y(0x3,_0x304d45(_0x57544e)),Y(0x4,_0x304d45(_0x372942)),Y(0x5,_0x5789bf),Y(0x6,_0x1fc6ff),Y(0x7,_0x304d45(_0x46746e))],ka);var Aa=class extends _0x45dea2{constructor(_0x188a45,_0x158924){const _0x236cd4=_0x38e982;super(_0x188a45,_0x158924),q(this,_0x236cd4(0x3d4),null),q(this,_0x236cd4(0x119),null),q(this,'_unitId',null),q(this,_0x236cd4(0x229),null),q(this,_0x236cd4(0x19c),!0x1),_0x158924&&this[_0x236cd4(0x250)](_0x158924);}['getDrawingSearch'](){const _0x5d8e1e=_0x38e982;return{'unitId':this[_0x5d8e1e(0x202)],'subUnitId':this[_0x5d8e1e(0x229)],'drawingId':this[_0x5d8e1e(0x3d4)]};}[_0x38e982(0x250)](_0x5bae69){const _0x52602d=_0x38e982;_0x5bae69['shapeId']!==void 0x0&&(this[_0x52602d(0x3d4)]=_0x5bae69['shapeId']),_0x5bae69['unitId']!==void 0x0&&(this[_0x52602d(0x202)]=_0x5bae69[_0x52602d(0x3d6)]),_0x5bae69[_0x52602d(0x2a0)]!==void 0x0&&(this[_0x52602d(0x229)]=_0x5bae69[_0x52602d(0x2a0)]),_0x5bae69[_0x52602d(0x167)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x5bae69['isStartConnectorPoint']),this[_0x52602d(0x1fe)]({'width':_0x5bae69[_0x52602d(0x304)],'height':_0x5bae69[_0x52602d(0x204)]});}[_0x38e982(0x1c5)](_0x171c58){const _0x3de5d5=_0x38e982;_0x417a06[_0x3de5d5(0x28c)](_0x171c58,{'radius':_0x436eb7['cxnPointRadius'],'fill':_0x436eb7[_0x3de5d5(0x12b)],'stroke':_0x436eb7['cxnPointStroke'],'strokeWidth':_0x436eb7[_0x3de5d5(0x2e6)],'evented':!0x0});}};function _0x2e49(_0xa2b5c5,_0x378338){_0xa2b5c5=_0xa2b5c5-0x10d;const _0x29d436=_0x29d4();let _0x2e49f0=_0x29d436[_0xa2b5c5];return _0x2e49f0;}let ja=class extends _0x942aec{constructor(_0x539c37,_0x492c59,_0x52733d,_0x23f9d8,_0x121e03,_0x415f88,_0x3b2fab,_0xe71d68){const _0x3d7d3f=_0x38e982;super(),this[_0x3d7d3f(0x18a)]=_0x539c37,this[_0x3d7d3f(0x338)]=_0x492c59,this[_0x3d7d3f(0x3a5)]=_0x52733d,this['_drawingManagerService']=_0x23f9d8,this[_0x3d7d3f(0x23f)]=_0x121e03,this['_sheetsShapeService']=_0x415f88,this[_0x3d7d3f(0x263)]=_0x3b2fab,this[_0x3d7d3f(0x12c)]=_0xe71d68,q(this,_0x3d7d3f(0x28f),void 0x0),q(this,_0x3d7d3f(0x202),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x3d7d3f(0x293),[]),q(this,_0x3d7d3f(0x1fb),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x3d7d3f(0x350),void 0x0),q(this,_0x3d7d3f(0x2b2),!0x1),q(this,_0x3d7d3f(0x169),!0x1),q(this,_0x3d7d3f(0x1ed),!0x1),q(this,_0x3d7d3f(0x29e),void 0x0),q(this,_0x3d7d3f(0x2e9),void 0x0),q(this,_0x3d7d3f(0x1d2),null),this[_0x3d7d3f(0x344)]();}[_0x38e982(0x344)](){const _0x340ab8=_0x38e982;this['_registerDrawingFocusChangeHandler'](),this[_0x340ab8(0x3ca)]();}[_0x38e982(0x252)](){const _0x5a5bf5=_0x38e982;if(!this['_unitId']||!this['_subUnitId']||!this[_0x5a5bf5(0x28f)])return;let _0x2590f7={'unitId':this[_0x5a5bf5(0x202)],'subUnitId':this[_0x5a5bf5(0x229)],'drawingId':this[_0x5a5bf5(0x28f)]},{transform:_0x31e46f}=this[_0x5a5bf5(0x342)][_0x5a5bf5(0x254)](_0x2590f7);if(_0x31e46f)return{'left':_0x31e46f[_0x5a5bf5(0x39b)]||0x0,'top':_0x31e46f[_0x5a5bf5(0x218)]||0x0,'width':_0x31e46f[_0x5a5bf5(0x304)]||0x0,'height':_0x31e46f['height']||0x0,'flipX':_0x31e46f['flipX']||!0x1,'flipY':_0x31e46f[_0x5a5bf5(0x175)]||!0x1,'angle':_0x31e46f[_0x5a5bf5(0x162)]};}[_0x38e982(0x22b)](){const _0x5d3c66=_0x38e982;if(this[_0x5d3c66(0x202)]===void 0x0||this[_0x5d3c66(0x229)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0xcfce57=this['_renderManagerService']['getRenderUnitById'](this[_0x5d3c66(0x202)]);if(!_0xcfce57||!_0xcfce57[_0x5d3c66(0x24f)](_0x151dc3)['getCurrentSkeleton']())return;let {scene:_0x567147}=_0xcfce57,_0x4acd46=this['_getDrawingRect']();if(!_0x4acd46)return;let _0x3081b3=this[_0x5d3c66(0x301)][_0x5d3c66(0x398)](this['_unitId'],this[_0x5d3c66(0x229)],this[_0x5d3c66(0x28f)]);if(!_0x3081b3||!_0x45fca5(_0x3081b3['getShapeType']()))return;let _0x2b420e=_0x3081b3[_0x5d3c66(0x14b)]();if(_0x2b420e[_0x5d3c66(0x23c)]<0x2)return;let _0x2fc339=new _0x9a1248(_0x4acd46),_0x595298=_0x2b420e[0x0],_0x1fdb39=_0x2b420e[_0x2b420e[_0x5d3c66(0x23c)]-0x1],_0x2674c1=_0x2fc339[_0x5d3c66(0x11b)](_0x595298),_0x1361f1=_0x2fc339['localToWorld'](_0x1fdb39);this[_0x5d3c66(0x176)](_0x567147,{..._0x2674c1},!0x0),this[_0x5d3c66(0x176)](_0x567147,{..._0x1361f1},!0x1);}[_0x38e982(0x176)](_0x1f0bf2,_0x328c24,_0x4aaae8){const _0x56a32d=_0x38e982;if(this[_0x56a32d(0x28f)]===void 0x0||this[_0x56a32d(0x202)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0xba23b9=_0x56a32d(0x17f)+this[_0x56a32d(0x202)]+'-'+this[_0x56a32d(0x229)]+'-'+this[_0x56a32d(0x28f)]+'-'+(_0x4aaae8?_0x56a32d(0x165):_0x56a32d(0x299)),_0x577d99=_0x1f0bf2[_0x56a32d(0x260)](_0xba23b9);if(_0x577d99){_0x577d99['transformByState']({'left':_0x328c24['x']-_0x436eb7[_0x56a32d(0x216)],'top':_0x328c24['y']-_0x436eb7[_0x56a32d(0x216)]});return;}let _0x59362d=new Aa(_0xba23b9,{'left':_0x328c24['x']-_0x436eb7[_0x56a32d(0x216)],'top':_0x328c24['y']-_0x436eb7[_0x56a32d(0x216)],'shapeId':this[_0x56a32d(0x28f)],'unitId':this['_unitId'],'subUnitId':this[_0x56a32d(0x229)],'isStartConnectorPoint':_0x4aaae8,'width':_0x436eb7[_0x56a32d(0x216)]*0x2,'height':_0x436eb7['cxnPointRadius']*0x2,'zIndex':_0x5c1c17+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x59362d),this['_attachConnectorObjectEvent'](_0x59362d,_0x1f0bf2,_0x4aaae8),_0x1f0bf2[_0x56a32d(0x22c)](_0x59362d,_0x5c1c17+0x1);}[_0x38e982(0x310)](_0xafa8c0,_0x25b120){const _0x3cd8ab=_0x38e982;var _0x4f19bd;let _0xf361f={'x':0x0,'y':0x0};if(!_0xafa8c0||!_0x25b120)return _0xf361f;let _0x382f89=this[_0x3cd8ab(0x3a5)][_0x3cd8ab(0x37e)](_0xafa8c0);if(!_0x382f89||!_0x382f89[_0x3cd8ab(0x24f)](_0x151dc3)[_0x3cd8ab(0x17d)](_0x25b120))return _0xf361f;let _0x1bdcf6=_0x382f89[_0x3cd8ab(0x24f)](_0x4c002e),_0x2a798f=_0x1bdcf6==null?void 0x0:_0x1bdcf6[_0x3cd8ab(0x391)]();if(!_0x2a798f)return _0xf361f;let _0xc45831=(_0x4f19bd=this[_0x3cd8ab(0x23f)]['getUnit'](_0xafa8c0))==null?void 0x0:_0x4f19bd[_0x3cd8ab(0x265)](_0x25b120);if(!_0xc45831)return _0xf361f;let _0x2ea9f5=_0x1aea05(_0x2a798f[_0x3cd8ab(0x1e6)],_0x2a798f[_0x3cd8ab(0x137)],_0x382f89[_0x3cd8ab(0x313)],_0xc45831);return _0x2ea9f5?{'x':_0x2ea9f5[_0x3cd8ab(0x245)],'y':_0x2ea9f5[_0x3cd8ab(0x2e0)]}:_0xf361f;}['_getZoomRatio'](_0xee5629,_0x3dd633){const _0x459055=_0x38e982;var _0x873993;let _0x5b5416=(_0x873993=this[_0x459055(0x23f)][_0x459055(0x184)](_0xee5629))==null?void 0x0:_0x873993[_0x459055(0x265)](_0x3dd633);return(_0x5b5416==null?void 0x0:_0x5b5416['getZoomRatio']())??0x1;}[_0x38e982(0x20b)](_0x1f3ad1,_0x580946,_0x22b2f5,_0x55f630,_0x2a4b8c){const _0x252bb0=_0x38e982;this[_0x252bb0(0x29e)][_0x252bb0(0x3df)](),this[_0x252bb0(0x2e9)]['unsubscribe'](),this[_0x252bb0(0x263)][_0x252bb0(0x2a8)]();let _0x1639ba=this['_currentConnectionTarget'];this['_sheetBasicShapeConnectionPointController'][_0x252bb0(0x1c9)]();let _0x1143ce=this[_0x252bb0(0x310)](this[_0x252bb0(0x202)],this['_subUnitId']),_0x331bcd=this[_0x252bb0(0x2cb)](this[_0x252bb0(0x202)],this[_0x252bb0(0x229)]),_0xf5c378={'x':_0x22b2f5[_0x252bb0(0x3cb)]/_0x331bcd+_0x1143ce['x'],'y':_0x22b2f5['offsetY']/_0x331bcd+_0x1143ce['y']},_0x2f9189=_0x1639ba?_0x1639ba[_0x252bb0(0x274)]:_0xf5c378,_0x4ef8b3=_0x55f630?this[_0x252bb0(0x350)]['getEndConnectInfo']():this['_activeShapeModel'][_0x252bb0(0x3ab)](),_0x4cfa89=this[_0x252bb0(0x350)]['getShapeType']();_0x4ef8b3?this[_0x252bb0(0x379)](_0x4ef8b3,_0x2f9189,_0x55f630,_0x1639ba,_0x2a4b8c):this[_0x252bb0(0x1d3)](_0x580946,_0x2f9189,_0x55f630,_0x1639ba,_0x2a4b8c,_0x4cfa89),this['_isConnecting']=!0x1,this[_0x252bb0(0x1ed)]=!0x1,this[_0x252bb0(0x1d2)]=null,_0x1f3ad1['enableObjectsEvent']();}[_0x38e982(0x1d3)](_0x2dc834,_0x39cfb0,_0x42f652,_0x416b9d,_0x2dbe28,_0x508cc5){const _0x375922=_0x38e982;let _0x58687c=_0x508cc5===_0x321129[_0x375922(0x259)]||_0x508cc5===_0x321129[_0x375922(0x372)],_0x2076dd=_0x42f652?_0x39cfb0:_0x2dc834,_0x5108fc=_0x42f652?_0x2dc834:_0x39cfb0,_0x52bc7d=this[_0x375922(0x350)]['getConnectorLinePoints'](),_0x1ed77b=this[_0x375922(0x350)][_0x375922(0x369)](),_0xa2cb44=_0x180d11(_0x1ed77b),_0x25f9d0=_0x9a1248[_0x375922(0x2c7)](_0x52bc7d,_0xa2cb44),_0x146ffa=_0x58687c?_0x9a1248[_0x375922(0x38c)](_0x2076dd,_0x5108fc):_0x9a1248[_0x375922(0x305)](_0x2dc834,_0x39cfb0,_0x42f652,_0x25f9d0);_0x416b9d?this[_0x375922(0x154)](_0x146ffa,_0x416b9d,_0x42f652,_0x2dbe28):this[_0x375922(0x2af)](_0x146ffa,_0x2dbe28);}[_0x38e982(0x379)](_0x2cc513,_0x3261db,_0x4d18cf,_0x3ad56c,_0x389965){const _0x660a57=_0x38e982;let _0x20def7=this[_0x660a57(0x1ad)](_0x2cc513);if(!_0x20def7)return;let _0x18f1e8=_0x3ad56c?_0x3ad56c[_0x660a57(0x162)]:this[_0x660a57(0x208)](_0x20def7[_0x660a57(0x110)],_0x3261db),_0x3271e0;if(_0x3ad56c){let _0x10204a=this[_0x660a57(0x342)]['getDrawingByParam']({'unitId':_0x3ad56c[_0x660a57(0x3d6)],'subUnitId':_0x3ad56c[_0x660a57(0x2a0)],'drawingId':_0x3ad56c['shapeId']});if(_0x10204a!=null&&_0x10204a['transform']){let {left:_0x41ebc4=0x0,top:_0x12bc18=0x0,width:_0x38abc7=0x0,height:_0x3b60e3=0x0,angle:_0x2b2840}=_0x10204a[_0x660a57(0x3d2)];_0x3271e0=_0x39a2e7({'left':_0x41ebc4,'top':_0x12bc18,'width':_0x38abc7,'height':_0x3b60e3},_0x2b2840||0x0);}else _0x3271e0={'left':_0x3261db['x'],'top':_0x3261db['y'],'width':0x0,'height':0x0};}else _0x3271e0={'left':_0x3261db['x'],'top':_0x3261db['y'],'width':0x0,'height':0x0};let _0xc4ed2a={'point':_0x3261db,'angle':_0x18f1e8,'bounds':_0x3271e0},_0x2c6f16=_0x4d18cf?_0xc4ed2a:_0x20def7,_0x1d6c6c=_0x4d18cf?_0x20def7:_0xc4ed2a,_0x35900c=this[_0x660a57(0x350)]['getShapeType'](),_0x2857ac=_0x464f2a(_0x2c6f16,_0x1d6c6c,_0x35900c);this[_0x660a57(0x350)][_0x660a57(0x164)]();let _0x2d3eb9=_0x12fef6(_0x2857ac,_0x35900c);_0x3ad56c?this[_0x660a57(0x1b1)](_0x2d3eb9,_0x3ad56c,_0x2cc513,_0x4d18cf,_0x389965):this[_0x660a57(0x2f8)](_0x2d3eb9,_0x2cc513,_0x4d18cf,_0x389965);}['_executeConnectionCommand'](_0x3594f7,_0x36d31d,_0x6d0a9f,_0x41eab9){const _0x54ad68=_0x38e982;let _0x3f09c7=this['_activeShapeModel'][_0x54ad68(0x18b)]()[_0x54ad68(0x1c1)],_0x338189={..._0x3f09c7},_0x3dc690={'shapeId':_0x36d31d[_0x54ad68(0x3ea)],'cxnIndex':_0x36d31d[_0x54ad68(0x34d)]};_0x6d0a9f?_0x338189[_0x54ad68(0x1ca)]=_0x3dc690:_0x338189['to']=_0x3dc690;let _0x570c1e=this[_0x54ad68(0x350)]['getShapeType'](),_0x1b1889=_0x12fef6(_0x3594f7[_0x54ad68(0x16e)],_0x570c1e),_0x5d3217={'unitId':this['_unitId'],'subUnitId':this[_0x54ad68(0x229)],'connectorShapeId':this[_0x54ad68(0x28f)],'width':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x304)],'height':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x204)],'left':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x39b)],'top':_0x3594f7['worldRect']['top'],'flipX':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x1f4)]||!0x1,'flipY':_0x3594f7[_0x54ad68(0x177)][_0x54ad68(0x175)]||!0x1,'newAdjustValues':_0x1b1889[_0x54ad68(0x1e0)],'oldAdjustValues':_0x41eab9,'oldRelation':_0x3f09c7,'newRelation':_0x338189,'newLineType':_0x1b1889[_0x54ad68(0x31f)],'oldLineType':_0x570c1e};this['_commandService']['executeCommand'](_0x111b1f['id'],_0x5d3217);}[_0x38e982(0x2af)](_0x108705,_0x24c563){const _0x14ff6c=_0x38e982;let _0x1d4afa=this[_0x14ff6c(0x350)][_0x14ff6c(0x369)](),_0x25b9d6=_0x12fef6(_0x108705[_0x14ff6c(0x16e)],_0x1d4afa),_0x5d4158={'unitId':this[_0x14ff6c(0x202)],'subUnitId':this[_0x14ff6c(0x229)],'shapeId':this['_activeShapeId'],'width':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x304)],'height':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x204)],'left':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x39b)],'top':_0x108705[_0x14ff6c(0x177)]['top'],'flipX':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x1f4)]||!0x1,'flipY':_0x108705[_0x14ff6c(0x177)][_0x14ff6c(0x175)]||!0x1,'angle':_0x108705[_0x14ff6c(0x177)]['angle']||0x0,'newAdjustValues':_0x25b9d6['adjustValues'],'oldAdjustValues':_0x24c563,'newLineType':_0x25b9d6[_0x14ff6c(0x31f)],'oldLineType':_0x1d4afa};this[_0x14ff6c(0x338)][_0x14ff6c(0x190)](_0x354d6f['id'],_0x5d4158);}[_0x38e982(0x1b1)](_0x56742,_0x3f537d,_0x35ab34,_0x11c709,_0xda9044){const _0x11609e=_0x38e982;let _0x338932=this[_0x11609e(0x350)][_0x11609e(0x18b)]()[_0x11609e(0x1c1)],_0x5eebb4={..._0x338932},_0x818266={'shapeId':_0x3f537d['shapeId'],'cxnIndex':_0x3f537d[_0x11609e(0x34d)]};_0x11c709?(_0x5eebb4[_0x11609e(0x1ca)]=_0x818266,_0x5eebb4['to']=_0x35ab34):(_0x5eebb4[_0x11609e(0x1ca)]=_0x35ab34,_0x5eebb4['to']=_0x818266);let _0x23158e={'unitId':this['_unitId'],'subUnitId':this[_0x11609e(0x229)],'connectorShapeId':this[_0x11609e(0x28f)],'width':_0x56742['worldRect'][_0x11609e(0x304)],'height':_0x56742[_0x11609e(0x177)][_0x11609e(0x204)],'left':_0x56742[_0x11609e(0x177)]['left'],'top':_0x56742['worldRect']['top'],'flipX':_0x56742['worldRect'][_0x11609e(0x1f4)]||!0x1,'flipY':_0x56742[_0x11609e(0x177)]['flipY']||!0x1,'oldAdjustValues':_0xda9044,'newAdjustValues':_0x56742['adjustValues'],'newLineType':_0x56742[_0x11609e(0x31f)],'rotation':_0x56742['rotation'],'oldRelation':_0x338932,'newRelation':_0x5eebb4};this[_0x11609e(0x338)]['executeCommand'](_0x111b1f['id'],_0x23158e);}[_0x38e982(0x2f8)](_0x365d26,_0x129e6d,_0x448a3d,_0x157c90){const _0x449823=_0x38e982;let _0x263c88=this[_0x449823(0x350)][_0x449823(0x18b)]()[_0x449823(0x1c1)],_0x21e95d={};_0x448a3d?(_0x21e95d['to']=_0x129e6d,_0x21e95d[_0x449823(0x1ca)]=void 0x0):(_0x21e95d['from']=_0x129e6d,_0x21e95d['to']=void 0x0);let _0x27f0c5={'unitId':this[_0x449823(0x202)],'subUnitId':this[_0x449823(0x229)],'connectorShapeId':this['_activeShapeId'],'width':_0x365d26[_0x449823(0x177)][_0x449823(0x304)],'height':_0x365d26['worldRect'][_0x449823(0x204)],'left':_0x365d26[_0x449823(0x177)][_0x449823(0x39b)],'top':_0x365d26[_0x449823(0x177)][_0x449823(0x218)],'flipX':_0x365d26[_0x449823(0x177)][_0x449823(0x1f4)]||!0x1,'flipY':_0x365d26[_0x449823(0x177)][_0x449823(0x175)]||!0x1,'oldAdjustValues':_0x157c90,'newAdjustValues':_0x365d26[_0x449823(0x1e0)],'newLineType':_0x365d26[_0x449823(0x31f)],'rotation':_0x365d26[_0x449823(0x242)],'oldRelation':_0x263c88,'newRelation':_0x21e95d};this[_0x449823(0x338)][_0x449823(0x190)](_0x111b1f['id'],_0x27f0c5);}['_attachConnectorObjectEvent'](_0x31b885,_0x589d9e,_0x459da0){const _0xfdf8ce=_0x38e982;this[_0xfdf8ce(0x1b0)](_0x3cb981(_0x31b885[_0xfdf8ce(0x149)][_0xfdf8ce(0x29b)]((_0x50f170,_0x5eb5dc)=>{const _0x47e7c7=_0xfdf8ce;let _0x411a2c=_0x31b885[_0x47e7c7(0x1d1)]();if(this['_activeShapeModel']=this[_0x47e7c7(0x301)][_0x47e7c7(0x398)](_0x411a2c[_0x47e7c7(0x3d6)],_0x411a2c[_0x47e7c7(0x2a0)],_0x411a2c['drawingId']),!this[_0x47e7c7(0x350)])return;let _0x519c07={};this['_activeShapeModel'][_0x47e7c7(0x2c8)]()[_0x47e7c7(0x2a5)](_0xcc45a2=>{const _0x506bfb=_0x47e7c7;let _0x18424c=this[_0x506bfb(0x350)]['getAdjustValueByName'](_0xcc45a2);_0x18424c!==void 0x0&&(_0x519c07[_0xcc45a2]=_0x18424c);});let _0x448fae=this['_getDrawingRect']();if(!_0x448fae)return;this[_0x47e7c7(0x1fb)]={..._0x448fae};let _0x5b2a28=new _0x9a1248(this[_0x47e7c7(0x1fb)]),_0x5eaa5d=_0x306bd8({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x47e7c7(0x28f)]}),_0x2f6796=_0x589d9e[_0x47e7c7(0x260)](_0x5eaa5d);this[_0x47e7c7(0x2b2)]=!0x0,_0x589d9e['disableObjectsEvent'](),this[_0x47e7c7(0x12c)][_0x47e7c7(0x35f)](_0x589d9e,this[_0x47e7c7(0x202)],this[_0x47e7c7(0x229)],this[_0x47e7c7(0x28f)]),this['_currentConnectionTarget']=null;let _0x8dd8a0=this[_0x47e7c7(0x350)][_0x47e7c7(0x14b)](),_0x165346=_0x8dd8a0[0x0],_0x4c624e=_0x8dd8a0[_0x8dd8a0[_0x47e7c7(0x23c)]-0x1],_0x3e3cc1=_0x459da0?_0x5b2a28['localToWorld'](_0x4c624e):_0x5b2a28[_0x47e7c7(0x11b)](_0x165346);this['_cxtHandlerPointerMove']=_0x589d9e[_0x47e7c7(0x23e)][_0x47e7c7(0x29b)]((_0x4e849d,_0x1f5514)=>{const _0x10d747=_0x47e7c7;if(!this[_0x10d747(0x2b2)]||!this[_0x10d747(0x350)])return;this[_0x10d747(0x1ed)]||=(this[_0x10d747(0x263)]['clearAdjustControls'](),this[_0x10d747(0x350)][_0x10d747(0x1d5)](),!0x0);let _0x49a96f=this['_getScrollInfo'](this[_0x10d747(0x202)],this[_0x10d747(0x229)]),_0x55eb8c=this['_getZoomRatio'](this['_unitId'],this[_0x10d747(0x229)]),_0x1ab5ba={'x':_0x4e849d[_0x10d747(0x3cb)]/_0x55eb8c+_0x49a96f['x'],'y':_0x4e849d[_0x10d747(0x27e)]/_0x55eb8c+_0x49a96f['y']},_0x42f1fe=this[_0x10d747(0x12c)][_0x10d747(0x121)](_0x1ab5ba);if(_0x42f1fe){let {shapeId:_0x56bb02,unitId:_0x4c56ac,subUnitId:_0x363594}=_0x42f1fe;if(_0x56bb02&&_0x4c56ac&&_0x363594){let _0x4a2715=_0x306bd8({'unitId':_0x4c56ac,'subUnitId':_0x363594,'drawingId':_0x56bb02});_0x42f1fe[_0x10d747(0x162)]=(_0x589d9e['getObjectIncludeInGroup'](_0x4a2715)[_0x10d747(0x162)]||0x0)+_0x42f1fe[_0x10d747(0x162)];}}this[_0x10d747(0x1d2)]=_0x42f1fe;let _0x23e26b=_0x459da0?this[_0x10d747(0x350)][_0x10d747(0x15b)]():this[_0x10d747(0x350)][_0x10d747(0x3ab)]();_0x23e26b?this[_0x10d747(0x1f8)](_0x23e26b,_0x1ab5ba,_0x459da0,_0x2f6796,_0x31b885):this[_0x10d747(0x3af)](_0x1ab5ba,_0x3e3cc1,_0x459da0,_0x2f6796,_0x31b885);}),this[_0x47e7c7(0x2e9)]=_0x589d9e['onPointerUp$'][_0x47e7c7(0x29b)]((_0x312b9c,_0x688f67)=>{this['_handleConnectorPointerUp'](_0x589d9e,_0x3e3cc1,_0x312b9c,_0x459da0,_0x519c07);}),_0x5eb5dc[_0x47e7c7(0x286)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x3c6ed6,_0xa8c34,_0x33d5a9){const _0x32b377=_0x38e982;let _0x2bde85=this[_0x32b377(0x301)][_0x32b377(0x26e)](_0x3c6ed6,_0xa8c34,_0x33d5a9);if(!_0x2bde85||_0x2bde85[_0x32b377(0x23c)]===0x0)return;let _0x4ad61e=this[_0x32b377(0x3a5)][_0x32b377(0x37e)](_0x3c6ed6);if(!_0x4ad61e)return;let {scene:_0x41b9c6}=_0x4ad61e;for(let _0x4e3685 of _0x2bde85){let _0x5e6036=_0x4e3685[_0x32b377(0x1eb)],_0x3b4397=this[_0x32b377(0x301)][_0x32b377(0x398)](_0x3c6ed6,_0xa8c34,_0x5e6036);if(!_0x3b4397)continue;let _0xbdb3ee=_0x3b4397[_0x32b377(0x3ab)](),_0x53db7a=_0x3b4397[_0x32b377(0x15b)](),_0x3a45a7=(_0xbdb3ee==null?void 0x0:_0xbdb3ee['shapeId'])===_0x33d5a9,_0x2f1f91=_0x306bd8({'unitId':_0x3c6ed6,'subUnitId':_0xa8c34,'drawingId':_0x5e6036}),_0x440713=_0x41b9c6['getObjectIncludeInGroup'](_0x2f1f91);if(!_0x440713)continue;let _0x4b3375=this[_0x32b377(0x342)]['getDrawingByParam']({'unitId':_0x3c6ed6,'subUnitId':_0xa8c34,'drawingId':_0x5e6036});_0x4b3375!=null&&_0x4b3375[_0x32b377(0x3d2)]&&(_0xbdb3ee&&_0x53db7a?this[_0x32b377(0x1dc)](_0x3c6ed6,_0xa8c34,_0x5e6036,_0x3b4397,_0xbdb3ee,_0x53db7a,_0x440713):this['_moveConnectorWithShape'](_0x3c6ed6,_0xa8c34,_0x5e6036,_0x3b4397,_0x3a45a7?_0xbdb3ee:_0x53db7a,_0x3a45a7,_0x4b3375,_0x440713));}}[_0x38e982(0x1dc)](_0x467fd7,_0x479749,_0x1c1d78,_0x348823,_0x8c7097,_0x3d7ff6,_0x2421bc){const _0x4a2f1a=_0x38e982;let _0x39e3a2=this[_0x4a2f1a(0x202)],_0x5f4585=this['_subUnitId'];this['_unitId']=_0x467fd7,this[_0x4a2f1a(0x229)]=_0x479749;let _0x3ed54d=this[_0x4a2f1a(0x1ad)](_0x8c7097),_0x4668fc=this['_getConnectPointInfo'](_0x3d7ff6);if(this[_0x4a2f1a(0x202)]=_0x39e3a2,this[_0x4a2f1a(0x229)]=_0x5f4585,!_0x3ed54d||!_0x4668fc)return;let _0x203dfd=_0x348823['getShapeType'](),_0x1daa0b=_0x464f2a(_0x3ed54d,_0x4668fc,_0x203dfd);_0x1daa0b&&_0x348823[_0x4a2f1a(0x2c3)](_0x1daa0b);let _0x20cec2=_0x12fef6(_0x1daa0b,_0x203dfd);_0x20cec2['lineType']!==_0x203dfd&&_0x348823[_0x4a2f1a(0x1bf)](_0x20cec2[_0x4a2f1a(0x31f)]),_0x348823[_0x4a2f1a(0x1d5)]();for(let [_0x4723e1,_0x49e4d4]of Object[_0x4a2f1a(0x128)](_0x20cec2['adjustValues']))_0x348823[_0x4a2f1a(0x285)](_0x4723e1,_0x49e4d4);_0x348823['updateContext']({'width':_0x20cec2[_0x4a2f1a(0x177)]['width'],'height':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x204)]}),_0x2421bc['transformByState']({'flipX':_0x20cec2['worldRect'][_0x4a2f1a(0x1f4)],'flipY':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x175)],'left':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x39b)],'top':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x218)],'width':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x304)],'height':_0x20cec2[_0x4a2f1a(0x177)][_0x4a2f1a(0x204)],'angle':_0x20cec2[_0x4a2f1a(0x242)]}),_0x348823[_0x4a2f1a(0x164)]();}[_0x38e982(0x355)](_0x45a802,_0x32819c,_0x4f195c,_0x44f0ef,_0x141f8f,_0x1dda9e,_0x651ecb,_0x5b19ae){const _0x1ee4d1=_0x38e982;let _0x4e072a=this['_unitId'],_0x50991d=this[_0x1ee4d1(0x229)];this['_unitId']=_0x45a802,this['_subUnitId']=_0x32819c;let _0x38ddaf=this['_getConnectPointInfo'](_0x141f8f);if(this[_0x1ee4d1(0x202)]=_0x4e072a,this['_subUnitId']=_0x50991d,!_0x38ddaf)return;let {left:_0x166371=0x0,top:_0x28978f=0x0,width:_0x119e58=0x0,height:_0x37da8e=0x0,flipX:_0x27f168=!0x1,flipY:_0x4b699c=!0x1}=_0x651ecb[_0x1ee4d1(0x3d2)],_0xd0bb61=_0x44f0ef[_0x1ee4d1(0x14b)]();if(_0xd0bb61[_0x1ee4d1(0x23c)]<0x2)return;let _0x2d9a4d=new _0x9a1248({'left':_0x166371,'top':_0x28978f,'width':_0x119e58,'height':_0x37da8e,'flipX':_0x27f168,'flipY':_0x4b699c}),_0x5e7df0=_0x1dda9e?_0xd0bb61[_0xd0bb61[_0x1ee4d1(0x23c)]-0x1]:_0xd0bb61[0x0],_0x5a63de=_0x2d9a4d[_0x1ee4d1(0x11b)](_0x5e7df0),_0x661221=_0x9a1248[_0x1ee4d1(0x305)](_0x5a63de,_0x38ddaf[_0x1ee4d1(0x110)],!_0x1dda9e);_0x5b19ae[_0x1ee4d1(0x1fe)]({'flipX':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x1f4)],'flipY':_0x661221['worldRect'][_0x1ee4d1(0x175)],'left':_0x661221['worldRect']['left'],'top':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x218)],'width':_0x661221['worldRect'][_0x1ee4d1(0x304)],'height':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x204)],'angle':_0x661221[_0x1ee4d1(0x177)][_0x1ee4d1(0x162)]}),_0x5b19ae[_0x1ee4d1(0x2a6)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x2d89b8=_0x38e982;this['_connectorObjects']['length']!==0x0&&(this['_connectorObjects'][_0x2d89b8(0x2a5)](_0xf9398=>{const _0x9c96d0=_0x2d89b8;_0xf9398[_0x9c96d0(0x39d)]();}),this[_0x2d89b8(0x293)]=[]);}[_0x38e982(0x3ca)](){const _0x1dd325=_0x38e982;let _0x1a3846=this[_0x1dd325(0x23f)][_0x1dd325(0x30c)](_0x19c9b9[_0x1dd325(0x2b6)]);this[_0x1dd325(0x1b0)](_0x1a3846[_0x1dd325(0x1fd)](_0x1b4a14(_0x1e3071=>_0x1e3071?_0x1e3071['activeSheet$'][_0x1dd325(0x1fd)](_0x1b4a14(_0x3e68a3=>{const _0x5c6ee1=_0x1dd325;if(!_0x3e68a3)return _0x1d5ee8;let _0x5994ef=_0x1e3071['getUnitId'](),_0x432de8=this[_0x5c6ee1(0x3a5)]['getRenderUnitById'](_0x5994ef),_0x3bb6df=_0x432de8==null?void 0x0:_0x432de8[_0x5c6ee1(0x313)];return _0x3bb6df?_0x402dea(_0x3bb6df):_0x1d5ee8;})):_0x1d5ee8))['subscribe'](_0x38243e=>{const _0x58e8f7=_0x1dd325;let _0x2d3d20=_0x38243e[_0x58e8f7(0x294)]();this[_0x58e8f7(0x1b0)](_0x38243e[_0x58e8f7(0x23e)]['subscribeEvent'](_0x1563a2=>{const _0x438f1f=_0x58e8f7;this[_0x438f1f(0x169)]&&this['_activeShapeId']&&this[_0x438f1f(0x269)]();})),this['disposeWithMe'](_0x2d3d20['changeStart$'][_0x58e8f7(0x335)](_0x47b859=>{const _0x186d0d=_0x58e8f7;let {objects:_0x6335e0}=_0x47b859;this[_0x186d0d(0x269)](),_0x6335e0!==null&&_0x6335e0[_0x186d0d(0x28b)]===0x1&&_0x6335e0[_0x186d0d(0x38e)]()[_0x186d0d(0x267)]()['value']instanceof J&&(this[_0x186d0d(0x169)]=!0x0);})),this[_0x58e8f7(0x1b0)](_0x2d3d20[_0x58e8f7(0x3a7)][_0x58e8f7(0x335)](_0x20906f=>{const _0x5375f4=_0x58e8f7;this['_isDrawingShapePointDown']&&this[_0x5375f4(0x269)]();})),this[_0x58e8f7(0x1b0)](_0x38243e['onPointerUp$']['subscribeEvent'](()=>{const _0x32e61d=_0x58e8f7;this[_0x32e61d(0x169)]&&(this[_0x32e61d(0x169)]=!0x1,this[_0x32e61d(0x22b)]());})),this[_0x58e8f7(0x1b0)](_0x2d3d20['changeEnd$'][_0x58e8f7(0x335)](()=>{const _0xd8847e=_0x58e8f7;this[_0xd8847e(0x202)]&&this['_subUnitId']&&this[_0xd8847e(0x28f)]&&this[_0xd8847e(0x342)]['getDrawingByParam']({'unitId':this[_0xd8847e(0x202)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x38e982(0x35c)](){const _0x369d29=_0x38e982;this['disposeWithMe'](this['_drawingManagerService'][_0x369d29(0x1a8)][_0x369d29(0x335)](_0x4a51d5=>{const _0x2bf811=_0x369d29;if(_0x4a51d5[_0x2bf811(0x23c)]===0x1){let _0x1927e0=_0x4a51d5[0x0];if(_0x1927e0['drawingType']===_0x1afd9e[_0x2bf811(0x2d5)]){let _0x5641dd=this[_0x2bf811(0x301)][_0x2bf811(0x398)](_0x1927e0[_0x2bf811(0x3d6)],_0x1927e0['subUnitId'],_0x1927e0[_0x2bf811(0x36f)]);if(_0x5641dd&&_0x45fca5(_0x5641dd[_0x2bf811(0x369)]())){this['_activeShapeId']=_0x1927e0[_0x2bf811(0x36f)],this[_0x2bf811(0x202)]=_0x1927e0[_0x2bf811(0x3d6)],this[_0x2bf811(0x229)]=_0x1927e0['subUnitId'],this[_0x2bf811(0x269)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x2bf811(0x202)]=void 0x0,this[_0x2bf811(0x229)]=void 0x0,this[_0x2bf811(0x269)]();})),this['disposeWithMe'](this[_0x369d29(0x342)][_0x369d29(0x27f)][_0x369d29(0x335)](_0x1c0fdc=>{const _0x26b5e5=_0x369d29;if(_0x1c0fdc[_0x26b5e5(0x23c)]===0x1){var _0x3f0da3;let _0x57e458=_0x1c0fdc[0x0],_0x4c4fe9=(_0x3f0da3=this['_drawingManagerService']['getDrawingByParam'](_0x57e458))==null?void 0x0:_0x3f0da3['drawingType'];_0x4c4fe9===_0x1afd9e[_0x26b5e5(0x2d5)]&&_0x57e458['drawingId']===this['_activeShapeId']?(this[_0x26b5e5(0x269)](),this[_0x26b5e5(0x22b)]()):!this[_0x26b5e5(0x28f)]&&_0x4c4fe9===_0x1afd9e[_0x26b5e5(0x2d5)]&&this[_0x26b5e5(0x3d8)](_0x57e458[_0x26b5e5(0x3d6)],_0x57e458[_0x26b5e5(0x2a0)],_0x57e458[_0x26b5e5(0x36f)]);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$']['subscribe'](_0x3b2fbd=>{for(let _0x1ebc7a of _0x3b2fbd){let {drawingId:_0x58e35d}=_0x1ebc7a;if(this['_activeShapeId']===_0x58e35d){this['_reset']();return;}}}));}[_0x38e982(0x1f8)](_0xdc510b,_0x1edf22,_0x231752,_0x438081,_0x3d801d){const _0x11552f=_0x38e982;var _0x4ce828;if(!this[_0x11552f(0x350)])return;let _0x3a973c=this[_0x11552f(0x1ad)](_0xdc510b);if(!_0x3a973c)return;let _0x47ca5a=this[_0x11552f(0x1d2)]?this[_0x11552f(0x1d2)][_0x11552f(0x274)]:_0x1edf22,_0xfce7a0=this[_0x11552f(0x1d2)]?this[_0x11552f(0x1d2)]['angle']:this[_0x11552f(0x208)](_0x3a973c[_0x11552f(0x110)],_0x47ca5a),_0x477cd8;if(this[_0x11552f(0x1d2)]){let _0x4711a1=this[_0x11552f(0x342)][_0x11552f(0x254)]({'unitId':this['_currentConnectionTarget'][_0x11552f(0x3d6)],'subUnitId':this[_0x11552f(0x1d2)][_0x11552f(0x2a0)],'drawingId':this[_0x11552f(0x1d2)][_0x11552f(0x3ea)]});if(_0x4711a1!=null&&_0x4711a1['transform']){let {left:_0x5b3783=0x0,top:_0x47d0c5=0x0,width:_0x25623f=0x0,height:_0x7388c9=0x0,angle:_0x192e92}=_0x4711a1['transform'];_0x477cd8=_0x39a2e7({'left':_0x5b3783,'top':_0x47d0c5,'width':_0x25623f,'height':_0x7388c9},_0x192e92||0x0);}else _0x477cd8={'left':_0x47ca5a['x'],'top':_0x47ca5a['y'],'width':0x0,'height':0x0};}else _0x477cd8={'left':_0x47ca5a['x'],'top':_0x47ca5a['y'],'width':0x0,'height':0x0};let _0x2acc1f={'point':_0x47ca5a,'angle':_0xfce7a0,'bounds':_0x477cd8},_0x32063b=_0x231752?_0x2acc1f:_0x3a973c,_0x124f26=_0x231752?_0x3a973c:_0x2acc1f,_0x66023d=this[_0x11552f(0x350)]['getShapeType'](),_0xb7fc85=_0x464f2a(_0x32063b,_0x124f26,_0x66023d);_0xb7fc85&&this[_0x11552f(0x350)][_0x11552f(0x2c3)](_0xb7fc85);let _0x2b9b6f=_0x12fef6(_0xb7fc85,_0x66023d);_0x2b9b6f[_0x11552f(0x31f)]!==_0x66023d&&this[_0x11552f(0x350)]['changeShapeType'](_0x2b9b6f[_0x11552f(0x31f)]);for(let [_0x44a7af,_0x411ac6]of Object['entries'](_0x2b9b6f['adjustValues']))this[_0x11552f(0x350)]['setAdjustValueByName'](_0x44a7af,_0x411ac6);this[_0x11552f(0x350)]['updateContext']({'width':_0x2b9b6f[_0x11552f(0x177)][_0x11552f(0x304)],'height':_0x2b9b6f[_0x11552f(0x177)]['height']}),_0x438081[_0x11552f(0x1fe)]({'flipX':_0x2b9b6f[_0x11552f(0x177)][_0x11552f(0x1f4)],'flipY':_0x2b9b6f['worldRect'][_0x11552f(0x175)],'left':_0x2b9b6f[_0x11552f(0x177)]['left'],'top':_0x2b9b6f['worldRect']['top'],'width':_0x2b9b6f[_0x11552f(0x177)][_0x11552f(0x304)],'height':_0x2b9b6f[_0x11552f(0x177)]['height'],'angle':_0x2b9b6f[_0x11552f(0x242)]}),_0x438081['makeDirty'](!0x0);let _0x2808a8=((_0x4ce828=this[_0x11552f(0x1d2)])==null?void 0x0:_0x4ce828['worldPoint'])??_0x1edf22;_0x3d801d['transformByState']({'left':_0x2808a8['x']-_0x436eb7[_0x11552f(0x216)],'top':_0x2808a8['y']-_0x436eb7['cxnPointRadius']});}[_0x38e982(0x3af)](_0x35d858,_0x3aefa8,_0x48cc8e,_0x33ecf6,_0x312814){const _0x17695e=_0x38e982;var _0x4ee536,_0xc0d27f;let _0x1e8030=((_0x4ee536=this[_0x17695e(0x1d2)])==null?void 0x0:_0x4ee536[_0x17695e(0x274)])??_0x35d858,_0x387e86=_0x9a1248[_0x17695e(0x305)](_0x3aefa8,_0x1e8030,_0x48cc8e);_0x33ecf6[_0x17695e(0x1fe)]({'flipX':_0x387e86[_0x17695e(0x177)]['flipX'],'flipY':_0x387e86[_0x17695e(0x177)][_0x17695e(0x175)],'left':_0x387e86[_0x17695e(0x177)][_0x17695e(0x39b)],'top':_0x387e86[_0x17695e(0x177)]['top'],'width':_0x387e86[_0x17695e(0x177)][_0x17695e(0x304)],'height':_0x387e86[_0x17695e(0x177)][_0x17695e(0x204)],'angle':_0x387e86[_0x17695e(0x177)][_0x17695e(0x162)]});let _0x29d8cc=((_0xc0d27f=this[_0x17695e(0x1d2)])==null?void 0x0:_0xc0d27f[_0x17695e(0x274)])??_0x35d858;_0x312814['transformByState']({'left':_0x29d8cc['x']-_0x436eb7[_0x17695e(0x216)],'top':_0x29d8cc['y']-_0x436eb7['cxnPointRadius']});}[_0x38e982(0x1ad)](_0x8ab30c){const _0x158815=_0x38e982;if(!this['_unitId']||!this['_subUnitId'])return null;let {shapeId:_0x2de76d,cxnIndex:_0x41c68f}=_0x8ab30c,_0x352722=this[_0x158815(0x301)][_0x158815(0x398)](this[_0x158815(0x202)],this[_0x158815(0x229)],_0x2de76d);if(!_0x352722)return null;let _0x51f1f8=this[_0x158815(0x342)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x158815(0x229)],'drawingId':_0x2de76d});if(!(_0x51f1f8!=null&&_0x51f1f8['transform']))return null;let {left:_0x4429e1=0x0,top:_0x17b971=0x0,width:_0x478e11=0x0,height:_0x2b5d15=0x0,flipX:_0x3ba3d4=!0x1,flipY:_0x14b1b8=!0x1,angle:_0x577b3c}=_0x51f1f8['transform'];_0x352722[_0x158815(0x276)]({'width':_0x478e11,'height':_0x2b5d15});let _0x2a7b03=_0x352722['getConnectionSiteList']()[_0x158815(0x397)](_0x6eec2d=>_0x6eec2d[_0x158815(0x124)]===_0x41c68f);if(!_0x2a7b03)return null;let _0x28f485=_0x3ba3d4?_0x478e11-_0x2a7b03['x']:_0x2a7b03['x'],_0x34e233=_0x14b1b8?_0x2b5d15-_0x2a7b03['y']:_0x2a7b03['y'];if(_0x577b3c!==0x0&&_0x577b3c!=null){let _0x5167ca=_0x577b3c*Math['PI']/0xb4,_0x4e2b1d=Math[_0x158815(0x380)](_0x5167ca),_0xbc1d62=Math['sin'](_0x5167ca),_0x2a4965=_0x478e11/0x2,_0x6dd3ba=_0x2b5d15/0x2,_0x487276=_0x28f485-_0x2a4965,_0xfb36ab=_0x34e233-_0x6dd3ba;_0x28f485=_0x2a4965+_0x487276*_0x4e2b1d-_0xfb36ab*_0xbc1d62,_0x34e233=_0x6dd3ba+_0x487276*_0xbc1d62+_0xfb36ab*_0x4e2b1d;}_0x28f485+=_0x4429e1,_0x34e233+=_0x17b971;let _0x4db8eb=_0x2a7b03[_0x158815(0x36d)]/0xea60;_0x3ba3d4&&(_0x4db8eb=0xb4-_0x4db8eb),_0x14b1b8&&(_0x4db8eb=-_0x4db8eb),_0x4db8eb+=_0x577b3c||0x0,_0x4db8eb=(_0x4db8eb%0x168+0x168)%0x168;let _0x378733=_0x39a2e7({'left':_0x4429e1,'top':_0x17b971,'width':_0x478e11,'height':_0x2b5d15},_0x577b3c||0x0);return{'point':{'x':_0x28f485,'y':_0x34e233},'angle':_0x4db8eb,'bounds':_0x378733};}['_calculateFreeEndpointAngle'](_0xd604c2,_0x5b0c3f){const _0x3f4eb4=_0x38e982;let _0x5c8b49=_0x5b0c3f['x']-_0xd604c2['x'],_0x575acf=_0x5b0c3f['y']-_0xd604c2['y'];return Math[_0x3f4eb4(0x23a)](_0x5c8b49)>=Math[_0x3f4eb4(0x23a)](_0x575acf)?_0x5c8b49>=0x0?0xb4:0x0:_0x575acf>=0x0?0x10e:0x5a;}[_0x38e982(0x24c)](){const _0x123ad8=_0x38e982;this[_0x123ad8(0x28f)]=void 0x0,this[_0x123ad8(0x202)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x123ad8(0x269)]();}[_0x38e982(0x39d)](){const _0x29da4c=_0x38e982;this[_0x29da4c(0x269)](),super[_0x29da4c(0x39d)]();}};ja=X([Y(0x1,_0x5aac1e),Y(0x2,_0x1fc6ff),Y(0x3,_0x457af4),Y(0x4,_0x5789bf),Y(0x5,_0x304d45(_0x57544e)),Y(0x6,_0x304d45(Zr)),Y(0x7,_0x304d45(Oa))],ja);let Ma=class extends _0x942aec{constructor(_0x32c46f,_0x1b79bd,_0x4babc0){const _0x50af0c=_0x38e982;super(),this[_0x50af0c(0x14f)]=_0x32c46f,this['_drawingManagerService']=_0x1b79bd,this['_shapeRenderController']=_0x4babc0,this[_0x50af0c(0x28e)]();}[_0x38e982(0x28e)](){const _0x21e3ea=_0x38e982;this[_0x21e3ea(0x1b0)](this[_0x21e3ea(0x14f)][_0x21e3ea(0x29c)][_0x21e3ea(0x179)](this['_sheetPrintInterceptorService'][_0x21e3ea(0x29c)]['getInterceptPoints']()[_0x21e3ea(0x209)],{'handler':(_0x1fdb81,_0x3a7703,_0x41f5d0)=>{const _0x34ebb6=_0x21e3ea;var _0x5a0716;let {unitId:_0xc0c3a0,subUnitId:_0x4f0526,scene:_0x1ead5d,resourceCollector:_0x180d95}=_0x3a7703,_0x42aede=(_0x5a0716=this[_0x34ebb6(0x342)][_0x34ebb6(0x30d)](_0xc0c3a0))==null?void 0x0:_0x5a0716[_0x4f0526];return _0x42aede==null||_0x42aede['order']['forEach'](_0x3db80a=>{const _0x4c5ad4=_0x34ebb6;let _0x3cb79f=_0x42aede[_0x4c5ad4(0x29a)][_0x3db80a];_0x3cb79f[_0x4c5ad4(0x3bd)]===_0x1afd9e['DRAWING_SHAPE']&&!_0x3cb79f[_0x4c5ad4(0x146)]&&this[_0x4c5ad4(0x24b)][_0x4c5ad4(0x3b0)](_0x3cb79f,_0x1ead5d,{'resourceCollector':_0x180d95});}),_0x41f5d0(_0x1fdb81);}}));}};Ma=X([Y(0x0,_0x304d45(_0x1b9d1a)),Y(0x1,_0x457af4),Y(0x2,_0x304d45(Z))],Ma);let Na=class extends _0x942aec{constructor(_0xb906ae,_0x21f0d4,_0x28a448,_0x1b7723){const _0x2f8d8b=_0x38e982;super(),this[_0x2f8d8b(0x338)]=_0xb906ae,this['_univerInstanceService']=_0x21f0d4,this[_0x2f8d8b(0x243)]=_0x28a448,this[_0x2f8d8b(0x197)]=_0x1b7723,this[_0x2f8d8b(0x207)]();}[_0x38e982(0x207)](){const _0x143d3b=_0x38e982;let _0x4c48be=new Set([K['id'],_0x4f77fb['id'],_0x261ac0['id'],_0x569423['id'],_0x354d6f['id']]);this['disposeWithMe'](this[_0x143d3b(0x338)]['beforeCommandExecuted'](_0x36f886=>{const _0x353185=_0x143d3b;let _0x31de56,_0x2c9af4;if(_0x36f886['id']===_0x45fe66['id']||_0x36f886['id']===_0x57d411['id']||_0x36f886['id']===_0x111b1f['id']){let _0x4d33ea=_0x36f886[_0x353185(0x3c6)];_0x31de56=_0x4d33ea[_0x353185(0x3d6)],_0x2c9af4=_0x4d33ea[_0x353185(0x2a0)];}else{if(_0x4c48be[_0x353185(0x3eb)](_0x36f886['id'])){let _0x221ffb=_0x5290f5(this[_0x353185(0x23f)],_0x36f886[_0x353185(0x3c6)]);if((_0x221ffb==null?void 0x0:_0x221ffb[_0x353185(0x22d)][_0x353185(0x126)]()['type'])!==_0xd3ed2e['CHART'])return;_0x31de56=_0x221ffb[_0x353185(0x3d6)],_0x2c9af4=_0x221ffb[_0x353185(0x2a0)];}}_0x31de56&&_0x2c9af4&&(this['_sheetPermissionCheckController'][_0x353185(0x13a)]({'workbookTypes':[_0x5d4362],'worksheetTypes':[_0x2cc33f]},_0x31de56,_0x2c9af4)||this[_0x353185(0x197)][_0x353185(0x387)](this[_0x353185(0x243)]['t'](_0x353185(0x230))));}));}};Na=X([Y(0x0,_0x304d45(_0x5aac1e)),Y(0x1,_0x304d45(_0x5789bf)),Y(0x2,_0x304d45(_0x1180ec)),Y(0x3,_0x304d45(_0x46746e))],Na);let Pa=class{constructor(_0x18e05b){const _0x5bd442=_0x38e982;this[_0x5bd442(0x3a5)]=_0x18e05b;}[_0x38e982(0x288)](_0x42c5fe,_0x591f48){const _0x55d3f5=_0x38e982;let _0x420742=this[_0x55d3f5(0x3a5)][_0x55d3f5(0x37e)](_0x42c5fe[_0x55d3f5(0x3d6)]),_0x5bee0a=_0x420742==null?void 0x0:_0x420742[_0x55d3f5(0x313)];if(!_0x5bee0a)return;let _0x27f77c=_0x306bd8(_0x42c5fe),_0x5a5196=_0x5bee0a[_0x55d3f5(0x260)](_0x27f77c);_0x5a5196==null||_0x5a5196[_0x55d3f5(0x282)](_0x591f48);}};Pa=X([Y(0x0,_0x1fc6ff)],Pa);let Fa=class extends _0x56cd9b{constructor(_0x2f7cde=ma,_0x48432a,_0xc81a06,_0x5dc778,_0x4608e9){const _0x2990bf=_0x38e982;super(),this['_config']=_0x2f7cde,this[_0x2990bf(0x2ea)]=_0x48432a,this[_0x2990bf(0x338)]=_0xc81a06,this[_0x2990bf(0x1ac)]=_0x5dc778,this['_renderManagerService']=_0x4608e9;let {..._0x50e6b0}=_0x510611({},ma,this[_0x2990bf(0x30e)]);this[_0x2990bf(0x1ac)][_0x2990bf(0x1e2)](pa,_0x50e6b0),this['_initCommands']();}['onStarting'](){const _0x5976f1=_0x38e982;this[_0x5976f1(0x2ea)][_0x5976f1(0x385)]([va]),this[_0x5976f1(0x2ea)]['get'](va),_0x5326a8(this[_0x5976f1(0x2ea)],[[Sa],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na]]);}['onReady'](){const _0x3cc5b1=_0x38e982;_0x5326a8(this[_0x3cc5b1(0x2ea)],[[Oa],[Zr],[ka]]),_0x35c5d7(this[_0x3cc5b1(0x2ea)],[[ka],[Zr]]),[[Oa],[ha],[ja],[ba]][_0x3cc5b1(0x2a5)](_0x104a84=>{const _0x5744b7=_0x3cc5b1;this[_0x5744b7(0x1b0)](this[_0x5744b7(0x3a5)][_0x5744b7(0x203)](_0x19c9b9[_0x5744b7(0x2b6)],_0x104a84));});}[_0x38e982(0x2ae)](){const _0x127b25=_0x38e982;_0x35c5d7(this[_0x127b25(0x2ea)],[[Sa],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na]]);}['onSteady'](){const _0x459c6e=_0x38e982;this[_0x459c6e(0x2ea)][_0x459c6e(0x292)](Sa)[_0x459c6e(0x17b)]();}[_0x38e982(0x26d)](){const _0x2d9f29=_0x38e982;[$r,K,Qr,fa]['forEach'](_0x86f051=>this[_0x2d9f29(0x1b0)](this[_0x2d9f29(0x338)]['registerCommand'](_0x86f051)));}};q(Fa,'type',_0x19c9b9[_0x38e982(0x2b6)]),q(Fa,_0x38e982(0x213),'SHEET_SHAPE_UI_PLUGIN'),q(Fa,_0x38e982(0x3c5),ua),q(Fa,_0x38e982(0x3c0),da),Fa=X([_0x5d2b6b(_0x457d6d,_0x237574,_0x3c8ce8,_0x30c5c0,_0x42e7b6,_0x3e7a54,_0x507ef6,_0x16b801,_0x5ef2f9,_0x2fdc71,_0x410968,_0x22cb29,_0x2117cd),Y(0x1,_0x304d45(_0x4cf09b)),Y(0x2,_0x5aac1e),Y(0x3,_0x3e62ab),Y(0x4,_0x1fc6ff)],Fa);const Ia={'type':_0x4dec04[_0x38e982(0x188)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function La(){const _0x30d92b=_0x38e982;let _0x21eb87=_0x459a0a(_0x457af4),_0x50f390=_0x3f5135(()=>_0x21eb87[_0x30d92b(0x1a8)],_0x21eb87[_0x30d92b(0x212)](),!0x1,[_0x21eb87]);return _0x50f390[_0x30d92b(0x23c)]===0x0?null:_0xbd5fef(_0x30d92b(0x3aa),{'children':_0x49dd55('div',{'className':_0x30d92b(0x2bd),'children':[_0xbd5fef(_0x35b2d6,{'drawings':_0x50f390,'hasCropper':!0x1}),_0xbd5fef(_0x316f41,{'drawings':_0x50f390})]})});}function Ra(_0x10048f){let {unitId:_0x3852e5,subUnitId:_0x248649,shapeId:_0x53774d}=_0x10048f,_0x457d66=_0x459a0a(_0x5aac1e),_0x25c148=_0x459a0a(Pa);return _0xbd5fef(_0x46e52b,{..._0x10048f,'positionEditor':_0xbd5fef(La,{}),'onUpdateShapeData':(_0x1d8544,_0x42cbe)=>{Wr(_0x457d66,_0x3852e5,_0x248649,_0x53774d,_0x1d8544,_0x42cbe);},'onUpdateLineShapeData':(_0x115d1f,_0x506cab)=>{Gr(_0x457d66,_0x3852e5,_0x248649,_0x53774d,_0x115d1f,_0x506cab);},'onUpdateShapeFillImage':_0xbe11bf=>{const _0x3cd42e=_0x2e49;_0x25c148[_0x3cd42e(0x288)]({'unitId':_0x3852e5,'subUnitId':_0x248649,'drawingId':_0x53774d},_0xbe11bf);}});}function za(_0x15bc7f){const _0x289a40=_0x38e982;let _0x2fbb7a=_0x459a0a(_0x17c0f2),_0x11a011=_0x3f5135(()=>_0x2fbb7a[_0x289a40(0x368)],_0x2fbb7a['getVisible'](),!0x1,[_0x2fbb7a]),_0x5a374e=_0x15bc7f[_0x289a40(0x302)][_0x289a40(0x35e)];return!_0x5a374e||!_0x11a011?null:_0xbd5fef(Ba,{..._0x5a374e,'canvasElement':_0x15bc7f[_0x289a40(0x302)][_0x289a40(0x345)]});}function Ba(_0x2d52d1){const _0x372580=_0x38e982;let _0x5a1468=_0x459a0a(_0x5aac1e),_0x38e1f7=_0x459a0a(_0x57544e),{unitId:_0x5a0cde,subUnitId:_0x194e4b,drawingId:_0x28fc7b,drawingType:_0x13cb71,shapeType:_0x50d1a5}=_0x2d52d1,[_0xf1530d,_0x10ba28]=_0x4ddc5d(_0x2d52d1[_0x372580(0x194)]),_0x401f20=_0x2e7dde(()=>_0x43a739(_0xf1530d),[_0xf1530d]),_0x38e0f1=_0x2e7dde(()=>_0x461fbf(_0xf1530d),[_0xf1530d]);_0x6e1245(()=>{const _0x94df06=_0x372580;let _0x4f8a69=_0x5a1468[_0x94df06(0x325)](_0x26cd8b=>{const _0x32ffa0=_0x94df06;if(_0x26cd8b['id']!==_0x5a5b4d['id'])return;let _0x2099f7=_0x38e1f7[_0x32ffa0(0x284)](_0x5a0cde,_0x194e4b,_0x28fc7b);_0x2099f7&&_0x10ba28(_0x2099f7);});return()=>_0x4f8a69[_0x94df06(0x39d)]();},[_0x5a1468,_0x28fc7b,_0x38e1f7,_0x194e4b,_0x5a0cde]);let _0x59ce56=_0x43ec6a=>{_0x10ba28(_0x46b301=>({..._0x46b301,..._0x43ec6a}));},_0x3ca8d3=_0x57beea=>{const _0x3a3655=_0x372580;let _0x22288e=_0x7053b8(_0xf1530d,_0x57beea);Wr(_0x5a1468,_0x5a0cde,_0x194e4b,_0x28fc7b,{'oldShapeData':{'shapeText':_0xf1530d[_0x3a3655(0x1fa)]}},_0x22288e),_0x59ce56(_0x22288e);},_0x4148e5=_0x574ef4({'hostType':_0x19c9b9[_0x372580(0x2b6)],'unitId':_0x5a0cde,'subUnitId':_0x194e4b,'shapeId':_0x28fc7b,'shapeData':_0xf1530d,'onUpdateBinding':_0x38f27b=>{const _0x10fb52=_0x372580;let _0x5ed221={'formulaBinding':_0x38f27b};Wr(_0x5a1468,_0x5a0cde,_0x194e4b,_0x28fc7b,{'oldShapeData':{'formulaBinding':_0xf1530d[_0x10fb52(0x1a9)]}},_0x5ed221),_0x59ce56(_0x5ed221);}});return _0x49dd55(_0x5673b6,{'children':[_0xbd5fef(_0x5c75fb,{'canvasElement':_0x2d52d1['canvasElement'],'shapeData':_0xf1530d,'shapeType':_0x50d1a5,'textStyle':{'ff':_0x436eb7['shapeText'][_0x372580(0x2c6)],'fs':_0x436eb7['shapeText']['fontSize'],'cl':{'rgb':_0x436eb7[_0x372580(0x1fa)]['color']},..._0x401f20},'textModel':_0x38e0f1?{'ha':_0x38e0f1['ha']??_0x34ba0f[_0x372580(0x33c)],'va':_0x38e0f1['va']??_0xb24be5[_0x372580(0x19e)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x436eb7[_0x372580(0x3c1)],'defaultGradientEndColor':_0x436eb7[_0x372580(0x2fd)],'defaultStrokeColor':_0x436eb7[_0x372580(0x22f)],'extensionGroups':_0x4148e5[_0x372580(0x10d)],'floatingObjectToolbarPosition':_0x5cb346[_0x372580(0x3b2)],'onUpdateShapeData':(_0x5d0cc1,_0x4f3325)=>{Wr(_0x5a1468,_0x5a0cde,_0x194e4b,_0x28fc7b,_0x5d0cc1,_0x4f3325),_0x4f3325&&_0x59ce56(_0x4f3325);},'onUpdateText':_0x3ca8d3,'onOpenPanel':()=>{const _0x1f9478=_0x372580;_0x5a1468[_0x1f9478(0x190)](si['id'],{'unitId':_0x5a0cde,'subUnitId':_0x194e4b,'drawingId':_0x28fc7b});},'onDelete':()=>{const _0x54d7d5=_0x372580;_0x5a1468[_0x54d7d5(0x190)](_0x815e46['id'],{'unitId':_0x5a0cde,'drawings':[{'unitId':_0x5a0cde,'subUnitId':_0x194e4b,'drawingId':_0x28fc7b,'drawingType':_0x13cb71}]});}}),_0x4148e5[_0x372580(0x324)]]});}function Va(_0x3f1fd3){const _0x43de1f=_0x38e982;return!!_0x3f1fd3&&_0x43de1f(0x19f)in _0x3f1fd3&&_0x43de1f(0x36e)in _0x3f1fd3;}const Ha=_0x540462(()=>{const _0x1bd0d9=_0x38e982;let _0x370e79=_0x459a0a($),_0x5a6f1c=_0x459a0a(_0x57544e),_0x3238b8=_0x459a0a(_0x457af4),_0x2ff4c6=_0x459a0a(_0x5aac1e),_0x2d8aee=_0x459a0a(_0x302f61),_0x144053=_0x459a0a(_0x1fc6ff),_0x47fa6c=_0x2e7dde(()=>({'getShapeModel':(_0x19f983,_0x57730e,_0x7dc6b5)=>_0x5a6f1c[_0x1bd0d9(0x398)](_0x19f983,_0x57730e,_0x7dc6b5),'getShapeData':(_0x35fe69,_0x5e782f,_0x4bb9a4)=>_0x5a6f1c[_0x1bd0d9(0x284)](_0x35fe69,_0x5e782f,_0x4bb9a4),'getDrawingTransform':(_0x28787b,_0x3fc6c4,_0x37c367)=>{const _0x3fc939=_0x1bd0d9;let _0x155b85=_0x3238b8['getDrawingByParam']({'unitId':_0x28787b,'subUnitId':_0x3fc6c4,'drawingId':_0x37c367});return _0x155b85==null?void 0x0:_0x155b85[_0x3fc939(0x3d2)];},'updateShapeText':({unitId:_0x5983ec,subUnitId:_0x392cbf,shapeId:_0x178309,shapeText:_0x3b6f08,oldShapeText:_0x412214,hostSize:_0x673911})=>{const _0x1a56a3=_0x1bd0d9;_0x2d8aee[_0x1a56a3(0x24e)](_0x5983ec,()=>{const _0x249c73=_0x1a56a3;var _0x3dfe76;let _0x22b03c=_0x2ff4c6[_0x249c73(0x2f7)](K['id'],{'unitId':_0x5983ec,'subUnitId':_0x392cbf,'shapeId':_0x178309,'shapeData':{'shapeText':_0x3b6f08},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x412214}}});if(!_0x22b03c||!_0x673911)return _0x22b03c;let _0x209770=_0x3238b8['getDrawingByParam']({'unitId':_0x5983ec,'subUnitId':_0x392cbf,'drawingId':_0x178309}),_0x2d6bed=_0x209770==null?void 0x0:_0x209770[_0x249c73(0x3d2)];if(!Va(_0x209770)||!_0x2d6bed)return!0x1;let _0x2cfea6={..._0x2d6bed,'width':_0x673911[_0x249c73(0x304)],'height':_0x673911[_0x249c73(0x204)]},_0x322e87=(_0x3dfe76=_0x144053['getRenderUnitById'](_0x5983ec))==null||(_0x3dfe76=_0x3dfe76[_0x249c73(0x24f)](_0x151dc3)[_0x249c73(0x201)](_0x392cbf))==null?void 0x0:_0x3dfe76['skeleton'];return _0x2ff4c6[_0x249c73(0x2f7)](_0x438f96['id'],{'unitId':_0x5983ec,'drawings':[{..._0x209770,'transform':_0x2cfea6,'sheetTransform':_0x322e87?_0x3fd5de(_0x2cfea6,_0x322e87)??_0x209770[_0x249c73(0x36e)]:_0x209770['sheetTransform'],'axisAlignSheetTransform':_0x322e87?_0x27d83c(_0x2cfea6,_0x322e87)??_0x209770[_0x249c73(0x19f)]:_0x209770[_0x249c73(0x19f)]}]});});},'updateHostSize':({unitId:_0x478b6b,subUnitId:_0xa68d97,shapeId:_0x19bcb6,width:_0x4551e5,height:_0x43230e})=>{const _0x3ab432=_0x1bd0d9;var _0x127bc3;let _0x437168=_0x3238b8[_0x3ab432(0x254)]({'unitId':_0x478b6b,'subUnitId':_0xa68d97,'drawingId':_0x19bcb6}),_0xf99835=_0x437168==null?void 0x0:_0x437168['transform'];if(!Va(_0x437168)||!_0xf99835)return;let _0x5833e7={..._0xf99835,'width':_0x4551e5,'height':_0x43230e},_0x5f1974=(_0x127bc3=_0x144053['getRenderUnitById'](_0x478b6b))==null||(_0x127bc3=_0x127bc3[_0x3ab432(0x24f)](_0x151dc3)[_0x3ab432(0x201)](_0xa68d97))==null?void 0x0:_0x127bc3[_0x3ab432(0x19b)],_0x26d044=_0x5f1974?_0x3fd5de(_0x5833e7,_0x5f1974)??_0x437168[_0x3ab432(0x36e)]:_0x437168[_0x3ab432(0x36e)],_0x32e968=_0x5f1974?_0x27d83c(_0x5833e7,_0x5f1974)??_0x437168[_0x3ab432(0x19f)]:_0x437168[_0x3ab432(0x19f)];_0x2ff4c6[_0x3ab432(0x190)](_0x438f96['id'],{'unitId':_0x478b6b,'drawings':[{..._0x437168,'transform':_0x5833e7,'sheetTransform':_0x26d044,'axisAlignSheetTransform':_0x32e968}]});},'allowHostSizeShrink':({unitId:_0x55aad9,subUnitId:_0x3540a7,shapeId:_0x83c2ac})=>_0x3d7e43(_0x5a6f1c[_0x1bd0d9(0x284)](_0x55aad9,_0x3540a7,_0x83c2ac)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x2ff4c6,_0x3238b8,_0x144053,_0x5a6f1c,_0x2d8aee]),_0x1ab8bb=_0x2e7dde(()=>({'viewportKeys':{'main':_0xd1d04a[_0x1bd0d9(0x3b4)],'leftTop':_0xd1d04a['VIEW_MAIN_LEFT_TOP'],'top':_0xd1d04a['VIEW_MAIN_TOP'],'left':_0xd1d04a[_0x1bd0d9(0x1c8)]},'getSkeleton':(_0x58845c,_0x4e4e09)=>{const _0x243695=_0x1bd0d9;var _0x27fdff;return((_0x27fdff=_0x58845c[_0x243695(0x24f)](_0x151dc3)[_0x243695(0x201)](_0x4e4e09[_0x243695(0x2a0)]))==null?void 0x0:_0x27fdff['skeleton'])??null;}}),[]);return _0xbd5fef(_0x5ba1ea,{'adapter':_0x47fa6c,'editingService':_0x370e79,'editorUnitId':ii,'positionOptions':_0x1ab8bb});});let Ua=class extends _0x942aec{constructor(_0x5b7f0b,_0x2b047a){const _0x47e372=_0x38e982;super(),this['_componentManager']=_0x5b7f0b,this[_0x47e372(0x17e)]=_0x2b047a,this[_0x47e372(0x248)](),this[_0x47e372(0x20d)]();}[_0x38e982(0x248)](){const _0x410b40=_0x38e982;this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x2bc))||this[_0x410b40(0x1b0)](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'ObjectLayersIcon':_0x28a4bd})),this['_iconManager'][_0x410b40(0x3eb)](_0x410b40(0x389))||this['disposeWithMe'](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'FlipHorizontalIcon':_0x332ddb})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x115))||this['disposeWithMe'](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'FlipVerticalIcon':_0x1b633e})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x3da))||this[_0x410b40(0x1b0)](this['_iconManager'][_0x410b40(0x206)]({'BottomIcon':_0x5d3fb9})),this[_0x410b40(0x17e)]['has'](_0x410b40(0x2c4))||this[_0x410b40(0x1b0)](this[_0x410b40(0x17e)][_0x410b40(0x206)]({'MoveDownIcon':_0x5ac96f})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)](_0x410b40(0x330))||this['disposeWithMe'](this[_0x410b40(0x17e)]['register']({'MoveUpIcon':_0x415dfc})),this[_0x410b40(0x17e)][_0x410b40(0x3eb)]('ShapeFormatSettingIcon')||this['disposeWithMe'](this['_iconManager'][_0x410b40(0x206)]({'ShapeFormatSettingIcon':_0x323ccb})),this[_0x410b40(0x17e)]['has']('TopmostIcon')||this[_0x410b40(0x1b0)](this['_iconManager'][_0x410b40(0x206)]({'TopmostIcon':_0x3d647d}));}[_0x38e982(0x20d)](){const _0x55b435=_0x38e982;this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](ei,Ra)),this[_0x55b435(0x1b0)](this['_componentManager']['register'](ti,ga)),this['disposeWithMe'](this['_componentManager'][_0x55b435(0x206)](di,_i)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](fi,mi)),this[_0x55b435(0x26c)]['hasDefault'](_0x768cfe)||this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)]['register'](_0x768cfe,gi)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](ni,za)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](Ai,Pi)),this['disposeWithMe'](this[_0x55b435(0x26c)][_0x55b435(0x206)](ki,Fi)),this[_0x55b435(0x1b0)](this['_componentManager'][_0x55b435(0x206)](ji,Ii)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](Mi,Li)),this[_0x55b435(0x1b0)](this[_0x55b435(0x26c)][_0x55b435(0x206)](ai,_0x217120)),this['disposeWithMe'](this[_0x55b435(0x26c)]['register'](_0x55b435(0x348),Ha));}};Ua=X([Y(0x0,_0x304d45(_0x5a4631)),Y(0x1,_0x304d45(_0x26766a))],Ua);let Wa=class extends _0x942aec{constructor(_0x3656bc,_0x58af24,_0x1c28fa,_0x4ff89d,_0x6aca80,_0x2c6b0c,_0x2d6e9b,_0x39919d,_0x57e3b4){const _0x118ec6=_0x38e982;super();let _0x16dbf5=_0xacb7c6=>{const _0x4b1db4=_0x2e49;var _0x1b8905,_0x6a82c;return(((_0x1b8905=_0x39919d['getPermissionPoint'](new _0x5d4362(_0xacb7c6[_0x4b1db4(0x3d6)])['id']))==null?void 0x0:_0x1b8905[_0x4b1db4(0x134)])??!0x0)&&(((_0x6a82c=_0x39919d[_0x4b1db4(0x16f)](new _0x2cc33f(_0xacb7c6[_0x4b1db4(0x3d6)],_0xacb7c6['subUnitId'])['id']))==null?void 0x0:_0x6a82c['value'])??!0x0);},_0xc9e268=_0x12d099=>_0x12d099[_0x118ec6(0x3ea)]&&_0x16dbf5(_0x12d099)?_0x1c28fa[_0x118ec6(0x284)](_0x12d099[_0x118ec6(0x3d6)],_0x12d099[_0x118ec6(0x2a0)],_0x12d099[_0x118ec6(0x3ea)])??null:null,_0x5dbde8=()=>{const _0x535d46=_0x118ec6;let _0x39fe71=_0x6aca80[_0x535d46(0x212)](),_0x101565=_0x39fe71['length']===0x1?_0x39fe71[0x0]:null;return(_0x101565==null?void 0x0:_0x101565[_0x535d46(0x3bd)])===_0x1afd9e[_0x535d46(0x2d5)]&&_0x101565[_0x535d46(0x3d6)]===_0x3656bc['unitId']?{'unitId':_0x101565[_0x535d46(0x3d6)],'subUnitId':_0x101565[_0x535d46(0x2a0)],'shapeId':_0x101565[_0x535d46(0x36f)]}:null;};this['disposeWithMe'](_0x585447(_0x3656bc,_0x58af24,{'changes$':_0x185653(_0x6aca80['focus$'],_0x4ff89d[_0x118ec6(0x172)],_0x39919d[_0x118ec6(0x247)]),'isActive':()=>{const _0x2669ab=_0x118ec6;var _0x87bfde;return((_0x87bfde=_0x2c6b0c[_0x2669ab(0x1c6)]())==null?void 0x0:_0x87bfde[_0x2669ab(0x1cc)]())===_0x3656bc['unitId']&&!_0x2d6e9b[_0x2669ab(0x11e)](_0x5a8010)&&_0x6aca80[_0x2669ab(0x212)]()[_0x2669ab(0x38a)](_0x84357d=>_0x84357d[_0x2669ab(0x3d6)]===_0x3656bc['unitId']);},'getSelectedTarget':_0x5dbde8,'getSource':()=>{let _0x53053d=_0x5dbde8();return _0x53053d?_0xc9e268(_0x53053d):null;},'getTarget':_0x5251fa=>{const _0x134704=_0x118ec6;let _0x53b1f4=_0x3656bc['scene'][_0x134704(0x2e2)](new _0x225e34(_0x5251fa[_0x134704(0x3cb)],_0x5251fa[_0x134704(0x27e)]));if(!(_0x53b1f4 instanceof J))return null;let _0x11cb4b={'unitId':_0x3656bc[_0x134704(0x3d6)],'subUnitId':_0x53b1f4[_0x134704(0x2a0)],'shapeId':_0x53b1f4[_0x134704(0x3ea)]};return _0x16dbf5(_0x11cb4b)?_0x11cb4b:null;},'getShape':_0xc9e268,'update':(_0x3ecc5f,_0x70d2a,_0x3d7585)=>_0x57e3b4[_0x118ec6(0x190)](K['id'],{..._0x3ecc5f,'shapeData':_0x3d7585,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x70d2a}})}));}};Wa=X([Y(0x1,_0x304d45(_0x5ea0fd)),Y(0x2,_0x304d45(_0x57544e)),Y(0x3,_0x304d45($)),Y(0x4,_0x457af4),Y(0x5,_0x5789bf),Y(0x6,_0x467548),Y(0x7,_0x33574c),Y(0x8,_0x5aac1e)],Wa);const Ga=_0x38e982(0x26b);let Ka=class extends _0x942aec{constructor(_0x3016b2,_0x1d60ea,_0x35bca0,_0x3ee8ca,_0x46d3f2,_0x599a38){const _0x53ba4a=_0x38e982;super(),this[_0x53ba4a(0x151)]=_0x3016b2,this[_0x53ba4a(0x2d2)]=_0x1d60ea,this['_drawingManagerService']=_0x35bca0,this[_0x53ba4a(0x23f)]=_0x3ee8ca,this['_renderManagerService']=_0x46d3f2,this[_0x53ba4a(0x25b)]=_0x599a38,q(this,_0x53ba4a(0x244),!0x1),this['_menuManagerService'][_0x53ba4a(0x3b1)](sa),this[_0x53ba4a(0x1b0)](_0x3cb981(this[_0x53ba4a(0x342)][_0x53ba4a(0x1a8)][_0x53ba4a(0x335)](()=>this['_update']()))),this[_0x53ba4a(0x31a)]();}[_0x38e982(0x39d)](){const _0x44be96=_0x38e982;this[_0x44be96(0x25b)]['setFallbackVisible'](!0x1,Ga),this[_0x44be96(0x14d)](),super[_0x44be96(0x39d)]();}[_0x38e982(0x31a)](){const _0x117c05=_0x38e982;var _0x42c998;let _0x5a8664=this['_drawingManagerService'][_0x117c05(0x212)](),_0x21ca8d=_0x5a8664[_0x117c05(0x23c)]===0x1?_0x5a8664[0x0]:void 0x0;if((_0x21ca8d==null?void 0x0:_0x21ca8d[_0x117c05(0x3bd)])!==_0x1afd9e[_0x117c05(0x2d5)]||this['_univerInstanceService'][_0x117c05(0x120)](_0x21ca8d[_0x117c05(0x3d6)])!==_0x19c9b9['UNIVER_SHEET']){this[_0x117c05(0x25b)][_0x117c05(0x231)](!0x1,Ga),this[_0x117c05(0x14d)]();return;}let _0x14c458=(_0x42c998=this[_0x117c05(0x3a5)][_0x117c05(0x37e)](_0x21ca8d['unitId']))==null?void 0x0:_0x42c998[_0x117c05(0x3ec)]['getCanvasElement'](),_0x551861=_0x163141(_0x14c458)===_0x117c05(0x1ab);this[_0x117c05(0x25b)][_0x117c05(0x231)](_0x551861,Ga),_0x551861?this['_hide']():this[_0x117c05(0x244)]||(this['_visible']=!0x0,this[_0x117c05(0x2d2)]['showContextualTab'](ri,{'activate':!0x0}));}[_0x38e982(0x14d)](){const _0x506ce3=_0x38e982;this[_0x506ce3(0x244)]&&(this['_visible']=!0x1,this[_0x506ce3(0x2d2)]['hideContextualTab'](ri),this[_0x506ce3(0x2d2)][_0x506ce3(0x210)]([]));}};Ka=X([Y(0x0,_0x3d7840),Y(0x1,_0x22f46b),Y(0x2,_0x457af4),Y(0x3,_0x5789bf),Y(0x4,_0x1fc6ff),Y(0x5,_0x304d45(_0x17c0f2))],Ka);let qa=class extends _0x54f47a{constructor(_0x250554,_0x509e9a,_0x37f9a7,_0x508ef6,_0x50861d,_0x3e72b9,_0x22bbc0,_0x49420c,_0x4f87f3,_0x8cdf02){super(_0x250554,_0x509e9a,_0x37f9a7,_0x508ef6,_0x50861d,_0x3e72b9,_0x22bbc0,_0x49420c,_0x4f87f3,_0x8cdf02,{'componentKey':ai,'editorUnitId':ii});}};qa=X([Y(0x1,_0x304d45(_0x1214d0)),Y(0x2,_0x304d45(_0x34ad9a)),Y(0x3,_0x304d45(_0xc704d0)),Y(0x4,_0x5aac1e),Y(0x5,_0x304d45(_0x5b3d6d)),Y(0x6,_0x304d45(_0x19e867)),Y(0x7,_0x304d45(_0x28a9cc)),Y(0x8,_0x304d45(_0x14e599)),Y(0x9,_0x304d45($))],qa);let Ja=class extends _0x3904ee{constructor(_0x49e9e1,_0x119c8e,_0x221950,_0x34e6e8,_0x347667){const _0x246c85=_0x38e982;super(_0x49e9e1,_0x119c8e,{'editing$':_0x221950[_0x246c85(0x172)],'resolve':_0x2dff27=>{const _0x5c40d8=_0x246c85;var _0x3c057b,_0x1d75c0,_0x125e98;let _0x369573=new _0x225e34(_0x2dff27[_0x5c40d8(0x3cb)],_0x2dff27[_0x5c40d8(0x27e)]),_0x44097e=((_0x3c057b=_0x49e9e1['scene'][_0x5c40d8(0x2cf)](_0x369573))==null?void 0x0:_0x3c057b[_0x5c40d8(0x279)](_0x369573))??_0x369573,_0x25e5a2=_0xa96c91(_0x49e9e1[_0x5c40d8(0x313)]['pick'](_0x369573)??null,_0x44097e);if(!(_0x25e5a2 instanceof J))return null;let _0x395433=_0x25e5a2[_0x5c40d8(0x1db)](_0x44097e);if(!_0x395433)return null;let _0x5d9270=_0x25e5a2,_0x8fe74d={'componentKey':_0x1b4edc['componentKey'],'direction':_0x5c40d8(0x31d),'offset':[0x0,0xa],'onClickOutside':()=>_0x119c8e[_0x5c40d8(0x139)]()};return{'object':_0x25e5a2,'info':{..._0x395433,'unitId':_0x25e5a2['unitId'],'subUnitId':_0x25e5a2[_0x5c40d8(0x2a0)],'shapeKey':_0x25e5a2[_0x5c40d8(0x143)],'readonly':!0x0,'copyable':((_0x1d75c0=_0x347667[_0x5c40d8(0x16f)](new _0x3527b0(_0x25e5a2[_0x5c40d8(0x3d6)])['id']))==null?void 0x0:_0x1d75c0[_0x5c40d8(0x134)])!==!0x1&&((_0x125e98=_0x347667[_0x5c40d8(0x16f)](new _0x3feae7(_0x25e5a2[_0x5c40d8(0x3d6)],_0x25e5a2[_0x5c40d8(0x2a0)])['id']))==null?void 0x0:_0x125e98[_0x5c40d8(0x134)])!==!0x1},'attachPopup':()=>_0x34e6e8[_0x5c40d8(0x2fc)](_0x5d9270,_0x8fe74d)};}}),this['disposeWithMe'](_0x49e9e1['unit'][_0x246c85(0x2fa)]['subscribe'](()=>this['clear']()));}};Ja=X([Y(0x1,_0x304d45(_0x19e867)),Y(0x2,_0x304d45($)),Y(0x3,_0x304d45(_0x3f309f)),Y(0x4,_0x33574c)],Ja);let Ya=class extends _0x942aec{constructor(_0x4696ee,_0x1ec66e,_0x464060,_0x3368fc,_0x3a9364,_0x5adfdb,_0x432dd7,_0x52138a,_0x46d8d9,_0x2d1d1f,_0x2d039a){const _0x562b4c=_0x38e982;super(),this['_univerInstanceService']=_0x4696ee,this[_0x562b4c(0x376)]=_0x1ec66e,this[_0x562b4c(0x151)]=_0x464060,this['_sheetsShapeService']=_0x3368fc,this['_localeService']=_0x3a9364,this[_0x562b4c(0x338)]=_0x5adfdb,this['_drawingManagerService']=_0x432dd7,this['_sheetCanvasPopManagerService']=_0x52138a,this[_0x562b4c(0x3be)]=_0x46d8d9,this[_0x562b4c(0x3a5)]=_0x2d1d1f,this['_shapeTextEditingService']=_0x2d039a,q(this,_0x562b4c(0x2bf),null),q(this,_0x562b4c(0x3e3),null),q(this,_0x562b4c(0x3b6),!0x1),q(this,_0x562b4c(0x1be),0x0),q(this,'_shapePopupMenuDisposable',null),q(this,_0x562b4c(0x2ec),[]),this['_initMenu'](),this[_0x562b4c(0x1b0)](this[_0x562b4c(0x23f)]['getCurrentTypeOfUnit$'](_0x19c9b9[_0x562b4c(0x2b6)])[_0x562b4c(0x335)](_0x230b72=>{const _0x1c575a=_0x562b4c;if(!_0x230b72){var _0xe9fbba;(_0xe9fbba=this[_0x1c575a(0x2bf)])==null||_0xe9fbba['dispose']();}})),this['_registerOperations'](),this[_0x562b4c(0x17b)](),this['disposeWithMe'](this[_0x562b4c(0x396)][_0x562b4c(0x172)][_0x562b4c(0x335)](_0x1ee607=>{const _0x378703=_0x562b4c;_0x1ee607&&this[_0x378703(0x2a4)]();}));}[_0x38e982(0x3b5)](){const _0x3ab901=_0x38e982;this[_0x3ab901(0x151)][_0x3ab901(0x3b1)](la);}[_0x38e982(0x17b)](){const _0x3ff5c1=_0x38e982;this['_shapePopupMenuDisposable']||=this['disposeWithMe'](_0x4c4456(this[_0x3ff5c1(0x3a5)],_0x19c9b9[_0x3ff5c1(0x2b6)],_0x4730f3=>this[_0x3ff5c1(0x320)](_0x4730f3)));}['_getShapeInfo'](_0x333c58,_0x2102f8,_0x33f4e4){const _0x1cc56b=_0x38e982;let _0x97f73e=this[_0x1cc56b(0x301)][_0x1cc56b(0x3d3)](_0x333c58,_0x2102f8,_0x33f4e4),_0x567459=this[_0x1cc56b(0x301)][_0x1cc56b(0x284)](_0x333c58,_0x2102f8,_0x33f4e4);return _0x97f73e!==void 0x0&&_0x567459!==void 0x0?{'shapeData':_0x567459,'shapeId':_0x33f4e4,'shapeType':_0x97f73e,'unitId':_0x333c58,'subUnitId':_0x2102f8,'version':this[_0x1cc56b(0x1be)],'disableShapeOption':!0x1}:null;}[_0x38e982(0x2a4)](){const _0x3b2c5c=_0x38e982;this['_disposePopups'][_0x3b2c5c(0x2a5)](_0x505e46=>_0x505e46[_0x3b2c5c(0x39d)]()),this[_0x3b2c5c(0x2ec)][_0x3b2c5c(0x23c)]=0x0;}[_0x38e982(0x320)](_0x1c203c){const _0x2aae83=_0x38e982;let _0x4983ad=new _0x21c758();return _0x4983ad[_0x2aae83(0x385)](_0x1c203c[_0x2aae83(0x16a)][_0x2aae83(0x335)](()=>{const _0x4c737d=_0x2aae83;let _0x1d4946=_0x1c203c[_0x4c737d(0x32e)]();if(this['_clearPopups'](),this['_isOpenedShapeEditPanel']||_0x1d4946[_0x4c737d(0x28b)]>0x1)return;let _0x1508d1=_0x1d4946['values']()[_0x4c737d(0x267)]()[_0x4c737d(0x134)];if(!_0x1508d1)return;let _0x5b054d=this[_0x4c737d(0x342)]['getDrawingOKey'](_0x1508d1['oKey']);if(!_0x5b054d||_0x5b054d[_0x4c737d(0x3bd)]!==_0x1afd9e['DRAWING_SHAPE'])return;let {unitId:_0x34cf15,subUnitId:_0x2dd7ff,drawingId:_0xb70aa3,drawingType:_0xcec52}=_0x5b054d,_0x200f04=this[_0x4c737d(0x14e)](_0x34cf15,_0x2dd7ff,_0xb70aa3);if(!_0x200f04)return;this[_0x4c737d(0x3be)][_0x4c737d(0x228)](_0x27fe43,!0x0);let _0x55aeb1=this['_renderManagerService'][_0x4c737d(0x37e)](_0x34cf15),_0x5111b8=((_0x55aeb1==null?void 0x0:_0x55aeb1[_0x4c737d(0x3c2)])===!0x1?_0x55aeb1[_0x4c737d(0x24f)](_0x3f309f):this[_0x4c737d(0x18e)])[_0x4c737d(0x2fc)](_0x1508d1,{'componentKey':ni,'direction':_0x4c737d(0x256),'offset':[0x0,_0x326b6b],'extraProps':{'unitId':_0x34cf15,'subUnitId':_0x2dd7ff,'drawingId':_0xb70aa3,'drawingType':_0xcec52,'shapeType':_0x200f04[_0x4c737d(0x185)],'shapeData':_0x200f04['shapeData']}});this[_0x4c737d(0x2ec)]['push'](this[_0x4c737d(0x1b0)](_0x5111b8)),this[_0x4c737d(0x342)][_0x4c737d(0x212)]()[_0x4c737d(0x397)](_0x56fe22=>_0x56fe22[_0x4c737d(0x3d6)]===_0x34cf15&&_0x56fe22['subUnitId']===_0x2dd7ff&&_0x56fe22[_0x4c737d(0x36f)]===_0xb70aa3)||this[_0x4c737d(0x342)]['focusDrawing']([{'unitId':_0x34cf15,'subUnitId':_0x2dd7ff,'drawingId':_0xb70aa3}]);})),_0x4983ad[_0x2aae83(0x385)](_0x1c203c['clearControl$'][_0x2aae83(0x335)](()=>{const _0x47300d=_0x2aae83;this[_0x47300d(0x2a4)](),this[_0x47300d(0x3be)]['setContextValue'](_0x27fe43,!0x1),this['_drawingManagerService'][_0x47300d(0x116)](null);})),_0x4983ad['add'](_0x1c203c[_0x2aae83(0x3a7)][_0x2aae83(0x335)](()=>{const _0x41c9ab=_0x2aae83;this[_0x41c9ab(0x2a4)]();})),_0x4983ad[_0x2aae83(0x385)](_0x1c203c[_0x2aae83(0x232)][_0x2aae83(0x335)](()=>{this['_clearPopups']();})),_0x3cb981(()=>{const _0x3337e6=_0x2aae83;_0x4983ad[_0x3337e6(0x39d)](),this['_clearPopups']();});}['_registerOperations'](){const _0xf71899=_0x38e982;this['disposeWithMe'](this['_commandService'][_0xf71899(0x325)](_0x2306df=>{const _0x489ceb=_0xf71899;if(_0x2306df['id']===si['id']){let {unitId:_0x173c3c,subUnitId:_0xbbb858,drawingId:_0x2ce970}=_0x2306df[_0x489ceb(0x3c6)];this[_0x489ceb(0x1be)]+=0x1,this[_0x489ceb(0x3e3)]=this[_0x489ceb(0x14e)](_0x173c3c,_0xbbb858,_0x2ce970),this['_clearPopups'](),this[_0x489ceb(0x2c5)]();}if(_0x2306df['id']===Ia['id']&&(this[_0x489ceb(0x3e3)]=null,this[_0x489ceb(0x1c0)]()),_0x2306df['id']===_0x5a5b4d['id']){let {unitId:_0x24cc16,subUnitId:_0x357c83,shapeId:_0xfc862a}=_0x2306df[_0x489ceb(0x3c6)];if(this[_0x489ceb(0x3e3)]&&this[_0x489ceb(0x3e3)][_0x489ceb(0x3ea)]===_0xfc862a){let _0x11cebb=this[_0x489ceb(0x14e)](_0x24cc16,_0x357c83,_0xfc862a);_0x11cebb&&(this['_shapeEditPanelVersion']+=0x1,_0x11cebb[_0x489ceb(0x3c0)]=this[_0x489ceb(0x1be)],this[_0x489ceb(0x3e3)]=_0x11cebb,this[_0x489ceb(0x3b6)]&&this[_0x489ceb(0x2c5)]());}}})),this[_0xf71899(0x1b0)](this[_0xf71899(0x342)]['focus$'][_0xf71899(0x335)](_0x2924c6=>{const _0x222844=_0xf71899;if(this[_0x222844(0x3b6)]===!0x1)return;if(_0x2924c6[_0x222844(0x23c)]===0x0){this[_0x222844(0x3e3)]=null,this[_0x222844(0x1c0)]();return;}if(_0x2924c6[_0x222844(0x23c)]===0x1&&_0x2924c6[0x0]['drawingType']===_0x1afd9e[_0x222844(0x2d5)]&&(this[_0x222844(0x1be)]+=0x1,this[_0x222844(0x3e3)]=this[_0x222844(0x14e)](_0x2924c6[0x0]['unitId'],_0x2924c6[0x0][_0x222844(0x2a0)],_0x2924c6[0x0][_0x222844(0x36f)]),this[_0x222844(0x3e3)])){this[_0x222844(0x2c5)]();return;}let _0x53fec4=_0x2924c6[_0x222844(0x2d3)](_0x146134=>_0x146134['drawingType']===_0x1afd9e[_0x222844(0x2d5)]);if(_0x2924c6[_0x222844(0x23c)]>0x1&&_0x53fec4[_0x222844(0x23c)]===_0x2924c6['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x222844(0x3e3)]=this[_0x222844(0x14e)](_0x2924c6[0x0]['unitId'],_0x2924c6[0x0]['subUnitId'],_0x2924c6[0x0][_0x222844(0x36f)]),this['_activeShapeInfo']){this[_0x222844(0x2c5)]();return;}}else{if(this[_0x222844(0x1be)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x2924c6[0x0][_0x222844(0x3d6)],_0x2924c6[0x0][_0x222844(0x2a0)],_0x2924c6[0x0]['drawingId']),this[_0x222844(0x3e3)]){this[_0x222844(0x3e3)][_0x222844(0x131)]=!0x0,this[_0x222844(0x2c5)]();return;}}this[_0x222844(0x1c0)]();}));}[_0x38e982(0x2c5)](){const _0x1a2170=_0x38e982;this[_0x1a2170(0x3e3)]&&(this['_sidebarDisposable']=this[_0x1a2170(0x376)][_0x1a2170(0x189)]({'id':ei,'header':{'title':this['_localeService']['t'](_0x1a2170(0x249))},'width':0x184,'children':{'label':ei,...this[_0x1a2170(0x3e3)]},'onClose':()=>{const _0x541e06=_0x1a2170;this[_0x541e06(0x342)][_0x541e06(0x116)](null),this[_0x541e06(0x3be)]['setContextValue'](_0x27fe43,!0x1),this[_0x541e06(0x2bf)]=null;}}),this[_0x1a2170(0x3b6)]=!0x0);}[_0x38e982(0x1c0)](){const _0x1a1e7e=_0x38e982;this[_0x1a1e7e(0x3b6)]=!0x1,this[_0x1a1e7e(0x376)][_0x1a1e7e(0x281)](ei),this[_0x1a1e7e(0x2bf)]=null,this['_contextService'][_0x1a1e7e(0x228)](_0x27fe43,!0x1),this[_0x1a1e7e(0x342)][_0x1a1e7e(0x116)](null);}};Ya=X([Y(0x0,_0x5789bf),Y(0x1,_0x304d45(_0x4e0164)),Y(0x2,_0x3d7840),Y(0x3,_0x304d45(_0x57544e)),Y(0x4,_0x304d45(_0x1180ec)),Y(0x5,_0x5aac1e),Y(0x6,_0x457af4),Y(0x7,_0x304d45(_0x3f309f)),Y(0x8,_0x467548),Y(0x9,_0x1fc6ff),Y(0xa,_0x304d45($))],Ya);let Xa=class extends _0x56cd9b{constructor(_0x74f86f=ma,_0x5d847f,_0x4ea420,_0x297168,_0x11147f){const _0x467324=_0x38e982;super(),this[_0x467324(0x30e)]=_0x74f86f,this[_0x467324(0x2ea)]=_0x5d847f,this[_0x467324(0x338)]=_0x4ea420,this['_configService']=_0x297168,this['_renderManagerService']=_0x11147f;let {..._0x18d5ca}=_0x510611({},ma,this[_0x467324(0x30e)]);this['_configService'][_0x467324(0x1e2)](pa,_0x18d5ca),this['_initCommands']();}[_0x38e982(0x2ae)](){const _0x562804=_0x38e982;this[_0x562804(0x3a5)]['registerRenderModule'](_0x19c9b9[_0x562804(0x364)],[qa]),_0x35c5d7(this[_0x562804(0x2ea)],[[Ya],[Ta],[Z],[Ma]]);}[_0x38e982(0x370)](){const _0x43ec60=_0x38e982;this[_0x43ec60(0x2ea)][_0x43ec60(0x292)](Ya)[_0x43ec60(0x17b)]();}[_0x38e982(0x283)](){const _0x479d05=_0x38e982;[[Oa],[Zr],[ka]][_0x479d05(0x2a5)](_0x16a07f=>this[_0x479d05(0x2ea)][_0x479d05(0x385)](_0x16a07f)),_0x35c5d7(this['_injector'],[[ka],[Zr]]),this['_renderManagerService'][_0x479d05(0x203)](_0x19c9b9['UNIVER_SHEET'],[Oa]),this[_0x479d05(0x3a5)][_0x479d05(0x203)](_0x19c9b9[_0x479d05(0x2b6)],[ha]),this[_0x479d05(0x3a5)][_0x479d05(0x203)](_0x19c9b9[_0x479d05(0x2b6)],[ja]),this['_renderManagerService']['registerRenderModule'](_0x19c9b9[_0x479d05(0x2b6)],[ya]),this[_0x479d05(0x1b0)](this['_renderManagerService']['registerRenderModule'](_0x19c9b9[_0x479d05(0x2b6)],[Ja])),this[_0x479d05(0x1b0)](this['_renderManagerService']['registerRenderModule'](_0x19c9b9['UNIVER_SHEET'],[Wa]));}[_0x38e982(0x2ef)](){const _0x2130a8=_0x38e982;this[_0x2130a8(0x2ea)][_0x2130a8(0x385)]([Ua]),this[_0x2130a8(0x2ea)][_0x2130a8(0x292)](Ua);let _0x482c63=this[_0x2130a8(0x2ea)];[[Ya],[Ta],[Z],[Ma],[Pa],[$],[wa],[Q],[Na],[Ka]][_0x2130a8(0x2a5)](_0x2e7616=>_0x482c63[_0x2130a8(0x385)](_0x2e7616)),_0x35c5d7(this[_0x2130a8(0x2ea)],[[Ya],[Ta],[Z],[Pa],[$],[wa],[Q],[Na],[Ka]]);}[_0x38e982(0x26d)](){const _0x50cc53=_0x38e982;[$r,K,Ia,si,oi,Qr,li,ui][_0x50cc53(0x2a5)](_0x582ba4=>this[_0x50cc53(0x1b0)](this['_commandService'][_0x50cc53(0x13e)](_0x582ba4)));}};q(Xa,_0x38e982(0x2b8),_0x19c9b9[_0x38e982(0x2b6)]),q(Xa,_0x38e982(0x213),'SHEET_SHAPE_UI_PLUGIN'),q(Xa,_0x38e982(0x3c5),ua),q(Xa,'version',da),Xa=X([_0x5d2b6b(_0x457d6d,_0x237574,_0x3c8ce8,_0x34fb40,_0x30c5c0,_0x42e7b6,_0x3e7a54,_0x507ef6,_0x16b801,_0x2be966,_0x2fdc71,_0x398cc1,_0x1f70a8),Y(0x1,_0x304d45(_0x4cf09b)),Y(0x2,_0x5aac1e),Y(0x3,_0x3e62ab),Y(0x4,_0x1fc6ff)],Xa);export{sa as SheetsShapeUIContextualRibbonSchema,la as SheetsShapeUIMenuSchema,Fa as UniverSheetsShapeMobileUIPlugin,Xa as UniverSheetsShapeUIPlugin};