@univerjs-pro/sheets-shape-ui 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) 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/types/commands/command/update-shape-data.command.d.ts +1 -0
  62. package/lib/types/commands/operations/shape-ribbon.operation.d.ts +13 -0
  63. package/lib/types/const.d.ts +7 -0
  64. package/lib/types/controllers/shape-contextual-ribbon.controller.d.ts +18 -0
  65. package/lib/types/locale/en-US.d.ts +1 -0
  66. package/lib/types/menu/schema.d.ts +1 -0
  67. package/lib/types/menu/shape-format-ribbon.menu.d.ts +20 -0
  68. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +2 -3
  69. package/lib/types/views/shape-format-ribbon/SheetsShapeFormatRibbonControls.d.ts +8 -0
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -1
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -1
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -1
  79. package/lib/umd/locale/it-IT.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -1
  83. package/lib/umd/locale/pt-BR.js +1 -1
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -1
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25219a=_0x52a4;(function(_0x14b0a3,_0x566bb5){const _0x9d1f88=_0x52a4,_0x235449=_0x14b0a3();while(!![]){try{const _0x59d37c=parseInt(_0x9d1f88(0xeb))/0x1*(parseInt(_0x9d1f88(0x322))/0x2)+parseInt(_0x9d1f88(0x21b))/0x3*(-parseInt(_0x9d1f88(0x1a1))/0x4)+parseInt(_0x9d1f88(0x343))/0x5*(-parseInt(_0x9d1f88(0x274))/0x6)+-parseInt(_0x9d1f88(0x326))/0x7*(parseInt(_0x9d1f88(0x147))/0x8)+-parseInt(_0x9d1f88(0x245))/0x9*(parseInt(_0x9d1f88(0x1b3))/0xa)+parseInt(_0x9d1f88(0x334))/0xb+-parseInt(_0x9d1f88(0x2fd))/0xc*(-parseInt(_0x9d1f88(0x167))/0xd);if(_0x59d37c===_0x566bb5)break;else _0x235449['push'](_0x235449['shift']());}catch(_0x35dd12){_0x235449['push'](_0x235449['shift']());}}}(_0x5f35,0xd757b));import{ComponentManager as _0x21a48b,ContextMenuGroup as _0x9e0dc8,ContextMenuPosition as _0x34d07a,IMenuManagerService as _0x23b358,ISidebarService as _0x54fc19,IconManager as _0x15a7ad,MenuItemType as _0x2aaa41,RibbonInsertGroup as _0x3c626a,getMenuHiddenObservable as _0x315655,useDependency as _0x456f39,useObservable as _0x2cc2b9}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0xd7d9f3,ImageSourceTypeEnum as _0x5a6853,ShapeArrowSizeEnum as _0x4caef4,ShapeArrowTypeEnum as _0x36692d,ShapeDefaultConfig as _0x373ebe,ShapeFillEnum as _0x83e268,ShapeLineTypeEnum as _0x2401bc,ShapeModel as _0x57cb5b,ShapeRenderModeEnum as _0xac9789,ShapeTypeEnum as _0x6bfff9,computeConnectorRouteLayout as _0x47fdde,getBasicShapeRotateBound as _0x10ab2a,isConnectorShape as _0x41a954,isCurvedConnectorShape as _0x5ad544,routeConnectorLineShape as _0x5d6f7b}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x2c2995,UniverShapeEditorPlugin as _0x3eb575,createShapeFormulaDocument as _0x5d87c2,createShapeTextBoxShapeData as _0x597125}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x3a08e6,InsertSheetsShapeMutation as _0x55e264,RemoveSheetsShapeMutation as _0x30f07c,SetShapeDrawingDataCommand as _0x5e53bf,SheetsShapeService as _0x6985f7,ToggleSheetsShapeFlipCommand as _0x5ab636,UniverSheetsShapePlugin as _0x337d0b,UpdateConnectorRelationCommand as _0xdc15a6,UpdateLineShapeResizeCommand as _0xa01182,UpdateSheetsShapeDataMutation as _0x46a98e}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x59b698,CommandType as _0x4d8f21,DependentOn as _0x5c3761,Disposable as _0x3ba2e2,DocumentDataModel as _0x4423a6,DrawingTypeEnum as _0x161136,FOCUSING_COMMON_DRAWINGS as _0x29948b,FOCUSING_SHAPE_TEXT_EDITOR as _0x5d8f61,HorizontalAlign as _0x365b63,ICommandService as _0x16d336,IConfigService as _0x487002,IContextService as _0x334f35,IImageIoService as _0x507a28,IURLImageService as _0x157c04,IUndoRedoService as _0x54bc12,IUniverInstanceService as _0x230412,Inject as _0x396ece,Injector as _0x3cde8e,LocaleService as _0x404764,Plugin as _0x18bfbf,UniverInstanceType as _0x2e857c,VerticalAlign as _0x2c7292,createInternalEditorID as _0x5a685c,generateRandomId as _0x44c0e2,merge as _0x575e93,toDisposable as _0x2388cf,touchDependencies as _0x28631c}from'@univerjs/core';import{CopySheetCommand as _0x4c17f0,RemoveSheetCommand as _0x213d50,SheetInterceptorService as _0x2920c2,SheetPermissionCheckController as _0x5e60fd,SheetSkeletonService as _0x587a33,SheetsSelectionsService as _0x3bd43a,UniverSheetsPlugin as _0x2afa3f,WorkbookEditablePermission as _0x8641fc,WorksheetEditPermission as _0xc6d67c,attachRangeWithCoord as _0x1a0dbd,discreteRangeToRange as _0x58837b,getSheetCommandTarget as _0x4988bb}from'@univerjs/sheets';import{IDrawingManagerService as _0x492363,SetDrawingSelectedOperation as _0x4688df,UniverDrawingPlugin as _0xc0cade,getDrawingShapeKeyByDrawingSearch as _0x566164}from'@univerjs/drawing';import{CURSOR_TYPE as _0x2bcec2,Circle as _0x18400a,DRAWING_OBJECT_LAYER_INDEX as _0x22b4b7,DocumentSkeleton as _0x5c0882,DocumentViewModel as _0x208c57,Documents as _0x11f5a9,IRenderManagerService as _0x471989,Image as _0x8d12f0,RENDER_CLASS_TYPE as _0x4550bb,SHEET_VIEWPORT_KEY as _0x3ce6e8,Shape as _0x1ac658,Transform as _0x34d861,UniverRenderEnginePlugin as _0x3bc238,Vector2 as _0x48df4c}from'@univerjs/engine-render';import{COPY_TYPE as _0x4cbf87,ISheetClipboardService as _0x1249ad,PREDEFINED_HOOK_NAME as _0x339317,SheetCanvasPopManagerService as _0x40f967,SheetPrintInterceptorService as _0x5c886c,SheetScrollManagerService as _0x22e443,SheetSkeletonManagerService as _0x319c9a,UniverSheetsUIPlugin as _0x48b0fa,deriveStateFromActiveSheet$ as _0x21923c,getCurrentRangeDisable$ as _0x4a597a,getViewportByCell as _0x4f0d4b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x5935cd,EMPTY as _0x1997e0,Observable as _0x395a42,map as _0xaa4389,of as _0x36ada1,startWith as _0x4a164f,switchMap as _0x54e619}from'rxjs';import{FormulaShapeAnimationController as _0x15286d,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x40f766,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xa70bb9,ShapeEditPanel as _0x5a7a6a,ShapeFloatingToolbar as _0x472902,ShapeGroupEnum as _0x27d7db,ShapePickerDropdown as _0x28b0d3,ShapePickerPanel as _0x4d521e,ShapeTextEditorContainer as _0x425f99,ShapeTextFloatMenuRenderControllerBase as _0x4f7f46,ShapeTextFloatToolbar as _0x34b768,UniverShapeEditorUIPlugin as _0x5409b9,activateDrawingObject as _0xbe39a,buildShapeTextDataUpdate as _0x537773,clearActiveDrawingObjects as _0x397c5e,drawFormulaShapeAnimationLayers as _0xe9ad21,getDrawingTypeNameKey as _0x242d11,getTextModel as _0x68e79b,getTextStyle as _0x5eb25a,normalizeShapeTextModel as _0x503e1,plainShapeTextToDocumentData as _0x29503c,prepareShapeTextDocumentData as _0x46cada,resolveFormulaShapeAutoFitSize as _0x18b027,resolveShapeTextDocumentRenderLayout as _0x3d35ed,resolveShapeTextEditorBehaviorShapeData as _0x57ff55,resolveShapeTextEditorWrapStrategy as _0x59e15a,shouldAllowShapeTextEditorHostSizeShrink as _0x26e8db,shouldClipShapeTextDocument as _0x44ef14,useFormulaShapeToolbar as _0x2ca04c}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x2f24d8,DrawingImageClipService as _0x323084,DrawingRenderService as _0x214f7e,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x145ec1,OBJECT_LIST_FLOATING_SECTION_ID as _0x480b8f,ObjectListPanelBase as _0x29b70f,UniverDrawingUIPlugin as _0x117474,getCurrentUnitInfo as _0x19ceb1,getObjectListPanelLabels as _0x5d1b79,getObjectListPanelSectionIdForDrawingType as _0x3a38fa,getObjectListPanelTypeName as _0x5a3cf6,insertGroupObject as _0x5c5c75}from'@univerjs/drawing-ui';import{Fragment as _0x1c48da,jsx as _0x5c23f7,jsxs as _0x57d5e2}from'react/jsx-runtime';import{UniverLicensePlugin as _0x355769}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x3a116c,UniverDocsPlugin as _0x72f746}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x45051f,DocSelectionRenderService as _0x1bed72,UniverDocsUIPlugin as _0x10fd74}from'@univerjs/docs-ui';import{DrawingApplyType as _0x34c4cd,ISheetDrawingService as _0x18f6a9,RemoveSheetDrawingCommand as _0x251e45,SetDrawingApplyMutation as _0x2118d0,SetDrawingArrangeCommand as _0x5f552c,SetSheetDrawingCommand as _0x22957d,UniverSheetsDrawingPlugin as _0x57443e,transformToAxisAlignPosition as _0x1cbaab,transformToDrawingPosition as _0x2b6fe}from'@univerjs/sheets-drawing';import{SheetDrawingAnchor as _0x2bf2cb,SheetsDrawingGroupCopyPasteController as _0x3ed6d2,UniverSheetsDrawingUIPlugin as _0x502bda}from'@univerjs/sheets-drawing-ui';import{FlipHorizontalIcon as _0x600924,FlipVerticalIcon as _0x9a7643,ObjectLayersIcon as _0x2f5e4b}from'@univerjs/icons';import{memo as _0x1b8447,useEffect as _0x329c92,useMemo as _0x4a6e48,useReducer as _0x3fe30a,useState as _0x2793a8}from'react';function kn(_0x513b43,_0x24ea92){const _0x259794=_0x52a4;let _0x38afd2={};for(let _0x4be3a3 of Object[_0x259794(0x12f)](_0x24ea92)){let _0x491147=_0x24ea92[_0x4be3a3],_0x2459c6=_0x513b43[_0x4be3a3];if(_0x491147!==void 0x0){if(_0x2459c6===void 0x0){_0x38afd2[_0x4be3a3]=void 0x0;continue;}typeof _0x491147==_0x259794(0x321)&&_0x491147&&!Array[_0x259794(0x289)](_0x491147)&&typeof _0x2459c6=='object'&&_0x2459c6&&!Array[_0x259794(0x289)](_0x2459c6)?_0x38afd2[_0x4be3a3]=kn(_0x2459c6,_0x491147):_0x38afd2[_0x4be3a3]=_0x2459c6;}}return _0x38afd2;}const An={'type':_0x4d8f21[_0x25219a(0xe5)],'id':_0x25219a(0xf4),'handler':(_0x4d0358,_0x4fca63)=>{const _0xc1d3e3=_0x25219a;let _0x4c7e1c=_0x4d0358[_0xc1d3e3(0x23e)](_0x6985f7),{unitId:_0x300b13,subUnitId:_0x183026,shapeType:_0x278b85,shapeId:_0x5bf86f,shapeData:_0x365d72,oldShapeJSON:_0x43d957}=_0x4fca63;if(!_0x4c7e1c[_0xc1d3e3(0x1f4)](_0x300b13,_0x183026,_0x5bf86f))return!0x1;let _0x54da24=_0x4d0358['get'](_0x16d336),_0x337600=_0x4d0358[_0xc1d3e3(0x23e)](_0x54bc12),{oldShapeType:_0x4dd95e,oldShapeData:_0x2be0b1={}}=_0x43d957,_0x2c939e=kn(_0x2be0b1,_0x365d72||{}),_0x4de356={'id':_0x46a98e['id'],'params':{'unitId':_0x300b13,'subUnitId':_0x183026,'shapeId':_0x5bf86f,'shapeType':_0x278b85,'shapeData':_0x365d72}},_0x3502f6={'id':_0x46a98e['id'],'params':{'unitId':_0x300b13,'subUnitId':_0x183026,'shapeId':_0x5bf86f,'shapeType':_0x4dd95e,'shapeData':_0x2c939e}};return _0x54da24[_0xc1d3e3(0x32c)](_0x4de356['id'],_0x4de356[_0xc1d3e3(0x17a)])?(_0x337600[_0xc1d3e3(0x2d1)]({'unitID':_0x300b13,'undoMutations':[_0x3502f6],'redoMutations':[_0x4de356]}),!0x0):!0x1;}};function jn(_0x349993,_0x591043,_0x4e7fd9,_0x343447,_0x41957d,_0x5ce53e){const _0x1b0131=_0x25219a;let _0x50c647={'unitId':_0x591043,'subUnitId':_0x4e7fd9,'shapeId':_0x343447,'shapeData':_0x5ce53e,'oldShapeJSON':_0x41957d};return _0x349993[_0x1b0131(0x1a6)](An['id'],_0x50c647);}function Mn(_0x5ee27b,_0x19b264,_0x553ecd,_0x1f2dcd,_0x567ce3,_0x4759a2){const _0xea842=_0x25219a;let _0x55aad1={'unitId':_0x19b264,'subUnitId':_0x553ecd,'shapeId':_0x1f2dcd,'shapeData':_0x4759a2,'oldShapeJSON':_0x567ce3};return _0x5ee27b[_0xea842(0x1a6)](An['id'],_0x55aad1);}function Nn(_0x1ca3b1){'@babel/helpers - typeof';const _0x2faf88=_0x25219a;return Nn=typeof Symbol==_0x2faf88(0x190)&&typeof Symbol[_0x2faf88(0x182)]==_0x2faf88(0xf7)?function(_0x1c0f9d){return typeof _0x1c0f9d;}:function(_0x2a9690){const _0x58f791=_0x2faf88;return _0x2a9690&&typeof Symbol=='function'&&_0x2a9690[_0x58f791(0x202)]===Symbol&&_0x2a9690!==Symbol[_0x58f791(0x129)]?_0x58f791(0xf7):typeof _0x2a9690;},Nn(_0x1ca3b1);}function Pn(_0x72e64b,_0xdfc2ab){const _0x3cd4c0=_0x25219a;if(Nn(_0x72e64b)!='object'||!_0x72e64b)return _0x72e64b;var _0x5eefaf=_0x72e64b[Symbol['toPrimitive']];if(_0x5eefaf!==void 0x0){var _0x4a1cc2=_0x5eefaf[_0x3cd4c0(0x14c)](_0x72e64b,_0xdfc2ab||_0x3cd4c0(0x293));if(Nn(_0x4a1cc2)!=_0x3cd4c0(0x321))return _0x4a1cc2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdfc2ab===_0x3cd4c0(0x216)?String:Number)(_0x72e64b);}function Fn(_0x57f7ca){const _0x196720=_0x25219a;var _0x34fbc2=Pn(_0x57f7ca,'string');return Nn(_0x34fbc2)==_0x196720(0xf7)?_0x34fbc2:_0x34fbc2+'';}function Y(_0x461dbc,_0x368a34,_0x2889d8){return(_0x368a34=Fn(_0x368a34))in _0x461dbc?Object['defineProperty'](_0x461dbc,_0x368a34,{'value':_0x2889d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x461dbc[_0x368a34]=_0x2889d8,_0x461dbc;}function In(_0x105a7d,_0x35f01c,_0x452851){const _0x1149e5=_0x25219a;let _0x192815=_0x57ff55(_0x105a7d,{..._0x35f01c,'dataModel':{..._0x35f01c[_0x1149e5(0x177)]??{},..._0x452851?{'doc':_0x452851}:null}}),_0x362327=_0x59e15a(_0x192815);return{'clip':_0x44ef14(_0x192815,_0x362327),'wrapStrategy':_0x362327};}var Ln=class extends _0x1ac658{constructor(_0x241815,_0x46fab1){const _0x1b24f0=_0x25219a;super(_0x241815,_0x46fab1),Y(this,_0x1b24f0(0x295),void 0x0),Y(this,'_formulaAnimation',new _0x15286d(()=>this['makeDirty'](!0x0),()=>this[_0x1b24f0(0xe7)]())),Y(this,'_transformCalculateSrcRect',!0x0),Y(this,_0x1b24f0(0x203),_0x161136[_0x1b24f0(0x25c)]),Y(this,_0x1b24f0(0x125),!0x0),this['_props']={..._0x46fab1},this['_formulaAnimation'][_0x1b24f0(0x11d)](_0x46fab1[_0x1b24f0(0x2be)],_0x46fab1['animateFormulaPresentation']!==!0x1),this[_0x1b24f0(0x21c)](),this[_0x1b24f0(0xe7)]();}['_init'](){const _0x102872=_0x25219a;this[_0x102872(0x18b)][_0x102872(0x1ab)](_0x5b6b00=>{const _0x23ced5=_0x102872;this[_0x23ced5(0x197)](_0x5b6b00);});}['setPrstGeom'](_0xa0172c){const _0x769e9b=_0x25219a;this[_0x769e9b(0x295)][_0x769e9b(0x11b)]=_0xa0172c;}[_0x25219a(0x2cd)](_0x2f6d52){const _0x2fa755=_0x25219a;this['_props'][_0x2fa755(0x2a8)]=_0x2f6d52,this[_0x2fa755(0x154)](!0x0);}[_0x25219a(0x2e8)](_0x25d8e2,_0x2d06d9=!0x0){const _0x3a3c52=_0x25219a;this[_0x3a3c52(0x33f)]['setPresentation'](_0x25d8e2,_0x2d06d9),this[_0x3a3c52(0x295)]['formulaPresentation']=_0x25d8e2,this['_applyFormulaAutoFitSize'](),this[_0x3a3c52(0x154)](!0x0);}[_0x25219a(0xe7)](){const _0x2fe29f=_0x25219a;let _0x2089f8=this['_props'][_0x2fe29f(0x2ac)],_0x3cadf8=_0x2089f8[_0x2fe29f(0x2c8)](),_0x3193b5=_0x503e1(_0x3cadf8==null?void 0x0:_0x3cadf8[_0x2fe29f(0x177)]),_0x3b5053=_0x3193b5==null?void 0x0:_0x3193b5[_0x2fe29f(0x13f)],_0x217d34=this[_0x2fe29f(0x33f)][_0x2fe29f(0x1ba)]();if(!_0x3b5053||_0x217d34[_0x2fe29f(0x27a)]===0x0)return;_0x2089f8[_0x2fe29f(0x256)]({'width':this[_0x2fe29f(0x11f)],'height':this[_0x2fe29f(0x270)]});let _0x31d103=_0x18b027({'documentData':_0x217d34[_0x2fe29f(0x111)](_0xcb21fd=>_0x5d87c2(_0x3b5053,_0xcb21fd)),'height':this[_0x2fe29f(0x270)],'shapeData':_0x2089f8['getShapeData'](),'textRect':_0x2089f8[_0x2fe29f(0x2c5)]({'left':0x0,'top':0x0,'width':this[_0x2fe29f(0x11f)],'height':this[_0x2fe29f(0x270)]}),'width':this[_0x2fe29f(0x11f)]});if(_0x31d103){var _0x133ae0;this['resize'](_0x31d103[_0x2fe29f(0x11f)],_0x31d103[_0x2fe29f(0x270)]),(_0x133ae0=this[_0x2fe29f(0x1fa)]())==null||(_0x133ae0=_0x133ae0[_0x2fe29f(0x31e)]())==null||_0x133ae0[_0x2fe29f(0x164)]();}}get['unitId'](){const _0x1ccf9c=_0x25219a;return this[_0x1ccf9c(0x295)][_0x1ccf9c(0x151)];}get[_0x25219a(0x21f)](){const _0x2fdaf0=_0x25219a;return this[_0x2fdaf0(0x295)]['subUnitId'];}['_updateSrcRectByTransform'](_0x4219c6){const _0x36f346=_0x25219a;if(this[_0x36f346(0x295)]['srcRect']==null||!this[_0x36f346(0x209)])return;let {width:_0x4793a4,height:_0x4fbefc}=this,{width:_0x26d7ee=0x0,height:_0x18474c=0x0}=_0x4219c6['preValue'],{left:_0x3c357a=0x0,top:_0x32f687=0x0,right:_0x59e6c7=0x0,bottom:_0x262110=0x0}=this[_0x36f346(0x295)][_0x36f346(0x2e4)],_0x33cfe9=_0x3c357a,_0x25f15c=_0x32f687,_0x4f86aa=_0x59e6c7,_0xf608c=_0x262110,_0xb5618a=!0x1;if(_0x26d7ee!==0x0&&_0x26d7ee!==_0x4793a4){let _0x4fba2b=_0x3c357a/_0x26d7ee,_0x5456d7=_0x59e6c7/_0x26d7ee;_0x33cfe9=_0x4793a4*_0x4fba2b,_0x4f86aa=_0x4793a4*_0x5456d7,_0xb5618a=!0x0;}if(_0x18474c!==0x0&&_0x18474c!==_0x4fbefc){let _0x55e336=_0x32f687/_0x18474c,_0x338368=_0x262110/_0x18474c;_0x25f15c=_0x4fbefc*_0x55e336,_0xf608c=_0x4fbefc*_0x338368,_0xb5618a=!0x0;}_0xb5618a&&this[_0x36f346(0xea)]({'left':_0x33cfe9,'top':_0x25f15c,'right':_0x4f86aa,'bottom':_0xf608c});}[_0x25219a(0xea)](_0x49bdc9){const _0x4b9706=_0x25219a;this[_0x4b9706(0x295)][_0x4b9706(0x2e4)]=_0x49bdc9,this['makeDirty'](!0x0);}['setFillImage'](_0x25bd93){const _0x2e7594=_0x25219a;this['_props'][_0x2e7594(0x234)]=_0x25bd93,this[_0x2e7594(0x154)](!0x0);}set[_0x25219a(0x298)](_0x2db38a){const _0x4fd0d0=_0x25219a;this[_0x4fd0d0(0xf3)]=_0x2db38a;}get['transform'](){const _0x112038=_0x25219a;this[_0x112038(0xf3)]||this[_0x112038(0x112)]();let _0xa4be9a=this[_0x112038(0xf3)][_0x112038(0x1a8)]();return this[_0x112038(0x17b)](_0xa4be9a);}get[_0x25219a(0x2ac)](){const _0x12abef=_0x25219a;return this[_0x12abef(0x295)][_0x12abef(0x2ac)];}get[_0x25219a(0x25a)](){const _0x23f4eb=_0x25219a;return this['_props'][_0x23f4eb(0x25a)];}get[_0x25219a(0x26d)](){const _0x21bcba=_0x25219a;return _0x4550bb[_0x21bcba(0xec)];}[_0x25219a(0x183)](_0x44fb4f,_0x24bb81,_0x1a24ce,_0x6bafcb){const _0x3b0adc=_0x25219a;let _0x43987c=this['_props'][_0x3b0adc(0x2ac)];if(!_0x43987c||!_0x24bb81)return;let _0x286f47=_0x1a24ce??this[_0x3b0adc(0x11f)],_0xf499a3=_0x6bafcb??this['height'],_0x332399={'shapeType':_0x43987c[_0x3b0adc(0x16e)](),'width':_0x286f47,'height':_0xf499a3},_0xe5bcf2={'renderMode':_0xac9789['Path'],'oKey':this['oKey'],'image':this[_0x3b0adc(0x295)][_0x3b0adc(0x234)],'angle':this[_0x3b0adc(0x26e)]};_0x43987c['updateContext'](_0x332399),_0x44fb4f[_0x3b0adc(0x173)]();let _0x33e88f={'top':0x0,'left':0x0,'width':_0x286f47,'height':_0xf499a3},_0x34f46a=_0x43987c[_0x3b0adc(0x2e5)](_0x33e88f);_0x34f46a?this[_0x3b0adc(0x195)](_0x44fb4f,_0x34f46a,_0x3c60a3=>{const _0x2d03df=_0x3b0adc;_0x43987c[_0x2d03df(0x279)](_0x3c60a3,_0x33e88f,_0xe5bcf2);}):(this['_releaseRenderCache'](),_0x43987c[_0x3b0adc(0x279)](_0x44fb4f,_0x33e88f,_0xe5bcf2)),_0x44fb4f[_0x3b0adc(0xef)]();let _0x5cd231=_0x43987c[_0x3b0adc(0x2c8)](),_0x27263c=_0x43987c[_0x3b0adc(0x2c5)](_0x33e88f),_0x59694c=_0x43987c[_0x3b0adc(0x2bc)]();if(_0x5cd231&&_0x27263c&&!_0x59694c){_0x44fb4f['save'](),this[_0x3b0adc(0x1eb)]()['flipX']&&_0x44fb4f[_0x3b0adc(0x31c)](-0x1,0x1);let _0x484264=_0x286f47/0x2,_0x12942c=_0xf499a3/0x2;_0x44fb4f[_0x3b0adc(0x1a0)](-_0x484264,-_0x12942c),_0x44fb4f['beginPath'](),this[_0x3b0adc(0x185)](_0x44fb4f,_0x5cd231,_0x27263c),_0x44fb4f[_0x3b0adc(0xef)]();}}[_0x25219a(0x273)](_0x5f25c4){}[_0x25219a(0x185)](_0x41d97f,_0x12eba1,_0x586379){const _0x53759d=_0x25219a;var _0x4196ca;this[_0x53759d(0x295)]['isEditing']||(!((_0x4196ca=_0x12eba1[_0x53759d(0x177)])!=null&&_0x4196ca[_0x53759d(0x13f)])&&_0x53759d(0x1e6)in _0x12eba1&&_0x12eba1[_0x53759d(0x1e6)]===!0x1?this[_0x53759d(0x2f7)](_0x41d97f,_0x12eba1,_0x586379):this[_0x53759d(0x2e6)](_0x41d97f,_0x12eba1,_0x586379));}[_0x25219a(0x2f7)](_0xf08f47,_0x4c01a6,_0x7bfd7a){const _0x496698=_0x25219a;this[_0x496698(0x2e6)](_0xf08f47,{..._0x4c01a6,'text':_0x4c01a6[_0x496698(0x229)]??'','dataModel':{'doc':_0x29503c(_0x4c01a6,_0x496698(0x283)+this[_0x496698(0x161)])}},_0x7bfd7a);}[_0x25219a(0x2e6)](_0x296628,_0x29a6f0,_0x416d3c){const _0x31edac=_0x25219a;_0xe9ad21(_0x296628,this[_0x31edac(0x33f)],(_0x3a5702,_0x308717)=>{const _0x20d229=_0x31edac;this[_0x20d229(0x342)](_0x3a5702,_0x29a6f0,_0x416d3c,_0x308717);});}[_0x25219a(0x342)](_0x3a3122,_0x5e2054,_0x243b64,_0x23b334){const _0x269d84=_0x25219a;let _0xafcd6=this[_0x269d84(0x295)]['localeService'];if(!_0x5e2054[_0x269d84(0x177)]||!_0xafcd6)return;let _0x18221c=_0x503e1(_0x5e2054[_0x269d84(0x177)]);if(!_0x18221c)return;let _0x2147ec=_0x18221c['doc'];if(!_0x2147ec)return;let _0x29c912=_0x5d87c2(_0x2147ec,_0x23b334),_0x351ed1=_0x18221c['va']??_0x2c7292['TOP'],_0x10ff9e=_0x18221c['ha']??_0x365b63[_0x269d84(0x215)],_0x3b5708=In(this[_0x269d84(0x295)][_0x269d84(0x2ac)][_0x269d84(0x23b)](),_0x5e2054,_0x29c912),_0x2d73f2=_0x5e2054[_0x269d84(0x1f9)],_0x495db7=new _0x4423a6(_0x46cada(_0x29c912,{'isHorizontal':_0x2d73f2!==!0x1,'textRect':_0x243b64,'verticalAlign':_0x351ed1,'horizontalAlign':_0x10ff9e,'wrapStrategy':_0x3b5708[_0x269d84(0x1ce)]})),_0x1535e3=new _0x208c57(_0x495db7),_0x493f35=_0x5c0882[_0x269d84(0x311)](_0x1535e3,_0xafcd6);_0x493f35['calculate']();let _0x167977=_0x493f35[_0x269d84(0x217)]()[_0x269d84(0x113)],_0x2da1f3=_0x3d35ed({'contentHeight':_0x167977,'verticalAlign':_0x351ed1,'viewportHeight':_0x243b64[_0x269d84(0x270)]});_0x495db7['updateDocumentStyle']({'pageSize':{'width':_0x2d73f2===!0x1?_0x243b64[_0x269d84(0x270)]:_0x243b64[_0x269d84(0x11f)],'height':_0x2da1f3[_0x269d84(0x20d)]}}),_0x495db7[_0x269d84(0x2a2)]({'t':_0x2da1f3[_0x269d84(0x246)]}),_0x493f35[_0x269d84(0xdd)]();let _0x5b49e5=new _0x11f5a9(_0x269d84(0x31b)+this[_0x269d84(0x161)],_0x493f35,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x269d84(0x154)](!0x0)});_0x5b49e5[_0x269d84(0x33a)](_0x243b64[_0x269d84(0x11f)],_0x2da1f3[_0x269d84(0x20d)]),_0x3a3122[_0x269d84(0x173)](),_0x3a3122[_0x269d84(0x18a)](_0x243b64[_0x269d84(0x242)],_0x243b64['top']),_0x3b5708[_0x269d84(0x33e)]&&(_0x3a3122['beginPath'](),_0x3a3122[_0x269d84(0x174)](0x0,_0x2da1f3[_0x269d84(0x118)],_0x243b64[_0x269d84(0x11f)],_0x2da1f3[_0x269d84(0x1d0)]),_0x3a3122[_0x269d84(0x33e)]()),_0x2da1f3[_0x269d84(0x115)]&&_0x3a3122[_0x269d84(0x18a)](0x0,_0x2da1f3[_0x269d84(0x115)]),_0x5b49e5[_0x269d84(0x2f3)](_0x3a3122),_0x3a3122[_0x269d84(0xef)](),_0x5b49e5['dispose'](),_0x493f35['dispose'](),_0x1535e3[_0x269d84(0x259)](),_0x495db7[_0x269d84(0x259)]();}[_0x25219a(0x279)](_0x5e08e8,_0x55ec4f,_0x5536f1=!0x1){const _0x2c93f9=_0x25219a;if(!this[_0x2c93f9(0x1c0)])return this[_0x2c93f9(0x154)](!0x1),this;let {width:_0x22581e,height:_0x89fdd6,left:_0x3cf192,top:_0x55eb23}=this,_0x231c72=this[_0x2c93f9(0x1d4)]();if(_0x22581e=_0x231c72[_0x2c93f9(0x11f)],_0x89fdd6=_0x231c72[_0x2c93f9(0x270)],_0x3cf192=_0x231c72[_0x2c93f9(0x242)],_0x55eb23=_0x231c72[_0x2c93f9(0x1e8)],this[_0x2c93f9(0x2ca)](_0x55ec4f)){let {top:_0x8c8be7,left:_0x46a411,bottom:_0x21b6d8,right:_0x1bdbdd}=_0x55ec4f['viewBound'];if(_0x22581e+this['strokeWidth']+_0x3cf192<_0x46a411||_0x1bdbdd<_0x3cf192||_0x89fdd6+this['strokeWidth']+_0x55eb23<_0x8c8be7||_0x21b6d8<_0x55eb23)return this;}let _0x54915c=_0x3cf192+_0x22581e/0x2,_0x49a3f7=_0x55eb23+_0x89fdd6/0x2,_0x15c77b=this[_0x2c93f9(0x298)][_0x2c93f9(0x258)]();if(this[_0x2c93f9(0x295)]['isEditing']){let _0x5f325a=this[_0x2c93f9(0x1eb)](),_0x44d4c9=new _0x34d861();_0x44d4c9['composeMatrix']({..._0x5f325a}),_0x15c77b=_0x44d4c9[_0x2c93f9(0x258)]();}return _0x5e08e8['save'](),this[_0x2c93f9(0x295)][_0x2c93f9(0x2ac)][_0x2c93f9(0x110)]===!0x0||_0x5e08e8[_0x2c93f9(0x298)](_0x15c77b[0x0],_0x15c77b[0x1],_0x15c77b[0x2],_0x15c77b[0x3],_0x54915c,_0x49a3f7),this[_0x2c93f9(0x183)](_0x5e08e8,_0x55ec4f,_0x22581e,_0x89fdd6),_0x5e08e8[_0x2c93f9(0xef)](),this[_0x2c93f9(0x154)](!0x1),this;}['getInverseCoord'](_0xf6f33e){const _0x23db5d=_0x25219a;let {left:_0x1653c5,top:_0x16e782,width:_0x4c08a8,height:_0x24c0bc}=this['getRealBound'](),_0x3c18c8=this['transform'][_0x23db5d(0x258)](),_0x2be32a=_0x1653c5+_0x4c08a8/0x2,_0x54cda7=_0x16e782+_0x24c0bc/0x2,_0x1e06b1=new _0x34d861([_0x3c18c8[0x0],_0x3c18c8[0x1],_0x3c18c8[0x2],_0x3c18c8[0x3],_0x2be32a,_0x54cda7]),_0x1c0f51=this[_0x23db5d(0x28c)]();return(this[_0x23db5d(0x1f6)]&&(_0x1c0f51==null?void 0x0:_0x1c0f51[_0x23db5d(0x26d)])===_0x4550bb[_0x23db5d(0x1fd)]?_0x1c0f51[_0x23db5d(0x20c)][_0x23db5d(0x15c)](_0x1e06b1):_0x1e06b1)['invert']()[_0x23db5d(0x317)](_0xf6f33e);}['isHit'](_0x5d383b){const _0x47062b=_0x25219a;let {left:_0x4864e3,top:_0xb072a0,width:_0x603e43,height:_0x305cf6}=this['getRealBound'](),_0x43d159=_0x4864e3+_0x603e43/0x2,_0x636108=_0xb072a0+_0x305cf6/0x2,_0x24b3e2=this[_0x47062b(0x298)]['getMatrix'](),_0x1b4fb9=new _0x34d861([_0x24b3e2[0x0],_0x24b3e2[0x1],_0x24b3e2[0x2],_0x24b3e2[0x3],_0x43d159,_0x636108]),_0x4c9545=this['getParent'](),_0x413de7=(this[_0x47062b(0x1f6)]&&(_0x4c9545==null?void 0x0:_0x4c9545[_0x47062b(0x26d)])===_0x4550bb[_0x47062b(0x1fd)]?_0x4c9545['ancestorTransform'][_0x47062b(0x15c)](_0x1b4fb9):_0x1b4fb9)['invert']()['applyPoint'](_0x5d383b),_0x364893=_0x603e43/0x2,_0x33fbb3=_0x305cf6/0x2,_0x26dc94=this[_0x47062b(0x295)][_0x47062b(0x2ac)];return _0x26dc94&&_0x26dc94[_0x47062b(0x2bc)]()?_0x26dc94[_0x47062b(0x1c9)](_0x413de7['x'],_0x413de7['y'],_0x603e43,_0x305cf6):_0x413de7['x']>=-_0x364893-this[_0x47062b(0x2b7)]/0x2&&_0x413de7['x']<=_0x364893+this[_0x47062b(0x2b7)]/0x2&&_0x413de7['y']>=-_0x33fbb3-this['strokeWidth']/0x2&&_0x413de7['y']<=_0x33fbb3+this[_0x47062b(0x2b7)]/0x2;}[_0x25219a(0x259)](){const _0x510d10=_0x25219a;this[_0x510d10(0x33f)][_0x510d10(0x259)](),this['_props']['shapeModel']=null,super[_0x510d10(0x259)]();}},Rn=class extends _0x1ac658{constructor(_0x500e4b,_0x5b7d1a){const _0x326445=_0x25219a;super(_0x500e4b,_0x5b7d1a),Y(this,'_shapeId',null),Y(this,'_adjName',null),Y(this,_0x326445(0x1c5),null),Y(this,'_subUnitId',null),_0x5b7d1a&&this[_0x326445(0x2f6)](_0x5b7d1a);}[_0x25219a(0x198)](){const _0x21cd42=_0x25219a;return{'unitId':this[_0x21cd42(0x1c5)],'subUnitId':this[_0x21cd42(0x333)],'drawingId':this[_0x21cd42(0x13e)]};}['setShapeProps'](_0x3540a5){const _0x5a9bc5=_0x25219a;_0x3540a5[_0x5a9bc5(0x25a)]!==void 0x0&&(this[_0x5a9bc5(0x13e)]=_0x3540a5['shapeId']),_0x3540a5[_0x5a9bc5(0x1ae)]!==void 0x0&&(this[_0x5a9bc5(0x1b5)]=_0x3540a5[_0x5a9bc5(0x1ae)]),_0x3540a5[_0x5a9bc5(0x151)]!==void 0x0&&(this[_0x5a9bc5(0x1c5)]=_0x3540a5[_0x5a9bc5(0x151)]),_0x3540a5['subUnitId']!==void 0x0&&(this[_0x5a9bc5(0x333)]=_0x3540a5['subUnitId']),this[_0x5a9bc5(0xfd)]({'width':_0x3540a5['width'],'height':_0x3540a5[_0x5a9bc5(0x270)]});}['_draw'](_0x2ae69f){const _0x5a863e=_0x25219a;_0x18400a[_0x5a863e(0x230)](_0x2ae69f,{'radius':_0x373ebe[_0x5a863e(0x1bf)],'fill':_0x373ebe[_0x5a863e(0x238)],'stroke':_0x373ebe[_0x5a863e(0x16f)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x2dbbca,_0x2f5924){return function(_0x432245,_0x5bc01b){_0x2f5924(_0x432245,_0x5bc01b,_0x2dbbca);};}function Z(_0x35a01a,_0x284ce1,_0x1fc732,_0x2ae229){const _0x20e3a4=_0x25219a;var _0x3b96cc=arguments[_0x20e3a4(0x27a)],_0x7c70ca=_0x3b96cc<0x3?_0x284ce1:_0x2ae229===null?_0x2ae229=Object['getOwnPropertyDescriptor'](_0x284ce1,_0x1fc732):_0x2ae229,_0x4f846d;if(typeof Reflect==_0x20e3a4(0x321)&&typeof Reflect[_0x20e3a4(0x224)]==_0x20e3a4(0x190))_0x7c70ca=Reflect[_0x20e3a4(0x224)](_0x35a01a,_0x284ce1,_0x1fc732,_0x2ae229);else{for(var _0x39a06e=_0x35a01a['length']-0x1;_0x39a06e>=0x0;_0x39a06e--)(_0x4f846d=_0x35a01a[_0x39a06e])&&(_0x7c70ca=(_0x3b96cc<0x3?_0x4f846d(_0x7c70ca):_0x3b96cc>0x3?_0x4f846d(_0x284ce1,_0x1fc732,_0x7c70ca):_0x4f846d(_0x284ce1,_0x1fc732))||_0x7c70ca);}return _0x3b96cc>0x3&&_0x7c70ca&&Object[_0x20e3a4(0x251)](_0x284ce1,_0x1fc732,_0x7c70ca),_0x7c70ca;}let Q=class extends _0x3ba2e2{constructor(_0x4bc30c,_0x5b4472,_0x40765c,_0x176fd9,_0x27227a,_0x493538){const _0x14931a=_0x25219a;super(),this[_0x14931a(0x284)]=_0x4bc30c,this['_sheetsShapeService']=_0x5b4472,this[_0x14931a(0x1f0)]=_0x40765c,this[_0x14931a(0x14b)]=_0x176fd9,this['_urlImageService']=_0x27227a,this['_shapeFormulaService']=_0x493538,Y(this,_0x14931a(0x2b2),new Map()),this[_0x14931a(0x1b1)](this['_shapeFormulaService'][_0x14931a(0x14e)][_0x14931a(0x1a5)](_0x437e9c=>{const _0x33068e=_0x14931a;var _0x21a051;(_0x21a051=this[_0x33068e(0x2b2)]['get'](this[_0x33068e(0x146)](_0x437e9c[_0x33068e(0x151)],_0x437e9c[_0x33068e(0x21f)],_0x437e9c[_0x33068e(0x25a)])))==null||_0x21a051[_0x33068e(0x162)](_0x1d6733=>_0x1d6733[_0x33068e(0x2e8)](_0x437e9c['presentation'],_0x437e9c[_0x33068e(0x2c3)]));})),this[_0x14931a(0x1b1)](this[_0x14931a(0x284)][_0x14931a(0x2c0)][_0x14931a(0x1a5)](_0x2cfb3f=>{_0x2cfb3f['forEach'](_0x4276fb=>{const _0x59ef2a=_0x52a4;this['_shapeFormulaService'][_0x59ef2a(0x13a)]({'unitId':_0x4276fb[_0x59ef2a(0x151)],'subUnitId':_0x4276fb[_0x59ef2a(0x21f)],'shapeId':_0x4276fb[_0x59ef2a(0x2c2)]}),this[_0x59ef2a(0x2b2)][_0x59ef2a(0x1d3)](this[_0x59ef2a(0x146)](_0x4276fb[_0x59ef2a(0x151)],_0x4276fb[_0x59ef2a(0x21f)],_0x4276fb['drawingId']));});}));}[_0x25219a(0x32b)](_0x35645e,_0x755f8e,_0x1dbb3f){const _0x1a7269=_0x25219a;let {transform:_0x16f213,drawingType:_0x32eb98,srcRect:_0x1b6c39,prstGeom:_0x37304e,groupId:_0x38a589,unitId:_0x4d9e20,subUnitId:_0x5035f0,drawingId:_0x16fcde,isMultiTransform:_0xacf0bd,transforms:_0x3aada0,hidden:_0x3974a9,selectable:_0x109d3e}=_0x35645e;if(_0x32eb98!==_0x161136['DRAWING_SHAPE']||!this[_0x1a7269(0x284)]['getDrawingVisible']()||_0x16f213==null)return;let _0x32d9b8=this[_0x1a7269(0x284)]['getDrawingEditable']();_0x32d9b8&&_0x755f8e[_0x1a7269(0x2b5)](_0x40f766);let _0x5d7564=_0xacf0bd&&_0x3aada0?_0x3aada0:[_0x16f213],_0x320874=[];for(let _0x5a4e25 of _0x5d7564){let {left:_0x460883,top:_0x13c1e9,width:_0x48f1c8,height:_0x1f923c,angle:_0x3acc80,flipX:_0x5e2e49,flipY:_0x5ee29b,skewX:_0x6a5e10,skewY:_0x508ab3}=_0x5a4e25,_0x4b5e2f=_0x5d7564[_0x1a7269(0x20a)](_0x5a4e25),_0x587c5c=_0x566164({'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'drawingId':_0x16fcde},_0xacf0bd?_0x4b5e2f:void 0x0),_0x138c2a=_0x755f8e['getObjectIncludeInGroup'](_0x587c5c);if(_0x138c2a!=null){let _0x4f9fe3={'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'shapeId':_0x16fcde};_0x138c2a instanceof Ln&&this[_0x1a7269(0xf2)](_0x138c2a,_0x4f9fe3),_0x138c2a[_0x1a7269(0xfd)]({'left':_0x460883,'top':_0x13c1e9,'width':_0x48f1c8,'height':_0x1f923c,'angle':_0x3acc80,'flipX':_0x5e2e49,'flipY':_0x5ee29b,'skewX':_0x6a5e10,'skewY':_0x508ab3});continue;}let _0xf7fa04=this[_0x1a7269(0x284)][_0x1a7269(0x337)](_0x4d9e20,_0x5035f0),_0x4579d9=_0xf7fa04['indexOf'](_0x16fcde);if(_0x755f8e[_0x1a7269(0x15b)](_0x587c5c)||!this[_0x1a7269(0x284)]['getDrawingVisible']())continue;let _0x4ce1f8=this[_0x1a7269(0x124)][_0x1a7269(0x1f4)](_0x4d9e20,_0x5035f0,_0x16fcde);if(!_0x4ce1f8)continue;let _0x519a99=_0x41a954(_0x4ce1f8['getShapeType']()),_0xb701c6=_0x4ce1f8[_0x1a7269(0x23b)]()[_0x1a7269(0x1c6)],_0x2e6e65={'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'shapeId':_0x16fcde};_0xb701c6&&this[_0x1a7269(0x2d3)]['register'](_0x2e6e65,_0xb701c6);let _0x9f3231=new Ln(_0x587c5c,{..._0x519a99?{..._0x5a4e25,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5a4e25},'zIndex':_0x4579d9===-0x1?_0xf7fa04[_0x1a7269(0x27a)]-0x1:_0x4579d9,'shapeModel':_0x4ce1f8,'localeService':this[_0x1a7269(0x1f0)],'shapeId':_0x16fcde,'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'visible':_0x3974a9!==!0x0,'evented':_0x109d3e!==!0x1,'formulaPresentation':_0xb701c6?this['_shapeFormulaService'][_0x1a7269(0x29b)](_0x2e6e65):void 0x0,'animateFormulaPresentation':(_0xb701c6==null?void 0x0:_0xb701c6[_0x1a7269(0x2c3)])!==!0x1});if(_0xb701c6){let _0x4b54d0=this[_0x1a7269(0x146)](_0x4d9e20,_0x5035f0,_0x16fcde),_0x36492b=this['_formulaShapes'][_0x1a7269(0x23e)](_0x4b54d0)??new Set();_0x36492b[_0x1a7269(0x119)](_0x9f3231),this[_0x1a7269(0x2b2)]['set'](_0x4b54d0,_0x36492b);}_0x755f8e[_0x1a7269(0xe6)](_0x9f3231,_0x22b4b7),_0x32d9b8&&_0x755f8e[_0x1a7269(0x12d)](_0x9f3231),_0x38a589&&_0x5c5c75({'drawingId':_0x38a589,'unitId':_0x4d9e20,'subUnitId':_0x5035f0},_0x9f3231,_0x755f8e,this[_0x1a7269(0x284)]),_0x37304e!=null&&_0x9f3231[_0x1a7269(0x1f3)](_0x37304e),_0x1b6c39!=null&&_0x9f3231['setSrcRect'](_0x1b6c39);let _0x127c44=this['_loadShapePictureFill'](_0x9f3231,_0x4ce1f8[_0x1a7269(0x23b)]());if(_0x127c44){var _0x4f3de7;_0x1dbb3f==null||(_0x4f3de7=_0x1dbb3f[_0x1a7269(0x1ca)])==null||_0x4f3de7[_0x1a7269(0x119)](_0x127c44);}_0x320874[_0x1a7269(0xfc)](_0x9f3231);}return _0x320874;}[_0x25219a(0x146)](_0x48a279,_0x2436f7,_0x1e73d9){return _0x48a279+'\x00'+_0x2436f7+'\x00'+_0x1e73d9;}[_0x25219a(0xf2)](_0x5ed695,_0x263a2e){const _0x31abf4=_0x25219a;let _0x33e5ad=this['_sheetsShapeService'][_0x31abf4(0x1f4)](_0x263a2e[_0x31abf4(0x151)],_0x263a2e[_0x31abf4(0x21f)],_0x263a2e[_0x31abf4(0x25a)]),_0x3bbd08=_0x33e5ad==null?void 0x0:_0x33e5ad[_0x31abf4(0x23b)]()[_0x31abf4(0x1c6)],_0x394eb4=this[_0x31abf4(0x146)](_0x263a2e[_0x31abf4(0x151)],_0x263a2e['subUnitId'],_0x263a2e[_0x31abf4(0x25a)]);if(_0x3bbd08){this['_shapeFormulaService']['register'](_0x263a2e,_0x3bbd08);let _0x16917b=this['_formulaShapes'][_0x31abf4(0x23e)](_0x394eb4)??new Set();_0x16917b[_0x31abf4(0x119)](_0x5ed695),this['_formulaShapes'][_0x31abf4(0x10e)](_0x394eb4,_0x16917b);}else{var _0x2aac94;this[_0x31abf4(0x2d3)][_0x31abf4(0x13a)](_0x263a2e),(_0x2aac94=this[_0x31abf4(0x2b2)]['get'](_0x394eb4))==null||_0x2aac94[_0x31abf4(0x1d3)](_0x5ed695);}_0x5ed695[_0x31abf4(0x2e8)](_0x3bbd08?this['_shapeFormulaService'][_0x31abf4(0x29b)](_0x263a2e):void 0x0,(_0x3bbd08==null?void 0x0:_0x3bbd08[_0x31abf4(0x2c3)])!==!0x1);}[_0x25219a(0x2ba)](_0x16c845){const _0x2c385b=_0x25219a;let _0x867712=_0x16c845['shapeModel'][_0x2c385b(0x23b)](),_0x295913=_0x867712[_0x2c385b(0x233)];if(!_0x295913||_0x295913[_0x2c385b(0x178)]!==_0x83e268[_0x2c385b(0x12a)]||!_0x295913[_0x2c385b(0x181)]){_0x16c845[_0x2c385b(0x1d2)](void 0x0);return;}this['_loadShapePictureFill'](_0x16c845,_0x867712);}[_0x25219a(0x134)](_0x1033cf,_0x366877){const _0x1d390c=_0x25219a;let _0x4f9dac=_0x366877['fill'];if(!_0x4f9dac||_0x4f9dac[_0x1d390c(0x178)]!==_0x83e268[_0x1d390c(0x12a)]||!_0x4f9dac[_0x1d390c(0x181)])return;let _0x769893=_0x4f9dac[_0x1d390c(0x181)],_0x423b1b=_0x4f9dac[_0x1d390c(0x1a7)]??_0x5a6853['URL'],_0x4b60f2=this[_0x1d390c(0x14b)][_0x1d390c(0x1d6)](_0x769893,_0x423b1b);if(_0x4b60f2){_0x1033cf[_0x1d390c(0x1d2)](_0x4b60f2);return;}return this['_loadAndSetImage'](_0x1033cf,_0x769893,_0x423b1b);}async[_0x25219a(0x15f)](_0x1e21f5,_0x3d433a,_0x4b1b30){const _0x491085=_0x25219a;let _0x5342da;try{if(_0x4b1b30===_0x5a6853['UUID'])_0x5342da=await this[_0x491085(0x14b)][_0x491085(0x127)](_0x3d433a);else{if(_0x4b1b30===_0x5a6853['URL'])try{_0x5342da=await this[_0x491085(0x2e2)][_0x491085(0x127)](_0x3d433a);}catch{_0x5342da=_0x3d433a;}else _0x5342da=_0x3d433a;}}catch(_0x2bc3fa){console['error'](_0x491085(0x31d),_0x2bc3fa);return;}await new Promise(_0x5c4344=>{const _0xa2ab34=_0x491085;let _0x4a8c1e=new window['Image']();_0x4a8c1e[_0xa2ab34(0x20b)]=()=>{const _0x386c82=_0xa2ab34;this['_imageIoService'][_0x386c82(0x189)](_0x3d433a,_0x4b1b30,_0x4a8c1e),_0x1e21f5[_0x386c82(0x1d2)](_0x4a8c1e),_0x5c4344();},_0x4a8c1e[_0xa2ab34(0x21e)]=()=>{const _0x570d32=_0xa2ab34;console['error'](_0x570d32(0x1e7),_0x3d433a),_0x5c4344();},_0x4a8c1e['src']=_0x5342da;});}};Q=Z([X(0x0,_0x492363),X(0x1,_0x396ece(_0x6985f7)),X(0x2,_0x396ece(_0x404764)),X(0x3,_0x507a28),X(0x4,_0x157c04),X(0x5,_0x396ece(_0x2c2995))],Q);let zn=class extends _0x3ba2e2{constructor(_0x34d9f6,_0x502b6b,_0x40dd65,_0x43749b,_0x14cc11,_0x594be6){const _0x55b0b3=_0x25219a;super(),this[_0x55b0b3(0x284)]=_0x34d9f6,this[_0x55b0b3(0x124)]=_0x502b6b,this[_0x55b0b3(0x145)]=_0x40dd65,this[_0x55b0b3(0x26a)]=_0x43749b,this[_0x55b0b3(0xfe)]=_0x14cc11,this[_0x55b0b3(0x2cc)]=_0x594be6,Y(this,_0x55b0b3(0x25d),null),Y(this,_0x55b0b3(0x1c5),null),Y(this,_0x55b0b3(0x333),null),Y(this,_0x55b0b3(0x1e1),void 0x0),Y(this,_0x55b0b3(0x27d),[]),Y(this,_0x55b0b3(0x179),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x55b0b3(0x2ed),0x0),Y(this,_0x55b0b3(0xf5),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,_0x55b0b3(0x23c),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x55b0b3(0x22f),void 0x0),Y(this,_0x55b0b3(0x16b),void 0x0),Y(this,_0x55b0b3(0x22b),!0x1),this[_0x55b0b3(0x132)](),this[_0x55b0b3(0x231)]();}[_0x25219a(0x260)](_0xf54210,_0x4708d8,_0x208204){const _0x4dc3aa=_0x25219a;let _0x461cd2=this[_0x4dc3aa(0x124)][_0x4dc3aa(0x1f4)](_0xf54210,_0x4708d8,_0x208204);if(_0x461cd2)return _0x461cd2[_0x4dc3aa(0x273)]();}[_0x25219a(0x2e1)](){const _0x1ea52d=_0x25219a;this[_0x1ea52d(0x266)]();}[_0x25219a(0x10b)](){const _0x1f48e3=_0x25219a;this[_0x1f48e3(0x1cf)](!0x0);}[_0x25219a(0x221)](_0x4e7a7f){const _0x32085d=_0x25219a;this[_0x32085d(0x22b)]=_0x4e7a7f;}[_0x25219a(0x1d9)](_0x4c6791,_0x5a3f9f,_0x16115b,_0x403209){const _0x17e2bf=_0x25219a;let _0x4a9878=this[_0x17e2bf(0x124)][_0x17e2bf(0x1f4)](_0x4c6791,_0x5a3f9f,_0x16115b);if(_0x4a9878)return _0x4a9878[_0x17e2bf(0x1bc)](_0x403209);}[_0x25219a(0x166)](_0x4ee021=!0x1){const _0x27ea15=_0x25219a;if(this[_0x27ea15(0x1c5)]===null||this[_0x27ea15(0x333)]===null||this[_0x27ea15(0x25d)]===null)return;let _0x201bc2=this[_0x27ea15(0x145)][_0x27ea15(0x1dd)](this[_0x27ea15(0x1c5)]);if(!_0x201bc2||!_0x201bc2[_0x27ea15(0xe3)](_0x319c9a)[_0x27ea15(0xde)]())return;let {scene:_0x4970c3}=_0x201bc2,_0x2dfd17={'unitId':this[_0x27ea15(0x1c5)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},_0xa3fcd=this[_0x27ea15(0x284)][_0x27ea15(0x30c)](_0x2dfd17),{transform:_0x60fe7e}=_0xa3fcd;if(!_0x60fe7e||_0xa3fcd['drawingType']!==_0x161136[_0x27ea15(0x25c)])return;let {left:_0x69557,top:_0x1b47cc,width:_0x48c838,height:_0x67ad84,flipX:_0x2a0c5c,flipY:_0x5cc0d1,angle:_0x722cef=0x0}=_0x60fe7e;if(_0x69557===void 0x0||_0x1b47cc===void 0x0)return;if(_0x4ee021){let _0x175cbe=this[_0x27ea15(0x124)]['getShapeModel'](this[_0x27ea15(0x1c5)],this['_subUnitId'],this[_0x27ea15(0x25d)]);_0x175cbe==null||_0x175cbe['updateContext']({'width':_0x48c838??0x0,'height':_0x67ad84??0x0}),this['_activeShapeAdjustPointList']=_0x175cbe==null?void 0x0:_0x175cbe[_0x27ea15(0x273)]();}let _0x4261e0=this[_0x27ea15(0x1e1)];for(let _0x343f26=0x0;_0x343f26<_0x4261e0[_0x27ea15(0x27a)];_0x343f26++){let _0x4b99ac=_0x4261e0[_0x343f26],_0x289370=_0x4b99ac['x'],_0x17573c=_0x4b99ac['y'];if(_0x2a0c5c&&(_0x289370=(_0x48c838||0x0)-_0x289370),_0x5cc0d1&&(_0x17573c=(_0x67ad84||0x0)-_0x17573c),_0x722cef!==0x0){let _0x3e261d=(_0x48c838||0x0)/0x2,_0x2a966a=(_0x67ad84||0x0)/0x2,_0x25666d=_0x722cef*Math['PI']/0xb4,_0x3cc85b=Math[_0x27ea15(0x214)](_0x25666d),_0x153d8d=Math[_0x27ea15(0x1fc)](_0x25666d),_0x3e3d9b=_0x289370-_0x3e261d,_0x105d26=_0x17573c-_0x2a966a;_0x289370=_0x3e261d+(_0x3e3d9b*_0x3cc85b-_0x105d26*_0x153d8d),_0x17573c=_0x2a966a+(_0x3e3d9b*_0x153d8d+_0x105d26*_0x3cc85b);}let _0x406c5c={'x':_0x289370,'y':_0x17573c,'adjName':_0x4b99ac[_0x27ea15(0x1ae)]};this[_0x27ea15(0x199)](_0x4970c3,_0x406c5c,_0x406c5c[_0x27ea15(0x1ae)],_0x69557,_0x1b47cc,this[_0x27ea15(0x1c5)],this['_subUnitId']);}}[_0x25219a(0x1cf)](_0x4f09df=!0x1){const _0x12814a=_0x25219a;_0x4f09df&&(this[_0x12814a(0x266)](),this[_0x12814a(0x166)](_0x4f09df));}[_0x25219a(0x199)](_0x2d969c,_0x2676f0,_0x4157bd,_0x14cc35,_0x5333ae,_0xad8125,_0x21187f){const _0xb55ae3=_0x25219a;if(!this['_activeShapeId'])return;let _0x3be8f6=_0x2d969c[_0xb55ae3(0x15b)]('shape-adjust-point-'+this[_0xb55ae3(0x25d)]+'-'+_0x4157bd);if(_0x3be8f6){_0x3be8f6['transformByState']({'left':_0x2676f0['x']+_0x14cc35-_0x373ebe['adjHandleSize'],'top':_0x2676f0['y']+_0x5333ae-_0x373ebe[_0xb55ae3(0x1bf)]});return;}let _0x2dd6db={'left':_0x2676f0['x']+_0x14cc35-_0x373ebe[_0xb55ae3(0x1bf)],'top':_0x2676f0['y']+_0x5333ae-_0x373ebe[_0xb55ae3(0x1bf)],'adjName':_0x4157bd,'shapeId':this[_0xb55ae3(0x25d)],'unitId':_0xad8125,'subUnitId':_0x21187f,'width':_0x373ebe['adjHandleSize']+0x8,'height':_0x373ebe['adjHandleSize']+0x8,'zIndex':_0x22b4b7+0x1,'evented':!0x0},_0x2fc7db=new Rn(_0xb55ae3(0x220)+this[_0xb55ae3(0x25d)]+'-'+_0x4157bd,_0x2dd6db);this['_shapes'][_0xb55ae3(0xfc)](_0x2fc7db),this[_0xb55ae3(0x272)](_0x2fc7db,_0x2d969c,_0x4157bd),_0x2d969c[_0xb55ae3(0xe6)](_0x2fc7db,_0x22b4b7+0x1);}[_0x25219a(0x266)](){const _0x17ca0d=_0x25219a;this[_0x17ca0d(0x27d)]['length']!==0x0&&(this[_0x17ca0d(0x27d)][_0x17ca0d(0x162)](_0x5825bf=>{const _0x539515=_0x17ca0d;_0x5825bf[_0x539515(0x259)]();}),this['_shapes']=[]);}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x25219a(0x314)](_0x46592a,_0x1cb353){const _0x4ea8f0=_0x25219a;var _0x26866c;let _0xb348f1={'x':0x0,'y':0x0};if(!_0x46592a||!_0x1cb353)return _0xb348f1;let _0x412f48=this['_renderManagerService'][_0x4ea8f0(0x1dd)](_0x46592a);if(!_0x412f48||!_0x412f48[_0x4ea8f0(0xe3)](_0x319c9a)[_0x4ea8f0(0x22d)](_0x1cb353))return _0xb348f1;let _0x26f928=_0x412f48[_0x4ea8f0(0xe3)](_0x22e443),_0x173495=_0x26f928==null?void 0x0:_0x26f928['getCurrentScrollState']();if(!_0x173495)return _0xb348f1;let _0x29b8fa=(_0x26866c=this[_0x4ea8f0(0xfe)][_0x4ea8f0(0x11e)](_0x46592a))==null?void 0x0:_0x26866c['getSheetBySheetId'](_0x1cb353);if(!_0x29b8fa)return _0xb348f1;let _0x54010b=_0x4f0d4b(_0x173495[_0x4ea8f0(0x1cc)],_0x173495[_0x4ea8f0(0x18c)],_0x412f48[_0x4ea8f0(0x19b)],_0x29b8fa);return _0x54010b?{'x':_0x54010b['viewportScrollX'],'y':_0x54010b[_0x4ea8f0(0x24b)]}:_0xb348f1;}[_0x25219a(0x1aa)](_0x7f89e9,_0x1f0587){const _0x204630=_0x25219a;var _0x233dcf;let _0xf9ac3f=(_0x233dcf=this[_0x204630(0xfe)][_0x204630(0x11e)](_0x7f89e9))==null?void 0x0:_0x233dcf['getSheetBySheetId'](_0x1f0587);return(_0xf9ac3f==null?void 0x0:_0xf9ac3f[_0x204630(0x310)]())??0x1;}[_0x25219a(0x272)](_0x9b606c,_0x4815ef,_0x4cc1e1){const _0x1f3241=_0x25219a;this['disposeWithMe'](_0x2388cf(_0x9b606c['onPointerDown$'][_0x1f3241(0x1ab)]((_0x4bd365,_0x7c94d0)=>{const _0x1ec54d=_0x1f3241;var _0x5a4627,_0x49903d,_0xbf0401,_0x1a1297;let _0x543881=_0x9b606c['getDrawingSearch']();this[_0x1ec54d(0x23c)]=this[_0x1ec54d(0x1d9)](_0x543881[_0x1ec54d(0x151)],_0x543881[_0x1ec54d(0x21f)],_0x543881[_0x1ec54d(0x2c2)],_0x4cc1e1),this['_activeShapeModel']=this['_sheetsShapeService'][_0x1ec54d(0x1f4)](_0x543881['unitId'],_0x543881[_0x1ec54d(0x21f)],_0x543881['drawingId']);let _0x153765=this['_drawingManagerService'][_0x1ec54d(0x30c)]({'unitId':this[_0x1ec54d(0x1c5)],'subUnitId':this[_0x1ec54d(0x333)],'drawingId':this['_activeShapeId']}),{transform:_0x506061}=_0x153765;if(_0x506061){let {left:_0xc4b63d,top:_0x38d773,width:_0x296c68,height:_0x12d009}=_0x506061;this[_0x1ec54d(0x179)]=_0xc4b63d||0x0,this[_0x1ec54d(0x143)]=_0x38d773||0x0,this[_0x1ec54d(0x2ed)]=_0x296c68||0x0,this[_0x1ec54d(0xf5)]=_0x12d009||0x0;}let _0x22da59=!!((_0x5a4627=_0x153765[_0x1ec54d(0x298)])!=null&&_0x5a4627[_0x1ec54d(0x275)]),_0x6b0e0f=!!((_0x49903d=_0x153765['transform'])!=null&&_0x49903d[_0x1ec54d(0x1a3)]),_0x24a228=((_0xbf0401=_0x153765[_0x1ec54d(0x298)])==null?void 0x0:_0xbf0401[_0x1ec54d(0x26e)])||0x0;this[_0x1ec54d(0x2e0)]=!0x0,_0x4815ef[_0x1ec54d(0x188)]();let _0x2f09ed={...((_0x1a1297=this[_0x1ec54d(0x23c)])==null?void 0x0:_0x1a1297['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x4815ef['onPointerMove$'][_0x1ec54d(0x1ab)]((_0xfe55de,_0x559036)=>{const _0x4897b7=_0x1ec54d;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2f9d20,offsetY:_0x256da0}=_0xfe55de,_0x56c472=this[_0x4897b7(0x23c)];if(this[_0x4897b7(0x16c)]&&_0x56c472){_0x4815ef['disableObjectsEvent'](),_0x4815ef[_0x4897b7(0xfb)](_0x2bcec2[_0x4897b7(0x318)]);let _0x2081ee={'left':0x0,'top':0x0,'width':this[_0x4897b7(0x2ed)],'height':this['_baseShapeHeight']},_0x5075ee=this[_0x4897b7(0x314)](this[_0x4897b7(0x1c5)],this[_0x4897b7(0x333)]),_0x43359d=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x377d6e=_0x2f9d20/_0x43359d+_0x5075ee['x']-this[_0x4897b7(0x179)],_0x3d4032=_0x256da0/_0x43359d+_0x5075ee['y']-this['_baseShapeTop'];if(_0x24a228!==0x0){let _0x3f4c0a=this[_0x4897b7(0x2ed)]/0x2,_0x1c9599=this['_baseShapeHeight']/0x2,_0x459b82=_0x24a228*Math['PI']/0xb4,_0x4a8e55=Math[_0x4897b7(0x214)](_0x459b82),_0x776dd=Math[_0x4897b7(0x1fc)](_0x459b82),_0x18df04=_0x377d6e-_0x3f4c0a,_0x3b65ab=_0x3d4032-_0x1c9599;_0x377d6e=_0x3f4c0a+(_0x18df04*_0x4a8e55+_0x3b65ab*_0x776dd),_0x3d4032=_0x1c9599+(-_0x18df04*_0x776dd+_0x3b65ab*_0x4a8e55);}_0x22da59&&(_0x377d6e=this['_baseShapeWidth']-_0x377d6e),_0x6b0e0f&&(_0x3d4032=this[_0x4897b7(0xf5)]-_0x3d4032);let _0x49ee8c={'x':_0x377d6e,'y':_0x3d4032},_0x70d7f=this[_0x4897b7(0x16c)][_0x4897b7(0x180)](_0x2081ee,_0x49ee8c,_0x56c472,_0x22da59,_0x6b0e0f);if(Object[_0x4897b7(0x12f)](_0x70d7f)[_0x4897b7(0x27a)]===0x0)return;for(let [_0x96a45c,_0x5a600b]of Object[_0x4897b7(0x277)](_0x70d7f))this['_activeShapeModel'][_0x4897b7(0x2cf)](_0x96a45c,_0x5a600b);this[_0x4897b7(0x16c)]['updateContext']({'width':this['_baseShapeWidth'],'height':this[_0x4897b7(0xf5)]});let _0x11c5c5=this[_0x4897b7(0x284)]['getDrawingByParam']({'unitId':_0x543881[_0x4897b7(0x151)],'subUnitId':_0x543881['subUnitId'],'drawingId':_0x543881['drawingId']});_0x11c5c5&&(this[_0x4897b7(0x26a)]['renderDrawingShape'](_0x11c5c5,_0x4815ef),this[_0x4897b7(0x1e1)]=this[_0x4897b7(0x260)](_0x543881[_0x4897b7(0x151)],_0x543881[_0x4897b7(0x21f)],_0x543881[_0x4897b7(0x2c2)]),this['_updateAdjustControlPositions']());}_0x559036[_0x4897b7(0x193)]();}),this['_adjHandlerPointerUp']=_0x4815ef[_0x1ec54d(0x2fc)][_0x1ec54d(0x1ab)]((_0x577969,_0x1cf7c4)=>{const _0x28437a=_0x1ec54d;this[_0x28437a(0x22f)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x4815ef[_0x28437a(0x144)]();let _0x1beb72=this[_0x28437a(0x23c)];if(_0x1beb72){let _0x291a2e=_0x543881[_0x28437a(0x151)],_0x190c16=_0x543881['subUnitId'],_0x378a99=_0x543881[_0x28437a(0x2c2)],_0x1791de={};for(let _0x578d3c of Object[_0x28437a(0x12f)](_0x1beb72['currentAdjustValues'])){var _0x5f23e7;let _0x94bdfd=(_0x5f23e7=this['_activeShapeModel'])==null?void 0x0:_0x5f23e7[_0x28437a(0x19f)](_0x578d3c);_0x94bdfd!==void 0x0&&(_0x1791de[_0x578d3c]=_0x94bdfd);}Object['keys'](_0x1791de)[_0x28437a(0x27a)]>0x0&&jn(this['_commandService'],_0x291a2e,_0x190c16,_0x378a99,{'oldShapeData':{'adjustValues':_0x2f09ed}},{'adjustValues':_0x1791de});}this['_activeAdjustInfo']=void 0x0,this[_0x28437a(0x16c)]=void 0x0,this[_0x28437a(0x2e0)]=!0x1,_0x1cf7c4[_0x28437a(0x193)](),_0x4815ef[_0x28437a(0xfa)]();}),_0x7c94d0['stopPropagation']();})));}[_0x25219a(0x231)](){const _0x3fe835=_0x25219a;let _0x4f44b2=this[_0x3fe835(0xfe)][_0x3fe835(0x1ac)](_0x2e857c[_0x3fe835(0x243)]);this['disposeWithMe'](_0x4f44b2[_0x3fe835(0x17c)](_0x54e619(_0x380292=>_0x380292?_0x380292[_0x3fe835(0x263)][_0x3fe835(0x17c)](_0x54e619(_0x2b87a4=>{const _0x2a7dcf=_0x3fe835;if(!_0x2b87a4)return _0x1997e0;let _0x51e335=_0x380292[_0x2a7dcf(0x1cd)](),_0x421a12=this['_renderManagerService'][_0x2a7dcf(0x1dd)](_0x51e335),_0x331055=_0x421a12==null?void 0x0:_0x421a12[_0x2a7dcf(0x19b)];return _0x331055?_0x36ada1(_0x331055):_0x1997e0;})):_0x1997e0))['subscribe'](_0x176142=>{const _0xb6d43b=_0x3fe835;let _0x5f1bc3=_0x176142[_0xb6d43b(0x253)]();this[_0xb6d43b(0x1b1)](_0x176142[_0xb6d43b(0x131)][_0xb6d43b(0x1ab)](()=>{const _0x240d75=_0xb6d43b;this[_0x240d75(0x22b)];})),this[_0xb6d43b(0x1b1)](_0x5f1bc3[_0xb6d43b(0x255)][_0xb6d43b(0x1a5)](_0x3b7895=>{const _0x494a3d=_0xb6d43b;let {objects:_0x651943}=_0x3b7895;this[_0x494a3d(0x166)](),_0x651943!==null&&_0x651943[_0x494a3d(0x32f)]===0x1&&_0x651943[_0x494a3d(0x1c8)]()[_0x494a3d(0x32d)]()[_0x494a3d(0x335)]instanceof Ln&&this[_0x494a3d(0x221)](!0x0);})),this[_0xb6d43b(0x1b1)](_0x5f1bc3[_0xb6d43b(0x155)][_0xb6d43b(0x1a5)](()=>{const _0xa8fab3=_0xb6d43b;this['_isShouldShowDrawingShapeAdjust']&&this[_0xa8fab3(0x266)]();})),this[_0xb6d43b(0x1b1)](_0x176142[_0xb6d43b(0x2fc)][_0xb6d43b(0x1ab)](()=>{const _0x5e793b=_0xb6d43b;this[_0x5e793b(0x22b)]&&(this['setShouldShowAdjust'](!0x1),this[_0x5e793b(0x166)]());})),this[_0xb6d43b(0x1b1)](_0x5f1bc3['changeEnd$'][_0xb6d43b(0x1a5)](()=>{const _0x2d6ec7=_0xb6d43b;this[_0x2d6ec7(0x1c5)]&&this['_subUnitId']&&this[_0x2d6ec7(0x25d)]&&this[_0x2d6ec7(0x284)][_0x2d6ec7(0x30c)]({'unitId':this[_0x2d6ec7(0x1c5)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']})&&(this[_0x2d6ec7(0x1e1)]=this[_0x2d6ec7(0x260)](this[_0x2d6ec7(0x1c5)],this[_0x2d6ec7(0x333)],this[_0x2d6ec7(0x25d)]),this[_0x2d6ec7(0x187)]());}));}));}[_0x25219a(0x132)](){const _0x486d43=_0x25219a;this[_0x486d43(0x1b1)](this[_0x486d43(0x2cc)]['onCommandExecuted'](_0x488020=>{const _0x510c53=_0x486d43;if(_0x488020['id']!==_0x46a98e['id'])return;let {unitId:_0x18edc7,subUnitId:_0x3692e9,shapeId:_0x4e0172}=_0x488020[_0x510c53(0x17a)];_0x18edc7===this['_unitId']&&_0x3692e9===this['_subUnitId']&&_0x4e0172===this[_0x510c53(0x25d)]&&this['refreshAdjustControls']();})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x250)][_0x486d43(0x1a5)](_0x39004a=>{const _0x395274=_0x486d43;if(_0x39004a[_0x395274(0x27a)]===0x1){let _0xdb3048=_0x39004a[0x0];if(_0xdb3048[_0x395274(0x2b3)]===_0x161136[_0x395274(0x25c)]&&this[_0x395274(0xfe)]['getUnitType'](_0xdb3048[_0x395274(0x151)])===_0x2e857c[_0x395274(0x243)]){this['_activeShapeId']=_0xdb3048['drawingId'];let {unitId:_0x4a7e93,subUnitId:_0x180609}=_0xdb3048;this['_activeShapeAdjustPointList']=this[_0x395274(0x260)](_0x4a7e93,_0x180609,this[_0x395274(0x25d)]),this[_0x395274(0x1c5)]=_0x4a7e93,this[_0x395274(0x333)]=_0x180609,this[_0x395274(0x266)](),this['_createShapeAdjustControls']();return;}}this[_0x395274(0x25d)]=null,this[_0x395274(0x1e1)]=void 0x0,this[_0x395274(0x1c5)]=null,this[_0x395274(0x333)]=null,this['_clearShapeAdjustControls']();})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x22c)]['subscribe'](_0x240c9d=>{const _0x5e250c=_0x486d43;if(_0x240c9d[_0x5e250c(0x27a)]===0x1){var _0x263a6b;let _0x15a250=_0x240c9d[0x0];((_0x263a6b=this['_drawingManagerService']['getDrawingByParam'](_0x15a250))==null?void 0x0:_0x263a6b['drawingType'])===_0x161136[_0x5e250c(0x25c)]&&this[_0x5e250c(0x1cf)](!0x0);}})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x2c0)][_0x486d43(0x1a5)](_0x35999d=>{const _0x46d89a=_0x486d43;for(let _0x3e746c of _0x35999d)this[_0x46d89a(0x25d)]===_0x3e746c[_0x46d89a(0x2c2)]&&(this[_0x46d89a(0x25d)]=null,this[_0x46d89a(0x1e1)]=void 0x0,this[_0x46d89a(0x1c5)]=null,this[_0x46d89a(0x333)]=null,this[_0x46d89a(0x266)]());}));}};zn=Z([X(0x0,_0x492363),X(0x1,_0x396ece(_0x6985f7)),X(0x2,_0x396ece(_0x471989)),X(0x3,_0x396ece(Q)),X(0x4,_0x230412),X(0x5,_0x16d336)],zn);const Bn={'id':'drawing.operation.set-drawing-active','type':_0x4d8f21[_0x25219a(0x324)],'handler':(_0xacc691,_0xcc92b8)=>{const _0x2f4f2d=_0x25219a;let _0x4888c6=_0xacc691[_0x2f4f2d(0x23e)](_0x492363),_0x48b5e5=_0xacc691[_0x2f4f2d(0x23e)](_0x471989),_0x327e62=_0xacc691[_0x2f4f2d(0x23e)](zn);if(_0xcc92b8==null)return!0x0;if(_0xcc92b8['length']>0x0){var _0x37ec6a;let _0x3a2e30=(_0x37ec6a=_0x48b5e5[_0x2f4f2d(0x1dd)](_0xcc92b8[0x0][_0x2f4f2d(0x151)]))==null?void 0x0:_0x37ec6a[_0x2f4f2d(0x19b)];if(_0x3a2e30){let {unitId:_0x2f31e9,subUnitId:_0x2a7dd5,drawingId:_0x4a7885}=_0xcc92b8[0x0],_0x51ba4e=_0x566164({'unitId':_0x2f31e9,'subUnitId':_0x2a7dd5,'drawingId':_0x4a7885},void 0x0),_0x39b993=_0x3a2e30[_0x2f4f2d(0x15b)](_0x51ba4e);if(_0x39b993){var _0x375ede;(_0x375ede=_0x48b5e5[_0x2f4f2d(0x1dd)](_0xcc92b8[0x0][_0x2f4f2d(0x151)]))==null||(_0x375ede=_0x375ede[_0x2f4f2d(0x19b)][_0x2f4f2d(0x31e)]())==null||_0x375ede['activeAnObject'](_0x39b993);}}_0x4888c6[_0x2f4f2d(0x27f)](_0xcc92b8),_0x327e62[_0x2f4f2d(0x221)](!0x1);}return!0x0;}},Vn={'type':_0x4d8f21[_0x25219a(0xe5)],'id':_0x25219a(0x1ad),'handler':async(_0x1d0b81,_0x4f5ad3)=>{const _0x6f51e3=_0x25219a;let _0x38b10d=_0x4988bb(_0x1d0b81[_0x6f51e3(0x23e)](_0x230412));if(!_0x38b10d)return!0x1;let _0x445eae=_0x1d0b81['get'](_0x3bd43a)[_0x6f51e3(0x2dd)]();if(!_0x445eae)return!0x1;let _0x5a72fd=_0x1d0b81[_0x6f51e3(0x23e)](_0x16d336),{unitId:_0x302610,subUnitId:_0x308ac4}=_0x38b10d,{value:_0x1f23ca,enhanceParams:_0x489f15}=_0x4f5ad3,{range:_0x3f6348}=_0x445eae,_0x440ca4={'unitId':_0x302610,'subUnitId':_0x308ac4,'shapeType':_0x1f23ca,'range':_0x3f6348,'shapeId':_0x44c0e2()};if(_0x489f15){let _0x2b781d=_0x41a954(_0x1f23ca),_0xcc5336=_0x1f23ca===_0x6bfff9[_0x6f51e3(0x2dc)];_0x2b781d&&(_0x489f15[_0x6f51e3(0x2d0)]||_0x489f15['endArrow'])&&(_0x440ca4['shapeData']={'ln':{'startArrow':_0x489f15['startArrow']?{'type':_0x36692d[_0x6f51e3(0x2a0)],'size':_0x4caef4[_0x6f51e3(0x1db)]}:void 0x0,'endArrow':_0x489f15[_0x6f51e3(0x13d)]?{'type':_0x36692d[_0x6f51e3(0x2a0)],'size':_0x4caef4[_0x6f51e3(0x2bb)]}:void 0x0}}),_0xcc5336&&(_0x489f15['horizontal']||_0x489f15[_0x6f51e3(0x1ff)])&&(_0x440ca4[_0x6f51e3(0x2ae)]=_0x597125({'fill':{'fillType':_0x83e268[_0x6f51e3(0x304)],'color':'#FFFFFF'},'isHorizontal':!!_0x489f15[_0x6f51e3(0x241)],'stroke':{'lineStrokeType':_0x2401bc['SolidLine'],'width':0x1,'color':'#bcbcbc'}}));}let _0x416c2c=_0x5a72fd[_0x6f51e3(0x32c)](_0x3a08e6['id'],_0x440ca4);return setTimeout(()=>{const _0x4882fd=_0x6f51e3;_0x5a72fd['executeCommand'](Bn['id'],[{'unitId':_0x302610,'subUnitId':_0x308ac4,'drawingId':_0x440ca4[_0x4882fd(0x25a)]}]);},0xc8),_0x416c2c;}},Hn=_0x25219a(0x1ef),Un=_0x25219a(0xe8),Wn=_0x25219a(0x264),Gn=_0x5a685c(_0x25219a(0xe0)),Kn=_0x25219a(0x107),qn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x4d8f21[_0x25219a(0xe5)],'handler':(_0x1d9698,_0x3eb82f)=>{const _0x4a5d8b=_0x25219a;let _0x480494=_0x1d9698['get'](_0x54fc19),_0x4f0166=_0x1d9698[_0x4a5d8b(0x23e)](_0x404764),_0x2e4543=_0x1d9698[_0x4a5d8b(0x23e)](_0x230412),_0xe48b34=_0x1d9698[_0x4a5d8b(0x23e)](_0x16d336);return _0x4988bb(_0x2e4543)?(_0x3eb82f==null?void 0x0:_0x3eb82f[_0x4a5d8b(0x335)])===_0x4a5d8b(0xe9)?(_0x480494[_0x4a5d8b(0xe9)](Un),!0x0):(_0x480494[_0x4a5d8b(0x320)]({'id':Un,'header':{'title':_0x4f0166['t'](_0x4a5d8b(0x1c4))},'children':{'label':Un},'onClose':()=>{const _0x17c0e9=_0x4a5d8b;_0xe48b34[_0x17c0e9(0x32c)](_0x4688df['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Jn=class extends _0x3ba2e2{constructor(_0x124cd2,_0x5713c5){const _0x5937ba=_0x25219a;super(),this[_0x5937ba(0x254)]=_0x124cd2,this['_drawingManagerService']=_0x5713c5,this['_registerImageShapeClipDelegate'](),this[_0x5937ba(0x254)][_0x5937ba(0x10f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x5937ba(0x254)][_0x5937ba(0x10f)](!0x1)});}[_0x25219a(0x2b6)](){const _0x4bae8f=_0x25219a;let _0x16c547=this[_0x4bae8f(0x254)],_0xe7976d=new Map(),_0xd2e6a9=_0x16c547[_0x4bae8f(0x2fb)]((_0x15245c,_0x3b7187,_0x1cc7f8,_0x91a408,_0x252d34)=>{const _0x3d7f29=_0x4bae8f;let _0x48a105=_0x3b7187;if(_0x48a105===_0x6bfff9[_0x3d7f29(0x292)]||_0x3b7187===_0x3d7f29(0x2e3))return!0x1;try{let _0x2a9f3a=_0xe7976d[_0x3d7f29(0x23e)](_0x3b7187);return _0x2a9f3a||(_0x2a9f3a=new _0x57cb5b(_0x48a105,_0x3d7f29(0x24d)+_0x3b7187),_0xe7976d[_0x3d7f29(0x10e)](_0x3b7187,_0x2a9f3a)),_0x2a9f3a[_0x3d7f29(0x1c2)](),_0x252d34&&Object[_0x3d7f29(0x12f)](_0x252d34)[_0x3d7f29(0x27a)]>0x0&&_0x2a9f3a[_0x3d7f29(0x1e2)]({'adjustValues':_0x252d34},!0x0),_0x2a9f3a[_0x3d7f29(0x256)]({'width':_0x1cc7f8,'height':_0x91a408}),_0x2a9f3a[_0x3d7f29(0x128)](_0x15245c,{'left':0x0,'top':0x0,'width':_0x1cc7f8,'height':_0x91a408});}catch{return!0x1;}});this[_0x4bae8f(0x1b1)](_0xd2e6a9),this[_0x4bae8f(0x1b1)]({'dispose':()=>_0xe7976d[_0x4bae8f(0x1da)]()});}[_0x25219a(0x116)](_0x53f33b,_0x42a225,_0x54bf68,_0x10f6db,_0x25e551){const _0x5cd47e=_0x25219a;let _0x4ded3a=this[_0x5cd47e(0x284)][_0x5cd47e(0x296)](_0x53f33b,_0x42a225);if(!_0x4ded3a[_0x54bf68])return;let _0x16a3b1={..._0x4ded3a[_0x54bf68],'prstGeom':_0x10f6db,'adjustValues':_0x25e551};this[_0x5cd47e(0x284)][_0x5cd47e(0x339)]([_0x16a3b1]);}};Jn=Z([X(0x0,_0x396ece(_0x323084)),X(0x1,_0x396ece(_0x492363))],Jn);const Yn=_0x25219a(0x1b9),Xn=_0x25219a(0x328);function Zn({onShapeClick:_0x2ce148,excludeGroups:_0x5ebd92}){const _0x159d32=_0x25219a;return _0x5c23f7(_0x4d521e,{'excludeGroups':_0x5ebd92,'onShapeClick':_0x2ce148,'scrollContainer':_0x159d32(0x26b)});}function Qn(){const _0x40f21f=_0x25219a;let _0x10ca89=_0x456f39(_0x492363),_0xbf931e=_0x456f39(Jn);return _0x5c23f7(_0x28b0d3,{'buttonLabel':_0x40f21f(0x33d),'excludeGroups':[_0x27d7db[_0x40f21f(0x120)]],'onShapeClick':_0xbe2050=>{const _0x298d5a=_0x40f21f;let _0x552a5b=_0x10ca89['getFocusDrawings']()[_0x298d5a(0x24c)](_0xffdac9=>_0xffdac9[_0x298d5a(0x2b3)]===_0x161136[_0x298d5a(0xda)]);if(!_0x552a5b)return;let {unitId:_0x37ce76,subUnitId:_0x41726c,drawingId:_0x116d16}=_0x552a5b;_0xbf931e[_0x298d5a(0x116)](_0x37ce76,_0x41726c,_0x116d16,_0xbe2050[_0x298d5a(0x31a)]);}});}function $n(){const _0xdd37b8=_0x25219a;let _0x460df4=_0x456f39(_0x21a48b),_0x29ba9a=_0x456f39(_0x492363),_0x522874=_0x456f39(_0x230412),_0x3b1034=_0x29ba9a[_0xdd37b8(0x21a)]()[0x0],_0x293b94=_0x3b1034?_0x522874['getUnitType'](_0x3b1034[_0xdd37b8(0x151)]):void 0x0,_0x430043=_0x293b94===_0x2e857c[_0xdd37b8(0x1b7)]?'doc.image-clip.shape-picker.component':_0x293b94===_0x2e857c['UNIVER_SHEET']?Xn:void 0x0,_0x27f72b=_0x430043?_0x460df4[_0xdd37b8(0x23e)](_0x430043):void 0x0;return _0x27f72b?_0x5c23f7(_0x27f72b,{}):null;}function er(){let _0x2efa30=_0x456f39(_0x16d336);return _0x5c23f7(Zn,{'onShapeClick':_0x47a049=>{const _0x340bf3=_0x52a4;_0x2efa30[_0x340bf3(0x1a6)](Vn['id'],{'value':_0x47a049[_0x340bf3(0x31a)],'enhanceParams':{'endArrow':_0x47a049[_0x340bf3(0x13d)],'startArrow':_0x47a049[_0x340bf3(0x2d0)],'horizontal':_0x47a049['horizontal'],'vertical':_0x47a049[_0x340bf3(0x1ff)]}});}});}function tr(_0x5d17c0){const _0xc6cbc6=_0x25219a;let _0x5094bb=_0x5d17c0['get'](_0x230412);return{'id':Vn['id'],'type':_0x2aaa41[_0xc6cbc6(0x2c6)],'selections':[{'label':{'name':Yn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Vn['id']}}}],'icon':'ShapeIcon','tooltip':'sheets-shape-ui.insertShape','activated$':_0x21923c(_0x5094bb,!0x1,()=>new _0x395a42(_0x21776d=>{const _0x53d7df=_0xc6cbc6;_0x21776d[_0x53d7df(0x32d)](!0x1);})),'hidden$':_0x315655(_0x5d17c0,_0x2e857c[_0xc6cbc6(0x243)]),'disabled$':_0x4a597a(_0x5d17c0)};}function nr(_0x4b66b9){const _0x85a82f=_0x25219a;let _0x303bbb=_0x4b66b9[_0x85a82f(0x23e)](_0x230412);return{'id':qn['id'],'type':_0x2aaa41[_0x85a82f(0x30b)],'icon':_0x85a82f(0xdc),'title':_0x85a82f(0xed),'tooltip':_0x85a82f(0xed),'activated$':_0x21923c(_0x303bbb,!0x1,()=>new _0x395a42(_0x590fc9=>{const _0x1f02d2=_0x85a82f;_0x590fc9[_0x1f02d2(0x32d)](!0x1);})),'hidden$':_0x315655(_0x4b66b9,_0x2e857c['UNIVER_SHEET']),'disabled$':_0x4a597a(_0x4b66b9)};}const rr='sheet.menu.shape.flip-horizontal',ir=_0x25219a(0x1de);function ar(_0x15b093){const _0x18d7b5=_0x25219a;let _0x56bde0=_0x15b093['get'](_0x492363)[_0x18d7b5(0x21a)]();return _0x56bde0[_0x18d7b5(0x27a)]===0x1&&_0x56bde0[0x0]['drawingType']===_0x161136[_0x18d7b5(0x25c)]?_0x56bde0[0x0]:null;}function or(_0x3f62da){const _0xbe47b=_0x25219a;let _0xcc3989=_0x3f62da[_0xbe47b(0x23e)](_0x492363);return _0xcc3989['focus$'][_0xbe47b(0x17c)](_0x4a164f(_0xcc3989[_0xbe47b(0x21a)]()),_0xaa4389(_0x416577=>_0x416577[_0xbe47b(0x27a)]!==0x1||_0x416577[0x0][_0xbe47b(0x2b3)]!==_0x161136[_0xbe47b(0x25c)]));}function sr(_0x515c42){const _0x57831c=_0x25219a;return{'id':rr,'commandId':_0x5ab636['id'],'type':_0x2aaa41['BUTTON'],'title':_0x57831c(0x194),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x57831c(0x10c),'hidden$':or(_0x515c42),'params':()=>{const _0x3ce701=_0x57831c;let _0x42976f=ar(_0x515c42);return _0x42976f?{'unitId':_0x42976f[_0x3ce701(0x151)],'subUnitId':_0x42976f['subUnitId'],'shapeId':_0x42976f[_0x3ce701(0x2c2)],'flipH':!0x0}:void 0x0;}};}function cr(_0x313608){const _0x376398=_0x25219a;return{'id':ir,'commandId':_0x5ab636['id'],'type':_0x2aaa41[_0x376398(0x30b)],'title':'sheets-shape-ui.flipVertical','tooltip':_0x376398(0x301),'icon':_0x376398(0x169),'hidden$':or(_0x313608),'params':()=>{const _0x380cfa=_0x376398;let _0xe29fd5=ar(_0x313608);return _0xe29fd5?{'unitId':_0xe29fd5['unitId'],'subUnitId':_0xe29fd5[_0x380cfa(0x21f)],'shapeId':_0xe29fd5[_0x380cfa(0x2c2)],'flipV':!0x0}:void 0x0;}};}const lr={[_0x3c626a[_0x25219a(0x2f9)]]:{[Vn['id']]:{'order':0x4,'menuItemFactory':tr}},[_0x3c626a[_0x25219a(0x1d1)]]:{[qn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':nr}},[_0x34d07a[_0x25219a(0x211)]]:{[_0x9e0dc8[_0x25219a(0x1d1)]]:{[rr]:{'order':0x4,'menuItemFactory':sr},[ir]:{'order':0x5,'menuItemFactory':cr}}}};var ur=_0x25219a(0x1dc),dr=_0x25219a(0x1e5);const fr={'type':_0x4d8f21[_0x25219a(0x324)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},pr={'type':_0x4d8f21[_0x25219a(0x324)],'id':_0x25219a(0xf6),'handler'(){return!0x0;}},mr={};function hr(_0x26550f){const _0x425823=_0x25219a;return _0x26550f[_0x425823(0x1ec)]()||void 0x0;}function gr(_0x57aa54,_0x7a70e4,_0x5d8d55){const _0x31d894=_0x25219a;var _0x250693;return((_0x250693=_0x57aa54[_0x31d894(0x32e)])==null?void 0x0:_0x250693[_0x31d894(0x1ec)]())||_0x5a3cf6(_0x5d8d55,_0x242d11(_0x57aa54[_0x31d894(0x2b3)]))+'\x20'+(_0x7a70e4+0x1);}function _r(){const _0x3f8fe8=_0x25219a;var _0x225c20;let _0x14c5b2=_0x456f39(_0x404764),_0xb9c435=_0x456f39(_0x16d336),_0x58acaf=_0x456f39(_0x230412),_0x1e612d=_0x456f39(_0x18f6a9),_0x225189=_0x456f39(_0x492363),_0x11d716=_0x456f39(_0x471989),[,_0x271748]=_0x3fe30a(_0x26ac03=>_0x26ac03+0x1,0x0),_0x472a42=_0x58acaf[_0x3f8fe8(0x228)](_0x2e857c[_0x3f8fe8(0x243)]),_0x32657d=(_0x472a42==null?void 0x0:_0x472a42[_0x3f8fe8(0x1cd)]())??'',_0x20251c=(_0x472a42==null||(_0x225c20=_0x472a42[_0x3f8fe8(0x18d)]())==null?void 0x0:_0x225c20[_0x3f8fe8(0x191)]())??'',_0x41ca6b=_0x2cc2b9(()=>_0x225189[_0x3f8fe8(0x250)],_0x225189[_0x3f8fe8(0x21a)](),!0x1,[_0x225189]);_0x329c92(()=>{const _0x473b59=_0x3f8fe8;let _0x5b8c9c=_0xb9c435[_0x473b59(0x24a)](()=>_0x271748());return()=>_0x5b8c9c[_0x473b59(0x259)]();},[_0xb9c435]);let _0x1c4bf3=_0x4a6e48(()=>_0x5d1b79(_0x14c5b2),[_0x14c5b2]),_0x9b907e=_0x32657d&&_0x20251c?_0x1e612d[_0x3f8fe8(0x296)](_0x32657d,_0x20251c):{},_0x303e91=(_0x32657d&&_0x20251c?_0x1e612d['getDrawingOrder'](_0x32657d,_0x20251c):[])[_0x3f8fe8(0x111)](_0x52a4d0=>_0x9b907e[_0x52a4d0])[_0x3f8fe8(0x291)](_0x1a6ec7=>!!_0x1a6ec7)[_0x3f8fe8(0x20f)](),_0x13839d=_0x303e91[_0x3f8fe8(0x1b0)]((_0x183aa5,_0x5e1fa7)=>(_0x183aa5[_0x3a38fa(_0x5e1fa7[_0x3f8fe8(0x2b3)])]+=0x1,_0x183aa5),{'canvas':0x0,'floating':0x0}),_0x4dc99b={'canvas':0x0,'floating':0x0},_0x2c0bc4=_0x303e91['map']((_0x500874,_0x2143e1)=>{const _0x481a4e=_0x3f8fe8;let _0x11ff7a=_0x3a38fa(_0x500874[_0x481a4e(0x2b3)]),_0x4f10bb=_0x11ff7a===_0x480b8f,_0x20372c=_0x4dc99b[_0x11ff7a]++;return{'id':_0x500874['drawingId'],'name':gr(_0x500874,_0x2143e1,_0x14c5b2),'description':_0x500874[_0x481a4e(0x29f)],'visible':_0x500874[_0x481a4e(0x160)]!==!0x0,'selectable':_0x500874[_0x481a4e(0x2ce)]!==!0x1,'sectionId':_0x11ff7a,'sectionTitle':_0x4f10bb?_0x1c4bf3['sectionFloating']:_0x1c4bf3[_0x481a4e(0x19e)],'capabilities':_0x4f10bb?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x4f10bb&&_0x20372c>0x0,'canMoveBackward':!_0x4f10bb&&_0x20372c<_0x13839d[_0x481a4e(0x208)]-0x1,'canReorder':!_0x4f10bb};}),_0x5b06ba=_0x4a6e48(()=>(_0x41ca6b??[])[_0x3f8fe8(0x291)](_0x5c6e9d=>_0x5c6e9d[_0x3f8fe8(0x151)]===_0x32657d&&_0x5c6e9d[_0x3f8fe8(0x21f)]===_0x20251c)[_0x3f8fe8(0x111)](_0x35e709=>_0x35e709['drawingId']),[_0x41ca6b,_0x20251c,_0x32657d]),_0x4b083e=_0x5b06ba[_0x5b06ba[_0x3f8fe8(0x27a)]-0x1]??null,_0x413271=_0x16c964=>_0x1e612d[_0x3f8fe8(0x30c)]({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x16c964})??null,_0x3f170b=async _0x42ec8f=>{const _0x13e5d7=_0x3f8fe8;!_0x32657d||!_0x42ec8f[_0x13e5d7(0x27a)]||await _0xb9c435[_0x13e5d7(0x1a6)](_0x22957d['id'],{'unitId':_0x32657d,'drawings':_0x42ec8f});},_0x5241b5=async(_0x4a1b83,_0x4cb85f)=>{_0x413271(_0x4a1b83)&&await _0x3f170b([{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x4a1b83,..._0x4cb85f}]);},_0x4585db=(_0x51bc9c,_0x1e2a9b)=>{const _0x367ddf=_0x3f8fe8;if(!_0x32657d||!_0x20251c)return;let _0x3712d7=_0x1e2a9b?_0x5b06ba[_0x367ddf(0x2b1)](_0x51bc9c)?_0x5b06ba['filter'](_0x448931=>_0x448931!==_0x51bc9c):[..._0x5b06ba,_0x51bc9c]:[_0x51bc9c];_0xb9c435[_0x367ddf(0x32c)](_0x4688df['id'],_0x3712d7['map'](_0x272337=>({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x272337})));let _0x135f08=_0x3712d7[_0x3712d7[_0x367ddf(0x27a)]-0x1];_0x135f08?_0xbe39a(_0x11d716,{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x135f08}):_0x397c5e(_0x11d716,_0x32657d);},_0x2f28d8=async(_0x1fdb2a,_0x3d1c41)=>{const _0xe25b87=_0x3f8fe8;await _0x3f170b(_0x1fdb2a['map'](_0xb5c4e9=>_0x413271(_0xb5c4e9))[_0xe25b87(0x291)](_0x4e99a7=>!!_0x4e99a7)[_0xe25b87(0x291)](_0x380f19=>_0x380f19[_0xe25b87(0x160)]!==!0x0!==_0x3d1c41)[_0xe25b87(0x111)](_0x370d5f=>({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x370d5f[_0xe25b87(0x2c2)],'hidden':!_0x3d1c41})));},_0x5e8ea4=async _0x484577=>{const _0x37628a=_0x3f8fe8;let _0x47cf01=_0x413271(_0x484577);_0x47cf01&&await _0x5241b5(_0x484577,{'selectable':_0x47cf01[_0x37628a(0x2ce)]===!0x1&&void 0x0});},_0x29e284=async(_0x269e9e,_0x462e86)=>{const _0x3e3efc=_0x3f8fe8;var _0x384cad;let _0x1cacf0=hr(_0x462e86);(((_0x384cad=_0x413271(_0x269e9e))==null?void 0x0:_0x384cad[_0x3e3efc(0x32e)])??void 0x0)!==_0x1cacf0&&await _0x5241b5(_0x269e9e,{'name':_0x1cacf0});},_0x2d92c5=async(_0x298078,_0x195561)=>{const _0x48e8d9=_0x3f8fe8;var _0x5f3a38;let _0x8f1869=hr(_0x195561);(((_0x5f3a38=_0x413271(_0x298078))==null?void 0x0:_0x5f3a38[_0x48e8d9(0x29f)])??void 0x0)!==_0x8f1869&&await _0x5241b5(_0x298078,{'description':_0x8f1869});},_0x5588b7=async(_0x100efd,_0x45128d)=>{const _0x902903=_0x3f8fe8;!_0x32657d||!_0x20251c||await _0xb9c435[_0x902903(0x1a6)](_0x5f552c['id'],{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingIds':[_0x100efd],'arrangeType':_0x45128d});};return!_0x32657d||!_0x20251c?_0x5c23f7(_0x3f8fe8(0x23f),{'className':_0x3f8fe8(0x1a2),'children':_0x1c4bf3[_0x3f8fe8(0x222)]}):_0x5c23f7(_0x29b70f,{'items':_0x2c0bc4,'selectedIds':_0x5b06ba,'focusedId':_0x4b083e,'labels':_0x1c4bf3,'onSelect':_0x4585db,'onSetVisible':_0x2f28d8,'onCommitName':_0x29e284,'onCommitDescription':_0x2d92c5,'onMoveForward':async _0x58d0b8=>_0x5588b7(_0x58d0b8,_0x59b698[_0x3f8fe8(0x12c)]),'onMoveBackward':async _0x5a8e9c=>_0x5588b7(_0x5a8e9c,_0x59b698[_0x3f8fe8(0x2f4)]),'onToggleSelectable':_0x5e8ea4});}let vr=class{constructor(_0x56c910){const _0x4ff471=_0x25219a;this[_0x4ff471(0x145)]=_0x56c910;}[_0x25219a(0x10d)](_0x2dfaea,_0x5deebe){const _0x4a93e8=_0x25219a;let _0x3330ec=this[_0x4a93e8(0x145)][_0x4a93e8(0x1dd)](_0x2dfaea[_0x4a93e8(0x151)]),_0x10ad75=_0x3330ec==null?void 0x0:_0x3330ec[_0x4a93e8(0x19b)];if(!_0x10ad75)return;let _0x171ad0=_0x566164(_0x2dfaea),_0xdcf40f=_0x10ad75[_0x4a93e8(0x15b)](_0x171ad0);_0xdcf40f==null||_0xdcf40f[_0x4a93e8(0x1d2)](_0x5deebe);}};vr=Z([X(0x0,_0x471989)],vr);function yr(){const _0x53b66c=_0x25219a;let _0x4c98b5=_0x456f39(_0x492363),_0x4164cf=_0x2cc2b9(()=>_0x4c98b5[_0x53b66c(0x250)],_0x4c98b5['getFocusDrawings'](),!0x1,[_0x4c98b5]);return _0x4164cf[_0x53b66c(0x27a)]===0x0?null:_0x5c23f7(_0x53b66c(0x23f),{'children':_0x57d5e2(_0x53b66c(0x23f),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[_0x5c23f7(_0x2f24d8,{'drawings':_0x4164cf,'hasCropper':!0x1}),_0x5c23f7(_0x2bf2cb,{'drawings':_0x4164cf})]})});}function br(_0x369b8f){let {unitId:_0x2a0be5,subUnitId:_0x260c5c,shapeId:_0x36d596}=_0x369b8f,_0x23b581=_0x456f39(_0x16d336),_0x90fff3=_0x456f39(vr);return _0x5c23f7(_0x5a7a6a,{..._0x369b8f,'positionEditor':_0x5c23f7(yr,{}),'onUpdateShapeData':(_0x937634,_0x1ac849)=>{jn(_0x23b581,_0x2a0be5,_0x260c5c,_0x36d596,_0x937634,_0x1ac849);},'onUpdateLineShapeData':(_0x505632,_0x50686a)=>{Mn(_0x23b581,_0x2a0be5,_0x260c5c,_0x36d596,_0x505632,_0x50686a);},'onUpdateShapeFillImage':_0x289d8c=>{const _0x2b42a5=_0x52a4;_0x90fff3[_0x2b42a5(0x10d)]({'unitId':_0x2a0be5,'subUnitId':_0x260c5c,'drawingId':_0x36d596},_0x289d8c);}});}function xr(_0x5a5028){const _0x4ebf42=_0x25219a;let _0x4c88f7=_0x5a5028[_0x4ebf42(0x25b)][_0x4ebf42(0x2db)];return _0x4c88f7?_0x5c23f7(Sr,{..._0x4c88f7}):null;}function Sr(_0x1daddf){const _0x3fee26=_0x25219a;let _0x2c8a6a=_0x456f39(_0x16d336),_0x1f3e3d=_0x456f39(_0x6985f7),{unitId:_0x3f0100,subUnitId:_0x3e0784,drawingId:_0x153b7b,drawingType:_0x2b6877,shapeType:_0x2f873b}=_0x1daddf,[_0x16dede,_0xdd1ba5]=_0x2793a8(_0x1daddf[_0x3fee26(0x2ae)]),_0x66991d=_0x4a6e48(()=>_0x5eb25a(_0x16dede),[_0x16dede]),_0x144659=_0x4a6e48(()=>_0x68e79b(_0x16dede),[_0x16dede]);_0x329c92(()=>{const _0x1ffaeb=_0x3fee26;let _0x252885=_0x2c8a6a[_0x1ffaeb(0x24a)](_0x491349=>{if(_0x491349['id']!==_0x46a98e['id'])return;let _0x1d8f06=_0x1f3e3d['getShapeDataById'](_0x3f0100,_0x3e0784,_0x153b7b);_0x1d8f06&&_0xdd1ba5(_0x1d8f06);});return()=>_0x252885[_0x1ffaeb(0x259)]();},[_0x2c8a6a,_0x153b7b,_0x1f3e3d,_0x3e0784,_0x3f0100]);let _0x16cebb=_0x4b3de3=>{_0xdd1ba5(_0x4c0c79=>({..._0x4c0c79,..._0x4b3de3}));},_0x24b03a=_0x204c4e=>{let _0x29a33d=_0x537773(_0x16dede,_0x204c4e);jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,{'oldShapeData':{'shapeText':_0x16dede['shapeText']}},_0x29a33d),_0x16cebb(_0x29a33d);},_0x1af668=_0x2ca04c({'hostType':_0x2e857c[_0x3fee26(0x243)],'unitId':_0x3f0100,'subUnitId':_0x3e0784,'shapeId':_0x153b7b,'shapeData':_0x16dede,'onUpdateBinding':_0x35262d=>{const _0x1a9c1f=_0x3fee26;let _0x4d3ae2={'formulaBinding':_0x35262d};jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,{'oldShapeData':{'formulaBinding':_0x16dede[_0x1a9c1f(0x1c6)]}},_0x4d3ae2),_0x16cebb(_0x4d3ae2);}});return _0x57d5e2(_0x1c48da,{'children':[_0x5c23f7(_0x472902,{'shapeData':_0x16dede,'shapeType':_0x2f873b,'textStyle':{'ff':_0x373ebe[_0x3fee26(0x102)]['fontFamily'],'fs':_0x373ebe[_0x3fee26(0x102)][_0x3fee26(0x213)],'cl':{'rgb':_0x373ebe['shapeText'][_0x3fee26(0x237)]},..._0x66991d},'textModel':_0x144659?{'ha':_0x144659['ha']??_0x365b63[_0x3fee26(0x215)],'va':_0x144659['va']??_0x2c7292['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x373ebe[_0x3fee26(0x233)],'defaultGradientEndColor':_0x373ebe[_0x3fee26(0x1c1)],'defaultStrokeColor':_0x373ebe[_0x3fee26(0x101)],'extensionGroups':_0x1af668[_0x3fee26(0x171)],'onUpdateShapeData':(_0x3fe33b,_0x44fe7f)=>{jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,_0x3fe33b,_0x44fe7f),_0x44fe7f&&_0x16cebb(_0x44fe7f);},'onUpdateText':_0x24b03a,'onOpenPanel':()=>{const _0x455bcb=_0x3fee26;_0x2c8a6a[_0x455bcb(0x1a6)](pr['id'],{'unitId':_0x3f0100,'subUnitId':_0x3e0784,'drawingId':_0x153b7b});},'onDelete':()=>{const _0x4f18d1=_0x3fee26;_0x2c8a6a[_0x4f18d1(0x1a6)](_0x251e45['id'],{'unitId':_0x3f0100,'drawings':[{'unitId':_0x3f0100,'subUnitId':_0x3e0784,'drawingId':_0x153b7b,'drawingType':_0x2b6877}]});}}),_0x1af668[_0x3fee26(0xe1)]]});}var Cr=class extends _0x3ba2e2{constructor(..._0x474db1){const _0x57a417=_0x25219a;super(..._0x474db1),Y(this,'_editingParams$',new _0x5935cd(null)),Y(this,'editingParams$',this[_0x57a417(0x219)][_0x57a417(0x2a9)]()),Y(this,'_onSavingEditorData$',new _0x5935cd(!0x1)),Y(this,_0x57a417(0x2fe),this['_onSavingEditorData$']['asObservable']());}[_0x25219a(0x259)](){const _0xee9b89=_0x25219a;this['_editingParams$'][_0xee9b89(0x32d)](null),this['_editingParams$'][_0xee9b89(0x139)](),this['_onSavingEditorData$'][_0xee9b89(0x32d)](!0x1),this['_onSavingEditorData$'][_0xee9b89(0x139)](),super[_0xee9b89(0x259)]();}['setEditing'](_0x38a5e1){const _0x4d36c0=_0x25219a;this[_0x4d36c0(0x219)][_0x4d36c0(0x32d)](_0x38a5e1),_0x38a5e1??this[_0x4d36c0(0x16a)]['next'](!0x1);}[_0x25219a(0x108)](_0xe32fb9){const _0x1b1541=_0x25219a;this['_onSavingEditorData$'][_0x1b1541(0x32d)](_0xe32fb9);}[_0x25219a(0x1d8)](){const _0x100c17=_0x25219a;return this['_editingParams$'][_0x100c17(0x2da)]();}[_0x25219a(0x28e)](_0x39905f){const _0x4aa94c=_0x25219a;this[_0x4aa94c(0x1d8)]()&&(this[_0x4aa94c(0x108)](!0x0),requestAnimationFrame(()=>{const _0x4c95ad=_0x4aa94c;this[_0x4c95ad(0x2cd)](null);}));}[_0x25219a(0x130)](){const _0x7559b9=_0x25219a;this[_0x7559b9(0x1d8)]()&&this[_0x7559b9(0x2cd)](null);}};const wr=_0x1b8447(()=>{const _0x5b732=_0x25219a;let _0x7c7d52=_0x456f39(Cr),_0x9a8c59=_0x456f39(_0x6985f7),_0x28d913=_0x456f39(_0x492363),_0xfef68e=_0x456f39(_0x16d336),_0x4d68c5=_0x456f39(_0x471989);return _0x5c23f7(_0x425f99,{'adapter':_0x4a6e48(()=>({'getShapeModel':(_0x221fb8,_0x57f48e,_0x5c8704)=>_0x9a8c59['getShapeModel'](_0x221fb8,_0x57f48e,_0x5c8704),'getShapeData':(_0x3fc70e,_0x2c6bed,_0x551659)=>_0x9a8c59[_0x5b732(0x137)](_0x3fc70e,_0x2c6bed,_0x551659),'getDrawingTransform':(_0x4e1213,_0x544dd9,_0x52c4c3)=>{const _0x96779a=_0x5b732;let _0x10677a=_0x28d913[_0x96779a(0x30c)]({'unitId':_0x4e1213,'subUnitId':_0x544dd9,'drawingId':_0x52c4c3});return _0x10677a==null?void 0x0:_0x10677a[_0x96779a(0x298)];},'updateShapeText':({unitId:_0x214697,subUnitId:_0xf95011,shapeId:_0x3c8407,shapeText:_0x2f4e19,oldShapeText:_0xad9658})=>{_0xfef68e['executeCommand'](An['id'],{'unitId':_0x214697,'subUnitId':_0xf95011,'shapeId':_0x3c8407,'shapeData':{'shapeText':_0x2f4e19},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xad9658}}});},'updateHostSize':({unitId:_0x5564ec,subUnitId:_0x532a1e,shapeId:_0x3d03c7,width:_0x2406b1,height:_0x4ce79f})=>{const _0x4c1862=_0x5b732;var _0x5f3e62;let _0x2859d4=_0x28d913[_0x4c1862(0x30c)]({'unitId':_0x5564ec,'subUnitId':_0x532a1e,'drawingId':_0x3d03c7}),_0x2d0d69=_0x2859d4==null?void 0x0:_0x2859d4['transform'];if(!_0x2859d4||!_0x2d0d69)return;let _0x1c7f66={..._0x2d0d69,'width':_0x2406b1,'height':_0x4ce79f},_0x1a4a20=(_0x5f3e62=_0x4d68c5[_0x4c1862(0x1dd)](_0x5564ec))==null||(_0x5f3e62=_0x5f3e62[_0x4c1862(0xe3)](_0x319c9a)['getSkeletonParam'](_0x532a1e))==null?void 0x0:_0x5f3e62[_0x4c1862(0x206)],_0x672f58=_0x1a4a20?_0x2b6fe(_0x1c7f66,_0x1a4a20)??_0x2859d4[_0x4c1862(0x2a1)]:_0x2859d4[_0x4c1862(0x2a1)],_0x3d5242=_0x1a4a20?_0x1cbaab(_0x1c7f66,_0x1a4a20)??_0x2859d4[_0x4c1862(0x28d)]:_0x2859d4[_0x4c1862(0x28d)];_0xfef68e['executeCommand'](_0x22957d['id'],{'unitId':_0x5564ec,'drawings':[{..._0x2859d4,'transform':_0x1c7f66,'sheetTransform':_0x672f58,'axisAlignSheetTransform':_0x3d5242}]});},'allowHostSizeShrink':({unitId:_0xba2141,subUnitId:_0x1f4b08,shapeId:_0x4397f1})=>_0x26e8db(_0x9a8c59[_0x5b732(0x137)](_0xba2141,_0x1f4b08,_0x4397f1))}),[_0xfef68e,_0x28d913,_0x4d68c5,_0x9a8c59]),'editingService':_0x7c7d52,'editorUnitId':Gn,'positionOptions':_0x4a6e48(()=>({'viewportKeys':{'main':_0x3ce6e8[_0x5b732(0x302)],'leftTop':_0x3ce6e8[_0x5b732(0x33b)],'top':_0x3ce6e8[_0x5b732(0x26c)],'left':_0x3ce6e8[_0x5b732(0x13c)]},'getSkeleton':(_0x59ac51,_0x59dc3e)=>{const _0x4ac485=_0x5b732;var _0xf4ff0f;return((_0xf4ff0f=_0x59ac51[_0x4ac485(0xe3)](_0x319c9a)[_0x4ac485(0x212)](_0x59dc3e['subUnitId']))==null?void 0x0:_0xf4ff0f['skeleton'])??null;}}),[])});});let Tr=class extends _0x3ba2e2{constructor(_0x3d45c0,_0x4ff01f){const _0xc2b9e4=_0x25219a;super(),this[_0xc2b9e4(0x153)]=_0x3d45c0,this['_iconManager']=_0x4ff01f,this[_0xc2b9e4(0x2f5)](),this[_0xc2b9e4(0x31f)]();}[_0x25219a(0x2f5)](){const _0x53f179=_0x25219a;this[_0x53f179(0x2bd)]['has'](_0x53f179(0xdc))||this[_0x53f179(0x1b1)](this['_iconManager'][_0x53f179(0x207)]({'ObjectLayersIcon':_0x2f5e4b})),this['_iconManager'][_0x53f179(0x135)](_0x53f179(0x10c))||this[_0x53f179(0x1b1)](this[_0x53f179(0x2bd)][_0x53f179(0x207)]({'FlipHorizontalIcon':_0x600924})),this[_0x53f179(0x2bd)][_0x53f179(0x135)](_0x53f179(0x169))||this[_0x53f179(0x1b1)](this['_iconManager']['register']({'FlipVerticalIcon':_0x9a7643}));}['_registerComponents'](){const _0x4fc160=_0x25219a;this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)]['register'](Hn,br)),this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](Un,_r)),this['disposeWithMe'](this['_componentManager'][_0x4fc160(0x207)](Yn,er)),this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Xn,Qn)),this['_componentManager'][_0x4fc160(0x23e)](_0x145ec1)||this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](_0x145ec1,$n)),this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Wn,xr)),this['disposeWithMe'](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Kn,_0x34b768)),this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](_0x4fc160(0x267),wr));}};Tr=Z([X(0x0,_0x396ece(_0x21a48b)),X(0x1,_0x396ece(_0x15a7ad))],Tr);function _0x5f35(){const _0x7e036e=['formulaPresentation','initShapePopupMenu','remove$','clearControl$','drawingId','animationEnabled','_getDrawingRect','getShapeTextRect','SELECTOR','_clearPopups','getShapeTextData','_disposePopups','isRender','pluginName','_commandService','setEditing','selectable','setAdjustValueByName','startArrow','pushUndoRedo','getConnectionInfo','_shapeFormulaService','_index','sqrt','order','cxnPointStroke','_initCopyPaste','_sheetInterceptorService','getValue','extraProps','Rect','getCurrentLastSelection','connector-handler-','_configService','_isStartAdjusting','clearAdjustControls','_urlImageService','custom','srcRect','getDrawingEffectBounds','_drawRichText','PRINTING_COMPONENT_COLLECT','setFormulaPresentation','setHighlighted','getAdjustNames','attachPopupToObject','_sheetBasicShapeConnectionPointController','_baseShapeWidth','copyType','_isDrawingShapePointDown','onDblclick$','_baseWidth','onReady','draw','backward','_registerIcons','setShapeProps','_drawSimpleText','cxnIndex','MEDIA','getBentTypeFromPoints','registerClipDelegate','onPointerUp$','12TrePDB','onSavingEditorData$','changeShapeType','_activeImageId','sheets-shape-ui.flipVertical','VIEW_MAIN','startY','SolidFill','setPrstGeomAdjValues','_initEditingParams','getBatchAddOp','_connectionSiteObjects','_updateTransform','worldPoint','BUTTON','getDrawingByParam','_hasReset','_commandExecutedListener','_shapeTextEditingService','getZoomRatio','create','INSERT','changeEnd$','_getScrollInfo','_registerMoveHandler','_context','applyPoint','CROSSHAIR','_executeConnectedRouteConnectionCommand','type','shape-text-','scale','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getTransformer','_registerComponents','open','object','5918lJsOOl','UPDATE','OPERATION','editingParams$','52661EtVAdQ','stringify','sheet.image-clip.shape-picker.component','_sheetDrawingService','CUT','renderDrawingShape','syncExecuteCommand','next','name','size','getSheetBySheetId','_handleConnectorPointerUp','_handleBasicShapeUpdateConnectorLineShape','_subUnitId','5360223PvMkWA','value','parse','getDrawingOrder','_isConnecting','featurePluginUpdateNotification','resize','VIEW_MAIN_LEFT_TOP','_resetState','sheets-shape-ui.imagePanel.crop.shape','clip','_formulaAnimation','add$','permissionCheckWithoutRange','_drawRichTextLayer','2885UKumCy','adjustValues','_isImagePointerDown','interceptor','DRAWING_IMAGE','_clearConnectionSites','ObjectLayersIcon','calculate','getCurrentSkeleton','_lastEditingShapeKey','SHAPE_TEXT','panel','normal','with','image-clip-adjust-point-','COMMAND','addObject','_applyFormulaAutoFitSize','sheet.shape.object-list.panel','close','setSrcRect','11qHPtDr','SHAPE','sheets-shape-ui.objectListPanel.open','rotation','restore','packageName','_handleFreeEndpointMove','refreshFormulaPresentation','_transform','sheet.command.update-shape-data','_baseShapeHeight','sheet.operation.open-sheet-shape-format-panel','symbol','endConnectionDetection','_highlightedSiteIndex','enableObjectsEvent','setCursor','push','transformByState','_univerInstanceService','_initSheetChange','getBasicShapeRelation','stroke','shapeText','_insertShapes','_sidebarService','_handleFreeEndpointPointerUp','clip-adj-','sheet.shape.text.float-menu','setOnSavingEditorData','_executeResizeCommand','start','refreshAdjustControls','FlipHorizontalIcon','updateShapeFillImage','set','setCanUseShapeClip','isRenderLinePointsMode','map','_setTransForm','actualHeight','offsetY','contentVerticalOffset','clipByShape','_getConnectionSiteAngle','clipTop','add','sheets-shape-ui.permission.editErr','prstGeom','disableShapeOption','setPresentation','getUnit','width','Line','addClipboardHook','highlighted','createControl$','_sheetsShapeService','isDrawingObject','updateConnectionDetection','getImage','buildClipPath','prototype','PictureFill','getDrawingOKey','forward','attachTransformerTo','#1a73e8','keys','cancelEditing','onPointerMove$','_registerDrawingFocusChangeHandler','slice','_loadShapePictureFill','has','cxnPointStrokeWidth','getShapeDataById','worldRect','complete','unregister','isHighlighted','VIEW_MAIN_LEFT','endArrow','_shapeId','doc','_currentUniverService','DEFAULT_PASTE','_config','_baseShapeTop','resetCursor','_renderManagerService','_formulaKey','648ESKvOp','_insertingShapeKeys','startConnectionDetection','getBatchUpdateOp','_imageIoService','call','_clearShapeConnectorHandlerObjects','presentationChanged$','getAllUnitsForType','blockExecuteWithoutPermission','unitId','_groupCopyPasteController','_componentManager','makeDirty','changing$','_executeConnectionCommand','_addShapeConnectorHandlerObject','getCurrentScrollState','_baseTop','unsubscribe','getObjectIncludeInGroup','multiply','setConfig','_getShapeInfo','_loadAndSetImage','hidden','oKey','forEach','_imageShapeClipController','debounceRefreshControls','_currentConnectionTarget','_createShapeAdjustControls','32333743vszyfm','_drawingAddListener','FlipVerticalIcon','_onSavingEditorData$','_adjHandlerPointerUp','_activeShapeModel','localToWorld','getShapeType','adjHandleStroke','point','extensionGroups','_getSceneAndTransformerByDrawingSearch','save','rect','getConnectorLinePoints','invert','dataModel','fillType','_baseShapeLeft','params','transformForAngle','pipe','objects','pick','shapeKey','calcAdjValues','fillImageSource','iterator','_draw','_attachConnectorObjectEvent','_drawShapeText','_updateImageAdjValues','_updateAdjustControlPositions','disableObjectsEvent','addImageSourceCache','translateWithPrecision','onTransformChange$','sheetViewStartColumn','getActiveSheet','onPointerDown$','abs','function','getSheetId','getDrawingDataForUnit','stopPropagation','sheets-shape-ui.flipHorizontal','_renderWithCache','_disposed','_updateSrcRectByTransform','getDrawingSearch','_addShapeAdjustControl','_rerouteConnectorLine','scene','prstGeomAdjValues','_sidebarDisposable','sectionCanvas','getAdjustValueByName','translate','16nEVEOE','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','flipY','_getOrCreateShapeModel','subscribe','executeCommand','fillImageSourceType','clone','_sheetShapeAdjustController','_getZoomRatio','subscribeEvent','getCurrentTypeOfUnit$','sheet.command.menu-insert-shape','adjName','_initSelection','reduce','disposeWithMe','worldPoints','1352140NUJlFc','_findNearestConnectionSite','_adjName','_sheetSkeletonService','UNIVER_DOC','_shapeRenderController','sheet.shape.picker.component','getAutoFitPresentations','_connectorObjects','getAdjustInfoByName','_calculateFreeEndpointAngle','_isHighlighted','adjHandleSize','visible','gradientEndColor','clearAdjustValue','_currentScene','sheets-shape-ui.objectListPanel.title','_unitId','formulaBinding','shapeType','values','isHitLine','resourceCollector','_reset','sheetViewStartRow','getUnitId','wrapStrategy','_updateShapeAdjustControls','clipHeight','OTHERS','setFillImage','delete','getRealBound','_isOpenedShapeEditPanel','getImageSourceCache','getStartConnectInfo','getEditing','_getShapeAdjustInfosById','clear','Medium','@univerjs-pro/sheets-shape-ui','getRenderUnitById','sheet.menu.shape.flip-vertical','removeLinePoints','_generatePasteMutations','_activeShapeAdjustPointList','setShapeData','_isStartConnectorPoint','intercept','1.0.0-beta.0','isRichText','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','top','_contextService','cxnPointRadius','getState','trim','_handleConnectedEndpointMove','sheets-shape-ui','sheet.shape.edit.panel','_localeService','_openShapeEditPanel','_initializedShapePopupMenu','setPrstGeom','getShapeModel','REMOVE','isInGroup','computeStraightConnectorLayout','getSelectedObjectMap','isHorizontal','getScene','_focusedDrawings','sin','GROUP','_activeAdjustPointList','vertical','_initPermission','getConnectionSiteList','constructor','_drawingType','_closeShapeEditPanel','_cxtHandlerPointerUp','skeleton','register','canvas','_transformCalculateSrcRect','indexOf','onload','ancestorTransform','contentHeight','registerFeaturePasteHook','reverse','_addShapeConnectorHandlerObjects','DRAWING','getSkeletonParam','fontSize','cos','LEFT','string','getActualSize','getShapeTypeById','_editingParams$','getFocusDrawings','124239pSjLpK','_init','onRendered','onerror','subUnitId','shape-adjust-point-','setShouldShowAdjust','title','_cxnIndex','decorate','_showConnectionSites','_sheetCanvasPopManagerService','_registerOperations','getCurrentUnitOfType','text','updateLinePoints','_isShouldShowDrawingShapeAdjust','update$','getSkeleton','_menuManagerService','_adjHandlerPointerMove','drawWith','_registerDrawingMoveHandler','_sheetClipboardService','fill','image','registerRenderModule','_sheetPrintInterceptorService','color','adjHandleFill','_targetShapeId','_executeConnectedRouteResizeCommand','getShapeData','_activeAdjustInfo','undo','get','div','getInterceptPoints','horizontal','left','UNIVER_SHEET','_initEvents','18HAmDXV','marginTop','_baseDrawingRect','_clearControls','interceptCommand','onCommandExecuted','viewportScrollY','find','clip-','version','getBatchRemoveOp','focus$','defineProperty','_getImagePrstGeom','getTransformerByCreate','_clipService','changeStart$','updateContext','_findShapeAtPoint','getMatrix','dispose','shapeId','popup','DRAWING_SHAPE','_activeShapeId','StraightConnector1','setContextValue','_getShapeAdjustPointListById','ang','_shapeService','activeSheet$','sheet.shape.floating-toolbar','from','_clearShapeAdjustControls','SheetShapeTextEditorContainer','_copyInfo','startX','_sheetDrawingShapeRenderController','parent','VIEW_MAIN_TOP','classType','angle','_initPrinting','height','_drawingRenderService','_attachAdjustEvent','getDrawingPoints','11226Acfqet','flipX','computeConnectorResizeLayout','entries','index','render','length','getEndConnectInfo','cxnPointFill','_shapes','_initialize','focusDrawing','_getConnectPointInfo','_injector','_createControls','sheets-shape-text-','_drawingManagerService','registerCommand','_baseLeft','lineShapeId','_initMenu','isArray','getObject','_generateCutPasteMutations','getParent','axisAlignSheetTransform','completeEditing','_createCopyInfoByRange','sheets-shape-ui.formatShape','filter','None','default','_popupMenuListener','_props','getDrawingData','_baseHeight','transform','_registerGroupFeaturePasteHook','connection-site-','getPresentation','SHEET_SHAPE_UI_PLUGIN','_registerFocusChangeHandler','_createShapePopupMenu','description','Arrow','sheetTransform','updateDocumentDataMargin','_activeShapeInfo','targetShapeId','_handleConnectedEndpointPointerUp','_initCommands','relation','isEditing','asObservable','_shapeEditPanelVersion','_activeTargetShapeId','shapeModel','isStartConnectorPoint','shapeData','lineType','data','includes','_formulaShapes','drawingType','_addControl','initTransformer','_registerImageShapeClipDelegate','strokeWidth','_draggingConnectorId','_getImageDrawingInfo','refreshShapeFillImage','Large','isLineShape','_iconManager'];_0x5f35=function(){return _0x7e036e;};return _0x5f35();}let Er=class extends _0x3ba2e2{constructor(_0x305edd,_0x5a69d9,_0xea83b0,_0x1cdfbd,_0x3e5369){const _0x5dd389=_0x25219a;super(),this['_context']=_0x305edd,this['_drawingManagerService']=_0x5a69d9,this[_0x5dd389(0x145)]=_0xea83b0,this[_0x5dd389(0xfe)]=_0x1cdfbd,this[_0x5dd389(0x163)]=_0x3e5369,Y(this,_0x5dd389(0x300),null),Y(this,_0x5dd389(0x1c5),null),Y(this,'_subUnitId',null),Y(this,_0x5dd389(0x1fe),void 0x0),Y(this,_0x5dd389(0x27d),[]),Y(this,_0x5dd389(0x286),0x0),Y(this,_0x5dd389(0x159),0x0),Y(this,_0x5dd389(0x2f1),0x0),Y(this,'_baseHeight',0x0),Y(this,_0x5dd389(0x2e0),!0x1),Y(this,_0x5dd389(0x23c),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x5dd389(0x22f),void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x5dd389(0x345),!0x1),this[_0x5dd389(0x29d)](),this[_0x5dd389(0x315)]();}[_0x25219a(0x2e1)](){const _0x112421=_0x25219a;this[_0x112421(0x248)]();}['refreshAdjustControls'](){const _0x28c5cd=_0x25219a;this['_clearControls'](),this[_0x28c5cd(0x282)](!0x0);}['_getOrCreateShapeModel'](_0x4a204a,_0x1a30d1,_0x44d999,_0x2a0c63){const _0x15b5c2=_0x25219a;let _0xaf2b1d=_0x4a204a;if(_0xaf2b1d!==_0x6bfff9[_0x15b5c2(0x292)]&&_0x4a204a!=='custom')try{let _0x4d3484=new _0x57cb5b(_0xaf2b1d,_0x15b5c2(0x106)+_0x4a204a);return _0x2a0c63&&_0x4d3484[_0x15b5c2(0x1e2)]({'adjustValues':_0x2a0c63},!0x0),_0x4d3484['updateContext']({'width':_0x1a30d1,'height':_0x44d999}),_0x4d3484;}catch{return;}}[_0x25219a(0x2b9)](_0x26dde0,_0x57a62e,_0x32b415){const _0x5a3764=_0x25219a;let _0x485a11={'unitId':_0x26dde0,'subUnitId':_0x57a62e,'drawingId':_0x32b415},_0x2c73a0=this[_0x5a3764(0x284)]['getDrawingByParam'](_0x485a11);if(!(!_0x2c73a0||_0x2c73a0['drawingType']!==_0x161136[_0x5a3764(0xda)]))return _0x2c73a0;}[_0x25219a(0x252)](_0x42b8a9,_0x2c7a07,_0x1ba999){const _0x38de81=_0x25219a;let _0x387667=this[_0x38de81(0x145)][_0x38de81(0x1dd)](_0x42b8a9);if(!_0x387667)return;let {scene:_0x4ae30e}=_0x387667,_0x4cc9af=_0x566164({'unitId':_0x42b8a9,'subUnitId':_0x2c7a07,'drawingId':_0x1ba999}),_0x586526=_0x4ae30e[_0x38de81(0x28a)](_0x4cc9af);if(_0x586526 instanceof _0x8d12f0){let _0x4c40b0=_0x586526[_0x38de81(0x11b)];if(_0x4c40b0)return{'prstGeom':_0x4c40b0,'adjustValues':_0x586526[_0x38de81(0x19c)]};}}[_0x25219a(0x282)](_0x201de9=!0x1){const _0x59654b=_0x25219a;if(!this[_0x59654b(0x1c5)]||!this['_subUnitId']||!this[_0x59654b(0x300)])return;let _0x1bb7b3=this['_renderManagerService'][_0x59654b(0x1dd)](this[_0x59654b(0x1c5)]);if(!_0x1bb7b3||!_0x1bb7b3[_0x59654b(0xe3)](_0x319c9a)[_0x59654b(0xde)]())return;let {scene:_0xf42e70}=_0x1bb7b3,_0x50fcc5=this['_getImageDrawingInfo'](this[_0x59654b(0x1c5)],this['_subUnitId'],this['_activeImageId']);if(!_0x50fcc5)return;let {transform:_0x3dd484}=_0x50fcc5;if(!_0x3dd484)return;let {left:_0x4b1cf9,top:_0x3eb705,width:_0x37e86,height:_0x554b90,flipX:_0x3e7e1f,flipY:_0x30c71e,angle:_0xc2ae60=0x0}=_0x3dd484;if(_0x4b1cf9===void 0x0||_0x3eb705===void 0x0)return;let _0x2e147b=this[_0x59654b(0x252)](this[_0x59654b(0x1c5)],this['_subUnitId'],this['_activeImageId']);if(!_0x2e147b)return;if(_0x201de9){let _0xf31665=this[_0x59654b(0x1a4)](_0x2e147b['prstGeom'],_0x37e86||0x0,_0x554b90||0x0,_0x2e147b[_0x59654b(0x344)]);if(!_0xf31665)return;this[_0x59654b(0x1fe)]=_0xf31665[_0x59654b(0x273)]();}let _0x555f94=this['_activeAdjustPointList'];if(!(!_0x555f94||_0x555f94[_0x59654b(0x27a)]===0x0))for(let _0x22e60a=0x0;_0x22e60a<_0x555f94[_0x59654b(0x27a)];_0x22e60a++){let _0x2935e9=_0x555f94[_0x22e60a],_0x1a9454=_0x2935e9['x'],_0x1b8c97=_0x2935e9['y'];if(_0x3e7e1f&&(_0x1a9454=(_0x37e86||0x0)-_0x1a9454),_0x30c71e&&(_0x1b8c97=(_0x554b90||0x0)-_0x1b8c97),_0xc2ae60!==0x0){let _0x385474=(_0x37e86||0x0)/0x2,_0x4b8fd0=(_0x554b90||0x0)/0x2,_0x2ac99e=_0xc2ae60*Math['PI']/0xb4,_0x46f502=Math[_0x59654b(0x214)](_0x2ac99e),_0x2e47ee=Math[_0x59654b(0x1fc)](_0x2ac99e),_0x5a2aa6=_0x1a9454-_0x385474,_0xc11d4e=_0x1b8c97-_0x4b8fd0;_0x1a9454=_0x385474+(_0x5a2aa6*_0x46f502-_0xc11d4e*_0x2e47ee),_0x1b8c97=_0x4b8fd0+(_0x5a2aa6*_0x2e47ee+_0xc11d4e*_0x46f502);}let _0x388a6b={'x':_0x1a9454,'y':_0x1b8c97,'adjName':_0x2935e9['adjName']};this[_0x59654b(0x2b4)](_0xf42e70,_0x388a6b,_0x388a6b[_0x59654b(0x1ae)],_0x4b1cf9,_0x3eb705,this[_0x59654b(0x1c5)],this[_0x59654b(0x333)]);}}[_0x25219a(0x2b4)](_0x480ff2,_0x3abd88,_0x74be83,_0x3d98a9,_0x885332,_0x43a558,_0x3c967e){const _0x2bcdce=_0x25219a;if(!this[_0x2bcdce(0x300)])return;let _0x5b1a94=_0x2bcdce(0xe4)+this[_0x2bcdce(0x300)]+'-'+_0x74be83,_0x294371=_0x480ff2[_0x2bcdce(0x15b)](_0x5b1a94);if(_0x294371){_0x294371[_0x2bcdce(0xfd)]({'left':_0x3abd88['x']+_0x3d98a9-_0x373ebe[_0x2bcdce(0x1bf)],'top':_0x3abd88['y']+_0x885332-_0x373ebe[_0x2bcdce(0x1bf)]});return;}let _0x12dce2=new Rn(_0x5b1a94,{'left':_0x3abd88['x']+_0x3d98a9-_0x373ebe[_0x2bcdce(0x1bf)],'top':_0x3abd88['y']+_0x885332-_0x373ebe['adjHandleSize'],'adjName':_0x74be83,'shapeId':this[_0x2bcdce(0x300)],'unitId':_0x43a558,'subUnitId':_0x3c967e,'width':_0x373ebe[_0x2bcdce(0x1bf)]+0x8,'height':_0x373ebe[_0x2bcdce(0x1bf)]+0x8,'zIndex':_0x22b4b7+0x1,'evented':!0x0});this['_shapes'][_0x2bcdce(0xfc)](_0x12dce2),this['_attachAdjustEvent'](_0x12dce2,_0x480ff2,_0x74be83),_0x480ff2[_0x2bcdce(0xe6)](_0x12dce2,_0x22b4b7+0x1);}[_0x25219a(0x248)](){const _0x2b2f21=_0x25219a;this['_shapes'][_0x2b2f21(0x27a)]!==0x0&&(this[_0x2b2f21(0x27d)]['forEach'](_0x5d7a01=>_0x5d7a01[_0x2b2f21(0x259)]()),this[_0x2b2f21(0x27d)]=[]);}['_getScrollInfo'](_0x4d2df8,_0x53761b){const _0x202fda=_0x25219a;var _0x147ac4;let _0xf7527={'x':0x0,'y':0x0},_0x2e1edf=this[_0x202fda(0x145)][_0x202fda(0x1dd)](_0x4d2df8);if(!_0x2e1edf||!_0x2e1edf[_0x202fda(0xe3)](_0x319c9a)[_0x202fda(0x22d)](_0x53761b))return _0xf7527;let _0x151e9f=_0x2e1edf['with'](_0x22e443),_0x137243=_0x151e9f==null?void 0x0:_0x151e9f[_0x202fda(0x158)]();if(!_0x137243)return _0xf7527;let _0x70b087=(_0x147ac4=this[_0x202fda(0xfe)][_0x202fda(0x11e)](_0x4d2df8))==null?void 0x0:_0x147ac4[_0x202fda(0x330)](_0x53761b);if(!_0x70b087)return _0xf7527;let _0x34ca1a=_0x4f0d4b(_0x137243['sheetViewStartRow'],_0x137243[_0x202fda(0x18c)],_0x2e1edf['scene'],_0x70b087);return _0x34ca1a?{'x':_0x34ca1a['viewportScrollX'],'y':_0x34ca1a[_0x202fda(0x24b)]}:_0xf7527;}[_0x25219a(0x1aa)](_0x4f52a4,_0x54743c){const _0x2ebc0f=_0x25219a;var _0x178b4a;let _0x53d5ce=(_0x178b4a=this[_0x2ebc0f(0xfe)][_0x2ebc0f(0x11e)](_0x4f52a4))==null?void 0x0:_0x178b4a[_0x2ebc0f(0x330)](_0x54743c);return(_0x53d5ce==null?void 0x0:_0x53d5ce[_0x2ebc0f(0x310)]())??0x1;}[_0x25219a(0x272)](_0x4c9e12,_0x1aead9,_0x4bdc8f){const _0x55ef81=_0x25219a;this[_0x55ef81(0x1b1)](_0x2388cf(_0x4c9e12[_0x55ef81(0x18e)][_0x55ef81(0x1ab)]((_0x514095,_0x430f27)=>{const _0x3ab918=_0x55ef81;var _0x188552,_0x4dbb1a,_0x4a9755;let {unitId:_0x30249b,subUnitId:_0x349bcc,drawingId:_0x50d562}=_0x4c9e12[_0x3ab918(0x198)](),_0x2f1790=this[_0x3ab918(0x2b9)](_0x30249b,_0x349bcc,_0x50d562);if(!(_0x2f1790!=null&&_0x2f1790[_0x3ab918(0x298)]))return;let {left:_0x121521,top:_0x333af7,width:_0x2ae224,height:_0x3e7da3}=_0x2f1790[_0x3ab918(0x298)];this[_0x3ab918(0x286)]=_0x121521||0x0,this[_0x3ab918(0x159)]=_0x333af7||0x0,this[_0x3ab918(0x2f1)]=_0x2ae224||0x0,this[_0x3ab918(0x297)]=_0x3e7da3||0x0;let _0x506d86=!!((_0x188552=_0x2f1790[_0x3ab918(0x298)])!=null&&_0x188552[_0x3ab918(0x275)]),_0x2f692a=!!((_0x4dbb1a=_0x2f1790[_0x3ab918(0x298)])!=null&&_0x4dbb1a[_0x3ab918(0x1a3)]),_0xad05aa=((_0x4a9755=_0x2f1790['transform'])==null?void 0x0:_0x4a9755[_0x3ab918(0x26e)])||0x0,_0x20fb96=this[_0x3ab918(0x252)](_0x30249b,_0x349bcc,_0x50d562);if(!_0x20fb96)return;let _0x3d461a=this[_0x3ab918(0x1a4)](_0x20fb96['prstGeom'],this[_0x3ab918(0x2f1)],this[_0x3ab918(0x297)],_0x20fb96[_0x3ab918(0x344)]);if(!_0x3d461a||(this[_0x3ab918(0x16c)]=_0x3d461a,this[_0x3ab918(0x23c)]=_0x3d461a[_0x3ab918(0x1bc)](_0x4bdc8f),!this[_0x3ab918(0x23c)]))return;this[_0x3ab918(0x2e0)]=!0x0,_0x1aead9[_0x3ab918(0x188)]();let _0x51be7c=_0x20fb96['prstGeom'];this['_adjHandlerPointerMove']=_0x1aead9[_0x3ab918(0x131)][_0x3ab918(0x1ab)]((_0x1d1c27,_0x1188c7)=>{const _0x1f64d7=_0x3ab918;if(!this[_0x1f64d7(0x2e0)])return;let {offsetX:_0x53f303,offsetY:_0x29b3cd}=_0x1d1c27,_0x1a5a59=this[_0x1f64d7(0x23c)];if(!this[_0x1f64d7(0x16c)]||!_0x1a5a59)return;_0x1aead9[_0x1f64d7(0x188)](),_0x1aead9[_0x1f64d7(0xfb)](_0x2bcec2[_0x1f64d7(0x318)]);let _0xda560b={'left':0x0,'top':0x0,'width':this[_0x1f64d7(0x2f1)],'height':this[_0x1f64d7(0x297)]},_0x45cd9e=this[_0x1f64d7(0x314)](_0x30249b,_0x349bcc),_0x5855a8=this[_0x1f64d7(0x1aa)](_0x30249b,_0x349bcc),_0x5d98d2=_0x53f303/_0x5855a8+_0x45cd9e['x']-this[_0x1f64d7(0x286)],_0x383337=_0x29b3cd/_0x5855a8+_0x45cd9e['y']-this[_0x1f64d7(0x159)];if(_0xad05aa!==0x0){let _0x44a03d=this[_0x1f64d7(0x2f1)]/0x2,_0x4f20ce=this[_0x1f64d7(0x297)]/0x2,_0xea9447=_0xad05aa*Math['PI']/0xb4,_0x156bf4=Math[_0x1f64d7(0x214)](_0xea9447),_0x21cdbe=Math[_0x1f64d7(0x1fc)](_0xea9447),_0x4134a5=_0x5d98d2-_0x44a03d,_0x408204=_0x383337-_0x4f20ce;_0x5d98d2=_0x44a03d+(_0x4134a5*_0x156bf4+_0x408204*_0x21cdbe),_0x383337=_0x4f20ce+(-_0x4134a5*_0x21cdbe+_0x408204*_0x156bf4);}_0x506d86&&(_0x5d98d2=this[_0x1f64d7(0x2f1)]-_0x5d98d2),_0x2f692a&&(_0x383337=this[_0x1f64d7(0x297)]-_0x383337);let _0x4f368b=this[_0x1f64d7(0x16c)]['calcAdjValues'](_0xda560b,{'x':_0x5d98d2,'y':_0x383337},_0x1a5a59,_0x506d86,_0x2f692a);if(Object[_0x1f64d7(0x12f)](_0x4f368b)[_0x1f64d7(0x27a)]!==0x0){for(let [_0x7ff096,_0x5747c4]of Object['entries'](_0x4f368b))this['_activeShapeModel']['setAdjustValueByName'](_0x7ff096,_0x5747c4);this[_0x1f64d7(0x16c)][_0x1f64d7(0x256)]({'width':this[_0x1f64d7(0x2f1)],'height':this[_0x1f64d7(0x297)]}),this[_0x1f64d7(0x186)](_0x30249b,_0x349bcc,_0x50d562,_0x4f368b),this[_0x1f64d7(0x1fe)]=this[_0x1f64d7(0x16c)][_0x1f64d7(0x273)](),this['_createControls'](),_0x1188c7[_0x1f64d7(0x193)]();}}),this[_0x3ab918(0x16b)]=_0x1aead9['onPointerUp$'][_0x3ab918(0x1ab)]((_0x4a66f4,_0x268ead)=>{const _0x59a96e=_0x3ab918;if(this[_0x59a96e(0x22f)][_0x59a96e(0x15a)](),this[_0x59a96e(0x16b)][_0x59a96e(0x15a)](),_0x1aead9['resetCursor'](),this[_0x59a96e(0x16c)]){let _0x2b16ae=this[_0x59a96e(0x16c)][_0x59a96e(0x2ea)](),_0x283d54={};for(let _0x4784c6 of _0x2b16ae){let _0x463944=this[_0x59a96e(0x16c)][_0x59a96e(0x19f)](_0x4784c6);_0x463944!==void 0x0&&(_0x283d54[_0x4784c6]=_0x463944);}this['_imageShapeClipController'][_0x59a96e(0x116)](_0x30249b,_0x349bcc,_0x50d562,_0x51be7c,_0x283d54);}this[_0x59a96e(0x23c)]=void 0x0,this[_0x59a96e(0x16c)]=void 0x0,this[_0x59a96e(0x2e0)]=!0x1,_0x268ead['stopPropagation'](),_0x1aead9[_0x59a96e(0xfa)]();}),_0x430f27[_0x3ab918(0x193)]();})));}[_0x25219a(0x186)](_0x278b96,_0x5241b4,_0x19beb1,_0x2bb77a){const _0x326d9e=_0x25219a;let _0x1f82f8=this['_renderManagerService'][_0x326d9e(0x1dd)](_0x278b96);if(!_0x1f82f8)return;let {scene:_0x1373c7}=_0x1f82f8,_0x3d76ff=_0x566164({'unitId':_0x278b96,'subUnitId':_0x5241b4,'drawingId':_0x19beb1}),_0x8f963c=_0x1373c7['getObject'](_0x3d76ff);if(_0x8f963c instanceof _0x8d12f0){let _0x719e94=_0x8f963c[_0x326d9e(0x19c)]??{};_0x8f963c[_0x326d9e(0x305)]({..._0x719e94,..._0x2bb77a}),_0x8f963c[_0x326d9e(0x154)](!0x0);}}[_0x25219a(0x315)](){const _0x3649ac=_0x25219a;let _0x5035e4=this[_0x3649ac(0xfe)][_0x3649ac(0x1ac)](_0x2e857c[_0x3649ac(0x243)]);this[_0x3649ac(0x1b1)](_0x5035e4[_0x3649ac(0x17c)](_0x54e619(_0x3a1b79=>_0x3a1b79?_0x3a1b79[_0x3649ac(0x263)][_0x3649ac(0x17c)](_0x54e619(_0x18d569=>{const _0x4686f4=_0x3649ac;if(!_0x18d569)return _0x1997e0;let _0x3c452e=_0x3a1b79[_0x4686f4(0x1cd)](),_0x35d714=this['_renderManagerService']['getRenderUnitById'](_0x3c452e),_0x425aad=_0x35d714==null?void 0x0:_0x35d714[_0x4686f4(0x19b)];return _0x425aad?_0x36ada1(_0x425aad):_0x1997e0;})):_0x1997e0))[_0x3649ac(0x1a5)](_0x5674be=>{const _0x5d5f68=_0x3649ac;let _0xfc9346=_0x5674be[_0x5d5f68(0x253)]();this['disposeWithMe'](_0x5674be[_0x5d5f68(0x131)][_0x5d5f68(0x1ab)](()=>{const _0x1162af=_0x5d5f68;this[_0x1162af(0x345)]&&this['_clearControls']();})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x255)][_0x5d5f68(0x1a5)](_0x45d201=>{const _0x209879=_0x5d5f68;let {objects:_0x4627ee}=_0x45d201;if(this[_0x209879(0x282)](),_0x4627ee!==null&&_0x4627ee['size']===0x1){let _0x328e61=_0x4627ee[_0x209879(0x1c8)]()['next']()[_0x209879(0x335)];_0x328e61 instanceof _0x8d12f0&&_0x328e61[_0x209879(0x11b)]&&(this[_0x209879(0x345)]=!0x0);}})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x155)]['subscribe'](()=>{const _0x4709b8=_0x5d5f68;this[_0x4709b8(0x345)]&&this[_0x4709b8(0x248)]();})),this['disposeWithMe'](_0x5674be[_0x5d5f68(0x2fc)][_0x5d5f68(0x1ab)](()=>{const _0x3c2cf6=_0x5d5f68;this[_0x3c2cf6(0x345)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x313)]['subscribe'](()=>{const _0x538486=_0x5d5f68;if(this[_0x538486(0x1c5)]&&this[_0x538486(0x333)]&&this[_0x538486(0x300)]){let _0x37f872=this['_getImagePrstGeom'](this[_0x538486(0x1c5)],this[_0x538486(0x333)],this[_0x538486(0x300)]);if(_0x37f872){var _0x172f6e,_0x57d99e;let _0x43bc6b=this[_0x538486(0x2b9)](this[_0x538486(0x1c5)],this[_0x538486(0x333)],this['_activeImageId']),_0x2a529b=(_0x43bc6b==null||(_0x172f6e=_0x43bc6b[_0x538486(0x298)])==null?void 0x0:_0x172f6e[_0x538486(0x11f)])||0x0,_0x1091f2=(_0x43bc6b==null||(_0x57d99e=_0x43bc6b[_0x538486(0x298)])==null?void 0x0:_0x57d99e[_0x538486(0x270)])||0x0,_0x56b3a2=this[_0x538486(0x1a4)](_0x37f872[_0x538486(0x11b)],_0x2a529b,_0x1091f2,_0x37f872['adjustValues']);_0x56b3a2&&(this[_0x538486(0x1fe)]=_0x56b3a2[_0x538486(0x273)](),this['_clearControls'](),this[_0x538486(0x282)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x37a8fd=_0x25219a;this['disposeWithMe'](this[_0x37a8fd(0x284)][_0x37a8fd(0x250)][_0x37a8fd(0x1a5)](_0x45c5d7=>{const _0x5d4d5b=_0x37a8fd;if(_0x45c5d7[_0x5d4d5b(0x27a)]===0x1){let _0x5bb6af=_0x45c5d7[0x0];if(_0x5bb6af[_0x5d4d5b(0x2b3)]===_0x161136[_0x5d4d5b(0xda)]){let {unitId:_0x46879a,subUnitId:_0x36b1a3,drawingId:_0x15db14}=_0x5bb6af,_0x22d59f=this['_getImagePrstGeom'](_0x46879a,_0x36b1a3,_0x15db14);if(_0x22d59f){var _0x198481,_0x59c817;this[_0x5d4d5b(0x300)]=_0x15db14,this[_0x5d4d5b(0x1c5)]=_0x46879a,this[_0x5d4d5b(0x333)]=_0x36b1a3;let _0x1142a1=this[_0x5d4d5b(0x2b9)](_0x46879a,_0x36b1a3,_0x15db14),_0x43c470=(_0x1142a1==null||(_0x198481=_0x1142a1[_0x5d4d5b(0x298)])==null?void 0x0:_0x198481['width'])||0x0,_0x582f52=(_0x1142a1==null||(_0x59c817=_0x1142a1[_0x5d4d5b(0x298)])==null?void 0x0:_0x59c817[_0x5d4d5b(0x270)])||0x0,_0x64291=this[_0x5d4d5b(0x1a4)](_0x22d59f[_0x5d4d5b(0x11b)],_0x43c470,_0x582f52,_0x22d59f[_0x5d4d5b(0x344)]);_0x64291&&(this[_0x5d4d5b(0x1fe)]=_0x64291[_0x5d4d5b(0x273)]()),this[_0x5d4d5b(0x248)](),this[_0x5d4d5b(0x282)](!0x0);}else this[_0x5d4d5b(0x33c)]();}else this[_0x5d4d5b(0x33c)]();}else this['_resetState']();})),this[_0x37a8fd(0x1b1)](this['_drawingManagerService']['update$'][_0x37a8fd(0x1a5)](_0x230651=>{const _0x41310a=_0x37a8fd;if(_0x230651[_0x41310a(0x27a)]===0x1){let _0x5c5e20=_0x230651[0x0],_0x1c5a9a=this[_0x41310a(0x284)][_0x41310a(0x30c)](_0x5c5e20);(_0x1c5a9a==null?void 0x0:_0x1c5a9a[_0x41310a(0x2b3)])===_0x161136[_0x41310a(0xda)]&&this[_0x41310a(0x300)]===_0x5c5e20[_0x41310a(0x2c2)]&&(this[_0x41310a(0x248)](),this[_0x41310a(0x282)](!0x0));}})),this['disposeWithMe'](this[_0x37a8fd(0x284)]['remove$'][_0x37a8fd(0x1a5)](_0x2950d6=>{const _0x573d84=_0x37a8fd;for(let _0x4df493 of _0x2950d6)this[_0x573d84(0x300)]===_0x4df493['drawingId']&&this[_0x573d84(0x33c)]();}));}[_0x25219a(0x33c)](){const _0x3575b1=_0x25219a;this['_activeImageId']=null,this[_0x3575b1(0x1c5)]=null,this[_0x3575b1(0x333)]=null,this[_0x3575b1(0x1fe)]=void 0x0,this[_0x3575b1(0x248)]();}};Er=Z([X(0x1,_0x492363),X(0x2,_0x396ece(_0x471989)),X(0x3,_0x230412),X(0x4,_0x396ece(Jn))],Er);let Dr=class extends _0x3ba2e2{constructor(_0x5b97f4,_0x11b73c,_0x1da71d,_0x1fec8d){const _0x7c19b0=_0x25219a;super(),this[_0x7c19b0(0xfe)]=_0x5b97f4,this[_0x7c19b0(0x2d9)]=_0x11b73c,this[_0x7c19b0(0x329)]=_0x1da71d,this['_sheetsShapeService']=_0x1fec8d,this[_0x7c19b0(0xff)]();}[_0x25219a(0xff)](){const _0x5544bc=_0x25219a;this['disposeWithMe'](this['_sheetInterceptorService'][_0x5544bc(0x249)]({'getMutations':_0x59b06e=>{const _0x19c594=_0x5544bc;if(_0x59b06e['id']===_0x213d50['id']){let _0x508b6d=_0x4988bb(this[_0x19c594(0xfe)],_0x59b06e[_0x19c594(0x17a)]);if(!_0x508b6d)return{'redos':[],'undos':[]};let {unitId:_0x2f6928,subUnitId:_0x3e25c6}=_0x508b6d,_0x216d8d=this[_0x19c594(0x329)][_0x19c594(0x296)](_0x2f6928,_0x3e25c6),_0x4a7569=Object[_0x19c594(0x1c8)](_0x216d8d)[_0x19c594(0x291)](_0x404f2b=>_0x404f2b['drawingType']===_0x161136[_0x19c594(0x25c)]);if(_0x4a7569[_0x19c594(0x27a)]===0x0)return{'redos':[],'undos':[]};let _0x48c930=[],_0x5887c8=[];for(let _0x3c2180=0x0;_0x3c2180<_0x4a7569[_0x19c594(0x27a)];_0x3c2180++){let _0x27118f=_0x4a7569[_0x3c2180],_0x58c86f=this[_0x19c594(0x124)][_0x19c594(0x1f4)](_0x27118f[_0x19c594(0x151)],_0x27118f[_0x19c594(0x21f)],_0x27118f[_0x19c594(0x2c2)]);if(!_0x58c86f)continue;let {redo:_0x3f3017,undo:_0x240292,objects:_0x2ded47}=this[_0x19c594(0x329)][_0x19c594(0x24f)]([_0x27118f]);_0x48c930['push']({'id':_0x30f07c['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'shapeId':_0x27118f[_0x19c594(0x2c2)]}}),_0x48c930['push']({'id':_0x2118d0['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'type':_0x34c4cd[_0x19c594(0x1f5)],'op':_0x3f3017,'objects':_0x2ded47}}),_0x5887c8[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'type':_0x34c4cd['INSERT'],'op':_0x240292,'objects':_0x2ded47}}),_0x5887c8['push']({'id':_0x55e264['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'shapeId':_0x27118f[_0x19c594(0x2c2)],'shapeType':_0x58c86f[_0x19c594(0x16e)](),'shapeData':JSON[_0x19c594(0x336)](JSON[_0x19c594(0x327)](_0x58c86f[_0x19c594(0x23b)]()))}});}return{'redos':_0x48c930,'undos':_0x5887c8};}else{if(_0x59b06e['id']===_0x4c17f0['id']){let {unitId:_0x1cf358,subUnitId:_0x50def6,targetSubUnitId:_0x299112}=_0x59b06e[_0x19c594(0x17a)];if(!_0x1cf358||!_0x50def6||!_0x299112)return{'redos':[],'undos':[]};let _0x1fbda8=this[_0x19c594(0x329)][_0x19c594(0x296)](_0x1cf358,_0x50def6),_0x4de3ea=Object[_0x19c594(0x1c8)](_0x1fbda8)['filter'](_0x4fc5d0=>_0x4fc5d0[_0x19c594(0x2b3)]===_0x161136['DRAWING_SHAPE']);if(_0x4de3ea[_0x19c594(0x27a)]===0x0)return{'redos':[],'undos':[]};let _0x16b52d=[],_0x3657d7=[];for(let _0x4e012a=0x0;_0x4e012a<_0x4de3ea['length'];_0x4e012a++){let _0x3e4572=_0x4de3ea[_0x4e012a],_0x340aba=this['_sheetsShapeService'][_0x19c594(0x1f4)](_0x3e4572[_0x19c594(0x151)],_0x3e4572['subUnitId'],_0x3e4572[_0x19c594(0x2c2)]);if(!_0x340aba)continue;let _0x456306=_0x44c0e2(),_0x38f18e={..._0x3e4572,'unitId':_0x1cf358,'subUnitId':_0x299112,'drawingId':_0x456306},{redo:_0x2013c7,undo:_0x341e47,objects:_0x245e15}=this[_0x19c594(0x329)][_0x19c594(0x307)]([_0x38f18e]);_0x16b52d[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'type':_0x34c4cd[_0x19c594(0x312)],'op':_0x2013c7,'objects':_0x245e15}}),_0x16b52d[_0x19c594(0xfc)]({'id':_0x55e264['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'shapeId':_0x456306,'shapeType':_0x340aba[_0x19c594(0x16e)](),'shapeData':JSON[_0x19c594(0x336)](JSON[_0x19c594(0x327)](_0x340aba[_0x19c594(0x23b)]()))}}),_0x3657d7[_0x19c594(0xfc)]({'id':_0x30f07c['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'shapeId':_0x456306}}),_0x3657d7[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'type':_0x34c4cd[_0x19c594(0x1f5)],'op':_0x341e47,'objects':_0x245e15}});}return{'redos':_0x16b52d,'undos':_0x3657d7};}}return{'redos':[],'undos':[]};}}));}};Dr=Z([X(0x0,_0x396ece(_0x230412)),X(0x1,_0x396ece(_0x2920c2)),X(0x2,_0x396ece(_0x18f6a9)),X(0x3,_0x396ece(_0x6985f7))],Dr);let Or=class extends _0x3ba2e2{constructor(_0x22c4d9,_0xdfd53b,_0x4f1b40,_0x268f55,_0x17d424){const _0x176a80=_0x25219a;super(),this[_0x176a80(0x316)]=_0x22c4d9,this[_0x176a80(0x30f)]=_0xdfd53b,this[_0x176a80(0x284)]=_0x4f1b40,this[_0x176a80(0x1e9)]=_0x268f55,this['_sheetsShapeService']=_0x17d424,Y(this,_0x176a80(0xdf),null),this[_0x176a80(0x244)](),this[_0x176a80(0x1af)](),this[_0x176a80(0x306)]();}['_initEvents'](){const _0xdc2d1d=_0x25219a;let {scene:_0x905bb6}=this[_0xdc2d1d(0x316)];this[_0xdc2d1d(0x1b1)](_0x905bb6[_0xdc2d1d(0x2f0)][_0xdc2d1d(0x1ab)](_0x5b792e=>{const _0x3d4927=_0xdc2d1d;let {offsetX:_0x150df2,offsetY:_0x32117a}=_0x5b792e,_0x2c2062=_0x905bb6[_0x3d4927(0x17e)](_0x48df4c['FromArray']([_0x150df2,_0x32117a]));if(_0x2c2062 instanceof Ln){let _0x23b9c2=this[_0x3d4927(0x124)][_0x3d4927(0x1f4)](_0x2c2062[_0x3d4927(0x151)],_0x2c2062[_0x3d4927(0x21f)],_0x2c2062[_0x3d4927(0x25a)]);if(_0x23b9c2!=null&&_0x23b9c2['getShapeData']()['formulaBinding']||_0x41a954(this['_sheetsShapeService'][_0x3d4927(0x16e)](_0x2c2062[_0x3d4927(0x151)],_0x2c2062[_0x3d4927(0x21f)],_0x2c2062[_0x3d4927(0x25a)])))return;this['_shapeTextEditingService'][_0x3d4927(0x2cd)]({'visible':!0x0,'unitId':_0x2c2062['unitId'],'subUnitId':_0x2c2062[_0x3d4927(0x21f)],'shapeId':_0x2c2062[_0x3d4927(0x25a)],'shapeKey':_0x2c2062[_0x3d4927(0x161)]});}}));}['_initSelection'](){const _0x2a39f2=_0x25219a;this[_0x2a39f2(0x1b1)](this[_0x2a39f2(0x284)]['focus$'][_0x2a39f2(0x1a5)](_0x4103e6=>{const _0x24f7ab=_0x2a39f2;if(_0x4103e6[_0x24f7ab(0x27a)]===0x1){let _0x22dcf9=_0x4103e6[0x0],_0x197d37=this[_0x24f7ab(0x284)][_0x24f7ab(0x30c)](_0x22dcf9);if((_0x197d37==null?void 0x0:_0x197d37[_0x24f7ab(0x2b3)])===_0x161136['DRAWING_SHAPE']){var _0x463371;let _0xf2018c=this[_0x24f7ab(0x30f)][_0x24f7ab(0x1d8)]();if((_0xf2018c==null?void 0x0:_0xf2018c[_0x24f7ab(0x25a)])===_0x22dcf9[_0x24f7ab(0x2c2)]&&_0xf2018c[_0x24f7ab(0x1c0)])return;let _0x193f37=_0x41a954(this[_0x24f7ab(0x124)][_0x24f7ab(0x16e)](_0x22dcf9['unitId'],_0x22dcf9[_0x24f7ab(0x21f)],_0x22dcf9[_0x24f7ab(0x2c2)])),_0x3a4755=!!((_0x463371=this[_0x24f7ab(0x124)][_0x24f7ab(0x1f4)](_0x22dcf9[_0x24f7ab(0x151)],_0x22dcf9['subUnitId'],_0x22dcf9[_0x24f7ab(0x2c2)]))!=null&&_0x463371[_0x24f7ab(0x23b)]()['formulaBinding']);(_0x193f37||_0x3a4755)&&this[_0x24f7ab(0x30f)][_0x24f7ab(0x2cd)](null);}else this[_0x24f7ab(0x30f)]['getEditing']()&&(this[_0x24f7ab(0x30f)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x4f4bbe=_0x24f7ab;this[_0x4f4bbe(0x30f)]['setEditing'](null);}));}else this[_0x24f7ab(0x30f)][_0x24f7ab(0x1d8)]()&&(this[_0x24f7ab(0x30f)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x133f98=_0x24f7ab;this[_0x133f98(0x30f)][_0x133f98(0x2cd)](null);}));})),this[_0x2a39f2(0x1b1)](this[_0x2a39f2(0x284)][_0x2a39f2(0x2c0)][_0x2a39f2(0x1a5)](_0x3ad7bf=>{const _0x4c731e=_0x2a39f2;let _0xf12787=this[_0x4c731e(0x30f)][_0x4c731e(0x1d8)]();_0xf12787&&_0x3ad7bf['some'](_0x215830=>_0x215830[_0x4c731e(0x2c2)]===_0xf12787[_0x4c731e(0x25a)])&&this[_0x4c731e(0x30f)][_0x4c731e(0x2cd)](null);}));}[_0x25219a(0x306)](){const _0x27e143=_0x25219a;this[_0x27e143(0x1b1)](this['_shapeTextEditingService']['editingParams$'][_0x27e143(0x1a5)](_0x50c32e=>{const _0x4a10ac=_0x27e143;let {scene:_0x2a3351}=this[_0x4a10ac(0x316)];if(this[_0x4a10ac(0xdf)]){let _0x2df355=_0x2a3351[_0x4a10ac(0x15b)](this['_lastEditingShapeKey']);_0x2df355&&_0x2df355[_0x4a10ac(0x2cd)](!0x1);}if(_0x50c32e){let _0x537a0d=!!_0x50c32e[_0x4a10ac(0x1c0)],_0x21ab4d=_0x2a3351[_0x4a10ac(0x15b)](_0x50c32e['shapeKey']);_0x21ab4d&&(_0x21ab4d[_0x4a10ac(0x2cd)](_0x537a0d),this[_0x4a10ac(0xdf)]=_0x50c32e[_0x4a10ac(0x17f)]),this[_0x4a10ac(0x1e9)][_0x4a10ac(0x25f)](_0x5d8f61,_0x537a0d);}else this[_0x4a10ac(0xdf)]=null,this[_0x4a10ac(0x1e9)]['setContextValue'](_0x5d8f61,!0x1);}));}};Or=Z([X(0x1,_0x396ece(Cr)),X(0x2,_0x492363),X(0x3,_0x334f35),X(0x4,_0x396ece(_0x6985f7))],Or);let kr=class extends _0x4f7f46{constructor(_0x24cd6b,_0x2bc379,_0x225f92,_0x5dc4f7){super(_0x24cd6b,_0x2bc379,_0x225f92,_0x5dc4f7,{'componentKey':Kn,'editorUnitId':Gn});}};kr=Z([X(0x1,_0x396ece(_0x3a116c)),X(0x2,_0x396ece(_0x45051f)),X(0x3,_0x396ece(_0x1bed72))],kr);let Ar=class extends _0x3ba2e2{constructor(_0x30f46b,_0x12698c,_0x4766f4,_0x1d2ade,_0x5b7f8e,_0x3cae33){const _0xda95a9=_0x25219a;super(),this['_commandService']=_0x30f46b,this[_0xda95a9(0x145)]=_0x12698c,this[_0xda95a9(0x284)]=_0x4766f4,this[_0xda95a9(0x140)]=_0x1d2ade,this[_0xda95a9(0x271)]=_0x5b7f8e,this[_0xda95a9(0x26a)]=_0x3cae33,Y(this,_0xda95a9(0x148),new Set()),this[_0xda95a9(0x27e)]();}[_0x25219a(0x27e)](){const _0x1f8780=_0x25219a;this[_0x1f8780(0x168)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}[_0x25219a(0x168)](){const _0x546aee=_0x25219a;this['disposeWithMe'](this[_0x546aee(0x284)][_0x546aee(0x340)][_0x546aee(0x1a5)](_0x4f5066=>{this['_insertShapes'](_0x4f5066);}));}[_0x25219a(0x30e)](){const _0x107565=_0x25219a;this[_0x107565(0x1b1)](this[_0x107565(0x2cc)][_0x107565(0x24a)](_0x859cd4=>{const _0x536867=_0x107565;if(_0x859cd4['id']===_0x46a98e['id']){let {unitId:_0x1da3b8,subUnitId:_0x50066c,shapeId:_0x39295e}=_0x859cd4[_0x536867(0x17a)],_0x1c9eb7=this[_0x536867(0x172)](_0x1da3b8),_0x1fa16f=_0x566164({'unitId':_0x1da3b8,'subUnitId':_0x50066c,'drawingId':_0x39295e}),_0x215110=_0x1c9eb7==null?void 0x0:_0x1c9eb7[_0x536867(0x19b)]['getObjectIncludeInGroup'](_0x1fa16f);_0x215110&&(this[_0x536867(0x26a)][_0x536867(0x2ba)](_0x215110),this['_sheetDrawingShapeRenderController']['refreshFormulaPresentation'](_0x215110,{'unitId':_0x1da3b8,'subUnitId':_0x50066c,'shapeId':_0x39295e}),_0x215110['makeDirty'](!0x0));return;}if(_0x859cd4['id']===_0x55e264['id']){var _0x2b1bea;let {unitId:_0x167b00,subUnitId:_0x3cad43,shapeId:_0xc5db1b}=_0x859cd4[_0x536867(0x17a)],_0x326922=this['_getSceneAndTransformerByDrawingSearch'](_0x167b00);if(_0x326922==null)return;let {scene:_0x38a81e}=_0x326922,_0x5d9014=_0x566164({'unitId':_0x167b00,'subUnitId':_0x3cad43,'drawingId':_0xc5db1b}),_0x118f6a=_0x38a81e[_0x536867(0x15b)](_0x5d9014);if(!((_0x2b1bea=this[_0x536867(0x145)]['getRenderUnitById'](_0x167b00))!=null&&_0x2b1bea['with'](_0x319c9a)[_0x536867(0x22d)](_0x3cad43)))return!0x1;if(_0x118f6a)return;this[_0x536867(0x103)]([{'unitId':_0x167b00,'subUnitId':_0x3cad43,'drawingId':_0xc5db1b}]);}}));}['_shapeUpdateListener'](){const _0x59d7d2=_0x25219a;this['disposeWithMe'](this[_0x59d7d2(0x284)][_0x59d7d2(0x22c)]['subscribe'](_0x3e65d7=>{const _0x5c3da3=_0x59d7d2;_0x3e65d7[_0x5c3da3(0x162)](_0x4984d2=>{const _0x4a2618=_0x5c3da3;let {unitId:_0x2c901c,subUnitId:_0xef727c,drawingId:_0x1aa195}=_0x4984d2,_0x249856=this[_0x4a2618(0x284)][_0x4a2618(0x30c)](_0x4984d2);if(_0x249856==null)return;let {transform:_0x440d98,drawingType:_0x1bf87f,srcRect:_0xe55270,prstGeom:_0x5c7153}=_0x249856;if(_0x1bf87f!==_0x161136['DRAWING_SHAPE'])return;let _0x172c1f=this[_0x4a2618(0x172)](_0x2c901c);if(_0x172c1f==null)return;let {scene:_0x2c7eeb,transformer:_0x5cdee5}=_0x172c1f;if(_0x440d98==null)return!0x0;let _0x580298=_0x566164({'unitId':_0x2c901c,'subUnitId':_0xef727c,'drawingId':_0x1aa195}),_0x346b7f=_0x2c7eeb[_0x4a2618(0x15b)](_0x580298);if(_0x346b7f==null)return!0x0;_0x346b7f['setSrcRect'](_0xe55270),_0x346b7f[_0x4a2618(0x1f3)](_0x5c7153);});}));}[_0x25219a(0x103)](_0x570959){const _0x42c7c2=_0x25219a;for(let _0x5b6fdb of _0x570959){var _0x592b13;let {unitId:_0x24dbe7,subUnitId:_0x43c156,drawingId:_0x1d1998}=_0x5b6fdb,_0x46260b=this[_0x42c7c2(0x172)](_0x24dbe7),_0x4538d1=(_0x592b13=_0x19ceb1(this[_0x42c7c2(0x140)],_0x24dbe7))==null?void 0x0:_0x592b13[_0x42c7c2(0x21f)];if(_0x46260b==null||_0x4538d1!==_0x43c156)return;let _0x41923d=_0x566164({'unitId':_0x24dbe7,'subUnitId':_0x43c156,'drawingId':_0x1d1998});if(this[_0x42c7c2(0x148)][_0x42c7c2(0x135)](_0x41923d)||_0x46260b[_0x42c7c2(0x19b)][_0x42c7c2(0x15b)](_0x41923d)!=null)return;let _0x389eda=this[_0x42c7c2(0x284)][_0x42c7c2(0x30c)](_0x5b6fdb);if(_0x389eda==null||_0x389eda['drawingType']!==_0x161136[_0x42c7c2(0x25c)])return;if(_0x41a954((_0x389eda['data']||{})[_0x42c7c2(0x1c7)])){let _0x6de38f=_0x389eda['transform'];_0x6de38f&&(_0x389eda[_0x42c7c2(0x298)]={..._0x6de38f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x42c7c2(0x148)][_0x42c7c2(0x119)](_0x41923d);try{this[_0x42c7c2(0x26a)]['renderDrawingShape'](_0x389eda,_0x46260b[_0x42c7c2(0x19b)]);}finally{this[_0x42c7c2(0x148)][_0x42c7c2(0x1d3)](_0x41923d);}queueMicrotask(()=>{const _0x2f5c04=_0x42c7c2;if(this[_0x2f5c04(0x196)])return;let _0x3d71b4=_0x566164(_0x5b6fdb);if(!_0x46260b[_0x2f5c04(0x19b)][_0x2f5c04(0x15b)](_0x3d71b4))return;let _0x4f8b81=this[_0x2f5c04(0x284)][_0x2f5c04(0x30c)](_0x5b6fdb);_0x4f8b81&&this['_drawingManagerService']['refreshTransform']([_0x4f8b81]);});}}[_0x25219a(0x172)](_0x366788){const _0x3fd5c7=_0x25219a;if(_0x366788==null)return;let _0x62d120=this['_renderManagerService'][_0x3fd5c7(0x1dd)](_0x366788),_0x118f47=_0x62d120==null?void 0x0:_0x62d120[_0x3fd5c7(0x19b)];return _0x118f47==null?null:{'scene':_0x118f47,'transformer':_0x118f47[_0x3fd5c7(0x253)]()};}};Ar=Z([X(0x0,_0x16d336),X(0x1,_0x471989),X(0x2,_0x492363),X(0x3,_0x230412),X(0x4,_0x396ece(_0x214f7e)),X(0x5,_0x396ece(Q))],Ar);function _0x52a4(_0x1f02c0,_0x2d277d){_0x1f02c0=_0x1f02c0-0xda;const _0x5f35cd=_0x5f35();let _0x52a428=_0x5f35cd[_0x1f02c0];return _0x52a428;}const jr={'normal':{'fill':_0x373ebe['cxnPointFill'],'stroke':_0x373ebe[_0x25219a(0x2d7)],'strokeWidth':_0x373ebe['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':_0x25219a(0x12e),'strokeWidth':0x2}};var Mr=class extends _0x1ac658{constructor(_0x36c286,_0x3db3ec){const _0x12f900=_0x25219a;super(_0x36c286,_0x3db3ec),Y(this,_0x12f900(0x239),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x12f900(0x1c5),''),Y(this,_0x12f900(0x333),''),Y(this,_0x12f900(0x1be),!0x1),_0x3db3ec&&this[_0x12f900(0x2f6)](_0x3db3ec);}[_0x25219a(0x2d2)](){const _0x13d0d6=_0x25219a;return{'unitId':this[_0x13d0d6(0x1c5)],'subUnitId':this[_0x13d0d6(0x333)],'shapeId':this[_0x13d0d6(0x239)],'cxnIndex':this[_0x13d0d6(0x223)]};}['setHighlighted'](_0x14fa14){const _0x14f03e=_0x25219a;this[_0x14f03e(0x1be)]!==_0x14fa14&&(this[_0x14f03e(0x1be)]=_0x14fa14,this[_0x14f03e(0x154)](!0x0));}[_0x25219a(0x13b)](){const _0x964b96=_0x25219a;return this[_0x964b96(0x1be)];}[_0x25219a(0x2f6)](_0x1afddf){const _0x51cbd8=_0x25219a;_0x1afddf[_0x51cbd8(0x2a4)]!==void 0x0&&(this[_0x51cbd8(0x239)]=_0x1afddf[_0x51cbd8(0x2a4)]),_0x1afddf['cxnIndex']!==void 0x0&&(this[_0x51cbd8(0x223)]=_0x1afddf[_0x51cbd8(0x2f8)]),_0x1afddf[_0x51cbd8(0x151)]!==void 0x0&&(this[_0x51cbd8(0x1c5)]=_0x1afddf['unitId']),_0x1afddf[_0x51cbd8(0x21f)]!==void 0x0&&(this[_0x51cbd8(0x333)]=_0x1afddf[_0x51cbd8(0x21f)]),_0x1afddf[_0x51cbd8(0x13b)]!==void 0x0&&(this[_0x51cbd8(0x1be)]=_0x1afddf[_0x51cbd8(0x13b)]),this[_0x51cbd8(0xfd)]({'width':_0x1afddf[_0x51cbd8(0x11f)]??_0x373ebe['cxnPointRadius']*0x2,'height':_0x1afddf[_0x51cbd8(0x270)]??_0x373ebe[_0x51cbd8(0x1ea)]*0x2});}[_0x25219a(0x183)](_0x5427a8){const _0x3d0993=_0x25219a;let _0x49a165=this['_isHighlighted']?jr[_0x3d0993(0x122)]:jr[_0x3d0993(0xe2)];_0x18400a[_0x3d0993(0x230)](_0x5427a8,{'radius':_0x373ebe[_0x3d0993(0x1ea)],'fill':_0x49a165[_0x3d0993(0x233)],'stroke':_0x49a165[_0x3d0993(0x101)],'strokeWidth':_0x49a165[_0x3d0993(0x2b7)],'evented':!0x0});}};let Nr=class extends _0x3ba2e2{constructor(_0x39a922,_0x16b51b,_0x201944,_0x17df06){const _0xc6c846=_0x25219a;super(),this[_0xc6c846(0x316)]=_0x39a922,this[_0xc6c846(0x145)]=_0x16b51b,this[_0xc6c846(0x284)]=_0x201944,this['_sheetsShapeService']=_0x17df06,Y(this,_0xc6c846(0x308),[]),Y(this,_0xc6c846(0x2ab),null),Y(this,_0xc6c846(0xf9),-0x1),Y(this,_0xc6c846(0x1c3),null),Y(this,_0xc6c846(0x1c5),''),Y(this,_0xc6c846(0x333),''),Y(this,_0xc6c846(0x2b8),null);}[_0x25219a(0x149)](_0x209ff4,_0x31d5ca,_0x25f24b,_0x5040fb){const _0xadd615=_0x25219a;this[_0xadd615(0x1c3)]=_0x209ff4,this['_unitId']=_0x31d5ca,this['_subUnitId']=_0x25f24b,this[_0xadd615(0x2b8)]=_0x5040fb;}['updateConnectionDetection'](_0x1f3d35){const _0x563ccd=_0x25219a;if(!this[_0x563ccd(0x1c3)])return null;let _0x4023a1=this[_0x563ccd(0x257)](_0x1f3d35);return _0x4023a1?(this[_0x563ccd(0x2ab)]!==_0x4023a1['shapeId']&&(this[_0x563ccd(0xdb)](),this[_0x563ccd(0x225)](_0x4023a1[_0x563ccd(0x25a)],_0x4023a1['shapeModel']),this[_0x563ccd(0x2ab)]=_0x4023a1['shapeId']),this[_0x563ccd(0x1b4)](_0x1f3d35)):(this[_0x563ccd(0x2ab)]!==null&&(this['_clearConnectionSites'](),this['_activeTargetShapeId']=null),null);}[_0x25219a(0xf8)](){const _0x4dedbe=_0x25219a;this['_clearConnectionSites'](),this[_0x4dedbe(0x1c3)]=null,this[_0x4dedbe(0x2ab)]=null,this['_highlightedSiteIndex']=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x156942=_0x25219a;return this[_0x156942(0x2ab)]===null||this[_0x156942(0xf9)]<0x0?null:{'shapeId':this[_0x156942(0x2ab)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x25219a(0x257)](_0x12e031){const _0x104610=_0x25219a;let _0x19409f=this[_0x104610(0x284)]['getDrawingData'](this[_0x104610(0x1c5)],this[_0x104610(0x333)]);for(let _0x175af4 of Object[_0x104610(0x12f)](_0x19409f)){if(_0x175af4===this[_0x104610(0x2b8)]||_0x19409f[_0x175af4]['drawingType']!==_0x161136[_0x104610(0x25c)])continue;let _0x5e74a8=this['_sheetsShapeService'][_0x104610(0x1f4)](this['_unitId'],this[_0x104610(0x333)],_0x175af4);if(!_0x5e74a8||_0x41a954(_0x5e74a8[_0x104610(0x16e)]())||_0x5e74a8[_0x104610(0x201)]()['length']===0x0||!this['_currentScene'])continue;let _0x585301=_0x566164({'unitId':this[_0x104610(0x1c5)],'subUnitId':this[_0x104610(0x333)],'drawingId':_0x175af4}),_0x9ba1a8=this[_0x104610(0x1c3)]['getObjectIncludeInGroup'](_0x585301);if(!_0x9ba1a8)continue;let {left:_0x5df6d9,top:_0x2d5155,width:_0x2115d2,height:_0x58b635}=_0x9ba1a8[_0x104610(0x1d4)](),_0x2571ad=_0x5df6d9+_0x2115d2/0x2,_0x34cb34=_0x2d5155+_0x58b635/0x2,_0x254c89=_0x9ba1a8[_0x104610(0x298)][_0x104610(0x258)](),_0x2fbee4=new _0x34d861([_0x254c89[0x0],_0x254c89[0x1],_0x254c89[0x2],_0x254c89[0x3],_0x2571ad,_0x34cb34]),_0x40d87b=_0x9ba1a8['getParent'](),_0x31f8cc=(_0x9ba1a8[_0x104610(0x1f6)]&&(_0x40d87b==null?void 0x0:_0x40d87b[_0x104610(0x26d)])===_0x4550bb['GROUP']?_0x40d87b[_0x104610(0x20c)][_0x104610(0x15c)](_0x2fbee4):_0x2fbee4)[_0x104610(0x176)]()[_0x104610(0x317)](_0x12e031),_0x41ba95=_0x2115d2/0x2,_0x5c3f03=_0x58b635/0x2;if(_0x31f8cc['x']>=-_0x41ba95-0x5&&_0x31f8cc['x']<=_0x41ba95+0x5&&_0x31f8cc['y']>=-_0x5c3f03-0x5&&_0x31f8cc['y']<=_0x5c3f03+0x5)return{'shapeId':_0x175af4,'shapeModel':_0x5e74a8};}return null;}['_showConnectionSites'](_0x2d7944,_0x35651d){const _0x586874=_0x25219a;if(!this[_0x586874(0x1c3)])return;let _0x4c99ec=_0x566164({'unitId':this['_unitId'],'subUnitId':this[_0x586874(0x333)],'drawingId':_0x2d7944}),_0x3d08ba=this[_0x586874(0x1c3)][_0x586874(0x15b)](_0x4c99ec);if(!_0x3d08ba)return;let {left:_0x1207aa,top:_0x450d62,width:_0x362189,height:_0x4d2993}=_0x3d08ba[_0x586874(0x1d4)](),_0x402e4f=_0x1207aa+_0x362189/0x2,_0x21c4fc=_0x450d62+_0x4d2993/0x2,_0x14368f=_0x3d08ba[_0x586874(0x298)][_0x586874(0x258)](),_0x3e6b62=new _0x34d861([_0x14368f[0x0],_0x14368f[0x1],_0x14368f[0x2],_0x14368f[0x3],_0x402e4f,_0x21c4fc]),_0x468ff7=_0x3d08ba['getParent'](),_0x290060=_0x3d08ba[_0x586874(0x1f6)]&&(_0x468ff7==null?void 0x0:_0x468ff7['classType'])===_0x4550bb[_0x586874(0x1fd)]?_0x468ff7[_0x586874(0x20c)][_0x586874(0x15c)](_0x3e6b62):_0x3e6b62;_0x35651d[_0x586874(0x256)]({'width':_0x362189,'height':_0x4d2993});let _0x384a4d=_0x35651d[_0x586874(0x201)]();for(let _0x40dac8 of _0x384a4d){let _0x567a72=_0x40dac8['x']-_0x362189/0x2,_0x2325d8=_0x40dac8['y']-_0x4d2993/0x2,_0xd5e7d4=_0x290060[_0x586874(0x317)]({'x':_0x567a72,'y':_0x2325d8}),_0x50f494=_0xd5e7d4['x'],_0xfd0804=_0xd5e7d4['y'],_0x4e5a4d=new Mr(_0x586874(0x29a)+_0x2d7944+'-'+_0x40dac8[_0x586874(0x278)],{'left':_0x50f494-_0x373ebe[_0x586874(0x1ea)],'top':_0xfd0804-_0x373ebe['cxnPointRadius'],'targetShapeId':_0x2d7944,'cxnIndex':_0x40dac8[_0x586874(0x278)],'unitId':this[_0x586874(0x1c5)],'subUnitId':this[_0x586874(0x333)],'width':_0x373ebe[_0x586874(0x1ea)]*0x2,'height':_0x373ebe[_0x586874(0x1ea)]*0x2,'zIndex':_0x22b4b7+0x2,'evented':!0x1});this[_0x586874(0x308)]['push'](_0x4e5a4d),this[_0x586874(0x1c3)][_0x586874(0xe6)](_0x4e5a4d,_0x22b4b7+0x2);}}[_0x25219a(0x1b4)](_0x2d5e1b){const _0x2e38fc=_0x25219a;let _0x986d7f=null,_0x5c053c=0x1/0x0,_0x2ec94c=null;for(let _0x277485 of this[_0x2e38fc(0x308)]){let _0x1a0f7a=_0x277485[_0x2e38fc(0x242)]+_0x373ebe[_0x2e38fc(0x1ea)],_0x5adf36=_0x277485['top']+_0x373ebe[_0x2e38fc(0x1ea)],_0x335865=_0x2d5e1b['x']-_0x1a0f7a,_0x2f7d73=_0x2d5e1b['y']-_0x5adf36,_0x3c1d6d=Math[_0x2e38fc(0x2d5)](_0x335865*_0x335865+_0x2f7d73*_0x2f7d73);_0x3c1d6d<_0x5c053c&&(_0x5c053c=_0x3c1d6d,_0x986d7f=_0x277485,_0x2ec94c={'x':_0x1a0f7a,'y':_0x5adf36});}let _0x499ba3=_0x5c053c<=0xa&&_0x986d7f?_0x986d7f['getConnectionInfo']()[_0x2e38fc(0x2f8)]:-0x1;if(_0x499ba3!==this['_highlightedSiteIndex']){for(let _0xf3834e of this['_connectionSiteObjects']){let _0x3115bd=_0xf3834e[_0x2e38fc(0x2d2)]();_0xf3834e[_0x2e38fc(0x2e9)](_0x3115bd[_0x2e38fc(0x2f8)]===_0x499ba3);}this['_highlightedSiteIndex']=_0x499ba3;}if(_0x5c053c<=0xa&&_0x986d7f&&_0x2ec94c){let _0xfa08de=_0x986d7f['getConnectionInfo'](),_0x1a2490=this[_0x2e38fc(0x117)](_0xfa08de[_0x2e38fc(0x25a)],_0xfa08de['cxnIndex']);return{'shapeId':_0xfa08de[_0x2e38fc(0x25a)],'cxnIndex':_0xfa08de['cxnIndex'],'unitId':_0xfa08de[_0x2e38fc(0x151)],'subUnitId':_0xfa08de[_0x2e38fc(0x21f)],'worldPoint':_0x2ec94c,'angle':_0x1a2490};}return null;}[_0x25219a(0x117)](_0x4c0fd4,_0x23870e){const _0x30fc0e=_0x25219a;let _0x52d3b4=this[_0x30fc0e(0x124)]['getShapeModel'](this['_unitId'],this[_0x30fc0e(0x333)],_0x4c0fd4);if(!_0x52d3b4)return 0x0;let _0x55731e=this[_0x30fc0e(0x284)][_0x30fc0e(0x30c)]({'unitId':this[_0x30fc0e(0x1c5)],'subUnitId':this[_0x30fc0e(0x333)],'drawingId':_0x4c0fd4});if(!(_0x55731e!=null&&_0x55731e[_0x30fc0e(0x298)]))return 0x0;let {width:_0x4b2d1b=0x0,height:_0x407df8=0x0,flipX:_0x120ba6=!0x1,flipY:_0x514ff5=!0x1}=_0x55731e[_0x30fc0e(0x298)];_0x52d3b4[_0x30fc0e(0x256)]({'width':_0x4b2d1b,'height':_0x407df8});let _0x3ff231=_0x52d3b4[_0x30fc0e(0x201)]()[_0x30fc0e(0x24c)](_0x10e174=>_0x10e174[_0x30fc0e(0x278)]===_0x23870e);if(!_0x3ff231)return 0x0;let _0x5d15fc=_0x3ff231[_0x30fc0e(0x261)]/0xea60;return _0x120ba6&&(_0x5d15fc=0xb4-_0x5d15fc),_0x514ff5&&(_0x5d15fc=-_0x5d15fc),_0x5d15fc=(_0x5d15fc%0x168+0x168)%0x168,_0x5d15fc;}['_clearConnectionSites'](){const _0x2e3fd8=_0x25219a;for(let _0x42aa75 of this[_0x2e3fd8(0x308)])_0x42aa75[_0x2e3fd8(0x259)]();this[_0x2e3fd8(0x308)]=[],this[_0x2e3fd8(0xf9)]=-0x1;}[_0x25219a(0x259)](){const _0x5102ac=_0x25219a;this[_0x5102ac(0xdb)](),super[_0x5102ac(0x259)]();}};Nr=Z([X(0x1,_0x396ece(_0x471989)),X(0x2,_0x396ece(_0x492363)),X(0x3,_0x396ece(_0x6985f7))],Nr);let Pr=class extends _0x3ba2e2{constructor(_0x43d797,_0x531896,_0x3279e0,_0x3eac0d,_0xfa5376){const _0xc733a7=_0x25219a;super(),this[_0xc733a7(0x1b6)]=_0x43d797,this[_0xc733a7(0x232)]=_0x531896,this[_0xc733a7(0x329)]=_0x3279e0,this[_0xc733a7(0x262)]=_0x3eac0d,this[_0xc733a7(0x152)]=_0xfa5376,Y(this,'_copyInfo',void 0x0),this[_0xc733a7(0x2d8)](),this[_0xc733a7(0x299)]();}get[_0x25219a(0x1fb)](){const _0x3b4e47=_0x25219a;return this[_0x3b4e47(0x329)][_0x3b4e47(0x21a)]();}[_0x25219a(0x299)](){const _0x3c97ad=_0x25219a;this['_groupCopyPasteController'][_0x3c97ad(0x20e)](({fromUnitId:_0x244376,fromSubUnitId:_0x1a3634,toUnitId:_0x48f3fc,toSubUnitId:_0x6afdfc,idMap:_0x3a5ac8})=>{const _0x451202=_0x3c97ad;let _0x2e9f0e=[],_0x539195=[];for(let [_0x2a8f1d,_0x99040]of _0x3a5ac8['entries']()){let _0x1b6d61=this['_shapeService'][_0x451202(0x1f4)](_0x244376,_0x1a3634,_0x2a8f1d);if(!_0x1b6d61)continue;let _0x10c762=_0x1b6d61[_0x451202(0x16e)](),_0x28860c=JSON[_0x451202(0x336)](JSON[_0x451202(0x327)](_0x1b6d61['getShapeData']()));if(_0x28860c['relation']){var _0x2ab569,_0x1b705f;let _0x590e79=(_0x2ab569=_0x28860c['relation']['from'])==null?void 0x0:_0x2ab569[_0x451202(0x25a)],_0x34d317=(_0x1b705f=_0x28860c[_0x451202(0x2a7)]['to'])==null?void 0x0:_0x1b705f[_0x451202(0x25a)],_0x18a91a=!_0x590e79||_0x3a5ac8['has'](_0x590e79),_0x2e9a06=!_0x34d317||_0x3a5ac8['has'](_0x34d317);_0x18a91a&&_0x590e79&&_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]?_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]={..._0x28860c[_0x451202(0x2a7)][_0x451202(0x265)],'shapeId':_0x3a5ac8['get'](_0x590e79)}:_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]=void 0x0,_0x2e9a06&&_0x34d317&&_0x28860c[_0x451202(0x2a7)]['to']?_0x28860c['relation']['to']={..._0x28860c[_0x451202(0x2a7)]['to'],'shapeId':_0x3a5ac8[_0x451202(0x23e)](_0x34d317)}:_0x28860c[_0x451202(0x2a7)]['to']=void 0x0;}_0x2e9f0e[_0x451202(0xfc)]({'id':_0x55e264['id'],'params':{'unitId':_0x48f3fc,'subUnitId':_0x6afdfc,'shapeId':_0x99040,'shapeType':_0x10c762,'shapeData':_0x28860c}}),_0x539195[_0x451202(0xfc)]({'id':_0x30f07c['id'],'params':{'unitId':_0x48f3fc,'subUnitId':_0x6afdfc,'shapeId':_0x99040}});}return{'redos':_0x2e9f0e,'undos':_0x539195};});}['_initCopyPaste'](){const _0x32fc15=_0x25219a;this[_0x32fc15(0x1b1)](this[_0x32fc15(0x232)][_0x32fc15(0x121)]({'id':_0x32fc15(0x1ee),'onBeforeCopy':(_0x1d8e28,_0x67b073,_0x21a5e8,_0x35c829)=>{const _0x58694b=_0x32fc15;this[_0x58694b(0x268)]=null;let _0x45c872=this[_0x58694b(0x1fb)];if(_0x45c872[_0x58694b(0x27a)]){let _0x21f5fc=_0x45c872[_0x58694b(0x291)](_0x343c8a=>_0x343c8a[_0x58694b(0x2b3)]===_0x161136['DRAWING_SHAPE']);if(_0x21f5fc[_0x58694b(0x27a)]===0x0)return;this[_0x58694b(0x268)]={'unitId':_0x1d8e28,'subUnitId':_0x67b073,'copyType':_0x35c829,'drawings':_0x21f5fc};}else this[_0x58694b(0x28f)](_0x1d8e28,_0x67b073,_0x21a5e8,_0x35c829);},'onPasteCells':(_0x5e5b48,_0x210df4,_0x1565e9,_0x2af5e2)=>{const _0x9276f4=_0x32fc15;if(!this[_0x9276f4(0x268)])return{'redos':[],'undos':[]};let {pasteType:_0x54b63f}=_0x2af5e2;return _0x54b63f===_0x339317[_0x9276f4(0x141)]?this[_0x9276f4(0x1e0)](_0x210df4,this[_0x9276f4(0x268)]['copyType']===_0x4cbf87[_0x9276f4(0x32a)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x398827=>this[_0x32fc15(0x268)]?this[_0x32fc15(0x1e0)](_0x398827,this['_copyInfo'][_0x32fc15(0x2ee)]===_0x4cbf87[_0x32fc15(0x32a)]):{'redos':[],'undos':[]}}));}[_0x25219a(0x28f)](_0x354138,_0xbc7b74,_0x306544,_0x4bdbee){const _0x21c7dd=_0x25219a;let _0x2ddc33=this[_0x21c7dd(0x1b6)][_0x21c7dd(0x22d)](_0x354138,_0xbc7b74);if(!_0x2ddc33)return;let _0x2d573e=_0x1a0dbd(_0x2ddc33,_0x306544);if(!_0x2d573e)return;let {startX:_0x14202c,endX:_0x230793,startY:_0x2296cc,endY:_0x33598b}=_0x2d573e,_0x331075=this['_sheetDrawingService'][_0x21c7dd(0x296)](_0x354138,_0xbc7b74),_0x49bc7b=this['_focusedDrawings'][_0x21c7dd(0x133)]();for(let [_0x20a798,_0x42eb95]of Object[_0x21c7dd(0x277)](_0x331075)){if(_0x42eb95['drawingType']!==_0x161136[_0x21c7dd(0x25c)])continue;let {transform:_0x11fc39}=_0x42eb95;if(!_0x11fc39)continue;let {left:_0x4fcd0e=0x0,top:_0x199ed2=0x0,width:_0x5a292b=0x0,height:_0x4e29af=0x0}=_0x11fc39;_0x14202c<=_0x4fcd0e&&_0x230793>=_0x4fcd0e+_0x5a292b&&_0x2296cc<=_0x199ed2&&_0x33598b>=_0x199ed2+_0x4e29af&&_0x49bc7b['push'](_0x42eb95);}_0x49bc7b['length']>0x0&&(this['_copyInfo']={'unitId':_0x354138,'subUnitId':_0xbc7b74,'copyType':_0x4bdbee,'copyRange':_0x306544,'drawings':_0x49bc7b});}[_0x25219a(0x1e0)](_0x36dcfa,_0x1578c9){const _0x54ff92=_0x25219a;let {unitId:_0x2e6df7,subUnitId:_0x3d4ae3,range:_0x169427}=_0x36dcfa,_0x52de35=this[_0x54ff92(0x1b6)][_0x54ff92(0x22d)](_0x2e6df7,_0x3d4ae3);if(!_0x52de35)return{'redos':[],'undos':[]};let _0x4be118=_0x58837b(_0x169427),{unitId:_0x534c6d,subUnitId:_0x1b8796,copyRange:_0x5866da,drawings:_0xaf5694}=this[_0x54ff92(0x268)],_0x45c35d=this[_0x54ff92(0x1b6)][_0x54ff92(0x22d)](_0x534c6d,_0x1b8796);if(!_0x45c35d)return{'redos':[],'undos':[]};let _0x52051f;if(!_0x5866da){let _0x8e5f53=0x1/0x0,_0x163da3=0x1/0x0;for(let _0x503365 of _0xaf5694){let {left:_0x41c799=0x0,top:_0x225b2a=0x0}=_0x503365[_0x54ff92(0x298)]??{};_0x41c799<_0x8e5f53&&(_0x8e5f53=_0x41c799),_0x225b2a<_0x163da3&&(_0x163da3=_0x225b2a);}_0x8e5f53!==0x1/0x0&&_0x163da3!==0x1/0x0&&(_0x52051f={'left':_0x8e5f53,'top':_0x163da3});}let _0x33605=new Map();if(!_0x1578c9){for(let _0x31b611 of _0xaf5694)_0x33605['set'](_0x31b611[_0x54ff92(0x2c2)],_0x44c0e2());}let _0x2ff846=[],_0x2f2202=[];for(let _0x48998f of _0xaf5694){let {drawingId:_0x152b26,transform:_0x20b1b1,sheetTransform:_0x3f9e83}=_0x48998f;if(!_0x20b1b1||!_0x3f9e83)continue;let _0x20b51e=this[_0x54ff92(0x309)]({'transform':_0x20b1b1,'sheetTransform':_0x3f9e83},{'skeleton':_0x45c35d,'range':_0x5866da},{'skeleton':_0x52de35,'range':_0x4be118},_0x52051f);if(_0x1578c9){let {redos:_0x3ae6cc,undos:_0x29a40c}=this[_0x54ff92(0x28b)]({'fromUnitId':_0x534c6d,'fromSubUnitId':_0x1b8796,'toUnitId':_0x2e6df7,'toSubUnitId':_0x3d4ae3,'drawing':_0x48998f,'newTransforms':_0x20b51e});_0x2ff846[_0x54ff92(0xfc)](..._0x3ae6cc),_0x2f2202['push'](..._0x29a40c);continue;}let {redos:_0x1601a7,undos:_0x541444}=this['_generateCopyPasteMutations']({'toUnitId':_0x2e6df7,'toSubUnitId':_0x3d4ae3,'drawing':_0x48998f,'newTransforms':_0x20b51e,'newDrawingId':_0x33605[_0x54ff92(0x23e)](_0x152b26),'idMap':_0x33605});_0x2ff846[_0x54ff92(0xfc)](..._0x1601a7),_0x2f2202[_0x54ff92(0xfc)](..._0x541444);}return{'redos':_0x2ff846,'undos':_0x2f2202};}[_0x25219a(0x28b)](_0x32881c){const _0x3fba68=_0x25219a;let {fromUnitId:_0x332f9a,fromSubUnitId:_0x17893d,toUnitId:_0x1a5b09,toSubUnitId:_0x121271,drawing:_0x59e16b,newTransforms:_0x4b507c}=_0x32881c,_0x980db5={..._0x59e16b,'unitId':_0x1a5b09,'subUnitId':_0x121271,'transform':_0x4b507c['transform'],'sheetTransform':_0x4b507c[_0x3fba68(0x2a1)]};if(_0x1a5b09===_0x332f9a&&_0x121271===_0x17893d){let {redo:_0x3f3e17,undo:_0x2e4d7f,objects:_0x59ef3e}=this[_0x3fba68(0x329)][_0x3fba68(0x14a)]([_0x980db5]);return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x323)],'op':_0x3f3e17,'objects':_0x59ef3e}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x323)],'op':_0x2e4d7f,'objects':_0x59ef3e}}]};}else{let _0x2dc92e=this[_0x3fba68(0x329)][_0x3fba68(0x24f)]([_0x59e16b]),_0x590011=this['_sheetDrawingService']['getBatchAddOp']([_0x980db5]),_0x236ced=this[_0x3fba68(0x262)]['getShapeModel'](_0x59e16b[_0x3fba68(0x151)],_0x59e16b['subUnitId'],_0x59e16b['drawingId']);if(!_0x236ced)return{'redos':[],'undos':[]};let _0x211bbb=_0x236ced[_0x3fba68(0x16e)](),_0x4a5d51=JSON[_0x3fba68(0x336)](JSON[_0x3fba68(0x327)](_0x236ced[_0x3fba68(0x23b)]()));return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'type':_0x34c4cd[_0x3fba68(0x1f5)],'op':_0x2dc92e['redo'],'objects':_0x2dc92e['objects']}},{'id':_0x30f07c['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'shapeId':_0x59e16b[_0x3fba68(0x2c2)]}},{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x312)],'op':_0x590011['redo'],'objects':_0x590011[_0x3fba68(0x17d)]}},{'id':_0x55e264['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'shapeId':_0x59e16b[_0x3fba68(0x2c2)],'shapeType':_0x211bbb,'shapeData':_0x4a5d51}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'type':_0x34c4cd[_0x3fba68(0x312)],'op':_0x2dc92e[_0x3fba68(0x23d)],'objects':_0x2dc92e[_0x3fba68(0x17d)]}},{'id':_0x55e264['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'shapeId':_0x59e16b[_0x3fba68(0x2c2)],'shapeType':_0x211bbb,'shapeData':_0x4a5d51}},{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x1f5)],'op':_0x590011['undo'],'objects':_0x590011[_0x3fba68(0x17d)]}},{'id':_0x30f07c['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'shapeId':_0x59e16b['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x4fc491){const _0xc4e269=_0x25219a;let {toUnitId:_0x305f7a,toSubUnitId:_0x4c2d31,drawing:_0x400634,newTransforms:_0x3acf89,newDrawingId:_0x8726ad,idMap:_0x18fa67}=_0x4fc491,_0x3e3cb8={..._0x400634,'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'drawingId':_0x8726ad,'transform':_0x3acf89[_0xc4e269(0x298)],'sheetTransform':_0x3acf89['sheetTransform']},{redo:_0xb935d2,undo:_0x36430c,objects:_0x8045c6}=this[_0xc4e269(0x329)]['getBatchAddOp']([_0x3e3cb8]),_0x184411=this[_0xc4e269(0x262)][_0xc4e269(0x1f4)](_0x400634['unitId'],_0x400634[_0xc4e269(0x21f)],_0x400634[_0xc4e269(0x2c2)]);if(!_0x184411)return{'redos':[],'undos':[]};let _0x4c321e=_0x184411[_0xc4e269(0x16e)](),_0x469ddd=JSON['parse'](JSON[_0xc4e269(0x327)](_0x184411[_0xc4e269(0x23b)]()));if(_0x469ddd[_0xc4e269(0x2a7)]){var _0x21d83c,_0x4908cb;let _0xbf0314=(_0x21d83c=_0x469ddd['relation'][_0xc4e269(0x265)])==null?void 0x0:_0x21d83c[_0xc4e269(0x25a)],_0x74d41=(_0x4908cb=_0x469ddd[_0xc4e269(0x2a7)]['to'])==null?void 0x0:_0x4908cb[_0xc4e269(0x25a)],_0x5f330c=!_0xbf0314||_0x18fa67['has'](_0xbf0314),_0x4960eb=!_0x74d41||_0x18fa67[_0xc4e269(0x135)](_0x74d41);_0x5f330c&&_0xbf0314&&_0x469ddd['relation'][_0xc4e269(0x265)]?_0x469ddd[_0xc4e269(0x2a7)][_0xc4e269(0x265)]={..._0x469ddd[_0xc4e269(0x2a7)]['from'],'shapeId':_0x18fa67[_0xc4e269(0x23e)](_0xbf0314)}:_0x469ddd[_0xc4e269(0x2a7)]['from']=void 0x0,_0x4960eb&&_0x74d41&&_0x469ddd[_0xc4e269(0x2a7)]['to']?_0x469ddd['relation']['to']={..._0x469ddd[_0xc4e269(0x2a7)]['to'],'shapeId':_0x18fa67['get'](_0x74d41)}:_0x469ddd[_0xc4e269(0x2a7)]['to']=void 0x0;}return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'type':_0x34c4cd[_0xc4e269(0x312)],'op':_0xb935d2,'objects':_0x8045c6}},{'id':_0x55e264['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'shapeId':_0x8726ad,'shapeType':_0x4c321e,'shapeData':_0x469ddd}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'type':_0x34c4cd[_0xc4e269(0x1f5)],'op':_0x36430c,'objects':_0x8045c6}},{'id':_0x30f07c['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'shapeId':_0x8726ad}}]};}['_updateTransform'](_0x2a756e,_0x8ba472,_0x1cd81b,_0x2e42bf){const _0x497fea=_0x25219a;let {range:_0x238586,skeleton:_0x481441}=_0x8ba472,{range:_0x26a1af,skeleton:_0x475771}=_0x1cd81b,{transform:_0x25d96c,sheetTransform:_0x5d80df}=_0x2a756e,_0x32c65c={..._0x25d96c};if(_0x238586){let _0x189d87=_0x1a0dbd(_0x481441,_0x238586),_0x1c9164=_0x1a0dbd(_0x475771,_0x26a1af);if(_0x189d87&&_0x1c9164){let _0x2113dd=_0x1c9164[_0x497fea(0x269)]-_0x189d87[_0x497fea(0x269)],_0x89a3e5=_0x1c9164[_0x497fea(0x303)]-_0x189d87[_0x497fea(0x303)];_0x32c65c[_0x497fea(0x242)]=(_0x32c65c[_0x497fea(0x242)]??0x0)+_0x2113dd,_0x32c65c['top']=(_0x32c65c['top']??0x0)+_0x89a3e5;}}else{let _0x45c1a9=_0x1a0dbd(_0x475771,_0x26a1af);if(_0x2e42bf&&_0x45c1a9){let _0x4a986e=(_0x32c65c[_0x497fea(0x242)]??0x0)-_0x2e42bf[_0x497fea(0x242)],_0x4cb0f0=(_0x32c65c[_0x497fea(0x1e8)]??0x0)-_0x2e42bf[_0x497fea(0x1e8)];_0x32c65c['left']=_0x45c1a9[_0x497fea(0x269)]+_0x4a986e,_0x32c65c['top']=_0x45c1a9[_0x497fea(0x303)]+_0x4cb0f0;}else _0x32c65c[_0x497fea(0x242)]=_0x45c1a9==null?void 0x0:_0x45c1a9[_0x497fea(0x269)],_0x32c65c['top']=_0x45c1a9==null?void 0x0:_0x45c1a9['startY'];}return{'transform':_0x32c65c,'sheetTransform':_0x2b6fe(_0x32c65c,_0x475771)??_0x5d80df};}};Pr=Z([X(0x0,_0x396ece(_0x587a33)),X(0x1,_0x396ece(_0x1249ad)),X(0x2,_0x396ece(_0x18f6a9)),X(0x3,_0x396ece(_0x6985f7)),X(0x4,_0x396ece(_0x3ed6d2))],Pr);var Fr=class extends _0x1ac658{constructor(_0x5908e7,_0x28a821){const _0x54840f=_0x25219a;super(_0x5908e7,_0x28a821),Y(this,_0x54840f(0x13e),null),Y(this,_0x54840f(0x2d4),null),Y(this,_0x54840f(0x1c5),null),Y(this,_0x54840f(0x333),null),Y(this,_0x54840f(0x1e3),!0x1),_0x28a821&&this[_0x54840f(0x2f6)](_0x28a821);}['getDrawingSearch'](){const _0x4cc41a=_0x25219a;return{'unitId':this[_0x4cc41a(0x1c5)],'subUnitId':this[_0x4cc41a(0x333)],'drawingId':this[_0x4cc41a(0x13e)]};}[_0x25219a(0x2f6)](_0x227ab1){const _0x3bd6b4=_0x25219a;_0x227ab1['shapeId']!==void 0x0&&(this[_0x3bd6b4(0x13e)]=_0x227ab1['shapeId']),_0x227ab1['unitId']!==void 0x0&&(this[_0x3bd6b4(0x1c5)]=_0x227ab1[_0x3bd6b4(0x151)]),_0x227ab1[_0x3bd6b4(0x21f)]!==void 0x0&&(this['_subUnitId']=_0x227ab1[_0x3bd6b4(0x21f)]),_0x227ab1['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x227ab1[_0x3bd6b4(0x2ad)]),this['transformByState']({'width':_0x227ab1['width'],'height':_0x227ab1['height']});}[_0x25219a(0x183)](_0x137392){const _0x15b8e1=_0x25219a;_0x18400a[_0x15b8e1(0x230)](_0x137392,{'radius':_0x373ebe[_0x15b8e1(0x1ea)],'fill':_0x373ebe[_0x15b8e1(0x27c)],'stroke':_0x373ebe[_0x15b8e1(0x2d7)],'strokeWidth':_0x373ebe[_0x15b8e1(0x136)],'evented':!0x0});}};let Ir=class extends _0x3ba2e2{constructor(_0x204e92,_0x7de9ee,_0x3eb343,_0x5bba14,_0x5bf968,_0x2dc29f,_0x566533,_0x18dfe2){const _0x5c2d3d=_0x25219a;super(),this[_0x5c2d3d(0x316)]=_0x204e92,this[_0x5c2d3d(0x2cc)]=_0x7de9ee,this[_0x5c2d3d(0x145)]=_0x3eb343,this['_drawingManagerService']=_0x5bba14,this[_0x5c2d3d(0xfe)]=_0x5bf968,this[_0x5c2d3d(0x124)]=_0x2dc29f,this['_sheetShapeAdjustController']=_0x566533,this[_0x5c2d3d(0x2ec)]=_0x18dfe2,Y(this,_0x5c2d3d(0x25d),void 0x0),Y(this,_0x5c2d3d(0x1c5),void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,_0x5c2d3d(0x1bb),[]),Y(this,_0x5c2d3d(0x247),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x5c2d3d(0x16c),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0x5c2d3d(0x30d),!0x1),Y(this,'_cxtHandlerPointerMove',void 0x0),Y(this,'_cxtHandlerPointerUp',void 0x0),Y(this,'_currentConnectionTarget',null),this[_0x5c2d3d(0x27e)]();}[_0x25219a(0x27e)](){const _0x697764=_0x25219a;this[_0x697764(0x132)](),this[_0x697764(0x231)]();}[_0x25219a(0x2c4)](){const _0x39aee3=_0x25219a;if(!this[_0x39aee3(0x1c5)]||!this[_0x39aee3(0x333)]||!this['_activeShapeId'])return;let _0x1f1c91={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0x2778c5}=this['_drawingManagerService']['getDrawingByParam'](_0x1f1c91);if(_0x2778c5)return{'left':_0x2778c5['left']||0x0,'top':_0x2778c5[_0x39aee3(0x1e8)]||0x0,'width':_0x2778c5[_0x39aee3(0x11f)]||0x0,'height':_0x2778c5[_0x39aee3(0x270)]||0x0,'flipX':_0x2778c5[_0x39aee3(0x275)]||!0x1,'flipY':_0x2778c5[_0x39aee3(0x1a3)]||!0x1,'angle':_0x2778c5[_0x39aee3(0x26e)]};}['_addShapeConnectorHandlerObjects'](){const _0x47445c=_0x25219a;if(this[_0x47445c(0x1c5)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x47445c(0x25d)]===void 0x0)return;let _0x3ab442=this[_0x47445c(0x145)][_0x47445c(0x1dd)](this[_0x47445c(0x1c5)]);if(!_0x3ab442||!_0x3ab442[_0x47445c(0xe3)](_0x319c9a)['getCurrentSkeleton']())return;let {scene:_0x47d543}=_0x3ab442,_0x4c9b99=this['_getDrawingRect']();if(!_0x4c9b99)return;let _0x54db03=this[_0x47445c(0x124)][_0x47445c(0x1f4)](this[_0x47445c(0x1c5)],this[_0x47445c(0x333)],this['_activeShapeId']);if(!_0x54db03||!_0x41a954(_0x54db03['getShapeType']()))return;let _0xde7a7f=_0x54db03['getConnectorLinePoints']();if(_0xde7a7f['length']<0x2)return;let _0x47d234=new _0xd7d9f3(_0x4c9b99),_0xc6d4cc=_0xde7a7f[0x0],_0x257f65=_0xde7a7f[_0xde7a7f[_0x47445c(0x27a)]-0x1],_0x42a9cd=_0x47d234[_0x47445c(0x16d)](_0xc6d4cc),_0x37d845=_0x47d234[_0x47445c(0x16d)](_0x257f65);this[_0x47445c(0x157)](_0x47d543,{..._0x42a9cd},!0x0),this[_0x47445c(0x157)](_0x47d543,{..._0x37d845},!0x1);}[_0x25219a(0x157)](_0x1d2cbc,_0x8069be,_0x257463){const _0x3a03a4=_0x25219a;if(this[_0x3a03a4(0x25d)]===void 0x0||this[_0x3a03a4(0x1c5)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2bad62=_0x3a03a4(0x2de)+this[_0x3a03a4(0x1c5)]+'-'+this[_0x3a03a4(0x333)]+'-'+this[_0x3a03a4(0x25d)]+'-'+(_0x257463?_0x3a03a4(0x10a):'end'),_0xfbe54b=_0x1d2cbc[_0x3a03a4(0x15b)](_0x2bad62);if(_0xfbe54b){_0xfbe54b[_0x3a03a4(0xfd)]({'left':_0x8069be['x']-_0x373ebe['cxnPointRadius'],'top':_0x8069be['y']-_0x373ebe['cxnPointRadius']});return;}let _0x2441b6=new Fr(_0x2bad62,{'left':_0x8069be['x']-_0x373ebe[_0x3a03a4(0x1ea)],'top':_0x8069be['y']-_0x373ebe['cxnPointRadius'],'shapeId':this[_0x3a03a4(0x25d)],'unitId':this[_0x3a03a4(0x1c5)],'subUnitId':this[_0x3a03a4(0x333)],'isStartConnectorPoint':_0x257463,'width':_0x373ebe[_0x3a03a4(0x1ea)]*0x2,'height':_0x373ebe[_0x3a03a4(0x1ea)]*0x2,'zIndex':_0x22b4b7+0x1,'evented':!0x0});this[_0x3a03a4(0x1bb)][_0x3a03a4(0xfc)](_0x2441b6),this['_attachConnectorObjectEvent'](_0x2441b6,_0x1d2cbc,_0x257463),_0x1d2cbc[_0x3a03a4(0xe6)](_0x2441b6,_0x22b4b7+0x1);}['_getScrollInfo'](_0x3c1c6f,_0x2c64e2){const _0x30a165=_0x25219a;var _0x2f43ed;let _0x1b17ad={'x':0x0,'y':0x0};if(!_0x3c1c6f||!_0x2c64e2)return _0x1b17ad;let _0x52f633=this[_0x30a165(0x145)][_0x30a165(0x1dd)](_0x3c1c6f);if(!_0x52f633||!_0x52f633['with'](_0x319c9a)['getSkeleton'](_0x2c64e2))return _0x1b17ad;let _0x1d3b30=_0x52f633[_0x30a165(0xe3)](_0x22e443),_0x3ab2bf=_0x1d3b30==null?void 0x0:_0x1d3b30[_0x30a165(0x158)]();if(!_0x3ab2bf)return _0x1b17ad;let _0x1f9e9c=(_0x2f43ed=this['_univerInstanceService'][_0x30a165(0x11e)](_0x3c1c6f))==null?void 0x0:_0x2f43ed[_0x30a165(0x330)](_0x2c64e2);if(!_0x1f9e9c)return _0x1b17ad;let _0x50bc10=_0x4f0d4b(_0x3ab2bf[_0x30a165(0x1cc)],_0x3ab2bf[_0x30a165(0x18c)],_0x52f633[_0x30a165(0x19b)],_0x1f9e9c);return _0x50bc10?{'x':_0x50bc10['viewportScrollX'],'y':_0x50bc10[_0x30a165(0x24b)]}:_0x1b17ad;}['_getZoomRatio'](_0x543ade,_0x4710a5){const _0x96baf6=_0x25219a;var _0xc8808b;let _0x8fbb8f=(_0xc8808b=this['_univerInstanceService'][_0x96baf6(0x11e)](_0x543ade))==null?void 0x0:_0xc8808b[_0x96baf6(0x330)](_0x4710a5);return(_0x8fbb8f==null?void 0x0:_0x8fbb8f[_0x96baf6(0x310)]())??0x1;}[_0x25219a(0x331)](_0x11a052,_0x34a837,_0x4d9f41,_0x3e01a3,_0x371a3e){const _0x37b712=_0x25219a;this['_cxtHandlerPointerMove'][_0x37b712(0x15a)](),this[_0x37b712(0x205)][_0x37b712(0x15a)](),this[_0x37b712(0x1a9)][_0x37b712(0x10b)]();let _0x3c351c=this['_currentConnectionTarget'];this[_0x37b712(0x2ec)][_0x37b712(0xf8)]();let _0x4d97f0=this[_0x37b712(0x314)](this['_unitId'],this['_subUnitId']),_0x2a622e=this['_getZoomRatio'](this[_0x37b712(0x1c5)],this['_subUnitId']),_0x15aef5={'x':_0x4d9f41['offsetX']/_0x2a622e+_0x4d97f0['x'],'y':_0x4d9f41[_0x37b712(0x114)]/_0x2a622e+_0x4d97f0['y']},_0x18058b=_0x3c351c?_0x3c351c[_0x37b712(0x30a)]:_0x15aef5,_0x337393=_0x3e01a3?this[_0x37b712(0x16c)][_0x37b712(0x27b)]():this[_0x37b712(0x16c)][_0x37b712(0x1d7)](),_0x254984=this[_0x37b712(0x16c)]['getShapeType']();_0x337393?this[_0x37b712(0x2a5)](_0x337393,_0x18058b,_0x3e01a3,_0x3c351c,_0x371a3e):this[_0x37b712(0x105)](_0x34a837,_0x18058b,_0x3e01a3,_0x3c351c,_0x371a3e,_0x254984),this[_0x37b712(0x338)]=!0x1,this[_0x37b712(0x30d)]=!0x1,this[_0x37b712(0x165)]=null,_0x11a052[_0x37b712(0xfa)]();}[_0x25219a(0x105)](_0x53ad17,_0x1126df,_0x32c2c9,_0x5b18b5,_0x5b724c,_0x9486e5){const _0x22279b=_0x25219a;let _0x461686=_0x9486e5===_0x6bfff9[_0x22279b(0x120)]||_0x9486e5===_0x6bfff9[_0x22279b(0x25e)],_0x3f55c8=_0x32c2c9?_0x1126df:_0x53ad17,_0x16e88b=_0x32c2c9?_0x53ad17:_0x1126df,_0x3a2603=this[_0x22279b(0x16c)][_0x22279b(0x175)](),_0x59b51f=_0x5ad544(this['_activeShapeModel'][_0x22279b(0x16e)]()),_0x59e4ef=_0xd7d9f3[_0x22279b(0x2fa)](_0x3a2603,_0x59b51f),_0x4e17d9=_0x461686?_0xd7d9f3[_0x22279b(0x1f7)](_0x3f55c8,_0x16e88b):_0xd7d9f3[_0x22279b(0x276)](_0x53ad17,_0x1126df,_0x32c2c9,_0x59e4ef);_0x5b18b5?this['_executeConnectionCommand'](_0x4e17d9,_0x5b18b5,_0x32c2c9,_0x5b724c):this[_0x22279b(0x109)](_0x4e17d9,_0x5b724c);}[_0x25219a(0x2a5)](_0x52f7c0,_0x5e4dfd,_0x12c7ad,_0x542d4c,_0x88a85b){const _0x407707=_0x25219a;let _0x38615b=this[_0x407707(0x280)](_0x52f7c0);if(!_0x38615b)return;let _0x439af3=_0x542d4c?_0x542d4c[_0x407707(0x26e)]:this[_0x407707(0x1bd)](_0x38615b[_0x407707(0x170)],_0x5e4dfd),_0x214629;if(_0x542d4c){let _0x496754=this[_0x407707(0x284)]['getDrawingByParam']({'unitId':_0x542d4c['unitId'],'subUnitId':_0x542d4c[_0x407707(0x21f)],'drawingId':_0x542d4c[_0x407707(0x25a)]});if(_0x496754!=null&&_0x496754[_0x407707(0x298)]){let {left:_0xb976a8=0x0,top:_0x5a6e85=0x0,width:_0x39729a=0x0,height:_0x4d9b81=0x0,angle:_0x46085e}=_0x496754[_0x407707(0x298)];_0x214629=_0x10ab2a({'left':_0xb976a8,'top':_0x5a6e85,'width':_0x39729a,'height':_0x4d9b81},_0x46085e||0x0);}else _0x214629={'left':_0x5e4dfd['x'],'top':_0x5e4dfd['y'],'width':0x0,'height':0x0};}else _0x214629={'left':_0x5e4dfd['x'],'top':_0x5e4dfd['y'],'width':0x0,'height':0x0};let _0x1eb17c={'point':_0x5e4dfd,'angle':_0x439af3,'bounds':_0x214629},_0x58c2a3=_0x12c7ad?_0x1eb17c:_0x38615b,_0x2fd6aa=_0x12c7ad?_0x38615b:_0x1eb17c,_0x5ef655=this[_0x407707(0x16c)][_0x407707(0x16e)](),_0x49cdc1=_0x5d6f7b(_0x58c2a3,_0x2fd6aa,_0x5ef655);this['_activeShapeModel'][_0x407707(0x1df)]();let _0x38fa3d=_0x47fdde(_0x49cdc1,_0x5ef655);_0x542d4c?this[_0x407707(0x319)](_0x38fa3d,_0x542d4c,_0x52f7c0,_0x12c7ad,_0x88a85b):this[_0x407707(0x23a)](_0x38fa3d,_0x52f7c0,_0x12c7ad,_0x88a85b);}[_0x25219a(0x156)](_0x3c1e60,_0x49ca5b,_0x112027,_0x21799e){const _0x4b75bd=_0x25219a;let _0x2a5a40=this[_0x4b75bd(0x16c)][_0x4b75bd(0x23b)]()[_0x4b75bd(0x2a7)],_0x411046={..._0x2a5a40},_0x5e99dd={'shapeId':_0x49ca5b[_0x4b75bd(0x25a)],'cxnIndex':_0x49ca5b[_0x4b75bd(0x2f8)]};_0x112027?_0x411046[_0x4b75bd(0x265)]=_0x5e99dd:_0x411046['to']=_0x5e99dd;let _0x5a423e=this[_0x4b75bd(0x16c)][_0x4b75bd(0x16e)](),_0x5a2759=_0x47fdde(_0x3c1e60['worldPoints'],_0x5a423e),_0x3739f9={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x3c1e60['worldRect'][_0x4b75bd(0x11f)],'height':_0x3c1e60['worldRect'][_0x4b75bd(0x270)],'left':_0x3c1e60[_0x4b75bd(0x138)][_0x4b75bd(0x242)],'top':_0x3c1e60['worldRect'][_0x4b75bd(0x1e8)],'flipX':_0x3c1e60[_0x4b75bd(0x138)][_0x4b75bd(0x275)]||!0x1,'flipY':_0x3c1e60[_0x4b75bd(0x138)]['flipY']||!0x1,'newAdjustValues':_0x5a2759[_0x4b75bd(0x344)],'oldAdjustValues':_0x21799e,'oldRelation':_0x2a5a40,'newRelation':_0x411046,'newLineType':_0x5a2759[_0x4b75bd(0x2af)],'oldLineType':_0x5a423e};this['_commandService'][_0x4b75bd(0x1a6)](_0xdc15a6['id'],_0x3739f9);}[_0x25219a(0x109)](_0xa099ea,_0x41ead0){const _0x4857d0=_0x25219a;let _0x20ff3a=this['_activeShapeModel'][_0x4857d0(0x16e)](),_0x3f2087=_0x47fdde(_0xa099ea[_0x4857d0(0x1b2)],_0x20ff3a),_0x491785={'unitId':this[_0x4857d0(0x1c5)],'subUnitId':this[_0x4857d0(0x333)],'shapeId':this['_activeShapeId'],'width':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x11f)],'height':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x270)],'left':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x242)],'top':_0xa099ea['worldRect'][_0x4857d0(0x1e8)],'flipX':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x275)]||!0x1,'flipY':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x1a3)]||!0x1,'angle':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x26e)]||0x0,'newAdjustValues':_0x3f2087['adjustValues'],'oldAdjustValues':_0x41ead0,'newLineType':_0x3f2087[_0x4857d0(0x2af)],'oldLineType':_0x20ff3a};this[_0x4857d0(0x2cc)][_0x4857d0(0x1a6)](_0xa01182['id'],_0x491785);}[_0x25219a(0x319)](_0x5d61b0,_0x28ab68,_0x2c7981,_0xd6a8e7,_0x2b9d16){const _0x5967fe=_0x25219a;let _0x2ebe2b=this[_0x5967fe(0x16c)]['getShapeData']()['relation'],_0x5f0b59={..._0x2ebe2b},_0x309cce={'shapeId':_0x28ab68[_0x5967fe(0x25a)],'cxnIndex':_0x28ab68[_0x5967fe(0x2f8)]};_0xd6a8e7?(_0x5f0b59[_0x5967fe(0x265)]=_0x309cce,_0x5f0b59['to']=_0x2c7981):(_0x5f0b59[_0x5967fe(0x265)]=_0x2c7981,_0x5f0b59['to']=_0x309cce);let _0x283691={'unitId':this[_0x5967fe(0x1c5)],'subUnitId':this[_0x5967fe(0x333)],'connectorShapeId':this['_activeShapeId'],'width':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x11f)],'height':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x270)],'left':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x242)],'top':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x1e8)],'flipX':_0x5d61b0['worldRect'][_0x5967fe(0x275)]||!0x1,'flipY':_0x5d61b0[_0x5967fe(0x138)]['flipY']||!0x1,'oldAdjustValues':_0x2b9d16,'newAdjustValues':_0x5d61b0[_0x5967fe(0x344)],'newLineType':_0x5d61b0['lineType'],'rotation':_0x5d61b0[_0x5967fe(0xee)],'oldRelation':_0x2ebe2b,'newRelation':_0x5f0b59};this[_0x5967fe(0x2cc)][_0x5967fe(0x1a6)](_0xdc15a6['id'],_0x283691);}[_0x25219a(0x23a)](_0x364b01,_0x1bef99,_0x1cc9e3,_0x5835ab){const _0x1b710e=_0x25219a;let _0x2bc943=this['_activeShapeModel'][_0x1b710e(0x23b)]()['relation'],_0x35a0a3={};_0x1cc9e3?(_0x35a0a3['to']=_0x1bef99,_0x35a0a3[_0x1b710e(0x265)]=void 0x0):(_0x35a0a3[_0x1b710e(0x265)]=_0x1bef99,_0x35a0a3['to']=void 0x0);let _0x3c4da8={'unitId':this[_0x1b710e(0x1c5)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1b710e(0x25d)],'width':_0x364b01['worldRect'][_0x1b710e(0x11f)],'height':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x270)],'left':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x242)],'top':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x1e8)],'flipX':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x275)]||!0x1,'flipY':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x1a3)]||!0x1,'oldAdjustValues':_0x5835ab,'newAdjustValues':_0x364b01[_0x1b710e(0x344)],'newLineType':_0x364b01[_0x1b710e(0x2af)],'rotation':_0x364b01[_0x1b710e(0xee)],'oldRelation':_0x2bc943,'newRelation':_0x35a0a3};this[_0x1b710e(0x2cc)][_0x1b710e(0x1a6)](_0xdc15a6['id'],_0x3c4da8);}[_0x25219a(0x184)](_0x2c0497,_0x1e537d,_0x940dd4){const _0x471909=_0x25219a;this[_0x471909(0x1b1)](_0x2388cf(_0x2c0497[_0x471909(0x18e)][_0x471909(0x1ab)]((_0x28689f,_0x4c9afb)=>{const _0x2613d4=_0x471909;let _0x4f7034=_0x2c0497[_0x2613d4(0x198)]();if(this[_0x2613d4(0x16c)]=this[_0x2613d4(0x124)][_0x2613d4(0x1f4)](_0x4f7034['unitId'],_0x4f7034[_0x2613d4(0x21f)],_0x4f7034[_0x2613d4(0x2c2)]),!this[_0x2613d4(0x16c)])return;let _0x1ad11={};this[_0x2613d4(0x16c)][_0x2613d4(0x2ea)]()['forEach'](_0xb6304=>{const _0x51ed46=_0x2613d4;let _0x25153a=this[_0x51ed46(0x16c)][_0x51ed46(0x19f)](_0xb6304);_0x25153a!==void 0x0&&(_0x1ad11[_0xb6304]=_0x25153a);});let _0x5c277c=this[_0x2613d4(0x2c4)]();if(!_0x5c277c)return;this[_0x2613d4(0x247)]={..._0x5c277c};let _0x178282=new _0xd7d9f3(this['_baseDrawingRect']),_0x4d48d7=_0x566164({'unitId':this[_0x2613d4(0x1c5)],'subUnitId':this[_0x2613d4(0x333)],'drawingId':this[_0x2613d4(0x25d)]}),_0x5e7b02=_0x1e537d[_0x2613d4(0x15b)](_0x4d48d7);this['_isConnecting']=!0x0,_0x1e537d['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x2613d4(0x149)](_0x1e537d,this[_0x2613d4(0x1c5)],this[_0x2613d4(0x333)],this['_activeShapeId']),this[_0x2613d4(0x165)]=null;let _0x3a04b7=this[_0x2613d4(0x16c)]['getConnectorLinePoints'](),_0x18850e=_0x3a04b7[0x0],_0x46f1d5=_0x3a04b7[_0x3a04b7['length']-0x1],_0x3a438f=_0x940dd4?_0x178282[_0x2613d4(0x16d)](_0x46f1d5):_0x178282[_0x2613d4(0x16d)](_0x18850e);this['_cxtHandlerPointerMove']=_0x1e537d[_0x2613d4(0x131)][_0x2613d4(0x1ab)]((_0x21763b,_0x23257e)=>{const _0x2391dd=_0x2613d4;if(!this[_0x2391dd(0x338)]||!this[_0x2391dd(0x16c)])return;this['_hasReset']||=(this[_0x2391dd(0x1a9)][_0x2391dd(0x2e1)](),this[_0x2391dd(0x16c)][_0x2391dd(0x1c2)](),!0x0);let _0x39024c=this[_0x2391dd(0x314)](this[_0x2391dd(0x1c5)],this[_0x2391dd(0x333)]),_0x47dfa9=this[_0x2391dd(0x1aa)](this[_0x2391dd(0x1c5)],this['_subUnitId']),_0x19494e={'x':_0x21763b['offsetX']/_0x47dfa9+_0x39024c['x'],'y':_0x21763b[_0x2391dd(0x114)]/_0x47dfa9+_0x39024c['y']},_0x244225=this[_0x2391dd(0x2ec)][_0x2391dd(0x126)](_0x19494e);if(_0x244225){let {shapeId:_0x3e85e5,unitId:_0x5e92d5,subUnitId:_0x3b1d08}=_0x244225;if(_0x3e85e5&&_0x5e92d5&&_0x3b1d08){let _0x4ba2da=_0x566164({'unitId':_0x5e92d5,'subUnitId':_0x3b1d08,'drawingId':_0x3e85e5});_0x244225[_0x2391dd(0x26e)]=(_0x1e537d[_0x2391dd(0x15b)](_0x4ba2da)['angle']||0x0)+_0x244225[_0x2391dd(0x26e)];}}this[_0x2391dd(0x165)]=_0x244225;let _0x20a456=_0x940dd4?this[_0x2391dd(0x16c)][_0x2391dd(0x27b)]():this['_activeShapeModel'][_0x2391dd(0x1d7)]();if(_0x20a456){this[_0x2391dd(0x1ed)](_0x20a456,_0x19494e,_0x940dd4,_0x5e7b02,_0x2c0497);return;}this[_0x2391dd(0xf1)](_0x19494e,_0x3a438f,_0x940dd4,_0x5e7b02,_0x2c0497);}),this[_0x2613d4(0x205)]=_0x1e537d['onPointerUp$']['subscribeEvent']((_0x510b28,_0x4b1e98)=>{this['_handleConnectorPointerUp'](_0x1e537d,_0x3a438f,_0x510b28,_0x940dd4,_0x1ad11);}),_0x4c9afb[_0x2613d4(0x193)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x26e48c,_0x2aaf28,_0x3e95a2){const _0x11a564=_0x25219a;let _0x447f9b=this[_0x11a564(0x124)][_0x11a564(0x100)](_0x26e48c,_0x2aaf28,_0x3e95a2);if(!_0x447f9b||_0x447f9b[_0x11a564(0x27a)]===0x0)return;let _0x3f9e82=this['_renderManagerService'][_0x11a564(0x1dd)](_0x26e48c);if(!_0x3f9e82)return;let {scene:_0x1137b7}=_0x3f9e82;for(let _0x26e402 of _0x447f9b){let _0x263bad=_0x26e402[_0x11a564(0x287)],_0x5b6e97=this[_0x11a564(0x124)][_0x11a564(0x1f4)](_0x26e48c,_0x2aaf28,_0x263bad);if(!_0x5b6e97)continue;let _0x39ddb0=_0x5b6e97[_0x11a564(0x1d7)](),_0x464b90=_0x5b6e97['getEndConnectInfo'](),_0x411568=(_0x39ddb0==null?void 0x0:_0x39ddb0[_0x11a564(0x25a)])===_0x3e95a2,_0x2174ef=_0x566164({'unitId':_0x26e48c,'subUnitId':_0x2aaf28,'drawingId':_0x263bad}),_0x2ad164=_0x1137b7[_0x11a564(0x15b)](_0x2174ef);if(!_0x2ad164)continue;let _0x3046f8=this[_0x11a564(0x284)][_0x11a564(0x30c)]({'unitId':_0x26e48c,'subUnitId':_0x2aaf28,'drawingId':_0x263bad});_0x3046f8!=null&&_0x3046f8[_0x11a564(0x298)]&&(_0x39ddb0&&_0x464b90?this[_0x11a564(0x19a)](_0x26e48c,_0x2aaf28,_0x263bad,_0x5b6e97,_0x39ddb0,_0x464b90,_0x2ad164):this['_moveConnectorWithShape'](_0x26e48c,_0x2aaf28,_0x263bad,_0x5b6e97,_0x411568?_0x39ddb0:_0x464b90,_0x411568,_0x3046f8,_0x2ad164));}}[_0x25219a(0x19a)](_0x255b8e,_0x145a8a,_0x5777ef,_0x19b840,_0x1cbcf2,_0x4ff4c5,_0x54717e){const _0x5f4816=_0x25219a;let _0x335f6b=this[_0x5f4816(0x1c5)],_0xb2e3bb=this[_0x5f4816(0x333)];this[_0x5f4816(0x1c5)]=_0x255b8e,this[_0x5f4816(0x333)]=_0x145a8a;let _0x37675c=this['_getConnectPointInfo'](_0x1cbcf2),_0x13015b=this[_0x5f4816(0x280)](_0x4ff4c5);if(this[_0x5f4816(0x1c5)]=_0x335f6b,this[_0x5f4816(0x333)]=_0xb2e3bb,!_0x37675c||!_0x13015b)return;let _0x5a4437=_0x19b840[_0x5f4816(0x16e)](),_0x2a02a7=_0x5d6f7b(_0x37675c,_0x13015b,_0x5a4437);_0x2a02a7&&_0x19b840['updateLinePoints'](_0x2a02a7);let _0x3b543d=_0x47fdde(_0x2a02a7,_0x5a4437);_0x3b543d[_0x5f4816(0x2af)]!==_0x5a4437&&_0x19b840[_0x5f4816(0x2ff)](_0x3b543d[_0x5f4816(0x2af)]),_0x19b840[_0x5f4816(0x1c2)]();for(let [_0x1a0220,_0x1a6582]of Object['entries'](_0x3b543d[_0x5f4816(0x344)]))_0x19b840[_0x5f4816(0x2cf)](_0x1a0220,_0x1a6582);_0x19b840[_0x5f4816(0x256)]({'width':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x11f)],'height':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x270)]}),_0x54717e['transformByState']({'flipX':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x275)],'flipY':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x1a3)],'left':_0x3b543d[_0x5f4816(0x138)]['left'],'top':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x1e8)],'width':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x11f)],'height':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x270)],'angle':_0x3b543d[_0x5f4816(0xee)]}),_0x19b840[_0x5f4816(0x1df)]();}['_moveConnectorWithShape'](_0x5236fa,_0x3b1fde,_0x5a7083,_0x13cce6,_0x1221ae,_0x5b902b,_0x33f3fa,_0x4b303e){const _0x21aae7=_0x25219a;let _0x2ca978=this[_0x21aae7(0x1c5)],_0x579a5a=this[_0x21aae7(0x333)];this['_unitId']=_0x5236fa,this[_0x21aae7(0x333)]=_0x3b1fde;let _0x2a8f1e=this[_0x21aae7(0x280)](_0x1221ae);if(this[_0x21aae7(0x1c5)]=_0x2ca978,this['_subUnitId']=_0x579a5a,!_0x2a8f1e)return;let {left:_0x2ea6af=0x0,top:_0x16cd90=0x0,width:_0xcd83f=0x0,height:_0x4a79c5=0x0,flipX:_0x28b09a=!0x1,flipY:_0x3593e0=!0x1}=_0x33f3fa[_0x21aae7(0x298)],_0x206fd3=_0x13cce6[_0x21aae7(0x175)]();if(_0x206fd3[_0x21aae7(0x27a)]<0x2)return;let _0x24062a=new _0xd7d9f3({'left':_0x2ea6af,'top':_0x16cd90,'width':_0xcd83f,'height':_0x4a79c5,'flipX':_0x28b09a,'flipY':_0x3593e0}),_0x21d7f3=_0x5b902b?_0x206fd3[_0x206fd3[_0x21aae7(0x27a)]-0x1]:_0x206fd3[0x0],_0x35f161=_0x24062a[_0x21aae7(0x16d)](_0x21d7f3),_0x2576ff=_0xd7d9f3[_0x21aae7(0x276)](_0x35f161,_0x2a8f1e['point'],!_0x5b902b);_0x4b303e['transformByState']({'flipX':_0x2576ff['worldRect'][_0x21aae7(0x275)],'flipY':_0x2576ff[_0x21aae7(0x138)]['flipY'],'left':_0x2576ff['worldRect'][_0x21aae7(0x242)],'top':_0x2576ff[_0x21aae7(0x138)]['top'],'width':_0x2576ff[_0x21aae7(0x138)][_0x21aae7(0x11f)],'height':_0x2576ff[_0x21aae7(0x138)]['height'],'angle':_0x2576ff[_0x21aae7(0x138)][_0x21aae7(0x26e)]}),_0x4b303e[_0x21aae7(0x154)](!0x0);}[_0x25219a(0x14d)](){const _0x581b8a=_0x25219a;this[_0x581b8a(0x1bb)][_0x581b8a(0x27a)]!==0x0&&(this['_connectorObjects'][_0x581b8a(0x162)](_0xf754b3=>{_0xf754b3['dispose']();}),this[_0x581b8a(0x1bb)]=[]);}[_0x25219a(0x231)](){const _0x509c6b=_0x25219a;let _0x6dc327=this[_0x509c6b(0xfe)][_0x509c6b(0x1ac)](_0x2e857c['UNIVER_SHEET']);this['disposeWithMe'](_0x6dc327['pipe'](_0x54e619(_0x5bbc68=>_0x5bbc68?_0x5bbc68[_0x509c6b(0x263)][_0x509c6b(0x17c)](_0x54e619(_0x37a99a=>{const _0x500366=_0x509c6b;if(!_0x37a99a)return _0x1997e0;let _0x5b99da=_0x5bbc68['getUnitId'](),_0x344961=this[_0x500366(0x145)][_0x500366(0x1dd)](_0x5b99da),_0x98910b=_0x344961==null?void 0x0:_0x344961[_0x500366(0x19b)];return _0x98910b?_0x36ada1(_0x98910b):_0x1997e0;})):_0x1997e0))[_0x509c6b(0x1a5)](_0x3ffb21=>{const _0x479a02=_0x509c6b;let _0x95690c=_0x3ffb21[_0x479a02(0x253)]();this[_0x479a02(0x1b1)](_0x3ffb21[_0x479a02(0x131)][_0x479a02(0x1ab)](_0x48281e=>{const _0x1c63aa=_0x479a02;this[_0x1c63aa(0x2ef)]&&this['_activeShapeId']&&this[_0x1c63aa(0x14d)]();})),this[_0x479a02(0x1b1)](_0x95690c['changeStart$'][_0x479a02(0x1a5)](_0x3f2969=>{const _0xa07848=_0x479a02;let {objects:_0x44e0a6}=_0x3f2969;this['_clearShapeConnectorHandlerObjects'](),_0x44e0a6!==null&&_0x44e0a6[_0xa07848(0x32f)]===0x1&&_0x44e0a6['values']()[_0xa07848(0x32d)]()[_0xa07848(0x335)]instanceof Ln&&(this[_0xa07848(0x2ef)]=!0x0);})),this[_0x479a02(0x1b1)](_0x95690c[_0x479a02(0x155)][_0x479a02(0x1a5)](_0x3e23ec=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x479a02(0x1b1)](_0x3ffb21[_0x479a02(0x2fc)]['subscribeEvent'](()=>{const _0x372ea7=_0x479a02;this[_0x372ea7(0x2ef)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x479a02(0x1b1)](_0x95690c[_0x479a02(0x313)]['subscribe'](()=>{const _0x5d835e=_0x479a02;this['_unitId']&&this[_0x5d835e(0x333)]&&this[_0x5d835e(0x25d)]&&this[_0x5d835e(0x284)][_0x5d835e(0x30c)]({'unitId':this[_0x5d835e(0x1c5)],'subUnitId':this[_0x5d835e(0x333)],'drawingId':this[_0x5d835e(0x25d)]})&&(this[_0x5d835e(0x14d)](),this[_0x5d835e(0x210)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x10c79a=_0x25219a;this[_0x10c79a(0x1b1)](this[_0x10c79a(0x284)]['focus$'][_0x10c79a(0x1a5)](_0x304bef=>{const _0x1d4f72=_0x10c79a;if(_0x304bef['length']===0x1){let _0x3dcccc=_0x304bef[0x0];if(_0x3dcccc[_0x1d4f72(0x2b3)]===_0x161136['DRAWING_SHAPE']){let _0x3a5de4=this[_0x1d4f72(0x124)][_0x1d4f72(0x1f4)](_0x3dcccc[_0x1d4f72(0x151)],_0x3dcccc[_0x1d4f72(0x21f)],_0x3dcccc['drawingId']);if(_0x3a5de4&&_0x41a954(_0x3a5de4[_0x1d4f72(0x16e)]())){this[_0x1d4f72(0x25d)]=_0x3dcccc[_0x1d4f72(0x2c2)],this['_unitId']=_0x3dcccc[_0x1d4f72(0x151)],this[_0x1d4f72(0x333)]=_0x3dcccc[_0x1d4f72(0x21f)],this[_0x1d4f72(0x14d)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x1d4f72(0x25d)]=void 0x0,this[_0x1d4f72(0x1c5)]=void 0x0,this[_0x1d4f72(0x333)]=void 0x0,this[_0x1d4f72(0x14d)]();})),this[_0x10c79a(0x1b1)](this[_0x10c79a(0x284)][_0x10c79a(0x22c)][_0x10c79a(0x1a5)](_0x196c28=>{const _0x2cd359=_0x10c79a;if(_0x196c28[_0x2cd359(0x27a)]===0x1){var _0x5a1459;let _0x8b31f6=_0x196c28[0x0],_0x5d8a41=(_0x5a1459=this[_0x2cd359(0x284)][_0x2cd359(0x30c)](_0x8b31f6))==null?void 0x0:_0x5a1459[_0x2cd359(0x2b3)];_0x5d8a41===_0x161136['DRAWING_SHAPE']&&_0x8b31f6[_0x2cd359(0x2c2)]===this[_0x2cd359(0x25d)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x2cd359(0x25d)]&&_0x5d8a41===_0x161136[_0x2cd359(0x25c)]&&this[_0x2cd359(0x332)](_0x8b31f6[_0x2cd359(0x151)],_0x8b31f6[_0x2cd359(0x21f)],_0x8b31f6['drawingId']);}})),this['disposeWithMe'](this[_0x10c79a(0x284)][_0x10c79a(0x2c0)]['subscribe'](_0x28ecca=>{const _0x50fa99=_0x10c79a;for(let _0x2002f2 of _0x28ecca){let {drawingId:_0x60569b}=_0x2002f2;if(this['_activeShapeId']===_0x60569b){this[_0x50fa99(0x1cb)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5da5bf,_0x56aae3,_0x3b3d6f,_0x2e5ee5,_0x2ac315){const _0x539b3e=_0x25219a;var _0x298e8b;if(!this[_0x539b3e(0x16c)])return;let _0x471e4c=this[_0x539b3e(0x280)](_0x5da5bf);if(!_0x471e4c)return;let _0x132ca9=this[_0x539b3e(0x165)]?this[_0x539b3e(0x165)][_0x539b3e(0x30a)]:_0x56aae3,_0x2bb865=this[_0x539b3e(0x165)]?this['_currentConnectionTarget'][_0x539b3e(0x26e)]:this[_0x539b3e(0x1bd)](_0x471e4c['point'],_0x132ca9),_0x3b88ba;if(this[_0x539b3e(0x165)]){let _0x30ac3c=this['_drawingManagerService'][_0x539b3e(0x30c)]({'unitId':this['_currentConnectionTarget'][_0x539b3e(0x151)],'subUnitId':this[_0x539b3e(0x165)]['subUnitId'],'drawingId':this[_0x539b3e(0x165)]['shapeId']});if(_0x30ac3c!=null&&_0x30ac3c[_0x539b3e(0x298)]){let {left:_0x4b0d03=0x0,top:_0x4b0f3d=0x0,width:_0x1e013b=0x0,height:_0x16ef94=0x0,angle:_0x41325b}=_0x30ac3c[_0x539b3e(0x298)];_0x3b88ba=_0x10ab2a({'left':_0x4b0d03,'top':_0x4b0f3d,'width':_0x1e013b,'height':_0x16ef94},_0x41325b||0x0);}else _0x3b88ba={'left':_0x132ca9['x'],'top':_0x132ca9['y'],'width':0x0,'height':0x0};}else _0x3b88ba={'left':_0x132ca9['x'],'top':_0x132ca9['y'],'width':0x0,'height':0x0};let _0x3e25fc={'point':_0x132ca9,'angle':_0x2bb865,'bounds':_0x3b88ba},_0x42efa6=_0x3b3d6f?_0x3e25fc:_0x471e4c,_0x34bea4=_0x3b3d6f?_0x471e4c:_0x3e25fc,_0x5a3a3a=this[_0x539b3e(0x16c)][_0x539b3e(0x16e)](),_0x27b7e1=_0x5d6f7b(_0x42efa6,_0x34bea4,_0x5a3a3a);_0x27b7e1&&this[_0x539b3e(0x16c)][_0x539b3e(0x22a)](_0x27b7e1);let _0x622a7e=_0x47fdde(_0x27b7e1,_0x5a3a3a);_0x622a7e[_0x539b3e(0x2af)]!==_0x5a3a3a&&this[_0x539b3e(0x16c)]['changeShapeType'](_0x622a7e[_0x539b3e(0x2af)]);for(let [_0x16e430,_0x449b34]of Object[_0x539b3e(0x277)](_0x622a7e['adjustValues']))this['_activeShapeModel']['setAdjustValueByName'](_0x16e430,_0x449b34);this[_0x539b3e(0x16c)][_0x539b3e(0x256)]({'width':_0x622a7e['worldRect']['width'],'height':_0x622a7e['worldRect'][_0x539b3e(0x270)]}),_0x2e5ee5['transformByState']({'flipX':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x275)],'flipY':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x1a3)],'left':_0x622a7e[_0x539b3e(0x138)]['left'],'top':_0x622a7e['worldRect']['top'],'width':_0x622a7e[_0x539b3e(0x138)]['width'],'height':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x270)],'angle':_0x622a7e[_0x539b3e(0xee)]}),_0x2e5ee5['makeDirty'](!0x0);let _0x33f438=((_0x298e8b=this[_0x539b3e(0x165)])==null?void 0x0:_0x298e8b[_0x539b3e(0x30a)])??_0x56aae3;_0x2ac315[_0x539b3e(0xfd)]({'left':_0x33f438['x']-_0x373ebe[_0x539b3e(0x1ea)],'top':_0x33f438['y']-_0x373ebe[_0x539b3e(0x1ea)]});}['_handleFreeEndpointMove'](_0x3d3464,_0x3e6d1e,_0x1efe9c,_0x47fc4c,_0x3cd0b0){const _0x732367=_0x25219a;var _0x583d07,_0x5b6fad;let _0x529f03=((_0x583d07=this['_currentConnectionTarget'])==null?void 0x0:_0x583d07[_0x732367(0x30a)])??_0x3d3464,_0x39171c=_0xd7d9f3[_0x732367(0x276)](_0x3e6d1e,_0x529f03,_0x1efe9c);_0x47fc4c[_0x732367(0xfd)]({'flipX':_0x39171c['worldRect'][_0x732367(0x275)],'flipY':_0x39171c['worldRect'][_0x732367(0x1a3)],'left':_0x39171c[_0x732367(0x138)][_0x732367(0x242)],'top':_0x39171c[_0x732367(0x138)][_0x732367(0x1e8)],'width':_0x39171c[_0x732367(0x138)][_0x732367(0x11f)],'height':_0x39171c['worldRect'][_0x732367(0x270)],'angle':_0x39171c['worldRect'][_0x732367(0x26e)]});let _0x5a8d55=((_0x5b6fad=this[_0x732367(0x165)])==null?void 0x0:_0x5b6fad[_0x732367(0x30a)])??_0x3d3464;_0x3cd0b0[_0x732367(0xfd)]({'left':_0x5a8d55['x']-_0x373ebe[_0x732367(0x1ea)],'top':_0x5a8d55['y']-_0x373ebe[_0x732367(0x1ea)]});}[_0x25219a(0x280)](_0x6d0216){const _0x3b47d5=_0x25219a;if(!this[_0x3b47d5(0x1c5)]||!this[_0x3b47d5(0x333)])return null;let {shapeId:_0x5e83f3,cxnIndex:_0x59fe06}=_0x6d0216,_0x30512e=this[_0x3b47d5(0x124)]['getShapeModel'](this[_0x3b47d5(0x1c5)],this['_subUnitId'],_0x5e83f3);if(!_0x30512e)return null;let _0x46dc7a=this[_0x3b47d5(0x284)][_0x3b47d5(0x30c)]({'unitId':this[_0x3b47d5(0x1c5)],'subUnitId':this[_0x3b47d5(0x333)],'drawingId':_0x5e83f3});if(!(_0x46dc7a!=null&&_0x46dc7a[_0x3b47d5(0x298)]))return null;let {left:_0x290b10=0x0,top:_0x8e8ed8=0x0,width:_0x1b75da=0x0,height:_0x54535d=0x0,flipX:_0x71a023=!0x1,flipY:_0x11f914=!0x1,angle:_0x5b2f61}=_0x46dc7a[_0x3b47d5(0x298)];_0x30512e[_0x3b47d5(0x256)]({'width':_0x1b75da,'height':_0x54535d});let _0x58e7a9=_0x30512e[_0x3b47d5(0x201)]()['find'](_0xa75468=>_0xa75468[_0x3b47d5(0x278)]===_0x59fe06);if(!_0x58e7a9)return null;let _0xd1e5c8=_0x71a023?_0x1b75da-_0x58e7a9['x']:_0x58e7a9['x'],_0x5d404e=_0x11f914?_0x54535d-_0x58e7a9['y']:_0x58e7a9['y'];if(_0x5b2f61!==0x0&&_0x5b2f61!=null){let _0x2ec799=_0x5b2f61*Math['PI']/0xb4,_0x10ee58=Math[_0x3b47d5(0x214)](_0x2ec799),_0x3ed85e=Math['sin'](_0x2ec799),_0xcf082a=_0x1b75da/0x2,_0x1656e2=_0x54535d/0x2,_0x220c82=_0xd1e5c8-_0xcf082a,_0x1c75dc=_0x5d404e-_0x1656e2;_0xd1e5c8=_0xcf082a+_0x220c82*_0x10ee58-_0x1c75dc*_0x3ed85e,_0x5d404e=_0x1656e2+_0x220c82*_0x3ed85e+_0x1c75dc*_0x10ee58;}_0xd1e5c8+=_0x290b10,_0x5d404e+=_0x8e8ed8;let _0x9603d4=_0x58e7a9[_0x3b47d5(0x261)]/0xea60;_0x71a023&&(_0x9603d4=0xb4-_0x9603d4),_0x11f914&&(_0x9603d4=-_0x9603d4),_0x9603d4+=_0x5b2f61||0x0,_0x9603d4=(_0x9603d4%0x168+0x168)%0x168;let _0x9c61ad=_0x10ab2a({'left':_0x290b10,'top':_0x8e8ed8,'width':_0x1b75da,'height':_0x54535d},_0x5b2f61||0x0);return{'point':{'x':_0xd1e5c8,'y':_0x5d404e},'angle':_0x9603d4,'bounds':_0x9c61ad};}[_0x25219a(0x1bd)](_0x17dadf,_0x3f127e){const _0x4c5d60=_0x25219a;let _0x269131=_0x3f127e['x']-_0x17dadf['x'],_0x4b44a2=_0x3f127e['y']-_0x17dadf['y'];return Math[_0x4c5d60(0x18f)](_0x269131)>=Math[_0x4c5d60(0x18f)](_0x4b44a2)?_0x269131>=0x0?0xb4:0x0:_0x4b44a2>=0x0?0x10e:0x5a;}['_reset'](){const _0x191cf6=_0x25219a;this['_activeShapeId']=void 0x0,this[_0x191cf6(0x1c5)]=void 0x0,this[_0x191cf6(0x333)]=void 0x0,this[_0x191cf6(0x14d)]();}[_0x25219a(0x259)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};Ir=Z([X(0x1,_0x16d336),X(0x2,_0x471989),X(0x3,_0x492363),X(0x4,_0x230412),X(0x5,_0x396ece(_0x6985f7)),X(0x6,_0x396ece(zn)),X(0x7,_0x396ece(Nr))],Ir);let Lr=class extends _0x3ba2e2{constructor(_0x25e998,_0x371f8e,_0x4773d5){const _0x313cf8=_0x25219a;super(),this[_0x313cf8(0x236)]=_0x25e998,this['_drawingManagerService']=_0x371f8e,this[_0x313cf8(0x1b8)]=_0x4773d5,this[_0x313cf8(0x26f)]();}[_0x25219a(0x26f)](){const _0x248087=_0x25219a;this['disposeWithMe'](this[_0x248087(0x236)][_0x248087(0x346)][_0x248087(0x1e4)](this[_0x248087(0x236)][_0x248087(0x346)][_0x248087(0x240)]()[_0x248087(0x2e7)],{'handler':(_0x39d2cd,_0x20c1a4,_0x34fd03)=>{const _0x393a5c=_0x248087;var _0x522f56;let {unitId:_0x2df88e,subUnitId:_0x4c5190,scene:_0x560335,resourceCollector:_0x48ecb2}=_0x20c1a4,_0xa7997=(_0x522f56=this[_0x393a5c(0x284)][_0x393a5c(0x192)](_0x2df88e))==null?void 0x0:_0x522f56[_0x4c5190];return _0xa7997==null||_0xa7997[_0x393a5c(0x2d6)][_0x393a5c(0x162)](_0x131470=>{const _0x24be87=_0x393a5c;let _0xbddaab=_0xa7997[_0x24be87(0x2b0)][_0x131470];_0xbddaab['drawingType']===_0x161136['DRAWING_SHAPE']&&!_0xbddaab[_0x24be87(0x160)]&&this[_0x24be87(0x1b8)][_0x24be87(0x32b)](_0xbddaab,_0x560335,{'resourceCollector':_0x48ecb2});}),_0x34fd03(_0x39d2cd);}}));}};Lr=Z([X(0x0,_0x396ece(_0x5c886c)),X(0x1,_0x492363),X(0x2,_0x396ece(Q))],Lr);let Rr=class extends _0x3ba2e2{constructor(_0x59098d,_0x58aa36,_0x5647a6){const _0x4124c2=_0x25219a;super(),this[_0x4124c2(0x2cc)]=_0x59098d,this[_0x4124c2(0x1f0)]=_0x58aa36,this['_sheetPermissionCheckController']=_0x5647a6,this[_0x4124c2(0x200)]();}[_0x25219a(0x200)](){const _0x2d041e=_0x25219a;this['disposeWithMe'](this[_0x2d041e(0x2cc)]['beforeCommandExecuted'](_0x205b82=>{const _0x4203e2=_0x2d041e;let _0x23aa7a,_0x179ca9;if(_0x205b82['id']===_0x3a08e6['id']||_0x205b82['id']===_0x5e53bf['id']||_0x205b82['id']===_0xdc15a6['id']){let _0x4bdf8d=_0x205b82[_0x4203e2(0x17a)];_0x23aa7a=_0x4bdf8d['unitId'],_0x179ca9=_0x4bdf8d[_0x4203e2(0x21f)];}!_0x23aa7a||!_0x179ca9||this['_sheetPermissionCheckController'][_0x4203e2(0x341)]({'workbookTypes':[_0x8641fc],'worksheetTypes':[_0xc6d67c]},_0x23aa7a,_0x179ca9)||this['_sheetPermissionCheckController'][_0x4203e2(0x150)](this[_0x4203e2(0x1f0)]['t'](_0x4203e2(0x11a)));}));}};Rr=Z([X(0x0,_0x396ece(_0x16d336)),X(0x1,_0x396ece(_0x404764)),X(0x2,_0x396ece(_0x5e60fd))],Rr);let zr=class extends _0x3ba2e2{constructor(_0x4a63fa,_0x21e6fc,_0x18b6a3,_0x233a8a,_0x502a46,_0x418aaa,_0x15ac26,_0x3c9eb3,_0x41fa5a,_0x4f8570,_0x560539){const _0x3226f7=_0x25219a;super(),this[_0x3226f7(0xfe)]=_0x4a63fa,this[_0x3226f7(0x104)]=_0x21e6fc,this[_0x3226f7(0x22e)]=_0x18b6a3,this[_0x3226f7(0x124)]=_0x233a8a,this[_0x3226f7(0x1f0)]=_0x502a46,this[_0x3226f7(0x2cc)]=_0x418aaa,this[_0x3226f7(0x284)]=_0x15ac26,this[_0x3226f7(0x226)]=_0x3c9eb3,this[_0x3226f7(0x1e9)]=_0x41fa5a,this['_renderManagerService']=_0x4f8570,this[_0x3226f7(0x30f)]=_0x560539,Y(this,_0x3226f7(0x19d),null),Y(this,_0x3226f7(0x2a3),null),Y(this,_0x3226f7(0x1d5),!0x1),Y(this,'_shapeEditPanelVersion',0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x3226f7(0x2c9),[]),this['_initMenu'](),this[_0x3226f7(0x1b1)](this[_0x3226f7(0xfe)][_0x3226f7(0x1ac)](_0x2e857c[_0x3226f7(0x243)])[_0x3226f7(0x1a5)](_0x158b18=>{const _0x4bb559=_0x3226f7;if(!_0x158b18){var _0xc30218;(_0xc30218=this[_0x4bb559(0x19d)])==null||_0xc30218[_0x4bb559(0x259)]();return;}this['_createShapePopupMenu'](_0x158b18);})),this[_0x3226f7(0x227)](),this[_0x3226f7(0x2bf)](),this[_0x3226f7(0x1b1)](this[_0x3226f7(0x30f)][_0x3226f7(0x325)]['subscribe'](_0xd0e5d8=>{const _0x58fae6=_0x3226f7;_0xd0e5d8&&this[_0x58fae6(0x2c7)]();}));}[_0x25219a(0x288)](){const _0x501ab3=_0x25219a;this[_0x501ab3(0x22e)]['mergeMenu'](lr);}['initShapePopupMenu'](){const _0x3098a6=_0x25219a;this[_0x3098a6(0xfe)][_0x3098a6(0x14f)](_0x2e857c['UNIVER_SHEET'])[_0x3098a6(0x162)](_0x1460ba=>this[_0x3098a6(0x29e)](_0x1460ba));}[_0x25219a(0x15e)](_0x59ae55,_0x5aed65,_0x2a6d68){const _0x4bb723=_0x25219a;let _0x4ec512=this['_sheetsShapeService'][_0x4bb723(0x218)](_0x59ae55,_0x5aed65,_0x2a6d68),_0x2d7a00=this[_0x4bb723(0x124)][_0x4bb723(0x137)](_0x59ae55,_0x5aed65,_0x2a6d68);return _0x4ec512!==void 0x0&&_0x2d7a00!==void 0x0?{'shapeData':_0x2d7a00,'shapeId':_0x2a6d68,'shapeType':_0x4ec512,'unitId':_0x59ae55,'subUnitId':_0x5aed65,'version':this[_0x4bb723(0x2aa)],'disableShapeOption':!0x1}:null;}[_0x25219a(0x29e)](_0xd6d4aa){const _0x1389cd=_0x25219a;if(!_0xd6d4aa)return;let _0x4e299f=_0xd6d4aa[_0x1389cd(0x1cd)]();this['_renderManagerService'][_0x1389cd(0x135)](_0x4e299f)&&!this[_0x1389cd(0x1f2)][_0x1389cd(0x135)](_0x4e299f)&&(this[_0x1389cd(0x294)](_0x4e299f),this[_0x1389cd(0x1f2)][_0x1389cd(0x119)](_0x4e299f));}[_0x25219a(0x2c7)](){const _0x3a496b=_0x25219a;this[_0x3a496b(0x2c9)][_0x3a496b(0x162)](_0x2d18f5=>_0x2d18f5['dispose']()),this[_0x3a496b(0x2c9)][_0x3a496b(0x27a)]=0x0;}['_popupMenuListener'](_0x300caf){const _0x559517=_0x25219a;var _0x506758;let _0x1c8bff=(_0x506758=this['_renderManagerService'][_0x559517(0x1dd)](_0x300caf))==null?void 0x0:_0x506758[_0x559517(0x19b)],_0xae563d=_0x1c8bff==null?void 0x0:_0x1c8bff[_0x559517(0x253)]();!_0x1c8bff||!_0xae563d||(this['disposeWithMe'](_0xae563d[_0x559517(0x123)]['subscribe'](()=>{const _0x5138b3=_0x559517;let _0x5c89ba=_0xae563d[_0x5138b3(0x1f8)]();if(this[_0x5138b3(0x2c7)](),this[_0x5138b3(0x1d5)]||_0x5c89ba[_0x5138b3(0x32f)]>0x1)return;let _0x516458=_0x5c89ba[_0x5138b3(0x1c8)]()[_0x5138b3(0x32d)]()[_0x5138b3(0x335)];if(!_0x516458)return;let _0x4ba2e2=this['_drawingManagerService'][_0x5138b3(0x12b)](_0x516458[_0x5138b3(0x161)]);if(!_0x4ba2e2||_0x4ba2e2[_0x5138b3(0x2b3)]!==_0x161136['DRAWING_SHAPE'])return;let {unitId:_0x3c7ef4,subUnitId:_0x52076a,drawingId:_0x3c257b,drawingType:_0x47c068}=_0x4ba2e2,_0x4b8543=this[_0x5138b3(0x15e)](_0x3c7ef4,_0x52076a,_0x3c257b);if(!_0x4b8543)return;this[_0x5138b3(0x1e9)][_0x5138b3(0x25f)](_0x29948b,!0x0);let _0x1d447a=this[_0x5138b3(0x226)][_0x5138b3(0x2eb)](_0x516458,{'componentKey':Wn,'direction':'top-center','offset':[0x0,_0xa70bb9],'extraProps':{'unitId':_0x3c7ef4,'subUnitId':_0x52076a,'drawingId':_0x3c257b,'drawingType':_0x47c068,'shapeType':_0x4b8543[_0x5138b3(0x1c7)],'shapeData':_0x4b8543['shapeData']}});this[_0x5138b3(0x2c9)][_0x5138b3(0xfc)](this[_0x5138b3(0x1b1)](_0x1d447a)),this[_0x5138b3(0x284)]['getFocusDrawings']()['find'](_0x15e027=>_0x15e027[_0x5138b3(0x151)]===_0x3c7ef4&&_0x15e027[_0x5138b3(0x21f)]===_0x52076a&&_0x15e027[_0x5138b3(0x2c2)]===_0x3c257b)||this[_0x5138b3(0x284)][_0x5138b3(0x27f)]([{'unitId':_0x3c7ef4,'subUnitId':_0x52076a,'drawingId':_0x3c257b}]);})),this['disposeWithMe'](_0xae563d[_0x559517(0x2c1)][_0x559517(0x1a5)](()=>{const _0x15f012=_0x559517;this[_0x15f012(0x2c7)](),this[_0x15f012(0x1e9)][_0x15f012(0x25f)](_0x29948b,!0x1),this['_drawingManagerService'][_0x15f012(0x27f)](null);})),this[_0x559517(0x1b1)](_0xae563d[_0x559517(0x155)][_0x559517(0x1a5)](()=>{this['_clearPopups']();})),this[_0x559517(0x1b1)](_0xae563d[_0x559517(0x255)][_0x559517(0x1a5)](()=>{this['_clearPopups']();})));}[_0x25219a(0x227)](){const _0x5e4e07=_0x25219a;this[_0x5e4e07(0x1b1)](this[_0x5e4e07(0x2cc)][_0x5e4e07(0x24a)](_0xd7da00=>{const _0x569639=_0x5e4e07;if(_0xd7da00['id']===pr['id']){let {unitId:_0xd25e06,subUnitId:_0x582691,drawingId:_0x547bb9}=_0xd7da00[_0x569639(0x17a)];this[_0x569639(0x2aa)]+=0x1,this[_0x569639(0x2a3)]=this[_0x569639(0x15e)](_0xd25e06,_0x582691,_0x547bb9),this['_clearPopups'](),this[_0x569639(0x1f1)]();}if(_0xd7da00['id']===fr['id']&&(this[_0x569639(0x2a3)]=null,this[_0x569639(0x204)]()),_0xd7da00['id']===_0x46a98e['id']){let {unitId:_0x3e143b,subUnitId:_0x602add,shapeId:_0x427435}=_0xd7da00['params'];if(this[_0x569639(0x2a3)]&&this['_activeShapeInfo']['shapeId']===_0x427435){let _0x2c2397=this[_0x569639(0x15e)](_0x3e143b,_0x602add,_0x427435);_0x2c2397&&(this[_0x569639(0x2aa)]+=0x1,_0x2c2397[_0x569639(0x24e)]=this['_shapeEditPanelVersion'],this[_0x569639(0x2a3)]=_0x2c2397,this[_0x569639(0x1d5)]&&this[_0x569639(0x1f1)]());}}})),this['disposeWithMe'](this[_0x5e4e07(0x284)][_0x5e4e07(0x250)][_0x5e4e07(0x1a5)](_0x5b5443=>{const _0x2645c7=_0x5e4e07;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x5b5443['length']===0x0){this['_activeShapeInfo']=null,this[_0x2645c7(0x204)]();return;}if(_0x5b5443[_0x2645c7(0x27a)]===0x1&&_0x5b5443[0x0][_0x2645c7(0x2b3)]===_0x161136[_0x2645c7(0x25c)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x2645c7(0x2a3)]=this['_getShapeInfo'](_0x5b5443[0x0]['unitId'],_0x5b5443[0x0]['subUnitId'],_0x5b5443[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x2645c7(0x1f1)]();return;}let _0x139d61=_0x5b5443[_0x2645c7(0x291)](_0x2fb987=>_0x2fb987['drawingType']===_0x161136['DRAWING_SHAPE']);if(_0x5b5443['length']>0x1&&_0x139d61[_0x2645c7(0x27a)]===_0x5b5443[_0x2645c7(0x27a)]){if(this[_0x2645c7(0x2aa)]+=0x1,this[_0x2645c7(0x2a3)]=this['_getShapeInfo'](_0x5b5443[0x0][_0x2645c7(0x151)],_0x5b5443[0x0]['subUnitId'],_0x5b5443[0x0][_0x2645c7(0x2c2)]),this['_activeShapeInfo']){this[_0x2645c7(0x1f1)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x2645c7(0x15e)](_0x5b5443[0x0][_0x2645c7(0x151)],_0x5b5443[0x0][_0x2645c7(0x21f)],_0x5b5443[0x0][_0x2645c7(0x2c2)]),this[_0x2645c7(0x2a3)]){this[_0x2645c7(0x2a3)][_0x2645c7(0x11c)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x2645c7(0x204)]();}));}[_0x25219a(0x1f1)](){const _0x53ce0d=_0x25219a;this[_0x53ce0d(0x2a3)]&&(this[_0x53ce0d(0x19d)]=this['_sidebarService'][_0x53ce0d(0x320)]({'id':Hn,'header':{'title':this[_0x53ce0d(0x1f0)]['t'](_0x53ce0d(0x290))},'width':0x184,'children':{'label':Hn,...this[_0x53ce0d(0x2a3)]},'onClose':()=>{const _0x29eec9=_0x53ce0d;this[_0x29eec9(0x284)]['focusDrawing'](null),this[_0x29eec9(0x1e9)][_0x29eec9(0x25f)](_0x29948b,!0x1),this[_0x29eec9(0x19d)]=null;}}),this[_0x53ce0d(0x1d5)]=!0x0);}['_closeShapeEditPanel'](){const _0x3a20b5=_0x25219a;this[_0x3a20b5(0x1d5)]=!0x1,this[_0x3a20b5(0x104)][_0x3a20b5(0xe9)](Hn),this[_0x3a20b5(0x19d)]=null,this[_0x3a20b5(0x1e9)][_0x3a20b5(0x25f)](_0x29948b,!0x1),this['_drawingManagerService'][_0x3a20b5(0x27f)](null);}};zr=Z([X(0x0,_0x230412),X(0x1,_0x396ece(_0x54fc19)),X(0x2,_0x23b358),X(0x3,_0x396ece(_0x6985f7)),X(0x4,_0x396ece(_0x404764)),X(0x5,_0x16d336),X(0x6,_0x492363),X(0x7,_0x396ece(_0x40f967)),X(0x8,_0x334f35),X(0x9,_0x471989),X(0xa,_0x396ece(Cr))],zr);let $=class extends _0x18bfbf{constructor(_0x3b9db1=mr,_0x14c648,_0x19119b,_0x37c028,_0x4cc5f5){const _0x20c8c3=_0x25219a;super(),this['_config']=_0x3b9db1,this[_0x20c8c3(0x281)]=_0x14c648,this[_0x20c8c3(0x2cc)]=_0x19119b,this[_0x20c8c3(0x2df)]=_0x37c028,this[_0x20c8c3(0x145)]=_0x4cc5f5;let {..._0x3f228f}=_0x575e93({},mr,this[_0x20c8c3(0x142)]);this['_configService'][_0x20c8c3(0x15d)]('sheets-shape-ui.config',_0x3f228f),this[_0x20c8c3(0x2a6)]();}[_0x25219a(0x21d)](){const _0x4f1ea4=_0x25219a;_0x28631c(this[_0x4f1ea4(0x281)],[[zr],[Ar],[Q],[Lr]]);}['onSteady'](){const _0x13d141=_0x25219a;this[_0x13d141(0x281)]['get'](zr)[_0x13d141(0x2bf)]();}[_0x25219a(0x2f2)](){const _0x523710=_0x25219a;[[Nr],[zn],[Pr]]['forEach'](_0x3ecfde=>this[_0x523710(0x281)][_0x523710(0x119)](_0x3ecfde)),_0x28631c(this[_0x523710(0x281)],[[Pr],[zn]]),this[_0x523710(0x145)]['registerRenderModule'](_0x2e857c[_0x523710(0x243)],[Nr]),this[_0x523710(0x145)]['registerRenderModule'](_0x2e857c['UNIVER_SHEET'],[Er]),this['_renderManagerService'][_0x523710(0x235)](_0x2e857c[_0x523710(0x243)],[Ir]),this[_0x523710(0x145)][_0x523710(0x235)](_0x2e857c[_0x523710(0x243)],[Or]),this[_0x523710(0x145)][_0x523710(0x235)](_0x2e857c[_0x523710(0x1b7)],[kr]);}['onStarting'](){const _0x5ed3e5=_0x25219a;this[_0x5ed3e5(0x281)][_0x5ed3e5(0x119)]([Tr]),this[_0x5ed3e5(0x281)][_0x5ed3e5(0x23e)](Tr);let _0x5b8c53=this[_0x5ed3e5(0x281)];[[zr],[Ar],[Q],[Lr],[vr],[Cr],[Dr],[Jn],[Rr]][_0x5ed3e5(0x162)](_0x1105bd=>_0x5b8c53[_0x5ed3e5(0x119)](_0x1105bd)),_0x28631c(this[_0x5ed3e5(0x281)],[[zr],[Ar],[Q],[vr],[Cr],[Dr],[Jn],[Rr]]);}[_0x25219a(0x2a6)](){const _0x51a639=_0x25219a;[Vn,An,fr,pr,qn,Bn][_0x51a639(0x162)](_0x29fd3f=>this['disposeWithMe'](this[_0x51a639(0x2cc)][_0x51a639(0x285)](_0x29fd3f)));}};Y($,_0x25219a(0x31a),_0x2e857c[_0x25219a(0x243)]),Y($,_0x25219a(0x2cb),_0x25219a(0x29c)),Y($,_0x25219a(0xf0),ur),Y($,'version',dr),$=Z([_0x5c3761(_0x355769,_0x72f746,_0xc0cade,_0x117474,_0x3bc238,_0x2afa3f,_0x10fd74,_0x57443e,_0x3eb575,_0x502bda,_0x337d0b,_0x48b0fa,_0x5409b9),X(0x1,_0x396ece(_0x3cde8e)),X(0x2,_0x16d336),X(0x3,_0x487002),X(0x4,_0x471989)],$);export{lr as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
1
+ const _0x1a57e9=_0x4a8a;(function(_0x5afab3,_0x322898){const _0x3121f5=_0x4a8a,_0x2911d3=_0x5afab3();while(!![]){try{const _0x43d3ab=parseInt(_0x3121f5(0x263))/0x1+parseInt(_0x3121f5(0x10c))/0x2*(parseInt(_0x3121f5(0x119))/0x3)+parseInt(_0x3121f5(0x143))/0x4*(-parseInt(_0x3121f5(0x365))/0x5)+parseInt(_0x3121f5(0x20b))/0x6*(-parseInt(_0x3121f5(0x1a8))/0x7)+parseInt(_0x3121f5(0x30e))/0x8+-parseInt(_0x3121f5(0x2e6))/0x9*(-parseInt(_0x3121f5(0x188))/0xa)+-parseInt(_0x3121f5(0x2ac))/0xb;if(_0x43d3ab===_0x322898)break;else _0x2911d3['push'](_0x2911d3['shift']());}catch(_0x558b35){_0x2911d3['push'](_0x2911d3['shift']());}}}(_0x2ae2,0x8d796));import{FormulaShapeAnimationController as _0xf4b281,SHAPE_CHANGE_PICKER_COMPONENT as _0x27ef7f,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x41e007,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x295cb8,ShapeEditPanel as _0x3b0964,ShapeFloatingToolbar as _0x9de617,ShapeFloatingToolbarService as _0x23dc66,ShapeFloatingToolbarToggleFactory as _0x5de80e,ShapeFormulaRibbonControl as _0x58ba9f,ShapeGroupEnum as _0x5254a4,ShapePickerDropdown as _0x4951a2,ShapePickerPanel as _0x55a6fc,ShapeQuickStyleGallery as _0xd337d7,ShapeStyleRibbonControl as _0x324497,ShapeTextEditorContainer as _0x15f4f4,ShapeTextFloatMenuRenderControllerBase as _0xc831bf,ShapeTextFloatToolbar as _0x2bc136,ShapeTextRibbonControl as _0x39ec8e,ToggleShapeFloatingToolbarOperation as _0x4879d7,UniverShapeEditorUIPlugin as _0x478c15,activateDrawingObject as _0x4d4798,buildShapeTextDataUpdate as _0x39d59f,clearActiveDrawingObjects as _0x4b95c2,drawFormulaShapeAnimationLayers as _0x3cbb8e,getDrawingTypeNameKey as _0x2a725c,getTextModel as _0x5702b3,getTextStyle as _0xf96880,normalizeShapeTextModel as _0x172b29,plainShapeTextToDocumentData as _0x109756,prepareShapeTextDocumentData as _0x3a9712,resolveFormulaShapeAutoFitSize as _0x38f6df,resolveShapeContextualRibbonHostMode as _0x1dcf15,resolveShapeTextDocumentRenderLayout as _0x507478,resolveShapeTextEditorBehaviorShapeData as _0x11b25b,resolveShapeTextEditorWrapStrategy as _0x15bc5a,shouldAllowShapeTextEditorHostSizeShrink as _0x5e39fb,shouldClipShapeTextDocument as _0x4b8f9a,useFormulaShapeToolbar as _0x34ed3a}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x3377c6,ContextMenuGroup as _0x5e36e3,ContextMenuPosition as _0x40b403,IMenuManagerService as _0x430f90,IRibbonService as _0xb3cad2,ISidebarService as _0xaf9369,IconManager as _0x5e4ceb,MenuItemType as _0x870bc4,MenuManagerPosition as _0x38bf7b,RibbonInsertGroup as _0x624e4b,UndoRedoGroupService as _0x59f03b,getMenuHiddenObservable as _0x472593,useDependency as _0x5ee9a9,useObservable as _0x263d75}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x34939a,ImageSourceTypeEnum as _0x55a71c,ShapeArrowSizeEnum as _0x505688,ShapeArrowTypeEnum as _0xb46528,ShapeDefaultConfig as _0x496afe,ShapeFillEnum as _0x478734,ShapeLineTypeEnum as _0x14ebc6,ShapeModel as _0x300a94,ShapeRenderModeEnum as _0x15c78e,ShapeTypeEnum as _0x2d2111,computeConnectorRouteLayout as _0x3225ee,getBasicShapeRotateBound as _0x23a439,isConnectorShape as _0x3863ab,isCurvedConnectorShape as _0x338f6a,routeConnectorLineShape as _0x22ac34}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3f61b0,UniverShapeEditorPlugin as _0x1c59b7,applyQuickStyleToShapeData as _0x1c41c8,cloneShapeDataForType as _0x4ebde1,createShapeFormulaDocument as _0x1b2670,createShapeTextBoxShapeData as _0x294eed,getShapeQuickStylePreset as _0x36420e,getShapeQuickStyleType as _0x38830c,resolveActiveShapeQuickStylePresetId as _0x33cca3}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x2f0bb2,InsertSheetsShapeMutation as _0x3b9418,RemoveSheetsShapeMutation as _0x642eb,SetShapeDrawingDataCommand as _0x457236,SheetsShapeService as _0x434a53,ToggleSheetsShapeFlipCommand as _0x219c9d,UniverSheetsShapePlugin as _0x30de56,UpdateConnectorRelationCommand as _0x2a81d3,UpdateLineShapeResizeCommand as _0x569950,UpdateSheetsShapeDataMutation as _0x926363}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x292bd6,CommandType as _0x42d4f6,DependentOn as _0x2c3830,Disposable as _0x458cfa,DocumentDataModel as _0xa70116,DrawingTypeEnum as _0x3a939e,FOCUSING_COMMON_DRAWINGS as _0x4f1989,FOCUSING_SHAPE_TEXT_EDITOR as _0x5efdd2,HorizontalAlign as _0x59b547,ICommandService as _0x1b8f46,IConfigService as _0x7f334e,IContextService as _0x593690,IImageIoService as _0x2f32ce,IURLImageService as _0x5b58f3,IUndoRedoService as _0x43ae7b,IUniverInstanceService as _0x4b61f3,Inject as _0x236d5e,Injector as _0x8c9613,LocaleService as _0x1d78e7,Plugin as _0x50de7b,UniverInstanceType as _0x3d832c,VerticalAlign as _0x12d55d,createInternalEditorID as _0x5dbcda,generateRandomId as _0xa48e11,merge as _0x5e4367,toDisposable as _0x3ee632,touchDependencies as _0xaddeba}from'@univerjs/core';import{CopySheetCommand as _0x2bae38,RemoveSheetCommand as _0x12e6cd,SheetInterceptorService as _0x9bde8a,SheetPermissionCheckController as _0x2c3559,SheetSkeletonService as _0x3bd31c,SheetsSelectionsService as _0x17030f,UniverSheetsPlugin as _0x5e916d,WorkbookEditablePermission as _0x386d00,WorksheetEditPermission as _0x18e121,attachRangeWithCoord as _0x4da051,discreteRangeToRange as _0x2b7982,getSheetCommandTarget as _0x5a285c}from'@univerjs/sheets';import{IDrawingManagerService as _0x3398d1,SetDrawingSelectedOperation as _0x158934,UniverDrawingPlugin as _0x915f2c,getDrawingShapeKeyByDrawingSearch as _0x238087}from'@univerjs/drawing';import{CURSOR_TYPE as _0xee2861,Circle as _0x20c694,DRAWING_OBJECT_LAYER_INDEX as _0x5ad001,DocumentSkeleton as _0x5bc5b7,DocumentViewModel as _0x927fe0,Documents as _0x8ae97c,IRenderManagerService as _0xebded9,Image as _0x5621f4,RENDER_CLASS_TYPE as _0x2b860b,SHEET_VIEWPORT_KEY as _0x3bda53,Shape as _0x38cc74,Transform as _0x228916,UniverRenderEnginePlugin as _0x6f6e81,Vector2 as _0x1cc756}from'@univerjs/engine-render';import{COPY_TYPE as _0x1b2302,ISheetClipboardService as _0x21ba5b,PREDEFINED_HOOK_NAME as _0x375ec3,SheetCanvasPopManagerService as _0x5d6395,SheetPrintInterceptorService as _0x3dbf35,SheetScrollManagerService as _0x56e08d,SheetSkeletonManagerService as _0x2bd201,UniverSheetsUIPlugin as _0x13359c,deriveStateFromActiveSheet$ as _0x3c15b6,getCurrentRangeDisable$ as _0x5052c4,getViewportByCell as _0x56ed68}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x266901,EMPTY as _0x3b0f55,Observable as _0x96c1cf,map as _0x1e6cce,of as _0x36bcf9,startWith as _0x49a949,switchMap as _0x1990de}from'rxjs';import{DrawingCommonPanel as _0x31e0d1,DrawingImageClipService as _0x5ae22a,DrawingRenderService as _0xe6009a,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x5f0802,OBJECT_LIST_FLOATING_SECTION_ID as _0x182658,ObjectListPanelBase as _0x3b8f7e,UniverDrawingUIPlugin as _0x1d6e19,getCurrentUnitInfo as _0x31acf7,getObjectListPanelLabels as _0x5dfe29,getObjectListPanelSectionIdForDrawingType as _0x4c8a2b,getObjectListPanelTypeName as _0x5163f8,insertGroupObject as _0x1dfb81}from'@univerjs/drawing-ui';import{Fragment as _0x8b4743,jsx as _0x16ab0d,jsxs as _0x3ef962}from'react/jsx-runtime';import{DrawingApplyType as _0x40c976,ISheetDrawingService as _0x456a1c,RemoveSheetDrawingCommand as _0x475856,SetDrawingApplyMutation as _0x46897e,SetDrawingArrangeCommand as _0x2b3290,SetSheetDrawingCommand as _0x5613c7,UniverSheetsDrawingPlugin as _0x1297cb,transformToAxisAlignPosition as _0x2e83e9,transformToDrawingPosition as _0x15b6d5}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3cc57f}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x55f526,UniverDocsPlugin as _0x1ed1eb}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x5a3f85,DocSelectionRenderService as _0x240358,UniverDocsUIPlugin as _0xff5f03}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x5c8aef,SheetsDrawingGroupCopyPasteController as _0x12abb0,UniverSheetsDrawingUIPlugin as _0x52f323}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x4b6104,FlipHorizontalIcon as _0x30efc9,FlipVerticalIcon as _0x1612fb,MoveDownIcon as _0x5775eb,MoveUpIcon as _0x4ab29f,ObjectLayersIcon as _0x2546c5,ShapeFormatSettingIcon as _0x2b4e9a,TopmostIcon as _0x11f074}from'@univerjs/icons';import{memo as _0x42eeaf,useEffect as _0x219537,useMemo as _0xf2a45c,useReducer as _0x4911df,useState as _0x440ee1}from'react';function Zn(_0x2eba50,_0xa30fca){const _0x4b42c2=_0x4a8a;let _0x2e35ac={};for(let _0x5e016c of Object['keys'](_0xa30fca)){let _0x348816=_0xa30fca[_0x5e016c],_0x154961=_0x2eba50[_0x5e016c];if(_0x348816!==void 0x0){if(_0x154961===void 0x0){_0x2e35ac[_0x5e016c]=void 0x0;continue;}typeof _0x348816=='object'&&_0x348816&&!Array[_0x4b42c2(0x111)](_0x348816)&&typeof _0x154961==_0x4b42c2(0x368)&&_0x154961&&!Array[_0x4b42c2(0x111)](_0x154961)?_0x2e35ac[_0x5e016c]=Zn(_0x154961,_0x348816):_0x2e35ac[_0x5e016c]=_0x154961;}}return _0x2e35ac;}const Qn={'type':_0x42d4f6[_0x1a57e9(0x1c3)],'id':_0x1a57e9(0x1b9),'handler':(_0x3d71f2,_0x56418c)=>{const _0x2e5772=_0x1a57e9;let _0x5cde9c=_0x3d71f2[_0x2e5772(0x272)](_0x434a53),{unitId:_0x149961,subUnitId:_0x363eeb,shapeType:_0x545ea4,shapeId:_0x4abc95,shapeData:_0x5c9077,replaceShapeData:_0x8f2715,oldShapeJSON:_0xa6ae8c}=_0x56418c;if(!_0x5cde9c[_0x2e5772(0x29e)](_0x149961,_0x363eeb,_0x4abc95))return!0x1;let _0x3839cb=_0x3d71f2[_0x2e5772(0x272)](_0x1b8f46),_0x3491fc=_0x3d71f2['get'](_0x43ae7b),{oldShapeType:_0x58258e,oldShapeData:_0x2284af={}}=_0xa6ae8c,_0x5bf00a=_0x8f2715?_0x2284af:Zn(_0x2284af,_0x5c9077||{}),_0x3d33bc={'id':_0x926363['id'],'params':{'unitId':_0x149961,'subUnitId':_0x363eeb,'shapeId':_0x4abc95,'shapeType':_0x545ea4,'shapeData':_0x5c9077,'replace':_0x8f2715}},_0x33cc09={'id':_0x926363['id'],'params':{'unitId':_0x149961,'subUnitId':_0x363eeb,'shapeId':_0x4abc95,'shapeType':_0x58258e,'shapeData':_0x5bf00a,'replace':_0x8f2715}};return _0x3839cb[_0x2e5772(0x297)](_0x3d33bc['id'],_0x3d33bc['params'])?(_0x3491fc[_0x2e5772(0x153)]({'unitID':_0x149961,'undoMutations':[_0x33cc09],'redoMutations':[_0x3d33bc]}),!0x0):!0x1;}};function $n(_0x133894,_0x4426b4,_0x5743cd,_0x1c0c4c,_0x5d7e7d,_0x225f70){const _0x28174a=_0x1a57e9;let _0xc9749e={'unitId':_0x4426b4,'subUnitId':_0x5743cd,'shapeId':_0x1c0c4c,'shapeData':_0x225f70,'oldShapeJSON':_0x5d7e7d};return _0x133894[_0x28174a(0x311)](Qn['id'],_0xc9749e);}function er(_0x1a2f1a,_0x5aad47,_0x196d65,_0x1626ad,_0x2ece04,_0x462c90){const _0x462861=_0x1a57e9;let _0x42d689={'unitId':_0x5aad47,'subUnitId':_0x196d65,'shapeId':_0x1626ad,'shapeData':_0x462c90,'oldShapeJSON':_0x2ece04};return _0x1a2f1a[_0x462861(0x311)](Qn['id'],_0x42d689);}function tr(_0x245222){'@babel/helpers - typeof';const _0x353775=_0x1a57e9;return tr=typeof Symbol==_0x353775(0xfa)&&typeof Symbol[_0x353775(0x190)]==_0x353775(0x1c5)?function(_0x30529d){return typeof _0x30529d;}:function(_0x5d43a1){const _0x19f5a5=_0x353775;return _0x5d43a1&&typeof Symbol==_0x19f5a5(0xfa)&&_0x5d43a1[_0x19f5a5(0x2fc)]===Symbol&&_0x5d43a1!==Symbol['prototype']?'symbol':typeof _0x5d43a1;},tr(_0x245222);}function nr(_0x2fff67,_0xbf1849){const _0x486775=_0x1a57e9;if(tr(_0x2fff67)!=_0x486775(0x368)||!_0x2fff67)return _0x2fff67;var _0x16dc24=_0x2fff67[Symbol['toPrimitive']];if(_0x16dc24!==void 0x0){var _0xce4ffa=_0x16dc24['call'](_0x2fff67,_0xbf1849||_0x486775(0x24d));if(tr(_0xce4ffa)!=_0x486775(0x368))return _0xce4ffa;throw TypeError(_0x486775(0x235));}return(_0xbf1849===_0x486775(0x371)?String:Number)(_0x2fff67);}function rr(_0x246aed){const _0x3652ce=_0x1a57e9;var _0x4cf070=nr(_0x246aed,_0x3652ce(0x371));return tr(_0x4cf070)==_0x3652ce(0x1c5)?_0x4cf070:_0x4cf070+'';}function Y(_0x1861fe,_0x2c9cf0,_0x4cf036){const _0x35bf29=_0x1a57e9;return(_0x2c9cf0=rr(_0x2c9cf0))in _0x1861fe?Object[_0x35bf29(0x319)](_0x1861fe,_0x2c9cf0,{'value':_0x4cf036,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1861fe[_0x2c9cf0]=_0x4cf036,_0x1861fe;}function ir(_0x2c7b64,_0x2ad47b,_0x101728){const _0x10fd0d=_0x1a57e9;let _0x2faf94=_0x11b25b(_0x2c7b64,{..._0x2ad47b,'dataModel':{..._0x2ad47b[_0x10fd0d(0x2c8)]??{},..._0x101728?{'doc':_0x101728}:null}}),_0x246b97=_0x15bc5a(_0x2faf94);return{'clip':_0x4b8f9a(_0x2faf94,_0x246b97),'wrapStrategy':_0x246b97};}var ar=class extends _0x38cc74{constructor(_0x2a2d65,_0x393d38){const _0x35bd38=_0x1a57e9;super(_0x2a2d65,_0x393d38),Y(this,'_props',void 0x0),Y(this,_0x35bd38(0x318),new _0xf4b281(()=>this[_0x35bd38(0x2bc)](!0x0),()=>this[_0x35bd38(0x284)]())),Y(this,_0x35bd38(0x13d),!0x0),Y(this,_0x35bd38(0x25f),_0x3a939e[_0x35bd38(0x35c)]),Y(this,'isDrawingObject',!0x0),this['_props']={..._0x393d38},this['_formulaAnimation'][_0x35bd38(0x21a)](_0x393d38[_0x35bd38(0x367)],_0x393d38[_0x35bd38(0x2b9)]!==!0x1),this['_init'](),this[_0x35bd38(0x284)]();}[_0x1a57e9(0x338)](){const _0x54d36f=_0x1a57e9;this[_0x54d36f(0x2b8)][_0x54d36f(0x18f)](_0x3b4254=>{const _0x2ee36f=_0x54d36f;this[_0x2ee36f(0x278)](_0x3b4254);});}[_0x1a57e9(0x2df)](_0x14110d){const _0x239e32=_0x1a57e9;this[_0x239e32(0x104)]['prstGeom']=_0x14110d;}['setEditing'](_0x3549bb){const _0x3dda2f=_0x1a57e9;this[_0x3dda2f(0x104)][_0x3dda2f(0x36f)]=_0x3549bb,this[_0x3dda2f(0x2bc)](!0x0);}['setFormulaPresentation'](_0x322b14,_0x44d8dd=!0x0){const _0x366576=_0x1a57e9;this[_0x366576(0x318)]['setPresentation'](_0x322b14,_0x44d8dd),this[_0x366576(0x104)]['formulaPresentation']=_0x322b14,this['_applyFormulaAutoFitSize'](),this[_0x366576(0x2bc)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x6f2c1c=_0x1a57e9;let _0x198309=this[_0x6f2c1c(0x104)]['shapeModel'],_0x3b4918=_0x198309[_0x6f2c1c(0x1a2)](),_0x4b9f99=_0x172b29(_0x3b4918==null?void 0x0:_0x3b4918['dataModel']),_0x43515d=_0x4b9f99==null?void 0x0:_0x4b9f99[_0x6f2c1c(0x197)],_0x1ef064=this[_0x6f2c1c(0x318)][_0x6f2c1c(0x32f)]();if(!_0x43515d||_0x1ef064['length']===0x0)return;_0x198309[_0x6f2c1c(0x216)]({'width':this[_0x6f2c1c(0x1a3)],'height':this[_0x6f2c1c(0x2f9)]});let _0x1e15c4=_0x38f6df({'documentData':_0x1ef064[_0x6f2c1c(0x1a6)](_0x3b9007=>_0x1b2670(_0x43515d,_0x3b9007)),'height':this[_0x6f2c1c(0x2f9)],'shapeData':_0x198309[_0x6f2c1c(0x2c4)](),'textRect':_0x198309[_0x6f2c1c(0x16c)]({'left':0x0,'top':0x0,'width':this[_0x6f2c1c(0x1a3)],'height':this[_0x6f2c1c(0x2f9)]}),'width':this[_0x6f2c1c(0x1a3)]});if(_0x1e15c4){var _0xc1aace;this[_0x6f2c1c(0x2d9)](_0x1e15c4[_0x6f2c1c(0x1a3)],_0x1e15c4['height']),(_0xc1aace=this[_0x6f2c1c(0x183)]())==null||(_0xc1aace=_0xc1aace[_0x6f2c1c(0x1da)]())==null||_0xc1aace[_0x6f2c1c(0x2a2)]();}}get[_0x1a57e9(0x264)](){const _0x22b8c4=_0x1a57e9;return this[_0x22b8c4(0x104)]['unitId'];}get[_0x1a57e9(0x29a)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x225b0c){const _0x3ca25e=_0x1a57e9;if(this[_0x3ca25e(0x104)][_0x3ca25e(0x1cc)]==null||!this[_0x3ca25e(0x13d)])return;let {width:_0x4c4a40,height:_0x447924}=this,{width:_0x573b04=0x0,height:_0x2cf647=0x0}=_0x225b0c[_0x3ca25e(0x249)],{left:_0xc6d852=0x0,top:_0x1c118f=0x0,right:_0x3aba1c=0x0,bottom:_0x4b0f08=0x0}=this[_0x3ca25e(0x104)][_0x3ca25e(0x1cc)],_0x2c87cb=_0xc6d852,_0x547d27=_0x1c118f,_0x53daad=_0x3aba1c,_0x191563=_0x4b0f08,_0x2e624c=!0x1;if(_0x573b04!==0x0&&_0x573b04!==_0x4c4a40){let _0x2b6a78=_0xc6d852/_0x573b04,_0xe71aad=_0x3aba1c/_0x573b04;_0x2c87cb=_0x4c4a40*_0x2b6a78,_0x53daad=_0x4c4a40*_0xe71aad,_0x2e624c=!0x0;}if(_0x2cf647!==0x0&&_0x2cf647!==_0x447924){let _0x4e8401=_0x1c118f/_0x2cf647,_0x1cabbf=_0x4b0f08/_0x2cf647;_0x547d27=_0x447924*_0x4e8401,_0x191563=_0x447924*_0x1cabbf,_0x2e624c=!0x0;}_0x2e624c&&this[_0x3ca25e(0x1c9)]({'left':_0x2c87cb,'top':_0x547d27,'right':_0x53daad,'bottom':_0x191563});}[_0x1a57e9(0x1c9)](_0x4b0829){const _0x42ad11=_0x1a57e9;this[_0x42ad11(0x104)]['srcRect']=_0x4b0829,this[_0x42ad11(0x2bc)](!0x0);}[_0x1a57e9(0xf1)](_0x2b3392){const _0x261dd6=_0x1a57e9;this[_0x261dd6(0x104)]['image']=_0x2b3392,this[_0x261dd6(0x2bc)](!0x0);}set[_0x1a57e9(0x2b2)](_0x1387dd){this['_transform']=_0x1387dd;}get['transform'](){const _0x399f4b=_0x1a57e9;this[_0x399f4b(0x176)]||this[_0x399f4b(0x1f6)]();let _0x5595b3=this[_0x399f4b(0x176)][_0x399f4b(0x238)]();return this[_0x399f4b(0x34d)](_0x5595b3);}get['shapeModel'](){const _0x4a5f61=_0x1a57e9;return this[_0x4a5f61(0x104)]['shapeModel'];}get['shapeId'](){const _0x35fab7=_0x1a57e9;return this[_0x35fab7(0x104)][_0x35fab7(0x2e2)];}get[_0x1a57e9(0x142)](){return _0x2b860b['SHAPE'];}[_0x1a57e9(0x1f5)](_0x243659,_0x5e423a,_0x41f494,_0x5e5296){const _0x262d98=_0x1a57e9;let _0x34a5e6=this[_0x262d98(0x104)]['shapeModel'];if(!_0x34a5e6||!_0x5e423a)return;let _0x3aac4e=_0x41f494??this[_0x262d98(0x1a3)],_0x557e96=_0x5e5296??this[_0x262d98(0x2f9)],_0x3a2e5c={'shapeType':_0x34a5e6[_0x262d98(0x2b3)](),'width':_0x3aac4e,'height':_0x557e96},_0x18b8d5={'renderMode':_0x15c78e['Path'],'oKey':this['oKey'],'image':this[_0x262d98(0x104)]['image'],'angle':this[_0x262d98(0x10a)]};_0x34a5e6['updateContext'](_0x3a2e5c),_0x243659[_0x262d98(0x125)]();let _0x2c0489={'top':0x0,'left':0x0,'width':_0x3aac4e,'height':_0x557e96},_0xefc284=_0x34a5e6['getDrawingEffectBounds'](_0x2c0489);_0xefc284?this[_0x262d98(0x20f)](_0x243659,_0xefc284,_0x49028d=>{const _0x309b88=_0x262d98;_0x34a5e6[_0x309b88(0x25b)](_0x49028d,_0x2c0489,_0x18b8d5);}):(this['_releaseRenderCache'](),_0x34a5e6['render'](_0x243659,_0x2c0489,_0x18b8d5)),_0x243659[_0x262d98(0x1a5)]();let _0x307bc5=_0x34a5e6['getShapeTextData'](),_0x50d9c9=_0x34a5e6['getShapeTextRect'](_0x2c0489),_0x56dd2a=_0x34a5e6[_0x262d98(0x2e0)]();if(_0x307bc5&&_0x50d9c9&&!_0x56dd2a){_0x243659[_0x262d98(0x125)](),this[_0x262d98(0x2ad)]()[_0x262d98(0xfd)]&&_0x243659['scale'](-0x1,0x1);let _0x40fdbd=_0x3aac4e/0x2,_0x32f3da=_0x557e96/0x2;_0x243659['translate'](-_0x40fdbd,-_0x32f3da),_0x243659[_0x262d98(0x16b)](),this[_0x262d98(0x1e8)](_0x243659,_0x307bc5,_0x50d9c9),_0x243659[_0x262d98(0x1a5)]();}}['getDrawingPoints'](_0x50d9db){}[_0x1a57e9(0x1e8)](_0x2ce260,_0x1e4585,_0x483939){const _0x2be608=_0x1a57e9;var _0x403ea6;this[_0x2be608(0x104)][_0x2be608(0x36f)]||(!((_0x403ea6=_0x1e4585[_0x2be608(0x2c8)])!=null&&_0x403ea6[_0x2be608(0x197)])&&_0x2be608(0x33c)in _0x1e4585&&_0x1e4585[_0x2be608(0x33c)]===!0x1?this['_drawSimpleText'](_0x2ce260,_0x1e4585,_0x483939):this[_0x2be608(0x1ba)](_0x2ce260,_0x1e4585,_0x483939));}[_0x1a57e9(0x1b4)](_0x41abca,_0xa96e50,_0x3f29fd){const _0x3cc8b5=_0x1a57e9;this[_0x3cc8b5(0x1ba)](_0x41abca,{..._0xa96e50,'text':_0xa96e50[_0x3cc8b5(0x164)]??'','dataModel':{'doc':_0x109756(_0xa96e50,_0x3cc8b5(0x36c)+this['oKey'])}},_0x3f29fd);}[_0x1a57e9(0x1ba)](_0xf92455,_0x1a6d6d,_0x59026d){const _0x1d6575=_0x1a57e9;_0x3cbb8e(_0xf92455,this[_0x1d6575(0x318)],(_0x528b2b,_0x31f806)=>{const _0x3842b2=_0x1d6575;this[_0x3842b2(0x291)](_0x528b2b,_0x1a6d6d,_0x59026d,_0x31f806);});}[_0x1a57e9(0x291)](_0x1834cb,_0x2c1758,_0x2414ca,_0x399c27){const _0x11e2ba=_0x1a57e9;let _0x3d4479=this[_0x11e2ba(0x104)][_0x11e2ba(0x2a1)];if(!_0x2c1758[_0x11e2ba(0x2c8)]||!_0x3d4479)return;let _0x39e695=_0x172b29(_0x2c1758['dataModel']);if(!_0x39e695)return;let _0x280d20=_0x39e695[_0x11e2ba(0x197)];if(!_0x280d20)return;let _0x78e58a=_0x1b2670(_0x280d20,_0x399c27),_0x2b65d7=_0x39e695['va']??_0x12d55d[_0x11e2ba(0x2eb)],_0x59c75c=_0x39e695['ha']??_0x59b547['LEFT'],_0x36202b=ir(this[_0x11e2ba(0x104)][_0x11e2ba(0x31f)][_0x11e2ba(0x2c4)](),_0x2c1758,_0x78e58a),_0x2f0cb2=_0x2c1758[_0x11e2ba(0x260)],_0xe52a2c=new _0xa70116(_0x3a9712(_0x78e58a,{'isHorizontal':_0x2f0cb2!==!0x1,'textRect':_0x2414ca,'verticalAlign':_0x2b65d7,'horizontalAlign':_0x59c75c,'wrapStrategy':_0x36202b[_0x11e2ba(0x13e)]})),_0x3806c6=new _0x927fe0(_0xe52a2c),_0x22789a=_0x5bc5b7[_0x11e2ba(0x296)](_0x3806c6,_0x3d4479);_0x22789a['calculate']();let _0x43ae7e=_0x22789a[_0x11e2ba(0x21f)]()[_0x11e2ba(0x137)],_0x383884=_0x507478({'contentHeight':_0x43ae7e,'verticalAlign':_0x2b65d7,'viewportHeight':_0x2414ca['height']});_0xe52a2c[_0x11e2ba(0x1e7)]({'pageSize':{'width':_0x2f0cb2===!0x1?_0x2414ca[_0x11e2ba(0x2f9)]:_0x2414ca[_0x11e2ba(0x1a3)],'height':_0x383884[_0x11e2ba(0x14a)]}}),_0xe52a2c[_0x11e2ba(0x2f5)]({'t':_0x383884[_0x11e2ba(0x288)]}),_0x22789a[_0x11e2ba(0x12d)]();let _0x442e9a=new _0x8ae97c(_0x11e2ba(0x229)+this['oKey'],_0x22789a,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x11e2ba(0x2bc)](!0x0)});_0x442e9a['resize'](_0x2414ca['width'],_0x383884[_0x11e2ba(0x14a)]),_0x1834cb[_0x11e2ba(0x125)](),_0x1834cb['translateWithPrecision'](_0x2414ca['left'],_0x2414ca[_0x11e2ba(0x333)]),_0x36202b[_0x11e2ba(0x108)]&&(_0x1834cb[_0x11e2ba(0x16b)](),_0x1834cb[_0x11e2ba(0x1b1)](0x0,_0x383884[_0x11e2ba(0x1f3)],_0x2414ca[_0x11e2ba(0x1a3)],_0x383884[_0x11e2ba(0x25a)]),_0x1834cb[_0x11e2ba(0x108)]()),_0x383884['contentVerticalOffset']&&_0x1834cb[_0x11e2ba(0xe9)](0x0,_0x383884[_0x11e2ba(0x35d)]),_0x442e9a[_0x11e2ba(0x1aa)](_0x1834cb),_0x1834cb['restore'](),_0x442e9a['dispose'](),_0x22789a['dispose'](),_0x3806c6[_0x11e2ba(0x32d)](),_0xe52a2c[_0x11e2ba(0x32d)]();}[_0x1a57e9(0x25b)](_0x433f63,_0x18256e,_0x248175=!0x1){const _0x38fbda=_0x1a57e9;if(!this[_0x38fbda(0x285)])return this[_0x38fbda(0x2bc)](!0x1),this;let {width:_0x37d05b,height:_0x45066c,left:_0x51a018,top:_0x434a27}=this,_0x9dbbe7=this[_0x38fbda(0x1f4)]();if(_0x37d05b=_0x9dbbe7[_0x38fbda(0x1a3)],_0x45066c=_0x9dbbe7[_0x38fbda(0x2f9)],_0x51a018=_0x9dbbe7[_0x38fbda(0x257)],_0x434a27=_0x9dbbe7[_0x38fbda(0x333)],this['isRender'](_0x18256e)){let {top:_0x204afd,left:_0x209c10,bottom:_0x221ff7,right:_0x2fa5fa}=_0x18256e[_0x38fbda(0x310)];if(_0x37d05b+this[_0x38fbda(0x2af)]+_0x51a018<_0x209c10||_0x2fa5fa<_0x51a018||_0x45066c+this[_0x38fbda(0x2af)]+_0x434a27<_0x204afd||_0x221ff7<_0x434a27)return this;}let _0x12d390=_0x51a018+_0x37d05b/0x2,_0x53e810=_0x434a27+_0x45066c/0x2,_0x546f62=this[_0x38fbda(0x2b2)][_0x38fbda(0x16d)]();if(this[_0x38fbda(0x104)][_0x38fbda(0x36f)]){let _0x28bc85=this['getState'](),_0x363ab0=new _0x228916();_0x363ab0[_0x38fbda(0x1e3)]({..._0x28bc85}),_0x546f62=_0x363ab0[_0x38fbda(0x16d)]();}return _0x433f63[_0x38fbda(0x125)](),this[_0x38fbda(0x104)]['shapeModel']['isRenderLinePointsMode']===!0x0||_0x433f63[_0x38fbda(0x2b2)](_0x546f62[0x0],_0x546f62[0x1],_0x546f62[0x2],_0x546f62[0x3],_0x12d390,_0x53e810),this['_draw'](_0x433f63,_0x18256e,_0x37d05b,_0x45066c),_0x433f63[_0x38fbda(0x1a5)](),this[_0x38fbda(0x2bc)](!0x1),this;}['getInverseCoord'](_0x31662c){const _0xed5966=_0x1a57e9;let {left:_0x2fb674,top:_0x267934,width:_0x3ed134,height:_0x3db44e}=this['getRealBound'](),_0xa94b8e=this['transform'][_0xed5966(0x16d)](),_0x15315f=_0x2fb674+_0x3ed134/0x2,_0x313c68=_0x267934+_0x3db44e/0x2,_0x323b27=new _0x228916([_0xa94b8e[0x0],_0xa94b8e[0x1],_0xa94b8e[0x2],_0xa94b8e[0x3],_0x15315f,_0x313c68]),_0x4e0e99=this[_0xed5966(0x208)]();return(this[_0xed5966(0x30f)]&&(_0x4e0e99==null?void 0x0:_0x4e0e99['classType'])===_0x2b860b[_0xed5966(0x14c)]?_0x4e0e99[_0xed5966(0xff)][_0xed5966(0x348)](_0x323b27):_0x323b27)[_0xed5966(0x1c0)]()[_0xed5966(0x1f7)](_0x31662c);}[_0x1a57e9(0x28d)](_0x36da8a){const _0x479fa4=_0x1a57e9;let {left:_0x164c4d,top:_0x55eb28,width:_0x43fdc6,height:_0x2e38af}=this['getRealBound'](),_0x101439=_0x164c4d+_0x43fdc6/0x2,_0x245969=_0x55eb28+_0x2e38af/0x2,_0x5cd2d4=this[_0x479fa4(0x2b2)][_0x479fa4(0x16d)](),_0x23ae96=new _0x228916([_0x5cd2d4[0x0],_0x5cd2d4[0x1],_0x5cd2d4[0x2],_0x5cd2d4[0x3],_0x101439,_0x245969]),_0x58084c=this['getParent'](),_0x22a0d8=(this[_0x479fa4(0x30f)]&&(_0x58084c==null?void 0x0:_0x58084c['classType'])===_0x2b860b['GROUP']?_0x58084c[_0x479fa4(0xff)][_0x479fa4(0x348)](_0x23ae96):_0x23ae96)['invert']()[_0x479fa4(0x1f7)](_0x36da8a),_0x370ea6=_0x43fdc6/0x2,_0x4e357b=_0x2e38af/0x2,_0x336b65=this[_0x479fa4(0x104)]['shapeModel'];return _0x336b65&&_0x336b65[_0x479fa4(0x2e0)]()?_0x336b65[_0x479fa4(0x11c)](_0x22a0d8['x'],_0x22a0d8['y'],_0x43fdc6,_0x2e38af):_0x22a0d8['x']>=-_0x370ea6-this[_0x479fa4(0x2af)]/0x2&&_0x22a0d8['x']<=_0x370ea6+this[_0x479fa4(0x2af)]/0x2&&_0x22a0d8['y']>=-_0x4e357b-this['strokeWidth']/0x2&&_0x22a0d8['y']<=_0x4e357b+this['strokeWidth']/0x2;}['dispose'](){const _0x5acea6=_0x1a57e9;this['_formulaAnimation'][_0x5acea6(0x32d)](),this['_props'][_0x5acea6(0x31f)]=null,super[_0x5acea6(0x32d)]();}},or=class extends _0x38cc74{constructor(_0x3ad8cd,_0xf9869f){const _0x12c941=_0x1a57e9;super(_0x3ad8cd,_0xf9869f),Y(this,_0x12c941(0x29f),null),Y(this,_0x12c941(0x1fb),null),Y(this,_0x12c941(0xec),null),Y(this,_0x12c941(0x283),null),_0xf9869f&&this[_0x12c941(0x2cd)](_0xf9869f);}[_0x1a57e9(0x2e8)](){const _0x580e2c=_0x1a57e9;return{'unitId':this[_0x580e2c(0xec)],'subUnitId':this[_0x580e2c(0x283)],'drawingId':this[_0x580e2c(0x29f)]};}[_0x1a57e9(0x2cd)](_0x37bec1){const _0x25eb80=_0x1a57e9;_0x37bec1[_0x25eb80(0x2e2)]!==void 0x0&&(this['_shapeId']=_0x37bec1[_0x25eb80(0x2e2)]),_0x37bec1[_0x25eb80(0x18a)]!==void 0x0&&(this['_adjName']=_0x37bec1[_0x25eb80(0x18a)]),_0x37bec1['unitId']!==void 0x0&&(this[_0x25eb80(0xec)]=_0x37bec1[_0x25eb80(0x264)]),_0x37bec1['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x37bec1['subUnitId']),this[_0x25eb80(0x20e)]({'width':_0x37bec1[_0x25eb80(0x1a3)],'height':_0x37bec1[_0x25eb80(0x2f9)]});}['_draw'](_0x1a5c4f){const _0x197b3f=_0x1a57e9;_0x20c694[_0x197b3f(0x2e4)](_0x1a5c4f,{'radius':_0x496afe[_0x197b3f(0x373)],'fill':_0x496afe['adjHandleFill'],'stroke':_0x496afe[_0x197b3f(0x25d)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x5c0193,_0x45be31){return function(_0x3d6a11,_0x223797){_0x45be31(_0x3d6a11,_0x223797,_0x5c0193);};}function Z(_0x537931,_0x1995ae,_0x5d3ce1,_0x3658d2){const _0x1522a5=_0x1a57e9;var _0x2e3903=arguments[_0x1522a5(0x321)],_0x20358e=_0x2e3903<0x3?_0x1995ae:_0x3658d2===null?_0x3658d2=Object[_0x1522a5(0x110)](_0x1995ae,_0x5d3ce1):_0x3658d2,_0x595364;if(typeof Reflect==_0x1522a5(0x368)&&typeof Reflect[_0x1522a5(0x308)]==_0x1522a5(0xfa))_0x20358e=Reflect[_0x1522a5(0x308)](_0x537931,_0x1995ae,_0x5d3ce1,_0x3658d2);else{for(var _0x37f834=_0x537931['length']-0x1;_0x37f834>=0x0;_0x37f834--)(_0x595364=_0x537931[_0x37f834])&&(_0x20358e=(_0x2e3903<0x3?_0x595364(_0x20358e):_0x2e3903>0x3?_0x595364(_0x1995ae,_0x5d3ce1,_0x20358e):_0x595364(_0x1995ae,_0x5d3ce1))||_0x20358e);}return _0x2e3903>0x3&&_0x20358e&&Object[_0x1522a5(0x319)](_0x1995ae,_0x5d3ce1,_0x20358e),_0x20358e;}let Q=class extends _0x458cfa{constructor(_0x5bfd70,_0x13b8bf,_0xaedead,_0x1c89b5,_0x46c4f6,_0x221e76){const _0x2691e2=_0x1a57e9;super(),this[_0x2691e2(0x218)]=_0x5bfd70,this[_0x2691e2(0x35e)]=_0x13b8bf,this[_0x2691e2(0x15b)]=_0xaedead,this[_0x2691e2(0x1ab)]=_0x1c89b5,this[_0x2691e2(0x1f1)]=_0x46c4f6,this[_0x2691e2(0x1fe)]=_0x221e76,Y(this,_0x2691e2(0x20d),new Map()),this[_0x2691e2(0x2db)](this[_0x2691e2(0x1fe)]['presentationChanged$']['subscribe'](_0x25dc9b=>{const _0x2018c1=_0x2691e2;var _0x26229f;(_0x26229f=this[_0x2018c1(0x20d)][_0x2018c1(0x272)](this[_0x2018c1(0x17c)](_0x25dc9b['unitId'],_0x25dc9b[_0x2018c1(0x29a)],_0x25dc9b[_0x2018c1(0x2e2)])))==null||_0x26229f['forEach'](_0x192567=>_0x192567[_0x2018c1(0x267)](_0x25dc9b['presentation'],_0x25dc9b[_0x2018c1(0x1d1)]));})),this[_0x2691e2(0x2db)](this[_0x2691e2(0x218)][_0x2691e2(0x10f)][_0x2691e2(0x23b)](_0x1559f2=>{const _0x4bd404=_0x2691e2;_0x1559f2[_0x4bd404(0x21e)](_0x49391f=>{const _0x1a05a8=_0x4bd404;this[_0x1a05a8(0x1fe)][_0x1a05a8(0x326)]({'unitId':_0x49391f[_0x1a05a8(0x264)],'subUnitId':_0x49391f['subUnitId'],'shapeId':_0x49391f[_0x1a05a8(0x175)]}),this[_0x1a05a8(0x20d)][_0x1a05a8(0x152)](this[_0x1a05a8(0x17c)](_0x49391f['unitId'],_0x49391f[_0x1a05a8(0x29a)],_0x49391f[_0x1a05a8(0x175)]));});}));}[_0x1a57e9(0x221)](_0x801a86,_0x428f97,_0x31d9c0){const _0x19ac89=_0x1a57e9;let {transform:_0x514bf5,drawingType:_0x59c838,srcRect:_0xb88ed7,prstGeom:_0x201807,groupId:_0x3c2071,unitId:_0x4d26b9,subUnitId:_0x15c767,drawingId:_0x4307c5,isMultiTransform:_0xc0f0d2,transforms:_0x33ee01,hidden:_0x21107e,selectable:_0x1bf6be}=_0x801a86;if(_0x59c838!==_0x3a939e['DRAWING_SHAPE']||!this[_0x19ac89(0x218)]['getDrawingVisible']()||_0x514bf5==null)return;let _0x5e3228=this[_0x19ac89(0x218)]['getDrawingEditable']();_0x5e3228&&_0x428f97['initTransformer'](_0x41e007);let _0x1c849e=_0xc0f0d2&&_0x33ee01?_0x33ee01:[_0x514bf5],_0x360982=[];for(let _0x47381a of _0x1c849e){let {left:_0x31d9f1,top:_0x5eeb94,width:_0x20e625,height:_0x1f3a40,angle:_0x9890bd,flipX:_0xe35412,flipY:_0xa4d99f,skewX:_0x52b555,skewY:_0x37546a}=_0x47381a,_0x2ae09b=_0x1c849e['indexOf'](_0x47381a),_0x3162e7=_0x238087({'unitId':_0x4d26b9,'subUnitId':_0x15c767,'drawingId':_0x4307c5},_0xc0f0d2?_0x2ae09b:void 0x0),_0x186878=_0x428f97[_0x19ac89(0x14f)](_0x3162e7);if(_0x186878!=null){let _0x12afde={'unitId':_0x4d26b9,'subUnitId':_0x15c767,'shapeId':_0x4307c5};_0x186878 instanceof ar&&this['refreshFormulaPresentation'](_0x186878,_0x12afde),_0x186878[_0x19ac89(0x20e)]({'left':_0x31d9f1,'top':_0x5eeb94,'width':_0x20e625,'height':_0x1f3a40,'angle':_0x9890bd,'flipX':_0xe35412,'flipY':_0xa4d99f,'skewX':_0x52b555,'skewY':_0x37546a});continue;}let _0x4df47a=this[_0x19ac89(0x218)]['getDrawingOrder'](_0x4d26b9,_0x15c767),_0x41e471=_0x4df47a[_0x19ac89(0x2fb)](_0x4307c5);if(_0x428f97[_0x19ac89(0x14f)](_0x3162e7)||!this[_0x19ac89(0x218)][_0x19ac89(0x27c)]())continue;let _0x38ede6=this['_sheetsShapeService']['getShapeModel'](_0x4d26b9,_0x15c767,_0x4307c5);if(!_0x38ede6)continue;let _0x22b25e=_0x3863ab(_0x38ede6[_0x19ac89(0x2b3)]()),_0x20e82a=_0x38ede6[_0x19ac89(0x2c4)]()[_0x19ac89(0x192)],_0x4b72c9={'unitId':_0x4d26b9,'subUnitId':_0x15c767,'shapeId':_0x4307c5};_0x20e82a&&this[_0x19ac89(0x1fe)][_0x19ac89(0x168)](_0x4b72c9,_0x20e82a);let _0x343ed1=new ar(_0x3162e7,{..._0x22b25e?{..._0x47381a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x47381a},'zIndex':_0x41e471===-0x1?_0x4df47a['length']-0x1:_0x41e471,'shapeModel':_0x38ede6,'localeService':this[_0x19ac89(0x15b)],'shapeId':_0x4307c5,'unitId':_0x4d26b9,'subUnitId':_0x15c767,'visible':_0x21107e!==!0x0,'evented':_0x1bf6be!==!0x1,'formulaPresentation':_0x20e82a?this[_0x19ac89(0x1fe)]['getPresentation'](_0x4b72c9):void 0x0,'animateFormulaPresentation':(_0x20e82a==null?void 0x0:_0x20e82a['animationEnabled'])!==!0x1});if(_0x20e82a){let _0x518992=this[_0x19ac89(0x17c)](_0x4d26b9,_0x15c767,_0x4307c5),_0x1ccf3a=this[_0x19ac89(0x20d)][_0x19ac89(0x272)](_0x518992)??new Set();_0x1ccf3a[_0x19ac89(0x18e)](_0x343ed1),this['_formulaShapes'][_0x19ac89(0x181)](_0x518992,_0x1ccf3a);}_0x428f97[_0x19ac89(0x199)](_0x343ed1,_0x5ad001),_0x5e3228&&_0x428f97[_0x19ac89(0x2f3)](_0x343ed1),_0x3c2071&&_0x1dfb81({'drawingId':_0x3c2071,'unitId':_0x4d26b9,'subUnitId':_0x15c767},_0x343ed1,_0x428f97,this[_0x19ac89(0x218)]),_0x201807!=null&&_0x343ed1[_0x19ac89(0x2df)](_0x201807),_0xb88ed7!=null&&_0x343ed1[_0x19ac89(0x1c9)](_0xb88ed7);let _0x14ffe7=this[_0x19ac89(0xfc)](_0x343ed1,_0x38ede6[_0x19ac89(0x2c4)]());if(_0x14ffe7){var _0x33012d;_0x31d9c0==null||(_0x33012d=_0x31d9c0[_0x19ac89(0x30b)])==null||_0x33012d[_0x19ac89(0x18e)](_0x14ffe7);}_0x360982['push'](_0x343ed1);}return _0x360982;}[_0x1a57e9(0x17c)](_0x3f6431,_0x31faf2,_0x5a8cb7){return _0x3f6431+'\x00'+_0x31faf2+'\x00'+_0x5a8cb7;}[_0x1a57e9(0x194)](_0x3d69f3,_0xeb6296){const _0x3578b0=_0x1a57e9;let _0x34af27=this[_0x3578b0(0x35e)][_0x3578b0(0x29e)](_0xeb6296[_0x3578b0(0x264)],_0xeb6296[_0x3578b0(0x29a)],_0xeb6296['shapeId']),_0x20f67a=_0x34af27==null?void 0x0:_0x34af27[_0x3578b0(0x2c4)]()[_0x3578b0(0x192)],_0x694ace=this['_formulaKey'](_0xeb6296[_0x3578b0(0x264)],_0xeb6296[_0x3578b0(0x29a)],_0xeb6296[_0x3578b0(0x2e2)]);if(_0x20f67a){this[_0x3578b0(0x1fe)][_0x3578b0(0x168)](_0xeb6296,_0x20f67a);let _0x25bc2f=this['_formulaShapes'][_0x3578b0(0x272)](_0x694ace)??new Set();_0x25bc2f['add'](_0x3d69f3),this[_0x3578b0(0x20d)][_0x3578b0(0x181)](_0x694ace,_0x25bc2f);}else{var _0xd47868;this[_0x3578b0(0x1fe)]['unregister'](_0xeb6296),(_0xd47868=this['_formulaShapes'][_0x3578b0(0x272)](_0x694ace))==null||_0xd47868['delete'](_0x3d69f3);}_0x3d69f3['setFormulaPresentation'](_0x20f67a?this[_0x3578b0(0x1fe)][_0x3578b0(0x292)](_0xeb6296):void 0x0,(_0x20f67a==null?void 0x0:_0x20f67a['animationEnabled'])!==!0x1);}[_0x1a57e9(0x360)](_0x526678){const _0x2ae14d=_0x1a57e9;let _0x30c75c=_0x526678[_0x2ae14d(0x31f)][_0x2ae14d(0x2c4)](),_0x4dc59c=_0x30c75c['fill'];if(!_0x4dc59c||_0x4dc59c[_0x2ae14d(0x2b1)]!==_0x478734[_0x2ae14d(0x1e1)]||!_0x4dc59c[_0x2ae14d(0x22f)]){_0x526678[_0x2ae14d(0xf1)](void 0x0);return;}this['_loadShapePictureFill'](_0x526678,_0x30c75c);}[_0x1a57e9(0xfc)](_0x56503b,_0x3cac05){const _0x54a657=_0x1a57e9;let _0x19392c=_0x3cac05['fill'];if(!_0x19392c||_0x19392c['fillType']!==_0x478734[_0x54a657(0x1e1)]||!_0x19392c[_0x54a657(0x22f)])return;let _0x322809=_0x19392c[_0x54a657(0x22f)],_0x13dc69=_0x19392c['fillImageSourceType']??_0x55a71c[_0x54a657(0x29d)],_0x1f43ab=this[_0x54a657(0x1ab)]['getImageSourceCache'](_0x322809,_0x13dc69);if(_0x1f43ab){_0x56503b[_0x54a657(0xf1)](_0x1f43ab);return;}return this[_0x54a657(0x148)](_0x56503b,_0x322809,_0x13dc69);}async[_0x1a57e9(0x148)](_0x430c43,_0x35cd5c,_0x4bf52c){const _0x446d6a=_0x1a57e9;let _0x19e509;try{if(_0x4bf52c===_0x55a71c[_0x446d6a(0x27f)])_0x19e509=await this[_0x446d6a(0x1ab)][_0x446d6a(0x1b6)](_0x35cd5c);else{if(_0x4bf52c===_0x55a71c[_0x446d6a(0x29d)])try{_0x19e509=await this[_0x446d6a(0x1f1)][_0x446d6a(0x1b6)](_0x35cd5c);}catch{_0x19e509=_0x35cd5c;}else _0x19e509=_0x35cd5c;}}catch(_0x197103){console['error'](_0x446d6a(0x15c),_0x197103);return;}await new Promise(_0x3bc5b3=>{const _0x4d06b1=_0x446d6a;let _0x35baa3=new window[(_0x4d06b1(0x277))]();_0x35baa3['onload']=()=>{const _0x1401af=_0x4d06b1;this[_0x1401af(0x1ab)]['addImageSourceCache'](_0x35cd5c,_0x4bf52c,_0x35baa3),_0x430c43[_0x1401af(0xf1)](_0x35baa3),_0x3bc5b3();},_0x35baa3[_0x4d06b1(0x178)]=()=>{const _0x5cddf8=_0x4d06b1;console[_0x5cddf8(0x1fc)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x35cd5c),_0x3bc5b3();},_0x35baa3[_0x4d06b1(0x32a)]=_0x19e509;});}};Q=Z([X(0x0,_0x3398d1),X(0x1,_0x236d5e(_0x434a53)),X(0x2,_0x236d5e(_0x1d78e7)),X(0x3,_0x2f32ce),X(0x4,_0x5b58f3),X(0x5,_0x236d5e(_0x3f61b0))],Q);let sr=class extends _0x458cfa{constructor(_0x586b28,_0x466400,_0x5ae22d,_0x1a3f07,_0x18641d,_0x3c37f5){const _0x40f5f7=_0x1a57e9;super(),this[_0x40f5f7(0x218)]=_0x586b28,this[_0x40f5f7(0x35e)]=_0x466400,this[_0x40f5f7(0x12c)]=_0x5ae22d,this['_sheetDrawingShapeRenderController']=_0x1a3f07,this['_univerInstanceService']=_0x18641d,this[_0x40f5f7(0x27a)]=_0x3c37f5,Y(this,_0x40f5f7(0x1c7),null),Y(this,_0x40f5f7(0xec),null),Y(this,'_subUnitId',null),Y(this,_0x40f5f7(0x12e),void 0x0),Y(this,_0x40f5f7(0x243),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x40f5f7(0x363),0x0),Y(this,'_baseShapeWidth',0x0),Y(this,_0x40f5f7(0x118),0x0),Y(this,_0x40f5f7(0x328),!0x1),Y(this,_0x40f5f7(0x35f),void 0x0),Y(this,_0x40f5f7(0x295),void 0x0),Y(this,_0x40f5f7(0x2a6),void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x40f5f7(0xe7),!0x1),this[_0x40f5f7(0x180)](),this[_0x40f5f7(0x287)]();}[_0x1a57e9(0x209)](_0x17a0fc,_0x432d59,_0x229275){const _0x245478=_0x1a57e9;let _0x37247a=this[_0x245478(0x35e)][_0x245478(0x29e)](_0x17a0fc,_0x432d59,_0x229275);if(_0x37247a)return _0x37247a[_0x245478(0x18d)]();}[_0x1a57e9(0x2bb)](){const _0x203871=_0x1a57e9;this[_0x203871(0x32c)]();}[_0x1a57e9(0x270)](){const _0x668d96=_0x1a57e9;this[_0x668d96(0x24b)](!0x0);}[_0x1a57e9(0x274)](_0x2a4350){this['_isShouldShowDrawingShapeAdjust']=_0x2a4350;}[_0x1a57e9(0x2da)](_0x1c824b,_0x5cdb8d,_0x1872a1,_0x41c8e8){const _0x271077=_0x1a57e9;let _0xcf7d1f=this[_0x271077(0x35e)][_0x271077(0x29e)](_0x1c824b,_0x5cdb8d,_0x1872a1);if(_0xcf7d1f)return _0xcf7d1f[_0x271077(0x261)](_0x41c8e8);}[_0x1a57e9(0x364)](_0x635bff=!0x1){const _0xf620b1=_0x1a57e9;if(this[_0xf620b1(0xec)]===null||this[_0xf620b1(0x283)]===null||this[_0xf620b1(0x1c7)]===null)return;let _0x51d4ea=this['_renderManagerService'][_0xf620b1(0x174)](this[_0xf620b1(0xec)]);if(!_0x51d4ea||!_0x51d4ea['with'](_0x2bd201)[_0xf620b1(0x16a)]())return;let {scene:_0xff0c0a}=_0x51d4ea,_0x342759={'unitId':this[_0xf620b1(0xec)],'subUnitId':this[_0xf620b1(0x283)],'drawingId':this[_0xf620b1(0x1c7)]},_0x40dd22=this[_0xf620b1(0x218)][_0xf620b1(0x223)](_0x342759),{transform:_0x20ad6b}=_0x40dd22;if(!_0x20ad6b||_0x40dd22[_0xf620b1(0x130)]!==_0x3a939e[_0xf620b1(0x35c)])return;let {left:_0x5e40af,top:_0x2e0333,width:_0xcaee73,height:_0xf8b446,flipX:_0x520b58,flipY:_0x11a6cf,angle:_0x9c7499=0x0}=_0x20ad6b;if(_0x5e40af===void 0x0||_0x2e0333===void 0x0)return;if(_0x635bff){let _0x3b3b7a=this[_0xf620b1(0x35e)][_0xf620b1(0x29e)](this[_0xf620b1(0xec)],this[_0xf620b1(0x283)],this[_0xf620b1(0x1c7)]);_0x3b3b7a==null||_0x3b3b7a[_0xf620b1(0x216)]({'width':_0xcaee73??0x0,'height':_0xf8b446??0x0}),this[_0xf620b1(0x12e)]=_0x3b3b7a==null?void 0x0:_0x3b3b7a[_0xf620b1(0x18d)]();}let _0x75b3c8=this[_0xf620b1(0x12e)];for(let _0x24e59b=0x0;_0x24e59b<_0x75b3c8['length'];_0x24e59b++){let _0x33fe8b=_0x75b3c8[_0x24e59b],_0x48a6e0=_0x33fe8b['x'],_0x8c192f=_0x33fe8b['y'];if(_0x520b58&&(_0x48a6e0=(_0xcaee73||0x0)-_0x48a6e0),_0x11a6cf&&(_0x8c192f=(_0xf8b446||0x0)-_0x8c192f),_0x9c7499!==0x0){let _0x57780c=(_0xcaee73||0x0)/0x2,_0x2840a9=(_0xf8b446||0x0)/0x2,_0x1372ae=_0x9c7499*Math['PI']/0xb4,_0xc276f3=Math[_0xf620b1(0x316)](_0x1372ae),_0x5dd8f5=Math[_0xf620b1(0x334)](_0x1372ae),_0x200510=_0x48a6e0-_0x57780c,_0x3a3a62=_0x8c192f-_0x2840a9;_0x48a6e0=_0x57780c+(_0x200510*_0xc276f3-_0x3a3a62*_0x5dd8f5),_0x8c192f=_0x2840a9+(_0x200510*_0x5dd8f5+_0x3a3a62*_0xc276f3);}let _0xa512b0={'x':_0x48a6e0,'y':_0x8c192f,'adjName':_0x33fe8b[_0xf620b1(0x18a)]};this['_addShapeAdjustControl'](_0xff0c0a,_0xa512b0,_0xa512b0['adjName'],_0x5e40af,_0x2e0333,this[_0xf620b1(0xec)],this[_0xf620b1(0x283)]);}}['_updateShapeAdjustControls'](_0x41d8d1=!0x1){const _0x557345=_0x1a57e9;_0x41d8d1&&(this[_0x557345(0x32c)](),this[_0x557345(0x364)](_0x41d8d1));}['_addShapeAdjustControl'](_0x1642ce,_0xbc6022,_0x1478aa,_0xcef490,_0x4bf797,_0x457214,_0x5b5a9d){const _0x471702=_0x1a57e9;if(!this[_0x471702(0x1c7)])return;let _0xb3c609=_0x1642ce[_0x471702(0x14f)](_0x471702(0x1c1)+this[_0x471702(0x1c7)]+'-'+_0x1478aa);if(_0xb3c609){_0xb3c609[_0x471702(0x20e)]({'left':_0xbc6022['x']+_0xcef490-_0x496afe['adjHandleSize'],'top':_0xbc6022['y']+_0x4bf797-_0x496afe[_0x471702(0x373)]});return;}let _0x549052={'left':_0xbc6022['x']+_0xcef490-_0x496afe['adjHandleSize'],'top':_0xbc6022['y']+_0x4bf797-_0x496afe['adjHandleSize'],'adjName':_0x1478aa,'shapeId':this[_0x471702(0x1c7)],'unitId':_0x457214,'subUnitId':_0x5b5a9d,'width':_0x496afe['adjHandleSize']+0x8,'height':_0x496afe[_0x471702(0x373)]+0x8,'zIndex':_0x5ad001+0x1,'evented':!0x0},_0x26665c=new or(_0x471702(0x1c1)+this[_0x471702(0x1c7)]+'-'+_0x1478aa,_0x549052);this[_0x471702(0x243)]['push'](_0x26665c),this[_0x471702(0x1e5)](_0x26665c,_0x1642ce,_0x1478aa),_0x1642ce[_0x471702(0x199)](_0x26665c,_0x5ad001+0x1);}[_0x1a57e9(0x32c)](){const _0x463a39=_0x1a57e9;this['_shapes'][_0x463a39(0x321)]!==0x0&&(this[_0x463a39(0x243)][_0x463a39(0x21e)](_0x5c35fc=>{const _0x4c6dd9=_0x463a39;_0x5c35fc[_0x4c6dd9(0x32d)]();}),this[_0x463a39(0x243)]=[]);}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x1a57e9(0x248)](_0x25dd4e,_0x288b2a){const _0x215da5=_0x1a57e9;var _0x368159;let _0x32987f={'x':0x0,'y':0x0};if(!_0x25dd4e||!_0x288b2a)return _0x32987f;let _0x1a0ae0=this['_renderManagerService'][_0x215da5(0x174)](_0x25dd4e);if(!_0x1a0ae0||!_0x1a0ae0['with'](_0x2bd201)['getSkeleton'](_0x288b2a))return _0x32987f;let _0x36a83a=_0x1a0ae0[_0x215da5(0x346)](_0x56e08d),_0x327e70=_0x36a83a==null?void 0x0:_0x36a83a[_0x215da5(0x36e)]();if(!_0x327e70)return _0x32987f;let _0x5836e3=(_0x368159=this['_univerInstanceService'][_0x215da5(0x2d8)](_0x25dd4e))==null?void 0x0:_0x368159['getSheetBySheetId'](_0x288b2a);if(!_0x5836e3)return _0x32987f;let _0x551aa9=_0x56ed68(_0x327e70['sheetViewStartRow'],_0x327e70[_0x215da5(0x34c)],_0x1a0ae0[_0x215da5(0x21b)],_0x5836e3);return _0x551aa9?{'x':_0x551aa9[_0x215da5(0x2b5)],'y':_0x551aa9[_0x215da5(0x195)]}:_0x32987f;}[_0x1a57e9(0x225)](_0x573347,_0x283e3a){const _0x2129e0=_0x1a57e9;var _0x5e2733;let _0x33676b=(_0x5e2733=this[_0x2129e0(0x224)][_0x2129e0(0x2d8)](_0x573347))==null?void 0x0:_0x5e2733[_0x2129e0(0x1bc)](_0x283e3a);return(_0x33676b==null?void 0x0:_0x33676b['getZoomRatio']())??0x1;}[_0x1a57e9(0x1e5)](_0x2ea2d1,_0x273942,_0x567c2a){const _0x13cd1a=_0x1a57e9;this[_0x13cd1a(0x2db)](_0x3ee632(_0x2ea2d1['onPointerDown$'][_0x13cd1a(0x18f)]((_0x5e8a22,_0x579170)=>{const _0x143afe=_0x13cd1a;var _0x1b55ac,_0x3b1c63,_0x5dac89,_0xb8d104;let _0x4f07eb=_0x2ea2d1[_0x143afe(0x2e8)]();this[_0x143afe(0x35f)]=this['_getShapeAdjustInfosById'](_0x4f07eb[_0x143afe(0x264)],_0x4f07eb[_0x143afe(0x29a)],_0x4f07eb[_0x143afe(0x175)],_0x567c2a),this['_activeShapeModel']=this[_0x143afe(0x35e)][_0x143afe(0x29e)](_0x4f07eb[_0x143afe(0x264)],_0x4f07eb[_0x143afe(0x29a)],_0x4f07eb[_0x143afe(0x175)]);let _0x19b953=this[_0x143afe(0x218)][_0x143afe(0x223)]({'unitId':this[_0x143afe(0xec)],'subUnitId':this[_0x143afe(0x283)],'drawingId':this['_activeShapeId']}),{transform:_0x49abef}=_0x19b953;if(_0x49abef){let {left:_0x3d818e,top:_0x367f10,width:_0x28f624,height:_0x1b835b}=_0x49abef;this[_0x143afe(0x1cb)]=_0x3d818e||0x0,this[_0x143afe(0x363)]=_0x367f10||0x0,this[_0x143afe(0x1e4)]=_0x28f624||0x0,this[_0x143afe(0x118)]=_0x1b835b||0x0;}let _0x5905de=!!((_0x1b55ac=_0x19b953[_0x143afe(0x2b2)])!=null&&_0x1b55ac[_0x143afe(0xfd)]),_0x356ee9=!!((_0x3b1c63=_0x19b953[_0x143afe(0x2b2)])!=null&&_0x3b1c63['flipY']),_0x1df3aa=((_0x5dac89=_0x19b953[_0x143afe(0x2b2)])==null?void 0x0:_0x5dac89[_0x143afe(0x10a)])||0x0;this[_0x143afe(0x328)]=!0x0,_0x273942[_0x143afe(0x2e3)]();let _0x117e11={...((_0xb8d104=this[_0x143afe(0x35f)])==null?void 0x0:_0xb8d104[_0x143afe(0x303)])??{}};this[_0x143afe(0x2a6)]=_0x273942['onPointerMove$'][_0x143afe(0x18f)]((_0x3f12e4,_0x5addd6)=>{const _0x497f73=_0x143afe;if(!this[_0x497f73(0x328)])return;let {offsetX:_0x1c3b36,offsetY:_0x5e10df}=_0x3f12e4,_0x54084e=this[_0x497f73(0x35f)];if(this['_activeShapeModel']&&_0x54084e){_0x273942[_0x497f73(0x2e3)](),_0x273942[_0x497f73(0x227)](_0xee2861['CROSSHAIR']);let _0x318eec={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x743116=this[_0x497f73(0x248)](this[_0x497f73(0xec)],this[_0x497f73(0x283)]),_0x4ad528=this[_0x497f73(0x225)](this[_0x497f73(0xec)],this[_0x497f73(0x283)]),_0x41e9fb=_0x1c3b36/_0x4ad528+_0x743116['x']-this[_0x497f73(0x1cb)],_0x4682cd=_0x5e10df/_0x4ad528+_0x743116['y']-this[_0x497f73(0x363)];if(_0x1df3aa!==0x0){let _0x4c2f60=this['_baseShapeWidth']/0x2,_0x2f4e37=this[_0x497f73(0x118)]/0x2,_0x6a449f=_0x1df3aa*Math['PI']/0xb4,_0x295a6d=Math[_0x497f73(0x316)](_0x6a449f),_0x47957a=Math[_0x497f73(0x334)](_0x6a449f),_0x3ec8c9=_0x41e9fb-_0x4c2f60,_0x4f6141=_0x4682cd-_0x2f4e37;_0x41e9fb=_0x4c2f60+(_0x3ec8c9*_0x295a6d+_0x4f6141*_0x47957a),_0x4682cd=_0x2f4e37+(-_0x3ec8c9*_0x47957a+_0x4f6141*_0x295a6d);}_0x5905de&&(_0x41e9fb=this[_0x497f73(0x1e4)]-_0x41e9fb),_0x356ee9&&(_0x4682cd=this[_0x497f73(0x118)]-_0x4682cd);let _0x310bf1={'x':_0x41e9fb,'y':_0x4682cd},_0x5116c1=this[_0x497f73(0x295)][_0x497f73(0x236)](_0x318eec,_0x310bf1,_0x54084e,_0x5905de,_0x356ee9);if(Object[_0x497f73(0x20a)](_0x5116c1)[_0x497f73(0x321)]===0x0)return;for(let [_0x26312d,_0x131d94]of Object['entries'](_0x5116c1))this[_0x497f73(0x295)][_0x497f73(0x2dc)](_0x26312d,_0x131d94);this[_0x497f73(0x295)][_0x497f73(0x216)]({'width':this[_0x497f73(0x1e4)],'height':this[_0x497f73(0x118)]});let _0x402a52=this[_0x497f73(0x218)][_0x497f73(0x223)]({'unitId':_0x4f07eb[_0x497f73(0x264)],'subUnitId':_0x4f07eb[_0x497f73(0x29a)],'drawingId':_0x4f07eb[_0x497f73(0x175)]});_0x402a52&&(this[_0x497f73(0x237)]['renderDrawingShape'](_0x402a52,_0x273942),this[_0x497f73(0x12e)]=this['_getShapeAdjustPointListById'](_0x4f07eb['unitId'],_0x4f07eb[_0x497f73(0x29a)],_0x4f07eb['drawingId']),this[_0x497f73(0x109)]());}_0x5addd6[_0x497f73(0x207)]();}),this['_adjHandlerPointerUp']=_0x273942['onPointerUp$']['subscribeEvent']((_0x122fd2,_0x4f1efb)=>{const _0x278183=_0x143afe;this[_0x278183(0x2a6)][_0x278183(0x2b4)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x273942[_0x278183(0x327)]();let _0xf58c97=this[_0x278183(0x35f)];if(_0xf58c97){let _0x317308=_0x4f07eb[_0x278183(0x264)],_0x20443d=_0x4f07eb['subUnitId'],_0x5eb09d=_0x4f07eb[_0x278183(0x175)],_0x46baeb={};for(let _0x4f8740 of Object['keys'](_0xf58c97['currentAdjustValues'])){var _0x30dc14;let _0xc96259=(_0x30dc14=this[_0x278183(0x295)])==null?void 0x0:_0x30dc14[_0x278183(0x33d)](_0x4f8740);_0xc96259!==void 0x0&&(_0x46baeb[_0x4f8740]=_0xc96259);}Object[_0x278183(0x20a)](_0x46baeb)[_0x278183(0x321)]>0x0&&$n(this[_0x278183(0x27a)],_0x317308,_0x20443d,_0x5eb09d,{'oldShapeData':{'adjustValues':_0x117e11}},{'adjustValues':_0x46baeb});}this[_0x278183(0x35f)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x278183(0x328)]=!0x1,_0x4f1efb[_0x278183(0x207)](),_0x273942[_0x278183(0x115)]();}),_0x579170[_0x143afe(0x207)]();})));}[_0x1a57e9(0x287)](){const _0x4ccfd0=_0x1a57e9;let _0x3802f3=this[_0x4ccfd0(0x224)][_0x4ccfd0(0x1ed)](_0x3d832c[_0x4ccfd0(0xf3)]);this['disposeWithMe'](_0x3802f3['pipe'](_0x1990de(_0x240a21=>_0x240a21?_0x240a21[_0x4ccfd0(0x21c)]['pipe'](_0x1990de(_0x36979e=>{const _0x3ca709=_0x4ccfd0;if(!_0x36979e)return _0x3b0f55;let _0xb77bb5=_0x240a21[_0x3ca709(0x1e2)](),_0x3b5264=this['_renderManagerService']['getRenderUnitById'](_0xb77bb5),_0x6ba610=_0x3b5264==null?void 0x0:_0x3b5264['scene'];return _0x6ba610?_0x36bcf9(_0x6ba610):_0x3b0f55;})):_0x3b0f55))['subscribe'](_0x362169=>{const _0x1f0fed=_0x4ccfd0;let _0x55f11e=_0x362169['getTransformerByCreate']();this['disposeWithMe'](_0x362169[_0x1f0fed(0x117)][_0x1f0fed(0x18f)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x1f0fed(0x2db)](_0x55f11e[_0x1f0fed(0x1b3)][_0x1f0fed(0x23b)](_0x1fc991=>{const _0x3c42a7=_0x1f0fed;let {objects:_0x2d790c}=_0x1fc991;this[_0x3c42a7(0x364)](),_0x2d790c!==null&&_0x2d790c[_0x3c42a7(0x11a)]===0x1&&_0x2d790c[_0x3c42a7(0x193)]()['next']()[_0x3c42a7(0x2de)]instanceof ar&&this[_0x3c42a7(0x274)](!0x0);})),this[_0x1f0fed(0x2db)](_0x55f11e[_0x1f0fed(0x2d3)]['subscribe'](()=>{const _0x4e2973=_0x1f0fed;this[_0x4e2973(0xe7)]&&this['_clearShapeAdjustControls']();})),this[_0x1f0fed(0x2db)](_0x362169['onPointerUp$'][_0x1f0fed(0x18f)](()=>{const _0x2c7a57=_0x1f0fed;this[_0x2c7a57(0xe7)]&&(this[_0x2c7a57(0x274)](!0x1),this[_0x2c7a57(0x364)]());})),this['disposeWithMe'](_0x55f11e[_0x1f0fed(0x12a)][_0x1f0fed(0x23b)](()=>{const _0x102907=_0x1f0fed;this[_0x102907(0xec)]&&this[_0x102907(0x283)]&&this[_0x102907(0x1c7)]&&this[_0x102907(0x218)][_0x102907(0x223)]({'unitId':this[_0x102907(0xec)],'subUnitId':this[_0x102907(0x283)],'drawingId':this['_activeShapeId']})&&(this[_0x102907(0x12e)]=this[_0x102907(0x209)](this[_0x102907(0xec)],this[_0x102907(0x283)],this[_0x102907(0x1c7)]),this[_0x102907(0x109)]());}));}));}[_0x1a57e9(0x180)](){const _0x446468=_0x1a57e9;this[_0x446468(0x2db)](this['_commandService'][_0x446468(0x13f)](_0xb8a180=>{const _0x13bb86=_0x446468;if(_0xb8a180['id']!==_0x926363['id'])return;let {unitId:_0x22ecb8,subUnitId:_0x327f91,shapeId:_0x4df982}=_0xb8a180[_0x13bb86(0x374)];_0x22ecb8===this[_0x13bb86(0xec)]&&_0x327f91===this[_0x13bb86(0x283)]&&_0x4df982===this[_0x13bb86(0x1c7)]&&this['refreshAdjustControls']();})),this[_0x446468(0x2db)](this[_0x446468(0x218)][_0x446468(0x268)][_0x446468(0x23b)](_0xc85ec6=>{const _0x5504f4=_0x446468;if(_0xc85ec6[_0x5504f4(0x321)]===0x1){let _0x4f1642=_0xc85ec6[0x0];if(_0x4f1642[_0x5504f4(0x130)]===_0x3a939e[_0x5504f4(0x35c)]&&this['_univerInstanceService'][_0x5504f4(0x10d)](_0x4f1642[_0x5504f4(0x264)])===_0x3d832c[_0x5504f4(0xf3)]){this['_activeShapeId']=_0x4f1642[_0x5504f4(0x175)];let {unitId:_0x39c55a,subUnitId:_0x7a8a5d}=_0x4f1642;this[_0x5504f4(0x12e)]=this[_0x5504f4(0x209)](_0x39c55a,_0x7a8a5d,this[_0x5504f4(0x1c7)]),this['_unitId']=_0x39c55a,this['_subUnitId']=_0x7a8a5d,this[_0x5504f4(0x32c)](),this[_0x5504f4(0x364)]();return;}}this[_0x5504f4(0x1c7)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x5504f4(0x283)]=null,this[_0x5504f4(0x32c)]();})),this[_0x446468(0x2db)](this[_0x446468(0x218)][_0x446468(0x1d3)][_0x446468(0x23b)](_0x5c60c2=>{const _0x21cffb=_0x446468;if(_0x5c60c2[_0x21cffb(0x321)]===0x1){var _0x1dcb2b;let _0x20da9b=_0x5c60c2[0x0];((_0x1dcb2b=this[_0x21cffb(0x218)]['getDrawingByParam'](_0x20da9b))==null?void 0x0:_0x1dcb2b[_0x21cffb(0x130)])===_0x3a939e[_0x21cffb(0x35c)]&&this[_0x21cffb(0x24b)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService'][_0x446468(0x10f)][_0x446468(0x23b)](_0x4721f6=>{const _0x227ef7=_0x446468;for(let _0x503bd8 of _0x4721f6)this[_0x227ef7(0x1c7)]===_0x503bd8[_0x227ef7(0x175)]&&(this[_0x227ef7(0x1c7)]=null,this[_0x227ef7(0x12e)]=void 0x0,this['_unitId']=null,this[_0x227ef7(0x283)]=null,this['_clearShapeAdjustControls']());}));}};sr=Z([X(0x0,_0x3398d1),X(0x1,_0x236d5e(_0x434a53)),X(0x2,_0x236d5e(_0xebded9)),X(0x3,_0x236d5e(Q)),X(0x4,_0x4b61f3),X(0x5,_0x1b8f46)],sr);const cr={'id':'drawing.operation.set-drawing-active','type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1605fc,_0x464f90)=>{const _0x421a81=_0x1a57e9;let _0x5cc7bf=_0x1605fc[_0x421a81(0x272)](_0x3398d1),_0x4834a4=_0x1605fc[_0x421a81(0x272)](_0xebded9),_0x12461a=_0x1605fc[_0x421a81(0x272)](sr);if(_0x464f90==null)return!0x0;if(_0x464f90[_0x421a81(0x321)]>0x0){var _0x123b71;let _0x5bce8d=(_0x123b71=_0x4834a4[_0x421a81(0x174)](_0x464f90[0x0][_0x421a81(0x264)]))==null?void 0x0:_0x123b71[_0x421a81(0x21b)];if(_0x5bce8d){let {unitId:_0x17aa24,subUnitId:_0x34c154,drawingId:_0x171b9a}=_0x464f90[0x0],_0x3717c6=_0x238087({'unitId':_0x17aa24,'subUnitId':_0x34c154,'drawingId':_0x171b9a},void 0x0),_0x24283d=_0x5bce8d[_0x421a81(0x14f)](_0x3717c6);if(_0x24283d){var _0x2e273b;(_0x2e273b=_0x4834a4['getRenderUnitById'](_0x464f90[0x0][_0x421a81(0x264)]))==null||(_0x2e273b=_0x2e273b[_0x421a81(0x21b)][_0x421a81(0x1da)]())==null||_0x2e273b[_0x421a81(0x324)](_0x24283d);}}_0x5cc7bf[_0x421a81(0x2ff)](_0x464f90),_0x12461a[_0x421a81(0x274)](!0x1);}return!0x0;}},lr={'type':_0x42d4f6[_0x1a57e9(0x1c3)],'id':_0x1a57e9(0x305),'handler':async(_0x243f33,_0x1cf66e)=>{const _0x237f81=_0x1a57e9;let _0x21d82f=_0x5a285c(_0x243f33[_0x237f81(0x272)](_0x4b61f3));if(!_0x21d82f)return!0x1;let _0x5424e6=_0x243f33[_0x237f81(0x272)](_0x17030f)['getCurrentLastSelection']();if(!_0x5424e6)return!0x1;let _0x2c46d3=_0x243f33[_0x237f81(0x272)](_0x1b8f46),{unitId:_0x472dd8,subUnitId:_0x44c222}=_0x21d82f,{value:_0x5989cc,enhanceParams:_0x331745}=_0x1cf66e,{range:_0x57e279}=_0x5424e6,_0x418bdc={'unitId':_0x472dd8,'subUnitId':_0x44c222,'shapeType':_0x5989cc,'range':_0x57e279,'shapeId':_0xa48e11()};if(_0x331745){let _0x1d08fc=_0x3863ab(_0x5989cc),_0xf4115e=_0x5989cc===_0x2d2111[_0x237f81(0x14e)];_0x1d08fc&&(_0x331745[_0x237f81(0xf8)]||_0x331745[_0x237f81(0x23a)])&&(_0x418bdc[_0x237f81(0xee)]={'ln':{'startArrow':_0x331745[_0x237f81(0xf8)]?{'type':_0xb46528['Arrow'],'size':_0x505688[_0x237f81(0x2c3)]}:void 0x0,'endArrow':_0x331745['endArrow']?{'type':_0xb46528[_0x237f81(0x345)],'size':_0x505688['Large']}:void 0x0}}),_0xf4115e&&(_0x331745[_0x237f81(0x28e)]||_0x331745[_0x237f81(0x112)])&&(_0x418bdc['shapeData']=_0x294eed({'fill':{'fillType':_0x478734[_0x237f81(0x129)],'color':'#FFFFFF'},'isHorizontal':!!_0x331745['horizontal'],'stroke':{'lineStrokeType':_0x14ebc6[_0x237f81(0x1a4)],'width':0x1,'color':_0x237f81(0x24c)}}));}let _0x5b7a52=_0x2c46d3[_0x237f81(0x297)](_0x2f0bb2['id'],_0x418bdc);return setTimeout(()=>{const _0x50f6dc=_0x237f81;_0x2c46d3[_0x50f6dc(0x311)](cr['id'],[{'unitId':_0x472dd8,'subUnitId':_0x44c222,'drawingId':_0x418bdc[_0x50f6dc(0x2e2)]}]);},0xc8),_0x5b7a52;}},ur=_0x1a57e9(0x158),dr=_0x1a57e9(0x22d),fr=_0x1a57e9(0x166),pr='sheets-shape-ui.ribbon.shape-format',mr=_0x5dbcda('SHAPE_TEXT'),hr=_0x1a57e9(0xf7),gr={'id':_0x1a57e9(0x2f7),'type':_0x42d4f6[_0x1a57e9(0x1c3)],'handler':(_0x401dd4,_0x589788)=>{const _0x3e2af9=_0x1a57e9;let _0x56abfb=_0x401dd4[_0x3e2af9(0x272)](_0xaf9369),_0x31c33b=_0x401dd4['get'](_0x1d78e7),_0x39e7fa=_0x401dd4['get'](_0x4b61f3),_0x409748=_0x401dd4[_0x3e2af9(0x272)](_0x1b8f46);return _0x5a285c(_0x39e7fa)?(_0x589788==null?void 0x0:_0x589788[_0x3e2af9(0x2de)])===_0x3e2af9(0x155)?(_0x56abfb[_0x3e2af9(0x155)](dr),!0x0):(_0x56abfb[_0x3e2af9(0x241)]({'id':dr,'header':{'title':_0x31c33b['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':dr},'onClose':()=>{const _0x238f56=_0x3e2af9;_0x409748[_0x238f56(0x297)](_0x158934['id'],[]);},'width':0x168}),!0x0):!0x1;}},_r={'type':_0x42d4f6[_0x1a57e9(0x250)],'id':_0x1a57e9(0x19c),'handler'(){return!0x0;}};function vr(_0x53a6c5){const _0x139fcc=_0x1a57e9;let _0x564a3e=_0x53a6c5[_0x139fcc(0x272)](_0x3398d1)[_0x139fcc(0x15d)](),_0x45e27a=_0x564a3e[_0x139fcc(0x321)]===0x1?_0x564a3e[0x0]:null;if(!_0x45e27a||_0x45e27a[_0x139fcc(0x130)]!==_0x3a939e[_0x139fcc(0x35c)])return null;let _0x5e85df=_0x53a6c5[_0x139fcc(0x272)](_0x434a53),_0x2b20dd=_0x5e85df['getShapeTypeById'](_0x45e27a['unitId'],_0x45e27a[_0x139fcc(0x29a)],_0x45e27a[_0x139fcc(0x175)]),_0x4aca41=_0x5e85df['getShapeDataById'](_0x45e27a[_0x139fcc(0x264)],_0x45e27a[_0x139fcc(0x29a)],_0x45e27a[_0x139fcc(0x175)]);return _0x2b20dd===void 0x0||!_0x4aca41?null:{'drawing':_0x45e27a,'shapeData':_0x4aca41,'shapeType':_0x2b20dd};}const yr={'id':_0x1a57e9(0x26c),'type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1ccf3f,_0x4dad11)=>{const _0x36c829=_0x1a57e9;let _0x4b1ad7=vr(_0x1ccf3f),_0x2e6e4a=_0x36420e((_0x4dad11==null?void 0x0:_0x4dad11[_0x36c829(0x172)])??(_0x4dad11==null?void 0x0:_0x4dad11['value'])??'');if(!_0x4b1ad7||!_0x2e6e4a||_0x2e6e4a[_0x36c829(0x2c0)]!==_0x38830c(_0x4b1ad7[_0x36c829(0xee)]))return!0x1;let _0x302864=_0x1c41c8(_0x4b1ad7['shapeData'],_0x2e6e4a);if(!_0x302864)return!0x1;let {drawing:_0x556349}=_0x4b1ad7;return _0x1ccf3f[_0x36c829(0x272)](_0x1b8f46)[_0x36c829(0x311)](Qn['id'],{'unitId':_0x556349[_0x36c829(0x264)],'subUnitId':_0x556349['subUnitId'],'shapeId':_0x556349[_0x36c829(0x175)],'shapeData':_0x302864,'oldShapeJSON':{'oldShapeData':_0x4b1ad7['shapeData']}});}},br={'id':'sheet.operation.update-shape-type','type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1dae44,_0x4a0ad9)=>{const _0x47236c=_0x1a57e9;let _0x3c172a=vr(_0x1dae44),_0xfdc60f=(_0x4a0ad9==null?void 0x0:_0x4a0ad9['shapeType'])??(_0x4a0ad9==null?void 0x0:_0x4a0ad9[_0x47236c(0x2de)]);if(!_0x3c172a||!_0xfdc60f||_0x3863ab(_0x3c172a[_0x47236c(0x2fd)])||_0x3863ab(_0xfdc60f))return!0x1;let _0x4d6d06=_0x4ebde1(_0x3c172a[_0x47236c(0xee)],_0xfdc60f);if(!_0x4d6d06)return!0x1;let {drawing:_0x15571d}=_0x3c172a;return _0x1dae44['get'](_0x1b8f46)[_0x47236c(0x311)](Qn['id'],{'unitId':_0x15571d['unitId'],'subUnitId':_0x15571d[_0x47236c(0x29a)],'shapeId':_0x15571d[_0x47236c(0x175)],'shapeType':_0xfdc60f,'shapeData':_0x4d6d06,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3c172a[_0x47236c(0x2fd)],'oldShapeData':_0x3c172a[_0x47236c(0xee)]}});}};let xr=class extends _0x458cfa{constructor(_0x420fe0,_0x2ccc29){const _0x1dd545=_0x1a57e9;super(),this[_0x1dd545(0x359)]=_0x420fe0,this[_0x1dd545(0x218)]=_0x2ccc29,this[_0x1dd545(0x1a0)](),this[_0x1dd545(0x359)][_0x1dd545(0x282)](!0x0),this[_0x1dd545(0x2db)]({'dispose':()=>this[_0x1dd545(0x359)][_0x1dd545(0x282)](!0x1)});}[_0x1a57e9(0x1a0)](){const _0x4bbb22=_0x1a57e9;let _0x129d28=this[_0x4bbb22(0x359)],_0xf807af=new Map(),_0x251a36=_0x129d28[_0x4bbb22(0x134)]((_0x27c2e7,_0x5a4c21,_0x513853,_0x5d447c,_0x5a6d04)=>{const _0x4e726a=_0x4bbb22;let _0x2cc0cd=_0x5a4c21;if(_0x2cc0cd===_0x2d2111[_0x4e726a(0x102)]||_0x5a4c21===_0x4e726a(0x2e1))return!0x1;try{let _0xa64c31=_0xf807af[_0x4e726a(0x272)](_0x5a4c21);return _0xa64c31||(_0xa64c31=new _0x300a94(_0x2cc0cd,_0x4e726a(0x1b5)+_0x5a4c21),_0xf807af[_0x4e726a(0x181)](_0x5a4c21,_0xa64c31)),_0xa64c31[_0x4e726a(0x17b)](),_0x5a6d04&&Object['keys'](_0x5a6d04)[_0x4e726a(0x321)]>0x0&&_0xa64c31['setShapeData']({'adjustValues':_0x5a6d04},!0x0),_0xa64c31[_0x4e726a(0x216)]({'width':_0x513853,'height':_0x5d447c}),_0xa64c31[_0x4e726a(0x34a)](_0x27c2e7,{'left':0x0,'top':0x0,'width':_0x513853,'height':_0x5d447c});}catch{return!0x1;}});this[_0x4bbb22(0x2db)](_0x251a36),this[_0x4bbb22(0x2db)]({'dispose':()=>_0xf807af['clear']()});}[_0x1a57e9(0x1bb)](_0x8a36a8,_0x248f34,_0x225ee4,_0x1cb156,_0x196557){const _0x55c2d9=_0x1a57e9;let _0x11c80b=this[_0x55c2d9(0x218)][_0x55c2d9(0x35a)](_0x8a36a8,_0x248f34);if(!_0x11c80b[_0x225ee4])return;let _0x3dd822={..._0x11c80b[_0x225ee4],'prstGeom':_0x1cb156,'adjustValues':_0x196557};this[_0x55c2d9(0x218)][_0x55c2d9(0x16e)]([_0x3dd822]);}};xr=Z([X(0x0,_0x236d5e(_0x5ae22a)),X(0x1,_0x236d5e(_0x3398d1))],xr);const Sr=_0x1a57e9(0x1e6),Cr=_0x1a57e9(0x1d2);function wr({onShapeClick:_0x4a44f3,excludeGroups:_0x460056}){const _0x3dc7f3=_0x1a57e9;return _0x16ab0d(_0x55a6fc,{'excludeGroups':_0x460056,'onShapeClick':_0x4a44f3,'scrollContainer':_0x3dc7f3(0x232)});}function Tr(){const _0x417306=_0x1a57e9;let _0x20cb5c=_0x5ee9a9(_0x3398d1),_0x1e5824=_0x5ee9a9(xr);return _0x16ab0d(_0x4951a2,{'buttonLabel':_0x417306(0x228),'excludeGroups':[_0x5254a4['Line']],'onShapeClick':_0x5070aa=>{const _0x19dc3b=_0x417306;let _0x24e0e5=_0x20cb5c['getFocusDrawings']()[_0x19dc3b(0x26b)](_0xa47e76=>_0xa47e76[_0x19dc3b(0x130)]===_0x3a939e[_0x19dc3b(0x162)]);if(!_0x24e0e5)return;let {unitId:_0x548677,subUnitId:_0x49c389,drawingId:_0x46c0fa}=_0x24e0e5;_0x1e5824[_0x19dc3b(0x1bb)](_0x548677,_0x49c389,_0x46c0fa,_0x5070aa[_0x19dc3b(0x2c0)]);}});}function Er(){const _0x5ed4df=_0x1a57e9;let _0x22a66b=_0x5ee9a9(_0x3377c6),_0x37b0e3=_0x5ee9a9(_0x3398d1),_0x5920d2=_0x5ee9a9(_0x4b61f3),_0xd9cb9a=_0x37b0e3[_0x5ed4df(0x15d)]()[0x0],_0xc5f67e=_0xd9cb9a?_0x5920d2['getUnitType'](_0xd9cb9a[_0x5ed4df(0x264)]):void 0x0,_0x26ccad=_0xc5f67e===_0x3d832c[_0x5ed4df(0x1d6)]?'doc.image-clip.shape-picker.component':_0xc5f67e===_0x3d832c[_0x5ed4df(0xf3)]?Cr:void 0x0,_0x511f93=_0x26ccad?_0x22a66b['get'](_0x26ccad):void 0x0;return _0x511f93?_0x16ab0d(_0x511f93,{}):null;}function Dr(){let _0x30264e=_0x5ee9a9(_0x1b8f46);return _0x16ab0d(wr,{'onShapeClick':_0x3e684c=>{const _0x5331eb=_0x4a8a;_0x30264e[_0x5331eb(0x311)](lr['id'],{'value':_0x3e684c[_0x5331eb(0x2c0)],'enhanceParams':{'endArrow':_0x3e684c[_0x5331eb(0x23a)],'startArrow':_0x3e684c[_0x5331eb(0xf8)],'horizontal':_0x3e684c[_0x5331eb(0x28e)],'vertical':_0x3e684c[_0x5331eb(0x112)]}});}});}function Or(_0x460f4e){const _0x465fe5=_0x1a57e9;let _0x3640eb=_0x460f4e['get'](_0x4b61f3);return{'id':lr['id'],'type':_0x870bc4[_0x465fe5(0x251)],'selections':[{'label':{'name':Sr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':lr['id']}}}],'icon':_0x465fe5(0x342),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x3c15b6(_0x3640eb,!0x1,()=>new _0x96c1cf(_0x42d6b7=>{const _0x374dfc=_0x465fe5;_0x42d6b7[_0x374dfc(0x18c)](!0x1);})),'hidden$':_0x472593(_0x460f4e,_0x3d832c[_0x465fe5(0xf3)]),'disabled$':_0x5052c4(_0x460f4e)};}function kr(_0x46fa8e){const _0x37bf83=_0x1a57e9;let _0x45bf72=_0x46fa8e['get'](_0x4b61f3);return{'id':gr['id'],'type':_0x870bc4[_0x37bf83(0x1d9)],'icon':'ObjectLayersIcon','title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x37bf83(0x247),'activated$':_0x3c15b6(_0x45bf72,!0x1,()=>new _0x96c1cf(_0x2e1c0f=>{const _0x181982=_0x37bf83;_0x2e1c0f[_0x181982(0x18c)](!0x1);})),'hidden$':_0x472593(_0x46fa8e,_0x3d832c['UNIVER_SHEET']),'disabled$':_0x5052c4(_0x46fa8e)};}const Ar=_0x1a57e9(0x34b),jr='sheet.menu.shape.flip-vertical';function Mr(_0x11bc69){const _0x5ca3ca=_0x1a57e9;let _0x236e07=_0x11bc69['get'](_0x3398d1)['getFocusDrawings']();return _0x236e07[_0x5ca3ca(0x321)]===0x1&&_0x236e07[0x0][_0x5ca3ca(0x130)]===_0x3a939e[_0x5ca3ca(0x35c)]?_0x236e07[0x0]:null;}function Nr(_0x522df4){const _0x282acc=_0x1a57e9;let _0x166e0d=_0x522df4['get'](_0x3398d1);return _0x166e0d[_0x282acc(0x268)][_0x282acc(0x15e)](_0x49a949(_0x166e0d['getFocusDrawings']()),_0x1e6cce(_0x32bb9c=>_0x32bb9c[_0x282acc(0x321)]!==0x1||_0x32bb9c[0x0][_0x282acc(0x130)]!==_0x3a939e[_0x282acc(0x35c)]));}function Pr(_0x16e8cc){const _0x317f82=_0x1a57e9;return{'id':Ar,'commandId':_0x219c9d['id'],'type':_0x870bc4[_0x317f82(0x1d9)],'title':_0x317f82(0x144),'tooltip':'sheets-shape-ui.flipHorizontal','icon':'FlipHorizontalIcon','hidden$':Nr(_0x16e8cc),'params':()=>{const _0x2bc9a6=_0x317f82;let _0x4199a1=Mr(_0x16e8cc);return _0x4199a1?{'unitId':_0x4199a1[_0x2bc9a6(0x264)],'subUnitId':_0x4199a1[_0x2bc9a6(0x29a)],'shapeId':_0x4199a1[_0x2bc9a6(0x175)],'flipH':!0x0}:void 0x0;}};}function Fr(_0x26f4a3){const _0x1ba8c8=_0x1a57e9;return{'id':jr,'commandId':_0x219c9d['id'],'type':_0x870bc4[_0x1ba8c8(0x1d9)],'title':_0x1ba8c8(0x331),'tooltip':_0x1ba8c8(0x331),'icon':_0x1ba8c8(0x19f),'hidden$':Nr(_0x26f4a3),'params':()=>{const _0x220f27=_0x1ba8c8;let _0x12850b=Mr(_0x26f4a3);return _0x12850b?{'unitId':_0x12850b[_0x220f27(0x264)],'subUnitId':_0x12850b[_0x220f27(0x29a)],'shapeId':_0x12850b['drawingId'],'flipV':!0x0}:void 0x0;}};}const Ir=_0x1a57e9(0x124),Lr=_0x1a57e9(0x2d2),Rr='sheets-shape-ui.shape-format.text-ribbon-control',zr='sheets-shape-ui.shape-format.formula-ribbon-control';function Br(){let _0x50db26=_0x5ee9a9(_0x1b8f46),_0x17e2c6=_0x5ee9a9(_0x3398d1),_0x38fc48=_0x5ee9a9(_0x434a53),_0x2bccad=()=>{const _0xc65a0f=_0x4a8a;var _0x5a569a;let _0x59c3a7=_0x17e2c6[_0xc65a0f(0x15d)]();if(_0x59c3a7[_0xc65a0f(0x321)]!==0x1||((_0x5a569a=_0x59c3a7[0x0])==null?void 0x0:_0x5a569a[_0xc65a0f(0x130)])!==_0x3a939e['DRAWING_SHAPE'])return null;let {unitId:_0x1d6c83,subUnitId:_0xa2c1e6,drawingId:_0x1da4c4}=_0x59c3a7[0x0],_0x109054=_0x38fc48[_0xc65a0f(0x34e)](_0x1d6c83,_0xa2c1e6,_0x1da4c4),_0x4180ac=_0x38fc48[_0xc65a0f(0x335)](_0x1d6c83,_0xa2c1e6,_0x1da4c4);return _0x109054===void 0x0||!_0x4180ac?null:{'unitId':_0x1d6c83,'subUnitId':_0xa2c1e6,'drawingId':_0x1da4c4,'shapeType':_0x109054,'shapeData':_0x4180ac};},_0x149fd3=_0x263d75(()=>new _0x96c1cf(_0x3f8997=>{const _0x7c6e24=_0x4a8a;let _0x119693=()=>_0x3f8997[_0x7c6e24(0x18c)](_0x2bccad()),_0x423eeb=_0x17e2c6[_0x7c6e24(0x268)][_0x7c6e24(0x23b)](_0x119693),_0x1d0fe2=_0x50db26['onCommandExecuted'](_0x6b8ecc=>{_0x6b8ecc['id']===_0x926363['id']&&_0x119693();});return _0x119693(),()=>{const _0x2af919=_0x7c6e24;_0x423eeb[_0x2af919(0x2b4)](),_0x1d0fe2['dispose']();};}),_0x2bccad(),!0x1,[_0x50db26,_0x17e2c6,_0x38fc48]);return{'selection':_0x149fd3,'updateShapeData':_0x58613c=>{const _0x58cfbc=_0x4a8a;_0x149fd3&&$n(_0x50db26,_0x149fd3[_0x58cfbc(0x264)],_0x149fd3[_0x58cfbc(0x29a)],_0x149fd3[_0x58cfbc(0x175)],{'oldShapeData':_0x149fd3[_0x58cfbc(0xee)]},_0x58613c);}};}function Vr(){let {selection:_0x58328d,updateShapeData:_0x367ef5}=Br();return _0x58328d?_0x16ab0d(_0x324497,{'shapeData':_0x58328d['shapeData'],'shapeType':_0x58328d['shapeType'],'onUpdateShapeData':_0x367ef5}):null;}function Hr(){const _0x43c2bd=_0x1a57e9;let _0x243f09=_0x5ee9a9(_0x1b8f46),_0x3777f5=_0x5ee9a9(_0x1d78e7),{selection:_0x5a44b5}=Br();return _0x5a44b5?_0x16ab0d(_0xd337d7,{'type':_0x38830c(_0x5a44b5[_0x43c2bd(0xee)]),'ariaLabel':_0x3777f5['t'](_0x43c2bd(0x26d)),'activePresetId':_0x33cca3(_0x5a44b5['shapeData']),'onSelect':_0x34dae2=>_0x243f09[_0x43c2bd(0x311)](yr['id'],{'presetId':_0x34dae2})}):null;}function Ur(){const _0x4e2331=_0x1a57e9;let {selection:_0x2901ce,updateShapeData:_0x40fc62}=Br();return _0x2901ce?_0x16ab0d(_0x39ec8e,{'fontFamilyPopupDataComponent':_0x4e2331(0x1ce),'shapeData':_0x2901ce[_0x4e2331(0xee)],'onUpdateShapeData':_0x40fc62}):null;}function Wr(){const _0x494650=_0x1a57e9;var _0x15b183;let {selection:_0x4cb841,updateShapeData:_0x320e09}=Br(),_0x39833d=_0x34ed3a({'hostType':_0x3d832c[_0x494650(0xf3)],'unitId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x264)])??'','subUnitId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x29a)])??'','shapeId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x175)])??'','shapeData':_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0xee)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x494650(0x2f4),'onUpdateBinding':_0x10db37=>_0x320e09({'formulaBinding':_0x10db37})}),_0x5652d8=((_0x15b183=_0x39833d['extensionGroups'])==null?void 0x0:_0x15b183[_0x494650(0x198)](_0x49e25b=>_0x49e25b[_0x494650(0x36d)])[_0x494650(0xeb)](_0x10d6b7=>_0x10d6b7[_0x494650(0x285)]!==!0x1))??[];return _0x4cb841!=null&&_0x4cb841[_0x494650(0xee)]['formulaBinding']?_0x16ab0d(_0x58ba9f,{'actions':_0x5652d8,'panel':_0x39833d['panel']}):null;}const Gr=_0x1a57e9(0x15a),Kr=_0x1a57e9(0x33a),qr=_0x1a57e9(0x2ef),Jr=_0x1a57e9(0x2cc),Yr=_0x1a57e9(0x1f9),Xr='sheets-shape-ui.ribbon.shape-format.arrange-front',Zr='sheets-shape-ui.ribbon.shape-format.arrange-back';function Qr(_0x3c8098){const _0x2abce5=_0x1a57e9;let _0x3f143b=_0x3c8098['get'](_0x1b8f46),_0x2d9606=_0x3c8098[_0x2abce5(0x272)](_0x3398d1),_0x32c7da=_0x3c8098[_0x2abce5(0x272)](_0x434a53);return new _0x96c1cf(_0x5c6983=>{const _0x28b007=_0x2abce5;let _0x53efce=()=>{const _0x5c8bf4=_0x4a8a;let _0x26b951=$r(_0x3c8098),_0x23f3ab=_0x26b951?_0x32c7da['getShapeDataById'](_0x26b951[_0x5c8bf4(0x264)],_0x26b951[_0x5c8bf4(0x29a)],_0x26b951[_0x5c8bf4(0x175)]):null;_0x5c6983[_0x5c8bf4(0x18c)](_0x23f3ab?_0x33cca3(_0x23f3ab)??'':'');},_0x1392fe=_0x2d9606[_0x28b007(0x268)][_0x28b007(0x23b)](_0x53efce),_0x570392=_0x3f143b[_0x28b007(0x13f)](_0x47001d=>{_0x47001d['id']===_0x926363['id']&&_0x53efce();});return _0x53efce(),()=>{const _0x11ca40=_0x28b007;_0x1392fe[_0x11ca40(0x2b4)](),_0x570392[_0x11ca40(0x32d)]();};});}function $r(_0x5b7438){const _0xc99882=_0x1a57e9;var _0x44f0eb;let _0x5f4889=_0x5b7438[_0xc99882(0x272)](_0x3398d1)[_0xc99882(0x15d)]();return _0x5f4889[_0xc99882(0x321)]===0x1&&((_0x44f0eb=_0x5f4889[0x0])==null?void 0x0:_0x44f0eb[_0xc99882(0x130)])===_0x3a939e[_0xc99882(0x35c)]?_0x5f4889[0x0]:null;}function ei(_0x230b3c,_0x389ab3=!0x1){const _0x2bbb32=_0x1a57e9;let _0x3cfb05=_0x230b3c['get'](_0x1b8f46),_0x376bc2=_0x230b3c[_0x2bbb32(0x272)](_0x3398d1),_0x16862c=_0x230b3c[_0x2bbb32(0x272)](_0x434a53);return new _0x96c1cf(_0x426859=>{const _0x3ba974=_0x2bbb32;let _0x1b2a8e=()=>{const _0x15e412=_0x4a8a;let _0xdd4e53=$r(_0x230b3c);if(!_0xdd4e53){_0x426859['next'](!0x0);return;}let _0x120dd5=_0x16862c[_0x15e412(0x335)](_0xdd4e53[_0x15e412(0x264)],_0xdd4e53[_0x15e412(0x29a)],_0xdd4e53[_0x15e412(0x175)]);_0x426859[_0x15e412(0x18c)](!_0x120dd5||_0x389ab3&&_0x120dd5[_0x15e412(0x192)]==null);},_0x1790da=_0x376bc2[_0x3ba974(0x268)][_0x3ba974(0x23b)](_0x1b2a8e),_0x767938=_0x3cfb05['onCommandExecuted'](_0x3b22a1=>{_0x3b22a1['id']===_0x926363['id']&&_0x1b2a8e();});return _0x1b2a8e(),()=>{const _0x5c39ff=_0x3ba974;_0x1790da['unsubscribe'](),_0x767938[_0x5c39ff(0x32d)]();};});}function ti(_0xd86885){const _0x77d7f0=_0x1a57e9;let _0x268e82=_0xd86885[_0x77d7f0(0x272)](_0x3398d1),_0x573d68=_0xd86885[_0x77d7f0(0x272)](_0x434a53);return _0x268e82[_0x77d7f0(0x268)][_0x77d7f0(0x15e)](_0x49a949(_0x268e82['getFocusDrawings']()),_0x1e6cce(()=>{const _0x3336be=_0x77d7f0;let _0x24ddee=$r(_0xd86885),_0x1bba53=_0x24ddee?_0x573d68[_0x3336be(0x34e)](_0x24ddee[_0x3336be(0x264)],_0x24ddee[_0x3336be(0x29a)],_0x24ddee['drawingId']):void 0x0;return _0x1bba53===void 0x0||_0x3863ab(_0x1bba53);}));}function ni(_0x54fed3){const _0xb58711=_0x1a57e9;return{'id':yr['id'],'type':_0x870bc4['SELECTOR'],'icon':_0xb58711(0x154),'title':_0xb58711(0x273),'tooltip':_0xb58711(0x273),'selections':[{'label':{'name':Ir,'hoverable':!0x1,'selectable':!0x1}}],'value$':Qr(_0x54fed3),'hidden$':ei(_0x54fed3)};}function ri(_0x1f2aff){const _0x4c3ecc=_0x1a57e9;return{'id':br['id'],'type':_0x870bc4[_0x4c3ecc(0x251)],'icon':_0x4c3ecc(0x342),'title':_0x4c3ecc(0x315),'tooltip':_0x4c3ecc(0x315),'slot':!0x0,'selections':[{'label':{'name':_0x27ef7f,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ti(_0x1f2aff)};}function ii(_0x21c7fe,_0x4eba13,_0x5d6aec=!0x1){const _0x5576c8=_0x1a57e9;return _0x569443=>({'id':_0x21c7fe,'type':_0x870bc4[_0x5576c8(0x1d9)],'label':{'name':_0x4eba13,'hoverable':!0x1,'selectable':!0x1},'hidden$':ei(_0x569443,_0x5d6aec)});}const ai=ii(Gr,Lr),oi=ii(Kr,Rr),si=ii(qr,zr,!0x0);function ci(_0x16acf2,_0x3c1b61,_0x3d09ce,_0x327ca2){const _0x69fc4d=_0x1a57e9;return _0x513dbd=>({'id':_0x16acf2,'commandId':_0x2b3290['id'],'type':_0x870bc4[_0x69fc4d(0x1d9)],'icon':_0x3d09ce,'title':_0x327ca2,'tooltip':_0x327ca2,'hidden$':ei(_0x513dbd),'params':()=>{const _0x4ce2fe=_0x69fc4d;let _0x468127=$r(_0x513dbd);return _0x468127?{'unitId':_0x468127[_0x4ce2fe(0x264)],'subUnitId':_0x468127[_0x4ce2fe(0x29a)],'drawingIds':[_0x468127[_0x4ce2fe(0x175)]],'arrangeType':_0x3c1b61}:void 0x0;}});}const li=ci(Jr,_0x292bd6[_0x1a57e9(0x2ea)],_0x1a57e9(0x1df),_0x1a57e9(0x1ea)),ui=ci(Yr,_0x292bd6[_0x1a57e9(0x12b)],'MoveDownIcon',_0x1a57e9(0x106)),di=ci(Xr,_0x292bd6[_0x1a57e9(0x2ee)],_0x1a57e9(0x372),_0x1a57e9(0x254)),fi=ci(Zr,_0x292bd6[_0x1a57e9(0x2b6)],_0x1a57e9(0x2d4),_0x1a57e9(0x29c));function pi(_0x5853b8){const _0x1e7385=_0x1a57e9;return{'id':_r['id'],'type':_0x870bc4[_0x1e7385(0x1d9)],'icon':_0x1e7385(0x271),'title':_0x1e7385(0x2d6),'tooltip':_0x1e7385(0x2d6),'hidden$':ei(_0x5853b8),'params':()=>{const _0x45d8ca=_0x1e7385;let _0x27134b=$r(_0x5853b8);return _0x27134b?{'unitId':_0x27134b['unitId'],'subUnitId':_0x27134b['subUnitId'],'drawingId':_0x27134b[_0x45d8ca(0x175)]}:void 0x0;}};}const mi={[_0x38bf7b[_0x1a57e9(0x127)]]:{[pr]:{'order':0x64,'title':_0x1a57e9(0x2d6),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[yr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':ni},[br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ri}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Gr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':ai}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Kr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':oi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Ar]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Pr},[jr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Fr},[Jr]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':li},[Yr]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ui},[Xr]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':di},[Zr]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':fi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[qr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':si}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[_r['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[_0x4879d7['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5de80e}}}}},hi={[_0x624e4b[_0x1a57e9(0x23f)]]:{[lr['id']]:{'order':0x4,'menuItemFactory':Or}},[_0x624e4b[_0x1a57e9(0x1c4)]]:{[gr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':kr}},[_0x40b403['DRAWING']]:{[_0x5e36e3['OTHERS']]:{[Ar]:{'order':0x4,'menuItemFactory':Pr},[jr]:{'order':0x5,'menuItemFactory':Fr}}}};var gi=_0x1a57e9(0x336),_i=_0x1a57e9(0x146);const vi={'type':_0x42d4f6['OPERATION'],'id':_0x1a57e9(0x2f8),'handler'(){return!0x0;}},yi={};function bi(_0x3ac5d7){const _0x58a190=_0x1a57e9;return _0x3ac5d7[_0x58a190(0x22a)]()||void 0x0;}function xi(_0x2588fc,_0x5641ad,_0x4bb902){const _0x19879b=_0x1a57e9;var _0x5ca49b;return((_0x5ca49b=_0x2588fc[_0x19879b(0x313)])==null?void 0x0:_0x5ca49b[_0x19879b(0x22a)]())||_0x5163f8(_0x4bb902,_0x2a725c(_0x2588fc[_0x19879b(0x130)]))+'\x20'+(_0x5641ad+0x1);}function Si(){const _0x402bd1=_0x1a57e9;var _0x4a4d97;let _0x428338=_0x5ee9a9(_0x1d78e7),_0x1175e5=_0x5ee9a9(_0x1b8f46),_0x5740ed=_0x5ee9a9(_0x4b61f3),_0x241e80=_0x5ee9a9(_0x456a1c),_0x294940=_0x5ee9a9(_0x3398d1),_0x4b0e4f=_0x5ee9a9(_0xebded9),[,_0x3d3679]=_0x4911df(_0x2310f8=>_0x2310f8+0x1,0x0),_0x1c5af3=_0x5740ed['getCurrentUnitOfType'](_0x3d832c[_0x402bd1(0xf3)]),_0x28342f=(_0x1c5af3==null?void 0x0:_0x1c5af3['getUnitId']())??'',_0x2d6b28=(_0x1c5af3==null||(_0x4a4d97=_0x1c5af3[_0x402bd1(0x19e)]())==null?void 0x0:_0x4a4d97[_0x402bd1(0x369)]())??'',_0x53bfba=_0x263d75(()=>_0x294940[_0x402bd1(0x268)],_0x294940[_0x402bd1(0x15d)](),!0x1,[_0x294940]);_0x219537(()=>{const _0x5663ed=_0x402bd1;let _0x3a90e8=_0x1175e5['onCommandExecuted'](()=>_0x3d3679());return()=>_0x3a90e8[_0x5663ed(0x32d)]();},[_0x1175e5]);let _0x233557=_0xf2a45c(()=>_0x5dfe29(_0x428338),[_0x428338]),_0x160c55=_0x28342f&&_0x2d6b28?_0x241e80[_0x402bd1(0x35a)](_0x28342f,_0x2d6b28):{},_0x32f183=(_0x28342f&&_0x2d6b28?_0x241e80['getDrawingOrder'](_0x28342f,_0x2d6b28):[])['map'](_0xe80634=>_0x160c55[_0xe80634])['filter'](_0x15bb15=>!!_0x15bb15)[_0x402bd1(0x140)](),_0x3586a3=_0x32f183[_0x402bd1(0x31b)]((_0xe1eca5,_0x1c6940)=>(_0xe1eca5[_0x4c8a2b(_0x1c6940[_0x402bd1(0x130)])]+=0x1,_0xe1eca5),{'canvas':0x0,'floating':0x0}),_0x3bdf4a={'canvas':0x0,'floating':0x0},_0x1f12fe=_0x32f183[_0x402bd1(0x1a6)]((_0x311c06,_0x22bd93)=>{const _0x51da71=_0x402bd1;let _0x2155db=_0x4c8a2b(_0x311c06[_0x51da71(0x130)]),_0x58e494=_0x2155db===_0x182658,_0x43c294=_0x3bdf4a[_0x2155db]++;return{'id':_0x311c06[_0x51da71(0x175)],'name':xi(_0x311c06,_0x22bd93,_0x428338),'description':_0x311c06[_0x51da71(0x28c)],'visible':_0x311c06[_0x51da71(0x276)]!==!0x0,'selectable':_0x311c06[_0x51da71(0x317)]!==!0x1,'sectionId':_0x2155db,'sectionTitle':_0x58e494?_0x233557[_0x51da71(0x101)]:_0x233557['sectionCanvas'],'capabilities':_0x58e494?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x58e494&&_0x43c294>0x0,'canMoveBackward':!_0x58e494&&_0x43c294<_0x3586a3[_0x51da71(0x258)]-0x1,'canReorder':!_0x58e494};}),_0x39d96e=_0xf2a45c(()=>(_0x53bfba??[])[_0x402bd1(0xeb)](_0x225aa3=>_0x225aa3['unitId']===_0x28342f&&_0x225aa3[_0x402bd1(0x29a)]===_0x2d6b28)[_0x402bd1(0x1a6)](_0x45034f=>_0x45034f[_0x402bd1(0x175)]),[_0x53bfba,_0x2d6b28,_0x28342f]),_0x396715=_0x39d96e[_0x39d96e[_0x402bd1(0x321)]-0x1]??null,_0x2dad32=_0x174835=>_0x241e80[_0x402bd1(0x223)]({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x174835})??null,_0x291ef3=async _0x30a65e=>{const _0x3841e6=_0x402bd1;!_0x28342f||!_0x30a65e['length']||await _0x1175e5[_0x3841e6(0x311)](_0x5613c7['id'],{'unitId':_0x28342f,'drawings':_0x30a65e});},_0x167dff=async(_0x439e42,_0x4b62be)=>{_0x2dad32(_0x439e42)&&await _0x291ef3([{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x439e42,..._0x4b62be}]);},_0x4de035=(_0x717bf3,_0x36871b)=>{const _0x14ece1=_0x402bd1;if(!_0x28342f||!_0x2d6b28)return;let _0x1de075=_0x36871b?_0x39d96e[_0x14ece1(0x14d)](_0x717bf3)?_0x39d96e[_0x14ece1(0xeb)](_0x64b8b=>_0x64b8b!==_0x717bf3):[..._0x39d96e,_0x717bf3]:[_0x717bf3];_0x1175e5[_0x14ece1(0x297)](_0x158934['id'],_0x1de075[_0x14ece1(0x1a6)](_0x145b43=>({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x145b43})));let _0x1d8fcf=_0x1de075[_0x1de075['length']-0x1];_0x1d8fcf?_0x4d4798(_0x4b0e4f,{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x1d8fcf}):_0x4b95c2(_0x4b0e4f,_0x28342f);},_0x1e4dd5=async(_0x880a1c,_0x3a439b)=>{const _0x5f07d5=_0x402bd1;await _0x291ef3(_0x880a1c['map'](_0x510661=>_0x2dad32(_0x510661))['filter'](_0x1f7982=>!!_0x1f7982)[_0x5f07d5(0xeb)](_0x2107e5=>_0x2107e5['hidden']!==!0x0!==_0x3a439b)['map'](_0x4257ec=>({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x4257ec[_0x5f07d5(0x175)],'hidden':!_0x3a439b})));},_0x1d59ff=async _0x120aec=>{const _0x1da605=_0x402bd1;let _0x281fd4=_0x2dad32(_0x120aec);_0x281fd4&&await _0x167dff(_0x120aec,{'selectable':_0x281fd4[_0x1da605(0x317)]===!0x1&&void 0x0});},_0x326c77=async(_0x7d5db4,_0x5c6a74)=>{const _0x126773=_0x402bd1;var _0x17a62f;let _0x3cf3c2=bi(_0x5c6a74);(((_0x17a62f=_0x2dad32(_0x7d5db4))==null?void 0x0:_0x17a62f[_0x126773(0x313)])??void 0x0)!==_0x3cf3c2&&await _0x167dff(_0x7d5db4,{'name':_0x3cf3c2});},_0x4ad53b=async(_0xb1d397,_0x43b07b)=>{const _0x3d23f0=_0x402bd1;var _0x1d4989;let _0x447e06=bi(_0x43b07b);(((_0x1d4989=_0x2dad32(_0xb1d397))==null?void 0x0:_0x1d4989[_0x3d23f0(0x28c)])??void 0x0)!==_0x447e06&&await _0x167dff(_0xb1d397,{'description':_0x447e06});},_0x262fb3=async(_0x13c7e3,_0x53b16c)=>{const _0x363993=_0x402bd1;!_0x28342f||!_0x2d6b28||await _0x1175e5[_0x363993(0x311)](_0x2b3290['id'],{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingIds':[_0x13c7e3],'arrangeType':_0x53b16c});};return!_0x28342f||!_0x2d6b28?_0x16ab0d(_0x402bd1(0x269),{'className':_0x402bd1(0x253),'children':_0x233557[_0x402bd1(0x196)]}):_0x16ab0d(_0x3b8f7e,{'items':_0x1f12fe,'selectedIds':_0x39d96e,'focusedId':_0x396715,'labels':_0x233557,'onSelect':_0x4de035,'onSetVisible':_0x1e4dd5,'onCommitName':_0x326c77,'onCommitDescription':_0x4ad53b,'onMoveForward':async _0x531ce0=>_0x262fb3(_0x531ce0,_0x292bd6[_0x402bd1(0x2ea)]),'onMoveBackward':async _0x35318d=>_0x262fb3(_0x35318d,_0x292bd6[_0x402bd1(0x12b)]),'onToggleSelectable':_0x1d59ff});}let Ci=class{constructor(_0x39e744){const _0x1067b0=_0x1a57e9;this[_0x1067b0(0x12c)]=_0x39e744;}['updateShapeFillImage'](_0x177a1b,_0x57ab7c){const _0x532c23=_0x1a57e9;let _0xe4966b=this[_0x532c23(0x12c)]['getRenderUnitById'](_0x177a1b[_0x532c23(0x264)]),_0xee2b7d=_0xe4966b==null?void 0x0:_0xe4966b[_0x532c23(0x21b)];if(!_0xee2b7d)return;let _0x458588=_0x238087(_0x177a1b),_0x2d3fb0=_0xee2b7d[_0x532c23(0x14f)](_0x458588);_0x2d3fb0==null||_0x2d3fb0[_0x532c23(0xf1)](_0x57ab7c);}};Ci=Z([X(0x0,_0xebded9)],Ci);function wi(){const _0x294d61=_0x1a57e9;let _0xcac702=_0x5ee9a9(_0x3398d1),_0x5e28e2=_0x263d75(()=>_0xcac702[_0x294d61(0x268)],_0xcac702[_0x294d61(0x15d)](),!0x1,[_0xcac702]);return _0x5e28e2['length']===0x0?null:_0x16ab0d('div',{'children':_0x3ef962(_0x294d61(0x269),{'className':_0x294d61(0x12f),'children':[_0x16ab0d(_0x31e0d1,{'drawings':_0x5e28e2,'hasCropper':!0x1}),_0x16ab0d(_0x5c8aef,{'drawings':_0x5e28e2})]})});}function Ti(_0x1ebb90){let {unitId:_0x5247c7,subUnitId:_0x156933,shapeId:_0xc21fa}=_0x1ebb90,_0x1f67f0=_0x5ee9a9(_0x1b8f46),_0x1a9491=_0x5ee9a9(Ci);return _0x16ab0d(_0x3b0964,{..._0x1ebb90,'positionEditor':_0x16ab0d(wi,{}),'onUpdateShapeData':(_0x4c78ee,_0x3faec1)=>{$n(_0x1f67f0,_0x5247c7,_0x156933,_0xc21fa,_0x4c78ee,_0x3faec1);},'onUpdateLineShapeData':(_0x2b3ccf,_0xe548c4)=>{er(_0x1f67f0,_0x5247c7,_0x156933,_0xc21fa,_0x2b3ccf,_0xe548c4);},'onUpdateShapeFillImage':_0x149497=>{const _0x5a3311=_0x4a8a;_0x1a9491[_0x5a3311(0x356)]({'unitId':_0x5247c7,'subUnitId':_0x156933,'drawingId':_0xc21fa},_0x149497);}});}function Ei(_0x306392){const _0x4d57b5=_0x1a57e9;let _0x5c191c=_0x5ee9a9(_0x23dc66),_0x22d5cb=_0x263d75(()=>_0x5c191c[_0x4d57b5(0x220)],_0x5c191c[_0x4d57b5(0x170)](),!0x1,[_0x5c191c]),_0x3e8ff4=_0x306392[_0x4d57b5(0x1eb)][_0x4d57b5(0x132)];return!_0x3e8ff4||!_0x22d5cb?null:_0x16ab0d(Di,{..._0x3e8ff4,'canvasElement':_0x306392[_0x4d57b5(0x1eb)][_0x4d57b5(0x18b)]});}function Di(_0x4594b7){const _0x5a0936=_0x1a57e9;let _0x4dbd15=_0x5ee9a9(_0x1b8f46),_0x48430c=_0x5ee9a9(_0x434a53),{unitId:_0x1bb0cc,subUnitId:_0x39ba9f,drawingId:_0x4ce723,drawingType:_0x266799,shapeType:_0x5b5fd3}=_0x4594b7,[_0x5f118d,_0x50e987]=_0x440ee1(_0x4594b7['shapeData']),_0x5ad70c=_0xf2a45c(()=>_0xf96880(_0x5f118d),[_0x5f118d]),_0x319153=_0xf2a45c(()=>_0x5702b3(_0x5f118d),[_0x5f118d]);_0x219537(()=>{const _0x36339=_0x4a8a;let _0x193106=_0x4dbd15[_0x36339(0x13f)](_0x5048f3=>{const _0x598462=_0x36339;if(_0x5048f3['id']!==_0x926363['id'])return;let _0x2aba53=_0x48430c[_0x598462(0x335)](_0x1bb0cc,_0x39ba9f,_0x4ce723);_0x2aba53&&_0x50e987(_0x2aba53);});return()=>_0x193106['dispose']();},[_0x4dbd15,_0x4ce723,_0x48430c,_0x39ba9f,_0x1bb0cc]);let _0xa1a541=_0xc3a7ab=>{_0x50e987(_0x2208e3=>({..._0x2208e3,..._0xc3a7ab}));},_0x51b521=_0x95e109=>{const _0x342437=_0x4a8a;let _0x43ffc7=_0x39d59f(_0x5f118d,_0x95e109);$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,{'oldShapeData':{'shapeText':_0x5f118d[_0x342437(0x1b2)]}},_0x43ffc7),_0xa1a541(_0x43ffc7);},_0x11916f=_0x34ed3a({'hostType':_0x3d832c['UNIVER_SHEET'],'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'shapeId':_0x4ce723,'shapeData':_0x5f118d,'onUpdateBinding':_0x3a9522=>{const _0x5b5dbb=_0x4a8a;let _0x487f29={'formulaBinding':_0x3a9522};$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,{'oldShapeData':{'formulaBinding':_0x5f118d[_0x5b5dbb(0x192)]}},_0x487f29),_0xa1a541(_0x487f29);}});return _0x3ef962(_0x8b4743,{'children':[_0x16ab0d(_0x9de617,{'canvasElement':_0x4594b7[_0x5a0936(0x18b)],'shapeData':_0x5f118d,'shapeType':_0x5b5fd3,'textStyle':{'ff':_0x496afe[_0x5a0936(0x1b2)][_0x5a0936(0x33f)],'fs':_0x496afe['shapeText']['fontSize'],'cl':{'rgb':_0x496afe[_0x5a0936(0x1b2)]['color']},..._0x5ad70c},'textModel':_0x319153?{'ha':_0x319153['ha']??_0x59b547[_0x5a0936(0x357)],'va':_0x319153['va']??_0x12d55d[_0x5a0936(0x2eb)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x496afe[_0x5a0936(0x244)],'defaultGradientEndColor':_0x496afe[_0x5a0936(0x25e)],'defaultStrokeColor':_0x496afe[_0x5a0936(0x24e)],'extensionGroups':_0x11916f[_0x5a0936(0x17f)],'onUpdateShapeData':(_0x4b7b87,_0x228b8b)=>{$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,_0x4b7b87,_0x228b8b),_0x228b8b&&_0xa1a541(_0x228b8b);},'onUpdateText':_0x51b521,'onOpenPanel':()=>{const _0x51ac5c=_0x5a0936;_0x4dbd15[_0x51ac5c(0x311)](_r['id'],{'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'drawingId':_0x4ce723});},'onDelete':()=>{_0x4dbd15['executeCommand'](_0x475856['id'],{'unitId':_0x1bb0cc,'drawings':[{'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'drawingId':_0x4ce723,'drawingType':_0x266799}]});}}),_0x11916f['panel']]});}var Oi=class extends _0x458cfa{constructor(..._0x5cf9fe){const _0x33b0ab=_0x1a57e9;super(..._0x5cf9fe),Y(this,_0x33b0ab(0x2ba),new _0x266901(null)),Y(this,_0x33b0ab(0x31d),this[_0x33b0ab(0x2ba)][_0x33b0ab(0x1ad)]()),Y(this,_0x33b0ab(0x17e),new _0x266901(!0x1)),Y(this,_0x33b0ab(0x350),this[_0x33b0ab(0x17e)]['asObservable']());}['dispose'](){const _0x4cf892=_0x1a57e9;this[_0x4cf892(0x2ba)][_0x4cf892(0x18c)](null),this[_0x4cf892(0x2ba)][_0x4cf892(0x1af)](),this['_onSavingEditorData$'][_0x4cf892(0x18c)](!0x1),this[_0x4cf892(0x17e)][_0x4cf892(0x1af)](),super[_0x4cf892(0x32d)]();}[_0x1a57e9(0x289)](_0x23dafc){const _0x29e6f7=_0x1a57e9;this['_editingParams$'][_0x29e6f7(0x18c)](_0x23dafc),_0x23dafc??this[_0x29e6f7(0x17e)][_0x29e6f7(0x18c)](!0x1);}['setOnSavingEditorData'](_0x30558f){const _0x3bf4d5=_0x1a57e9;this['_onSavingEditorData$'][_0x3bf4d5(0x18c)](_0x30558f);}[_0x1a57e9(0x1ac)](){const _0x8a3f10=_0x1a57e9;return this['_editingParams$'][_0x8a3f10(0x211)]();}[_0x1a57e9(0x358)](_0x7323dd){const _0x557c98=_0x1a57e9;this[_0x557c98(0x1ac)]()&&(this[_0x557c98(0x34f)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x1a57e9(0x252)](){const _0x1e4c4f=_0x1a57e9;this[_0x1e4c4f(0x1ac)]()&&this[_0x1e4c4f(0x289)](null);}};function ki(_0x1b6fa7){const _0x4d88c3=_0x1a57e9;return!!_0x1b6fa7&&_0x4d88c3(0x2d5)in _0x1b6fa7&&'sheetTransform'in _0x1b6fa7;}const Ai=_0x42eeaf(()=>{const _0xae26b2=_0x1a57e9;let _0x1a493f=_0x5ee9a9(Oi),_0x7abe41=_0x5ee9a9(_0x434a53),_0x497d1f=_0x5ee9a9(_0x3398d1),_0x3b9949=_0x5ee9a9(_0x1b8f46),_0x518a50=_0x5ee9a9(_0x59f03b),_0x2125dd=_0x5ee9a9(_0xebded9);return _0x16ab0d(_0x15f4f4,{'adapter':_0xf2a45c(()=>({'getShapeModel':(_0x378f8a,_0x436d5f,_0x38ae43)=>_0x7abe41[_0xae26b2(0x29e)](_0x378f8a,_0x436d5f,_0x38ae43),'getShapeData':(_0x4a5e2c,_0x4a4f2a,_0x4afa7c)=>_0x7abe41['getShapeDataById'](_0x4a5e2c,_0x4a4f2a,_0x4afa7c),'getDrawingTransform':(_0x513bf7,_0x3e30c,_0x54f56d)=>{const _0x49146f=_0xae26b2;let _0x5ab555=_0x497d1f[_0x49146f(0x223)]({'unitId':_0x513bf7,'subUnitId':_0x3e30c,'drawingId':_0x54f56d});return _0x5ab555==null?void 0x0:_0x5ab555['transform'];},'updateShapeText':({unitId:_0x220ec8,subUnitId:_0x3710e1,shapeId:_0x48b7ac,shapeText:_0x5547ab,oldShapeText:_0x68d619,hostSize:_0x868461})=>{_0x518a50['run'](_0x220ec8,()=>{const _0x49f6b8=_0x4a8a;var _0x463bca;let _0x27e00d=_0x3b9949[_0x49f6b8(0x297)](Qn['id'],{'unitId':_0x220ec8,'subUnitId':_0x3710e1,'shapeId':_0x48b7ac,'shapeData':{'shapeText':_0x5547ab},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x68d619}}});if(!_0x27e00d||!_0x868461)return _0x27e00d;let _0xe40a41=_0x497d1f[_0x49f6b8(0x223)]({'unitId':_0x220ec8,'subUnitId':_0x3710e1,'drawingId':_0x48b7ac}),_0x161015=_0xe40a41==null?void 0x0:_0xe40a41[_0x49f6b8(0x2b2)];if(!ki(_0xe40a41)||!_0x161015)return!0x1;let _0x535344={..._0x161015,'width':_0x868461[_0x49f6b8(0x1a3)],'height':_0x868461['height']},_0x3fae86=(_0x463bca=_0x2125dd['getRenderUnitById'](_0x220ec8))==null||(_0x463bca=_0x463bca[_0x49f6b8(0x346)](_0x2bd201)['getSkeletonParam'](_0x3710e1))==null?void 0x0:_0x463bca[_0x49f6b8(0x27d)];return _0x3b9949[_0x49f6b8(0x297)](_0x5613c7['id'],{'unitId':_0x220ec8,'drawings':[{..._0xe40a41,'transform':_0x535344,'sheetTransform':_0x3fae86?_0x15b6d5(_0x535344,_0x3fae86)??_0xe40a41[_0x49f6b8(0x173)]:_0xe40a41[_0x49f6b8(0x173)],'axisAlignSheetTransform':_0x3fae86?_0x2e83e9(_0x535344,_0x3fae86)??_0xe40a41[_0x49f6b8(0x2d5)]:_0xe40a41[_0x49f6b8(0x2d5)]}]});});},'updateHostSize':({unitId:_0x1fda02,subUnitId:_0x254974,shapeId:_0x3671c5,width:_0x59b238,height:_0x346735})=>{const _0x11b236=_0xae26b2;var _0x789757;let _0x2bb51d=_0x497d1f[_0x11b236(0x223)]({'unitId':_0x1fda02,'subUnitId':_0x254974,'drawingId':_0x3671c5}),_0x5a52d7=_0x2bb51d==null?void 0x0:_0x2bb51d['transform'];if(!ki(_0x2bb51d)||!_0x5a52d7)return;let _0x9752b3={..._0x5a52d7,'width':_0x59b238,'height':_0x346735},_0x2b7e77=(_0x789757=_0x2125dd[_0x11b236(0x174)](_0x1fda02))==null||(_0x789757=_0x789757[_0x11b236(0x346)](_0x2bd201)['getSkeletonParam'](_0x254974))==null?void 0x0:_0x789757[_0x11b236(0x27d)],_0x58557d=_0x2b7e77?_0x15b6d5(_0x9752b3,_0x2b7e77)??_0x2bb51d['sheetTransform']:_0x2bb51d[_0x11b236(0x173)],_0x260536=_0x2b7e77?_0x2e83e9(_0x9752b3,_0x2b7e77)??_0x2bb51d['axisAlignSheetTransform']:_0x2bb51d[_0x11b236(0x2d5)];_0x3b9949[_0x11b236(0x311)](_0x5613c7['id'],{'unitId':_0x1fda02,'drawings':[{..._0x2bb51d,'transform':_0x9752b3,'sheetTransform':_0x58557d,'axisAlignSheetTransform':_0x260536}]});},'allowHostSizeShrink':({unitId:_0x569884,subUnitId:_0x26cf34,shapeId:_0x24b67e})=>_0x5e39fb(_0x7abe41['getShapeDataById'](_0x569884,_0x26cf34,_0x24b67e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3b9949,_0x497d1f,_0x2125dd,_0x7abe41,_0x518a50]),'editingService':_0x1a493f,'editorUnitId':mr,'positionOptions':_0xf2a45c(()=>({'viewportKeys':{'main':_0x3bda53[_0xae26b2(0x28b)],'leftTop':_0x3bda53[_0xae26b2(0x20c)],'top':_0x3bda53[_0xae26b2(0x245)],'left':_0x3bda53[_0xae26b2(0x234)]},'getSkeleton':(_0x4fc364,_0x56630e)=>{const _0x31d640=_0xae26b2;var _0x38468a;return((_0x38468a=_0x4fc364[_0x31d640(0x346)](_0x2bd201)[_0x31d640(0xe8)](_0x56630e[_0x31d640(0x29a)]))==null?void 0x0:_0x38468a[_0x31d640(0x27d)])??null;}}),[])});});let ji=class extends _0x458cfa{constructor(_0xab53e4,_0x21181a){const _0x454688=_0x1a57e9;super(),this['_componentManager']=_0xab53e4,this[_0x454688(0x2f2)]=_0x21181a,this['_registerIcons'](),this[_0x454688(0x299)]();}['_registerIcons'](){const _0x1d8069=_0x1a57e9;this['_iconManager'][_0x1d8069(0x32e)]('ObjectLayersIcon')||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'ObjectLayersIcon':_0x2546c5})),this[_0x1d8069(0x2f2)][_0x1d8069(0x32e)](_0x1d8069(0x1de))||this[_0x1d8069(0x2db)](this['_iconManager']['register']({'FlipHorizontalIcon':_0x30efc9})),this[_0x1d8069(0x2f2)]['has'](_0x1d8069(0x19f))||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)]['register']({'FlipVerticalIcon':_0x1612fb})),this[_0x1d8069(0x2f2)]['has']('BottomIcon')||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)][_0x1d8069(0x168)]({'BottomIcon':_0x4b6104})),this['_iconManager']['has']('MoveDownIcon')||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)][_0x1d8069(0x168)]({'MoveDownIcon':_0x5775eb})),this[_0x1d8069(0x2f2)][_0x1d8069(0x32e)]('MoveUpIcon')||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'MoveUpIcon':_0x4ab29f})),this['_iconManager'][_0x1d8069(0x32e)](_0x1d8069(0x271))||this['disposeWithMe'](this['_iconManager'][_0x1d8069(0x168)]({'ShapeFormatSettingIcon':_0x2b4e9a})),this[_0x1d8069(0x2f2)]['has'](_0x1d8069(0x372))||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'TopmostIcon':_0x11f074}));}[_0x1a57e9(0x299)](){const _0x3e68e8=_0x1a57e9;this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](ur,Ti)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)]['register'](dr,Si)),this['disposeWithMe'](this['_componentManager'][_0x3e68e8(0x168)](Sr,Dr)),this[_0x3e68e8(0x2db)](this['_componentManager']['register'](Cr,Tr)),this['_componentManager'][_0x3e68e8(0x272)](_0x5f0802)||this['disposeWithMe'](this[_0x3e68e8(0x35b)]['register'](_0x5f0802,Er)),this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](fr,Ei)),this['disposeWithMe'](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](Lr,Vr)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](Ir,Hr)),this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](Rr,Ur)),this['disposeWithMe'](this['_componentManager']['register'](zr,Wr)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](hr,_0x2bc136)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](_0x3e68e8(0x201),Ai));}};ji=Z([X(0x0,_0x236d5e(_0x3377c6)),X(0x1,_0x236d5e(_0x5e4ceb))],ji);let Mi=class extends _0x458cfa{constructor(_0x14b179,_0x3ed721,_0x1d5257,_0x230346,_0x19a17b){const _0x150254=_0x1a57e9;super(),this[_0x150254(0x339)]=_0x14b179,this[_0x150254(0x218)]=_0x3ed721,this['_renderManagerService']=_0x1d5257,this[_0x150254(0x224)]=_0x230346,this[_0x150254(0x1cf)]=_0x19a17b,Y(this,'_activeImageId',null),Y(this,'_unitId',null),Y(this,_0x150254(0x283),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x150254(0x243),[]),Y(this,_0x150254(0x1c8),0x0),Y(this,'_baseTop',0x0),Y(this,_0x150254(0x135),0x0),Y(this,'_baseHeight',0x0),Y(this,_0x150254(0x328),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x150254(0x2a6),void 0x0),Y(this,_0x150254(0x281),void 0x0),Y(this,_0x150254(0x2f0),!0x1),this[_0x150254(0x361)](),this[_0x150254(0x27b)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x1a57e9(0x270)](){const _0x127f52=_0x1a57e9;this['_clearControls'](),this[_0x127f52(0x2ec)](!0x0);}[_0x1a57e9(0x31e)](_0x11a3a9,_0x315a27,_0x46f92b,_0x1b7dcf){const _0x8c1cc8=_0x1a57e9;let _0x453100=_0x11a3a9;if(_0x453100!==_0x2d2111['None']&&_0x11a3a9!==_0x8c1cc8(0x2e1))try{let _0xdbd11=new _0x300a94(_0x453100,_0x8c1cc8(0x362)+_0x11a3a9);return _0x1b7dcf&&_0xdbd11[_0x8c1cc8(0x182)]({'adjustValues':_0x1b7dcf},!0x0),_0xdbd11[_0x8c1cc8(0x216)]({'width':_0x315a27,'height':_0x46f92b}),_0xdbd11;}catch{return;}}[_0x1a57e9(0x330)](_0x334e51,_0x4820ee,_0x4ab1e1){const _0x8d97a1=_0x1a57e9;let _0x299437={'unitId':_0x334e51,'subUnitId':_0x4820ee,'drawingId':_0x4ab1e1},_0x2a632d=this[_0x8d97a1(0x218)][_0x8d97a1(0x223)](_0x299437);if(!(!_0x2a632d||_0x2a632d[_0x8d97a1(0x130)]!==_0x3a939e[_0x8d97a1(0x162)]))return _0x2a632d;}[_0x1a57e9(0x1f0)](_0x3eca34,_0x12c9a4,_0x4277b5){const _0x6f108c=_0x1a57e9;let _0x8cf830=this[_0x6f108c(0x12c)][_0x6f108c(0x174)](_0x3eca34);if(!_0x8cf830)return;let {scene:_0x22864}=_0x8cf830,_0x279f95=_0x238087({'unitId':_0x3eca34,'subUnitId':_0x12c9a4,'drawingId':_0x4277b5}),_0x125297=_0x22864[_0x6f108c(0x33b)](_0x279f95);if(_0x125297 instanceof _0x5621f4){let _0x217ad1=_0x125297[_0x6f108c(0x11e)];if(_0x217ad1)return{'prstGeom':_0x217ad1,'adjustValues':_0x125297[_0x6f108c(0x30a)]};}}[_0x1a57e9(0x2ec)](_0x393fba=!0x1){const _0x453742=_0x1a57e9;if(!this[_0x453742(0xec)]||!this['_subUnitId']||!this[_0x453742(0x2bf)])return;let _0x29a7a6=this['_renderManagerService']['getRenderUnitById'](this[_0x453742(0xec)]);if(!_0x29a7a6||!_0x29a7a6[_0x453742(0x346)](_0x2bd201)[_0x453742(0x16a)]())return;let {scene:_0x33e408}=_0x29a7a6,_0x38a3cf=this[_0x453742(0x330)](this[_0x453742(0xec)],this[_0x453742(0x283)],this['_activeImageId']);if(!_0x38a3cf)return;let {transform:_0x2b0253}=_0x38a3cf;if(!_0x2b0253)return;let {left:_0x1e2b3c,top:_0x938a7b,width:_0x59f993,height:_0x2e1cbc,flipX:_0x3a40d2,flipY:_0x5b55af,angle:_0x2f35a8=0x0}=_0x2b0253;if(_0x1e2b3c===void 0x0||_0x938a7b===void 0x0)return;let _0x294a82=this[_0x453742(0x1f0)](this[_0x453742(0xec)],this['_subUnitId'],this[_0x453742(0x2bf)]);if(!_0x294a82)return;if(_0x393fba){let _0x45dd24=this[_0x453742(0x31e)](_0x294a82[_0x453742(0x11e)],_0x59f993||0x0,_0x2e1cbc||0x0,_0x294a82[_0x453742(0x184)]);if(!_0x45dd24)return;this[_0x453742(0x2c6)]=_0x45dd24[_0x453742(0x18d)]();}let _0xa23e20=this[_0x453742(0x2c6)];if(!(!_0xa23e20||_0xa23e20['length']===0x0))for(let _0x423102=0x0;_0x423102<_0xa23e20[_0x453742(0x321)];_0x423102++){let _0x12f027=_0xa23e20[_0x423102],_0x4f9bf7=_0x12f027['x'],_0x4529ee=_0x12f027['y'];if(_0x3a40d2&&(_0x4f9bf7=(_0x59f993||0x0)-_0x4f9bf7),_0x5b55af&&(_0x4529ee=(_0x2e1cbc||0x0)-_0x4529ee),_0x2f35a8!==0x0){let _0x44d778=(_0x59f993||0x0)/0x2,_0x581067=(_0x2e1cbc||0x0)/0x2,_0x17098c=_0x2f35a8*Math['PI']/0xb4,_0x5367f4=Math['cos'](_0x17098c),_0x12c4e9=Math[_0x453742(0x334)](_0x17098c),_0x4b00b7=_0x4f9bf7-_0x44d778,_0x4d7dd9=_0x4529ee-_0x581067;_0x4f9bf7=_0x44d778+(_0x4b00b7*_0x5367f4-_0x4d7dd9*_0x12c4e9),_0x4529ee=_0x581067+(_0x4b00b7*_0x12c4e9+_0x4d7dd9*_0x5367f4);}let _0x38fc45={'x':_0x4f9bf7,'y':_0x4529ee,'adjName':_0x12f027[_0x453742(0x18a)]};this['_addControl'](_0x33e408,_0x38fc45,_0x38fc45[_0x453742(0x18a)],_0x1e2b3c,_0x938a7b,this[_0x453742(0xec)],this['_subUnitId']);}}[_0x1a57e9(0x275)](_0x225e60,_0x21d17b,_0x58eea0,_0x23245c,_0x4789e6,_0x519653,_0x23604e){const _0x296c1a=_0x1a57e9;if(!this[_0x296c1a(0x2bf)])return;let _0x202d86='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x58eea0,_0x3dc58f=_0x225e60[_0x296c1a(0x14f)](_0x202d86);if(_0x3dc58f){_0x3dc58f[_0x296c1a(0x20e)]({'left':_0x21d17b['x']+_0x23245c-_0x496afe[_0x296c1a(0x373)],'top':_0x21d17b['y']+_0x4789e6-_0x496afe['adjHandleSize']});return;}let _0x5107fc=new or(_0x202d86,{'left':_0x21d17b['x']+_0x23245c-_0x496afe[_0x296c1a(0x373)],'top':_0x21d17b['y']+_0x4789e6-_0x496afe[_0x296c1a(0x373)],'adjName':_0x58eea0,'shapeId':this['_activeImageId'],'unitId':_0x519653,'subUnitId':_0x23604e,'width':_0x496afe[_0x296c1a(0x373)]+0x8,'height':_0x496afe[_0x296c1a(0x373)]+0x8,'zIndex':_0x5ad001+0x1,'evented':!0x0});this[_0x296c1a(0x243)]['push'](_0x5107fc),this[_0x296c1a(0x1e5)](_0x5107fc,_0x225e60,_0x58eea0),_0x225e60[_0x296c1a(0x199)](_0x5107fc,_0x5ad001+0x1);}[_0x1a57e9(0x2a9)](){const _0x2551a4=_0x1a57e9;this['_shapes'][_0x2551a4(0x321)]!==0x0&&(this[_0x2551a4(0x243)][_0x2551a4(0x21e)](_0x9d536b=>_0x9d536b[_0x2551a4(0x32d)]()),this[_0x2551a4(0x243)]=[]);}['_getScrollInfo'](_0x1823e7,_0x315429){const _0x1c770f=_0x1a57e9;var _0x393a07;let _0xceb5d5={'x':0x0,'y':0x0},_0x501e7c=this[_0x1c770f(0x12c)][_0x1c770f(0x174)](_0x1823e7);if(!_0x501e7c||!_0x501e7c[_0x1c770f(0x346)](_0x2bd201)['getSkeleton'](_0x315429))return _0xceb5d5;let _0x19e5a1=_0x501e7c[_0x1c770f(0x346)](_0x56e08d),_0x135bf9=_0x19e5a1==null?void 0x0:_0x19e5a1[_0x1c770f(0x36e)]();if(!_0x135bf9)return _0xceb5d5;let _0x2a9d49=(_0x393a07=this[_0x1c770f(0x224)][_0x1c770f(0x2d8)](_0x1823e7))==null?void 0x0:_0x393a07[_0x1c770f(0x1bc)](_0x315429);if(!_0x2a9d49)return _0xceb5d5;let _0x30db06=_0x56ed68(_0x135bf9[_0x1c770f(0x2b0)],_0x135bf9[_0x1c770f(0x34c)],_0x501e7c[_0x1c770f(0x21b)],_0x2a9d49);return _0x30db06?{'x':_0x30db06[_0x1c770f(0x2b5)],'y':_0x30db06[_0x1c770f(0x195)]}:_0xceb5d5;}[_0x1a57e9(0x225)](_0x45506d,_0x5bf8ab){const _0x406340=_0x1a57e9;var _0x5e6dc0;let _0x39109b=(_0x5e6dc0=this['_univerInstanceService'][_0x406340(0x2d8)](_0x45506d))==null?void 0x0:_0x5e6dc0[_0x406340(0x1bc)](_0x5bf8ab);return(_0x39109b==null?void 0x0:_0x39109b[_0x406340(0x242)]())??0x1;}[_0x1a57e9(0x1e5)](_0x390ef1,_0x241770,_0x1350ea){const _0x47055f=_0x1a57e9;this[_0x47055f(0x2db)](_0x3ee632(_0x390ef1['onPointerDown$'][_0x47055f(0x18f)]((_0x2694c0,_0x503e0e)=>{const _0x1ddf29=_0x47055f;var _0x8c4e80,_0x21e2f0,_0xe9703;let {unitId:_0x322583,subUnitId:_0x506cf1,drawingId:_0x3db7d6}=_0x390ef1[_0x1ddf29(0x2e8)](),_0x2bc7ba=this[_0x1ddf29(0x330)](_0x322583,_0x506cf1,_0x3db7d6);if(!(_0x2bc7ba!=null&&_0x2bc7ba['transform']))return;let {left:_0x53bd8d,top:_0x37a88d,width:_0x2cd662,height:_0x6f0b8c}=_0x2bc7ba['transform'];this[_0x1ddf29(0x1c8)]=_0x53bd8d||0x0,this[_0x1ddf29(0x145)]=_0x37a88d||0x0,this[_0x1ddf29(0x135)]=_0x2cd662||0x0,this[_0x1ddf29(0x2c2)]=_0x6f0b8c||0x0;let _0x269deb=!!((_0x8c4e80=_0x2bc7ba[_0x1ddf29(0x2b2)])!=null&&_0x8c4e80[_0x1ddf29(0xfd)]),_0x491b23=!!((_0x21e2f0=_0x2bc7ba['transform'])!=null&&_0x21e2f0[_0x1ddf29(0x352)]),_0x240633=((_0xe9703=_0x2bc7ba[_0x1ddf29(0x2b2)])==null?void 0x0:_0xe9703['angle'])||0x0,_0x28d1e7=this['_getImagePrstGeom'](_0x322583,_0x506cf1,_0x3db7d6);if(!_0x28d1e7)return;let _0x49ef13=this[_0x1ddf29(0x31e)](_0x28d1e7['prstGeom'],this[_0x1ddf29(0x135)],this[_0x1ddf29(0x2c2)],_0x28d1e7[_0x1ddf29(0x184)]);if(!_0x49ef13||(this['_activeShapeModel']=_0x49ef13,this['_activeAdjustInfo']=_0x49ef13[_0x1ddf29(0x261)](_0x1350ea),!this[_0x1ddf29(0x35f)]))return;this[_0x1ddf29(0x328)]=!0x0,_0x241770[_0x1ddf29(0x2e3)]();let _0x3a34ac=_0x28d1e7['prstGeom'];this[_0x1ddf29(0x2a6)]=_0x241770[_0x1ddf29(0x117)][_0x1ddf29(0x18f)]((_0x1a7d30,_0x55afd8)=>{const _0x528ea4=_0x1ddf29;if(!this[_0x528ea4(0x328)])return;let {offsetX:_0x1ab73e,offsetY:_0x3e40fa}=_0x1a7d30,_0x175a01=this[_0x528ea4(0x35f)];if(!this[_0x528ea4(0x295)]||!_0x175a01)return;_0x241770[_0x528ea4(0x2e3)](),_0x241770['setCursor'](_0xee2861[_0x528ea4(0x266)]);let _0x38a1ae={'left':0x0,'top':0x0,'width':this[_0x528ea4(0x135)],'height':this[_0x528ea4(0x2c2)]},_0x525d7a=this[_0x528ea4(0x248)](_0x322583,_0x506cf1),_0x3be621=this[_0x528ea4(0x225)](_0x322583,_0x506cf1),_0x4b9a00=_0x1ab73e/_0x3be621+_0x525d7a['x']-this['_baseLeft'],_0x3ac7bf=_0x3e40fa/_0x3be621+_0x525d7a['y']-this[_0x528ea4(0x145)];if(_0x240633!==0x0){let _0x436222=this[_0x528ea4(0x135)]/0x2,_0x458bb1=this[_0x528ea4(0x2c2)]/0x2,_0x19d5c2=_0x240633*Math['PI']/0xb4,_0x11ccc6=Math[_0x528ea4(0x316)](_0x19d5c2),_0x323d3c=Math[_0x528ea4(0x334)](_0x19d5c2),_0x1f849f=_0x4b9a00-_0x436222,_0x45d2b4=_0x3ac7bf-_0x458bb1;_0x4b9a00=_0x436222+(_0x1f849f*_0x11ccc6+_0x45d2b4*_0x323d3c),_0x3ac7bf=_0x458bb1+(-_0x1f849f*_0x323d3c+_0x45d2b4*_0x11ccc6);}_0x269deb&&(_0x4b9a00=this['_baseWidth']-_0x4b9a00),_0x491b23&&(_0x3ac7bf=this[_0x528ea4(0x2c2)]-_0x3ac7bf);let _0x26be93=this[_0x528ea4(0x295)][_0x528ea4(0x236)](_0x38a1ae,{'x':_0x4b9a00,'y':_0x3ac7bf},_0x175a01,_0x269deb,_0x491b23);if(Object[_0x528ea4(0x20a)](_0x26be93)['length']!==0x0){for(let [_0x3f0979,_0x5a769d]of Object[_0x528ea4(0x262)](_0x26be93))this[_0x528ea4(0x295)]['setAdjustValueByName'](_0x3f0979,_0x5a769d);this[_0x528ea4(0x295)][_0x528ea4(0x216)]({'width':this[_0x528ea4(0x135)],'height':this['_baseHeight']}),this[_0x528ea4(0x1e0)](_0x322583,_0x506cf1,_0x3db7d6,_0x26be93),this[_0x528ea4(0x2c6)]=this[_0x528ea4(0x295)]['getDrawingPoints'](),this[_0x528ea4(0x2ec)](),_0x55afd8[_0x528ea4(0x207)]();}}),this[_0x1ddf29(0x281)]=_0x241770[_0x1ddf29(0x31a)][_0x1ddf29(0x18f)]((_0x282e70,_0x3bffe3)=>{const _0x5688f0=_0x1ddf29;if(this['_adjHandlerPointerMove'][_0x5688f0(0x2b4)](),this[_0x5688f0(0x281)][_0x5688f0(0x2b4)](),_0x241770[_0x5688f0(0x327)](),this[_0x5688f0(0x295)]){let _0x680317=this[_0x5688f0(0x295)][_0x5688f0(0x212)](),_0x360070={};for(let _0x3c787e of _0x680317){let _0x3b824a=this[_0x5688f0(0x295)][_0x5688f0(0x33d)](_0x3c787e);_0x3b824a!==void 0x0&&(_0x360070[_0x3c787e]=_0x3b824a);}this[_0x5688f0(0x1cf)][_0x5688f0(0x1bb)](_0x322583,_0x506cf1,_0x3db7d6,_0x3a34ac,_0x360070);}this[_0x5688f0(0x35f)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5688f0(0x328)]=!0x1,_0x3bffe3['stopPropagation'](),_0x241770['enableObjectsEvent']();}),_0x503e0e[_0x1ddf29(0x207)]();})));}['_updateImageAdjValues'](_0x48aba6,_0x29bdd5,_0x4b48c9,_0x3a279f){const _0x378039=_0x1a57e9;let _0x1cdf04=this[_0x378039(0x12c)][_0x378039(0x174)](_0x48aba6);if(!_0x1cdf04)return;let {scene:_0x5dd47a}=_0x1cdf04,_0x325cea=_0x238087({'unitId':_0x48aba6,'subUnitId':_0x29bdd5,'drawingId':_0x4b48c9}),_0x4c8b00=_0x5dd47a[_0x378039(0x33b)](_0x325cea);if(_0x4c8b00 instanceof _0x5621f4){let _0x583141=_0x4c8b00[_0x378039(0x30a)]??{};_0x4c8b00[_0x378039(0x304)]({..._0x583141,..._0x3a279f}),_0x4c8b00[_0x378039(0x2bc)](!0x0);}}[_0x1a57e9(0x27b)](){const _0x395ce6=_0x1a57e9;let _0x3ad432=this[_0x395ce6(0x224)][_0x395ce6(0x1ed)](_0x3d832c['UNIVER_SHEET']);this[_0x395ce6(0x2db)](_0x3ad432[_0x395ce6(0x15e)](_0x1990de(_0x206a92=>_0x206a92?_0x206a92[_0x395ce6(0x21c)][_0x395ce6(0x15e)](_0x1990de(_0x31ab4f=>{const _0x2ea144=_0x395ce6;if(!_0x31ab4f)return _0x3b0f55;let _0x81d32f=_0x206a92['getUnitId'](),_0x36a2d4=this['_renderManagerService'][_0x2ea144(0x174)](_0x81d32f),_0x1ef42e=_0x36a2d4==null?void 0x0:_0x36a2d4[_0x2ea144(0x21b)];return _0x1ef42e?_0x36bcf9(_0x1ef42e):_0x3b0f55;})):_0x3b0f55))[_0x395ce6(0x23b)](_0x46eaf7=>{const _0x14c8b5=_0x395ce6;let _0xc582c7=_0x46eaf7[_0x14c8b5(0x113)]();this[_0x14c8b5(0x2db)](_0x46eaf7[_0x14c8b5(0x117)][_0x14c8b5(0x18f)](()=>{const _0x4e5dbe=_0x14c8b5;this[_0x4e5dbe(0x2f0)]&&this[_0x4e5dbe(0x2a9)]();})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x1b3)]['subscribe'](_0x363eea=>{const _0x1644cd=_0x14c8b5;let {objects:_0x497087}=_0x363eea;if(this['_createControls'](),_0x497087!==null&&_0x497087[_0x1644cd(0x11a)]===0x1){let _0x1c8ff8=_0x497087[_0x1644cd(0x193)]()[_0x1644cd(0x18c)]()[_0x1644cd(0x2de)];_0x1c8ff8 instanceof _0x5621f4&&_0x1c8ff8[_0x1644cd(0x11e)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x2d3)][_0x14c8b5(0x23b)](()=>{const _0x38082b=_0x14c8b5;this[_0x38082b(0x2f0)]&&this['_clearControls']();})),this[_0x14c8b5(0x2db)](_0x46eaf7[_0x14c8b5(0x31a)][_0x14c8b5(0x18f)](()=>{const _0x2dce34=_0x14c8b5;this[_0x2dce34(0x2f0)]&&(this[_0x2dce34(0x2f0)]=!0x1,this[_0x2dce34(0x2ec)]());})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x12a)][_0x14c8b5(0x23b)](()=>{const _0x5887f3=_0x14c8b5;if(this[_0x5887f3(0xec)]&&this[_0x5887f3(0x283)]&&this[_0x5887f3(0x2bf)]){let _0x2e00dc=this[_0x5887f3(0x1f0)](this[_0x5887f3(0xec)],this[_0x5887f3(0x283)],this[_0x5887f3(0x2bf)]);if(_0x2e00dc){var _0x47368f,_0x574e92;let _0x1c645e=this[_0x5887f3(0x330)](this['_unitId'],this[_0x5887f3(0x283)],this['_activeImageId']),_0x1344ab=(_0x1c645e==null||(_0x47368f=_0x1c645e[_0x5887f3(0x2b2)])==null?void 0x0:_0x47368f['width'])||0x0,_0x2a9dfe=(_0x1c645e==null||(_0x574e92=_0x1c645e[_0x5887f3(0x2b2)])==null?void 0x0:_0x574e92[_0x5887f3(0x2f9)])||0x0,_0x3d8f98=this[_0x5887f3(0x31e)](_0x2e00dc[_0x5887f3(0x11e)],_0x1344ab,_0x2a9dfe,_0x2e00dc[_0x5887f3(0x184)]);_0x3d8f98&&(this['_activeAdjustPointList']=_0x3d8f98[_0x5887f3(0x18d)](),this[_0x5887f3(0x2a9)](),this[_0x5887f3(0x2ec)](!0x0));}}}));}));}[_0x1a57e9(0x361)](){const _0x26dadc=_0x1a57e9;this['disposeWithMe'](this['_drawingManagerService'][_0x26dadc(0x268)][_0x26dadc(0x23b)](_0x1211f0=>{const _0x334b6d=_0x26dadc;if(_0x1211f0[_0x334b6d(0x321)]===0x1){let _0x510816=_0x1211f0[0x0];if(_0x510816[_0x334b6d(0x130)]===_0x3a939e[_0x334b6d(0x162)]){let {unitId:_0x4f8eec,subUnitId:_0x4f921a,drawingId:_0x25518d}=_0x510816,_0x36f032=this[_0x334b6d(0x1f0)](_0x4f8eec,_0x4f921a,_0x25518d);if(_0x36f032){var _0xa43ce4,_0x19e6c2;this[_0x334b6d(0x2bf)]=_0x25518d,this[_0x334b6d(0xec)]=_0x4f8eec,this[_0x334b6d(0x283)]=_0x4f921a;let _0x440fba=this[_0x334b6d(0x330)](_0x4f8eec,_0x4f921a,_0x25518d),_0x229542=(_0x440fba==null||(_0xa43ce4=_0x440fba[_0x334b6d(0x2b2)])==null?void 0x0:_0xa43ce4[_0x334b6d(0x1a3)])||0x0,_0x59f2e1=(_0x440fba==null||(_0x19e6c2=_0x440fba[_0x334b6d(0x2b2)])==null?void 0x0:_0x19e6c2[_0x334b6d(0x2f9)])||0x0,_0x3d13a2=this[_0x334b6d(0x31e)](_0x36f032[_0x334b6d(0x11e)],_0x229542,_0x59f2e1,_0x36f032[_0x334b6d(0x184)]);_0x3d13a2&&(this['_activeAdjustPointList']=_0x3d13a2[_0x334b6d(0x18d)]()),this[_0x334b6d(0x2a9)](),this[_0x334b6d(0x2ec)](!0x0);}else this[_0x334b6d(0x329)]();}else this[_0x334b6d(0x329)]();}else this[_0x334b6d(0x329)]();})),this[_0x26dadc(0x2db)](this[_0x26dadc(0x218)][_0x26dadc(0x1d3)][_0x26dadc(0x23b)](_0x2fed22=>{const _0x45ecef=_0x26dadc;if(_0x2fed22[_0x45ecef(0x321)]===0x1){let _0x57acef=_0x2fed22[0x0],_0x462e52=this[_0x45ecef(0x218)]['getDrawingByParam'](_0x57acef);(_0x462e52==null?void 0x0:_0x462e52[_0x45ecef(0x130)])===_0x3a939e[_0x45ecef(0x162)]&&this[_0x45ecef(0x2bf)]===_0x57acef[_0x45ecef(0x175)]&&(this['_clearControls'](),this[_0x45ecef(0x2ec)](!0x0));}})),this[_0x26dadc(0x2db)](this[_0x26dadc(0x218)][_0x26dadc(0x10f)][_0x26dadc(0x23b)](_0x2266c5=>{const _0x130521=_0x26dadc;for(let _0x46b623 of _0x2266c5)this['_activeImageId']===_0x46b623[_0x130521(0x175)]&&this['_resetState']();}));}[_0x1a57e9(0x329)](){const _0x39c39d=_0x1a57e9;this['_activeImageId']=null,this[_0x39c39d(0xec)]=null,this[_0x39c39d(0x283)]=null,this[_0x39c39d(0x2c6)]=void 0x0,this[_0x39c39d(0x2a9)]();}};Mi=Z([X(0x1,_0x3398d1),X(0x2,_0x236d5e(_0xebded9)),X(0x3,_0x4b61f3),X(0x4,_0x236d5e(xr))],Mi);const Ni=_0x1a57e9(0x151);let Pi=class extends _0x458cfa{constructor(_0x1cbbf0,_0x2684e0,_0x2951b9,_0x3d8fd6,_0x65f72e,_0x26c53d){const _0xdcdb8=_0x1a57e9;super(),this[_0xdcdb8(0x215)]=_0x1cbbf0,this[_0xdcdb8(0x136)]=_0x2684e0,this[_0xdcdb8(0x218)]=_0x2951b9,this['_univerInstanceService']=_0x3d8fd6,this[_0xdcdb8(0x12c)]=_0x65f72e,this[_0xdcdb8(0x2f1)]=_0x26c53d,Y(this,_0xdcdb8(0x107),!0x1),this[_0xdcdb8(0x215)][_0xdcdb8(0x2ca)](mi),this[_0xdcdb8(0x2db)](_0x3ee632(this[_0xdcdb8(0x218)][_0xdcdb8(0x268)][_0xdcdb8(0x23b)](()=>this['_update']()))),this[_0xdcdb8(0x294)]();}[_0x1a57e9(0x32d)](){const _0x3b7cc2=_0x1a57e9;this[_0x3b7cc2(0x2f1)][_0x3b7cc2(0x353)](!0x1,Ni),this[_0x3b7cc2(0x10b)](),super[_0x3b7cc2(0x32d)]();}[_0x1a57e9(0x294)](){const _0x11f155=_0x1a57e9;var _0x409634;let _0x7fc957=this[_0x11f155(0x218)]['getFocusDrawings'](),_0x38ba74=_0x7fc957[_0x11f155(0x321)]===0x1?_0x7fc957[0x0]:void 0x0;if((_0x38ba74==null?void 0x0:_0x38ba74[_0x11f155(0x130)])!==_0x3a939e[_0x11f155(0x35c)]||this['_univerInstanceService'][_0x11f155(0x10d)](_0x38ba74[_0x11f155(0x264)])!==_0x3d832c['UNIVER_SHEET']){this[_0x11f155(0x2f1)][_0x11f155(0x353)](!0x1,Ni),this['_hide']();return;}let _0x276005=_0x1dcf15((_0x409634=this[_0x11f155(0x12c)][_0x11f155(0x174)](_0x38ba74[_0x11f155(0x264)]))==null?void 0x0:_0x409634['engine'][_0x11f155(0x24f)]())===_0x11f155(0x2a4);if(this['_shapeFloatingToolbarService'][_0x11f155(0x353)](_0x276005,Ni),_0x276005){this['_hide']();return;}this[_0x11f155(0x107)]||(this[_0x11f155(0x107)]=!0x0,this[_0x11f155(0x136)][_0x11f155(0x2e9)](pr,{'activate':!0x0}));}[_0x1a57e9(0x10b)](){const _0x3a8b18=_0x1a57e9;this[_0x3a8b18(0x107)]&&(this[_0x3a8b18(0x107)]=!0x1,this[_0x3a8b18(0x136)][_0x3a8b18(0x1db)](pr),this[_0x3a8b18(0x136)][_0x3a8b18(0x2c1)]([]));}};Pi=Z([X(0x0,_0x430f90),X(0x1,_0xb3cad2),X(0x2,_0x3398d1),X(0x3,_0x4b61f3),X(0x4,_0xebded9),X(0x5,_0x236d5e(_0x23dc66))],Pi);let Fi=class extends _0x458cfa{constructor(_0x5888cd,_0x2bf82c,_0x141766,_0x5cdf36){const _0xbf68ed=_0x1a57e9;super(),this[_0xbf68ed(0x224)]=_0x5888cd,this[_0xbf68ed(0x206)]=_0x2bf82c,this['_sheetDrawingService']=_0x141766,this['_sheetsShapeService']=_0x5cdf36,this[_0xbf68ed(0x1fd)]();}[_0x1a57e9(0x1fd)](){const _0x5685c6=_0x1a57e9;this['disposeWithMe'](this['_sheetInterceptorService'][_0x5685c6(0x160)]({'getMutations':_0xf4d306=>{const _0x4037ea=_0x5685c6;if(_0xf4d306['id']===_0x12e6cd['id']){let _0x2b58cb=_0x5a285c(this['_univerInstanceService'],_0xf4d306[_0x4037ea(0x374)]);if(!_0x2b58cb)return{'redos':[],'undos':[]};let {unitId:_0x1c0500,subUnitId:_0x5a9038}=_0x2b58cb,_0x55d975=this[_0x4037ea(0x1f8)][_0x4037ea(0x35a)](_0x1c0500,_0x5a9038),_0x3ca133=Object[_0x4037ea(0x193)](_0x55d975)[_0x4037ea(0xeb)](_0x3d57e0=>_0x3d57e0[_0x4037ea(0x130)]===_0x3a939e[_0x4037ea(0x35c)]);if(_0x3ca133[_0x4037ea(0x321)]===0x0)return{'redos':[],'undos':[]};let _0xe56682=[],_0x81f4d2=[];for(let _0x8b708c=0x0;_0x8b708c<_0x3ca133[_0x4037ea(0x321)];_0x8b708c++){let _0xd2a2e1=_0x3ca133[_0x8b708c],_0x3b8ad2=this[_0x4037ea(0x35e)]['getShapeModel'](_0xd2a2e1['unitId'],_0xd2a2e1['subUnitId'],_0xd2a2e1[_0x4037ea(0x175)]);if(!_0x3b8ad2)continue;let {redo:_0x25171d,undo:_0x3553e4,objects:_0x10abff}=this[_0x4037ea(0x1f8)][_0x4037ea(0x1f2)]([_0xd2a2e1]);_0xe56682[_0x4037ea(0x11f)]({'id':_0x642eb['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'shapeId':_0xd2a2e1['drawingId']}}),_0xe56682[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'type':_0x40c976[_0x4037ea(0xf9)],'op':_0x25171d,'objects':_0x10abff}}),_0x81f4d2[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'type':_0x40c976[_0x4037ea(0x19d)],'op':_0x3553e4,'objects':_0x10abff}}),_0x81f4d2[_0x4037ea(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'shapeId':_0xd2a2e1[_0x4037ea(0x175)],'shapeType':_0x3b8ad2[_0x4037ea(0x2b3)](),'shapeData':JSON[_0x4037ea(0x2ed)](JSON[_0x4037ea(0xf4)](_0x3b8ad2[_0x4037ea(0x2c4)]()))}});}return{'redos':_0xe56682,'undos':_0x81f4d2};}else{if(_0xf4d306['id']===_0x2bae38['id']){let {unitId:_0x28dca2,subUnitId:_0x207771,targetSubUnitId:_0x2cb30d}=_0xf4d306[_0x4037ea(0x374)];if(!_0x28dca2||!_0x207771||!_0x2cb30d)return{'redos':[],'undos':[]};let _0x1416e3=this[_0x4037ea(0x1f8)][_0x4037ea(0x35a)](_0x28dca2,_0x207771),_0x397f24=Object['values'](_0x1416e3)[_0x4037ea(0xeb)](_0x38cb5e=>_0x38cb5e['drawingType']===_0x3a939e[_0x4037ea(0x35c)]);if(_0x397f24[_0x4037ea(0x321)]===0x0)return{'redos':[],'undos':[]};let _0x2a7160=[],_0x5c69d4=[];for(let _0x41b7de=0x0;_0x41b7de<_0x397f24[_0x4037ea(0x321)];_0x41b7de++){let _0x5323be=_0x397f24[_0x41b7de],_0x17c990=this[_0x4037ea(0x35e)][_0x4037ea(0x29e)](_0x5323be[_0x4037ea(0x264)],_0x5323be[_0x4037ea(0x29a)],_0x5323be[_0x4037ea(0x175)]);if(!_0x17c990)continue;let _0x2600f3=_0xa48e11(),_0x38b061={..._0x5323be,'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'drawingId':_0x2600f3},{redo:_0x33cd58,undo:_0x4a1132,objects:_0x363f4c}=this[_0x4037ea(0x1f8)][_0x4037ea(0x2e7)]([_0x38b061]);_0x2a7160['push']({'id':_0x46897e['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'type':_0x40c976[_0x4037ea(0x19d)],'op':_0x33cd58,'objects':_0x363f4c}}),_0x2a7160[_0x4037ea(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'shapeId':_0x2600f3,'shapeType':_0x17c990[_0x4037ea(0x2b3)](),'shapeData':JSON['parse'](JSON['stringify'](_0x17c990[_0x4037ea(0x2c4)]()))}}),_0x5c69d4[_0x4037ea(0x11f)]({'id':_0x642eb['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'shapeId':_0x2600f3}}),_0x5c69d4[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'type':_0x40c976[_0x4037ea(0xf9)],'op':_0x4a1132,'objects':_0x363f4c}});}return{'redos':_0x2a7160,'undos':_0x5c69d4};}}return{'redos':[],'undos':[]};}}));}};Fi=Z([X(0x0,_0x236d5e(_0x4b61f3)),X(0x1,_0x236d5e(_0x9bde8a)),X(0x2,_0x236d5e(_0x456a1c)),X(0x3,_0x236d5e(_0x434a53))],Fi);let Ii=class extends _0x458cfa{constructor(_0x9149a8,_0x3459a3,_0x203430,_0x559a8a,_0x34b5ff){const _0x15cd30=_0x1a57e9;super(),this[_0x15cd30(0x339)]=_0x9149a8,this[_0x15cd30(0xf0)]=_0x3459a3,this[_0x15cd30(0x218)]=_0x203430,this[_0x15cd30(0x122)]=_0x559a8a,this[_0x15cd30(0x35e)]=_0x34b5ff,Y(this,'_lastEditingShapeKey',null),this[_0x15cd30(0x28f)](),this[_0x15cd30(0x2a7)](),this['_initEditingParams']();}[_0x1a57e9(0x28f)](){const _0xc717bd=_0x1a57e9;let {scene:_0x453a8e}=this[_0xc717bd(0x339)];this[_0xc717bd(0x2db)](_0x453a8e[_0xc717bd(0x2c5)][_0xc717bd(0x18f)](_0x2617cb=>{const _0x250aef=_0xc717bd;let {offsetX:_0xd57463,offsetY:_0x382546}=_0x2617cb,_0x27d182=_0x453a8e[_0x250aef(0x123)](_0x1cc756[_0x250aef(0x1bd)]([_0xd57463,_0x382546]));if(_0x27d182 instanceof ar){let _0x3fe116=this['_sheetsShapeService'][_0x250aef(0x29e)](_0x27d182[_0x250aef(0x264)],_0x27d182[_0x250aef(0x29a)],_0x27d182[_0x250aef(0x2e2)]);if(_0x3fe116!=null&&_0x3fe116[_0x250aef(0x2c4)]()['formulaBinding']||_0x3863ab(this['_sheetsShapeService'][_0x250aef(0x2b3)](_0x27d182[_0x250aef(0x264)],_0x27d182[_0x250aef(0x29a)],_0x27d182[_0x250aef(0x2e2)])))return;this[_0x250aef(0xf0)][_0x250aef(0x289)]({'visible':!0x0,'unitId':_0x27d182[_0x250aef(0x264)],'subUnitId':_0x27d182[_0x250aef(0x29a)],'shapeId':_0x27d182[_0x250aef(0x2e2)],'shapeKey':_0x27d182[_0x250aef(0x147)]});}}));}[_0x1a57e9(0x2a7)](){const _0x3a6ab6=_0x1a57e9;this['disposeWithMe'](this[_0x3a6ab6(0x218)][_0x3a6ab6(0x268)]['subscribe'](_0x5bd838=>{const _0x433707=_0x3a6ab6;if(_0x5bd838[_0x433707(0x321)]===0x1){let _0x22acaa=_0x5bd838[0x0],_0x22a0f8=this['_drawingManagerService'][_0x433707(0x223)](_0x22acaa);if((_0x22a0f8==null?void 0x0:_0x22a0f8[_0x433707(0x130)])===_0x3a939e['DRAWING_SHAPE']){var _0x46ce1a;let _0x1a7807=this[_0x433707(0xf0)][_0x433707(0x1ac)]();if((_0x1a7807==null?void 0x0:_0x1a7807[_0x433707(0x2e2)])===_0x22acaa[_0x433707(0x175)]&&_0x1a7807[_0x433707(0x285)])return;let _0x537a13=_0x3863ab(this[_0x433707(0x35e)]['getShapeType'](_0x22acaa[_0x433707(0x264)],_0x22acaa[_0x433707(0x29a)],_0x22acaa[_0x433707(0x175)])),_0x459688=!!((_0x46ce1a=this[_0x433707(0x35e)][_0x433707(0x29e)](_0x22acaa[_0x433707(0x264)],_0x22acaa[_0x433707(0x29a)],_0x22acaa[_0x433707(0x175)]))!=null&&_0x46ce1a[_0x433707(0x2c4)]()['formulaBinding']);(_0x537a13||_0x459688)&&this[_0x433707(0xf0)][_0x433707(0x289)](null);}else this[_0x433707(0xf0)][_0x433707(0x1ac)]()&&(this[_0x433707(0xf0)][_0x433707(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x45a923=_0x433707;this[_0x45a923(0xf0)][_0x45a923(0x289)](null);}));}else this[_0x433707(0xf0)][_0x433707(0x1ac)]()&&(this[_0x433707(0xf0)][_0x433707(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x4a8cba=_0x433707;this[_0x4a8cba(0xf0)][_0x4a8cba(0x289)](null);}));})),this[_0x3a6ab6(0x2db)](this[_0x3a6ab6(0x218)][_0x3a6ab6(0x10f)][_0x3a6ab6(0x23b)](_0x421984=>{const _0x21916a=_0x3a6ab6;let _0x1f350d=this['_shapeTextEditingService'][_0x21916a(0x1ac)]();_0x1f350d&&_0x421984[_0x21916a(0x1b7)](_0x11f78f=>_0x11f78f[_0x21916a(0x175)]===_0x1f350d[_0x21916a(0x2e2)])&&this[_0x21916a(0xf0)][_0x21916a(0x289)](null);}));}['_initEditingParams'](){const _0x3020c3=_0x1a57e9;this[_0x3020c3(0x2db)](this[_0x3020c3(0xf0)][_0x3020c3(0x31d)]['subscribe'](_0x1353d1=>{const _0x1bf576=_0x3020c3;let {scene:_0x324eb9}=this['_context'];if(this[_0x1bf576(0x205)]){let _0x4969c6=_0x324eb9['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x4969c6&&_0x4969c6[_0x1bf576(0x289)](!0x1);}if(_0x1353d1){let _0x48db1f=!!_0x1353d1[_0x1bf576(0x285)],_0x4cb844=_0x324eb9[_0x1bf576(0x14f)](_0x1353d1['shapeKey']);_0x4cb844&&(_0x4cb844[_0x1bf576(0x289)](_0x48db1f),this[_0x1bf576(0x205)]=_0x1353d1[_0x1bf576(0xef)]),this[_0x1bf576(0x122)]['setContextValue'](_0x5efdd2,_0x48db1f);}else this['_lastEditingShapeKey']=null,this[_0x1bf576(0x122)][_0x1bf576(0x133)](_0x5efdd2,!0x1);}));}};Ii=Z([X(0x1,_0x236d5e(Oi)),X(0x2,_0x3398d1),X(0x3,_0x593690),X(0x4,_0x236d5e(_0x434a53))],Ii);let Li=class extends _0xc831bf{constructor(_0x5eb5ba,_0x7ea9b0,_0x20edb2,_0x2689a9){super(_0x5eb5ba,_0x7ea9b0,_0x20edb2,_0x2689a9,{'componentKey':hr,'editorUnitId':mr});}};Li=Z([X(0x1,_0x236d5e(_0x55f526)),X(0x2,_0x236d5e(_0x5a3f85)),X(0x3,_0x236d5e(_0x240358))],Li);let Ri=class extends _0x458cfa{constructor(_0x29f942,_0x5e10a9,_0x54a81f,_0x498bca,_0x29d6a7,_0x34a621){const _0x256858=_0x1a57e9;super(),this[_0x256858(0x27a)]=_0x29f942,this[_0x256858(0x12c)]=_0x5e10a9,this[_0x256858(0x218)]=_0x54a81f,this[_0x256858(0x1ff)]=_0x498bca,this[_0x256858(0x325)]=_0x29d6a7,this[_0x256858(0x237)]=_0x34a621,Y(this,'_insertingShapeKeys',new Set()),this['_initialize']();}[_0x1a57e9(0x120)](){const _0x430c10=_0x1a57e9;this[_0x430c10(0x1fa)](),this[_0x430c10(0x105)](),this[_0x430c10(0x2cb)]();}[_0x1a57e9(0x1fa)](){const _0x1e1bc3=_0x1a57e9;this[_0x1e1bc3(0x2db)](this[_0x1e1bc3(0x218)][_0x1e1bc3(0x366)]['subscribe'](_0x52c438=>{const _0x4a67d4=_0x1e1bc3;this[_0x4a67d4(0x19b)](_0x52c438);}));}[_0x1a57e9(0x105)](){const _0x38ebfe=_0x1a57e9;this[_0x38ebfe(0x2db)](this['_commandService']['onCommandExecuted'](_0x343130=>{const _0x4ceb4c=_0x38ebfe;if(_0x343130['id']===_0x926363['id']){let {unitId:_0xe72121,subUnitId:_0x5bd166,shapeId:_0x59fb61}=_0x343130[_0x4ceb4c(0x374)],_0x4292b9=this[_0x4ceb4c(0x26a)](_0xe72121),_0x585fa3=_0x238087({'unitId':_0xe72121,'subUnitId':_0x5bd166,'drawingId':_0x59fb61}),_0x12a8e5=_0x4292b9==null?void 0x0:_0x4292b9[_0x4ceb4c(0x21b)]['getObjectIncludeInGroup'](_0x585fa3);_0x12a8e5&&(this[_0x4ceb4c(0x237)]['refreshShapeFillImage'](_0x12a8e5),this['_sheetDrawingShapeRenderController']['refreshFormulaPresentation'](_0x12a8e5,{'unitId':_0xe72121,'subUnitId':_0x5bd166,'shapeId':_0x59fb61}),_0x12a8e5[_0x4ceb4c(0x2bc)](!0x0));return;}if(_0x343130['id']===_0x3b9418['id']){var _0x1388ac;let {unitId:_0x2361a3,subUnitId:_0x727031,shapeId:_0x5b9560}=_0x343130[_0x4ceb4c(0x374)],_0xc56c0d=this[_0x4ceb4c(0x26a)](_0x2361a3);if(_0xc56c0d==null)return;let {scene:_0xcfb9e}=_0xc56c0d,_0x18043e=_0x238087({'unitId':_0x2361a3,'subUnitId':_0x727031,'drawingId':_0x5b9560}),_0x353a5e=_0xcfb9e[_0x4ceb4c(0x14f)](_0x18043e);if(!((_0x1388ac=this[_0x4ceb4c(0x12c)][_0x4ceb4c(0x174)](_0x2361a3))!=null&&_0x1388ac['with'](_0x2bd201)[_0x4ceb4c(0x167)](_0x727031)))return!0x1;if(_0x353a5e)return;this[_0x4ceb4c(0x19b)]([{'unitId':_0x2361a3,'subUnitId':_0x727031,'drawingId':_0x5b9560}]);}}));}[_0x1a57e9(0x2cb)](){const _0x13646d=_0x1a57e9;this[_0x13646d(0x2db)](this[_0x13646d(0x218)][_0x13646d(0x1d3)][_0x13646d(0x23b)](_0x14febc=>{const _0xdd5cd2=_0x13646d;_0x14febc[_0xdd5cd2(0x21e)](_0x464396=>{const _0x2c5764=_0xdd5cd2;let {unitId:_0x32808c,subUnitId:_0x7cff64,drawingId:_0x10c32f}=_0x464396,_0x4d9f26=this[_0x2c5764(0x218)][_0x2c5764(0x223)](_0x464396);if(_0x4d9f26==null)return;let {transform:_0x969210,drawingType:_0x94f241,srcRect:_0x510bb9,prstGeom:_0x46c012}=_0x4d9f26;if(_0x94f241!==_0x3a939e['DRAWING_SHAPE'])return;let _0x503748=this['_getSceneAndTransformerByDrawingSearch'](_0x32808c);if(_0x503748==null)return;let {scene:_0x2350c6,transformer:_0x1d7909}=_0x503748;if(_0x969210==null)return!0x0;let _0x4e4771=_0x238087({'unitId':_0x32808c,'subUnitId':_0x7cff64,'drawingId':_0x10c32f}),_0x8ccfb2=_0x2350c6['getObjectIncludeInGroup'](_0x4e4771);if(_0x8ccfb2==null)return!0x0;_0x8ccfb2[_0x2c5764(0x1c9)](_0x510bb9),_0x8ccfb2['setPrstGeom'](_0x46c012);});}));}[_0x1a57e9(0x19b)](_0x45b6ae){const _0x34cf56=_0x1a57e9;for(let _0xa1e474 of _0x45b6ae){var _0x15d9d4;let {unitId:_0x140785,subUnitId:_0x1d1550,drawingId:_0x5cfd81}=_0xa1e474,_0x2cef2e=this[_0x34cf56(0x26a)](_0x140785),_0x4b4862=(_0x15d9d4=_0x31acf7(this['_currentUniverService'],_0x140785))==null?void 0x0:_0x15d9d4[_0x34cf56(0x29a)];if(_0x2cef2e==null||_0x4b4862!==_0x1d1550)return;let _0x775fef=_0x238087({'unitId':_0x140785,'subUnitId':_0x1d1550,'drawingId':_0x5cfd81});if(this[_0x34cf56(0x2aa)][_0x34cf56(0x32e)](_0x775fef)||_0x2cef2e['scene']['getObjectIncludeInGroup'](_0x775fef)!=null)return;let _0x4c83a9=this[_0x34cf56(0x218)][_0x34cf56(0x223)](_0xa1e474);if(_0x4c83a9==null||_0x4c83a9[_0x34cf56(0x130)]!==_0x3a939e[_0x34cf56(0x35c)])return;if(_0x3863ab((_0x4c83a9[_0x34cf56(0x214)]||{})[_0x34cf56(0x2fd)])){let _0x157cf0=_0x4c83a9[_0x34cf56(0x2b2)];_0x157cf0&&(_0x4c83a9[_0x34cf56(0x2b2)]={..._0x157cf0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x34cf56(0x2aa)][_0x34cf56(0x18e)](_0x775fef);try{this[_0x34cf56(0x237)][_0x34cf56(0x221)](_0x4c83a9,_0x2cef2e[_0x34cf56(0x21b)]);}finally{this[_0x34cf56(0x2aa)]['delete'](_0x775fef);}queueMicrotask(()=>{const _0x100d44=_0x34cf56;if(this[_0x100d44(0x22b)])return;let _0x9cd6e6=_0x238087(_0xa1e474);if(!_0x2cef2e['scene'][_0x100d44(0x14f)](_0x9cd6e6))return;let _0x99e2b1=this['_drawingManagerService']['getDrawingByParam'](_0xa1e474);_0x99e2b1&&this[_0x100d44(0x218)]['refreshTransform']([_0x99e2b1]);});}}[_0x1a57e9(0x26a)](_0x4faf2d){const _0xf21208=_0x1a57e9;if(_0x4faf2d==null)return;let _0xa25aaf=this[_0xf21208(0x12c)][_0xf21208(0x174)](_0x4faf2d),_0xc31c24=_0xa25aaf==null?void 0x0:_0xa25aaf['scene'];return _0xc31c24==null?null:{'scene':_0xc31c24,'transformer':_0xc31c24[_0xf21208(0x113)]()};}};Ri=Z([X(0x0,_0x1b8f46),X(0x1,_0xebded9),X(0x2,_0x3398d1),X(0x3,_0x4b61f3),X(0x4,_0x236d5e(_0xe6009a)),X(0x5,_0x236d5e(Q))],Ri);const zi={'normal':{'fill':_0x496afe['cxnPointFill'],'stroke':_0x496afe[_0x1a57e9(0x351)],'strokeWidth':_0x496afe[_0x1a57e9(0x36b)]},'highlighted':{'fill':_0x1a57e9(0x1d0),'stroke':_0x1a57e9(0x169),'strokeWidth':0x2}};var Bi=class extends _0x38cc74{constructor(_0x32b7c7,_0x20a5b5){const _0xae8fb1=_0x1a57e9;super(_0x32b7c7,_0x20a5b5),Y(this,_0xae8fb1(0x1c6),''),Y(this,_0xae8fb1(0x239),-0x1),Y(this,_0xae8fb1(0xec),''),Y(this,_0xae8fb1(0x283),''),Y(this,_0xae8fb1(0x2cf),!0x1),_0x20a5b5&&this[_0xae8fb1(0x2cd)](_0x20a5b5);}[_0x1a57e9(0x2c9)](){const _0x680857=_0x1a57e9;return{'unitId':this[_0x680857(0xec)],'subUnitId':this[_0x680857(0x283)],'shapeId':this[_0x680857(0x1c6)],'cxnIndex':this[_0x680857(0x239)]};}[_0x1a57e9(0x210)](_0x2c7a3c){const _0x234676=_0x1a57e9;this['_isHighlighted']!==_0x2c7a3c&&(this[_0x234676(0x2cf)]=_0x2c7a3c,this[_0x234676(0x2bc)](!0x0));}[_0x1a57e9(0x280)](){const _0x11348f=_0x1a57e9;return this[_0x11348f(0x2cf)];}['setShapeProps'](_0x29fd14){const _0x121aa4=_0x1a57e9;_0x29fd14[_0x121aa4(0x1ae)]!==void 0x0&&(this['_targetShapeId']=_0x29fd14[_0x121aa4(0x1ae)]),_0x29fd14[_0x121aa4(0x31c)]!==void 0x0&&(this[_0x121aa4(0x239)]=_0x29fd14[_0x121aa4(0x31c)]),_0x29fd14[_0x121aa4(0x264)]!==void 0x0&&(this['_unitId']=_0x29fd14[_0x121aa4(0x264)]),_0x29fd14['subUnitId']!==void 0x0&&(this[_0x121aa4(0x283)]=_0x29fd14[_0x121aa4(0x29a)]),_0x29fd14['isHighlighted']!==void 0x0&&(this[_0x121aa4(0x2cf)]=_0x29fd14[_0x121aa4(0x280)]),this[_0x121aa4(0x20e)]({'width':_0x29fd14[_0x121aa4(0x1a3)]??_0x496afe[_0x121aa4(0x1ee)]*0x2,'height':_0x29fd14[_0x121aa4(0x2f9)]??_0x496afe['cxnPointRadius']*0x2});}[_0x1a57e9(0x1f5)](_0x3329a4){const _0x34bfe0=_0x1a57e9;let _0x4cb0b6=this['_isHighlighted']?zi[_0x34bfe0(0x2bd)]:zi['normal'];_0x20c694[_0x34bfe0(0x2e4)](_0x3329a4,{'radius':_0x496afe[_0x34bfe0(0x1ee)],'fill':_0x4cb0b6['fill'],'stroke':_0x4cb0b6[_0x34bfe0(0x24e)],'strokeWidth':_0x4cb0b6[_0x34bfe0(0x2af)],'evented':!0x0});}};let Vi=class extends _0x458cfa{constructor(_0x5ceb56,_0x2a1cc5,_0x295bef,_0x3b5732){const _0x2479b6=_0x1a57e9;super(),this['_context']=_0x5ceb56,this['_renderManagerService']=_0x2a1cc5,this['_drawingManagerService']=_0x295bef,this[_0x2479b6(0x35e)]=_0x3b5732,Y(this,_0x2479b6(0x306),[]),Y(this,_0x2479b6(0x322),null),Y(this,'_highlightedSiteIndex',-0x1),Y(this,'_currentScene',null),Y(this,_0x2479b6(0xec),''),Y(this,_0x2479b6(0x283),''),Y(this,_0x2479b6(0xf5),null);}[_0x1a57e9(0x30c)](_0x2faee2,_0x4d251d,_0x2390b7,_0x89ea0e){const _0x57871e=_0x1a57e9;this[_0x57871e(0x320)]=_0x2faee2,this['_unitId']=_0x4d251d,this['_subUnitId']=_0x2390b7,this[_0x57871e(0xf5)]=_0x89ea0e;}[_0x1a57e9(0x309)](_0x154919){const _0x223757=_0x1a57e9;if(!this[_0x223757(0x320)])return null;let _0x4df36a=this['_findShapeAtPoint'](_0x154919);return _0x4df36a?(this[_0x223757(0x322)]!==_0x4df36a[_0x223757(0x2e2)]&&(this['_clearConnectionSites'](),this['_showConnectionSites'](_0x4df36a['shapeId'],_0x4df36a[_0x223757(0x31f)]),this[_0x223757(0x322)]=_0x4df36a[_0x223757(0x2e2)]),this[_0x223757(0x1d5)](_0x154919)):(this['_activeTargetShapeId']!==null&&(this['_clearConnectionSites'](),this[_0x223757(0x322)]=null),null);}['endConnectionDetection'](){const _0x22ee32=_0x1a57e9;this[_0x22ee32(0x128)](),this['_currentScene']=null,this[_0x22ee32(0x322)]=null,this[_0x22ee32(0x347)]=-0x1,this[_0x22ee32(0xf5)]=null;}[_0x1a57e9(0x24a)](){const _0x82c729=_0x1a57e9;return this['_activeTargetShapeId']===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x82c729(0x322)],'cxnIndex':this[_0x82c729(0x347)]};}[_0x1a57e9(0x2a3)](_0x5299b3){const _0x594f3b=_0x1a57e9;let _0x15484c=this[_0x594f3b(0x218)]['getDrawingData'](this[_0x594f3b(0xec)],this[_0x594f3b(0x283)]);for(let _0x446c3d of Object[_0x594f3b(0x20a)](_0x15484c)){if(_0x446c3d===this[_0x594f3b(0xf5)]||_0x15484c[_0x446c3d][_0x594f3b(0x130)]!==_0x3a939e[_0x594f3b(0x35c)])continue;let _0x3ebe75=this['_sheetsShapeService'][_0x594f3b(0x29e)](this['_unitId'],this[_0x594f3b(0x283)],_0x446c3d);if(!_0x3ebe75||_0x3863ab(_0x3ebe75[_0x594f3b(0x2b3)]())||_0x3ebe75[_0x594f3b(0x2a8)]()[_0x594f3b(0x321)]===0x0||!this[_0x594f3b(0x320)])continue;let _0x310889=_0x238087({'unitId':this['_unitId'],'subUnitId':this[_0x594f3b(0x283)],'drawingId':_0x446c3d}),_0x1920bb=this[_0x594f3b(0x320)][_0x594f3b(0x14f)](_0x310889);if(!_0x1920bb)continue;let {left:_0x3c949b,top:_0x344508,width:_0x25fc99,height:_0x45bfa8}=_0x1920bb['getRealBound'](),_0x579751=_0x3c949b+_0x25fc99/0x2,_0xcc127f=_0x344508+_0x45bfa8/0x2,_0x33de17=_0x1920bb[_0x594f3b(0x2b2)]['getMatrix'](),_0x11180f=new _0x228916([_0x33de17[0x0],_0x33de17[0x1],_0x33de17[0x2],_0x33de17[0x3],_0x579751,_0xcc127f]),_0x5ebe16=_0x1920bb[_0x594f3b(0x208)](),_0xb014d9=(_0x1920bb[_0x594f3b(0x30f)]&&(_0x5ebe16==null?void 0x0:_0x5ebe16[_0x594f3b(0x142)])===_0x2b860b[_0x594f3b(0x14c)]?_0x5ebe16['ancestorTransform']['multiply'](_0x11180f):_0x11180f)['invert']()['applyPoint'](_0x5299b3),_0x5ce203=_0x25fc99/0x2,_0x24f271=_0x45bfa8/0x2;if(_0xb014d9['x']>=-_0x5ce203-0x5&&_0xb014d9['x']<=_0x5ce203+0x5&&_0xb014d9['y']>=-_0x24f271-0x5&&_0xb014d9['y']<=_0x24f271+0x5)return{'shapeId':_0x446c3d,'shapeModel':_0x3ebe75};}return null;}[_0x1a57e9(0x10e)](_0x5eeb54,_0x20a0c0){const _0x465f04=_0x1a57e9;if(!this[_0x465f04(0x320)])return;let _0x2958d4=_0x238087({'unitId':this[_0x465f04(0xec)],'subUnitId':this[_0x465f04(0x283)],'drawingId':_0x5eeb54}),_0x4235b2=this[_0x465f04(0x320)]['getObjectIncludeInGroup'](_0x2958d4);if(!_0x4235b2)return;let {left:_0x4c6223,top:_0x30237d,width:_0x21c6f7,height:_0x56a35f}=_0x4235b2['getRealBound'](),_0x603551=_0x4c6223+_0x21c6f7/0x2,_0x209d46=_0x30237d+_0x56a35f/0x2,_0xc7e59d=_0x4235b2[_0x465f04(0x2b2)]['getMatrix'](),_0x32d4ae=new _0x228916([_0xc7e59d[0x0],_0xc7e59d[0x1],_0xc7e59d[0x2],_0xc7e59d[0x3],_0x603551,_0x209d46]),_0x4a0aa0=_0x4235b2[_0x465f04(0x208)](),_0x55e892=_0x4235b2[_0x465f04(0x30f)]&&(_0x4a0aa0==null?void 0x0:_0x4a0aa0[_0x465f04(0x142)])===_0x2b860b[_0x465f04(0x14c)]?_0x4a0aa0['ancestorTransform'][_0x465f04(0x348)](_0x32d4ae):_0x32d4ae;_0x20a0c0['updateContext']({'width':_0x21c6f7,'height':_0x56a35f});let _0x346e0d=_0x20a0c0[_0x465f04(0x2a8)]();for(let _0x2c2834 of _0x346e0d){let _0x2b4ed3=_0x2c2834['x']-_0x21c6f7/0x2,_0x5697bf=_0x2c2834['y']-_0x56a35f/0x2,_0x2e4453=_0x55e892[_0x465f04(0x1f7)]({'x':_0x2b4ed3,'y':_0x5697bf}),_0x2c92a7=_0x2e4453['x'],_0x8ac156=_0x2e4453['y'],_0x48ab19=new Bi(_0x465f04(0x1ec)+_0x5eeb54+'-'+_0x2c2834[_0x465f04(0x2f6)],{'left':_0x2c92a7-_0x496afe[_0x465f04(0x1ee)],'top':_0x8ac156-_0x496afe[_0x465f04(0x1ee)],'targetShapeId':_0x5eeb54,'cxnIndex':_0x2c2834[_0x465f04(0x2f6)],'unitId':this['_unitId'],'subUnitId':this[_0x465f04(0x283)],'width':_0x496afe[_0x465f04(0x1ee)]*0x2,'height':_0x496afe['cxnPointRadius']*0x2,'zIndex':_0x5ad001+0x2,'evented':!0x1});this[_0x465f04(0x306)][_0x465f04(0x11f)](_0x48ab19),this[_0x465f04(0x320)]['addObject'](_0x48ab19,_0x5ad001+0x2);}}[_0x1a57e9(0x1d5)](_0x4a1790){const _0x1fae90=_0x1a57e9;let _0x5384f1=null,_0x3b1384=0x1/0x0,_0x73a42f=null;for(let _0x1e2ba1 of this[_0x1fae90(0x306)]){let _0x42fdc1=_0x1e2ba1[_0x1fae90(0x257)]+_0x496afe[_0x1fae90(0x1ee)],_0x5e9645=_0x1e2ba1['top']+_0x496afe[_0x1fae90(0x1ee)],_0x554c7b=_0x4a1790['x']-_0x42fdc1,_0x62688d=_0x4a1790['y']-_0x5e9645,_0x267d9b=Math[_0x1fae90(0x33e)](_0x554c7b*_0x554c7b+_0x62688d*_0x62688d);_0x267d9b<_0x3b1384&&(_0x3b1384=_0x267d9b,_0x5384f1=_0x1e2ba1,_0x73a42f={'x':_0x42fdc1,'y':_0x5e9645});}let _0x324ac9=_0x3b1384<=0xa&&_0x5384f1?_0x5384f1['getConnectionInfo']()[_0x1fae90(0x31c)]:-0x1;if(_0x324ac9!==this[_0x1fae90(0x347)]){for(let _0x532741 of this[_0x1fae90(0x306)]){let _0x416f64=_0x532741['getConnectionInfo']();_0x532741['setHighlighted'](_0x416f64[_0x1fae90(0x31c)]===_0x324ac9);}this[_0x1fae90(0x347)]=_0x324ac9;}if(_0x3b1384<=0xa&&_0x5384f1&&_0x73a42f){let _0x245af1=_0x5384f1[_0x1fae90(0x2c9)](),_0x2d8851=this[_0x1fae90(0x355)](_0x245af1[_0x1fae90(0x2e2)],_0x245af1[_0x1fae90(0x31c)]);return{'shapeId':_0x245af1[_0x1fae90(0x2e2)],'cxnIndex':_0x245af1[_0x1fae90(0x31c)],'unitId':_0x245af1[_0x1fae90(0x264)],'subUnitId':_0x245af1[_0x1fae90(0x29a)],'worldPoint':_0x73a42f,'angle':_0x2d8851};}return null;}['_getConnectionSiteAngle'](_0x1a2aff,_0x4f859c){const _0x1b9b6c=_0x1a57e9;let _0x3f6e60=this[_0x1b9b6c(0x35e)][_0x1b9b6c(0x29e)](this[_0x1b9b6c(0xec)],this[_0x1b9b6c(0x283)],_0x1a2aff);if(!_0x3f6e60)return 0x0;let _0x4aa9b8=this['_drawingManagerService'][_0x1b9b6c(0x223)]({'unitId':this['_unitId'],'subUnitId':this[_0x1b9b6c(0x283)],'drawingId':_0x1a2aff});if(!(_0x4aa9b8!=null&&_0x4aa9b8[_0x1b9b6c(0x2b2)]))return 0x0;let {width:_0x4e5378=0x0,height:_0x6ba44=0x0,flipX:_0x2df977=!0x1,flipY:_0x5bb8c4=!0x1}=_0x4aa9b8[_0x1b9b6c(0x2b2)];_0x3f6e60[_0x1b9b6c(0x216)]({'width':_0x4e5378,'height':_0x6ba44});let _0x5d49af=_0x3f6e60[_0x1b9b6c(0x2a8)]()['find'](_0x5d24f1=>_0x5d24f1[_0x1b9b6c(0x2f6)]===_0x4f859c);if(!_0x5d49af)return 0x0;let _0x307f7a=_0x5d49af['ang']/0xea60;return _0x2df977&&(_0x307f7a=0xb4-_0x307f7a),_0x5bb8c4&&(_0x307f7a=-_0x307f7a),_0x307f7a=(_0x307f7a%0x168+0x168)%0x168,_0x307f7a;}[_0x1a57e9(0x128)](){const _0x179cb6=_0x1a57e9;for(let _0x10bbc7 of this[_0x179cb6(0x306)])_0x10bbc7[_0x179cb6(0x32d)]();this[_0x179cb6(0x306)]=[],this[_0x179cb6(0x347)]=-0x1;}[_0x1a57e9(0x32d)](){const _0x2f1b21=_0x1a57e9;this[_0x2f1b21(0x128)](),super[_0x2f1b21(0x32d)]();}};Vi=Z([X(0x1,_0x236d5e(_0xebded9)),X(0x2,_0x236d5e(_0x3398d1)),X(0x3,_0x236d5e(_0x434a53))],Vi);let Hi=class extends _0x458cfa{constructor(_0x581832,_0x3edc90,_0x19de88,_0x4cf4d8,_0x2d4cbb){const _0x560d44=_0x1a57e9;super(),this[_0x560d44(0x2b7)]=_0x581832,this['_sheetClipboardService']=_0x3edc90,this[_0x560d44(0x1f8)]=_0x19de88,this['_shapeService']=_0x4cf4d8,this[_0x560d44(0x340)]=_0x2d4cbb,Y(this,_0x560d44(0x1ef),void 0x0),this[_0x560d44(0x231)](),this[_0x560d44(0x11d)]();}get[_0x1a57e9(0x27e)](){const _0x162b64=_0x1a57e9;return this['_sheetDrawingService'][_0x162b64(0x15d)]();}[_0x1a57e9(0x11d)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x186310,fromSubUnitId:_0xcc95a8,toUnitId:_0xd062b9,toSubUnitId:_0x1afd6b,idMap:_0x4ac5ed})=>{const _0x346b88=_0x4a8a;let _0x4e7eb3=[],_0x1b5198=[];for(let [_0x5cb943,_0x262bce]of _0x4ac5ed[_0x346b88(0x262)]()){let _0x12e4ba=this[_0x346b88(0x312)][_0x346b88(0x29e)](_0x186310,_0xcc95a8,_0x5cb943);if(!_0x12e4ba)continue;let _0x41e229=_0x12e4ba['getShapeType'](),_0x4761d8=JSON[_0x346b88(0x2ed)](JSON[_0x346b88(0xf4)](_0x12e4ba[_0x346b88(0x2c4)]()));if(_0x4761d8['relation']){var _0x4b4d10,_0x2b2d29;let _0x2463f0=(_0x4b4d10=_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)])==null?void 0x0:_0x4b4d10[_0x346b88(0x2e2)],_0x469b15=(_0x2b2d29=_0x4761d8[_0x346b88(0x204)]['to'])==null?void 0x0:_0x2b2d29[_0x346b88(0x2e2)],_0x596a8b=!_0x2463f0||_0x4ac5ed['has'](_0x2463f0),_0x11e70f=!_0x469b15||_0x4ac5ed[_0x346b88(0x32e)](_0x469b15);_0x596a8b&&_0x2463f0&&_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]?_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]={..._0x4761d8['relation'][_0x346b88(0x191)],'shapeId':_0x4ac5ed[_0x346b88(0x272)](_0x2463f0)}:_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]=void 0x0,_0x11e70f&&_0x469b15&&_0x4761d8[_0x346b88(0x204)]['to']?_0x4761d8[_0x346b88(0x204)]['to']={..._0x4761d8[_0x346b88(0x204)]['to'],'shapeId':_0x4ac5ed[_0x346b88(0x272)](_0x469b15)}:_0x4761d8[_0x346b88(0x204)]['to']=void 0x0;}_0x4e7eb3[_0x346b88(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0xd062b9,'subUnitId':_0x1afd6b,'shapeId':_0x262bce,'shapeType':_0x41e229,'shapeData':_0x4761d8}}),_0x1b5198['push']({'id':_0x642eb['id'],'params':{'unitId':_0xd062b9,'subUnitId':_0x1afd6b,'shapeId':_0x262bce}});}return{'redos':_0x4e7eb3,'undos':_0x1b5198};});}[_0x1a57e9(0x231)](){const _0x300fe4=_0x1a57e9;this[_0x300fe4(0x2db)](this[_0x300fe4(0x17a)][_0x300fe4(0x139)]({'id':_0x300fe4(0x26e),'onBeforeCopy':(_0x4778eb,_0x469c2f,_0x3311c4,_0x4524c9)=>{const _0x53e105=_0x300fe4;this[_0x53e105(0x1ef)]=null;let _0x25386a=this[_0x53e105(0x27e)];if(_0x25386a[_0x53e105(0x321)]){let _0x52615b=_0x25386a['filter'](_0x5bda1b=>_0x5bda1b[_0x53e105(0x130)]===_0x3a939e[_0x53e105(0x35c)]);if(_0x52615b['length']===0x0)return;this[_0x53e105(0x1ef)]={'unitId':_0x4778eb,'subUnitId':_0x469c2f,'copyType':_0x4524c9,'drawings':_0x52615b};}else this[_0x53e105(0x301)](_0x4778eb,_0x469c2f,_0x3311c4,_0x4524c9);},'onPasteCells':(_0x51083f,_0x423f66,_0x41ba70,_0x12344a)=>{const _0x5c2ea9=_0x300fe4;if(!this[_0x5c2ea9(0x1ef)])return{'redos':[],'undos':[]};let {pasteType:_0x137a73}=_0x12344a;return _0x137a73===_0x375ec3[_0x5c2ea9(0x337)]?this[_0x5c2ea9(0x114)](_0x423f66,this[_0x5c2ea9(0x1ef)][_0x5c2ea9(0x265)]===_0x1b2302[_0x5c2ea9(0x2a0)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x67683f=>this[_0x300fe4(0x1ef)]?this[_0x300fe4(0x114)](_0x67683f,this['_copyInfo'][_0x300fe4(0x265)]===_0x1b2302[_0x300fe4(0x2a0)]):{'redos':[],'undos':[]}}));}[_0x1a57e9(0x301)](_0x93feaf,_0x434bb1,_0x4bbb5c,_0x48b0fa){const _0x3906d3=_0x1a57e9;let _0x55c645=this['_sheetSkeletonService'][_0x3906d3(0x167)](_0x93feaf,_0x434bb1);if(!_0x55c645)return;let _0xb6ce90=_0x4da051(_0x55c645,_0x4bbb5c);if(!_0xb6ce90)return;let {startX:_0xd3d9,endX:_0x11527f,startY:_0x187019,endY:_0x1fc437}=_0xb6ce90,_0x1a4fce=this[_0x3906d3(0x1f8)][_0x3906d3(0x35a)](_0x93feaf,_0x434bb1),_0x23aa0b=this[_0x3906d3(0x27e)][_0x3906d3(0x323)]();for(let [_0x234cac,_0x5df823]of Object['entries'](_0x1a4fce)){if(_0x5df823[_0x3906d3(0x130)]!==_0x3a939e[_0x3906d3(0x35c)])continue;let {transform:_0x37a2af}=_0x5df823;if(!_0x37a2af)continue;let {left:_0x49cf12=0x0,top:_0xa2b9c8=0x0,width:_0x1da2cf=0x0,height:_0x5e7d26=0x0}=_0x37a2af;_0xd3d9<=_0x49cf12&&_0x11527f>=_0x49cf12+_0x1da2cf&&_0x187019<=_0xa2b9c8&&_0x1fc437>=_0xa2b9c8+_0x5e7d26&&_0x23aa0b['push'](_0x5df823);}_0x23aa0b[_0x3906d3(0x321)]>0x0&&(this[_0x3906d3(0x1ef)]={'unitId':_0x93feaf,'subUnitId':_0x434bb1,'copyType':_0x48b0fa,'copyRange':_0x4bbb5c,'drawings':_0x23aa0b});}[_0x1a57e9(0x114)](_0x5e2574,_0x21df6c){const _0x58dd18=_0x1a57e9;let {unitId:_0x533d16,subUnitId:_0x372c1d,range:_0x24a366}=_0x5e2574,_0xced308=this[_0x58dd18(0x2b7)][_0x58dd18(0x167)](_0x533d16,_0x372c1d);if(!_0xced308)return{'redos':[],'undos':[]};let _0x2448d6=_0x2b7982(_0x24a366),{unitId:_0x14342c,subUnitId:_0x88bc5,copyRange:_0x194951,drawings:_0x53c66f}=this[_0x58dd18(0x1ef)],_0x49f5a0=this[_0x58dd18(0x2b7)]['getSkeleton'](_0x14342c,_0x88bc5);if(!_0x49f5a0)return{'redos':[],'undos':[]};let _0x3a5f74;if(!_0x194951){let _0x58ccf2=0x1/0x0,_0x43ffaa=0x1/0x0;for(let _0x395165 of _0x53c66f){let {left:_0x4af5c3=0x0,top:_0x1d5d49=0x0}=_0x395165[_0x58dd18(0x2b2)]??{};_0x4af5c3<_0x58ccf2&&(_0x58ccf2=_0x4af5c3),_0x1d5d49<_0x43ffaa&&(_0x43ffaa=_0x1d5d49);}_0x58ccf2!==0x1/0x0&&_0x43ffaa!==0x1/0x0&&(_0x3a5f74={'left':_0x58ccf2,'top':_0x43ffaa});}let _0x2d78c4=new Map();if(!_0x21df6c){for(let _0x55401a of _0x53c66f)_0x2d78c4['set'](_0x55401a[_0x58dd18(0x175)],_0xa48e11());}let _0x1d6696=[],_0x17663e=[];for(let _0x584ead of _0x53c66f){let {drawingId:_0x1789b5,transform:_0x138c7a,sheetTransform:_0x388762}=_0x584ead;if(!_0x138c7a||!_0x388762)continue;let _0x4bdc72=this['_updateTransform']({'transform':_0x138c7a,'sheetTransform':_0x388762},{'skeleton':_0x49f5a0,'range':_0x194951},{'skeleton':_0xced308,'range':_0x2448d6},_0x3a5f74);if(_0x21df6c){let {redos:_0x4e2ccf,undos:_0x3f27e6}=this['_generateCutPasteMutations']({'fromUnitId':_0x14342c,'fromSubUnitId':_0x88bc5,'toUnitId':_0x533d16,'toSubUnitId':_0x372c1d,'drawing':_0x584ead,'newTransforms':_0x4bdc72});_0x1d6696['push'](..._0x4e2ccf),_0x17663e[_0x58dd18(0x11f)](..._0x3f27e6);continue;}let {redos:_0x3bd559,undos:_0x2a65e9}=this['_generateCopyPasteMutations']({'toUnitId':_0x533d16,'toSubUnitId':_0x372c1d,'drawing':_0x584ead,'newTransforms':_0x4bdc72,'newDrawingId':_0x2d78c4[_0x58dd18(0x272)](_0x1789b5),'idMap':_0x2d78c4});_0x1d6696[_0x58dd18(0x11f)](..._0x3bd559),_0x17663e[_0x58dd18(0x11f)](..._0x2a65e9);}return{'redos':_0x1d6696,'undos':_0x17663e};}[_0x1a57e9(0x246)](_0x451046){const _0x2acb50=_0x1a57e9;let {fromUnitId:_0x3bdbfb,fromSubUnitId:_0x42fcc0,toUnitId:_0x2a2883,toSubUnitId:_0x1237f3,drawing:_0x44fdf3,newTransforms:_0x59dfb8}=_0x451046,_0x2b2b1b={..._0x44fdf3,'unitId':_0x2a2883,'subUnitId':_0x1237f3,'transform':_0x59dfb8[_0x2acb50(0x2b2)],'sheetTransform':_0x59dfb8[_0x2acb50(0x173)]};if(_0x2a2883===_0x3bdbfb&&_0x1237f3===_0x42fcc0){let {redo:_0x250d13,undo:_0x5390cb,objects:_0x445aa7}=this['_sheetDrawingService'][_0x2acb50(0x186)]([_0x2b2b1b]);return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19a)],'op':_0x250d13,'objects':_0x445aa7}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19a)],'op':_0x5390cb,'objects':_0x445aa7}}]};}else{let _0x4b5e10=this[_0x2acb50(0x1f8)][_0x2acb50(0x1f2)]([_0x44fdf3]),_0x3e3b44=this['_sheetDrawingService'][_0x2acb50(0x2e7)]([_0x2b2b1b]),_0x338c08=this[_0x2acb50(0x312)][_0x2acb50(0x29e)](_0x44fdf3['unitId'],_0x44fdf3[_0x2acb50(0x29a)],_0x44fdf3[_0x2acb50(0x175)]);if(!_0x338c08)return{'redos':[],'undos':[]};let _0x2adddb=_0x338c08[_0x2acb50(0x2b3)](),_0x2cc4f2=JSON['parse'](JSON[_0x2acb50(0xf4)](_0x338c08[_0x2acb50(0x2c4)]()));return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'type':_0x40c976[_0x2acb50(0xf9)],'op':_0x4b5e10[_0x2acb50(0x116)],'objects':_0x4b5e10[_0x2acb50(0x149)]}},{'id':_0x642eb['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'shapeId':_0x44fdf3[_0x2acb50(0x175)]}},{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19d)],'op':_0x3e3b44[_0x2acb50(0x116)],'objects':_0x3e3b44[_0x2acb50(0x149)]}},{'id':_0x3b9418['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'shapeId':_0x44fdf3[_0x2acb50(0x175)],'shapeType':_0x2adddb,'shapeData':_0x2cc4f2}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'type':_0x40c976['INSERT'],'op':_0x4b5e10[_0x2acb50(0x222)],'objects':_0x4b5e10[_0x2acb50(0x149)]}},{'id':_0x3b9418['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'shapeId':_0x44fdf3['drawingId'],'shapeType':_0x2adddb,'shapeData':_0x2cc4f2}},{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0xf9)],'op':_0x3e3b44[_0x2acb50(0x222)],'objects':_0x3e3b44[_0x2acb50(0x149)]}},{'id':_0x642eb['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'shapeId':_0x44fdf3['drawingId']}}]};}}[_0x1a57e9(0x189)](_0x31a069){const _0x2838a8=_0x1a57e9;let {toUnitId:_0x17382a,toSubUnitId:_0x27a99a,drawing:_0x4020cf,newTransforms:_0x56963f,newDrawingId:_0x28e715,idMap:_0x8f68f0}=_0x31a069,_0x21d413={..._0x4020cf,'unitId':_0x17382a,'subUnitId':_0x27a99a,'drawingId':_0x28e715,'transform':_0x56963f[_0x2838a8(0x2b2)],'sheetTransform':_0x56963f[_0x2838a8(0x173)]},{redo:_0x2c2f93,undo:_0x5b8896,objects:_0x85d5d0}=this['_sheetDrawingService'][_0x2838a8(0x2e7)]([_0x21d413]),_0x39f209=this[_0x2838a8(0x312)][_0x2838a8(0x29e)](_0x4020cf[_0x2838a8(0x264)],_0x4020cf[_0x2838a8(0x29a)],_0x4020cf[_0x2838a8(0x175)]);if(!_0x39f209)return{'redos':[],'undos':[]};let _0x49e081=_0x39f209[_0x2838a8(0x2b3)](),_0x3e4eb4=JSON['parse'](JSON[_0x2838a8(0xf4)](_0x39f209[_0x2838a8(0x2c4)]()));if(_0x3e4eb4[_0x2838a8(0x204)]){var _0x215103,_0x4af3c6;let _0x18130d=(_0x215103=_0x3e4eb4[_0x2838a8(0x204)][_0x2838a8(0x191)])==null?void 0x0:_0x215103[_0x2838a8(0x2e2)],_0x34cc5b=(_0x4af3c6=_0x3e4eb4['relation']['to'])==null?void 0x0:_0x4af3c6[_0x2838a8(0x2e2)],_0x4ad4fb=!_0x18130d||_0x8f68f0[_0x2838a8(0x32e)](_0x18130d),_0x5a8951=!_0x34cc5b||_0x8f68f0['has'](_0x34cc5b);_0x4ad4fb&&_0x18130d&&_0x3e4eb4['relation'][_0x2838a8(0x191)]?_0x3e4eb4['relation']['from']={..._0x3e4eb4['relation'][_0x2838a8(0x191)],'shapeId':_0x8f68f0[_0x2838a8(0x272)](_0x18130d)}:_0x3e4eb4[_0x2838a8(0x204)][_0x2838a8(0x191)]=void 0x0,_0x5a8951&&_0x34cc5b&&_0x3e4eb4['relation']['to']?_0x3e4eb4[_0x2838a8(0x204)]['to']={..._0x3e4eb4[_0x2838a8(0x204)]['to'],'shapeId':_0x8f68f0[_0x2838a8(0x272)](_0x34cc5b)}:_0x3e4eb4['relation']['to']=void 0x0;}return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'type':_0x40c976['INSERT'],'op':_0x2c2f93,'objects':_0x85d5d0}},{'id':_0x3b9418['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'shapeId':_0x28e715,'shapeType':_0x49e081,'shapeData':_0x3e4eb4}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'type':_0x40c976[_0x2838a8(0xf9)],'op':_0x5b8896,'objects':_0x85d5d0}},{'id':_0x642eb['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'shapeId':_0x28e715}}]};}['_updateTransform'](_0x428ea7,_0x4c6c32,_0x2dbf58,_0x5dcd33){const _0x10d333=_0x1a57e9;let {range:_0x258cb8,skeleton:_0x83e70d}=_0x4c6c32,{range:_0x39aefc,skeleton:_0x5c7342}=_0x2dbf58,{transform:_0x3b7dd5,sheetTransform:_0xe8d86b}=_0x428ea7,_0x19bd99={..._0x3b7dd5};if(_0x258cb8){let _0x40f0f6=_0x4da051(_0x83e70d,_0x258cb8),_0x5e70c8=_0x4da051(_0x5c7342,_0x39aefc);if(_0x40f0f6&&_0x5e70c8){let _0x5e5106=_0x5e70c8['startX']-_0x40f0f6[_0x10d333(0x161)],_0xca1993=_0x5e70c8['startY']-_0x40f0f6[_0x10d333(0x349)];_0x19bd99[_0x10d333(0x257)]=(_0x19bd99[_0x10d333(0x257)]??0x0)+_0x5e5106,_0x19bd99[_0x10d333(0x333)]=(_0x19bd99['top']??0x0)+_0xca1993;}}else{let _0x4c3e1b=_0x4da051(_0x5c7342,_0x39aefc);if(_0x5dcd33&&_0x4c3e1b){let _0x300089=(_0x19bd99[_0x10d333(0x257)]??0x0)-_0x5dcd33[_0x10d333(0x257)],_0xa6719d=(_0x19bd99[_0x10d333(0x333)]??0x0)-_0x5dcd33['top'];_0x19bd99['left']=_0x4c3e1b[_0x10d333(0x161)]+_0x300089,_0x19bd99['top']=_0x4c3e1b[_0x10d333(0x349)]+_0xa6719d;}else _0x19bd99['left']=_0x4c3e1b==null?void 0x0:_0x4c3e1b[_0x10d333(0x161)],_0x19bd99[_0x10d333(0x333)]=_0x4c3e1b==null?void 0x0:_0x4c3e1b[_0x10d333(0x349)];}return{'transform':_0x19bd99,'sheetTransform':_0x15b6d5(_0x19bd99,_0x5c7342)??_0xe8d86b};}};Hi=Z([X(0x0,_0x236d5e(_0x3bd31c)),X(0x1,_0x236d5e(_0x21ba5b)),X(0x2,_0x236d5e(_0x456a1c)),X(0x3,_0x236d5e(_0x434a53)),X(0x4,_0x236d5e(_0x12abb0))],Hi);var Ui=class extends _0x38cc74{constructor(_0x3766f3,_0x519f35){const _0x4f7360=_0x1a57e9;super(_0x3766f3,_0x519f35),Y(this,_0x4f7360(0x29f),null),Y(this,'_index',null),Y(this,_0x4f7360(0xec),null),Y(this,'_subUnitId',null),Y(this,'_isStartConnectorPoint',!0x1),_0x519f35&&this[_0x4f7360(0x2cd)](_0x519f35);}[_0x1a57e9(0x2e8)](){const _0x579dfb=_0x1a57e9;return{'unitId':this[_0x579dfb(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x579dfb(0x29f)]};}['setShapeProps'](_0x413fb6){const _0x477637=_0x1a57e9;_0x413fb6['shapeId']!==void 0x0&&(this[_0x477637(0x29f)]=_0x413fb6['shapeId']),_0x413fb6[_0x477637(0x264)]!==void 0x0&&(this[_0x477637(0xec)]=_0x413fb6['unitId']),_0x413fb6['subUnitId']!==void 0x0&&(this[_0x477637(0x283)]=_0x413fb6[_0x477637(0x29a)]),_0x413fb6[_0x477637(0x21d)]!==void 0x0&&(this[_0x477637(0x256)]=_0x413fb6['isStartConnectorPoint']),this['transformByState']({'width':_0x413fb6[_0x477637(0x1a3)],'height':_0x413fb6['height']});}[_0x1a57e9(0x1f5)](_0x1b8510){const _0x9ed54=_0x1a57e9;_0x20c694[_0x9ed54(0x2e4)](_0x1b8510,{'radius':_0x496afe['cxnPointRadius'],'fill':_0x496afe[_0x9ed54(0xea)],'stroke':_0x496afe[_0x9ed54(0x351)],'strokeWidth':_0x496afe[_0x9ed54(0x36b)],'evented':!0x0});}};let Wi=class extends _0x458cfa{constructor(_0x4f8421,_0xb97e47,_0x4ef7c9,_0xb4fa,_0x348e5d,_0x5e60ba,_0x3bac6e,_0x2528d7){const _0x544cca=_0x1a57e9;super(),this[_0x544cca(0x339)]=_0x4f8421,this[_0x544cca(0x27a)]=_0xb97e47,this[_0x544cca(0x12c)]=_0x4ef7c9,this[_0x544cca(0x218)]=_0xb4fa,this[_0x544cca(0x224)]=_0x348e5d,this[_0x544cca(0x35e)]=_0x5e60ba,this[_0x544cca(0x23e)]=_0x3bac6e,this[_0x544cca(0x1e9)]=_0x2528d7,Y(this,_0x544cca(0x1c7),void 0x0),Y(this,_0x544cca(0xec),void 0x0),Y(this,_0x544cca(0x283),void 0x0),Y(this,_0x544cca(0x13a),[]),Y(this,_0x544cca(0x26f),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x544cca(0x295),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,_0x544cca(0x156),!0x1),Y(this,_0x544cca(0x23c),!0x1),Y(this,_0x544cca(0x121),void 0x0),Y(this,_0x544cca(0x307),void 0x0),Y(this,_0x544cca(0x25c),null),this[_0x544cca(0x120)]();}[_0x1a57e9(0x120)](){const _0x210ec4=_0x1a57e9;this[_0x210ec4(0x180)](),this[_0x210ec4(0x287)]();}[_0x1a57e9(0x2ae)](){const _0x2de1ba=_0x1a57e9;if(!this[_0x2de1ba(0xec)]||!this['_subUnitId']||!this[_0x2de1ba(0x1c7)])return;let _0x47046a={'unitId':this[_0x2de1ba(0xec)],'subUnitId':this[_0x2de1ba(0x283)],'drawingId':this['_activeShapeId']},{transform:_0x1a1859}=this['_drawingManagerService']['getDrawingByParam'](_0x47046a);if(_0x1a1859)return{'left':_0x1a1859[_0x2de1ba(0x257)]||0x0,'top':_0x1a1859[_0x2de1ba(0x333)]||0x0,'width':_0x1a1859[_0x2de1ba(0x1a3)]||0x0,'height':_0x1a1859[_0x2de1ba(0x2f9)]||0x0,'flipX':_0x1a1859[_0x2de1ba(0xfd)]||!0x1,'flipY':_0x1a1859[_0x2de1ba(0x352)]||!0x1,'angle':_0x1a1859['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x2cddf1=_0x1a57e9;if(this[_0x2cddf1(0xec)]===void 0x0||this[_0x2cddf1(0x283)]===void 0x0||this[_0x2cddf1(0x1c7)]===void 0x0)return;let _0x3c0943=this[_0x2cddf1(0x12c)][_0x2cddf1(0x174)](this['_unitId']);if(!_0x3c0943||!_0x3c0943[_0x2cddf1(0x346)](_0x2bd201)['getCurrentSkeleton']())return;let {scene:_0x257784}=_0x3c0943,_0x36a637=this['_getDrawingRect']();if(!_0x36a637)return;let _0x4b4d76=this['_sheetsShapeService']['getShapeModel'](this[_0x2cddf1(0xec)],this[_0x2cddf1(0x283)],this[_0x2cddf1(0x1c7)]);if(!_0x4b4d76||!_0x3863ab(_0x4b4d76['getShapeType']()))return;let _0x7e5de0=_0x4b4d76[_0x2cddf1(0x126)]();if(_0x7e5de0[_0x2cddf1(0x321)]<0x2)return;let _0x4e3e1f=new _0x34939a(_0x36a637),_0x430d26=_0x7e5de0[0x0],_0x1a6ed6=_0x7e5de0[_0x7e5de0[_0x2cddf1(0x321)]-0x1],_0x43d1cd=_0x4e3e1f[_0x2cddf1(0x259)](_0x430d26),_0x353a85=_0x4e3e1f[_0x2cddf1(0x259)](_0x1a6ed6);this[_0x2cddf1(0x131)](_0x257784,{..._0x43d1cd},!0x0),this[_0x2cddf1(0x131)](_0x257784,{..._0x353a85},!0x1);}[_0x1a57e9(0x131)](_0x12ba27,_0x42e1d4,_0x497c9f){const _0x50c2c7=_0x1a57e9;if(this[_0x50c2c7(0x1c7)]===void 0x0||this[_0x50c2c7(0xec)]===void 0x0||this[_0x50c2c7(0x283)]===void 0x0)return;let _0x28d7a8='connector-handler-'+this[_0x50c2c7(0xec)]+'-'+this[_0x50c2c7(0x283)]+'-'+this[_0x50c2c7(0x1c7)]+'-'+(_0x497c9f?_0x50c2c7(0x1b0):_0x50c2c7(0x2d7)),_0x33d181=_0x12ba27[_0x50c2c7(0x14f)](_0x28d7a8);if(_0x33d181){_0x33d181[_0x50c2c7(0x20e)]({'left':_0x42e1d4['x']-_0x496afe[_0x50c2c7(0x1ee)],'top':_0x42e1d4['y']-_0x496afe[_0x50c2c7(0x1ee)]});return;}let _0x16e404=new Ui(_0x28d7a8,{'left':_0x42e1d4['x']-_0x496afe[_0x50c2c7(0x1ee)],'top':_0x42e1d4['y']-_0x496afe['cxnPointRadius'],'shapeId':this[_0x50c2c7(0x1c7)],'unitId':this[_0x50c2c7(0xec)],'subUnitId':this[_0x50c2c7(0x283)],'isStartConnectorPoint':_0x497c9f,'width':_0x496afe[_0x50c2c7(0x1ee)]*0x2,'height':_0x496afe[_0x50c2c7(0x1ee)]*0x2,'zIndex':_0x5ad001+0x1,'evented':!0x0});this[_0x50c2c7(0x13a)]['push'](_0x16e404),this[_0x50c2c7(0x213)](_0x16e404,_0x12ba27,_0x497c9f),_0x12ba27[_0x50c2c7(0x199)](_0x16e404,_0x5ad001+0x1);}[_0x1a57e9(0x248)](_0x51ff91,_0x2c9b06){const _0x40f134=_0x1a57e9;var _0x8e908a;let _0x114d20={'x':0x0,'y':0x0};if(!_0x51ff91||!_0x2c9b06)return _0x114d20;let _0x2d523e=this['_renderManagerService']['getRenderUnitById'](_0x51ff91);if(!_0x2d523e||!_0x2d523e['with'](_0x2bd201)[_0x40f134(0x167)](_0x2c9b06))return _0x114d20;let _0x723bd9=_0x2d523e[_0x40f134(0x346)](_0x56e08d),_0x44a27f=_0x723bd9==null?void 0x0:_0x723bd9[_0x40f134(0x36e)]();if(!_0x44a27f)return _0x114d20;let _0x37a831=(_0x8e908a=this[_0x40f134(0x224)][_0x40f134(0x2d8)](_0x51ff91))==null?void 0x0:_0x8e908a['getSheetBySheetId'](_0x2c9b06);if(!_0x37a831)return _0x114d20;let _0x22c59c=_0x56ed68(_0x44a27f[_0x40f134(0x2b0)],_0x44a27f[_0x40f134(0x34c)],_0x2d523e[_0x40f134(0x21b)],_0x37a831);return _0x22c59c?{'x':_0x22c59c[_0x40f134(0x2b5)],'y':_0x22c59c['viewportScrollY']}:_0x114d20;}[_0x1a57e9(0x225)](_0x1df163,_0x1f9d6f){const _0x368fae=_0x1a57e9;var _0x445a7f;let _0x5b448e=(_0x445a7f=this['_univerInstanceService'][_0x368fae(0x2d8)](_0x1df163))==null?void 0x0:_0x445a7f[_0x368fae(0x1bc)](_0x1f9d6f);return(_0x5b448e==null?void 0x0:_0x5b448e[_0x368fae(0x242)]())??0x1;}['_handleConnectorPointerUp'](_0x25df7e,_0x817244,_0x2d462b,_0x4e4b4b,_0x35db2d){const _0xb92486=_0x1a57e9;this[_0xb92486(0x121)][_0xb92486(0x2b4)](),this[_0xb92486(0x307)][_0xb92486(0x2b4)](),this[_0xb92486(0x23e)][_0xb92486(0x270)]();let _0x11ce32=this[_0xb92486(0x25c)];this[_0xb92486(0x1e9)][_0xb92486(0x290)]();let _0x2ded0b=this[_0xb92486(0x248)](this[_0xb92486(0xec)],this[_0xb92486(0x283)]),_0x13ce94=this[_0xb92486(0x225)](this[_0xb92486(0xec)],this[_0xb92486(0x283)]),_0x548777={'x':_0x2d462b[_0xb92486(0x13c)]/_0x13ce94+_0x2ded0b['x'],'y':_0x2d462b['offsetY']/_0x13ce94+_0x2ded0b['y']},_0x1d0c48=_0x11ce32?_0x11ce32['worldPoint']:_0x548777,_0x1dd9c1=_0x4e4b4b?this[_0xb92486(0x295)][_0xb92486(0xfb)]():this[_0xb92486(0x295)][_0xb92486(0x13b)](),_0x3cf6f3=this[_0xb92486(0x295)]['getShapeType']();_0x1dd9c1?this[_0xb92486(0x30d)](_0x1dd9c1,_0x1d0c48,_0x4e4b4b,_0x11ce32,_0x35db2d):this[_0xb92486(0x2d0)](_0x817244,_0x1d0c48,_0x4e4b4b,_0x11ce32,_0x35db2d,_0x3cf6f3),this['_isConnecting']=!0x1,this[_0xb92486(0x23c)]=!0x1,this[_0xb92486(0x25c)]=null,_0x25df7e[_0xb92486(0x115)]();}[_0x1a57e9(0x2d0)](_0x6020a3,_0x58dbd0,_0x25fb74,_0x22dc7a,_0x4e3c13,_0x549320){const _0x5b967b=_0x1a57e9;let _0x573ab5=_0x549320===_0x2d2111[_0x5b967b(0x1cd)]||_0x549320===_0x2d2111[_0x5b967b(0x302)],_0xeb7465=_0x25fb74?_0x58dbd0:_0x6020a3,_0x595b16=_0x25fb74?_0x6020a3:_0x58dbd0,_0x3f9526=this['_activeShapeModel'][_0x5b967b(0x126)](),_0x464fd1=_0x338f6a(this['_activeShapeModel']['getShapeType']()),_0x327be3=_0x34939a[_0x5b967b(0x300)](_0x3f9526,_0x464fd1),_0x42071f=_0x573ab5?_0x34939a[_0x5b967b(0x23d)](_0xeb7465,_0x595b16):_0x34939a[_0x5b967b(0x36a)](_0x6020a3,_0x58dbd0,_0x25fb74,_0x327be3);_0x22dc7a?this[_0x5b967b(0x343)](_0x42071f,_0x22dc7a,_0x25fb74,_0x4e3c13):this[_0x5b967b(0x286)](_0x42071f,_0x4e3c13);}[_0x1a57e9(0x30d)](_0x20ac02,_0x48edad,_0x27b001,_0x430c1d,_0x174583){const _0x54997f=_0x1a57e9;let _0x285bce=this[_0x54997f(0x2c7)](_0x20ac02);if(!_0x285bce)return;let _0x5ea8d5=_0x430c1d?_0x430c1d[_0x54997f(0x10a)]:this[_0x54997f(0x1d4)](_0x285bce[_0x54997f(0x2e5)],_0x48edad),_0x5ae741;if(_0x430c1d){let _0x4f56b5=this['_drawingManagerService'][_0x54997f(0x223)]({'unitId':_0x430c1d[_0x54997f(0x264)],'subUnitId':_0x430c1d[_0x54997f(0x29a)],'drawingId':_0x430c1d['shapeId']});if(_0x4f56b5!=null&&_0x4f56b5[_0x54997f(0x2b2)]){let {left:_0x36584f=0x0,top:_0x1a57ac=0x0,width:_0xe3c249=0x0,height:_0x3f1f55=0x0,angle:_0x4d680b}=_0x4f56b5[_0x54997f(0x2b2)];_0x5ae741=_0x23a439({'left':_0x36584f,'top':_0x1a57ac,'width':_0xe3c249,'height':_0x3f1f55},_0x4d680b||0x0);}else _0x5ae741={'left':_0x48edad['x'],'top':_0x48edad['y'],'width':0x0,'height':0x0};}else _0x5ae741={'left':_0x48edad['x'],'top':_0x48edad['y'],'width':0x0,'height':0x0};let _0x28de8b={'point':_0x48edad,'angle':_0x5ea8d5,'bounds':_0x5ae741},_0x59fb78=_0x27b001?_0x28de8b:_0x285bce,_0x1a453e=_0x27b001?_0x285bce:_0x28de8b,_0x32a0b5=this[_0x54997f(0x295)][_0x54997f(0x2b3)](),_0x1b475c=_0x22ac34(_0x59fb78,_0x1a453e,_0x32a0b5);this[_0x54997f(0x295)]['removeLinePoints']();let _0x11a588=_0x3225ee(_0x1b475c,_0x32a0b5);_0x430c1d?this[_0x54997f(0x171)](_0x11a588,_0x430c1d,_0x20ac02,_0x27b001,_0x174583):this['_executeConnectedRouteResizeCommand'](_0x11a588,_0x20ac02,_0x27b001,_0x174583);}[_0x1a57e9(0x343)](_0x456c0d,_0x2c3583,_0x91dd72,_0x409b26){const _0x256f34=_0x1a57e9;let _0x515575=this[_0x256f34(0x295)]['getShapeData']()[_0x256f34(0x204)],_0x2d872c={..._0x515575},_0x26c90f={'shapeId':_0x2c3583[_0x256f34(0x2e2)],'cxnIndex':_0x2c3583['cxnIndex']};_0x91dd72?_0x2d872c['from']=_0x26c90f:_0x2d872c['to']=_0x26c90f;let _0x4ff227=this[_0x256f34(0x295)][_0x256f34(0x2b3)](),_0x2b7c40=_0x3225ee(_0x456c0d[_0x256f34(0x1bf)],_0x4ff227),_0x4fe353={'unitId':this[_0x256f34(0xec)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x256f34(0x1c7)],'width':_0x456c0d[_0x256f34(0x22c)][_0x256f34(0x1a3)],'height':_0x456c0d['worldRect']['height'],'left':_0x456c0d['worldRect'][_0x256f34(0x257)],'top':_0x456c0d[_0x256f34(0x22c)][_0x256f34(0x333)],'flipX':_0x456c0d[_0x256f34(0x22c)]['flipX']||!0x1,'flipY':_0x456c0d[_0x256f34(0x22c)]['flipY']||!0x1,'newAdjustValues':_0x2b7c40['adjustValues'],'oldAdjustValues':_0x409b26,'oldRelation':_0x515575,'newRelation':_0x2d872c,'newLineType':_0x2b7c40['lineType'],'oldLineType':_0x4ff227};this[_0x256f34(0x27a)]['executeCommand'](_0x2a81d3['id'],_0x4fe353);}[_0x1a57e9(0x286)](_0x1fd29f,_0xe915ad){const _0x183a93=_0x1a57e9;let _0x586a81=this[_0x183a93(0x295)][_0x183a93(0x2b3)](),_0x313ca3=_0x3225ee(_0x1fd29f['worldPoints'],_0x586a81),_0x18e5c3={'unitId':this[_0x183a93(0xec)],'subUnitId':this[_0x183a93(0x283)],'shapeId':this[_0x183a93(0x1c7)],'width':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x1a3)],'height':_0x1fd29f[_0x183a93(0x22c)]['height'],'left':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x257)],'top':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x333)],'flipX':_0x1fd29f['worldRect']['flipX']||!0x1,'flipY':_0x1fd29f['worldRect'][_0x183a93(0x352)]||!0x1,'angle':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x10a)]||0x0,'newAdjustValues':_0x313ca3['adjustValues'],'oldAdjustValues':_0xe915ad,'newLineType':_0x313ca3[_0x183a93(0x1a1)],'oldLineType':_0x586a81};this[_0x183a93(0x27a)][_0x183a93(0x311)](_0x569950['id'],_0x18e5c3);}['_executeConnectedRouteConnectionCommand'](_0x15cec4,_0x3b017b,_0x4c51cc,_0x2dadb6,_0x20bc01){const _0x37f731=_0x1a57e9;let _0x4181b0=this[_0x37f731(0x295)][_0x37f731(0x2c4)]()[_0x37f731(0x204)],_0x9825cc={..._0x4181b0},_0x14e780={'shapeId':_0x3b017b[_0x37f731(0x2e2)],'cxnIndex':_0x3b017b[_0x37f731(0x31c)]};_0x2dadb6?(_0x9825cc[_0x37f731(0x191)]=_0x14e780,_0x9825cc['to']=_0x4c51cc):(_0x9825cc[_0x37f731(0x191)]=_0x4c51cc,_0x9825cc['to']=_0x14e780);let _0x12937f={'unitId':this[_0x37f731(0xec)],'subUnitId':this[_0x37f731(0x283)],'connectorShapeId':this['_activeShapeId'],'width':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x1a3)],'height':_0x15cec4['worldRect'][_0x37f731(0x2f9)],'left':_0x15cec4[_0x37f731(0x22c)]['left'],'top':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x333)],'flipX':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0xfd)]||!0x1,'flipY':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x352)]||!0x1,'oldAdjustValues':_0x20bc01,'newAdjustValues':_0x15cec4[_0x37f731(0x184)],'newLineType':_0x15cec4['lineType'],'rotation':_0x15cec4[_0x37f731(0x2be)],'oldRelation':_0x4181b0,'newRelation':_0x9825cc};this[_0x37f731(0x27a)][_0x37f731(0x311)](_0x2a81d3['id'],_0x12937f);}['_executeConnectedRouteResizeCommand'](_0x5bf289,_0x6ef81,_0x50223d,_0xd7221b){const _0x3543b9=_0x1a57e9;let _0x5327c2=this[_0x3543b9(0x295)][_0x3543b9(0x2c4)]()[_0x3543b9(0x204)],_0x32bdb1={};_0x50223d?(_0x32bdb1['to']=_0x6ef81,_0x32bdb1[_0x3543b9(0x191)]=void 0x0):(_0x32bdb1[_0x3543b9(0x191)]=_0x6ef81,_0x32bdb1['to']=void 0x0);let _0x5f1ff2={'unitId':this[_0x3543b9(0xec)],'subUnitId':this[_0x3543b9(0x283)],'connectorShapeId':this[_0x3543b9(0x1c7)],'width':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x1a3)],'height':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x2f9)],'left':_0x5bf289[_0x3543b9(0x22c)]['left'],'top':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x333)],'flipX':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0xfd)]||!0x1,'flipY':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x352)]||!0x1,'oldAdjustValues':_0xd7221b,'newAdjustValues':_0x5bf289[_0x3543b9(0x184)],'newLineType':_0x5bf289[_0x3543b9(0x1a1)],'rotation':_0x5bf289['rotation'],'oldRelation':_0x5327c2,'newRelation':_0x32bdb1};this[_0x3543b9(0x27a)][_0x3543b9(0x311)](_0x2a81d3['id'],_0x5f1ff2);}['_attachConnectorObjectEvent'](_0x385427,_0x35d1b2,_0x51a9c4){const _0x4964ad=_0x1a57e9;this[_0x4964ad(0x2db)](_0x3ee632(_0x385427[_0x4964ad(0x279)][_0x4964ad(0x18f)]((_0x48702c,_0x708c2f)=>{const _0x29827b=_0x4964ad;let _0x2795eb=_0x385427['getDrawingSearch']();if(this[_0x29827b(0x295)]=this[_0x29827b(0x35e)][_0x29827b(0x29e)](_0x2795eb['unitId'],_0x2795eb[_0x29827b(0x29a)],_0x2795eb[_0x29827b(0x175)]),!this[_0x29827b(0x295)])return;let _0x5334ab={};this[_0x29827b(0x295)]['getAdjustNames']()[_0x29827b(0x21e)](_0x178022=>{let _0x25a78e=this['_activeShapeModel']['getAdjustValueByName'](_0x178022);_0x25a78e!==void 0x0&&(_0x5334ab[_0x178022]=_0x25a78e);});let _0x652a12=this[_0x29827b(0x2ae)]();if(!_0x652a12)return;this[_0x29827b(0x26f)]={..._0x652a12};let _0x38e65a=new _0x34939a(this[_0x29827b(0x26f)]),_0x10a82a=_0x238087({'unitId':this[_0x29827b(0xec)],'subUnitId':this[_0x29827b(0x283)],'drawingId':this[_0x29827b(0x1c7)]}),_0x46ff7c=_0x35d1b2[_0x29827b(0x14f)](_0x10a82a);this[_0x29827b(0xfe)]=!0x0,_0x35d1b2[_0x29827b(0x2e3)](),this[_0x29827b(0x1e9)][_0x29827b(0x30c)](_0x35d1b2,this['_unitId'],this['_subUnitId'],this[_0x29827b(0x1c7)]),this[_0x29827b(0x25c)]=null;let _0x3c5bef=this[_0x29827b(0x295)][_0x29827b(0x126)](),_0x1076ee=_0x3c5bef[0x0],_0x61caed=_0x3c5bef[_0x3c5bef[_0x29827b(0x321)]-0x1],_0x192c1e=_0x51a9c4?_0x38e65a[_0x29827b(0x259)](_0x61caed):_0x38e65a['localToWorld'](_0x1076ee);this[_0x29827b(0x121)]=_0x35d1b2[_0x29827b(0x117)][_0x29827b(0x18f)]((_0x449bf7,_0xa9b62d)=>{const _0x23f021=_0x29827b;if(!this[_0x23f021(0xfe)]||!this['_activeShapeModel'])return;this['_hasReset']||=(this[_0x23f021(0x23e)]['clearAdjustControls'](),this[_0x23f021(0x295)][_0x23f021(0x17b)](),!0x0);let _0x6a7be5=this[_0x23f021(0x248)](this[_0x23f021(0xec)],this[_0x23f021(0x283)]),_0x42653f=this[_0x23f021(0x225)](this['_unitId'],this[_0x23f021(0x283)]),_0x45a57e={'x':_0x449bf7[_0x23f021(0x13c)]/_0x42653f+_0x6a7be5['x'],'y':_0x449bf7['offsetY']/_0x42653f+_0x6a7be5['y']},_0x39c0ba=this[_0x23f021(0x1e9)][_0x23f021(0x309)](_0x45a57e);if(_0x39c0ba){let {shapeId:_0x9265b5,unitId:_0x261494,subUnitId:_0x1a7ba5}=_0x39c0ba;if(_0x9265b5&&_0x261494&&_0x1a7ba5){let _0x258d7a=_0x238087({'unitId':_0x261494,'subUnitId':_0x1a7ba5,'drawingId':_0x9265b5});_0x39c0ba['angle']=(_0x35d1b2[_0x23f021(0x14f)](_0x258d7a)['angle']||0x0)+_0x39c0ba[_0x23f021(0x10a)];}}this[_0x23f021(0x25c)]=_0x39c0ba;let _0x5c8b9a=_0x51a9c4?this[_0x23f021(0x295)][_0x23f021(0xfb)]():this[_0x23f021(0x295)]['getStartConnectInfo']();if(_0x5c8b9a){this[_0x23f021(0x159)](_0x5c8b9a,_0x45a57e,_0x51a9c4,_0x46ff7c,_0x385427);return;}this[_0x23f021(0x187)](_0x45a57e,_0x192c1e,_0x51a9c4,_0x46ff7c,_0x385427);}),this['_cxtHandlerPointerUp']=_0x35d1b2['onPointerUp$'][_0x29827b(0x18f)]((_0x949b53,_0x242d6f)=>{this['_handleConnectorPointerUp'](_0x35d1b2,_0x192c1e,_0x949b53,_0x51a9c4,_0x5334ab);}),_0x708c2f['stopPropagation']();})));}[_0x1a57e9(0xf6)](_0x2675cf,_0x49e806,_0x1a5bd2){const _0x5bb2c0=_0x1a57e9;let _0x59cc9a=this[_0x5bb2c0(0x35e)]['getBasicShapeRelation'](_0x2675cf,_0x49e806,_0x1a5bd2);if(!_0x59cc9a||_0x59cc9a[_0x5bb2c0(0x321)]===0x0)return;let _0x37f47a=this[_0x5bb2c0(0x12c)][_0x5bb2c0(0x174)](_0x2675cf);if(!_0x37f47a)return;let {scene:_0x58ed90}=_0x37f47a;for(let _0x499751 of _0x59cc9a){let _0x1d714f=_0x499751[_0x5bb2c0(0x217)],_0x1f843d=this['_sheetsShapeService']['getShapeModel'](_0x2675cf,_0x49e806,_0x1d714f);if(!_0x1f843d)continue;let _0x4f4643=_0x1f843d[_0x5bb2c0(0x13b)](),_0x44f273=_0x1f843d[_0x5bb2c0(0xfb)](),_0x398adb=(_0x4f4643==null?void 0x0:_0x4f4643[_0x5bb2c0(0x2e2)])===_0x1a5bd2,_0x3853b9=_0x238087({'unitId':_0x2675cf,'subUnitId':_0x49e806,'drawingId':_0x1d714f}),_0x39bb8a=_0x58ed90[_0x5bb2c0(0x14f)](_0x3853b9);if(!_0x39bb8a)continue;let _0x22e428=this[_0x5bb2c0(0x218)]['getDrawingByParam']({'unitId':_0x2675cf,'subUnitId':_0x49e806,'drawingId':_0x1d714f});_0x22e428!=null&&_0x22e428[_0x5bb2c0(0x2b2)]&&(_0x4f4643&&_0x44f273?this[_0x5bb2c0(0x29b)](_0x2675cf,_0x49e806,_0x1d714f,_0x1f843d,_0x4f4643,_0x44f273,_0x39bb8a):this[_0x5bb2c0(0x202)](_0x2675cf,_0x49e806,_0x1d714f,_0x1f843d,_0x398adb?_0x4f4643:_0x44f273,_0x398adb,_0x22e428,_0x39bb8a));}}[_0x1a57e9(0x29b)](_0x51d900,_0x649d08,_0x4eda6a,_0x11b348,_0x2c2686,_0x3b1252,_0x2c1ec1){const _0x4994ba=_0x1a57e9;let _0x3ff6ee=this[_0x4994ba(0xec)],_0x3182ee=this['_subUnitId'];this[_0x4994ba(0xec)]=_0x51d900,this['_subUnitId']=_0x649d08;let _0x5cb462=this[_0x4994ba(0x2c7)](_0x2c2686),_0x3a8344=this[_0x4994ba(0x2c7)](_0x3b1252);if(this['_unitId']=_0x3ff6ee,this[_0x4994ba(0x283)]=_0x3182ee,!_0x5cb462||!_0x3a8344)return;let _0x3f4c78=_0x11b348[_0x4994ba(0x2b3)](),_0x157cd6=_0x22ac34(_0x5cb462,_0x3a8344,_0x3f4c78);_0x157cd6&&_0x11b348[_0x4994ba(0xed)](_0x157cd6);let _0x2d359c=_0x3225ee(_0x157cd6,_0x3f4c78);_0x2d359c[_0x4994ba(0x1a1)]!==_0x3f4c78&&_0x11b348['changeShapeType'](_0x2d359c[_0x4994ba(0x1a1)]),_0x11b348['clearAdjustValue']();for(let [_0x3abec3,_0x10c6f4]of Object[_0x4994ba(0x262)](_0x2d359c['adjustValues']))_0x11b348[_0x4994ba(0x2dc)](_0x3abec3,_0x10c6f4);_0x11b348[_0x4994ba(0x216)]({'width':_0x2d359c['worldRect']['width'],'height':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x2f9)]}),_0x2c1ec1[_0x4994ba(0x20e)]({'flipX':_0x2d359c['worldRect'][_0x4994ba(0xfd)],'flipY':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x352)],'left':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x257)],'top':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x333)],'width':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x1a3)],'height':_0x2d359c['worldRect'][_0x4994ba(0x2f9)],'angle':_0x2d359c[_0x4994ba(0x2be)]}),_0x11b348['removeLinePoints']();}[_0x1a57e9(0x202)](_0x23bed2,_0x210183,_0x39b6cf,_0x161503,_0x24b07a,_0x3f692d,_0x233b3f,_0x307c7a){const _0x129491=_0x1a57e9;let _0x1e3657=this[_0x129491(0xec)],_0x454a46=this[_0x129491(0x283)];this[_0x129491(0xec)]=_0x23bed2,this[_0x129491(0x283)]=_0x210183;let _0x1212b1=this[_0x129491(0x2c7)](_0x24b07a);if(this[_0x129491(0xec)]=_0x1e3657,this[_0x129491(0x283)]=_0x454a46,!_0x1212b1)return;let {left:_0x2ab871=0x0,top:_0x4ee4d2=0x0,width:_0x34507e=0x0,height:_0x37da5a=0x0,flipX:_0x20088a=!0x1,flipY:_0x1fc8bb=!0x1}=_0x233b3f['transform'],_0x97568c=_0x161503[_0x129491(0x126)]();if(_0x97568c['length']<0x2)return;let _0x32b170=new _0x34939a({'left':_0x2ab871,'top':_0x4ee4d2,'width':_0x34507e,'height':_0x37da5a,'flipX':_0x20088a,'flipY':_0x1fc8bb}),_0x4f7160=_0x3f692d?_0x97568c[_0x97568c[_0x129491(0x321)]-0x1]:_0x97568c[0x0],_0x9c9fdd=_0x32b170['localToWorld'](_0x4f7160),_0x5d1157=_0x34939a[_0x129491(0x36a)](_0x9c9fdd,_0x1212b1[_0x129491(0x2e5)],!_0x3f692d);_0x307c7a[_0x129491(0x20e)]({'flipX':_0x5d1157[_0x129491(0x22c)][_0x129491(0xfd)],'flipY':_0x5d1157['worldRect'][_0x129491(0x352)],'left':_0x5d1157['worldRect'][_0x129491(0x257)],'top':_0x5d1157[_0x129491(0x22c)][_0x129491(0x333)],'width':_0x5d1157[_0x129491(0x22c)][_0x129491(0x1a3)],'height':_0x5d1157[_0x129491(0x22c)][_0x129491(0x2f9)],'angle':_0x5d1157[_0x129491(0x22c)]['angle']}),_0x307c7a[_0x129491(0x2bc)](!0x0);}[_0x1a57e9(0x226)](){const _0x48a267=_0x1a57e9;this[_0x48a267(0x13a)][_0x48a267(0x321)]!==0x0&&(this[_0x48a267(0x13a)]['forEach'](_0x376be2=>{const _0x4cbff9=_0x48a267;_0x376be2[_0x4cbff9(0x32d)]();}),this[_0x48a267(0x13a)]=[]);}['_registerDrawingMoveHandler'](){const _0x148eb7=_0x1a57e9;let _0x187cb5=this[_0x148eb7(0x224)]['getCurrentTypeOfUnit$'](_0x3d832c['UNIVER_SHEET']);this['disposeWithMe'](_0x187cb5[_0x148eb7(0x15e)](_0x1990de(_0x204cfe=>_0x204cfe?_0x204cfe[_0x148eb7(0x21c)][_0x148eb7(0x15e)](_0x1990de(_0x2319f3=>{const _0x4141e4=_0x148eb7;if(!_0x2319f3)return _0x3b0f55;let _0x5dab9b=_0x204cfe['getUnitId'](),_0x12e280=this['_renderManagerService'][_0x4141e4(0x174)](_0x5dab9b),_0x3a6b50=_0x12e280==null?void 0x0:_0x12e280[_0x4141e4(0x21b)];return _0x3a6b50?_0x36bcf9(_0x3a6b50):_0x3b0f55;})):_0x3b0f55))[_0x148eb7(0x23b)](_0x2626a7=>{const _0x2ecd59=_0x148eb7;let _0x6baecb=_0x2626a7['getTransformerByCreate']();this['disposeWithMe'](_0x2626a7[_0x2ecd59(0x117)][_0x2ecd59(0x18f)](_0xc97ed=>{const _0x5a004c=_0x2ecd59;this['_isDrawingShapePointDown']&&this[_0x5a004c(0x1c7)]&&this[_0x5a004c(0x226)]();})),this[_0x2ecd59(0x2db)](_0x6baecb['changeStart$']['subscribe'](_0xa5edee=>{const _0x4fb68c=_0x2ecd59;let {objects:_0x44c2e3}=_0xa5edee;this[_0x4fb68c(0x226)](),_0x44c2e3!==null&&_0x44c2e3['size']===0x1&&_0x44c2e3[_0x4fb68c(0x193)]()[_0x4fb68c(0x18c)]()[_0x4fb68c(0x2de)]instanceof ar&&(this[_0x4fb68c(0x156)]=!0x0);})),this[_0x2ecd59(0x2db)](_0x6baecb[_0x2ecd59(0x2d3)][_0x2ecd59(0x23b)](_0x4317b1=>{const _0x776f40=_0x2ecd59;this['_isDrawingShapePointDown']&&this[_0x776f40(0x226)]();})),this[_0x2ecd59(0x2db)](_0x2626a7['onPointerUp$'][_0x2ecd59(0x18f)](()=>{const _0x2280e4=_0x2ecd59;this[_0x2280e4(0x156)]&&(this[_0x2280e4(0x156)]=!0x1,this[_0x2280e4(0x1be)]());})),this[_0x2ecd59(0x2db)](_0x6baecb[_0x2ecd59(0x12a)][_0x2ecd59(0x23b)](()=>{const _0x520eb4=_0x2ecd59;this[_0x520eb4(0xec)]&&this[_0x520eb4(0x283)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x520eb4(0x223)]({'unitId':this[_0x520eb4(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x520eb4(0x1c7)]})&&(this[_0x520eb4(0x226)](),this[_0x520eb4(0x1be)]());}));}));}[_0x1a57e9(0x180)](){const _0x4a9297=_0x1a57e9;this[_0x4a9297(0x2db)](this[_0x4a9297(0x218)][_0x4a9297(0x268)][_0x4a9297(0x23b)](_0x4b1a2f=>{const _0x53e386=_0x4a9297;if(_0x4b1a2f[_0x53e386(0x321)]===0x1){let _0x5b9343=_0x4b1a2f[0x0];if(_0x5b9343['drawingType']===_0x3a939e[_0x53e386(0x35c)]){let _0x8d9189=this[_0x53e386(0x35e)][_0x53e386(0x29e)](_0x5b9343[_0x53e386(0x264)],_0x5b9343['subUnitId'],_0x5b9343[_0x53e386(0x175)]);if(_0x8d9189&&_0x3863ab(_0x8d9189[_0x53e386(0x2b3)]())){this['_activeShapeId']=_0x5b9343[_0x53e386(0x175)],this[_0x53e386(0xec)]=_0x5b9343['unitId'],this[_0x53e386(0x283)]=_0x5b9343[_0x53e386(0x29a)],this[_0x53e386(0x226)](),this[_0x53e386(0x1be)]();return;}}}this[_0x53e386(0x1c7)]=void 0x0,this[_0x53e386(0xec)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x53e386(0x226)]();})),this[_0x4a9297(0x2db)](this['_drawingManagerService'][_0x4a9297(0x1d3)][_0x4a9297(0x23b)](_0x516648=>{const _0x5e1d95=_0x4a9297;if(_0x516648['length']===0x1){var _0x2e12e2;let _0x202e2c=_0x516648[0x0],_0x15d7da=(_0x2e12e2=this[_0x5e1d95(0x218)]['getDrawingByParam'](_0x202e2c))==null?void 0x0:_0x2e12e2[_0x5e1d95(0x130)];_0x15d7da===_0x3a939e[_0x5e1d95(0x35c)]&&_0x202e2c[_0x5e1d95(0x175)]===this[_0x5e1d95(0x1c7)]?(this[_0x5e1d95(0x226)](),this[_0x5e1d95(0x1be)]()):!this[_0x5e1d95(0x1c7)]&&_0x15d7da===_0x3a939e[_0x5e1d95(0x35c)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x202e2c[_0x5e1d95(0x264)],_0x202e2c[_0x5e1d95(0x29a)],_0x202e2c['drawingId']);}})),this['disposeWithMe'](this[_0x4a9297(0x218)][_0x4a9297(0x10f)]['subscribe'](_0x5e8ba4=>{const _0x4e2f8b=_0x4a9297;for(let _0x38e8b4 of _0x5e8ba4){let {drawingId:_0x5ea89d}=_0x38e8b4;if(this[_0x4e2f8b(0x1c7)]===_0x5ea89d){this[_0x4e2f8b(0x219)]();return;}}}));}[_0x1a57e9(0x159)](_0x3c639f,_0x4ffbeb,_0x44f3f8,_0x5dee21,_0x1d7c35){const _0x5d7d25=_0x1a57e9;var _0x5f2491;if(!this['_activeShapeModel'])return;let _0x58aa66=this[_0x5d7d25(0x2c7)](_0x3c639f);if(!_0x58aa66)return;let _0x193671=this[_0x5d7d25(0x25c)]?this['_currentConnectionTarget']['worldPoint']:_0x4ffbeb,_0x197cdf=this[_0x5d7d25(0x25c)]?this[_0x5d7d25(0x25c)][_0x5d7d25(0x10a)]:this['_calculateFreeEndpointAngle'](_0x58aa66['point'],_0x193671),_0x2c2a29;if(this['_currentConnectionTarget']){let _0x5a21dd=this[_0x5d7d25(0x218)][_0x5d7d25(0x223)]({'unitId':this[_0x5d7d25(0x25c)][_0x5d7d25(0x264)],'subUnitId':this['_currentConnectionTarget'][_0x5d7d25(0x29a)],'drawingId':this[_0x5d7d25(0x25c)][_0x5d7d25(0x2e2)]});if(_0x5a21dd!=null&&_0x5a21dd['transform']){let {left:_0x32108f=0x0,top:_0x4945ad=0x0,width:_0x1d93eb=0x0,height:_0x41c3ce=0x0,angle:_0x1e14dd}=_0x5a21dd[_0x5d7d25(0x2b2)];_0x2c2a29=_0x23a439({'left':_0x32108f,'top':_0x4945ad,'width':_0x1d93eb,'height':_0x41c3ce},_0x1e14dd||0x0);}else _0x2c2a29={'left':_0x193671['x'],'top':_0x193671['y'],'width':0x0,'height':0x0};}else _0x2c2a29={'left':_0x193671['x'],'top':_0x193671['y'],'width':0x0,'height':0x0};let _0x1b85dc={'point':_0x193671,'angle':_0x197cdf,'bounds':_0x2c2a29},_0x5ad719=_0x44f3f8?_0x1b85dc:_0x58aa66,_0x5141ad=_0x44f3f8?_0x58aa66:_0x1b85dc,_0x4b91d4=this[_0x5d7d25(0x295)][_0x5d7d25(0x2b3)](),_0xb2598a=_0x22ac34(_0x5ad719,_0x5141ad,_0x4b91d4);_0xb2598a&&this['_activeShapeModel'][_0x5d7d25(0xed)](_0xb2598a);let _0x29bdba=_0x3225ee(_0xb2598a,_0x4b91d4);_0x29bdba[_0x5d7d25(0x1a1)]!==_0x4b91d4&&this[_0x5d7d25(0x295)]['changeShapeType'](_0x29bdba[_0x5d7d25(0x1a1)]);for(let [_0x1f7ed9,_0x396009]of Object[_0x5d7d25(0x262)](_0x29bdba[_0x5d7d25(0x184)]))this[_0x5d7d25(0x295)][_0x5d7d25(0x2dc)](_0x1f7ed9,_0x396009);this[_0x5d7d25(0x295)][_0x5d7d25(0x216)]({'width':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x1a3)],'height':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x2f9)]}),_0x5dee21[_0x5d7d25(0x20e)]({'flipX':_0x29bdba['worldRect']['flipX'],'flipY':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x352)],'left':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x257)],'top':_0x29bdba['worldRect']['top'],'width':_0x29bdba['worldRect'][_0x5d7d25(0x1a3)],'height':_0x29bdba['worldRect'][_0x5d7d25(0x2f9)],'angle':_0x29bdba[_0x5d7d25(0x2be)]}),_0x5dee21[_0x5d7d25(0x2bc)](!0x0);let _0x47ebf2=((_0x5f2491=this[_0x5d7d25(0x25c)])==null?void 0x0:_0x5f2491[_0x5d7d25(0x2a5)])??_0x4ffbeb;_0x1d7c35[_0x5d7d25(0x20e)]({'left':_0x47ebf2['x']-_0x496afe[_0x5d7d25(0x1ee)],'top':_0x47ebf2['y']-_0x496afe[_0x5d7d25(0x1ee)]});}[_0x1a57e9(0x187)](_0x2825ea,_0x302de6,_0x376479,_0x5a89ba,_0x31d117){const _0x2b4837=_0x1a57e9;var _0x4cfe3c,_0x3ac6be;let _0x2b255d=((_0x4cfe3c=this['_currentConnectionTarget'])==null?void 0x0:_0x4cfe3c[_0x2b4837(0x2a5)])??_0x2825ea,_0x30521f=_0x34939a['computeConnectorResizeLayout'](_0x302de6,_0x2b255d,_0x376479);_0x5a89ba[_0x2b4837(0x20e)]({'flipX':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0xfd)],'flipY':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0x352)],'left':_0x30521f[_0x2b4837(0x22c)]['left'],'top':_0x30521f[_0x2b4837(0x22c)]['top'],'width':_0x30521f[_0x2b4837(0x22c)]['width'],'height':_0x30521f[_0x2b4837(0x22c)]['height'],'angle':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0x10a)]});let _0x323f29=((_0x3ac6be=this[_0x2b4837(0x25c)])==null?void 0x0:_0x3ac6be[_0x2b4837(0x2a5)])??_0x2825ea;_0x31d117[_0x2b4837(0x20e)]({'left':_0x323f29['x']-_0x496afe[_0x2b4837(0x1ee)],'top':_0x323f29['y']-_0x496afe[_0x2b4837(0x1ee)]});}[_0x1a57e9(0x2c7)](_0x314663){const _0x112ba3=_0x1a57e9;if(!this['_unitId']||!this[_0x112ba3(0x283)])return null;let {shapeId:_0x1dacb3,cxnIndex:_0x3e4450}=_0x314663,_0x534005=this[_0x112ba3(0x35e)][_0x112ba3(0x29e)](this[_0x112ba3(0xec)],this[_0x112ba3(0x283)],_0x1dacb3);if(!_0x534005)return null;let _0x49696b=this['_drawingManagerService'][_0x112ba3(0x223)]({'unitId':this[_0x112ba3(0xec)],'subUnitId':this['_subUnitId'],'drawingId':_0x1dacb3});if(!(_0x49696b!=null&&_0x49696b[_0x112ba3(0x2b2)]))return null;let {left:_0x1db43f=0x0,top:_0x1da590=0x0,width:_0x3f3cc1=0x0,height:_0xbe82ef=0x0,flipX:_0x348fbd=!0x1,flipY:_0x30c09d=!0x1,angle:_0x277b48}=_0x49696b[_0x112ba3(0x2b2)];_0x534005[_0x112ba3(0x216)]({'width':_0x3f3cc1,'height':_0xbe82ef});let _0x59d19a=_0x534005[_0x112ba3(0x2a8)]()['find'](_0x579754=>_0x579754[_0x112ba3(0x2f6)]===_0x3e4450);if(!_0x59d19a)return null;let _0x182ad1=_0x348fbd?_0x3f3cc1-_0x59d19a['x']:_0x59d19a['x'],_0x37699f=_0x30c09d?_0xbe82ef-_0x59d19a['y']:_0x59d19a['y'];if(_0x277b48!==0x0&&_0x277b48!=null){let _0x29a263=_0x277b48*Math['PI']/0xb4,_0x55e375=Math[_0x112ba3(0x316)](_0x29a263),_0x413127=Math[_0x112ba3(0x334)](_0x29a263),_0x5d0e94=_0x3f3cc1/0x2,_0x207c20=_0xbe82ef/0x2,_0x364c1f=_0x182ad1-_0x5d0e94,_0x48d11e=_0x37699f-_0x207c20;_0x182ad1=_0x5d0e94+_0x364c1f*_0x55e375-_0x48d11e*_0x413127,_0x37699f=_0x207c20+_0x364c1f*_0x413127+_0x48d11e*_0x55e375;}_0x182ad1+=_0x1db43f,_0x37699f+=_0x1da590;let _0x1dda8f=_0x59d19a['ang']/0xea60;_0x348fbd&&(_0x1dda8f=0xb4-_0x1dda8f),_0x30c09d&&(_0x1dda8f=-_0x1dda8f),_0x1dda8f+=_0x277b48||0x0,_0x1dda8f=(_0x1dda8f%0x168+0x168)%0x168;let _0x5e0201=_0x23a439({'left':_0x1db43f,'top':_0x1da590,'width':_0x3f3cc1,'height':_0xbe82ef},_0x277b48||0x0);return{'point':{'x':_0x182ad1,'y':_0x37699f},'angle':_0x1dda8f,'bounds':_0x5e0201};}['_calculateFreeEndpointAngle'](_0x5c0bec,_0x293be0){const _0x4a0be0=_0x1a57e9;let _0x59d39c=_0x293be0['x']-_0x5c0bec['x'],_0x1ed864=_0x293be0['y']-_0x5c0bec['y'];return Math[_0x4a0be0(0x341)](_0x59d39c)>=Math['abs'](_0x1ed864)?_0x59d39c>=0x0?0xb4:0x0:_0x1ed864>=0x0?0x10e:0x5a;}[_0x1a57e9(0x219)](){const _0x1983f0=_0x1a57e9;this[_0x1983f0(0x1c7)]=void 0x0,this['_unitId']=void 0x0,this[_0x1983f0(0x283)]=void 0x0,this[_0x1983f0(0x226)]();}[_0x1a57e9(0x32d)](){const _0x368d8a=_0x1a57e9;this[_0x368d8a(0x226)](),super[_0x368d8a(0x32d)]();}};Wi=Z([X(0x1,_0x1b8f46),X(0x2,_0xebded9),X(0x3,_0x3398d1),X(0x4,_0x4b61f3),X(0x5,_0x236d5e(_0x434a53)),X(0x6,_0x236d5e(sr)),X(0x7,_0x236d5e(Vi))],Wi);let Gi=class extends _0x458cfa{constructor(_0x58d554,_0x5f0ee0,_0x3dcca6){const _0x5d5441=_0x1a57e9;super(),this[_0x5d5441(0x230)]=_0x58d554,this['_drawingManagerService']=_0x5f0ee0,this['_shapeRenderController']=_0x3dcca6,this[_0x5d5441(0x1dc)]();}[_0x1a57e9(0x1dc)](){const _0x3f5e29=_0x1a57e9;this[_0x3f5e29(0x2db)](this[_0x3f5e29(0x230)]['interceptor'][_0x3f5e29(0xf2)](this['_sheetPrintInterceptorService'][_0x3f5e29(0x103)]['getInterceptPoints']()[_0x3f5e29(0x1c2)],{'handler':(_0x52bfc0,_0x340f2a,_0xa7e243)=>{const _0x54000a=_0x3f5e29;var _0x487312;let {unitId:_0x5622d3,subUnitId:_0x275e7d,scene:_0x210be8,resourceCollector:_0x46a532}=_0x340f2a,_0x5c0a44=(_0x487312=this[_0x54000a(0x218)][_0x54000a(0x2fe)](_0x5622d3))==null?void 0x0:_0x487312[_0x275e7d];return _0x5c0a44==null||_0x5c0a44[_0x54000a(0x141)][_0x54000a(0x21e)](_0x451719=>{const _0x45c568=_0x54000a;let _0x5ad22e=_0x5c0a44[_0x45c568(0x214)][_0x451719];_0x5ad22e[_0x45c568(0x130)]===_0x3a939e[_0x45c568(0x35c)]&&!_0x5ad22e[_0x45c568(0x276)]&&this[_0x45c568(0x370)][_0x45c568(0x221)](_0x5ad22e,_0x210be8,{'resourceCollector':_0x46a532});}),_0xa7e243(_0x52bfc0);}}));}};Gi=Z([X(0x0,_0x236d5e(_0x3dbf35)),X(0x1,_0x3398d1),X(0x2,_0x236d5e(Q))],Gi);function _0x4a8a(_0x1be574,_0x29db7f){_0x1be574=_0x1be574-0xe7;const _0x2ae2d6=_0x2ae2();let _0x4a8ace=_0x2ae2d6[_0x1be574];return _0x4a8ace;}let Ki=class extends _0x458cfa{constructor(_0x30e1f9,_0x1526a5,_0x3f0d39){const _0x1651ac=_0x1a57e9;super(),this[_0x1651ac(0x27a)]=_0x30e1f9,this['_localeService']=_0x1526a5,this[_0x1651ac(0x1a9)]=_0x3f0d39,this[_0x1651ac(0x179)]();}[_0x1a57e9(0x179)](){const _0x272923=_0x1a57e9;this[_0x272923(0x2db)](this[_0x272923(0x27a)][_0x272923(0x200)](_0x39c0fe=>{const _0x469bc3=_0x272923;let _0x107eb0,_0x2d1c6f;if(_0x39c0fe['id']===_0x2f0bb2['id']||_0x39c0fe['id']===_0x457236['id']||_0x39c0fe['id']===_0x2a81d3['id']){let _0x228534=_0x39c0fe[_0x469bc3(0x374)];_0x107eb0=_0x228534[_0x469bc3(0x264)],_0x2d1c6f=_0x228534[_0x469bc3(0x29a)];}!_0x107eb0||!_0x2d1c6f||this[_0x469bc3(0x1a9)][_0x469bc3(0x255)]({'workbookTypes':[_0x386d00],'worksheetTypes':[_0x18e121]},_0x107eb0,_0x2d1c6f)||this[_0x469bc3(0x1a9)]['blockExecuteWithoutPermission'](this['_localeService']['t'](_0x469bc3(0x298)));}));}};function _0x2ae2(){const _0x2ebba2=['map','_popupMenuListener','4515qxTpHK','_sheetPermissionCheckController','draw','_imageIoService','getEditing','asObservable','targetShapeId','complete','start','rect','shapeText','changeStart$','_drawSimpleText','clip-','getImage','some','setConfig','sheet.command.update-shape-data','_drawRichText','clipByShape','getSheetBySheetId','FromArray','_addShapeConnectorHandlerObjects','worldPoints','invert','shape-adjust-point-','PRINTING_COMPONENT_COLLECT','COMMAND','OTHERS','symbol','_targetShapeId','_activeShapeId','_baseLeft','setSrcRect','_initMenu','_baseShapeLeft','srcRect','Line','sheets-shape-format-font-family-menu','_imageShapeClipController','#4285f4','animationEnabled','sheet.image-clip.shape-picker.component','update$','_calculateFreeEndpointAngle','_findNearestConnectionSite','UNIVER_DOC','registerRenderModule','vertical-center','BUTTON','getTransformer','hideContextualTab','_initPrinting','_initCommands','FlipHorizontalIcon','MoveUpIcon','_updateImageAdjValues','PictureFill','getUnitId','composeMatrix','_baseShapeWidth','_attachAdjustEvent','sheet.shape.picker.component','updateDocumentStyle','_drawShapeText','_sheetBasicShapeConnectionPointController','shape-editor-ui.arrange.forward','popup','connection-site-','getCurrentTypeOfUnit$','cxnPointRadius','_copyInfo','_getImagePrstGeom','_urlImageService','getBatchRemoveOp','clipTop','getRealBound','_draw','_setTransForm','applyPoint','_sheetDrawingService','sheets-shape-ui.ribbon.shape-format.arrange-backward','_drawingAddListener','_adjName','error','_initSheetChange','_shapeFormulaService','_currentUniverService','beforeCommandExecuted','SheetShapeTextEditorContainer','_moveConnectorWithShape','_disposePopups','relation','_lastEditingShapeKey','_sheetInterceptorService','stopPropagation','getParent','_getShapeAdjustPointListById','keys','2730WdaCLn','VIEW_MAIN_LEFT_TOP','_formulaShapes','transformByState','_renderWithCache','setHighlighted','getValue','getAdjustNames','_attachConnectorObjectEvent','data','_menuManagerService','updateContext','lineShapeId','_drawingManagerService','_reset','setPresentation','scene','activeSheet$','isStartConnectorPoint','forEach','getActualSize','visible$','renderDrawingShape','undo','getDrawingByParam','_univerInstanceService','_getZoomRatio','_clearShapeConnectorHandlerObjects','setCursor','sheets-shape-ui.imagePanel.crop.shape','shape-text-','trim','_disposed','worldRect','sheet.shape.object-list.panel','_clearPopups','fillImageSource','_sheetPrintInterceptorService','_initCopyPaste','parent','_configService','VIEW_MAIN_LEFT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','calcAdjValues','_sheetDrawingShapeRenderController','clone','_cxnIndex','endArrow','subscribe','_hasReset','computeStraightConnectorLayout','_sheetShapeAdjustController','MEDIA','_openShapeEditPanel','open','getZoomRatio','_shapes','fill','VIEW_MAIN_TOP','_generateCutPasteMutations','sheets-shape-ui.objectListPanel.open','_getScrollInfo','preValue','getConnectionRelation','_updateShapeAdjustControls','#bcbcbc','default','stroke','getCanvasElement','OPERATION','SELECTOR','cancelEditing','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shape-editor-ui.arrange.front','permissionCheckWithoutRange','_isStartConnectorPoint','left','canvas','localToWorld','clipHeight','render','_currentConnectionTarget','adjHandleStroke','gradientEndColor','_drawingType','isHorizontal','getAdjustInfoByName','entries','509398othYhC','unitId','copyType','CROSSHAIR','setFormulaPresentation','focus$','div','_getSceneAndTransformerByDrawingSearch','find','sheet.operation.apply-shape-quick-style','sheets-shape-ui.quickStyles','sheets-shape-ui','_baseDrawingRect','refreshAdjustControls','ShapeFormatSettingIcon','get','shape-editor-ui.toolbar.quickStyles','setShouldShowAdjust','_addControl','hidden','Image','_updateSrcRectByTransform','onPointerDown$','_commandService','_registerMoveHandler','getDrawingVisible','skeleton','_focusedDrawings','UUID','isHighlighted','_adjHandlerPointerUp','setCanUseShapeClip','_subUnitId','_applyFormulaAutoFitSize','visible','_executeResizeCommand','_registerDrawingMoveHandler','marginTop','setEditing','_createShapePopupMenu','VIEW_MAIN','description','isHit','horizontal','_initEvents','endConnectionDetection','_drawRichTextLayer','getPresentation','_sheetCanvasPopManagerService','_update','_activeShapeModel','create','syncExecuteCommand','sheets-shape-ui.permission.editErr','_registerComponents','subUnitId','_rerouteConnectorLine','shape-editor-ui.arrange.back','URL','getShapeModel','_shapeId','CUT','localeService','debounceRefreshControls','_findShapeAtPoint','isolated','worldPoint','_adjHandlerPointerMove','_initSelection','getConnectionSiteList','_clearControls','_insertingShapeKeys','onReady','6099291bjzCdp','getState','_getDrawingRect','strokeWidth','sheetViewStartRow','fillType','transform','getShapeType','unsubscribe','viewportScrollX','back','_sheetSkeletonService','onTransformChange$','animateFormulaPresentation','_editingParams$','clearAdjustControls','makeDirty','highlighted','rotation','_activeImageId','type','setCollapsedIds','_baseHeight','Medium','getShapeData','onDblclick$','_activeAdjustPointList','_getConnectPointInfo','dataModel','getConnectionInfo','mergeMenu','_shapeUpdateListener','sheets-shape-ui.ribbon.shape-format.arrange-forward','setShapeProps','_closeShapeEditPanel','_isHighlighted','_handleFreeEndpointPointerUp','_getShapeInfo','sheets-shape-ui.shape-format.style-ribbon-control','changing$','BottomIcon','axisAlignSheetTransform','sheets-shape-ui.formatShape','end','getUnit','resize','_getShapeAdjustInfosById','disposeWithMe','setAdjustValueByName','getAllUnitsForType','value','setPrstGeom','isLineShape','custom','shapeId','disableObjectsEvent','drawWith','point','3889071MjfpOz','getBatchAddOp','getDrawingSearch','showContextualTab','forward','TOP','_createControls','parse','front','sheets-shape-ui.ribbon.shape-format.formula-control','_isImagePointerDown','_shapeFloatingToolbarService','_iconManager','attachTransformerTo','bottom','updateDocumentDataMargin','index','sheet.operation.open-shape-object-list-panel','sheet.operation.close-sheet-shape-format-panel','height','_shapeEditPanelVersion','indexOf','constructor','shapeType','getDrawingDataForUnit','focusDrawing','getBentTypeFromPoints','_createCopyInfoByRange','StraightConnector1','currentAdjustValues','setPrstGeomAdjValues','sheet.command.menu-insert-shape','_connectionSiteObjects','_cxtHandlerPointerUp','decorate','updateConnectionDetection','prstGeomAdjValues','resourceCollector','startConnectionDetection','_handleConnectedEndpointPointerUp','226712YOErJq','isInGroup','viewBound','executeCommand','_shapeService','name','_sidebarService','shape-editor-ui.toolbar.changeShape','cos','selectable','_formulaAnimation','defineProperty','onPointerUp$','reduce','cxnIndex','editingParams$','_getOrCreateShapeModel','shapeModel','_currentScene','length','_activeTargetShapeId','slice','activeAnObject','_drawingRenderService','unregister','resetCursor','_isStartAdjusting','_resetState','src','registerCommand','_clearShapeAdjustControls','dispose','has','getAutoFitPresentations','_getImageDrawingInfo','sheets-shape-ui.flipVertical','_isOpenedShapeEditPanel','top','sin','getShapeDataById','@univerjs-pro/sheets-shape-ui','DEFAULT_PASTE','_init','_context','sheets-shape-ui.ribbon.shape-format.text-control','getObject','isRichText','getAdjustValueByName','sqrt','fontFamily','_groupCopyPasteController','abs','ShapeIcon','_executeConnectionCommand','initShapePopupMenu','Arrow','with','_highlightedSiteIndex','multiply','startY','buildClipPath','sheet.menu.shape.flip-horizontal','sheetViewStartColumn','transformForAngle','getShapeTypeById','setOnSavingEditorData','onSavingEditorData$','cxnPointStroke','flipY','setFallbackVisible','getSelectedObjectMap','_getConnectionSiteAngle','updateShapeFillImage','LEFT','completeEditing','_clipService','getDrawingData','_componentManager','DRAWING_SHAPE','contentVerticalOffset','_sheetsShapeService','_activeAdjustInfo','refreshShapeFillImage','_registerFocusChangeHandler','clip-adj-','_baseShapeTop','_createShapeAdjustControls','5wVVFkx','add$','formulaPresentation','object','getSheetId','computeConnectorResizeLayout','cxnPointStrokeWidth','sheets-shape-text-','actions','getCurrentScrollState','isEditing','_shapeRenderController','string','TopmostIcon','adjHandleSize','params','_isShouldShowDrawingShapeAdjust','getSkeletonParam','translateWithPrecision','cxnPointFill','filter','_unitId','updateLinePoints','shapeData','shapeKey','_shapeTextEditingService','setFillImage','intercept','UNIVER_SHEET','stringify','_draggingConnectorId','_handleBasicShapeUpdateConnectorLineShape','sheet.shape.text.float-menu','startArrow','REMOVE','function','getEndConnectInfo','_loadShapePictureFill','flipX','_isConnecting','ancestorTransform','attachPopupToObject','sectionFloating','None','interceptor','_props','_commandExecutedListener','shape-editor-ui.arrange.backward','_visible','clip','_updateAdjustControlPositions','angle','_hide','115674jVbmMu','getUnitType','_showConnectionSites','remove$','getOwnPropertyDescriptor','isArray','vertical','getTransformerByCreate','_generatePasteMutations','enableObjectsEvent','redo','onPointerMove$','_baseShapeHeight','39NNAdoF','size','_registerOperations','isHitLine','_registerGroupFeaturePasteHook','prstGeom','push','_initialize','_cxtHandlerPointerMove','_contextService','pick','sheets-shape-ui.shape-format.quick-style-gallery','save','getConnectorLinePoints','RIBBON','_clearConnectionSites','SolidFill','changeEnd$','backward','_renderManagerService','calculate','_activeShapeAdjustPointList','univer-box-border\x20univer-px-4\x20univer-text-sm','drawingType','_addShapeConnectorHandlerObject','extraProps','setContextValue','registerClipDelegate','_baseWidth','_ribbonService','actualHeight','_activeShapeInfo','addClipboardHook','_connectorObjects','getStartConnectInfo','offsetX','_transformCalculateSrcRect','wrapStrategy','onCommandExecuted','reverse','order','classType','2905688bTmTKM','sheets-shape-ui.flipHorizontal','_baseTop','1.0.0-beta.1','oKey','_loadAndSetImage','objects','contentHeight','sheets-shape-ui.config','GROUP','includes','Rect','getObjectIncludeInGroup','_injector','sheets-shape-contextual-ribbon','delete','pushUndoRedo','PaintIcon','close','_isDrawingShapePointDown','packageName','sheet.shape.edit.panel','_handleConnectedEndpointMove','sheets-shape-ui.ribbon.shape-format.style-control','_localeService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getFocusDrawings','pipe','clearControl$','interceptCommand','startX','DRAWING_IMAGE','_config','text','version','sheet.shape.floating-toolbar','getSkeleton','register','#1a73e8','getCurrentSkeleton','beginPath','getShapeTextRect','getMatrix','featurePluginUpdateNotification','pluginName','getVisible','_executeConnectedRouteConnectionCommand','presetId','sheetTransform','getRenderUnitById','drawingId','_transform','_sidebarDisposable','onerror','_initPermission','_sheetClipboardService','clearAdjustValue','_formulaKey','_initializedShapePopupMenu','_onSavingEditorData$','extensionGroups','_registerDrawingFocusChangeHandler','set','setShapeData','getScene','adjustValues','onSteady','getBatchUpdateOp','_handleFreeEndpointMove','20VNmduY','_generateCopyPasteMutations','adjName','canvasElement','next','getDrawingPoints','add','subscribeEvent','iterator','from','formulaBinding','values','refreshFormulaPresentation','viewportScrollY','title','doc','flatMap','addObject','UPDATE','_insertShapes','sheet.operation.open-sheet-shape-format-panel','INSERT','getActiveSheet','FlipVerticalIcon','_registerImageShapeClipDelegate','lineType','getShapeTextData','width','SolidLine','restore'];_0x2ae2=function(){return _0x2ebba2;};return _0x2ae2();}Ki=Z([X(0x0,_0x236d5e(_0x1b8f46)),X(0x1,_0x236d5e(_0x1d78e7)),X(0x2,_0x236d5e(_0x2c3559))],Ki);let qi=class extends _0x458cfa{constructor(_0x28a5b7,_0x2a761d,_0x32b088,_0x277a10,_0x32b082,_0x32bf4d,_0x23336d,_0x3e2358,_0x4a6661,_0x34fd18,_0x561d07){const _0x4120a6=_0x1a57e9;super(),this[_0x4120a6(0x224)]=_0x28a5b7,this[_0x4120a6(0x314)]=_0x2a761d,this['_menuManagerService']=_0x32b088,this[_0x4120a6(0x35e)]=_0x277a10,this[_0x4120a6(0x15b)]=_0x32b082,this['_commandService']=_0x32bf4d,this[_0x4120a6(0x218)]=_0x23336d,this[_0x4120a6(0x293)]=_0x3e2358,this[_0x4120a6(0x122)]=_0x4a6661,this[_0x4120a6(0x12c)]=_0x34fd18,this[_0x4120a6(0xf0)]=_0x561d07,Y(this,_0x4120a6(0x177),null),Y(this,_0x4120a6(0x138),null),Y(this,_0x4120a6(0x332),!0x1),Y(this,_0x4120a6(0x2fa),0x0),Y(this,_0x4120a6(0x17d),new Set()),Y(this,_0x4120a6(0x203),[]),this[_0x4120a6(0x1ca)](),this['disposeWithMe'](this['_univerInstanceService'][_0x4120a6(0x1ed)](_0x3d832c[_0x4120a6(0xf3)])['subscribe'](_0x4ad682=>{const _0x3659f5=_0x4120a6;if(!_0x4ad682){var _0x3cef6a;(_0x3cef6a=this[_0x3659f5(0x177)])==null||_0x3cef6a[_0x3659f5(0x32d)]();return;}this[_0x3659f5(0x28a)](_0x4ad682);})),this[_0x4120a6(0x11b)](),this['initShapePopupMenu'](),this[_0x4120a6(0x2db)](this[_0x4120a6(0xf0)][_0x4120a6(0x31d)][_0x4120a6(0x23b)](_0x7b4199=>{const _0x4b47a2=_0x4120a6;_0x7b4199&&this[_0x4b47a2(0x22e)]();}));}[_0x1a57e9(0x1ca)](){const _0x882ac9=_0x1a57e9;this[_0x882ac9(0x215)]['mergeMenu'](hi);}[_0x1a57e9(0x344)](){const _0x283310=_0x1a57e9;this[_0x283310(0x224)][_0x283310(0x2dd)](_0x3d832c['UNIVER_SHEET'])['forEach'](_0x40e1f0=>this[_0x283310(0x28a)](_0x40e1f0));}[_0x1a57e9(0x2d1)](_0x48ee80,_0x1acb3b,_0x3b07fd){const _0xefd8a2=_0x1a57e9;let _0x3d0594=this[_0xefd8a2(0x35e)][_0xefd8a2(0x34e)](_0x48ee80,_0x1acb3b,_0x3b07fd),_0x23a4fb=this[_0xefd8a2(0x35e)][_0xefd8a2(0x335)](_0x48ee80,_0x1acb3b,_0x3b07fd);return _0x3d0594!==void 0x0&&_0x23a4fb!==void 0x0?{'shapeData':_0x23a4fb,'shapeId':_0x3b07fd,'shapeType':_0x3d0594,'unitId':_0x48ee80,'subUnitId':_0x1acb3b,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x1a57e9(0x28a)](_0x580e0d){const _0x136826=_0x1a57e9;if(!_0x580e0d)return;let _0x3f4549=_0x580e0d[_0x136826(0x1e2)]();this[_0x136826(0x12c)]['has'](_0x3f4549)&&!this[_0x136826(0x17d)][_0x136826(0x32e)](_0x3f4549)&&(this[_0x136826(0x1a7)](_0x3f4549),this[_0x136826(0x17d)][_0x136826(0x18e)](_0x3f4549));}[_0x1a57e9(0x22e)](){const _0x3897a5=_0x1a57e9;this['_disposePopups'][_0x3897a5(0x21e)](_0x51b2f3=>_0x51b2f3[_0x3897a5(0x32d)]()),this[_0x3897a5(0x203)][_0x3897a5(0x321)]=0x0;}['_popupMenuListener'](_0x1b2546){const _0x1c671e=_0x1a57e9;var _0x261133;let _0x2ea426=(_0x261133=this[_0x1c671e(0x12c)][_0x1c671e(0x174)](_0x1b2546))==null?void 0x0:_0x261133[_0x1c671e(0x21b)],_0x5a7ca8=_0x2ea426==null?void 0x0:_0x2ea426[_0x1c671e(0x113)]();!_0x2ea426||!_0x5a7ca8||(this[_0x1c671e(0x2db)](_0x5a7ca8['createControl$'][_0x1c671e(0x23b)](()=>{const _0x1f3519=_0x1c671e;let _0x1248ee=_0x5a7ca8[_0x1f3519(0x354)]();if(this[_0x1f3519(0x22e)](),this[_0x1f3519(0x332)]||_0x1248ee[_0x1f3519(0x11a)]>0x1)return;let _0x595899=_0x1248ee[_0x1f3519(0x193)]()[_0x1f3519(0x18c)]()[_0x1f3519(0x2de)];if(!_0x595899)return;let _0x42631f=this[_0x1f3519(0x218)]['getDrawingOKey'](_0x595899[_0x1f3519(0x147)]);if(!_0x42631f||_0x42631f[_0x1f3519(0x130)]!==_0x3a939e[_0x1f3519(0x35c)])return;let {unitId:_0x362e4e,subUnitId:_0x1600e2,drawingId:_0x2e8647,drawingType:_0x190efb}=_0x42631f,_0x75975a=this[_0x1f3519(0x2d1)](_0x362e4e,_0x1600e2,_0x2e8647);if(!_0x75975a)return;this['_contextService']['setContextValue'](_0x4f1989,!0x0);let _0x56826d=this[_0x1f3519(0x293)][_0x1f3519(0x100)](_0x595899,{'componentKey':fr,'direction':_0x1f3519(0x1d8),'offset':[0x0,_0x295cb8],'extraProps':{'unitId':_0x362e4e,'subUnitId':_0x1600e2,'drawingId':_0x2e8647,'drawingType':_0x190efb,'shapeType':_0x75975a['shapeType'],'shapeData':_0x75975a[_0x1f3519(0xee)]}});this['_disposePopups']['push'](this[_0x1f3519(0x2db)](_0x56826d)),this[_0x1f3519(0x218)][_0x1f3519(0x15d)]()[_0x1f3519(0x26b)](_0x1ef017=>_0x1ef017['unitId']===_0x362e4e&&_0x1ef017[_0x1f3519(0x29a)]===_0x1600e2&&_0x1ef017[_0x1f3519(0x175)]===_0x2e8647)||this[_0x1f3519(0x218)][_0x1f3519(0x2ff)]([{'unitId':_0x362e4e,'subUnitId':_0x1600e2,'drawingId':_0x2e8647}]);})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x15f)]['subscribe'](()=>{const _0x1e0eb6=_0x1c671e;this[_0x1e0eb6(0x22e)](),this[_0x1e0eb6(0x122)]['setContextValue'](_0x4f1989,!0x1),this[_0x1e0eb6(0x218)][_0x1e0eb6(0x2ff)](null);})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x2d3)][_0x1c671e(0x23b)](()=>{this['_clearPopups']();})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x1b3)]['subscribe'](()=>{this['_clearPopups']();})));}[_0x1a57e9(0x11b)](){const _0x17a3bb=_0x1a57e9;this[_0x17a3bb(0x2db)](this[_0x17a3bb(0x27a)][_0x17a3bb(0x13f)](_0x308cd3=>{const _0x51237c=_0x17a3bb;if(_0x308cd3['id']===_r['id']){let {unitId:_0x4bda48,subUnitId:_0x3425f4,drawingId:_0x2b4c7b}=_0x308cd3[_0x51237c(0x374)];this['_shapeEditPanelVersion']+=0x1,this[_0x51237c(0x138)]=this['_getShapeInfo'](_0x4bda48,_0x3425f4,_0x2b4c7b),this[_0x51237c(0x22e)](),this[_0x51237c(0x240)]();}if(_0x308cd3['id']===vi['id']&&(this[_0x51237c(0x138)]=null,this[_0x51237c(0x2ce)]()),_0x308cd3['id']===_0x926363['id']){let {unitId:_0x4eea3e,subUnitId:_0x2de549,shapeId:_0x4eeaa6}=_0x308cd3[_0x51237c(0x374)];if(this[_0x51237c(0x138)]&&this[_0x51237c(0x138)][_0x51237c(0x2e2)]===_0x4eeaa6){let _0x43bfc5=this['_getShapeInfo'](_0x4eea3e,_0x2de549,_0x4eeaa6);_0x43bfc5&&(this[_0x51237c(0x2fa)]+=0x1,_0x43bfc5[_0x51237c(0x165)]=this[_0x51237c(0x2fa)],this[_0x51237c(0x138)]=_0x43bfc5,this[_0x51237c(0x332)]&&this['_openShapeEditPanel']());}}})),this[_0x17a3bb(0x2db)](this[_0x17a3bb(0x218)][_0x17a3bb(0x268)][_0x17a3bb(0x23b)](_0x2909a0=>{const _0x319ff4=_0x17a3bb;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x2909a0[_0x319ff4(0x321)]===0x0){this[_0x319ff4(0x138)]=null,this[_0x319ff4(0x2ce)]();return;}if(_0x2909a0['length']===0x1&&_0x2909a0[0x0][_0x319ff4(0x130)]===_0x3a939e[_0x319ff4(0x35c)]&&(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this[_0x319ff4(0x2d1)](_0x2909a0[0x0][_0x319ff4(0x264)],_0x2909a0[0x0]['subUnitId'],_0x2909a0[0x0]['drawingId']),this[_0x319ff4(0x138)])){this[_0x319ff4(0x240)]();return;}let _0x15d536=_0x2909a0['filter'](_0x2ea4dd=>_0x2ea4dd[_0x319ff4(0x130)]===_0x3a939e[_0x319ff4(0x35c)]);if(_0x2909a0[_0x319ff4(0x321)]>0x1&&_0x15d536[_0x319ff4(0x321)]===_0x2909a0[_0x319ff4(0x321)]){if(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this['_getShapeInfo'](_0x2909a0[0x0][_0x319ff4(0x264)],_0x2909a0[0x0][_0x319ff4(0x29a)],_0x2909a0[0x0][_0x319ff4(0x175)]),this[_0x319ff4(0x138)]){this[_0x319ff4(0x240)]();return;}}else{if(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this[_0x319ff4(0x2d1)](_0x2909a0[0x0]['unitId'],_0x2909a0[0x0]['subUnitId'],_0x2909a0[0x0][_0x319ff4(0x175)]),this['_activeShapeInfo']){this[_0x319ff4(0x138)]['disableShapeOption']=!0x0,this[_0x319ff4(0x240)]();return;}}this['_closeShapeEditPanel']();}));}[_0x1a57e9(0x240)](){const _0x41c36b=_0x1a57e9;this[_0x41c36b(0x138)]&&(this[_0x41c36b(0x177)]=this['_sidebarService'][_0x41c36b(0x241)]({'id':ur,'header':{'title':this[_0x41c36b(0x15b)]['t'](_0x41c36b(0x2d6))},'width':0x184,'children':{'label':ur,...this[_0x41c36b(0x138)]},'onClose':()=>{const _0x1c3a16=_0x41c36b;this['_drawingManagerService'][_0x1c3a16(0x2ff)](null),this[_0x1c3a16(0x122)][_0x1c3a16(0x133)](_0x4f1989,!0x1),this[_0x1c3a16(0x177)]=null;}}),this[_0x41c36b(0x332)]=!0x0);}['_closeShapeEditPanel'](){const _0x1c8bdd=_0x1a57e9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x1c8bdd(0x314)][_0x1c8bdd(0x155)](ur),this['_sidebarDisposable']=null,this[_0x1c8bdd(0x122)]['setContextValue'](_0x4f1989,!0x1),this[_0x1c8bdd(0x218)][_0x1c8bdd(0x2ff)](null);}};qi=Z([X(0x0,_0x4b61f3),X(0x1,_0x236d5e(_0xaf9369)),X(0x2,_0x430f90),X(0x3,_0x236d5e(_0x434a53)),X(0x4,_0x236d5e(_0x1d78e7)),X(0x5,_0x1b8f46),X(0x6,_0x3398d1),X(0x7,_0x236d5e(_0x5d6395)),X(0x8,_0x593690),X(0x9,_0xebded9),X(0xa,_0x236d5e(Oi))],qi);let $=class extends _0x50de7b{constructor(_0x2797b0=yi,_0x32bec8,_0x4c440c,_0x33f65a,_0x3bb629){const _0x4b7ecb=_0x1a57e9;super(),this[_0x4b7ecb(0x163)]=_0x2797b0,this[_0x4b7ecb(0x150)]=_0x32bec8,this[_0x4b7ecb(0x27a)]=_0x4c440c,this[_0x4b7ecb(0x233)]=_0x33f65a,this['_renderManagerService']=_0x3bb629;let {..._0x75827e}=_0x5e4367({},yi,this['_config']);this[_0x4b7ecb(0x233)][_0x4b7ecb(0x1b8)](_0x4b7ecb(0x14b),_0x75827e),this[_0x4b7ecb(0x1dd)]();}['onRendered'](){const _0x119261=_0x1a57e9;_0xaddeba(this[_0x119261(0x150)],[[qi],[Ri],[Q],[Gi]]);}[_0x1a57e9(0x185)](){const _0xa26d26=_0x1a57e9;this[_0xa26d26(0x150)]['get'](qi)[_0xa26d26(0x344)]();}[_0x1a57e9(0x2ab)](){const _0x1ee84e=_0x1a57e9;[[Vi],[sr],[Hi]]['forEach'](_0x56e909=>this[_0x1ee84e(0x150)][_0x1ee84e(0x18e)](_0x56e909)),_0xaddeba(this[_0x1ee84e(0x150)],[[Hi],[sr]]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Vi]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c['UNIVER_SHEET'],[Mi]),this[_0x1ee84e(0x12c)][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Wi]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Ii]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c['UNIVER_DOC'],[Li]);}['onStarting'](){const _0x3d52ee=_0x1a57e9;this[_0x3d52ee(0x150)][_0x3d52ee(0x18e)]([ji]),this[_0x3d52ee(0x150)][_0x3d52ee(0x272)](ji);let _0x2b3ba8=this['_injector'];[[qi],[Ri],[Q],[Gi],[Ci],[Oi],[Fi],[xr],[Ki],[Pi]][_0x3d52ee(0x21e)](_0x5e8190=>_0x2b3ba8[_0x3d52ee(0x18e)](_0x5e8190)),_0xaddeba(this['_injector'],[[qi],[Ri],[Q],[Ci],[Oi],[Fi],[xr],[Ki],[Pi]]);}['_initCommands'](){const _0x3cd874=_0x1a57e9;[lr,Qn,vi,_r,gr,cr,yr,br][_0x3cd874(0x21e)](_0x42bcfc=>this[_0x3cd874(0x2db)](this[_0x3cd874(0x27a)][_0x3cd874(0x32b)](_0x42bcfc)));}};Y($,_0x1a57e9(0x2c0),_0x3d832c['UNIVER_SHEET']),Y($,_0x1a57e9(0x16f),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x1a57e9(0x157),gi),Y($,_0x1a57e9(0x165),_i),$=Z([_0x2c3830(_0x3cc57f,_0x1ed1eb,_0x915f2c,_0x1d6e19,_0x6f6e81,_0x5e916d,_0xff5f03,_0x1297cb,_0x1c59b7,_0x52f323,_0x30de56,_0x13359c,_0x478c15),X(0x1,_0x236d5e(_0x8c9613)),X(0x2,_0x1b8f46),X(0x3,_0x7f334e),X(0x4,_0xebded9)],$);export{hi as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};