@univerjs-pro/sheets-shape-ui 1.0.0-alpha.7 → 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/types/const.d.ts +1 -1
- package/lib/types/controllers/ui.controller.d.ts +1 -98
- package/lib/types/locale/en-US.d.ts +2 -10
- package/lib/types/menu/shape-context-menu.d.ts +7 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +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 _0x43dbb9=_0x449a;(function(_0x4e70a5,_0xdf7fd3){const _0x5a991a=_0x449a,_0x23ff02=_0x4e70a5();while(!![]){try{const _0x14f7e7=parseInt(_0x5a991a(0x202))/0x1+parseInt(_0x5a991a(0x1d6))/0x2+-parseInt(_0x5a991a(0x2b7))/0x3*(-parseInt(_0x5a991a(0x1e1))/0x4)+parseInt(_0x5a991a(0x2a0))/0x5+-parseInt(_0x5a991a(0x88))/0x6+-parseInt(_0x5a991a(0x1af))/0x7*(parseInt(_0x5a991a(0x1ef))/0x8)+-parseInt(_0x5a991a(0x262))/0x9;if(_0x14f7e7===_0xdf7fd3)break;else _0x23ff02['push'](_0x23ff02['shift']());}catch(_0xaf2a7c){_0x23ff02['push'](_0x23ff02['shift']());}}}(_0x1d5d,0xef7b5));import{ComponentManager as _0x1953f8,IMenuManagerService as _0x44a75b,ISidebarService as _0x10b5ac,IconManager as _0x200e2a,MenuItemType as _0x142b74,RibbonInsertGroup as _0x24939b,getMenuHiddenObservable as _0x227618,useDependency as _0x597c42,useObservable as _0x31d745}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x427c58,ImageSourceTypeEnum as _0x283528,ShapeArrowSizeEnum as _0x421194,ShapeArrowTypeEnum as _0x454053,ShapeDefaultConfig as _0x2bc8ec,ShapeFillEnum as _0x27d461,ShapeLineTypeEnum as _0x517d31,ShapeModel as _0xf0c0c,ShapeRenderModeEnum as _0x33d52f,ShapeTypeEnum as _0x250922,computeConnectorRouteLayout as _0x3de713,getBasicShapeRotateBound as _0x15c292,isConnectorShape as _0x1f7f23,isCurvedConnectorShape as _0x2e1471,routeConnectorLineShape as _0xde601c}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0xe57842,createShapeFormulaDocument as _0x50262d,createShapeTextBoxShapeData as _0x25f061}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x28064d,InsertSheetsShapeMutation as _0x5addb7,RemoveSheetsShapeMutation as _0x35cadb,SetShapeDrawingDataCommand as _0xedfea5,SetSheetsShapeRotateCommand as _0x59af59,SetSheetsShapeTextVerticalToggleCommand as _0x1e9400,SheetsShapeService as _0x26a217,ToggleSheetsShapeFlipCommand as _0x494ee9,UniverSheetsShapePlugin as _0x249942,UpdateConnectorRelationCommand as _0x551591,UpdateLineShapeResizeCommand as _0x5760d5,UpdateSheetsShapeDataMutation as _0x19b81c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x202737,CommandType as _0x8e0e3c,DependentOn as _0x8fb429,Disposable as _0x4760b3,DocumentDataModel as _0x10f73c,DrawingTypeEnum as _0x5d03f6,FOCUSING_COMMON_DRAWINGS as _0x596494,FOCUSING_SHAPE_TEXT_EDITOR as _0x4d1a78,HorizontalAlign as _0x1bf681,ICommandService as _0x4d9cac,IConfigService as _0x1e0ba7,IContextService as _0x21d773,IImageIoService as _0x5dd91b,IURLImageService as _0x488e09,IUndoRedoService as _0x4830b5,IUniverInstanceService as _0x7113c7,Inject as _0x450bf3,Injector as _0x183eff,LocaleService as _0xa3717a,Plugin as _0x33cfb9,UniverInstanceType as _0x2a1b28,VerticalAlign as _0x3d0a33,createInternalEditorID as _0x1a4a4b,generateRandomId as _0x2bfd17,merge as _0x2f8dd2,toDisposable as _0x43b296,touchDependencies as _0xdf78a}from'@univerjs/core';import{CopySheetCommand as _0x16ae42,RemoveSheetCommand as _0x299032,SheetInterceptorService as _0x9d40d,SheetPermissionCheckController as _0xf21f2,SheetSkeletonService as _0x1fc54d,SheetsSelectionsService as _0x412710,WorkbookEditablePermission as _0x1b5cb2,WorksheetEditPermission as _0x194b28,attachRangeWithCoord as _0x403c80,discreteRangeToRange as _0x25d2bc,getSheetCommandTarget as _0x59589e}from'@univerjs/sheets';import{IDrawingManagerService as _0x324617,SetDrawingSelectedOperation as _0xd68623,getDrawingShapeKeyByDrawingSearch as _0x7f2912}from'@univerjs/drawing';import{CURSOR_TYPE as _0x110f16,Circle as _0x536c54,DRAWING_OBJECT_LAYER_INDEX as _0x11332b,DocumentSkeleton as _0x475752,DocumentViewModel as _0x36f5ae,Documents as _0x1a519e,IRenderManagerService as _0x263af6,Image as _0x3100f0,RENDER_CLASS_TYPE as _0x842655,SHEET_VIEWPORT_KEY as _0x4ce309,Shape as _0x300c3f,Transform as _0x112a4b,Vector2 as _0xf6e38e}from'@univerjs/engine-render';import{COPY_TYPE as _0x202be0,ISheetClipboardService as _0x5dfcb1,PREDEFINED_HOOK_NAME as _0x32e6c9,SheetCanvasPopManagerService as _0x15ebbe,SheetPrintInterceptorService as _0x11a3e2,SheetScrollManagerService as _0xdbee74,SheetSkeletonManagerService as _0x392ff0,deriveStateFromActiveSheet$ as _0x4f53b0,getCurrentRangeDisable$ as _0x3b91cb,getViewportByCell as _0x1b930d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x502f7b,EMPTY as _0x3149ab,Observable as _0x573c9d,of as _0x236700,switchMap as _0x46afa7}from'rxjs';import{FormulaShapeAnimationController as _0xeb6567,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x37ad89,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x9bdae2,ShapeEditPanel as _0x30898f,ShapeFloatingToolbar as _0xf7955b,ShapeGroupEnum as _0x2cca23,ShapePickerDropdown as _0x106929,ShapePickerPanel as _0x43451f,ShapeTextEditorContainer as _0x1ef440,ShapeTextFloatMenuRenderControllerBase as _0xd3a510,ShapeTextFloatToolbar as _0x312819,UniverShapeEditorUIPlugin as _0x5337ae,activateDrawingObject as _0x4df6a5,buildShapeTextDataUpdate as _0x299119,clearActiveDrawingObjects as _0xbdee17,drawFormulaShapeAnimationLayers as _0xe06053,getTextModel as _0x4d64d0,getTextStyle as _0x32374d,normalizeShapeTextModel as _0x5cbbbf,plainShapeTextToDocumentData as _0x12e116,prepareShapeTextDocumentData as _0x18b9c3,resolveFormulaShapeAutoFitSize as _0x3a11fc,resolveShapeTextDocumentRenderLayout as _0x2feb6a,resolveShapeTextEditorBehaviorShapeData as _0x11ab34,resolveShapeTextEditorWrapStrategy as _0x432797,shouldAllowShapeTextEditorHostSizeShrink as _0x7ce441,shouldClipShapeTextDocument as _0x25e48c,useFormulaShapeToolbar as _0x1d16dd}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0xd5003,DrawingImageClipService as _0xe0e719,DrawingRenderService as _0x4d43e7,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1f5a6b,OBJECT_LIST_FLOATING_SECTION_ID as _0x34974e,ObjectListPanelBase as _0x313482,getCurrentUnitInfo as _0x4a469b,getObjectListPanelLabels as _0x11da8e,getObjectListPanelSectionIdForDrawingType as _0x450da7,getObjectListPanelTypeName as _0x4a9bd6,insertGroupObject as _0x435a76}from'@univerjs/drawing-ui';import{Fragment as _0xf1e5d2,jsx as _0x2b677f,jsxs as _0x27f2a4}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2cef26}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x1fbaec,SheetsDrawingGroupCopyPasteController as _0x12c68f,UniverSheetsDrawingUIPlugin as _0x56b5ca}from'@univerjs/sheets-drawing-ui';import{ObjectLayersIcon as _0x347bf2}from'@univerjs/icons';import{DrawingApplyType as _0x2640be,ISheetDrawingService as _0x57e4c3,RemoveSheetDrawingCommand as _0x10723d,SetDrawingApplyMutation as _0x6d6f97,SetDrawingArrangeCommand as _0x390f9f,SetSheetDrawingCommand as _0x1fd507,transformToAxisAlignPosition as _0x38f007,transformToDrawingPosition as _0x556f36}from'@univerjs/sheets-drawing';import{memo as _0x3adf0a,useEffect as _0x15fc40,useMemo as _0x293422,useReducer as _0x97793a,useState as _0x5a0562}from'react';import{DocSelectionManagerService as _0x1263d4}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x86b0a2,DocSelectionRenderService as _0x7b1fa8}from'@univerjs/docs-ui';function hn(_0xf21082,_0x240fd8){const _0x5eb3c1=_0x449a;let _0x2fe8ba={};for(let _0x5f1b45 of Object[_0x5eb3c1(0x293)](_0x240fd8)){let _0x11debf=_0x240fd8[_0x5f1b45],_0x45311d=_0xf21082[_0x5f1b45];if(_0x11debf!==void 0x0){if(_0x45311d===void 0x0){_0x2fe8ba[_0x5f1b45]=void 0x0;continue;}typeof _0x11debf==_0x5eb3c1(0x2cf)&&_0x11debf&&!Array[_0x5eb3c1(0x271)](_0x11debf)&&typeof _0x45311d==_0x5eb3c1(0x2cf)&&_0x45311d&&!Array[_0x5eb3c1(0x271)](_0x45311d)?_0x2fe8ba[_0x5f1b45]=hn(_0x45311d,_0x11debf):_0x2fe8ba[_0x5f1b45]=_0x45311d;}}return _0x2fe8ba;}const gn={'type':_0x8e0e3c[_0x43dbb9(0x82)],'id':_0x43dbb9(0xf3),'handler':(_0x2e3fb6,_0xa7a62d)=>{const _0x221cad=_0x43dbb9;let _0x4b73c4=_0x2e3fb6[_0x221cad(0x1bd)](_0x26a217),{unitId:_0x53a325,subUnitId:_0xc66f0c,shapeType:_0x3c2935,shapeId:_0x5d6e50,shapeData:_0x32d918,oldShapeJSON:_0x3903dc}=_0xa7a62d;if(!_0x4b73c4[_0x221cad(0x251)](_0x53a325,_0xc66f0c,_0x5d6e50))return!0x1;let _0x3e99f2=_0x2e3fb6[_0x221cad(0x1bd)](_0x4d9cac),_0x369666=_0x2e3fb6[_0x221cad(0x1bd)](_0x4830b5),{oldShapeType:_0x421706,oldShapeData:_0x422654={}}=_0x3903dc,_0xd32860=hn(_0x422654,_0x32d918||{}),_0x21966d={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x3c2935,'shapeData':_0x32d918}},_0x48a4c4={'id':_0x19b81c['id'],'params':{'unitId':_0x53a325,'subUnitId':_0xc66f0c,'shapeId':_0x5d6e50,'shapeType':_0x421706,'shapeData':_0xd32860}};return _0x3e99f2[_0x221cad(0x193)](_0x21966d['id'],_0x21966d[_0x221cad(0x118)])?(_0x369666[_0x221cad(0x278)]({'unitID':_0x53a325,'undoMutations':[_0x48a4c4],'redoMutations':[_0x21966d]}),!0x0):!0x1;}};function _n(_0x3790d7,_0x2e21ab,_0x3c111d,_0x106f77,_0x29067f,_0x210dda){const _0x302695=_0x43dbb9;let _0x160d51={'unitId':_0x2e21ab,'subUnitId':_0x3c111d,'shapeId':_0x106f77,'shapeData':_0x210dda,'oldShapeJSON':_0x29067f};return _0x3790d7[_0x302695(0x2d0)](gn['id'],_0x160d51);}function vn(_0x5bab22,_0x5e48b2,_0xab0945,_0x48f5ca,_0x36d2ce,_0x508021){const _0x48c629=_0x43dbb9;let _0x1bf7fa={'unitId':_0x5e48b2,'subUnitId':_0xab0945,'shapeId':_0x48f5ca,'shapeData':_0x508021,'oldShapeJSON':_0x36d2ce};return _0x5bab22[_0x48c629(0x2d0)](gn['id'],_0x1bf7fa);}function yn(_0x4d922d){'@babel/helpers - typeof';const _0x42cc13=_0x43dbb9;return yn=typeof Symbol==_0x42cc13(0x1ac)&&typeof Symbol['iterator']==_0x42cc13(0x136)?function(_0x39a3f){return typeof _0x39a3f;}:function(_0xfba3ca){const _0x4ee0f2=_0x42cc13;return _0xfba3ca&&typeof Symbol==_0x4ee0f2(0x1ac)&&_0xfba3ca[_0x4ee0f2(0x8c)]===Symbol&&_0xfba3ca!==Symbol[_0x4ee0f2(0x2a9)]?_0x4ee0f2(0x136):typeof _0xfba3ca;},yn(_0x4d922d);}function bn(_0x5ed4d1,_0x2554b2){const _0x14f895=_0x43dbb9;if(yn(_0x5ed4d1)!=_0x14f895(0x2cf)||!_0x5ed4d1)return _0x5ed4d1;var _0xfeb47=_0x5ed4d1[Symbol[_0x14f895(0x1cc)]];if(_0xfeb47!==void 0x0){var _0x794ace=_0xfeb47[_0x14f895(0x210)](_0x5ed4d1,_0x2554b2||_0x14f895(0x2ce));if(yn(_0x794ace)!='object')return _0x794ace;throw TypeError(_0x14f895(0x108));}return(_0x2554b2===_0x14f895(0x16a)?String:Number)(_0x5ed4d1);}function xn(_0x535207){const _0x438d83=_0x43dbb9;var _0x27a401=bn(_0x535207,_0x438d83(0x16a));return yn(_0x27a401)==_0x438d83(0x136)?_0x27a401:_0x27a401+'';}function Y(_0x45e9e2,_0x5ee48a,_0x33fd40){const _0x2dc04b=_0x43dbb9;return(_0x5ee48a=xn(_0x5ee48a))in _0x45e9e2?Object[_0x2dc04b(0xd4)](_0x45e9e2,_0x5ee48a,{'value':_0x33fd40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e9e2[_0x5ee48a]=_0x33fd40,_0x45e9e2;}function Sn(_0x15c52d,_0x5b4e88,_0x2881d8){var _0x1cf808;let _0x56007d=_0x11ab34(_0x15c52d,{..._0x5b4e88,'dataModel':{...(_0x1cf808=_0x5b4e88['dataModel'])==null?{}:_0x1cf808,..._0x2881d8?{'doc':_0x2881d8}:null}}),_0x45581d=_0x432797(_0x56007d);return{'clip':_0x25e48c(_0x56007d,_0x45581d),'wrapStrategy':_0x45581d};}var Cn=class extends _0x300c3f{constructor(_0x560cbe,_0x1768aa){const _0xda73e=_0x43dbb9;super(_0x560cbe,_0x1768aa),Y(this,'_props',void 0x0),Y(this,_0xda73e(0x17d),new _0xeb6567(()=>this[_0xda73e(0x15d)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Y(this,_0xda73e(0xaa),!0x0),Y(this,'_drawingType',_0x5d03f6[_0xda73e(0x23a)]),Y(this,_0xda73e(0x2aa),!0x0),this[_0xda73e(0x1b4)]={..._0x1768aa},this['_formulaAnimation']['setPresentation'](_0x1768aa[_0xda73e(0x1c2)],_0x1768aa[_0xda73e(0x2dc)]!==!0x1),this[_0xda73e(0x284)](),this[_0xda73e(0x10d)]();}['_init'](){const _0x289520=_0x43dbb9;this[_0x289520(0x184)][_0x289520(0x17c)](_0x4105ab=>{const _0x1459fd=_0x289520;this[_0x1459fd(0x2bf)](_0x4105ab);});}['setPrstGeom'](_0x1943fa){const _0x1a80ba=_0x43dbb9;this['_props'][_0x1a80ba(0x132)]=_0x1943fa;}[_0x43dbb9(0xc7)](_0xc8c20b){const _0x2ccd13=_0x43dbb9;this[_0x2ccd13(0x1b4)][_0x2ccd13(0x206)]=_0xc8c20b,this[_0x2ccd13(0x15d)](!0x0);}[_0x43dbb9(0xdc)](_0x99f1e5,_0x3e9e8a=!0x0){const _0x1a6ffe=_0x43dbb9;this[_0x1a6ffe(0x17d)][_0x1a6ffe(0x142)](_0x99f1e5,_0x3e9e8a),this[_0x1a6ffe(0x1b4)]['formulaPresentation']=_0x99f1e5,this[_0x1a6ffe(0x10d)](),this['makeDirty'](!0x0);}[_0x43dbb9(0x10d)](){const _0x246453=_0x43dbb9;let _0x311cd3=this[_0x246453(0x1b4)][_0x246453(0xc0)],_0x1eaf59=_0x311cd3[_0x246453(0xc1)](),_0x3f0d67=_0x5cbbbf(_0x1eaf59==null?void 0x0:_0x1eaf59[_0x246453(0x29c)]),_0x585098=_0x3f0d67==null?void 0x0:_0x3f0d67[_0x246453(0xe5)],_0x3af3e3=this['_formulaAnimation'][_0x246453(0xca)]();if(!_0x585098||_0x3af3e3[_0x246453(0x15f)]===0x0)return;_0x311cd3[_0x246453(0x104)]({'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]});let _0x5b85eb=_0x3a11fc({'documentData':_0x3af3e3[_0x246453(0x29a)](_0x267f6e=>_0x50262d(_0x585098,_0x267f6e)),'height':this[_0x246453(0x1dc)],'shapeData':_0x311cd3['getShapeData'](),'textRect':_0x311cd3[_0x246453(0x11a)]({'left':0x0,'top':0x0,'width':this[_0x246453(0xf7)],'height':this[_0x246453(0x1dc)]}),'width':this[_0x246453(0xf7)]});if(_0x5b85eb){var _0x18ac78;this[_0x246453(0x90)](_0x5b85eb[_0x246453(0xf7)],_0x5b85eb['height']),(_0x18ac78=this[_0x246453(0x17f)]())==null||(_0x18ac78=_0x18ac78[_0x246453(0x279)]())==null||_0x18ac78['debounceRefreshControls']();}}get[_0x43dbb9(0x25d)](){const _0x4dc28a=_0x43dbb9;return this[_0x4dc28a(0x1b4)]['unitId'];}get[_0x43dbb9(0x212)](){const _0x59f6fa=_0x43dbb9;return this['_props'][_0x59f6fa(0x212)];}[_0x43dbb9(0x2bf)](_0x1a6f3b){const _0x59f64e=_0x43dbb9;if(this[_0x59f64e(0x1b4)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x391dfe,height:_0x3d75fc}=this,{width:_0x5b3329=0x0,height:_0x34cd16=0x0}=_0x1a6f3b[_0x59f64e(0x1b6)],{left:_0x452af3=0x0,top:_0x4e3e08=0x0,right:_0x27db71=0x0,bottom:_0x4f79d8=0x0}=this[_0x59f64e(0x1b4)]['srcRect'],_0x59577c=_0x452af3,_0x1c2fb3=_0x4e3e08,_0x2e94b5=_0x27db71,_0x39664e=_0x4f79d8,_0x27f803=!0x1;if(_0x5b3329!==0x0&&_0x5b3329!==_0x391dfe){let _0x1491bb=_0x452af3/_0x5b3329,_0x1e145d=_0x27db71/_0x5b3329;_0x59577c=_0x391dfe*_0x1491bb,_0x2e94b5=_0x391dfe*_0x1e145d,_0x27f803=!0x0;}if(_0x34cd16!==0x0&&_0x34cd16!==_0x3d75fc){let _0x5d3af6=_0x4e3e08/_0x34cd16,_0x40cea9=_0x4f79d8/_0x34cd16;_0x1c2fb3=_0x3d75fc*_0x5d3af6,_0x39664e=_0x3d75fc*_0x40cea9,_0x27f803=!0x0;}_0x27f803&&this[_0x59f64e(0x20f)]({'left':_0x59577c,'top':_0x1c2fb3,'right':_0x2e94b5,'bottom':_0x39664e});}['setSrcRect'](_0x5b8dd8){const _0x1d73d2=_0x43dbb9;this[_0x1d73d2(0x1b4)][_0x1d73d2(0x2e8)]=_0x5b8dd8,this['makeDirty'](!0x0);}[_0x43dbb9(0x1a2)](_0x261c58){const _0x536903=_0x43dbb9;this[_0x536903(0x1b4)][_0x536903(0x1a5)]=_0x261c58,this['makeDirty'](!0x0);}set[_0x43dbb9(0x10c)](_0x3fb161){this['_transform']=_0x3fb161;}get[_0x43dbb9(0x10c)](){const _0x29edd9=_0x43dbb9;this[_0x29edd9(0x125)]||this['_setTransForm']();let _0x1882f9=this[_0x29edd9(0x125)]['clone']();return this[_0x29edd9(0x14e)](_0x1882f9);}get['shapeModel'](){const _0x592fc8=_0x43dbb9;return this[_0x592fc8(0x1b4)][_0x592fc8(0xc0)];}get['shapeId'](){const _0x1128b1=_0x43dbb9;return this['_props'][_0x1128b1(0xfc)];}get[_0x43dbb9(0x19d)](){return _0x842655['SHAPE'];}['_draw'](_0x34ee13,_0xbce4a9,_0x440648,_0x3e6f61){const _0x141f03=_0x43dbb9;let _0x51de90=this[_0x141f03(0x1b4)][_0x141f03(0xc0)];if(!_0x51de90||!_0xbce4a9)return;let _0x5dd801=_0x440648==null?this['width']:_0x440648,_0x2409d3=_0x3e6f61==null?this['height']:_0x3e6f61,_0x308d91={'shapeType':_0x51de90[_0x141f03(0x2ad)](),'width':_0x5dd801,'height':_0x2409d3},_0x52b487={'renderMode':_0x33d52f['Path'],'oKey':this[_0x141f03(0xe8)],'image':this[_0x141f03(0x1b4)][_0x141f03(0x1a5)],'angle':this[_0x141f03(0x2e1)]};_0x51de90['updateContext'](_0x308d91),_0x34ee13['save']();let _0x5de896={'top':0x0,'left':0x0,'width':_0x5dd801,'height':_0x2409d3};_0x51de90['render'](_0x34ee13,_0x5de896,_0x52b487),_0x34ee13[_0x141f03(0x22f)]();let _0x5056b4=_0x51de90[_0x141f03(0xc1)](),_0x483950=_0x51de90[_0x141f03(0x11a)](_0x5de896),_0x2895b3=_0x51de90[_0x141f03(0xed)]();if(_0x5056b4&&_0x483950&&!_0x2895b3){_0x34ee13[_0x141f03(0x1fd)](),this[_0x141f03(0xde)]()['flipX']&&_0x34ee13[_0x141f03(0x20b)](-0x1,0x1);let _0x4bafcb=_0x5dd801/0x2,_0x2822d0=_0x2409d3/0x2;_0x34ee13[_0x141f03(0x167)](-_0x4bafcb,-_0x2822d0),_0x34ee13[_0x141f03(0xd8)](),this['_drawShapeText'](_0x34ee13,_0x5056b4,_0x483950),_0x34ee13[_0x141f03(0x22f)]();}}['getDrawingPoints'](_0x5d47e8){}['_drawShapeText'](_0x2f9156,_0x128f56,_0x481377){const _0x5079ba=_0x43dbb9;var _0x15c167;this[_0x5079ba(0x1b4)][_0x5079ba(0x206)]||(!((_0x15c167=_0x128f56[_0x5079ba(0x29c)])!=null&&_0x15c167[_0x5079ba(0xe5)])&&_0x5079ba(0x1ed)in _0x128f56&&_0x128f56[_0x5079ba(0x1ed)]===!0x1?this['_drawSimpleText'](_0x2f9156,_0x128f56,_0x481377):this[_0x5079ba(0xc4)](_0x2f9156,_0x128f56,_0x481377));}['_drawSimpleText'](_0x47de01,_0x4e878d,_0x5cfaa1){const _0x47591a=_0x43dbb9;var _0x1d8187;this[_0x47591a(0xc4)](_0x47de01,{..._0x4e878d,'text':(_0x1d8187=_0x4e878d[_0x47591a(0x199)])==null?'':_0x1d8187,'dataModel':{'doc':_0x12e116(_0x4e878d,_0x47591a(0x24e)+this[_0x47591a(0xe8)])}},_0x5cfaa1);}[_0x43dbb9(0xc4)](_0x5efc12,_0x5a884c,_0x3f6287){const _0x330a02=_0x43dbb9;_0xe06053(_0x5efc12,this[_0x330a02(0x17d)],(_0x33cbab,_0x21b403)=>{const _0x35136a=_0x330a02;this[_0x35136a(0x2b4)](_0x33cbab,_0x5a884c,_0x3f6287,_0x21b403);});}['_drawRichTextLayer'](_0x3074c3,_0x2476d5,_0x92c6ed,_0xd97716){const _0x1f90e3=_0x43dbb9;var _0x4da2d9,_0xa2abcc;let _0x1e1392=this[_0x1f90e3(0x1b4)][_0x1f90e3(0x183)];if(!_0x2476d5[_0x1f90e3(0x29c)]||!_0x1e1392)return;let _0x7cd7a2=_0x5cbbbf(_0x2476d5[_0x1f90e3(0x29c)]);if(!_0x7cd7a2)return;let _0x1e5228=_0x7cd7a2['doc'];if(!_0x1e5228)return;let _0x16fdd0=_0x50262d(_0x1e5228,_0xd97716),_0x452eee=(_0x4da2d9=_0x7cd7a2['va'])==null?_0x3d0a33[_0x1f90e3(0x116)]:_0x4da2d9,_0x204ca4=(_0xa2abcc=_0x7cd7a2['ha'])==null?_0x1bf681['LEFT']:_0xa2abcc,_0x53d39c=Sn(this[_0x1f90e3(0x1b4)]['shapeModel']['getShapeData'](),_0x2476d5,_0x16fdd0),_0x5852b0=_0x2476d5[_0x1f90e3(0xd1)],_0x5574d6=new _0x10f73c(_0x18b9c3(_0x16fdd0,{'isHorizontal':_0x5852b0!==!0x1,'textRect':_0x92c6ed,'verticalAlign':_0x452eee,'horizontalAlign':_0x204ca4,'wrapStrategy':_0x53d39c['wrapStrategy']})),_0x37ffac=new _0x36f5ae(_0x5574d6),_0x5a23e2=_0x475752[_0x1f90e3(0x9c)](_0x37ffac,_0x1e1392);_0x5a23e2[_0x1f90e3(0x264)]();let _0x10a7c1=_0x5a23e2[_0x1f90e3(0x175)]()[_0x1f90e3(0x1d1)],_0x470bf3=_0x2feb6a({'contentHeight':_0x10a7c1,'verticalAlign':_0x452eee,'viewportHeight':_0x92c6ed[_0x1f90e3(0x1dc)]});_0x5574d6['updateDocumentStyle']({'pageSize':{'width':_0x5852b0===!0x1?_0x92c6ed[_0x1f90e3(0x1dc)]:_0x92c6ed[_0x1f90e3(0xf7)],'height':_0x470bf3[_0x1f90e3(0x232)]}}),_0x5574d6['updateDocumentDataMargin']({'t':_0x470bf3[_0x1f90e3(0x85)]}),_0x5a23e2[_0x1f90e3(0x264)]();let _0x3bc687=new _0x1a519e(_0x1f90e3(0x192)+this[_0x1f90e3(0xe8)],_0x5a23e2,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1f90e3(0x15d)](!0x0)});_0x3bc687['resize'](_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x232)]),_0x3074c3[_0x1f90e3(0x1fd)](),_0x3074c3[_0x1f90e3(0xd5)](_0x92c6ed[_0x1f90e3(0x11f)],_0x92c6ed['top']),_0x53d39c[_0x1f90e3(0x2db)]&&(_0x3074c3[_0x1f90e3(0xd8)](),_0x3074c3[_0x1f90e3(0x16c)](0x0,_0x470bf3[_0x1f90e3(0xd3)],_0x92c6ed[_0x1f90e3(0xf7)],_0x470bf3[_0x1f90e3(0x21c)]),_0x3074c3[_0x1f90e3(0x2db)]()),_0x470bf3[_0x1f90e3(0x9b)]&&_0x3074c3[_0x1f90e3(0xd5)](0x0,_0x470bf3[_0x1f90e3(0x9b)]),_0x3bc687[_0x1f90e3(0x1f3)](_0x3074c3),_0x3074c3[_0x1f90e3(0x22f)](),_0x3bc687[_0x1f90e3(0x2dd)](),_0x5a23e2['dispose'](),_0x37ffac[_0x1f90e3(0x2dd)](),_0x5574d6[_0x1f90e3(0x2dd)]();}[_0x43dbb9(0x2b6)](_0xc0213a,_0x38751c,_0x1bc156=!0x1){const _0x5cd1ec=_0x43dbb9;if(!this[_0x5cd1ec(0x2cc)])return this[_0x5cd1ec(0x15d)](!0x1),this;let {width:_0x1c77f6,height:_0x383abb,left:_0x24cdb8,top:_0x548d5f}=this,_0x247496=this[_0x5cd1ec(0x272)]();if(_0x1c77f6=_0x247496[_0x5cd1ec(0xf7)],_0x383abb=_0x247496[_0x5cd1ec(0x1dc)],_0x24cdb8=_0x247496['left'],_0x548d5f=_0x247496[_0x5cd1ec(0x16e)],this['isRender'](_0x38751c)){let {top:_0x17832c,left:_0x8f72ec,bottom:_0x5ef7a4,right:_0x2e885c}=_0x38751c[_0x5cd1ec(0xc6)];if(_0x1c77f6+this[_0x5cd1ec(0x185)]+_0x24cdb8<_0x8f72ec||_0x2e885c<_0x24cdb8||_0x383abb+this[_0x5cd1ec(0x185)]+_0x548d5f<_0x17832c||_0x5ef7a4<_0x548d5f)return this;}let _0x218577=_0x24cdb8+_0x1c77f6/0x2,_0x3e5f64=_0x548d5f+_0x383abb/0x2,_0x51ad4e=this[_0x5cd1ec(0x10c)]['getMatrix']();if(this['_props']['isEditing']){let _0x113146=this[_0x5cd1ec(0xde)](),_0x3c6d0e=new _0x112a4b();_0x3c6d0e[_0x5cd1ec(0x91)]({..._0x113146}),_0x51ad4e=_0x3c6d0e['getMatrix']();}return _0xc0213a[_0x5cd1ec(0x1fd)](),this[_0x5cd1ec(0x1b4)][_0x5cd1ec(0xc0)]['isRenderLinePointsMode']===!0x0||_0xc0213a[_0x5cd1ec(0x10c)](_0x51ad4e[0x0],_0x51ad4e[0x1],_0x51ad4e[0x2],_0x51ad4e[0x3],_0x218577,_0x3e5f64),this[_0x5cd1ec(0xd0)](_0xc0213a,_0x38751c,_0x1c77f6,_0x383abb),_0xc0213a[_0x5cd1ec(0x22f)](),this[_0x5cd1ec(0x15d)](!0x1),this;}['getInverseCoord'](_0x3d42e1){const _0x470cdd=_0x43dbb9;let {left:_0x4300dd,top:_0x575b99,width:_0xb606b1,height:_0x52a059}=this[_0x470cdd(0x272)](),_0x81ff63=this[_0x470cdd(0x10c)][_0x470cdd(0x1b9)](),_0x2ef11f=_0x4300dd+_0xb606b1/0x2,_0x16f7bf=_0x575b99+_0x52a059/0x2,_0x5c647e=new _0x112a4b([_0x81ff63[0x0],_0x81ff63[0x1],_0x81ff63[0x2],_0x81ff63[0x3],_0x2ef11f,_0x16f7bf]),_0x29f1c7=this[_0x470cdd(0x1d9)]();return(this[_0x470cdd(0xa8)]&&(_0x29f1c7==null?void 0x0:_0x29f1c7[_0x470cdd(0x19d)])===_0x842655[_0x470cdd(0xf6)]?_0x29f1c7[_0x470cdd(0x8b)]['multiply'](_0x5c647e):_0x5c647e)['invert']()[_0x470cdd(0x22c)](_0x3d42e1);}[_0x43dbb9(0x102)](_0x36a92d){const _0x308236=_0x43dbb9;let {left:_0x5c6adf,top:_0x37063e,width:_0x209179,height:_0x4b4dc5}=this[_0x308236(0x272)](),_0x4171bd=_0x5c6adf+_0x209179/0x2,_0x401f2a=_0x37063e+_0x4b4dc5/0x2,_0x2804f2=this['transform'][_0x308236(0x1b9)](),_0xfda5d6=new _0x112a4b([_0x2804f2[0x0],_0x2804f2[0x1],_0x2804f2[0x2],_0x2804f2[0x3],_0x4171bd,_0x401f2a]),_0x2c8438=this['getParent'](),_0x286431=(this[_0x308236(0xa8)]&&(_0x2c8438==null?void 0x0:_0x2c8438[_0x308236(0x19d)])===_0x842655[_0x308236(0xf6)]?_0x2c8438[_0x308236(0x8b)]['multiply'](_0xfda5d6):_0xfda5d6)[_0x308236(0x23b)]()[_0x308236(0x22c)](_0x36a92d),_0x3917cd=_0x209179/0x2,_0x4a550d=_0x4b4dc5/0x2,_0x281148=this[_0x308236(0x1b4)]['shapeModel'];return _0x281148&&_0x281148[_0x308236(0xed)]()?_0x281148[_0x308236(0x29d)](_0x286431['x'],_0x286431['y'],_0x209179,_0x4b4dc5):_0x286431['x']>=-_0x3917cd-this[_0x308236(0x185)]/0x2&&_0x286431['x']<=_0x3917cd+this[_0x308236(0x185)]/0x2&&_0x286431['y']>=-_0x4a550d-this[_0x308236(0x185)]/0x2&&_0x286431['y']<=_0x4a550d+this[_0x308236(0x185)]/0x2;}[_0x43dbb9(0x2dd)](){const _0x2c6f94=_0x43dbb9;this[_0x2c6f94(0x17d)][_0x2c6f94(0x2dd)](),this[_0x2c6f94(0x1b4)][_0x2c6f94(0xc0)]=null,super[_0x2c6f94(0x2dd)]();}},wn=class extends _0x300c3f{constructor(_0x50d5ce,_0x1564b0){const _0x59cfbb=_0x43dbb9;super(_0x50d5ce,_0x1564b0),Y(this,_0x59cfbb(0x249),null),Y(this,_0x59cfbb(0x1eb),null),Y(this,_0x59cfbb(0x238),null),Y(this,_0x59cfbb(0x250),null),_0x1564b0&&this[_0x59cfbb(0x152)](_0x1564b0);}[_0x43dbb9(0x1f1)](){const _0x18621e=_0x43dbb9;return{'unitId':this[_0x18621e(0x238)],'subUnitId':this[_0x18621e(0x250)],'drawingId':this[_0x18621e(0x249)]};}[_0x43dbb9(0x152)](_0x202d4b){const _0x5b4190=_0x43dbb9;_0x202d4b[_0x5b4190(0xfc)]!==void 0x0&&(this['_shapeId']=_0x202d4b[_0x5b4190(0xfc)]),_0x202d4b[_0x5b4190(0x18a)]!==void 0x0&&(this[_0x5b4190(0x1eb)]=_0x202d4b['adjName']),_0x202d4b['unitId']!==void 0x0&&(this[_0x5b4190(0x238)]=_0x202d4b[_0x5b4190(0x25d)]),_0x202d4b[_0x5b4190(0x212)]!==void 0x0&&(this[_0x5b4190(0x250)]=_0x202d4b['subUnitId']),this[_0x5b4190(0x1c7)]({'width':_0x202d4b['width'],'height':_0x202d4b[_0x5b4190(0x1dc)]});}[_0x43dbb9(0xd0)](_0x5f54dc){const _0x4d0c43=_0x43dbb9;_0x536c54['drawWith'](_0x5f54dc,{'radius':_0x2bc8ec[_0x4d0c43(0x86)],'fill':_0x2bc8ec['adjHandleFill'],'stroke':_0x2bc8ec[_0x4d0c43(0x140)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x35d0eb,_0x29a260){return function(_0x4cce1a,_0x467a77){_0x29a260(_0x4cce1a,_0x467a77,_0x35d0eb);};}function Z(_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5){const _0x46ed12=_0x43dbb9;var _0xb94b9d=arguments[_0x46ed12(0x15f)],_0xbf3293=_0xb94b9d<0x3?_0x28b08d:_0x312ae5===null?_0x312ae5=Object[_0x46ed12(0x297)](_0x28b08d,_0x6606dd):_0x312ae5,_0x583a33;if(typeof Reflect=='object'&&typeof Reflect[_0x46ed12(0x280)]==_0x46ed12(0x1ac))_0xbf3293=Reflect[_0x46ed12(0x280)](_0x6efa4b,_0x28b08d,_0x6606dd,_0x312ae5);else{for(var _0x1c2001=_0x6efa4b[_0x46ed12(0x15f)]-0x1;_0x1c2001>=0x0;_0x1c2001--)(_0x583a33=_0x6efa4b[_0x1c2001])&&(_0xbf3293=(_0xb94b9d<0x3?_0x583a33(_0xbf3293):_0xb94b9d>0x3?_0x583a33(_0x28b08d,_0x6606dd,_0xbf3293):_0x583a33(_0x28b08d,_0x6606dd))||_0xbf3293);}return _0xb94b9d>0x3&&_0xbf3293&&Object[_0x46ed12(0xd4)](_0x28b08d,_0x6606dd,_0xbf3293),_0xbf3293;}let Q=class extends _0x4760b3{constructor(_0x55d103,_0x51ba7f,_0xed3145,_0x153aee,_0x81a4d1,_0x3ce517){const _0x36956c=_0x43dbb9;super(),this['_drawingManagerService']=_0x55d103,this[_0x36956c(0x1ff)]=_0x51ba7f,this[_0x36956c(0x1ca)]=_0xed3145,this[_0x36956c(0x12a)]=_0x153aee,this[_0x36956c(0xa7)]=_0x81a4d1,this[_0x36956c(0x221)]=_0x3ce517,Y(this,_0x36956c(0x27e),new Map()),this[_0x36956c(0x11b)](this[_0x36956c(0x221)][_0x36956c(0x8e)][_0x36956c(0x28f)](_0x38558c=>{const _0x16f57c=_0x36956c;var _0x1fab09;(_0x1fab09=this[_0x16f57c(0x27e)][_0x16f57c(0x1bd)](this[_0x16f57c(0x159)](_0x38558c[_0x16f57c(0x25d)],_0x38558c['subUnitId'],_0x38558c[_0x16f57c(0xfc)])))==null||_0x1fab09[_0x16f57c(0x200)](_0x243466=>_0x243466['setFormulaPresentation'](_0x38558c['presentation'],_0x38558c['animationEnabled']));})),this[_0x36956c(0x11b)](this[_0x36956c(0xcc)][_0x36956c(0xd6)][_0x36956c(0x28f)](_0xb98716=>{const _0x295166=_0x36956c;_0xb98716[_0x295166(0x200)](_0x3a05e9=>{const _0x58a801=_0x295166;this[_0x58a801(0x221)][_0x58a801(0x252)]({'unitId':_0x3a05e9[_0x58a801(0x25d)],'subUnitId':_0x3a05e9[_0x58a801(0x212)],'shapeId':_0x3a05e9[_0x58a801(0x1a9)]}),this[_0x58a801(0x27e)]['delete'](this[_0x58a801(0x159)](_0x3a05e9['unitId'],_0x3a05e9[_0x58a801(0x212)],_0x3a05e9['drawingId']));});}));}['renderDrawingShape'](_0x4ce5c5,_0x3b0918,_0x3235e4){const _0x2cbb1d=_0x43dbb9;let {transform:_0xe63bd1,drawingType:_0x4fc7d6,srcRect:_0x1bfa8b,prstGeom:_0x371562,groupId:_0x2c12ed,unitId:_0x43f1d5,subUnitId:_0x864554,drawingId:_0x345888,isMultiTransform:_0x5443a3,transforms:_0xcb0612,hidden:_0x31ed12,selectable:_0x256c48}=_0x4ce5c5;if(_0x4fc7d6!==_0x5d03f6['DRAWING_SHAPE']||!this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x230)]()||_0xe63bd1==null)return;let _0x31823e=this[_0x2cbb1d(0xcc)][_0x2cbb1d(0x2d3)]();_0x31823e&&_0x3b0918[_0x2cbb1d(0x129)](_0x37ad89);let _0x29de37=_0x5443a3&&_0xcb0612?_0xcb0612:[_0xe63bd1],_0x582364=[];for(let _0x4c9d3e of _0x29de37){let {left:_0x3c121a,top:_0x463343,width:_0x13112a,height:_0x5e5f59,angle:_0x5ede6b,flipX:_0x43698c,flipY:_0x5de83a,skewX:_0xd8bfa7,skewY:_0x4d9803}=_0x4c9d3e,_0x466da9=_0x29de37[_0x2cbb1d(0x253)](_0x4c9d3e),_0x47e263=_0x7f2912({'unitId':_0x43f1d5,'subUnitId':_0x864554,'drawingId':_0x345888},_0x5443a3?_0x466da9:void 0x0),_0x3bd7d5=_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263);if(_0x3bd7d5!=null){let _0x206f75={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x3bd7d5 instanceof Cn&&this['refreshFormulaPresentation'](_0x3bd7d5,_0x206f75),_0x3bd7d5[_0x2cbb1d(0x1c7)]({'left':_0x3c121a,'top':_0x463343,'width':_0x13112a,'height':_0x5e5f59,'angle':_0x5ede6b,'flipX':_0x43698c,'flipY':_0x5de83a,'skewX':_0xd8bfa7,'skewY':_0x4d9803});continue;}let _0x48ef02=this['_drawingManagerService']['getDrawingOrder'](_0x43f1d5,_0x864554),_0x3f6db4=_0x48ef02[_0x2cbb1d(0x253)](_0x345888);if(_0x3b0918[_0x2cbb1d(0x1de)](_0x47e263)||!this['_drawingManagerService'][_0x2cbb1d(0x230)]())continue;let _0x5d2210=this['_sheetsShapeService']['getShapeModel'](_0x43f1d5,_0x864554,_0x345888);if(!_0x5d2210)continue;let _0x1f249e=_0x1f7f23(_0x5d2210[_0x2cbb1d(0x2ad)]()),_0x27a77c=_0x5d2210['getShapeData']()[_0x2cbb1d(0x17a)],_0x33af18={'unitId':_0x43f1d5,'subUnitId':_0x864554,'shapeId':_0x345888};_0x27a77c&&this[_0x2cbb1d(0x221)][_0x2cbb1d(0x21e)](_0x33af18,_0x27a77c);let _0x37bf9e=new Cn(_0x47e263,{..._0x1f249e?{..._0x4c9d3e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x4c9d3e},'zIndex':_0x3f6db4===-0x1?_0x48ef02['length']-0x1:_0x3f6db4,'shapeModel':_0x5d2210,'localeService':this['_localeService'],'shapeId':_0x345888,'unitId':_0x43f1d5,'subUnitId':_0x864554,'visible':_0x31ed12!==!0x0,'evented':_0x256c48!==!0x1,'formulaPresentation':_0x27a77c?this['_shapeFormulaService'][_0x2cbb1d(0x198)](_0x33af18):void 0x0,'animateFormulaPresentation':(_0x27a77c==null?void 0x0:_0x27a77c[_0x2cbb1d(0x229)])!==!0x1});if(_0x27a77c){var _0x1ae52a;let _0x5b2d0f=this[_0x2cbb1d(0x159)](_0x43f1d5,_0x864554,_0x345888),_0x46f6ec=(_0x1ae52a=this[_0x2cbb1d(0x27e)][_0x2cbb1d(0x1bd)](_0x5b2d0f))==null?new Set():_0x1ae52a;_0x46f6ec[_0x2cbb1d(0x10b)](_0x37bf9e),this[_0x2cbb1d(0x27e)][_0x2cbb1d(0xd9)](_0x5b2d0f,_0x46f6ec);}_0x3b0918[_0x2cbb1d(0xe9)](_0x37bf9e,_0x11332b),_0x31823e&&_0x3b0918[_0x2cbb1d(0x2bb)](_0x37bf9e),_0x2c12ed&&_0x435a76({'drawingId':_0x2c12ed,'unitId':_0x43f1d5,'subUnitId':_0x864554},_0x37bf9e,_0x3b0918,this[_0x2cbb1d(0xcc)]),_0x371562!=null&&_0x37bf9e['setPrstGeom'](_0x371562),_0x1bfa8b!=null&&_0x37bf9e[_0x2cbb1d(0x20f)](_0x1bfa8b);let _0x574063=this[_0x2cbb1d(0xaf)](_0x37bf9e,_0x5d2210[_0x2cbb1d(0x282)]());if(_0x574063){var _0x3c0255;_0x3235e4==null||(_0x3c0255=_0x3235e4['resourceCollector'])==null||_0x3c0255[_0x2cbb1d(0x10b)](_0x574063);}_0x582364[_0x2cbb1d(0x241)](_0x37bf9e);}return _0x582364;}[_0x43dbb9(0x159)](_0x83f3d6,_0x139342,_0x40ef3f){return _0x83f3d6+'\x00'+_0x139342+'\x00'+_0x40ef3f;}[_0x43dbb9(0xac)](_0x789d4e,_0x35d0e2){const _0x43ba6e=_0x43dbb9;let _0x4abe64=this[_0x43ba6e(0x1ff)][_0x43ba6e(0x251)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2['subUnitId'],_0x35d0e2[_0x43ba6e(0xfc)]),_0x496639=_0x4abe64==null?void 0x0:_0x4abe64['getShapeData']()[_0x43ba6e(0x17a)],_0x402aed=this[_0x43ba6e(0x159)](_0x35d0e2[_0x43ba6e(0x25d)],_0x35d0e2[_0x43ba6e(0x212)],_0x35d0e2[_0x43ba6e(0xfc)]);if(_0x496639){var _0x322f8e;this[_0x43ba6e(0x221)]['register'](_0x35d0e2,_0x496639);let _0xc0bef5=(_0x322f8e=this[_0x43ba6e(0x27e)][_0x43ba6e(0x1bd)](_0x402aed))==null?new Set():_0x322f8e;_0xc0bef5[_0x43ba6e(0x10b)](_0x789d4e),this[_0x43ba6e(0x27e)]['set'](_0x402aed,_0xc0bef5);}else{var _0x2f1b39;this[_0x43ba6e(0x221)]['unregister'](_0x35d0e2),(_0x2f1b39=this[_0x43ba6e(0x27e)]['get'](_0x402aed))==null||_0x2f1b39[_0x43ba6e(0x2b1)](_0x789d4e);}_0x789d4e['setFormulaPresentation'](_0x496639?this[_0x43ba6e(0x221)][_0x43ba6e(0x198)](_0x35d0e2):void 0x0,(_0x496639==null?void 0x0:_0x496639[_0x43ba6e(0x229)])!==!0x1);}[_0x43dbb9(0x204)](_0x474d62){const _0x13b43e=_0x43dbb9;let _0x161fbe=_0x474d62['shapeModel'][_0x13b43e(0x282)](),_0x2ad637=_0x161fbe[_0x13b43e(0x1ee)];if(!_0x2ad637||_0x2ad637['fillType']!==_0x27d461['PictureFill']||!_0x2ad637[_0x13b43e(0x2e2)]){_0x474d62[_0x13b43e(0x1a2)](void 0x0);return;}this[_0x13b43e(0xaf)](_0x474d62,_0x161fbe);}[_0x43dbb9(0xaf)](_0x2dec07,_0x183dbc){const _0x49b914=_0x43dbb9;var _0x40df7b;let _0x3eab9a=_0x183dbc['fill'];if(!_0x3eab9a||_0x3eab9a[_0x49b914(0x242)]!==_0x27d461['PictureFill']||!_0x3eab9a[_0x49b914(0x2e2)])return;let _0x5c212c=_0x3eab9a[_0x49b914(0x2e2)],_0x22e368=(_0x40df7b=_0x3eab9a['fillImageSourceType'])==null?_0x283528[_0x49b914(0x277)]:_0x40df7b,_0x46d619=this[_0x49b914(0x12a)][_0x49b914(0x1b7)](_0x5c212c,_0x22e368);if(_0x46d619){_0x2dec07[_0x49b914(0x1a2)](_0x46d619);return;}return this['_loadAndSetImage'](_0x2dec07,_0x5c212c,_0x22e368);}async[_0x43dbb9(0x13b)](_0x3af8da,_0x4b503b,_0x9e9e80){const _0x48a7fa=_0x43dbb9;let _0x5c922f;try{if(_0x9e9e80===_0x283528['UUID'])_0x5c922f=await this[_0x48a7fa(0x12a)][_0x48a7fa(0x13a)](_0x4b503b);else{if(_0x9e9e80===_0x283528['URL'])try{_0x5c922f=await this[_0x48a7fa(0xa7)][_0x48a7fa(0x13a)](_0x4b503b);}catch{_0x5c922f=_0x4b503b;}else _0x5c922f=_0x4b503b;}}catch(_0x45633a){console[_0x48a7fa(0x2be)](_0x48a7fa(0x156),_0x45633a);return;}await new Promise(_0x1f3695=>{const _0x2cd3c3=_0x48a7fa;let _0x4caeab=new window['Image']();_0x4caeab['onload']=()=>{const _0x4158ba=_0x449a;this['_imageIoService'][_0x4158ba(0x93)](_0x4b503b,_0x9e9e80,_0x4caeab),_0x3af8da[_0x4158ba(0x1a2)](_0x4caeab),_0x1f3695();},_0x4caeab[_0x2cd3c3(0x2a6)]=()=>{const _0x747182=_0x2cd3c3;console[_0x747182(0x2be)](_0x747182(0x2a7),_0x4b503b),_0x1f3695();},_0x4caeab['src']=_0x5c922f;});}};Q=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0xa3717a)),X(0x3,_0x5dd91b),X(0x4,_0x488e09),X(0x5,_0x450bf3(_0xe57842))],Q);let Tn=class extends _0x4760b3{constructor(_0x476c97,_0x3a3d0e,_0x2761bb,_0x483416,_0x28ea5,_0x1b9e75){const _0x56bbd0=_0x43dbb9;super(),this[_0x56bbd0(0xcc)]=_0x476c97,this['_sheetsShapeService']=_0x3a3d0e,this[_0x56bbd0(0x87)]=_0x2761bb,this[_0x56bbd0(0x2d9)]=_0x483416,this['_univerInstanceService']=_0x28ea5,this[_0x56bbd0(0x285)]=_0x1b9e75,Y(this,_0x56bbd0(0x14f),null),Y(this,_0x56bbd0(0x238),null),Y(this,'_subUnitId',null),Y(this,_0x56bbd0(0x20c),void 0x0),Y(this,_0x56bbd0(0x176),[]),Y(this,_0x56bbd0(0x260),0x0),Y(this,'_baseShapeTop',0x0),Y(this,_0x56bbd0(0x2b2),0x0),Y(this,'_baseShapeHeight',0x0),Y(this,_0x56bbd0(0x258),!0x1),Y(this,_0x56bbd0(0x257),void 0x0),Y(this,_0x56bbd0(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x56bbd0(0x157),!0x1),this[_0x56bbd0(0x254)](),this[_0x56bbd0(0x235)]();}[_0x43dbb9(0x1ec)](_0x20f947,_0x3a311b,_0x1c2948){const _0x54841e=_0x43dbb9;let _0x4a3a14=this[_0x54841e(0x1ff)][_0x54841e(0x251)](_0x20f947,_0x3a311b,_0x1c2948);if(_0x4a3a14)return _0x4a3a14[_0x54841e(0x275)]();}[_0x43dbb9(0x2e3)](){const _0x54b137=_0x43dbb9;this[_0x54b137(0x1e5)]();}['refreshAdjustControls'](){const _0x188c33=_0x43dbb9;this[_0x188c33(0x246)](!0x0);}[_0x43dbb9(0x18b)](_0x8842cf){this['_isShouldShowDrawingShapeAdjust']=_0x8842cf;}['_getShapeAdjustInfosById'](_0xf99ed0,_0x40b1e0,_0x1320b2,_0x1bae36){const _0x2a12d5=_0x43dbb9;let _0x34a455=this[_0x2a12d5(0x1ff)]['getShapeModel'](_0xf99ed0,_0x40b1e0,_0x1320b2);if(_0x34a455)return _0x34a455[_0x2a12d5(0x2ae)](_0x1bae36);}[_0x43dbb9(0x21b)](_0x1da428=!0x1){const _0x303d30=_0x43dbb9;if(this[_0x303d30(0x238)]===null||this[_0x303d30(0x250)]===null||this['_activeShapeId']===null)return;let _0x439efd=this[_0x303d30(0x87)]['getRenderById'](this[_0x303d30(0x238)]);if(!_0x439efd||!_0x439efd[_0x303d30(0x2ea)](_0x392ff0)[_0x303d30(0xa4)]())return;let {scene:_0x4d76be}=_0x439efd,_0x45cc11={'unitId':this[_0x303d30(0x238)],'subUnitId':this[_0x303d30(0x250)],'drawingId':this[_0x303d30(0x14f)]},_0x13788b=this[_0x303d30(0xcc)][_0x303d30(0x171)](_0x45cc11),{transform:_0x5104fe}=_0x13788b;if(!_0x5104fe||_0x13788b[_0x303d30(0x2cb)]!==_0x5d03f6[_0x303d30(0x23a)])return;let {left:_0xc88240,top:_0x33867d,width:_0xfd214f,height:_0x27d4bb,flipX:_0x12463b,flipY:_0x5456ea,angle:_0x599c85=0x0}=_0x5104fe;if(_0xc88240===void 0x0||_0x33867d===void 0x0)return;_0x1da428&&(this[_0x303d30(0x20c)]=this[_0x303d30(0x1ec)](this[_0x303d30(0x238)],this['_subUnitId'],this[_0x303d30(0x14f)]));let _0x418380=this[_0x303d30(0x20c)];for(let _0x376a77=0x0;_0x376a77<_0x418380[_0x303d30(0x15f)];_0x376a77++){let _0x2e808f=_0x418380[_0x376a77],_0x5b29d6=_0x2e808f['x'],_0x200390=_0x2e808f['y'];if(_0x12463b&&(_0x5b29d6=(_0xfd214f||0x0)-_0x5b29d6),_0x5456ea&&(_0x200390=(_0x27d4bb||0x0)-_0x200390),_0x599c85!==0x0){let _0x386428=(_0xfd214f||0x0)/0x2,_0x1aa337=(_0x27d4bb||0x0)/0x2,_0x5249fd=_0x599c85*Math['PI']/0xb4,_0x1294f7=Math['cos'](_0x5249fd),_0x1ab3da=Math[_0x303d30(0x1e6)](_0x5249fd),_0x7856c8=_0x5b29d6-_0x386428,_0x5e1e83=_0x200390-_0x1aa337;_0x5b29d6=_0x386428+(_0x7856c8*_0x1294f7-_0x5e1e83*_0x1ab3da),_0x200390=_0x1aa337+(_0x7856c8*_0x1ab3da+_0x5e1e83*_0x1294f7);}let _0x3ebbb5={'x':_0x5b29d6,'y':_0x200390,'adjName':_0x2e808f[_0x303d30(0x18a)]};this[_0x303d30(0xcb)](_0x4d76be,_0x3ebbb5,_0x3ebbb5[_0x303d30(0x18a)],_0xc88240,_0x33867d,this['_unitId'],this[_0x303d30(0x250)]);}}['_updateShapeAdjustControls'](_0x246aa4=!0x1){const _0x590979=_0x43dbb9;_0x246aa4&&(this[_0x590979(0x1e5)](),this[_0x590979(0x21b)](_0x246aa4));}['_addShapeAdjustControl'](_0x154565,_0x4cd779,_0x1fd94f,_0x5387d3,_0x3e6523,_0x4312ea,_0x8646d0){const _0x50c1c8=_0x43dbb9;if(!this[_0x50c1c8(0x14f)])return;let _0x315b8d=_0x154565[_0x50c1c8(0x1de)]('shape-adjust-point-'+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f);if(_0x315b8d){_0x315b8d[_0x50c1c8(0x1c7)]({'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)]});return;}let _0x1bba71={'left':_0x4cd779['x']+_0x5387d3-_0x2bc8ec[_0x50c1c8(0x86)],'top':_0x4cd779['y']+_0x3e6523-_0x2bc8ec[_0x50c1c8(0x86)],'adjName':_0x1fd94f,'shapeId':this[_0x50c1c8(0x14f)],'unitId':_0x4312ea,'subUnitId':_0x8646d0,'width':_0x2bc8ec[_0x50c1c8(0x86)]+0x8,'height':_0x2bc8ec['adjHandleSize']+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0},_0x35f048=new wn(_0x50c1c8(0xe3)+this[_0x50c1c8(0x14f)]+'-'+_0x1fd94f,_0x1bba71);this[_0x50c1c8(0x176)][_0x50c1c8(0x241)](_0x35f048),this[_0x50c1c8(0x2e0)](_0x35f048,_0x154565,_0x1fd94f),_0x154565[_0x50c1c8(0xe9)](_0x35f048,_0x11332b+0x1);}[_0x43dbb9(0x1e5)](){const _0x1b00d2=_0x43dbb9;this['_shapes'][_0x1b00d2(0x15f)]!==0x0&&(this[_0x1b00d2(0x176)][_0x1b00d2(0x200)](_0xed133b=>{const _0x48b8b4=_0x1b00d2;_0xed133b[_0x48b8b4(0x2dd)]();}),this['_shapes']=[]);}[_0x43dbb9(0x21a)](){this['_createShapeAdjustControls']();}[_0x43dbb9(0x15c)](_0x1ff72f,_0x2c5bbf){const _0xd664f0=_0x43dbb9;var _0x2fa970;let _0x29d2ba={'x':0x0,'y':0x0};if(!_0x1ff72f||!_0x2c5bbf)return _0x29d2ba;let _0x2b9dcb=this['_renderManagerService'][_0xd664f0(0x19c)](_0x1ff72f);if(!_0x2b9dcb||!_0x2b9dcb[_0xd664f0(0x2ea)](_0x392ff0)[_0xd664f0(0x188)](_0x2c5bbf))return _0x29d2ba;let _0x58fc10=_0x2b9dcb[_0xd664f0(0x2ea)](_0xdbee74),_0xc13026=_0x58fc10==null?void 0x0:_0x58fc10['getCurrentScrollState']();if(!_0xc13026)return _0x29d2ba;let _0x3b6e3d=(_0x2fa970=this[_0xd664f0(0xcd)]['getUnit'](_0x1ff72f))==null?void 0x0:_0x2fa970['getSheetBySheetId'](_0x2c5bbf);if(!_0x3b6e3d)return _0x29d2ba;let _0x2b0c7b=_0x1b930d(_0xc13026[_0xd664f0(0x296)],_0xc13026[_0xd664f0(0x286)],_0x2b9dcb[_0xd664f0(0x128)],_0x3b6e3d);return _0x2b0c7b?{'x':_0x2b0c7b['viewportScrollX'],'y':_0x2b0c7b[_0xd664f0(0x23f)]}:_0x29d2ba;}[_0x43dbb9(0x155)](_0x38c0cf,_0x227ffe){const _0x220b28=_0x43dbb9;var _0x85068b,_0x426761;let _0x474fe7=(_0x85068b=this['_univerInstanceService'][_0x220b28(0x150)](_0x38c0cf))==null?void 0x0:_0x85068b[_0x220b28(0x148)](_0x227ffe);return(_0x426761=_0x474fe7==null?void 0x0:_0x474fe7['getZoomRatio']())==null?0x1:_0x426761;}[_0x43dbb9(0x2e0)](_0x573e60,_0x59f196,_0x5b846b){const _0x527a9c=_0x43dbb9;this['disposeWithMe'](_0x43b296(_0x573e60[_0x527a9c(0x12f)]['subscribeEvent']((_0x2952d5,_0x5a5460)=>{const _0x124779=_0x527a9c;var _0x3819ca,_0x2e51b3,_0x322ba5,_0x2eb792;let _0x10b4cd=_0x573e60[_0x124779(0x1f1)]();this['_activeAdjustInfo']=this[_0x124779(0x14c)](_0x10b4cd[_0x124779(0x25d)],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)],_0x5b846b),this[_0x124779(0x22b)]=this[_0x124779(0x1ff)][_0x124779(0x251)](_0x10b4cd['unitId'],_0x10b4cd[_0x124779(0x212)],_0x10b4cd[_0x124779(0x1a9)]);let _0x168e6d=this[_0x124779(0xcc)][_0x124779(0x171)]({'unitId':this[_0x124779(0x238)],'subUnitId':this[_0x124779(0x250)],'drawingId':this[_0x124779(0x14f)]}),{transform:_0x184873}=_0x168e6d;if(_0x184873){let {left:_0x121ab6,top:_0x4476e9,width:_0x4cacac,height:_0x297f07}=_0x184873;this[_0x124779(0x260)]=_0x121ab6||0x0,this['_baseShapeTop']=_0x4476e9||0x0,this['_baseShapeWidth']=_0x4cacac||0x0,this[_0x124779(0x8f)]=_0x297f07||0x0;}let _0x447162=!!((_0x3819ca=_0x168e6d[_0x124779(0x10c)])!=null&&_0x3819ca[_0x124779(0x2d5)]),_0x495c71=!!((_0x2e51b3=_0x168e6d[_0x124779(0x10c)])!=null&&_0x2e51b3['flipY']),_0x306d84=((_0x322ba5=_0x168e6d[_0x124779(0x10c)])==null?void 0x0:_0x322ba5[_0x124779(0x2e1)])||0x0;this[_0x124779(0x258)]=!0x0,_0x59f196['disableObjectsEvent']();let _0x1be4dc=(_0x2eb792=this[_0x124779(0x22b)])==null?void 0x0:_0x2eb792[_0x124779(0x29f)](_0x5b846b),_0x1ceb85={[_0x5b846b]:_0x1be4dc};this[_0x124779(0x1fa)]=_0x59f196[_0x124779(0x24b)][_0x124779(0x17c)]((_0x11c49c,_0x1ea7b7)=>{const _0x688629=_0x124779;if(!this[_0x688629(0x258)])return;let {offsetX:_0x2e77d6,offsetY:_0x277a53}=_0x11c49c,_0x2e8262=this[_0x688629(0x257)];if(this['_activeShapeModel']&&_0x2e8262){_0x59f196[_0x688629(0x1b8)](),_0x59f196['setCursor'](_0x110f16['CROSSHAIR']);let _0x221ffb={'left':0x0,'top':0x0,'width':this[_0x688629(0x2b2)],'height':this[_0x688629(0x8f)]},_0xb0b7aa=this['_getScrollInfo'](this[_0x688629(0x238)],this['_subUnitId']),_0x7d2cc8=this[_0x688629(0x155)](this[_0x688629(0x238)],this['_subUnitId']),_0x412d9d=_0x2e77d6/_0x7d2cc8+_0xb0b7aa['x']-this[_0x688629(0x260)],_0x5ac00c=_0x277a53/_0x7d2cc8+_0xb0b7aa['y']-this[_0x688629(0x12d)];if(_0x306d84!==0x0){let _0x1f3979=this[_0x688629(0x2b2)]/0x2,_0x197793=this['_baseShapeHeight']/0x2,_0x589779=_0x306d84*Math['PI']/0xb4,_0x2f5772=Math[_0x688629(0x109)](_0x589779),_0xa8f382=Math[_0x688629(0x1e6)](_0x589779),_0x4225ef=_0x412d9d-_0x1f3979,_0x381e55=_0x5ac00c-_0x197793;_0x412d9d=_0x1f3979+(_0x4225ef*_0x2f5772+_0x381e55*_0xa8f382),_0x5ac00c=_0x197793+(-_0x4225ef*_0xa8f382+_0x381e55*_0x2f5772);}_0x447162&&(_0x412d9d=this['_baseShapeWidth']-_0x412d9d),_0x495c71&&(_0x5ac00c=this['_baseShapeHeight']-_0x5ac00c);let _0x7fbb53={'x':_0x412d9d,'y':_0x5ac00c},_0x529988=this[_0x688629(0x22b)]['calcAdjValue'](_0x221ffb,_0x7fbb53,_0x2e8262,_0x447162,_0x495c71),_0x45e10d=_0x2e8262['gdRefX']||_0x2e8262[_0x688629(0x247)]||_0x2e8262[_0x688629(0x2de)]||_0x2e8262[_0x688629(0x2e5)];if(_0x45e10d===void 0x0)return;this[_0x688629(0x22b)][_0x688629(0x12b)](_0x45e10d,_0x529988);let _0x26e18a=this['_drawingManagerService'][_0x688629(0x171)]({'unitId':_0x10b4cd[_0x688629(0x25d)],'subUnitId':_0x10b4cd['subUnitId'],'drawingId':_0x10b4cd[_0x688629(0x1a9)]});_0x26e18a&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x26e18a,_0x59f196),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x10b4cd[_0x688629(0x25d)],_0x10b4cd[_0x688629(0x212)],_0x10b4cd[_0x688629(0x1a9)]),this['_updateAdjustControlPositions']());}_0x1ea7b7['stopPropagation']();}),this[_0x124779(0x276)]=_0x59f196[_0x124779(0x1bf)][_0x124779(0x17c)]((_0x556af9,_0x4f3c18)=>{const _0x29b855=_0x124779;this[_0x29b855(0x1fa)][_0x29b855(0x1dd)](),this[_0x29b855(0x276)][_0x29b855(0x1dd)](),_0x59f196[_0x29b855(0x15a)]();let _0x5c56d7=this[_0x29b855(0x257)];if(_0x5c56d7){let _0x34a66e=_0x10b4cd[_0x29b855(0x25d)],_0x42b29f=_0x10b4cd[_0x29b855(0x212)],_0x4cf5de=_0x10b4cd[_0x29b855(0x1a9)],_0x503f62=_0x5c56d7[_0x29b855(0xc3)]||_0x5c56d7[_0x29b855(0x247)]||_0x5c56d7[_0x29b855(0x2de)]||_0x5c56d7[_0x29b855(0x2e5)];if(_0x503f62!==void 0x0){var _0x4a32fc;let _0xc1748b=(_0x4a32fc=this[_0x29b855(0x22b)])==null?void 0x0:_0x4a32fc[_0x29b855(0x29f)](_0x503f62);_0xc1748b!==void 0x0&&_n(this['_commandService'],_0x34a66e,_0x42b29f,_0x4cf5de,{'oldShapeData':{'adjustValues':_0x1ceb85}},{'adjustValues':{[_0x503f62]:_0xc1748b}});}}this[_0x29b855(0x257)]=void 0x0,this[_0x29b855(0x22b)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4f3c18[_0x29b855(0x26a)](),_0x59f196[_0x29b855(0x25c)]();}),_0x5a5460[_0x124779(0x26a)]();})));}[_0x43dbb9(0x235)](){const _0x2a89e1=_0x43dbb9;let _0xebc779=this[_0x2a89e1(0xcd)][_0x2a89e1(0x240)](_0x2a1b28[_0x2a89e1(0x1e0)]);this[_0x2a89e1(0x11b)](_0xebc779[_0x2a89e1(0x24d)](_0x46afa7(_0x3ea8b4=>_0x3ea8b4?_0x3ea8b4[_0x2a89e1(0x117)][_0x2a89e1(0x24d)](_0x46afa7(_0x2f68c3=>{const _0x3bb24a=_0x2a89e1;if(!_0x2f68c3)return _0x3149ab;let _0xa8b632=_0x3ea8b4[_0x3bb24a(0xb8)](),_0x1ef009=this[_0x3bb24a(0x87)][_0x3bb24a(0x19c)](_0xa8b632),_0x5c2497=_0x1ef009==null?void 0x0:_0x1ef009[_0x3bb24a(0x128)];return _0x5c2497?_0x236700(_0x5c2497):_0x3149ab;})):_0x3149ab))[_0x2a89e1(0x28f)](_0x5358ea=>{const _0x1e41fa=_0x2a89e1;let _0x256c62=_0x5358ea[_0x1e41fa(0x84)]();this['disposeWithMe'](_0x5358ea[_0x1e41fa(0x24b)][_0x1e41fa(0x17c)](()=>{const _0x429953=_0x1e41fa;this[_0x429953(0x157)];})),this['disposeWithMe'](_0x256c62[_0x1e41fa(0x89)][_0x1e41fa(0x28f)](_0x163ff0=>{const _0xdf6042=_0x1e41fa;let {objects:_0x19d7c8}=_0x163ff0;this[_0xdf6042(0x21b)](),_0x19d7c8!==null&&_0x19d7c8[_0xdf6042(0xb4)]===0x1&&_0x19d7c8['values']()[_0xdf6042(0x166)]()['value']instanceof Cn&&this['setShouldShowAdjust'](!0x0);})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x18c)][_0x1e41fa(0x28f)](()=>{const _0x45e339=_0x1e41fa;this[_0x45e339(0x157)]&&this[_0x45e339(0x1e5)]();})),this['disposeWithMe'](_0x5358ea['onPointerUp$'][_0x1e41fa(0x17c)](()=>{const _0x1b52f4=_0x1e41fa;this[_0x1b52f4(0x157)]&&(this[_0x1b52f4(0x18b)](!0x1),this[_0x1b52f4(0x21b)]());})),this[_0x1e41fa(0x11b)](_0x256c62[_0x1e41fa(0x174)][_0x1e41fa(0x28f)](()=>{const _0x2e8de4=_0x1e41fa;this[_0x2e8de4(0x238)]&&this[_0x2e8de4(0x250)]&&this[_0x2e8de4(0x14f)]&&this[_0x2e8de4(0xcc)][_0x2e8de4(0x171)]({'unitId':this[_0x2e8de4(0x238)],'subUnitId':this[_0x2e8de4(0x250)],'drawingId':this[_0x2e8de4(0x14f)]})&&(this[_0x2e8de4(0x20c)]=this[_0x2e8de4(0x1ec)](this['_unitId'],this[_0x2e8de4(0x250)],this[_0x2e8de4(0x14f)]),this[_0x2e8de4(0x21a)]());}));}));}[_0x43dbb9(0x254)](){const _0x41c5fb=_0x43dbb9;this[_0x41c5fb(0x11b)](this['_drawingManagerService'][_0x41c5fb(0x231)][_0x41c5fb(0x28f)](_0x3a14dc=>{const _0x1d5c4a=_0x41c5fb;if(_0x3a14dc[_0x1d5c4a(0x15f)]===0x1){let _0xcd9f50=_0x3a14dc[0x0];if(_0xcd9f50[_0x1d5c4a(0x2cb)]===_0x5d03f6[_0x1d5c4a(0x23a)]){this[_0x1d5c4a(0x14f)]=_0xcd9f50[_0x1d5c4a(0x1a9)];let {unitId:_0x32e396,subUnitId:_0xd0c0a3}=_0xcd9f50;this[_0x1d5c4a(0x20c)]=this[_0x1d5c4a(0x1ec)](_0x32e396,_0xd0c0a3,this[_0x1d5c4a(0x14f)]),this[_0x1d5c4a(0x238)]=_0x32e396,this['_subUnitId']=_0xd0c0a3,this[_0x1d5c4a(0x1e5)](),this[_0x1d5c4a(0x21b)]();}else this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this[_0x1d5c4a(0x1e5)]();}(_0x3a14dc[_0x1d5c4a(0x15f)]>0x1||_0x3a14dc[_0x1d5c4a(0x15f)]===0x0)&&(this[_0x1d5c4a(0x14f)]=null,this[_0x1d5c4a(0x20c)]=void 0x0,this[_0x1d5c4a(0x238)]=null,this[_0x1d5c4a(0x250)]=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x41c5fb(0xcc)]['update$'][_0x41c5fb(0x28f)](_0x216fca=>{const _0x28f7e6=_0x41c5fb;if(_0x216fca[_0x28f7e6(0x15f)]===0x1){var _0x528f9e;let _0x574d67=_0x216fca[0x0];((_0x528f9e=this[_0x28f7e6(0xcc)]['getDrawingByParam'](_0x574d67))==null?void 0x0:_0x528f9e[_0x28f7e6(0x2cb)])===_0x5d03f6['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x41c5fb(0x11b)](this[_0x41c5fb(0xcc)][_0x41c5fb(0xd6)][_0x41c5fb(0x28f)](_0x4de7ee=>{const _0x1f30ff=_0x41c5fb;for(let _0x41529d of _0x4de7ee)this[_0x1f30ff(0x14f)]===_0x41529d[_0x1f30ff(0x1a9)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1f30ff(0x238)]=null,this[_0x1f30ff(0x250)]=null,this['_clearShapeAdjustControls']());}));}};Tn=Z([X(0x0,_0x324617),X(0x1,_0x450bf3(_0x26a217)),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x450bf3(Q)),X(0x4,_0x7113c7),X(0x5,_0x4d9cac)],Tn);const En={'id':'drawing.operation.set-drawing-active','type':_0x8e0e3c[_0x43dbb9(0x269)],'handler':(_0x1ae211,_0x280be8)=>{const _0xf4969c=_0x43dbb9;let _0x2e042c=_0x1ae211[_0xf4969c(0x1bd)](_0x324617),_0x3bf523=_0x1ae211[_0xf4969c(0x1bd)](_0x263af6),_0x37f0a0=_0x1ae211[_0xf4969c(0x1bd)](Tn);if(_0x280be8==null)return!0x0;if(_0x280be8[_0xf4969c(0x15f)]>0x0){var _0x2eabd4;let _0x3c02fb=(_0x2eabd4=_0x3bf523['getRenderById'](_0x280be8[0x0][_0xf4969c(0x25d)]))==null?void 0x0:_0x2eabd4[_0xf4969c(0x128)];if(_0x3c02fb){let {unitId:_0x5469a1,subUnitId:_0x52798c,drawingId:_0x2e7d93}=_0x280be8[0x0],_0xcf1c9e=_0x7f2912({'unitId':_0x5469a1,'subUnitId':_0x52798c,'drawingId':_0x2e7d93},void 0x0),_0x19aff9=_0x3c02fb[_0xf4969c(0x1de)](_0xcf1c9e);if(_0x19aff9){var _0x4aec92;(_0x4aec92=_0x3bf523[_0xf4969c(0x19c)](_0x280be8[0x0][_0xf4969c(0x25d)]))==null||(_0x4aec92=_0x4aec92['scene']['getTransformer']())==null||_0x4aec92[_0xf4969c(0x28d)](_0x19aff9);}}_0x2e042c[_0xf4969c(0x141)](_0x280be8),_0x37f0a0['setShouldShowAdjust'](!0x1);}return!0x0;}},Dn={'type':_0x8e0e3c['COMMAND'],'id':_0x43dbb9(0x10a),'handler':async(_0x194427,_0x55cc22)=>{const _0x4b49f3=_0x43dbb9;let _0x311906=_0x59589e(_0x194427[_0x4b49f3(0x1bd)](_0x7113c7));if(!_0x311906)return!0x1;let _0x20f1bf=_0x194427[_0x4b49f3(0x1bd)](_0x412710)[_0x4b49f3(0x187)]();if(!_0x20f1bf)return!0x1;let _0x2249a7=_0x194427[_0x4b49f3(0x1bd)](_0x4d9cac),{unitId:_0x17a009,subUnitId:_0x56100a}=_0x311906,{value:_0x1c9c02,enhanceParams:_0x26a5aa}=_0x55cc22,{range:_0x3a0c3d}=_0x20f1bf,_0x2d4147={'unitId':_0x17a009,'subUnitId':_0x56100a,'shapeType':_0x1c9c02,'range':_0x3a0c3d,'shapeId':_0x2bfd17()};if(_0x26a5aa){let _0x59c765=_0x1f7f23(_0x1c9c02),_0x465420=_0x1c9c02===_0x250922[_0x4b49f3(0x1f5)];_0x59c765&&(_0x26a5aa[_0x4b49f3(0x28b)]||_0x26a5aa['endArrow'])&&(_0x2d4147[_0x4b49f3(0x106)]={'ln':{'startArrow':_0x26a5aa[_0x4b49f3(0x28b)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0x1da)]}:void 0x0,'endArrow':_0x26a5aa[_0x4b49f3(0x1a3)]?{'type':_0x454053[_0x4b49f3(0x94)],'size':_0x421194[_0x4b49f3(0xf0)]}:void 0x0}}),_0x465420&&(_0x26a5aa[_0x4b49f3(0xc5)]||_0x26a5aa[_0x4b49f3(0x115)])&&(_0x2d4147[_0x4b49f3(0x106)]=_0x25f061({'fill':{'fillType':_0x27d461['SolidFill'],'color':_0x4b49f3(0x1aa)},'isHorizontal':!!_0x26a5aa[_0x4b49f3(0xc5)],'stroke':{'lineStrokeType':_0x517d31[_0x4b49f3(0x1fb)],'width':0x1,'color':_0x4b49f3(0x110)}}));}let _0x2806f1=_0x2249a7['syncExecuteCommand'](_0x28064d['id'],_0x2d4147);return setTimeout(()=>{const _0x4584de=_0x4b49f3;_0x2249a7[_0x4584de(0x2d0)](En['id'],[{'unitId':_0x17a009,'subUnitId':_0x56100a,'drawingId':_0x2d4147[_0x4584de(0xfc)]}]);},0xc8),_0x2806f1;}},On=_0x43dbb9(0x2e7),kn=_0x43dbb9(0x24c),An=_0x43dbb9(0x227),jn=_0x1a4a4b(_0x43dbb9(0x97)),Mn='sheet.shape.text.float-menu',Nn={'id':'sheet.operation.open-shape-object-list-panel','type':_0x8e0e3c[_0x43dbb9(0x82)],'handler':(_0x56dda7,_0x20d3e0)=>{const _0x467ab3=_0x43dbb9;let _0x54f413=_0x56dda7[_0x467ab3(0x1bd)](_0x10b5ac),_0x1596ce=_0x56dda7[_0x467ab3(0x1bd)](_0xa3717a),_0x1395b5=_0x56dda7[_0x467ab3(0x1bd)](_0x7113c7),_0x3b1b1d=_0x56dda7[_0x467ab3(0x1bd)](_0x4d9cac);return _0x59589e(_0x1395b5)?(_0x20d3e0==null?void 0x0:_0x20d3e0[_0x467ab3(0x26b)])===_0x467ab3(0x25f)?(_0x54f413['close'](kn),!0x0):(_0x54f413[_0x467ab3(0x291)]({'id':kn,'header':{'title':_0x1596ce['t'](_0x467ab3(0xab))},'children':{'label':kn},'onClose':()=>{const _0x268e8a=_0x467ab3;_0x3b1b1d[_0x268e8a(0x193)](_0xd68623['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Pn=class extends _0x4760b3{constructor(_0x595d76,_0x3c460c){const _0x155721=_0x43dbb9;super(),this[_0x155721(0x1b1)]=_0x595d76,this['_drawingManagerService']=_0x3c460c,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x155721(0x27c)](!0x0),this[_0x155721(0x11b)]({'dispose':()=>this[_0x155721(0x1b1)][_0x155721(0x27c)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x3e4efc=_0x43dbb9;let _0x314042=this['_clipService'],_0x17ace9=new Map(),_0x3daa60=_0x314042['registerClipDelegate']((_0x45792d,_0x48fc15,_0x318b90,_0x2db91e,_0x4ae177)=>{const _0x2ebfb4=_0x449a;let _0x40d915=_0x48fc15;if(_0x40d915===_0x250922['None']||_0x48fc15===_0x2ebfb4(0x1c3))return!0x1;try{let _0x2d0aa6=_0x17ace9[_0x2ebfb4(0x1bd)](_0x48fc15);return _0x2d0aa6||(_0x2d0aa6=new _0xf0c0c(_0x40d915,_0x2ebfb4(0x261)+_0x48fc15),_0x17ace9[_0x2ebfb4(0xd9)](_0x48fc15,_0x2d0aa6)),_0x4ae177&&_0x2d0aa6['setShapeData']({'adjustValues':_0x4ae177},!0x0),_0x2d0aa6[_0x2ebfb4(0x104)]({'width':_0x318b90,'height':_0x2db91e}),_0x2d0aa6[_0x2ebfb4(0x2c2)](_0x45792d,{'left':0x0,'top':0x0,'width':_0x318b90,'height':_0x2db91e});}catch{return!0x1;}});this['disposeWithMe'](_0x3daa60),this['disposeWithMe']({'dispose':()=>_0x17ace9[_0x3e4efc(0x2a5)]()});}[_0x43dbb9(0x124)](_0x54fb46,_0x3296f2,_0x11e57b,_0x197668,_0x2efd94){const _0x4767b6=_0x43dbb9;let _0x5a76d9=this['_drawingManagerService']['getDrawingData'](_0x54fb46,_0x3296f2);if(!_0x5a76d9[_0x11e57b])return;let _0x3ae8b4={..._0x5a76d9[_0x11e57b],'prstGeom':_0x197668,'adjustValues':_0x2efd94};this[_0x4767b6(0xcc)]['featurePluginUpdateNotification']([_0x3ae8b4]);}};Pn=Z([X(0x0,_0x450bf3(_0xe0e719)),X(0x1,_0x450bf3(_0x324617))],Pn);const Fn=_0x43dbb9(0x281),In=_0x43dbb9(0x220);function Ln({onShapeClick:_0xc27fa8,excludeGroups:_0xe54ac2}){const _0x28c5a2=_0x43dbb9;return _0x2b677f(_0x43451f,{'excludeGroups':_0xe54ac2,'onShapeClick':_0xc27fa8,'scrollContainer':_0x28c5a2(0xf4)});}function Rn(){const _0x5923d8=_0x43dbb9;let _0x1f42a8=_0x597c42(_0x324617),_0x2e3d48=_0x597c42(Pn);return _0x2b677f(_0x106929,{'buttonLabel':_0x5923d8(0xfe),'excludeGroups':[_0x2cca23['Line']],'onShapeClick':_0x23c122=>{const _0x3faa4b=_0x5923d8;let _0x5496a7=_0x1f42a8['getFocusDrawings']()['find'](_0x28e4c0=>_0x28e4c0[_0x3faa4b(0x2cb)]===_0x5d03f6[_0x3faa4b(0x20a)]);if(!_0x5496a7)return;let {unitId:_0x49b6ba,subUnitId:_0x231248,drawingId:_0x5d59c5}=_0x5496a7;_0x2e3d48['clipByShape'](_0x49b6ba,_0x231248,_0x5d59c5,_0x23c122['type']);}});}function zn(){const _0xbea791=_0x43dbb9;let _0x7c519c=_0x597c42(_0x1953f8),_0x5c5936=_0x597c42(_0x324617),_0x569cac=_0x597c42(_0x7113c7),_0x1c420c=_0x5c5936[_0xbea791(0x27f)]()[0x0],_0x386510=_0x1c420c?_0x569cac[_0xbea791(0x172)](_0x1c420c[_0xbea791(0x25d)]):void 0x0,_0x23da56=_0x386510===_0x2a1b28[_0xbea791(0x26f)]?_0xbea791(0x18e):_0x386510===_0x2a1b28[_0xbea791(0x1e0)]?In:void 0x0,_0x226ab4=_0x23da56?_0x7c519c[_0xbea791(0x1bd)](_0x23da56):void 0x0;return _0x226ab4?_0x2b677f(_0x226ab4,{}):null;}function Bn(){let _0x51d206=_0x597c42(_0x4d9cac);return _0x2b677f(Ln,{'onShapeClick':_0x4fc891=>{const _0x409914=_0x449a;_0x51d206[_0x409914(0x2d0)](Dn['id'],{'value':_0x4fc891[_0x409914(0x178)],'enhanceParams':{'endArrow':_0x4fc891[_0x409914(0x1a3)],'startArrow':_0x4fc891[_0x409914(0x28b)],'horizontal':_0x4fc891[_0x409914(0xc5)],'vertical':_0x4fc891[_0x409914(0x115)]}});}});}function Vn(_0x277f99){const _0x22e7cb=_0x43dbb9;let _0xc42db7=_0x277f99['get'](_0x7113c7);return{'id':Dn['id'],'type':_0x142b74[_0x22e7cb(0x26d)],'selections':[{'label':{'name':Fn,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Dn['id']}}}],'icon':_0x22e7cb(0x181),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x4f53b0(_0xc42db7,!0x1,()=>new _0x573c9d(_0x3dd579=>{const _0x491bfd=_0x22e7cb;_0x3dd579[_0x491bfd(0x166)](!0x1);})),'hidden$':_0x227618(_0x277f99,_0x2a1b28[_0x22e7cb(0x1e0)]),'disabled$':_0x3b91cb(_0x277f99)};}function Hn(_0x5c8858){const _0x5ad8d1=_0x43dbb9;let _0x293653=_0x5c8858['get'](_0x7113c7);return{'id':Nn['id'],'type':_0x142b74[_0x5ad8d1(0xf5)],'icon':_0x5ad8d1(0x134),'title':_0x5ad8d1(0x205),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x4f53b0(_0x293653,!0x1,()=>new _0x573c9d(_0x2d620c=>{const _0x370a93=_0x5ad8d1;_0x2d620c[_0x370a93(0x166)](!0x1);})),'hidden$':_0x227618(_0x5c8858,_0x2a1b28[_0x5ad8d1(0x1e0)]),'disabled$':_0x3b91cb(_0x5c8858)};}const Un={[_0x24939b[_0x43dbb9(0xec)]]:{[Dn['id']]:{'order':0x4,'menuItemFactory':Vn}},[_0x24939b['OTHERS']]:{[Nn['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Hn}}};var Wn=_0x43dbb9(0xfa),Gn=_0x43dbb9(0xf1);const Kn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0x145),'handler'(){return!0x0;}},qn={'type':_0x8e0e3c[_0x43dbb9(0x269)],'id':_0x43dbb9(0xfd),'handler'(){return!0x0;}},Jn={};function Yn(_0x3b9c3d){const _0x41be41=_0x43dbb9;return _0x3b9c3d[_0x41be41(0x2c6)]()||void 0x0;}function Xn(_0x4cf919){const _0x5e43e0=_0x43dbb9;switch(_0x4cf919['drawingType']){case _0x5d03f6[_0x5e43e0(0x20a)]:return _0x5e43e0(0x1a5);case _0x5d03f6[_0x5e43e0(0x8d)]:return'chart';case _0x5d03f6[_0x5e43e0(0xda)]:return'table';case _0x5d03f6[_0x5e43e0(0x1bc)]:return _0x5e43e0(0x131);case _0x5d03f6[_0x5e43e0(0x23e)]:return _0x5e43e0(0x1fe);case _0x5d03f6['DRAWING_GROUP']:return'group';case _0x5d03f6[_0x5e43e0(0x83)]:return'unit';case _0x5d03f6['DRAWING_DOM']:return _0x5e43e0(0x1c1);case _0x5d03f6[_0x5e43e0(0x23a)]:return'shape';default:return'object';}}function Zn(_0xfd5afd,_0xcc88cb,_0x1fa735){var _0x56c78b;return((_0x56c78b=_0xfd5afd['name'])==null?void 0x0:_0x56c78b['trim']())||_0x4a9bd6(_0x1fa735,Xn(_0xfd5afd))+'\x20'+(_0xcc88cb+0x1);}function Qn(){const _0x3264d5=_0x43dbb9;var _0x368122,_0x8a8a4a,_0x30a222,_0x21cd2b;let _0x1f729b=_0x597c42(_0xa3717a),_0x186399=_0x597c42(_0x4d9cac),_0x77d78=_0x597c42(_0x7113c7),_0x164823=_0x597c42(_0x57e4c3),_0x159c35=_0x597c42(_0x324617),_0x206d62=_0x597c42(_0x263af6),[,_0x44ccf5]=_0x97793a(_0x2d9be3=>_0x2d9be3+0x1,0x0),_0x3cf7a6=_0x77d78[_0x3264d5(0x165)](_0x2a1b28['UNIVER_SHEET']),_0xa2bcce=(_0x368122=_0x3cf7a6==null?void 0x0:_0x3cf7a6[_0x3264d5(0xb8)]())==null?'':_0x368122,_0x2972b5=(_0x8a8a4a=_0x3cf7a6==null||(_0x30a222=_0x3cf7a6[_0x3264d5(0x144)]())==null?void 0x0:_0x30a222[_0x3264d5(0xa3)]())==null?'':_0x8a8a4a,_0x28d297=_0x31d745(()=>_0x159c35[_0x3264d5(0x231)],_0x159c35[_0x3264d5(0x27f)](),!0x1,[_0x159c35]);_0x15fc40(()=>{const _0xe383bd=_0x3264d5;let _0x953e53=_0x186399[_0xe383bd(0x1f7)](()=>_0x44ccf5());return()=>_0x953e53[_0xe383bd(0x2dd)]();},[_0x186399]);let _0x1de9f3=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x295)](_0xa2bcce,_0x2972b5):{},_0x1360ee=_0xa2bcce&&_0x2972b5?_0x164823[_0x3264d5(0x1a0)](_0xa2bcce,_0x2972b5):[],_0x48ffdf=_0x293422(()=>_0x11da8e(_0x1f729b),[_0x1f729b]),_0x4cdead=_0x293422(()=>{const _0x3851d=_0x3264d5;let _0x24203c=_0x1360ee['map'](_0x2f5d99=>_0x1de9f3[_0x2f5d99])[_0x3851d(0xb6)](_0x255b23=>!!_0x255b23)['reverse'](),_0x3ef791=_0x24203c[_0x3851d(0x2a8)]((_0x57ad18,_0x339373)=>(_0x57ad18[_0x450da7(_0x339373[_0x3851d(0x2cb)])]+=0x1,_0x57ad18),{'canvas':0x0,'floating':0x0}),_0x47aa98={'canvas':0x0,'floating':0x0};return _0x24203c[_0x3851d(0x29a)]((_0x28aff5,_0x58e9e5)=>{const _0xe20625=_0x3851d;let _0x522053=_0x450da7(_0x28aff5[_0xe20625(0x2cb)]),_0xe35e22=_0x522053===_0x34974e,_0x141d7a=_0x47aa98[_0x522053]++;return{'id':_0x28aff5['drawingId'],'name':Zn(_0x28aff5,_0x58e9e5,_0x1f729b),'description':_0x28aff5[_0xe20625(0x197)],'visible':_0x28aff5['hidden']!==!0x0,'selectable':_0x28aff5[_0xe20625(0x207)]!==!0x1,'sectionId':_0x522053,'sectionTitle':_0xe35e22?_0x48ffdf[_0xe20625(0x11c)]:_0x48ffdf[_0xe20625(0x135)],'capabilities':_0xe35e22?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xe35e22&&_0x141d7a>0x0,'canMoveBackward':!_0xe35e22&&_0x141d7a<_0x3ef791[_0xe20625(0xa6)]-0x1,'canReorder':!_0xe35e22};});},[_0x1de9f3,_0x1360ee,_0x48ffdf['sectionCanvas'],_0x48ffdf['sectionFloating'],_0x1f729b]),_0xd4f05d=_0x293422(()=>(_0x28d297==null?[]:_0x28d297)[_0x3264d5(0xb6)](_0x233cda=>_0x233cda['unitId']===_0xa2bcce&&_0x233cda[_0x3264d5(0x212)]===_0x2972b5)[_0x3264d5(0x29a)](_0xd3880e=>_0xd3880e[_0x3264d5(0x1a9)]),[_0x28d297,_0x2972b5,_0xa2bcce]),_0x30a1bc=(_0x21cd2b=_0xd4f05d[_0xd4f05d[_0x3264d5(0x15f)]-0x1])==null?null:_0x21cd2b,_0x4db5ee=_0x277b9d=>{const _0x231827=_0x3264d5;var _0x2a3590;return(_0x2a3590=_0x164823[_0x231827(0x171)]({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x277b9d}))==null?null:_0x2a3590;},_0x58bbd6=_0x5b6ae9=>{!_0xa2bcce||!_0x5b6ae9['length']||_0x186399['executeCommand'](_0x1fd507['id'],{'unitId':_0xa2bcce,'drawings':_0x5b6ae9});},_0x4dbe62=(_0x5c9dad,_0x195a2e)=>{_0x4db5ee(_0x5c9dad)&&_0x58bbd6([{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5c9dad,..._0x195a2e}]);},_0x403880=(_0x1a6093,_0x16d66e)=>{const _0x1a1827=_0x3264d5;if(!_0xa2bcce||!_0x2972b5)return;let _0x17b273=_0x16d66e?_0xd4f05d[_0x1a1827(0x1b0)](_0x1a6093)?_0xd4f05d['filter'](_0xfba0b3=>_0xfba0b3!==_0x1a6093):[..._0xd4f05d,_0x1a6093]:[_0x1a6093];_0x186399[_0x1a1827(0x193)](_0xd68623['id'],_0x17b273['map'](_0xc442dd=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0xc442dd})));let _0x5053ab=_0x17b273[_0x17b273[_0x1a1827(0x15f)]-0x1];_0x5053ab?_0x4df6a5(_0x206d62,{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x5053ab}):_0xbdee17(_0x206d62,_0xa2bcce);},_0x409d1d=(_0x5264d5,_0x3d74f0)=>{const _0x5817e8=_0x3264d5;_0x58bbd6(_0x5264d5['map'](_0x2e6a03=>_0x4db5ee(_0x2e6a03))[_0x5817e8(0xb6)](_0x473b67=>!!_0x473b67)[_0x5817e8(0xb6)](_0x2e892c=>_0x2e892c[_0x5817e8(0x237)]!==!0x0!==_0x3d74f0)[_0x5817e8(0x29a)](_0x2e8678=>({'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingId':_0x2e8678['drawingId'],'hidden':!_0x3d74f0})));},_0x499beb=_0x159c04=>{const _0x4a7fe7=_0x3264d5;let _0x4c496d=_0x4db5ee(_0x159c04);_0x4c496d&&_0x4dbe62(_0x159c04,{'selectable':_0x4c496d[_0x4a7fe7(0x207)]===!0x1?void 0x0:!0x1});},_0xb435c9=(_0x437298,_0x281235)=>{const _0x234951=_0x3264d5;var _0x2f16b9,_0x1d22a2;let _0x297a55=Yn(_0x281235);((_0x2f16b9=(_0x1d22a2=_0x4db5ee(_0x437298))==null?void 0x0:_0x1d22a2[_0x234951(0x1c4)])==null?void 0x0:_0x2f16b9)!==_0x297a55&&_0x4dbe62(_0x437298,{'name':_0x297a55});},_0x122734=(_0x459130,_0x186aeb)=>{const _0x3f8691=_0x3264d5;var _0x326430,_0x3f249b;let _0x1a9add=Yn(_0x186aeb);((_0x326430=(_0x3f249b=_0x4db5ee(_0x459130))==null?void 0x0:_0x3f249b[_0x3f8691(0x197)])==null?void 0x0:_0x326430)!==_0x1a9add&&_0x4dbe62(_0x459130,{'description':_0x1a9add});},_0x3fd0a5=(_0x474b69,_0x4c15b3)=>{!_0xa2bcce||!_0x2972b5||_0x186399['executeCommand'](_0x390f9f['id'],{'unitId':_0xa2bcce,'subUnitId':_0x2972b5,'drawingIds':[_0x474b69],'arrangeType':_0x4c15b3});};return!_0xa2bcce||!_0x2972b5?_0x2b677f(_0x3264d5(0x223),{'className':_0x3264d5(0x211),'children':_0x48ffdf[_0x3264d5(0x1bb)]}):_0x2b677f(_0x313482,{'items':_0x4cdead,'selectedIds':_0xd4f05d,'focusedId':_0x30a1bc,'labels':_0x48ffdf,'onSelect':_0x403880,'onSetVisible':_0x409d1d,'onCommitName':_0xb435c9,'onCommitDescription':_0x122734,'onMoveForward':_0x12149c=>_0x3fd0a5(_0x12149c,_0x202737[_0x3264d5(0xdf)]),'onMoveBackward':_0x5084c2=>_0x3fd0a5(_0x5084c2,_0x202737['backward']),'onToggleSelectable':_0x499beb});}let $n=class{constructor(_0x33260a){this['_renderManagerService']=_0x33260a;}[_0x43dbb9(0x1e9)](_0x4aaab1,_0x3b5fa0){const _0x331a9c=_0x43dbb9;let _0x3cdedc=this[_0x331a9c(0x87)][_0x331a9c(0x19c)](_0x4aaab1[_0x331a9c(0x25d)]),_0xa3862d=_0x3cdedc==null?void 0x0:_0x3cdedc['scene'];if(!_0xa3862d)return;let _0x656370=_0x7f2912(_0x4aaab1),_0x314db4=_0xa3862d['getObjectIncludeInGroup'](_0x656370);_0x314db4==null||_0x314db4['setFillImage'](_0x3b5fa0);}};$n=Z([X(0x0,_0x263af6)],$n);function _0x449a(_0x375ae1,_0x5ceeea){_0x375ae1=_0x375ae1-0x82;const _0x1d5daa=_0x1d5d();let _0x449ae4=_0x1d5daa[_0x375ae1];return _0x449ae4;}function er(){const _0x14e8d2=_0x43dbb9;let _0xd8d6d2=_0x597c42(_0x324617),_0x2e2b5f=_0x31d745(()=>_0xd8d6d2[_0x14e8d2(0x231)],_0xd8d6d2[_0x14e8d2(0x27f)](),!0x1,[_0xd8d6d2]);return _0x2e2b5f[_0x14e8d2(0x15f)]===0x0?null:_0x2b677f('div',{'children':_0x27f2a4(_0x14e8d2(0x223),{'className':_0x14e8d2(0xd7),'children':[_0x2b677f(_0xd5003,{'drawings':_0x2e2b5f,'hasCropper':!0x1}),_0x2b677f(_0x1fbaec,{'drawings':_0x2e2b5f})]})});}function tr(_0x4a4486){let {unitId:_0x3daae7,subUnitId:_0xd493eb,shapeId:_0x3ddc6f}=_0x4a4486,_0x4eca3b=_0x597c42(_0x4d9cac),_0x3a1900=_0x597c42($n);return _0x2b677f(_0x30898f,{..._0x4a4486,'positionEditor':_0x2b677f(er,{}),'onUpdateShapeData':(_0x3c2142,_0x2a9ff5)=>{_n(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x3c2142,_0x2a9ff5);},'onUpdateLineShapeData':(_0x5a5f8e,_0x25cc88)=>{vn(_0x4eca3b,_0x3daae7,_0xd493eb,_0x3ddc6f,_0x5a5f8e,_0x25cc88);},'onUpdateShapeFillImage':_0xc4652d=>{const _0xfae5c9=_0x449a;_0x3a1900[_0xfae5c9(0x1e9)]({'unitId':_0x3daae7,'subUnitId':_0xd493eb,'drawingId':_0x3ddc6f},_0xc4652d);}});}function nr(_0xdb3d5f){const _0x5846de=_0x43dbb9;let _0x59f4d1=_0xdb3d5f[_0x5846de(0x1ce)][_0x5846de(0x1be)];return _0x59f4d1?_0x2b677f(rr,{..._0x59f4d1}):null;}function rr(_0x24c783){const _0x156b75=_0x43dbb9;var _0x430f3e,_0x505c2b;let _0x1a14d2=_0x597c42(_0x4d9cac),_0x4f5cc8=_0x597c42(_0x26a217),{unitId:_0x4feab7,subUnitId:_0x22cf67,drawingId:_0x522b38,drawingType:_0x453101,shapeType:_0x1cafc0}=_0x24c783,[_0x2c6782,_0x9182d7]=_0x5a0562(_0x24c783['shapeData']),_0x5eb587=_0x293422(()=>_0x32374d(_0x2c6782),[_0x2c6782]),_0x19658d=_0x293422(()=>_0x4d64d0(_0x2c6782),[_0x2c6782]);_0x15fc40(()=>{const _0x248e1d=_0x449a;let _0x3139a4=_0x1a14d2[_0x248e1d(0x1f7)](_0x3ba9f2=>{const _0x5622a3=_0x248e1d;if(_0x3ba9f2['id']!==_0x19b81c['id'])return;let _0x65f0ba=_0x4f5cc8[_0x5622a3(0xeb)](_0x4feab7,_0x22cf67,_0x522b38);_0x65f0ba&&_0x9182d7(_0x65f0ba);});return()=>_0x3139a4[_0x248e1d(0x2dd)]();},[_0x1a14d2,_0x522b38,_0x4f5cc8,_0x22cf67,_0x4feab7]);let _0x257412=_0x4dca13=>{_0x9182d7(_0x43234f=>({..._0x43234f,..._0x4dca13}));},_0x427e76=_0x3e9b15=>{const _0x11ba60=_0x449a;let _0x4fda54=_0x299119(_0x2c6782,_0x3e9b15);_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'shapeText':_0x2c6782[_0x11ba60(0x1cf)]}},_0x4fda54),_0x257412(_0x4fda54);},_0x1dcd06=_0x1d16dd({'unitId':_0x4feab7,'subUnitId':_0x22cf67,'shapeId':_0x522b38,'shapeData':_0x2c6782,'onUpdateBinding':_0x128bde=>{const _0x31f808=_0x449a;let _0xdc2d9={'formulaBinding':_0x128bde};_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,{'oldShapeData':{'formulaBinding':_0x2c6782[_0x31f808(0x17a)]}},_0xdc2d9),_0x257412(_0xdc2d9);}});return _0x27f2a4(_0xf1e5d2,{'children':[_0x2b677f(_0xf7955b,{'shapeData':_0x2c6782,'shapeType':_0x1cafc0,'textStyle':{'ff':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x8a)],'fs':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x1c5)],'cl':{'rgb':_0x2bc8ec[_0x156b75(0x1cf)][_0x156b75(0x222)]},..._0x5eb587},'textModel':_0x19658d?{'ha':(_0x430f3e=_0x19658d['ha'])==null?_0x1bf681['LEFT']:_0x430f3e,'va':(_0x505c2b=_0x19658d['va'])==null?_0x3d0a33[_0x156b75(0x116)]:_0x505c2b}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bc8ec[_0x156b75(0x1ee)],'defaultGradientEndColor':_0x2bc8ec[_0x156b75(0xb9)],'defaultStrokeColor':_0x2bc8ec[_0x156b75(0x294)],'extensionGroups':_0x1dcd06[_0x156b75(0x13f)],'onUpdateShapeData':(_0x4cfd09,_0x5b10d4)=>{_n(_0x1a14d2,_0x4feab7,_0x22cf67,_0x522b38,_0x4cfd09,_0x5b10d4),_0x5b10d4&&_0x257412(_0x5b10d4);},'onUpdateText':_0x427e76,'onOpenPanel':()=>{_0x1a14d2['executeCommand'](qn['id'],{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38});},'onDelete':()=>{_0x1a14d2['executeCommand'](_0x10723d['id'],{'unitId':_0x4feab7,'drawings':[{'unitId':_0x4feab7,'subUnitId':_0x22cf67,'drawingId':_0x522b38,'drawingType':_0x453101}]});}}),_0x1dcd06[_0x156b75(0x12e)]]});}var ir=class extends _0x4760b3{constructor(..._0x43665a){const _0x3fd954=_0x43dbb9;super(..._0x43665a),Y(this,_0x3fd954(0x1ae),new _0x502f7b(null)),Y(this,_0x3fd954(0x17b),this['_editingParams$'][_0x3fd954(0x10e)]()),Y(this,_0x3fd954(0x138),new _0x502f7b(!0x1)),Y(this,'onSavingEditorData$',this[_0x3fd954(0x138)][_0x3fd954(0x10e)]());}[_0x43dbb9(0x2dd)](){const _0x397bb4=_0x43dbb9;this[_0x397bb4(0x1ae)]['next'](null),this['_editingParams$'][_0x397bb4(0x151)](),this[_0x397bb4(0x138)][_0x397bb4(0x166)](!0x1),this[_0x397bb4(0x138)][_0x397bb4(0x151)](),super[_0x397bb4(0x2dd)]();}['setEditing'](_0x34fe7f){const _0x41568a=_0x43dbb9;this['_editingParams$'][_0x41568a(0x166)](_0x34fe7f),_0x34fe7f==null&&this[_0x41568a(0x138)][_0x41568a(0x166)](!0x1);}[_0x43dbb9(0xe2)](_0x2d9900){const _0x479c88=_0x43dbb9;this['_onSavingEditorData$'][_0x479c88(0x166)](_0x2d9900);}[_0x43dbb9(0x1f9)](){const _0x5b35bc=_0x43dbb9;return this[_0x5b35bc(0x1ae)][_0x5b35bc(0x170)]();}[_0x43dbb9(0x182)](_0x5760e3){const _0x188bbd=_0x43dbb9;this['getEditing']()&&(this[_0x188bbd(0xe2)](!0x0),requestAnimationFrame(()=>{const _0x3a1216=_0x188bbd;this[_0x3a1216(0xc7)](null);}));}['cancelEditing'](){const _0x2fd8c3=_0x43dbb9;this[_0x2fd8c3(0x1f9)]()&&this[_0x2fd8c3(0xc7)](null);}};const ar=_0x3adf0a(()=>{const _0x39c086=_0x43dbb9;let _0x24814a=_0x597c42(ir),_0x39d8ce=_0x597c42(_0x26a217),_0x555180=_0x597c42(_0x324617),_0x18ebe5=_0x597c42(_0x4d9cac),_0x5c5061=_0x597c42(_0x263af6);return _0x2b677f(_0x1ef440,{'adapter':_0x293422(()=>({'getShapeModel':(_0x323d56,_0x55d689,_0x168b6e)=>_0x39d8ce[_0x39c086(0x251)](_0x323d56,_0x55d689,_0x168b6e),'getShapeData':(_0x2a42ce,_0x1ed7be,_0x181fe9)=>_0x39d8ce[_0x39c086(0xeb)](_0x2a42ce,_0x1ed7be,_0x181fe9),'getDrawingTransform':(_0x3d5b46,_0x1ec96e,_0x3f2737)=>{const _0xf33ee7=_0x39c086;let _0x50cb45=_0x555180['getDrawingByParam']({'unitId':_0x3d5b46,'subUnitId':_0x1ec96e,'drawingId':_0x3f2737});return _0x50cb45==null?void 0x0:_0x50cb45[_0xf33ee7(0x10c)];},'updateShapeText':({unitId:_0x3ff824,subUnitId:_0xdfe53c,shapeId:_0x5cd977,shapeText:_0x28c205,oldShapeText:_0x48bba0})=>{const _0x3d3000=_0x39c086;_0x18ebe5[_0x3d3000(0x2d0)](gn['id'],{'unitId':_0x3ff824,'subUnitId':_0xdfe53c,'shapeId':_0x5cd977,'shapeData':{'shapeText':_0x28c205},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x48bba0}}});},'updateHostSize':({unitId:_0x1ea1b3,subUnitId:_0x10ca5d,shapeId:_0x538887,width:_0x4801d0,height:_0x122cc8})=>{const _0x3471bf=_0x39c086;var _0x341e09,_0x16d517,_0x338e19;let _0x40b0bb=_0x555180[_0x3471bf(0x171)]({'unitId':_0x1ea1b3,'subUnitId':_0x10ca5d,'drawingId':_0x538887}),_0x2834f8=_0x40b0bb==null?void 0x0:_0x40b0bb['transform'];if(!_0x40b0bb||!_0x2834f8)return;let _0x1d89c5={..._0x2834f8,'width':_0x4801d0,'height':_0x122cc8},_0x3080ef=(_0x341e09=_0x5c5061[_0x3471bf(0x19c)](_0x1ea1b3))==null||(_0x341e09=_0x341e09[_0x3471bf(0x2ea)](_0x392ff0)[_0x3471bf(0x255)](_0x10ca5d))==null?void 0x0:_0x341e09['skeleton'],_0x2a2762=_0x3080ef?(_0x16d517=_0x556f36(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x195)]:_0x16d517:_0x40b0bb[_0x3471bf(0x195)],_0x42f231=_0x3080ef?(_0x338e19=_0x38f007(_0x1d89c5,_0x3080ef))==null?_0x40b0bb[_0x3471bf(0x268)]:_0x338e19:_0x40b0bb[_0x3471bf(0x268)];_0x18ebe5[_0x3471bf(0x2d0)](_0x1fd507['id'],{'unitId':_0x1ea1b3,'drawings':[{..._0x40b0bb,'transform':_0x1d89c5,'sheetTransform':_0x2a2762,'axisAlignSheetTransform':_0x42f231}]});},'allowHostSizeShrink':({unitId:_0x43a7bf,subUnitId:_0x5c9d20,shapeId:_0x525970})=>_0x7ce441(_0x39d8ce[_0x39c086(0xeb)](_0x43a7bf,_0x5c9d20,_0x525970))}),[_0x18ebe5,_0x555180,_0x5c5061,_0x39d8ce]),'editingService':_0x24814a,'editorUnitId':jn,'positionOptions':_0x293422(()=>({'viewportKeys':{'main':_0x4ce309[_0x39c086(0x27d)],'leftTop':_0x4ce309[_0x39c086(0x1db)],'top':_0x4ce309[_0x39c086(0x1e8)],'left':_0x4ce309[_0x39c086(0x1f6)]},'getSkeleton':(_0x28263b,_0x320743)=>{const _0x599119=_0x39c086;var _0x2e2dc1,_0x36f2d3;return(_0x2e2dc1=(_0x36f2d3=_0x28263b[_0x599119(0x2ea)](_0x392ff0)[_0x599119(0x255)](_0x320743['subUnitId']))==null?void 0x0:_0x36f2d3[_0x599119(0x287)])==null?null:_0x2e2dc1;}}),[])});});let or=class extends _0x4760b3{constructor(_0x56f394,_0x1f6017){const _0x4a8ccd=_0x43dbb9;super(),this[_0x4a8ccd(0x103)]=_0x56f394,this[_0x4a8ccd(0x239)]=_0x1f6017,this[_0x4a8ccd(0x28c)](),this[_0x4a8ccd(0x265)]();}[_0x43dbb9(0x28c)](){const _0x2c2a87=_0x43dbb9;this[_0x2c2a87(0x239)][_0x2c2a87(0x2b0)](_0x2c2a87(0x134))||this[_0x2c2a87(0x11b)](this[_0x2c2a87(0x239)][_0x2c2a87(0x21e)]({'ObjectLayersIcon':_0x347bf2}));}['_registerComponents'](){const _0xb119ee=_0x43dbb9;this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](On,tr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](kn,Qn)),this['disposeWithMe'](this['_componentManager'][_0xb119ee(0x21e)](Fn,Bn)),this['disposeWithMe'](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](In,Rn)),this['_componentManager']['get'](_0x1f5a6b)||this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](_0x1f5a6b,zn)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](An,nr)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)][_0xb119ee(0x21e)](Mn,_0x312819)),this[_0xb119ee(0x11b)](this[_0xb119ee(0x103)]['register'](_0xb119ee(0x143),ar));}};or=Z([X(0x0,_0x450bf3(_0x1953f8)),X(0x1,_0x450bf3(_0x200e2a))],or);let sr=class extends _0x4760b3{constructor(_0x3f6628,_0xa9b068,_0x40f357,_0x9ab23e,_0x16257b){const _0x29ee3c=_0x43dbb9;super(),this[_0x29ee3c(0xfb)]=_0x3f6628,this[_0x29ee3c(0xcc)]=_0xa9b068,this[_0x29ee3c(0x87)]=_0x40f357,this['_univerInstanceService']=_0x9ab23e,this['_imageShapeClipController']=_0x16257b,Y(this,_0x29ee3c(0x169),null),Y(this,_0x29ee3c(0x238),null),Y(this,_0x29ee3c(0x250),null),Y(this,_0x29ee3c(0x2cd),void 0x0),Y(this,_0x29ee3c(0x176),[]),Y(this,_0x29ee3c(0x283),0x0),Y(this,_0x29ee3c(0x92),0x0),Y(this,_0x29ee3c(0x127),0x0),Y(this,_0x29ee3c(0x233),0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x29ee3c(0x22b),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x29ee3c(0x292),!0x1),this[_0x29ee3c(0x2d8)](),this[_0x29ee3c(0x1ad)]();}[_0x43dbb9(0x2e3)](){const _0x82c8d2=_0x43dbb9;this[_0x82c8d2(0x186)]();}[_0x43dbb9(0x14d)](){const _0x11763d=_0x43dbb9;this[_0x11763d(0x186)](),this[_0x11763d(0x1c8)](!0x0);}[_0x43dbb9(0x15e)](_0x2275ba,_0x272634,_0x223dcf,_0x4611ed){const _0x312609=_0x43dbb9;let _0x323004=_0x2275ba;if(!(_0x323004===_0x250922[_0x312609(0x1cd)]||_0x2275ba===_0x312609(0x1c3)))try{let _0x48c5de=new _0xf0c0c(_0x323004,_0x312609(0x259)+_0x2275ba);return _0x4611ed&&_0x48c5de[_0x312609(0x1a4)]({'adjustValues':_0x4611ed},!0x0),_0x48c5de[_0x312609(0x104)]({'width':_0x272634,'height':_0x223dcf}),_0x48c5de;}catch{return;}}[_0x43dbb9(0x1a6)](_0x56326f,_0x5d2afc,_0x5a0771){const _0x4a2c67=_0x43dbb9;let _0xad96f={'unitId':_0x56326f,'subUnitId':_0x5d2afc,'drawingId':_0x5a0771},_0x382d2b=this[_0x4a2c67(0xcc)][_0x4a2c67(0x171)](_0xad96f);if(!(!_0x382d2b||_0x382d2b['drawingType']!==_0x5d03f6[_0x4a2c67(0x20a)]))return _0x382d2b;}[_0x43dbb9(0x190)](_0x2a657d,_0x509f76,_0x3a3299){const _0x1807ef=_0x43dbb9;let _0x1f3076=this[_0x1807ef(0x87)][_0x1807ef(0x19c)](_0x2a657d);if(!_0x1f3076)return;let {scene:_0x5759b4}=_0x1f3076,_0x532d26=_0x7f2912({'unitId':_0x2a657d,'subUnitId':_0x509f76,'drawingId':_0x3a3299}),_0x36520c=_0x5759b4[_0x1807ef(0xad)](_0x532d26);if(_0x36520c instanceof _0x3100f0){let _0x4cdadf=_0x36520c[_0x1807ef(0x132)];if(_0x4cdadf)return{'prstGeom':_0x4cdadf,'adjustValues':_0x36520c[_0x1807ef(0x224)]};}}[_0x43dbb9(0x1c8)](_0x1dc7ff=!0x1){const _0x201aa2=_0x43dbb9;if(!this[_0x201aa2(0x238)]||!this[_0x201aa2(0x250)]||!this[_0x201aa2(0x169)])return;let _0x3b9702=this[_0x201aa2(0x87)][_0x201aa2(0x19c)](this[_0x201aa2(0x238)]);if(!_0x3b9702||!_0x3b9702['with'](_0x392ff0)['getCurrentSkeleton']())return;let {scene:_0x4a7af7}=_0x3b9702,_0x8faf29=this[_0x201aa2(0x1a6)](this[_0x201aa2(0x238)],this[_0x201aa2(0x250)],this['_activeImageId']);if(!_0x8faf29)return;let {transform:_0x10dd7c}=_0x8faf29;if(!_0x10dd7c)return;let {left:_0x2cb364,top:_0xbe4c4a,width:_0x46eb08,height:_0x427252,flipX:_0x362db1,flipY:_0x573adc,angle:_0xc01ef8=0x0}=_0x10dd7c;if(_0x2cb364===void 0x0||_0xbe4c4a===void 0x0)return;let _0x4d8198=this[_0x201aa2(0x190)](this['_unitId'],this[_0x201aa2(0x250)],this[_0x201aa2(0x169)]);if(!_0x4d8198)return;if(_0x1dc7ff){let _0x46f1e5=this[_0x201aa2(0x15e)](_0x4d8198[_0x201aa2(0x132)],_0x46eb08||0x0,_0x427252||0x0,_0x4d8198[_0x201aa2(0xef)]);if(!_0x46f1e5)return;this[_0x201aa2(0x2cd)]=_0x46f1e5[_0x201aa2(0x275)]();}let _0x4988b6=this['_activeAdjustPointList'];if(!(!_0x4988b6||_0x4988b6[_0x201aa2(0x15f)]===0x0))for(let _0x261092=0x0;_0x261092<_0x4988b6[_0x201aa2(0x15f)];_0x261092++){let _0x2558dd=_0x4988b6[_0x261092],_0x4c26c1=_0x2558dd['x'],_0x407e31=_0x2558dd['y'];if(_0x362db1&&(_0x4c26c1=(_0x46eb08||0x0)-_0x4c26c1),_0x573adc&&(_0x407e31=(_0x427252||0x0)-_0x407e31),_0xc01ef8!==0x0){let _0x593eab=(_0x46eb08||0x0)/0x2,_0x32dc9f=(_0x427252||0x0)/0x2,_0x5bfcf9=_0xc01ef8*Math['PI']/0xb4,_0x41fd72=Math[_0x201aa2(0x109)](_0x5bfcf9),_0xc88062=Math[_0x201aa2(0x1e6)](_0x5bfcf9),_0x461d70=_0x4c26c1-_0x593eab,_0x58288f=_0x407e31-_0x32dc9f;_0x4c26c1=_0x593eab+(_0x461d70*_0x41fd72-_0x58288f*_0xc88062),_0x407e31=_0x32dc9f+(_0x461d70*_0xc88062+_0x58288f*_0x41fd72);}let _0x37f031={'x':_0x4c26c1,'y':_0x407e31,'adjName':_0x2558dd['adjName']};this[_0x201aa2(0x2d2)](_0x4a7af7,_0x37f031,_0x37f031['adjName'],_0x2cb364,_0xbe4c4a,this[_0x201aa2(0x238)],this[_0x201aa2(0x250)]);}}[_0x43dbb9(0x2d2)](_0x3df7af,_0xd34090,_0x3fdd98,_0x283fcd,_0x19f9ac,_0x146883,_0xdb8dab){const _0x13b400=_0x43dbb9;if(!this[_0x13b400(0x169)])return;let _0x188549=_0x13b400(0x2a2)+this[_0x13b400(0x169)]+'-'+_0x3fdd98,_0x257a33=_0x3df7af[_0x13b400(0x1de)](_0x188549);if(_0x257a33){_0x257a33[_0x13b400(0x1c7)]({'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec[_0x13b400(0x86)],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)]});return;}let _0x2cf20a=new wn(_0x188549,{'left':_0xd34090['x']+_0x283fcd-_0x2bc8ec['adjHandleSize'],'top':_0xd34090['y']+_0x19f9ac-_0x2bc8ec[_0x13b400(0x86)],'adjName':_0x3fdd98,'shapeId':this[_0x13b400(0x169)],'unitId':_0x146883,'subUnitId':_0xdb8dab,'width':_0x2bc8ec[_0x13b400(0x86)]+0x8,'height':_0x2bc8ec[_0x13b400(0x86)]+0x8,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_shapes'][_0x13b400(0x241)](_0x2cf20a),this[_0x13b400(0x2e0)](_0x2cf20a,_0x3df7af,_0x3fdd98),_0x3df7af[_0x13b400(0xe9)](_0x2cf20a,_0x11332b+0x1);}[_0x43dbb9(0x186)](){const _0x1301b5=_0x43dbb9;this[_0x1301b5(0x176)]['length']!==0x0&&(this['_shapes'][_0x1301b5(0x200)](_0x52e184=>_0x52e184[_0x1301b5(0x2dd)]()),this[_0x1301b5(0x176)]=[]);}['_getScrollInfo'](_0x1ad32b,_0x104b0c){const _0x53f7e8=_0x43dbb9;var _0x2032b6;let _0x5ad3e9={'x':0x0,'y':0x0},_0x39bb25=this[_0x53f7e8(0x87)][_0x53f7e8(0x19c)](_0x1ad32b);if(!_0x39bb25||!_0x39bb25['with'](_0x392ff0)[_0x53f7e8(0x188)](_0x104b0c))return _0x5ad3e9;let _0x1a8320=_0x39bb25[_0x53f7e8(0x2ea)](_0xdbee74),_0x14643b=_0x1a8320==null?void 0x0:_0x1a8320['getCurrentScrollState']();if(!_0x14643b)return _0x5ad3e9;let _0x5f5ac4=(_0x2032b6=this[_0x53f7e8(0xcd)]['getUnit'](_0x1ad32b))==null?void 0x0:_0x2032b6[_0x53f7e8(0x148)](_0x104b0c);if(!_0x5f5ac4)return _0x5ad3e9;let _0x30d711=_0x1b930d(_0x14643b[_0x53f7e8(0x296)],_0x14643b[_0x53f7e8(0x286)],_0x39bb25[_0x53f7e8(0x128)],_0x5f5ac4);return _0x30d711?{'x':_0x30d711[_0x53f7e8(0x121)],'y':_0x30d711[_0x53f7e8(0x23f)]}:_0x5ad3e9;}[_0x43dbb9(0x155)](_0x5e10ae,_0x4d8847){const _0xec6b09=_0x43dbb9;var _0x397227,_0x2ef821;let _0x3bcb75=(_0x397227=this[_0xec6b09(0xcd)][_0xec6b09(0x150)](_0x5e10ae))==null?void 0x0:_0x397227[_0xec6b09(0x148)](_0x4d8847);return(_0x2ef821=_0x3bcb75==null?void 0x0:_0x3bcb75['getZoomRatio']())==null?0x1:_0x2ef821;}[_0x43dbb9(0x2e0)](_0x5bd7fd,_0x32d0b0,_0x3273ec){const _0x4e2590=_0x43dbb9;this[_0x4e2590(0x11b)](_0x43b296(_0x5bd7fd[_0x4e2590(0x12f)][_0x4e2590(0x17c)]((_0x476c0f,_0x31c873)=>{const _0x2c0b8c=_0x4e2590;var _0x516b0f,_0xd41a7d,_0x2023d1;let {unitId:_0x48de44,subUnitId:_0x434606,drawingId:_0x4658c2}=_0x5bd7fd['getDrawingSearch'](),_0x431862=this[_0x2c0b8c(0x1a6)](_0x48de44,_0x434606,_0x4658c2);if(!(_0x431862!=null&&_0x431862['transform']))return;let {left:_0x270a62,top:_0x13f657,width:_0x3eaa27,height:_0x306409}=_0x431862[_0x2c0b8c(0x10c)];this[_0x2c0b8c(0x283)]=_0x270a62||0x0,this['_baseTop']=_0x13f657||0x0,this[_0x2c0b8c(0x127)]=_0x3eaa27||0x0,this[_0x2c0b8c(0x233)]=_0x306409||0x0;let _0x320b89=!!((_0x516b0f=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0x516b0f[_0x2c0b8c(0x2d5)]),_0x263c29=!!((_0xd41a7d=_0x431862[_0x2c0b8c(0x10c)])!=null&&_0xd41a7d[_0x2c0b8c(0x219)]),_0x134e72=((_0x2023d1=_0x431862[_0x2c0b8c(0x10c)])==null?void 0x0:_0x2023d1[_0x2c0b8c(0x2e1)])||0x0,_0x1966c6=this[_0x2c0b8c(0x190)](_0x48de44,_0x434606,_0x4658c2);if(!_0x1966c6)return;let _0xfbbbef=this[_0x2c0b8c(0x15e)](_0x1966c6[_0x2c0b8c(0x132)],this[_0x2c0b8c(0x127)],this[_0x2c0b8c(0x233)],_0x1966c6[_0x2c0b8c(0xef)]);if(!_0xfbbbef||(this[_0x2c0b8c(0x22b)]=_0xfbbbef,this['_activeAdjustInfo']=_0xfbbbef[_0x2c0b8c(0x2ae)](_0x3273ec),!this['_activeAdjustInfo']))return;this[_0x2c0b8c(0x258)]=!0x0,_0x32d0b0[_0x2c0b8c(0x1b8)]();let _0x4f565b=_0x1966c6[_0x2c0b8c(0x132)];this[_0x2c0b8c(0x1fa)]=_0x32d0b0[_0x2c0b8c(0x24b)][_0x2c0b8c(0x17c)]((_0x38ecb7,_0x2def4b)=>{const _0x221de2=_0x2c0b8c;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2e98cb,offsetY:_0x65777c}=_0x38ecb7,_0x699e4a=this[_0x221de2(0x257)];if(!this[_0x221de2(0x22b)]||!_0x699e4a)return;_0x32d0b0[_0x221de2(0x1b8)](),_0x32d0b0[_0x221de2(0xa2)](_0x110f16['CROSSHAIR']);let _0x16f103={'left':0x0,'top':0x0,'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]},_0x5e69bb=this['_getScrollInfo'](_0x48de44,_0x434606),_0x56d905=this[_0x221de2(0x155)](_0x48de44,_0x434606),_0x5e23cb=_0x2e98cb/_0x56d905+_0x5e69bb['x']-this['_baseLeft'],_0x422e49=_0x65777c/_0x56d905+_0x5e69bb['y']-this[_0x221de2(0x92)];if(_0x134e72!==0x0){let _0x2fbbc0=this[_0x221de2(0x127)]/0x2,_0x5d9f07=this[_0x221de2(0x233)]/0x2,_0x47baea=_0x134e72*Math['PI']/0xb4,_0x221ea3=Math[_0x221de2(0x109)](_0x47baea),_0x36035d=Math[_0x221de2(0x1e6)](_0x47baea),_0x2126f8=_0x5e23cb-_0x2fbbc0,_0x1bb8f1=_0x422e49-_0x5d9f07;_0x5e23cb=_0x2fbbc0+(_0x2126f8*_0x221ea3+_0x1bb8f1*_0x36035d),_0x422e49=_0x5d9f07+(-_0x2126f8*_0x36035d+_0x1bb8f1*_0x221ea3);}_0x320b89&&(_0x5e23cb=this[_0x221de2(0x127)]-_0x5e23cb),_0x263c29&&(_0x422e49=this[_0x221de2(0x233)]-_0x422e49);let _0x2da3ad=this[_0x221de2(0x22b)][_0x221de2(0x180)](_0x16f103,{'x':_0x5e23cb,'y':_0x422e49},_0x699e4a,_0x320b89,_0x263c29),_0x359261=_0x699e4a[_0x221de2(0xc3)]||_0x699e4a[_0x221de2(0x247)]||_0x699e4a[_0x221de2(0x2de)]||_0x699e4a[_0x221de2(0x2e5)];_0x359261!==void 0x0&&(this[_0x221de2(0x22b)][_0x221de2(0x12b)](_0x359261,_0x2da3ad),this[_0x221de2(0x22b)][_0x221de2(0x104)]({'width':this[_0x221de2(0x127)],'height':this[_0x221de2(0x233)]}),this[_0x221de2(0x15b)](_0x48de44,_0x434606,_0x4658c2,_0x359261,_0x2da3ad),this[_0x221de2(0x2cd)]=this[_0x221de2(0x22b)]['getDrawingPoints'](),this['_activeAdjustInfo']=this[_0x221de2(0x22b)]['getAdjustInfoByName'](_0x3273ec),this[_0x221de2(0x1c8)](),_0x2def4b[_0x221de2(0x26a)]());}),this[_0x2c0b8c(0x276)]=_0x32d0b0['onPointerUp$'][_0x2c0b8c(0x17c)]((_0x56f091,_0x551942)=>{const _0x11fafa=_0x2c0b8c;if(this[_0x11fafa(0x1fa)][_0x11fafa(0x1dd)](),this['_adjHandlerPointerUp'][_0x11fafa(0x1dd)](),_0x32d0b0[_0x11fafa(0x15a)](),this[_0x11fafa(0x22b)]){let _0x1a929c=this[_0x11fafa(0x22b)]['getAdjustNames'](),_0x4026ed={};for(let _0x2c4c66 of _0x1a929c){let _0x2e7487=this[_0x11fafa(0x22b)][_0x11fafa(0x29f)](_0x2c4c66);_0x2e7487!==void 0x0&&(_0x4026ed[_0x2c4c66]=_0x2e7487);}this[_0x11fafa(0xf9)]['clipByShape'](_0x48de44,_0x434606,_0x4658c2,_0x4f565b,_0x4026ed);}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x11fafa(0x258)]=!0x1,_0x551942[_0x11fafa(0x26a)](),_0x32d0b0['enableObjectsEvent']();}),_0x31c873[_0x2c0b8c(0x26a)]();})));}[_0x43dbb9(0x15b)](_0x19a038,_0x408ed9,_0x3b74bb,_0x41473e,_0x1f23ee){const _0x161c3c=_0x43dbb9;let _0x2f37a4=this[_0x161c3c(0x87)][_0x161c3c(0x19c)](_0x19a038);if(!_0x2f37a4)return;let {scene:_0x3d98e3}=_0x2f37a4,_0x43214e=_0x7f2912({'unitId':_0x19a038,'subUnitId':_0x408ed9,'drawingId':_0x3b74bb}),_0x39dddb=_0x3d98e3[_0x161c3c(0xad)](_0x43214e);if(_0x39dddb instanceof _0x3100f0){var _0x5ed587;let _0x1dadd6=(_0x5ed587=_0x39dddb['prstGeomAdjValues'])==null?{}:_0x5ed587;_0x39dddb['setPrstGeomAdjValues']({..._0x1dadd6,[_0x41473e]:_0x1f23ee}),_0x39dddb[_0x161c3c(0x15d)](!0x0);}}[_0x43dbb9(0x1ad)](){const _0x4865ae=_0x43dbb9;let _0xa9c7c3=this[_0x4865ae(0xcd)][_0x4865ae(0x240)](_0x2a1b28[_0x4865ae(0x1e0)]);this[_0x4865ae(0x11b)](_0xa9c7c3[_0x4865ae(0x24d)](_0x46afa7(_0x2b21a6=>_0x2b21a6?_0x2b21a6[_0x4865ae(0x117)][_0x4865ae(0x24d)](_0x46afa7(_0xf4c77e=>{const _0x20f6af=_0x4865ae;if(!_0xf4c77e)return _0x3149ab;let _0x53b246=_0x2b21a6['getUnitId'](),_0x4b126d=this[_0x20f6af(0x87)][_0x20f6af(0x19c)](_0x53b246),_0x59f98b=_0x4b126d==null?void 0x0:_0x4b126d['scene'];return _0x59f98b?_0x236700(_0x59f98b):_0x3149ab;})):_0x3149ab))[_0x4865ae(0x28f)](_0x197026=>{const _0x2c2bed=_0x4865ae;let _0x2b3eb4=_0x197026[_0x2c2bed(0x84)]();this[_0x2c2bed(0x11b)](_0x197026['onPointerMove$'][_0x2c2bed(0x17c)](()=>{const _0x188094=_0x2c2bed;this[_0x188094(0x292)]&&this[_0x188094(0x186)]();})),this['disposeWithMe'](_0x2b3eb4[_0x2c2bed(0x89)][_0x2c2bed(0x28f)](_0x24ae84=>{const _0x506320=_0x2c2bed;let {objects:_0x43a265}=_0x24ae84;if(this[_0x506320(0x1c8)](),_0x43a265!==null&&_0x43a265['size']===0x1){let _0x361a99=_0x43a265['values']()[_0x506320(0x166)]()[_0x506320(0x26b)];_0x361a99 instanceof _0x3100f0&&_0x361a99[_0x506320(0x132)]&&(this[_0x506320(0x292)]=!0x0);}})),this[_0x2c2bed(0x11b)](_0x2b3eb4[_0x2c2bed(0x18c)][_0x2c2bed(0x28f)](()=>{const _0x26289e=_0x2c2bed;this[_0x26289e(0x292)]&&this['_clearControls']();})),this[_0x2c2bed(0x11b)](_0x197026[_0x2c2bed(0x1bf)]['subscribeEvent'](()=>{const _0xbd47d4=_0x2c2bed;this[_0xbd47d4(0x292)]&&(this[_0xbd47d4(0x292)]=!0x1,this['_createControls']());})),this[_0x2c2bed(0x11b)](_0x2b3eb4['changeEnd$'][_0x2c2bed(0x28f)](()=>{const _0x3c57d4=_0x2c2bed;if(this['_unitId']&&this[_0x3c57d4(0x250)]&&this[_0x3c57d4(0x169)]){let _0x594c42=this[_0x3c57d4(0x190)](this[_0x3c57d4(0x238)],this['_subUnitId'],this['_activeImageId']);if(_0x594c42){var _0x5cfe43,_0x400363;let _0x5d1265=this[_0x3c57d4(0x1a6)](this[_0x3c57d4(0x238)],this['_subUnitId'],this[_0x3c57d4(0x169)]),_0x4292e8=(_0x5d1265==null||(_0x5cfe43=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x5cfe43[_0x3c57d4(0xf7)])||0x0,_0x1c7a99=(_0x5d1265==null||(_0x400363=_0x5d1265[_0x3c57d4(0x10c)])==null?void 0x0:_0x400363[_0x3c57d4(0x1dc)])||0x0,_0x405239=this[_0x3c57d4(0x15e)](_0x594c42['prstGeom'],_0x4292e8,_0x1c7a99,_0x594c42['adjustValues']);_0x405239&&(this[_0x3c57d4(0x2cd)]=_0x405239[_0x3c57d4(0x275)](),this['_clearControls'](),this[_0x3c57d4(0x1c8)](!0x0));}}}));}));}[_0x43dbb9(0x2d8)](){const _0x30a934=_0x43dbb9;this['disposeWithMe'](this[_0x30a934(0xcc)]['focus$']['subscribe'](_0x462754=>{const _0x23aed7=_0x30a934;if(_0x462754[_0x23aed7(0x15f)]===0x1){let _0x435d09=_0x462754[0x0];if(_0x435d09[_0x23aed7(0x2cb)]===_0x5d03f6[_0x23aed7(0x20a)]){let {unitId:_0x13171f,subUnitId:_0x33cd56,drawingId:_0x4fa6ca}=_0x435d09,_0x376ff4=this['_getImagePrstGeom'](_0x13171f,_0x33cd56,_0x4fa6ca);if(_0x376ff4){var _0x1ed7ca,_0x145f9f;this[_0x23aed7(0x169)]=_0x4fa6ca,this[_0x23aed7(0x238)]=_0x13171f,this[_0x23aed7(0x250)]=_0x33cd56;let _0xfe433d=this[_0x23aed7(0x1a6)](_0x13171f,_0x33cd56,_0x4fa6ca),_0x391274=(_0xfe433d==null||(_0x1ed7ca=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x1ed7ca['width'])||0x0,_0x4d208f=(_0xfe433d==null||(_0x145f9f=_0xfe433d[_0x23aed7(0x10c)])==null?void 0x0:_0x145f9f[_0x23aed7(0x1dc)])||0x0,_0x5346d7=this[_0x23aed7(0x15e)](_0x376ff4[_0x23aed7(0x132)],_0x391274,_0x4d208f,_0x376ff4[_0x23aed7(0xef)]);_0x5346d7&&(this[_0x23aed7(0x2cd)]=_0x5346d7[_0x23aed7(0x275)]()),this[_0x23aed7(0x186)](),this[_0x23aed7(0x1c8)](!0x0);}else this[_0x23aed7(0x25b)]();}else this['_resetState']();}else this['_resetState']();})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)]['update$'][_0x30a934(0x28f)](_0x4735bf=>{const _0x2d15bd=_0x30a934;if(_0x4735bf['length']===0x1){let _0x1b9041=_0x4735bf[0x0],_0x58224c=this[_0x2d15bd(0xcc)][_0x2d15bd(0x171)](_0x1b9041);(_0x58224c==null?void 0x0:_0x58224c[_0x2d15bd(0x2cb)])===_0x5d03f6[_0x2d15bd(0x20a)]&&this[_0x2d15bd(0x169)]===_0x1b9041[_0x2d15bd(0x1a9)]&&(this[_0x2d15bd(0x186)](),this[_0x2d15bd(0x1c8)](!0x0));}})),this[_0x30a934(0x11b)](this[_0x30a934(0xcc)][_0x30a934(0xd6)]['subscribe'](_0x2d297e=>{const _0x396164=_0x30a934;for(let _0x4c519a of _0x2d297e)this[_0x396164(0x169)]===_0x4c519a[_0x396164(0x1a9)]&&this['_resetState']();}));}[_0x43dbb9(0x25b)](){const _0x2a79a9=_0x43dbb9;this[_0x2a79a9(0x169)]=null,this['_unitId']=null,this[_0x2a79a9(0x250)]=null,this[_0x2a79a9(0x2cd)]=void 0x0,this[_0x2a79a9(0x186)]();}};sr=Z([X(0x1,_0x324617),X(0x2,_0x450bf3(_0x263af6)),X(0x3,_0x7113c7),X(0x4,_0x450bf3(Pn))],sr);let cr=class extends _0x4760b3{constructor(_0x4d135b,_0x5af0a8,_0x101cfc,_0x5dc4a9){const _0x3a993e=_0x43dbb9;super(),this['_univerInstanceService']=_0x4d135b,this['_sheetInterceptorService']=_0x5af0a8,this[_0x3a993e(0x1e4)]=_0x101cfc,this['_sheetsShapeService']=_0x5dc4a9,this[_0x3a993e(0x29e)]();}[_0x43dbb9(0x29e)](){const _0x1d9a5c=_0x43dbb9;this[_0x1d9a5c(0x11b)](this['_sheetInterceptorService'][_0x1d9a5c(0xc8)]({'getMutations':_0x55cb7b=>{const _0x47c182=_0x1d9a5c;if(_0x55cb7b['id']===_0x299032['id']){let _0x41400d=_0x59589e(this[_0x47c182(0xcd)],_0x55cb7b[_0x47c182(0x118)]);if(!_0x41400d)return{'redos':[],'undos':[]};let {unitId:_0x42d43e,subUnitId:_0x5081d9}=_0x41400d,_0x1ed26e=this['_sheetDrawingService'][_0x47c182(0x295)](_0x42d43e,_0x5081d9),_0x477213=Object[_0x47c182(0x133)](_0x1ed26e)[_0x47c182(0xb6)](_0x32bdd2=>_0x32bdd2[_0x47c182(0x2cb)]===_0x5d03f6[_0x47c182(0x23a)]);if(_0x477213[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0x2dc126=[],_0x13ab7b=[];for(let _0x1289b5=0x0;_0x1289b5<_0x477213[_0x47c182(0x15f)];_0x1289b5++){let _0x585798=_0x477213[_0x1289b5],_0x58336a=this[_0x47c182(0x1ff)]['getShapeModel'](_0x585798[_0x47c182(0x25d)],_0x585798[_0x47c182(0x212)],_0x585798['drawingId']);if(!_0x58336a)continue;let {redo:_0x25b128,undo:_0x387542,objects:_0x2c8c80}=this[_0x47c182(0x1e4)]['getBatchRemoveOp']([_0x585798]);_0x2dc126['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798['drawingId']}}),_0x2dc126[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be['REMOVE'],'op':_0x25b128,'objects':_0x2c8c80}}),_0x13ab7b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x387542,'objects':_0x2c8c80}}),_0x13ab7b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x42d43e,'subUnitId':_0x5081d9,'shapeId':_0x585798[_0x47c182(0x1a9)],'shapeType':_0x58336a[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x58336a['getShapeData']()))}});}return{'redos':_0x2dc126,'undos':_0x13ab7b};}else{if(_0x55cb7b['id']===_0x16ae42['id']){let {unitId:_0x39e449,subUnitId:_0x547fa6,targetSubUnitId:_0x1b28a4}=_0x55cb7b['params'];if(!_0x39e449||!_0x547fa6||!_0x1b28a4)return{'redos':[],'undos':[]};let _0x776654=this[_0x47c182(0x1e4)][_0x47c182(0x295)](_0x39e449,_0x547fa6),_0xea449d=Object[_0x47c182(0x133)](_0x776654)[_0x47c182(0xb6)](_0x29a545=>_0x29a545[_0x47c182(0x2cb)]===_0x5d03f6['DRAWING_SHAPE']);if(_0xea449d[_0x47c182(0x15f)]===0x0)return{'redos':[],'undos':[]};let _0xef1e5b=[],_0x37ef29=[];for(let _0x3cfc7e=0x0;_0x3cfc7e<_0xea449d[_0x47c182(0x15f)];_0x3cfc7e++){let _0x2b4d60=_0xea449d[_0x3cfc7e],_0x2c3064=this[_0x47c182(0x1ff)][_0x47c182(0x251)](_0x2b4d60[_0x47c182(0x25d)],_0x2b4d60[_0x47c182(0x212)],_0x2b4d60[_0x47c182(0x1a9)]);if(!_0x2c3064)continue;let _0x3cafb3=_0x2bfd17(),_0x1e8ce4={..._0x2b4d60,'unitId':_0x39e449,'subUnitId':_0x1b28a4,'drawingId':_0x3cafb3},{redo:_0x3cc142,undo:_0x183d08,objects:_0x2e62ed}=this[_0x47c182(0x1e4)][_0x47c182(0x2e4)]([_0x1e8ce4]);_0xef1e5b[_0x47c182(0x241)]({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0x27b)],'op':_0x3cc142,'objects':_0x2e62ed}}),_0xef1e5b['push']({'id':_0x5addb7['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3,'shapeType':_0x2c3064[_0x47c182(0x2ad)](),'shapeData':JSON[_0x47c182(0x154)](JSON[_0x47c182(0x2d1)](_0x2c3064[_0x47c182(0x282)]()))}}),_0x37ef29[_0x47c182(0x241)]({'id':_0x35cadb['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'shapeId':_0x3cafb3}}),_0x37ef29['push']({'id':_0x6d6f97['id'],'params':{'unitId':_0x39e449,'subUnitId':_0x1b28a4,'type':_0x2640be[_0x47c182(0xa9)],'op':_0x183d08,'objects':_0x2e62ed}});}return{'redos':_0xef1e5b,'undos':_0x37ef29};}}return{'redos':[],'undos':[]};}}));}};cr=Z([X(0x0,_0x450bf3(_0x7113c7)),X(0x1,_0x450bf3(_0x9d40d)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217))],cr);let lr=class extends _0x4760b3{constructor(_0x447758,_0x4b8422,_0x248797,_0x4c076d,_0x5defc4){const _0x1ddc34=_0x43dbb9;super(),this[_0x1ddc34(0xfb)]=_0x447758,this['_shapeTextEditingService']=_0x4b8422,this[_0x1ddc34(0xcc)]=_0x248797,this[_0x1ddc34(0x216)]=_0x4c076d,this[_0x1ddc34(0x1ff)]=_0x5defc4,Y(this,'_lastEditingShapeKey',null),this[_0x1ddc34(0x163)](),this[_0x1ddc34(0x1f0)](),this[_0x1ddc34(0x2c3)]();}[_0x43dbb9(0x163)](){const _0x8aa2da=_0x43dbb9;let {scene:_0x369e7c}=this[_0x8aa2da(0xfb)];this[_0x8aa2da(0x11b)](_0x369e7c[_0x8aa2da(0x20d)][_0x8aa2da(0x17c)](_0x36102d=>{const _0x33c4d6=_0x8aa2da;let {offsetX:_0x3e5b99,offsetY:_0x1fd83a}=_0x36102d,_0x27831e=_0x369e7c[_0x33c4d6(0x214)](_0xf6e38e[_0x33c4d6(0x101)]([_0x3e5b99,_0x1fd83a]));if(_0x27831e instanceof Cn){let _0x545b1b=this[_0x33c4d6(0x1ff)]['getShapeModel'](_0x27831e[_0x33c4d6(0x25d)],_0x27831e[_0x33c4d6(0x212)],_0x27831e['shapeId']);if(_0x545b1b!=null&&_0x545b1b[_0x33c4d6(0x282)]()[_0x33c4d6(0x17a)]||_0x1f7f23(this[_0x33c4d6(0x1ff)][_0x33c4d6(0x2ad)](_0x27831e['unitId'],_0x27831e[_0x33c4d6(0x212)],_0x27831e[_0x33c4d6(0xfc)])))return;this['_shapeTextEditingService'][_0x33c4d6(0xc7)]({'visible':!0x0,'unitId':_0x27831e[_0x33c4d6(0x25d)],'subUnitId':_0x27831e[_0x33c4d6(0x212)],'shapeId':_0x27831e[_0x33c4d6(0xfc)],'shapeKey':_0x27831e[_0x33c4d6(0xe8)]});}}));}['_initSelection'](){const _0x2bfde6=_0x43dbb9;this[_0x2bfde6(0x11b)](this['_drawingManagerService'][_0x2bfde6(0x231)]['subscribe'](_0x4fb40e=>{const _0x490d6a=_0x2bfde6;if(_0x4fb40e[_0x490d6a(0x15f)]===0x1){let _0x4f99d7=_0x4fb40e[0x0],_0x307003=this[_0x490d6a(0xcc)][_0x490d6a(0x171)](_0x4f99d7);if((_0x307003==null?void 0x0:_0x307003[_0x490d6a(0x2cb)])===_0x5d03f6[_0x490d6a(0x23a)]){var _0x38cb74;let _0x5d3d17=this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]();if((_0x5d3d17==null?void 0x0:_0x5d3d17[_0x490d6a(0xfc)])===_0x4f99d7['drawingId']&&_0x5d3d17[_0x490d6a(0x2cc)])return;let _0x4ac6cf=_0x1f7f23(this[_0x490d6a(0x1ff)][_0x490d6a(0x2ad)](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)])),_0xf6824a=!!((_0x38cb74=this[_0x490d6a(0x1ff)]['getShapeModel'](_0x4f99d7[_0x490d6a(0x25d)],_0x4f99d7[_0x490d6a(0x212)],_0x4f99d7[_0x490d6a(0x1a9)]))!=null&&_0x38cb74[_0x490d6a(0x282)]()[_0x490d6a(0x17a)]);(_0x4ac6cf||_0xf6824a)&&this[_0x490d6a(0x1a8)][_0x490d6a(0xc7)](null);}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0x490d6a(0x1a8)][_0x490d6a(0x1f9)]()&&(this[_0x490d6a(0x1a8)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0xf1a67=_0x490d6a;this['_shapeTextEditingService'][_0xf1a67(0xc7)](null);}));})),this[_0x2bfde6(0x11b)](this[_0x2bfde6(0xcc)][_0x2bfde6(0xd6)][_0x2bfde6(0x28f)](_0x74f032=>{const _0x3927e5=_0x2bfde6;let _0x265c8b=this[_0x3927e5(0x1a8)]['getEditing']();_0x265c8b&&_0x74f032['some'](_0x2292ba=>_0x2292ba[_0x3927e5(0x1a9)]===_0x265c8b[_0x3927e5(0xfc)])&&this[_0x3927e5(0x1a8)][_0x3927e5(0xc7)](null);}));}[_0x43dbb9(0x2c3)](){const _0x534fc6=_0x43dbb9;this['disposeWithMe'](this[_0x534fc6(0x1a8)][_0x534fc6(0x17b)][_0x534fc6(0x28f)](_0x46fd54=>{const _0x170417=_0x534fc6;let {scene:_0x3c4455}=this[_0x170417(0xfb)];if(this[_0x170417(0x263)]){let _0x5dec60=_0x3c4455[_0x170417(0x1de)](this['_lastEditingShapeKey']);_0x5dec60&&_0x5dec60[_0x170417(0xc7)](!0x1);}if(_0x46fd54){let _0x55828a=!!_0x46fd54['visible'],_0x1e7ced=_0x3c4455[_0x170417(0x1de)](_0x46fd54[_0x170417(0x16b)]);_0x1e7ced&&(_0x1e7ced[_0x170417(0xc7)](_0x55828a),this['_lastEditingShapeKey']=_0x46fd54[_0x170417(0x16b)]),this[_0x170417(0x216)]['setContextValue'](_0x4d1a78,_0x55828a);}else this[_0x170417(0x263)]=null,this[_0x170417(0x216)][_0x170417(0x1c9)](_0x4d1a78,!0x1);}));}};lr=Z([X(0x1,_0x450bf3(ir)),X(0x2,_0x324617),X(0x3,_0x21d773),X(0x4,_0x450bf3(_0x26a217))],lr);let ur=class extends _0xd3a510{constructor(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e){super(_0x1fff68,_0x1d84f6,_0x4c6e85,_0x21bb3e,{'componentKey':Mn,'editorUnitId':jn});}};ur=Z([X(0x1,_0x450bf3(_0x1263d4)),X(0x2,_0x450bf3(_0x86b0a2)),X(0x3,_0x450bf3(_0x7b1fa8))],ur);let dr=class extends _0x4760b3{constructor(_0x4e6e39,_0xf7cd6b,_0x9de519,_0x1b7ab4,_0x4bbaa2,_0x426fcb){const _0xd77912=_0x43dbb9;super(),this[_0xd77912(0x285)]=_0x4e6e39,this[_0xd77912(0x87)]=_0xf7cd6b,this['_drawingManagerService']=_0x9de519,this['_currentUniverService']=_0x1b7ab4,this['_drawingRenderService']=_0x4bbaa2,this[_0xd77912(0x2d9)]=_0x426fcb,Y(this,_0xd77912(0x107),new Set()),this[_0xd77912(0xc2)]();}['_initialize'](){const _0x422ce0=_0x43dbb9;this[_0x422ce0(0x114)](),this[_0x422ce0(0x11d)](),this[_0x422ce0(0xbe)]();}[_0x43dbb9(0x114)](){const _0x42ed87=_0x43dbb9;this['disposeWithMe'](this[_0x42ed87(0xcc)][_0x42ed87(0x17e)][_0x42ed87(0x28f)](_0x1f2977=>{const _0x16af51=_0x42ed87;this[_0x16af51(0x2af)](_0x1f2977);}));}[_0x43dbb9(0x11d)](){const _0x43aa82=_0x43dbb9;this['disposeWithMe'](this[_0x43aa82(0x285)][_0x43aa82(0x1f7)](_0x1319f9=>{const _0x115f82=_0x43aa82;if(_0x1319f9['id']===_0x19b81c['id']){let {unitId:_0x18d03a,subUnitId:_0x2d2e92,shapeId:_0x23920b}=_0x1319f9[_0x115f82(0x118)],_0xefc99a=this[_0x115f82(0x122)](_0x18d03a),_0x16b572=_0x7f2912({'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'drawingId':_0x23920b}),_0x5c9369=_0xefc99a==null?void 0x0:_0xefc99a['scene'][_0x115f82(0x1de)](_0x16b572);_0x5c9369&&(this[_0x115f82(0x2d9)]['refreshShapeFillImage'](_0x5c9369),this[_0x115f82(0x2d9)][_0x115f82(0xac)](_0x5c9369,{'unitId':_0x18d03a,'subUnitId':_0x2d2e92,'shapeId':_0x23920b}),_0x5c9369[_0x115f82(0x15d)](!0x0));return;}if(_0x1319f9['id']===_0x5addb7['id']){var _0x5cc455;let {unitId:_0x131187,subUnitId:_0x13fd38,shapeId:_0xbf195e}=_0x1319f9[_0x115f82(0x118)],_0xdd4784=this[_0x115f82(0x122)](_0x131187);if(_0xdd4784==null)return;let {scene:_0x11eebd}=_0xdd4784,_0x582c10=_0x7f2912({'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}),_0x52eda1=_0x11eebd[_0x115f82(0x1de)](_0x582c10);if(!((_0x5cc455=this[_0x115f82(0x87)][_0x115f82(0x19c)](_0x131187))!=null&&_0x5cc455[_0x115f82(0x2ea)](_0x392ff0)[_0x115f82(0x188)](_0x13fd38)))return!0x1;if(_0x52eda1)return;this[_0x115f82(0x2af)]([{'unitId':_0x131187,'subUnitId':_0x13fd38,'drawingId':_0xbf195e}]);}}));}['_shapeUpdateListener'](){const _0x219ebd=_0x43dbb9;this[_0x219ebd(0x11b)](this[_0x219ebd(0xcc)][_0x219ebd(0x105)]['subscribe'](_0x4518c9=>{const _0x2883f0=_0x219ebd;_0x4518c9[_0x2883f0(0x200)](_0x16d760=>{const _0x332fea=_0x2883f0;let {unitId:_0x5686fa,subUnitId:_0x10a6fc,drawingId:_0x3b3c2c}=_0x16d760,_0xea9eff=this[_0x332fea(0xcc)][_0x332fea(0x171)](_0x16d760);if(_0xea9eff==null)return;let {transform:_0x14e06c,drawingType:_0x19b546,srcRect:_0x1ade6a,prstGeom:_0x2e5400}=_0xea9eff;if(_0x19b546!==_0x5d03f6[_0x332fea(0x23a)])return;let _0x3afcb6=this[_0x332fea(0x122)](_0x5686fa);if(_0x3afcb6==null)return;let {scene:_0x2412e8,transformer:_0x3909dd}=_0x3afcb6;if(_0x14e06c==null)return!0x0;let _0x50cd98=_0x7f2912({'unitId':_0x5686fa,'subUnitId':_0x10a6fc,'drawingId':_0x3b3c2c}),_0x25d604=_0x2412e8[_0x332fea(0x1de)](_0x50cd98);if(_0x25d604==null)return!0x0;_0x25d604[_0x332fea(0x20f)](_0x1ade6a),_0x25d604[_0x332fea(0x234)](_0x2e5400);});}));}[_0x43dbb9(0x2af)](_0x57ffc3){const _0x30f431=_0x43dbb9;for(let _0x3f2109 of _0x57ffc3){var _0x2390d3;let {unitId:_0x2cd993,subUnitId:_0x125d00,drawingId:_0x4391f4}=_0x3f2109,_0x163a93=this['_getSceneAndTransformerByDrawingSearch'](_0x2cd993),_0x4fed68=(_0x2390d3=_0x4a469b(this[_0x30f431(0x112)],_0x2cd993))==null?void 0x0:_0x2390d3[_0x30f431(0x212)];if(_0x163a93==null||_0x4fed68!==_0x125d00)return;let _0x547f79=_0x7f2912({'unitId':_0x2cd993,'subUnitId':_0x125d00,'drawingId':_0x4391f4});if(this[_0x30f431(0x107)]['has'](_0x547f79)||_0x163a93[_0x30f431(0x128)][_0x30f431(0x1de)](_0x547f79)!=null)return;let _0x2abd0c=this[_0x30f431(0xcc)]['getDrawingByParam'](_0x3f2109);if(_0x2abd0c==null||_0x2abd0c[_0x30f431(0x2cb)]!==_0x5d03f6[_0x30f431(0x23a)])return;if(_0x1f7f23((_0x2abd0c[_0x30f431(0x1f8)]||{})['shapeType'])){let _0x6c97cb=_0x2abd0c['transform'];_0x6c97cb&&(_0x2abd0c[_0x30f431(0x10c)]={..._0x6c97cb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x30f431(0x10b)](_0x547f79);try{this[_0x30f431(0x2d9)][_0x30f431(0x1e7)](_0x2abd0c,_0x163a93['scene']);}finally{this[_0x30f431(0x107)]['delete'](_0x547f79);}queueMicrotask(()=>{const _0x3c0c93=_0x30f431;if(this['_disposed'])return;let _0x229d2e=_0x7f2912(_0x3f2109);if(!_0x163a93[_0x3c0c93(0x128)]['getObjectIncludeInGroup'](_0x229d2e))return;let _0x72fd8b=this[_0x3c0c93(0xcc)][_0x3c0c93(0x171)](_0x3f2109);_0x72fd8b&&this[_0x3c0c93(0xcc)]['refreshTransform']([_0x72fd8b]);});}}[_0x43dbb9(0x122)](_0x2a462c){const _0x13f766=_0x43dbb9;if(_0x2a462c==null)return;let _0x48d00d=this[_0x13f766(0x87)][_0x13f766(0x19c)](_0x2a462c),_0x3ed34c=_0x48d00d==null?void 0x0:_0x48d00d[_0x13f766(0x128)];return _0x3ed34c==null?null:{'scene':_0x3ed34c,'transformer':_0x3ed34c[_0x13f766(0x84)]()};}};dr=Z([X(0x0,_0x4d9cac),X(0x1,_0x263af6),X(0x2,_0x324617),X(0x3,_0x7113c7),X(0x4,_0x450bf3(_0x4d43e7)),X(0x5,_0x450bf3(Q))],dr);const fr={'normal':{'fill':_0x2bc8ec[_0x43dbb9(0x2ac)],'stroke':_0x2bc8ec['cxnPointStroke'],'strokeWidth':_0x2bc8ec[_0x43dbb9(0x19b)]},'highlighted':{'fill':'#4285f4','stroke':_0x43dbb9(0x126),'strokeWidth':0x2}};var pr=class extends _0x300c3f{constructor(_0x44422d,_0x201cfc){const _0x494407=_0x43dbb9;super(_0x44422d,_0x201cfc),Y(this,_0x494407(0x22e),''),Y(this,'_cxnIndex',-0x1),Y(this,_0x494407(0x238),''),Y(this,_0x494407(0x250),''),Y(this,_0x494407(0x2b3),!0x1),_0x201cfc&&this[_0x494407(0x152)](_0x201cfc);}[_0x43dbb9(0x18f)](){const _0x5a1892=_0x43dbb9;return{'unitId':this[_0x5a1892(0x238)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x5a1892(0x22e)],'cxnIndex':this[_0x5a1892(0x1d7)]};}[_0x43dbb9(0x14b)](_0x1edf57){const _0x20b792=_0x43dbb9;this[_0x20b792(0x2b3)]!==_0x1edf57&&(this[_0x20b792(0x2b3)]=_0x1edf57,this[_0x20b792(0x15d)](!0x0));}[_0x43dbb9(0x9d)](){const _0x123f13=_0x43dbb9;return this[_0x123f13(0x2b3)];}[_0x43dbb9(0x152)](_0x5abfe4){const _0x2e2ff9=_0x43dbb9;var _0x3b5383,_0x51b7e6;_0x5abfe4[_0x2e2ff9(0x215)]!==void 0x0&&(this['_targetShapeId']=_0x5abfe4[_0x2e2ff9(0x215)]),_0x5abfe4[_0x2e2ff9(0x162)]!==void 0x0&&(this[_0x2e2ff9(0x1d7)]=_0x5abfe4[_0x2e2ff9(0x162)]),_0x5abfe4['unitId']!==void 0x0&&(this[_0x2e2ff9(0x238)]=_0x5abfe4['unitId']),_0x5abfe4[_0x2e2ff9(0x212)]!==void 0x0&&(this['_subUnitId']=_0x5abfe4[_0x2e2ff9(0x212)]),_0x5abfe4[_0x2e2ff9(0x9d)]!==void 0x0&&(this['_isHighlighted']=_0x5abfe4[_0x2e2ff9(0x9d)]),this[_0x2e2ff9(0x1c7)]({'width':(_0x3b5383=_0x5abfe4[_0x2e2ff9(0xf7)])==null?_0x2bc8ec['cxnPointRadius']*0x2:_0x3b5383,'height':(_0x51b7e6=_0x5abfe4[_0x2e2ff9(0x1dc)])==null?_0x2bc8ec[_0x2e2ff9(0xa5)]*0x2:_0x51b7e6});}[_0x43dbb9(0xd0)](_0x1a29d5){const _0x85164e=_0x43dbb9;let _0x566bd2=this[_0x85164e(0x2b3)]?fr[_0x85164e(0x139)]:fr[_0x85164e(0x28a)];_0x536c54['drawWith'](_0x1a29d5,{'radius':_0x2bc8ec[_0x85164e(0xa5)],'fill':_0x566bd2['fill'],'stroke':_0x566bd2['stroke'],'strokeWidth':_0x566bd2['strokeWidth'],'evented':!0x0});}};let mr=class extends _0x4760b3{constructor(_0x2799db,_0x236471,_0x22648d,_0x5c36fd){const _0x100416=_0x43dbb9;super(),this[_0x100416(0xfb)]=_0x2799db,this[_0x100416(0x87)]=_0x236471,this[_0x100416(0xcc)]=_0x22648d,this[_0x100416(0x1ff)]=_0x5c36fd,Y(this,_0x100416(0x19a),[]),Y(this,_0x100416(0x16f),null),Y(this,_0x100416(0xf8),-0x1),Y(this,_0x100416(0x113),null),Y(this,_0x100416(0x238),''),Y(this,_0x100416(0x250),''),Y(this,_0x100416(0x24f),null);}['startConnectionDetection'](_0x46b321,_0x44f986,_0x399bc4,_0x1caa7e){const _0x50083d=_0x43dbb9;this[_0x50083d(0x113)]=_0x46b321,this[_0x50083d(0x238)]=_0x44f986,this[_0x50083d(0x250)]=_0x399bc4,this['_draggingConnectorId']=_0x1caa7e;}['updateConnectionDetection'](_0x5c5346){const _0x1e7c0a=_0x43dbb9;if(!this['_currentScene'])return null;let _0x5e130b=this[_0x1e7c0a(0xbb)](_0x5c5346);return _0x5e130b?(this[_0x1e7c0a(0x16f)]!==_0x5e130b[_0x1e7c0a(0xfc)]&&(this[_0x1e7c0a(0x14a)](),this['_showConnectionSites'](_0x5e130b[_0x1e7c0a(0xfc)],_0x5e130b[_0x1e7c0a(0xc0)]),this[_0x1e7c0a(0x16f)]=_0x5e130b[_0x1e7c0a(0xfc)]),this[_0x1e7c0a(0xa1)](_0x5c5346)):(this[_0x1e7c0a(0x16f)]!==null&&(this[_0x1e7c0a(0x14a)](),this[_0x1e7c0a(0x16f)]=null),null);}['endConnectionDetection'](){const _0x1354df=_0x43dbb9;this[_0x1354df(0x14a)](),this[_0x1354df(0x113)]=null,this[_0x1354df(0x16f)]=null,this[_0x1354df(0xf8)]=-0x1,this['_draggingConnectorId']=null;}['getConnectionRelation'](){const _0x3c79db=_0x43dbb9;return this[_0x3c79db(0x16f)]===null||this[_0x3c79db(0xf8)]<0x0?null:{'shapeId':this[_0x3c79db(0x16f)],'cxnIndex':this[_0x3c79db(0xf8)]};}[_0x43dbb9(0xbb)](_0x1c2e53){const _0x2af299=_0x43dbb9;let _0x4fe051=this[_0x2af299(0xcc)]['getDrawingData'](this[_0x2af299(0x238)],this['_subUnitId']);for(let _0x19158c of Object[_0x2af299(0x293)](_0x4fe051)){if(_0x19158c===this[_0x2af299(0x24f)]||_0x4fe051[_0x19158c][_0x2af299(0x2cb)]!==_0x5d03f6[_0x2af299(0x23a)])continue;let _0x52d226=this[_0x2af299(0x1ff)][_0x2af299(0x251)](this['_unitId'],this[_0x2af299(0x250)],_0x19158c);if(!_0x52d226||_0x1f7f23(_0x52d226[_0x2af299(0x2ad)]())||_0x52d226[_0x2af299(0x201)]()[_0x2af299(0x15f)]===0x0||!this[_0x2af299(0x113)])continue;let _0xafb65d=_0x7f2912({'unitId':this[_0x2af299(0x238)],'subUnitId':this[_0x2af299(0x250)],'drawingId':_0x19158c}),_0x3f13c7=this[_0x2af299(0x113)][_0x2af299(0x1de)](_0xafb65d);if(!_0x3f13c7)continue;let {left:_0x45cc75,top:_0x31cdec,width:_0x4b24da,height:_0x24ebf5}=_0x3f13c7[_0x2af299(0x272)](),_0x2a7fe0=_0x45cc75+_0x4b24da/0x2,_0x5b0797=_0x31cdec+_0x24ebf5/0x2,_0x7788b4=_0x3f13c7[_0x2af299(0x10c)][_0x2af299(0x1b9)](),_0x51e80c=new _0x112a4b([_0x7788b4[0x0],_0x7788b4[0x1],_0x7788b4[0x2],_0x7788b4[0x3],_0x2a7fe0,_0x5b0797]),_0x5d8d5a=_0x3f13c7[_0x2af299(0x1d9)](),_0x251a80=(_0x3f13c7[_0x2af299(0xa8)]&&(_0x5d8d5a==null?void 0x0:_0x5d8d5a[_0x2af299(0x19d)])===_0x842655[_0x2af299(0xf6)]?_0x5d8d5a['ancestorTransform'][_0x2af299(0xcf)](_0x51e80c):_0x51e80c)[_0x2af299(0x23b)]()[_0x2af299(0x22c)](_0x1c2e53),_0x4b1526=_0x4b24da/0x2,_0x4dea20=_0x24ebf5/0x2;if(_0x251a80['x']>=-_0x4b1526-0x5&&_0x251a80['x']<=_0x4b1526+0x5&&_0x251a80['y']>=-_0x4dea20-0x5&&_0x251a80['y']<=_0x4dea20+0x5)return{'shapeId':_0x19158c,'shapeModel':_0x52d226};}return null;}[_0x43dbb9(0x158)](_0x524814,_0x436922){const _0x12115c=_0x43dbb9;if(!this[_0x12115c(0x113)])return;let _0x73096b=_0x7f2912({'unitId':this[_0x12115c(0x238)],'subUnitId':this['_subUnitId'],'drawingId':_0x524814}),_0x53afdd=this[_0x12115c(0x113)][_0x12115c(0x1de)](_0x73096b);if(!_0x53afdd)return;let {left:_0x3c8c9e,top:_0x4f51a0,width:_0x13aa22,height:_0x4dcb40}=_0x53afdd['getRealBound'](),_0x624c3d=_0x3c8c9e+_0x13aa22/0x2,_0x31480c=_0x4f51a0+_0x4dcb40/0x2,_0x492a61=_0x53afdd[_0x12115c(0x10c)][_0x12115c(0x1b9)](),_0x47bafa=new _0x112a4b([_0x492a61[0x0],_0x492a61[0x1],_0x492a61[0x2],_0x492a61[0x3],_0x624c3d,_0x31480c]),_0x2eeabe=_0x53afdd[_0x12115c(0x1d9)](),_0x59dd43=_0x53afdd[_0x12115c(0xa8)]&&(_0x2eeabe==null?void 0x0:_0x2eeabe[_0x12115c(0x19d)])===_0x842655[_0x12115c(0xf6)]?_0x2eeabe[_0x12115c(0x8b)][_0x12115c(0xcf)](_0x47bafa):_0x47bafa;_0x436922[_0x12115c(0x104)]({'width':_0x13aa22,'height':_0x4dcb40});let _0x29ff66=_0x436922[_0x12115c(0x201)]();for(let _0x3be0ca of _0x29ff66){let _0x81174a=_0x3be0ca['x']-_0x13aa22/0x2,_0x3f2367=_0x3be0ca['y']-_0x4dcb40/0x2,_0x54e7a5=_0x59dd43[_0x12115c(0x22c)]({'x':_0x81174a,'y':_0x3f2367}),_0xf3020d=_0x54e7a5['x'],_0x33f3da=_0x54e7a5['y'],_0x7abb02=new pr(_0x12115c(0x243)+_0x524814+'-'+_0x3be0ca[_0x12115c(0x2b9)],{'left':_0xf3020d-_0x2bc8ec[_0x12115c(0xa5)],'top':_0x33f3da-_0x2bc8ec[_0x12115c(0xa5)],'targetShapeId':_0x524814,'cxnIndex':_0x3be0ca['index'],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'height':_0x2bc8ec[_0x12115c(0xa5)]*0x2,'zIndex':_0x11332b+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x12115c(0x241)](_0x7abb02),this['_currentScene'][_0x12115c(0xe9)](_0x7abb02,_0x11332b+0x2);}}[_0x43dbb9(0xa1)](_0x8987eb){const _0x32d4be=_0x43dbb9;let _0x3fccce=null,_0x250448=0x1/0x0,_0x1130b8=null;for(let _0x45db1b of this[_0x32d4be(0x19a)]){let _0x118da8=_0x45db1b[_0x32d4be(0x11f)]+_0x2bc8ec['cxnPointRadius'],_0x442b66=_0x45db1b['top']+_0x2bc8ec['cxnPointRadius'],_0x22a14e=_0x8987eb['x']-_0x118da8,_0x1fab3f=_0x8987eb['y']-_0x442b66,_0x5b65f5=Math['sqrt'](_0x22a14e*_0x22a14e+_0x1fab3f*_0x1fab3f);_0x5b65f5<_0x250448&&(_0x250448=_0x5b65f5,_0x3fccce=_0x45db1b,_0x1130b8={'x':_0x118da8,'y':_0x442b66});}let _0x2bd6ed=_0x250448<=0xa&&_0x3fccce?_0x3fccce[_0x32d4be(0x18f)]()[_0x32d4be(0x162)]:-0x1;if(_0x2bd6ed!==this[_0x32d4be(0xf8)]){for(let _0x2b104e of this[_0x32d4be(0x19a)]){let _0x49c445=_0x2b104e['getConnectionInfo']();_0x2b104e[_0x32d4be(0x14b)](_0x49c445[_0x32d4be(0x162)]===_0x2bd6ed);}this[_0x32d4be(0xf8)]=_0x2bd6ed;}if(_0x250448<=0xa&&_0x3fccce&&_0x1130b8){let _0x583290=_0x3fccce['getConnectionInfo'](),_0x413cb9=this[_0x32d4be(0x29b)](_0x583290[_0x32d4be(0xfc)],_0x583290[_0x32d4be(0x162)]);return{'shapeId':_0x583290[_0x32d4be(0xfc)],'cxnIndex':_0x583290[_0x32d4be(0x162)],'unitId':_0x583290[_0x32d4be(0x25d)],'subUnitId':_0x583290[_0x32d4be(0x212)],'worldPoint':_0x1130b8,'angle':_0x413cb9};}return null;}['_getConnectionSiteAngle'](_0x77d2aa,_0x4b6a70){const _0x1b772c=_0x43dbb9;let _0x50393c=this[_0x1b772c(0x1ff)][_0x1b772c(0x251)](this['_unitId'],this[_0x1b772c(0x250)],_0x77d2aa);if(!_0x50393c)return 0x0;let _0x294f3e=this[_0x1b772c(0xcc)][_0x1b772c(0x171)]({'unitId':this[_0x1b772c(0x238)],'subUnitId':this[_0x1b772c(0x250)],'drawingId':_0x77d2aa});if(!(_0x294f3e!=null&&_0x294f3e[_0x1b772c(0x10c)]))return 0x0;let {width:_0x12ce91=0x0,height:_0x325196=0x0,flipX:_0x4ed780=!0x1,flipY:_0x55324f=!0x1}=_0x294f3e['transform'];_0x50393c['updateContext']({'width':_0x12ce91,'height':_0x325196});let _0x3f94c4=_0x50393c[_0x1b772c(0x201)]()[_0x1b772c(0x218)](_0x28be57=>_0x28be57[_0x1b772c(0x2b9)]===_0x4b6a70);if(!_0x3f94c4)return 0x0;let _0x5efa5b=_0x3f94c4[_0x1b772c(0x26c)]/0xea60;return _0x4ed780&&(_0x5efa5b=0xb4-_0x5efa5b),_0x55324f&&(_0x5efa5b=-_0x5efa5b),_0x5efa5b=(_0x5efa5b%0x168+0x168)%0x168,_0x5efa5b;}[_0x43dbb9(0x14a)](){const _0x1bd162=_0x43dbb9;for(let _0x1c4009 of this[_0x1bd162(0x19a)])_0x1c4009[_0x1bd162(0x2dd)]();this[_0x1bd162(0x19a)]=[],this[_0x1bd162(0xf8)]=-0x1;}[_0x43dbb9(0x2dd)](){const _0x12cc18=_0x43dbb9;this[_0x12cc18(0x14a)](),super[_0x12cc18(0x2dd)]();}};mr=Z([X(0x1,_0x450bf3(_0x263af6)),X(0x2,_0x450bf3(_0x324617)),X(0x3,_0x450bf3(_0x26a217))],mr);let hr=class extends _0x4760b3{constructor(_0x33b1e7,_0x12b974,_0x43212c,_0x2c86b1,_0x4e1897){const _0x175a72=_0x43dbb9;super(),this[_0x175a72(0x209)]=_0x33b1e7,this[_0x175a72(0xe4)]=_0x12b974,this[_0x175a72(0x1e4)]=_0x43212c,this['_shapeService']=_0x2c86b1,this[_0x175a72(0x1e2)]=_0x4e1897,Y(this,'_copyInfo',void 0x0),this[_0x175a72(0x13e)](),this[_0x175a72(0x1d2)]();}get[_0x43dbb9(0x2ba)](){const _0x55536a=_0x43dbb9;return this[_0x55536a(0x1e4)][_0x55536a(0x27f)]();}[_0x43dbb9(0x1d2)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x2e47bf,fromSubUnitId:_0x50e800,toUnitId:_0x3c6749,toSubUnitId:_0x124be4,idMap:_0x28da81})=>{const _0x789b09=_0x449a;let _0x2c5a43=[],_0x356624=[];for(let [_0x23da29,_0x229113]of _0x28da81[_0x789b09(0xb5)]()){let _0x4cc6d0=this[_0x789b09(0x1ba)][_0x789b09(0x251)](_0x2e47bf,_0x50e800,_0x23da29);if(!_0x4cc6d0)continue;let _0x35d20f=_0x4cc6d0[_0x789b09(0x2ad)](),_0x14c4e4=JSON[_0x789b09(0x154)](JSON[_0x789b09(0x2d1)](_0x4cc6d0[_0x789b09(0x282)]()));if(_0x14c4e4[_0x789b09(0x270)]){var _0x64648c,_0x76cc93;let _0x5a9bad=(_0x64648c=_0x14c4e4['relation'][_0x789b09(0x23c)])==null?void 0x0:_0x64648c['shapeId'],_0x5279b1=(_0x76cc93=_0x14c4e4[_0x789b09(0x270)]['to'])==null?void 0x0:_0x76cc93[_0x789b09(0xfc)],_0x315e5e=_0x5a9bad?_0x28da81['has'](_0x5a9bad):!0x0,_0x5b04ad=_0x5279b1?_0x28da81[_0x789b09(0x2b0)](_0x5279b1):!0x0;_0x315e5e&&_0x5a9bad&&_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]?_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]={..._0x14c4e4['relation']['from'],'shapeId':_0x28da81['get'](_0x5a9bad)}:_0x14c4e4[_0x789b09(0x270)][_0x789b09(0x23c)]=void 0x0,_0x5b04ad&&_0x5279b1&&_0x14c4e4[_0x789b09(0x270)]['to']?_0x14c4e4[_0x789b09(0x270)]['to']={..._0x14c4e4['relation']['to'],'shapeId':_0x28da81['get'](_0x5279b1)}:_0x14c4e4[_0x789b09(0x270)]['to']=void 0x0;}_0x2c5a43[_0x789b09(0x241)]({'id':_0x5addb7['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113,'shapeType':_0x35d20f,'shapeData':_0x14c4e4}}),_0x356624['push']({'id':_0x35cadb['id'],'params':{'unitId':_0x3c6749,'subUnitId':_0x124be4,'shapeId':_0x229113}});}return{'redos':_0x2c5a43,'undos':_0x356624};});}[_0x43dbb9(0x13e)](){const _0x100c04=_0x43dbb9;this[_0x100c04(0x11b)](this[_0x100c04(0xe4)][_0x100c04(0x1c0)]({'id':_0x100c04(0x149),'onBeforeCopy':(_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0)=>{const _0x5a978a=_0x100c04;this[_0x5a978a(0x189)]=null;let _0x2e4ae5=this[_0x5a978a(0x2ba)];if(_0x2e4ae5[_0x5a978a(0x15f)]){let _0x2183d9=_0x2e4ae5[_0x5a978a(0xb6)](_0x30e0cd=>_0x30e0cd[_0x5a978a(0x2cb)]===_0x5d03f6[_0x5a978a(0x23a)]);if(_0x2183d9[_0x5a978a(0x15f)]===0x0)return;this[_0x5a978a(0x189)]={'unitId':_0x38f690,'subUnitId':_0x2242ab,'copyType':_0x276aa0,'drawings':_0x2183d9};}else this[_0x5a978a(0x12c)](_0x38f690,_0x2242ab,_0x3307d9,_0x276aa0);},'onPasteCells':(_0xf735ca,_0x277317,_0xc17230,_0x4517a1)=>{const _0x482fd5=_0x100c04;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x42d083}=_0x4517a1;return _0x42d083===_0x32e6c9[_0x482fd5(0x27a)]?this[_0x482fd5(0x2ab)](_0x277317,this[_0x482fd5(0x189)][_0x482fd5(0x1fc)]===_0x202be0[_0x482fd5(0xd2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x4ce6ff=>this[_0x100c04(0x189)]?this[_0x100c04(0x2ab)](_0x4ce6ff,this['_copyInfo'][_0x100c04(0x1fc)]===_0x202be0[_0x100c04(0xd2)]):{'redos':[],'undos':[]}}));}[_0x43dbb9(0x12c)](_0x421ce1,_0x165958,_0x9ea7d5,_0x1c713e){const _0x4307df=_0x43dbb9;let _0x11d473=this[_0x4307df(0x209)][_0x4307df(0x188)](_0x421ce1,_0x165958);if(!_0x11d473)return;let _0x44bbbc=_0x403c80(_0x11d473,_0x9ea7d5);if(!_0x44bbbc)return;let {startX:_0x54e704,endX:_0x58f0a8,startY:_0x32149e,endY:_0x1796fe}=_0x44bbbc,_0x56a0e0=this[_0x4307df(0x1e4)][_0x4307df(0x295)](_0x421ce1,_0x165958),_0xa53a75=this[_0x4307df(0x2ba)][_0x4307df(0x21f)]();for(let [_0x5f0fcd,_0x2a6592]of Object[_0x4307df(0xb5)](_0x56a0e0)){if(_0x2a6592[_0x4307df(0x2cb)]!==_0x5d03f6[_0x4307df(0x23a)])continue;let {transform:_0x1fa163}=_0x2a6592;if(!_0x1fa163)continue;let {left:_0x2e6c34=0x0,top:_0x48e3b8=0x0,width:_0x315367=0x0,height:_0x34c20f=0x0}=_0x1fa163;_0x54e704<=_0x2e6c34&&_0x58f0a8>=_0x2e6c34+_0x315367&&_0x32149e<=_0x48e3b8&&_0x1796fe>=_0x48e3b8+_0x34c20f&&_0xa53a75[_0x4307df(0x241)](_0x2a6592);}_0xa53a75[_0x4307df(0x15f)]>0x0&&(this[_0x4307df(0x189)]={'unitId':_0x421ce1,'subUnitId':_0x165958,'copyType':_0x1c713e,'copyRange':_0x9ea7d5,'drawings':_0xa53a75});}['_generatePasteMutations'](_0x3f2541,_0xbe21ed){const _0x2f3fec=_0x43dbb9;let {unitId:_0x15517c,subUnitId:_0x3bef1f,range:_0x2e39d0}=_0x3f2541,_0x4c4fa9=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x15517c,_0x3bef1f);if(!_0x4c4fa9)return{'redos':[],'undos':[]};let _0x518814=_0x25d2bc(_0x2e39d0),{unitId:_0x51b27d,subUnitId:_0x698b76,copyRange:_0x35eae8,drawings:_0x5b1d25}=this['_copyInfo'],_0x116274=this[_0x2f3fec(0x209)][_0x2f3fec(0x188)](_0x51b27d,_0x698b76);if(!_0x116274)return{'redos':[],'undos':[]};let _0x33ce89;if(!_0x35eae8){let _0x153669=0x1/0x0,_0x334bcd=0x1/0x0;for(let _0x330753 of _0x5b1d25){var _0x21ed7a;let {left:_0x593bf5=0x0,top:_0x1d664a=0x0}=(_0x21ed7a=_0x330753['transform'])==null?{}:_0x21ed7a;_0x593bf5<_0x153669&&(_0x153669=_0x593bf5),_0x1d664a<_0x334bcd&&(_0x334bcd=_0x1d664a);}_0x153669!==0x1/0x0&&_0x334bcd!==0x1/0x0&&(_0x33ce89={'left':_0x153669,'top':_0x334bcd});}let _0x32fa2d=new Map();if(!_0xbe21ed){for(let _0x426e5e of _0x5b1d25)_0x32fa2d[_0x2f3fec(0xd9)](_0x426e5e[_0x2f3fec(0x1a9)],_0x2bfd17());}let _0x1cac56=[],_0x5054a8=[];for(let _0x53cb9b of _0x5b1d25){let {drawingId:_0xdceec2,transform:_0x7b08fc,sheetTransform:_0x2fe2ad}=_0x53cb9b;if(!_0x7b08fc||!_0x2fe2ad)continue;let _0xb54ffd=this[_0x2f3fec(0x2c1)]({'transform':_0x7b08fc,'sheetTransform':_0x2fe2ad},{'skeleton':_0x116274,'range':_0x35eae8},{'skeleton':_0x4c4fa9,'range':_0x518814},_0x33ce89);if(_0xbe21ed){let {redos:_0x1ab04f,undos:_0x156576}=this['_generateCutPasteMutations']({'fromUnitId':_0x51b27d,'fromSubUnitId':_0x698b76,'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd});_0x1cac56[_0x2f3fec(0x241)](..._0x1ab04f),_0x5054a8[_0x2f3fec(0x241)](..._0x156576);continue;}let {redos:_0x14b42c,undos:_0x1b6199}=this[_0x2f3fec(0x164)]({'toUnitId':_0x15517c,'toSubUnitId':_0x3bef1f,'drawing':_0x53cb9b,'newTransforms':_0xb54ffd,'newDrawingId':_0x32fa2d[_0x2f3fec(0x1bd)](_0xdceec2),'idMap':_0x32fa2d});_0x1cac56['push'](..._0x14b42c),_0x5054a8[_0x2f3fec(0x241)](..._0x1b6199);}return{'redos':_0x1cac56,'undos':_0x5054a8};}[_0x43dbb9(0xe0)](_0xe47af6){const _0x5d9bc0=_0x43dbb9;let {fromUnitId:_0x586faf,fromSubUnitId:_0x4c16f1,toUnitId:_0x856385,toSubUnitId:_0x29a909,drawing:_0x454535,newTransforms:_0x33cbe5}=_0xe47af6,_0x33dd5f={..._0x454535,'unitId':_0x856385,'subUnitId':_0x29a909,'transform':_0x33cbe5[_0x5d9bc0(0x10c)],'sheetTransform':_0x33cbe5[_0x5d9bc0(0x195)]};if(_0x856385===_0x586faf&&_0x29a909===_0x4c16f1){let {redo:_0x419f49,undo:_0x3c2099,objects:_0x30c683}=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x256)]([_0x33dd5f]);return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be[_0x5d9bc0(0x298)],'op':_0x419f49,'objects':_0x30c683}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['UPDATE'],'op':_0x3c2099,'objects':_0x30c683}}]};}else{let _0x4e2414=this['_sheetDrawingService'][_0x5d9bc0(0xb2)]([_0x454535]),_0x183ef6=this[_0x5d9bc0(0x1e4)][_0x5d9bc0(0x2e4)]([_0x33dd5f]),_0x32336f=this[_0x5d9bc0(0x1ba)][_0x5d9bc0(0x251)](_0x454535[_0x5d9bc0(0x25d)],_0x454535['subUnitId'],_0x454535['drawingId']);if(!_0x32336f)return{'redos':[],'undos':[]};let _0x2400f6=_0x32336f[_0x5d9bc0(0x2ad)](),_0x3d370d=JSON[_0x5d9bc0(0x154)](JSON[_0x5d9bc0(0x2d1)](_0x32336f[_0x5d9bc0(0x282)]()));return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0xa9)],'op':_0x4e2414[_0x5d9bc0(0x1f2)],'objects':_0x4e2414[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535[_0x5d9bc0(0x1a9)]}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['INSERT'],'op':_0x183ef6[_0x5d9bc0(0x1f2)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x5addb7['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535[_0x5d9bc0(0x1a9)],'shapeType':_0x2400f6,'shapeData':_0x3d370d}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'type':_0x2640be[_0x5d9bc0(0x27b)],'op':_0x4e2414[_0x5d9bc0(0x245)],'objects':_0x4e2414['objects']}},{'id':_0x5addb7['id'],'params':{'unitId':_0x586faf,'subUnitId':_0x4c16f1,'shapeId':_0x454535['drawingId'],'shapeType':_0x2400f6,'shapeData':_0x3d370d}},{'id':_0x6d6f97['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'type':_0x2640be['REMOVE'],'op':_0x183ef6[_0x5d9bc0(0x245)],'objects':_0x183ef6[_0x5d9bc0(0x1d4)]}},{'id':_0x35cadb['id'],'params':{'unitId':_0x856385,'subUnitId':_0x29a909,'shapeId':_0x454535['drawingId']}}]};}}[_0x43dbb9(0x164)](_0x3c9c56){const _0x2191a7=_0x43dbb9;let {toUnitId:_0x4ea69f,toSubUnitId:_0x2b7b57,drawing:_0x34f738,newTransforms:_0x3f53eb,newDrawingId:_0x1d6826,idMap:_0x4e41ad}=_0x3c9c56,_0x3fe9e4={..._0x34f738,'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'drawingId':_0x1d6826,'transform':_0x3f53eb[_0x2191a7(0x10c)],'sheetTransform':_0x3f53eb[_0x2191a7(0x195)]},{redo:_0x55aa5a,undo:_0x2b8ea2,objects:_0x330836}=this[_0x2191a7(0x1e4)][_0x2191a7(0x2e4)]([_0x3fe9e4]),_0x339e7b=this[_0x2191a7(0x1ba)][_0x2191a7(0x251)](_0x34f738[_0x2191a7(0x25d)],_0x34f738['subUnitId'],_0x34f738['drawingId']);if(!_0x339e7b)return{'redos':[],'undos':[]};let _0x1e3228=_0x339e7b[_0x2191a7(0x2ad)](),_0x2d19bf=JSON[_0x2191a7(0x154)](JSON[_0x2191a7(0x2d1)](_0x339e7b[_0x2191a7(0x282)]()));if(_0x2d19bf['relation']){var _0xeb7bcb,_0x47ddbc;let _0x86c2e=(_0xeb7bcb=_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)])==null?void 0x0:_0xeb7bcb[_0x2191a7(0xfc)],_0x51b910=(_0x47ddbc=_0x2d19bf[_0x2191a7(0x270)]['to'])==null?void 0x0:_0x47ddbc[_0x2191a7(0xfc)],_0x1f5a86=_0x86c2e?_0x4e41ad[_0x2191a7(0x2b0)](_0x86c2e):!0x0,_0x34bdc0=_0x51b910?_0x4e41ad['has'](_0x51b910):!0x0;_0x1f5a86&&_0x86c2e&&_0x2d19bf[_0x2191a7(0x270)]['from']?_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]={..._0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x86c2e)}:_0x2d19bf[_0x2191a7(0x270)][_0x2191a7(0x23c)]=void 0x0,_0x34bdc0&&_0x51b910&&_0x2d19bf[_0x2191a7(0x270)]['to']?_0x2d19bf[_0x2191a7(0x270)]['to']={..._0x2d19bf[_0x2191a7(0x270)]['to'],'shapeId':_0x4e41ad[_0x2191a7(0x1bd)](_0x51b910)}:_0x2d19bf[_0x2191a7(0x270)]['to']=void 0x0;}return{'redos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['INSERT'],'op':_0x55aa5a,'objects':_0x330836}},{'id':_0x5addb7['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826,'shapeType':_0x1e3228,'shapeData':_0x2d19bf}}],'undos':[{'id':_0x6d6f97['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'type':_0x2640be['REMOVE'],'op':_0x2b8ea2,'objects':_0x330836}},{'id':_0x35cadb['id'],'params':{'unitId':_0x4ea69f,'subUnitId':_0x2b7b57,'shapeId':_0x1d6826}}]};}['_updateTransform'](_0x50ecfb,_0x2be6a1,_0x31c015,_0x4f82aa){const _0x3f0b90=_0x43dbb9;var _0x2c008b;let {range:_0x2c6ec6,skeleton:_0x254352}=_0x2be6a1,{range:_0x451faa,skeleton:_0x287cd5}=_0x31c015,{transform:_0x5d85dc,sheetTransform:_0x2d0e2f}=_0x50ecfb,_0x47ce3f={..._0x5d85dc};if(_0x2c6ec6){let _0x2ca90d=_0x403c80(_0x254352,_0x2c6ec6),_0x507672=_0x403c80(_0x287cd5,_0x451faa);if(_0x2ca90d&&_0x507672){var _0x30d9e2,_0x381965;let _0xa01cba=_0x507672['startX']-_0x2ca90d[_0x3f0b90(0x267)],_0x408285=_0x507672[_0x3f0b90(0x179)]-_0x2ca90d[_0x3f0b90(0x179)];_0x47ce3f[_0x3f0b90(0x11f)]=((_0x30d9e2=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x30d9e2)+_0xa01cba,_0x47ce3f[_0x3f0b90(0x16e)]=((_0x381965=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x381965)+_0x408285;}}else{let _0x446333=_0x403c80(_0x287cd5,_0x451faa);if(_0x4f82aa&&_0x446333){var _0x598a1b,_0x163d36;let _0x112585=((_0x598a1b=_0x47ce3f[_0x3f0b90(0x11f)])==null?0x0:_0x598a1b)-_0x4f82aa[_0x3f0b90(0x11f)],_0xd241f1=((_0x163d36=_0x47ce3f[_0x3f0b90(0x16e)])==null?0x0:_0x163d36)-_0x4f82aa[_0x3f0b90(0x16e)];_0x47ce3f['left']=_0x446333[_0x3f0b90(0x267)]+_0x112585,_0x47ce3f['top']=_0x446333['startY']+_0xd241f1;}else _0x47ce3f[_0x3f0b90(0x11f)]=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x267)],_0x47ce3f['top']=_0x446333==null?void 0x0:_0x446333[_0x3f0b90(0x179)];}return{'transform':_0x47ce3f,'sheetTransform':(_0x2c008b=_0x556f36(_0x47ce3f,_0x287cd5))==null?_0x2d0e2f:_0x2c008b};}};hr=Z([X(0x0,_0x450bf3(_0x1fc54d)),X(0x1,_0x450bf3(_0x5dfcb1)),X(0x2,_0x450bf3(_0x57e4c3)),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0x12c68f))],hr);var gr=class extends _0x300c3f{constructor(_0x23b32a,_0xc759e5){const _0x1ae9f3=_0x43dbb9;super(_0x23b32a,_0xc759e5),Y(this,_0x1ae9f3(0x249),null),Y(this,_0x1ae9f3(0x2ca),null),Y(this,'_unitId',null),Y(this,'_subUnitId',null),Y(this,_0x1ae9f3(0x168),!0x1),_0xc759e5&&this[_0x1ae9f3(0x152)](_0xc759e5);}[_0x43dbb9(0x1f1)](){const _0x174628=_0x43dbb9;return{'unitId':this[_0x174628(0x238)],'subUnitId':this[_0x174628(0x250)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x3edc58){const _0x5890ca=_0x43dbb9;_0x3edc58[_0x5890ca(0xfc)]!==void 0x0&&(this[_0x5890ca(0x249)]=_0x3edc58[_0x5890ca(0xfc)]),_0x3edc58['unitId']!==void 0x0&&(this[_0x5890ca(0x238)]=_0x3edc58[_0x5890ca(0x25d)]),_0x3edc58[_0x5890ca(0x212)]!==void 0x0&&(this[_0x5890ca(0x250)]=_0x3edc58[_0x5890ca(0x212)]),_0x3edc58[_0x5890ca(0xbd)]!==void 0x0&&(this[_0x5890ca(0x168)]=_0x3edc58[_0x5890ca(0xbd)]),this[_0x5890ca(0x1c7)]({'width':_0x3edc58[_0x5890ca(0xf7)],'height':_0x3edc58[_0x5890ca(0x1dc)]});}['_draw'](_0x5804c2){const _0x39f554=_0x43dbb9;_0x536c54['drawWith'](_0x5804c2,{'radius':_0x2bc8ec['cxnPointRadius'],'fill':_0x2bc8ec[_0x39f554(0x2ac)],'stroke':_0x2bc8ec[_0x39f554(0x194)],'strokeWidth':_0x2bc8ec[_0x39f554(0x19b)],'evented':!0x0});}};function _0x1d5d(){const _0x1dcde7=['TOP','activeSheet$','params','_menuManagerService','getShapeTextRect','disposeWithMe','sectionFloating','_commandExecutedListener','packageName','left','_addShapeConnectorHandlerObjects','viewportScrollX','_getSceneAndTransformerByDrawingSearch','registerCommand','clipByShape','_transform','#1a73e8','_baseWidth','scene','initTransformer','_imageIoService','setAdjustValueByName','_createCopyInfoByRange','_baseShapeTop','panel','onPointerDown$','removeLinePoints','smartArt','prstGeom','values','ObjectLayersIcon','sectionCanvas','symbol','StraightConnector1','_onSavingEditorData$','highlighted','getImage','_loadAndSetImage','_reset','sheets-shape-ui.toggleFlipV','_initCopyPaste','extensionGroups','adjHandleStroke','focusDrawing','setPresentation','SheetShapeTextEditorContainer','getActiveSheet','sheet.operation.close-sheet-shape-format-panel','_moveConnectorWithShape','registerFeatureMenu','getSheetBySheetId','sheets-shape-ui','_clearConnectionSites','setHighlighted','_getShapeAdjustInfosById','refreshAdjustControls','transformForAngle','_activeShapeId','getUnit','complete','setShapeProps','lineType','parse','_getZoomRatio','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_isShouldShowDrawingShapeAdjust','_showConnectionSites','_formulaKey','resetCursor','_updateImageAdjValues','_getScrollInfo','makeDirty','_getOrCreateShapeModel','length','getInterceptPoints','getConnectorLinePoints','cxnIndex','_initEvents','_generateCopyPasteMutations','getCurrentUnitOfType','next','translate','_isStartConnectorPoint','_activeImageId','string','shapeKey','rect','_currentConnectionTarget','top','_activeTargetShapeId','getValue','getDrawingByParam','getUnitType','updateConnectionDetection','changeEnd$','getActualSize','_shapes','point','type','startY','formulaBinding','editingParams$','subscribeEvent','_formulaAnimation','add$','getScene','calcAdjValue','ShapeIcon','completeEditing','localeService','onTransformChange$','strokeWidth','_clearControls','getCurrentLastSelection','getSkeleton','_copyInfo','adjName','setShouldShowAdjust','changing$','getShapePopupMenus','doc.image-clip.shape-picker.component','getConnectionInfo','_getImagePrstGeom','_isOpenedShapeEditPanel','shape-text-','syncExecuteCommand','cxnPointStroke','sheetTransform','order','description','getPresentation','text','_connectionSiteObjects','cxnPointStrokeWidth','getRenderById','classType','_addShapeConnectorHandlerObject','_handleConnectedEndpointPointerUp','getDrawingOrder','_cxtHandlerPointerMove','setFillImage','endArrow','setShapeData','image','_getImageDrawingInfo','getAllUnitsForType','_shapeTextEditingService','drawingId','#FFFFFF','connector-handler-','function','_registerMoveHandler','_editingParams$','973cllLEH','includes','_clipService','getBentTypeFromPoints','disableShapeOption','_props','_executeResizeCommand','preValue','getImageSourceCache','disableObjectsEvent','getMatrix','_shapeService','title','DRAWING_SMART_ART','get','extraProps','onPointerUp$','addClipboardHook','dom','formulaPresentation','custom','name','fontSize','getZoomRatio','transformByState','_createControls','setContextValue','_localeService','Line','toPrimitive','None','popup','shapeText','_configService','actualHeight','_registerGroupFeaturePasteHook','_disposePopups','objects','_sidebarService','3219324WeaEuO','_cxnIndex','sheets-shape-ui.openPanel','getParent','Medium','VIEW_MAIN_LEFT_TOP','height','unsubscribe','getObjectIncludeInGroup','_rerouteConnectorLine','UNIVER_SHEET','38524EuhNNl','_groupCopyPasteController','_getConnectPointInfo','_sheetDrawingService','_clearShapeAdjustControls','sin','renderDrawingShape','VIEW_MAIN_TOP','updateShapeFillImage','_activeShapeInfo','_adjName','_getShapeAdjustPointListById','isRichText','fill','56840dKLBpW','_initSelection','getDrawingSearch','redo','draw','_injector','Rect','VIEW_MAIN_LEFT','onCommandExecuted','data','getEditing','_adjHandlerPointerMove','SolidLine','copyType','save','video','_sheetsShapeService','forEach','getConnectionSiteList','887381TuLBac','_initPrinting','refreshShapeFillImage','sheets-shape-ui.objectListPanel.open','isEditing','selectable','_initMenu','_sheetSkeletonService','DRAWING_IMAGE','scale','_activeShapeAdjustPointList','onDblclick$','top-center','setSrcRect','call','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','subUnitId','_clearPopups','pick','targetShapeId','_contextService','startConnectionDetection','find','flipY','_updateAdjustControlPositions','_createShapeAdjustControls','clipHeight','bind','register','slice','sheet.image-clip.shape-picker.component','_shapeFormulaService','color','div','prstGeomAdjValues','_createShapePopupMenu','_popupMenuListener','sheet.shape.floating-toolbar','rotation','animationEnabled','_handleConnectedEndpointMove','_activeShapeModel','applyPoint','_getDrawingRect','_targetShapeId','restore','getDrawingVisible','focus$','contentHeight','_baseHeight','setPrstGeom','_registerDrawingMoveHandler','end','hidden','_unitId','_iconManager','DRAWING_SHAPE','invert','from','_closeShapeEditPanel','DRAWING_VIDEO','viewportScrollY','getCurrentTypeOfUnit$','push','fillType','connection-site-','_calculateFreeEndpointAngle','undo','_updateShapeAdjustControls','gdRefY','onRendered','_shapeId','sheets-shape-ui.deleteShape','onPointerMove$','sheet.shape.object-list.panel','pipe','sheets-shape-text-','_draggingConnectorId','_subUnitId','getShapeModel','unregister','indexOf','_registerDrawingFocusChangeHandler','getSkeletonParam','getBatchUpdateOp','_activeAdjustInfo','_isStartAdjusting','clip-adj-','_cxtHandlerPointerUp','_resetState','enableObjectsEvent','unitId','_handleConnectorPointerUp','close','_baseShapeLeft','clip-','10966311OoZOuw','_lastEditingShapeKey','calculate','_registerComponents','getDrawingDataForUnit','startX','axisAlignSheetTransform','OPERATION','stopPropagation','value','ang','SELECTOR','_sheetShapeAdjustController','UNIVER_DOC','relation','isArray','getRealBound','localToWorld','_sheetPrintInterceptorService','getDrawingPoints','_adjHandlerPointerUp','URL','pushUndoRedo','getTransformer','DEFAULT_PASTE','INSERT','setCanUseShapeClip','VIEW_MAIN','_formulaShapes','getFocusDrawings','decorate','sheet.shape.picker.component','getShapeData','_baseLeft','_init','_commandService','sheetViewStartColumn','skeleton','offsetX','beforeCommandExecuted','normal','startArrow','_registerIcons','activeAnObject','_openShapeEditPanel','subscribe','registerFeatureMenuOffset','open','_isImagePointerDown','keys','stroke','getDrawingData','sheetViewStartRow','getOwnPropertyDescriptor','UPDATE','updateLinePoints','map','_getConnectionSiteAngle','dataModel','isHitLine','_initSheetChange','getAdjustValueByName','9648175LVZHZH','intercept','image-clip-adjust-point-','_initPermission','getEndConnectInfo','clear','onerror','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','reduce','prototype','isDrawingObject','_generatePasteMutations','cxnPointFill','getShapeType','getAdjustInfoByName','_insertShapes','has','delete','_baseShapeWidth','_isHighlighted','_drawRichTextLayer','_baseDrawingRect','render','111VBDsRH','abs','index','_focusedDrawings','attachTransformerTo','initShapePopupMenu','_connectorObjects','error','_updateSrcRectByTransform','worldPoints','_updateTransform','buildClipPath','_initEditingParams','_executeConnectedRouteConnectionCommand','_getShapeInfo','trim','worldPoint','interceptor','getSelectedObjectMap','_index','drawingType','visible','_activeAdjustPointList','default','object','executeCommand','stringify','_addControl','getDrawingEditable','_clearShapeConnectorHandlerObjects','flipX','sheets-shape-ui.rotateRight90','getCurrentScrollState','_registerFocusChangeHandler','_sheetDrawingShapeRenderController','_sidebarDisposable','clip','animateFormulaPresentation','dispose','gdRefAng','setConfig','_attachAdjustEvent','angle','fillImageSource','clearAdjustControls','getBatchAddOp','gdRefR','permissionCheckWithoutRange','sheet.shape.edit.panel','srcRect','_executeConnectionCommand','with','_registerShapeMenu','COMMAND','DRAWING_UNIT','getTransformerByCreate','marginTop','adjHandleSize','_renderManagerService','9576204dWNJTb','changeStart$','fontFamily','ancestorTransform','constructor','DRAWING_CHART','presentationChanged$','_baseShapeHeight','resize','composeMatrix','_baseTop','addImageSourceCache','Arrow','_isConnecting','onSteady','SHAPE_TEXT','worldRect','createControl$','sheets-shape-ui.rotateLeft90','contentVerticalOffset','create','isHighlighted','_config','getDrawingOKey','_isDrawingShapePointDown','_findNearestConnectionSite','setCursor','getSheetId','getCurrentSkeleton','cxnPointRadius','canvas','_urlImageService','isInGroup','REMOVE','_transformCalculateSrcRect','sheets-shape-ui.objectListPanel.title','refreshFormulaPresentation','getObject','changeShapeType','_loadShapePictureFill','_sheetPermissionCheckController','_hasReset','getBatchRemoveOp','DRAWING_DOM','size','entries','filter','mergeMenu','getUnitId','gradientEndColor','offsetY','_findShapeAtPoint','computeConnectorResizeLayout','isStartConnectorPoint','_shapeUpdateListener','_sheetCanvasPopManagerService','shapeModel','getShapeTextData','_initialize','gdRefX','_drawRichText','horizontal','viewBound','setEditing','interceptCommand','_shapeEditPanelVersion','getAutoFitPresentations','_addShapeAdjustControl','_drawingManagerService','_univerInstanceService','onReady','multiply','_draw','isHorizontal','CUT','clipTop','defineProperty','translateWithPrecision','remove$','univer-box-border\x20univer-px-4\x20univer-text-sm','beginPath','set','DRAWING_TABLE','_handleFreeEndpointPointerUp','setFormulaPresentation','_initCommands','getState','forward','_generateCutPasteMutations','registerRenderModule','setOnSavingEditorData','shape-adjust-point-','_sheetClipboardService','doc','sheets-shape-ui.config','_registerOperations','oKey','addObject','_sheetBasicShapeConnectionPointController','getShapeDataById','MEDIA','isLineShape','clearControl$','adjustValues','Large','1.0.0-alpha.7','_shapeRenderController','sheet.command.update-shape-data','parent','BUTTON','GROUP','width','_highlightedSiteIndex','_imageShapeClipController','@univerjs-pro/sheets-shape-ui','_context','shapeId','sheet.operation.open-sheet-shape-format-panel','sheets-shape-ui.imagePanel.crop.shape','sheets-shape-ui.formatShape','_attachConnectorObjectEvent','FromArray','isHit','_componentManager','updateContext','update$','shapeData','_insertingShapeKeys','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cos','sheet.command.menu-insert-shape','add','transform','_applyFormulaAutoFitSize','asObservable','version','#bcbcbc','pluginName','_currentUniverService','_currentScene','_drawingAddListener','vertical'];_0x1d5d=function(){return _0x1dcde7;};return _0x1d5d();}let _r=class extends _0x4760b3{constructor(_0x2dc4ca,_0x57da97,_0x38f069,_0x1c42f7,_0x380ed9,_0x1ebd7f,_0x44b618,_0x469ce5){const _0xe63181=_0x43dbb9;super(),this[_0xe63181(0xfb)]=_0x2dc4ca,this['_commandService']=_0x57da97,this['_renderManagerService']=_0x38f069,this[_0xe63181(0xcc)]=_0x1c42f7,this[_0xe63181(0xcd)]=_0x380ed9,this[_0xe63181(0x1ff)]=_0x1ebd7f,this[_0xe63181(0x26e)]=_0x44b618,this[_0xe63181(0xea)]=_0x469ce5,Y(this,_0xe63181(0x14f),void 0x0),Y(this,_0xe63181(0x238),void 0x0),Y(this,_0xe63181(0x250),void 0x0),Y(this,_0xe63181(0x2bd),[]),Y(this,_0xe63181(0x2b5),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0xe63181(0x22b),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0xe63181(0xb1),!0x1),Y(this,_0xe63181(0x1a1),void 0x0),Y(this,_0xe63181(0x25a),void 0x0),Y(this,_0xe63181(0x16d),null),this['_initialize']();}[_0x43dbb9(0xc2)](){const _0x40d2da=_0x43dbb9;this[_0x40d2da(0x254)](),this[_0x40d2da(0x235)]();}[_0x43dbb9(0x22d)](){const _0x35f9d1=_0x43dbb9;if(!this[_0x35f9d1(0x238)]||!this[_0x35f9d1(0x250)]||!this[_0x35f9d1(0x14f)])return;let _0x5ccec3={'unitId':this[_0x35f9d1(0x238)],'subUnitId':this[_0x35f9d1(0x250)],'drawingId':this[_0x35f9d1(0x14f)]},{transform:_0x3f6480}=this[_0x35f9d1(0xcc)][_0x35f9d1(0x171)](_0x5ccec3);if(_0x3f6480)return{'left':_0x3f6480['left']||0x0,'top':_0x3f6480[_0x35f9d1(0x16e)]||0x0,'width':_0x3f6480['width']||0x0,'height':_0x3f6480[_0x35f9d1(0x1dc)]||0x0,'flipX':_0x3f6480[_0x35f9d1(0x2d5)]||!0x1,'flipY':_0x3f6480['flipY']||!0x1,'angle':_0x3f6480['angle']};}[_0x43dbb9(0x120)](){const _0x5e183a=_0x43dbb9;if(this[_0x5e183a(0x238)]===void 0x0||this[_0x5e183a(0x250)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x37794a=this['_renderManagerService'][_0x5e183a(0x19c)](this[_0x5e183a(0x238)]);if(!_0x37794a||!_0x37794a['with'](_0x392ff0)[_0x5e183a(0xa4)]())return;let {scene:_0x2ed470}=_0x37794a,_0x1c6d37=this[_0x5e183a(0x22d)]();if(!_0x1c6d37)return;let _0x40bfd3=this[_0x5e183a(0x1ff)][_0x5e183a(0x251)](this['_unitId'],this[_0x5e183a(0x250)],this[_0x5e183a(0x14f)]);if(!_0x40bfd3||!_0x1f7f23(_0x40bfd3['getShapeType']()))return;let _0x37b10c=_0x40bfd3['getConnectorLinePoints']();if(_0x37b10c[_0x5e183a(0x15f)]<0x2)return;let _0x101e36=new _0x427c58(_0x1c6d37),_0x2db088=_0x37b10c[0x0],_0x34058c=_0x37b10c[_0x37b10c['length']-0x1],_0x21fe47=_0x101e36['localToWorld'](_0x2db088),_0x3eb886=_0x101e36['localToWorld'](_0x34058c);this[_0x5e183a(0x19e)](_0x2ed470,{..._0x21fe47},!0x0),this[_0x5e183a(0x19e)](_0x2ed470,{..._0x3eb886},!0x1);}['_addShapeConnectorHandlerObject'](_0x1d9dba,_0x3349df,_0x5a0e15){const _0x4d2d24=_0x43dbb9;if(this[_0x4d2d24(0x14f)]===void 0x0||this[_0x4d2d24(0x238)]===void 0x0||this[_0x4d2d24(0x250)]===void 0x0)return;let _0x144bf7=_0x4d2d24(0x1ab)+this[_0x4d2d24(0x238)]+'-'+this[_0x4d2d24(0x250)]+'-'+this[_0x4d2d24(0x14f)]+'-'+(_0x5a0e15?'start':_0x4d2d24(0x236)),_0x236cd1=_0x1d9dba[_0x4d2d24(0x1de)](_0x144bf7);if(_0x236cd1){_0x236cd1[_0x4d2d24(0x1c7)]({'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)]});return;}let _0x18835b=new gr(_0x144bf7,{'left':_0x3349df['x']-_0x2bc8ec[_0x4d2d24(0xa5)],'top':_0x3349df['y']-_0x2bc8ec[_0x4d2d24(0xa5)],'shapeId':this[_0x4d2d24(0x14f)],'unitId':this[_0x4d2d24(0x238)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x5a0e15,'width':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'height':_0x2bc8ec[_0x4d2d24(0xa5)]*0x2,'zIndex':_0x11332b+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x18835b),this[_0x4d2d24(0x100)](_0x18835b,_0x1d9dba,_0x5a0e15),_0x1d9dba[_0x4d2d24(0xe9)](_0x18835b,_0x11332b+0x1);}[_0x43dbb9(0x15c)](_0x3ff9ef,_0x169f08){const _0x38d5d8=_0x43dbb9;var _0x1eeb30;let _0x155e7f={'x':0x0,'y':0x0};if(!_0x3ff9ef||!_0x169f08)return _0x155e7f;let _0x58341b=this[_0x38d5d8(0x87)][_0x38d5d8(0x19c)](_0x3ff9ef);if(!_0x58341b||!_0x58341b['with'](_0x392ff0)[_0x38d5d8(0x188)](_0x169f08))return _0x155e7f;let _0x2a3c8c=_0x58341b[_0x38d5d8(0x2ea)](_0xdbee74),_0x1c4a2e=_0x2a3c8c==null?void 0x0:_0x2a3c8c[_0x38d5d8(0x2d7)]();if(!_0x1c4a2e)return _0x155e7f;let _0x186e30=(_0x1eeb30=this['_univerInstanceService'][_0x38d5d8(0x150)](_0x3ff9ef))==null?void 0x0:_0x1eeb30['getSheetBySheetId'](_0x169f08);if(!_0x186e30)return _0x155e7f;let _0x5ce9ca=_0x1b930d(_0x1c4a2e[_0x38d5d8(0x296)],_0x1c4a2e[_0x38d5d8(0x286)],_0x58341b['scene'],_0x186e30);return _0x5ce9ca?{'x':_0x5ce9ca[_0x38d5d8(0x121)],'y':_0x5ce9ca['viewportScrollY']}:_0x155e7f;}[_0x43dbb9(0x155)](_0x3335a7,_0x1560ce){const _0x37808b=_0x43dbb9;var _0x25290a,_0x183f8f;let _0x267c2b=(_0x25290a=this[_0x37808b(0xcd)]['getUnit'](_0x3335a7))==null?void 0x0:_0x25290a[_0x37808b(0x148)](_0x1560ce);return(_0x183f8f=_0x267c2b==null?void 0x0:_0x267c2b[_0x37808b(0x1c6)]())==null?0x1:_0x183f8f;}[_0x43dbb9(0x25e)](_0x2a0be4,_0x5964c4,_0x254167,_0x50b301,_0x2b7f54){const _0x944662=_0x43dbb9;this[_0x944662(0x1a1)]['unsubscribe'](),this[_0x944662(0x25a)][_0x944662(0x1dd)](),this[_0x944662(0x26e)][_0x944662(0x14d)]();let _0x39ee8d=this[_0x944662(0x16d)];this[_0x944662(0xea)]['endConnectionDetection']();let _0x1d210d=this[_0x944662(0x15c)](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x590e90=this['_getZoomRatio'](this[_0x944662(0x238)],this[_0x944662(0x250)]),_0x35cabf={'x':_0x254167[_0x944662(0x288)]/_0x590e90+_0x1d210d['x'],'y':_0x254167[_0x944662(0xba)]/_0x590e90+_0x1d210d['y']},_0x462d33=_0x39ee8d?_0x39ee8d[_0x944662(0x2c7)]:_0x35cabf,_0x275384=_0x50b301?this[_0x944662(0x22b)][_0x944662(0x2a4)]():this[_0x944662(0x22b)]['getStartConnectInfo'](),_0x171e8c=this[_0x944662(0x22b)]['getShapeType']();_0x275384?this[_0x944662(0x19f)](_0x275384,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54):this[_0x944662(0xdb)](_0x5964c4,_0x462d33,_0x50b301,_0x39ee8d,_0x2b7f54,_0x171e8c),this[_0x944662(0x95)]=!0x1,this[_0x944662(0xb1)]=!0x1,this[_0x944662(0x16d)]=null,_0x2a0be4['enableObjectsEvent']();}[_0x43dbb9(0xdb)](_0x29f455,_0x20aff4,_0x3298a3,_0x1fdc5d,_0x534298,_0x520e14){const _0x4c0735=_0x43dbb9;let _0x250123=_0x520e14===_0x250922[_0x4c0735(0x1cb)]||_0x520e14===_0x250922[_0x4c0735(0x137)],_0x506d03=_0x3298a3?_0x20aff4:_0x29f455,_0xe7dbdf=_0x3298a3?_0x29f455:_0x20aff4,_0x4db2e5=this['_activeShapeModel'][_0x4c0735(0x161)](),_0x2bd35a=_0x2e1471(this['_activeShapeModel'][_0x4c0735(0x2ad)]()),_0x1db243=_0x427c58[_0x4c0735(0x1b2)](_0x4db2e5,_0x2bd35a),_0x471611=_0x250123?_0x427c58['computeStraightConnectorLayout'](_0x506d03,_0xe7dbdf):_0x427c58[_0x4c0735(0xbc)](_0x29f455,_0x20aff4,_0x3298a3,_0x1db243);_0x1fdc5d?this[_0x4c0735(0x2e9)](_0x471611,_0x1fdc5d,_0x3298a3,_0x534298):this[_0x4c0735(0x1b5)](_0x471611,_0x534298);}[_0x43dbb9(0x19f)](_0x55b29a,_0x481dd1,_0x532a62,_0xa13e98,_0x2aa2bc){const _0x4980d8=_0x43dbb9;let _0x560e50=this[_0x4980d8(0x1e3)](_0x55b29a);if(!_0x560e50)return;let _0x5da971=_0xa13e98?_0xa13e98['angle']:this[_0x4980d8(0x244)](_0x560e50[_0x4980d8(0x177)],_0x481dd1),_0x2fb355;if(_0xa13e98){let _0x2f291a=this[_0x4980d8(0xcc)][_0x4980d8(0x171)]({'unitId':_0xa13e98[_0x4980d8(0x25d)],'subUnitId':_0xa13e98[_0x4980d8(0x212)],'drawingId':_0xa13e98[_0x4980d8(0xfc)]});if(_0x2f291a!=null&&_0x2f291a[_0x4980d8(0x10c)]){let {left:_0x1dcd57=0x0,top:_0x56477a=0x0,width:_0x185b55=0x0,height:_0x4655cf=0x0,angle:_0x59fe82}=_0x2f291a['transform'];_0x2fb355=_0x15c292({'left':_0x1dcd57,'top':_0x56477a,'width':_0x185b55,'height':_0x4655cf},_0x59fe82||0x0);}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};}else _0x2fb355={'left':_0x481dd1['x'],'top':_0x481dd1['y'],'width':0x0,'height':0x0};let _0x235461={'point':_0x481dd1,'angle':_0x5da971,'bounds':_0x2fb355},_0x28c1f6=_0x532a62?_0x235461:_0x560e50,_0x5703e4=_0x532a62?_0x560e50:_0x235461,_0x4dd0c1=this[_0x4980d8(0x22b)]['getShapeType'](),_0x5431d3=_0xde601c(_0x28c1f6,_0x5703e4,_0x4dd0c1);this['_activeShapeModel'][_0x4980d8(0x130)]();let _0x5250e6=_0x3de713(_0x5431d3,_0x4dd0c1);_0xa13e98?this[_0x4980d8(0x2c4)](_0x5250e6,_0xa13e98,_0x55b29a,_0x532a62,_0x2aa2bc):this['_executeConnectedRouteResizeCommand'](_0x5250e6,_0x55b29a,_0x532a62,_0x2aa2bc);}[_0x43dbb9(0x2e9)](_0x630a6f,_0x143431,_0x4aa354,_0x1ef7c9){const _0x544360=_0x43dbb9;let _0x24836c=this[_0x544360(0x22b)][_0x544360(0x282)]()['relation'],_0x17bbea={..._0x24836c},_0xee2ec6={'shapeId':_0x143431[_0x544360(0xfc)],'cxnIndex':_0x143431['cxnIndex']};_0x4aa354?_0x17bbea[_0x544360(0x23c)]=_0xee2ec6:_0x17bbea['to']=_0xee2ec6;let _0x4db0f2=this[_0x544360(0x22b)][_0x544360(0x2ad)](),_0x5150f5=_0x3de713(_0x630a6f[_0x544360(0x2c0)],_0x4db0f2),_0x344cb6={'unitId':this['_unitId'],'subUnitId':this[_0x544360(0x250)],'connectorShapeId':this[_0x544360(0x14f)],'width':_0x630a6f[_0x544360(0x98)][_0x544360(0xf7)],'height':_0x630a6f['worldRect'][_0x544360(0x1dc)],'left':_0x630a6f[_0x544360(0x98)][_0x544360(0x11f)],'top':_0x630a6f[_0x544360(0x98)][_0x544360(0x16e)],'flipX':_0x630a6f['worldRect'][_0x544360(0x2d5)]||!0x1,'flipY':_0x630a6f[_0x544360(0x98)]['flipY']||!0x1,'newAdjustValues':_0x5150f5[_0x544360(0xef)],'oldAdjustValues':_0x1ef7c9,'oldRelation':_0x24836c,'newRelation':_0x17bbea,'newLineType':_0x5150f5[_0x544360(0x153)],'oldLineType':_0x4db0f2};this[_0x544360(0x285)][_0x544360(0x2d0)](_0x551591['id'],_0x344cb6);}[_0x43dbb9(0x1b5)](_0x25ca84,_0x44c709){const _0x225afe=_0x43dbb9;let _0x2e1f3f=this[_0x225afe(0x22b)][_0x225afe(0x2ad)](),_0x47b3a3=_0x3de713(_0x25ca84[_0x225afe(0x2c0)],_0x2e1f3f),_0x192a65={'unitId':this['_unitId'],'subUnitId':this[_0x225afe(0x250)],'shapeId':this[_0x225afe(0x14f)],'width':_0x25ca84['worldRect'][_0x225afe(0xf7)],'height':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x1dc)],'left':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x11f)],'top':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x16e)],'flipX':_0x25ca84[_0x225afe(0x98)][_0x225afe(0x2d5)]||!0x1,'flipY':_0x25ca84['worldRect'][_0x225afe(0x219)]||!0x1,'angle':_0x25ca84[_0x225afe(0x98)]['angle']||0x0,'newAdjustValues':_0x47b3a3[_0x225afe(0xef)],'oldAdjustValues':_0x44c709,'newLineType':_0x47b3a3['lineType'],'oldLineType':_0x2e1f3f};this[_0x225afe(0x285)][_0x225afe(0x2d0)](_0x5760d5['id'],_0x192a65);}['_executeConnectedRouteConnectionCommand'](_0x490d02,_0x2934ff,_0x3a6b1a,_0x3547d6,_0x3688af){const _0x15c893=_0x43dbb9;let _0x350bc0=this[_0x15c893(0x22b)][_0x15c893(0x282)]()[_0x15c893(0x270)],_0x2278a4={..._0x350bc0},_0x3fe59f={'shapeId':_0x2934ff['shapeId'],'cxnIndex':_0x2934ff[_0x15c893(0x162)]};_0x3547d6?(_0x2278a4['from']=_0x3fe59f,_0x2278a4['to']=_0x3a6b1a):(_0x2278a4[_0x15c893(0x23c)]=_0x3a6b1a,_0x2278a4['to']=_0x3fe59f);let _0x4c741b={'unitId':this[_0x15c893(0x238)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x15c893(0x14f)],'width':_0x490d02[_0x15c893(0x98)]['width'],'height':_0x490d02['worldRect']['height'],'left':_0x490d02['worldRect']['left'],'top':_0x490d02['worldRect'][_0x15c893(0x16e)],'flipX':_0x490d02[_0x15c893(0x98)]['flipX']||!0x1,'flipY':_0x490d02[_0x15c893(0x98)][_0x15c893(0x219)]||!0x1,'oldAdjustValues':_0x3688af,'newAdjustValues':_0x490d02[_0x15c893(0xef)],'newLineType':_0x490d02[_0x15c893(0x153)],'rotation':_0x490d02[_0x15c893(0x228)],'oldRelation':_0x350bc0,'newRelation':_0x2278a4};this[_0x15c893(0x285)]['executeCommand'](_0x551591['id'],_0x4c741b);}['_executeConnectedRouteResizeCommand'](_0x75bd26,_0xd41554,_0x259a64,_0x2e5eb6){const _0x166830=_0x43dbb9;let _0x2234b6=this[_0x166830(0x22b)][_0x166830(0x282)]()[_0x166830(0x270)],_0x24a345={};_0x259a64?(_0x24a345['to']=_0xd41554,_0x24a345['from']=void 0x0):(_0x24a345[_0x166830(0x23c)]=_0xd41554,_0x24a345['to']=void 0x0);let _0x3bc165={'unitId':this[_0x166830(0x238)],'subUnitId':this[_0x166830(0x250)],'connectorShapeId':this[_0x166830(0x14f)],'width':_0x75bd26[_0x166830(0x98)][_0x166830(0xf7)],'height':_0x75bd26[_0x166830(0x98)][_0x166830(0x1dc)],'left':_0x75bd26[_0x166830(0x98)]['left'],'top':_0x75bd26['worldRect'][_0x166830(0x16e)],'flipX':_0x75bd26[_0x166830(0x98)][_0x166830(0x2d5)]||!0x1,'flipY':_0x75bd26[_0x166830(0x98)][_0x166830(0x219)]||!0x1,'oldAdjustValues':_0x2e5eb6,'newAdjustValues':_0x75bd26[_0x166830(0xef)],'newLineType':_0x75bd26[_0x166830(0x153)],'rotation':_0x75bd26['rotation'],'oldRelation':_0x2234b6,'newRelation':_0x24a345};this[_0x166830(0x285)][_0x166830(0x2d0)](_0x551591['id'],_0x3bc165);}[_0x43dbb9(0x100)](_0x163b2e,_0x5db01e,_0x22b813){const _0x40ee20=_0x43dbb9;this[_0x40ee20(0x11b)](_0x43b296(_0x163b2e[_0x40ee20(0x12f)][_0x40ee20(0x17c)]((_0x554bc0,_0x542cf1)=>{const _0x124da5=_0x40ee20;let _0x40c5a4=_0x163b2e[_0x124da5(0x1f1)]();if(this['_activeShapeModel']=this[_0x124da5(0x1ff)]['getShapeModel'](_0x40c5a4[_0x124da5(0x25d)],_0x40c5a4['subUnitId'],_0x40c5a4['drawingId']),!this[_0x124da5(0x22b)])return;let _0x1a886b={};this[_0x124da5(0x22b)]['getAdjustNames']()['forEach'](_0x40d238=>{let _0x34cbf8=this['_activeShapeModel']['getAdjustValueByName'](_0x40d238);_0x34cbf8!==void 0x0&&(_0x1a886b[_0x40d238]=_0x34cbf8);});let _0x504362=this[_0x124da5(0x22d)]();if(!_0x504362)return;this[_0x124da5(0x2b5)]={..._0x504362};let _0x58f9bb=new _0x427c58(this[_0x124da5(0x2b5)]),_0x28d1c6=_0x7f2912({'unitId':this[_0x124da5(0x238)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x124da5(0x14f)]}),_0x46d1ce=_0x5db01e[_0x124da5(0x1de)](_0x28d1c6);this[_0x124da5(0x95)]=!0x0,_0x5db01e[_0x124da5(0x1b8)](),this[_0x124da5(0xea)][_0x124da5(0x217)](_0x5db01e,this[_0x124da5(0x238)],this[_0x124da5(0x250)],this[_0x124da5(0x14f)]),this[_0x124da5(0x16d)]=null;let _0x1d6bd7=this['_activeShapeModel'][_0x124da5(0x161)](),_0x2dc9ac=_0x1d6bd7[0x0],_0x5ab85e=_0x1d6bd7[_0x1d6bd7[_0x124da5(0x15f)]-0x1],_0x2d2498=_0x22b813?_0x58f9bb['localToWorld'](_0x5ab85e):_0x58f9bb[_0x124da5(0x273)](_0x2dc9ac);this['_cxtHandlerPointerMove']=_0x5db01e[_0x124da5(0x24b)][_0x124da5(0x17c)]((_0x393999,_0x5ec391)=>{const _0xaaf38c=_0x124da5;if(!this[_0xaaf38c(0x95)]||!this['_activeShapeModel'])return;this['_hasReset']||(this['_sheetShapeAdjustController'][_0xaaf38c(0x2e3)](),this[_0xaaf38c(0x22b)]['clearAdjustValue'](),this['_hasReset']=!0x0);let _0x35b7a9=this[_0xaaf38c(0x15c)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x47a98c=this[_0xaaf38c(0x155)](this[_0xaaf38c(0x238)],this[_0xaaf38c(0x250)]),_0x3d067b={'x':_0x393999[_0xaaf38c(0x288)]/_0x47a98c+_0x35b7a9['x'],'y':_0x393999[_0xaaf38c(0xba)]/_0x47a98c+_0x35b7a9['y']},_0xaef58a=this[_0xaaf38c(0xea)][_0xaaf38c(0x173)](_0x3d067b);if(_0xaef58a){let {shapeId:_0x500729,unitId:_0x31e3d5,subUnitId:_0x4a703e}=_0xaef58a;if(_0x500729&&_0x31e3d5&&_0x4a703e){let _0x329009=_0x7f2912({'unitId':_0x31e3d5,'subUnitId':_0x4a703e,'drawingId':_0x500729});_0xaef58a[_0xaaf38c(0x2e1)]=(_0x5db01e[_0xaaf38c(0x1de)](_0x329009)[_0xaaf38c(0x2e1)]||0x0)+_0xaef58a[_0xaaf38c(0x2e1)];}}this[_0xaaf38c(0x16d)]=_0xaef58a;let _0x5967a7=_0x22b813?this[_0xaaf38c(0x22b)][_0xaaf38c(0x2a4)]():this[_0xaaf38c(0x22b)]['getStartConnectInfo']();if(_0x5967a7){this['_handleConnectedEndpointMove'](_0x5967a7,_0x3d067b,_0x22b813,_0x46d1ce,_0x163b2e);return;}this['_handleFreeEndpointMove'](_0x3d067b,_0x2d2498,_0x22b813,_0x46d1ce,_0x163b2e);}),this[_0x124da5(0x25a)]=_0x5db01e['onPointerUp$'][_0x124da5(0x17c)]((_0x19ce8b,_0x30ee31)=>{const _0x2a97aa=_0x124da5;this[_0x2a97aa(0x25e)](_0x5db01e,_0x2d2498,_0x19ce8b,_0x22b813,_0x1a886b);}),_0x542cf1[_0x124da5(0x26a)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0xe1bae3,_0x3d1aac,_0x37fd62){const _0xce7687=_0x43dbb9;let _0x5addae=this[_0xce7687(0x1ff)]['getBasicShapeRelation'](_0xe1bae3,_0x3d1aac,_0x37fd62);if(!_0x5addae||_0x5addae[_0xce7687(0x15f)]===0x0)return;let _0x237e3a=this[_0xce7687(0x87)][_0xce7687(0x19c)](_0xe1bae3);if(!_0x237e3a)return;let {scene:_0x54783e}=_0x237e3a;for(let _0x37c5e6 of _0x5addae){let _0x2baa83=_0x37c5e6['lineShapeId'],_0x1be106=this['_sheetsShapeService'][_0xce7687(0x251)](_0xe1bae3,_0x3d1aac,_0x2baa83);if(!_0x1be106)continue;let _0x301e50=_0x1be106['getStartConnectInfo'](),_0x3e936a=_0x1be106['getEndConnectInfo'](),_0xa78f0b=(_0x301e50==null?void 0x0:_0x301e50[_0xce7687(0xfc)])===_0x37fd62,_0x484753=_0x7f2912({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83}),_0x2b7ff3=_0x54783e[_0xce7687(0x1de)](_0x484753);if(!_0x2b7ff3)continue;let _0x274ee4=this[_0xce7687(0xcc)][_0xce7687(0x171)]({'unitId':_0xe1bae3,'subUnitId':_0x3d1aac,'drawingId':_0x2baa83});_0x274ee4!=null&&_0x274ee4[_0xce7687(0x10c)]&&(_0x301e50&&_0x3e936a?this[_0xce7687(0x1df)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0x301e50,_0x3e936a,_0x2b7ff3):this[_0xce7687(0x146)](_0xe1bae3,_0x3d1aac,_0x2baa83,_0x1be106,_0xa78f0b?_0x301e50:_0x3e936a,_0xa78f0b,_0x274ee4,_0x2b7ff3));}}[_0x43dbb9(0x1df)](_0x5e3764,_0x4f008f,_0x16bc0b,_0xe99822,_0x35d622,_0x5818f5,_0x5e972e){const _0x2f67cb=_0x43dbb9;let _0x430abd=this['_unitId'],_0xd3f2a8=this[_0x2f67cb(0x250)];this[_0x2f67cb(0x238)]=_0x5e3764,this[_0x2f67cb(0x250)]=_0x4f008f;let _0x5e3ea8=this['_getConnectPointInfo'](_0x35d622),_0x4a0838=this['_getConnectPointInfo'](_0x5818f5);if(this[_0x2f67cb(0x238)]=_0x430abd,this['_subUnitId']=_0xd3f2a8,!_0x5e3ea8||!_0x4a0838)return;let _0x335de5=_0xe99822[_0x2f67cb(0x2ad)](),_0x3a6071=_0xde601c(_0x5e3ea8,_0x4a0838,_0x335de5);_0x3a6071&&_0xe99822[_0x2f67cb(0x299)](_0x3a6071);let _0x1270d3=_0x3de713(_0x3a6071,_0x335de5);_0x1270d3['lineType']!==_0x335de5&&_0xe99822[_0x2f67cb(0xae)](_0x1270d3[_0x2f67cb(0x153)]),_0xe99822['clearAdjustValue']();for(let [_0x433da3,_0x2566f8]of Object[_0x2f67cb(0xb5)](_0x1270d3['adjustValues']))_0xe99822[_0x2f67cb(0x12b)](_0x433da3,_0x2566f8);_0xe99822[_0x2f67cb(0x104)]({'width':_0x1270d3['worldRect'][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x1dc)]}),_0x5e972e['transformByState']({'flipX':_0x1270d3['worldRect']['flipX'],'flipY':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0x219)],'left':_0x1270d3['worldRect'][_0x2f67cb(0x11f)],'top':_0x1270d3['worldRect']['top'],'width':_0x1270d3[_0x2f67cb(0x98)][_0x2f67cb(0xf7)],'height':_0x1270d3[_0x2f67cb(0x98)]['height'],'angle':_0x1270d3[_0x2f67cb(0x228)]}),_0xe99822[_0x2f67cb(0x130)]();}[_0x43dbb9(0x146)](_0x1307db,_0x203e1d,_0x164531,_0x2c7fba,_0x386c3c,_0x4c2afe,_0x4740ac,_0x44e8e7){const _0x245452=_0x43dbb9;let _0x1c7bdd=this[_0x245452(0x238)],_0x27a17a=this[_0x245452(0x250)];this[_0x245452(0x238)]=_0x1307db,this[_0x245452(0x250)]=_0x203e1d;let _0x325408=this[_0x245452(0x1e3)](_0x386c3c);if(this[_0x245452(0x238)]=_0x1c7bdd,this[_0x245452(0x250)]=_0x27a17a,!_0x325408)return;let {left:_0x1e7b6f=0x0,top:_0x7a0e81=0x0,width:_0x1b938d=0x0,height:_0x51721e=0x0,flipX:_0x22d041=!0x1,flipY:_0x55739e=!0x1}=_0x4740ac[_0x245452(0x10c)],_0x1f8dbc=_0x2c7fba[_0x245452(0x161)]();if(_0x1f8dbc['length']<0x2)return;let _0x3e87dd=new _0x427c58({'left':_0x1e7b6f,'top':_0x7a0e81,'width':_0x1b938d,'height':_0x51721e,'flipX':_0x22d041,'flipY':_0x55739e}),_0x5bece3=_0x4c2afe?_0x1f8dbc[_0x1f8dbc[_0x245452(0x15f)]-0x1]:_0x1f8dbc[0x0],_0x217bd5=_0x3e87dd[_0x245452(0x273)](_0x5bece3),_0x424c0e=_0x427c58['computeConnectorResizeLayout'](_0x217bd5,_0x325408[_0x245452(0x177)],!_0x4c2afe);_0x44e8e7[_0x245452(0x1c7)]({'flipX':_0x424c0e[_0x245452(0x98)]['flipX'],'flipY':_0x424c0e[_0x245452(0x98)][_0x245452(0x219)],'left':_0x424c0e['worldRect'][_0x245452(0x11f)],'top':_0x424c0e[_0x245452(0x98)]['top'],'width':_0x424c0e[_0x245452(0x98)][_0x245452(0xf7)],'height':_0x424c0e['worldRect'][_0x245452(0x1dc)],'angle':_0x424c0e[_0x245452(0x98)][_0x245452(0x2e1)]}),_0x44e8e7['makeDirty'](!0x0);}[_0x43dbb9(0x2d4)](){const _0x979bef=_0x43dbb9;this[_0x979bef(0x2bd)][_0x979bef(0x15f)]!==0x0&&(this[_0x979bef(0x2bd)][_0x979bef(0x200)](_0x33400c=>{const _0x24c956=_0x979bef;_0x33400c[_0x24c956(0x2dd)]();}),this['_connectorObjects']=[]);}[_0x43dbb9(0x235)](){const _0x77de82=_0x43dbb9;let _0x578143=this[_0x77de82(0xcd)][_0x77de82(0x240)](_0x2a1b28[_0x77de82(0x1e0)]);this[_0x77de82(0x11b)](_0x578143[_0x77de82(0x24d)](_0x46afa7(_0x2e016d=>_0x2e016d?_0x2e016d[_0x77de82(0x117)]['pipe'](_0x46afa7(_0x29ea3e=>{const _0x242736=_0x77de82;if(!_0x29ea3e)return _0x3149ab;let _0x3987dc=_0x2e016d[_0x242736(0xb8)](),_0x1aac9f=this['_renderManagerService'][_0x242736(0x19c)](_0x3987dc),_0x4f7d0e=_0x1aac9f==null?void 0x0:_0x1aac9f['scene'];return _0x4f7d0e?_0x236700(_0x4f7d0e):_0x3149ab;})):_0x3149ab))['subscribe'](_0x1b0adb=>{const _0x8e3659=_0x77de82;let _0x40b605=_0x1b0adb[_0x8e3659(0x84)]();this[_0x8e3659(0x11b)](_0x1b0adb['onPointerMove$'][_0x8e3659(0x17c)](_0x31cfd1=>{const _0x4f216f=_0x8e3659;this[_0x4f216f(0xa0)]&&this[_0x4f216f(0x14f)]&&this[_0x4f216f(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x40b605['changeStart$'][_0x8e3659(0x28f)](_0x59b67f=>{const _0x9768db=_0x8e3659;let {objects:_0x2a27cc}=_0x59b67f;this[_0x9768db(0x2d4)](),_0x2a27cc!==null&&_0x2a27cc['size']===0x1&&_0x2a27cc['values']()[_0x9768db(0x166)]()[_0x9768db(0x26b)]instanceof Cn&&(this['_isDrawingShapePointDown']=!0x0);})),this['disposeWithMe'](_0x40b605[_0x8e3659(0x18c)][_0x8e3659(0x28f)](_0x95adc7=>{const _0x254757=_0x8e3659;this[_0x254757(0xa0)]&&this[_0x254757(0x2d4)]();})),this[_0x8e3659(0x11b)](_0x1b0adb[_0x8e3659(0x1bf)][_0x8e3659(0x17c)](()=>{const _0x5825d3=_0x8e3659;this[_0x5825d3(0xa0)]&&(this[_0x5825d3(0xa0)]=!0x1,this[_0x5825d3(0x120)]());})),this[_0x8e3659(0x11b)](_0x40b605[_0x8e3659(0x174)][_0x8e3659(0x28f)](()=>{const _0x2d1306=_0x8e3659;this[_0x2d1306(0x238)]&&this[_0x2d1306(0x250)]&&this[_0x2d1306(0x14f)]&&this['_drawingManagerService'][_0x2d1306(0x171)]({'unitId':this[_0x2d1306(0x238)],'subUnitId':this[_0x2d1306(0x250)],'drawingId':this[_0x2d1306(0x14f)]})&&(this[_0x2d1306(0x2d4)](),this[_0x2d1306(0x120)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x41f434=_0x43dbb9;this[_0x41f434(0x11b)](this['_drawingManagerService']['focus$']['subscribe'](_0x47af45=>{const _0x33c046=_0x41f434;if(_0x47af45[_0x33c046(0x15f)]===0x1){let _0x672dc2=_0x47af45[0x0];if(_0x672dc2['drawingType']===_0x5d03f6['DRAWING_SHAPE']){let _0xc0f9fd=this[_0x33c046(0x1ff)][_0x33c046(0x251)](_0x672dc2[_0x33c046(0x25d)],_0x672dc2['subUnitId'],_0x672dc2[_0x33c046(0x1a9)]);if(_0xc0f9fd&&_0x1f7f23(_0xc0f9fd[_0x33c046(0x2ad)]())){this[_0x33c046(0x14f)]=_0x672dc2[_0x33c046(0x1a9)],this[_0x33c046(0x238)]=_0x672dc2[_0x33c046(0x25d)],this[_0x33c046(0x250)]=_0x672dc2[_0x33c046(0x212)],this['_clearShapeConnectorHandlerObjects'](),this[_0x33c046(0x120)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x33c046(0x238)]=void 0x0,this[_0x33c046(0x250)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0x105)][_0x41f434(0x28f)](_0x32f7e7=>{const _0x5e2831=_0x41f434;if(_0x32f7e7['length']===0x1){var _0x20f2bb;let _0x2951e5=_0x32f7e7[0x0],_0x4acad4=(_0x20f2bb=this[_0x5e2831(0xcc)][_0x5e2831(0x171)](_0x2951e5))==null?void 0x0:_0x20f2bb['drawingType'];_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&_0x2951e5['drawingId']===this[_0x5e2831(0x14f)]?(this[_0x5e2831(0x2d4)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x5e2831(0x14f)]&&_0x4acad4===_0x5d03f6[_0x5e2831(0x23a)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x2951e5[_0x5e2831(0x25d)],_0x2951e5[_0x5e2831(0x212)],_0x2951e5[_0x5e2831(0x1a9)]);}})),this[_0x41f434(0x11b)](this[_0x41f434(0xcc)][_0x41f434(0xd6)][_0x41f434(0x28f)](_0x4332b0=>{const _0x5bbd79=_0x41f434;for(let _0x1fe2bd of _0x4332b0){let {drawingId:_0x53632e}=_0x1fe2bd;if(this[_0x5bbd79(0x14f)]===_0x53632e){this[_0x5bbd79(0x13c)]();return;}}}));}[_0x43dbb9(0x22a)](_0x4d000d,_0x38c521,_0x44e553,_0x1f9a7a,_0x1f6fc5){const _0x1ff7a8=_0x43dbb9;var _0x3df2aa,_0x1d9a99;if(!this[_0x1ff7a8(0x22b)])return;let _0x1d617f=this[_0x1ff7a8(0x1e3)](_0x4d000d);if(!_0x1d617f)return;let _0x263ea4=this[_0x1ff7a8(0x16d)]?this[_0x1ff7a8(0x16d)]['worldPoint']:_0x38c521,_0x39ad2c=this[_0x1ff7a8(0x16d)]?this['_currentConnectionTarget'][_0x1ff7a8(0x2e1)]:this[_0x1ff7a8(0x244)](_0x1d617f[_0x1ff7a8(0x177)],_0x263ea4),_0x307919;if(this[_0x1ff7a8(0x16d)]){let _0x32b35d=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x1ff7a8(0x25d)],'subUnitId':this['_currentConnectionTarget'][_0x1ff7a8(0x212)],'drawingId':this[_0x1ff7a8(0x16d)][_0x1ff7a8(0xfc)]});if(_0x32b35d!=null&&_0x32b35d[_0x1ff7a8(0x10c)]){let {left:_0x83cd72=0x0,top:_0x1260d8=0x0,width:_0x2bc035=0x0,height:_0x1e6753=0x0,angle:_0x5516fb}=_0x32b35d[_0x1ff7a8(0x10c)];_0x307919=_0x15c292({'left':_0x83cd72,'top':_0x1260d8,'width':_0x2bc035,'height':_0x1e6753},_0x5516fb||0x0);}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};}else _0x307919={'left':_0x263ea4['x'],'top':_0x263ea4['y'],'width':0x0,'height':0x0};let _0x1f8904={'point':_0x263ea4,'angle':_0x39ad2c,'bounds':_0x307919},_0x963e1e=_0x44e553?_0x1f8904:_0x1d617f,_0x232806=_0x44e553?_0x1d617f:_0x1f8904,_0x502051=this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x2ad)](),_0x3c1640=_0xde601c(_0x963e1e,_0x232806,_0x502051);_0x3c1640&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x299)](_0x3c1640);let _0x4122ec=_0x3de713(_0x3c1640,_0x502051);_0x4122ec[_0x1ff7a8(0x153)]!==_0x502051&&this[_0x1ff7a8(0x22b)][_0x1ff7a8(0xae)](_0x4122ec[_0x1ff7a8(0x153)]);for(let [_0x5ce22d,_0x491db9]of Object['entries'](_0x4122ec['adjustValues']))this['_activeShapeModel'][_0x1ff7a8(0x12b)](_0x5ce22d,_0x491db9);this[_0x1ff7a8(0x22b)][_0x1ff7a8(0x104)]({'width':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0xf7)],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)]}),_0x1f9a7a[_0x1ff7a8(0x1c7)]({'flipX':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x2d5)],'flipY':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x219)],'left':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x11f)],'top':_0x4122ec[_0x1ff7a8(0x98)]['top'],'width':_0x4122ec[_0x1ff7a8(0x98)]['width'],'height':_0x4122ec[_0x1ff7a8(0x98)][_0x1ff7a8(0x1dc)],'angle':_0x4122ec[_0x1ff7a8(0x228)]}),_0x1f9a7a[_0x1ff7a8(0x15d)](!0x0);let _0x5421db=(_0x3df2aa=(_0x1d9a99=this[_0x1ff7a8(0x16d)])==null?void 0x0:_0x1d9a99[_0x1ff7a8(0x2c7)])==null?_0x38c521:_0x3df2aa;_0x1f6fc5[_0x1ff7a8(0x1c7)]({'left':_0x5421db['x']-_0x2bc8ec[_0x1ff7a8(0xa5)],'top':_0x5421db['y']-_0x2bc8ec[_0x1ff7a8(0xa5)]});}['_handleFreeEndpointMove'](_0x3780bb,_0x10fa4e,_0x2a2602,_0x5cb7f1,_0x5ce154){const _0x57c9ca=_0x43dbb9;var _0x4434f6,_0x5e82f0,_0xbdf99a,_0x484c9d;let _0x258126=(_0x4434f6=(_0x5e82f0=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x5e82f0[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0x4434f6,_0x2696bf=_0x427c58['computeConnectorResizeLayout'](_0x10fa4e,_0x258126,_0x2a2602);_0x5cb7f1[_0x57c9ca(0x1c7)]({'flipX':_0x2696bf[_0x57c9ca(0x98)]['flipX'],'flipY':_0x2696bf[_0x57c9ca(0x98)]['flipY'],'left':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x11f)],'top':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x16e)],'width':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0xf7)],'height':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x1dc)],'angle':_0x2696bf[_0x57c9ca(0x98)][_0x57c9ca(0x2e1)]});let _0x4f42fe=(_0xbdf99a=(_0x484c9d=this[_0x57c9ca(0x16d)])==null?void 0x0:_0x484c9d[_0x57c9ca(0x2c7)])==null?_0x3780bb:_0xbdf99a;_0x5ce154[_0x57c9ca(0x1c7)]({'left':_0x4f42fe['x']-_0x2bc8ec[_0x57c9ca(0xa5)],'top':_0x4f42fe['y']-_0x2bc8ec[_0x57c9ca(0xa5)]});}[_0x43dbb9(0x1e3)](_0x354fce){const _0x52766c=_0x43dbb9;if(!this['_unitId']||!this[_0x52766c(0x250)])return null;let {shapeId:_0x3efe46,cxnIndex:_0x318ed0}=_0x354fce,_0x2f20e6=this[_0x52766c(0x1ff)]['getShapeModel'](this[_0x52766c(0x238)],this[_0x52766c(0x250)],_0x3efe46);if(!_0x2f20e6)return null;let _0x3fc848=this[_0x52766c(0xcc)][_0x52766c(0x171)]({'unitId':this['_unitId'],'subUnitId':this[_0x52766c(0x250)],'drawingId':_0x3efe46});if(!(_0x3fc848!=null&&_0x3fc848['transform']))return null;let {left:_0x5a1f72=0x0,top:_0x19d462=0x0,width:_0x361e87=0x0,height:_0x146e59=0x0,flipX:_0x293225=!0x1,flipY:_0x3766eb=!0x1,angle:_0x1d94c4}=_0x3fc848[_0x52766c(0x10c)];_0x2f20e6[_0x52766c(0x104)]({'width':_0x361e87,'height':_0x146e59});let _0x513808=_0x2f20e6['getConnectionSiteList']()[_0x52766c(0x218)](_0x11873f=>_0x11873f[_0x52766c(0x2b9)]===_0x318ed0);if(!_0x513808)return null;let _0x34b1f=_0x293225?_0x361e87-_0x513808['x']:_0x513808['x'],_0x2c0188=_0x3766eb?_0x146e59-_0x513808['y']:_0x513808['y'];if(_0x1d94c4!==0x0&&_0x1d94c4!=null){let _0x270696=_0x1d94c4*Math['PI']/0xb4,_0x5127de=Math[_0x52766c(0x109)](_0x270696),_0x3862d7=Math['sin'](_0x270696),_0x5c60bf=_0x361e87/0x2,_0x1f2e3a=_0x146e59/0x2,_0x44faa1=_0x34b1f-_0x5c60bf,_0x568920=_0x2c0188-_0x1f2e3a;_0x34b1f=_0x5c60bf+_0x44faa1*_0x5127de-_0x568920*_0x3862d7,_0x2c0188=_0x1f2e3a+_0x44faa1*_0x3862d7+_0x568920*_0x5127de;}_0x34b1f+=_0x5a1f72,_0x2c0188+=_0x19d462;let _0x367fde=_0x513808['ang']/0xea60;_0x293225&&(_0x367fde=0xb4-_0x367fde),_0x3766eb&&(_0x367fde=-_0x367fde),_0x367fde+=_0x1d94c4||0x0,_0x367fde=(_0x367fde%0x168+0x168)%0x168;let _0x220241=_0x15c292({'left':_0x5a1f72,'top':_0x19d462,'width':_0x361e87,'height':_0x146e59},_0x1d94c4||0x0);return{'point':{'x':_0x34b1f,'y':_0x2c0188},'angle':_0x367fde,'bounds':_0x220241};}['_calculateFreeEndpointAngle'](_0x10f73f,_0x22c2ef){const _0x34820e=_0x43dbb9;let _0x4e4797=_0x22c2ef['x']-_0x10f73f['x'],_0x31a2fd=_0x22c2ef['y']-_0x10f73f['y'];return Math[_0x34820e(0x2b8)](_0x4e4797)>=Math[_0x34820e(0x2b8)](_0x31a2fd)?_0x4e4797>=0x0?0xb4:0x0:_0x31a2fd>=0x0?0x10e:0x5a;}['_reset'](){const _0x4eba4b=_0x43dbb9;this[_0x4eba4b(0x14f)]=void 0x0,this[_0x4eba4b(0x238)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x4eba4b(0x2d4)]();}[_0x43dbb9(0x2dd)](){const _0x42e451=_0x43dbb9;this['_clearShapeConnectorHandlerObjects'](),super[_0x42e451(0x2dd)]();}};_r=Z([X(0x1,_0x4d9cac),X(0x2,_0x263af6),X(0x3,_0x324617),X(0x4,_0x7113c7),X(0x5,_0x450bf3(_0x26a217)),X(0x6,_0x450bf3(Tn)),X(0x7,_0x450bf3(mr))],_r);let vr=class extends _0x4760b3{constructor(_0x4a1300,_0x5ba818,_0x290008){const _0x15ef3e=_0x43dbb9;super(),this[_0x15ef3e(0x274)]=_0x4a1300,this['_drawingManagerService']=_0x5ba818,this[_0x15ef3e(0xf2)]=_0x290008,this['_initPrinting']();}[_0x43dbb9(0x203)](){const _0x4fffbe=_0x43dbb9;this[_0x4fffbe(0x11b)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x2a1)](this[_0x4fffbe(0x274)][_0x4fffbe(0x2c8)][_0x4fffbe(0x160)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2027ba,_0x4ccd29,_0x305303)=>{const _0xa4779c=_0x4fffbe;var _0x2a6d10;let {unitId:_0x129e37,subUnitId:_0x1948e7,scene:_0x232bb7,resourceCollector:_0x1729bb}=_0x4ccd29,_0x5335d6=(_0x2a6d10=this['_drawingManagerService'][_0xa4779c(0x266)](_0x129e37))==null?void 0x0:_0x2a6d10[_0x1948e7];return _0x5335d6==null||_0x5335d6[_0xa4779c(0x196)][_0xa4779c(0x200)](_0x2ba199=>{const _0x3bae4f=_0xa4779c;let _0x6b80fa=_0x5335d6[_0x3bae4f(0x1f8)][_0x2ba199];_0x6b80fa[_0x3bae4f(0x2cb)]===_0x5d03f6[_0x3bae4f(0x23a)]&&!_0x6b80fa[_0x3bae4f(0x237)]&&this[_0x3bae4f(0xf2)][_0x3bae4f(0x1e7)](_0x6b80fa,_0x232bb7,{'resourceCollector':_0x1729bb});}),_0x305303(_0x2027ba);}}));}};vr=Z([X(0x0,_0x450bf3(_0x11a3e2)),X(0x1,_0x324617),X(0x2,_0x450bf3(Q))],vr);let yr=class extends _0x4760b3{constructor(_0x46ff1f,_0x763a4,_0x474ea1){const _0x4c3d69=_0x43dbb9;super(),this[_0x4c3d69(0x285)]=_0x46ff1f,this[_0x4c3d69(0x1ca)]=_0x763a4,this[_0x4c3d69(0xb0)]=_0x474ea1,this[_0x4c3d69(0x2a3)]();}['_initPermission'](){const _0x714f25=_0x43dbb9;this[_0x714f25(0x11b)](this[_0x714f25(0x285)][_0x714f25(0x289)](_0x6c3cb4=>{const _0x56f836=_0x714f25;let _0x346b81,_0x2a8e94;if(_0x6c3cb4['id']===_0x28064d['id']||_0x6c3cb4['id']===_0xedfea5['id']||_0x6c3cb4['id']===_0x551591['id']){let _0x582dfc=_0x6c3cb4['params'];_0x346b81=_0x582dfc['unitId'],_0x2a8e94=_0x582dfc[_0x56f836(0x212)];}!_0x346b81||!_0x2a8e94||this[_0x56f836(0xb0)][_0x56f836(0x2e6)]({'workbookTypes':[_0x1b5cb2],'worksheetTypes':[_0x194b28]},_0x346b81,_0x2a8e94)||this[_0x56f836(0xb0)]['blockExecuteWithoutPermission'](this['_localeService']['t']('sheets-shape-ui.permission.editErr'));}));}};yr=Z([X(0x0,_0x450bf3(_0x4d9cac)),X(0x1,_0x450bf3(_0xa3717a)),X(0x2,_0x450bf3(_0xf21f2))],yr);let br=class extends _0x4760b3{constructor(_0x12fb19,_0x2381b7,_0x3221ff,_0x4e0c3b,_0x15906e,_0x3856a4,_0x1cffd9,_0x343686,_0x195da9,_0x43c76b,_0x55aaa4){const _0x23b6d6=_0x43dbb9;super(),this[_0x23b6d6(0xcd)]=_0x12fb19,this[_0x23b6d6(0x1d5)]=_0x2381b7,this[_0x23b6d6(0x119)]=_0x3221ff,this[_0x23b6d6(0x1ff)]=_0x4e0c3b,this[_0x23b6d6(0x1ca)]=_0x15906e,this['_commandService']=_0x3856a4,this[_0x23b6d6(0xcc)]=_0x1cffd9,this['_sheetCanvasPopManagerService']=_0x343686,this['_contextService']=_0x195da9,this[_0x23b6d6(0x87)]=_0x43c76b,this[_0x23b6d6(0x1a8)]=_0x55aaa4,Y(this,_0x23b6d6(0x2da),null),Y(this,'_activeShapeInfo',null),Y(this,'_isOpenedShapeEditPanel',!0x1),Y(this,_0x23b6d6(0xc9),0x0),Y(this,'_initializedShapePopupMenu',new Set()),Y(this,_0x23b6d6(0x1d3),[]),this[_0x23b6d6(0x208)](),this[_0x23b6d6(0x11b)](this[_0x23b6d6(0xcd)][_0x23b6d6(0x240)](_0x2a1b28[_0x23b6d6(0x1e0)])[_0x23b6d6(0x28f)](_0x528467=>{const _0x183fd1=_0x23b6d6;if(!_0x528467){var _0x46e082;(_0x46e082=this[_0x183fd1(0x2da)])==null||_0x46e082[_0x183fd1(0x2dd)]();return;}this[_0x183fd1(0x225)](_0x528467);})),this[_0x23b6d6(0xe7)](),this[_0x23b6d6(0x2eb)](),this['initShapePopupMenu'](),this[_0x23b6d6(0x11b)](this['_shapeTextEditingService'][_0x23b6d6(0x17b)][_0x23b6d6(0x28f)](_0x233d62=>{const _0x47f149=_0x23b6d6;_0x233d62&&this[_0x47f149(0x213)]();}));}[_0x43dbb9(0x208)](){const _0x1db833=_0x43dbb9;this[_0x1db833(0x119)][_0x1db833(0xb7)](Un);}['_registerShapeMenu'](){const _0x2cae90=_0x43dbb9;this[_0x2cae90(0xbf)][_0x2cae90(0x147)](_0x5d03f6[_0x2cae90(0x23a)],this[_0x2cae90(0x18d)][_0x2cae90(0x21d)](this)),this['_sheetCanvasPopManagerService'][_0x2cae90(0x290)](_0x5d03f6['DRAWING_SHAPE'],0x6,0x4);}[_0x43dbb9(0x2bc)](){const _0x12ae2e=_0x43dbb9;this[_0x12ae2e(0xcd)][_0x12ae2e(0x1a7)](_0x2a1b28['UNIVER_SHEET'])['forEach'](_0x26f5a6=>this[_0x12ae2e(0x225)](_0x26f5a6));}[_0x43dbb9(0x18d)](_0x5e2315,_0x18b7ed,_0x3b2177,_0x2f1c07){const _0x531022=_0x43dbb9;return[{'label':_0x531022(0x1d8),'index':0x0,'commandId':qn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':_0x2f1c07===_0x5d03f6[_0x531022(0xb3)]},{'label':_0x531022(0x24a),'index':0x1,'commandId':_0x10723d['id'],'commandParams':{'unitId':_0x5e2315,'drawings':[{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177,'drawingType':_0x2f1c07}]},'disable':!0x1},{'label':'sheets-shape-ui.hidePanel','index':0x2,'commandId':Kn['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'drawingId':_0x3b2177},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipH':!0x0},'disable':!0x1},{'label':_0x531022(0x13d),'index':0x4,'commandId':_0x494ee9['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'flipV':!0x0},'disable':!0x1},{'label':_0x531022(0x2d6),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':0x5a},'disable':!0x1},{'label':_0x531022(0x9a),'index':0x4,'commandId':_0x59af59['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0x1e9400['id'],'commandParams':{'unitId':_0x5e2315,'subUnitId':_0x18b7ed,'shapeId':_0x3b2177},'disable':!0x1}];}['_getShapeInfo'](_0x24b19d,_0x5751d1,_0x7453ac){const _0x34e9a6=_0x43dbb9;let _0xca66c2=this[_0x34e9a6(0x1ff)]['getShapeTypeById'](_0x24b19d,_0x5751d1,_0x7453ac),_0x40afd6=this[_0x34e9a6(0x1ff)]['getShapeDataById'](_0x24b19d,_0x5751d1,_0x7453ac);return _0xca66c2!==void 0x0&&_0x40afd6!==void 0x0?{'shapeData':_0x40afd6,'shapeId':_0x7453ac,'shapeType':_0xca66c2,'unitId':_0x24b19d,'subUnitId':_0x5751d1,'version':this[_0x34e9a6(0xc9)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x106ebe){const _0x4291ec=_0x43dbb9;if(!_0x106ebe)return;let _0x10df5d=_0x106ebe[_0x4291ec(0xb8)]();this[_0x4291ec(0x87)]['has'](_0x10df5d)&&!this['_initializedShapePopupMenu']['has'](_0x10df5d)&&(this['_popupMenuListener'](_0x10df5d),this['_initializedShapePopupMenu']['add'](_0x10df5d));}['_clearPopups'](){const _0xa246b4=_0x43dbb9;this[_0xa246b4(0x1d3)][_0xa246b4(0x200)](_0x58c970=>_0x58c970['dispose']()),this['_disposePopups']['length']=0x0;}[_0x43dbb9(0x226)](_0x1d615c){const _0x5d516f=_0x43dbb9;var _0x4ce03a;let _0x5736b5=(_0x4ce03a=this[_0x5d516f(0x87)]['getRenderById'](_0x1d615c))==null?void 0x0:_0x4ce03a['scene'],_0x3610e9=_0x5736b5==null?void 0x0:_0x5736b5[_0x5d516f(0x84)]();!_0x5736b5||!_0x3610e9||(this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x99)][_0x5d516f(0x28f)](()=>{const _0x3711b2=_0x5d516f;let _0x4ef2c2=_0x3610e9[_0x3711b2(0x2c9)]();if(this[_0x3711b2(0x213)](),this[_0x3711b2(0x191)]||_0x4ef2c2[_0x3711b2(0xb4)]>0x1)return;let _0x4423e2=_0x4ef2c2[_0x3711b2(0x133)]()[_0x3711b2(0x166)]()['value'];if(!_0x4423e2)return;let _0x7f16be=this[_0x3711b2(0xcc)][_0x3711b2(0x9f)](_0x4423e2[_0x3711b2(0xe8)]);if(!_0x7f16be||_0x7f16be['drawingType']!==_0x5d03f6['DRAWING_SHAPE'])return;let {unitId:_0x9b0a2,subUnitId:_0x4d4973,drawingId:_0x40f857,drawingType:_0x1d6596}=_0x7f16be,_0x133d97=this[_0x3711b2(0x2c5)](_0x9b0a2,_0x4d4973,_0x40f857);if(!_0x133d97)return;this['_contextService'][_0x3711b2(0x1c9)](_0x596494,!0x0);let _0x4817ad=this[_0x3711b2(0xbf)]['attachPopupToObject'](_0x4423e2,{'componentKey':An,'direction':_0x3711b2(0x20e),'offset':[0x0,_0x9bdae2],'extraProps':{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857,'drawingType':_0x1d6596,'shapeType':_0x133d97['shapeType'],'shapeData':_0x133d97[_0x3711b2(0x106)]}});this[_0x3711b2(0x1d3)][_0x3711b2(0x241)](this[_0x3711b2(0x11b)](_0x4817ad)),this['_drawingManagerService'][_0x3711b2(0x27f)]()['find'](_0x4d8f2b=>_0x4d8f2b[_0x3711b2(0x25d)]===_0x9b0a2&&_0x4d8f2b['subUnitId']===_0x4d4973&&_0x4d8f2b['drawingId']===_0x40f857)||this[_0x3711b2(0xcc)][_0x3711b2(0x141)]([{'unitId':_0x9b0a2,'subUnitId':_0x4d4973,'drawingId':_0x40f857}]);})),this['disposeWithMe'](_0x3610e9[_0x5d516f(0xee)][_0x5d516f(0x28f)](()=>{const _0x1348cc=_0x5d516f;this[_0x1348cc(0x213)](),this[_0x1348cc(0x216)]['setContextValue'](_0x596494,!0x1),this[_0x1348cc(0xcc)][_0x1348cc(0x141)](null);})),this[_0x5d516f(0x11b)](_0x3610e9[_0x5d516f(0x18c)][_0x5d516f(0x28f)](()=>{const _0x42a488=_0x5d516f;this[_0x42a488(0x213)]();})),this[_0x5d516f(0x11b)](_0x3610e9['changeStart$'][_0x5d516f(0x28f)](()=>{const _0x370b36=_0x5d516f;this[_0x370b36(0x213)]();})));}[_0x43dbb9(0xe7)](){const _0x5a3b7b=_0x43dbb9;this[_0x5a3b7b(0x11b)](this['_commandService'][_0x5a3b7b(0x1f7)](_0x351bb8=>{const _0x111fcb=_0x5a3b7b;if(_0x351bb8['id']===qn['id']){let {unitId:_0x455d02,subUnitId:_0x55dc45,drawingId:_0x286405}=_0x351bb8[_0x111fcb(0x118)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x455d02,_0x55dc45,_0x286405),this[_0x111fcb(0x213)](),this[_0x111fcb(0x28e)]();}if(_0x351bb8['id']===Kn['id']&&(this[_0x111fcb(0x1ea)]=null,this['_closeShapeEditPanel']()),_0x351bb8['id']===_0x19b81c['id']){let {unitId:_0x4b0819,subUnitId:_0x4c282c,shapeId:_0x4363ca}=_0x351bb8[_0x111fcb(0x118)];if(this[_0x111fcb(0x1ea)]&&this[_0x111fcb(0x1ea)][_0x111fcb(0xfc)]===_0x4363ca){let _0xb9b86a=this[_0x111fcb(0x2c5)](_0x4b0819,_0x4c282c,_0x4363ca);_0xb9b86a&&(this['_shapeEditPanelVersion']+=0x1,_0xb9b86a[_0x111fcb(0x10f)]=this[_0x111fcb(0xc9)],this[_0x111fcb(0x1ea)]=_0xb9b86a,this[_0x111fcb(0x191)]&&this[_0x111fcb(0x28e)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x5a3b7b(0x231)][_0x5a3b7b(0x28f)](_0x1de67b=>{const _0x1ffb26=_0x5a3b7b;if(this[_0x1ffb26(0x191)]===!0x1)return;if(_0x1de67b[_0x1ffb26(0x15f)]===0x0){this[_0x1ffb26(0x1ea)]=null,this[_0x1ffb26(0x23d)]();return;}if(_0x1de67b['length']===0x1&&_0x1de67b[0x0]['drawingType']===_0x5d03f6[_0x1ffb26(0x23a)]&&(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0][_0x1ffb26(0x212)],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)])){this['_openShapeEditPanel']();return;}let _0x345947=_0x1de67b[_0x1ffb26(0xb6)](_0x1e7c20=>_0x1e7c20[_0x1ffb26(0x2cb)]===_0x5d03f6[_0x1ffb26(0x23a)]);if(_0x1de67b[_0x1ffb26(0x15f)]>0x1&&_0x345947['length']===_0x1de67b[_0x1ffb26(0x15f)]){if(this[_0x1ffb26(0xc9)]+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0][_0x1ffb26(0x1a9)]),this['_activeShapeInfo']){this[_0x1ffb26(0x28e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x1ffb26(0x1ea)]=this[_0x1ffb26(0x2c5)](_0x1de67b[0x0][_0x1ffb26(0x25d)],_0x1de67b[0x0]['subUnitId'],_0x1de67b[0x0]['drawingId']),this[_0x1ffb26(0x1ea)]){this[_0x1ffb26(0x1ea)][_0x1ffb26(0x1b3)]=!0x0,this[_0x1ffb26(0x28e)]();return;}}this['_closeShapeEditPanel']();}));}[_0x43dbb9(0x28e)](){const _0x26cfaf=_0x43dbb9;this['_activeShapeInfo']&&(this[_0x26cfaf(0x2da)]=this[_0x26cfaf(0x1d5)][_0x26cfaf(0x291)]({'id':On,'header':{'title':this[_0x26cfaf(0x1ca)]['t'](_0x26cfaf(0xff))},'width':0x184,'children':{'label':On,...this[_0x26cfaf(0x1ea)]},'onClose':()=>{const _0x5338ce=_0x26cfaf;this[_0x5338ce(0xcc)]['focusDrawing'](null),this['_contextService'][_0x5338ce(0x1c9)](_0x596494,!0x1),this[_0x5338ce(0x2da)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x10c496=_0x43dbb9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x10c496(0x1d5)][_0x10c496(0x25f)](On),this[_0x10c496(0x2da)]=null,this[_0x10c496(0x216)][_0x10c496(0x1c9)](_0x596494,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};br=Z([X(0x0,_0x7113c7),X(0x1,_0x450bf3(_0x10b5ac)),X(0x2,_0x44a75b),X(0x3,_0x450bf3(_0x26a217)),X(0x4,_0x450bf3(_0xa3717a)),X(0x5,_0x4d9cac),X(0x6,_0x324617),X(0x7,_0x450bf3(_0x15ebbe)),X(0x8,_0x21d773),X(0x9,_0x263af6),X(0xa,_0x450bf3(ir))],br);let $=class extends _0x33cfb9{constructor(_0x455ba2=Jn,_0x321202,_0x56aa4a,_0x42a527,_0x204e79){const _0x43179f=_0x43dbb9;super(),this[_0x43179f(0x9e)]=_0x455ba2,this['_injector']=_0x321202,this[_0x43179f(0x285)]=_0x56aa4a,this['_configService']=_0x42a527,this[_0x43179f(0x87)]=_0x204e79;let {..._0x2e6d11}=_0x2f8dd2({},Jn,this[_0x43179f(0x9e)]);this[_0x43179f(0x1d0)][_0x43179f(0x2df)](_0x43179f(0xe6),_0x2e6d11),this[_0x43179f(0xdd)]();}[_0x43dbb9(0x248)](){const _0x1a9e30=_0x43dbb9;_0xdf78a(this[_0x1a9e30(0x1f4)],[[br],[dr],[Q],[vr]]);}[_0x43dbb9(0x96)](){const _0x17b486=_0x43dbb9;this[_0x17b486(0x1f4)][_0x17b486(0x1bd)](br)[_0x17b486(0x2bc)]();}[_0x43dbb9(0xce)](){const _0x3c9b05=_0x43dbb9;[[mr],[Tn],[hr]]['forEach'](_0x3cb23d=>this['_injector'][_0x3c9b05(0x10b)](_0x3cb23d)),_0xdf78a(this[_0x3c9b05(0x1f4)],[[hr],[Tn]]),this['_renderManagerService'][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[mr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28[_0x3c9b05(0x1e0)],[sr]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28[_0x3c9b05(0x1e0)],[_r]),this[_0x3c9b05(0x87)]['registerRenderModule'](_0x2a1b28['UNIVER_SHEET'],[lr]),this[_0x3c9b05(0x87)][_0x3c9b05(0xe1)](_0x2a1b28['UNIVER_DOC'],[ur]);}['onStarting'](){const _0x433500=_0x43dbb9;this[_0x433500(0x1f4)][_0x433500(0x10b)]([or]),this[_0x433500(0x1f4)][_0x433500(0x1bd)](or);let _0x1f1598=this['_injector'];[[br],[dr],[Q],[vr],[$n],[ir],[cr],[Pn],[yr]][_0x433500(0x200)](_0x3b15cc=>_0x1f1598[_0x433500(0x10b)](_0x3b15cc)),_0xdf78a(this[_0x433500(0x1f4)],[[br],[dr],[Q],[$n],[ir],[cr],[Pn],[yr]]);}[_0x43dbb9(0xdd)](){const _0x27dedb=_0x43dbb9;[Dn,gn,Kn,qn,Nn,En]['forEach'](_0xaeab53=>this[_0x27dedb(0x11b)](this[_0x27dedb(0x285)][_0x27dedb(0x123)](_0xaeab53)));}};Y($,_0x43dbb9(0x178),_0x2a1b28['UNIVER_SHEET']),Y($,_0x43dbb9(0x111),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x43dbb9(0x11e),Wn),Y($,_0x43dbb9(0x10f),Gn),$=Z([_0x8fb429(_0x2cef26,_0x5337ae,_0x56b5ca,_0x249942),X(0x1,_0x450bf3(_0x183eff)),X(0x2,_0x4d9cac),X(0x3,_0x1e0ba7),X(0x4,_0x263af6)],$);export{Un as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _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};
|