@univerjs-pro/sheets-shape-ui 1.0.0-alpha.7 → 1.0.0-alpha.8

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 (86) 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/const.d.ts +1 -1
  62. package/lib/types/controllers/ui.controller.d.ts +1 -98
  63. package/lib/types/locale/en-US.d.ts +2 -10
  64. package/lib/types/menu/shape-context-menu.d.ts +7 -0
  65. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +1 -1
  66. package/lib/umd/index.js +1 -1
  67. package/lib/umd/locale/ar-SA.js +1 -1
  68. package/lib/umd/locale/ca-ES.js +1 -1
  69. package/lib/umd/locale/de-DE.js +1 -1
  70. package/lib/umd/locale/en-US.js +1 -1
  71. package/lib/umd/locale/es-ES.js +1 -1
  72. package/lib/umd/locale/fa-IR.js +1 -1
  73. package/lib/umd/locale/fr-FR.js +1 -1
  74. package/lib/umd/locale/id-ID.js +1 -1
  75. package/lib/umd/locale/it-IT.js +1 -1
  76. package/lib/umd/locale/ja-JP.js +1 -1
  77. package/lib/umd/locale/ko-KR.js +1 -1
  78. package/lib/umd/locale/pl-PL.js +1 -1
  79. package/lib/umd/locale/pt-BR.js +1 -1
  80. package/lib/umd/locale/ru-RU.js +1 -1
  81. package/lib/umd/locale/sk-SK.js +1 -1
  82. package/lib/umd/locale/vi-VN.js +1 -1
  83. package/lib/umd/locale/zh-CN.js +1 -1
  84. package/lib/umd/locale/zh-HK.js +1 -1
  85. package/lib/umd/locale/zh-TW.js +1 -1
  86. package/package.json +19 -19
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43dbb9=_0x449a;(function(_0x4e70a5,_0xdf7fd3){const _0x5a991a=_0x449a,_0x23ff02=_0x4e70a5();while(!![]){try{const _0x14f7e7=parseInt(_0x5a991a(0x202))/0x1+parseInt(_0x5a991a(0x1d6))/0x2+-parseInt(_0x5a991a(0x2b7))/0x3*(-parseInt(_0x5a991a(0x1e1))/0x4)+parseInt(_0x5a991a(0x2a0))/0x5+-parseInt(_0x5a991a(0x88))/0x6+-parseInt(_0x5a991a(0x1af))/0x7*(parseInt(_0x5a991a(0x1ef))/0x8)+-parseInt(_0x5a991a(0x262))/0x9;if(_0x14f7e7===_0xdf7fd3)break;else _0x23ff02['push'](_0x23ff02['shift']());}catch(_0xaf2a7c){_0x23ff02['push'](_0x23ff02['shift']());}}}(_0x1d5d,0xef7b5));import{ComponentManager as _0x1953f8,IMenuManagerService as _0x44a75b,ISidebarService as _0x10b5ac,IconManager as _0x200e2a,MenuItemType as _0x142b74,RibbonInsertGroup as _0x24939b,getMenuHiddenObservable as _0x227618,useDependency as _0x597c42,useObservable as _0x31d745}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x427c58,ImageSourceTypeEnum as _0x283528,ShapeArrowSizeEnum as _0x421194,ShapeArrowTypeEnum as _0x454053,ShapeDefaultConfig as _0x2bc8ec,ShapeFillEnum as _0x27d461,ShapeLineTypeEnum as _0x517d31,ShapeModel as _0xf0c0c,ShapeRenderModeEnum as _0x33d52f,ShapeTypeEnum as _0x250922,computeConnectorRouteLayout as _0x3de713,getBasicShapeRotateBound as _0x15c292,isConnectorShape as _0x1f7f23,isCurvedConnectorShape as _0x2e1471,routeConnectorLineShape as _0xde601c}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0xe57842,createShapeFormulaDocument as _0x50262d,createShapeTextBoxShapeData as _0x25f061}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x28064d,InsertSheetsShapeMutation as _0x5addb7,RemoveSheetsShapeMutation as _0x35cadb,SetShapeDrawingDataCommand as _0xedfea5,SetSheetsShapeRotateCommand as _0x59af59,SetSheetsShapeTextVerticalToggleCommand as _0x1e9400,SheetsShapeService as _0x26a217,ToggleSheetsShapeFlipCommand as _0x494ee9,UniverSheetsShapePlugin as _0x249942,UpdateConnectorRelationCommand as _0x551591,UpdateLineShapeResizeCommand as _0x5760d5,UpdateSheetsShapeDataMutation as _0x19b81c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x202737,CommandType as _0x8e0e3c,DependentOn as _0x8fb429,Disposable as _0x4760b3,DocumentDataModel as _0x10f73c,DrawingTypeEnum as _0x5d03f6,FOCUSING_COMMON_DRAWINGS as _0x596494,FOCUSING_SHAPE_TEXT_EDITOR as _0x4d1a78,HorizontalAlign as _0x1bf681,ICommandService as _0x4d9cac,IConfigService as _0x1e0ba7,IContextService as _0x21d773,IImageIoService as _0x5dd91b,IURLImageService as _0x488e09,IUndoRedoService as _0x4830b5,IUniverInstanceService as _0x7113c7,Inject as _0x450bf3,Injector as _0x183eff,LocaleService as _0xa3717a,Plugin as _0x33cfb9,UniverInstanceType as _0x2a1b28,VerticalAlign as _0x3d0a33,createInternalEditorID as _0x1a4a4b,generateRandomId as _0x2bfd17,merge as _0x2f8dd2,toDisposable as _0x43b296,touchDependencies as _0xdf78a}from'@univerjs/core';import{CopySheetCommand as _0x16ae42,RemoveSheetCommand as _0x299032,SheetInterceptorService as _0x9d40d,SheetPermissionCheckController as _0xf21f2,SheetSkeletonService as _0x1fc54d,SheetsSelectionsService as _0x412710,WorkbookEditablePermission as _0x1b5cb2,WorksheetEditPermission as _0x194b28,attachRangeWithCoord as _0x403c80,discreteRangeToRange as _0x25d2bc,getSheetCommandTarget as _0x59589e}from'@univerjs/sheets';import{IDrawingManagerService as _0x324617,SetDrawingSelectedOperation as _0xd68623,getDrawingShapeKeyByDrawingSearch as _0x7f2912}from'@univerjs/drawing';import{CURSOR_TYPE as _0x110f16,Circle as _0x536c54,DRAWING_OBJECT_LAYER_INDEX as _0x11332b,DocumentSkeleton as _0x475752,DocumentViewModel as _0x36f5ae,Documents as _0x1a519e,IRenderManagerService as _0x263af6,Image as _0x3100f0,RENDER_CLASS_TYPE as _0x842655,SHEET_VIEWPORT_KEY as _0x4ce309,Shape as _0x300c3f,Transform as _0x112a4b,Vector2 as _0xf6e38e}from'@univerjs/engine-render';import{COPY_TYPE as _0x202be0,ISheetClipboardService as _0x5dfcb1,PREDEFINED_HOOK_NAME as _0x32e6c9,SheetCanvasPopManagerService as _0x15ebbe,SheetPrintInterceptorService as _0x11a3e2,SheetScrollManagerService as _0xdbee74,SheetSkeletonManagerService as _0x392ff0,deriveStateFromActiveSheet$ as _0x4f53b0,getCurrentRangeDisable$ as _0x3b91cb,getViewportByCell as _0x1b930d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x502f7b,EMPTY as _0x3149ab,Observable as _0x573c9d,of as _0x236700,switchMap as _0x46afa7}from'rxjs';import{FormulaShapeAnimationController as _0xeb6567,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x37ad89,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x9bdae2,ShapeEditPanel as _0x30898f,ShapeFloatingToolbar as _0xf7955b,ShapeGroupEnum as _0x2cca23,ShapePickerDropdown as _0x106929,ShapePickerPanel as _0x43451f,ShapeTextEditorContainer as _0x1ef440,ShapeTextFloatMenuRenderControllerBase as _0xd3a510,ShapeTextFloatToolbar as _0x312819,UniverShapeEditorUIPlugin as _0x5337ae,activateDrawingObject as _0x4df6a5,buildShapeTextDataUpdate as _0x299119,clearActiveDrawingObjects as _0xbdee17,drawFormulaShapeAnimationLayers as _0xe06053,getTextModel as _0x4d64d0,getTextStyle as _0x32374d,normalizeShapeTextModel as _0x5cbbbf,plainShapeTextToDocumentData as _0x12e116,prepareShapeTextDocumentData as _0x18b9c3,resolveFormulaShapeAutoFitSize as _0x3a11fc,resolveShapeTextDocumentRenderLayout as _0x2feb6a,resolveShapeTextEditorBehaviorShapeData as _0x11ab34,resolveShapeTextEditorWrapStrategy as _0x432797,shouldAllowShapeTextEditorHostSizeShrink as _0x7ce441,shouldClipShapeTextDocument as _0x25e48c,useFormulaShapeToolbar as _0x1d16dd}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0xd5003,DrawingImageClipService as _0xe0e719,DrawingRenderService as _0x4d43e7,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1f5a6b,OBJECT_LIST_FLOATING_SECTION_ID as _0x34974e,ObjectListPanelBase as _0x313482,getCurrentUnitInfo as _0x4a469b,getObjectListPanelLabels as _0x11da8e,getObjectListPanelSectionIdForDrawingType as _0x450da7,getObjectListPanelTypeName as _0x4a9bd6,insertGroupObject as _0x435a76}from'@univerjs/drawing-ui';import{Fragment as _0xf1e5d2,jsx as _0x2b677f,jsxs as _0x27f2a4}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2cef26}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x1fbaec,SheetsDrawingGroupCopyPasteController as _0x12c68f,UniverSheetsDrawingUIPlugin as _0x56b5ca}from'@univerjs/sheets-drawing-ui';import{ObjectLayersIcon as _0x347bf2}from'@univerjs/icons';import{DrawingApplyType as _0x2640be,ISheetDrawingService as _0x57e4c3,RemoveSheetDrawingCommand as _0x10723d,SetDrawingApplyMutation as _0x6d6f97,SetDrawingArrangeCommand as _0x390f9f,SetSheetDrawingCommand as _0x1fd507,transformToAxisAlignPosition as _0x38f007,transformToDrawingPosition as _0x556f36}from'@univerjs/sheets-drawing';import{memo as _0x3adf0a,useEffect as _0x15fc40,useMemo as _0x293422,useReducer as _0x97793a,useState as _0x5a0562}from'react';import{DocSelectionManagerService as _0x1263d4}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x86b0a2,DocSelectionRenderService as _0x7b1fa8}from'@univerjs/docs-ui';function hn(_0xf21082,_0x240fd8){const _0x5eb3c1=_0x449a;let _0x2fe8ba={};for(let _0x5f1b45 of Object[_0x5eb3c1(0x293)](_0x240fd8)){let _0x11debf=_0x240fd8[_0x5f1b45],_0x45311d=_0xf21082[_0x5f1b45];if(_0x11debf!==void 0x0){if(_0x45311d===void 0x0){_0x2fe8ba[_0x5f1b45]=void 0x0;continue;}typeof _0x11debf==_0x5eb3c1(0x2cf)&&_0x11debf&&!Array[_0x5eb3c1(0x271)](_0x11debf)&&typeof _0x45311d==_0x5eb3c1(0x2cf)&&_0x45311d&&!Array[_0x5eb3c1(0x271)](_0x45311d)?_0x2fe8ba[_0x5f1b45]=hn(_0x45311d,_0x11debf):_0x2fe8ba[_0x5f1b45]=_0x45311d;}}return _0x2fe8ba;}const gn={'type':_0x8e0e3c[_0x43dbb9(0x82)],'id':_0x43dbb9(0xf3),'handler':(_0x2e3fb6,_0xa7a62d)=>{const _0x221cad=_0x43dbb9;let _0x4b73c4=_0x2e3fb6[_0x221cad(0x1bd)](_0x26a217),{unitId:_0x53a325,subUnitId:_0xc66f0c,shapeType:_0x3c2935,shapeId:_0x5d6e50,shapeData:_0x32d918,oldShapeJSON:_0x3903dc}=_0xa7a62d;if(!_0x4b73c4[_0x221cad(0x251)](_0x53a325,_0xc66f0c,_0x5d6e50))return!0x1;let _0x3e99f2=_0x2e3fb6[_0x221cad(0x1bd)](_0x4d9cac),_0x369666=_0x2e3fb6[_0x221cad(0x1bd)](_0x4830b5),{oldShapeType:_0x421706,oldShapeData:_0x422654={}}=_0x3903dc,_0xd32860=hn(_0x422654,_0x32d918||{}),_0x21966d={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x3c2935,'shapeData':_0x32d918}},_0x48a4c4={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x421706,'shapeData':_0xd32860}};return _0x3e99f2[_0x221cad(0x193)](_0x21966d['id'],_0x21966d[_0x221cad(0x118)])?(_0x369666[_0x221cad(0x278)]({'unitID':_0x53a325,'undoMutations':[_0x48a4c4],'redoMutations':[_0x21966d]}),!0x0):!0x1;}};function _n(_0x3790d7,_0x2e21ab,_0x3c111d,_0x106f77,_0x29067f,_0x210dda){const _0x302695=_0x43dbb9;let _0x160d51={'unitId':_0x2e21ab,'subUnitId':_0x3c111d,'shapeId':_0x106f77,'shapeData':_0x210dda,'oldShapeJSON':_0x29067f};return _0x3790d7[_0x302695(0x2d0)](gn['id'],_0x160d51);}function vn(_0x5bab22,_0x5e48b2,_0xab0945,_0x48f5ca,_0x36d2ce,_0x508021){const _0x48c629=_0x43dbb9;let _0x1bf7fa={'unitId':_0x5e48b2,'subUnitId':_0xab0945,'shapeId':_0x48f5ca,'shapeData':_0x508021,'oldShapeJSON':_0x36d2ce};return _0x5bab22[_0x48c629(0x2d0)](gn['id'],_0x1bf7fa);}function yn(_0x4d922d){'@babel/helpers - typeof';const _0x42cc13=_0x43dbb9;return yn=typeof Symbol==_0x42cc13(0x1ac)&&typeof Symbol['iterator']==_0x42cc13(0x136)?function(_0x39a3f){return typeof _0x39a3f;}:function(_0xfba3ca){const _0x4ee0f2=_0x42cc13;return _0xfba3ca&&typeof Symbol==_0x4ee0f2(0x1ac)&&_0xfba3ca[_0x4ee0f2(0x8c)]===Symbol&&_0xfba3ca!==Symbol[_0x4ee0f2(0x2a9)]?_0x4ee0f2(0x136):typeof _0xfba3ca;},yn(_0x4d922d);}function bn(_0x5ed4d1,_0x2554b2){const _0x14f895=_0x43dbb9;if(yn(_0x5ed4d1)!=_0x14f895(0x2cf)||!_0x5ed4d1)return _0x5ed4d1;var _0xfeb47=_0x5ed4d1[Symbol[_0x14f895(0x1cc)]];if(_0xfeb47!==void 0x0){var _0x794ace=_0xfeb47[_0x14f895(0x210)](_0x5ed4d1,_0x2554b2||_0x14f895(0x2ce));if(yn(_0x794ace)!='object')return _0x794ace;throw TypeError(_0x14f895(0x108));}return(_0x2554b2===_0x14f895(0x16a)?String:Number)(_0x5ed4d1);}function xn(_0x535207){const _0x438d83=_0x43dbb9;var _0x27a401=bn(_0x535207,_0x438d83(0x16a));return yn(_0x27a401)==_0x438d83(0x136)?_0x27a401:_0x27a401+'';}function Y(_0x45e9e2,_0x5ee48a,_0x33fd40){const _0x2dc04b=_0x43dbb9;return(_0x5ee48a=xn(_0x5ee48a))in _0x45e9e2?Object[_0x2dc04b(0xd4)](_0x45e9e2,_0x5ee48a,{'value':_0x33fd40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e9e2[_0x5ee48a]=_0x33fd40,_0x45e9e2;}function Sn(_0x15c52d,_0x5b4e88,_0x2881d8){var _0x1cf808;let _0x56007d=_0x11ab34(_0x15c52d,{..._0x5b4e88,'dataModel':{...(_0x1cf808=_0x5b4e88['dataModel'])==null?{}:_0x1cf808,..._0x2881d8?{'doc':_0x2881d8}:null}}),_0x45581d=_0x432797(_0x56007d);return{'clip':_0x25e48c(_0x56007d,_0x45581d),'wrapStrategy':_0x45581d};}var Cn=class extends _0x300c3f{constructor(_0x560cbe,_0x1768aa){const _0xda73e=_0x43dbb9;super(_0x560cbe,_0x1768aa),Y(this,'_props',void 0x0),Y(this,_0xda73e(0x17d),new _0xeb6567(()=>this[_0xda73e(0x15d)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,_0xda73e(0xaa),!0x0),Y(this,'_drawingType',_0x5d03f6[_0xda73e(0x23a)]),Y(this,_0xda73e(0x2aa),!0x0),this[_0xda73e(0x1b4)]={..._0x1768aa},this['_formulaAnimation']['setPresentation'](_0x1768aa[_0xda73e(0x1c2)],_0x1768aa[_0xda73e(0x2dc)]!==!0x1),this[_0xda73e(0x284)](),this[_0xda73e(0x10d)]();}['_init'](){const _0x289520=_0x43dbb9;this[_0x289520(0x184)][_0x289520(0x17c)](_0x4105ab=>{const _0x1459fd=_0x289520;this[_0x1459fd(0x2bf)](_0x4105ab);});}['setPrstGeom'](_0x1943fa){const _0x1a80ba=_0x43dbb9;this['_props'][_0x1a80ba(0x132)]=_0x1943fa;}[_0x43dbb9(0xc7)](_0xc8c20b){const _0x2ccd13=_0x43dbb9;this[_0x2ccd13(0x1b4)][_0x2ccd13(0x206)]=_0xc8c20b,this[_0x2ccd13(0x15d)](!0x0);}[_0x43dbb9(0xdc)](_0x99f1e5,_0x3e9e8a=!0x0){const _0x1a6ffe=_0x43dbb9;this[_0x1a6ffe(0x17d)][_0x1a6ffe(0x142)](_0x99f1e5,_0x3e9e8a),this[_0x1a6ffe(0x1b4)]['formulaPresentation']=_0x99f1e5,this[_0x1a6ffe(0x10d)](),this['makeDirty'](!0x0);}[_0x43dbb9(0x10d)](){const _0x246453=_0x43dbb9;let _0x311cd3=this[_0x246453(0x1b4)][_0x246453(0xc0)],_0x1eaf59=_0x311cd3[_0x246453(0xc1)](),_0x3f0d67=_0x5cbbbf(_0x1eaf59==null?void 0x0:_0x1eaf59[_0x246453(0x29c)]),_0x585098=_0x3f0d67==null?void 0x0:_0x3f0d67[_0x246453(0xe5)],_0x3af3e3=this['_formulaAnimation'][_0x246453(0xca)]();if(!_0x585098||_0x3af3e3[_0x246453(0x15f)]===0x0)return;_0x311cd3[_0x246453(0x104)]({'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]});let _0x5b85eb=_0x3a11fc({'documentData':_0x3af3e3[_0x246453(0x29a)](_0x267f6e=>_0x50262d(_0x585098,_0x267f6e)),'height':this[_0x246453(0x1dc)],'shapeData':_0x311cd3['getShapeData'](),'textRect':_0x311cd3[_0x246453(0x11a)]({'left':0x0,'top':0x0,'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]}),'width':this[_0x246453(0xf7)]});if(_0x5b85eb){var _0x18ac78;this[_0x246453(0x90)](_0x5b85eb[_0x246453(0xf7)],_0x5b85eb['height']),(_0x18ac78=this[_0x246453(0x17f)]())==null||(_0x18ac78=_0x18ac78[_0x246453(0x279)]())==null||_0x18ac78['debounceRefreshControls']();}}get[_0x43dbb9(0x25d)](){const _0x4dc28a=_0x43dbb9;return this[_0x4dc28a(0x1b4)]['unitId'];}get[_0x43dbb9(0x212)](){const _0x59f6fa=_0x43dbb9;return this['_props'][_0x59f6fa(0x212)];}[_0x43dbb9(0x2bf)](_0x1a6f3b){const _0x59f64e=_0x43dbb9;if(this[_0x59f64e(0x1b4)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x391dfe,height:_0x3d75fc}=this,{width:_0x5b3329=0x0,height:_0x34cd16=0x0}=_0x1a6f3b[_0x59f64e(0x1b6)],{left:_0x452af3=0x0,top:_0x4e3e08=0x0,right:_0x27db71=0x0,bottom:_0x4f79d8=0x0}=this[_0x59f64e(0x1b4)]['srcRect'],_0x59577c=_0x452af3,_0x1c2fb3=_0x4e3e08,_0x2e94b5=_0x27db71,_0x39664e=_0x4f79d8,_0x27f803=!0x1;if(_0x5b3329!==0x0&&_0x5b3329!==_0x391dfe){let _0x1491bb=_0x452af3/_0x5b3329,_0x1e145d=_0x27db71/_0x5b3329;_0x59577c=_0x391dfe*_0x1491bb,_0x2e94b5=_0x391dfe*_0x1e145d,_0x27f803=!0x0;}if(_0x34cd16!==0x0&&_0x34cd16!==_0x3d75fc){let _0x5d3af6=_0x4e3e08/_0x34cd16,_0x40cea9=_0x4f79d8/_0x34cd16;_0x1c2fb3=_0x3d75fc*_0x5d3af6,_0x39664e=_0x3d75fc*_0x40cea9,_0x27f803=!0x0;}_0x27f803&&this[_0x59f64e(0x20f)]({'left':_0x59577c,'top':_0x1c2fb3,'right':_0x2e94b5,'bottom':_0x39664e});}['setSrcRect'](_0x5b8dd8){const _0x1d73d2=_0x43dbb9;this[_0x1d73d2(0x1b4)][_0x1d73d2(0x2e8)]=_0x5b8dd8,this['makeDirty'](!0x0);}[_0x43dbb9(0x1a2)](_0x261c58){const _0x536903=_0x43dbb9;this[_0x536903(0x1b4)][_0x536903(0x1a5)]=_0x261c58,this['makeDirty'](!0x0);}set[_0x43dbb9(0x10c)](_0x3fb161){this['_transform']=_0x3fb161;}get[_0x43dbb9(0x10c)](){const _0x29edd9=_0x43dbb9;this[_0x29edd9(0x125)]||this['_setTransForm']();let _0x1882f9=this[_0x29edd9(0x125)]['clone']();return this[_0x29edd9(0x14e)](_0x1882f9);}get['shapeModel'](){const _0x592fc8=_0x43dbb9;return this[_0x592fc8(0x1b4)][_0x592fc8(0xc0)];}get['shapeId'](){const _0x1128b1=_0x43dbb9;return this['_props'][_0x1128b1(0xfc)];}get[_0x43dbb9(0x19d)](){return _0x842655['SHAPE'];}['_draw'](_0x34ee13,_0xbce4a9,_0x440648,_0x3e6f61){const _0x141f03=_0x43dbb9;let _0x51de90=this[_0x141f03(0x1b4)][_0x141f03(0xc0)];if(!_0x51de90||!_0xbce4a9)return;let _0x5dd801=_0x440648==null?this['width']:_0x440648,_0x2409d3=_0x3e6f61==null?this['height']:_0x3e6f61,_0x308d91={'shapeType':_0x51de90[_0x141f03(0x2ad)](),'width':_0x5dd801,'height':_0x2409d3},_0x52b487={'renderMode':_0x33d52f['Path'],'oKey':this[_0x141f03(0xe8)],'image':this[_0x141f03(0x1b4)][_0x141f03(0x1a5)],'angle':this[_0x141f03(0x2e1)]};_0x51de90['updateContext'](_0x308d91),_0x34ee13['save']();let _0x5de896={'top':0x0,'left':0x0,'width':_0x5dd801,'height':_0x2409d3};_0x51de90['render'](_0x34ee13,_0x5de896,_0x52b487),_0x34ee13[_0x141f03(0x22f)]();let _0x5056b4=_0x51de90[_0x141f03(0xc1)](),_0x483950=_0x51de90[_0x141f03(0x11a)](_0x5de896),_0x2895b3=_0x51de90[_0x141f03(0xed)]();if(_0x5056b4&&_0x483950&&!_0x2895b3){_0x34ee13[_0x141f03(0x1fd)](),this[_0x141f03(0xde)]()['flipX']&&_0x34ee13[_0x141f03(0x20b)](-0x1,0x1);let _0x4bafcb=_0x5dd801/0x2,_0x2822d0=_0x2409d3/0x2;_0x34ee13[_0x141f03(0x167)](-_0x4bafcb,-_0x2822d0),_0x34ee13[_0x141f03(0xd8)](),this['_drawShapeText'](_0x34ee13,_0x5056b4,_0x483950),_0x34ee13[_0x141f03(0x22f)]();}}['getDrawingPoints'](_0x5d47e8){}['_drawShapeText'](_0x2f9156,_0x128f56,_0x481377){const _0x5079ba=_0x43dbb9;var _0x15c167;this[_0x5079ba(0x1b4)][_0x5079ba(0x206)]||(!((_0x15c167=_0x128f56[_0x5079ba(0x29c)])!=null&&_0x15c167[_0x5079ba(0xe5)])&&_0x5079ba(0x1ed)in _0x128f56&&_0x128f56[_0x5079ba(0x1ed)]===!0x1?this['_drawSimpleText'](_0x2f9156,_0x128f56,_0x481377):this[_0x5079ba(0xc4)](_0x2f9156,_0x128f56,_0x481377));}['_drawSimpleText'](_0x47de01,_0x4e878d,_0x5cfaa1){const _0x47591a=_0x43dbb9;var _0x1d8187;this[_0x47591a(0xc4)](_0x47de01,{..._0x4e878d,'text':(_0x1d8187=_0x4e878d[_0x47591a(0x199)])==null?'':_0x1d8187,'dataModel':{'doc':_0x12e116(_0x4e878d,_0x47591a(0x24e)+this[_0x47591a(0xe8)])}},_0x5cfaa1);}[_0x43dbb9(0xc4)](_0x5efc12,_0x5a884c,_0x3f6287){const _0x330a02=_0x43dbb9;_0xe06053(_0x5efc12,this[_0x330a02(0x17d)],(_0x33cbab,_0x21b403)=>{const _0x35136a=_0x330a02;this[_0x35136a(0x2b4)](_0x33cbab,_0x5a884c,_0x3f6287,_0x21b403);});}['_drawRichTextLayer'](_0x3074c3,_0x2476d5,_0x92c6ed,_0xd97716){const _0x1f90e3=_0x43dbb9;var _0x4da2d9,_0xa2abcc;let _0x1e1392=this[_0x1f90e3(0x1b4)][_0x1f90e3(0x183)];if(!_0x2476d5[_0x1f90e3(0x29c)]||!_0x1e1392)return;let _0x7cd7a2=_0x5cbbbf(_0x2476d5[_0x1f90e3(0x29c)]);if(!_0x7cd7a2)return;let _0x1e5228=_0x7cd7a2['doc'];if(!_0x1e5228)return;let _0x16fdd0=_0x50262d(_0x1e5228,_0xd97716),_0x452eee=(_0x4da2d9=_0x7cd7a2['va'])==null?_0x3d0a33[_0x1f90e3(0x116)]:_0x4da2d9,_0x204ca4=(_0xa2abcc=_0x7cd7a2['ha'])==null?_0x1bf681['LEFT']:_0xa2abcc,_0x53d39c=Sn(this[_0x1f90e3(0x1b4)]['shapeModel']['getShapeData'](),_0x2476d5,_0x16fdd0),_0x5852b0=_0x2476d5[_0x1f90e3(0xd1)],_0x5574d6=new _0x10f73c(_0x18b9c3(_0x16fdd0,{'isHorizontal':_0x5852b0!==!0x1,'textRect':_0x92c6ed,'verticalAlign':_0x452eee,'horizontalAlign':_0x204ca4,'wrapStrategy':_0x53d39c['wrapStrategy']})),_0x37ffac=new _0x36f5ae(_0x5574d6),_0x5a23e2=_0x475752[_0x1f90e3(0x9c)](_0x37ffac,_0x1e1392);_0x5a23e2[_0x1f90e3(0x264)]();let _0x10a7c1=_0x5a23e2[_0x1f90e3(0x175)]()[_0x1f90e3(0x1d1)],_0x470bf3=_0x2feb6a({'contentHeight':_0x10a7c1,'verticalAlign':_0x452eee,'viewportHeight':_0x92c6ed[_0x1f90e3(0x1dc)]});_0x5574d6['updateDocumentStyle']({'pageSize':{'width':_0x5852b0===!0x1?_0x92c6ed[_0x1f90e3(0x1dc)]:_0x92c6ed[_0x1f90e3(0xf7)],'height':_0x470bf3[_0x1f90e3(0x232)]}}),_0x5574d6['updateDocumentDataMargin']({'t':_0x470bf3[_0x1f90e3(0x85)]}),_0x5a23e2[_0x1f90e3(0x264)]();let _0x3bc687=new _0x1a519e(_0x1f90e3(0x192)+this[_0x1f90e3(0xe8)],_0x5a23e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1f90e3(0x15d)](!0x0)});_0x3bc687['resize'](_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x232)]),_0x3074c3[_0x1f90e3(0x1fd)](),_0x3074c3[_0x1f90e3(0xd5)](_0x92c6ed[_0x1f90e3(0x11f)],_0x92c6ed['top']),_0x53d39c[_0x1f90e3(0x2db)]&&(_0x3074c3[_0x1f90e3(0xd8)](),_0x3074c3[_0x1f90e3(0x16c)](0x0,_0x470bf3[_0x1f90e3(0xd3)],_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x21c)]),_0x3074c3[_0x1f90e3(0x2db)]()),_0x470bf3[_0x1f90e3(0x9b)]&&_0x3074c3[_0x1f90e3(0xd5)](0x0,_0x470bf3[_0x1f90e3(0x9b)]),_0x3bc687[_0x1f90e3(0x1f3)](_0x3074c3),_0x3074c3[_0x1f90e3(0x22f)](),_0x3bc687[_0x1f90e3(0x2dd)](),_0x5a23e2['dispose'](),_0x37ffac[_0x1f90e3(0x2dd)](),_0x5574d6[_0x1f90e3(0x2dd)]();}[_0x43dbb9(0x2b6)](_0xc0213a,_0x38751c,_0x1bc156=!0x1){const _0x5cd1ec=_0x43dbb9;if(!this[_0x5cd1ec(0x2cc)])return this[_0x5cd1ec(0x15d)](!0x1),this;let {width:_0x1c77f6,height:_0x383abb,left:_0x24cdb8,top:_0x548d5f}=this,_0x247496=this[_0x5cd1ec(0x272)]();if(_0x1c77f6=_0x247496[_0x5cd1ec(0xf7)],_0x383abb=_0x247496[_0x5cd1ec(0x1dc)],_0x24cdb8=_0x247496['left'],_0x548d5f=_0x247496[_0x5cd1ec(0x16e)],this['isRender'](_0x38751c)){let {top:_0x17832c,left:_0x8f72ec,bottom:_0x5ef7a4,right:_0x2e885c}=_0x38751c[_0x5cd1ec(0xc6)];if(_0x1c77f6+this[_0x5cd1ec(0x185)]+_0x24cdb8<_0x8f72ec||_0x2e885c<_0x24cdb8||_0x383abb+this[_0x5cd1ec(0x185)]+_0x548d5f<_0x17832c||_0x5ef7a4<_0x548d5f)return this;}let _0x218577=_0x24cdb8+_0x1c77f6/0x2,_0x3e5f64=_0x548d5f+_0x383abb/0x2,_0x51ad4e=this[_0x5cd1ec(0x10c)]['getMatrix']();if(this['_props']['isEditing']){let _0x113146=this[_0x5cd1ec(0xde)](),_0x3c6d0e=new _0x112a4b();_0x3c6d0e[_0x5cd1ec(0x91)]({..._0x113146}),_0x51ad4e=_0x3c6d0e['getMatrix']();}return _0xc0213a[_0x5cd1ec(0x1fd)](),this[_0x5cd1ec(0x1b4)][_0x5cd1ec(0xc0)]['isRenderLinePointsMode']===!0x0||_0xc0213a[_0x5cd1ec(0x10c)](_0x51ad4e[0x0],_0x51ad4e[0x1],_0x51ad4e[0x2],_0x51ad4e[0x3],_0x218577,_0x3e5f64),this[_0x5cd1ec(0xd0)](_0xc0213a,_0x38751c,_0x1c77f6,_0x383abb),_0xc0213a[_0x5cd1ec(0x22f)](),this[_0x5cd1ec(0x15d)](!0x1),this;}['getInverseCoord'](_0x3d42e1){const _0x470cdd=_0x43dbb9;let {left:_0x4300dd,top:_0x575b99,width:_0xb606b1,height:_0x52a059}=this[_0x470cdd(0x272)](),_0x81ff63=this[_0x470cdd(0x10c)][_0x470cdd(0x1b9)](),_0x2ef11f=_0x4300dd+_0xb606b1/0x2,_0x16f7bf=_0x575b99+_0x52a059/0x2,_0x5c647e=new _0x112a4b([_0x81ff63[0x0],_0x81ff63[0x1],_0x81ff63[0x2],_0x81ff63[0x3],_0x2ef11f,_0x16f7bf]),_0x29f1c7=this[_0x470cdd(0x1d9)]();return(this[_0x470cdd(0xa8)]&&(_0x29f1c7==null?void 0x0:_0x29f1c7[_0x470cdd(0x19d)])===_0x842655[_0x470cdd(0xf6)]?_0x29f1c7[_0x470cdd(0x8b)]['multiply'](_0x5c647e):_0x5c647e)['invert']()[_0x470cdd(0x22c)](_0x3d42e1);}[_0x43dbb9(0x102)](_0x36a92d){const _0x308236=_0x43dbb9;let {left:_0x5c6adf,top:_0x37063e,width:_0x209179,height:_0x4b4dc5}=this[_0x308236(0x272)](),_0x4171bd=_0x5c6adf+_0x209179/0x2,_0x401f2a=_0x37063e+_0x4b4dc5/0x2,_0x2804f2=this['transform'][_0x308236(0x1b9)](),_0xfda5d6=new _0x112a4b([_0x2804f2[0x0],_0x2804f2[0x1],_0x2804f2[0x2],_0x2804f2[0x3],_0x4171bd,_0x401f2a]),_0x2c8438=this['getParent'](),_0x286431=(this[_0x308236(0xa8)]&&(_0x2c8438==null?void 0x0:_0x2c8438[_0x308236(0x19d)])===_0x842655[_0x308236(0xf6)]?_0x2c8438[_0x308236(0x8b)]['multiply'](_0xfda5d6):_0xfda5d6)[_0x308236(0x23b)]()[_0x308236(0x22c)](_0x36a92d),_0x3917cd=_0x209179/0x2,_0x4a550d=_0x4b4dc5/0x2,_0x281148=this[_0x308236(0x1b4)]['shapeModel'];return _0x281148&&_0x281148[_0x308236(0xed)]()?_0x281148[_0x308236(0x29d)](_0x286431['x'],_0x286431['y'],_0x209179,_0x4b4dc5):_0x286431['x']>=-_0x3917cd-this[_0x308236(0x185)]/0x2&&_0x286431['x']<=_0x3917cd+this[_0x308236(0x185)]/0x2&&_0x286431['y']>=-_0x4a550d-this[_0x308236(0x185)]/0x2&&_0x286431['y']<=_0x4a550d+this[_0x308236(0x185)]/0x2;}[_0x43dbb9(0x2dd)](){const _0x2c6f94=_0x43dbb9;this[_0x2c6f94(0x17d)][_0x2c6f94(0x2dd)](),this[_0x2c6f94(0x1b4)][_0x2c6f94(0xc0)]=null,super[_0x2c6f94(0x2dd)]();}},wn=class extends _0x300c3f{constructor(_0x50d5ce,_0x1564b0){const _0x59cfbb=_0x43dbb9;super(_0x50d5ce,_0x1564b0),Y(this,_0x59cfbb(0x249),null),Y(this,_0x59cfbb(0x1eb),null),Y(this,_0x59cfbb(0x238),null),Y(this,_0x59cfbb(0x250),null),_0x1564b0&&this[_0x59cfbb(0x152)](_0x1564b0);}[_0x43dbb9(0x1f1)](){const _0x18621e=_0x43dbb9;return{'unitId':this[_0x18621e(0x238)],'subUnitId':this[_0x18621e(0x250)],'drawingId':this[_0x18621e(0x249)]};}[_0x43dbb9(0x152)](_0x202d4b){const _0x5b4190=_0x43dbb9;_0x202d4b[_0x5b4190(0xfc)]!==void 0x0&&(this['_shapeId']=_0x202d4b[_0x5b4190(0xfc)]),_0x202d4b[_0x5b4190(0x18a)]!==void 0x0&&(this[_0x5b4190(0x1eb)]=_0x202d4b['adjName']),_0x202d4b['unitId']!==void 0x0&&(this[_0x5b4190(0x238)]=_0x202d4b[_0x5b4190(0x25d)]),_0x202d4b[_0x5b4190(0x212)]!==void 0x0&&(this[_0x5b4190(0x250)]=_0x202d4b['subUnitId']),this[_0x5b4190(0x1c7)]({'width':_0x202d4b['width'],'height':_0x202d4b[_0x5b4190(0x1dc)]});}[_0x43dbb9(0xd0)](_0x5f54dc){const _0x4d0c43=_0x43dbb9;_0x536c54['drawWith'](_0x5f54dc,{'radius':_0x2bc8ec[_0x4d0c43(0x86)],'fill':_0x2bc8ec['adjHandleFill'],'stroke':_0x2bc8ec[_0x4d0c43(0x140)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x35d0eb,_0x29a260){return function(_0x4cce1a,_0x467a77){_0x29a260(_0x4cce1a,_0x467a77,_0x35d0eb);};}function Z(_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5){const _0x46ed12=_0x43dbb9;var _0xb94b9d=arguments[_0x46ed12(0x15f)],_0xbf3293=_0xb94b9d<0x3?_0x28b08d:_0x312ae5===null?_0x312ae5=Object[_0x46ed12(0x297)](_0x28b08d,_0x6606dd):_0x312ae5,_0x583a33;if(typeof Reflect=='object'&&typeof Reflect[_0x46ed12(0x280)]==_0x46ed12(0x1ac))_0xbf3293=Reflect[_0x46ed12(0x280)](_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5);else{for(var _0x1c2001=_0x6efa4b[_0x46ed12(0x15f)]-0x1;_0x1c2001>=0x0;_0x1c2001--)(_0x583a33=_0x6efa4b[_0x1c2001])&&(_0xbf3293=(_0xb94b9d<0x3?_0x583a33(_0xbf3293):_0xb94b9d>0x3?_0x583a33(_0x28b08d,_0x6606dd,_0xbf3293):_0x583a33(_0x28b08d,_0x6606dd))||_0xbf3293);}return _0xb94b9d>0x3&&_0xbf3293&&Object[_0x46ed12(0xd4)](_0x28b08d,_0x6606dd,_0xbf3293),_0xbf3293;}let Q=class extends _0x4760b3{constructor(_0x55d103,_0x51ba7f,_0xed3145,_0x153aee,_0x81a4d1,_0x3ce517){const _0x36956c=_0x43dbb9;super(),this['_drawingManagerService']=_0x55d103,this[_0x36956c(0x1ff)]=_0x51ba7f,this[_0x36956c(0x1ca)]=_0xed3145,this[_0x36956c(0x12a)]=_0x153aee,this[_0x36956c(0xa7)]=_0x81a4d1,this[_0x36956c(0x221)]=_0x3ce517,Y(this,_0x36956c(0x27e),new Map()),this[_0x36956c(0x11b)](this[_0x36956c(0x221)][_0x36956c(0x8e)][_0x36956c(0x28f)](_0x38558c=>{const _0x16f57c=_0x36956c;var _0x1fab09;(_0x1fab09=this[_0x16f57c(0x27e)][_0x16f57c(0x1bd)](this[_0x16f57c(0x159)](_0x38558c[_0x16f57c(0x25d)],_0x38558c['subUnitId'],_0x38558c[_0x16f57c(0xfc)])))==null||_0x1fab09[_0x16f57c(0x200)](_0x243466=>_0x243466['setFormulaPresentation'](_0x38558c['presentation'],_0x38558c['animationEnabled']));})),this[_0x36956c(0x11b)](this[_0x36956c(0xcc)][_0x36956c(0xd6)][_0x36956c(0x28f)](_0xb98716=>{const _0x295166=_0x36956c;_0xb98716[_0x295166(0x200)](_0x3a05e9=>{const _0x58a801=_0x295166;this[_0x58a801(0x221)][_0x58a801(0x252)]({'unitId':_0x3a05e9[_0x58a801(0x25d)],'subUnitId':_0x3a05e9[_0x58a801(0x212)],'shapeId':_0x3a05e9[_0x58a801(0x1a9)]}),this[_0x58a801(0x27e)]['delete'](this[_0x58a801(0x159)](_0x3a05e9['unitId'],_0x3a05e9[_0x58a801(0x212)],_0x3a05e9['drawingId']));});}));}['renderDrawingShape'](_0x4ce5c5,_0x3b0918,_0x3235e4){const _0x2cbb1d=_0x43dbb9;let {transform:_0xe63bd1,drawingType:_0x4fc7d6,srcRect:_0x1bfa8b,prstGeom:_0x371562,groupId:_0x2c12ed,unitId:_0x43f1d5,subUnitId:_0x864554,drawingId:_0x345888,isMultiTransform:_0x5443a3,transforms:_0xcb0612,hidden:_0x31ed12,selectable:_0x256c48}=_0x4ce5c5;if(_0x4fc7d6!==_0x5d03f6['DRAWING_SHAPE']||!this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x230)]()||_0xe63bd1==null)return;let _0x31823e=this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x2d3)]();_0x31823e&&_0x3b0918[_0x2cbb1d(0x129)](_0x37ad89);let _0x29de37=_0x5443a3&&_0xcb0612?_0xcb0612:[_0xe63bd1],_0x582364=[];for(let _0x4c9d3e of _0x29de37){let {left:_0x3c121a,top:_0x463343,width:_0x13112a,height:_0x5e5f59,angle:_0x5ede6b,flipX:_0x43698c,flipY:_0x5de83a,skewX:_0xd8bfa7,skewY:_0x4d9803}=_0x4c9d3e,_0x466da9=_0x29de37[_0x2cbb1d(0x253)](_0x4c9d3e),_0x47e263=_0x7f2912({'unitId':_0x43f1d5,'subUnitId':_0x864554,'drawingId':_0x345888},_0x5443a3?_0x466da9:void 0x0),_0x3bd7d5=_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263);if(_0x3bd7d5!=null){let _0x206f75={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x3bd7d5 instanceof Cn&&this['refreshFormulaPresentation'](_0x3bd7d5,_0x206f75),_0x3bd7d5[_0x2cbb1d(0x1c7)]({'left':_0x3c121a,'top':_0x463343,'width':_0x13112a,'height':_0x5e5f59,'angle':_0x5ede6b,'flipX':_0x43698c,'flipY':_0x5de83a,'skewX':_0xd8bfa7,'skewY':_0x4d9803});continue;}let _0x48ef02=this['_drawingManagerService']['getDrawingOrder'](_0x43f1d5,_0x864554),_0x3f6db4=_0x48ef02[_0x2cbb1d(0x253)](_0x345888);if(_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263)||!this['_drawingManagerService'][_0x2cbb1d(0x230)]())continue;let _0x5d2210=this['_sheetsShapeService']['getShapeModel'](_0x43f1d5,_0x864554,_0x345888);if(!_0x5d2210)continue;let _0x1f249e=_0x1f7f23(_0x5d2210[_0x2cbb1d(0x2ad)]()),_0x27a77c=_0x5d2210['getShapeData']()[_0x2cbb1d(0x17a)],_0x33af18={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x27a77c&&this[_0x2cbb1d(0x221)][_0x2cbb1d(0x21e)](_0x33af18,_0x27a77c);let _0x37bf9e=new Cn(_0x47e263,{..._0x1f249e?{..._0x4c9d3e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x4c9d3e},'zIndex':_0x3f6db4===-0x1?_0x48ef02['length']-0x1:_0x3f6db4,'shapeModel':_0x5d2210,'localeService':this['_localeService'],'shapeId':_0x345888,'unitId':_0x43f1d5,'subUnitId':_0x864554,'visible':_0x31ed12!==!0x0,'evented':_0x256c48!==!0x1,'formulaPresentation':_0x27a77c?this['_shapeFormulaService'][_0x2cbb1d(0x198)](_0x33af18):void 0x0,'animateFormulaPresentation':(_0x27a77c==null?void 0x0:_0x27a77c[_0x2cbb1d(0x229)])!==!0x1});if(_0x27a77c){var _0x1ae52a;let _0x5b2d0f=this[_0x2cbb1d(0x159)](_0x43f1d5,_0x864554,_0x345888),_0x46f6ec=(_0x1ae52a=this[_0x2cbb1d(0x27e)][_0x2cbb1d(0x1bd)](_0x5b2d0f))==null?new Set():_0x1ae52a;_0x46f6ec[_0x2cbb1d(0x10b)](_0x37bf9e),this[_0x2cbb1d(0x27e)][_0x2cbb1d(0xd9)](_0x5b2d0f,_0x46f6ec);}_0x3b0918[_0x2cbb1d(0xe9)](_0x37bf9e,_0x11332b),_0x31823e&&_0x3b0918[_0x2cbb1d(0x2bb)](_0x37bf9e),_0x2c12ed&&_0x435a76({'drawingId':_0x2c12ed,'unitId':_0x43f1d5,'subUnitId':_0x864554},_0x37bf9e,_0x3b0918,this[_0x2cbb1d(0xcc)]),_0x371562!=null&&_0x37bf9e['setPrstGeom'](_0x371562),_0x1bfa8b!=null&&_0x37bf9e[_0x2cbb1d(0x20f)](_0x1bfa8b);let _0x574063=this[_0x2cbb1d(0xaf)](_0x37bf9e,_0x5d2210[_0x2cbb1d(0x282)]());if(_0x574063){var _0x3c0255;_0x3235e4==null||(_0x3c0255=_0x3235e4['resourceCollector'])==null||_0x3c0255[_0x2cbb1d(0x10b)](_0x574063);}_0x582364[_0x2cbb1d(0x241)](_0x37bf9e);}return _0x582364;}[_0x43dbb9(0x159)](_0x83f3d6,_0x139342,_0x40ef3f){return _0x83f3d6+'\x00'+_0x139342+'\x00'+_0x40ef3f;}[_0x43dbb9(0xac)](_0x789d4e,_0x35d0e2){const _0x43ba6e=_0x43dbb9;let _0x4abe64=this[_0x43ba6e(0x1ff)][_0x43ba6e(0x251)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2['subUnitId'],_0x35d0e2[_0x43ba6e(0xfc)]),_0x496639=_0x4abe64==null?void 0x0:_0x4abe64['getShapeData']()[_0x43ba6e(0x17a)],_0x402aed=this[_0x43ba6e(0x159)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2[_0x43ba6e(0x212)],_0x35d0e2[_0x43ba6e(0xfc)]);if(_0x496639){var _0x322f8e;this[_0x43ba6e(0x221)]['register'](_0x35d0e2,_0x496639);let _0xc0bef5=(_0x322f8e=this[_0x43ba6e(0x27e)][_0x43ba6e(0x1bd)](_0x402aed))==null?new Set():_0x322f8e;_0xc0bef5[_0x43ba6e(0x10b)](_0x789d4e),this[_0x43ba6e(0x27e)]['set'](_0x402aed,_0xc0bef5);}else{var _0x2f1b39;this[_0x43ba6e(0x221)]['unregister'](_0x35d0e2),(_0x2f1b39=this[_0x43ba6e(0x27e)]['get'](_0x402aed))==null||_0x2f1b39[_0x43ba6e(0x2b1)](_0x789d4e);}_0x789d4e['setFormulaPresentation'](_0x496639?this[_0x43ba6e(0x221)][_0x43ba6e(0x198)](_0x35d0e2):void 0x0,(_0x496639==null?void 0x0:_0x496639[_0x43ba6e(0x229)])!==!0x1);}[_0x43dbb9(0x204)](_0x474d62){const _0x13b43e=_0x43dbb9;let _0x161fbe=_0x474d62['shapeModel'][_0x13b43e(0x282)](),_0x2ad637=_0x161fbe[_0x13b43e(0x1ee)];if(!_0x2ad637||_0x2ad637['fillType']!==_0x27d461['PictureFill']||!_0x2ad637[_0x13b43e(0x2e2)]){_0x474d62[_0x13b43e(0x1a2)](void 0x0);return;}this[_0x13b43e(0xaf)](_0x474d62,_0x161fbe);}[_0x43dbb9(0xaf)](_0x2dec07,_0x183dbc){const _0x49b914=_0x43dbb9;var _0x40df7b;let _0x3eab9a=_0x183dbc['fill'];if(!_0x3eab9a||_0x3eab9a[_0x49b914(0x242)]!==_0x27d461['PictureFill']||!_0x3eab9a[_0x49b914(0x2e2)])return;let _0x5c212c=_0x3eab9a[_0x49b914(0x2e2)],_0x22e368=(_0x40df7b=_0x3eab9a['fillImageSourceType'])==null?_0x283528[_0x49b914(0x277)]:_0x40df7b,_0x46d619=this[_0x49b914(0x12a)][_0x49b914(0x1b7)](_0x5c212c,_0x22e368);if(_0x46d619){_0x2dec07[_0x49b914(0x1a2)](_0x46d619);return;}return this['_loadAndSetImage'](_0x2dec07,_0x5c212c,_0x22e368);}async[_0x43dbb9(0x13b)](_0x3af8da,_0x4b503b,_0x9e9e80){const _0x48a7fa=_0x43dbb9;let _0x5c922f;try{if(_0x9e9e80===_0x283528['UUID'])_0x5c922f=await this[_0x48a7fa(0x12a)][_0x48a7fa(0x13a)](_0x4b503b);else{if(_0x9e9e80===_0x283528['URL'])try{_0x5c922f=await this[_0x48a7fa(0xa7)][_0x48a7fa(0x13a)](_0x4b503b);}catch{_0x5c922f=_0x4b503b;}else _0x5c922f=_0x4b503b;}}catch(_0x45633a){console[_0x48a7fa(0x2be)](_0x48a7fa(0x156),_0x45633a);return;}await new Promise(_0x1f3695=>{const _0x2cd3c3=_0x48a7fa;let _0x4caeab=new window['Image']();_0x4caeab['onload']=()=>{const _0x4158ba=_0x449a;this['_imageIoService'][_0x4158ba(0x93)](_0x4b503b,_0x9e9e80,_0x4caeab),_0x3af8da[_0x4158ba(0x1a2)](_0x4caeab),_0x1f3695();},_0x4caeab[_0x2cd3c3(0x2a6)]=()=>{const _0x747182=_0x2cd3c3;console[_0x747182(0x2be)](_0x747182(0x2a7),_0x4b503b),_0x1f3695();},_0x4caeab['src']=_0x5c922f;});}};Q=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0xa3717a)),X(0x3,_0x5dd91b),X(0x4,_0x488e09),X(0x5,_0x450bf3(_0xe57842))],Q);let Tn=class extends _0x4760b3{constructor(_0x476c97,_0x3a3d0e,_0x2761bb,_0x483416,_0x28ea5,_0x1b9e75){const _0x56bbd0=_0x43dbb9;super(),this[_0x56bbd0(0xcc)]=_0x476c97,this['_sheetsShapeService']=_0x3a3d0e,this[_0x56bbd0(0x87)]=_0x2761bb,this[_0x56bbd0(0x2d9)]=_0x483416,this['_univerInstanceService']=_0x28ea5,this[_0x56bbd0(0x285)]=_0x1b9e75,Y(this,_0x56bbd0(0x14f),null),Y(this,_0x56bbd0(0x238),null),Y(this,'_subUnitId',null),Y(this,_0x56bbd0(0x20c),void 0x0),Y(this,_0x56bbd0(0x176),[]),Y(this,_0x56bbd0(0x260),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x56bbd0(0x2b2),0x0),Y(this,'_baseShapeHeight',0x0),Y(this,_0x56bbd0(0x258),!0x1),Y(this,_0x56bbd0(0x257),void 0x0),Y(this,_0x56bbd0(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x56bbd0(0x157),!0x1),this[_0x56bbd0(0x254)](),this[_0x56bbd0(0x235)]();}[_0x43dbb9(0x1ec)](_0x20f947,_0x3a311b,_0x1c2948){const _0x54841e=_0x43dbb9;let _0x4a3a14=this[_0x54841e(0x1ff)][_0x54841e(0x251)](_0x20f947,_0x3a311b,_0x1c2948);if(_0x4a3a14)return _0x4a3a14[_0x54841e(0x275)]();}[_0x43dbb9(0x2e3)](){const _0x54b137=_0x43dbb9;this[_0x54b137(0x1e5)]();}['refreshAdjustControls'](){const _0x188c33=_0x43dbb9;this[_0x188c33(0x246)](!0x0);}[_0x43dbb9(0x18b)](_0x8842cf){this['_isShouldShowDrawingShapeAdjust']=_0x8842cf;}['_getShapeAdjustInfosById'](_0xf99ed0,_0x40b1e0,_0x1320b2,_0x1bae36){const _0x2a12d5=_0x43dbb9;let _0x34a455=this[_0x2a12d5(0x1ff)]['getShapeModel'](_0xf99ed0,_0x40b1e0,_0x1320b2);if(_0x34a455)return _0x34a455[_0x2a12d5(0x2ae)](_0x1bae36);}[_0x43dbb9(0x21b)](_0x1da428=!0x1){const _0x303d30=_0x43dbb9;if(this[_0x303d30(0x238)]===null||this[_0x303d30(0x250)]===null||this['_activeShapeId']===null)return;let _0x439efd=this[_0x303d30(0x87)]['getRenderById'](this[_0x303d30(0x238)]);if(!_0x439efd||!_0x439efd[_0x303d30(0x2ea)](_0x392ff0)[_0x303d30(0xa4)]())return;let {scene:_0x4d76be}=_0x439efd,_0x45cc11={'unitId':this[_0x303d30(0x238)],'subUnitId':this[_0x303d30(0x250)],'drawingId':this[_0x303d30(0x14f)]},_0x13788b=this[_0x303d30(0xcc)][_0x303d30(0x171)](_0x45cc11),{transform:_0x5104fe}=_0x13788b;if(!_0x5104fe||_0x13788b[_0x303d30(0x2cb)]!==_0x5d03f6[_0x303d30(0x23a)])return;let {left:_0xc88240,top:_0x33867d,width:_0xfd214f,height:_0x27d4bb,flipX:_0x12463b,flipY:_0x5456ea,angle:_0x599c85=0x0}=_0x5104fe;if(_0xc88240===void 0x0||_0x33867d===void 0x0)return;_0x1da428&&(this[_0x303d30(0x20c)]=this[_0x303d30(0x1ec)](this[_0x303d30(0x238)],this['_subUnitId'],this[_0x303d30(0x14f)]));let _0x418380=this[_0x303d30(0x20c)];for(let _0x376a77=0x0;_0x376a77<_0x418380[_0x303d30(0x15f)];_0x376a77++){let _0x2e808f=_0x418380[_0x376a77],_0x5b29d6=_0x2e808f['x'],_0x200390=_0x2e808f['y'];if(_0x12463b&&(_0x5b29d6=(_0xfd214f||0x0)-_0x5b29d6),_0x5456ea&&(_0x200390=(_0x27d4bb||0x0)-_0x200390),_0x599c85!==0x0){let _0x386428=(_0xfd214f||0x0)/0x2,_0x1aa337=(_0x27d4bb||0x0)/0x2,_0x5249fd=_0x599c85*Math['PI']/0xb4,_0x1294f7=Math['cos'](_0x5249fd),_0x1ab3da=Math[_0x303d30(0x1e6)](_0x5249fd),_0x7856c8=_0x5b29d6-_0x386428,_0x5e1e83=_0x200390-_0x1aa337;_0x5b29d6=_0x386428+(_0x7856c8*_0x1294f7-_0x5e1e83*_0x1ab3da),_0x200390=_0x1aa337+(_0x7856c8*_0x1ab3da+_0x5e1e83*_0x1294f7);}let _0x3ebbb5={'x':_0x5b29d6,'y':_0x200390,'adjName':_0x2e808f[_0x303d30(0x18a)]};this[_0x303d30(0xcb)](_0x4d76be,_0x3ebbb5,_0x3ebbb5[_0x303d30(0x18a)],_0xc88240,_0x33867d,this['_unitId'],this[_0x303d30(0x250)]);}}['_updateShapeAdjustControls'](_0x246aa4=!0x1){const _0x590979=_0x43dbb9;_0x246aa4&&(this[_0x590979(0x1e5)](),this[_0x590979(0x21b)](_0x246aa4));}['_addShapeAdjustControl'](_0x154565,_0x4cd779,_0x1fd94f,_0x5387d3,_0x3e6523,_0x4312ea,_0x8646d0){const _0x50c1c8=_0x43dbb9;if(!this[_0x50c1c8(0x14f)])return;let _0x315b8d=_0x154565[_0x50c1c8(0x1de)]('shape-adjust-point-'+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f);if(_0x315b8d){_0x315b8d[_0x50c1c8(0x1c7)]({'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)]});return;}let _0x1bba71={'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)],'adjName':_0x1fd94f,'shapeId':this[_0x50c1c8(0x14f)],'unitId':_0x4312ea,'subUnitId':_0x8646d0,'width':_0x2bc8ec[_0x50c1c8(0x86)]+0x8,'height':_0x2bc8ec['adjHandleSize']+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0},_0x35f048=new wn(_0x50c1c8(0xe3)+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f,_0x1bba71);this[_0x50c1c8(0x176)][_0x50c1c8(0x241)](_0x35f048),this[_0x50c1c8(0x2e0)](_0x35f048,_0x154565,_0x1fd94f),_0x154565[_0x50c1c8(0xe9)](_0x35f048,_0x11332b+0x1);}[_0x43dbb9(0x1e5)](){const _0x1b00d2=_0x43dbb9;this['_shapes'][_0x1b00d2(0x15f)]!==0x0&&(this[_0x1b00d2(0x176)][_0x1b00d2(0x200)](_0xed133b=>{const _0x48b8b4=_0x1b00d2;_0xed133b[_0x48b8b4(0x2dd)]();}),this['_shapes']=[]);}[_0x43dbb9(0x21a)](){this['_createShapeAdjustControls']();}[_0x43dbb9(0x15c)](_0x1ff72f,_0x2c5bbf){const _0xd664f0=_0x43dbb9;var _0x2fa970;let _0x29d2ba={'x':0x0,'y':0x0};if(!_0x1ff72f||!_0x2c5bbf)return _0x29d2ba;let _0x2b9dcb=this['_renderManagerService'][_0xd664f0(0x19c)](_0x1ff72f);if(!_0x2b9dcb||!_0x2b9dcb[_0xd664f0(0x2ea)](_0x392ff0)[_0xd664f0(0x188)](_0x2c5bbf))return _0x29d2ba;let _0x58fc10=_0x2b9dcb[_0xd664f0(0x2ea)](_0xdbee74),_0xc13026=_0x58fc10==null?void 0x0:_0x58fc10['getCurrentScrollState']();if(!_0xc13026)return _0x29d2ba;let _0x3b6e3d=(_0x2fa970=this[_0xd664f0(0xcd)]['getUnit'](_0x1ff72f))==null?void 0x0:_0x2fa970['getSheetBySheetId'](_0x2c5bbf);if(!_0x3b6e3d)return _0x29d2ba;let _0x2b0c7b=_0x1b930d(_0xc13026[_0xd664f0(0x296)],_0xc13026[_0xd664f0(0x286)],_0x2b9dcb[_0xd664f0(0x128)],_0x3b6e3d);return _0x2b0c7b?{'x':_0x2b0c7b['viewportScrollX'],'y':_0x2b0c7b[_0xd664f0(0x23f)]}:_0x29d2ba;}[_0x43dbb9(0x155)](_0x38c0cf,_0x227ffe){const _0x220b28=_0x43dbb9;var _0x85068b,_0x426761;let _0x474fe7=(_0x85068b=this['_univerInstanceService'][_0x220b28(0x150)](_0x38c0cf))==null?void 0x0:_0x85068b[_0x220b28(0x148)](_0x227ffe);return(_0x426761=_0x474fe7==null?void 0x0:_0x474fe7['getZoomRatio']())==null?0x1:_0x426761;}[_0x43dbb9(0x2e0)](_0x573e60,_0x59f196,_0x5b846b){const _0x527a9c=_0x43dbb9;this['disposeWithMe'](_0x43b296(_0x573e60[_0x527a9c(0x12f)]['subscribeEvent']((_0x2952d5,_0x5a5460)=>{const _0x124779=_0x527a9c;var _0x3819ca,_0x2e51b3,_0x322ba5,_0x2eb792;let _0x10b4cd=_0x573e60[_0x124779(0x1f1)]();this['_activeAdjustInfo']=this[_0x124779(0x14c)](_0x10b4cd[_0x124779(0x25d)],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)],_0x5b846b),this[_0x124779(0x22b)]=this[_0x124779(0x1ff)][_0x124779(0x251)](_0x10b4cd['unitId'],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)]);let _0x168e6d=this[_0x124779(0xcc)][_0x124779(0x171)]({'unitId':this[_0x124779(0x238)],'subUnitId':this[_0x124779(0x250)],'drawingId':this[_0x124779(0x14f)]}),{transform:_0x184873}=_0x168e6d;if(_0x184873){let {left:_0x121ab6,top:_0x4476e9,width:_0x4cacac,height:_0x297f07}=_0x184873;this[_0x124779(0x260)]=_0x121ab6||0x0,this['_baseShapeTop']=_0x4476e9||0x0,this['_baseShapeWidth']=_0x4cacac||0x0,this[_0x124779(0x8f)]=_0x297f07||0x0;}let _0x447162=!!((_0x3819ca=_0x168e6d[_0x124779(0x10c)])!=null&&_0x3819ca[_0x124779(0x2d5)]),_0x495c71=!!((_0x2e51b3=_0x168e6d[_0x124779(0x10c)])!=null&&_0x2e51b3['flipY']),_0x306d84=((_0x322ba5=_0x168e6d[_0x124779(0x10c)])==null?void 0x0:_0x322ba5[_0x124779(0x2e1)])||0x0;this[_0x124779(0x258)]=!0x0,_0x59f196['disableObjectsEvent']();let _0x1be4dc=(_0x2eb792=this[_0x124779(0x22b)])==null?void 0x0:_0x2eb792[_0x124779(0x29f)](_0x5b846b),_0x1ceb85={[_0x5b846b]:_0x1be4dc};this[_0x124779(0x1fa)]=_0x59f196[_0x124779(0x24b)][_0x124779(0x17c)]((_0x11c49c,_0x1ea7b7)=>{const _0x688629=_0x124779;if(!this[_0x688629(0x258)])return;let {offsetX:_0x2e77d6,offsetY:_0x277a53}=_0x11c49c,_0x2e8262=this[_0x688629(0x257)];if(this['_activeShapeModel']&&_0x2e8262){_0x59f196[_0x688629(0x1b8)](),_0x59f196['setCursor'](_0x110f16['CROSSHAIR']);let _0x221ffb={'left':0x0,'top':0x0,'width':this[_0x688629(0x2b2)],'height':this[_0x688629(0x8f)]},_0xb0b7aa=this['_getScrollInfo'](this[_0x688629(0x238)],this['_subUnitId']),_0x7d2cc8=this[_0x688629(0x155)](this[_0x688629(0x238)],this['_subUnitId']),_0x412d9d=_0x2e77d6/_0x7d2cc8+_0xb0b7aa['x']-this[_0x688629(0x260)],_0x5ac00c=_0x277a53/_0x7d2cc8+_0xb0b7aa['y']-this[_0x688629(0x12d)];if(_0x306d84!==0x0){let _0x1f3979=this[_0x688629(0x2b2)]/0x2,_0x197793=this['_baseShapeHeight']/0x2,_0x589779=_0x306d84*Math['PI']/0xb4,_0x2f5772=Math[_0x688629(0x109)](_0x589779),_0xa8f382=Math[_0x688629(0x1e6)](_0x589779),_0x4225ef=_0x412d9d-_0x1f3979,_0x381e55=_0x5ac00c-_0x197793;_0x412d9d=_0x1f3979+(_0x4225ef*_0x2f5772+_0x381e55*_0xa8f382),_0x5ac00c=_0x197793+(-_0x4225ef*_0xa8f382+_0x381e55*_0x2f5772);}_0x447162&&(_0x412d9d=this['_baseShapeWidth']-_0x412d9d),_0x495c71&&(_0x5ac00c=this['_baseShapeHeight']-_0x5ac00c);let _0x7fbb53={'x':_0x412d9d,'y':_0x5ac00c},_0x529988=this[_0x688629(0x22b)]['calcAdjValue'](_0x221ffb,_0x7fbb53,_0x2e8262,_0x447162,_0x495c71),_0x45e10d=_0x2e8262['gdRefX']||_0x2e8262[_0x688629(0x247)]||_0x2e8262[_0x688629(0x2de)]||_0x2e8262[_0x688629(0x2e5)];if(_0x45e10d===void 0x0)return;this[_0x688629(0x22b)][_0x688629(0x12b)](_0x45e10d,_0x529988);let _0x26e18a=this['_drawingManagerService'][_0x688629(0x171)]({'unitId':_0x10b4cd[_0x688629(0x25d)],'subUnitId':_0x10b4cd['subUnitId'],'drawingId':_0x10b4cd[_0x688629(0x1a9)]});_0x26e18a&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x26e18a,_0x59f196),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x10b4cd[_0x688629(0x25d)],_0x10b4cd[_0x688629(0x212)],_0x10b4cd[_0x688629(0x1a9)]),this['_updateAdjustControlPositions']());}_0x1ea7b7['stopPropagation']();}),this[_0x124779(0x276)]=_0x59f196[_0x124779(0x1bf)][_0x124779(0x17c)]((_0x556af9,_0x4f3c18)=>{const _0x29b855=_0x124779;this[_0x29b855(0x1fa)][_0x29b855(0x1dd)](),this[_0x29b855(0x276)][_0x29b855(0x1dd)](),_0x59f196[_0x29b855(0x15a)]();let _0x5c56d7=this[_0x29b855(0x257)];if(_0x5c56d7){let _0x34a66e=_0x10b4cd[_0x29b855(0x25d)],_0x42b29f=_0x10b4cd[_0x29b855(0x212)],_0x4cf5de=_0x10b4cd[_0x29b855(0x1a9)],_0x503f62=_0x5c56d7[_0x29b855(0xc3)]||_0x5c56d7[_0x29b855(0x247)]||_0x5c56d7[_0x29b855(0x2de)]||_0x5c56d7[_0x29b855(0x2e5)];if(_0x503f62!==void 0x0){var _0x4a32fc;let _0xc1748b=(_0x4a32fc=this[_0x29b855(0x22b)])==null?void 0x0:_0x4a32fc[_0x29b855(0x29f)](_0x503f62);_0xc1748b!==void 0x0&&_n(this['_commandService'],_0x34a66e,_0x42b29f,_0x4cf5de,{'oldShapeData':{'adjustValues':_0x1ceb85}},{'adjustValues':{[_0x503f62]:_0xc1748b}});}}this[_0x29b855(0x257)]=void 0x0,this[_0x29b855(0x22b)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4f3c18[_0x29b855(0x26a)](),_0x59f196[_0x29b855(0x25c)]();}),_0x5a5460[_0x124779(0x26a)]();})));}[_0x43dbb9(0x235)](){const _0x2a89e1=_0x43dbb9;let _0xebc779=this[_0x2a89e1(0xcd)][_0x2a89e1(0x240)](_0x2a1b28[_0x2a89e1(0x1e0)]);this[_0x2a89e1(0x11b)](_0xebc779[_0x2a89e1(0x24d)](_0x46afa7(_0x3ea8b4=>_0x3ea8b4?_0x3ea8b4[_0x2a89e1(0x117)][_0x2a89e1(0x24d)](_0x46afa7(_0x2f68c3=>{const _0x3bb24a=_0x2a89e1;if(!_0x2f68c3)return _0x3149ab;let _0xa8b632=_0x3ea8b4[_0x3bb24a(0xb8)](),_0x1ef009=this[_0x3bb24a(0x87)][_0x3bb24a(0x19c)](_0xa8b632),_0x5c2497=_0x1ef009==null?void 0x0:_0x1ef009[_0x3bb24a(0x128)];return _0x5c2497?_0x236700(_0x5c2497):_0x3149ab;})):_0x3149ab))[_0x2a89e1(0x28f)](_0x5358ea=>{const _0x1e41fa=_0x2a89e1;let _0x256c62=_0x5358ea[_0x1e41fa(0x84)]();this['disposeWithMe'](_0x5358ea[_0x1e41fa(0x24b)][_0x1e41fa(0x17c)](()=>{const _0x429953=_0x1e41fa;this[_0x429953(0x157)];})),this['disposeWithMe'](_0x256c62[_0x1e41fa(0x89)][_0x1e41fa(0x28f)](_0x163ff0=>{const _0xdf6042=_0x1e41fa;let {objects:_0x19d7c8}=_0x163ff0;this[_0xdf6042(0x21b)](),_0x19d7c8!==null&&_0x19d7c8[_0xdf6042(0xb4)]===0x1&&_0x19d7c8['values']()[_0xdf6042(0x166)]()['value']instanceof Cn&&this['setShouldShowAdjust'](!0x0);})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x18c)][_0x1e41fa(0x28f)](()=>{const _0x45e339=_0x1e41fa;this[_0x45e339(0x157)]&&this[_0x45e339(0x1e5)]();})),this['disposeWithMe'](_0x5358ea['onPointerUp$'][_0x1e41fa(0x17c)](()=>{const _0x1b52f4=_0x1e41fa;this[_0x1b52f4(0x157)]&&(this[_0x1b52f4(0x18b)](!0x1),this[_0x1b52f4(0x21b)]());})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x174)][_0x1e41fa(0x28f)](()=>{const _0x2e8de4=_0x1e41fa;this[_0x2e8de4(0x238)]&&this[_0x2e8de4(0x250)]&&this[_0x2e8de4(0x14f)]&&this[_0x2e8de4(0xcc)][_0x2e8de4(0x171)]({'unitId':this[_0x2e8de4(0x238)],'subUnitId':this[_0x2e8de4(0x250)],'drawingId':this[_0x2e8de4(0x14f)]})&&(this[_0x2e8de4(0x20c)]=this[_0x2e8de4(0x1ec)](this['_unitId'],this[_0x2e8de4(0x250)],this[_0x2e8de4(0x14f)]),this[_0x2e8de4(0x21a)]());}));}));}[_0x43dbb9(0x254)](){const _0x41c5fb=_0x43dbb9;this[_0x41c5fb(0x11b)](this['_drawingManagerService'][_0x41c5fb(0x231)][_0x41c5fb(0x28f)](_0x3a14dc=>{const _0x1d5c4a=_0x41c5fb;if(_0x3a14dc[_0x1d5c4a(0x15f)]===0x1){let _0xcd9f50=_0x3a14dc[0x0];if(_0xcd9f50[_0x1d5c4a(0x2cb)]===_0x5d03f6[_0x1d5c4a(0x23a)]){this[_0x1d5c4a(0x14f)]=_0xcd9f50[_0x1d5c4a(0x1a9)];let {unitId:_0x32e396,subUnitId:_0xd0c0a3}=_0xcd9f50;this[_0x1d5c4a(0x20c)]=this[_0x1d5c4a(0x1ec)](_0x32e396,_0xd0c0a3,this[_0x1d5c4a(0x14f)]),this[_0x1d5c4a(0x238)]=_0x32e396,this['_subUnitId']=_0xd0c0a3,this[_0x1d5c4a(0x1e5)](),this[_0x1d5c4a(0x21b)]();}else this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this[_0x1d5c4a(0x1e5)]();}(_0x3a14dc[_0x1d5c4a(0x15f)]>0x1||_0x3a14dc[_0x1d5c4a(0x15f)]===0x0)&&(this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x41c5fb(0xcc)]['update$'][_0x41c5fb(0x28f)](_0x216fca=>{const _0x28f7e6=_0x41c5fb;if(_0x216fca[_0x28f7e6(0x15f)]===0x1){var _0x528f9e;let _0x574d67=_0x216fca[0x0];((_0x528f9e=this[_0x28f7e6(0xcc)]['getDrawingByParam'](_0x574d67))==null?void 0x0:_0x528f9e[_0x28f7e6(0x2cb)])===_0x5d03f6['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x41c5fb(0x11b)](this[_0x41c5fb(0xcc)][_0x41c5fb(0xd6)][_0x41c5fb(0x28f)](_0x4de7ee=>{const _0x1f30ff=_0x41c5fb;for(let _0x41529d of _0x4de7ee)this[_0x1f30ff(0x14f)]===_0x41529d[_0x1f30ff(0x1a9)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1f30ff(0x238)]=null,this[_0x1f30ff(0x250)]=null,this['_clearShapeAdjustControls']());}));}};Tn=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x450bf3(Q)),X(0x4,_0x7113c7),X(0x5,_0x4d9cac)],Tn);const En={'id':'drawing.operation.set-drawing-active','type':_0x8e0e3c[_0x43dbb9(0x269)],'handler':(_0x1ae211,_0x280be8)=>{const _0xf4969c=_0x43dbb9;let _0x2e042c=_0x1ae211[_0xf4969c(0x1bd)](_0x324617),_0x3bf523=_0x1ae211[_0xf4969c(0x1bd)](_0x263af6),_0x37f0a0=_0x1ae211[_0xf4969c(0x1bd)](Tn);if(_0x280be8==null)return!0x0;if(_0x280be8[_0xf4969c(0x15f)]>0x0){var _0x2eabd4;let _0x3c02fb=(_0x2eabd4=_0x3bf523['getRenderById'](_0x280be8[0x0][_0xf4969c(0x25d)]))==null?void 0x0:_0x2eabd4[_0xf4969c(0x128)];if(_0x3c02fb){let {unitId:_0x5469a1,subUnitId:_0x52798c,drawingId:_0x2e7d93}=_0x280be8[0x0],_0xcf1c9e=_0x7f2912({'unitId':_0x5469a1,'subUnitId':_0x52798c,'drawingId':_0x2e7d93},void 0x0),_0x19aff9=_0x3c02fb[_0xf4969c(0x1de)](_0xcf1c9e);if(_0x19aff9){var _0x4aec92;(_0x4aec92=_0x3bf523[_0xf4969c(0x19c)](_0x280be8[0x0][_0xf4969c(0x25d)]))==null||(_0x4aec92=_0x4aec92['scene']['getTransformer']())==null||_0x4aec92[_0xf4969c(0x28d)](_0x19aff9);}}_0x2e042c[_0xf4969c(0x141)](_0x280be8),_0x37f0a0['setShouldShowAdjust'](!0x1);}return!0x0;}},Dn={'type':_0x8e0e3c['COMMAND'],'id':_0x43dbb9(0x10a),'handler':async(_0x194427,_0x55cc22)=>{const _0x4b49f3=_0x43dbb9;let _0x311906=_0x59589e(_0x194427[_0x4b49f3(0x1bd)](_0x7113c7));if(!_0x311906)return!0x1;let _0x20f1bf=_0x194427[_0x4b49f3(0x1bd)](_0x412710)[_0x4b49f3(0x187)]();if(!_0x20f1bf)return!0x1;let _0x2249a7=_0x194427[_0x4b49f3(0x1bd)](_0x4d9cac),{unitId:_0x17a009,subUnitId:_0x56100a}=_0x311906,{value:_0x1c9c02,enhanceParams:_0x26a5aa}=_0x55cc22,{range:_0x3a0c3d}=_0x20f1bf,_0x2d4147={'unitId':_0x17a009,'subUnitId':_0x56100a,'shapeType':_0x1c9c02,'range':_0x3a0c3d,'shapeId':_0x2bfd17()};if(_0x26a5aa){let _0x59c765=_0x1f7f23(_0x1c9c02),_0x465420=_0x1c9c02===_0x250922[_0x4b49f3(0x1f5)];_0x59c765&&(_0x26a5aa[_0x4b49f3(0x28b)]||_0x26a5aa['endArrow'])&&(_0x2d4147[_0x4b49f3(0x106)]={'ln':{'startArrow':_0x26a5aa[_0x4b49f3(0x28b)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0x1da)]}:void 0x0,'endArrow':_0x26a5aa[_0x4b49f3(0x1a3)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0xf0)]}:void 0x0}}),_0x465420&&(_0x26a5aa[_0x4b49f3(0xc5)]||_0x26a5aa[_0x4b49f3(0x115)])&&(_0x2d4147[_0x4b49f3(0x106)]=_0x25f061({'fill':{'fillType':_0x27d461['SolidFill'],'color':_0x4b49f3(0x1aa)},'isHorizontal':!!_0x26a5aa[_0x4b49f3(0xc5)],'stroke':{'lineStrokeType':_0x517d31[_0x4b49f3(0x1fb)],'width':0x1,'color':_0x4b49f3(0x110)}}));}let _0x2806f1=_0x2249a7['syncExecuteCommand'](_0x28064d['id'],_0x2d4147);return setTimeout(()=>{const _0x4584de=_0x4b49f3;_0x2249a7[_0x4584de(0x2d0)](En['id'],[{'unitId':_0x17a009,'subUnitId':_0x56100a,'drawingId':_0x2d4147[_0x4584de(0xfc)]}]);},0xc8),_0x2806f1;}},On=_0x43dbb9(0x2e7),kn=_0x43dbb9(0x24c),An=_0x43dbb9(0x227),jn=_0x1a4a4b(_0x43dbb9(0x97)),Mn='sheet.shape.text.float-menu',Nn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x8e0e3c[_0x43dbb9(0x82)],'handler':(_0x56dda7,_0x20d3e0)=>{const _0x467ab3=_0x43dbb9;let _0x54f413=_0x56dda7[_0x467ab3(0x1bd)](_0x10b5ac),_0x1596ce=_0x56dda7[_0x467ab3(0x1bd)](_0xa3717a),_0x1395b5=_0x56dda7[_0x467ab3(0x1bd)](_0x7113c7),_0x3b1b1d=_0x56dda7[_0x467ab3(0x1bd)](_0x4d9cac);return _0x59589e(_0x1395b5)?(_0x20d3e0==null?void 0x0:_0x20d3e0[_0x467ab3(0x26b)])===_0x467ab3(0x25f)?(_0x54f413['close'](kn),!0x0):(_0x54f413[_0x467ab3(0x291)]({'id':kn,'header':{'title':_0x1596ce['t'](_0x467ab3(0xab))},'children':{'label':kn},'onClose':()=>{const _0x268e8a=_0x467ab3;_0x3b1b1d[_0x268e8a(0x193)](_0xd68623['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Pn=class extends _0x4760b3{constructor(_0x595d76,_0x3c460c){const _0x155721=_0x43dbb9;super(),this[_0x155721(0x1b1)]=_0x595d76,this['_drawingManagerService']=_0x3c460c,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x155721(0x27c)](!0x0),this[_0x155721(0x11b)]({'dispose':()=>this[_0x155721(0x1b1)][_0x155721(0x27c)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x3e4efc=_0x43dbb9;let _0x314042=this['_clipService'],_0x17ace9=new Map(),_0x3daa60=_0x314042['registerClipDelegate']((_0x45792d,_0x48fc15,_0x318b90,_0x2db91e,_0x4ae177)=>{const _0x2ebfb4=_0x449a;let _0x40d915=_0x48fc15;if(_0x40d915===_0x250922['None']||_0x48fc15===_0x2ebfb4(0x1c3))return!0x1;try{let _0x2d0aa6=_0x17ace9[_0x2ebfb4(0x1bd)](_0x48fc15);return _0x2d0aa6||(_0x2d0aa6=new _0xf0c0c(_0x40d915,_0x2ebfb4(0x261)+_0x48fc15),_0x17ace9[_0x2ebfb4(0xd9)](_0x48fc15,_0x2d0aa6)),_0x4ae177&&_0x2d0aa6['setShapeData']({'adjustValues':_0x4ae177},!0x0),_0x2d0aa6[_0x2ebfb4(0x104)]({'width':_0x318b90,'height':_0x2db91e}),_0x2d0aa6[_0x2ebfb4(0x2c2)](_0x45792d,{'left':0x0,'top':0x0,'width':_0x318b90,'height':_0x2db91e});}catch{return!0x1;}});this['disposeWithMe'](_0x3daa60),this['disposeWithMe']({'dispose':()=>_0x17ace9[_0x3e4efc(0x2a5)]()});}[_0x43dbb9(0x124)](_0x54fb46,_0x3296f2,_0x11e57b,_0x197668,_0x2efd94){const _0x4767b6=_0x43dbb9;let _0x5a76d9=this['_drawingManagerService']['getDrawingData'](_0x54fb46,_0x3296f2);if(!_0x5a76d9[_0x11e57b])return;let _0x3ae8b4={..._0x5a76d9[_0x11e57b],'prstGeom':_0x197668,'adjustValues':_0x2efd94};this[_0x4767b6(0xcc)]['featurePluginUpdateNotification']([_0x3ae8b4]);}};Pn=Z([X(0x0,_0x450bf3(_0xe0e719)),X(0x1,_0x450bf3(_0x324617))],Pn);const Fn=_0x43dbb9(0x281),In=_0x43dbb9(0x220);function Ln({onShapeClick:_0xc27fa8,excludeGroups:_0xe54ac2}){const _0x28c5a2=_0x43dbb9;return _0x2b677f(_0x43451f,{'excludeGroups':_0xe54ac2,'onShapeClick':_0xc27fa8,'scrollContainer':_0x28c5a2(0xf4)});}function Rn(){const _0x5923d8=_0x43dbb9;let _0x1f42a8=_0x597c42(_0x324617),_0x2e3d48=_0x597c42(Pn);return _0x2b677f(_0x106929,{'buttonLabel':_0x5923d8(0xfe),'excludeGroups':[_0x2cca23['Line']],'onShapeClick':_0x23c122=>{const _0x3faa4b=_0x5923d8;let _0x5496a7=_0x1f42a8['getFocusDrawings']()['find'](_0x28e4c0=>_0x28e4c0[_0x3faa4b(0x2cb)]===_0x5d03f6[_0x3faa4b(0x20a)]);if(!_0x5496a7)return;let {unitId:_0x49b6ba,subUnitId:_0x231248,drawingId:_0x5d59c5}=_0x5496a7;_0x2e3d48['clipByShape'](_0x49b6ba,_0x231248,_0x5d59c5,_0x23c122['type']);}});}function zn(){const _0xbea791=_0x43dbb9;let _0x7c519c=_0x597c42(_0x1953f8),_0x5c5936=_0x597c42(_0x324617),_0x569cac=_0x597c42(_0x7113c7),_0x1c420c=_0x5c5936[_0xbea791(0x27f)]()[0x0],_0x386510=_0x1c420c?_0x569cac[_0xbea791(0x172)](_0x1c420c[_0xbea791(0x25d)]):void 0x0,_0x23da56=_0x386510===_0x2a1b28[_0xbea791(0x26f)]?_0xbea791(0x18e):_0x386510===_0x2a1b28[_0xbea791(0x1e0)]?In:void 0x0,_0x226ab4=_0x23da56?_0x7c519c[_0xbea791(0x1bd)](_0x23da56):void 0x0;return _0x226ab4?_0x2b677f(_0x226ab4,{}):null;}function Bn(){let _0x51d206=_0x597c42(_0x4d9cac);return _0x2b677f(Ln,{'onShapeClick':_0x4fc891=>{const _0x409914=_0x449a;_0x51d206[_0x409914(0x2d0)](Dn['id'],{'value':_0x4fc891[_0x409914(0x178)],'enhanceParams':{'endArrow':_0x4fc891[_0x409914(0x1a3)],'startArrow':_0x4fc891[_0x409914(0x28b)],'horizontal':_0x4fc891[_0x409914(0xc5)],'vertical':_0x4fc891[_0x409914(0x115)]}});}});}function Vn(_0x277f99){const _0x22e7cb=_0x43dbb9;let _0xc42db7=_0x277f99['get'](_0x7113c7);return{'id':Dn['id'],'type':_0x142b74[_0x22e7cb(0x26d)],'selections':[{'label':{'name':Fn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Dn['id']}}}],'icon':_0x22e7cb(0x181),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x4f53b0(_0xc42db7,!0x1,()=>new _0x573c9d(_0x3dd579=>{const _0x491bfd=_0x22e7cb;_0x3dd579[_0x491bfd(0x166)](!0x1);})),'hidden$':_0x227618(_0x277f99,_0x2a1b28[_0x22e7cb(0x1e0)]),'disabled$':_0x3b91cb(_0x277f99)};}function Hn(_0x5c8858){const _0x5ad8d1=_0x43dbb9;let _0x293653=_0x5c8858['get'](_0x7113c7);return{'id':Nn['id'],'type':_0x142b74[_0x5ad8d1(0xf5)],'icon':_0x5ad8d1(0x134),'title':_0x5ad8d1(0x205),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x4f53b0(_0x293653,!0x1,()=>new _0x573c9d(_0x2d620c=>{const _0x370a93=_0x5ad8d1;_0x2d620c[_0x370a93(0x166)](!0x1);})),'hidden$':_0x227618(_0x5c8858,_0x2a1b28[_0x5ad8d1(0x1e0)]),'disabled$':_0x3b91cb(_0x5c8858)};}const Un={[_0x24939b[_0x43dbb9(0xec)]]:{[Dn['id']]:{'order':0x4,'menuItemFactory':Vn}},[_0x24939b['OTHERS']]:{[Nn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Hn}}};var Wn=_0x43dbb9(0xfa),Gn=_0x43dbb9(0xf1);const Kn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0x145),'handler'(){return!0x0;}},qn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0xfd),'handler'(){return!0x0;}},Jn={};function Yn(_0x3b9c3d){const _0x41be41=_0x43dbb9;return _0x3b9c3d[_0x41be41(0x2c6)]()||void 0x0;}function Xn(_0x4cf919){const _0x5e43e0=_0x43dbb9;switch(_0x4cf919['drawingType']){case _0x5d03f6[_0x5e43e0(0x20a)]:return _0x5e43e0(0x1a5);case _0x5d03f6[_0x5e43e0(0x8d)]:return'chart';case _0x5d03f6[_0x5e43e0(0xda)]:return'table';case _0x5d03f6[_0x5e43e0(0x1bc)]:return _0x5e43e0(0x131);case _0x5d03f6[_0x5e43e0(0x23e)]:return _0x5e43e0(0x1fe);case _0x5d03f6['DRAWING_GROUP']:return'group';case _0x5d03f6[_0x5e43e0(0x83)]:return'unit';case _0x5d03f6['DRAWING_DOM']:return _0x5e43e0(0x1c1);case _0x5d03f6[_0x5e43e0(0x23a)]:return'shape';default:return'object';}}function Zn(_0xfd5afd,_0xcc88cb,_0x1fa735){var _0x56c78b;return((_0x56c78b=_0xfd5afd['name'])==null?void 0x0:_0x56c78b['trim']())||_0x4a9bd6(_0x1fa735,Xn(_0xfd5afd))+'\x20'+(_0xcc88cb+0x1);}function Qn(){const _0x3264d5=_0x43dbb9;var _0x368122,_0x8a8a4a,_0x30a222,_0x21cd2b;let _0x1f729b=_0x597c42(_0xa3717a),_0x186399=_0x597c42(_0x4d9cac),_0x77d78=_0x597c42(_0x7113c7),_0x164823=_0x597c42(_0x57e4c3),_0x159c35=_0x597c42(_0x324617),_0x206d62=_0x597c42(_0x263af6),[,_0x44ccf5]=_0x97793a(_0x2d9be3=>_0x2d9be3+0x1,0x0),_0x3cf7a6=_0x77d78[_0x3264d5(0x165)](_0x2a1b28['UNIVER_SHEET']),_0xa2bcce=(_0x368122=_0x3cf7a6==null?void 0x0:_0x3cf7a6[_0x3264d5(0xb8)]())==null?'':_0x368122,_0x2972b5=(_0x8a8a4a=_0x3cf7a6==null||(_0x30a222=_0x3cf7a6[_0x3264d5(0x144)]())==null?void 0x0:_0x30a222[_0x3264d5(0xa3)]())==null?'':_0x8a8a4a,_0x28d297=_0x31d745(()=>_0x159c35[_0x3264d5(0x231)],_0x159c35[_0x3264d5(0x27f)](),!0x1,[_0x159c35]);_0x15fc40(()=>{const _0xe383bd=_0x3264d5;let _0x953e53=_0x186399[_0xe383bd(0x1f7)](()=>_0x44ccf5());return()=>_0x953e53[_0xe383bd(0x2dd)]();},[_0x186399]);let _0x1de9f3=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x295)](_0xa2bcce,_0x2972b5):{},_0x1360ee=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x1a0)](_0xa2bcce,_0x2972b5):[],_0x48ffdf=_0x293422(()=>_0x11da8e(_0x1f729b),[_0x1f729b]),_0x4cdead=_0x293422(()=>{const _0x3851d=_0x3264d5;let _0x24203c=_0x1360ee['map'](_0x2f5d99=>_0x1de9f3[_0x2f5d99])[_0x3851d(0xb6)](_0x255b23=>!!_0x255b23)['reverse'](),_0x3ef791=_0x24203c[_0x3851d(0x2a8)]((_0x57ad18,_0x339373)=>(_0x57ad18[_0x450da7(_0x339373[_0x3851d(0x2cb)])]+=0x1,_0x57ad18),{'canvas':0x0,'floating':0x0}),_0x47aa98={'canvas':0x0,'floating':0x0};return _0x24203c[_0x3851d(0x29a)]((_0x28aff5,_0x58e9e5)=>{const _0xe20625=_0x3851d;let _0x522053=_0x450da7(_0x28aff5[_0xe20625(0x2cb)]),_0xe35e22=_0x522053===_0x34974e,_0x141d7a=_0x47aa98[_0x522053]++;return{'id':_0x28aff5['drawingId'],'name':Zn(_0x28aff5,_0x58e9e5,_0x1f729b),'description':_0x28aff5[_0xe20625(0x197)],'visible':_0x28aff5['hidden']!==!0x0,'selectable':_0x28aff5[_0xe20625(0x207)]!==!0x1,'sectionId':_0x522053,'sectionTitle':_0xe35e22?_0x48ffdf[_0xe20625(0x11c)]:_0x48ffdf[_0xe20625(0x135)],'capabilities':_0xe35e22?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xe35e22&&_0x141d7a>0x0,'canMoveBackward':!_0xe35e22&&_0x141d7a<_0x3ef791[_0xe20625(0xa6)]-0x1,'canReorder':!_0xe35e22};});},[_0x1de9f3,_0x1360ee,_0x48ffdf['sectionCanvas'],_0x48ffdf['sectionFloating'],_0x1f729b]),_0xd4f05d=_0x293422(()=>(_0x28d297==null?[]:_0x28d297)[_0x3264d5(0xb6)](_0x233cda=>_0x233cda['unitId']===_0xa2bcce&&_0x233cda[_0x3264d5(0x212)]===_0x2972b5)[_0x3264d5(0x29a)](_0xd3880e=>_0xd3880e[_0x3264d5(0x1a9)]),[_0x28d297,_0x2972b5,_0xa2bcce]),_0x30a1bc=(_0x21cd2b=_0xd4f05d[_0xd4f05d[_0x3264d5(0x15f)]-0x1])==null?null:_0x21cd2b,_0x4db5ee=_0x277b9d=>{const _0x231827=_0x3264d5;var _0x2a3590;return(_0x2a3590=_0x164823[_0x231827(0x171)]({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x277b9d}))==null?null:_0x2a3590;},_0x58bbd6=_0x5b6ae9=>{!_0xa2bcce||!_0x5b6ae9['length']||_0x186399['executeCommand'](_0x1fd507['id'],{'unitId':_0xa2bcce,'drawings':_0x5b6ae9});},_0x4dbe62=(_0x5c9dad,_0x195a2e)=>{_0x4db5ee(_0x5c9dad)&&_0x58bbd6([{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5c9dad,..._0x195a2e}]);},_0x403880=(_0x1a6093,_0x16d66e)=>{const _0x1a1827=_0x3264d5;if(!_0xa2bcce||!_0x2972b5)return;let _0x17b273=_0x16d66e?_0xd4f05d[_0x1a1827(0x1b0)](_0x1a6093)?_0xd4f05d['filter'](_0xfba0b3=>_0xfba0b3!==_0x1a6093):[..._0xd4f05d,_0x1a6093]:[_0x1a6093];_0x186399[_0x1a1827(0x193)](_0xd68623['id'],_0x17b273['map'](_0xc442dd=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0xc442dd})));let _0x5053ab=_0x17b273[_0x17b273[_0x1a1827(0x15f)]-0x1];_0x5053ab?_0x4df6a5(_0x206d62,{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5053ab}):_0xbdee17(_0x206d62,_0xa2bcce);},_0x409d1d=(_0x5264d5,_0x3d74f0)=>{const _0x5817e8=_0x3264d5;_0x58bbd6(_0x5264d5['map'](_0x2e6a03=>_0x4db5ee(_0x2e6a03))[_0x5817e8(0xb6)](_0x473b67=>!!_0x473b67)[_0x5817e8(0xb6)](_0x2e892c=>_0x2e892c[_0x5817e8(0x237)]!==!0x0!==_0x3d74f0)[_0x5817e8(0x29a)](_0x2e8678=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x2e8678['drawingId'],'hidden':!_0x3d74f0})));},_0x499beb=_0x159c04=>{const _0x4a7fe7=_0x3264d5;let _0x4c496d=_0x4db5ee(_0x159c04);_0x4c496d&&_0x4dbe62(_0x159c04,{'selectable':_0x4c496d[_0x4a7fe7(0x207)]===!0x1?void 0x0:!0x1});},_0xb435c9=(_0x437298,_0x281235)=>{const _0x234951=_0x3264d5;var _0x2f16b9,_0x1d22a2;let _0x297a55=Yn(_0x281235);((_0x2f16b9=(_0x1d22a2=_0x4db5ee(_0x437298))==null?void 0x0:_0x1d22a2[_0x234951(0x1c4)])==null?void 0x0:_0x2f16b9)!==_0x297a55&&_0x4dbe62(_0x437298,{'name':_0x297a55});},_0x122734=(_0x459130,_0x186aeb)=>{const _0x3f8691=_0x3264d5;var _0x326430,_0x3f249b;let _0x1a9add=Yn(_0x186aeb);((_0x326430=(_0x3f249b=_0x4db5ee(_0x459130))==null?void 0x0:_0x3f249b[_0x3f8691(0x197)])==null?void 0x0:_0x326430)!==_0x1a9add&&_0x4dbe62(_0x459130,{'description':_0x1a9add});},_0x3fd0a5=(_0x474b69,_0x4c15b3)=>{!_0xa2bcce||!_0x2972b5||_0x186399['executeCommand'](_0x390f9f['id'],{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingIds':[_0x474b69],'arrangeType':_0x4c15b3});};return!_0xa2bcce||!_0x2972b5?_0x2b677f(_0x3264d5(0x223),{'className':_0x3264d5(0x211),'children':_0x48ffdf[_0x3264d5(0x1bb)]}):_0x2b677f(_0x313482,{'items':_0x4cdead,'selectedIds':_0xd4f05d,'focusedId':_0x30a1bc,'labels':_0x48ffdf,'onSelect':_0x403880,'onSetVisible':_0x409d1d,'onCommitName':_0xb435c9,'onCommitDescription':_0x122734,'onMoveForward':_0x12149c=>_0x3fd0a5(_0x12149c,_0x202737[_0x3264d5(0xdf)]),'onMoveBackward':_0x5084c2=>_0x3fd0a5(_0x5084c2,_0x202737['backward']),'onToggleSelectable':_0x499beb});}let $n=class{constructor(_0x33260a){this['_renderManagerService']=_0x33260a;}[_0x43dbb9(0x1e9)](_0x4aaab1,_0x3b5fa0){const _0x331a9c=_0x43dbb9;let _0x3cdedc=this[_0x331a9c(0x87)][_0x331a9c(0x19c)](_0x4aaab1[_0x331a9c(0x25d)]),_0xa3862d=_0x3cdedc==null?void 0x0:_0x3cdedc['scene'];if(!_0xa3862d)return;let _0x656370=_0x7f2912(_0x4aaab1),_0x314db4=_0xa3862d['getObjectIncludeInGroup'](_0x656370);_0x314db4==null||_0x314db4['setFillImage'](_0x3b5fa0);}};$n=Z([X(0x0,_0x263af6)],$n);function _0x449a(_0x375ae1,_0x5ceeea){_0x375ae1=_0x375ae1-0x82;const _0x1d5daa=_0x1d5d();let _0x449ae4=_0x1d5daa[_0x375ae1];return _0x449ae4;}function er(){const _0x14e8d2=_0x43dbb9;let _0xd8d6d2=_0x597c42(_0x324617),_0x2e2b5f=_0x31d745(()=>_0xd8d6d2[_0x14e8d2(0x231)],_0xd8d6d2[_0x14e8d2(0x27f)](),!0x1,[_0xd8d6d2]);return _0x2e2b5f[_0x14e8d2(0x15f)]===0x0?null:_0x2b677f('div',{'children':_0x27f2a4(_0x14e8d2(0x223),{'className':_0x14e8d2(0xd7),'children':[_0x2b677f(_0xd5003,{'drawings':_0x2e2b5f,'hasCropper':!0x1}),_0x2b677f(_0x1fbaec,{'drawings':_0x2e2b5f})]})});}function tr(_0x4a4486){let {unitId:_0x3daae7,subUnitId:_0xd493eb,shapeId:_0x3ddc6f}=_0x4a4486,_0x4eca3b=_0x597c42(_0x4d9cac),_0x3a1900=_0x597c42($n);return _0x2b677f(_0x30898f,{..._0x4a4486,'positionEditor':_0x2b677f(er,{}),'onUpdateShapeData':(_0x3c2142,_0x2a9ff5)=>{_n(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x3c2142,_0x2a9ff5);},'onUpdateLineShapeData':(_0x5a5f8e,_0x25cc88)=>{vn(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x5a5f8e,_0x25cc88);},'onUpdateShapeFillImage':_0xc4652d=>{const _0xfae5c9=_0x449a;_0x3a1900[_0xfae5c9(0x1e9)]({'unitId':_0x3daae7,'subUnitId':_0xd493eb,'drawingId':_0x3ddc6f},_0xc4652d);}});}function nr(_0xdb3d5f){const _0x5846de=_0x43dbb9;let _0x59f4d1=_0xdb3d5f[_0x5846de(0x1ce)][_0x5846de(0x1be)];return _0x59f4d1?_0x2b677f(rr,{..._0x59f4d1}):null;}function rr(_0x24c783){const _0x156b75=_0x43dbb9;var _0x430f3e,_0x505c2b;let _0x1a14d2=_0x597c42(_0x4d9cac),_0x4f5cc8=_0x597c42(_0x26a217),{unitId:_0x4feab7,subUnitId:_0x22cf67,drawingId:_0x522b38,drawingType:_0x453101,shapeType:_0x1cafc0}=_0x24c783,[_0x2c6782,_0x9182d7]=_0x5a0562(_0x24c783['shapeData']),_0x5eb587=_0x293422(()=>_0x32374d(_0x2c6782),[_0x2c6782]),_0x19658d=_0x293422(()=>_0x4d64d0(_0x2c6782),[_0x2c6782]);_0x15fc40(()=>{const _0x248e1d=_0x449a;let _0x3139a4=_0x1a14d2[_0x248e1d(0x1f7)](_0x3ba9f2=>{const _0x5622a3=_0x248e1d;if(_0x3ba9f2['id']!==_0x19b81c['id'])return;let _0x65f0ba=_0x4f5cc8[_0x5622a3(0xeb)](_0x4feab7,_0x22cf67,_0x522b38);_0x65f0ba&&_0x9182d7(_0x65f0ba);});return()=>_0x3139a4[_0x248e1d(0x2dd)]();},[_0x1a14d2,_0x522b38,_0x4f5cc8,_0x22cf67,_0x4feab7]);let _0x257412=_0x4dca13=>{_0x9182d7(_0x43234f=>({..._0x43234f,..._0x4dca13}));},_0x427e76=_0x3e9b15=>{const _0x11ba60=_0x449a;let _0x4fda54=_0x299119(_0x2c6782,_0x3e9b15);_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'shapeText':_0x2c6782[_0x11ba60(0x1cf)]}},_0x4fda54),_0x257412(_0x4fda54);},_0x1dcd06=_0x1d16dd({'unitId':_0x4feab7,'subUnitId':_0x22cf67,'shapeId':_0x522b38,'shapeData':_0x2c6782,'onUpdateBinding':_0x128bde=>{const _0x31f808=_0x449a;let _0xdc2d9={'formulaBinding':_0x128bde};_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'formulaBinding':_0x2c6782[_0x31f808(0x17a)]}},_0xdc2d9),_0x257412(_0xdc2d9);}});return _0x27f2a4(_0xf1e5d2,{'children':[_0x2b677f(_0xf7955b,{'shapeData':_0x2c6782,'shapeType':_0x1cafc0,'textStyle':{'ff':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x8a)],'fs':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x1c5)],'cl':{'rgb':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x222)]},..._0x5eb587},'textModel':_0x19658d?{'ha':(_0x430f3e=_0x19658d['ha'])==null?_0x1bf681['LEFT']:_0x430f3e,'va':(_0x505c2b=_0x19658d['va'])==null?_0x3d0a33[_0x156b75(0x116)]:_0x505c2b}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bc8ec[_0x156b75(0x1ee)],'defaultGradientEndColor':_0x2bc8ec[_0x156b75(0xb9)],'defaultStrokeColor':_0x2bc8ec[_0x156b75(0x294)],'extensionGroups':_0x1dcd06[_0x156b75(0x13f)],'onUpdateShapeData':(_0x4cfd09,_0x5b10d4)=>{_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,_0x4cfd09,_0x5b10d4),_0x5b10d4&&_0x257412(_0x5b10d4);},'onUpdateText':_0x427e76,'onOpenPanel':()=>{_0x1a14d2['executeCommand'](qn['id'],{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38});},'onDelete':()=>{_0x1a14d2['executeCommand'](_0x10723d['id'],{'unitId':_0x4feab7,'drawings':[{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38,'drawingType':_0x453101}]});}}),_0x1dcd06[_0x156b75(0x12e)]]});}var ir=class extends _0x4760b3{constructor(..._0x43665a){const _0x3fd954=_0x43dbb9;super(..._0x43665a),Y(this,_0x3fd954(0x1ae),new _0x502f7b(null)),Y(this,_0x3fd954(0x17b),this['_editingParams$'][_0x3fd954(0x10e)]()),Y(this,_0x3fd954(0x138),new _0x502f7b(!0x1)),Y(this,'onSavingEditorData$',this[_0x3fd954(0x138)][_0x3fd954(0x10e)]());}[_0x43dbb9(0x2dd)](){const _0x397bb4=_0x43dbb9;this[_0x397bb4(0x1ae)]['next'](null),this['_editingParams$'][_0x397bb4(0x151)](),this[_0x397bb4(0x138)][_0x397bb4(0x166)](!0x1),this[_0x397bb4(0x138)][_0x397bb4(0x151)](),super[_0x397bb4(0x2dd)]();}['setEditing'](_0x34fe7f){const _0x41568a=_0x43dbb9;this['_editingParams$'][_0x41568a(0x166)](_0x34fe7f),_0x34fe7f==null&&this[_0x41568a(0x138)][_0x41568a(0x166)](!0x1);}[_0x43dbb9(0xe2)](_0x2d9900){const _0x479c88=_0x43dbb9;this['_onSavingEditorData$'][_0x479c88(0x166)](_0x2d9900);}[_0x43dbb9(0x1f9)](){const _0x5b35bc=_0x43dbb9;return this[_0x5b35bc(0x1ae)][_0x5b35bc(0x170)]();}[_0x43dbb9(0x182)](_0x5760e3){const _0x188bbd=_0x43dbb9;this['getEditing']()&&(this[_0x188bbd(0xe2)](!0x0),requestAnimationFrame(()=>{const _0x3a1216=_0x188bbd;this[_0x3a1216(0xc7)](null);}));}['cancelEditing'](){const _0x2fd8c3=_0x43dbb9;this[_0x2fd8c3(0x1f9)]()&&this[_0x2fd8c3(0xc7)](null);}};const ar=_0x3adf0a(()=>{const _0x39c086=_0x43dbb9;let _0x24814a=_0x597c42(ir),_0x39d8ce=_0x597c42(_0x26a217),_0x555180=_0x597c42(_0x324617),_0x18ebe5=_0x597c42(_0x4d9cac),_0x5c5061=_0x597c42(_0x263af6);return _0x2b677f(_0x1ef440,{'adapter':_0x293422(()=>({'getShapeModel':(_0x323d56,_0x55d689,_0x168b6e)=>_0x39d8ce[_0x39c086(0x251)](_0x323d56,_0x55d689,_0x168b6e),'getShapeData':(_0x2a42ce,_0x1ed7be,_0x181fe9)=>_0x39d8ce[_0x39c086(0xeb)](_0x2a42ce,_0x1ed7be,_0x181fe9),'getDrawingTransform':(_0x3d5b46,_0x1ec96e,_0x3f2737)=>{const _0xf33ee7=_0x39c086;let _0x50cb45=_0x555180['getDrawingByParam']({'unitId':_0x3d5b46,'subUnitId':_0x1ec96e,'drawingId':_0x3f2737});return _0x50cb45==null?void 0x0:_0x50cb45[_0xf33ee7(0x10c)];},'updateShapeText':({unitId:_0x3ff824,subUnitId:_0xdfe53c,shapeId:_0x5cd977,shapeText:_0x28c205,oldShapeText:_0x48bba0})=>{const _0x3d3000=_0x39c086;_0x18ebe5[_0x3d3000(0x2d0)](gn['id'],{'unitId':_0x3ff824,'subUnitId':_0xdfe53c,'shapeId':_0x5cd977,'shapeData':{'shapeText':_0x28c205},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x48bba0}}});},'updateHostSize':({unitId:_0x1ea1b3,subUnitId:_0x10ca5d,shapeId:_0x538887,width:_0x4801d0,height:_0x122cc8})=>{const _0x3471bf=_0x39c086;var _0x341e09,_0x16d517,_0x338e19;let _0x40b0bb=_0x555180[_0x3471bf(0x171)]({'unitId':_0x1ea1b3,'subUnitId':_0x10ca5d,'drawingId':_0x538887}),_0x2834f8=_0x40b0bb==null?void 0x0:_0x40b0bb['transform'];if(!_0x40b0bb||!_0x2834f8)return;let _0x1d89c5={..._0x2834f8,'width':_0x4801d0,'height':_0x122cc8},_0x3080ef=(_0x341e09=_0x5c5061[_0x3471bf(0x19c)](_0x1ea1b3))==null||(_0x341e09=_0x341e09[_0x3471bf(0x2ea)](_0x392ff0)[_0x3471bf(0x255)](_0x10ca5d))==null?void 0x0:_0x341e09['skeleton'],_0x2a2762=_0x3080ef?(_0x16d517=_0x556f36(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x195)]:_0x16d517:_0x40b0bb[_0x3471bf(0x195)],_0x42f231=_0x3080ef?(_0x338e19=_0x38f007(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x268)]:_0x338e19:_0x40b0bb[_0x3471bf(0x268)];_0x18ebe5[_0x3471bf(0x2d0)](_0x1fd507['id'],{'unitId':_0x1ea1b3,'drawings':[{..._0x40b0bb,'transform':_0x1d89c5,'sheetTransform':_0x2a2762,'axisAlignSheetTransform':_0x42f231}]});},'allowHostSizeShrink':({unitId:_0x43a7bf,subUnitId:_0x5c9d20,shapeId:_0x525970})=>_0x7ce441(_0x39d8ce[_0x39c086(0xeb)](_0x43a7bf,_0x5c9d20,_0x525970))}),[_0x18ebe5,_0x555180,_0x5c5061,_0x39d8ce]),'editingService':_0x24814a,'editorUnitId':jn,'positionOptions':_0x293422(()=>({'viewportKeys':{'main':_0x4ce309[_0x39c086(0x27d)],'leftTop':_0x4ce309[_0x39c086(0x1db)],'top':_0x4ce309[_0x39c086(0x1e8)],'left':_0x4ce309[_0x39c086(0x1f6)]},'getSkeleton':(_0x28263b,_0x320743)=>{const _0x599119=_0x39c086;var _0x2e2dc1,_0x36f2d3;return(_0x2e2dc1=(_0x36f2d3=_0x28263b[_0x599119(0x2ea)](_0x392ff0)[_0x599119(0x255)](_0x320743['subUnitId']))==null?void 0x0:_0x36f2d3[_0x599119(0x287)])==null?null:_0x2e2dc1;}}),[])});});let or=class extends _0x4760b3{constructor(_0x56f394,_0x1f6017){const _0x4a8ccd=_0x43dbb9;super(),this[_0x4a8ccd(0x103)]=_0x56f394,this[_0x4a8ccd(0x239)]=_0x1f6017,this[_0x4a8ccd(0x28c)](),this[_0x4a8ccd(0x265)]();}[_0x43dbb9(0x28c)](){const _0x2c2a87=_0x43dbb9;this[_0x2c2a87(0x239)][_0x2c2a87(0x2b0)](_0x2c2a87(0x134))||this[_0x2c2a87(0x11b)](this[_0x2c2a87(0x239)][_0x2c2a87(0x21e)]({'ObjectLayersIcon':_0x347bf2}));}['_registerComponents'](){const _0xb119ee=_0x43dbb9;this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](On,tr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](kn,Qn)),this['disposeWithMe'](this['_componentManager'][_0xb119ee(0x21e)](Fn,Bn)),this['disposeWithMe'](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](In,Rn)),this['_componentManager']['get'](_0x1f5a6b)||this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](_0x1f5a6b,zn)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](An,nr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](Mn,_0x312819)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](_0xb119ee(0x143),ar));}};or=Z([X(0x0,_0x450bf3(_0x1953f8)),X(0x1,_0x450bf3(_0x200e2a))],or);let sr=class extends _0x4760b3{constructor(_0x3f6628,_0xa9b068,_0x40f357,_0x9ab23e,_0x16257b){const _0x29ee3c=_0x43dbb9;super(),this[_0x29ee3c(0xfb)]=_0x3f6628,this[_0x29ee3c(0xcc)]=_0xa9b068,this[_0x29ee3c(0x87)]=_0x40f357,this['_univerInstanceService']=_0x9ab23e,this['_imageShapeClipController']=_0x16257b,Y(this,_0x29ee3c(0x169),null),Y(this,_0x29ee3c(0x238),null),Y(this,_0x29ee3c(0x250),null),Y(this,_0x29ee3c(0x2cd),void 0x0),Y(this,_0x29ee3c(0x176),[]),Y(this,_0x29ee3c(0x283),0x0),Y(this,_0x29ee3c(0x92),0x0),Y(this,_0x29ee3c(0x127),0x0),Y(this,_0x29ee3c(0x233),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x29ee3c(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x29ee3c(0x292),!0x1),this[_0x29ee3c(0x2d8)](),this[_0x29ee3c(0x1ad)]();}[_0x43dbb9(0x2e3)](){const _0x82c8d2=_0x43dbb9;this[_0x82c8d2(0x186)]();}[_0x43dbb9(0x14d)](){const _0x11763d=_0x43dbb9;this[_0x11763d(0x186)](),this[_0x11763d(0x1c8)](!0x0);}[_0x43dbb9(0x15e)](_0x2275ba,_0x272634,_0x223dcf,_0x4611ed){const _0x312609=_0x43dbb9;let _0x323004=_0x2275ba;if(!(_0x323004===_0x250922[_0x312609(0x1cd)]||_0x2275ba===_0x312609(0x1c3)))try{let _0x48c5de=new _0xf0c0c(_0x323004,_0x312609(0x259)+_0x2275ba);return _0x4611ed&&_0x48c5de[_0x312609(0x1a4)]({'adjustValues':_0x4611ed},!0x0),_0x48c5de[_0x312609(0x104)]({'width':_0x272634,'height':_0x223dcf}),_0x48c5de;}catch{return;}}[_0x43dbb9(0x1a6)](_0x56326f,_0x5d2afc,_0x5a0771){const _0x4a2c67=_0x43dbb9;let _0xad96f={'unitId':_0x56326f,'subUnitId':_0x5d2afc,'drawingId':_0x5a0771},_0x382d2b=this[_0x4a2c67(0xcc)][_0x4a2c67(0x171)](_0xad96f);if(!(!_0x382d2b||_0x382d2b['drawingType']!==_0x5d03f6[_0x4a2c67(0x20a)]))return _0x382d2b;}[_0x43dbb9(0x190)](_0x2a657d,_0x509f76,_0x3a3299){const _0x1807ef=_0x43dbb9;let _0x1f3076=this[_0x1807ef(0x87)][_0x1807ef(0x19c)](_0x2a657d);if(!_0x1f3076)return;let {scene:_0x5759b4}=_0x1f3076,_0x532d26=_0x7f2912({'unitId':_0x2a657d,'subUnitId':_0x509f76,'drawingId':_0x3a3299}),_0x36520c=_0x5759b4[_0x1807ef(0xad)](_0x532d26);if(_0x36520c instanceof _0x3100f0){let _0x4cdadf=_0x36520c[_0x1807ef(0x132)];if(_0x4cdadf)return{'prstGeom':_0x4cdadf,'adjustValues':_0x36520c[_0x1807ef(0x224)]};}}[_0x43dbb9(0x1c8)](_0x1dc7ff=!0x1){const _0x201aa2=_0x43dbb9;if(!this[_0x201aa2(0x238)]||!this[_0x201aa2(0x250)]||!this[_0x201aa2(0x169)])return;let _0x3b9702=this[_0x201aa2(0x87)][_0x201aa2(0x19c)](this[_0x201aa2(0x238)]);if(!_0x3b9702||!_0x3b9702['with'](_0x392ff0)['getCurrentSkeleton']())return;let {scene:_0x4a7af7}=_0x3b9702,_0x8faf29=this[_0x201aa2(0x1a6)](this[_0x201aa2(0x238)],this[_0x201aa2(0x250)],this['_activeImageId']);if(!_0x8faf29)return;let {transform:_0x10dd7c}=_0x8faf29;if(!_0x10dd7c)return;let {left:_0x2cb364,top:_0xbe4c4a,width:_0x46eb08,height:_0x427252,flipX:_0x362db1,flipY:_0x573adc,angle:_0xc01ef8=0x0}=_0x10dd7c;if(_0x2cb364===void 0x0||_0xbe4c4a===void 0x0)return;let _0x4d8198=this[_0x201aa2(0x190)](this['_unitId'],this[_0x201aa2(0x250)],this[_0x201aa2(0x169)]);if(!_0x4d8198)return;if(_0x1dc7ff){let _0x46f1e5=this[_0x201aa2(0x15e)](_0x4d8198[_0x201aa2(0x132)],_0x46eb08||0x0,_0x427252||0x0,_0x4d8198[_0x201aa2(0xef)]);if(!_0x46f1e5)return;this[_0x201aa2(0x2cd)]=_0x46f1e5[_0x201aa2(0x275)]();}let _0x4988b6=this['_activeAdjustPointList'];if(!(!_0x4988b6||_0x4988b6[_0x201aa2(0x15f)]===0x0))for(let _0x261092=0x0;_0x261092<_0x4988b6[_0x201aa2(0x15f)];_0x261092++){let _0x2558dd=_0x4988b6[_0x261092],_0x4c26c1=_0x2558dd['x'],_0x407e31=_0x2558dd['y'];if(_0x362db1&&(_0x4c26c1=(_0x46eb08||0x0)-_0x4c26c1),_0x573adc&&(_0x407e31=(_0x427252||0x0)-_0x407e31),_0xc01ef8!==0x0){let _0x593eab=(_0x46eb08||0x0)/0x2,_0x32dc9f=(_0x427252||0x0)/0x2,_0x5bfcf9=_0xc01ef8*Math['PI']/0xb4,_0x41fd72=Math[_0x201aa2(0x109)](_0x5bfcf9),_0xc88062=Math[_0x201aa2(0x1e6)](_0x5bfcf9),_0x461d70=_0x4c26c1-_0x593eab,_0x58288f=_0x407e31-_0x32dc9f;_0x4c26c1=_0x593eab+(_0x461d70*_0x41fd72-_0x58288f*_0xc88062),_0x407e31=_0x32dc9f+(_0x461d70*_0xc88062+_0x58288f*_0x41fd72);}let _0x37f031={'x':_0x4c26c1,'y':_0x407e31,'adjName':_0x2558dd['adjName']};this[_0x201aa2(0x2d2)](_0x4a7af7,_0x37f031,_0x37f031['adjName'],_0x2cb364,_0xbe4c4a,this[_0x201aa2(0x238)],this[_0x201aa2(0x250)]);}}[_0x43dbb9(0x2d2)](_0x3df7af,_0xd34090,_0x3fdd98,_0x283fcd,_0x19f9ac,_0x146883,_0xdb8dab){const _0x13b400=_0x43dbb9;if(!this[_0x13b400(0x169)])return;let _0x188549=_0x13b400(0x2a2)+this[_0x13b400(0x169)]+'-'+_0x3fdd98,_0x257a33=_0x3df7af[_0x13b400(0x1de)](_0x188549);if(_0x257a33){_0x257a33[_0x13b400(0x1c7)]({'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec[_0x13b400(0x86)],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)]});return;}let _0x2cf20a=new wn(_0x188549,{'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec['adjHandleSize'],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)],'adjName':_0x3fdd98,'shapeId':this[_0x13b400(0x169)],'unitId':_0x146883,'subUnitId':_0xdb8dab,'width':_0x2bc8ec[_0x13b400(0x86)]+0x8,'height':_0x2bc8ec[_0x13b400(0x86)]+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_shapes'][_0x13b400(0x241)](_0x2cf20a),this[_0x13b400(0x2e0)](_0x2cf20a,_0x3df7af,_0x3fdd98),_0x3df7af[_0x13b400(0xe9)](_0x2cf20a,_0x11332b+0x1);}[_0x43dbb9(0x186)](){const _0x1301b5=_0x43dbb9;this[_0x1301b5(0x176)]['length']!==0x0&&(this['_shapes'][_0x1301b5(0x200)](_0x52e184=>_0x52e184[_0x1301b5(0x2dd)]()),this[_0x1301b5(0x176)]=[]);}['_getScrollInfo'](_0x1ad32b,_0x104b0c){const _0x53f7e8=_0x43dbb9;var _0x2032b6;let _0x5ad3e9={'x':0x0,'y':0x0},_0x39bb25=this[_0x53f7e8(0x87)][_0x53f7e8(0x19c)](_0x1ad32b);if(!_0x39bb25||!_0x39bb25['with'](_0x392ff0)[_0x53f7e8(0x188)](_0x104b0c))return _0x5ad3e9;let _0x1a8320=_0x39bb25[_0x53f7e8(0x2ea)](_0xdbee74),_0x14643b=_0x1a8320==null?void 0x0:_0x1a8320['getCurrentScrollState']();if(!_0x14643b)return _0x5ad3e9;let _0x5f5ac4=(_0x2032b6=this[_0x53f7e8(0xcd)]['getUnit'](_0x1ad32b))==null?void 0x0:_0x2032b6[_0x53f7e8(0x148)](_0x104b0c);if(!_0x5f5ac4)return _0x5ad3e9;let _0x30d711=_0x1b930d(_0x14643b[_0x53f7e8(0x296)],_0x14643b[_0x53f7e8(0x286)],_0x39bb25[_0x53f7e8(0x128)],_0x5f5ac4);return _0x30d711?{'x':_0x30d711[_0x53f7e8(0x121)],'y':_0x30d711[_0x53f7e8(0x23f)]}:_0x5ad3e9;}[_0x43dbb9(0x155)](_0x5e10ae,_0x4d8847){const _0xec6b09=_0x43dbb9;var _0x397227,_0x2ef821;let _0x3bcb75=(_0x397227=this[_0xec6b09(0xcd)][_0xec6b09(0x150)](_0x5e10ae))==null?void 0x0:_0x397227[_0xec6b09(0x148)](_0x4d8847);return(_0x2ef821=_0x3bcb75==null?void 0x0:_0x3bcb75['getZoomRatio']())==null?0x1:_0x2ef821;}[_0x43dbb9(0x2e0)](_0x5bd7fd,_0x32d0b0,_0x3273ec){const _0x4e2590=_0x43dbb9;this[_0x4e2590(0x11b)](_0x43b296(_0x5bd7fd[_0x4e2590(0x12f)][_0x4e2590(0x17c)]((_0x476c0f,_0x31c873)=>{const _0x2c0b8c=_0x4e2590;var _0x516b0f,_0xd41a7d,_0x2023d1;let {unitId:_0x48de44,subUnitId:_0x434606,drawingId:_0x4658c2}=_0x5bd7fd['getDrawingSearch'](),_0x431862=this[_0x2c0b8c(0x1a6)](_0x48de44,_0x434606,_0x4658c2);if(!(_0x431862!=null&&_0x431862['transform']))return;let {left:_0x270a62,top:_0x13f657,width:_0x3eaa27,height:_0x306409}=_0x431862[_0x2c0b8c(0x10c)];this[_0x2c0b8c(0x283)]=_0x270a62||0x0,this['_baseTop']=_0x13f657||0x0,this[_0x2c0b8c(0x127)]=_0x3eaa27||0x0,this[_0x2c0b8c(0x233)]=_0x306409||0x0;let _0x320b89=!!((_0x516b0f=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0x516b0f[_0x2c0b8c(0x2d5)]),_0x263c29=!!((_0xd41a7d=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0xd41a7d[_0x2c0b8c(0x219)]),_0x134e72=((_0x2023d1=_0x431862[_0x2c0b8c(0x10c)])==null?void 0x0:_0x2023d1[_0x2c0b8c(0x2e1)])||0x0,_0x1966c6=this[_0x2c0b8c(0x190)](_0x48de44,_0x434606,_0x4658c2);if(!_0x1966c6)return;let _0xfbbbef=this[_0x2c0b8c(0x15e)](_0x1966c6[_0x2c0b8c(0x132)],this[_0x2c0b8c(0x127)],this[_0x2c0b8c(0x233)],_0x1966c6[_0x2c0b8c(0xef)]);if(!_0xfbbbef||(this[_0x2c0b8c(0x22b)]=_0xfbbbef,this['_activeAdjustInfo']=_0xfbbbef[_0x2c0b8c(0x2ae)](_0x3273ec),!this['_activeAdjustInfo']))return;this[_0x2c0b8c(0x258)]=!0x0,_0x32d0b0[_0x2c0b8c(0x1b8)]();let _0x4f565b=_0x1966c6[_0x2c0b8c(0x132)];this[_0x2c0b8c(0x1fa)]=_0x32d0b0[_0x2c0b8c(0x24b)][_0x2c0b8c(0x17c)]((_0x38ecb7,_0x2def4b)=>{const _0x221de2=_0x2c0b8c;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2e98cb,offsetY:_0x65777c}=_0x38ecb7,_0x699e4a=this[_0x221de2(0x257)];if(!this[_0x221de2(0x22b)]||!_0x699e4a)return;_0x32d0b0[_0x221de2(0x1b8)](),_0x32d0b0[_0x221de2(0xa2)](_0x110f16['CROSSHAIR']);let _0x16f103={'left':0x0,'top':0x0,'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]},_0x5e69bb=this['_getScrollInfo'](_0x48de44,_0x434606),_0x56d905=this[_0x221de2(0x155)](_0x48de44,_0x434606),_0x5e23cb=_0x2e98cb/_0x56d905+_0x5e69bb['x']-this['_baseLeft'],_0x422e49=_0x65777c/_0x56d905+_0x5e69bb['y']-this[_0x221de2(0x92)];if(_0x134e72!==0x0){let _0x2fbbc0=this[_0x221de2(0x127)]/0x2,_0x5d9f07=this[_0x221de2(0x233)]/0x2,_0x47baea=_0x134e72*Math['PI']/0xb4,_0x221ea3=Math[_0x221de2(0x109)](_0x47baea),_0x36035d=Math[_0x221de2(0x1e6)](_0x47baea),_0x2126f8=_0x5e23cb-_0x2fbbc0,_0x1bb8f1=_0x422e49-_0x5d9f07;_0x5e23cb=_0x2fbbc0+(_0x2126f8*_0x221ea3+_0x1bb8f1*_0x36035d),_0x422e49=_0x5d9f07+(-_0x2126f8*_0x36035d+_0x1bb8f1*_0x221ea3);}_0x320b89&&(_0x5e23cb=this[_0x221de2(0x127)]-_0x5e23cb),_0x263c29&&(_0x422e49=this[_0x221de2(0x233)]-_0x422e49);let _0x2da3ad=this[_0x221de2(0x22b)][_0x221de2(0x180)](_0x16f103,{'x':_0x5e23cb,'y':_0x422e49},_0x699e4a,_0x320b89,_0x263c29),_0x359261=_0x699e4a[_0x221de2(0xc3)]||_0x699e4a[_0x221de2(0x247)]||_0x699e4a[_0x221de2(0x2de)]||_0x699e4a[_0x221de2(0x2e5)];_0x359261!==void 0x0&&(this[_0x221de2(0x22b)][_0x221de2(0x12b)](_0x359261,_0x2da3ad),this[_0x221de2(0x22b)][_0x221de2(0x104)]({'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]}),this[_0x221de2(0x15b)](_0x48de44,_0x434606,_0x4658c2,_0x359261,_0x2da3ad),this[_0x221de2(0x2cd)]=this[_0x221de2(0x22b)]['getDrawingPoints'](),this['_activeAdjustInfo']=this[_0x221de2(0x22b)]['getAdjustInfoByName'](_0x3273ec),this[_0x221de2(0x1c8)](),_0x2def4b[_0x221de2(0x26a)]());}),this[_0x2c0b8c(0x276)]=_0x32d0b0['onPointerUp$'][_0x2c0b8c(0x17c)]((_0x56f091,_0x551942)=>{const _0x11fafa=_0x2c0b8c;if(this[_0x11fafa(0x1fa)][_0x11fafa(0x1dd)](),this['_adjHandlerPointerUp'][_0x11fafa(0x1dd)](),_0x32d0b0[_0x11fafa(0x15a)](),this[_0x11fafa(0x22b)]){let _0x1a929c=this[_0x11fafa(0x22b)]['getAdjustNames'](),_0x4026ed={};for(let _0x2c4c66 of _0x1a929c){let _0x2e7487=this[_0x11fafa(0x22b)][_0x11fafa(0x29f)](_0x2c4c66);_0x2e7487!==void 0x0&&(_0x4026ed[_0x2c4c66]=_0x2e7487);}this[_0x11fafa(0xf9)]['clipByShape'](_0x48de44,_0x434606,_0x4658c2,_0x4f565b,_0x4026ed);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x11fafa(0x258)]=!0x1,_0x551942[_0x11fafa(0x26a)](),_0x32d0b0['enableObjectsEvent']();}),_0x31c873[_0x2c0b8c(0x26a)]();})));}[_0x43dbb9(0x15b)](_0x19a038,_0x408ed9,_0x3b74bb,_0x41473e,_0x1f23ee){const _0x161c3c=_0x43dbb9;let _0x2f37a4=this[_0x161c3c(0x87)][_0x161c3c(0x19c)](_0x19a038);if(!_0x2f37a4)return;let {scene:_0x3d98e3}=_0x2f37a4,_0x43214e=_0x7f2912({'unitId':_0x19a038,'subUnitId':_0x408ed9,'drawingId':_0x3b74bb}),_0x39dddb=_0x3d98e3[_0x161c3c(0xad)](_0x43214e);if(_0x39dddb instanceof _0x3100f0){var _0x5ed587;let _0x1dadd6=(_0x5ed587=_0x39dddb['prstGeomAdjValues'])==null?{}:_0x5ed587;_0x39dddb['setPrstGeomAdjValues']({..._0x1dadd6,[_0x41473e]:_0x1f23ee}),_0x39dddb[_0x161c3c(0x15d)](!0x0);}}[_0x43dbb9(0x1ad)](){const _0x4865ae=_0x43dbb9;let _0xa9c7c3=this[_0x4865ae(0xcd)][_0x4865ae(0x240)](_0x2a1b28[_0x4865ae(0x1e0)]);this[_0x4865ae(0x11b)](_0xa9c7c3[_0x4865ae(0x24d)](_0x46afa7(_0x2b21a6=>_0x2b21a6?_0x2b21a6[_0x4865ae(0x117)][_0x4865ae(0x24d)](_0x46afa7(_0xf4c77e=>{const _0x20f6af=_0x4865ae;if(!_0xf4c77e)return _0x3149ab;let _0x53b246=_0x2b21a6['getUnitId'](),_0x4b126d=this[_0x20f6af(0x87)][_0x20f6af(0x19c)](_0x53b246),_0x59f98b=_0x4b126d==null?void 0x0:_0x4b126d['scene'];return _0x59f98b?_0x236700(_0x59f98b):_0x3149ab;})):_0x3149ab))[_0x4865ae(0x28f)](_0x197026=>{const _0x2c2bed=_0x4865ae;let _0x2b3eb4=_0x197026[_0x2c2bed(0x84)]();this[_0x2c2bed(0x11b)](_0x197026['onPointerMove$'][_0x2c2bed(0x17c)](()=>{const _0x188094=_0x2c2bed;this[_0x188094(0x292)]&&this[_0x188094(0x186)]();})),this['disposeWithMe'](_0x2b3eb4[_0x2c2bed(0x89)][_0x2c2bed(0x28f)](_0x24ae84=>{const _0x506320=_0x2c2bed;let {objects:_0x43a265}=_0x24ae84;if(this[_0x506320(0x1c8)](),_0x43a265!==null&&_0x43a265['size']===0x1){let _0x361a99=_0x43a265['values']()[_0x506320(0x166)]()[_0x506320(0x26b)];_0x361a99 instanceof _0x3100f0&&_0x361a99[_0x506320(0x132)]&&(this[_0x506320(0x292)]=!0x0);}})),this[_0x2c2bed(0x11b)](_0x2b3eb4[_0x2c2bed(0x18c)][_0x2c2bed(0x28f)](()=>{const _0x26289e=_0x2c2bed;this[_0x26289e(0x292)]&&this['_clearControls']();})),this[_0x2c2bed(0x11b)](_0x197026[_0x2c2bed(0x1bf)]['subscribeEvent'](()=>{const _0xbd47d4=_0x2c2bed;this[_0xbd47d4(0x292)]&&(this[_0xbd47d4(0x292)]=!0x1,this['_createControls']());})),this[_0x2c2bed(0x11b)](_0x2b3eb4['changeEnd$'][_0x2c2bed(0x28f)](()=>{const _0x3c57d4=_0x2c2bed;if(this['_unitId']&&this[_0x3c57d4(0x250)]&&this[_0x3c57d4(0x169)]){let _0x594c42=this[_0x3c57d4(0x190)](this[_0x3c57d4(0x238)],this['_subUnitId'],this['_activeImageId']);if(_0x594c42){var _0x5cfe43,_0x400363;let _0x5d1265=this[_0x3c57d4(0x1a6)](this[_0x3c57d4(0x238)],this['_subUnitId'],this[_0x3c57d4(0x169)]),_0x4292e8=(_0x5d1265==null||(_0x5cfe43=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x5cfe43[_0x3c57d4(0xf7)])||0x0,_0x1c7a99=(_0x5d1265==null||(_0x400363=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x400363[_0x3c57d4(0x1dc)])||0x0,_0x405239=this[_0x3c57d4(0x15e)](_0x594c42['prstGeom'],_0x4292e8,_0x1c7a99,_0x594c42['adjustValues']);_0x405239&&(this[_0x3c57d4(0x2cd)]=_0x405239[_0x3c57d4(0x275)](),this['_clearControls'](),this[_0x3c57d4(0x1c8)](!0x0));}}}));}));}[_0x43dbb9(0x2d8)](){const _0x30a934=_0x43dbb9;this['disposeWithMe'](this[_0x30a934(0xcc)]['focus$']['subscribe'](_0x462754=>{const _0x23aed7=_0x30a934;if(_0x462754[_0x23aed7(0x15f)]===0x1){let _0x435d09=_0x462754[0x0];if(_0x435d09[_0x23aed7(0x2cb)]===_0x5d03f6[_0x23aed7(0x20a)]){let {unitId:_0x13171f,subUnitId:_0x33cd56,drawingId:_0x4fa6ca}=_0x435d09,_0x376ff4=this['_getImagePrstGeom'](_0x13171f,_0x33cd56,_0x4fa6ca);if(_0x376ff4){var _0x1ed7ca,_0x145f9f;this[_0x23aed7(0x169)]=_0x4fa6ca,this[_0x23aed7(0x238)]=_0x13171f,this[_0x23aed7(0x250)]=_0x33cd56;let _0xfe433d=this[_0x23aed7(0x1a6)](_0x13171f,_0x33cd56,_0x4fa6ca),_0x391274=(_0xfe433d==null||(_0x1ed7ca=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x1ed7ca['width'])||0x0,_0x4d208f=(_0xfe433d==null||(_0x145f9f=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x145f9f[_0x23aed7(0x1dc)])||0x0,_0x5346d7=this[_0x23aed7(0x15e)](_0x376ff4[_0x23aed7(0x132)],_0x391274,_0x4d208f,_0x376ff4[_0x23aed7(0xef)]);_0x5346d7&&(this[_0x23aed7(0x2cd)]=_0x5346d7[_0x23aed7(0x275)]()),this[_0x23aed7(0x186)](),this[_0x23aed7(0x1c8)](!0x0);}else this[_0x23aed7(0x25b)]();}else this['_resetState']();}else this['_resetState']();})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)]['update$'][_0x30a934(0x28f)](_0x4735bf=>{const _0x2d15bd=_0x30a934;if(_0x4735bf['length']===0x1){let _0x1b9041=_0x4735bf[0x0],_0x58224c=this[_0x2d15bd(0xcc)][_0x2d15bd(0x171)](_0x1b9041);(_0x58224c==null?void 0x0:_0x58224c[_0x2d15bd(0x2cb)])===_0x5d03f6[_0x2d15bd(0x20a)]&&this[_0x2d15bd(0x169)]===_0x1b9041[_0x2d15bd(0x1a9)]&&(this[_0x2d15bd(0x186)](),this[_0x2d15bd(0x1c8)](!0x0));}})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)][_0x30a934(0xd6)]['subscribe'](_0x2d297e=>{const _0x396164=_0x30a934;for(let _0x4c519a of _0x2d297e)this[_0x396164(0x169)]===_0x4c519a[_0x396164(0x1a9)]&&this['_resetState']();}));}[_0x43dbb9(0x25b)](){const _0x2a79a9=_0x43dbb9;this[_0x2a79a9(0x169)]=null,this['_unitId']=null,this[_0x2a79a9(0x250)]=null,this[_0x2a79a9(0x2cd)]=void 0x0,this[_0x2a79a9(0x186)]();}};sr=Z([X(0x1,_0x324617),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x7113c7),X(0x4,_0x450bf3(Pn))],sr);let cr=class extends _0x4760b3{constructor(_0x4d135b,_0x5af0a8,_0x101cfc,_0x5dc4a9){const _0x3a993e=_0x43dbb9;super(),this['_univerInstanceService']=_0x4d135b,this['_sheetInterceptorService']=_0x5af0a8,this[_0x3a993e(0x1e4)]=_0x101cfc,this['_sheetsShapeService']=_0x5dc4a9,this[_0x3a993e(0x29e)]();}[_0x43dbb9(0x29e)](){const _0x1d9a5c=_0x43dbb9;this[_0x1d9a5c(0x11b)](this['_sheetInterceptorService'][_0x1d9a5c(0xc8)]({'getMutations':_0x55cb7b=>{const _0x47c182=_0x1d9a5c;if(_0x55cb7b['id']===_0x299032['id']){let _0x41400d=_0x59589e(this[_0x47c182(0xcd)],_0x55cb7b[_0x47c182(0x118)]);if(!_0x41400d)return{'redos':[],'undos':[]};let {unitId:_0x42d43e,subUnitId:_0x5081d9}=_0x41400d,_0x1ed26e=this['_sheetDrawingService'][_0x47c182(0x295)](_0x42d43e,_0x5081d9),_0x477213=Object[_0x47c182(0x133)](_0x1ed26e)[_0x47c182(0xb6)](_0x32bdd2=>_0x32bdd2[_0x47c182(0x2cb)]===_0x5d03f6[_0x47c182(0x23a)]);if(_0x477213[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0x2dc126=[],_0x13ab7b=[];for(let _0x1289b5=0x0;_0x1289b5<_0x477213[_0x47c182(0x15f)];_0x1289b5++){let _0x585798=_0x477213[_0x1289b5],_0x58336a=this[_0x47c182(0x1ff)]['getShapeModel'](_0x585798[_0x47c182(0x25d)],_0x585798[_0x47c182(0x212)],_0x585798['drawingId']);if(!_0x58336a)continue;let {redo:_0x25b128,undo:_0x387542,objects:_0x2c8c80}=this[_0x47c182(0x1e4)]['getBatchRemoveOp']([_0x585798]);_0x2dc126['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798['drawingId']}}),_0x2dc126[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be['REMOVE'],'op':_0x25b128,'objects':_0x2c8c80}}),_0x13ab7b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x387542,'objects':_0x2c8c80}}),_0x13ab7b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798[_0x47c182(0x1a9)],'shapeType':_0x58336a[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x58336a['getShapeData']()))}});}return{'redos':_0x2dc126,'undos':_0x13ab7b};}else{if(_0x55cb7b['id']===_0x16ae42['id']){let {unitId:_0x39e449,subUnitId:_0x547fa6,targetSubUnitId:_0x1b28a4}=_0x55cb7b['params'];if(!_0x39e449||!_0x547fa6||!_0x1b28a4)return{'redos':[],'undos':[]};let _0x776654=this[_0x47c182(0x1e4)][_0x47c182(0x295)](_0x39e449,_0x547fa6),_0xea449d=Object[_0x47c182(0x133)](_0x776654)[_0x47c182(0xb6)](_0x29a545=>_0x29a545[_0x47c182(0x2cb)]===_0x5d03f6['DRAWING_SHAPE']);if(_0xea449d[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0xef1e5b=[],_0x37ef29=[];for(let _0x3cfc7e=0x0;_0x3cfc7e<_0xea449d[_0x47c182(0x15f)];_0x3cfc7e++){let _0x2b4d60=_0xea449d[_0x3cfc7e],_0x2c3064=this[_0x47c182(0x1ff)][_0x47c182(0x251)](_0x2b4d60[_0x47c182(0x25d)],_0x2b4d60[_0x47c182(0x212)],_0x2b4d60[_0x47c182(0x1a9)]);if(!_0x2c3064)continue;let _0x3cafb3=_0x2bfd17(),_0x1e8ce4={..._0x2b4d60,'unitId':_0x39e449,'subUnitId':_0x1b28a4,'drawingId':_0x3cafb3},{redo:_0x3cc142,undo:_0x183d08,objects:_0x2e62ed}=this[_0x47c182(0x1e4)][_0x47c182(0x2e4)]([_0x1e8ce4]);_0xef1e5b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x3cc142,'objects':_0x2e62ed}}),_0xef1e5b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3,'shapeType':_0x2c3064[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x2c3064[_0x47c182(0x282)]()))}}),_0x37ef29[_0x47c182(0x241)]({'id':_0x35cadb['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3}}),_0x37ef29['push']({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0xa9)],'op':_0x183d08,'objects':_0x2e62ed}});}return{'redos':_0xef1e5b,'undos':_0x37ef29};}}return{'redos':[],'undos':[]};}}));}};cr=Z([X(0x0,_0x450bf3(_0x7113c7)),X(0x1,_0x450bf3(_0x9d40d)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217))],cr);let lr=class extends _0x4760b3{constructor(_0x447758,_0x4b8422,_0x248797,_0x4c076d,_0x5defc4){const _0x1ddc34=_0x43dbb9;super(),this[_0x1ddc34(0xfb)]=_0x447758,this['_shapeTextEditingService']=_0x4b8422,this[_0x1ddc34(0xcc)]=_0x248797,this[_0x1ddc34(0x216)]=_0x4c076d,this[_0x1ddc34(0x1ff)]=_0x5defc4,Y(this,'_lastEditingShapeKey',null),this[_0x1ddc34(0x163)](),this[_0x1ddc34(0x1f0)](),this[_0x1ddc34(0x2c3)]();}[_0x43dbb9(0x163)](){const _0x8aa2da=_0x43dbb9;let {scene:_0x369e7c}=this[_0x8aa2da(0xfb)];this[_0x8aa2da(0x11b)](_0x369e7c[_0x8aa2da(0x20d)][_0x8aa2da(0x17c)](_0x36102d=>{const _0x33c4d6=_0x8aa2da;let {offsetX:_0x3e5b99,offsetY:_0x1fd83a}=_0x36102d,_0x27831e=_0x369e7c[_0x33c4d6(0x214)](_0xf6e38e[_0x33c4d6(0x101)]([_0x3e5b99,_0x1fd83a]));if(_0x27831e instanceof Cn){let _0x545b1b=this[_0x33c4d6(0x1ff)]['getShapeModel'](_0x27831e[_0x33c4d6(0x25d)],_0x27831e[_0x33c4d6(0x212)],_0x27831e['shapeId']);if(_0x545b1b!=null&&_0x545b1b[_0x33c4d6(0x282)]()[_0x33c4d6(0x17a)]||_0x1f7f23(this[_0x33c4d6(0x1ff)][_0x33c4d6(0x2ad)](_0x27831e['unitId'],_0x27831e[_0x33c4d6(0x212)],_0x27831e[_0x33c4d6(0xfc)])))return;this['_shapeTextEditingService'][_0x33c4d6(0xc7)]({'visible':!0x0,'unitId':_0x27831e[_0x33c4d6(0x25d)],'subUnitId':_0x27831e[_0x33c4d6(0x212)],'shapeId':_0x27831e[_0x33c4d6(0xfc)],'shapeKey':_0x27831e[_0x33c4d6(0xe8)]});}}));}['_initSelection'](){const _0x2bfde6=_0x43dbb9;this[_0x2bfde6(0x11b)](this['_drawingManagerService'][_0x2bfde6(0x231)]['subscribe'](_0x4fb40e=>{const _0x490d6a=_0x2bfde6;if(_0x4fb40e[_0x490d6a(0x15f)]===0x1){let _0x4f99d7=_0x4fb40e[0x0],_0x307003=this[_0x490d6a(0xcc)][_0x490d6a(0x171)](_0x4f99d7);if((_0x307003==null?void 0x0:_0x307003[_0x490d6a(0x2cb)])===_0x5d03f6[_0x490d6a(0x23a)]){var _0x38cb74;let _0x5d3d17=this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]();if((_0x5d3d17==null?void 0x0:_0x5d3d17[_0x490d6a(0xfc)])===_0x4f99d7['drawingId']&&_0x5d3d17[_0x490d6a(0x2cc)])return;let _0x4ac6cf=_0x1f7f23(this[_0x490d6a(0x1ff)][_0x490d6a(0x2ad)](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)])),_0xf6824a=!!((_0x38cb74=this[_0x490d6a(0x1ff)]['getShapeModel'](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)]))!=null&&_0x38cb74[_0x490d6a(0x282)]()[_0x490d6a(0x17a)]);(_0x4ac6cf||_0xf6824a)&&this[_0x490d6a(0x1a8)][_0x490d6a(0xc7)](null);}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this[_0x490d6a(0x1a8)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0xf1a67=_0x490d6a;this['_shapeTextEditingService'][_0xf1a67(0xc7)](null);}));})),this[_0x2bfde6(0x11b)](this[_0x2bfde6(0xcc)][_0x2bfde6(0xd6)][_0x2bfde6(0x28f)](_0x74f032=>{const _0x3927e5=_0x2bfde6;let _0x265c8b=this[_0x3927e5(0x1a8)]['getEditing']();_0x265c8b&&_0x74f032['some'](_0x2292ba=>_0x2292ba[_0x3927e5(0x1a9)]===_0x265c8b[_0x3927e5(0xfc)])&&this[_0x3927e5(0x1a8)][_0x3927e5(0xc7)](null);}));}[_0x43dbb9(0x2c3)](){const _0x534fc6=_0x43dbb9;this['disposeWithMe'](this[_0x534fc6(0x1a8)][_0x534fc6(0x17b)][_0x534fc6(0x28f)](_0x46fd54=>{const _0x170417=_0x534fc6;let {scene:_0x3c4455}=this[_0x170417(0xfb)];if(this[_0x170417(0x263)]){let _0x5dec60=_0x3c4455[_0x170417(0x1de)](this['_lastEditingShapeKey']);_0x5dec60&&_0x5dec60[_0x170417(0xc7)](!0x1);}if(_0x46fd54){let _0x55828a=!!_0x46fd54['visible'],_0x1e7ced=_0x3c4455[_0x170417(0x1de)](_0x46fd54[_0x170417(0x16b)]);_0x1e7ced&&(_0x1e7ced[_0x170417(0xc7)](_0x55828a),this['_lastEditingShapeKey']=_0x46fd54[_0x170417(0x16b)]),this[_0x170417(0x216)]['setContextValue'](_0x4d1a78,_0x55828a);}else this[_0x170417(0x263)]=null,this[_0x170417(0x216)][_0x170417(0x1c9)](_0x4d1a78,!0x1);}));}};lr=Z([X(0x1,_0x450bf3(ir)),X(0x2,_0x324617),X(0x3,_0x21d773),X(0x4,_0x450bf3(_0x26a217))],lr);let ur=class extends _0xd3a510{constructor(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e){super(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e,{'componentKey':Mn,'editorUnitId':jn});}};ur=Z([X(0x1,_0x450bf3(_0x1263d4)),X(0x2,_0x450bf3(_0x86b0a2)),X(0x3,_0x450bf3(_0x7b1fa8))],ur);let dr=class extends _0x4760b3{constructor(_0x4e6e39,_0xf7cd6b,_0x9de519,_0x1b7ab4,_0x4bbaa2,_0x426fcb){const _0xd77912=_0x43dbb9;super(),this[_0xd77912(0x285)]=_0x4e6e39,this[_0xd77912(0x87)]=_0xf7cd6b,this['_drawingManagerService']=_0x9de519,this['_currentUniverService']=_0x1b7ab4,this['_drawingRenderService']=_0x4bbaa2,this[_0xd77912(0x2d9)]=_0x426fcb,Y(this,_0xd77912(0x107),new Set()),this[_0xd77912(0xc2)]();}['_initialize'](){const _0x422ce0=_0x43dbb9;this[_0x422ce0(0x114)](),this[_0x422ce0(0x11d)](),this[_0x422ce0(0xbe)]();}[_0x43dbb9(0x114)](){const _0x42ed87=_0x43dbb9;this['disposeWithMe'](this[_0x42ed87(0xcc)][_0x42ed87(0x17e)][_0x42ed87(0x28f)](_0x1f2977=>{const _0x16af51=_0x42ed87;this[_0x16af51(0x2af)](_0x1f2977);}));}[_0x43dbb9(0x11d)](){const _0x43aa82=_0x43dbb9;this['disposeWithMe'](this[_0x43aa82(0x285)][_0x43aa82(0x1f7)](_0x1319f9=>{const _0x115f82=_0x43aa82;if(_0x1319f9['id']===_0x19b81c['id']){let {unitId:_0x18d03a,subUnitId:_0x2d2e92,shapeId:_0x23920b}=_0x1319f9[_0x115f82(0x118)],_0xefc99a=this[_0x115f82(0x122)](_0x18d03a),_0x16b572=_0x7f2912({'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'drawingId':_0x23920b}),_0x5c9369=_0xefc99a==null?void 0x0:_0xefc99a['scene'][_0x115f82(0x1de)](_0x16b572);_0x5c9369&&(this[_0x115f82(0x2d9)]['refreshShapeFillImage'](_0x5c9369),this[_0x115f82(0x2d9)][_0x115f82(0xac)](_0x5c9369,{'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'shapeId':_0x23920b}),_0x5c9369[_0x115f82(0x15d)](!0x0));return;}if(_0x1319f9['id']===_0x5addb7['id']){var _0x5cc455;let {unitId:_0x131187,subUnitId:_0x13fd38,shapeId:_0xbf195e}=_0x1319f9[_0x115f82(0x118)],_0xdd4784=this[_0x115f82(0x122)](_0x131187);if(_0xdd4784==null)return;let {scene:_0x11eebd}=_0xdd4784,_0x582c10=_0x7f2912({'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}),_0x52eda1=_0x11eebd[_0x115f82(0x1de)](_0x582c10);if(!((_0x5cc455=this[_0x115f82(0x87)][_0x115f82(0x19c)](_0x131187))!=null&&_0x5cc455[_0x115f82(0x2ea)](_0x392ff0)[_0x115f82(0x188)](_0x13fd38)))return!0x1;if(_0x52eda1)return;this[_0x115f82(0x2af)]([{'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}]);}}));}['_shapeUpdateListener'](){const _0x219ebd=_0x43dbb9;this[_0x219ebd(0x11b)](this[_0x219ebd(0xcc)][_0x219ebd(0x105)]['subscribe'](_0x4518c9=>{const _0x2883f0=_0x219ebd;_0x4518c9[_0x2883f0(0x200)](_0x16d760=>{const _0x332fea=_0x2883f0;let {unitId:_0x5686fa,subUnitId:_0x10a6fc,drawingId:_0x3b3c2c}=_0x16d760,_0xea9eff=this[_0x332fea(0xcc)][_0x332fea(0x171)](_0x16d760);if(_0xea9eff==null)return;let {transform:_0x14e06c,drawingType:_0x19b546,srcRect:_0x1ade6a,prstGeom:_0x2e5400}=_0xea9eff;if(_0x19b546!==_0x5d03f6[_0x332fea(0x23a)])return;let _0x3afcb6=this[_0x332fea(0x122)](_0x5686fa);if(_0x3afcb6==null)return;let {scene:_0x2412e8,transformer:_0x3909dd}=_0x3afcb6;if(_0x14e06c==null)return!0x0;let _0x50cd98=_0x7f2912({'unitId':_0x5686fa,'subUnitId':_0x10a6fc,'drawingId':_0x3b3c2c}),_0x25d604=_0x2412e8[_0x332fea(0x1de)](_0x50cd98);if(_0x25d604==null)return!0x0;_0x25d604[_0x332fea(0x20f)](_0x1ade6a),_0x25d604[_0x332fea(0x234)](_0x2e5400);});}));}[_0x43dbb9(0x2af)](_0x57ffc3){const _0x30f431=_0x43dbb9;for(let _0x3f2109 of _0x57ffc3){var _0x2390d3;let {unitId:_0x2cd993,subUnitId:_0x125d00,drawingId:_0x4391f4}=_0x3f2109,_0x163a93=this['_getSceneAndTransformerByDrawingSearch'](_0x2cd993),_0x4fed68=(_0x2390d3=_0x4a469b(this[_0x30f431(0x112)],_0x2cd993))==null?void 0x0:_0x2390d3[_0x30f431(0x212)];if(_0x163a93==null||_0x4fed68!==_0x125d00)return;let _0x547f79=_0x7f2912({'unitId':_0x2cd993,'subUnitId':_0x125d00,'drawingId':_0x4391f4});if(this[_0x30f431(0x107)]['has'](_0x547f79)||_0x163a93[_0x30f431(0x128)][_0x30f431(0x1de)](_0x547f79)!=null)return;let _0x2abd0c=this[_0x30f431(0xcc)]['getDrawingByParam'](_0x3f2109);if(_0x2abd0c==null||_0x2abd0c[_0x30f431(0x2cb)]!==_0x5d03f6[_0x30f431(0x23a)])return;if(_0x1f7f23((_0x2abd0c[_0x30f431(0x1f8)]||{})['shapeType'])){let _0x6c97cb=_0x2abd0c['transform'];_0x6c97cb&&(_0x2abd0c[_0x30f431(0x10c)]={..._0x6c97cb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x30f431(0x10b)](_0x547f79);try{this[_0x30f431(0x2d9)][_0x30f431(0x1e7)](_0x2abd0c,_0x163a93['scene']);}finally{this[_0x30f431(0x107)]['delete'](_0x547f79);}queueMicrotask(()=>{const _0x3c0c93=_0x30f431;if(this['_disposed'])return;let _0x229d2e=_0x7f2912(_0x3f2109);if(!_0x163a93[_0x3c0c93(0x128)]['getObjectIncludeInGroup'](_0x229d2e))return;let _0x72fd8b=this[_0x3c0c93(0xcc)][_0x3c0c93(0x171)](_0x3f2109);_0x72fd8b&&this[_0x3c0c93(0xcc)]['refreshTransform']([_0x72fd8b]);});}}[_0x43dbb9(0x122)](_0x2a462c){const _0x13f766=_0x43dbb9;if(_0x2a462c==null)return;let _0x48d00d=this[_0x13f766(0x87)][_0x13f766(0x19c)](_0x2a462c),_0x3ed34c=_0x48d00d==null?void 0x0:_0x48d00d[_0x13f766(0x128)];return _0x3ed34c==null?null:{'scene':_0x3ed34c,'transformer':_0x3ed34c[_0x13f766(0x84)]()};}};dr=Z([X(0x0,_0x4d9cac),X(0x1,_0x263af6),X(0x2,_0x324617),X(0x3,_0x7113c7),X(0x4,_0x450bf3(_0x4d43e7)),X(0x5,_0x450bf3(Q))],dr);const fr={'normal':{'fill':_0x2bc8ec[_0x43dbb9(0x2ac)],'stroke':_0x2bc8ec['cxnPointStroke'],'strokeWidth':_0x2bc8ec[_0x43dbb9(0x19b)]},'highlighted':{'fill':'#4285f4','stroke':_0x43dbb9(0x126),'strokeWidth':0x2}};var pr=class extends _0x300c3f{constructor(_0x44422d,_0x201cfc){const _0x494407=_0x43dbb9;super(_0x44422d,_0x201cfc),Y(this,_0x494407(0x22e),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x494407(0x238),''),Y(this,_0x494407(0x250),''),Y(this,_0x494407(0x2b3),!0x1),_0x201cfc&&this[_0x494407(0x152)](_0x201cfc);}[_0x43dbb9(0x18f)](){const _0x5a1892=_0x43dbb9;return{'unitId':this[_0x5a1892(0x238)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x5a1892(0x22e)],'cxnIndex':this[_0x5a1892(0x1d7)]};}[_0x43dbb9(0x14b)](_0x1edf57){const _0x20b792=_0x43dbb9;this[_0x20b792(0x2b3)]!==_0x1edf57&&(this[_0x20b792(0x2b3)]=_0x1edf57,this[_0x20b792(0x15d)](!0x0));}[_0x43dbb9(0x9d)](){const _0x123f13=_0x43dbb9;return this[_0x123f13(0x2b3)];}[_0x43dbb9(0x152)](_0x5abfe4){const _0x2e2ff9=_0x43dbb9;var _0x3b5383,_0x51b7e6;_0x5abfe4[_0x2e2ff9(0x215)]!==void 0x0&&(this['_targetShapeId']=_0x5abfe4[_0x2e2ff9(0x215)]),_0x5abfe4[_0x2e2ff9(0x162)]!==void 0x0&&(this[_0x2e2ff9(0x1d7)]=_0x5abfe4[_0x2e2ff9(0x162)]),_0x5abfe4['unitId']!==void 0x0&&(this[_0x2e2ff9(0x238)]=_0x5abfe4['unitId']),_0x5abfe4[_0x2e2ff9(0x212)]!==void 0x0&&(this['_subUnitId']=_0x5abfe4[_0x2e2ff9(0x212)]),_0x5abfe4[_0x2e2ff9(0x9d)]!==void 0x0&&(this['_isHighlighted']=_0x5abfe4[_0x2e2ff9(0x9d)]),this[_0x2e2ff9(0x1c7)]({'width':(_0x3b5383=_0x5abfe4[_0x2e2ff9(0xf7)])==null?_0x2bc8ec['cxnPointRadius']*0x2:_0x3b5383,'height':(_0x51b7e6=_0x5abfe4[_0x2e2ff9(0x1dc)])==null?_0x2bc8ec[_0x2e2ff9(0xa5)]*0x2:_0x51b7e6});}[_0x43dbb9(0xd0)](_0x1a29d5){const _0x85164e=_0x43dbb9;let _0x566bd2=this[_0x85164e(0x2b3)]?fr[_0x85164e(0x139)]:fr[_0x85164e(0x28a)];_0x536c54['drawWith'](_0x1a29d5,{'radius':_0x2bc8ec[_0x85164e(0xa5)],'fill':_0x566bd2['fill'],'stroke':_0x566bd2['stroke'],'strokeWidth':_0x566bd2['strokeWidth'],'evented':!0x0});}};let mr=class extends _0x4760b3{constructor(_0x2799db,_0x236471,_0x22648d,_0x5c36fd){const _0x100416=_0x43dbb9;super(),this[_0x100416(0xfb)]=_0x2799db,this[_0x100416(0x87)]=_0x236471,this[_0x100416(0xcc)]=_0x22648d,this[_0x100416(0x1ff)]=_0x5c36fd,Y(this,_0x100416(0x19a),[]),Y(this,_0x100416(0x16f),null),Y(this,_0x100416(0xf8),-0x1),Y(this,_0x100416(0x113),null),Y(this,_0x100416(0x238),''),Y(this,_0x100416(0x250),''),Y(this,_0x100416(0x24f),null);}['startConnectionDetection'](_0x46b321,_0x44f986,_0x399bc4,_0x1caa7e){const _0x50083d=_0x43dbb9;this[_0x50083d(0x113)]=_0x46b321,this[_0x50083d(0x238)]=_0x44f986,this[_0x50083d(0x250)]=_0x399bc4,this['_draggingConnectorId']=_0x1caa7e;}['updateConnectionDetection'](_0x5c5346){const _0x1e7c0a=_0x43dbb9;if(!this['_currentScene'])return null;let _0x5e130b=this[_0x1e7c0a(0xbb)](_0x5c5346);return _0x5e130b?(this[_0x1e7c0a(0x16f)]!==_0x5e130b[_0x1e7c0a(0xfc)]&&(this[_0x1e7c0a(0x14a)](),this['_showConnectionSites'](_0x5e130b[_0x1e7c0a(0xfc)],_0x5e130b[_0x1e7c0a(0xc0)]),this[_0x1e7c0a(0x16f)]=_0x5e130b[_0x1e7c0a(0xfc)]),this[_0x1e7c0a(0xa1)](_0x5c5346)):(this[_0x1e7c0a(0x16f)]!==null&&(this[_0x1e7c0a(0x14a)](),this[_0x1e7c0a(0x16f)]=null),null);}['endConnectionDetection'](){const _0x1354df=_0x43dbb9;this[_0x1354df(0x14a)](),this[_0x1354df(0x113)]=null,this[_0x1354df(0x16f)]=null,this[_0x1354df(0xf8)]=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x3c79db=_0x43dbb9;return this[_0x3c79db(0x16f)]===null||this[_0x3c79db(0xf8)]<0x0?null:{'shapeId':this[_0x3c79db(0x16f)],'cxnIndex':this[_0x3c79db(0xf8)]};}[_0x43dbb9(0xbb)](_0x1c2e53){const _0x2af299=_0x43dbb9;let _0x4fe051=this[_0x2af299(0xcc)]['getDrawingData'](this[_0x2af299(0x238)],this['_subUnitId']);for(let _0x19158c of Object[_0x2af299(0x293)](_0x4fe051)){if(_0x19158c===this[_0x2af299(0x24f)]||_0x4fe051[_0x19158c][_0x2af299(0x2cb)]!==_0x5d03f6[_0x2af299(0x23a)])continue;let _0x52d226=this[_0x2af299(0x1ff)][_0x2af299(0x251)](this['_unitId'],this[_0x2af299(0x250)],_0x19158c);if(!_0x52d226||_0x1f7f23(_0x52d226[_0x2af299(0x2ad)]())||_0x52d226[_0x2af299(0x201)]()[_0x2af299(0x15f)]===0x0||!this[_0x2af299(0x113)])continue;let _0xafb65d=_0x7f2912({'unitId':this[_0x2af299(0x238)],'subUnitId':this[_0x2af299(0x250)],'drawingId':_0x19158c}),_0x3f13c7=this[_0x2af299(0x113)][_0x2af299(0x1de)](_0xafb65d);if(!_0x3f13c7)continue;let {left:_0x45cc75,top:_0x31cdec,width:_0x4b24da,height:_0x24ebf5}=_0x3f13c7[_0x2af299(0x272)](),_0x2a7fe0=_0x45cc75+_0x4b24da/0x2,_0x5b0797=_0x31cdec+_0x24ebf5/0x2,_0x7788b4=_0x3f13c7[_0x2af299(0x10c)][_0x2af299(0x1b9)](),_0x51e80c=new _0x112a4b([_0x7788b4[0x0],_0x7788b4[0x1],_0x7788b4[0x2],_0x7788b4[0x3],_0x2a7fe0,_0x5b0797]),_0x5d8d5a=_0x3f13c7[_0x2af299(0x1d9)](),_0x251a80=(_0x3f13c7[_0x2af299(0xa8)]&&(_0x5d8d5a==null?void 0x0:_0x5d8d5a[_0x2af299(0x19d)])===_0x842655[_0x2af299(0xf6)]?_0x5d8d5a['ancestorTransform'][_0x2af299(0xcf)](_0x51e80c):_0x51e80c)[_0x2af299(0x23b)]()[_0x2af299(0x22c)](_0x1c2e53),_0x4b1526=_0x4b24da/0x2,_0x4dea20=_0x24ebf5/0x2;if(_0x251a80['x']>=-_0x4b1526-0x5&&_0x251a80['x']<=_0x4b1526+0x5&&_0x251a80['y']>=-_0x4dea20-0x5&&_0x251a80['y']<=_0x4dea20+0x5)return{'shapeId':_0x19158c,'shapeModel':_0x52d226};}return null;}[_0x43dbb9(0x158)](_0x524814,_0x436922){const _0x12115c=_0x43dbb9;if(!this[_0x12115c(0x113)])return;let _0x73096b=_0x7f2912({'unitId':this[_0x12115c(0x238)],'subUnitId':this['_subUnitId'],'drawingId':_0x524814}),_0x53afdd=this[_0x12115c(0x113)][_0x12115c(0x1de)](_0x73096b);if(!_0x53afdd)return;let {left:_0x3c8c9e,top:_0x4f51a0,width:_0x13aa22,height:_0x4dcb40}=_0x53afdd['getRealBound'](),_0x624c3d=_0x3c8c9e+_0x13aa22/0x2,_0x31480c=_0x4f51a0+_0x4dcb40/0x2,_0x492a61=_0x53afdd[_0x12115c(0x10c)][_0x12115c(0x1b9)](),_0x47bafa=new _0x112a4b([_0x492a61[0x0],_0x492a61[0x1],_0x492a61[0x2],_0x492a61[0x3],_0x624c3d,_0x31480c]),_0x2eeabe=_0x53afdd[_0x12115c(0x1d9)](),_0x59dd43=_0x53afdd[_0x12115c(0xa8)]&&(_0x2eeabe==null?void 0x0:_0x2eeabe[_0x12115c(0x19d)])===_0x842655[_0x12115c(0xf6)]?_0x2eeabe[_0x12115c(0x8b)][_0x12115c(0xcf)](_0x47bafa):_0x47bafa;_0x436922[_0x12115c(0x104)]({'width':_0x13aa22,'height':_0x4dcb40});let _0x29ff66=_0x436922[_0x12115c(0x201)]();for(let _0x3be0ca of _0x29ff66){let _0x81174a=_0x3be0ca['x']-_0x13aa22/0x2,_0x3f2367=_0x3be0ca['y']-_0x4dcb40/0x2,_0x54e7a5=_0x59dd43[_0x12115c(0x22c)]({'x':_0x81174a,'y':_0x3f2367}),_0xf3020d=_0x54e7a5['x'],_0x33f3da=_0x54e7a5['y'],_0x7abb02=new pr(_0x12115c(0x243)+_0x524814+'-'+_0x3be0ca[_0x12115c(0x2b9)],{'left':_0xf3020d-_0x2bc8ec[_0x12115c(0xa5)],'top':_0x33f3da-_0x2bc8ec[_0x12115c(0xa5)],'targetShapeId':_0x524814,'cxnIndex':_0x3be0ca['index'],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'height':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'zIndex':_0x11332b+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x12115c(0x241)](_0x7abb02),this['_currentScene'][_0x12115c(0xe9)](_0x7abb02,_0x11332b+0x2);}}[_0x43dbb9(0xa1)](_0x8987eb){const _0x32d4be=_0x43dbb9;let _0x3fccce=null,_0x250448=0x1/0x0,_0x1130b8=null;for(let _0x45db1b of this[_0x32d4be(0x19a)]){let _0x118da8=_0x45db1b[_0x32d4be(0x11f)]+_0x2bc8ec['cxnPointRadius'],_0x442b66=_0x45db1b['top']+_0x2bc8ec['cxnPointRadius'],_0x22a14e=_0x8987eb['x']-_0x118da8,_0x1fab3f=_0x8987eb['y']-_0x442b66,_0x5b65f5=Math['sqrt'](_0x22a14e*_0x22a14e+_0x1fab3f*_0x1fab3f);_0x5b65f5<_0x250448&&(_0x250448=_0x5b65f5,_0x3fccce=_0x45db1b,_0x1130b8={'x':_0x118da8,'y':_0x442b66});}let _0x2bd6ed=_0x250448<=0xa&&_0x3fccce?_0x3fccce[_0x32d4be(0x18f)]()[_0x32d4be(0x162)]:-0x1;if(_0x2bd6ed!==this[_0x32d4be(0xf8)]){for(let _0x2b104e of this[_0x32d4be(0x19a)]){let _0x49c445=_0x2b104e['getConnectionInfo']();_0x2b104e[_0x32d4be(0x14b)](_0x49c445[_0x32d4be(0x162)]===_0x2bd6ed);}this[_0x32d4be(0xf8)]=_0x2bd6ed;}if(_0x250448<=0xa&&_0x3fccce&&_0x1130b8){let _0x583290=_0x3fccce['getConnectionInfo'](),_0x413cb9=this[_0x32d4be(0x29b)](_0x583290[_0x32d4be(0xfc)],_0x583290[_0x32d4be(0x162)]);return{'shapeId':_0x583290[_0x32d4be(0xfc)],'cxnIndex':_0x583290[_0x32d4be(0x162)],'unitId':_0x583290[_0x32d4be(0x25d)],'subUnitId':_0x583290[_0x32d4be(0x212)],'worldPoint':_0x1130b8,'angle':_0x413cb9};}return null;}['_getConnectionSiteAngle'](_0x77d2aa,_0x4b6a70){const _0x1b772c=_0x43dbb9;let _0x50393c=this[_0x1b772c(0x1ff)][_0x1b772c(0x251)](this['_unitId'],this[_0x1b772c(0x250)],_0x77d2aa);if(!_0x50393c)return 0x0;let _0x294f3e=this[_0x1b772c(0xcc)][_0x1b772c(0x171)]({'unitId':this[_0x1b772c(0x238)],'subUnitId':this[_0x1b772c(0x250)],'drawingId':_0x77d2aa});if(!(_0x294f3e!=null&&_0x294f3e[_0x1b772c(0x10c)]))return 0x0;let {width:_0x12ce91=0x0,height:_0x325196=0x0,flipX:_0x4ed780=!0x1,flipY:_0x55324f=!0x1}=_0x294f3e['transform'];_0x50393c['updateContext']({'width':_0x12ce91,'height':_0x325196});let _0x3f94c4=_0x50393c[_0x1b772c(0x201)]()[_0x1b772c(0x218)](_0x28be57=>_0x28be57[_0x1b772c(0x2b9)]===_0x4b6a70);if(!_0x3f94c4)return 0x0;let _0x5efa5b=_0x3f94c4[_0x1b772c(0x26c)]/0xea60;return _0x4ed780&&(_0x5efa5b=0xb4-_0x5efa5b),_0x55324f&&(_0x5efa5b=-_0x5efa5b),_0x5efa5b=(_0x5efa5b%0x168+0x168)%0x168,_0x5efa5b;}[_0x43dbb9(0x14a)](){const _0x1bd162=_0x43dbb9;for(let _0x1c4009 of this[_0x1bd162(0x19a)])_0x1c4009[_0x1bd162(0x2dd)]();this[_0x1bd162(0x19a)]=[],this[_0x1bd162(0xf8)]=-0x1;}[_0x43dbb9(0x2dd)](){const _0x12cc18=_0x43dbb9;this[_0x12cc18(0x14a)](),super[_0x12cc18(0x2dd)]();}};mr=Z([X(0x1,_0x450bf3(_0x263af6)),X(0x2,_0x450bf3(_0x324617)),X(0x3,_0x450bf3(_0x26a217))],mr);let hr=class extends _0x4760b3{constructor(_0x33b1e7,_0x12b974,_0x43212c,_0x2c86b1,_0x4e1897){const _0x175a72=_0x43dbb9;super(),this[_0x175a72(0x209)]=_0x33b1e7,this[_0x175a72(0xe4)]=_0x12b974,this[_0x175a72(0x1e4)]=_0x43212c,this['_shapeService']=_0x2c86b1,this[_0x175a72(0x1e2)]=_0x4e1897,Y(this,'_copyInfo',void 0x0),this[_0x175a72(0x13e)](),this[_0x175a72(0x1d2)]();}get[_0x43dbb9(0x2ba)](){const _0x55536a=_0x43dbb9;return this[_0x55536a(0x1e4)][_0x55536a(0x27f)]();}[_0x43dbb9(0x1d2)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x2e47bf,fromSubUnitId:_0x50e800,toUnitId:_0x3c6749,toSubUnitId:_0x124be4,idMap:_0x28da81})=>{const _0x789b09=_0x449a;let _0x2c5a43=[],_0x356624=[];for(let [_0x23da29,_0x229113]of _0x28da81[_0x789b09(0xb5)]()){let _0x4cc6d0=this[_0x789b09(0x1ba)][_0x789b09(0x251)](_0x2e47bf,_0x50e800,_0x23da29);if(!_0x4cc6d0)continue;let _0x35d20f=_0x4cc6d0[_0x789b09(0x2ad)](),_0x14c4e4=JSON[_0x789b09(0x154)](JSON[_0x789b09(0x2d1)](_0x4cc6d0[_0x789b09(0x282)]()));if(_0x14c4e4[_0x789b09(0x270)]){var _0x64648c,_0x76cc93;let _0x5a9bad=(_0x64648c=_0x14c4e4['relation'][_0x789b09(0x23c)])==null?void 0x0:_0x64648c['shapeId'],_0x5279b1=(_0x76cc93=_0x14c4e4[_0x789b09(0x270)]['to'])==null?void 0x0:_0x76cc93[_0x789b09(0xfc)],_0x315e5e=_0x5a9bad?_0x28da81['has'](_0x5a9bad):!0x0,_0x5b04ad=_0x5279b1?_0x28da81[_0x789b09(0x2b0)](_0x5279b1):!0x0;_0x315e5e&&_0x5a9bad&&_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]?_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]={..._0x14c4e4['relation']['from'],'shapeId':_0x28da81['get'](_0x5a9bad)}:_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]=void 0x0,_0x5b04ad&&_0x5279b1&&_0x14c4e4[_0x789b09(0x270)]['to']?_0x14c4e4[_0x789b09(0x270)]['to']={..._0x14c4e4['relation']['to'],'shapeId':_0x28da81['get'](_0x5279b1)}:_0x14c4e4[_0x789b09(0x270)]['to']=void 0x0;}_0x2c5a43[_0x789b09(0x241)]({'id':_0x5addb7['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113,'shapeType':_0x35d20f,'shapeData':_0x14c4e4}}),_0x356624['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113}});}return{'redos':_0x2c5a43,'undos':_0x356624};});}[_0x43dbb9(0x13e)](){const _0x100c04=_0x43dbb9;this[_0x100c04(0x11b)](this[_0x100c04(0xe4)][_0x100c04(0x1c0)]({'id':_0x100c04(0x149),'onBeforeCopy':(_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0)=>{const _0x5a978a=_0x100c04;this[_0x5a978a(0x189)]=null;let _0x2e4ae5=this[_0x5a978a(0x2ba)];if(_0x2e4ae5[_0x5a978a(0x15f)]){let _0x2183d9=_0x2e4ae5[_0x5a978a(0xb6)](_0x30e0cd=>_0x30e0cd[_0x5a978a(0x2cb)]===_0x5d03f6[_0x5a978a(0x23a)]);if(_0x2183d9[_0x5a978a(0x15f)]===0x0)return;this[_0x5a978a(0x189)]={'unitId':_0x38f690,'subUnitId':_0x2242ab,'copyType':_0x276aa0,'drawings':_0x2183d9};}else this[_0x5a978a(0x12c)](_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0);},'onPasteCells':(_0xf735ca,_0x277317,_0xc17230,_0x4517a1)=>{const _0x482fd5=_0x100c04;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x42d083}=_0x4517a1;return _0x42d083===_0x32e6c9[_0x482fd5(0x27a)]?this[_0x482fd5(0x2ab)](_0x277317,this[_0x482fd5(0x189)][_0x482fd5(0x1fc)]===_0x202be0[_0x482fd5(0xd2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x4ce6ff=>this[_0x100c04(0x189)]?this[_0x100c04(0x2ab)](_0x4ce6ff,this['_copyInfo'][_0x100c04(0x1fc)]===_0x202be0[_0x100c04(0xd2)]):{'redos':[],'undos':[]}}));}[_0x43dbb9(0x12c)](_0x421ce1,_0x165958,_0x9ea7d5,_0x1c713e){const _0x4307df=_0x43dbb9;let _0x11d473=this[_0x4307df(0x209)][_0x4307df(0x188)](_0x421ce1,_0x165958);if(!_0x11d473)return;let _0x44bbbc=_0x403c80(_0x11d473,_0x9ea7d5);if(!_0x44bbbc)return;let {startX:_0x54e704,endX:_0x58f0a8,startY:_0x32149e,endY:_0x1796fe}=_0x44bbbc,_0x56a0e0=this[_0x4307df(0x1e4)][_0x4307df(0x295)](_0x421ce1,_0x165958),_0xa53a75=this[_0x4307df(0x2ba)][_0x4307df(0x21f)]();for(let [_0x5f0fcd,_0x2a6592]of Object[_0x4307df(0xb5)](_0x56a0e0)){if(_0x2a6592[_0x4307df(0x2cb)]!==_0x5d03f6[_0x4307df(0x23a)])continue;let {transform:_0x1fa163}=_0x2a6592;if(!_0x1fa163)continue;let {left:_0x2e6c34=0x0,top:_0x48e3b8=0x0,width:_0x315367=0x0,height:_0x34c20f=0x0}=_0x1fa163;_0x54e704<=_0x2e6c34&&_0x58f0a8>=_0x2e6c34+_0x315367&&_0x32149e<=_0x48e3b8&&_0x1796fe>=_0x48e3b8+_0x34c20f&&_0xa53a75[_0x4307df(0x241)](_0x2a6592);}_0xa53a75[_0x4307df(0x15f)]>0x0&&(this[_0x4307df(0x189)]={'unitId':_0x421ce1,'subUnitId':_0x165958,'copyType':_0x1c713e,'copyRange':_0x9ea7d5,'drawings':_0xa53a75});}['_generatePasteMutations'](_0x3f2541,_0xbe21ed){const _0x2f3fec=_0x43dbb9;let {unitId:_0x15517c,subUnitId:_0x3bef1f,range:_0x2e39d0}=_0x3f2541,_0x4c4fa9=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x15517c,_0x3bef1f);if(!_0x4c4fa9)return{'redos':[],'undos':[]};let _0x518814=_0x25d2bc(_0x2e39d0),{unitId:_0x51b27d,subUnitId:_0x698b76,copyRange:_0x35eae8,drawings:_0x5b1d25}=this['_copyInfo'],_0x116274=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x51b27d,_0x698b76);if(!_0x116274)return{'redos':[],'undos':[]};let _0x33ce89;if(!_0x35eae8){let _0x153669=0x1/0x0,_0x334bcd=0x1/0x0;for(let _0x330753 of _0x5b1d25){var _0x21ed7a;let {left:_0x593bf5=0x0,top:_0x1d664a=0x0}=(_0x21ed7a=_0x330753['transform'])==null?{}:_0x21ed7a;_0x593bf5<_0x153669&&(_0x153669=_0x593bf5),_0x1d664a<_0x334bcd&&(_0x334bcd=_0x1d664a);}_0x153669!==0x1/0x0&&_0x334bcd!==0x1/0x0&&(_0x33ce89={'left':_0x153669,'top':_0x334bcd});}let _0x32fa2d=new Map();if(!_0xbe21ed){for(let _0x426e5e of _0x5b1d25)_0x32fa2d[_0x2f3fec(0xd9)](_0x426e5e[_0x2f3fec(0x1a9)],_0x2bfd17());}let _0x1cac56=[],_0x5054a8=[];for(let _0x53cb9b of _0x5b1d25){let {drawingId:_0xdceec2,transform:_0x7b08fc,sheetTransform:_0x2fe2ad}=_0x53cb9b;if(!_0x7b08fc||!_0x2fe2ad)continue;let _0xb54ffd=this[_0x2f3fec(0x2c1)]({'transform':_0x7b08fc,'sheetTransform':_0x2fe2ad},{'skeleton':_0x116274,'range':_0x35eae8},{'skeleton':_0x4c4fa9,'range':_0x518814},_0x33ce89);if(_0xbe21ed){let {redos:_0x1ab04f,undos:_0x156576}=this['_generateCutPasteMutations']({'fromUnitId':_0x51b27d,'fromSubUnitId':_0x698b76,'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd});_0x1cac56[_0x2f3fec(0x241)](..._0x1ab04f),_0x5054a8[_0x2f3fec(0x241)](..._0x156576);continue;}let {redos:_0x14b42c,undos:_0x1b6199}=this[_0x2f3fec(0x164)]({'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd,'newDrawingId':_0x32fa2d[_0x2f3fec(0x1bd)](_0xdceec2),'idMap':_0x32fa2d});_0x1cac56['push'](..._0x14b42c),_0x5054a8[_0x2f3fec(0x241)](..._0x1b6199);}return{'redos':_0x1cac56,'undos':_0x5054a8};}[_0x43dbb9(0xe0)](_0xe47af6){const _0x5d9bc0=_0x43dbb9;let {fromUnitId:_0x586faf,fromSubUnitId:_0x4c16f1,toUnitId:_0x856385,toSubUnitId:_0x29a909,drawing:_0x454535,newTransforms:_0x33cbe5}=_0xe47af6,_0x33dd5f={..._0x454535,'unitId':_0x856385,'subUnitId':_0x29a909,'transform':_0x33cbe5[_0x5d9bc0(0x10c)],'sheetTransform':_0x33cbe5[_0x5d9bc0(0x195)]};if(_0x856385===_0x586faf&&_0x29a909===_0x4c16f1){let {redo:_0x419f49,undo:_0x3c2099,objects:_0x30c683}=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x256)]([_0x33dd5f]);return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be[_0x5d9bc0(0x298)],'op':_0x419f49,'objects':_0x30c683}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['UPDATE'],'op':_0x3c2099,'objects':_0x30c683}}]};}else{let _0x4e2414=this['_sheetDrawingService'][_0x5d9bc0(0xb2)]([_0x454535]),_0x183ef6=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x2e4)]([_0x33dd5f]),_0x32336f=this[_0x5d9bc0(0x1ba)][_0x5d9bc0(0x251)](_0x454535[_0x5d9bc0(0x25d)],_0x454535['subUnitId'],_0x454535['drawingId']);if(!_0x32336f)return{'redos':[],'undos':[]};let _0x2400f6=_0x32336f[_0x5d9bc0(0x2ad)](),_0x3d370d=JSON[_0x5d9bc0(0x154)](JSON[_0x5d9bc0(0x2d1)](_0x32336f[_0x5d9bc0(0x282)]()));return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0xa9)],'op':_0x4e2414[_0x5d9bc0(0x1f2)],'objects':_0x4e2414[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535[_0x5d9bc0(0x1a9)]}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['INSERT'],'op':_0x183ef6[_0x5d9bc0(0x1f2)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x5addb7['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535[_0x5d9bc0(0x1a9)],'shapeType':_0x2400f6,'shapeData':_0x3d370d}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0x27b)],'op':_0x4e2414[_0x5d9bc0(0x245)],'objects':_0x4e2414['objects']}},{'id':_0x5addb7['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535['drawingId'],'shapeType':_0x2400f6,'shapeData':_0x3d370d}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['REMOVE'],'op':_0x183ef6[_0x5d9bc0(0x245)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535['drawingId']}}]};}}[_0x43dbb9(0x164)](_0x3c9c56){const _0x2191a7=_0x43dbb9;let {toUnitId:_0x4ea69f,toSubUnitId:_0x2b7b57,drawing:_0x34f738,newTransforms:_0x3f53eb,newDrawingId:_0x1d6826,idMap:_0x4e41ad}=_0x3c9c56,_0x3fe9e4={..._0x34f738,'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'drawingId':_0x1d6826,'transform':_0x3f53eb[_0x2191a7(0x10c)],'sheetTransform':_0x3f53eb[_0x2191a7(0x195)]},{redo:_0x55aa5a,undo:_0x2b8ea2,objects:_0x330836}=this[_0x2191a7(0x1e4)][_0x2191a7(0x2e4)]([_0x3fe9e4]),_0x339e7b=this[_0x2191a7(0x1ba)][_0x2191a7(0x251)](_0x34f738[_0x2191a7(0x25d)],_0x34f738['subUnitId'],_0x34f738['drawingId']);if(!_0x339e7b)return{'redos':[],'undos':[]};let _0x1e3228=_0x339e7b[_0x2191a7(0x2ad)](),_0x2d19bf=JSON[_0x2191a7(0x154)](JSON[_0x2191a7(0x2d1)](_0x339e7b[_0x2191a7(0x282)]()));if(_0x2d19bf['relation']){var _0xeb7bcb,_0x47ddbc;let _0x86c2e=(_0xeb7bcb=_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)])==null?void 0x0:_0xeb7bcb[_0x2191a7(0xfc)],_0x51b910=(_0x47ddbc=_0x2d19bf[_0x2191a7(0x270)]['to'])==null?void 0x0:_0x47ddbc[_0x2191a7(0xfc)],_0x1f5a86=_0x86c2e?_0x4e41ad[_0x2191a7(0x2b0)](_0x86c2e):!0x0,_0x34bdc0=_0x51b910?_0x4e41ad['has'](_0x51b910):!0x0;_0x1f5a86&&_0x86c2e&&_0x2d19bf[_0x2191a7(0x270)]['from']?_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]={..._0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x86c2e)}:_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]=void 0x0,_0x34bdc0&&_0x51b910&&_0x2d19bf[_0x2191a7(0x270)]['to']?_0x2d19bf[_0x2191a7(0x270)]['to']={..._0x2d19bf[_0x2191a7(0x270)]['to'],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x51b910)}:_0x2d19bf[_0x2191a7(0x270)]['to']=void 0x0;}return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['INSERT'],'op':_0x55aa5a,'objects':_0x330836}},{'id':_0x5addb7['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826,'shapeType':_0x1e3228,'shapeData':_0x2d19bf}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['REMOVE'],'op':_0x2b8ea2,'objects':_0x330836}},{'id':_0x35cadb['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826}}]};}['_updateTransform'](_0x50ecfb,_0x2be6a1,_0x31c015,_0x4f82aa){const _0x3f0b90=_0x43dbb9;var _0x2c008b;let {range:_0x2c6ec6,skeleton:_0x254352}=_0x2be6a1,{range:_0x451faa,skeleton:_0x287cd5}=_0x31c015,{transform:_0x5d85dc,sheetTransform:_0x2d0e2f}=_0x50ecfb,_0x47ce3f={..._0x5d85dc};if(_0x2c6ec6){let _0x2ca90d=_0x403c80(_0x254352,_0x2c6ec6),_0x507672=_0x403c80(_0x287cd5,_0x451faa);if(_0x2ca90d&&_0x507672){var _0x30d9e2,_0x381965;let _0xa01cba=_0x507672['startX']-_0x2ca90d[_0x3f0b90(0x267)],_0x408285=_0x507672[_0x3f0b90(0x179)]-_0x2ca90d[_0x3f0b90(0x179)];_0x47ce3f[_0x3f0b90(0x11f)]=((_0x30d9e2=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x30d9e2)+_0xa01cba,_0x47ce3f[_0x3f0b90(0x16e)]=((_0x381965=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x381965)+_0x408285;}}else{let _0x446333=_0x403c80(_0x287cd5,_0x451faa);if(_0x4f82aa&&_0x446333){var _0x598a1b,_0x163d36;let _0x112585=((_0x598a1b=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x598a1b)-_0x4f82aa[_0x3f0b90(0x11f)],_0xd241f1=((_0x163d36=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x163d36)-_0x4f82aa[_0x3f0b90(0x16e)];_0x47ce3f['left']=_0x446333[_0x3f0b90(0x267)]+_0x112585,_0x47ce3f['top']=_0x446333['startY']+_0xd241f1;}else _0x47ce3f[_0x3f0b90(0x11f)]=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x267)],_0x47ce3f['top']=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x179)];}return{'transform':_0x47ce3f,'sheetTransform':(_0x2c008b=_0x556f36(_0x47ce3f,_0x287cd5))==null?_0x2d0e2f:_0x2c008b};}};hr=Z([X(0x0,_0x450bf3(_0x1fc54d)),X(0x1,_0x450bf3(_0x5dfcb1)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0x12c68f))],hr);var gr=class extends _0x300c3f{constructor(_0x23b32a,_0xc759e5){const _0x1ae9f3=_0x43dbb9;super(_0x23b32a,_0xc759e5),Y(this,_0x1ae9f3(0x249),null),Y(this,_0x1ae9f3(0x2ca),null),Y(this,'_unitId',null),Y(this,'_subUnitId',null),Y(this,_0x1ae9f3(0x168),!0x1),_0xc759e5&&this[_0x1ae9f3(0x152)](_0xc759e5);}[_0x43dbb9(0x1f1)](){const _0x174628=_0x43dbb9;return{'unitId':this[_0x174628(0x238)],'subUnitId':this[_0x174628(0x250)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x3edc58){const _0x5890ca=_0x43dbb9;_0x3edc58[_0x5890ca(0xfc)]!==void 0x0&&(this[_0x5890ca(0x249)]=_0x3edc58[_0x5890ca(0xfc)]),_0x3edc58['unitId']!==void 0x0&&(this[_0x5890ca(0x238)]=_0x3edc58[_0x5890ca(0x25d)]),_0x3edc58[_0x5890ca(0x212)]!==void 0x0&&(this[_0x5890ca(0x250)]=_0x3edc58[_0x5890ca(0x212)]),_0x3edc58[_0x5890ca(0xbd)]!==void 0x0&&(this[_0x5890ca(0x168)]=_0x3edc58[_0x5890ca(0xbd)]),this[_0x5890ca(0x1c7)]({'width':_0x3edc58[_0x5890ca(0xf7)],'height':_0x3edc58[_0x5890ca(0x1dc)]});}['_draw'](_0x5804c2){const _0x39f554=_0x43dbb9;_0x536c54['drawWith'](_0x5804c2,{'radius':_0x2bc8ec['cxnPointRadius'],'fill':_0x2bc8ec[_0x39f554(0x2ac)],'stroke':_0x2bc8ec[_0x39f554(0x194)],'strokeWidth':_0x2bc8ec[_0x39f554(0x19b)],'evented':!0x0});}};function _0x1d5d(){const _0x1dcde7=['TOP','activeSheet$','params','_menuManagerService','getShapeTextRect','disposeWithMe','sectionFloating','_commandExecutedListener','packageName','left','_addShapeConnectorHandlerObjects','viewportScrollX','_getSceneAndTransformerByDrawingSearch','registerCommand','clipByShape','_transform','#1a73e8','_baseWidth','scene','initTransformer','_imageIoService','setAdjustValueByName','_createCopyInfoByRange','_baseShapeTop','panel','onPointerDown$','removeLinePoints','smartArt','prstGeom','values','ObjectLayersIcon','sectionCanvas','symbol','StraightConnector1','_onSavingEditorData$','highlighted','getImage','_loadAndSetImage','_reset','sheets-shape-ui.toggleFlipV','_initCopyPaste','extensionGroups','adjHandleStroke','focusDrawing','setPresentation','SheetShapeTextEditorContainer','getActiveSheet','sheet.operation.close-sheet-shape-format-panel','_moveConnectorWithShape','registerFeatureMenu','getSheetBySheetId','sheets-shape-ui','_clearConnectionSites','setHighlighted','_getShapeAdjustInfosById','refreshAdjustControls','transformForAngle','_activeShapeId','getUnit','complete','setShapeProps','lineType','parse','_getZoomRatio','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_isShouldShowDrawingShapeAdjust','_showConnectionSites','_formulaKey','resetCursor','_updateImageAdjValues','_getScrollInfo','makeDirty','_getOrCreateShapeModel','length','getInterceptPoints','getConnectorLinePoints','cxnIndex','_initEvents','_generateCopyPasteMutations','getCurrentUnitOfType','next','translate','_isStartConnectorPoint','_activeImageId','string','shapeKey','rect','_currentConnectionTarget','top','_activeTargetShapeId','getValue','getDrawingByParam','getUnitType','updateConnectionDetection','changeEnd$','getActualSize','_shapes','point','type','startY','formulaBinding','editingParams$','subscribeEvent','_formulaAnimation','add$','getScene','calcAdjValue','ShapeIcon','completeEditing','localeService','onTransformChange$','strokeWidth','_clearControls','getCurrentLastSelection','getSkeleton','_copyInfo','adjName','setShouldShowAdjust','changing$','getShapePopupMenus','doc.image-clip.shape-picker.component','getConnectionInfo','_getImagePrstGeom','_isOpenedShapeEditPanel','shape-text-','syncExecuteCommand','cxnPointStroke','sheetTransform','order','description','getPresentation','text','_connectionSiteObjects','cxnPointStrokeWidth','getRenderById','classType','_addShapeConnectorHandlerObject','_handleConnectedEndpointPointerUp','getDrawingOrder','_cxtHandlerPointerMove','setFillImage','endArrow','setShapeData','image','_getImageDrawingInfo','getAllUnitsForType','_shapeTextEditingService','drawingId','#FFFFFF','connector-handler-','function','_registerMoveHandler','_editingParams$','973cllLEH','includes','_clipService','getBentTypeFromPoints','disableShapeOption','_props','_executeResizeCommand','preValue','getImageSourceCache','disableObjectsEvent','getMatrix','_shapeService','title','DRAWING_SMART_ART','get','extraProps','onPointerUp$','addClipboardHook','dom','formulaPresentation','custom','name','fontSize','getZoomRatio','transformByState','_createControls','setContextValue','_localeService','Line','toPrimitive','None','popup','shapeText','_configService','actualHeight','_registerGroupFeaturePasteHook','_disposePopups','objects','_sidebarService','3219324WeaEuO','_cxnIndex','sheets-shape-ui.openPanel','getParent','Medium','VIEW_MAIN_LEFT_TOP','height','unsubscribe','getObjectIncludeInGroup','_rerouteConnectorLine','UNIVER_SHEET','38524EuhNNl','_groupCopyPasteController','_getConnectPointInfo','_sheetDrawingService','_clearShapeAdjustControls','sin','renderDrawingShape','VIEW_MAIN_TOP','updateShapeFillImage','_activeShapeInfo','_adjName','_getShapeAdjustPointListById','isRichText','fill','56840dKLBpW','_initSelection','getDrawingSearch','redo','draw','_injector','Rect','VIEW_MAIN_LEFT','onCommandExecuted','data','getEditing','_adjHandlerPointerMove','SolidLine','copyType','save','video','_sheetsShapeService','forEach','getConnectionSiteList','887381TuLBac','_initPrinting','refreshShapeFillImage','sheets-shape-ui.objectListPanel.open','isEditing','selectable','_initMenu','_sheetSkeletonService','DRAWING_IMAGE','scale','_activeShapeAdjustPointList','onDblclick$','top-center','setSrcRect','call','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','subUnitId','_clearPopups','pick','targetShapeId','_contextService','startConnectionDetection','find','flipY','_updateAdjustControlPositions','_createShapeAdjustControls','clipHeight','bind','register','slice','sheet.image-clip.shape-picker.component','_shapeFormulaService','color','div','prstGeomAdjValues','_createShapePopupMenu','_popupMenuListener','sheet.shape.floating-toolbar','rotation','animationEnabled','_handleConnectedEndpointMove','_activeShapeModel','applyPoint','_getDrawingRect','_targetShapeId','restore','getDrawingVisible','focus$','contentHeight','_baseHeight','setPrstGeom','_registerDrawingMoveHandler','end','hidden','_unitId','_iconManager','DRAWING_SHAPE','invert','from','_closeShapeEditPanel','DRAWING_VIDEO','viewportScrollY','getCurrentTypeOfUnit$','push','fillType','connection-site-','_calculateFreeEndpointAngle','undo','_updateShapeAdjustControls','gdRefY','onRendered','_shapeId','sheets-shape-ui.deleteShape','onPointerMove$','sheet.shape.object-list.panel','pipe','sheets-shape-text-','_draggingConnectorId','_subUnitId','getShapeModel','unregister','indexOf','_registerDrawingFocusChangeHandler','getSkeletonParam','getBatchUpdateOp','_activeAdjustInfo','_isStartAdjusting','clip-adj-','_cxtHandlerPointerUp','_resetState','enableObjectsEvent','unitId','_handleConnectorPointerUp','close','_baseShapeLeft','clip-','10966311OoZOuw','_lastEditingShapeKey','calculate','_registerComponents','getDrawingDataForUnit','startX','axisAlignSheetTransform','OPERATION','stopPropagation','value','ang','SELECTOR','_sheetShapeAdjustController','UNIVER_DOC','relation','isArray','getRealBound','localToWorld','_sheetPrintInterceptorService','getDrawingPoints','_adjHandlerPointerUp','URL','pushUndoRedo','getTransformer','DEFAULT_PASTE','INSERT','setCanUseShapeClip','VIEW_MAIN','_formulaShapes','getFocusDrawings','decorate','sheet.shape.picker.component','getShapeData','_baseLeft','_init','_commandService','sheetViewStartColumn','skeleton','offsetX','beforeCommandExecuted','normal','startArrow','_registerIcons','activeAnObject','_openShapeEditPanel','subscribe','registerFeatureMenuOffset','open','_isImagePointerDown','keys','stroke','getDrawingData','sheetViewStartRow','getOwnPropertyDescriptor','UPDATE','updateLinePoints','map','_getConnectionSiteAngle','dataModel','isHitLine','_initSheetChange','getAdjustValueByName','9648175LVZHZH','intercept','image-clip-adjust-point-','_initPermission','getEndConnectInfo','clear','onerror','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','reduce','prototype','isDrawingObject','_generatePasteMutations','cxnPointFill','getShapeType','getAdjustInfoByName','_insertShapes','has','delete','_baseShapeWidth','_isHighlighted','_drawRichTextLayer','_baseDrawingRect','render','111VBDsRH','abs','index','_focusedDrawings','attachTransformerTo','initShapePopupMenu','_connectorObjects','error','_updateSrcRectByTransform','worldPoints','_updateTransform','buildClipPath','_initEditingParams','_executeConnectedRouteConnectionCommand','_getShapeInfo','trim','worldPoint','interceptor','getSelectedObjectMap','_index','drawingType','visible','_activeAdjustPointList','default','object','executeCommand','stringify','_addControl','getDrawingEditable','_clearShapeConnectorHandlerObjects','flipX','sheets-shape-ui.rotateRight90','getCurrentScrollState','_registerFocusChangeHandler','_sheetDrawingShapeRenderController','_sidebarDisposable','clip','animateFormulaPresentation','dispose','gdRefAng','setConfig','_attachAdjustEvent','angle','fillImageSource','clearAdjustControls','getBatchAddOp','gdRefR','permissionCheckWithoutRange','sheet.shape.edit.panel','srcRect','_executeConnectionCommand','with','_registerShapeMenu','COMMAND','DRAWING_UNIT','getTransformerByCreate','marginTop','adjHandleSize','_renderManagerService','9576204dWNJTb','changeStart$','fontFamily','ancestorTransform','constructor','DRAWING_CHART','presentationChanged$','_baseShapeHeight','resize','composeMatrix','_baseTop','addImageSourceCache','Arrow','_isConnecting','onSteady','SHAPE_TEXT','worldRect','createControl$','sheets-shape-ui.rotateLeft90','contentVerticalOffset','create','isHighlighted','_config','getDrawingOKey','_isDrawingShapePointDown','_findNearestConnectionSite','setCursor','getSheetId','getCurrentSkeleton','cxnPointRadius','canvas','_urlImageService','isInGroup','REMOVE','_transformCalculateSrcRect','sheets-shape-ui.objectListPanel.title','refreshFormulaPresentation','getObject','changeShapeType','_loadShapePictureFill','_sheetPermissionCheckController','_hasReset','getBatchRemoveOp','DRAWING_DOM','size','entries','filter','mergeMenu','getUnitId','gradientEndColor','offsetY','_findShapeAtPoint','computeConnectorResizeLayout','isStartConnectorPoint','_shapeUpdateListener','_sheetCanvasPopManagerService','shapeModel','getShapeTextData','_initialize','gdRefX','_drawRichText','horizontal','viewBound','setEditing','interceptCommand','_shapeEditPanelVersion','getAutoFitPresentations','_addShapeAdjustControl','_drawingManagerService','_univerInstanceService','onReady','multiply','_draw','isHorizontal','CUT','clipTop','defineProperty','translateWithPrecision','remove$','univer-box-border\x20univer-px-4\x20univer-text-sm','beginPath','set','DRAWING_TABLE','_handleFreeEndpointPointerUp','setFormulaPresentation','_initCommands','getState','forward','_generateCutPasteMutations','registerRenderModule','setOnSavingEditorData','shape-adjust-point-','_sheetClipboardService','doc','sheets-shape-ui.config','_registerOperations','oKey','addObject','_sheetBasicShapeConnectionPointController','getShapeDataById','MEDIA','isLineShape','clearControl$','adjustValues','Large','1.0.0-alpha.7','_shapeRenderController','sheet.command.update-shape-data','parent','BUTTON','GROUP','width','_highlightedSiteIndex','_imageShapeClipController','@univerjs-pro/sheets-shape-ui','_context','shapeId','sheet.operation.open-sheet-shape-format-panel','sheets-shape-ui.imagePanel.crop.shape','sheets-shape-ui.formatShape','_attachConnectorObjectEvent','FromArray','isHit','_componentManager','updateContext','update$','shapeData','_insertingShapeKeys','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cos','sheet.command.menu-insert-shape','add','transform','_applyFormulaAutoFitSize','asObservable','version','#bcbcbc','pluginName','_currentUniverService','_currentScene','_drawingAddListener','vertical'];_0x1d5d=function(){return _0x1dcde7;};return _0x1d5d();}let _r=class extends _0x4760b3{constructor(_0x2dc4ca,_0x57da97,_0x38f069,_0x1c42f7,_0x380ed9,_0x1ebd7f,_0x44b618,_0x469ce5){const _0xe63181=_0x43dbb9;super(),this[_0xe63181(0xfb)]=_0x2dc4ca,this['_commandService']=_0x57da97,this['_renderManagerService']=_0x38f069,this[_0xe63181(0xcc)]=_0x1c42f7,this[_0xe63181(0xcd)]=_0x380ed9,this[_0xe63181(0x1ff)]=_0x1ebd7f,this[_0xe63181(0x26e)]=_0x44b618,this[_0xe63181(0xea)]=_0x469ce5,Y(this,_0xe63181(0x14f),void 0x0),Y(this,_0xe63181(0x238),void 0x0),Y(this,_0xe63181(0x250),void 0x0),Y(this,_0xe63181(0x2bd),[]),Y(this,_0xe63181(0x2b5),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0xe63181(0x22b),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0xe63181(0xb1),!0x1),Y(this,_0xe63181(0x1a1),void 0x0),Y(this,_0xe63181(0x25a),void 0x0),Y(this,_0xe63181(0x16d),null),this['_initialize']();}[_0x43dbb9(0xc2)](){const _0x40d2da=_0x43dbb9;this[_0x40d2da(0x254)](),this[_0x40d2da(0x235)]();}[_0x43dbb9(0x22d)](){const _0x35f9d1=_0x43dbb9;if(!this[_0x35f9d1(0x238)]||!this[_0x35f9d1(0x250)]||!this[_0x35f9d1(0x14f)])return;let _0x5ccec3={'unitId':this[_0x35f9d1(0x238)],'subUnitId':this[_0x35f9d1(0x250)],'drawingId':this[_0x35f9d1(0x14f)]},{transform:_0x3f6480}=this[_0x35f9d1(0xcc)][_0x35f9d1(0x171)](_0x5ccec3);if(_0x3f6480)return{'left':_0x3f6480['left']||0x0,'top':_0x3f6480[_0x35f9d1(0x16e)]||0x0,'width':_0x3f6480['width']||0x0,'height':_0x3f6480[_0x35f9d1(0x1dc)]||0x0,'flipX':_0x3f6480[_0x35f9d1(0x2d5)]||!0x1,'flipY':_0x3f6480['flipY']||!0x1,'angle':_0x3f6480['angle']};}[_0x43dbb9(0x120)](){const _0x5e183a=_0x43dbb9;if(this[_0x5e183a(0x238)]===void 0x0||this[_0x5e183a(0x250)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x37794a=this['_renderManagerService'][_0x5e183a(0x19c)](this[_0x5e183a(0x238)]);if(!_0x37794a||!_0x37794a['with'](_0x392ff0)[_0x5e183a(0xa4)]())return;let {scene:_0x2ed470}=_0x37794a,_0x1c6d37=this[_0x5e183a(0x22d)]();if(!_0x1c6d37)return;let _0x40bfd3=this[_0x5e183a(0x1ff)][_0x5e183a(0x251)](this['_unitId'],this[_0x5e183a(0x250)],this[_0x5e183a(0x14f)]);if(!_0x40bfd3||!_0x1f7f23(_0x40bfd3['getShapeType']()))return;let _0x37b10c=_0x40bfd3['getConnectorLinePoints']();if(_0x37b10c[_0x5e183a(0x15f)]<0x2)return;let _0x101e36=new _0x427c58(_0x1c6d37),_0x2db088=_0x37b10c[0x0],_0x34058c=_0x37b10c[_0x37b10c['length']-0x1],_0x21fe47=_0x101e36['localToWorld'](_0x2db088),_0x3eb886=_0x101e36['localToWorld'](_0x34058c);this[_0x5e183a(0x19e)](_0x2ed470,{..._0x21fe47},!0x0),this[_0x5e183a(0x19e)](_0x2ed470,{..._0x3eb886},!0x1);}['_addShapeConnectorHandlerObject'](_0x1d9dba,_0x3349df,_0x5a0e15){const _0x4d2d24=_0x43dbb9;if(this[_0x4d2d24(0x14f)]===void 0x0||this[_0x4d2d24(0x238)]===void 0x0||this[_0x4d2d24(0x250)]===void 0x0)return;let _0x144bf7=_0x4d2d24(0x1ab)+this[_0x4d2d24(0x238)]+'-'+this[_0x4d2d24(0x250)]+'-'+this[_0x4d2d24(0x14f)]+'-'+(_0x5a0e15?'start':_0x4d2d24(0x236)),_0x236cd1=_0x1d9dba[_0x4d2d24(0x1de)](_0x144bf7);if(_0x236cd1){_0x236cd1[_0x4d2d24(0x1c7)]({'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)]});return;}let _0x18835b=new gr(_0x144bf7,{'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)],'shapeId':this[_0x4d2d24(0x14f)],'unitId':this[_0x4d2d24(0x238)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x5a0e15,'width':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'height':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x18835b),this[_0x4d2d24(0x100)](_0x18835b,_0x1d9dba,_0x5a0e15),_0x1d9dba[_0x4d2d24(0xe9)](_0x18835b,_0x11332b+0x1);}[_0x43dbb9(0x15c)](_0x3ff9ef,_0x169f08){const _0x38d5d8=_0x43dbb9;var _0x1eeb30;let _0x155e7f={'x':0x0,'y':0x0};if(!_0x3ff9ef||!_0x169f08)return _0x155e7f;let _0x58341b=this[_0x38d5d8(0x87)][_0x38d5d8(0x19c)](_0x3ff9ef);if(!_0x58341b||!_0x58341b['with'](_0x392ff0)[_0x38d5d8(0x188)](_0x169f08))return _0x155e7f;let _0x2a3c8c=_0x58341b[_0x38d5d8(0x2ea)](_0xdbee74),_0x1c4a2e=_0x2a3c8c==null?void 0x0:_0x2a3c8c[_0x38d5d8(0x2d7)]();if(!_0x1c4a2e)return _0x155e7f;let _0x186e30=(_0x1eeb30=this['_univerInstanceService'][_0x38d5d8(0x150)](_0x3ff9ef))==null?void 0x0:_0x1eeb30['getSheetBySheetId'](_0x169f08);if(!_0x186e30)return _0x155e7f;let _0x5ce9ca=_0x1b930d(_0x1c4a2e[_0x38d5d8(0x296)],_0x1c4a2e[_0x38d5d8(0x286)],_0x58341b['scene'],_0x186e30);return _0x5ce9ca?{'x':_0x5ce9ca[_0x38d5d8(0x121)],'y':_0x5ce9ca['viewportScrollY']}:_0x155e7f;}[_0x43dbb9(0x155)](_0x3335a7,_0x1560ce){const _0x37808b=_0x43dbb9;var _0x25290a,_0x183f8f;let _0x267c2b=(_0x25290a=this[_0x37808b(0xcd)]['getUnit'](_0x3335a7))==null?void 0x0:_0x25290a[_0x37808b(0x148)](_0x1560ce);return(_0x183f8f=_0x267c2b==null?void 0x0:_0x267c2b[_0x37808b(0x1c6)]())==null?0x1:_0x183f8f;}[_0x43dbb9(0x25e)](_0x2a0be4,_0x5964c4,_0x254167,_0x50b301,_0x2b7f54){const _0x944662=_0x43dbb9;this[_0x944662(0x1a1)]['unsubscribe'](),this[_0x944662(0x25a)][_0x944662(0x1dd)](),this[_0x944662(0x26e)][_0x944662(0x14d)]();let _0x39ee8d=this[_0x944662(0x16d)];this[_0x944662(0xea)]['endConnectionDetection']();let _0x1d210d=this[_0x944662(0x15c)](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x590e90=this['_getZoomRatio'](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x35cabf={'x':_0x254167[_0x944662(0x288)]/_0x590e90+_0x1d210d['x'],'y':_0x254167[_0x944662(0xba)]/_0x590e90+_0x1d210d['y']},_0x462d33=_0x39ee8d?_0x39ee8d[_0x944662(0x2c7)]:_0x35cabf,_0x275384=_0x50b301?this[_0x944662(0x22b)][_0x944662(0x2a4)]():this[_0x944662(0x22b)]['getStartConnectInfo'](),_0x171e8c=this[_0x944662(0x22b)]['getShapeType']();_0x275384?this[_0x944662(0x19f)](_0x275384,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54):this[_0x944662(0xdb)](_0x5964c4,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54,_0x171e8c),this[_0x944662(0x95)]=!0x1,this[_0x944662(0xb1)]=!0x1,this[_0x944662(0x16d)]=null,_0x2a0be4['enableObjectsEvent']();}[_0x43dbb9(0xdb)](_0x29f455,_0x20aff4,_0x3298a3,_0x1fdc5d,_0x534298,_0x520e14){const _0x4c0735=_0x43dbb9;let _0x250123=_0x520e14===_0x250922[_0x4c0735(0x1cb)]||_0x520e14===_0x250922[_0x4c0735(0x137)],_0x506d03=_0x3298a3?_0x20aff4:_0x29f455,_0xe7dbdf=_0x3298a3?_0x29f455:_0x20aff4,_0x4db2e5=this['_activeShapeModel'][_0x4c0735(0x161)](),_0x2bd35a=_0x2e1471(this['_activeShapeModel'][_0x4c0735(0x2ad)]()),_0x1db243=_0x427c58[_0x4c0735(0x1b2)](_0x4db2e5,_0x2bd35a),_0x471611=_0x250123?_0x427c58['computeStraightConnectorLayout'](_0x506d03,_0xe7dbdf):_0x427c58[_0x4c0735(0xbc)](_0x29f455,_0x20aff4,_0x3298a3,_0x1db243);_0x1fdc5d?this[_0x4c0735(0x2e9)](_0x471611,_0x1fdc5d,_0x3298a3,_0x534298):this[_0x4c0735(0x1b5)](_0x471611,_0x534298);}[_0x43dbb9(0x19f)](_0x55b29a,_0x481dd1,_0x532a62,_0xa13e98,_0x2aa2bc){const _0x4980d8=_0x43dbb9;let _0x560e50=this[_0x4980d8(0x1e3)](_0x55b29a);if(!_0x560e50)return;let _0x5da971=_0xa13e98?_0xa13e98['angle']:this[_0x4980d8(0x244)](_0x560e50[_0x4980d8(0x177)],_0x481dd1),_0x2fb355;if(_0xa13e98){let _0x2f291a=this[_0x4980d8(0xcc)][_0x4980d8(0x171)]({'unitId':_0xa13e98[_0x4980d8(0x25d)],'subUnitId':_0xa13e98[_0x4980d8(0x212)],'drawingId':_0xa13e98[_0x4980d8(0xfc)]});if(_0x2f291a!=null&&_0x2f291a[_0x4980d8(0x10c)]){let {left:_0x1dcd57=0x0,top:_0x56477a=0x0,width:_0x185b55=0x0,height:_0x4655cf=0x0,angle:_0x59fe82}=_0x2f291a['transform'];_0x2fb355=_0x15c292({'left':_0x1dcd57,'top':_0x56477a,'width':_0x185b55,'height':_0x4655cf},_0x59fe82||0x0);}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};let _0x235461={'point':_0x481dd1,'angle':_0x5da971,'bounds':_0x2fb355},_0x28c1f6=_0x532a62?_0x235461:_0x560e50,_0x5703e4=_0x532a62?_0x560e50:_0x235461,_0x4dd0c1=this[_0x4980d8(0x22b)]['getShapeType'](),_0x5431d3=_0xde601c(_0x28c1f6,_0x5703e4,_0x4dd0c1);this['_activeShapeModel'][_0x4980d8(0x130)]();let _0x5250e6=_0x3de713(_0x5431d3,_0x4dd0c1);_0xa13e98?this[_0x4980d8(0x2c4)](_0x5250e6,_0xa13e98,_0x55b29a,_0x532a62,_0x2aa2bc):this['_executeConnectedRouteResizeCommand'](_0x5250e6,_0x55b29a,_0x532a62,_0x2aa2bc);}[_0x43dbb9(0x2e9)](_0x630a6f,_0x143431,_0x4aa354,_0x1ef7c9){const _0x544360=_0x43dbb9;let _0x24836c=this[_0x544360(0x22b)][_0x544360(0x282)]()['relation'],_0x17bbea={..._0x24836c},_0xee2ec6={'shapeId':_0x143431[_0x544360(0xfc)],'cxnIndex':_0x143431['cxnIndex']};_0x4aa354?_0x17bbea[_0x544360(0x23c)]=_0xee2ec6:_0x17bbea['to']=_0xee2ec6;let _0x4db0f2=this[_0x544360(0x22b)][_0x544360(0x2ad)](),_0x5150f5=_0x3de713(_0x630a6f[_0x544360(0x2c0)],_0x4db0f2),_0x344cb6={'unitId':this['_unitId'],'subUnitId':this[_0x544360(0x250)],'connectorShapeId':this[_0x544360(0x14f)],'width':_0x630a6f[_0x544360(0x98)][_0x544360(0xf7)],'height':_0x630a6f['worldRect'][_0x544360(0x1dc)],'left':_0x630a6f[_0x544360(0x98)][_0x544360(0x11f)],'top':_0x630a6f[_0x544360(0x98)][_0x544360(0x16e)],'flipX':_0x630a6f['worldRect'][_0x544360(0x2d5)]||!0x1,'flipY':_0x630a6f[_0x544360(0x98)]['flipY']||!0x1,'newAdjustValues':_0x5150f5[_0x544360(0xef)],'oldAdjustValues':_0x1ef7c9,'oldRelation':_0x24836c,'newRelation':_0x17bbea,'newLineType':_0x5150f5[_0x544360(0x153)],'oldLineType':_0x4db0f2};this[_0x544360(0x285)][_0x544360(0x2d0)](_0x551591['id'],_0x344cb6);}[_0x43dbb9(0x1b5)](_0x25ca84,_0x44c709){const _0x225afe=_0x43dbb9;let _0x2e1f3f=this[_0x225afe(0x22b)][_0x225afe(0x2ad)](),_0x47b3a3=_0x3de713(_0x25ca84[_0x225afe(0x2c0)],_0x2e1f3f),_0x192a65={'unitId':this['_unitId'],'subUnitId':this[_0x225afe(0x250)],'shapeId':this[_0x225afe(0x14f)],'width':_0x25ca84['worldRect'][_0x225afe(0xf7)],'height':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x1dc)],'left':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x11f)],'top':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x16e)],'flipX':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x2d5)]||!0x1,'flipY':_0x25ca84['worldRect'][_0x225afe(0x219)]||!0x1,'angle':_0x25ca84[_0x225afe(0x98)]['angle']||0x0,'newAdjustValues':_0x47b3a3[_0x225afe(0xef)],'oldAdjustValues':_0x44c709,'newLineType':_0x47b3a3['lineType'],'oldLineType':_0x2e1f3f};this[_0x225afe(0x285)][_0x225afe(0x2d0)](_0x5760d5['id'],_0x192a65);}['_executeConnectedRouteConnectionCommand'](_0x490d02,_0x2934ff,_0x3a6b1a,_0x3547d6,_0x3688af){const _0x15c893=_0x43dbb9;let _0x350bc0=this[_0x15c893(0x22b)][_0x15c893(0x282)]()[_0x15c893(0x270)],_0x2278a4={..._0x350bc0},_0x3fe59f={'shapeId':_0x2934ff['shapeId'],'cxnIndex':_0x2934ff[_0x15c893(0x162)]};_0x3547d6?(_0x2278a4['from']=_0x3fe59f,_0x2278a4['to']=_0x3a6b1a):(_0x2278a4[_0x15c893(0x23c)]=_0x3a6b1a,_0x2278a4['to']=_0x3fe59f);let _0x4c741b={'unitId':this[_0x15c893(0x238)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x15c893(0x14f)],'width':_0x490d02[_0x15c893(0x98)]['width'],'height':_0x490d02['worldRect']['height'],'left':_0x490d02['worldRect']['left'],'top':_0x490d02['worldRect'][_0x15c893(0x16e)],'flipX':_0x490d02[_0x15c893(0x98)]['flipX']||!0x1,'flipY':_0x490d02[_0x15c893(0x98)][_0x15c893(0x219)]||!0x1,'oldAdjustValues':_0x3688af,'newAdjustValues':_0x490d02[_0x15c893(0xef)],'newLineType':_0x490d02[_0x15c893(0x153)],'rotation':_0x490d02[_0x15c893(0x228)],'oldRelation':_0x350bc0,'newRelation':_0x2278a4};this[_0x15c893(0x285)]['executeCommand'](_0x551591['id'],_0x4c741b);}['_executeConnectedRouteResizeCommand'](_0x75bd26,_0xd41554,_0x259a64,_0x2e5eb6){const _0x166830=_0x43dbb9;let _0x2234b6=this[_0x166830(0x22b)][_0x166830(0x282)]()[_0x166830(0x270)],_0x24a345={};_0x259a64?(_0x24a345['to']=_0xd41554,_0x24a345['from']=void 0x0):(_0x24a345[_0x166830(0x23c)]=_0xd41554,_0x24a345['to']=void 0x0);let _0x3bc165={'unitId':this[_0x166830(0x238)],'subUnitId':this[_0x166830(0x250)],'connectorShapeId':this[_0x166830(0x14f)],'width':_0x75bd26[_0x166830(0x98)][_0x166830(0xf7)],'height':_0x75bd26[_0x166830(0x98)][_0x166830(0x1dc)],'left':_0x75bd26[_0x166830(0x98)]['left'],'top':_0x75bd26['worldRect'][_0x166830(0x16e)],'flipX':_0x75bd26[_0x166830(0x98)][_0x166830(0x2d5)]||!0x1,'flipY':_0x75bd26[_0x166830(0x98)][_0x166830(0x219)]||!0x1,'oldAdjustValues':_0x2e5eb6,'newAdjustValues':_0x75bd26[_0x166830(0xef)],'newLineType':_0x75bd26[_0x166830(0x153)],'rotation':_0x75bd26['rotation'],'oldRelation':_0x2234b6,'newRelation':_0x24a345};this[_0x166830(0x285)][_0x166830(0x2d0)](_0x551591['id'],_0x3bc165);}[_0x43dbb9(0x100)](_0x163b2e,_0x5db01e,_0x22b813){const _0x40ee20=_0x43dbb9;this[_0x40ee20(0x11b)](_0x43b296(_0x163b2e[_0x40ee20(0x12f)][_0x40ee20(0x17c)]((_0x554bc0,_0x542cf1)=>{const _0x124da5=_0x40ee20;let _0x40c5a4=_0x163b2e[_0x124da5(0x1f1)]();if(this['_activeShapeModel']=this[_0x124da5(0x1ff)]['getShapeModel'](_0x40c5a4[_0x124da5(0x25d)],_0x40c5a4['subUnitId'],_0x40c5a4['drawingId']),!this[_0x124da5(0x22b)])return;let _0x1a886b={};this[_0x124da5(0x22b)]['getAdjustNames']()['forEach'](_0x40d238=>{let _0x34cbf8=this['_activeShapeModel']['getAdjustValueByName'](_0x40d238);_0x34cbf8!==void 0x0&&(_0x1a886b[_0x40d238]=_0x34cbf8);});let _0x504362=this[_0x124da5(0x22d)]();if(!_0x504362)return;this[_0x124da5(0x2b5)]={..._0x504362};let _0x58f9bb=new _0x427c58(this[_0x124da5(0x2b5)]),_0x28d1c6=_0x7f2912({'unitId':this[_0x124da5(0x238)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x124da5(0x14f)]}),_0x46d1ce=_0x5db01e[_0x124da5(0x1de)](_0x28d1c6);this[_0x124da5(0x95)]=!0x0,_0x5db01e[_0x124da5(0x1b8)](),this[_0x124da5(0xea)][_0x124da5(0x217)](_0x5db01e,this[_0x124da5(0x238)],this[_0x124da5(0x250)],this[_0x124da5(0x14f)]),this[_0x124da5(0x16d)]=null;let _0x1d6bd7=this['_activeShapeModel'][_0x124da5(0x161)](),_0x2dc9ac=_0x1d6bd7[0x0],_0x5ab85e=_0x1d6bd7[_0x1d6bd7[_0x124da5(0x15f)]-0x1],_0x2d2498=_0x22b813?_0x58f9bb['localToWorld'](_0x5ab85e):_0x58f9bb[_0x124da5(0x273)](_0x2dc9ac);this['_cxtHandlerPointerMove']=_0x5db01e[_0x124da5(0x24b)][_0x124da5(0x17c)]((_0x393999,_0x5ec391)=>{const _0xaaf38c=_0x124da5;if(!this[_0xaaf38c(0x95)]||!this['_activeShapeModel'])return;this['_hasReset']||(this['_sheetShapeAdjustController'][_0xaaf38c(0x2e3)](),this[_0xaaf38c(0x22b)]['clearAdjustValue'](),this['_hasReset']=!0x0);let _0x35b7a9=this[_0xaaf38c(0x15c)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x47a98c=this[_0xaaf38c(0x155)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x3d067b={'x':_0x393999[_0xaaf38c(0x288)]/_0x47a98c+_0x35b7a9['x'],'y':_0x393999[_0xaaf38c(0xba)]/_0x47a98c+_0x35b7a9['y']},_0xaef58a=this[_0xaaf38c(0xea)][_0xaaf38c(0x173)](_0x3d067b);if(_0xaef58a){let {shapeId:_0x500729,unitId:_0x31e3d5,subUnitId:_0x4a703e}=_0xaef58a;if(_0x500729&&_0x31e3d5&&_0x4a703e){let _0x329009=_0x7f2912({'unitId':_0x31e3d5,'subUnitId':_0x4a703e,'drawingId':_0x500729});_0xaef58a[_0xaaf38c(0x2e1)]=(_0x5db01e[_0xaaf38c(0x1de)](_0x329009)[_0xaaf38c(0x2e1)]||0x0)+_0xaef58a[_0xaaf38c(0x2e1)];}}this[_0xaaf38c(0x16d)]=_0xaef58a;let _0x5967a7=_0x22b813?this[_0xaaf38c(0x22b)][_0xaaf38c(0x2a4)]():this[_0xaaf38c(0x22b)]['getStartConnectInfo']();if(_0x5967a7){this['_handleConnectedEndpointMove'](_0x5967a7,_0x3d067b,_0x22b813,_0x46d1ce,_0x163b2e);return;}this['_handleFreeEndpointMove'](_0x3d067b,_0x2d2498,_0x22b813,_0x46d1ce,_0x163b2e);}),this[_0x124da5(0x25a)]=_0x5db01e['onPointerUp$'][_0x124da5(0x17c)]((_0x19ce8b,_0x30ee31)=>{const _0x2a97aa=_0x124da5;this[_0x2a97aa(0x25e)](_0x5db01e,_0x2d2498,_0x19ce8b,_0x22b813,_0x1a886b);}),_0x542cf1[_0x124da5(0x26a)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0xe1bae3,_0x3d1aac,_0x37fd62){const _0xce7687=_0x43dbb9;let _0x5addae=this[_0xce7687(0x1ff)]['getBasicShapeRelation'](_0xe1bae3,_0x3d1aac,_0x37fd62);if(!_0x5addae||_0x5addae[_0xce7687(0x15f)]===0x0)return;let _0x237e3a=this[_0xce7687(0x87)][_0xce7687(0x19c)](_0xe1bae3);if(!_0x237e3a)return;let {scene:_0x54783e}=_0x237e3a;for(let _0x37c5e6 of _0x5addae){let _0x2baa83=_0x37c5e6['lineShapeId'],_0x1be106=this['_sheetsShapeService'][_0xce7687(0x251)](_0xe1bae3,_0x3d1aac,_0x2baa83);if(!_0x1be106)continue;let _0x301e50=_0x1be106['getStartConnectInfo'](),_0x3e936a=_0x1be106['getEndConnectInfo'](),_0xa78f0b=(_0x301e50==null?void 0x0:_0x301e50[_0xce7687(0xfc)])===_0x37fd62,_0x484753=_0x7f2912({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83}),_0x2b7ff3=_0x54783e[_0xce7687(0x1de)](_0x484753);if(!_0x2b7ff3)continue;let _0x274ee4=this[_0xce7687(0xcc)][_0xce7687(0x171)]({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83});_0x274ee4!=null&&_0x274ee4[_0xce7687(0x10c)]&&(_0x301e50&&_0x3e936a?this[_0xce7687(0x1df)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0x301e50,_0x3e936a,_0x2b7ff3):this[_0xce7687(0x146)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0xa78f0b?_0x301e50:_0x3e936a,_0xa78f0b,_0x274ee4,_0x2b7ff3));}}[_0x43dbb9(0x1df)](_0x5e3764,_0x4f008f,_0x16bc0b,_0xe99822,_0x35d622,_0x5818f5,_0x5e972e){const _0x2f67cb=_0x43dbb9;let _0x430abd=this['_unitId'],_0xd3f2a8=this[_0x2f67cb(0x250)];this[_0x2f67cb(0x238)]=_0x5e3764,this[_0x2f67cb(0x250)]=_0x4f008f;let _0x5e3ea8=this['_getConnectPointInfo'](_0x35d622),_0x4a0838=this['_getConnectPointInfo'](_0x5818f5);if(this[_0x2f67cb(0x238)]=_0x430abd,this['_subUnitId']=_0xd3f2a8,!_0x5e3ea8||!_0x4a0838)return;let _0x335de5=_0xe99822[_0x2f67cb(0x2ad)](),_0x3a6071=_0xde601c(_0x5e3ea8,_0x4a0838,_0x335de5);_0x3a6071&&_0xe99822[_0x2f67cb(0x299)](_0x3a6071);let _0x1270d3=_0x3de713(_0x3a6071,_0x335de5);_0x1270d3['lineType']!==_0x335de5&&_0xe99822[_0x2f67cb(0xae)](_0x1270d3[_0x2f67cb(0x153)]),_0xe99822['clearAdjustValue']();for(let [_0x433da3,_0x2566f8]of Object[_0x2f67cb(0xb5)](_0x1270d3['adjustValues']))_0xe99822[_0x2f67cb(0x12b)](_0x433da3,_0x2566f8);_0xe99822[_0x2f67cb(0x104)]({'width':_0x1270d3['worldRect'][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x1dc)]}),_0x5e972e['transformByState']({'flipX':_0x1270d3['worldRect']['flipX'],'flipY':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x219)],'left':_0x1270d3['worldRect'][_0x2f67cb(0x11f)],'top':_0x1270d3['worldRect']['top'],'width':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)]['height'],'angle':_0x1270d3[_0x2f67cb(0x228)]}),_0xe99822[_0x2f67cb(0x130)]();}[_0x43dbb9(0x146)](_0x1307db,_0x203e1d,_0x164531,_0x2c7fba,_0x386c3c,_0x4c2afe,_0x4740ac,_0x44e8e7){const _0x245452=_0x43dbb9;let _0x1c7bdd=this[_0x245452(0x238)],_0x27a17a=this[_0x245452(0x250)];this[_0x245452(0x238)]=_0x1307db,this[_0x245452(0x250)]=_0x203e1d;let _0x325408=this[_0x245452(0x1e3)](_0x386c3c);if(this[_0x245452(0x238)]=_0x1c7bdd,this[_0x245452(0x250)]=_0x27a17a,!_0x325408)return;let {left:_0x1e7b6f=0x0,top:_0x7a0e81=0x0,width:_0x1b938d=0x0,height:_0x51721e=0x0,flipX:_0x22d041=!0x1,flipY:_0x55739e=!0x1}=_0x4740ac[_0x245452(0x10c)],_0x1f8dbc=_0x2c7fba[_0x245452(0x161)]();if(_0x1f8dbc['length']<0x2)return;let _0x3e87dd=new _0x427c58({'left':_0x1e7b6f,'top':_0x7a0e81,'width':_0x1b938d,'height':_0x51721e,'flipX':_0x22d041,'flipY':_0x55739e}),_0x5bece3=_0x4c2afe?_0x1f8dbc[_0x1f8dbc[_0x245452(0x15f)]-0x1]:_0x1f8dbc[0x0],_0x217bd5=_0x3e87dd[_0x245452(0x273)](_0x5bece3),_0x424c0e=_0x427c58['computeConnectorResizeLayout'](_0x217bd5,_0x325408[_0x245452(0x177)],!_0x4c2afe);_0x44e8e7[_0x245452(0x1c7)]({'flipX':_0x424c0e[_0x245452(0x98)]['flipX'],'flipY':_0x424c0e[_0x245452(0x98)][_0x245452(0x219)],'left':_0x424c0e['worldRect'][_0x245452(0x11f)],'top':_0x424c0e[_0x245452(0x98)]['top'],'width':_0x424c0e[_0x245452(0x98)][_0x245452(0xf7)],'height':_0x424c0e['worldRect'][_0x245452(0x1dc)],'angle':_0x424c0e[_0x245452(0x98)][_0x245452(0x2e1)]}),_0x44e8e7['makeDirty'](!0x0);}[_0x43dbb9(0x2d4)](){const _0x979bef=_0x43dbb9;this[_0x979bef(0x2bd)][_0x979bef(0x15f)]!==0x0&&(this[_0x979bef(0x2bd)][_0x979bef(0x200)](_0x33400c=>{const _0x24c956=_0x979bef;_0x33400c[_0x24c956(0x2dd)]();}),this['_connectorObjects']=[]);}[_0x43dbb9(0x235)](){const _0x77de82=_0x43dbb9;let _0x578143=this[_0x77de82(0xcd)][_0x77de82(0x240)](_0x2a1b28[_0x77de82(0x1e0)]);this[_0x77de82(0x11b)](_0x578143[_0x77de82(0x24d)](_0x46afa7(_0x2e016d=>_0x2e016d?_0x2e016d[_0x77de82(0x117)]['pipe'](_0x46afa7(_0x29ea3e=>{const _0x242736=_0x77de82;if(!_0x29ea3e)return _0x3149ab;let _0x3987dc=_0x2e016d[_0x242736(0xb8)](),_0x1aac9f=this['_renderManagerService'][_0x242736(0x19c)](_0x3987dc),_0x4f7d0e=_0x1aac9f==null?void 0x0:_0x1aac9f['scene'];return _0x4f7d0e?_0x236700(_0x4f7d0e):_0x3149ab;})):_0x3149ab))['subscribe'](_0x1b0adb=>{const _0x8e3659=_0x77de82;let _0x40b605=_0x1b0adb[_0x8e3659(0x84)]();this[_0x8e3659(0x11b)](_0x1b0adb['onPointerMove$'][_0x8e3659(0x17c)](_0x31cfd1=>{const _0x4f216f=_0x8e3659;this[_0x4f216f(0xa0)]&&this[_0x4f216f(0x14f)]&&this[_0x4f216f(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x40b605['changeStart$'][_0x8e3659(0x28f)](_0x59b67f=>{const _0x9768db=_0x8e3659;let {objects:_0x2a27cc}=_0x59b67f;this[_0x9768db(0x2d4)](),_0x2a27cc!==null&&_0x2a27cc['size']===0x1&&_0x2a27cc['values']()[_0x9768db(0x166)]()[_0x9768db(0x26b)]instanceof Cn&&(this['_isDrawingShapePointDown']=!0x0);})),this['disposeWithMe'](_0x40b605[_0x8e3659(0x18c)][_0x8e3659(0x28f)](_0x95adc7=>{const _0x254757=_0x8e3659;this[_0x254757(0xa0)]&&this[_0x254757(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x1b0adb[_0x8e3659(0x1bf)][_0x8e3659(0x17c)](()=>{const _0x5825d3=_0x8e3659;this[_0x5825d3(0xa0)]&&(this[_0x5825d3(0xa0)]=!0x1,this[_0x5825d3(0x120)]());})),this[_0x8e3659(0x11b)](_0x40b605[_0x8e3659(0x174)][_0x8e3659(0x28f)](()=>{const _0x2d1306=_0x8e3659;this[_0x2d1306(0x238)]&&this[_0x2d1306(0x250)]&&this[_0x2d1306(0x14f)]&&this['_drawingManagerService'][_0x2d1306(0x171)]({'unitId':this[_0x2d1306(0x238)],'subUnitId':this[_0x2d1306(0x250)],'drawingId':this[_0x2d1306(0x14f)]})&&(this[_0x2d1306(0x2d4)](),this[_0x2d1306(0x120)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x41f434=_0x43dbb9;this[_0x41f434(0x11b)](this['_drawingManagerService']['focus$']['subscribe'](_0x47af45=>{const _0x33c046=_0x41f434;if(_0x47af45[_0x33c046(0x15f)]===0x1){let _0x672dc2=_0x47af45[0x0];if(_0x672dc2['drawingType']===_0x5d03f6['DRAWING_SHAPE']){let _0xc0f9fd=this[_0x33c046(0x1ff)][_0x33c046(0x251)](_0x672dc2[_0x33c046(0x25d)],_0x672dc2['subUnitId'],_0x672dc2[_0x33c046(0x1a9)]);if(_0xc0f9fd&&_0x1f7f23(_0xc0f9fd[_0x33c046(0x2ad)]())){this[_0x33c046(0x14f)]=_0x672dc2[_0x33c046(0x1a9)],this[_0x33c046(0x238)]=_0x672dc2[_0x33c046(0x25d)],this[_0x33c046(0x250)]=_0x672dc2[_0x33c046(0x212)],this['_clearShapeConnectorHandlerObjects'](),this[_0x33c046(0x120)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x33c046(0x238)]=void 0x0,this[_0x33c046(0x250)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0x105)][_0x41f434(0x28f)](_0x32f7e7=>{const _0x5e2831=_0x41f434;if(_0x32f7e7['length']===0x1){var _0x20f2bb;let _0x2951e5=_0x32f7e7[0x0],_0x4acad4=(_0x20f2bb=this[_0x5e2831(0xcc)][_0x5e2831(0x171)](_0x2951e5))==null?void 0x0:_0x20f2bb['drawingType'];_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&_0x2951e5['drawingId']===this[_0x5e2831(0x14f)]?(this[_0x5e2831(0x2d4)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x5e2831(0x14f)]&&_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x2951e5[_0x5e2831(0x25d)],_0x2951e5[_0x5e2831(0x212)],_0x2951e5[_0x5e2831(0x1a9)]);}})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0xd6)][_0x41f434(0x28f)](_0x4332b0=>{const _0x5bbd79=_0x41f434;for(let _0x1fe2bd of _0x4332b0){let {drawingId:_0x53632e}=_0x1fe2bd;if(this[_0x5bbd79(0x14f)]===_0x53632e){this[_0x5bbd79(0x13c)]();return;}}}));}[_0x43dbb9(0x22a)](_0x4d000d,_0x38c521,_0x44e553,_0x1f9a7a,_0x1f6fc5){const _0x1ff7a8=_0x43dbb9;var _0x3df2aa,_0x1d9a99;if(!this[_0x1ff7a8(0x22b)])return;let _0x1d617f=this[_0x1ff7a8(0x1e3)](_0x4d000d);if(!_0x1d617f)return;let _0x263ea4=this[_0x1ff7a8(0x16d)]?this[_0x1ff7a8(0x16d)]['worldPoint']:_0x38c521,_0x39ad2c=this[_0x1ff7a8(0x16d)]?this['_currentConnectionTarget'][_0x1ff7a8(0x2e1)]:this[_0x1ff7a8(0x244)](_0x1d617f[_0x1ff7a8(0x177)],_0x263ea4),_0x307919;if(this[_0x1ff7a8(0x16d)]){let _0x32b35d=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x1ff7a8(0x25d)],'subUnitId':this['_currentConnectionTarget'][_0x1ff7a8(0x212)],'drawingId':this[_0x1ff7a8(0x16d)][_0x1ff7a8(0xfc)]});if(_0x32b35d!=null&&_0x32b35d[_0x1ff7a8(0x10c)]){let {left:_0x83cd72=0x0,top:_0x1260d8=0x0,width:_0x2bc035=0x0,height:_0x1e6753=0x0,angle:_0x5516fb}=_0x32b35d[_0x1ff7a8(0x10c)];_0x307919=_0x15c292({'left':_0x83cd72,'top':_0x1260d8,'width':_0x2bc035,'height':_0x1e6753},_0x5516fb||0x0);}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};let _0x1f8904={'point':_0x263ea4,'angle':_0x39ad2c,'bounds':_0x307919},_0x963e1e=_0x44e553?_0x1f8904:_0x1d617f,_0x232806=_0x44e553?_0x1d617f:_0x1f8904,_0x502051=this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x2ad)](),_0x3c1640=_0xde601c(_0x963e1e,_0x232806,_0x502051);_0x3c1640&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x299)](_0x3c1640);let _0x4122ec=_0x3de713(_0x3c1640,_0x502051);_0x4122ec[_0x1ff7a8(0x153)]!==_0x502051&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0xae)](_0x4122ec[_0x1ff7a8(0x153)]);for(let [_0x5ce22d,_0x491db9]of Object['entries'](_0x4122ec['adjustValues']))this['_activeShapeModel'][_0x1ff7a8(0x12b)](_0x5ce22d,_0x491db9);this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x104)]({'width':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0xf7)],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)]}),_0x1f9a7a[_0x1ff7a8(0x1c7)]({'flipX':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x2d5)],'flipY':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x219)],'left':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x11f)],'top':_0x4122ec[_0x1ff7a8(0x98)]['top'],'width':_0x4122ec[_0x1ff7a8(0x98)]['width'],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)],'angle':_0x4122ec[_0x1ff7a8(0x228)]}),_0x1f9a7a[_0x1ff7a8(0x15d)](!0x0);let _0x5421db=(_0x3df2aa=(_0x1d9a99=this[_0x1ff7a8(0x16d)])==null?void 0x0:_0x1d9a99[_0x1ff7a8(0x2c7)])==null?_0x38c521:_0x3df2aa;_0x1f6fc5[_0x1ff7a8(0x1c7)]({'left':_0x5421db['x']-_0x2bc8ec[_0x1ff7a8(0xa5)],'top':_0x5421db['y']-_0x2bc8ec[_0x1ff7a8(0xa5)]});}['_handleFreeEndpointMove'](_0x3780bb,_0x10fa4e,_0x2a2602,_0x5cb7f1,_0x5ce154){const _0x57c9ca=_0x43dbb9;var _0x4434f6,_0x5e82f0,_0xbdf99a,_0x484c9d;let _0x258126=(_0x4434f6=(_0x5e82f0=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x5e82f0[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0x4434f6,_0x2696bf=_0x427c58['computeConnectorResizeLayout'](_0x10fa4e,_0x258126,_0x2a2602);_0x5cb7f1[_0x57c9ca(0x1c7)]({'flipX':_0x2696bf[_0x57c9ca(0x98)]['flipX'],'flipY':_0x2696bf[_0x57c9ca(0x98)]['flipY'],'left':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x11f)],'top':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x16e)],'width':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0xf7)],'height':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x1dc)],'angle':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x2e1)]});let _0x4f42fe=(_0xbdf99a=(_0x484c9d=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x484c9d[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0xbdf99a;_0x5ce154[_0x57c9ca(0x1c7)]({'left':_0x4f42fe['x']-_0x2bc8ec[_0x57c9ca(0xa5)],'top':_0x4f42fe['y']-_0x2bc8ec[_0x57c9ca(0xa5)]});}[_0x43dbb9(0x1e3)](_0x354fce){const _0x52766c=_0x43dbb9;if(!this['_unitId']||!this[_0x52766c(0x250)])return null;let {shapeId:_0x3efe46,cxnIndex:_0x318ed0}=_0x354fce,_0x2f20e6=this[_0x52766c(0x1ff)]['getShapeModel'](this[_0x52766c(0x238)],this[_0x52766c(0x250)],_0x3efe46);if(!_0x2f20e6)return null;let _0x3fc848=this[_0x52766c(0xcc)][_0x52766c(0x171)]({'unitId':this['_unitId'],'subUnitId':this[_0x52766c(0x250)],'drawingId':_0x3efe46});if(!(_0x3fc848!=null&&_0x3fc848['transform']))return null;let {left:_0x5a1f72=0x0,top:_0x19d462=0x0,width:_0x361e87=0x0,height:_0x146e59=0x0,flipX:_0x293225=!0x1,flipY:_0x3766eb=!0x1,angle:_0x1d94c4}=_0x3fc848[_0x52766c(0x10c)];_0x2f20e6[_0x52766c(0x104)]({'width':_0x361e87,'height':_0x146e59});let _0x513808=_0x2f20e6['getConnectionSiteList']()[_0x52766c(0x218)](_0x11873f=>_0x11873f[_0x52766c(0x2b9)]===_0x318ed0);if(!_0x513808)return null;let _0x34b1f=_0x293225?_0x361e87-_0x513808['x']:_0x513808['x'],_0x2c0188=_0x3766eb?_0x146e59-_0x513808['y']:_0x513808['y'];if(_0x1d94c4!==0x0&&_0x1d94c4!=null){let _0x270696=_0x1d94c4*Math['PI']/0xb4,_0x5127de=Math[_0x52766c(0x109)](_0x270696),_0x3862d7=Math['sin'](_0x270696),_0x5c60bf=_0x361e87/0x2,_0x1f2e3a=_0x146e59/0x2,_0x44faa1=_0x34b1f-_0x5c60bf,_0x568920=_0x2c0188-_0x1f2e3a;_0x34b1f=_0x5c60bf+_0x44faa1*_0x5127de-_0x568920*_0x3862d7,_0x2c0188=_0x1f2e3a+_0x44faa1*_0x3862d7+_0x568920*_0x5127de;}_0x34b1f+=_0x5a1f72,_0x2c0188+=_0x19d462;let _0x367fde=_0x513808['ang']/0xea60;_0x293225&&(_0x367fde=0xb4-_0x367fde),_0x3766eb&&(_0x367fde=-_0x367fde),_0x367fde+=_0x1d94c4||0x0,_0x367fde=(_0x367fde%0x168+0x168)%0x168;let _0x220241=_0x15c292({'left':_0x5a1f72,'top':_0x19d462,'width':_0x361e87,'height':_0x146e59},_0x1d94c4||0x0);return{'point':{'x':_0x34b1f,'y':_0x2c0188},'angle':_0x367fde,'bounds':_0x220241};}['_calculateFreeEndpointAngle'](_0x10f73f,_0x22c2ef){const _0x34820e=_0x43dbb9;let _0x4e4797=_0x22c2ef['x']-_0x10f73f['x'],_0x31a2fd=_0x22c2ef['y']-_0x10f73f['y'];return Math[_0x34820e(0x2b8)](_0x4e4797)>=Math[_0x34820e(0x2b8)](_0x31a2fd)?_0x4e4797>=0x0?0xb4:0x0:_0x31a2fd>=0x0?0x10e:0x5a;}['_reset'](){const _0x4eba4b=_0x43dbb9;this[_0x4eba4b(0x14f)]=void 0x0,this[_0x4eba4b(0x238)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x4eba4b(0x2d4)]();}[_0x43dbb9(0x2dd)](){const _0x42e451=_0x43dbb9;this['_clearShapeConnectorHandlerObjects'](),super[_0x42e451(0x2dd)]();}};_r=Z([X(0x1,_0x4d9cac),X(0x2,_0x263af6),X(0x3,_0x324617),X(0x4,_0x7113c7),X(0x5,_0x450bf3(_0x26a217)),X(0x6,_0x450bf3(Tn)),X(0x7,_0x450bf3(mr))],_r);let vr=class extends _0x4760b3{constructor(_0x4a1300,_0x5ba818,_0x290008){const _0x15ef3e=_0x43dbb9;super(),this[_0x15ef3e(0x274)]=_0x4a1300,this['_drawingManagerService']=_0x5ba818,this[_0x15ef3e(0xf2)]=_0x290008,this['_initPrinting']();}[_0x43dbb9(0x203)](){const _0x4fffbe=_0x43dbb9;this[_0x4fffbe(0x11b)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x2a1)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x160)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2027ba,_0x4ccd29,_0x305303)=>{const _0xa4779c=_0x4fffbe;var _0x2a6d10;let {unitId:_0x129e37,subUnitId:_0x1948e7,scene:_0x232bb7,resourceCollector:_0x1729bb}=_0x4ccd29,_0x5335d6=(_0x2a6d10=this['_drawingManagerService'][_0xa4779c(0x266)](_0x129e37))==null?void 0x0:_0x2a6d10[_0x1948e7];return _0x5335d6==null||_0x5335d6[_0xa4779c(0x196)][_0xa4779c(0x200)](_0x2ba199=>{const _0x3bae4f=_0xa4779c;let _0x6b80fa=_0x5335d6[_0x3bae4f(0x1f8)][_0x2ba199];_0x6b80fa[_0x3bae4f(0x2cb)]===_0x5d03f6[_0x3bae4f(0x23a)]&&!_0x6b80fa[_0x3bae4f(0x237)]&&this[_0x3bae4f(0xf2)][_0x3bae4f(0x1e7)](_0x6b80fa,_0x232bb7,{'resourceCollector':_0x1729bb});}),_0x305303(_0x2027ba);}}));}};vr=Z([X(0x0,_0x450bf3(_0x11a3e2)),X(0x1,_0x324617),X(0x2,_0x450bf3(Q))],vr);let yr=class extends _0x4760b3{constructor(_0x46ff1f,_0x763a4,_0x474ea1){const _0x4c3d69=_0x43dbb9;super(),this[_0x4c3d69(0x285)]=_0x46ff1f,this[_0x4c3d69(0x1ca)]=_0x763a4,this[_0x4c3d69(0xb0)]=_0x474ea1,this[_0x4c3d69(0x2a3)]();}['_initPermission'](){const _0x714f25=_0x43dbb9;this[_0x714f25(0x11b)](this[_0x714f25(0x285)][_0x714f25(0x289)](_0x6c3cb4=>{const _0x56f836=_0x714f25;let _0x346b81,_0x2a8e94;if(_0x6c3cb4['id']===_0x28064d['id']||_0x6c3cb4['id']===_0xedfea5['id']||_0x6c3cb4['id']===_0x551591['id']){let _0x582dfc=_0x6c3cb4['params'];_0x346b81=_0x582dfc['unitId'],_0x2a8e94=_0x582dfc[_0x56f836(0x212)];}!_0x346b81||!_0x2a8e94||this[_0x56f836(0xb0)][_0x56f836(0x2e6)]({'workbookTypes':[_0x1b5cb2],'worksheetTypes':[_0x194b28]},_0x346b81,_0x2a8e94)||this[_0x56f836(0xb0)]['blockExecuteWithoutPermission'](this['_localeService']['t']('sheets-shape-ui.permission.editErr'));}));}};yr=Z([X(0x0,_0x450bf3(_0x4d9cac)),X(0x1,_0x450bf3(_0xa3717a)),X(0x2,_0x450bf3(_0xf21f2))],yr);let br=class extends _0x4760b3{constructor(_0x12fb19,_0x2381b7,_0x3221ff,_0x4e0c3b,_0x15906e,_0x3856a4,_0x1cffd9,_0x343686,_0x195da9,_0x43c76b,_0x55aaa4){const _0x23b6d6=_0x43dbb9;super(),this[_0x23b6d6(0xcd)]=_0x12fb19,this[_0x23b6d6(0x1d5)]=_0x2381b7,this[_0x23b6d6(0x119)]=_0x3221ff,this[_0x23b6d6(0x1ff)]=_0x4e0c3b,this[_0x23b6d6(0x1ca)]=_0x15906e,this['_commandService']=_0x3856a4,this[_0x23b6d6(0xcc)]=_0x1cffd9,this['_sheetCanvasPopManagerService']=_0x343686,this['_contextService']=_0x195da9,this[_0x23b6d6(0x87)]=_0x43c76b,this[_0x23b6d6(0x1a8)]=_0x55aaa4,Y(this,_0x23b6d6(0x2da),null),Y(this,'_activeShapeInfo',null),Y(this,'_isOpenedShapeEditPanel',!0x1),Y(this,_0x23b6d6(0xc9),0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x23b6d6(0x1d3),[]),this[_0x23b6d6(0x208)](),this[_0x23b6d6(0x11b)](this[_0x23b6d6(0xcd)][_0x23b6d6(0x240)](_0x2a1b28[_0x23b6d6(0x1e0)])[_0x23b6d6(0x28f)](_0x528467=>{const _0x183fd1=_0x23b6d6;if(!_0x528467){var _0x46e082;(_0x46e082=this[_0x183fd1(0x2da)])==null||_0x46e082[_0x183fd1(0x2dd)]();return;}this[_0x183fd1(0x225)](_0x528467);})),this[_0x23b6d6(0xe7)](),this[_0x23b6d6(0x2eb)](),this['initShapePopupMenu'](),this[_0x23b6d6(0x11b)](this['_shapeTextEditingService'][_0x23b6d6(0x17b)][_0x23b6d6(0x28f)](_0x233d62=>{const _0x47f149=_0x23b6d6;_0x233d62&&this[_0x47f149(0x213)]();}));}[_0x43dbb9(0x208)](){const _0x1db833=_0x43dbb9;this[_0x1db833(0x119)][_0x1db833(0xb7)](Un);}['_registerShapeMenu'](){const _0x2cae90=_0x43dbb9;this[_0x2cae90(0xbf)][_0x2cae90(0x147)](_0x5d03f6[_0x2cae90(0x23a)],this[_0x2cae90(0x18d)][_0x2cae90(0x21d)](this)),this['_sheetCanvasPopManagerService'][_0x2cae90(0x290)](_0x5d03f6['DRAWING_SHAPE'],0x6,0x4);}[_0x43dbb9(0x2bc)](){const _0x12ae2e=_0x43dbb9;this[_0x12ae2e(0xcd)][_0x12ae2e(0x1a7)](_0x2a1b28['UNIVER_SHEET'])['forEach'](_0x26f5a6=>this[_0x12ae2e(0x225)](_0x26f5a6));}[_0x43dbb9(0x18d)](_0x5e2315,_0x18b7ed,_0x3b2177,_0x2f1c07){const _0x531022=_0x43dbb9;return[{'label':_0x531022(0x1d8),'index':0x0,'commandId':qn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':_0x2f1c07===_0x5d03f6[_0x531022(0xb3)]},{'label':_0x531022(0x24a),'index':0x1,'commandId':_0x10723d['id'],'commandParams':{'unitId':_0x5e2315,'drawings':[{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177,'drawingType':_0x2f1c07}]},'disable':!0x1},{'label':'sheets-shape-ui.hidePanel','index':0x2,'commandId':Kn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipH':!0x0},'disable':!0x1},{'label':_0x531022(0x13d),'index':0x4,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipV':!0x0},'disable':!0x1},{'label':_0x531022(0x2d6),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':0x5a},'disable':!0x1},{'label':_0x531022(0x9a),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0x1e9400['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177},'disable':!0x1}];}['_getShapeInfo'](_0x24b19d,_0x5751d1,_0x7453ac){const _0x34e9a6=_0x43dbb9;let _0xca66c2=this[_0x34e9a6(0x1ff)]['getShapeTypeById'](_0x24b19d,_0x5751d1,_0x7453ac),_0x40afd6=this[_0x34e9a6(0x1ff)]['getShapeDataById'](_0x24b19d,_0x5751d1,_0x7453ac);return _0xca66c2!==void 0x0&&_0x40afd6!==void 0x0?{'shapeData':_0x40afd6,'shapeId':_0x7453ac,'shapeType':_0xca66c2,'unitId':_0x24b19d,'subUnitId':_0x5751d1,'version':this[_0x34e9a6(0xc9)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x106ebe){const _0x4291ec=_0x43dbb9;if(!_0x106ebe)return;let _0x10df5d=_0x106ebe[_0x4291ec(0xb8)]();this[_0x4291ec(0x87)]['has'](_0x10df5d)&&!this['_initializedShapePopupMenu']['has'](_0x10df5d)&&(this['_popupMenuListener'](_0x10df5d),this['_initializedShapePopupMenu']['add'](_0x10df5d));}['_clearPopups'](){const _0xa246b4=_0x43dbb9;this[_0xa246b4(0x1d3)][_0xa246b4(0x200)](_0x58c970=>_0x58c970['dispose']()),this['_disposePopups']['length']=0x0;}[_0x43dbb9(0x226)](_0x1d615c){const _0x5d516f=_0x43dbb9;var _0x4ce03a;let _0x5736b5=(_0x4ce03a=this[_0x5d516f(0x87)]['getRenderById'](_0x1d615c))==null?void 0x0:_0x4ce03a['scene'],_0x3610e9=_0x5736b5==null?void 0x0:_0x5736b5[_0x5d516f(0x84)]();!_0x5736b5||!_0x3610e9||(this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x99)][_0x5d516f(0x28f)](()=>{const _0x3711b2=_0x5d516f;let _0x4ef2c2=_0x3610e9[_0x3711b2(0x2c9)]();if(this[_0x3711b2(0x213)](),this[_0x3711b2(0x191)]||_0x4ef2c2[_0x3711b2(0xb4)]>0x1)return;let _0x4423e2=_0x4ef2c2[_0x3711b2(0x133)]()[_0x3711b2(0x166)]()['value'];if(!_0x4423e2)return;let _0x7f16be=this[_0x3711b2(0xcc)][_0x3711b2(0x9f)](_0x4423e2[_0x3711b2(0xe8)]);if(!_0x7f16be||_0x7f16be['drawingType']!==_0x5d03f6['DRAWING_SHAPE'])return;let {unitId:_0x9b0a2,subUnitId:_0x4d4973,drawingId:_0x40f857,drawingType:_0x1d6596}=_0x7f16be,_0x133d97=this[_0x3711b2(0x2c5)](_0x9b0a2,_0x4d4973,_0x40f857);if(!_0x133d97)return;this['_contextService'][_0x3711b2(0x1c9)](_0x596494,!0x0);let _0x4817ad=this[_0x3711b2(0xbf)]['attachPopupToObject'](_0x4423e2,{'componentKey':An,'direction':_0x3711b2(0x20e),'offset':[0x0,_0x9bdae2],'extraProps':{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857,'drawingType':_0x1d6596,'shapeType':_0x133d97['shapeType'],'shapeData':_0x133d97[_0x3711b2(0x106)]}});this[_0x3711b2(0x1d3)][_0x3711b2(0x241)](this[_0x3711b2(0x11b)](_0x4817ad)),this['_drawingManagerService'][_0x3711b2(0x27f)]()['find'](_0x4d8f2b=>_0x4d8f2b[_0x3711b2(0x25d)]===_0x9b0a2&&_0x4d8f2b['subUnitId']===_0x4d4973&&_0x4d8f2b['drawingId']===_0x40f857)||this[_0x3711b2(0xcc)][_0x3711b2(0x141)]([{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857}]);})),this['disposeWithMe'](_0x3610e9[_0x5d516f(0xee)][_0x5d516f(0x28f)](()=>{const _0x1348cc=_0x5d516f;this[_0x1348cc(0x213)](),this[_0x1348cc(0x216)]['setContextValue'](_0x596494,!0x1),this[_0x1348cc(0xcc)][_0x1348cc(0x141)](null);})),this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x18c)][_0x5d516f(0x28f)](()=>{const _0x42a488=_0x5d516f;this[_0x42a488(0x213)]();})),this[_0x5d516f(0x11b)](_0x3610e9['changeStart$'][_0x5d516f(0x28f)](()=>{const _0x370b36=_0x5d516f;this[_0x370b36(0x213)]();})));}[_0x43dbb9(0xe7)](){const _0x5a3b7b=_0x43dbb9;this[_0x5a3b7b(0x11b)](this['_commandService'][_0x5a3b7b(0x1f7)](_0x351bb8=>{const _0x111fcb=_0x5a3b7b;if(_0x351bb8['id']===qn['id']){let {unitId:_0x455d02,subUnitId:_0x55dc45,drawingId:_0x286405}=_0x351bb8[_0x111fcb(0x118)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x455d02,_0x55dc45,_0x286405),this[_0x111fcb(0x213)](),this[_0x111fcb(0x28e)]();}if(_0x351bb8['id']===Kn['id']&&(this[_0x111fcb(0x1ea)]=null,this['_closeShapeEditPanel']()),_0x351bb8['id']===_0x19b81c['id']){let {unitId:_0x4b0819,subUnitId:_0x4c282c,shapeId:_0x4363ca}=_0x351bb8[_0x111fcb(0x118)];if(this[_0x111fcb(0x1ea)]&&this[_0x111fcb(0x1ea)][_0x111fcb(0xfc)]===_0x4363ca){let _0xb9b86a=this[_0x111fcb(0x2c5)](_0x4b0819,_0x4c282c,_0x4363ca);_0xb9b86a&&(this['_shapeEditPanelVersion']+=0x1,_0xb9b86a[_0x111fcb(0x10f)]=this[_0x111fcb(0xc9)],this[_0x111fcb(0x1ea)]=_0xb9b86a,this[_0x111fcb(0x191)]&&this[_0x111fcb(0x28e)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x5a3b7b(0x231)][_0x5a3b7b(0x28f)](_0x1de67b=>{const _0x1ffb26=_0x5a3b7b;if(this[_0x1ffb26(0x191)]===!0x1)return;if(_0x1de67b[_0x1ffb26(0x15f)]===0x0){this[_0x1ffb26(0x1ea)]=null,this[_0x1ffb26(0x23d)]();return;}if(_0x1de67b['length']===0x1&&_0x1de67b[0x0]['drawingType']===_0x5d03f6[_0x1ffb26(0x23a)]&&(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0][_0x1ffb26(0x212)],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)])){this['_openShapeEditPanel']();return;}let _0x345947=_0x1de67b[_0x1ffb26(0xb6)](_0x1e7c20=>_0x1e7c20[_0x1ffb26(0x2cb)]===_0x5d03f6[_0x1ffb26(0x23a)]);if(_0x1de67b[_0x1ffb26(0x15f)]>0x1&&_0x345947['length']===_0x1de67b[_0x1ffb26(0x15f)]){if(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0][_0x1ffb26(0x1a9)]),this['_activeShapeInfo']){this[_0x1ffb26(0x28e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)]){this[_0x1ffb26(0x1ea)][_0x1ffb26(0x1b3)]=!0x0,this[_0x1ffb26(0x28e)]();return;}}this['_closeShapeEditPanel']();}));}[_0x43dbb9(0x28e)](){const _0x26cfaf=_0x43dbb9;this['_activeShapeInfo']&&(this[_0x26cfaf(0x2da)]=this[_0x26cfaf(0x1d5)][_0x26cfaf(0x291)]({'id':On,'header':{'title':this[_0x26cfaf(0x1ca)]['t'](_0x26cfaf(0xff))},'width':0x184,'children':{'label':On,...this[_0x26cfaf(0x1ea)]},'onClose':()=>{const _0x5338ce=_0x26cfaf;this[_0x5338ce(0xcc)]['focusDrawing'](null),this['_contextService'][_0x5338ce(0x1c9)](_0x596494,!0x1),this[_0x5338ce(0x2da)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x10c496=_0x43dbb9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x10c496(0x1d5)][_0x10c496(0x25f)](On),this[_0x10c496(0x2da)]=null,this[_0x10c496(0x216)][_0x10c496(0x1c9)](_0x596494,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};br=Z([X(0x0,_0x7113c7),X(0x1,_0x450bf3(_0x10b5ac)),X(0x2,_0x44a75b),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0xa3717a)),X(0x5,_0x4d9cac),X(0x6,_0x324617),X(0x7,_0x450bf3(_0x15ebbe)),X(0x8,_0x21d773),X(0x9,_0x263af6),X(0xa,_0x450bf3(ir))],br);let $=class extends _0x33cfb9{constructor(_0x455ba2=Jn,_0x321202,_0x56aa4a,_0x42a527,_0x204e79){const _0x43179f=_0x43dbb9;super(),this[_0x43179f(0x9e)]=_0x455ba2,this['_injector']=_0x321202,this[_0x43179f(0x285)]=_0x56aa4a,this['_configService']=_0x42a527,this[_0x43179f(0x87)]=_0x204e79;let {..._0x2e6d11}=_0x2f8dd2({},Jn,this[_0x43179f(0x9e)]);this[_0x43179f(0x1d0)][_0x43179f(0x2df)](_0x43179f(0xe6),_0x2e6d11),this[_0x43179f(0xdd)]();}[_0x43dbb9(0x248)](){const _0x1a9e30=_0x43dbb9;_0xdf78a(this[_0x1a9e30(0x1f4)],[[br],[dr],[Q],[vr]]);}[_0x43dbb9(0x96)](){const _0x17b486=_0x43dbb9;this[_0x17b486(0x1f4)][_0x17b486(0x1bd)](br)[_0x17b486(0x2bc)]();}[_0x43dbb9(0xce)](){const _0x3c9b05=_0x43dbb9;[[mr],[Tn],[hr]]['forEach'](_0x3cb23d=>this['_injector'][_0x3c9b05(0x10b)](_0x3cb23d)),_0xdf78a(this[_0x3c9b05(0x1f4)],[[hr],[Tn]]),this['_renderManagerService'][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[mr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[sr]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28[_0x3c9b05(0x1e0)],[_r]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28['UNIVER_SHEET'],[lr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28['UNIVER_DOC'],[ur]);}['onStarting'](){const _0x433500=_0x43dbb9;this[_0x433500(0x1f4)][_0x433500(0x10b)]([or]),this[_0x433500(0x1f4)][_0x433500(0x1bd)](or);let _0x1f1598=this['_injector'];[[br],[dr],[Q],[vr],[$n],[ir],[cr],[Pn],[yr]][_0x433500(0x200)](_0x3b15cc=>_0x1f1598[_0x433500(0x10b)](_0x3b15cc)),_0xdf78a(this[_0x433500(0x1f4)],[[br],[dr],[Q],[$n],[ir],[cr],[Pn],[yr]]);}[_0x43dbb9(0xdd)](){const _0x27dedb=_0x43dbb9;[Dn,gn,Kn,qn,Nn,En]['forEach'](_0xaeab53=>this[_0x27dedb(0x11b)](this[_0x27dedb(0x285)][_0x27dedb(0x123)](_0xaeab53)));}};Y($,_0x43dbb9(0x178),_0x2a1b28['UNIVER_SHEET']),Y($,_0x43dbb9(0x111),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x43dbb9(0x11e),Wn),Y($,_0x43dbb9(0x10f),Gn),$=Z([_0x8fb429(_0x2cef26,_0x5337ae,_0x56b5ca,_0x249942),X(0x1,_0x450bf3(_0x183eff)),X(0x2,_0x4d9cac),X(0x3,_0x1e0ba7),X(0x4,_0x263af6)],$);export{Un as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
1
+ const _0xcb6cbb=_0x5971;(function(_0x593b39,_0x57c682){const _0x432504=_0x5971,_0xcd9ef8=_0x593b39();while(!![]){try{const _0x589a54=parseInt(_0x432504(0x2a3))/0x1+-parseInt(_0x432504(0x100))/0x2*(parseInt(_0x432504(0x21e))/0x3)+-parseInt(_0x432504(0x192))/0x4*(parseInt(_0x432504(0x30a))/0x5)+parseInt(_0x432504(0x2df))/0x6+parseInt(_0x432504(0xbf))/0x7*(parseInt(_0x432504(0x19f))/0x8)+parseInt(_0x432504(0x174))/0x9+-parseInt(_0x432504(0x21b))/0xa*(-parseInt(_0x432504(0x261))/0xb);if(_0x589a54===_0x57c682)break;else _0xcd9ef8['push'](_0xcd9ef8['shift']());}catch(_0xd70729){_0xcd9ef8['push'](_0xcd9ef8['shift']());}}}(_0x10e2,0x41949));import{ComponentManager as _0x3e4916,ContextMenuGroup as _0x5e3670,ContextMenuPosition as _0x19ebdc,IMenuManagerService as _0x1aa6d4,ISidebarService as _0x4770b9,IconManager as _0x302aca,MenuItemType as _0x187ab3,RibbonInsertGroup as _0x99ab95,UniverUIPlugin as _0x2863d5,getMenuHiddenObservable as _0x54d985,useDependency as _0x5ead04,useObservable as _0x3e0fd9}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x4d85c6,ImageSourceTypeEnum as _0x1d28e9,ShapeArrowSizeEnum as _0x483edf,ShapeArrowTypeEnum as _0x443563,ShapeDefaultConfig as _0x3cbe53,ShapeFillEnum as _0x208105,ShapeLineTypeEnum as _0x3e780b,ShapeModel as _0x508f4b,ShapeRenderModeEnum as _0x30553a,ShapeTypeEnum as _0x4c4784,computeConnectorRouteLayout as _0x5d79b3,getBasicShapeRotateBound as _0x202bf2,isConnectorShape as _0x286130,isCurvedConnectorShape as _0x5b9030,routeConnectorLineShape as _0x502b11}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x246f9b,UniverShapeEditorPlugin as _0x4efd70,createShapeFormulaDocument as _0x267ca5,createShapeTextBoxShapeData as _0x38899d}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x5268cc,InsertSheetsShapeMutation as _0x314d59,RemoveSheetsShapeMutation as _0x1fd47e,SetShapeDrawingDataCommand as _0x28ec43,SheetsShapeService as _0x231cef,ToggleSheetsShapeFlipCommand as _0x44c026,UniverSheetsShapePlugin as _0x47b64b,UpdateConnectorRelationCommand as _0x1ae360,UpdateLineShapeResizeCommand as _0x15b46f,UpdateSheetsShapeDataMutation as _0x528850}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x22122b,CommandType as _0xd030d0,DependentOn as _0x4a9068,Disposable as _0x444b76,DocumentDataModel as _0x1c3437,DrawingTypeEnum as _0x55872c,FOCUSING_COMMON_DRAWINGS as _0x5c6846,FOCUSING_SHAPE_TEXT_EDITOR as _0x2bcc42,HorizontalAlign as _0x166f93,ICommandService as _0x3a72b1,IConfigService as _0x7ad4a5,IContextService as _0x34c0f6,IImageIoService as _0x5939d4,IURLImageService as _0x379500,IUndoRedoService as _0x476dff,IUniverInstanceService as _0x1af83c,Inject as _0x25d6be,Injector as _0x3ca189,LocaleService as _0x498c36,Plugin as _0x325a4b,UniverInstanceType as _0x593ef9,VerticalAlign as _0x4874a7,createInternalEditorID as _0x3ca21e,generateRandomId as _0xf6c8c4,merge as _0x5ed21a,toDisposable as _0x452c8c,touchDependencies as _0x1f2515}from'@univerjs/core';import{CopySheetCommand as _0x5249ee,RemoveSheetCommand as _0x130616,SheetInterceptorService as _0x555ec8,SheetPermissionCheckController as _0x4bb7c3,SheetSkeletonService as _0x414a67,SheetsSelectionsService as _0x2c9660,UniverSheetsPlugin as _0x5dd7ab,WorkbookEditablePermission as _0x3a8356,WorksheetEditPermission as _0x521940,attachRangeWithCoord as _0x2cf26d,discreteRangeToRange as _0xe86510,getSheetCommandTarget as _0x5f445e}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a1ed0,SetDrawingSelectedOperation as _0xc56e65,UniverDrawingPlugin as _0x37224d,getDrawingShapeKeyByDrawingSearch as _0x4f98bd}from'@univerjs/drawing';import{CURSOR_TYPE as _0x1bae0e,Circle as _0x38d822,DRAWING_OBJECT_LAYER_INDEX as _0x338629,DocumentSkeleton as _0xd9ea3b,DocumentViewModel as _0x2f24ed,Documents as _0x189c29,IRenderManagerService as _0x297a94,Image as _0x2c6b0b,RENDER_CLASS_TYPE as _0x407a18,SHEET_VIEWPORT_KEY as _0x61ec49,Shape as _0x30d1c4,Transform as _0x3bab71,UniverRenderEnginePlugin as _0x4579a4,Vector2 as _0x304485}from'@univerjs/engine-render';import{COPY_TYPE as _0xf143f2,ISheetClipboardService as _0x165587,PREDEFINED_HOOK_NAME as _0x403204,SheetCanvasPopManagerService as _0x38b394,SheetPrintInterceptorService as _0x1c54e8,SheetScrollManagerService as _0x3e3bbb,SheetSkeletonManagerService as _0x48c126,UniverSheetsUIPlugin as _0x1d8391,deriveStateFromActiveSheet$ as _0x525c18,getCurrentRangeDisable$ as _0x26b975,getViewportByCell as _0x3dd685}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x2c970e,EMPTY as _0x1198ce,Observable as _0x243af9,map as _0x30d3f5,of as _0x9a150f,startWith as _0x3992d1,switchMap as _0x11d4bf}from'rxjs';import{FormulaShapeAnimationController as _0x2acab2,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x2b7ae2,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x2a48ef,ShapeEditPanel as _0x369510,ShapeFloatingToolbar as _0xb6f545,ShapeGroupEnum as _0x176d3f,ShapePickerDropdown as _0x29e80a,ShapePickerPanel as _0x41d5aa,ShapeTextEditorContainer as _0x2189a3,ShapeTextFloatMenuRenderControllerBase as _0x4ab995,ShapeTextFloatToolbar as _0x5181cc,UniverShapeEditorUIPlugin as _0x1ee45e,activateDrawingObject as _0x185eb9,buildShapeTextDataUpdate as _0x25c3c6,clearActiveDrawingObjects as _0x5b4b31,drawFormulaShapeAnimationLayers as _0x2e8049,getTextModel as _0x54d766,getTextStyle as _0x5e4bce,normalizeShapeTextModel as _0x5e40d7,plainShapeTextToDocumentData as _0x420376,prepareShapeTextDocumentData as _0x2e4371,resolveFormulaShapeAutoFitSize as _0x46175e,resolveShapeTextDocumentRenderLayout as _0x189c4a,resolveShapeTextEditorBehaviorShapeData as _0x4d5687,resolveShapeTextEditorWrapStrategy as _0x2ad013,shouldAllowShapeTextEditorHostSizeShrink as _0x4f6d3a,shouldClipShapeTextDocument as _0xf99043,useFormulaShapeToolbar as _0x14e335}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x5f53ae,DrawingImageClipService as _0x5773e2,DrawingRenderService as _0x56246f,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3d27a0,OBJECT_LIST_FLOATING_SECTION_ID as _0x5a455a,ObjectListPanelBase as _0x155589,UniverDrawingUIPlugin as _0x1485ee,getCurrentUnitInfo as _0x38af4c,getObjectListPanelLabels as _0x5ac108,getObjectListPanelSectionIdForDrawingType as _0x67bdd6,getObjectListPanelTypeName as _0x2b9a99,insertGroupObject as _0x57d837}from'@univerjs/drawing-ui';import{Fragment as _0x1370ea,jsx as _0x49d3c9,jsxs as _0x568cbe}from'react/jsx-runtime';import{UniverLicensePlugin as _0x573913}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x1d0921,UniverDocsPlugin as _0x449d42}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x2a16ba,DocSelectionRenderService as _0x4b8e76,UniverDocsUIPlugin as _0xd4f97b}from'@univerjs/docs-ui';import{DrawingApplyType as _0x11752e,ISheetDrawingService as _0x2a99b6,RemoveSheetDrawingCommand as _0x535cd6,SetDrawingApplyMutation as _0x555349,SetDrawingArrangeCommand as _0xb4ccfa,SetSheetDrawingCommand as _0x2cc676,UniverSheetsDrawingPlugin as _0x57144b,transformToAxisAlignPosition as _0x5aa2b7,transformToDrawingPosition as _0x43002e}from'@univerjs/sheets-drawing';import{SheetDrawingAnchor as _0xdce9e4,SheetsDrawingGroupCopyPasteController as _0x47dae5,UniverSheetsDrawingUIPlugin as _0x56149f}from'@univerjs/sheets-drawing-ui';import{FlipHorizontalIcon as _0x473587,FlipVerticalIcon as _0x1155bd,ObjectLayersIcon as _0x41a10e}from'@univerjs/icons';import{memo as _0x315608,useEffect as _0x2f51d2,useMemo as _0xfae447,useReducer as _0x10f2b3,useState as _0x115a69}from'react';function kn(_0x1e2ef8,_0x370fe7){const _0x4ff1a6=_0x5971;let _0xf86625={};for(let _0x220cb3 of Object[_0x4ff1a6(0x29e)](_0x370fe7)){let _0x49cc52=_0x370fe7[_0x220cb3],_0x3906d9=_0x1e2ef8[_0x220cb3];if(_0x49cc52!==void 0x0){if(_0x3906d9===void 0x0){_0xf86625[_0x220cb3]=void 0x0;continue;}typeof _0x49cc52==_0x4ff1a6(0x21a)&&_0x49cc52&&!Array[_0x4ff1a6(0x2f0)](_0x49cc52)&&typeof _0x3906d9==_0x4ff1a6(0x21a)&&_0x3906d9&&!Array['isArray'](_0x3906d9)?_0xf86625[_0x220cb3]=kn(_0x3906d9,_0x49cc52):_0xf86625[_0x220cb3]=_0x3906d9;}}return _0xf86625;}const An={'type':_0xd030d0[_0xcb6cbb(0x1fd)],'id':_0xcb6cbb(0x10d),'handler':(_0x4960ed,_0x799bda)=>{const _0x10502c=_0xcb6cbb;let _0x3de65f=_0x4960ed[_0x10502c(0x2da)](_0x231cef),{unitId:_0x1dfe7c,subUnitId:_0x2d64b6,shapeType:_0x570b99,shapeId:_0x4adb29,shapeData:_0x5e2fb8,oldShapeJSON:_0x587b03}=_0x799bda;if(!_0x3de65f[_0x10502c(0x2c4)](_0x1dfe7c,_0x2d64b6,_0x4adb29))return!0x1;let _0x56182b=_0x4960ed['get'](_0x3a72b1),_0x4b8b85=_0x4960ed['get'](_0x476dff),{oldShapeType:_0x45ba37,oldShapeData:_0x631b85={}}=_0x587b03,_0x50a758=kn(_0x631b85,_0x5e2fb8||{}),_0x45a26b={'id':_0x528850['id'],'params':{'unitId':_0x1dfe7c,'subUnitId':_0x2d64b6,'shapeId':_0x4adb29,'shapeType':_0x570b99,'shapeData':_0x5e2fb8}},_0x4b10e3={'id':_0x528850['id'],'params':{'unitId':_0x1dfe7c,'subUnitId':_0x2d64b6,'shapeId':_0x4adb29,'shapeType':_0x45ba37,'shapeData':_0x50a758}};return _0x56182b[_0x10502c(0xdc)](_0x45a26b['id'],_0x45a26b['params'])?(_0x4b8b85[_0x10502c(0x2cc)]({'unitID':_0x1dfe7c,'undoMutations':[_0x4b10e3],'redoMutations':[_0x45a26b]}),!0x0):!0x1;}};function _0x5971(_0x5262b0,_0x763d72){_0x5262b0=_0x5262b0-0xb6;const _0x10e225=_0x10e2();let _0x59718e=_0x10e225[_0x5262b0];return _0x59718e;}function jn(_0x2a3349,_0x285fe6,_0x2d0f82,_0x58809d,_0x47b65e,_0x19eb8a){const _0x1b595d=_0xcb6cbb;let _0x3c350e={'unitId':_0x285fe6,'subUnitId':_0x2d0f82,'shapeId':_0x58809d,'shapeData':_0x19eb8a,'oldShapeJSON':_0x47b65e};return _0x2a3349[_0x1b595d(0x29b)](An['id'],_0x3c350e);}function Mn(_0x3d1ed3,_0x5b2c33,_0x346796,_0x74db9a,_0x5f07eb,_0x490762){let _0x562e11={'unitId':_0x5b2c33,'subUnitId':_0x346796,'shapeId':_0x74db9a,'shapeData':_0x490762,'oldShapeJSON':_0x5f07eb};return _0x3d1ed3['executeCommand'](An['id'],_0x562e11);}function Nn(_0x2aaebc){'@babel/helpers - typeof';const _0x4acd06=_0xcb6cbb;return Nn=typeof Symbol=='function'&&typeof Symbol[_0x4acd06(0x175)]==_0x4acd06(0x2b1)?function(_0x199d48){return typeof _0x199d48;}:function(_0x564792){const _0x4b98bd=_0x4acd06;return _0x564792&&typeof Symbol=='function'&&_0x564792[_0x4b98bd(0xbc)]===Symbol&&_0x564792!==Symbol[_0x4b98bd(0xdb)]?_0x4b98bd(0x2b1):typeof _0x564792;},Nn(_0x2aaebc);}function Pn(_0x386c4d,_0xb4a917){const _0x526c48=_0xcb6cbb;if(Nn(_0x386c4d)!='object'||!_0x386c4d)return _0x386c4d;var _0x37aaed=_0x386c4d[Symbol['toPrimitive']];if(_0x37aaed!==void 0x0){var _0x2c27d5=_0x37aaed[_0x526c48(0x25a)](_0x386c4d,_0xb4a917||_0x526c48(0x14b));if(Nn(_0x2c27d5)!=_0x526c48(0x21a))return _0x2c27d5;throw TypeError(_0x526c48(0x1df));}return(_0xb4a917==='string'?String:Number)(_0x386c4d);}function Fn(_0x392155){const _0x3fb1fe=_0xcb6cbb;var _0x1e3d1d=Pn(_0x392155,_0x3fb1fe(0x2ad));return Nn(_0x1e3d1d)=='symbol'?_0x1e3d1d:_0x1e3d1d+'';}function Y(_0x408bd2,_0x1aac38,_0x218ff0){const _0x5c35bb=_0xcb6cbb;return(_0x1aac38=Fn(_0x1aac38))in _0x408bd2?Object[_0x5c35bb(0x12b)](_0x408bd2,_0x1aac38,{'value':_0x218ff0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x408bd2[_0x1aac38]=_0x218ff0,_0x408bd2;}function In(_0x438dcc,_0x2fddb1,_0x12d4ec){const _0x3ff638=_0xcb6cbb;var _0x1e7862;let _0x303fae=_0x4d5687(_0x438dcc,{..._0x2fddb1,'dataModel':{...(_0x1e7862=_0x2fddb1[_0x3ff638(0x24f)])==null?{}:_0x1e7862,..._0x12d4ec?{'doc':_0x12d4ec}:null}}),_0x5c51d1=_0x2ad013(_0x303fae);return{'clip':_0xf99043(_0x303fae,_0x5c51d1),'wrapStrategy':_0x5c51d1};}var Ln=class extends _0x30d1c4{constructor(_0x114fbc,_0x3787b7){const _0x500017=_0xcb6cbb;super(_0x114fbc,_0x3787b7),Y(this,_0x500017(0x243),void 0x0),Y(this,_0x500017(0x28d),new _0x2acab2(()=>this[_0x500017(0x1dd)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,'_transformCalculateSrcRect',!0x0),Y(this,_0x500017(0x27d),_0x55872c[_0x500017(0x1ce)]),Y(this,_0x500017(0x202),!0x0),this['_props']={..._0x3787b7},this[_0x500017(0x28d)][_0x500017(0x2c5)](_0x3787b7[_0x500017(0x148)],_0x3787b7['animateFormulaPresentation']!==!0x1),this[_0x500017(0x316)](),this['_applyFormulaAutoFitSize']();}[_0xcb6cbb(0x316)](){const _0x46c468=_0xcb6cbb;this[_0x46c468(0x27c)][_0x46c468(0x2fe)](_0x33d9b9=>{const _0x2db8d9=_0x46c468;this[_0x2db8d9(0x215)](_0x33d9b9);});}[_0xcb6cbb(0x268)](_0x8003f1){const _0x56ab76=_0xcb6cbb;this[_0x56ab76(0x243)][_0x56ab76(0x2db)]=_0x8003f1;}[_0xcb6cbb(0x285)](_0x986cb2){const _0x164fcd=_0xcb6cbb;this[_0x164fcd(0x243)][_0x164fcd(0xfd)]=_0x986cb2,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x4729b1,_0x16fbc1=!0x0){const _0x3abb0a=_0xcb6cbb;this['_formulaAnimation'][_0x3abb0a(0x2c5)](_0x4729b1,_0x16fbc1),this[_0x3abb0a(0x243)][_0x3abb0a(0x148)]=_0x4729b1,this['_applyFormulaAutoFitSize'](),this[_0x3abb0a(0x1dd)](!0x0);}[_0xcb6cbb(0x210)](){const _0x23b420=_0xcb6cbb;let _0x32a8a5=this[_0x23b420(0x243)][_0x23b420(0x279)],_0x6a7d75=_0x32a8a5[_0x23b420(0x19d)](),_0x3b4c8c=_0x5e40d7(_0x6a7d75==null?void 0x0:_0x6a7d75[_0x23b420(0x24f)]),_0x894940=_0x3b4c8c==null?void 0x0:_0x3b4c8c[_0x23b420(0x185)],_0x1a928f=this[_0x23b420(0x28d)]['getAutoFitPresentations']();if(!_0x894940||_0x1a928f[_0x23b420(0x25d)]===0x0)return;_0x32a8a5['updateContext']({'width':this[_0x23b420(0x1fb)],'height':this[_0x23b420(0x123)]});let _0x34da03=_0x46175e({'documentData':_0x1a928f['map'](_0xf70dbb=>_0x267ca5(_0x894940,_0xf70dbb)),'height':this[_0x23b420(0x123)],'shapeData':_0x32a8a5[_0x23b420(0x113)](),'textRect':_0x32a8a5[_0x23b420(0x26b)]({'left':0x0,'top':0x0,'width':this[_0x23b420(0x1fb)],'height':this[_0x23b420(0x123)]}),'width':this[_0x23b420(0x1fb)]});if(_0x34da03){var _0xc6b3ef;this['resize'](_0x34da03[_0x23b420(0x1fb)],_0x34da03[_0x23b420(0x123)]),(_0xc6b3ef=this[_0x23b420(0xe6)]())==null||(_0xc6b3ef=_0xc6b3ef['getTransformer']())==null||_0xc6b3ef[_0x23b420(0x128)]();}}get['unitId'](){const _0x51683f=_0xcb6cbb;return this[_0x51683f(0x243)][_0x51683f(0x241)];}get[_0xcb6cbb(0x281)](){const _0x12ecc6=_0xcb6cbb;return this['_props'][_0x12ecc6(0x281)];}[_0xcb6cbb(0x215)](_0x3d79f6){const _0x5327ab=_0xcb6cbb;if(this[_0x5327ab(0x243)][_0x5327ab(0x200)]==null||!this[_0x5327ab(0x325)])return;let {width:_0x2de1c5,height:_0x59e524}=this,{width:_0x3ef4ff=0x0,height:_0x440159=0x0}=_0x3d79f6['preValue'],{left:_0x39265d=0x0,top:_0x9ab6aa=0x0,right:_0x9dcd14=0x0,bottom:_0x1b0d71=0x0}=this[_0x5327ab(0x243)][_0x5327ab(0x200)],_0x1553a0=_0x39265d,_0x2823a3=_0x9ab6aa,_0x41e8e5=_0x9dcd14,_0x1a7072=_0x1b0d71,_0x465307=!0x1;if(_0x3ef4ff!==0x0&&_0x3ef4ff!==_0x2de1c5){let _0x337bfd=_0x39265d/_0x3ef4ff,_0x544288=_0x9dcd14/_0x3ef4ff;_0x1553a0=_0x2de1c5*_0x337bfd,_0x41e8e5=_0x2de1c5*_0x544288,_0x465307=!0x0;}if(_0x440159!==0x0&&_0x440159!==_0x59e524){let _0x83074f=_0x9ab6aa/_0x440159,_0x56dc31=_0x1b0d71/_0x440159;_0x2823a3=_0x59e524*_0x83074f,_0x1a7072=_0x59e524*_0x56dc31,_0x465307=!0x0;}_0x465307&&this[_0x5327ab(0xc3)]({'left':_0x1553a0,'top':_0x2823a3,'right':_0x41e8e5,'bottom':_0x1a7072});}['setSrcRect'](_0x2fca13){const _0x202ab1=_0xcb6cbb;this[_0x202ab1(0x243)][_0x202ab1(0x200)]=_0x2fca13,this[_0x202ab1(0x1dd)](!0x0);}[_0xcb6cbb(0x245)](_0x483acd){const _0xe3a2d5=_0xcb6cbb;this[_0xe3a2d5(0x243)][_0xe3a2d5(0xf9)]=_0x483acd,this[_0xe3a2d5(0x1dd)](!0x0);}set['transform'](_0x1b1462){const _0x120435=_0xcb6cbb;this[_0x120435(0x2b5)]=_0x1b1462;}get['transform'](){const _0x861fdb=_0xcb6cbb;this[_0x861fdb(0x2b5)]||this[_0x861fdb(0x2ae)]();let _0x37c486=this['_transform'][_0x861fdb(0x2d1)]();return this[_0x861fdb(0x271)](_0x37c486);}get[_0xcb6cbb(0x279)](){const _0x3497a0=_0xcb6cbb;return this[_0x3497a0(0x243)]['shapeModel'];}get[_0xcb6cbb(0x124)](){const _0x1a795a=_0xcb6cbb;return this[_0x1a795a(0x243)][_0x1a795a(0x124)];}get[_0xcb6cbb(0x213)](){return _0x407a18['SHAPE'];}[_0xcb6cbb(0x2d9)](_0x137e31,_0x2bcf61,_0x395043,_0x12cf09){const _0x6760f8=_0xcb6cbb;let _0x5eee64=this[_0x6760f8(0x243)][_0x6760f8(0x279)];if(!_0x5eee64||!_0x2bcf61)return;let _0x35004b=_0x395043==null?this[_0x6760f8(0x1fb)]:_0x395043,_0xbec58e=_0x12cf09==null?this['height']:_0x12cf09,_0x3c3383={'shapeType':_0x5eee64[_0x6760f8(0xb7)](),'width':_0x35004b,'height':_0xbec58e},_0xda0381={'renderMode':_0x30553a[_0x6760f8(0x282)],'oKey':this['oKey'],'image':this[_0x6760f8(0x243)][_0x6760f8(0xf9)],'angle':this[_0x6760f8(0x31f)]};_0x5eee64['updateContext'](_0x3c3383),_0x137e31[_0x6760f8(0x321)]();let _0x70b2dc={'top':0x0,'left':0x0,'width':_0x35004b,'height':_0xbec58e},_0x31da19=_0x5eee64[_0x6760f8(0x308)](_0x70b2dc);_0x31da19?this['_renderWithCache'](_0x137e31,_0x31da19,_0x263890=>{const _0x468b6b=_0x6760f8;_0x5eee64[_0x468b6b(0x327)](_0x263890,_0x70b2dc,_0xda0381);}):(this[_0x6760f8(0x2dc)](),_0x5eee64[_0x6760f8(0x327)](_0x137e31,_0x70b2dc,_0xda0381)),_0x137e31[_0x6760f8(0x267)]();let _0x2247c9=_0x5eee64[_0x6760f8(0x19d)](),_0x234f56=_0x5eee64['getShapeTextRect'](_0x70b2dc),_0x19c29f=_0x5eee64[_0x6760f8(0x1ef)]();if(_0x2247c9&&_0x234f56&&!_0x19c29f){_0x137e31['save'](),this[_0x6760f8(0x2e0)]()['flipX']&&_0x137e31[_0x6760f8(0x21c)](-0x1,0x1);let _0x45156f=_0x35004b/0x2,_0x36570c=_0xbec58e/0x2;_0x137e31[_0x6760f8(0xfa)](-_0x45156f,-_0x36570c),_0x137e31[_0x6760f8(0xb8)](),this[_0x6760f8(0x18f)](_0x137e31,_0x2247c9,_0x234f56),_0x137e31['restore']();}}[_0xcb6cbb(0x13c)](_0x3a7989){}[_0xcb6cbb(0x18f)](_0x7d94c1,_0x5b4304,_0x48c77f){const _0x3a480d=_0xcb6cbb;var _0x45b084;this['_props'][_0x3a480d(0xfd)]||(!((_0x45b084=_0x5b4304[_0x3a480d(0x24f)])!=null&&_0x45b084['doc'])&&_0x3a480d(0x2fc)in _0x5b4304&&_0x5b4304[_0x3a480d(0x2fc)]===!0x1?this[_0x3a480d(0x1b3)](_0x7d94c1,_0x5b4304,_0x48c77f):this[_0x3a480d(0x159)](_0x7d94c1,_0x5b4304,_0x48c77f));}[_0xcb6cbb(0x1b3)](_0x3b3f81,_0x11a73e,_0x596db2){const _0x15034f=_0xcb6cbb;var _0x5a5ce2;this[_0x15034f(0x159)](_0x3b3f81,{..._0x11a73e,'text':(_0x5a5ce2=_0x11a73e[_0x15034f(0x207)])==null?'':_0x5a5ce2,'dataModel':{'doc':_0x420376(_0x11a73e,_0x15034f(0x1dc)+this['oKey'])}},_0x596db2);}['_drawRichText'](_0xbe77ab,_0x22da18,_0x1ff41b){const _0x318c59=_0xcb6cbb;_0x2e8049(_0xbe77ab,this[_0x318c59(0x28d)],(_0x40b08d,_0x3ad778)=>{const _0x3e70f3=_0x318c59;this[_0x3e70f3(0x197)](_0x40b08d,_0x22da18,_0x1ff41b,_0x3ad778);});}[_0xcb6cbb(0x197)](_0x34dc32,_0x194cf7,_0x40f0c4,_0x2198f7){const _0x20c688=_0xcb6cbb;var _0x550211,_0x24f2b4;let _0x1f00be=this[_0x20c688(0x243)][_0x20c688(0x27f)];if(!_0x194cf7['dataModel']||!_0x1f00be)return;let _0x50f3ef=_0x5e40d7(_0x194cf7[_0x20c688(0x24f)]);if(!_0x50f3ef)return;let _0x261525=_0x50f3ef['doc'];if(!_0x261525)return;let _0x49e00c=_0x267ca5(_0x261525,_0x2198f7),_0x2fea4b=(_0x550211=_0x50f3ef['va'])==null?_0x4874a7[_0x20c688(0x23a)]:_0x550211,_0x4d7341=(_0x24f2b4=_0x50f3ef['ha'])==null?_0x166f93[_0x20c688(0xd2)]:_0x24f2b4,_0x3f7a17=In(this[_0x20c688(0x243)][_0x20c688(0x279)][_0x20c688(0x113)](),_0x194cf7,_0x49e00c),_0x3b4d17=_0x194cf7[_0x20c688(0x195)],_0x21f171=new _0x1c3437(_0x2e4371(_0x49e00c,{'isHorizontal':_0x3b4d17!==!0x1,'textRect':_0x40f0c4,'verticalAlign':_0x2fea4b,'horizontalAlign':_0x4d7341,'wrapStrategy':_0x3f7a17[_0x20c688(0x102)]})),_0x226805=new _0x2f24ed(_0x21f171),_0x88f2e2=_0xd9ea3b[_0x20c688(0x1bb)](_0x226805,_0x1f00be);_0x88f2e2['calculate']();let _0x3a3fd0=_0x88f2e2[_0x20c688(0x2c0)]()['actualHeight'],_0x2b6f31=_0x189c4a({'contentHeight':_0x3a3fd0,'verticalAlign':_0x2fea4b,'viewportHeight':_0x40f0c4['height']});_0x21f171['updateDocumentStyle']({'pageSize':{'width':_0x3b4d17===!0x1?_0x40f0c4[_0x20c688(0x123)]:_0x40f0c4[_0x20c688(0x1fb)],'height':_0x2b6f31[_0x20c688(0x170)]}}),_0x21f171[_0x20c688(0x103)]({'t':_0x2b6f31[_0x20c688(0x22e)]}),_0x88f2e2['calculate']();let _0x4a63c0=new _0x189c29(_0x20c688(0x1cb)+this[_0x20c688(0x303)],_0x88f2e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x20c688(0x1dd)](!0x0)});_0x4a63c0[_0x20c688(0x10a)](_0x40f0c4[_0x20c688(0x1fb)],_0x2b6f31[_0x20c688(0x170)]),_0x34dc32[_0x20c688(0x321)](),_0x34dc32[_0x20c688(0x313)](_0x40f0c4[_0x20c688(0x1db)],_0x40f0c4[_0x20c688(0x163)]),_0x3f7a17['clip']&&(_0x34dc32[_0x20c688(0xb8)](),_0x34dc32['rect'](0x0,_0x2b6f31[_0x20c688(0xcb)],_0x40f0c4[_0x20c688(0x1fb)],_0x2b6f31['clipHeight']),_0x34dc32[_0x20c688(0x10b)]()),_0x2b6f31['contentVerticalOffset']&&_0x34dc32[_0x20c688(0x313)](0x0,_0x2b6f31[_0x20c688(0x110)]),_0x4a63c0['draw'](_0x34dc32),_0x34dc32[_0x20c688(0x267)](),_0x4a63c0[_0x20c688(0x20e)](),_0x88f2e2[_0x20c688(0x20e)](),_0x226805['dispose'](),_0x21f171['dispose']();}['render'](_0x14a44f,_0x426efd,_0x83d178=!0x1){const _0xa71962=_0xcb6cbb;if(!this[_0xa71962(0x1f5)])return this[_0xa71962(0x1dd)](!0x1),this;let {width:_0x3d7864,height:_0x11b01d,left:_0xa5d8ab,top:_0x17f6d0}=this,_0x8b1643=this[_0xa71962(0x1f3)]();if(_0x3d7864=_0x8b1643[_0xa71962(0x1fb)],_0x11b01d=_0x8b1643[_0xa71962(0x123)],_0xa5d8ab=_0x8b1643['left'],_0x17f6d0=_0x8b1643[_0xa71962(0x163)],this[_0xa71962(0x324)](_0x426efd)){let {top:_0x56b129,left:_0x3e1da0,bottom:_0xc3248e,right:_0x382fdb}=_0x426efd[_0xa71962(0xf8)];if(_0x3d7864+this['strokeWidth']+_0xa5d8ab<_0x3e1da0||_0x382fdb<_0xa5d8ab||_0x11b01d+this[_0xa71962(0x189)]+_0x17f6d0<_0x56b129||_0xc3248e<_0x17f6d0)return this;}let _0x4ed66b=_0xa5d8ab+_0x3d7864/0x2,_0x36a838=_0x17f6d0+_0x11b01d/0x2,_0x1e84a4=this[_0xa71962(0xce)][_0xa71962(0x1c9)]();if(this[_0xa71962(0x243)][_0xa71962(0xfd)]){let _0x1d9681=this[_0xa71962(0x2e0)](),_0x5f16af=new _0x3bab71();_0x5f16af[_0xa71962(0x1d9)]({..._0x1d9681}),_0x1e84a4=_0x5f16af['getMatrix']();}return _0x14a44f[_0xa71962(0x321)](),this[_0xa71962(0x243)][_0xa71962(0x279)][_0xa71962(0x306)]===!0x0||_0x14a44f['transform'](_0x1e84a4[0x0],_0x1e84a4[0x1],_0x1e84a4[0x2],_0x1e84a4[0x3],_0x4ed66b,_0x36a838),this[_0xa71962(0x2d9)](_0x14a44f,_0x426efd,_0x3d7864,_0x11b01d),_0x14a44f[_0xa71962(0x267)](),this[_0xa71962(0x1dd)](!0x1),this;}[_0xcb6cbb(0x242)](_0x3ab02c){const _0x120a12=_0xcb6cbb;let {left:_0x169c80,top:_0x6f015b,width:_0x3942a0,height:_0x2cafee}=this[_0x120a12(0x1f3)](),_0x37cbdc=this['transform'][_0x120a12(0x1c9)](),_0x5b6692=_0x169c80+_0x3942a0/0x2,_0x15c4d9=_0x6f015b+_0x2cafee/0x2,_0x395448=new _0x3bab71([_0x37cbdc[0x0],_0x37cbdc[0x1],_0x37cbdc[0x2],_0x37cbdc[0x3],_0x5b6692,_0x15c4d9]),_0x150033=this[_0x120a12(0x19c)]();return(this[_0x120a12(0x2a0)]&&(_0x150033==null?void 0x0:_0x150033[_0x120a12(0x213)])===_0x407a18[_0x120a12(0x2c8)]?_0x150033[_0x120a12(0x262)][_0x120a12(0xe1)](_0x395448):_0x395448)['invert']()[_0x120a12(0x235)](_0x3ab02c);}['isHit'](_0x472c85){const _0x1a82bf=_0xcb6cbb;let {left:_0x2f0d3f,top:_0x55dfb7,width:_0x5c1e9d,height:_0x35c913}=this['getRealBound'](),_0x20c2e5=_0x2f0d3f+_0x5c1e9d/0x2,_0x92c4a=_0x55dfb7+_0x35c913/0x2,_0x3cadd2=this['transform'][_0x1a82bf(0x1c9)](),_0x410361=new _0x3bab71([_0x3cadd2[0x0],_0x3cadd2[0x1],_0x3cadd2[0x2],_0x3cadd2[0x3],_0x20c2e5,_0x92c4a]),_0x11555a=this[_0x1a82bf(0x19c)](),_0x291ac1=(this[_0x1a82bf(0x2a0)]&&(_0x11555a==null?void 0x0:_0x11555a[_0x1a82bf(0x213)])===_0x407a18[_0x1a82bf(0x2c8)]?_0x11555a[_0x1a82bf(0x262)][_0x1a82bf(0xe1)](_0x410361):_0x410361)['invert']()['applyPoint'](_0x472c85),_0x49b70f=_0x5c1e9d/0x2,_0x5276de=_0x35c913/0x2,_0x147532=this[_0x1a82bf(0x243)][_0x1a82bf(0x279)];return _0x147532&&_0x147532[_0x1a82bf(0x1ef)]()?_0x147532[_0x1a82bf(0x209)](_0x291ac1['x'],_0x291ac1['y'],_0x5c1e9d,_0x35c913):_0x291ac1['x']>=-_0x49b70f-this['strokeWidth']/0x2&&_0x291ac1['x']<=_0x49b70f+this['strokeWidth']/0x2&&_0x291ac1['y']>=-_0x5276de-this[_0x1a82bf(0x189)]/0x2&&_0x291ac1['y']<=_0x5276de+this['strokeWidth']/0x2;}[_0xcb6cbb(0x20e)](){const _0x4ad48c=_0xcb6cbb;this[_0x4ad48c(0x28d)][_0x4ad48c(0x20e)](),this[_0x4ad48c(0x243)][_0x4ad48c(0x279)]=null,super['dispose']();}},Rn=class extends _0x30d1c4{constructor(_0x5dbefc,_0x359a29){const _0x1a6f6e=_0xcb6cbb;super(_0x5dbefc,_0x359a29),Y(this,_0x1a6f6e(0x252),null),Y(this,_0x1a6f6e(0x275),null),Y(this,'_unitId',null),Y(this,_0x1a6f6e(0x13b),null),_0x359a29&&this[_0x1a6f6e(0x315)](_0x359a29);}[_0xcb6cbb(0x23d)](){const _0x96573e=_0xcb6cbb;return{'unitId':this[_0x96573e(0x2aa)],'subUnitId':this[_0x96573e(0x13b)],'drawingId':this[_0x96573e(0x252)]};}[_0xcb6cbb(0x315)](_0x2d448c){const _0x4b00ab=_0xcb6cbb;_0x2d448c[_0x4b00ab(0x124)]!==void 0x0&&(this[_0x4b00ab(0x252)]=_0x2d448c[_0x4b00ab(0x124)]),_0x2d448c[_0x4b00ab(0x2bc)]!==void 0x0&&(this[_0x4b00ab(0x275)]=_0x2d448c[_0x4b00ab(0x2bc)]),_0x2d448c[_0x4b00ab(0x241)]!==void 0x0&&(this['_unitId']=_0x2d448c[_0x4b00ab(0x241)]),_0x2d448c[_0x4b00ab(0x281)]!==void 0x0&&(this[_0x4b00ab(0x13b)]=_0x2d448c[_0x4b00ab(0x281)]),this[_0x4b00ab(0xdd)]({'width':_0x2d448c[_0x4b00ab(0x1fb)],'height':_0x2d448c[_0x4b00ab(0x123)]});}[_0xcb6cbb(0x2d9)](_0x2cb7a9){const _0x490517=_0xcb6cbb;_0x38d822[_0x490517(0x264)](_0x2cb7a9,{'radius':_0x3cbe53[_0x490517(0xf0)],'fill':_0x3cbe53['adjHandleFill'],'stroke':_0x3cbe53[_0x490517(0x217)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x3335bd,_0x444e31){return function(_0x5f174e,_0x4072fd){_0x444e31(_0x5f174e,_0x4072fd,_0x3335bd);};}function Z(_0x25adef,_0x16c74f,_0x53b56d,_0x141024){const _0x35550d=_0xcb6cbb;var _0x79103e=arguments[_0x35550d(0x25d)],_0x9a7d94=_0x79103e<0x3?_0x16c74f:_0x141024===null?_0x141024=Object[_0x35550d(0x1fe)](_0x16c74f,_0x53b56d):_0x141024,_0x379af6;if(typeof Reflect==_0x35550d(0x21a)&&typeof Reflect['decorate']=='function')_0x9a7d94=Reflect[_0x35550d(0x218)](_0x25adef,_0x16c74f,_0x53b56d,_0x141024);else{for(var _0x359bf3=_0x25adef[_0x35550d(0x25d)]-0x1;_0x359bf3>=0x0;_0x359bf3--)(_0x379af6=_0x25adef[_0x359bf3])&&(_0x9a7d94=(_0x79103e<0x3?_0x379af6(_0x9a7d94):_0x79103e>0x3?_0x379af6(_0x16c74f,_0x53b56d,_0x9a7d94):_0x379af6(_0x16c74f,_0x53b56d))||_0x9a7d94);}return _0x79103e>0x3&&_0x9a7d94&&Object[_0x35550d(0x12b)](_0x16c74f,_0x53b56d,_0x9a7d94),_0x9a7d94;}let Q=class extends _0x444b76{constructor(_0x4c374d,_0x1dde68,_0x2f8fe2,_0x4ea707,_0x52c811,_0x3fbd68){const _0x32be1c=_0xcb6cbb;super(),this[_0x32be1c(0x1ad)]=_0x4c374d,this['_sheetsShapeService']=_0x1dde68,this['_localeService']=_0x2f8fe2,this[_0x32be1c(0x317)]=_0x4ea707,this[_0x32be1c(0x145)]=_0x52c811,this[_0x32be1c(0x2ce)]=_0x3fbd68,Y(this,_0x32be1c(0x164),new Map()),this[_0x32be1c(0x2d6)](this['_shapeFormulaService'][_0x32be1c(0x18b)][_0x32be1c(0x2f7)](_0x51559e=>{const _0x5e2ad1=_0x32be1c;var _0x6335b;(_0x6335b=this['_formulaShapes'][_0x5e2ad1(0x2da)](this[_0x5e2ad1(0x105)](_0x51559e[_0x5e2ad1(0x241)],_0x51559e[_0x5e2ad1(0x281)],_0x51559e[_0x5e2ad1(0x124)])))==null||_0x6335b[_0x5e2ad1(0x26a)](_0x5e120a=>_0x5e120a['setFormulaPresentation'](_0x51559e[_0x5e2ad1(0xe0)],_0x51559e['animationEnabled']));})),this[_0x32be1c(0x2d6)](this[_0x32be1c(0x1ad)]['remove$'][_0x32be1c(0x2f7)](_0x2bb53d=>{const _0x3c0927=_0x32be1c;_0x2bb53d[_0x3c0927(0x26a)](_0x5351b8=>{const _0x1f9a4c=_0x3c0927;this[_0x1f9a4c(0x2ce)][_0x1f9a4c(0xff)]({'unitId':_0x5351b8[_0x1f9a4c(0x241)],'subUnitId':_0x5351b8[_0x1f9a4c(0x281)],'shapeId':_0x5351b8[_0x1f9a4c(0x10e)]}),this[_0x1f9a4c(0x164)][_0x1f9a4c(0x2a6)](this[_0x1f9a4c(0x105)](_0x5351b8[_0x1f9a4c(0x241)],_0x5351b8[_0x1f9a4c(0x281)],_0x5351b8[_0x1f9a4c(0x10e)]));});}));}[_0xcb6cbb(0x1f9)](_0x294da3,_0x50b2f5,_0x27a4c6){const _0x266e10=_0xcb6cbb;let {transform:_0x543189,drawingType:_0xa63eed,srcRect:_0x59042e,prstGeom:_0x32517b,groupId:_0x1b1643,unitId:_0x51ae52,subUnitId:_0x52f980,drawingId:_0x2a761d,isMultiTransform:_0x54cc99,transforms:_0x1cf848,hidden:_0xc70a49,selectable:_0x5254ba}=_0x294da3;if(_0xa63eed!==_0x55872c[_0x266e10(0x1ce)]||!this['_drawingManagerService'][_0x266e10(0x2ef)]()||_0x543189==null)return;let _0x1f12f3=this[_0x266e10(0x1ad)][_0x266e10(0x1e6)]();_0x1f12f3&&_0x50b2f5[_0x266e10(0x2ee)](_0x2b7ae2);let _0x219575=_0x54cc99&&_0x1cf848?_0x1cf848:[_0x543189],_0x21303e=[];for(let _0x1667b0 of _0x219575){let {left:_0x44372f,top:_0x252a3d,width:_0x284fb2,height:_0x541411,angle:_0x575f32,flipX:_0x314ca2,flipY:_0x3c2e75,skewX:_0x5c88f1,skewY:_0x18dd14}=_0x1667b0,_0x2bc4c2=_0x219575[_0x266e10(0xd1)](_0x1667b0),_0x49050d=_0x4f98bd({'unitId':_0x51ae52,'subUnitId':_0x52f980,'drawingId':_0x2a761d},_0x54cc99?_0x2bc4c2:void 0x0),_0x302e76=_0x50b2f5[_0x266e10(0x114)](_0x49050d);if(_0x302e76!=null){let _0x215e82={'unitId':_0x51ae52,'subUnitId':_0x52f980,'shapeId':_0x2a761d};_0x302e76 instanceof Ln&&this[_0x266e10(0x129)](_0x302e76,_0x215e82),_0x302e76[_0x266e10(0xdd)]({'left':_0x44372f,'top':_0x252a3d,'width':_0x284fb2,'height':_0x541411,'angle':_0x575f32,'flipX':_0x314ca2,'flipY':_0x3c2e75,'skewX':_0x5c88f1,'skewY':_0x18dd14});continue;}let _0x5cdfb4=this[_0x266e10(0x1ad)][_0x266e10(0x14a)](_0x51ae52,_0x52f980),_0x387a5d=_0x5cdfb4[_0x266e10(0xd1)](_0x2a761d);if(_0x50b2f5['getObjectIncludeInGroup'](_0x49050d)||!this[_0x266e10(0x1ad)][_0x266e10(0x2ef)]())continue;let _0x381f5c=this[_0x266e10(0x287)][_0x266e10(0x2c4)](_0x51ae52,_0x52f980,_0x2a761d);if(!_0x381f5c)continue;let _0x40cd98=_0x286130(_0x381f5c[_0x266e10(0xb7)]()),_0x3ca477=_0x381f5c['getShapeData']()[_0x266e10(0x138)],_0x4a111e={'unitId':_0x51ae52,'subUnitId':_0x52f980,'shapeId':_0x2a761d};_0x3ca477&&this[_0x266e10(0x2ce)][_0x266e10(0xfb)](_0x4a111e,_0x3ca477);let _0x5ea9b2=new Ln(_0x49050d,{..._0x40cd98?{..._0x1667b0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x1667b0},'zIndex':_0x387a5d===-0x1?_0x5cdfb4[_0x266e10(0x25d)]-0x1:_0x387a5d,'shapeModel':_0x381f5c,'localeService':this[_0x266e10(0x158)],'shapeId':_0x2a761d,'unitId':_0x51ae52,'subUnitId':_0x52f980,'visible':_0xc70a49!==!0x0,'evented':_0x5254ba!==!0x1,'formulaPresentation':_0x3ca477?this['_shapeFormulaService'][_0x266e10(0x1f4)](_0x4a111e):void 0x0,'animateFormulaPresentation':(_0x3ca477==null?void 0x0:_0x3ca477[_0x266e10(0x1a3)])!==!0x1});if(_0x3ca477){var _0x540411;let _0x409220=this[_0x266e10(0x105)](_0x51ae52,_0x52f980,_0x2a761d),_0x3f4098=(_0x540411=this[_0x266e10(0x164)][_0x266e10(0x2da)](_0x409220))==null?new Set():_0x540411;_0x3f4098['add'](_0x5ea9b2),this['_formulaShapes'][_0x266e10(0x26e)](_0x409220,_0x3f4098);}_0x50b2f5[_0x266e10(0x212)](_0x5ea9b2,_0x338629),_0x1f12f3&&_0x50b2f5['attachTransformerTo'](_0x5ea9b2),_0x1b1643&&_0x57d837({'drawingId':_0x1b1643,'unitId':_0x51ae52,'subUnitId':_0x52f980},_0x5ea9b2,_0x50b2f5,this['_drawingManagerService']),_0x32517b!=null&&_0x5ea9b2['setPrstGeom'](_0x32517b),_0x59042e!=null&&_0x5ea9b2[_0x266e10(0xc3)](_0x59042e);let _0x184ff5=this[_0x266e10(0x1e5)](_0x5ea9b2,_0x381f5c[_0x266e10(0x113)]());if(_0x184ff5){var _0x12a0cf;_0x27a4c6==null||(_0x12a0cf=_0x27a4c6[_0x266e10(0x1ba)])==null||_0x12a0cf[_0x266e10(0x1b9)](_0x184ff5);}_0x21303e[_0x266e10(0x311)](_0x5ea9b2);}return _0x21303e;}[_0xcb6cbb(0x105)](_0x5a1c04,_0xbb7090,_0x4f9770){return _0x5a1c04+'\x00'+_0xbb7090+'\x00'+_0x4f9770;}[_0xcb6cbb(0x129)](_0x1b0437,_0x1a3097){const _0x1f9746=_0xcb6cbb;let _0x35ef15=this['_sheetsShapeService'][_0x1f9746(0x2c4)](_0x1a3097['unitId'],_0x1a3097[_0x1f9746(0x281)],_0x1a3097[_0x1f9746(0x124)]),_0x4ec5d5=_0x35ef15==null?void 0x0:_0x35ef15[_0x1f9746(0x113)]()[_0x1f9746(0x138)],_0x44f65a=this[_0x1f9746(0x105)](_0x1a3097[_0x1f9746(0x241)],_0x1a3097[_0x1f9746(0x281)],_0x1a3097[_0x1f9746(0x124)]);if(_0x4ec5d5){var _0x5a9aaa;this[_0x1f9746(0x2ce)][_0x1f9746(0xfb)](_0x1a3097,_0x4ec5d5);let _0x5d3d0c=(_0x5a9aaa=this[_0x1f9746(0x164)][_0x1f9746(0x2da)](_0x44f65a))==null?new Set():_0x5a9aaa;_0x5d3d0c['add'](_0x1b0437),this[_0x1f9746(0x164)][_0x1f9746(0x26e)](_0x44f65a,_0x5d3d0c);}else{var _0x2a9a4a;this[_0x1f9746(0x2ce)][_0x1f9746(0xff)](_0x1a3097),(_0x2a9a4a=this[_0x1f9746(0x164)]['get'](_0x44f65a))==null||_0x2a9a4a[_0x1f9746(0x2a6)](_0x1b0437);}_0x1b0437['setFormulaPresentation'](_0x4ec5d5?this[_0x1f9746(0x2ce)][_0x1f9746(0x1f4)](_0x1a3097):void 0x0,(_0x4ec5d5==null?void 0x0:_0x4ec5d5[_0x1f9746(0x1a3)])!==!0x1);}[_0xcb6cbb(0x15c)](_0x55eecc){const _0x2ce339=_0xcb6cbb;let _0x1f9cf2=_0x55eecc['shapeModel'][_0x2ce339(0x113)](),_0x1a359b=_0x1f9cf2[_0x2ce339(0x2e6)];if(!_0x1a359b||_0x1a359b[_0x2ce339(0x22a)]!==_0x208105[_0x2ce339(0x14c)]||!_0x1a359b['fillImageSource']){_0x55eecc['setFillImage'](void 0x0);return;}this[_0x2ce339(0x1e5)](_0x55eecc,_0x1f9cf2);}[_0xcb6cbb(0x1e5)](_0x1ee015,_0x5695ee){const _0x2709cc=_0xcb6cbb;var _0x11cff2;let _0x7f5bc9=_0x5695ee[_0x2709cc(0x2e6)];if(!_0x7f5bc9||_0x7f5bc9[_0x2709cc(0x22a)]!==_0x208105[_0x2709cc(0x14c)]||!_0x7f5bc9[_0x2709cc(0xbd)])return;let _0x5338ee=_0x7f5bc9['fillImageSource'],_0x5ba108=(_0x11cff2=_0x7f5bc9[_0x2709cc(0xcf)])==null?_0x1d28e9[_0x2709cc(0x2af)]:_0x11cff2,_0x4e972d=this['_imageIoService'][_0x2709cc(0x297)](_0x5338ee,_0x5ba108);if(_0x4e972d){_0x1ee015[_0x2709cc(0x245)](_0x4e972d);return;}return this[_0x2709cc(0x223)](_0x1ee015,_0x5338ee,_0x5ba108);}async[_0xcb6cbb(0x223)](_0x319bdf,_0x2d067f,_0x3e5a58){const _0x3be791=_0xcb6cbb;let _0x21f6f1;try{if(_0x3e5a58===_0x1d28e9['UUID'])_0x21f6f1=await this[_0x3be791(0x317)][_0x3be791(0x11e)](_0x2d067f);else{if(_0x3e5a58===_0x1d28e9[_0x3be791(0x2af)])try{_0x21f6f1=await this[_0x3be791(0x145)][_0x3be791(0x11e)](_0x2d067f);}catch{_0x21f6f1=_0x2d067f;}else _0x21f6f1=_0x2d067f;}}catch(_0x123a81){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x123a81);return;}await new Promise(_0x3811b8=>{const _0x202f90=_0x3be791;let _0x5dd550=new window[(_0x202f90(0x155))]();_0x5dd550[_0x202f90(0x238)]=()=>{const _0x2d6e8d=_0x202f90;this[_0x2d6e8d(0x317)][_0x2d6e8d(0x2bb)](_0x2d067f,_0x3e5a58,_0x5dd550),_0x319bdf[_0x2d6e8d(0x245)](_0x5dd550),_0x3811b8();},_0x5dd550['onerror']=()=>{const _0x37be4f=_0x202f90;console[_0x37be4f(0x176)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x2d067f),_0x3811b8();},_0x5dd550[_0x202f90(0x2d4)]=_0x21f6f1;});}};Q=Z([X(0x0,_0x5a1ed0),X(0x1,_0x25d6be(_0x231cef)),X(0x2,_0x25d6be(_0x498c36)),X(0x3,_0x5939d4),X(0x4,_0x379500),X(0x5,_0x25d6be(_0x246f9b))],Q);let zn=class extends _0x444b76{constructor(_0x5c0355,_0x39feaa,_0x1ec9f7,_0x43156b,_0x3865ee,_0x470c70){const _0x5d43ba=_0xcb6cbb;super(),this[_0x5d43ba(0x1ad)]=_0x5c0355,this[_0x5d43ba(0x287)]=_0x39feaa,this[_0x5d43ba(0x154)]=_0x1ec9f7,this['_sheetDrawingShapeRenderController']=_0x43156b,this[_0x5d43ba(0x23f)]=_0x3865ee,this[_0x5d43ba(0x300)]=_0x470c70,Y(this,_0x5d43ba(0x2c1),null),Y(this,_0x5d43ba(0x2aa),null),Y(this,_0x5d43ba(0x13b),null),Y(this,_0x5d43ba(0xfe),void 0x0),Y(this,_0x5d43ba(0x1e9),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x5d43ba(0x277),0x0),Y(this,_0x5d43ba(0x2a4),0x0),Y(this,_0x5d43ba(0x198),0x0),Y(this,_0x5d43ba(0x2e3),!0x1),Y(this,_0x5d43ba(0x2f5),void 0x0),Y(this,_0x5d43ba(0xf6),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,_0x5d43ba(0x17a),void 0x0),Y(this,_0x5d43ba(0x1c5),!0x1),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0xcb6cbb(0xf4)](_0x1c0ee9,_0x3838f0,_0x3dac05){const _0x1bc536=_0xcb6cbb;let _0x481314=this[_0x1bc536(0x287)][_0x1bc536(0x2c4)](_0x1c0ee9,_0x3838f0,_0x3dac05);if(_0x481314)return _0x481314['getDrawingPoints']();}[_0xcb6cbb(0x24b)](){const _0x1b55a9=_0xcb6cbb;this[_0x1b55a9(0x1a5)]();}[_0xcb6cbb(0x2b3)](){const _0x5eaa84=_0xcb6cbb;this[_0x5eaa84(0x151)](!0x0);}[_0xcb6cbb(0x28c)](_0x722a45){const _0x8f011b=_0xcb6cbb;this[_0x8f011b(0x1c5)]=_0x722a45;}[_0xcb6cbb(0x2a9)](_0x82f24c,_0x54ddbd,_0x33da8b,_0x2395ef){const _0x30463e=_0xcb6cbb;let _0x34f0e4=this['_sheetsShapeService'][_0x30463e(0x2c4)](_0x82f24c,_0x54ddbd,_0x33da8b);if(_0x34f0e4)return _0x34f0e4['getAdjustInfoByName'](_0x2395ef);}['_createShapeAdjustControls'](_0x292658=!0x1){const _0x488004=_0xcb6cbb;if(this[_0x488004(0x2aa)]===null||this['_subUnitId']===null||this[_0x488004(0x2c1)]===null)return;let _0xcbc70d=this[_0x488004(0x154)]['getRenderUnitById'](this['_unitId']);if(!_0xcbc70d||!_0xcbc70d[_0x488004(0x2dd)](_0x48c126)[_0x488004(0x146)]())return;let {scene:_0x1fab8d}=_0xcbc70d,_0x16bee6={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x488004(0x2c1)]},_0x5bf21d=this[_0x488004(0x1ad)][_0x488004(0x16d)](_0x16bee6),{transform:_0x504336}=_0x5bf21d;if(!_0x504336||_0x5bf21d[_0x488004(0x1c2)]!==_0x55872c['DRAWING_SHAPE'])return;let {left:_0x524474,top:_0x2ad9c3,width:_0x2df0b9,height:_0x3b8491,flipX:_0x508b1f,flipY:_0x12ab3b,angle:_0x326ec4=0x0}=_0x504336;if(_0x524474===void 0x0||_0x2ad9c3===void 0x0)return;if(_0x292658){let _0x4daf7b=this[_0x488004(0x287)][_0x488004(0x2c4)](this[_0x488004(0x2aa)],this[_0x488004(0x13b)],this[_0x488004(0x2c1)]);_0x4daf7b==null||_0x4daf7b[_0x488004(0x1d6)]({'width':_0x2df0b9==null?0x0:_0x2df0b9,'height':_0x3b8491==null?0x0:_0x3b8491}),this[_0x488004(0xfe)]=_0x4daf7b==null?void 0x0:_0x4daf7b[_0x488004(0x13c)]();}let _0x1f5ba0=this[_0x488004(0xfe)];for(let _0x2ccd61=0x0;_0x2ccd61<_0x1f5ba0[_0x488004(0x25d)];_0x2ccd61++){let _0x367ecf=_0x1f5ba0[_0x2ccd61],_0x4e6d44=_0x367ecf['x'],_0x1ea037=_0x367ecf['y'];if(_0x508b1f&&(_0x4e6d44=(_0x2df0b9||0x0)-_0x4e6d44),_0x12ab3b&&(_0x1ea037=(_0x3b8491||0x0)-_0x1ea037),_0x326ec4!==0x0){let _0x207c3c=(_0x2df0b9||0x0)/0x2,_0x930e35=(_0x3b8491||0x0)/0x2,_0xe38a26=_0x326ec4*Math['PI']/0xb4,_0x425e26=Math[_0x488004(0x20b)](_0xe38a26),_0x3df39d=Math['sin'](_0xe38a26),_0x1944da=_0x4e6d44-_0x207c3c,_0x344faa=_0x1ea037-_0x930e35;_0x4e6d44=_0x207c3c+(_0x1944da*_0x425e26-_0x344faa*_0x3df39d),_0x1ea037=_0x930e35+(_0x1944da*_0x3df39d+_0x344faa*_0x425e26);}let _0x219062={'x':_0x4e6d44,'y':_0x1ea037,'adjName':_0x367ecf['adjName']};this[_0x488004(0x1a8)](_0x1fab8d,_0x219062,_0x219062[_0x488004(0x2bc)],_0x524474,_0x2ad9c3,this['_unitId'],this[_0x488004(0x13b)]);}}[_0xcb6cbb(0x151)](_0x237d30=!0x1){const _0x1f3410=_0xcb6cbb;_0x237d30&&(this[_0x1f3410(0x1a5)](),this[_0x1f3410(0x1d8)](_0x237d30));}['_addShapeAdjustControl'](_0x45ef51,_0x8b708a,_0x1ba220,_0x2b3f46,_0xc115dd,_0xa47f28,_0x4eae92){const _0x59fb99=_0xcb6cbb;if(!this[_0x59fb99(0x2c1)])return;let _0x2bebc0=_0x45ef51[_0x59fb99(0x114)](_0x59fb99(0x1fc)+this[_0x59fb99(0x2c1)]+'-'+_0x1ba220);if(_0x2bebc0){_0x2bebc0[_0x59fb99(0xdd)]({'left':_0x8b708a['x']+_0x2b3f46-_0x3cbe53[_0x59fb99(0xf0)],'top':_0x8b708a['y']+_0xc115dd-_0x3cbe53['adjHandleSize']});return;}let _0x1c2ca2={'left':_0x8b708a['x']+_0x2b3f46-_0x3cbe53[_0x59fb99(0xf0)],'top':_0x8b708a['y']+_0xc115dd-_0x3cbe53[_0x59fb99(0xf0)],'adjName':_0x1ba220,'shapeId':this[_0x59fb99(0x2c1)],'unitId':_0xa47f28,'subUnitId':_0x4eae92,'width':_0x3cbe53[_0x59fb99(0xf0)]+0x8,'height':_0x3cbe53[_0x59fb99(0xf0)]+0x8,'zIndex':_0x338629+0x1,'evented':!0x0},_0x5854b5=new Rn(_0x59fb99(0x1fc)+this[_0x59fb99(0x2c1)]+'-'+_0x1ba220,_0x1c2ca2);this[_0x59fb99(0x1e9)]['push'](_0x5854b5),this['_attachAdjustEvent'](_0x5854b5,_0x45ef51,_0x1ba220),_0x45ef51[_0x59fb99(0x212)](_0x5854b5,_0x338629+0x1);}[_0xcb6cbb(0x1a5)](){const _0x456d5f=_0xcb6cbb;this[_0x456d5f(0x1e9)][_0x456d5f(0x25d)]!==0x0&&(this['_shapes']['forEach'](_0x281c5b=>{const _0x634b0f=_0x456d5f;_0x281c5b[_0x634b0f(0x20e)]();}),this[_0x456d5f(0x1e9)]=[]);}[_0xcb6cbb(0x119)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x4a815d,_0x54e862){const _0x12c73b=_0xcb6cbb;var _0x1ad493;let _0x46134d={'x':0x0,'y':0x0};if(!_0x4a815d||!_0x54e862)return _0x46134d;let _0x2f2e03=this[_0x12c73b(0x154)][_0x12c73b(0x133)](_0x4a815d);if(!_0x2f2e03||!_0x2f2e03[_0x12c73b(0x2dd)](_0x48c126)[_0x12c73b(0x1bf)](_0x54e862))return _0x46134d;let _0x231658=_0x2f2e03['with'](_0x3e3bbb),_0x38cce5=_0x231658==null?void 0x0:_0x231658[_0x12c73b(0x244)]();if(!_0x38cce5)return _0x46134d;let _0x42fa94=(_0x1ad493=this[_0x12c73b(0x23f)][_0x12c73b(0x187)](_0x4a815d))==null?void 0x0:_0x1ad493[_0x12c73b(0x26d)](_0x54e862);if(!_0x42fa94)return _0x46134d;let _0x4e8999=_0x3dd685(_0x38cce5[_0x12c73b(0x2f9)],_0x38cce5[_0x12c73b(0x234)],_0x2f2e03['scene'],_0x42fa94);return _0x4e8999?{'x':_0x4e8999[_0x12c73b(0x1c4)],'y':_0x4e8999[_0x12c73b(0x1e0)]}:_0x46134d;}[_0xcb6cbb(0xc4)](_0x6c55df,_0x338e8a){const _0x15e996=_0xcb6cbb;var _0x38421b,_0x2ee625;let _0x5a58d5=(_0x38421b=this[_0x15e996(0x23f)][_0x15e996(0x187)](_0x6c55df))==null?void 0x0:_0x38421b[_0x15e996(0x26d)](_0x338e8a);return(_0x2ee625=_0x5a58d5==null?void 0x0:_0x5a58d5['getZoomRatio']())==null?0x1:_0x2ee625;}[_0xcb6cbb(0x131)](_0x1c2e95,_0x379a05,_0x450b1b){const _0x57cf75=_0xcb6cbb;this['disposeWithMe'](_0x452c8c(_0x1c2e95[_0x57cf75(0xc9)][_0x57cf75(0x2fe)]((_0x148485,_0x11ead4)=>{const _0xbccabf=_0x57cf75;var _0x38a364,_0x4611ed,_0x39acf0,_0x1b23c2,_0x45802a;let _0x31cc59=_0x1c2e95[_0xbccabf(0x23d)]();this[_0xbccabf(0x2f5)]=this[_0xbccabf(0x2a9)](_0x31cc59[_0xbccabf(0x241)],_0x31cc59['subUnitId'],_0x31cc59[_0xbccabf(0x10e)],_0x450b1b),this[_0xbccabf(0xf6)]=this['_sheetsShapeService'][_0xbccabf(0x2c4)](_0x31cc59[_0xbccabf(0x241)],_0x31cc59['subUnitId'],_0x31cc59[_0xbccabf(0x10e)]);let _0x421d64=this[_0xbccabf(0x1ad)][_0xbccabf(0x16d)]({'unitId':this[_0xbccabf(0x2aa)],'subUnitId':this[_0xbccabf(0x13b)],'drawingId':this['_activeShapeId']}),{transform:_0xaca16b}=_0x421d64;if(_0xaca16b){let {left:_0x48d401,top:_0x12e013,width:_0x48601f,height:_0x5b8bfa}=_0xaca16b;this[_0xbccabf(0x20a)]=_0x48d401||0x0,this[_0xbccabf(0x277)]=_0x12e013||0x0,this['_baseShapeWidth']=_0x48601f||0x0,this[_0xbccabf(0x198)]=_0x5b8bfa||0x0;}let _0x137e57=!!((_0x38a364=_0x421d64['transform'])!=null&&_0x38a364[_0xbccabf(0x16c)]),_0x40158b=!!((_0x4611ed=_0x421d64[_0xbccabf(0xce)])!=null&&_0x4611ed[_0xbccabf(0x1a0)]),_0xf9e414=((_0x39acf0=_0x421d64[_0xbccabf(0xce)])==null?void 0x0:_0x39acf0[_0xbccabf(0x31f)])||0x0;this[_0xbccabf(0x2e3)]=!0x0,_0x379a05[_0xbccabf(0x31c)]();let _0x204d5f={...(_0x1b23c2=(_0x45802a=this[_0xbccabf(0x2f5)])==null?void 0x0:_0x45802a['currentAdjustValues'])==null?{}:_0x1b23c2};this[_0xbccabf(0x191)]=_0x379a05[_0xbccabf(0x291)][_0xbccabf(0x2fe)]((_0x3f9587,_0x1274a)=>{const _0x33abde=_0xbccabf;if(!this[_0x33abde(0x2e3)])return;let {offsetX:_0x3feb78,offsetY:_0x274889}=_0x3f9587,_0x2548e6=this[_0x33abde(0x2f5)];if(this['_activeShapeModel']&&_0x2548e6){_0x379a05['disableObjectsEvent'](),_0x379a05[_0x33abde(0x328)](_0x1bae0e[_0x33abde(0x194)]);let _0x4be1d7={'left':0x0,'top':0x0,'width':this[_0x33abde(0x2a4)],'height':this[_0x33abde(0x198)]},_0x5e9639=this[_0x33abde(0x1ed)](this[_0x33abde(0x2aa)],this[_0x33abde(0x13b)]),_0xfdc66b=this[_0x33abde(0xc4)](this[_0x33abde(0x2aa)],this[_0x33abde(0x13b)]),_0x5796b1=_0x3feb78/_0xfdc66b+_0x5e9639['x']-this['_baseShapeLeft'],_0x1df73e=_0x274889/_0xfdc66b+_0x5e9639['y']-this[_0x33abde(0x277)];if(_0xf9e414!==0x0){let _0x2ae654=this['_baseShapeWidth']/0x2,_0x503ce5=this[_0x33abde(0x198)]/0x2,_0x7d9892=_0xf9e414*Math['PI']/0xb4,_0x4533da=Math['cos'](_0x7d9892),_0xd780f1=Math[_0x33abde(0x2d3)](_0x7d9892),_0x427a79=_0x5796b1-_0x2ae654,_0x53df50=_0x1df73e-_0x503ce5;_0x5796b1=_0x2ae654+(_0x427a79*_0x4533da+_0x53df50*_0xd780f1),_0x1df73e=_0x503ce5+(-_0x427a79*_0xd780f1+_0x53df50*_0x4533da);}_0x137e57&&(_0x5796b1=this[_0x33abde(0x2a4)]-_0x5796b1),_0x40158b&&(_0x1df73e=this[_0x33abde(0x198)]-_0x1df73e);let _0x3ca650={'x':_0x5796b1,'y':_0x1df73e},_0x27dc25=this[_0x33abde(0xf6)][_0x33abde(0xbb)](_0x4be1d7,_0x3ca650,_0x2548e6,_0x137e57,_0x40158b);if(Object[_0x33abde(0x29e)](_0x27dc25)['length']===0x0)return;for(let [_0x2732af,_0x2ac89f]of Object['entries'](_0x27dc25))this['_activeShapeModel']['setAdjustValueByName'](_0x2732af,_0x2ac89f);this['_activeShapeModel'][_0x33abde(0x1d6)]({'width':this[_0x33abde(0x2a4)],'height':this[_0x33abde(0x198)]});let _0x2a773b=this[_0x33abde(0x1ad)][_0x33abde(0x16d)]({'unitId':_0x31cc59[_0x33abde(0x241)],'subUnitId':_0x31cc59[_0x33abde(0x281)],'drawingId':_0x31cc59[_0x33abde(0x10e)]});_0x2a773b&&(this[_0x33abde(0x1b2)]['renderDrawingShape'](_0x2a773b,_0x379a05),this[_0x33abde(0xfe)]=this['_getShapeAdjustPointListById'](_0x31cc59[_0x33abde(0x241)],_0x31cc59[_0x33abde(0x281)],_0x31cc59[_0x33abde(0x10e)]),this[_0x33abde(0x119)]());}_0x1274a[_0x33abde(0x2c3)]();}),this['_adjHandlerPointerUp']=_0x379a05[_0xbccabf(0x24e)][_0xbccabf(0x2fe)]((_0x2636b7,_0x4e0d56)=>{const _0x237ec4=_0xbccabf;this[_0x237ec4(0x191)]['unsubscribe'](),this[_0x237ec4(0x17a)][_0x237ec4(0x22f)](),_0x379a05['resetCursor']();let _0x4ae9ec=this[_0x237ec4(0x2f5)];if(_0x4ae9ec){let _0x53ab13=_0x31cc59['unitId'],_0x2d89cb=_0x31cc59[_0x237ec4(0x281)],_0x55633a=_0x31cc59['drawingId'],_0x13262f={};for(let _0x16d11c of Object['keys'](_0x4ae9ec['currentAdjustValues'])){var _0x5bbc6d;let _0x4bb3b1=(_0x5bbc6d=this[_0x237ec4(0xf6)])==null?void 0x0:_0x5bbc6d['getAdjustValueByName'](_0x16d11c);_0x4bb3b1!==void 0x0&&(_0x13262f[_0x16d11c]=_0x4bb3b1);}Object[_0x237ec4(0x29e)](_0x13262f)['length']>0x0&&jn(this[_0x237ec4(0x300)],_0x53ab13,_0x2d89cb,_0x55633a,{'oldShapeData':{'adjustValues':_0x204d5f}},{'adjustValues':_0x13262f});}this[_0x237ec4(0x2f5)]=void 0x0,this[_0x237ec4(0xf6)]=void 0x0,this[_0x237ec4(0x2e3)]=!0x1,_0x4e0d56[_0x237ec4(0x2c3)](),_0x379a05['enableObjectsEvent']();}),_0x11ead4[_0xbccabf(0x2c3)]();})));}[_0xcb6cbb(0x1ae)](){const _0x1b4d4d=_0xcb6cbb;let _0x2940df=this[_0x1b4d4d(0x23f)]['getCurrentTypeOfUnit$'](_0x593ef9[_0x1b4d4d(0x298)]);this[_0x1b4d4d(0x2d6)](_0x2940df[_0x1b4d4d(0x23e)](_0x11d4bf(_0x49c6e7=>_0x49c6e7?_0x49c6e7[_0x1b4d4d(0x10c)][_0x1b4d4d(0x23e)](_0x11d4bf(_0x444dac=>{const _0x2a4cff=_0x1b4d4d;if(!_0x444dac)return _0x1198ce;let _0x25e8af=_0x49c6e7[_0x2a4cff(0x181)](),_0x2a4739=this['_renderManagerService'][_0x2a4cff(0x133)](_0x25e8af),_0x218080=_0x2a4739==null?void 0x0:_0x2a4739[_0x2a4cff(0x1f6)];return _0x218080?_0x9a150f(_0x218080):_0x1198ce;})):_0x1198ce))[_0x1b4d4d(0x2f7)](_0x1a54be=>{const _0x577a8b=_0x1b4d4d;let _0xa12488=_0x1a54be[_0x577a8b(0x24a)]();this[_0x577a8b(0x2d6)](_0x1a54be[_0x577a8b(0x291)][_0x577a8b(0x2fe)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x577a8b(0x2d6)](_0xa12488[_0x577a8b(0x12d)][_0x577a8b(0x2f7)](_0x968e00=>{const _0x5a4b8e=_0x577a8b;let {objects:_0x2004ca}=_0x968e00;this['_createShapeAdjustControls'](),_0x2004ca!==null&&_0x2004ca[_0x5a4b8e(0x1e1)]===0x1&&_0x2004ca[_0x5a4b8e(0x1c7)]()['next']()['value']instanceof Ln&&this[_0x5a4b8e(0x28c)](!0x0);})),this['disposeWithMe'](_0xa12488[_0x577a8b(0x27e)][_0x577a8b(0x2f7)](()=>{const _0x53ac25=_0x577a8b;this[_0x53ac25(0x1c5)]&&this['_clearShapeAdjustControls']();})),this[_0x577a8b(0x2d6)](_0x1a54be[_0x577a8b(0x24e)]['subscribeEvent'](()=>{const _0x30c7a6=_0x577a8b;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x30c7a6(0x28c)](!0x1),this[_0x30c7a6(0x1d8)]());})),this[_0x577a8b(0x2d6)](_0xa12488[_0x577a8b(0xeb)][_0x577a8b(0x2f7)](()=>{const _0x6dd3da=_0x577a8b;this[_0x6dd3da(0x2aa)]&&this[_0x6dd3da(0x13b)]&&this[_0x6dd3da(0x2c1)]&&this['_drawingManagerService'][_0x6dd3da(0x16d)]({'unitId':this[_0x6dd3da(0x2aa)],'subUnitId':this[_0x6dd3da(0x13b)],'drawingId':this['_activeShapeId']})&&(this[_0x6dd3da(0xfe)]=this[_0x6dd3da(0xf4)](this[_0x6dd3da(0x2aa)],this[_0x6dd3da(0x13b)],this[_0x6dd3da(0x2c1)]),this[_0x6dd3da(0x119)]());}));}));}[_0xcb6cbb(0x2a8)](){const _0x197062=_0xcb6cbb;this[_0x197062(0x2d6)](this[_0x197062(0x300)][_0x197062(0x165)](_0x54c3ce=>{const _0x4bfe36=_0x197062;if(_0x54c3ce['id']!==_0x528850['id'])return;let {unitId:_0x6d268,subUnitId:_0x3ee462,shapeId:_0x246793}=_0x54c3ce['params'];_0x6d268===this[_0x4bfe36(0x2aa)]&&_0x3ee462===this[_0x4bfe36(0x13b)]&&_0x246793===this['_activeShapeId']&&this[_0x4bfe36(0x2b3)]();})),this['disposeWithMe'](this[_0x197062(0x1ad)]['focus$'][_0x197062(0x2f7)](_0x582135=>{const _0x3830b4=_0x197062;if(_0x582135[_0x3830b4(0x25d)]===0x1){let _0x4f39d7=_0x582135[0x0];if(_0x4f39d7['drawingType']===_0x55872c[_0x3830b4(0x1ce)]){this[_0x3830b4(0x2c1)]=_0x4f39d7[_0x3830b4(0x10e)];let {unitId:_0x57353d,subUnitId:_0x47e275}=_0x4f39d7;this[_0x3830b4(0xfe)]=this['_getShapeAdjustPointListById'](_0x57353d,_0x47e275,this[_0x3830b4(0x2c1)]),this['_unitId']=_0x57353d,this[_0x3830b4(0x13b)]=_0x47e275,this['_clearShapeAdjustControls'](),this[_0x3830b4(0x1d8)]();}else this[_0x3830b4(0x2c1)]=null,this[_0x3830b4(0xfe)]=void 0x0,this[_0x3830b4(0x2aa)]=null,this[_0x3830b4(0x13b)]=null,this['_clearShapeAdjustControls']();}(_0x582135['length']>0x1||_0x582135['length']===0x0)&&(this[_0x3830b4(0x2c1)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3830b4(0x2aa)]=null,this[_0x3830b4(0x13b)]=null,this[_0x3830b4(0x1a5)]());})),this[_0x197062(0x2d6)](this['_drawingManagerService'][_0x197062(0x1de)][_0x197062(0x2f7)](_0x1447cd=>{const _0x1ada67=_0x197062;if(_0x1447cd[_0x1ada67(0x25d)]===0x1){var _0x4febec;let _0x4bcf67=_0x1447cd[0x0];((_0x4febec=this['_drawingManagerService'][_0x1ada67(0x16d)](_0x4bcf67))==null?void 0x0:_0x4febec[_0x1ada67(0x1c2)])===_0x55872c['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x197062(0x2d6)](this[_0x197062(0x1ad)][_0x197062(0x304)][_0x197062(0x2f7)](_0x234c58=>{const _0x2399e7=_0x197062;for(let _0x6f8669 of _0x234c58)this[_0x2399e7(0x2c1)]===_0x6f8669[_0x2399e7(0x10e)]&&(this[_0x2399e7(0x2c1)]=null,this[_0x2399e7(0xfe)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x2399e7(0x1a5)]());}));}};zn=Z([X(0x0,_0x5a1ed0),X(0x1,_0x25d6be(_0x231cef)),X(0x2,_0x25d6be(_0x297a94)),X(0x3,_0x25d6be(Q)),X(0x4,_0x1af83c),X(0x5,_0x3a72b1)],zn);const Bn={'id':_0xcb6cbb(0x1d5),'type':_0xd030d0[_0xcb6cbb(0xc2)],'handler':(_0x2f189b,_0x1f76e7)=>{const _0xc10afc=_0xcb6cbb;let _0xa3952f=_0x2f189b['get'](_0x5a1ed0),_0x10088d=_0x2f189b[_0xc10afc(0x2da)](_0x297a94),_0x3b5bf2=_0x2f189b['get'](zn);if(_0x1f76e7==null)return!0x0;if(_0x1f76e7[_0xc10afc(0x25d)]>0x0){var _0x152983;let _0x1d0c0f=(_0x152983=_0x10088d[_0xc10afc(0x133)](_0x1f76e7[0x0]['unitId']))==null?void 0x0:_0x152983[_0xc10afc(0x1f6)];if(_0x1d0c0f){let {unitId:_0x1c7dfb,subUnitId:_0x5cf259,drawingId:_0x1be161}=_0x1f76e7[0x0],_0x1d9dc1=_0x4f98bd({'unitId':_0x1c7dfb,'subUnitId':_0x5cf259,'drawingId':_0x1be161},void 0x0),_0x4be1b6=_0x1d0c0f[_0xc10afc(0x114)](_0x1d9dc1);if(_0x4be1b6){var _0x1d1a01;(_0x1d1a01=_0x10088d[_0xc10afc(0x133)](_0x1f76e7[0x0]['unitId']))==null||(_0x1d1a01=_0x1d1a01[_0xc10afc(0x1f6)][_0xc10afc(0xde)]())==null||_0x1d1a01[_0xc10afc(0x201)](_0x4be1b6);}}_0xa3952f[_0xc10afc(0x257)](_0x1f76e7),_0x3b5bf2[_0xc10afc(0x28c)](!0x1);}return!0x0;}},Vn={'type':_0xd030d0[_0xcb6cbb(0x1fd)],'id':_0xcb6cbb(0x20f),'handler':async(_0x4590a0,_0x4340df)=>{const _0x4777e1=_0xcb6cbb;let _0x3c45df=_0x5f445e(_0x4590a0['get'](_0x1af83c));if(!_0x3c45df)return!0x1;let _0x68c966=_0x4590a0[_0x4777e1(0x2da)](_0x2c9660)[_0x4777e1(0x239)]();if(!_0x68c966)return!0x1;let _0x88dc12=_0x4590a0[_0x4777e1(0x2da)](_0x3a72b1),{unitId:_0x1faba2,subUnitId:_0x4f070b}=_0x3c45df,{value:_0xcf4ef7,enhanceParams:_0x17ad4d}=_0x4340df,{range:_0x2eb11e}=_0x68c966,_0x441025={'unitId':_0x1faba2,'subUnitId':_0x4f070b,'shapeType':_0xcf4ef7,'range':_0x2eb11e,'shapeId':_0xf6c8c4()};if(_0x17ad4d){let _0x403cbc=_0x286130(_0xcf4ef7),_0x763fec=_0xcf4ef7===_0x4c4784[_0x4777e1(0x193)];_0x403cbc&&(_0x17ad4d['startArrow']||_0x17ad4d[_0x4777e1(0x2e1)])&&(_0x441025['shapeData']={'ln':{'startArrow':_0x17ad4d['startArrow']?{'type':_0x443563['Arrow'],'size':_0x483edf['Medium']}:void 0x0,'endArrow':_0x17ad4d[_0x4777e1(0x2e1)]?{'type':_0x443563['Arrow'],'size':_0x483edf[_0x4777e1(0x320)]}:void 0x0}}),_0x763fec&&(_0x17ad4d[_0x4777e1(0x21f)]||_0x17ad4d['vertical'])&&(_0x441025[_0x4777e1(0x18a)]=_0x38899d({'fill':{'fillType':_0x208105['SolidFill'],'color':_0x4777e1(0x2f3)},'isHorizontal':!!_0x17ad4d['horizontal'],'stroke':{'lineStrokeType':_0x3e780b[_0x4777e1(0x292)],'width':0x1,'color':_0x4777e1(0xdf)}}));}let _0x593f49=_0x88dc12[_0x4777e1(0xdc)](_0x5268cc['id'],_0x441025);return setTimeout(()=>{const _0x385b5f=_0x4777e1;_0x88dc12[_0x385b5f(0x29b)](Bn['id'],[{'unitId':_0x1faba2,'subUnitId':_0x4f070b,'drawingId':_0x441025[_0x385b5f(0x124)]}]);},0xc8),_0x593f49;}},Hn=_0xcb6cbb(0x171),Un=_0xcb6cbb(0x12c),Wn=_0xcb6cbb(0x177),Gn=_0x3ca21e(_0xcb6cbb(0x227)),Kn=_0xcb6cbb(0x188),qn={'id':'sheet.operation.open-shape-object-list-panel','type':_0xd030d0[_0xcb6cbb(0x1fd)],'handler':(_0x4baf60,_0x45eb6f)=>{const _0x186e00=_0xcb6cbb;let _0x21fea8=_0x4baf60[_0x186e00(0x2da)](_0x4770b9),_0xc2cf82=_0x4baf60[_0x186e00(0x2da)](_0x498c36),_0x25786d=_0x4baf60[_0x186e00(0x2da)](_0x1af83c),_0x11cdd1=_0x4baf60[_0x186e00(0x2da)](_0x3a72b1);return _0x5f445e(_0x25786d)?(_0x45eb6f==null?void 0x0:_0x45eb6f[_0x186e00(0x274)])===_0x186e00(0x233)?(_0x21fea8[_0x186e00(0x233)](Un),!0x0):(_0x21fea8[_0x186e00(0x122)]({'id':Un,'header':{'title':_0xc2cf82['t'](_0x186e00(0x2cf))},'children':{'label':Un},'onClose':()=>{const _0x5205bc=_0x186e00;_0x11cdd1[_0x5205bc(0xdc)](_0xc56e65['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Jn=class extends _0x444b76{constructor(_0xd147dd,_0x38e038){const _0x1072b8=_0xcb6cbb;super(),this['_clipService']=_0xd147dd,this[_0x1072b8(0x1ad)]=_0x38e038,this[_0x1072b8(0xe7)](),this['_clipService'][_0x1072b8(0x2cb)](!0x0),this[_0x1072b8(0x2d6)]({'dispose':()=>this['_clipService'][_0x1072b8(0x2cb)](!0x1)});}[_0xcb6cbb(0xe7)](){const _0x410837=_0xcb6cbb;let _0x5b0a0a=this[_0x410837(0xef)],_0x53335a=new Map(),_0x3a1ba6=_0x5b0a0a[_0x410837(0x246)]((_0x379638,_0x376082,_0x5e76eb,_0x1f9c30,_0xa5857a)=>{const _0x14b382=_0x410837;let _0x1a4167=_0x376082;if(_0x1a4167===_0x4c4784['None']||_0x376082===_0x14b382(0x180))return!0x1;try{let _0x5a907e=_0x53335a[_0x14b382(0x2da)](_0x376082);return _0x5a907e||(_0x5a907e=new _0x508f4b(_0x1a4167,_0x14b382(0x2bd)+_0x376082),_0x53335a[_0x14b382(0x26e)](_0x376082,_0x5a907e)),_0x5a907e['clearAdjustValue'](),_0xa5857a&&Object[_0x14b382(0x29e)](_0xa5857a)['length']>0x0&&_0x5a907e[_0x14b382(0x1fa)]({'adjustValues':_0xa5857a},!0x0),_0x5a907e['updateContext']({'width':_0x5e76eb,'height':_0x1f9c30}),_0x5a907e[_0x14b382(0x26c)](_0x379638,{'left':0x0,'top':0x0,'width':_0x5e76eb,'height':_0x1f9c30});}catch{return!0x1;}});this[_0x410837(0x2d6)](_0x3a1ba6),this[_0x410837(0x2d6)]({'dispose':()=>_0x53335a[_0x410837(0x205)]()});}['clipByShape'](_0x213091,_0x5a70d3,_0x6d6936,_0x4b124f,_0x2d631d){const _0x286ec1=_0xcb6cbb;let _0x3ed4cd=this[_0x286ec1(0x1ad)][_0x286ec1(0x127)](_0x213091,_0x5a70d3);if(!_0x3ed4cd[_0x6d6936])return;let _0x16a7a7={..._0x3ed4cd[_0x6d6936],'prstGeom':_0x4b124f,'adjustValues':_0x2d631d};this[_0x286ec1(0x1ad)]['featurePluginUpdateNotification']([_0x16a7a7]);}};Jn=Z([X(0x0,_0x25d6be(_0x5773e2)),X(0x1,_0x25d6be(_0x5a1ed0))],Jn);const Yn='sheet.shape.picker.component',Xn=_0xcb6cbb(0x204);function Zn({onShapeClick:_0x2df1fd,excludeGroups:_0x4a19c0}){const _0x2fd9ec=_0xcb6cbb;return _0x49d3c9(_0x41d5aa,{'excludeGroups':_0x4a19c0,'onShapeClick':_0x2df1fd,'scrollContainer':_0x2fd9ec(0x135)});}function Qn(){const _0x5ed456=_0xcb6cbb;let _0x1cb978=_0x5ead04(_0x5a1ed0),_0x5c5518=_0x5ead04(Jn);return _0x49d3c9(_0x29e80a,{'buttonLabel':_0x5ed456(0x23b),'excludeGroups':[_0x176d3f[_0x5ed456(0x265)]],'onShapeClick':_0x4f2413=>{const _0x2280b3=_0x5ed456;let _0x124c0b=_0x1cb978[_0x2280b3(0x2e9)]()['find'](_0x44f5de=>_0x44f5de[_0x2280b3(0x1c2)]===_0x55872c[_0x2280b3(0x172)]);if(!_0x124c0b)return;let {unitId:_0x59b06f,subUnitId:_0xf777cd,drawingId:_0x405c20}=_0x124c0b;_0x5c5518[_0x2280b3(0x173)](_0x59b06f,_0xf777cd,_0x405c20,_0x4f2413[_0x2280b3(0x27b)]);}});}function $n(){const _0x5a7b6f=_0xcb6cbb;let _0x1fcb78=_0x5ead04(_0x3e4916),_0x2e58ae=_0x5ead04(_0x5a1ed0),_0xef155b=_0x5ead04(_0x1af83c),_0x45c624=_0x2e58ae[_0x5a7b6f(0x2e9)]()[0x0],_0x5b0068=_0x45c624?_0xef155b[_0x5a7b6f(0x11f)](_0x45c624['unitId']):void 0x0,_0x137d82=_0x5b0068===_0x593ef9[_0x5a7b6f(0xb9)]?_0x5a7b6f(0x156):_0x5b0068===_0x593ef9[_0x5a7b6f(0x298)]?Xn:void 0x0,_0x2de214=_0x137d82?_0x1fcb78[_0x5a7b6f(0x2da)](_0x137d82):void 0x0;return _0x2de214?_0x49d3c9(_0x2de214,{}):null;}function er(){let _0xad461=_0x5ead04(_0x3a72b1);return _0x49d3c9(Zn,{'onShapeClick':_0x475557=>{const _0x2cb0f7=_0x5971;_0xad461['executeCommand'](Vn['id'],{'value':_0x475557[_0x2cb0f7(0x27b)],'enhanceParams':{'endArrow':_0x475557[_0x2cb0f7(0x2e1)],'startArrow':_0x475557['startArrow'],'horizontal':_0x475557[_0x2cb0f7(0x21f)],'vertical':_0x475557['vertical']}});}});}function tr(_0x55380e){const _0x157b4e=_0xcb6cbb;let _0x17f46f=_0x55380e[_0x157b4e(0x2da)](_0x1af83c);return{'id':Vn['id'],'type':_0x187ab3[_0x157b4e(0x11b)],'selections':[{'label':{'name':Yn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Vn['id']}}}],'icon':_0x157b4e(0xd7),'tooltip':_0x157b4e(0x137),'activated$':_0x525c18(_0x17f46f,!0x1,()=>new _0x243af9(_0x20a53e=>{const _0x3667c9=_0x157b4e;_0x20a53e[_0x3667c9(0x152)](!0x1);})),'hidden$':_0x54d985(_0x55380e,_0x593ef9[_0x157b4e(0x298)]),'disabled$':_0x26b975(_0x55380e)};}function nr(_0x4a73cc){const _0x4fc8ab=_0xcb6cbb;let _0x196abf=_0x4a73cc[_0x4fc8ab(0x2da)](_0x1af83c);return{'id':qn['id'],'type':_0x187ab3[_0x4fc8ab(0x130)],'icon':_0x4fc8ab(0xe8),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x4fc8ab(0x302),'activated$':_0x525c18(_0x196abf,!0x1,()=>new _0x243af9(_0x4c6650=>{const _0x345e99=_0x4fc8ab;_0x4c6650[_0x345e99(0x152)](!0x1);})),'hidden$':_0x54d985(_0x4a73cc,_0x593ef9[_0x4fc8ab(0x298)]),'disabled$':_0x26b975(_0x4a73cc)};}const rr=_0xcb6cbb(0x160),ir=_0xcb6cbb(0x259);function ar(_0x4c7b06){const _0x3ce9dc=_0xcb6cbb;let _0x3492d2=_0x4c7b06[_0x3ce9dc(0x2da)](_0x5a1ed0)['getFocusDrawings']();return _0x3492d2['length']===0x1&&_0x3492d2[0x0][_0x3ce9dc(0x1c2)]===_0x55872c[_0x3ce9dc(0x1ce)]?_0x3492d2[0x0]:null;}function or(_0x1af0a1){const _0x3a7b6e=_0xcb6cbb;let _0xcdca3f=_0x1af0a1[_0x3a7b6e(0x2da)](_0x5a1ed0);return _0xcdca3f[_0x3a7b6e(0xed)]['pipe'](_0x3992d1(_0xcdca3f[_0x3a7b6e(0x2e9)]()),_0x30d3f5(_0x40eb1=>_0x40eb1[_0x3a7b6e(0x25d)]!==0x1||_0x40eb1[0x0][_0x3a7b6e(0x1c2)]!==_0x55872c['DRAWING_SHAPE']));}function sr(_0x43011e){const _0x7ed9b4=_0xcb6cbb;return{'id':rr,'commandId':_0x44c026['id'],'type':_0x187ab3['BUTTON'],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x7ed9b4(0x221),'icon':'FlipHorizontalIcon','hidden$':or(_0x43011e),'params':()=>{const _0x5daea7=_0x7ed9b4;let _0x475e96=ar(_0x43011e);return _0x475e96?{'unitId':_0x475e96[_0x5daea7(0x241)],'subUnitId':_0x475e96[_0x5daea7(0x281)],'shapeId':_0x475e96[_0x5daea7(0x10e)],'flipH':!0x0}:void 0x0;}};}function cr(_0x55d105){const _0x5e370f=_0xcb6cbb;return{'id':ir,'commandId':_0x44c026['id'],'type':_0x187ab3['BUTTON'],'title':_0x5e370f(0xc0),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x5e370f(0x1f8),'hidden$':or(_0x55d105),'params':()=>{const _0x57afe2=_0x5e370f;let _0x42eaee=ar(_0x55d105);return _0x42eaee?{'unitId':_0x42eaee[_0x57afe2(0x241)],'subUnitId':_0x42eaee[_0x57afe2(0x281)],'shapeId':_0x42eaee['drawingId'],'flipV':!0x0}:void 0x0;}};}const lr={[_0x99ab95['MEDIA']]:{[Vn['id']]:{'order':0x4,'menuItemFactory':tr}},[_0x99ab95['OTHERS']]:{[qn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':nr}},[_0x19ebdc[_0xcb6cbb(0x2c9)]]:{[_0x5e3670[_0xcb6cbb(0x15f)]]:{[rr]:{'order':0x4,'menuItemFactory':sr},[ir]:{'order':0x5,'menuItemFactory':cr}}}};var ur=_0xcb6cbb(0xd8),dr='1.0.0-alpha.8';const fr={'type':_0xd030d0[_0xcb6cbb(0xc2)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},pr={'type':_0xd030d0[_0xcb6cbb(0xc2)],'id':_0xcb6cbb(0x142),'handler'(){return!0x0;}},mr={};function hr(_0x2562b4){const _0x4a1d77=_0xcb6cbb;return _0x2562b4[_0x4a1d77(0x162)]()||void 0x0;}function gr(_0x48f0c7){const _0x57b71f=_0xcb6cbb;switch(_0x48f0c7[_0x57b71f(0x1c2)]){case _0x55872c[_0x57b71f(0x172)]:return _0x57b71f(0xf9);case _0x55872c['DRAWING_CHART']:return _0x57b71f(0x182);case _0x55872c[_0x57b71f(0x310)]:return _0x57b71f(0xc1);case _0x55872c[_0x57b71f(0xec)]:return _0x57b71f(0x1ca);case _0x55872c[_0x57b71f(0x13f)]:return _0x57b71f(0x1af);case _0x55872c[_0x57b71f(0x2e2)]:return _0x57b71f(0x228);case _0x55872c[_0x57b71f(0x199)]:return _0x57b71f(0x1c3);case _0x55872c[_0x57b71f(0x1be)]:return _0x57b71f(0x1d3);case _0x55872c[_0x57b71f(0x1ce)]:return _0x57b71f(0x186);default:return _0x57b71f(0x21a);}}function _r(_0x1ca6b6,_0x480272,_0x34449c){const _0x22d55f=_0xcb6cbb;var _0x4bcaca;return((_0x4bcaca=_0x1ca6b6[_0x22d55f(0x22d)])==null?void 0x0:_0x4bcaca[_0x22d55f(0x162)]())||_0x2b9a99(_0x34449c,gr(_0x1ca6b6))+'\x20'+(_0x480272+0x1);}function vr(){const _0x16d1da=_0xcb6cbb;var _0x160b9f,_0x5c523d,_0x35179a,_0x5d9ba5;let _0x2685a0=_0x5ead04(_0x498c36),_0x2f65fe=_0x5ead04(_0x3a72b1),_0x5b859a=_0x5ead04(_0x1af83c),_0x348422=_0x5ead04(_0x2a99b6),_0x4d7a74=_0x5ead04(_0x5a1ed0),_0x3d7758=_0x5ead04(_0x297a94),[,_0x2d5a9c]=_0x10f2b3(_0x262b5a=>_0x262b5a+0x1,0x0),_0x50f294=_0x5b859a['getCurrentUnitOfType'](_0x593ef9['UNIVER_SHEET']),_0x508c4a=(_0x160b9f=_0x50f294==null?void 0x0:_0x50f294[_0x16d1da(0x181)]())==null?'':_0x160b9f,_0x1d9049=(_0x5c523d=_0x50f294==null||(_0x35179a=_0x50f294[_0x16d1da(0x284)]())==null?void 0x0:_0x35179a['getSheetId']())==null?'':_0x5c523d,_0x5b7e62=_0x3e0fd9(()=>_0x4d7a74[_0x16d1da(0xed)],_0x4d7a74['getFocusDrawings'](),!0x1,[_0x4d7a74]);_0x2f51d2(()=>{const _0x44fc76=_0x16d1da;let _0x5e2305=_0x2f65fe[_0x44fc76(0x165)](()=>_0x2d5a9c());return()=>_0x5e2305[_0x44fc76(0x20e)]();},[_0x2f65fe]);let _0x26eed7=_0x508c4a&&_0x1d9049?_0x348422[_0x16d1da(0x127)](_0x508c4a,_0x1d9049):{},_0x3a4578=_0x508c4a&&_0x1d9049?_0x348422['getDrawingOrder'](_0x508c4a,_0x1d9049):[],_0x5ced42=_0xfae447(()=>_0x5ac108(_0x2685a0),[_0x2685a0]),_0x1d596c=_0xfae447(()=>{const _0x5612a2=_0x16d1da;let _0x482ef3=_0x3a4578[_0x5612a2(0x1c1)](_0x1caaf9=>_0x26eed7[_0x1caaf9])[_0x5612a2(0x2b4)](_0x5db8da=>!!_0x5db8da)[_0x5612a2(0x263)](),_0x3d84eb=_0x482ef3[_0x5612a2(0x2f8)]((_0x3bd4ca,_0x21fc00)=>(_0x3bd4ca[_0x67bdd6(_0x21fc00[_0x5612a2(0x1c2)])]+=0x1,_0x3bd4ca),{'canvas':0x0,'floating':0x0}),_0x18d9ea={'canvas':0x0,'floating':0x0};return _0x482ef3[_0x5612a2(0x1c1)]((_0x146ffb,_0x4a97c5)=>{const _0x238de2=_0x5612a2;let _0x5b29ba=_0x67bdd6(_0x146ffb[_0x238de2(0x1c2)]),_0x3f4472=_0x5b29ba===_0x5a455a,_0x3be224=_0x18d9ea[_0x5b29ba]++;return{'id':_0x146ffb[_0x238de2(0x10e)],'name':_r(_0x146ffb,_0x4a97c5,_0x2685a0),'description':_0x146ffb[_0x238de2(0x301)],'visible':_0x146ffb[_0x238de2(0x237)]!==!0x0,'selectable':_0x146ffb['selectable']!==!0x1,'sectionId':_0x5b29ba,'sectionTitle':_0x3f4472?_0x5ced42['sectionFloating']:_0x5ced42[_0x238de2(0x167)],'capabilities':_0x3f4472?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3f4472&&_0x3be224>0x0,'canMoveBackward':!_0x3f4472&&_0x3be224<_0x3d84eb[_0x238de2(0x115)]-0x1,'canReorder':!_0x3f4472};});},[_0x26eed7,_0x3a4578,_0x5ced42[_0x16d1da(0x167)],_0x5ced42[_0x16d1da(0x2d7)],_0x2685a0]),_0x50e24c=_0xfae447(()=>(_0x5b7e62==null?[]:_0x5b7e62)[_0x16d1da(0x2b4)](_0x164a62=>_0x164a62['unitId']===_0x508c4a&&_0x164a62[_0x16d1da(0x281)]===_0x1d9049)[_0x16d1da(0x1c1)](_0x230da9=>_0x230da9['drawingId']),[_0x5b7e62,_0x1d9049,_0x508c4a]),_0x55969c=(_0x5d9ba5=_0x50e24c[_0x50e24c['length']-0x1])==null?null:_0x5d9ba5,_0x5021c7=_0x2c1932=>{const _0x151a18=_0x16d1da;var _0x41281c;return(_0x41281c=_0x348422[_0x151a18(0x16d)]({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x2c1932}))==null?null:_0x41281c;},_0x54cbb0=_0x15e6ce=>{const _0x385b41=_0x16d1da;!_0x508c4a||!_0x15e6ce[_0x385b41(0x25d)]||_0x2f65fe[_0x385b41(0x29b)](_0x2cc676['id'],{'unitId':_0x508c4a,'drawings':_0x15e6ce});},_0x455cc8=(_0x4b60df,_0x27e46c)=>{_0x5021c7(_0x4b60df)&&_0x54cbb0([{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x4b60df,..._0x27e46c}]);},_0x2716c7=(_0xba14ec,_0xfc2db0)=>{const _0xa8b248=_0x16d1da;if(!_0x508c4a||!_0x1d9049)return;let _0x93c7f0=_0xfc2db0?_0x50e24c[_0xa8b248(0x15b)](_0xba14ec)?_0x50e24c[_0xa8b248(0x2b4)](_0x394683=>_0x394683!==_0xba14ec):[..._0x50e24c,_0xba14ec]:[_0xba14ec];_0x2f65fe[_0xa8b248(0xdc)](_0xc56e65['id'],_0x93c7f0['map'](_0x2ef6a4=>({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x2ef6a4})));let _0x444803=_0x93c7f0[_0x93c7f0[_0xa8b248(0x25d)]-0x1];_0x444803?_0x185eb9(_0x3d7758,{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x444803}):_0x5b4b31(_0x3d7758,_0x508c4a);},_0x5e00cd=(_0x16d897,_0x44d2a8)=>{const _0x470832=_0x16d1da;_0x54cbb0(_0x16d897[_0x470832(0x1c1)](_0x1fae56=>_0x5021c7(_0x1fae56))[_0x470832(0x2b4)](_0x44bfd9=>!!_0x44bfd9)[_0x470832(0x2b4)](_0x4d8759=>_0x4d8759[_0x470832(0x237)]!==!0x0!==_0x44d2a8)[_0x470832(0x1c1)](_0x3e4cdf=>({'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingId':_0x3e4cdf['drawingId'],'hidden':!_0x44d2a8})));},_0x3b8f78=_0x56401b=>{const _0x289176=_0x16d1da;let _0x218ca1=_0x5021c7(_0x56401b);_0x218ca1&&_0x455cc8(_0x56401b,{'selectable':_0x218ca1[_0x289176(0x1e7)]===!0x1&&void 0x0});},_0x586839=(_0x31d215,_0x1791ad)=>{var _0x3ecf44,_0x516598;let _0x376897=hr(_0x1791ad);((_0x3ecf44=(_0x516598=_0x5021c7(_0x31d215))==null?void 0x0:_0x516598['name'])==null?void 0x0:_0x3ecf44)!==_0x376897&&_0x455cc8(_0x31d215,{'name':_0x376897});},_0x3c0c4a=(_0x36cace,_0x18fd79)=>{const _0x7fe1d1=_0x16d1da;var _0x42f18d,_0x17d9b5;let _0x202171=hr(_0x18fd79);((_0x42f18d=(_0x17d9b5=_0x5021c7(_0x36cace))==null?void 0x0:_0x17d9b5[_0x7fe1d1(0x301)])==null?void 0x0:_0x42f18d)!==_0x202171&&_0x455cc8(_0x36cace,{'description':_0x202171});},_0x494d81=(_0x278194,_0x2a759b)=>{!_0x508c4a||!_0x1d9049||_0x2f65fe['executeCommand'](_0xb4ccfa['id'],{'unitId':_0x508c4a,'subUnitId':_0x1d9049,'drawingIds':[_0x278194],'arrangeType':_0x2a759b});};return!_0x508c4a||!_0x1d9049?_0x49d3c9(_0x16d1da(0xca),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5ced42[_0x16d1da(0x326)]}):_0x49d3c9(_0x155589,{'items':_0x1d596c,'selectedIds':_0x50e24c,'focusedId':_0x55969c,'labels':_0x5ced42,'onSelect':_0x2716c7,'onSetVisible':_0x5e00cd,'onCommitName':_0x586839,'onCommitDescription':_0x3c0c4a,'onMoveForward':_0x4519c4=>_0x494d81(_0x4519c4,_0x22122b['forward']),'onMoveBackward':_0x5561e0=>_0x494d81(_0x5561e0,_0x22122b[_0x16d1da(0x225)]),'onToggleSelectable':_0x3b8f78});}let yr=class{constructor(_0x3e52bd){this['_renderManagerService']=_0x3e52bd;}['updateShapeFillImage'](_0x23b576,_0x1e071c){const _0x489923=_0xcb6cbb;let _0xc53ba9=this[_0x489923(0x154)]['getRenderUnitById'](_0x23b576[_0x489923(0x241)]),_0x39d4ae=_0xc53ba9==null?void 0x0:_0xc53ba9[_0x489923(0x1f6)];if(!_0x39d4ae)return;let _0xbecec0=_0x4f98bd(_0x23b576),_0x53ec7f=_0x39d4ae['getObjectIncludeInGroup'](_0xbecec0);_0x53ec7f==null||_0x53ec7f[_0x489923(0x245)](_0x1e071c);}};yr=Z([X(0x0,_0x297a94)],yr);function br(){const _0x3273bf=_0xcb6cbb;let _0x3a720d=_0x5ead04(_0x5a1ed0),_0x5e01bf=_0x3e0fd9(()=>_0x3a720d[_0x3273bf(0xed)],_0x3a720d[_0x3273bf(0x2e9)](),!0x1,[_0x3a720d]);return _0x5e01bf[_0x3273bf(0x25d)]===0x0?null:_0x49d3c9(_0x3273bf(0xca),{'children':_0x568cbe(_0x3273bf(0xca),{'className':_0x3273bf(0x22b),'children':[_0x49d3c9(_0x5f53ae,{'drawings':_0x5e01bf,'hasCropper':!0x1}),_0x49d3c9(_0xdce9e4,{'drawings':_0x5e01bf})]})});}function xr(_0x14b829){let {unitId:_0x5a0aee,subUnitId:_0x1f136e,shapeId:_0x1dd856}=_0x14b829,_0x1a33df=_0x5ead04(_0x3a72b1),_0x558590=_0x5ead04(yr);return _0x49d3c9(_0x369510,{..._0x14b829,'positionEditor':_0x49d3c9(br,{}),'onUpdateShapeData':(_0x27b6,_0x324c22)=>{jn(_0x1a33df,_0x5a0aee,_0x1f136e,_0x1dd856,_0x27b6,_0x324c22);},'onUpdateLineShapeData':(_0x1e01e1,_0x3f7921)=>{Mn(_0x1a33df,_0x5a0aee,_0x1f136e,_0x1dd856,_0x1e01e1,_0x3f7921);},'onUpdateShapeFillImage':_0x139d63=>{const _0x4b9e79=_0x5971;_0x558590[_0x4b9e79(0x153)]({'unitId':_0x5a0aee,'subUnitId':_0x1f136e,'drawingId':_0x1dd856},_0x139d63);}});}function Sr(_0x571f6f){const _0x586d74=_0xcb6cbb;let _0x16bd5f=_0x571f6f['popup'][_0x586d74(0x2ac)];return _0x16bd5f?_0x49d3c9(Cr,{..._0x16bd5f}):null;}function Cr(_0x4361c0){const _0x25dfb6=_0xcb6cbb;var _0xbe9f66,_0x280ccf;let _0x4cb65d=_0x5ead04(_0x3a72b1),_0x4804ad=_0x5ead04(_0x231cef),{unitId:_0xc4e331,subUnitId:_0x33a4a3,drawingId:_0x37c5a2,drawingType:_0x22c05a,shapeType:_0x15d939}=_0x4361c0,[_0x580167,_0x59ddbd]=_0x115a69(_0x4361c0['shapeData']),_0x44af7d=_0xfae447(()=>_0x5e4bce(_0x580167),[_0x580167]),_0x171df4=_0xfae447(()=>_0x54d766(_0x580167),[_0x580167]);_0x2f51d2(()=>{let _0x1da0d0=_0x4cb65d['onCommandExecuted'](_0x525ec5=>{if(_0x525ec5['id']!==_0x528850['id'])return;let _0x47e1fa=_0x4804ad['getShapeDataById'](_0xc4e331,_0x33a4a3,_0x37c5a2);_0x47e1fa&&_0x59ddbd(_0x47e1fa);});return()=>_0x1da0d0['dispose']();},[_0x4cb65d,_0x37c5a2,_0x4804ad,_0x33a4a3,_0xc4e331]);let _0x20afe4=_0x343c13=>{_0x59ddbd(_0x3ca47c=>({..._0x3ca47c,..._0x343c13}));},_0x176cb7=_0x37a0aa=>{let _0x8db3eb=_0x25c3c6(_0x580167,_0x37a0aa);jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,{'oldShapeData':{'shapeText':_0x580167['shapeText']}},_0x8db3eb),_0x20afe4(_0x8db3eb);},_0x45c3a3=_0x14e335({'hostType':_0x593ef9['UNIVER_SHEET'],'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'shapeId':_0x37c5a2,'shapeData':_0x580167,'onUpdateBinding':_0x5113e2=>{const _0x1f717d=_0x5971;let _0x3aff8c={'formulaBinding':_0x5113e2};jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,{'oldShapeData':{'formulaBinding':_0x580167[_0x1f717d(0x138)]}},_0x3aff8c),_0x20afe4(_0x3aff8c);}});return _0x568cbe(_0x1370ea,{'children':[_0x49d3c9(_0xb6f545,{'shapeData':_0x580167,'shapeType':_0x15d939,'textStyle':{'ff':_0x3cbe53['shapeText']['fontFamily'],'fs':_0x3cbe53[_0x25dfb6(0x1b0)][_0x25dfb6(0x2fb)],'cl':{'rgb':_0x3cbe53[_0x25dfb6(0x1b0)]['color']},..._0x44af7d},'textModel':_0x171df4?{'ha':(_0xbe9f66=_0x171df4['ha'])==null?_0x166f93[_0x25dfb6(0xd2)]:_0xbe9f66,'va':(_0x280ccf=_0x171df4['va'])==null?_0x4874a7['TOP']:_0x280ccf}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3cbe53[_0x25dfb6(0x2e6)],'defaultGradientEndColor':_0x3cbe53[_0x25dfb6(0x251)],'defaultStrokeColor':_0x3cbe53['stroke'],'extensionGroups':_0x45c3a3['extensionGroups'],'onUpdateShapeData':(_0x444ded,_0x224e4e)=>{jn(_0x4cb65d,_0xc4e331,_0x33a4a3,_0x37c5a2,_0x444ded,_0x224e4e),_0x224e4e&&_0x20afe4(_0x224e4e);},'onUpdateText':_0x176cb7,'onOpenPanel':()=>{_0x4cb65d['executeCommand'](pr['id'],{'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'drawingId':_0x37c5a2});},'onDelete':()=>{_0x4cb65d['executeCommand'](_0x535cd6['id'],{'unitId':_0xc4e331,'drawings':[{'unitId':_0xc4e331,'subUnitId':_0x33a4a3,'drawingId':_0x37c5a2,'drawingType':_0x22c05a}]});}}),_0x45c3a3[_0x25dfb6(0x2c7)]]});}var wr=class extends _0x444b76{constructor(..._0x5e2c57){const _0x154397=_0xcb6cbb;super(..._0x5e2c57),Y(this,_0x154397(0x2b7),new _0x2c970e(null)),Y(this,_0x154397(0x1ac),this[_0x154397(0x2b7)]['asObservable']()),Y(this,_0x154397(0x1d4),new _0x2c970e(!0x1)),Y(this,'onSavingEditorData$',this[_0x154397(0x1d4)][_0x154397(0x1f0)]());}['dispose'](){const _0x286e31=_0xcb6cbb;this[_0x286e31(0x2b7)][_0x286e31(0x152)](null),this['_editingParams$'][_0x286e31(0x1da)](),this[_0x286e31(0x1d4)]['next'](!0x1),this['_onSavingEditorData$'][_0x286e31(0x1da)](),super[_0x286e31(0x20e)]();}[_0xcb6cbb(0x285)](_0x58d5ef){const _0x4ebad2=_0xcb6cbb;this[_0x4ebad2(0x2b7)][_0x4ebad2(0x152)](_0x58d5ef),_0x58d5ef==null&&this[_0x4ebad2(0x1d4)][_0x4ebad2(0x152)](!0x1);}[_0xcb6cbb(0x247)](_0x48eec0){const _0x1bfbd0=_0xcb6cbb;this[_0x1bfbd0(0x1d4)]['next'](_0x48eec0);}['getEditing'](){const _0x23f72c=_0xcb6cbb;return this['_editingParams$'][_0x23f72c(0x23c)]();}['completeEditing'](_0xc13550){const _0x4da2f3=_0xcb6cbb;this['getEditing']()&&(this[_0x4da2f3(0x247)](!0x0),requestAnimationFrame(()=>{const _0x4302bb=_0x4da2f3;this[_0x4302bb(0x285)](null);}));}['cancelEditing'](){const _0x36c2ae=_0xcb6cbb;this[_0x36c2ae(0x1e8)]()&&this[_0x36c2ae(0x285)](null);}};const Tr=_0x315608(()=>{const _0x4b6b3f=_0xcb6cbb;let _0x265d42=_0x5ead04(wr),_0x3cd1ef=_0x5ead04(_0x231cef),_0x1911e9=_0x5ead04(_0x5a1ed0),_0xb91e75=_0x5ead04(_0x3a72b1),_0x3a399f=_0x5ead04(_0x297a94);return _0x49d3c9(_0x2189a3,{'adapter':_0xfae447(()=>({'getShapeModel':(_0x5b1b1d,_0x1c4522,_0x42c035)=>_0x3cd1ef[_0x4b6b3f(0x2c4)](_0x5b1b1d,_0x1c4522,_0x42c035),'getShapeData':(_0x1e2a3b,_0x34f073,_0x356cc5)=>_0x3cd1ef['getShapeDataById'](_0x1e2a3b,_0x34f073,_0x356cc5),'getDrawingTransform':(_0x2968fc,_0x3a2a5f,_0x34aee9)=>{const _0x57e8c1=_0x4b6b3f;let _0x4591fc=_0x1911e9['getDrawingByParam']({'unitId':_0x2968fc,'subUnitId':_0x3a2a5f,'drawingId':_0x34aee9});return _0x4591fc==null?void 0x0:_0x4591fc[_0x57e8c1(0xce)];},'updateShapeText':({unitId:_0x101f4e,subUnitId:_0x37c4cf,shapeId:_0x49952d,shapeText:_0x228f00,oldShapeText:_0x527152})=>{_0xb91e75['executeCommand'](An['id'],{'unitId':_0x101f4e,'subUnitId':_0x37c4cf,'shapeId':_0x49952d,'shapeData':{'shapeText':_0x228f00},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x527152}}});},'updateHostSize':({unitId:_0x3b9957,subUnitId:_0x132da6,shapeId:_0x52e8ed,width:_0x28c894,height:_0x478b54})=>{const _0x1dc346=_0x4b6b3f;var _0x2a7ebd,_0xf725be,_0x1fa295;let _0x2bdc06=_0x1911e9['getDrawingByParam']({'unitId':_0x3b9957,'subUnitId':_0x132da6,'drawingId':_0x52e8ed}),_0x1a29f2=_0x2bdc06==null?void 0x0:_0x2bdc06[_0x1dc346(0xce)];if(!_0x2bdc06||!_0x1a29f2)return;let _0x77c763={..._0x1a29f2,'width':_0x28c894,'height':_0x478b54},_0x3df686=(_0x2a7ebd=_0x3a399f['getRenderUnitById'](_0x3b9957))==null||(_0x2a7ebd=_0x2a7ebd[_0x1dc346(0x2dd)](_0x48c126)['getSkeletonParam'](_0x132da6))==null?void 0x0:_0x2a7ebd[_0x1dc346(0x11c)],_0x2664bd=_0x3df686?(_0xf725be=_0x43002e(_0x77c763,_0x3df686))==null?_0x2bdc06['sheetTransform']:_0xf725be:_0x2bdc06[_0x1dc346(0x31a)],_0x14cebd=_0x3df686?(_0x1fa295=_0x5aa2b7(_0x77c763,_0x3df686))==null?_0x2bdc06[_0x1dc346(0x2b2)]:_0x1fa295:_0x2bdc06[_0x1dc346(0x2b2)];_0xb91e75['executeCommand'](_0x2cc676['id'],{'unitId':_0x3b9957,'drawings':[{..._0x2bdc06,'transform':_0x77c763,'sheetTransform':_0x2664bd,'axisAlignSheetTransform':_0x14cebd}]});},'allowHostSizeShrink':({unitId:_0x112302,subUnitId:_0x33de3f,shapeId:_0x3ebb8c})=>_0x4f6d3a(_0x3cd1ef[_0x4b6b3f(0xd4)](_0x112302,_0x33de3f,_0x3ebb8c))}),[_0xb91e75,_0x1911e9,_0x3a399f,_0x3cd1ef]),'editingService':_0x265d42,'editorUnitId':Gn,'positionOptions':_0xfae447(()=>({'viewportKeys':{'main':_0x61ec49[_0x4b6b3f(0x19a)],'leftTop':_0x61ec49[_0x4b6b3f(0x29d)],'top':_0x61ec49[_0x4b6b3f(0xc5)],'left':_0x61ec49[_0x4b6b3f(0x2e4)]},'getSkeleton':(_0x21a055,_0x1fbedb)=>{const _0x3596d6=_0x4b6b3f;var _0x5394ec,_0x1f33b4;return(_0x5394ec=(_0x1f33b4=_0x21a055[_0x3596d6(0x2dd)](_0x48c126)[_0x3596d6(0x11d)](_0x1fbedb['subUnitId']))==null?void 0x0:_0x1f33b4['skeleton'])==null?null:_0x5394ec;}}),[])});});let Er=class extends _0x444b76{constructor(_0x159561,_0x218afb){const _0x3b7eaa=_0xcb6cbb;super(),this['_componentManager']=_0x159561,this['_iconManager']=_0x218afb,this[_0x3b7eaa(0xe2)](),this[_0x3b7eaa(0x2a7)]();}['_registerIcons'](){const _0x1e9fc2=_0xcb6cbb;this[_0x1e9fc2(0xea)]['has']('ObjectLayersIcon')||this[_0x1e9fc2(0x2d6)](this['_iconManager']['register']({'ObjectLayersIcon':_0x41a10e})),this[_0x1e9fc2(0xea)][_0x1e9fc2(0x1cf)](_0x1e9fc2(0xcc))||this['disposeWithMe'](this['_iconManager']['register']({'FlipHorizontalIcon':_0x473587})),this[_0x1e9fc2(0xea)]['has'](_0x1e9fc2(0x1f8))||this[_0x1e9fc2(0x2d6)](this[_0x1e9fc2(0xea)][_0x1e9fc2(0xfb)]({'FlipVerticalIcon':_0x1155bd}));}[_0xcb6cbb(0x2a7)](){const _0x17dd4a=_0xcb6cbb;this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Hn,xr)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](Un,vr)),this[_0x17dd4a(0x2d6)](this['_componentManager']['register'](Yn,er)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Xn,Qn)),this[_0x17dd4a(0x16a)][_0x17dd4a(0x2da)](_0x3d27a0)||this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](_0x3d27a0,$n)),this[_0x17dd4a(0x2d6)](this['_componentManager'][_0x17dd4a(0xfb)](Wn,Sr)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)][_0x17dd4a(0xfb)](Kn,_0x5181cc)),this[_0x17dd4a(0x2d6)](this[_0x17dd4a(0x16a)]['register'](_0x17dd4a(0x2d5),Tr));}};Er=Z([X(0x0,_0x25d6be(_0x3e4916)),X(0x1,_0x25d6be(_0x302aca))],Er);let Dr=class extends _0x444b76{constructor(_0x4cb247,_0x6f5d4a,_0x20b299,_0x1e98de,_0x2dd32b){const _0x3115a1=_0xcb6cbb;super(),this[_0x3115a1(0x2ea)]=_0x4cb247,this['_drawingManagerService']=_0x6f5d4a,this[_0x3115a1(0x154)]=_0x20b299,this[_0x3115a1(0x23f)]=_0x1e98de,this[_0x3115a1(0x104)]=_0x2dd32b,Y(this,'_activeImageId',null),Y(this,_0x3115a1(0x2aa),null),Y(this,_0x3115a1(0x13b),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x3115a1(0x1e9),[]),Y(this,_0x3115a1(0x1a6),0x0),Y(this,_0x3115a1(0x139),0x0),Y(this,'_baseWidth',0x0),Y(this,_0x3115a1(0x14d),0x0),Y(this,_0x3115a1(0x2e3),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x3115a1(0x191),void 0x0),Y(this,_0x3115a1(0x17a),void 0x0),Y(this,_0x3115a1(0xe3),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}['clearAdjustControls'](){const _0x28136f=_0xcb6cbb;this[_0x28136f(0x2f6)]();}[_0xcb6cbb(0x2b3)](){const _0x58e79e=_0xcb6cbb;this[_0x58e79e(0x2f6)](),this[_0x58e79e(0x126)](!0x0);}[_0xcb6cbb(0x272)](_0x41678b,_0x7119a7,_0x4ac725,_0x3a47b7){const _0x1d7f1b=_0xcb6cbb;let _0x23b538=_0x41678b;if(_0x23b538!==_0x4c4784['None']&&_0x41678b!=='custom')try{let _0x2d535e=new _0x508f4b(_0x23b538,_0x1d7f1b(0xe4)+_0x41678b);return _0x3a47b7&&_0x2d535e[_0x1d7f1b(0x1fa)]({'adjustValues':_0x3a47b7},!0x0),_0x2d535e[_0x1d7f1b(0x1d6)]({'width':_0x7119a7,'height':_0x4ac725}),_0x2d535e;}catch{return;}}['_getImageDrawingInfo'](_0x45f7d9,_0x314a84,_0x5c9ac2){const _0x1004f3=_0xcb6cbb;let _0x53d7e3={'unitId':_0x45f7d9,'subUnitId':_0x314a84,'drawingId':_0x5c9ac2},_0x1a893e=this['_drawingManagerService'][_0x1004f3(0x16d)](_0x53d7e3);if(!(!_0x1a893e||_0x1a893e['drawingType']!==_0x55872c[_0x1004f3(0x172)]))return _0x1a893e;}['_getImagePrstGeom'](_0x2b36c6,_0x22ff11,_0x1aa40b){const _0x1e1088=_0xcb6cbb;let _0x1721f8=this['_renderManagerService'][_0x1e1088(0x133)](_0x2b36c6);if(!_0x1721f8)return;let {scene:_0x3b9365}=_0x1721f8,_0xc24149=_0x4f98bd({'unitId':_0x2b36c6,'subUnitId':_0x22ff11,'drawingId':_0x1aa40b}),_0x51d90a=_0x3b9365[_0x1e1088(0x1a2)](_0xc24149);if(_0x51d90a instanceof _0x2c6b0b){let _0x1aac40=_0x51d90a[_0x1e1088(0x2db)];if(_0x1aac40)return{'prstGeom':_0x1aac40,'adjustValues':_0x51d90a[_0x1e1088(0x278)]};}}[_0xcb6cbb(0x126)](_0x52210b=!0x1){const _0x35937d=_0xcb6cbb;if(!this[_0x35937d(0x2aa)]||!this[_0x35937d(0x13b)]||!this[_0x35937d(0x15d)])return;let _0x3c802f=this[_0x35937d(0x154)]['getRenderUnitById'](this[_0x35937d(0x2aa)]);if(!_0x3c802f||!_0x3c802f['with'](_0x48c126)[_0x35937d(0x146)]())return;let {scene:_0x5e631a}=_0x3c802f,_0x1e2dbc=this[_0x35937d(0x31e)](this[_0x35937d(0x2aa)],this['_subUnitId'],this[_0x35937d(0x15d)]);if(!_0x1e2dbc)return;let {transform:_0x192b39}=_0x1e2dbc;if(!_0x192b39)return;let {left:_0x5784ad,top:_0x1eecaf,width:_0x2c712d,height:_0x5804cb,flipX:_0x1cbd26,flipY:_0xaf338e,angle:_0x36dcda=0x0}=_0x192b39;if(_0x5784ad===void 0x0||_0x1eecaf===void 0x0)return;let _0x4f35ec=this['_getImagePrstGeom'](this['_unitId'],this[_0x35937d(0x13b)],this[_0x35937d(0x15d)]);if(!_0x4f35ec)return;if(_0x52210b){let _0x204138=this[_0x35937d(0x272)](_0x4f35ec[_0x35937d(0x2db)],_0x2c712d||0x0,_0x5804cb||0x0,_0x4f35ec[_0x35937d(0x260)]);if(!_0x204138)return;this[_0x35937d(0x143)]=_0x204138['getDrawingPoints']();}let _0x1d5e9e=this[_0x35937d(0x143)];if(!(!_0x1d5e9e||_0x1d5e9e[_0x35937d(0x25d)]===0x0))for(let _0x54e8eb=0x0;_0x54e8eb<_0x1d5e9e[_0x35937d(0x25d)];_0x54e8eb++){let _0x5e8250=_0x1d5e9e[_0x54e8eb],_0x385672=_0x5e8250['x'],_0x1122b7=_0x5e8250['y'];if(_0x1cbd26&&(_0x385672=(_0x2c712d||0x0)-_0x385672),_0xaf338e&&(_0x1122b7=(_0x5804cb||0x0)-_0x1122b7),_0x36dcda!==0x0){let _0x54a947=(_0x2c712d||0x0)/0x2,_0xe75a45=(_0x5804cb||0x0)/0x2,_0xe681b9=_0x36dcda*Math['PI']/0xb4,_0x4797d7=Math[_0x35937d(0x20b)](_0xe681b9),_0x4c87f1=Math[_0x35937d(0x2d3)](_0xe681b9),_0x3139bd=_0x385672-_0x54a947,_0x21b479=_0x1122b7-_0xe75a45;_0x385672=_0x54a947+(_0x3139bd*_0x4797d7-_0x21b479*_0x4c87f1),_0x1122b7=_0xe75a45+(_0x3139bd*_0x4c87f1+_0x21b479*_0x4797d7);}let _0x197f8f={'x':_0x385672,'y':_0x1122b7,'adjName':_0x5e8250[_0x35937d(0x2bc)]};this[_0x35937d(0x18e)](_0x5e631a,_0x197f8f,_0x197f8f['adjName'],_0x5784ad,_0x1eecaf,this[_0x35937d(0x2aa)],this[_0x35937d(0x13b)]);}}[_0xcb6cbb(0x18e)](_0x21f874,_0x37a9d6,_0x41c92f,_0x42f3b7,_0x9b5f6d,_0x5cfd4d,_0x5c32ab){const _0x54cc8a=_0xcb6cbb;if(!this[_0x54cc8a(0x15d)])return;let _0x160e5c='image-clip-adjust-point-'+this[_0x54cc8a(0x15d)]+'-'+_0x41c92f,_0x19b536=_0x21f874[_0x54cc8a(0x114)](_0x160e5c);if(_0x19b536){_0x19b536[_0x54cc8a(0xdd)]({'left':_0x37a9d6['x']+_0x42f3b7-_0x3cbe53[_0x54cc8a(0xf0)],'top':_0x37a9d6['y']+_0x9b5f6d-_0x3cbe53[_0x54cc8a(0xf0)]});return;}let _0x315308=new Rn(_0x160e5c,{'left':_0x37a9d6['x']+_0x42f3b7-_0x3cbe53[_0x54cc8a(0xf0)],'top':_0x37a9d6['y']+_0x9b5f6d-_0x3cbe53[_0x54cc8a(0xf0)],'adjName':_0x41c92f,'shapeId':this[_0x54cc8a(0x15d)],'unitId':_0x5cfd4d,'subUnitId':_0x5c32ab,'width':_0x3cbe53['adjHandleSize']+0x8,'height':_0x3cbe53[_0x54cc8a(0xf0)]+0x8,'zIndex':_0x338629+0x1,'evented':!0x0});this['_shapes'][_0x54cc8a(0x311)](_0x315308),this[_0x54cc8a(0x131)](_0x315308,_0x21f874,_0x41c92f),_0x21f874[_0x54cc8a(0x212)](_0x315308,_0x338629+0x1);}[_0xcb6cbb(0x2f6)](){const _0x211a98=_0xcb6cbb;this[_0x211a98(0x1e9)]['length']!==0x0&&(this['_shapes'][_0x211a98(0x26a)](_0x5e7e8a=>_0x5e7e8a['dispose']()),this[_0x211a98(0x1e9)]=[]);}[_0xcb6cbb(0x1ed)](_0x29f80e,_0x35c7db){const _0x2ff573=_0xcb6cbb;var _0x3730d5;let _0x386cdf={'x':0x0,'y':0x0},_0x1f209c=this[_0x2ff573(0x154)]['getRenderUnitById'](_0x29f80e);if(!_0x1f209c||!_0x1f209c[_0x2ff573(0x2dd)](_0x48c126)['getSkeleton'](_0x35c7db))return _0x386cdf;let _0x47b7a3=_0x1f209c[_0x2ff573(0x2dd)](_0x3e3bbb),_0x13f273=_0x47b7a3==null?void 0x0:_0x47b7a3[_0x2ff573(0x244)]();if(!_0x13f273)return _0x386cdf;let _0x306379=(_0x3730d5=this['_univerInstanceService'][_0x2ff573(0x187)](_0x29f80e))==null?void 0x0:_0x3730d5[_0x2ff573(0x26d)](_0x35c7db);if(!_0x306379)return _0x386cdf;let _0x12f578=_0x3dd685(_0x13f273[_0x2ff573(0x2f9)],_0x13f273[_0x2ff573(0x234)],_0x1f209c['scene'],_0x306379);return _0x12f578?{'x':_0x12f578[_0x2ff573(0x1c4)],'y':_0x12f578['viewportScrollY']}:_0x386cdf;}['_getZoomRatio'](_0xc55ee6,_0x115b7a){const _0x1b987c=_0xcb6cbb;var _0x421f33,_0x45ff6e;let _0x43d94c=(_0x421f33=this[_0x1b987c(0x23f)][_0x1b987c(0x187)](_0xc55ee6))==null?void 0x0:_0x421f33['getSheetBySheetId'](_0x115b7a);return(_0x45ff6e=_0x43d94c==null?void 0x0:_0x43d94c[_0x1b987c(0x2d2)]())==null?0x1:_0x45ff6e;}[_0xcb6cbb(0x131)](_0x1257dd,_0x53b286,_0x386349){const _0xd59c20=_0xcb6cbb;this['disposeWithMe'](_0x452c8c(_0x1257dd[_0xd59c20(0xc9)][_0xd59c20(0x2fe)]((_0x3fcceb,_0x478fa1)=>{const _0x186ff1=_0xd59c20;var _0x5c1c9b,_0x39d006,_0x219e15;let {unitId:_0x255fbe,subUnitId:_0x228d0f,drawingId:_0x2fc253}=_0x1257dd[_0x186ff1(0x23d)](),_0x268f0b=this[_0x186ff1(0x31e)](_0x255fbe,_0x228d0f,_0x2fc253);if(!(_0x268f0b!=null&&_0x268f0b[_0x186ff1(0xce)]))return;let {left:_0x2addeb,top:_0x48e9e4,width:_0x44aa71,height:_0x259712}=_0x268f0b[_0x186ff1(0xce)];this[_0x186ff1(0x1a6)]=_0x2addeb||0x0,this[_0x186ff1(0x139)]=_0x48e9e4||0x0,this[_0x186ff1(0x17c)]=_0x44aa71||0x0,this['_baseHeight']=_0x259712||0x0;let _0x52eba0=!!((_0x5c1c9b=_0x268f0b[_0x186ff1(0xce)])!=null&&_0x5c1c9b[_0x186ff1(0x16c)]),_0x1f8e4a=!!((_0x39d006=_0x268f0b[_0x186ff1(0xce)])!=null&&_0x39d006['flipY']),_0x47226f=((_0x219e15=_0x268f0b[_0x186ff1(0xce)])==null?void 0x0:_0x219e15[_0x186ff1(0x31f)])||0x0,_0x599d21=this[_0x186ff1(0x266)](_0x255fbe,_0x228d0f,_0x2fc253);if(!_0x599d21)return;let _0x2762ec=this[_0x186ff1(0x272)](_0x599d21[_0x186ff1(0x2db)],this[_0x186ff1(0x17c)],this[_0x186ff1(0x14d)],_0x599d21[_0x186ff1(0x260)]);if(!_0x2762ec||(this[_0x186ff1(0xf6)]=_0x2762ec,this[_0x186ff1(0x2f5)]=_0x2762ec[_0x186ff1(0x1a4)](_0x386349),!this['_activeAdjustInfo']))return;this[_0x186ff1(0x2e3)]=!0x0,_0x53b286['disableObjectsEvent']();let _0x592869=_0x599d21[_0x186ff1(0x2db)];this['_adjHandlerPointerMove']=_0x53b286[_0x186ff1(0x291)]['subscribeEvent']((_0x4e3a6f,_0x448a68)=>{const _0x20cd52=_0x186ff1;if(!this[_0x20cd52(0x2e3)])return;let {offsetX:_0x531459,offsetY:_0x1775e1}=_0x4e3a6f,_0x373d2b=this['_activeAdjustInfo'];if(!this[_0x20cd52(0xf6)]||!_0x373d2b)return;_0x53b286[_0x20cd52(0x31c)](),_0x53b286[_0x20cd52(0x328)](_0x1bae0e[_0x20cd52(0x194)]);let _0x292599={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x20cd52(0x14d)]},_0x214e20=this[_0x20cd52(0x1ed)](_0x255fbe,_0x228d0f),_0x5a5dbc=this[_0x20cd52(0xc4)](_0x255fbe,_0x228d0f),_0x57d4f7=_0x531459/_0x5a5dbc+_0x214e20['x']-this[_0x20cd52(0x1a6)],_0x1ce65b=_0x1775e1/_0x5a5dbc+_0x214e20['y']-this[_0x20cd52(0x139)];if(_0x47226f!==0x0){let _0x2ea799=this[_0x20cd52(0x17c)]/0x2,_0x2d114e=this[_0x20cd52(0x14d)]/0x2,_0x4e4232=_0x47226f*Math['PI']/0xb4,_0x3f2fd5=Math['cos'](_0x4e4232),_0x25ad79=Math[_0x20cd52(0x2d3)](_0x4e4232),_0x4797f9=_0x57d4f7-_0x2ea799,_0x68e255=_0x1ce65b-_0x2d114e;_0x57d4f7=_0x2ea799+(_0x4797f9*_0x3f2fd5+_0x68e255*_0x25ad79),_0x1ce65b=_0x2d114e+(-_0x4797f9*_0x25ad79+_0x68e255*_0x3f2fd5);}_0x52eba0&&(_0x57d4f7=this[_0x20cd52(0x17c)]-_0x57d4f7),_0x1f8e4a&&(_0x1ce65b=this[_0x20cd52(0x14d)]-_0x1ce65b);let _0x37233c=this['_activeShapeModel'][_0x20cd52(0xbb)](_0x292599,{'x':_0x57d4f7,'y':_0x1ce65b},_0x373d2b,_0x52eba0,_0x1f8e4a);if(Object['keys'](_0x37233c)[_0x20cd52(0x25d)]!==0x0){for(let [_0x27c94b,_0x2cd2ce]of Object[_0x20cd52(0x1c8)](_0x37233c))this[_0x20cd52(0xf6)][_0x20cd52(0xda)](_0x27c94b,_0x2cd2ce);this[_0x20cd52(0xf6)][_0x20cd52(0x1d6)]({'width':this[_0x20cd52(0x17c)],'height':this[_0x20cd52(0x14d)]}),this[_0x20cd52(0x2f2)](_0x255fbe,_0x228d0f,_0x2fc253,_0x37233c),this[_0x20cd52(0x143)]=this[_0x20cd52(0xf6)][_0x20cd52(0x13c)](),this[_0x20cd52(0x126)](),_0x448a68[_0x20cd52(0x2c3)]();}}),this[_0x186ff1(0x17a)]=_0x53b286[_0x186ff1(0x24e)][_0x186ff1(0x2fe)]((_0x46a751,_0x204573)=>{const _0x220c97=_0x186ff1;if(this['_adjHandlerPointerMove'][_0x220c97(0x22f)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x53b286['resetCursor'](),this['_activeShapeModel']){let _0x54bf7e=this[_0x220c97(0xf6)][_0x220c97(0x111)](),_0x4188c3={};for(let _0x11aa58 of _0x54bf7e){let _0x4d1b93=this[_0x220c97(0xf6)]['getAdjustValueByName'](_0x11aa58);_0x4d1b93!==void 0x0&&(_0x4188c3[_0x11aa58]=_0x4d1b93);}this[_0x220c97(0x104)][_0x220c97(0x173)](_0x255fbe,_0x228d0f,_0x2fc253,_0x592869,_0x4188c3);}this['_activeAdjustInfo']=void 0x0,this[_0x220c97(0xf6)]=void 0x0,this[_0x220c97(0x2e3)]=!0x1,_0x204573['stopPropagation'](),_0x53b286['enableObjectsEvent']();}),_0x478fa1[_0x186ff1(0x2c3)]();})));}[_0xcb6cbb(0x2f2)](_0x139748,_0xa65c53,_0x56f2b8,_0x5236c2){const _0x2c4003=_0xcb6cbb;let _0xc9ee7d=this[_0x2c4003(0x154)][_0x2c4003(0x133)](_0x139748);if(!_0xc9ee7d)return;let {scene:_0x26a9d4}=_0xc9ee7d,_0x2c31b9=_0x4f98bd({'unitId':_0x139748,'subUnitId':_0xa65c53,'drawingId':_0x56f2b8}),_0x4b9023=_0x26a9d4['getObject'](_0x2c31b9);if(_0x4b9023 instanceof _0x2c6b0b){var _0x2cc9fb;let _0x2b253d=(_0x2cc9fb=_0x4b9023['prstGeomAdjValues'])==null?{}:_0x2cc9fb;_0x4b9023[_0x2c4003(0xd3)]({..._0x2b253d,..._0x5236c2}),_0x4b9023[_0x2c4003(0x1dd)](!0x0);}}[_0xcb6cbb(0x19b)](){const _0x5b994d=_0xcb6cbb;let _0x580c0e=this['_univerInstanceService'][_0x5b994d(0x1e2)](_0x593ef9[_0x5b994d(0x298)]);this['disposeWithMe'](_0x580c0e[_0x5b994d(0x23e)](_0x11d4bf(_0xab1079=>_0xab1079?_0xab1079[_0x5b994d(0x10c)]['pipe'](_0x11d4bf(_0x3c4906=>{const _0x5c57bc=_0x5b994d;if(!_0x3c4906)return _0x1198ce;let _0x2ab006=_0xab1079['getUnitId'](),_0x422210=this[_0x5c57bc(0x154)][_0x5c57bc(0x133)](_0x2ab006),_0x33b4af=_0x422210==null?void 0x0:_0x422210['scene'];return _0x33b4af?_0x9a150f(_0x33b4af):_0x1198ce;})):_0x1198ce))[_0x5b994d(0x2f7)](_0xa73dd7=>{const _0x209e42=_0x5b994d;let _0x319181=_0xa73dd7['getTransformerByCreate']();this[_0x209e42(0x2d6)](_0xa73dd7['onPointerMove$'][_0x209e42(0x2fe)](()=>{const _0x5d6874=_0x209e42;this['_isImagePointerDown']&&this[_0x5d6874(0x2f6)]();})),this[_0x209e42(0x2d6)](_0x319181['changeStart$'][_0x209e42(0x2f7)](_0x54cd17=>{const _0xa31fb0=_0x209e42;let {objects:_0x21bab1}=_0x54cd17;if(this[_0xa31fb0(0x126)](),_0x21bab1!==null&&_0x21bab1[_0xa31fb0(0x1e1)]===0x1){let _0x2d7f57=_0x21bab1['values']()['next']()['value'];_0x2d7f57 instanceof _0x2c6b0b&&_0x2d7f57[_0xa31fb0(0x2db)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x209e42(0x2d6)](_0x319181[_0x209e42(0x27e)][_0x209e42(0x2f7)](()=>{const _0x5392e8=_0x209e42;this['_isImagePointerDown']&&this[_0x5392e8(0x2f6)]();})),this[_0x209e42(0x2d6)](_0xa73dd7[_0x209e42(0x24e)][_0x209e42(0x2fe)](()=>{const _0xd6dddc=_0x209e42;this['_isImagePointerDown']&&(this[_0xd6dddc(0xe3)]=!0x1,this[_0xd6dddc(0x126)]());})),this['disposeWithMe'](_0x319181[_0x209e42(0xeb)][_0x209e42(0x2f7)](()=>{const _0x2909e6=_0x209e42;if(this['_unitId']&&this['_subUnitId']&&this[_0x2909e6(0x15d)]){let _0x53e620=this[_0x2909e6(0x266)](this['_unitId'],this[_0x2909e6(0x13b)],this['_activeImageId']);if(_0x53e620){var _0x3da8fd,_0x28c2f3;let _0x113646=this[_0x2909e6(0x31e)](this[_0x2909e6(0x2aa)],this[_0x2909e6(0x13b)],this[_0x2909e6(0x15d)]),_0x2e361d=(_0x113646==null||(_0x3da8fd=_0x113646['transform'])==null?void 0x0:_0x3da8fd['width'])||0x0,_0x564b3c=(_0x113646==null||(_0x28c2f3=_0x113646['transform'])==null?void 0x0:_0x28c2f3['height'])||0x0,_0x1ec05d=this[_0x2909e6(0x272)](_0x53e620[_0x2909e6(0x2db)],_0x2e361d,_0x564b3c,_0x53e620[_0x2909e6(0x260)]);_0x1ec05d&&(this[_0x2909e6(0x143)]=_0x1ec05d['getDrawingPoints'](),this[_0x2909e6(0x2f6)](),this[_0x2909e6(0x126)](!0x0));}}}));}));}[_0xcb6cbb(0x16e)](){const _0x1044af=_0xcb6cbb;this[_0x1044af(0x2d6)](this[_0x1044af(0x1ad)][_0x1044af(0xed)]['subscribe'](_0x50c5c6=>{const _0x3ea417=_0x1044af;if(_0x50c5c6[_0x3ea417(0x25d)]===0x1){let _0x4749a0=_0x50c5c6[0x0];if(_0x4749a0['drawingType']===_0x55872c[_0x3ea417(0x172)]){let {unitId:_0x1e57a9,subUnitId:_0x13223c,drawingId:_0x481de2}=_0x4749a0,_0x244c41=this['_getImagePrstGeom'](_0x1e57a9,_0x13223c,_0x481de2);if(_0x244c41){var _0x298532,_0x2d7ebb;this[_0x3ea417(0x15d)]=_0x481de2,this['_unitId']=_0x1e57a9,this[_0x3ea417(0x13b)]=_0x13223c;let _0xa8f814=this[_0x3ea417(0x31e)](_0x1e57a9,_0x13223c,_0x481de2),_0x133d2d=(_0xa8f814==null||(_0x298532=_0xa8f814[_0x3ea417(0xce)])==null?void 0x0:_0x298532[_0x3ea417(0x1fb)])||0x0,_0x5a9737=(_0xa8f814==null||(_0x2d7ebb=_0xa8f814[_0x3ea417(0xce)])==null?void 0x0:_0x2d7ebb['height'])||0x0,_0x5dc3c7=this[_0x3ea417(0x272)](_0x244c41[_0x3ea417(0x2db)],_0x133d2d,_0x5a9737,_0x244c41[_0x3ea417(0x260)]);_0x5dc3c7&&(this[_0x3ea417(0x143)]=_0x5dc3c7[_0x3ea417(0x13c)]()),this[_0x3ea417(0x2f6)](),this[_0x3ea417(0x126)](!0x0);}else this[_0x3ea417(0x13a)]();}else this[_0x3ea417(0x13a)]();}else this[_0x3ea417(0x13a)]();})),this[_0x1044af(0x2d6)](this['_drawingManagerService'][_0x1044af(0x1de)][_0x1044af(0x2f7)](_0x2f997d=>{const _0x28c496=_0x1044af;if(_0x2f997d[_0x28c496(0x25d)]===0x1){let _0x591dac=_0x2f997d[0x0],_0x14c4ad=this[_0x28c496(0x1ad)]['getDrawingByParam'](_0x591dac);(_0x14c4ad==null?void 0x0:_0x14c4ad[_0x28c496(0x1c2)])===_0x55872c[_0x28c496(0x172)]&&this[_0x28c496(0x15d)]===_0x591dac[_0x28c496(0x10e)]&&(this[_0x28c496(0x2f6)](),this['_createControls'](!0x0));}})),this[_0x1044af(0x2d6)](this[_0x1044af(0x1ad)]['remove$'][_0x1044af(0x2f7)](_0x346400=>{const _0xcff95e=_0x1044af;for(let _0x37bdc9 of _0x346400)this['_activeImageId']===_0x37bdc9[_0xcff95e(0x10e)]&&this['_resetState']();}));}[_0xcb6cbb(0x13a)](){const _0x1e49b0=_0xcb6cbb;this[_0x1e49b0(0x15d)]=null,this[_0x1e49b0(0x2aa)]=null,this['_subUnitId']=null,this[_0x1e49b0(0x143)]=void 0x0,this[_0x1e49b0(0x2f6)]();}};Dr=Z([X(0x1,_0x5a1ed0),X(0x2,_0x25d6be(_0x297a94)),X(0x3,_0x1af83c),X(0x4,_0x25d6be(Jn))],Dr);let Or=class extends _0x444b76{constructor(_0x2cb114,_0xbaef66,_0x4e19f5,_0x53a23b){const _0x359f7b=_0xcb6cbb;super(),this[_0x359f7b(0x23f)]=_0x2cb114,this[_0x359f7b(0x1d7)]=_0xbaef66,this[_0x359f7b(0x1b7)]=_0x4e19f5,this[_0x359f7b(0x287)]=_0x53a23b,this[_0x359f7b(0xb6)]();}[_0xcb6cbb(0xb6)](){const _0xa46382=_0xcb6cbb;this[_0xa46382(0x2d6)](this[_0xa46382(0x1d7)][_0xa46382(0xcd)]({'getMutations':_0x1c6c27=>{const _0x2c5833=_0xa46382;if(_0x1c6c27['id']===_0x130616['id']){let _0x4896a3=_0x5f445e(this['_univerInstanceService'],_0x1c6c27[_0x2c5833(0x24d)]);if(!_0x4896a3)return{'redos':[],'undos':[]};let {unitId:_0x4cd9d4,subUnitId:_0xdb827b}=_0x4896a3,_0x24494b=this[_0x2c5833(0x1b7)]['getDrawingData'](_0x4cd9d4,_0xdb827b),_0xbee42c=Object[_0x2c5833(0x1c7)](_0x24494b)[_0x2c5833(0x2b4)](_0x2f826a=>_0x2f826a[_0x2c5833(0x1c2)]===_0x55872c['DRAWING_SHAPE']);if(_0xbee42c[_0x2c5833(0x25d)]===0x0)return{'redos':[],'undos':[]};let _0xc18a3c=[],_0x464090=[];for(let _0x23a3b1=0x0;_0x23a3b1<_0xbee42c[_0x2c5833(0x25d)];_0x23a3b1++){let _0x4979f1=_0xbee42c[_0x23a3b1],_0x22eabe=this[_0x2c5833(0x287)][_0x2c5833(0x2c4)](_0x4979f1[_0x2c5833(0x241)],_0x4979f1['subUnitId'],_0x4979f1['drawingId']);if(!_0x22eabe)continue;let {redo:_0x6f2326,undo:_0x56c30e,objects:_0x5b5006}=this[_0x2c5833(0x1b7)][_0x2c5833(0x1b1)]([_0x4979f1]);_0xc18a3c[_0x2c5833(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'shapeId':_0x4979f1[_0x2c5833(0x10e)]}}),_0xc18a3c['push']({'id':_0x555349['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'type':_0x11752e['REMOVE'],'op':_0x6f2326,'objects':_0x5b5006}}),_0x464090['push']({'id':_0x555349['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'type':_0x11752e[_0x2c5833(0x101)],'op':_0x56c30e,'objects':_0x5b5006}}),_0x464090[_0x2c5833(0x311)]({'id':_0x314d59['id'],'params':{'unitId':_0x4cd9d4,'subUnitId':_0xdb827b,'shapeId':_0x4979f1['drawingId'],'shapeType':_0x22eabe['getShapeType'](),'shapeData':JSON[_0x2c5833(0x226)](JSON[_0x2c5833(0x276)](_0x22eabe[_0x2c5833(0x113)]()))}});}return{'redos':_0xc18a3c,'undos':_0x464090};}else{if(_0x1c6c27['id']===_0x5249ee['id']){let {unitId:_0x101cc2,subUnitId:_0x2e6fe2,targetSubUnitId:_0x1cd677}=_0x1c6c27[_0x2c5833(0x24d)];if(!_0x101cc2||!_0x2e6fe2||!_0x1cd677)return{'redos':[],'undos':[]};let _0xa6e4ea=this[_0x2c5833(0x1b7)][_0x2c5833(0x127)](_0x101cc2,_0x2e6fe2),_0x4a41a4=Object[_0x2c5833(0x1c7)](_0xa6e4ea)[_0x2c5833(0x2b4)](_0x4bbe29=>_0x4bbe29['drawingType']===_0x55872c[_0x2c5833(0x1ce)]);if(_0x4a41a4[_0x2c5833(0x25d)]===0x0)return{'redos':[],'undos':[]};let _0x16d187=[],_0x5f331b=[];for(let _0xfa56ef=0x0;_0xfa56ef<_0x4a41a4[_0x2c5833(0x25d)];_0xfa56ef++){let _0x1d4306=_0x4a41a4[_0xfa56ef],_0x13f2bb=this['_sheetsShapeService'][_0x2c5833(0x2c4)](_0x1d4306[_0x2c5833(0x241)],_0x1d4306[_0x2c5833(0x281)],_0x1d4306[_0x2c5833(0x10e)]);if(!_0x13f2bb)continue;let _0x3d4581=_0xf6c8c4(),_0x282169={..._0x1d4306,'unitId':_0x101cc2,'subUnitId':_0x1cd677,'drawingId':_0x3d4581},{redo:_0x59c180,undo:_0x34dc03,objects:_0x595757}=this['_sheetDrawingService'][_0x2c5833(0x2bf)]([_0x282169]);_0x16d187[_0x2c5833(0x311)]({'id':_0x555349['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'type':_0x11752e[_0x2c5833(0x101)],'op':_0x59c180,'objects':_0x595757}}),_0x16d187[_0x2c5833(0x311)]({'id':_0x314d59['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'shapeId':_0x3d4581,'shapeType':_0x13f2bb[_0x2c5833(0xb7)](),'shapeData':JSON[_0x2c5833(0x226)](JSON[_0x2c5833(0x276)](_0x13f2bb[_0x2c5833(0x113)]()))}}),_0x5f331b[_0x2c5833(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'shapeId':_0x3d4581}}),_0x5f331b[_0x2c5833(0x311)]({'id':_0x555349['id'],'params':{'unitId':_0x101cc2,'subUnitId':_0x1cd677,'type':_0x11752e[_0x2c5833(0x29c)],'op':_0x34dc03,'objects':_0x595757}});}return{'redos':_0x16d187,'undos':_0x5f331b};}}return{'redos':[],'undos':[]};}}));}};Or=Z([X(0x0,_0x25d6be(_0x1af83c)),X(0x1,_0x25d6be(_0x555ec8)),X(0x2,_0x25d6be(_0x2a99b6)),X(0x3,_0x25d6be(_0x231cef))],Or);let kr=class extends _0x444b76{constructor(_0xe3879f,_0x51a412,_0xc62ff1,_0x10b4f6,_0xf1524d){const _0x4cbd30=_0xcb6cbb;super(),this[_0x4cbd30(0x2ea)]=_0xe3879f,this[_0x4cbd30(0x161)]=_0x51a412,this[_0x4cbd30(0x1ad)]=_0xc62ff1,this[_0x4cbd30(0x14f)]=_0x10b4f6,this[_0x4cbd30(0x287)]=_0xf1524d,Y(this,_0x4cbd30(0x280),null),this['_initEvents'](),this[_0x4cbd30(0x211)](),this[_0x4cbd30(0xd0)]();}[_0xcb6cbb(0xf3)](){const _0x242c33=_0xcb6cbb;let {scene:_0x27f938}=this['_context'];this[_0x242c33(0x2d6)](_0x27f938['onDblclick$'][_0x242c33(0x2fe)](_0x5ed27d=>{const _0x573db7=_0x242c33;let {offsetX:_0x43ebe3,offsetY:_0x1edc92}=_0x5ed27d,_0x2ed5e3=_0x27f938[_0x573db7(0x1eb)](_0x304485[_0x573db7(0x1e3)]([_0x43ebe3,_0x1edc92]));if(_0x2ed5e3 instanceof Ln){let _0x584683=this[_0x573db7(0x287)]['getShapeModel'](_0x2ed5e3[_0x573db7(0x241)],_0x2ed5e3[_0x573db7(0x281)],_0x2ed5e3[_0x573db7(0x124)]);if(_0x584683!=null&&_0x584683[_0x573db7(0x113)]()[_0x573db7(0x138)]||_0x286130(this[_0x573db7(0x287)][_0x573db7(0xb7)](_0x2ed5e3['unitId'],_0x2ed5e3['subUnitId'],_0x2ed5e3[_0x573db7(0x124)])))return;this[_0x573db7(0x161)][_0x573db7(0x285)]({'visible':!0x0,'unitId':_0x2ed5e3[_0x573db7(0x241)],'subUnitId':_0x2ed5e3['subUnitId'],'shapeId':_0x2ed5e3[_0x573db7(0x124)],'shapeKey':_0x2ed5e3[_0x573db7(0x303)]});}}));}[_0xcb6cbb(0x211)](){const _0xc0243d=_0xcb6cbb;this[_0xc0243d(0x2d6)](this[_0xc0243d(0x1ad)][_0xc0243d(0xed)][_0xc0243d(0x2f7)](_0x5cb6a4=>{const _0x541d45=_0xc0243d;if(_0x5cb6a4[_0x541d45(0x25d)]===0x1){let _0x4c3c46=_0x5cb6a4[0x0],_0x45be9f=this[_0x541d45(0x1ad)][_0x541d45(0x16d)](_0x4c3c46);if((_0x45be9f==null?void 0x0:_0x45be9f[_0x541d45(0x1c2)])===_0x55872c[_0x541d45(0x1ce)]){var _0x5e4673;let _0x51e3e6=this['_shapeTextEditingService'][_0x541d45(0x1e8)]();if((_0x51e3e6==null?void 0x0:_0x51e3e6[_0x541d45(0x124)])===_0x4c3c46[_0x541d45(0x10e)]&&_0x51e3e6[_0x541d45(0x1f5)])return;let _0x20e9f9=_0x286130(this[_0x541d45(0x287)][_0x541d45(0xb7)](_0x4c3c46[_0x541d45(0x241)],_0x4c3c46[_0x541d45(0x281)],_0x4c3c46[_0x541d45(0x10e)])),_0x604ab3=!!((_0x5e4673=this[_0x541d45(0x287)]['getShapeModel'](_0x4c3c46[_0x541d45(0x241)],_0x4c3c46[_0x541d45(0x281)],_0x4c3c46[_0x541d45(0x10e)]))!=null&&_0x5e4673[_0x541d45(0x113)]()[_0x541d45(0x138)]);(_0x20e9f9||_0x604ab3)&&this[_0x541d45(0x161)][_0x541d45(0x285)](null);}else this[_0x541d45(0x161)][_0x541d45(0x1e8)]()&&(this['_shapeTextEditingService'][_0x541d45(0x247)](!0x0),requestAnimationFrame(()=>{const _0x385d75=_0x541d45;this[_0x385d75(0x161)][_0x385d75(0x285)](null);}));}else this[_0x541d45(0x161)][_0x541d45(0x1e8)]()&&(this[_0x541d45(0x161)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1ba355=_0x541d45;this[_0x1ba355(0x161)][_0x1ba355(0x285)](null);}));})),this[_0xc0243d(0x2d6)](this[_0xc0243d(0x1ad)][_0xc0243d(0x304)]['subscribe'](_0x2361d5=>{const _0x1231b0=_0xc0243d;let _0x40be36=this['_shapeTextEditingService'][_0x1231b0(0x1e8)]();_0x40be36&&_0x2361d5[_0x1231b0(0x230)](_0x2a2e47=>_0x2a2e47[_0x1231b0(0x10e)]===_0x40be36[_0x1231b0(0x124)])&&this['_shapeTextEditingService'][_0x1231b0(0x285)](null);}));}[_0xcb6cbb(0xd0)](){const _0x444656=_0xcb6cbb;this[_0x444656(0x2d6)](this[_0x444656(0x161)][_0x444656(0x1ac)][_0x444656(0x2f7)](_0x2000ff=>{const _0x4b493b=_0x444656;let {scene:_0x1c1d5b}=this[_0x4b493b(0x2ea)];if(this['_lastEditingShapeKey']){let _0x349517=_0x1c1d5b[_0x4b493b(0x114)](this[_0x4b493b(0x280)]);_0x349517&&_0x349517['setEditing'](!0x1);}if(_0x2000ff){let _0x3564d1=!!_0x2000ff[_0x4b493b(0x1f5)],_0x56b75d=_0x1c1d5b[_0x4b493b(0x114)](_0x2000ff[_0x4b493b(0x2fd)]);_0x56b75d&&(_0x56b75d[_0x4b493b(0x285)](_0x3564d1),this[_0x4b493b(0x280)]=_0x2000ff[_0x4b493b(0x2fd)]),this[_0x4b493b(0x14f)][_0x4b493b(0x1ea)](_0x2bcc42,_0x3564d1);}else this[_0x4b493b(0x280)]=null,this['_contextService'][_0x4b493b(0x1ea)](_0x2bcc42,!0x1);}));}};kr=Z([X(0x1,_0x25d6be(wr)),X(0x2,_0x5a1ed0),X(0x3,_0x34c0f6),X(0x4,_0x25d6be(_0x231cef))],kr);let Ar=class extends _0x4ab995{constructor(_0x3e94db,_0xdf1a09,_0x2ab819,_0x4b4352){super(_0x3e94db,_0xdf1a09,_0x2ab819,_0x4b4352,{'componentKey':Kn,'editorUnitId':Gn});}};Ar=Z([X(0x1,_0x25d6be(_0x1d0921)),X(0x2,_0x25d6be(_0x2a16ba)),X(0x3,_0x25d6be(_0x4b8e76))],Ar);let jr=class extends _0x444b76{constructor(_0x4f55b3,_0x4744a8,_0x2c27e5,_0x5dd76e,_0x21e1c3,_0x5e71e9){const _0x10a2f1=_0xcb6cbb;super(),this[_0x10a2f1(0x300)]=_0x4f55b3,this['_renderManagerService']=_0x4744a8,this[_0x10a2f1(0x1ad)]=_0x2c27e5,this[_0x10a2f1(0x20c)]=_0x5dd76e,this[_0x10a2f1(0x222)]=_0x21e1c3,this[_0x10a2f1(0x1b2)]=_0x5e71e9,Y(this,_0x10a2f1(0x1c0),new Set()),this[_0x10a2f1(0x318)]();}[_0xcb6cbb(0x318)](){const _0x57d749=_0xcb6cbb;this[_0x57d749(0xee)](),this[_0x57d749(0x2a1)](),this[_0x57d749(0x2ff)]();}[_0xcb6cbb(0xee)](){const _0x3b2ca8=_0xcb6cbb;this[_0x3b2ca8(0x2d6)](this['_drawingManagerService'][_0x3b2ca8(0x253)][_0x3b2ca8(0x2f7)](_0x16763b=>{const _0x41fe24=_0x3b2ca8;this[_0x41fe24(0x29a)](_0x16763b);}));}[_0xcb6cbb(0x2a1)](){const _0x548666=_0xcb6cbb;this[_0x548666(0x2d6)](this[_0x548666(0x300)]['onCommandExecuted'](_0x3d54b3=>{const _0x3f406a=_0x548666;if(_0x3d54b3['id']===_0x528850['id']){let {unitId:_0x25c4d9,subUnitId:_0x1a1749,shapeId:_0x405fba}=_0x3d54b3['params'],_0x130ee9=this['_getSceneAndTransformerByDrawingSearch'](_0x25c4d9),_0x578732=_0x4f98bd({'unitId':_0x25c4d9,'subUnitId':_0x1a1749,'drawingId':_0x405fba}),_0x2048b2=_0x130ee9==null?void 0x0:_0x130ee9[_0x3f406a(0x1f6)]['getObjectIncludeInGroup'](_0x578732);_0x2048b2&&(this[_0x3f406a(0x1b2)]['refreshShapeFillImage'](_0x2048b2),this[_0x3f406a(0x1b2)][_0x3f406a(0x129)](_0x2048b2,{'unitId':_0x25c4d9,'subUnitId':_0x1a1749,'shapeId':_0x405fba}),_0x2048b2[_0x3f406a(0x1dd)](!0x0));return;}if(_0x3d54b3['id']===_0x314d59['id']){var _0x32306a;let {unitId:_0x208c25,subUnitId:_0x2199b2,shapeId:_0x4ee8cb}=_0x3d54b3[_0x3f406a(0x24d)],_0x2e88f6=this[_0x3f406a(0x1aa)](_0x208c25);if(_0x2e88f6==null)return;let {scene:_0x2cfcb6}=_0x2e88f6,_0x16991e=_0x4f98bd({'unitId':_0x208c25,'subUnitId':_0x2199b2,'drawingId':_0x4ee8cb}),_0x5e27cd=_0x2cfcb6['getObjectIncludeInGroup'](_0x16991e);if(!((_0x32306a=this[_0x3f406a(0x154)][_0x3f406a(0x133)](_0x208c25))!=null&&_0x32306a[_0x3f406a(0x2dd)](_0x48c126)[_0x3f406a(0x1bf)](_0x2199b2)))return!0x1;if(_0x5e27cd)return;this[_0x3f406a(0x29a)]([{'unitId':_0x208c25,'subUnitId':_0x2199b2,'drawingId':_0x4ee8cb}]);}}));}[_0xcb6cbb(0x2ff)](){const _0x473ba1=_0xcb6cbb;this[_0x473ba1(0x2d6)](this[_0x473ba1(0x1ad)]['update$'][_0x473ba1(0x2f7)](_0x1e0747=>{const _0x30004c=_0x473ba1;_0x1e0747[_0x30004c(0x26a)](_0x19b652=>{const _0x4dcf05=_0x30004c;let {unitId:_0x544858,subUnitId:_0x39d38c,drawingId:_0x835248}=_0x19b652,_0x336854=this[_0x4dcf05(0x1ad)][_0x4dcf05(0x16d)](_0x19b652);if(_0x336854==null)return;let {transform:_0x38e70e,drawingType:_0x4eb525,srcRect:_0x250bdc,prstGeom:_0x5f0fc1}=_0x336854;if(_0x4eb525!==_0x55872c[_0x4dcf05(0x1ce)])return;let _0x2c9cae=this['_getSceneAndTransformerByDrawingSearch'](_0x544858);if(_0x2c9cae==null)return;let {scene:_0x34d5e0,transformer:_0x347d7a}=_0x2c9cae;if(_0x38e70e==null)return!0x0;let _0x23c0ef=_0x4f98bd({'unitId':_0x544858,'subUnitId':_0x39d38c,'drawingId':_0x835248}),_0x5645ce=_0x34d5e0[_0x4dcf05(0x114)](_0x23c0ef);if(_0x5645ce==null)return!0x0;_0x5645ce[_0x4dcf05(0xc3)](_0x250bdc),_0x5645ce[_0x4dcf05(0x268)](_0x5f0fc1);});}));}[_0xcb6cbb(0x29a)](_0x47ef13){const _0x110251=_0xcb6cbb;for(let _0x2f492c of _0x47ef13){var _0x58eeb8;let {unitId:_0x1817c6,subUnitId:_0x430205,drawingId:_0x35145e}=_0x2f492c,_0x31b6bd=this['_getSceneAndTransformerByDrawingSearch'](_0x1817c6),_0x254bd6=(_0x58eeb8=_0x38af4c(this[_0x110251(0x20c)],_0x1817c6))==null?void 0x0:_0x58eeb8[_0x110251(0x281)];if(_0x31b6bd==null||_0x254bd6!==_0x430205)return;let _0x4a93dd=_0x4f98bd({'unitId':_0x1817c6,'subUnitId':_0x430205,'drawingId':_0x35145e});if(this[_0x110251(0x1c0)]['has'](_0x4a93dd)||_0x31b6bd['scene'][_0x110251(0x114)](_0x4a93dd)!=null)return;let _0x115646=this[_0x110251(0x1ad)][_0x110251(0x16d)](_0x2f492c);if(_0x115646==null||_0x115646[_0x110251(0x1c2)]!==_0x55872c['DRAWING_SHAPE'])return;if(_0x286130((_0x115646['data']||{})['shapeType'])){let _0x5629b3=_0x115646['transform'];_0x5629b3&&(_0x115646[_0x110251(0xce)]={..._0x5629b3,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x110251(0x1c0)][_0x110251(0x1b9)](_0x4a93dd);try{this[_0x110251(0x1b2)][_0x110251(0x1f9)](_0x115646,_0x31b6bd['scene']);}finally{this[_0x110251(0x1c0)][_0x110251(0x2a6)](_0x4a93dd);}queueMicrotask(()=>{const _0x25df83=_0x110251;if(this[_0x25df83(0x1bc)])return;let _0x2f1265=_0x4f98bd(_0x2f492c);if(!_0x31b6bd['scene'][_0x25df83(0x114)](_0x2f1265))return;let _0x546204=this[_0x25df83(0x1ad)][_0x25df83(0x16d)](_0x2f492c);_0x546204&&this[_0x25df83(0x1ad)][_0x25df83(0x134)]([_0x546204]);});}}[_0xcb6cbb(0x1aa)](_0x5766a8){const _0x4ea100=_0xcb6cbb;if(_0x5766a8==null)return;let _0x343012=this[_0x4ea100(0x154)]['getRenderUnitById'](_0x5766a8),_0x8a725b=_0x343012==null?void 0x0:_0x343012[_0x4ea100(0x1f6)];return _0x8a725b==null?null:{'scene':_0x8a725b,'transformer':_0x8a725b[_0x4ea100(0x24a)]()};}};jr=Z([X(0x0,_0x3a72b1),X(0x1,_0x297a94),X(0x2,_0x5a1ed0),X(0x3,_0x1af83c),X(0x4,_0x25d6be(_0x56246f)),X(0x5,_0x25d6be(Q))],jr);const Mr={'normal':{'fill':_0x3cbe53['cxnPointFill'],'stroke':_0x3cbe53[_0xcb6cbb(0x206)],'strokeWidth':_0x3cbe53[_0xcb6cbb(0xe9)]},'highlighted':{'fill':_0xcb6cbb(0x256),'stroke':_0xcb6cbb(0x30e),'strokeWidth':0x2}};var Nr=class extends _0x30d1c4{constructor(_0x235594,_0x34adb1){const _0x38204d=_0xcb6cbb;super(_0x235594,_0x34adb1),Y(this,_0x38204d(0x2f1),''),Y(this,_0x38204d(0x30b),-0x1),Y(this,_0x38204d(0x2aa),''),Y(this,_0x38204d(0x13b),''),Y(this,_0x38204d(0xf1),!0x1),_0x34adb1&&this[_0x38204d(0x315)](_0x34adb1);}[_0xcb6cbb(0x120)](){const _0xa90140=_0xcb6cbb;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0xa90140(0x30b)]};}[_0xcb6cbb(0x1f7)](_0x13e473){const _0x2d5e10=_0xcb6cbb;this[_0x2d5e10(0xf1)]!==_0x13e473&&(this[_0x2d5e10(0xf1)]=_0x13e473,this[_0x2d5e10(0x1dd)](!0x0));}[_0xcb6cbb(0x25b)](){const _0x123790=_0xcb6cbb;return this[_0x123790(0xf1)];}[_0xcb6cbb(0x315)](_0x424fba){const _0x472df4=_0xcb6cbb;var _0x2b4096,_0x3b97ae;_0x424fba[_0x472df4(0x240)]!==void 0x0&&(this[_0x472df4(0x2f1)]=_0x424fba['targetShapeId']),_0x424fba[_0x472df4(0xc7)]!==void 0x0&&(this[_0x472df4(0x30b)]=_0x424fba[_0x472df4(0xc7)]),_0x424fba[_0x472df4(0x241)]!==void 0x0&&(this[_0x472df4(0x2aa)]=_0x424fba[_0x472df4(0x241)]),_0x424fba['subUnitId']!==void 0x0&&(this[_0x472df4(0x13b)]=_0x424fba[_0x472df4(0x281)]),_0x424fba[_0x472df4(0x25b)]!==void 0x0&&(this[_0x472df4(0xf1)]=_0x424fba['isHighlighted']),this[_0x472df4(0xdd)]({'width':(_0x2b4096=_0x424fba['width'])==null?_0x3cbe53[_0x472df4(0x27a)]*0x2:_0x2b4096,'height':(_0x3b97ae=_0x424fba['height'])==null?_0x3cbe53[_0x472df4(0x27a)]*0x2:_0x3b97ae});}[_0xcb6cbb(0x2d9)](_0x15e2f7){const _0x39a129=_0xcb6cbb;let _0x19eba7=this[_0x39a129(0xf1)]?Mr[_0x39a129(0xba)]:Mr['normal'];_0x38d822['drawWith'](_0x15e2f7,{'radius':_0x3cbe53['cxnPointRadius'],'fill':_0x19eba7[_0x39a129(0x2e6)],'stroke':_0x19eba7[_0x39a129(0x1c6)],'strokeWidth':_0x19eba7[_0x39a129(0x189)],'evented':!0x0});}};let Pr=class extends _0x444b76{constructor(_0x48be72,_0x463997,_0x589749,_0x19d866){const _0xbc04a0=_0xcb6cbb;super(),this[_0xbc04a0(0x2ea)]=_0x48be72,this[_0xbc04a0(0x154)]=_0x463997,this[_0xbc04a0(0x1ad)]=_0x589749,this[_0xbc04a0(0x287)]=_0x19d866,Y(this,_0xbc04a0(0x2c2),[]),Y(this,'_activeTargetShapeId',null),Y(this,_0xbc04a0(0x16f),-0x1),Y(this,_0xbc04a0(0x293),null),Y(this,_0xbc04a0(0x2aa),''),Y(this,'_subUnitId',''),Y(this,'_draggingConnectorId',null);}['startConnectionDetection'](_0x15c70e,_0x47e404,_0xdd2ece,_0x5828eb){const _0x2b63f3=_0xcb6cbb;this[_0x2b63f3(0x293)]=_0x15c70e,this[_0x2b63f3(0x2aa)]=_0x47e404,this[_0x2b63f3(0x13b)]=_0xdd2ece,this[_0x2b63f3(0x294)]=_0x5828eb;}[_0xcb6cbb(0x121)](_0x57d103){const _0x15269a=_0xcb6cbb;if(!this[_0x15269a(0x293)])return null;let _0x3a127e=this['_findShapeAtPoint'](_0x57d103);return _0x3a127e?(this[_0x15269a(0x1bd)]!==_0x3a127e[_0x15269a(0x124)]&&(this['_clearConnectionSites'](),this[_0x15269a(0x1b8)](_0x3a127e[_0x15269a(0x124)],_0x3a127e[_0x15269a(0x279)]),this[_0x15269a(0x1bd)]=_0x3a127e['shapeId']),this['_findNearestConnectionSite'](_0x57d103)):(this[_0x15269a(0x1bd)]!==null&&(this[_0x15269a(0x196)](),this[_0x15269a(0x1bd)]=null),null);}[_0xcb6cbb(0x2fa)](){const _0x451ba1=_0xcb6cbb;this[_0x451ba1(0x196)](),this[_0x451ba1(0x293)]=null,this[_0x451ba1(0x1bd)]=null,this[_0x451ba1(0x16f)]=-0x1,this[_0x451ba1(0x294)]=null;}[_0xcb6cbb(0x18c)](){const _0x117154=_0xcb6cbb;return this[_0x117154(0x1bd)]===null||this[_0x117154(0x16f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x117154(0x16f)]};}[_0xcb6cbb(0x1ec)](_0x39d89e){const _0x202ecd=_0xcb6cbb;let _0x4c08e2=this[_0x202ecd(0x1ad)]['getDrawingData'](this[_0x202ecd(0x2aa)],this[_0x202ecd(0x13b)]);for(let _0x41d463 of Object['keys'](_0x4c08e2)){if(_0x41d463===this[_0x202ecd(0x294)]||_0x4c08e2[_0x41d463]['drawingType']!==_0x55872c['DRAWING_SHAPE'])continue;let _0x52d27c=this[_0x202ecd(0x287)][_0x202ecd(0x2c4)](this[_0x202ecd(0x2aa)],this[_0x202ecd(0x13b)],_0x41d463);if(!_0x52d27c||_0x286130(_0x52d27c[_0x202ecd(0xb7)]())||_0x52d27c[_0x202ecd(0x2cd)]()[_0x202ecd(0x25d)]===0x0||!this[_0x202ecd(0x293)])continue;let _0x3825b2=_0x4f98bd({'unitId':this[_0x202ecd(0x2aa)],'subUnitId':this[_0x202ecd(0x13b)],'drawingId':_0x41d463}),_0x1222a4=this[_0x202ecd(0x293)][_0x202ecd(0x114)](_0x3825b2);if(!_0x1222a4)continue;let {left:_0x310095,top:_0x3fa879,width:_0x2d1cbd,height:_0x22c507}=_0x1222a4['getRealBound'](),_0x413fca=_0x310095+_0x2d1cbd/0x2,_0x266cc6=_0x3fa879+_0x22c507/0x2,_0x2309de=_0x1222a4[_0x202ecd(0xce)][_0x202ecd(0x1c9)](),_0x58cb58=new _0x3bab71([_0x2309de[0x0],_0x2309de[0x1],_0x2309de[0x2],_0x2309de[0x3],_0x413fca,_0x266cc6]),_0x27779b=_0x1222a4[_0x202ecd(0x19c)](),_0x2d26a=(_0x1222a4[_0x202ecd(0x2a0)]&&(_0x27779b==null?void 0x0:_0x27779b[_0x202ecd(0x213)])===_0x407a18['GROUP']?_0x27779b['ancestorTransform'][_0x202ecd(0xe1)](_0x58cb58):_0x58cb58)['invert']()[_0x202ecd(0x235)](_0x39d89e),_0x203d87=_0x2d1cbd/0x2,_0x26b090=_0x22c507/0x2;if(_0x2d26a['x']>=-_0x203d87-0x5&&_0x2d26a['x']<=_0x203d87+0x5&&_0x2d26a['y']>=-_0x26b090-0x5&&_0x2d26a['y']<=_0x26b090+0x5)return{'shapeId':_0x41d463,'shapeModel':_0x52d27c};}return null;}[_0xcb6cbb(0x1b8)](_0x44b739,_0x50fe9b){const _0x21101f=_0xcb6cbb;if(!this[_0x21101f(0x293)])return;let _0x3ea957=_0x4f98bd({'unitId':this[_0x21101f(0x2aa)],'subUnitId':this[_0x21101f(0x13b)],'drawingId':_0x44b739}),_0x53ee07=this[_0x21101f(0x293)][_0x21101f(0x114)](_0x3ea957);if(!_0x53ee07)return;let {left:_0x2e325b,top:_0x2346d1,width:_0x154a8a,height:_0x3a8768}=_0x53ee07['getRealBound'](),_0x36e9c5=_0x2e325b+_0x154a8a/0x2,_0x5d46af=_0x2346d1+_0x3a8768/0x2,_0x347420=_0x53ee07[_0x21101f(0xce)][_0x21101f(0x1c9)](),_0x3e41a4=new _0x3bab71([_0x347420[0x0],_0x347420[0x1],_0x347420[0x2],_0x347420[0x3],_0x36e9c5,_0x5d46af]),_0x5c923b=_0x53ee07[_0x21101f(0x19c)](),_0xc1a149=_0x53ee07[_0x21101f(0x2a0)]&&(_0x5c923b==null?void 0x0:_0x5c923b[_0x21101f(0x213)])===_0x407a18[_0x21101f(0x2c8)]?_0x5c923b[_0x21101f(0x262)]['multiply'](_0x3e41a4):_0x3e41a4;_0x50fe9b['updateContext']({'width':_0x154a8a,'height':_0x3a8768});let _0x2072a0=_0x50fe9b[_0x21101f(0x2cd)]();for(let _0xa8d8d5 of _0x2072a0){let _0x4d4279=_0xa8d8d5['x']-_0x154a8a/0x2,_0x4bff7f=_0xa8d8d5['y']-_0x3a8768/0x2,_0x27d8d9=_0xc1a149[_0x21101f(0x235)]({'x':_0x4d4279,'y':_0x4bff7f}),_0x98180c=_0x27d8d9['x'],_0x10c9dd=_0x27d8d9['y'],_0x518202=new Nr(_0x21101f(0x30f)+_0x44b739+'-'+_0xa8d8d5[_0x21101f(0x1cc)],{'left':_0x98180c-_0x3cbe53['cxnPointRadius'],'top':_0x10c9dd-_0x3cbe53[_0x21101f(0x27a)],'targetShapeId':_0x44b739,'cxnIndex':_0xa8d8d5[_0x21101f(0x1cc)],'unitId':this[_0x21101f(0x2aa)],'subUnitId':this[_0x21101f(0x13b)],'width':_0x3cbe53[_0x21101f(0x27a)]*0x2,'height':_0x3cbe53['cxnPointRadius']*0x2,'zIndex':_0x338629+0x2,'evented':!0x1});this[_0x21101f(0x2c2)][_0x21101f(0x311)](_0x518202),this['_currentScene'][_0x21101f(0x212)](_0x518202,_0x338629+0x2);}}['_findNearestConnectionSite'](_0x55c523){const _0x3717b8=_0xcb6cbb;let _0x109622=null,_0x5a318e=0x1/0x0,_0x4012cf=null;for(let _0x35c329 of this[_0x3717b8(0x2c2)]){let _0xc7cf28=_0x35c329['left']+_0x3cbe53[_0x3717b8(0x27a)],_0x8732b1=_0x35c329['top']+_0x3cbe53[_0x3717b8(0x27a)],_0x40239a=_0x55c523['x']-_0xc7cf28,_0x1668bd=_0x55c523['y']-_0x8732b1,_0x484ebe=Math[_0x3717b8(0x2ca)](_0x40239a*_0x40239a+_0x1668bd*_0x1668bd);_0x484ebe<_0x5a318e&&(_0x5a318e=_0x484ebe,_0x109622=_0x35c329,_0x4012cf={'x':_0xc7cf28,'y':_0x8732b1});}let _0x1cedb0=_0x5a318e<=0xa&&_0x109622?_0x109622['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x1cedb0!==this['_highlightedSiteIndex']){for(let _0x59876d of this[_0x3717b8(0x2c2)]){let _0x17a93c=_0x59876d[_0x3717b8(0x120)]();_0x59876d['setHighlighted'](_0x17a93c['cxnIndex']===_0x1cedb0);}this['_highlightedSiteIndex']=_0x1cedb0;}if(_0x5a318e<=0xa&&_0x109622&&_0x4012cf){let _0xc9207c=_0x109622['getConnectionInfo'](),_0x335cf3=this[_0x3717b8(0x2b8)](_0xc9207c[_0x3717b8(0x124)],_0xc9207c['cxnIndex']);return{'shapeId':_0xc9207c[_0x3717b8(0x124)],'cxnIndex':_0xc9207c[_0x3717b8(0xc7)],'unitId':_0xc9207c[_0x3717b8(0x241)],'subUnitId':_0xc9207c[_0x3717b8(0x281)],'worldPoint':_0x4012cf,'angle':_0x335cf3};}return null;}[_0xcb6cbb(0x2b8)](_0x42b77d,_0x13d159){const _0x2337c2=_0xcb6cbb;let _0x2347e3=this[_0x2337c2(0x287)][_0x2337c2(0x2c4)](this[_0x2337c2(0x2aa)],this[_0x2337c2(0x13b)],_0x42b77d);if(!_0x2347e3)return 0x0;let _0xaf6ee2=this[_0x2337c2(0x1ad)][_0x2337c2(0x16d)]({'unitId':this[_0x2337c2(0x2aa)],'subUnitId':this['_subUnitId'],'drawingId':_0x42b77d});if(!(_0xaf6ee2!=null&&_0xaf6ee2[_0x2337c2(0xce)]))return 0x0;let {width:_0x5dd98c=0x0,height:_0x5be815=0x0,flipX:_0x23184d=!0x1,flipY:_0xc655ca=!0x1}=_0xaf6ee2[_0x2337c2(0xce)];_0x2347e3[_0x2337c2(0x1d6)]({'width':_0x5dd98c,'height':_0x5be815});let _0x4c42bd=_0x2347e3[_0x2337c2(0x2cd)]()[_0x2337c2(0x2e5)](_0x10e55e=>_0x10e55e[_0x2337c2(0x1cc)]===_0x13d159);if(!_0x4c42bd)return 0x0;let _0x3fde12=_0x4c42bd['ang']/0xea60;return _0x23184d&&(_0x3fde12=0xb4-_0x3fde12),_0xc655ca&&(_0x3fde12=-_0x3fde12),_0x3fde12=(_0x3fde12%0x168+0x168)%0x168,_0x3fde12;}[_0xcb6cbb(0x196)](){const _0x1509f0=_0xcb6cbb;for(let _0x14b02e of this[_0x1509f0(0x2c2)])_0x14b02e[_0x1509f0(0x20e)]();this[_0x1509f0(0x2c2)]=[],this[_0x1509f0(0x16f)]=-0x1;}[_0xcb6cbb(0x20e)](){const _0x1fd33b=_0xcb6cbb;this['_clearConnectionSites'](),super[_0x1fd33b(0x20e)]();}};Pr=Z([X(0x1,_0x25d6be(_0x297a94)),X(0x2,_0x25d6be(_0x5a1ed0)),X(0x3,_0x25d6be(_0x231cef))],Pr);let Fr=class extends _0x444b76{constructor(_0x939328,_0x4aafee,_0x4d942f,_0x22c80e,_0x282900){const _0x40ec97=_0xcb6cbb;super(),this['_sheetSkeletonService']=_0x939328,this[_0x40ec97(0x125)]=_0x4aafee,this[_0x40ec97(0x1b7)]=_0x4d942f,this['_shapeService']=_0x22c80e,this[_0x40ec97(0x214)]=_0x282900,Y(this,_0x40ec97(0x25e),void 0x0),this[_0x40ec97(0x314)](),this[_0x40ec97(0x178)]();}get[_0xcb6cbb(0x1f2)](){const _0x3c8778=_0xcb6cbb;return this[_0x3c8778(0x1b7)][_0x3c8778(0x2e9)]();}['_registerGroupFeaturePasteHook'](){const _0x5667ad=_0xcb6cbb;this[_0x5667ad(0x214)]['registerFeaturePasteHook'](({fromUnitId:_0x1dbcb5,fromSubUnitId:_0x1d589f,toUnitId:_0x4bdf9a,toSubUnitId:_0x375f3c,idMap:_0xc01cd8})=>{const _0x27fb65=_0x5667ad;let _0x3240b5=[],_0x19fa65=[];for(let [_0x1df21b,_0x2e59ee]of _0xc01cd8[_0x27fb65(0x1c8)]()){let _0x3980c2=this[_0x27fb65(0x26f)][_0x27fb65(0x2c4)](_0x1dbcb5,_0x1d589f,_0x1df21b);if(!_0x3980c2)continue;let _0xf95a70=_0x3980c2[_0x27fb65(0xb7)](),_0x2d95fb=JSON[_0x27fb65(0x226)](JSON[_0x27fb65(0x276)](_0x3980c2[_0x27fb65(0x113)]()));if(_0x2d95fb[_0x27fb65(0x12f)]){var _0x56b59e,_0x3dd889;let _0x34dddc=(_0x56b59e=_0x2d95fb[_0x27fb65(0x12f)][_0x27fb65(0x30c)])==null?void 0x0:_0x56b59e[_0x27fb65(0x124)],_0x51c96a=(_0x3dd889=_0x2d95fb[_0x27fb65(0x12f)]['to'])==null?void 0x0:_0x3dd889[_0x27fb65(0x124)],_0x5c9bd6=!_0x34dddc||_0xc01cd8[_0x27fb65(0x1cf)](_0x34dddc),_0x5dc614=!_0x51c96a||_0xc01cd8[_0x27fb65(0x1cf)](_0x51c96a);_0x5c9bd6&&_0x34dddc&&_0x2d95fb['relation']['from']?_0x2d95fb['relation'][_0x27fb65(0x30c)]={..._0x2d95fb[_0x27fb65(0x12f)]['from'],'shapeId':_0xc01cd8[_0x27fb65(0x2da)](_0x34dddc)}:_0x2d95fb[_0x27fb65(0x12f)]['from']=void 0x0,_0x5dc614&&_0x51c96a&&_0x2d95fb[_0x27fb65(0x12f)]['to']?_0x2d95fb[_0x27fb65(0x12f)]['to']={..._0x2d95fb['relation']['to'],'shapeId':_0xc01cd8[_0x27fb65(0x2da)](_0x51c96a)}:_0x2d95fb[_0x27fb65(0x12f)]['to']=void 0x0;}_0x3240b5['push']({'id':_0x314d59['id'],'params':{'unitId':_0x4bdf9a,'subUnitId':_0x375f3c,'shapeId':_0x2e59ee,'shapeType':_0xf95a70,'shapeData':_0x2d95fb}}),_0x19fa65[_0x27fb65(0x311)]({'id':_0x1fd47e['id'],'params':{'unitId':_0x4bdf9a,'subUnitId':_0x375f3c,'shapeId':_0x2e59ee}});}return{'redos':_0x3240b5,'undos':_0x19fa65};});}[_0xcb6cbb(0x314)](){const _0x2cbfa4=_0xcb6cbb;this[_0x2cbfa4(0x2d6)](this[_0x2cbfa4(0x125)][_0x2cbfa4(0x13e)]({'id':_0x2cbfa4(0x2ec),'onBeforeCopy':(_0x31e34b,_0x4683a9,_0x53553b,_0xde0465)=>{const _0x20a781=_0x2cbfa4;this['_copyInfo']=null;let _0x31f16b=this[_0x20a781(0x1f2)];if(_0x31f16b[_0x20a781(0x25d)]){let _0x18e7d2=_0x31f16b[_0x20a781(0x2b4)](_0x38a6a9=>_0x38a6a9['drawingType']===_0x55872c[_0x20a781(0x1ce)]);if(_0x18e7d2[_0x20a781(0x25d)]===0x0)return;this[_0x20a781(0x25e)]={'unitId':_0x31e34b,'subUnitId':_0x4683a9,'copyType':_0xde0465,'drawings':_0x18e7d2};}else this[_0x20a781(0x109)](_0x31e34b,_0x4683a9,_0x53553b,_0xde0465);},'onPasteCells':(_0x5476fe,_0x568a89,_0x57a126,_0x1f5cc3)=>{const _0x1a2e2e=_0x2cbfa4;if(!this[_0x1a2e2e(0x25e)])return{'redos':[],'undos':[]};let {pasteType:_0x242531}=_0x1f5cc3;return _0x242531===_0x403204[_0x1a2e2e(0x2d0)]?this[_0x1a2e2e(0x25f)](_0x568a89,this[_0x1a2e2e(0x25e)]['copyType']===_0xf143f2['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x494c81=>this[_0x2cbfa4(0x25e)]?this[_0x2cbfa4(0x25f)](_0x494c81,this['_copyInfo'][_0x2cbfa4(0x296)]===_0xf143f2[_0x2cbfa4(0x203)]):{'redos':[],'undos':[]}}));}[_0xcb6cbb(0x109)](_0x400851,_0x27dd16,_0x137774,_0x1b7e5d){const _0x2d7246=_0xcb6cbb;let _0xb838c5=this[_0x2d7246(0x224)]['getSkeleton'](_0x400851,_0x27dd16);if(!_0xb838c5)return;let _0x1d4d27=_0x2cf26d(_0xb838c5,_0x137774);if(!_0x1d4d27)return;let {startX:_0xa25c97,endX:_0x23c167,startY:_0x58d818,endY:_0x44b86c}=_0x1d4d27,_0x169b94=this[_0x2d7246(0x1b7)]['getDrawingData'](_0x400851,_0x27dd16),_0x41de78=this['_focusedDrawings'][_0x2d7246(0x216)]();for(let [_0x2d4b8d,_0xd1cc24]of Object[_0x2d7246(0x1c8)](_0x169b94)){if(_0xd1cc24[_0x2d7246(0x1c2)]!==_0x55872c[_0x2d7246(0x1ce)])continue;let {transform:_0x3b4b76}=_0xd1cc24;if(!_0x3b4b76)continue;let {left:_0x4d7dd9=0x0,top:_0x5aaedb=0x0,width:_0x4fe8d9=0x0,height:_0x4d0974=0x0}=_0x3b4b76;_0xa25c97<=_0x4d7dd9&&_0x23c167>=_0x4d7dd9+_0x4fe8d9&&_0x58d818<=_0x5aaedb&&_0x44b86c>=_0x5aaedb+_0x4d0974&&_0x41de78['push'](_0xd1cc24);}_0x41de78[_0x2d7246(0x25d)]>0x0&&(this['_copyInfo']={'unitId':_0x400851,'subUnitId':_0x27dd16,'copyType':_0x1b7e5d,'copyRange':_0x137774,'drawings':_0x41de78});}[_0xcb6cbb(0x25f)](_0x331f91,_0x1a3c30){const _0x5c4003=_0xcb6cbb;let {unitId:_0x135678,subUnitId:_0x5f1298,range:_0x2337e9}=_0x331f91,_0x1b1742=this[_0x5c4003(0x224)]['getSkeleton'](_0x135678,_0x5f1298);if(!_0x1b1742)return{'redos':[],'undos':[]};let _0x177c68=_0xe86510(_0x2337e9),{unitId:_0x8d289b,subUnitId:_0x18a28f,copyRange:_0x39e841,drawings:_0x395a37}=this[_0x5c4003(0x25e)],_0x4bd039=this[_0x5c4003(0x224)]['getSkeleton'](_0x8d289b,_0x18a28f);if(!_0x4bd039)return{'redos':[],'undos':[]};let _0x37e8f6;if(!_0x39e841){let _0x50b0e5=0x1/0x0,_0x4f83c3=0x1/0x0;for(let _0x55885b of _0x395a37){var _0x4184d5;let {left:_0x49bacc=0x0,top:_0x470575=0x0}=(_0x4184d5=_0x55885b[_0x5c4003(0xce)])==null?{}:_0x4184d5;_0x49bacc<_0x50b0e5&&(_0x50b0e5=_0x49bacc),_0x470575<_0x4f83c3&&(_0x4f83c3=_0x470575);}_0x50b0e5!==0x1/0x0&&_0x4f83c3!==0x1/0x0&&(_0x37e8f6={'left':_0x50b0e5,'top':_0x4f83c3});}let _0x532fbb=new Map();if(!_0x1a3c30){for(let _0x2d5ed3 of _0x395a37)_0x532fbb[_0x5c4003(0x26e)](_0x2d5ed3[_0x5c4003(0x10e)],_0xf6c8c4());}let _0x2d8fe0=[],_0x275ad6=[];for(let _0x2cde14 of _0x395a37){let {drawingId:_0x522667,transform:_0x46ab9e,sheetTransform:_0x54b870}=_0x2cde14;if(!_0x46ab9e||!_0x54b870)continue;let _0x38b2d8=this['_updateTransform']({'transform':_0x46ab9e,'sheetTransform':_0x54b870},{'skeleton':_0x4bd039,'range':_0x39e841},{'skeleton':_0x1b1742,'range':_0x177c68},_0x37e8f6);if(_0x1a3c30){let {redos:_0x2dfa18,undos:_0xbb6c0}=this['_generateCutPasteMutations']({'fromUnitId':_0x8d289b,'fromSubUnitId':_0x18a28f,'toUnitId':_0x135678,'toSubUnitId':_0x5f1298,'drawing':_0x2cde14,'newTransforms':_0x38b2d8});_0x2d8fe0[_0x5c4003(0x311)](..._0x2dfa18),_0x275ad6[_0x5c4003(0x311)](..._0xbb6c0);continue;}let {redos:_0x1f1b41,undos:_0x2fbdbc}=this[_0x5c4003(0xd9)]({'toUnitId':_0x135678,'toSubUnitId':_0x5f1298,'drawing':_0x2cde14,'newTransforms':_0x38b2d8,'newDrawingId':_0x532fbb[_0x5c4003(0x2da)](_0x522667),'idMap':_0x532fbb});_0x2d8fe0[_0x5c4003(0x311)](..._0x1f1b41),_0x275ad6[_0x5c4003(0x311)](..._0x2fbdbc);}return{'redos':_0x2d8fe0,'undos':_0x275ad6};}[_0xcb6cbb(0x15e)](_0x284aa2){const _0x23b4e3=_0xcb6cbb;let {fromUnitId:_0xb87577,fromSubUnitId:_0x322923,toUnitId:_0x5967ca,toSubUnitId:_0x5efa5e,drawing:_0x4c26e9,newTransforms:_0x30ec5a}=_0x284aa2,_0x4119d4={..._0x4c26e9,'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'transform':_0x30ec5a[_0x23b4e3(0xce)],'sheetTransform':_0x30ec5a[_0x23b4e3(0x31a)]};if(_0x5967ca===_0xb87577&&_0x5efa5e===_0x322923){let {redo:_0x42094e,undo:_0x3028b3,objects:_0x544681}=this[_0x23b4e3(0x1b7)][_0x23b4e3(0xf2)]([_0x4119d4]);return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x112)],'op':_0x42094e,'objects':_0x544681}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x112)],'op':_0x3028b3,'objects':_0x544681}}]};}else{let _0x54abea=this[_0x23b4e3(0x1b7)][_0x23b4e3(0x1b1)]([_0x4c26e9]),_0x14eef5=this[_0x23b4e3(0x1b7)]['getBatchAddOp']([_0x4119d4]),_0x1da10c=this[_0x23b4e3(0x26f)][_0x23b4e3(0x2c4)](_0x4c26e9[_0x23b4e3(0x241)],_0x4c26e9['subUnitId'],_0x4c26e9[_0x23b4e3(0x10e)]);if(!_0x1da10c)return{'redos':[],'undos':[]};let _0x2cfae5=_0x1da10c[_0x23b4e3(0xb7)](),_0x15d6ab=JSON[_0x23b4e3(0x226)](JSON[_0x23b4e3(0x276)](_0x1da10c[_0x23b4e3(0x113)]()));return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'type':_0x11752e[_0x23b4e3(0x29c)],'op':_0x54abea[_0x23b4e3(0x220)],'objects':_0x54abea[_0x23b4e3(0x13d)]}},{'id':_0x1fd47e['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'shapeId':_0x4c26e9['drawingId']}},{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e['INSERT'],'op':_0x14eef5[_0x23b4e3(0x220)],'objects':_0x14eef5[_0x23b4e3(0x13d)]}},{'id':_0x314d59['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'shapeId':_0x4c26e9['drawingId'],'shapeType':_0x2cfae5,'shapeData':_0x15d6ab}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'type':_0x11752e['INSERT'],'op':_0x54abea[_0x23b4e3(0x1d2)],'objects':_0x54abea[_0x23b4e3(0x13d)]}},{'id':_0x314d59['id'],'params':{'unitId':_0xb87577,'subUnitId':_0x322923,'shapeId':_0x4c26e9[_0x23b4e3(0x10e)],'shapeType':_0x2cfae5,'shapeData':_0x15d6ab}},{'id':_0x555349['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'type':_0x11752e[_0x23b4e3(0x29c)],'op':_0x14eef5['undo'],'objects':_0x14eef5['objects']}},{'id':_0x1fd47e['id'],'params':{'unitId':_0x5967ca,'subUnitId':_0x5efa5e,'shapeId':_0x4c26e9[_0x23b4e3(0x10e)]}}]};}}[_0xcb6cbb(0xd9)](_0x3c5a64){const _0x3fd7ef=_0xcb6cbb;let {toUnitId:_0x570305,toSubUnitId:_0x55492a,drawing:_0x4e600e,newTransforms:_0x5e6ad3,newDrawingId:_0x973cb6,idMap:_0x285592}=_0x3c5a64,_0x419fbd={..._0x4e600e,'unitId':_0x570305,'subUnitId':_0x55492a,'drawingId':_0x973cb6,'transform':_0x5e6ad3[_0x3fd7ef(0xce)],'sheetTransform':_0x5e6ad3[_0x3fd7ef(0x31a)]},{redo:_0x1332df,undo:_0x5e99e9,objects:_0x1dbbaa}=this[_0x3fd7ef(0x1b7)][_0x3fd7ef(0x2bf)]([_0x419fbd]),_0x145e03=this[_0x3fd7ef(0x26f)][_0x3fd7ef(0x2c4)](_0x4e600e[_0x3fd7ef(0x241)],_0x4e600e['subUnitId'],_0x4e600e[_0x3fd7ef(0x10e)]);if(!_0x145e03)return{'redos':[],'undos':[]};let _0x214edd=_0x145e03[_0x3fd7ef(0xb7)](),_0x4ad627=JSON['parse'](JSON[_0x3fd7ef(0x276)](_0x145e03['getShapeData']()));if(_0x4ad627[_0x3fd7ef(0x12f)]){var _0x16ad7f,_0x5bf8d4;let _0x275075=(_0x16ad7f=_0x4ad627[_0x3fd7ef(0x12f)]['from'])==null?void 0x0:_0x16ad7f[_0x3fd7ef(0x124)],_0x55d468=(_0x5bf8d4=_0x4ad627[_0x3fd7ef(0x12f)]['to'])==null?void 0x0:_0x5bf8d4['shapeId'],_0x34fb83=!_0x275075||_0x285592[_0x3fd7ef(0x1cf)](_0x275075),_0x412d22=!_0x55d468||_0x285592[_0x3fd7ef(0x1cf)](_0x55d468);_0x34fb83&&_0x275075&&_0x4ad627[_0x3fd7ef(0x12f)]['from']?_0x4ad627[_0x3fd7ef(0x12f)]['from']={..._0x4ad627['relation'][_0x3fd7ef(0x30c)],'shapeId':_0x285592[_0x3fd7ef(0x2da)](_0x275075)}:_0x4ad627['relation'][_0x3fd7ef(0x30c)]=void 0x0,_0x412d22&&_0x55d468&&_0x4ad627['relation']['to']?_0x4ad627[_0x3fd7ef(0x12f)]['to']={..._0x4ad627['relation']['to'],'shapeId':_0x285592[_0x3fd7ef(0x2da)](_0x55d468)}:_0x4ad627[_0x3fd7ef(0x12f)]['to']=void 0x0;}return{'redos':[{'id':_0x555349['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'type':_0x11752e[_0x3fd7ef(0x101)],'op':_0x1332df,'objects':_0x1dbbaa}},{'id':_0x314d59['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'shapeId':_0x973cb6,'shapeType':_0x214edd,'shapeData':_0x4ad627}}],'undos':[{'id':_0x555349['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'type':_0x11752e[_0x3fd7ef(0x29c)],'op':_0x5e99e9,'objects':_0x1dbbaa}},{'id':_0x1fd47e['id'],'params':{'unitId':_0x570305,'subUnitId':_0x55492a,'shapeId':_0x973cb6}}]};}[_0xcb6cbb(0xf7)](_0x1f28e7,_0x3602b9,_0x4232cb,_0x55b693){const _0x300bcb=_0xcb6cbb;var _0x270cb4;let {range:_0x3352d9,skeleton:_0x18a067}=_0x3602b9,{range:_0x5de3f7,skeleton:_0x6f4068}=_0x4232cb,{transform:_0x1b677c,sheetTransform:_0x5790a5}=_0x1f28e7,_0x1bad47={..._0x1b677c};if(_0x3352d9){let _0x4788b1=_0x2cf26d(_0x18a067,_0x3352d9),_0x5c5051=_0x2cf26d(_0x6f4068,_0x5de3f7);if(_0x4788b1&&_0x5c5051){var _0x40f34a,_0x9e936a;let _0x531567=_0x5c5051[_0x300bcb(0x28f)]-_0x4788b1[_0x300bcb(0x28f)],_0x5ce4aa=_0x5c5051[_0x300bcb(0x28b)]-_0x4788b1[_0x300bcb(0x28b)];_0x1bad47[_0x300bcb(0x1db)]=((_0x40f34a=_0x1bad47['left'])==null?0x0:_0x40f34a)+_0x531567,_0x1bad47[_0x300bcb(0x163)]=((_0x9e936a=_0x1bad47[_0x300bcb(0x163)])==null?0x0:_0x9e936a)+_0x5ce4aa;}}else{let _0x521d9a=_0x2cf26d(_0x6f4068,_0x5de3f7);if(_0x55b693&&_0x521d9a){var _0xe91523,_0x36bd09;let _0xea04e3=((_0xe91523=_0x1bad47[_0x300bcb(0x1db)])==null?0x0:_0xe91523)-_0x55b693['left'],_0x391b98=((_0x36bd09=_0x1bad47[_0x300bcb(0x163)])==null?0x0:_0x36bd09)-_0x55b693[_0x300bcb(0x163)];_0x1bad47['left']=_0x521d9a[_0x300bcb(0x28f)]+_0xea04e3,_0x1bad47[_0x300bcb(0x163)]=_0x521d9a[_0x300bcb(0x28b)]+_0x391b98;}else _0x1bad47['left']=_0x521d9a==null?void 0x0:_0x521d9a[_0x300bcb(0x28f)],_0x1bad47[_0x300bcb(0x163)]=_0x521d9a==null?void 0x0:_0x521d9a[_0x300bcb(0x28b)];}return{'transform':_0x1bad47,'sheetTransform':(_0x270cb4=_0x43002e(_0x1bad47,_0x6f4068))==null?_0x5790a5:_0x270cb4};}};Fr=Z([X(0x0,_0x25d6be(_0x414a67)),X(0x1,_0x25d6be(_0x165587)),X(0x2,_0x25d6be(_0x2a99b6)),X(0x3,_0x25d6be(_0x231cef)),X(0x4,_0x25d6be(_0x47dae5))],Fr);var Ir=class extends _0x30d1c4{constructor(_0x16a80c,_0x2651e4){const _0x29efc0=_0xcb6cbb;super(_0x16a80c,_0x2651e4),Y(this,_0x29efc0(0x252),null),Y(this,'_index',null),Y(this,_0x29efc0(0x2aa),null),Y(this,'_subUnitId',null),Y(this,'_isStartConnectorPoint',!0x1),_0x2651e4&&this['setShapeProps'](_0x2651e4);}['getDrawingSearch'](){const _0x36247d=_0xcb6cbb;return{'unitId':this[_0x36247d(0x2aa)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x36247d(0x252)]};}['setShapeProps'](_0x28890a){const _0x250f4b=_0xcb6cbb;_0x28890a[_0x250f4b(0x124)]!==void 0x0&&(this[_0x250f4b(0x252)]=_0x28890a[_0x250f4b(0x124)]),_0x28890a[_0x250f4b(0x241)]!==void 0x0&&(this[_0x250f4b(0x2aa)]=_0x28890a[_0x250f4b(0x241)]),_0x28890a[_0x250f4b(0x281)]!==void 0x0&&(this[_0x250f4b(0x13b)]=_0x28890a[_0x250f4b(0x281)]),_0x28890a[_0x250f4b(0x10f)]!==void 0x0&&(this[_0x250f4b(0x231)]=_0x28890a[_0x250f4b(0x10f)]),this[_0x250f4b(0xdd)]({'width':_0x28890a['width'],'height':_0x28890a[_0x250f4b(0x123)]});}[_0xcb6cbb(0x2d9)](_0x5d1942){const _0x398b11=_0xcb6cbb;_0x38d822[_0x398b11(0x264)](_0x5d1942,{'radius':_0x3cbe53[_0x398b11(0x27a)],'fill':_0x3cbe53[_0x398b11(0x2a5)],'stroke':_0x3cbe53[_0x398b11(0x206)],'strokeWidth':_0x3cbe53[_0x398b11(0xe9)],'evented':!0x0});}};function _0x10e2(){const _0x908c05=['FlipVerticalIcon','renderDrawingShape','setShapeData','width','shape-adjust-point-','COMMAND','getOwnPropertyDescriptor','_shapeEditPanelVersion','srcRect','activeAnObject','isDrawingObject','CUT','sheet.image-clip.shape-picker.component','clear','cxnPointStroke','text','_hasReset','isHitLine','_baseShapeLeft','cos','_currentUniverService','_addShapeConnectorHandlerObject','dispose','sheet.command.menu-insert-shape','_applyFormulaAutoFitSize','_initSelection','addObject','classType','_groupCopyPasteController','_updateSrcRectByTransform','slice','adjHandleStroke','decorate','_executeResizeCommand','object','12690IErqir','scale','_baseDrawingRect','1020432CmkDns','horizontal','redo','sheets-shape-ui.flipHorizontal','_drawingRenderService','_loadAndSetImage','_sheetSkeletonService','backward','parse','SHAPE_TEXT','group','PRINTING_COMPONENT_COLLECT','fillType','univer-box-border\x20univer-px-4\x20univer-text-sm','computeConnectorResizeLayout','name','marginTop','unsubscribe','some','_isStartConnectorPoint','onRendered','close','sheetViewStartColumn','applyPoint','_isConnecting','hidden','onload','getCurrentLastSelection','TOP','sheets-shape-ui.imagePanel.crop.shape','getValue','getDrawingSearch','pipe','_univerInstanceService','targetShapeId','unitId','getInverseCoord','_props','getCurrentScrollState','setFillImage','registerClipDelegate','setOnSavingEditorData','_injector','_config','getTransformerByCreate','clearAdjustControls','getStartConnectInfo','params','onPointerUp$','dataModel','_moveConnectorWithShape','gradientEndColor','_shapeId','add$','_menuManagerService','setConfig','#4285f4','focusDrawing','packageName','sheet.menu.shape.flip-vertical','call','isHighlighted','_getShapeInfo','length','_copyInfo','_generatePasteMutations','adjustValues','2937qQsBKW','ancestorTransform','reverse','drawWith','Line','_getImagePrstGeom','restore','setPrstGeom','disableShapeOption','forEach','getShapeTextRect','buildClipPath','getSheetBySheetId','set','_shapeService','_initMenu','transformForAngle','_getOrCreateShapeModel','order','value','_adjName','stringify','_baseShapeTop','prstGeomAdjValues','shapeModel','cxnPointRadius','type','onTransformChange$','_drawingType','changing$','localeService','_lastEditingShapeKey','subUnitId','Path','getInterceptPoints','getActiveSheet','setEditing','registerRenderModule','_sheetsShapeService','_calculateFreeEndpointAngle','end','version','startY','setShouldShowAdjust','_formulaAnimation','_handleBasicShapeUpdateConnectorLineShape','startX','_handleFreeEndpointPointerUp','onPointerMove$','SolidLine','_currentScene','_draggingConnectorId','_configService','copyType','getImageSourceCache','UNIVER_SHEET','offsetY','_insertShapes','executeCommand','REMOVE','VIEW_MAIN_LEFT_TOP','keys','permissionCheckWithoutRange','isInGroup','_commandExecutedListener','_attachConnectorObjectEvent','73136hQbGTJ','_baseShapeWidth','cxnPointFill','delete','_registerComponents','_registerDrawingFocusChangeHandler','_getShapeAdjustInfosById','_unitId','getDrawingOKey','extraProps','string','_setTransForm','URL','lineType','symbol','axisAlignSheetTransform','refreshAdjustControls','filter','_transform','blockExecuteWithoutPermission','_editingParams$','_getConnectionSiteAngle','_cxtHandlerPointerUp','SHEET_SHAPE_UI_PLUGIN','addImageSourceCache','adjName','clip-','_initPermission','getBatchAddOp','getActualSize','_activeShapeId','_connectionSiteObjects','stopPropagation','getShapeModel','setPresentation','initShapePopupMenu','panel','GROUP','DRAWING','sqrt','setCanUseShapeClip','pushUndoRedo','getConnectionSiteList','_shapeFormulaService','sheets-shape-ui.objectListPanel.title','DEFAULT_PASTE','clone','getZoomRatio','sin','src','SheetShapeTextEditorContainer','disposeWithMe','sectionFloating','getBasicShapeRelation','_draw','get','prstGeom','_releaseRenderCache','with','_getDrawingRect','1402446hTIRfh','getState','endArrow','DRAWING_GROUP','_isStartAdjusting','VIEW_MAIN_LEFT','find','fill','sheets-shape-ui.config','_shapeRenderController','getFocusDrawings','_context','_openShapeEditPanel','sheets-shape-ui','removeLinePoints','initTransformer','getDrawingVisible','isArray','_targetShapeId','_updateImageAdjValues','#FFFFFF','getEndConnectInfo','_activeAdjustInfo','_clearControls','subscribe','reduce','sheetViewStartRow','endConnectionDetection','fontSize','isRichText','shapeKey','subscribeEvent','_shapeUpdateListener','_commandService','description','sheets-shape-ui.objectListPanel.open','oKey','remove$','_activeShapeInfo','isRenderLinePointsMode','offsetX','getDrawingEffectBounds','_disposePopups','20IsWKqU','_cxnIndex','from','lineShapeId','#1a73e8','connection-site-','DRAWING_TABLE','push','shapeType','translateWithPrecision','_initCopyPaste','setShapeProps','_init','_imageIoService','_initialize','_rerouteConnectorLine','sheetTransform','rotation','disableObjectsEvent','enableObjectsEvent','_getImageDrawingInfo','angle','Large','save','sheets-shape-ui.permission.editErr','sheets-shape-ui.formatShape','isRender','_transformCalculateSrcRect','title','render','setCursor','_initSheetChange','getShapeType','beginPath','UNIVER_DOC','highlighted','calcAdjValues','constructor','fillImageSource','_isDrawingShapePointDown','238CAsHEs','sheets-shape-ui.flipVertical','table','OPERATION','setSrcRect','_getZoomRatio','VIEW_MAIN_TOP','getAdjustValueByName','cxnIndex','interceptor','onPointerDown$','div','clipTop','FlipHorizontalIcon','interceptCommand','transform','fillImageSourceType','_initEditingParams','indexOf','LEFT','setPrstGeomAdjValues','getShapeDataById','onStarting','_currentConnectionTarget','ShapeIcon','@univerjs-pro/sheets-shape-ui','_generateCopyPasteMutations','setAdjustValueByName','prototype','syncExecuteCommand','transformByState','getTransformer','#bcbcbc','presentation','multiply','_registerIcons','_isImagePointerDown','clip-adj-','_executeConnectedRouteConnectionCommand','getScene','_registerImageShapeClipDelegate','ObjectLayersIcon','cxnPointStrokeWidth','_iconManager','changeEnd$','DRAWING_SMART_ART','focus$','_drawingAddListener','_clipService','adjHandleSize','_isHighlighted','getBatchUpdateOp','_initEvents','_getShapeAdjustPointListById','_popupMenuListener','_activeShapeModel','_updateTransform','viewBound','image','translate','register','ang','isEditing','_activeShapeAdjustPointList','unregister','2XVbgzd','INSERT','wrapStrategy','updateDocumentDataMargin','_imageShapeClipController','_formulaKey','computeStraightConnectorLayout','_handleFreeEndpointMove','getSelectedObjectMap','_createCopyInfoByRange','resize','clip','activeSheet$','sheet.command.update-shape-data','drawingId','isStartConnectorPoint','contentVerticalOffset','getAdjustNames','UPDATE','getShapeData','getObjectIncludeInGroup','canvas','_initCommands','pluginName','point','_updateAdjustControlPositions','clearControl$','SELECTOR','skeleton','getSkeletonParam','getImage','getUnitType','getConnectionInfo','updateConnectionDetection','open','height','shapeId','_sheetClipboardService','_createControls','getDrawingData','debounceRefreshControls','refreshFormulaPresentation','localToWorld','defineProperty','sheet.shape.object-list.panel','changeStart$','_closeShapeEditPanel','relation','BUTTON','_attachAdjustEvent','_sheetShapeAdjustController','getRenderUnitById','refreshTransform','parent','getBentTypeFromPoints','sheets-shape-ui.insertShape','formulaBinding','_baseTop','_resetState','_subUnitId','getDrawingPoints','objects','addClipboardHook','DRAWING_VIDEO','beforeCommandExecuted','worldPoints','sheet.operation.open-sheet-shape-format-panel','_activeAdjustPointList','_clearShapeConnectorHandlerObjects','_urlImageService','getCurrentSkeleton','_handleConnectorPointerUp','formulaPresentation','_sheetPermissionCheckController','getDrawingOrder','default','PictureFill','_baseHeight','onReady','_contextService','_sheetCanvasPopManagerService','_updateShapeAdjustControls','next','updateShapeFillImage','_renderManagerService','Image','doc.image-clip.shape-picker.component','connector-handler-','_localeService','_drawRichText','getShapeTypeById','includes','refreshShapeFillImage','_activeImageId','_generateCutPasteMutations','OTHERS','sheet.menu.shape.flip-horizontal','_shapeTextEditingService','trim','top','_formulaShapes','onCommandExecuted','_addShapeConnectorHandlerObjects','sectionCanvas','top-center','getConnectorLinePoints','_componentManager','_cxtHandlerPointerMove','flipX','getDrawingByParam','_registerFocusChangeHandler','_highlightedSiteIndex','contentHeight','sheet.shape.edit.panel','DRAWING_IMAGE','clipByShape','859923kJNssL','iterator','error','sheet.shape.floating-toolbar','_registerGroupFeaturePasteHook','_connectorObjects','_adjHandlerPointerUp','_sidebarDisposable','_baseWidth','worldRect','createControl$','_executeConnectionCommand','custom','getUnitId','chart','worldPoint','_sheetPrintInterceptorService','doc','shape','getUnit','sheet.shape.text.float-menu','strokeWidth','shapeData','presentationChanged$','getConnectionRelation','onSteady','_addControl','_drawShapeText','_initializedShapePopupMenu','_adjHandlerPointerMove','205892BIwznn','Rect','CROSSHAIR','isHorizontal','_clearConnectionSites','_drawRichTextLayer','_baseShapeHeight','DRAWING_UNIT','VIEW_MAIN','_registerMoveHandler','getParent','getShapeTextData','_sidebarService','17272LPslNd','flipY','_handleConnectedEndpointPointerUp','getObject','animationEnabled','getAdjustInfoByName','_clearShapeAdjustControls','_baseLeft','_isOpenedShapeEditPanel','_addShapeAdjustControl','changeShapeType','_getSceneAndTransformerByDrawingSearch','abs','editingParams$','_drawingManagerService','_registerDrawingMoveHandler','video','shapeText','getBatchRemoveOp','_sheetDrawingShapeRenderController','_drawSimpleText','_executeConnectedRouteResizeCommand','updateLinePoints','_sheetBasicShapeConnectionPointController','_sheetDrawingService','_showConnectionSites','add','resourceCollector','create','_disposed','_activeTargetShapeId','DRAWING_DOM','getSkeleton','_insertingShapeKeys','map','drawingType','unit','viewportScrollX','_isShouldShowDrawingShapeAdjust','stroke','values','entries','getMatrix','smartArt','shape-text-','index','_reset','DRAWING_SHAPE','has','_createShapePopupMenu','data','undo','dom','_onSavingEditorData$','drawing.operation.set-drawing-active','updateContext','_sheetInterceptorService','_createShapeAdjustControls','composeMatrix','complete','left','sheets-shape-text-','makeDirty','update$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','viewportScrollY','size','getCurrentTypeOfUnit$','FromArray','intercept','_loadShapePictureFill','getDrawingEditable','selectable','getEditing','_shapes','setContextValue','pick','_findShapeAtPoint','_getScrollInfo','_getConnectPointInfo','isLineShape','asObservable','_clearPopups','_focusedDrawings','getRealBound','getPresentation','visible','scene','setHighlighted'];_0x10e2=function(){return _0x908c05;};return _0x10e2();}let Lr=class extends _0x444b76{constructor(_0x1849c3,_0x4245f8,_0x258af3,_0x16eaa8,_0x52e14d,_0x376dfb,_0x157c34,_0x2a7a59){const _0x51ccc3=_0xcb6cbb;super(),this[_0x51ccc3(0x2ea)]=_0x1849c3,this[_0x51ccc3(0x300)]=_0x4245f8,this['_renderManagerService']=_0x258af3,this[_0x51ccc3(0x1ad)]=_0x16eaa8,this[_0x51ccc3(0x23f)]=_0x52e14d,this[_0x51ccc3(0x287)]=_0x376dfb,this[_0x51ccc3(0x132)]=_0x157c34,this[_0x51ccc3(0x1b6)]=_0x2a7a59,Y(this,_0x51ccc3(0x2c1),void 0x0),Y(this,_0x51ccc3(0x2aa),void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,'_connectorObjects',[]),Y(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x51ccc3(0xf6),void 0x0),Y(this,_0x51ccc3(0x236),!0x1),Y(this,_0x51ccc3(0xbe),!0x1),Y(this,_0x51ccc3(0x208),!0x1),Y(this,_0x51ccc3(0x16b),void 0x0),Y(this,_0x51ccc3(0x2b9),void 0x0),Y(this,_0x51ccc3(0xd6),null),this[_0x51ccc3(0x318)]();}[_0xcb6cbb(0x318)](){const _0x4e362f=_0xcb6cbb;this[_0x4e362f(0x2a8)](),this[_0x4e362f(0x1ae)]();}['_getDrawingRect'](){const _0x3c0830=_0xcb6cbb;if(!this[_0x3c0830(0x2aa)]||!this['_subUnitId']||!this[_0x3c0830(0x2c1)])return;let _0x546881={'unitId':this[_0x3c0830(0x2aa)],'subUnitId':this[_0x3c0830(0x13b)],'drawingId':this[_0x3c0830(0x2c1)]},{transform:_0x792dd0}=this['_drawingManagerService'][_0x3c0830(0x16d)](_0x546881);if(_0x792dd0)return{'left':_0x792dd0['left']||0x0,'top':_0x792dd0['top']||0x0,'width':_0x792dd0['width']||0x0,'height':_0x792dd0['height']||0x0,'flipX':_0x792dd0['flipX']||!0x1,'flipY':_0x792dd0[_0x3c0830(0x1a0)]||!0x1,'angle':_0x792dd0[_0x3c0830(0x31f)]};}[_0xcb6cbb(0x166)](){const _0x26f78b=_0xcb6cbb;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0x26f78b(0x2c1)]===void 0x0)return;let _0x1858f9=this[_0x26f78b(0x154)]['getRenderUnitById'](this[_0x26f78b(0x2aa)]);if(!_0x1858f9||!_0x1858f9[_0x26f78b(0x2dd)](_0x48c126)['getCurrentSkeleton']())return;let {scene:_0x191e2b}=_0x1858f9,_0x34559e=this[_0x26f78b(0x2de)]();if(!_0x34559e)return;let _0x28bc32=this['_sheetsShapeService']['getShapeModel'](this[_0x26f78b(0x2aa)],this['_subUnitId'],this[_0x26f78b(0x2c1)]);if(!_0x28bc32||!_0x286130(_0x28bc32[_0x26f78b(0xb7)]()))return;let _0x402553=_0x28bc32['getConnectorLinePoints']();if(_0x402553[_0x26f78b(0x25d)]<0x2)return;let _0x22fadc=new _0x4d85c6(_0x34559e),_0x54d46c=_0x402553[0x0],_0x332b35=_0x402553[_0x402553[_0x26f78b(0x25d)]-0x1],_0xb23eed=_0x22fadc[_0x26f78b(0x12a)](_0x54d46c),_0x3efb80=_0x22fadc[_0x26f78b(0x12a)](_0x332b35);this[_0x26f78b(0x20d)](_0x191e2b,{..._0xb23eed},!0x0),this[_0x26f78b(0x20d)](_0x191e2b,{..._0x3efb80},!0x1);}['_addShapeConnectorHandlerObject'](_0x25a96d,_0x3f120b,_0x22cf74){const _0x26cf11=_0xcb6cbb;if(this[_0x26cf11(0x2c1)]===void 0x0||this[_0x26cf11(0x2aa)]===void 0x0||this[_0x26cf11(0x13b)]===void 0x0)return;let _0x52de05=_0x26cf11(0x157)+this['_unitId']+'-'+this[_0x26cf11(0x13b)]+'-'+this[_0x26cf11(0x2c1)]+'-'+(_0x22cf74?'start':_0x26cf11(0x289)),_0x5abbbd=_0x25a96d['getObjectIncludeInGroup'](_0x52de05);if(_0x5abbbd){_0x5abbbd[_0x26cf11(0xdd)]({'left':_0x3f120b['x']-_0x3cbe53['cxnPointRadius'],'top':_0x3f120b['y']-_0x3cbe53['cxnPointRadius']});return;}let _0x3a5a2d=new Ir(_0x52de05,{'left':_0x3f120b['x']-_0x3cbe53[_0x26cf11(0x27a)],'top':_0x3f120b['y']-_0x3cbe53[_0x26cf11(0x27a)],'shapeId':this[_0x26cf11(0x2c1)],'unitId':this[_0x26cf11(0x2aa)],'subUnitId':this[_0x26cf11(0x13b)],'isStartConnectorPoint':_0x22cf74,'width':_0x3cbe53['cxnPointRadius']*0x2,'height':_0x3cbe53[_0x26cf11(0x27a)]*0x2,'zIndex':_0x338629+0x1,'evented':!0x0});this['_connectorObjects'][_0x26cf11(0x311)](_0x3a5a2d),this[_0x26cf11(0x2a2)](_0x3a5a2d,_0x25a96d,_0x22cf74),_0x25a96d[_0x26cf11(0x212)](_0x3a5a2d,_0x338629+0x1);}[_0xcb6cbb(0x1ed)](_0x511683,_0x26d793){const _0x485a0f=_0xcb6cbb;var _0x5cb1dd;let _0x57eefb={'x':0x0,'y':0x0};if(!_0x511683||!_0x26d793)return _0x57eefb;let _0x3e2be9=this[_0x485a0f(0x154)][_0x485a0f(0x133)](_0x511683);if(!_0x3e2be9||!_0x3e2be9[_0x485a0f(0x2dd)](_0x48c126)[_0x485a0f(0x1bf)](_0x26d793))return _0x57eefb;let _0x425828=_0x3e2be9['with'](_0x3e3bbb),_0x2d4408=_0x425828==null?void 0x0:_0x425828[_0x485a0f(0x244)]();if(!_0x2d4408)return _0x57eefb;let _0x2fa344=(_0x5cb1dd=this[_0x485a0f(0x23f)][_0x485a0f(0x187)](_0x511683))==null?void 0x0:_0x5cb1dd[_0x485a0f(0x26d)](_0x26d793);if(!_0x2fa344)return _0x57eefb;let _0x3b7449=_0x3dd685(_0x2d4408[_0x485a0f(0x2f9)],_0x2d4408[_0x485a0f(0x234)],_0x3e2be9['scene'],_0x2fa344);return _0x3b7449?{'x':_0x3b7449[_0x485a0f(0x1c4)],'y':_0x3b7449[_0x485a0f(0x1e0)]}:_0x57eefb;}[_0xcb6cbb(0xc4)](_0x369166,_0x251817){const _0x4886fb=_0xcb6cbb;var _0x4073fe,_0x37e40f;let _0x13f04f=(_0x4073fe=this[_0x4886fb(0x23f)]['getUnit'](_0x369166))==null?void 0x0:_0x4073fe[_0x4886fb(0x26d)](_0x251817);return(_0x37e40f=_0x13f04f==null?void 0x0:_0x13f04f['getZoomRatio']())==null?0x1:_0x37e40f;}[_0xcb6cbb(0x147)](_0x155f37,_0x2396ed,_0x3aa0da,_0xd4a3d5,_0xc9ce1c){const _0x1a8c91=_0xcb6cbb;this[_0x1a8c91(0x16b)][_0x1a8c91(0x22f)](),this[_0x1a8c91(0x2b9)][_0x1a8c91(0x22f)](),this[_0x1a8c91(0x132)][_0x1a8c91(0x2b3)]();let _0x218290=this[_0x1a8c91(0xd6)];this[_0x1a8c91(0x1b6)][_0x1a8c91(0x2fa)]();let _0x105e1d=this['_getScrollInfo'](this[_0x1a8c91(0x2aa)],this[_0x1a8c91(0x13b)]),_0x5caf14=this[_0x1a8c91(0xc4)](this[_0x1a8c91(0x2aa)],this['_subUnitId']),_0x3f835d={'x':_0x3aa0da[_0x1a8c91(0x307)]/_0x5caf14+_0x105e1d['x'],'y':_0x3aa0da[_0x1a8c91(0x299)]/_0x5caf14+_0x105e1d['y']},_0xd383a1=_0x218290?_0x218290[_0x1a8c91(0x183)]:_0x3f835d,_0x7d6dac=_0xd4a3d5?this[_0x1a8c91(0xf6)][_0x1a8c91(0x2f4)]():this[_0x1a8c91(0xf6)][_0x1a8c91(0x24c)](),_0x395173=this[_0x1a8c91(0xf6)][_0x1a8c91(0xb7)]();_0x7d6dac?this[_0x1a8c91(0x1a1)](_0x7d6dac,_0xd383a1,_0xd4a3d5,_0x218290,_0xc9ce1c):this[_0x1a8c91(0x290)](_0x2396ed,_0xd383a1,_0xd4a3d5,_0x218290,_0xc9ce1c,_0x395173),this[_0x1a8c91(0x236)]=!0x1,this['_hasReset']=!0x1,this[_0x1a8c91(0xd6)]=null,_0x155f37[_0x1a8c91(0x31d)]();}[_0xcb6cbb(0x290)](_0xe23237,_0xec6e33,_0x257783,_0x147834,_0x270ee4,_0x51a86b){const _0x707b40=_0xcb6cbb;let _0x25444a=_0x51a86b===_0x4c4784['Line']||_0x51a86b===_0x4c4784['StraightConnector1'],_0x4d9463=_0x257783?_0xec6e33:_0xe23237,_0x2ba413=_0x257783?_0xe23237:_0xec6e33,_0x23e8b7=this['_activeShapeModel'][_0x707b40(0x169)](),_0x10cfc2=_0x5b9030(this[_0x707b40(0xf6)][_0x707b40(0xb7)]()),_0x4d70ff=_0x4d85c6[_0x707b40(0x136)](_0x23e8b7,_0x10cfc2),_0x404b26=_0x25444a?_0x4d85c6[_0x707b40(0x106)](_0x4d9463,_0x2ba413):_0x4d85c6[_0x707b40(0x22c)](_0xe23237,_0xec6e33,_0x257783,_0x4d70ff);_0x147834?this['_executeConnectionCommand'](_0x404b26,_0x147834,_0x257783,_0x270ee4):this[_0x707b40(0x219)](_0x404b26,_0x270ee4);}[_0xcb6cbb(0x1a1)](_0xb15545,_0xca3800,_0x15b722,_0x4bc3f9,_0x1ec190){const _0xb7614a=_0xcb6cbb;let _0x3db9f9=this[_0xb7614a(0x1ee)](_0xb15545);if(!_0x3db9f9)return;let _0x198265=_0x4bc3f9?_0x4bc3f9['angle']:this[_0xb7614a(0x288)](_0x3db9f9['point'],_0xca3800),_0x95c946;if(_0x4bc3f9){let _0x208958=this[_0xb7614a(0x1ad)][_0xb7614a(0x16d)]({'unitId':_0x4bc3f9[_0xb7614a(0x241)],'subUnitId':_0x4bc3f9[_0xb7614a(0x281)],'drawingId':_0x4bc3f9[_0xb7614a(0x124)]});if(_0x208958!=null&&_0x208958[_0xb7614a(0xce)]){let {left:_0x2368ff=0x0,top:_0x521bac=0x0,width:_0x3ed718=0x0,height:_0x34fbb5=0x0,angle:_0x3c5e31}=_0x208958[_0xb7614a(0xce)];_0x95c946=_0x202bf2({'left':_0x2368ff,'top':_0x521bac,'width':_0x3ed718,'height':_0x34fbb5},_0x3c5e31||0x0);}else _0x95c946={'left':_0xca3800['x'],'top':_0xca3800['y'],'width':0x0,'height':0x0};}else _0x95c946={'left':_0xca3800['x'],'top':_0xca3800['y'],'width':0x0,'height':0x0};let _0x30e5ed={'point':_0xca3800,'angle':_0x198265,'bounds':_0x95c946},_0x2923ef=_0x15b722?_0x30e5ed:_0x3db9f9,_0x58803a=_0x15b722?_0x3db9f9:_0x30e5ed,_0x25dbdb=this['_activeShapeModel'][_0xb7614a(0xb7)](),_0x5c24bb=_0x502b11(_0x2923ef,_0x58803a,_0x25dbdb);this[_0xb7614a(0xf6)]['removeLinePoints']();let _0x19885c=_0x5d79b3(_0x5c24bb,_0x25dbdb);_0x4bc3f9?this[_0xb7614a(0xe5)](_0x19885c,_0x4bc3f9,_0xb15545,_0x15b722,_0x1ec190):this[_0xb7614a(0x1b4)](_0x19885c,_0xb15545,_0x15b722,_0x1ec190);}[_0xcb6cbb(0x17f)](_0x2a3fbc,_0x5f5a3c,_0x328e5a,_0x33c836){const _0x5980e1=_0xcb6cbb;let _0x36822a=this[_0x5980e1(0xf6)]['getShapeData']()[_0x5980e1(0x12f)],_0x41a180={..._0x36822a},_0x10f2bf={'shapeId':_0x5f5a3c['shapeId'],'cxnIndex':_0x5f5a3c[_0x5980e1(0xc7)]};_0x328e5a?_0x41a180[_0x5980e1(0x30c)]=_0x10f2bf:_0x41a180['to']=_0x10f2bf;let _0x200afe=this[_0x5980e1(0xf6)][_0x5980e1(0xb7)](),_0x425bc3=_0x5d79b3(_0x2a3fbc[_0x5980e1(0x141)],_0x200afe),_0x4dd4d6={'unitId':this[_0x5980e1(0x2aa)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5980e1(0x2c1)],'width':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1fb)],'height':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x123)],'left':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1db)],'top':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x163)],'flipX':_0x2a3fbc['worldRect']['flipX']||!0x1,'flipY':_0x2a3fbc[_0x5980e1(0x17d)][_0x5980e1(0x1a0)]||!0x1,'newAdjustValues':_0x425bc3[_0x5980e1(0x260)],'oldAdjustValues':_0x33c836,'oldRelation':_0x36822a,'newRelation':_0x41a180,'newLineType':_0x425bc3[_0x5980e1(0x2b0)],'oldLineType':_0x200afe};this[_0x5980e1(0x300)]['executeCommand'](_0x1ae360['id'],_0x4dd4d6);}['_executeResizeCommand'](_0x4cc97d,_0x48d031){const _0x4d55f6=_0xcb6cbb;let _0x5bd869=this[_0x4d55f6(0xf6)][_0x4d55f6(0xb7)](),_0x388bc4=_0x5d79b3(_0x4cc97d[_0x4d55f6(0x141)],_0x5bd869),_0x22bbe5={'unitId':this[_0x4d55f6(0x2aa)],'subUnitId':this[_0x4d55f6(0x13b)],'shapeId':this[_0x4d55f6(0x2c1)],'width':_0x4cc97d['worldRect'][_0x4d55f6(0x1fb)],'height':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x123)],'left':_0x4cc97d['worldRect'][_0x4d55f6(0x1db)],'top':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x163)],'flipX':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x16c)]||!0x1,'flipY':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x1a0)]||!0x1,'angle':_0x4cc97d[_0x4d55f6(0x17d)][_0x4d55f6(0x31f)]||0x0,'newAdjustValues':_0x388bc4['adjustValues'],'oldAdjustValues':_0x48d031,'newLineType':_0x388bc4[_0x4d55f6(0x2b0)],'oldLineType':_0x5bd869};this[_0x4d55f6(0x300)][_0x4d55f6(0x29b)](_0x15b46f['id'],_0x22bbe5);}[_0xcb6cbb(0xe5)](_0x3c38f3,_0x4b4cf7,_0x4f4eab,_0xcb68a8,_0x1cfbf9){const _0x27ea7a=_0xcb6cbb;let _0x414166=this[_0x27ea7a(0xf6)][_0x27ea7a(0x113)]()[_0x27ea7a(0x12f)],_0x3b9d7c={..._0x414166},_0x3aa156={'shapeId':_0x4b4cf7[_0x27ea7a(0x124)],'cxnIndex':_0x4b4cf7[_0x27ea7a(0xc7)]};_0xcb68a8?(_0x3b9d7c[_0x27ea7a(0x30c)]=_0x3aa156,_0x3b9d7c['to']=_0x4f4eab):(_0x3b9d7c[_0x27ea7a(0x30c)]=_0x4f4eab,_0x3b9d7c['to']=_0x3aa156);let _0x452b28={'unitId':this[_0x27ea7a(0x2aa)],'subUnitId':this[_0x27ea7a(0x13b)],'connectorShapeId':this['_activeShapeId'],'width':_0x3c38f3['worldRect'][_0x27ea7a(0x1fb)],'height':_0x3c38f3['worldRect'][_0x27ea7a(0x123)],'left':_0x3c38f3[_0x27ea7a(0x17d)][_0x27ea7a(0x1db)],'top':_0x3c38f3[_0x27ea7a(0x17d)]['top'],'flipX':_0x3c38f3[_0x27ea7a(0x17d)][_0x27ea7a(0x16c)]||!0x1,'flipY':_0x3c38f3[_0x27ea7a(0x17d)]['flipY']||!0x1,'oldAdjustValues':_0x1cfbf9,'newAdjustValues':_0x3c38f3[_0x27ea7a(0x260)],'newLineType':_0x3c38f3[_0x27ea7a(0x2b0)],'rotation':_0x3c38f3[_0x27ea7a(0x31b)],'oldRelation':_0x414166,'newRelation':_0x3b9d7c};this[_0x27ea7a(0x300)][_0x27ea7a(0x29b)](_0x1ae360['id'],_0x452b28);}[_0xcb6cbb(0x1b4)](_0x362d7c,_0x579362,_0x2b8553,_0x2035a7){const _0x4e0118=_0xcb6cbb;let _0x3d5205=this[_0x4e0118(0xf6)]['getShapeData']()['relation'],_0x5ab6e4={};_0x2b8553?(_0x5ab6e4['to']=_0x579362,_0x5ab6e4[_0x4e0118(0x30c)]=void 0x0):(_0x5ab6e4['from']=_0x579362,_0x5ab6e4['to']=void 0x0);let _0xe2c4bb={'unitId':this[_0x4e0118(0x2aa)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4e0118(0x2c1)],'width':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x1fb)],'height':_0x362d7c[_0x4e0118(0x17d)]['height'],'left':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x1db)],'top':_0x362d7c[_0x4e0118(0x17d)]['top'],'flipX':_0x362d7c[_0x4e0118(0x17d)][_0x4e0118(0x16c)]||!0x1,'flipY':_0x362d7c[_0x4e0118(0x17d)]['flipY']||!0x1,'oldAdjustValues':_0x2035a7,'newAdjustValues':_0x362d7c[_0x4e0118(0x260)],'newLineType':_0x362d7c[_0x4e0118(0x2b0)],'rotation':_0x362d7c[_0x4e0118(0x31b)],'oldRelation':_0x3d5205,'newRelation':_0x5ab6e4};this[_0x4e0118(0x300)][_0x4e0118(0x29b)](_0x1ae360['id'],_0xe2c4bb);}['_attachConnectorObjectEvent'](_0x1d7e1e,_0x1d7164,_0x47bdf9){const _0x423326=_0xcb6cbb;this[_0x423326(0x2d6)](_0x452c8c(_0x1d7e1e[_0x423326(0xc9)][_0x423326(0x2fe)]((_0x390c8c,_0x11136b)=>{const _0x2f9fdd=_0x423326;let _0x15c568=_0x1d7e1e[_0x2f9fdd(0x23d)]();if(this[_0x2f9fdd(0xf6)]=this[_0x2f9fdd(0x287)]['getShapeModel'](_0x15c568['unitId'],_0x15c568['subUnitId'],_0x15c568[_0x2f9fdd(0x10e)]),!this[_0x2f9fdd(0xf6)])return;let _0x4cf1af={};this['_activeShapeModel'][_0x2f9fdd(0x111)]()[_0x2f9fdd(0x26a)](_0x16bbc4=>{const _0x1e779f=_0x2f9fdd;let _0x2ce4e2=this[_0x1e779f(0xf6)][_0x1e779f(0xc6)](_0x16bbc4);_0x2ce4e2!==void 0x0&&(_0x4cf1af[_0x16bbc4]=_0x2ce4e2);});let _0x231be5=this[_0x2f9fdd(0x2de)]();if(!_0x231be5)return;this[_0x2f9fdd(0x21d)]={..._0x231be5};let _0x36ea37=new _0x4d85c6(this[_0x2f9fdd(0x21d)]),_0x3b57d2=_0x4f98bd({'unitId':this[_0x2f9fdd(0x2aa)],'subUnitId':this[_0x2f9fdd(0x13b)],'drawingId':this[_0x2f9fdd(0x2c1)]}),_0x2213e5=_0x1d7164[_0x2f9fdd(0x114)](_0x3b57d2);this[_0x2f9fdd(0x236)]=!0x0,_0x1d7164['disableObjectsEvent'](),this[_0x2f9fdd(0x1b6)]['startConnectionDetection'](_0x1d7164,this['_unitId'],this[_0x2f9fdd(0x13b)],this[_0x2f9fdd(0x2c1)]),this[_0x2f9fdd(0xd6)]=null;let _0xf48e89=this[_0x2f9fdd(0xf6)][_0x2f9fdd(0x169)](),_0x2954c0=_0xf48e89[0x0],_0x405922=_0xf48e89[_0xf48e89[_0x2f9fdd(0x25d)]-0x1],_0x537bad=_0x47bdf9?_0x36ea37['localToWorld'](_0x405922):_0x36ea37['localToWorld'](_0x2954c0);this[_0x2f9fdd(0x16b)]=_0x1d7164['onPointerMove$'][_0x2f9fdd(0x2fe)]((_0x1d4688,_0x183f3b)=>{const _0x5d1262=_0x2f9fdd;if(!this[_0x5d1262(0x236)]||!this[_0x5d1262(0xf6)])return;this[_0x5d1262(0x208)]||(this[_0x5d1262(0x132)][_0x5d1262(0x24b)](),this[_0x5d1262(0xf6)]['clearAdjustValue'](),this[_0x5d1262(0x208)]=!0x0);let _0x41022c=this[_0x5d1262(0x1ed)](this[_0x5d1262(0x2aa)],this[_0x5d1262(0x13b)]),_0x467ac8=this[_0x5d1262(0xc4)](this[_0x5d1262(0x2aa)],this[_0x5d1262(0x13b)]),_0x56716f={'x':_0x1d4688['offsetX']/_0x467ac8+_0x41022c['x'],'y':_0x1d4688[_0x5d1262(0x299)]/_0x467ac8+_0x41022c['y']},_0x3dc7ad=this[_0x5d1262(0x1b6)][_0x5d1262(0x121)](_0x56716f);if(_0x3dc7ad){let {shapeId:_0x399d0c,unitId:_0xabeb09,subUnitId:_0x386235}=_0x3dc7ad;if(_0x399d0c&&_0xabeb09&&_0x386235){let _0x375292=_0x4f98bd({'unitId':_0xabeb09,'subUnitId':_0x386235,'drawingId':_0x399d0c});_0x3dc7ad[_0x5d1262(0x31f)]=(_0x1d7164[_0x5d1262(0x114)](_0x375292)[_0x5d1262(0x31f)]||0x0)+_0x3dc7ad[_0x5d1262(0x31f)];}}this[_0x5d1262(0xd6)]=_0x3dc7ad;let _0xa184af=_0x47bdf9?this[_0x5d1262(0xf6)][_0x5d1262(0x2f4)]():this['_activeShapeModel'][_0x5d1262(0x24c)]();if(_0xa184af){this['_handleConnectedEndpointMove'](_0xa184af,_0x56716f,_0x47bdf9,_0x2213e5,_0x1d7e1e);return;}this[_0x5d1262(0x107)](_0x56716f,_0x537bad,_0x47bdf9,_0x2213e5,_0x1d7e1e);}),this[_0x2f9fdd(0x2b9)]=_0x1d7164[_0x2f9fdd(0x24e)]['subscribeEvent']((_0x596504,_0x5418ba)=>{const _0x29bc61=_0x2f9fdd;this[_0x29bc61(0x147)](_0x1d7164,_0x537bad,_0x596504,_0x47bdf9,_0x4cf1af);}),_0x11136b[_0x2f9fdd(0x2c3)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x2959e3,_0x577cbe,_0x12dea1){const _0x42ee20=_0xcb6cbb;let _0x1b8dc2=this[_0x42ee20(0x287)][_0x42ee20(0x2d8)](_0x2959e3,_0x577cbe,_0x12dea1);if(!_0x1b8dc2||_0x1b8dc2['length']===0x0)return;let _0x104019=this[_0x42ee20(0x154)]['getRenderUnitById'](_0x2959e3);if(!_0x104019)return;let {scene:_0x71ffa2}=_0x104019;for(let _0xdb2ef7 of _0x1b8dc2){let _0x196763=_0xdb2ef7[_0x42ee20(0x30d)],_0x526746=this['_sheetsShapeService'][_0x42ee20(0x2c4)](_0x2959e3,_0x577cbe,_0x196763);if(!_0x526746)continue;let _0x5e01b7=_0x526746[_0x42ee20(0x24c)](),_0xd83fb1=_0x526746[_0x42ee20(0x2f4)](),_0x3ed863=(_0x5e01b7==null?void 0x0:_0x5e01b7[_0x42ee20(0x124)])===_0x12dea1,_0x41209b=_0x4f98bd({'unitId':_0x2959e3,'subUnitId':_0x577cbe,'drawingId':_0x196763}),_0x3f1a4c=_0x71ffa2[_0x42ee20(0x114)](_0x41209b);if(!_0x3f1a4c)continue;let _0x263e8a=this[_0x42ee20(0x1ad)][_0x42ee20(0x16d)]({'unitId':_0x2959e3,'subUnitId':_0x577cbe,'drawingId':_0x196763});_0x263e8a!=null&&_0x263e8a['transform']&&(_0x5e01b7&&_0xd83fb1?this[_0x42ee20(0x319)](_0x2959e3,_0x577cbe,_0x196763,_0x526746,_0x5e01b7,_0xd83fb1,_0x3f1a4c):this[_0x42ee20(0x250)](_0x2959e3,_0x577cbe,_0x196763,_0x526746,_0x3ed863?_0x5e01b7:_0xd83fb1,_0x3ed863,_0x263e8a,_0x3f1a4c));}}['_rerouteConnectorLine'](_0x23eae9,_0x41490d,_0x40a89c,_0x331887,_0x2b034c,_0xb4f7ad,_0x52adf3){const _0x9594df=_0xcb6cbb;let _0x2f78f8=this[_0x9594df(0x2aa)],_0xef3231=this['_subUnitId'];this[_0x9594df(0x2aa)]=_0x23eae9,this[_0x9594df(0x13b)]=_0x41490d;let _0x486210=this[_0x9594df(0x1ee)](_0x2b034c),_0x25a977=this[_0x9594df(0x1ee)](_0xb4f7ad);if(this[_0x9594df(0x2aa)]=_0x2f78f8,this[_0x9594df(0x13b)]=_0xef3231,!_0x486210||!_0x25a977)return;let _0x1ece45=_0x331887[_0x9594df(0xb7)](),_0x12077f=_0x502b11(_0x486210,_0x25a977,_0x1ece45);_0x12077f&&_0x331887[_0x9594df(0x1b5)](_0x12077f);let _0x3c73d1=_0x5d79b3(_0x12077f,_0x1ece45);_0x3c73d1[_0x9594df(0x2b0)]!==_0x1ece45&&_0x331887[_0x9594df(0x1a9)](_0x3c73d1[_0x9594df(0x2b0)]),_0x331887['clearAdjustValue']();for(let [_0x4b5d5d,_0x345581]of Object['entries'](_0x3c73d1[_0x9594df(0x260)]))_0x331887[_0x9594df(0xda)](_0x4b5d5d,_0x345581);_0x331887[_0x9594df(0x1d6)]({'width':_0x3c73d1['worldRect'][_0x9594df(0x1fb)],'height':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x123)]}),_0x52adf3[_0x9594df(0xdd)]({'flipX':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x16c)],'flipY':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x1a0)],'left':_0x3c73d1['worldRect'][_0x9594df(0x1db)],'top':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x163)],'width':_0x3c73d1[_0x9594df(0x17d)][_0x9594df(0x1fb)],'height':_0x3c73d1[_0x9594df(0x17d)]['height'],'angle':_0x3c73d1[_0x9594df(0x31b)]}),_0x331887[_0x9594df(0x2ed)]();}[_0xcb6cbb(0x250)](_0x3ff80a,_0x504cfa,_0x347f0d,_0xf3aad1,_0x464fd3,_0x873434,_0x3ba130,_0x4348aa){const _0x57d75b=_0xcb6cbb;let _0x2012ec=this['_unitId'],_0x4a70e1=this[_0x57d75b(0x13b)];this['_unitId']=_0x3ff80a,this['_subUnitId']=_0x504cfa;let _0x37720c=this['_getConnectPointInfo'](_0x464fd3);if(this['_unitId']=_0x2012ec,this[_0x57d75b(0x13b)]=_0x4a70e1,!_0x37720c)return;let {left:_0x2c680b=0x0,top:_0x2dad0b=0x0,width:_0x4669a5=0x0,height:_0x1040ca=0x0,flipX:_0x5071c4=!0x1,flipY:_0x1f3c04=!0x1}=_0x3ba130['transform'],_0xe520fd=_0xf3aad1[_0x57d75b(0x169)]();if(_0xe520fd['length']<0x2)return;let _0x1a5e53=new _0x4d85c6({'left':_0x2c680b,'top':_0x2dad0b,'width':_0x4669a5,'height':_0x1040ca,'flipX':_0x5071c4,'flipY':_0x1f3c04}),_0x418efd=_0x873434?_0xe520fd[_0xe520fd[_0x57d75b(0x25d)]-0x1]:_0xe520fd[0x0],_0x3cc2f1=_0x1a5e53[_0x57d75b(0x12a)](_0x418efd),_0x200e45=_0x4d85c6[_0x57d75b(0x22c)](_0x3cc2f1,_0x37720c[_0x57d75b(0x118)],!_0x873434);_0x4348aa[_0x57d75b(0xdd)]({'flipX':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x16c)],'flipY':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x1a0)],'left':_0x200e45['worldRect'][_0x57d75b(0x1db)],'top':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x163)],'width':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x1fb)],'height':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x123)],'angle':_0x200e45[_0x57d75b(0x17d)][_0x57d75b(0x31f)]}),_0x4348aa[_0x57d75b(0x1dd)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x3bf7ee=_0xcb6cbb;this['_connectorObjects'][_0x3bf7ee(0x25d)]!==0x0&&(this[_0x3bf7ee(0x179)][_0x3bf7ee(0x26a)](_0x11947a=>{const _0xe31895=_0x3bf7ee;_0x11947a[_0xe31895(0x20e)]();}),this[_0x3bf7ee(0x179)]=[]);}['_registerDrawingMoveHandler'](){const _0x482655=_0xcb6cbb;let _0x3323d8=this[_0x482655(0x23f)][_0x482655(0x1e2)](_0x593ef9[_0x482655(0x298)]);this[_0x482655(0x2d6)](_0x3323d8[_0x482655(0x23e)](_0x11d4bf(_0x4e81fa=>_0x4e81fa?_0x4e81fa[_0x482655(0x10c)][_0x482655(0x23e)](_0x11d4bf(_0x5be07e=>{const _0x34ed35=_0x482655;if(!_0x5be07e)return _0x1198ce;let _0x574125=_0x4e81fa[_0x34ed35(0x181)](),_0x54c865=this[_0x34ed35(0x154)][_0x34ed35(0x133)](_0x574125),_0x20f063=_0x54c865==null?void 0x0:_0x54c865[_0x34ed35(0x1f6)];return _0x20f063?_0x9a150f(_0x20f063):_0x1198ce;})):_0x1198ce))[_0x482655(0x2f7)](_0x4eb93d=>{const _0x358f5e=_0x482655;let _0x239303=_0x4eb93d[_0x358f5e(0x24a)]();this[_0x358f5e(0x2d6)](_0x4eb93d[_0x358f5e(0x291)][_0x358f5e(0x2fe)](_0x45b6e9=>{const _0x5eb53f=_0x358f5e;this[_0x5eb53f(0xbe)]&&this[_0x5eb53f(0x2c1)]&&this[_0x5eb53f(0x144)]();})),this[_0x358f5e(0x2d6)](_0x239303['changeStart$'][_0x358f5e(0x2f7)](_0x3cbaf5=>{const _0x35490d=_0x358f5e;let {objects:_0x5462b2}=_0x3cbaf5;this['_clearShapeConnectorHandlerObjects'](),_0x5462b2!==null&&_0x5462b2['size']===0x1&&_0x5462b2['values']()[_0x35490d(0x152)]()[_0x35490d(0x274)]instanceof Ln&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x358f5e(0x2d6)](_0x239303['changing$'][_0x358f5e(0x2f7)](_0x2fa120=>{const _0x6e560f=_0x358f5e;this[_0x6e560f(0xbe)]&&this[_0x6e560f(0x144)]();})),this[_0x358f5e(0x2d6)](_0x4eb93d[_0x358f5e(0x24e)][_0x358f5e(0x2fe)](()=>{const _0x363d49=_0x358f5e;this[_0x363d49(0xbe)]&&(this[_0x363d49(0xbe)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x358f5e(0x2d6)](_0x239303[_0x358f5e(0xeb)][_0x358f5e(0x2f7)](()=>{const _0x1d1cf3=_0x358f5e;this[_0x1d1cf3(0x2aa)]&&this[_0x1d1cf3(0x13b)]&&this['_activeShapeId']&&this[_0x1d1cf3(0x1ad)][_0x1d1cf3(0x16d)]({'unitId':this['_unitId'],'subUnitId':this[_0x1d1cf3(0x13b)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x1d1cf3(0x166)]());}));}));}[_0xcb6cbb(0x2a8)](){const _0x392ee9=_0xcb6cbb;this['disposeWithMe'](this[_0x392ee9(0x1ad)]['focus$']['subscribe'](_0x566015=>{const _0x36560a=_0x392ee9;if(_0x566015[_0x36560a(0x25d)]===0x1){let _0x556d24=_0x566015[0x0];if(_0x556d24['drawingType']===_0x55872c[_0x36560a(0x1ce)]){let _0x376b1d=this[_0x36560a(0x287)]['getShapeModel'](_0x556d24[_0x36560a(0x241)],_0x556d24[_0x36560a(0x281)],_0x556d24[_0x36560a(0x10e)]);if(_0x376b1d&&_0x286130(_0x376b1d['getShapeType']())){this['_activeShapeId']=_0x556d24[_0x36560a(0x10e)],this[_0x36560a(0x2aa)]=_0x556d24[_0x36560a(0x241)],this[_0x36560a(0x13b)]=_0x556d24[_0x36560a(0x281)],this[_0x36560a(0x144)](),this[_0x36560a(0x166)]();return;}}}this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this[_0x36560a(0x13b)]=void 0x0,this[_0x36560a(0x144)]();})),this['disposeWithMe'](this[_0x392ee9(0x1ad)][_0x392ee9(0x1de)]['subscribe'](_0x3530d0=>{const _0x19cbc0=_0x392ee9;if(_0x3530d0[_0x19cbc0(0x25d)]===0x1){var _0x35d8e0;let _0x45de55=_0x3530d0[0x0],_0x425c66=(_0x35d8e0=this[_0x19cbc0(0x1ad)][_0x19cbc0(0x16d)](_0x45de55))==null?void 0x0:_0x35d8e0[_0x19cbc0(0x1c2)];_0x425c66===_0x55872c[_0x19cbc0(0x1ce)]&&_0x45de55['drawingId']===this[_0x19cbc0(0x2c1)]?(this[_0x19cbc0(0x144)](),this[_0x19cbc0(0x166)]()):!this['_activeShapeId']&&_0x425c66===_0x55872c['DRAWING_SHAPE']&&this[_0x19cbc0(0x28e)](_0x45de55[_0x19cbc0(0x241)],_0x45de55['subUnitId'],_0x45de55[_0x19cbc0(0x10e)]);}})),this[_0x392ee9(0x2d6)](this['_drawingManagerService'][_0x392ee9(0x304)][_0x392ee9(0x2f7)](_0x1c868b=>{const _0x5347cc=_0x392ee9;for(let _0x336762 of _0x1c868b){let {drawingId:_0x4e84fd}=_0x336762;if(this[_0x5347cc(0x2c1)]===_0x4e84fd){this[_0x5347cc(0x1cd)]();return;}}}));}['_handleConnectedEndpointMove'](_0x349ba8,_0x1539c3,_0x182ea6,_0x4888cf,_0x8ccec3){const _0x4046b3=_0xcb6cbb;var _0x2e56d0,_0x346a85;if(!this[_0x4046b3(0xf6)])return;let _0x305ce1=this[_0x4046b3(0x1ee)](_0x349ba8);if(!_0x305ce1)return;let _0x43a4e7=this[_0x4046b3(0xd6)]?this[_0x4046b3(0xd6)]['worldPoint']:_0x1539c3,_0x54c3ca=this[_0x4046b3(0xd6)]?this['_currentConnectionTarget']['angle']:this['_calculateFreeEndpointAngle'](_0x305ce1['point'],_0x43a4e7),_0x1406f8;if(this['_currentConnectionTarget']){let _0x4caa54=this[_0x4046b3(0x1ad)]['getDrawingByParam']({'unitId':this[_0x4046b3(0xd6)]['unitId'],'subUnitId':this[_0x4046b3(0xd6)][_0x4046b3(0x281)],'drawingId':this[_0x4046b3(0xd6)][_0x4046b3(0x124)]});if(_0x4caa54!=null&&_0x4caa54[_0x4046b3(0xce)]){let {left:_0x3b2b15=0x0,top:_0x8498af=0x0,width:_0x1c71bb=0x0,height:_0x28bda5=0x0,angle:_0xe4cb0b}=_0x4caa54[_0x4046b3(0xce)];_0x1406f8=_0x202bf2({'left':_0x3b2b15,'top':_0x8498af,'width':_0x1c71bb,'height':_0x28bda5},_0xe4cb0b||0x0);}else _0x1406f8={'left':_0x43a4e7['x'],'top':_0x43a4e7['y'],'width':0x0,'height':0x0};}else _0x1406f8={'left':_0x43a4e7['x'],'top':_0x43a4e7['y'],'width':0x0,'height':0x0};let _0x37aa72={'point':_0x43a4e7,'angle':_0x54c3ca,'bounds':_0x1406f8},_0x168785=_0x182ea6?_0x37aa72:_0x305ce1,_0x556907=_0x182ea6?_0x305ce1:_0x37aa72,_0x31caa6=this['_activeShapeModel'][_0x4046b3(0xb7)](),_0x57db43=_0x502b11(_0x168785,_0x556907,_0x31caa6);_0x57db43&&this[_0x4046b3(0xf6)][_0x4046b3(0x1b5)](_0x57db43);let _0x4c72af=_0x5d79b3(_0x57db43,_0x31caa6);_0x4c72af[_0x4046b3(0x2b0)]!==_0x31caa6&&this[_0x4046b3(0xf6)][_0x4046b3(0x1a9)](_0x4c72af[_0x4046b3(0x2b0)]);for(let [_0x366763,_0xeaf365]of Object['entries'](_0x4c72af[_0x4046b3(0x260)]))this[_0x4046b3(0xf6)][_0x4046b3(0xda)](_0x366763,_0xeaf365);this[_0x4046b3(0xf6)][_0x4046b3(0x1d6)]({'width':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1fb)],'height':_0x4c72af['worldRect'][_0x4046b3(0x123)]}),_0x4888cf[_0x4046b3(0xdd)]({'flipX':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x16c)],'flipY':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1a0)],'left':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x1db)],'top':_0x4c72af[_0x4046b3(0x17d)][_0x4046b3(0x163)],'width':_0x4c72af['worldRect'][_0x4046b3(0x1fb)],'height':_0x4c72af['worldRect']['height'],'angle':_0x4c72af[_0x4046b3(0x31b)]}),_0x4888cf['makeDirty'](!0x0);let _0x2f9f20=(_0x2e56d0=(_0x346a85=this[_0x4046b3(0xd6)])==null?void 0x0:_0x346a85[_0x4046b3(0x183)])==null?_0x1539c3:_0x2e56d0;_0x8ccec3[_0x4046b3(0xdd)]({'left':_0x2f9f20['x']-_0x3cbe53[_0x4046b3(0x27a)],'top':_0x2f9f20['y']-_0x3cbe53['cxnPointRadius']});}['_handleFreeEndpointMove'](_0x523cf1,_0x423eb7,_0x3fc83c,_0x1adeea,_0x4a06cf){const _0x254203=_0xcb6cbb;var _0xcc9b70,_0x430b4e,_0x2ee96f,_0x529e76;let _0x1235fe=(_0xcc9b70=(_0x430b4e=this[_0x254203(0xd6)])==null?void 0x0:_0x430b4e[_0x254203(0x183)])==null?_0x523cf1:_0xcc9b70,_0x427702=_0x4d85c6[_0x254203(0x22c)](_0x423eb7,_0x1235fe,_0x3fc83c);_0x1adeea[_0x254203(0xdd)]({'flipX':_0x427702['worldRect'][_0x254203(0x16c)],'flipY':_0x427702['worldRect'][_0x254203(0x1a0)],'left':_0x427702['worldRect']['left'],'top':_0x427702['worldRect'][_0x254203(0x163)],'width':_0x427702[_0x254203(0x17d)][_0x254203(0x1fb)],'height':_0x427702[_0x254203(0x17d)][_0x254203(0x123)],'angle':_0x427702[_0x254203(0x17d)][_0x254203(0x31f)]});let _0xe11dbe=(_0x2ee96f=(_0x529e76=this[_0x254203(0xd6)])==null?void 0x0:_0x529e76['worldPoint'])==null?_0x523cf1:_0x2ee96f;_0x4a06cf[_0x254203(0xdd)]({'left':_0xe11dbe['x']-_0x3cbe53['cxnPointRadius'],'top':_0xe11dbe['y']-_0x3cbe53['cxnPointRadius']});}[_0xcb6cbb(0x1ee)](_0x5343f5){const _0x4b676d=_0xcb6cbb;if(!this['_unitId']||!this[_0x4b676d(0x13b)])return null;let {shapeId:_0x5d0e62,cxnIndex:_0x28b17d}=_0x5343f5,_0x35ff8b=this[_0x4b676d(0x287)][_0x4b676d(0x2c4)](this[_0x4b676d(0x2aa)],this['_subUnitId'],_0x5d0e62);if(!_0x35ff8b)return null;let _0xc82a69=this[_0x4b676d(0x1ad)][_0x4b676d(0x16d)]({'unitId':this[_0x4b676d(0x2aa)],'subUnitId':this[_0x4b676d(0x13b)],'drawingId':_0x5d0e62});if(!(_0xc82a69!=null&&_0xc82a69[_0x4b676d(0xce)]))return null;let {left:_0xe4d350=0x0,top:_0x5477e7=0x0,width:_0x38a9f2=0x0,height:_0x52c11d=0x0,flipX:_0x1162f9=!0x1,flipY:_0x3a78a6=!0x1,angle:_0x21e35d}=_0xc82a69[_0x4b676d(0xce)];_0x35ff8b['updateContext']({'width':_0x38a9f2,'height':_0x52c11d});let _0x204a57=_0x35ff8b[_0x4b676d(0x2cd)]()[_0x4b676d(0x2e5)](_0x29839f=>_0x29839f[_0x4b676d(0x1cc)]===_0x28b17d);if(!_0x204a57)return null;let _0x259b74=_0x1162f9?_0x38a9f2-_0x204a57['x']:_0x204a57['x'],_0x39bb75=_0x3a78a6?_0x52c11d-_0x204a57['y']:_0x204a57['y'];if(_0x21e35d!==0x0&&_0x21e35d!=null){let _0x189c46=_0x21e35d*Math['PI']/0xb4,_0x688171=Math[_0x4b676d(0x20b)](_0x189c46),_0x5e803f=Math[_0x4b676d(0x2d3)](_0x189c46),_0x37a533=_0x38a9f2/0x2,_0x28d355=_0x52c11d/0x2,_0x216f14=_0x259b74-_0x37a533,_0x445032=_0x39bb75-_0x28d355;_0x259b74=_0x37a533+_0x216f14*_0x688171-_0x445032*_0x5e803f,_0x39bb75=_0x28d355+_0x216f14*_0x5e803f+_0x445032*_0x688171;}_0x259b74+=_0xe4d350,_0x39bb75+=_0x5477e7;let _0x57478d=_0x204a57[_0x4b676d(0xfc)]/0xea60;_0x1162f9&&(_0x57478d=0xb4-_0x57478d),_0x3a78a6&&(_0x57478d=-_0x57478d),_0x57478d+=_0x21e35d||0x0,_0x57478d=(_0x57478d%0x168+0x168)%0x168;let _0x3fdf70=_0x202bf2({'left':_0xe4d350,'top':_0x5477e7,'width':_0x38a9f2,'height':_0x52c11d},_0x21e35d||0x0);return{'point':{'x':_0x259b74,'y':_0x39bb75},'angle':_0x57478d,'bounds':_0x3fdf70};}[_0xcb6cbb(0x288)](_0x83e341,_0x5116c1){const _0x1f0bf2=_0xcb6cbb;let _0x19ce13=_0x5116c1['x']-_0x83e341['x'],_0x1f14a8=_0x5116c1['y']-_0x83e341['y'];return Math['abs'](_0x19ce13)>=Math[_0x1f0bf2(0x1ab)](_0x1f14a8)?_0x19ce13>=0x0?0xb4:0x0:_0x1f14a8>=0x0?0x10e:0x5a;}[_0xcb6cbb(0x1cd)](){const _0xc3f090=_0xcb6cbb;this[_0xc3f090(0x2c1)]=void 0x0,this[_0xc3f090(0x2aa)]=void 0x0,this[_0xc3f090(0x13b)]=void 0x0,this[_0xc3f090(0x144)]();}[_0xcb6cbb(0x20e)](){const _0x71a8b5=_0xcb6cbb;this['_clearShapeConnectorHandlerObjects'](),super[_0x71a8b5(0x20e)]();}};Lr=Z([X(0x1,_0x3a72b1),X(0x2,_0x297a94),X(0x3,_0x5a1ed0),X(0x4,_0x1af83c),X(0x5,_0x25d6be(_0x231cef)),X(0x6,_0x25d6be(zn)),X(0x7,_0x25d6be(Pr))],Lr);let Rr=class extends _0x444b76{constructor(_0x5d9179,_0x432d65,_0x49b1f6){const _0x20b0ee=_0xcb6cbb;super(),this[_0x20b0ee(0x184)]=_0x5d9179,this[_0x20b0ee(0x1ad)]=_0x432d65,this[_0x20b0ee(0x2e8)]=_0x49b1f6,this['_initPrinting']();}['_initPrinting'](){const _0x52c93d=_0xcb6cbb;this['disposeWithMe'](this['_sheetPrintInterceptorService'][_0x52c93d(0xc8)][_0x52c93d(0x1e4)](this[_0x52c93d(0x184)]['interceptor'][_0x52c93d(0x283)]()[_0x52c93d(0x229)],{'handler':(_0x4e96e9,_0x1be76a,_0x579b18)=>{const _0x7d23f0=_0x52c93d;var _0x561861;let {unitId:_0x578bf8,subUnitId:_0x1353d0,scene:_0x409fc1,resourceCollector:_0x2d5595}=_0x1be76a,_0x380e50=(_0x561861=this[_0x7d23f0(0x1ad)]['getDrawingDataForUnit'](_0x578bf8))==null?void 0x0:_0x561861[_0x1353d0];return _0x380e50==null||_0x380e50[_0x7d23f0(0x273)][_0x7d23f0(0x26a)](_0x1064ec=>{const _0x270a2b=_0x7d23f0;let _0x25503f=_0x380e50[_0x270a2b(0x1d1)][_0x1064ec];_0x25503f[_0x270a2b(0x1c2)]===_0x55872c[_0x270a2b(0x1ce)]&&!_0x25503f[_0x270a2b(0x237)]&&this[_0x270a2b(0x2e8)][_0x270a2b(0x1f9)](_0x25503f,_0x409fc1,{'resourceCollector':_0x2d5595});}),_0x579b18(_0x4e96e9);}}));}};Rr=Z([X(0x0,_0x25d6be(_0x1c54e8)),X(0x1,_0x5a1ed0),X(0x2,_0x25d6be(Q))],Rr);let zr=class extends _0x444b76{constructor(_0x57f836,_0x4f42ae,_0x54c19a){const _0x5485fe=_0xcb6cbb;super(),this[_0x5485fe(0x300)]=_0x57f836,this[_0x5485fe(0x158)]=_0x4f42ae,this['_sheetPermissionCheckController']=_0x54c19a,this[_0x5485fe(0x2be)]();}[_0xcb6cbb(0x2be)](){const _0x47bc2c=_0xcb6cbb;this[_0x47bc2c(0x2d6)](this[_0x47bc2c(0x300)][_0x47bc2c(0x140)](_0x1e5e86=>{const _0x2f8c69=_0x47bc2c;let _0x15292f,_0x326f8b;if(_0x1e5e86['id']===_0x5268cc['id']||_0x1e5e86['id']===_0x28ec43['id']||_0x1e5e86['id']===_0x1ae360['id']){let _0x7180f=_0x1e5e86[_0x2f8c69(0x24d)];_0x15292f=_0x7180f[_0x2f8c69(0x241)],_0x326f8b=_0x7180f[_0x2f8c69(0x281)];}!_0x15292f||!_0x326f8b||this[_0x2f8c69(0x149)][_0x2f8c69(0x29f)]({'workbookTypes':[_0x3a8356],'worksheetTypes':[_0x521940]},_0x15292f,_0x326f8b)||this[_0x2f8c69(0x149)][_0x2f8c69(0x2b6)](this[_0x2f8c69(0x158)]['t'](_0x2f8c69(0x322)));}));}};zr=Z([X(0x0,_0x25d6be(_0x3a72b1)),X(0x1,_0x25d6be(_0x498c36)),X(0x2,_0x25d6be(_0x4bb7c3))],zr);let Br=class extends _0x444b76{constructor(_0x4f46c5,_0x623522,_0x33d5a6,_0x53e410,_0x53f906,_0x11204a,_0x54ef4b,_0x4de0c6,_0x167cf6,_0x4bb31,_0x201aa7){const _0x21fcbd=_0xcb6cbb;super(),this[_0x21fcbd(0x23f)]=_0x4f46c5,this[_0x21fcbd(0x19e)]=_0x623522,this[_0x21fcbd(0x254)]=_0x33d5a6,this['_sheetsShapeService']=_0x53e410,this[_0x21fcbd(0x158)]=_0x53f906,this[_0x21fcbd(0x300)]=_0x11204a,this['_drawingManagerService']=_0x54ef4b,this[_0x21fcbd(0x150)]=_0x4de0c6,this[_0x21fcbd(0x14f)]=_0x167cf6,this['_renderManagerService']=_0x4bb31,this[_0x21fcbd(0x161)]=_0x201aa7,Y(this,_0x21fcbd(0x17b),null),Y(this,'_activeShapeInfo',null),Y(this,_0x21fcbd(0x1a7),!0x1),Y(this,_0x21fcbd(0x1ff),0x0),Y(this,_0x21fcbd(0x190),new Set()),Y(this,_0x21fcbd(0x309),[]),this[_0x21fcbd(0x270)](),this[_0x21fcbd(0x2d6)](this[_0x21fcbd(0x23f)][_0x21fcbd(0x1e2)](_0x593ef9['UNIVER_SHEET'])['subscribe'](_0x39142e=>{const _0x1e2ad8=_0x21fcbd;if(!_0x39142e){var _0x59551e;(_0x59551e=this[_0x1e2ad8(0x17b)])==null||_0x59551e[_0x1e2ad8(0x20e)]();return;}this[_0x1e2ad8(0x1d0)](_0x39142e);})),this['_registerOperations'](),this['initShapePopupMenu'](),this[_0x21fcbd(0x2d6)](this[_0x21fcbd(0x161)][_0x21fcbd(0x1ac)][_0x21fcbd(0x2f7)](_0xb17033=>{const _0x402800=_0x21fcbd;_0xb17033&&this[_0x402800(0x1f1)]();}));}[_0xcb6cbb(0x270)](){this['_menuManagerService']['mergeMenu'](lr);}[_0xcb6cbb(0x2c6)](){const _0x5ab52=_0xcb6cbb;this['_univerInstanceService']['getAllUnitsForType'](_0x593ef9[_0x5ab52(0x298)])['forEach'](_0x1b3273=>this[_0x5ab52(0x1d0)](_0x1b3273));}[_0xcb6cbb(0x25c)](_0x2a245c,_0x5ba4f1,_0x5dd22d){const _0xf425ae=_0xcb6cbb;let _0x5bb3ed=this['_sheetsShapeService'][_0xf425ae(0x15a)](_0x2a245c,_0x5ba4f1,_0x5dd22d),_0x4f011a=this[_0xf425ae(0x287)][_0xf425ae(0xd4)](_0x2a245c,_0x5ba4f1,_0x5dd22d);return _0x5bb3ed!==void 0x0&&_0x4f011a!==void 0x0?{'shapeData':_0x4f011a,'shapeId':_0x5dd22d,'shapeType':_0x5bb3ed,'unitId':_0x2a245c,'subUnitId':_0x5ba4f1,'version':this[_0xf425ae(0x1ff)],'disableShapeOption':!0x1}:null;}[_0xcb6cbb(0x1d0)](_0x34805a){const _0x1d5847=_0xcb6cbb;if(!_0x34805a)return;let _0x18e705=_0x34805a[_0x1d5847(0x181)]();this[_0x1d5847(0x154)][_0x1d5847(0x1cf)](_0x18e705)&&!this['_initializedShapePopupMenu'][_0x1d5847(0x1cf)](_0x18e705)&&(this[_0x1d5847(0xf5)](_0x18e705),this['_initializedShapePopupMenu'][_0x1d5847(0x1b9)](_0x18e705));}['_clearPopups'](){const _0x276c56=_0xcb6cbb;this[_0x276c56(0x309)][_0x276c56(0x26a)](_0x28b2f5=>_0x28b2f5[_0x276c56(0x20e)]()),this[_0x276c56(0x309)][_0x276c56(0x25d)]=0x0;}[_0xcb6cbb(0xf5)](_0x3cf68e){const _0x13bb86=_0xcb6cbb;var _0x205569;let _0x234b15=(_0x205569=this[_0x13bb86(0x154)][_0x13bb86(0x133)](_0x3cf68e))==null?void 0x0:_0x205569[_0x13bb86(0x1f6)],_0x226c81=_0x234b15==null?void 0x0:_0x234b15['getTransformerByCreate']();!_0x234b15||!_0x226c81||(this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x17e)][_0x13bb86(0x2f7)](()=>{const _0x4ab151=_0x13bb86;let _0x55a093=_0x226c81[_0x4ab151(0x108)]();if(this[_0x4ab151(0x1f1)](),this['_isOpenedShapeEditPanel']||_0x55a093[_0x4ab151(0x1e1)]>0x1)return;let _0x1a9459=_0x55a093[_0x4ab151(0x1c7)]()[_0x4ab151(0x152)]()[_0x4ab151(0x274)];if(!_0x1a9459)return;let _0xc69b8=this['_drawingManagerService'][_0x4ab151(0x2ab)](_0x1a9459[_0x4ab151(0x303)]);if(!_0xc69b8||_0xc69b8[_0x4ab151(0x1c2)]!==_0x55872c[_0x4ab151(0x1ce)])return;let {unitId:_0x1e3d98,subUnitId:_0x56e97b,drawingId:_0x853caa,drawingType:_0x154b4e}=_0xc69b8,_0x3fb1c2=this[_0x4ab151(0x25c)](_0x1e3d98,_0x56e97b,_0x853caa);if(!_0x3fb1c2)return;this[_0x4ab151(0x14f)]['setContextValue'](_0x5c6846,!0x0);let _0x130f70=this[_0x4ab151(0x150)]['attachPopupToObject'](_0x1a9459,{'componentKey':Wn,'direction':_0x4ab151(0x168),'offset':[0x0,_0x2a48ef],'extraProps':{'unitId':_0x1e3d98,'subUnitId':_0x56e97b,'drawingId':_0x853caa,'drawingType':_0x154b4e,'shapeType':_0x3fb1c2[_0x4ab151(0x312)],'shapeData':_0x3fb1c2[_0x4ab151(0x18a)]}});this[_0x4ab151(0x309)]['push'](this[_0x4ab151(0x2d6)](_0x130f70)),this[_0x4ab151(0x1ad)]['getFocusDrawings']()[_0x4ab151(0x2e5)](_0x157f8f=>_0x157f8f[_0x4ab151(0x241)]===_0x1e3d98&&_0x157f8f['subUnitId']===_0x56e97b&&_0x157f8f[_0x4ab151(0x10e)]===_0x853caa)||this[_0x4ab151(0x1ad)][_0x4ab151(0x257)]([{'unitId':_0x1e3d98,'subUnitId':_0x56e97b,'drawingId':_0x853caa}]);})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x11a)]['subscribe'](()=>{const _0x4548a0=_0x13bb86;this['_clearPopups'](),this[_0x4548a0(0x14f)][_0x4548a0(0x1ea)](_0x5c6846,!0x1),this['_drawingManagerService'][_0x4548a0(0x257)](null);})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x27e)][_0x13bb86(0x2f7)](()=>{const _0x181b93=_0x13bb86;this[_0x181b93(0x1f1)]();})),this[_0x13bb86(0x2d6)](_0x226c81[_0x13bb86(0x12d)][_0x13bb86(0x2f7)](()=>{const _0x296172=_0x13bb86;this[_0x296172(0x1f1)]();})));}['_registerOperations'](){const _0x4e2b36=_0xcb6cbb;this[_0x4e2b36(0x2d6)](this[_0x4e2b36(0x300)]['onCommandExecuted'](_0x5c87c7=>{const _0x291e3e=_0x4e2b36;if(_0x5c87c7['id']===pr['id']){let {unitId:_0x1e33d6,subUnitId:_0x4ff00d,drawingId:_0x5ac332}=_0x5c87c7[_0x291e3e(0x24d)];this['_shapeEditPanelVersion']+=0x1,this[_0x291e3e(0x305)]=this[_0x291e3e(0x25c)](_0x1e33d6,_0x4ff00d,_0x5ac332),this[_0x291e3e(0x1f1)](),this[_0x291e3e(0x2eb)]();}if(_0x5c87c7['id']===fr['id']&&(this[_0x291e3e(0x305)]=null,this[_0x291e3e(0x12e)]()),_0x5c87c7['id']===_0x528850['id']){let {unitId:_0x59fc02,subUnitId:_0x184f47,shapeId:_0x58765}=_0x5c87c7[_0x291e3e(0x24d)];if(this[_0x291e3e(0x305)]&&this[_0x291e3e(0x305)][_0x291e3e(0x124)]===_0x58765){let _0x433ed1=this[_0x291e3e(0x25c)](_0x59fc02,_0x184f47,_0x58765);_0x433ed1&&(this[_0x291e3e(0x1ff)]+=0x1,_0x433ed1[_0x291e3e(0x28a)]=this['_shapeEditPanelVersion'],this[_0x291e3e(0x305)]=_0x433ed1,this[_0x291e3e(0x1a7)]&&this[_0x291e3e(0x2eb)]());}}})),this[_0x4e2b36(0x2d6)](this[_0x4e2b36(0x1ad)][_0x4e2b36(0xed)]['subscribe'](_0x438be8=>{const _0x11db1b=_0x4e2b36;if(this[_0x11db1b(0x1a7)]===!0x1)return;if(_0x438be8[_0x11db1b(0x25d)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x438be8['length']===0x1&&_0x438be8[0x0][_0x11db1b(0x1c2)]===_0x55872c['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0x11db1b(0x305)]=this[_0x11db1b(0x25c)](_0x438be8[0x0]['unitId'],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this[_0x11db1b(0x305)])){this[_0x11db1b(0x2eb)]();return;}let _0xfc87b2=_0x438be8['filter'](_0x5f495c=>_0x5f495c[_0x11db1b(0x1c2)]===_0x55872c[_0x11db1b(0x1ce)]);if(_0x438be8[_0x11db1b(0x25d)]>0x1&&_0xfc87b2[_0x11db1b(0x25d)]===_0x438be8[_0x11db1b(0x25d)]){if(this[_0x11db1b(0x1ff)]+=0x1,this['_activeShapeInfo']=this[_0x11db1b(0x25c)](_0x438be8[0x0][_0x11db1b(0x241)],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this['_activeShapeInfo']){this[_0x11db1b(0x2eb)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x11db1b(0x25c)](_0x438be8[0x0][_0x11db1b(0x241)],_0x438be8[0x0][_0x11db1b(0x281)],_0x438be8[0x0][_0x11db1b(0x10e)]),this[_0x11db1b(0x305)]){this[_0x11db1b(0x305)][_0x11db1b(0x269)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x11db1b(0x12e)]();}));}[_0xcb6cbb(0x2eb)](){const _0x69541=_0xcb6cbb;this[_0x69541(0x305)]&&(this['_sidebarDisposable']=this[_0x69541(0x19e)]['open']({'id':Hn,'header':{'title':this[_0x69541(0x158)]['t'](_0x69541(0x323))},'width':0x184,'children':{'label':Hn,...this['_activeShapeInfo']},'onClose':()=>{const _0xeea0f2=_0x69541;this[_0xeea0f2(0x1ad)][_0xeea0f2(0x257)](null),this[_0xeea0f2(0x14f)][_0xeea0f2(0x1ea)](_0x5c6846,!0x1),this[_0xeea0f2(0x17b)]=null;}}),this[_0x69541(0x1a7)]=!0x0);}[_0xcb6cbb(0x12e)](){const _0x4ff757=_0xcb6cbb;this['_isOpenedShapeEditPanel']=!0x1,this[_0x4ff757(0x19e)][_0x4ff757(0x233)](Hn),this['_sidebarDisposable']=null,this['_contextService'][_0x4ff757(0x1ea)](_0x5c6846,!0x1),this[_0x4ff757(0x1ad)][_0x4ff757(0x257)](null);}};Br=Z([X(0x0,_0x1af83c),X(0x1,_0x25d6be(_0x4770b9)),X(0x2,_0x1aa6d4),X(0x3,_0x25d6be(_0x231cef)),X(0x4,_0x25d6be(_0x498c36)),X(0x5,_0x3a72b1),X(0x6,_0x5a1ed0),X(0x7,_0x25d6be(_0x38b394)),X(0x8,_0x34c0f6),X(0x9,_0x297a94),X(0xa,_0x25d6be(wr))],Br);let $=class extends _0x325a4b{constructor(_0x5b1933=mr,_0x37b5b5,_0x44069b,_0x2c0069,_0x42ce62){const _0x21191b=_0xcb6cbb;super(),this[_0x21191b(0x249)]=_0x5b1933,this[_0x21191b(0x248)]=_0x37b5b5,this['_commandService']=_0x44069b,this['_configService']=_0x2c0069,this[_0x21191b(0x154)]=_0x42ce62;let {..._0x48cc8f}=_0x5ed21a({},mr,this[_0x21191b(0x249)]);this[_0x21191b(0x295)][_0x21191b(0x255)](_0x21191b(0x2e7),_0x48cc8f),this[_0x21191b(0x116)]();}[_0xcb6cbb(0x232)](){const _0x785fa7=_0xcb6cbb;_0x1f2515(this[_0x785fa7(0x248)],[[Br],[jr],[Q],[Rr]]);}[_0xcb6cbb(0x18d)](){const _0x53bb23=_0xcb6cbb;this['_injector']['get'](Br)[_0x53bb23(0x2c6)]();}[_0xcb6cbb(0x14e)](){const _0x56f31e=_0xcb6cbb;[[Pr],[zn],[Fr]][_0x56f31e(0x26a)](_0x40404b=>this[_0x56f31e(0x248)][_0x56f31e(0x1b9)](_0x40404b)),_0x1f2515(this['_injector'],[[Fr],[zn]]),this['_renderManagerService'][_0x56f31e(0x286)](_0x593ef9[_0x56f31e(0x298)],[Pr]),this[_0x56f31e(0x154)][_0x56f31e(0x286)](_0x593ef9[_0x56f31e(0x298)],[Dr]),this[_0x56f31e(0x154)]['registerRenderModule'](_0x593ef9['UNIVER_SHEET'],[Lr]),this['_renderManagerService']['registerRenderModule'](_0x593ef9['UNIVER_SHEET'],[kr]),this[_0x56f31e(0x154)]['registerRenderModule'](_0x593ef9[_0x56f31e(0xb9)],[Ar]);}[_0xcb6cbb(0xd5)](){const _0x3ada53=_0xcb6cbb;this[_0x3ada53(0x248)][_0x3ada53(0x1b9)]([Er]),this['_injector']['get'](Er);let _0x4906f1=this[_0x3ada53(0x248)];[[Br],[jr],[Q],[Rr],[yr],[wr],[Or],[Jn],[zr]]['forEach'](_0x4a351b=>_0x4906f1[_0x3ada53(0x1b9)](_0x4a351b)),_0x1f2515(this[_0x3ada53(0x248)],[[Br],[jr],[Q],[yr],[wr],[Or],[Jn],[zr]]);}['_initCommands'](){const _0x2f5ddf=_0xcb6cbb;[Vn,An,fr,pr,qn,Bn][_0x2f5ddf(0x26a)](_0x4623c0=>this['disposeWithMe'](this[_0x2f5ddf(0x300)]['registerCommand'](_0x4623c0)));}};Y($,_0xcb6cbb(0x27b),_0x593ef9[_0xcb6cbb(0x298)]),Y($,_0xcb6cbb(0x117),_0xcb6cbb(0x2ba)),Y($,_0xcb6cbb(0x258),ur),Y($,_0xcb6cbb(0x28a),dr),$=Z([_0x4a9068(_0x573913,_0x449d42,_0x37224d,_0x1485ee,_0x4579a4,_0x5dd7ab,_0xd4f97b,_0x57144b,_0x2863d5,_0x4efd70,_0x56149f,_0x47b64b,_0x1d8391,_0x1ee45e),X(0x1,_0x25d6be(_0x3ca189)),X(0x2,_0x3a72b1),X(0x3,_0x7ad4a5),X(0x4,_0x297a94)],$);export{lr as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};