@univerjs-pro/sheets-shape-ui 1.0.1 → 1.0.2

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 +20 -20
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2d0df6=_0xd82a;(function(_0x2bb944,_0x8b033f){const _0x2246ae=_0xd82a,_0x42caf4=_0x2bb944();while(!![]){try{const _0x5a4061=parseInt(_0x2246ae(0x1ac))/0x1*(-parseInt(_0x2246ae(0x281))/0x2)+parseInt(_0x2246ae(0x396))/0x3*(parseInt(_0x2246ae(0x2e7))/0x4)+parseInt(_0x2246ae(0x261))/0x5*(-parseInt(_0x2246ae(0x30d))/0x6)+-parseInt(_0x2246ae(0x1f5))/0x7+-parseInt(_0x2246ae(0x395))/0x8*(-parseInt(_0x2246ae(0x246))/0x9)+parseInt(_0x2246ae(0x17a))/0xa*(parseInt(_0x2246ae(0x2a2))/0xb)+parseInt(_0x2246ae(0x3d9))/0xc;if(_0x5a4061===_0x8b033f)break;else _0x42caf4['push'](_0x42caf4['shift']());}catch(_0x4bf682){_0x42caf4['push'](_0x42caf4['shift']());}}}(_0x610e,0x75872));import{FormulaShapeAnimationController as _0x42710f,MobileShapeEditorService as _0x407672,SHAPE_CHANGE_PICKER_COMPONENT as _0x3a8a9b,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x5a4361,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x41695a,ShapeEditPanel as _0x2f405e,ShapeFloatingToolbar as _0x151805,ShapeFloatingToolbarService as _0x1762ad,ShapeFloatingToolbarToggleFactory as _0x186fec,ShapeFormulaRibbonControl as _0x394db6,ShapeGroupEnum as _0x1fd5e0,ShapePickerDropdown as _0x1b0427,ShapePickerPanel as _0x188712,ShapeQuickStyleGallery as _0x54548f,ShapeStyleRibbonControl as _0x265427,ShapeTextEditorContainer as _0x300b41,ShapeTextFloatMenuRenderControllerBase as _0xf1de31,ShapeTextFloatToolbar as _0x4da2bf,ShapeTextHyperLinkPopupService as _0x1734a5,ShapeTextRibbonControl as _0x2faba2,ToggleShapeFloatingToolbarOperation as _0xc26e59,UniverShapeEditorMobileUIPlugin as _0x1e8479,UniverShapeEditorUIPlugin as _0x237515,activateDrawingObject as _0xea75e6,bindRenderTransformerLifecycle as _0x4d2a81,buildShapeTextDataUpdate as _0x3cde81,clearActiveDrawingObjects as _0x596a84,drawFormulaShapeAnimationLayers as _0xc0c797,getDrawingTypeNameKey as _0x472bed,getTextModel as _0x463fff,getTextStyle as _0x34f010,normalizeShapeTextModel as _0x4a345a,plainShapeTextToDocumentData as _0x2ebc97,prepareShapeTextDocumentData as _0x1eb5ed,registerShapeFormatPainter as _0x4a5fad,resolveFormulaShapeAutoFitSize as _0x1e8b2b,resolveShapeContextualRibbonHostMode as _0x407fa0,resolveShapeTextDocumentPageHeight as _0x5af1ca,resolveShapeTextDocumentRenderLayout as _0x36f001,resolveShapeTextEditorBehaviorShapeData as _0xb4f1c1,resolveShapeTextEditorWrapStrategy as _0x4cc8be,shouldAllowShapeTextEditorHostSizeShrink as _0x4c2568,shouldClipShapeTextDocument as _0x52d372,useFormulaShapeToolbar as _0x7f1164}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x164eca,ContextMenuGroup as _0x55ee75,ContextMenuPosition as _0x4a19dc,FloatingObjectToolbarPosition as _0x50a715,FormatPainterSessionService as _0x597140,IMenuManagerService as _0x506622,IRibbonService as _0x1b732c,ISidebarService as _0x1b5a06,IconManager as _0x2251c5,MenuItemType as _0x4b855f,MenuManagerPosition as _0x34fe1b,RibbonInsertGroup as _0x3cf3c8,UndoRedoGroupService as _0x3ece49,UniverMobileUIPlugin as _0x37cd7e,getMenuHiddenObservable as _0x430cef,useDependency as _0x21d47a,useObservable as _0x460498}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0xacaece,ImageSourceTypeEnum as _0x101b36,ShapeArrowSizeEnum as _0x420069,ShapeArrowTypeEnum as _0x5f30c2,ShapeDefaultConfig as _0x10a8b7,ShapeFillEnum as _0x5b541a,ShapeLineTypeEnum as _0x198d9c,ShapeModel as _0x34a372,ShapeRenderModeEnum as _0x2fcf4b,ShapeTypeEnum as _0x33d774,computeConnectorRouteLayout as _0x3e6f46,getBasicShapeRotateBound as _0x1e6341,isConnectorShape as _0x2f1e1e,isCurvedConnectorShape as _0x514461,routeConnectorLineShape as _0x1f19d7}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x35e3f0,UniverShapeEditorPlugin as _0x4fa095,applyQuickStyleToShapeData as _0x50cf6e,cloneShapeDataForType as _0x4ba573,createShapeFormulaDocument as _0x572a56,createShapeTextBoxShapeData as _0x7ce805,getShapeQuickStylePreset as _0x3e9b85,getShapeQuickStyleType as _0x513016,resolveActiveShapeQuickStylePresetId as _0x5ae3cb}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x326c1c,InsertSheetsShapeMutation as _0x25e508,RemoveSheetsShapeMutation as _0x8ab729,SetShapeDrawingDataCommand as _0x4e5ef7,SheetsShapeService as _0x1697a4,ToggleSheetsShapeFlipCommand as _0x9c81d0,UniverSheetsShapePlugin as _0x5548f0,UpdateConnectorRelationCommand as _0x4b6727,UpdateLineShapeResizeCommand as _0x1c8718,UpdateSheetsShapeDataMutation as _0x1b95a1}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x2b1d62,CommandType as _0x20ba44,DependentOn as _0x344a57,Disposable as _0x12ab23,DisposableCollection as _0x1e89a7,DocumentDataModel as _0x28856a,DrawingTypeEnum as _0x21920f,FOCUSING_COMMON_DRAWINGS as _0xd7e9ce,FOCUSING_SHAPE_TEXT_EDITOR as _0x421648,HorizontalAlign as _0x5b1066,ICommandService as _0x4a7048,IConfigService as _0x553c69,IContextService as _0x2ecdf8,IImageIoService as _0x421464,IPermissionService as _0xefc875,IURLImageService as _0x28e86c,IUndoRedoService as _0x2a6508,IUniverInstanceService as _0x1469ba,Inject as _0x337030,Injector as _0xb34587,LocaleService as _0x37c40f,Plugin as _0x5ca9fd,UniverInstanceType as _0x2711d0,VerticalAlign as _0x297c45,createInternalEditorID as _0xcbcf41,generateRandomId as _0x33f92c,merge as _0x46aa77,registerDependencies as _0x497a61,toDisposable as _0x3d1384,touchDependencies as _0x15f6ed}from'@univerjs/core';import{CopySheetCommand as _0xced8be,RemoveSheetCommand as _0x1a9a29,SheetInterceptorService as _0x4ca793,SheetPermissionCheckController as _0x454f65,SheetSkeletonService as _0x312921,SheetsSelectionsService as _0x53f643,UniverSheetsPlugin as _0xeb0ff5,WorkbookEditablePermission as _0x2279d5,WorksheetEditPermission as _0x840079,attachRangeWithCoord as _0x5d892b,discreteRangeToRange as _0x81a8bd,getSheetCommandTarget as _0x5342d5}from'@univerjs/sheets';import{IDrawingManagerService as _0x569480,SetDrawingSelectedOperation as _0x4b870a,UniverDrawingPlugin as _0x2aa519,getDrawingShapeKeyByDrawingSearch as _0x41d737,getOrCreateDrawingCopyPlan as _0x2ff90d}from'@univerjs/drawing';import{CURSOR_TYPE as _0x44b094,Circle as _0x5720b1,DRAWING_OBJECT_LAYER_INDEX as _0x4ea2ef,DocumentSkeleton as _0x15aa93,DocumentViewModel as _0x485091,Documents as _0x48e432,IRenderManagerService as _0xac3281,Image as _0x159e6b,RENDER_CLASS_TYPE as _0x12b9a1,SHEET_VIEWPORT_KEY as _0x517af6,Shape as _0x580510,Transform as _0x4d3a2f,UniverRenderEnginePlugin as _0x4a0305,Vector2 as _0x4e2c7}from'@univerjs/engine-render';import{COPY_TYPE as _0x565310,ISheetClipboardService as _0x1d00fe,PREDEFINED_HOOK_NAME as _0x23758a,SheetCanvasPopManagerService as _0x4cea8b,SheetPrintInterceptorService as _0x3e6971,SheetScrollManagerService as _0x201189,SheetSkeletonManagerService as _0x2e5cfd,UniverSheetsMobileUIPlugin as _0x4bf7fa,UniverSheetsUIPlugin as _0x20e7c1,deriveStateFromActiveSheet$ as _0x30728a,getCurrentRangeDisable$ as _0x69308e,getViewportByCell as _0x10e5a1}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x2fdcb7,EMPTY as _0x50c59a,Observable as _0x37f521,map as _0x375580,merge as _0x2f7396,of as _0xc07474,startWith as _0x5f5b90,switchMap as _0x198be4}from'rxjs';import{DrawingCommonPanel as _0x4e1d8e,DrawingImageClipService as _0x18c0df,DrawingRenderService as _0x3f8056,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x84139e,MobileObjectListPanel as _0x15f5a3,OBJECT_LIST_FLOATING_SECTION_ID as _0x58ccde,ObjectListPanelBase as _0x3c681a,UniverDrawingUIPlugin as _0x4281fe,getCurrentUnitInfo as _0x2a62df,getObjectListPanelSectionIdForDrawingType as _0xd57d81,insertGroupObject as _0x387dc4}from'@univerjs/drawing-ui';import{MobileDropdown as _0x10f53b}from'@univerjs/design';import{Fragment as _0x162bae,jsx as _0x3380eb,jsxs as _0x3a9d5b}from'react/jsx-runtime';import{DrawingApplyType as _0x1eb4bd,ISheetDrawingService as _0x492aa7,RemoveSheetDrawingCommand as _0x25d548,SetDrawingApplyMutation as _0x347a95,SetDrawingArrangeCommand as _0x1d9abf,SetSheetDrawingCommand as _0x24592a,UniverSheetsDrawingPlugin as _0x1d8781,transformToAxisAlignPosition as _0x355b06,transformToDrawingPosition as _0x5adc81}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x215a74}from'@univerjs-pro/license';import{DocInterceptorService as _0x519188,DocSelectionManagerService as _0x2df91f,UniverDocsPlugin as _0x426f70}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x23bd2c,DocEventManagerService as _0x48f76e,DocRenderController as _0x209979,DocSelectionRenderService as _0xe7375c,UniverDocsUIPlugin as _0x507268}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x5dcbca,SheetsDrawingGroupCopyPasteController as _0x2173cc,UniverSheetsDrawingMobileUIPlugin as _0x2c946a,UniverSheetsDrawingUIPlugin as _0x5de827}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x4b42da,FlipHorizontalIcon as _0x3b3e83,FlipVerticalIcon as _0xe9d97c,MoveDownIcon as _0x228ede,MoveUpIcon as _0x4fac57,ObjectLayersIcon as _0x106bf2,ShapeFormatSettingIcon as _0x3d6914,TopmostIcon as _0x1bc2e3}from'@univerjs/icons';import{memo as _0x18b36d,useEffect as _0x4cf784,useMemo as _0x3e840e,useReducer as _0x28b5bf,useState as _0x122bd7}from'react';function yr(_0x3dfc35,_0x4a6c86){const _0x4ac6a5=_0xd82a;let _0x5a5d4c={};for(let _0x340bc9 of Object[_0x4ac6a5(0x162)](_0x4a6c86)){let _0x30bee3=_0x4a6c86[_0x340bc9],_0x6db991=_0x3dfc35[_0x340bc9];if(_0x6db991===void 0x0){_0x5a5d4c[_0x340bc9]=void 0x0;continue;}_0x5a5d4c[_0x340bc9]=typeof _0x30bee3==_0x4ac6a5(0x42b)&&_0x30bee3&&!Array[_0x4ac6a5(0x2ee)](_0x30bee3)&&typeof _0x6db991==_0x4ac6a5(0x42b)&&_0x6db991&&!Array[_0x4ac6a5(0x2ee)](_0x6db991)?yr(_0x6db991,_0x30bee3):_0x6db991;}return _0x5a5d4c;}const K={'type':_0x20ba44[_0x2d0df6(0x24c)],'id':_0x2d0df6(0x3cb),'handler':(_0x235a8d,_0xf93a4b)=>{const _0x5d9002=_0x2d0df6;let _0xf6af0e=_0x235a8d[_0x5d9002(0x16b)](_0x1697a4),{unitId:_0xb426ab,subUnitId:_0x5eb5d1,shapeType:_0x34f02e,shapeId:_0x2ac073,shapeData:_0x58650e,replaceShapeData:_0xa7b88,oldShapeJSON:_0x20321c}=_0xf93a4b;if(!_0xf6af0e[_0x5d9002(0x26f)](_0xb426ab,_0x5eb5d1,_0x2ac073))return!0x1;let _0x5d6931=_0x235a8d[_0x5d9002(0x16b)](_0x4a7048),_0x2957e4=_0x235a8d[_0x5d9002(0x16b)](_0x2a6508),{oldShapeType:_0x35bd6f,oldShapeData:_0x419a41={}}=_0x20321c,_0x4f02af=_0xa7b88?_0x419a41:yr(_0x419a41,_0x58650e||{}),_0x1bdb9a={'id':_0x1b95a1['id'],'params':{'unitId':_0xb426ab,'subUnitId':_0x5eb5d1,'shapeId':_0x2ac073,'shapeType':_0x34f02e,'shapeData':_0x58650e,'replace':_0xa7b88}},_0x19b46c={'id':_0x1b95a1['id'],'params':{'unitId':_0xb426ab,'subUnitId':_0x5eb5d1,'shapeId':_0x2ac073,'shapeType':_0x35bd6f,'shapeData':_0x4f02af,'replace':_0xa7b88}};return _0x5d6931[_0x5d9002(0x17b)](_0x1bdb9a['id'],_0x1bdb9a[_0x5d9002(0x24a)])?(_0x2957e4[_0x5d9002(0x3dc)]({'unitID':_0xb426ab,'undoMutations':[_0x19b46c],'redoMutations':[_0x1bdb9a]}),!0x0):!0x1;}};function br(_0x229727,_0x4bf37d,_0x5d38f1,_0x3eabe5,_0x3688cb,_0xc49c55){const _0x1db105=_0x2d0df6;let _0x47ae50={'unitId':_0x4bf37d,'subUnitId':_0x5d38f1,'shapeId':_0x3eabe5,'shapeData':_0xc49c55,'oldShapeJSON':_0x3688cb};return _0x229727[_0x1db105(0x1c1)](K['id'],_0x47ae50);}function xr(_0x1f3a56,_0x5b2c26,_0x35b2bb,_0x440d92,_0x3a60a7,_0x57e928){const _0x23c990=_0x2d0df6;let _0x3cb83c={'unitId':_0x5b2c26,'subUnitId':_0x35b2bb,'shapeId':_0x440d92,'shapeData':_0x57e928,'oldShapeJSON':_0x3a60a7};return _0x1f3a56[_0x23c990(0x1c1)](K['id'],_0x3cb83c);}function Sr(_0x4285f1){'@babel/helpers - typeof';const _0x2b0bda=_0x2d0df6;return Sr=typeof Symbol==_0x2b0bda(0x168)&&typeof Symbol['iterator']=='symbol'?function(_0x522189){return typeof _0x522189;}:function(_0x3688dd){const _0x278d8e=_0x2b0bda;return _0x3688dd&&typeof Symbol=='function'&&_0x3688dd[_0x278d8e(0x1ba)]===Symbol&&_0x3688dd!==Symbol[_0x278d8e(0x409)]?_0x278d8e(0x242):typeof _0x3688dd;},Sr(_0x4285f1);}function Cr(_0x523d9a,_0x5252c6){const _0x4778fd=_0x2d0df6;if(Sr(_0x523d9a)!='object'||!_0x523d9a)return _0x523d9a;var _0x37b41e=_0x523d9a[Symbol[_0x4778fd(0x180)]];if(_0x37b41e!==void 0x0){var _0x2a1292=_0x37b41e[_0x4778fd(0x3cd)](_0x523d9a,_0x5252c6||_0x4778fd(0x2c3));if(Sr(_0x2a1292)!='object')return _0x2a1292;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5252c6===_0x4778fd(0x251)?String:Number)(_0x523d9a);}function wr(_0x1f606d){const _0xcaf104=_0x2d0df6;var _0x521f82=Cr(_0x1f606d,_0xcaf104(0x251));return Sr(_0x521f82)==_0xcaf104(0x242)?_0x521f82:_0x521f82+'';}function q(_0x5a37de,_0x15546c,_0x3e75e1){const _0x25d36a=_0x2d0df6;return(_0x15546c=wr(_0x15546c))in _0x5a37de?Object[_0x25d36a(0x303)](_0x5a37de,_0x15546c,{'value':_0x3e75e1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a37de[_0x15546c]=_0x3e75e1,_0x5a37de;}function Tr(_0x3dafb5,_0x419cf9,_0x1c55e1){const _0x3a44b5=_0x2d0df6;let _0x346356={..._0x419cf9,'dataModel':{..._0x419cf9[_0x3a44b5(0x3eb)]??{},..._0x1c55e1?{'doc':_0x1c55e1}:null}},_0x1a7417=_0xb4f1c1(_0x3dafb5,_0x346356),_0x96d7bb=_0x4cc8be(_0x1a7417);return{'clip':_0x52d372(_0x1a7417,_0x96d7bb),'wrapStrategy':_0x96d7bb};}var Er=class extends _0x580510{constructor(_0x4a8dfb,_0x255870){const _0x61a810=_0x2d0df6;super(_0x4a8dfb,_0x255870),q(this,_0x61a810(0x18d),void 0x0),q(this,_0x61a810(0x392),new _0x42710f(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,_0x61a810(0x1f0),!0x0),q(this,_0x61a810(0x311),_0x21920f['DRAWING_SHAPE']),q(this,_0x61a810(0x362),!0x0),this['_props']={..._0x255870},this[_0x61a810(0x392)][_0x61a810(0x296)](_0x255870[_0x61a810(0x401)],_0x255870[_0x61a810(0x2d9)]!==!0x1),this['_init'](),this['_applyFormulaAutoFitSize']();}[_0x2d0df6(0x232)](){const _0x684a52=_0x2d0df6;this[_0x684a52(0x1ee)][_0x684a52(0x1de)](_0x36a6ec=>{const _0x5f1eb5=_0x684a52;this[_0x5f1eb5(0x2e9)](_0x36a6ec);});}['setPrstGeom'](_0x70bc8b){const _0x44ada4=_0x2d0df6;this['_props'][_0x44ada4(0x35f)]=_0x70bc8b;}['setEditing'](_0x4af673){const _0x213a80=_0x2d0df6;this['_props'][_0x213a80(0x27a)]=_0x4af673,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x44192d,_0x2195c1=!0x0){const _0x451519=_0x2d0df6;this[_0x451519(0x392)][_0x451519(0x296)](_0x44192d,_0x2195c1),this[_0x451519(0x18d)][_0x451519(0x401)]=_0x44192d,this[_0x451519(0x3fe)](),this[_0x451519(0x1e7)](!0x0);}[_0x2d0df6(0x3fe)](){const _0x582032=_0x2d0df6;let _0x4fe024=this['_props']['shapeModel'],_0xfc5af0=_0x4fe024['getShapeTextData'](),_0x2f78ec=_0x4a345a(_0xfc5af0==null?void 0x0:_0xfc5af0[_0x582032(0x3eb)]),_0x5d7bfe=_0x2f78ec==null?void 0x0:_0x2f78ec['doc'],_0xe10ca0=this[_0x582032(0x392)][_0x582032(0x15b)]();if(!_0x5d7bfe||_0xe10ca0[_0x582032(0x3a5)]===0x0)return;_0x4fe024[_0x582032(0x267)]({'width':this[_0x582032(0x373)],'height':this[_0x582032(0x18b)]});let _0x5f23c0=_0x1e8b2b({'documentData':_0xe10ca0[_0x582032(0x3f6)](_0x49b0ea=>_0x572a56(_0x5d7bfe,_0x49b0ea)),'height':this['height'],'shapeData':_0x4fe024[_0x582032(0x353)](),'textRect':_0x4fe024['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x582032(0x373)],'height':this['height']}),'width':this[_0x582032(0x373)]});if(_0x5f23c0){var _0x8e8cb3;this[_0x582032(0x20a)](_0x5f23c0[_0x582032(0x373)],_0x5f23c0[_0x582032(0x18b)]),(_0x8e8cb3=this[_0x582032(0x425)]())==null||(_0x8e8cb3=_0x8e8cb3[_0x582032(0x217)]())==null||_0x8e8cb3[_0x582032(0x1e3)]();}}get[_0x2d0df6(0x2eb)](){return this['_props']['unitId'];}get[_0x2d0df6(0x1c3)](){const _0x4ba3a6=_0x2d0df6;return this[_0x4ba3a6(0x18d)][_0x4ba3a6(0x1c3)];}[_0x2d0df6(0x2e9)](_0x853d83){const _0x583511=_0x2d0df6;if(this[_0x583511(0x18d)][_0x583511(0x2bd)]==null||!this[_0x583511(0x1f0)])return;let {width:_0x437d6a,height:_0x55b1b4}=this,{width:_0x276487=0x0,height:_0x126d5d=0x0}=_0x853d83[_0x583511(0x18f)],{left:_0x362344=0x0,top:_0x4f8fd3=0x0,right:_0x20202b=0x0,bottom:_0x38a30f=0x0}=this['_props'][_0x583511(0x2bd)],_0x24d221=_0x362344,_0x541a4d=_0x4f8fd3,_0x4cbdd2=_0x20202b,_0x1ae1e2=_0x38a30f,_0x5cd2c2=!0x1;if(_0x276487!==0x0&&_0x276487!==_0x437d6a){let _0x24ef10=_0x362344/_0x276487,_0x2887c1=_0x20202b/_0x276487;_0x24d221=_0x437d6a*_0x24ef10,_0x4cbdd2=_0x437d6a*_0x2887c1,_0x5cd2c2=!0x0;}if(_0x126d5d!==0x0&&_0x126d5d!==_0x55b1b4){let _0x295829=_0x4f8fd3/_0x126d5d,_0x1a12d8=_0x38a30f/_0x126d5d;_0x541a4d=_0x55b1b4*_0x295829,_0x1ae1e2=_0x55b1b4*_0x1a12d8,_0x5cd2c2=!0x0;}_0x5cd2c2&&this[_0x583511(0x21d)]({'left':_0x24d221,'top':_0x541a4d,'right':_0x4cbdd2,'bottom':_0x1ae1e2});}[_0x2d0df6(0x21d)](_0x4fc1ab){const _0x54efe3=_0x2d0df6;this[_0x54efe3(0x18d)][_0x54efe3(0x2bd)]=_0x4fc1ab,this[_0x54efe3(0x1e7)](!0x0);}[_0x2d0df6(0x279)](_0x37b7ad){const _0x3c36f6=_0x2d0df6;this[_0x3c36f6(0x18d)]['image']=_0x37b7ad,this[_0x3c36f6(0x1e7)](!0x0);}set[_0x2d0df6(0x284)](_0x12ccef){const _0x439aa2=_0x2d0df6;this[_0x439aa2(0x1a4)]=_0x12ccef;}get[_0x2d0df6(0x284)](){const _0x2b8475=_0x2d0df6;this[_0x2b8475(0x1a4)]||this[_0x2b8475(0x38e)]();let _0x4044a5=this['_transform'][_0x2b8475(0x40b)]();return this[_0x2b8475(0x188)](_0x4044a5);}get[_0x2d0df6(0x1ec)](){const _0x3142f4=_0x2d0df6;return this[_0x3142f4(0x18d)][_0x3142f4(0x1ec)];}get[_0x2d0df6(0x192)](){const _0x4ec6d6=_0x2d0df6;return this[_0x4ec6d6(0x18d)][_0x4ec6d6(0x192)];}get[_0x2d0df6(0x1c0)](){const _0x23f387=_0x2d0df6;return _0x12b9a1[_0x23f387(0x22e)];}['_draw'](_0x378115,_0x33ff50,_0x488c74,_0x3a5c31){const _0x113287=_0x2d0df6;let _0x29e635=this['_props'][_0x113287(0x1ec)];if(!_0x29e635||!_0x33ff50)return;let _0x367ac4=_0x488c74??this[_0x113287(0x373)],_0x3837a4=_0x3a5c31??this['height'],_0x9df216={'shapeType':_0x29e635[_0x113287(0x1bd)](),'width':_0x367ac4,'height':_0x3837a4},_0x3eb221={'renderMode':_0x2fcf4b['Path'],'oKey':this['oKey'],'image':this[_0x113287(0x18d)][_0x113287(0x1b5)],'angle':this[_0x113287(0x349)]};_0x29e635['updateContext'](_0x9df216),_0x378115['save']();let _0x459e95={'top':0x0,'left':0x0,'width':_0x367ac4,'height':_0x3837a4},_0x5e991e=_0x29e635[_0x113287(0x20d)](_0x459e95);_0x5e991e?this[_0x113287(0x1e8)](_0x378115,_0x5e991e,_0x5d173c=>{const _0x4f35db=_0x113287;_0x29e635[_0x4f35db(0x3d2)](_0x5d173c,_0x459e95,_0x3eb221);}):(this[_0x113287(0x38a)](),_0x29e635['render'](_0x378115,_0x459e95,_0x3eb221)),_0x378115['restore']();let _0x3e7018=_0x29e635[_0x113287(0x334)](),_0x56dd1e=_0x29e635[_0x113287(0x41a)](_0x459e95),_0x55ba10=_0x29e635['isLineShape']();if(_0x3e7018&&_0x56dd1e&&!_0x55ba10){_0x378115[_0x113287(0x3f3)](),this[_0x113287(0x376)]()[_0x113287(0x36a)]&&_0x378115[_0x113287(0x2e1)](-0x1,0x1);let _0x5f45e3=_0x367ac4/0x2,_0x52d5d3=_0x3837a4/0x2;_0x378115['translate'](-_0x5f45e3,-_0x52d5d3),_0x378115[_0x113287(0x23d)](),this[_0x113287(0x332)](_0x378115,_0x3e7018,_0x56dd1e),_0x378115[_0x113287(0x33b)]();}}[_0x2d0df6(0x29d)](_0x442102){}[_0x2d0df6(0x332)](_0x4058e0,_0x3b01fd,_0x225b5e){const _0x28b61d=_0x2d0df6;var _0x1efe81;this['_props']['isEditing']||(!((_0x1efe81=_0x3b01fd['dataModel'])!=null&&_0x1efe81[_0x28b61d(0x1cd)])&&_0x28b61d(0x1b7)in _0x3b01fd&&_0x3b01fd[_0x28b61d(0x1b7)]===!0x1?this[_0x28b61d(0x2d1)](_0x4058e0,_0x3b01fd,_0x225b5e):this[_0x28b61d(0x35d)](_0x4058e0,_0x3b01fd,_0x225b5e));}[_0x2d0df6(0x2d1)](_0x1d5cd4,_0x30cce6,_0x3ba849){const _0x2baf14=_0x2d0df6;this[_0x2baf14(0x35d)](_0x1d5cd4,{..._0x30cce6,'text':_0x30cce6[_0x2baf14(0x38b)]??'','dataModel':{'doc':_0x2ebc97(_0x30cce6,_0x2baf14(0x2e2)+this[_0x2baf14(0x270)])}},_0x3ba849);}[_0x2d0df6(0x35d)](_0x2c1554,_0x321a66,_0x11f578){_0xc0c797(_0x2c1554,this['_formulaAnimation'],(_0x79fe4e,_0xab5271)=>{const _0x5ed0d9=_0xd82a;this[_0x5ed0d9(0x40f)](_0x79fe4e,_0x321a66,_0x11f578,_0xab5271);});}[_0x2d0df6(0x40f)](_0x4e6685,_0x4ddd4b,_0x416345,_0x178fa0){const _0x521d40=_0x2d0df6;let _0x55b143=this['_props'][_0x521d40(0x399)];if(!_0x4ddd4b[_0x521d40(0x3eb)]||!_0x55b143)return;let _0xa6d4a7=_0x4a345a(_0x4ddd4b['dataModel']);if(!_0xa6d4a7)return;let _0x4d5be8=_0xa6d4a7['doc'];if(!_0x4d5be8)return;let _0x463223=_0x572a56(_0x4d5be8,_0x178fa0),_0x29daab=_0xa6d4a7['va']??_0x297c45[_0x521d40(0x3bc)],_0x463088=_0xa6d4a7['ha']??_0x5b1066[_0x521d40(0x387)],_0x2268c8=Tr(this[_0x521d40(0x18d)]['shapeModel'][_0x521d40(0x353)](),_0x4ddd4b,_0x463223),_0x53f374=_0x4ddd4b[_0x521d40(0x394)],_0x436595=_0x1eb5ed(_0x463223,{'isHorizontal':_0x53f374!==!0x1,'textRect':_0x416345,'verticalAlign':_0x29daab,'horizontalAlign':_0x463088,'wrapStrategy':_0x2268c8['wrapStrategy']}),_0x154cee=new _0x28856a(_0x436595),_0x2e6807=new _0x485091(_0x154cee),_0x1b5ce9=_0x15aa93[_0x521d40(0x205)](_0x2e6807,_0x55b143);_0x1b5ce9[_0x521d40(0x350)]();let _0x4f8786=_0x1b5ce9['getActualSize']()[_0x521d40(0x2af)],_0x49387c=_0x36f001({'contentHeight':_0x4f8786,'verticalAlign':_0x29daab,'viewportHeight':_0x416345[_0x521d40(0x18b)]});_0x154cee[_0x521d40(0x212)]({'pageSize':{'width':_0x53f374===!0x1?_0x416345[_0x521d40(0x18b)]:_0x416345['width'],'height':_0x5af1ca(_0x463223,_0x49387c['contentHeight'])}}),_0x154cee[_0x521d40(0x3ee)]({'t':_0x49387c[_0x521d40(0x286)]}),_0x1b5ce9['calculate']();let _0x2015f7=new _0x48e432(_0x521d40(0x230)+this[_0x521d40(0x270)],_0x1b5ce9,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x521d40(0x1e7)](!0x0)});_0x2015f7[_0x521d40(0x20a)](_0x416345[_0x521d40(0x373)],_0x49387c[_0x521d40(0x2a6)]),_0x4e6685[_0x521d40(0x3f3)](),_0x4e6685['translateWithPrecision'](_0x416345[_0x521d40(0x2f5)],_0x416345[_0x521d40(0x15c)]),_0x2268c8[_0x521d40(0x335)]&&(_0x4e6685[_0x521d40(0x23d)](),_0x4e6685['rect'](0x0,_0x49387c[_0x521d40(0x33e)],_0x416345[_0x521d40(0x373)],_0x49387c[_0x521d40(0x220)]),_0x4e6685[_0x521d40(0x335)]()),_0x49387c['contentVerticalOffset']&&_0x4e6685['translateWithPrecision'](0x0,_0x49387c[_0x521d40(0x1ab)]),_0x2015f7[_0x521d40(0x22a)](_0x4e6685),_0x4e6685['restore'](),_0x2015f7['dispose'](),_0x1b5ce9[_0x521d40(0x1e1)](),_0x2e6807[_0x521d40(0x1e1)](),_0x154cee[_0x521d40(0x1e1)]();}[_0x2d0df6(0x3d2)](_0x5f4542,_0x4c43f1,_0x1e688c=!0x1){const _0x1e7cae=_0x2d0df6;if(!this[_0x1e7cae(0x28a)])return this['makeDirty'](!0x1),this;let {width:_0x4d5e2d,height:_0x483f85,left:_0x5431ae,top:_0x2c56d7}=this,_0x1f7155=this['getRealBound']();if(_0x4d5e2d=_0x1f7155[_0x1e7cae(0x373)],_0x483f85=_0x1f7155['height'],_0x5431ae=_0x1f7155[_0x1e7cae(0x2f5)],_0x2c56d7=_0x1f7155['top'],this[_0x1e7cae(0x1ae)](_0x4c43f1)){let {top:_0x26bdc4,left:_0x232611,bottom:_0x410d27,right:_0x5436ae}=_0x4c43f1[_0x1e7cae(0x2c0)];if(_0x4d5e2d+this[_0x1e7cae(0x3b9)]+_0x5431ae<_0x232611||_0x5436ae<_0x5431ae||_0x483f85+this['strokeWidth']+_0x2c56d7<_0x26bdc4||_0x410d27<_0x2c56d7)return this;}let _0x28608c=_0x5431ae+_0x4d5e2d/0x2,_0x417839=_0x2c56d7+_0x483f85/0x2,_0x376ab9=this[_0x1e7cae(0x284)]['getMatrix']();if(this[_0x1e7cae(0x18d)]['isEditing']){let _0xf59b2b=this[_0x1e7cae(0x376)](),_0x3045d4=new _0x4d3a2f();_0x3045d4[_0x1e7cae(0x346)]({..._0xf59b2b}),_0x376ab9=_0x3045d4['getMatrix']();}return _0x5f4542[_0x1e7cae(0x3f3)](),this[_0x1e7cae(0x18d)]['shapeModel'][_0x1e7cae(0x184)]===!0x0||_0x5f4542[_0x1e7cae(0x284)](_0x376ab9[0x0],_0x376ab9[0x1],_0x376ab9[0x2],_0x376ab9[0x3],_0x28608c,_0x417839),this[_0x1e7cae(0x21a)](_0x5f4542,_0x4c43f1,_0x4d5e2d,_0x483f85),_0x5f4542[_0x1e7cae(0x33b)](),this[_0x1e7cae(0x1e7)](!0x1),this;}[_0x2d0df6(0x408)](_0x21a8de){const _0x3bdc91=_0x2d0df6;let {left:_0x21a89e,top:_0x5c008e,width:_0x21b25f,height:_0x5b176e}=this[_0x3bdc91(0x41b)](),_0x43c00f=this[_0x3bdc91(0x284)][_0x3bdc91(0x186)](),_0x35be13=_0x21a89e+_0x21b25f/0x2,_0x440cc7=_0x5c008e+_0x5b176e/0x2,_0x47d466=new _0x4d3a2f([_0x43c00f[0x0],_0x43c00f[0x1],_0x43c00f[0x2],_0x43c00f[0x3],_0x35be13,_0x440cc7]),_0x16b221=this['getParent']();return(this[_0x3bdc91(0x265)]&&(_0x16b221==null?void 0x0:_0x16b221[_0x3bdc91(0x1c0)])===_0x12b9a1['GROUP']?_0x16b221[_0x3bdc91(0x18e)][_0x3bdc91(0x2f6)](_0x47d466):_0x47d466)['invert']()[_0x3bdc91(0x2a0)](_0x21a8de);}[_0x2d0df6(0x1c2)](_0x22fac0){const _0xf6017d=_0x2d0df6;let {left:_0x1d1590,top:_0x5e356b,width:_0x130713,height:_0x4e4612}=this[_0xf6017d(0x41b)](),_0x41bafe=_0x1d1590+_0x130713/0x2,_0x2fd14e=_0x5e356b+_0x4e4612/0x2,_0x413557=this[_0xf6017d(0x284)]['getMatrix'](),_0x45e58d=new _0x4d3a2f([_0x413557[0x0],_0x413557[0x1],_0x413557[0x2],_0x413557[0x3],_0x41bafe,_0x2fd14e]),_0x5d1fd4=this['getParent'](),_0x9470d7=(this[_0xf6017d(0x265)]&&(_0x5d1fd4==null?void 0x0:_0x5d1fd4['classType'])===_0x12b9a1['GROUP']?_0x5d1fd4[_0xf6017d(0x18e)]['multiply'](_0x45e58d):_0x45e58d)[_0xf6017d(0x223)]()[_0xf6017d(0x2a0)](_0x22fac0),_0x224fce=_0x130713/0x2,_0x26522e=_0x4e4612/0x2,_0x58a7ca=this[_0xf6017d(0x18d)]['shapeModel'];return _0x58a7ca&&_0x58a7ca[_0xf6017d(0x2dc)]()?_0x58a7ca[_0xf6017d(0x1e9)](_0x9470d7['x'],_0x9470d7['y'],_0x130713,_0x4e4612):_0x9470d7['x']>=-_0x224fce-this[_0xf6017d(0x3b9)]/0x2&&_0x9470d7['x']<=_0x224fce+this[_0xf6017d(0x3b9)]/0x2&&_0x9470d7['y']>=-_0x26522e-this[_0xf6017d(0x3b9)]/0x2&&_0x9470d7['y']<=_0x26522e+this[_0xf6017d(0x3b9)]/0x2;}[_0x2d0df6(0x1e1)](){const _0x11e3ca=_0x2d0df6;this['_formulaAnimation']['dispose'](),this[_0x11e3ca(0x18d)][_0x11e3ca(0x1ec)]=null,super[_0x11e3ca(0x1e1)]();}},Dr=class extends _0x580510{constructor(_0x31c253,_0x440441){const _0x414637=_0x2d0df6;super(_0x31c253,_0x440441),q(this,_0x414637(0x351),null),q(this,_0x414637(0x282),null),q(this,_0x414637(0x35e),null),q(this,_0x414637(0x3d0),null),_0x440441&&this[_0x414637(0x1ad)](_0x440441);}['getDrawingSearch'](){const _0x282baa=_0x2d0df6;return{'unitId':this[_0x282baa(0x35e)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x282baa(0x351)]};}[_0x2d0df6(0x1ad)](_0x28bb4c){const _0x105bcf=_0x2d0df6;_0x28bb4c[_0x105bcf(0x192)]!==void 0x0&&(this[_0x105bcf(0x351)]=_0x28bb4c[_0x105bcf(0x192)]),_0x28bb4c[_0x105bcf(0x360)]!==void 0x0&&(this[_0x105bcf(0x282)]=_0x28bb4c[_0x105bcf(0x360)]),_0x28bb4c['unitId']!==void 0x0&&(this[_0x105bcf(0x35e)]=_0x28bb4c[_0x105bcf(0x2eb)]),_0x28bb4c['subUnitId']!==void 0x0&&(this[_0x105bcf(0x3d0)]=_0x28bb4c[_0x105bcf(0x1c3)]),this[_0x105bcf(0x1f2)]({'width':_0x28bb4c[_0x105bcf(0x373)],'height':_0x28bb4c['height']});}[_0x2d0df6(0x21a)](_0x317b4f){const _0x814a4e=_0x2d0df6;_0x5720b1[_0x814a4e(0x283)](_0x317b4f,{'radius':_0x10a8b7[_0x814a4e(0x31d)],'fill':_0x10a8b7[_0x814a4e(0x3c5)],'stroke':_0x10a8b7[_0x814a4e(0x363)],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x3bc3ac,_0x1f63c1){return function(_0x945e89,_0x42e044){_0x1f63c1(_0x945e89,_0x42e044,_0x3bc3ac);};}function Y(_0x6a0a35,_0x48e1d0,_0x15232b,_0x17c24d){const _0x3d172a=_0x2d0df6;var _0x1b47e5=arguments[_0x3d172a(0x3a5)],_0x17fd51=_0x1b47e5<0x3?_0x48e1d0:_0x17c24d===null?_0x17c24d=Object['getOwnPropertyDescriptor'](_0x48e1d0,_0x15232b):_0x17c24d,_0x4e803b;if(typeof Reflect==_0x3d172a(0x42b)&&typeof Reflect[_0x3d172a(0x1fc)]==_0x3d172a(0x168))_0x17fd51=Reflect[_0x3d172a(0x1fc)](_0x6a0a35,_0x48e1d0,_0x15232b,_0x17c24d);else{for(var _0x78f080=_0x6a0a35[_0x3d172a(0x3a5)]-0x1;_0x78f080>=0x0;_0x78f080--)(_0x4e803b=_0x6a0a35[_0x78f080])&&(_0x17fd51=(_0x1b47e5<0x3?_0x4e803b(_0x17fd51):_0x1b47e5>0x3?_0x4e803b(_0x48e1d0,_0x15232b,_0x17fd51):_0x4e803b(_0x48e1d0,_0x15232b))||_0x17fd51);}return _0x1b47e5>0x3&&_0x17fd51&&Object['defineProperty'](_0x48e1d0,_0x15232b,_0x17fd51),_0x17fd51;}let X=class extends _0x12ab23{constructor(_0x2dbb60,_0x33258f,_0x513fec,_0x4d349d,_0x19aa93,_0x3101bc){const _0x22a022=_0x2d0df6;super(),this[_0x22a022(0x34f)]=_0x2dbb60,this[_0x22a022(0x1b8)]=_0x33258f,this[_0x22a022(0x166)]=_0x513fec,this[_0x22a022(0x268)]=_0x4d349d,this[_0x22a022(0x23c)]=_0x19aa93,this[_0x22a022(0x2b6)]=_0x3101bc,q(this,'_formulaShapes',new Map()),this[_0x22a022(0x2fd)](this['_shapeFormulaService']['presentationChanged$'][_0x22a022(0x365)](_0x40876f=>{const _0x42f28a=_0x22a022;var _0x1023d8;(_0x1023d8=this['_formulaShapes'][_0x42f28a(0x16b)](this[_0x42f28a(0x274)](_0x40876f[_0x42f28a(0x2eb)],_0x40876f[_0x42f28a(0x1c3)],_0x40876f[_0x42f28a(0x192)])))==null||_0x1023d8[_0x42f28a(0x231)](_0xf812d0=>_0xf812d0[_0x42f28a(0x40d)](_0x40876f['presentation'],_0x40876f['animationEnabled']));})),this[_0x22a022(0x2fd)](this[_0x22a022(0x34f)]['remove$']['subscribe'](_0x38c686=>{_0x38c686['forEach'](_0x6c28f=>{const _0xfe5fce=_0xd82a;this[_0xfe5fce(0x2b6)][_0xfe5fce(0x25f)]({'unitId':_0x6c28f[_0xfe5fce(0x2eb)],'subUnitId':_0x6c28f['subUnitId'],'shapeId':_0x6c28f[_0xfe5fce(0x1e2)]}),this[_0xfe5fce(0x2e6)][_0xfe5fce(0x226)](this['_formulaKey'](_0x6c28f['unitId'],_0x6c28f[_0xfe5fce(0x1c3)],_0x6c28f[_0xfe5fce(0x1e2)]));});}));}[_0x2d0df6(0x32d)](_0x31dcc4,_0x195eee,_0x4b37fe){const _0x2c533e=_0x2d0df6;let {transform:_0x190c16,drawingType:_0x171cf0,srcRect:_0x49209b,prstGeom:_0x3743f8,groupId:_0x1ec1c0,unitId:_0x5efe88,subUnitId:_0x2d9572,drawingId:_0x3ba186,isMultiTransform:_0x1f76e3,transforms:_0x3fa83a,hidden:_0x43870a,selectable:_0x2e92ff}=_0x31dcc4;if(_0x171cf0!==_0x21920f[_0x2c533e(0x219)]||!this[_0x2c533e(0x34f)][_0x2c533e(0x163)]()||_0x190c16==null)return;let _0x311257=this[_0x2c533e(0x34f)][_0x2c533e(0x198)](),_0x3b87b6=_0x1f76e3&&_0x3fa83a?_0x3fa83a:[_0x190c16],_0x24cbac=[];for(let _0x3f3c89 of _0x3b87b6){let {left:_0x5350c1,top:_0x1893dd,width:_0x3dd4d7,height:_0x19b313,angle:_0x313a8c,flipX:_0x2a3f83,flipY:_0x44f55c,skewX:_0x577bd0,skewY:_0x370a18}=_0x3f3c89,_0x19f887=_0x3b87b6[_0x2c533e(0x2cb)](_0x3f3c89),_0x4eb717=_0x41d737({'unitId':_0x5efe88,'subUnitId':_0x2d9572,'drawingId':_0x3ba186},_0x1f76e3?_0x19f887:void 0x0),_0x411e58=_0x195eee['getObjectIncludeInGroup'](_0x4eb717);if(_0x411e58!=null){let _0x549d5c={'unitId':_0x5efe88,'subUnitId':_0x2d9572,'shapeId':_0x3ba186};_0x411e58 instanceof Er&&this[_0x2c533e(0x3a8)](_0x411e58,_0x549d5c),_0x411e58[_0x2c533e(0x1f2)]({'left':_0x5350c1,'top':_0x1893dd,'width':_0x3dd4d7,'height':_0x19b313,'angle':_0x313a8c,'flipX':_0x2a3f83,'flipY':_0x44f55c,'skewX':_0x577bd0,'skewY':_0x370a18});continue;}let _0x42f6a7=this[_0x2c533e(0x34f)]['getDrawingOrder'](_0x5efe88,_0x2d9572),_0x3c7ad2=_0x42f6a7[_0x2c533e(0x2cb)](_0x3ba186);if(_0x195eee[_0x2c533e(0x2f1)](_0x4eb717)||!this['_drawingManagerService']['getDrawingVisible']())continue;let _0x221ee9=this['_sheetsShapeService'][_0x2c533e(0x26f)](_0x5efe88,_0x2d9572,_0x3ba186);if(!_0x221ee9)continue;let _0x43cff3=_0x2f1e1e(_0x221ee9['getShapeType']())?{..._0x5a4361,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x5a4361,_0x13cc71=_0x221ee9['getShapeData']()[_0x2c533e(0x3ef)],_0x3f4726={'unitId':_0x5efe88,'subUnitId':_0x2d9572,'shapeId':_0x3ba186};_0x13cc71&&this['_shapeFormulaService'][_0x2c533e(0x3c2)](_0x3f4726,_0x13cc71);let _0x2059c8=new Er(_0x4eb717,{..._0x3f3c89,'zIndex':_0x3c7ad2===-0x1?_0x42f6a7[_0x2c533e(0x3a5)]-0x1:_0x3c7ad2,'shapeModel':_0x221ee9,'localeService':this[_0x2c533e(0x166)],'shapeId':_0x3ba186,'unitId':_0x5efe88,'subUnitId':_0x2d9572,'visible':_0x43870a!==!0x0,'evented':_0x2e92ff!==!0x1,'formulaPresentation':_0x13cc71?this[_0x2c533e(0x2b6)][_0x2c533e(0x218)](_0x3f4726):void 0x0,'animateFormulaPresentation':(_0x13cc71==null?void 0x0:_0x13cc71['animationEnabled'])!==!0x1,'transformerConfig':_0x43cff3});if(_0x13cc71){let _0x324fd8=this['_formulaKey'](_0x5efe88,_0x2d9572,_0x3ba186),_0x1639f2=this[_0x2c533e(0x2e6)]['get'](_0x324fd8)??new Set();_0x1639f2[_0x2c533e(0x1e6)](_0x2059c8),this[_0x2c533e(0x2e6)][_0x2c533e(0x339)](_0x324fd8,_0x1639f2);}_0x195eee[_0x2c533e(0x1d7)](_0x2059c8,_0x4ea2ef),_0x311257&&_0x195eee[_0x2c533e(0x20e)](_0x2059c8),_0x1ec1c0&&_0x387dc4({'drawingId':_0x1ec1c0,'unitId':_0x5efe88,'subUnitId':_0x2d9572},_0x2059c8,_0x195eee,this[_0x2c533e(0x34f)]),_0x3743f8!=null&&_0x2059c8[_0x2c533e(0x21c)](_0x3743f8),_0x49209b!=null&&_0x2059c8['setSrcRect'](_0x49209b);let _0x422878=this[_0x2c533e(0x3dd)](_0x2059c8,_0x221ee9['getShapeData']());if(_0x422878){var _0x1a5905;_0x4b37fe==null||(_0x1a5905=_0x4b37fe['resourceCollector'])==null||_0x1a5905[_0x2c533e(0x1e6)](_0x422878);}_0x24cbac['push'](_0x2059c8);}return _0x24cbac;}['_formulaKey'](_0xfb533c,_0x28a43b,_0x2797b7){return _0xfb533c+'\x00'+_0x28a43b+'\x00'+_0x2797b7;}[_0x2d0df6(0x3a8)](_0x280707,_0x1953cd){const _0x351338=_0x2d0df6;let _0x478ae2=this[_0x351338(0x1b8)]['getShapeModel'](_0x1953cd[_0x351338(0x2eb)],_0x1953cd[_0x351338(0x1c3)],_0x1953cd[_0x351338(0x192)]),_0x44a7fc=_0x478ae2==null?void 0x0:_0x478ae2[_0x351338(0x353)]()[_0x351338(0x3ef)],_0x49569b=this['_formulaKey'](_0x1953cd[_0x351338(0x2eb)],_0x1953cd[_0x351338(0x1c3)],_0x1953cd[_0x351338(0x192)]);if(_0x44a7fc){this['_shapeFormulaService'][_0x351338(0x3c2)](_0x1953cd,_0x44a7fc);let _0x5c7fe9=this[_0x351338(0x2e6)][_0x351338(0x16b)](_0x49569b)??new Set();_0x5c7fe9['add'](_0x280707),this[_0x351338(0x2e6)][_0x351338(0x339)](_0x49569b,_0x5c7fe9);}else{var _0x3c12e1;this[_0x351338(0x2b6)][_0x351338(0x25f)](_0x1953cd),(_0x3c12e1=this[_0x351338(0x2e6)]['get'](_0x49569b))==null||_0x3c12e1[_0x351338(0x226)](_0x280707);}_0x280707[_0x351338(0x40d)](_0x44a7fc?this[_0x351338(0x2b6)][_0x351338(0x218)](_0x1953cd):void 0x0,(_0x44a7fc==null?void 0x0:_0x44a7fc[_0x351338(0x406)])!==!0x1);}[_0x2d0df6(0x336)](_0x5300dd){const _0x300b2b=_0x2d0df6;let _0x467c8c=_0x5300dd['shapeModel'][_0x300b2b(0x353)](),_0x4a7368=_0x467c8c[_0x300b2b(0x319)];if(!_0x4a7368||_0x4a7368[_0x300b2b(0x380)]!==_0x5b541a[_0x300b2b(0x167)]||!_0x4a7368[_0x300b2b(0x3ce)]){_0x5300dd[_0x300b2b(0x279)](void 0x0);return;}this['_loadShapePictureFill'](_0x5300dd,_0x467c8c);}[_0x2d0df6(0x3dd)](_0x4bcbfa,_0x49589e){const _0xf57aaa=_0x2d0df6;let _0x113c75=_0x49589e[_0xf57aaa(0x319)];if(!_0x113c75||_0x113c75['fillType']!==_0x5b541a[_0xf57aaa(0x167)]||!_0x113c75[_0xf57aaa(0x3ce)])return;let _0xaf9ceb=_0x113c75[_0xf57aaa(0x3ce)],_0x202e95=_0x113c75[_0xf57aaa(0x19d)]??_0x101b36['URL'],_0x2cd23a=this[_0xf57aaa(0x268)][_0xf57aaa(0x1c4)](_0xaf9ceb,_0x202e95);if(_0x2cd23a){_0x4bcbfa[_0xf57aaa(0x279)](_0x2cd23a);return;}return this[_0xf57aaa(0x1fb)](_0x4bcbfa,_0xaf9ceb,_0x202e95);}async[_0x2d0df6(0x1fb)](_0x54b6bf,_0x338e70,_0x2dc75c){const _0x1881ed=_0x2d0df6;let _0xee85dc;try{if(_0x2dc75c===_0x101b36[_0x1881ed(0x177)])_0xee85dc=await this[_0x1881ed(0x268)][_0x1881ed(0x249)](_0x338e70);else{if(_0x2dc75c===_0x101b36[_0x1881ed(0x41c)])try{_0xee85dc=await this[_0x1881ed(0x23c)][_0x1881ed(0x249)](_0x338e70);}catch{_0xee85dc=_0x338e70;}else _0xee85dc=_0x338e70;}}catch(_0x2919ee){console['error'](_0x1881ed(0x241),_0x2919ee);return;}await new Promise(_0x155d9c=>{const _0x541eff=_0x1881ed;let _0x1e6ebf=new window[(_0x541eff(0x3e2))]();_0x1e6ebf['onload']=()=>{const _0x1a9d61=_0x541eff;this['_imageIoService'][_0x1a9d61(0x342)](_0x338e70,_0x2dc75c,_0x1e6ebf),_0x54b6bf[_0x1a9d61(0x279)](_0x1e6ebf),_0x155d9c();},_0x1e6ebf[_0x541eff(0x28e)]=()=>{const _0x5be938=_0x541eff;console[_0x5be938(0x1ca)](_0x5be938(0x407),_0x338e70),_0x155d9c();},_0x1e6ebf[_0x541eff(0x1c8)]=_0xee85dc;});}};X=Y([J(0x0,_0x569480),J(0x1,_0x337030(_0x1697a4)),J(0x2,_0x337030(_0x37c40f)),J(0x3,_0x421464),J(0x4,_0x28e86c),J(0x5,_0x337030(_0x35e3f0))],X);let Z=class extends _0x12ab23{constructor(_0x35ce5d,_0x224d50,_0x139f81,_0x597085,_0x563cba,_0x4b5e0e){const _0x150edd=_0x2d0df6;super(),this[_0x150edd(0x34f)]=_0x35ce5d,this[_0x150edd(0x1b8)]=_0x224d50,this[_0x150edd(0x3ea)]=_0x139f81,this[_0x150edd(0x348)]=_0x597085,this['_univerInstanceService']=_0x563cba,this[_0x150edd(0x398)]=_0x4b5e0e,q(this,_0x150edd(0x366),null),q(this,_0x150edd(0x35e),null),q(this,'_subUnitId',null),q(this,_0x150edd(0x17e),void 0x0),q(this,_0x150edd(0x2fc),[]),q(this,_0x150edd(0x381),0x0),q(this,_0x150edd(0x185),0x0),q(this,_0x150edd(0x3e5),0x0),q(this,_0x150edd(0x30a),0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x150edd(0x31b),void 0x0),q(this,_0x150edd(0x323),void 0x0),q(this,_0x150edd(0x2ef),void 0x0),q(this,_0x150edd(0x3bf),void 0x0),q(this,_0x150edd(0x361),!0x1),this[_0x150edd(0x1be)](),this['_registerDrawingMoveHandler']();}['_getShapeAdjustPointListById'](_0x592a2f,_0x558453,_0x53f424){const _0x2cb731=_0x2d0df6;let _0x189296=this[_0x2cb731(0x1b8)][_0x2cb731(0x26f)](_0x592a2f,_0x558453,_0x53f424);if(_0x189296)return _0x189296[_0x2cb731(0x29d)]();}[_0x2d0df6(0x383)](){const _0x589efb=_0x2d0df6;this[_0x589efb(0x3da)]();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x2d0df6(0x237)](_0x5aeb0e){this['_isShouldShowDrawingShapeAdjust']=_0x5aeb0e;}[_0x2d0df6(0x423)](_0x431074,_0x299e6a,_0x2bd288,_0x49c5a2){const _0xff24e3=_0x2d0df6;let _0x33d227=this[_0xff24e3(0x1b8)][_0xff24e3(0x26f)](_0x431074,_0x299e6a,_0x2bd288);if(_0x33d227)return _0x33d227[_0xff24e3(0x3af)](_0x49c5a2);}[_0x2d0df6(0x3d4)](_0x3aeb13=!0x1){const _0x35a498=_0x2d0df6;if(this[_0x35a498(0x35e)]===null||this[_0x35a498(0x3d0)]===null||this['_activeShapeId']===null)return;let _0x129c91=this[_0x35a498(0x3ea)]['getRenderUnitById'](this['_unitId']);if(!_0x129c91||!_0x129c91[_0x35a498(0x2ce)](_0x2e5cfd)['getCurrentSkeleton']())return;let {scene:_0x9405b7}=_0x129c91,_0x1695a7={'unitId':this[_0x35a498(0x35e)],'subUnitId':this[_0x35a498(0x3d0)],'drawingId':this[_0x35a498(0x366)]},_0x1bb142=this['_drawingManagerService'][_0x35a498(0x190)](_0x1695a7),{transform:_0x5c670e}=_0x1bb142;if(!_0x5c670e||_0x1bb142['drawingType']!==_0x21920f[_0x35a498(0x219)])return;let {left:_0x27de4f,top:_0x5bdd1a,width:_0x8ef0cc,height:_0x404d5e,flipX:_0x128643,flipY:_0x12e559,angle:_0x44ae30=0x0}=_0x5c670e;if(_0x27de4f===void 0x0||_0x5bdd1a===void 0x0)return;if(_0x3aeb13){let _0x468116=this[_0x35a498(0x1b8)][_0x35a498(0x26f)](this[_0x35a498(0x35e)],this['_subUnitId'],this[_0x35a498(0x366)]);_0x468116==null||_0x468116['updateContext']({'width':_0x8ef0cc??0x0,'height':_0x404d5e??0x0}),this['_activeShapeAdjustPointList']=_0x468116==null?void 0x0:_0x468116[_0x35a498(0x29d)]();}let _0x4314e8=this[_0x35a498(0x17e)];for(let _0x3a7a97=0x0;_0x3a7a97<_0x4314e8[_0x35a498(0x3a5)];_0x3a7a97++){let _0x5cb765=_0x4314e8[_0x3a7a97],_0x1993a8=_0x5cb765['x'],_0x18c4a8=_0x5cb765['y'];if(_0x128643&&(_0x1993a8=(_0x8ef0cc||0x0)-_0x1993a8),_0x12e559&&(_0x18c4a8=(_0x404d5e||0x0)-_0x18c4a8),_0x44ae30!==0x0){let _0x4929ee=(_0x8ef0cc||0x0)/0x2,_0x52a3a3=(_0x404d5e||0x0)/0x2,_0x29dac7=_0x44ae30*Math['PI']/0xb4,_0x473253=Math['cos'](_0x29dac7),_0x2b4a54=Math[_0x35a498(0x257)](_0x29dac7),_0x5b771e=_0x1993a8-_0x4929ee,_0x9d3707=_0x18c4a8-_0x52a3a3;_0x1993a8=_0x4929ee+(_0x5b771e*_0x473253-_0x9d3707*_0x2b4a54),_0x18c4a8=_0x52a3a3+(_0x5b771e*_0x2b4a54+_0x9d3707*_0x473253);}let _0x4f6800={'x':_0x1993a8,'y':_0x18c4a8,'adjName':_0x5cb765[_0x35a498(0x360)]};this[_0x35a498(0x3f1)](_0x9405b7,_0x4f6800,_0x4f6800[_0x35a498(0x360)],_0x27de4f,_0x5bdd1a,this['_unitId'],this[_0x35a498(0x3d0)]);}}[_0x2d0df6(0x2d5)](_0x1e744b=!0x1){const _0x25f4d9=_0x2d0df6;_0x1e744b&&(this[_0x25f4d9(0x3da)](),this[_0x25f4d9(0x3d4)](_0x1e744b));}[_0x2d0df6(0x3f1)](_0x2aeda1,_0x37bf4,_0x210720,_0xe65470,_0x20b8cf,_0x5a08df,_0x3219af){const _0x584724=_0x2d0df6;if(!this[_0x584724(0x366)])return;let _0xec8bba=_0x2aeda1[_0x584724(0x2f1)]('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x210720);if(_0xec8bba){_0xec8bba[_0x584724(0x1f2)]({'left':_0x37bf4['x']+_0xe65470-_0x10a8b7[_0x584724(0x31d)],'top':_0x37bf4['y']+_0x20b8cf-_0x10a8b7[_0x584724(0x31d)]});return;}let _0x428e70={'left':_0x37bf4['x']+_0xe65470-_0x10a8b7[_0x584724(0x31d)],'top':_0x37bf4['y']+_0x20b8cf-_0x10a8b7[_0x584724(0x31d)],'adjName':_0x210720,'shapeId':this[_0x584724(0x366)],'unitId':_0x5a08df,'subUnitId':_0x3219af,'width':_0x10a8b7[_0x584724(0x31d)]+0x8,'height':_0x10a8b7[_0x584724(0x31d)]+0x8,'zIndex':_0x4ea2ef+0x1,'evented':!0x0},_0xabe0d4=new Dr(_0x584724(0x18c)+this[_0x584724(0x366)]+'-'+_0x210720,_0x428e70);this[_0x584724(0x2fc)]['push'](_0xabe0d4),this['_attachAdjustEvent'](_0xabe0d4,_0x2aeda1,_0x210720),_0x2aeda1[_0x584724(0x1d7)](_0xabe0d4,_0x4ea2ef+0x1);}[_0x2d0df6(0x3da)](){const _0x1e275e=_0x2d0df6;this[_0x1e275e(0x2fc)][_0x1e275e(0x3a5)]!==0x0&&(this[_0x1e275e(0x2fc)][_0x1e275e(0x231)](_0x2a197e=>{_0x2a197e['dispose']();}),this[_0x1e275e(0x2fc)]=[]);}[_0x2d0df6(0x341)](){this['_createShapeAdjustControls']();}[_0x2d0df6(0x3cc)](_0x31d287,_0x3885aa){const _0x56b05b=_0x2d0df6;var _0x16f42e;let _0x1a2b8f={'x':0x0,'y':0x0};if(!_0x31d287||!_0x3885aa)return _0x1a2b8f;let _0xf38283=this[_0x56b05b(0x3ea)][_0x56b05b(0x2e5)](_0x31d287);if(!_0xf38283||!_0xf38283[_0x56b05b(0x2ce)](_0x2e5cfd)[_0x56b05b(0x355)](_0x3885aa))return _0x1a2b8f;let _0x7ce349=_0xf38283[_0x56b05b(0x2ce)](_0x201189),_0x4987f5=_0x7ce349==null?void 0x0:_0x7ce349[_0x56b05b(0x35b)]();if(!_0x4987f5)return _0x1a2b8f;let _0x2a3678=(_0x16f42e=this[_0x56b05b(0x385)][_0x56b05b(0x1b1)](_0x31d287))==null?void 0x0:_0x16f42e[_0x56b05b(0x25d)](_0x3885aa);if(!_0x2a3678)return _0x1a2b8f;let _0x3633b3=_0x10e5a1(_0x4987f5[_0x56b05b(0x1cf)],_0x4987f5[_0x56b05b(0x3a3)],_0xf38283[_0x56b05b(0x34a)],_0x2a3678);return _0x3633b3?{'x':_0x3633b3[_0x56b05b(0x2d2)],'y':_0x3633b3[_0x56b05b(0x3e4)]}:_0x1a2b8f;}[_0x2d0df6(0x208)](_0x44dc14,_0x216b0a){const _0x26a594=_0x2d0df6;var _0x1798e2;let _0x454bba=(_0x1798e2=this[_0x26a594(0x385)][_0x26a594(0x1b1)](_0x44dc14))==null?void 0x0:_0x1798e2['getSheetBySheetId'](_0x216b0a);return(_0x454bba==null?void 0x0:_0x454bba[_0x26a594(0x278)]())??0x1;}[_0x2d0df6(0x3c3)](_0x444c59,_0x5c9bc2,_0x52f346){const _0x56e173=_0x2d0df6;this['disposeWithMe'](_0x3d1384(_0x444c59[_0x56e173(0x312)][_0x56e173(0x1de)]((_0x55169f,_0x1d0ab7)=>{const _0x4dfedd=_0x56e173;var _0x3be956,_0x1f1a66,_0x289935,_0x329364;let _0x1dac0d=_0x444c59[_0x4dfedd(0x404)]();this[_0x4dfedd(0x31b)]=this['_getShapeAdjustInfosById'](_0x1dac0d[_0x4dfedd(0x2eb)],_0x1dac0d[_0x4dfedd(0x1c3)],_0x1dac0d[_0x4dfedd(0x1e2)],_0x52f346),this[_0x4dfedd(0x323)]=this[_0x4dfedd(0x1b8)]['getShapeModel'](_0x1dac0d[_0x4dfedd(0x2eb)],_0x1dac0d[_0x4dfedd(0x1c3)],_0x1dac0d[_0x4dfedd(0x1e2)]);let _0x27693a=this[_0x4dfedd(0x34f)][_0x4dfedd(0x190)]({'unitId':this[_0x4dfedd(0x35e)],'subUnitId':this[_0x4dfedd(0x3d0)],'drawingId':this[_0x4dfedd(0x366)]}),{transform:_0x442a19}=_0x27693a;if(_0x442a19){let {left:_0x2d0619,top:_0x592162,width:_0x132206,height:_0x32b11e}=_0x442a19;this[_0x4dfedd(0x381)]=_0x2d0619||0x0,this['_baseShapeTop']=_0x592162||0x0,this[_0x4dfedd(0x3e5)]=_0x132206||0x0,this[_0x4dfedd(0x30a)]=_0x32b11e||0x0;}let _0x420c0f=!!((_0x3be956=_0x27693a[_0x4dfedd(0x284)])!=null&&_0x3be956[_0x4dfedd(0x36a)]),_0x241930=!!((_0x1f1a66=_0x27693a[_0x4dfedd(0x284)])!=null&&_0x1f1a66['flipY']),_0x1f13fc=((_0x289935=_0x27693a[_0x4dfedd(0x284)])==null?void 0x0:_0x289935[_0x4dfedd(0x349)])||0x0;this[_0x4dfedd(0x215)]=!0x0,_0x5c9bc2[_0x4dfedd(0x326)]();let _0x34066b={...((_0x329364=this[_0x4dfedd(0x31b)])==null?void 0x0:_0x329364[_0x4dfedd(0x2c4)])??{}};this['_adjHandlerPointerMove']=_0x5c9bc2[_0x4dfedd(0x39d)][_0x4dfedd(0x1de)]((_0x5a8ac2,_0x221275)=>{const _0x2a0f0e=_0x4dfedd;if(!this[_0x2a0f0e(0x215)])return;let {offsetX:_0x202f73,offsetY:_0x55c0ae}=_0x5a8ac2,_0x1fae66=this['_activeAdjustInfo'];if(this[_0x2a0f0e(0x323)]&&_0x1fae66){_0x5c9bc2['disableObjectsEvent'](),_0x5c9bc2[_0x2a0f0e(0x3db)](_0x44b094[_0x2a0f0e(0x391)]);let _0x286ce3={'left':0x0,'top':0x0,'width':this[_0x2a0f0e(0x3e5)],'height':this[_0x2a0f0e(0x30a)]},_0x5b2289=this['_getScrollInfo'](this[_0x2a0f0e(0x35e)],this[_0x2a0f0e(0x3d0)]),_0x40a37f=this[_0x2a0f0e(0x208)](this['_unitId'],this[_0x2a0f0e(0x3d0)]),_0x4c76f2=_0x202f73/_0x40a37f+_0x5b2289['x']-this[_0x2a0f0e(0x381)],_0x46f761=_0x55c0ae/_0x40a37f+_0x5b2289['y']-this[_0x2a0f0e(0x185)];if(_0x1f13fc!==0x0){let _0x2eab53=this[_0x2a0f0e(0x3e5)]/0x2,_0x4c706a=this[_0x2a0f0e(0x30a)]/0x2,_0x210d74=_0x1f13fc*Math['PI']/0xb4,_0x1123dc=Math[_0x2a0f0e(0x417)](_0x210d74),_0x5e72bc=Math[_0x2a0f0e(0x257)](_0x210d74),_0x2f9437=_0x4c76f2-_0x2eab53,_0x4b0916=_0x46f761-_0x4c706a;_0x4c76f2=_0x2eab53+(_0x2f9437*_0x1123dc+_0x4b0916*_0x5e72bc),_0x46f761=_0x4c706a+(-_0x2f9437*_0x5e72bc+_0x4b0916*_0x1123dc);}_0x420c0f&&(_0x4c76f2=this[_0x2a0f0e(0x3e5)]-_0x4c76f2),_0x241930&&(_0x46f761=this[_0x2a0f0e(0x30a)]-_0x46f761);let _0x94e206={'x':_0x4c76f2,'y':_0x46f761},_0x8d4b7f=this[_0x2a0f0e(0x323)][_0x2a0f0e(0x233)](_0x286ce3,_0x94e206,_0x1fae66,_0x420c0f,_0x241930);if(Object[_0x2a0f0e(0x162)](_0x8d4b7f)['length']===0x0)return;for(let [_0x300649,_0x1e41d1]of Object['entries'](_0x8d4b7f))this[_0x2a0f0e(0x323)][_0x2a0f0e(0x253)](_0x300649,_0x1e41d1);this[_0x2a0f0e(0x323)][_0x2a0f0e(0x267)]({'width':this[_0x2a0f0e(0x3e5)],'height':this[_0x2a0f0e(0x30a)]});let _0x25206f=this[_0x2a0f0e(0x34f)][_0x2a0f0e(0x190)]({'unitId':_0x1dac0d[_0x2a0f0e(0x2eb)],'subUnitId':_0x1dac0d[_0x2a0f0e(0x1c3)],'drawingId':_0x1dac0d[_0x2a0f0e(0x1e2)]});_0x25206f&&(this[_0x2a0f0e(0x348)]['renderDrawingShape'](_0x25206f,_0x5c9bc2),this[_0x2a0f0e(0x17e)]=this[_0x2a0f0e(0x248)](_0x1dac0d[_0x2a0f0e(0x2eb)],_0x1dac0d[_0x2a0f0e(0x1c3)],_0x1dac0d[_0x2a0f0e(0x1e2)]),this[_0x2a0f0e(0x341)]());}_0x221275[_0x2a0f0e(0x1eb)]();}),this[_0x4dfedd(0x3bf)]=_0x5c9bc2[_0x4dfedd(0x234)][_0x4dfedd(0x1de)]((_0x4f9722,_0x2d306c)=>{const _0x375e68=_0x4dfedd;this[_0x375e68(0x2ef)][_0x375e68(0x169)](),this[_0x375e68(0x3bf)]['unsubscribe'](),_0x5c9bc2[_0x375e68(0x39e)]();let _0x3c6b8b=this['_activeAdjustInfo'];if(_0x3c6b8b){let _0x30180b=_0x1dac0d[_0x375e68(0x2eb)],_0x4a44c0=_0x1dac0d[_0x375e68(0x1c3)],_0x1be913=_0x1dac0d[_0x375e68(0x1e2)],_0x3c4a33={};for(let _0x55a59c of Object[_0x375e68(0x162)](_0x3c6b8b[_0x375e68(0x2c4)])){var _0xa2e5f0;let _0x2e4f95=(_0xa2e5f0=this[_0x375e68(0x323)])==null?void 0x0:_0xa2e5f0[_0x375e68(0x23e)](_0x55a59c);_0x2e4f95!==void 0x0&&(_0x3c4a33[_0x55a59c]=_0x2e4f95);}Object['keys'](_0x3c4a33)[_0x375e68(0x3a5)]>0x0&&br(this[_0x375e68(0x398)],_0x30180b,_0x4a44c0,_0x1be913,{'oldShapeData':{'adjustValues':_0x34066b}},{'adjustValues':_0x3c4a33});}this[_0x375e68(0x31b)]=void 0x0,this[_0x375e68(0x323)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x2d306c[_0x375e68(0x1eb)](),_0x5c9bc2[_0x375e68(0x3ae)]();}),_0x1d0ab7[_0x4dfedd(0x1eb)]();})));}[_0x2d0df6(0x37a)](){const _0x600e1d=_0x2d0df6;let _0x478d49=this[_0x600e1d(0x385)][_0x600e1d(0x2bb)](_0x2711d0['UNIVER_SHEET']);this[_0x600e1d(0x2fd)](_0x478d49['pipe'](_0x198be4(_0x5c2332=>_0x5c2332?_0x5c2332[_0x600e1d(0x3a2)]['pipe'](_0x198be4(_0x2e329a=>{const _0x17304f=_0x600e1d;if(!_0x2e329a)return _0x50c59a;let _0x2bed52=_0x5c2332[_0x17304f(0x1c7)](),_0x4a4830=this[_0x17304f(0x3ea)][_0x17304f(0x2e5)](_0x2bed52),_0x50546f=_0x4a4830==null?void 0x0:_0x4a4830['scene'];return _0x50546f?_0xc07474(_0x50546f):_0x50c59a;})):_0x50c59a))[_0x600e1d(0x365)](_0x3e050a=>{const _0x2c0090=_0x600e1d;let _0x277c29=_0x3e050a[_0x2c0090(0x378)]();this[_0x2c0090(0x2fd)](_0x3e050a[_0x2c0090(0x39d)][_0x2c0090(0x1de)](()=>{const _0x5f5a7e=_0x2c0090;this[_0x5f5a7e(0x361)];})),this[_0x2c0090(0x2fd)](_0x277c29[_0x2c0090(0x199)]['subscribe'](_0x50ee93=>{const _0x43756b=_0x2c0090;let {objects:_0xd2b554}=_0x50ee93;this[_0x43756b(0x3d4)](),_0xd2b554!==null&&_0xd2b554[_0x43756b(0x3e1)]===0x1&&_0xd2b554[_0x43756b(0x39c)]()[_0x43756b(0x224)]()[_0x43756b(0x3c7)]instanceof Er&&this[_0x43756b(0x237)](!0x0);})),this[_0x2c0090(0x2fd)](_0x277c29[_0x2c0090(0x370)]['subscribe'](()=>{const _0x1564e5=_0x2c0090;this[_0x1564e5(0x361)]&&this['_clearShapeAdjustControls']();})),this[_0x2c0090(0x2fd)](_0x3e050a['onPointerUp$'][_0x2c0090(0x1de)](()=>{const _0x4648b3=_0x2c0090;this[_0x4648b3(0x361)]&&(this['setShouldShowAdjust'](!0x1),this[_0x4648b3(0x3d4)]());})),this[_0x2c0090(0x2fd)](_0x277c29[_0x2c0090(0x1d2)][_0x2c0090(0x365)](()=>{const _0x5cdfc5=_0x2c0090;this[_0x5cdfc5(0x35e)]&&this[_0x5cdfc5(0x3d0)]&&this['_activeShapeId']&&this[_0x5cdfc5(0x34f)][_0x5cdfc5(0x190)]({'unitId':this[_0x5cdfc5(0x35e)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5cdfc5(0x366)]})&&(this[_0x5cdfc5(0x17e)]=this['_getShapeAdjustPointListById'](this[_0x5cdfc5(0x35e)],this[_0x5cdfc5(0x3d0)],this[_0x5cdfc5(0x366)]),this[_0x5cdfc5(0x341)]());}));}));}[_0x2d0df6(0x1be)](){const _0x5a7bfd=_0x2d0df6;this[_0x5a7bfd(0x2fd)](this[_0x5a7bfd(0x398)][_0x5a7bfd(0x428)](_0x1ae9c4=>{const _0x283474=_0x5a7bfd;if(_0x1ae9c4['id']!==_0x1b95a1['id'])return;let {unitId:_0x4da2dd,subUnitId:_0x37c462,shapeId:_0x2180fc}=_0x1ae9c4[_0x283474(0x24a)];_0x4da2dd===this[_0x283474(0x35e)]&&_0x37c462===this[_0x283474(0x3d0)]&&_0x2180fc===this['_activeShapeId']&&this[_0x283474(0x245)]();})),this[_0x5a7bfd(0x2fd)](this[_0x5a7bfd(0x34f)]['focus$']['subscribe'](_0x9422d6=>{const _0x53acc0=_0x5a7bfd;if(_0x9422d6[_0x53acc0(0x3a5)]===0x1){let _0x465868=_0x9422d6[0x0];if(_0x465868[_0x53acc0(0x309)]===_0x21920f[_0x53acc0(0x219)]&&this['_univerInstanceService'][_0x53acc0(0x277)](_0x465868[_0x53acc0(0x2eb)])===_0x2711d0['UNIVER_SHEET']){this[_0x53acc0(0x366)]=_0x465868['drawingId'];let {unitId:_0x4088db,subUnitId:_0x3969a9}=_0x465868;this[_0x53acc0(0x17e)]=this[_0x53acc0(0x248)](_0x4088db,_0x3969a9,this['_activeShapeId']),this[_0x53acc0(0x35e)]=_0x4088db,this[_0x53acc0(0x3d0)]=_0x3969a9,this['_clearShapeAdjustControls'](),this[_0x53acc0(0x3d4)]();return;}}this['_activeShapeId']=null,this[_0x53acc0(0x17e)]=void 0x0,this[_0x53acc0(0x35e)]=null,this['_subUnitId']=null,this[_0x53acc0(0x3da)]();})),this[_0x5a7bfd(0x2fd)](this[_0x5a7bfd(0x34f)]['update$']['subscribe'](_0x414bbe=>{const _0x4a1dd2=_0x5a7bfd;if(_0x414bbe[_0x4a1dd2(0x3a5)]===0x1){var _0x49924d;let _0x7609ca=_0x414bbe[0x0];((_0x49924d=this[_0x4a1dd2(0x34f)][_0x4a1dd2(0x190)](_0x7609ca))==null?void 0x0:_0x49924d[_0x4a1dd2(0x309)])===_0x21920f['DRAWING_SHAPE']&&this[_0x4a1dd2(0x2d5)](!0x0);}})),this[_0x5a7bfd(0x2fd)](this[_0x5a7bfd(0x34f)][_0x5a7bfd(0x209)][_0x5a7bfd(0x365)](_0x2a899e=>{const _0x4b9713=_0x5a7bfd;for(let _0x4a5163 of _0x2a899e)this[_0x4b9713(0x366)]===_0x4a5163[_0x4b9713(0x1e2)]&&(this['_activeShapeId']=null,this[_0x4b9713(0x17e)]=void 0x0,this[_0x4b9713(0x35e)]=null,this[_0x4b9713(0x3d0)]=null,this[_0x4b9713(0x3da)]());}));}};Z=Y([J(0x0,_0x569480),J(0x1,_0x337030(_0x1697a4)),J(0x2,_0x337030(_0xac3281)),J(0x3,_0x337030(X)),J(0x4,_0x1469ba),J(0x5,_0x4a7048)],Z);const Or={'id':'drawing.operation.set-drawing-active','type':_0x20ba44[_0x2d0df6(0x2b5)],'handler':(_0xc978c5,_0x564197)=>{const _0x32bde0=_0x2d0df6;let _0x4d73ca=_0xc978c5[_0x32bde0(0x16b)](_0x569480),_0x1dbd57=_0xc978c5[_0x32bde0(0x16b)](_0xac3281),_0x556b84=_0xc978c5['get'](Z);if(_0x564197==null)return!0x0;if(_0x564197['length']>0x0){var _0x354f4d;let _0x221044=(_0x354f4d=_0x1dbd57[_0x32bde0(0x2e5)](_0x564197[0x0][_0x32bde0(0x2eb)]))==null?void 0x0:_0x354f4d[_0x32bde0(0x34a)];if(_0x221044){let {unitId:_0x197639,subUnitId:_0x191b0f,drawingId:_0x36d99}=_0x564197[0x0],_0x4073b2=_0x41d737({'unitId':_0x197639,'subUnitId':_0x191b0f,'drawingId':_0x36d99},void 0x0),_0x5e7464=_0x221044[_0x32bde0(0x2f1)](_0x4073b2);if(_0x5e7464){var _0x2a16d5;(_0x2a16d5=_0x1dbd57[_0x32bde0(0x2e5)](_0x564197[0x0]['unitId']))==null||(_0x2a16d5=_0x2a16d5[_0x32bde0(0x34a)][_0x32bde0(0x217)]())==null||_0x2a16d5['activeAnObject'](_0x5e7464);}}_0x4d73ca[_0x32bde0(0x324)](_0x564197),_0x556b84[_0x32bde0(0x237)](!0x1);}return!0x0;}},kr={'type':_0x20ba44[_0x2d0df6(0x24c)],'id':_0x2d0df6(0x196),'handler':async(_0x4946d6,_0x1d26e6)=>{const _0x3ece4a=_0x2d0df6;let _0x138cab=_0x5342d5(_0x4946d6['get'](_0x1469ba));if(!_0x138cab)return!0x1;let _0x15f129=_0x4946d6[_0x3ece4a(0x16b)](_0x53f643)['getCurrentLastSelection']();if(!_0x15f129)return!0x1;let _0x54ecd3=_0x4946d6[_0x3ece4a(0x16b)](_0x4a7048),{unitId:_0x1780ab,subUnitId:_0xe28b79}=_0x138cab,{value:_0x1af42e,enhanceParams:_0x46dfa3}=_0x1d26e6,{range:_0x57b49a}=_0x15f129,_0x5ad6cb={'unitId':_0x1780ab,'subUnitId':_0xe28b79,'shapeType':_0x1af42e,'range':_0x57b49a,'shapeId':_0x33f92c()};if(_0x46dfa3){let _0x27bbae=_0x2f1e1e(_0x1af42e),_0x21c283=_0x1af42e===_0x33d774[_0x3ece4a(0x1d9)];_0x27bbae&&(_0x46dfa3['startArrow']||_0x46dfa3['endArrow'])&&(_0x5ad6cb['shapeData']={'ln':{'startArrow':_0x46dfa3[_0x3ece4a(0x369)]?{'type':_0x5f30c2[_0x3ece4a(0x29f)],'size':_0x420069[_0x3ece4a(0x3ad)]}:void 0x0,'endArrow':_0x46dfa3[_0x3ece4a(0x1b2)]?{'type':_0x5f30c2['Arrow'],'size':_0x420069[_0x3ece4a(0x23a)]}:void 0x0}}),_0x21c283&&(_0x46dfa3['horizontal']||_0x46dfa3[_0x3ece4a(0x3a9)])&&(_0x5ad6cb[_0x3ece4a(0x393)]=_0x7ce805({'fill':{'fillType':_0x5b541a[_0x3ece4a(0x3ec)],'color':_0x3ece4a(0x307)},'isHorizontal':!!_0x46dfa3['horizontal'],'stroke':{'lineStrokeType':_0x198d9c['SolidLine'],'width':0x1,'color':_0x3ece4a(0x272)}}));}let _0x18ca7d=_0x54ecd3[_0x3ece4a(0x17b)](_0x326c1c['id'],_0x5ad6cb);return setTimeout(()=>{const _0x1bf6ea=_0x3ece4a;_0x54ecd3[_0x1bf6ea(0x1c1)](Or['id'],[{'unitId':_0x1780ab,'subUnitId':_0xe28b79,'drawingId':_0x5ad6cb[_0x1bf6ea(0x192)]}]);},0xc8),_0x18ca7d;}},Ar=_0x2d0df6(0x299),jr='sheet.shape.object-list.panel',Mr=_0x2d0df6(0x33a),Nr=_0x2d0df6(0x35c),Pr=_0xcbcf41(_0x2d0df6(0x280)),Fr=_0x2d0df6(0x1b0),Ir={'id':'sheet.operation.open-shape-object-list-panel','type':_0x20ba44[_0x2d0df6(0x24c)],'handler':(_0xb33e23,_0x2da0d9)=>{const _0x3747bb=_0x2d0df6;let _0x13e9e2=_0xb33e23[_0x3747bb(0x16b)](_0x1b5a06),_0x55ff5b=_0xb33e23[_0x3747bb(0x16b)](_0x37c40f),_0x26bbb0=_0xb33e23[_0x3747bb(0x16b)](_0x1469ba),_0x155cbc=_0xb33e23[_0x3747bb(0x16b)](_0x4a7048);return _0x5342d5(_0x26bbb0)?(_0x2da0d9==null?void 0x0:_0x2da0d9[_0x3747bb(0x3c7)])===_0x3747bb(0x2dd)?(_0x13e9e2[_0x3747bb(0x2dd)](jr),!0x0):(_0x13e9e2[_0x3747bb(0x340)]({'id':jr,'header':{'title':_0x55ff5b['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':jr},'onClose':()=>{const _0x5d281f=_0x3747bb;_0x155cbc[_0x5d281f(0x17b)](_0x4b870a['id'],[]);},'width':0x168}),!0x0):!0x1;}},Lr={'type':_0x20ba44['OPERATION'],'id':_0x2d0df6(0x3c4),'handler'(){return!0x0;}};function Rr(_0x23b684){const _0x8c13f2=_0x2d0df6;let _0x172538=_0x23b684[_0x8c13f2(0x16b)](_0x569480)[_0x8c13f2(0x1dd)](),_0x1adf53=_0x172538[_0x8c13f2(0x3a5)]===0x1?_0x172538[0x0]:null;if(!_0x1adf53||_0x1adf53['drawingType']!==_0x21920f[_0x8c13f2(0x219)])return null;let _0x2bf3fc=_0x23b684[_0x8c13f2(0x16b)](_0x1697a4),_0x4d5712=_0x2bf3fc[_0x8c13f2(0x236)](_0x1adf53['unitId'],_0x1adf53['subUnitId'],_0x1adf53['drawingId']),_0x3cc464=_0x2bf3fc[_0x8c13f2(0x322)](_0x1adf53[_0x8c13f2(0x2eb)],_0x1adf53[_0x8c13f2(0x1c3)],_0x1adf53[_0x8c13f2(0x1e2)]);return _0x4d5712===void 0x0||!_0x3cc464?null:{'drawing':_0x1adf53,'shapeData':_0x3cc464,'shapeType':_0x4d5712};}const zr={'id':_0x2d0df6(0x34b),'type':_0x20ba44[_0x2d0df6(0x2b5)],'handler':(_0xa6c252,_0xf5e7b4)=>{const _0x1ee6e1=_0x2d0df6;let _0x24c067=Rr(_0xa6c252),_0x31bcb5=_0x3e9b85((_0xf5e7b4==null?void 0x0:_0xf5e7b4[_0x1ee6e1(0x382)])??(_0xf5e7b4==null?void 0x0:_0xf5e7b4[_0x1ee6e1(0x3c7)])??'');if(!_0x24c067||!_0x31bcb5||_0x31bcb5[_0x1ee6e1(0x1bf)]!==_0x513016(_0x24c067[_0x1ee6e1(0x393)]))return!0x1;let _0x53dcfd=_0x50cf6e(_0x24c067['shapeData'],_0x31bcb5);if(!_0x53dcfd)return!0x1;let {drawing:_0x3b00ae}=_0x24c067;return _0xa6c252['get'](_0x4a7048)['executeCommand'](K['id'],{'unitId':_0x3b00ae[_0x1ee6e1(0x2eb)],'subUnitId':_0x3b00ae[_0x1ee6e1(0x1c3)],'shapeId':_0x3b00ae['drawingId'],'shapeData':_0x53dcfd,'oldShapeJSON':{'oldShapeData':_0x24c067[_0x1ee6e1(0x393)]}});}},Br={'id':_0x2d0df6(0x16e),'type':_0x20ba44[_0x2d0df6(0x2b5)],'handler':(_0x26ac12,_0x1f9fb7)=>{const _0x2eb7df=_0x2d0df6;let _0x49e8c4=Rr(_0x26ac12),_0x5ea3c5=(_0x1f9fb7==null?void 0x0:_0x1f9fb7[_0x2eb7df(0x2bf)])??(_0x1f9fb7==null?void 0x0:_0x1f9fb7[_0x2eb7df(0x3c7)]);if(!_0x49e8c4||!_0x5ea3c5||_0x2f1e1e(_0x49e8c4['shapeType'])||_0x2f1e1e(_0x5ea3c5))return!0x1;let _0x449754=_0x4ba573(_0x49e8c4[_0x2eb7df(0x393)],_0x5ea3c5);if(!_0x449754)return!0x1;let {drawing:_0x2d4a68}=_0x49e8c4;return _0x26ac12[_0x2eb7df(0x16b)](_0x4a7048)['executeCommand'](K['id'],{'unitId':_0x2d4a68[_0x2eb7df(0x2eb)],'subUnitId':_0x2d4a68[_0x2eb7df(0x1c3)],'shapeId':_0x2d4a68[_0x2eb7df(0x1e2)],'shapeType':_0x5ea3c5,'shapeData':_0x449754,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x49e8c4[_0x2eb7df(0x2bf)],'oldShapeData':_0x49e8c4['shapeData']}});}};let Q=class extends _0x12ab23{constructor(_0x4788d9,_0x149abe){const _0x445596=_0x2d0df6;super(),this[_0x445596(0x176)]=_0x4788d9,this[_0x445596(0x34f)]=_0x149abe,this['_registerImageShapeClipDelegate'](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x445596(0x2fd)]({'dispose':()=>this[_0x445596(0x176)][_0x445596(0x1f6)](!0x1)});}[_0x2d0df6(0x1aa)](){const _0x297227=_0x2d0df6;let _0x1c1908=this[_0x297227(0x176)],_0x1bd598=new Map(),_0x18dbed=_0x1c1908[_0x297227(0x416)]((_0x2b2d8c,_0x56fb44,_0x3d46b0,_0x12b2b6,_0xed010e)=>{const _0x221ec4=_0x297227;let _0x1eb126=_0x56fb44;if(_0x1eb126===_0x33d774['None']||_0x56fb44===_0x221ec4(0x329))return!0x1;try{let _0x4d1a56=_0x1bd598[_0x221ec4(0x16b)](_0x56fb44);return _0x4d1a56||(_0x4d1a56=new _0x34a372(_0x1eb126,'clip-'+_0x56fb44),_0x1bd598[_0x221ec4(0x339)](_0x56fb44,_0x4d1a56)),_0x4d1a56['clearAdjustValue'](),_0xed010e&&Object[_0x221ec4(0x162)](_0xed010e)[_0x221ec4(0x3a5)]>0x0&&_0x4d1a56[_0x221ec4(0x1ef)]({'adjustValues':_0xed010e},!0x0),_0x4d1a56[_0x221ec4(0x267)]({'width':_0x3d46b0,'height':_0x12b2b6}),_0x4d1a56[_0x221ec4(0x372)](_0x2b2d8c,{'left':0x0,'top':0x0,'width':_0x3d46b0,'height':_0x12b2b6});}catch{return!0x1;}});this[_0x297227(0x2fd)](_0x18dbed),this['disposeWithMe']({'dispose':()=>_0x1bd598[_0x297227(0x1ce)]()});}[_0x2d0df6(0x258)](_0x2c2a88,_0x516925,_0x11f222,_0x2cf889,_0x3f114f){const _0x587e92=_0x2d0df6;let _0x1abf4a=this[_0x587e92(0x34f)]['getDrawingData'](_0x2c2a88,_0x516925);if(!_0x1abf4a[_0x11f222])return;let _0x459986={..._0x1abf4a[_0x11f222],'prstGeom':_0x2cf889,'adjustValues':_0x3f114f};this['_drawingManagerService'][_0x587e92(0x33f)]([_0x459986]);}};Q=Y([J(0x0,_0x337030(_0x18c0df)),J(0x1,_0x337030(_0x569480))],Q);const Vr='sheet.shape.picker.component',Hr=_0x2d0df6(0x210);function Ur({onShapeClick:_0x3a46f4,excludeGroups:_0x1b1ed}){return _0x3380eb(_0x188712,{'excludeGroups':_0x1b1ed,'onShapeClick':_0x3a46f4,'scrollContainer':'parent'});}function Wr(){const _0x249695=_0x2d0df6;let _0x3571e5=_0x21d47a(_0x569480),_0x15250f=_0x21d47a(Q);return _0x3380eb(_0x1b0427,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x1fd5e0[_0x249695(0x427)]],'onShapeClick':_0x30a3ab=>{const _0x4e7c51=_0x249695;let _0x11a156=_0x3571e5[_0x4e7c51(0x1dd)]()[_0x4e7c51(0x204)](_0x3c49d3=>_0x3c49d3['drawingType']===_0x21920f['DRAWING_IMAGE']);if(!_0x11a156)return;let {unitId:_0x302580,subUnitId:_0xf2f44e,drawingId:_0x1566b0}=_0x11a156;_0x15250f[_0x4e7c51(0x258)](_0x302580,_0xf2f44e,_0x1566b0,_0x30a3ab['type']);}});}function Gr(){const _0xbad972=_0x2d0df6;let _0x376630=_0x21d47a(_0x569480),_0x18a247=_0x21d47a(Q);return _0x3380eb(_0x1b0427,{'buttonLabel':_0xbad972(0x37e),'excludeGroups':[_0x1fd5e0[_0xbad972(0x427)]],'DropdownComponent':_0x10f53b,'onShapeClick':_0x741c16=>{const _0x1a86ed=_0xbad972;let _0x4714ec=_0x376630[_0x1a86ed(0x1dd)]()[_0x1a86ed(0x204)](_0x35d611=>_0x35d611[_0x1a86ed(0x309)]===_0x21920f[_0x1a86ed(0x195)]);if(!_0x4714ec)return;let {unitId:_0x1a7869,subUnitId:_0x5b3253,drawingId:_0x169198}=_0x4714ec;_0x18a247[_0x1a86ed(0x258)](_0x1a7869,_0x5b3253,_0x169198,_0x741c16[_0x1a86ed(0x1bf)]);}});}function Kr(){const _0x53b671=_0x2d0df6;let _0x411229=_0x21d47a(_0x164eca),_0x2ff0eb=_0x21d47a(_0x569480),_0x57f2b8=_0x21d47a(_0x1469ba),_0x579372=_0x2ff0eb['getFocusDrawings']()[0x0],_0x5a1289=_0x579372?_0x57f2b8[_0x53b671(0x277)](_0x579372[_0x53b671(0x2eb)]):void 0x0,_0x2dc149=_0x5a1289===_0x2711d0['UNIVER_DOC']?_0x53b671(0x1a1):_0x5a1289===_0x2711d0['UNIVER_SHEET']?Hr:void 0x0,_0x438abb=_0x2dc149?_0x411229['get'](_0x2dc149):void 0x0;return _0x438abb?_0x3380eb(_0x438abb,{}):null;}function qr(){let _0xe05c68=_0x21d47a(_0x4a7048);return _0x3380eb(Ur,{'onShapeClick':_0x1cf9a4=>{const _0x5d8d47=_0xd82a;_0xe05c68[_0x5d8d47(0x1c1)](kr['id'],{'value':_0x1cf9a4[_0x5d8d47(0x1bf)],'enhanceParams':{'endArrow':_0x1cf9a4[_0x5d8d47(0x1b2)],'startArrow':_0x1cf9a4[_0x5d8d47(0x369)],'horizontal':_0x1cf9a4[_0x5d8d47(0x24d)],'vertical':_0x1cf9a4[_0x5d8d47(0x3a9)]}});}});}function Jr(){return _0x3380eb(qr,{});}function Yr(_0x2426f4){const _0x4c8f41=_0x2d0df6;let _0x587adb=_0x2426f4[_0x4c8f41(0x16b)](_0x1469ba);return{'id':kr['id'],'type':_0x4b855f[_0x4c8f41(0x27e)],'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':kr['id']}}}],'icon':_0x4c8f41(0x2f8),'tooltip':_0x4c8f41(0x26b),'activated$':_0x30728a(_0x587adb,!0x1,()=>new _0x37f521(_0x4db00d=>{const _0xae4176=_0x4c8f41;_0x4db00d[_0xae4176(0x224)](!0x1);})),'hidden$':_0x430cef(_0x2426f4,_0x2711d0[_0x4c8f41(0x2c9)]),'disabled$':_0x69308e(_0x2426f4)};}function Xr(_0x3d2986){const _0x1d515c=_0x2d0df6;let _0x5af251=_0x3d2986[_0x1d515c(0x16b)](_0x1469ba);return{'id':Ir['id'],'type':_0x4b855f['BUTTON'],'icon':_0x1d515c(0x1d1),'title':_0x1d515c(0x304),'tooltip':_0x1d515c(0x304),'activated$':_0x30728a(_0x5af251,!0x1,()=>new _0x37f521(_0x3d8129=>{const _0x3bb49f=_0x1d515c;_0x3d8129[_0x3bb49f(0x224)](!0x1);})),'hidden$':_0x430cef(_0x3d2986,_0x2711d0[_0x1d515c(0x2c9)]),'disabled$':_0x69308e(_0x3d2986)};}const Zr=_0x2d0df6(0x19b),Qr=_0x2d0df6(0x39a);function $r(_0x4661eb){const _0x3813d2=_0x2d0df6;let _0xf2ceb1=_0x4661eb[_0x3813d2(0x16b)](_0x569480)[_0x3813d2(0x1dd)]();return _0xf2ceb1[_0x3813d2(0x3a5)]===0x1&&_0xf2ceb1[0x0]['drawingType']===_0x21920f[_0x3813d2(0x219)]?_0xf2ceb1[0x0]:null;}function ei(_0x28c942){const _0x475e70=_0x2d0df6;let _0x470667=_0x28c942['get'](_0x569480);return _0x470667[_0x475e70(0x2cd)][_0x475e70(0x301)](_0x5f5b90(_0x470667[_0x475e70(0x1dd)]()),_0x375580(_0x402cd1=>_0x402cd1[_0x475e70(0x3a5)]!==0x1||_0x402cd1[0x0]['drawingType']!==_0x21920f[_0x475e70(0x219)]));}function ti(_0x1f4bda){const _0x5908dc=_0x2d0df6;return{'id':Zr,'commandId':_0x9c81d0['id'],'type':_0x4b855f[_0x5908dc(0x3c1)],'title':_0x5908dc(0x3bb),'tooltip':_0x5908dc(0x3bb),'icon':_0x5908dc(0x3aa),'hidden$':ei(_0x1f4bda),'params':()=>{const _0x567000=_0x5908dc;let _0x108d87=$r(_0x1f4bda);return _0x108d87?{'unitId':_0x108d87[_0x567000(0x2eb)],'subUnitId':_0x108d87[_0x567000(0x1c3)],'shapeId':_0x108d87['drawingId'],'flipH':!0x0}:void 0x0;}};}function ni(_0x791f36){const _0xe051ac=_0x2d0df6;return{'id':Qr,'commandId':_0x9c81d0['id'],'type':_0x4b855f[_0xe051ac(0x3c1)],'title':_0xe051ac(0x1f9),'tooltip':_0xe051ac(0x1f9),'icon':_0xe051ac(0x263),'hidden$':ei(_0x791f36),'params':()=>{const _0xe0db4c=_0xe051ac;let _0x1aaffe=$r(_0x791f36);return _0x1aaffe?{'unitId':_0x1aaffe['unitId'],'subUnitId':_0x1aaffe[_0xe0db4c(0x1c3)],'shapeId':_0x1aaffe[_0xe0db4c(0x1e2)],'flipV':!0x0}:void 0x0;}};}const ri=_0x2d0df6(0x260),ii=_0x2d0df6(0x172),ai=_0x2d0df6(0x291),oi=_0x2d0df6(0x3e9);function si(){let _0x5530c7=_0x21d47a(_0x4a7048),_0x2b0e1d=_0x21d47a(_0x569480),_0x5dbc=_0x21d47a(_0x1697a4),_0x5177e8=()=>{const _0x14210c=_0xd82a;var _0x57df08;let _0x55c510=_0x2b0e1d[_0x14210c(0x1dd)]();if(_0x55c510[_0x14210c(0x3a5)]!==0x1||((_0x57df08=_0x55c510[0x0])==null?void 0x0:_0x57df08[_0x14210c(0x309)])!==_0x21920f['DRAWING_SHAPE'])return null;let {unitId:_0x588da8,subUnitId:_0x33619a,drawingId:_0x2f088c}=_0x55c510[0x0],_0x1bd9d8=_0x5dbc[_0x14210c(0x236)](_0x588da8,_0x33619a,_0x2f088c),_0x4a89f8=_0x5dbc[_0x14210c(0x322)](_0x588da8,_0x33619a,_0x2f088c);return _0x1bd9d8===void 0x0||!_0x4a89f8?null:{'unitId':_0x588da8,'subUnitId':_0x33619a,'drawingId':_0x2f088c,'shapeType':_0x1bd9d8,'shapeData':_0x4a89f8};},_0x5a50a4=_0x460498(()=>new _0x37f521(_0x5380b9=>{const _0x333989=_0xd82a;let _0x2930ca=()=>_0x5380b9['next'](_0x5177e8()),_0x11f513=_0x2b0e1d[_0x333989(0x2cd)]['subscribe'](_0x2930ca),_0x2fdf0c=_0x5530c7[_0x333989(0x428)](_0x38080a=>{_0x38080a['id']===_0x1b95a1['id']&&_0x2930ca();});return _0x2930ca(),()=>{const _0x11b0bd=_0x333989;_0x11f513[_0x11b0bd(0x169)](),_0x2fdf0c[_0x11b0bd(0x1e1)]();};}),_0x5177e8(),!0x1,[_0x5530c7,_0x2b0e1d,_0x5dbc]);return{'selection':_0x5a50a4,'updateShapeData':_0x2c6210=>{const _0x3bc53e=_0xd82a;_0x5a50a4&&br(_0x5530c7,_0x5a50a4[_0x3bc53e(0x2eb)],_0x5a50a4['subUnitId'],_0x5a50a4['drawingId'],{'oldShapeData':_0x5a50a4[_0x3bc53e(0x393)]},_0x2c6210);}};}function ci(){const _0x1dfecb=_0x2d0df6;let {selection:_0x1b114f,updateShapeData:_0x5466ab}=si();return _0x1b114f?_0x3380eb(_0x265427,{'shapeData':_0x1b114f[_0x1dfecb(0x393)],'shapeType':_0x1b114f['shapeType'],'onUpdateShapeData':_0x5466ab}):null;}function li(){const _0x437cc3=_0x2d0df6;let _0x38d09e=_0x21d47a(_0x4a7048),_0x2af633=_0x21d47a(_0x37c40f),{selection:_0x4a5223}=si();return _0x4a5223?_0x3380eb(_0x54548f,{'type':_0x513016(_0x4a5223[_0x437cc3(0x393)]),'ariaLabel':_0x2af633['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x5ae3cb(_0x4a5223[_0x437cc3(0x393)]),'onSelect':_0x22fe45=>_0x38d09e['executeCommand'](zr['id'],{'presetId':_0x22fe45})}):null;}function ui(){const _0x4ac2d7=_0x2d0df6;let {selection:_0x22bced,updateShapeData:_0x340666}=si();return _0x22bced?_0x3380eb(_0x2faba2,{'fontFamilyPopupDataComponent':_0x4ac2d7(0x3e3),'shapeData':_0x22bced[_0x4ac2d7(0x393)],'onUpdateShapeData':_0x340666}):null;}function di(){const _0x3c70bb=_0x2d0df6;var _0x12d748;let {selection:_0x98871d,updateShapeData:_0x492fc5}=si(),_0x3aa3cb=_0x7f1164({'hostType':_0x2711d0[_0x3c70bb(0x2c9)],'unitId':(_0x98871d==null?void 0x0:_0x98871d['unitId'])??'','subUnitId':(_0x98871d==null?void 0x0:_0x98871d[_0x3c70bb(0x1c3)])??'','shapeId':(_0x98871d==null?void 0x0:_0x98871d[_0x3c70bb(0x1e2)])??'','shapeData':_0x98871d==null?void 0x0:_0x98871d[_0x3c70bb(0x393)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x3c70bb(0x1da),'onUpdateBinding':_0x1b5746=>_0x492fc5({'formulaBinding':_0x1b5746})}),_0x1a9d5e=((_0x12d748=_0x3aa3cb['extensionGroups'])==null?void 0x0:_0x12d748['flatMap'](_0x47447f=>_0x47447f['actions'])[_0x3c70bb(0x333)](_0x2386bb=>_0x2386bb[_0x3c70bb(0x28a)]!==!0x1))??[];return _0x98871d!=null&&_0x98871d[_0x3c70bb(0x393)][_0x3c70bb(0x3ef)]?_0x3380eb(_0x394db6,{'actions':_0x1a9d5e,'panel':_0x3aa3cb[_0x3c70bb(0x379)]}):null;}const fi=_0x2d0df6(0x343),pi=_0x2d0df6(0x3e8),mi=_0x2d0df6(0x429),hi=_0x2d0df6(0x344),gi=_0x2d0df6(0x206),_i=_0x2d0df6(0x1f7),vi='sheets-shape-ui.ribbon.shape-format.arrange-back';function yi(_0x55cd9d){const _0x3e54eb=_0x2d0df6;let _0x1084fe=_0x55cd9d[_0x3e54eb(0x16b)](_0x4a7048),_0x11079f=_0x55cd9d[_0x3e54eb(0x16b)](_0x569480),_0x802d42=_0x55cd9d['get'](_0x1697a4);return new _0x37f521(_0x528168=>{const _0x491320=_0x3e54eb;let _0x40d670=()=>{const _0x4412a8=_0xd82a;let _0x138fd2=bi(_0x55cd9d),_0x5f5757=_0x138fd2?_0x802d42[_0x4412a8(0x322)](_0x138fd2[_0x4412a8(0x2eb)],_0x138fd2['subUnitId'],_0x138fd2[_0x4412a8(0x1e2)]):null;_0x528168[_0x4412a8(0x224)](_0x5f5757?_0x5ae3cb(_0x5f5757)??'':'');},_0x34c4cd=_0x11079f[_0x491320(0x2cd)][_0x491320(0x365)](_0x40d670),_0x6bb92b=_0x1084fe[_0x491320(0x428)](_0x32e91d=>{_0x32e91d['id']===_0x1b95a1['id']&&_0x40d670();});return _0x40d670(),()=>{const _0x1d4d2f=_0x491320;_0x34c4cd[_0x1d4d2f(0x169)](),_0x6bb92b[_0x1d4d2f(0x1e1)]();};});}function bi(_0x282a2d){const _0x30ce54=_0x2d0df6;var _0x5a980c;let _0x20d36e=_0x282a2d[_0x30ce54(0x16b)](_0x569480)[_0x30ce54(0x1dd)]();return _0x20d36e['length']===0x1&&((_0x5a980c=_0x20d36e[0x0])==null?void 0x0:_0x5a980c[_0x30ce54(0x309)])===_0x21920f[_0x30ce54(0x219)]?_0x20d36e[0x0]:null;}function xi(_0x5b3911,_0x451c90=!0x1){const _0x315acb=_0x2d0df6;let _0x5a4f47=_0x5b3911[_0x315acb(0x16b)](_0x4a7048),_0x44e3ff=_0x5b3911['get'](_0x569480),_0x1c7fd7=_0x5b3911[_0x315acb(0x16b)](_0x1697a4);return new _0x37f521(_0xee515d=>{const _0x1f61e1=_0x315acb;let _0x292537=()=>{const _0x227684=_0xd82a;let _0x11b756=bi(_0x5b3911);if(!_0x11b756){_0xee515d['next'](!0x0);return;}let _0x21aabc=_0x1c7fd7[_0x227684(0x322)](_0x11b756[_0x227684(0x2eb)],_0x11b756[_0x227684(0x1c3)],_0x11b756[_0x227684(0x1e2)]);_0xee515d[_0x227684(0x224)](!_0x21aabc||_0x451c90&&_0x21aabc['formulaBinding']==null);},_0x4e1c70=_0x44e3ff[_0x1f61e1(0x2cd)]['subscribe'](_0x292537),_0xb73cb7=_0x5a4f47[_0x1f61e1(0x428)](_0x56a6f3=>{_0x56a6f3['id']===_0x1b95a1['id']&&_0x292537();});return _0x292537(),()=>{const _0x8869bf=_0x1f61e1;_0x4e1c70[_0x8869bf(0x169)](),_0xb73cb7[_0x8869bf(0x1e1)]();};});}function Si(_0x252f02){const _0x774928=_0x2d0df6;let _0x1fd1a3=_0x252f02[_0x774928(0x16b)](_0x569480),_0x1911ea=_0x252f02[_0x774928(0x16b)](_0x1697a4);return _0x1fd1a3[_0x774928(0x2cd)][_0x774928(0x301)](_0x5f5b90(_0x1fd1a3[_0x774928(0x1dd)]()),_0x375580(()=>{const _0x61e321=_0x774928;let _0xd6c0c8=bi(_0x252f02),_0x5f5494=_0xd6c0c8?_0x1911ea['getShapeTypeById'](_0xd6c0c8[_0x61e321(0x2eb)],_0xd6c0c8[_0x61e321(0x1c3)],_0xd6c0c8[_0x61e321(0x1e2)]):void 0x0;return _0x5f5494===void 0x0||_0x2f1e1e(_0x5f5494);}));}function Ci(_0x29c7c4){const _0x1d619f=_0x2d0df6;return{'id':zr['id'],'type':_0x4b855f[_0x1d619f(0x27e)],'icon':'PaintIcon','title':_0x1d619f(0x35a),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':ri,'hoverable':!0x1,'selectable':!0x1}}],'value$':yi(_0x29c7c4),'hidden$':xi(_0x29c7c4)};}function wi(_0x53be64){const _0x15289d=_0x2d0df6;return{'id':Br['id'],'type':_0x4b855f['SELECTOR'],'icon':'ShapeIcon','title':_0x15289d(0x275),'tooltip':_0x15289d(0x275),'slot':!0x0,'selections':[{'label':{'name':_0x3a8a9b,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x53be64)};}function Ti(_0x3b49af,_0x53de52,_0x108908=!0x1){const _0x539190=_0x2d0df6;return _0x24fbf5=>({'id':_0x3b49af,'type':_0x4b855f[_0x539190(0x3c1)],'label':{'name':_0x53de52,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x24fbf5,_0x108908)});}const Ei=Ti(fi,ii),Di=Ti(pi,ai),Oi=Ti(mi,oi,!0x0);function ki(_0xd72ba0,_0x1dff49,_0x27acb1,_0xa04750){const _0xb623dd=_0x2d0df6;return _0x2770f5=>({'id':_0xd72ba0,'commandId':_0x1d9abf['id'],'type':_0x4b855f[_0xb623dd(0x3c1)],'icon':_0x27acb1,'title':_0xa04750,'tooltip':_0xa04750,'hidden$':xi(_0x2770f5),'params':()=>{const _0x30d45d=_0xb623dd;let _0x5b3b38=bi(_0x2770f5);return _0x5b3b38?{'unitId':_0x5b3b38[_0x30d45d(0x2eb)],'subUnitId':_0x5b3b38[_0x30d45d(0x1c3)],'drawingIds':[_0x5b3b38[_0x30d45d(0x1e2)]],'arrangeType':_0x1dff49}:void 0x0;}});}const Ai=ki(hi,_0x2b1d62['forward'],_0x2d0df6(0x173),_0x2d0df6(0x2d4)),ji=ki(gi,_0x2b1d62[_0x2d0df6(0x1a3)],'MoveDownIcon',_0x2d0df6(0x374)),Mi=ki(_i,_0x2b1d62[_0x2d0df6(0x298)],_0x2d0df6(0x415),_0x2d0df6(0x2c7)),Ni=ki(vi,_0x2b1d62[_0x2d0df6(0x1cb)],_0x2d0df6(0x165),_0x2d0df6(0x16f));function Pi(_0x2bdc79){const _0x325f47=_0x2d0df6;return{'id':Lr['id'],'type':_0x4b855f[_0x325f47(0x3c1)],'icon':_0x325f47(0x227),'title':_0x325f47(0x2c8),'tooltip':_0x325f47(0x2c8),'hidden$':xi(_0x2bdc79),'params':()=>{const _0x2ae721=_0x325f47;let _0x46b442=bi(_0x2bdc79);return _0x46b442?{'unitId':_0x46b442[_0x2ae721(0x2eb)],'subUnitId':_0x46b442[_0x2ae721(0x1c3)],'drawingId':_0x46b442[_0x2ae721(0x1e2)]}:void 0x0;}};}const Fi={[_0x34fe1b[_0x2d0df6(0x221)]]:{[Nr]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[zr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[fi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[pi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Zr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ti},[Qr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ni},[hi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ai},[gi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ji},[_i]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Mi},[vi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[mi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Lr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0xc26e59['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x186fec}}}}},Ii={[_0x3cf3c8[_0x2d0df6(0x262)]]:{[kr['id']]:{'order':0x4,'menuItemFactory':Yr}}},Li={...Ii,[_0x3cf3c8[_0x2d0df6(0x202)]]:{[Ir['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Xr}},[_0x4a19dc[_0x2d0df6(0x213)]]:{[_0x55ee75[_0x2d0df6(0x202)]]:{[Zr]:{'order':0x4,'menuItemFactory':ti},[Qr]:{'order':0x5,'menuItemFactory':ni}}}};var Ri=_0x2d0df6(0x36d),zi=_0x2d0df6(0x418);const Bi={'id':_0x2d0df6(0x3fc),'type':_0x20ba44[_0x2d0df6(0x2b5)],'handler'(_0x3dda72,_0x31020e){const _0x46f2ff=_0x2d0df6;return _0x31020e?(_0x3dda72[_0x46f2ff(0x16b)](_0x407672)[_0x46f2ff(0x340)](_0x31020e['mode'],{'hostType':_0x2711d0[_0x46f2ff(0x2c9)],'shapeId':_0x31020e[_0x46f2ff(0x1e2)],'subUnitId':_0x31020e['subUnitId'],'unitId':_0x31020e[_0x46f2ff(0x2eb)]}),!0x0):!0x1;}},Vi=_0x2d0df6(0x40e),Hi={};let Ui=class extends _0x12ab23{constructor(_0x37fe1e,_0x336255,_0x196127,_0x575ab2,_0x21d78b){const _0x2ffd1c=_0x2d0df6;super(),this[_0x2ffd1c(0x3ca)]=_0x37fe1e,this[_0x2ffd1c(0x34f)]=_0x336255,this['_renderManagerService']=_0x196127,this[_0x2ffd1c(0x385)]=_0x575ab2,this[_0x2ffd1c(0x1e4)]=_0x21d78b,q(this,_0x2ffd1c(0x29b),null),q(this,_0x2ffd1c(0x35e),null),q(this,'_subUnitId',null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x2ffd1c(0x2fc),[]),q(this,_0x2ffd1c(0x1d6),0x0),q(this,_0x2ffd1c(0x17f),0x0),q(this,_0x2ffd1c(0x34e),0x0),q(this,'_baseHeight',0x0),q(this,_0x2ffd1c(0x215),!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x2ffd1c(0x323),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x2ffd1c(0x3bf),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x2ffd1c(0x22d)](),this[_0x2ffd1c(0x2f9)]();}[_0x2d0df6(0x383)](){const _0x343156=_0x2d0df6;this[_0x343156(0x27c)]();}[_0x2d0df6(0x245)](){const _0x1d3502=_0x2d0df6;this[_0x1d3502(0x27c)](),this[_0x1d3502(0x3ac)](!0x0);}[_0x2d0df6(0x3d1)](_0x148c4e,_0x1c14d0,_0x5a6c1f,_0x2ac4be){const _0x4dd4cf=_0x2d0df6;let _0x13a9ed=_0x148c4e;if(_0x13a9ed!==_0x33d774['None']&&_0x148c4e!==_0x4dd4cf(0x329))try{let _0x20a2b2=new _0x34a372(_0x13a9ed,_0x4dd4cf(0x29c)+_0x148c4e);return _0x2ac4be&&_0x20a2b2[_0x4dd4cf(0x1ef)]({'adjustValues':_0x2ac4be},!0x0),_0x20a2b2['updateContext']({'width':_0x1c14d0,'height':_0x5a6c1f}),_0x20a2b2;}catch{return;}}[_0x2d0df6(0x42a)](_0x2a8cfe,_0x58f4cc,_0x2b4395){const _0x5e8330=_0x2d0df6;let _0x406b3f={'unitId':_0x2a8cfe,'subUnitId':_0x58f4cc,'drawingId':_0x2b4395},_0x5c186f=this['_drawingManagerService'][_0x5e8330(0x190)](_0x406b3f);if(_0x5c186f&&_0x5c186f['drawingType']===_0x21920f[_0x5e8330(0x195)])return _0x5c186f;}[_0x2d0df6(0x3a4)](_0x4aa4ff,_0x252a5c,_0x396c76){const _0x14f395=_0x2d0df6;let _0x530f68=this['_renderManagerService'][_0x14f395(0x2e5)](_0x4aa4ff);if(!_0x530f68)return;let {scene:_0x378746}=_0x530f68,_0xb70668=_0x41d737({'unitId':_0x4aa4ff,'subUnitId':_0x252a5c,'drawingId':_0x396c76}),_0x3d3f32=_0x378746[_0x14f395(0x182)](_0xb70668);if(_0x3d3f32 instanceof _0x159e6b){let _0xc4f8e2=_0x3d3f32[_0x14f395(0x35f)];if(_0xc4f8e2)return{'prstGeom':_0xc4f8e2,'adjustValues':_0x3d3f32[_0x14f395(0x225)]};}}[_0x2d0df6(0x3ac)](_0x1dff20=!0x1){const _0x430d79=_0x2d0df6;if(!this[_0x430d79(0x35e)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x31c316=this[_0x430d79(0x3ea)][_0x430d79(0x2e5)](this[_0x430d79(0x35e)]);if(!_0x31c316||!_0x31c316[_0x430d79(0x2ce)](_0x2e5cfd)[_0x430d79(0x36c)]())return;let {scene:_0x19bb91}=_0x31c316,_0x1565dc=this[_0x430d79(0x42a)](this[_0x430d79(0x35e)],this[_0x430d79(0x3d0)],this[_0x430d79(0x29b)]);if(!_0x1565dc)return;let {transform:_0x1beaca}=_0x1565dc;if(!_0x1beaca)return;let {left:_0x4ee334,top:_0x17e2be,width:_0x3f9654,height:_0x1e36c4,flipX:_0x9d56ed,flipY:_0x36fc1d,angle:_0x4f9e91=0x0}=_0x1beaca;if(_0x4ee334===void 0x0||_0x17e2be===void 0x0)return;let _0x16efa3=this['_getImagePrstGeom'](this[_0x430d79(0x35e)],this[_0x430d79(0x3d0)],this[_0x430d79(0x29b)]);if(!_0x16efa3)return;if(_0x1dff20){let _0x485f25=this[_0x430d79(0x3d1)](_0x16efa3['prstGeom'],_0x3f9654||0x0,_0x1e36c4||0x0,_0x16efa3[_0x430d79(0x400)]);if(!_0x485f25)return;this[_0x430d79(0x276)]=_0x485f25[_0x430d79(0x29d)]();}let _0x5b6bfd=this[_0x430d79(0x276)];if(_0x5b6bfd&&_0x5b6bfd[_0x430d79(0x3a5)]!==0x0)for(let _0x306c6b=0x0;_0x306c6b<_0x5b6bfd[_0x430d79(0x3a5)];_0x306c6b++){let _0x2891f4=_0x5b6bfd[_0x306c6b],_0x191b68=_0x2891f4['x'],_0x2deab4=_0x2891f4['y'];if(_0x9d56ed&&(_0x191b68=(_0x3f9654||0x0)-_0x191b68),_0x36fc1d&&(_0x2deab4=(_0x1e36c4||0x0)-_0x2deab4),_0x4f9e91!==0x0){let _0x34d759=(_0x3f9654||0x0)/0x2,_0x4501d4=(_0x1e36c4||0x0)/0x2,_0x14841e=_0x4f9e91*Math['PI']/0xb4,_0x33b95d=Math[_0x430d79(0x417)](_0x14841e),_0xb10226=Math[_0x430d79(0x257)](_0x14841e),_0x1a35ca=_0x191b68-_0x34d759,_0x569411=_0x2deab4-_0x4501d4;_0x191b68=_0x34d759+(_0x1a35ca*_0x33b95d-_0x569411*_0xb10226),_0x2deab4=_0x4501d4+(_0x1a35ca*_0xb10226+_0x569411*_0x33b95d);}let _0x2e2cd3={'x':_0x191b68,'y':_0x2deab4,'adjName':_0x2891f4['adjName']};this[_0x430d79(0x2f3)](_0x19bb91,_0x2e2cd3,_0x2e2cd3['adjName'],_0x4ee334,_0x17e2be,this[_0x430d79(0x35e)],this[_0x430d79(0x3d0)]);}}[_0x2d0df6(0x2f3)](_0xc32be6,_0x2c27c8,_0x5093d8,_0x13460f,_0x36072b,_0x26dac8,_0x2cf534){const _0x42a7b7=_0x2d0df6;if(!this[_0x42a7b7(0x29b)])return;let _0xcd548a='image-clip-adjust-point-'+this[_0x42a7b7(0x29b)]+'-'+_0x5093d8,_0x143732=_0xc32be6[_0x42a7b7(0x2f1)](_0xcd548a);if(_0x143732){_0x143732[_0x42a7b7(0x1f2)]({'left':_0x2c27c8['x']+_0x13460f-_0x10a8b7['adjHandleSize'],'top':_0x2c27c8['y']+_0x36072b-_0x10a8b7[_0x42a7b7(0x31d)]});return;}let _0xe0b3de=new Dr(_0xcd548a,{'left':_0x2c27c8['x']+_0x13460f-_0x10a8b7[_0x42a7b7(0x31d)],'top':_0x2c27c8['y']+_0x36072b-_0x10a8b7[_0x42a7b7(0x31d)],'adjName':_0x5093d8,'shapeId':this[_0x42a7b7(0x29b)],'unitId':_0x26dac8,'subUnitId':_0x2cf534,'width':_0x10a8b7[_0x42a7b7(0x31d)]+0x8,'height':_0x10a8b7[_0x42a7b7(0x31d)]+0x8,'zIndex':_0x4ea2ef+0x1,'evented':!0x0});this['_shapes'][_0x42a7b7(0x2a8)](_0xe0b3de),this[_0x42a7b7(0x3c3)](_0xe0b3de,_0xc32be6,_0x5093d8),_0xc32be6[_0x42a7b7(0x1d7)](_0xe0b3de,_0x4ea2ef+0x1);}[_0x2d0df6(0x27c)](){const _0x27faa7=_0x2d0df6;this[_0x27faa7(0x2fc)][_0x27faa7(0x3a5)]!==0x0&&(this['_shapes'][_0x27faa7(0x231)](_0x364bac=>_0x364bac['dispose']()),this[_0x27faa7(0x2fc)]=[]);}[_0x2d0df6(0x3cc)](_0x14f543,_0x4ad59d){const _0x1c1855=_0x2d0df6;var _0x1d3ac5;let _0x42ef4c={'x':0x0,'y':0x0},_0x3d9f42=this[_0x1c1855(0x3ea)][_0x1c1855(0x2e5)](_0x14f543);if(!_0x3d9f42||!_0x3d9f42['with'](_0x2e5cfd)[_0x1c1855(0x355)](_0x4ad59d))return _0x42ef4c;let _0x416172=_0x3d9f42[_0x1c1855(0x2ce)](_0x201189),_0x3553e8=_0x416172==null?void 0x0:_0x416172[_0x1c1855(0x35b)]();if(!_0x3553e8)return _0x42ef4c;let _0x2176a4=(_0x1d3ac5=this[_0x1c1855(0x385)]['getUnit'](_0x14f543))==null?void 0x0:_0x1d3ac5[_0x1c1855(0x25d)](_0x4ad59d);if(!_0x2176a4)return _0x42ef4c;let _0xccb932=_0x10e5a1(_0x3553e8['sheetViewStartRow'],_0x3553e8[_0x1c1855(0x3a3)],_0x3d9f42[_0x1c1855(0x34a)],_0x2176a4);return _0xccb932?{'x':_0xccb932['viewportScrollX'],'y':_0xccb932[_0x1c1855(0x3e4)]}:_0x42ef4c;}[_0x2d0df6(0x208)](_0x3e265d,_0xbe435a){const _0x479c50=_0x2d0df6;var _0x5fe8eb;let _0x1cae1f=(_0x5fe8eb=this[_0x479c50(0x385)]['getUnit'](_0x3e265d))==null?void 0x0:_0x5fe8eb[_0x479c50(0x25d)](_0xbe435a);return(_0x1cae1f==null?void 0x0:_0x1cae1f[_0x479c50(0x278)]())??0x1;}['_attachAdjustEvent'](_0x1bd043,_0x132006,_0x4b87c8){const _0x88c4c8=_0x2d0df6;this['disposeWithMe'](_0x3d1384(_0x1bd043['onPointerDown$'][_0x88c4c8(0x1de)]((_0x1ed637,_0x508e03)=>{const _0x1ac4a7=_0x88c4c8;var _0x3f745d,_0x48fdff,_0x1864e3;let {unitId:_0xa8ace6,subUnitId:_0x3eea41,drawingId:_0x54f756}=_0x1bd043[_0x1ac4a7(0x404)](),_0x49e71d=this[_0x1ac4a7(0x42a)](_0xa8ace6,_0x3eea41,_0x54f756);if(!(_0x49e71d!=null&&_0x49e71d[_0x1ac4a7(0x284)]))return;let {left:_0x270eab,top:_0x2488d8,width:_0x591f30,height:_0x49342e}=_0x49e71d[_0x1ac4a7(0x284)];this['_baseLeft']=_0x270eab||0x0,this[_0x1ac4a7(0x17f)]=_0x2488d8||0x0,this[_0x1ac4a7(0x34e)]=_0x591f30||0x0,this[_0x1ac4a7(0x21b)]=_0x49342e||0x0;let _0x3bd92e=!!((_0x3f745d=_0x49e71d[_0x1ac4a7(0x284)])!=null&&_0x3f745d[_0x1ac4a7(0x36a)]),_0x40051b=!!((_0x48fdff=_0x49e71d['transform'])!=null&&_0x48fdff['flipY']),_0x31054e=((_0x1864e3=_0x49e71d[_0x1ac4a7(0x284)])==null?void 0x0:_0x1864e3['angle'])||0x0,_0x43b6da=this[_0x1ac4a7(0x3a4)](_0xa8ace6,_0x3eea41,_0x54f756);if(!_0x43b6da)return;let _0x2610c9=this[_0x1ac4a7(0x3d1)](_0x43b6da[_0x1ac4a7(0x35f)],this['_baseWidth'],this['_baseHeight'],_0x43b6da[_0x1ac4a7(0x400)]);if(!_0x2610c9||(this[_0x1ac4a7(0x323)]=_0x2610c9,this[_0x1ac4a7(0x31b)]=_0x2610c9[_0x1ac4a7(0x3af)](_0x4b87c8),!this[_0x1ac4a7(0x31b)]))return;this[_0x1ac4a7(0x215)]=!0x0,_0x132006['disableObjectsEvent']();let _0x4046d9=_0x43b6da[_0x1ac4a7(0x35f)];this['_adjHandlerPointerMove']=_0x132006[_0x1ac4a7(0x39d)]['subscribeEvent']((_0x575042,_0x117e6d)=>{const _0x14483f=_0x1ac4a7;if(!this[_0x14483f(0x215)])return;let {offsetX:_0x1b0e31,offsetY:_0x24830a}=_0x575042,_0x528293=this[_0x14483f(0x31b)];if(!this['_activeShapeModel']||!_0x528293)return;_0x132006[_0x14483f(0x326)](),_0x132006[_0x14483f(0x3db)](_0x44b094[_0x14483f(0x391)]);let _0x2d08fc={'left':0x0,'top':0x0,'width':this[_0x14483f(0x34e)],'height':this[_0x14483f(0x21b)]},_0x163bf0=this[_0x14483f(0x3cc)](_0xa8ace6,_0x3eea41),_0x578c3f=this[_0x14483f(0x208)](_0xa8ace6,_0x3eea41),_0x461a09=_0x1b0e31/_0x578c3f+_0x163bf0['x']-this['_baseLeft'],_0x406643=_0x24830a/_0x578c3f+_0x163bf0['y']-this[_0x14483f(0x17f)];if(_0x31054e!==0x0){let _0x1c2b78=this[_0x14483f(0x34e)]/0x2,_0x20bfef=this[_0x14483f(0x21b)]/0x2,_0x563fb8=_0x31054e*Math['PI']/0xb4,_0x14f2ff=Math[_0x14483f(0x417)](_0x563fb8),_0x33e578=Math[_0x14483f(0x257)](_0x563fb8),_0x25180c=_0x461a09-_0x1c2b78,_0x48a6ce=_0x406643-_0x20bfef;_0x461a09=_0x1c2b78+(_0x25180c*_0x14f2ff+_0x48a6ce*_0x33e578),_0x406643=_0x20bfef+(-_0x25180c*_0x33e578+_0x48a6ce*_0x14f2ff);}_0x3bd92e&&(_0x461a09=this[_0x14483f(0x34e)]-_0x461a09),_0x40051b&&(_0x406643=this[_0x14483f(0x21b)]-_0x406643);let _0x53f90c=this[_0x14483f(0x323)][_0x14483f(0x233)](_0x2d08fc,{'x':_0x461a09,'y':_0x406643},_0x528293,_0x3bd92e,_0x40051b);if(Object[_0x14483f(0x162)](_0x53f90c)['length']!==0x0){for(let [_0x42427a,_0x5d8407]of Object[_0x14483f(0x2da)](_0x53f90c))this[_0x14483f(0x323)][_0x14483f(0x253)](_0x42427a,_0x5d8407);this[_0x14483f(0x323)][_0x14483f(0x267)]({'width':this[_0x14483f(0x34e)],'height':this[_0x14483f(0x21b)]}),this[_0x14483f(0x2ae)](_0xa8ace6,_0x3eea41,_0x54f756,_0x53f90c),this[_0x14483f(0x276)]=this[_0x14483f(0x323)]['getDrawingPoints'](),this[_0x14483f(0x3ac)](),_0x117e6d['stopPropagation']();}}),this[_0x1ac4a7(0x3bf)]=_0x132006[_0x1ac4a7(0x234)][_0x1ac4a7(0x1de)]((_0x4d832d,_0x578369)=>{const _0x1d84a0=_0x1ac4a7;if(this[_0x1d84a0(0x2ef)][_0x1d84a0(0x169)](),this['_adjHandlerPointerUp'][_0x1d84a0(0x169)](),_0x132006[_0x1d84a0(0x39e)](),this[_0x1d84a0(0x323)]){let _0x3ccb69=this[_0x1d84a0(0x323)][_0x1d84a0(0x3df)](),_0x463233={};for(let _0x22c962 of _0x3ccb69){let _0x4a46a0=this[_0x1d84a0(0x323)][_0x1d84a0(0x23e)](_0x22c962);_0x4a46a0!==void 0x0&&(_0x463233[_0x22c962]=_0x4a46a0);}this[_0x1d84a0(0x1e4)]['clipByShape'](_0xa8ace6,_0x3eea41,_0x54f756,_0x4046d9,_0x463233);}this['_activeAdjustInfo']=void 0x0,this[_0x1d84a0(0x323)]=void 0x0,this[_0x1d84a0(0x215)]=!0x1,_0x578369[_0x1d84a0(0x1eb)](),_0x132006[_0x1d84a0(0x3ae)]();}),_0x508e03[_0x1ac4a7(0x1eb)]();})));}[_0x2d0df6(0x2ae)](_0x13003b,_0x3d7d54,_0x446d21,_0x5584b5){const _0x305fe5=_0x2d0df6;let _0x1d390c=this[_0x305fe5(0x3ea)][_0x305fe5(0x2e5)](_0x13003b);if(!_0x1d390c)return;let {scene:_0x3375f0}=_0x1d390c,_0x35b75f=_0x41d737({'unitId':_0x13003b,'subUnitId':_0x3d7d54,'drawingId':_0x446d21}),_0x4c80ef=_0x3375f0['getObject'](_0x35b75f);if(_0x4c80ef instanceof _0x159e6b){let _0xdbac41=_0x4c80ef[_0x305fe5(0x225)]??{};_0x4c80ef[_0x305fe5(0x1d8)]({..._0xdbac41,..._0x5584b5}),_0x4c80ef[_0x305fe5(0x1e7)](!0x0);}}[_0x2d0df6(0x2f9)](){const _0xb4c4e1=_0x2d0df6;let _0xc40be5=this[_0xb4c4e1(0x385)][_0xb4c4e1(0x2bb)](_0x2711d0['UNIVER_SHEET']);this[_0xb4c4e1(0x2fd)](_0xc40be5[_0xb4c4e1(0x301)](_0x198be4(_0x53669b=>_0x53669b?_0x53669b[_0xb4c4e1(0x3a2)][_0xb4c4e1(0x301)](_0x198be4(_0x1f952e=>{const _0x401e80=_0xb4c4e1;if(!_0x1f952e)return _0x50c59a;let _0x38a278=_0x53669b[_0x401e80(0x1c7)](),_0x2a8395=this['_renderManagerService'][_0x401e80(0x2e5)](_0x38a278),_0x1d76bb=_0x2a8395==null?void 0x0:_0x2a8395[_0x401e80(0x34a)];return _0x1d76bb?_0xc07474(_0x1d76bb):_0x50c59a;})):_0x50c59a))[_0xb4c4e1(0x365)](_0x44799f=>{const _0xcb1759=_0xb4c4e1;let _0x47f224=_0x44799f[_0xcb1759(0x378)]();this[_0xcb1759(0x2fd)](_0x44799f[_0xcb1759(0x39d)][_0xcb1759(0x1de)](()=>{const _0x4e70d8=_0xcb1759;this[_0x4e70d8(0x3ed)]&&this[_0x4e70d8(0x27c)]();})),this[_0xcb1759(0x2fd)](_0x47f224['changeStart$']['subscribe'](_0x241c71=>{const _0x2a56a2=_0xcb1759;let {objects:_0x159cef}=_0x241c71;if(this['_createControls'](),_0x159cef!==null&&_0x159cef[_0x2a56a2(0x3e1)]===0x1){let _0x501a27=_0x159cef['values']()[_0x2a56a2(0x224)]()[_0x2a56a2(0x3c7)];_0x501a27 instanceof _0x159e6b&&_0x501a27[_0x2a56a2(0x35f)]&&(this[_0x2a56a2(0x3ed)]=!0x0);}})),this[_0xcb1759(0x2fd)](_0x47f224[_0xcb1759(0x370)][_0xcb1759(0x365)](()=>{const _0x1a5eef=_0xcb1759;this['_isImagePointerDown']&&this[_0x1a5eef(0x27c)]();})),this[_0xcb1759(0x2fd)](_0x44799f['onPointerUp$'][_0xcb1759(0x1de)](()=>{const _0x3636bb=_0xcb1759;this[_0x3636bb(0x3ed)]&&(this[_0x3636bb(0x3ed)]=!0x1,this['_createControls']());})),this[_0xcb1759(0x2fd)](_0x47f224['changeEnd$'][_0xcb1759(0x365)](()=>{const _0x3a68fc=_0xcb1759;if(this[_0x3a68fc(0x35e)]&&this['_subUnitId']&&this['_activeImageId']){let _0x115737=this['_getImagePrstGeom'](this['_unitId'],this[_0x3a68fc(0x3d0)],this['_activeImageId']);if(_0x115737){var _0xfe4a87,_0x3aa1bd;let _0x1f72eb=this[_0x3a68fc(0x42a)](this['_unitId'],this[_0x3a68fc(0x3d0)],this[_0x3a68fc(0x29b)]),_0x4e86ea=(_0x1f72eb==null||(_0xfe4a87=_0x1f72eb['transform'])==null?void 0x0:_0xfe4a87[_0x3a68fc(0x373)])||0x0,_0x556f76=(_0x1f72eb==null||(_0x3aa1bd=_0x1f72eb[_0x3a68fc(0x284)])==null?void 0x0:_0x3aa1bd['height'])||0x0,_0x107ed5=this[_0x3a68fc(0x3d1)](_0x115737[_0x3a68fc(0x35f)],_0x4e86ea,_0x556f76,_0x115737[_0x3a68fc(0x400)]);_0x107ed5&&(this[_0x3a68fc(0x276)]=_0x107ed5[_0x3a68fc(0x29d)](),this[_0x3a68fc(0x27c)](),this[_0x3a68fc(0x3ac)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x5cee11=_0x2d0df6;this[_0x5cee11(0x2fd)](this['_drawingManagerService'][_0x5cee11(0x2cd)][_0x5cee11(0x365)](_0x38de75=>{const _0x14be9e=_0x5cee11;if(_0x38de75['length']===0x1){let _0x126a92=_0x38de75[0x0];if(_0x126a92[_0x14be9e(0x309)]===_0x21920f[_0x14be9e(0x195)]){let {unitId:_0x37725e,subUnitId:_0x31ff46,drawingId:_0x482161}=_0x126a92,_0x5aa948=this[_0x14be9e(0x3a4)](_0x37725e,_0x31ff46,_0x482161);if(_0x5aa948){var _0x3dfe0a,_0x152f29;this[_0x14be9e(0x29b)]=_0x482161,this['_unitId']=_0x37725e,this[_0x14be9e(0x3d0)]=_0x31ff46;let _0x2675bc=this[_0x14be9e(0x42a)](_0x37725e,_0x31ff46,_0x482161),_0x8040de=(_0x2675bc==null||(_0x3dfe0a=_0x2675bc[_0x14be9e(0x284)])==null?void 0x0:_0x3dfe0a[_0x14be9e(0x373)])||0x0,_0x59920a=(_0x2675bc==null||(_0x152f29=_0x2675bc[_0x14be9e(0x284)])==null?void 0x0:_0x152f29[_0x14be9e(0x18b)])||0x0,_0xe2ab25=this[_0x14be9e(0x3d1)](_0x5aa948[_0x14be9e(0x35f)],_0x8040de,_0x59920a,_0x5aa948['adjustValues']);_0xe2ab25&&(this[_0x14be9e(0x276)]=_0xe2ab25[_0x14be9e(0x29d)]()),this['_clearControls'](),this[_0x14be9e(0x3ac)](!0x0);}else this['_resetState']();}else this[_0x14be9e(0x32f)]();}else this[_0x14be9e(0x32f)]();})),this[_0x5cee11(0x2fd)](this['_drawingManagerService']['update$']['subscribe'](_0x43832a=>{const _0x20ca58=_0x5cee11;if(_0x43832a[_0x20ca58(0x3a5)]===0x1){let _0x36c8b0=_0x43832a[0x0],_0x2000c5=this[_0x20ca58(0x34f)][_0x20ca58(0x190)](_0x36c8b0);(_0x2000c5==null?void 0x0:_0x2000c5[_0x20ca58(0x309)])===_0x21920f['DRAWING_IMAGE']&&this[_0x20ca58(0x29b)]===_0x36c8b0[_0x20ca58(0x1e2)]&&(this[_0x20ca58(0x27c)](),this['_createControls'](!0x0));}})),this[_0x5cee11(0x2fd)](this[_0x5cee11(0x34f)]['remove$']['subscribe'](_0x2ac3a0=>{const _0x64dbda=_0x5cee11;for(let _0x2ce650 of _0x2ac3a0)this[_0x64dbda(0x29b)]===_0x2ce650[_0x64dbda(0x1e2)]&&this['_resetState']();}));}['_resetState'](){const _0x399a5c=_0x2d0df6;this['_activeImageId']=null,this[_0x399a5c(0x35e)]=null,this[_0x399a5c(0x3d0)]=null,this[_0x399a5c(0x276)]=void 0x0,this[_0x399a5c(0x27c)]();}};Ui=Y([J(0x1,_0x569480),J(0x2,_0x337030(_0xac3281)),J(0x3,_0x1469ba),J(0x4,_0x337030(Q))],Ui);function Wi(_0x45a88e){return _0x45a88e['trim']()||void 0x0;}function Gi(_0x219067,_0x57f76c,_0x461c8f){const _0x43751d=_0x2d0df6;var _0x568935;return((_0x568935=_0x219067[_0x43751d(0x413)])==null?void 0x0:_0x568935[_0x43751d(0x347)]())||_0x461c8f['t'](_0x43751d(0x2b1)+_0x472bed(_0x219067['drawingType']))+'\x20'+(_0x57f76c+0x1);}function Ki({PanelComponent:_0x162e13=_0x3c681a}){const _0x565b43=_0x2d0df6;var _0x5ef4ac;let _0x41d04f=_0x21d47a(_0x37c40f),_0x382303={'title':_0x41d04f['t']('drawing-ui.objectListPanel.title'),'empty':_0x41d04f['t'](_0x565b43(0x27f)),'showAll':_0x41d04f['t'](_0x565b43(0x397)),'hideAll':_0x41d04f['t'](_0x565b43(0x22f)),'lockAll':_0x41d04f['t'](_0x565b43(0x3b1)),'unlockAll':_0x41d04f['t']('drawing-ui.objectListPanel.unlockAll'),'moveForward':_0x41d04f['t'](_0x565b43(0x3b0)),'moveBackward':_0x41d04f['t'](_0x565b43(0x28b)),'close':_0x41d04f['t'](_0x565b43(0x31c)),'show':_0x41d04f['t'](_0x565b43(0x2d3)),'hide':_0x41d04f['t'](_0x565b43(0x403)),'lock':_0x41d04f['t'](_0x565b43(0x183)),'unlock':_0x41d04f['t'](_0x565b43(0x26d)),'lockHint':_0x41d04f['t'](_0x565b43(0x3b3)),'unlockHint':_0x41d04f['t'](_0x565b43(0x3ab)),'name':_0x41d04f['t'](_0x565b43(0x3c9)),'nameInput':_0x41d04f['t'](_0x565b43(0x3f0)),'description':_0x41d04f['t'](_0x565b43(0x321)),'descriptionPlaceholder':_0x41d04f['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x41d04f['t'](_0x565b43(0x2c6)),'noSelection':_0x41d04f['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x41d04f['t']('drawing-ui.objectListPanel.locate'),'expand':_0x41d04f['t']('drawing-ui.objectListPanel.expand'),'collapse':_0x41d04f['t'](_0x565b43(0x3f2)),'dragToReorder':_0x41d04f['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x41d04f['t'](_0x565b43(0x2ed)),'filterAll':_0x41d04f['t'](_0x565b43(0x1b3)),'filterHidden':_0x41d04f['t'](_0x565b43(0x367)),'filterLocked':_0x41d04f['t'](_0x565b43(0x2de)),'sectionCanvas':_0x41d04f['t'](_0x565b43(0x310)),'sectionFloating':_0x41d04f['t'](_0x565b43(0x3f8))},_0x2f0162=_0x21d47a(_0x4a7048),_0x2fd15f=_0x21d47a(_0x1469ba),_0x1a62b6=_0x21d47a(_0x492aa7),_0x53196b=_0x21d47a(_0x569480),_0x6a8232=_0x21d47a(_0xac3281),[,_0x41c5b8]=_0x28b5bf(_0x12cfa7=>_0x12cfa7+0x1,0x0),_0x31d870=_0x2fd15f[_0x565b43(0x25a)](_0x2711d0[_0x565b43(0x2c9)]),_0x59c61c=(_0x31d870==null?void 0x0:_0x31d870[_0x565b43(0x1c7)]())??'',_0x59ead1=(_0x31d870==null||(_0x5ef4ac=_0x31d870['getActiveSheet']())==null?void 0x0:_0x5ef4ac[_0x565b43(0x37d)]())??'',_0x3701bf=_0x460498(()=>_0x53196b[_0x565b43(0x2cd)],_0x53196b[_0x565b43(0x1dd)](),!0x1,[_0x53196b]);_0x4cf784(()=>{const _0x3c4bcf=_0x565b43;let _0x5bcf43=_0x2f0162[_0x3c4bcf(0x428)](()=>_0x41c5b8());return()=>_0x5bcf43['dispose']();},[_0x2f0162]);let _0x1ff66c=_0x59c61c&&_0x59ead1?_0x1a62b6[_0x565b43(0x1b6)](_0x59c61c,_0x59ead1):{},_0x576bc1=(_0x59c61c&&_0x59ead1?_0x1a62b6['getDrawingOrder'](_0x59c61c,_0x59ead1):[])[_0x565b43(0x3f6)](_0x111606=>_0x1ff66c[_0x111606])[_0x565b43(0x333)](_0x154d10=>!!_0x154d10)[_0x565b43(0x3cf)](),_0xe3d79f=_0x576bc1['reduce']((_0x29873b,_0x13f84f)=>(_0x29873b[_0xd57d81(_0x13f84f[_0x565b43(0x309)])]+=0x1,_0x29873b),{'canvas':0x0,'floating':0x0}),_0x360b4a={'canvas':0x0,'floating':0x0},_0x316fb=_0x576bc1[_0x565b43(0x3f6)]((_0x6620e7,_0x7abe91)=>{const _0x59b966=_0x565b43;let _0x2ba6d2=_0xd57d81(_0x6620e7[_0x59b966(0x309)]),_0x22fde7=_0x2ba6d2===_0x58ccde,_0x1a9338=_0x360b4a[_0x2ba6d2]++;return{'id':_0x6620e7[_0x59b966(0x1e2)],'name':Gi(_0x6620e7,_0x7abe91,_0x41d04f),'description':_0x6620e7[_0x59b966(0x3e7)],'visible':_0x6620e7[_0x59b966(0x3d5)]!==!0x0,'selectable':_0x6620e7[_0x59b966(0x320)]!==!0x1,'sectionId':_0x2ba6d2,'sectionTitle':_0x22fde7?_0x382303[_0x59b966(0x2e3)]:_0x382303[_0x59b966(0x247)],'capabilities':_0x22fde7?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x22fde7&&_0x1a9338>0x0,'canMoveBackward':!_0x22fde7&&_0x1a9338<_0xe3d79f[_0x59b966(0x19c)]-0x1,'canReorder':!_0x22fde7};}),_0x2a42d6=_0x3e840e(()=>(_0x3701bf??[])[_0x565b43(0x333)](_0x153cae=>_0x153cae[_0x565b43(0x2eb)]===_0x59c61c&&_0x153cae[_0x565b43(0x1c3)]===_0x59ead1)[_0x565b43(0x3f6)](_0x1832db=>_0x1832db[_0x565b43(0x1e2)]),[_0x3701bf,_0x59ead1,_0x59c61c]),_0x24e914=_0x2a42d6[_0x2a42d6[_0x565b43(0x3a5)]-0x1]??null,_0x3d5d91=_0x5daf14=>_0x1a62b6[_0x565b43(0x190)]({'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingId':_0x5daf14})??null,_0x4143f6=async _0x36af90=>{const _0x31403e=_0x565b43;_0x59c61c&&_0x36af90[_0x31403e(0x3a5)]&&await _0x2f0162[_0x31403e(0x1c1)](_0x24592a['id'],{'unitId':_0x59c61c,'drawings':_0x36af90});},_0x50802b=async(_0x293953,_0x2c325f)=>{_0x3d5d91(_0x293953)&&await _0x4143f6([{'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingId':_0x293953,..._0x2c325f}]);},_0x2aeae8=(_0x1bf3d1,_0x85d39b)=>{const _0x2d0178=_0x565b43;if(!_0x59c61c||!_0x59ead1)return;let _0x540c13=_0x85d39b?_0x2a42d6[_0x2d0178(0x289)](_0x1bf3d1)?_0x2a42d6[_0x2d0178(0x333)](_0x354ca3=>_0x354ca3!==_0x1bf3d1):[..._0x2a42d6,_0x1bf3d1]:[_0x1bf3d1];_0x2f0162[_0x2d0178(0x17b)](_0x4b870a['id'],_0x540c13[_0x2d0178(0x3f6)](_0x5f0de4=>({'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingId':_0x5f0de4})));let _0x54546f=_0x540c13[_0x540c13['length']-0x1];_0x54546f?_0xea75e6(_0x6a8232,{'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingId':_0x54546f}):_0x596a84(_0x6a8232,_0x59c61c);},_0x5885ac=async(_0x441619,_0x4b8de2)=>{const _0x49a3b4=_0x565b43;await _0x4143f6(_0x441619[_0x49a3b4(0x3f6)](_0x8d9f42=>_0x3d5d91(_0x8d9f42))[_0x49a3b4(0x333)](_0x30d93e=>!!_0x30d93e)['filter'](_0x2f7935=>_0x2f7935[_0x49a3b4(0x3d5)]!==!0x0!==_0x4b8de2)[_0x49a3b4(0x3f6)](_0x421eb9=>({'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingId':_0x421eb9[_0x49a3b4(0x1e2)],'hidden':!_0x4b8de2})));},_0x39ab81=async(_0x4e468e,_0x89ec9c)=>{const _0xe74aef=_0x565b43;await _0x4143f6(_0x4e468e[_0xe74aef(0x3f6)](_0x261a54=>_0x3d5d91(_0x261a54))['filter'](_0x1ebb39=>!!_0x1ebb39)[_0xe74aef(0x333)](_0x1b4724=>_0x1b4724[_0xe74aef(0x320)]!==!0x1!==_0x89ec9c)['map'](_0x57db1b=>({'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingId':_0x57db1b[_0xe74aef(0x1e2)],'selectable':_0x89ec9c})));},_0x373a3f=_0x1e899d=>{const _0x3cb081=_0x565b43;let _0x1fb20e=_0x3d5d91(_0x1e899d);if(_0x1fb20e)return _0x39ab81([_0x1e899d],_0x1fb20e[_0x3cb081(0x320)]===!0x1);},_0x2d4f6c=async(_0x15cf3d,_0xa7cb4b)=>{const _0x5b48d8=_0x565b43;var _0x3d7776;let _0x33cd7b=Wi(_0xa7cb4b);(((_0x3d7776=_0x3d5d91(_0x15cf3d))==null?void 0x0:_0x3d7776[_0x5b48d8(0x413)])??void 0x0)!==_0x33cd7b&&await _0x50802b(_0x15cf3d,{'name':_0x33cd7b});},_0xe62600=async(_0x3be6eb,_0x276ccf)=>{const _0x3d6fd1=_0x565b43;var _0x3c7d5e;let _0x5a1d33=Wi(_0x276ccf);(((_0x3c7d5e=_0x3d5d91(_0x3be6eb))==null?void 0x0:_0x3c7d5e[_0x3d6fd1(0x3e7)])??void 0x0)!==_0x5a1d33&&await _0x50802b(_0x3be6eb,{'description':_0x5a1d33});},_0x4f887c=async(_0x306ecf,_0x1aae95)=>{const _0x4291bd=_0x565b43;_0x59c61c&&_0x59ead1&&await _0x2f0162[_0x4291bd(0x1c1)](_0x1d9abf['id'],{'unitId':_0x59c61c,'subUnitId':_0x59ead1,'drawingIds':[_0x306ecf],'arrangeType':_0x1aae95});};return!_0x59c61c||!_0x59ead1?_0x3380eb(_0x565b43(0x16d),{'className':_0x565b43(0x171),'children':_0x382303[_0x565b43(0x23b)]}):_0x3380eb(_0x162e13,{'labels':_0x382303,'items':_0x316fb,'selectedIds':_0x2a42d6,'focusedId':_0x24e914,'showHeader':!0x1,'onSelect':_0x2aeae8,'onSetVisible':_0x5885ac,'onSetSelectable':_0x39ab81,'onCommitName':_0x2d4f6c,'onCommitDescription':_0xe62600,'onMoveForward':async _0x411f15=>_0x4f887c(_0x411f15,_0x2b1d62[_0x565b43(0x207)]),'onMoveBackward':async _0x31ed53=>_0x4f887c(_0x31ed53,_0x2b1d62[_0x565b43(0x1a3)]),'onToggleSelectable':_0x373a3f});}function qi(){return _0x3380eb(Ki,{'PanelComponent':_0x15f5a3});}let Ji=class extends _0x12ab23{constructor(_0x246356,_0x2ffdf1){const _0x2fd3df=_0x2d0df6;super(),this['disposeWithMe'](_0x246356[_0x2fd3df(0x3c2)](jr,qi)),this[_0x2fd3df(0x2fd)](_0x2ffdf1[_0x2fd3df(0x3c2)]({'BottomIcon':_0x4b42da,'FlipHorizontalIcon':_0x3b3e83,'FlipVerticalIcon':_0xe9d97c,'MoveDownIcon':_0x228ede,'MoveUpIcon':_0x4fac57,'ObjectLayersIcon':_0x106bf2,'ShapeFormatSettingIcon':_0x3d6914,'TopmostIcon':_0x1bc2e3})),this[_0x2fd3df(0x2fd)](_0x246356['register'](Vr,Jr)),this[_0x2fd3df(0x2fd)](_0x246356['register'](Hr,Gr)),_0x246356[_0x2fd3df(0x16b)](_0x84139e)||this[_0x2fd3df(0x2fd)](_0x246356[_0x2fd3df(0x3c2)](_0x84139e,Kr));}};Ji=Y([J(0x0,_0x337030(_0x164eca)),J(0x1,_0x337030(_0x2251c5))],Ji);let $=class extends _0x12ab23{constructor(_0x8366c2){const _0x1743a4=_0x2d0df6;super(),this[_0x1743a4(0x222)]=_0x8366c2,q(this,_0x1743a4(0x2cf),new _0x2fdcb7(null)),q(this,_0x1743a4(0x238),this['_editingParams$'][_0x1743a4(0x288)]()),q(this,_0x1743a4(0x30c),new _0x2fdcb7(!0x1)),q(this,_0x1743a4(0x2b8),this[_0x1743a4(0x30c)]['asObservable']()),q(this,_0x1743a4(0x1a5),void 0x0),this[_0x1743a4(0x2fd)](this[_0x1743a4(0x222)][_0x1743a4(0x40c)][_0x1743a4(0x365)](()=>{const _0x260307=_0x1743a4;let _0x438de7=this['getEditing']();_0x438de7!=null&&_0x438de7[_0x260307(0x28a)]&&!this[_0x260307(0x358)](_0x438de7)&&this[_0x260307(0x1d4)](null);}));}[_0x2d0df6(0x1e1)](){const _0x4bfa45=_0x2d0df6;this[_0x4bfa45(0x194)](),this[_0x4bfa45(0x2cf)][_0x4bfa45(0x224)](null),this[_0x4bfa45(0x2cf)][_0x4bfa45(0x34c)](),this[_0x4bfa45(0x30c)][_0x4bfa45(0x224)](!0x1),this[_0x4bfa45(0x30c)]['complete'](),super[_0x4bfa45(0x1e1)]();}[_0x2d0df6(0x1d4)](_0x3e653e){const _0x5e6223=_0x2d0df6;(_0x3e653e==null||!_0x3e653e[_0x5e6223(0x28a)]||this[_0x5e6223(0x358)](_0x3e653e))&&(this[_0x5e6223(0x194)](),this['_editingParams$'][_0x5e6223(0x224)](_0x3e653e),(_0x3e653e==null||_0x3e653e[_0x5e6223(0x28a)]&&this[_0x5e6223(0x30c)]['getValue']())&&this['_onSavingEditorData$'][_0x5e6223(0x224)](!0x1));}[_0x2d0df6(0x300)](_0x3e697b){const _0x33c43a=_0x2d0df6;this['_onSavingEditorData$'][_0x33c43a(0x224)](_0x3e697b);}[_0x2d0df6(0x26c)](){const _0x486ed4=_0x2d0df6;return this[_0x486ed4(0x2cf)][_0x486ed4(0x1af)]();}[_0x2d0df6(0x358)](_0x3709f2){const _0x12b513=_0x2d0df6;let _0x51d9df=this[_0x12b513(0x222)][_0x12b513(0x2e0)](new _0x2279d5(_0x3709f2[_0x12b513(0x2eb)])['id']),_0x34b748=this[_0x12b513(0x222)]['getPermissionPoint'](new _0x840079(_0x3709f2[_0x12b513(0x2eb)],_0x3709f2[_0x12b513(0x1c3)])['id']);return((_0x51d9df==null?void 0x0:_0x51d9df[_0x12b513(0x3c7)])??!0x0)&&((_0x34b748==null?void 0x0:_0x34b748[_0x12b513(0x3c7)])??!0x0);}[_0x2d0df6(0x2d0)](_0x4a55d9){const _0x5117e9=_0x2d0df6;let _0x53a905=this[_0x5117e9(0x26c)]();_0x53a905&&this[_0x5117e9(0x1a5)]===void 0x0&&(this[_0x5117e9(0x300)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5839a9=_0x5117e9;this['_completionFrame']=void 0x0,this['getEditing']()===_0x53a905&&this[_0x5839a9(0x1d4)](null);}));}[_0x2d0df6(0x194)](){const _0x42bdb6=_0x2d0df6;this[_0x42bdb6(0x1a5)]!==void 0x0&&(cancelAnimationFrame(this[_0x42bdb6(0x1a5)]),this['_completionFrame']=void 0x0);}['cancelEditing'](){const _0x5c48c9=_0x2d0df6;this[_0x5c48c9(0x26c)]()&&this['setEditing'](null);}};$=Y([J(0x0,_0xefc875)],$);let Yi=class extends _0x12ab23{constructor(_0x13556b,_0x9745e6,_0x811dcb,_0x15bb09,_0xf99d01,_0x5a2c7b){const _0x1ec450=_0x2d0df6;super(),this[_0x1ec450(0x3ca)]=_0x13556b,this[_0x1ec450(0x3de)]=_0x9745e6,this[_0x1ec450(0x34d)]=_0x811dcb,this[_0x1ec450(0x34f)]=_0x15bb09,this[_0x1ec450(0x1bc)]=_0xf99d01,this['_sheetsShapeService']=_0x5a2c7b,q(this,_0x1ec450(0x2ea),null),this[_0x1ec450(0x3a6)](),this['_initSelection'](),this[_0x1ec450(0x161)]();}[_0x2d0df6(0x3a6)](){const _0x47f3dd=_0x2d0df6;let {scene:_0xf34c81}=this[_0x47f3dd(0x3ca)];this[_0x47f3dd(0x2fd)](_0xf34c81[_0x47f3dd(0x16a)][_0x47f3dd(0x1de)](_0x538ab3=>{const _0x578fd3=_0x47f3dd;let {offsetX:_0xd78036,offsetY:_0x3ee206}=_0x538ab3,_0x17aeb0=_0xf34c81[_0x578fd3(0x1ed)](_0x4e2c7[_0x578fd3(0x2aa)]([_0xd78036,_0x3ee206]));if(_0x17aeb0 instanceof Er){let _0x3ed281=this[_0x578fd3(0x1b8)][_0x578fd3(0x26f)](_0x17aeb0[_0x578fd3(0x2eb)],_0x17aeb0[_0x578fd3(0x1c3)],_0x17aeb0['shapeId']);if(_0x2f1e1e(this[_0x578fd3(0x1b8)][_0x578fd3(0x1bd)](_0x17aeb0['unitId'],_0x17aeb0[_0x578fd3(0x1c3)],_0x17aeb0[_0x578fd3(0x192)]))||_0x3ed281!=null&&_0x3ed281[_0x578fd3(0x353)]()[_0x578fd3(0x3ef)])return;this[_0x578fd3(0x34d)]['setEditing']({'visible':!0x0,'unitId':_0x17aeb0[_0x578fd3(0x2eb)],'subUnitId':_0x17aeb0[_0x578fd3(0x1c3)],'shapeId':_0x17aeb0[_0x578fd3(0x192)],'shapeKey':_0x17aeb0[_0x578fd3(0x270)]});}}));}[_0x2d0df6(0x419)](){const _0x9b5fb9=_0x2d0df6;this[_0x9b5fb9(0x2fd)](this[_0x9b5fb9(0x34f)]['focus$'][_0x9b5fb9(0x365)](_0x55721c=>{const _0x322699=_0x9b5fb9;if(_0x55721c['length']===0x1){let _0x371f22=_0x55721c[0x0],_0x563dca=this[_0x322699(0x34f)][_0x322699(0x190)](_0x371f22);if((_0x563dca==null?void 0x0:_0x563dca[_0x322699(0x309)])===_0x21920f[_0x322699(0x219)]){var _0x47db03;let _0x5b6903=this['_shapeTextEditingService'][_0x322699(0x26c)]();if((_0x5b6903==null?void 0x0:_0x5b6903[_0x322699(0x192)])===_0x371f22[_0x322699(0x1e2)]&&_0x5b6903[_0x322699(0x28a)])return;let _0x307a34=_0x2f1e1e(this[_0x322699(0x1b8)][_0x322699(0x1bd)](_0x371f22[_0x322699(0x2eb)],_0x371f22[_0x322699(0x1c3)],_0x371f22[_0x322699(0x1e2)])),_0x4af3eb=!!((_0x47db03=this[_0x322699(0x1b8)][_0x322699(0x26f)](_0x371f22[_0x322699(0x2eb)],_0x371f22[_0x322699(0x1c3)],_0x371f22[_0x322699(0x1e2)]))!=null&&_0x47db03[_0x322699(0x353)]()['formulaBinding']);(_0x307a34||_0x4af3eb)&&this['_shapeTextEditingService'][_0x322699(0x1d4)](null);}else this[_0x322699(0x34d)]['completeEditing']();}else this[_0x322699(0x34d)][_0x322699(0x2d0)]();})),this[_0x9b5fb9(0x2fd)](this[_0x9b5fb9(0x34f)][_0x9b5fb9(0x209)][_0x9b5fb9(0x365)](_0x43f547=>{const _0x3a1a55=_0x9b5fb9;let _0x9f1902=this[_0x3a1a55(0x34d)][_0x3a1a55(0x26c)]();_0x9f1902&&_0x43f547[_0x3a1a55(0x30b)](_0x330c29=>_0x330c29['drawingId']===_0x9f1902['shapeId'])&&this[_0x3a1a55(0x34d)][_0x3a1a55(0x1d4)](null);}));}[_0x2d0df6(0x161)](){const _0x46a230=_0x2d0df6;this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x46a230(0x365)](_0x4676f4=>{const _0x4964ea=_0x46a230;let {scene:_0x4cdefb}=this[_0x4964ea(0x3ca)];if(this[_0x4964ea(0x2ea)]){let _0x3e29a2=_0x4cdefb[_0x4964ea(0x2f1)](this['_lastEditingShapeKey']);_0x3e29a2&&_0x3e29a2['setEditing'](!0x1);}if(_0x4676f4){let _0x2d9d77=!!_0x4676f4[_0x4964ea(0x28a)],_0x3ec7af=_0x4cdefb[_0x4964ea(0x2f1)](_0x4676f4[_0x4964ea(0x32b)]);_0x3ec7af&&(_0x3ec7af[_0x4964ea(0x1d4)](_0x2d9d77),this[_0x4964ea(0x2ea)]=_0x4676f4[_0x4964ea(0x32b)]),this[_0x4964ea(0x1bc)][_0x4964ea(0x254)](_0x421648,_0x2d9d77);}else this[_0x4964ea(0x2ea)]=null,this[_0x4964ea(0x1bc)][_0x4964ea(0x254)](_0x421648,!0x1);}));}};Yi=Y([J(0x1,_0x337030(_0xb34587)),J(0x2,_0x337030($)),J(0x3,_0x569480),J(0x4,_0x2ecdf8),J(0x5,_0x337030(_0x1697a4))],Yi);function _0xd82a(_0x303f9b,_0x31ad51){_0x303f9b=_0x303f9b-0x15b;const _0x610ef=_0x610e();let _0xd82aaa=_0x610ef[_0x303f9b];return _0xd82aaa;}var Xi=class extends Yi{[_0x2d0df6(0x3a6)](){const _0x269a2d=_0x2d0df6;let {scene:_0x430556}=this[_0x269a2d(0x3ca)],_0x466d75=this['_injector'][_0x269a2d(0x16b)](_0x407672);this[_0x269a2d(0x2fd)](_0x430556['onDblclick$'][_0x269a2d(0x1de)](_0x2384bc=>{const _0x4495e4=_0x269a2d;let {offsetX:_0x367c9f,offsetY:_0x1d0509}=_0x2384bc,_0x759e1c=_0x430556[_0x4495e4(0x1ed)](_0x4e2c7['FromArray']([_0x367c9f,_0x1d0509]));if(!(_0x759e1c instanceof Er))return;let _0x475a4c=this[_0x4495e4(0x1b8)][_0x4495e4(0x26f)](_0x759e1c[_0x4495e4(0x2eb)],_0x759e1c[_0x4495e4(0x1c3)],_0x759e1c[_0x4495e4(0x192)]);_0x2f1e1e(this[_0x4495e4(0x1b8)][_0x4495e4(0x1bd)](_0x759e1c[_0x4495e4(0x2eb)],_0x759e1c[_0x4495e4(0x1c3)],_0x759e1c['shapeId']))||_0x475a4c!=null&&_0x475a4c['getShapeData']()[_0x4495e4(0x3ef)]||_0x466d75[_0x4495e4(0x340)]('text',{'hostType':_0x2711d0[_0x4495e4(0x2c9)],'unitId':_0x759e1c[_0x4495e4(0x2eb)],'subUnitId':_0x759e1c[_0x4495e4(0x1c3)],'shapeId':_0x759e1c[_0x4495e4(0x192)]});}));}};const Zi={...Ii};let Qi=class extends _0x12ab23{constructor(_0x41fee3,_0xddd122,_0x344ade,_0x474fcf,_0x437b00,_0x16befb,_0x3344b1,_0x94a5fa){const _0x51e649=_0x2d0df6;super(),this['_menuManagerService']=_0x41fee3,this['_sheetsShapeService']=_0xddd122,this[_0x51e649(0x398)]=_0x344ade,this[_0x51e649(0x34f)]=_0x474fcf,this[_0x51e649(0x28f)]=_0x437b00,this[_0x51e649(0x1bc)]=_0x16befb,this[_0x51e649(0x3ea)]=_0x3344b1,this[_0x51e649(0x34d)]=_0x94a5fa,q(this,_0x51e649(0x3fb),null),this[_0x51e649(0x32a)][_0x51e649(0x235)](Zi),this[_0x51e649(0x266)](),this[_0x51e649(0x2fd)](this[_0x51e649(0x34d)][_0x51e649(0x238)][_0x51e649(0x365)](_0x2e5cda=>{const _0x25f9be=_0x51e649;_0x2e5cda&&this[_0x25f9be(0x345)]();}));}[_0x2d0df6(0x19f)](){const _0xe05c70=_0x2d0df6;this[_0xe05c70(0x3fb)]||=this['disposeWithMe'](_0x4d2a81(this[_0xe05c70(0x3ea)],_0x2711d0[_0xe05c70(0x2c9)],_0x4c560b=>this[_0xe05c70(0x211)](_0x4c560b)));}[_0x2d0df6(0x266)](){const _0x4a3ee4=_0x2d0df6;this['_sheetCanvasPopManagerService'][_0x4a3ee4(0x2bc)](_0x21920f['DRAWING_SHAPE'],(_0xdbdb41,_0x15aa4d,_0x41bb73,_0xb0ad17)=>{const _0x112b57=_0x4a3ee4;let _0x219bbf=this['_sheetsShapeService']['getShapeTypeById'](_0xdbdb41,_0x15aa4d,_0x41bb73),_0x3d0dd5=this[_0x112b57(0x1b8)]['getShapeDataById'](_0xdbdb41,_0x15aa4d,_0x41bb73),_0x4220d7=_0x219bbf!==void 0x0&&!_0x2f1e1e(_0x219bbf)&&!(_0x3d0dd5!=null&&_0x3d0dd5[_0x112b57(0x3ef)]);return[{'label':'sheets-shape-ui.editShape','index':0x0,'commandId':Bi['id'],'commandParams':{'unitId':_0xdbdb41,'subUnitId':_0x15aa4d,'drawingId':_0x41bb73,'mode':_0x112b57(0x1fa)},'disable':!0x1},..._0x4220d7?[{'label':_0x112b57(0x244),'index':0x1,'commandId':Bi['id'],'commandParams':{'unitId':_0xdbdb41,'subUnitId':_0x15aa4d,'drawingId':_0x41bb73,'mode':_0x112b57(0x38b)},'disable':!0x1}]:[],{'label':_0x112b57(0x2c5),'index':0x2,'commandId':_0x25d548['id'],'commandParams':{'unitId':_0xdbdb41,'drawings':[{'unitId':_0xdbdb41,'subUnitId':_0x15aa4d,'drawingId':_0x41bb73,'drawingType':_0xb0ad17}]},'disable':!0x1},{'label':_0x112b57(0x3bb),'index':0x3,'commandId':_0x9c81d0['id'],'commandParams':{'unitId':_0xdbdb41,'subUnitId':_0x15aa4d,'shapeId':_0x41bb73,'flipH':!0x0},'disable':!0x1},{'label':_0x112b57(0x1f9),'index':0x4,'commandId':_0x9c81d0['id'],'commandParams':{'unitId':_0xdbdb41,'subUnitId':_0x15aa4d,'shapeId':_0x41bb73,'flipV':!0x0},'disable':!0x1}];},_0x4a3ee4(0x2ad));}[_0x2d0df6(0x211)](_0x2914c0){const _0x2ea221=_0x2d0df6;let _0x138b3c=new _0x1e89a7(),_0x3d1337=null,_0x5c9795=()=>{const _0x35e564=_0xd82a;if(!_0x3d1337)return;let _0x4a8e33=this['_drawingManagerService']['getFocusDrawings'](),_0x530e9c=_0x4a8e33[_0x35e564(0x3a5)]===0x0||_0x4a8e33['length']===0x1&&_0x4a8e33[_0x35e564(0x30b)](_0x25b8b4=>_0x25b8b4[_0x35e564(0x2eb)]===(_0x3d1337==null?void 0x0:_0x3d1337[_0x35e564(0x2eb)])&&_0x25b8b4[_0x35e564(0x1c3)]===(_0x3d1337==null?void 0x0:_0x3d1337['subUnitId'])&&_0x25b8b4[_0x35e564(0x1e2)]===(_0x3d1337==null?void 0x0:_0x3d1337[_0x35e564(0x1e2)]));_0x3d1337=null,_0x530e9c&&(this[_0x35e564(0x1bc)][_0x35e564(0x254)](_0xd7e9ce,!0x1),this[_0x35e564(0x34f)]['focusDrawing'](null));};return _0x138b3c[_0x2ea221(0x1e6)](_0x2914c0[_0x2ea221(0x1db)][_0x2ea221(0x365)](()=>{const _0x3db65c=_0x2ea221;let _0x3ebb07=_0x2914c0[_0x3db65c(0x181)]();if(_0x3ebb07[_0x3db65c(0x3e1)]>0x1){_0x5c9795();return;}let _0x1d87cb=_0x3ebb07[_0x3db65c(0x39c)]()[_0x3db65c(0x224)]()[_0x3db65c(0x3c7)];if(!_0x1d87cb){_0x5c9795();return;}let _0x18e0ac=this[_0x3db65c(0x34f)]['getDrawingOKey'](_0x1d87cb[_0x3db65c(0x270)]);if(!_0x18e0ac||_0x18e0ac[_0x3db65c(0x309)]!==_0x21920f[_0x3db65c(0x219)]){_0x5c9795();return;}let {unitId:_0x51950a,subUnitId:_0x2a7f4d,drawingId:_0x158bcd}=_0x18e0ac;_0x3d1337={'unitId':_0x51950a,'subUnitId':_0x2a7f4d,'drawingId':_0x158bcd},this[_0x3db65c(0x1bc)]['setContextValue'](_0xd7e9ce,!0x0),this['_drawingManagerService'][_0x3db65c(0x1dd)]()['find'](_0x73f6d9=>_0x73f6d9[_0x3db65c(0x2eb)]===_0x51950a&&_0x73f6d9[_0x3db65c(0x1c3)]===_0x2a7f4d&&_0x73f6d9[_0x3db65c(0x1e2)]===_0x158bcd)||this[_0x3db65c(0x34f)][_0x3db65c(0x324)]([{'unitId':_0x51950a,'subUnitId':_0x2a7f4d,'drawingId':_0x158bcd}]);})),_0x138b3c[_0x2ea221(0x1e6)](_0x2914c0[_0x2ea221(0x356)][_0x2ea221(0x365)](()=>{_0x5c9795();})),_0x3d1384(()=>{const _0x17ff46=_0x2ea221;_0x138b3c[_0x17ff46(0x1e1)](),_0x5c9795();});}[_0x2d0df6(0x345)](){const _0x39fdc9=_0x2d0df6;this[_0x39fdc9(0x1bc)][_0x39fdc9(0x254)](_0xd7e9ce,!0x1),this[_0x39fdc9(0x34f)][_0x39fdc9(0x324)](null);}};Qi=Y([J(0x0,_0x506622),J(0x1,_0x337030(_0x1697a4)),J(0x2,_0x4a7048),J(0x3,_0x569480),J(0x4,_0x337030(_0x4cea8b)),J(0x5,_0x2ecdf8),J(0x6,_0xac3281),J(0x7,_0x337030($))],Qi);function $i(_0x57b0a9,_0x55bd1e,_0x11a9d9,_0x13c03f){const _0xf87d8c=_0x2d0df6;let _0x3ccdd6=_0x2ff90d(_0x57b0a9,_0x55bd1e,_0x11a9d9),_0x1bda63=[];for(let _0x1914a1 of _0x55bd1e){let _0x507d84=_0x3ccdd6['idMap'][_0xf87d8c(0x16b)](_0x1914a1[_0xf87d8c(0x1e2)]),_0x1c4af2=_0x13c03f(_0x1914a1);_0x507d84&&_0x1c4af2&&_0x1bda63[_0xf87d8c(0x2a8)]({'targetShapeId':_0x507d84,'source':_0x1c4af2});}return _0x1bda63;}let ea=class extends _0x12ab23{constructor(_0x59b31f,_0x30fbc8,_0xcb56ce,_0x5c77d3){const _0x522b0c=_0x2d0df6;super(),this['_univerInstanceService']=_0x59b31f,this[_0x522b0c(0x243)]=_0x30fbc8,this['_sheetDrawingService']=_0xcb56ce,this[_0x522b0c(0x1b8)]=_0x5c77d3,this[_0x522b0c(0x255)]();}['_initSheetChange'](){const _0x126761=_0x2d0df6;this[_0x126761(0x2fd)](this[_0x126761(0x243)][_0x126761(0x21e)]({'getMutations':_0x399297=>{const _0x139b8a=_0x126761;if(_0x399297['id']===_0x1a9a29['id']){let _0xc3fdd5=_0x5342d5(this[_0x139b8a(0x385)],_0x399297[_0x139b8a(0x24a)]);if(!_0xc3fdd5)return{'redos':[],'undos':[]};let {unitId:_0x7338d7,subUnitId:_0x1d98b4}=_0xc3fdd5,_0x76c49b=this[_0x139b8a(0x2ba)][_0x139b8a(0x1b6)](_0x7338d7,_0x1d98b4),_0x5e0e11=Object[_0x139b8a(0x39c)](_0x76c49b)[_0x139b8a(0x333)](_0x4ee4a8=>_0x4ee4a8[_0x139b8a(0x309)]===_0x21920f[_0x139b8a(0x219)]);if(_0x5e0e11['length']===0x0)return{'redos':[],'undos':[]};let _0x579020=[],_0x3f7cb6=[];for(let _0x3f0956=0x0;_0x3f0956<_0x5e0e11[_0x139b8a(0x3a5)];_0x3f0956++){let _0x28a1d4=_0x5e0e11[_0x3f0956],_0x35ed5d=this[_0x139b8a(0x1b8)][_0x139b8a(0x26f)](_0x28a1d4['unitId'],_0x28a1d4[_0x139b8a(0x1c3)],_0x28a1d4[_0x139b8a(0x1e2)]);_0x35ed5d&&(_0x579020['push']({'id':_0x8ab729['id'],'params':{'unitId':_0x7338d7,'subUnitId':_0x1d98b4,'shapeId':_0x28a1d4[_0x139b8a(0x1e2)]}}),_0x3f7cb6[_0x139b8a(0x2a8)]({'id':_0x25e508['id'],'params':{'unitId':_0x7338d7,'subUnitId':_0x1d98b4,'shapeId':_0x28a1d4['drawingId'],'shapeType':_0x35ed5d[_0x139b8a(0x1bd)](),'shapeData':JSON[_0x139b8a(0x256)](JSON['stringify'](_0x35ed5d[_0x139b8a(0x353)]()))}}));}return{'redos':_0x579020,'undos':_0x3f7cb6};}if(_0x399297['id']===_0xced8be['id']){let {unitId:_0x10fc90,subUnitId:_0x5a3994,targetSubUnitId:_0x21b628,copyContext:_0x40c7b6}=_0x399297[_0x139b8a(0x24a)];if(!_0x10fc90||!_0x5a3994||!_0x21b628)return{'redos':[],'undos':[]};let _0x27c740=this[_0x139b8a(0x2ba)][_0x139b8a(0x1b6)](_0x10fc90,_0x5a3994),_0x528970=Object[_0x139b8a(0x39c)](_0x27c740)['filter'](_0x2039d2=>_0x2039d2[_0x139b8a(0x309)]===_0x21920f[_0x139b8a(0x219)]);if(_0x528970[_0x139b8a(0x3a5)]===0x0)return{'redos':[],'undos':[]};let _0x129600=$i(_0x40c7b6,_0x528970,{'unitId':_0x10fc90,'sourceSubUnitId':_0x5a3994,'targetSubUnitId':_0x21b628},_0x3c475f=>{const _0x1706d1=_0x139b8a;let _0x28acbd=this[_0x1706d1(0x1b8)][_0x1706d1(0x26f)](_0x3c475f[_0x1706d1(0x2eb)],_0x3c475f[_0x1706d1(0x1c3)],_0x3c475f[_0x1706d1(0x1e2)]);if(_0x28acbd)return{'shapeType':_0x28acbd['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x1706d1(0x2ff)](_0x28acbd['getShapeData']()))};}),_0x4e72ab=[],_0x178922=[];for(let {targetShapeId:_0x56b97e,source:_0x5068ba}of _0x129600)_0x4e72ab['push']({'id':_0x25e508['id'],'params':{'unitId':_0x10fc90,'subUnitId':_0x21b628,'shapeId':_0x56b97e,'shapeType':_0x5068ba[_0x139b8a(0x2bf)],'shapeData':_0x5068ba[_0x139b8a(0x393)]}}),_0x178922[_0x139b8a(0x2a8)]({'id':_0x8ab729['id'],'params':{'unitId':_0x10fc90,'subUnitId':_0x21b628,'shapeId':_0x56b97e}});return{'redos':_0x4e72ab,'undos':_0x178922};}return{'redos':[],'undos':[]};}}));}};ea=Y([J(0x0,_0x337030(_0x1469ba)),J(0x1,_0x337030(_0x4ca793)),J(0x2,_0x337030(_0x492aa7)),J(0x3,_0x337030(_0x1697a4))],ea);let ta=class extends _0x12ab23{constructor(_0x183949,_0x33a031,_0x12fd6f,_0x3d5812,_0x29ba31,_0x516878){const _0x2e21e0=_0x2d0df6;super(),this['_commandService']=_0x183949,this[_0x2e21e0(0x3ea)]=_0x33a031,this[_0x2e21e0(0x34f)]=_0x12fd6f,this[_0x2e21e0(0x240)]=_0x3d5812,this[_0x2e21e0(0x1f4)]=_0x29ba31,this[_0x2e21e0(0x348)]=_0x516878,q(this,_0x2e21e0(0x3e0),new Set()),this['_initialize']();}[_0x2d0df6(0x23f)](){const _0x3eba48=_0x2d0df6;this[_0x3eba48(0x390)](),this['_commandExecutedListener'](),this[_0x3eba48(0x164)]();}[_0x2d0df6(0x390)](){const _0x3afebb=_0x2d0df6;this[_0x3afebb(0x2fd)](this['_drawingManagerService'][_0x3afebb(0x357)][_0x3afebb(0x365)](_0x3c486c=>{this['_insertShapes'](_0x3c486c);}));}['_commandExecutedListener'](){const _0x3ce52d=_0x2d0df6;this[_0x3ce52d(0x2fd)](this[_0x3ce52d(0x398)][_0x3ce52d(0x428)]((_0x5f34d4,_0x23cd3a)=>{const _0x26ea4d=_0x3ce52d;if(_0x5f34d4['id']===_0x1b95a1['id']){let {unitId:_0x2c094c,subUnitId:_0x213c87,shapeId:_0x1e067b}=_0x5f34d4[_0x26ea4d(0x24a)],_0x4ca0b7=this['_getSceneAndTransformerByDrawingSearch'](_0x2c094c),_0x222194=_0x41d737({'unitId':_0x2c094c,'subUnitId':_0x213c87,'drawingId':_0x1e067b}),_0x4d6f27=_0x4ca0b7==null?void 0x0:_0x4ca0b7['scene']['getObjectIncludeInGroup'](_0x222194);_0x4d6f27&&(this[_0x26ea4d(0x348)][_0x26ea4d(0x336)](_0x4d6f27),this[_0x26ea4d(0x348)][_0x26ea4d(0x3a8)](_0x4d6f27,{'unitId':_0x2c094c,'subUnitId':_0x213c87,'shapeId':_0x1e067b}),_0x4d6f27[_0x26ea4d(0x1e7)](!0x0));return;}if(_0x5f34d4['id']===_0x25e508['id']){var _0x5cfed5;let {unitId:_0x374a97,subUnitId:_0x240f8a,shapeId:_0xabc29b}=_0x5f34d4[_0x26ea4d(0x24a)],_0xff72ef=this['_getSceneAndTransformerByDrawingSearch'](_0x374a97);if(_0xff72ef==null)return;let {scene:_0x24283b}=_0xff72ef,_0x5e4d31=_0x41d737({'unitId':_0x374a97,'subUnitId':_0x240f8a,'drawingId':_0xabc29b}),_0x2f702d=_0x24283b[_0x26ea4d(0x2f1)](_0x5e4d31);if(!((_0x5cfed5=this['_renderManagerService'][_0x26ea4d(0x2e5)](_0x374a97))!=null&&_0x5cfed5[_0x26ea4d(0x2ce)](_0x2e5cfd)[_0x26ea4d(0x355)](_0x240f8a)))return!0x1;if(_0x2f702d)return;if(_0x23cd3a!=null&&_0x23cd3a['fromChangeset']){queueMicrotask(()=>{const _0x1f3482=_0x26ea4d;this[_0x1f3482(0x2b7)]||this[_0x1f3482(0x17c)]([{'unitId':_0x374a97,'subUnitId':_0x240f8a,'drawingId':_0xabc29b}]);});return;}this[_0x26ea4d(0x17c)]([{'unitId':_0x374a97,'subUnitId':_0x240f8a,'drawingId':_0xabc29b}]);}}));}[_0x2d0df6(0x164)](){const _0x229106=_0x2d0df6;this['disposeWithMe'](this[_0x229106(0x34f)][_0x229106(0x294)][_0x229106(0x365)](_0x248797=>{_0x248797['forEach'](_0x4a39e3=>{const _0x164136=_0xd82a;let {unitId:_0x279aab,subUnitId:_0x366e0d,drawingId:_0x1d1473}=_0x4a39e3,_0x3ad028=this[_0x164136(0x34f)]['getDrawingByParam'](_0x4a39e3);if(_0x3ad028==null)return;let {transform:_0xa378b8,drawingType:_0x20c3ee,srcRect:_0x1704ec,prstGeom:_0x50afd1}=_0x3ad028;if(_0x20c3ee!==_0x21920f[_0x164136(0x219)])return;let _0x2e4802=this[_0x164136(0x22b)](_0x279aab);if(_0x2e4802==null)return;let {scene:_0x4b591a,transformer:_0x26486b}=_0x2e4802;if(_0xa378b8==null)return!0x0;let _0x32a2ec=_0x41d737({'unitId':_0x279aab,'subUnitId':_0x366e0d,'drawingId':_0x1d1473}),_0xb239fe=_0x4b591a[_0x164136(0x2f1)](_0x32a2ec);if(_0xb239fe==null)return!0x0;_0xb239fe[_0x164136(0x21d)](_0x1704ec),_0xb239fe[_0x164136(0x21c)](_0x50afd1);});}));}[_0x2d0df6(0x17c)](_0x5c0878){const _0x25f4f9=_0x2d0df6;for(let _0x431460 of _0x5c0878){var _0x42d153;let {unitId:_0x16cdee,subUnitId:_0x4315af,drawingId:_0x11c6d1}=_0x431460,_0x5d9af9=this['_getSceneAndTransformerByDrawingSearch'](_0x16cdee),_0x15ed84=(_0x42d153=_0x2a62df(this[_0x25f4f9(0x240)],_0x16cdee))==null?void 0x0:_0x42d153['subUnitId'];if(_0x5d9af9==null||_0x15ed84!==_0x4315af)return;let _0x3cb1f1=_0x41d737({'unitId':_0x16cdee,'subUnitId':_0x4315af,'drawingId':_0x11c6d1});if(this[_0x25f4f9(0x3e0)][_0x25f4f9(0x368)](_0x3cb1f1)||_0x5d9af9['scene']['getObjectIncludeInGroup'](_0x3cb1f1)!=null)return;let _0x2fbc38=this[_0x25f4f9(0x34f)][_0x25f4f9(0x190)](_0x431460);if(_0x2fbc38==null||_0x2fbc38[_0x25f4f9(0x309)]!==_0x21920f[_0x25f4f9(0x219)])return;let _0x3252e2=_0x2fbc38['data']||{};if(_0x2f1e1e(_0x3252e2[_0x25f4f9(0x2bf)])){let _0x5d84a7=_0x2fbc38['transform'];_0x5d84a7&&(_0x2fbc38[_0x25f4f9(0x284)]={..._0x5d84a7,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x25f4f9(0x3e0)]['add'](_0x3cb1f1);try{this[_0x25f4f9(0x348)][_0x25f4f9(0x32d)](_0x2fbc38,_0x5d9af9['scene']);}finally{this[_0x25f4f9(0x3e0)]['delete'](_0x3cb1f1);}queueMicrotask(()=>{const _0x2bf694=_0x25f4f9;if(this['_disposed'])return;let _0x20ca8b=_0x41d737(_0x431460);if(!_0x5d9af9[_0x2bf694(0x34a)][_0x2bf694(0x2f1)](_0x20ca8b))return;let _0x289619=this[_0x2bf694(0x34f)][_0x2bf694(0x190)](_0x431460);_0x289619&&this[_0x2bf694(0x34f)][_0x2bf694(0x1a2)]([_0x289619]);});}}[_0x2d0df6(0x22b)](_0x204fb2){const _0x510a1f=_0x2d0df6;if(_0x204fb2==null)return;let _0xdb954b=this[_0x510a1f(0x3ea)][_0x510a1f(0x2e5)](_0x204fb2),_0x16e091=_0xdb954b==null?void 0x0:_0xdb954b['scene'];return _0x16e091==null?null:{'scene':_0x16e091,'transformer':_0x16e091[_0x510a1f(0x378)]()};}};ta=Y([J(0x0,_0x4a7048),J(0x1,_0xac3281),J(0x2,_0x569480),J(0x3,_0x1469ba),J(0x4,_0x337030(_0x3f8056)),J(0x5,_0x337030(X))],ta);const na={'normal':{'fill':_0x10a8b7[_0x2d0df6(0x15d)],'stroke':_0x10a8b7['cxnPointStroke'],'strokeWidth':_0x10a8b7[_0x2d0df6(0x1c6)]},'highlighted':{'fill':_0x2d0df6(0x3e6),'stroke':_0x2d0df6(0x337),'strokeWidth':0x2}};var ra=class extends _0x580510{constructor(_0x382065,_0x24560a){const _0x546304=_0x2d0df6;super(_0x382065,_0x24560a),q(this,_0x546304(0x30e),''),q(this,_0x546304(0x33d),-0x1),q(this,'_unitId',''),q(this,_0x546304(0x3d0),''),q(this,'_isHighlighted',!0x1),_0x24560a&&this['setShapeProps'](_0x24560a);}[_0x2d0df6(0x19a)](){const _0xf1a50d=_0x2d0df6;return{'unitId':this[_0xf1a50d(0x35e)],'subUnitId':this['_subUnitId'],'shapeId':this[_0xf1a50d(0x30e)],'cxnIndex':this['_cxnIndex']};}[_0x2d0df6(0x1dc)](_0x1d0d71){const _0x5d206a=_0x2d0df6;this[_0x5d206a(0x16c)]!==_0x1d0d71&&(this[_0x5d206a(0x16c)]=_0x1d0d71,this[_0x5d206a(0x1e7)](!0x0));}[_0x2d0df6(0x3c0)](){const _0x40f9f2=_0x2d0df6;return this[_0x40f9f2(0x16c)];}[_0x2d0df6(0x1ad)](_0x463eb6){const _0x1a0e0f=_0x2d0df6;_0x463eb6['targetShapeId']!==void 0x0&&(this[_0x1a0e0f(0x30e)]=_0x463eb6[_0x1a0e0f(0x187)]),_0x463eb6[_0x1a0e0f(0x315)]!==void 0x0&&(this[_0x1a0e0f(0x33d)]=_0x463eb6[_0x1a0e0f(0x315)]),_0x463eb6[_0x1a0e0f(0x2eb)]!==void 0x0&&(this[_0x1a0e0f(0x35e)]=_0x463eb6[_0x1a0e0f(0x2eb)]),_0x463eb6['subUnitId']!==void 0x0&&(this[_0x1a0e0f(0x3d0)]=_0x463eb6[_0x1a0e0f(0x1c3)]),_0x463eb6[_0x1a0e0f(0x3c0)]!==void 0x0&&(this['_isHighlighted']=_0x463eb6[_0x1a0e0f(0x3c0)]),this[_0x1a0e0f(0x1f2)]({'width':_0x463eb6[_0x1a0e0f(0x373)]??_0x10a8b7[_0x1a0e0f(0x314)]*0x2,'height':_0x463eb6['height']??_0x10a8b7[_0x1a0e0f(0x314)]*0x2});}[_0x2d0df6(0x21a)](_0x53ca42){const _0x13116e=_0x2d0df6;let _0x43cc41=this['_isHighlighted']?na['highlighted']:na[_0x13116e(0x28c)];_0x5720b1[_0x13116e(0x283)](_0x53ca42,{'radius':_0x10a8b7[_0x13116e(0x314)],'fill':_0x43cc41[_0x13116e(0x319)],'stroke':_0x43cc41[_0x13116e(0x327)],'strokeWidth':_0x43cc41[_0x13116e(0x3b9)],'evented':!0x0});}};let ia=class extends _0x12ab23{constructor(_0x2bd3b3,_0x1459f5,_0x5c95af,_0x5234f7){const _0x236eca=_0x2d0df6;super(),this[_0x236eca(0x3ca)]=_0x2bd3b3,this[_0x236eca(0x3ea)]=_0x1459f5,this[_0x236eca(0x34f)]=_0x5c95af,this[_0x236eca(0x1b8)]=_0x5234f7,q(this,_0x236eca(0x287),[]),q(this,'_activeTargetShapeId',null),q(this,_0x236eca(0x27d),-0x1),q(this,_0x236eca(0x2e4),null),q(this,'_unitId',''),q(this,_0x236eca(0x3d0),''),q(this,_0x236eca(0x228),null);}[_0x2d0df6(0x27b)](_0xd2b488,_0x568969,_0x49fa90,_0x54caab){const _0x18f25e=_0x2d0df6;this[_0x18f25e(0x2e4)]=_0xd2b488,this[_0x18f25e(0x35e)]=_0x568969,this['_subUnitId']=_0x49fa90,this['_draggingConnectorId']=_0x54caab;}[_0x2d0df6(0x364)](_0x219159){const _0x3e415a=_0x2d0df6;if(!this[_0x3e415a(0x2e4)])return null;let _0x540131=this['_findShapeAtPoint'](_0x219159);return _0x540131?(this[_0x3e415a(0x3f4)]!==_0x540131['shapeId']&&(this['_clearConnectionSites'](),this[_0x3e415a(0x29e)](_0x540131['shapeId'],_0x540131['shapeModel']),this[_0x3e415a(0x3f4)]=_0x540131[_0x3e415a(0x192)]),this[_0x3e415a(0x338)](_0x219159)):(this[_0x3e415a(0x3f4)]!==null&&(this[_0x3e415a(0x1a9)](),this[_0x3e415a(0x3f4)]=null),null);}[_0x2d0df6(0x31e)](){const _0x49e065=_0x2d0df6;this['_clearConnectionSites'](),this[_0x49e065(0x2e4)]=null,this[_0x49e065(0x3f4)]=null,this[_0x49e065(0x27d)]=-0x1,this[_0x49e065(0x228)]=null;}['getConnectionRelation'](){const _0x38ea2e=_0x2d0df6;return this[_0x38ea2e(0x3f4)]===null||this[_0x38ea2e(0x27d)]<0x0?null:{'shapeId':this[_0x38ea2e(0x3f4)],'cxnIndex':this[_0x38ea2e(0x27d)]};}[_0x2d0df6(0x420)](_0x71591c){const _0x2480df=_0x2d0df6;let _0x54334f=this['_drawingManagerService']['getDrawingData'](this['_unitId'],this['_subUnitId']);for(let _0x1962b6 of Object[_0x2480df(0x162)](_0x54334f)){if(_0x1962b6===this[_0x2480df(0x228)]||_0x54334f[_0x1962b6][_0x2480df(0x309)]!==_0x21920f[_0x2480df(0x219)])continue;let _0x2a7c6c=this[_0x2480df(0x1b8)][_0x2480df(0x26f)](this[_0x2480df(0x35e)],this[_0x2480df(0x3d0)],_0x1962b6);if(!_0x2a7c6c||_0x2f1e1e(_0x2a7c6c[_0x2480df(0x1bd)]())||_0x2a7c6c[_0x2480df(0x41f)]()[_0x2480df(0x3a5)]===0x0||!this[_0x2480df(0x2e4)])continue;let _0xa6794c=_0x41d737({'unitId':this['_unitId'],'subUnitId':this[_0x2480df(0x3d0)],'drawingId':_0x1962b6}),_0x474d33=this[_0x2480df(0x2e4)][_0x2480df(0x2f1)](_0xa6794c);if(!_0x474d33)continue;let {left:_0x2b17e8,top:_0x1a01a9,width:_0x3e5c9c,height:_0x57729e}=_0x474d33[_0x2480df(0x41b)](),_0x31cd90=_0x2b17e8+_0x3e5c9c/0x2,_0x2789e1=_0x1a01a9+_0x57729e/0x2,_0x2e234c=_0x474d33[_0x2480df(0x284)][_0x2480df(0x186)](),_0x39edf2=new _0x4d3a2f([_0x2e234c[0x0],_0x2e234c[0x1],_0x2e234c[0x2],_0x2e234c[0x3],_0x31cd90,_0x2789e1]),_0x207017=_0x474d33[_0x2480df(0x200)](),_0x2fe36f=(_0x474d33[_0x2480df(0x265)]&&(_0x207017==null?void 0x0:_0x207017['classType'])===_0x12b9a1[_0x2480df(0x40a)]?_0x207017[_0x2480df(0x18e)]['multiply'](_0x39edf2):_0x39edf2)[_0x2480df(0x223)]()[_0x2480df(0x2a0)](_0x71591c),_0x200802=_0x3e5c9c/0x2,_0x41ee84=_0x57729e/0x2;if(_0x2fe36f['x']>=-_0x200802-0x5&&_0x2fe36f['x']<=_0x200802+0x5&&_0x2fe36f['y']>=-_0x41ee84-0x5&&_0x2fe36f['y']<=_0x41ee84+0x5)return{'shapeId':_0x1962b6,'shapeModel':_0x2a7c6c};}return null;}[_0x2d0df6(0x29e)](_0x375b19,_0x2bfa93){const _0x460ef0=_0x2d0df6;if(!this['_currentScene'])return;let _0x4147c=_0x41d737({'unitId':this['_unitId'],'subUnitId':this[_0x460ef0(0x3d0)],'drawingId':_0x375b19}),_0x82be49=this[_0x460ef0(0x2e4)][_0x460ef0(0x2f1)](_0x4147c);if(!_0x82be49)return;let {left:_0x20258c,top:_0x5ef67d,width:_0x460caa,height:_0xbd5533}=_0x82be49[_0x460ef0(0x41b)](),_0x381ecd=_0x20258c+_0x460caa/0x2,_0x5a855b=_0x5ef67d+_0xbd5533/0x2,_0x32801d=_0x82be49[_0x460ef0(0x284)]['getMatrix'](),_0x58f30f=new _0x4d3a2f([_0x32801d[0x0],_0x32801d[0x1],_0x32801d[0x2],_0x32801d[0x3],_0x381ecd,_0x5a855b]),_0x1c7e74=_0x82be49[_0x460ef0(0x200)](),_0x512785=_0x82be49[_0x460ef0(0x265)]&&(_0x1c7e74==null?void 0x0:_0x1c7e74['classType'])===_0x12b9a1[_0x460ef0(0x40a)]?_0x1c7e74[_0x460ef0(0x18e)][_0x460ef0(0x2f6)](_0x58f30f):_0x58f30f;_0x2bfa93['updateContext']({'width':_0x460caa,'height':_0xbd5533});let _0x97e591=_0x2bfa93[_0x460ef0(0x41f)]();for(let _0x3dc2d4 of _0x97e591){let _0x410245=_0x3dc2d4['x']-_0x460caa/0x2,_0x128092=_0x3dc2d4['y']-_0xbd5533/0x2,_0x55ee0e=_0x512785[_0x460ef0(0x2a0)]({'x':_0x410245,'y':_0x128092}),_0x5bbb14=_0x55ee0e['x'],_0x1cea96=_0x55ee0e['y'],_0x38d16a=new ra(_0x460ef0(0x1a8)+_0x375b19+'-'+_0x3dc2d4[_0x460ef0(0x32e)],{'left':_0x5bbb14-_0x10a8b7['cxnPointRadius'],'top':_0x1cea96-_0x10a8b7['cxnPointRadius'],'targetShapeId':_0x375b19,'cxnIndex':_0x3dc2d4[_0x460ef0(0x32e)],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_0x10a8b7[_0x460ef0(0x314)]*0x2,'height':_0x10a8b7[_0x460ef0(0x314)]*0x2,'zIndex':_0x4ea2ef+0x2,'evented':!0x1});this[_0x460ef0(0x287)][_0x460ef0(0x2a8)](_0x38d16a),this[_0x460ef0(0x2e4)]['addObject'](_0x38d16a,_0x4ea2ef+0x2);}}[_0x2d0df6(0x338)](_0x143154){const _0x262cf2=_0x2d0df6;let _0x178ce5=null,_0x3ecd08=0x1/0x0,_0x2fb971=null;for(let _0x51111b of this[_0x262cf2(0x287)]){let _0x5614cb=_0x51111b['left']+_0x10a8b7[_0x262cf2(0x314)],_0x463a2e=_0x51111b[_0x262cf2(0x15c)]+_0x10a8b7[_0x262cf2(0x314)],_0x52dfb3=_0x143154['x']-_0x5614cb,_0x1cac95=_0x143154['y']-_0x463a2e,_0x48e392=Math[_0x262cf2(0x331)](_0x52dfb3*_0x52dfb3+_0x1cac95*_0x1cac95);_0x48e392<_0x3ecd08&&(_0x3ecd08=_0x48e392,_0x178ce5=_0x51111b,_0x2fb971={'x':_0x5614cb,'y':_0x463a2e});}let _0x314dd9=_0x3ecd08<=0xa&&_0x178ce5?_0x178ce5[_0x262cf2(0x19a)]()[_0x262cf2(0x315)]:-0x1;if(_0x314dd9!==this[_0x262cf2(0x27d)]){for(let _0x28aa3a of this[_0x262cf2(0x287)]){let _0x48465d=_0x28aa3a[_0x262cf2(0x19a)]();_0x28aa3a[_0x262cf2(0x1dc)](_0x48465d[_0x262cf2(0x315)]===_0x314dd9);}this[_0x262cf2(0x27d)]=_0x314dd9;}if(_0x3ecd08<=0xa&&_0x178ce5&&_0x2fb971){let _0x864c43=_0x178ce5[_0x262cf2(0x19a)](),_0x2068b1=this[_0x262cf2(0x264)](_0x864c43[_0x262cf2(0x192)],_0x864c43[_0x262cf2(0x315)]);return{'shapeId':_0x864c43[_0x262cf2(0x192)],'cxnIndex':_0x864c43[_0x262cf2(0x315)],'unitId':_0x864c43['unitId'],'subUnitId':_0x864c43[_0x262cf2(0x1c3)],'worldPoint':_0x2fb971,'angle':_0x2068b1};}return null;}[_0x2d0df6(0x264)](_0x19e3a1,_0x327a43){const _0x225c10=_0x2d0df6;let _0x5d62b5=this['_sheetsShapeService'][_0x225c10(0x26f)](this[_0x225c10(0x35e)],this[_0x225c10(0x3d0)],_0x19e3a1);if(!_0x5d62b5)return 0x0;let _0x40fdd8=this[_0x225c10(0x34f)][_0x225c10(0x190)]({'unitId':this[_0x225c10(0x35e)],'subUnitId':this[_0x225c10(0x3d0)],'drawingId':_0x19e3a1});if(!(_0x40fdd8!=null&&_0x40fdd8[_0x225c10(0x284)]))return 0x0;let {width:_0x4dd599=0x0,height:_0x4994e0=0x0,flipX:_0xc1f927=!0x1,flipY:_0x3d7c9c=!0x1}=_0x40fdd8[_0x225c10(0x284)];_0x5d62b5[_0x225c10(0x267)]({'width':_0x4dd599,'height':_0x4994e0});let _0x1bacd8=_0x5d62b5[_0x225c10(0x41f)]()[_0x225c10(0x204)](_0x5ee7fb=>_0x5ee7fb[_0x225c10(0x32e)]===_0x327a43);if(!_0x1bacd8)return 0x0;let _0x42b723=_0x1bacd8['ang']/0xea60;return _0xc1f927&&(_0x42b723=0xb4-_0x42b723),_0x3d7c9c&&(_0x42b723=-_0x42b723),_0x42b723=(_0x42b723%0x168+0x168)%0x168,_0x42b723;}[_0x2d0df6(0x1a9)](){const _0x5086ae=_0x2d0df6;for(let _0x4c673f of this[_0x5086ae(0x287)])_0x4c673f[_0x5086ae(0x1e1)]();this[_0x5086ae(0x287)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0x1ff136=_0x2d0df6;this[_0x1ff136(0x1a9)](),super[_0x1ff136(0x1e1)]();}};ia=Y([J(0x1,_0x337030(_0xac3281)),J(0x2,_0x337030(_0x569480)),J(0x3,_0x337030(_0x1697a4))],ia);let aa=class extends _0x12ab23{constructor(_0x3d59f8,_0x9d9705,_0x4463da,_0x287314,_0x43604a){const _0x114730=_0x2d0df6;super(),this[_0x114730(0x2f0)]=_0x3d59f8,this['_sheetClipboardService']=_0x9d9705,this[_0x114730(0x2ba)]=_0x4463da,this[_0x114730(0x371)]=_0x287314,this[_0x114730(0x1d0)]=_0x43604a,q(this,_0x114730(0x2f7),void 0x0),this[_0x114730(0x31a)](),this[_0x114730(0x306)]();}get[_0x2d0df6(0x386)](){const _0xe295af=_0x2d0df6;return this[_0xe295af(0x2ba)][_0xe295af(0x1dd)]();}[_0x2d0df6(0x306)](){const _0x3a0c41=_0x2d0df6;this[_0x3a0c41(0x1d0)][_0x3a0c41(0x2b3)](({fromUnitId:_0x546409,fromSubUnitId:_0x295d41,toUnitId:_0x3c6cfe,toSubUnitId:_0x3e3969,idMap:_0x25d944})=>{const _0x6037c2=_0x3a0c41;let _0x44fe17=[],_0x289c92=[];for(let [_0x1d9134,_0x3b145d]of _0x25d944[_0x6037c2(0x2da)]()){let _0x4d7806=this[_0x6037c2(0x371)]['getShapeModel'](_0x546409,_0x295d41,_0x1d9134);if(!_0x4d7806)continue;let _0x5814f6=_0x4d7806[_0x6037c2(0x1bd)](),_0x1890ce=JSON[_0x6037c2(0x256)](JSON[_0x6037c2(0x2ff)](_0x4d7806[_0x6037c2(0x353)]()));if(_0x1890ce[_0x6037c2(0x25c)]){var _0xe3754e,_0x1f83e2;let _0x52382e=(_0xe3754e=_0x1890ce['relation'][_0x6037c2(0x170)])==null?void 0x0:_0xe3754e['shapeId'],_0x506e68=(_0x1f83e2=_0x1890ce['relation']['to'])==null?void 0x0:_0x1f83e2[_0x6037c2(0x192)],_0x2cd96c=!_0x52382e||_0x25d944['has'](_0x52382e),_0x50af52=!_0x506e68||_0x25d944[_0x6037c2(0x368)](_0x506e68);_0x2cd96c&&_0x52382e&&_0x1890ce[_0x6037c2(0x25c)][_0x6037c2(0x170)]?_0x1890ce[_0x6037c2(0x25c)][_0x6037c2(0x170)]={..._0x1890ce[_0x6037c2(0x25c)][_0x6037c2(0x170)],'shapeId':_0x25d944[_0x6037c2(0x16b)](_0x52382e)}:_0x1890ce[_0x6037c2(0x25c)]['from']=void 0x0,_0x50af52&&_0x506e68&&_0x1890ce[_0x6037c2(0x25c)]['to']?_0x1890ce[_0x6037c2(0x25c)]['to']={..._0x1890ce[_0x6037c2(0x25c)]['to'],'shapeId':_0x25d944['get'](_0x506e68)}:_0x1890ce[_0x6037c2(0x25c)]['to']=void 0x0;}_0x44fe17[_0x6037c2(0x2a8)]({'id':_0x25e508['id'],'params':{'unitId':_0x3c6cfe,'subUnitId':_0x3e3969,'shapeId':_0x3b145d,'shapeType':_0x5814f6,'shapeData':_0x1890ce}}),_0x289c92[_0x6037c2(0x2a8)]({'id':_0x8ab729['id'],'params':{'unitId':_0x3c6cfe,'subUnitId':_0x3e3969,'shapeId':_0x3b145d}});}return{'redos':_0x44fe17,'undos':_0x289c92};});}[_0x2d0df6(0x31a)](){const _0x3c716f=_0x2d0df6;this[_0x3c716f(0x2fd)](this[_0x3c716f(0x3bd)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x19f5c8,_0x204009,_0x5e0222)=>{const _0x8ae28b=_0x3c716f;this[_0x8ae28b(0x2f7)]=null;let _0x1cfab3=this['_focusedDrawings'][_0x8ae28b(0x333)](_0x11e217=>_0x11e217[_0x8ae28b(0x309)]===_0x21920f[_0x8ae28b(0x219)]);return _0x1cfab3['length']!==0x0&&(this[_0x8ae28b(0x2f7)]={'unitId':_0x19f5c8,'subUnitId':_0x204009,'copyType':_0x5e0222,'drawings':_0x1cfab3},!0x0);},'onBeforeCopy':(_0x4875f5,_0x180f3e,_0x1663ee,_0x492988)=>{const _0x5d5291=_0x3c716f;this[_0x5d5291(0x2f7)]=null,this[_0x5d5291(0x36f)](_0x4875f5,_0x180f3e,_0x1663ee,_0x492988);},'onPasteCells':(_0x51414c,_0x354ac6,_0x4b9728,_0x40155e)=>{const _0x2b01cb=_0x3c716f;if(!_0x40155e[_0x2b01cb(0x308)]||!_0x51414c||!this[_0x2b01cb(0x2f7)])return{'redos':[],'undos':[]};let {pasteType:_0x188346}=_0x40155e;return _0x188346===_0x23758a[_0x2b01cb(0x297)]?this[_0x2b01cb(0x352)](_0x354ac6,this[_0x2b01cb(0x2f7)][_0x2b01cb(0x354)]===_0x565310[_0x2b01cb(0x37f)]):{'redos':[],'undos':[]};}}));}[_0x2d0df6(0x36f)](_0x3e6892,_0x430264,_0x2a8aa9,_0x2bcc75){const _0x3de6ab=_0x2d0df6;let _0x80e967=this[_0x3de6ab(0x2f0)][_0x3de6ab(0x355)](_0x3e6892,_0x430264);if(!_0x80e967)return;let _0x4099a4=_0x5d892b(_0x80e967,_0x2a8aa9);if(!_0x4099a4)return;let {startX:_0x224f75,endX:_0x5840e8,startY:_0x3a53be,endY:_0x5eb658}=_0x4099a4,_0xb2a1ad=this['_sheetDrawingService'][_0x3de6ab(0x1b6)](_0x3e6892,_0x430264),_0x3e6b32=[];for(let [_0x3beb59,_0x5cdd1e]of Object[_0x3de6ab(0x2da)](_0xb2a1ad)){if(_0x5cdd1e[_0x3de6ab(0x309)]!==_0x21920f[_0x3de6ab(0x219)])continue;let {transform:_0x529240}=_0x5cdd1e;if(!_0x529240)continue;let {left:_0x578fb7=0x0,top:_0x45cb82=0x0,width:_0x5592b7=0x0,height:_0x3306f1=0x0}=_0x529240;_0x224f75<=_0x578fb7&&_0x5840e8>=_0x578fb7+_0x5592b7&&_0x3a53be<=_0x45cb82&&_0x5eb658>=_0x45cb82+_0x3306f1&&_0x3e6b32[_0x3de6ab(0x2a8)](_0x5cdd1e);}_0x3e6b32['length']>0x0&&(this[_0x3de6ab(0x2f7)]={'unitId':_0x3e6892,'subUnitId':_0x430264,'copyType':_0x2bcc75,'copyRange':_0x2a8aa9,'drawings':_0x3e6b32});}[_0x2d0df6(0x352)](_0x5794fd,_0x306c53){const _0x59ed7e=_0x2d0df6;let {unitId:_0x24da21,subUnitId:_0x5ebd67,range:_0xed586e}=_0x5794fd,_0x2815de=this[_0x59ed7e(0x2f0)][_0x59ed7e(0x355)](_0x24da21,_0x5ebd67);if(!_0x2815de)return{'redos':[],'undos':[]};let _0x4be386=_0x81a8bd(_0xed586e),{unitId:_0xf43a1f,subUnitId:_0x4ada76,copyRange:_0x1d4c5b,drawings:_0x44ef4f}=this['_copyInfo'],_0x1df187=this[_0x59ed7e(0x2f0)][_0x59ed7e(0x355)](_0xf43a1f,_0x4ada76);if(!_0x1df187)return{'redos':[],'undos':[]};let _0x5562e5;if(!_0x1d4c5b){let _0x43394b=0x1/0x0,_0x35ad1a=0x1/0x0;for(let _0x1e8a1f of _0x44ef4f){let {left:_0x3065f=0x0,top:_0x16c79c=0x0}=_0x1e8a1f[_0x59ed7e(0x284)]??{};_0x3065f<_0x43394b&&(_0x43394b=_0x3065f),_0x16c79c<_0x35ad1a&&(_0x35ad1a=_0x16c79c);}_0x43394b!==0x1/0x0&&_0x35ad1a!==0x1/0x0&&(_0x5562e5={'left':_0x43394b,'top':_0x35ad1a});}let _0x266036=new Map();if(!_0x306c53){for(let _0x567b2e of _0x44ef4f)_0x266036['set'](_0x567b2e[_0x59ed7e(0x1e2)],_0x33f92c());}let _0x319d6a=[],_0x341bea=[];for(let _0x4eb8ac of _0x44ef4f){let {drawingId:_0x4c33ad,transform:_0xb1abce,sheetTransform:_0xa000ef}=_0x4eb8ac;if(!_0xb1abce||!_0xa000ef)continue;let _0x55d280=this[_0x59ed7e(0x3b2)]({'transform':_0xb1abce,'sheetTransform':_0xa000ef},{'skeleton':_0x1df187,'range':_0x1d4c5b},{'skeleton':_0x2815de,'range':_0x4be386},_0x5562e5);if(_0x306c53){let {redos:_0x2661fa,undos:_0x2ad346}=this[_0x59ed7e(0x25e)]({'fromUnitId':_0xf43a1f,'fromSubUnitId':_0x4ada76,'toUnitId':_0x24da21,'toSubUnitId':_0x5ebd67,'drawing':_0x4eb8ac,'newTransforms':_0x55d280});_0x319d6a[_0x59ed7e(0x2a8)](..._0x2661fa),_0x341bea[_0x59ed7e(0x2a8)](..._0x2ad346);continue;}let {redos:_0x4d7308,undos:_0x1d8485}=this[_0x59ed7e(0x421)]({'toUnitId':_0x24da21,'toSubUnitId':_0x5ebd67,'drawing':_0x4eb8ac,'newTransforms':_0x55d280,'newDrawingId':_0x266036[_0x59ed7e(0x16b)](_0x4c33ad),'idMap':_0x266036});_0x319d6a[_0x59ed7e(0x2a8)](..._0x4d7308),_0x341bea[_0x59ed7e(0x2a8)](..._0x1d8485);}return{'redos':_0x319d6a,'undos':_0x341bea};}[_0x2d0df6(0x25e)](_0x1b6b8d){const _0x3f2225=_0x2d0df6;let {fromUnitId:_0x344be5,fromSubUnitId:_0x4a9fba,toUnitId:_0x4c6007,toSubUnitId:_0x395d99,drawing:_0x4ed357,newTransforms:_0x27d708}=_0x1b6b8d,_0xd88ff6={..._0x4ed357,'unitId':_0x4c6007,'subUnitId':_0x395d99,'transform':_0x27d708[_0x3f2225(0x284)],'sheetTransform':_0x27d708[_0x3f2225(0x36b)]};if(_0x4c6007===_0x344be5&&_0x395d99===_0x4a9fba){let {redo:_0x355cb3,undo:_0x13fd5c,objects:_0x8b0102}=this[_0x3f2225(0x2ba)][_0x3f2225(0x302)]([_0xd88ff6]);return{'redos':[{'id':_0x347a95['id'],'params':{'unitId':_0x4c6007,'subUnitId':_0x395d99,'type':_0x1eb4bd['UPDATE'],'op':_0x355cb3,'objects':_0x8b0102}}],'undos':[{'id':_0x347a95['id'],'params':{'unitId':_0x4c6007,'subUnitId':_0x395d99,'type':_0x1eb4bd[_0x3f2225(0x3a1)],'op':_0x13fd5c,'objects':_0x8b0102}}]};}{let _0x4de4dc=this[_0x3f2225(0x2ba)][_0x3f2225(0x1e5)]([_0x4ed357]),_0x46b5f7=this[_0x3f2225(0x2ba)][_0x3f2225(0x19e)]([_0xd88ff6]),_0x1eb09d=this[_0x3f2225(0x371)][_0x3f2225(0x26f)](_0x4ed357['unitId'],_0x4ed357['subUnitId'],_0x4ed357[_0x3f2225(0x1e2)]);if(!_0x1eb09d)return{'redos':[],'undos':[]};let _0x399b17=_0x1eb09d[_0x3f2225(0x1bd)](),_0x1a85b8=JSON['parse'](JSON['stringify'](_0x1eb09d[_0x3f2225(0x353)]()));return{'redos':[{'id':_0x347a95['id'],'params':{'unitId':_0x344be5,'subUnitId':_0x4a9fba,'type':_0x1eb4bd[_0x3f2225(0x41e)],'op':_0x4de4dc[_0x3f2225(0x402)],'objects':_0x4de4dc[_0x3f2225(0x3b5)]}},{'id':_0x8ab729['id'],'params':{'unitId':_0x344be5,'subUnitId':_0x4a9fba,'shapeId':_0x4ed357['drawingId']}},{'id':_0x347a95['id'],'params':{'unitId':_0x4c6007,'subUnitId':_0x395d99,'type':_0x1eb4bd[_0x3f2225(0x2c2)],'op':_0x46b5f7[_0x3f2225(0x402)],'objects':_0x46b5f7[_0x3f2225(0x3b5)]}},{'id':_0x25e508['id'],'params':{'unitId':_0x4c6007,'subUnitId':_0x395d99,'shapeId':_0x4ed357['drawingId'],'shapeType':_0x399b17,'shapeData':_0x1a85b8}}],'undos':[{'id':_0x347a95['id'],'params':{'unitId':_0x344be5,'subUnitId':_0x4a9fba,'type':_0x1eb4bd['INSERT'],'op':_0x4de4dc[_0x3f2225(0x426)],'objects':_0x4de4dc[_0x3f2225(0x3b5)]}},{'id':_0x25e508['id'],'params':{'unitId':_0x344be5,'subUnitId':_0x4a9fba,'shapeId':_0x4ed357[_0x3f2225(0x1e2)],'shapeType':_0x399b17,'shapeData':_0x1a85b8}},{'id':_0x347a95['id'],'params':{'unitId':_0x4c6007,'subUnitId':_0x395d99,'type':_0x1eb4bd[_0x3f2225(0x41e)],'op':_0x46b5f7[_0x3f2225(0x426)],'objects':_0x46b5f7[_0x3f2225(0x3b5)]}},{'id':_0x8ab729['id'],'params':{'unitId':_0x4c6007,'subUnitId':_0x395d99,'shapeId':_0x4ed357[_0x3f2225(0x1e2)]}}]};}}[_0x2d0df6(0x421)](_0x49f5f3){const _0xb738ba=_0x2d0df6;let {toUnitId:_0x53a700,toSubUnitId:_0x4ed5c5,drawing:_0x558cf,newTransforms:_0x174fca,newDrawingId:_0x558364,idMap:_0x478461}=_0x49f5f3,_0x399171={..._0x558cf,'unitId':_0x53a700,'subUnitId':_0x4ed5c5,'drawingId':_0x558364,'transform':_0x174fca['transform'],'sheetTransform':_0x174fca[_0xb738ba(0x36b)]},{redo:_0x597be1,undo:_0x5893f9,objects:_0x2ccd98}=this['_sheetDrawingService'][_0xb738ba(0x19e)]([_0x399171]),_0x5ea77f=this['_shapeService'][_0xb738ba(0x26f)](_0x558cf[_0xb738ba(0x2eb)],_0x558cf[_0xb738ba(0x1c3)],_0x558cf[_0xb738ba(0x1e2)]);if(!_0x5ea77f)return{'redos':[],'undos':[]};let _0x15dba8=_0x5ea77f['getShapeType'](),_0x44068f=JSON[_0xb738ba(0x256)](JSON['stringify'](_0x5ea77f[_0xb738ba(0x353)]()));if(_0x44068f[_0xb738ba(0x25c)]){var _0x13d084,_0x9b648;let _0x2d3227=(_0x13d084=_0x44068f[_0xb738ba(0x25c)][_0xb738ba(0x170)])==null?void 0x0:_0x13d084[_0xb738ba(0x192)],_0x7d7b82=(_0x9b648=_0x44068f[_0xb738ba(0x25c)]['to'])==null?void 0x0:_0x9b648['shapeId'],_0x43bf22=!_0x2d3227||_0x478461[_0xb738ba(0x368)](_0x2d3227),_0x3f62fb=!_0x7d7b82||_0x478461[_0xb738ba(0x368)](_0x7d7b82);_0x43bf22&&_0x2d3227&&_0x44068f['relation'][_0xb738ba(0x170)]?_0x44068f[_0xb738ba(0x25c)]['from']={..._0x44068f[_0xb738ba(0x25c)][_0xb738ba(0x170)],'shapeId':_0x478461['get'](_0x2d3227)}:_0x44068f[_0xb738ba(0x25c)][_0xb738ba(0x170)]=void 0x0,_0x3f62fb&&_0x7d7b82&&_0x44068f[_0xb738ba(0x25c)]['to']?_0x44068f[_0xb738ba(0x25c)]['to']={..._0x44068f[_0xb738ba(0x25c)]['to'],'shapeId':_0x478461[_0xb738ba(0x16b)](_0x7d7b82)}:_0x44068f[_0xb738ba(0x25c)]['to']=void 0x0;}return{'redos':[{'id':_0x347a95['id'],'params':{'unitId':_0x53a700,'subUnitId':_0x4ed5c5,'type':_0x1eb4bd[_0xb738ba(0x2c2)],'op':_0x597be1,'objects':_0x2ccd98}},{'id':_0x25e508['id'],'params':{'unitId':_0x53a700,'subUnitId':_0x4ed5c5,'shapeId':_0x558364,'shapeType':_0x15dba8,'shapeData':_0x44068f}}],'undos':[{'id':_0x347a95['id'],'params':{'unitId':_0x53a700,'subUnitId':_0x4ed5c5,'type':_0x1eb4bd[_0xb738ba(0x41e)],'op':_0x5893f9,'objects':_0x2ccd98}},{'id':_0x8ab729['id'],'params':{'unitId':_0x53a700,'subUnitId':_0x4ed5c5,'shapeId':_0x558364}}]};}['_updateTransform'](_0x2212c7,_0x1bf75a,_0x3e9059,_0x497ead){const _0x516d44=_0x2d0df6;let {range:_0x515ab1,skeleton:_0x2611e1}=_0x1bf75a,{range:_0x5b96e1,skeleton:_0x37008a}=_0x3e9059,{transform:_0x4a4808,sheetTransform:_0x39d97a}=_0x2212c7,_0x5176e0={..._0x4a4808};if(_0x515ab1){let _0x7685f4=_0x5d892b(_0x2611e1,_0x515ab1),_0x46a52b=_0x5d892b(_0x37008a,_0x5b96e1);if(_0x7685f4&&_0x46a52b){let _0x24f73d=_0x46a52b[_0x516d44(0x316)]-_0x7685f4[_0x516d44(0x316)],_0x3e0aa2=_0x46a52b['startY']-_0x7685f4[_0x516d44(0x41d)];_0x5176e0['left']=(_0x5176e0['left']??0x0)+_0x24f73d,_0x5176e0[_0x516d44(0x15c)]=(_0x5176e0[_0x516d44(0x15c)]??0x0)+_0x3e0aa2;}}else{let _0x30933f=_0x5d892b(_0x37008a,_0x5b96e1);if(_0x497ead&&_0x30933f){let _0x2fcd85=(_0x5176e0[_0x516d44(0x2f5)]??0x0)-_0x497ead['left'],_0x580615=(_0x5176e0[_0x516d44(0x15c)]??0x0)-_0x497ead[_0x516d44(0x15c)];_0x5176e0[_0x516d44(0x2f5)]=_0x30933f['startX']+_0x2fcd85,_0x5176e0[_0x516d44(0x15c)]=_0x30933f[_0x516d44(0x41d)]+_0x580615;}else _0x5176e0[_0x516d44(0x2f5)]=_0x30933f==null?void 0x0:_0x30933f[_0x516d44(0x316)],_0x5176e0[_0x516d44(0x15c)]=_0x30933f==null?void 0x0:_0x30933f['startY'];}return{'transform':_0x5176e0,'sheetTransform':_0x5adc81(_0x5176e0,_0x37008a)??_0x39d97a};}};aa=Y([J(0x0,_0x337030(_0x312921)),J(0x1,_0x337030(_0x1d00fe)),J(0x2,_0x337030(_0x492aa7)),J(0x3,_0x337030(_0x1697a4)),J(0x4,_0x337030(_0x2173cc))],aa);var oa=class extends _0x580510{constructor(_0x55ac6d,_0x83ca05){const _0x578295=_0x2d0df6;super(_0x55ac6d,_0x83ca05),q(this,_0x578295(0x351),null),q(this,'_index',null),q(this,_0x578295(0x35e),null),q(this,'_subUnitId',null),q(this,_0x578295(0x3b4),!0x1),_0x83ca05&&this['setShapeProps'](_0x83ca05);}['getDrawingSearch'](){const _0x59d4a1=_0x2d0df6;return{'unitId':this['_unitId'],'subUnitId':this[_0x59d4a1(0x3d0)],'drawingId':this[_0x59d4a1(0x351)]};}[_0x2d0df6(0x1ad)](_0x391be1){const _0x32fb30=_0x2d0df6;_0x391be1[_0x32fb30(0x192)]!==void 0x0&&(this[_0x32fb30(0x351)]=_0x391be1[_0x32fb30(0x192)]),_0x391be1[_0x32fb30(0x2eb)]!==void 0x0&&(this['_unitId']=_0x391be1[_0x32fb30(0x2eb)]),_0x391be1[_0x32fb30(0x1c3)]!==void 0x0&&(this[_0x32fb30(0x3d0)]=_0x391be1['subUnitId']),_0x391be1[_0x32fb30(0x29a)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x391be1[_0x32fb30(0x29a)]),this[_0x32fb30(0x1f2)]({'width':_0x391be1['width'],'height':_0x391be1[_0x32fb30(0x18b)]});}[_0x2d0df6(0x21a)](_0x113fb8){const _0x18fac2=_0x2d0df6;_0x5720b1[_0x18fac2(0x283)](_0x113fb8,{'radius':_0x10a8b7[_0x18fac2(0x314)],'fill':_0x10a8b7[_0x18fac2(0x15d)],'stroke':_0x10a8b7['cxnPointStroke'],'strokeWidth':_0x10a8b7[_0x18fac2(0x1c6)],'evented':!0x0});}};let sa=class extends _0x12ab23{constructor(_0xcc2e20,_0x56da89,_0x581e17,_0x30331f,_0x24fed0,_0x4960f8,_0x58dba1,_0x1eef64){const _0xce166=_0x2d0df6;super(),this[_0xce166(0x3ca)]=_0xcc2e20,this[_0xce166(0x398)]=_0x56da89,this[_0xce166(0x3ea)]=_0x581e17,this[_0xce166(0x34f)]=_0x30331f,this[_0xce166(0x385)]=_0x24fed0,this[_0xce166(0x1b8)]=_0x4960f8,this['_sheetShapeAdjustController']=_0x58dba1,this[_0xce166(0x3d3)]=_0x1eef64,q(this,_0xce166(0x366),void 0x0),q(this,_0xce166(0x35e),void 0x0),q(this,_0xce166(0x3d0),void 0x0),q(this,_0xce166(0x1e0),[]),q(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0xce166(0x323),void 0x0),q(this,'_isConnecting',!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0xce166(0x412),!0x1),q(this,_0xce166(0x32c),void 0x0),q(this,_0xce166(0x2f4),void 0x0),q(this,_0xce166(0x3fd),null),this[_0xce166(0x23f)]();}[_0x2d0df6(0x23f)](){const _0x4e7069=_0x2d0df6;this[_0x4e7069(0x1be)](),this[_0x4e7069(0x37a)]();}['_getDrawingRect'](){const _0xc43363=_0x2d0df6;if(!this['_unitId']||!this[_0xc43363(0x3d0)]||!this[_0xc43363(0x366)])return;let _0x194fad={'unitId':this[_0xc43363(0x35e)],'subUnitId':this[_0xc43363(0x3d0)],'drawingId':this[_0xc43363(0x366)]},{transform:_0x8d0d17}=this['_drawingManagerService'][_0xc43363(0x190)](_0x194fad);if(_0x8d0d17)return{'left':_0x8d0d17[_0xc43363(0x2f5)]||0x0,'top':_0x8d0d17[_0xc43363(0x15c)]||0x0,'width':_0x8d0d17[_0xc43363(0x373)]||0x0,'height':_0x8d0d17[_0xc43363(0x18b)]||0x0,'flipX':_0x8d0d17['flipX']||!0x1,'flipY':_0x8d0d17[_0xc43363(0x285)]||!0x1,'angle':_0x8d0d17[_0xc43363(0x349)]};}['_addShapeConnectorHandlerObjects'](){const _0x1f680c=_0x2d0df6;if(this[_0x1f680c(0x35e)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x1f680c(0x366)]===void 0x0)return;let _0xe966ae=this[_0x1f680c(0x3ea)][_0x1f680c(0x2e5)](this[_0x1f680c(0x35e)]);if(!_0xe966ae||!_0xe966ae[_0x1f680c(0x2ce)](_0x2e5cfd)['getCurrentSkeleton']())return;let {scene:_0x1fc89}=_0xe966ae,_0x16df09=this[_0x1f680c(0x1a0)]();if(!_0x16df09)return;let _0x109f6e=this['_sheetsShapeService'][_0x1f680c(0x26f)](this[_0x1f680c(0x35e)],this[_0x1f680c(0x3d0)],this[_0x1f680c(0x366)]);if(!_0x109f6e||!_0x2f1e1e(_0x109f6e[_0x1f680c(0x1bd)]()))return;let _0x236991=_0x109f6e[_0x1f680c(0x2a3)]();if(_0x236991[_0x1f680c(0x3a5)]<0x2)return;let _0x44f060=new _0xacaece(_0x16df09),_0x13bd8d=_0x236991[0x0],_0x39bc77=_0x236991[_0x236991[_0x1f680c(0x3a5)]-0x1],_0x4a361e=_0x44f060[_0x1f680c(0x1c5)](_0x13bd8d),_0x2206c2=_0x44f060[_0x1f680c(0x1c5)](_0x39bc77);this[_0x1f680c(0x3a7)](_0x1fc89,{..._0x4a361e},!0x0),this[_0x1f680c(0x3a7)](_0x1fc89,{..._0x2206c2},!0x1);}['_addShapeConnectorHandlerObject'](_0x5133a6,_0x44ea55,_0x2bb9d4){const _0x46725d=_0x2d0df6;if(this['_activeShapeId']===void 0x0||this[_0x46725d(0x35e)]===void 0x0||this[_0x46725d(0x3d0)]===void 0x0)return;let _0x5665f6=_0x46725d(0x37b)+this[_0x46725d(0x35e)]+'-'+this[_0x46725d(0x3d0)]+'-'+this[_0x46725d(0x366)]+'-'+(_0x2bb9d4?_0x46725d(0x17d):_0x46725d(0x20c)),_0x413e55=_0x5133a6[_0x46725d(0x2f1)](_0x5665f6);if(_0x413e55){_0x413e55[_0x46725d(0x1f2)]({'left':_0x44ea55['x']-_0x10a8b7[_0x46725d(0x314)],'top':_0x44ea55['y']-_0x10a8b7['cxnPointRadius']});return;}let _0x28a0d5=new oa(_0x5665f6,{'left':_0x44ea55['x']-_0x10a8b7[_0x46725d(0x314)],'top':_0x44ea55['y']-_0x10a8b7[_0x46725d(0x314)],'shapeId':this[_0x46725d(0x366)],'unitId':this[_0x46725d(0x35e)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x2bb9d4,'width':_0x10a8b7[_0x46725d(0x314)]*0x2,'height':_0x10a8b7[_0x46725d(0x314)]*0x2,'zIndex':_0x4ea2ef+0x1,'evented':!0x0});this[_0x46725d(0x1e0)]['push'](_0x28a0d5),this[_0x46725d(0x2d6)](_0x28a0d5,_0x5133a6,_0x2bb9d4),_0x5133a6[_0x46725d(0x1d7)](_0x28a0d5,_0x4ea2ef+0x1);}[_0x2d0df6(0x3cc)](_0x400884,_0x4cb76c){const _0x5c7b1d=_0x2d0df6;var _0x27588a;let _0x503d43={'x':0x0,'y':0x0};if(!_0x400884||!_0x4cb76c)return _0x503d43;let _0x2c694f=this[_0x5c7b1d(0x3ea)]['getRenderUnitById'](_0x400884);if(!_0x2c694f||!_0x2c694f['with'](_0x2e5cfd)['getSkeleton'](_0x4cb76c))return _0x503d43;let _0x2b0abf=_0x2c694f[_0x5c7b1d(0x2ce)](_0x201189),_0x2fc103=_0x2b0abf==null?void 0x0:_0x2b0abf['getCurrentScrollState']();if(!_0x2fc103)return _0x503d43;let _0x5a6ca7=(_0x27588a=this[_0x5c7b1d(0x385)][_0x5c7b1d(0x1b1)](_0x400884))==null?void 0x0:_0x27588a[_0x5c7b1d(0x25d)](_0x4cb76c);if(!_0x5a6ca7)return _0x503d43;let _0x5ec57e=_0x10e5a1(_0x2fc103[_0x5c7b1d(0x1cf)],_0x2fc103['sheetViewStartColumn'],_0x2c694f['scene'],_0x5a6ca7);return _0x5ec57e?{'x':_0x5ec57e[_0x5c7b1d(0x2d2)],'y':_0x5ec57e['viewportScrollY']}:_0x503d43;}['_getZoomRatio'](_0xd9a2b2,_0x5decd9){const _0x30704f=_0x2d0df6;var _0x2d2cb9;let _0x305e43=(_0x2d2cb9=this[_0x30704f(0x385)][_0x30704f(0x1b1)](_0xd9a2b2))==null?void 0x0:_0x2d2cb9[_0x30704f(0x25d)](_0x5decd9);return(_0x305e43==null?void 0x0:_0x305e43['getZoomRatio']())??0x1;}[_0x2d0df6(0x3c6)](_0x7d3add,_0x50b0f2,_0x24400b,_0x6a49b7,_0x179736){const _0x3917be=_0x2d0df6;this[_0x3917be(0x32c)][_0x3917be(0x169)](),this[_0x3917be(0x2f4)][_0x3917be(0x169)](),this[_0x3917be(0x25b)][_0x3917be(0x245)]();let _0x3378ce=this[_0x3917be(0x3fd)];this[_0x3917be(0x3d3)]['endConnectionDetection']();let _0xab24e1=this[_0x3917be(0x3cc)](this[_0x3917be(0x35e)],this[_0x3917be(0x3d0)]),_0x58a957=this[_0x3917be(0x208)](this['_unitId'],this['_subUnitId']),_0x2936e5={'x':_0x24400b[_0x3917be(0x2ec)]/_0x58a957+_0xab24e1['x'],'y':_0x24400b[_0x3917be(0x2fe)]/_0x58a957+_0xab24e1['y']},_0x25f2a6=_0x3378ce?_0x3378ce[_0x3917be(0x1b4)]:_0x2936e5,_0x49a7ea=_0x6a49b7?this[_0x3917be(0x323)][_0x3917be(0x3b7)]():this[_0x3917be(0x323)][_0x3917be(0x3ff)](),_0x3f3e85=this[_0x3917be(0x323)][_0x3917be(0x1bd)]();_0x49a7ea?this[_0x3917be(0x239)](_0x49a7ea,_0x25f2a6,_0x6a49b7,_0x3378ce,_0x179736):this[_0x3917be(0x21f)](_0x50b0f2,_0x25f2a6,_0x6a49b7,_0x3378ce,_0x179736,_0x3f3e85),this['_isConnecting']=!0x1,this[_0x3917be(0x412)]=!0x1,this[_0x3917be(0x3fd)]=null,_0x7d3add[_0x3917be(0x3ae)]();}['_handleFreeEndpointPointerUp'](_0x4fdd82,_0x4fd96c,_0x30c665,_0x29d7df,_0x2554ec,_0x3854f6){const _0x368815=_0x2d0df6;let _0x3bd58b=_0x3854f6===_0x33d774[_0x368815(0x427)]||_0x3854f6===_0x33d774[_0x368815(0x1a6)],_0xd9ee2b=_0x30c665?_0x4fd96c:_0x4fdd82,_0x140e3d=_0x30c665?_0x4fdd82:_0x4fd96c,_0x1d3975=this[_0x368815(0x323)][_0x368815(0x2a3)](),_0x171f1a=this[_0x368815(0x323)][_0x368815(0x1bd)](),_0x139563=_0x514461(_0x171f1a),_0x77751a=_0xacaece[_0x368815(0x37c)](_0x1d3975,_0x139563),_0x48d63d=_0x3bd58b?_0xacaece[_0x368815(0x2f2)](_0xd9ee2b,_0x140e3d):_0xacaece[_0x368815(0x313)](_0x4fdd82,_0x4fd96c,_0x30c665,_0x77751a);_0x29d7df?this[_0x368815(0x375)](_0x48d63d,_0x29d7df,_0x30c665,_0x2554ec):this[_0x368815(0x2a1)](_0x48d63d,_0x2554ec);}[_0x2d0df6(0x239)](_0x2f5e5c,_0x32cb4c,_0x399dff,_0x1c3ac7,_0x8369a6){const _0x17a073=_0x2d0df6;let _0x1d7a2c=this[_0x17a073(0x269)](_0x2f5e5c);if(!_0x1d7a2c)return;let _0x5f0a26=_0x1c3ac7?_0x1c3ac7[_0x17a073(0x349)]:this[_0x17a073(0x295)](_0x1d7a2c[_0x17a073(0x410)],_0x32cb4c),_0x31b7ea;if(_0x1c3ac7){let _0x141006=this[_0x17a073(0x34f)][_0x17a073(0x190)]({'unitId':_0x1c3ac7[_0x17a073(0x2eb)],'subUnitId':_0x1c3ac7[_0x17a073(0x1c3)],'drawingId':_0x1c3ac7[_0x17a073(0x192)]});if(_0x141006!=null&&_0x141006[_0x17a073(0x284)]){let {left:_0x3bd093=0x0,top:_0x8238fb=0x0,width:_0x18a7ae=0x0,height:_0x49c74f=0x0,angle:_0x2899f8}=_0x141006[_0x17a073(0x284)];_0x31b7ea=_0x1e6341({'left':_0x3bd093,'top':_0x8238fb,'width':_0x18a7ae,'height':_0x49c74f},_0x2899f8||0x0);}else _0x31b7ea={'left':_0x32cb4c['x'],'top':_0x32cb4c['y'],'width':0x0,'height':0x0};}else _0x31b7ea={'left':_0x32cb4c['x'],'top':_0x32cb4c['y'],'width':0x0,'height':0x0};let _0x17d743={'point':_0x32cb4c,'angle':_0x5f0a26,'bounds':_0x31b7ea},_0x2728d9=_0x399dff?_0x17d743:_0x1d7a2c,_0xa10349=_0x399dff?_0x1d7a2c:_0x17d743,_0x50478d=this[_0x17a073(0x323)][_0x17a073(0x1bd)](),_0x2cfd88=_0x1f19d7(_0x2728d9,_0xa10349,_0x50478d);this[_0x17a073(0x323)]['removeLinePoints']();let _0x2fce01=_0x3e6f46(_0x2cfd88,_0x50478d);_0x1c3ac7?this[_0x17a073(0x3ba)](_0x2fce01,_0x1c3ac7,_0x2f5e5c,_0x399dff,_0x8369a6):this[_0x17a073(0x414)](_0x2fce01,_0x2f5e5c,_0x399dff,_0x8369a6);}[_0x2d0df6(0x375)](_0x1da4b5,_0x256d71,_0x52a7df,_0x370f97){const _0x458551=_0x2d0df6;let _0x3942df=this[_0x458551(0x323)][_0x458551(0x353)]()[_0x458551(0x25c)],_0x473d50={..._0x3942df},_0x3f2c0f={'shapeId':_0x256d71[_0x458551(0x192)],'cxnIndex':_0x256d71[_0x458551(0x315)]};_0x52a7df?_0x473d50[_0x458551(0x170)]=_0x3f2c0f:_0x473d50['to']=_0x3f2c0f;let _0x3a6c0c=this[_0x458551(0x323)][_0x458551(0x1bd)](),_0x901bd7=_0x3e6f46(_0x1da4b5[_0x458551(0x38d)],_0x3a6c0c),_0x3cf7bd={'unitId':this['_unitId'],'subUnitId':this[_0x458551(0x3d0)],'connectorShapeId':this[_0x458551(0x366)],'width':_0x1da4b5['worldRect'][_0x458551(0x373)],'height':_0x1da4b5[_0x458551(0x24b)][_0x458551(0x18b)],'left':_0x1da4b5[_0x458551(0x24b)]['left'],'top':_0x1da4b5[_0x458551(0x24b)][_0x458551(0x15c)],'flipX':_0x1da4b5[_0x458551(0x24b)][_0x458551(0x36a)]||!0x1,'flipY':_0x1da4b5[_0x458551(0x24b)][_0x458551(0x285)]||!0x1,'newAdjustValues':_0x901bd7[_0x458551(0x400)],'oldAdjustValues':_0x370f97,'oldRelation':_0x3942df,'newRelation':_0x473d50,'newLineType':_0x901bd7[_0x458551(0x1f1)],'oldLineType':_0x3a6c0c};this[_0x458551(0x398)][_0x458551(0x1c1)](_0x4b6727['id'],_0x3cf7bd);}[_0x2d0df6(0x2a1)](_0x45960a,_0x3e6c31){const _0x3028f0=_0x2d0df6;let _0x3c530a=this[_0x3028f0(0x323)]['getShapeType'](),_0xc81735=_0x3e6f46(_0x45960a[_0x3028f0(0x38d)],_0x3c530a),_0x332c8e={'unitId':this['_unitId'],'subUnitId':this[_0x3028f0(0x3d0)],'shapeId':this[_0x3028f0(0x366)],'width':_0x45960a[_0x3028f0(0x24b)][_0x3028f0(0x373)],'height':_0x45960a[_0x3028f0(0x24b)][_0x3028f0(0x18b)],'left':_0x45960a[_0x3028f0(0x24b)]['left'],'top':_0x45960a[_0x3028f0(0x24b)][_0x3028f0(0x15c)],'flipX':_0x45960a[_0x3028f0(0x24b)]['flipX']||!0x1,'flipY':_0x45960a[_0x3028f0(0x24b)][_0x3028f0(0x285)]||!0x1,'angle':_0x45960a[_0x3028f0(0x24b)]['angle']||0x0,'newAdjustValues':_0xc81735[_0x3028f0(0x400)],'oldAdjustValues':_0x3e6c31,'newLineType':_0xc81735[_0x3028f0(0x1f1)],'oldLineType':_0x3c530a};this['_commandService']['executeCommand'](_0x1c8718['id'],_0x332c8e);}[_0x2d0df6(0x3ba)](_0x387926,_0x1cede8,_0x4ffd3c,_0x3838e6,_0x22ce9b){const _0x807f09=_0x2d0df6;let _0x2a92c8=this[_0x807f09(0x323)]['getShapeData']()[_0x807f09(0x25c)],_0x73d51b={..._0x2a92c8},_0x14adef={'shapeId':_0x1cede8[_0x807f09(0x192)],'cxnIndex':_0x1cede8['cxnIndex']};_0x3838e6?(_0x73d51b[_0x807f09(0x170)]=_0x14adef,_0x73d51b['to']=_0x4ffd3c):(_0x73d51b[_0x807f09(0x170)]=_0x4ffd3c,_0x73d51b['to']=_0x14adef);let _0x31699e={'unitId':this[_0x807f09(0x35e)],'subUnitId':this[_0x807f09(0x3d0)],'connectorShapeId':this['_activeShapeId'],'width':_0x387926[_0x807f09(0x24b)][_0x807f09(0x373)],'height':_0x387926['worldRect']['height'],'left':_0x387926[_0x807f09(0x24b)]['left'],'top':_0x387926[_0x807f09(0x24b)][_0x807f09(0x15c)],'flipX':_0x387926[_0x807f09(0x24b)][_0x807f09(0x36a)]||!0x1,'flipY':_0x387926[_0x807f09(0x24b)][_0x807f09(0x285)]||!0x1,'oldAdjustValues':_0x22ce9b,'newAdjustValues':_0x387926[_0x807f09(0x400)],'newLineType':_0x387926[_0x807f09(0x1f1)],'rotation':_0x387926[_0x807f09(0x290)],'oldRelation':_0x2a92c8,'newRelation':_0x73d51b};this[_0x807f09(0x398)][_0x807f09(0x1c1)](_0x4b6727['id'],_0x31699e);}[_0x2d0df6(0x414)](_0x334d0b,_0x4ffb0a,_0x20d42c,_0x3782ca){const _0xf0019c=_0x2d0df6;let _0x2f65d7=this['_activeShapeModel'][_0xf0019c(0x353)]()['relation'],_0x39ed9f={};_0x20d42c?(_0x39ed9f['to']=_0x4ffb0a,_0x39ed9f[_0xf0019c(0x170)]=void 0x0):(_0x39ed9f['from']=_0x4ffb0a,_0x39ed9f['to']=void 0x0);let _0x23cc60={'unitId':this[_0xf0019c(0x35e)],'subUnitId':this[_0xf0019c(0x3d0)],'connectorShapeId':this[_0xf0019c(0x366)],'width':_0x334d0b['worldRect']['width'],'height':_0x334d0b[_0xf0019c(0x24b)][_0xf0019c(0x18b)],'left':_0x334d0b[_0xf0019c(0x24b)][_0xf0019c(0x2f5)],'top':_0x334d0b[_0xf0019c(0x24b)][_0xf0019c(0x15c)],'flipX':_0x334d0b['worldRect']['flipX']||!0x1,'flipY':_0x334d0b[_0xf0019c(0x24b)]['flipY']||!0x1,'oldAdjustValues':_0x3782ca,'newAdjustValues':_0x334d0b[_0xf0019c(0x400)],'newLineType':_0x334d0b[_0xf0019c(0x1f1)],'rotation':_0x334d0b['rotation'],'oldRelation':_0x2f65d7,'newRelation':_0x39ed9f};this[_0xf0019c(0x398)]['executeCommand'](_0x4b6727['id'],_0x23cc60);}['_attachConnectorObjectEvent'](_0x1ec7fc,_0x31dcfd,_0x2db6ef){const _0x58adc9=_0x2d0df6;this['disposeWithMe'](_0x3d1384(_0x1ec7fc[_0x58adc9(0x312)]['subscribeEvent']((_0xe2ae7e,_0x577552)=>{const _0x14643a=_0x58adc9;let _0x1f1004=_0x1ec7fc['getDrawingSearch']();if(this[_0x14643a(0x323)]=this[_0x14643a(0x1b8)][_0x14643a(0x26f)](_0x1f1004[_0x14643a(0x2eb)],_0x1f1004['subUnitId'],_0x1f1004['drawingId']),!this['_activeShapeModel'])return;let _0x19fc53={};this['_activeShapeModel'][_0x14643a(0x3df)]()[_0x14643a(0x231)](_0x4b952d=>{const _0x401c51=_0x14643a;let _0x104b4c=this[_0x401c51(0x323)]['getAdjustValueByName'](_0x4b952d);_0x104b4c!==void 0x0&&(_0x19fc53[_0x4b952d]=_0x104b4c);});let _0xc1976a=this[_0x14643a(0x1a0)]();if(!_0xc1976a)return;this['_baseDrawingRect']={..._0xc1976a};let _0x42e799=new _0xacaece(this[_0x14643a(0x411)]),_0x3823a4=_0x41d737({'unitId':this[_0x14643a(0x35e)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x47ce8e=_0x31dcfd['getObjectIncludeInGroup'](_0x3823a4);this[_0x14643a(0x259)]=!0x0,_0x31dcfd[_0x14643a(0x326)](),this['_sheetBasicShapeConnectionPointController'][_0x14643a(0x27b)](_0x31dcfd,this[_0x14643a(0x35e)],this[_0x14643a(0x3d0)],this['_activeShapeId']),this['_currentConnectionTarget']=null;let _0x46721a=this[_0x14643a(0x323)][_0x14643a(0x2a3)](),_0x559556=_0x46721a[0x0],_0x10f0ad=_0x46721a[_0x46721a[_0x14643a(0x3a5)]-0x1],_0x5187f6=_0x2db6ef?_0x42e799['localToWorld'](_0x10f0ad):_0x42e799[_0x14643a(0x1c5)](_0x559556);this[_0x14643a(0x32c)]=_0x31dcfd[_0x14643a(0x39d)][_0x14643a(0x1de)]((_0x2fd8e3,_0x1f4d14)=>{const _0x3d4ae5=_0x14643a;if(!this[_0x3d4ae5(0x259)]||!this[_0x3d4ae5(0x323)])return;this[_0x3d4ae5(0x412)]||=(this[_0x3d4ae5(0x25b)][_0x3d4ae5(0x383)](),this['_activeShapeModel'][_0x3d4ae5(0x214)](),!0x0);let _0x5c68e7=this[_0x3d4ae5(0x3cc)](this['_unitId'],this[_0x3d4ae5(0x3d0)]),_0x257fb6=this[_0x3d4ae5(0x208)](this['_unitId'],this[_0x3d4ae5(0x3d0)]),_0x58066f={'x':_0x2fd8e3[_0x3d4ae5(0x2ec)]/_0x257fb6+_0x5c68e7['x'],'y':_0x2fd8e3[_0x3d4ae5(0x2fe)]/_0x257fb6+_0x5c68e7['y']},_0x5be9b6=this[_0x3d4ae5(0x3d3)][_0x3d4ae5(0x364)](_0x58066f);if(_0x5be9b6){let {shapeId:_0xe4897f,unitId:_0x3d4d56,subUnitId:_0x2b580f}=_0x5be9b6;if(_0xe4897f&&_0x3d4d56&&_0x2b580f){let _0x2c49ea=_0x41d737({'unitId':_0x3d4d56,'subUnitId':_0x2b580f,'drawingId':_0xe4897f});_0x5be9b6[_0x3d4ae5(0x349)]=(_0x31dcfd['getObjectIncludeInGroup'](_0x2c49ea)[_0x3d4ae5(0x349)]||0x0)+_0x5be9b6['angle'];}}this[_0x3d4ae5(0x3fd)]=_0x5be9b6;let _0x567e5b=_0x2db6ef?this[_0x3d4ae5(0x323)][_0x3d4ae5(0x3b7)]():this['_activeShapeModel'][_0x3d4ae5(0x3ff)]();if(_0x567e5b){this[_0x3d4ae5(0x20b)](_0x567e5b,_0x58066f,_0x2db6ef,_0x47ce8e,_0x1ec7fc);return;}this[_0x3d4ae5(0x1d3)](_0x58066f,_0x5187f6,_0x2db6ef,_0x47ce8e,_0x1ec7fc);}),this['_cxtHandlerPointerUp']=_0x31dcfd[_0x14643a(0x234)][_0x14643a(0x1de)]((_0x1ae2d9,_0x3204f7)=>{const _0x1f6e7c=_0x14643a;this[_0x1f6e7c(0x3c6)](_0x31dcfd,_0x5187f6,_0x1ae2d9,_0x2db6ef,_0x19fc53);}),_0x577552[_0x14643a(0x1eb)]();})));}[_0x2d0df6(0x2a5)](_0x31badb,_0xf555cc,_0x2bbc91){const _0x75aaa3=_0x2d0df6;let _0x1cf8ea=this[_0x75aaa3(0x1b8)][_0x75aaa3(0x271)](_0x31badb,_0xf555cc,_0x2bbc91);if(!_0x1cf8ea||_0x1cf8ea['length']===0x0)return;let _0x44de6f=this[_0x75aaa3(0x3ea)]['getRenderUnitById'](_0x31badb);if(!_0x44de6f)return;let {scene:_0x594656}=_0x44de6f;for(let _0x236f57 of _0x1cf8ea){let _0x432bb9=_0x236f57[_0x75aaa3(0x2be)],_0x3013eb=this[_0x75aaa3(0x1b8)]['getShapeModel'](_0x31badb,_0xf555cc,_0x432bb9);if(!_0x3013eb)continue;let _0x59b5cf=_0x3013eb[_0x75aaa3(0x3ff)](),_0x127a40=_0x3013eb['getEndConnectInfo'](),_0x4dc2c6=(_0x59b5cf==null?void 0x0:_0x59b5cf[_0x75aaa3(0x192)])===_0x2bbc91,_0x3aeee3=_0x41d737({'unitId':_0x31badb,'subUnitId':_0xf555cc,'drawingId':_0x432bb9}),_0x283529=_0x594656[_0x75aaa3(0x2f1)](_0x3aeee3);if(!_0x283529)continue;let _0x3f713b=this[_0x75aaa3(0x34f)][_0x75aaa3(0x190)]({'unitId':_0x31badb,'subUnitId':_0xf555cc,'drawingId':_0x432bb9});_0x3f713b!=null&&_0x3f713b['transform']&&(_0x59b5cf&&_0x127a40?this[_0x75aaa3(0x22c)](_0x31badb,_0xf555cc,_0x432bb9,_0x3013eb,_0x59b5cf,_0x127a40,_0x283529):this[_0x75aaa3(0x325)](_0x31badb,_0xf555cc,_0x432bb9,_0x3013eb,_0x4dc2c6?_0x59b5cf:_0x127a40,_0x4dc2c6,_0x3f713b,_0x283529));}}[_0x2d0df6(0x22c)](_0x308cff,_0xc8c14c,_0x19042b,_0x24cacf,_0x30596b,_0x3ffde5,_0x3589b5){const _0x24139f=_0x2d0df6;let _0x4fb270=this[_0x24139f(0x35e)],_0x1abba8=this[_0x24139f(0x3d0)];this[_0x24139f(0x35e)]=_0x308cff,this[_0x24139f(0x3d0)]=_0xc8c14c;let _0x3ab326=this[_0x24139f(0x269)](_0x30596b),_0x2cf540=this[_0x24139f(0x269)](_0x3ffde5);if(this[_0x24139f(0x35e)]=_0x4fb270,this[_0x24139f(0x3d0)]=_0x1abba8,!_0x3ab326||!_0x2cf540)return;let _0x2b3d00=_0x24cacf['getShapeType'](),_0x5defa3=_0x1f19d7(_0x3ab326,_0x2cf540,_0x2b3d00);_0x5defa3&&_0x24cacf[_0x24139f(0x2d8)](_0x5defa3);let _0x306d40=_0x3e6f46(_0x5defa3,_0x2b3d00);_0x306d40[_0x24139f(0x1f1)]!==_0x2b3d00&&_0x24cacf[_0x24139f(0x15e)](_0x306d40[_0x24139f(0x1f1)]),_0x24cacf[_0x24139f(0x214)]();for(let [_0x201113,_0x46ee93]of Object['entries'](_0x306d40[_0x24139f(0x400)]))_0x24cacf[_0x24139f(0x253)](_0x201113,_0x46ee93);_0x24cacf[_0x24139f(0x267)]({'width':_0x306d40['worldRect'][_0x24139f(0x373)],'height':_0x306d40[_0x24139f(0x24b)][_0x24139f(0x18b)]}),_0x3589b5[_0x24139f(0x1f2)]({'flipX':_0x306d40['worldRect'][_0x24139f(0x36a)],'flipY':_0x306d40['worldRect']['flipY'],'left':_0x306d40['worldRect']['left'],'top':_0x306d40[_0x24139f(0x24b)]['top'],'width':_0x306d40[_0x24139f(0x24b)][_0x24139f(0x373)],'height':_0x306d40['worldRect']['height'],'angle':_0x306d40[_0x24139f(0x290)]}),_0x24cacf[_0x24139f(0x201)]();}['_moveConnectorWithShape'](_0x31c0ec,_0x56a67b,_0x5de1f4,_0x270833,_0x328701,_0x4eb316,_0x3c4019,_0x316ab0){const _0xc858ee=_0x2d0df6;let _0x26fa77=this[_0xc858ee(0x35e)],_0x55c222=this[_0xc858ee(0x3d0)];this[_0xc858ee(0x35e)]=_0x31c0ec,this[_0xc858ee(0x3d0)]=_0x56a67b;let _0xe783a8=this[_0xc858ee(0x269)](_0x328701);if(this[_0xc858ee(0x35e)]=_0x26fa77,this['_subUnitId']=_0x55c222,!_0xe783a8)return;let {left:_0xdc7cbb=0x0,top:_0x4e800f=0x0,width:_0x5e85b0=0x0,height:_0x33e96a=0x0,flipX:_0x4eace2=!0x1,flipY:_0x430fd8=!0x1}=_0x3c4019[_0xc858ee(0x284)],_0x28c6cd=_0x270833[_0xc858ee(0x2a3)]();if(_0x28c6cd['length']<0x2)return;let _0x4d600d=new _0xacaece({'left':_0xdc7cbb,'top':_0x4e800f,'width':_0x5e85b0,'height':_0x33e96a,'flipX':_0x4eace2,'flipY':_0x430fd8}),_0x982cfe=_0x4eb316?_0x28c6cd[_0x28c6cd[_0xc858ee(0x3a5)]-0x1]:_0x28c6cd[0x0],_0x4986ec=_0x4d600d['localToWorld'](_0x982cfe),_0x514836=_0xacaece[_0xc858ee(0x313)](_0x4986ec,_0xe783a8[_0xc858ee(0x410)],!_0x4eb316);_0x316ab0[_0xc858ee(0x1f2)]({'flipX':_0x514836['worldRect'][_0xc858ee(0x36a)],'flipY':_0x514836[_0xc858ee(0x24b)][_0xc858ee(0x285)],'left':_0x514836[_0xc858ee(0x24b)]['left'],'top':_0x514836['worldRect'][_0xc858ee(0x15c)],'width':_0x514836[_0xc858ee(0x24b)][_0xc858ee(0x373)],'height':_0x514836[_0xc858ee(0x24b)]['height'],'angle':_0x514836[_0xc858ee(0x24b)][_0xc858ee(0x349)]}),_0x316ab0[_0xc858ee(0x1e7)](!0x0);}[_0x2d0df6(0x1c9)](){const _0x3a70e4=_0x2d0df6;this[_0x3a70e4(0x1e0)][_0x3a70e4(0x3a5)]!==0x0&&(this[_0x3a70e4(0x1e0)][_0x3a70e4(0x231)](_0x5cde73=>{const _0x493a93=_0x3a70e4;_0x5cde73[_0x493a93(0x1e1)]();}),this[_0x3a70e4(0x1e0)]=[]);}[_0x2d0df6(0x37a)](){const _0x44a37b=_0x2d0df6;let _0x5db0a8=this[_0x44a37b(0x385)][_0x44a37b(0x2bb)](_0x2711d0[_0x44a37b(0x2c9)]);this['disposeWithMe'](_0x5db0a8[_0x44a37b(0x301)](_0x198be4(_0x10f68e=>_0x10f68e?_0x10f68e['activeSheet$']['pipe'](_0x198be4(_0x1ac420=>{const _0xe6179=_0x44a37b;if(!_0x1ac420)return _0x50c59a;let _0x166eb5=_0x10f68e[_0xe6179(0x1c7)](),_0x51aed5=this[_0xe6179(0x3ea)][_0xe6179(0x2e5)](_0x166eb5),_0xa7bab7=_0x51aed5==null?void 0x0:_0x51aed5['scene'];return _0xa7bab7?_0xc07474(_0xa7bab7):_0x50c59a;})):_0x50c59a))['subscribe'](_0x5bac95=>{const _0x1a803c=_0x44a37b;let _0x43088a=_0x5bac95[_0x1a803c(0x378)]();this[_0x1a803c(0x2fd)](_0x5bac95[_0x1a803c(0x39d)][_0x1a803c(0x1de)](_0x2a25d4=>{const _0x5a23ea=_0x1a803c;this['_isDrawingShapePointDown']&&this['_activeShapeId']&&this[_0x5a23ea(0x1c9)]();})),this[_0x1a803c(0x2fd)](_0x43088a['changeStart$'][_0x1a803c(0x365)](_0x4478fa=>{const _0x3aafaf=_0x1a803c;let {objects:_0x12fb80}=_0x4478fa;this[_0x3aafaf(0x1c9)](),_0x12fb80!==null&&_0x12fb80['size']===0x1&&_0x12fb80[_0x3aafaf(0x39c)]()['next']()['value']instanceof Er&&(this[_0x3aafaf(0x3d6)]=!0x0);})),this[_0x1a803c(0x2fd)](_0x43088a[_0x1a803c(0x370)][_0x1a803c(0x365)](_0x101cf3=>{const _0x337dd4=_0x1a803c;this[_0x337dd4(0x3d6)]&&this[_0x337dd4(0x1c9)]();})),this[_0x1a803c(0x2fd)](_0x5bac95[_0x1a803c(0x234)][_0x1a803c(0x1de)](()=>{const _0x2453da=_0x1a803c;this[_0x2453da(0x3d6)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x2453da(0x328)]());})),this[_0x1a803c(0x2fd)](_0x43088a['changeEnd$'][_0x1a803c(0x365)](()=>{const _0x30d226=_0x1a803c;this['_unitId']&&this[_0x30d226(0x3d0)]&&this[_0x30d226(0x366)]&&this[_0x30d226(0x34f)][_0x30d226(0x190)]({'unitId':this[_0x30d226(0x35e)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x30d226(0x366)]})&&(this[_0x30d226(0x1c9)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x2d0df6(0x1be)](){const _0x4f4ad1=_0x2d0df6;this[_0x4f4ad1(0x2fd)](this[_0x4f4ad1(0x34f)][_0x4f4ad1(0x2cd)][_0x4f4ad1(0x365)](_0x54c3e8=>{const _0xe08267=_0x4f4ad1;if(_0x54c3e8[_0xe08267(0x3a5)]===0x1){let _0x4a2895=_0x54c3e8[0x0];if(_0x4a2895[_0xe08267(0x309)]===_0x21920f[_0xe08267(0x219)]){let _0x1b0ac8=this[_0xe08267(0x1b8)][_0xe08267(0x26f)](_0x4a2895['unitId'],_0x4a2895[_0xe08267(0x1c3)],_0x4a2895[_0xe08267(0x1e2)]);if(_0x1b0ac8&&_0x2f1e1e(_0x1b0ac8[_0xe08267(0x1bd)]())){this[_0xe08267(0x366)]=_0x4a2895['drawingId'],this['_unitId']=_0x4a2895[_0xe08267(0x2eb)],this['_subUnitId']=_0x4a2895[_0xe08267(0x1c3)],this[_0xe08267(0x1c9)](),this[_0xe08267(0x328)]();return;}}}this[_0xe08267(0x366)]=void 0x0,this[_0xe08267(0x35e)]=void 0x0,this[_0xe08267(0x3d0)]=void 0x0,this[_0xe08267(0x1c9)]();})),this['disposeWithMe'](this[_0x4f4ad1(0x34f)]['update$'][_0x4f4ad1(0x365)](_0x38edb4=>{const _0x3cd9aa=_0x4f4ad1;if(_0x38edb4['length']===0x1){var _0x3284f6;let _0x449905=_0x38edb4[0x0],_0x10734a=(_0x3284f6=this['_drawingManagerService'][_0x3cd9aa(0x190)](_0x449905))==null?void 0x0:_0x3284f6[_0x3cd9aa(0x309)];_0x10734a===_0x21920f[_0x3cd9aa(0x219)]&&_0x449905[_0x3cd9aa(0x1e2)]===this['_activeShapeId']?(this[_0x3cd9aa(0x1c9)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x3cd9aa(0x366)]&&_0x10734a===_0x21920f[_0x3cd9aa(0x219)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x449905['unitId'],_0x449905[_0x3cd9aa(0x1c3)],_0x449905[_0x3cd9aa(0x1e2)]);}})),this[_0x4f4ad1(0x2fd)](this[_0x4f4ad1(0x34f)][_0x4f4ad1(0x209)]['subscribe'](_0x383056=>{const _0x1dc3a8=_0x4f4ad1;for(let _0x3140a1 of _0x383056){let {drawingId:_0x5d9da6}=_0x3140a1;if(this[_0x1dc3a8(0x366)]===_0x5d9da6){this[_0x1dc3a8(0x31f)]();return;}}}));}[_0x2d0df6(0x20b)](_0x81fe6f,_0xb15fa0,_0x582577,_0x3796a9,_0x538581){const _0x539f51=_0x2d0df6;var _0x39e682;if(!this['_activeShapeModel'])return;let _0x24f574=this[_0x539f51(0x269)](_0x81fe6f);if(!_0x24f574)return;let _0x81907c=this[_0x539f51(0x3fd)]?this[_0x539f51(0x3fd)][_0x539f51(0x1b4)]:_0xb15fa0,_0x4dffa1=this[_0x539f51(0x3fd)]?this[_0x539f51(0x3fd)][_0x539f51(0x349)]:this['_calculateFreeEndpointAngle'](_0x24f574[_0x539f51(0x410)],_0x81907c),_0x7b8b56;if(this[_0x539f51(0x3fd)]){let _0x47d91a=this[_0x539f51(0x34f)][_0x539f51(0x190)]({'unitId':this[_0x539f51(0x3fd)][_0x539f51(0x2eb)],'subUnitId':this[_0x539f51(0x3fd)][_0x539f51(0x1c3)],'drawingId':this['_currentConnectionTarget'][_0x539f51(0x192)]});if(_0x47d91a!=null&&_0x47d91a[_0x539f51(0x284)]){let {left:_0x1b65fb=0x0,top:_0x445879=0x0,width:_0x528ecd=0x0,height:_0xff39cb=0x0,angle:_0x57154e}=_0x47d91a[_0x539f51(0x284)];_0x7b8b56=_0x1e6341({'left':_0x1b65fb,'top':_0x445879,'width':_0x528ecd,'height':_0xff39cb},_0x57154e||0x0);}else _0x7b8b56={'left':_0x81907c['x'],'top':_0x81907c['y'],'width':0x0,'height':0x0};}else _0x7b8b56={'left':_0x81907c['x'],'top':_0x81907c['y'],'width':0x0,'height':0x0};let _0x365e00={'point':_0x81907c,'angle':_0x4dffa1,'bounds':_0x7b8b56},_0x42a865=_0x582577?_0x365e00:_0x24f574,_0x4b19b7=_0x582577?_0x24f574:_0x365e00,_0x5dac1a=this[_0x539f51(0x323)][_0x539f51(0x1bd)](),_0x19803d=_0x1f19d7(_0x42a865,_0x4b19b7,_0x5dac1a);_0x19803d&&this[_0x539f51(0x323)][_0x539f51(0x2d8)](_0x19803d);let _0x3d025e=_0x3e6f46(_0x19803d,_0x5dac1a);_0x3d025e[_0x539f51(0x1f1)]!==_0x5dac1a&&this['_activeShapeModel'][_0x539f51(0x15e)](_0x3d025e[_0x539f51(0x1f1)]);for(let [_0x1339f3,_0x81aa51]of Object['entries'](_0x3d025e[_0x539f51(0x400)]))this[_0x539f51(0x323)][_0x539f51(0x253)](_0x1339f3,_0x81aa51);this[_0x539f51(0x323)][_0x539f51(0x267)]({'width':_0x3d025e[_0x539f51(0x24b)]['width'],'height':_0x3d025e[_0x539f51(0x24b)][_0x539f51(0x18b)]}),_0x3796a9[_0x539f51(0x1f2)]({'flipX':_0x3d025e[_0x539f51(0x24b)]['flipX'],'flipY':_0x3d025e['worldRect'][_0x539f51(0x285)],'left':_0x3d025e[_0x539f51(0x24b)][_0x539f51(0x2f5)],'top':_0x3d025e[_0x539f51(0x24b)][_0x539f51(0x15c)],'width':_0x3d025e[_0x539f51(0x24b)][_0x539f51(0x373)],'height':_0x3d025e['worldRect']['height'],'angle':_0x3d025e[_0x539f51(0x290)]}),_0x3796a9['makeDirty'](!0x0);let _0xd5d272=((_0x39e682=this[_0x539f51(0x3fd)])==null?void 0x0:_0x39e682[_0x539f51(0x1b4)])??_0xb15fa0;_0x538581[_0x539f51(0x1f2)]({'left':_0xd5d272['x']-_0x10a8b7[_0x539f51(0x314)],'top':_0xd5d272['y']-_0x10a8b7[_0x539f51(0x314)]});}[_0x2d0df6(0x1d3)](_0x7c682d,_0x3801c3,_0x399fe0,_0x41de32,_0x592c2a){const _0x423a3e=_0x2d0df6;var _0x354a28,_0x1a8bba;let _0x42a78f=((_0x354a28=this[_0x423a3e(0x3fd)])==null?void 0x0:_0x354a28[_0x423a3e(0x1b4)])??_0x7c682d,_0x4b38e9=_0xacaece['computeConnectorResizeLayout'](_0x3801c3,_0x42a78f,_0x399fe0);_0x41de32[_0x423a3e(0x1f2)]({'flipX':_0x4b38e9['worldRect']['flipX'],'flipY':_0x4b38e9[_0x423a3e(0x24b)][_0x423a3e(0x285)],'left':_0x4b38e9[_0x423a3e(0x24b)][_0x423a3e(0x2f5)],'top':_0x4b38e9[_0x423a3e(0x24b)]['top'],'width':_0x4b38e9['worldRect']['width'],'height':_0x4b38e9[_0x423a3e(0x24b)][_0x423a3e(0x18b)],'angle':_0x4b38e9[_0x423a3e(0x24b)][_0x423a3e(0x349)]});let _0x359f5d=((_0x1a8bba=this[_0x423a3e(0x3fd)])==null?void 0x0:_0x1a8bba[_0x423a3e(0x1b4)])??_0x7c682d;_0x592c2a['transformByState']({'left':_0x359f5d['x']-_0x10a8b7[_0x423a3e(0x314)],'top':_0x359f5d['y']-_0x10a8b7[_0x423a3e(0x314)]});}[_0x2d0df6(0x269)](_0x3a6852){const _0x26855e=_0x2d0df6;if(!this['_unitId']||!this[_0x26855e(0x3d0)])return null;let {shapeId:_0x407e31,cxnIndex:_0x5aeefc}=_0x3a6852,_0x147ba2=this[_0x26855e(0x1b8)]['getShapeModel'](this[_0x26855e(0x35e)],this[_0x26855e(0x3d0)],_0x407e31);if(!_0x147ba2)return null;let _0x293879=this[_0x26855e(0x34f)]['getDrawingByParam']({'unitId':this[_0x26855e(0x35e)],'subUnitId':this[_0x26855e(0x3d0)],'drawingId':_0x407e31});if(!(_0x293879!=null&&_0x293879[_0x26855e(0x284)]))return null;let {left:_0x3ea4fb=0x0,top:_0x1d091b=0x0,width:_0x58e53b=0x0,height:_0x20d609=0x0,flipX:_0x4665ba=!0x1,flipY:_0x93ac12=!0x1,angle:_0x1dfeba}=_0x293879['transform'];_0x147ba2[_0x26855e(0x267)]({'width':_0x58e53b,'height':_0x20d609});let _0x1c5312=_0x147ba2[_0x26855e(0x41f)]()['find'](_0x4a496b=>_0x4a496b[_0x26855e(0x32e)]===_0x5aeefc);if(!_0x1c5312)return null;let _0xef7587=_0x4665ba?_0x58e53b-_0x1c5312['x']:_0x1c5312['x'],_0x1e2f6a=_0x93ac12?_0x20d609-_0x1c5312['y']:_0x1c5312['y'];if(_0x1dfeba!==0x0&&_0x1dfeba!=null){let _0x32828f=_0x1dfeba*Math['PI']/0xb4,_0xfeaca3=Math['cos'](_0x32828f),_0x3a36b5=Math[_0x26855e(0x257)](_0x32828f),_0x37842e=_0x58e53b/0x2,_0x3fb296=_0x20d609/0x2,_0x322043=_0xef7587-_0x37842e,_0x571fae=_0x1e2f6a-_0x3fb296;_0xef7587=_0x37842e+_0x322043*_0xfeaca3-_0x571fae*_0x3a36b5,_0x1e2f6a=_0x3fb296+_0x322043*_0x3a36b5+_0x571fae*_0xfeaca3;}_0xef7587+=_0x3ea4fb,_0x1e2f6a+=_0x1d091b;let _0x23a6fd=_0x1c5312[_0x26855e(0x2b9)]/0xea60;_0x4665ba&&(_0x23a6fd=0xb4-_0x23a6fd),_0x93ac12&&(_0x23a6fd=-_0x23a6fd),_0x23a6fd+=_0x1dfeba||0x0,_0x23a6fd=(_0x23a6fd%0x168+0x168)%0x168;let _0x3a8b8c=_0x1e6341({'left':_0x3ea4fb,'top':_0x1d091b,'width':_0x58e53b,'height':_0x20d609},_0x1dfeba||0x0);return{'point':{'x':_0xef7587,'y':_0x1e2f6a},'angle':_0x23a6fd,'bounds':_0x3a8b8c};}[_0x2d0df6(0x295)](_0x477009,_0x5a891a){const _0x19bc41=_0x2d0df6;let _0x3fc961=_0x5a891a['x']-_0x477009['x'],_0x27c52b=_0x5a891a['y']-_0x477009['y'];return Math[_0x19bc41(0x1f8)](_0x3fc961)>=Math['abs'](_0x27c52b)?_0x3fc961>=0x0?0xb4:0x0:_0x27c52b>=0x0?0x10e:0x5a;}[_0x2d0df6(0x31f)](){const _0x4c7445=_0x2d0df6;this[_0x4c7445(0x366)]=void 0x0,this[_0x4c7445(0x35e)]=void 0x0,this[_0x4c7445(0x3d0)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x2d0df6(0x1e1)](){const _0x10e406=_0x2d0df6;this[_0x10e406(0x1c9)](),super[_0x10e406(0x1e1)]();}};sa=Y([J(0x1,_0x4a7048),J(0x2,_0xac3281),J(0x3,_0x569480),J(0x4,_0x1469ba),J(0x5,_0x337030(_0x1697a4)),J(0x6,_0x337030(Z)),J(0x7,_0x337030(ia))],sa);let ca=class extends _0x12ab23{constructor(_0x2fcd5c,_0x21f4a9,_0x1b78f0){const _0x31ec85=_0x2d0df6;super(),this[_0x31ec85(0x405)]=_0x2fcd5c,this[_0x31ec85(0x34f)]=_0x21f4a9,this[_0x31ec85(0x3fa)]=_0x1b78f0,this[_0x31ec85(0x216)]();}[_0x2d0df6(0x216)](){const _0x514aa0=_0x2d0df6;this['disposeWithMe'](this[_0x514aa0(0x405)][_0x514aa0(0x30f)][_0x514aa0(0x20f)](this[_0x514aa0(0x405)][_0x514aa0(0x30f)]['getInterceptPoints']()[_0x514aa0(0x2b0)],{'handler':(_0x2baf62,_0x42d091,_0x573723)=>{const _0x351c15=_0x514aa0;var _0x3658b8;let {unitId:_0x45ff34,subUnitId:_0x25f98c,scene:_0x4d6b73,resourceCollector:_0x25c37a}=_0x42d091,_0xded482=(_0x3658b8=this[_0x351c15(0x34f)][_0x351c15(0x2c1)](_0x45ff34))==null?void 0x0:_0x3658b8[_0x25f98c];return _0xded482==null||_0xded482[_0x351c15(0x2df)][_0x351c15(0x231)](_0x974e3e=>{const _0x124455=_0x351c15;let _0x403551=_0xded482[_0x124455(0x1ff)][_0x974e3e];_0x403551['drawingType']===_0x21920f[_0x124455(0x219)]&&!_0x403551[_0x124455(0x3d5)]&&this['_shapeRenderController']['renderDrawingShape'](_0x403551,_0x4d6b73,{'resourceCollector':_0x25c37a});}),_0x573723(_0x2baf62);}}));}};ca=Y([J(0x0,_0x337030(_0x3e6971)),J(0x1,_0x569480),J(0x2,_0x337030(X))],ca);let la=class extends _0x12ab23{constructor(_0x19d50a,_0x3930b5,_0x489958){const _0x21cd83=_0x2d0df6;super(),this[_0x21cd83(0x398)]=_0x19d50a,this[_0x21cd83(0x166)]=_0x3930b5,this[_0x21cd83(0x1df)]=_0x489958,this[_0x21cd83(0x2a4)]();}[_0x2d0df6(0x2a4)](){const _0x390fd8=_0x2d0df6;this[_0x390fd8(0x2fd)](this[_0x390fd8(0x398)][_0x390fd8(0x1fe)](_0x2595f1=>{const _0x3fb2f8=_0x390fd8;let _0x3e62ea,_0x1bad93;if(_0x2595f1['id']===_0x326c1c['id']||_0x2595f1['id']===_0x4e5ef7['id']||_0x2595f1['id']===_0x4b6727['id']){let _0x1593b6=_0x2595f1['params'];_0x3e62ea=_0x1593b6[_0x3fb2f8(0x2eb)],_0x1bad93=_0x1593b6[_0x3fb2f8(0x1c3)];}_0x3e62ea&&_0x1bad93&&(this['_sheetPermissionCheckController'][_0x3fb2f8(0x38f)]({'workbookTypes':[_0x2279d5],'worksheetTypes':[_0x840079]},_0x3e62ea,_0x1bad93)||this[_0x3fb2f8(0x1df)][_0x3fb2f8(0x24e)](this[_0x3fb2f8(0x166)]['t'](_0x3fb2f8(0x292))));}));}};la=Y([J(0x0,_0x337030(_0x4a7048)),J(0x1,_0x337030(_0x37c40f)),J(0x2,_0x337030(_0x454f65))],la);let ua=class{constructor(_0x102562){const _0x534b9a=_0x2d0df6;this[_0x534b9a(0x3ea)]=_0x102562;}[_0x2d0df6(0x178)](_0x11a7db,_0x2bb20b){const _0xca079b=_0x2d0df6;let _0x499bf1=this[_0xca079b(0x3ea)][_0xca079b(0x2e5)](_0x11a7db[_0xca079b(0x2eb)]),_0x1826a5=_0x499bf1==null?void 0x0:_0x499bf1[_0xca079b(0x34a)];if(!_0x1826a5)return;let _0x417186=_0x41d737(_0x11a7db),_0x46775b=_0x1826a5[_0xca079b(0x2f1)](_0x417186);_0x46775b==null||_0x46775b[_0xca079b(0x279)](_0x2bb20b);}};ua=Y([J(0x0,_0xac3281)],ua);let da=class extends _0x5ca9fd{constructor(_0x551184=Hi,_0x19b13,_0xbc34ef,_0x9d7b71,_0x262ba7){const _0x8ae8d9=_0x2d0df6;super(),this[_0x8ae8d9(0x1d5)]=_0x551184,this['_injector']=_0x19b13,this[_0x8ae8d9(0x398)]=_0xbc34ef,this['_configService']=_0x9d7b71,this[_0x8ae8d9(0x3ea)]=_0x262ba7;let {..._0x3b1d8e}=_0x46aa77({},Hi,this[_0x8ae8d9(0x1d5)]);this[_0x8ae8d9(0x273)][_0x8ae8d9(0x160)](Vi,_0x3b1d8e),this[_0x8ae8d9(0x191)]();}['onStarting'](){const _0x5d19a5=_0x2d0df6;this['_injector']['add']([Ji]),this[_0x5d19a5(0x3de)][_0x5d19a5(0x16b)](Ji),_0x497a61(this[_0x5d19a5(0x3de)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x2d0df6(0x1a7)](){const _0x50807a=_0x2d0df6;_0x497a61(this[_0x50807a(0x3de)],[[ia],[Z],[aa]]),_0x15f6ed(this[_0x50807a(0x3de)],[[aa],[Z]]),[[ia],[Ui],[sa],[Xi]][_0x50807a(0x231)](_0x384b5f=>{const _0x47c04f=_0x50807a;this[_0x47c04f(0x2fd)](this[_0x47c04f(0x3ea)][_0x47c04f(0x38c)](_0x2711d0[_0x47c04f(0x2c9)],_0x384b5f));});}[_0x2d0df6(0x359)](){const _0xd77895=_0x2d0df6;_0x15f6ed(this[_0xd77895(0x3de)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x2d0df6(0x33c)](){const _0x188db8=_0x2d0df6;this[_0x188db8(0x3de)][_0x188db8(0x16b)](Qi)[_0x188db8(0x19f)]();}[_0x2d0df6(0x191)](){const _0x500efd=_0x2d0df6;[kr,K,Or,Bi][_0x500efd(0x231)](_0x1b0289=>this['disposeWithMe'](this[_0x500efd(0x398)][_0x500efd(0x3b8)](_0x1b0289)));}};q(da,_0x2d0df6(0x1bf),_0x2711d0[_0x2d0df6(0x2c9)]),q(da,_0x2d0df6(0x26e),_0x2d0df6(0x1f3)),q(da,'packageName',Ri),q(da,_0x2d0df6(0x384),zi),da=Y([_0x344a57(_0x215a74,_0x426f70,_0x2aa519,_0x4a0305,_0xeb0ff5,_0x507268,_0x1d8781,_0x4fa095,_0x2c946a,_0x5548f0,_0x4bf7fa,_0x1e8479,_0x37cd7e),J(0x1,_0x337030(_0xb34587)),J(0x2,_0x4a7048),J(0x3,_0x553c69),J(0x4,_0xac3281)],da);const fa={'type':_0x20ba44[_0x2d0df6(0x2b5)],'id':_0x2d0df6(0x2ca),'handler'(){return!0x0;}};function pa(){const _0x178115=_0x2d0df6;let _0x433715=_0x21d47a(_0x569480),_0x4b5ef9=_0x460498(()=>_0x433715[_0x178115(0x2cd)],_0x433715[_0x178115(0x1dd)](),!0x1,[_0x433715]);return _0x4b5ef9[_0x178115(0x3a5)]===0x0?null:_0x3380eb('div',{'children':_0x3a9d5b(_0x178115(0x16d),{'className':_0x178115(0x36e),'children':[_0x3380eb(_0x4e1d8e,{'drawings':_0x4b5ef9,'hasCropper':!0x1}),_0x3380eb(_0x5dcbca,{'drawings':_0x4b5ef9})]})});}function ma(_0x4262c4){let {unitId:_0x450c56,subUnitId:_0x263eea,shapeId:_0x44b3d1}=_0x4262c4,_0x268c16=_0x21d47a(_0x4a7048),_0xcdc417=_0x21d47a(ua);return _0x3380eb(_0x2f405e,{..._0x4262c4,'positionEditor':_0x3380eb(pa,{}),'onUpdateShapeData':(_0x2350ef,_0x53379c)=>{br(_0x268c16,_0x450c56,_0x263eea,_0x44b3d1,_0x2350ef,_0x53379c);},'onUpdateLineShapeData':(_0x38cf37,_0xf55b83)=>{xr(_0x268c16,_0x450c56,_0x263eea,_0x44b3d1,_0x38cf37,_0xf55b83);},'onUpdateShapeFillImage':_0xeae699=>{const _0x9d3395=_0xd82a;_0xcdc417[_0x9d3395(0x178)]({'unitId':_0x450c56,'subUnitId':_0x263eea,'drawingId':_0x44b3d1},_0xeae699);}});}function ha(_0x10ac52){const _0x44331e=_0x2d0df6;let _0x3b8c8d=_0x21d47a(_0x1762ad),_0x3dad58=_0x460498(()=>_0x3b8c8d[_0x44331e(0x24f)],_0x3b8c8d[_0x44331e(0x197)](),!0x1,[_0x3b8c8d]),_0x5d3981=_0x10ac52[_0x44331e(0x2a9)][_0x44331e(0x389)];return!_0x5d3981||!_0x3dad58?null:_0x3380eb(ga,{..._0x5d3981,'canvasElement':_0x10ac52[_0x44331e(0x2a9)]['canvasElement']});}function ga(_0x287e05){const _0x2167c2=_0x2d0df6;let _0x13d60c=_0x21d47a(_0x4a7048),_0x3130e2=_0x21d47a(_0x1697a4),{unitId:_0x4c17a6,subUnitId:_0x56febf,drawingId:_0x33079d,drawingType:_0x4a073a,shapeType:_0x312d1a}=_0x287e05,[_0x3cfdf7,_0x429af1]=_0x122bd7(_0x287e05[_0x2167c2(0x393)]),_0x3a8f91=_0x3e840e(()=>_0x34f010(_0x3cfdf7),[_0x3cfdf7]),_0x2673bf=_0x3e840e(()=>_0x463fff(_0x3cfdf7),[_0x3cfdf7]);_0x4cf784(()=>{const _0x43e065=_0x2167c2;let _0x43979a=_0x13d60c[_0x43e065(0x428)](_0x1b700a=>{if(_0x1b700a['id']!==_0x1b95a1['id'])return;let _0x57db37=_0x3130e2['getShapeDataById'](_0x4c17a6,_0x56febf,_0x33079d);_0x57db37&&_0x429af1(_0x57db37);});return()=>_0x43979a[_0x43e065(0x1e1)]();},[_0x13d60c,_0x33079d,_0x3130e2,_0x56febf,_0x4c17a6]);let _0x387df0=_0x645f9a=>{_0x429af1(_0x2d9085=>({..._0x2d9085,..._0x645f9a}));},_0x3534e7=_0xed7472=>{const _0x5df28a=_0x2167c2;let _0xf9bdb1=_0x3cde81(_0x3cfdf7,_0xed7472);br(_0x13d60c,_0x4c17a6,_0x56febf,_0x33079d,{'oldShapeData':{'shapeText':_0x3cfdf7[_0x5df28a(0x203)]}},_0xf9bdb1),_0x387df0(_0xf9bdb1);},_0x2082fa=_0x7f1164({'hostType':_0x2711d0['UNIVER_SHEET'],'unitId':_0x4c17a6,'subUnitId':_0x56febf,'shapeId':_0x33079d,'shapeData':_0x3cfdf7,'onUpdateBinding':_0x33bafa=>{let _0x4fa147={'formulaBinding':_0x33bafa};br(_0x13d60c,_0x4c17a6,_0x56febf,_0x33079d,{'oldShapeData':{'formulaBinding':_0x3cfdf7['formulaBinding']}},_0x4fa147),_0x387df0(_0x4fa147);}});return _0x3a9d5b(_0x162bae,{'children':[_0x3380eb(_0x151805,{'canvasElement':_0x287e05[_0x2167c2(0x39f)],'shapeData':_0x3cfdf7,'shapeType':_0x312d1a,'textStyle':{'ff':_0x10a8b7[_0x2167c2(0x203)][_0x2167c2(0x388)],'fs':_0x10a8b7[_0x2167c2(0x203)]['fontSize'],'cl':{'rgb':_0x10a8b7[_0x2167c2(0x203)][_0x2167c2(0x2b4)]},..._0x3a8f91},'textModel':_0x2673bf?{'ha':_0x2673bf['ha']??_0x5b1066['LEFT'],'va':_0x2673bf['va']??_0x297c45[_0x2167c2(0x3bc)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x10a8b7[_0x2167c2(0x319)],'defaultGradientEndColor':_0x10a8b7[_0x2167c2(0x193)],'defaultStrokeColor':_0x10a8b7[_0x2167c2(0x327)],'extensionGroups':_0x2082fa[_0x2167c2(0x1ea)],'floatingObjectToolbarPosition':_0x50a715[_0x2167c2(0x3c8)],'onUpdateShapeData':(_0x172a4b,_0x4fb6ef)=>{br(_0x13d60c,_0x4c17a6,_0x56febf,_0x33079d,_0x172a4b,_0x4fb6ef),_0x4fb6ef&&_0x387df0(_0x4fb6ef);},'onUpdateText':_0x3534e7,'onOpenPanel':()=>{_0x13d60c['executeCommand'](Lr['id'],{'unitId':_0x4c17a6,'subUnitId':_0x56febf,'drawingId':_0x33079d});},'onDelete':()=>{_0x13d60c['executeCommand'](_0x25d548['id'],{'unitId':_0x4c17a6,'drawings':[{'unitId':_0x4c17a6,'subUnitId':_0x56febf,'drawingId':_0x33079d,'drawingType':_0x4a073a}]});}}),_0x2082fa[_0x2167c2(0x379)]]});}function _a(_0xff256f){const _0x12e8c8=_0x2d0df6;return!!_0xff256f&&_0x12e8c8(0x2fb)in _0xff256f&&_0x12e8c8(0x36b)in _0xff256f;}const va=_0x18b36d(()=>{const _0x3cbc4a=_0x2d0df6;let _0x35a80b=_0x21d47a($),_0x1c1e93=_0x21d47a(_0x1697a4),_0x1ecc10=_0x21d47a(_0x569480),_0x230e1a=_0x21d47a(_0x4a7048),_0x1efbb1=_0x21d47a(_0x3ece49),_0x43a48a=_0x21d47a(_0xac3281),_0x5a69f6=_0x3e840e(()=>({'getShapeModel':(_0x31f737,_0x28da3c,_0x211ef2)=>_0x1c1e93['getShapeModel'](_0x31f737,_0x28da3c,_0x211ef2),'getShapeData':(_0xab6909,_0x3b9632,_0x24e9ce)=>_0x1c1e93[_0x3cbc4a(0x322)](_0xab6909,_0x3b9632,_0x24e9ce),'getDrawingTransform':(_0x1ca002,_0x32e54d,_0x208773)=>{const _0x2c9c83=_0x3cbc4a;let _0x4f210a=_0x1ecc10['getDrawingByParam']({'unitId':_0x1ca002,'subUnitId':_0x32e54d,'drawingId':_0x208773});return _0x4f210a==null?void 0x0:_0x4f210a[_0x2c9c83(0x284)];},'updateShapeText':({unitId:_0x501e9e,subUnitId:_0x551c10,shapeId:_0x552e59,shapeText:_0x432363,oldShapeText:_0x37950f,hostSize:_0x33f1a5})=>{const _0x514827=_0x3cbc4a;_0x1efbb1[_0x514827(0x2a7)](_0x501e9e,()=>{const _0x588423=_0x514827;var _0x29ec29;let _0x5b1bb4=_0x230e1a['syncExecuteCommand'](K['id'],{'unitId':_0x501e9e,'subUnitId':_0x551c10,'shapeId':_0x552e59,'shapeData':{'shapeText':_0x432363},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x37950f}}});if(!_0x5b1bb4||!_0x33f1a5)return _0x5b1bb4;let _0x39e341=_0x1ecc10[_0x588423(0x190)]({'unitId':_0x501e9e,'subUnitId':_0x551c10,'drawingId':_0x552e59}),_0x43c286=_0x39e341==null?void 0x0:_0x39e341[_0x588423(0x284)];if(!_a(_0x39e341)||!_0x43c286)return!0x1;let _0x340f9f={..._0x43c286,'width':_0x33f1a5[_0x588423(0x373)],'height':_0x33f1a5['height']},_0x328954=(_0x29ec29=_0x43a48a['getRenderUnitById'](_0x501e9e))==null||(_0x29ec29=_0x29ec29[_0x588423(0x2ce)](_0x2e5cfd)[_0x588423(0x1cc)](_0x551c10))==null?void 0x0:_0x29ec29[_0x588423(0x2ac)];return _0x230e1a['syncExecuteCommand'](_0x24592a['id'],{'unitId':_0x501e9e,'drawings':[{..._0x39e341,'transform':_0x340f9f,'sheetTransform':_0x328954?_0x5adc81(_0x340f9f,_0x328954)??_0x39e341[_0x588423(0x36b)]:_0x39e341['sheetTransform'],'axisAlignSheetTransform':_0x328954?_0x355b06(_0x340f9f,_0x328954)??_0x39e341[_0x588423(0x2fb)]:_0x39e341[_0x588423(0x2fb)]}]});});},'updateHostSize':({unitId:_0x560d01,subUnitId:_0xb3a474,shapeId:_0xc431c2,width:_0x19770b,height:_0x38474d})=>{const _0x40eb94=_0x3cbc4a;var _0x559b29;let _0xff3dc0=_0x1ecc10[_0x40eb94(0x190)]({'unitId':_0x560d01,'subUnitId':_0xb3a474,'drawingId':_0xc431c2}),_0x53175b=_0xff3dc0==null?void 0x0:_0xff3dc0['transform'];if(!_a(_0xff3dc0)||!_0x53175b)return;let _0x587a0f={..._0x53175b,'width':_0x19770b,'height':_0x38474d},_0x1dbe9c=(_0x559b29=_0x43a48a[_0x40eb94(0x2e5)](_0x560d01))==null||(_0x559b29=_0x559b29[_0x40eb94(0x2ce)](_0x2e5cfd)[_0x40eb94(0x1cc)](_0xb3a474))==null?void 0x0:_0x559b29['skeleton'],_0x1820f0=_0x1dbe9c?_0x5adc81(_0x587a0f,_0x1dbe9c)??_0xff3dc0[_0x40eb94(0x36b)]:_0xff3dc0['sheetTransform'],_0x13e7a6=_0x1dbe9c?_0x355b06(_0x587a0f,_0x1dbe9c)??_0xff3dc0['axisAlignSheetTransform']:_0xff3dc0[_0x40eb94(0x2fb)];_0x230e1a[_0x40eb94(0x1c1)](_0x24592a['id'],{'unitId':_0x560d01,'drawings':[{..._0xff3dc0,'transform':_0x587a0f,'sheetTransform':_0x1820f0,'axisAlignSheetTransform':_0x13e7a6}]});},'allowHostSizeShrink':({unitId:_0x19212b,subUnitId:_0xd7a253,shapeId:_0x2fe58c})=>_0x4c2568(_0x1c1e93['getShapeDataById'](_0x19212b,_0xd7a253,_0x2fe58c)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x230e1a,_0x1ecc10,_0x43a48a,_0x1c1e93,_0x1efbb1]),_0x509e87=_0x3e840e(()=>({'viewportKeys':{'main':_0x517af6[_0x3cbc4a(0x26a)],'leftTop':_0x517af6[_0x3cbc4a(0x3b6)],'top':_0x517af6[_0x3cbc4a(0x2b2)],'left':_0x517af6[_0x3cbc4a(0x175)]},'getSkeleton':(_0x303894,_0x338018)=>{const _0xddf0df=_0x3cbc4a;var _0xc8a545;return((_0xc8a545=_0x303894[_0xddf0df(0x2ce)](_0x2e5cfd)[_0xddf0df(0x1cc)](_0x338018['subUnitId']))==null?void 0x0:_0xc8a545['skeleton'])??null;}}),[]);return _0x3380eb(_0x300b41,{'adapter':_0x5a69f6,'editingService':_0x35a80b,'editorUnitId':Pr,'positionOptions':_0x509e87});});let ya=class extends _0x12ab23{constructor(_0x4b326b,_0x40836b){const _0x1bce47=_0x2d0df6;super(),this[_0x1bce47(0x174)]=_0x4b326b,this[_0x1bce47(0x189)]=_0x40836b,this[_0x1bce47(0x3be)](),this[_0x1bce47(0x3f5)]();}[_0x2d0df6(0x3be)](){const _0x193317=_0x2d0df6;this[_0x193317(0x189)][_0x193317(0x368)](_0x193317(0x1d1))||this[_0x193317(0x2fd)](this[_0x193317(0x189)][_0x193317(0x3c2)]({'ObjectLayersIcon':_0x106bf2})),this[_0x193317(0x189)][_0x193317(0x368)]('FlipHorizontalIcon')||this['disposeWithMe'](this['_iconManager'][_0x193317(0x3c2)]({'FlipHorizontalIcon':_0x3b3e83})),this[_0x193317(0x189)][_0x193317(0x368)](_0x193317(0x263))||this[_0x193317(0x2fd)](this[_0x193317(0x189)]['register']({'FlipVerticalIcon':_0xe9d97c})),this[_0x193317(0x189)][_0x193317(0x368)](_0x193317(0x165))||this[_0x193317(0x2fd)](this['_iconManager'][_0x193317(0x3c2)]({'BottomIcon':_0x4b42da})),this[_0x193317(0x189)][_0x193317(0x368)]('MoveDownIcon')||this[_0x193317(0x2fd)](this[_0x193317(0x189)]['register']({'MoveDownIcon':_0x228ede})),this['_iconManager'][_0x193317(0x368)]('MoveUpIcon')||this[_0x193317(0x2fd)](this['_iconManager'][_0x193317(0x3c2)]({'MoveUpIcon':_0x4fac57})),this[_0x193317(0x189)][_0x193317(0x368)](_0x193317(0x227))||this[_0x193317(0x2fd)](this[_0x193317(0x189)][_0x193317(0x3c2)]({'ShapeFormatSettingIcon':_0x3d6914})),this[_0x193317(0x189)][_0x193317(0x368)](_0x193317(0x415))||this['disposeWithMe'](this[_0x193317(0x189)]['register']({'TopmostIcon':_0x1bc2e3}));}['_registerComponents'](){const _0x502eab=_0x2d0df6;this[_0x502eab(0x2fd)](this[_0x502eab(0x174)][_0x502eab(0x3c2)](Ar,ma)),this[_0x502eab(0x2fd)](this[_0x502eab(0x174)]['register'](jr,Ki)),this[_0x502eab(0x2fd)](this['_componentManager']['register'](Vr,qr)),this['disposeWithMe'](this[_0x502eab(0x174)][_0x502eab(0x3c2)](Hr,Wr)),this[_0x502eab(0x174)][_0x502eab(0x16b)](_0x84139e)||this[_0x502eab(0x2fd)](this[_0x502eab(0x174)][_0x502eab(0x3c2)](_0x84139e,Kr)),this[_0x502eab(0x2fd)](this[_0x502eab(0x174)][_0x502eab(0x3c2)](Mr,ha)),this[_0x502eab(0x2fd)](this[_0x502eab(0x174)][_0x502eab(0x3c2)](ii,ci)),this[_0x502eab(0x2fd)](this['_componentManager'][_0x502eab(0x3c2)](ri,li)),this['disposeWithMe'](this[_0x502eab(0x174)][_0x502eab(0x3c2)](ai,ui)),this[_0x502eab(0x2fd)](this['_componentManager'][_0x502eab(0x3c2)](oi,di)),this['disposeWithMe'](this[_0x502eab(0x174)][_0x502eab(0x3c2)](Fr,_0x4da2bf)),this[_0x502eab(0x2fd)](this[_0x502eab(0x174)]['register'](_0x502eab(0x422),va));}};function _0x610e(){const _0x1e760b=['3215tdzRuZ','MEDIA','FlipVerticalIcon','_getConnectionSiteAngle','isInGroup','_registerFeatureMenu','updateContext','_imageIoService','_getConnectPointInfo','VIEW_MAIN','sheets-shape-ui.insertShape','getEditing','drawing-ui.objectListPanel.unlock','pluginName','getShapeModel','oKey','getBasicShapeRelation','#bcbcbc','_configService','_formulaKey','shape-editor-ui.toolbar.changeShape','_activeAdjustPointList','getUnitType','getZoomRatio','setFillImage','isEditing','startConnectionDetection','_clearControls','_highlightedSiteIndex','SELECTOR','drawing-ui.objectListPanel.empty','SHAPE_TEXT','35440ulYYZN','_adjName','drawWith','transform','flipY','marginTop','_connectionSiteObjects','asObservable','includes','visible','drawing-ui.objectListPanel.moveBackward','normal','_closeShapeEditPanel','onerror','_sheetCanvasPopManagerService','rotation','sheets-shape-ui.shape-format.text-ribbon-control','sheets-shape-ui.permission.editErr','_hide','update$','_calculateFreeEndpointAngle','setPresentation','DEFAULT_PASTE','front','sheet.shape.edit.panel','isStartConnectorPoint','_activeImageId','clip-adj-','getDrawingPoints','_showConnectionSites','Arrow','applyPoint','_executeResizeCommand','66bzOxGx','getConnectorLinePoints','_initPermission','_handleBasicShapeUpdateConnectorLineShape','contentHeight','run','push','popup','FromArray','_update','skeleton','sheets-shape-ui.title','_updateImageAdjValues','actualHeight','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.typeNames.','VIEW_MAIN_TOP','registerFeaturePasteHook','color','OPERATION','_shapeFormulaService','_disposed','onSavingEditorData$','ang','_sheetDrawingService','getCurrentTypeOfUnit$','registerFeatureMenu','srcRect','lineShapeId','shapeType','viewBound','getDrawingDataForUnit','INSERT','default','currentAdjustValues','sheets-shape-ui.deleteShape','drawing-ui.objectListPanel.details','shape-editor-ui.arrange.front','sheets-shape-ui.formatShape','UNIVER_SHEET','sheet.operation.close-sheet-shape-format-panel','indexOf','getDrawingOKey','focus$','with','_editingParams$','completeEditing','_drawSimpleText','viewportScrollX','drawing-ui.objectListPanel.show','shape-editor-ui.arrange.forward','_updateShapeAdjustControls','_attachConnectorObjectEvent','_activeShapeInfo','updateLinePoints','animateFormulaPresentation','entries','isolated','isLineShape','close','drawing-ui.objectListPanel.filterLocked','order','getPermissionPoint','scale','sheets-shape-text-','sectionFloating','_currentScene','getRenderUnitById','_formulaShapes','2820SVCZOt','_initMenu','_updateSrcRectByTransform','_lastEditingShapeKey','unitId','offsetX','drawing-ui.objectListPanel.search','isArray','_adjHandlerPointerMove','_sheetSkeletonService','getObjectIncludeInGroup','computeStraightConnectorLayout','_addControl','_cxtHandlerPointerUp','left','multiply','_copyInfo','ShapeIcon','_registerMoveHandler','attachPopupToObject','axisAlignSheetTransform','_shapes','disposeWithMe','offsetY','stringify','setOnSavingEditorData','pipe','getBatchUpdateOp','defineProperty','sheets-shape-ui.objectListPanel.open','engine','_registerGroupFeaturePasteHook','#FFFFFF','copyId','drawingType','_baseShapeHeight','some','_onSavingEditorData$','3846ehpWJS','_targetShapeId','interceptor','drawing-ui.objectListPanel.sectionCanvas','_drawingType','onPointerDown$','computeConnectorResizeLayout','cxnPointRadius','cxnIndex','startX','packageName','_disposePopups','fill','_initCopyPaste','_activeAdjustInfo','drawing-ui.objectListPanel.close','adjHandleSize','endConnectionDetection','_reset','selectable','drawing-ui.objectListPanel.description','getShapeDataById','_activeShapeModel','focusDrawing','_moveConnectorWithShape','disableObjectsEvent','stroke','_addShapeConnectorHandlerObjects','custom','_menuManagerService','shapeKey','_cxtHandlerPointerMove','renderDrawingShape','index','_resetState','_getShapeInfo','sqrt','_drawShapeText','filter','getShapeTextData','clip','refreshShapeFillImage','#1a73e8','_findNearestConnectionSite','set','sheet.shape.floating-toolbar','restore','onSteady','_cxnIndex','clipTop','featurePluginUpdateNotification','open','_updateAdjustControlPositions','addImageSourceCache','sheets-shape-ui.ribbon.shape-format.style-control','sheets-shape-ui.ribbon.shape-format.arrange-forward','_clearFocusedShape','composeMatrix','trim','_sheetDrawingShapeRenderController','angle','scene','sheet.operation.apply-shape-quick-style','complete','_shapeTextEditingService','_baseWidth','_drawingManagerService','calculate','_shapeId','_generatePasteMutations','getShapeData','copyType','getSkeleton','clearControl$','add$','_canEdit','onRendered','shape-editor-ui.toolbar.quickStyles','getCurrentScrollState','sheets-shape-ui.ribbon.shape-format','_drawRichText','_unitId','prstGeom','adjName','_isShouldShowDrawingShapeAdjust','isDrawingObject','adjHandleStroke','updateConnectionDetection','subscribe','_activeShapeId','drawing-ui.objectListPanel.filterHidden','has','startArrow','flipX','sheetTransform','getCurrentSkeleton','@univerjs-pro/sheets-shape-ui','univer-box-border\x20univer-px-4\x20univer-text-sm','_createCopyInfoByRange','changing$','_shapeService','buildClipPath','width','shape-editor-ui.arrange.backward','_executeConnectionCommand','getState','disableShapeOption','getTransformerByCreate','panel','_registerDrawingMoveHandler','connector-handler-','getBentTypeFromPoints','getSheetId','sheets-shape-ui.imagePanel.crop.shape','CUT','fillType','_baseShapeLeft','presetId','clearAdjustControls','version','_univerInstanceService','_focusedDrawings','LEFT','fontFamily','extraProps','_releaseRenderCache','text','registerRenderModule','worldPoints','_setTransForm','permissionCheckWithoutRange','_drawingAddListener','CROSSHAIR','_formulaAnimation','shapeData','isHorizontal','8vrEJoW','867mobYIx','drawing-ui.objectListPanel.showAll','_commandService','localeService','sheet.menu.shape.flip-vertical','_clearPopups','values','onPointerMove$','resetCursor','canvasElement','sheets-shape-contextual-ribbon','UPDATE','activeSheet$','sheetViewStartColumn','_getImagePrstGeom','length','_initEvents','_addShapeConnectorHandlerObject','refreshFormulaPresentation','vertical','FlipHorizontalIcon','drawing-ui.objectListPanel.unlockHint','_createControls','Medium','enableObjectsEvent','getAdjustInfoByName','drawing-ui.objectListPanel.moveForward','drawing-ui.objectListPanel.lockAll','_updateTransform','drawing-ui.objectListPanel.lockHint','_isStartConnectorPoint','objects','VIEW_MAIN_LEFT_TOP','getEndConnectInfo','registerCommand','strokeWidth','_executeConnectedRouteConnectionCommand','sheets-shape-ui.flipHorizontal','TOP','_sheetClipboardService','_registerIcons','_adjHandlerPointerUp','isHighlighted','BUTTON','register','_attachAdjustEvent','sheet.operation.open-sheet-shape-format-panel','adjHandleFill','_handleConnectorPointerUp','value','SHEET','drawing-ui.objectListPanel.name','_context','sheet.command.update-shape-data','_getScrollInfo','call','fillImageSource','reverse','_subUnitId','_getOrCreateShapeModel','render','_sheetBasicShapeConnectionPointController','_createShapeAdjustControls','hidden','_isDrawingShapePointDown','_shapeEditPanelVersion','_visible','12791052KBAJbE','_clearShapeAdjustControls','setCursor','pushUndoRedo','_loadShapePictureFill','_injector','getAdjustNames','_insertingShapeKeys','size','Image','sheets-shape-format-font-family-menu','viewportScrollY','_baseShapeWidth','#4285f4','description','sheets-shape-ui.ribbon.shape-format.text-control','sheets-shape-ui.shape-format.formula-ribbon-control','_renderManagerService','dataModel','SolidFill','_isImagePointerDown','updateDocumentDataMargin','formulaBinding','drawing-ui.objectListPanel.nameInput','_addShapeAdjustControl','drawing-ui.objectListPanel.collapse','save','_activeTargetShapeId','_registerComponents','map','_sidebarService','drawing-ui.objectListPanel.sectionFloating','setFallbackVisible','_shapeRenderController','_shapePopupMenuDisposable','sheet.operation.open-mobile-shape-editor','_currentConnectionTarget','_applyFormulaAutoFitSize','getStartConnectInfo','adjustValues','formulaPresentation','redo','drawing-ui.objectListPanel.hide','getDrawingSearch','_sheetPrintInterceptorService','animationEnabled','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getInverseCoord','prototype','GROUP','clone','permissionPointUpdate$','setFormulaPresentation','sheets-shape-ui.config','_drawRichTextLayer','point','_baseDrawingRect','_hasReset','name','_executeConnectedRouteResizeCommand','TopmostIcon','registerClipDelegate','cos','1.0.1','_initSelection','getShapeTextRect','getRealBound','URL','startY','REMOVE','getConnectionSiteList','_findShapeAtPoint','_generateCopyPasteMutations','SheetShapeTextEditorContainer','_getShapeAdjustInfosById','hideContextualTab','getScene','undo','Line','onCommandExecuted','sheets-shape-ui.ribbon.shape-format.formula-control','_getImageDrawingInfo','object','getAutoFitPresentations','top','cxnPointFill','changeShapeType','showContextualTab','setConfig','_initEditingParams','keys','getDrawingVisible','_shapeUpdateListener','BottomIcon','_localeService','PictureFill','function','unsubscribe','onDblclick$','get','_isHighlighted','div','sheet.operation.update-shape-type','shape-editor-ui.arrange.back','from','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheets-shape-ui.shape-format.style-ribbon-control','MoveUpIcon','_componentManager','VIEW_MAIN_LEFT','_clipService','UUID','updateShapeFillImage','isMainScene','277990uOIyjk','syncExecuteCommand','_insertShapes','start','_activeShapeAdjustPointList','_baseTop','toPrimitive','getSelectedObjectMap','getObject','drawing-ui.objectListPanel.lock','isRenderLinePointsMode','_baseShapeTop','getMatrix','targetShapeId','transformForAngle','_iconManager','_ribbonService','height','shape-adjust-point-','_props','ancestorTransform','preValue','getDrawingByParam','_initCommands','shapeId','gradientEndColor','_clearCompletionFrame','DRAWING_IMAGE','sheet.command.menu-insert-shape','getVisible','getDrawingEditable','changeStart$','getConnectionInfo','sheet.menu.shape.flip-horizontal','canvas','fillImageSourceType','getBatchAddOp','initShapePopupMenu','_getDrawingRect','doc.image-clip.shape-picker.component','refreshTransform','backward','_transform','_completionFrame','StraightConnector1','onReady','connection-site-','_clearConnectionSites','_registerImageShapeClipDelegate','contentVerticalOffset','11ruBDxd','setShapeProps','isRender','getValue','sheet.shape.text.float-menu','getUnit','endArrow','drawing-ui.objectListPanel.filterAll','worldPoint','image','getDrawingData','isRichText','_sheetsShapeService','_sidebarDisposable','constructor','_openShapeEditPanel','_contextService','getShapeType','_registerDrawingFocusChangeHandler','type','classType','executeCommand','isHit','subUnitId','getImageSourceCache','localToWorld','cxnPointStrokeWidth','getUnitId','src','_clearShapeConnectorHandlerObjects','error','back','getSkeletonParam','doc','clear','sheetViewStartRow','_groupCopyPasteController','ObjectLayersIcon','changeEnd$','_handleFreeEndpointMove','setEditing','_config','_baseLeft','addObject','setPrstGeomAdjValues','Rect','bottom','createControl$','setHighlighted','getFocusDrawings','subscribeEvent','_sheetPermissionCheckController','_connectorObjects','dispose','drawingId','debounceRefreshControls','_imageShapeClipController','getBatchRemoveOp','add','makeDirty','_renderWithCache','isHitLine','extensionGroups','stopPropagation','shapeModel','pick','onTransformChange$','setShapeData','_transformCalculateSrcRect','lineType','transformByState','SHEET_SHAPE_UI_PLUGIN','_drawingRenderService','5762498wiAMVE','setCanUseShapeClip','sheets-shape-ui.ribbon.shape-format.arrange-front','abs','sheets-shape-ui.flipVertical','style','_loadAndSetImage','decorate','_registerOperations','beforeCommandExecuted','data','getParent','removeLinePoints','OTHERS','shapeText','find','create','sheets-shape-ui.ribbon.shape-format.arrange-backward','forward','_getZoomRatio','remove$','resize','_handleConnectedEndpointMove','end','getDrawingEffectBounds','attachTransformerTo','intercept','sheet.image-clip.shape-picker.component','_popupMenuListener','updateDocumentStyle','DRAWING','clearAdjustValue','_isStartAdjusting','_initPrinting','getTransformer','getPresentation','DRAWING_SHAPE','_draw','_baseHeight','setPrstGeom','setSrcRect','interceptCommand','_handleFreeEndpointPointerUp','clipHeight','RIBBON','_permissionService','invert','next','prstGeomAdjValues','delete','ShapeFormatSettingIcon','_draggingConnectorId','_shapeFloatingToolbarService','draw','_getSceneAndTransformerByDrawingSearch','_rerouteConnectorLine','_registerFocusChangeHandler','SHAPE','drawing-ui.objectListPanel.hideAll','shape-text-','forEach','_init','calcAdjValues','onPointerUp$','mergeMenu','getShapeTypeById','setShouldShowAdjust','editingParams$','_handleConnectedEndpointPointerUp','Large','title','_urlImageService','beginPath','getAdjustValueByName','_initialize','_currentUniverService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','symbol','_sheetInterceptorService','sheets-shape-ui.editText','refreshAdjustControls','4277079bdJDRj','sectionCanvas','_getShapeAdjustPointListById','getImage','params','worldRect','COMMAND','horizontal','blockExecuteWithoutPermission','visible$','_isOpenedShapeEditPanel','string','onStarting','setAdjustValueByName','setContextValue','_initSheetChange','parse','sin','clipByShape','_isConnecting','getCurrentUnitOfType','_sheetShapeAdjustController','relation','getSheetBySheetId','_generateCutPasteMutations','unregister','sheets-shape-ui.shape-format.quick-style-gallery'];_0x610e=function(){return _0x1e760b;};return _0x610e();}ya=Y([J(0x0,_0x337030(_0x164eca)),J(0x1,_0x337030(_0x2251c5))],ya);let ba=class extends _0x12ab23{constructor(_0x4cfc86,_0x254e73,_0x4eb0c1,_0x12463f,_0x24bfcf,_0x3737d6,_0x16e78d,_0x3058ca,_0x57544d){const _0x41be78=_0x2d0df6;super();let _0x1b573d=_0x60869f=>{const _0x119904=_0xd82a;var _0x422cc6,_0x16757c;return(((_0x422cc6=_0x3058ca[_0x119904(0x2e0)](new _0x2279d5(_0x60869f[_0x119904(0x2eb)])['id']))==null?void 0x0:_0x422cc6[_0x119904(0x3c7)])??!0x0)&&(((_0x16757c=_0x3058ca['getPermissionPoint'](new _0x840079(_0x60869f['unitId'],_0x60869f[_0x119904(0x1c3)])['id']))==null?void 0x0:_0x16757c[_0x119904(0x3c7)])??!0x0);},_0x26a6a5=_0x43a766=>_0x43a766[_0x41be78(0x192)]&&_0x1b573d(_0x43a766)?_0x4eb0c1['getShapeDataById'](_0x43a766[_0x41be78(0x2eb)],_0x43a766[_0x41be78(0x1c3)],_0x43a766[_0x41be78(0x192)])??null:null,_0x10d69d=()=>{const _0x17e7e3=_0x41be78;let _0x4cf1d7=_0x24bfcf['getFocusDrawings'](),_0x341880=_0x4cf1d7[_0x17e7e3(0x3a5)]===0x1?_0x4cf1d7[0x0]:null;return(_0x341880==null?void 0x0:_0x341880[_0x17e7e3(0x309)])===_0x21920f[_0x17e7e3(0x219)]&&_0x341880['unitId']===_0x4cfc86['unitId']?{'unitId':_0x341880[_0x17e7e3(0x2eb)],'subUnitId':_0x341880[_0x17e7e3(0x1c3)],'shapeId':_0x341880['drawingId']}:null;};this['disposeWithMe'](_0x4a5fad(_0x4cfc86,_0x254e73,{'changes$':_0x2f7396(_0x24bfcf[_0x41be78(0x2cd)],_0x12463f[_0x41be78(0x238)],_0x3058ca[_0x41be78(0x40c)]),'isActive':()=>{const _0x3379f8=_0x41be78;var _0x3fcf1a;return((_0x3fcf1a=_0x3737d6['getFocusedUnit']())==null?void 0x0:_0x3fcf1a[_0x3379f8(0x1c7)]())===_0x4cfc86[_0x3379f8(0x2eb)]&&!_0x16e78d['getContextValue'](_0x421648)&&_0x24bfcf[_0x3379f8(0x1dd)]()[_0x3379f8(0x30b)](_0x287add=>_0x287add[_0x3379f8(0x2eb)]===_0x4cfc86[_0x3379f8(0x2eb)]);},'getSelectedTarget':_0x10d69d,'getSource':()=>{let _0x1068fc=_0x10d69d();return _0x1068fc?_0x26a6a5(_0x1068fc):null;},'getTarget':_0x207be5=>{const _0x1eea60=_0x41be78;let _0x18df60=_0x4cfc86[_0x1eea60(0x34a)][_0x1eea60(0x1ed)](new _0x4e2c7(_0x207be5['offsetX'],_0x207be5[_0x1eea60(0x2fe)]));if(!(_0x18df60 instanceof Er))return null;let _0x13bfd9={'unitId':_0x4cfc86[_0x1eea60(0x2eb)],'subUnitId':_0x18df60[_0x1eea60(0x1c3)],'shapeId':_0x18df60[_0x1eea60(0x192)]};return _0x1b573d(_0x13bfd9)?_0x13bfd9:null;},'getShape':_0x26a6a5,'update':(_0x56f82d,_0x5ed530,_0x2cde64)=>_0x57544d['executeCommand'](K['id'],{..._0x56f82d,'shapeData':_0x2cde64,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x5ed530}})}));}};ba=Y([J(0x1,_0x337030(_0x597140)),J(0x2,_0x337030(_0x1697a4)),J(0x3,_0x337030($)),J(0x4,_0x569480),J(0x5,_0x1469ba),J(0x6,_0x2ecdf8),J(0x7,_0xefc875),J(0x8,_0x4a7048)],ba);const xa=_0x2d0df6(0x3a0);let Sa=class extends _0x12ab23{constructor(_0x50f961,_0x3749ba,_0x5ed437,_0xd5b228,_0xc8cced,_0x4a1293){const _0x26212a=_0x2d0df6;super(),this[_0x26212a(0x32a)]=_0x50f961,this[_0x26212a(0x18a)]=_0x3749ba,this[_0x26212a(0x34f)]=_0x5ed437,this[_0x26212a(0x385)]=_0xd5b228,this[_0x26212a(0x3ea)]=_0xc8cced,this['_shapeFloatingToolbarService']=_0x4a1293,q(this,_0x26212a(0x3d8),!0x1),this[_0x26212a(0x32a)][_0x26212a(0x235)](Fi),this[_0x26212a(0x2fd)](_0x3d1384(this['_drawingManagerService']['focus$'][_0x26212a(0x365)](()=>this[_0x26212a(0x2ab)]()))),this['_update']();}[_0x2d0df6(0x1e1)](){const _0x3b0f4f=_0x2d0df6;this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,xa),this[_0x3b0f4f(0x293)](),super[_0x3b0f4f(0x1e1)]();}[_0x2d0df6(0x2ab)](){const _0x1d1cbe=_0x2d0df6;var _0x5b400e;let _0x1cc015=this['_drawingManagerService'][_0x1d1cbe(0x1dd)](),_0x56f83a=_0x1cc015['length']===0x1?_0x1cc015[0x0]:void 0x0;if((_0x56f83a==null?void 0x0:_0x56f83a[_0x1d1cbe(0x309)])!==_0x21920f[_0x1d1cbe(0x219)]||this[_0x1d1cbe(0x385)][_0x1d1cbe(0x277)](_0x56f83a['unitId'])!==_0x2711d0[_0x1d1cbe(0x2c9)]){this[_0x1d1cbe(0x229)]['setFallbackVisible'](!0x1,xa),this[_0x1d1cbe(0x293)]();return;}let _0x1a23aa=(_0x5b400e=this[_0x1d1cbe(0x3ea)][_0x1d1cbe(0x2e5)](_0x56f83a[_0x1d1cbe(0x2eb)]))==null?void 0x0:_0x5b400e[_0x1d1cbe(0x305)]['getCanvasElement'](),_0x314355=_0x407fa0(_0x1a23aa)===_0x1d1cbe(0x2db);if(this[_0x1d1cbe(0x229)][_0x1d1cbe(0x3f9)](_0x314355,xa),_0x314355){this[_0x1d1cbe(0x293)]();return;}this[_0x1d1cbe(0x3d8)]||(this[_0x1d1cbe(0x3d8)]=!0x0,this[_0x1d1cbe(0x18a)][_0x1d1cbe(0x15f)](Nr,{'activate':!0x0}));}[_0x2d0df6(0x293)](){const _0x384263=_0x2d0df6;this[_0x384263(0x3d8)]&&(this[_0x384263(0x3d8)]=!0x1,this[_0x384263(0x18a)][_0x384263(0x424)](Nr),this[_0x384263(0x18a)]['setCollapsedIds']([]));}};Sa=Y([J(0x0,_0x506622),J(0x1,_0x1b732c),J(0x2,_0x569480),J(0x3,_0x1469ba),J(0x4,_0xac3281),J(0x5,_0x337030(_0x1762ad))],Sa);let Ca=class extends _0xf1de31{constructor(_0x25f1a1,_0x36061e,_0x20b8e5,_0x286dd6,_0x48b3d1,_0x48a331,_0x1847bc,_0xabc5c6,_0xde9bc8,_0x387a90){super(_0x25f1a1,_0x36061e,_0x20b8e5,_0x286dd6,_0x48b3d1,_0x48a331,_0x1847bc,_0xabc5c6,_0xde9bc8,_0x387a90,{'componentKey':Fr,'editorUnitId':Pr});}};Ca=Y([J(0x1,_0x337030(_0x2df91f)),J(0x2,_0x337030(_0x23bd2c)),J(0x3,_0x337030(_0xe7375c)),J(0x4,_0x4a7048),J(0x5,_0x337030(_0x48f76e)),J(0x6,_0x337030(_0x1734a5)),J(0x7,_0x337030(_0x519188)),J(0x8,_0x337030(_0x209979)),J(0x9,_0x337030($))],Ca);let wa=class extends _0x12ab23{constructor(_0xda53e,_0x187576,_0x4b1001,_0x427527,_0x1944c7,_0xd9319,_0x5eb13e,_0x3dcf6b,_0x2ac57e,_0x4cdddd,_0x3bcf78){const _0x43d345=_0x2d0df6;super(),this[_0x43d345(0x385)]=_0xda53e,this['_sidebarService']=_0x187576,this[_0x43d345(0x32a)]=_0x4b1001,this[_0x43d345(0x1b8)]=_0x427527,this[_0x43d345(0x166)]=_0x1944c7,this[_0x43d345(0x398)]=_0xd9319,this[_0x43d345(0x34f)]=_0x5eb13e,this[_0x43d345(0x28f)]=_0x3dcf6b,this[_0x43d345(0x1bc)]=_0x2ac57e,this['_renderManagerService']=_0x4cdddd,this[_0x43d345(0x34d)]=_0x3bcf78,q(this,_0x43d345(0x1b9),null),q(this,_0x43d345(0x2d7),null),q(this,'_isOpenedShapeEditPanel',!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x43d345(0x3fb),null),q(this,_0x43d345(0x318),[]),this[_0x43d345(0x2e8)](),this[_0x43d345(0x2fd)](this[_0x43d345(0x385)][_0x43d345(0x2bb)](_0x2711d0['UNIVER_SHEET'])[_0x43d345(0x365)](_0x2b5e9e=>{const _0x545a81=_0x43d345;if(!_0x2b5e9e){var _0x29fb82;(_0x29fb82=this[_0x545a81(0x1b9)])==null||_0x29fb82[_0x545a81(0x1e1)]();}})),this[_0x43d345(0x1fd)](),this['initShapePopupMenu'](),this[_0x43d345(0x2fd)](this[_0x43d345(0x34d)][_0x43d345(0x238)][_0x43d345(0x365)](_0x1d3dc7=>{const _0x49a45c=_0x43d345;_0x1d3dc7&&this[_0x49a45c(0x39b)]();}));}[_0x2d0df6(0x2e8)](){const _0x1e2450=_0x2d0df6;this[_0x1e2450(0x32a)][_0x1e2450(0x235)](Li);}['initShapePopupMenu'](){const _0x1abdaf=_0x2d0df6;this[_0x1abdaf(0x3fb)]||=this[_0x1abdaf(0x2fd)](_0x4d2a81(this[_0x1abdaf(0x3ea)],_0x2711d0[_0x1abdaf(0x2c9)],_0x95c2ce=>this[_0x1abdaf(0x211)](_0x95c2ce)));}[_0x2d0df6(0x330)](_0x25a843,_0x5a8a05,_0xbdc57){const _0x28fe13=_0x2d0df6;let _0x7f837b=this['_sheetsShapeService'][_0x28fe13(0x236)](_0x25a843,_0x5a8a05,_0xbdc57),_0x1b0bbf=this[_0x28fe13(0x1b8)][_0x28fe13(0x322)](_0x25a843,_0x5a8a05,_0xbdc57);return _0x7f837b!==void 0x0&&_0x1b0bbf!==void 0x0?{'shapeData':_0x1b0bbf,'shapeId':_0xbdc57,'shapeType':_0x7f837b,'unitId':_0x25a843,'subUnitId':_0x5a8a05,'version':this[_0x28fe13(0x3d7)],'disableShapeOption':!0x1}:null;}[_0x2d0df6(0x39b)](){const _0x58684c=_0x2d0df6;this[_0x58684c(0x318)][_0x58684c(0x231)](_0xff466c=>_0xff466c['dispose']()),this['_disposePopups'][_0x58684c(0x3a5)]=0x0;}[_0x2d0df6(0x211)](_0x44aad5){const _0x521249=_0x2d0df6;let _0x11ce08=new _0x1e89a7();return _0x11ce08[_0x521249(0x1e6)](_0x44aad5[_0x521249(0x1db)][_0x521249(0x365)](()=>{const _0x53ffe7=_0x521249;let _0x402f5e=_0x44aad5[_0x53ffe7(0x181)]();if(this[_0x53ffe7(0x39b)](),this[_0x53ffe7(0x250)]||_0x402f5e[_0x53ffe7(0x3e1)]>0x1)return;let _0x4d95c4=_0x402f5e['values']()[_0x53ffe7(0x224)]()[_0x53ffe7(0x3c7)];if(!_0x4d95c4)return;let _0x445ff0=this[_0x53ffe7(0x34f)][_0x53ffe7(0x2cc)](_0x4d95c4[_0x53ffe7(0x270)]);if(!_0x445ff0||_0x445ff0[_0x53ffe7(0x309)]!==_0x21920f[_0x53ffe7(0x219)])return;let {unitId:_0xe7cf7e,subUnitId:_0x1b0ed2,drawingId:_0x36cd1e,drawingType:_0x7c311c}=_0x445ff0,_0x54f8b5=this[_0x53ffe7(0x330)](_0xe7cf7e,_0x1b0ed2,_0x36cd1e);if(!_0x54f8b5)return;this[_0x53ffe7(0x1bc)][_0x53ffe7(0x254)](_0xd7e9ce,!0x0);let _0x356b69=this['_renderManagerService'][_0x53ffe7(0x2e5)](_0xe7cf7e),_0x543bda=((_0x356b69==null?void 0x0:_0x356b69[_0x53ffe7(0x179)])===!0x1?_0x356b69[_0x53ffe7(0x2ce)](_0x4cea8b):this[_0x53ffe7(0x28f)])[_0x53ffe7(0x2fa)](_0x4d95c4,{'componentKey':Mr,'direction':'vertical-center','offset':[0x0,_0x41695a],'extraProps':{'unitId':_0xe7cf7e,'subUnitId':_0x1b0ed2,'drawingId':_0x36cd1e,'drawingType':_0x7c311c,'shapeType':_0x54f8b5[_0x53ffe7(0x2bf)],'shapeData':_0x54f8b5['shapeData']}});this[_0x53ffe7(0x318)][_0x53ffe7(0x2a8)](this[_0x53ffe7(0x2fd)](_0x543bda)),this[_0x53ffe7(0x34f)][_0x53ffe7(0x1dd)]()[_0x53ffe7(0x204)](_0xda7e04=>_0xda7e04[_0x53ffe7(0x2eb)]===_0xe7cf7e&&_0xda7e04[_0x53ffe7(0x1c3)]===_0x1b0ed2&&_0xda7e04[_0x53ffe7(0x1e2)]===_0x36cd1e)||this[_0x53ffe7(0x34f)][_0x53ffe7(0x324)]([{'unitId':_0xe7cf7e,'subUnitId':_0x1b0ed2,'drawingId':_0x36cd1e}]);})),_0x11ce08['add'](_0x44aad5[_0x521249(0x356)]['subscribe'](()=>{const _0x3090ae=_0x521249;this[_0x3090ae(0x39b)](),this[_0x3090ae(0x1bc)][_0x3090ae(0x254)](_0xd7e9ce,!0x1),this[_0x3090ae(0x34f)][_0x3090ae(0x324)](null);})),_0x11ce08[_0x521249(0x1e6)](_0x44aad5['changing$'][_0x521249(0x365)](()=>{const _0x33bb52=_0x521249;this[_0x33bb52(0x39b)]();})),_0x11ce08[_0x521249(0x1e6)](_0x44aad5[_0x521249(0x199)][_0x521249(0x365)](()=>{this['_clearPopups']();})),_0x3d1384(()=>{const _0x377aaf=_0x521249;_0x11ce08[_0x377aaf(0x1e1)](),this[_0x377aaf(0x39b)]();});}['_registerOperations'](){const _0x2a16a5=_0x2d0df6;this[_0x2a16a5(0x2fd)](this['_commandService'][_0x2a16a5(0x428)](_0x42bf48=>{const _0x1d3085=_0x2a16a5;if(_0x42bf48['id']===Lr['id']){let {unitId:_0x5a7e7e,subUnitId:_0x3f594c,drawingId:_0x4d422e}=_0x42bf48[_0x1d3085(0x24a)];this[_0x1d3085(0x3d7)]+=0x1,this[_0x1d3085(0x2d7)]=this[_0x1d3085(0x330)](_0x5a7e7e,_0x3f594c,_0x4d422e),this['_clearPopups'](),this[_0x1d3085(0x1bb)]();}if(_0x42bf48['id']===fa['id']&&(this[_0x1d3085(0x2d7)]=null,this[_0x1d3085(0x28d)]()),_0x42bf48['id']===_0x1b95a1['id']){let {unitId:_0x126230,subUnitId:_0x17fdd2,shapeId:_0x33d318}=_0x42bf48[_0x1d3085(0x24a)];if(this[_0x1d3085(0x2d7)]&&this[_0x1d3085(0x2d7)][_0x1d3085(0x192)]===_0x33d318){let _0x332442=this[_0x1d3085(0x330)](_0x126230,_0x17fdd2,_0x33d318);_0x332442&&(this[_0x1d3085(0x3d7)]+=0x1,_0x332442[_0x1d3085(0x384)]=this[_0x1d3085(0x3d7)],this[_0x1d3085(0x2d7)]=_0x332442,this[_0x1d3085(0x250)]&&this[_0x1d3085(0x1bb)]());}}})),this[_0x2a16a5(0x2fd)](this['_drawingManagerService'][_0x2a16a5(0x2cd)][_0x2a16a5(0x365)](_0x322a29=>{const _0xb1b4a1=_0x2a16a5;if(this[_0xb1b4a1(0x250)]===!0x1)return;if(_0x322a29[_0xb1b4a1(0x3a5)]===0x0){this[_0xb1b4a1(0x2d7)]=null,this[_0xb1b4a1(0x28d)]();return;}if(_0x322a29[_0xb1b4a1(0x3a5)]===0x1&&_0x322a29[0x0][_0xb1b4a1(0x309)]===_0x21920f[_0xb1b4a1(0x219)]&&(this[_0xb1b4a1(0x3d7)]+=0x1,this['_activeShapeInfo']=this[_0xb1b4a1(0x330)](_0x322a29[0x0][_0xb1b4a1(0x2eb)],_0x322a29[0x0][_0xb1b4a1(0x1c3)],_0x322a29[0x0]['drawingId']),this[_0xb1b4a1(0x2d7)])){this[_0xb1b4a1(0x1bb)]();return;}let _0x154a1a=_0x322a29['filter'](_0x59803c=>_0x59803c[_0xb1b4a1(0x309)]===_0x21920f['DRAWING_SHAPE']);if(_0x322a29['length']>0x1&&_0x154a1a[_0xb1b4a1(0x3a5)]===_0x322a29[_0xb1b4a1(0x3a5)]){if(this[_0xb1b4a1(0x3d7)]+=0x1,this[_0xb1b4a1(0x2d7)]=this['_getShapeInfo'](_0x322a29[0x0][_0xb1b4a1(0x2eb)],_0x322a29[0x0]['subUnitId'],_0x322a29[0x0][_0xb1b4a1(0x1e2)]),this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0xb1b4a1(0x2d7)]=this[_0xb1b4a1(0x330)](_0x322a29[0x0][_0xb1b4a1(0x2eb)],_0x322a29[0x0][_0xb1b4a1(0x1c3)],_0x322a29[0x0][_0xb1b4a1(0x1e2)]),this[_0xb1b4a1(0x2d7)]){this[_0xb1b4a1(0x2d7)][_0xb1b4a1(0x377)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0xb1b4a1(0x28d)]();}));}[_0x2d0df6(0x1bb)](){const _0x4c8a3c=_0x2d0df6;this['_activeShapeInfo']&&(this[_0x4c8a3c(0x1b9)]=this[_0x4c8a3c(0x3f7)][_0x4c8a3c(0x340)]({'id':Ar,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Ar,...this[_0x4c8a3c(0x2d7)]},'onClose':()=>{const _0x316b14=_0x4c8a3c;this[_0x316b14(0x34f)][_0x316b14(0x324)](null),this[_0x316b14(0x1bc)][_0x316b14(0x254)](_0xd7e9ce,!0x1),this['_sidebarDisposable']=null;}}),this[_0x4c8a3c(0x250)]=!0x0);}[_0x2d0df6(0x28d)](){const _0x49a97c=_0x2d0df6;this['_isOpenedShapeEditPanel']=!0x1,this[_0x49a97c(0x3f7)]['close'](Ar),this['_sidebarDisposable']=null,this[_0x49a97c(0x1bc)]['setContextValue'](_0xd7e9ce,!0x1),this[_0x49a97c(0x34f)][_0x49a97c(0x324)](null);}};wa=Y([J(0x0,_0x1469ba),J(0x1,_0x337030(_0x1b5a06)),J(0x2,_0x506622),J(0x3,_0x337030(_0x1697a4)),J(0x4,_0x337030(_0x37c40f)),J(0x5,_0x4a7048),J(0x6,_0x569480),J(0x7,_0x337030(_0x4cea8b)),J(0x8,_0x2ecdf8),J(0x9,_0xac3281),J(0xa,_0x337030($))],wa);let Ta=class extends _0x5ca9fd{constructor(_0x3b9904=Hi,_0x2b3f4,_0x25ef4e,_0x1a355f,_0x532d0c){const _0x356aea=_0x2d0df6;super(),this[_0x356aea(0x1d5)]=_0x3b9904,this[_0x356aea(0x3de)]=_0x2b3f4,this[_0x356aea(0x398)]=_0x25ef4e,this[_0x356aea(0x273)]=_0x1a355f,this[_0x356aea(0x3ea)]=_0x532d0c;let {..._0x3c0f4e}=_0x46aa77({},Hi,this['_config']);this['_configService'][_0x356aea(0x160)](Vi,_0x3c0f4e),this['_initCommands']();}[_0x2d0df6(0x359)](){const _0x4173b1=_0x2d0df6;this[_0x4173b1(0x3ea)][_0x4173b1(0x38c)](_0x2711d0['UNIVER_DOC'],[Ca]),_0x15f6ed(this['_injector'],[[wa],[ta],[X],[ca]]);}[_0x2d0df6(0x33c)](){const _0x5dd8ff=_0x2d0df6;this[_0x5dd8ff(0x3de)][_0x5dd8ff(0x16b)](wa)['initShapePopupMenu']();}['onReady'](){const _0x4e4401=_0x2d0df6;[[ia],[Z],[aa]][_0x4e4401(0x231)](_0x19e7a6=>this[_0x4e4401(0x3de)][_0x4e4401(0x1e6)](_0x19e7a6)),_0x15f6ed(this[_0x4e4401(0x3de)],[[aa],[Z]]),this[_0x4e4401(0x3ea)][_0x4e4401(0x38c)](_0x2711d0[_0x4e4401(0x2c9)],[ia]),this[_0x4e4401(0x3ea)][_0x4e4401(0x38c)](_0x2711d0[_0x4e4401(0x2c9)],[Ui]),this[_0x4e4401(0x3ea)][_0x4e4401(0x38c)](_0x2711d0['UNIVER_SHEET'],[sa]),this[_0x4e4401(0x3ea)][_0x4e4401(0x38c)](_0x2711d0['UNIVER_SHEET'],[Yi]),this[_0x4e4401(0x2fd)](this[_0x4e4401(0x3ea)][_0x4e4401(0x38c)](_0x2711d0[_0x4e4401(0x2c9)],[ba]));}[_0x2d0df6(0x252)](){const _0x321762=_0x2d0df6;this[_0x321762(0x3de)][_0x321762(0x1e6)]([ya]),this[_0x321762(0x3de)][_0x321762(0x16b)](ya);let _0x5c87a7=this[_0x321762(0x3de)];[[wa],[ta],[X],[ca],[ua],[$],[ea],[Q],[la],[Sa]][_0x321762(0x231)](_0x422174=>_0x5c87a7['add'](_0x422174)),_0x15f6ed(this[_0x321762(0x3de)],[[wa],[ta],[X],[ua],[$],[ea],[Q],[la],[Sa]]);}[_0x2d0df6(0x191)](){const _0x1f2266=_0x2d0df6;[kr,K,fa,Lr,Ir,Or,zr,Br][_0x1f2266(0x231)](_0x27fe46=>this[_0x1f2266(0x2fd)](this[_0x1f2266(0x398)]['registerCommand'](_0x27fe46)));}};q(Ta,'type',_0x2711d0['UNIVER_SHEET']),q(Ta,_0x2d0df6(0x26e),_0x2d0df6(0x1f3)),q(Ta,_0x2d0df6(0x317),Ri),q(Ta,'version',zi),Ta=Y([_0x344a57(_0x215a74,_0x426f70,_0x2aa519,_0x4281fe,_0x4a0305,_0xeb0ff5,_0x507268,_0x1d8781,_0x4fa095,_0x5de827,_0x5548f0,_0x20e7c1,_0x237515),J(0x1,_0x337030(_0xb34587)),J(0x2,_0x4a7048),J(0x3,_0x553c69),J(0x4,_0xac3281)],Ta);export{Fi as SheetsShapeUIContextualRibbonSchema,Li as SheetsShapeUIMenuSchema,da as UniverSheetsShapeMobileUIPlugin,Ta as UniverSheetsShapeUIPlugin};
1
+ const _0x244912=_0x4e9b;(function(_0x40a8fa,_0x51c51e){const _0x26dfdc=_0x4e9b,_0x2bca18=_0x40a8fa();while(!![]){try{const _0x4f959a=parseInt(_0x26dfdc(0x189))/0x1*(-parseInt(_0x26dfdc(0x1ab))/0x2)+parseInt(_0x26dfdc(0x152))/0x3*(parseInt(_0x26dfdc(0x1ad))/0x4)+parseInt(_0x26dfdc(0x2d5))/0x5+-parseInt(_0x26dfdc(0x3a6))/0x6*(parseInt(_0x26dfdc(0x367))/0x7)+-parseInt(_0x26dfdc(0x14e))/0x8*(-parseInt(_0x26dfdc(0x230))/0x9)+-parseInt(_0x26dfdc(0x2dd))/0xa+parseInt(_0x26dfdc(0x1e3))/0xb;if(_0x4f959a===_0x51c51e)break;else _0x2bca18['push'](_0x2bca18['shift']());}catch(_0x1efbc0){_0x2bca18['push'](_0x2bca18['shift']());}}}(_0x2c7e,0xc7e62));import{FormulaShapeAnimationController as _0x141052,MobileShapeEditorService as _0x349883,SHAPE_CHANGE_PICKER_COMPONENT as _0x39514a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x31a8fe,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x574cac,ShapeEditPanel as _0x17d686,ShapeFloatingToolbar as _0x1a3d2a,ShapeFloatingToolbarService as _0x11b9ca,ShapeFloatingToolbarToggleFactory as _0x28f120,ShapeFormulaRibbonControl as _0x1e07ad,ShapeGroupEnum as _0x46a4b9,ShapePickerDropdown as _0xd97ad,ShapePickerPanel as _0x377851,ShapeQuickStyleGallery as _0x364599,ShapeStyleRibbonControl as _0x1535fe,ShapeTextEditorContainer as _0xa7fac2,ShapeTextFloatMenuRenderControllerBase as _0x2ed20c,ShapeTextFloatToolbar as _0x2689dd,ShapeTextHyperLinkPopupService as _0x56b244,ShapeTextRibbonControl as _0x361c7f,ToggleShapeFloatingToolbarOperation as _0x29b704,UniverShapeEditorMobileUIPlugin as _0x1803a2,UniverShapeEditorUIPlugin as _0x5cbd77,activateDrawingObject as _0x35675d,bindRenderTransformerLifecycle as _0x50a450,buildShapeTextDataUpdate as _0x410366,clearActiveDrawingObjects as _0x4c6b4,drawFormulaShapeAnimationLayers as _0x4dca42,getDrawingTypeNameKey as _0x58b895,getTextModel as _0x19f250,getTextStyle as _0x3c50f1,normalizeShapeTextModel as _0x10cd0f,plainShapeTextToDocumentData as _0x3f9894,prepareShapeTextDocumentData as _0x437d41,registerShapeFormatPainter as _0x3ed075,resolveFormulaShapeAutoFitSize as _0x17f889,resolveShapeContextualRibbonHostMode as _0x570759,resolveShapeTextDocumentPageHeight as _0x5ca9c1,resolveShapeTextDocumentRenderLayout as _0xe799eb,resolveShapeTextEditorBehaviorShapeData as _0x432dcd,resolveShapeTextEditorWrapStrategy as _0x338209,shouldAllowShapeTextEditorHostSizeShrink as _0x51130d,shouldClipShapeTextDocument as _0x48a615,useFormulaShapeToolbar as _0xaa2e40}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x56d3ac,ContextMenuGroup as _0x510854,ContextMenuPosition as _0x2af139,FloatingObjectToolbarPosition as _0x404cbd,FormatPainterSessionService as _0x131d68,IMenuManagerService as _0x2ed3c1,IRibbonService as _0x313322,ISidebarService as _0x26d1b3,IconManager as _0x40e0f9,MenuItemType as _0x4171da,MenuManagerPosition as _0x13bc74,RibbonInsertGroup as _0x3cd9aa,UndoRedoGroupService as _0x466c9e,UniverMobileUIPlugin as _0xe117d2,getMenuHiddenObservable as _0x4ff7fb,useDependency as _0x2c7ca5,useObservable as _0x297a75}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x3a7d90,ImageSourceTypeEnum as _0x4ef65b,ShapeArrowSizeEnum as _0x29f38e,ShapeArrowTypeEnum as _0x7556f9,ShapeDefaultConfig as _0x59f579,ShapeFillEnum as _0x31dedb,ShapeLineTypeEnum as _0xdf880d,ShapeModel as _0x2e34c6,ShapeRenderModeEnum as _0x4ba7f7,ShapeTypeEnum as _0x1ecf22,computeConnectorRouteLayout as _0x42d9b4,getBasicShapeRotateBound as _0x3e1f4f,isConnectorShape as _0x3c2fe3,isCurvedConnectorShape as _0x147030,routeConnectorLineShape as _0x349ecd}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3d58ed,UniverShapeEditorPlugin as _0x26432c,applyQuickStyleToShapeData as _0xde63d9,cloneShapeDataForType as _0x5aef65,createShapeFormulaDocument as _0x4841cb,createShapeTextBoxShapeData as _0x52ce78,getShapeQuickStylePreset as _0x4ac0ae,getShapeQuickStyleType as _0x5e4bfe,resolveActiveShapeQuickStylePresetId as _0x54dddb}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x13dbe5,InsertSheetsShapeMutation as _0x220ec8,RemoveSheetsShapeMutation as _0xd0fb5f,SetShapeDrawingDataCommand as _0x168968,SheetsShapeService as _0x5594a6,ToggleSheetsShapeFlipCommand as _0x3cca56,UniverSheetsShapePlugin as _0x41a1bc,UpdateConnectorRelationCommand as _0xb35938,UpdateLineShapeResizeCommand as _0x54a28b,UpdateSheetsShapeDataMutation as _0x4fa39c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5de8db,CommandType as _0x1644dd,DependentOn as _0x247bab,Disposable as _0x2c7179,DisposableCollection as _0x4cf05e,DocumentDataModel as _0x579f00,DrawingTypeEnum as _0x54d53a,FOCUSING_COMMON_DRAWINGS as _0x15a415,FOCUSING_SHAPE_TEXT_EDITOR as _0x3e7b7b,HorizontalAlign as _0x324c7e,ICommandService as _0x4aa13b,IConfigService as _0x20789e,IContextService as _0x21e25a,IImageIoService as _0x52e3a0,IPermissionService as _0x10d99e,IURLImageService as _0x55093c,IUndoRedoService as _0x22695f,IUniverInstanceService as _0x595744,Inject as _0x318433,Injector as _0x54646c,LocaleService as _0x3f1353,Plugin as _0x3c4eb2,UniverInstanceType as _0x37e7a9,VerticalAlign as _0x42b23f,createInternalEditorID as _0x17c599,generateRandomId as _0x524ea6,merge as _0x845994,registerDependencies as _0x1446da,toDisposable as _0x21ce23,touchDependencies as _0x45a757}from'@univerjs/core';import{CopySheetCommand as _0x2b67e1,RemoveSheetCommand as _0x56b5fe,SheetInterceptorService as _0x5dcb53,SheetPermissionCheckController as _0x24fc12,SheetSkeletonService as _0x29e188,SheetsSelectionsService as _0x188788,UniverSheetsPlugin as _0x3d2d07,WorkbookEditablePermission as _0x59c9a1,WorksheetEditPermission as _0x5ec863,attachRangeWithCoord as _0x20495d,discreteRangeToRange as _0x17eb2d,getSheetCommandTarget as _0x4b1c62}from'@univerjs/sheets';import{IDrawingManagerService as _0x1f50fa,SetDrawingSelectedOperation as _0x4c2abf,UniverDrawingPlugin as _0x31be2a,getDrawingShapeKeyByDrawingSearch as _0x5cc8a7,getOrCreateDrawingCopyPlan as _0x48a662}from'@univerjs/drawing';import{CURSOR_TYPE as _0x48d0e8,Circle as _0x2e680e,DRAWING_OBJECT_LAYER_INDEX as _0x352374,DocumentSkeleton as _0x1caf05,DocumentViewModel as _0xe5b13a,Documents as _0x4d7bfb,IRenderManagerService as _0xc8f10c,Image as _0x2cf69c,RENDER_CLASS_TYPE as _0x511859,SHEET_VIEWPORT_KEY as _0x54edb1,Shape as _0x4546bd,Transform as _0x16a726,UniverRenderEnginePlugin as _0x48dbc2,Vector2 as _0x145e25}from'@univerjs/engine-render';import{COPY_TYPE as _0x40a630,ISheetClipboardService as _0x2730e,PREDEFINED_HOOK_NAME as _0x314886,SheetCanvasPopManagerService as _0xf74177,SheetPrintInterceptorService as _0x14d662,SheetScrollManagerService as _0x20a826,SheetSkeletonManagerService as _0x307dc0,UniverSheetsMobileUIPlugin as _0x49620b,UniverSheetsUIPlugin as _0x30d40e,deriveStateFromActiveSheet$ as _0x3baf69,getCurrentRangeDisable$ as _0x49adae,getViewportByCell as _0x2ead9}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x170955,EMPTY as _0x351d29,Observable as _0x1cfcc4,map as _0x3be804,merge as _0xa89b72,of as _0x1e0e82,startWith as _0x44274b,switchMap as _0x4ab26c}from'rxjs';import{DrawingCommonPanel as _0x3bb4b3,DrawingImageClipService as _0x1432e0,DrawingRenderService as _0x2346f6,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x184fa8,MobileObjectListPanel as _0x2083db,OBJECT_LIST_FLOATING_SECTION_ID as _0xdc906c,ObjectListPanelBase as _0xb2f346,UniverDrawingUIPlugin as _0x1df8f2,getCurrentUnitInfo as _0x23371e,getObjectListPanelSectionIdForDrawingType as _0x303f7a,insertGroupObject as _0x1e07bb}from'@univerjs/drawing-ui';import{MobileDropdown as _0x2f0a7d}from'@univerjs/design';import{Fragment as _0x4ca382,jsx as _0xcdc9dc,jsxs as _0x4537d2}from'react/jsx-runtime';import{DrawingApplyType as _0x3c81cc,ISheetDrawingService as _0x35f22e,RemoveSheetDrawingCommand as _0x4d296c,SetDrawingApplyMutation as _0x50f2f5,SetDrawingArrangeCommand as _0x4e0df7,SetSheetDrawingCommand as _0x480d38,UniverSheetsDrawingPlugin as _0x572c12,transformToAxisAlignPosition as _0x306e59,transformToDrawingPosition as _0x3dccba}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5c2b4a}from'@univerjs-pro/license';import{DocInterceptorService as _0x59811b,DocSelectionManagerService as _0x2f74d4,UniverDocsPlugin as _0x21e271}from'@univerjs/docs';function _0x2c7e(){const _0x1f188b=['_executeConnectedRouteResizeCommand','save','viewportScrollY','getBatchUpdateOp','drawing-ui.objectListPanel.lockHint','_drawRichText','_hide','onCommandExecuted','MoveUpIcon','updateLinePoints','_imageShapeClipController','animationEnabled','getShapeModel','cancelEditing','sheets-shape-ui.editShape','drawing-ui.objectListPanel.close','_handleConnectedEndpointPointerUp','offsetY','_baseLeft','_createControls','TOP','color','lineShapeId','animateFormulaPresentation','7KcdsSr','startArrow','sheet.shape.object-list.panel','_createShapeAdjustControls','getAutoFitPresentations','extensionGroups','onPointerUp$','data','PRINTING_COMPONENT_COLLECT','canvas','fillType','_cxtHandlerPointerUp','_insertShapes','Image','reverse','_activeShapeModel','_drawSimpleText','UNIVER_DOC','rect','_shapeUpdateListener','setPrstGeom','_registerFocusChangeHandler','canvasElement','setFillImage','shape-editor-ui.arrange.front','adjustValues','_isConnecting','getShapeType','onPointerDown$','sheet.shape.edit.panel','VIEW_MAIN','_addShapeConnectorHandlerObjects','_getImageDrawingInfo','angle','getObject','_canEdit','getRealBound','_applyFormulaAutoFitSize','_adjHandlerPointerUp','startConnectionDetection','fill','mergeMenu','_injector','_isStartConnectorPoint','_disposePopups','setCanUseShapeClip','shapeModel','div','_handleFreeEndpointPointerUp','onDblclick$','push','shape-text-','sheets-shape-ui.quickStyles','_clearPopups','presentation','drawing-ui.objectListPanel.name','srcRect','drawing-ui.objectListPanel.description','selectable','getImageSourceCache','sheetTransform','calcAdjValues','getDrawingByParam','7111638WhydRC','drawing-ui.objectListPanel.expand','_renderWithCache','popup','drawing-ui.objectListPanel.moveForward','presentationChanged$','next','getDrawingPoints','_getOrCreateShapeModel','_sidebarDisposable','isStartConnectorPoint','SELECTOR','flipY','setAdjustValueByName','INSERT','gradientEndColor','_baseShapeTop','clipTop','_localeService','from','cxnPointStrokeWidth','onSteady','sheets-shape-ui.flipVertical','getImage','parse','_groupCopyPasteController','_shapeFloatingToolbarService','front','_shapeService','contentVerticalOffset','setSrcRect','adjHandleSize','stringify','MEDIA','error','map','setShouldShowAdjust','stroke','decorate','activeSheet$','sheets-shape-ui','LEFT','#bcbcbc','_drawingType','offsetX','_insertingShapeKeys','_handleConnectorPointerUp','getDrawingEditable','sheets-shape-ui.ribbon.shape-format.arrange-front','getDrawingDataForUnit','getState','object','keys','call','setPrstGeomAdjValues','ShapeFormatSettingIcon','value','vertical','_generateCutPasteMutations','isHighlighted','getZoomRatio','formulaPresentation','getShapeTypeById','_updateShapeAdjustControls','_registerDrawingMoveHandler','_clearFocusedShape','isRenderLinePointsMode','getScene','drawing-ui.objectListPanel.search','onerror','SheetShapeTextEditorContainer','getTransformerByCreate','resetCursor','sheets-shape-ui.ribbon.shape-format','custom','onTransformChange$','_shapeEditPanelVersion','isHorizontal','_reset','fontFamily','completeEditing','_menuManagerService','_config','drawing-ui.objectListPanel.unlock','_sheetShapeAdjustController','ShapeIcon','unsubscribe','_generateCopyPasteMutations','_shapeRenderController','packageName','_updateSrcRectByTransform','drawing-ui.objectListPanel.lockAll','formulaBinding','DRAWING','translateWithPrecision','getConnectionInfo','getCurrentScrollState','_baseDrawingRect','drawing-ui.objectListPanel.dragToReorder','worldPoint','registerFeatureMenu','disposeWithMe','_generatePasteMutations','idMap','sectionFloating','7096mVEIHG','_initialize','filter','sheet.shape.picker.component','3LfssqQ','mode','getInterceptPoints','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getConnectorLinePoints','drawing-ui.objectListPanel.show','getShapeTextData','disableShapeOption','VIEW_MAIN_LEFT_TOP','cxnPointRadius','_registerOperations','_context','_isDrawingShapePointDown','sheets-shape-text-','TopmostIcon','_registerMoveHandler','ancestorTransform','getSkeleton','_drawRichTextLayer','_clipService','flipX','FlipVerticalIcon','_formulaKey','_loadShapePictureFill','fontSize','_draw','computeConnectorResizeLayout','remove$','BottomIcon','DRAWING_IMAGE','open','drawing-ui.objectListPanel.unlockHint','top','_isOpenedShapeEditPanel','isEditing','vertical-center','getVisible','_urlImageService','VIEW_MAIN_TOP','_sheetInterceptorService','size','isHitLine','addClipboardHook','shapeData','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_sheetPermissionCheckController','_clearConnectionSites','currentAdjustValues','drawing-ui.objectListPanel.filterAll','SolidFill','getSheetBySheetId','drawingType','getUnitId','PictureFill','doc.image-clip.shape-picker.component','1yuxaRy','pipe','endConnectionDetection','_visible','_getScrollInfo','relation','copyId','refreshShapeFillImage','attachTransformerTo','sheets-shape-ui.ribbon.shape-format.style-control','_clearControls','composeMatrix','_activeShapeId','values','name','_initCopyPaste','isMainScene','_addControl','delete','shapeId','_sheetCanvasPopManagerService','prstGeom','PaintIcon','_copyInfo','abs','type','add','beginPath','_registerDrawingFocusChangeHandler','intercept','end','_moveConnectorWithShape','_handleFreeEndpointMove','presetId','2016414EMGFwY','executeCommand','1006004vESCpa','length','1.0.2','multiply','DRAWING_SHAPE','buildClipPath','connection-site-','image','_adjName','_formulaShapes','transform','_cxtHandlerPointerMove','shapeType','height','refreshFormulaPresentation','sheetViewStartRow','_activeAdjustPointList','drawing-ui.objectListPanel.filterLocked','OPERATION','run','_popupMenuListener','_isShouldShowDrawingShapeAdjust','setFallbackVisible','_activeImageId','subUnitId','onPointerMove$','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getDrawingData','bottom','setEditing','_completionFrame','image-clip-adjust-point-','update$','sheets-shape-ui.ribbon.shape-format.formula-control','#FFFFFF','sheet.menu.shape.flip-vertical','title','_registerFeatureMenu','@univerjs-pro/sheets-shape-ui','_initSheetChange','flatMap','_connectorObjects','order','transformByState','extraProps','renderDrawingShape','UPDATE','_cxnIndex','_getShapeInfo','sheet.operation.update-shape-type','BUTTON','get','prstGeomAdjValues','startY','16078612FLwEbd','_initEditingParams','initShapePopupMenu','_hasReset','_openShapeEditPanel','horizontal','_subUnitId','sheets-shape-ui.objectListPanel.title','sectionCanvas','description','_executeConnectionCommand','cos','getMatrix','sheets-shape-format-font-family-menu','CROSSHAIR','asObservable','focusDrawing','getBasicShapeRelation','_showConnectionSites','symbol','_sheetBasicShapeConnectionPointController','_connectionSiteObjects','pluginName','getShapeDataById','panel','connector-handler-','viewportScrollX','left','_update','_getSceneAndTransformerByDrawingSearch','_drawingAddListener','blockExecuteWithoutPermission','drawing-ui.objectListPanel.unlockAll','sheet.command.update-shape-data','sheets-shape-ui.insertShape','oKey','set','_closeShapeEditPanel','getEditing','_unitId','_calculateFreeEndpointAngle','sheets-shape-ui.title','drawing-ui.objectListPanel.sectionCanvas','startX','setHighlighted','_contextService','_props','Line','getCurrentUnitOfType','None','adjHandleFill','getConnectionRelation','isDrawingObject','_baseWidth','draw','render','_sheetDrawingService','_getImagePrstGeom','getAdjustInfoByName','getAdjustValueByName','unitId','getCurrentSkeleton','includes','isArray','_baseShapeHeight','redo','_initEvents','changing$','sheets-shape-ui.ribbon.shape-format.text-control','setFormulaPresentation','scene','restore','_editingParams$','create','_iconManager','some','_activeShapeInfo','14841eOJMwR','_index','text','_getShapeAdjustPointListById','setContextValue','ang','permissionPointUpdate$','drawingId','copyType','_drawingManagerService','makeDirty','univer-box-border\x20univer-px-4\x20univer-text-sm','sheets-shape-ui.config','getConnectionSiteList','MoveDownIcon','drawing-ui.objectListPanel.collapse','registerRenderModule','_highlightedSiteIndex','getSkeletonParam','unregister','_sheetDrawingShapeRenderController','_findShapeAtPoint','calculate','drawing.operation.set-drawing-active','default','resize','SHEET_SHAPE_UI_PLUGIN','contentHeight','changeStart$','hidden','getUnitType','getDrawingSearch','_initPermission','getObjectIncludeInGroup','drawing-ui.objectListPanel.hideAll','function','parent','getTransformer','editingParams$','_isImagePointerDown','GROUP','_updateAdjustControlPositions','setCollapsedIds','_targetShapeId','drawing-ui.objectListPanel.moveBackward','getCurrentTypeOfUnit$','_init','_getConnectionSiteAngle','_ribbonService','targetShapeId','_registerGroupFeaturePasteHook','shape-adjust-point-','interceptor','_permissionService','shape-editor-ui.toolbar.changeShape','_baseHeight','_findNearestConnectionSite','_clearShapeAdjustControls','drawing-ui.objectListPanel.noSelection','getStartConnectInfo','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.title','_draggingConnectorId','clearControl$','_isHighlighted','clip','SolidLine','_activeAdjustInfo','classType','_baseTop','getRenderUnitById','_registerComponents','worldRect','sheet.command.menu-insert-shape','getBatchAddOp','with','syncExecuteCommand','isInGroup','visible','changeEnd$','drawing-ui.objectListPanel.nameInput','isRichText','reduce','getEndConnectInfo','_resetState','forward','cxnIndex','getUnit','_sheetsShapeService','refreshAdjustControls','getDrawingOKey','_lastEditingShapeKey','rotation','shape-editor-ui.arrange.backward','_shapePopupMenuDisposable','isRender','skeleton','sheets-shape-ui.editText','cxnPointFill','registerCommand','_setTransForm','backward','_shapeFormulaService','_adjHandlerPointerMove','sheetViewStartColumn','sheets-shape-ui.formatShape','attachPopupToObject','hideContextualTab','_sheetPrintInterceptorService','_formulaAnimation','showContextualTab','_shapeTextEditingService','getFocusDrawings','_attachConnectorObjectEvent','_imageIoService','constructor','getParent','getShapeTextRect','shape-editor-ui.toolbar.quickStyles','strokeWidth','register','getAdjustNames','localToWorld','axisAlignSheetTransform','_rerouteConnectorLine','onStarting','_currentConnectionTarget','refreshTransform','_clearCompletionFrame','_activeTargetShapeId','SHAPE_TEXT','forEach','highlighted','sheets-shape-ui.permission.editErr','toPrimitive','getShapeData','_sidebarService','point','getSelectedObjectMap','REMOVE','_transform','clearAdjustValue','worldPoints','drawing-ui.objectListPanel.showAll','sheets-shape-ui.objectListPanel.open','sheet.shape.text.float-menu','iterator','addImageSourceCache','complete','sheets-shape-ui.shape-format.style-ribbon-control','drawing-ui.objectListPanel.hide','preValue','getContextValue','UNIVER_SHEET','invert','endArrow','sheets-shape-ui.imagePanel.crop.shape','_shapeId','localeService','translate','_commandService','_handleConnectedEndpointMove','getDrawingOrder','ObjectLayersIcon','setShapeProps','3407830RRwPEI','getPermissionPoint','lineType','getValue','getSheetId','addObject','_clearShapeConnectorHandlerObjects','Arrow','8451560CGRsed','index','_componentManager','shape-editor-ui.arrange.back','sin','getBatchRemoveOp','activeAnObject','clipByShape','fillImageSource','debounceRefreshControls','_initPrinting','_activeShapeAdjustPointList','_currentScene','setConfig','_configService','shapeText','sheet.operation.open-shape-object-list-panel','shapeKey','_createCopyInfoByRange','_renderManagerService','_focusedDrawings','updateShapeFillImage','sheets-shape-ui.ribbon.shape-format.arrange-backward','find','permissionCheckWithoutRange','setOnSavingEditorData','#4285f4','onRendered','_updateTransform','pick','FlipHorizontalIcon','focus$','getBentTypeFromPoints','_initCommands','sheets-shape-ui.flipHorizontal','string','isHit','normal','_getConnectPointInfo','visible$','subscribe','_handleBasicShapeUpdateConnectorLineShape','getActualSize','_shapes','clearAdjustControls','getActiveSheet','fromChangeset','defineProperty','objects','_executeResizeCommand','sheets-shape-ui.shape-format.quick-style-gallery','marginTop','OTHERS','getDrawingVisible','_onSavingEditorData$','URL','Large','style','COMMAND','subscribeEvent','undo','sheets-shape-ui.deleteShape','actions','getInverseCoord','sheet.operation.open-mobile-shape-editor','drawWith','sqrt','_addShapeConnectorHandlerObject','_univerInstanceService','drawing-ui.objectListPanel.filterHidden','setPresentation','entries','sheet.operation.close-sheet-shape-format-panel','width','_sheetClipboardService','dataModel','disableObjectsEvent','_baseShapeLeft','_getDrawingRect','src','_attachAdjustEvent','add$','_disposed','featurePluginUpdateNotification','_getZoomRatio','_isStartAdjusting','transformForAngle','_baseShapeWidth','onReady','updateConnectionDetection','_sheetSkeletonService','drawing-ui.objectListPanel.typeNames.','adjName','has','getOwnPropertyDescriptor','enableObjectsEvent','drawing-ui.objectListPanel.lock','_initMenu','_drawingRenderService','updateContext','engine','_releaseRenderCache','doc','clip-adj-','version','dispose','fillImageSourceType','params','_commandExecutedListener','stopPropagation','applyPoint','trim','setCursor','setShapeData'];_0x2c7e=function(){return _0x1f188b;};return _0x2c7e();}import{DocCanvasPopManagerService as _0x5908e1,DocEventManagerService as _0x181919,DocRenderController as _0x44ebf9,DocSelectionRenderService as _0x1706ef,UniverDocsUIPlugin as _0x99abe1}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x28ac02,SheetsDrawingGroupCopyPasteController as _0x38ae18,UniverSheetsDrawingMobileUIPlugin as _0x4a669e,UniverSheetsDrawingUIPlugin as _0x57b4f0}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0xe20eb,FlipHorizontalIcon as _0x183126,FlipVerticalIcon as _0x3dabc1,MoveDownIcon as _0x1bee1c,MoveUpIcon as _0x368783,ObjectLayersIcon as _0x4809c9,ShapeFormatSettingIcon as _0x1516df,TopmostIcon as _0x1f7182}from'@univerjs/icons';import{memo as _0x2a23cd,useEffect as _0x1ff107,useMemo as _0x3352e0,useReducer as _0x256536,useState as _0x1ccdce}from'react';function yr(_0x5a2e3a,_0x5a9f46){const _0x58c17d=_0x4e9b;let _0x44d09b={};for(let _0x3b1e11 of Object[_0x58c17d(0x3da)](_0x5a9f46)){let _0x2c30f8=_0x5a9f46[_0x3b1e11],_0x22f2b3=_0x5a2e3a[_0x3b1e11];if(_0x22f2b3===void 0x0){_0x44d09b[_0x3b1e11]=void 0x0;continue;}_0x44d09b[_0x3b1e11]=typeof _0x2c30f8=='object'&&_0x2c30f8&&!Array[_0x58c17d(0x222)](_0x2c30f8)&&typeof _0x22f2b3==_0x58c17d(0x3d9)&&_0x22f2b3&&!Array[_0x58c17d(0x222)](_0x22f2b3)?yr(_0x22f2b3,_0x2c30f8):_0x22f2b3;}return _0x44d09b;}const K={'type':_0x1644dd['COMMAND'],'id':_0x244912(0x204),'handler':(_0x13ad01,_0x595215)=>{const _0xb8724b=_0x244912;let _0x31fe87=_0x13ad01['get'](_0x5594a6),{unitId:_0x262a2f,subUnitId:_0x5388db,shapeType:_0x13a6cc,shapeId:_0x338951,shapeData:_0x2bda58,replaceShapeData:_0x8f8eb6,oldShapeJSON:_0x420932}=_0x595215;if(!_0x31fe87[_0xb8724b(0x35b)](_0x262a2f,_0x5388db,_0x338951))return!0x1;let _0x198f2a=_0x13ad01[_0xb8724b(0x1e0)](_0x4aa13b),_0x3e7f8d=_0x13ad01['get'](_0x22695f),{oldShapeType:_0x4914c3,oldShapeData:_0x193ce7={}}=_0x420932,_0x7fa4dc=_0x8f8eb6?_0x193ce7:yr(_0x193ce7,_0x2bda58||{}),_0x585fbd={'id':_0x4fa39c['id'],'params':{'unitId':_0x262a2f,'subUnitId':_0x5388db,'shapeId':_0x338951,'shapeType':_0x13a6cc,'shapeData':_0x2bda58,'replace':_0x8f8eb6}},_0x137288={'id':_0x4fa39c['id'],'params':{'unitId':_0x262a2f,'subUnitId':_0x5388db,'shapeId':_0x338951,'shapeType':_0x4914c3,'shapeData':_0x7fa4dc,'replace':_0x8f8eb6}};return _0x198f2a[_0xb8724b(0x27c)](_0x585fbd['id'],_0x585fbd[_0xb8724b(0x348)])?(_0x3e7f8d['pushUndoRedo']({'unitID':_0x262a2f,'undoMutations':[_0x137288],'redoMutations':[_0x585fbd]}),!0x0):!0x1;}};function br(_0x1200f2,_0x5348dd,_0xd5cbfa,_0x3f8120,_0x505e59,_0x4db269){const _0x3ddfa9=_0x244912;let _0x43675b={'unitId':_0x5348dd,'subUnitId':_0xd5cbfa,'shapeId':_0x3f8120,'shapeData':_0x4db269,'oldShapeJSON':_0x505e59};return _0x1200f2[_0x3ddfa9(0x1ac)](K['id'],_0x43675b);}function xr(_0x1bf49c,_0x2578f5,_0x28bf0c,_0x4bcd1f,_0x4c1ec8,_0x47998f){const _0x5b1a31=_0x244912;let _0x7b376c={'unitId':_0x2578f5,'subUnitId':_0x28bf0c,'shapeId':_0x4bcd1f,'shapeData':_0x47998f,'oldShapeJSON':_0x4c1ec8};return _0x1bf49c[_0x5b1a31(0x1ac)](K['id'],_0x7b376c);}function Sr(_0x5d9b0a){'@babel/helpers - typeof';const _0x57fa34=_0x244912;return Sr=typeof Symbol==_0x57fa34(0x253)&&typeof Symbol[_0x57fa34(0x2c2)]==_0x57fa34(0x1f6)?function(_0x345c20){return typeof _0x345c20;}:function(_0x65f977){const _0x267e29=_0x57fa34;return _0x65f977&&typeof Symbol=='function'&&_0x65f977[_0x267e29(0x2a3)]===Symbol&&_0x65f977!==Symbol['prototype']?_0x267e29(0x1f6):typeof _0x65f977;},Sr(_0x5d9b0a);}function Cr(_0x2285bb,_0x1ed628){const _0x14907d=_0x244912;if(Sr(_0x2285bb)!=_0x14907d(0x3d9)||!_0x2285bb)return _0x2285bb;var _0x411419=_0x2285bb[Symbol[_0x14907d(0x2b6)]];if(_0x411419!==void 0x0){var _0x180e2f=_0x411419[_0x14907d(0x3db)](_0x2285bb,_0x1ed628||_0x14907d(0x248));if(Sr(_0x180e2f)!=_0x14907d(0x3d9))return _0x180e2f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1ed628===_0x14907d(0x300)?String:Number)(_0x2285bb);}function wr(_0x542607){const _0x5bf2ce=_0x244912;var _0x5f1ffd=Cr(_0x542607,_0x5bf2ce(0x300));return Sr(_0x5f1ffd)=='symbol'?_0x5f1ffd:_0x5f1ffd+'';}function q(_0x1254eb,_0x490417,_0x43b5dc){const _0x5113e1=_0x244912;return(_0x490417=wr(_0x490417))in _0x1254eb?Object[_0x5113e1(0x30c)](_0x1254eb,_0x490417,{'value':_0x43b5dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1254eb[_0x490417]=_0x43b5dc,_0x1254eb;}function Tr(_0x40d0fc,_0x2289e5,_0x2214c6){const _0xecb51b=_0x244912;let _0xf1599={..._0x2289e5,'dataModel':{..._0x2289e5[_0xecb51b(0x328)]??{},..._0x2214c6?{'doc':_0x2214c6}:null}},_0x44d915=_0x432dcd(_0x40d0fc,_0xf1599),_0x20531c=_0x338209(_0x44d915);return{'clip':_0x48a615(_0x44d915,_0x20531c),'wrapStrategy':_0x20531c};}var Er=class extends _0x4546bd{constructor(_0x58c15d,_0x29ac89){const _0x341125=_0x244912;super(_0x58c15d,_0x29ac89),q(this,_0x341125(0x211),void 0x0),q(this,'_formulaAnimation',new _0x141052(()=>this[_0x341125(0x23a)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x341125(0x3d1),_0x54d53a[_0x341125(0x1b1)]),q(this,_0x341125(0x217),!0x0),this[_0x341125(0x211)]={..._0x29ac89},this[_0x341125(0x29d)]['setPresentation'](_0x29ac89[_0x341125(0x3e3)],_0x29ac89[_0x341125(0x366)]!==!0x1),this[_0x341125(0x25e)](),this[_0x341125(0x38c)]();}['_init'](){const _0x3a1b8b=_0x244912;this[_0x3a1b8b(0x3f1)][_0x3a1b8b(0x318)](_0x163f88=>{const _0x4b91a8=_0x3a1b8b;this[_0x4b91a8(0x13f)](_0x163f88);});}['setPrstGeom'](_0x426f13){const _0x32c1d1=_0x244912;this[_0x32c1d1(0x211)]['prstGeom']=_0x426f13;}[_0x244912(0x1ca)](_0x49b1e5){const _0x11ae88=_0x244912;this[_0x11ae88(0x211)][_0x11ae88(0x174)]=_0x49b1e5,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x20bd36,_0x28cd46=!0x0){const _0x54be33=_0x244912;this[_0x54be33(0x29d)][_0x54be33(0x323)](_0x20bd36,_0x28cd46),this[_0x54be33(0x211)]['formulaPresentation']=_0x20bd36,this[_0x54be33(0x38c)](),this[_0x54be33(0x23a)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x5d28a2=_0x244912;let _0x586c70=this[_0x5d28a2(0x211)]['shapeModel'],_0x5553c3=_0x586c70[_0x5d28a2(0x158)](),_0x298b92=_0x10cd0f(_0x5553c3==null?void 0x0:_0x5553c3[_0x5d28a2(0x328)]),_0x3359d5=_0x298b92==null?void 0x0:_0x298b92['doc'],_0x41c73e=this[_0x5d28a2(0x29d)][_0x5d28a2(0x36b)]();if(!_0x3359d5||_0x41c73e[_0x5d28a2(0x1ae)]===0x0)return;_0x586c70[_0x5d28a2(0x340)]({'width':this[_0x5d28a2(0x326)],'height':this[_0x5d28a2(0x1ba)]});let _0x94c6dd=_0x17f889({'documentData':_0x41c73e[_0x5d28a2(0x3c9)](_0x54a124=>_0x4841cb(_0x3359d5,_0x54a124)),'height':this['height'],'shapeData':_0x586c70[_0x5d28a2(0x2b7)](),'textRect':_0x586c70['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x5d28a2(0x326)],'height':this[_0x5d28a2(0x1ba)]}),'width':this[_0x5d28a2(0x326)]});if(_0x94c6dd){var _0x617d71;this[_0x5d28a2(0x249)](_0x94c6dd['width'],_0x94c6dd['height']),(_0x617d71=this[_0x5d28a2(0x3e9)]())==null||(_0x617d71=_0x617d71[_0x5d28a2(0x255)]())==null||_0x617d71[_0x5d28a2(0x2e6)]();}}get['unitId'](){const _0x224b00=_0x244912;return this[_0x224b00(0x211)][_0x224b00(0x21f)];}get['subUnitId'](){const _0x25027d=_0x244912;return this[_0x25027d(0x211)]['subUnitId'];}[_0x244912(0x13f)](_0x44b438){const _0x2b247c=_0x244912;if(this[_0x2b247c(0x211)][_0x2b247c(0x39f)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x4b99ea,height:_0x4c60a2}=this,{width:_0x4023da=0x0,height:_0x393f89=0x0}=_0x44b438[_0x2b247c(0x2c7)],{left:_0x49f185=0x0,top:_0x6e5c84=0x0,right:_0xef8de=0x0,bottom:_0x5856c3=0x0}=this[_0x2b247c(0x211)]['srcRect'],_0xd1c295=_0x49f185,_0x49dcb1=_0x6e5c84,_0x300326=_0xef8de,_0x4cb772=_0x5856c3,_0x1299a7=!0x1;if(_0x4023da!==0x0&&_0x4023da!==_0x4b99ea){let _0x34c0e3=_0x49f185/_0x4023da,_0x42faf0=_0xef8de/_0x4023da;_0xd1c295=_0x4b99ea*_0x34c0e3,_0x300326=_0x4b99ea*_0x42faf0,_0x1299a7=!0x0;}if(_0x393f89!==0x0&&_0x393f89!==_0x4c60a2){let _0x2c322c=_0x6e5c84/_0x393f89,_0x5f3a7b=_0x5856c3/_0x393f89;_0x49dcb1=_0x4c60a2*_0x2c322c,_0x4cb772=_0x4c60a2*_0x5f3a7b,_0x1299a7=!0x0;}_0x1299a7&&this[_0x2b247c(0x3c4)]({'left':_0xd1c295,'top':_0x49dcb1,'right':_0x300326,'bottom':_0x4cb772});}[_0x244912(0x3c4)](_0x7f0376){const _0x9ae493=_0x244912;this[_0x9ae493(0x211)][_0x9ae493(0x39f)]=_0x7f0376,this[_0x9ae493(0x23a)](!0x0);}[_0x244912(0x37e)](_0x4487a4){const _0x2eb7d1=_0x244912;this[_0x2eb7d1(0x211)][_0x2eb7d1(0x1b4)]=_0x4487a4,this['makeDirty'](!0x0);}set['transform'](_0x2c61b6){const _0x1b644=_0x244912;this[_0x1b644(0x2bc)]=_0x2c61b6;}get[_0x244912(0x1b7)](){const _0x16b4e8=_0x244912;this[_0x16b4e8(0x2bc)]||this[_0x16b4e8(0x294)]();let _0x5022b9=this[_0x16b4e8(0x2bc)]['clone']();return this[_0x16b4e8(0x333)](_0x5022b9);}get[_0x244912(0x395)](){const _0x29a3ff=_0x244912;return this[_0x29a3ff(0x211)]['shapeModel'];}get[_0x244912(0x19c)](){const _0x3e2ac1=_0x244912;return this[_0x3e2ac1(0x211)][_0x3e2ac1(0x19c)];}get[_0x244912(0x274)](){return _0x511859['SHAPE'];}['_draw'](_0x2ae495,_0x2de7ee,_0x3923c1,_0x4e5420){const _0x276c40=_0x244912;let _0x53aedf=this[_0x276c40(0x211)][_0x276c40(0x395)];if(!_0x53aedf||!_0x2de7ee)return;let _0x760c32=_0x3923c1??this[_0x276c40(0x326)],_0x716484=_0x4e5420??this[_0x276c40(0x1ba)],_0x2b43a2={'shapeType':_0x53aedf[_0x276c40(0x382)](),'width':_0x760c32,'height':_0x716484},_0x320c6d={'renderMode':_0x4ba7f7['Path'],'oKey':this[_0x276c40(0x206)],'image':this[_0x276c40(0x211)][_0x276c40(0x1b4)],'angle':this['angle']};_0x53aedf[_0x276c40(0x340)](_0x2b43a2),_0x2ae495[_0x276c40(0x350)]();let _0x353288={'top':0x0,'left':0x0,'width':_0x760c32,'height':_0x716484},_0x29a030=_0x53aedf['getDrawingEffectBounds'](_0x353288);_0x29a030?this[_0x276c40(0x3a8)](_0x2ae495,_0x29a030,_0x4d4034=>{const _0x1655ec=_0x276c40;_0x53aedf[_0x1655ec(0x21a)](_0x4d4034,_0x353288,_0x320c6d);}):(this[_0x276c40(0x342)](),_0x53aedf[_0x276c40(0x21a)](_0x2ae495,_0x353288,_0x320c6d)),_0x2ae495[_0x276c40(0x22a)]();let _0xe3617e=_0x53aedf['getShapeTextData'](),_0x505de7=_0x53aedf[_0x276c40(0x2a5)](_0x353288),_0x3b46ae=_0x53aedf['isLineShape']();if(_0xe3617e&&_0x505de7&&!_0x3b46ae){_0x2ae495[_0x276c40(0x350)](),this[_0x276c40(0x3d8)]()[_0x276c40(0x166)]&&_0x2ae495['scale'](-0x1,0x1);let _0x380483=_0x760c32/0x2,_0x557066=_0x716484/0x2;_0x2ae495[_0x276c40(0x2cf)](-_0x380483,-_0x557066),_0x2ae495[_0x276c40(0x1a4)](),this['_drawShapeText'](_0x2ae495,_0xe3617e,_0x505de7),_0x2ae495[_0x276c40(0x22a)]();}}[_0x244912(0x3ad)](_0x56b13c){}['_drawShapeText'](_0x369fec,_0x4ed1fd,_0x3ac218){const _0x412883=_0x244912;var _0x2cf7d8;this['_props']['isEditing']||(!((_0x2cf7d8=_0x4ed1fd['dataModel'])!=null&&_0x2cf7d8[_0x412883(0x343)])&&'isRichText'in _0x4ed1fd&&_0x4ed1fd[_0x412883(0x281)]===!0x1?this['_drawSimpleText'](_0x369fec,_0x4ed1fd,_0x3ac218):this[_0x412883(0x354)](_0x369fec,_0x4ed1fd,_0x3ac218));}[_0x244912(0x377)](_0x262b79,_0x3df5c3,_0x2ae611){const _0x575dee=_0x244912;this[_0x575dee(0x354)](_0x262b79,{..._0x3df5c3,'text':_0x3df5c3[_0x575dee(0x232)]??'','dataModel':{'doc':_0x3f9894(_0x3df5c3,_0x575dee(0x15f)+this[_0x575dee(0x206)])}},_0x2ae611);}[_0x244912(0x354)](_0xcba5e0,_0x343f5e,_0x12ce37){const _0x4ec8b6=_0x244912;_0x4dca42(_0xcba5e0,this[_0x4ec8b6(0x29d)],(_0x53ee7e,_0xb6c392)=>{this['_drawRichTextLayer'](_0x53ee7e,_0x343f5e,_0x12ce37,_0xb6c392);});}[_0x244912(0x164)](_0x14f38b,_0x3307c8,_0x19382e,_0x320c25){const _0x4f85d4=_0x244912;let _0x342807=this[_0x4f85d4(0x211)][_0x4f85d4(0x2ce)];if(!_0x3307c8[_0x4f85d4(0x328)]||!_0x342807)return;let _0x1f3f15=_0x10cd0f(_0x3307c8[_0x4f85d4(0x328)]);if(!_0x1f3f15)return;let _0x4edd41=_0x1f3f15[_0x4f85d4(0x343)];if(!_0x4edd41)return;let _0x34469c=_0x4841cb(_0x4edd41,_0x320c25),_0xd5962e=_0x1f3f15['va']??_0x42b23f[_0x4f85d4(0x363)],_0x141c6e=_0x1f3f15['ha']??_0x324c7e[_0x4f85d4(0x3cf)],_0xdb8dd8=Tr(this[_0x4f85d4(0x211)][_0x4f85d4(0x395)][_0x4f85d4(0x2b7)](),_0x3307c8,_0x34469c),_0x377171=_0x3307c8[_0x4f85d4(0x3f3)],_0x21efb9=_0x437d41(_0x34469c,{'isHorizontal':_0x377171!==!0x1,'textRect':_0x19382e,'verticalAlign':_0xd5962e,'horizontalAlign':_0x141c6e,'wrapStrategy':_0xdb8dd8['wrapStrategy']}),_0x1e1e9b=new _0x579f00(_0x21efb9),_0x33515a=new _0xe5b13a(_0x1e1e9b),_0x25d61c=_0x1caf05[_0x4f85d4(0x22c)](_0x33515a,_0x342807);_0x25d61c[_0x4f85d4(0x246)]();let _0x4d113e=_0x25d61c[_0x4f85d4(0x307)]()['actualHeight'],_0xccc59c=_0xe799eb({'contentHeight':_0x4d113e,'verticalAlign':_0xd5962e,'viewportHeight':_0x19382e[_0x4f85d4(0x1ba)]});_0x1e1e9b['updateDocumentStyle']({'pageSize':{'width':_0x377171===!0x1?_0x19382e[_0x4f85d4(0x1ba)]:_0x19382e[_0x4f85d4(0x326)],'height':_0x5ca9c1(_0x34469c,_0xccc59c[_0x4f85d4(0x24b)])}}),_0x1e1e9b['updateDocumentDataMargin']({'t':_0xccc59c[_0x4f85d4(0x310)]}),_0x25d61c[_0x4f85d4(0x246)]();let _0x22f0df=new _0x4d7bfb(_0x4f85d4(0x39a)+this['oKey'],_0x25d61c,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4f85d4(0x23a)](!0x0)});_0x22f0df[_0x4f85d4(0x249)](_0x19382e[_0x4f85d4(0x326)],_0xccc59c[_0x4f85d4(0x24b)]),_0x14f38b['save'](),_0x14f38b[_0x4f85d4(0x143)](_0x19382e[_0x4f85d4(0x1fe)],_0x19382e[_0x4f85d4(0x172)]),_0xdb8dd8[_0x4f85d4(0x271)]&&(_0x14f38b[_0x4f85d4(0x1a4)](),_0x14f38b[_0x4f85d4(0x379)](0x0,_0xccc59c[_0x4f85d4(0x3b7)],_0x19382e[_0x4f85d4(0x326)],_0xccc59c['clipHeight']),_0x14f38b[_0x4f85d4(0x271)]()),_0xccc59c[_0x4f85d4(0x3c3)]&&_0x14f38b[_0x4f85d4(0x143)](0x0,_0xccc59c[_0x4f85d4(0x3c3)]),_0x22f0df[_0x4f85d4(0x219)](_0x14f38b),_0x14f38b[_0x4f85d4(0x22a)](),_0x22f0df[_0x4f85d4(0x346)](),_0x25d61c[_0x4f85d4(0x346)](),_0x33515a[_0x4f85d4(0x346)](),_0x1e1e9b['dispose']();}[_0x244912(0x21a)](_0x27299e,_0x81ed65,_0x514305=!0x1){const _0x5822d7=_0x244912;if(!this[_0x5822d7(0x27e)])return this[_0x5822d7(0x23a)](!0x1),this;let {width:_0x2b19da,height:_0x1dae20,left:_0x45f934,top:_0x7bd85d}=this,_0x22d3b2=this['getRealBound']();if(_0x2b19da=_0x22d3b2[_0x5822d7(0x326)],_0x1dae20=_0x22d3b2[_0x5822d7(0x1ba)],_0x45f934=_0x22d3b2['left'],_0x7bd85d=_0x22d3b2[_0x5822d7(0x172)],this[_0x5822d7(0x28f)](_0x81ed65)){let {top:_0x19f389,left:_0x4a89fb,bottom:_0x2e5197,right:_0x3b7756}=_0x81ed65['viewBound'];if(_0x2b19da+this['strokeWidth']+_0x45f934<_0x4a89fb||_0x3b7756<_0x45f934||_0x1dae20+this[_0x5822d7(0x2a7)]+_0x7bd85d<_0x19f389||_0x2e5197<_0x7bd85d)return this;}let _0x262c27=_0x45f934+_0x2b19da/0x2,_0x5bd815=_0x7bd85d+_0x1dae20/0x2,_0x559d48=this[_0x5822d7(0x1b7)]['getMatrix']();if(this['_props'][_0x5822d7(0x174)]){let _0x4983c1=this[_0x5822d7(0x3d8)](),_0x2f5231=new _0x16a726();_0x2f5231[_0x5822d7(0x194)]({..._0x4983c1}),_0x559d48=_0x2f5231[_0x5822d7(0x1ef)]();}return _0x27299e['save'](),this[_0x5822d7(0x211)][_0x5822d7(0x395)][_0x5822d7(0x3e8)]===!0x0||_0x27299e[_0x5822d7(0x1b7)](_0x559d48[0x0],_0x559d48[0x1],_0x559d48[0x2],_0x559d48[0x3],_0x262c27,_0x5bd815),this['_draw'](_0x27299e,_0x81ed65,_0x2b19da,_0x1dae20),_0x27299e[_0x5822d7(0x22a)](),this[_0x5822d7(0x23a)](!0x1),this;}[_0x244912(0x31c)](_0x1191ea){const _0x2aff13=_0x244912;let {left:_0x2ef96a,top:_0x791bcc,width:_0xbc9f5,height:_0x24cf48}=this[_0x2aff13(0x38b)](),_0x120f0e=this['transform'][_0x2aff13(0x1ef)](),_0x5b653f=_0x2ef96a+_0xbc9f5/0x2,_0x3ec877=_0x791bcc+_0x24cf48/0x2,_0x4cf6a7=new _0x16a726([_0x120f0e[0x0],_0x120f0e[0x1],_0x120f0e[0x2],_0x120f0e[0x3],_0x5b653f,_0x3ec877]),_0x2ae7ee=this[_0x2aff13(0x2a4)]();return(this['isInGroup']&&(_0x2ae7ee==null?void 0x0:_0x2ae7ee['classType'])===_0x511859['GROUP']?_0x2ae7ee[_0x2aff13(0x162)][_0x2aff13(0x1b0)](_0x4cf6a7):_0x4cf6a7)[_0x2aff13(0x2ca)]()[_0x2aff13(0x34b)](_0x1191ea);}[_0x244912(0x301)](_0x5656f8){const _0x2a73a3=_0x244912;let {left:_0x2039c3,top:_0x6355c,width:_0x2c00a9,height:_0x515bdc}=this[_0x2a73a3(0x38b)](),_0xb82e9f=_0x2039c3+_0x2c00a9/0x2,_0x909c91=_0x6355c+_0x515bdc/0x2,_0x2b1dff=this[_0x2a73a3(0x1b7)][_0x2a73a3(0x1ef)](),_0x3be251=new _0x16a726([_0x2b1dff[0x0],_0x2b1dff[0x1],_0x2b1dff[0x2],_0x2b1dff[0x3],_0xb82e9f,_0x909c91]),_0x353a91=this[_0x2a73a3(0x2a4)](),_0x408df3=(this['isInGroup']&&(_0x353a91==null?void 0x0:_0x353a91[_0x2a73a3(0x274)])===_0x511859['GROUP']?_0x353a91[_0x2a73a3(0x162)][_0x2a73a3(0x1b0)](_0x3be251):_0x3be251)['invert']()[_0x2a73a3(0x34b)](_0x5656f8),_0x5b7831=_0x2c00a9/0x2,_0x36604e=_0x515bdc/0x2,_0x1a395=this['_props'][_0x2a73a3(0x395)];return _0x1a395&&_0x1a395['isLineShape']()?_0x1a395[_0x2a73a3(0x17b)](_0x408df3['x'],_0x408df3['y'],_0x2c00a9,_0x515bdc):_0x408df3['x']>=-_0x5b7831-this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['x']<=_0x5b7831+this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['y']>=-_0x36604e-this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['y']<=_0x36604e+this['strokeWidth']/0x2;}[_0x244912(0x346)](){const _0x33b70e=_0x244912;this['_formulaAnimation'][_0x33b70e(0x346)](),this[_0x33b70e(0x211)]['shapeModel']=null,super[_0x33b70e(0x346)]();}},Dr=class extends _0x4546bd{constructor(_0x3d00ac,_0x5858cd){const _0x73a06=_0x244912;super(_0x3d00ac,_0x5858cd),q(this,_0x73a06(0x2cd),null),q(this,_0x73a06(0x1b5),null),q(this,_0x73a06(0x20a),null),q(this,_0x73a06(0x1e9),null),_0x5858cd&&this[_0x73a06(0x2d4)](_0x5858cd);}[_0x244912(0x24f)](){const _0x454e31=_0x244912;return{'unitId':this[_0x454e31(0x20a)],'subUnitId':this[_0x454e31(0x1e9)],'drawingId':this['_shapeId']};}[_0x244912(0x2d4)](_0xde3ba7){const _0x25a2aa=_0x244912;_0xde3ba7[_0x25a2aa(0x19c)]!==void 0x0&&(this[_0x25a2aa(0x2cd)]=_0xde3ba7[_0x25a2aa(0x19c)]),_0xde3ba7['adjName']!==void 0x0&&(this['_adjName']=_0xde3ba7[_0x25a2aa(0x339)]),_0xde3ba7[_0x25a2aa(0x21f)]!==void 0x0&&(this[_0x25a2aa(0x20a)]=_0xde3ba7[_0x25a2aa(0x21f)]),_0xde3ba7[_0x25a2aa(0x1c5)]!==void 0x0&&(this[_0x25a2aa(0x1e9)]=_0xde3ba7['subUnitId']),this[_0x25a2aa(0x1d8)]({'width':_0xde3ba7[_0x25a2aa(0x326)],'height':_0xde3ba7[_0x25a2aa(0x1ba)]});}[_0x244912(0x16b)](_0x2c5505){const _0xed7c5=_0x244912;_0x2e680e[_0xed7c5(0x31e)](_0x2c5505,{'radius':_0x59f579[_0xed7c5(0x3c5)],'fill':_0x59f579[_0xed7c5(0x215)],'stroke':_0x59f579['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x545f47,_0x5ac016){return function(_0x5895dc,_0x33a3ef){_0x5ac016(_0x5895dc,_0x33a3ef,_0x545f47);};}function Y(_0x3438c3,_0x15d8d8,_0x3cac19,_0x2f4959){const _0x1cd034=_0x244912;var _0x4e3185=arguments[_0x1cd034(0x1ae)],_0x1f5412=_0x4e3185<0x3?_0x15d8d8:_0x2f4959===null?_0x2f4959=Object[_0x1cd034(0x33b)](_0x15d8d8,_0x3cac19):_0x2f4959,_0x37818a;if(typeof Reflect==_0x1cd034(0x3d9)&&typeof Reflect[_0x1cd034(0x3cc)]=='function')_0x1f5412=Reflect[_0x1cd034(0x3cc)](_0x3438c3,_0x15d8d8,_0x3cac19,_0x2f4959);else{for(var _0x218e96=_0x3438c3[_0x1cd034(0x1ae)]-0x1;_0x218e96>=0x0;_0x218e96--)(_0x37818a=_0x3438c3[_0x218e96])&&(_0x1f5412=(_0x4e3185<0x3?_0x37818a(_0x1f5412):_0x4e3185>0x3?_0x37818a(_0x15d8d8,_0x3cac19,_0x1f5412):_0x37818a(_0x15d8d8,_0x3cac19))||_0x1f5412);}return _0x4e3185>0x3&&_0x1f5412&&Object[_0x1cd034(0x30c)](_0x15d8d8,_0x3cac19,_0x1f5412),_0x1f5412;}let X=class extends _0x2c7179{constructor(_0x8ffbbd,_0x7b3275,_0x2d1e2f,_0xc3d79,_0x2b73ed,_0x284c84){const _0x50ef8d=_0x244912;super(),this[_0x50ef8d(0x239)]=_0x8ffbbd,this[_0x50ef8d(0x288)]=_0x7b3275,this[_0x50ef8d(0x3b8)]=_0x2d1e2f,this[_0x50ef8d(0x2a2)]=_0xc3d79,this[_0x50ef8d(0x177)]=_0x2b73ed,this[_0x50ef8d(0x296)]=_0x284c84,q(this,_0x50ef8d(0x1b6),new Map()),this[_0x50ef8d(0x14a)](this['_shapeFormulaService'][_0x50ef8d(0x3ab)][_0x50ef8d(0x305)](_0x44ff00=>{const _0x48d0e1=_0x50ef8d;var _0x1b3a07;(_0x1b3a07=this['_formulaShapes'][_0x48d0e1(0x1e0)](this[_0x48d0e1(0x168)](_0x44ff00['unitId'],_0x44ff00[_0x48d0e1(0x1c5)],_0x44ff00[_0x48d0e1(0x19c)])))==null||_0x1b3a07[_0x48d0e1(0x2b3)](_0x4005ec=>_0x4005ec[_0x48d0e1(0x228)](_0x44ff00[_0x48d0e1(0x39d)],_0x44ff00[_0x48d0e1(0x35a)]));})),this[_0x50ef8d(0x14a)](this[_0x50ef8d(0x239)][_0x50ef8d(0x16d)][_0x50ef8d(0x305)](_0x2ad799=>{const _0x569004=_0x50ef8d;_0x2ad799[_0x569004(0x2b3)](_0x14a229=>{const _0x2dcced=_0x569004;this[_0x2dcced(0x296)][_0x2dcced(0x243)]({'unitId':_0x14a229[_0x2dcced(0x21f)],'subUnitId':_0x14a229[_0x2dcced(0x1c5)],'shapeId':_0x14a229['drawingId']}),this[_0x2dcced(0x1b6)]['delete'](this[_0x2dcced(0x168)](_0x14a229[_0x2dcced(0x21f)],_0x14a229[_0x2dcced(0x1c5)],_0x14a229[_0x2dcced(0x237)]));});}));}[_0x244912(0x1da)](_0x468bc3,_0xba6425,_0x23ccc3){const _0x3d8fbd=_0x244912;let {transform:_0x573c92,drawingType:_0x2f90a2,srcRect:_0x261997,prstGeom:_0x53e6cd,groupId:_0x55f6b3,unitId:_0x4752f5,subUnitId:_0x478367,drawingId:_0x5b4834,isMultiTransform:_0x127e8a,transforms:_0x2975a5,hidden:_0x3eac5b,selectable:_0x4b1135}=_0x468bc3;if(_0x2f90a2!==_0x54d53a['DRAWING_SHAPE']||!this[_0x3d8fbd(0x239)]['getDrawingVisible']()||_0x573c92==null)return;let _0x4d8acc=this['_drawingManagerService'][_0x3d8fbd(0x3d5)](),_0x36415c=_0x127e8a&&_0x2975a5?_0x2975a5:[_0x573c92],_0x1c3872=[];for(let _0x445200 of _0x36415c){let {left:_0xd1166c,top:_0x5d056d,width:_0x1992ca,height:_0x2a5b94,angle:_0x137560,flipX:_0x51b435,flipY:_0x2e1b73,skewX:_0x4a5010,skewY:_0x4bdddb}=_0x445200,_0x4a1ac2=_0x36415c['indexOf'](_0x445200),_0x1a83b0=_0x5cc8a7({'unitId':_0x4752f5,'subUnitId':_0x478367,'drawingId':_0x5b4834},_0x127e8a?_0x4a1ac2:void 0x0),_0x1bd0e0=_0xba6425[_0x3d8fbd(0x251)](_0x1a83b0);if(_0x1bd0e0!=null){let _0x56d134={'unitId':_0x4752f5,'subUnitId':_0x478367,'shapeId':_0x5b4834};_0x1bd0e0 instanceof Er&&this[_0x3d8fbd(0x1bb)](_0x1bd0e0,_0x56d134),_0x1bd0e0[_0x3d8fbd(0x1d8)]({'left':_0xd1166c,'top':_0x5d056d,'width':_0x1992ca,'height':_0x2a5b94,'angle':_0x137560,'flipX':_0x51b435,'flipY':_0x2e1b73,'skewX':_0x4a5010,'skewY':_0x4bdddb});continue;}let _0x1ffb06=this[_0x3d8fbd(0x239)][_0x3d8fbd(0x2d2)](_0x4752f5,_0x478367),_0x2ca096=_0x1ffb06['indexOf'](_0x5b4834);if(_0xba6425['getObjectIncludeInGroup'](_0x1a83b0)||!this['_drawingManagerService'][_0x3d8fbd(0x312)]())continue;let _0x864e4c=this[_0x3d8fbd(0x288)]['getShapeModel'](_0x4752f5,_0x478367,_0x5b4834);if(!_0x864e4c)continue;let _0x4da4de=_0x3c2fe3(_0x864e4c[_0x3d8fbd(0x382)]())?{..._0x31a8fe,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x31a8fe,_0x346944=_0x864e4c[_0x3d8fbd(0x2b7)]()[_0x3d8fbd(0x141)],_0x2bb6b6={'unitId':_0x4752f5,'subUnitId':_0x478367,'shapeId':_0x5b4834};_0x346944&&this[_0x3d8fbd(0x296)][_0x3d8fbd(0x2a8)](_0x2bb6b6,_0x346944);let _0x3dcbc5=new Er(_0x1a83b0,{..._0x445200,'zIndex':_0x2ca096===-0x1?_0x1ffb06[_0x3d8fbd(0x1ae)]-0x1:_0x2ca096,'shapeModel':_0x864e4c,'localeService':this[_0x3d8fbd(0x3b8)],'shapeId':_0x5b4834,'unitId':_0x4752f5,'subUnitId':_0x478367,'visible':_0x3eac5b!==!0x0,'evented':_0x4b1135!==!0x1,'formulaPresentation':_0x346944?this['_shapeFormulaService']['getPresentation'](_0x2bb6b6):void 0x0,'animateFormulaPresentation':(_0x346944==null?void 0x0:_0x346944[_0x3d8fbd(0x35a)])!==!0x1,'transformerConfig':_0x4da4de});if(_0x346944){let _0x7553d2=this[_0x3d8fbd(0x168)](_0x4752f5,_0x478367,_0x5b4834),_0x53b1ce=this['_formulaShapes'][_0x3d8fbd(0x1e0)](_0x7553d2)??new Set();_0x53b1ce['add'](_0x3dcbc5),this[_0x3d8fbd(0x1b6)][_0x3d8fbd(0x207)](_0x7553d2,_0x53b1ce);}_0xba6425['addObject'](_0x3dcbc5,_0x352374),_0x4d8acc&&_0xba6425[_0x3d8fbd(0x191)](_0x3dcbc5),_0x55f6b3&&_0x1e07bb({'drawingId':_0x55f6b3,'unitId':_0x4752f5,'subUnitId':_0x478367},_0x3dcbc5,_0xba6425,this[_0x3d8fbd(0x239)]),_0x53e6cd!=null&&_0x3dcbc5[_0x3d8fbd(0x37b)](_0x53e6cd),_0x261997!=null&&_0x3dcbc5['setSrcRect'](_0x261997);let _0x4b570c=this[_0x3d8fbd(0x169)](_0x3dcbc5,_0x864e4c[_0x3d8fbd(0x2b7)]());if(_0x4b570c){var _0x3b441f;_0x23ccc3==null||(_0x3b441f=_0x23ccc3['resourceCollector'])==null||_0x3b441f[_0x3d8fbd(0x1a3)](_0x4b570c);}_0x1c3872[_0x3d8fbd(0x399)](_0x3dcbc5);}return _0x1c3872;}[_0x244912(0x168)](_0x86d034,_0x36b0ca,_0x5f1159){return _0x86d034+'\x00'+_0x36b0ca+'\x00'+_0x5f1159;}[_0x244912(0x1bb)](_0x51671c,_0x195067){const _0x25c5a6=_0x244912;let _0x9bddd9=this['_sheetsShapeService'][_0x25c5a6(0x35b)](_0x195067[_0x25c5a6(0x21f)],_0x195067['subUnitId'],_0x195067[_0x25c5a6(0x19c)]),_0x5c68e4=_0x9bddd9==null?void 0x0:_0x9bddd9[_0x25c5a6(0x2b7)]()[_0x25c5a6(0x141)],_0xc2308b=this[_0x25c5a6(0x168)](_0x195067[_0x25c5a6(0x21f)],_0x195067[_0x25c5a6(0x1c5)],_0x195067[_0x25c5a6(0x19c)]);if(_0x5c68e4){this[_0x25c5a6(0x296)][_0x25c5a6(0x2a8)](_0x195067,_0x5c68e4);let _0x414719=this['_formulaShapes'][_0x25c5a6(0x1e0)](_0xc2308b)??new Set();_0x414719[_0x25c5a6(0x1a3)](_0x51671c),this[_0x25c5a6(0x1b6)][_0x25c5a6(0x207)](_0xc2308b,_0x414719);}else{var _0x205a6c;this[_0x25c5a6(0x296)]['unregister'](_0x195067),(_0x205a6c=this[_0x25c5a6(0x1b6)]['get'](_0xc2308b))==null||_0x205a6c[_0x25c5a6(0x19b)](_0x51671c);}_0x51671c[_0x25c5a6(0x228)](_0x5c68e4?this[_0x25c5a6(0x296)]['getPresentation'](_0x195067):void 0x0,(_0x5c68e4==null?void 0x0:_0x5c68e4['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x4275e3){const _0x392b24=_0x244912;let _0x1e131d=_0x4275e3[_0x392b24(0x395)]['getShapeData'](),_0x2a7fd7=_0x1e131d[_0x392b24(0x38f)];if(!_0x2a7fd7||_0x2a7fd7[_0x392b24(0x371)]!==_0x31dedb[_0x392b24(0x187)]||!_0x2a7fd7['fillImageSource']){_0x4275e3[_0x392b24(0x37e)](void 0x0);return;}this[_0x392b24(0x169)](_0x4275e3,_0x1e131d);}[_0x244912(0x169)](_0x3666e2,_0x1341f2){const _0x2b564c=_0x244912;let _0x1b2cda=_0x1341f2[_0x2b564c(0x38f)];if(!_0x1b2cda||_0x1b2cda[_0x2b564c(0x371)]!==_0x31dedb[_0x2b564c(0x187)]||!_0x1b2cda['fillImageSource'])return;let _0x27c7a3=_0x1b2cda[_0x2b564c(0x2e5)],_0x4b8e60=_0x1b2cda[_0x2b564c(0x347)]??_0x4ef65b[_0x2b564c(0x314)],_0x215a3a=this['_imageIoService'][_0x2b564c(0x3a2)](_0x27c7a3,_0x4b8e60);if(_0x215a3a){_0x3666e2[_0x2b564c(0x37e)](_0x215a3a);return;}return this['_loadAndSetImage'](_0x3666e2,_0x27c7a3,_0x4b8e60);}async['_loadAndSetImage'](_0x4b562e,_0x3bc792,_0x2381e7){const _0xa6d1e5=_0x244912;let _0x95c19f;try{if(_0x2381e7===_0x4ef65b['UUID'])_0x95c19f=await this['_imageIoService'][_0xa6d1e5(0x3bd)](_0x3bc792);else{if(_0x2381e7===_0x4ef65b[_0xa6d1e5(0x314)])try{_0x95c19f=await this[_0xa6d1e5(0x177)][_0xa6d1e5(0x3bd)](_0x3bc792);}catch{_0x95c19f=_0x3bc792;}else _0x95c19f=_0x3bc792;}}catch(_0x25b3ba){console['error'](_0xa6d1e5(0x17e),_0x25b3ba);return;}await new Promise(_0x1aee48=>{const _0x42a68f=_0xa6d1e5;let _0x48b8c2=new window[(_0x42a68f(0x374))]();_0x48b8c2['onload']=()=>{const _0x3ebcc3=_0x42a68f;this[_0x3ebcc3(0x2a2)][_0x3ebcc3(0x2c3)](_0x3bc792,_0x2381e7,_0x48b8c2),_0x4b562e[_0x3ebcc3(0x37e)](_0x48b8c2),_0x1aee48();},_0x48b8c2[_0x42a68f(0x3eb)]=()=>{const _0xd4f5fa=_0x42a68f;console[_0xd4f5fa(0x3c8)](_0xd4f5fa(0x155),_0x3bc792),_0x1aee48();},_0x48b8c2[_0x42a68f(0x32c)]=_0x95c19f;});}};X=Y([J(0x0,_0x1f50fa),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x318433(_0x3f1353)),J(0x3,_0x52e3a0),J(0x4,_0x55093c),J(0x5,_0x318433(_0x3d58ed))],X);let Z=class extends _0x2c7179{constructor(_0x4da913,_0x3ce703,_0x22f6b9,_0x43833c,_0x19d509,_0x56337){const _0x330ffd=_0x244912;super(),this['_drawingManagerService']=_0x4da913,this[_0x330ffd(0x288)]=_0x3ce703,this[_0x330ffd(0x2f0)]=_0x22f6b9,this['_sheetDrawingShapeRenderController']=_0x43833c,this['_univerInstanceService']=_0x19d509,this[_0x330ffd(0x2d0)]=_0x56337,q(this,_0x330ffd(0x195),null),q(this,_0x330ffd(0x20a),null),q(this,_0x330ffd(0x1e9),null),q(this,_0x330ffd(0x2e8),void 0x0),q(this,'_shapes',[]),q(this,'_baseShapeLeft',0x0),q(this,_0x330ffd(0x3b6),0x0),q(this,_0x330ffd(0x334),0x0),q(this,_0x330ffd(0x223),0x0),q(this,_0x330ffd(0x332),!0x1),q(this,_0x330ffd(0x273),void 0x0),q(this,_0x330ffd(0x376),void 0x0),q(this,_0x330ffd(0x297),void 0x0),q(this,_0x330ffd(0x38d),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x330ffd(0x1a5)](),this[_0x330ffd(0x3e6)]();}[_0x244912(0x233)](_0x3f60d7,_0xea94e1,_0x28b775){const _0x25b901=_0x244912;let _0x5fa7ec=this['_sheetsShapeService'][_0x25b901(0x35b)](_0x3f60d7,_0xea94e1,_0x28b775);if(_0x5fa7ec)return _0x5fa7ec[_0x25b901(0x3ad)]();}[_0x244912(0x309)](){const _0x2acd39=_0x244912;this[_0x2acd39(0x269)]();}[_0x244912(0x289)](){const _0x8b3c16=_0x244912;this[_0x8b3c16(0x3e5)](!0x0);}[_0x244912(0x3ca)](_0x2344f3){const _0x40d584=_0x244912;this[_0x40d584(0x1c2)]=_0x2344f3;}['_getShapeAdjustInfosById'](_0x32c798,_0xf63c38,_0x311d66,_0x415cfc){const _0x31e3db=_0x244912;let _0x3aee8e=this[_0x31e3db(0x288)]['getShapeModel'](_0x32c798,_0xf63c38,_0x311d66);if(_0x3aee8e)return _0x3aee8e[_0x31e3db(0x21d)](_0x415cfc);}['_createShapeAdjustControls'](_0xe48bac=!0x1){const _0x240a6c=_0x244912;if(this[_0x240a6c(0x20a)]===null||this[_0x240a6c(0x1e9)]===null||this['_activeShapeId']===null)return;let _0x534f35=this[_0x240a6c(0x2f0)][_0x240a6c(0x276)](this[_0x240a6c(0x20a)]);if(!_0x534f35||!_0x534f35['with'](_0x307dc0)[_0x240a6c(0x220)]())return;let {scene:_0xd7beee}=_0x534f35,_0x1c5348={'unitId':this[_0x240a6c(0x20a)],'subUnitId':this[_0x240a6c(0x1e9)],'drawingId':this[_0x240a6c(0x195)]},_0x2089f2=this[_0x240a6c(0x239)][_0x240a6c(0x3a5)](_0x1c5348),{transform:_0xd1b8e1}=_0x2089f2;if(!_0xd1b8e1||_0x2089f2[_0x240a6c(0x185)]!==_0x54d53a[_0x240a6c(0x1b1)])return;let {left:_0x40ec58,top:_0x585c76,width:_0x5c06fa,height:_0x2c3ea6,flipX:_0x49b605,flipY:_0x228d6a,angle:_0x2216a5=0x0}=_0xd1b8e1;if(_0x40ec58===void 0x0||_0x585c76===void 0x0)return;if(_0xe48bac){let _0x3c414e=this['_sheetsShapeService'][_0x240a6c(0x35b)](this[_0x240a6c(0x20a)],this[_0x240a6c(0x1e9)],this[_0x240a6c(0x195)]);_0x3c414e==null||_0x3c414e['updateContext']({'width':_0x5c06fa??0x0,'height':_0x2c3ea6??0x0}),this[_0x240a6c(0x2e8)]=_0x3c414e==null?void 0x0:_0x3c414e[_0x240a6c(0x3ad)]();}let _0x21006b=this[_0x240a6c(0x2e8)];for(let _0x171fd2=0x0;_0x171fd2<_0x21006b[_0x240a6c(0x1ae)];_0x171fd2++){let _0x4b475f=_0x21006b[_0x171fd2],_0x20559b=_0x4b475f['x'],_0x53008b=_0x4b475f['y'];if(_0x49b605&&(_0x20559b=(_0x5c06fa||0x0)-_0x20559b),_0x228d6a&&(_0x53008b=(_0x2c3ea6||0x0)-_0x53008b),_0x2216a5!==0x0){let _0x78cdad=(_0x5c06fa||0x0)/0x2,_0x238da0=(_0x2c3ea6||0x0)/0x2,_0x2ad710=_0x2216a5*Math['PI']/0xb4,_0x32fa0a=Math['cos'](_0x2ad710),_0x29a50f=Math[_0x240a6c(0x2e1)](_0x2ad710),_0x444d88=_0x20559b-_0x78cdad,_0x5bedce=_0x53008b-_0x238da0;_0x20559b=_0x78cdad+(_0x444d88*_0x32fa0a-_0x5bedce*_0x29a50f),_0x53008b=_0x238da0+(_0x444d88*_0x29a50f+_0x5bedce*_0x32fa0a);}let _0x29c9ca={'x':_0x20559b,'y':_0x53008b,'adjName':_0x4b475f[_0x240a6c(0x339)]};this['_addShapeAdjustControl'](_0xd7beee,_0x29c9ca,_0x29c9ca[_0x240a6c(0x339)],_0x40ec58,_0x585c76,this['_unitId'],this[_0x240a6c(0x1e9)]);}}[_0x244912(0x3e5)](_0x1e18e4=!0x1){const _0x9dbedd=_0x244912;_0x1e18e4&&(this['_clearShapeAdjustControls'](),this[_0x9dbedd(0x36a)](_0x1e18e4));}['_addShapeAdjustControl'](_0xfd1c36,_0x19432a,_0x3cc982,_0x2ad3fd,_0x39bd7f,_0x1fddaf,_0x10b610){const _0x4c9e38=_0x244912;if(!this[_0x4c9e38(0x195)])return;let _0x505038=_0xfd1c36[_0x4c9e38(0x251)](_0x4c9e38(0x263)+this[_0x4c9e38(0x195)]+'-'+_0x3cc982);if(_0x505038){_0x505038[_0x4c9e38(0x1d8)]({'left':_0x19432a['x']+_0x2ad3fd-_0x59f579[_0x4c9e38(0x3c5)],'top':_0x19432a['y']+_0x39bd7f-_0x59f579[_0x4c9e38(0x3c5)]});return;}let _0x426eb4={'left':_0x19432a['x']+_0x2ad3fd-_0x59f579[_0x4c9e38(0x3c5)],'top':_0x19432a['y']+_0x39bd7f-_0x59f579['adjHandleSize'],'adjName':_0x3cc982,'shapeId':this['_activeShapeId'],'unitId':_0x1fddaf,'subUnitId':_0x10b610,'width':_0x59f579[_0x4c9e38(0x3c5)]+0x8,'height':_0x59f579[_0x4c9e38(0x3c5)]+0x8,'zIndex':_0x352374+0x1,'evented':!0x0},_0x290501=new Dr(_0x4c9e38(0x263)+this[_0x4c9e38(0x195)]+'-'+_0x3cc982,_0x426eb4);this['_shapes']['push'](_0x290501),this[_0x4c9e38(0x32d)](_0x290501,_0xfd1c36,_0x3cc982),_0xfd1c36['addObject'](_0x290501,_0x352374+0x1);}[_0x244912(0x269)](){const _0x4887fe=_0x244912;this[_0x4887fe(0x308)][_0x4887fe(0x1ae)]!==0x0&&(this[_0x4887fe(0x308)][_0x4887fe(0x2b3)](_0x17f788=>{_0x17f788['dispose']();}),this[_0x4887fe(0x308)]=[]);}[_0x244912(0x259)](){this['_createShapeAdjustControls']();}[_0x244912(0x18d)](_0x17db28,_0x1e84a5){const _0x30a35c=_0x244912;var _0x206b68;let _0x43685c={'x':0x0,'y':0x0};if(!_0x17db28||!_0x1e84a5)return _0x43685c;let _0x46c198=this[_0x30a35c(0x2f0)]['getRenderUnitById'](_0x17db28);if(!_0x46c198||!_0x46c198[_0x30a35c(0x27b)](_0x307dc0)[_0x30a35c(0x163)](_0x1e84a5))return _0x43685c;let _0x50eccd=_0x46c198[_0x30a35c(0x27b)](_0x20a826),_0x47de93=_0x50eccd==null?void 0x0:_0x50eccd['getCurrentScrollState']();if(!_0x47de93)return _0x43685c;let _0x28491c=(_0x206b68=this[_0x30a35c(0x321)][_0x30a35c(0x287)](_0x17db28))==null?void 0x0:_0x206b68[_0x30a35c(0x184)](_0x1e84a5);if(!_0x28491c)return _0x43685c;let _0x5062bd=_0x2ead9(_0x47de93['sheetViewStartRow'],_0x47de93[_0x30a35c(0x298)],_0x46c198[_0x30a35c(0x229)],_0x28491c);return _0x5062bd?{'x':_0x5062bd[_0x30a35c(0x1fd)],'y':_0x5062bd[_0x30a35c(0x351)]}:_0x43685c;}[_0x244912(0x331)](_0x364558,_0x12309b){const _0x5419e6=_0x244912;var _0x322a9c;let _0x5e8827=(_0x322a9c=this['_univerInstanceService']['getUnit'](_0x364558))==null?void 0x0:_0x322a9c[_0x5419e6(0x184)](_0x12309b);return(_0x5e8827==null?void 0x0:_0x5e8827[_0x5419e6(0x3e2)]())??0x1;}['_attachAdjustEvent'](_0x3a5fe6,_0x2b405a,_0x197773){const _0x2a08ff=_0x244912;this[_0x2a08ff(0x14a)](_0x21ce23(_0x3a5fe6['onPointerDown$'][_0x2a08ff(0x318)]((_0x4a8cdb,_0x3a37d9)=>{const _0x1b7bad=_0x2a08ff;var _0x146430,_0x20f4d8,_0x32f43e,_0x1fa901;let _0x50ae58=_0x3a5fe6[_0x1b7bad(0x24f)]();this[_0x1b7bad(0x273)]=this['_getShapeAdjustInfosById'](_0x50ae58[_0x1b7bad(0x21f)],_0x50ae58[_0x1b7bad(0x1c5)],_0x50ae58['drawingId'],_0x197773),this[_0x1b7bad(0x376)]=this[_0x1b7bad(0x288)][_0x1b7bad(0x35b)](_0x50ae58['unitId'],_0x50ae58[_0x1b7bad(0x1c5)],_0x50ae58[_0x1b7bad(0x237)]);let _0x5095a7=this['_drawingManagerService'][_0x1b7bad(0x3a5)]({'unitId':this[_0x1b7bad(0x20a)],'subUnitId':this[_0x1b7bad(0x1e9)],'drawingId':this['_activeShapeId']}),{transform:_0x580844}=_0x5095a7;if(_0x580844){let {left:_0x44fedd,top:_0x55d482,width:_0x2d2367,height:_0x48053e}=_0x580844;this[_0x1b7bad(0x32a)]=_0x44fedd||0x0,this['_baseShapeTop']=_0x55d482||0x0,this[_0x1b7bad(0x334)]=_0x2d2367||0x0,this['_baseShapeHeight']=_0x48053e||0x0;}let _0x3860eb=!!((_0x146430=_0x5095a7[_0x1b7bad(0x1b7)])!=null&&_0x146430['flipX']),_0x5c7fd7=!!((_0x20f4d8=_0x5095a7[_0x1b7bad(0x1b7)])!=null&&_0x20f4d8[_0x1b7bad(0x3b2)]),_0x5a7cdf=((_0x32f43e=_0x5095a7[_0x1b7bad(0x1b7)])==null?void 0x0:_0x32f43e[_0x1b7bad(0x388)])||0x0;this[_0x1b7bad(0x332)]=!0x0,_0x2b405a[_0x1b7bad(0x329)]();let _0x15bb80={...((_0x1fa901=this[_0x1b7bad(0x273)])==null?void 0x0:_0x1fa901[_0x1b7bad(0x181)])??{}};this[_0x1b7bad(0x297)]=_0x2b405a[_0x1b7bad(0x1c6)][_0x1b7bad(0x318)]((_0x2f2726,_0x5160bd)=>{const _0x32a05b=_0x1b7bad;if(!this[_0x32a05b(0x332)])return;let {offsetX:_0x87e3f9,offsetY:_0x546aa0}=_0x2f2726,_0x4d5965=this[_0x32a05b(0x273)];if(this[_0x32a05b(0x376)]&&_0x4d5965){_0x2b405a[_0x32a05b(0x329)](),_0x2b405a[_0x32a05b(0x34d)](_0x48d0e8[_0x32a05b(0x1f1)]);let _0x189b90={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x32a05b(0x223)]},_0x367b89=this['_getScrollInfo'](this['_unitId'],this[_0x32a05b(0x1e9)]),_0x2a6f60=this[_0x32a05b(0x331)](this[_0x32a05b(0x20a)],this['_subUnitId']),_0x51a595=_0x87e3f9/_0x2a6f60+_0x367b89['x']-this[_0x32a05b(0x32a)],_0x142f4b=_0x546aa0/_0x2a6f60+_0x367b89['y']-this[_0x32a05b(0x3b6)];if(_0x5a7cdf!==0x0){let _0x11031a=this[_0x32a05b(0x334)]/0x2,_0x3e484b=this[_0x32a05b(0x223)]/0x2,_0x1f9ece=_0x5a7cdf*Math['PI']/0xb4,_0x55417d=Math[_0x32a05b(0x1ee)](_0x1f9ece),_0x125559=Math[_0x32a05b(0x2e1)](_0x1f9ece),_0x250b18=_0x51a595-_0x11031a,_0x43f1c6=_0x142f4b-_0x3e484b;_0x51a595=_0x11031a+(_0x250b18*_0x55417d+_0x43f1c6*_0x125559),_0x142f4b=_0x3e484b+(-_0x250b18*_0x125559+_0x43f1c6*_0x55417d);}_0x3860eb&&(_0x51a595=this[_0x32a05b(0x334)]-_0x51a595),_0x5c7fd7&&(_0x142f4b=this[_0x32a05b(0x223)]-_0x142f4b);let _0x58f255={'x':_0x51a595,'y':_0x142f4b},_0x24dbcf=this[_0x32a05b(0x376)][_0x32a05b(0x3a4)](_0x189b90,_0x58f255,_0x4d5965,_0x3860eb,_0x5c7fd7);if(Object['keys'](_0x24dbcf)[_0x32a05b(0x1ae)]===0x0)return;for(let [_0x5c552,_0x47f983]of Object['entries'](_0x24dbcf))this[_0x32a05b(0x376)]['setAdjustValueByName'](_0x5c552,_0x47f983);this[_0x32a05b(0x376)][_0x32a05b(0x340)]({'width':this[_0x32a05b(0x334)],'height':this[_0x32a05b(0x223)]});let _0x311eb2=this[_0x32a05b(0x239)][_0x32a05b(0x3a5)]({'unitId':_0x50ae58['unitId'],'subUnitId':_0x50ae58['subUnitId'],'drawingId':_0x50ae58[_0x32a05b(0x237)]});_0x311eb2&&(this['_sheetDrawingShapeRenderController'][_0x32a05b(0x1da)](_0x311eb2,_0x2b405a),this['_activeShapeAdjustPointList']=this[_0x32a05b(0x233)](_0x50ae58[_0x32a05b(0x21f)],_0x50ae58[_0x32a05b(0x1c5)],_0x50ae58[_0x32a05b(0x237)]),this['_updateAdjustControlPositions']());}_0x5160bd[_0x32a05b(0x34a)]();}),this[_0x1b7bad(0x38d)]=_0x2b405a[_0x1b7bad(0x36d)][_0x1b7bad(0x318)]((_0x24ce86,_0x264baa)=>{const _0x3782b3=_0x1b7bad;this[_0x3782b3(0x297)][_0x3782b3(0x3fc)](),this[_0x3782b3(0x38d)][_0x3782b3(0x3fc)](),_0x2b405a[_0x3782b3(0x3ee)]();let _0x3069d0=this[_0x3782b3(0x273)];if(_0x3069d0){let _0x37eb2d=_0x50ae58[_0x3782b3(0x21f)],_0x30461e=_0x50ae58[_0x3782b3(0x1c5)],_0x533018=_0x50ae58[_0x3782b3(0x237)],_0x425727={};for(let _0x56b784 of Object[_0x3782b3(0x3da)](_0x3069d0['currentAdjustValues'])){var _0x516a9c;let _0x3f1601=(_0x516a9c=this[_0x3782b3(0x376)])==null?void 0x0:_0x516a9c['getAdjustValueByName'](_0x56b784);_0x3f1601!==void 0x0&&(_0x425727[_0x56b784]=_0x3f1601);}Object[_0x3782b3(0x3da)](_0x425727)[_0x3782b3(0x1ae)]>0x0&&br(this[_0x3782b3(0x2d0)],_0x37eb2d,_0x30461e,_0x533018,{'oldShapeData':{'adjustValues':_0x15bb80}},{'adjustValues':_0x425727});}this[_0x3782b3(0x273)]=void 0x0,this[_0x3782b3(0x376)]=void 0x0,this[_0x3782b3(0x332)]=!0x1,_0x264baa['stopPropagation'](),_0x2b405a[_0x3782b3(0x33c)]();}),_0x3a37d9[_0x1b7bad(0x34a)]();})));}[_0x244912(0x3e6)](){const _0x187959=_0x244912;let _0x990274=this['_univerInstanceService'][_0x187959(0x25d)](_0x37e7a9['UNIVER_SHEET']);this['disposeWithMe'](_0x990274[_0x187959(0x18a)](_0x4ab26c(_0x50c74f=>_0x50c74f?_0x50c74f['activeSheet$'][_0x187959(0x18a)](_0x4ab26c(_0x44ef32=>{const _0x3caf42=_0x187959;if(!_0x44ef32)return _0x351d29;let _0xd131b4=_0x50c74f['getUnitId'](),_0xdc3f00=this['_renderManagerService']['getRenderUnitById'](_0xd131b4),_0x4751c5=_0xdc3f00==null?void 0x0:_0xdc3f00[_0x3caf42(0x229)];return _0x4751c5?_0x1e0e82(_0x4751c5):_0x351d29;})):_0x351d29))[_0x187959(0x305)](_0x5c7ea8=>{const _0x5951fe=_0x187959;let _0x28fc15=_0x5c7ea8[_0x5951fe(0x3ed)]();this['disposeWithMe'](_0x5c7ea8['onPointerMove$'][_0x5951fe(0x318)](()=>{const _0x3ee0cd=_0x5951fe;this[_0x3ee0cd(0x1c2)];})),this[_0x5951fe(0x14a)](_0x28fc15[_0x5951fe(0x24c)][_0x5951fe(0x305)](_0xf0ed26=>{const _0x2fe531=_0x5951fe;let {objects:_0x3c82cb}=_0xf0ed26;this[_0x2fe531(0x36a)](),_0x3c82cb!==null&&_0x3c82cb[_0x2fe531(0x17a)]===0x1&&_0x3c82cb['values']()[_0x2fe531(0x3ac)]()[_0x2fe531(0x3de)]instanceof Er&&this[_0x2fe531(0x3ca)](!0x0);})),this[_0x5951fe(0x14a)](_0x28fc15[_0x5951fe(0x226)][_0x5951fe(0x305)](()=>{const _0x1819a9=_0x5951fe;this[_0x1819a9(0x1c2)]&&this[_0x1819a9(0x269)]();})),this[_0x5951fe(0x14a)](_0x5c7ea8[_0x5951fe(0x36d)][_0x5951fe(0x318)](()=>{const _0x2cb102=_0x5951fe;this[_0x2cb102(0x1c2)]&&(this[_0x2cb102(0x3ca)](!0x1),this[_0x2cb102(0x36a)]());})),this[_0x5951fe(0x14a)](_0x28fc15['changeEnd$'][_0x5951fe(0x305)](()=>{const _0x1678c9=_0x5951fe;this[_0x1678c9(0x20a)]&&this[_0x1678c9(0x1e9)]&&this[_0x1678c9(0x195)]&&this[_0x1678c9(0x239)][_0x1678c9(0x3a5)]({'unitId':this[_0x1678c9(0x20a)],'subUnitId':this[_0x1678c9(0x1e9)],'drawingId':this[_0x1678c9(0x195)]})&&(this[_0x1678c9(0x2e8)]=this['_getShapeAdjustPointListById'](this['_unitId'],this[_0x1678c9(0x1e9)],this[_0x1678c9(0x195)]),this[_0x1678c9(0x259)]());}));}));}[_0x244912(0x1a5)](){const _0x7b4652=_0x244912;this['disposeWithMe'](this['_commandService'][_0x7b4652(0x356)](_0x3ed4a4=>{const _0x4a610c=_0x7b4652;if(_0x3ed4a4['id']!==_0x4fa39c['id'])return;let {unitId:_0x305e1c,subUnitId:_0x5b3fa3,shapeId:_0x420d9c}=_0x3ed4a4[_0x4a610c(0x348)];_0x305e1c===this[_0x4a610c(0x20a)]&&_0x5b3fa3===this[_0x4a610c(0x1e9)]&&_0x420d9c===this[_0x4a610c(0x195)]&&this['refreshAdjustControls']();})),this[_0x7b4652(0x14a)](this[_0x7b4652(0x239)]['focus$']['subscribe'](_0x3d4ec8=>{const _0x1caca9=_0x7b4652;if(_0x3d4ec8[_0x1caca9(0x1ae)]===0x1){let _0x46ca82=_0x3d4ec8[0x0];if(_0x46ca82['drawingType']===_0x54d53a['DRAWING_SHAPE']&&this[_0x1caca9(0x321)]['getUnitType'](_0x46ca82['unitId'])===_0x37e7a9['UNIVER_SHEET']){this[_0x1caca9(0x195)]=_0x46ca82[_0x1caca9(0x237)];let {unitId:_0x1d7463,subUnitId:_0x420c85}=_0x46ca82;this['_activeShapeAdjustPointList']=this[_0x1caca9(0x233)](_0x1d7463,_0x420c85,this[_0x1caca9(0x195)]),this['_unitId']=_0x1d7463,this[_0x1caca9(0x1e9)]=_0x420c85,this[_0x1caca9(0x269)](),this[_0x1caca9(0x36a)]();return;}}this[_0x1caca9(0x195)]=null,this[_0x1caca9(0x2e8)]=void 0x0,this[_0x1caca9(0x20a)]=null,this['_subUnitId']=null,this[_0x1caca9(0x269)]();})),this['disposeWithMe'](this[_0x7b4652(0x239)][_0x7b4652(0x1cd)]['subscribe'](_0x540a67=>{const _0x4aa0b9=_0x7b4652;if(_0x540a67[_0x4aa0b9(0x1ae)]===0x1){var _0x201526;let _0xc52e8f=_0x540a67[0x0];((_0x201526=this[_0x4aa0b9(0x239)]['getDrawingByParam'](_0xc52e8f))==null?void 0x0:_0x201526[_0x4aa0b9(0x185)])===_0x54d53a[_0x4aa0b9(0x1b1)]&&this[_0x4aa0b9(0x3e5)](!0x0);}})),this['disposeWithMe'](this[_0x7b4652(0x239)][_0x7b4652(0x16d)][_0x7b4652(0x305)](_0x4e0265=>{const _0x3b132a=_0x7b4652;for(let _0x50d6d2 of _0x4e0265)this[_0x3b132a(0x195)]===_0x50d6d2[_0x3b132a(0x237)]&&(this['_activeShapeId']=null,this[_0x3b132a(0x2e8)]=void 0x0,this['_unitId']=null,this[_0x3b132a(0x1e9)]=null,this[_0x3b132a(0x269)]());}));}};Z=Y([J(0x0,_0x1f50fa),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x318433(_0xc8f10c)),J(0x3,_0x318433(X)),J(0x4,_0x595744),J(0x5,_0x4aa13b)],Z);const Or={'id':_0x244912(0x247),'type':_0x1644dd['OPERATION'],'handler':(_0x1e0e52,_0x20556c)=>{const _0x231e25=_0x244912;let _0x3082b4=_0x1e0e52[_0x231e25(0x1e0)](_0x1f50fa),_0x450419=_0x1e0e52[_0x231e25(0x1e0)](_0xc8f10c),_0x495441=_0x1e0e52[_0x231e25(0x1e0)](Z);if(_0x20556c==null)return!0x0;if(_0x20556c[_0x231e25(0x1ae)]>0x0){var _0x52b9c4;let _0x3811d5=(_0x52b9c4=_0x450419[_0x231e25(0x276)](_0x20556c[0x0][_0x231e25(0x21f)]))==null?void 0x0:_0x52b9c4[_0x231e25(0x229)];if(_0x3811d5){let {unitId:_0x49531e,subUnitId:_0xf9f016,drawingId:_0x21c103}=_0x20556c[0x0],_0x2a2f29=_0x5cc8a7({'unitId':_0x49531e,'subUnitId':_0xf9f016,'drawingId':_0x21c103},void 0x0),_0x3278b3=_0x3811d5[_0x231e25(0x251)](_0x2a2f29);if(_0x3278b3){var _0x2e2a03;(_0x2e2a03=_0x450419[_0x231e25(0x276)](_0x20556c[0x0][_0x231e25(0x21f)]))==null||(_0x2e2a03=_0x2e2a03[_0x231e25(0x229)][_0x231e25(0x255)]())==null||_0x2e2a03[_0x231e25(0x2e3)](_0x3278b3);}}_0x3082b4['focusDrawing'](_0x20556c),_0x495441[_0x231e25(0x3ca)](!0x1);}return!0x0;}},kr={'type':_0x1644dd[_0x244912(0x317)],'id':_0x244912(0x279),'handler':async(_0x51db68,_0x2e520e)=>{const _0x2d5fc1=_0x244912;let _0xa1c397=_0x4b1c62(_0x51db68['get'](_0x595744));if(!_0xa1c397)return!0x1;let _0x588b1e=_0x51db68['get'](_0x188788)['getCurrentLastSelection']();if(!_0x588b1e)return!0x1;let _0x47c1b9=_0x51db68['get'](_0x4aa13b),{unitId:_0x1f93f3,subUnitId:_0x563ce8}=_0xa1c397,{value:_0x1f63f8,enhanceParams:_0x51d3bb}=_0x2e520e,{range:_0x172f71}=_0x588b1e,_0xea9087={'unitId':_0x1f93f3,'subUnitId':_0x563ce8,'shapeType':_0x1f63f8,'range':_0x172f71,'shapeId':_0x524ea6()};if(_0x51d3bb){let _0x31451f=_0x3c2fe3(_0x1f63f8),_0x55b66e=_0x1f63f8===_0x1ecf22['Rect'];_0x31451f&&(_0x51d3bb['startArrow']||_0x51d3bb[_0x2d5fc1(0x2cb)])&&(_0xea9087[_0x2d5fc1(0x17d)]={'ln':{'startArrow':_0x51d3bb['startArrow']?{'type':_0x7556f9['Arrow'],'size':_0x29f38e['Medium']}:void 0x0,'endArrow':_0x51d3bb[_0x2d5fc1(0x2cb)]?{'type':_0x7556f9[_0x2d5fc1(0x2dc)],'size':_0x29f38e[_0x2d5fc1(0x315)]}:void 0x0}}),_0x55b66e&&(_0x51d3bb[_0x2d5fc1(0x1e8)]||_0x51d3bb[_0x2d5fc1(0x3df)])&&(_0xea9087['shapeData']=_0x52ce78({'fill':{'fillType':_0x31dedb[_0x2d5fc1(0x183)],'color':_0x2d5fc1(0x1cf)},'isHorizontal':!!_0x51d3bb[_0x2d5fc1(0x1e8)],'stroke':{'lineStrokeType':_0xdf880d[_0x2d5fc1(0x272)],'width':0x1,'color':_0x2d5fc1(0x3d0)}}));}let _0x140072=_0x47c1b9['syncExecuteCommand'](_0x13dbe5['id'],_0xea9087);return setTimeout(()=>{const _0x8ee3ca=_0x2d5fc1;_0x47c1b9[_0x8ee3ca(0x1ac)](Or['id'],[{'unitId':_0x1f93f3,'subUnitId':_0x563ce8,'drawingId':_0xea9087[_0x8ee3ca(0x19c)]}]);},0xc8),_0x140072;}},Ar=_0x244912(0x384),jr=_0x244912(0x369),Mr='sheet.shape.floating-toolbar',Nr=_0x244912(0x3ef),Pr=_0x17c599(_0x244912(0x2b2)),Fr=_0x244912(0x2c1),Ir={'id':_0x244912(0x2ed),'type':_0x1644dd[_0x244912(0x317)],'handler':(_0x27e6cc,_0x368d1f)=>{const _0xe9efa9=_0x244912;let _0x2832bc=_0x27e6cc[_0xe9efa9(0x1e0)](_0x26d1b3),_0x4f8a36=_0x27e6cc['get'](_0x3f1353),_0x52e1a3=_0x27e6cc['get'](_0x595744),_0x53f654=_0x27e6cc['get'](_0x4aa13b);return _0x4b1c62(_0x52e1a3)?(_0x368d1f==null?void 0x0:_0x368d1f[_0xe9efa9(0x3de)])==='close'?(_0x2832bc['close'](jr),!0x0):(_0x2832bc[_0xe9efa9(0x170)]({'id':jr,'header':{'title':_0x4f8a36['t'](_0xe9efa9(0x1ea))},'children':{'label':jr},'onClose':()=>{const _0x245bbc=_0xe9efa9;_0x53f654[_0x245bbc(0x27c)](_0x4c2abf['id'],[]);},'width':0x168}),!0x0):!0x1;}},Lr={'type':_0x1644dd[_0x244912(0x1bf)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function Rr(_0x5532c3){const _0x1eaeb9=_0x244912;let _0x1c74a3=_0x5532c3[_0x1eaeb9(0x1e0)](_0x1f50fa)[_0x1eaeb9(0x2a0)](),_0x2ae793=_0x1c74a3['length']===0x1?_0x1c74a3[0x0]:null;if(!_0x2ae793||_0x2ae793['drawingType']!==_0x54d53a[_0x1eaeb9(0x1b1)])return null;let _0x2ad79e=_0x5532c3[_0x1eaeb9(0x1e0)](_0x5594a6),_0x158272=_0x2ad79e['getShapeTypeById'](_0x2ae793[_0x1eaeb9(0x21f)],_0x2ae793['subUnitId'],_0x2ae793[_0x1eaeb9(0x237)]),_0x21856f=_0x2ad79e['getShapeDataById'](_0x2ae793[_0x1eaeb9(0x21f)],_0x2ae793[_0x1eaeb9(0x1c5)],_0x2ae793[_0x1eaeb9(0x237)]);return _0x158272===void 0x0||!_0x21856f?null:{'drawing':_0x2ae793,'shapeData':_0x21856f,'shapeType':_0x158272};}const zr={'id':'sheet.operation.apply-shape-quick-style','type':_0x1644dd[_0x244912(0x1bf)],'handler':(_0x4cd436,_0xff0ecc)=>{const _0x2cbda8=_0x244912;let _0x5a4235=Rr(_0x4cd436),_0x561132=_0x4ac0ae((_0xff0ecc==null?void 0x0:_0xff0ecc[_0x2cbda8(0x1aa)])??(_0xff0ecc==null?void 0x0:_0xff0ecc[_0x2cbda8(0x3de)])??'');if(!_0x5a4235||!_0x561132||_0x561132[_0x2cbda8(0x1a2)]!==_0x5e4bfe(_0x5a4235[_0x2cbda8(0x17d)]))return!0x1;let _0x3c49ab=_0xde63d9(_0x5a4235[_0x2cbda8(0x17d)],_0x561132);if(!_0x3c49ab)return!0x1;let {drawing:_0x4c30a1}=_0x5a4235;return _0x4cd436[_0x2cbda8(0x1e0)](_0x4aa13b)[_0x2cbda8(0x1ac)](K['id'],{'unitId':_0x4c30a1[_0x2cbda8(0x21f)],'subUnitId':_0x4c30a1[_0x2cbda8(0x1c5)],'shapeId':_0x4c30a1['drawingId'],'shapeData':_0x3c49ab,'oldShapeJSON':{'oldShapeData':_0x5a4235['shapeData']}});}},Br={'id':_0x244912(0x1de),'type':_0x1644dd[_0x244912(0x1bf)],'handler':(_0x1b8b7f,_0x1cd317)=>{const _0x22863f=_0x244912;let _0x29bf22=Rr(_0x1b8b7f),_0x1256b5=(_0x1cd317==null?void 0x0:_0x1cd317[_0x22863f(0x1b9)])??(_0x1cd317==null?void 0x0:_0x1cd317[_0x22863f(0x3de)]);if(!_0x29bf22||!_0x1256b5||_0x3c2fe3(_0x29bf22[_0x22863f(0x1b9)])||_0x3c2fe3(_0x1256b5))return!0x1;let _0x4c57ca=_0x5aef65(_0x29bf22[_0x22863f(0x17d)],_0x1256b5);if(!_0x4c57ca)return!0x1;let {drawing:_0x227fd6}=_0x29bf22;return _0x1b8b7f['get'](_0x4aa13b)[_0x22863f(0x1ac)](K['id'],{'unitId':_0x227fd6['unitId'],'subUnitId':_0x227fd6[_0x22863f(0x1c5)],'shapeId':_0x227fd6[_0x22863f(0x237)],'shapeType':_0x1256b5,'shapeData':_0x4c57ca,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x29bf22[_0x22863f(0x1b9)],'oldShapeData':_0x29bf22[_0x22863f(0x17d)]}});}};let Q=class extends _0x2c7179{constructor(_0x5e56bd,_0xf023bc){const _0x320c0c=_0x244912;super(),this[_0x320c0c(0x165)]=_0x5e56bd,this[_0x320c0c(0x239)]=_0xf023bc,this['_registerImageShapeClipDelegate'](),this[_0x320c0c(0x165)]['setCanUseShapeClip'](!0x0),this[_0x320c0c(0x14a)]({'dispose':()=>this[_0x320c0c(0x165)][_0x320c0c(0x394)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x8e01b=_0x244912;let _0x5e2a7e=this[_0x8e01b(0x165)],_0x55e730=new Map(),_0x2267ea=_0x5e2a7e['registerClipDelegate']((_0x5d4c44,_0x41dc37,_0x121a09,_0x5c9067,_0xb884b7)=>{const _0x328c1a=_0x8e01b;let _0x2dc048=_0x41dc37;if(_0x2dc048===_0x1ecf22[_0x328c1a(0x214)]||_0x41dc37===_0x328c1a(0x3f0))return!0x1;try{let _0xf7234b=_0x55e730['get'](_0x41dc37);return _0xf7234b||(_0xf7234b=new _0x2e34c6(_0x2dc048,'clip-'+_0x41dc37),_0x55e730['set'](_0x41dc37,_0xf7234b)),_0xf7234b[_0x328c1a(0x2bd)](),_0xb884b7&&Object[_0x328c1a(0x3da)](_0xb884b7)['length']>0x0&&_0xf7234b[_0x328c1a(0x34e)]({'adjustValues':_0xb884b7},!0x0),_0xf7234b[_0x328c1a(0x340)]({'width':_0x121a09,'height':_0x5c9067}),_0xf7234b[_0x328c1a(0x1b2)](_0x5d4c44,{'left':0x0,'top':0x0,'width':_0x121a09,'height':_0x5c9067});}catch{return!0x1;}});this[_0x8e01b(0x14a)](_0x2267ea),this['disposeWithMe']({'dispose':()=>_0x55e730['clear']()});}['clipByShape'](_0x9b6688,_0x8f452d,_0x266ff9,_0x27098a,_0x2d7907){const _0x481450=_0x244912;let _0x267f88=this['_drawingManagerService']['getDrawingData'](_0x9b6688,_0x8f452d);if(!_0x267f88[_0x266ff9])return;let _0x3bda08={..._0x267f88[_0x266ff9],'prstGeom':_0x27098a,'adjustValues':_0x2d7907};this[_0x481450(0x239)][_0x481450(0x330)]([_0x3bda08]);}};Q=Y([J(0x0,_0x318433(_0x1432e0)),J(0x1,_0x318433(_0x1f50fa))],Q);const Vr=_0x244912(0x151),Hr='sheet.image-clip.shape-picker.component';function Ur({onShapeClick:_0x121612,excludeGroups:_0x3a6362}){const _0x7ffdea=_0x244912;return _0xcdc9dc(_0x377851,{'excludeGroups':_0x3a6362,'onShapeClick':_0x121612,'scrollContainer':_0x7ffdea(0x254)});}function Wr(){const _0x32d3d8=_0x244912;let _0x144f6b=_0x2c7ca5(_0x1f50fa),_0x40a87b=_0x2c7ca5(Q);return _0xcdc9dc(_0xd97ad,{'buttonLabel':_0x32d3d8(0x2cc),'excludeGroups':[_0x46a4b9[_0x32d3d8(0x212)]],'onShapeClick':_0x9dbeeb=>{const _0x5b6550=_0x32d3d8;let _0x4f7af8=_0x144f6b[_0x5b6550(0x2a0)]()[_0x5b6550(0x2f4)](_0x4bc966=>_0x4bc966[_0x5b6550(0x185)]===_0x54d53a[_0x5b6550(0x16f)]);if(!_0x4f7af8)return;let {unitId:_0x5596d8,subUnitId:_0x5b068d,drawingId:_0x166475}=_0x4f7af8;_0x40a87b[_0x5b6550(0x2e4)](_0x5596d8,_0x5b068d,_0x166475,_0x9dbeeb['type']);}});}function Gr(){const _0x4e47ab=_0x244912;let _0x22d331=_0x2c7ca5(_0x1f50fa),_0x233083=_0x2c7ca5(Q);return _0xcdc9dc(_0xd97ad,{'buttonLabel':_0x4e47ab(0x2cc),'excludeGroups':[_0x46a4b9[_0x4e47ab(0x212)]],'DropdownComponent':_0x2f0a7d,'onShapeClick':_0x1c3996=>{const _0xcb01f4=_0x4e47ab;let _0x142029=_0x22d331[_0xcb01f4(0x2a0)]()['find'](_0x3c9a57=>_0x3c9a57[_0xcb01f4(0x185)]===_0x54d53a[_0xcb01f4(0x16f)]);if(!_0x142029)return;let {unitId:_0x45e4e5,subUnitId:_0x52cff3,drawingId:_0x464ca1}=_0x142029;_0x233083['clipByShape'](_0x45e4e5,_0x52cff3,_0x464ca1,_0x1c3996[_0xcb01f4(0x1a2)]);}});}function Kr(){const _0x1ae7f5=_0x244912;let _0x5e4e1c=_0x2c7ca5(_0x56d3ac),_0x2d1d04=_0x2c7ca5(_0x1f50fa),_0x3e8385=_0x2c7ca5(_0x595744),_0xc64af7=_0x2d1d04[_0x1ae7f5(0x2a0)]()[0x0],_0x7bcf02=_0xc64af7?_0x3e8385[_0x1ae7f5(0x24e)](_0xc64af7[_0x1ae7f5(0x21f)]):void 0x0,_0x1394e0=_0x7bcf02===_0x37e7a9[_0x1ae7f5(0x378)]?_0x1ae7f5(0x188):_0x7bcf02===_0x37e7a9[_0x1ae7f5(0x2c9)]?Hr:void 0x0,_0x51fcfb=_0x1394e0?_0x5e4e1c['get'](_0x1394e0):void 0x0;return _0x51fcfb?_0xcdc9dc(_0x51fcfb,{}):null;}function qr(){let _0x49acc6=_0x2c7ca5(_0x4aa13b);return _0xcdc9dc(Ur,{'onShapeClick':_0x33e4ce=>{const _0x4a6696=_0x4e9b;_0x49acc6[_0x4a6696(0x1ac)](kr['id'],{'value':_0x33e4ce[_0x4a6696(0x1a2)],'enhanceParams':{'endArrow':_0x33e4ce[_0x4a6696(0x2cb)],'startArrow':_0x33e4ce[_0x4a6696(0x368)],'horizontal':_0x33e4ce[_0x4a6696(0x1e8)],'vertical':_0x33e4ce[_0x4a6696(0x3df)]}});}});}function Jr(){return _0xcdc9dc(qr,{});}function Yr(_0x274dfd){const _0x38c2c3=_0x244912;let _0x1644ca=_0x274dfd['get'](_0x595744);return{'id':kr['id'],'type':_0x4171da['SELECTOR'],'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':kr['id']}}}],'icon':_0x38c2c3(0x3fb),'tooltip':_0x38c2c3(0x205),'activated$':_0x3baf69(_0x1644ca,!0x1,()=>new _0x1cfcc4(_0x5899a8=>{const _0x593474=_0x38c2c3;_0x5899a8[_0x593474(0x3ac)](!0x1);})),'hidden$':_0x4ff7fb(_0x274dfd,_0x37e7a9[_0x38c2c3(0x2c9)]),'disabled$':_0x49adae(_0x274dfd)};}function Xr(_0x1d0823){const _0x574363=_0x244912;let _0x2864a4=_0x1d0823[_0x574363(0x1e0)](_0x595744);return{'id':Ir['id'],'type':_0x4171da[_0x574363(0x1df)],'icon':_0x574363(0x2d3),'title':_0x574363(0x2c0),'tooltip':_0x574363(0x2c0),'activated$':_0x3baf69(_0x2864a4,!0x1,()=>new _0x1cfcc4(_0x12684e=>{const _0x1ecf9d=_0x574363;_0x12684e[_0x1ecf9d(0x3ac)](!0x1);})),'hidden$':_0x4ff7fb(_0x1d0823,_0x37e7a9['UNIVER_SHEET']),'disabled$':_0x49adae(_0x1d0823)};}const Zr='sheet.menu.shape.flip-horizontal',Qr=_0x244912(0x1d0);function $r(_0x17baa2){const _0x48aa34=_0x244912;let _0x529804=_0x17baa2['get'](_0x1f50fa)[_0x48aa34(0x2a0)]();return _0x529804['length']===0x1&&_0x529804[0x0][_0x48aa34(0x185)]===_0x54d53a[_0x48aa34(0x1b1)]?_0x529804[0x0]:null;}function ei(_0x35ff64){const _0x5a41d2=_0x244912;let _0x2b6ed1=_0x35ff64['get'](_0x1f50fa);return _0x2b6ed1['focus$'][_0x5a41d2(0x18a)](_0x44274b(_0x2b6ed1[_0x5a41d2(0x2a0)]()),_0x3be804(_0x51963a=>_0x51963a[_0x5a41d2(0x1ae)]!==0x1||_0x51963a[0x0][_0x5a41d2(0x185)]!==_0x54d53a[_0x5a41d2(0x1b1)]));}function ti(_0xb74110){const _0x31985b=_0x244912;return{'id':Zr,'commandId':_0x3cca56['id'],'type':_0x4171da[_0x31985b(0x1df)],'title':_0x31985b(0x2ff),'tooltip':_0x31985b(0x2ff),'icon':_0x31985b(0x2fb),'hidden$':ei(_0xb74110),'params':()=>{const _0x21314e=_0x31985b;let _0x1c5269=$r(_0xb74110);return _0x1c5269?{'unitId':_0x1c5269['unitId'],'subUnitId':_0x1c5269[_0x21314e(0x1c5)],'shapeId':_0x1c5269[_0x21314e(0x237)],'flipH':!0x0}:void 0x0;}};}function ni(_0x3a1dd8){const _0x520ca5=_0x244912;return{'id':Qr,'commandId':_0x3cca56['id'],'type':_0x4171da['BUTTON'],'title':_0x520ca5(0x3bc),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x520ca5(0x167),'hidden$':ei(_0x3a1dd8),'params':()=>{const _0x4157ac=_0x520ca5;let _0x1a0dbf=$r(_0x3a1dd8);return _0x1a0dbf?{'unitId':_0x1a0dbf[_0x4157ac(0x21f)],'subUnitId':_0x1a0dbf[_0x4157ac(0x1c5)],'shapeId':_0x1a0dbf[_0x4157ac(0x237)],'flipV':!0x0}:void 0x0;}};}const ri=_0x244912(0x30f),ii=_0x244912(0x2c5),ai='sheets-shape-ui.shape-format.text-ribbon-control',oi='sheets-shape-ui.shape-format.formula-ribbon-control';function si(){let _0x1c7ee1=_0x2c7ca5(_0x4aa13b),_0x31d029=_0x2c7ca5(_0x1f50fa),_0x504a23=_0x2c7ca5(_0x5594a6),_0x1aa19b=()=>{const _0x23625f=_0x4e9b;var _0x398ab5;let _0x5f34ac=_0x31d029[_0x23625f(0x2a0)]();if(_0x5f34ac[_0x23625f(0x1ae)]!==0x1||((_0x398ab5=_0x5f34ac[0x0])==null?void 0x0:_0x398ab5[_0x23625f(0x185)])!==_0x54d53a[_0x23625f(0x1b1)])return null;let {unitId:_0x6a7d47,subUnitId:_0x29fd60,drawingId:_0x364f6d}=_0x5f34ac[0x0],_0x39cc7a=_0x504a23[_0x23625f(0x3e4)](_0x6a7d47,_0x29fd60,_0x364f6d),_0x52d22f=_0x504a23[_0x23625f(0x1fa)](_0x6a7d47,_0x29fd60,_0x364f6d);return _0x39cc7a===void 0x0||!_0x52d22f?null:{'unitId':_0x6a7d47,'subUnitId':_0x29fd60,'drawingId':_0x364f6d,'shapeType':_0x39cc7a,'shapeData':_0x52d22f};},_0x16c0a9=_0x297a75(()=>new _0x1cfcc4(_0x110931=>{const _0x390e9f=_0x4e9b;let _0x1b08cd=()=>_0x110931[_0x390e9f(0x3ac)](_0x1aa19b()),_0x54d300=_0x31d029[_0x390e9f(0x2fc)][_0x390e9f(0x305)](_0x1b08cd),_0x3c90fa=_0x1c7ee1['onCommandExecuted'](_0xf8f428=>{_0xf8f428['id']===_0x4fa39c['id']&&_0x1b08cd();});return _0x1b08cd(),()=>{const _0x203eba=_0x390e9f;_0x54d300[_0x203eba(0x3fc)](),_0x3c90fa[_0x203eba(0x346)]();};}),_0x1aa19b(),!0x1,[_0x1c7ee1,_0x31d029,_0x504a23]);return{'selection':_0x16c0a9,'updateShapeData':_0x221b9f=>{const _0x5d4bf3=_0x4e9b;_0x16c0a9&&br(_0x1c7ee1,_0x16c0a9[_0x5d4bf3(0x21f)],_0x16c0a9[_0x5d4bf3(0x1c5)],_0x16c0a9[_0x5d4bf3(0x237)],{'oldShapeData':_0x16c0a9['shapeData']},_0x221b9f);}};}function ci(){const _0x26afd7=_0x244912;let {selection:_0x594e40,updateShapeData:_0x486077}=si();return _0x594e40?_0xcdc9dc(_0x1535fe,{'shapeData':_0x594e40[_0x26afd7(0x17d)],'shapeType':_0x594e40[_0x26afd7(0x1b9)],'onUpdateShapeData':_0x486077}):null;}function li(){const _0x51b874=_0x244912;let _0x4214a4=_0x2c7ca5(_0x4aa13b),_0x1dab7d=_0x2c7ca5(_0x3f1353),{selection:_0x5dfaa4}=si();return _0x5dfaa4?_0xcdc9dc(_0x364599,{'type':_0x5e4bfe(_0x5dfaa4['shapeData']),'ariaLabel':_0x1dab7d['t'](_0x51b874(0x39b)),'activePresetId':_0x54dddb(_0x5dfaa4[_0x51b874(0x17d)]),'onSelect':_0x279c49=>_0x4214a4[_0x51b874(0x1ac)](zr['id'],{'presetId':_0x279c49})}):null;}function ui(){const _0x502493=_0x244912;let {selection:_0x21d027,updateShapeData:_0x1267c3}=si();return _0x21d027?_0xcdc9dc(_0x361c7f,{'fontFamilyPopupDataComponent':_0x502493(0x1f0),'shapeData':_0x21d027[_0x502493(0x17d)],'onUpdateShapeData':_0x1267c3}):null;}function di(){const _0x1348f5=_0x244912;var _0x2746ad;let {selection:_0x51f10c,updateShapeData:_0x3ba2c8}=si(),_0x5bb1a4=_0xaa2e40({'hostType':_0x37e7a9[_0x1348f5(0x2c9)],'unitId':(_0x51f10c==null?void 0x0:_0x51f10c['unitId'])??'','subUnitId':(_0x51f10c==null?void 0x0:_0x51f10c[_0x1348f5(0x1c5)])??'','shapeId':(_0x51f10c==null?void 0x0:_0x51f10c[_0x1348f5(0x237)])??'','shapeData':_0x51f10c==null?void 0x0:_0x51f10c['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1348f5(0x1c9),'onUpdateBinding':_0x220dd5=>_0x3ba2c8({'formulaBinding':_0x220dd5})}),_0x21fe3d=((_0x2746ad=_0x5bb1a4[_0x1348f5(0x36c)])==null?void 0x0:_0x2746ad[_0x1348f5(0x1d5)](_0x373c4a=>_0x373c4a[_0x1348f5(0x31b)])[_0x1348f5(0x150)](_0x141fd5=>_0x141fd5[_0x1348f5(0x27e)]!==!0x1))??[];return _0x51f10c!=null&&_0x51f10c[_0x1348f5(0x17d)][_0x1348f5(0x141)]?_0xcdc9dc(_0x1e07ad,{'actions':_0x21fe3d,'panel':_0x5bb1a4['panel']}):null;}const fi=_0x244912(0x192),pi=_0x244912(0x227),mi=_0x244912(0x1ce),hi='sheets-shape-ui.ribbon.shape-format.arrange-forward',gi=_0x244912(0x2f3),_i=_0x244912(0x3d6),vi='sheets-shape-ui.ribbon.shape-format.arrange-back';function yi(_0x584638){const _0x20e297=_0x244912;let _0xc1fae1=_0x584638[_0x20e297(0x1e0)](_0x4aa13b),_0x3fb139=_0x584638[_0x20e297(0x1e0)](_0x1f50fa),_0x419133=_0x584638[_0x20e297(0x1e0)](_0x5594a6);return new _0x1cfcc4(_0x164ca0=>{const _0x171d8e=_0x20e297;let _0x41ed2c=()=>{const _0x11e3f2=_0x4e9b;let _0x310d55=bi(_0x584638),_0x270363=_0x310d55?_0x419133[_0x11e3f2(0x1fa)](_0x310d55['unitId'],_0x310d55['subUnitId'],_0x310d55[_0x11e3f2(0x237)]):null;_0x164ca0[_0x11e3f2(0x3ac)](_0x270363?_0x54dddb(_0x270363)??'':'');},_0x200ecf=_0x3fb139[_0x171d8e(0x2fc)][_0x171d8e(0x305)](_0x41ed2c),_0x2c0c1e=_0xc1fae1[_0x171d8e(0x356)](_0x5707a6=>{_0x5707a6['id']===_0x4fa39c['id']&&_0x41ed2c();});return _0x41ed2c(),()=>{const _0x2cd42d=_0x171d8e;_0x200ecf[_0x2cd42d(0x3fc)](),_0x2c0c1e['dispose']();};});}function bi(_0x5a3a3a){const _0x4cc5ad=_0x244912;var _0x51e683;let _0x18b022=_0x5a3a3a[_0x4cc5ad(0x1e0)](_0x1f50fa)[_0x4cc5ad(0x2a0)]();return _0x18b022['length']===0x1&&((_0x51e683=_0x18b022[0x0])==null?void 0x0:_0x51e683[_0x4cc5ad(0x185)])===_0x54d53a['DRAWING_SHAPE']?_0x18b022[0x0]:null;}function xi(_0x3f68e5,_0xe0e20b=!0x1){const _0x317a43=_0x244912;let _0x42c844=_0x3f68e5[_0x317a43(0x1e0)](_0x4aa13b),_0x55a73d=_0x3f68e5['get'](_0x1f50fa),_0x4e809d=_0x3f68e5[_0x317a43(0x1e0)](_0x5594a6);return new _0x1cfcc4(_0x183b43=>{const _0x1ccdb=_0x317a43;let _0x3933d5=()=>{const _0x12aa71=_0x4e9b;let _0x587690=bi(_0x3f68e5);if(!_0x587690){_0x183b43[_0x12aa71(0x3ac)](!0x0);return;}let _0x56cdb9=_0x4e809d[_0x12aa71(0x1fa)](_0x587690['unitId'],_0x587690[_0x12aa71(0x1c5)],_0x587690[_0x12aa71(0x237)]);_0x183b43['next'](!_0x56cdb9||_0xe0e20b&&_0x56cdb9[_0x12aa71(0x141)]==null);},_0x3ead84=_0x55a73d[_0x1ccdb(0x2fc)][_0x1ccdb(0x305)](_0x3933d5),_0x454cd3=_0x42c844[_0x1ccdb(0x356)](_0x5a60c3=>{_0x5a60c3['id']===_0x4fa39c['id']&&_0x3933d5();});return _0x3933d5(),()=>{const _0x16c201=_0x1ccdb;_0x3ead84[_0x16c201(0x3fc)](),_0x454cd3[_0x16c201(0x346)]();};});}function Si(_0x412a0b){const _0xe6c2c2=_0x244912;let _0xe1eb2=_0x412a0b[_0xe6c2c2(0x1e0)](_0x1f50fa),_0x3f0562=_0x412a0b[_0xe6c2c2(0x1e0)](_0x5594a6);return _0xe1eb2[_0xe6c2c2(0x2fc)][_0xe6c2c2(0x18a)](_0x44274b(_0xe1eb2['getFocusDrawings']()),_0x3be804(()=>{const _0x1bd963=_0xe6c2c2;let _0x468fff=bi(_0x412a0b),_0x4dc685=_0x468fff?_0x3f0562[_0x1bd963(0x3e4)](_0x468fff['unitId'],_0x468fff['subUnitId'],_0x468fff[_0x1bd963(0x237)]):void 0x0;return _0x4dc685===void 0x0||_0x3c2fe3(_0x4dc685);}));}function Ci(_0xf6f117){const _0x11c26d=_0x244912;return{'id':zr['id'],'type':_0x4171da['SELECTOR'],'icon':_0x11c26d(0x19f),'title':_0x11c26d(0x2a6),'tooltip':_0x11c26d(0x2a6),'selections':[{'label':{'name':ri,'hoverable':!0x1,'selectable':!0x1}}],'value$':yi(_0xf6f117),'hidden$':xi(_0xf6f117)};}function wi(_0x1a453e){const _0x1bcd1b=_0x244912;return{'id':Br['id'],'type':_0x4171da[_0x1bcd1b(0x3b1)],'icon':_0x1bcd1b(0x3fb),'title':_0x1bcd1b(0x266),'tooltip':_0x1bcd1b(0x266),'slot':!0x0,'selections':[{'label':{'name':_0x39514a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x1a453e)};}function Ti(_0xad6096,_0x145d73,_0x23bcfc=!0x1){const _0x4d8db4=_0x244912;return _0x7dbb65=>({'id':_0xad6096,'type':_0x4171da[_0x4d8db4(0x1df)],'label':{'name':_0x145d73,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x7dbb65,_0x23bcfc)});}const Ei=Ti(fi,ii),Di=Ti(pi,ai),Oi=Ti(mi,oi,!0x0);function ki(_0x58c6cd,_0x23497b,_0x29ceef,_0x3c86a0){const _0x12aceb=_0x244912;return _0x563a16=>({'id':_0x58c6cd,'commandId':_0x4e0df7['id'],'type':_0x4171da[_0x12aceb(0x1df)],'icon':_0x29ceef,'title':_0x3c86a0,'tooltip':_0x3c86a0,'hidden$':xi(_0x563a16),'params':()=>{const _0x502fc8=_0x12aceb;let _0x1bb686=bi(_0x563a16);return _0x1bb686?{'unitId':_0x1bb686['unitId'],'subUnitId':_0x1bb686[_0x502fc8(0x1c5)],'drawingIds':[_0x1bb686[_0x502fc8(0x237)]],'arrangeType':_0x23497b}:void 0x0;}});}const Ai=ki(hi,_0x5de8db[_0x244912(0x285)],_0x244912(0x357),'shape-editor-ui.arrange.forward'),ji=ki(gi,_0x5de8db[_0x244912(0x295)],_0x244912(0x23e),_0x244912(0x28d)),Mi=ki(_i,_0x5de8db[_0x244912(0x3c1)],_0x244912(0x160),_0x244912(0x37f)),Ni=ki(vi,_0x5de8db['back'],'BottomIcon',_0x244912(0x2e0));function Pi(_0x41edc0){const _0x3b556a=_0x244912;return{'id':Lr['id'],'type':_0x4171da[_0x3b556a(0x1df)],'icon':_0x3b556a(0x3dd),'title':_0x3b556a(0x299),'tooltip':'sheets-shape-ui.formatShape','hidden$':xi(_0x41edc0),'params':()=>{const _0x9e3920=_0x3b556a;let _0x5edf36=bi(_0x41edc0);return _0x5edf36?{'unitId':_0x5edf36[_0x9e3920(0x21f)],'subUnitId':_0x5edf36[_0x9e3920(0x1c5)],'drawingId':_0x5edf36[_0x9e3920(0x237)]}:void 0x0;}};}const Fi={[_0x13bc74['RIBBON']]:{[Nr]:{'order':0x64,'title':_0x244912(0x299),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[zr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[fi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[pi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Zr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ti},[Qr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ni},[hi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ai},[gi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ji},[_i]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Mi},[vi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[mi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Lr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0x29b704['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x28f120}}}}},Ii={[_0x3cd9aa[_0x244912(0x3c7)]]:{[kr['id']]:{'order':0x4,'menuItemFactory':Yr}}},Li={...Ii,[_0x3cd9aa['OTHERS']]:{[Ir['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Xr}},[_0x2af139[_0x244912(0x142)]]:{[_0x510854[_0x244912(0x311)]]:{[Zr]:{'order':0x4,'menuItemFactory':ti},[Qr]:{'order':0x5,'menuItemFactory':ni}}}};var Ri=_0x244912(0x1d3),zi=_0x244912(0x1af);const Bi={'id':_0x244912(0x31d),'type':_0x1644dd[_0x244912(0x1bf)],'handler'(_0x56a07a,_0x47a608){const _0x47f022=_0x244912;return _0x47a608?(_0x56a07a[_0x47f022(0x1e0)](_0x349883)['open'](_0x47a608[_0x47f022(0x153)],{'hostType':_0x37e7a9[_0x47f022(0x2c9)],'shapeId':_0x47a608['drawingId'],'subUnitId':_0x47a608[_0x47f022(0x1c5)],'unitId':_0x47a608['unitId']}),!0x0):!0x1;}},Vi=_0x244912(0x23c),Hi={};let Ui=class extends _0x2c7179{constructor(_0x3f4b59,_0x50b121,_0x1d71b1,_0x21c224,_0xa86903){const _0x41a983=_0x244912;super(),this[_0x41a983(0x15d)]=_0x3f4b59,this['_drawingManagerService']=_0x50b121,this['_renderManagerService']=_0x1d71b1,this[_0x41a983(0x321)]=_0x21c224,this[_0x41a983(0x359)]=_0xa86903,q(this,_0x41a983(0x1c4),null),q(this,_0x41a983(0x20a),null),q(this,_0x41a983(0x1e9),null),q(this,_0x41a983(0x1bd),void 0x0),q(this,_0x41a983(0x308),[]),q(this,_0x41a983(0x361),0x0),q(this,'_baseTop',0x0),q(this,'_baseWidth',0x0),q(this,_0x41a983(0x267),0x0),q(this,_0x41a983(0x332),!0x1),q(this,_0x41a983(0x273),void 0x0),q(this,_0x41a983(0x376),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x41a983(0x38d),void 0x0),q(this,_0x41a983(0x257),!0x1),this['_registerFocusChangeHandler'](),this[_0x41a983(0x161)]();}[_0x244912(0x309)](){const _0xbd4a1f=_0x244912;this[_0xbd4a1f(0x193)]();}[_0x244912(0x289)](){const _0x8079e9=_0x244912;this[_0x8079e9(0x193)](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x1c9c82,_0x4701ce,_0xd5f7f7,_0x4f0028){const _0x40651b=_0x244912;let _0x12ead4=_0x1c9c82;if(_0x12ead4!==_0x1ecf22[_0x40651b(0x214)]&&_0x1c9c82!=='custom')try{let _0x4ad599=new _0x2e34c6(_0x12ead4,_0x40651b(0x344)+_0x1c9c82);return _0x4f0028&&_0x4ad599['setShapeData']({'adjustValues':_0x4f0028},!0x0),_0x4ad599[_0x40651b(0x340)]({'width':_0x4701ce,'height':_0xd5f7f7}),_0x4ad599;}catch{return;}}[_0x244912(0x387)](_0x479042,_0x3e75db,_0x715a38){const _0x1d5517=_0x244912;let _0x883c82={'unitId':_0x479042,'subUnitId':_0x3e75db,'drawingId':_0x715a38},_0x13d014=this[_0x1d5517(0x239)][_0x1d5517(0x3a5)](_0x883c82);if(_0x13d014&&_0x13d014[_0x1d5517(0x185)]===_0x54d53a[_0x1d5517(0x16f)])return _0x13d014;}[_0x244912(0x21c)](_0x268668,_0x408c9d,_0x556276){const _0x2faa9f=_0x244912;let _0x144c7a=this['_renderManagerService'][_0x2faa9f(0x276)](_0x268668);if(!_0x144c7a)return;let {scene:_0xfbd99c}=_0x144c7a,_0x5ce2c2=_0x5cc8a7({'unitId':_0x268668,'subUnitId':_0x408c9d,'drawingId':_0x556276}),_0x5b8d33=_0xfbd99c[_0x2faa9f(0x389)](_0x5ce2c2);if(_0x5b8d33 instanceof _0x2cf69c){let _0x3c3d6f=_0x5b8d33[_0x2faa9f(0x19e)];if(_0x3c3d6f)return{'prstGeom':_0x3c3d6f,'adjustValues':_0x5b8d33[_0x2faa9f(0x1e1)]};}}[_0x244912(0x362)](_0x7339aa=!0x1){const _0x137b62=_0x244912;if(!this[_0x137b62(0x20a)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x1f0f09=this[_0x137b62(0x2f0)]['getRenderUnitById'](this[_0x137b62(0x20a)]);if(!_0x1f0f09||!_0x1f0f09[_0x137b62(0x27b)](_0x307dc0)['getCurrentSkeleton']())return;let {scene:_0x4e8521}=_0x1f0f09,_0x36582e=this[_0x137b62(0x387)](this['_unitId'],this[_0x137b62(0x1e9)],this['_activeImageId']);if(!_0x36582e)return;let {transform:_0x1fdf77}=_0x36582e;if(!_0x1fdf77)return;let {left:_0x3a37ea,top:_0x363fdd,width:_0x4160fa,height:_0x390851,flipX:_0x3ae07,flipY:_0xf5630e,angle:_0x4d00ad=0x0}=_0x1fdf77;if(_0x3a37ea===void 0x0||_0x363fdd===void 0x0)return;let _0xf1fbe1=this[_0x137b62(0x21c)](this[_0x137b62(0x20a)],this[_0x137b62(0x1e9)],this[_0x137b62(0x1c4)]);if(!_0xf1fbe1)return;if(_0x7339aa){let _0x3963e4=this[_0x137b62(0x3ae)](_0xf1fbe1['prstGeom'],_0x4160fa||0x0,_0x390851||0x0,_0xf1fbe1[_0x137b62(0x380)]);if(!_0x3963e4)return;this[_0x137b62(0x1bd)]=_0x3963e4[_0x137b62(0x3ad)]();}let _0x350ead=this[_0x137b62(0x1bd)];if(_0x350ead&&_0x350ead[_0x137b62(0x1ae)]!==0x0)for(let _0x1dcd46=0x0;_0x1dcd46<_0x350ead[_0x137b62(0x1ae)];_0x1dcd46++){let _0xd3933f=_0x350ead[_0x1dcd46],_0x2ff2c4=_0xd3933f['x'],_0x1a0e2d=_0xd3933f['y'];if(_0x3ae07&&(_0x2ff2c4=(_0x4160fa||0x0)-_0x2ff2c4),_0xf5630e&&(_0x1a0e2d=(_0x390851||0x0)-_0x1a0e2d),_0x4d00ad!==0x0){let _0x495665=(_0x4160fa||0x0)/0x2,_0x13fd2f=(_0x390851||0x0)/0x2,_0x2afe3=_0x4d00ad*Math['PI']/0xb4,_0x533459=Math['cos'](_0x2afe3),_0x38fbea=Math['sin'](_0x2afe3),_0x53a56d=_0x2ff2c4-_0x495665,_0x3b4e4c=_0x1a0e2d-_0x13fd2f;_0x2ff2c4=_0x495665+(_0x53a56d*_0x533459-_0x3b4e4c*_0x38fbea),_0x1a0e2d=_0x13fd2f+(_0x53a56d*_0x38fbea+_0x3b4e4c*_0x533459);}let _0x3eb431={'x':_0x2ff2c4,'y':_0x1a0e2d,'adjName':_0xd3933f['adjName']};this[_0x137b62(0x19a)](_0x4e8521,_0x3eb431,_0x3eb431['adjName'],_0x3a37ea,_0x363fdd,this['_unitId'],this[_0x137b62(0x1e9)]);}}['_addControl'](_0x2701f9,_0x3eec72,_0x3ab7eb,_0x1715a3,_0x4028a6,_0x753624,_0x6f66b1){const _0x3d9d98=_0x244912;if(!this[_0x3d9d98(0x1c4)])return;let _0x5d68c8=_0x3d9d98(0x1cc)+this[_0x3d9d98(0x1c4)]+'-'+_0x3ab7eb,_0x56820b=_0x2701f9[_0x3d9d98(0x251)](_0x5d68c8);if(_0x56820b){_0x56820b[_0x3d9d98(0x1d8)]({'left':_0x3eec72['x']+_0x1715a3-_0x59f579[_0x3d9d98(0x3c5)],'top':_0x3eec72['y']+_0x4028a6-_0x59f579[_0x3d9d98(0x3c5)]});return;}let _0x5e3679=new Dr(_0x5d68c8,{'left':_0x3eec72['x']+_0x1715a3-_0x59f579['adjHandleSize'],'top':_0x3eec72['y']+_0x4028a6-_0x59f579['adjHandleSize'],'adjName':_0x3ab7eb,'shapeId':this[_0x3d9d98(0x1c4)],'unitId':_0x753624,'subUnitId':_0x6f66b1,'width':_0x59f579[_0x3d9d98(0x3c5)]+0x8,'height':_0x59f579[_0x3d9d98(0x3c5)]+0x8,'zIndex':_0x352374+0x1,'evented':!0x0});this[_0x3d9d98(0x308)][_0x3d9d98(0x399)](_0x5e3679),this[_0x3d9d98(0x32d)](_0x5e3679,_0x2701f9,_0x3ab7eb),_0x2701f9[_0x3d9d98(0x2da)](_0x5e3679,_0x352374+0x1);}['_clearControls'](){const _0x48bf57=_0x244912;this[_0x48bf57(0x308)][_0x48bf57(0x1ae)]!==0x0&&(this['_shapes']['forEach'](_0x3990ed=>_0x3990ed[_0x48bf57(0x346)]()),this[_0x48bf57(0x308)]=[]);}['_getScrollInfo'](_0x2f9ea8,_0xb2a6f4){const _0x12f20e=_0x244912;var _0x48007a;let _0x17de34={'x':0x0,'y':0x0},_0x138831=this[_0x12f20e(0x2f0)][_0x12f20e(0x276)](_0x2f9ea8);if(!_0x138831||!_0x138831[_0x12f20e(0x27b)](_0x307dc0)['getSkeleton'](_0xb2a6f4))return _0x17de34;let _0x6870f9=_0x138831[_0x12f20e(0x27b)](_0x20a826),_0x58dfe6=_0x6870f9==null?void 0x0:_0x6870f9[_0x12f20e(0x145)]();if(!_0x58dfe6)return _0x17de34;let _0x3f702f=(_0x48007a=this[_0x12f20e(0x321)][_0x12f20e(0x287)](_0x2f9ea8))==null?void 0x0:_0x48007a[_0x12f20e(0x184)](_0xb2a6f4);if(!_0x3f702f)return _0x17de34;let _0x254f52=_0x2ead9(_0x58dfe6[_0x12f20e(0x1bc)],_0x58dfe6[_0x12f20e(0x298)],_0x138831[_0x12f20e(0x229)],_0x3f702f);return _0x254f52?{'x':_0x254f52['viewportScrollX'],'y':_0x254f52[_0x12f20e(0x351)]}:_0x17de34;}[_0x244912(0x331)](_0x43e819,_0x282edc){const _0x1204e2=_0x244912;var _0x4ebf66;let _0x2e9b64=(_0x4ebf66=this['_univerInstanceService']['getUnit'](_0x43e819))==null?void 0x0:_0x4ebf66[_0x1204e2(0x184)](_0x282edc);return(_0x2e9b64==null?void 0x0:_0x2e9b64[_0x1204e2(0x3e2)]())??0x1;}[_0x244912(0x32d)](_0x1503db,_0x591a88,_0xfbf031){const _0x1731e0=_0x244912;this[_0x1731e0(0x14a)](_0x21ce23(_0x1503db[_0x1731e0(0x383)]['subscribeEvent']((_0x26b496,_0x42c1fe)=>{const _0x407f41=_0x1731e0;var _0x239f3d,_0x5d4319,_0x1020d3;let {unitId:_0x35d574,subUnitId:_0xf41294,drawingId:_0x123f76}=_0x1503db['getDrawingSearch'](),_0x2817f4=this[_0x407f41(0x387)](_0x35d574,_0xf41294,_0x123f76);if(!(_0x2817f4!=null&&_0x2817f4[_0x407f41(0x1b7)]))return;let {left:_0x950c8b,top:_0x1c7da8,width:_0x239e49,height:_0x4b79fa}=_0x2817f4[_0x407f41(0x1b7)];this['_baseLeft']=_0x950c8b||0x0,this['_baseTop']=_0x1c7da8||0x0,this[_0x407f41(0x218)]=_0x239e49||0x0,this[_0x407f41(0x267)]=_0x4b79fa||0x0;let _0x94539=!!((_0x239f3d=_0x2817f4['transform'])!=null&&_0x239f3d[_0x407f41(0x166)]),_0x2e8d0a=!!((_0x5d4319=_0x2817f4[_0x407f41(0x1b7)])!=null&&_0x5d4319[_0x407f41(0x3b2)]),_0x5b4916=((_0x1020d3=_0x2817f4[_0x407f41(0x1b7)])==null?void 0x0:_0x1020d3[_0x407f41(0x388)])||0x0,_0x4d2ed3=this[_0x407f41(0x21c)](_0x35d574,_0xf41294,_0x123f76);if(!_0x4d2ed3)return;let _0xde94e8=this[_0x407f41(0x3ae)](_0x4d2ed3['prstGeom'],this[_0x407f41(0x218)],this['_baseHeight'],_0x4d2ed3[_0x407f41(0x380)]);if(!_0xde94e8||(this['_activeShapeModel']=_0xde94e8,this[_0x407f41(0x273)]=_0xde94e8[_0x407f41(0x21d)](_0xfbf031),!this[_0x407f41(0x273)]))return;this[_0x407f41(0x332)]=!0x0,_0x591a88[_0x407f41(0x329)]();let _0xe071f6=_0x4d2ed3['prstGeom'];this['_adjHandlerPointerMove']=_0x591a88['onPointerMove$']['subscribeEvent']((_0x228b32,_0x317d77)=>{const _0x500db8=_0x407f41;if(!this[_0x500db8(0x332)])return;let {offsetX:_0x407d35,offsetY:_0xa0e823}=_0x228b32,_0x1f4400=this[_0x500db8(0x273)];if(!this['_activeShapeModel']||!_0x1f4400)return;_0x591a88[_0x500db8(0x329)](),_0x591a88[_0x500db8(0x34d)](_0x48d0e8[_0x500db8(0x1f1)]);let _0x1bdc2c={'left':0x0,'top':0x0,'width':this[_0x500db8(0x218)],'height':this[_0x500db8(0x267)]},_0x121463=this[_0x500db8(0x18d)](_0x35d574,_0xf41294),_0x4822df=this[_0x500db8(0x331)](_0x35d574,_0xf41294),_0x1cf1ce=_0x407d35/_0x4822df+_0x121463['x']-this[_0x500db8(0x361)],_0x5f28fd=_0xa0e823/_0x4822df+_0x121463['y']-this[_0x500db8(0x275)];if(_0x5b4916!==0x0){let _0x22f4a2=this[_0x500db8(0x218)]/0x2,_0x5c3fe8=this[_0x500db8(0x267)]/0x2,_0x5eed2c=_0x5b4916*Math['PI']/0xb4,_0x1f6e97=Math[_0x500db8(0x1ee)](_0x5eed2c),_0x26608d=Math['sin'](_0x5eed2c),_0xe1cc97=_0x1cf1ce-_0x22f4a2,_0x2cd732=_0x5f28fd-_0x5c3fe8;_0x1cf1ce=_0x22f4a2+(_0xe1cc97*_0x1f6e97+_0x2cd732*_0x26608d),_0x5f28fd=_0x5c3fe8+(-_0xe1cc97*_0x26608d+_0x2cd732*_0x1f6e97);}_0x94539&&(_0x1cf1ce=this['_baseWidth']-_0x1cf1ce),_0x2e8d0a&&(_0x5f28fd=this['_baseHeight']-_0x5f28fd);let _0x5e7d01=this[_0x500db8(0x376)][_0x500db8(0x3a4)](_0x1bdc2c,{'x':_0x1cf1ce,'y':_0x5f28fd},_0x1f4400,_0x94539,_0x2e8d0a);if(Object[_0x500db8(0x3da)](_0x5e7d01)['length']!==0x0){for(let [_0x4da03e,_0x3ea1ff]of Object[_0x500db8(0x324)](_0x5e7d01))this[_0x500db8(0x376)][_0x500db8(0x3b3)](_0x4da03e,_0x3ea1ff);this[_0x500db8(0x376)]['updateContext']({'width':this[_0x500db8(0x218)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x35d574,_0xf41294,_0x123f76,_0x5e7d01),this['_activeAdjustPointList']=this['_activeShapeModel']['getDrawingPoints'](),this['_createControls'](),_0x317d77[_0x500db8(0x34a)]();}}),this[_0x407f41(0x38d)]=_0x591a88['onPointerUp$'][_0x407f41(0x318)]((_0x3f230a,_0x1e1920)=>{const _0xe50912=_0x407f41;if(this[_0xe50912(0x297)][_0xe50912(0x3fc)](),this[_0xe50912(0x38d)][_0xe50912(0x3fc)](),_0x591a88[_0xe50912(0x3ee)](),this[_0xe50912(0x376)]){let _0x1db046=this[_0xe50912(0x376)][_0xe50912(0x2a9)](),_0x1e1d5e={};for(let _0x9e75ca of _0x1db046){let _0x53aec=this[_0xe50912(0x376)][_0xe50912(0x21e)](_0x9e75ca);_0x53aec!==void 0x0&&(_0x1e1d5e[_0x9e75ca]=_0x53aec);}this[_0xe50912(0x359)][_0xe50912(0x2e4)](_0x35d574,_0xf41294,_0x123f76,_0xe071f6,_0x1e1d5e);}this[_0xe50912(0x273)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0xe50912(0x332)]=!0x1,_0x1e1920[_0xe50912(0x34a)](),_0x591a88[_0xe50912(0x33c)]();}),_0x42c1fe[_0x407f41(0x34a)]();})));}['_updateImageAdjValues'](_0x589b46,_0x481b52,_0x1e430b,_0x35aa2c){const _0x43c437=_0x244912;let _0x7e6182=this[_0x43c437(0x2f0)][_0x43c437(0x276)](_0x589b46);if(!_0x7e6182)return;let {scene:_0x9f4cb}=_0x7e6182,_0x56f0a6=_0x5cc8a7({'unitId':_0x589b46,'subUnitId':_0x481b52,'drawingId':_0x1e430b}),_0x4b8b9a=_0x9f4cb['getObject'](_0x56f0a6);if(_0x4b8b9a instanceof _0x2cf69c){let _0x1b1a97=_0x4b8b9a[_0x43c437(0x1e1)]??{};_0x4b8b9a[_0x43c437(0x3dc)]({..._0x1b1a97,..._0x35aa2c}),_0x4b8b9a[_0x43c437(0x23a)](!0x0);}}[_0x244912(0x161)](){const _0xde867c=_0x244912;let _0x31ed1c=this['_univerInstanceService'][_0xde867c(0x25d)](_0x37e7a9[_0xde867c(0x2c9)]);this[_0xde867c(0x14a)](_0x31ed1c[_0xde867c(0x18a)](_0x4ab26c(_0x53387a=>_0x53387a?_0x53387a['activeSheet$'][_0xde867c(0x18a)](_0x4ab26c(_0x37b905=>{const _0x2f315e=_0xde867c;if(!_0x37b905)return _0x351d29;let _0x1f9ba8=_0x53387a[_0x2f315e(0x186)](),_0xe93758=this[_0x2f315e(0x2f0)]['getRenderUnitById'](_0x1f9ba8),_0x584154=_0xe93758==null?void 0x0:_0xe93758[_0x2f315e(0x229)];return _0x584154?_0x1e0e82(_0x584154):_0x351d29;})):_0x351d29))[_0xde867c(0x305)](_0x308928=>{const _0x4e90f0=_0xde867c;let _0x1afead=_0x308928[_0x4e90f0(0x3ed)]();this[_0x4e90f0(0x14a)](_0x308928['onPointerMove$'][_0x4e90f0(0x318)](()=>{const _0x38af5e=_0x4e90f0;this[_0x38af5e(0x257)]&&this[_0x38af5e(0x193)]();})),this[_0x4e90f0(0x14a)](_0x1afead[_0x4e90f0(0x24c)][_0x4e90f0(0x305)](_0x150cc5=>{const _0x44ca1=_0x4e90f0;let {objects:_0x4885b9}=_0x150cc5;if(this[_0x44ca1(0x362)](),_0x4885b9!==null&&_0x4885b9['size']===0x1){let _0x2f7915=_0x4885b9[_0x44ca1(0x196)]()[_0x44ca1(0x3ac)]()[_0x44ca1(0x3de)];_0x2f7915 instanceof _0x2cf69c&&_0x2f7915[_0x44ca1(0x19e)]&&(this[_0x44ca1(0x257)]=!0x0);}})),this[_0x4e90f0(0x14a)](_0x1afead['changing$'][_0x4e90f0(0x305)](()=>{const _0xc2dac3=_0x4e90f0;this[_0xc2dac3(0x257)]&&this[_0xc2dac3(0x193)]();})),this[_0x4e90f0(0x14a)](_0x308928[_0x4e90f0(0x36d)][_0x4e90f0(0x318)](()=>{const _0x14037e=_0x4e90f0;this['_isImagePointerDown']&&(this[_0x14037e(0x257)]=!0x1,this[_0x14037e(0x362)]());})),this[_0x4e90f0(0x14a)](_0x1afead[_0x4e90f0(0x27f)][_0x4e90f0(0x305)](()=>{const _0xa56a1=_0x4e90f0;if(this[_0xa56a1(0x20a)]&&this[_0xa56a1(0x1e9)]&&this['_activeImageId']){let _0x25d36d=this[_0xa56a1(0x21c)](this[_0xa56a1(0x20a)],this[_0xa56a1(0x1e9)],this[_0xa56a1(0x1c4)]);if(_0x25d36d){var _0x52e6b9,_0x540082;let _0x1a8a02=this[_0xa56a1(0x387)](this[_0xa56a1(0x20a)],this[_0xa56a1(0x1e9)],this[_0xa56a1(0x1c4)]),_0x180915=(_0x1a8a02==null||(_0x52e6b9=_0x1a8a02['transform'])==null?void 0x0:_0x52e6b9[_0xa56a1(0x326)])||0x0,_0x2b4dc6=(_0x1a8a02==null||(_0x540082=_0x1a8a02[_0xa56a1(0x1b7)])==null?void 0x0:_0x540082[_0xa56a1(0x1ba)])||0x0,_0x39f271=this['_getOrCreateShapeModel'](_0x25d36d['prstGeom'],_0x180915,_0x2b4dc6,_0x25d36d[_0xa56a1(0x380)]);_0x39f271&&(this['_activeAdjustPointList']=_0x39f271[_0xa56a1(0x3ad)](),this[_0xa56a1(0x193)](),this['_createControls'](!0x0));}}}));}));}[_0x244912(0x37c)](){const _0x4b5def=_0x244912;this[_0x4b5def(0x14a)](this['_drawingManagerService'][_0x4b5def(0x2fc)][_0x4b5def(0x305)](_0x24d33b=>{const _0x4e869a=_0x4b5def;if(_0x24d33b[_0x4e869a(0x1ae)]===0x1){let _0x352b51=_0x24d33b[0x0];if(_0x352b51[_0x4e869a(0x185)]===_0x54d53a[_0x4e869a(0x16f)]){let {unitId:_0x14491b,subUnitId:_0x705972,drawingId:_0x4d4e10}=_0x352b51,_0x2b4449=this[_0x4e869a(0x21c)](_0x14491b,_0x705972,_0x4d4e10);if(_0x2b4449){var _0x1ce8b5,_0x3b4240;this[_0x4e869a(0x1c4)]=_0x4d4e10,this[_0x4e869a(0x20a)]=_0x14491b,this[_0x4e869a(0x1e9)]=_0x705972;let _0x15cfcd=this['_getImageDrawingInfo'](_0x14491b,_0x705972,_0x4d4e10),_0x12cde9=(_0x15cfcd==null||(_0x1ce8b5=_0x15cfcd[_0x4e869a(0x1b7)])==null?void 0x0:_0x1ce8b5['width'])||0x0,_0xd2b6c0=(_0x15cfcd==null||(_0x3b4240=_0x15cfcd[_0x4e869a(0x1b7)])==null?void 0x0:_0x3b4240[_0x4e869a(0x1ba)])||0x0,_0x5edcdb=this[_0x4e869a(0x3ae)](_0x2b4449[_0x4e869a(0x19e)],_0x12cde9,_0xd2b6c0,_0x2b4449[_0x4e869a(0x380)]);_0x5edcdb&&(this[_0x4e869a(0x1bd)]=_0x5edcdb[_0x4e869a(0x3ad)]()),this[_0x4e869a(0x193)](),this[_0x4e869a(0x362)](!0x0);}else this['_resetState']();}else this[_0x4e869a(0x284)]();}else this[_0x4e869a(0x284)]();})),this['disposeWithMe'](this[_0x4b5def(0x239)][_0x4b5def(0x1cd)]['subscribe'](_0x48ac81=>{const _0x4937d2=_0x4b5def;if(_0x48ac81[_0x4937d2(0x1ae)]===0x1){let _0x25f13e=_0x48ac81[0x0],_0x173fa9=this['_drawingManagerService'][_0x4937d2(0x3a5)](_0x25f13e);(_0x173fa9==null?void 0x0:_0x173fa9[_0x4937d2(0x185)])===_0x54d53a[_0x4937d2(0x16f)]&&this['_activeImageId']===_0x25f13e[_0x4937d2(0x237)]&&(this[_0x4937d2(0x193)](),this[_0x4937d2(0x362)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x4b5def(0x305)](_0x51ac86=>{const _0x21e4eb=_0x4b5def;for(let _0x38ddc2 of _0x51ac86)this[_0x21e4eb(0x1c4)]===_0x38ddc2[_0x21e4eb(0x237)]&&this['_resetState']();}));}[_0x244912(0x284)](){const _0x5c1a4b=_0x244912;this['_activeImageId']=null,this['_unitId']=null,this[_0x5c1a4b(0x1e9)]=null,this[_0x5c1a4b(0x1bd)]=void 0x0,this[_0x5c1a4b(0x193)]();}};Ui=Y([J(0x1,_0x1f50fa),J(0x2,_0x318433(_0xc8f10c)),J(0x3,_0x595744),J(0x4,_0x318433(Q))],Ui);function Wi(_0x480778){const _0x17429f=_0x244912;return _0x480778[_0x17429f(0x34c)]()||void 0x0;}function Gi(_0xb21ae9,_0x5ef6a0,_0x494e83){const _0xaa197e=_0x244912;var _0x48b3e4;return((_0x48b3e4=_0xb21ae9[_0xaa197e(0x197)])==null?void 0x0:_0x48b3e4[_0xaa197e(0x34c)]())||_0x494e83['t'](_0xaa197e(0x338)+_0x58b895(_0xb21ae9[_0xaa197e(0x185)]))+'\x20'+(_0x5ef6a0+0x1);}function Ki({PanelComponent:_0xc50bb8=_0xb2f346}){const _0x1b6ff0=_0x244912;var _0x3f2eb7;let _0x1e435f=_0x2c7ca5(_0x3f1353),_0x48002f={'title':_0x1e435f['t'](_0x1b6ff0(0x26d)),'empty':_0x1e435f['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x1e435f['t'](_0x1b6ff0(0x2bf)),'hideAll':_0x1e435f['t'](_0x1b6ff0(0x252)),'lockAll':_0x1e435f['t'](_0x1b6ff0(0x140)),'unlockAll':_0x1e435f['t'](_0x1b6ff0(0x203)),'moveForward':_0x1e435f['t'](_0x1b6ff0(0x3aa)),'moveBackward':_0x1e435f['t'](_0x1b6ff0(0x25c)),'close':_0x1e435f['t'](_0x1b6ff0(0x35e)),'show':_0x1e435f['t'](_0x1b6ff0(0x157)),'hide':_0x1e435f['t'](_0x1b6ff0(0x2c6)),'lock':_0x1e435f['t'](_0x1b6ff0(0x33d)),'unlock':_0x1e435f['t'](_0x1b6ff0(0x3f9)),'lockHint':_0x1e435f['t'](_0x1b6ff0(0x353)),'unlockHint':_0x1e435f['t'](_0x1b6ff0(0x171)),'name':_0x1e435f['t'](_0x1b6ff0(0x39e)),'nameInput':_0x1e435f['t'](_0x1b6ff0(0x280)),'description':_0x1e435f['t'](_0x1b6ff0(0x3a0)),'descriptionPlaceholder':_0x1e435f['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x1e435f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x1e435f['t'](_0x1b6ff0(0x26a)),'locate':_0x1e435f['t']('drawing-ui.objectListPanel.locate'),'expand':_0x1e435f['t'](_0x1b6ff0(0x3a7)),'collapse':_0x1e435f['t'](_0x1b6ff0(0x23f)),'dragToReorder':_0x1e435f['t'](_0x1b6ff0(0x147)),'search':_0x1e435f['t'](_0x1b6ff0(0x3ea)),'filterAll':_0x1e435f['t'](_0x1b6ff0(0x182)),'filterHidden':_0x1e435f['t'](_0x1b6ff0(0x322)),'filterLocked':_0x1e435f['t'](_0x1b6ff0(0x1be)),'sectionCanvas':_0x1e435f['t'](_0x1b6ff0(0x20d)),'sectionFloating':_0x1e435f['t']('drawing-ui.objectListPanel.sectionFloating')},_0x44a32d=_0x2c7ca5(_0x4aa13b),_0x5f538a=_0x2c7ca5(_0x595744),_0x426475=_0x2c7ca5(_0x35f22e),_0x40f1b0=_0x2c7ca5(_0x1f50fa),_0x585243=_0x2c7ca5(_0xc8f10c),[,_0x1c4b77]=_0x256536(_0x598685=>_0x598685+0x1,0x0),_0x412860=_0x5f538a[_0x1b6ff0(0x213)](_0x37e7a9[_0x1b6ff0(0x2c9)]),_0x518689=(_0x412860==null?void 0x0:_0x412860['getUnitId']())??'',_0x2e7731=(_0x412860==null||(_0x3f2eb7=_0x412860[_0x1b6ff0(0x30a)]())==null?void 0x0:_0x3f2eb7[_0x1b6ff0(0x2d9)]())??'',_0x40db54=_0x297a75(()=>_0x40f1b0[_0x1b6ff0(0x2fc)],_0x40f1b0[_0x1b6ff0(0x2a0)](),!0x1,[_0x40f1b0]);_0x1ff107(()=>{const _0x330832=_0x1b6ff0;let _0x509aeb=_0x44a32d[_0x330832(0x356)](()=>_0x1c4b77());return()=>_0x509aeb[_0x330832(0x346)]();},[_0x44a32d]);let _0x572c94=_0x518689&&_0x2e7731?_0x426475[_0x1b6ff0(0x1c8)](_0x518689,_0x2e7731):{},_0x3fd21e=(_0x518689&&_0x2e7731?_0x426475[_0x1b6ff0(0x2d2)](_0x518689,_0x2e7731):[])['map'](_0x561b7a=>_0x572c94[_0x561b7a])[_0x1b6ff0(0x150)](_0x33b987=>!!_0x33b987)[_0x1b6ff0(0x375)](),_0x23a1d9=_0x3fd21e[_0x1b6ff0(0x282)]((_0x4fe22b,_0x1f52b8)=>(_0x4fe22b[_0x303f7a(_0x1f52b8[_0x1b6ff0(0x185)])]+=0x1,_0x4fe22b),{'canvas':0x0,'floating':0x0}),_0x3bb872={'canvas':0x0,'floating':0x0},_0x2d481d=_0x3fd21e[_0x1b6ff0(0x3c9)]((_0x52f488,_0x3a42b1)=>{const _0x3ebf7d=_0x1b6ff0;let _0x527213=_0x303f7a(_0x52f488[_0x3ebf7d(0x185)]),_0x22cec1=_0x527213===_0xdc906c,_0x1bbc4c=_0x3bb872[_0x527213]++;return{'id':_0x52f488['drawingId'],'name':Gi(_0x52f488,_0x3a42b1,_0x1e435f),'description':_0x52f488[_0x3ebf7d(0x1ec)],'visible':_0x52f488[_0x3ebf7d(0x24d)]!==!0x0,'selectable':_0x52f488['selectable']!==!0x1,'sectionId':_0x527213,'sectionTitle':_0x22cec1?_0x48002f[_0x3ebf7d(0x14d)]:_0x48002f[_0x3ebf7d(0x1eb)],'capabilities':_0x22cec1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x22cec1&&_0x1bbc4c>0x0,'canMoveBackward':!_0x22cec1&&_0x1bbc4c<_0x23a1d9[_0x3ebf7d(0x370)]-0x1,'canReorder':!_0x22cec1};}),_0x3e7f87=_0x3352e0(()=>(_0x40db54??[])[_0x1b6ff0(0x150)](_0x5ad116=>_0x5ad116[_0x1b6ff0(0x21f)]===_0x518689&&_0x5ad116['subUnitId']===_0x2e7731)[_0x1b6ff0(0x3c9)](_0x1665cd=>_0x1665cd['drawingId']),[_0x40db54,_0x2e7731,_0x518689]),_0x1f4c5e=_0x3e7f87[_0x3e7f87[_0x1b6ff0(0x1ae)]-0x1]??null,_0x5918c4=_0x252c94=>_0x426475[_0x1b6ff0(0x3a5)]({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x252c94})??null,_0x37c39f=async _0x54fe47=>{const _0x490227=_0x1b6ff0;_0x518689&&_0x54fe47[_0x490227(0x1ae)]&&await _0x44a32d[_0x490227(0x1ac)](_0x480d38['id'],{'unitId':_0x518689,'drawings':_0x54fe47});},_0x3dced5=async(_0x2a2286,_0x1d5e75)=>{_0x5918c4(_0x2a2286)&&await _0x37c39f([{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x2a2286,..._0x1d5e75}]);},_0x34186c=(_0x50ddcf,_0x592f66)=>{const _0x585067=_0x1b6ff0;if(!_0x518689||!_0x2e7731)return;let _0x192c16=_0x592f66?_0x3e7f87[_0x585067(0x221)](_0x50ddcf)?_0x3e7f87[_0x585067(0x150)](_0x126759=>_0x126759!==_0x50ddcf):[..._0x3e7f87,_0x50ddcf]:[_0x50ddcf];_0x44a32d[_0x585067(0x27c)](_0x4c2abf['id'],_0x192c16[_0x585067(0x3c9)](_0x384312=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x384312})));let _0x38d3b2=_0x192c16[_0x192c16[_0x585067(0x1ae)]-0x1];_0x38d3b2?_0x35675d(_0x585243,{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x38d3b2}):_0x4c6b4(_0x585243,_0x518689);},_0x58a5af=async(_0x29f387,_0x1d4a68)=>{const _0x38ea1d=_0x1b6ff0;await _0x37c39f(_0x29f387[_0x38ea1d(0x3c9)](_0x34b2f4=>_0x5918c4(_0x34b2f4))[_0x38ea1d(0x150)](_0x4c2994=>!!_0x4c2994)[_0x38ea1d(0x150)](_0x5f42e4=>_0x5f42e4[_0x38ea1d(0x24d)]!==!0x0!==_0x1d4a68)[_0x38ea1d(0x3c9)](_0x186e5a=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x186e5a[_0x38ea1d(0x237)],'hidden':!_0x1d4a68})));},_0x33036c=async(_0x41f3ee,_0x54e0d7)=>{const _0x553291=_0x1b6ff0;await _0x37c39f(_0x41f3ee[_0x553291(0x3c9)](_0x426cf1=>_0x5918c4(_0x426cf1))[_0x553291(0x150)](_0x5a0c06=>!!_0x5a0c06)[_0x553291(0x150)](_0x1e3738=>_0x1e3738[_0x553291(0x3a1)]!==!0x1!==_0x54e0d7)[_0x553291(0x3c9)](_0x15128a=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x15128a[_0x553291(0x237)],'selectable':_0x54e0d7})));},_0x25c998=_0x4d1429=>{const _0x587b16=_0x1b6ff0;let _0x4ca49b=_0x5918c4(_0x4d1429);if(_0x4ca49b)return _0x33036c([_0x4d1429],_0x4ca49b[_0x587b16(0x3a1)]===!0x1);},_0x5ec528=async(_0x430b2b,_0x551952)=>{const _0x1f1503=_0x1b6ff0;var _0x2fabbc;let _0x3944cc=Wi(_0x551952);(((_0x2fabbc=_0x5918c4(_0x430b2b))==null?void 0x0:_0x2fabbc[_0x1f1503(0x197)])??void 0x0)!==_0x3944cc&&await _0x3dced5(_0x430b2b,{'name':_0x3944cc});},_0x1c45c9=async(_0xfc435f,_0x40be81)=>{const _0x1a4376=_0x1b6ff0;var _0x22bc99;let _0x14658f=Wi(_0x40be81);(((_0x22bc99=_0x5918c4(_0xfc435f))==null?void 0x0:_0x22bc99[_0x1a4376(0x1ec)])??void 0x0)!==_0x14658f&&await _0x3dced5(_0xfc435f,{'description':_0x14658f});},_0xe0991b=async(_0x33b16b,_0x4847d6)=>{_0x518689&&_0x2e7731&&await _0x44a32d['executeCommand'](_0x4e0df7['id'],{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingIds':[_0x33b16b],'arrangeType':_0x4847d6});};return!_0x518689||!_0x2e7731?_0xcdc9dc('div',{'className':_0x1b6ff0(0x1c7),'children':_0x48002f[_0x1b6ff0(0x1d1)]}):_0xcdc9dc(_0xc50bb8,{'labels':_0x48002f,'items':_0x2d481d,'selectedIds':_0x3e7f87,'focusedId':_0x1f4c5e,'showHeader':!0x1,'onSelect':_0x34186c,'onSetVisible':_0x58a5af,'onSetSelectable':_0x33036c,'onCommitName':_0x5ec528,'onCommitDescription':_0x1c45c9,'onMoveForward':async _0x5f3f1a=>_0xe0991b(_0x5f3f1a,_0x5de8db[_0x1b6ff0(0x285)]),'onMoveBackward':async _0x1f4f28=>_0xe0991b(_0x1f4f28,_0x5de8db[_0x1b6ff0(0x295)]),'onToggleSelectable':_0x25c998});}function qi(){return _0xcdc9dc(Ki,{'PanelComponent':_0x2083db});}let Ji=class extends _0x2c7179{constructor(_0x378de9,_0x25e3e0){const _0x36edd5=_0x244912;super(),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](jr,qi)),this[_0x36edd5(0x14a)](_0x25e3e0[_0x36edd5(0x2a8)]({'BottomIcon':_0xe20eb,'FlipHorizontalIcon':_0x183126,'FlipVerticalIcon':_0x3dabc1,'MoveDownIcon':_0x1bee1c,'MoveUpIcon':_0x368783,'ObjectLayersIcon':_0x4809c9,'ShapeFormatSettingIcon':_0x1516df,'TopmostIcon':_0x1f7182})),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](Vr,Jr)),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](Hr,Gr)),_0x378de9['get'](_0x184fa8)||this[_0x36edd5(0x14a)](_0x378de9['register'](_0x184fa8,Kr));}};function _0x4e9b(_0x1f63ca,_0x522d12){_0x1f63ca=_0x1f63ca-0x13f;const _0x2c7e0f=_0x2c7e();let _0x4e9b7c=_0x2c7e0f[_0x1f63ca];return _0x4e9b7c;}Ji=Y([J(0x0,_0x318433(_0x56d3ac)),J(0x1,_0x318433(_0x40e0f9))],Ji);let $=class extends _0x2c7179{constructor(_0x2d3024){const _0x273d69=_0x244912;super(),this[_0x273d69(0x265)]=_0x2d3024,q(this,_0x273d69(0x22b),new _0x170955(null)),q(this,_0x273d69(0x256),this[_0x273d69(0x22b)]['asObservable']()),q(this,_0x273d69(0x313),new _0x170955(!0x1)),q(this,'onSavingEditorData$',this[_0x273d69(0x313)][_0x273d69(0x1f2)]()),q(this,_0x273d69(0x1cb),void 0x0),this[_0x273d69(0x14a)](this['_permissionService'][_0x273d69(0x236)]['subscribe'](()=>{const _0x304414=_0x273d69;let _0x5b0cdc=this[_0x304414(0x209)]();_0x5b0cdc!=null&&_0x5b0cdc['visible']&&!this[_0x304414(0x38a)](_0x5b0cdc)&&this['setEditing'](null);}));}[_0x244912(0x346)](){const _0x24d639=_0x244912;this['_clearCompletionFrame'](),this[_0x24d639(0x22b)][_0x24d639(0x3ac)](null),this[_0x24d639(0x22b)]['complete'](),this[_0x24d639(0x313)]['next'](!0x1),this[_0x24d639(0x313)][_0x24d639(0x2c4)](),super[_0x24d639(0x346)]();}[_0x244912(0x1ca)](_0x2e3b01){const _0x3a9236=_0x244912;(_0x2e3b01==null||!_0x2e3b01[_0x3a9236(0x27e)]||this[_0x3a9236(0x38a)](_0x2e3b01))&&(this[_0x3a9236(0x2b0)](),this[_0x3a9236(0x22b)][_0x3a9236(0x3ac)](_0x2e3b01),(_0x2e3b01==null||_0x2e3b01['visible']&&this['_onSavingEditorData$'][_0x3a9236(0x2d8)]())&&this['_onSavingEditorData$'][_0x3a9236(0x3ac)](!0x1));}[_0x244912(0x2f6)](_0xb768e9){const _0x45e506=_0x244912;this['_onSavingEditorData$'][_0x45e506(0x3ac)](_0xb768e9);}[_0x244912(0x209)](){const _0x548965=_0x244912;return this['_editingParams$'][_0x548965(0x2d8)]();}[_0x244912(0x38a)](_0x3b7023){const _0x475b25=_0x244912;let _0x39bf22=this[_0x475b25(0x265)][_0x475b25(0x2d6)](new _0x59c9a1(_0x3b7023['unitId'])['id']),_0x3a82be=this['_permissionService'][_0x475b25(0x2d6)](new _0x5ec863(_0x3b7023[_0x475b25(0x21f)],_0x3b7023[_0x475b25(0x1c5)])['id']);return((_0x39bf22==null?void 0x0:_0x39bf22['value'])??!0x0)&&((_0x3a82be==null?void 0x0:_0x3a82be[_0x475b25(0x3de)])??!0x0);}['completeEditing'](_0x3c8fad){const _0x36b6f9=_0x244912;let _0x4738a9=this[_0x36b6f9(0x209)]();_0x4738a9&&this[_0x36b6f9(0x1cb)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x36b6f9(0x1cb)]=requestAnimationFrame(()=>{const _0x228f7c=_0x36b6f9;this[_0x228f7c(0x1cb)]=void 0x0,this[_0x228f7c(0x209)]()===_0x4738a9&&this[_0x228f7c(0x1ca)](null);}));}[_0x244912(0x2b0)](){const _0x157f49=_0x244912;this[_0x157f49(0x1cb)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x157f49(0x1cb)]=void 0x0);}[_0x244912(0x35c)](){const _0x4f2534=_0x244912;this[_0x4f2534(0x209)]()&&this[_0x4f2534(0x1ca)](null);}};$=Y([J(0x0,_0x10d99e)],$);let Yi=class extends _0x2c7179{constructor(_0x261758,_0x56f6e8,_0x2a9866,_0x103625,_0x158e11,_0x3e6193){const _0x2b121e=_0x244912;super(),this['_context']=_0x261758,this[_0x2b121e(0x391)]=_0x56f6e8,this[_0x2b121e(0x29f)]=_0x2a9866,this['_drawingManagerService']=_0x103625,this[_0x2b121e(0x210)]=_0x158e11,this[_0x2b121e(0x288)]=_0x3e6193,q(this,'_lastEditingShapeKey',null),this[_0x2b121e(0x225)](),this['_initSelection'](),this[_0x2b121e(0x1e4)]();}[_0x244912(0x225)](){const _0x4aef0b=_0x244912;let {scene:_0x2591d2}=this['_context'];this[_0x4aef0b(0x14a)](_0x2591d2[_0x4aef0b(0x398)][_0x4aef0b(0x318)](_0x571b97=>{const _0x5c7489=_0x4aef0b;let {offsetX:_0x230b6a,offsetY:_0x43c2fc}=_0x571b97,_0x5cdcc7=_0x2591d2[_0x5c7489(0x2fa)](_0x145e25['FromArray']([_0x230b6a,_0x43c2fc]));if(_0x5cdcc7 instanceof Er){let _0x13ef6a=this[_0x5c7489(0x288)][_0x5c7489(0x35b)](_0x5cdcc7[_0x5c7489(0x21f)],_0x5cdcc7[_0x5c7489(0x1c5)],_0x5cdcc7[_0x5c7489(0x19c)]);if(_0x3c2fe3(this['_sheetsShapeService']['getShapeType'](_0x5cdcc7['unitId'],_0x5cdcc7[_0x5c7489(0x1c5)],_0x5cdcc7[_0x5c7489(0x19c)]))||_0x13ef6a!=null&&_0x13ef6a['getShapeData']()[_0x5c7489(0x141)])return;this['_shapeTextEditingService'][_0x5c7489(0x1ca)]({'visible':!0x0,'unitId':_0x5cdcc7[_0x5c7489(0x21f)],'subUnitId':_0x5cdcc7[_0x5c7489(0x1c5)],'shapeId':_0x5cdcc7[_0x5c7489(0x19c)],'shapeKey':_0x5cdcc7[_0x5c7489(0x206)]});}}));}['_initSelection'](){const _0x47b7cd=_0x244912;this[_0x47b7cd(0x14a)](this['_drawingManagerService'][_0x47b7cd(0x2fc)][_0x47b7cd(0x305)](_0x3ce9c4=>{const _0x4c8b7d=_0x47b7cd;if(_0x3ce9c4[_0x4c8b7d(0x1ae)]===0x1){let _0x240dfd=_0x3ce9c4[0x0],_0xfdaaff=this[_0x4c8b7d(0x239)][_0x4c8b7d(0x3a5)](_0x240dfd);if((_0xfdaaff==null?void 0x0:_0xfdaaff[_0x4c8b7d(0x185)])===_0x54d53a[_0x4c8b7d(0x1b1)]){var _0x5841a8;let _0x37e654=this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x209)]();if((_0x37e654==null?void 0x0:_0x37e654[_0x4c8b7d(0x19c)])===_0x240dfd[_0x4c8b7d(0x237)]&&_0x37e654[_0x4c8b7d(0x27e)])return;let _0x1d46da=_0x3c2fe3(this['_sheetsShapeService'][_0x4c8b7d(0x382)](_0x240dfd['unitId'],_0x240dfd[_0x4c8b7d(0x1c5)],_0x240dfd[_0x4c8b7d(0x237)])),_0x299022=!!((_0x5841a8=this[_0x4c8b7d(0x288)][_0x4c8b7d(0x35b)](_0x240dfd[_0x4c8b7d(0x21f)],_0x240dfd['subUnitId'],_0x240dfd[_0x4c8b7d(0x237)]))!=null&&_0x5841a8['getShapeData']()[_0x4c8b7d(0x141)]);(_0x1d46da||_0x299022)&&this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x1ca)](null);}else this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x3f6)]();}else this['_shapeTextEditingService'][_0x4c8b7d(0x3f6)]();})),this[_0x47b7cd(0x14a)](this[_0x47b7cd(0x239)][_0x47b7cd(0x16d)][_0x47b7cd(0x305)](_0x337839=>{const _0x218f18=_0x47b7cd;let _0x2dbdfd=this[_0x218f18(0x29f)]['getEditing']();_0x2dbdfd&&_0x337839[_0x218f18(0x22e)](_0x2c63c0=>_0x2c63c0[_0x218f18(0x237)]===_0x2dbdfd[_0x218f18(0x19c)])&&this[_0x218f18(0x29f)][_0x218f18(0x1ca)](null);}));}[_0x244912(0x1e4)](){const _0x5e87af=_0x244912;this['disposeWithMe'](this['_shapeTextEditingService'][_0x5e87af(0x256)][_0x5e87af(0x305)](_0xb4bbce=>{const _0xc92173=_0x5e87af;let {scene:_0x399f4a}=this[_0xc92173(0x15d)];if(this[_0xc92173(0x28b)]){let _0x50aa1f=_0x399f4a[_0xc92173(0x251)](this[_0xc92173(0x28b)]);_0x50aa1f&&_0x50aa1f[_0xc92173(0x1ca)](!0x1);}if(_0xb4bbce){let _0x3c76e4=!!_0xb4bbce['visible'],_0x259509=_0x399f4a[_0xc92173(0x251)](_0xb4bbce[_0xc92173(0x2ee)]);_0x259509&&(_0x259509[_0xc92173(0x1ca)](_0x3c76e4),this['_lastEditingShapeKey']=_0xb4bbce[_0xc92173(0x2ee)]),this[_0xc92173(0x210)][_0xc92173(0x234)](_0x3e7b7b,_0x3c76e4);}else this[_0xc92173(0x28b)]=null,this[_0xc92173(0x210)][_0xc92173(0x234)](_0x3e7b7b,!0x1);}));}};Yi=Y([J(0x1,_0x318433(_0x54646c)),J(0x2,_0x318433($)),J(0x3,_0x1f50fa),J(0x4,_0x21e25a),J(0x5,_0x318433(_0x5594a6))],Yi);var Xi=class extends Yi{[_0x244912(0x225)](){const _0x2a038a=_0x244912;let {scene:_0x552859}=this['_context'],_0x542877=this['_injector'][_0x2a038a(0x1e0)](_0x349883);this[_0x2a038a(0x14a)](_0x552859[_0x2a038a(0x398)][_0x2a038a(0x318)](_0x35f52c=>{const _0x28ef02=_0x2a038a;let {offsetX:_0x43aa2f,offsetY:_0x69ca88}=_0x35f52c,_0x22cdcd=_0x552859['pick'](_0x145e25['FromArray']([_0x43aa2f,_0x69ca88]));if(!(_0x22cdcd instanceof Er))return;let _0x843641=this[_0x28ef02(0x288)]['getShapeModel'](_0x22cdcd[_0x28ef02(0x21f)],_0x22cdcd[_0x28ef02(0x1c5)],_0x22cdcd[_0x28ef02(0x19c)]);_0x3c2fe3(this[_0x28ef02(0x288)][_0x28ef02(0x382)](_0x22cdcd[_0x28ef02(0x21f)],_0x22cdcd[_0x28ef02(0x1c5)],_0x22cdcd[_0x28ef02(0x19c)]))||_0x843641!=null&&_0x843641[_0x28ef02(0x2b7)]()[_0x28ef02(0x141)]||_0x542877[_0x28ef02(0x170)]('text',{'hostType':_0x37e7a9['UNIVER_SHEET'],'unitId':_0x22cdcd[_0x28ef02(0x21f)],'subUnitId':_0x22cdcd[_0x28ef02(0x1c5)],'shapeId':_0x22cdcd[_0x28ef02(0x19c)]});}));}};const Zi={...Ii};let Qi=class extends _0x2c7179{constructor(_0x5a4fa8,_0x4b6148,_0x45e743,_0x2a3b7e,_0x2f78ec,_0x3539ff,_0x29c894,_0x230357){const _0x57abb9=_0x244912;super(),this[_0x57abb9(0x3f7)]=_0x5a4fa8,this['_sheetsShapeService']=_0x4b6148,this['_commandService']=_0x45e743,this[_0x57abb9(0x239)]=_0x2a3b7e,this[_0x57abb9(0x19d)]=_0x2f78ec,this[_0x57abb9(0x210)]=_0x3539ff,this['_renderManagerService']=_0x29c894,this[_0x57abb9(0x29f)]=_0x230357,q(this,_0x57abb9(0x28e),null),this[_0x57abb9(0x3f7)][_0x57abb9(0x390)](Zi),this[_0x57abb9(0x1d2)](),this[_0x57abb9(0x14a)](this[_0x57abb9(0x29f)][_0x57abb9(0x256)]['subscribe'](_0x5ef871=>{_0x5ef871&&this['_clearFocusedShape']();}));}[_0x244912(0x1e5)](){const _0x5eb5ad=_0x244912;this[_0x5eb5ad(0x28e)]||=this[_0x5eb5ad(0x14a)](_0x50a450(this[_0x5eb5ad(0x2f0)],_0x37e7a9[_0x5eb5ad(0x2c9)],_0x5f19b3=>this['_popupMenuListener'](_0x5f19b3)));}[_0x244912(0x1d2)](){const _0x30374e=_0x244912;this[_0x30374e(0x19d)][_0x30374e(0x149)](_0x54d53a['DRAWING_SHAPE'],(_0x412f7d,_0x2a260d,_0x4d8b77,_0x410342)=>{const _0x534c3e=_0x30374e;let _0x3a7971=this[_0x534c3e(0x288)][_0x534c3e(0x3e4)](_0x412f7d,_0x2a260d,_0x4d8b77),_0x2b9b5f=this[_0x534c3e(0x288)][_0x534c3e(0x1fa)](_0x412f7d,_0x2a260d,_0x4d8b77),_0x2cb279=_0x3a7971!==void 0x0&&!_0x3c2fe3(_0x3a7971)&&!(_0x2b9b5f!=null&&_0x2b9b5f['formulaBinding']);return[{'label':_0x534c3e(0x35d),'index':0x0,'commandId':Bi['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'mode':_0x534c3e(0x316)},'disable':!0x1},..._0x2cb279?[{'label':_0x534c3e(0x291),'index':0x1,'commandId':Bi['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'mode':'text'},'disable':!0x1}]:[],{'label':_0x534c3e(0x31a),'index':0x2,'commandId':_0x4d296c['id'],'commandParams':{'unitId':_0x412f7d,'drawings':[{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'drawingType':_0x410342}]},'disable':!0x1},{'label':_0x534c3e(0x2ff),'index':0x3,'commandId':_0x3cca56['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'shapeId':_0x4d8b77,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x3cca56['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'shapeId':_0x4d8b77,'flipV':!0x0},'disable':!0x1}];},_0x30374e(0x20c));}[_0x244912(0x1c1)](_0x1ec957){const _0x45de13=_0x244912;let _0x321eda=new _0x4cf05e(),_0x531dfe=null,_0x584d80=()=>{const _0x1de4be=_0x4e9b;if(!_0x531dfe)return;let _0x550715=this[_0x1de4be(0x239)][_0x1de4be(0x2a0)](),_0x52f52d=_0x550715[_0x1de4be(0x1ae)]===0x0||_0x550715[_0x1de4be(0x1ae)]===0x1&&_0x550715[_0x1de4be(0x22e)](_0x1824f1=>_0x1824f1[_0x1de4be(0x21f)]===(_0x531dfe==null?void 0x0:_0x531dfe['unitId'])&&_0x1824f1['subUnitId']===(_0x531dfe==null?void 0x0:_0x531dfe['subUnitId'])&&_0x1824f1[_0x1de4be(0x237)]===(_0x531dfe==null?void 0x0:_0x531dfe['drawingId']));_0x531dfe=null,_0x52f52d&&(this['_contextService']['setContextValue'](_0x15a415,!0x1),this[_0x1de4be(0x239)][_0x1de4be(0x1f3)](null));};return _0x321eda[_0x45de13(0x1a3)](_0x1ec957['createControl$'][_0x45de13(0x305)](()=>{const _0x445d23=_0x45de13;let _0x1e1bc0=_0x1ec957[_0x445d23(0x2ba)]();if(_0x1e1bc0[_0x445d23(0x17a)]>0x1){_0x584d80();return;}let _0x2e9e4b=_0x1e1bc0[_0x445d23(0x196)]()[_0x445d23(0x3ac)]()[_0x445d23(0x3de)];if(!_0x2e9e4b){_0x584d80();return;}let _0x964512=this[_0x445d23(0x239)][_0x445d23(0x28a)](_0x2e9e4b[_0x445d23(0x206)]);if(!_0x964512||_0x964512[_0x445d23(0x185)]!==_0x54d53a[_0x445d23(0x1b1)]){_0x584d80();return;}let {unitId:_0x335da1,subUnitId:_0x543b43,drawingId:_0x4bdc69}=_0x964512;_0x531dfe={'unitId':_0x335da1,'subUnitId':_0x543b43,'drawingId':_0x4bdc69},this[_0x445d23(0x210)][_0x445d23(0x234)](_0x15a415,!0x0),this['_drawingManagerService']['getFocusDrawings']()[_0x445d23(0x2f4)](_0xfbd86b=>_0xfbd86b[_0x445d23(0x21f)]===_0x335da1&&_0xfbd86b[_0x445d23(0x1c5)]===_0x543b43&&_0xfbd86b[_0x445d23(0x237)]===_0x4bdc69)||this[_0x445d23(0x239)][_0x445d23(0x1f3)]([{'unitId':_0x335da1,'subUnitId':_0x543b43,'drawingId':_0x4bdc69}]);})),_0x321eda[_0x45de13(0x1a3)](_0x1ec957[_0x45de13(0x26f)]['subscribe'](()=>{_0x584d80();})),_0x21ce23(()=>{_0x321eda['dispose'](),_0x584d80();});}[_0x244912(0x3e7)](){const _0x5b3638=_0x244912;this[_0x5b3638(0x210)]['setContextValue'](_0x15a415,!0x1),this[_0x5b3638(0x239)][_0x5b3638(0x1f3)](null);}};Qi=Y([J(0x0,_0x2ed3c1),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x4aa13b),J(0x3,_0x1f50fa),J(0x4,_0x318433(_0xf74177)),J(0x5,_0x21e25a),J(0x6,_0xc8f10c),J(0x7,_0x318433($))],Qi);function $i(_0x373b12,_0x4f2fbc,_0x42f951,_0x2f1325){const _0x55bcb5=_0x244912;let _0xb3c3c0=_0x48a662(_0x373b12,_0x4f2fbc,_0x42f951),_0x30228a=[];for(let _0x836a18 of _0x4f2fbc){let _0x2c0829=_0xb3c3c0[_0x55bcb5(0x14c)][_0x55bcb5(0x1e0)](_0x836a18['drawingId']),_0x59916d=_0x2f1325(_0x836a18);_0x2c0829&&_0x59916d&&_0x30228a['push']({'targetShapeId':_0x2c0829,'source':_0x59916d});}return _0x30228a;}let ea=class extends _0x2c7179{constructor(_0x374a61,_0x107711,_0x11f91c,_0x1402f4){const _0x4daddf=_0x244912;super(),this['_univerInstanceService']=_0x374a61,this['_sheetInterceptorService']=_0x107711,this[_0x4daddf(0x21b)]=_0x11f91c,this[_0x4daddf(0x288)]=_0x1402f4,this[_0x4daddf(0x1d4)]();}[_0x244912(0x1d4)](){const _0x2f80a5=_0x244912;this[_0x2f80a5(0x14a)](this[_0x2f80a5(0x179)]['interceptCommand']({'getMutations':_0x4375a1=>{const _0x1104c2=_0x2f80a5;if(_0x4375a1['id']===_0x56b5fe['id']){let _0x3323e3=_0x4b1c62(this['_univerInstanceService'],_0x4375a1['params']);if(!_0x3323e3)return{'redos':[],'undos':[]};let {unitId:_0x2bae71,subUnitId:_0x13a759}=_0x3323e3,_0xf7f2aa=this[_0x1104c2(0x21b)][_0x1104c2(0x1c8)](_0x2bae71,_0x13a759),_0x520e60=Object['values'](_0xf7f2aa)[_0x1104c2(0x150)](_0x143646=>_0x143646[_0x1104c2(0x185)]===_0x54d53a[_0x1104c2(0x1b1)]);if(_0x520e60[_0x1104c2(0x1ae)]===0x0)return{'redos':[],'undos':[]};let _0x33b072=[],_0x205952=[];for(let _0x1b0a2d=0x0;_0x1b0a2d<_0x520e60[_0x1104c2(0x1ae)];_0x1b0a2d++){let _0x51cd55=_0x520e60[_0x1b0a2d],_0x187084=this['_sheetsShapeService'][_0x1104c2(0x35b)](_0x51cd55[_0x1104c2(0x21f)],_0x51cd55[_0x1104c2(0x1c5)],_0x51cd55[_0x1104c2(0x237)]);_0x187084&&(_0x33b072[_0x1104c2(0x399)]({'id':_0xd0fb5f['id'],'params':{'unitId':_0x2bae71,'subUnitId':_0x13a759,'shapeId':_0x51cd55[_0x1104c2(0x237)]}}),_0x205952[_0x1104c2(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x2bae71,'subUnitId':_0x13a759,'shapeId':_0x51cd55[_0x1104c2(0x237)],'shapeType':_0x187084[_0x1104c2(0x382)](),'shapeData':JSON[_0x1104c2(0x3be)](JSON['stringify'](_0x187084[_0x1104c2(0x2b7)]()))}}));}return{'redos':_0x33b072,'undos':_0x205952};}if(_0x4375a1['id']===_0x2b67e1['id']){let {unitId:_0x4238f8,subUnitId:_0x2b8083,targetSubUnitId:_0x1b667b,copyContext:_0x364b4a}=_0x4375a1[_0x1104c2(0x348)];if(!_0x4238f8||!_0x2b8083||!_0x1b667b)return{'redos':[],'undos':[]};let _0x194555=this[_0x1104c2(0x21b)][_0x1104c2(0x1c8)](_0x4238f8,_0x2b8083),_0x41f920=Object['values'](_0x194555)[_0x1104c2(0x150)](_0x4d9791=>_0x4d9791['drawingType']===_0x54d53a[_0x1104c2(0x1b1)]);if(_0x41f920['length']===0x0)return{'redos':[],'undos':[]};let _0x1afe92=$i(_0x364b4a,_0x41f920,{'unitId':_0x4238f8,'sourceSubUnitId':_0x2b8083,'targetSubUnitId':_0x1b667b},_0x1635ed=>{const _0x5a4279=_0x1104c2;let _0x3b5daf=this[_0x5a4279(0x288)][_0x5a4279(0x35b)](_0x1635ed[_0x5a4279(0x21f)],_0x1635ed['subUnitId'],_0x1635ed['drawingId']);if(_0x3b5daf)return{'shapeType':_0x3b5daf[_0x5a4279(0x382)](),'shapeData':JSON[_0x5a4279(0x3be)](JSON[_0x5a4279(0x3c6)](_0x3b5daf[_0x5a4279(0x2b7)]()))};}),_0x546656=[],_0x4e59d0=[];for(let {targetShapeId:_0x597f45,source:_0x16daec}of _0x1afe92)_0x546656[_0x1104c2(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x4238f8,'subUnitId':_0x1b667b,'shapeId':_0x597f45,'shapeType':_0x16daec[_0x1104c2(0x1b9)],'shapeData':_0x16daec[_0x1104c2(0x17d)]}}),_0x4e59d0[_0x1104c2(0x399)]({'id':_0xd0fb5f['id'],'params':{'unitId':_0x4238f8,'subUnitId':_0x1b667b,'shapeId':_0x597f45}});return{'redos':_0x546656,'undos':_0x4e59d0};}return{'redos':[],'undos':[]};}}));}};ea=Y([J(0x0,_0x318433(_0x595744)),J(0x1,_0x318433(_0x5dcb53)),J(0x2,_0x318433(_0x35f22e)),J(0x3,_0x318433(_0x5594a6))],ea);let ta=class extends _0x2c7179{constructor(_0x243040,_0x4b69b5,_0x1ff86b,_0x57c88f,_0x55204f,_0x116ebc){const _0x28522f=_0x244912;super(),this[_0x28522f(0x2d0)]=_0x243040,this[_0x28522f(0x2f0)]=_0x4b69b5,this[_0x28522f(0x239)]=_0x1ff86b,this['_currentUniverService']=_0x57c88f,this[_0x28522f(0x33f)]=_0x55204f,this['_sheetDrawingShapeRenderController']=_0x116ebc,q(this,_0x28522f(0x3d3),new Set()),this['_initialize']();}['_initialize'](){const _0x149dd4=_0x244912;this[_0x149dd4(0x201)](),this[_0x149dd4(0x349)](),this[_0x149dd4(0x37a)]();}['_drawingAddListener'](){const _0x40a11c=_0x244912;this[_0x40a11c(0x14a)](this[_0x40a11c(0x239)][_0x40a11c(0x32e)]['subscribe'](_0x2b46d0=>{this['_insertShapes'](_0x2b46d0);}));}[_0x244912(0x349)](){const _0x19485b=_0x244912;this['disposeWithMe'](this[_0x19485b(0x2d0)][_0x19485b(0x356)]((_0x148af8,_0x37d574)=>{const _0x311d54=_0x19485b;if(_0x148af8['id']===_0x4fa39c['id']){let {unitId:_0x5365f1,subUnitId:_0x5efea4,shapeId:_0x54030b}=_0x148af8['params'],_0x207356=this[_0x311d54(0x200)](_0x5365f1),_0x4d9af2=_0x5cc8a7({'unitId':_0x5365f1,'subUnitId':_0x5efea4,'drawingId':_0x54030b}),_0x3a7ce7=_0x207356==null?void 0x0:_0x207356[_0x311d54(0x229)][_0x311d54(0x251)](_0x4d9af2);_0x3a7ce7&&(this[_0x311d54(0x244)][_0x311d54(0x190)](_0x3a7ce7),this[_0x311d54(0x244)][_0x311d54(0x1bb)](_0x3a7ce7,{'unitId':_0x5365f1,'subUnitId':_0x5efea4,'shapeId':_0x54030b}),_0x3a7ce7[_0x311d54(0x23a)](!0x0));return;}if(_0x148af8['id']===_0x220ec8['id']){var _0x527f2a;let {unitId:_0xc40f45,subUnitId:_0x1e9ba7,shapeId:_0x434c85}=_0x148af8[_0x311d54(0x348)],_0x5abc48=this[_0x311d54(0x200)](_0xc40f45);if(_0x5abc48==null)return;let {scene:_0x48ca2b}=_0x5abc48,_0x3399f8=_0x5cc8a7({'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}),_0x31e740=_0x48ca2b[_0x311d54(0x251)](_0x3399f8);if(!((_0x527f2a=this[_0x311d54(0x2f0)][_0x311d54(0x276)](_0xc40f45))!=null&&_0x527f2a[_0x311d54(0x27b)](_0x307dc0)['getSkeleton'](_0x1e9ba7)))return!0x1;if(_0x31e740)return;if(_0x37d574!=null&&_0x37d574[_0x311d54(0x30b)]){queueMicrotask(()=>{const _0x1bd3a7=_0x311d54;this['_disposed']||this[_0x1bd3a7(0x373)]([{'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}]);});return;}this[_0x311d54(0x373)]([{'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}]);}}));}[_0x244912(0x37a)](){const _0x21e7eb=_0x244912;this[_0x21e7eb(0x14a)](this[_0x21e7eb(0x239)][_0x21e7eb(0x1cd)][_0x21e7eb(0x305)](_0x39a966=>{const _0x21d94a=_0x21e7eb;_0x39a966[_0x21d94a(0x2b3)](_0x39bb0a=>{const _0x2def31=_0x21d94a;let {unitId:_0x322577,subUnitId:_0x322a47,drawingId:_0x218950}=_0x39bb0a,_0x2c1b24=this['_drawingManagerService']['getDrawingByParam'](_0x39bb0a);if(_0x2c1b24==null)return;let {transform:_0xebbf5d,drawingType:_0x432e34,srcRect:_0x49fb21,prstGeom:_0x2a568c}=_0x2c1b24;if(_0x432e34!==_0x54d53a[_0x2def31(0x1b1)])return;let _0x3030fb=this[_0x2def31(0x200)](_0x322577);if(_0x3030fb==null)return;let {scene:_0x952cbd,transformer:_0x5e07a8}=_0x3030fb;if(_0xebbf5d==null)return!0x0;let _0x425d0e=_0x5cc8a7({'unitId':_0x322577,'subUnitId':_0x322a47,'drawingId':_0x218950}),_0x532ea4=_0x952cbd[_0x2def31(0x251)](_0x425d0e);if(_0x532ea4==null)return!0x0;_0x532ea4['setSrcRect'](_0x49fb21),_0x532ea4[_0x2def31(0x37b)](_0x2a568c);});}));}['_insertShapes'](_0x45c5d5){const _0x410fd6=_0x244912;for(let _0x45b0b2 of _0x45c5d5){var _0x40056b;let {unitId:_0x1a3a14,subUnitId:_0x5773dd,drawingId:_0x88eec2}=_0x45b0b2,_0x4ed283=this[_0x410fd6(0x200)](_0x1a3a14),_0x2a76dc=(_0x40056b=_0x23371e(this['_currentUniverService'],_0x1a3a14))==null?void 0x0:_0x40056b['subUnitId'];if(_0x4ed283==null||_0x2a76dc!==_0x5773dd)return;let _0x38163e=_0x5cc8a7({'unitId':_0x1a3a14,'subUnitId':_0x5773dd,'drawingId':_0x88eec2});if(this['_insertingShapeKeys'][_0x410fd6(0x33a)](_0x38163e)||_0x4ed283[_0x410fd6(0x229)][_0x410fd6(0x251)](_0x38163e)!=null)return;let _0x104aa2=this[_0x410fd6(0x239)]['getDrawingByParam'](_0x45b0b2);if(_0x104aa2==null||_0x104aa2[_0x410fd6(0x185)]!==_0x54d53a[_0x410fd6(0x1b1)])return;let _0x512bb7=_0x104aa2[_0x410fd6(0x36e)]||{};if(_0x3c2fe3(_0x512bb7[_0x410fd6(0x1b9)])){let _0x5c213f=_0x104aa2[_0x410fd6(0x1b7)];_0x5c213f&&(_0x104aa2[_0x410fd6(0x1b7)]={..._0x5c213f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x410fd6(0x1a3)](_0x38163e);try{this[_0x410fd6(0x244)][_0x410fd6(0x1da)](_0x104aa2,_0x4ed283[_0x410fd6(0x229)]);}finally{this['_insertingShapeKeys']['delete'](_0x38163e);}queueMicrotask(()=>{const _0x42a40f=_0x410fd6;if(this[_0x42a40f(0x32f)])return;let _0x1676c2=_0x5cc8a7(_0x45b0b2);if(!_0x4ed283[_0x42a40f(0x229)]['getObjectIncludeInGroup'](_0x1676c2))return;let _0x14bfeb=this['_drawingManagerService'][_0x42a40f(0x3a5)](_0x45b0b2);_0x14bfeb&&this[_0x42a40f(0x239)][_0x42a40f(0x2af)]([_0x14bfeb]);});}}[_0x244912(0x200)](_0x3ba5da){const _0x2ce5fd=_0x244912;if(_0x3ba5da==null)return;let _0x97c32c=this[_0x2ce5fd(0x2f0)][_0x2ce5fd(0x276)](_0x3ba5da),_0x43e995=_0x97c32c==null?void 0x0:_0x97c32c[_0x2ce5fd(0x229)];return _0x43e995==null?null:{'scene':_0x43e995,'transformer':_0x43e995['getTransformerByCreate']()};}};ta=Y([J(0x0,_0x4aa13b),J(0x1,_0xc8f10c),J(0x2,_0x1f50fa),J(0x3,_0x595744),J(0x4,_0x318433(_0x2346f6)),J(0x5,_0x318433(X))],ta);const na={'normal':{'fill':_0x59f579[_0x244912(0x292)],'stroke':_0x59f579['cxnPointStroke'],'strokeWidth':_0x59f579[_0x244912(0x3ba)]},'highlighted':{'fill':_0x244912(0x2f7),'stroke':'#1a73e8','strokeWidth':0x2}};var ra=class extends _0x4546bd{constructor(_0xcf14b4,_0x4ce6d8){const _0x3e2d13=_0x244912;super(_0xcf14b4,_0x4ce6d8),q(this,_0x3e2d13(0x25b),''),q(this,_0x3e2d13(0x1dc),-0x1),q(this,_0x3e2d13(0x20a),''),q(this,'_subUnitId',''),q(this,'_isHighlighted',!0x1),_0x4ce6d8&&this[_0x3e2d13(0x2d4)](_0x4ce6d8);}[_0x244912(0x144)](){const _0x154982=_0x244912;return{'unitId':this[_0x154982(0x20a)],'subUnitId':this[_0x154982(0x1e9)],'shapeId':this[_0x154982(0x25b)],'cxnIndex':this[_0x154982(0x1dc)]};}[_0x244912(0x20f)](_0x52fefe){const _0x59d8df=_0x244912;this[_0x59d8df(0x270)]!==_0x52fefe&&(this[_0x59d8df(0x270)]=_0x52fefe,this[_0x59d8df(0x23a)](!0x0));}[_0x244912(0x3e1)](){const _0x2b11fc=_0x244912;return this[_0x2b11fc(0x270)];}[_0x244912(0x2d4)](_0x204417){const _0x3c5eec=_0x244912;_0x204417[_0x3c5eec(0x261)]!==void 0x0&&(this['_targetShapeId']=_0x204417[_0x3c5eec(0x261)]),_0x204417['cxnIndex']!==void 0x0&&(this[_0x3c5eec(0x1dc)]=_0x204417['cxnIndex']),_0x204417['unitId']!==void 0x0&&(this[_0x3c5eec(0x20a)]=_0x204417[_0x3c5eec(0x21f)]),_0x204417['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x204417[_0x3c5eec(0x1c5)]),_0x204417[_0x3c5eec(0x3e1)]!==void 0x0&&(this['_isHighlighted']=_0x204417[_0x3c5eec(0x3e1)]),this['transformByState']({'width':_0x204417[_0x3c5eec(0x326)]??_0x59f579[_0x3c5eec(0x15b)]*0x2,'height':_0x204417[_0x3c5eec(0x1ba)]??_0x59f579[_0x3c5eec(0x15b)]*0x2});}[_0x244912(0x16b)](_0xd8c0d6){const _0x33ef29=_0x244912;let _0x1a30bc=this[_0x33ef29(0x270)]?na[_0x33ef29(0x2b4)]:na[_0x33ef29(0x302)];_0x2e680e[_0x33ef29(0x31e)](_0xd8c0d6,{'radius':_0x59f579[_0x33ef29(0x15b)],'fill':_0x1a30bc['fill'],'stroke':_0x1a30bc[_0x33ef29(0x3cb)],'strokeWidth':_0x1a30bc['strokeWidth'],'evented':!0x0});}};let ia=class extends _0x2c7179{constructor(_0x426e88,_0x52cad0,_0x35ccba,_0x5d6247){const _0x179e66=_0x244912;super(),this[_0x179e66(0x15d)]=_0x426e88,this[_0x179e66(0x2f0)]=_0x52cad0,this[_0x179e66(0x239)]=_0x35ccba,this['_sheetsShapeService']=_0x5d6247,q(this,_0x179e66(0x1f8),[]),q(this,_0x179e66(0x2b1),null),q(this,_0x179e66(0x241),-0x1),q(this,'_currentScene',null),q(this,'_unitId',''),q(this,_0x179e66(0x1e9),''),q(this,_0x179e66(0x26e),null);}['startConnectionDetection'](_0x2e5aec,_0x13fc6e,_0x6da088,_0x54259a){const _0x43928a=_0x244912;this[_0x43928a(0x2e9)]=_0x2e5aec,this['_unitId']=_0x13fc6e,this[_0x43928a(0x1e9)]=_0x6da088,this[_0x43928a(0x26e)]=_0x54259a;}[_0x244912(0x336)](_0x167675){const _0x10f8a9=_0x244912;if(!this[_0x10f8a9(0x2e9)])return null;let _0x4244d1=this[_0x10f8a9(0x245)](_0x167675);return _0x4244d1?(this[_0x10f8a9(0x2b1)]!==_0x4244d1[_0x10f8a9(0x19c)]&&(this[_0x10f8a9(0x180)](),this[_0x10f8a9(0x1f5)](_0x4244d1['shapeId'],_0x4244d1[_0x10f8a9(0x395)]),this[_0x10f8a9(0x2b1)]=_0x4244d1[_0x10f8a9(0x19c)]),this[_0x10f8a9(0x268)](_0x167675)):(this[_0x10f8a9(0x2b1)]!==null&&(this[_0x10f8a9(0x180)](),this['_activeTargetShapeId']=null),null);}[_0x244912(0x18b)](){const _0x337231=_0x244912;this['_clearConnectionSites'](),this['_currentScene']=null,this[_0x337231(0x2b1)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x337231(0x26e)]=null;}[_0x244912(0x216)](){const _0xa98235=_0x244912;return this[_0xa98235(0x2b1)]===null||this[_0xa98235(0x241)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0xa98235(0x241)]};}[_0x244912(0x245)](_0x2917cd){const _0x4a72fc=_0x244912;let _0x4d893f=this[_0x4a72fc(0x239)][_0x4a72fc(0x1c8)](this[_0x4a72fc(0x20a)],this[_0x4a72fc(0x1e9)]);for(let _0xc1dd3e of Object['keys'](_0x4d893f)){if(_0xc1dd3e===this[_0x4a72fc(0x26e)]||_0x4d893f[_0xc1dd3e][_0x4a72fc(0x185)]!==_0x54d53a['DRAWING_SHAPE'])continue;let _0x3af02b=this['_sheetsShapeService'][_0x4a72fc(0x35b)](this['_unitId'],this['_subUnitId'],_0xc1dd3e);if(!_0x3af02b||_0x3c2fe3(_0x3af02b[_0x4a72fc(0x382)]())||_0x3af02b['getConnectionSiteList']()[_0x4a72fc(0x1ae)]===0x0||!this[_0x4a72fc(0x2e9)])continue;let _0x50f949=_0x5cc8a7({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xc1dd3e}),_0x5ba7fe=this['_currentScene'][_0x4a72fc(0x251)](_0x50f949);if(!_0x5ba7fe)continue;let {left:_0x362d99,top:_0x3d5709,width:_0x5078c5,height:_0x1cf461}=_0x5ba7fe['getRealBound'](),_0xe459d2=_0x362d99+_0x5078c5/0x2,_0xa3d554=_0x3d5709+_0x1cf461/0x2,_0x59dd03=_0x5ba7fe[_0x4a72fc(0x1b7)][_0x4a72fc(0x1ef)](),_0x4a7747=new _0x16a726([_0x59dd03[0x0],_0x59dd03[0x1],_0x59dd03[0x2],_0x59dd03[0x3],_0xe459d2,_0xa3d554]),_0x2a59fc=_0x5ba7fe['getParent'](),_0x5356de=(_0x5ba7fe[_0x4a72fc(0x27d)]&&(_0x2a59fc==null?void 0x0:_0x2a59fc[_0x4a72fc(0x274)])===_0x511859['GROUP']?_0x2a59fc[_0x4a72fc(0x162)]['multiply'](_0x4a7747):_0x4a7747)[_0x4a72fc(0x2ca)]()[_0x4a72fc(0x34b)](_0x2917cd),_0x1ca6a6=_0x5078c5/0x2,_0x5aa783=_0x1cf461/0x2;if(_0x5356de['x']>=-_0x1ca6a6-0x5&&_0x5356de['x']<=_0x1ca6a6+0x5&&_0x5356de['y']>=-_0x5aa783-0x5&&_0x5356de['y']<=_0x5aa783+0x5)return{'shapeId':_0xc1dd3e,'shapeModel':_0x3af02b};}return null;}['_showConnectionSites'](_0x223667,_0x1c51db){const _0x564cf1=_0x244912;if(!this[_0x564cf1(0x2e9)])return;let _0x82e591=_0x5cc8a7({'unitId':this[_0x564cf1(0x20a)],'subUnitId':this[_0x564cf1(0x1e9)],'drawingId':_0x223667}),_0x5e285c=this[_0x564cf1(0x2e9)]['getObjectIncludeInGroup'](_0x82e591);if(!_0x5e285c)return;let {left:_0x365866,top:_0x4b9e85,width:_0x188a0b,height:_0x3ccbd0}=_0x5e285c[_0x564cf1(0x38b)](),_0x256c29=_0x365866+_0x188a0b/0x2,_0x2445fe=_0x4b9e85+_0x3ccbd0/0x2,_0x46cbc4=_0x5e285c[_0x564cf1(0x1b7)][_0x564cf1(0x1ef)](),_0x8046e=new _0x16a726([_0x46cbc4[0x0],_0x46cbc4[0x1],_0x46cbc4[0x2],_0x46cbc4[0x3],_0x256c29,_0x2445fe]),_0x330b8a=_0x5e285c['getParent'](),_0x2f8a67=_0x5e285c[_0x564cf1(0x27d)]&&(_0x330b8a==null?void 0x0:_0x330b8a[_0x564cf1(0x274)])===_0x511859[_0x564cf1(0x258)]?_0x330b8a[_0x564cf1(0x162)]['multiply'](_0x8046e):_0x8046e;_0x1c51db['updateContext']({'width':_0x188a0b,'height':_0x3ccbd0});let _0x13897e=_0x1c51db[_0x564cf1(0x23d)]();for(let _0x34bb4f of _0x13897e){let _0x5d9481=_0x34bb4f['x']-_0x188a0b/0x2,_0x4fcfab=_0x34bb4f['y']-_0x3ccbd0/0x2,_0x1a8f0a=_0x2f8a67[_0x564cf1(0x34b)]({'x':_0x5d9481,'y':_0x4fcfab}),_0x349e3f=_0x1a8f0a['x'],_0x12346b=_0x1a8f0a['y'],_0x4622e0=new ra(_0x564cf1(0x1b3)+_0x223667+'-'+_0x34bb4f['index'],{'left':_0x349e3f-_0x59f579[_0x564cf1(0x15b)],'top':_0x12346b-_0x59f579[_0x564cf1(0x15b)],'targetShapeId':_0x223667,'cxnIndex':_0x34bb4f[_0x564cf1(0x2de)],'unitId':this[_0x564cf1(0x20a)],'subUnitId':this[_0x564cf1(0x1e9)],'width':_0x59f579[_0x564cf1(0x15b)]*0x2,'height':_0x59f579[_0x564cf1(0x15b)]*0x2,'zIndex':_0x352374+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x564cf1(0x399)](_0x4622e0),this['_currentScene']['addObject'](_0x4622e0,_0x352374+0x2);}}['_findNearestConnectionSite'](_0xe9fa29){const _0x1781e6=_0x244912;let _0x545442=null,_0xc55192=0x1/0x0,_0x3282ab=null;for(let _0x3b29dd of this[_0x1781e6(0x1f8)]){let _0x4e5e5e=_0x3b29dd['left']+_0x59f579[_0x1781e6(0x15b)],_0x4e2bce=_0x3b29dd[_0x1781e6(0x172)]+_0x59f579[_0x1781e6(0x15b)],_0x31ad6e=_0xe9fa29['x']-_0x4e5e5e,_0x5fe281=_0xe9fa29['y']-_0x4e2bce,_0x26166f=Math[_0x1781e6(0x31f)](_0x31ad6e*_0x31ad6e+_0x5fe281*_0x5fe281);_0x26166f<_0xc55192&&(_0xc55192=_0x26166f,_0x545442=_0x3b29dd,_0x3282ab={'x':_0x4e5e5e,'y':_0x4e2bce});}let _0x51d462=_0xc55192<=0xa&&_0x545442?_0x545442[_0x1781e6(0x144)]()[_0x1781e6(0x286)]:-0x1;if(_0x51d462!==this['_highlightedSiteIndex']){for(let _0x5970b4 of this['_connectionSiteObjects']){let _0x23a988=_0x5970b4[_0x1781e6(0x144)]();_0x5970b4['setHighlighted'](_0x23a988[_0x1781e6(0x286)]===_0x51d462);}this[_0x1781e6(0x241)]=_0x51d462;}if(_0xc55192<=0xa&&_0x545442&&_0x3282ab){let _0x1b2081=_0x545442['getConnectionInfo'](),_0x66e80e=this['_getConnectionSiteAngle'](_0x1b2081[_0x1781e6(0x19c)],_0x1b2081[_0x1781e6(0x286)]);return{'shapeId':_0x1b2081[_0x1781e6(0x19c)],'cxnIndex':_0x1b2081[_0x1781e6(0x286)],'unitId':_0x1b2081['unitId'],'subUnitId':_0x1b2081[_0x1781e6(0x1c5)],'worldPoint':_0x3282ab,'angle':_0x66e80e};}return null;}[_0x244912(0x25f)](_0x4ece78,_0x592844){const _0x1df286=_0x244912;let _0x4c01c3=this['_sheetsShapeService'][_0x1df286(0x35b)](this['_unitId'],this['_subUnitId'],_0x4ece78);if(!_0x4c01c3)return 0x0;let _0x5d3898=this[_0x1df286(0x239)]['getDrawingByParam']({'unitId':this[_0x1df286(0x20a)],'subUnitId':this[_0x1df286(0x1e9)],'drawingId':_0x4ece78});if(!(_0x5d3898!=null&&_0x5d3898['transform']))return 0x0;let {width:_0x32ff1e=0x0,height:_0x4f3401=0x0,flipX:_0xdaa813=!0x1,flipY:_0x162090=!0x1}=_0x5d3898['transform'];_0x4c01c3[_0x1df286(0x340)]({'width':_0x32ff1e,'height':_0x4f3401});let _0x3eb0d1=_0x4c01c3[_0x1df286(0x23d)]()[_0x1df286(0x2f4)](_0x20140a=>_0x20140a['index']===_0x592844);if(!_0x3eb0d1)return 0x0;let _0x3e4e54=_0x3eb0d1['ang']/0xea60;return _0xdaa813&&(_0x3e4e54=0xb4-_0x3e4e54),_0x162090&&(_0x3e4e54=-_0x3e4e54),_0x3e4e54=(_0x3e4e54%0x168+0x168)%0x168,_0x3e4e54;}[_0x244912(0x180)](){const _0x4f48a4=_0x244912;for(let _0xe800ec of this[_0x4f48a4(0x1f8)])_0xe800ec[_0x4f48a4(0x346)]();this[_0x4f48a4(0x1f8)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x244912(0x346)](){const _0x70e932=_0x244912;this[_0x70e932(0x180)](),super[_0x70e932(0x346)]();}};ia=Y([J(0x1,_0x318433(_0xc8f10c)),J(0x2,_0x318433(_0x1f50fa)),J(0x3,_0x318433(_0x5594a6))],ia);let aa=class extends _0x2c7179{constructor(_0x5027b4,_0x57a776,_0x58ddc3,_0x3c27aa,_0x348e6a){const _0x510a19=_0x244912;super(),this[_0x510a19(0x337)]=_0x5027b4,this[_0x510a19(0x327)]=_0x57a776,this[_0x510a19(0x21b)]=_0x58ddc3,this[_0x510a19(0x3c2)]=_0x3c27aa,this[_0x510a19(0x3bf)]=_0x348e6a,q(this,_0x510a19(0x1a0),void 0x0),this[_0x510a19(0x198)](),this[_0x510a19(0x262)]();}get[_0x244912(0x2f1)](){const _0x263671=_0x244912;return this[_0x263671(0x21b)][_0x263671(0x2a0)]();}[_0x244912(0x262)](){const _0x1d097b=_0x244912;this[_0x1d097b(0x3bf)]['registerFeaturePasteHook'](({fromUnitId:_0x85d4ff,fromSubUnitId:_0x5f60e4,toUnitId:_0x54ad20,toSubUnitId:_0x255058,idMap:_0x21afbb})=>{const _0x5ba2ff=_0x1d097b;let _0x2d13d9=[],_0x3013b3=[];for(let [_0x45f30f,_0x29b2f6]of _0x21afbb[_0x5ba2ff(0x324)]()){let _0x70c830=this[_0x5ba2ff(0x3c2)][_0x5ba2ff(0x35b)](_0x85d4ff,_0x5f60e4,_0x45f30f);if(!_0x70c830)continue;let _0x21553f=_0x70c830[_0x5ba2ff(0x382)](),_0x39d4af=JSON[_0x5ba2ff(0x3be)](JSON[_0x5ba2ff(0x3c6)](_0x70c830[_0x5ba2ff(0x2b7)]()));if(_0x39d4af[_0x5ba2ff(0x18e)]){var _0x13d4ee,_0x38c17c;let _0x5a8f97=(_0x13d4ee=_0x39d4af['relation'][_0x5ba2ff(0x3b9)])==null?void 0x0:_0x13d4ee[_0x5ba2ff(0x19c)],_0x2c7c67=(_0x38c17c=_0x39d4af[_0x5ba2ff(0x18e)]['to'])==null?void 0x0:_0x38c17c[_0x5ba2ff(0x19c)],_0x112017=!_0x5a8f97||_0x21afbb['has'](_0x5a8f97),_0x31b9d1=!_0x2c7c67||_0x21afbb['has'](_0x2c7c67);_0x112017&&_0x5a8f97&&_0x39d4af[_0x5ba2ff(0x18e)][_0x5ba2ff(0x3b9)]?_0x39d4af['relation'][_0x5ba2ff(0x3b9)]={..._0x39d4af[_0x5ba2ff(0x18e)][_0x5ba2ff(0x3b9)],'shapeId':_0x21afbb[_0x5ba2ff(0x1e0)](_0x5a8f97)}:_0x39d4af[_0x5ba2ff(0x18e)]['from']=void 0x0,_0x31b9d1&&_0x2c7c67&&_0x39d4af[_0x5ba2ff(0x18e)]['to']?_0x39d4af[_0x5ba2ff(0x18e)]['to']={..._0x39d4af[_0x5ba2ff(0x18e)]['to'],'shapeId':_0x21afbb[_0x5ba2ff(0x1e0)](_0x2c7c67)}:_0x39d4af['relation']['to']=void 0x0;}_0x2d13d9[_0x5ba2ff(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x54ad20,'subUnitId':_0x255058,'shapeId':_0x29b2f6,'shapeType':_0x21553f,'shapeData':_0x39d4af}}),_0x3013b3['push']({'id':_0xd0fb5f['id'],'params':{'unitId':_0x54ad20,'subUnitId':_0x255058,'shapeId':_0x29b2f6}});}return{'redos':_0x2d13d9,'undos':_0x3013b3};});}['_initCopyPaste'](){const _0x423fc1=_0x244912;this[_0x423fc1(0x14a)](this['_sheetClipboardService'][_0x423fc1(0x17c)]({'id':_0x423fc1(0x3ce),'onBeforeCopyFocusedObject':(_0x1f735a,_0x312ea0,_0x35d8df)=>{const _0x3d7ff7=_0x423fc1;this[_0x3d7ff7(0x1a0)]=null;let _0x5231f9=this[_0x3d7ff7(0x2f1)][_0x3d7ff7(0x150)](_0x447e3b=>_0x447e3b[_0x3d7ff7(0x185)]===_0x54d53a['DRAWING_SHAPE']);return _0x5231f9[_0x3d7ff7(0x1ae)]!==0x0&&(this[_0x3d7ff7(0x1a0)]={'unitId':_0x1f735a,'subUnitId':_0x312ea0,'copyType':_0x35d8df,'drawings':_0x5231f9},!0x0);},'onBeforeCopy':(_0x25e1eb,_0x4b5c4c,_0x3c8b53,_0x4876a8)=>{const _0x5c7adb=_0x423fc1;this[_0x5c7adb(0x1a0)]=null,this['_createCopyInfoByRange'](_0x25e1eb,_0x4b5c4c,_0x3c8b53,_0x4876a8);},'onPasteCells':(_0x3162be,_0x3417e4,_0x331c56,_0x156160)=>{const _0x213a94=_0x423fc1;if(!_0x156160[_0x213a94(0x18f)]||!_0x3162be||!this[_0x213a94(0x1a0)])return{'redos':[],'undos':[]};let {pasteType:_0x12df3a}=_0x156160;return _0x12df3a===_0x314886['DEFAULT_PASTE']?this[_0x213a94(0x14b)](_0x3417e4,this['_copyInfo'][_0x213a94(0x238)]===_0x40a630['CUT']):{'redos':[],'undos':[]};}}));}[_0x244912(0x2ef)](_0x17c9f1,_0xe730f3,_0xd945ef,_0x26efe5){const _0x1cea57=_0x244912;let _0xe0baa2=this[_0x1cea57(0x337)][_0x1cea57(0x163)](_0x17c9f1,_0xe730f3);if(!_0xe0baa2)return;let _0x4ffa5f=_0x20495d(_0xe0baa2,_0xd945ef);if(!_0x4ffa5f)return;let {startX:_0x35357f,endX:_0x43b588,startY:_0x3d6d84,endY:_0xf309e7}=_0x4ffa5f,_0x5be954=this[_0x1cea57(0x21b)][_0x1cea57(0x1c8)](_0x17c9f1,_0xe730f3),_0x4ede9b=[];for(let [_0x4e3971,_0x719316]of Object[_0x1cea57(0x324)](_0x5be954)){if(_0x719316[_0x1cea57(0x185)]!==_0x54d53a['DRAWING_SHAPE'])continue;let {transform:_0x37e5a8}=_0x719316;if(!_0x37e5a8)continue;let {left:_0x27eab0=0x0,top:_0xd65926=0x0,width:_0x44d6b8=0x0,height:_0x49b1cd=0x0}=_0x37e5a8;_0x35357f<=_0x27eab0&&_0x43b588>=_0x27eab0+_0x44d6b8&&_0x3d6d84<=_0xd65926&&_0xf309e7>=_0xd65926+_0x49b1cd&&_0x4ede9b[_0x1cea57(0x399)](_0x719316);}_0x4ede9b[_0x1cea57(0x1ae)]>0x0&&(this[_0x1cea57(0x1a0)]={'unitId':_0x17c9f1,'subUnitId':_0xe730f3,'copyType':_0x26efe5,'copyRange':_0xd945ef,'drawings':_0x4ede9b});}[_0x244912(0x14b)](_0x4fdf3c,_0x1b570f){const _0x561179=_0x244912;let {unitId:_0x23020b,subUnitId:_0x4b96f6,range:_0x3c14f0}=_0x4fdf3c,_0x40fd1e=this[_0x561179(0x337)]['getSkeleton'](_0x23020b,_0x4b96f6);if(!_0x40fd1e)return{'redos':[],'undos':[]};let _0x49d5f4=_0x17eb2d(_0x3c14f0),{unitId:_0x5186c6,subUnitId:_0x31f6e1,copyRange:_0x56c0e4,drawings:_0x27d8e8}=this[_0x561179(0x1a0)],_0x3006b4=this['_sheetSkeletonService'][_0x561179(0x163)](_0x5186c6,_0x31f6e1);if(!_0x3006b4)return{'redos':[],'undos':[]};let _0x3b9686;if(!_0x56c0e4){let _0x4c99ad=0x1/0x0,_0x26e332=0x1/0x0;for(let _0x47c4ce of _0x27d8e8){let {left:_0x52ae64=0x0,top:_0x11d17e=0x0}=_0x47c4ce[_0x561179(0x1b7)]??{};_0x52ae64<_0x4c99ad&&(_0x4c99ad=_0x52ae64),_0x11d17e<_0x26e332&&(_0x26e332=_0x11d17e);}_0x4c99ad!==0x1/0x0&&_0x26e332!==0x1/0x0&&(_0x3b9686={'left':_0x4c99ad,'top':_0x26e332});}let _0x438fea=new Map();if(!_0x1b570f){for(let _0x3355c6 of _0x27d8e8)_0x438fea['set'](_0x3355c6[_0x561179(0x237)],_0x524ea6());}let _0x15797c=[],_0x11a491=[];for(let _0x9604ba of _0x27d8e8){let {drawingId:_0x40b3b6,transform:_0x13c61a,sheetTransform:_0x47ede9}=_0x9604ba;if(!_0x13c61a||!_0x47ede9)continue;let _0x3bae7f=this[_0x561179(0x2f9)]({'transform':_0x13c61a,'sheetTransform':_0x47ede9},{'skeleton':_0x3006b4,'range':_0x56c0e4},{'skeleton':_0x40fd1e,'range':_0x49d5f4},_0x3b9686);if(_0x1b570f){let {redos:_0x4851b7,undos:_0x2a3808}=this[_0x561179(0x3e0)]({'fromUnitId':_0x5186c6,'fromSubUnitId':_0x31f6e1,'toUnitId':_0x23020b,'toSubUnitId':_0x4b96f6,'drawing':_0x9604ba,'newTransforms':_0x3bae7f});_0x15797c[_0x561179(0x399)](..._0x4851b7),_0x11a491[_0x561179(0x399)](..._0x2a3808);continue;}let {redos:_0x166857,undos:_0x3fa039}=this[_0x561179(0x3fd)]({'toUnitId':_0x23020b,'toSubUnitId':_0x4b96f6,'drawing':_0x9604ba,'newTransforms':_0x3bae7f,'newDrawingId':_0x438fea[_0x561179(0x1e0)](_0x40b3b6),'idMap':_0x438fea});_0x15797c[_0x561179(0x399)](..._0x166857),_0x11a491['push'](..._0x3fa039);}return{'redos':_0x15797c,'undos':_0x11a491};}[_0x244912(0x3e0)](_0x3deae8){const _0x408b7d=_0x244912;let {fromUnitId:_0x2de529,fromSubUnitId:_0x403adf,toUnitId:_0x2b650b,toSubUnitId:_0x52a7c8,drawing:_0x3b364f,newTransforms:_0x1ad2b7}=_0x3deae8,_0x14bcbc={..._0x3b364f,'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'transform':_0x1ad2b7['transform'],'sheetTransform':_0x1ad2b7[_0x408b7d(0x3a3)]};if(_0x2b650b===_0x2de529&&_0x52a7c8===_0x403adf){let {redo:_0x54ee89,undo:_0x4d2922,objects:_0x5e8630}=this['_sheetDrawingService'][_0x408b7d(0x352)]([_0x14bcbc]);return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x1db)],'op':_0x54ee89,'objects':_0x5e8630}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x1db)],'op':_0x4d2922,'objects':_0x5e8630}}]};}{let _0x4999c7=this[_0x408b7d(0x21b)][_0x408b7d(0x2e2)]([_0x3b364f]),_0x454582=this[_0x408b7d(0x21b)][_0x408b7d(0x27a)]([_0x14bcbc]),_0x2b221a=this[_0x408b7d(0x3c2)]['getShapeModel'](_0x3b364f[_0x408b7d(0x21f)],_0x3b364f[_0x408b7d(0x1c5)],_0x3b364f['drawingId']);if(!_0x2b221a)return{'redos':[],'undos':[]};let _0x3d0335=_0x2b221a[_0x408b7d(0x382)](),_0x2013b5=JSON[_0x408b7d(0x3be)](JSON[_0x408b7d(0x3c6)](_0x2b221a['getShapeData']()));return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'type':_0x3c81cc[_0x408b7d(0x2bb)],'op':_0x4999c7[_0x408b7d(0x224)],'objects':_0x4999c7[_0x408b7d(0x30d)]}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'shapeId':_0x3b364f[_0x408b7d(0x237)]}},{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x3b4)],'op':_0x454582['redo'],'objects':_0x454582[_0x408b7d(0x30d)]}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'shapeId':_0x3b364f[_0x408b7d(0x237)],'shapeType':_0x3d0335,'shapeData':_0x2013b5}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'type':_0x3c81cc[_0x408b7d(0x3b4)],'op':_0x4999c7[_0x408b7d(0x319)],'objects':_0x4999c7[_0x408b7d(0x30d)]}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'shapeId':_0x3b364f['drawingId'],'shapeType':_0x3d0335,'shapeData':_0x2013b5}},{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x2bb)],'op':_0x454582[_0x408b7d(0x319)],'objects':_0x454582[_0x408b7d(0x30d)]}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'shapeId':_0x3b364f[_0x408b7d(0x237)]}}]};}}[_0x244912(0x3fd)](_0x1c0695){const _0x3792f0=_0x244912;let {toUnitId:_0x2cfd3f,toSubUnitId:_0x431800,drawing:_0x566f75,newTransforms:_0x392c0c,newDrawingId:_0x441d7c,idMap:_0x4df9ef}=_0x1c0695,_0x1baea6={..._0x566f75,'unitId':_0x2cfd3f,'subUnitId':_0x431800,'drawingId':_0x441d7c,'transform':_0x392c0c['transform'],'sheetTransform':_0x392c0c[_0x3792f0(0x3a3)]},{redo:_0x584b7c,undo:_0x596521,objects:_0x4aa9a3}=this[_0x3792f0(0x21b)]['getBatchAddOp']([_0x1baea6]),_0x5487c5=this['_shapeService'][_0x3792f0(0x35b)](_0x566f75[_0x3792f0(0x21f)],_0x566f75[_0x3792f0(0x1c5)],_0x566f75[_0x3792f0(0x237)]);if(!_0x5487c5)return{'redos':[],'undos':[]};let _0xfbb29f=_0x5487c5['getShapeType'](),_0x4d1ebc=JSON['parse'](JSON['stringify'](_0x5487c5['getShapeData']()));if(_0x4d1ebc[_0x3792f0(0x18e)]){var _0xc96609,_0x59f340;let _0x5136e3=(_0xc96609=_0x4d1ebc[_0x3792f0(0x18e)]['from'])==null?void 0x0:_0xc96609[_0x3792f0(0x19c)],_0x1ff06b=(_0x59f340=_0x4d1ebc[_0x3792f0(0x18e)]['to'])==null?void 0x0:_0x59f340[_0x3792f0(0x19c)],_0x29207f=!_0x5136e3||_0x4df9ef[_0x3792f0(0x33a)](_0x5136e3),_0x4a7916=!_0x1ff06b||_0x4df9ef['has'](_0x1ff06b);_0x29207f&&_0x5136e3&&_0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)]?_0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)]={..._0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)],'shapeId':_0x4df9ef['get'](_0x5136e3)}:_0x4d1ebc[_0x3792f0(0x18e)]['from']=void 0x0,_0x4a7916&&_0x1ff06b&&_0x4d1ebc[_0x3792f0(0x18e)]['to']?_0x4d1ebc[_0x3792f0(0x18e)]['to']={..._0x4d1ebc[_0x3792f0(0x18e)]['to'],'shapeId':_0x4df9ef[_0x3792f0(0x1e0)](_0x1ff06b)}:_0x4d1ebc[_0x3792f0(0x18e)]['to']=void 0x0;}return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'type':_0x3c81cc[_0x3792f0(0x3b4)],'op':_0x584b7c,'objects':_0x4aa9a3}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'shapeId':_0x441d7c,'shapeType':_0xfbb29f,'shapeData':_0x4d1ebc}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'type':_0x3c81cc['REMOVE'],'op':_0x596521,'objects':_0x4aa9a3}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'shapeId':_0x441d7c}}]};}['_updateTransform'](_0x1f4ab3,_0x172952,_0x5bec8c,_0x52e177){const _0x3fbf69=_0x244912;let {range:_0x20e07e,skeleton:_0x47ee82}=_0x172952,{range:_0x2b558e,skeleton:_0x418006}=_0x5bec8c,{transform:_0x17890a,sheetTransform:_0x44cb2c}=_0x1f4ab3,_0x4069bc={..._0x17890a};if(_0x20e07e){let _0x43ea9c=_0x20495d(_0x47ee82,_0x20e07e),_0x2128ed=_0x20495d(_0x418006,_0x2b558e);if(_0x43ea9c&&_0x2128ed){let _0x733ff1=_0x2128ed['startX']-_0x43ea9c['startX'],_0x593ad9=_0x2128ed[_0x3fbf69(0x1e2)]-_0x43ea9c[_0x3fbf69(0x1e2)];_0x4069bc[_0x3fbf69(0x1fe)]=(_0x4069bc[_0x3fbf69(0x1fe)]??0x0)+_0x733ff1,_0x4069bc[_0x3fbf69(0x172)]=(_0x4069bc['top']??0x0)+_0x593ad9;}}else{let _0x46e78e=_0x20495d(_0x418006,_0x2b558e);if(_0x52e177&&_0x46e78e){let _0x62b0a8=(_0x4069bc[_0x3fbf69(0x1fe)]??0x0)-_0x52e177[_0x3fbf69(0x1fe)],_0x48167e=(_0x4069bc[_0x3fbf69(0x172)]??0x0)-_0x52e177[_0x3fbf69(0x172)];_0x4069bc[_0x3fbf69(0x1fe)]=_0x46e78e['startX']+_0x62b0a8,_0x4069bc[_0x3fbf69(0x172)]=_0x46e78e[_0x3fbf69(0x1e2)]+_0x48167e;}else _0x4069bc[_0x3fbf69(0x1fe)]=_0x46e78e==null?void 0x0:_0x46e78e[_0x3fbf69(0x20e)],_0x4069bc['top']=_0x46e78e==null?void 0x0:_0x46e78e[_0x3fbf69(0x1e2)];}return{'transform':_0x4069bc,'sheetTransform':_0x3dccba(_0x4069bc,_0x418006)??_0x44cb2c};}};aa=Y([J(0x0,_0x318433(_0x29e188)),J(0x1,_0x318433(_0x2730e)),J(0x2,_0x318433(_0x35f22e)),J(0x3,_0x318433(_0x5594a6)),J(0x4,_0x318433(_0x38ae18))],aa);var oa=class extends _0x4546bd{constructor(_0x34914a,_0x5579c2){const _0x50abe9=_0x244912;super(_0x34914a,_0x5579c2),q(this,'_shapeId',null),q(this,_0x50abe9(0x231),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x50abe9(0x392),!0x1),_0x5579c2&&this[_0x50abe9(0x2d4)](_0x5579c2);}['getDrawingSearch'](){const _0x338734=_0x244912;return{'unitId':this[_0x338734(0x20a)],'subUnitId':this[_0x338734(0x1e9)],'drawingId':this[_0x338734(0x2cd)]};}[_0x244912(0x2d4)](_0x4e699a){const _0x3eb779=_0x244912;_0x4e699a[_0x3eb779(0x19c)]!==void 0x0&&(this[_0x3eb779(0x2cd)]=_0x4e699a[_0x3eb779(0x19c)]),_0x4e699a[_0x3eb779(0x21f)]!==void 0x0&&(this['_unitId']=_0x4e699a[_0x3eb779(0x21f)]),_0x4e699a[_0x3eb779(0x1c5)]!==void 0x0&&(this[_0x3eb779(0x1e9)]=_0x4e699a['subUnitId']),_0x4e699a[_0x3eb779(0x3b0)]!==void 0x0&&(this[_0x3eb779(0x392)]=_0x4e699a[_0x3eb779(0x3b0)]),this[_0x3eb779(0x1d8)]({'width':_0x4e699a[_0x3eb779(0x326)],'height':_0x4e699a[_0x3eb779(0x1ba)]});}[_0x244912(0x16b)](_0x244961){const _0x4a96c6=_0x244912;_0x2e680e[_0x4a96c6(0x31e)](_0x244961,{'radius':_0x59f579[_0x4a96c6(0x15b)],'fill':_0x59f579[_0x4a96c6(0x292)],'stroke':_0x59f579['cxnPointStroke'],'strokeWidth':_0x59f579[_0x4a96c6(0x3ba)],'evented':!0x0});}};let sa=class extends _0x2c7179{constructor(_0x231d9c,_0x3c742e,_0x4421d5,_0x3c9af3,_0x1c38c7,_0x1307f5,_0x8c2342,_0x3549d2){const _0x3ed2c3=_0x244912;super(),this[_0x3ed2c3(0x15d)]=_0x231d9c,this['_commandService']=_0x3c742e,this[_0x3ed2c3(0x2f0)]=_0x4421d5,this[_0x3ed2c3(0x239)]=_0x3c9af3,this[_0x3ed2c3(0x321)]=_0x1c38c7,this[_0x3ed2c3(0x288)]=_0x1307f5,this[_0x3ed2c3(0x3fa)]=_0x8c2342,this[_0x3ed2c3(0x1f7)]=_0x3549d2,q(this,_0x3ed2c3(0x195),void 0x0),q(this,_0x3ed2c3(0x20a),void 0x0),q(this,_0x3ed2c3(0x1e9),void 0x0),q(this,_0x3ed2c3(0x1d6),[]),q(this,_0x3ed2c3(0x146),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x3ed2c3(0x376),void 0x0),q(this,_0x3ed2c3(0x381),!0x1),q(this,_0x3ed2c3(0x15e),!0x1),q(this,_0x3ed2c3(0x1e6),!0x1),q(this,_0x3ed2c3(0x1b8),void 0x0),q(this,_0x3ed2c3(0x372),void 0x0),q(this,_0x3ed2c3(0x2ae),null),this[_0x3ed2c3(0x14f)]();}[_0x244912(0x14f)](){const _0x3bd19c=_0x244912;this[_0x3bd19c(0x1a5)](),this[_0x3bd19c(0x3e6)]();}[_0x244912(0x32b)](){const _0x552dd9=_0x244912;if(!this[_0x552dd9(0x20a)]||!this['_subUnitId']||!this[_0x552dd9(0x195)])return;let _0x497dc9={'unitId':this[_0x552dd9(0x20a)],'subUnitId':this[_0x552dd9(0x1e9)],'drawingId':this[_0x552dd9(0x195)]},{transform:_0x2ccca2}=this['_drawingManagerService']['getDrawingByParam'](_0x497dc9);if(_0x2ccca2)return{'left':_0x2ccca2[_0x552dd9(0x1fe)]||0x0,'top':_0x2ccca2[_0x552dd9(0x172)]||0x0,'width':_0x2ccca2['width']||0x0,'height':_0x2ccca2['height']||0x0,'flipX':_0x2ccca2[_0x552dd9(0x166)]||!0x1,'flipY':_0x2ccca2[_0x552dd9(0x3b2)]||!0x1,'angle':_0x2ccca2[_0x552dd9(0x388)]};}[_0x244912(0x386)](){const _0x41a540=_0x244912;if(this['_unitId']===void 0x0||this[_0x41a540(0x1e9)]===void 0x0||this[_0x41a540(0x195)]===void 0x0)return;let _0x2f691a=this['_renderManagerService'][_0x41a540(0x276)](this['_unitId']);if(!_0x2f691a||!_0x2f691a[_0x41a540(0x27b)](_0x307dc0)['getCurrentSkeleton']())return;let {scene:_0x2c5650}=_0x2f691a,_0x2c719a=this[_0x41a540(0x32b)]();if(!_0x2c719a)return;let _0x4cde9c=this[_0x41a540(0x288)][_0x41a540(0x35b)](this[_0x41a540(0x20a)],this[_0x41a540(0x1e9)],this[_0x41a540(0x195)]);if(!_0x4cde9c||!_0x3c2fe3(_0x4cde9c[_0x41a540(0x382)]()))return;let _0x20cba6=_0x4cde9c['getConnectorLinePoints']();if(_0x20cba6['length']<0x2)return;let _0x223c70=new _0x3a7d90(_0x2c719a),_0x15c47c=_0x20cba6[0x0],_0x3c1b5d=_0x20cba6[_0x20cba6['length']-0x1],_0x369d91=_0x223c70[_0x41a540(0x2aa)](_0x15c47c),_0x24bf4f=_0x223c70['localToWorld'](_0x3c1b5d);this[_0x41a540(0x320)](_0x2c5650,{..._0x369d91},!0x0),this['_addShapeConnectorHandlerObject'](_0x2c5650,{..._0x24bf4f},!0x1);}[_0x244912(0x320)](_0x2fc87b,_0x20f6c6,_0x2b7b25){const _0x2e053f=_0x244912;if(this[_0x2e053f(0x195)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2f8fc3=_0x2e053f(0x1fc)+this[_0x2e053f(0x20a)]+'-'+this[_0x2e053f(0x1e9)]+'-'+this[_0x2e053f(0x195)]+'-'+(_0x2b7b25?'start':_0x2e053f(0x1a7)),_0x5216f3=_0x2fc87b[_0x2e053f(0x251)](_0x2f8fc3);if(_0x5216f3){_0x5216f3['transformByState']({'left':_0x20f6c6['x']-_0x59f579['cxnPointRadius'],'top':_0x20f6c6['y']-_0x59f579[_0x2e053f(0x15b)]});return;}let _0x2afe77=new oa(_0x2f8fc3,{'left':_0x20f6c6['x']-_0x59f579[_0x2e053f(0x15b)],'top':_0x20f6c6['y']-_0x59f579['cxnPointRadius'],'shapeId':this[_0x2e053f(0x195)],'unitId':this[_0x2e053f(0x20a)],'subUnitId':this[_0x2e053f(0x1e9)],'isStartConnectorPoint':_0x2b7b25,'width':_0x59f579[_0x2e053f(0x15b)]*0x2,'height':_0x59f579[_0x2e053f(0x15b)]*0x2,'zIndex':_0x352374+0x1,'evented':!0x0});this[_0x2e053f(0x1d6)]['push'](_0x2afe77),this['_attachConnectorObjectEvent'](_0x2afe77,_0x2fc87b,_0x2b7b25),_0x2fc87b[_0x2e053f(0x2da)](_0x2afe77,_0x352374+0x1);}[_0x244912(0x18d)](_0x494ab9,_0x543fe0){const _0x35b21a=_0x244912;var _0x5d4456;let _0x4c7122={'x':0x0,'y':0x0};if(!_0x494ab9||!_0x543fe0)return _0x4c7122;let _0x5ab8c3=this[_0x35b21a(0x2f0)]['getRenderUnitById'](_0x494ab9);if(!_0x5ab8c3||!_0x5ab8c3[_0x35b21a(0x27b)](_0x307dc0)[_0x35b21a(0x163)](_0x543fe0))return _0x4c7122;let _0x52812b=_0x5ab8c3['with'](_0x20a826),_0x1ac94e=_0x52812b==null?void 0x0:_0x52812b[_0x35b21a(0x145)]();if(!_0x1ac94e)return _0x4c7122;let _0x4781df=(_0x5d4456=this['_univerInstanceService'][_0x35b21a(0x287)](_0x494ab9))==null?void 0x0:_0x5d4456[_0x35b21a(0x184)](_0x543fe0);if(!_0x4781df)return _0x4c7122;let _0x2a83f0=_0x2ead9(_0x1ac94e[_0x35b21a(0x1bc)],_0x1ac94e[_0x35b21a(0x298)],_0x5ab8c3[_0x35b21a(0x229)],_0x4781df);return _0x2a83f0?{'x':_0x2a83f0[_0x35b21a(0x1fd)],'y':_0x2a83f0[_0x35b21a(0x351)]}:_0x4c7122;}['_getZoomRatio'](_0x3ccbe8,_0x3e8511){const _0x5ce866=_0x244912;var _0x4e890a;let _0x4def37=(_0x4e890a=this[_0x5ce866(0x321)][_0x5ce866(0x287)](_0x3ccbe8))==null?void 0x0:_0x4e890a['getSheetBySheetId'](_0x3e8511);return(_0x4def37==null?void 0x0:_0x4def37['getZoomRatio']())??0x1;}[_0x244912(0x3d4)](_0xb7879d,_0x9daa60,_0x9be380,_0x5a3ff5,_0x3ee3ad){const _0x3a6990=_0x244912;this[_0x3a6990(0x1b8)][_0x3a6990(0x3fc)](),this[_0x3a6990(0x372)][_0x3a6990(0x3fc)](),this['_sheetShapeAdjustController'][_0x3a6990(0x289)]();let _0x5c51c6=this[_0x3a6990(0x2ae)];this[_0x3a6990(0x1f7)]['endConnectionDetection']();let _0x178623=this[_0x3a6990(0x18d)](this[_0x3a6990(0x20a)],this[_0x3a6990(0x1e9)]),_0x5a2995=this[_0x3a6990(0x331)](this[_0x3a6990(0x20a)],this[_0x3a6990(0x1e9)]),_0x4445e8={'x':_0x9be380[_0x3a6990(0x3d2)]/_0x5a2995+_0x178623['x'],'y':_0x9be380[_0x3a6990(0x360)]/_0x5a2995+_0x178623['y']},_0x1b596f=_0x5c51c6?_0x5c51c6[_0x3a6990(0x148)]:_0x4445e8,_0x4c269f=_0x5a3ff5?this[_0x3a6990(0x376)][_0x3a6990(0x283)]():this[_0x3a6990(0x376)][_0x3a6990(0x26b)](),_0x84a48b=this[_0x3a6990(0x376)][_0x3a6990(0x382)]();_0x4c269f?this[_0x3a6990(0x35f)](_0x4c269f,_0x1b596f,_0x5a3ff5,_0x5c51c6,_0x3ee3ad):this[_0x3a6990(0x397)](_0x9daa60,_0x1b596f,_0x5a3ff5,_0x5c51c6,_0x3ee3ad,_0x84a48b),this[_0x3a6990(0x381)]=!0x1,this[_0x3a6990(0x1e6)]=!0x1,this['_currentConnectionTarget']=null,_0xb7879d['enableObjectsEvent']();}[_0x244912(0x397)](_0x55ebcf,_0x5c172e,_0x428401,_0x41b54a,_0x400418,_0x111e5f){const _0x214f24=_0x244912;let _0x4f32b8=_0x111e5f===_0x1ecf22[_0x214f24(0x212)]||_0x111e5f===_0x1ecf22['StraightConnector1'],_0xb7a4c2=_0x428401?_0x5c172e:_0x55ebcf,_0x149458=_0x428401?_0x55ebcf:_0x5c172e,_0x10809e=this[_0x214f24(0x376)][_0x214f24(0x156)](),_0x2ca233=this['_activeShapeModel']['getShapeType'](),_0x26dd0a=_0x147030(_0x2ca233),_0x416734=_0x3a7d90[_0x214f24(0x2fd)](_0x10809e,_0x26dd0a),_0x98d084=_0x4f32b8?_0x3a7d90['computeStraightConnectorLayout'](_0xb7a4c2,_0x149458):_0x3a7d90[_0x214f24(0x16c)](_0x55ebcf,_0x5c172e,_0x428401,_0x416734);_0x41b54a?this[_0x214f24(0x1ed)](_0x98d084,_0x41b54a,_0x428401,_0x400418):this['_executeResizeCommand'](_0x98d084,_0x400418);}[_0x244912(0x35f)](_0x1e0d84,_0x2c9721,_0x38b38b,_0x58eab5,_0x354a8e){const _0x2c99ef=_0x244912;let _0x1e5a43=this[_0x2c99ef(0x303)](_0x1e0d84);if(!_0x1e5a43)return;let _0x180255=_0x58eab5?_0x58eab5[_0x2c99ef(0x388)]:this[_0x2c99ef(0x20b)](_0x1e5a43['point'],_0x2c9721),_0x4c407e;if(_0x58eab5){let _0x629ad0=this[_0x2c99ef(0x239)]['getDrawingByParam']({'unitId':_0x58eab5[_0x2c99ef(0x21f)],'subUnitId':_0x58eab5[_0x2c99ef(0x1c5)],'drawingId':_0x58eab5['shapeId']});if(_0x629ad0!=null&&_0x629ad0[_0x2c99ef(0x1b7)]){let {left:_0x344ba5=0x0,top:_0x1bbf02=0x0,width:_0x8d654b=0x0,height:_0x3781d9=0x0,angle:_0x147cce}=_0x629ad0['transform'];_0x4c407e=_0x3e1f4f({'left':_0x344ba5,'top':_0x1bbf02,'width':_0x8d654b,'height':_0x3781d9},_0x147cce||0x0);}else _0x4c407e={'left':_0x2c9721['x'],'top':_0x2c9721['y'],'width':0x0,'height':0x0};}else _0x4c407e={'left':_0x2c9721['x'],'top':_0x2c9721['y'],'width':0x0,'height':0x0};let _0x4227e7={'point':_0x2c9721,'angle':_0x180255,'bounds':_0x4c407e},_0x7ddafa=_0x38b38b?_0x4227e7:_0x1e5a43,_0x44ecd4=_0x38b38b?_0x1e5a43:_0x4227e7,_0x582ed7=this[_0x2c99ef(0x376)][_0x2c99ef(0x382)](),_0x25219a=_0x349ecd(_0x7ddafa,_0x44ecd4,_0x582ed7);this[_0x2c99ef(0x376)]['removeLinePoints']();let _0x2d0de7=_0x42d9b4(_0x25219a,_0x582ed7);_0x58eab5?this['_executeConnectedRouteConnectionCommand'](_0x2d0de7,_0x58eab5,_0x1e0d84,_0x38b38b,_0x354a8e):this[_0x2c99ef(0x34f)](_0x2d0de7,_0x1e0d84,_0x38b38b,_0x354a8e);}[_0x244912(0x1ed)](_0x30caf5,_0x89cf3b,_0x4e6947,_0x1a8329){const _0x47faaa=_0x244912;let _0x17168f=this[_0x47faaa(0x376)][_0x47faaa(0x2b7)]()['relation'],_0x1aa901={..._0x17168f},_0x559f6={'shapeId':_0x89cf3b[_0x47faaa(0x19c)],'cxnIndex':_0x89cf3b[_0x47faaa(0x286)]};_0x4e6947?_0x1aa901['from']=_0x559f6:_0x1aa901['to']=_0x559f6;let _0x213011=this[_0x47faaa(0x376)][_0x47faaa(0x382)](),_0x141ae2=_0x42d9b4(_0x30caf5[_0x47faaa(0x2be)],_0x213011),_0x347a62={'unitId':this[_0x47faaa(0x20a)],'subUnitId':this[_0x47faaa(0x1e9)],'connectorShapeId':this[_0x47faaa(0x195)],'width':_0x30caf5[_0x47faaa(0x278)]['width'],'height':_0x30caf5[_0x47faaa(0x278)]['height'],'left':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x1fe)],'top':_0x30caf5['worldRect']['top'],'flipX':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x166)]||!0x1,'flipY':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x3b2)]||!0x1,'newAdjustValues':_0x141ae2[_0x47faaa(0x380)],'oldAdjustValues':_0x1a8329,'oldRelation':_0x17168f,'newRelation':_0x1aa901,'newLineType':_0x141ae2[_0x47faaa(0x2d7)],'oldLineType':_0x213011};this['_commandService'][_0x47faaa(0x1ac)](_0xb35938['id'],_0x347a62);}[_0x244912(0x30e)](_0x49c26d,_0x2048bf){const _0x107f79=_0x244912;let _0xc6105b=this[_0x107f79(0x376)][_0x107f79(0x382)](),_0x379066=_0x42d9b4(_0x49c26d[_0x107f79(0x2be)],_0xc6105b),_0x16e4e1={'unitId':this[_0x107f79(0x20a)],'subUnitId':this[_0x107f79(0x1e9)],'shapeId':this['_activeShapeId'],'width':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x326)],'height':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x1ba)],'left':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x1fe)],'top':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x172)],'flipX':_0x49c26d['worldRect'][_0x107f79(0x166)]||!0x1,'flipY':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x3b2)]||!0x1,'angle':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x388)]||0x0,'newAdjustValues':_0x379066[_0x107f79(0x380)],'oldAdjustValues':_0x2048bf,'newLineType':_0x379066[_0x107f79(0x2d7)],'oldLineType':_0xc6105b};this['_commandService'][_0x107f79(0x1ac)](_0x54a28b['id'],_0x16e4e1);}[_0x244912(0x26c)](_0x1c563f,_0xbf9a6f,_0x4ec075,_0x474e0e,_0xe027fc){const _0x141674=_0x244912;let _0x44fa22=this[_0x141674(0x376)][_0x141674(0x2b7)]()['relation'],_0x469822={..._0x44fa22},_0x59d52b={'shapeId':_0xbf9a6f[_0x141674(0x19c)],'cxnIndex':_0xbf9a6f['cxnIndex']};_0x474e0e?(_0x469822[_0x141674(0x3b9)]=_0x59d52b,_0x469822['to']=_0x4ec075):(_0x469822[_0x141674(0x3b9)]=_0x4ec075,_0x469822['to']=_0x59d52b);let _0x397229={'unitId':this[_0x141674(0x20a)],'subUnitId':this[_0x141674(0x1e9)],'connectorShapeId':this[_0x141674(0x195)],'width':_0x1c563f[_0x141674(0x278)][_0x141674(0x326)],'height':_0x1c563f[_0x141674(0x278)]['height'],'left':_0x1c563f[_0x141674(0x278)][_0x141674(0x1fe)],'top':_0x1c563f[_0x141674(0x278)][_0x141674(0x172)],'flipX':_0x1c563f[_0x141674(0x278)]['flipX']||!0x1,'flipY':_0x1c563f[_0x141674(0x278)][_0x141674(0x3b2)]||!0x1,'oldAdjustValues':_0xe027fc,'newAdjustValues':_0x1c563f[_0x141674(0x380)],'newLineType':_0x1c563f[_0x141674(0x2d7)],'rotation':_0x1c563f[_0x141674(0x28c)],'oldRelation':_0x44fa22,'newRelation':_0x469822};this[_0x141674(0x2d0)][_0x141674(0x1ac)](_0xb35938['id'],_0x397229);}['_executeConnectedRouteResizeCommand'](_0xad3a19,_0x388755,_0x43e521,_0x168bdb){const _0x5152a6=_0x244912;let _0x344fd1=this[_0x5152a6(0x376)][_0x5152a6(0x2b7)]()['relation'],_0x329be1={};_0x43e521?(_0x329be1['to']=_0x388755,_0x329be1[_0x5152a6(0x3b9)]=void 0x0):(_0x329be1[_0x5152a6(0x3b9)]=_0x388755,_0x329be1['to']=void 0x0);let _0x4c2bd5={'unitId':this[_0x5152a6(0x20a)],'subUnitId':this[_0x5152a6(0x1e9)],'connectorShapeId':this[_0x5152a6(0x195)],'width':_0xad3a19['worldRect'][_0x5152a6(0x326)],'height':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x1ba)],'left':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x1fe)],'top':_0xad3a19[_0x5152a6(0x278)]['top'],'flipX':_0xad3a19['worldRect']['flipX']||!0x1,'flipY':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x3b2)]||!0x1,'oldAdjustValues':_0x168bdb,'newAdjustValues':_0xad3a19[_0x5152a6(0x380)],'newLineType':_0xad3a19[_0x5152a6(0x2d7)],'rotation':_0xad3a19[_0x5152a6(0x28c)],'oldRelation':_0x344fd1,'newRelation':_0x329be1};this[_0x5152a6(0x2d0)][_0x5152a6(0x1ac)](_0xb35938['id'],_0x4c2bd5);}[_0x244912(0x2a1)](_0x56b0af,_0x14c5ab,_0x571b90){const _0x47cc7b=_0x244912;this[_0x47cc7b(0x14a)](_0x21ce23(_0x56b0af[_0x47cc7b(0x383)][_0x47cc7b(0x318)]((_0x133e0f,_0x6555ac)=>{const _0x378849=_0x47cc7b;let _0xdf83fe=_0x56b0af[_0x378849(0x24f)]();if(this[_0x378849(0x376)]=this['_sheetsShapeService'][_0x378849(0x35b)](_0xdf83fe[_0x378849(0x21f)],_0xdf83fe['subUnitId'],_0xdf83fe[_0x378849(0x237)]),!this[_0x378849(0x376)])return;let _0x50a740={};this['_activeShapeModel']['getAdjustNames']()['forEach'](_0xfdb40e=>{const _0x456dc8=_0x378849;let _0x1d2fea=this[_0x456dc8(0x376)]['getAdjustValueByName'](_0xfdb40e);_0x1d2fea!==void 0x0&&(_0x50a740[_0xfdb40e]=_0x1d2fea);});let _0x2e4465=this[_0x378849(0x32b)]();if(!_0x2e4465)return;this[_0x378849(0x146)]={..._0x2e4465};let _0x27c472=new _0x3a7d90(this[_0x378849(0x146)]),_0x3e4aa2=_0x5cc8a7({'unitId':this[_0x378849(0x20a)],'subUnitId':this[_0x378849(0x1e9)],'drawingId':this[_0x378849(0x195)]}),_0x3abbbf=_0x14c5ab[_0x378849(0x251)](_0x3e4aa2);this[_0x378849(0x381)]=!0x0,_0x14c5ab['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x378849(0x38e)](_0x14c5ab,this['_unitId'],this[_0x378849(0x1e9)],this[_0x378849(0x195)]),this[_0x378849(0x2ae)]=null;let _0x43bcfb=this[_0x378849(0x376)][_0x378849(0x156)](),_0x5f070d=_0x43bcfb[0x0],_0x3be12d=_0x43bcfb[_0x43bcfb[_0x378849(0x1ae)]-0x1],_0x310e83=_0x571b90?_0x27c472['localToWorld'](_0x3be12d):_0x27c472[_0x378849(0x2aa)](_0x5f070d);this[_0x378849(0x1b8)]=_0x14c5ab['onPointerMove$'][_0x378849(0x318)]((_0x5e2f9f,_0x4ecb57)=>{const _0x3be57a=_0x378849;if(!this[_0x3be57a(0x381)]||!this[_0x3be57a(0x376)])return;this[_0x3be57a(0x1e6)]||=(this['_sheetShapeAdjustController'][_0x3be57a(0x309)](),this[_0x3be57a(0x376)][_0x3be57a(0x2bd)](),!0x0);let _0x18e25e=this[_0x3be57a(0x18d)](this[_0x3be57a(0x20a)],this[_0x3be57a(0x1e9)]),_0x48c84c=this['_getZoomRatio'](this['_unitId'],this[_0x3be57a(0x1e9)]),_0x3fcea8={'x':_0x5e2f9f[_0x3be57a(0x3d2)]/_0x48c84c+_0x18e25e['x'],'y':_0x5e2f9f[_0x3be57a(0x360)]/_0x48c84c+_0x18e25e['y']},_0x4aab67=this[_0x3be57a(0x1f7)][_0x3be57a(0x336)](_0x3fcea8);if(_0x4aab67){let {shapeId:_0x4c30eb,unitId:_0xe69a73,subUnitId:_0xf789ce}=_0x4aab67;if(_0x4c30eb&&_0xe69a73&&_0xf789ce){let _0x5cc082=_0x5cc8a7({'unitId':_0xe69a73,'subUnitId':_0xf789ce,'drawingId':_0x4c30eb});_0x4aab67[_0x3be57a(0x388)]=(_0x14c5ab[_0x3be57a(0x251)](_0x5cc082)['angle']||0x0)+_0x4aab67[_0x3be57a(0x388)];}}this['_currentConnectionTarget']=_0x4aab67;let _0x420570=_0x571b90?this[_0x3be57a(0x376)][_0x3be57a(0x283)]():this[_0x3be57a(0x376)]['getStartConnectInfo']();if(_0x420570){this[_0x3be57a(0x2d1)](_0x420570,_0x3fcea8,_0x571b90,_0x3abbbf,_0x56b0af);return;}this[_0x3be57a(0x1a9)](_0x3fcea8,_0x310e83,_0x571b90,_0x3abbbf,_0x56b0af);}),this[_0x378849(0x372)]=_0x14c5ab[_0x378849(0x36d)][_0x378849(0x318)]((_0x57f57a,_0x1eede6)=>{const _0x36630a=_0x378849;this[_0x36630a(0x3d4)](_0x14c5ab,_0x310e83,_0x57f57a,_0x571b90,_0x50a740);}),_0x6555ac[_0x378849(0x34a)]();})));}[_0x244912(0x306)](_0xb99396,_0x34e237,_0x2fc17a){const _0x8b8113=_0x244912;let _0x330ef8=this[_0x8b8113(0x288)][_0x8b8113(0x1f4)](_0xb99396,_0x34e237,_0x2fc17a);if(!_0x330ef8||_0x330ef8[_0x8b8113(0x1ae)]===0x0)return;let _0x24ea1a=this[_0x8b8113(0x2f0)][_0x8b8113(0x276)](_0xb99396);if(!_0x24ea1a)return;let {scene:_0x33651f}=_0x24ea1a;for(let _0x34b66e of _0x330ef8){let _0x2ef41b=_0x34b66e[_0x8b8113(0x365)],_0x4c3779=this['_sheetsShapeService'][_0x8b8113(0x35b)](_0xb99396,_0x34e237,_0x2ef41b);if(!_0x4c3779)continue;let _0x52fa09=_0x4c3779[_0x8b8113(0x26b)](),_0x58d708=_0x4c3779[_0x8b8113(0x283)](),_0xeeccc5=(_0x52fa09==null?void 0x0:_0x52fa09[_0x8b8113(0x19c)])===_0x2fc17a,_0x226743=_0x5cc8a7({'unitId':_0xb99396,'subUnitId':_0x34e237,'drawingId':_0x2ef41b}),_0x1389bb=_0x33651f['getObjectIncludeInGroup'](_0x226743);if(!_0x1389bb)continue;let _0x58202f=this[_0x8b8113(0x239)][_0x8b8113(0x3a5)]({'unitId':_0xb99396,'subUnitId':_0x34e237,'drawingId':_0x2ef41b});_0x58202f!=null&&_0x58202f[_0x8b8113(0x1b7)]&&(_0x52fa09&&_0x58d708?this[_0x8b8113(0x2ac)](_0xb99396,_0x34e237,_0x2ef41b,_0x4c3779,_0x52fa09,_0x58d708,_0x1389bb):this[_0x8b8113(0x1a8)](_0xb99396,_0x34e237,_0x2ef41b,_0x4c3779,_0xeeccc5?_0x52fa09:_0x58d708,_0xeeccc5,_0x58202f,_0x1389bb));}}['_rerouteConnectorLine'](_0x1bade5,_0x35b98c,_0x4229cf,_0x26bfa1,_0x263bdc,_0x2bf191,_0x4f26a3){const _0xea0df=_0x244912;let _0x23aebd=this[_0xea0df(0x20a)],_0x6587a8=this[_0xea0df(0x1e9)];this['_unitId']=_0x1bade5,this[_0xea0df(0x1e9)]=_0x35b98c;let _0x43c4a1=this[_0xea0df(0x303)](_0x263bdc),_0x5a9fb8=this['_getConnectPointInfo'](_0x2bf191);if(this[_0xea0df(0x20a)]=_0x23aebd,this[_0xea0df(0x1e9)]=_0x6587a8,!_0x43c4a1||!_0x5a9fb8)return;let _0x14f2f2=_0x26bfa1[_0xea0df(0x382)](),_0x4712d4=_0x349ecd(_0x43c4a1,_0x5a9fb8,_0x14f2f2);_0x4712d4&&_0x26bfa1['updateLinePoints'](_0x4712d4);let _0x1bd6c1=_0x42d9b4(_0x4712d4,_0x14f2f2);_0x1bd6c1[_0xea0df(0x2d7)]!==_0x14f2f2&&_0x26bfa1['changeShapeType'](_0x1bd6c1[_0xea0df(0x2d7)]),_0x26bfa1['clearAdjustValue']();for(let [_0x4479d1,_0x149351]of Object[_0xea0df(0x324)](_0x1bd6c1[_0xea0df(0x380)]))_0x26bfa1[_0xea0df(0x3b3)](_0x4479d1,_0x149351);_0x26bfa1[_0xea0df(0x340)]({'width':_0x1bd6c1['worldRect'][_0xea0df(0x326)],'height':_0x1bd6c1['worldRect']['height']}),_0x4f26a3[_0xea0df(0x1d8)]({'flipX':_0x1bd6c1[_0xea0df(0x278)]['flipX'],'flipY':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x3b2)],'left':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x1fe)],'top':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x172)],'width':_0x1bd6c1[_0xea0df(0x278)]['width'],'height':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x1ba)],'angle':_0x1bd6c1[_0xea0df(0x28c)]}),_0x26bfa1['removeLinePoints']();}[_0x244912(0x1a8)](_0x31cc2a,_0x347855,_0x132014,_0x5640db,_0x40b972,_0x18e330,_0x25cdaf,_0x2c42fb){const _0x5b2288=_0x244912;let _0x3808af=this[_0x5b2288(0x20a)],_0x4e7058=this[_0x5b2288(0x1e9)];this['_unitId']=_0x31cc2a,this[_0x5b2288(0x1e9)]=_0x347855;let _0xbe0b8f=this['_getConnectPointInfo'](_0x40b972);if(this[_0x5b2288(0x20a)]=_0x3808af,this['_subUnitId']=_0x4e7058,!_0xbe0b8f)return;let {left:_0x22e5d5=0x0,top:_0x373759=0x0,width:_0x1e7a13=0x0,height:_0x28be11=0x0,flipX:_0x430599=!0x1,flipY:_0x5af273=!0x1}=_0x25cdaf[_0x5b2288(0x1b7)],_0x321d8a=_0x5640db['getConnectorLinePoints']();if(_0x321d8a[_0x5b2288(0x1ae)]<0x2)return;let _0x18639b=new _0x3a7d90({'left':_0x22e5d5,'top':_0x373759,'width':_0x1e7a13,'height':_0x28be11,'flipX':_0x430599,'flipY':_0x5af273}),_0x5be4aa=_0x18e330?_0x321d8a[_0x321d8a[_0x5b2288(0x1ae)]-0x1]:_0x321d8a[0x0],_0x15879a=_0x18639b[_0x5b2288(0x2aa)](_0x5be4aa),_0x5cec49=_0x3a7d90[_0x5b2288(0x16c)](_0x15879a,_0xbe0b8f[_0x5b2288(0x2b9)],!_0x18e330);_0x2c42fb[_0x5b2288(0x1d8)]({'flipX':_0x5cec49['worldRect'][_0x5b2288(0x166)],'flipY':_0x5cec49['worldRect']['flipY'],'left':_0x5cec49[_0x5b2288(0x278)]['left'],'top':_0x5cec49['worldRect']['top'],'width':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x326)],'height':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x1ba)],'angle':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x388)]}),_0x2c42fb[_0x5b2288(0x23a)](!0x0);}[_0x244912(0x2db)](){const _0x1b3b7d=_0x244912;this[_0x1b3b7d(0x1d6)][_0x1b3b7d(0x1ae)]!==0x0&&(this[_0x1b3b7d(0x1d6)][_0x1b3b7d(0x2b3)](_0x3738c8=>{const _0x1f6f2b=_0x1b3b7d;_0x3738c8[_0x1f6f2b(0x346)]();}),this[_0x1b3b7d(0x1d6)]=[]);}[_0x244912(0x3e6)](){const _0x28598a=_0x244912;let _0x556671=this[_0x28598a(0x321)][_0x28598a(0x25d)](_0x37e7a9[_0x28598a(0x2c9)]);this[_0x28598a(0x14a)](_0x556671[_0x28598a(0x18a)](_0x4ab26c(_0x313151=>_0x313151?_0x313151[_0x28598a(0x3cd)][_0x28598a(0x18a)](_0x4ab26c(_0x436ea1=>{const _0x997b12=_0x28598a;if(!_0x436ea1)return _0x351d29;let _0x4ed300=_0x313151[_0x997b12(0x186)](),_0x10b19f=this[_0x997b12(0x2f0)][_0x997b12(0x276)](_0x4ed300),_0x3624bc=_0x10b19f==null?void 0x0:_0x10b19f[_0x997b12(0x229)];return _0x3624bc?_0x1e0e82(_0x3624bc):_0x351d29;})):_0x351d29))[_0x28598a(0x305)](_0x44337d=>{const _0x482a2f=_0x28598a;let _0x4daf0d=_0x44337d[_0x482a2f(0x3ed)]();this[_0x482a2f(0x14a)](_0x44337d[_0x482a2f(0x1c6)][_0x482a2f(0x318)](_0x2f9a02=>{const _0x4da4ba=_0x482a2f;this[_0x4da4ba(0x15e)]&&this[_0x4da4ba(0x195)]&&this[_0x4da4ba(0x2db)]();})),this['disposeWithMe'](_0x4daf0d[_0x482a2f(0x24c)]['subscribe'](_0x11c96=>{const _0x36f6d7=_0x482a2f;let {objects:_0x18340f}=_0x11c96;this['_clearShapeConnectorHandlerObjects'](),_0x18340f!==null&&_0x18340f[_0x36f6d7(0x17a)]===0x1&&_0x18340f[_0x36f6d7(0x196)]()[_0x36f6d7(0x3ac)]()[_0x36f6d7(0x3de)]instanceof Er&&(this[_0x36f6d7(0x15e)]=!0x0);})),this[_0x482a2f(0x14a)](_0x4daf0d[_0x482a2f(0x226)]['subscribe'](_0x2915d8=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x44337d['onPointerUp$']['subscribeEvent'](()=>{const _0x50c7be=_0x482a2f;this[_0x50c7be(0x15e)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x50c7be(0x386)]());})),this['disposeWithMe'](_0x4daf0d[_0x482a2f(0x27f)][_0x482a2f(0x305)](()=>{const _0x6008a7=_0x482a2f;this[_0x6008a7(0x20a)]&&this[_0x6008a7(0x1e9)]&&this[_0x6008a7(0x195)]&&this[_0x6008a7(0x239)][_0x6008a7(0x3a5)]({'unitId':this['_unitId'],'subUnitId':this[_0x6008a7(0x1e9)],'drawingId':this[_0x6008a7(0x195)]})&&(this[_0x6008a7(0x2db)](),this[_0x6008a7(0x386)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x14f44e=_0x244912;this[_0x14f44e(0x14a)](this[_0x14f44e(0x239)]['focus$']['subscribe'](_0x47e9fb=>{const _0x3d28e6=_0x14f44e;if(_0x47e9fb[_0x3d28e6(0x1ae)]===0x1){let _0xd412fd=_0x47e9fb[0x0];if(_0xd412fd[_0x3d28e6(0x185)]===_0x54d53a['DRAWING_SHAPE']){let _0x5c1f01=this[_0x3d28e6(0x288)]['getShapeModel'](_0xd412fd['unitId'],_0xd412fd[_0x3d28e6(0x1c5)],_0xd412fd[_0x3d28e6(0x237)]);if(_0x5c1f01&&_0x3c2fe3(_0x5c1f01[_0x3d28e6(0x382)]())){this[_0x3d28e6(0x195)]=_0xd412fd[_0x3d28e6(0x237)],this[_0x3d28e6(0x20a)]=_0xd412fd[_0x3d28e6(0x21f)],this[_0x3d28e6(0x1e9)]=_0xd412fd['subUnitId'],this[_0x3d28e6(0x2db)](),this[_0x3d28e6(0x386)]();return;}}}this[_0x3d28e6(0x195)]=void 0x0,this[_0x3d28e6(0x20a)]=void 0x0,this[_0x3d28e6(0x1e9)]=void 0x0,this[_0x3d28e6(0x2db)]();})),this['disposeWithMe'](this[_0x14f44e(0x239)][_0x14f44e(0x1cd)][_0x14f44e(0x305)](_0x4cf11e=>{const _0x567509=_0x14f44e;if(_0x4cf11e[_0x567509(0x1ae)]===0x1){var _0x52c8fe;let _0x27fc11=_0x4cf11e[0x0],_0x3645e9=(_0x52c8fe=this[_0x567509(0x239)][_0x567509(0x3a5)](_0x27fc11))==null?void 0x0:_0x52c8fe['drawingType'];_0x3645e9===_0x54d53a['DRAWING_SHAPE']&&_0x27fc11[_0x567509(0x237)]===this[_0x567509(0x195)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x567509(0x195)]&&_0x3645e9===_0x54d53a[_0x567509(0x1b1)]&&this[_0x567509(0x306)](_0x27fc11['unitId'],_0x27fc11[_0x567509(0x1c5)],_0x27fc11[_0x567509(0x237)]);}})),this[_0x14f44e(0x14a)](this[_0x14f44e(0x239)][_0x14f44e(0x16d)][_0x14f44e(0x305)](_0x4379b5=>{const _0x23356f=_0x14f44e;for(let _0x40945b of _0x4379b5){let {drawingId:_0x1955c2}=_0x40945b;if(this[_0x23356f(0x195)]===_0x1955c2){this['_reset']();return;}}}));}[_0x244912(0x2d1)](_0x4057f2,_0x2595c4,_0x4cddaf,_0x347a78,_0x1fcc15){const _0x8df13a=_0x244912;var _0x365ea0;if(!this[_0x8df13a(0x376)])return;let _0x29a7c2=this[_0x8df13a(0x303)](_0x4057f2);if(!_0x29a7c2)return;let _0x1f63b9=this['_currentConnectionTarget']?this['_currentConnectionTarget'][_0x8df13a(0x148)]:_0x2595c4,_0x110a41=this['_currentConnectionTarget']?this[_0x8df13a(0x2ae)][_0x8df13a(0x388)]:this[_0x8df13a(0x20b)](_0x29a7c2[_0x8df13a(0x2b9)],_0x1f63b9),_0xa45365;if(this[_0x8df13a(0x2ae)]){let _0x3a319a=this[_0x8df13a(0x239)]['getDrawingByParam']({'unitId':this[_0x8df13a(0x2ae)][_0x8df13a(0x21f)],'subUnitId':this[_0x8df13a(0x2ae)][_0x8df13a(0x1c5)],'drawingId':this[_0x8df13a(0x2ae)][_0x8df13a(0x19c)]});if(_0x3a319a!=null&&_0x3a319a[_0x8df13a(0x1b7)]){let {left:_0x53b044=0x0,top:_0x242812=0x0,width:_0x2251ab=0x0,height:_0x37f990=0x0,angle:_0x2b0095}=_0x3a319a[_0x8df13a(0x1b7)];_0xa45365=_0x3e1f4f({'left':_0x53b044,'top':_0x242812,'width':_0x2251ab,'height':_0x37f990},_0x2b0095||0x0);}else _0xa45365={'left':_0x1f63b9['x'],'top':_0x1f63b9['y'],'width':0x0,'height':0x0};}else _0xa45365={'left':_0x1f63b9['x'],'top':_0x1f63b9['y'],'width':0x0,'height':0x0};let _0x5ca500={'point':_0x1f63b9,'angle':_0x110a41,'bounds':_0xa45365},_0x419e6a=_0x4cddaf?_0x5ca500:_0x29a7c2,_0x44b966=_0x4cddaf?_0x29a7c2:_0x5ca500,_0x27cc7f=this['_activeShapeModel']['getShapeType'](),_0x1ef5d5=_0x349ecd(_0x419e6a,_0x44b966,_0x27cc7f);_0x1ef5d5&&this['_activeShapeModel'][_0x8df13a(0x358)](_0x1ef5d5);let _0xd9dedb=_0x42d9b4(_0x1ef5d5,_0x27cc7f);_0xd9dedb[_0x8df13a(0x2d7)]!==_0x27cc7f&&this[_0x8df13a(0x376)]['changeShapeType'](_0xd9dedb[_0x8df13a(0x2d7)]);for(let [_0x765c31,_0x58c8b2]of Object[_0x8df13a(0x324)](_0xd9dedb[_0x8df13a(0x380)]))this[_0x8df13a(0x376)][_0x8df13a(0x3b3)](_0x765c31,_0x58c8b2);this['_activeShapeModel']['updateContext']({'width':_0xd9dedb[_0x8df13a(0x278)]['width'],'height':_0xd9dedb['worldRect'][_0x8df13a(0x1ba)]}),_0x347a78[_0x8df13a(0x1d8)]({'flipX':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x166)],'flipY':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x3b2)],'left':_0xd9dedb[_0x8df13a(0x278)]['left'],'top':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x172)],'width':_0xd9dedb[_0x8df13a(0x278)]['width'],'height':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x1ba)],'angle':_0xd9dedb[_0x8df13a(0x28c)]}),_0x347a78[_0x8df13a(0x23a)](!0x0);let _0x515be5=((_0x365ea0=this[_0x8df13a(0x2ae)])==null?void 0x0:_0x365ea0[_0x8df13a(0x148)])??_0x2595c4;_0x1fcc15[_0x8df13a(0x1d8)]({'left':_0x515be5['x']-_0x59f579[_0x8df13a(0x15b)],'top':_0x515be5['y']-_0x59f579[_0x8df13a(0x15b)]});}[_0x244912(0x1a9)](_0x3c4b21,_0x3b2d24,_0x4d5438,_0x5d85c1,_0x425101){const _0x58de26=_0x244912;var _0x4340c8,_0xbbc684;let _0x555abd=((_0x4340c8=this['_currentConnectionTarget'])==null?void 0x0:_0x4340c8['worldPoint'])??_0x3c4b21,_0x2ab77c=_0x3a7d90['computeConnectorResizeLayout'](_0x3b2d24,_0x555abd,_0x4d5438);_0x5d85c1[_0x58de26(0x1d8)]({'flipX':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x166)],'flipY':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x3b2)],'left':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x1fe)],'top':_0x2ab77c['worldRect'][_0x58de26(0x172)],'width':_0x2ab77c[_0x58de26(0x278)]['width'],'height':_0x2ab77c[_0x58de26(0x278)]['height'],'angle':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x388)]});let _0x1fda6a=((_0xbbc684=this[_0x58de26(0x2ae)])==null?void 0x0:_0xbbc684['worldPoint'])??_0x3c4b21;_0x425101['transformByState']({'left':_0x1fda6a['x']-_0x59f579[_0x58de26(0x15b)],'top':_0x1fda6a['y']-_0x59f579[_0x58de26(0x15b)]});}[_0x244912(0x303)](_0x519fab){const _0x1f1833=_0x244912;if(!this['_unitId']||!this[_0x1f1833(0x1e9)])return null;let {shapeId:_0x18c2cc,cxnIndex:_0x4d44b9}=_0x519fab,_0x2e7cd4=this[_0x1f1833(0x288)][_0x1f1833(0x35b)](this['_unitId'],this[_0x1f1833(0x1e9)],_0x18c2cc);if(!_0x2e7cd4)return null;let _0x31bca5=this['_drawingManagerService'][_0x1f1833(0x3a5)]({'unitId':this[_0x1f1833(0x20a)],'subUnitId':this[_0x1f1833(0x1e9)],'drawingId':_0x18c2cc});if(!(_0x31bca5!=null&&_0x31bca5[_0x1f1833(0x1b7)]))return null;let {left:_0x11f8a4=0x0,top:_0x18137b=0x0,width:_0x29f170=0x0,height:_0x220728=0x0,flipX:_0x38090e=!0x1,flipY:_0x641fa6=!0x1,angle:_0xebb8}=_0x31bca5[_0x1f1833(0x1b7)];_0x2e7cd4['updateContext']({'width':_0x29f170,'height':_0x220728});let _0x2c8074=_0x2e7cd4[_0x1f1833(0x23d)]()[_0x1f1833(0x2f4)](_0x25ed5d=>_0x25ed5d[_0x1f1833(0x2de)]===_0x4d44b9);if(!_0x2c8074)return null;let _0x4850bf=_0x38090e?_0x29f170-_0x2c8074['x']:_0x2c8074['x'],_0x1815ba=_0x641fa6?_0x220728-_0x2c8074['y']:_0x2c8074['y'];if(_0xebb8!==0x0&&_0xebb8!=null){let _0x3bd796=_0xebb8*Math['PI']/0xb4,_0x15fa1c=Math['cos'](_0x3bd796),_0x170d11=Math[_0x1f1833(0x2e1)](_0x3bd796),_0x161233=_0x29f170/0x2,_0xf23d2b=_0x220728/0x2,_0x1cebcc=_0x4850bf-_0x161233,_0x14051e=_0x1815ba-_0xf23d2b;_0x4850bf=_0x161233+_0x1cebcc*_0x15fa1c-_0x14051e*_0x170d11,_0x1815ba=_0xf23d2b+_0x1cebcc*_0x170d11+_0x14051e*_0x15fa1c;}_0x4850bf+=_0x11f8a4,_0x1815ba+=_0x18137b;let _0x50fb5e=_0x2c8074[_0x1f1833(0x235)]/0xea60;_0x38090e&&(_0x50fb5e=0xb4-_0x50fb5e),_0x641fa6&&(_0x50fb5e=-_0x50fb5e),_0x50fb5e+=_0xebb8||0x0,_0x50fb5e=(_0x50fb5e%0x168+0x168)%0x168;let _0x139b36=_0x3e1f4f({'left':_0x11f8a4,'top':_0x18137b,'width':_0x29f170,'height':_0x220728},_0xebb8||0x0);return{'point':{'x':_0x4850bf,'y':_0x1815ba},'angle':_0x50fb5e,'bounds':_0x139b36};}[_0x244912(0x20b)](_0x5a764,_0x4eb2d2){const _0x543f4f=_0x244912;let _0x87c34f=_0x4eb2d2['x']-_0x5a764['x'],_0x44a5cf=_0x4eb2d2['y']-_0x5a764['y'];return Math[_0x543f4f(0x1a1)](_0x87c34f)>=Math['abs'](_0x44a5cf)?_0x87c34f>=0x0?0xb4:0x0:_0x44a5cf>=0x0?0x10e:0x5a;}[_0x244912(0x3f4)](){const _0x484aec=_0x244912;this[_0x484aec(0x195)]=void 0x0,this[_0x484aec(0x20a)]=void 0x0,this[_0x484aec(0x1e9)]=void 0x0,this[_0x484aec(0x2db)]();}['dispose'](){const _0x52d7e9=_0x244912;this[_0x52d7e9(0x2db)](),super[_0x52d7e9(0x346)]();}};sa=Y([J(0x1,_0x4aa13b),J(0x2,_0xc8f10c),J(0x3,_0x1f50fa),J(0x4,_0x595744),J(0x5,_0x318433(_0x5594a6)),J(0x6,_0x318433(Z)),J(0x7,_0x318433(ia))],sa);let ca=class extends _0x2c7179{constructor(_0x264616,_0xe614ed,_0x434498){const _0x485da9=_0x244912;super(),this[_0x485da9(0x29c)]=_0x264616,this['_drawingManagerService']=_0xe614ed,this[_0x485da9(0x3fe)]=_0x434498,this[_0x485da9(0x2e7)]();}[_0x244912(0x2e7)](){const _0x8a3ac=_0x244912;this[_0x8a3ac(0x14a)](this[_0x8a3ac(0x29c)][_0x8a3ac(0x264)][_0x8a3ac(0x1a6)](this['_sheetPrintInterceptorService'][_0x8a3ac(0x264)][_0x8a3ac(0x154)]()[_0x8a3ac(0x36f)],{'handler':(_0x3f0bb6,_0x3310b6,_0x479dfb)=>{const _0x5d985e=_0x8a3ac;var _0x1bb72a;let {unitId:_0x46fd0f,subUnitId:_0x344333,scene:_0x43efb9,resourceCollector:_0x678588}=_0x3310b6,_0x36b390=(_0x1bb72a=this[_0x5d985e(0x239)][_0x5d985e(0x3d7)](_0x46fd0f))==null?void 0x0:_0x1bb72a[_0x344333];return _0x36b390==null||_0x36b390[_0x5d985e(0x1d7)][_0x5d985e(0x2b3)](_0x427910=>{const _0x1f2982=_0x5d985e;let _0x3a02f3=_0x36b390['data'][_0x427910];_0x3a02f3[_0x1f2982(0x185)]===_0x54d53a[_0x1f2982(0x1b1)]&&!_0x3a02f3[_0x1f2982(0x24d)]&&this[_0x1f2982(0x3fe)][_0x1f2982(0x1da)](_0x3a02f3,_0x43efb9,{'resourceCollector':_0x678588});}),_0x479dfb(_0x3f0bb6);}}));}};ca=Y([J(0x0,_0x318433(_0x14d662)),J(0x1,_0x1f50fa),J(0x2,_0x318433(X))],ca);let la=class extends _0x2c7179{constructor(_0x5ab216,_0xcd4997,_0x352fca){const _0x727128=_0x244912;super(),this['_commandService']=_0x5ab216,this['_localeService']=_0xcd4997,this[_0x727128(0x17f)]=_0x352fca,this[_0x727128(0x250)]();}[_0x244912(0x250)](){const _0x458775=_0x244912;this[_0x458775(0x14a)](this['_commandService']['beforeCommandExecuted'](_0x416654=>{const _0x15bb5d=_0x458775;let _0x1042dc,_0x544bd2;if(_0x416654['id']===_0x13dbe5['id']||_0x416654['id']===_0x168968['id']||_0x416654['id']===_0xb35938['id']){let _0xe2164a=_0x416654[_0x15bb5d(0x348)];_0x1042dc=_0xe2164a[_0x15bb5d(0x21f)],_0x544bd2=_0xe2164a[_0x15bb5d(0x1c5)];}_0x1042dc&&_0x544bd2&&(this[_0x15bb5d(0x17f)][_0x15bb5d(0x2f5)]({'workbookTypes':[_0x59c9a1],'worksheetTypes':[_0x5ec863]},_0x1042dc,_0x544bd2)||this[_0x15bb5d(0x17f)][_0x15bb5d(0x202)](this[_0x15bb5d(0x3b8)]['t'](_0x15bb5d(0x2b5))));}));}};la=Y([J(0x0,_0x318433(_0x4aa13b)),J(0x1,_0x318433(_0x3f1353)),J(0x2,_0x318433(_0x24fc12))],la);let ua=class{constructor(_0x41b228){const _0x32ff6f=_0x244912;this[_0x32ff6f(0x2f0)]=_0x41b228;}[_0x244912(0x2f2)](_0x5a43f6,_0x1d87ca){const _0x373a21=_0x244912;let _0x22ca9e=this[_0x373a21(0x2f0)][_0x373a21(0x276)](_0x5a43f6[_0x373a21(0x21f)]),_0x505410=_0x22ca9e==null?void 0x0:_0x22ca9e[_0x373a21(0x229)];if(!_0x505410)return;let _0x2612b3=_0x5cc8a7(_0x5a43f6),_0x1665e3=_0x505410[_0x373a21(0x251)](_0x2612b3);_0x1665e3==null||_0x1665e3['setFillImage'](_0x1d87ca);}};ua=Y([J(0x0,_0xc8f10c)],ua);let da=class extends _0x3c4eb2{constructor(_0x2935c8=Hi,_0x242458,_0x288ecf,_0x598955,_0x26c19f){const _0x9c1e40=_0x244912;super(),this[_0x9c1e40(0x3f8)]=_0x2935c8,this[_0x9c1e40(0x391)]=_0x242458,this[_0x9c1e40(0x2d0)]=_0x288ecf,this[_0x9c1e40(0x2eb)]=_0x598955,this['_renderManagerService']=_0x26c19f;let {..._0x53a542}=_0x845994({},Hi,this[_0x9c1e40(0x3f8)]);this['_configService']['setConfig'](Vi,_0x53a542),this['_initCommands']();}[_0x244912(0x2ad)](){const _0x3288bb=_0x244912;this['_injector'][_0x3288bb(0x1a3)]([Ji]),this[_0x3288bb(0x391)][_0x3288bb(0x1e0)](Ji),_0x1446da(this[_0x3288bb(0x391)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x244912(0x335)](){const _0xd76dc4=_0x244912;_0x1446da(this[_0xd76dc4(0x391)],[[ia],[Z],[aa]]),_0x45a757(this['_injector'],[[aa],[Z]]),[[ia],[Ui],[sa],[Xi]][_0xd76dc4(0x2b3)](_0x43ba98=>{const _0x4eb270=_0xd76dc4;this[_0x4eb270(0x14a)](this[_0x4eb270(0x2f0)][_0x4eb270(0x240)](_0x37e7a9[_0x4eb270(0x2c9)],_0x43ba98));});}['onRendered'](){const _0x650072=_0x244912;_0x45a757(this[_0x650072(0x391)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}['onSteady'](){const _0x1be495=_0x244912;this[_0x1be495(0x391)][_0x1be495(0x1e0)](Qi)['initShapePopupMenu']();}[_0x244912(0x2fe)](){const _0x297f62=_0x244912;[kr,K,Or,Bi][_0x297f62(0x2b3)](_0x221f8c=>this[_0x297f62(0x14a)](this[_0x297f62(0x2d0)][_0x297f62(0x293)](_0x221f8c)));}};q(da,_0x244912(0x1a2),_0x37e7a9[_0x244912(0x2c9)]),q(da,_0x244912(0x1f9),'SHEET_SHAPE_UI_PLUGIN'),q(da,_0x244912(0x3ff),Ri),q(da,_0x244912(0x345),zi),da=Y([_0x247bab(_0x5c2b4a,_0x21e271,_0x31be2a,_0x48dbc2,_0x3d2d07,_0x99abe1,_0x572c12,_0x26432c,_0x4a669e,_0x41a1bc,_0x49620b,_0x1803a2,_0xe117d2),J(0x1,_0x318433(_0x54646c)),J(0x2,_0x4aa13b),J(0x3,_0x20789e),J(0x4,_0xc8f10c)],da);const fa={'type':_0x1644dd[_0x244912(0x1bf)],'id':_0x244912(0x325),'handler'(){return!0x0;}};function pa(){const _0x197d59=_0x244912;let _0x92a0c4=_0x2c7ca5(_0x1f50fa),_0x321715=_0x297a75(()=>_0x92a0c4[_0x197d59(0x2fc)],_0x92a0c4[_0x197d59(0x2a0)](),!0x1,[_0x92a0c4]);return _0x321715['length']===0x0?null:_0xcdc9dc(_0x197d59(0x396),{'children':_0x4537d2(_0x197d59(0x396),{'className':_0x197d59(0x23b),'children':[_0xcdc9dc(_0x3bb4b3,{'drawings':_0x321715,'hasCropper':!0x1}),_0xcdc9dc(_0x28ac02,{'drawings':_0x321715})]})});}function ma(_0xc0b6b9){let {unitId:_0x1c7d1f,subUnitId:_0x5ed9a4,shapeId:_0x3e745a}=_0xc0b6b9,_0xede998=_0x2c7ca5(_0x4aa13b),_0x2e6d8e=_0x2c7ca5(ua);return _0xcdc9dc(_0x17d686,{..._0xc0b6b9,'positionEditor':_0xcdc9dc(pa,{}),'onUpdateShapeData':(_0x8704c0,_0x6d877f)=>{br(_0xede998,_0x1c7d1f,_0x5ed9a4,_0x3e745a,_0x8704c0,_0x6d877f);},'onUpdateLineShapeData':(_0x200b1a,_0x395ad2)=>{xr(_0xede998,_0x1c7d1f,_0x5ed9a4,_0x3e745a,_0x200b1a,_0x395ad2);},'onUpdateShapeFillImage':_0x84426e=>{const _0x1d91d0=_0x4e9b;_0x2e6d8e[_0x1d91d0(0x2f2)]({'unitId':_0x1c7d1f,'subUnitId':_0x5ed9a4,'drawingId':_0x3e745a},_0x84426e);}});}function ha(_0x5ec4db){const _0x41d7ff=_0x244912;let _0x19bdf5=_0x2c7ca5(_0x11b9ca),_0x5add63=_0x297a75(()=>_0x19bdf5[_0x41d7ff(0x304)],_0x19bdf5[_0x41d7ff(0x176)](),!0x1,[_0x19bdf5]),_0x112c3e=_0x5ec4db[_0x41d7ff(0x3a9)][_0x41d7ff(0x1d9)];return!_0x112c3e||!_0x5add63?null:_0xcdc9dc(ga,{..._0x112c3e,'canvasElement':_0x5ec4db[_0x41d7ff(0x3a9)][_0x41d7ff(0x37d)]});}function ga(_0x2119bc){const _0x3bf8e4=_0x244912;let _0xfe33b7=_0x2c7ca5(_0x4aa13b),_0x3e5518=_0x2c7ca5(_0x5594a6),{unitId:_0x4edefc,subUnitId:_0x2e18ba,drawingId:_0x1ce0f2,drawingType:_0x49d64d,shapeType:_0x1c9fa5}=_0x2119bc,[_0x100981,_0x4a19a9]=_0x1ccdce(_0x2119bc[_0x3bf8e4(0x17d)]),_0x27ef82=_0x3352e0(()=>_0x3c50f1(_0x100981),[_0x100981]),_0x2ad698=_0x3352e0(()=>_0x19f250(_0x100981),[_0x100981]);_0x1ff107(()=>{const _0x32d949=_0x3bf8e4;let _0x5856e3=_0xfe33b7['onCommandExecuted'](_0x5c8744=>{const _0x48b8a7=_0x4e9b;if(_0x5c8744['id']!==_0x4fa39c['id'])return;let _0x334eb5=_0x3e5518[_0x48b8a7(0x1fa)](_0x4edefc,_0x2e18ba,_0x1ce0f2);_0x334eb5&&_0x4a19a9(_0x334eb5);});return()=>_0x5856e3[_0x32d949(0x346)]();},[_0xfe33b7,_0x1ce0f2,_0x3e5518,_0x2e18ba,_0x4edefc]);let _0x3387f1=_0x443b32=>{_0x4a19a9(_0x3c28f9=>({..._0x3c28f9,..._0x443b32}));},_0x34f2bf=_0xdb3df2=>{const _0x26edd4=_0x3bf8e4;let _0x52c4bb=_0x410366(_0x100981,_0xdb3df2);br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,{'oldShapeData':{'shapeText':_0x100981[_0x26edd4(0x2ec)]}},_0x52c4bb),_0x3387f1(_0x52c4bb);},_0x4cd718=_0xaa2e40({'hostType':_0x37e7a9[_0x3bf8e4(0x2c9)],'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'shapeId':_0x1ce0f2,'shapeData':_0x100981,'onUpdateBinding':_0x584573=>{let _0x43b325={'formulaBinding':_0x584573};br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,{'oldShapeData':{'formulaBinding':_0x100981['formulaBinding']}},_0x43b325),_0x3387f1(_0x43b325);}});return _0x4537d2(_0x4ca382,{'children':[_0xcdc9dc(_0x1a3d2a,{'canvasElement':_0x2119bc[_0x3bf8e4(0x37d)],'shapeData':_0x100981,'shapeType':_0x1c9fa5,'textStyle':{'ff':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x3f5)],'fs':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x16a)],'cl':{'rgb':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x364)]},..._0x27ef82},'textModel':_0x2ad698?{'ha':_0x2ad698['ha']??_0x324c7e['LEFT'],'va':_0x2ad698['va']??_0x42b23f[_0x3bf8e4(0x363)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x59f579[_0x3bf8e4(0x38f)],'defaultGradientEndColor':_0x59f579[_0x3bf8e4(0x3b5)],'defaultStrokeColor':_0x59f579[_0x3bf8e4(0x3cb)],'extensionGroups':_0x4cd718[_0x3bf8e4(0x36c)],'floatingObjectToolbarPosition':_0x404cbd['SHEET'],'onUpdateShapeData':(_0x3b22bb,_0x3ae36a)=>{br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,_0x3b22bb,_0x3ae36a),_0x3ae36a&&_0x3387f1(_0x3ae36a);},'onUpdateText':_0x34f2bf,'onOpenPanel':()=>{const _0x22b0c7=_0x3bf8e4;_0xfe33b7[_0x22b0c7(0x1ac)](Lr['id'],{'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'drawingId':_0x1ce0f2});},'onDelete':()=>{const _0x4209a8=_0x3bf8e4;_0xfe33b7[_0x4209a8(0x1ac)](_0x4d296c['id'],{'unitId':_0x4edefc,'drawings':[{'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'drawingId':_0x1ce0f2,'drawingType':_0x49d64d}]});}}),_0x4cd718[_0x3bf8e4(0x1fb)]]});}function _a(_0x13a020){const _0x4a8279=_0x244912;return!!_0x13a020&&_0x4a8279(0x2ab)in _0x13a020&&_0x4a8279(0x3a3)in _0x13a020;}const va=_0x2a23cd(()=>{const _0x20896a=_0x244912;let _0xbcefdf=_0x2c7ca5($),_0x5aec0b=_0x2c7ca5(_0x5594a6),_0x45508d=_0x2c7ca5(_0x1f50fa),_0x27ed79=_0x2c7ca5(_0x4aa13b),_0x164f7f=_0x2c7ca5(_0x466c9e),_0x4e767e=_0x2c7ca5(_0xc8f10c),_0x328c73=_0x3352e0(()=>({'getShapeModel':(_0x5a7d28,_0x496597,_0x3e4b95)=>_0x5aec0b[_0x20896a(0x35b)](_0x5a7d28,_0x496597,_0x3e4b95),'getShapeData':(_0x49858b,_0x59861a,_0x5c4916)=>_0x5aec0b[_0x20896a(0x1fa)](_0x49858b,_0x59861a,_0x5c4916),'getDrawingTransform':(_0x152159,_0x232e52,_0x4e3a83)=>{const _0x23425f=_0x20896a;let _0x111eab=_0x45508d['getDrawingByParam']({'unitId':_0x152159,'subUnitId':_0x232e52,'drawingId':_0x4e3a83});return _0x111eab==null?void 0x0:_0x111eab[_0x23425f(0x1b7)];},'updateShapeText':({unitId:_0xb35182,subUnitId:_0x4577a0,shapeId:_0x241244,shapeText:_0x1a0a73,oldShapeText:_0x495929,hostSize:_0x3955e0})=>{const _0xa80806=_0x20896a;_0x164f7f[_0xa80806(0x1c0)](_0xb35182,()=>{const _0x5f3f9d=_0xa80806;var _0x3c102a;let _0x441558=_0x27ed79[_0x5f3f9d(0x27c)](K['id'],{'unitId':_0xb35182,'subUnitId':_0x4577a0,'shapeId':_0x241244,'shapeData':{'shapeText':_0x1a0a73},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x495929}}});if(!_0x441558||!_0x3955e0)return _0x441558;let _0x405d41=_0x45508d['getDrawingByParam']({'unitId':_0xb35182,'subUnitId':_0x4577a0,'drawingId':_0x241244}),_0x53ebd8=_0x405d41==null?void 0x0:_0x405d41[_0x5f3f9d(0x1b7)];if(!_a(_0x405d41)||!_0x53ebd8)return!0x1;let _0x55cbad={..._0x53ebd8,'width':_0x3955e0[_0x5f3f9d(0x326)],'height':_0x3955e0[_0x5f3f9d(0x1ba)]},_0x5fdad=(_0x3c102a=_0x4e767e[_0x5f3f9d(0x276)](_0xb35182))==null||(_0x3c102a=_0x3c102a[_0x5f3f9d(0x27b)](_0x307dc0)[_0x5f3f9d(0x242)](_0x4577a0))==null?void 0x0:_0x3c102a[_0x5f3f9d(0x290)];return _0x27ed79[_0x5f3f9d(0x27c)](_0x480d38['id'],{'unitId':_0xb35182,'drawings':[{..._0x405d41,'transform':_0x55cbad,'sheetTransform':_0x5fdad?_0x3dccba(_0x55cbad,_0x5fdad)??_0x405d41[_0x5f3f9d(0x3a3)]:_0x405d41[_0x5f3f9d(0x3a3)],'axisAlignSheetTransform':_0x5fdad?_0x306e59(_0x55cbad,_0x5fdad)??_0x405d41[_0x5f3f9d(0x2ab)]:_0x405d41['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x446cde,subUnitId:_0x226dfa,shapeId:_0x127e55,width:_0x4b482e,height:_0x1bf144})=>{const _0x28414b=_0x20896a;var _0x149644;let _0x4292a7=_0x45508d[_0x28414b(0x3a5)]({'unitId':_0x446cde,'subUnitId':_0x226dfa,'drawingId':_0x127e55}),_0x5b0c88=_0x4292a7==null?void 0x0:_0x4292a7[_0x28414b(0x1b7)];if(!_a(_0x4292a7)||!_0x5b0c88)return;let _0x1c3f2a={..._0x5b0c88,'width':_0x4b482e,'height':_0x1bf144},_0x40c8c3=(_0x149644=_0x4e767e['getRenderUnitById'](_0x446cde))==null||(_0x149644=_0x149644[_0x28414b(0x27b)](_0x307dc0)[_0x28414b(0x242)](_0x226dfa))==null?void 0x0:_0x149644['skeleton'],_0x2eb327=_0x40c8c3?_0x3dccba(_0x1c3f2a,_0x40c8c3)??_0x4292a7[_0x28414b(0x3a3)]:_0x4292a7['sheetTransform'],_0x2696e3=_0x40c8c3?_0x306e59(_0x1c3f2a,_0x40c8c3)??_0x4292a7[_0x28414b(0x2ab)]:_0x4292a7[_0x28414b(0x2ab)];_0x27ed79[_0x28414b(0x1ac)](_0x480d38['id'],{'unitId':_0x446cde,'drawings':[{..._0x4292a7,'transform':_0x1c3f2a,'sheetTransform':_0x2eb327,'axisAlignSheetTransform':_0x2696e3}]});},'allowHostSizeShrink':({unitId:_0x3d5148,subUnitId:_0x4b6077,shapeId:_0x3244f7})=>_0x51130d(_0x5aec0b[_0x20896a(0x1fa)](_0x3d5148,_0x4b6077,_0x3244f7)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x27ed79,_0x45508d,_0x4e767e,_0x5aec0b,_0x164f7f]),_0xa0a270=_0x3352e0(()=>({'viewportKeys':{'main':_0x54edb1[_0x20896a(0x385)],'leftTop':_0x54edb1[_0x20896a(0x15a)],'top':_0x54edb1[_0x20896a(0x178)],'left':_0x54edb1['VIEW_MAIN_LEFT']},'getSkeleton':(_0x368cb2,_0x101270)=>{const _0xcb8745=_0x20896a;var _0x5944c6;return((_0x5944c6=_0x368cb2[_0xcb8745(0x27b)](_0x307dc0)['getSkeletonParam'](_0x101270[_0xcb8745(0x1c5)]))==null?void 0x0:_0x5944c6[_0xcb8745(0x290)])??null;}}),[]);return _0xcdc9dc(_0xa7fac2,{'adapter':_0x328c73,'editingService':_0xbcefdf,'editorUnitId':Pr,'positionOptions':_0xa0a270});});let ya=class extends _0x2c7179{constructor(_0x33afa7,_0x5918b5){const _0x92d486=_0x244912;super(),this[_0x92d486(0x2df)]=_0x33afa7,this[_0x92d486(0x22d)]=_0x5918b5,this['_registerIcons'](),this[_0x92d486(0x277)]();}['_registerIcons'](){const _0x19bedb=_0x244912;this[_0x19bedb(0x22d)]['has'](_0x19bedb(0x2d3))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'ObjectLayersIcon':_0x4809c9})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x2fb))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'FlipHorizontalIcon':_0x183126})),this['_iconManager'][_0x19bedb(0x33a)](_0x19bedb(0x167))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)]['register']({'FlipVerticalIcon':_0x3dabc1})),this['_iconManager']['has'](_0x19bedb(0x16e))||this[_0x19bedb(0x14a)](this['_iconManager'][_0x19bedb(0x2a8)]({'BottomIcon':_0xe20eb})),this[_0x19bedb(0x22d)]['has'](_0x19bedb(0x23e))||this[_0x19bedb(0x14a)](this['_iconManager'][_0x19bedb(0x2a8)]({'MoveDownIcon':_0x1bee1c})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x357))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'MoveUpIcon':_0x368783})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'ShapeFormatSettingIcon':_0x1516df})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x160))||this[_0x19bedb(0x14a)](this['_iconManager']['register']({'TopmostIcon':_0x1f7182}));}[_0x244912(0x277)](){const _0x2bf7ec=_0x244912;this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Ar,ma)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](jr,Ki)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Vr,qr)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Hr,Wr)),this[_0x2bf7ec(0x2df)]['get'](_0x184fa8)||this[_0x2bf7ec(0x14a)](this['_componentManager'][_0x2bf7ec(0x2a8)](_0x184fa8,Kr)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Mr,ha)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](ii,ci)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)]['register'](ri,li)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)]['register'](ai,ui)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)]['register'](oi,di)),this['disposeWithMe'](this['_componentManager']['register'](Fr,_0x2689dd)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)]['register'](_0x2bf7ec(0x3ec),va));}};ya=Y([J(0x0,_0x318433(_0x56d3ac)),J(0x1,_0x318433(_0x40e0f9))],ya);let ba=class extends _0x2c7179{constructor(_0x40c7bc,_0x44ddb6,_0x3dd584,_0x5c1976,_0x9aac40,_0x5ef861,_0x3a2e6d,_0xa8efdc,_0x3796e8){const _0x80b810=_0x244912;super();let _0x572665=_0x4e2887=>{const _0x3b3374=_0x4e9b;var _0x37588e,_0x181452;return(((_0x37588e=_0xa8efdc[_0x3b3374(0x2d6)](new _0x59c9a1(_0x4e2887[_0x3b3374(0x21f)])['id']))==null?void 0x0:_0x37588e[_0x3b3374(0x3de)])??!0x0)&&(((_0x181452=_0xa8efdc[_0x3b3374(0x2d6)](new _0x5ec863(_0x4e2887['unitId'],_0x4e2887['subUnitId'])['id']))==null?void 0x0:_0x181452[_0x3b3374(0x3de)])??!0x0);},_0x14ef50=_0xa0ada1=>_0xa0ada1['shapeId']&&_0x572665(_0xa0ada1)?_0x3dd584['getShapeDataById'](_0xa0ada1[_0x80b810(0x21f)],_0xa0ada1[_0x80b810(0x1c5)],_0xa0ada1[_0x80b810(0x19c)])??null:null,_0x12e8cd=()=>{const _0xc650b3=_0x80b810;let _0x1b10d4=_0x9aac40[_0xc650b3(0x2a0)](),_0x309b91=_0x1b10d4[_0xc650b3(0x1ae)]===0x1?_0x1b10d4[0x0]:null;return(_0x309b91==null?void 0x0:_0x309b91[_0xc650b3(0x185)])===_0x54d53a[_0xc650b3(0x1b1)]&&_0x309b91[_0xc650b3(0x21f)]===_0x40c7bc[_0xc650b3(0x21f)]?{'unitId':_0x309b91[_0xc650b3(0x21f)],'subUnitId':_0x309b91[_0xc650b3(0x1c5)],'shapeId':_0x309b91[_0xc650b3(0x237)]}:null;};this[_0x80b810(0x14a)](_0x3ed075(_0x40c7bc,_0x44ddb6,{'changes$':_0xa89b72(_0x9aac40[_0x80b810(0x2fc)],_0x5c1976[_0x80b810(0x256)],_0xa8efdc[_0x80b810(0x236)]),'isActive':()=>{const _0x185998=_0x80b810;var _0x2437c7;return((_0x2437c7=_0x5ef861['getFocusedUnit']())==null?void 0x0:_0x2437c7['getUnitId']())===_0x40c7bc[_0x185998(0x21f)]&&!_0x3a2e6d[_0x185998(0x2c8)](_0x3e7b7b)&&_0x9aac40[_0x185998(0x2a0)]()[_0x185998(0x22e)](_0x5a6ae2=>_0x5a6ae2['unitId']===_0x40c7bc['unitId']);},'getSelectedTarget':_0x12e8cd,'getSource':()=>{let _0xea436f=_0x12e8cd();return _0xea436f?_0x14ef50(_0xea436f):null;},'getTarget':_0x44c761=>{const _0x5dc66b=_0x80b810;let _0x24d12b=_0x40c7bc[_0x5dc66b(0x229)][_0x5dc66b(0x2fa)](new _0x145e25(_0x44c761[_0x5dc66b(0x3d2)],_0x44c761['offsetY']));if(!(_0x24d12b instanceof Er))return null;let _0xd5c66c={'unitId':_0x40c7bc[_0x5dc66b(0x21f)],'subUnitId':_0x24d12b[_0x5dc66b(0x1c5)],'shapeId':_0x24d12b[_0x5dc66b(0x19c)]};return _0x572665(_0xd5c66c)?_0xd5c66c:null;},'getShape':_0x14ef50,'update':(_0x529e3b,_0x1da10f,_0x17e842)=>_0x3796e8[_0x80b810(0x1ac)](K['id'],{..._0x529e3b,'shapeData':_0x17e842,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x1da10f}})}));}};ba=Y([J(0x1,_0x318433(_0x131d68)),J(0x2,_0x318433(_0x5594a6)),J(0x3,_0x318433($)),J(0x4,_0x1f50fa),J(0x5,_0x595744),J(0x6,_0x21e25a),J(0x7,_0x10d99e),J(0x8,_0x4aa13b)],ba);const xa='sheets-shape-contextual-ribbon';let Sa=class extends _0x2c7179{constructor(_0xeebf04,_0x248079,_0x80f52a,_0x5252ad,_0x5b3e8e,_0x562ae6){const _0x5537a1=_0x244912;super(),this[_0x5537a1(0x3f7)]=_0xeebf04,this[_0x5537a1(0x260)]=_0x248079,this[_0x5537a1(0x239)]=_0x80f52a,this['_univerInstanceService']=_0x5252ad,this[_0x5537a1(0x2f0)]=_0x5b3e8e,this[_0x5537a1(0x3c0)]=_0x562ae6,q(this,_0x5537a1(0x18c),!0x1),this[_0x5537a1(0x3f7)][_0x5537a1(0x390)](Fi),this[_0x5537a1(0x14a)](_0x21ce23(this['_drawingManagerService']['focus$'][_0x5537a1(0x305)](()=>this[_0x5537a1(0x1ff)]()))),this[_0x5537a1(0x1ff)]();}[_0x244912(0x346)](){const _0x2410f4=_0x244912;this[_0x2410f4(0x3c0)][_0x2410f4(0x1c3)](!0x1,xa),this[_0x2410f4(0x355)](),super['dispose']();}[_0x244912(0x1ff)](){const _0x3c25d8=_0x244912;var _0x8b4c8b;let _0x581f6d=this['_drawingManagerService'][_0x3c25d8(0x2a0)](),_0x35d3f7=_0x581f6d[_0x3c25d8(0x1ae)]===0x1?_0x581f6d[0x0]:void 0x0;if((_0x35d3f7==null?void 0x0:_0x35d3f7[_0x3c25d8(0x185)])!==_0x54d53a['DRAWING_SHAPE']||this[_0x3c25d8(0x321)]['getUnitType'](_0x35d3f7[_0x3c25d8(0x21f)])!==_0x37e7a9['UNIVER_SHEET']){this[_0x3c25d8(0x3c0)]['setFallbackVisible'](!0x1,xa),this[_0x3c25d8(0x355)]();return;}let _0x3bf827=(_0x8b4c8b=this[_0x3c25d8(0x2f0)][_0x3c25d8(0x276)](_0x35d3f7['unitId']))==null?void 0x0:_0x8b4c8b[_0x3c25d8(0x341)]['getCanvasElement'](),_0x21c693=_0x570759(_0x3bf827)==='isolated';if(this[_0x3c25d8(0x3c0)]['setFallbackVisible'](_0x21c693,xa),_0x21c693){this[_0x3c25d8(0x355)]();return;}this[_0x3c25d8(0x18c)]||(this['_visible']=!0x0,this[_0x3c25d8(0x260)][_0x3c25d8(0x29e)](Nr,{'activate':!0x0}));}[_0x244912(0x355)](){const _0x184a8b=_0x244912;this['_visible']&&(this[_0x184a8b(0x18c)]=!0x1,this[_0x184a8b(0x260)][_0x184a8b(0x29b)](Nr),this['_ribbonService'][_0x184a8b(0x25a)]([]));}};Sa=Y([J(0x0,_0x2ed3c1),J(0x1,_0x313322),J(0x2,_0x1f50fa),J(0x3,_0x595744),J(0x4,_0xc8f10c),J(0x5,_0x318433(_0x11b9ca))],Sa);let Ca=class extends _0x2ed20c{constructor(_0x112954,_0x107550,_0x162349,_0x2bd615,_0x2efe43,_0x4c728e,_0x31f22f,_0x164ef4,_0x579346,_0x39c1ae){super(_0x112954,_0x107550,_0x162349,_0x2bd615,_0x2efe43,_0x4c728e,_0x31f22f,_0x164ef4,_0x579346,_0x39c1ae,{'componentKey':Fr,'editorUnitId':Pr});}};Ca=Y([J(0x1,_0x318433(_0x2f74d4)),J(0x2,_0x318433(_0x5908e1)),J(0x3,_0x318433(_0x1706ef)),J(0x4,_0x4aa13b),J(0x5,_0x318433(_0x181919)),J(0x6,_0x318433(_0x56b244)),J(0x7,_0x318433(_0x59811b)),J(0x8,_0x318433(_0x44ebf9)),J(0x9,_0x318433($))],Ca);let wa=class extends _0x2c7179{constructor(_0x145d88,_0x4deab1,_0x77944b,_0x177dec,_0x6ae884,_0x4261f7,_0x103cc9,_0xa91718,_0x490a3c,_0x5d0542,_0x2b66ce){const _0x423970=_0x244912;super(),this[_0x423970(0x321)]=_0x145d88,this['_sidebarService']=_0x4deab1,this[_0x423970(0x3f7)]=_0x77944b,this[_0x423970(0x288)]=_0x177dec,this[_0x423970(0x3b8)]=_0x6ae884,this[_0x423970(0x2d0)]=_0x4261f7,this[_0x423970(0x239)]=_0x103cc9,this[_0x423970(0x19d)]=_0xa91718,this[_0x423970(0x210)]=_0x490a3c,this[_0x423970(0x2f0)]=_0x5d0542,this[_0x423970(0x29f)]=_0x2b66ce,q(this,_0x423970(0x3af),null),q(this,_0x423970(0x22f),null),q(this,_0x423970(0x173),!0x1),q(this,_0x423970(0x3f2),0x0),q(this,_0x423970(0x28e),null),q(this,_0x423970(0x393),[]),this['_initMenu'](),this[_0x423970(0x14a)](this['_univerInstanceService'][_0x423970(0x25d)](_0x37e7a9[_0x423970(0x2c9)])[_0x423970(0x305)](_0x2d6442=>{const _0x482d17=_0x423970;if(!_0x2d6442){var _0x2eb705;(_0x2eb705=this[_0x482d17(0x3af)])==null||_0x2eb705[_0x482d17(0x346)]();}})),this[_0x423970(0x15c)](),this[_0x423970(0x1e5)](),this[_0x423970(0x14a)](this[_0x423970(0x29f)][_0x423970(0x256)][_0x423970(0x305)](_0x7f46fc=>{const _0x4ce7a1=_0x423970;_0x7f46fc&&this[_0x4ce7a1(0x39c)]();}));}[_0x244912(0x33e)](){const _0x16ca2b=_0x244912;this['_menuManagerService'][_0x16ca2b(0x390)](Li);}[_0x244912(0x1e5)](){const _0xf0e86b=_0x244912;this[_0xf0e86b(0x28e)]||=this[_0xf0e86b(0x14a)](_0x50a450(this[_0xf0e86b(0x2f0)],_0x37e7a9[_0xf0e86b(0x2c9)],_0x342b45=>this[_0xf0e86b(0x1c1)](_0x342b45)));}[_0x244912(0x1dd)](_0x457fd8,_0x1e78c2,_0xa4919f){const _0x596349=_0x244912;let _0x2c1393=this[_0x596349(0x288)][_0x596349(0x3e4)](_0x457fd8,_0x1e78c2,_0xa4919f),_0x30a1ef=this[_0x596349(0x288)][_0x596349(0x1fa)](_0x457fd8,_0x1e78c2,_0xa4919f);return _0x2c1393!==void 0x0&&_0x30a1ef!==void 0x0?{'shapeData':_0x30a1ef,'shapeId':_0xa4919f,'shapeType':_0x2c1393,'unitId':_0x457fd8,'subUnitId':_0x1e78c2,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x244912(0x39c)](){const _0x3cf0e2=_0x244912;this['_disposePopups'][_0x3cf0e2(0x2b3)](_0x132818=>_0x132818[_0x3cf0e2(0x346)]()),this[_0x3cf0e2(0x393)][_0x3cf0e2(0x1ae)]=0x0;}[_0x244912(0x1c1)](_0x318ab8){const _0x3c9117=_0x244912;let _0x363d3e=new _0x4cf05e();return _0x363d3e[_0x3c9117(0x1a3)](_0x318ab8['createControl$'][_0x3c9117(0x305)](()=>{const _0x726cdb=_0x3c9117;let _0x455ef1=_0x318ab8[_0x726cdb(0x2ba)]();if(this[_0x726cdb(0x39c)](),this[_0x726cdb(0x173)]||_0x455ef1[_0x726cdb(0x17a)]>0x1)return;let _0x5f1f90=_0x455ef1[_0x726cdb(0x196)]()[_0x726cdb(0x3ac)]()[_0x726cdb(0x3de)];if(!_0x5f1f90)return;let _0x272aa0=this[_0x726cdb(0x239)][_0x726cdb(0x28a)](_0x5f1f90[_0x726cdb(0x206)]);if(!_0x272aa0||_0x272aa0[_0x726cdb(0x185)]!==_0x54d53a[_0x726cdb(0x1b1)])return;let {unitId:_0x1ab823,subUnitId:_0x1ccc1c,drawingId:_0x884449,drawingType:_0x10e5be}=_0x272aa0,_0x3dd3fa=this[_0x726cdb(0x1dd)](_0x1ab823,_0x1ccc1c,_0x884449);if(!_0x3dd3fa)return;this[_0x726cdb(0x210)][_0x726cdb(0x234)](_0x15a415,!0x0);let _0x14a856=this['_renderManagerService']['getRenderUnitById'](_0x1ab823),_0x1035b5=((_0x14a856==null?void 0x0:_0x14a856[_0x726cdb(0x199)])===!0x1?_0x14a856['with'](_0xf74177):this[_0x726cdb(0x19d)])[_0x726cdb(0x29a)](_0x5f1f90,{'componentKey':Mr,'direction':_0x726cdb(0x175),'offset':[0x0,_0x574cac],'extraProps':{'unitId':_0x1ab823,'subUnitId':_0x1ccc1c,'drawingId':_0x884449,'drawingType':_0x10e5be,'shapeType':_0x3dd3fa['shapeType'],'shapeData':_0x3dd3fa[_0x726cdb(0x17d)]}});this[_0x726cdb(0x393)][_0x726cdb(0x399)](this[_0x726cdb(0x14a)](_0x1035b5)),this[_0x726cdb(0x239)][_0x726cdb(0x2a0)]()[_0x726cdb(0x2f4)](_0x581203=>_0x581203[_0x726cdb(0x21f)]===_0x1ab823&&_0x581203[_0x726cdb(0x1c5)]===_0x1ccc1c&&_0x581203[_0x726cdb(0x237)]===_0x884449)||this[_0x726cdb(0x239)]['focusDrawing']([{'unitId':_0x1ab823,'subUnitId':_0x1ccc1c,'drawingId':_0x884449}]);})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x26f)][_0x3c9117(0x305)](()=>{const _0x4c8ccd=_0x3c9117;this['_clearPopups'](),this[_0x4c8ccd(0x210)][_0x4c8ccd(0x234)](_0x15a415,!0x1),this[_0x4c8ccd(0x239)][_0x4c8ccd(0x1f3)](null);})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x226)][_0x3c9117(0x305)](()=>{const _0x5eeccf=_0x3c9117;this[_0x5eeccf(0x39c)]();})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x24c)][_0x3c9117(0x305)](()=>{const _0x2d996c=_0x3c9117;this[_0x2d996c(0x39c)]();})),_0x21ce23(()=>{const _0x216eea=_0x3c9117;_0x363d3e[_0x216eea(0x346)](),this[_0x216eea(0x39c)]();});}[_0x244912(0x15c)](){const _0x5addae=_0x244912;this[_0x5addae(0x14a)](this['_commandService'][_0x5addae(0x356)](_0x429436=>{const _0x5b811d=_0x5addae;if(_0x429436['id']===Lr['id']){let {unitId:_0x271089,subUnitId:_0x268c77,drawingId:_0x338793}=_0x429436[_0x5b811d(0x348)];this[_0x5b811d(0x3f2)]+=0x1,this[_0x5b811d(0x22f)]=this[_0x5b811d(0x1dd)](_0x271089,_0x268c77,_0x338793),this[_0x5b811d(0x39c)](),this[_0x5b811d(0x1e7)]();}if(_0x429436['id']===fa['id']&&(this['_activeShapeInfo']=null,this[_0x5b811d(0x208)]()),_0x429436['id']===_0x4fa39c['id']){let {unitId:_0x2277e3,subUnitId:_0x45bda2,shapeId:_0x635e5e}=_0x429436[_0x5b811d(0x348)];if(this[_0x5b811d(0x22f)]&&this[_0x5b811d(0x22f)][_0x5b811d(0x19c)]===_0x635e5e){let _0x22b2cf=this[_0x5b811d(0x1dd)](_0x2277e3,_0x45bda2,_0x635e5e);_0x22b2cf&&(this[_0x5b811d(0x3f2)]+=0x1,_0x22b2cf[_0x5b811d(0x345)]=this[_0x5b811d(0x3f2)],this[_0x5b811d(0x22f)]=_0x22b2cf,this[_0x5b811d(0x173)]&&this[_0x5b811d(0x1e7)]());}}})),this[_0x5addae(0x14a)](this[_0x5addae(0x239)][_0x5addae(0x2fc)][_0x5addae(0x305)](_0x5a16c0=>{const _0x3784ca=_0x5addae;if(this[_0x3784ca(0x173)]===!0x1)return;if(_0x5a16c0[_0x3784ca(0x1ae)]===0x0){this[_0x3784ca(0x22f)]=null,this[_0x3784ca(0x208)]();return;}if(_0x5a16c0[_0x3784ca(0x1ae)]===0x1&&_0x5a16c0[0x0][_0x3784ca(0x185)]===_0x54d53a[_0x3784ca(0x1b1)]&&(this[_0x3784ca(0x3f2)]+=0x1,this[_0x3784ca(0x22f)]=this['_getShapeInfo'](_0x5a16c0[0x0]['unitId'],_0x5a16c0[0x0][_0x3784ca(0x1c5)],_0x5a16c0[0x0]['drawingId']),this[_0x3784ca(0x22f)])){this['_openShapeEditPanel']();return;}let _0x2bf8be=_0x5a16c0[_0x3784ca(0x150)](_0x5287fb=>_0x5287fb['drawingType']===_0x54d53a[_0x3784ca(0x1b1)]);if(_0x5a16c0[_0x3784ca(0x1ae)]>0x1&&_0x2bf8be[_0x3784ca(0x1ae)]===_0x5a16c0['length']){if(this[_0x3784ca(0x3f2)]+=0x1,this[_0x3784ca(0x22f)]=this[_0x3784ca(0x1dd)](_0x5a16c0[0x0][_0x3784ca(0x21f)],_0x5a16c0[0x0][_0x3784ca(0x1c5)],_0x5a16c0[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x3784ca(0x1e7)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x3784ca(0x22f)]=this[_0x3784ca(0x1dd)](_0x5a16c0[0x0][_0x3784ca(0x21f)],_0x5a16c0[0x0]['subUnitId'],_0x5a16c0[0x0][_0x3784ca(0x237)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x3784ca(0x159)]=!0x0,this[_0x3784ca(0x1e7)]();return;}}this[_0x3784ca(0x208)]();}));}['_openShapeEditPanel'](){const _0x428dd5=_0x244912;this[_0x428dd5(0x22f)]&&(this['_sidebarDisposable']=this[_0x428dd5(0x2b8)][_0x428dd5(0x170)]({'id':Ar,'header':{'title':this[_0x428dd5(0x3b8)]['t'](_0x428dd5(0x299))},'width':0x184,'children':{'label':Ar,...this['_activeShapeInfo']},'onClose':()=>{const _0x2fcca0=_0x428dd5;this[_0x2fcca0(0x239)]['focusDrawing'](null),this[_0x2fcca0(0x210)][_0x2fcca0(0x234)](_0x15a415,!0x1),this[_0x2fcca0(0x3af)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x1a2bfd=_0x244912;this['_isOpenedShapeEditPanel']=!0x1,this['_sidebarService']['close'](Ar),this[_0x1a2bfd(0x3af)]=null,this[_0x1a2bfd(0x210)][_0x1a2bfd(0x234)](_0x15a415,!0x1),this[_0x1a2bfd(0x239)]['focusDrawing'](null);}};wa=Y([J(0x0,_0x595744),J(0x1,_0x318433(_0x26d1b3)),J(0x2,_0x2ed3c1),J(0x3,_0x318433(_0x5594a6)),J(0x4,_0x318433(_0x3f1353)),J(0x5,_0x4aa13b),J(0x6,_0x1f50fa),J(0x7,_0x318433(_0xf74177)),J(0x8,_0x21e25a),J(0x9,_0xc8f10c),J(0xa,_0x318433($))],wa);let Ta=class extends _0x3c4eb2{constructor(_0x46e6a4=Hi,_0x7d01f4,_0x512d32,_0xff2025,_0x21ba60){const _0x324342=_0x244912;super(),this[_0x324342(0x3f8)]=_0x46e6a4,this[_0x324342(0x391)]=_0x7d01f4,this[_0x324342(0x2d0)]=_0x512d32,this[_0x324342(0x2eb)]=_0xff2025,this[_0x324342(0x2f0)]=_0x21ba60;let {..._0x1fd5d8}=_0x845994({},Hi,this[_0x324342(0x3f8)]);this[_0x324342(0x2eb)][_0x324342(0x2ea)](Vi,_0x1fd5d8),this[_0x324342(0x2fe)]();}[_0x244912(0x2f8)](){const _0x35fdb7=_0x244912;this[_0x35fdb7(0x2f0)]['registerRenderModule'](_0x37e7a9['UNIVER_DOC'],[Ca]),_0x45a757(this[_0x35fdb7(0x391)],[[wa],[ta],[X],[ca]]);}[_0x244912(0x3bb)](){const _0x253d39=_0x244912;this[_0x253d39(0x391)][_0x253d39(0x1e0)](wa)[_0x253d39(0x1e5)]();}['onReady'](){const _0x57d1b5=_0x244912;[[ia],[Z],[aa]][_0x57d1b5(0x2b3)](_0x5d6fcc=>this[_0x57d1b5(0x391)][_0x57d1b5(0x1a3)](_0x5d6fcc)),_0x45a757(this[_0x57d1b5(0x391)],[[aa],[Z]]),this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[ia]),this[_0x57d1b5(0x2f0)]['registerRenderModule'](_0x37e7a9[_0x57d1b5(0x2c9)],[Ui]),this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[sa]),this['_renderManagerService'][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[Yi]),this['disposeWithMe'](this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[ba]));}[_0x244912(0x2ad)](){const _0x5859ce=_0x244912;this[_0x5859ce(0x391)][_0x5859ce(0x1a3)]([ya]),this['_injector'][_0x5859ce(0x1e0)](ya);let _0x43a425=this['_injector'];[[wa],[ta],[X],[ca],[ua],[$],[ea],[Q],[la],[Sa]][_0x5859ce(0x2b3)](_0x5d8f7f=>_0x43a425[_0x5859ce(0x1a3)](_0x5d8f7f)),_0x45a757(this[_0x5859ce(0x391)],[[wa],[ta],[X],[ua],[$],[ea],[Q],[la],[Sa]]);}[_0x244912(0x2fe)](){const _0xe0ebd9=_0x244912;[kr,K,fa,Lr,Ir,Or,zr,Br][_0xe0ebd9(0x2b3)](_0x33b696=>this['disposeWithMe'](this[_0xe0ebd9(0x2d0)][_0xe0ebd9(0x293)](_0x33b696)));}};q(Ta,_0x244912(0x1a2),_0x37e7a9['UNIVER_SHEET']),q(Ta,_0x244912(0x1f9),_0x244912(0x24a)),q(Ta,_0x244912(0x3ff),Ri),q(Ta,_0x244912(0x345),zi),Ta=Y([_0x247bab(_0x5c2b4a,_0x21e271,_0x31be2a,_0x1df8f2,_0x48dbc2,_0x3d2d07,_0x99abe1,_0x572c12,_0x26432c,_0x57b4f0,_0x41a1bc,_0x30d40e,_0x5cbd77),J(0x1,_0x318433(_0x54646c)),J(0x2,_0x4aa13b),J(0x3,_0x20789e),J(0x4,_0xc8f10c)],Ta);export{Fi as SheetsShapeUIContextualRibbonSchema,Li as SheetsShapeUIMenuSchema,da as UniverSheetsShapeMobileUIPlugin,Ta as UniverSheetsShapeUIPlugin};