@univerjs-pro/sheets-shape-ui 1.0.0-alpha.8 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
- package/lib/types/views/ShapeOptions.d.ts +0 -26
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x25219a=_0x52a4;(function(_0x14b0a3,_0x566bb5){const _0x9d1f88=_0x52a4,_0x235449=_0x14b0a3();while(!![]){try{const _0x59d37c=parseInt(_0x9d1f88(0xeb))/0x1*(parseInt(_0x9d1f88(0x322))/0x2)+parseInt(_0x9d1f88(0x21b))/0x3*(-parseInt(_0x9d1f88(0x1a1))/0x4)+parseInt(_0x9d1f88(0x343))/0x5*(-parseInt(_0x9d1f88(0x274))/0x6)+-parseInt(_0x9d1f88(0x326))/0x7*(parseInt(_0x9d1f88(0x147))/0x8)+-parseInt(_0x9d1f88(0x245))/0x9*(parseInt(_0x9d1f88(0x1b3))/0xa)+parseInt(_0x9d1f88(0x334))/0xb+-parseInt(_0x9d1f88(0x2fd))/0xc*(-parseInt(_0x9d1f88(0x167))/0xd);if(_0x59d37c===_0x566bb5)break;else _0x235449['push'](_0x235449['shift']());}catch(_0x35dd12){_0x235449['push'](_0x235449['shift']());}}}(_0x5f35,0xd757b));import{ComponentManager as _0x21a48b,ContextMenuGroup as _0x9e0dc8,ContextMenuPosition as _0x34d07a,IMenuManagerService as _0x23b358,ISidebarService as _0x54fc19,IconManager as _0x15a7ad,MenuItemType as _0x2aaa41,RibbonInsertGroup as _0x3c626a,getMenuHiddenObservable as _0x315655,useDependency as _0x456f39,useObservable as _0x2cc2b9}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0xd7d9f3,ImageSourceTypeEnum as _0x5a6853,ShapeArrowSizeEnum as _0x4caef4,ShapeArrowTypeEnum as _0x36692d,ShapeDefaultConfig as _0x373ebe,ShapeFillEnum as _0x83e268,ShapeLineTypeEnum as _0x2401bc,ShapeModel as _0x57cb5b,ShapeRenderModeEnum as _0xac9789,ShapeTypeEnum as _0x6bfff9,computeConnectorRouteLayout as _0x47fdde,getBasicShapeRotateBound as _0x10ab2a,isConnectorShape as _0x41a954,isCurvedConnectorShape as _0x5ad544,routeConnectorLineShape as _0x5d6f7b}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x2c2995,UniverShapeEditorPlugin as _0x3eb575,createShapeFormulaDocument as _0x5d87c2,createShapeTextBoxShapeData as _0x597125}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x3a08e6,InsertSheetsShapeMutation as _0x55e264,RemoveSheetsShapeMutation as _0x30f07c,SetShapeDrawingDataCommand as _0x5e53bf,SheetsShapeService as _0x6985f7,ToggleSheetsShapeFlipCommand as _0x5ab636,UniverSheetsShapePlugin as _0x337d0b,UpdateConnectorRelationCommand as _0xdc15a6,UpdateLineShapeResizeCommand as _0xa01182,UpdateSheetsShapeDataMutation as _0x46a98e}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x59b698,CommandType as _0x4d8f21,DependentOn as _0x5c3761,Disposable as _0x3ba2e2,DocumentDataModel as _0x4423a6,DrawingTypeEnum as _0x161136,FOCUSING_COMMON_DRAWINGS as _0x29948b,FOCUSING_SHAPE_TEXT_EDITOR as _0x5d8f61,HorizontalAlign as _0x365b63,ICommandService as _0x16d336,IConfigService as _0x487002,IContextService as _0x334f35,IImageIoService as _0x507a28,IURLImageService as _0x157c04,IUndoRedoService as _0x54bc12,IUniverInstanceService as _0x230412,Inject as _0x396ece,Injector as _0x3cde8e,LocaleService as _0x404764,Plugin as _0x18bfbf,UniverInstanceType as _0x2e857c,VerticalAlign as _0x2c7292,createInternalEditorID as _0x5a685c,generateRandomId as _0x44c0e2,merge as _0x575e93,toDisposable as _0x2388cf,touchDependencies as _0x28631c}from'@univerjs/core';import{CopySheetCommand as _0x4c17f0,RemoveSheetCommand as _0x213d50,SheetInterceptorService as _0x2920c2,SheetPermissionCheckController as _0x5e60fd,SheetSkeletonService as _0x587a33,SheetsSelectionsService as _0x3bd43a,UniverSheetsPlugin as _0x2afa3f,WorkbookEditablePermission as _0x8641fc,WorksheetEditPermission as _0xc6d67c,attachRangeWithCoord as _0x1a0dbd,discreteRangeToRange as _0x58837b,getSheetCommandTarget as _0x4988bb}from'@univerjs/sheets';import{IDrawingManagerService as _0x492363,SetDrawingSelectedOperation as _0x4688df,UniverDrawingPlugin as _0xc0cade,getDrawingShapeKeyByDrawingSearch as _0x566164}from'@univerjs/drawing';import{CURSOR_TYPE as _0x2bcec2,Circle as _0x18400a,DRAWING_OBJECT_LAYER_INDEX as _0x22b4b7,DocumentSkeleton as _0x5c0882,DocumentViewModel as _0x208c57,Documents as _0x11f5a9,IRenderManagerService as _0x471989,Image as _0x8d12f0,RENDER_CLASS_TYPE as _0x4550bb,SHEET_VIEWPORT_KEY as _0x3ce6e8,Shape as _0x1ac658,Transform as _0x34d861,UniverRenderEnginePlugin as _0x3bc238,Vector2 as _0x48df4c}from'@univerjs/engine-render';import{COPY_TYPE as _0x4cbf87,ISheetClipboardService as _0x1249ad,PREDEFINED_HOOK_NAME as _0x339317,SheetCanvasPopManagerService as _0x40f967,SheetPrintInterceptorService as _0x5c886c,SheetScrollManagerService as _0x22e443,SheetSkeletonManagerService as _0x319c9a,UniverSheetsUIPlugin as _0x48b0fa,deriveStateFromActiveSheet$ as _0x21923c,getCurrentRangeDisable$ as _0x4a597a,getViewportByCell as _0x4f0d4b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x5935cd,EMPTY as _0x1997e0,Observable as _0x395a42,map as _0xaa4389,of as _0x36ada1,startWith as _0x4a164f,switchMap as _0x54e619}from'rxjs';import{FormulaShapeAnimationController as _0x15286d,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x40f766,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xa70bb9,ShapeEditPanel as _0x5a7a6a,ShapeFloatingToolbar as _0x472902,ShapeGroupEnum as _0x27d7db,ShapePickerDropdown as _0x28b0d3,ShapePickerPanel as _0x4d521e,ShapeTextEditorContainer as _0x425f99,ShapeTextFloatMenuRenderControllerBase as _0x4f7f46,ShapeTextFloatToolbar as _0x34b768,UniverShapeEditorUIPlugin as _0x5409b9,activateDrawingObject as _0xbe39a,buildShapeTextDataUpdate as _0x537773,clearActiveDrawingObjects as _0x397c5e,drawFormulaShapeAnimationLayers as _0xe9ad21,getDrawingTypeNameKey as _0x242d11,getTextModel as _0x68e79b,getTextStyle as _0x5eb25a,normalizeShapeTextModel as _0x503e1,plainShapeTextToDocumentData as _0x29503c,prepareShapeTextDocumentData as _0x46cada,resolveFormulaShapeAutoFitSize as _0x18b027,resolveShapeTextDocumentRenderLayout as _0x3d35ed,resolveShapeTextEditorBehaviorShapeData as _0x57ff55,resolveShapeTextEditorWrapStrategy as _0x59e15a,shouldAllowShapeTextEditorHostSizeShrink as _0x26e8db,shouldClipShapeTextDocument as _0x44ef14,useFormulaShapeToolbar as _0x2ca04c}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x2f24d8,DrawingImageClipService as _0x323084,DrawingRenderService as _0x214f7e,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x145ec1,OBJECT_LIST_FLOATING_SECTION_ID as _0x480b8f,ObjectListPanelBase as _0x29b70f,UniverDrawingUIPlugin as _0x117474,getCurrentUnitInfo as _0x19ceb1,getObjectListPanelLabels as _0x5d1b79,getObjectListPanelSectionIdForDrawingType as _0x3a38fa,getObjectListPanelTypeName as _0x5a3cf6,insertGroupObject as _0x5c5c75}from'@univerjs/drawing-ui';import{Fragment as _0x1c48da,jsx as _0x5c23f7,jsxs as _0x57d5e2}from'react/jsx-runtime';import{UniverLicensePlugin as _0x355769}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x3a116c,UniverDocsPlugin as _0x72f746}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x45051f,DocSelectionRenderService as _0x1bed72,UniverDocsUIPlugin as _0x10fd74}from'@univerjs/docs-ui';import{DrawingApplyType as _0x34c4cd,ISheetDrawingService as _0x18f6a9,RemoveSheetDrawingCommand as _0x251e45,SetDrawingApplyMutation as _0x2118d0,SetDrawingArrangeCommand as _0x5f552c,SetSheetDrawingCommand as _0x22957d,UniverSheetsDrawingPlugin as _0x57443e,transformToAxisAlignPosition as _0x1cbaab,transformToDrawingPosition as _0x2b6fe}from'@univerjs/sheets-drawing';import{SheetDrawingAnchor as _0x2bf2cb,SheetsDrawingGroupCopyPasteController as _0x3ed6d2,UniverSheetsDrawingUIPlugin as _0x502bda}from'@univerjs/sheets-drawing-ui';import{FlipHorizontalIcon as _0x600924,FlipVerticalIcon as _0x9a7643,ObjectLayersIcon as _0x2f5e4b}from'@univerjs/icons';import{memo as _0x1b8447,useEffect as _0x329c92,useMemo as _0x4a6e48,useReducer as _0x3fe30a,useState as _0x2793a8}from'react';function kn(_0x513b43,_0x24ea92){const _0x259794=_0x52a4;let _0x38afd2={};for(let _0x4be3a3 of Object[_0x259794(0x12f)](_0x24ea92)){let _0x491147=_0x24ea92[_0x4be3a3],_0x2459c6=_0x513b43[_0x4be3a3];if(_0x491147!==void 0x0){if(_0x2459c6===void 0x0){_0x38afd2[_0x4be3a3]=void 0x0;continue;}typeof _0x491147==_0x259794(0x321)&&_0x491147&&!Array[_0x259794(0x289)](_0x491147)&&typeof _0x2459c6=='object'&&_0x2459c6&&!Array[_0x259794(0x289)](_0x2459c6)?_0x38afd2[_0x4be3a3]=kn(_0x2459c6,_0x491147):_0x38afd2[_0x4be3a3]=_0x2459c6;}}return _0x38afd2;}const An={'type':_0x4d8f21[_0x25219a(0xe5)],'id':_0x25219a(0xf4),'handler':(_0x4d0358,_0x4fca63)=>{const _0xc1d3e3=_0x25219a;let _0x4c7e1c=_0x4d0358[_0xc1d3e3(0x23e)](_0x6985f7),{unitId:_0x300b13,subUnitId:_0x183026,shapeType:_0x278b85,shapeId:_0x5bf86f,shapeData:_0x365d72,oldShapeJSON:_0x43d957}=_0x4fca63;if(!_0x4c7e1c[_0xc1d3e3(0x1f4)](_0x300b13,_0x183026,_0x5bf86f))return!0x1;let _0x54da24=_0x4d0358['get'](_0x16d336),_0x337600=_0x4d0358[_0xc1d3e3(0x23e)](_0x54bc12),{oldShapeType:_0x4dd95e,oldShapeData:_0x2be0b1={}}=_0x43d957,_0x2c939e=kn(_0x2be0b1,_0x365d72||{}),_0x4de356={'id':_0x46a98e['id'],'params':{'unitId':_0x300b13,'subUnitId':_0x183026,'shapeId':_0x5bf86f,'shapeType':_0x278b85,'shapeData':_0x365d72}},_0x3502f6={'id':_0x46a98e['id'],'params':{'unitId':_0x300b13,'subUnitId':_0x183026,'shapeId':_0x5bf86f,'shapeType':_0x4dd95e,'shapeData':_0x2c939e}};return _0x54da24[_0xc1d3e3(0x32c)](_0x4de356['id'],_0x4de356[_0xc1d3e3(0x17a)])?(_0x337600[_0xc1d3e3(0x2d1)]({'unitID':_0x300b13,'undoMutations':[_0x3502f6],'redoMutations':[_0x4de356]}),!0x0):!0x1;}};function jn(_0x349993,_0x591043,_0x4e7fd9,_0x343447,_0x41957d,_0x5ce53e){const _0x1b0131=_0x25219a;let _0x50c647={'unitId':_0x591043,'subUnitId':_0x4e7fd9,'shapeId':_0x343447,'shapeData':_0x5ce53e,'oldShapeJSON':_0x41957d};return _0x349993[_0x1b0131(0x1a6)](An['id'],_0x50c647);}function Mn(_0x5ee27b,_0x19b264,_0x553ecd,_0x1f2dcd,_0x567ce3,_0x4759a2){const _0xea842=_0x25219a;let _0x55aad1={'unitId':_0x19b264,'subUnitId':_0x553ecd,'shapeId':_0x1f2dcd,'shapeData':_0x4759a2,'oldShapeJSON':_0x567ce3};return _0x5ee27b[_0xea842(0x1a6)](An['id'],_0x55aad1);}function Nn(_0x1ca3b1){'@babel/helpers - typeof';const _0x2faf88=_0x25219a;return Nn=typeof Symbol==_0x2faf88(0x190)&&typeof Symbol[_0x2faf88(0x182)]==_0x2faf88(0xf7)?function(_0x1c0f9d){return typeof _0x1c0f9d;}:function(_0x2a9690){const _0x58f791=_0x2faf88;return _0x2a9690&&typeof Symbol=='function'&&_0x2a9690[_0x58f791(0x202)]===Symbol&&_0x2a9690!==Symbol[_0x58f791(0x129)]?_0x58f791(0xf7):typeof _0x2a9690;},Nn(_0x1ca3b1);}function Pn(_0x72e64b,_0xdfc2ab){const _0x3cd4c0=_0x25219a;if(Nn(_0x72e64b)!='object'||!_0x72e64b)return _0x72e64b;var _0x5eefaf=_0x72e64b[Symbol['toPrimitive']];if(_0x5eefaf!==void 0x0){var _0x4a1cc2=_0x5eefaf[_0x3cd4c0(0x14c)](_0x72e64b,_0xdfc2ab||_0x3cd4c0(0x293));if(Nn(_0x4a1cc2)!=_0x3cd4c0(0x321))return _0x4a1cc2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdfc2ab===_0x3cd4c0(0x216)?String:Number)(_0x72e64b);}function Fn(_0x57f7ca){const _0x196720=_0x25219a;var _0x34fbc2=Pn(_0x57f7ca,'string');return Nn(_0x34fbc2)==_0x196720(0xf7)?_0x34fbc2:_0x34fbc2+'';}function Y(_0x461dbc,_0x368a34,_0x2889d8){return(_0x368a34=Fn(_0x368a34))in _0x461dbc?Object['defineProperty'](_0x461dbc,_0x368a34,{'value':_0x2889d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x461dbc[_0x368a34]=_0x2889d8,_0x461dbc;}function In(_0x105a7d,_0x35f01c,_0x452851){const _0x1149e5=_0x25219a;let _0x192815=_0x57ff55(_0x105a7d,{..._0x35f01c,'dataModel':{..._0x35f01c[_0x1149e5(0x177)]??{},..._0x452851?{'doc':_0x452851}:null}}),_0x362327=_0x59e15a(_0x192815);return{'clip':_0x44ef14(_0x192815,_0x362327),'wrapStrategy':_0x362327};}var Ln=class extends _0x1ac658{constructor(_0x241815,_0x46fab1){const _0x1b24f0=_0x25219a;super(_0x241815,_0x46fab1),Y(this,_0x1b24f0(0x295),void 0x0),Y(this,'_formulaAnimation',new _0x15286d(()=>this['makeDirty'](!0x0),()=>this[_0x1b24f0(0xe7)]())),Y(this,'_transformCalculateSrcRect',!0x0),Y(this,_0x1b24f0(0x203),_0x161136[_0x1b24f0(0x25c)]),Y(this,_0x1b24f0(0x125),!0x0),this['_props']={..._0x46fab1},this['_formulaAnimation'][_0x1b24f0(0x11d)](_0x46fab1[_0x1b24f0(0x2be)],_0x46fab1['animateFormulaPresentation']!==!0x1),this[_0x1b24f0(0x21c)](),this[_0x1b24f0(0xe7)]();}['_init'](){const _0x102872=_0x25219a;this[_0x102872(0x18b)][_0x102872(0x1ab)](_0x5b6b00=>{const _0x23ced5=_0x102872;this[_0x23ced5(0x197)](_0x5b6b00);});}['setPrstGeom'](_0xa0172c){const _0x769e9b=_0x25219a;this[_0x769e9b(0x295)][_0x769e9b(0x11b)]=_0xa0172c;}[_0x25219a(0x2cd)](_0x2f6d52){const _0x2fa755=_0x25219a;this['_props'][_0x2fa755(0x2a8)]=_0x2f6d52,this[_0x2fa755(0x154)](!0x0);}[_0x25219a(0x2e8)](_0x25d8e2,_0x2d06d9=!0x0){const _0x3a3c52=_0x25219a;this[_0x3a3c52(0x33f)]['setPresentation'](_0x25d8e2,_0x2d06d9),this[_0x3a3c52(0x295)]['formulaPresentation']=_0x25d8e2,this['_applyFormulaAutoFitSize'](),this[_0x3a3c52(0x154)](!0x0);}[_0x25219a(0xe7)](){const _0x2fe29f=_0x25219a;let _0x2089f8=this['_props'][_0x2fe29f(0x2ac)],_0x3cadf8=_0x2089f8[_0x2fe29f(0x2c8)](),_0x3193b5=_0x503e1(_0x3cadf8==null?void 0x0:_0x3cadf8[_0x2fe29f(0x177)]),_0x3b5053=_0x3193b5==null?void 0x0:_0x3193b5[_0x2fe29f(0x13f)],_0x217d34=this[_0x2fe29f(0x33f)][_0x2fe29f(0x1ba)]();if(!_0x3b5053||_0x217d34[_0x2fe29f(0x27a)]===0x0)return;_0x2089f8[_0x2fe29f(0x256)]({'width':this[_0x2fe29f(0x11f)],'height':this[_0x2fe29f(0x270)]});let _0x31d103=_0x18b027({'documentData':_0x217d34[_0x2fe29f(0x111)](_0xcb21fd=>_0x5d87c2(_0x3b5053,_0xcb21fd)),'height':this[_0x2fe29f(0x270)],'shapeData':_0x2089f8['getShapeData'](),'textRect':_0x2089f8[_0x2fe29f(0x2c5)]({'left':0x0,'top':0x0,'width':this[_0x2fe29f(0x11f)],'height':this[_0x2fe29f(0x270)]}),'width':this[_0x2fe29f(0x11f)]});if(_0x31d103){var _0x133ae0;this['resize'](_0x31d103[_0x2fe29f(0x11f)],_0x31d103[_0x2fe29f(0x270)]),(_0x133ae0=this[_0x2fe29f(0x1fa)]())==null||(_0x133ae0=_0x133ae0[_0x2fe29f(0x31e)]())==null||_0x133ae0[_0x2fe29f(0x164)]();}}get['unitId'](){const _0x1ccf9c=_0x25219a;return this[_0x1ccf9c(0x295)][_0x1ccf9c(0x151)];}get[_0x25219a(0x21f)](){const _0x2fdaf0=_0x25219a;return this[_0x2fdaf0(0x295)]['subUnitId'];}['_updateSrcRectByTransform'](_0x4219c6){const _0x36f346=_0x25219a;if(this[_0x36f346(0x295)]['srcRect']==null||!this[_0x36f346(0x209)])return;let {width:_0x4793a4,height:_0x4fbefc}=this,{width:_0x26d7ee=0x0,height:_0x18474c=0x0}=_0x4219c6['preValue'],{left:_0x3c357a=0x0,top:_0x32f687=0x0,right:_0x59e6c7=0x0,bottom:_0x262110=0x0}=this[_0x36f346(0x295)][_0x36f346(0x2e4)],_0x33cfe9=_0x3c357a,_0x25f15c=_0x32f687,_0x4f86aa=_0x59e6c7,_0xf608c=_0x262110,_0xb5618a=!0x1;if(_0x26d7ee!==0x0&&_0x26d7ee!==_0x4793a4){let _0x4fba2b=_0x3c357a/_0x26d7ee,_0x5456d7=_0x59e6c7/_0x26d7ee;_0x33cfe9=_0x4793a4*_0x4fba2b,_0x4f86aa=_0x4793a4*_0x5456d7,_0xb5618a=!0x0;}if(_0x18474c!==0x0&&_0x18474c!==_0x4fbefc){let _0x55e336=_0x32f687/_0x18474c,_0x338368=_0x262110/_0x18474c;_0x25f15c=_0x4fbefc*_0x55e336,_0xf608c=_0x4fbefc*_0x338368,_0xb5618a=!0x0;}_0xb5618a&&this[_0x36f346(0xea)]({'left':_0x33cfe9,'top':_0x25f15c,'right':_0x4f86aa,'bottom':_0xf608c});}[_0x25219a(0xea)](_0x49bdc9){const _0x4b9706=_0x25219a;this[_0x4b9706(0x295)][_0x4b9706(0x2e4)]=_0x49bdc9,this['makeDirty'](!0x0);}['setFillImage'](_0x25bd93){const _0x2e7594=_0x25219a;this['_props'][_0x2e7594(0x234)]=_0x25bd93,this[_0x2e7594(0x154)](!0x0);}set[_0x25219a(0x298)](_0x2db38a){const _0x4fd0d0=_0x25219a;this[_0x4fd0d0(0xf3)]=_0x2db38a;}get['transform'](){const _0x112038=_0x25219a;this[_0x112038(0xf3)]||this[_0x112038(0x112)]();let _0xa4be9a=this[_0x112038(0xf3)][_0x112038(0x1a8)]();return this[_0x112038(0x17b)](_0xa4be9a);}get[_0x25219a(0x2ac)](){const _0x12abef=_0x25219a;return this[_0x12abef(0x295)][_0x12abef(0x2ac)];}get[_0x25219a(0x25a)](){const _0x23f4eb=_0x25219a;return this['_props'][_0x23f4eb(0x25a)];}get[_0x25219a(0x26d)](){const _0x21bcba=_0x25219a;return _0x4550bb[_0x21bcba(0xec)];}[_0x25219a(0x183)](_0x44fb4f,_0x24bb81,_0x1a24ce,_0x6bafcb){const _0x3b0adc=_0x25219a;let _0x43987c=this['_props'][_0x3b0adc(0x2ac)];if(!_0x43987c||!_0x24bb81)return;let _0x286f47=_0x1a24ce??this[_0x3b0adc(0x11f)],_0xf499a3=_0x6bafcb??this['height'],_0x332399={'shapeType':_0x43987c[_0x3b0adc(0x16e)](),'width':_0x286f47,'height':_0xf499a3},_0xe5bcf2={'renderMode':_0xac9789['Path'],'oKey':this['oKey'],'image':this[_0x3b0adc(0x295)][_0x3b0adc(0x234)],'angle':this[_0x3b0adc(0x26e)]};_0x43987c['updateContext'](_0x332399),_0x44fb4f[_0x3b0adc(0x173)]();let _0x33e88f={'top':0x0,'left':0x0,'width':_0x286f47,'height':_0xf499a3},_0x34f46a=_0x43987c[_0x3b0adc(0x2e5)](_0x33e88f);_0x34f46a?this[_0x3b0adc(0x195)](_0x44fb4f,_0x34f46a,_0x3c60a3=>{const _0x2d03df=_0x3b0adc;_0x43987c[_0x2d03df(0x279)](_0x3c60a3,_0x33e88f,_0xe5bcf2);}):(this['_releaseRenderCache'](),_0x43987c[_0x3b0adc(0x279)](_0x44fb4f,_0x33e88f,_0xe5bcf2)),_0x44fb4f[_0x3b0adc(0xef)]();let _0x5cd231=_0x43987c[_0x3b0adc(0x2c8)](),_0x27263c=_0x43987c[_0x3b0adc(0x2c5)](_0x33e88f),_0x59694c=_0x43987c[_0x3b0adc(0x2bc)]();if(_0x5cd231&&_0x27263c&&!_0x59694c){_0x44fb4f['save'](),this[_0x3b0adc(0x1eb)]()['flipX']&&_0x44fb4f[_0x3b0adc(0x31c)](-0x1,0x1);let _0x484264=_0x286f47/0x2,_0x12942c=_0xf499a3/0x2;_0x44fb4f[_0x3b0adc(0x1a0)](-_0x484264,-_0x12942c),_0x44fb4f['beginPath'](),this[_0x3b0adc(0x185)](_0x44fb4f,_0x5cd231,_0x27263c),_0x44fb4f[_0x3b0adc(0xef)]();}}[_0x25219a(0x273)](_0x5f25c4){}[_0x25219a(0x185)](_0x41d97f,_0x12eba1,_0x586379){const _0x53759d=_0x25219a;var _0x4196ca;this[_0x53759d(0x295)]['isEditing']||(!((_0x4196ca=_0x12eba1[_0x53759d(0x177)])!=null&&_0x4196ca[_0x53759d(0x13f)])&&_0x53759d(0x1e6)in _0x12eba1&&_0x12eba1[_0x53759d(0x1e6)]===!0x1?this[_0x53759d(0x2f7)](_0x41d97f,_0x12eba1,_0x586379):this[_0x53759d(0x2e6)](_0x41d97f,_0x12eba1,_0x586379));}[_0x25219a(0x2f7)](_0xf08f47,_0x4c01a6,_0x7bfd7a){const _0x496698=_0x25219a;this[_0x496698(0x2e6)](_0xf08f47,{..._0x4c01a6,'text':_0x4c01a6[_0x496698(0x229)]??'','dataModel':{'doc':_0x29503c(_0x4c01a6,_0x496698(0x283)+this[_0x496698(0x161)])}},_0x7bfd7a);}[_0x25219a(0x2e6)](_0x296628,_0x29a6f0,_0x416d3c){const _0x31edac=_0x25219a;_0xe9ad21(_0x296628,this[_0x31edac(0x33f)],(_0x3a5702,_0x308717)=>{const _0x20d229=_0x31edac;this[_0x20d229(0x342)](_0x3a5702,_0x29a6f0,_0x416d3c,_0x308717);});}[_0x25219a(0x342)](_0x3a3122,_0x5e2054,_0x243b64,_0x23b334){const _0x269d84=_0x25219a;let _0xafcd6=this[_0x269d84(0x295)]['localeService'];if(!_0x5e2054[_0x269d84(0x177)]||!_0xafcd6)return;let _0x18221c=_0x503e1(_0x5e2054[_0x269d84(0x177)]);if(!_0x18221c)return;let _0x2147ec=_0x18221c['doc'];if(!_0x2147ec)return;let _0x29c912=_0x5d87c2(_0x2147ec,_0x23b334),_0x351ed1=_0x18221c['va']??_0x2c7292['TOP'],_0x10ff9e=_0x18221c['ha']??_0x365b63[_0x269d84(0x215)],_0x3b5708=In(this[_0x269d84(0x295)][_0x269d84(0x2ac)][_0x269d84(0x23b)](),_0x5e2054,_0x29c912),_0x2d73f2=_0x5e2054[_0x269d84(0x1f9)],_0x495db7=new _0x4423a6(_0x46cada(_0x29c912,{'isHorizontal':_0x2d73f2!==!0x1,'textRect':_0x243b64,'verticalAlign':_0x351ed1,'horizontalAlign':_0x10ff9e,'wrapStrategy':_0x3b5708[_0x269d84(0x1ce)]})),_0x1535e3=new _0x208c57(_0x495db7),_0x493f35=_0x5c0882[_0x269d84(0x311)](_0x1535e3,_0xafcd6);_0x493f35['calculate']();let _0x167977=_0x493f35[_0x269d84(0x217)]()[_0x269d84(0x113)],_0x2da1f3=_0x3d35ed({'contentHeight':_0x167977,'verticalAlign':_0x351ed1,'viewportHeight':_0x243b64[_0x269d84(0x270)]});_0x495db7['updateDocumentStyle']({'pageSize':{'width':_0x2d73f2===!0x1?_0x243b64[_0x269d84(0x270)]:_0x243b64[_0x269d84(0x11f)],'height':_0x2da1f3[_0x269d84(0x20d)]}}),_0x495db7[_0x269d84(0x2a2)]({'t':_0x2da1f3[_0x269d84(0x246)]}),_0x493f35[_0x269d84(0xdd)]();let _0x5b49e5=new _0x11f5a9(_0x269d84(0x31b)+this[_0x269d84(0x161)],_0x493f35,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x269d84(0x154)](!0x0)});_0x5b49e5[_0x269d84(0x33a)](_0x243b64[_0x269d84(0x11f)],_0x2da1f3[_0x269d84(0x20d)]),_0x3a3122[_0x269d84(0x173)](),_0x3a3122[_0x269d84(0x18a)](_0x243b64[_0x269d84(0x242)],_0x243b64['top']),_0x3b5708[_0x269d84(0x33e)]&&(_0x3a3122['beginPath'](),_0x3a3122[_0x269d84(0x174)](0x0,_0x2da1f3[_0x269d84(0x118)],_0x243b64[_0x269d84(0x11f)],_0x2da1f3[_0x269d84(0x1d0)]),_0x3a3122[_0x269d84(0x33e)]()),_0x2da1f3[_0x269d84(0x115)]&&_0x3a3122[_0x269d84(0x18a)](0x0,_0x2da1f3[_0x269d84(0x115)]),_0x5b49e5[_0x269d84(0x2f3)](_0x3a3122),_0x3a3122[_0x269d84(0xef)](),_0x5b49e5['dispose'](),_0x493f35['dispose'](),_0x1535e3[_0x269d84(0x259)](),_0x495db7[_0x269d84(0x259)]();}[_0x25219a(0x279)](_0x5e08e8,_0x55ec4f,_0x5536f1=!0x1){const _0x2c93f9=_0x25219a;if(!this[_0x2c93f9(0x1c0)])return this[_0x2c93f9(0x154)](!0x1),this;let {width:_0x22581e,height:_0x89fdd6,left:_0x3cf192,top:_0x55eb23}=this,_0x231c72=this[_0x2c93f9(0x1d4)]();if(_0x22581e=_0x231c72[_0x2c93f9(0x11f)],_0x89fdd6=_0x231c72[_0x2c93f9(0x270)],_0x3cf192=_0x231c72[_0x2c93f9(0x242)],_0x55eb23=_0x231c72[_0x2c93f9(0x1e8)],this[_0x2c93f9(0x2ca)](_0x55ec4f)){let {top:_0x8c8be7,left:_0x46a411,bottom:_0x21b6d8,right:_0x1bdbdd}=_0x55ec4f['viewBound'];if(_0x22581e+this['strokeWidth']+_0x3cf192<_0x46a411||_0x1bdbdd<_0x3cf192||_0x89fdd6+this['strokeWidth']+_0x55eb23<_0x8c8be7||_0x21b6d8<_0x55eb23)return this;}let _0x54915c=_0x3cf192+_0x22581e/0x2,_0x49a3f7=_0x55eb23+_0x89fdd6/0x2,_0x15c77b=this[_0x2c93f9(0x298)][_0x2c93f9(0x258)]();if(this[_0x2c93f9(0x295)]['isEditing']){let _0x5f325a=this[_0x2c93f9(0x1eb)](),_0x44d4c9=new _0x34d861();_0x44d4c9['composeMatrix']({..._0x5f325a}),_0x15c77b=_0x44d4c9[_0x2c93f9(0x258)]();}return _0x5e08e8['save'](),this[_0x2c93f9(0x295)][_0x2c93f9(0x2ac)][_0x2c93f9(0x110)]===!0x0||_0x5e08e8[_0x2c93f9(0x298)](_0x15c77b[0x0],_0x15c77b[0x1],_0x15c77b[0x2],_0x15c77b[0x3],_0x54915c,_0x49a3f7),this[_0x2c93f9(0x183)](_0x5e08e8,_0x55ec4f,_0x22581e,_0x89fdd6),_0x5e08e8[_0x2c93f9(0xef)](),this[_0x2c93f9(0x154)](!0x1),this;}['getInverseCoord'](_0xf6f33e){const _0x23db5d=_0x25219a;let {left:_0x1653c5,top:_0x16e782,width:_0x4c08a8,height:_0x24c0bc}=this['getRealBound'](),_0x3c18c8=this['transform'][_0x23db5d(0x258)](),_0x2be32a=_0x1653c5+_0x4c08a8/0x2,_0x54cda7=_0x16e782+_0x24c0bc/0x2,_0x1e06b1=new _0x34d861([_0x3c18c8[0x0],_0x3c18c8[0x1],_0x3c18c8[0x2],_0x3c18c8[0x3],_0x2be32a,_0x54cda7]),_0x1c0f51=this[_0x23db5d(0x28c)]();return(this[_0x23db5d(0x1f6)]&&(_0x1c0f51==null?void 0x0:_0x1c0f51[_0x23db5d(0x26d)])===_0x4550bb[_0x23db5d(0x1fd)]?_0x1c0f51[_0x23db5d(0x20c)][_0x23db5d(0x15c)](_0x1e06b1):_0x1e06b1)['invert']()[_0x23db5d(0x317)](_0xf6f33e);}['isHit'](_0x5d383b){const _0x47062b=_0x25219a;let {left:_0x4864e3,top:_0xb072a0,width:_0x603e43,height:_0x305cf6}=this['getRealBound'](),_0x43d159=_0x4864e3+_0x603e43/0x2,_0x636108=_0xb072a0+_0x305cf6/0x2,_0x24b3e2=this[_0x47062b(0x298)]['getMatrix'](),_0x1b4fb9=new _0x34d861([_0x24b3e2[0x0],_0x24b3e2[0x1],_0x24b3e2[0x2],_0x24b3e2[0x3],_0x43d159,_0x636108]),_0x4c9545=this['getParent'](),_0x413de7=(this[_0x47062b(0x1f6)]&&(_0x4c9545==null?void 0x0:_0x4c9545[_0x47062b(0x26d)])===_0x4550bb[_0x47062b(0x1fd)]?_0x4c9545['ancestorTransform'][_0x47062b(0x15c)](_0x1b4fb9):_0x1b4fb9)['invert']()['applyPoint'](_0x5d383b),_0x364893=_0x603e43/0x2,_0x33fbb3=_0x305cf6/0x2,_0x26dc94=this[_0x47062b(0x295)][_0x47062b(0x2ac)];return _0x26dc94&&_0x26dc94[_0x47062b(0x2bc)]()?_0x26dc94[_0x47062b(0x1c9)](_0x413de7['x'],_0x413de7['y'],_0x603e43,_0x305cf6):_0x413de7['x']>=-_0x364893-this[_0x47062b(0x2b7)]/0x2&&_0x413de7['x']<=_0x364893+this[_0x47062b(0x2b7)]/0x2&&_0x413de7['y']>=-_0x33fbb3-this['strokeWidth']/0x2&&_0x413de7['y']<=_0x33fbb3+this[_0x47062b(0x2b7)]/0x2;}[_0x25219a(0x259)](){const _0x510d10=_0x25219a;this[_0x510d10(0x33f)][_0x510d10(0x259)](),this['_props']['shapeModel']=null,super[_0x510d10(0x259)]();}},Rn=class extends _0x1ac658{constructor(_0x500e4b,_0x5b7d1a){const _0x326445=_0x25219a;super(_0x500e4b,_0x5b7d1a),Y(this,'_shapeId',null),Y(this,'_adjName',null),Y(this,_0x326445(0x1c5),null),Y(this,'_subUnitId',null),_0x5b7d1a&&this[_0x326445(0x2f6)](_0x5b7d1a);}[_0x25219a(0x198)](){const _0x21cd42=_0x25219a;return{'unitId':this[_0x21cd42(0x1c5)],'subUnitId':this[_0x21cd42(0x333)],'drawingId':this[_0x21cd42(0x13e)]};}['setShapeProps'](_0x3540a5){const _0x5a9bc5=_0x25219a;_0x3540a5[_0x5a9bc5(0x25a)]!==void 0x0&&(this[_0x5a9bc5(0x13e)]=_0x3540a5['shapeId']),_0x3540a5[_0x5a9bc5(0x1ae)]!==void 0x0&&(this[_0x5a9bc5(0x1b5)]=_0x3540a5[_0x5a9bc5(0x1ae)]),_0x3540a5[_0x5a9bc5(0x151)]!==void 0x0&&(this[_0x5a9bc5(0x1c5)]=_0x3540a5[_0x5a9bc5(0x151)]),_0x3540a5['subUnitId']!==void 0x0&&(this[_0x5a9bc5(0x333)]=_0x3540a5['subUnitId']),this[_0x5a9bc5(0xfd)]({'width':_0x3540a5['width'],'height':_0x3540a5[_0x5a9bc5(0x270)]});}['_draw'](_0x2ae69f){const _0x5a863e=_0x25219a;_0x18400a[_0x5a863e(0x230)](_0x2ae69f,{'radius':_0x373ebe[_0x5a863e(0x1bf)],'fill':_0x373ebe[_0x5a863e(0x238)],'stroke':_0x373ebe[_0x5a863e(0x16f)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x2dbbca,_0x2f5924){return function(_0x432245,_0x5bc01b){_0x2f5924(_0x432245,_0x5bc01b,_0x2dbbca);};}function Z(_0x35a01a,_0x284ce1,_0x1fc732,_0x2ae229){const _0x20e3a4=_0x25219a;var _0x3b96cc=arguments[_0x20e3a4(0x27a)],_0x7c70ca=_0x3b96cc<0x3?_0x284ce1:_0x2ae229===null?_0x2ae229=Object['getOwnPropertyDescriptor'](_0x284ce1,_0x1fc732):_0x2ae229,_0x4f846d;if(typeof Reflect==_0x20e3a4(0x321)&&typeof Reflect[_0x20e3a4(0x224)]==_0x20e3a4(0x190))_0x7c70ca=Reflect[_0x20e3a4(0x224)](_0x35a01a,_0x284ce1,_0x1fc732,_0x2ae229);else{for(var _0x39a06e=_0x35a01a['length']-0x1;_0x39a06e>=0x0;_0x39a06e--)(_0x4f846d=_0x35a01a[_0x39a06e])&&(_0x7c70ca=(_0x3b96cc<0x3?_0x4f846d(_0x7c70ca):_0x3b96cc>0x3?_0x4f846d(_0x284ce1,_0x1fc732,_0x7c70ca):_0x4f846d(_0x284ce1,_0x1fc732))||_0x7c70ca);}return _0x3b96cc>0x3&&_0x7c70ca&&Object[_0x20e3a4(0x251)](_0x284ce1,_0x1fc732,_0x7c70ca),_0x7c70ca;}let Q=class extends _0x3ba2e2{constructor(_0x4bc30c,_0x5b4472,_0x40765c,_0x176fd9,_0x27227a,_0x493538){const _0x14931a=_0x25219a;super(),this[_0x14931a(0x284)]=_0x4bc30c,this['_sheetsShapeService']=_0x5b4472,this[_0x14931a(0x1f0)]=_0x40765c,this[_0x14931a(0x14b)]=_0x176fd9,this['_urlImageService']=_0x27227a,this['_shapeFormulaService']=_0x493538,Y(this,_0x14931a(0x2b2),new Map()),this[_0x14931a(0x1b1)](this['_shapeFormulaService'][_0x14931a(0x14e)][_0x14931a(0x1a5)](_0x437e9c=>{const _0x33068e=_0x14931a;var _0x21a051;(_0x21a051=this[_0x33068e(0x2b2)]['get'](this[_0x33068e(0x146)](_0x437e9c[_0x33068e(0x151)],_0x437e9c[_0x33068e(0x21f)],_0x437e9c[_0x33068e(0x25a)])))==null||_0x21a051[_0x33068e(0x162)](_0x1d6733=>_0x1d6733[_0x33068e(0x2e8)](_0x437e9c['presentation'],_0x437e9c[_0x33068e(0x2c3)]));})),this[_0x14931a(0x1b1)](this[_0x14931a(0x284)][_0x14931a(0x2c0)][_0x14931a(0x1a5)](_0x2cfb3f=>{_0x2cfb3f['forEach'](_0x4276fb=>{const _0x59ef2a=_0x52a4;this['_shapeFormulaService'][_0x59ef2a(0x13a)]({'unitId':_0x4276fb[_0x59ef2a(0x151)],'subUnitId':_0x4276fb[_0x59ef2a(0x21f)],'shapeId':_0x4276fb[_0x59ef2a(0x2c2)]}),this[_0x59ef2a(0x2b2)][_0x59ef2a(0x1d3)](this[_0x59ef2a(0x146)](_0x4276fb[_0x59ef2a(0x151)],_0x4276fb[_0x59ef2a(0x21f)],_0x4276fb['drawingId']));});}));}[_0x25219a(0x32b)](_0x35645e,_0x755f8e,_0x1dbb3f){const _0x1a7269=_0x25219a;let {transform:_0x16f213,drawingType:_0x32eb98,srcRect:_0x1b6c39,prstGeom:_0x37304e,groupId:_0x38a589,unitId:_0x4d9e20,subUnitId:_0x5035f0,drawingId:_0x16fcde,isMultiTransform:_0xacf0bd,transforms:_0x3aada0,hidden:_0x3974a9,selectable:_0x109d3e}=_0x35645e;if(_0x32eb98!==_0x161136['DRAWING_SHAPE']||!this[_0x1a7269(0x284)]['getDrawingVisible']()||_0x16f213==null)return;let _0x32d9b8=this[_0x1a7269(0x284)]['getDrawingEditable']();_0x32d9b8&&_0x755f8e[_0x1a7269(0x2b5)](_0x40f766);let _0x5d7564=_0xacf0bd&&_0x3aada0?_0x3aada0:[_0x16f213],_0x320874=[];for(let _0x5a4e25 of _0x5d7564){let {left:_0x460883,top:_0x13c1e9,width:_0x48f1c8,height:_0x1f923c,angle:_0x3acc80,flipX:_0x5e2e49,flipY:_0x5ee29b,skewX:_0x6a5e10,skewY:_0x508ab3}=_0x5a4e25,_0x4b5e2f=_0x5d7564[_0x1a7269(0x20a)](_0x5a4e25),_0x587c5c=_0x566164({'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'drawingId':_0x16fcde},_0xacf0bd?_0x4b5e2f:void 0x0),_0x138c2a=_0x755f8e['getObjectIncludeInGroup'](_0x587c5c);if(_0x138c2a!=null){let _0x4f9fe3={'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'shapeId':_0x16fcde};_0x138c2a instanceof Ln&&this[_0x1a7269(0xf2)](_0x138c2a,_0x4f9fe3),_0x138c2a[_0x1a7269(0xfd)]({'left':_0x460883,'top':_0x13c1e9,'width':_0x48f1c8,'height':_0x1f923c,'angle':_0x3acc80,'flipX':_0x5e2e49,'flipY':_0x5ee29b,'skewX':_0x6a5e10,'skewY':_0x508ab3});continue;}let _0xf7fa04=this[_0x1a7269(0x284)][_0x1a7269(0x337)](_0x4d9e20,_0x5035f0),_0x4579d9=_0xf7fa04['indexOf'](_0x16fcde);if(_0x755f8e[_0x1a7269(0x15b)](_0x587c5c)||!this[_0x1a7269(0x284)]['getDrawingVisible']())continue;let _0x4ce1f8=this[_0x1a7269(0x124)][_0x1a7269(0x1f4)](_0x4d9e20,_0x5035f0,_0x16fcde);if(!_0x4ce1f8)continue;let _0x519a99=_0x41a954(_0x4ce1f8['getShapeType']()),_0xb701c6=_0x4ce1f8[_0x1a7269(0x23b)]()[_0x1a7269(0x1c6)],_0x2e6e65={'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'shapeId':_0x16fcde};_0xb701c6&&this[_0x1a7269(0x2d3)]['register'](_0x2e6e65,_0xb701c6);let _0x9f3231=new Ln(_0x587c5c,{..._0x519a99?{..._0x5a4e25,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5a4e25},'zIndex':_0x4579d9===-0x1?_0xf7fa04[_0x1a7269(0x27a)]-0x1:_0x4579d9,'shapeModel':_0x4ce1f8,'localeService':this[_0x1a7269(0x1f0)],'shapeId':_0x16fcde,'unitId':_0x4d9e20,'subUnitId':_0x5035f0,'visible':_0x3974a9!==!0x0,'evented':_0x109d3e!==!0x1,'formulaPresentation':_0xb701c6?this['_shapeFormulaService'][_0x1a7269(0x29b)](_0x2e6e65):void 0x0,'animateFormulaPresentation':(_0xb701c6==null?void 0x0:_0xb701c6[_0x1a7269(0x2c3)])!==!0x1});if(_0xb701c6){let _0x4b54d0=this[_0x1a7269(0x146)](_0x4d9e20,_0x5035f0,_0x16fcde),_0x36492b=this['_formulaShapes'][_0x1a7269(0x23e)](_0x4b54d0)??new Set();_0x36492b[_0x1a7269(0x119)](_0x9f3231),this[_0x1a7269(0x2b2)]['set'](_0x4b54d0,_0x36492b);}_0x755f8e[_0x1a7269(0xe6)](_0x9f3231,_0x22b4b7),_0x32d9b8&&_0x755f8e[_0x1a7269(0x12d)](_0x9f3231),_0x38a589&&_0x5c5c75({'drawingId':_0x38a589,'unitId':_0x4d9e20,'subUnitId':_0x5035f0},_0x9f3231,_0x755f8e,this[_0x1a7269(0x284)]),_0x37304e!=null&&_0x9f3231[_0x1a7269(0x1f3)](_0x37304e),_0x1b6c39!=null&&_0x9f3231['setSrcRect'](_0x1b6c39);let _0x127c44=this['_loadShapePictureFill'](_0x9f3231,_0x4ce1f8[_0x1a7269(0x23b)]());if(_0x127c44){var _0x4f3de7;_0x1dbb3f==null||(_0x4f3de7=_0x1dbb3f[_0x1a7269(0x1ca)])==null||_0x4f3de7[_0x1a7269(0x119)](_0x127c44);}_0x320874[_0x1a7269(0xfc)](_0x9f3231);}return _0x320874;}[_0x25219a(0x146)](_0x48a279,_0x2436f7,_0x1e73d9){return _0x48a279+'\x00'+_0x2436f7+'\x00'+_0x1e73d9;}[_0x25219a(0xf2)](_0x5ed695,_0x263a2e){const _0x31abf4=_0x25219a;let _0x33e5ad=this['_sheetsShapeService'][_0x31abf4(0x1f4)](_0x263a2e[_0x31abf4(0x151)],_0x263a2e[_0x31abf4(0x21f)],_0x263a2e[_0x31abf4(0x25a)]),_0x3bbd08=_0x33e5ad==null?void 0x0:_0x33e5ad[_0x31abf4(0x23b)]()[_0x31abf4(0x1c6)],_0x394eb4=this[_0x31abf4(0x146)](_0x263a2e[_0x31abf4(0x151)],_0x263a2e['subUnitId'],_0x263a2e[_0x31abf4(0x25a)]);if(_0x3bbd08){this['_shapeFormulaService']['register'](_0x263a2e,_0x3bbd08);let _0x16917b=this['_formulaShapes'][_0x31abf4(0x23e)](_0x394eb4)??new Set();_0x16917b[_0x31abf4(0x119)](_0x5ed695),this['_formulaShapes'][_0x31abf4(0x10e)](_0x394eb4,_0x16917b);}else{var _0x2aac94;this[_0x31abf4(0x2d3)][_0x31abf4(0x13a)](_0x263a2e),(_0x2aac94=this[_0x31abf4(0x2b2)]['get'](_0x394eb4))==null||_0x2aac94[_0x31abf4(0x1d3)](_0x5ed695);}_0x5ed695[_0x31abf4(0x2e8)](_0x3bbd08?this['_shapeFormulaService'][_0x31abf4(0x29b)](_0x263a2e):void 0x0,(_0x3bbd08==null?void 0x0:_0x3bbd08[_0x31abf4(0x2c3)])!==!0x1);}[_0x25219a(0x2ba)](_0x16c845){const _0x2c385b=_0x25219a;let _0x867712=_0x16c845['shapeModel'][_0x2c385b(0x23b)](),_0x295913=_0x867712[_0x2c385b(0x233)];if(!_0x295913||_0x295913[_0x2c385b(0x178)]!==_0x83e268[_0x2c385b(0x12a)]||!_0x295913[_0x2c385b(0x181)]){_0x16c845[_0x2c385b(0x1d2)](void 0x0);return;}this['_loadShapePictureFill'](_0x16c845,_0x867712);}[_0x25219a(0x134)](_0x1033cf,_0x366877){const _0x1d390c=_0x25219a;let _0x4f9dac=_0x366877['fill'];if(!_0x4f9dac||_0x4f9dac[_0x1d390c(0x178)]!==_0x83e268[_0x1d390c(0x12a)]||!_0x4f9dac[_0x1d390c(0x181)])return;let _0x769893=_0x4f9dac[_0x1d390c(0x181)],_0x423b1b=_0x4f9dac[_0x1d390c(0x1a7)]??_0x5a6853['URL'],_0x4b60f2=this[_0x1d390c(0x14b)][_0x1d390c(0x1d6)](_0x769893,_0x423b1b);if(_0x4b60f2){_0x1033cf[_0x1d390c(0x1d2)](_0x4b60f2);return;}return this['_loadAndSetImage'](_0x1033cf,_0x769893,_0x423b1b);}async[_0x25219a(0x15f)](_0x1e21f5,_0x3d433a,_0x4b1b30){const _0x491085=_0x25219a;let _0x5342da;try{if(_0x4b1b30===_0x5a6853['UUID'])_0x5342da=await this[_0x491085(0x14b)][_0x491085(0x127)](_0x3d433a);else{if(_0x4b1b30===_0x5a6853['URL'])try{_0x5342da=await this[_0x491085(0x2e2)][_0x491085(0x127)](_0x3d433a);}catch{_0x5342da=_0x3d433a;}else _0x5342da=_0x3d433a;}}catch(_0x2bc3fa){console['error'](_0x491085(0x31d),_0x2bc3fa);return;}await new Promise(_0x5c4344=>{const _0xa2ab34=_0x491085;let _0x4a8c1e=new window['Image']();_0x4a8c1e[_0xa2ab34(0x20b)]=()=>{const _0x386c82=_0xa2ab34;this['_imageIoService'][_0x386c82(0x189)](_0x3d433a,_0x4b1b30,_0x4a8c1e),_0x1e21f5[_0x386c82(0x1d2)](_0x4a8c1e),_0x5c4344();},_0x4a8c1e[_0xa2ab34(0x21e)]=()=>{const _0x570d32=_0xa2ab34;console['error'](_0x570d32(0x1e7),_0x3d433a),_0x5c4344();},_0x4a8c1e['src']=_0x5342da;});}};Q=Z([X(0x0,_0x492363),X(0x1,_0x396ece(_0x6985f7)),X(0x2,_0x396ece(_0x404764)),X(0x3,_0x507a28),X(0x4,_0x157c04),X(0x5,_0x396ece(_0x2c2995))],Q);let zn=class extends _0x3ba2e2{constructor(_0x34d9f6,_0x502b6b,_0x40dd65,_0x43749b,_0x14cc11,_0x594be6){const _0x55b0b3=_0x25219a;super(),this[_0x55b0b3(0x284)]=_0x34d9f6,this[_0x55b0b3(0x124)]=_0x502b6b,this[_0x55b0b3(0x145)]=_0x40dd65,this[_0x55b0b3(0x26a)]=_0x43749b,this[_0x55b0b3(0xfe)]=_0x14cc11,this[_0x55b0b3(0x2cc)]=_0x594be6,Y(this,_0x55b0b3(0x25d),null),Y(this,_0x55b0b3(0x1c5),null),Y(this,_0x55b0b3(0x333),null),Y(this,_0x55b0b3(0x1e1),void 0x0),Y(this,_0x55b0b3(0x27d),[]),Y(this,_0x55b0b3(0x179),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x55b0b3(0x2ed),0x0),Y(this,_0x55b0b3(0xf5),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,_0x55b0b3(0x23c),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x55b0b3(0x22f),void 0x0),Y(this,_0x55b0b3(0x16b),void 0x0),Y(this,_0x55b0b3(0x22b),!0x1),this[_0x55b0b3(0x132)](),this[_0x55b0b3(0x231)]();}[_0x25219a(0x260)](_0xf54210,_0x4708d8,_0x208204){const _0x4dc3aa=_0x25219a;let _0x461cd2=this[_0x4dc3aa(0x124)][_0x4dc3aa(0x1f4)](_0xf54210,_0x4708d8,_0x208204);if(_0x461cd2)return _0x461cd2[_0x4dc3aa(0x273)]();}[_0x25219a(0x2e1)](){const _0x1ea52d=_0x25219a;this[_0x1ea52d(0x266)]();}[_0x25219a(0x10b)](){const _0x1f48e3=_0x25219a;this[_0x1f48e3(0x1cf)](!0x0);}[_0x25219a(0x221)](_0x4e7a7f){const _0x32085d=_0x25219a;this[_0x32085d(0x22b)]=_0x4e7a7f;}[_0x25219a(0x1d9)](_0x4c6791,_0x5a3f9f,_0x16115b,_0x403209){const _0x17e2bf=_0x25219a;let _0x4a9878=this[_0x17e2bf(0x124)][_0x17e2bf(0x1f4)](_0x4c6791,_0x5a3f9f,_0x16115b);if(_0x4a9878)return _0x4a9878[_0x17e2bf(0x1bc)](_0x403209);}[_0x25219a(0x166)](_0x4ee021=!0x1){const _0x27ea15=_0x25219a;if(this[_0x27ea15(0x1c5)]===null||this[_0x27ea15(0x333)]===null||this[_0x27ea15(0x25d)]===null)return;let _0x201bc2=this[_0x27ea15(0x145)][_0x27ea15(0x1dd)](this[_0x27ea15(0x1c5)]);if(!_0x201bc2||!_0x201bc2[_0x27ea15(0xe3)](_0x319c9a)[_0x27ea15(0xde)]())return;let {scene:_0x4970c3}=_0x201bc2,_0x2dfd17={'unitId':this[_0x27ea15(0x1c5)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},_0xa3fcd=this[_0x27ea15(0x284)][_0x27ea15(0x30c)](_0x2dfd17),{transform:_0x60fe7e}=_0xa3fcd;if(!_0x60fe7e||_0xa3fcd['drawingType']!==_0x161136[_0x27ea15(0x25c)])return;let {left:_0x69557,top:_0x1b47cc,width:_0x48c838,height:_0x67ad84,flipX:_0x2a0c5c,flipY:_0x5cc0d1,angle:_0x722cef=0x0}=_0x60fe7e;if(_0x69557===void 0x0||_0x1b47cc===void 0x0)return;if(_0x4ee021){let _0x175cbe=this[_0x27ea15(0x124)]['getShapeModel'](this[_0x27ea15(0x1c5)],this['_subUnitId'],this[_0x27ea15(0x25d)]);_0x175cbe==null||_0x175cbe['updateContext']({'width':_0x48c838??0x0,'height':_0x67ad84??0x0}),this['_activeShapeAdjustPointList']=_0x175cbe==null?void 0x0:_0x175cbe[_0x27ea15(0x273)]();}let _0x4261e0=this[_0x27ea15(0x1e1)];for(let _0x343f26=0x0;_0x343f26<_0x4261e0[_0x27ea15(0x27a)];_0x343f26++){let _0x4b99ac=_0x4261e0[_0x343f26],_0x289370=_0x4b99ac['x'],_0x17573c=_0x4b99ac['y'];if(_0x2a0c5c&&(_0x289370=(_0x48c838||0x0)-_0x289370),_0x5cc0d1&&(_0x17573c=(_0x67ad84||0x0)-_0x17573c),_0x722cef!==0x0){let _0x3e261d=(_0x48c838||0x0)/0x2,_0x2a966a=(_0x67ad84||0x0)/0x2,_0x25666d=_0x722cef*Math['PI']/0xb4,_0x3cc85b=Math[_0x27ea15(0x214)](_0x25666d),_0x153d8d=Math[_0x27ea15(0x1fc)](_0x25666d),_0x3e3d9b=_0x289370-_0x3e261d,_0x105d26=_0x17573c-_0x2a966a;_0x289370=_0x3e261d+(_0x3e3d9b*_0x3cc85b-_0x105d26*_0x153d8d),_0x17573c=_0x2a966a+(_0x3e3d9b*_0x153d8d+_0x105d26*_0x3cc85b);}let _0x406c5c={'x':_0x289370,'y':_0x17573c,'adjName':_0x4b99ac[_0x27ea15(0x1ae)]};this[_0x27ea15(0x199)](_0x4970c3,_0x406c5c,_0x406c5c[_0x27ea15(0x1ae)],_0x69557,_0x1b47cc,this[_0x27ea15(0x1c5)],this['_subUnitId']);}}[_0x25219a(0x1cf)](_0x4f09df=!0x1){const _0x12814a=_0x25219a;_0x4f09df&&(this[_0x12814a(0x266)](),this[_0x12814a(0x166)](_0x4f09df));}[_0x25219a(0x199)](_0x2d969c,_0x2676f0,_0x4157bd,_0x14cc35,_0x5333ae,_0xad8125,_0x21187f){const _0xb55ae3=_0x25219a;if(!this['_activeShapeId'])return;let _0x3be8f6=_0x2d969c[_0xb55ae3(0x15b)]('shape-adjust-point-'+this[_0xb55ae3(0x25d)]+'-'+_0x4157bd);if(_0x3be8f6){_0x3be8f6['transformByState']({'left':_0x2676f0['x']+_0x14cc35-_0x373ebe['adjHandleSize'],'top':_0x2676f0['y']+_0x5333ae-_0x373ebe[_0xb55ae3(0x1bf)]});return;}let _0x2dd6db={'left':_0x2676f0['x']+_0x14cc35-_0x373ebe[_0xb55ae3(0x1bf)],'top':_0x2676f0['y']+_0x5333ae-_0x373ebe[_0xb55ae3(0x1bf)],'adjName':_0x4157bd,'shapeId':this[_0xb55ae3(0x25d)],'unitId':_0xad8125,'subUnitId':_0x21187f,'width':_0x373ebe['adjHandleSize']+0x8,'height':_0x373ebe['adjHandleSize']+0x8,'zIndex':_0x22b4b7+0x1,'evented':!0x0},_0x2fc7db=new Rn(_0xb55ae3(0x220)+this[_0xb55ae3(0x25d)]+'-'+_0x4157bd,_0x2dd6db);this['_shapes'][_0xb55ae3(0xfc)](_0x2fc7db),this[_0xb55ae3(0x272)](_0x2fc7db,_0x2d969c,_0x4157bd),_0x2d969c[_0xb55ae3(0xe6)](_0x2fc7db,_0x22b4b7+0x1);}[_0x25219a(0x266)](){const _0x17ca0d=_0x25219a;this[_0x17ca0d(0x27d)]['length']!==0x0&&(this[_0x17ca0d(0x27d)][_0x17ca0d(0x162)](_0x5825bf=>{const _0x539515=_0x17ca0d;_0x5825bf[_0x539515(0x259)]();}),this['_shapes']=[]);}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x25219a(0x314)](_0x46592a,_0x1cb353){const _0x4ea8f0=_0x25219a;var _0x26866c;let _0xb348f1={'x':0x0,'y':0x0};if(!_0x46592a||!_0x1cb353)return _0xb348f1;let _0x412f48=this['_renderManagerService'][_0x4ea8f0(0x1dd)](_0x46592a);if(!_0x412f48||!_0x412f48[_0x4ea8f0(0xe3)](_0x319c9a)[_0x4ea8f0(0x22d)](_0x1cb353))return _0xb348f1;let _0x26f928=_0x412f48[_0x4ea8f0(0xe3)](_0x22e443),_0x173495=_0x26f928==null?void 0x0:_0x26f928['getCurrentScrollState']();if(!_0x173495)return _0xb348f1;let _0x29b8fa=(_0x26866c=this[_0x4ea8f0(0xfe)][_0x4ea8f0(0x11e)](_0x46592a))==null?void 0x0:_0x26866c['getSheetBySheetId'](_0x1cb353);if(!_0x29b8fa)return _0xb348f1;let _0x54010b=_0x4f0d4b(_0x173495[_0x4ea8f0(0x1cc)],_0x173495[_0x4ea8f0(0x18c)],_0x412f48[_0x4ea8f0(0x19b)],_0x29b8fa);return _0x54010b?{'x':_0x54010b['viewportScrollX'],'y':_0x54010b[_0x4ea8f0(0x24b)]}:_0xb348f1;}[_0x25219a(0x1aa)](_0x7f89e9,_0x1f0587){const _0x204630=_0x25219a;var _0x233dcf;let _0xf9ac3f=(_0x233dcf=this[_0x204630(0xfe)][_0x204630(0x11e)](_0x7f89e9))==null?void 0x0:_0x233dcf['getSheetBySheetId'](_0x1f0587);return(_0xf9ac3f==null?void 0x0:_0xf9ac3f[_0x204630(0x310)]())??0x1;}[_0x25219a(0x272)](_0x9b606c,_0x4815ef,_0x4cc1e1){const _0x1f3241=_0x25219a;this['disposeWithMe'](_0x2388cf(_0x9b606c['onPointerDown$'][_0x1f3241(0x1ab)]((_0x4bd365,_0x7c94d0)=>{const _0x1ec54d=_0x1f3241;var _0x5a4627,_0x49903d,_0xbf0401,_0x1a1297;let _0x543881=_0x9b606c['getDrawingSearch']();this[_0x1ec54d(0x23c)]=this[_0x1ec54d(0x1d9)](_0x543881[_0x1ec54d(0x151)],_0x543881[_0x1ec54d(0x21f)],_0x543881[_0x1ec54d(0x2c2)],_0x4cc1e1),this['_activeShapeModel']=this['_sheetsShapeService'][_0x1ec54d(0x1f4)](_0x543881['unitId'],_0x543881[_0x1ec54d(0x21f)],_0x543881['drawingId']);let _0x153765=this['_drawingManagerService'][_0x1ec54d(0x30c)]({'unitId':this[_0x1ec54d(0x1c5)],'subUnitId':this[_0x1ec54d(0x333)],'drawingId':this['_activeShapeId']}),{transform:_0x506061}=_0x153765;if(_0x506061){let {left:_0xc4b63d,top:_0x38d773,width:_0x296c68,height:_0x12d009}=_0x506061;this[_0x1ec54d(0x179)]=_0xc4b63d||0x0,this[_0x1ec54d(0x143)]=_0x38d773||0x0,this[_0x1ec54d(0x2ed)]=_0x296c68||0x0,this[_0x1ec54d(0xf5)]=_0x12d009||0x0;}let _0x22da59=!!((_0x5a4627=_0x153765[_0x1ec54d(0x298)])!=null&&_0x5a4627[_0x1ec54d(0x275)]),_0x6b0e0f=!!((_0x49903d=_0x153765['transform'])!=null&&_0x49903d[_0x1ec54d(0x1a3)]),_0x24a228=((_0xbf0401=_0x153765[_0x1ec54d(0x298)])==null?void 0x0:_0xbf0401[_0x1ec54d(0x26e)])||0x0;this[_0x1ec54d(0x2e0)]=!0x0,_0x4815ef[_0x1ec54d(0x188)]();let _0x2f09ed={...((_0x1a1297=this[_0x1ec54d(0x23c)])==null?void 0x0:_0x1a1297['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x4815ef['onPointerMove$'][_0x1ec54d(0x1ab)]((_0xfe55de,_0x559036)=>{const _0x4897b7=_0x1ec54d;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2f9d20,offsetY:_0x256da0}=_0xfe55de,_0x56c472=this[_0x4897b7(0x23c)];if(this[_0x4897b7(0x16c)]&&_0x56c472){_0x4815ef['disableObjectsEvent'](),_0x4815ef[_0x4897b7(0xfb)](_0x2bcec2[_0x4897b7(0x318)]);let _0x2081ee={'left':0x0,'top':0x0,'width':this[_0x4897b7(0x2ed)],'height':this['_baseShapeHeight']},_0x5075ee=this[_0x4897b7(0x314)](this[_0x4897b7(0x1c5)],this[_0x4897b7(0x333)]),_0x43359d=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x377d6e=_0x2f9d20/_0x43359d+_0x5075ee['x']-this[_0x4897b7(0x179)],_0x3d4032=_0x256da0/_0x43359d+_0x5075ee['y']-this['_baseShapeTop'];if(_0x24a228!==0x0){let _0x3f4c0a=this[_0x4897b7(0x2ed)]/0x2,_0x1c9599=this['_baseShapeHeight']/0x2,_0x459b82=_0x24a228*Math['PI']/0xb4,_0x4a8e55=Math[_0x4897b7(0x214)](_0x459b82),_0x776dd=Math[_0x4897b7(0x1fc)](_0x459b82),_0x18df04=_0x377d6e-_0x3f4c0a,_0x3b65ab=_0x3d4032-_0x1c9599;_0x377d6e=_0x3f4c0a+(_0x18df04*_0x4a8e55+_0x3b65ab*_0x776dd),_0x3d4032=_0x1c9599+(-_0x18df04*_0x776dd+_0x3b65ab*_0x4a8e55);}_0x22da59&&(_0x377d6e=this['_baseShapeWidth']-_0x377d6e),_0x6b0e0f&&(_0x3d4032=this[_0x4897b7(0xf5)]-_0x3d4032);let _0x49ee8c={'x':_0x377d6e,'y':_0x3d4032},_0x70d7f=this[_0x4897b7(0x16c)][_0x4897b7(0x180)](_0x2081ee,_0x49ee8c,_0x56c472,_0x22da59,_0x6b0e0f);if(Object[_0x4897b7(0x12f)](_0x70d7f)[_0x4897b7(0x27a)]===0x0)return;for(let [_0x96a45c,_0x5a600b]of Object[_0x4897b7(0x277)](_0x70d7f))this['_activeShapeModel'][_0x4897b7(0x2cf)](_0x96a45c,_0x5a600b);this[_0x4897b7(0x16c)]['updateContext']({'width':this['_baseShapeWidth'],'height':this[_0x4897b7(0xf5)]});let _0x11c5c5=this[_0x4897b7(0x284)]['getDrawingByParam']({'unitId':_0x543881[_0x4897b7(0x151)],'subUnitId':_0x543881['subUnitId'],'drawingId':_0x543881['drawingId']});_0x11c5c5&&(this[_0x4897b7(0x26a)]['renderDrawingShape'](_0x11c5c5,_0x4815ef),this[_0x4897b7(0x1e1)]=this[_0x4897b7(0x260)](_0x543881[_0x4897b7(0x151)],_0x543881[_0x4897b7(0x21f)],_0x543881[_0x4897b7(0x2c2)]),this['_updateAdjustControlPositions']());}_0x559036[_0x4897b7(0x193)]();}),this['_adjHandlerPointerUp']=_0x4815ef[_0x1ec54d(0x2fc)][_0x1ec54d(0x1ab)]((_0x577969,_0x1cf7c4)=>{const _0x28437a=_0x1ec54d;this[_0x28437a(0x22f)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x4815ef[_0x28437a(0x144)]();let _0x1beb72=this[_0x28437a(0x23c)];if(_0x1beb72){let _0x291a2e=_0x543881[_0x28437a(0x151)],_0x190c16=_0x543881['subUnitId'],_0x378a99=_0x543881[_0x28437a(0x2c2)],_0x1791de={};for(let _0x578d3c of Object[_0x28437a(0x12f)](_0x1beb72['currentAdjustValues'])){var _0x5f23e7;let _0x94bdfd=(_0x5f23e7=this['_activeShapeModel'])==null?void 0x0:_0x5f23e7[_0x28437a(0x19f)](_0x578d3c);_0x94bdfd!==void 0x0&&(_0x1791de[_0x578d3c]=_0x94bdfd);}Object['keys'](_0x1791de)[_0x28437a(0x27a)]>0x0&&jn(this['_commandService'],_0x291a2e,_0x190c16,_0x378a99,{'oldShapeData':{'adjustValues':_0x2f09ed}},{'adjustValues':_0x1791de});}this['_activeAdjustInfo']=void 0x0,this[_0x28437a(0x16c)]=void 0x0,this[_0x28437a(0x2e0)]=!0x1,_0x1cf7c4[_0x28437a(0x193)](),_0x4815ef[_0x28437a(0xfa)]();}),_0x7c94d0['stopPropagation']();})));}[_0x25219a(0x231)](){const _0x3fe835=_0x25219a;let _0x4f44b2=this[_0x3fe835(0xfe)][_0x3fe835(0x1ac)](_0x2e857c[_0x3fe835(0x243)]);this['disposeWithMe'](_0x4f44b2[_0x3fe835(0x17c)](_0x54e619(_0x380292=>_0x380292?_0x380292[_0x3fe835(0x263)][_0x3fe835(0x17c)](_0x54e619(_0x2b87a4=>{const _0x2a7dcf=_0x3fe835;if(!_0x2b87a4)return _0x1997e0;let _0x51e335=_0x380292[_0x2a7dcf(0x1cd)](),_0x421a12=this['_renderManagerService'][_0x2a7dcf(0x1dd)](_0x51e335),_0x331055=_0x421a12==null?void 0x0:_0x421a12[_0x2a7dcf(0x19b)];return _0x331055?_0x36ada1(_0x331055):_0x1997e0;})):_0x1997e0))['subscribe'](_0x176142=>{const _0xb6d43b=_0x3fe835;let _0x5f1bc3=_0x176142[_0xb6d43b(0x253)]();this[_0xb6d43b(0x1b1)](_0x176142[_0xb6d43b(0x131)][_0xb6d43b(0x1ab)](()=>{const _0x240d75=_0xb6d43b;this[_0x240d75(0x22b)];})),this[_0xb6d43b(0x1b1)](_0x5f1bc3[_0xb6d43b(0x255)][_0xb6d43b(0x1a5)](_0x3b7895=>{const _0x494a3d=_0xb6d43b;let {objects:_0x651943}=_0x3b7895;this[_0x494a3d(0x166)](),_0x651943!==null&&_0x651943[_0x494a3d(0x32f)]===0x1&&_0x651943[_0x494a3d(0x1c8)]()[_0x494a3d(0x32d)]()[_0x494a3d(0x335)]instanceof Ln&&this[_0x494a3d(0x221)](!0x0);})),this[_0xb6d43b(0x1b1)](_0x5f1bc3[_0xb6d43b(0x155)][_0xb6d43b(0x1a5)](()=>{const _0xa8fab3=_0xb6d43b;this['_isShouldShowDrawingShapeAdjust']&&this[_0xa8fab3(0x266)]();})),this[_0xb6d43b(0x1b1)](_0x176142[_0xb6d43b(0x2fc)][_0xb6d43b(0x1ab)](()=>{const _0x5e793b=_0xb6d43b;this[_0x5e793b(0x22b)]&&(this['setShouldShowAdjust'](!0x1),this[_0x5e793b(0x166)]());})),this[_0xb6d43b(0x1b1)](_0x5f1bc3['changeEnd$'][_0xb6d43b(0x1a5)](()=>{const _0x2d6ec7=_0xb6d43b;this[_0x2d6ec7(0x1c5)]&&this['_subUnitId']&&this[_0x2d6ec7(0x25d)]&&this[_0x2d6ec7(0x284)][_0x2d6ec7(0x30c)]({'unitId':this[_0x2d6ec7(0x1c5)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']})&&(this[_0x2d6ec7(0x1e1)]=this[_0x2d6ec7(0x260)](this[_0x2d6ec7(0x1c5)],this[_0x2d6ec7(0x333)],this[_0x2d6ec7(0x25d)]),this[_0x2d6ec7(0x187)]());}));}));}[_0x25219a(0x132)](){const _0x486d43=_0x25219a;this[_0x486d43(0x1b1)](this[_0x486d43(0x2cc)]['onCommandExecuted'](_0x488020=>{const _0x510c53=_0x486d43;if(_0x488020['id']!==_0x46a98e['id'])return;let {unitId:_0x18edc7,subUnitId:_0x3692e9,shapeId:_0x4e0172}=_0x488020[_0x510c53(0x17a)];_0x18edc7===this['_unitId']&&_0x3692e9===this['_subUnitId']&&_0x4e0172===this[_0x510c53(0x25d)]&&this['refreshAdjustControls']();})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x250)][_0x486d43(0x1a5)](_0x39004a=>{const _0x395274=_0x486d43;if(_0x39004a[_0x395274(0x27a)]===0x1){let _0xdb3048=_0x39004a[0x0];if(_0xdb3048[_0x395274(0x2b3)]===_0x161136[_0x395274(0x25c)]&&this[_0x395274(0xfe)]['getUnitType'](_0xdb3048[_0x395274(0x151)])===_0x2e857c[_0x395274(0x243)]){this['_activeShapeId']=_0xdb3048['drawingId'];let {unitId:_0x4a7e93,subUnitId:_0x180609}=_0xdb3048;this['_activeShapeAdjustPointList']=this[_0x395274(0x260)](_0x4a7e93,_0x180609,this[_0x395274(0x25d)]),this[_0x395274(0x1c5)]=_0x4a7e93,this[_0x395274(0x333)]=_0x180609,this[_0x395274(0x266)](),this['_createShapeAdjustControls']();return;}}this[_0x395274(0x25d)]=null,this[_0x395274(0x1e1)]=void 0x0,this[_0x395274(0x1c5)]=null,this[_0x395274(0x333)]=null,this['_clearShapeAdjustControls']();})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x22c)]['subscribe'](_0x240c9d=>{const _0x5e250c=_0x486d43;if(_0x240c9d[_0x5e250c(0x27a)]===0x1){var _0x263a6b;let _0x15a250=_0x240c9d[0x0];((_0x263a6b=this['_drawingManagerService']['getDrawingByParam'](_0x15a250))==null?void 0x0:_0x263a6b['drawingType'])===_0x161136[_0x5e250c(0x25c)]&&this[_0x5e250c(0x1cf)](!0x0);}})),this[_0x486d43(0x1b1)](this[_0x486d43(0x284)][_0x486d43(0x2c0)][_0x486d43(0x1a5)](_0x35999d=>{const _0x46d89a=_0x486d43;for(let _0x3e746c of _0x35999d)this[_0x46d89a(0x25d)]===_0x3e746c[_0x46d89a(0x2c2)]&&(this[_0x46d89a(0x25d)]=null,this[_0x46d89a(0x1e1)]=void 0x0,this[_0x46d89a(0x1c5)]=null,this[_0x46d89a(0x333)]=null,this[_0x46d89a(0x266)]());}));}};zn=Z([X(0x0,_0x492363),X(0x1,_0x396ece(_0x6985f7)),X(0x2,_0x396ece(_0x471989)),X(0x3,_0x396ece(Q)),X(0x4,_0x230412),X(0x5,_0x16d336)],zn);const Bn={'id':'drawing.operation.set-drawing-active','type':_0x4d8f21[_0x25219a(0x324)],'handler':(_0xacc691,_0xcc92b8)=>{const _0x2f4f2d=_0x25219a;let _0x4888c6=_0xacc691[_0x2f4f2d(0x23e)](_0x492363),_0x48b5e5=_0xacc691[_0x2f4f2d(0x23e)](_0x471989),_0x327e62=_0xacc691[_0x2f4f2d(0x23e)](zn);if(_0xcc92b8==null)return!0x0;if(_0xcc92b8['length']>0x0){var _0x37ec6a;let _0x3a2e30=(_0x37ec6a=_0x48b5e5[_0x2f4f2d(0x1dd)](_0xcc92b8[0x0][_0x2f4f2d(0x151)]))==null?void 0x0:_0x37ec6a[_0x2f4f2d(0x19b)];if(_0x3a2e30){let {unitId:_0x2f31e9,subUnitId:_0x2a7dd5,drawingId:_0x4a7885}=_0xcc92b8[0x0],_0x51ba4e=_0x566164({'unitId':_0x2f31e9,'subUnitId':_0x2a7dd5,'drawingId':_0x4a7885},void 0x0),_0x39b993=_0x3a2e30[_0x2f4f2d(0x15b)](_0x51ba4e);if(_0x39b993){var _0x375ede;(_0x375ede=_0x48b5e5[_0x2f4f2d(0x1dd)](_0xcc92b8[0x0][_0x2f4f2d(0x151)]))==null||(_0x375ede=_0x375ede[_0x2f4f2d(0x19b)][_0x2f4f2d(0x31e)]())==null||_0x375ede['activeAnObject'](_0x39b993);}}_0x4888c6[_0x2f4f2d(0x27f)](_0xcc92b8),_0x327e62[_0x2f4f2d(0x221)](!0x1);}return!0x0;}},Vn={'type':_0x4d8f21[_0x25219a(0xe5)],'id':_0x25219a(0x1ad),'handler':async(_0x1d0b81,_0x4f5ad3)=>{const _0x6f51e3=_0x25219a;let _0x38b10d=_0x4988bb(_0x1d0b81[_0x6f51e3(0x23e)](_0x230412));if(!_0x38b10d)return!0x1;let _0x445eae=_0x1d0b81['get'](_0x3bd43a)[_0x6f51e3(0x2dd)]();if(!_0x445eae)return!0x1;let _0x5a72fd=_0x1d0b81[_0x6f51e3(0x23e)](_0x16d336),{unitId:_0x302610,subUnitId:_0x308ac4}=_0x38b10d,{value:_0x1f23ca,enhanceParams:_0x489f15}=_0x4f5ad3,{range:_0x3f6348}=_0x445eae,_0x440ca4={'unitId':_0x302610,'subUnitId':_0x308ac4,'shapeType':_0x1f23ca,'range':_0x3f6348,'shapeId':_0x44c0e2()};if(_0x489f15){let _0x2b781d=_0x41a954(_0x1f23ca),_0xcc5336=_0x1f23ca===_0x6bfff9[_0x6f51e3(0x2dc)];_0x2b781d&&(_0x489f15[_0x6f51e3(0x2d0)]||_0x489f15['endArrow'])&&(_0x440ca4['shapeData']={'ln':{'startArrow':_0x489f15['startArrow']?{'type':_0x36692d[_0x6f51e3(0x2a0)],'size':_0x4caef4[_0x6f51e3(0x1db)]}:void 0x0,'endArrow':_0x489f15[_0x6f51e3(0x13d)]?{'type':_0x36692d[_0x6f51e3(0x2a0)],'size':_0x4caef4[_0x6f51e3(0x2bb)]}:void 0x0}}),_0xcc5336&&(_0x489f15['horizontal']||_0x489f15[_0x6f51e3(0x1ff)])&&(_0x440ca4[_0x6f51e3(0x2ae)]=_0x597125({'fill':{'fillType':_0x83e268[_0x6f51e3(0x304)],'color':'#FFFFFF'},'isHorizontal':!!_0x489f15[_0x6f51e3(0x241)],'stroke':{'lineStrokeType':_0x2401bc['SolidLine'],'width':0x1,'color':'#bcbcbc'}}));}let _0x416c2c=_0x5a72fd[_0x6f51e3(0x32c)](_0x3a08e6['id'],_0x440ca4);return setTimeout(()=>{const _0x4882fd=_0x6f51e3;_0x5a72fd['executeCommand'](Bn['id'],[{'unitId':_0x302610,'subUnitId':_0x308ac4,'drawingId':_0x440ca4[_0x4882fd(0x25a)]}]);},0xc8),_0x416c2c;}},Hn=_0x25219a(0x1ef),Un=_0x25219a(0xe8),Wn=_0x25219a(0x264),Gn=_0x5a685c(_0x25219a(0xe0)),Kn=_0x25219a(0x107),qn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x4d8f21[_0x25219a(0xe5)],'handler':(_0x1d9698,_0x3eb82f)=>{const _0x4a5d8b=_0x25219a;let _0x480494=_0x1d9698['get'](_0x54fc19),_0x4f0166=_0x1d9698[_0x4a5d8b(0x23e)](_0x404764),_0x2e4543=_0x1d9698[_0x4a5d8b(0x23e)](_0x230412),_0xe48b34=_0x1d9698[_0x4a5d8b(0x23e)](_0x16d336);return _0x4988bb(_0x2e4543)?(_0x3eb82f==null?void 0x0:_0x3eb82f[_0x4a5d8b(0x335)])===_0x4a5d8b(0xe9)?(_0x480494[_0x4a5d8b(0xe9)](Un),!0x0):(_0x480494[_0x4a5d8b(0x320)]({'id':Un,'header':{'title':_0x4f0166['t'](_0x4a5d8b(0x1c4))},'children':{'label':Un},'onClose':()=>{const _0x17c0e9=_0x4a5d8b;_0xe48b34[_0x17c0e9(0x32c)](_0x4688df['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Jn=class extends _0x3ba2e2{constructor(_0x124cd2,_0x5713c5){const _0x5937ba=_0x25219a;super(),this[_0x5937ba(0x254)]=_0x124cd2,this['_drawingManagerService']=_0x5713c5,this['_registerImageShapeClipDelegate'](),this[_0x5937ba(0x254)][_0x5937ba(0x10f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x5937ba(0x254)][_0x5937ba(0x10f)](!0x1)});}[_0x25219a(0x2b6)](){const _0x4bae8f=_0x25219a;let _0x16c547=this[_0x4bae8f(0x254)],_0xe7976d=new Map(),_0xd2e6a9=_0x16c547[_0x4bae8f(0x2fb)]((_0x15245c,_0x3b7187,_0x1cc7f8,_0x91a408,_0x252d34)=>{const _0x3d7f29=_0x4bae8f;let _0x48a105=_0x3b7187;if(_0x48a105===_0x6bfff9[_0x3d7f29(0x292)]||_0x3b7187===_0x3d7f29(0x2e3))return!0x1;try{let _0x2a9f3a=_0xe7976d[_0x3d7f29(0x23e)](_0x3b7187);return _0x2a9f3a||(_0x2a9f3a=new _0x57cb5b(_0x48a105,_0x3d7f29(0x24d)+_0x3b7187),_0xe7976d[_0x3d7f29(0x10e)](_0x3b7187,_0x2a9f3a)),_0x2a9f3a[_0x3d7f29(0x1c2)](),_0x252d34&&Object[_0x3d7f29(0x12f)](_0x252d34)[_0x3d7f29(0x27a)]>0x0&&_0x2a9f3a[_0x3d7f29(0x1e2)]({'adjustValues':_0x252d34},!0x0),_0x2a9f3a[_0x3d7f29(0x256)]({'width':_0x1cc7f8,'height':_0x91a408}),_0x2a9f3a[_0x3d7f29(0x128)](_0x15245c,{'left':0x0,'top':0x0,'width':_0x1cc7f8,'height':_0x91a408});}catch{return!0x1;}});this[_0x4bae8f(0x1b1)](_0xd2e6a9),this[_0x4bae8f(0x1b1)]({'dispose':()=>_0xe7976d[_0x4bae8f(0x1da)]()});}[_0x25219a(0x116)](_0x53f33b,_0x42a225,_0x54bf68,_0x10f6db,_0x25e551){const _0x5cd47e=_0x25219a;let _0x4ded3a=this[_0x5cd47e(0x284)][_0x5cd47e(0x296)](_0x53f33b,_0x42a225);if(!_0x4ded3a[_0x54bf68])return;let _0x16a3b1={..._0x4ded3a[_0x54bf68],'prstGeom':_0x10f6db,'adjustValues':_0x25e551};this[_0x5cd47e(0x284)][_0x5cd47e(0x339)]([_0x16a3b1]);}};Jn=Z([X(0x0,_0x396ece(_0x323084)),X(0x1,_0x396ece(_0x492363))],Jn);const Yn=_0x25219a(0x1b9),Xn=_0x25219a(0x328);function Zn({onShapeClick:_0x2ce148,excludeGroups:_0x5ebd92}){const _0x159d32=_0x25219a;return _0x5c23f7(_0x4d521e,{'excludeGroups':_0x5ebd92,'onShapeClick':_0x2ce148,'scrollContainer':_0x159d32(0x26b)});}function Qn(){const _0x40f21f=_0x25219a;let _0x10ca89=_0x456f39(_0x492363),_0xbf931e=_0x456f39(Jn);return _0x5c23f7(_0x28b0d3,{'buttonLabel':_0x40f21f(0x33d),'excludeGroups':[_0x27d7db[_0x40f21f(0x120)]],'onShapeClick':_0xbe2050=>{const _0x298d5a=_0x40f21f;let _0x552a5b=_0x10ca89['getFocusDrawings']()[_0x298d5a(0x24c)](_0xffdac9=>_0xffdac9[_0x298d5a(0x2b3)]===_0x161136[_0x298d5a(0xda)]);if(!_0x552a5b)return;let {unitId:_0x37ce76,subUnitId:_0x41726c,drawingId:_0x116d16}=_0x552a5b;_0xbf931e[_0x298d5a(0x116)](_0x37ce76,_0x41726c,_0x116d16,_0xbe2050[_0x298d5a(0x31a)]);}});}function $n(){const _0xdd37b8=_0x25219a;let _0x460df4=_0x456f39(_0x21a48b),_0x29ba9a=_0x456f39(_0x492363),_0x522874=_0x456f39(_0x230412),_0x3b1034=_0x29ba9a[_0xdd37b8(0x21a)]()[0x0],_0x293b94=_0x3b1034?_0x522874['getUnitType'](_0x3b1034[_0xdd37b8(0x151)]):void 0x0,_0x430043=_0x293b94===_0x2e857c[_0xdd37b8(0x1b7)]?'doc.image-clip.shape-picker.component':_0x293b94===_0x2e857c['UNIVER_SHEET']?Xn:void 0x0,_0x27f72b=_0x430043?_0x460df4[_0xdd37b8(0x23e)](_0x430043):void 0x0;return _0x27f72b?_0x5c23f7(_0x27f72b,{}):null;}function er(){let _0x2efa30=_0x456f39(_0x16d336);return _0x5c23f7(Zn,{'onShapeClick':_0x47a049=>{const _0x340bf3=_0x52a4;_0x2efa30[_0x340bf3(0x1a6)](Vn['id'],{'value':_0x47a049[_0x340bf3(0x31a)],'enhanceParams':{'endArrow':_0x47a049[_0x340bf3(0x13d)],'startArrow':_0x47a049[_0x340bf3(0x2d0)],'horizontal':_0x47a049['horizontal'],'vertical':_0x47a049[_0x340bf3(0x1ff)]}});}});}function tr(_0x5d17c0){const _0xc6cbc6=_0x25219a;let _0x5094bb=_0x5d17c0['get'](_0x230412);return{'id':Vn['id'],'type':_0x2aaa41[_0xc6cbc6(0x2c6)],'selections':[{'label':{'name':Yn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Vn['id']}}}],'icon':'ShapeIcon','tooltip':'sheets-shape-ui.insertShape','activated$':_0x21923c(_0x5094bb,!0x1,()=>new _0x395a42(_0x21776d=>{const _0x53d7df=_0xc6cbc6;_0x21776d[_0x53d7df(0x32d)](!0x1);})),'hidden$':_0x315655(_0x5d17c0,_0x2e857c[_0xc6cbc6(0x243)]),'disabled$':_0x4a597a(_0x5d17c0)};}function nr(_0x4b66b9){const _0x85a82f=_0x25219a;let _0x303bbb=_0x4b66b9[_0x85a82f(0x23e)](_0x230412);return{'id':qn['id'],'type':_0x2aaa41[_0x85a82f(0x30b)],'icon':_0x85a82f(0xdc),'title':_0x85a82f(0xed),'tooltip':_0x85a82f(0xed),'activated$':_0x21923c(_0x303bbb,!0x1,()=>new _0x395a42(_0x590fc9=>{const _0x1f02d2=_0x85a82f;_0x590fc9[_0x1f02d2(0x32d)](!0x1);})),'hidden$':_0x315655(_0x4b66b9,_0x2e857c['UNIVER_SHEET']),'disabled$':_0x4a597a(_0x4b66b9)};}const rr='sheet.menu.shape.flip-horizontal',ir=_0x25219a(0x1de);function ar(_0x15b093){const _0x18d7b5=_0x25219a;let _0x56bde0=_0x15b093['get'](_0x492363)[_0x18d7b5(0x21a)]();return _0x56bde0[_0x18d7b5(0x27a)]===0x1&&_0x56bde0[0x0]['drawingType']===_0x161136[_0x18d7b5(0x25c)]?_0x56bde0[0x0]:null;}function or(_0x3f62da){const _0xbe47b=_0x25219a;let _0xcc3989=_0x3f62da[_0xbe47b(0x23e)](_0x492363);return _0xcc3989['focus$'][_0xbe47b(0x17c)](_0x4a164f(_0xcc3989[_0xbe47b(0x21a)]()),_0xaa4389(_0x416577=>_0x416577[_0xbe47b(0x27a)]!==0x1||_0x416577[0x0][_0xbe47b(0x2b3)]!==_0x161136[_0xbe47b(0x25c)]));}function sr(_0x515c42){const _0x57831c=_0x25219a;return{'id':rr,'commandId':_0x5ab636['id'],'type':_0x2aaa41['BUTTON'],'title':_0x57831c(0x194),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x57831c(0x10c),'hidden$':or(_0x515c42),'params':()=>{const _0x3ce701=_0x57831c;let _0x42976f=ar(_0x515c42);return _0x42976f?{'unitId':_0x42976f[_0x3ce701(0x151)],'subUnitId':_0x42976f['subUnitId'],'shapeId':_0x42976f[_0x3ce701(0x2c2)],'flipH':!0x0}:void 0x0;}};}function cr(_0x313608){const _0x376398=_0x25219a;return{'id':ir,'commandId':_0x5ab636['id'],'type':_0x2aaa41[_0x376398(0x30b)],'title':'sheets-shape-ui.flipVertical','tooltip':_0x376398(0x301),'icon':_0x376398(0x169),'hidden$':or(_0x313608),'params':()=>{const _0x380cfa=_0x376398;let _0xe29fd5=ar(_0x313608);return _0xe29fd5?{'unitId':_0xe29fd5['unitId'],'subUnitId':_0xe29fd5[_0x380cfa(0x21f)],'shapeId':_0xe29fd5[_0x380cfa(0x2c2)],'flipV':!0x0}:void 0x0;}};}const lr={[_0x3c626a[_0x25219a(0x2f9)]]:{[Vn['id']]:{'order':0x4,'menuItemFactory':tr}},[_0x3c626a[_0x25219a(0x1d1)]]:{[qn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':nr}},[_0x34d07a[_0x25219a(0x211)]]:{[_0x9e0dc8[_0x25219a(0x1d1)]]:{[rr]:{'order':0x4,'menuItemFactory':sr},[ir]:{'order':0x5,'menuItemFactory':cr}}}};var ur=_0x25219a(0x1dc),dr=_0x25219a(0x1e5);const fr={'type':_0x4d8f21[_0x25219a(0x324)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},pr={'type':_0x4d8f21[_0x25219a(0x324)],'id':_0x25219a(0xf6),'handler'(){return!0x0;}},mr={};function hr(_0x26550f){const _0x425823=_0x25219a;return _0x26550f[_0x425823(0x1ec)]()||void 0x0;}function gr(_0x57aa54,_0x7a70e4,_0x5d8d55){const _0x31d894=_0x25219a;var _0x250693;return((_0x250693=_0x57aa54[_0x31d894(0x32e)])==null?void 0x0:_0x250693[_0x31d894(0x1ec)]())||_0x5a3cf6(_0x5d8d55,_0x242d11(_0x57aa54[_0x31d894(0x2b3)]))+'\x20'+(_0x7a70e4+0x1);}function _r(){const _0x3f8fe8=_0x25219a;var _0x225c20;let _0x14c5b2=_0x456f39(_0x404764),_0xb9c435=_0x456f39(_0x16d336),_0x58acaf=_0x456f39(_0x230412),_0x1e612d=_0x456f39(_0x18f6a9),_0x225189=_0x456f39(_0x492363),_0x11d716=_0x456f39(_0x471989),[,_0x271748]=_0x3fe30a(_0x26ac03=>_0x26ac03+0x1,0x0),_0x472a42=_0x58acaf[_0x3f8fe8(0x228)](_0x2e857c[_0x3f8fe8(0x243)]),_0x32657d=(_0x472a42==null?void 0x0:_0x472a42[_0x3f8fe8(0x1cd)]())??'',_0x20251c=(_0x472a42==null||(_0x225c20=_0x472a42[_0x3f8fe8(0x18d)]())==null?void 0x0:_0x225c20[_0x3f8fe8(0x191)]())??'',_0x41ca6b=_0x2cc2b9(()=>_0x225189[_0x3f8fe8(0x250)],_0x225189[_0x3f8fe8(0x21a)](),!0x1,[_0x225189]);_0x329c92(()=>{const _0x473b59=_0x3f8fe8;let _0x5b8c9c=_0xb9c435[_0x473b59(0x24a)](()=>_0x271748());return()=>_0x5b8c9c[_0x473b59(0x259)]();},[_0xb9c435]);let _0x1c4bf3=_0x4a6e48(()=>_0x5d1b79(_0x14c5b2),[_0x14c5b2]),_0x9b907e=_0x32657d&&_0x20251c?_0x1e612d[_0x3f8fe8(0x296)](_0x32657d,_0x20251c):{},_0x303e91=(_0x32657d&&_0x20251c?_0x1e612d['getDrawingOrder'](_0x32657d,_0x20251c):[])[_0x3f8fe8(0x111)](_0x52a4d0=>_0x9b907e[_0x52a4d0])[_0x3f8fe8(0x291)](_0x1a6ec7=>!!_0x1a6ec7)[_0x3f8fe8(0x20f)](),_0x13839d=_0x303e91[_0x3f8fe8(0x1b0)]((_0x183aa5,_0x5e1fa7)=>(_0x183aa5[_0x3a38fa(_0x5e1fa7[_0x3f8fe8(0x2b3)])]+=0x1,_0x183aa5),{'canvas':0x0,'floating':0x0}),_0x4dc99b={'canvas':0x0,'floating':0x0},_0x2c0bc4=_0x303e91['map']((_0x500874,_0x2143e1)=>{const _0x481a4e=_0x3f8fe8;let _0x11ff7a=_0x3a38fa(_0x500874[_0x481a4e(0x2b3)]),_0x4f10bb=_0x11ff7a===_0x480b8f,_0x20372c=_0x4dc99b[_0x11ff7a]++;return{'id':_0x500874['drawingId'],'name':gr(_0x500874,_0x2143e1,_0x14c5b2),'description':_0x500874[_0x481a4e(0x29f)],'visible':_0x500874[_0x481a4e(0x160)]!==!0x0,'selectable':_0x500874[_0x481a4e(0x2ce)]!==!0x1,'sectionId':_0x11ff7a,'sectionTitle':_0x4f10bb?_0x1c4bf3['sectionFloating']:_0x1c4bf3[_0x481a4e(0x19e)],'capabilities':_0x4f10bb?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x4f10bb&&_0x20372c>0x0,'canMoveBackward':!_0x4f10bb&&_0x20372c<_0x13839d[_0x481a4e(0x208)]-0x1,'canReorder':!_0x4f10bb};}),_0x5b06ba=_0x4a6e48(()=>(_0x41ca6b??[])[_0x3f8fe8(0x291)](_0x5c6e9d=>_0x5c6e9d[_0x3f8fe8(0x151)]===_0x32657d&&_0x5c6e9d[_0x3f8fe8(0x21f)]===_0x20251c)[_0x3f8fe8(0x111)](_0x35e709=>_0x35e709['drawingId']),[_0x41ca6b,_0x20251c,_0x32657d]),_0x4b083e=_0x5b06ba[_0x5b06ba[_0x3f8fe8(0x27a)]-0x1]??null,_0x413271=_0x16c964=>_0x1e612d[_0x3f8fe8(0x30c)]({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x16c964})??null,_0x3f170b=async _0x42ec8f=>{const _0x13e5d7=_0x3f8fe8;!_0x32657d||!_0x42ec8f[_0x13e5d7(0x27a)]||await _0xb9c435[_0x13e5d7(0x1a6)](_0x22957d['id'],{'unitId':_0x32657d,'drawings':_0x42ec8f});},_0x5241b5=async(_0x4a1b83,_0x4cb85f)=>{_0x413271(_0x4a1b83)&&await _0x3f170b([{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x4a1b83,..._0x4cb85f}]);},_0x4585db=(_0x51bc9c,_0x1e2a9b)=>{const _0x367ddf=_0x3f8fe8;if(!_0x32657d||!_0x20251c)return;let _0x3712d7=_0x1e2a9b?_0x5b06ba[_0x367ddf(0x2b1)](_0x51bc9c)?_0x5b06ba['filter'](_0x448931=>_0x448931!==_0x51bc9c):[..._0x5b06ba,_0x51bc9c]:[_0x51bc9c];_0xb9c435[_0x367ddf(0x32c)](_0x4688df['id'],_0x3712d7['map'](_0x272337=>({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x272337})));let _0x135f08=_0x3712d7[_0x3712d7[_0x367ddf(0x27a)]-0x1];_0x135f08?_0xbe39a(_0x11d716,{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x135f08}):_0x397c5e(_0x11d716,_0x32657d);},_0x2f28d8=async(_0x1fdb2a,_0x3d1c41)=>{const _0xe25b87=_0x3f8fe8;await _0x3f170b(_0x1fdb2a['map'](_0xb5c4e9=>_0x413271(_0xb5c4e9))[_0xe25b87(0x291)](_0x4e99a7=>!!_0x4e99a7)[_0xe25b87(0x291)](_0x380f19=>_0x380f19[_0xe25b87(0x160)]!==!0x0!==_0x3d1c41)[_0xe25b87(0x111)](_0x370d5f=>({'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingId':_0x370d5f[_0xe25b87(0x2c2)],'hidden':!_0x3d1c41})));},_0x5e8ea4=async _0x484577=>{const _0x37628a=_0x3f8fe8;let _0x47cf01=_0x413271(_0x484577);_0x47cf01&&await _0x5241b5(_0x484577,{'selectable':_0x47cf01[_0x37628a(0x2ce)]===!0x1&&void 0x0});},_0x29e284=async(_0x269e9e,_0x462e86)=>{const _0x3e3efc=_0x3f8fe8;var _0x384cad;let _0x1cacf0=hr(_0x462e86);(((_0x384cad=_0x413271(_0x269e9e))==null?void 0x0:_0x384cad[_0x3e3efc(0x32e)])??void 0x0)!==_0x1cacf0&&await _0x5241b5(_0x269e9e,{'name':_0x1cacf0});},_0x2d92c5=async(_0x298078,_0x195561)=>{const _0x48e8d9=_0x3f8fe8;var _0x5f3a38;let _0x8f1869=hr(_0x195561);(((_0x5f3a38=_0x413271(_0x298078))==null?void 0x0:_0x5f3a38[_0x48e8d9(0x29f)])??void 0x0)!==_0x8f1869&&await _0x5241b5(_0x298078,{'description':_0x8f1869});},_0x5588b7=async(_0x100efd,_0x45128d)=>{const _0x902903=_0x3f8fe8;!_0x32657d||!_0x20251c||await _0xb9c435[_0x902903(0x1a6)](_0x5f552c['id'],{'unitId':_0x32657d,'subUnitId':_0x20251c,'drawingIds':[_0x100efd],'arrangeType':_0x45128d});};return!_0x32657d||!_0x20251c?_0x5c23f7(_0x3f8fe8(0x23f),{'className':_0x3f8fe8(0x1a2),'children':_0x1c4bf3[_0x3f8fe8(0x222)]}):_0x5c23f7(_0x29b70f,{'items':_0x2c0bc4,'selectedIds':_0x5b06ba,'focusedId':_0x4b083e,'labels':_0x1c4bf3,'onSelect':_0x4585db,'onSetVisible':_0x2f28d8,'onCommitName':_0x29e284,'onCommitDescription':_0x2d92c5,'onMoveForward':async _0x58d0b8=>_0x5588b7(_0x58d0b8,_0x59b698[_0x3f8fe8(0x12c)]),'onMoveBackward':async _0x5a8e9c=>_0x5588b7(_0x5a8e9c,_0x59b698[_0x3f8fe8(0x2f4)]),'onToggleSelectable':_0x5e8ea4});}let vr=class{constructor(_0x56c910){const _0x4ff471=_0x25219a;this[_0x4ff471(0x145)]=_0x56c910;}[_0x25219a(0x10d)](_0x2dfaea,_0x5deebe){const _0x4a93e8=_0x25219a;let _0x3330ec=this[_0x4a93e8(0x145)][_0x4a93e8(0x1dd)](_0x2dfaea[_0x4a93e8(0x151)]),_0x10ad75=_0x3330ec==null?void 0x0:_0x3330ec[_0x4a93e8(0x19b)];if(!_0x10ad75)return;let _0x171ad0=_0x566164(_0x2dfaea),_0xdcf40f=_0x10ad75[_0x4a93e8(0x15b)](_0x171ad0);_0xdcf40f==null||_0xdcf40f[_0x4a93e8(0x1d2)](_0x5deebe);}};vr=Z([X(0x0,_0x471989)],vr);function yr(){const _0x53b66c=_0x25219a;let _0x4c98b5=_0x456f39(_0x492363),_0x4164cf=_0x2cc2b9(()=>_0x4c98b5[_0x53b66c(0x250)],_0x4c98b5['getFocusDrawings'](),!0x1,[_0x4c98b5]);return _0x4164cf[_0x53b66c(0x27a)]===0x0?null:_0x5c23f7(_0x53b66c(0x23f),{'children':_0x57d5e2(_0x53b66c(0x23f),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[_0x5c23f7(_0x2f24d8,{'drawings':_0x4164cf,'hasCropper':!0x1}),_0x5c23f7(_0x2bf2cb,{'drawings':_0x4164cf})]})});}function br(_0x369b8f){let {unitId:_0x2a0be5,subUnitId:_0x260c5c,shapeId:_0x36d596}=_0x369b8f,_0x23b581=_0x456f39(_0x16d336),_0x90fff3=_0x456f39(vr);return _0x5c23f7(_0x5a7a6a,{..._0x369b8f,'positionEditor':_0x5c23f7(yr,{}),'onUpdateShapeData':(_0x937634,_0x1ac849)=>{jn(_0x23b581,_0x2a0be5,_0x260c5c,_0x36d596,_0x937634,_0x1ac849);},'onUpdateLineShapeData':(_0x505632,_0x50686a)=>{Mn(_0x23b581,_0x2a0be5,_0x260c5c,_0x36d596,_0x505632,_0x50686a);},'onUpdateShapeFillImage':_0x289d8c=>{const _0x2b42a5=_0x52a4;_0x90fff3[_0x2b42a5(0x10d)]({'unitId':_0x2a0be5,'subUnitId':_0x260c5c,'drawingId':_0x36d596},_0x289d8c);}});}function xr(_0x5a5028){const _0x4ebf42=_0x25219a;let _0x4c88f7=_0x5a5028[_0x4ebf42(0x25b)][_0x4ebf42(0x2db)];return _0x4c88f7?_0x5c23f7(Sr,{..._0x4c88f7}):null;}function Sr(_0x1daddf){const _0x3fee26=_0x25219a;let _0x2c8a6a=_0x456f39(_0x16d336),_0x1f3e3d=_0x456f39(_0x6985f7),{unitId:_0x3f0100,subUnitId:_0x3e0784,drawingId:_0x153b7b,drawingType:_0x2b6877,shapeType:_0x2f873b}=_0x1daddf,[_0x16dede,_0xdd1ba5]=_0x2793a8(_0x1daddf[_0x3fee26(0x2ae)]),_0x66991d=_0x4a6e48(()=>_0x5eb25a(_0x16dede),[_0x16dede]),_0x144659=_0x4a6e48(()=>_0x68e79b(_0x16dede),[_0x16dede]);_0x329c92(()=>{const _0x1ffaeb=_0x3fee26;let _0x252885=_0x2c8a6a[_0x1ffaeb(0x24a)](_0x491349=>{if(_0x491349['id']!==_0x46a98e['id'])return;let _0x1d8f06=_0x1f3e3d['getShapeDataById'](_0x3f0100,_0x3e0784,_0x153b7b);_0x1d8f06&&_0xdd1ba5(_0x1d8f06);});return()=>_0x252885[_0x1ffaeb(0x259)]();},[_0x2c8a6a,_0x153b7b,_0x1f3e3d,_0x3e0784,_0x3f0100]);let _0x16cebb=_0x4b3de3=>{_0xdd1ba5(_0x4c0c79=>({..._0x4c0c79,..._0x4b3de3}));},_0x24b03a=_0x204c4e=>{let _0x29a33d=_0x537773(_0x16dede,_0x204c4e);jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,{'oldShapeData':{'shapeText':_0x16dede['shapeText']}},_0x29a33d),_0x16cebb(_0x29a33d);},_0x1af668=_0x2ca04c({'hostType':_0x2e857c[_0x3fee26(0x243)],'unitId':_0x3f0100,'subUnitId':_0x3e0784,'shapeId':_0x153b7b,'shapeData':_0x16dede,'onUpdateBinding':_0x35262d=>{const _0x1a9c1f=_0x3fee26;let _0x4d3ae2={'formulaBinding':_0x35262d};jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,{'oldShapeData':{'formulaBinding':_0x16dede[_0x1a9c1f(0x1c6)]}},_0x4d3ae2),_0x16cebb(_0x4d3ae2);}});return _0x57d5e2(_0x1c48da,{'children':[_0x5c23f7(_0x472902,{'shapeData':_0x16dede,'shapeType':_0x2f873b,'textStyle':{'ff':_0x373ebe[_0x3fee26(0x102)]['fontFamily'],'fs':_0x373ebe[_0x3fee26(0x102)][_0x3fee26(0x213)],'cl':{'rgb':_0x373ebe['shapeText'][_0x3fee26(0x237)]},..._0x66991d},'textModel':_0x144659?{'ha':_0x144659['ha']??_0x365b63[_0x3fee26(0x215)],'va':_0x144659['va']??_0x2c7292['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x373ebe[_0x3fee26(0x233)],'defaultGradientEndColor':_0x373ebe[_0x3fee26(0x1c1)],'defaultStrokeColor':_0x373ebe[_0x3fee26(0x101)],'extensionGroups':_0x1af668[_0x3fee26(0x171)],'onUpdateShapeData':(_0x3fe33b,_0x44fe7f)=>{jn(_0x2c8a6a,_0x3f0100,_0x3e0784,_0x153b7b,_0x3fe33b,_0x44fe7f),_0x44fe7f&&_0x16cebb(_0x44fe7f);},'onUpdateText':_0x24b03a,'onOpenPanel':()=>{const _0x455bcb=_0x3fee26;_0x2c8a6a[_0x455bcb(0x1a6)](pr['id'],{'unitId':_0x3f0100,'subUnitId':_0x3e0784,'drawingId':_0x153b7b});},'onDelete':()=>{const _0x4f18d1=_0x3fee26;_0x2c8a6a[_0x4f18d1(0x1a6)](_0x251e45['id'],{'unitId':_0x3f0100,'drawings':[{'unitId':_0x3f0100,'subUnitId':_0x3e0784,'drawingId':_0x153b7b,'drawingType':_0x2b6877}]});}}),_0x1af668[_0x3fee26(0xe1)]]});}var Cr=class extends _0x3ba2e2{constructor(..._0x474db1){const _0x57a417=_0x25219a;super(..._0x474db1),Y(this,'_editingParams$',new _0x5935cd(null)),Y(this,'editingParams$',this[_0x57a417(0x219)][_0x57a417(0x2a9)]()),Y(this,'_onSavingEditorData$',new _0x5935cd(!0x1)),Y(this,_0x57a417(0x2fe),this['_onSavingEditorData$']['asObservable']());}[_0x25219a(0x259)](){const _0xee9b89=_0x25219a;this['_editingParams$'][_0xee9b89(0x32d)](null),this['_editingParams$'][_0xee9b89(0x139)](),this['_onSavingEditorData$'][_0xee9b89(0x32d)](!0x1),this['_onSavingEditorData$'][_0xee9b89(0x139)](),super[_0xee9b89(0x259)]();}['setEditing'](_0x38a5e1){const _0x4d36c0=_0x25219a;this[_0x4d36c0(0x219)][_0x4d36c0(0x32d)](_0x38a5e1),_0x38a5e1??this[_0x4d36c0(0x16a)]['next'](!0x1);}[_0x25219a(0x108)](_0xe32fb9){const _0x1b1541=_0x25219a;this['_onSavingEditorData$'][_0x1b1541(0x32d)](_0xe32fb9);}[_0x25219a(0x1d8)](){const _0x100c17=_0x25219a;return this['_editingParams$'][_0x100c17(0x2da)]();}[_0x25219a(0x28e)](_0x39905f){const _0x4aa94c=_0x25219a;this[_0x4aa94c(0x1d8)]()&&(this[_0x4aa94c(0x108)](!0x0),requestAnimationFrame(()=>{const _0x4c95ad=_0x4aa94c;this[_0x4c95ad(0x2cd)](null);}));}[_0x25219a(0x130)](){const _0x7559b9=_0x25219a;this[_0x7559b9(0x1d8)]()&&this[_0x7559b9(0x2cd)](null);}};const wr=_0x1b8447(()=>{const _0x5b732=_0x25219a;let _0x7c7d52=_0x456f39(Cr),_0x9a8c59=_0x456f39(_0x6985f7),_0x28d913=_0x456f39(_0x492363),_0xfef68e=_0x456f39(_0x16d336),_0x4d68c5=_0x456f39(_0x471989);return _0x5c23f7(_0x425f99,{'adapter':_0x4a6e48(()=>({'getShapeModel':(_0x221fb8,_0x57f48e,_0x5c8704)=>_0x9a8c59['getShapeModel'](_0x221fb8,_0x57f48e,_0x5c8704),'getShapeData':(_0x3fc70e,_0x2c6bed,_0x551659)=>_0x9a8c59[_0x5b732(0x137)](_0x3fc70e,_0x2c6bed,_0x551659),'getDrawingTransform':(_0x4e1213,_0x544dd9,_0x52c4c3)=>{const _0x96779a=_0x5b732;let _0x10677a=_0x28d913[_0x96779a(0x30c)]({'unitId':_0x4e1213,'subUnitId':_0x544dd9,'drawingId':_0x52c4c3});return _0x10677a==null?void 0x0:_0x10677a[_0x96779a(0x298)];},'updateShapeText':({unitId:_0x214697,subUnitId:_0xf95011,shapeId:_0x3c8407,shapeText:_0x2f4e19,oldShapeText:_0xad9658})=>{_0xfef68e['executeCommand'](An['id'],{'unitId':_0x214697,'subUnitId':_0xf95011,'shapeId':_0x3c8407,'shapeData':{'shapeText':_0x2f4e19},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xad9658}}});},'updateHostSize':({unitId:_0x5564ec,subUnitId:_0x532a1e,shapeId:_0x3d03c7,width:_0x2406b1,height:_0x4ce79f})=>{const _0x4c1862=_0x5b732;var _0x5f3e62;let _0x2859d4=_0x28d913[_0x4c1862(0x30c)]({'unitId':_0x5564ec,'subUnitId':_0x532a1e,'drawingId':_0x3d03c7}),_0x2d0d69=_0x2859d4==null?void 0x0:_0x2859d4['transform'];if(!_0x2859d4||!_0x2d0d69)return;let _0x1c7f66={..._0x2d0d69,'width':_0x2406b1,'height':_0x4ce79f},_0x1a4a20=(_0x5f3e62=_0x4d68c5[_0x4c1862(0x1dd)](_0x5564ec))==null||(_0x5f3e62=_0x5f3e62[_0x4c1862(0xe3)](_0x319c9a)['getSkeletonParam'](_0x532a1e))==null?void 0x0:_0x5f3e62[_0x4c1862(0x206)],_0x672f58=_0x1a4a20?_0x2b6fe(_0x1c7f66,_0x1a4a20)??_0x2859d4[_0x4c1862(0x2a1)]:_0x2859d4[_0x4c1862(0x2a1)],_0x3d5242=_0x1a4a20?_0x1cbaab(_0x1c7f66,_0x1a4a20)??_0x2859d4[_0x4c1862(0x28d)]:_0x2859d4[_0x4c1862(0x28d)];_0xfef68e['executeCommand'](_0x22957d['id'],{'unitId':_0x5564ec,'drawings':[{..._0x2859d4,'transform':_0x1c7f66,'sheetTransform':_0x672f58,'axisAlignSheetTransform':_0x3d5242}]});},'allowHostSizeShrink':({unitId:_0xba2141,subUnitId:_0x1f4b08,shapeId:_0x4397f1})=>_0x26e8db(_0x9a8c59[_0x5b732(0x137)](_0xba2141,_0x1f4b08,_0x4397f1))}),[_0xfef68e,_0x28d913,_0x4d68c5,_0x9a8c59]),'editingService':_0x7c7d52,'editorUnitId':Gn,'positionOptions':_0x4a6e48(()=>({'viewportKeys':{'main':_0x3ce6e8[_0x5b732(0x302)],'leftTop':_0x3ce6e8[_0x5b732(0x33b)],'top':_0x3ce6e8[_0x5b732(0x26c)],'left':_0x3ce6e8[_0x5b732(0x13c)]},'getSkeleton':(_0x59ac51,_0x59dc3e)=>{const _0x4ac485=_0x5b732;var _0xf4ff0f;return((_0xf4ff0f=_0x59ac51[_0x4ac485(0xe3)](_0x319c9a)[_0x4ac485(0x212)](_0x59dc3e['subUnitId']))==null?void 0x0:_0xf4ff0f['skeleton'])??null;}}),[])});});let Tr=class extends _0x3ba2e2{constructor(_0x3d45c0,_0x4ff01f){const _0xc2b9e4=_0x25219a;super(),this[_0xc2b9e4(0x153)]=_0x3d45c0,this['_iconManager']=_0x4ff01f,this[_0xc2b9e4(0x2f5)](),this[_0xc2b9e4(0x31f)]();}[_0x25219a(0x2f5)](){const _0x53f179=_0x25219a;this[_0x53f179(0x2bd)]['has'](_0x53f179(0xdc))||this[_0x53f179(0x1b1)](this['_iconManager'][_0x53f179(0x207)]({'ObjectLayersIcon':_0x2f5e4b})),this['_iconManager'][_0x53f179(0x135)](_0x53f179(0x10c))||this[_0x53f179(0x1b1)](this[_0x53f179(0x2bd)][_0x53f179(0x207)]({'FlipHorizontalIcon':_0x600924})),this[_0x53f179(0x2bd)][_0x53f179(0x135)](_0x53f179(0x169))||this[_0x53f179(0x1b1)](this['_iconManager']['register']({'FlipVerticalIcon':_0x9a7643}));}['_registerComponents'](){const _0x4fc160=_0x25219a;this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)]['register'](Hn,br)),this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](Un,_r)),this['disposeWithMe'](this['_componentManager'][_0x4fc160(0x207)](Yn,er)),this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Xn,Qn)),this['_componentManager'][_0x4fc160(0x23e)](_0x145ec1)||this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](_0x145ec1,$n)),this[_0x4fc160(0x1b1)](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Wn,xr)),this['disposeWithMe'](this[_0x4fc160(0x153)][_0x4fc160(0x207)](Kn,_0x34b768)),this[_0x4fc160(0x1b1)](this['_componentManager'][_0x4fc160(0x207)](_0x4fc160(0x267),wr));}};Tr=Z([X(0x0,_0x396ece(_0x21a48b)),X(0x1,_0x396ece(_0x15a7ad))],Tr);function _0x5f35(){const _0x7e036e=['formulaPresentation','initShapePopupMenu','remove$','clearControl$','drawingId','animationEnabled','_getDrawingRect','getShapeTextRect','SELECTOR','_clearPopups','getShapeTextData','_disposePopups','isRender','pluginName','_commandService','setEditing','selectable','setAdjustValueByName','startArrow','pushUndoRedo','getConnectionInfo','_shapeFormulaService','_index','sqrt','order','cxnPointStroke','_initCopyPaste','_sheetInterceptorService','getValue','extraProps','Rect','getCurrentLastSelection','connector-handler-','_configService','_isStartAdjusting','clearAdjustControls','_urlImageService','custom','srcRect','getDrawingEffectBounds','_drawRichText','PRINTING_COMPONENT_COLLECT','setFormulaPresentation','setHighlighted','getAdjustNames','attachPopupToObject','_sheetBasicShapeConnectionPointController','_baseShapeWidth','copyType','_isDrawingShapePointDown','onDblclick$','_baseWidth','onReady','draw','backward','_registerIcons','setShapeProps','_drawSimpleText','cxnIndex','MEDIA','getBentTypeFromPoints','registerClipDelegate','onPointerUp$','12TrePDB','onSavingEditorData$','changeShapeType','_activeImageId','sheets-shape-ui.flipVertical','VIEW_MAIN','startY','SolidFill','setPrstGeomAdjValues','_initEditingParams','getBatchAddOp','_connectionSiteObjects','_updateTransform','worldPoint','BUTTON','getDrawingByParam','_hasReset','_commandExecutedListener','_shapeTextEditingService','getZoomRatio','create','INSERT','changeEnd$','_getScrollInfo','_registerMoveHandler','_context','applyPoint','CROSSHAIR','_executeConnectedRouteConnectionCommand','type','shape-text-','scale','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getTransformer','_registerComponents','open','object','5918lJsOOl','UPDATE','OPERATION','editingParams$','52661EtVAdQ','stringify','sheet.image-clip.shape-picker.component','_sheetDrawingService','CUT','renderDrawingShape','syncExecuteCommand','next','name','size','getSheetBySheetId','_handleConnectorPointerUp','_handleBasicShapeUpdateConnectorLineShape','_subUnitId','5360223PvMkWA','value','parse','getDrawingOrder','_isConnecting','featurePluginUpdateNotification','resize','VIEW_MAIN_LEFT_TOP','_resetState','sheets-shape-ui.imagePanel.crop.shape','clip','_formulaAnimation','add$','permissionCheckWithoutRange','_drawRichTextLayer','2885UKumCy','adjustValues','_isImagePointerDown','interceptor','DRAWING_IMAGE','_clearConnectionSites','ObjectLayersIcon','calculate','getCurrentSkeleton','_lastEditingShapeKey','SHAPE_TEXT','panel','normal','with','image-clip-adjust-point-','COMMAND','addObject','_applyFormulaAutoFitSize','sheet.shape.object-list.panel','close','setSrcRect','11qHPtDr','SHAPE','sheets-shape-ui.objectListPanel.open','rotation','restore','packageName','_handleFreeEndpointMove','refreshFormulaPresentation','_transform','sheet.command.update-shape-data','_baseShapeHeight','sheet.operation.open-sheet-shape-format-panel','symbol','endConnectionDetection','_highlightedSiteIndex','enableObjectsEvent','setCursor','push','transformByState','_univerInstanceService','_initSheetChange','getBasicShapeRelation','stroke','shapeText','_insertShapes','_sidebarService','_handleFreeEndpointPointerUp','clip-adj-','sheet.shape.text.float-menu','setOnSavingEditorData','_executeResizeCommand','start','refreshAdjustControls','FlipHorizontalIcon','updateShapeFillImage','set','setCanUseShapeClip','isRenderLinePointsMode','map','_setTransForm','actualHeight','offsetY','contentVerticalOffset','clipByShape','_getConnectionSiteAngle','clipTop','add','sheets-shape-ui.permission.editErr','prstGeom','disableShapeOption','setPresentation','getUnit','width','Line','addClipboardHook','highlighted','createControl$','_sheetsShapeService','isDrawingObject','updateConnectionDetection','getImage','buildClipPath','prototype','PictureFill','getDrawingOKey','forward','attachTransformerTo','#1a73e8','keys','cancelEditing','onPointerMove$','_registerDrawingFocusChangeHandler','slice','_loadShapePictureFill','has','cxnPointStrokeWidth','getShapeDataById','worldRect','complete','unregister','isHighlighted','VIEW_MAIN_LEFT','endArrow','_shapeId','doc','_currentUniverService','DEFAULT_PASTE','_config','_baseShapeTop','resetCursor','_renderManagerService','_formulaKey','648ESKvOp','_insertingShapeKeys','startConnectionDetection','getBatchUpdateOp','_imageIoService','call','_clearShapeConnectorHandlerObjects','presentationChanged$','getAllUnitsForType','blockExecuteWithoutPermission','unitId','_groupCopyPasteController','_componentManager','makeDirty','changing$','_executeConnectionCommand','_addShapeConnectorHandlerObject','getCurrentScrollState','_baseTop','unsubscribe','getObjectIncludeInGroup','multiply','setConfig','_getShapeInfo','_loadAndSetImage','hidden','oKey','forEach','_imageShapeClipController','debounceRefreshControls','_currentConnectionTarget','_createShapeAdjustControls','32333743vszyfm','_drawingAddListener','FlipVerticalIcon','_onSavingEditorData$','_adjHandlerPointerUp','_activeShapeModel','localToWorld','getShapeType','adjHandleStroke','point','extensionGroups','_getSceneAndTransformerByDrawingSearch','save','rect','getConnectorLinePoints','invert','dataModel','fillType','_baseShapeLeft','params','transformForAngle','pipe','objects','pick','shapeKey','calcAdjValues','fillImageSource','iterator','_draw','_attachConnectorObjectEvent','_drawShapeText','_updateImageAdjValues','_updateAdjustControlPositions','disableObjectsEvent','addImageSourceCache','translateWithPrecision','onTransformChange$','sheetViewStartColumn','getActiveSheet','onPointerDown$','abs','function','getSheetId','getDrawingDataForUnit','stopPropagation','sheets-shape-ui.flipHorizontal','_renderWithCache','_disposed','_updateSrcRectByTransform','getDrawingSearch','_addShapeAdjustControl','_rerouteConnectorLine','scene','prstGeomAdjValues','_sidebarDisposable','sectionCanvas','getAdjustValueByName','translate','16nEVEOE','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','flipY','_getOrCreateShapeModel','subscribe','executeCommand','fillImageSourceType','clone','_sheetShapeAdjustController','_getZoomRatio','subscribeEvent','getCurrentTypeOfUnit$','sheet.command.menu-insert-shape','adjName','_initSelection','reduce','disposeWithMe','worldPoints','1352140NUJlFc','_findNearestConnectionSite','_adjName','_sheetSkeletonService','UNIVER_DOC','_shapeRenderController','sheet.shape.picker.component','getAutoFitPresentations','_connectorObjects','getAdjustInfoByName','_calculateFreeEndpointAngle','_isHighlighted','adjHandleSize','visible','gradientEndColor','clearAdjustValue','_currentScene','sheets-shape-ui.objectListPanel.title','_unitId','formulaBinding','shapeType','values','isHitLine','resourceCollector','_reset','sheetViewStartRow','getUnitId','wrapStrategy','_updateShapeAdjustControls','clipHeight','OTHERS','setFillImage','delete','getRealBound','_isOpenedShapeEditPanel','getImageSourceCache','getStartConnectInfo','getEditing','_getShapeAdjustInfosById','clear','Medium','@univerjs-pro/sheets-shape-ui','getRenderUnitById','sheet.menu.shape.flip-vertical','removeLinePoints','_generatePasteMutations','_activeShapeAdjustPointList','setShapeData','_isStartConnectorPoint','intercept','1.0.0-beta.0','isRichText','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','top','_contextService','cxnPointRadius','getState','trim','_handleConnectedEndpointMove','sheets-shape-ui','sheet.shape.edit.panel','_localeService','_openShapeEditPanel','_initializedShapePopupMenu','setPrstGeom','getShapeModel','REMOVE','isInGroup','computeStraightConnectorLayout','getSelectedObjectMap','isHorizontal','getScene','_focusedDrawings','sin','GROUP','_activeAdjustPointList','vertical','_initPermission','getConnectionSiteList','constructor','_drawingType','_closeShapeEditPanel','_cxtHandlerPointerUp','skeleton','register','canvas','_transformCalculateSrcRect','indexOf','onload','ancestorTransform','contentHeight','registerFeaturePasteHook','reverse','_addShapeConnectorHandlerObjects','DRAWING','getSkeletonParam','fontSize','cos','LEFT','string','getActualSize','getShapeTypeById','_editingParams$','getFocusDrawings','124239pSjLpK','_init','onRendered','onerror','subUnitId','shape-adjust-point-','setShouldShowAdjust','title','_cxnIndex','decorate','_showConnectionSites','_sheetCanvasPopManagerService','_registerOperations','getCurrentUnitOfType','text','updateLinePoints','_isShouldShowDrawingShapeAdjust','update$','getSkeleton','_menuManagerService','_adjHandlerPointerMove','drawWith','_registerDrawingMoveHandler','_sheetClipboardService','fill','image','registerRenderModule','_sheetPrintInterceptorService','color','adjHandleFill','_targetShapeId','_executeConnectedRouteResizeCommand','getShapeData','_activeAdjustInfo','undo','get','div','getInterceptPoints','horizontal','left','UNIVER_SHEET','_initEvents','18HAmDXV','marginTop','_baseDrawingRect','_clearControls','interceptCommand','onCommandExecuted','viewportScrollY','find','clip-','version','getBatchRemoveOp','focus$','defineProperty','_getImagePrstGeom','getTransformerByCreate','_clipService','changeStart$','updateContext','_findShapeAtPoint','getMatrix','dispose','shapeId','popup','DRAWING_SHAPE','_activeShapeId','StraightConnector1','setContextValue','_getShapeAdjustPointListById','ang','_shapeService','activeSheet$','sheet.shape.floating-toolbar','from','_clearShapeAdjustControls','SheetShapeTextEditorContainer','_copyInfo','startX','_sheetDrawingShapeRenderController','parent','VIEW_MAIN_TOP','classType','angle','_initPrinting','height','_drawingRenderService','_attachAdjustEvent','getDrawingPoints','11226Acfqet','flipX','computeConnectorResizeLayout','entries','index','render','length','getEndConnectInfo','cxnPointFill','_shapes','_initialize','focusDrawing','_getConnectPointInfo','_injector','_createControls','sheets-shape-text-','_drawingManagerService','registerCommand','_baseLeft','lineShapeId','_initMenu','isArray','getObject','_generateCutPasteMutations','getParent','axisAlignSheetTransform','completeEditing','_createCopyInfoByRange','sheets-shape-ui.formatShape','filter','None','default','_popupMenuListener','_props','getDrawingData','_baseHeight','transform','_registerGroupFeaturePasteHook','connection-site-','getPresentation','SHEET_SHAPE_UI_PLUGIN','_registerFocusChangeHandler','_createShapePopupMenu','description','Arrow','sheetTransform','updateDocumentDataMargin','_activeShapeInfo','targetShapeId','_handleConnectedEndpointPointerUp','_initCommands','relation','isEditing','asObservable','_shapeEditPanelVersion','_activeTargetShapeId','shapeModel','isStartConnectorPoint','shapeData','lineType','data','includes','_formulaShapes','drawingType','_addControl','initTransformer','_registerImageShapeClipDelegate','strokeWidth','_draggingConnectorId','_getImageDrawingInfo','refreshShapeFillImage','Large','isLineShape','_iconManager'];_0x5f35=function(){return _0x7e036e;};return _0x5f35();}let Er=class extends _0x3ba2e2{constructor(_0x305edd,_0x5a69d9,_0xea83b0,_0x1cdfbd,_0x3e5369){const _0x5dd389=_0x25219a;super(),this['_context']=_0x305edd,this['_drawingManagerService']=_0x5a69d9,this[_0x5dd389(0x145)]=_0xea83b0,this[_0x5dd389(0xfe)]=_0x1cdfbd,this[_0x5dd389(0x163)]=_0x3e5369,Y(this,_0x5dd389(0x300),null),Y(this,_0x5dd389(0x1c5),null),Y(this,'_subUnitId',null),Y(this,_0x5dd389(0x1fe),void 0x0),Y(this,_0x5dd389(0x27d),[]),Y(this,_0x5dd389(0x286),0x0),Y(this,_0x5dd389(0x159),0x0),Y(this,_0x5dd389(0x2f1),0x0),Y(this,'_baseHeight',0x0),Y(this,_0x5dd389(0x2e0),!0x1),Y(this,_0x5dd389(0x23c),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x5dd389(0x22f),void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x5dd389(0x345),!0x1),this[_0x5dd389(0x29d)](),this[_0x5dd389(0x315)]();}[_0x25219a(0x2e1)](){const _0x112421=_0x25219a;this[_0x112421(0x248)]();}['refreshAdjustControls'](){const _0x28c5cd=_0x25219a;this['_clearControls'](),this[_0x28c5cd(0x282)](!0x0);}['_getOrCreateShapeModel'](_0x4a204a,_0x1a30d1,_0x44d999,_0x2a0c63){const _0x15b5c2=_0x25219a;let _0xaf2b1d=_0x4a204a;if(_0xaf2b1d!==_0x6bfff9[_0x15b5c2(0x292)]&&_0x4a204a!=='custom')try{let _0x4d3484=new _0x57cb5b(_0xaf2b1d,_0x15b5c2(0x106)+_0x4a204a);return _0x2a0c63&&_0x4d3484[_0x15b5c2(0x1e2)]({'adjustValues':_0x2a0c63},!0x0),_0x4d3484['updateContext']({'width':_0x1a30d1,'height':_0x44d999}),_0x4d3484;}catch{return;}}[_0x25219a(0x2b9)](_0x26dde0,_0x57a62e,_0x32b415){const _0x5a3764=_0x25219a;let _0x485a11={'unitId':_0x26dde0,'subUnitId':_0x57a62e,'drawingId':_0x32b415},_0x2c73a0=this[_0x5a3764(0x284)]['getDrawingByParam'](_0x485a11);if(!(!_0x2c73a0||_0x2c73a0['drawingType']!==_0x161136[_0x5a3764(0xda)]))return _0x2c73a0;}[_0x25219a(0x252)](_0x42b8a9,_0x2c7a07,_0x1ba999){const _0x38de81=_0x25219a;let _0x387667=this[_0x38de81(0x145)][_0x38de81(0x1dd)](_0x42b8a9);if(!_0x387667)return;let {scene:_0x4ae30e}=_0x387667,_0x4cc9af=_0x566164({'unitId':_0x42b8a9,'subUnitId':_0x2c7a07,'drawingId':_0x1ba999}),_0x586526=_0x4ae30e[_0x38de81(0x28a)](_0x4cc9af);if(_0x586526 instanceof _0x8d12f0){let _0x4c40b0=_0x586526[_0x38de81(0x11b)];if(_0x4c40b0)return{'prstGeom':_0x4c40b0,'adjustValues':_0x586526[_0x38de81(0x19c)]};}}[_0x25219a(0x282)](_0x201de9=!0x1){const _0x59654b=_0x25219a;if(!this[_0x59654b(0x1c5)]||!this['_subUnitId']||!this[_0x59654b(0x300)])return;let _0x1bb7b3=this['_renderManagerService'][_0x59654b(0x1dd)](this[_0x59654b(0x1c5)]);if(!_0x1bb7b3||!_0x1bb7b3[_0x59654b(0xe3)](_0x319c9a)[_0x59654b(0xde)]())return;let {scene:_0xf42e70}=_0x1bb7b3,_0x50fcc5=this['_getImageDrawingInfo'](this[_0x59654b(0x1c5)],this['_subUnitId'],this['_activeImageId']);if(!_0x50fcc5)return;let {transform:_0x3dd484}=_0x50fcc5;if(!_0x3dd484)return;let {left:_0x4b1cf9,top:_0x3eb705,width:_0x37e86,height:_0x554b90,flipX:_0x3e7e1f,flipY:_0x30c71e,angle:_0xc2ae60=0x0}=_0x3dd484;if(_0x4b1cf9===void 0x0||_0x3eb705===void 0x0)return;let _0x2e147b=this[_0x59654b(0x252)](this[_0x59654b(0x1c5)],this['_subUnitId'],this['_activeImageId']);if(!_0x2e147b)return;if(_0x201de9){let _0xf31665=this[_0x59654b(0x1a4)](_0x2e147b['prstGeom'],_0x37e86||0x0,_0x554b90||0x0,_0x2e147b[_0x59654b(0x344)]);if(!_0xf31665)return;this[_0x59654b(0x1fe)]=_0xf31665[_0x59654b(0x273)]();}let _0x555f94=this['_activeAdjustPointList'];if(!(!_0x555f94||_0x555f94[_0x59654b(0x27a)]===0x0))for(let _0x22e60a=0x0;_0x22e60a<_0x555f94[_0x59654b(0x27a)];_0x22e60a++){let _0x2935e9=_0x555f94[_0x22e60a],_0x1a9454=_0x2935e9['x'],_0x1b8c97=_0x2935e9['y'];if(_0x3e7e1f&&(_0x1a9454=(_0x37e86||0x0)-_0x1a9454),_0x30c71e&&(_0x1b8c97=(_0x554b90||0x0)-_0x1b8c97),_0xc2ae60!==0x0){let _0x385474=(_0x37e86||0x0)/0x2,_0x4b8fd0=(_0x554b90||0x0)/0x2,_0x2ac99e=_0xc2ae60*Math['PI']/0xb4,_0x46f502=Math[_0x59654b(0x214)](_0x2ac99e),_0x2e47ee=Math[_0x59654b(0x1fc)](_0x2ac99e),_0x5a2aa6=_0x1a9454-_0x385474,_0xc11d4e=_0x1b8c97-_0x4b8fd0;_0x1a9454=_0x385474+(_0x5a2aa6*_0x46f502-_0xc11d4e*_0x2e47ee),_0x1b8c97=_0x4b8fd0+(_0x5a2aa6*_0x2e47ee+_0xc11d4e*_0x46f502);}let _0x388a6b={'x':_0x1a9454,'y':_0x1b8c97,'adjName':_0x2935e9['adjName']};this[_0x59654b(0x2b4)](_0xf42e70,_0x388a6b,_0x388a6b[_0x59654b(0x1ae)],_0x4b1cf9,_0x3eb705,this[_0x59654b(0x1c5)],this[_0x59654b(0x333)]);}}[_0x25219a(0x2b4)](_0x480ff2,_0x3abd88,_0x74be83,_0x3d98a9,_0x885332,_0x43a558,_0x3c967e){const _0x2bcdce=_0x25219a;if(!this[_0x2bcdce(0x300)])return;let _0x5b1a94=_0x2bcdce(0xe4)+this[_0x2bcdce(0x300)]+'-'+_0x74be83,_0x294371=_0x480ff2[_0x2bcdce(0x15b)](_0x5b1a94);if(_0x294371){_0x294371[_0x2bcdce(0xfd)]({'left':_0x3abd88['x']+_0x3d98a9-_0x373ebe[_0x2bcdce(0x1bf)],'top':_0x3abd88['y']+_0x885332-_0x373ebe[_0x2bcdce(0x1bf)]});return;}let _0x12dce2=new Rn(_0x5b1a94,{'left':_0x3abd88['x']+_0x3d98a9-_0x373ebe[_0x2bcdce(0x1bf)],'top':_0x3abd88['y']+_0x885332-_0x373ebe['adjHandleSize'],'adjName':_0x74be83,'shapeId':this[_0x2bcdce(0x300)],'unitId':_0x43a558,'subUnitId':_0x3c967e,'width':_0x373ebe[_0x2bcdce(0x1bf)]+0x8,'height':_0x373ebe[_0x2bcdce(0x1bf)]+0x8,'zIndex':_0x22b4b7+0x1,'evented':!0x0});this['_shapes'][_0x2bcdce(0xfc)](_0x12dce2),this['_attachAdjustEvent'](_0x12dce2,_0x480ff2,_0x74be83),_0x480ff2[_0x2bcdce(0xe6)](_0x12dce2,_0x22b4b7+0x1);}[_0x25219a(0x248)](){const _0x2b2f21=_0x25219a;this['_shapes'][_0x2b2f21(0x27a)]!==0x0&&(this[_0x2b2f21(0x27d)]['forEach'](_0x5d7a01=>_0x5d7a01[_0x2b2f21(0x259)]()),this[_0x2b2f21(0x27d)]=[]);}['_getScrollInfo'](_0x4d2df8,_0x53761b){const _0x202fda=_0x25219a;var _0x147ac4;let _0xf7527={'x':0x0,'y':0x0},_0x2e1edf=this[_0x202fda(0x145)][_0x202fda(0x1dd)](_0x4d2df8);if(!_0x2e1edf||!_0x2e1edf[_0x202fda(0xe3)](_0x319c9a)[_0x202fda(0x22d)](_0x53761b))return _0xf7527;let _0x151e9f=_0x2e1edf['with'](_0x22e443),_0x137243=_0x151e9f==null?void 0x0:_0x151e9f[_0x202fda(0x158)]();if(!_0x137243)return _0xf7527;let _0x70b087=(_0x147ac4=this[_0x202fda(0xfe)][_0x202fda(0x11e)](_0x4d2df8))==null?void 0x0:_0x147ac4[_0x202fda(0x330)](_0x53761b);if(!_0x70b087)return _0xf7527;let _0x34ca1a=_0x4f0d4b(_0x137243['sheetViewStartRow'],_0x137243[_0x202fda(0x18c)],_0x2e1edf['scene'],_0x70b087);return _0x34ca1a?{'x':_0x34ca1a['viewportScrollX'],'y':_0x34ca1a[_0x202fda(0x24b)]}:_0xf7527;}[_0x25219a(0x1aa)](_0x4f52a4,_0x54743c){const _0x2ebc0f=_0x25219a;var _0x178b4a;let _0x53d5ce=(_0x178b4a=this[_0x2ebc0f(0xfe)][_0x2ebc0f(0x11e)](_0x4f52a4))==null?void 0x0:_0x178b4a[_0x2ebc0f(0x330)](_0x54743c);return(_0x53d5ce==null?void 0x0:_0x53d5ce[_0x2ebc0f(0x310)]())??0x1;}[_0x25219a(0x272)](_0x4c9e12,_0x1aead9,_0x4bdc8f){const _0x55ef81=_0x25219a;this[_0x55ef81(0x1b1)](_0x2388cf(_0x4c9e12[_0x55ef81(0x18e)][_0x55ef81(0x1ab)]((_0x514095,_0x430f27)=>{const _0x3ab918=_0x55ef81;var _0x188552,_0x4dbb1a,_0x4a9755;let {unitId:_0x30249b,subUnitId:_0x349bcc,drawingId:_0x50d562}=_0x4c9e12[_0x3ab918(0x198)](),_0x2f1790=this[_0x3ab918(0x2b9)](_0x30249b,_0x349bcc,_0x50d562);if(!(_0x2f1790!=null&&_0x2f1790[_0x3ab918(0x298)]))return;let {left:_0x121521,top:_0x333af7,width:_0x2ae224,height:_0x3e7da3}=_0x2f1790[_0x3ab918(0x298)];this[_0x3ab918(0x286)]=_0x121521||0x0,this[_0x3ab918(0x159)]=_0x333af7||0x0,this[_0x3ab918(0x2f1)]=_0x2ae224||0x0,this[_0x3ab918(0x297)]=_0x3e7da3||0x0;let _0x506d86=!!((_0x188552=_0x2f1790[_0x3ab918(0x298)])!=null&&_0x188552[_0x3ab918(0x275)]),_0x2f692a=!!((_0x4dbb1a=_0x2f1790[_0x3ab918(0x298)])!=null&&_0x4dbb1a[_0x3ab918(0x1a3)]),_0xad05aa=((_0x4a9755=_0x2f1790['transform'])==null?void 0x0:_0x4a9755[_0x3ab918(0x26e)])||0x0,_0x20fb96=this[_0x3ab918(0x252)](_0x30249b,_0x349bcc,_0x50d562);if(!_0x20fb96)return;let _0x3d461a=this[_0x3ab918(0x1a4)](_0x20fb96['prstGeom'],this[_0x3ab918(0x2f1)],this[_0x3ab918(0x297)],_0x20fb96[_0x3ab918(0x344)]);if(!_0x3d461a||(this[_0x3ab918(0x16c)]=_0x3d461a,this[_0x3ab918(0x23c)]=_0x3d461a[_0x3ab918(0x1bc)](_0x4bdc8f),!this[_0x3ab918(0x23c)]))return;this[_0x3ab918(0x2e0)]=!0x0,_0x1aead9[_0x3ab918(0x188)]();let _0x51be7c=_0x20fb96['prstGeom'];this['_adjHandlerPointerMove']=_0x1aead9[_0x3ab918(0x131)][_0x3ab918(0x1ab)]((_0x1d1c27,_0x1188c7)=>{const _0x1f64d7=_0x3ab918;if(!this[_0x1f64d7(0x2e0)])return;let {offsetX:_0x53f303,offsetY:_0x29b3cd}=_0x1d1c27,_0x1a5a59=this[_0x1f64d7(0x23c)];if(!this[_0x1f64d7(0x16c)]||!_0x1a5a59)return;_0x1aead9[_0x1f64d7(0x188)](),_0x1aead9[_0x1f64d7(0xfb)](_0x2bcec2[_0x1f64d7(0x318)]);let _0xda560b={'left':0x0,'top':0x0,'width':this[_0x1f64d7(0x2f1)],'height':this[_0x1f64d7(0x297)]},_0x45cd9e=this[_0x1f64d7(0x314)](_0x30249b,_0x349bcc),_0x5855a8=this[_0x1f64d7(0x1aa)](_0x30249b,_0x349bcc),_0x5d98d2=_0x53f303/_0x5855a8+_0x45cd9e['x']-this[_0x1f64d7(0x286)],_0x383337=_0x29b3cd/_0x5855a8+_0x45cd9e['y']-this[_0x1f64d7(0x159)];if(_0xad05aa!==0x0){let _0x44a03d=this[_0x1f64d7(0x2f1)]/0x2,_0x4f20ce=this[_0x1f64d7(0x297)]/0x2,_0xea9447=_0xad05aa*Math['PI']/0xb4,_0x156bf4=Math[_0x1f64d7(0x214)](_0xea9447),_0x21cdbe=Math[_0x1f64d7(0x1fc)](_0xea9447),_0x4134a5=_0x5d98d2-_0x44a03d,_0x408204=_0x383337-_0x4f20ce;_0x5d98d2=_0x44a03d+(_0x4134a5*_0x156bf4+_0x408204*_0x21cdbe),_0x383337=_0x4f20ce+(-_0x4134a5*_0x21cdbe+_0x408204*_0x156bf4);}_0x506d86&&(_0x5d98d2=this[_0x1f64d7(0x2f1)]-_0x5d98d2),_0x2f692a&&(_0x383337=this[_0x1f64d7(0x297)]-_0x383337);let _0x4f368b=this[_0x1f64d7(0x16c)]['calcAdjValues'](_0xda560b,{'x':_0x5d98d2,'y':_0x383337},_0x1a5a59,_0x506d86,_0x2f692a);if(Object[_0x1f64d7(0x12f)](_0x4f368b)[_0x1f64d7(0x27a)]!==0x0){for(let [_0x7ff096,_0x5747c4]of Object['entries'](_0x4f368b))this['_activeShapeModel']['setAdjustValueByName'](_0x7ff096,_0x5747c4);this[_0x1f64d7(0x16c)][_0x1f64d7(0x256)]({'width':this[_0x1f64d7(0x2f1)],'height':this[_0x1f64d7(0x297)]}),this[_0x1f64d7(0x186)](_0x30249b,_0x349bcc,_0x50d562,_0x4f368b),this[_0x1f64d7(0x1fe)]=this[_0x1f64d7(0x16c)][_0x1f64d7(0x273)](),this['_createControls'](),_0x1188c7[_0x1f64d7(0x193)]();}}),this[_0x3ab918(0x16b)]=_0x1aead9['onPointerUp$'][_0x3ab918(0x1ab)]((_0x4a66f4,_0x268ead)=>{const _0x59a96e=_0x3ab918;if(this[_0x59a96e(0x22f)][_0x59a96e(0x15a)](),this[_0x59a96e(0x16b)][_0x59a96e(0x15a)](),_0x1aead9['resetCursor'](),this[_0x59a96e(0x16c)]){let _0x2b16ae=this[_0x59a96e(0x16c)][_0x59a96e(0x2ea)](),_0x283d54={};for(let _0x4784c6 of _0x2b16ae){let _0x463944=this[_0x59a96e(0x16c)][_0x59a96e(0x19f)](_0x4784c6);_0x463944!==void 0x0&&(_0x283d54[_0x4784c6]=_0x463944);}this['_imageShapeClipController'][_0x59a96e(0x116)](_0x30249b,_0x349bcc,_0x50d562,_0x51be7c,_0x283d54);}this[_0x59a96e(0x23c)]=void 0x0,this[_0x59a96e(0x16c)]=void 0x0,this[_0x59a96e(0x2e0)]=!0x1,_0x268ead['stopPropagation'](),_0x1aead9[_0x59a96e(0xfa)]();}),_0x430f27[_0x3ab918(0x193)]();})));}[_0x25219a(0x186)](_0x278b96,_0x5241b4,_0x19beb1,_0x2bb77a){const _0x326d9e=_0x25219a;let _0x1f82f8=this['_renderManagerService'][_0x326d9e(0x1dd)](_0x278b96);if(!_0x1f82f8)return;let {scene:_0x1373c7}=_0x1f82f8,_0x3d76ff=_0x566164({'unitId':_0x278b96,'subUnitId':_0x5241b4,'drawingId':_0x19beb1}),_0x8f963c=_0x1373c7['getObject'](_0x3d76ff);if(_0x8f963c instanceof _0x8d12f0){let _0x719e94=_0x8f963c[_0x326d9e(0x19c)]??{};_0x8f963c[_0x326d9e(0x305)]({..._0x719e94,..._0x2bb77a}),_0x8f963c[_0x326d9e(0x154)](!0x0);}}[_0x25219a(0x315)](){const _0x3649ac=_0x25219a;let _0x5035e4=this[_0x3649ac(0xfe)][_0x3649ac(0x1ac)](_0x2e857c[_0x3649ac(0x243)]);this[_0x3649ac(0x1b1)](_0x5035e4[_0x3649ac(0x17c)](_0x54e619(_0x3a1b79=>_0x3a1b79?_0x3a1b79[_0x3649ac(0x263)][_0x3649ac(0x17c)](_0x54e619(_0x18d569=>{const _0x4686f4=_0x3649ac;if(!_0x18d569)return _0x1997e0;let _0x3c452e=_0x3a1b79[_0x4686f4(0x1cd)](),_0x35d714=this['_renderManagerService']['getRenderUnitById'](_0x3c452e),_0x425aad=_0x35d714==null?void 0x0:_0x35d714[_0x4686f4(0x19b)];return _0x425aad?_0x36ada1(_0x425aad):_0x1997e0;})):_0x1997e0))[_0x3649ac(0x1a5)](_0x5674be=>{const _0x5d5f68=_0x3649ac;let _0xfc9346=_0x5674be[_0x5d5f68(0x253)]();this['disposeWithMe'](_0x5674be[_0x5d5f68(0x131)][_0x5d5f68(0x1ab)](()=>{const _0x1162af=_0x5d5f68;this[_0x1162af(0x345)]&&this['_clearControls']();})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x255)][_0x5d5f68(0x1a5)](_0x45d201=>{const _0x209879=_0x5d5f68;let {objects:_0x4627ee}=_0x45d201;if(this[_0x209879(0x282)](),_0x4627ee!==null&&_0x4627ee['size']===0x1){let _0x328e61=_0x4627ee[_0x209879(0x1c8)]()['next']()[_0x209879(0x335)];_0x328e61 instanceof _0x8d12f0&&_0x328e61[_0x209879(0x11b)]&&(this[_0x209879(0x345)]=!0x0);}})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x155)]['subscribe'](()=>{const _0x4709b8=_0x5d5f68;this[_0x4709b8(0x345)]&&this[_0x4709b8(0x248)]();})),this['disposeWithMe'](_0x5674be[_0x5d5f68(0x2fc)][_0x5d5f68(0x1ab)](()=>{const _0x3c2cf6=_0x5d5f68;this[_0x3c2cf6(0x345)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x5d5f68(0x1b1)](_0xfc9346[_0x5d5f68(0x313)]['subscribe'](()=>{const _0x538486=_0x5d5f68;if(this[_0x538486(0x1c5)]&&this[_0x538486(0x333)]&&this[_0x538486(0x300)]){let _0x37f872=this['_getImagePrstGeom'](this[_0x538486(0x1c5)],this[_0x538486(0x333)],this[_0x538486(0x300)]);if(_0x37f872){var _0x172f6e,_0x57d99e;let _0x43bc6b=this[_0x538486(0x2b9)](this[_0x538486(0x1c5)],this[_0x538486(0x333)],this['_activeImageId']),_0x2a529b=(_0x43bc6b==null||(_0x172f6e=_0x43bc6b[_0x538486(0x298)])==null?void 0x0:_0x172f6e[_0x538486(0x11f)])||0x0,_0x1091f2=(_0x43bc6b==null||(_0x57d99e=_0x43bc6b[_0x538486(0x298)])==null?void 0x0:_0x57d99e[_0x538486(0x270)])||0x0,_0x56b3a2=this[_0x538486(0x1a4)](_0x37f872[_0x538486(0x11b)],_0x2a529b,_0x1091f2,_0x37f872['adjustValues']);_0x56b3a2&&(this[_0x538486(0x1fe)]=_0x56b3a2[_0x538486(0x273)](),this['_clearControls'](),this[_0x538486(0x282)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x37a8fd=_0x25219a;this['disposeWithMe'](this[_0x37a8fd(0x284)][_0x37a8fd(0x250)][_0x37a8fd(0x1a5)](_0x45c5d7=>{const _0x5d4d5b=_0x37a8fd;if(_0x45c5d7[_0x5d4d5b(0x27a)]===0x1){let _0x5bb6af=_0x45c5d7[0x0];if(_0x5bb6af[_0x5d4d5b(0x2b3)]===_0x161136[_0x5d4d5b(0xda)]){let {unitId:_0x46879a,subUnitId:_0x36b1a3,drawingId:_0x15db14}=_0x5bb6af,_0x22d59f=this['_getImagePrstGeom'](_0x46879a,_0x36b1a3,_0x15db14);if(_0x22d59f){var _0x198481,_0x59c817;this[_0x5d4d5b(0x300)]=_0x15db14,this[_0x5d4d5b(0x1c5)]=_0x46879a,this[_0x5d4d5b(0x333)]=_0x36b1a3;let _0x1142a1=this[_0x5d4d5b(0x2b9)](_0x46879a,_0x36b1a3,_0x15db14),_0x43c470=(_0x1142a1==null||(_0x198481=_0x1142a1[_0x5d4d5b(0x298)])==null?void 0x0:_0x198481['width'])||0x0,_0x582f52=(_0x1142a1==null||(_0x59c817=_0x1142a1[_0x5d4d5b(0x298)])==null?void 0x0:_0x59c817[_0x5d4d5b(0x270)])||0x0,_0x64291=this[_0x5d4d5b(0x1a4)](_0x22d59f[_0x5d4d5b(0x11b)],_0x43c470,_0x582f52,_0x22d59f[_0x5d4d5b(0x344)]);_0x64291&&(this[_0x5d4d5b(0x1fe)]=_0x64291[_0x5d4d5b(0x273)]()),this[_0x5d4d5b(0x248)](),this[_0x5d4d5b(0x282)](!0x0);}else this[_0x5d4d5b(0x33c)]();}else this[_0x5d4d5b(0x33c)]();}else this['_resetState']();})),this[_0x37a8fd(0x1b1)](this['_drawingManagerService']['update$'][_0x37a8fd(0x1a5)](_0x230651=>{const _0x41310a=_0x37a8fd;if(_0x230651[_0x41310a(0x27a)]===0x1){let _0x5c5e20=_0x230651[0x0],_0x1c5a9a=this[_0x41310a(0x284)][_0x41310a(0x30c)](_0x5c5e20);(_0x1c5a9a==null?void 0x0:_0x1c5a9a[_0x41310a(0x2b3)])===_0x161136[_0x41310a(0xda)]&&this[_0x41310a(0x300)]===_0x5c5e20[_0x41310a(0x2c2)]&&(this[_0x41310a(0x248)](),this[_0x41310a(0x282)](!0x0));}})),this['disposeWithMe'](this[_0x37a8fd(0x284)]['remove$'][_0x37a8fd(0x1a5)](_0x2950d6=>{const _0x573d84=_0x37a8fd;for(let _0x4df493 of _0x2950d6)this[_0x573d84(0x300)]===_0x4df493['drawingId']&&this[_0x573d84(0x33c)]();}));}[_0x25219a(0x33c)](){const _0x3575b1=_0x25219a;this['_activeImageId']=null,this[_0x3575b1(0x1c5)]=null,this[_0x3575b1(0x333)]=null,this[_0x3575b1(0x1fe)]=void 0x0,this[_0x3575b1(0x248)]();}};Er=Z([X(0x1,_0x492363),X(0x2,_0x396ece(_0x471989)),X(0x3,_0x230412),X(0x4,_0x396ece(Jn))],Er);let Dr=class extends _0x3ba2e2{constructor(_0x5b97f4,_0x11b73c,_0x1da71d,_0x1fec8d){const _0x7c19b0=_0x25219a;super(),this[_0x7c19b0(0xfe)]=_0x5b97f4,this[_0x7c19b0(0x2d9)]=_0x11b73c,this[_0x7c19b0(0x329)]=_0x1da71d,this['_sheetsShapeService']=_0x1fec8d,this[_0x7c19b0(0xff)]();}[_0x25219a(0xff)](){const _0x5544bc=_0x25219a;this['disposeWithMe'](this['_sheetInterceptorService'][_0x5544bc(0x249)]({'getMutations':_0x59b06e=>{const _0x19c594=_0x5544bc;if(_0x59b06e['id']===_0x213d50['id']){let _0x508b6d=_0x4988bb(this[_0x19c594(0xfe)],_0x59b06e[_0x19c594(0x17a)]);if(!_0x508b6d)return{'redos':[],'undos':[]};let {unitId:_0x2f6928,subUnitId:_0x3e25c6}=_0x508b6d,_0x216d8d=this[_0x19c594(0x329)][_0x19c594(0x296)](_0x2f6928,_0x3e25c6),_0x4a7569=Object[_0x19c594(0x1c8)](_0x216d8d)[_0x19c594(0x291)](_0x404f2b=>_0x404f2b['drawingType']===_0x161136[_0x19c594(0x25c)]);if(_0x4a7569[_0x19c594(0x27a)]===0x0)return{'redos':[],'undos':[]};let _0x48c930=[],_0x5887c8=[];for(let _0x3c2180=0x0;_0x3c2180<_0x4a7569[_0x19c594(0x27a)];_0x3c2180++){let _0x27118f=_0x4a7569[_0x3c2180],_0x58c86f=this[_0x19c594(0x124)][_0x19c594(0x1f4)](_0x27118f[_0x19c594(0x151)],_0x27118f[_0x19c594(0x21f)],_0x27118f[_0x19c594(0x2c2)]);if(!_0x58c86f)continue;let {redo:_0x3f3017,undo:_0x240292,objects:_0x2ded47}=this[_0x19c594(0x329)][_0x19c594(0x24f)]([_0x27118f]);_0x48c930['push']({'id':_0x30f07c['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'shapeId':_0x27118f[_0x19c594(0x2c2)]}}),_0x48c930['push']({'id':_0x2118d0['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'type':_0x34c4cd[_0x19c594(0x1f5)],'op':_0x3f3017,'objects':_0x2ded47}}),_0x5887c8[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'type':_0x34c4cd['INSERT'],'op':_0x240292,'objects':_0x2ded47}}),_0x5887c8['push']({'id':_0x55e264['id'],'params':{'unitId':_0x2f6928,'subUnitId':_0x3e25c6,'shapeId':_0x27118f[_0x19c594(0x2c2)],'shapeType':_0x58c86f[_0x19c594(0x16e)](),'shapeData':JSON[_0x19c594(0x336)](JSON[_0x19c594(0x327)](_0x58c86f[_0x19c594(0x23b)]()))}});}return{'redos':_0x48c930,'undos':_0x5887c8};}else{if(_0x59b06e['id']===_0x4c17f0['id']){let {unitId:_0x1cf358,subUnitId:_0x50def6,targetSubUnitId:_0x299112}=_0x59b06e[_0x19c594(0x17a)];if(!_0x1cf358||!_0x50def6||!_0x299112)return{'redos':[],'undos':[]};let _0x1fbda8=this[_0x19c594(0x329)][_0x19c594(0x296)](_0x1cf358,_0x50def6),_0x4de3ea=Object[_0x19c594(0x1c8)](_0x1fbda8)['filter'](_0x4fc5d0=>_0x4fc5d0[_0x19c594(0x2b3)]===_0x161136['DRAWING_SHAPE']);if(_0x4de3ea[_0x19c594(0x27a)]===0x0)return{'redos':[],'undos':[]};let _0x16b52d=[],_0x3657d7=[];for(let _0x4e012a=0x0;_0x4e012a<_0x4de3ea['length'];_0x4e012a++){let _0x3e4572=_0x4de3ea[_0x4e012a],_0x340aba=this['_sheetsShapeService'][_0x19c594(0x1f4)](_0x3e4572[_0x19c594(0x151)],_0x3e4572['subUnitId'],_0x3e4572[_0x19c594(0x2c2)]);if(!_0x340aba)continue;let _0x456306=_0x44c0e2(),_0x38f18e={..._0x3e4572,'unitId':_0x1cf358,'subUnitId':_0x299112,'drawingId':_0x456306},{redo:_0x2013c7,undo:_0x341e47,objects:_0x245e15}=this[_0x19c594(0x329)][_0x19c594(0x307)]([_0x38f18e]);_0x16b52d[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'type':_0x34c4cd[_0x19c594(0x312)],'op':_0x2013c7,'objects':_0x245e15}}),_0x16b52d[_0x19c594(0xfc)]({'id':_0x55e264['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'shapeId':_0x456306,'shapeType':_0x340aba[_0x19c594(0x16e)](),'shapeData':JSON[_0x19c594(0x336)](JSON[_0x19c594(0x327)](_0x340aba[_0x19c594(0x23b)]()))}}),_0x3657d7[_0x19c594(0xfc)]({'id':_0x30f07c['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'shapeId':_0x456306}}),_0x3657d7[_0x19c594(0xfc)]({'id':_0x2118d0['id'],'params':{'unitId':_0x1cf358,'subUnitId':_0x299112,'type':_0x34c4cd[_0x19c594(0x1f5)],'op':_0x341e47,'objects':_0x245e15}});}return{'redos':_0x16b52d,'undos':_0x3657d7};}}return{'redos':[],'undos':[]};}}));}};Dr=Z([X(0x0,_0x396ece(_0x230412)),X(0x1,_0x396ece(_0x2920c2)),X(0x2,_0x396ece(_0x18f6a9)),X(0x3,_0x396ece(_0x6985f7))],Dr);let Or=class extends _0x3ba2e2{constructor(_0x22c4d9,_0xdfd53b,_0x4f1b40,_0x268f55,_0x17d424){const _0x176a80=_0x25219a;super(),this[_0x176a80(0x316)]=_0x22c4d9,this[_0x176a80(0x30f)]=_0xdfd53b,this[_0x176a80(0x284)]=_0x4f1b40,this[_0x176a80(0x1e9)]=_0x268f55,this['_sheetsShapeService']=_0x17d424,Y(this,_0x176a80(0xdf),null),this[_0x176a80(0x244)](),this[_0x176a80(0x1af)](),this[_0x176a80(0x306)]();}['_initEvents'](){const _0xdc2d1d=_0x25219a;let {scene:_0x905bb6}=this[_0xdc2d1d(0x316)];this[_0xdc2d1d(0x1b1)](_0x905bb6[_0xdc2d1d(0x2f0)][_0xdc2d1d(0x1ab)](_0x5b792e=>{const _0x3d4927=_0xdc2d1d;let {offsetX:_0x150df2,offsetY:_0x32117a}=_0x5b792e,_0x2c2062=_0x905bb6[_0x3d4927(0x17e)](_0x48df4c['FromArray']([_0x150df2,_0x32117a]));if(_0x2c2062 instanceof Ln){let _0x23b9c2=this[_0x3d4927(0x124)][_0x3d4927(0x1f4)](_0x2c2062[_0x3d4927(0x151)],_0x2c2062[_0x3d4927(0x21f)],_0x2c2062[_0x3d4927(0x25a)]);if(_0x23b9c2!=null&&_0x23b9c2['getShapeData']()['formulaBinding']||_0x41a954(this['_sheetsShapeService'][_0x3d4927(0x16e)](_0x2c2062[_0x3d4927(0x151)],_0x2c2062[_0x3d4927(0x21f)],_0x2c2062[_0x3d4927(0x25a)])))return;this['_shapeTextEditingService'][_0x3d4927(0x2cd)]({'visible':!0x0,'unitId':_0x2c2062['unitId'],'subUnitId':_0x2c2062[_0x3d4927(0x21f)],'shapeId':_0x2c2062[_0x3d4927(0x25a)],'shapeKey':_0x2c2062[_0x3d4927(0x161)]});}}));}['_initSelection'](){const _0x2a39f2=_0x25219a;this[_0x2a39f2(0x1b1)](this[_0x2a39f2(0x284)]['focus$'][_0x2a39f2(0x1a5)](_0x4103e6=>{const _0x24f7ab=_0x2a39f2;if(_0x4103e6[_0x24f7ab(0x27a)]===0x1){let _0x22dcf9=_0x4103e6[0x0],_0x197d37=this[_0x24f7ab(0x284)][_0x24f7ab(0x30c)](_0x22dcf9);if((_0x197d37==null?void 0x0:_0x197d37[_0x24f7ab(0x2b3)])===_0x161136['DRAWING_SHAPE']){var _0x463371;let _0xf2018c=this[_0x24f7ab(0x30f)][_0x24f7ab(0x1d8)]();if((_0xf2018c==null?void 0x0:_0xf2018c[_0x24f7ab(0x25a)])===_0x22dcf9[_0x24f7ab(0x2c2)]&&_0xf2018c[_0x24f7ab(0x1c0)])return;let _0x193f37=_0x41a954(this[_0x24f7ab(0x124)][_0x24f7ab(0x16e)](_0x22dcf9['unitId'],_0x22dcf9[_0x24f7ab(0x21f)],_0x22dcf9[_0x24f7ab(0x2c2)])),_0x3a4755=!!((_0x463371=this[_0x24f7ab(0x124)][_0x24f7ab(0x1f4)](_0x22dcf9[_0x24f7ab(0x151)],_0x22dcf9['subUnitId'],_0x22dcf9[_0x24f7ab(0x2c2)]))!=null&&_0x463371[_0x24f7ab(0x23b)]()['formulaBinding']);(_0x193f37||_0x3a4755)&&this[_0x24f7ab(0x30f)][_0x24f7ab(0x2cd)](null);}else this[_0x24f7ab(0x30f)]['getEditing']()&&(this[_0x24f7ab(0x30f)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x4f4bbe=_0x24f7ab;this[_0x4f4bbe(0x30f)]['setEditing'](null);}));}else this[_0x24f7ab(0x30f)][_0x24f7ab(0x1d8)]()&&(this[_0x24f7ab(0x30f)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x133f98=_0x24f7ab;this[_0x133f98(0x30f)][_0x133f98(0x2cd)](null);}));})),this[_0x2a39f2(0x1b1)](this[_0x2a39f2(0x284)][_0x2a39f2(0x2c0)][_0x2a39f2(0x1a5)](_0x3ad7bf=>{const _0x4c731e=_0x2a39f2;let _0xf12787=this[_0x4c731e(0x30f)][_0x4c731e(0x1d8)]();_0xf12787&&_0x3ad7bf['some'](_0x215830=>_0x215830[_0x4c731e(0x2c2)]===_0xf12787[_0x4c731e(0x25a)])&&this[_0x4c731e(0x30f)][_0x4c731e(0x2cd)](null);}));}[_0x25219a(0x306)](){const _0x27e143=_0x25219a;this[_0x27e143(0x1b1)](this['_shapeTextEditingService']['editingParams$'][_0x27e143(0x1a5)](_0x50c32e=>{const _0x4a10ac=_0x27e143;let {scene:_0x2a3351}=this[_0x4a10ac(0x316)];if(this[_0x4a10ac(0xdf)]){let _0x2df355=_0x2a3351[_0x4a10ac(0x15b)](this['_lastEditingShapeKey']);_0x2df355&&_0x2df355[_0x4a10ac(0x2cd)](!0x1);}if(_0x50c32e){let _0x537a0d=!!_0x50c32e[_0x4a10ac(0x1c0)],_0x21ab4d=_0x2a3351[_0x4a10ac(0x15b)](_0x50c32e['shapeKey']);_0x21ab4d&&(_0x21ab4d[_0x4a10ac(0x2cd)](_0x537a0d),this[_0x4a10ac(0xdf)]=_0x50c32e[_0x4a10ac(0x17f)]),this[_0x4a10ac(0x1e9)][_0x4a10ac(0x25f)](_0x5d8f61,_0x537a0d);}else this[_0x4a10ac(0xdf)]=null,this[_0x4a10ac(0x1e9)]['setContextValue'](_0x5d8f61,!0x1);}));}};Or=Z([X(0x1,_0x396ece(Cr)),X(0x2,_0x492363),X(0x3,_0x334f35),X(0x4,_0x396ece(_0x6985f7))],Or);let kr=class extends _0x4f7f46{constructor(_0x24cd6b,_0x2bc379,_0x225f92,_0x5dc4f7){super(_0x24cd6b,_0x2bc379,_0x225f92,_0x5dc4f7,{'componentKey':Kn,'editorUnitId':Gn});}};kr=Z([X(0x1,_0x396ece(_0x3a116c)),X(0x2,_0x396ece(_0x45051f)),X(0x3,_0x396ece(_0x1bed72))],kr);let Ar=class extends _0x3ba2e2{constructor(_0x30f46b,_0x12698c,_0x4766f4,_0x1d2ade,_0x5b7f8e,_0x3cae33){const _0xda95a9=_0x25219a;super(),this['_commandService']=_0x30f46b,this[_0xda95a9(0x145)]=_0x12698c,this[_0xda95a9(0x284)]=_0x4766f4,this[_0xda95a9(0x140)]=_0x1d2ade,this[_0xda95a9(0x271)]=_0x5b7f8e,this[_0xda95a9(0x26a)]=_0x3cae33,Y(this,_0xda95a9(0x148),new Set()),this[_0xda95a9(0x27e)]();}[_0x25219a(0x27e)](){const _0x1f8780=_0x25219a;this[_0x1f8780(0x168)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}[_0x25219a(0x168)](){const _0x546aee=_0x25219a;this['disposeWithMe'](this[_0x546aee(0x284)][_0x546aee(0x340)][_0x546aee(0x1a5)](_0x4f5066=>{this['_insertShapes'](_0x4f5066);}));}[_0x25219a(0x30e)](){const _0x107565=_0x25219a;this[_0x107565(0x1b1)](this[_0x107565(0x2cc)][_0x107565(0x24a)](_0x859cd4=>{const _0x536867=_0x107565;if(_0x859cd4['id']===_0x46a98e['id']){let {unitId:_0x1da3b8,subUnitId:_0x50066c,shapeId:_0x39295e}=_0x859cd4[_0x536867(0x17a)],_0x1c9eb7=this[_0x536867(0x172)](_0x1da3b8),_0x1fa16f=_0x566164({'unitId':_0x1da3b8,'subUnitId':_0x50066c,'drawingId':_0x39295e}),_0x215110=_0x1c9eb7==null?void 0x0:_0x1c9eb7[_0x536867(0x19b)]['getObjectIncludeInGroup'](_0x1fa16f);_0x215110&&(this[_0x536867(0x26a)][_0x536867(0x2ba)](_0x215110),this['_sheetDrawingShapeRenderController']['refreshFormulaPresentation'](_0x215110,{'unitId':_0x1da3b8,'subUnitId':_0x50066c,'shapeId':_0x39295e}),_0x215110['makeDirty'](!0x0));return;}if(_0x859cd4['id']===_0x55e264['id']){var _0x2b1bea;let {unitId:_0x167b00,subUnitId:_0x3cad43,shapeId:_0xc5db1b}=_0x859cd4[_0x536867(0x17a)],_0x326922=this['_getSceneAndTransformerByDrawingSearch'](_0x167b00);if(_0x326922==null)return;let {scene:_0x38a81e}=_0x326922,_0x5d9014=_0x566164({'unitId':_0x167b00,'subUnitId':_0x3cad43,'drawingId':_0xc5db1b}),_0x118f6a=_0x38a81e[_0x536867(0x15b)](_0x5d9014);if(!((_0x2b1bea=this[_0x536867(0x145)]['getRenderUnitById'](_0x167b00))!=null&&_0x2b1bea['with'](_0x319c9a)[_0x536867(0x22d)](_0x3cad43)))return!0x1;if(_0x118f6a)return;this[_0x536867(0x103)]([{'unitId':_0x167b00,'subUnitId':_0x3cad43,'drawingId':_0xc5db1b}]);}}));}['_shapeUpdateListener'](){const _0x59d7d2=_0x25219a;this['disposeWithMe'](this[_0x59d7d2(0x284)][_0x59d7d2(0x22c)]['subscribe'](_0x3e65d7=>{const _0x5c3da3=_0x59d7d2;_0x3e65d7[_0x5c3da3(0x162)](_0x4984d2=>{const _0x4a2618=_0x5c3da3;let {unitId:_0x2c901c,subUnitId:_0xef727c,drawingId:_0x1aa195}=_0x4984d2,_0x249856=this[_0x4a2618(0x284)][_0x4a2618(0x30c)](_0x4984d2);if(_0x249856==null)return;let {transform:_0x440d98,drawingType:_0x1bf87f,srcRect:_0xe55270,prstGeom:_0x5c7153}=_0x249856;if(_0x1bf87f!==_0x161136['DRAWING_SHAPE'])return;let _0x172c1f=this[_0x4a2618(0x172)](_0x2c901c);if(_0x172c1f==null)return;let {scene:_0x2c7eeb,transformer:_0x5cdee5}=_0x172c1f;if(_0x440d98==null)return!0x0;let _0x580298=_0x566164({'unitId':_0x2c901c,'subUnitId':_0xef727c,'drawingId':_0x1aa195}),_0x346b7f=_0x2c7eeb[_0x4a2618(0x15b)](_0x580298);if(_0x346b7f==null)return!0x0;_0x346b7f['setSrcRect'](_0xe55270),_0x346b7f[_0x4a2618(0x1f3)](_0x5c7153);});}));}[_0x25219a(0x103)](_0x570959){const _0x42c7c2=_0x25219a;for(let _0x5b6fdb of _0x570959){var _0x592b13;let {unitId:_0x24dbe7,subUnitId:_0x43c156,drawingId:_0x1d1998}=_0x5b6fdb,_0x46260b=this[_0x42c7c2(0x172)](_0x24dbe7),_0x4538d1=(_0x592b13=_0x19ceb1(this[_0x42c7c2(0x140)],_0x24dbe7))==null?void 0x0:_0x592b13[_0x42c7c2(0x21f)];if(_0x46260b==null||_0x4538d1!==_0x43c156)return;let _0x41923d=_0x566164({'unitId':_0x24dbe7,'subUnitId':_0x43c156,'drawingId':_0x1d1998});if(this[_0x42c7c2(0x148)][_0x42c7c2(0x135)](_0x41923d)||_0x46260b[_0x42c7c2(0x19b)][_0x42c7c2(0x15b)](_0x41923d)!=null)return;let _0x389eda=this[_0x42c7c2(0x284)][_0x42c7c2(0x30c)](_0x5b6fdb);if(_0x389eda==null||_0x389eda['drawingType']!==_0x161136[_0x42c7c2(0x25c)])return;if(_0x41a954((_0x389eda['data']||{})[_0x42c7c2(0x1c7)])){let _0x6de38f=_0x389eda['transform'];_0x6de38f&&(_0x389eda[_0x42c7c2(0x298)]={..._0x6de38f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x42c7c2(0x148)][_0x42c7c2(0x119)](_0x41923d);try{this[_0x42c7c2(0x26a)]['renderDrawingShape'](_0x389eda,_0x46260b[_0x42c7c2(0x19b)]);}finally{this[_0x42c7c2(0x148)][_0x42c7c2(0x1d3)](_0x41923d);}queueMicrotask(()=>{const _0x2f5c04=_0x42c7c2;if(this[_0x2f5c04(0x196)])return;let _0x3d71b4=_0x566164(_0x5b6fdb);if(!_0x46260b[_0x2f5c04(0x19b)][_0x2f5c04(0x15b)](_0x3d71b4))return;let _0x4f8b81=this[_0x2f5c04(0x284)][_0x2f5c04(0x30c)](_0x5b6fdb);_0x4f8b81&&this['_drawingManagerService']['refreshTransform']([_0x4f8b81]);});}}[_0x25219a(0x172)](_0x366788){const _0x3fd5c7=_0x25219a;if(_0x366788==null)return;let _0x62d120=this['_renderManagerService'][_0x3fd5c7(0x1dd)](_0x366788),_0x118f47=_0x62d120==null?void 0x0:_0x62d120[_0x3fd5c7(0x19b)];return _0x118f47==null?null:{'scene':_0x118f47,'transformer':_0x118f47[_0x3fd5c7(0x253)]()};}};Ar=Z([X(0x0,_0x16d336),X(0x1,_0x471989),X(0x2,_0x492363),X(0x3,_0x230412),X(0x4,_0x396ece(_0x214f7e)),X(0x5,_0x396ece(Q))],Ar);function _0x52a4(_0x1f02c0,_0x2d277d){_0x1f02c0=_0x1f02c0-0xda;const _0x5f35cd=_0x5f35();let _0x52a428=_0x5f35cd[_0x1f02c0];return _0x52a428;}const jr={'normal':{'fill':_0x373ebe['cxnPointFill'],'stroke':_0x373ebe[_0x25219a(0x2d7)],'strokeWidth':_0x373ebe['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':_0x25219a(0x12e),'strokeWidth':0x2}};var Mr=class extends _0x1ac658{constructor(_0x36c286,_0x3db3ec){const _0x12f900=_0x25219a;super(_0x36c286,_0x3db3ec),Y(this,_0x12f900(0x239),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x12f900(0x1c5),''),Y(this,_0x12f900(0x333),''),Y(this,_0x12f900(0x1be),!0x1),_0x3db3ec&&this[_0x12f900(0x2f6)](_0x3db3ec);}[_0x25219a(0x2d2)](){const _0x13d0d6=_0x25219a;return{'unitId':this[_0x13d0d6(0x1c5)],'subUnitId':this[_0x13d0d6(0x333)],'shapeId':this[_0x13d0d6(0x239)],'cxnIndex':this[_0x13d0d6(0x223)]};}['setHighlighted'](_0x14fa14){const _0x14f03e=_0x25219a;this[_0x14f03e(0x1be)]!==_0x14fa14&&(this[_0x14f03e(0x1be)]=_0x14fa14,this[_0x14f03e(0x154)](!0x0));}[_0x25219a(0x13b)](){const _0x964b96=_0x25219a;return this[_0x964b96(0x1be)];}[_0x25219a(0x2f6)](_0x1afddf){const _0x51cbd8=_0x25219a;_0x1afddf[_0x51cbd8(0x2a4)]!==void 0x0&&(this[_0x51cbd8(0x239)]=_0x1afddf[_0x51cbd8(0x2a4)]),_0x1afddf['cxnIndex']!==void 0x0&&(this[_0x51cbd8(0x223)]=_0x1afddf[_0x51cbd8(0x2f8)]),_0x1afddf[_0x51cbd8(0x151)]!==void 0x0&&(this[_0x51cbd8(0x1c5)]=_0x1afddf['unitId']),_0x1afddf[_0x51cbd8(0x21f)]!==void 0x0&&(this[_0x51cbd8(0x333)]=_0x1afddf[_0x51cbd8(0x21f)]),_0x1afddf[_0x51cbd8(0x13b)]!==void 0x0&&(this[_0x51cbd8(0x1be)]=_0x1afddf[_0x51cbd8(0x13b)]),this[_0x51cbd8(0xfd)]({'width':_0x1afddf[_0x51cbd8(0x11f)]??_0x373ebe['cxnPointRadius']*0x2,'height':_0x1afddf[_0x51cbd8(0x270)]??_0x373ebe[_0x51cbd8(0x1ea)]*0x2});}[_0x25219a(0x183)](_0x5427a8){const _0x3d0993=_0x25219a;let _0x49a165=this['_isHighlighted']?jr[_0x3d0993(0x122)]:jr[_0x3d0993(0xe2)];_0x18400a[_0x3d0993(0x230)](_0x5427a8,{'radius':_0x373ebe[_0x3d0993(0x1ea)],'fill':_0x49a165[_0x3d0993(0x233)],'stroke':_0x49a165[_0x3d0993(0x101)],'strokeWidth':_0x49a165[_0x3d0993(0x2b7)],'evented':!0x0});}};let Nr=class extends _0x3ba2e2{constructor(_0x39a922,_0x16b51b,_0x201944,_0x17df06){const _0xc6c846=_0x25219a;super(),this[_0xc6c846(0x316)]=_0x39a922,this[_0xc6c846(0x145)]=_0x16b51b,this[_0xc6c846(0x284)]=_0x201944,this['_sheetsShapeService']=_0x17df06,Y(this,_0xc6c846(0x308),[]),Y(this,_0xc6c846(0x2ab),null),Y(this,_0xc6c846(0xf9),-0x1),Y(this,_0xc6c846(0x1c3),null),Y(this,_0xc6c846(0x1c5),''),Y(this,_0xc6c846(0x333),''),Y(this,_0xc6c846(0x2b8),null);}[_0x25219a(0x149)](_0x209ff4,_0x31d5ca,_0x25f24b,_0x5040fb){const _0xadd615=_0x25219a;this[_0xadd615(0x1c3)]=_0x209ff4,this['_unitId']=_0x31d5ca,this['_subUnitId']=_0x25f24b,this[_0xadd615(0x2b8)]=_0x5040fb;}['updateConnectionDetection'](_0x1f3d35){const _0x563ccd=_0x25219a;if(!this[_0x563ccd(0x1c3)])return null;let _0x4023a1=this[_0x563ccd(0x257)](_0x1f3d35);return _0x4023a1?(this[_0x563ccd(0x2ab)]!==_0x4023a1['shapeId']&&(this[_0x563ccd(0xdb)](),this[_0x563ccd(0x225)](_0x4023a1[_0x563ccd(0x25a)],_0x4023a1['shapeModel']),this[_0x563ccd(0x2ab)]=_0x4023a1['shapeId']),this[_0x563ccd(0x1b4)](_0x1f3d35)):(this[_0x563ccd(0x2ab)]!==null&&(this['_clearConnectionSites'](),this['_activeTargetShapeId']=null),null);}[_0x25219a(0xf8)](){const _0x4dedbe=_0x25219a;this['_clearConnectionSites'](),this[_0x4dedbe(0x1c3)]=null,this[_0x4dedbe(0x2ab)]=null,this['_highlightedSiteIndex']=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x156942=_0x25219a;return this[_0x156942(0x2ab)]===null||this[_0x156942(0xf9)]<0x0?null:{'shapeId':this[_0x156942(0x2ab)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x25219a(0x257)](_0x12e031){const _0x104610=_0x25219a;let _0x19409f=this[_0x104610(0x284)]['getDrawingData'](this[_0x104610(0x1c5)],this[_0x104610(0x333)]);for(let _0x175af4 of Object[_0x104610(0x12f)](_0x19409f)){if(_0x175af4===this[_0x104610(0x2b8)]||_0x19409f[_0x175af4]['drawingType']!==_0x161136[_0x104610(0x25c)])continue;let _0x5e74a8=this['_sheetsShapeService'][_0x104610(0x1f4)](this['_unitId'],this[_0x104610(0x333)],_0x175af4);if(!_0x5e74a8||_0x41a954(_0x5e74a8[_0x104610(0x16e)]())||_0x5e74a8[_0x104610(0x201)]()['length']===0x0||!this['_currentScene'])continue;let _0x585301=_0x566164({'unitId':this[_0x104610(0x1c5)],'subUnitId':this[_0x104610(0x333)],'drawingId':_0x175af4}),_0x9ba1a8=this[_0x104610(0x1c3)]['getObjectIncludeInGroup'](_0x585301);if(!_0x9ba1a8)continue;let {left:_0x5df6d9,top:_0x2d5155,width:_0x2115d2,height:_0x58b635}=_0x9ba1a8[_0x104610(0x1d4)](),_0x2571ad=_0x5df6d9+_0x2115d2/0x2,_0x34cb34=_0x2d5155+_0x58b635/0x2,_0x254c89=_0x9ba1a8[_0x104610(0x298)][_0x104610(0x258)](),_0x2fbee4=new _0x34d861([_0x254c89[0x0],_0x254c89[0x1],_0x254c89[0x2],_0x254c89[0x3],_0x2571ad,_0x34cb34]),_0x40d87b=_0x9ba1a8['getParent'](),_0x31f8cc=(_0x9ba1a8[_0x104610(0x1f6)]&&(_0x40d87b==null?void 0x0:_0x40d87b[_0x104610(0x26d)])===_0x4550bb['GROUP']?_0x40d87b[_0x104610(0x20c)][_0x104610(0x15c)](_0x2fbee4):_0x2fbee4)[_0x104610(0x176)]()[_0x104610(0x317)](_0x12e031),_0x41ba95=_0x2115d2/0x2,_0x5c3f03=_0x58b635/0x2;if(_0x31f8cc['x']>=-_0x41ba95-0x5&&_0x31f8cc['x']<=_0x41ba95+0x5&&_0x31f8cc['y']>=-_0x5c3f03-0x5&&_0x31f8cc['y']<=_0x5c3f03+0x5)return{'shapeId':_0x175af4,'shapeModel':_0x5e74a8};}return null;}['_showConnectionSites'](_0x2d7944,_0x35651d){const _0x586874=_0x25219a;if(!this[_0x586874(0x1c3)])return;let _0x4c99ec=_0x566164({'unitId':this['_unitId'],'subUnitId':this[_0x586874(0x333)],'drawingId':_0x2d7944}),_0x3d08ba=this[_0x586874(0x1c3)][_0x586874(0x15b)](_0x4c99ec);if(!_0x3d08ba)return;let {left:_0x1207aa,top:_0x450d62,width:_0x362189,height:_0x4d2993}=_0x3d08ba[_0x586874(0x1d4)](),_0x402e4f=_0x1207aa+_0x362189/0x2,_0x21c4fc=_0x450d62+_0x4d2993/0x2,_0x14368f=_0x3d08ba[_0x586874(0x298)][_0x586874(0x258)](),_0x3e6b62=new _0x34d861([_0x14368f[0x0],_0x14368f[0x1],_0x14368f[0x2],_0x14368f[0x3],_0x402e4f,_0x21c4fc]),_0x468ff7=_0x3d08ba['getParent'](),_0x290060=_0x3d08ba[_0x586874(0x1f6)]&&(_0x468ff7==null?void 0x0:_0x468ff7['classType'])===_0x4550bb[_0x586874(0x1fd)]?_0x468ff7[_0x586874(0x20c)][_0x586874(0x15c)](_0x3e6b62):_0x3e6b62;_0x35651d[_0x586874(0x256)]({'width':_0x362189,'height':_0x4d2993});let _0x384a4d=_0x35651d[_0x586874(0x201)]();for(let _0x40dac8 of _0x384a4d){let _0x567a72=_0x40dac8['x']-_0x362189/0x2,_0x2325d8=_0x40dac8['y']-_0x4d2993/0x2,_0xd5e7d4=_0x290060[_0x586874(0x317)]({'x':_0x567a72,'y':_0x2325d8}),_0x50f494=_0xd5e7d4['x'],_0xfd0804=_0xd5e7d4['y'],_0x4e5a4d=new Mr(_0x586874(0x29a)+_0x2d7944+'-'+_0x40dac8[_0x586874(0x278)],{'left':_0x50f494-_0x373ebe[_0x586874(0x1ea)],'top':_0xfd0804-_0x373ebe['cxnPointRadius'],'targetShapeId':_0x2d7944,'cxnIndex':_0x40dac8[_0x586874(0x278)],'unitId':this[_0x586874(0x1c5)],'subUnitId':this[_0x586874(0x333)],'width':_0x373ebe[_0x586874(0x1ea)]*0x2,'height':_0x373ebe[_0x586874(0x1ea)]*0x2,'zIndex':_0x22b4b7+0x2,'evented':!0x1});this[_0x586874(0x308)]['push'](_0x4e5a4d),this[_0x586874(0x1c3)][_0x586874(0xe6)](_0x4e5a4d,_0x22b4b7+0x2);}}[_0x25219a(0x1b4)](_0x2d5e1b){const _0x2e38fc=_0x25219a;let _0x986d7f=null,_0x5c053c=0x1/0x0,_0x2ec94c=null;for(let _0x277485 of this[_0x2e38fc(0x308)]){let _0x1a0f7a=_0x277485[_0x2e38fc(0x242)]+_0x373ebe[_0x2e38fc(0x1ea)],_0x5adf36=_0x277485['top']+_0x373ebe[_0x2e38fc(0x1ea)],_0x335865=_0x2d5e1b['x']-_0x1a0f7a,_0x2f7d73=_0x2d5e1b['y']-_0x5adf36,_0x3c1d6d=Math[_0x2e38fc(0x2d5)](_0x335865*_0x335865+_0x2f7d73*_0x2f7d73);_0x3c1d6d<_0x5c053c&&(_0x5c053c=_0x3c1d6d,_0x986d7f=_0x277485,_0x2ec94c={'x':_0x1a0f7a,'y':_0x5adf36});}let _0x499ba3=_0x5c053c<=0xa&&_0x986d7f?_0x986d7f['getConnectionInfo']()[_0x2e38fc(0x2f8)]:-0x1;if(_0x499ba3!==this['_highlightedSiteIndex']){for(let _0xf3834e of this['_connectionSiteObjects']){let _0x3115bd=_0xf3834e[_0x2e38fc(0x2d2)]();_0xf3834e[_0x2e38fc(0x2e9)](_0x3115bd[_0x2e38fc(0x2f8)]===_0x499ba3);}this['_highlightedSiteIndex']=_0x499ba3;}if(_0x5c053c<=0xa&&_0x986d7f&&_0x2ec94c){let _0xfa08de=_0x986d7f['getConnectionInfo'](),_0x1a2490=this[_0x2e38fc(0x117)](_0xfa08de[_0x2e38fc(0x25a)],_0xfa08de['cxnIndex']);return{'shapeId':_0xfa08de[_0x2e38fc(0x25a)],'cxnIndex':_0xfa08de['cxnIndex'],'unitId':_0xfa08de[_0x2e38fc(0x151)],'subUnitId':_0xfa08de[_0x2e38fc(0x21f)],'worldPoint':_0x2ec94c,'angle':_0x1a2490};}return null;}[_0x25219a(0x117)](_0x4c0fd4,_0x23870e){const _0x30fc0e=_0x25219a;let _0x52d3b4=this[_0x30fc0e(0x124)]['getShapeModel'](this['_unitId'],this[_0x30fc0e(0x333)],_0x4c0fd4);if(!_0x52d3b4)return 0x0;let _0x55731e=this[_0x30fc0e(0x284)][_0x30fc0e(0x30c)]({'unitId':this[_0x30fc0e(0x1c5)],'subUnitId':this[_0x30fc0e(0x333)],'drawingId':_0x4c0fd4});if(!(_0x55731e!=null&&_0x55731e[_0x30fc0e(0x298)]))return 0x0;let {width:_0x4b2d1b=0x0,height:_0x407df8=0x0,flipX:_0x120ba6=!0x1,flipY:_0x514ff5=!0x1}=_0x55731e[_0x30fc0e(0x298)];_0x52d3b4[_0x30fc0e(0x256)]({'width':_0x4b2d1b,'height':_0x407df8});let _0x3ff231=_0x52d3b4[_0x30fc0e(0x201)]()[_0x30fc0e(0x24c)](_0x10e174=>_0x10e174[_0x30fc0e(0x278)]===_0x23870e);if(!_0x3ff231)return 0x0;let _0x5d15fc=_0x3ff231[_0x30fc0e(0x261)]/0xea60;return _0x120ba6&&(_0x5d15fc=0xb4-_0x5d15fc),_0x514ff5&&(_0x5d15fc=-_0x5d15fc),_0x5d15fc=(_0x5d15fc%0x168+0x168)%0x168,_0x5d15fc;}['_clearConnectionSites'](){const _0x2e3fd8=_0x25219a;for(let _0x42aa75 of this[_0x2e3fd8(0x308)])_0x42aa75[_0x2e3fd8(0x259)]();this[_0x2e3fd8(0x308)]=[],this[_0x2e3fd8(0xf9)]=-0x1;}[_0x25219a(0x259)](){const _0x5102ac=_0x25219a;this[_0x5102ac(0xdb)](),super[_0x5102ac(0x259)]();}};Nr=Z([X(0x1,_0x396ece(_0x471989)),X(0x2,_0x396ece(_0x492363)),X(0x3,_0x396ece(_0x6985f7))],Nr);let Pr=class extends _0x3ba2e2{constructor(_0x43d797,_0x531896,_0x3279e0,_0x3eac0d,_0xfa5376){const _0xc733a7=_0x25219a;super(),this[_0xc733a7(0x1b6)]=_0x43d797,this[_0xc733a7(0x232)]=_0x531896,this[_0xc733a7(0x329)]=_0x3279e0,this[_0xc733a7(0x262)]=_0x3eac0d,this[_0xc733a7(0x152)]=_0xfa5376,Y(this,'_copyInfo',void 0x0),this[_0xc733a7(0x2d8)](),this[_0xc733a7(0x299)]();}get[_0x25219a(0x1fb)](){const _0x3b4e47=_0x25219a;return this[_0x3b4e47(0x329)][_0x3b4e47(0x21a)]();}[_0x25219a(0x299)](){const _0x3c97ad=_0x25219a;this['_groupCopyPasteController'][_0x3c97ad(0x20e)](({fromUnitId:_0x244376,fromSubUnitId:_0x1a3634,toUnitId:_0x48f3fc,toSubUnitId:_0x6afdfc,idMap:_0x3a5ac8})=>{const _0x451202=_0x3c97ad;let _0x2e9f0e=[],_0x539195=[];for(let [_0x2a8f1d,_0x99040]of _0x3a5ac8['entries']()){let _0x1b6d61=this['_shapeService'][_0x451202(0x1f4)](_0x244376,_0x1a3634,_0x2a8f1d);if(!_0x1b6d61)continue;let _0x10c762=_0x1b6d61[_0x451202(0x16e)](),_0x28860c=JSON[_0x451202(0x336)](JSON[_0x451202(0x327)](_0x1b6d61['getShapeData']()));if(_0x28860c['relation']){var _0x2ab569,_0x1b705f;let _0x590e79=(_0x2ab569=_0x28860c['relation']['from'])==null?void 0x0:_0x2ab569[_0x451202(0x25a)],_0x34d317=(_0x1b705f=_0x28860c[_0x451202(0x2a7)]['to'])==null?void 0x0:_0x1b705f[_0x451202(0x25a)],_0x18a91a=!_0x590e79||_0x3a5ac8['has'](_0x590e79),_0x2e9a06=!_0x34d317||_0x3a5ac8['has'](_0x34d317);_0x18a91a&&_0x590e79&&_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]?_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]={..._0x28860c[_0x451202(0x2a7)][_0x451202(0x265)],'shapeId':_0x3a5ac8['get'](_0x590e79)}:_0x28860c[_0x451202(0x2a7)][_0x451202(0x265)]=void 0x0,_0x2e9a06&&_0x34d317&&_0x28860c[_0x451202(0x2a7)]['to']?_0x28860c['relation']['to']={..._0x28860c[_0x451202(0x2a7)]['to'],'shapeId':_0x3a5ac8[_0x451202(0x23e)](_0x34d317)}:_0x28860c[_0x451202(0x2a7)]['to']=void 0x0;}_0x2e9f0e[_0x451202(0xfc)]({'id':_0x55e264['id'],'params':{'unitId':_0x48f3fc,'subUnitId':_0x6afdfc,'shapeId':_0x99040,'shapeType':_0x10c762,'shapeData':_0x28860c}}),_0x539195[_0x451202(0xfc)]({'id':_0x30f07c['id'],'params':{'unitId':_0x48f3fc,'subUnitId':_0x6afdfc,'shapeId':_0x99040}});}return{'redos':_0x2e9f0e,'undos':_0x539195};});}['_initCopyPaste'](){const _0x32fc15=_0x25219a;this[_0x32fc15(0x1b1)](this[_0x32fc15(0x232)][_0x32fc15(0x121)]({'id':_0x32fc15(0x1ee),'onBeforeCopy':(_0x1d8e28,_0x67b073,_0x21a5e8,_0x35c829)=>{const _0x58694b=_0x32fc15;this[_0x58694b(0x268)]=null;let _0x45c872=this[_0x58694b(0x1fb)];if(_0x45c872[_0x58694b(0x27a)]){let _0x21f5fc=_0x45c872[_0x58694b(0x291)](_0x343c8a=>_0x343c8a[_0x58694b(0x2b3)]===_0x161136['DRAWING_SHAPE']);if(_0x21f5fc[_0x58694b(0x27a)]===0x0)return;this[_0x58694b(0x268)]={'unitId':_0x1d8e28,'subUnitId':_0x67b073,'copyType':_0x35c829,'drawings':_0x21f5fc};}else this[_0x58694b(0x28f)](_0x1d8e28,_0x67b073,_0x21a5e8,_0x35c829);},'onPasteCells':(_0x5e5b48,_0x210df4,_0x1565e9,_0x2af5e2)=>{const _0x9276f4=_0x32fc15;if(!this[_0x9276f4(0x268)])return{'redos':[],'undos':[]};let {pasteType:_0x54b63f}=_0x2af5e2;return _0x54b63f===_0x339317[_0x9276f4(0x141)]?this[_0x9276f4(0x1e0)](_0x210df4,this[_0x9276f4(0x268)]['copyType']===_0x4cbf87[_0x9276f4(0x32a)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x398827=>this[_0x32fc15(0x268)]?this[_0x32fc15(0x1e0)](_0x398827,this['_copyInfo'][_0x32fc15(0x2ee)]===_0x4cbf87[_0x32fc15(0x32a)]):{'redos':[],'undos':[]}}));}[_0x25219a(0x28f)](_0x354138,_0xbc7b74,_0x306544,_0x4bdbee){const _0x21c7dd=_0x25219a;let _0x2ddc33=this[_0x21c7dd(0x1b6)][_0x21c7dd(0x22d)](_0x354138,_0xbc7b74);if(!_0x2ddc33)return;let _0x2d573e=_0x1a0dbd(_0x2ddc33,_0x306544);if(!_0x2d573e)return;let {startX:_0x14202c,endX:_0x230793,startY:_0x2296cc,endY:_0x33598b}=_0x2d573e,_0x331075=this['_sheetDrawingService'][_0x21c7dd(0x296)](_0x354138,_0xbc7b74),_0x49bc7b=this['_focusedDrawings'][_0x21c7dd(0x133)]();for(let [_0x20a798,_0x42eb95]of Object[_0x21c7dd(0x277)](_0x331075)){if(_0x42eb95['drawingType']!==_0x161136[_0x21c7dd(0x25c)])continue;let {transform:_0x11fc39}=_0x42eb95;if(!_0x11fc39)continue;let {left:_0x4fcd0e=0x0,top:_0x199ed2=0x0,width:_0x5a292b=0x0,height:_0x4e29af=0x0}=_0x11fc39;_0x14202c<=_0x4fcd0e&&_0x230793>=_0x4fcd0e+_0x5a292b&&_0x2296cc<=_0x199ed2&&_0x33598b>=_0x199ed2+_0x4e29af&&_0x49bc7b['push'](_0x42eb95);}_0x49bc7b['length']>0x0&&(this['_copyInfo']={'unitId':_0x354138,'subUnitId':_0xbc7b74,'copyType':_0x4bdbee,'copyRange':_0x306544,'drawings':_0x49bc7b});}[_0x25219a(0x1e0)](_0x36dcfa,_0x1578c9){const _0x54ff92=_0x25219a;let {unitId:_0x2e6df7,subUnitId:_0x3d4ae3,range:_0x169427}=_0x36dcfa,_0x52de35=this[_0x54ff92(0x1b6)][_0x54ff92(0x22d)](_0x2e6df7,_0x3d4ae3);if(!_0x52de35)return{'redos':[],'undos':[]};let _0x4be118=_0x58837b(_0x169427),{unitId:_0x534c6d,subUnitId:_0x1b8796,copyRange:_0x5866da,drawings:_0xaf5694}=this[_0x54ff92(0x268)],_0x45c35d=this[_0x54ff92(0x1b6)][_0x54ff92(0x22d)](_0x534c6d,_0x1b8796);if(!_0x45c35d)return{'redos':[],'undos':[]};let _0x52051f;if(!_0x5866da){let _0x8e5f53=0x1/0x0,_0x163da3=0x1/0x0;for(let _0x503365 of _0xaf5694){let {left:_0x41c799=0x0,top:_0x225b2a=0x0}=_0x503365[_0x54ff92(0x298)]??{};_0x41c799<_0x8e5f53&&(_0x8e5f53=_0x41c799),_0x225b2a<_0x163da3&&(_0x163da3=_0x225b2a);}_0x8e5f53!==0x1/0x0&&_0x163da3!==0x1/0x0&&(_0x52051f={'left':_0x8e5f53,'top':_0x163da3});}let _0x33605=new Map();if(!_0x1578c9){for(let _0x31b611 of _0xaf5694)_0x33605['set'](_0x31b611[_0x54ff92(0x2c2)],_0x44c0e2());}let _0x2ff846=[],_0x2f2202=[];for(let _0x48998f of _0xaf5694){let {drawingId:_0x152b26,transform:_0x20b1b1,sheetTransform:_0x3f9e83}=_0x48998f;if(!_0x20b1b1||!_0x3f9e83)continue;let _0x20b51e=this[_0x54ff92(0x309)]({'transform':_0x20b1b1,'sheetTransform':_0x3f9e83},{'skeleton':_0x45c35d,'range':_0x5866da},{'skeleton':_0x52de35,'range':_0x4be118},_0x52051f);if(_0x1578c9){let {redos:_0x3ae6cc,undos:_0x29a40c}=this[_0x54ff92(0x28b)]({'fromUnitId':_0x534c6d,'fromSubUnitId':_0x1b8796,'toUnitId':_0x2e6df7,'toSubUnitId':_0x3d4ae3,'drawing':_0x48998f,'newTransforms':_0x20b51e});_0x2ff846[_0x54ff92(0xfc)](..._0x3ae6cc),_0x2f2202['push'](..._0x29a40c);continue;}let {redos:_0x1601a7,undos:_0x541444}=this['_generateCopyPasteMutations']({'toUnitId':_0x2e6df7,'toSubUnitId':_0x3d4ae3,'drawing':_0x48998f,'newTransforms':_0x20b51e,'newDrawingId':_0x33605[_0x54ff92(0x23e)](_0x152b26),'idMap':_0x33605});_0x2ff846[_0x54ff92(0xfc)](..._0x1601a7),_0x2f2202[_0x54ff92(0xfc)](..._0x541444);}return{'redos':_0x2ff846,'undos':_0x2f2202};}[_0x25219a(0x28b)](_0x32881c){const _0x3fba68=_0x25219a;let {fromUnitId:_0x332f9a,fromSubUnitId:_0x17893d,toUnitId:_0x1a5b09,toSubUnitId:_0x121271,drawing:_0x59e16b,newTransforms:_0x4b507c}=_0x32881c,_0x980db5={..._0x59e16b,'unitId':_0x1a5b09,'subUnitId':_0x121271,'transform':_0x4b507c['transform'],'sheetTransform':_0x4b507c[_0x3fba68(0x2a1)]};if(_0x1a5b09===_0x332f9a&&_0x121271===_0x17893d){let {redo:_0x3f3e17,undo:_0x2e4d7f,objects:_0x59ef3e}=this[_0x3fba68(0x329)][_0x3fba68(0x14a)]([_0x980db5]);return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x323)],'op':_0x3f3e17,'objects':_0x59ef3e}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x323)],'op':_0x2e4d7f,'objects':_0x59ef3e}}]};}else{let _0x2dc92e=this[_0x3fba68(0x329)][_0x3fba68(0x24f)]([_0x59e16b]),_0x590011=this['_sheetDrawingService']['getBatchAddOp']([_0x980db5]),_0x236ced=this[_0x3fba68(0x262)]['getShapeModel'](_0x59e16b[_0x3fba68(0x151)],_0x59e16b['subUnitId'],_0x59e16b['drawingId']);if(!_0x236ced)return{'redos':[],'undos':[]};let _0x211bbb=_0x236ced[_0x3fba68(0x16e)](),_0x4a5d51=JSON[_0x3fba68(0x336)](JSON[_0x3fba68(0x327)](_0x236ced[_0x3fba68(0x23b)]()));return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'type':_0x34c4cd[_0x3fba68(0x1f5)],'op':_0x2dc92e['redo'],'objects':_0x2dc92e['objects']}},{'id':_0x30f07c['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'shapeId':_0x59e16b[_0x3fba68(0x2c2)]}},{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x312)],'op':_0x590011['redo'],'objects':_0x590011[_0x3fba68(0x17d)]}},{'id':_0x55e264['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'shapeId':_0x59e16b[_0x3fba68(0x2c2)],'shapeType':_0x211bbb,'shapeData':_0x4a5d51}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'type':_0x34c4cd[_0x3fba68(0x312)],'op':_0x2dc92e[_0x3fba68(0x23d)],'objects':_0x2dc92e[_0x3fba68(0x17d)]}},{'id':_0x55e264['id'],'params':{'unitId':_0x332f9a,'subUnitId':_0x17893d,'shapeId':_0x59e16b[_0x3fba68(0x2c2)],'shapeType':_0x211bbb,'shapeData':_0x4a5d51}},{'id':_0x2118d0['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'type':_0x34c4cd[_0x3fba68(0x1f5)],'op':_0x590011['undo'],'objects':_0x590011[_0x3fba68(0x17d)]}},{'id':_0x30f07c['id'],'params':{'unitId':_0x1a5b09,'subUnitId':_0x121271,'shapeId':_0x59e16b['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x4fc491){const _0xc4e269=_0x25219a;let {toUnitId:_0x305f7a,toSubUnitId:_0x4c2d31,drawing:_0x400634,newTransforms:_0x3acf89,newDrawingId:_0x8726ad,idMap:_0x18fa67}=_0x4fc491,_0x3e3cb8={..._0x400634,'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'drawingId':_0x8726ad,'transform':_0x3acf89[_0xc4e269(0x298)],'sheetTransform':_0x3acf89['sheetTransform']},{redo:_0xb935d2,undo:_0x36430c,objects:_0x8045c6}=this[_0xc4e269(0x329)]['getBatchAddOp']([_0x3e3cb8]),_0x184411=this[_0xc4e269(0x262)][_0xc4e269(0x1f4)](_0x400634['unitId'],_0x400634[_0xc4e269(0x21f)],_0x400634[_0xc4e269(0x2c2)]);if(!_0x184411)return{'redos':[],'undos':[]};let _0x4c321e=_0x184411[_0xc4e269(0x16e)](),_0x469ddd=JSON['parse'](JSON[_0xc4e269(0x327)](_0x184411[_0xc4e269(0x23b)]()));if(_0x469ddd[_0xc4e269(0x2a7)]){var _0x21d83c,_0x4908cb;let _0xbf0314=(_0x21d83c=_0x469ddd['relation'][_0xc4e269(0x265)])==null?void 0x0:_0x21d83c[_0xc4e269(0x25a)],_0x74d41=(_0x4908cb=_0x469ddd[_0xc4e269(0x2a7)]['to'])==null?void 0x0:_0x4908cb[_0xc4e269(0x25a)],_0x5f330c=!_0xbf0314||_0x18fa67['has'](_0xbf0314),_0x4960eb=!_0x74d41||_0x18fa67[_0xc4e269(0x135)](_0x74d41);_0x5f330c&&_0xbf0314&&_0x469ddd['relation'][_0xc4e269(0x265)]?_0x469ddd[_0xc4e269(0x2a7)][_0xc4e269(0x265)]={..._0x469ddd[_0xc4e269(0x2a7)]['from'],'shapeId':_0x18fa67[_0xc4e269(0x23e)](_0xbf0314)}:_0x469ddd[_0xc4e269(0x2a7)]['from']=void 0x0,_0x4960eb&&_0x74d41&&_0x469ddd[_0xc4e269(0x2a7)]['to']?_0x469ddd['relation']['to']={..._0x469ddd[_0xc4e269(0x2a7)]['to'],'shapeId':_0x18fa67['get'](_0x74d41)}:_0x469ddd[_0xc4e269(0x2a7)]['to']=void 0x0;}return{'redos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'type':_0x34c4cd[_0xc4e269(0x312)],'op':_0xb935d2,'objects':_0x8045c6}},{'id':_0x55e264['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'shapeId':_0x8726ad,'shapeType':_0x4c321e,'shapeData':_0x469ddd}}],'undos':[{'id':_0x2118d0['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'type':_0x34c4cd[_0xc4e269(0x1f5)],'op':_0x36430c,'objects':_0x8045c6}},{'id':_0x30f07c['id'],'params':{'unitId':_0x305f7a,'subUnitId':_0x4c2d31,'shapeId':_0x8726ad}}]};}['_updateTransform'](_0x2a756e,_0x8ba472,_0x1cd81b,_0x2e42bf){const _0x497fea=_0x25219a;let {range:_0x238586,skeleton:_0x481441}=_0x8ba472,{range:_0x26a1af,skeleton:_0x475771}=_0x1cd81b,{transform:_0x25d96c,sheetTransform:_0x5d80df}=_0x2a756e,_0x32c65c={..._0x25d96c};if(_0x238586){let _0x189d87=_0x1a0dbd(_0x481441,_0x238586),_0x1c9164=_0x1a0dbd(_0x475771,_0x26a1af);if(_0x189d87&&_0x1c9164){let _0x2113dd=_0x1c9164[_0x497fea(0x269)]-_0x189d87[_0x497fea(0x269)],_0x89a3e5=_0x1c9164[_0x497fea(0x303)]-_0x189d87[_0x497fea(0x303)];_0x32c65c[_0x497fea(0x242)]=(_0x32c65c[_0x497fea(0x242)]??0x0)+_0x2113dd,_0x32c65c['top']=(_0x32c65c['top']??0x0)+_0x89a3e5;}}else{let _0x45c1a9=_0x1a0dbd(_0x475771,_0x26a1af);if(_0x2e42bf&&_0x45c1a9){let _0x4a986e=(_0x32c65c[_0x497fea(0x242)]??0x0)-_0x2e42bf[_0x497fea(0x242)],_0x4cb0f0=(_0x32c65c[_0x497fea(0x1e8)]??0x0)-_0x2e42bf[_0x497fea(0x1e8)];_0x32c65c['left']=_0x45c1a9[_0x497fea(0x269)]+_0x4a986e,_0x32c65c['top']=_0x45c1a9[_0x497fea(0x303)]+_0x4cb0f0;}else _0x32c65c[_0x497fea(0x242)]=_0x45c1a9==null?void 0x0:_0x45c1a9[_0x497fea(0x269)],_0x32c65c['top']=_0x45c1a9==null?void 0x0:_0x45c1a9['startY'];}return{'transform':_0x32c65c,'sheetTransform':_0x2b6fe(_0x32c65c,_0x475771)??_0x5d80df};}};Pr=Z([X(0x0,_0x396ece(_0x587a33)),X(0x1,_0x396ece(_0x1249ad)),X(0x2,_0x396ece(_0x18f6a9)),X(0x3,_0x396ece(_0x6985f7)),X(0x4,_0x396ece(_0x3ed6d2))],Pr);var Fr=class extends _0x1ac658{constructor(_0x5908e7,_0x28a821){const _0x54840f=_0x25219a;super(_0x5908e7,_0x28a821),Y(this,_0x54840f(0x13e),null),Y(this,_0x54840f(0x2d4),null),Y(this,_0x54840f(0x1c5),null),Y(this,_0x54840f(0x333),null),Y(this,_0x54840f(0x1e3),!0x1),_0x28a821&&this[_0x54840f(0x2f6)](_0x28a821);}['getDrawingSearch'](){const _0x4cc41a=_0x25219a;return{'unitId':this[_0x4cc41a(0x1c5)],'subUnitId':this[_0x4cc41a(0x333)],'drawingId':this[_0x4cc41a(0x13e)]};}[_0x25219a(0x2f6)](_0x227ab1){const _0x3bd6b4=_0x25219a;_0x227ab1['shapeId']!==void 0x0&&(this[_0x3bd6b4(0x13e)]=_0x227ab1['shapeId']),_0x227ab1['unitId']!==void 0x0&&(this[_0x3bd6b4(0x1c5)]=_0x227ab1[_0x3bd6b4(0x151)]),_0x227ab1[_0x3bd6b4(0x21f)]!==void 0x0&&(this['_subUnitId']=_0x227ab1[_0x3bd6b4(0x21f)]),_0x227ab1['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x227ab1[_0x3bd6b4(0x2ad)]),this['transformByState']({'width':_0x227ab1['width'],'height':_0x227ab1['height']});}[_0x25219a(0x183)](_0x137392){const _0x15b8e1=_0x25219a;_0x18400a[_0x15b8e1(0x230)](_0x137392,{'radius':_0x373ebe[_0x15b8e1(0x1ea)],'fill':_0x373ebe[_0x15b8e1(0x27c)],'stroke':_0x373ebe[_0x15b8e1(0x2d7)],'strokeWidth':_0x373ebe[_0x15b8e1(0x136)],'evented':!0x0});}};let Ir=class extends _0x3ba2e2{constructor(_0x204e92,_0x7de9ee,_0x3eb343,_0x5bba14,_0x5bf968,_0x2dc29f,_0x566533,_0x18dfe2){const _0x5c2d3d=_0x25219a;super(),this[_0x5c2d3d(0x316)]=_0x204e92,this[_0x5c2d3d(0x2cc)]=_0x7de9ee,this[_0x5c2d3d(0x145)]=_0x3eb343,this['_drawingManagerService']=_0x5bba14,this[_0x5c2d3d(0xfe)]=_0x5bf968,this[_0x5c2d3d(0x124)]=_0x2dc29f,this['_sheetShapeAdjustController']=_0x566533,this[_0x5c2d3d(0x2ec)]=_0x18dfe2,Y(this,_0x5c2d3d(0x25d),void 0x0),Y(this,_0x5c2d3d(0x1c5),void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,_0x5c2d3d(0x1bb),[]),Y(this,_0x5c2d3d(0x247),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x5c2d3d(0x16c),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0x5c2d3d(0x30d),!0x1),Y(this,'_cxtHandlerPointerMove',void 0x0),Y(this,'_cxtHandlerPointerUp',void 0x0),Y(this,'_currentConnectionTarget',null),this[_0x5c2d3d(0x27e)]();}[_0x25219a(0x27e)](){const _0x697764=_0x25219a;this[_0x697764(0x132)](),this[_0x697764(0x231)]();}[_0x25219a(0x2c4)](){const _0x39aee3=_0x25219a;if(!this[_0x39aee3(0x1c5)]||!this[_0x39aee3(0x333)]||!this['_activeShapeId'])return;let _0x1f1c91={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0x2778c5}=this['_drawingManagerService']['getDrawingByParam'](_0x1f1c91);if(_0x2778c5)return{'left':_0x2778c5['left']||0x0,'top':_0x2778c5[_0x39aee3(0x1e8)]||0x0,'width':_0x2778c5[_0x39aee3(0x11f)]||0x0,'height':_0x2778c5[_0x39aee3(0x270)]||0x0,'flipX':_0x2778c5[_0x39aee3(0x275)]||!0x1,'flipY':_0x2778c5[_0x39aee3(0x1a3)]||!0x1,'angle':_0x2778c5[_0x39aee3(0x26e)]};}['_addShapeConnectorHandlerObjects'](){const _0x47445c=_0x25219a;if(this[_0x47445c(0x1c5)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x47445c(0x25d)]===void 0x0)return;let _0x3ab442=this[_0x47445c(0x145)][_0x47445c(0x1dd)](this[_0x47445c(0x1c5)]);if(!_0x3ab442||!_0x3ab442[_0x47445c(0xe3)](_0x319c9a)['getCurrentSkeleton']())return;let {scene:_0x47d543}=_0x3ab442,_0x4c9b99=this['_getDrawingRect']();if(!_0x4c9b99)return;let _0x54db03=this[_0x47445c(0x124)][_0x47445c(0x1f4)](this[_0x47445c(0x1c5)],this[_0x47445c(0x333)],this['_activeShapeId']);if(!_0x54db03||!_0x41a954(_0x54db03['getShapeType']()))return;let _0xde7a7f=_0x54db03['getConnectorLinePoints']();if(_0xde7a7f['length']<0x2)return;let _0x47d234=new _0xd7d9f3(_0x4c9b99),_0xc6d4cc=_0xde7a7f[0x0],_0x257f65=_0xde7a7f[_0xde7a7f[_0x47445c(0x27a)]-0x1],_0x42a9cd=_0x47d234[_0x47445c(0x16d)](_0xc6d4cc),_0x37d845=_0x47d234[_0x47445c(0x16d)](_0x257f65);this[_0x47445c(0x157)](_0x47d543,{..._0x42a9cd},!0x0),this[_0x47445c(0x157)](_0x47d543,{..._0x37d845},!0x1);}[_0x25219a(0x157)](_0x1d2cbc,_0x8069be,_0x257463){const _0x3a03a4=_0x25219a;if(this[_0x3a03a4(0x25d)]===void 0x0||this[_0x3a03a4(0x1c5)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2bad62=_0x3a03a4(0x2de)+this[_0x3a03a4(0x1c5)]+'-'+this[_0x3a03a4(0x333)]+'-'+this[_0x3a03a4(0x25d)]+'-'+(_0x257463?_0x3a03a4(0x10a):'end'),_0xfbe54b=_0x1d2cbc[_0x3a03a4(0x15b)](_0x2bad62);if(_0xfbe54b){_0xfbe54b[_0x3a03a4(0xfd)]({'left':_0x8069be['x']-_0x373ebe['cxnPointRadius'],'top':_0x8069be['y']-_0x373ebe['cxnPointRadius']});return;}let _0x2441b6=new Fr(_0x2bad62,{'left':_0x8069be['x']-_0x373ebe[_0x3a03a4(0x1ea)],'top':_0x8069be['y']-_0x373ebe['cxnPointRadius'],'shapeId':this[_0x3a03a4(0x25d)],'unitId':this[_0x3a03a4(0x1c5)],'subUnitId':this[_0x3a03a4(0x333)],'isStartConnectorPoint':_0x257463,'width':_0x373ebe[_0x3a03a4(0x1ea)]*0x2,'height':_0x373ebe[_0x3a03a4(0x1ea)]*0x2,'zIndex':_0x22b4b7+0x1,'evented':!0x0});this[_0x3a03a4(0x1bb)][_0x3a03a4(0xfc)](_0x2441b6),this['_attachConnectorObjectEvent'](_0x2441b6,_0x1d2cbc,_0x257463),_0x1d2cbc[_0x3a03a4(0xe6)](_0x2441b6,_0x22b4b7+0x1);}['_getScrollInfo'](_0x3c1c6f,_0x2c64e2){const _0x30a165=_0x25219a;var _0x2f43ed;let _0x1b17ad={'x':0x0,'y':0x0};if(!_0x3c1c6f||!_0x2c64e2)return _0x1b17ad;let _0x52f633=this[_0x30a165(0x145)][_0x30a165(0x1dd)](_0x3c1c6f);if(!_0x52f633||!_0x52f633['with'](_0x319c9a)['getSkeleton'](_0x2c64e2))return _0x1b17ad;let _0x1d3b30=_0x52f633[_0x30a165(0xe3)](_0x22e443),_0x3ab2bf=_0x1d3b30==null?void 0x0:_0x1d3b30[_0x30a165(0x158)]();if(!_0x3ab2bf)return _0x1b17ad;let _0x1f9e9c=(_0x2f43ed=this['_univerInstanceService'][_0x30a165(0x11e)](_0x3c1c6f))==null?void 0x0:_0x2f43ed[_0x30a165(0x330)](_0x2c64e2);if(!_0x1f9e9c)return _0x1b17ad;let _0x50bc10=_0x4f0d4b(_0x3ab2bf[_0x30a165(0x1cc)],_0x3ab2bf[_0x30a165(0x18c)],_0x52f633[_0x30a165(0x19b)],_0x1f9e9c);return _0x50bc10?{'x':_0x50bc10['viewportScrollX'],'y':_0x50bc10[_0x30a165(0x24b)]}:_0x1b17ad;}['_getZoomRatio'](_0x543ade,_0x4710a5){const _0x96baf6=_0x25219a;var _0xc8808b;let _0x8fbb8f=(_0xc8808b=this['_univerInstanceService'][_0x96baf6(0x11e)](_0x543ade))==null?void 0x0:_0xc8808b[_0x96baf6(0x330)](_0x4710a5);return(_0x8fbb8f==null?void 0x0:_0x8fbb8f[_0x96baf6(0x310)]())??0x1;}[_0x25219a(0x331)](_0x11a052,_0x34a837,_0x4d9f41,_0x3e01a3,_0x371a3e){const _0x37b712=_0x25219a;this['_cxtHandlerPointerMove'][_0x37b712(0x15a)](),this[_0x37b712(0x205)][_0x37b712(0x15a)](),this[_0x37b712(0x1a9)][_0x37b712(0x10b)]();let _0x3c351c=this['_currentConnectionTarget'];this[_0x37b712(0x2ec)][_0x37b712(0xf8)]();let _0x4d97f0=this[_0x37b712(0x314)](this['_unitId'],this['_subUnitId']),_0x2a622e=this['_getZoomRatio'](this[_0x37b712(0x1c5)],this['_subUnitId']),_0x15aef5={'x':_0x4d9f41['offsetX']/_0x2a622e+_0x4d97f0['x'],'y':_0x4d9f41[_0x37b712(0x114)]/_0x2a622e+_0x4d97f0['y']},_0x18058b=_0x3c351c?_0x3c351c[_0x37b712(0x30a)]:_0x15aef5,_0x337393=_0x3e01a3?this[_0x37b712(0x16c)][_0x37b712(0x27b)]():this[_0x37b712(0x16c)][_0x37b712(0x1d7)](),_0x254984=this[_0x37b712(0x16c)]['getShapeType']();_0x337393?this[_0x37b712(0x2a5)](_0x337393,_0x18058b,_0x3e01a3,_0x3c351c,_0x371a3e):this[_0x37b712(0x105)](_0x34a837,_0x18058b,_0x3e01a3,_0x3c351c,_0x371a3e,_0x254984),this[_0x37b712(0x338)]=!0x1,this[_0x37b712(0x30d)]=!0x1,this[_0x37b712(0x165)]=null,_0x11a052[_0x37b712(0xfa)]();}[_0x25219a(0x105)](_0x53ad17,_0x1126df,_0x32c2c9,_0x5b18b5,_0x5b724c,_0x9486e5){const _0x22279b=_0x25219a;let _0x461686=_0x9486e5===_0x6bfff9[_0x22279b(0x120)]||_0x9486e5===_0x6bfff9[_0x22279b(0x25e)],_0x3f55c8=_0x32c2c9?_0x1126df:_0x53ad17,_0x16e88b=_0x32c2c9?_0x53ad17:_0x1126df,_0x3a2603=this[_0x22279b(0x16c)][_0x22279b(0x175)](),_0x59b51f=_0x5ad544(this['_activeShapeModel'][_0x22279b(0x16e)]()),_0x59e4ef=_0xd7d9f3[_0x22279b(0x2fa)](_0x3a2603,_0x59b51f),_0x4e17d9=_0x461686?_0xd7d9f3[_0x22279b(0x1f7)](_0x3f55c8,_0x16e88b):_0xd7d9f3[_0x22279b(0x276)](_0x53ad17,_0x1126df,_0x32c2c9,_0x59e4ef);_0x5b18b5?this['_executeConnectionCommand'](_0x4e17d9,_0x5b18b5,_0x32c2c9,_0x5b724c):this[_0x22279b(0x109)](_0x4e17d9,_0x5b724c);}[_0x25219a(0x2a5)](_0x52f7c0,_0x5e4dfd,_0x12c7ad,_0x542d4c,_0x88a85b){const _0x407707=_0x25219a;let _0x38615b=this[_0x407707(0x280)](_0x52f7c0);if(!_0x38615b)return;let _0x439af3=_0x542d4c?_0x542d4c[_0x407707(0x26e)]:this[_0x407707(0x1bd)](_0x38615b[_0x407707(0x170)],_0x5e4dfd),_0x214629;if(_0x542d4c){let _0x496754=this[_0x407707(0x284)]['getDrawingByParam']({'unitId':_0x542d4c['unitId'],'subUnitId':_0x542d4c[_0x407707(0x21f)],'drawingId':_0x542d4c[_0x407707(0x25a)]});if(_0x496754!=null&&_0x496754[_0x407707(0x298)]){let {left:_0xb976a8=0x0,top:_0x5a6e85=0x0,width:_0x39729a=0x0,height:_0x4d9b81=0x0,angle:_0x46085e}=_0x496754[_0x407707(0x298)];_0x214629=_0x10ab2a({'left':_0xb976a8,'top':_0x5a6e85,'width':_0x39729a,'height':_0x4d9b81},_0x46085e||0x0);}else _0x214629={'left':_0x5e4dfd['x'],'top':_0x5e4dfd['y'],'width':0x0,'height':0x0};}else _0x214629={'left':_0x5e4dfd['x'],'top':_0x5e4dfd['y'],'width':0x0,'height':0x0};let _0x1eb17c={'point':_0x5e4dfd,'angle':_0x439af3,'bounds':_0x214629},_0x58c2a3=_0x12c7ad?_0x1eb17c:_0x38615b,_0x2fd6aa=_0x12c7ad?_0x38615b:_0x1eb17c,_0x5ef655=this[_0x407707(0x16c)][_0x407707(0x16e)](),_0x49cdc1=_0x5d6f7b(_0x58c2a3,_0x2fd6aa,_0x5ef655);this['_activeShapeModel'][_0x407707(0x1df)]();let _0x38fa3d=_0x47fdde(_0x49cdc1,_0x5ef655);_0x542d4c?this[_0x407707(0x319)](_0x38fa3d,_0x542d4c,_0x52f7c0,_0x12c7ad,_0x88a85b):this[_0x407707(0x23a)](_0x38fa3d,_0x52f7c0,_0x12c7ad,_0x88a85b);}[_0x25219a(0x156)](_0x3c1e60,_0x49ca5b,_0x112027,_0x21799e){const _0x4b75bd=_0x25219a;let _0x2a5a40=this[_0x4b75bd(0x16c)][_0x4b75bd(0x23b)]()[_0x4b75bd(0x2a7)],_0x411046={..._0x2a5a40},_0x5e99dd={'shapeId':_0x49ca5b[_0x4b75bd(0x25a)],'cxnIndex':_0x49ca5b[_0x4b75bd(0x2f8)]};_0x112027?_0x411046[_0x4b75bd(0x265)]=_0x5e99dd:_0x411046['to']=_0x5e99dd;let _0x5a423e=this[_0x4b75bd(0x16c)][_0x4b75bd(0x16e)](),_0x5a2759=_0x47fdde(_0x3c1e60['worldPoints'],_0x5a423e),_0x3739f9={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x3c1e60['worldRect'][_0x4b75bd(0x11f)],'height':_0x3c1e60['worldRect'][_0x4b75bd(0x270)],'left':_0x3c1e60[_0x4b75bd(0x138)][_0x4b75bd(0x242)],'top':_0x3c1e60['worldRect'][_0x4b75bd(0x1e8)],'flipX':_0x3c1e60[_0x4b75bd(0x138)][_0x4b75bd(0x275)]||!0x1,'flipY':_0x3c1e60[_0x4b75bd(0x138)]['flipY']||!0x1,'newAdjustValues':_0x5a2759[_0x4b75bd(0x344)],'oldAdjustValues':_0x21799e,'oldRelation':_0x2a5a40,'newRelation':_0x411046,'newLineType':_0x5a2759[_0x4b75bd(0x2af)],'oldLineType':_0x5a423e};this['_commandService'][_0x4b75bd(0x1a6)](_0xdc15a6['id'],_0x3739f9);}[_0x25219a(0x109)](_0xa099ea,_0x41ead0){const _0x4857d0=_0x25219a;let _0x20ff3a=this['_activeShapeModel'][_0x4857d0(0x16e)](),_0x3f2087=_0x47fdde(_0xa099ea[_0x4857d0(0x1b2)],_0x20ff3a),_0x491785={'unitId':this[_0x4857d0(0x1c5)],'subUnitId':this[_0x4857d0(0x333)],'shapeId':this['_activeShapeId'],'width':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x11f)],'height':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x270)],'left':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x242)],'top':_0xa099ea['worldRect'][_0x4857d0(0x1e8)],'flipX':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x275)]||!0x1,'flipY':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x1a3)]||!0x1,'angle':_0xa099ea[_0x4857d0(0x138)][_0x4857d0(0x26e)]||0x0,'newAdjustValues':_0x3f2087['adjustValues'],'oldAdjustValues':_0x41ead0,'newLineType':_0x3f2087[_0x4857d0(0x2af)],'oldLineType':_0x20ff3a};this[_0x4857d0(0x2cc)][_0x4857d0(0x1a6)](_0xa01182['id'],_0x491785);}[_0x25219a(0x319)](_0x5d61b0,_0x28ab68,_0x2c7981,_0xd6a8e7,_0x2b9d16){const _0x5967fe=_0x25219a;let _0x2ebe2b=this[_0x5967fe(0x16c)]['getShapeData']()['relation'],_0x5f0b59={..._0x2ebe2b},_0x309cce={'shapeId':_0x28ab68[_0x5967fe(0x25a)],'cxnIndex':_0x28ab68[_0x5967fe(0x2f8)]};_0xd6a8e7?(_0x5f0b59[_0x5967fe(0x265)]=_0x309cce,_0x5f0b59['to']=_0x2c7981):(_0x5f0b59[_0x5967fe(0x265)]=_0x2c7981,_0x5f0b59['to']=_0x309cce);let _0x283691={'unitId':this[_0x5967fe(0x1c5)],'subUnitId':this[_0x5967fe(0x333)],'connectorShapeId':this['_activeShapeId'],'width':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x11f)],'height':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x270)],'left':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x242)],'top':_0x5d61b0[_0x5967fe(0x138)][_0x5967fe(0x1e8)],'flipX':_0x5d61b0['worldRect'][_0x5967fe(0x275)]||!0x1,'flipY':_0x5d61b0[_0x5967fe(0x138)]['flipY']||!0x1,'oldAdjustValues':_0x2b9d16,'newAdjustValues':_0x5d61b0[_0x5967fe(0x344)],'newLineType':_0x5d61b0['lineType'],'rotation':_0x5d61b0[_0x5967fe(0xee)],'oldRelation':_0x2ebe2b,'newRelation':_0x5f0b59};this[_0x5967fe(0x2cc)][_0x5967fe(0x1a6)](_0xdc15a6['id'],_0x283691);}[_0x25219a(0x23a)](_0x364b01,_0x1bef99,_0x1cc9e3,_0x5835ab){const _0x1b710e=_0x25219a;let _0x2bc943=this['_activeShapeModel'][_0x1b710e(0x23b)]()['relation'],_0x35a0a3={};_0x1cc9e3?(_0x35a0a3['to']=_0x1bef99,_0x35a0a3[_0x1b710e(0x265)]=void 0x0):(_0x35a0a3[_0x1b710e(0x265)]=_0x1bef99,_0x35a0a3['to']=void 0x0);let _0x3c4da8={'unitId':this[_0x1b710e(0x1c5)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1b710e(0x25d)],'width':_0x364b01['worldRect'][_0x1b710e(0x11f)],'height':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x270)],'left':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x242)],'top':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x1e8)],'flipX':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x275)]||!0x1,'flipY':_0x364b01[_0x1b710e(0x138)][_0x1b710e(0x1a3)]||!0x1,'oldAdjustValues':_0x5835ab,'newAdjustValues':_0x364b01[_0x1b710e(0x344)],'newLineType':_0x364b01[_0x1b710e(0x2af)],'rotation':_0x364b01[_0x1b710e(0xee)],'oldRelation':_0x2bc943,'newRelation':_0x35a0a3};this[_0x1b710e(0x2cc)][_0x1b710e(0x1a6)](_0xdc15a6['id'],_0x3c4da8);}[_0x25219a(0x184)](_0x2c0497,_0x1e537d,_0x940dd4){const _0x471909=_0x25219a;this[_0x471909(0x1b1)](_0x2388cf(_0x2c0497[_0x471909(0x18e)][_0x471909(0x1ab)]((_0x28689f,_0x4c9afb)=>{const _0x2613d4=_0x471909;let _0x4f7034=_0x2c0497[_0x2613d4(0x198)]();if(this[_0x2613d4(0x16c)]=this[_0x2613d4(0x124)][_0x2613d4(0x1f4)](_0x4f7034['unitId'],_0x4f7034[_0x2613d4(0x21f)],_0x4f7034[_0x2613d4(0x2c2)]),!this[_0x2613d4(0x16c)])return;let _0x1ad11={};this[_0x2613d4(0x16c)][_0x2613d4(0x2ea)]()['forEach'](_0xb6304=>{const _0x51ed46=_0x2613d4;let _0x25153a=this[_0x51ed46(0x16c)][_0x51ed46(0x19f)](_0xb6304);_0x25153a!==void 0x0&&(_0x1ad11[_0xb6304]=_0x25153a);});let _0x5c277c=this[_0x2613d4(0x2c4)]();if(!_0x5c277c)return;this[_0x2613d4(0x247)]={..._0x5c277c};let _0x178282=new _0xd7d9f3(this['_baseDrawingRect']),_0x4d48d7=_0x566164({'unitId':this[_0x2613d4(0x1c5)],'subUnitId':this[_0x2613d4(0x333)],'drawingId':this[_0x2613d4(0x25d)]}),_0x5e7b02=_0x1e537d[_0x2613d4(0x15b)](_0x4d48d7);this['_isConnecting']=!0x0,_0x1e537d['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x2613d4(0x149)](_0x1e537d,this[_0x2613d4(0x1c5)],this[_0x2613d4(0x333)],this['_activeShapeId']),this[_0x2613d4(0x165)]=null;let _0x3a04b7=this[_0x2613d4(0x16c)]['getConnectorLinePoints'](),_0x18850e=_0x3a04b7[0x0],_0x46f1d5=_0x3a04b7[_0x3a04b7['length']-0x1],_0x3a438f=_0x940dd4?_0x178282[_0x2613d4(0x16d)](_0x46f1d5):_0x178282[_0x2613d4(0x16d)](_0x18850e);this['_cxtHandlerPointerMove']=_0x1e537d[_0x2613d4(0x131)][_0x2613d4(0x1ab)]((_0x21763b,_0x23257e)=>{const _0x2391dd=_0x2613d4;if(!this[_0x2391dd(0x338)]||!this[_0x2391dd(0x16c)])return;this['_hasReset']||=(this[_0x2391dd(0x1a9)][_0x2391dd(0x2e1)](),this[_0x2391dd(0x16c)][_0x2391dd(0x1c2)](),!0x0);let _0x39024c=this[_0x2391dd(0x314)](this[_0x2391dd(0x1c5)],this[_0x2391dd(0x333)]),_0x47dfa9=this[_0x2391dd(0x1aa)](this[_0x2391dd(0x1c5)],this['_subUnitId']),_0x19494e={'x':_0x21763b['offsetX']/_0x47dfa9+_0x39024c['x'],'y':_0x21763b[_0x2391dd(0x114)]/_0x47dfa9+_0x39024c['y']},_0x244225=this[_0x2391dd(0x2ec)][_0x2391dd(0x126)](_0x19494e);if(_0x244225){let {shapeId:_0x3e85e5,unitId:_0x5e92d5,subUnitId:_0x3b1d08}=_0x244225;if(_0x3e85e5&&_0x5e92d5&&_0x3b1d08){let _0x4ba2da=_0x566164({'unitId':_0x5e92d5,'subUnitId':_0x3b1d08,'drawingId':_0x3e85e5});_0x244225[_0x2391dd(0x26e)]=(_0x1e537d[_0x2391dd(0x15b)](_0x4ba2da)['angle']||0x0)+_0x244225[_0x2391dd(0x26e)];}}this[_0x2391dd(0x165)]=_0x244225;let _0x20a456=_0x940dd4?this[_0x2391dd(0x16c)][_0x2391dd(0x27b)]():this['_activeShapeModel'][_0x2391dd(0x1d7)]();if(_0x20a456){this[_0x2391dd(0x1ed)](_0x20a456,_0x19494e,_0x940dd4,_0x5e7b02,_0x2c0497);return;}this[_0x2391dd(0xf1)](_0x19494e,_0x3a438f,_0x940dd4,_0x5e7b02,_0x2c0497);}),this[_0x2613d4(0x205)]=_0x1e537d['onPointerUp$']['subscribeEvent']((_0x510b28,_0x4b1e98)=>{this['_handleConnectorPointerUp'](_0x1e537d,_0x3a438f,_0x510b28,_0x940dd4,_0x1ad11);}),_0x4c9afb[_0x2613d4(0x193)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x26e48c,_0x2aaf28,_0x3e95a2){const _0x11a564=_0x25219a;let _0x447f9b=this[_0x11a564(0x124)][_0x11a564(0x100)](_0x26e48c,_0x2aaf28,_0x3e95a2);if(!_0x447f9b||_0x447f9b[_0x11a564(0x27a)]===0x0)return;let _0x3f9e82=this['_renderManagerService'][_0x11a564(0x1dd)](_0x26e48c);if(!_0x3f9e82)return;let {scene:_0x1137b7}=_0x3f9e82;for(let _0x26e402 of _0x447f9b){let _0x263bad=_0x26e402[_0x11a564(0x287)],_0x5b6e97=this[_0x11a564(0x124)][_0x11a564(0x1f4)](_0x26e48c,_0x2aaf28,_0x263bad);if(!_0x5b6e97)continue;let _0x39ddb0=_0x5b6e97[_0x11a564(0x1d7)](),_0x464b90=_0x5b6e97['getEndConnectInfo'](),_0x411568=(_0x39ddb0==null?void 0x0:_0x39ddb0[_0x11a564(0x25a)])===_0x3e95a2,_0x2174ef=_0x566164({'unitId':_0x26e48c,'subUnitId':_0x2aaf28,'drawingId':_0x263bad}),_0x2ad164=_0x1137b7[_0x11a564(0x15b)](_0x2174ef);if(!_0x2ad164)continue;let _0x3046f8=this[_0x11a564(0x284)][_0x11a564(0x30c)]({'unitId':_0x26e48c,'subUnitId':_0x2aaf28,'drawingId':_0x263bad});_0x3046f8!=null&&_0x3046f8[_0x11a564(0x298)]&&(_0x39ddb0&&_0x464b90?this[_0x11a564(0x19a)](_0x26e48c,_0x2aaf28,_0x263bad,_0x5b6e97,_0x39ddb0,_0x464b90,_0x2ad164):this['_moveConnectorWithShape'](_0x26e48c,_0x2aaf28,_0x263bad,_0x5b6e97,_0x411568?_0x39ddb0:_0x464b90,_0x411568,_0x3046f8,_0x2ad164));}}[_0x25219a(0x19a)](_0x255b8e,_0x145a8a,_0x5777ef,_0x19b840,_0x1cbcf2,_0x4ff4c5,_0x54717e){const _0x5f4816=_0x25219a;let _0x335f6b=this[_0x5f4816(0x1c5)],_0xb2e3bb=this[_0x5f4816(0x333)];this[_0x5f4816(0x1c5)]=_0x255b8e,this[_0x5f4816(0x333)]=_0x145a8a;let _0x37675c=this['_getConnectPointInfo'](_0x1cbcf2),_0x13015b=this[_0x5f4816(0x280)](_0x4ff4c5);if(this[_0x5f4816(0x1c5)]=_0x335f6b,this[_0x5f4816(0x333)]=_0xb2e3bb,!_0x37675c||!_0x13015b)return;let _0x5a4437=_0x19b840[_0x5f4816(0x16e)](),_0x2a02a7=_0x5d6f7b(_0x37675c,_0x13015b,_0x5a4437);_0x2a02a7&&_0x19b840['updateLinePoints'](_0x2a02a7);let _0x3b543d=_0x47fdde(_0x2a02a7,_0x5a4437);_0x3b543d[_0x5f4816(0x2af)]!==_0x5a4437&&_0x19b840[_0x5f4816(0x2ff)](_0x3b543d[_0x5f4816(0x2af)]),_0x19b840[_0x5f4816(0x1c2)]();for(let [_0x1a0220,_0x1a6582]of Object['entries'](_0x3b543d[_0x5f4816(0x344)]))_0x19b840[_0x5f4816(0x2cf)](_0x1a0220,_0x1a6582);_0x19b840[_0x5f4816(0x256)]({'width':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x11f)],'height':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x270)]}),_0x54717e['transformByState']({'flipX':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x275)],'flipY':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x1a3)],'left':_0x3b543d[_0x5f4816(0x138)]['left'],'top':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x1e8)],'width':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x11f)],'height':_0x3b543d[_0x5f4816(0x138)][_0x5f4816(0x270)],'angle':_0x3b543d[_0x5f4816(0xee)]}),_0x19b840[_0x5f4816(0x1df)]();}['_moveConnectorWithShape'](_0x5236fa,_0x3b1fde,_0x5a7083,_0x13cce6,_0x1221ae,_0x5b902b,_0x33f3fa,_0x4b303e){const _0x21aae7=_0x25219a;let _0x2ca978=this[_0x21aae7(0x1c5)],_0x579a5a=this[_0x21aae7(0x333)];this['_unitId']=_0x5236fa,this[_0x21aae7(0x333)]=_0x3b1fde;let _0x2a8f1e=this[_0x21aae7(0x280)](_0x1221ae);if(this[_0x21aae7(0x1c5)]=_0x2ca978,this['_subUnitId']=_0x579a5a,!_0x2a8f1e)return;let {left:_0x2ea6af=0x0,top:_0x16cd90=0x0,width:_0xcd83f=0x0,height:_0x4a79c5=0x0,flipX:_0x28b09a=!0x1,flipY:_0x3593e0=!0x1}=_0x33f3fa[_0x21aae7(0x298)],_0x206fd3=_0x13cce6[_0x21aae7(0x175)]();if(_0x206fd3[_0x21aae7(0x27a)]<0x2)return;let _0x24062a=new _0xd7d9f3({'left':_0x2ea6af,'top':_0x16cd90,'width':_0xcd83f,'height':_0x4a79c5,'flipX':_0x28b09a,'flipY':_0x3593e0}),_0x21d7f3=_0x5b902b?_0x206fd3[_0x206fd3[_0x21aae7(0x27a)]-0x1]:_0x206fd3[0x0],_0x35f161=_0x24062a[_0x21aae7(0x16d)](_0x21d7f3),_0x2576ff=_0xd7d9f3[_0x21aae7(0x276)](_0x35f161,_0x2a8f1e['point'],!_0x5b902b);_0x4b303e['transformByState']({'flipX':_0x2576ff['worldRect'][_0x21aae7(0x275)],'flipY':_0x2576ff[_0x21aae7(0x138)]['flipY'],'left':_0x2576ff['worldRect'][_0x21aae7(0x242)],'top':_0x2576ff[_0x21aae7(0x138)]['top'],'width':_0x2576ff[_0x21aae7(0x138)][_0x21aae7(0x11f)],'height':_0x2576ff[_0x21aae7(0x138)]['height'],'angle':_0x2576ff[_0x21aae7(0x138)][_0x21aae7(0x26e)]}),_0x4b303e[_0x21aae7(0x154)](!0x0);}[_0x25219a(0x14d)](){const _0x581b8a=_0x25219a;this[_0x581b8a(0x1bb)][_0x581b8a(0x27a)]!==0x0&&(this['_connectorObjects'][_0x581b8a(0x162)](_0xf754b3=>{_0xf754b3['dispose']();}),this[_0x581b8a(0x1bb)]=[]);}[_0x25219a(0x231)](){const _0x509c6b=_0x25219a;let _0x6dc327=this[_0x509c6b(0xfe)][_0x509c6b(0x1ac)](_0x2e857c['UNIVER_SHEET']);this['disposeWithMe'](_0x6dc327['pipe'](_0x54e619(_0x5bbc68=>_0x5bbc68?_0x5bbc68[_0x509c6b(0x263)][_0x509c6b(0x17c)](_0x54e619(_0x37a99a=>{const _0x500366=_0x509c6b;if(!_0x37a99a)return _0x1997e0;let _0x5b99da=_0x5bbc68['getUnitId'](),_0x344961=this[_0x500366(0x145)][_0x500366(0x1dd)](_0x5b99da),_0x98910b=_0x344961==null?void 0x0:_0x344961[_0x500366(0x19b)];return _0x98910b?_0x36ada1(_0x98910b):_0x1997e0;})):_0x1997e0))[_0x509c6b(0x1a5)](_0x3ffb21=>{const _0x479a02=_0x509c6b;let _0x95690c=_0x3ffb21[_0x479a02(0x253)]();this[_0x479a02(0x1b1)](_0x3ffb21[_0x479a02(0x131)][_0x479a02(0x1ab)](_0x48281e=>{const _0x1c63aa=_0x479a02;this[_0x1c63aa(0x2ef)]&&this['_activeShapeId']&&this[_0x1c63aa(0x14d)]();})),this[_0x479a02(0x1b1)](_0x95690c['changeStart$'][_0x479a02(0x1a5)](_0x3f2969=>{const _0xa07848=_0x479a02;let {objects:_0x44e0a6}=_0x3f2969;this['_clearShapeConnectorHandlerObjects'](),_0x44e0a6!==null&&_0x44e0a6[_0xa07848(0x32f)]===0x1&&_0x44e0a6['values']()[_0xa07848(0x32d)]()[_0xa07848(0x335)]instanceof Ln&&(this[_0xa07848(0x2ef)]=!0x0);})),this[_0x479a02(0x1b1)](_0x95690c[_0x479a02(0x155)][_0x479a02(0x1a5)](_0x3e23ec=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x479a02(0x1b1)](_0x3ffb21[_0x479a02(0x2fc)]['subscribeEvent'](()=>{const _0x372ea7=_0x479a02;this[_0x372ea7(0x2ef)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x479a02(0x1b1)](_0x95690c[_0x479a02(0x313)]['subscribe'](()=>{const _0x5d835e=_0x479a02;this['_unitId']&&this[_0x5d835e(0x333)]&&this[_0x5d835e(0x25d)]&&this[_0x5d835e(0x284)][_0x5d835e(0x30c)]({'unitId':this[_0x5d835e(0x1c5)],'subUnitId':this[_0x5d835e(0x333)],'drawingId':this[_0x5d835e(0x25d)]})&&(this[_0x5d835e(0x14d)](),this[_0x5d835e(0x210)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x10c79a=_0x25219a;this[_0x10c79a(0x1b1)](this[_0x10c79a(0x284)]['focus$'][_0x10c79a(0x1a5)](_0x304bef=>{const _0x1d4f72=_0x10c79a;if(_0x304bef['length']===0x1){let _0x3dcccc=_0x304bef[0x0];if(_0x3dcccc[_0x1d4f72(0x2b3)]===_0x161136['DRAWING_SHAPE']){let _0x3a5de4=this[_0x1d4f72(0x124)][_0x1d4f72(0x1f4)](_0x3dcccc[_0x1d4f72(0x151)],_0x3dcccc[_0x1d4f72(0x21f)],_0x3dcccc['drawingId']);if(_0x3a5de4&&_0x41a954(_0x3a5de4[_0x1d4f72(0x16e)]())){this[_0x1d4f72(0x25d)]=_0x3dcccc[_0x1d4f72(0x2c2)],this['_unitId']=_0x3dcccc[_0x1d4f72(0x151)],this[_0x1d4f72(0x333)]=_0x3dcccc[_0x1d4f72(0x21f)],this[_0x1d4f72(0x14d)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x1d4f72(0x25d)]=void 0x0,this[_0x1d4f72(0x1c5)]=void 0x0,this[_0x1d4f72(0x333)]=void 0x0,this[_0x1d4f72(0x14d)]();})),this[_0x10c79a(0x1b1)](this[_0x10c79a(0x284)][_0x10c79a(0x22c)][_0x10c79a(0x1a5)](_0x196c28=>{const _0x2cd359=_0x10c79a;if(_0x196c28[_0x2cd359(0x27a)]===0x1){var _0x5a1459;let _0x8b31f6=_0x196c28[0x0],_0x5d8a41=(_0x5a1459=this[_0x2cd359(0x284)][_0x2cd359(0x30c)](_0x8b31f6))==null?void 0x0:_0x5a1459[_0x2cd359(0x2b3)];_0x5d8a41===_0x161136['DRAWING_SHAPE']&&_0x8b31f6[_0x2cd359(0x2c2)]===this[_0x2cd359(0x25d)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x2cd359(0x25d)]&&_0x5d8a41===_0x161136[_0x2cd359(0x25c)]&&this[_0x2cd359(0x332)](_0x8b31f6[_0x2cd359(0x151)],_0x8b31f6[_0x2cd359(0x21f)],_0x8b31f6['drawingId']);}})),this['disposeWithMe'](this[_0x10c79a(0x284)][_0x10c79a(0x2c0)]['subscribe'](_0x28ecca=>{const _0x50fa99=_0x10c79a;for(let _0x2002f2 of _0x28ecca){let {drawingId:_0x60569b}=_0x2002f2;if(this['_activeShapeId']===_0x60569b){this[_0x50fa99(0x1cb)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5da5bf,_0x56aae3,_0x3b3d6f,_0x2e5ee5,_0x2ac315){const _0x539b3e=_0x25219a;var _0x298e8b;if(!this[_0x539b3e(0x16c)])return;let _0x471e4c=this[_0x539b3e(0x280)](_0x5da5bf);if(!_0x471e4c)return;let _0x132ca9=this[_0x539b3e(0x165)]?this[_0x539b3e(0x165)][_0x539b3e(0x30a)]:_0x56aae3,_0x2bb865=this[_0x539b3e(0x165)]?this['_currentConnectionTarget'][_0x539b3e(0x26e)]:this[_0x539b3e(0x1bd)](_0x471e4c['point'],_0x132ca9),_0x3b88ba;if(this[_0x539b3e(0x165)]){let _0x30ac3c=this['_drawingManagerService'][_0x539b3e(0x30c)]({'unitId':this['_currentConnectionTarget'][_0x539b3e(0x151)],'subUnitId':this[_0x539b3e(0x165)]['subUnitId'],'drawingId':this[_0x539b3e(0x165)]['shapeId']});if(_0x30ac3c!=null&&_0x30ac3c[_0x539b3e(0x298)]){let {left:_0x4b0d03=0x0,top:_0x4b0f3d=0x0,width:_0x1e013b=0x0,height:_0x16ef94=0x0,angle:_0x41325b}=_0x30ac3c[_0x539b3e(0x298)];_0x3b88ba=_0x10ab2a({'left':_0x4b0d03,'top':_0x4b0f3d,'width':_0x1e013b,'height':_0x16ef94},_0x41325b||0x0);}else _0x3b88ba={'left':_0x132ca9['x'],'top':_0x132ca9['y'],'width':0x0,'height':0x0};}else _0x3b88ba={'left':_0x132ca9['x'],'top':_0x132ca9['y'],'width':0x0,'height':0x0};let _0x3e25fc={'point':_0x132ca9,'angle':_0x2bb865,'bounds':_0x3b88ba},_0x42efa6=_0x3b3d6f?_0x3e25fc:_0x471e4c,_0x34bea4=_0x3b3d6f?_0x471e4c:_0x3e25fc,_0x5a3a3a=this[_0x539b3e(0x16c)][_0x539b3e(0x16e)](),_0x27b7e1=_0x5d6f7b(_0x42efa6,_0x34bea4,_0x5a3a3a);_0x27b7e1&&this[_0x539b3e(0x16c)][_0x539b3e(0x22a)](_0x27b7e1);let _0x622a7e=_0x47fdde(_0x27b7e1,_0x5a3a3a);_0x622a7e[_0x539b3e(0x2af)]!==_0x5a3a3a&&this[_0x539b3e(0x16c)]['changeShapeType'](_0x622a7e[_0x539b3e(0x2af)]);for(let [_0x16e430,_0x449b34]of Object[_0x539b3e(0x277)](_0x622a7e['adjustValues']))this['_activeShapeModel']['setAdjustValueByName'](_0x16e430,_0x449b34);this[_0x539b3e(0x16c)][_0x539b3e(0x256)]({'width':_0x622a7e['worldRect']['width'],'height':_0x622a7e['worldRect'][_0x539b3e(0x270)]}),_0x2e5ee5['transformByState']({'flipX':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x275)],'flipY':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x1a3)],'left':_0x622a7e[_0x539b3e(0x138)]['left'],'top':_0x622a7e['worldRect']['top'],'width':_0x622a7e[_0x539b3e(0x138)]['width'],'height':_0x622a7e[_0x539b3e(0x138)][_0x539b3e(0x270)],'angle':_0x622a7e[_0x539b3e(0xee)]}),_0x2e5ee5['makeDirty'](!0x0);let _0x33f438=((_0x298e8b=this[_0x539b3e(0x165)])==null?void 0x0:_0x298e8b[_0x539b3e(0x30a)])??_0x56aae3;_0x2ac315[_0x539b3e(0xfd)]({'left':_0x33f438['x']-_0x373ebe[_0x539b3e(0x1ea)],'top':_0x33f438['y']-_0x373ebe[_0x539b3e(0x1ea)]});}['_handleFreeEndpointMove'](_0x3d3464,_0x3e6d1e,_0x1efe9c,_0x47fc4c,_0x3cd0b0){const _0x732367=_0x25219a;var _0x583d07,_0x5b6fad;let _0x529f03=((_0x583d07=this['_currentConnectionTarget'])==null?void 0x0:_0x583d07[_0x732367(0x30a)])??_0x3d3464,_0x39171c=_0xd7d9f3[_0x732367(0x276)](_0x3e6d1e,_0x529f03,_0x1efe9c);_0x47fc4c[_0x732367(0xfd)]({'flipX':_0x39171c['worldRect'][_0x732367(0x275)],'flipY':_0x39171c['worldRect'][_0x732367(0x1a3)],'left':_0x39171c[_0x732367(0x138)][_0x732367(0x242)],'top':_0x39171c[_0x732367(0x138)][_0x732367(0x1e8)],'width':_0x39171c[_0x732367(0x138)][_0x732367(0x11f)],'height':_0x39171c['worldRect'][_0x732367(0x270)],'angle':_0x39171c['worldRect'][_0x732367(0x26e)]});let _0x5a8d55=((_0x5b6fad=this[_0x732367(0x165)])==null?void 0x0:_0x5b6fad[_0x732367(0x30a)])??_0x3d3464;_0x3cd0b0[_0x732367(0xfd)]({'left':_0x5a8d55['x']-_0x373ebe[_0x732367(0x1ea)],'top':_0x5a8d55['y']-_0x373ebe[_0x732367(0x1ea)]});}[_0x25219a(0x280)](_0x6d0216){const _0x3b47d5=_0x25219a;if(!this[_0x3b47d5(0x1c5)]||!this[_0x3b47d5(0x333)])return null;let {shapeId:_0x5e83f3,cxnIndex:_0x59fe06}=_0x6d0216,_0x30512e=this[_0x3b47d5(0x124)]['getShapeModel'](this[_0x3b47d5(0x1c5)],this['_subUnitId'],_0x5e83f3);if(!_0x30512e)return null;let _0x46dc7a=this[_0x3b47d5(0x284)][_0x3b47d5(0x30c)]({'unitId':this[_0x3b47d5(0x1c5)],'subUnitId':this[_0x3b47d5(0x333)],'drawingId':_0x5e83f3});if(!(_0x46dc7a!=null&&_0x46dc7a[_0x3b47d5(0x298)]))return null;let {left:_0x290b10=0x0,top:_0x8e8ed8=0x0,width:_0x1b75da=0x0,height:_0x54535d=0x0,flipX:_0x71a023=!0x1,flipY:_0x11f914=!0x1,angle:_0x5b2f61}=_0x46dc7a[_0x3b47d5(0x298)];_0x30512e[_0x3b47d5(0x256)]({'width':_0x1b75da,'height':_0x54535d});let _0x58e7a9=_0x30512e[_0x3b47d5(0x201)]()['find'](_0xa75468=>_0xa75468[_0x3b47d5(0x278)]===_0x59fe06);if(!_0x58e7a9)return null;let _0xd1e5c8=_0x71a023?_0x1b75da-_0x58e7a9['x']:_0x58e7a9['x'],_0x5d404e=_0x11f914?_0x54535d-_0x58e7a9['y']:_0x58e7a9['y'];if(_0x5b2f61!==0x0&&_0x5b2f61!=null){let _0x2ec799=_0x5b2f61*Math['PI']/0xb4,_0x10ee58=Math[_0x3b47d5(0x214)](_0x2ec799),_0x3ed85e=Math['sin'](_0x2ec799),_0xcf082a=_0x1b75da/0x2,_0x1656e2=_0x54535d/0x2,_0x220c82=_0xd1e5c8-_0xcf082a,_0x1c75dc=_0x5d404e-_0x1656e2;_0xd1e5c8=_0xcf082a+_0x220c82*_0x10ee58-_0x1c75dc*_0x3ed85e,_0x5d404e=_0x1656e2+_0x220c82*_0x3ed85e+_0x1c75dc*_0x10ee58;}_0xd1e5c8+=_0x290b10,_0x5d404e+=_0x8e8ed8;let _0x9603d4=_0x58e7a9[_0x3b47d5(0x261)]/0xea60;_0x71a023&&(_0x9603d4=0xb4-_0x9603d4),_0x11f914&&(_0x9603d4=-_0x9603d4),_0x9603d4+=_0x5b2f61||0x0,_0x9603d4=(_0x9603d4%0x168+0x168)%0x168;let _0x9c61ad=_0x10ab2a({'left':_0x290b10,'top':_0x8e8ed8,'width':_0x1b75da,'height':_0x54535d},_0x5b2f61||0x0);return{'point':{'x':_0xd1e5c8,'y':_0x5d404e},'angle':_0x9603d4,'bounds':_0x9c61ad};}[_0x25219a(0x1bd)](_0x17dadf,_0x3f127e){const _0x4c5d60=_0x25219a;let _0x269131=_0x3f127e['x']-_0x17dadf['x'],_0x4b44a2=_0x3f127e['y']-_0x17dadf['y'];return Math[_0x4c5d60(0x18f)](_0x269131)>=Math[_0x4c5d60(0x18f)](_0x4b44a2)?_0x269131>=0x0?0xb4:0x0:_0x4b44a2>=0x0?0x10e:0x5a;}['_reset'](){const _0x191cf6=_0x25219a;this['_activeShapeId']=void 0x0,this[_0x191cf6(0x1c5)]=void 0x0,this[_0x191cf6(0x333)]=void 0x0,this[_0x191cf6(0x14d)]();}[_0x25219a(0x259)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};Ir=Z([X(0x1,_0x16d336),X(0x2,_0x471989),X(0x3,_0x492363),X(0x4,_0x230412),X(0x5,_0x396ece(_0x6985f7)),X(0x6,_0x396ece(zn)),X(0x7,_0x396ece(Nr))],Ir);let Lr=class extends _0x3ba2e2{constructor(_0x25e998,_0x371f8e,_0x4773d5){const _0x313cf8=_0x25219a;super(),this[_0x313cf8(0x236)]=_0x25e998,this['_drawingManagerService']=_0x371f8e,this[_0x313cf8(0x1b8)]=_0x4773d5,this[_0x313cf8(0x26f)]();}[_0x25219a(0x26f)](){const _0x248087=_0x25219a;this['disposeWithMe'](this[_0x248087(0x236)][_0x248087(0x346)][_0x248087(0x1e4)](this[_0x248087(0x236)][_0x248087(0x346)][_0x248087(0x240)]()[_0x248087(0x2e7)],{'handler':(_0x39d2cd,_0x20c1a4,_0x34fd03)=>{const _0x393a5c=_0x248087;var _0x522f56;let {unitId:_0x2df88e,subUnitId:_0x4c5190,scene:_0x560335,resourceCollector:_0x48ecb2}=_0x20c1a4,_0xa7997=(_0x522f56=this[_0x393a5c(0x284)][_0x393a5c(0x192)](_0x2df88e))==null?void 0x0:_0x522f56[_0x4c5190];return _0xa7997==null||_0xa7997[_0x393a5c(0x2d6)][_0x393a5c(0x162)](_0x131470=>{const _0x24be87=_0x393a5c;let _0xbddaab=_0xa7997[_0x24be87(0x2b0)][_0x131470];_0xbddaab['drawingType']===_0x161136['DRAWING_SHAPE']&&!_0xbddaab[_0x24be87(0x160)]&&this[_0x24be87(0x1b8)][_0x24be87(0x32b)](_0xbddaab,_0x560335,{'resourceCollector':_0x48ecb2});}),_0x34fd03(_0x39d2cd);}}));}};Lr=Z([X(0x0,_0x396ece(_0x5c886c)),X(0x1,_0x492363),X(0x2,_0x396ece(Q))],Lr);let Rr=class extends _0x3ba2e2{constructor(_0x59098d,_0x58aa36,_0x5647a6){const _0x4124c2=_0x25219a;super(),this[_0x4124c2(0x2cc)]=_0x59098d,this[_0x4124c2(0x1f0)]=_0x58aa36,this['_sheetPermissionCheckController']=_0x5647a6,this[_0x4124c2(0x200)]();}[_0x25219a(0x200)](){const _0x2d041e=_0x25219a;this['disposeWithMe'](this[_0x2d041e(0x2cc)]['beforeCommandExecuted'](_0x205b82=>{const _0x4203e2=_0x2d041e;let _0x23aa7a,_0x179ca9;if(_0x205b82['id']===_0x3a08e6['id']||_0x205b82['id']===_0x5e53bf['id']||_0x205b82['id']===_0xdc15a6['id']){let _0x4bdf8d=_0x205b82[_0x4203e2(0x17a)];_0x23aa7a=_0x4bdf8d['unitId'],_0x179ca9=_0x4bdf8d[_0x4203e2(0x21f)];}!_0x23aa7a||!_0x179ca9||this['_sheetPermissionCheckController'][_0x4203e2(0x341)]({'workbookTypes':[_0x8641fc],'worksheetTypes':[_0xc6d67c]},_0x23aa7a,_0x179ca9)||this['_sheetPermissionCheckController'][_0x4203e2(0x150)](this[_0x4203e2(0x1f0)]['t'](_0x4203e2(0x11a)));}));}};Rr=Z([X(0x0,_0x396ece(_0x16d336)),X(0x1,_0x396ece(_0x404764)),X(0x2,_0x396ece(_0x5e60fd))],Rr);let zr=class extends _0x3ba2e2{constructor(_0x4a63fa,_0x21e6fc,_0x18b6a3,_0x233a8a,_0x502a46,_0x418aaa,_0x15ac26,_0x3c9eb3,_0x41fa5a,_0x4f8570,_0x560539){const _0x3226f7=_0x25219a;super(),this[_0x3226f7(0xfe)]=_0x4a63fa,this[_0x3226f7(0x104)]=_0x21e6fc,this[_0x3226f7(0x22e)]=_0x18b6a3,this[_0x3226f7(0x124)]=_0x233a8a,this[_0x3226f7(0x1f0)]=_0x502a46,this[_0x3226f7(0x2cc)]=_0x418aaa,this[_0x3226f7(0x284)]=_0x15ac26,this[_0x3226f7(0x226)]=_0x3c9eb3,this[_0x3226f7(0x1e9)]=_0x41fa5a,this['_renderManagerService']=_0x4f8570,this[_0x3226f7(0x30f)]=_0x560539,Y(this,_0x3226f7(0x19d),null),Y(this,_0x3226f7(0x2a3),null),Y(this,_0x3226f7(0x1d5),!0x1),Y(this,'_shapeEditPanelVersion',0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x3226f7(0x2c9),[]),this['_initMenu'](),this[_0x3226f7(0x1b1)](this[_0x3226f7(0xfe)][_0x3226f7(0x1ac)](_0x2e857c[_0x3226f7(0x243)])[_0x3226f7(0x1a5)](_0x158b18=>{const _0x4bb559=_0x3226f7;if(!_0x158b18){var _0xc30218;(_0xc30218=this[_0x4bb559(0x19d)])==null||_0xc30218[_0x4bb559(0x259)]();return;}this['_createShapePopupMenu'](_0x158b18);})),this[_0x3226f7(0x227)](),this[_0x3226f7(0x2bf)](),this[_0x3226f7(0x1b1)](this[_0x3226f7(0x30f)][_0x3226f7(0x325)]['subscribe'](_0xd0e5d8=>{const _0x58fae6=_0x3226f7;_0xd0e5d8&&this[_0x58fae6(0x2c7)]();}));}[_0x25219a(0x288)](){const _0x501ab3=_0x25219a;this[_0x501ab3(0x22e)]['mergeMenu'](lr);}['initShapePopupMenu'](){const _0x3098a6=_0x25219a;this[_0x3098a6(0xfe)][_0x3098a6(0x14f)](_0x2e857c['UNIVER_SHEET'])[_0x3098a6(0x162)](_0x1460ba=>this[_0x3098a6(0x29e)](_0x1460ba));}[_0x25219a(0x15e)](_0x59ae55,_0x5aed65,_0x2a6d68){const _0x4bb723=_0x25219a;let _0x4ec512=this['_sheetsShapeService'][_0x4bb723(0x218)](_0x59ae55,_0x5aed65,_0x2a6d68),_0x2d7a00=this[_0x4bb723(0x124)][_0x4bb723(0x137)](_0x59ae55,_0x5aed65,_0x2a6d68);return _0x4ec512!==void 0x0&&_0x2d7a00!==void 0x0?{'shapeData':_0x2d7a00,'shapeId':_0x2a6d68,'shapeType':_0x4ec512,'unitId':_0x59ae55,'subUnitId':_0x5aed65,'version':this[_0x4bb723(0x2aa)],'disableShapeOption':!0x1}:null;}[_0x25219a(0x29e)](_0xd6d4aa){const _0x1389cd=_0x25219a;if(!_0xd6d4aa)return;let _0x4e299f=_0xd6d4aa[_0x1389cd(0x1cd)]();this['_renderManagerService'][_0x1389cd(0x135)](_0x4e299f)&&!this[_0x1389cd(0x1f2)][_0x1389cd(0x135)](_0x4e299f)&&(this[_0x1389cd(0x294)](_0x4e299f),this[_0x1389cd(0x1f2)][_0x1389cd(0x119)](_0x4e299f));}[_0x25219a(0x2c7)](){const _0x3a496b=_0x25219a;this[_0x3a496b(0x2c9)][_0x3a496b(0x162)](_0x2d18f5=>_0x2d18f5['dispose']()),this[_0x3a496b(0x2c9)][_0x3a496b(0x27a)]=0x0;}['_popupMenuListener'](_0x300caf){const _0x559517=_0x25219a;var _0x506758;let _0x1c8bff=(_0x506758=this['_renderManagerService'][_0x559517(0x1dd)](_0x300caf))==null?void 0x0:_0x506758[_0x559517(0x19b)],_0xae563d=_0x1c8bff==null?void 0x0:_0x1c8bff[_0x559517(0x253)]();!_0x1c8bff||!_0xae563d||(this['disposeWithMe'](_0xae563d[_0x559517(0x123)]['subscribe'](()=>{const _0x5138b3=_0x559517;let _0x5c89ba=_0xae563d[_0x5138b3(0x1f8)]();if(this[_0x5138b3(0x2c7)](),this[_0x5138b3(0x1d5)]||_0x5c89ba[_0x5138b3(0x32f)]>0x1)return;let _0x516458=_0x5c89ba[_0x5138b3(0x1c8)]()[_0x5138b3(0x32d)]()[_0x5138b3(0x335)];if(!_0x516458)return;let _0x4ba2e2=this['_drawingManagerService'][_0x5138b3(0x12b)](_0x516458[_0x5138b3(0x161)]);if(!_0x4ba2e2||_0x4ba2e2[_0x5138b3(0x2b3)]!==_0x161136['DRAWING_SHAPE'])return;let {unitId:_0x3c7ef4,subUnitId:_0x52076a,drawingId:_0x3c257b,drawingType:_0x47c068}=_0x4ba2e2,_0x4b8543=this[_0x5138b3(0x15e)](_0x3c7ef4,_0x52076a,_0x3c257b);if(!_0x4b8543)return;this[_0x5138b3(0x1e9)][_0x5138b3(0x25f)](_0x29948b,!0x0);let _0x1d447a=this[_0x5138b3(0x226)][_0x5138b3(0x2eb)](_0x516458,{'componentKey':Wn,'direction':'top-center','offset':[0x0,_0xa70bb9],'extraProps':{'unitId':_0x3c7ef4,'subUnitId':_0x52076a,'drawingId':_0x3c257b,'drawingType':_0x47c068,'shapeType':_0x4b8543[_0x5138b3(0x1c7)],'shapeData':_0x4b8543['shapeData']}});this[_0x5138b3(0x2c9)][_0x5138b3(0xfc)](this[_0x5138b3(0x1b1)](_0x1d447a)),this[_0x5138b3(0x284)]['getFocusDrawings']()['find'](_0x15e027=>_0x15e027[_0x5138b3(0x151)]===_0x3c7ef4&&_0x15e027[_0x5138b3(0x21f)]===_0x52076a&&_0x15e027[_0x5138b3(0x2c2)]===_0x3c257b)||this[_0x5138b3(0x284)][_0x5138b3(0x27f)]([{'unitId':_0x3c7ef4,'subUnitId':_0x52076a,'drawingId':_0x3c257b}]);})),this['disposeWithMe'](_0xae563d[_0x559517(0x2c1)][_0x559517(0x1a5)](()=>{const _0x15f012=_0x559517;this[_0x15f012(0x2c7)](),this[_0x15f012(0x1e9)][_0x15f012(0x25f)](_0x29948b,!0x1),this['_drawingManagerService'][_0x15f012(0x27f)](null);})),this[_0x559517(0x1b1)](_0xae563d[_0x559517(0x155)][_0x559517(0x1a5)](()=>{this['_clearPopups']();})),this[_0x559517(0x1b1)](_0xae563d[_0x559517(0x255)][_0x559517(0x1a5)](()=>{this['_clearPopups']();})));}[_0x25219a(0x227)](){const _0x5e4e07=_0x25219a;this[_0x5e4e07(0x1b1)](this[_0x5e4e07(0x2cc)][_0x5e4e07(0x24a)](_0xd7da00=>{const _0x569639=_0x5e4e07;if(_0xd7da00['id']===pr['id']){let {unitId:_0xd25e06,subUnitId:_0x582691,drawingId:_0x547bb9}=_0xd7da00[_0x569639(0x17a)];this[_0x569639(0x2aa)]+=0x1,this[_0x569639(0x2a3)]=this[_0x569639(0x15e)](_0xd25e06,_0x582691,_0x547bb9),this['_clearPopups'](),this[_0x569639(0x1f1)]();}if(_0xd7da00['id']===fr['id']&&(this[_0x569639(0x2a3)]=null,this[_0x569639(0x204)]()),_0xd7da00['id']===_0x46a98e['id']){let {unitId:_0x3e143b,subUnitId:_0x602add,shapeId:_0x427435}=_0xd7da00['params'];if(this[_0x569639(0x2a3)]&&this['_activeShapeInfo']['shapeId']===_0x427435){let _0x2c2397=this[_0x569639(0x15e)](_0x3e143b,_0x602add,_0x427435);_0x2c2397&&(this[_0x569639(0x2aa)]+=0x1,_0x2c2397[_0x569639(0x24e)]=this['_shapeEditPanelVersion'],this[_0x569639(0x2a3)]=_0x2c2397,this[_0x569639(0x1d5)]&&this[_0x569639(0x1f1)]());}}})),this['disposeWithMe'](this[_0x5e4e07(0x284)][_0x5e4e07(0x250)][_0x5e4e07(0x1a5)](_0x5b5443=>{const _0x2645c7=_0x5e4e07;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x5b5443['length']===0x0){this['_activeShapeInfo']=null,this[_0x2645c7(0x204)]();return;}if(_0x5b5443[_0x2645c7(0x27a)]===0x1&&_0x5b5443[0x0][_0x2645c7(0x2b3)]===_0x161136[_0x2645c7(0x25c)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x2645c7(0x2a3)]=this['_getShapeInfo'](_0x5b5443[0x0]['unitId'],_0x5b5443[0x0]['subUnitId'],_0x5b5443[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x2645c7(0x1f1)]();return;}let _0x139d61=_0x5b5443[_0x2645c7(0x291)](_0x2fb987=>_0x2fb987['drawingType']===_0x161136['DRAWING_SHAPE']);if(_0x5b5443['length']>0x1&&_0x139d61[_0x2645c7(0x27a)]===_0x5b5443[_0x2645c7(0x27a)]){if(this[_0x2645c7(0x2aa)]+=0x1,this[_0x2645c7(0x2a3)]=this['_getShapeInfo'](_0x5b5443[0x0][_0x2645c7(0x151)],_0x5b5443[0x0]['subUnitId'],_0x5b5443[0x0][_0x2645c7(0x2c2)]),this['_activeShapeInfo']){this[_0x2645c7(0x1f1)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x2645c7(0x15e)](_0x5b5443[0x0][_0x2645c7(0x151)],_0x5b5443[0x0][_0x2645c7(0x21f)],_0x5b5443[0x0][_0x2645c7(0x2c2)]),this[_0x2645c7(0x2a3)]){this[_0x2645c7(0x2a3)][_0x2645c7(0x11c)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x2645c7(0x204)]();}));}[_0x25219a(0x1f1)](){const _0x53ce0d=_0x25219a;this[_0x53ce0d(0x2a3)]&&(this[_0x53ce0d(0x19d)]=this['_sidebarService'][_0x53ce0d(0x320)]({'id':Hn,'header':{'title':this[_0x53ce0d(0x1f0)]['t'](_0x53ce0d(0x290))},'width':0x184,'children':{'label':Hn,...this[_0x53ce0d(0x2a3)]},'onClose':()=>{const _0x29eec9=_0x53ce0d;this[_0x29eec9(0x284)]['focusDrawing'](null),this[_0x29eec9(0x1e9)][_0x29eec9(0x25f)](_0x29948b,!0x1),this[_0x29eec9(0x19d)]=null;}}),this[_0x53ce0d(0x1d5)]=!0x0);}['_closeShapeEditPanel'](){const _0x3a20b5=_0x25219a;this[_0x3a20b5(0x1d5)]=!0x1,this[_0x3a20b5(0x104)][_0x3a20b5(0xe9)](Hn),this[_0x3a20b5(0x19d)]=null,this[_0x3a20b5(0x1e9)][_0x3a20b5(0x25f)](_0x29948b,!0x1),this['_drawingManagerService'][_0x3a20b5(0x27f)](null);}};zr=Z([X(0x0,_0x230412),X(0x1,_0x396ece(_0x54fc19)),X(0x2,_0x23b358),X(0x3,_0x396ece(_0x6985f7)),X(0x4,_0x396ece(_0x404764)),X(0x5,_0x16d336),X(0x6,_0x492363),X(0x7,_0x396ece(_0x40f967)),X(0x8,_0x334f35),X(0x9,_0x471989),X(0xa,_0x396ece(Cr))],zr);let $=class extends _0x18bfbf{constructor(_0x3b9db1=mr,_0x14c648,_0x19119b,_0x37c028,_0x4cc5f5){const _0x20c8c3=_0x25219a;super(),this['_config']=_0x3b9db1,this[_0x20c8c3(0x281)]=_0x14c648,this[_0x20c8c3(0x2cc)]=_0x19119b,this[_0x20c8c3(0x2df)]=_0x37c028,this[_0x20c8c3(0x145)]=_0x4cc5f5;let {..._0x3f228f}=_0x575e93({},mr,this[_0x20c8c3(0x142)]);this['_configService'][_0x20c8c3(0x15d)]('sheets-shape-ui.config',_0x3f228f),this[_0x20c8c3(0x2a6)]();}[_0x25219a(0x21d)](){const _0x4f1ea4=_0x25219a;_0x28631c(this[_0x4f1ea4(0x281)],[[zr],[Ar],[Q],[Lr]]);}['onSteady'](){const _0x13d141=_0x25219a;this[_0x13d141(0x281)]['get'](zr)[_0x13d141(0x2bf)]();}[_0x25219a(0x2f2)](){const _0x523710=_0x25219a;[[Nr],[zn],[Pr]]['forEach'](_0x3ecfde=>this[_0x523710(0x281)][_0x523710(0x119)](_0x3ecfde)),_0x28631c(this[_0x523710(0x281)],[[Pr],[zn]]),this[_0x523710(0x145)]['registerRenderModule'](_0x2e857c[_0x523710(0x243)],[Nr]),this[_0x523710(0x145)]['registerRenderModule'](_0x2e857c['UNIVER_SHEET'],[Er]),this['_renderManagerService'][_0x523710(0x235)](_0x2e857c[_0x523710(0x243)],[Ir]),this[_0x523710(0x145)][_0x523710(0x235)](_0x2e857c[_0x523710(0x243)],[Or]),this[_0x523710(0x145)][_0x523710(0x235)](_0x2e857c[_0x523710(0x1b7)],[kr]);}['onStarting'](){const _0x5ed3e5=_0x25219a;this[_0x5ed3e5(0x281)][_0x5ed3e5(0x119)]([Tr]),this[_0x5ed3e5(0x281)][_0x5ed3e5(0x23e)](Tr);let _0x5b8c53=this[_0x5ed3e5(0x281)];[[zr],[Ar],[Q],[Lr],[vr],[Cr],[Dr],[Jn],[Rr]][_0x5ed3e5(0x162)](_0x1105bd=>_0x5b8c53[_0x5ed3e5(0x119)](_0x1105bd)),_0x28631c(this[_0x5ed3e5(0x281)],[[zr],[Ar],[Q],[vr],[Cr],[Dr],[Jn],[Rr]]);}[_0x25219a(0x2a6)](){const _0x51a639=_0x25219a;[Vn,An,fr,pr,qn,Bn][_0x51a639(0x162)](_0x29fd3f=>this['disposeWithMe'](this[_0x51a639(0x2cc)][_0x51a639(0x285)](_0x29fd3f)));}};Y($,_0x25219a(0x31a),_0x2e857c[_0x25219a(0x243)]),Y($,_0x25219a(0x2cb),_0x25219a(0x29c)),Y($,_0x25219a(0xf0),ur),Y($,'version',dr),$=Z([_0x5c3761(_0x355769,_0x72f746,_0xc0cade,_0x117474,_0x3bc238,_0x2afa3f,_0x10fd74,_0x57443e,_0x3eb575,_0x502bda,_0x337d0b,_0x48b0fa,_0x5409b9),X(0x1,_0x396ece(_0x3cde8e)),X(0x2,_0x16d336),X(0x3,_0x487002),X(0x4,_0x471989)],$);export{lr as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|