@univerjs-pro/sheets-shape-ui 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3721df=_0x3b42;(function(_0x373cc1,_0x3a6646){const _0x40405e=_0x3b42,_0x5280a6=_0x373cc1();while(!![]){try{const _0x6d1023=parseInt(_0x40405e(0x200))/0x1+parseInt(_0x40405e(0x2f8))/0x2*(-parseInt(_0x40405e(0xb9))/0x3)+parseInt(_0x40405e(0xec))/0x4+parseInt(_0x40405e(0x174))/0x5+parseInt(_0x40405e(0x278))/0x6*(-parseInt(_0x40405e(0xf5))/0x7)+-parseInt(_0x40405e(0x2a6))/0x8+-parseInt(_0x40405e(0x102))/0x9*(-parseInt(_0x40405e(0x25b))/0xa);if(_0x6d1023===_0x3a6646)break;else _0x5280a6['push'](_0x5280a6['shift']());}catch(_0x2fcf4d){_0x5280a6['push'](_0x5280a6['shift']());}}}(_0x1222,0x3e7ac));import{ComponentManager as _0xd6eaa9,IMenuManagerService as _0x444ff9,ISidebarService as _0x55dc5d,IconManager as _0x51b1fb,MenuItemType as _0x1c948f,RibbonInsertGroup as _0x3f9387,getMenuHiddenObservable as _0x35acb4,useDependency as _0x25b7f6,useObservable as _0x26444c}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x70c837,ImageSourceTypeEnum as _0x588265,ShapeArrowSizeEnum as _0x82696f,ShapeArrowTypeEnum as _0x2333d6,ShapeDefaultConfig as _0x170bf6,ShapeFillEnum as _0x264689,ShapeLineTypeEnum as _0x21178c,ShapeModel as _0x2bcb3a,ShapeRenderModeEnum as _0x19c6f8,ShapeTypeEnum as _0x56b767,computeConnectorRouteLayout as _0xa851c9,getBasicShapeRotateBound as _0x1218d5,isConnectorShape as _0x51a857,isCurvedConnectorShape as _0x3bc6fd,routeConnectorLineShape as _0x476f7c}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x278e4a,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1d8d74,ShapeEditPanel as _0x5c6639,ShapeFloatingToolbar as _0x1c342a,ShapeGroupEnum as _0x302dfa,ShapePickerDropdown as _0x5317f0,ShapePickerPanel as _0x46042a,ShapeTextEditorContainer as _0x343aa1,ShapeTextFloatMenuRenderControllerBase as _0x260374,ShapeTextFloatToolbar as _0x11982e,UniverShapeEditorUIPlugin as _0x4ca5b4,activateDrawingObject as _0xe8ee4b,buildShapeTextDataUpdate as _0x3ecb17,clearActiveDrawingObjects as _0x40ea7f,createShapeTextBoxShapeData as _0x7ef105,getTextModel as _0x2909fb,getTextStyle as _0x46c9e2,normalizeShapeTextModel as _0x3e26cf,plainShapeTextToDocumentData as _0x552364,prepareShapeTextDocumentData as _0x4f039d,resolveShapeTextDocumentRenderLayout as _0x2e925a,resolveShapeTextEditorBehaviorShapeData as _0x39c773,resolveShapeTextEditorWrapStrategy as _0x52a092,shouldAllowShapeTextEditorHostSizeShrink as _0x3fec91,shouldClipShapeTextDocument as _0x4b2a8f}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x24599f,InsertSheetsShapeMutation as _0x462d48,RemoveSheetsShapeMutation as _0x25666b,SetShapeDrawingDataCommand as _0x11fd9b,SetSheetsShapeRotateCommand as _0x5f6cf0,SetSheetsShapeTextVerticalToggleCommand as _0x177a15,SheetsShapeService as _0x2318dd,ToggleSheetsShapeFlipCommand as _0x2cbec4,UniverSheetsShapePlugin as _0x37e90c,UpdateConnectorRelationCommand as _0x2f3418,UpdateLineShapeResizeCommand as _0x9525c0,UpdateSheetsShapeDataMutation as _0x4ea02e}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5d76f1,CommandType as _0x518569,DependentOn as _0x32752f,Disposable as _0x3ff889,DocumentDataModel as _0x178901,DrawingTypeEnum as _0x91d30f,FOCUSING_COMMON_DRAWINGS as _0x133140,FOCUSING_SHAPE_TEXT_EDITOR as _0x47dded,HorizontalAlign as _0x2be8d5,ICommandService as _0x27b781,IConfigService as _0x527c54,IContextService as _0x2d72db,IImageIoService as _0x3e0cef,IURLImageService as _0xf3fd29,IUndoRedoService as _0x11ea5d,IUniverInstanceService as _0xeac766,Inject as _0x44ac9c,Injector as _0x12e678,LocaleService as _0x52ec80,Plugin as _0x358c74,UniverInstanceType as _0x2c116a,VerticalAlign as _0xabb9d9,createInternalEditorID as _0x2d12f4,generateRandomId as _0x4b0b19,merge as _0x49cfca,toDisposable as _0x4e35de,touchDependencies as _0x65477a}from'@univerjs/core';import{CopySheetCommand as _0xe13458,RemoveSheetCommand as _0x28140a,SheetInterceptorService as _0x1ad409,SheetPermissionCheckController as _0x2fd853,SheetSkeletonService as _0x534dab,SheetsSelectionsService as _0x518d9a,WorkbookEditablePermission as _0x11551d,WorksheetEditPermission as _0x29539e,attachRangeWithCoord as _0x2a0478,discreteRangeToRange as _0x579c9e,getSheetCommandTarget as _0x458956}from'@univerjs/sheets';import{IDrawingManagerService as _0x30b385,SetDrawingSelectedOperation as _0x549ead,getDrawingShapeKeyByDrawingSearch as _0xc0766c}from'@univerjs/drawing';import{CURSOR_TYPE as _0x5615ac,Circle as _0x2cd80f,DRAWING_OBJECT_LAYER_INDEX as _0x1484b2,DocumentSkeleton as _0x3e4cfa,DocumentViewModel as _0x2f9712,Documents as _0x2de4d3,IRenderManagerService as _0x3ab9c0,Image as _0x6f9047,RENDER_CLASS_TYPE as _0x34cfe5,SHEET_VIEWPORT_KEY as _0x5e7f94,Shape as _0x39ac3d,Transform as _0x3bd327,Vector2 as _0x3e3387}from'@univerjs/engine-render';import{COPY_TYPE as _0x4ef22b,ISheetClipboardService as _0x3bfdf3,PREDEFINED_HOOK_NAME as _0x1bcd5c,SheetCanvasPopManagerService as _0x3d29b8,SheetPrintInterceptorService as _0x4c49ca,SheetScrollManagerService as _0x4f30c1,SheetSkeletonManagerService as _0x39e39b,deriveStateFromActiveSheet$ as _0x2654cc,getCurrentRangeDisable$ as _0x2a9b9c,getViewportByCell as _0x177de7}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x2c89d2,EMPTY as _0x4cf815,Observable as _0x521661,of as _0x232c55,switchMap as _0x319361}from'rxjs';import{DrawingCommonPanel as _0x3efe8e,DrawingImageClipService as _0x305aba,DrawingRenderService as _0x56a023,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0xde8950,OBJECT_LIST_FLOATING_SECTION_ID as _0x1532b7,ObjectListPanelBase as _0x233868,getCurrentUnitInfo as _0x72b568,getObjectListPanelLabels as _0x3450b9,getObjectListPanelSectionIdForDrawingType as _0x32953c,getObjectListPanelTypeName as _0xec3f99,insertGroupObject as _0x2dcd00}from'@univerjs/drawing-ui';import{jsx as _0x25dfce,jsxs as _0x14d810}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2b9340}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x2f2813,SheetsDrawingGroupCopyPasteController as _0x3495cb,UniverSheetsDrawingUIPlugin as _0x437c52}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x20e1e7}from'@univerjs/icons';import{DrawingApplyType as _0x19dac9,ISheetDrawingService as _0x1769d9,RemoveSheetDrawingCommand as _0xc60b82,SetDrawingApplyMutation as _0x86cf9f,SetDrawingArrangeCommand as _0x16f93c,SetSheetDrawingCommand as _0x23c05b,transformToAxisAlignPosition as _0x2708bd,transformToDrawingPosition as _0x31cd08}from'@univerjs/sheets-drawing';import{memo as _0x480e63,useEffect as _0x34db80,useMemo as _0x46c805,useReducer as _0x3a44d9,useState as _0x2d0567}from'react';import{DocSelectionManagerService as _0x2fc8f4}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x919a37,DocSelectionRenderService as _0x2f3dc8}from'@univerjs/docs-ui';function un(_0x513ee2,_0x164b65){const _0x217137=_0x3b42;let _0x3c7677={};for(let _0x517a27 of Object['keys'](_0x164b65)){let _0x9b0499=_0x164b65[_0x517a27],_0x3ce87e=_0x513ee2[_0x517a27];if(_0x9b0499!==void 0x0){if(_0x3ce87e===void 0x0){_0x3c7677[_0x517a27]=void 0x0;continue;}typeof _0x9b0499=='object'&&_0x9b0499&&!Array['isArray'](_0x9b0499)&&typeof _0x3ce87e==_0x217137(0x249)&&_0x3ce87e&&!Array[_0x217137(0x112)](_0x3ce87e)?_0x3c7677[_0x517a27]=un(_0x3ce87e,_0x9b0499):_0x3c7677[_0x517a27]=_0x3ce87e;}}return _0x3c7677;}const dn={'type':_0x518569[_0x3721df(0x1e9)],'id':'sheet.command.update-shape-data','handler':(_0x22c8a7,_0x3d454a)=>{const _0x9fd638=_0x3721df;let _0x3e806f=_0x22c8a7[_0x9fd638(0x2f5)](_0x2318dd),{unitId:_0x954535,subUnitId:_0x4b5dca,shapeType:_0x1c7066,shapeId:_0x2f3d35,shapeData:_0x22d648,oldShapeJSON:_0x2d2023}=_0x3d454a;if(!_0x3e806f['getShapeModel'](_0x954535,_0x4b5dca,_0x2f3d35))return!0x1;let _0x22d6cb=_0x22c8a7[_0x9fd638(0x2f5)](_0x27b781),_0x4a90da=_0x22c8a7[_0x9fd638(0x2f5)](_0x11ea5d),{oldShapeType:_0x772251,oldShapeData:_0x402f68={}}=_0x2d2023,_0x171dff=un(_0x402f68,_0x22d648||{}),_0xc962fb={'id':_0x4ea02e['id'],'params':{'unitId':_0x954535,'subUnitId':_0x4b5dca,'shapeId':_0x2f3d35,'shapeType':_0x1c7066,'shapeData':_0x22d648}},_0x56c3f1={'id':_0x4ea02e['id'],'params':{'unitId':_0x954535,'subUnitId':_0x4b5dca,'shapeId':_0x2f3d35,'shapeType':_0x772251,'shapeData':_0x171dff}};return _0x22d6cb[_0x9fd638(0x213)](_0xc962fb['id'],_0xc962fb['params'])?(_0x4a90da[_0x9fd638(0x129)]({'unitID':_0x954535,'undoMutations':[_0x56c3f1],'redoMutations':[_0xc962fb]}),!0x0):!0x1;}};function fn(_0x5085d3,_0x1acf42,_0x3369c7,_0x316561,_0x42601e,_0x2eb73f){const _0x2f39da=_0x3721df;let _0x50c2e5={'unitId':_0x1acf42,'subUnitId':_0x3369c7,'shapeId':_0x316561,'shapeData':_0x2eb73f,'oldShapeJSON':_0x42601e};return _0x5085d3[_0x2f39da(0x24b)](dn['id'],_0x50c2e5);}function pn(_0x5e28f0,_0x5ee9bd,_0x136f0d,_0x513674,_0x33ef8c,_0x573b3f){const _0x2c7066=_0x3721df;let _0x44c96c={'unitId':_0x5ee9bd,'subUnitId':_0x136f0d,'shapeId':_0x513674,'shapeData':_0x573b3f,'oldShapeJSON':_0x33ef8c};return _0x5e28f0[_0x2c7066(0x24b)](dn['id'],_0x44c96c);}function mn(_0x56ee72){'@babel/helpers - typeof';const _0x4343da=_0x3721df;return mn=typeof Symbol==_0x4343da(0x109)&&typeof Symbol['iterator']=='symbol'?function(_0x53f04b){return typeof _0x53f04b;}:function(_0x73199f){const _0x4aad1c=_0x4343da;return _0x73199f&&typeof Symbol==_0x4aad1c(0x109)&&_0x73199f[_0x4aad1c(0xf6)]===Symbol&&_0x73199f!==Symbol[_0x4aad1c(0x2a5)]?_0x4aad1c(0x2fd):typeof _0x73199f;},mn(_0x56ee72);}function hn(_0x2c9b09,_0x1a684f){const _0x5eee7d=_0x3721df;if(mn(_0x2c9b09)!=_0x5eee7d(0x249)||!_0x2c9b09)return _0x2c9b09;var _0x183669=_0x2c9b09[Symbol[_0x5eee7d(0x1f6)]];if(_0x183669!==void 0x0){var _0x47e54f=_0x183669[_0x5eee7d(0x182)](_0x2c9b09,_0x1a684f||_0x5eee7d(0x169));if(mn(_0x47e54f)!=_0x5eee7d(0x249))return _0x47e54f;throw TypeError(_0x5eee7d(0x27b));}return(_0x1a684f===_0x5eee7d(0x303)?String:Number)(_0x2c9b09);}function gn(_0x3666b1){const _0x286628=_0x3721df;var _0x333252=hn(_0x3666b1,_0x286628(0x303));return mn(_0x333252)=='symbol'?_0x333252:_0x333252+'';}function q(_0x536d1e,_0x56eeb3,_0x5f3010){const _0x360c67=_0x3721df;return(_0x56eeb3=gn(_0x56eeb3))in _0x536d1e?Object[_0x360c67(0x286)](_0x536d1e,_0x56eeb3,{'value':_0x5f3010,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x536d1e[_0x56eeb3]=_0x5f3010,_0x536d1e;}function _n(_0x1d2097,_0xdb1e5f,_0x1950b6){const _0x4873de=_0x3721df;var _0x36e2a9;let _0x1a6d17=_0x39c773(_0x1d2097,{..._0xdb1e5f,'dataModel':{...(_0x36e2a9=_0xdb1e5f[_0x4873de(0x11a)])==null?{}:_0x36e2a9,..._0x1950b6?{'doc':_0x1950b6}:null}}),_0x4f7654=_0x52a092(_0x1a6d17);return{'clip':_0x4b2a8f(_0x1a6d17,_0x4f7654),'wrapStrategy':_0x4f7654};}var vn=class extends _0x39ac3d{constructor(_0x49c260,_0x2cfe6d){const _0x48076b=_0x3721df;super(_0x49c260,_0x2cfe6d),q(this,_0x48076b(0x20d),void 0x0),q(this,_0x48076b(0x217),!0x0),q(this,'_drawingType',_0x91d30f['DRAWING_SHAPE']),q(this,_0x48076b(0x19a),!0x0),this[_0x48076b(0x20d)]={..._0x2cfe6d},this[_0x48076b(0x269)]();}['_init'](){const _0x334b1e=_0x3721df;this[_0x334b1e(0x190)][_0x334b1e(0x2ce)](_0x2202a5=>{const _0xbcfc32=_0x334b1e;this[_0xbcfc32(0xb6)](_0x2202a5);});}[_0x3721df(0x104)](_0x52f262){const _0x48383d=_0x3721df;this[_0x48383d(0x20d)][_0x48383d(0x253)]=_0x52f262;}[_0x3721df(0x2c4)](_0x5228b7){const _0x41bb42=_0x3721df;this['_props'][_0x41bb42(0x1d5)]=_0x5228b7,this['makeDirty'](!0x0);}get[_0x3721df(0xe5)](){const _0x28621c=_0x3721df;return this[_0x28621c(0x20d)][_0x28621c(0xe5)];}get[_0x3721df(0x183)](){const _0x5e862f=_0x3721df;return this[_0x5e862f(0x20d)][_0x5e862f(0x183)];}['_updateSrcRectByTransform'](_0x5a1170){const _0x417474=_0x3721df;if(this[_0x417474(0x20d)][_0x417474(0x2e8)]==null||!this[_0x417474(0x217)])return;let {width:_0x3b6fb0,height:_0x6b596a}=this,{width:_0x421d30=0x0,height:_0x182fdf=0x0}=_0x5a1170['preValue'],{left:_0x52d3f7=0x0,top:_0x270f31=0x0,right:_0x1949b9=0x0,bottom:_0x597668=0x0}=this[_0x417474(0x20d)][_0x417474(0x2e8)],_0x430efc=_0x52d3f7,_0x3b925f=_0x270f31,_0x4ac163=_0x1949b9,_0x248507=_0x597668,_0x3df327=!0x1;if(_0x421d30!==0x0&&_0x421d30!==_0x3b6fb0){let _0x533c09=_0x52d3f7/_0x421d30,_0x44a37d=_0x1949b9/_0x421d30;_0x430efc=_0x3b6fb0*_0x533c09,_0x4ac163=_0x3b6fb0*_0x44a37d,_0x3df327=!0x0;}if(_0x182fdf!==0x0&&_0x182fdf!==_0x6b596a){let _0x313d94=_0x270f31/_0x182fdf,_0x4a10fe=_0x597668/_0x182fdf;_0x3b925f=_0x6b596a*_0x313d94,_0x248507=_0x6b596a*_0x4a10fe,_0x3df327=!0x0;}_0x3df327&&this[_0x417474(0xfe)]({'left':_0x430efc,'top':_0x3b925f,'right':_0x4ac163,'bottom':_0x248507});}[_0x3721df(0xfe)](_0x85f73a){const _0x3a646a=_0x3721df;this[_0x3a646a(0x20d)][_0x3a646a(0x2e8)]=_0x85f73a,this[_0x3a646a(0x16b)](!0x0);}['setFillImage'](_0xb06353){const _0x594750=_0x3721df;this[_0x594750(0x20d)][_0x594750(0xe2)]=_0xb06353,this[_0x594750(0x16b)](!0x0);}set[_0x3721df(0x288)](_0x32c594){const _0x3350fb=_0x3721df;this[_0x3350fb(0xa6)]=_0x32c594;}get[_0x3721df(0x288)](){const _0x3a8e9d=_0x3721df;this['_transform']||this[_0x3a8e9d(0x14e)]();let _0x712ebe=this[_0x3a8e9d(0xa6)][_0x3a8e9d(0x1a8)]();return this['transformForAngle'](_0x712ebe);}get[_0x3721df(0x1d1)](){const _0x1f0db7=_0x3721df;return this[_0x1f0db7(0x20d)]['shapeModel'];}get[_0x3721df(0x1bf)](){const _0xa43dcf=_0x3721df;return this[_0xa43dcf(0x20d)]['shapeId'];}get['classType'](){const _0x4f6b21=_0x3721df;return _0x34cfe5[_0x4f6b21(0x153)];}[_0x3721df(0x16c)](_0x515a7a,_0x4519c7,_0x457652,_0x4da9fa){const _0x356873=_0x3721df;let _0x3b4937=this[_0x356873(0x20d)][_0x356873(0x1d1)];if(!_0x3b4937||!_0x4519c7)return;let _0x4161c0=_0x457652==null?this[_0x356873(0x19c)]:_0x457652,_0x4ce7a7=_0x4da9fa==null?this[_0x356873(0x193)]:_0x4da9fa,_0x387275={'shapeType':_0x3b4937[_0x356873(0x210)](),'width':_0x4161c0,'height':_0x4ce7a7},_0x50ce80={'renderMode':_0x19c6f8[_0x356873(0x179)],'oKey':this[_0x356873(0x204)],'image':this['_props'][_0x356873(0xe2)],'angle':this[_0x356873(0x300)]};_0x3b4937[_0x356873(0x229)](_0x387275),_0x515a7a[_0x356873(0xc8)]();let _0x1394de={'top':0x0,'left':0x0,'width':_0x4161c0,'height':_0x4ce7a7};_0x3b4937[_0x356873(0x211)](_0x515a7a,_0x1394de,_0x50ce80),_0x515a7a[_0x356873(0x247)]();let _0x208113=_0x3b4937['getShapeTextData'](),_0x3cb5b0=_0x3b4937[_0x356873(0xa7)](_0x1394de),_0x596ae3=_0x3b4937[_0x356873(0x251)]();if(_0x208113&&_0x3cb5b0&&!_0x596ae3){_0x515a7a['save'](),this[_0x356873(0x1a3)]()[_0x356873(0x124)]&&_0x515a7a[_0x356873(0x1d4)](-0x1,0x1);let _0x210504=_0x4161c0/0x2,_0x49819c=_0x4ce7a7/0x2;_0x515a7a['translate'](-_0x210504,-_0x49819c),_0x515a7a['beginPath'](),this[_0x356873(0x230)](_0x515a7a,_0x208113,_0x3cb5b0),_0x515a7a[_0x356873(0x247)]();}}[_0x3721df(0x1c1)](_0x5be830){}[_0x3721df(0x230)](_0x4f02f8,_0x4274f5,_0xc67c31){const _0x3c474d=_0x3721df;var _0x35b388;this[_0x3c474d(0x20d)]['isEditing']||(!((_0x35b388=_0x4274f5[_0x3c474d(0x11a)])!=null&&_0x35b388[_0x3c474d(0x140)])&&'isRichText'in _0x4274f5&&_0x4274f5[_0x3c474d(0x2f6)]===!0x1?this[_0x3c474d(0xf8)](_0x4f02f8,_0x4274f5,_0xc67c31):this[_0x3c474d(0x1c6)](_0x4f02f8,_0x4274f5,_0xc67c31));}['_drawSimpleText'](_0x334e75,_0x389a94,_0x9780b1){const _0x1437f2=_0x3721df;var _0xe3b488;this['_drawRichText'](_0x334e75,{..._0x389a94,'text':(_0xe3b488=_0x389a94[_0x1437f2(0x2b7)])==null?'':_0xe3b488,'dataModel':{'doc':_0x552364(_0x389a94,_0x1437f2(0xc4)+this[_0x1437f2(0x204)])}},_0x9780b1);}[_0x3721df(0x1c6)](_0x1d29fb,_0x4b57eb,_0x45c240){const _0x5de5a5=_0x3721df;var _0x5403d0,_0x577038;let _0x2c8753=this[_0x5de5a5(0x20d)]['localeService'];if(!_0x4b57eb[_0x5de5a5(0x11a)]||!_0x2c8753)return;let _0x395124=_0x3e26cf(_0x4b57eb[_0x5de5a5(0x11a)]);if(!_0x395124)return;let _0x315507=_0x395124[_0x5de5a5(0x140)];if(!_0x315507)return;let _0x5143f5=(_0x5403d0=_0x395124['va'])==null?_0xabb9d9['TOP']:_0x5403d0,_0x29f233=(_0x577038=_0x395124['ha'])==null?_0x2be8d5[_0x5de5a5(0x262)]:_0x577038,_0x1a94bd=_n(this[_0x5de5a5(0x20d)][_0x5de5a5(0x1d1)][_0x5de5a5(0x21d)](),_0x4b57eb,_0x315507),_0x1f69f0=_0x4b57eb[_0x5de5a5(0x14b)],_0x324822=new _0x178901(_0x4f039d(_0x315507,{'isHorizontal':_0x1f69f0!==!0x1,'textRect':_0x45c240,'verticalAlign':_0x5143f5,'horizontalAlign':_0x29f233,'wrapStrategy':_0x1a94bd[_0x5de5a5(0x2a9)]})),_0xadc60=new _0x2f9712(_0x324822),_0x35b8fa=_0x3e4cfa['create'](_0xadc60,_0x2c8753);_0x35b8fa[_0x5de5a5(0x235)]();let _0x4412f1=_0x35b8fa['getActualSize']()['actualHeight'],_0x1e0d4c=_0x2e925a({'contentHeight':_0x4412f1,'verticalAlign':_0x5143f5,'viewportHeight':_0x45c240[_0x5de5a5(0x193)]});_0x324822['updateDocumentStyle']({'pageSize':{'width':_0x1f69f0===!0x1?_0x45c240[_0x5de5a5(0x193)]:_0x45c240[_0x5de5a5(0x19c)],'height':_0x1e0d4c[_0x5de5a5(0x11d)]}}),_0x324822[_0x5de5a5(0xaa)]({'t':_0x1e0d4c[_0x5de5a5(0x130)]}),_0x35b8fa['calculate']();let _0x49fbd1=new _0x2de4d3(_0x5de5a5(0x28a)+this[_0x5de5a5(0x204)],_0x35b8fa,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5de5a5(0x16b)](!0x0)});_0x49fbd1[_0x5de5a5(0x20e)](_0x45c240[_0x5de5a5(0x19c)],_0x1e0d4c['contentHeight']),_0x1d29fb['save'](),_0x1d29fb[_0x5de5a5(0x18c)](_0x45c240[_0x5de5a5(0x207)],_0x45c240[_0x5de5a5(0x2b8)]),_0x1a94bd['clip']&&(_0x1d29fb[_0x5de5a5(0x284)](),_0x1d29fb['rect'](0x0,_0x1e0d4c[_0x5de5a5(0x100)],_0x45c240[_0x5de5a5(0x19c)],_0x1e0d4c[_0x5de5a5(0xd4)]),_0x1d29fb[_0x5de5a5(0x282)]()),_0x1e0d4c[_0x5de5a5(0x246)]&&_0x1d29fb['translateWithPrecision'](0x0,_0x1e0d4c[_0x5de5a5(0x246)]),_0x49fbd1['draw'](_0x1d29fb),_0x1d29fb[_0x5de5a5(0x247)](),_0x49fbd1[_0x5de5a5(0x250)](),_0x35b8fa[_0x5de5a5(0x250)](),_0xadc60[_0x5de5a5(0x250)](),_0x324822['dispose']();}[_0x3721df(0x211)](_0x40ce8a,_0x5f42f1,_0x4764d0=!0x1){const _0x2732ff=_0x3721df;if(!this[_0x2732ff(0xbf)])return this[_0x2732ff(0x16b)](!0x1),this;let {width:_0x16d60a,height:_0x107f11,left:_0x36c326,top:_0x1c3204}=this,_0x4bd1bd=this['getRealBound']();if(_0x16d60a=_0x4bd1bd['width'],_0x107f11=_0x4bd1bd[_0x2732ff(0x193)],_0x36c326=_0x4bd1bd[_0x2732ff(0x207)],_0x1c3204=_0x4bd1bd[_0x2732ff(0x2b8)],this['isRender'](_0x5f42f1)){let {top:_0x55b93a,left:_0x2719e7,bottom:_0x4c3c5c,right:_0x45360f}=_0x5f42f1['viewBound'];if(_0x16d60a+this[_0x2732ff(0xd3)]+_0x36c326<_0x2719e7||_0x45360f<_0x36c326||_0x107f11+this[_0x2732ff(0xd3)]+_0x1c3204<_0x55b93a||_0x4c3c5c<_0x1c3204)return this;}let _0x308c54=_0x36c326+_0x16d60a/0x2,_0xf8c5b9=_0x1c3204+_0x107f11/0x2,_0xcee75b=this[_0x2732ff(0x288)][_0x2732ff(0x2fa)]();if(this[_0x2732ff(0x20d)][_0x2732ff(0x1d5)]){let _0x2bf4f5=this['getState'](),_0x2f74fd=new _0x3bd327();_0x2f74fd[_0x2732ff(0x146)]({..._0x2bf4f5}),_0xcee75b=_0x2f74fd[_0x2732ff(0x2fa)]();}return _0x40ce8a[_0x2732ff(0xc8)](),this[_0x2732ff(0x20d)][_0x2732ff(0x1d1)][_0x2732ff(0x2f9)]===!0x0||_0x40ce8a[_0x2732ff(0x288)](_0xcee75b[0x0],_0xcee75b[0x1],_0xcee75b[0x2],_0xcee75b[0x3],_0x308c54,_0xf8c5b9),this[_0x2732ff(0x16c)](_0x40ce8a,_0x5f42f1,_0x16d60a,_0x107f11),_0x40ce8a[_0x2732ff(0x247)](),this[_0x2732ff(0x16b)](!0x1),this;}[_0x3721df(0x287)](_0x2c1d49){const _0x56aa89=_0x3721df;let {left:_0x6e85b3,top:_0x134671,width:_0x14ea7a,height:_0x3b5cac}=this[_0x56aa89(0xb0)](),_0x39c5fd=this['transform'][_0x56aa89(0x2fa)](),_0x32843e=_0x6e85b3+_0x14ea7a/0x2,_0x5b887e=_0x134671+_0x3b5cac/0x2,_0xf94d77=new _0x3bd327([_0x39c5fd[0x0],_0x39c5fd[0x1],_0x39c5fd[0x2],_0x39c5fd[0x3],_0x32843e,_0x5b887e]),_0x7f2767=this[_0x56aa89(0x232)]();return(this[_0x56aa89(0x26b)]&&(_0x7f2767==null?void 0x0:_0x7f2767[_0x56aa89(0xe7)])===_0x34cfe5[_0x56aa89(0x137)]?_0x7f2767[_0x56aa89(0x13c)]['multiply'](_0xf94d77):_0xf94d77)[_0x56aa89(0x27c)]()[_0x56aa89(0xfa)](_0x2c1d49);}['isHit'](_0x439331){const _0x55540a=_0x3721df;let {left:_0x39c6df,top:_0x4c197b,width:_0x20e5f0,height:_0x18dde4}=this[_0x55540a(0xb0)](),_0x504e57=_0x39c6df+_0x20e5f0/0x2,_0x45ee60=_0x4c197b+_0x18dde4/0x2,_0x4e1645=this[_0x55540a(0x288)][_0x55540a(0x2fa)](),_0x3ca8f9=new _0x3bd327([_0x4e1645[0x0],_0x4e1645[0x1],_0x4e1645[0x2],_0x4e1645[0x3],_0x504e57,_0x45ee60]),_0x50edf1=this[_0x55540a(0x232)](),_0x41acc1=(this[_0x55540a(0x26b)]&&(_0x50edf1==null?void 0x0:_0x50edf1[_0x55540a(0xe7)])===_0x34cfe5[_0x55540a(0x137)]?_0x50edf1[_0x55540a(0x13c)][_0x55540a(0xfb)](_0x3ca8f9):_0x3ca8f9)[_0x55540a(0x27c)]()['applyPoint'](_0x439331),_0xca663a=_0x20e5f0/0x2,_0x96759d=_0x18dde4/0x2,_0x55aeb4=this[_0x55540a(0x20d)]['shapeModel'];return _0x55aeb4&&_0x55aeb4[_0x55540a(0x251)]()?_0x55aeb4[_0x55540a(0x293)](_0x41acc1['x'],_0x41acc1['y'],_0x20e5f0,_0x18dde4):_0x41acc1['x']>=-_0xca663a-this[_0x55540a(0xd3)]/0x2&&_0x41acc1['x']<=_0xca663a+this[_0x55540a(0xd3)]/0x2&&_0x41acc1['y']>=-_0x96759d-this[_0x55540a(0xd3)]/0x2&&_0x41acc1['y']<=_0x96759d+this['strokeWidth']/0x2;}[_0x3721df(0x250)](){const _0x5946dd=_0x3721df;this[_0x5946dd(0x20d)][_0x5946dd(0x1d1)]=null,super[_0x5946dd(0x250)]();}},yn=class extends _0x39ac3d{constructor(_0x451e2b,_0x1618c7){const _0x3e45c3=_0x3721df;super(_0x451e2b,_0x1618c7),q(this,'_shapeId',null),q(this,_0x3e45c3(0x1ab),null),q(this,'_unitId',null),q(this,'_subUnitId',null),_0x1618c7&&this[_0x3e45c3(0x295)](_0x1618c7);}[_0x3721df(0x245)](){const _0x257729=_0x3721df;return{'unitId':this[_0x257729(0x255)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x3721df(0x295)](_0x250ba9){const _0x2656b9=_0x3721df;_0x250ba9['shapeId']!==void 0x0&&(this[_0x2656b9(0x176)]=_0x250ba9['shapeId']),_0x250ba9[_0x2656b9(0x11c)]!==void 0x0&&(this[_0x2656b9(0x1ab)]=_0x250ba9[_0x2656b9(0x11c)]),_0x250ba9[_0x2656b9(0xe5)]!==void 0x0&&(this['_unitId']=_0x250ba9[_0x2656b9(0xe5)]),_0x250ba9[_0x2656b9(0x183)]!==void 0x0&&(this[_0x2656b9(0x113)]=_0x250ba9[_0x2656b9(0x183)]),this[_0x2656b9(0x2d2)]({'width':_0x250ba9[_0x2656b9(0x19c)],'height':_0x250ba9['height']});}['_draw'](_0x136e67){const _0x3dac48=_0x3721df;_0x2cd80f[_0x3dac48(0x185)](_0x136e67,{'radius':_0x170bf6[_0x3dac48(0x2ab)],'fill':_0x170bf6[_0x3dac48(0x280)],'stroke':_0x170bf6[_0x3dac48(0x101)],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x32079f,_0x49ef70){return function(_0x1ef784,_0x25d009){_0x49ef70(_0x1ef784,_0x25d009,_0x32079f);};}function Y(_0x3db4cf,_0x2c4142,_0x169c91,_0x67863e){const _0x4dab96=_0x3721df;var _0x1fa5f0=arguments['length'],_0x1007af=_0x1fa5f0<0x3?_0x2c4142:_0x67863e===null?_0x67863e=Object[_0x4dab96(0x186)](_0x2c4142,_0x169c91):_0x67863e,_0x4b192b;if(typeof Reflect==_0x4dab96(0x249)&&typeof Reflect[_0x4dab96(0x2db)]==_0x4dab96(0x109))_0x1007af=Reflect[_0x4dab96(0x2db)](_0x3db4cf,_0x2c4142,_0x169c91,_0x67863e);else{for(var _0x559c4a=_0x3db4cf[_0x4dab96(0x19e)]-0x1;_0x559c4a>=0x0;_0x559c4a--)(_0x4b192b=_0x3db4cf[_0x559c4a])&&(_0x1007af=(_0x1fa5f0<0x3?_0x4b192b(_0x1007af):_0x1fa5f0>0x3?_0x4b192b(_0x2c4142,_0x169c91,_0x1007af):_0x4b192b(_0x2c4142,_0x169c91))||_0x1007af);}return _0x1fa5f0>0x3&&_0x1007af&&Object[_0x4dab96(0x286)](_0x2c4142,_0x169c91,_0x1007af),_0x1007af;}let X=class extends _0x3ff889{constructor(_0x370a5d,_0x494408,_0x38a913,_0x5cdd4c,_0x19b31a){const _0x281f1a=_0x3721df;super(),this[_0x281f1a(0x212)]=_0x370a5d,this[_0x281f1a(0x1a7)]=_0x494408,this['_localeService']=_0x38a913,this[_0x281f1a(0x1c9)]=_0x5cdd4c,this[_0x281f1a(0x180)]=_0x19b31a;}[_0x3721df(0x297)](_0xfdfe84,_0x1521b8,_0xba7efe){const _0x3dac8d=_0x3721df;let {transform:_0x34eeae,drawingType:_0x1dd5ea,srcRect:_0x450f00,prstGeom:_0x4dfa86,groupId:_0x44b24c,unitId:_0x471246,subUnitId:_0x242cf4,drawingId:_0x295d4d,isMultiTransform:_0x235aa6,transforms:_0x3bb776,hidden:_0x348409,selectable:_0x4dde10}=_0xfdfe84;if(_0x1dd5ea!==_0x91d30f[_0x3dac8d(0x27a)]||!this['_drawingManagerService'][_0x3dac8d(0xed)]()||_0x34eeae==null)return;let _0x6f086b=this[_0x3dac8d(0x212)]['getDrawingEditable']();_0x6f086b&&_0x1521b8[_0x3dac8d(0x289)](_0x278e4a);let _0x519edb=_0x235aa6&&_0x3bb776?_0x3bb776:[_0x34eeae],_0x15a1f8=[];for(let _0x3263d3 of _0x519edb){let {left:_0xadf3b8,top:_0xb2eeae,width:_0x50a82c,height:_0x4e2139,angle:_0xfd6921,flipX:_0x285367,flipY:_0x591979,skewX:_0x2dcda9,skewY:_0x2de6f9}=_0x3263d3,_0x39f7f5=_0x519edb['indexOf'](_0x3263d3),_0xa75571=_0xc0766c({'unitId':_0x471246,'subUnitId':_0x242cf4,'drawingId':_0x295d4d},_0x235aa6?_0x39f7f5:void 0x0),_0x5d8805=_0x1521b8[_0x3dac8d(0xc2)](_0xa75571);if(_0x5d8805!=null){_0x5d8805[_0x3dac8d(0x2d2)]({'left':_0xadf3b8,'top':_0xb2eeae,'width':_0x50a82c,'height':_0x4e2139,'angle':_0xfd6921,'flipX':_0x285367,'flipY':_0x591979,'skewX':_0x2dcda9,'skewY':_0x2de6f9});continue;}let _0x1a117e=this[_0x3dac8d(0x212)][_0x3dac8d(0x17a)](_0x471246,_0x242cf4),_0x3ac8e0=_0x1a117e['indexOf'](_0x295d4d);if(_0x1521b8[_0x3dac8d(0xc2)](_0xa75571)||!this[_0x3dac8d(0x212)]['getDrawingVisible']())continue;let _0x137cdb=this[_0x3dac8d(0x1a7)][_0x3dac8d(0xef)](_0x471246,_0x242cf4,_0x295d4d);if(!_0x137cdb)continue;let _0x20c7b6=new vn(_0xa75571,{..._0x51a857(_0x137cdb[_0x3dac8d(0x210)]())?{..._0x3263d3,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x3263d3},'zIndex':_0x3ac8e0===-0x1?_0x1a117e[_0x3dac8d(0x19e)]-0x1:_0x3ac8e0,'shapeModel':_0x137cdb,'localeService':this[_0x3dac8d(0x11e)],'shapeId':_0x295d4d,'unitId':_0x471246,'subUnitId':_0x242cf4,'visible':_0x348409!==!0x0,'evented':_0x4dde10!==!0x1});_0x1521b8['addObject'](_0x20c7b6,_0x1484b2),_0x6f086b&&_0x1521b8[_0x3dac8d(0xd6)](_0x20c7b6),_0x44b24c&&_0x2dcd00({'drawingId':_0x44b24c,'unitId':_0x471246,'subUnitId':_0x242cf4},_0x20c7b6,_0x1521b8,this[_0x3dac8d(0x212)]),_0x4dfa86!=null&&_0x20c7b6[_0x3dac8d(0x104)](_0x4dfa86),_0x450f00!=null&&_0x20c7b6[_0x3dac8d(0xfe)](_0x450f00);let _0x2f7f95=this[_0x3dac8d(0x309)](_0x20c7b6,_0x137cdb[_0x3dac8d(0x21d)]());if(_0x2f7f95){var _0x564fbc;_0xba7efe==null||(_0x564fbc=_0xba7efe[_0x3dac8d(0x1c3)])==null||_0x564fbc[_0x3dac8d(0x198)](_0x2f7f95);}_0x15a1f8[_0x3dac8d(0x1d2)](_0x20c7b6);}return _0x15a1f8;}[_0x3721df(0x29e)](_0x2a2418){const _0x1587bd=_0x3721df;let _0x96e54e=_0x2a2418['shapeModel'][_0x1587bd(0x21d)](),_0x3d4394=_0x96e54e[_0x1587bd(0x2b4)];if(!_0x3d4394||_0x3d4394['fillType']!==_0x264689['PictureFill']||!_0x3d4394[_0x1587bd(0x2cd)]){_0x2a2418[_0x1587bd(0x2a3)](void 0x0);return;}this['_loadShapePictureFill'](_0x2a2418,_0x96e54e);}[_0x3721df(0x309)](_0x3e5421,_0x78f5b9){const _0x3dc476=_0x3721df;var _0x2d0c4a;let _0x68c1aa=_0x78f5b9[_0x3dc476(0x2b4)];if(!_0x68c1aa||_0x68c1aa['fillType']!==_0x264689['PictureFill']||!_0x68c1aa[_0x3dc476(0x2cd)])return;let _0x2ff595=_0x68c1aa[_0x3dc476(0x2cd)],_0x440d83=(_0x2d0c4a=_0x68c1aa[_0x3dc476(0x2ff)])==null?_0x588265[_0x3dc476(0x30c)]:_0x2d0c4a,_0x511dbc=this[_0x3dc476(0x1c9)][_0x3dc476(0x1bb)](_0x2ff595,_0x440d83);if(_0x511dbc){_0x3e5421['setFillImage'](_0x511dbc);return;}return this[_0x3dc476(0x128)](_0x3e5421,_0x2ff595,_0x440d83);}async[_0x3721df(0x128)](_0x2b1afd,_0x528f26,_0x58a189){const _0x2cc97e=_0x3721df;let _0x3ee901;try{if(_0x58a189===_0x588265[_0x2cc97e(0x240)])_0x3ee901=await this[_0x2cc97e(0x1c9)][_0x2cc97e(0xf7)](_0x528f26);else{if(_0x58a189===_0x588265[_0x2cc97e(0x30c)])try{_0x3ee901=await this[_0x2cc97e(0x180)][_0x2cc97e(0xf7)](_0x528f26);}catch{_0x3ee901=_0x528f26;}else _0x3ee901=_0x528f26;}}catch(_0x27f0f5){console[_0x2cc97e(0x17e)](_0x2cc97e(0x23b),_0x27f0f5);return;}await new Promise(_0x45b30c=>{const _0x1be2e2=_0x2cc97e;let _0x39267a=new window[(_0x1be2e2(0x279))]();_0x39267a['onload']=()=>{const _0x29a1f4=_0x1be2e2;this[_0x29a1f4(0x1c9)][_0x29a1f4(0xbe)](_0x528f26,_0x58a189,_0x39267a),_0x2b1afd['setFillImage'](_0x39267a),_0x45b30c();},_0x39267a[_0x1be2e2(0x15d)]=()=>{const _0x3722d9=_0x1be2e2;console[_0x3722d9(0x17e)](_0x3722d9(0x175),_0x528f26),_0x45b30c();},_0x39267a[_0x1be2e2(0x239)]=_0x3ee901;});}};X=Y([J(0x0,_0x30b385),J(0x1,_0x44ac9c(_0x2318dd)),J(0x2,_0x44ac9c(_0x52ec80)),J(0x3,_0x3e0cef),J(0x4,_0xf3fd29)],X);let Z=class extends _0x3ff889{constructor(_0x198f67,_0x4c52b4,_0x3520b4,_0x162bd1,_0x1d3ffb,_0x4df7c3){const _0x5c530b=_0x3721df;super(),this['_drawingManagerService']=_0x198f67,this[_0x5c530b(0x1a7)]=_0x4c52b4,this[_0x5c530b(0x28f)]=_0x3520b4,this[_0x5c530b(0x1c5)]=_0x162bd1,this['_univerInstanceService']=_0x1d3ffb,this[_0x5c530b(0x1fc)]=_0x4df7c3,q(this,'_activeShapeId',null),q(this,'_unitId',null),q(this,_0x5c530b(0x113),null),q(this,_0x5c530b(0x208),void 0x0),q(this,_0x5c530b(0x2e5),[]),q(this,_0x5c530b(0xb7),0x0),q(this,_0x5c530b(0x2a8),0x0),q(this,_0x5c530b(0x1e8),0x0),q(this,_0x5c530b(0x2f7),0x0),q(this,'_isStartAdjusting',!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x5c530b(0x25f),void 0x0),q(this,_0x5c530b(0xb1),void 0x0),q(this,_0x5c530b(0x2bd),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x5c530b(0x189)](),this['_registerDrawingMoveHandler']();}[_0x3721df(0x22b)](_0x198b14,_0x5947f0,_0x22c5f8){const _0x40449f=_0x3721df;let _0x20307b=this[_0x40449f(0x1a7)]['getShapeModel'](_0x198b14,_0x5947f0,_0x22c5f8);if(_0x20307b)return _0x20307b[_0x40449f(0x1c1)]();}[_0x3721df(0x161)](){const _0x39933e=_0x3721df;this[_0x39933e(0x21b)]();}[_0x3721df(0x274)](){const _0x189c41=_0x3721df;this[_0x189c41(0x25c)](!0x0);}['setShouldShowAdjust'](_0x2964cf){this['_isShouldShowDrawingShapeAdjust']=_0x2964cf;}[_0x3721df(0x165)](_0x45752c,_0x4b395b,_0x26c775,_0x2f026d){const _0x43a135=_0x3721df;let _0x211135=this[_0x43a135(0x1a7)][_0x43a135(0xef)](_0x45752c,_0x4b395b,_0x26c775);if(_0x211135)return _0x211135[_0x43a135(0xa5)](_0x2f026d);}[_0x3721df(0xb2)](_0x9b49b1=!0x1){const _0x4733d0=_0x3721df;if(this['_unitId']===null||this['_subUnitId']===null||this[_0x4733d0(0x12e)]===null)return;let _0x2f51cd=this[_0x4733d0(0x28f)]['getRenderById'](this[_0x4733d0(0x255)]);if(!_0x2f51cd||!_0x2f51cd[_0x4733d0(0x29b)](_0x39e39b)['getCurrentSkeleton']())return;let {scene:_0x2a2949}=_0x2f51cd,_0xbebef9={'unitId':this[_0x4733d0(0x255)],'subUnitId':this[_0x4733d0(0x113)],'drawingId':this[_0x4733d0(0x12e)]},_0x1ece7d=this[_0x4733d0(0x212)][_0x4733d0(0x22d)](_0xbebef9),{transform:_0x4be5bf}=_0x1ece7d;if(!_0x4be5bf||_0x1ece7d[_0x4733d0(0x132)]!==_0x91d30f[_0x4733d0(0x27a)])return;let {left:_0x2c04e7,top:_0x2a100f,width:_0x50db1f,height:_0x48fe1f,flipX:_0x4e0e20,flipY:_0x288eac,angle:_0x1a665f=0x0}=_0x4be5bf;if(_0x2c04e7===void 0x0||_0x2a100f===void 0x0)return;_0x9b49b1&&(this[_0x4733d0(0x208)]=this[_0x4733d0(0x22b)](this[_0x4733d0(0x255)],this[_0x4733d0(0x113)],this[_0x4733d0(0x12e)]));let _0x268a9d=this[_0x4733d0(0x208)];for(let _0x37fe1d=0x0;_0x37fe1d<_0x268a9d[_0x4733d0(0x19e)];_0x37fe1d++){let _0x4b6302=_0x268a9d[_0x37fe1d],_0x2720d7=_0x4b6302['x'],_0xbccb0d=_0x4b6302['y'];if(_0x4e0e20&&(_0x2720d7=(_0x50db1f||0x0)-_0x2720d7),_0x288eac&&(_0xbccb0d=(_0x48fe1f||0x0)-_0xbccb0d),_0x1a665f!==0x0){let _0x1bdd38=(_0x50db1f||0x0)/0x2,_0x4a8d2b=(_0x48fe1f||0x0)/0x2,_0x2e400f=_0x1a665f*Math['PI']/0xb4,_0x27bbeb=Math['cos'](_0x2e400f),_0x6a9e49=Math[_0x4733d0(0x122)](_0x2e400f),_0x4a000d=_0x2720d7-_0x1bdd38,_0x3ab1a2=_0xbccb0d-_0x4a8d2b;_0x2720d7=_0x1bdd38+(_0x4a000d*_0x27bbeb-_0x3ab1a2*_0x6a9e49),_0xbccb0d=_0x4a8d2b+(_0x4a000d*_0x6a9e49+_0x3ab1a2*_0x27bbeb);}let _0x57f620={'x':_0x2720d7,'y':_0xbccb0d,'adjName':_0x4b6302[_0x4733d0(0x11c)]};this['_addShapeAdjustControl'](_0x2a2949,_0x57f620,_0x57f620[_0x4733d0(0x11c)],_0x2c04e7,_0x2a100f,this[_0x4733d0(0x255)],this[_0x4733d0(0x113)]);}}['_updateShapeAdjustControls'](_0x27394a=!0x1){const _0x4aa4ee=_0x3721df;_0x27394a&&(this[_0x4aa4ee(0x21b)](),this[_0x4aa4ee(0xb2)](_0x27394a));}[_0x3721df(0x173)](_0x29b054,_0x1a5da6,_0x2afd99,_0x437222,_0x3530dc,_0x10f56e,_0x791da1){const _0x7ec71a=_0x3721df;if(!this[_0x7ec71a(0x12e)])return;let _0x4c5090=_0x29b054[_0x7ec71a(0xc2)](_0x7ec71a(0x2af)+this[_0x7ec71a(0x12e)]+'-'+_0x2afd99);if(_0x4c5090){_0x4c5090[_0x7ec71a(0x2d2)]({'left':_0x1a5da6['x']+_0x437222-_0x170bf6['adjHandleSize'],'top':_0x1a5da6['y']+_0x3530dc-_0x170bf6[_0x7ec71a(0x2ab)]});return;}let _0x10315a={'left':_0x1a5da6['x']+_0x437222-_0x170bf6[_0x7ec71a(0x2ab)],'top':_0x1a5da6['y']+_0x3530dc-_0x170bf6['adjHandleSize'],'adjName':_0x2afd99,'shapeId':this['_activeShapeId'],'unitId':_0x10f56e,'subUnitId':_0x791da1,'width':_0x170bf6['adjHandleSize']+0x8,'height':_0x170bf6[_0x7ec71a(0x2ab)]+0x8,'zIndex':_0x1484b2+0x1,'evented':!0x0},_0x149332=new yn(_0x7ec71a(0x2af)+this[_0x7ec71a(0x12e)]+'-'+_0x2afd99,_0x10315a);this['_shapes'][_0x7ec71a(0x1d2)](_0x149332),this[_0x7ec71a(0x1fb)](_0x149332,_0x29b054,_0x2afd99),_0x29b054[_0x7ec71a(0x170)](_0x149332,_0x1484b2+0x1);}[_0x3721df(0x21b)](){const _0x1c94e2=_0x3721df;this[_0x1c94e2(0x2e5)][_0x1c94e2(0x19e)]!==0x0&&(this[_0x1c94e2(0x2e5)][_0x1c94e2(0x1a9)](_0x41b669=>{_0x41b669['dispose']();}),this[_0x1c94e2(0x2e5)]=[]);}[_0x3721df(0x2c6)](){this['_createShapeAdjustControls']();}[_0x3721df(0x18a)](_0x467c35,_0x39616f){const _0x17a54a=_0x3721df;var _0xd4ac23;let _0x3b79d7={'x':0x0,'y':0x0};if(!_0x467c35||!_0x39616f)return _0x3b79d7;let _0x2c8313=this[_0x17a54a(0x28f)][_0x17a54a(0x1f1)](_0x467c35);if(!_0x2c8313||!_0x2c8313[_0x17a54a(0x29b)](_0x39e39b)[_0x17a54a(0xf0)](_0x39616f))return _0x3b79d7;let _0x5e0c81=_0x2c8313[_0x17a54a(0x29b)](_0x4f30c1),_0x5d7d6b=_0x5e0c81==null?void 0x0:_0x5e0c81[_0x17a54a(0xd5)]();if(!_0x5d7d6b)return _0x3b79d7;let _0x267726=(_0xd4ac23=this[_0x17a54a(0x205)]['getUnit'](_0x467c35))==null?void 0x0:_0xd4ac23['getSheetBySheetId'](_0x39616f);if(!_0x267726)return _0x3b79d7;let _0x5ad95f=_0x177de7(_0x5d7d6b[_0x17a54a(0x195)],_0x5d7d6b['sheetViewStartColumn'],_0x2c8313['scene'],_0x267726);return _0x5ad95f?{'x':_0x5ad95f[_0x17a54a(0x1b0)],'y':_0x5ad95f[_0x17a54a(0xad)]}:_0x3b79d7;}[_0x3721df(0x234)](_0x29df6f,_0x3c5181){const _0x4d4660=_0x3721df;var _0x25f5ef,_0x11c83b;let _0x166e05=(_0x25f5ef=this[_0x4d4660(0x205)][_0x4d4660(0x201)](_0x29df6f))==null?void 0x0:_0x25f5ef[_0x4d4660(0x24c)](_0x3c5181);return(_0x11c83b=_0x166e05==null?void 0x0:_0x166e05[_0x4d4660(0x2da)]())==null?0x1:_0x11c83b;}[_0x3721df(0x1fb)](_0x4c86c3,_0x5c3017,_0x2c4db6){const _0x4c7695=_0x3721df;this['disposeWithMe'](_0x4e35de(_0x4c86c3[_0x4c7695(0x2d3)][_0x4c7695(0x2ce)]((_0x4a8fbc,_0xfa682b)=>{const _0x1a2ba6=_0x4c7695;var _0x7e511d,_0x434beb,_0x17f3b0,_0x1a35ee;let _0x109464=_0x4c86c3[_0x1a2ba6(0x245)]();this[_0x1a2ba6(0x256)]=this['_getShapeAdjustInfosById'](_0x109464[_0x1a2ba6(0xe5)],_0x109464['subUnitId'],_0x109464[_0x1a2ba6(0x121)],_0x2c4db6),this[_0x1a2ba6(0x25f)]=this[_0x1a2ba6(0x1a7)][_0x1a2ba6(0xef)](_0x109464['unitId'],_0x109464[_0x1a2ba6(0x183)],_0x109464[_0x1a2ba6(0x121)]);let _0x40ce69=this[_0x1a2ba6(0x212)]['getDrawingByParam']({'unitId':this[_0x1a2ba6(0x255)],'subUnitId':this[_0x1a2ba6(0x113)],'drawingId':this[_0x1a2ba6(0x12e)]}),{transform:_0x433cde}=_0x40ce69;if(_0x433cde){let {left:_0x14e781,top:_0x1246b8,width:_0xe31bf2,height:_0x287743}=_0x433cde;this[_0x1a2ba6(0xb7)]=_0x14e781||0x0,this['_baseShapeTop']=_0x1246b8||0x0,this['_baseShapeWidth']=_0xe31bf2||0x0,this['_baseShapeHeight']=_0x287743||0x0;}let _0x8cd2d2=!!((_0x7e511d=_0x40ce69[_0x1a2ba6(0x288)])!=null&&_0x7e511d[_0x1a2ba6(0x124)]),_0x341da5=!!((_0x434beb=_0x40ce69['transform'])!=null&&_0x434beb['flipY']),_0x89ea35=((_0x17f3b0=_0x40ce69['transform'])==null?void 0x0:_0x17f3b0[_0x1a2ba6(0x300)])||0x0;this[_0x1a2ba6(0x167)]=!0x0,_0x5c3017[_0x1a2ba6(0x1be)]();let _0x1d07a2=(_0x1a35ee=this[_0x1a2ba6(0x25f)])==null?void 0x0:_0x1a35ee[_0x1a2ba6(0x25d)](_0x2c4db6),_0x3933e9={[_0x2c4db6]:_0x1d07a2};this[_0x1a2ba6(0xb1)]=_0x5c3017['onPointerMove$'][_0x1a2ba6(0x2ce)]((_0x208c2d,_0x176a8e)=>{const _0x2bd22f=_0x1a2ba6;if(!this[_0x2bd22f(0x167)])return;let {offsetX:_0x8820bb,offsetY:_0x37c44c}=_0x208c2d,_0x98d737=this['_activeAdjustInfo'];if(this[_0x2bd22f(0x25f)]&&_0x98d737){_0x5c3017[_0x2bd22f(0x1be)](),_0x5c3017[_0x2bd22f(0xce)](_0x5615ac[_0x2bd22f(0xae)]);let _0x1255ca={'left':0x0,'top':0x0,'width':this[_0x2bd22f(0x1e8)],'height':this[_0x2bd22f(0x2f7)]},_0x34fbde=this[_0x2bd22f(0x18a)](this['_unitId'],this[_0x2bd22f(0x113)]),_0x276439=this[_0x2bd22f(0x234)](this[_0x2bd22f(0x255)],this[_0x2bd22f(0x113)]),_0x232fb4=_0x8820bb/_0x276439+_0x34fbde['x']-this['_baseShapeLeft'],_0x5418ca=_0x37c44c/_0x276439+_0x34fbde['y']-this[_0x2bd22f(0x2a8)];if(_0x89ea35!==0x0){let _0x97834c=this['_baseShapeWidth']/0x2,_0x4d1720=this[_0x2bd22f(0x2f7)]/0x2,_0x36a5a6=_0x89ea35*Math['PI']/0xb4,_0x35e23b=Math[_0x2bd22f(0x2ac)](_0x36a5a6),_0x15896d=Math[_0x2bd22f(0x122)](_0x36a5a6),_0x46c72e=_0x232fb4-_0x97834c,_0x4ec104=_0x5418ca-_0x4d1720;_0x232fb4=_0x97834c+(_0x46c72e*_0x35e23b+_0x4ec104*_0x15896d),_0x5418ca=_0x4d1720+(-_0x46c72e*_0x15896d+_0x4ec104*_0x35e23b);}_0x8cd2d2&&(_0x232fb4=this[_0x2bd22f(0x1e8)]-_0x232fb4),_0x341da5&&(_0x5418ca=this[_0x2bd22f(0x2f7)]-_0x5418ca);let _0x2c14a1={'x':_0x232fb4,'y':_0x5418ca},_0x475603=this[_0x2bd22f(0x25f)][_0x2bd22f(0x2ee)](_0x1255ca,_0x2c14a1,_0x98d737,_0x8cd2d2,_0x341da5),_0x356c0e=_0x98d737[_0x2bd22f(0x28d)]||_0x98d737['gdRefY']||_0x98d737['gdRefAng']||_0x98d737[_0x2bd22f(0xf9)];if(_0x356c0e===void 0x0)return;this[_0x2bd22f(0x25f)][_0x2bd22f(0x17f)](_0x356c0e,_0x475603);let _0x850c9=this[_0x2bd22f(0x212)]['getDrawingByParam']({'unitId':_0x109464['unitId'],'subUnitId':_0x109464[_0x2bd22f(0x183)],'drawingId':_0x109464[_0x2bd22f(0x121)]});_0x850c9&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x850c9,_0x5c3017),this[_0x2bd22f(0x208)]=this[_0x2bd22f(0x22b)](_0x109464[_0x2bd22f(0xe5)],_0x109464[_0x2bd22f(0x183)],_0x109464[_0x2bd22f(0x121)]),this['_updateAdjustControlPositions']());}_0x176a8e[_0x2bd22f(0x17b)]();}),this['_adjHandlerPointerUp']=_0x5c3017[_0x1a2ba6(0x163)][_0x1a2ba6(0x2ce)]((_0x5cd5d8,_0x7a6e7d)=>{const _0x2d311e=_0x1a2ba6;this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x2d311e(0x2bd)]['unsubscribe'](),_0x5c3017[_0x2d311e(0xda)]();let _0x1ce3e4=this[_0x2d311e(0x256)];if(_0x1ce3e4){let _0x297a99=_0x109464[_0x2d311e(0xe5)],_0x48b754=_0x109464['subUnitId'],_0x4f6cf5=_0x109464[_0x2d311e(0x121)],_0x483990=_0x1ce3e4[_0x2d311e(0x28d)]||_0x1ce3e4['gdRefY']||_0x1ce3e4['gdRefAng']||_0x1ce3e4[_0x2d311e(0xf9)];if(_0x483990!==void 0x0){var _0xf8c96;let _0x570837=(_0xf8c96=this[_0x2d311e(0x25f)])==null?void 0x0:_0xf8c96[_0x2d311e(0x25d)](_0x483990);_0x570837!==void 0x0&&fn(this[_0x2d311e(0x1fc)],_0x297a99,_0x48b754,_0x4f6cf5,{'oldShapeData':{'adjustValues':_0x3933e9}},{'adjustValues':{[_0x483990]:_0x570837}});}}this['_activeAdjustInfo']=void 0x0,this[_0x2d311e(0x25f)]=void 0x0,this[_0x2d311e(0x167)]=!0x1,_0x7a6e7d['stopPropagation'](),_0x5c3017[_0x2d311e(0x150)]();}),_0xfa682b[_0x1a2ba6(0x17b)]();})));}[_0x3721df(0x2fb)](){const _0x4e8a20=_0x3721df;let _0x34aa1c=this[_0x4e8a20(0x205)][_0x4e8a20(0x1e2)](_0x2c116a[_0x4e8a20(0x1a1)]);this['disposeWithMe'](_0x34aa1c['pipe'](_0x319361(_0x23213b=>_0x23213b?_0x23213b['activeSheet$'][_0x4e8a20(0x27d)](_0x319361(_0x1a9fda=>{const _0x5a0a29=_0x4e8a20;if(!_0x1a9fda)return _0x4cf815;let _0x545ce4=_0x23213b[_0x5a0a29(0x1b5)](),_0x1f3ba8=this[_0x5a0a29(0x28f)]['getRenderById'](_0x545ce4),_0x7c6e9e=_0x1f3ba8==null?void 0x0:_0x1f3ba8[_0x5a0a29(0x223)];return _0x7c6e9e?_0x232c55(_0x7c6e9e):_0x4cf815;})):_0x4cf815))[_0x4e8a20(0x290)](_0x2f8670=>{const _0x15538b=_0x4e8a20;let _0x2e4e0d=_0x2f8670['getTransformerByCreate']();this['disposeWithMe'](_0x2f8670['onPointerMove$'][_0x15538b(0x2ce)](()=>{const _0x29e6f8=_0x15538b;this[_0x29e6f8(0x244)];})),this['disposeWithMe'](_0x2e4e0d['changeStart$']['subscribe'](_0x3d3704=>{const _0x14b4a2=_0x15538b;let {objects:_0x3bb3cf}=_0x3d3704;this[_0x14b4a2(0xb2)](),_0x3bb3cf!==null&&_0x3bb3cf[_0x14b4a2(0x30a)]===0x1&&_0x3bb3cf[_0x14b4a2(0x258)]()[_0x14b4a2(0x11b)]()[_0x14b4a2(0x15c)]instanceof vn&&this[_0x14b4a2(0xc9)](!0x0);})),this[_0x15538b(0x23d)](_0x2e4e0d[_0x15538b(0x1a0)][_0x15538b(0x290)](()=>{const _0x26dd05=_0x15538b;this['_isShouldShowDrawingShapeAdjust']&&this[_0x26dd05(0x21b)]();})),this['disposeWithMe'](_0x2f8670['onPointerUp$'][_0x15538b(0x2ce)](()=>{const _0x525fa9=_0x15538b;this['_isShouldShowDrawingShapeAdjust']&&(this['setShouldShowAdjust'](!0x1),this[_0x525fa9(0xb2)]());})),this[_0x15538b(0x23d)](_0x2e4e0d[_0x15538b(0x2f1)][_0x15538b(0x290)](()=>{const _0x26bb9b=_0x15538b;this[_0x26bb9b(0x255)]&&this[_0x26bb9b(0x113)]&&this['_activeShapeId']&&this[_0x26bb9b(0x212)]['getDrawingByParam']({'unitId':this[_0x26bb9b(0x255)],'subUnitId':this[_0x26bb9b(0x113)],'drawingId':this[_0x26bb9b(0x12e)]})&&(this[_0x26bb9b(0x208)]=this[_0x26bb9b(0x22b)](this['_unitId'],this['_subUnitId'],this[_0x26bb9b(0x12e)]),this[_0x26bb9b(0x2c6)]());}));}));}[_0x3721df(0x189)](){const _0x41567c=_0x3721df;this[_0x41567c(0x23d)](this[_0x41567c(0x212)][_0x41567c(0x225)][_0x41567c(0x290)](_0x4255e3=>{const _0x194a0a=_0x41567c;if(_0x4255e3['length']===0x1){let _0x4e0bb0=_0x4255e3[0x0];if(_0x4e0bb0[_0x194a0a(0x132)]===_0x91d30f['DRAWING_SHAPE']){this[_0x194a0a(0x12e)]=_0x4e0bb0['drawingId'];let {unitId:_0x53a0ab,subUnitId:_0x3d856c}=_0x4e0bb0;this[_0x194a0a(0x208)]=this['_getShapeAdjustPointListById'](_0x53a0ab,_0x3d856c,this[_0x194a0a(0x12e)]),this['_unitId']=_0x53a0ab,this[_0x194a0a(0x113)]=_0x3d856c,this[_0x194a0a(0x21b)](),this['_createShapeAdjustControls']();}else this[_0x194a0a(0x12e)]=null,this[_0x194a0a(0x208)]=void 0x0,this[_0x194a0a(0x255)]=null,this[_0x194a0a(0x113)]=null,this['_clearShapeAdjustControls']();}(_0x4255e3[_0x194a0a(0x19e)]>0x1||_0x4255e3['length']===0x0)&&(this[_0x194a0a(0x12e)]=null,this[_0x194a0a(0x208)]=void 0x0,this[_0x194a0a(0x255)]=null,this['_subUnitId']=null,this[_0x194a0a(0x21b)]());})),this['disposeWithMe'](this[_0x41567c(0x212)][_0x41567c(0xe0)][_0x41567c(0x290)](_0x24cb17=>{const _0x2663c3=_0x41567c;if(_0x24cb17[_0x2663c3(0x19e)]===0x1){var _0x522219;let _0x180f2b=_0x24cb17[0x0];((_0x522219=this[_0x2663c3(0x212)][_0x2663c3(0x22d)](_0x180f2b))==null?void 0x0:_0x522219[_0x2663c3(0x132)])===_0x91d30f[_0x2663c3(0x27a)]&&this[_0x2663c3(0x25c)](!0x0);}})),this[_0x41567c(0x23d)](this[_0x41567c(0x212)]['remove$'][_0x41567c(0x290)](_0x27ec61=>{const _0x579e35=_0x41567c;for(let _0x327b6a of _0x27ec61)this[_0x579e35(0x12e)]===_0x327b6a['drawingId']&&(this[_0x579e35(0x12e)]=null,this[_0x579e35(0x208)]=void 0x0,this[_0x579e35(0x255)]=null,this[_0x579e35(0x113)]=null,this[_0x579e35(0x21b)]());}));}};Z=Y([J(0x0,_0x30b385),J(0x1,_0x44ac9c(_0x2318dd)),J(0x2,_0x44ac9c(_0x3ab9c0)),J(0x3,_0x44ac9c(X)),J(0x4,_0xeac766),J(0x5,_0x27b781)],Z);const bn={'id':_0x3721df(0x2f4),'type':_0x518569[_0x3721df(0x1f0)],'handler':(_0x983adc,_0x47b788)=>{const _0x3bf178=_0x3721df;let _0x2ef256=_0x983adc[_0x3bf178(0x2f5)](_0x30b385),_0x19361b=_0x983adc[_0x3bf178(0x2f5)](_0x3ab9c0),_0x395d95=_0x983adc[_0x3bf178(0x2f5)](Z);if(_0x47b788==null)return!0x0;if(_0x47b788['length']>0x0){var _0x1727fe;let _0x3177a3=(_0x1727fe=_0x19361b[_0x3bf178(0x1f1)](_0x47b788[0x0][_0x3bf178(0xe5)]))==null?void 0x0:_0x1727fe['scene'];if(_0x3177a3){let {unitId:_0x30eaae,subUnitId:_0x48bd2a,drawingId:_0x45f921}=_0x47b788[0x0],_0x1d3f95=_0xc0766c({'unitId':_0x30eaae,'subUnitId':_0x48bd2a,'drawingId':_0x45f921},void 0x0),_0x505bc4=_0x3177a3[_0x3bf178(0xc2)](_0x1d3f95);if(_0x505bc4){var _0x2e5058;(_0x2e5058=_0x19361b['getRenderById'](_0x47b788[0x0]['unitId']))==null||(_0x2e5058=_0x2e5058['scene'][_0x3bf178(0x203)]())==null||_0x2e5058[_0x3bf178(0x21a)](_0x505bc4);}}_0x2ef256[_0x3bf178(0x2d1)](_0x47b788),_0x395d95[_0x3bf178(0xc9)](!0x1);}return!0x0;}},xn={'type':_0x518569[_0x3721df(0x1e9)],'id':_0x3721df(0x22c),'handler':async(_0x24984b,_0x49b9cd)=>{const _0x4dfb75=_0x3721df;let _0x28fdbe=_0x458956(_0x24984b['get'](_0xeac766));if(!_0x28fdbe)return!0x1;let _0x38bb53=_0x24984b['get'](_0x518d9a)[_0x4dfb75(0x1c0)]();if(!_0x38bb53)return!0x1;let _0x4d5684=_0x24984b[_0x4dfb75(0x2f5)](_0x27b781),{unitId:_0x55597c,subUnitId:_0x25be8e}=_0x28fdbe,{value:_0x1ad1f8,enhanceParams:_0x3c021c}=_0x49b9cd,{range:_0x7d0cf}=_0x38bb53,_0xa9d137={'unitId':_0x55597c,'subUnitId':_0x25be8e,'shapeType':_0x1ad1f8,'range':_0x7d0cf,'shapeId':_0x4b0b19()};if(_0x3c021c){let _0x4456bd=_0x51a857(_0x1ad1f8),_0x4b0771=_0x1ad1f8===_0x56b767[_0x4dfb75(0x1b8)];_0x4456bd&&(_0x3c021c[_0x4dfb75(0x2a1)]||_0x3c021c[_0x4dfb75(0x30d)])&&(_0xa9d137['shapeData']={'ln':{'startArrow':_0x3c021c[_0x4dfb75(0x2a1)]?{'type':_0x2333d6[_0x4dfb75(0xc6)],'size':_0x82696f[_0x4dfb75(0x1d3)]}:void 0x0,'endArrow':_0x3c021c['endArrow']?{'type':_0x2333d6[_0x4dfb75(0xc6)],'size':_0x82696f[_0x4dfb75(0x116)]}:void 0x0}}),_0x4b0771&&(_0x3c021c[_0x4dfb75(0x270)]||_0x3c021c[_0x4dfb75(0xe9)])&&(_0xa9d137['shapeData']=_0x7ef105({'fill':{'fillType':_0x264689[_0x4dfb75(0x2b3)],'color':_0x4dfb75(0x226)},'isHorizontal':!!_0x3c021c['horizontal'],'stroke':{'lineStrokeType':_0x21178c[_0x4dfb75(0x26c)],'width':0x1,'color':_0x4dfb75(0x1e6)}}));}let _0x1a8a32=_0x4d5684['syncExecuteCommand'](_0x24599f['id'],_0xa9d137);return setTimeout(()=>{const _0x37abe1=_0x4dfb75;_0x4d5684['executeCommand'](bn['id'],[{'unitId':_0x55597c,'subUnitId':_0x25be8e,'drawingId':_0xa9d137[_0x37abe1(0x1bf)]}]);},0xc8),_0x1a8a32;}},Sn=_0x3721df(0x133),Cn='sheet.shape.object-list.panel',wn=_0x3721df(0x105),Tn=_0x2d12f4(_0x3721df(0x136)),En=_0x3721df(0x25e),Dn={'id':_0x3721df(0x306),'type':_0x518569[_0x3721df(0x1e9)],'handler':(_0x12d434,_0x4f6f97)=>{const _0x38c075=_0x3721df;let _0x168a68=_0x12d434[_0x38c075(0x2f5)](_0x55dc5d),_0x34e4d4=_0x12d434[_0x38c075(0x2f5)](_0x52ec80),_0x2b00fb=_0x12d434[_0x38c075(0x2f5)](_0xeac766),_0x2ed6a0=_0x12d434[_0x38c075(0x2f5)](_0x27b781);return _0x458956(_0x2b00fb)?(_0x4f6f97==null?void 0x0:_0x4f6f97['value'])==='close'?(_0x168a68[_0x38c075(0x115)](Cn),!0x0):(_0x168a68[_0x38c075(0x1b7)]({'id':Cn,'header':{'title':_0x34e4d4['t'](_0x38c075(0x2c7))},'children':{'label':Cn},'onClose':()=>{const _0x4f47f5=_0x38c075;_0x2ed6a0[_0x4f47f5(0x213)](_0x549ead['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x3ff889{constructor(_0x5ebbe5,_0x1b3fa1){const _0x2f3e44=_0x3721df;super(),this[_0x2f3e44(0x17c)]=_0x5ebbe5,this['_drawingManagerService']=_0x1b3fa1,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x2f3e44(0x28b)](!0x0),this[_0x2f3e44(0x23d)]({'dispose':()=>this[_0x2f3e44(0x17c)][_0x2f3e44(0x28b)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x1f4b49=_0x3721df;let _0x171cad=this[_0x1f4b49(0x17c)],_0x2fcbbf=new Map(),_0x4be220=_0x171cad[_0x1f4b49(0x156)]((_0x3230d4,_0xa6b445,_0x17a08e,_0x55cefd,_0xcb9ed)=>{const _0x4fb76b=_0x1f4b49;let _0x398c33=_0xa6b445;if(_0x398c33===_0x56b767[_0x4fb76b(0x18d)]||_0xa6b445===_0x4fb76b(0x209))return!0x1;try{let _0x3c8aa4=_0x2fcbbf['get'](_0xa6b445);return _0x3c8aa4||(_0x3c8aa4=new _0x2bcb3a(_0x398c33,_0x4fb76b(0x15f)+_0xa6b445),_0x2fcbbf[_0x4fb76b(0x1eb)](_0xa6b445,_0x3c8aa4)),_0xcb9ed&&_0x3c8aa4['setShapeData']({'adjustValues':_0xcb9ed},!0x0),_0x3c8aa4['updateContext']({'width':_0x17a08e,'height':_0x55cefd}),_0x3c8aa4['buildClipPath'](_0x3230d4,{'left':0x0,'top':0x0,'width':_0x17a08e,'height':_0x55cefd});}catch{return!0x1;}});this[_0x1f4b49(0x23d)](_0x4be220),this[_0x1f4b49(0x23d)]({'dispose':()=>_0x2fcbbf[_0x1f4b49(0x298)]()});}[_0x3721df(0x27e)](_0x10b2f7,_0x166f2,_0x21c7bb,_0x23e40a,_0x38d962){const _0x118243=_0x3721df;let _0x18e879=this[_0x118243(0x212)][_0x118243(0x28e)](_0x10b2f7,_0x166f2);if(!_0x18e879[_0x21c7bb])return;let _0x1d9ad={..._0x18e879[_0x21c7bb],'prstGeom':_0x23e40a,'adjustValues':_0x38d962};this[_0x118243(0x212)][_0x118243(0xb4)]([_0x1d9ad]);}};Q=Y([J(0x0,_0x44ac9c(_0x305aba)),J(0x1,_0x44ac9c(_0x30b385))],Q);const On=_0x3721df(0x2e6),kn=_0x3721df(0x2cc);function An({onShapeClick:_0x13a1fd,excludeGroups:_0x3f08ea}){const _0x4c1271=_0x3721df;return _0x25dfce(_0x46042a,{'excludeGroups':_0x3f08ea,'onShapeClick':_0x13a1fd,'scrollContainer':_0x4c1271(0x1dc)});}function jn(){const _0x319e8e=_0x3721df;let _0x33e914=_0x25b7f6(_0x30b385),_0x360424=_0x25b7f6(Q);return _0x25dfce(_0x5317f0,{'buttonLabel':_0x319e8e(0x1ed),'excludeGroups':[_0x302dfa[_0x319e8e(0x241)]],'onShapeClick':_0x21eaaa=>{const _0x536d5d=_0x319e8e;let _0x3c0b56=_0x33e914[_0x536d5d(0x1d9)]()[_0x536d5d(0x2a0)](_0x3e3b8b=>_0x3e3b8b[_0x536d5d(0x132)]===_0x91d30f[_0x536d5d(0x302)]);if(!_0x3c0b56)return;let {unitId:_0x2bfd33,subUnitId:_0x43a456,drawingId:_0x4cf865}=_0x3c0b56;_0x360424['clipByShape'](_0x2bfd33,_0x43a456,_0x4cf865,_0x21eaaa[_0x536d5d(0xca)]);}});}function Mn(){const _0x39df57=_0x3721df;let _0x5e4f96=_0x25b7f6(_0xd6eaa9),_0x2ecbd0=_0x25b7f6(_0x30b385),_0x283400=_0x25b7f6(_0xeac766),_0x51cf5b=_0x2ecbd0['getFocusDrawings']()[0x0],_0x4923ec=_0x51cf5b?_0x283400[_0x39df57(0xd9)](_0x51cf5b['unitId']):void 0x0,_0xe05e31=_0x4923ec===_0x2c116a[_0x39df57(0x1ae)]?_0x39df57(0x2bf):_0x4923ec===_0x2c116a[_0x39df57(0x1a1)]?kn:void 0x0,_0x5a38a8=_0xe05e31?_0x5e4f96[_0x39df57(0x2f5)](_0xe05e31):void 0x0;return _0x5a38a8?_0x25dfce(_0x5a38a8,{}):null;}function Nn(){let _0x5d6612=_0x25b7f6(_0x27b781);return _0x25dfce(An,{'onShapeClick':_0x1b90a4=>{const _0x1f7b2c=_0x3b42;_0x5d6612[_0x1f7b2c(0x24b)](xn['id'],{'value':_0x1b90a4[_0x1f7b2c(0xca)],'enhanceParams':{'endArrow':_0x1b90a4[_0x1f7b2c(0x30d)],'startArrow':_0x1b90a4[_0x1f7b2c(0x2a1)],'horizontal':_0x1b90a4['horizontal'],'vertical':_0x1b90a4[_0x1f7b2c(0xe9)]}});}});}function Pn(_0x520f61){const _0x45016f=_0x3721df;let _0x3980a7=_0x520f61['get'](_0xeac766);return{'id':xn['id'],'type':_0x1c948f[_0x45016f(0x2ae)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x45016f(0x149),'tooltip':_0x45016f(0x13f),'activated$':_0x2654cc(_0x3980a7,!0x1,()=>new _0x521661(_0x3e5c32=>{_0x3e5c32['next'](!0x1);})),'hidden$':_0x35acb4(_0x520f61,_0x2c116a[_0x45016f(0x1a1)]),'disabled$':_0x2a9b9c(_0x520f61)};}function Fn(_0x253cf6){const _0x193f5a=_0x3721df;let _0x118558=_0x253cf6[_0x193f5a(0x2f5)](_0xeac766);return{'id':Dn['id'],'type':_0x1c948f[_0x193f5a(0xcd)],'icon':_0x193f5a(0x2d6),'title':_0x193f5a(0x307),'tooltip':_0x193f5a(0x307),'activated$':_0x2654cc(_0x118558,!0x1,()=>new _0x521661(_0x22bf2e=>{const _0x345727=_0x193f5a;_0x22bf2e[_0x345727(0x11b)](!0x1);})),'hidden$':_0x35acb4(_0x253cf6,_0x2c116a['UNIVER_SHEET']),'disabled$':_0x2a9b9c(_0x253cf6)};}const In={[_0x3f9387[_0x3721df(0xb3)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln=_0x3721df(0x281),Rn='1.0.0-alpha.4';const zn={'type':_0x518569[_0x3721df(0x1f0)],'id':_0x3721df(0x1f9),'handler'(){return!0x0;}},Bn={'type':_0x518569['OPERATION'],'id':_0x3721df(0x215),'handler'(){return!0x0;}},Vn={};function Hn(_0x3cb8f8){return _0x3cb8f8['trim']()||void 0x0;}function Un(_0x2b45f1){const _0x1a9de4=_0x3721df;switch(_0x2b45f1['drawingType']){case _0x91d30f['DRAWING_IMAGE']:return'image';case _0x91d30f[_0x1a9de4(0x13b)]:return _0x1a9de4(0x1ca);case _0x91d30f[_0x1a9de4(0x220)]:return _0x1a9de4(0x216);case _0x91d30f[_0x1a9de4(0x261)]:return _0x1a9de4(0x1db);case _0x91d30f['DRAWING_VIDEO']:return _0x1a9de4(0x24e);case _0x91d30f['DRAWING_GROUP']:return _0x1a9de4(0x131);case _0x91d30f[_0x1a9de4(0x2eb)]:return'unit';case _0x91d30f[_0x1a9de4(0x1e3)]:return _0x1a9de4(0x1f2);case _0x91d30f[_0x1a9de4(0x27a)]:return _0x1a9de4(0x16a);default:return _0x1a9de4(0x249);}}function Wn(_0x243f80,_0x1aef28,_0x1f14a4){const _0x4e75ff=_0x3721df;var _0x523f5f;return((_0x523f5f=_0x243f80[_0x4e75ff(0x108)])==null?void 0x0:_0x523f5f[_0x4e75ff(0x292)]())||_0xec3f99(_0x1f14a4,Un(_0x243f80))+'\x20'+(_0x1aef28+0x1);}function Gn(){const _0x42b345=_0x3721df;var _0x2fe7d8,_0x5d23d4,_0x369351,_0x1509fc;let _0x20c19d=_0x25b7f6(_0x52ec80),_0x280a1d=_0x25b7f6(_0x27b781),_0x5036a7=_0x25b7f6(_0xeac766),_0x3e09e1=_0x25b7f6(_0x1769d9),_0x2002f3=_0x25b7f6(_0x30b385),_0x2d9be4=_0x25b7f6(_0x3ab9c0),[,_0x56b53d]=_0x3a44d9(_0x55eb97=>_0x55eb97+0x1,0x0),_0x484cb2=_0x5036a7[_0x42b345(0x26a)](_0x2c116a['UNIVER_SHEET']),_0xa23043=(_0x2fe7d8=_0x484cb2==null?void 0x0:_0x484cb2[_0x42b345(0x1b5)]())==null?'':_0x2fe7d8,_0x223920=(_0x5d23d4=_0x484cb2==null||(_0x369351=_0x484cb2[_0x42b345(0xa9)]())==null?void 0x0:_0x369351[_0x42b345(0x2b9)]())==null?'':_0x5d23d4,_0x3e73ab=_0x26444c(()=>_0x2002f3['focus$'],_0x2002f3[_0x42b345(0x1d9)](),!0x1,[_0x2002f3]);_0x34db80(()=>{const _0x52030f=_0x42b345;let _0x49e8cf=_0x280a1d[_0x52030f(0x2b1)](()=>_0x56b53d());return()=>_0x49e8cf[_0x52030f(0x250)]();},[_0x280a1d]);let _0x3c8724=_0xa23043&&_0x223920?_0x3e09e1['getDrawingData'](_0xa23043,_0x223920):{},_0x27515e=_0xa23043&&_0x223920?_0x3e09e1[_0x42b345(0x17a)](_0xa23043,_0x223920):[],_0x58e4ff=_0x46c805(()=>_0x3450b9(_0x20c19d),[_0x20c19d]),_0x55c4f2=_0x46c805(()=>{const _0x4667cc=_0x42b345;let _0x216890=_0x27515e['map'](_0x315afd=>_0x3c8724[_0x315afd])[_0x4667cc(0x10d)](_0x31d659=>!!_0x31d659)[_0x4667cc(0x24f)](),_0x4f2569=_0x216890[_0x4667cc(0x271)]((_0x304b6f,_0x4ac2e2)=>(_0x304b6f[_0x32953c(_0x4ac2e2[_0x4667cc(0x132)])]+=0x1,_0x304b6f),{'canvas':0x0,'floating':0x0}),_0x222c58={'canvas':0x0,'floating':0x0};return _0x216890['map']((_0x3357c9,_0x38b61c)=>{const _0x5bde4d=_0x4667cc;let _0x706ea4=_0x32953c(_0x3357c9[_0x5bde4d(0x132)]),_0x4faca1=_0x706ea4===_0x1532b7,_0x4a37f3=_0x222c58[_0x706ea4]++;return{'id':_0x3357c9[_0x5bde4d(0x121)],'name':Wn(_0x3357c9,_0x38b61c,_0x20c19d),'description':_0x3357c9[_0x5bde4d(0x1e7)],'visible':_0x3357c9[_0x5bde4d(0x13e)]!==!0x0,'selectable':_0x3357c9[_0x5bde4d(0x2dd)]!==!0x1,'sectionId':_0x706ea4,'sectionTitle':_0x4faca1?_0x58e4ff[_0x5bde4d(0x1ec)]:_0x58e4ff[_0x5bde4d(0x276)],'capabilities':_0x4faca1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x4faca1&&_0x4a37f3>0x0,'canMoveBackward':!_0x4faca1&&_0x4a37f3<_0x4f2569[_0x5bde4d(0x2dc)]-0x1,'canReorder':!_0x4faca1};});},[_0x3c8724,_0x27515e,_0x58e4ff[_0x42b345(0x276)],_0x58e4ff['sectionFloating'],_0x20c19d]),_0x5995fe=_0x46c805(()=>(_0x3e73ab==null?[]:_0x3e73ab)[_0x42b345(0x10d)](_0x174adb=>_0x174adb[_0x42b345(0xe5)]===_0xa23043&&_0x174adb[_0x42b345(0x183)]===_0x223920)[_0x42b345(0x2bb)](_0x2c4a59=>_0x2c4a59[_0x42b345(0x121)]),[_0x3e73ab,_0x223920,_0xa23043]),_0x2b295f=(_0x1509fc=_0x5995fe[_0x5995fe[_0x42b345(0x19e)]-0x1])==null?null:_0x1509fc,_0x1e5ef8=_0x478693=>{const _0x18cc9d=_0x42b345;var _0x4fe014;return(_0x4fe014=_0x3e09e1[_0x18cc9d(0x22d)]({'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x478693}))==null?null:_0x4fe014;},_0x47a61a=_0x38758d=>{const _0x52088d=_0x42b345;!_0xa23043||!_0x38758d['length']||_0x280a1d[_0x52088d(0x24b)](_0x23c05b['id'],{'unitId':_0xa23043,'drawings':_0x38758d});},_0x362d67=(_0x2b9553,_0x3e7cde)=>{_0x1e5ef8(_0x2b9553)&&_0x47a61a([{'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x2b9553,..._0x3e7cde}]);},_0x4ff459=(_0x15a8a0,_0x41934d)=>{const _0x55e1fe=_0x42b345;if(!_0xa23043||!_0x223920)return;let _0x15da46=_0x41934d?_0x5995fe[_0x55e1fe(0x2ba)](_0x15a8a0)?_0x5995fe[_0x55e1fe(0x10d)](_0x310a1c=>_0x310a1c!==_0x15a8a0):[..._0x5995fe,_0x15a8a0]:[_0x15a8a0];_0x280a1d[_0x55e1fe(0x213)](_0x549ead['id'],_0x15da46[_0x55e1fe(0x2bb)](_0xd218f8=>({'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0xd218f8})));let _0x3ecfad=_0x15da46[_0x15da46[_0x55e1fe(0x19e)]-0x1];_0x3ecfad?_0xe8ee4b(_0x2d9be4,{'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x3ecfad}):_0x40ea7f(_0x2d9be4,_0xa23043);},_0x35a2e9=(_0x2674a3,_0x351d6b)=>{const _0x45e110=_0x42b345;_0x47a61a(_0x2674a3['map'](_0x310f80=>_0x1e5ef8(_0x310f80))[_0x45e110(0x10d)](_0x5452e6=>!!_0x5452e6)[_0x45e110(0x10d)](_0x504053=>_0x504053['hidden']!==!0x0!==_0x351d6b)[_0x45e110(0x2bb)](_0x244649=>({'unitId':_0xa23043,'subUnitId':_0x223920,'drawingId':_0x244649['drawingId'],'hidden':!_0x351d6b})));},_0x28a854=_0x1ce831=>{const _0xe92500=_0x42b345;let _0x1eafc4=_0x1e5ef8(_0x1ce831);_0x1eafc4&&_0x362d67(_0x1ce831,{'selectable':_0x1eafc4[_0xe92500(0x2dd)]===!0x1?void 0x0:!0x1});},_0x3813ef=(_0x19bb66,_0x4dc8d9)=>{const _0x4a0397=_0x42b345;var _0x64e73f,_0x26dfe5;let _0x332db3=Hn(_0x4dc8d9);((_0x64e73f=(_0x26dfe5=_0x1e5ef8(_0x19bb66))==null?void 0x0:_0x26dfe5[_0x4a0397(0x108)])==null?void 0x0:_0x64e73f)!==_0x332db3&&_0x362d67(_0x19bb66,{'name':_0x332db3});},_0x418f51=(_0x59dc12,_0x4c9e67)=>{var _0x1f42d1,_0x1f3bf9;let _0x524afb=Hn(_0x4c9e67);((_0x1f42d1=(_0x1f3bf9=_0x1e5ef8(_0x59dc12))==null?void 0x0:_0x1f3bf9['description'])==null?void 0x0:_0x1f42d1)!==_0x524afb&&_0x362d67(_0x59dc12,{'description':_0x524afb});},_0x2c7687=(_0x33bc37,_0x2fc737)=>{!_0xa23043||!_0x223920||_0x280a1d['executeCommand'](_0x16f93c['id'],{'unitId':_0xa23043,'subUnitId':_0x223920,'drawingIds':[_0x33bc37],'arrangeType':_0x2fc737});};return!_0xa23043||!_0x223920?_0x25dfce(_0x42b345(0x2ed),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x58e4ff[_0x42b345(0x1bc)]}):_0x25dfce(_0x233868,{'items':_0x55c4f2,'selectedIds':_0x5995fe,'focusedId':_0x2b295f,'labels':_0x58e4ff,'onSelect':_0x4ff459,'onSetVisible':_0x35a2e9,'onCommitName':_0x3813ef,'onCommitDescription':_0x418f51,'onMoveForward':_0x5f1b1d=>_0x2c7687(_0x5f1b1d,_0x5d76f1[_0x42b345(0x259)]),'onMoveBackward':_0x4b52d0=>_0x2c7687(_0x4b52d0,_0x5d76f1['backward']),'onToggleSelectable':_0x28a854});}let Kn=class{constructor(_0x2bfcdb){const _0x3c974b=_0x3721df;this[_0x3c974b(0x28f)]=_0x2bfcdb;}[_0x3721df(0x155)](_0x4fa527,_0x11c4e7){const _0x20433b=_0x3721df;let _0x4a9e14=this[_0x20433b(0x28f)][_0x20433b(0x1f1)](_0x4fa527[_0x20433b(0xe5)]),_0x4bf9e5=_0x4a9e14==null?void 0x0:_0x4a9e14[_0x20433b(0x223)];if(!_0x4bf9e5)return;let _0x4bd47d=_0xc0766c(_0x4fa527),_0x22589f=_0x4bf9e5[_0x20433b(0xc2)](_0x4bd47d);_0x22589f==null||_0x22589f[_0x20433b(0x2a3)](_0x11c4e7);}};Kn=Y([J(0x0,_0x3ab9c0)],Kn);function qn(){const _0x29714c=_0x3721df;let _0xc3d545=_0x25b7f6(_0x30b385),_0x57b12c=_0x26444c(()=>_0xc3d545[_0x29714c(0x225)],_0xc3d545[_0x29714c(0x1d9)](),!0x1,[_0xc3d545]);return _0x57b12c['length']===0x0?null:_0x25dfce('div',{'children':_0x14d810('div',{'className':_0x29714c(0x1cc),'children':[_0x25dfce(_0x3efe8e,{'drawings':_0x57b12c,'hasCropper':!0x1}),_0x25dfce(_0x2f2813,{'drawings':_0x57b12c})]})});}function _0x3b42(_0x157055,_0x470a23){_0x157055=_0x157055-0xa5;const _0x12229e=_0x1222();let _0x3b42e9=_0x12229e[_0x157055];return _0x3b42e9;}function Jn(_0x777fbd){let {unitId:_0x185ca9,subUnitId:_0x3bf444,shapeId:_0x241ade}=_0x777fbd,_0x2436fd=_0x25b7f6(_0x27b781),_0xc6517e=_0x25b7f6(Kn);return _0x25dfce(_0x5c6639,{..._0x777fbd,'positionEditor':_0x25dfce(qn,{}),'onUpdateShapeData':(_0x681e79,_0x3644e8)=>{fn(_0x2436fd,_0x185ca9,_0x3bf444,_0x241ade,_0x681e79,_0x3644e8);},'onUpdateLineShapeData':(_0x511f4b,_0x59e17f)=>{pn(_0x2436fd,_0x185ca9,_0x3bf444,_0x241ade,_0x511f4b,_0x59e17f);},'onUpdateShapeFillImage':_0x47d1f7=>{const _0x218f41=_0x3b42;_0xc6517e[_0x218f41(0x155)]({'unitId':_0x185ca9,'subUnitId':_0x3bf444,'drawingId':_0x241ade},_0x47d1f7);}});}function Yn(_0x5ca995){const _0x58e442=_0x3721df;let _0x3c1df3=_0x5ca995[_0x58e442(0x294)]['extraProps'];return _0x3c1df3?_0x25dfce(Xn,{..._0x3c1df3}):null;}function Xn(_0x2e5988){const _0x5dae56=_0x3721df;var _0x5ce154,_0x56f4e4;let _0x400884=_0x25b7f6(_0x27b781),_0x3dcbf2=_0x25b7f6(_0x2318dd),{unitId:_0x203160,subUnitId:_0x1b061f,drawingId:_0x5b67d3,drawingType:_0x29759a,shapeType:_0x8bbac7}=_0x2e5988,[_0x58f885,_0x1d16c1]=_0x2d0567(_0x2e5988[_0x5dae56(0x15a)]),_0x1f7ff9=_0x46c805(()=>_0x46c9e2(_0x58f885),[_0x58f885]),_0x316513=_0x46c805(()=>_0x2909fb(_0x58f885),[_0x58f885]);_0x34db80(()=>{const _0x48fc1a=_0x5dae56;let _0x255b79=_0x400884[_0x48fc1a(0x2b1)](_0x5ea990=>{const _0x4b6a2a=_0x48fc1a;if(_0x5ea990['id']!==_0x4ea02e['id'])return;let _0x217820=_0x3dcbf2[_0x4b6a2a(0x26f)](_0x203160,_0x1b061f,_0x5b67d3);_0x217820&&_0x1d16c1(_0x217820);});return()=>_0x255b79[_0x48fc1a(0x250)]();},[_0x400884,_0x5b67d3,_0x3dcbf2,_0x1b061f,_0x203160]);let _0x5255a6=_0x3c0ee3=>{_0x1d16c1(_0x149161=>({..._0x149161,..._0x3c0ee3}));},_0x5e6595=_0x4f1f16=>{let _0x4a30df=_0x3ecb17(_0x58f885,_0x4f1f16);fn(_0x400884,_0x203160,_0x1b061f,_0x5b67d3,{'oldShapeData':{'shapeText':_0x58f885['shapeText']}},_0x4a30df),_0x5255a6(_0x4a30df);};return _0x25dfce(_0x1c342a,{'shapeData':_0x58f885,'shapeType':_0x8bbac7,'textStyle':{'ff':_0x170bf6['shapeText']['fontFamily'],'fs':_0x170bf6[_0x5dae56(0x2e9)][_0x5dae56(0x16e)],'cl':{'rgb':_0x170bf6['shapeText'][_0x5dae56(0x237)]},..._0x1f7ff9},'textModel':_0x316513?{'ha':(_0x5ce154=_0x316513['ha'])==null?_0x2be8d5[_0x5dae56(0x262)]:_0x5ce154,'va':(_0x56f4e4=_0x316513['va'])==null?_0xabb9d9[_0x5dae56(0x110)]:_0x56f4e4}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x170bf6['fill'],'defaultGradientEndColor':_0x170bf6[_0x5dae56(0x171)],'defaultStrokeColor':_0x170bf6['stroke'],'onUpdateShapeData':(_0x340f30,_0x5c546e)=>{fn(_0x400884,_0x203160,_0x1b061f,_0x5b67d3,_0x340f30,_0x5c546e),_0x5c546e&&_0x5255a6(_0x5c546e);},'onUpdateText':_0x5e6595,'onOpenPanel':()=>{const _0x291d44=_0x5dae56;_0x400884[_0x291d44(0x24b)](Bn['id'],{'unitId':_0x203160,'subUnitId':_0x1b061f,'drawingId':_0x5b67d3});},'onDelete':()=>{const _0xa72b3e=_0x5dae56;_0x400884[_0xa72b3e(0x24b)](_0xc60b82['id'],{'unitId':_0x203160,'drawings':[{'unitId':_0x203160,'subUnitId':_0x1b061f,'drawingId':_0x5b67d3,'drawingType':_0x29759a}]});}});}var Zn=class extends _0x3ff889{constructor(..._0x58cc1d){const _0x44fd72=_0x3721df;super(..._0x58cc1d),q(this,'_editingParams$',new _0x2c89d2(null)),q(this,_0x44fd72(0x22e),this[_0x44fd72(0x1e4)][_0x44fd72(0x1f4)]()),q(this,'_onSavingEditorData$',new _0x2c89d2(!0x1)),q(this,_0x44fd72(0x26e),this[_0x44fd72(0xd0)][_0x44fd72(0x1f4)]());}[_0x3721df(0x250)](){const _0x1dae69=_0x3721df;this[_0x1dae69(0x1e4)][_0x1dae69(0x11b)](null),this[_0x1dae69(0x1e4)]['complete'](),this['_onSavingEditorData$']['next'](!0x1),this[_0x1dae69(0xd0)][_0x1dae69(0x1d7)](),super[_0x1dae69(0x250)]();}[_0x3721df(0x2c4)](_0x23a1f6){const _0x52069a=_0x3721df;this[_0x52069a(0x1e4)]['next'](_0x23a1f6),_0x23a1f6==null&&this[_0x52069a(0xd0)][_0x52069a(0x11b)](!0x1);}['setOnSavingEditorData'](_0x1a200d){const _0x43bd9e=_0x3721df;this[_0x43bd9e(0xd0)][_0x43bd9e(0x11b)](_0x1a200d);}[_0x3721df(0x2d0)](){const _0x59381b=_0x3721df;return this[_0x59381b(0x1e4)][_0x59381b(0xc3)]();}[_0x3721df(0x2ef)](_0x3cf456){const _0x5e2794=_0x3721df;this[_0x5e2794(0x2d0)]()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x4b6499=_0x5e2794;this[_0x4b6499(0x2c4)](null);}));}['cancelEditing'](){const _0xea66d7=_0x3721df;this[_0xea66d7(0x2d0)]()&&this[_0xea66d7(0x2c4)](null);}};const Qn=_0x480e63(()=>{const _0x5760d7=_0x3721df;let _0x5e5412=_0x25b7f6(Zn),_0x2c7911=_0x25b7f6(_0x2318dd),_0x149435=_0x25b7f6(_0x30b385),_0x1f358a=_0x25b7f6(_0x27b781),_0x22ebb1=_0x25b7f6(_0x3ab9c0);return _0x25dfce(_0x343aa1,{'adapter':_0x46c805(()=>({'getShapeModel':(_0x4a649a,_0x36471d,_0x1e982e)=>_0x2c7911[_0x5760d7(0xef)](_0x4a649a,_0x36471d,_0x1e982e),'getShapeData':(_0x1157a9,_0x1d8866,_0x264c55)=>_0x2c7911[_0x5760d7(0x26f)](_0x1157a9,_0x1d8866,_0x264c55),'getDrawingTransform':(_0x5a0077,_0x135e5e,_0x8ddad5)=>{const _0x3bc38a=_0x5760d7;let _0x2fa0ac=_0x149435[_0x3bc38a(0x22d)]({'unitId':_0x5a0077,'subUnitId':_0x135e5e,'drawingId':_0x8ddad5});return _0x2fa0ac==null?void 0x0:_0x2fa0ac[_0x3bc38a(0x288)];},'updateShapeText':({unitId:_0x16c096,subUnitId:_0x5559f8,shapeId:_0x3046d1,shapeText:_0x47b8fd,oldShapeText:_0x655dcd})=>{const _0x1042f7=_0x5760d7;_0x1f358a[_0x1042f7(0x24b)](dn['id'],{'unitId':_0x16c096,'subUnitId':_0x5559f8,'shapeId':_0x3046d1,'shapeData':{'shapeText':_0x47b8fd},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x655dcd}}});},'updateHostSize':({unitId:_0x568a9a,subUnitId:_0x3c248a,shapeId:_0x59e1a6,width:_0x1a8bf7,height:_0x1dad19})=>{const _0x4c3f19=_0x5760d7;var _0x4aa637,_0x15003d,_0x5aaee5;let _0x19c1df=_0x149435[_0x4c3f19(0x22d)]({'unitId':_0x568a9a,'subUnitId':_0x3c248a,'drawingId':_0x59e1a6}),_0x1ddea9=_0x19c1df==null?void 0x0:_0x19c1df[_0x4c3f19(0x288)];if(!_0x19c1df||!_0x1ddea9)return;let _0x2add91={..._0x1ddea9,'width':_0x1a8bf7,'height':_0x1dad19},_0x3766f3=(_0x4aa637=_0x22ebb1[_0x4c3f19(0x1f1)](_0x568a9a))==null||(_0x4aa637=_0x4aa637[_0x4c3f19(0x29b)](_0x39e39b)[_0x4c3f19(0x12b)](_0x3c248a))==null?void 0x0:_0x4aa637[_0x4c3f19(0x25a)],_0x3af192=_0x3766f3?(_0x15003d=_0x31cd08(_0x2add91,_0x3766f3))==null?_0x19c1df[_0x4c3f19(0xb8)]:_0x15003d:_0x19c1df[_0x4c3f19(0xb8)],_0x74f1b3=_0x3766f3?(_0x5aaee5=_0x2708bd(_0x2add91,_0x3766f3))==null?_0x19c1df['axisAlignSheetTransform']:_0x5aaee5:_0x19c1df[_0x4c3f19(0xbc)];_0x1f358a[_0x4c3f19(0x24b)](_0x23c05b['id'],{'unitId':_0x568a9a,'drawings':[{..._0x19c1df,'transform':_0x2add91,'sheetTransform':_0x3af192,'axisAlignSheetTransform':_0x74f1b3}]});},'allowHostSizeShrink':({unitId:_0x3b51d5,subUnitId:_0x2e5271,shapeId:_0x4eff06})=>_0x3fec91(_0x2c7911['getShapeDataById'](_0x3b51d5,_0x2e5271,_0x4eff06))}),[_0x1f358a,_0x149435,_0x22ebb1,_0x2c7911]),'editingService':_0x5e5412,'editorUnitId':Tn,'positionOptions':_0x46c805(()=>({'viewportKeys':{'main':_0x5e7f94[_0x5760d7(0x1de)],'leftTop':_0x5e7f94[_0x5760d7(0x1a2)],'top':_0x5e7f94[_0x5760d7(0xc1)],'left':_0x5e7f94['VIEW_MAIN_LEFT']},'getSkeleton':(_0x378b1b,_0x174b3f)=>{const _0x513dbd=_0x5760d7;var _0x39de45,_0x31aa75;return(_0x39de45=(_0x31aa75=_0x378b1b[_0x513dbd(0x29b)](_0x39e39b)['getSkeletonParam'](_0x174b3f[_0x513dbd(0x183)]))==null?void 0x0:_0x31aa75['skeleton'])==null?null:_0x39de45;}}),[])});});let $n=class extends _0x3ff889{constructor(_0x10f95d,_0x30e4a9){const _0x1842f3=_0x3721df;super(),this[_0x1842f3(0x172)]=_0x10f95d,this[_0x1842f3(0x1ea)]=_0x30e4a9,this[_0x1842f3(0x304)](),this[_0x1842f3(0x21f)]();}['_registerIcons'](){const _0x433f1e=_0x3721df;this[_0x433f1e(0x1ea)][_0x433f1e(0x238)](_0x433f1e(0x2d6))||this['disposeWithMe'](this[_0x433f1e(0x1ea)][_0x433f1e(0x221)]({'CopyDoubleIcon':_0x20e1e7}));}[_0x3721df(0x21f)](){const _0x1a05e0=_0x3721df;this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](Sn,Jn)),this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)]['register'](Cn,Gn)),this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](On,Nn)),this[_0x1a05e0(0x23d)](this['_componentManager'][_0x1a05e0(0x221)](kn,jn)),this[_0x1a05e0(0x172)][_0x1a05e0(0x2f5)](_0xde8950)||this[_0x1a05e0(0x23d)](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](_0xde8950,Mn)),this['disposeWithMe'](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](wn,Yn)),this[_0x1a05e0(0x23d)](this['_componentManager'][_0x1a05e0(0x221)](En,_0x11982e)),this['disposeWithMe'](this[_0x1a05e0(0x172)][_0x1a05e0(0x221)](_0x1a05e0(0x1ce),Qn));}};$n=Y([J(0x0,_0x44ac9c(_0xd6eaa9)),J(0x1,_0x44ac9c(_0x51b1fb))],$n);let er=class extends _0x3ff889{constructor(_0x587295,_0x1d8933,_0x25e30c,_0x3c50ea,_0x3b81c5){const _0x1c75b2=_0x3721df;super(),this[_0x1c75b2(0x135)]=_0x587295,this[_0x1c75b2(0x212)]=_0x1d8933,this['_renderManagerService']=_0x25e30c,this[_0x1c75b2(0x205)]=_0x3c50ea,this['_imageShapeClipController']=_0x3b81c5,q(this,_0x1c75b2(0xff),null),q(this,_0x1c75b2(0x255),null),q(this,_0x1c75b2(0x113),null),q(this,_0x1c75b2(0x147),void 0x0),q(this,_0x1c75b2(0x2e5),[]),q(this,'_baseLeft',0x0),q(this,'_baseTop',0x0),q(this,_0x1c75b2(0x177),0x0),q(this,'_baseHeight',0x0),q(this,_0x1c75b2(0x167),!0x1),q(this,_0x1c75b2(0x256),void 0x0),q(this,_0x1c75b2(0x25f),void 0x0),q(this,_0x1c75b2(0xb1),void 0x0),q(this,_0x1c75b2(0x2bd),void 0x0),q(this,_0x1c75b2(0x139),!0x1),this[_0x1c75b2(0x19b)](),this['_registerMoveHandler']();}[_0x3721df(0x161)](){const _0x36307a=_0x3721df;this[_0x36307a(0x2bc)]();}[_0x3721df(0x274)](){const _0x340438=_0x3721df;this[_0x340438(0x2bc)](),this['_createControls'](!0x0);}[_0x3721df(0x21e)](_0x39d2ad,_0x4de82f,_0x124dbe,_0x57ddfe){const _0x2defee=_0x3721df;let _0x28524a=_0x39d2ad;if(!(_0x28524a===_0x56b767['None']||_0x39d2ad===_0x2defee(0x209)))try{let _0x553297=new _0x2bcb3a(_0x28524a,_0x2defee(0x2ad)+_0x39d2ad);return _0x57ddfe&&_0x553297[_0x2defee(0x2f0)]({'adjustValues':_0x57ddfe},!0x0),_0x553297[_0x2defee(0x229)]({'width':_0x4de82f,'height':_0x124dbe}),_0x553297;}catch{return;}}[_0x3721df(0x10e)](_0x19e716,_0x25f59e,_0xe015f5){const _0x1147be=_0x3721df;let _0x1a3470={'unitId':_0x19e716,'subUnitId':_0x25f59e,'drawingId':_0xe015f5},_0x35eaa8=this[_0x1147be(0x212)][_0x1147be(0x22d)](_0x1a3470);if(!(!_0x35eaa8||_0x35eaa8[_0x1147be(0x132)]!==_0x91d30f[_0x1147be(0x302)]))return _0x35eaa8;}[_0x3721df(0x1dd)](_0x1ce923,_0x1b1f4f,_0x574703){const _0x550197=_0x3721df;let _0x1e610d=this[_0x550197(0x28f)]['getRenderById'](_0x1ce923);if(!_0x1e610d)return;let {scene:_0x32122c}=_0x1e610d,_0x432cf2=_0xc0766c({'unitId':_0x1ce923,'subUnitId':_0x1b1f4f,'drawingId':_0x574703}),_0x4df932=_0x32122c[_0x550197(0x166)](_0x432cf2);if(_0x4df932 instanceof _0x6f9047){let _0x15f16f=_0x4df932[_0x550197(0x253)];if(_0x15f16f)return{'prstGeom':_0x15f16f,'adjustValues':_0x4df932[_0x550197(0x152)]};}}[_0x3721df(0x151)](_0x250f78=!0x1){const _0xced3ee=_0x3721df;if(!this[_0xced3ee(0x255)]||!this['_subUnitId']||!this[_0xced3ee(0xff)])return;let _0x41d20c=this[_0xced3ee(0x28f)][_0xced3ee(0x1f1)](this[_0xced3ee(0x255)]);if(!_0x41d20c||!_0x41d20c[_0xced3ee(0x29b)](_0x39e39b)[_0xced3ee(0x18f)]())return;let {scene:_0x2a56ec}=_0x41d20c,_0x580744=this['_getImageDrawingInfo'](this['_unitId'],this[_0xced3ee(0x113)],this[_0xced3ee(0xff)]);if(!_0x580744)return;let {transform:_0x10d4b5}=_0x580744;if(!_0x10d4b5)return;let {left:_0x67be9c,top:_0xa9b770,width:_0x242289,height:_0x38cf67,flipX:_0x2224ed,flipY:_0x4b85ec,angle:_0x42da1e=0x0}=_0x10d4b5;if(_0x67be9c===void 0x0||_0xa9b770===void 0x0)return;let _0x4f3d25=this['_getImagePrstGeom'](this[_0xced3ee(0x255)],this[_0xced3ee(0x113)],this[_0xced3ee(0xff)]);if(!_0x4f3d25)return;if(_0x250f78){let _0x48ca1c=this[_0xced3ee(0x21e)](_0x4f3d25[_0xced3ee(0x253)],_0x242289||0x0,_0x38cf67||0x0,_0x4f3d25['adjustValues']);if(!_0x48ca1c)return;this[_0xced3ee(0x147)]=_0x48ca1c[_0xced3ee(0x1c1)]();}let _0x4dbd01=this[_0xced3ee(0x147)];if(!(!_0x4dbd01||_0x4dbd01[_0xced3ee(0x19e)]===0x0))for(let _0xc4c424=0x0;_0xc4c424<_0x4dbd01[_0xced3ee(0x19e)];_0xc4c424++){let _0x189407=_0x4dbd01[_0xc4c424],_0x4d1903=_0x189407['x'],_0x19be58=_0x189407['y'];if(_0x2224ed&&(_0x4d1903=(_0x242289||0x0)-_0x4d1903),_0x4b85ec&&(_0x19be58=(_0x38cf67||0x0)-_0x19be58),_0x42da1e!==0x0){let _0x36e17d=(_0x242289||0x0)/0x2,_0x5bc605=(_0x38cf67||0x0)/0x2,_0xedaf00=_0x42da1e*Math['PI']/0xb4,_0x963678=Math[_0xced3ee(0x2ac)](_0xedaf00),_0x486815=Math['sin'](_0xedaf00),_0x441647=_0x4d1903-_0x36e17d,_0x7b772a=_0x19be58-_0x5bc605;_0x4d1903=_0x36e17d+(_0x441647*_0x963678-_0x7b772a*_0x486815),_0x19be58=_0x5bc605+(_0x441647*_0x486815+_0x7b772a*_0x963678);}let _0x104c9e={'x':_0x4d1903,'y':_0x19be58,'adjName':_0x189407[_0xced3ee(0x11c)]};this[_0xced3ee(0x1cb)](_0x2a56ec,_0x104c9e,_0x104c9e[_0xced3ee(0x11c)],_0x67be9c,_0xa9b770,this[_0xced3ee(0x255)],this[_0xced3ee(0x113)]);}}[_0x3721df(0x1cb)](_0xa7c9af,_0x40ea2d,_0x2b99c4,_0x35a5d8,_0xd2fedb,_0x192dd5,_0x16cfb8){const _0x2700a6=_0x3721df;if(!this['_activeImageId'])return;let _0x45677c=_0x2700a6(0x126)+this[_0x2700a6(0xff)]+'-'+_0x2b99c4,_0x1f2d0c=_0xa7c9af[_0x2700a6(0xc2)](_0x45677c);if(_0x1f2d0c){_0x1f2d0c[_0x2700a6(0x2d2)]({'left':_0x40ea2d['x']+_0x35a5d8-_0x170bf6['adjHandleSize'],'top':_0x40ea2d['y']+_0xd2fedb-_0x170bf6['adjHandleSize']});return;}let _0x5a6092=new yn(_0x45677c,{'left':_0x40ea2d['x']+_0x35a5d8-_0x170bf6[_0x2700a6(0x2ab)],'top':_0x40ea2d['y']+_0xd2fedb-_0x170bf6[_0x2700a6(0x2ab)],'adjName':_0x2b99c4,'shapeId':this[_0x2700a6(0xff)],'unitId':_0x192dd5,'subUnitId':_0x16cfb8,'width':_0x170bf6[_0x2700a6(0x2ab)]+0x8,'height':_0x170bf6[_0x2700a6(0x2ab)]+0x8,'zIndex':_0x1484b2+0x1,'evented':!0x0});this[_0x2700a6(0x2e5)]['push'](_0x5a6092),this['_attachAdjustEvent'](_0x5a6092,_0xa7c9af,_0x2b99c4),_0xa7c9af['addObject'](_0x5a6092,_0x1484b2+0x1);}[_0x3721df(0x2bc)](){const _0x3ec1c2=_0x3721df;this[_0x3ec1c2(0x2e5)][_0x3ec1c2(0x19e)]!==0x0&&(this[_0x3ec1c2(0x2e5)]['forEach'](_0x306d41=>_0x306d41[_0x3ec1c2(0x250)]()),this[_0x3ec1c2(0x2e5)]=[]);}['_getScrollInfo'](_0x420cf5,_0xecaa33){const _0x397afe=_0x3721df;var _0x10038b;let _0x5f022a={'x':0x0,'y':0x0},_0x4e7f7b=this[_0x397afe(0x28f)][_0x397afe(0x1f1)](_0x420cf5);if(!_0x4e7f7b||!_0x4e7f7b['with'](_0x39e39b)[_0x397afe(0xf0)](_0xecaa33))return _0x5f022a;let _0x3e02ce=_0x4e7f7b[_0x397afe(0x29b)](_0x4f30c1),_0x592187=_0x3e02ce==null?void 0x0:_0x3e02ce[_0x397afe(0xd5)]();if(!_0x592187)return _0x5f022a;let _0x375cb5=(_0x10038b=this[_0x397afe(0x205)][_0x397afe(0x201)](_0x420cf5))==null?void 0x0:_0x10038b[_0x397afe(0x24c)](_0xecaa33);if(!_0x375cb5)return _0x5f022a;let _0x4fe9ec=_0x177de7(_0x592187[_0x397afe(0x195)],_0x592187['sheetViewStartColumn'],_0x4e7f7b[_0x397afe(0x223)],_0x375cb5);return _0x4fe9ec?{'x':_0x4fe9ec[_0x397afe(0x1b0)],'y':_0x4fe9ec[_0x397afe(0xad)]}:_0x5f022a;}[_0x3721df(0x234)](_0x290214,_0x50ddee){const _0x34e1a5=_0x3721df;var _0x1376df,_0x56af13;let _0x252f69=(_0x1376df=this[_0x34e1a5(0x205)][_0x34e1a5(0x201)](_0x290214))==null?void 0x0:_0x1376df[_0x34e1a5(0x24c)](_0x50ddee);return(_0x56af13=_0x252f69==null?void 0x0:_0x252f69[_0x34e1a5(0x2da)]())==null?0x1:_0x56af13;}[_0x3721df(0x1fb)](_0x1624c6,_0x271a96,_0x444d78){const _0x591e21=_0x3721df;this[_0x591e21(0x23d)](_0x4e35de(_0x1624c6['onPointerDown$']['subscribeEvent']((_0x1451ed,_0x3e1da3)=>{const _0x3a06d6=_0x591e21;var _0x2e1e5a,_0xf7ac29,_0x2e6ff1;let {unitId:_0x304038,subUnitId:_0x29b53f,drawingId:_0x5e0d25}=_0x1624c6[_0x3a06d6(0x245)](),_0x540446=this[_0x3a06d6(0x10e)](_0x304038,_0x29b53f,_0x5e0d25);if(!(_0x540446!=null&&_0x540446[_0x3a06d6(0x288)]))return;let {left:_0x41d703,top:_0x5d8cb2,width:_0x5c88d9,height:_0x2088da}=_0x540446[_0x3a06d6(0x288)];this[_0x3a06d6(0x296)]=_0x41d703||0x0,this[_0x3a06d6(0x236)]=_0x5d8cb2||0x0,this[_0x3a06d6(0x177)]=_0x5c88d9||0x0,this['_baseHeight']=_0x2088da||0x0;let _0xe09ffa=!!((_0x2e1e5a=_0x540446[_0x3a06d6(0x288)])!=null&&_0x2e1e5a[_0x3a06d6(0x124)]),_0x445f83=!!((_0xf7ac29=_0x540446['transform'])!=null&&_0xf7ac29[_0x3a06d6(0x291)]),_0x115253=((_0x2e6ff1=_0x540446[_0x3a06d6(0x288)])==null?void 0x0:_0x2e6ff1[_0x3a06d6(0x300)])||0x0,_0x120c41=this[_0x3a06d6(0x1dd)](_0x304038,_0x29b53f,_0x5e0d25);if(!_0x120c41)return;let _0x1b0151=this[_0x3a06d6(0x21e)](_0x120c41[_0x3a06d6(0x253)],this['_baseWidth'],this[_0x3a06d6(0x14f)],_0x120c41['adjustValues']);if(!_0x1b0151||(this[_0x3a06d6(0x25f)]=_0x1b0151,this[_0x3a06d6(0x256)]=_0x1b0151['getAdjustInfoByName'](_0x444d78),!this[_0x3a06d6(0x256)]))return;this[_0x3a06d6(0x167)]=!0x0,_0x271a96[_0x3a06d6(0x1be)]();let _0x58f5b3=_0x120c41[_0x3a06d6(0x253)];this[_0x3a06d6(0xb1)]=_0x271a96['onPointerMove$'][_0x3a06d6(0x2ce)]((_0x476e84,_0x33639d)=>{const _0x11deba=_0x3a06d6;if(!this[_0x11deba(0x167)])return;let {offsetX:_0x379a6b,offsetY:_0x929e72}=_0x476e84,_0x593062=this[_0x11deba(0x256)];if(!this[_0x11deba(0x25f)]||!_0x593062)return;_0x271a96[_0x11deba(0x1be)](),_0x271a96[_0x11deba(0xce)](_0x5615ac[_0x11deba(0xae)]);let _0x34be8c={'left':0x0,'top':0x0,'width':this[_0x11deba(0x177)],'height':this[_0x11deba(0x14f)]},_0x4033ce=this[_0x11deba(0x18a)](_0x304038,_0x29b53f),_0x1a8703=this['_getZoomRatio'](_0x304038,_0x29b53f),_0x6f1f63=_0x379a6b/_0x1a8703+_0x4033ce['x']-this['_baseLeft'],_0x18b155=_0x929e72/_0x1a8703+_0x4033ce['y']-this['_baseTop'];if(_0x115253!==0x0){let _0x1f2fad=this['_baseWidth']/0x2,_0xd2e8b0=this[_0x11deba(0x14f)]/0x2,_0x30a993=_0x115253*Math['PI']/0xb4,_0x51ce19=Math[_0x11deba(0x2ac)](_0x30a993),_0x153cdc=Math['sin'](_0x30a993),_0x28e8d7=_0x6f1f63-_0x1f2fad,_0x2617d9=_0x18b155-_0xd2e8b0;_0x6f1f63=_0x1f2fad+(_0x28e8d7*_0x51ce19+_0x2617d9*_0x153cdc),_0x18b155=_0xd2e8b0+(-_0x28e8d7*_0x153cdc+_0x2617d9*_0x51ce19);}_0xe09ffa&&(_0x6f1f63=this[_0x11deba(0x177)]-_0x6f1f63),_0x445f83&&(_0x18b155=this['_baseHeight']-_0x18b155);let _0x3bec5a=this['_activeShapeModel']['calcAdjValue'](_0x34be8c,{'x':_0x6f1f63,'y':_0x18b155},_0x593062,_0xe09ffa,_0x445f83),_0x9b1309=_0x593062[_0x11deba(0x28d)]||_0x593062[_0x11deba(0x273)]||_0x593062[_0x11deba(0x15e)]||_0x593062[_0x11deba(0xf9)];_0x9b1309!==void 0x0&&(this[_0x11deba(0x25f)][_0x11deba(0x17f)](_0x9b1309,_0x3bec5a),this[_0x11deba(0x25f)][_0x11deba(0x229)]({'width':this[_0x11deba(0x177)],'height':this[_0x11deba(0x14f)]}),this['_updateImageAdjValues'](_0x304038,_0x29b53f,_0x5e0d25,_0x9b1309,_0x3bec5a),this['_activeAdjustPointList']=this[_0x11deba(0x25f)][_0x11deba(0x1c1)](),this[_0x11deba(0x256)]=this[_0x11deba(0x25f)][_0x11deba(0xa5)](_0x444d78),this[_0x11deba(0x151)](),_0x33639d[_0x11deba(0x17b)]());}),this[_0x3a06d6(0x2bd)]=_0x271a96['onPointerUp$'][_0x3a06d6(0x2ce)]((_0x449249,_0x86b41a)=>{const _0x23be52=_0x3a06d6;if(this[_0x23be52(0xb1)][_0x23be52(0x1d0)](),this['_adjHandlerPointerUp'][_0x23be52(0x1d0)](),_0x271a96[_0x23be52(0xda)](),this[_0x23be52(0x25f)]){let _0xcc685a=this[_0x23be52(0x25f)][_0x23be52(0x2c8)](),_0x30af43={};for(let _0x5d6bb7 of _0xcc685a){let _0xbd0c7d=this[_0x23be52(0x25f)][_0x23be52(0x25d)](_0x5d6bb7);_0xbd0c7d!==void 0x0&&(_0x30af43[_0x5d6bb7]=_0xbd0c7d);}this[_0x23be52(0x264)][_0x23be52(0x27e)](_0x304038,_0x29b53f,_0x5e0d25,_0x58f5b3,_0x30af43);}this[_0x23be52(0x256)]=void 0x0,this[_0x23be52(0x25f)]=void 0x0,this[_0x23be52(0x167)]=!0x1,_0x86b41a['stopPropagation'](),_0x271a96['enableObjectsEvent']();}),_0x3e1da3['stopPropagation']();})));}[_0x3721df(0x181)](_0x41846c,_0x69d404,_0x492841,_0x317c9c,_0x1a8586){const _0x1b53cc=_0x3721df;let _0x232097=this[_0x1b53cc(0x28f)][_0x1b53cc(0x1f1)](_0x41846c);if(!_0x232097)return;let {scene:_0x24bb56}=_0x232097,_0x37aa5f=_0xc0766c({'unitId':_0x41846c,'subUnitId':_0x69d404,'drawingId':_0x492841}),_0x587947=_0x24bb56[_0x1b53cc(0x166)](_0x37aa5f);if(_0x587947 instanceof _0x6f9047){var _0x4b9fb5;let _0x58cbbe=(_0x4b9fb5=_0x587947[_0x1b53cc(0x152)])==null?{}:_0x4b9fb5;_0x587947[_0x1b53cc(0x1ac)]({..._0x58cbbe,[_0x317c9c]:_0x1a8586}),_0x587947[_0x1b53cc(0x16b)](!0x0);}}['_registerMoveHandler'](){const _0x190d9f=_0x3721df;let _0x548eac=this[_0x190d9f(0x205)][_0x190d9f(0x1e2)](_0x2c116a[_0x190d9f(0x1a1)]);this[_0x190d9f(0x23d)](_0x548eac['pipe'](_0x319361(_0x584c3a=>_0x584c3a?_0x584c3a['activeSheet$'][_0x190d9f(0x27d)](_0x319361(_0x4ff5ce=>{const _0x346e66=_0x190d9f;if(!_0x4ff5ce)return _0x4cf815;let _0x5391b5=_0x584c3a[_0x346e66(0x1b5)](),_0x1484b7=this[_0x346e66(0x28f)]['getRenderById'](_0x5391b5),_0x25a94b=_0x1484b7==null?void 0x0:_0x1484b7[_0x346e66(0x223)];return _0x25a94b?_0x232c55(_0x25a94b):_0x4cf815;})):_0x4cf815))['subscribe'](_0x16effd=>{const _0x4c695d=_0x190d9f;let _0x446d37=_0x16effd[_0x4c695d(0x197)]();this[_0x4c695d(0x23d)](_0x16effd['onPointerMove$'][_0x4c695d(0x2ce)](()=>{const _0x12c191=_0x4c695d;this[_0x12c191(0x139)]&&this['_clearControls']();})),this['disposeWithMe'](_0x446d37[_0x4c695d(0x191)][_0x4c695d(0x290)](_0x35a824=>{const _0x42f7d8=_0x4c695d;let {objects:_0x43f1ea}=_0x35a824;if(this[_0x42f7d8(0x151)](),_0x43f1ea!==null&&_0x43f1ea[_0x42f7d8(0x30a)]===0x1){let _0xee0cc8=_0x43f1ea['values']()[_0x42f7d8(0x11b)]()[_0x42f7d8(0x15c)];_0xee0cc8 instanceof _0x6f9047&&_0xee0cc8[_0x42f7d8(0x253)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x4c695d(0x23d)](_0x446d37[_0x4c695d(0x1a0)][_0x4c695d(0x290)](()=>{const _0x64240a=_0x4c695d;this[_0x64240a(0x139)]&&this[_0x64240a(0x2bc)]();})),this[_0x4c695d(0x23d)](_0x16effd[_0x4c695d(0x163)]['subscribeEvent'](()=>{const _0x19d68f=_0x4c695d;this[_0x19d68f(0x139)]&&(this[_0x19d68f(0x139)]=!0x1,this[_0x19d68f(0x151)]());})),this['disposeWithMe'](_0x446d37[_0x4c695d(0x2f1)]['subscribe'](()=>{const _0xbf4224=_0x4c695d;if(this[_0xbf4224(0x255)]&&this['_subUnitId']&&this[_0xbf4224(0xff)]){let _0x21b250=this['_getImagePrstGeom'](this[_0xbf4224(0x255)],this['_subUnitId'],this['_activeImageId']);if(_0x21b250){var _0x423472,_0x3d4f4c;let _0x1a5517=this[_0xbf4224(0x10e)](this[_0xbf4224(0x255)],this[_0xbf4224(0x113)],this[_0xbf4224(0xff)]),_0x56e5f9=(_0x1a5517==null||(_0x423472=_0x1a5517['transform'])==null?void 0x0:_0x423472['width'])||0x0,_0x1a0cb7=(_0x1a5517==null||(_0x3d4f4c=_0x1a5517[_0xbf4224(0x288)])==null?void 0x0:_0x3d4f4c[_0xbf4224(0x193)])||0x0,_0x29dcc4=this[_0xbf4224(0x21e)](_0x21b250['prstGeom'],_0x56e5f9,_0x1a0cb7,_0x21b250[_0xbf4224(0x257)]);_0x29dcc4&&(this[_0xbf4224(0x147)]=_0x29dcc4[_0xbf4224(0x1c1)](),this[_0xbf4224(0x2bc)](),this[_0xbf4224(0x151)](!0x0));}}}));}));}[_0x3721df(0x19b)](){const _0x4abe32=_0x3721df;this['disposeWithMe'](this[_0x4abe32(0x212)][_0x4abe32(0x225)][_0x4abe32(0x290)](_0xc9a6f9=>{const _0x2d7c72=_0x4abe32;if(_0xc9a6f9['length']===0x1){let _0x280bf4=_0xc9a6f9[0x0];if(_0x280bf4['drawingType']===_0x91d30f[_0x2d7c72(0x302)]){let {unitId:_0x2de294,subUnitId:_0x56402b,drawingId:_0x484091}=_0x280bf4,_0x237044=this[_0x2d7c72(0x1dd)](_0x2de294,_0x56402b,_0x484091);if(_0x237044){var _0x40ef4e,_0x18d7f3;this[_0x2d7c72(0xff)]=_0x484091,this['_unitId']=_0x2de294,this[_0x2d7c72(0x113)]=_0x56402b;let _0x3711a2=this[_0x2d7c72(0x10e)](_0x2de294,_0x56402b,_0x484091),_0x630885=(_0x3711a2==null||(_0x40ef4e=_0x3711a2[_0x2d7c72(0x288)])==null?void 0x0:_0x40ef4e['width'])||0x0,_0x3f4829=(_0x3711a2==null||(_0x18d7f3=_0x3711a2[_0x2d7c72(0x288)])==null?void 0x0:_0x18d7f3[_0x2d7c72(0x193)])||0x0,_0x35ff7d=this[_0x2d7c72(0x21e)](_0x237044[_0x2d7c72(0x253)],_0x630885,_0x3f4829,_0x237044[_0x2d7c72(0x257)]);_0x35ff7d&&(this['_activeAdjustPointList']=_0x35ff7d[_0x2d7c72(0x1c1)]()),this['_clearControls'](),this[_0x2d7c72(0x151)](!0x0);}else this[_0x2d7c72(0x285)]();}else this[_0x2d7c72(0x285)]();}else this['_resetState']();})),this[_0x4abe32(0x23d)](this['_drawingManagerService'][_0x4abe32(0xe0)][_0x4abe32(0x290)](_0x5c4d55=>{const _0xd328e5=_0x4abe32;if(_0x5c4d55[_0xd328e5(0x19e)]===0x1){let _0x3a563b=_0x5c4d55[0x0],_0x158888=this[_0xd328e5(0x212)][_0xd328e5(0x22d)](_0x3a563b);(_0x158888==null?void 0x0:_0x158888[_0xd328e5(0x132)])===_0x91d30f[_0xd328e5(0x302)]&&this['_activeImageId']===_0x3a563b[_0xd328e5(0x121)]&&(this[_0xd328e5(0x2bc)](),this[_0xd328e5(0x151)](!0x0));}})),this['disposeWithMe'](this[_0x4abe32(0x212)][_0x4abe32(0x2aa)][_0x4abe32(0x290)](_0x19b566=>{const _0x25f024=_0x4abe32;for(let _0x23e78c of _0x19b566)this[_0x25f024(0xff)]===_0x23e78c[_0x25f024(0x121)]&&this['_resetState']();}));}['_resetState'](){const _0x2d2f5a=_0x3721df;this[_0x2d2f5a(0xff)]=null,this[_0x2d2f5a(0x255)]=null,this['_subUnitId']=null,this['_activeAdjustPointList']=void 0x0,this[_0x2d2f5a(0x2bc)]();}};er=Y([J(0x1,_0x30b385),J(0x2,_0x44ac9c(_0x3ab9c0)),J(0x3,_0xeac766),J(0x4,_0x44ac9c(Q))],er);let tr=class extends _0x3ff889{constructor(_0x1aa558,_0x88db49,_0x4fa238,_0x2ffcfe){const _0x18f86b=_0x3721df;super(),this[_0x18f86b(0x205)]=_0x1aa558,this[_0x18f86b(0x120)]=_0x88db49,this[_0x18f86b(0x2de)]=_0x4fa238,this[_0x18f86b(0x1a7)]=_0x2ffcfe,this[_0x18f86b(0x16d)]();}[_0x3721df(0x16d)](){const _0x41b70c=_0x3721df;this['disposeWithMe'](this[_0x41b70c(0x120)]['interceptCommand']({'getMutations':_0x3f6a1c=>{const _0x8380d5=_0x41b70c;if(_0x3f6a1c['id']===_0x28140a['id']){let _0x10cf3f=_0x458956(this[_0x8380d5(0x205)],_0x3f6a1c['params']);if(!_0x10cf3f)return{'redos':[],'undos':[]};let {unitId:_0x3d2653,subUnitId:_0xb3f29d}=_0x10cf3f,_0x59f6fd=this[_0x8380d5(0x2de)][_0x8380d5(0x28e)](_0x3d2653,_0xb3f29d),_0x39c4ed=Object[_0x8380d5(0x258)](_0x59f6fd)[_0x8380d5(0x10d)](_0x19a80d=>_0x19a80d[_0x8380d5(0x132)]===_0x91d30f['DRAWING_SHAPE']);if(_0x39c4ed[_0x8380d5(0x19e)]===0x0)return{'redos':[],'undos':[]};let _0x5e88d6=[],_0x4f1e33=[];for(let _0xc605e=0x0;_0xc605e<_0x39c4ed[_0x8380d5(0x19e)];_0xc605e++){let _0x12612a=_0x39c4ed[_0xc605e],_0x213f4a=this['_sheetsShapeService'][_0x8380d5(0xef)](_0x12612a[_0x8380d5(0xe5)],_0x12612a[_0x8380d5(0x183)],_0x12612a['drawingId']);if(!_0x213f4a)continue;let {redo:_0x332923,undo:_0x3ac232,objects:_0x4eef5d}=this[_0x8380d5(0x2de)][_0x8380d5(0x194)]([_0x12612a]);_0x5e88d6['push']({'id':_0x25666b['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'shapeId':_0x12612a[_0x8380d5(0x121)]}}),_0x5e88d6[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'type':_0x19dac9[_0x8380d5(0x16f)],'op':_0x332923,'objects':_0x4eef5d}}),_0x4f1e33[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'type':_0x19dac9['INSERT'],'op':_0x3ac232,'objects':_0x4eef5d}}),_0x4f1e33[_0x8380d5(0x1d2)]({'id':_0x462d48['id'],'params':{'unitId':_0x3d2653,'subUnitId':_0xb3f29d,'shapeId':_0x12612a[_0x8380d5(0x121)],'shapeType':_0x213f4a['getShapeType'](),'shapeData':JSON[_0x8380d5(0x2c5)](JSON[_0x8380d5(0x252)](_0x213f4a[_0x8380d5(0x21d)]()))}});}return{'redos':_0x5e88d6,'undos':_0x4f1e33};}else{if(_0x3f6a1c['id']===_0xe13458['id']){let {unitId:_0x2eb9a9,subUnitId:_0x1ad8d5,targetSubUnitId:_0x2f0bcf}=_0x3f6a1c[_0x8380d5(0x12c)];if(!_0x2eb9a9||!_0x1ad8d5||!_0x2f0bcf)return{'redos':[],'undos':[]};let _0x1cbb2b=this['_sheetDrawingService']['getDrawingData'](_0x2eb9a9,_0x1ad8d5),_0x22faea=Object[_0x8380d5(0x258)](_0x1cbb2b)['filter'](_0x2e09f6=>_0x2e09f6[_0x8380d5(0x132)]===_0x91d30f[_0x8380d5(0x27a)]);if(_0x22faea['length']===0x0)return{'redos':[],'undos':[]};let _0x2c2828=[],_0x10aea6=[];for(let _0x427e51=0x0;_0x427e51<_0x22faea[_0x8380d5(0x19e)];_0x427e51++){let _0x10f59b=_0x22faea[_0x427e51],_0x4ea589=this[_0x8380d5(0x1a7)][_0x8380d5(0xef)](_0x10f59b['unitId'],_0x10f59b[_0x8380d5(0x183)],_0x10f59b[_0x8380d5(0x121)]);if(!_0x4ea589)continue;let _0x45f2b9=_0x4b0b19(),_0x2460c9={..._0x10f59b,'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'drawingId':_0x45f2b9},{redo:_0x2fa312,undo:_0x2e1a30,objects:_0x32fea8}=this[_0x8380d5(0x2de)][_0x8380d5(0x1cf)]([_0x2460c9]);_0x2c2828[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'type':_0x19dac9[_0x8380d5(0x154)],'op':_0x2fa312,'objects':_0x32fea8}}),_0x2c2828[_0x8380d5(0x1d2)]({'id':_0x462d48['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'shapeId':_0x45f2b9,'shapeType':_0x4ea589[_0x8380d5(0x210)](),'shapeData':JSON[_0x8380d5(0x2c5)](JSON[_0x8380d5(0x252)](_0x4ea589[_0x8380d5(0x21d)]()))}}),_0x10aea6['push']({'id':_0x25666b['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'shapeId':_0x45f2b9}}),_0x10aea6[_0x8380d5(0x1d2)]({'id':_0x86cf9f['id'],'params':{'unitId':_0x2eb9a9,'subUnitId':_0x2f0bcf,'type':_0x19dac9[_0x8380d5(0x16f)],'op':_0x2e1a30,'objects':_0x32fea8}});}return{'redos':_0x2c2828,'undos':_0x10aea6};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x44ac9c(_0xeac766)),J(0x1,_0x44ac9c(_0x1ad409)),J(0x2,_0x44ac9c(_0x1769d9)),J(0x3,_0x44ac9c(_0x2318dd))],tr);let nr=class extends _0x3ff889{constructor(_0x509130,_0x4858c6,_0x12c83e,_0x42c99e,_0x141184){const _0x554b5c=_0x3721df;super(),this[_0x554b5c(0x135)]=_0x509130,this[_0x554b5c(0xea)]=_0x4858c6,this[_0x554b5c(0x212)]=_0x12c83e,this[_0x554b5c(0x2e2)]=_0x42c99e,this['_sheetsShapeService']=_0x141184,q(this,_0x554b5c(0xcc),null),this[_0x554b5c(0x2d4)](),this[_0x554b5c(0x1ee)](),this['_initEditingParams']();}[_0x3721df(0x2d4)](){const _0x3bafd1=_0x3721df;let {scene:_0x44a259}=this[_0x3bafd1(0x135)];this[_0x3bafd1(0x23d)](_0x44a259[_0x3bafd1(0x23f)][_0x3bafd1(0x2ce)](_0x3b7aa2=>{const _0x4ffe6e=_0x3bafd1;let {offsetX:_0x1e6e8e,offsetY:_0x1992b1}=_0x3b7aa2,_0x4719e6=_0x44a259[_0x4ffe6e(0xde)](_0x3e3387[_0x4ffe6e(0x1fa)]([_0x1e6e8e,_0x1992b1]));if(_0x4719e6 instanceof vn){if(_0x51a857(this['_sheetsShapeService'][_0x4ffe6e(0x210)](_0x4719e6[_0x4ffe6e(0xe5)],_0x4719e6[_0x4ffe6e(0x183)],_0x4719e6[_0x4ffe6e(0x1bf)])))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x4719e6[_0x4ffe6e(0xe5)],'subUnitId':_0x4719e6[_0x4ffe6e(0x183)],'shapeId':_0x4719e6['shapeId'],'shapeKey':_0x4719e6[_0x4ffe6e(0x204)]});}}));}[_0x3721df(0x1ee)](){const _0x2c21f8=_0x3721df;this['disposeWithMe'](this[_0x2c21f8(0x212)]['focus$'][_0x2c21f8(0x290)](_0x9e1eff=>{const _0x4a4b77=_0x2c21f8;if(_0x9e1eff[_0x4a4b77(0x19e)]===0x1){let _0x560d88=_0x9e1eff[0x0],_0x59249f=this['_drawingManagerService'][_0x4a4b77(0x22d)](_0x560d88);if((_0x59249f==null?void 0x0:_0x59249f[_0x4a4b77(0x132)])===_0x91d30f[_0x4a4b77(0x27a)]){let _0x241226=this['_shapeTextEditingService'][_0x4a4b77(0x2d0)]();if((_0x241226==null?void 0x0:_0x241226[_0x4a4b77(0x1bf)])===_0x560d88[_0x4a4b77(0x121)]&&_0x241226['visible'])return;_0x51a857(this[_0x4a4b77(0x1a7)]['getShapeType'](_0x560d88['unitId'],_0x560d88['subUnitId'],_0x560d88[_0x4a4b77(0x121)]))&&this['_shapeTextEditingService'][_0x4a4b77(0x2c4)](null);}else this[_0x4a4b77(0xea)][_0x4a4b77(0x2d0)]()&&(this[_0x4a4b77(0xea)][_0x4a4b77(0x243)](!0x0),requestAnimationFrame(()=>{const _0x5764be=_0x4a4b77;this[_0x5764be(0xea)]['setEditing'](null);}));}else this[_0x4a4b77(0xea)]['getEditing']()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x382b02=_0x4a4b77;this[_0x382b02(0xea)][_0x382b02(0x2c4)](null);}));})),this[_0x2c21f8(0x23d)](this[_0x2c21f8(0x212)][_0x2c21f8(0x2aa)][_0x2c21f8(0x290)](_0x1a40f5=>{const _0x530df1=_0x2c21f8;let _0x4ec165=this['_shapeTextEditingService']['getEditing']();_0x4ec165&&_0x1a40f5[_0x530df1(0xab)](_0x2b4479=>_0x2b4479[_0x530df1(0x121)]===_0x4ec165[_0x530df1(0x1bf)])&&this['_shapeTextEditingService'][_0x530df1(0x2c4)](null);}));}[_0x3721df(0x22f)](){const _0x42cd34=_0x3721df;this[_0x42cd34(0x23d)](this[_0x42cd34(0xea)]['editingParams$'][_0x42cd34(0x290)](_0x3538bf=>{const _0x45b3c4=_0x42cd34;let {scene:_0x453d71}=this['_context'];if(this[_0x45b3c4(0xcc)]){let _0x4f6828=_0x453d71[_0x45b3c4(0xc2)](this['_lastEditingShapeKey']);_0x4f6828&&_0x4f6828[_0x45b3c4(0x2c4)](!0x1);}if(_0x3538bf){let _0xaa9263=!!_0x3538bf[_0x45b3c4(0xbf)],_0x16d6ed=_0x453d71[_0x45b3c4(0xc2)](_0x3538bf[_0x45b3c4(0x1b2)]);_0x16d6ed&&(_0x16d6ed[_0x45b3c4(0x2c4)](_0xaa9263),this['_lastEditingShapeKey']=_0x3538bf[_0x45b3c4(0x1b2)]),this[_0x45b3c4(0x2e2)]['setContextValue'](_0x47dded,_0xaa9263);}else this[_0x45b3c4(0xcc)]=null,this['_contextService'][_0x45b3c4(0x2b6)](_0x47dded,!0x1);}));}};nr=Y([J(0x1,_0x44ac9c(Zn)),J(0x2,_0x30b385),J(0x3,_0x2d72db),J(0x4,_0x44ac9c(_0x2318dd))],nr);let rr=class extends _0x260374{constructor(_0x3b1cfc,_0x41fc88,_0x3a6ddb,_0xff3a0){super(_0x3b1cfc,_0x41fc88,_0x3a6ddb,_0xff3a0,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x44ac9c(_0x2fc8f4)),J(0x2,_0x44ac9c(_0x919a37)),J(0x3,_0x44ac9c(_0x2f3dc8))],rr);let ir=class extends _0x3ff889{constructor(_0x16121e,_0x301975,_0x4992ac,_0x224b27,_0x102903,_0x1bbd1e){const _0x3800a4=_0x3721df;super(),this[_0x3800a4(0x1fc)]=_0x16121e,this[_0x3800a4(0x28f)]=_0x301975,this['_drawingManagerService']=_0x4992ac,this[_0x3800a4(0x20f)]=_0x224b27,this[_0x3800a4(0x2d8)]=_0x102903,this[_0x3800a4(0x1c5)]=_0x1bbd1e,q(this,_0x3800a4(0x160),new Set()),this[_0x3800a4(0x14a)]();}[_0x3721df(0x14a)](){const _0x33a34b=_0x3721df;this[_0x33a34b(0x277)](),this[_0x33a34b(0x19f)](),this[_0x33a34b(0x263)]();}['_drawingAddListener'](){const _0x27b96f=_0x3721df;this[_0x27b96f(0x23d)](this[_0x27b96f(0x212)][_0x27b96f(0x1e5)][_0x27b96f(0x290)](_0x23fb3a=>{const _0x96c683=_0x27b96f;this[_0x96c683(0x266)](_0x23fb3a);}));}['_commandExecutedListener'](){const _0x4eb917=_0x3721df;this[_0x4eb917(0x23d)](this[_0x4eb917(0x1fc)][_0x4eb917(0x2b1)](_0x27c3ac=>{const _0x503fbe=_0x4eb917;if(_0x27c3ac['id']===_0x4ea02e['id']){let {unitId:_0x35d87f,subUnitId:_0x4a1bab,shapeId:_0x4b8e50}=_0x27c3ac[_0x503fbe(0x12c)],_0xc7ab9c=this[_0x503fbe(0x2a7)](_0x35d87f),_0x71d492=_0xc0766c({'unitId':_0x35d87f,'subUnitId':_0x4a1bab,'drawingId':_0x4b8e50}),_0x422ca0=_0xc7ab9c==null?void 0x0:_0xc7ab9c[_0x503fbe(0x223)][_0x503fbe(0xc2)](_0x71d492);_0x422ca0&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x422ca0),_0x422ca0[_0x503fbe(0x16b)](!0x0));return;}if(_0x27c3ac['id']===_0x462d48['id']){var _0x351142;let {unitId:_0xafa56c,subUnitId:_0x162e77,shapeId:_0x275e52}=_0x27c3ac[_0x503fbe(0x12c)],_0x11059f=this[_0x503fbe(0x2a7)](_0xafa56c);if(_0x11059f==null)return;let {scene:_0x4e16ec}=_0x11059f,_0x126634=_0xc0766c({'unitId':_0xafa56c,'subUnitId':_0x162e77,'drawingId':_0x275e52}),_0x322efd=_0x4e16ec[_0x503fbe(0xc2)](_0x126634);if(!((_0x351142=this['_renderManagerService'][_0x503fbe(0x1f1)](_0xafa56c))!=null&&_0x351142[_0x503fbe(0x29b)](_0x39e39b)[_0x503fbe(0xf0)](_0x162e77)))return!0x1;if(_0x322efd)return;this['_insertShapes']([{'unitId':_0xafa56c,'subUnitId':_0x162e77,'drawingId':_0x275e52}]);}}));}[_0x3721df(0x263)](){const _0x57227c=_0x3721df;this['disposeWithMe'](this[_0x57227c(0x212)][_0x57227c(0xe0)][_0x57227c(0x290)](_0x400577=>{const _0x419e2f=_0x57227c;_0x400577[_0x419e2f(0x1a9)](_0xf54efc=>{const _0x4a13e7=_0x419e2f;let {unitId:_0x1f88c7,subUnitId:_0x51e24f,drawingId:_0x4e86fb}=_0xf54efc,_0x44bc77=this['_drawingManagerService'][_0x4a13e7(0x22d)](_0xf54efc);if(_0x44bc77==null)return;let {transform:_0x32b8a3,drawingType:_0x512c26,srcRect:_0x49da92,prstGeom:_0x5a9d78}=_0x44bc77;if(_0x512c26!==_0x91d30f[_0x4a13e7(0x27a)])return;let _0x49dc69=this[_0x4a13e7(0x2a7)](_0x1f88c7);if(_0x49dc69==null)return;let {scene:_0x581e4d,transformer:_0x411c1a}=_0x49dc69;if(_0x32b8a3==null)return!0x0;let _0x2146fb=_0xc0766c({'unitId':_0x1f88c7,'subUnitId':_0x51e24f,'drawingId':_0x4e86fb}),_0x4bea3d=_0x581e4d[_0x4a13e7(0xc2)](_0x2146fb);if(_0x4bea3d==null)return!0x0;_0x4bea3d[_0x4a13e7(0xfe)](_0x49da92),_0x4bea3d[_0x4a13e7(0x104)](_0x5a9d78);});}));}[_0x3721df(0x266)](_0x34cf27){const _0x2058dd=_0x3721df;for(let _0x45af37 of _0x34cf27){var _0x4d7cfe;let {unitId:_0x23682c,subUnitId:_0x256bbf,drawingId:_0x22cc4a}=_0x45af37,_0x33013c=this[_0x2058dd(0x2a7)](_0x23682c),_0x1370b7=(_0x4d7cfe=_0x72b568(this['_currentUniverService'],_0x23682c))==null?void 0x0:_0x4d7cfe[_0x2058dd(0x183)];if(_0x33013c==null||_0x1370b7!==_0x256bbf)return;let _0x51090b=_0xc0766c({'unitId':_0x23682c,'subUnitId':_0x256bbf,'drawingId':_0x22cc4a});if(this[_0x2058dd(0x160)][_0x2058dd(0x238)](_0x51090b)||_0x33013c[_0x2058dd(0x223)][_0x2058dd(0xc2)](_0x51090b)!=null)return;let _0x819bcf=this['_drawingManagerService']['getDrawingByParam'](_0x45af37);if(_0x819bcf==null||_0x819bcf[_0x2058dd(0x132)]!==_0x91d30f['DRAWING_SHAPE'])return;if(_0x51a857((_0x819bcf[_0x2058dd(0x1b6)]||{})['shapeType'])){let _0x539244=_0x819bcf[_0x2058dd(0x288)];_0x539244&&(_0x819bcf[_0x2058dd(0x288)]={..._0x539244,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2058dd(0x160)][_0x2058dd(0x198)](_0x51090b);try{this['_sheetDrawingShapeRenderController'][_0x2058dd(0x297)](_0x819bcf,_0x33013c[_0x2058dd(0x223)]);}finally{this['_insertingShapeKeys'][_0x2058dd(0xba)](_0x51090b);}queueMicrotask(()=>{const _0x52c90f=_0x2058dd;if(this[_0x52c90f(0xe3)])return;let _0x4ebc13=_0xc0766c(_0x45af37);if(!_0x33013c['scene'][_0x52c90f(0xc2)](_0x4ebc13))return;let _0x5e6329=this['_drawingManagerService'][_0x52c90f(0x22d)](_0x45af37);_0x5e6329&&this[_0x52c90f(0x212)][_0x52c90f(0xf3)]([_0x5e6329]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x12e7c5){const _0x47b73f=_0x3721df;if(_0x12e7c5==null)return;let _0x21bba4=this['_renderManagerService'][_0x47b73f(0x1f1)](_0x12e7c5),_0x5aaf41=_0x21bba4==null?void 0x0:_0x21bba4[_0x47b73f(0x223)];return _0x5aaf41==null?null:{'scene':_0x5aaf41,'transformer':_0x5aaf41['getTransformerByCreate']()};}};ir=Y([J(0x0,_0x27b781),J(0x1,_0x3ab9c0),J(0x2,_0x30b385),J(0x3,_0xeac766),J(0x4,_0x44ac9c(_0x56a023)),J(0x5,_0x44ac9c(X))],ir);const ar={'normal':{'fill':_0x170bf6[_0x3721df(0x192)],'stroke':_0x170bf6[_0x3721df(0x106)],'strokeWidth':_0x170bf6[_0x3721df(0x2ca)]},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};function _0x1222(){const _0x15b45b=['oKey','_univerInstanceService','_sheetSkeletonService','left','_activeShapeAdjustPointList','custom','getConnectionSiteList','getBatchUpdateOp','clearAdjustValue','_props','resize','_currentUniverService','getShapeType','render','_drawingManagerService','syncExecuteCommand','getShapeTypeById','sheet.operation.open-sheet-shape-format-panel','table','_transformCalculateSrcRect','getBentTypeFromPoints','updateLinePoints','activeAnObject','_clearShapeAdjustControls','lineShapeId','getShapeData','_getOrCreateShapeModel','_registerComponents','DRAWING_TABLE','register','sheets-shape-ui.formatShape','scene','ang','focus$','#FFFFFF','_getConnectPointInfo','isStartConnectorPoint','updateContext','sheets-shape-ui.toggleTextVertical','_getShapeAdjustPointListById','sheet.command.menu-insert-shape','getDrawingByParam','editingParams$','_initEditingParams','_drawShapeText','_findShapeAtPoint','getParent','onRendered','_getZoomRatio','calculate','_baseTop','color','has','src','_updateTransform','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_handleFreeEndpointPointerUp','disposeWithMe','computeStraightConnectorLayout','onDblclick$','UUID','Line','_sheetPermissionCheckController','setOnSavingEditorData','_isShouldShowDrawingShapeAdjust','getDrawingSearch','contentVerticalOffset','restore','_copyInfo','object','_handleConnectedEndpointMove','executeCommand','getSheetBySheetId','_rerouteConnectorLine','video','reverse','dispose','isLineShape','stringify','prstGeom','_executeConnectionCommand','_unitId','_activeAdjustInfo','adjustValues','values','forward','skeleton','6410qfJBtB','_updateShapeAdjustControls','getAdjustValueByName','sheet.shape.text.float-menu','_activeShapeModel','worldPoints','DRAWING_SMART_ART','LEFT','_shapeUpdateListener','_imageShapeClipController','clearControl$','_insertShapes','sheets-shape-ui.deleteShape','slice','_init','getCurrentUnitOfType','isInGroup','SolidLine','_targetShapeId','onSavingEditorData$','getShapeDataById','horizontal','reduce','offsetX','gdRefY','refreshAdjustControls','sheets-shape-ui.rotateRight90','sectionCanvas','_drawingAddListener','1200fZEchz','Image','DRAWING_SHAPE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','invert','pipe','clipByShape','point','adjHandleFill','@univerjs-pro/sheets-shape-ui','clip','_generateCutPasteMutations','beginPath','_resetState','defineProperty','getInverseCoord','transform','initTransformer','shape-text-','setCanUseShapeClip','from','gdRefX','getDrawingData','_renderManagerService','subscribe','flipY','trim','isHitLine','popup','setShapeProps','_baseLeft','renderDrawingShape','clear','_isStartConnectorPoint','_clearShapeConnectorHandlerObjects','with','_initPermission','_handleFreeEndpointMove','refreshShapeFillImage','_highlightedSiteIndex','find','startArrow','_menuManagerService','setFillImage','setHighlighted','prototype','1820768DHvqCN','_getSceneAndTransformerByDrawingSearch','_baseShapeTop','wrapStrategy','remove$','adjHandleSize','cos','clip-adj-','SELECTOR','shape-adjust-point-','connector-handler-','onCommandExecuted','_getConnectionSiteAngle','SolidFill','fill','_initCommands','setContextValue','text','top','getSheetId','includes','map','_clearControls','_adjHandlerPointerUp','_sheetPrintInterceptorService','doc.image-clip.shape-picker.component','_cxnIndex','registerRenderModule','interceptor','sheets-shape-ui.toggleFlipH','setEditing','parse','_updateAdjustControlPositions','sheets-shape-ui.objectListPanel.title','getAdjustNames','_generatePasteMutations','cxnPointStrokeWidth','_activeShapeInfo','sheet.image-clip.shape-picker.component','fillImageSource','subscribeEvent','onStarting','getEditing','focusDrawing','transformByState','onPointerDown$','_initEvents','attachPopupToObject','CopyDoubleIcon','computeConnectorResizeLayout','_drawingRenderService','_findNearestConnectionSite','getZoomRatio','decorate','canvas','selectable','_sheetDrawingService','initShapePopupMenu','keys','_connectorObjects','_contextService','localToWorld','offsetY','_shapes','sheet.shape.picker.component','_executeResizeCommand','srcRect','shapeText','getInterceptPoints','DRAWING_UNIT','_currentConnectionTarget','div','calcAdjValue','completeEditing','setShapeData','changeEnd$','_handleConnectedEndpointPointerUp','start','drawing.operation.set-drawing-active','get','isRichText','_baseShapeHeight','23468OtzzJq','isRenderLinePointsMode','getMatrix','_registerDrawingMoveHandler','startX','symbol','onReady','fillImageSourceType','angle','startY','DRAWING_IMAGE','string','_registerIcons','_connectionSiteObjects','sheet.operation.open-shape-object-list-panel','sheets-shape-ui.objectListPanel.open','_shapeRenderController','_loadShapePictureFill','size','_baseDrawingRect','URL','endArrow','normal','getAdjustInfoByName','_transform','getShapeTextRect','pluginName','getActiveSheet','updateDocumentDataMargin','some','_groupCopyPasteController','viewportScrollY','CROSSHAIR','undo','getRealBound','_adjHandlerPointerMove','_createShapeAdjustControls','MEDIA','featurePluginUpdateNotification','changeShapeType','_updateSrcRectByTransform','_baseShapeLeft','sheetTransform','12kNOYNZ','delete','_registerShapeMenu','axisAlignSheetTransform','_moveConnectorWithShape','addImageSourceCache','visible','UPDATE','VIEW_MAIN_TOP','getObjectIncludeInGroup','getValue','sheets-shape-text-','cxnPointRadius','Arrow','_clearConnectionSites','save','setShouldShowAdjust','type','_reset','_lastEditingShapeKey','BUTTON','setCursor','getBasicShapeRelation','_onSavingEditorData$','_initCopyPaste','_initPrinting','strokeWidth','clipHeight','getCurrentScrollState','attachTransformerTo','sheets-shape-ui.hidePanel','onSteady','getUnitType','resetCursor','PRINTING_COMPONENT_COLLECT','StraightConnector1','registerFeaturePasteHook','pick','_configService','update$','_draggingConnectorId','image','_disposed','sheetViewStartColumn','unitId','onPointerMove$','classType','_addShapeConnectorHandlerObjects','vertical','_shapeTextEditingService','targetShapeId','511556tdsUMk','getDrawingVisible','_generateCopyPasteMutations','getShapeModel','getSkeleton','_activeTargetShapeId','_hasReset','refreshTransform','_openShapeEditPanel','16128YnjMKw','constructor','getImage','_drawSimpleText','gdRefR','applyPoint','multiply','version','connection-site-','setSrcRect','_activeImageId','clipTop','adjHandleStroke','4707gEUwST','cxnIndex','setPrstGeom','sheet.shape.floating-toolbar','cxnPointStroke','_createShapePopupMenu','name','function','_handleBasicShapeUpdateConnectorLineShape','entries','_isOpenedShapeEditPanel','filter','_getImageDrawingInfo','_sheetCanvasPopManagerService','TOP','lineType','isArray','_subUnitId','_config','close','Large','_cxtHandlerPointerUp','copyType','_createCopyInfoByRange','dataModel','next','adjName','contentHeight','_localeService','sheets-shape-ui.openPanel','_sheetInterceptorService','drawingId','sin','_handleConnectorPointerUp','flipX','_sheetShapeAdjustController','image-clip-adjust-point-','_executeConnectedRouteResizeCommand','_loadAndSetImage','pushUndoRedo','getStartConnectInfo','getSkeletonParam','params','bind','_activeShapeId','sheets-shape-ui','marginTop','group','drawingType','sheet.shape.edit.panel','_disposePopups','_context','SHAPE_TEXT','GROUP','_focusedDrawings','_isImagePointerDown','worldRect','DRAWING_CHART','ancestorTransform','_injector','hidden','sheets-shape-ui.insertShape','doc','_attachConnectorObjectEvent','isHighlighted','permissionCheckWithoutRange','_sidebarService','_closeShapeEditPanel','composeMatrix','_activeAdjustPointList','DEFAULT_PASTE','ShapeIcon','_initialize','isHorizontal','_index','getConnectionInfo','_setTransForm','_baseHeight','enableObjectsEvent','_createControls','prstGeomAdjValues','SHAPE','INSERT','updateShapeFillImage','registerClipDelegate','intercept','addClipboardHook','_getDrawingRect','shapeData','endConnectionDetection','value','onerror','gdRefAng','clip-','_insertingShapeKeys','clearAdjustControls','_isDrawingShapePointDown','onPointerUp$','abs','_getShapeAdjustInfosById','getObject','_isStartAdjusting','_sheetClipboardService','default','shape','makeDirty','_draw','_initSheetChange','fontSize','REMOVE','addObject','gradientEndColor','_componentManager','_addShapeAdjustControl','2337855XRGRCJ','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_shapeId','_baseWidth','rotation','Path','getDrawingOrder','stopPropagation','_clipService','objects','error','setAdjustValueByName','_urlImageService','_updateImageAdjValues','call','subUnitId','relation','drawWith','getOwnPropertyDescriptor','removeLinePoints','_cxtHandlerPointerMove','_registerDrawingFocusChangeHandler','_getScrollInfo','getShapePopupMenus','translateWithPrecision','None','_currentScene','getCurrentSkeleton','onTransformChange$','changeStart$','cxnPointFill','height','getBatchRemoveOp','sheetViewStartRow','stroke','getTransformerByCreate','add','_getShapeInfo','isDrawingObject','_registerFocusChangeHandler','width','_initializedShapePopupMenu','length','_commandExecutedListener','changing$','UNIVER_SHEET','VIEW_MAIN_LEFT_TOP','getState','_addShapeConnectorHandlerObject','registerFeatureMenu','mergeMenu','_sheetsShapeService','clone','forEach','_registerOperations','_adjName','setPrstGeomAdjValues','beforeCommandExecuted','UNIVER_DOC','_initMenu','viewportScrollX','CUT','shapeKey','_popupMenuListener','getAllUnitsForType','getUnitId','data','open','Rect','getConnectorLinePoints','setConfig','getImageSourceCache','title','redo','disableObjectsEvent','shapeId','getCurrentLastSelection','getDrawingPoints','sheets-shape-ui.config','resourceCollector','_registerGroupFeaturePasteHook','_sheetDrawingShapeRenderController','_drawRichText','sheets-shape-ui.toggleFlipV','_calculateFreeEndpointAngle','_imageIoService','chart','_addControl','univer-box-border\x20univer-px-4\x20univer-text-sm','startConnectionDetection','SheetShapeTextEditorContainer','getBatchAddOp','unsubscribe','shapeModel','push','Medium','scale','isEditing','registerFeatureMenuOffset','complete','_showConnectionSites','getFocusDrawings','_sidebarDisposable','smartArt','parent','_getImagePrstGeom','VIEW_MAIN','_isHighlighted','getEndConnectInfo','_clearPopups','getCurrentTypeOfUnit$','DRAWING_DOM','_editingParams$','add$','#bcbcbc','description','_baseShapeWidth','COMMAND','_iconManager','set','sectionFloating','sheets-shape-ui.imagePanel.crop.shape','_initSelection','getConnectionRelation','OPERATION','getRenderById','dom','_sheetBasicShapeConnectionPointController','asObservable','index','toPrimitive','getDrawingOKey','getSelectedObjectMap','sheet.operation.close-sheet-shape-format-panel','FromArray','_attachAdjustEvent','_commandService','worldPoint','_executeConnectedRouteConnectionCommand','_isConnecting','60545REjine','getUnit','_shapeEditPanelVersion','getTransformer'];_0x1222=function(){return _0x15b45b;};return _0x1222();}var or=class extends _0x39ac3d{constructor(_0x2cb0fd,_0x41dc9a){const _0x213c19=_0x3721df;super(_0x2cb0fd,_0x41dc9a),q(this,_0x213c19(0x26d),''),q(this,_0x213c19(0x2c0),-0x1),q(this,_0x213c19(0x255),''),q(this,_0x213c19(0x113),''),q(this,'_isHighlighted',!0x1),_0x41dc9a&&this[_0x213c19(0x295)](_0x41dc9a);}[_0x3721df(0x14d)](){const _0x28ac51=_0x3721df;return{'unitId':this[_0x28ac51(0x255)],'subUnitId':this[_0x28ac51(0x113)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x28ac51(0x2c0)]};}[_0x3721df(0x2a4)](_0x33a9a6){const _0x26a193=_0x3721df;this[_0x26a193(0x1df)]!==_0x33a9a6&&(this['_isHighlighted']=_0x33a9a6,this[_0x26a193(0x16b)](!0x0));}[_0x3721df(0x142)](){const _0x2ee3e3=_0x3721df;return this[_0x2ee3e3(0x1df)];}[_0x3721df(0x295)](_0x5bf4df){const _0x51628d=_0x3721df;var _0x17ad00,_0x165d15;_0x5bf4df[_0x51628d(0xeb)]!==void 0x0&&(this[_0x51628d(0x26d)]=_0x5bf4df['targetShapeId']),_0x5bf4df['cxnIndex']!==void 0x0&&(this[_0x51628d(0x2c0)]=_0x5bf4df[_0x51628d(0x103)]),_0x5bf4df['unitId']!==void 0x0&&(this[_0x51628d(0x255)]=_0x5bf4df[_0x51628d(0xe5)]),_0x5bf4df[_0x51628d(0x183)]!==void 0x0&&(this['_subUnitId']=_0x5bf4df[_0x51628d(0x183)]),_0x5bf4df[_0x51628d(0x142)]!==void 0x0&&(this['_isHighlighted']=_0x5bf4df[_0x51628d(0x142)]),this['transformByState']({'width':(_0x17ad00=_0x5bf4df[_0x51628d(0x19c)])==null?_0x170bf6[_0x51628d(0xc5)]*0x2:_0x17ad00,'height':(_0x165d15=_0x5bf4df[_0x51628d(0x193)])==null?_0x170bf6[_0x51628d(0xc5)]*0x2:_0x165d15});}[_0x3721df(0x16c)](_0x1eb94c){const _0x5721d2=_0x3721df;let _0x4e20da=this['_isHighlighted']?ar['highlighted']:ar[_0x5721d2(0x30e)];_0x2cd80f[_0x5721d2(0x185)](_0x1eb94c,{'radius':_0x170bf6[_0x5721d2(0xc5)],'fill':_0x4e20da[_0x5721d2(0x2b4)],'stroke':_0x4e20da[_0x5721d2(0x196)],'strokeWidth':_0x4e20da[_0x5721d2(0xd3)],'evented':!0x0});}};let sr=class extends _0x3ff889{constructor(_0x12b6fd,_0x1a6706,_0x113a71,_0x6b502f){const _0x27ab15=_0x3721df;super(),this[_0x27ab15(0x135)]=_0x12b6fd,this['_renderManagerService']=_0x1a6706,this['_drawingManagerService']=_0x113a71,this[_0x27ab15(0x1a7)]=_0x6b502f,q(this,_0x27ab15(0x305),[]),q(this,'_activeTargetShapeId',null),q(this,_0x27ab15(0x29f),-0x1),q(this,_0x27ab15(0x18e),null),q(this,'_unitId',''),q(this,_0x27ab15(0x113),''),q(this,'_draggingConnectorId',null);}[_0x3721df(0x1cd)](_0x12cc06,_0x1d73d2,_0x3a887d,_0x42cb68){const _0x112e16=_0x3721df;this[_0x112e16(0x18e)]=_0x12cc06,this[_0x112e16(0x255)]=_0x1d73d2,this[_0x112e16(0x113)]=_0x3a887d,this['_draggingConnectorId']=_0x42cb68;}['updateConnectionDetection'](_0x415fcb){const _0x185fe1=_0x3721df;if(!this[_0x185fe1(0x18e)])return null;let _0x16875f=this[_0x185fe1(0x231)](_0x415fcb);return _0x16875f?(this[_0x185fe1(0xf1)]!==_0x16875f[_0x185fe1(0x1bf)]&&(this[_0x185fe1(0xc7)](),this[_0x185fe1(0x1d8)](_0x16875f[_0x185fe1(0x1bf)],_0x16875f['shapeModel']),this[_0x185fe1(0xf1)]=_0x16875f['shapeId']),this[_0x185fe1(0x2d9)](_0x415fcb)):(this[_0x185fe1(0xf1)]!==null&&(this[_0x185fe1(0xc7)](),this[_0x185fe1(0xf1)]=null),null);}[_0x3721df(0x15b)](){const _0x4ff4c4=_0x3721df;this[_0x4ff4c4(0xc7)](),this[_0x4ff4c4(0x18e)]=null,this[_0x4ff4c4(0xf1)]=null,this[_0x4ff4c4(0x29f)]=-0x1,this['_draggingConnectorId']=null;}[_0x3721df(0x1ef)](){const _0x511e83=_0x3721df;return this[_0x511e83(0xf1)]===null||this[_0x511e83(0x29f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x511e83(0x29f)]};}[_0x3721df(0x231)](_0x1ecb57){const _0xa51d09=_0x3721df;let _0xdc0932=this[_0xa51d09(0x212)][_0xa51d09(0x28e)](this['_unitId'],this[_0xa51d09(0x113)]);for(let _0x45af60 of Object[_0xa51d09(0x2e0)](_0xdc0932)){if(_0x45af60===this[_0xa51d09(0xe1)]||_0xdc0932[_0x45af60][_0xa51d09(0x132)]!==_0x91d30f[_0xa51d09(0x27a)])continue;let _0x46f16c=this[_0xa51d09(0x1a7)][_0xa51d09(0xef)](this['_unitId'],this[_0xa51d09(0x113)],_0x45af60);if(!_0x46f16c||_0x51a857(_0x46f16c[_0xa51d09(0x210)]())||_0x46f16c['getConnectionSiteList']()['length']===0x0||!this[_0xa51d09(0x18e)])continue;let _0x3d0ddc=_0xc0766c({'unitId':this[_0xa51d09(0x255)],'subUnitId':this['_subUnitId'],'drawingId':_0x45af60}),_0x169ab4=this[_0xa51d09(0x18e)][_0xa51d09(0xc2)](_0x3d0ddc);if(!_0x169ab4)continue;let {left:_0x3b5cce,top:_0x443759,width:_0x13aa6c,height:_0x54f6ab}=_0x169ab4[_0xa51d09(0xb0)](),_0x53f45f=_0x3b5cce+_0x13aa6c/0x2,_0x140ec1=_0x443759+_0x54f6ab/0x2,_0x1bb031=_0x169ab4[_0xa51d09(0x288)][_0xa51d09(0x2fa)](),_0xc064cf=new _0x3bd327([_0x1bb031[0x0],_0x1bb031[0x1],_0x1bb031[0x2],_0x1bb031[0x3],_0x53f45f,_0x140ec1]),_0x1c11f9=_0x169ab4[_0xa51d09(0x232)](),_0x23c2fc=(_0x169ab4['isInGroup']&&(_0x1c11f9==null?void 0x0:_0x1c11f9['classType'])===_0x34cfe5[_0xa51d09(0x137)]?_0x1c11f9[_0xa51d09(0x13c)]['multiply'](_0xc064cf):_0xc064cf)['invert']()[_0xa51d09(0xfa)](_0x1ecb57),_0x409b51=_0x13aa6c/0x2,_0x2ccf3d=_0x54f6ab/0x2;if(_0x23c2fc['x']>=-_0x409b51-0x5&&_0x23c2fc['x']<=_0x409b51+0x5&&_0x23c2fc['y']>=-_0x2ccf3d-0x5&&_0x23c2fc['y']<=_0x2ccf3d+0x5)return{'shapeId':_0x45af60,'shapeModel':_0x46f16c};}return null;}[_0x3721df(0x1d8)](_0x2ed362,_0x2d6d4e){const _0x2087e5=_0x3721df;if(!this['_currentScene'])return;let _0x25c747=_0xc0766c({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x2ed362}),_0x214783=this[_0x2087e5(0x18e)][_0x2087e5(0xc2)](_0x25c747);if(!_0x214783)return;let {left:_0x49fca6,top:_0x36660f,width:_0x3debbf,height:_0x205931}=_0x214783[_0x2087e5(0xb0)](),_0x2e9d85=_0x49fca6+_0x3debbf/0x2,_0x3ab772=_0x36660f+_0x205931/0x2,_0x378061=_0x214783['transform'][_0x2087e5(0x2fa)](),_0x3c4a2e=new _0x3bd327([_0x378061[0x0],_0x378061[0x1],_0x378061[0x2],_0x378061[0x3],_0x2e9d85,_0x3ab772]),_0x5c80a7=_0x214783['getParent'](),_0x3945e6=_0x214783[_0x2087e5(0x26b)]&&(_0x5c80a7==null?void 0x0:_0x5c80a7[_0x2087e5(0xe7)])===_0x34cfe5['GROUP']?_0x5c80a7[_0x2087e5(0x13c)][_0x2087e5(0xfb)](_0x3c4a2e):_0x3c4a2e;_0x2d6d4e[_0x2087e5(0x229)]({'width':_0x3debbf,'height':_0x205931});let _0xad7f1=_0x2d6d4e['getConnectionSiteList']();for(let _0x53f5b6 of _0xad7f1){let _0x44f5fd=_0x53f5b6['x']-_0x3debbf/0x2,_0x172e13=_0x53f5b6['y']-_0x205931/0x2,_0x53fbfc=_0x3945e6[_0x2087e5(0xfa)]({'x':_0x44f5fd,'y':_0x172e13}),_0x267d35=_0x53fbfc['x'],_0x26dbf9=_0x53fbfc['y'],_0x10ff14=new or(_0x2087e5(0xfd)+_0x2ed362+'-'+_0x53f5b6[_0x2087e5(0x1f5)],{'left':_0x267d35-_0x170bf6['cxnPointRadius'],'top':_0x26dbf9-_0x170bf6[_0x2087e5(0xc5)],'targetShapeId':_0x2ed362,'cxnIndex':_0x53f5b6[_0x2087e5(0x1f5)],'unitId':this[_0x2087e5(0x255)],'subUnitId':this['_subUnitId'],'width':_0x170bf6['cxnPointRadius']*0x2,'height':_0x170bf6[_0x2087e5(0xc5)]*0x2,'zIndex':_0x1484b2+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x2087e5(0x1d2)](_0x10ff14),this[_0x2087e5(0x18e)][_0x2087e5(0x170)](_0x10ff14,_0x1484b2+0x2);}}['_findNearestConnectionSite'](_0x1ac533){const _0x4ff94d=_0x3721df;let _0x4e0137=null,_0x431d98=0x1/0x0,_0x7d6604=null;for(let _0x49c642 of this[_0x4ff94d(0x305)]){let _0x295a75=_0x49c642[_0x4ff94d(0x207)]+_0x170bf6[_0x4ff94d(0xc5)],_0xda888=_0x49c642[_0x4ff94d(0x2b8)]+_0x170bf6['cxnPointRadius'],_0x2c50a2=_0x1ac533['x']-_0x295a75,_0x3aa530=_0x1ac533['y']-_0xda888,_0x574ebd=Math['sqrt'](_0x2c50a2*_0x2c50a2+_0x3aa530*_0x3aa530);_0x574ebd<_0x431d98&&(_0x431d98=_0x574ebd,_0x4e0137=_0x49c642,_0x7d6604={'x':_0x295a75,'y':_0xda888});}let _0x26800b=_0x431d98<=0xa&&_0x4e0137?_0x4e0137['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x26800b!==this[_0x4ff94d(0x29f)]){for(let _0x5712eb of this[_0x4ff94d(0x305)]){let _0xc72c4e=_0x5712eb[_0x4ff94d(0x14d)]();_0x5712eb[_0x4ff94d(0x2a4)](_0xc72c4e[_0x4ff94d(0x103)]===_0x26800b);}this[_0x4ff94d(0x29f)]=_0x26800b;}if(_0x431d98<=0xa&&_0x4e0137&&_0x7d6604){let _0x4f7dfb=_0x4e0137['getConnectionInfo'](),_0x43e370=this['_getConnectionSiteAngle'](_0x4f7dfb[_0x4ff94d(0x1bf)],_0x4f7dfb[_0x4ff94d(0x103)]);return{'shapeId':_0x4f7dfb[_0x4ff94d(0x1bf)],'cxnIndex':_0x4f7dfb[_0x4ff94d(0x103)],'unitId':_0x4f7dfb[_0x4ff94d(0xe5)],'subUnitId':_0x4f7dfb[_0x4ff94d(0x183)],'worldPoint':_0x7d6604,'angle':_0x43e370};}return null;}[_0x3721df(0x2b2)](_0x2cc287,_0x1d6a50){const _0x45fc7e=_0x3721df;let _0x157123=this['_sheetsShapeService'][_0x45fc7e(0xef)](this[_0x45fc7e(0x255)],this[_0x45fc7e(0x113)],_0x2cc287);if(!_0x157123)return 0x0;let _0x52d183=this[_0x45fc7e(0x212)][_0x45fc7e(0x22d)]({'unitId':this[_0x45fc7e(0x255)],'subUnitId':this[_0x45fc7e(0x113)],'drawingId':_0x2cc287});if(!(_0x52d183!=null&&_0x52d183[_0x45fc7e(0x288)]))return 0x0;let {width:_0xeb7d8d=0x0,height:_0xe933bc=0x0,flipX:_0x5aa5c8=!0x1,flipY:_0x11cacd=!0x1}=_0x52d183['transform'];_0x157123[_0x45fc7e(0x229)]({'width':_0xeb7d8d,'height':_0xe933bc});let _0x54a424=_0x157123['getConnectionSiteList']()[_0x45fc7e(0x2a0)](_0x299be6=>_0x299be6[_0x45fc7e(0x1f5)]===_0x1d6a50);if(!_0x54a424)return 0x0;let _0x28f54a=_0x54a424[_0x45fc7e(0x224)]/0xea60;return _0x5aa5c8&&(_0x28f54a=0xb4-_0x28f54a),_0x11cacd&&(_0x28f54a=-_0x28f54a),_0x28f54a=(_0x28f54a%0x168+0x168)%0x168,_0x28f54a;}['_clearConnectionSites'](){const _0x5a430d=_0x3721df;for(let _0x1885e3 of this['_connectionSiteObjects'])_0x1885e3[_0x5a430d(0x250)]();this['_connectionSiteObjects']=[],this[_0x5a430d(0x29f)]=-0x1;}[_0x3721df(0x250)](){const _0xf6528e=_0x3721df;this[_0xf6528e(0xc7)](),super['dispose']();}};sr=Y([J(0x1,_0x44ac9c(_0x3ab9c0)),J(0x2,_0x44ac9c(_0x30b385)),J(0x3,_0x44ac9c(_0x2318dd))],sr);let cr=class extends _0x3ff889{constructor(_0x3c46b5,_0x4292d2,_0x1bda53,_0x698926,_0x4b1983){const _0x45b13f=_0x3721df;super(),this['_sheetSkeletonService']=_0x3c46b5,this['_sheetClipboardService']=_0x4292d2,this[_0x45b13f(0x2de)]=_0x1bda53,this['_shapeService']=_0x698926,this[_0x45b13f(0xac)]=_0x4b1983,q(this,_0x45b13f(0x248),void 0x0),this[_0x45b13f(0xd1)](),this[_0x45b13f(0x1c4)]();}get[_0x3721df(0x138)](){const _0x26192f=_0x3721df;return this[_0x26192f(0x2de)]['getFocusDrawings']();}[_0x3721df(0x1c4)](){const _0x55d314=_0x3721df;this['_groupCopyPasteController'][_0x55d314(0xdd)](({fromUnitId:_0x7782a2,fromSubUnitId:_0x4ac19b,toUnitId:_0x3baf68,toSubUnitId:_0x4f8d4e,idMap:_0x3b8ccc})=>{const _0x4e6009=_0x55d314;let _0x9c6a9a=[],_0x3d58a6=[];for(let [_0x3f1286,_0x34f440]of _0x3b8ccc[_0x4e6009(0x10b)]()){let _0x4d1f02=this['_shapeService'][_0x4e6009(0xef)](_0x7782a2,_0x4ac19b,_0x3f1286);if(!_0x4d1f02)continue;let _0x5e21fe=_0x4d1f02[_0x4e6009(0x210)](),_0x5afbec=JSON[_0x4e6009(0x2c5)](JSON[_0x4e6009(0x252)](_0x4d1f02[_0x4e6009(0x21d)]()));if(_0x5afbec[_0x4e6009(0x184)]){var _0x2292a6,_0x5751e5;let _0x323cf6=(_0x2292a6=_0x5afbec[_0x4e6009(0x184)]['from'])==null?void 0x0:_0x2292a6[_0x4e6009(0x1bf)],_0x659997=(_0x5751e5=_0x5afbec[_0x4e6009(0x184)]['to'])==null?void 0x0:_0x5751e5[_0x4e6009(0x1bf)],_0x3a0fa0=_0x323cf6?_0x3b8ccc[_0x4e6009(0x238)](_0x323cf6):!0x0,_0x57e220=_0x659997?_0x3b8ccc[_0x4e6009(0x238)](_0x659997):!0x0;_0x3a0fa0&&_0x323cf6&&_0x5afbec[_0x4e6009(0x184)][_0x4e6009(0x28c)]?_0x5afbec['relation'][_0x4e6009(0x28c)]={..._0x5afbec[_0x4e6009(0x184)][_0x4e6009(0x28c)],'shapeId':_0x3b8ccc[_0x4e6009(0x2f5)](_0x323cf6)}:_0x5afbec[_0x4e6009(0x184)][_0x4e6009(0x28c)]=void 0x0,_0x57e220&&_0x659997&&_0x5afbec['relation']['to']?_0x5afbec['relation']['to']={..._0x5afbec['relation']['to'],'shapeId':_0x3b8ccc['get'](_0x659997)}:_0x5afbec[_0x4e6009(0x184)]['to']=void 0x0;}_0x9c6a9a[_0x4e6009(0x1d2)]({'id':_0x462d48['id'],'params':{'unitId':_0x3baf68,'subUnitId':_0x4f8d4e,'shapeId':_0x34f440,'shapeType':_0x5e21fe,'shapeData':_0x5afbec}}),_0x3d58a6[_0x4e6009(0x1d2)]({'id':_0x25666b['id'],'params':{'unitId':_0x3baf68,'subUnitId':_0x4f8d4e,'shapeId':_0x34f440}});}return{'redos':_0x9c6a9a,'undos':_0x3d58a6};});}['_initCopyPaste'](){const _0x523977=_0x3721df;this[_0x523977(0x23d)](this[_0x523977(0x168)][_0x523977(0x158)]({'id':_0x523977(0x12f),'onBeforeCopy':(_0x2de7d7,_0x3f1612,_0x55a5be,_0x357dbc)=>{const _0x53f2f5=_0x523977;this[_0x53f2f5(0x248)]=null;let _0x3b8475=this['_focusedDrawings'];if(_0x3b8475[_0x53f2f5(0x19e)]){let _0x5afa86=_0x3b8475[_0x53f2f5(0x10d)](_0xe7ab78=>_0xe7ab78[_0x53f2f5(0x132)]===_0x91d30f[_0x53f2f5(0x27a)]);if(_0x5afa86[_0x53f2f5(0x19e)]===0x0)return;this[_0x53f2f5(0x248)]={'unitId':_0x2de7d7,'subUnitId':_0x3f1612,'copyType':_0x357dbc,'drawings':_0x5afa86};}else this[_0x53f2f5(0x119)](_0x2de7d7,_0x3f1612,_0x55a5be,_0x357dbc);},'onPasteCells':(_0x6003e6,_0xbbb405,_0x18afc1,_0x5678a2)=>{const _0xf001e1=_0x523977;if(!this[_0xf001e1(0x248)])return{'redos':[],'undos':[]};let {pasteType:_0x22a366}=_0x5678a2;return _0x22a366===_0x1bcd5c[_0xf001e1(0x148)]?this[_0xf001e1(0x2c9)](_0xbbb405,this[_0xf001e1(0x248)][_0xf001e1(0x118)]===_0x4ef22b[_0xf001e1(0x1b1)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x300451=>this[_0x523977(0x248)]?this[_0x523977(0x2c9)](_0x300451,this[_0x523977(0x248)][_0x523977(0x118)]===_0x4ef22b['CUT']):{'redos':[],'undos':[]}}));}[_0x3721df(0x119)](_0x377338,_0x345c47,_0x27a04a,_0x3829ad){const _0x3bde0b=_0x3721df;let _0x40de61=this[_0x3bde0b(0x206)][_0x3bde0b(0xf0)](_0x377338,_0x345c47);if(!_0x40de61)return;let _0x29c926=_0x2a0478(_0x40de61,_0x27a04a);if(!_0x29c926)return;let {startX:_0x3bb285,endX:_0x5d74b5,startY:_0x2de35a,endY:_0x23cd12}=_0x29c926,_0x388f18=this[_0x3bde0b(0x2de)][_0x3bde0b(0x28e)](_0x377338,_0x345c47),_0x32e94d=this[_0x3bde0b(0x138)][_0x3bde0b(0x268)]();for(let [_0xaac4de,_0x5bec15]of Object[_0x3bde0b(0x10b)](_0x388f18)){if(_0x5bec15[_0x3bde0b(0x132)]!==_0x91d30f['DRAWING_SHAPE'])continue;let {transform:_0x160648}=_0x5bec15;if(!_0x160648)continue;let {left:_0x15784c=0x0,top:_0x22c3e3=0x0,width:_0x493653=0x0,height:_0x36ff09=0x0}=_0x160648;_0x3bb285<=_0x15784c&&_0x5d74b5>=_0x15784c+_0x493653&&_0x2de35a<=_0x22c3e3&&_0x23cd12>=_0x22c3e3+_0x36ff09&&_0x32e94d[_0x3bde0b(0x1d2)](_0x5bec15);}_0x32e94d[_0x3bde0b(0x19e)]>0x0&&(this[_0x3bde0b(0x248)]={'unitId':_0x377338,'subUnitId':_0x345c47,'copyType':_0x3829ad,'copyRange':_0x27a04a,'drawings':_0x32e94d});}[_0x3721df(0x2c9)](_0x4010e0,_0x11fd76){const _0x1c36c6=_0x3721df;let {unitId:_0x2fe737,subUnitId:_0x829893,range:_0x2069c9}=_0x4010e0,_0x199c91=this['_sheetSkeletonService']['getSkeleton'](_0x2fe737,_0x829893);if(!_0x199c91)return{'redos':[],'undos':[]};let _0x265160=_0x579c9e(_0x2069c9),{unitId:_0x324052,subUnitId:_0x41af70,copyRange:_0x598ee4,drawings:_0x48020f}=this[_0x1c36c6(0x248)],_0x546d44=this[_0x1c36c6(0x206)][_0x1c36c6(0xf0)](_0x324052,_0x41af70);if(!_0x546d44)return{'redos':[],'undos':[]};let _0xdb440c;if(!_0x598ee4){let _0x417059=0x1/0x0,_0xd72f80=0x1/0x0;for(let _0x546b7b of _0x48020f){var _0x25c34d;let {left:_0x5530e8=0x0,top:_0x21ea50=0x0}=(_0x25c34d=_0x546b7b[_0x1c36c6(0x288)])==null?{}:_0x25c34d;_0x5530e8<_0x417059&&(_0x417059=_0x5530e8),_0x21ea50<_0xd72f80&&(_0xd72f80=_0x21ea50);}_0x417059!==0x1/0x0&&_0xd72f80!==0x1/0x0&&(_0xdb440c={'left':_0x417059,'top':_0xd72f80});}let _0x20b7b8=new Map();if(!_0x11fd76){for(let _0x2f2dd2 of _0x48020f)_0x20b7b8[_0x1c36c6(0x1eb)](_0x2f2dd2['drawingId'],_0x4b0b19());}let _0x21df5c=[],_0x5891bb=[];for(let _0x280d10 of _0x48020f){let {drawingId:_0x186847,transform:_0x3a1f1c,sheetTransform:_0x40ce71}=_0x280d10;if(!_0x3a1f1c||!_0x40ce71)continue;let _0x5e9ede=this[_0x1c36c6(0x23a)]({'transform':_0x3a1f1c,'sheetTransform':_0x40ce71},{'skeleton':_0x546d44,'range':_0x598ee4},{'skeleton':_0x199c91,'range':_0x265160},_0xdb440c);if(_0x11fd76){let {redos:_0x554e39,undos:_0x78ffe0}=this[_0x1c36c6(0x283)]({'fromUnitId':_0x324052,'fromSubUnitId':_0x41af70,'toUnitId':_0x2fe737,'toSubUnitId':_0x829893,'drawing':_0x280d10,'newTransforms':_0x5e9ede});_0x21df5c['push'](..._0x554e39),_0x5891bb[_0x1c36c6(0x1d2)](..._0x78ffe0);continue;}let {redos:_0x151aab,undos:_0x18071e}=this['_generateCopyPasteMutations']({'toUnitId':_0x2fe737,'toSubUnitId':_0x829893,'drawing':_0x280d10,'newTransforms':_0x5e9ede,'newDrawingId':_0x20b7b8[_0x1c36c6(0x2f5)](_0x186847),'idMap':_0x20b7b8});_0x21df5c['push'](..._0x151aab),_0x5891bb[_0x1c36c6(0x1d2)](..._0x18071e);}return{'redos':_0x21df5c,'undos':_0x5891bb};}[_0x3721df(0x283)](_0x34953b){const _0xd0e46a=_0x3721df;let {fromUnitId:_0x1bf62e,fromSubUnitId:_0x2b77ef,toUnitId:_0x2fac04,toSubUnitId:_0x5579bb,drawing:_0x3f8b9e,newTransforms:_0x392776}=_0x34953b,_0x394cb5={..._0x3f8b9e,'unitId':_0x2fac04,'subUnitId':_0x5579bb,'transform':_0x392776[_0xd0e46a(0x288)],'sheetTransform':_0x392776['sheetTransform']};if(_0x2fac04===_0x1bf62e&&_0x5579bb===_0x2b77ef){let {redo:_0x260958,undo:_0x2293d6,objects:_0x5b6ed4}=this[_0xd0e46a(0x2de)][_0xd0e46a(0x20b)]([_0x394cb5]);return{'redos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9['UPDATE'],'op':_0x260958,'objects':_0x5b6ed4}}],'undos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9[_0xd0e46a(0xc0)],'op':_0x2293d6,'objects':_0x5b6ed4}}]};}else{let _0x4796b2=this[_0xd0e46a(0x2de)][_0xd0e46a(0x194)]([_0x3f8b9e]),_0x26f72b=this[_0xd0e46a(0x2de)][_0xd0e46a(0x1cf)]([_0x394cb5]),_0x4171c0=this['_shapeService'][_0xd0e46a(0xef)](_0x3f8b9e['unitId'],_0x3f8b9e[_0xd0e46a(0x183)],_0x3f8b9e[_0xd0e46a(0x121)]);if(!_0x4171c0)return{'redos':[],'undos':[]};let _0x44d564=_0x4171c0['getShapeType'](),_0x1a4a4b=JSON[_0xd0e46a(0x2c5)](JSON[_0xd0e46a(0x252)](_0x4171c0['getShapeData']()));return{'redos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'type':_0x19dac9[_0xd0e46a(0x16f)],'op':_0x4796b2[_0xd0e46a(0x1bd)],'objects':_0x4796b2[_0xd0e46a(0x17d)]}},{'id':_0x25666b['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'shapeId':_0x3f8b9e['drawingId']}},{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9[_0xd0e46a(0x154)],'op':_0x26f72b[_0xd0e46a(0x1bd)],'objects':_0x26f72b[_0xd0e46a(0x17d)]}},{'id':_0x462d48['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'shapeId':_0x3f8b9e[_0xd0e46a(0x121)],'shapeType':_0x44d564,'shapeData':_0x1a4a4b}}],'undos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'type':_0x19dac9['INSERT'],'op':_0x4796b2[_0xd0e46a(0xaf)],'objects':_0x4796b2[_0xd0e46a(0x17d)]}},{'id':_0x462d48['id'],'params':{'unitId':_0x1bf62e,'subUnitId':_0x2b77ef,'shapeId':_0x3f8b9e['drawingId'],'shapeType':_0x44d564,'shapeData':_0x1a4a4b}},{'id':_0x86cf9f['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'type':_0x19dac9[_0xd0e46a(0x16f)],'op':_0x26f72b['undo'],'objects':_0x26f72b[_0xd0e46a(0x17d)]}},{'id':_0x25666b['id'],'params':{'unitId':_0x2fac04,'subUnitId':_0x5579bb,'shapeId':_0x3f8b9e[_0xd0e46a(0x121)]}}]};}}[_0x3721df(0xee)](_0x1fdcdb){const _0x4bfefe=_0x3721df;let {toUnitId:_0x255131,toSubUnitId:_0x5775a6,drawing:_0x416d86,newTransforms:_0x39746d,newDrawingId:_0x17bd2d,idMap:_0xd2bbb1}=_0x1fdcdb,_0x31740d={..._0x416d86,'unitId':_0x255131,'subUnitId':_0x5775a6,'drawingId':_0x17bd2d,'transform':_0x39746d['transform'],'sheetTransform':_0x39746d['sheetTransform']},{redo:_0x232a28,undo:_0x51873a,objects:_0x3aa9b4}=this[_0x4bfefe(0x2de)][_0x4bfefe(0x1cf)]([_0x31740d]),_0x450a6a=this['_shapeService'][_0x4bfefe(0xef)](_0x416d86[_0x4bfefe(0xe5)],_0x416d86[_0x4bfefe(0x183)],_0x416d86[_0x4bfefe(0x121)]);if(!_0x450a6a)return{'redos':[],'undos':[]};let _0x445e80=_0x450a6a[_0x4bfefe(0x210)](),_0x45eb6a=JSON[_0x4bfefe(0x2c5)](JSON[_0x4bfefe(0x252)](_0x450a6a['getShapeData']()));if(_0x45eb6a['relation']){var _0x267cde,_0x36fc84;let _0x268cf2=(_0x267cde=_0x45eb6a[_0x4bfefe(0x184)][_0x4bfefe(0x28c)])==null?void 0x0:_0x267cde[_0x4bfefe(0x1bf)],_0x1221ab=(_0x36fc84=_0x45eb6a['relation']['to'])==null?void 0x0:_0x36fc84['shapeId'],_0x263422=_0x268cf2?_0xd2bbb1[_0x4bfefe(0x238)](_0x268cf2):!0x0,_0x3178ee=_0x1221ab?_0xd2bbb1['has'](_0x1221ab):!0x0;_0x263422&&_0x268cf2&&_0x45eb6a[_0x4bfefe(0x184)][_0x4bfefe(0x28c)]?_0x45eb6a['relation'][_0x4bfefe(0x28c)]={..._0x45eb6a[_0x4bfefe(0x184)][_0x4bfefe(0x28c)],'shapeId':_0xd2bbb1['get'](_0x268cf2)}:_0x45eb6a[_0x4bfefe(0x184)]['from']=void 0x0,_0x3178ee&&_0x1221ab&&_0x45eb6a[_0x4bfefe(0x184)]['to']?_0x45eb6a['relation']['to']={..._0x45eb6a[_0x4bfefe(0x184)]['to'],'shapeId':_0xd2bbb1['get'](_0x1221ab)}:_0x45eb6a[_0x4bfefe(0x184)]['to']=void 0x0;}return{'redos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'type':_0x19dac9[_0x4bfefe(0x154)],'op':_0x232a28,'objects':_0x3aa9b4}},{'id':_0x462d48['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'shapeId':_0x17bd2d,'shapeType':_0x445e80,'shapeData':_0x45eb6a}}],'undos':[{'id':_0x86cf9f['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'type':_0x19dac9[_0x4bfefe(0x16f)],'op':_0x51873a,'objects':_0x3aa9b4}},{'id':_0x25666b['id'],'params':{'unitId':_0x255131,'subUnitId':_0x5775a6,'shapeId':_0x17bd2d}}]};}['_updateTransform'](_0x1e1d93,_0x3118cf,_0x340e48,_0x290d83){const _0x4b0426=_0x3721df;var _0x4d6b58;let {range:_0x37e5a1,skeleton:_0x355cc3}=_0x3118cf,{range:_0x525d0c,skeleton:_0x1e829a}=_0x340e48,{transform:_0x2c4f52,sheetTransform:_0x553c2c}=_0x1e1d93,_0x3ce39c={..._0x2c4f52};if(_0x37e5a1){let _0x19ccbd=_0x2a0478(_0x355cc3,_0x37e5a1),_0x47468e=_0x2a0478(_0x1e829a,_0x525d0c);if(_0x19ccbd&&_0x47468e){var _0x31af8f,_0x82368;let _0x4694a3=_0x47468e['startX']-_0x19ccbd[_0x4b0426(0x2fc)],_0x3417f1=_0x47468e[_0x4b0426(0x301)]-_0x19ccbd[_0x4b0426(0x301)];_0x3ce39c[_0x4b0426(0x207)]=((_0x31af8f=_0x3ce39c[_0x4b0426(0x207)])==null?0x0:_0x31af8f)+_0x4694a3,_0x3ce39c[_0x4b0426(0x2b8)]=((_0x82368=_0x3ce39c[_0x4b0426(0x2b8)])==null?0x0:_0x82368)+_0x3417f1;}}else{let _0x4fe8da=_0x2a0478(_0x1e829a,_0x525d0c);if(_0x290d83&&_0x4fe8da){var _0x506f6c,_0x2755a3;let _0x5c8c9b=((_0x506f6c=_0x3ce39c['left'])==null?0x0:_0x506f6c)-_0x290d83[_0x4b0426(0x207)],_0xad4388=((_0x2755a3=_0x3ce39c[_0x4b0426(0x2b8)])==null?0x0:_0x2755a3)-_0x290d83[_0x4b0426(0x2b8)];_0x3ce39c[_0x4b0426(0x207)]=_0x4fe8da[_0x4b0426(0x2fc)]+_0x5c8c9b,_0x3ce39c[_0x4b0426(0x2b8)]=_0x4fe8da['startY']+_0xad4388;}else _0x3ce39c[_0x4b0426(0x207)]=_0x4fe8da==null?void 0x0:_0x4fe8da[_0x4b0426(0x2fc)],_0x3ce39c[_0x4b0426(0x2b8)]=_0x4fe8da==null?void 0x0:_0x4fe8da[_0x4b0426(0x301)];}return{'transform':_0x3ce39c,'sheetTransform':(_0x4d6b58=_0x31cd08(_0x3ce39c,_0x1e829a))==null?_0x553c2c:_0x4d6b58};}};cr=Y([J(0x0,_0x44ac9c(_0x534dab)),J(0x1,_0x44ac9c(_0x3bfdf3)),J(0x2,_0x44ac9c(_0x1769d9)),J(0x3,_0x44ac9c(_0x2318dd)),J(0x4,_0x44ac9c(_0x3495cb))],cr);var lr=class extends _0x39ac3d{constructor(_0x37613b,_0x46aa3a){const _0x3491af=_0x3721df;super(_0x37613b,_0x46aa3a),q(this,_0x3491af(0x176),null),q(this,_0x3491af(0x14c),null),q(this,_0x3491af(0x255),null),q(this,'_subUnitId',null),q(this,_0x3491af(0x299),!0x1),_0x46aa3a&&this[_0x3491af(0x295)](_0x46aa3a);}[_0x3721df(0x245)](){const _0x10c971=_0x3721df;return{'unitId':this[_0x10c971(0x255)],'subUnitId':this[_0x10c971(0x113)],'drawingId':this[_0x10c971(0x176)]};}[_0x3721df(0x295)](_0x3f6353){const _0x55cc1a=_0x3721df;_0x3f6353[_0x55cc1a(0x1bf)]!==void 0x0&&(this['_shapeId']=_0x3f6353[_0x55cc1a(0x1bf)]),_0x3f6353[_0x55cc1a(0xe5)]!==void 0x0&&(this['_unitId']=_0x3f6353[_0x55cc1a(0xe5)]),_0x3f6353['subUnitId']!==void 0x0&&(this[_0x55cc1a(0x113)]=_0x3f6353[_0x55cc1a(0x183)]),_0x3f6353[_0x55cc1a(0x228)]!==void 0x0&&(this[_0x55cc1a(0x299)]=_0x3f6353[_0x55cc1a(0x228)]),this[_0x55cc1a(0x2d2)]({'width':_0x3f6353['width'],'height':_0x3f6353[_0x55cc1a(0x193)]});}[_0x3721df(0x16c)](_0x115c6b){const _0x7fec50=_0x3721df;_0x2cd80f[_0x7fec50(0x185)](_0x115c6b,{'radius':_0x170bf6[_0x7fec50(0xc5)],'fill':_0x170bf6[_0x7fec50(0x192)],'stroke':_0x170bf6[_0x7fec50(0x106)],'strokeWidth':_0x170bf6[_0x7fec50(0x2ca)],'evented':!0x0});}};let ur=class extends _0x3ff889{constructor(_0x2946cf,_0x1855ce,_0x3e2939,_0x434063,_0x124653,_0x186120,_0x1717df,_0x32b83e){const _0xe72ba5=_0x3721df;super(),this['_context']=_0x2946cf,this[_0xe72ba5(0x1fc)]=_0x1855ce,this[_0xe72ba5(0x28f)]=_0x3e2939,this[_0xe72ba5(0x212)]=_0x434063,this[_0xe72ba5(0x205)]=_0x124653,this['_sheetsShapeService']=_0x186120,this[_0xe72ba5(0x125)]=_0x1717df,this[_0xe72ba5(0x1f3)]=_0x32b83e,q(this,_0xe72ba5(0x12e),void 0x0),q(this,'_unitId',void 0x0),q(this,_0xe72ba5(0x113),void 0x0),q(this,_0xe72ba5(0x2e1),[]),q(this,_0xe72ba5(0x30b),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0xe72ba5(0x25f),void 0x0),q(this,_0xe72ba5(0x1ff),!0x1),q(this,_0xe72ba5(0x162),!0x1),q(this,'_hasReset',!0x1),q(this,_0xe72ba5(0x188),void 0x0),q(this,_0xe72ba5(0x117),void 0x0),q(this,_0xe72ba5(0x2ec),null),this['_initialize']();}[_0x3721df(0x14a)](){const _0x22a1d7=_0x3721df;this[_0x22a1d7(0x189)](),this[_0x22a1d7(0x2fb)]();}[_0x3721df(0x159)](){const _0xcfb109=_0x3721df;if(!this[_0xcfb109(0x255)]||!this[_0xcfb109(0x113)]||!this[_0xcfb109(0x12e)])return;let _0xa7f673={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0x47955a}=this[_0xcfb109(0x212)][_0xcfb109(0x22d)](_0xa7f673);if(_0x47955a)return{'left':_0x47955a['left']||0x0,'top':_0x47955a[_0xcfb109(0x2b8)]||0x0,'width':_0x47955a[_0xcfb109(0x19c)]||0x0,'height':_0x47955a[_0xcfb109(0x193)]||0x0,'flipX':_0x47955a[_0xcfb109(0x124)]||!0x1,'flipY':_0x47955a['flipY']||!0x1,'angle':_0x47955a[_0xcfb109(0x300)]};}[_0x3721df(0xe8)](){const _0xeaf0aa=_0x3721df;if(this[_0xeaf0aa(0x255)]===void 0x0||this[_0xeaf0aa(0x113)]===void 0x0||this[_0xeaf0aa(0x12e)]===void 0x0)return;let _0x29e176=this[_0xeaf0aa(0x28f)]['getRenderById'](this['_unitId']);if(!_0x29e176||!_0x29e176['with'](_0x39e39b)[_0xeaf0aa(0x18f)]())return;let {scene:_0x2bbc00}=_0x29e176,_0x419107=this[_0xeaf0aa(0x159)]();if(!_0x419107)return;let _0x56f564=this[_0xeaf0aa(0x1a7)][_0xeaf0aa(0xef)](this['_unitId'],this[_0xeaf0aa(0x113)],this[_0xeaf0aa(0x12e)]);if(!_0x56f564||!_0x51a857(_0x56f564[_0xeaf0aa(0x210)]()))return;let _0x31e34d=_0x56f564[_0xeaf0aa(0x1b9)]();if(_0x31e34d[_0xeaf0aa(0x19e)]<0x2)return;let _0x324da2=new _0x70c837(_0x419107),_0x2e9459=_0x31e34d[0x0],_0x41ec86=_0x31e34d[_0x31e34d[_0xeaf0aa(0x19e)]-0x1],_0x30c8d0=_0x324da2[_0xeaf0aa(0x2e3)](_0x2e9459),_0x322c97=_0x324da2[_0xeaf0aa(0x2e3)](_0x41ec86);this['_addShapeConnectorHandlerObject'](_0x2bbc00,{..._0x30c8d0},!0x0),this[_0xeaf0aa(0x1a4)](_0x2bbc00,{..._0x322c97},!0x1);}[_0x3721df(0x1a4)](_0x166d01,_0x422365,_0x12de25){const _0x49bd60=_0x3721df;if(this['_activeShapeId']===void 0x0||this[_0x49bd60(0x255)]===void 0x0||this[_0x49bd60(0x113)]===void 0x0)return;let _0x1959fd=_0x49bd60(0x2b0)+this[_0x49bd60(0x255)]+'-'+this['_subUnitId']+'-'+this['_activeShapeId']+'-'+(_0x12de25?_0x49bd60(0x2f3):'end'),_0x1b3399=_0x166d01[_0x49bd60(0xc2)](_0x1959fd);if(_0x1b3399){_0x1b3399[_0x49bd60(0x2d2)]({'left':_0x422365['x']-_0x170bf6['cxnPointRadius'],'top':_0x422365['y']-_0x170bf6['cxnPointRadius']});return;}let _0x499d94=new lr(_0x1959fd,{'left':_0x422365['x']-_0x170bf6[_0x49bd60(0xc5)],'top':_0x422365['y']-_0x170bf6[_0x49bd60(0xc5)],'shapeId':this['_activeShapeId'],'unitId':this[_0x49bd60(0x255)],'subUnitId':this[_0x49bd60(0x113)],'isStartConnectorPoint':_0x12de25,'width':_0x170bf6[_0x49bd60(0xc5)]*0x2,'height':_0x170bf6[_0x49bd60(0xc5)]*0x2,'zIndex':_0x1484b2+0x1,'evented':!0x0});this['_connectorObjects'][_0x49bd60(0x1d2)](_0x499d94),this['_attachConnectorObjectEvent'](_0x499d94,_0x166d01,_0x12de25),_0x166d01[_0x49bd60(0x170)](_0x499d94,_0x1484b2+0x1);}['_getScrollInfo'](_0x2d2b1e,_0x18e082){const _0x27a588=_0x3721df;var _0x387b04;let _0x560ab3={'x':0x0,'y':0x0};if(!_0x2d2b1e||!_0x18e082)return _0x560ab3;let _0x4d7ed8=this[_0x27a588(0x28f)][_0x27a588(0x1f1)](_0x2d2b1e);if(!_0x4d7ed8||!_0x4d7ed8[_0x27a588(0x29b)](_0x39e39b)[_0x27a588(0xf0)](_0x18e082))return _0x560ab3;let _0x47c49b=_0x4d7ed8['with'](_0x4f30c1),_0x4b1f15=_0x47c49b==null?void 0x0:_0x47c49b[_0x27a588(0xd5)]();if(!_0x4b1f15)return _0x560ab3;let _0x3b4819=(_0x387b04=this['_univerInstanceService'][_0x27a588(0x201)](_0x2d2b1e))==null?void 0x0:_0x387b04[_0x27a588(0x24c)](_0x18e082);if(!_0x3b4819)return _0x560ab3;let _0x1148cf=_0x177de7(_0x4b1f15['sheetViewStartRow'],_0x4b1f15[_0x27a588(0xe4)],_0x4d7ed8[_0x27a588(0x223)],_0x3b4819);return _0x1148cf?{'x':_0x1148cf[_0x27a588(0x1b0)],'y':_0x1148cf[_0x27a588(0xad)]}:_0x560ab3;}['_getZoomRatio'](_0x57f387,_0x2f3425){const _0x1f50b8=_0x3721df;var _0x205be5,_0x1ae83b;let _0x10a09e=(_0x205be5=this[_0x1f50b8(0x205)][_0x1f50b8(0x201)](_0x57f387))==null?void 0x0:_0x205be5[_0x1f50b8(0x24c)](_0x2f3425);return(_0x1ae83b=_0x10a09e==null?void 0x0:_0x10a09e[_0x1f50b8(0x2da)]())==null?0x1:_0x1ae83b;}['_handleConnectorPointerUp'](_0x107c56,_0x49cbc3,_0x239f6b,_0x4c5461,_0x23ed09){const _0x1a0877=_0x3721df;this[_0x1a0877(0x188)]['unsubscribe'](),this[_0x1a0877(0x117)][_0x1a0877(0x1d0)](),this[_0x1a0877(0x125)][_0x1a0877(0x274)]();let _0x16b32f=this[_0x1a0877(0x2ec)];this[_0x1a0877(0x1f3)][_0x1a0877(0x15b)]();let _0x2591ab=this[_0x1a0877(0x18a)](this[_0x1a0877(0x255)],this[_0x1a0877(0x113)]),_0x181872=this[_0x1a0877(0x234)](this[_0x1a0877(0x255)],this[_0x1a0877(0x113)]),_0x41e314={'x':_0x239f6b['offsetX']/_0x181872+_0x2591ab['x'],'y':_0x239f6b[_0x1a0877(0x2e4)]/_0x181872+_0x2591ab['y']},_0x350fbf=_0x16b32f?_0x16b32f[_0x1a0877(0x1fd)]:_0x41e314,_0x15df73=_0x4c5461?this[_0x1a0877(0x25f)][_0x1a0877(0x1e0)]():this['_activeShapeModel'][_0x1a0877(0x12a)](),_0x438ffd=this['_activeShapeModel'][_0x1a0877(0x210)]();_0x15df73?this[_0x1a0877(0x2f2)](_0x15df73,_0x350fbf,_0x4c5461,_0x16b32f,_0x23ed09):this[_0x1a0877(0x23c)](_0x49cbc3,_0x350fbf,_0x4c5461,_0x16b32f,_0x23ed09,_0x438ffd),this['_isConnecting']=!0x1,this[_0x1a0877(0xf2)]=!0x1,this[_0x1a0877(0x2ec)]=null,_0x107c56['enableObjectsEvent']();}[_0x3721df(0x23c)](_0x29d057,_0x35913b,_0x2d4154,_0x2ab144,_0x16dfec,_0x396280){const _0x16374d=_0x3721df;let _0x13b52c=_0x396280===_0x56b767[_0x16374d(0x241)]||_0x396280===_0x56b767[_0x16374d(0xdc)],_0x1d25b5=_0x2d4154?_0x35913b:_0x29d057,_0x5f0e8b=_0x2d4154?_0x29d057:_0x35913b,_0x3263e2=this[_0x16374d(0x25f)][_0x16374d(0x1b9)](),_0x3e1fe3=_0x3bc6fd(this[_0x16374d(0x25f)][_0x16374d(0x210)]()),_0x32d248=_0x70c837[_0x16374d(0x218)](_0x3263e2,_0x3e1fe3),_0x4447de=_0x13b52c?_0x70c837[_0x16374d(0x23e)](_0x1d25b5,_0x5f0e8b):_0x70c837[_0x16374d(0x2d7)](_0x29d057,_0x35913b,_0x2d4154,_0x32d248);_0x2ab144?this[_0x16374d(0x254)](_0x4447de,_0x2ab144,_0x2d4154,_0x16dfec):this[_0x16374d(0x2e7)](_0x4447de,_0x16dfec);}[_0x3721df(0x2f2)](_0x404a9f,_0x49f3cc,_0x17f261,_0x416c00,_0x1efd85){const _0x21c8f5=_0x3721df;let _0x106d42=this[_0x21c8f5(0x227)](_0x404a9f);if(!_0x106d42)return;let _0x2f06e1=_0x416c00?_0x416c00['angle']:this[_0x21c8f5(0x1c8)](_0x106d42[_0x21c8f5(0x27f)],_0x49f3cc),_0x151fb7;if(_0x416c00){let _0x45561d=this[_0x21c8f5(0x212)][_0x21c8f5(0x22d)]({'unitId':_0x416c00[_0x21c8f5(0xe5)],'subUnitId':_0x416c00['subUnitId'],'drawingId':_0x416c00[_0x21c8f5(0x1bf)]});if(_0x45561d!=null&&_0x45561d['transform']){let {left:_0x124d5a=0x0,top:_0x2bb229=0x0,width:_0x396121=0x0,height:_0x277be6=0x0,angle:_0x5c38d7}=_0x45561d[_0x21c8f5(0x288)];_0x151fb7=_0x1218d5({'left':_0x124d5a,'top':_0x2bb229,'width':_0x396121,'height':_0x277be6},_0x5c38d7||0x0);}else _0x151fb7={'left':_0x49f3cc['x'],'top':_0x49f3cc['y'],'width':0x0,'height':0x0};}else _0x151fb7={'left':_0x49f3cc['x'],'top':_0x49f3cc['y'],'width':0x0,'height':0x0};let _0x35d60d={'point':_0x49f3cc,'angle':_0x2f06e1,'bounds':_0x151fb7},_0x2667aa=_0x17f261?_0x35d60d:_0x106d42,_0x4327da=_0x17f261?_0x106d42:_0x35d60d,_0x3d236a=this['_activeShapeModel'][_0x21c8f5(0x210)](),_0x1cc02f=_0x476f7c(_0x2667aa,_0x4327da,_0x3d236a);this[_0x21c8f5(0x25f)]['removeLinePoints']();let _0x1b772b=_0xa851c9(_0x1cc02f,_0x3d236a);_0x416c00?this[_0x21c8f5(0x1fe)](_0x1b772b,_0x416c00,_0x404a9f,_0x17f261,_0x1efd85):this[_0x21c8f5(0x127)](_0x1b772b,_0x404a9f,_0x17f261,_0x1efd85);}['_executeConnectionCommand'](_0x491f86,_0x35bee3,_0x574679,_0x5b45c8){const _0x87426d=_0x3721df;let _0x58d49d=this[_0x87426d(0x25f)]['getShapeData']()[_0x87426d(0x184)],_0x364d5d={..._0x58d49d},_0x49e6b9={'shapeId':_0x35bee3[_0x87426d(0x1bf)],'cxnIndex':_0x35bee3[_0x87426d(0x103)]};_0x574679?_0x364d5d[_0x87426d(0x28c)]=_0x49e6b9:_0x364d5d['to']=_0x49e6b9;let _0x16e3cb=this[_0x87426d(0x25f)][_0x87426d(0x210)](),_0x49139e=_0xa851c9(_0x491f86['worldPoints'],_0x16e3cb),_0x2411a8={'unitId':this[_0x87426d(0x255)],'subUnitId':this[_0x87426d(0x113)],'connectorShapeId':this['_activeShapeId'],'width':_0x491f86[_0x87426d(0x13a)]['width'],'height':_0x491f86[_0x87426d(0x13a)][_0x87426d(0x193)],'left':_0x491f86['worldRect'][_0x87426d(0x207)],'top':_0x491f86[_0x87426d(0x13a)][_0x87426d(0x2b8)],'flipX':_0x491f86['worldRect'][_0x87426d(0x124)]||!0x1,'flipY':_0x491f86[_0x87426d(0x13a)][_0x87426d(0x291)]||!0x1,'newAdjustValues':_0x49139e[_0x87426d(0x257)],'oldAdjustValues':_0x5b45c8,'oldRelation':_0x58d49d,'newRelation':_0x364d5d,'newLineType':_0x49139e[_0x87426d(0x111)],'oldLineType':_0x16e3cb};this[_0x87426d(0x1fc)][_0x87426d(0x24b)](_0x2f3418['id'],_0x2411a8);}['_executeResizeCommand'](_0x4261ed,_0x5e48ec){const _0x2bafbe=_0x3721df;let _0x56b2eb=this['_activeShapeModel'][_0x2bafbe(0x210)](),_0x234d6e=_0xa851c9(_0x4261ed[_0x2bafbe(0x260)],_0x56b2eb),_0x3d0b75={'unitId':this[_0x2bafbe(0x255)],'subUnitId':this[_0x2bafbe(0x113)],'shapeId':this[_0x2bafbe(0x12e)],'width':_0x4261ed[_0x2bafbe(0x13a)]['width'],'height':_0x4261ed[_0x2bafbe(0x13a)]['height'],'left':_0x4261ed[_0x2bafbe(0x13a)][_0x2bafbe(0x207)],'top':_0x4261ed[_0x2bafbe(0x13a)][_0x2bafbe(0x2b8)],'flipX':_0x4261ed[_0x2bafbe(0x13a)]['flipX']||!0x1,'flipY':_0x4261ed[_0x2bafbe(0x13a)]['flipY']||!0x1,'angle':_0x4261ed[_0x2bafbe(0x13a)][_0x2bafbe(0x300)]||0x0,'newAdjustValues':_0x234d6e[_0x2bafbe(0x257)],'oldAdjustValues':_0x5e48ec,'newLineType':_0x234d6e[_0x2bafbe(0x111)],'oldLineType':_0x56b2eb};this['_commandService'][_0x2bafbe(0x24b)](_0x9525c0['id'],_0x3d0b75);}[_0x3721df(0x1fe)](_0x3af716,_0x50ebda,_0x108883,_0x5733d8,_0x32ff17){const _0x2a7c28=_0x3721df;let _0x4b857b=this[_0x2a7c28(0x25f)]['getShapeData']()[_0x2a7c28(0x184)],_0xcdf056={..._0x4b857b},_0x355531={'shapeId':_0x50ebda['shapeId'],'cxnIndex':_0x50ebda['cxnIndex']};_0x5733d8?(_0xcdf056[_0x2a7c28(0x28c)]=_0x355531,_0xcdf056['to']=_0x108883):(_0xcdf056[_0x2a7c28(0x28c)]=_0x108883,_0xcdf056['to']=_0x355531);let _0xe43201={'unitId':this[_0x2a7c28(0x255)],'subUnitId':this[_0x2a7c28(0x113)],'connectorShapeId':this[_0x2a7c28(0x12e)],'width':_0x3af716['worldRect'][_0x2a7c28(0x19c)],'height':_0x3af716['worldRect'][_0x2a7c28(0x193)],'left':_0x3af716[_0x2a7c28(0x13a)][_0x2a7c28(0x207)],'top':_0x3af716['worldRect']['top'],'flipX':_0x3af716['worldRect']['flipX']||!0x1,'flipY':_0x3af716[_0x2a7c28(0x13a)][_0x2a7c28(0x291)]||!0x1,'oldAdjustValues':_0x32ff17,'newAdjustValues':_0x3af716[_0x2a7c28(0x257)],'newLineType':_0x3af716[_0x2a7c28(0x111)],'rotation':_0x3af716['rotation'],'oldRelation':_0x4b857b,'newRelation':_0xcdf056};this[_0x2a7c28(0x1fc)][_0x2a7c28(0x24b)](_0x2f3418['id'],_0xe43201);}[_0x3721df(0x127)](_0x85f6d6,_0x5ac099,_0x3889aa,_0x5f0fb6){const _0x3704ae=_0x3721df;let _0x55ca41=this['_activeShapeModel']['getShapeData']()[_0x3704ae(0x184)],_0x2b85a1={};_0x3889aa?(_0x2b85a1['to']=_0x5ac099,_0x2b85a1[_0x3704ae(0x28c)]=void 0x0):(_0x2b85a1['from']=_0x5ac099,_0x2b85a1['to']=void 0x0);let _0x20aa68={'unitId':this[_0x3704ae(0x255)],'subUnitId':this[_0x3704ae(0x113)],'connectorShapeId':this['_activeShapeId'],'width':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x19c)],'height':_0x85f6d6[_0x3704ae(0x13a)]['height'],'left':_0x85f6d6[_0x3704ae(0x13a)]['left'],'top':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x2b8)],'flipX':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x124)]||!0x1,'flipY':_0x85f6d6[_0x3704ae(0x13a)][_0x3704ae(0x291)]||!0x1,'oldAdjustValues':_0x5f0fb6,'newAdjustValues':_0x85f6d6[_0x3704ae(0x257)],'newLineType':_0x85f6d6[_0x3704ae(0x111)],'rotation':_0x85f6d6['rotation'],'oldRelation':_0x55ca41,'newRelation':_0x2b85a1};this[_0x3704ae(0x1fc)][_0x3704ae(0x24b)](_0x2f3418['id'],_0x20aa68);}[_0x3721df(0x141)](_0x129949,_0x16bf82,_0x88c34a){const _0xa30757=_0x3721df;this[_0xa30757(0x23d)](_0x4e35de(_0x129949['onPointerDown$']['subscribeEvent']((_0x11b66b,_0x2c8b77)=>{const _0x1a8f8e=_0xa30757;let _0x2d0b71=_0x129949[_0x1a8f8e(0x245)]();if(this[_0x1a8f8e(0x25f)]=this[_0x1a8f8e(0x1a7)][_0x1a8f8e(0xef)](_0x2d0b71[_0x1a8f8e(0xe5)],_0x2d0b71['subUnitId'],_0x2d0b71['drawingId']),!this[_0x1a8f8e(0x25f)])return;let _0x2cb38e={};this['_activeShapeModel']['getAdjustNames']()['forEach'](_0x251e51=>{const _0x471257=_0x1a8f8e;let _0x2cd823=this[_0x471257(0x25f)][_0x471257(0x25d)](_0x251e51);_0x2cd823!==void 0x0&&(_0x2cb38e[_0x251e51]=_0x2cd823);});let _0x34fdd9=this[_0x1a8f8e(0x159)]();if(!_0x34fdd9)return;this[_0x1a8f8e(0x30b)]={..._0x34fdd9};let _0x586a91=new _0x70c837(this['_baseDrawingRect']),_0x1ab54e=_0xc0766c({'unitId':this[_0x1a8f8e(0x255)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1a8f8e(0x12e)]}),_0xfe2d72=_0x16bf82['getObjectIncludeInGroup'](_0x1ab54e);this[_0x1a8f8e(0x1ff)]=!0x0,_0x16bf82[_0x1a8f8e(0x1be)](),this[_0x1a8f8e(0x1f3)][_0x1a8f8e(0x1cd)](_0x16bf82,this[_0x1a8f8e(0x255)],this[_0x1a8f8e(0x113)],this[_0x1a8f8e(0x12e)]),this[_0x1a8f8e(0x2ec)]=null;let _0x391ff6=this['_activeShapeModel']['getConnectorLinePoints'](),_0x5def14=_0x391ff6[0x0],_0xac81fe=_0x391ff6[_0x391ff6[_0x1a8f8e(0x19e)]-0x1],_0x24108a=_0x88c34a?_0x586a91[_0x1a8f8e(0x2e3)](_0xac81fe):_0x586a91[_0x1a8f8e(0x2e3)](_0x5def14);this['_cxtHandlerPointerMove']=_0x16bf82[_0x1a8f8e(0xe6)][_0x1a8f8e(0x2ce)]((_0x449d4c,_0x3c2234)=>{const _0x13cc84=_0x1a8f8e;if(!this[_0x13cc84(0x1ff)]||!this[_0x13cc84(0x25f)])return;this[_0x13cc84(0xf2)]||(this[_0x13cc84(0x125)][_0x13cc84(0x161)](),this[_0x13cc84(0x25f)][_0x13cc84(0x20c)](),this['_hasReset']=!0x0);let _0x2bf552=this[_0x13cc84(0x18a)](this[_0x13cc84(0x255)],this[_0x13cc84(0x113)]),_0x5486e1=this[_0x13cc84(0x234)](this[_0x13cc84(0x255)],this[_0x13cc84(0x113)]),_0x5c1177={'x':_0x449d4c[_0x13cc84(0x272)]/_0x5486e1+_0x2bf552['x'],'y':_0x449d4c['offsetY']/_0x5486e1+_0x2bf552['y']},_0x21fe3d=this[_0x13cc84(0x1f3)]['updateConnectionDetection'](_0x5c1177);if(_0x21fe3d){let {shapeId:_0x2c549b,unitId:_0x16343b,subUnitId:_0x4a6616}=_0x21fe3d;if(_0x2c549b&&_0x16343b&&_0x4a6616){let _0x597a17=_0xc0766c({'unitId':_0x16343b,'subUnitId':_0x4a6616,'drawingId':_0x2c549b});_0x21fe3d[_0x13cc84(0x300)]=(_0x16bf82['getObjectIncludeInGroup'](_0x597a17)['angle']||0x0)+_0x21fe3d[_0x13cc84(0x300)];}}this[_0x13cc84(0x2ec)]=_0x21fe3d;let _0x417af8=_0x88c34a?this[_0x13cc84(0x25f)][_0x13cc84(0x1e0)]():this[_0x13cc84(0x25f)][_0x13cc84(0x12a)]();if(_0x417af8){this[_0x13cc84(0x24a)](_0x417af8,_0x5c1177,_0x88c34a,_0xfe2d72,_0x129949);return;}this['_handleFreeEndpointMove'](_0x5c1177,_0x24108a,_0x88c34a,_0xfe2d72,_0x129949);}),this[_0x1a8f8e(0x117)]=_0x16bf82[_0x1a8f8e(0x163)][_0x1a8f8e(0x2ce)]((_0x49ac9b,_0x302096)=>{const _0x33aae1=_0x1a8f8e;this[_0x33aae1(0x123)](_0x16bf82,_0x24108a,_0x49ac9b,_0x88c34a,_0x2cb38e);}),_0x2c8b77[_0x1a8f8e(0x17b)]();})));}[_0x3721df(0x10a)](_0x1a9f89,_0x103cd4,_0x32b4a2){const _0x1669d8=_0x3721df;let _0x22e00c=this[_0x1669d8(0x1a7)][_0x1669d8(0xcf)](_0x1a9f89,_0x103cd4,_0x32b4a2);if(!_0x22e00c||_0x22e00c[_0x1669d8(0x19e)]===0x0)return;let _0x1a3111=this['_renderManagerService'][_0x1669d8(0x1f1)](_0x1a9f89);if(!_0x1a3111)return;let {scene:_0x346664}=_0x1a3111;for(let _0x50c3cc of _0x22e00c){let _0x571337=_0x50c3cc[_0x1669d8(0x21c)],_0x1c2a58=this[_0x1669d8(0x1a7)]['getShapeModel'](_0x1a9f89,_0x103cd4,_0x571337);if(!_0x1c2a58)continue;let _0x5f1edc=_0x1c2a58[_0x1669d8(0x12a)](),_0x46baaa=_0x1c2a58[_0x1669d8(0x1e0)](),_0x3fe8d3=(_0x5f1edc==null?void 0x0:_0x5f1edc['shapeId'])===_0x32b4a2,_0x3d7149=_0xc0766c({'unitId':_0x1a9f89,'subUnitId':_0x103cd4,'drawingId':_0x571337}),_0xef31d4=_0x346664[_0x1669d8(0xc2)](_0x3d7149);if(!_0xef31d4)continue;let _0x1dc567=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x1a9f89,'subUnitId':_0x103cd4,'drawingId':_0x571337});_0x1dc567!=null&&_0x1dc567['transform']&&(_0x5f1edc&&_0x46baaa?this['_rerouteConnectorLine'](_0x1a9f89,_0x103cd4,_0x571337,_0x1c2a58,_0x5f1edc,_0x46baaa,_0xef31d4):this[_0x1669d8(0xbd)](_0x1a9f89,_0x103cd4,_0x571337,_0x1c2a58,_0x3fe8d3?_0x5f1edc:_0x46baaa,_0x3fe8d3,_0x1dc567,_0xef31d4));}}[_0x3721df(0x24d)](_0x31df73,_0x3ec678,_0x5c81a1,_0x203ddf,_0x2f7082,_0x138e1b,_0x21368a){const _0x3a4546=_0x3721df;let _0x1a74c2=this['_unitId'],_0x3476a0=this['_subUnitId'];this[_0x3a4546(0x255)]=_0x31df73,this[_0x3a4546(0x113)]=_0x3ec678;let _0x50bcdb=this['_getConnectPointInfo'](_0x2f7082),_0x3d26c3=this[_0x3a4546(0x227)](_0x138e1b);if(this[_0x3a4546(0x255)]=_0x1a74c2,this['_subUnitId']=_0x3476a0,!_0x50bcdb||!_0x3d26c3)return;let _0x4a5b61=_0x203ddf[_0x3a4546(0x210)](),_0x3250f1=_0x476f7c(_0x50bcdb,_0x3d26c3,_0x4a5b61);_0x3250f1&&_0x203ddf[_0x3a4546(0x219)](_0x3250f1);let _0x1bd824=_0xa851c9(_0x3250f1,_0x4a5b61);_0x1bd824[_0x3a4546(0x111)]!==_0x4a5b61&&_0x203ddf[_0x3a4546(0xb5)](_0x1bd824[_0x3a4546(0x111)]),_0x203ddf[_0x3a4546(0x20c)]();for(let [_0x23da98,_0x1cbc22]of Object['entries'](_0x1bd824[_0x3a4546(0x257)]))_0x203ddf[_0x3a4546(0x17f)](_0x23da98,_0x1cbc22);_0x203ddf['updateContext']({'width':_0x1bd824['worldRect'][_0x3a4546(0x19c)],'height':_0x1bd824[_0x3a4546(0x13a)]['height']}),_0x21368a[_0x3a4546(0x2d2)]({'flipX':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x124)],'flipY':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x291)],'left':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x207)],'top':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x2b8)],'width':_0x1bd824[_0x3a4546(0x13a)][_0x3a4546(0x19c)],'height':_0x1bd824['worldRect'][_0x3a4546(0x193)],'angle':_0x1bd824[_0x3a4546(0x178)]}),_0x203ddf[_0x3a4546(0x187)]();}['_moveConnectorWithShape'](_0x5c591e,_0x260c47,_0xdffda1,_0x2b4a33,_0x27f5e3,_0x4a1140,_0x53c556,_0x9eb8b0){const _0x47f910=_0x3721df;let _0x1c5286=this[_0x47f910(0x255)],_0x280888=this[_0x47f910(0x113)];this[_0x47f910(0x255)]=_0x5c591e,this[_0x47f910(0x113)]=_0x260c47;let _0x10d4cc=this[_0x47f910(0x227)](_0x27f5e3);if(this[_0x47f910(0x255)]=_0x1c5286,this[_0x47f910(0x113)]=_0x280888,!_0x10d4cc)return;let {left:_0x10fe05=0x0,top:_0x10ce30=0x0,width:_0x54ac1e=0x0,height:_0x500ee7=0x0,flipX:_0x8ebf9a=!0x1,flipY:_0x667df9=!0x1}=_0x53c556[_0x47f910(0x288)],_0x1c2636=_0x2b4a33[_0x47f910(0x1b9)]();if(_0x1c2636[_0x47f910(0x19e)]<0x2)return;let _0x5badff=new _0x70c837({'left':_0x10fe05,'top':_0x10ce30,'width':_0x54ac1e,'height':_0x500ee7,'flipX':_0x8ebf9a,'flipY':_0x667df9}),_0x109aa3=_0x4a1140?_0x1c2636[_0x1c2636[_0x47f910(0x19e)]-0x1]:_0x1c2636[0x0],_0x175494=_0x5badff[_0x47f910(0x2e3)](_0x109aa3),_0x2fef8c=_0x70c837[_0x47f910(0x2d7)](_0x175494,_0x10d4cc['point'],!_0x4a1140);_0x9eb8b0[_0x47f910(0x2d2)]({'flipX':_0x2fef8c[_0x47f910(0x13a)][_0x47f910(0x124)],'flipY':_0x2fef8c[_0x47f910(0x13a)][_0x47f910(0x291)],'left':_0x2fef8c[_0x47f910(0x13a)]['left'],'top':_0x2fef8c[_0x47f910(0x13a)][_0x47f910(0x2b8)],'width':_0x2fef8c['worldRect'][_0x47f910(0x19c)],'height':_0x2fef8c[_0x47f910(0x13a)]['height'],'angle':_0x2fef8c['worldRect']['angle']}),_0x9eb8b0[_0x47f910(0x16b)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x464df7=_0x3721df;this[_0x464df7(0x2e1)][_0x464df7(0x19e)]!==0x0&&(this[_0x464df7(0x2e1)][_0x464df7(0x1a9)](_0x390546=>{const _0x45b2fb=_0x464df7;_0x390546[_0x45b2fb(0x250)]();}),this[_0x464df7(0x2e1)]=[]);}['_registerDrawingMoveHandler'](){const _0x51c2e7=_0x3721df;let _0x20e71b=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2c116a[_0x51c2e7(0x1a1)]);this[_0x51c2e7(0x23d)](_0x20e71b[_0x51c2e7(0x27d)](_0x319361(_0x30c564=>_0x30c564?_0x30c564['activeSheet$']['pipe'](_0x319361(_0x373dc2=>{const _0x3b502b=_0x51c2e7;if(!_0x373dc2)return _0x4cf815;let _0x4f84de=_0x30c564[_0x3b502b(0x1b5)](),_0x582d9d=this['_renderManagerService'][_0x3b502b(0x1f1)](_0x4f84de),_0x3e0f9c=_0x582d9d==null?void 0x0:_0x582d9d[_0x3b502b(0x223)];return _0x3e0f9c?_0x232c55(_0x3e0f9c):_0x4cf815;})):_0x4cf815))[_0x51c2e7(0x290)](_0x3f81db=>{const _0x150eb3=_0x51c2e7;let _0x2d3b37=_0x3f81db[_0x150eb3(0x197)]();this[_0x150eb3(0x23d)](_0x3f81db[_0x150eb3(0xe6)][_0x150eb3(0x2ce)](_0x1054d0=>{const _0x5c1eeb=_0x150eb3;this[_0x5c1eeb(0x162)]&&this[_0x5c1eeb(0x12e)]&&this[_0x5c1eeb(0x29a)]();})),this[_0x150eb3(0x23d)](_0x2d3b37[_0x150eb3(0x191)]['subscribe'](_0x485f96=>{const _0x42cbf4=_0x150eb3;let {objects:_0x4b0aa8}=_0x485f96;this['_clearShapeConnectorHandlerObjects'](),_0x4b0aa8!==null&&_0x4b0aa8[_0x42cbf4(0x30a)]===0x1&&_0x4b0aa8['values']()[_0x42cbf4(0x11b)]()[_0x42cbf4(0x15c)]instanceof vn&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x150eb3(0x23d)](_0x2d3b37[_0x150eb3(0x1a0)][_0x150eb3(0x290)](_0x3f86c1=>{const _0xad9f1b=_0x150eb3;this[_0xad9f1b(0x162)]&&this[_0xad9f1b(0x29a)]();})),this[_0x150eb3(0x23d)](_0x3f81db[_0x150eb3(0x163)][_0x150eb3(0x2ce)](()=>{const _0x1396bb=_0x150eb3;this[_0x1396bb(0x162)]&&(this[_0x1396bb(0x162)]=!0x1,this[_0x1396bb(0xe8)]());})),this[_0x150eb3(0x23d)](_0x2d3b37[_0x150eb3(0x2f1)][_0x150eb3(0x290)](()=>{const _0x495e41=_0x150eb3;this[_0x495e41(0x255)]&&this[_0x495e41(0x113)]&&this[_0x495e41(0x12e)]&&this[_0x495e41(0x212)][_0x495e41(0x22d)]({'unitId':this[_0x495e41(0x255)],'subUnitId':this[_0x495e41(0x113)],'drawingId':this[_0x495e41(0x12e)]})&&(this[_0x495e41(0x29a)](),this[_0x495e41(0xe8)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x28be26=_0x3721df;this['disposeWithMe'](this[_0x28be26(0x212)]['focus$'][_0x28be26(0x290)](_0x5ad6b5=>{const _0x1c123c=_0x28be26;if(_0x5ad6b5[_0x1c123c(0x19e)]===0x1){let _0x3b00ed=_0x5ad6b5[0x0];if(_0x3b00ed[_0x1c123c(0x132)]===_0x91d30f[_0x1c123c(0x27a)]){let _0x2c8f39=this[_0x1c123c(0x1a7)][_0x1c123c(0xef)](_0x3b00ed[_0x1c123c(0xe5)],_0x3b00ed[_0x1c123c(0x183)],_0x3b00ed[_0x1c123c(0x121)]);if(_0x2c8f39&&_0x51a857(_0x2c8f39[_0x1c123c(0x210)]())){this[_0x1c123c(0x12e)]=_0x3b00ed[_0x1c123c(0x121)],this['_unitId']=_0x3b00ed[_0x1c123c(0xe5)],this[_0x1c123c(0x113)]=_0x3b00ed[_0x1c123c(0x183)],this[_0x1c123c(0x29a)](),this[_0x1c123c(0xe8)]();return;}}}this[_0x1c123c(0x12e)]=void 0x0,this['_unitId']=void 0x0,this[_0x1c123c(0x113)]=void 0x0,this[_0x1c123c(0x29a)]();})),this[_0x28be26(0x23d)](this[_0x28be26(0x212)]['update$'][_0x28be26(0x290)](_0x171bd5=>{const _0x24d650=_0x28be26;if(_0x171bd5[_0x24d650(0x19e)]===0x1){var _0x2d8067;let _0x435fe2=_0x171bd5[0x0],_0x329873=(_0x2d8067=this['_drawingManagerService'][_0x24d650(0x22d)](_0x435fe2))==null?void 0x0:_0x2d8067[_0x24d650(0x132)];_0x329873===_0x91d30f[_0x24d650(0x27a)]&&_0x435fe2[_0x24d650(0x121)]===this[_0x24d650(0x12e)]?(this[_0x24d650(0x29a)](),this[_0x24d650(0xe8)]()):!this[_0x24d650(0x12e)]&&_0x329873===_0x91d30f[_0x24d650(0x27a)]&&this[_0x24d650(0x10a)](_0x435fe2[_0x24d650(0xe5)],_0x435fe2[_0x24d650(0x183)],_0x435fe2[_0x24d650(0x121)]);}})),this[_0x28be26(0x23d)](this['_drawingManagerService'][_0x28be26(0x2aa)][_0x28be26(0x290)](_0x5eb07a=>{const _0x4f6082=_0x28be26;for(let _0x1e175d of _0x5eb07a){let {drawingId:_0x1001fd}=_0x1e175d;if(this[_0x4f6082(0x12e)]===_0x1001fd){this['_reset']();return;}}}));}['_handleConnectedEndpointMove'](_0x218b60,_0x39bf95,_0x46b183,_0x53c126,_0x3cba57){const _0x392a61=_0x3721df;var _0x537738,_0xdf71b1;if(!this[_0x392a61(0x25f)])return;let _0x1f2dd6=this[_0x392a61(0x227)](_0x218b60);if(!_0x1f2dd6)return;let _0x19a9f9=this[_0x392a61(0x2ec)]?this[_0x392a61(0x2ec)]['worldPoint']:_0x39bf95,_0x59990d=this[_0x392a61(0x2ec)]?this[_0x392a61(0x2ec)][_0x392a61(0x300)]:this[_0x392a61(0x1c8)](_0x1f2dd6[_0x392a61(0x27f)],_0x19a9f9),_0x25e8d6;if(this['_currentConnectionTarget']){let _0x3f6aeb=this[_0x392a61(0x212)]['getDrawingByParam']({'unitId':this[_0x392a61(0x2ec)][_0x392a61(0xe5)],'subUnitId':this[_0x392a61(0x2ec)][_0x392a61(0x183)],'drawingId':this[_0x392a61(0x2ec)][_0x392a61(0x1bf)]});if(_0x3f6aeb!=null&&_0x3f6aeb['transform']){let {left:_0x252e05=0x0,top:_0x43f8e3=0x0,width:_0x414ea8=0x0,height:_0x28880b=0x0,angle:_0x2db2a5}=_0x3f6aeb[_0x392a61(0x288)];_0x25e8d6=_0x1218d5({'left':_0x252e05,'top':_0x43f8e3,'width':_0x414ea8,'height':_0x28880b},_0x2db2a5||0x0);}else _0x25e8d6={'left':_0x19a9f9['x'],'top':_0x19a9f9['y'],'width':0x0,'height':0x0};}else _0x25e8d6={'left':_0x19a9f9['x'],'top':_0x19a9f9['y'],'width':0x0,'height':0x0};let _0x196177={'point':_0x19a9f9,'angle':_0x59990d,'bounds':_0x25e8d6},_0x311355=_0x46b183?_0x196177:_0x1f2dd6,_0x3089ef=_0x46b183?_0x1f2dd6:_0x196177,_0x2b58cd=this[_0x392a61(0x25f)][_0x392a61(0x210)](),_0x63e06b=_0x476f7c(_0x311355,_0x3089ef,_0x2b58cd);_0x63e06b&&this['_activeShapeModel'][_0x392a61(0x219)](_0x63e06b);let _0x257003=_0xa851c9(_0x63e06b,_0x2b58cd);_0x257003[_0x392a61(0x111)]!==_0x2b58cd&&this[_0x392a61(0x25f)][_0x392a61(0xb5)](_0x257003[_0x392a61(0x111)]);for(let [_0x3994cf,_0x33ba45]of Object[_0x392a61(0x10b)](_0x257003[_0x392a61(0x257)]))this[_0x392a61(0x25f)][_0x392a61(0x17f)](_0x3994cf,_0x33ba45);this[_0x392a61(0x25f)][_0x392a61(0x229)]({'width':_0x257003[_0x392a61(0x13a)][_0x392a61(0x19c)],'height':_0x257003[_0x392a61(0x13a)]['height']}),_0x53c126['transformByState']({'flipX':_0x257003[_0x392a61(0x13a)][_0x392a61(0x124)],'flipY':_0x257003[_0x392a61(0x13a)][_0x392a61(0x291)],'left':_0x257003[_0x392a61(0x13a)][_0x392a61(0x207)],'top':_0x257003[_0x392a61(0x13a)][_0x392a61(0x2b8)],'width':_0x257003['worldRect'][_0x392a61(0x19c)],'height':_0x257003['worldRect'][_0x392a61(0x193)],'angle':_0x257003[_0x392a61(0x178)]}),_0x53c126[_0x392a61(0x16b)](!0x0);let _0x258993=(_0x537738=(_0xdf71b1=this['_currentConnectionTarget'])==null?void 0x0:_0xdf71b1[_0x392a61(0x1fd)])==null?_0x39bf95:_0x537738;_0x3cba57[_0x392a61(0x2d2)]({'left':_0x258993['x']-_0x170bf6[_0x392a61(0xc5)],'top':_0x258993['y']-_0x170bf6['cxnPointRadius']});}[_0x3721df(0x29d)](_0x3827aa,_0x95019,_0x2c8017,_0x4b3b0b,_0x591288){const _0x22ef71=_0x3721df;var _0x1536a6,_0x50c819,_0x178d24,_0xc68b5a;let _0x3ccbbf=(_0x1536a6=(_0x50c819=this['_currentConnectionTarget'])==null?void 0x0:_0x50c819[_0x22ef71(0x1fd)])==null?_0x3827aa:_0x1536a6,_0x11206b=_0x70c837[_0x22ef71(0x2d7)](_0x95019,_0x3ccbbf,_0x2c8017);_0x4b3b0b[_0x22ef71(0x2d2)]({'flipX':_0x11206b['worldRect'][_0x22ef71(0x124)],'flipY':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x291)],'left':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x207)],'top':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x2b8)],'width':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x19c)],'height':_0x11206b[_0x22ef71(0x13a)][_0x22ef71(0x193)],'angle':_0x11206b[_0x22ef71(0x13a)]['angle']});let _0x535462=(_0x178d24=(_0xc68b5a=this[_0x22ef71(0x2ec)])==null?void 0x0:_0xc68b5a[_0x22ef71(0x1fd)])==null?_0x3827aa:_0x178d24;_0x591288['transformByState']({'left':_0x535462['x']-_0x170bf6[_0x22ef71(0xc5)],'top':_0x535462['y']-_0x170bf6['cxnPointRadius']});}[_0x3721df(0x227)](_0x4e04b4){const _0x140978=_0x3721df;if(!this['_unitId']||!this[_0x140978(0x113)])return null;let {shapeId:_0x1d5405,cxnIndex:_0x8c815f}=_0x4e04b4,_0x3be583=this[_0x140978(0x1a7)]['getShapeModel'](this[_0x140978(0x255)],this[_0x140978(0x113)],_0x1d5405);if(!_0x3be583)return null;let _0x2c39ea=this[_0x140978(0x212)][_0x140978(0x22d)]({'unitId':this[_0x140978(0x255)],'subUnitId':this[_0x140978(0x113)],'drawingId':_0x1d5405});if(!(_0x2c39ea!=null&&_0x2c39ea[_0x140978(0x288)]))return null;let {left:_0x190481=0x0,top:_0x16d5aa=0x0,width:_0x2014c7=0x0,height:_0x3782c1=0x0,flipX:_0x1a9e95=!0x1,flipY:_0x1f7381=!0x1,angle:_0x2d3bf0}=_0x2c39ea['transform'];_0x3be583[_0x140978(0x229)]({'width':_0x2014c7,'height':_0x3782c1});let _0x4b347b=_0x3be583[_0x140978(0x20a)]()[_0x140978(0x2a0)](_0x29c486=>_0x29c486['index']===_0x8c815f);if(!_0x4b347b)return null;let _0x127e55=_0x1a9e95?_0x2014c7-_0x4b347b['x']:_0x4b347b['x'],_0x208ddb=_0x1f7381?_0x3782c1-_0x4b347b['y']:_0x4b347b['y'];if(_0x2d3bf0!==0x0&&_0x2d3bf0!=null){let _0x5e0146=_0x2d3bf0*Math['PI']/0xb4,_0x17add3=Math['cos'](_0x5e0146),_0xeafdda=Math[_0x140978(0x122)](_0x5e0146),_0x25c843=_0x2014c7/0x2,_0x31bd7a=_0x3782c1/0x2,_0x1e0c23=_0x127e55-_0x25c843,_0x52e2ed=_0x208ddb-_0x31bd7a;_0x127e55=_0x25c843+_0x1e0c23*_0x17add3-_0x52e2ed*_0xeafdda,_0x208ddb=_0x31bd7a+_0x1e0c23*_0xeafdda+_0x52e2ed*_0x17add3;}_0x127e55+=_0x190481,_0x208ddb+=_0x16d5aa;let _0x448140=_0x4b347b[_0x140978(0x224)]/0xea60;_0x1a9e95&&(_0x448140=0xb4-_0x448140),_0x1f7381&&(_0x448140=-_0x448140),_0x448140+=_0x2d3bf0||0x0,_0x448140=(_0x448140%0x168+0x168)%0x168;let _0x311ee7=_0x1218d5({'left':_0x190481,'top':_0x16d5aa,'width':_0x2014c7,'height':_0x3782c1},_0x2d3bf0||0x0);return{'point':{'x':_0x127e55,'y':_0x208ddb},'angle':_0x448140,'bounds':_0x311ee7};}[_0x3721df(0x1c8)](_0xadd0b4,_0x27f89d){const _0x3ac5cb=_0x3721df;let _0x36fa3a=_0x27f89d['x']-_0xadd0b4['x'],_0x224882=_0x27f89d['y']-_0xadd0b4['y'];return Math[_0x3ac5cb(0x164)](_0x36fa3a)>=Math[_0x3ac5cb(0x164)](_0x224882)?_0x36fa3a>=0x0?0xb4:0x0:_0x224882>=0x0?0x10e:0x5a;}[_0x3721df(0xcb)](){const _0x3094a3=_0x3721df;this[_0x3094a3(0x12e)]=void 0x0,this[_0x3094a3(0x255)]=void 0x0,this[_0x3094a3(0x113)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x3721df(0x250)](){const _0x3eed68=_0x3721df;this['_clearShapeConnectorHandlerObjects'](),super[_0x3eed68(0x250)]();}};ur=Y([J(0x1,_0x27b781),J(0x2,_0x3ab9c0),J(0x3,_0x30b385),J(0x4,_0xeac766),J(0x5,_0x44ac9c(_0x2318dd)),J(0x6,_0x44ac9c(Z)),J(0x7,_0x44ac9c(sr))],ur);let dr=class extends _0x3ff889{constructor(_0xb01fd5,_0x4f7164,_0x4f6678){const _0x27bb20=_0x3721df;super(),this[_0x27bb20(0x2be)]=_0xb01fd5,this[_0x27bb20(0x212)]=_0x4f7164,this[_0x27bb20(0x308)]=_0x4f6678,this[_0x27bb20(0xd2)]();}[_0x3721df(0xd2)](){const _0x3bd704=_0x3721df;this[_0x3bd704(0x23d)](this[_0x3bd704(0x2be)][_0x3bd704(0x2c2)][_0x3bd704(0x157)](this[_0x3bd704(0x2be)][_0x3bd704(0x2c2)][_0x3bd704(0x2ea)]()[_0x3bd704(0xdb)],{'handler':(_0x3937da,_0x512adf,_0x3eaf0b)=>{const _0x1d5687=_0x3bd704;var _0x20fca6;let {unitId:_0x1d1c39,subUnitId:_0x1c1a3a,scene:_0x26566d,resourceCollector:_0x822e6b}=_0x512adf,_0x42df0f=(_0x20fca6=this['_drawingManagerService']['getDrawingDataForUnit'](_0x1d1c39))==null?void 0x0:_0x20fca6[_0x1c1a3a];return _0x42df0f==null||_0x42df0f['order'][_0x1d5687(0x1a9)](_0xe799a2=>{const _0x143a02=_0x1d5687;let _0x13dda5=_0x42df0f[_0x143a02(0x1b6)][_0xe799a2];_0x13dda5[_0x143a02(0x132)]===_0x91d30f[_0x143a02(0x27a)]&&!_0x13dda5[_0x143a02(0x13e)]&&this[_0x143a02(0x308)][_0x143a02(0x297)](_0x13dda5,_0x26566d,{'resourceCollector':_0x822e6b});}),_0x3eaf0b(_0x3937da);}}));}};dr=Y([J(0x0,_0x44ac9c(_0x4c49ca)),J(0x1,_0x30b385),J(0x2,_0x44ac9c(X))],dr);let fr=class extends _0x3ff889{constructor(_0x4ebba4,_0x4e1d8a,_0x456edd){const _0x28d250=_0x3721df;super(),this[_0x28d250(0x1fc)]=_0x4ebba4,this['_localeService']=_0x4e1d8a,this[_0x28d250(0x242)]=_0x456edd,this[_0x28d250(0x29c)]();}[_0x3721df(0x29c)](){const _0x5d4414=_0x3721df;this[_0x5d4414(0x23d)](this[_0x5d4414(0x1fc)][_0x5d4414(0x1ad)](_0x450ab3=>{const _0x53606b=_0x5d4414;let _0x59482e,_0x162b2d;if(_0x450ab3['id']===_0x24599f['id']||_0x450ab3['id']===_0x11fd9b['id']||_0x450ab3['id']===_0x2f3418['id']){let _0x31e6b3=_0x450ab3[_0x53606b(0x12c)];_0x59482e=_0x31e6b3[_0x53606b(0xe5)],_0x162b2d=_0x31e6b3['subUnitId'];}!_0x59482e||!_0x162b2d||this[_0x53606b(0x242)][_0x53606b(0x143)]({'workbookTypes':[_0x11551d],'worksheetTypes':[_0x29539e]},_0x59482e,_0x162b2d)||this[_0x53606b(0x242)]['blockExecuteWithoutPermission'](this[_0x53606b(0x11e)]['t']('sheets-shape-ui.permission.editErr'));}));}};fr=Y([J(0x0,_0x44ac9c(_0x27b781)),J(0x1,_0x44ac9c(_0x52ec80)),J(0x2,_0x44ac9c(_0x2fd853))],fr);let pr=class extends _0x3ff889{constructor(_0x4afd7,_0x294b6d,_0x4cdf35,_0x6a102a,_0x2ddc2f,_0x5d3887,_0x38cb43,_0x520ed1,_0x24d1f8,_0x2e0ed9,_0x276854){const _0x1709a5=_0x3721df;super(),this[_0x1709a5(0x205)]=_0x4afd7,this['_sidebarService']=_0x294b6d,this[_0x1709a5(0x2a2)]=_0x4cdf35,this[_0x1709a5(0x1a7)]=_0x6a102a,this[_0x1709a5(0x11e)]=_0x2ddc2f,this[_0x1709a5(0x1fc)]=_0x5d3887,this[_0x1709a5(0x212)]=_0x38cb43,this[_0x1709a5(0x10f)]=_0x520ed1,this[_0x1709a5(0x2e2)]=_0x24d1f8,this[_0x1709a5(0x28f)]=_0x2e0ed9,this[_0x1709a5(0xea)]=_0x276854,q(this,_0x1709a5(0x1da),null),q(this,'_activeShapeInfo',null),q(this,_0x1709a5(0x10c),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,'_initializedShapePopupMenu',new Set()),q(this,_0x1709a5(0x134),[]),this[_0x1709a5(0x1af)](),this[_0x1709a5(0x23d)](this[_0x1709a5(0x205)][_0x1709a5(0x1e2)](_0x2c116a[_0x1709a5(0x1a1)])['subscribe'](_0x3ae899=>{const _0xd34bc9=_0x1709a5;if(!_0x3ae899){var _0x3c7886;(_0x3c7886=this[_0xd34bc9(0x1da)])==null||_0x3c7886[_0xd34bc9(0x250)]();return;}this[_0xd34bc9(0x107)](_0x3ae899);})),this[_0x1709a5(0x1aa)](),this[_0x1709a5(0xbb)](),this[_0x1709a5(0x2df)](),this[_0x1709a5(0x23d)](this[_0x1709a5(0xea)]['editingParams$'][_0x1709a5(0x290)](_0x1143d4=>{const _0x5edcc9=_0x1709a5;_0x1143d4&&this[_0x5edcc9(0x1e1)]();}));}[_0x3721df(0x1af)](){const _0x292351=_0x3721df;this[_0x292351(0x2a2)][_0x292351(0x1a6)](In);}[_0x3721df(0xbb)](){const _0x469910=_0x3721df;this['_sheetCanvasPopManagerService'][_0x469910(0x1a5)](_0x91d30f[_0x469910(0x27a)],this[_0x469910(0x18b)][_0x469910(0x12d)](this)),this['_sheetCanvasPopManagerService'][_0x469910(0x1d6)](_0x91d30f['DRAWING_SHAPE'],0x6,0x4);}[_0x3721df(0x2df)](){const _0x3b1cf7=_0x3721df;this[_0x3b1cf7(0x205)][_0x3b1cf7(0x1b4)](_0x2c116a[_0x3b1cf7(0x1a1)])[_0x3b1cf7(0x1a9)](_0x4c0ef1=>this[_0x3b1cf7(0x107)](_0x4c0ef1));}[_0x3721df(0x18b)](_0x2a9a28,_0x1d1589,_0x510283,_0x576b56){const _0x27a4f2=_0x3721df;return[{'label':_0x27a4f2(0x11f),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'drawingId':_0x510283},'disable':_0x576b56===_0x91d30f[_0x27a4f2(0x1e3)]},{'label':_0x27a4f2(0x267),'index':0x1,'commandId':_0xc60b82['id'],'commandParams':{'unitId':_0x2a9a28,'drawings':[{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'drawingId':_0x510283,'drawingType':_0x576b56}]},'disable':!0x1},{'label':_0x27a4f2(0xd7),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'drawingId':_0x510283},'disable':!0x1},{'label':_0x27a4f2(0x2c3),'index':0x3,'commandId':_0x2cbec4['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'flipH':!0x0},'disable':!0x1},{'label':_0x27a4f2(0x1c7),'index':0x4,'commandId':_0x2cbec4['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'flipV':!0x0},'disable':!0x1},{'label':_0x27a4f2(0x275),'index':0x4,'commandId':_0x5f6cf0['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x5f6cf0['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283,'rotate':-0x5a},'disable':!0x1},{'label':_0x27a4f2(0x22a),'index':0x4,'commandId':_0x177a15['id'],'commandParams':{'unitId':_0x2a9a28,'subUnitId':_0x1d1589,'shapeId':_0x510283},'disable':!0x1}];}[_0x3721df(0x199)](_0x20e6ed,_0xe1a34f,_0x40dc43){const _0x22f20f=_0x3721df;let _0x705145=this[_0x22f20f(0x1a7)][_0x22f20f(0x214)](_0x20e6ed,_0xe1a34f,_0x40dc43),_0x384019=this[_0x22f20f(0x1a7)][_0x22f20f(0x26f)](_0x20e6ed,_0xe1a34f,_0x40dc43);return _0x705145!==void 0x0&&_0x384019!==void 0x0?{'shapeData':_0x384019,'shapeId':_0x40dc43,'shapeType':_0x705145,'unitId':_0x20e6ed,'subUnitId':_0xe1a34f,'version':this[_0x22f20f(0x202)],'disableShapeOption':!0x1}:null;}[_0x3721df(0x107)](_0x484f79){const _0x246396=_0x3721df;if(!_0x484f79)return;let _0x5d25fe=_0x484f79['getUnitId']();this['_renderManagerService'][_0x246396(0x238)](_0x5d25fe)&&!this[_0x246396(0x19d)]['has'](_0x5d25fe)&&(this[_0x246396(0x1b3)](_0x5d25fe),this[_0x246396(0x19d)]['add'](_0x5d25fe));}[_0x3721df(0x1e1)](){const _0x1da9cb=_0x3721df;this[_0x1da9cb(0x134)][_0x1da9cb(0x1a9)](_0x50f176=>_0x50f176[_0x1da9cb(0x250)]()),this[_0x1da9cb(0x134)][_0x1da9cb(0x19e)]=0x0;}['_popupMenuListener'](_0x5e3e9e){const _0x54b3be=_0x3721df;var _0x32da18;let _0x5b6652=(_0x32da18=this['_renderManagerService'][_0x54b3be(0x1f1)](_0x5e3e9e))==null?void 0x0:_0x32da18[_0x54b3be(0x223)],_0x2334df=_0x5b6652==null?void 0x0:_0x5b6652['getTransformerByCreate']();!_0x5b6652||!_0x2334df||(this[_0x54b3be(0x23d)](_0x2334df['createControl$'][_0x54b3be(0x290)](()=>{const _0x5069f2=_0x54b3be;let _0x110002=_0x2334df[_0x5069f2(0x1f8)]();if(this[_0x5069f2(0x1e1)](),this[_0x5069f2(0x10c)]||_0x110002[_0x5069f2(0x30a)]>0x1)return;let _0x1c38f5=_0x110002[_0x5069f2(0x258)]()[_0x5069f2(0x11b)]()[_0x5069f2(0x15c)];if(!_0x1c38f5)return;let _0x281d51=this[_0x5069f2(0x212)][_0x5069f2(0x1f7)](_0x1c38f5['oKey']);if(!_0x281d51||_0x281d51[_0x5069f2(0x132)]!==_0x91d30f[_0x5069f2(0x27a)])return;let {unitId:_0x31bbdf,subUnitId:_0xdbfdcb,drawingId:_0x89d8c8,drawingType:_0x54fe7c}=_0x281d51,_0xea93c9=this[_0x5069f2(0x199)](_0x31bbdf,_0xdbfdcb,_0x89d8c8);if(!_0xea93c9)return;this[_0x5069f2(0x2e2)][_0x5069f2(0x2b6)](_0x133140,!0x0);let _0x2475db=this[_0x5069f2(0x10f)][_0x5069f2(0x2d5)](_0x1c38f5,{'componentKey':wn,'direction':'top-center','offset':[0x0,_0x1d8d74],'extraProps':{'unitId':_0x31bbdf,'subUnitId':_0xdbfdcb,'drawingId':_0x89d8c8,'drawingType':_0x54fe7c,'shapeType':_0xea93c9['shapeType'],'shapeData':_0xea93c9[_0x5069f2(0x15a)]}});this['_disposePopups'][_0x5069f2(0x1d2)](this[_0x5069f2(0x23d)](_0x2475db)),this[_0x5069f2(0x212)][_0x5069f2(0x1d9)]()['find'](_0x2c7fb0=>_0x2c7fb0[_0x5069f2(0xe5)]===_0x31bbdf&&_0x2c7fb0[_0x5069f2(0x183)]===_0xdbfdcb&&_0x2c7fb0[_0x5069f2(0x121)]===_0x89d8c8)||this[_0x5069f2(0x212)][_0x5069f2(0x2d1)]([{'unitId':_0x31bbdf,'subUnitId':_0xdbfdcb,'drawingId':_0x89d8c8}]);})),this[_0x54b3be(0x23d)](_0x2334df[_0x54b3be(0x265)][_0x54b3be(0x290)](()=>{const _0x433ee2=_0x54b3be;this[_0x433ee2(0x1e1)](),this[_0x433ee2(0x2e2)][_0x433ee2(0x2b6)](_0x133140,!0x1),this[_0x433ee2(0x212)][_0x433ee2(0x2d1)](null);})),this[_0x54b3be(0x23d)](_0x2334df['changing$']['subscribe'](()=>{const _0x86d09f=_0x54b3be;this[_0x86d09f(0x1e1)]();})),this[_0x54b3be(0x23d)](_0x2334df['changeStart$']['subscribe'](()=>{const _0x391aaa=_0x54b3be;this[_0x391aaa(0x1e1)]();})));}['_registerOperations'](){const _0x219139=_0x3721df;this[_0x219139(0x23d)](this[_0x219139(0x1fc)]['onCommandExecuted'](_0x5eefef=>{const _0x3345f5=_0x219139;if(_0x5eefef['id']===Bn['id']){let {unitId:_0x158434,subUnitId:_0x49d313,drawingId:_0x134db5}=_0x5eefef[_0x3345f5(0x12c)];this[_0x3345f5(0x202)]+=0x1,this[_0x3345f5(0x2cb)]=this['_getShapeInfo'](_0x158434,_0x49d313,_0x134db5),this['_clearPopups'](),this[_0x3345f5(0xf4)]();}if(_0x5eefef['id']===zn['id']&&(this[_0x3345f5(0x2cb)]=null,this[_0x3345f5(0x145)]()),_0x5eefef['id']===_0x4ea02e['id']){let {unitId:_0x58fd65,subUnitId:_0x409ae9,shapeId:_0x3dee42}=_0x5eefef[_0x3345f5(0x12c)];if(this[_0x3345f5(0x2cb)]&&this[_0x3345f5(0x2cb)]['shapeId']===_0x3dee42){let _0x4180cf=this['_getShapeInfo'](_0x58fd65,_0x409ae9,_0x3dee42);_0x4180cf&&(this[_0x3345f5(0x202)]+=0x1,_0x4180cf[_0x3345f5(0xfc)]=this[_0x3345f5(0x202)],this['_activeShapeInfo']=_0x4180cf,this[_0x3345f5(0x10c)]&&this['_openShapeEditPanel']());}}})),this[_0x219139(0x23d)](this['_drawingManagerService'][_0x219139(0x225)][_0x219139(0x290)](_0x23b771=>{const _0x4547fa=_0x219139;if(this[_0x4547fa(0x10c)]===!0x1)return;if(_0x23b771[_0x4547fa(0x19e)]===0x0){this[_0x4547fa(0x2cb)]=null,this[_0x4547fa(0x145)]();return;}if(_0x23b771[_0x4547fa(0x19e)]===0x1&&_0x23b771[0x0][_0x4547fa(0x132)]===_0x91d30f[_0x4547fa(0x27a)]&&(this[_0x4547fa(0x202)]+=0x1,this[_0x4547fa(0x2cb)]=this[_0x4547fa(0x199)](_0x23b771[0x0][_0x4547fa(0xe5)],_0x23b771[0x0][_0x4547fa(0x183)],_0x23b771[0x0][_0x4547fa(0x121)]),this[_0x4547fa(0x2cb)])){this[_0x4547fa(0xf4)]();return;}let _0x5654ea=_0x23b771[_0x4547fa(0x10d)](_0x33f35f=>_0x33f35f[_0x4547fa(0x132)]===_0x91d30f['DRAWING_SHAPE']);if(_0x23b771[_0x4547fa(0x19e)]>0x1&&_0x5654ea['length']===_0x23b771['length']){if(this[_0x4547fa(0x202)]+=0x1,this[_0x4547fa(0x2cb)]=this[_0x4547fa(0x199)](_0x23b771[0x0][_0x4547fa(0xe5)],_0x23b771[0x0][_0x4547fa(0x183)],_0x23b771[0x0][_0x4547fa(0x121)]),this[_0x4547fa(0x2cb)]){this[_0x4547fa(0xf4)]();return;}}else{if(this[_0x4547fa(0x202)]+=0x1,this[_0x4547fa(0x2cb)]=this[_0x4547fa(0x199)](_0x23b771[0x0][_0x4547fa(0xe5)],_0x23b771[0x0][_0x4547fa(0x183)],_0x23b771[0x0]['drawingId']),this[_0x4547fa(0x2cb)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x4547fa(0xf4)]();return;}}this[_0x4547fa(0x145)]();}));}[_0x3721df(0xf4)](){const _0x31f20b=_0x3721df;this[_0x31f20b(0x2cb)]&&(this[_0x31f20b(0x1da)]=this[_0x31f20b(0x144)][_0x31f20b(0x1b7)]({'id':Sn,'header':{'title':this[_0x31f20b(0x11e)]['t'](_0x31f20b(0x222))},'width':0x184,'children':{'label':Sn,...this[_0x31f20b(0x2cb)]},'onClose':()=>{const _0x106e10=_0x31f20b;this['_drawingManagerService'][_0x106e10(0x2d1)](null),this[_0x106e10(0x2e2)]['setContextValue'](_0x133140,!0x1),this[_0x106e10(0x1da)]=null;}}),this[_0x31f20b(0x10c)]=!0x0);}[_0x3721df(0x145)](){const _0x5bdda8=_0x3721df;this[_0x5bdda8(0x10c)]=!0x1,this[_0x5bdda8(0x144)][_0x5bdda8(0x115)](Sn),this[_0x5bdda8(0x1da)]=null,this['_contextService'][_0x5bdda8(0x2b6)](_0x133140,!0x1),this[_0x5bdda8(0x212)][_0x5bdda8(0x2d1)](null);}};pr=Y([J(0x0,_0xeac766),J(0x1,_0x44ac9c(_0x55dc5d)),J(0x2,_0x444ff9),J(0x3,_0x44ac9c(_0x2318dd)),J(0x4,_0x44ac9c(_0x52ec80)),J(0x5,_0x27b781),J(0x6,_0x30b385),J(0x7,_0x44ac9c(_0x3d29b8)),J(0x8,_0x2d72db),J(0x9,_0x3ab9c0),J(0xa,_0x44ac9c(Zn))],pr);let $=class extends _0x358c74{constructor(_0x58c0e5=Vn,_0x232fd3,_0x4262c9,_0x45ebcd,_0x26b19e){const _0x23ddde=_0x3721df;super(),this[_0x23ddde(0x114)]=_0x58c0e5,this['_injector']=_0x232fd3,this[_0x23ddde(0x1fc)]=_0x4262c9,this['_configService']=_0x45ebcd,this[_0x23ddde(0x28f)]=_0x26b19e;let {..._0x350da8}=_0x49cfca({},Vn,this[_0x23ddde(0x114)]);this[_0x23ddde(0xdf)][_0x23ddde(0x1ba)](_0x23ddde(0x1c2),_0x350da8),this[_0x23ddde(0x2b5)]();}[_0x3721df(0x233)](){const _0x4aee9b=_0x3721df;_0x65477a(this[_0x4aee9b(0x13d)],[[pr],[ir],[X],[dr]]);}[_0x3721df(0xd8)](){const _0x198352=_0x3721df;this[_0x198352(0x13d)][_0x198352(0x2f5)](pr)[_0x198352(0x2df)]();}[_0x3721df(0x2fe)](){const _0x2f6b63=_0x3721df;[[sr],[Z],[cr]]['forEach'](_0x2ddaac=>this['_injector'][_0x2f6b63(0x198)](_0x2ddaac)),_0x65477a(this['_injector'],[[cr],[Z]]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a[_0x2f6b63(0x1a1)],[sr]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a[_0x2f6b63(0x1a1)],[er]),this[_0x2f6b63(0x28f)]['registerRenderModule'](_0x2c116a[_0x2f6b63(0x1a1)],[ur]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a['UNIVER_SHEET'],[nr]),this[_0x2f6b63(0x28f)][_0x2f6b63(0x2c1)](_0x2c116a[_0x2f6b63(0x1ae)],[rr]);}[_0x3721df(0x2cf)](){const _0x3841c8=_0x3721df;this[_0x3841c8(0x13d)][_0x3841c8(0x198)]([$n]),this[_0x3841c8(0x13d)]['get']($n);let _0x26d672=this[_0x3841c8(0x13d)];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]][_0x3841c8(0x1a9)](_0x46021e=>_0x26d672[_0x3841c8(0x198)](_0x46021e)),_0x65477a(this[_0x3841c8(0x13d)],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x3721df(0x2b5)](){const _0x2cbecc=_0x3721df;[xn,dn,zn,Bn,Dn,bn][_0x2cbecc(0x1a9)](_0x274da0=>this[_0x2cbecc(0x23d)](this[_0x2cbecc(0x1fc)]['registerCommand'](_0x274da0)));}};q($,_0x3721df(0xca),_0x2c116a[_0x3721df(0x1a1)]),q($,_0x3721df(0xa8),'SHEET_SHAPE_UI_PLUGIN'),q($,'packageName',Ln),q($,_0x3721df(0xfc),Rn),$=Y([_0x32752f(_0x2b9340,_0x4ca5b4,_0x437c52,_0x37e90c),J(0x1,_0x44ac9c(_0x12e678)),J(0x2,_0x27b781),J(0x3,_0x527c54),J(0x4,_0x3ab9c0)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x49d8a2=_0x208c;(function(_0x2d5ff8,_0x31f2ed){const _0x39c69c=_0x208c,_0x59e235=_0x2d5ff8();while(!![]){try{const _0x41cdb4=-parseInt(_0x39c69c(0x2f0))/0x1+parseInt(_0x39c69c(0x33b))/0x2*(-parseInt(_0x39c69c(0x250))/0x3)+parseInt(_0x39c69c(0x1a7))/0x4*(parseInt(_0x39c69c(0x308))/0x5)+-parseInt(_0x39c69c(0x102))/0x6*(-parseInt(_0x39c69c(0x1b2))/0x7)+-parseInt(_0x39c69c(0x156))/0x8*(parseInt(_0x39c69c(0x1f7))/0x9)+parseInt(_0x39c69c(0x110))/0xa+parseInt(_0x39c69c(0x187))/0xb;if(_0x41cdb4===_0x31f2ed)break;else _0x59e235['push'](_0x59e235['shift']());}catch(_0x101f99){_0x59e235['push'](_0x59e235['shift']());}}}(_0x4806,0xbbc9d));import{ComponentManager as _0x4dd7a3,IMenuManagerService as _0x25cc13,ISidebarService as _0xf1c3ee,IconManager as _0x45bf3a,MenuItemType as _0x2f4b7c,RibbonInsertGroup as _0x4cff09,getMenuHiddenObservable as _0x569198,useDependency as _0x2a5e25,useObservable as _0x57a615}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x20c995,ImageSourceTypeEnum as _0x4ed528,ShapeArrowSizeEnum as _0xd9107d,ShapeArrowTypeEnum as _0x1e506d,ShapeDefaultConfig as _0x2bea1d,ShapeFillEnum as _0x13bf97,ShapeLineTypeEnum as _0x3354c0,ShapeModel as _0x2a67cd,ShapeRenderModeEnum as _0x2d97cd,ShapeTypeEnum as _0x1ca39f,computeConnectorRouteLayout as _0x59ea91,getBasicShapeRotateBound as _0x4d4669,isConnectorShape as _0x5d2a5e,isCurvedConnectorShape as _0x41cad6,routeConnectorLineShape as _0x449797}from'@univerjs-pro/engine-shape';import{SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x370f9f,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x229ba4,ShapeEditPanel as _0x577577,ShapeFloatingToolbar as _0x3381e5,ShapeGroupEnum as _0x57c621,ShapePickerDropdown as _0x55b52d,ShapePickerPanel as _0x71cbe8,ShapeTextEditorContainer as _0x264bf4,ShapeTextFloatMenuRenderControllerBase as _0x596e22,ShapeTextFloatToolbar as _0x2d3b93,UniverShapeEditorUIPlugin as _0x464a71,activateDrawingObject as _0x3928d2,buildShapeTextDataUpdate as _0x1072ef,clearActiveDrawingObjects as _0xeb3392,createShapeTextBoxShapeData as _0x510160,getTextModel as _0xdf5543,getTextStyle as _0x45f466,normalizeShapeTextModel as _0x50ef04,plainShapeTextToDocumentData as _0x36c523,prepareShapeTextDocumentData as _0x55d4b7,resolveShapeTextDocumentRenderLayout as _0x110d01,resolveShapeTextEditorBehaviorShapeData as _0x31773d,resolveShapeTextEditorWrapStrategy as _0x17f1c5,shouldAllowShapeTextEditorHostSizeShrink as _0x7502d3,shouldClipShapeTextDocument as _0x3f71c6}from'@univerjs-pro/shape-editor-ui';import{InsertShapeCommand as _0x5db24c,InsertSheetsShapeMutation as _0x47dbbc,RemoveSheetsShapeMutation as _0x32e37c,SetShapeDrawingDataCommand as _0x357925,SetSheetsShapeRotateCommand as _0x45951d,SetSheetsShapeTextVerticalToggleCommand as _0x3209a5,SheetsShapeService as _0x1a451a,ToggleSheetsShapeFlipCommand as _0x4deace,UniverSheetsShapePlugin as _0x551142,UpdateConnectorRelationCommand as _0x1c01fb,UpdateLineShapeResizeCommand as _0x3b0863,UpdateSheetsShapeDataMutation as _0x22295a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5516a4,CommandType as _0xbd62c0,DependentOn as _0x15410a,Disposable as _0x1e0fa2,DocumentDataModel as _0x4de61b,DrawingTypeEnum as _0x336997,FOCUSING_COMMON_DRAWINGS as _0x26ab00,FOCUSING_SHAPE_TEXT_EDITOR as _0x7f228e,HorizontalAlign as _0x30a9f7,ICommandService as _0x3002c9,IConfigService as _0xb443b,IContextService as _0x2d429f,IImageIoService as _0x529318,IURLImageService as _0x225d5a,IUndoRedoService as _0x471f95,IUniverInstanceService as _0x2320a1,Inject as _0x3465f0,Injector as _0xab16b2,LocaleService as _0x9a7c24,Plugin as _0x257c5b,UniverInstanceType as _0x4c1a31,VerticalAlign as _0x2099ff,createInternalEditorID as _0x4f9780,generateRandomId as _0x3893c7,merge as _0x1c7285,toDisposable as _0x4f15f0,touchDependencies as _0x14b49a}from'@univerjs/core';import{CopySheetCommand as _0x54e5a0,RemoveSheetCommand as _0x414783,SheetInterceptorService as _0x85f95e,SheetPermissionCheckController as _0x2cc1a0,SheetSkeletonService as _0x834a52,SheetsSelectionsService as _0x25ed03,WorkbookEditablePermission as _0x3216bb,WorksheetEditPermission as _0x57e1db,attachRangeWithCoord as _0x37168f,discreteRangeToRange as _0x44b7b4,getSheetCommandTarget as _0x20e706}from'@univerjs/sheets';import{IDrawingManagerService as _0x5a9176,SetDrawingSelectedOperation as _0x42475e,getDrawingShapeKeyByDrawingSearch as _0x24e648}from'@univerjs/drawing';import{CURSOR_TYPE as _0x35244f,Circle as _0x1578ae,DRAWING_OBJECT_LAYER_INDEX as _0x529f4c,DocumentSkeleton as _0x3a7e93,DocumentViewModel as _0x3425b8,Documents as _0x5ca0dd,IRenderManagerService as _0x2565d9,Image as _0xd2487b,RENDER_CLASS_TYPE as _0x18ef31,SHEET_VIEWPORT_KEY as _0x42dea8,Shape as _0x176254,Transform as _0x3a4198,Vector2 as _0x1d9584}from'@univerjs/engine-render';import{COPY_TYPE as _0x4538e3,ISheetClipboardService as _0x4d0a59,PREDEFINED_HOOK_NAME as _0x951401,SheetCanvasPopManagerService as _0x57df42,SheetPrintInterceptorService as _0x4f0169,SheetScrollManagerService as _0x5480ae,SheetSkeletonManagerService as _0x4b5a3f,deriveStateFromActiveSheet$ as _0x291355,getCurrentRangeDisable$ as _0x1aaed7,getViewportByCell as _0x356c4d}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x1154b0,EMPTY as _0x4e602d,Observable as _0x17aabe,of as _0x5ba9b9,switchMap as _0x48371d}from'rxjs';import{DrawingCommonPanel as _0x4b0647,DrawingImageClipService as _0x52908b,DrawingRenderService as _0x4d04f3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x76290b,OBJECT_LIST_FLOATING_SECTION_ID as _0x21b1e9,ObjectListPanelBase as _0x1ea8c0,getCurrentUnitInfo as _0x5b5b76,getObjectListPanelLabels as _0x3137ac,getObjectListPanelSectionIdForDrawingType as _0x68c808,getObjectListPanelTypeName as _0x23c7c2,insertGroupObject as _0x4cf997}from'@univerjs/drawing-ui';import{jsx as _0x4c6044,jsxs as _0x52bc9b}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2da0f1}from'@univerjs-pro/license';import{SheetDrawingAnchor as _0x37e739,SheetsDrawingGroupCopyPasteController as _0x407497,UniverSheetsDrawingUIPlugin as _0x1c2191}from'@univerjs/sheets-drawing-ui';import{CopyDoubleIcon as _0x8cec5a}from'@univerjs/icons';import{DrawingApplyType as _0x20e0af,ISheetDrawingService as _0xc538a1,RemoveSheetDrawingCommand as _0x5f4db7,SetDrawingApplyMutation as _0x2fbd15,SetDrawingArrangeCommand as _0xa10ec9,SetSheetDrawingCommand as _0x577eb5,transformToAxisAlignPosition as _0x14cc4e,transformToDrawingPosition as _0x4ee577}from'@univerjs/sheets-drawing';import{memo as _0x3cdd19,useEffect as _0xecd31c,useMemo as _0x307aa0,useReducer as _0x3962a7,useState as _0x487ae5}from'react';import{DocSelectionManagerService as _0x529093}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x16c1cd,DocSelectionRenderService as _0x3889b2}from'@univerjs/docs-ui';function un(_0x5d612c,_0x46bac1){const _0x325f88=_0x208c;let _0x27cabe={};for(let _0x511249 of Object['keys'](_0x46bac1)){let _0x5d5140=_0x46bac1[_0x511249],_0x13a49e=_0x5d612c[_0x511249];if(_0x5d5140!==void 0x0){if(_0x13a49e===void 0x0){_0x27cabe[_0x511249]=void 0x0;continue;}typeof _0x5d5140==_0x325f88(0x196)&&_0x5d5140&&!Array[_0x325f88(0x154)](_0x5d5140)&&typeof _0x13a49e==_0x325f88(0x196)&&_0x13a49e&&!Array['isArray'](_0x13a49e)?_0x27cabe[_0x511249]=un(_0x13a49e,_0x5d5140):_0x27cabe[_0x511249]=_0x13a49e;}}return _0x27cabe;}const dn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x2e8),'handler':(_0x3c35ad,_0x35bc92)=>{const _0x44be3c=_0x49d8a2;let _0x22aef1=_0x3c35ad[_0x44be3c(0x1bc)](_0x1a451a),{unitId:_0x1e06ac,subUnitId:_0x1a379e,shapeType:_0x34b7a5,shapeId:_0x1a918b,shapeData:_0x4261e8,oldShapeJSON:_0x5f0b9d}=_0x35bc92;if(!_0x22aef1[_0x44be3c(0x296)](_0x1e06ac,_0x1a379e,_0x1a918b))return!0x1;let _0x2486f3=_0x3c35ad[_0x44be3c(0x1bc)](_0x3002c9),_0x5d4a67=_0x3c35ad[_0x44be3c(0x1bc)](_0x471f95),{oldShapeType:_0x35fe00,oldShapeData:_0x152b70={}}=_0x5f0b9d,_0x1c46a5=un(_0x152b70,_0x4261e8||{}),_0x57cdda={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x34b7a5,'shapeData':_0x4261e8}},_0x33bc57={'id':_0x22295a['id'],'params':{'unitId':_0x1e06ac,'subUnitId':_0x1a379e,'shapeId':_0x1a918b,'shapeType':_0x35fe00,'shapeData':_0x1c46a5}};return _0x2486f3['syncExecuteCommand'](_0x57cdda['id'],_0x57cdda[_0x44be3c(0x2ba)])?(_0x5d4a67[_0x44be3c(0x33c)]({'unitID':_0x1e06ac,'undoMutations':[_0x33bc57],'redoMutations':[_0x57cdda]}),!0x0):!0x1;}};function fn(_0x44e964,_0x533949,_0x16674d,_0x357e1e,_0x390024,_0x317f69){const _0x5ef3aa=_0x49d8a2;let _0x498dfd={'unitId':_0x533949,'subUnitId':_0x16674d,'shapeId':_0x357e1e,'shapeData':_0x317f69,'oldShapeJSON':_0x390024};return _0x44e964[_0x5ef3aa(0x2c5)](dn['id'],_0x498dfd);}function pn(_0x3caec4,_0xf4af9d,_0x4e9c64,_0xb1c7f,_0x5d449e,_0x4d1843){const _0x15303f=_0x49d8a2;let _0x3cc772={'unitId':_0xf4af9d,'subUnitId':_0x4e9c64,'shapeId':_0xb1c7f,'shapeData':_0x4d1843,'oldShapeJSON':_0x5d449e};return _0x3caec4[_0x15303f(0x2c5)](dn['id'],_0x3cc772);}function mn(_0x855a0d){'@babel/helpers - typeof';const _0x1f258f=_0x49d8a2;return mn=typeof Symbol==_0x1f258f(0x1fd)&&typeof Symbol[_0x1f258f(0x2c2)]=='symbol'?function(_0x254e6e){return typeof _0x254e6e;}:function(_0x4943af){const _0x4346df=_0x1f258f;return _0x4943af&&typeof Symbol==_0x4346df(0x1fd)&&_0x4943af[_0x4346df(0xe2)]===Symbol&&_0x4943af!==Symbol[_0x4346df(0xef)]?'symbol':typeof _0x4943af;},mn(_0x855a0d);}function hn(_0x35a624,_0x14d9e3){const _0x4ab4a7=_0x49d8a2;if(mn(_0x35a624)!=_0x4ab4a7(0x196)||!_0x35a624)return _0x35a624;var _0x565585=_0x35a624[Symbol['toPrimitive']];if(_0x565585!==void 0x0){var _0x59fbbe=_0x565585['call'](_0x35a624,_0x14d9e3||_0x4ab4a7(0x271));if(mn(_0x59fbbe)!='object')return _0x59fbbe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x14d9e3===_0x4ab4a7(0x202)?String:Number)(_0x35a624);}function gn(_0x152aaf){const _0x220dc0=_0x49d8a2;var _0x2bf159=hn(_0x152aaf,_0x220dc0(0x202));return mn(_0x2bf159)==_0x220dc0(0x10c)?_0x2bf159:_0x2bf159+'';}function q(_0x37cb0e,_0x4be070,_0x39d2ed){const _0x1e7906=_0x49d8a2;return(_0x4be070=gn(_0x4be070))in _0x37cb0e?Object[_0x1e7906(0x117)](_0x37cb0e,_0x4be070,{'value':_0x39d2ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37cb0e[_0x4be070]=_0x39d2ed,_0x37cb0e;}function _n(_0x4776ea,_0x2b735f,_0x188fdb){const _0x2f95a3=_0x49d8a2;var _0x1f054e;let _0x288329=_0x31773d(_0x4776ea,{..._0x2b735f,'dataModel':{...(_0x1f054e=_0x2b735f[_0x2f95a3(0x2e0)])==null?{}:_0x1f054e,..._0x188fdb?{'doc':_0x188fdb}:null}}),_0x446e01=_0x17f1c5(_0x288329);return{'clip':_0x3f71c6(_0x288329,_0x446e01),'wrapStrategy':_0x446e01};}var vn=class extends _0x176254{constructor(_0x21ce4e,_0x3fbfdb){const _0x3c83af=_0x49d8a2;super(_0x21ce4e,_0x3fbfdb),q(this,_0x3c83af(0x122),void 0x0),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x3c83af(0x1a6),_0x336997['DRAWING_SHAPE']),q(this,_0x3c83af(0xdf),!0x0),this[_0x3c83af(0x122)]={..._0x3fbfdb},this['_init']();}[_0x49d8a2(0x2fa)](){const _0x1966a0=_0x49d8a2;this[_0x1966a0(0x135)]['subscribeEvent'](_0x33b45e=>{const _0x67d95e=_0x1966a0;this[_0x67d95e(0x2ff)](_0x33b45e);});}['setPrstGeom'](_0x727b41){const _0x3270bc=_0x49d8a2;this['_props'][_0x3270bc(0x178)]=_0x727b41;}['setEditing'](_0x264ae0){this['_props']['isEditing']=_0x264ae0,this['makeDirty'](!0x0);}get['unitId'](){const _0x27e342=_0x49d8a2;return this[_0x27e342(0x122)][_0x27e342(0x1b7)];}get[_0x49d8a2(0x2b4)](){const _0x375da2=_0x49d8a2;return this[_0x375da2(0x122)][_0x375da2(0x2b4)];}[_0x49d8a2(0x2ff)](_0x1366d0){const _0x506605=_0x49d8a2;if(this[_0x506605(0x122)][_0x506605(0x225)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x594213,height:_0x3f644b}=this,{width:_0x18f567=0x0,height:_0x38ea7d=0x0}=_0x1366d0['preValue'],{left:_0x3dc584=0x0,top:_0x29bdfb=0x0,right:_0x4c85f4=0x0,bottom:_0x2e9662=0x0}=this['_props'][_0x506605(0x225)],_0x4378df=_0x3dc584,_0x258e38=_0x29bdfb,_0x2f1899=_0x4c85f4,_0x27795c=_0x2e9662,_0x141dc8=!0x1;if(_0x18f567!==0x0&&_0x18f567!==_0x594213){let _0x545720=_0x3dc584/_0x18f567,_0x283d50=_0x4c85f4/_0x18f567;_0x4378df=_0x594213*_0x545720,_0x2f1899=_0x594213*_0x283d50,_0x141dc8=!0x0;}if(_0x38ea7d!==0x0&&_0x38ea7d!==_0x3f644b){let _0xc5f78=_0x29bdfb/_0x38ea7d,_0x20c1d6=_0x2e9662/_0x38ea7d;_0x258e38=_0x3f644b*_0xc5f78,_0x27795c=_0x3f644b*_0x20c1d6,_0x141dc8=!0x0;}_0x141dc8&&this[_0x506605(0x279)]({'left':_0x4378df,'top':_0x258e38,'right':_0x2f1899,'bottom':_0x27795c});}['setSrcRect'](_0xf412cc){const _0xd8a8d2=_0x49d8a2;this[_0xd8a8d2(0x122)][_0xd8a8d2(0x225)]=_0xf412cc,this[_0xd8a8d2(0x165)](!0x0);}['setFillImage'](_0xceef10){const _0x1aaeae=_0x49d8a2;this[_0x1aaeae(0x122)][_0x1aaeae(0x157)]=_0xceef10,this[_0x1aaeae(0x165)](!0x0);}set[_0x49d8a2(0x166)](_0x30bc04){const _0x6db4af=_0x49d8a2;this[_0x6db4af(0x293)]=_0x30bc04;}get[_0x49d8a2(0x166)](){const _0x44ea1d=_0x49d8a2;this[_0x44ea1d(0x293)]||this['_setTransForm']();let _0xfb31fd=this['_transform'][_0x44ea1d(0x148)]();return this[_0x44ea1d(0x1bd)](_0xfb31fd);}get['shapeModel'](){const _0x50103e=_0x49d8a2;return this[_0x50103e(0x122)][_0x50103e(0x11d)];}get[_0x49d8a2(0x142)](){const _0x268624=_0x49d8a2;return this[_0x268624(0x122)]['shapeId'];}get['classType'](){const _0x4aaae4=_0x49d8a2;return _0x18ef31[_0x4aaae4(0x29d)];}['_draw'](_0x131002,_0x73b0e5,_0x1d0c20,_0x56cfeb){const _0x30d5bf=_0x49d8a2;let _0x5b5381=this[_0x30d5bf(0x122)][_0x30d5bf(0x11d)];if(!_0x5b5381||!_0x73b0e5)return;let _0x423b91=_0x1d0c20==null?this[_0x30d5bf(0x2b9)]:_0x1d0c20,_0x3a213f=_0x56cfeb==null?this[_0x30d5bf(0x232)]:_0x56cfeb,_0x755730={'shapeType':_0x5b5381[_0x30d5bf(0x285)](),'width':_0x423b91,'height':_0x3a213f},_0x5b52ca={'renderMode':_0x2d97cd[_0x30d5bf(0x245)],'oKey':this['oKey'],'image':this['_props']['image'],'angle':this[_0x30d5bf(0x1fa)]};_0x5b5381[_0x30d5bf(0x314)](_0x755730),_0x131002[_0x30d5bf(0x30b)]();let _0x2cdcb4={'top':0x0,'left':0x0,'width':_0x423b91,'height':_0x3a213f};_0x5b5381[_0x30d5bf(0x2b5)](_0x131002,_0x2cdcb4,_0x5b52ca),_0x131002[_0x30d5bf(0x13e)]();let _0x970d64=_0x5b5381[_0x30d5bf(0x1cc)](),_0xb358ef=_0x5b5381[_0x30d5bf(0x2fc)](_0x2cdcb4),_0x4ca119=_0x5b5381[_0x30d5bf(0xe0)]();if(_0x970d64&&_0xb358ef&&!_0x4ca119){_0x131002[_0x30d5bf(0x30b)](),this['getState']()['flipX']&&_0x131002[_0x30d5bf(0x32e)](-0x1,0x1);let _0x4c6b9a=_0x423b91/0x2,_0x14a469=_0x3a213f/0x2;_0x131002['translate'](-_0x4c6b9a,-_0x14a469),_0x131002['beginPath'](),this['_drawShapeText'](_0x131002,_0x970d64,_0xb358ef),_0x131002['restore']();}}['getDrawingPoints'](_0x48e7c4){}[_0x49d8a2(0x194)](_0x14ab28,_0x13c102,_0x220252){const _0x13350f=_0x49d8a2;var _0x328dbe;this[_0x13350f(0x122)]['isEditing']||(!((_0x328dbe=_0x13c102[_0x13350f(0x2e0)])!=null&&_0x328dbe[_0x13350f(0x15f)])&&_0x13350f(0xec)in _0x13c102&&_0x13c102[_0x13350f(0xec)]===!0x1?this[_0x13350f(0x24b)](_0x14ab28,_0x13c102,_0x220252):this['_drawRichText'](_0x14ab28,_0x13c102,_0x220252));}[_0x49d8a2(0x24b)](_0x8f43ee,_0x379eed,_0x4e41dc){const _0x4e0cad=_0x49d8a2;var _0x2583c5;this[_0x4e0cad(0x1aa)](_0x8f43ee,{..._0x379eed,'text':(_0x2583c5=_0x379eed['text'])==null?'':_0x2583c5,'dataModel':{'doc':_0x36c523(_0x379eed,'sheets-shape-text-'+this[_0x4e0cad(0x163)])}},_0x4e41dc);}[_0x49d8a2(0x1aa)](_0x482e69,_0x38c752,_0x517a8e){const _0x490034=_0x49d8a2;var _0x331875,_0x2789d0;let _0x213a03=this[_0x490034(0x122)][_0x490034(0x244)];if(!_0x38c752[_0x490034(0x2e0)]||!_0x213a03)return;let _0x5c103f=_0x50ef04(_0x38c752['dataModel']);if(!_0x5c103f)return;let _0x55d496=_0x5c103f[_0x490034(0x15f)];if(!_0x55d496)return;let _0x7dc632=(_0x331875=_0x5c103f['va'])==null?_0x2099ff['TOP']:_0x331875,_0x227ebf=(_0x2789d0=_0x5c103f['ha'])==null?_0x30a9f7[_0x490034(0x204)]:_0x2789d0,_0x130197=_n(this['_props'][_0x490034(0x11d)][_0x490034(0x205)](),_0x38c752,_0x55d496),_0x37d1cf=_0x38c752['isHorizontal'],_0x5a2b37=new _0x4de61b(_0x55d4b7(_0x55d496,{'isHorizontal':_0x37d1cf!==!0x1,'textRect':_0x517a8e,'verticalAlign':_0x7dc632,'horizontalAlign':_0x227ebf,'wrapStrategy':_0x130197[_0x490034(0x253)]})),_0x18a652=new _0x3425b8(_0x5a2b37),_0x325633=_0x3a7e93[_0x490034(0x1cd)](_0x18a652,_0x213a03);_0x325633[_0x490034(0x174)]();let _0x325836=_0x325633['getActualSize']()[_0x490034(0x1dc)],_0x24bf5a=_0x110d01({'contentHeight':_0x325836,'verticalAlign':_0x7dc632,'viewportHeight':_0x517a8e[_0x490034(0x232)]});_0x5a2b37['updateDocumentStyle']({'pageSize':{'width':_0x37d1cf===!0x1?_0x517a8e[_0x490034(0x232)]:_0x517a8e['width'],'height':_0x24bf5a['contentHeight']}}),_0x5a2b37[_0x490034(0x274)]({'t':_0x24bf5a['marginTop']}),_0x325633[_0x490034(0x174)]();let _0x731c4=new _0x5ca0dd(_0x490034(0x192)+this[_0x490034(0x163)],_0x325633,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x490034(0x165)](!0x0)});_0x731c4['resize'](_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x255)]),_0x482e69[_0x490034(0x30b)](),_0x482e69[_0x490034(0x27a)](_0x517a8e[_0x490034(0x26f)],_0x517a8e[_0x490034(0x25d)]),_0x130197[_0x490034(0x12b)]&&(_0x482e69['beginPath'](),_0x482e69[_0x490034(0x10b)](0x0,_0x24bf5a[_0x490034(0x11e)],_0x517a8e[_0x490034(0x2b9)],_0x24bf5a[_0x490034(0x14e)]),_0x482e69['clip']()),_0x24bf5a['contentVerticalOffset']&&_0x482e69[_0x490034(0x27a)](0x0,_0x24bf5a[_0x490034(0x226)]),_0x731c4[_0x490034(0x298)](_0x482e69),_0x482e69[_0x490034(0x13e)](),_0x731c4[_0x490034(0x2b0)](),_0x325633['dispose'](),_0x18a652['dispose'](),_0x5a2b37[_0x490034(0x2b0)]();}[_0x49d8a2(0x2b5)](_0xc783ff,_0x51ddd9,_0x513a5e=!0x1){const _0x53cdc8=_0x49d8a2;if(!this[_0x53cdc8(0x316)])return this[_0x53cdc8(0x165)](!0x1),this;let {width:_0x46a8ce,height:_0x1f4b46,left:_0x1bba4d,top:_0x4c174b}=this,_0x4ee6c1=this[_0x53cdc8(0x23d)]();if(_0x46a8ce=_0x4ee6c1['width'],_0x1f4b46=_0x4ee6c1[_0x53cdc8(0x232)],_0x1bba4d=_0x4ee6c1['left'],_0x4c174b=_0x4ee6c1[_0x53cdc8(0x25d)],this[_0x53cdc8(0x1cb)](_0x51ddd9)){let {top:_0x36c3c6,left:_0x4ec051,bottom:_0x2dead7,right:_0x36d197}=_0x51ddd9[_0x53cdc8(0x2f8)];if(_0x46a8ce+this[_0x53cdc8(0x276)]+_0x1bba4d<_0x4ec051||_0x36d197<_0x1bba4d||_0x1f4b46+this[_0x53cdc8(0x276)]+_0x4c174b<_0x36c3c6||_0x2dead7<_0x4c174b)return this;}let _0x392cf9=_0x1bba4d+_0x46a8ce/0x2,_0x26859f=_0x4c174b+_0x1f4b46/0x2,_0x4c5786=this[_0x53cdc8(0x166)][_0x53cdc8(0x1d8)]();if(this['_props'][_0x53cdc8(0x193)]){let _0x3e654e=this['getState'](),_0x435b83=new _0x3a4198();_0x435b83[_0x53cdc8(0xf7)]({..._0x3e654e}),_0x4c5786=_0x435b83[_0x53cdc8(0x1d8)]();}return _0xc783ff[_0x53cdc8(0x30b)](),this[_0x53cdc8(0x122)][_0x53cdc8(0x11d)]['isRenderLinePointsMode']===!0x0||_0xc783ff[_0x53cdc8(0x166)](_0x4c5786[0x0],_0x4c5786[0x1],_0x4c5786[0x2],_0x4c5786[0x3],_0x392cf9,_0x26859f),this[_0x53cdc8(0x15e)](_0xc783ff,_0x51ddd9,_0x46a8ce,_0x1f4b46),_0xc783ff[_0x53cdc8(0x13e)](),this['makeDirty'](!0x1),this;}[_0x49d8a2(0x2be)](_0x58292f){const _0x304271=_0x49d8a2;let {left:_0x2afae3,top:_0xbccd06,width:_0x2f3764,height:_0x23fffd}=this[_0x304271(0x23d)](),_0x37cc46=this[_0x304271(0x166)]['getMatrix'](),_0xf86c3b=_0x2afae3+_0x2f3764/0x2,_0x128968=_0xbccd06+_0x23fffd/0x2,_0x10b4ca=new _0x3a4198([_0x37cc46[0x0],_0x37cc46[0x1],_0x37cc46[0x2],_0x37cc46[0x3],_0xf86c3b,_0x128968]),_0xc8baf2=this['getParent']();return(this['isInGroup']&&(_0xc8baf2==null?void 0x0:_0xc8baf2[_0x304271(0x2e7)])===_0x18ef31[_0x304271(0x237)]?_0xc8baf2[_0x304271(0x22a)][_0x304271(0x1be)](_0x10b4ca):_0x10b4ca)[_0x304271(0x2e4)]()[_0x304271(0x305)](_0x58292f);}['isHit'](_0x15e219){const _0x424868=_0x49d8a2;let {left:_0x59e365,top:_0x444d00,width:_0x447c07,height:_0x56a902}=this[_0x424868(0x23d)](),_0xe955a5=_0x59e365+_0x447c07/0x2,_0x3ddfab=_0x444d00+_0x56a902/0x2,_0x22fb59=this[_0x424868(0x166)][_0x424868(0x1d8)](),_0x517f88=new _0x3a4198([_0x22fb59[0x0],_0x22fb59[0x1],_0x22fb59[0x2],_0x22fb59[0x3],_0xe955a5,_0x3ddfab]),_0x4ebb0e=this[_0x424868(0x2bf)](),_0x36543e=(this[_0x424868(0x234)]&&(_0x4ebb0e==null?void 0x0:_0x4ebb0e[_0x424868(0x2e7)])===_0x18ef31[_0x424868(0x237)]?_0x4ebb0e[_0x424868(0x22a)][_0x424868(0x1be)](_0x517f88):_0x517f88)['invert']()[_0x424868(0x305)](_0x15e219),_0x188c2c=_0x447c07/0x2,_0x4a82a2=_0x56a902/0x2,_0x42b309=this[_0x424868(0x122)][_0x424868(0x11d)];return _0x42b309&&_0x42b309[_0x424868(0xe0)]()?_0x42b309[_0x424868(0x16a)](_0x36543e['x'],_0x36543e['y'],_0x447c07,_0x56a902):_0x36543e['x']>=-_0x188c2c-this[_0x424868(0x276)]/0x2&&_0x36543e['x']<=_0x188c2c+this[_0x424868(0x276)]/0x2&&_0x36543e['y']>=-_0x4a82a2-this['strokeWidth']/0x2&&_0x36543e['y']<=_0x4a82a2+this[_0x424868(0x276)]/0x2;}[_0x49d8a2(0x2b0)](){const _0x50cd92=_0x49d8a2;this[_0x50cd92(0x122)][_0x50cd92(0x11d)]=null,super['dispose']();}},yn=class extends _0x176254{constructor(_0xdd539e,_0x59ed33){const _0x8b44ad=_0x49d8a2;super(_0xdd539e,_0x59ed33),q(this,_0x8b44ad(0x1d0),null),q(this,'_adjName',null),q(this,_0x8b44ad(0x330),null),q(this,_0x8b44ad(0x227),null),_0x59ed33&&this[_0x8b44ad(0x25e)](_0x59ed33);}[_0x49d8a2(0x275)](){const _0x176487=_0x49d8a2;return{'unitId':this['_unitId'],'subUnitId':this[_0x176487(0x227)],'drawingId':this[_0x176487(0x1d0)]};}['setShapeProps'](_0x28da57){const _0x2e94db=_0x49d8a2;_0x28da57[_0x2e94db(0x142)]!==void 0x0&&(this[_0x2e94db(0x1d0)]=_0x28da57[_0x2e94db(0x142)]),_0x28da57[_0x2e94db(0x1a2)]!==void 0x0&&(this[_0x2e94db(0x2ad)]=_0x28da57['adjName']),_0x28da57[_0x2e94db(0x1b7)]!==void 0x0&&(this['_unitId']=_0x28da57[_0x2e94db(0x1b7)]),_0x28da57['subUnitId']!==void 0x0&&(this[_0x2e94db(0x227)]=_0x28da57[_0x2e94db(0x2b4)]),this[_0x2e94db(0x112)]({'width':_0x28da57['width'],'height':_0x28da57[_0x2e94db(0x232)]});}['_draw'](_0x266a27){const _0x3bc03f=_0x49d8a2;_0x1578ae[_0x3bc03f(0x1bf)](_0x266a27,{'radius':_0x2bea1d[_0x3bc03f(0xe1)],'fill':_0x2bea1d[_0x3bc03f(0x256)],'stroke':_0x2bea1d[_0x3bc03f(0xdd)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4806(){const _0x5bd9db=['getRealBound','_initCommands','#bcbcbc','group','onload','onCommandExecuted','_getImageDrawingInfo','localeService','Path','_registerDrawingMoveHandler','isStartConnectorPoint','PictureFill','removeLinePoints','enableObjectsEvent','_drawSimpleText','_disposed','_addShapeConnectorHandlerObject','UUID','startArrow','15837hHqJNk','getImage','1.0.0-alpha.6','wrapStrategy','endConnectionDetection','contentHeight','adjHandleFill','_sidebarDisposable','trim','attachPopupToObject','getEditing','_isImagePointerDown','_calculateFreeEndpointAngle','top','setShapeProps','viewportScrollY','_registerImageShapeClipDelegate','UNIVER_SHEET','DRAWING_GROUP','setOnSavingEditorData','getShapeDataById','sheetTransform','stringify','_shapeRenderController','clip-adj-','_baseWidth','getDrawingByParam','_injector','pipe','skeleton','_sheetShapeAdjustController','left','fill','default','_connectorObjects','_isOpenedShapeEditPanel','updateDocumentDataMargin','getDrawingSearch','strokeWidth','open','getCurrentTypeOfUnit$','setSrcRect','translateWithPrecision','_onSavingEditorData$','_isDrawingShapePointDown','_clearPopups','getAdjustValueByName','gdRefAng','_registerOperations','VIEW_MAIN','DEFAULT_PASTE','targetShapeId','sectionFloating','getShapeType','_disposePopups','_registerFocusChangeHandler','_activeShapeId','length','renderDrawingShape','connector-handler-','_initEditingParams','_getImagePrstGeom','getConnectionInfo','_createControls','changeShapeType','initShapePopupMenu','SheetShapeTextEditorContainer','_transform','_handleBasicShapeUpdateConnectorLineShape','objects','getShapeModel','gdRefY','draw','_addShapeAdjustControl','sheet.shape.edit.panel','DRAWING_TABLE','_imageIoService','SHAPE','_createShapeAdjustControls','_handleConnectedEndpointPointerUp','PRINTING_COMPONENT_COLLECT','getAdjustInfoByName','_updateImageAdjValues','delete','startConnectionDetection','_isStartAdjusting','_reset','indexOf','updateShapeFillImage','_focusedDrawings','_highlightedSiteIndex','fillImageSourceType','CROSSHAIR','_adjName','UNIVER_DOC','_commandService','dispose','_clearShapeAdjustControls','shapeType','_shapes','subUnitId','render','_shapeService','DRAWING_IMAGE','addClipboardHook','width','params','_cxnIndex','_generatePasteMutations','_findShapeAtPoint','getInverseCoord','getParent','sin','keys','iterator','_index','getRenderById','executeCommand','getImageSourceCache','_componentManager','focusDrawing','SHEET_SHAPE_UI_PLUGIN','setPrstGeom','clearAdjustControls','values','registerClipDelegate','Arrow','_activeAdjustPointList','copyType','_registerDrawingFocusChangeHandler','index','from','MEDIA','_editingParams$','canvas','_draggingConnectorId','vertical','_copyInfo','sqrt','ang','remove$','stroke','getConnectorLinePoints','_localeService','dataModel','fillType','forward','unsubscribe','invert','cxnPointStrokeWidth','relation','classType','sheet.command.update-shape-data','_contextService','_executeConnectedRouteConnectionCommand','_getShapeAdjustPointListById','top-center','includes','some','sheets-shape-ui.rotateRight90','1342551ANEJQO','data','_activeShapeAdjustPointList','setEditing','changing$','_isHighlighted','_initialize','_registerIcons','viewBound','completeEditing','_init','sheets-shape-ui.imagePanel.crop.shape','getShapeTextRect','refreshTransform','_handleFreeEndpointPointerUp','_updateSrcRectByTransform','calcAdjValue','onPointerMove$','fillImageSource','_createShapePopupMenu','_baseHeight','applyPoint','getDrawingOrder','getObject','6261055tAmnUR','connection-site-','_targetShapeId','save','redo','offsetX','_getScrollInfo','_resetState','TOP','_clearConnectionSites','_baseShapeWidth','_activeShapeInfo','updateContext','_openShapeEditPanel','visible','fontSize','_executeConnectedRouteResizeCommand','video','_sheetDrawingShapeRenderController','onDblclick$','flipX','interceptCommand','sheets-shape-ui.insertShape','end','onReady','_getConnectionSiteAngle','changeEnd$','prstGeomAdjValues','_shapeUpdateListener','getAdjustNames','_popupMenuListener','_clipService','onRendered','_initCopyPaste','VIEW_MAIN_LEFT','registerFeaturePasteHook','getFocusDrawings','_findNearestConnectionSite','scale','activeAnObject','_unitId','startY','sheets-shape-ui.toggleFlipH','updateLinePoints','_sheetDrawingService','CUT','_attachAdjustEvent','INSERT','sheet.operation.open-shape-object-list-panel','title','_closeShapeEditPanel','252ijoXdU','pushUndoRedo','viewportScrollX','parent','getObjectIncludeInGroup','axisAlignSheetTransform','_hasReset','adjHandleStroke','gradientEndColor','isDrawingObject','isLineShape','adjHandleSize','constructor','_adjHandlerPointerUp','_handleConnectedEndpointMove','_initializedShapePopupMenu','syncExecuteCommand','gdRefX','_updateAdjustControlPositions','shapeText','clearAdjustValue','getShapeTypeById','isRichText','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','sheets-shape-ui','prototype','_currentConnectionTarget','_getShapeInfo','_sheetSkeletonService','setShapeData','selectable','with','description','composeMatrix','_sheetClipboardService','order','editingParams$','REMOVE','sheets-shape-ui.hidePanel','URL','DRAWING_UNIT','_showConnectionSites','getCurrentScrollState','_cxtHandlerPointerUp','6hfHxHr','shapeKey','featurePluginUpdateNotification','size','_urlImageService','_renderManagerService','stopPropagation','cxnPointStroke','getDrawingEditable','rect','symbol','registerRenderModule','sheets-shape-ui.permission.editErr','_baseShapeTop','5109480aUxUOK','forEach','transformByState','close','adjustValues','_executeConnectionCommand','interceptor','defineProperty','_currentUniverService','_getOrCreateShapeModel','_initPrinting','OPERATION','table','shapeModel','clipTop','CopyDoubleIcon','add','setFillImage','_props','localToWorld','_lastEditingShapeKey','getValue','_registerMoveHandler','update$','SELECTOR','_attachConnectorObjectEvent','_context','clip','computeStraightConnectorLayout','getDrawingPoints','drawingType','getUnit','worldPoints','_groupCopyPasteController','flipY','DRAWING_VIDEO','_iconManager','onTransformChange$','reverse','start','find','focus$','_loadShapePictureFill','getDrawingVisible','entries','drawing.operation.set-drawing-active','restore','_initMenu','COMMAND','Image','shapeId','_updateShapeAdjustControls','reduce','sheet.image-clip.shape-picker.component','SHAPE_TEXT','registerCommand','clone','getSelectedObjectMap','updateConnectionDetection','getTransformerByCreate','Rect','_currentScene','clipHeight','setContextValue','_insertShapes','getUnitType','setShouldShowAdjust','refreshShapeFillImage','isArray','_baseLeft','2431176tEtTQo','image','_baseShapeLeft','_drawingManagerService','next','_sheetPrintInterceptorService','hidden','_activeImageId','_draw','doc','_commandExecutedListener','addImageSourceCache','disableObjectsEvent','oKey','setPrstGeomAdjValues','makeDirty','transform','_connectionSiteObjects','univer-box-border\x20univer-px-4\x20univer-text-sm','getSheetBySheetId','isHitLine','_isStartConnectorPoint','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','disposeWithMe','sheets-shape-ui.objectListPanel.open','setCursor','sheets-shape-ui.objectListPanel.title','beforeCommandExecuted','_baseTop','DRAWING_DOM','calculate','_sidebarService','fontFamily','pick','prstGeom','_updateTransform','_adjHandlerPointerMove','cos','VIEW_MAIN_LEFT_TOP','_sheetBasicShapeConnectionPointController','endArrow','permissionCheckWithoutRange','_drawingAddListener','DRAWING_SHAPE','_sheetCanvasPopManagerService','getTransformer','rotation','_shapeTextEditingService','_clearControls','5830946CREyAZ','_generateCutPasteMutations','VIEW_MAIN_TOP','_imageShapeClipController','getDrawingOKey','activeSheet$','resetCursor','offsetY','_config','sheet.shape.text.float-menu','sheet.shape.picker.component','shape-text-','isEditing','_drawShapeText','ShapeIcon','object','_handleConnectorPointerUp','getConnectionSiteList','getCurrentUnitOfType','sheetViewStartColumn','subscribeEvent','_registerGroupFeaturePasteHook','_loadAndSetImage','_moveConnectorWithShape','shape-adjust-point-','registerFeatureMenuOffset','map','adjName','Large','getSkeleton','DRAWING_SMART_ART','_drawingType','4hNKHvo','error','getBatchRemoveOp','_drawRichText','bind','clear','_activeTargetShapeId','DRAWING_CHART','BUTTON','shape','Medium','7640045AsVKzU','_rerouteConnectorLine','getConnectionRelation','div','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','unitId','_univerInstanceService','_getConnectPointInfo','getBasicShapeRelation','_registerComponents','get','transformForAngle','multiply','drawWith','_sheetInterceptorService','_clearShapeConnectorHandlerObjects','_baseShapeHeight','getSkeletonParam','worldPoint','shapeData','refreshAdjustControls','addObject','unit','_getSceneAndTransformerByDrawingSearch','onPointerDown$','isRender','getShapeTextData','create','sheet.operation.open-sheet-shape-format-panel','setAdjustValueByName','_shapeId','_isShouldShowDrawingShapeAdjust','_isConnecting','custom','SolidFill','_executeResizeCommand','_initEvents','extraProps','getMatrix','getStartConnectInfo','filter','_activeShapeModel','actualHeight','name','gdRefR','clip-','getCurrentSkeleton','sheets-shape-ui.toggleTextVertical','version','#4285f4','_initSheetChange','complete','sheet.shape.object-list.panel','computeConnectorResizeLayout','sheet.command.menu-insert-shape','_activeAdjustInfo','abs','cxnPointRadius','isHighlighted','_getDrawingRect','sheet.shape.floating-toolbar','getCurrentLastSelection','normal','blockExecuteWithoutPermission','changeStart$','undo','_generateCopyPasteMutations','startX','sheets-shape-ui.openPanel','18sWnEDp','_baseDrawingRect','doc.image-clip.shape-picker.component','angle','clipByShape','onPointerUp$','function','highlighted','type','smartArt','None','string','_shapeEditPanelVersion','LEFT','getShapeData','sheetViewStartRow','_sheetPermissionCheckController','packageName','onerror','set','getBatchAddOp','_getShapeAdjustInfosById','_insertingShapeKeys','drawingId','setCanUseShapeClip','UPDATE','_addShapeConnectorHandlerObjects','subscribe','sectionCanvas','push','has','SolidLine','cxnIndex','sheets-shape-ui.config','_addControl','getOwnPropertyDescriptor','_drawingRenderService','value','register','_createCopyInfoByRange','_handleFreeEndpointMove','_sheetsShapeService','getZoomRatio','cxnPointFill','getEndConnectInfo','_getZoomRatio','srcRect','contentVerticalOffset','_subUnitId','scene','getUnitId','ancestorTransform','_cxtHandlerPointerMove','point','getDrawingDataForUnit','lineType','getBentTypeFromPoints','parse','_initPermission','height','getDrawingData','isInGroup','lineShapeId','horizontal','GROUP','worldRect','getShapePopupMenus','#FFFFFF','_configService','Line'];_0x4806=function(){return _0x5bd9db;};return _0x4806();}function J(_0xb3a217,_0x1500ed){return function(_0x29141b,_0x3e3e71){_0x1500ed(_0x29141b,_0x3e3e71,_0xb3a217);};}function Y(_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005){const _0x5b8e51=_0x49d8a2;var _0x3d4c39=arguments[_0x5b8e51(0x289)],_0x29f281=_0x3d4c39<0x3?_0x41dde7:_0x5d8005===null?_0x5d8005=Object[_0x5b8e51(0x21a)](_0x41dde7,_0x52f893):_0x5d8005,_0x5f5b4b;if(typeof Reflect==_0x5b8e51(0x196)&&typeof Reflect['decorate']==_0x5b8e51(0x1fd))_0x29f281=Reflect['decorate'](_0x52d7d5,_0x41dde7,_0x52f893,_0x5d8005);else{for(var _0x1d23d6=_0x52d7d5[_0x5b8e51(0x289)]-0x1;_0x1d23d6>=0x0;_0x1d23d6--)(_0x5f5b4b=_0x52d7d5[_0x1d23d6])&&(_0x29f281=(_0x3d4c39<0x3?_0x5f5b4b(_0x29f281):_0x3d4c39>0x3?_0x5f5b4b(_0x41dde7,_0x52f893,_0x29f281):_0x5f5b4b(_0x41dde7,_0x52f893))||_0x29f281);}return _0x3d4c39>0x3&&_0x29f281&&Object[_0x5b8e51(0x117)](_0x41dde7,_0x52f893,_0x29f281),_0x29f281;}let X=class extends _0x1e0fa2{constructor(_0xc7b7be,_0x282990,_0x3b5f84,_0x4a7dd1,_0x409765){const _0x2a11b4=_0x49d8a2;super(),this[_0x2a11b4(0x159)]=_0xc7b7be,this[_0x2a11b4(0x220)]=_0x282990,this[_0x2a11b4(0x2df)]=_0x3b5f84,this['_imageIoService']=_0x4a7dd1,this[_0x2a11b4(0x106)]=_0x409765;}[_0x49d8a2(0x28a)](_0x183459,_0xa406ea,_0x46fcfc){const _0x161f5f=_0x49d8a2;let {transform:_0x1c95f3,drawingType:_0x44e1d2,srcRect:_0x560d86,prstGeom:_0x5ba077,groupId:_0x10b00d,unitId:_0x399804,subUnitId:_0x42497e,drawingId:_0x2a0ac4,isMultiTransform:_0x3cd3d3,transforms:_0x299ac5,hidden:_0x3cf1a7,selectable:_0x3228ec}=_0x183459;if(_0x44e1d2!==_0x336997[_0x161f5f(0x181)]||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]()||_0x1c95f3==null)return;let _0x1d2d53=this[_0x161f5f(0x159)][_0x161f5f(0x10a)]();_0x1d2d53&&_0xa406ea['initTransformer'](_0x370f9f);let _0x51e870=_0x3cd3d3&&_0x299ac5?_0x299ac5:[_0x1c95f3],_0x34a08a=[];for(let _0x12314e of _0x51e870){let {left:_0x23478f,top:_0x17f99d,width:_0x183345,height:_0x283433,angle:_0x5873e8,flipX:_0x432d6c,flipY:_0x1c7b82,skewX:_0x4cd3eb,skewY:_0x3d352c}=_0x12314e,_0x445ab2=_0x51e870[_0x161f5f(0x2a7)](_0x12314e),_0x2707a4=_0x24e648({'unitId':_0x399804,'subUnitId':_0x42497e,'drawingId':_0x2a0ac4},_0x3cd3d3?_0x445ab2:void 0x0),_0x2f0354=_0xa406ea[_0x161f5f(0xda)](_0x2707a4);if(_0x2f0354!=null){_0x2f0354[_0x161f5f(0x112)]({'left':_0x23478f,'top':_0x17f99d,'width':_0x183345,'height':_0x283433,'angle':_0x5873e8,'flipX':_0x432d6c,'flipY':_0x1c7b82,'skewX':_0x4cd3eb,'skewY':_0x3d352c});continue;}let _0x19b12a=this[_0x161f5f(0x159)][_0x161f5f(0x306)](_0x399804,_0x42497e),_0x4d1bc9=_0x19b12a[_0x161f5f(0x2a7)](_0x2a0ac4);if(_0xa406ea['getObjectIncludeInGroup'](_0x2707a4)||!this[_0x161f5f(0x159)][_0x161f5f(0x13b)]())continue;let _0x37b3ea=this[_0x161f5f(0x220)]['getShapeModel'](_0x399804,_0x42497e,_0x2a0ac4);if(!_0x37b3ea)continue;let _0x30f654=new vn(_0x2707a4,{..._0x5d2a5e(_0x37b3ea[_0x161f5f(0x285)]())?{..._0x12314e,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x12314e},'zIndex':_0x4d1bc9===-0x1?_0x19b12a[_0x161f5f(0x289)]-0x1:_0x4d1bc9,'shapeModel':_0x37b3ea,'localeService':this[_0x161f5f(0x2df)],'shapeId':_0x2a0ac4,'unitId':_0x399804,'subUnitId':_0x42497e,'visible':_0x3cf1a7!==!0x0,'evented':_0x3228ec!==!0x1});_0xa406ea[_0x161f5f(0x1c7)](_0x30f654,_0x529f4c),_0x1d2d53&&_0xa406ea['attachTransformerTo'](_0x30f654),_0x10b00d&&_0x4cf997({'drawingId':_0x10b00d,'unitId':_0x399804,'subUnitId':_0x42497e},_0x30f654,_0xa406ea,this[_0x161f5f(0x159)]),_0x5ba077!=null&&_0x30f654[_0x161f5f(0x2ca)](_0x5ba077),_0x560d86!=null&&_0x30f654[_0x161f5f(0x279)](_0x560d86);let _0x3e036d=this[_0x161f5f(0x13a)](_0x30f654,_0x37b3ea[_0x161f5f(0x205)]());if(_0x3e036d){var _0x3ecd5c;_0x46fcfc==null||(_0x3ecd5c=_0x46fcfc['resourceCollector'])==null||_0x3ecd5c[_0x161f5f(0x120)](_0x3e036d);}_0x34a08a[_0x161f5f(0x214)](_0x30f654);}return _0x34a08a;}[_0x49d8a2(0x153)](_0x56d730){const _0xddfde5=_0x49d8a2;let _0x3abb37=_0x56d730[_0xddfde5(0x11d)][_0xddfde5(0x205)](),_0x4fa523=_0x3abb37['fill'];if(!_0x4fa523||_0x4fa523['fillType']!==_0x13bf97[_0xddfde5(0x248)]||!_0x4fa523[_0xddfde5(0x302)]){_0x56d730['setFillImage'](void 0x0);return;}this[_0xddfde5(0x13a)](_0x56d730,_0x3abb37);}[_0x49d8a2(0x13a)](_0x5a7c49,_0x562149){const _0x5e027e=_0x49d8a2;var _0x3c7896;let _0x122467=_0x562149[_0x5e027e(0x270)];if(!_0x122467||_0x122467[_0x5e027e(0x2e1)]!==_0x13bf97[_0x5e027e(0x248)]||!_0x122467[_0x5e027e(0x302)])return;let _0x3aa8ea=_0x122467[_0x5e027e(0x302)],_0x36cd84=(_0x3c7896=_0x122467[_0x5e027e(0x2ab)])==null?_0x4ed528[_0x5e027e(0xfd)]:_0x3c7896,_0x5ac8b9=this[_0x5e027e(0x29c)][_0x5e027e(0x2c6)](_0x3aa8ea,_0x36cd84);if(_0x5ac8b9){_0x5a7c49['setFillImage'](_0x5ac8b9);return;}return this[_0x5e027e(0x19d)](_0x5a7c49,_0x3aa8ea,_0x36cd84);}async['_loadAndSetImage'](_0x177cde,_0x4fc87b,_0x1ef0cc){const _0x3ef31f=_0x49d8a2;let _0x38dc1f;try{if(_0x1ef0cc===_0x4ed528[_0x3ef31f(0x24e)])_0x38dc1f=await this[_0x3ef31f(0x29c)][_0x3ef31f(0x251)](_0x4fc87b);else{if(_0x1ef0cc===_0x4ed528['URL'])try{_0x38dc1f=await this[_0x3ef31f(0x106)][_0x3ef31f(0x251)](_0x4fc87b);}catch{_0x38dc1f=_0x4fc87b;}else _0x38dc1f=_0x4fc87b;}}catch(_0x3e4405){console[_0x3ef31f(0x1a8)](_0x3ef31f(0x1b6),_0x3e4405);return;}await new Promise(_0x2d1c56=>{const _0x245545=_0x3ef31f;let _0x50861e=new window[(_0x245545(0x141))]();_0x50861e[_0x245545(0x241)]=()=>{const _0x15b258=_0x245545;this[_0x15b258(0x29c)][_0x15b258(0x161)](_0x4fc87b,_0x1ef0cc,_0x50861e),_0x177cde['setFillImage'](_0x50861e),_0x2d1c56();},_0x50861e[_0x245545(0x209)]=()=>{const _0x16014a=_0x245545;console[_0x16014a(0x1a8)](_0x16014a(0x16c),_0x4fc87b),_0x2d1c56();},_0x50861e['src']=_0x38dc1f;});}};X=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x9a7c24)),J(0x3,_0x529318),J(0x4,_0x225d5a)],X);let Z=class extends _0x1e0fa2{constructor(_0x3aebbc,_0x4b6fbe,_0xbe75ea,_0x1895b7,_0x8d9146,_0x289c49){const _0x2bde6b=_0x49d8a2;super(),this[_0x2bde6b(0x159)]=_0x3aebbc,this['_sheetsShapeService']=_0x4b6fbe,this[_0x2bde6b(0x107)]=_0xbe75ea,this[_0x2bde6b(0x31a)]=_0x1895b7,this[_0x2bde6b(0x1b8)]=_0x8d9146,this['_commandService']=_0x289c49,q(this,_0x2bde6b(0x288),null),q(this,'_unitId',null),q(this,_0x2bde6b(0x227),null),q(this,_0x2bde6b(0x2f2),void 0x0),q(this,_0x2bde6b(0x2b3),[]),q(this,_0x2bde6b(0x158),0x0),q(this,_0x2bde6b(0x10f),0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x2bde6b(0x2a5),!0x1),q(this,_0x2bde6b(0x1e9),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x2bde6b(0x17a),void 0x0),q(this,_0x2bde6b(0xe3),void 0x0),q(this,_0x2bde6b(0x1d1),!0x1),this[_0x2bde6b(0x2d1)](),this[_0x2bde6b(0x246)]();}[_0x49d8a2(0x2eb)](_0xcfd4a4,_0xbb8d88,_0x839645){const _0xcf92de=_0x49d8a2;let _0x377cf1=this[_0xcf92de(0x220)][_0xcf92de(0x296)](_0xcfd4a4,_0xbb8d88,_0x839645);if(_0x377cf1)return _0x377cf1[_0xcf92de(0x12d)]();}[_0x49d8a2(0x2cb)](){const _0x67b11=_0x49d8a2;this[_0x67b11(0x2b1)]();}[_0x49d8a2(0x1c6)](){this['_updateShapeAdjustControls'](!0x0);}[_0x49d8a2(0x152)](_0x408502){const _0x30cb79=_0x49d8a2;this[_0x30cb79(0x1d1)]=_0x408502;}[_0x49d8a2(0x20c)](_0x4f9178,_0x39c783,_0x280608,_0x332d05){const _0x958057=_0x49d8a2;let _0x508315=this['_sheetsShapeService']['getShapeModel'](_0x4f9178,_0x39c783,_0x280608);if(_0x508315)return _0x508315[_0x958057(0x2a1)](_0x332d05);}[_0x49d8a2(0x29e)](_0x10d2cd=!0x1){const _0x2a6f7e=_0x49d8a2;if(this[_0x2a6f7e(0x330)]===null||this[_0x2a6f7e(0x227)]===null||this[_0x2a6f7e(0x288)]===null)return;let _0x30e784=this[_0x2a6f7e(0x107)][_0x2a6f7e(0x2c4)](this['_unitId']);if(!_0x30e784||!_0x30e784[_0x2a6f7e(0xf5)](_0x4b5a3f)[_0x2a6f7e(0x1e0)]())return;let {scene:_0x3cc1f9}=_0x30e784,_0x577b58={'unitId':this[_0x2a6f7e(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2a6f7e(0x288)]},_0x484086=this[_0x2a6f7e(0x159)][_0x2a6f7e(0x26a)](_0x577b58),{transform:_0x28044d}=_0x484086;if(!_0x28044d||_0x484086['drawingType']!==_0x336997['DRAWING_SHAPE'])return;let {left:_0x21a817,top:_0x8767e6,width:_0x1fe606,height:_0x35ef5d,flipX:_0x979434,flipY:_0x3927ad,angle:_0x18c912=0x0}=_0x28044d;if(_0x21a817===void 0x0||_0x8767e6===void 0x0)return;_0x10d2cd&&(this[_0x2a6f7e(0x2f2)]=this[_0x2a6f7e(0x2eb)](this['_unitId'],this[_0x2a6f7e(0x227)],this['_activeShapeId']));let _0x25126f=this[_0x2a6f7e(0x2f2)];for(let _0x401736=0x0;_0x401736<_0x25126f[_0x2a6f7e(0x289)];_0x401736++){let _0x9bfae9=_0x25126f[_0x401736],_0x25f64f=_0x9bfae9['x'],_0x5675c2=_0x9bfae9['y'];if(_0x979434&&(_0x25f64f=(_0x1fe606||0x0)-_0x25f64f),_0x3927ad&&(_0x5675c2=(_0x35ef5d||0x0)-_0x5675c2),_0x18c912!==0x0){let _0x46a93f=(_0x1fe606||0x0)/0x2,_0x5446f5=(_0x35ef5d||0x0)/0x2,_0x3cab39=_0x18c912*Math['PI']/0xb4,_0x2fa816=Math[_0x2a6f7e(0x17b)](_0x3cab39),_0x5b6012=Math[_0x2a6f7e(0x2c0)](_0x3cab39),_0x393125=_0x25f64f-_0x46a93f,_0x155f55=_0x5675c2-_0x5446f5;_0x25f64f=_0x46a93f+(_0x393125*_0x2fa816-_0x155f55*_0x5b6012),_0x5675c2=_0x5446f5+(_0x393125*_0x5b6012+_0x155f55*_0x2fa816);}let _0x512737={'x':_0x25f64f,'y':_0x5675c2,'adjName':_0x9bfae9[_0x2a6f7e(0x1a2)]};this[_0x2a6f7e(0x299)](_0x3cc1f9,_0x512737,_0x512737[_0x2a6f7e(0x1a2)],_0x21a817,_0x8767e6,this[_0x2a6f7e(0x330)],this[_0x2a6f7e(0x227)]);}}[_0x49d8a2(0x143)](_0x2dec76=!0x1){const _0x12340f=_0x49d8a2;_0x2dec76&&(this[_0x12340f(0x2b1)](),this[_0x12340f(0x29e)](_0x2dec76));}[_0x49d8a2(0x299)](_0x1b09a7,_0x5165d9,_0x4d8f22,_0x49fd79,_0x327b37,_0x44ad33,_0x13153e){const _0x3a366f=_0x49d8a2;if(!this['_activeShapeId'])return;let _0x5127a0=_0x1b09a7['getObjectIncludeInGroup'](_0x3a366f(0x19f)+this[_0x3a366f(0x288)]+'-'+_0x4d8f22);if(_0x5127a0){_0x5127a0[_0x3a366f(0x112)]({'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)]});return;}let _0x28ab48={'left':_0x5165d9['x']+_0x49fd79-_0x2bea1d[_0x3a366f(0xe1)],'top':_0x5165d9['y']+_0x327b37-_0x2bea1d[_0x3a366f(0xe1)],'adjName':_0x4d8f22,'shapeId':this['_activeShapeId'],'unitId':_0x44ad33,'subUnitId':_0x13153e,'width':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'height':_0x2bea1d[_0x3a366f(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0},_0x493b85=new yn('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x4d8f22,_0x28ab48);this[_0x3a366f(0x2b3)][_0x3a366f(0x214)](_0x493b85),this[_0x3a366f(0x336)](_0x493b85,_0x1b09a7,_0x4d8f22),_0x1b09a7['addObject'](_0x493b85,_0x529f4c+0x1);}['_clearShapeAdjustControls'](){const _0x2d3282=_0x49d8a2;this[_0x2d3282(0x2b3)][_0x2d3282(0x289)]!==0x0&&(this[_0x2d3282(0x2b3)][_0x2d3282(0x111)](_0x168804=>{const _0x3346e5=_0x2d3282;_0x168804[_0x3346e5(0x2b0)]();}),this[_0x2d3282(0x2b3)]=[]);}[_0x49d8a2(0xe8)](){const _0x153462=_0x49d8a2;this[_0x153462(0x29e)]();}[_0x49d8a2(0x30e)](_0x3b3eb2,_0x1d61f9){const _0x253526=_0x49d8a2;var _0x52b773;let _0x5bbf57={'x':0x0,'y':0x0};if(!_0x3b3eb2||!_0x1d61f9)return _0x5bbf57;let _0x293cf6=this[_0x253526(0x107)][_0x253526(0x2c4)](_0x3b3eb2);if(!_0x293cf6||!_0x293cf6[_0x253526(0xf5)](_0x4b5a3f)[_0x253526(0x1a4)](_0x1d61f9))return _0x5bbf57;let _0x438003=_0x293cf6[_0x253526(0xf5)](_0x5480ae),_0x4ab9e5=_0x438003==null?void 0x0:_0x438003[_0x253526(0x100)]();if(!_0x4ab9e5)return _0x5bbf57;let _0x5b02ba=(_0x52b773=this[_0x253526(0x1b8)][_0x253526(0x12f)](_0x3b3eb2))==null?void 0x0:_0x52b773['getSheetBySheetId'](_0x1d61f9);if(!_0x5b02ba)return _0x5bbf57;let _0x257fe7=_0x356c4d(_0x4ab9e5[_0x253526(0x206)],_0x4ab9e5['sheetViewStartColumn'],_0x293cf6[_0x253526(0x228)],_0x5b02ba);return _0x257fe7?{'x':_0x257fe7[_0x253526(0x33d)],'y':_0x257fe7[_0x253526(0x25f)]}:_0x5bbf57;}[_0x49d8a2(0x224)](_0x374235,_0x505d02){const _0x21a3f2=_0x49d8a2;var _0x44c1ea,_0x813016;let _0x3fabc9=(_0x44c1ea=this[_0x21a3f2(0x1b8)][_0x21a3f2(0x12f)](_0x374235))==null?void 0x0:_0x44c1ea['getSheetBySheetId'](_0x505d02);return(_0x813016=_0x3fabc9==null?void 0x0:_0x3fabc9[_0x21a3f2(0x221)]())==null?0x1:_0x813016;}[_0x49d8a2(0x336)](_0x429c62,_0x42e49c,_0x905fa9){const _0x4b5fa0=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x429c62[_0x4b5fa0(0x1ca)][_0x4b5fa0(0x19b)]((_0x4a55a3,_0x153f6b)=>{const _0x183a09=_0x4b5fa0;var _0x4a9623,_0x473957,_0x25031f,_0x440550;let _0x5e968b=_0x429c62['getDrawingSearch']();this[_0x183a09(0x1e9)]=this[_0x183a09(0x20c)](_0x5e968b['unitId'],_0x5e968b['subUnitId'],_0x5e968b[_0x183a09(0x20e)],_0x905fa9),this[_0x183a09(0x1db)]=this[_0x183a09(0x220)][_0x183a09(0x296)](_0x5e968b['unitId'],_0x5e968b[_0x183a09(0x2b4)],_0x5e968b[_0x183a09(0x20e)]);let _0x1da94a=this[_0x183a09(0x159)][_0x183a09(0x26a)]({'unitId':this[_0x183a09(0x330)],'subUnitId':this[_0x183a09(0x227)],'drawingId':this['_activeShapeId']}),{transform:_0x5699a2}=_0x1da94a;if(_0x5699a2){let {left:_0x300435,top:_0x2a827b,width:_0x26733c,height:_0xa2716f}=_0x5699a2;this[_0x183a09(0x158)]=_0x300435||0x0,this[_0x183a09(0x10f)]=_0x2a827b||0x0,this[_0x183a09(0x312)]=_0x26733c||0x0,this['_baseShapeHeight']=_0xa2716f||0x0;}let _0x2507f9=!!((_0x4a9623=_0x1da94a[_0x183a09(0x166)])!=null&&_0x4a9623['flipX']),_0x4351d4=!!((_0x473957=_0x1da94a[_0x183a09(0x166)])!=null&&_0x473957[_0x183a09(0x132)]),_0x50cb41=((_0x25031f=_0x1da94a[_0x183a09(0x166)])==null?void 0x0:_0x25031f[_0x183a09(0x1fa)])||0x0;this[_0x183a09(0x2a5)]=!0x0,_0x42e49c[_0x183a09(0x162)]();let _0x412c8a=(_0x440550=this['_activeShapeModel'])==null?void 0x0:_0x440550['getAdjustValueByName'](_0x905fa9),_0x170901={[_0x905fa9]:_0x412c8a};this[_0x183a09(0x17a)]=_0x42e49c[_0x183a09(0x301)][_0x183a09(0x19b)]((_0x191d91,_0x1a496c)=>{const _0x2857bb=_0x183a09;if(!this[_0x2857bb(0x2a5)])return;let {offsetX:_0x27a99b,offsetY:_0x226e51}=_0x191d91,_0x3ef4dd=this[_0x2857bb(0x1e9)];if(this[_0x2857bb(0x1db)]&&_0x3ef4dd){_0x42e49c[_0x2857bb(0x162)](),_0x42e49c[_0x2857bb(0x16f)](_0x35244f['CROSSHAIR']);let _0xce89c7={'left':0x0,'top':0x0,'width':this[_0x2857bb(0x312)],'height':this[_0x2857bb(0x1c2)]},_0x368aff=this['_getScrollInfo'](this['_unitId'],this[_0x2857bb(0x227)]),_0x249022=this[_0x2857bb(0x224)](this[_0x2857bb(0x330)],this[_0x2857bb(0x227)]),_0x569805=_0x27a99b/_0x249022+_0x368aff['x']-this['_baseShapeLeft'],_0x5badc8=_0x226e51/_0x249022+_0x368aff['y']-this[_0x2857bb(0x10f)];if(_0x50cb41!==0x0){let _0x4dc7f1=this[_0x2857bb(0x312)]/0x2,_0x1fa3f1=this[_0x2857bb(0x1c2)]/0x2,_0x486857=_0x50cb41*Math['PI']/0xb4,_0x15b3a3=Math[_0x2857bb(0x17b)](_0x486857),_0x5ea094=Math[_0x2857bb(0x2c0)](_0x486857),_0x4040d9=_0x569805-_0x4dc7f1,_0x3a901f=_0x5badc8-_0x1fa3f1;_0x569805=_0x4dc7f1+(_0x4040d9*_0x15b3a3+_0x3a901f*_0x5ea094),_0x5badc8=_0x1fa3f1+(-_0x4040d9*_0x5ea094+_0x3a901f*_0x15b3a3);}_0x2507f9&&(_0x569805=this[_0x2857bb(0x312)]-_0x569805),_0x4351d4&&(_0x5badc8=this[_0x2857bb(0x1c2)]-_0x5badc8);let _0x24c362={'x':_0x569805,'y':_0x5badc8},_0x491ea0=this[_0x2857bb(0x1db)][_0x2857bb(0x300)](_0xce89c7,_0x24c362,_0x3ef4dd,_0x2507f9,_0x4351d4),_0x34fd8d=_0x3ef4dd[_0x2857bb(0xe7)]||_0x3ef4dd[_0x2857bb(0x297)]||_0x3ef4dd[_0x2857bb(0x27f)]||_0x3ef4dd[_0x2857bb(0x1de)];if(_0x34fd8d===void 0x0)return;this[_0x2857bb(0x1db)][_0x2857bb(0x1cf)](_0x34fd8d,_0x491ea0);let _0xbc5bc=this[_0x2857bb(0x159)]['getDrawingByParam']({'unitId':_0x5e968b[_0x2857bb(0x1b7)],'subUnitId':_0x5e968b[_0x2857bb(0x2b4)],'drawingId':_0x5e968b['drawingId']});_0xbc5bc&&(this[_0x2857bb(0x31a)][_0x2857bb(0x28a)](_0xbc5bc,_0x42e49c),this[_0x2857bb(0x2f2)]=this[_0x2857bb(0x2eb)](_0x5e968b[_0x2857bb(0x1b7)],_0x5e968b[_0x2857bb(0x2b4)],_0x5e968b[_0x2857bb(0x20e)]),this['_updateAdjustControlPositions']());}_0x1a496c[_0x2857bb(0x108)]();}),this[_0x183a09(0xe3)]=_0x42e49c[_0x183a09(0x1fc)][_0x183a09(0x19b)]((_0x2e36c1,_0x2a5efc)=>{const _0xa2c591=_0x183a09;this[_0xa2c591(0x17a)][_0xa2c591(0x2e3)](),this[_0xa2c591(0xe3)][_0xa2c591(0x2e3)](),_0x42e49c[_0xa2c591(0x18d)]();let _0x17d2b2=this[_0xa2c591(0x1e9)];if(_0x17d2b2){let _0x12e65f=_0x5e968b[_0xa2c591(0x1b7)],_0x5250e7=_0x5e968b[_0xa2c591(0x2b4)],_0x29eda6=_0x5e968b[_0xa2c591(0x20e)],_0x33c541=_0x17d2b2[_0xa2c591(0xe7)]||_0x17d2b2['gdRefY']||_0x17d2b2['gdRefAng']||_0x17d2b2['gdRefR'];if(_0x33c541!==void 0x0){var _0x29896f;let _0x1cfad6=(_0x29896f=this['_activeShapeModel'])==null?void 0x0:_0x29896f['getAdjustValueByName'](_0x33c541);_0x1cfad6!==void 0x0&&fn(this[_0xa2c591(0x2af)],_0x12e65f,_0x5250e7,_0x29eda6,{'oldShapeData':{'adjustValues':_0x170901}},{'adjustValues':{[_0x33c541]:_0x1cfad6}});}}this[_0xa2c591(0x1e9)]=void 0x0,this[_0xa2c591(0x1db)]=void 0x0,this[_0xa2c591(0x2a5)]=!0x1,_0x2a5efc['stopPropagation'](),_0x42e49c['enableObjectsEvent']();}),_0x153f6b['stopPropagation']();})));}[_0x49d8a2(0x246)](){const _0x4ee53e=_0x49d8a2;let _0x587288=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x4ee53e(0x261)]);this[_0x4ee53e(0x16d)](_0x587288[_0x4ee53e(0x26c)](_0x48371d(_0x37bc03=>_0x37bc03?_0x37bc03['activeSheet$'][_0x4ee53e(0x26c)](_0x48371d(_0x35f3dd=>{const _0x2fb329=_0x4ee53e;if(!_0x35f3dd)return _0x4e602d;let _0x4cee81=_0x37bc03[_0x2fb329(0x229)](),_0x199577=this['_renderManagerService'][_0x2fb329(0x2c4)](_0x4cee81),_0x129694=_0x199577==null?void 0x0:_0x199577[_0x2fb329(0x228)];return _0x129694?_0x5ba9b9(_0x129694):_0x4e602d;})):_0x4e602d))[_0x4ee53e(0x212)](_0x3a2c4b=>{const _0x39b755=_0x4ee53e;let _0x29ca3b=_0x3a2c4b[_0x39b755(0x14b)]();this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x301)][_0x39b755(0x19b)](()=>{const _0x234302=_0x39b755;this[_0x234302(0x1d1)];})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x1f2)][_0x39b755(0x212)](_0x552478=>{const _0x552468=_0x39b755;let {objects:_0x4a3f3f}=_0x552478;this['_createShapeAdjustControls'](),_0x4a3f3f!==null&&_0x4a3f3f[_0x552468(0x105)]===0x1&&_0x4a3f3f[_0x552468(0x2cc)]()[_0x552468(0x15a)]()[_0x552468(0x21c)]instanceof vn&&this['setShouldShowAdjust'](!0x0);})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x2f4)][_0x39b755(0x212)](()=>{const _0x2a8783=_0x39b755;this[_0x2a8783(0x1d1)]&&this[_0x2a8783(0x2b1)]();})),this[_0x39b755(0x16d)](_0x3a2c4b[_0x39b755(0x1fc)]['subscribeEvent'](()=>{const _0x1237f8=_0x39b755;this[_0x1237f8(0x1d1)]&&(this[_0x1237f8(0x152)](!0x1),this[_0x1237f8(0x29e)]());})),this[_0x39b755(0x16d)](_0x29ca3b[_0x39b755(0x322)][_0x39b755(0x212)](()=>{const _0x4a5d80=_0x39b755;this[_0x4a5d80(0x330)]&&this[_0x4a5d80(0x227)]&&this['_activeShapeId']&&this[_0x4a5d80(0x159)][_0x4a5d80(0x26a)]({'unitId':this[_0x4a5d80(0x330)],'subUnitId':this[_0x4a5d80(0x227)],'drawingId':this[_0x4a5d80(0x288)]})&&(this[_0x4a5d80(0x2f2)]=this[_0x4a5d80(0x2eb)](this[_0x4a5d80(0x330)],this[_0x4a5d80(0x227)],this[_0x4a5d80(0x288)]),this['_updateAdjustControlPositions']());}));}));}[_0x49d8a2(0x2d1)](){const _0x45f74f=_0x49d8a2;this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)][_0x45f74f(0x139)][_0x45f74f(0x212)](_0x166d74=>{const _0x2351a5=_0x45f74f;if(_0x166d74[_0x2351a5(0x289)]===0x1){let _0x2519a5=_0x166d74[0x0];if(_0x2519a5[_0x2351a5(0x12e)]===_0x336997['DRAWING_SHAPE']){this[_0x2351a5(0x288)]=_0x2519a5[_0x2351a5(0x20e)];let {unitId:_0x5bd236,subUnitId:_0x1cb204}=_0x2519a5;this[_0x2351a5(0x2f2)]=this[_0x2351a5(0x2eb)](_0x5bd236,_0x1cb204,this['_activeShapeId']),this[_0x2351a5(0x330)]=_0x5bd236,this['_subUnitId']=_0x1cb204,this[_0x2351a5(0x2b1)](),this['_createShapeAdjustControls']();}else this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this['_unitId']=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]();}(_0x166d74['length']>0x1||_0x166d74[_0x2351a5(0x289)]===0x0)&&(this[_0x2351a5(0x288)]=null,this[_0x2351a5(0x2f2)]=void 0x0,this[_0x2351a5(0x330)]=null,this[_0x2351a5(0x227)]=null,this[_0x2351a5(0x2b1)]());})),this[_0x45f74f(0x16d)](this['_drawingManagerService'][_0x45f74f(0x127)]['subscribe'](_0x2aceb=>{const _0x522799=_0x45f74f;if(_0x2aceb[_0x522799(0x289)]===0x1){var _0x5d2838;let _0x4ac4d2=_0x2aceb[0x0];((_0x5d2838=this[_0x522799(0x159)][_0x522799(0x26a)](_0x4ac4d2))==null?void 0x0:_0x5d2838[_0x522799(0x12e)])===_0x336997['DRAWING_SHAPE']&&this[_0x522799(0x143)](!0x0);}})),this[_0x45f74f(0x16d)](this[_0x45f74f(0x159)]['remove$'][_0x45f74f(0x212)](_0x37ff47=>{const _0x48087c=_0x45f74f;for(let _0x5c55a2 of _0x37ff47)this[_0x48087c(0x288)]===_0x5c55a2[_0x48087c(0x20e)]&&(this[_0x48087c(0x288)]=null,this[_0x48087c(0x2f2)]=void 0x0,this[_0x48087c(0x330)]=null,this[_0x48087c(0x227)]=null,this[_0x48087c(0x2b1)]());}));}};Z=Y([J(0x0,_0x5a9176),J(0x1,_0x3465f0(_0x1a451a)),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x3465f0(X)),J(0x4,_0x2320a1),J(0x5,_0x3002c9)],Z);const bn={'id':_0x49d8a2(0x13d),'type':_0xbd62c0[_0x49d8a2(0x11b)],'handler':(_0x143329,_0x2b724b)=>{const _0xf8d449=_0x49d8a2;let _0x252d18=_0x143329[_0xf8d449(0x1bc)](_0x5a9176),_0x42fd73=_0x143329['get'](_0x2565d9),_0x4b65fd=_0x143329['get'](Z);if(_0x2b724b==null)return!0x0;if(_0x2b724b[_0xf8d449(0x289)]>0x0){var _0x151571;let _0x243061=(_0x151571=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null?void 0x0:_0x151571[_0xf8d449(0x228)];if(_0x243061){let {unitId:_0x1aa4da,subUnitId:_0x11cf1f,drawingId:_0x4851a8}=_0x2b724b[0x0],_0x384b1d=_0x24e648({'unitId':_0x1aa4da,'subUnitId':_0x11cf1f,'drawingId':_0x4851a8},void 0x0),_0x3df695=_0x243061[_0xf8d449(0xda)](_0x384b1d);if(_0x3df695){var _0x1a28bd;(_0x1a28bd=_0x42fd73[_0xf8d449(0x2c4)](_0x2b724b[0x0][_0xf8d449(0x1b7)]))==null||(_0x1a28bd=_0x1a28bd[_0xf8d449(0x228)][_0xf8d449(0x183)]())==null||_0x1a28bd[_0xf8d449(0x32f)](_0x3df695);}}_0x252d18[_0xf8d449(0x2c8)](_0x2b724b),_0x4b65fd['setShouldShowAdjust'](!0x1);}return!0x0;}},xn={'type':_0xbd62c0[_0x49d8a2(0x140)],'id':_0x49d8a2(0x1e8),'handler':async(_0x2f9856,_0x10b0d8)=>{const _0x1b0073=_0x49d8a2;let _0x37ad65=_0x20e706(_0x2f9856['get'](_0x2320a1));if(!_0x37ad65)return!0x1;let _0x4b87f1=_0x2f9856[_0x1b0073(0x1bc)](_0x25ed03)[_0x1b0073(0x1ef)]();if(!_0x4b87f1)return!0x1;let _0x1a8ca6=_0x2f9856['get'](_0x3002c9),{unitId:_0x5bcdcd,subUnitId:_0x4298a8}=_0x37ad65,{value:_0x57fb5c,enhanceParams:_0x5be7ea}=_0x10b0d8,{range:_0x58c794}=_0x4b87f1,_0x3346e6={'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'shapeType':_0x57fb5c,'range':_0x58c794,'shapeId':_0x3893c7()};if(_0x5be7ea){let _0x482fa9=_0x5d2a5e(_0x57fb5c),_0x1983df=_0x57fb5c===_0x1ca39f[_0x1b0073(0x14c)];_0x482fa9&&(_0x5be7ea[_0x1b0073(0x24f)]||_0x5be7ea['endArrow'])&&(_0x3346e6[_0x1b0073(0x1c5)]={'ln':{'startArrow':_0x5be7ea[_0x1b0073(0x24f)]?{'type':_0x1e506d[_0x1b0073(0x2ce)],'size':_0xd9107d[_0x1b0073(0x1b1)]}:void 0x0,'endArrow':_0x5be7ea[_0x1b0073(0x17e)]?{'type':_0x1e506d['Arrow'],'size':_0xd9107d[_0x1b0073(0x1a3)]}:void 0x0}}),_0x1983df&&(_0x5be7ea[_0x1b0073(0x236)]||_0x5be7ea[_0x1b0073(0x2d8)])&&(_0x3346e6[_0x1b0073(0x1c5)]=_0x510160({'fill':{'fillType':_0x13bf97[_0x1b0073(0x1d4)],'color':_0x1b0073(0x23a)},'isHorizontal':!!_0x5be7ea['horizontal'],'stroke':{'lineStrokeType':_0x3354c0[_0x1b0073(0x216)],'width':0x1,'color':_0x1b0073(0x23f)}}));}let _0x25802b=_0x1a8ca6[_0x1b0073(0xe6)](_0x5db24c['id'],_0x3346e6);return setTimeout(()=>{const _0x5b00d8=_0x1b0073;_0x1a8ca6[_0x5b00d8(0x2c5)](bn['id'],[{'unitId':_0x5bcdcd,'subUnitId':_0x4298a8,'drawingId':_0x3346e6[_0x5b00d8(0x142)]}]);},0xc8),_0x25802b;}},Sn=_0x49d8a2(0x29a),Cn=_0x49d8a2(0x1e6),wn=_0x49d8a2(0x1ee),Tn=_0x4f9780(_0x49d8a2(0x146)),En=_0x49d8a2(0x190),Dn={'id':_0x49d8a2(0x338),'type':_0xbd62c0[_0x49d8a2(0x140)],'handler':(_0x1ab3b3,_0x511580)=>{const _0x3f00ef=_0x49d8a2;let _0x5b826a=_0x1ab3b3['get'](_0xf1c3ee),_0x545c02=_0x1ab3b3[_0x3f00ef(0x1bc)](_0x9a7c24),_0x339cb2=_0x1ab3b3['get'](_0x2320a1),_0xfd056b=_0x1ab3b3['get'](_0x3002c9);return _0x20e706(_0x339cb2)?(_0x511580==null?void 0x0:_0x511580[_0x3f00ef(0x21c)])===_0x3f00ef(0x113)?(_0x5b826a[_0x3f00ef(0x113)](Cn),!0x0):(_0x5b826a['open']({'id':Cn,'header':{'title':_0x545c02['t'](_0x3f00ef(0x170))},'children':{'label':Cn},'onClose':()=>{const _0x16344b=_0x3f00ef;_0xfd056b[_0x16344b(0xe6)](_0x42475e['id'],[]);},'width':0x168}),!0x0):!0x1;}};let Q=class extends _0x1e0fa2{constructor(_0x365349,_0x4817af){const _0x3f1ffb=_0x49d8a2;super(),this['_clipService']=_0x365349,this[_0x3f1ffb(0x159)]=_0x4817af,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x3f1ffb(0x20f)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x3f1ffb(0x327)][_0x3f1ffb(0x20f)](!0x1)});}[_0x49d8a2(0x260)](){const _0x2680ca=_0x49d8a2;let _0x3ff126=this[_0x2680ca(0x327)],_0x3eaa67=new Map(),_0xa4757b=_0x3ff126[_0x2680ca(0x2cd)]((_0x34024d,_0x39af9e,_0x1bdc90,_0x553262,_0x31742a)=>{const _0x434ef8=_0x2680ca;let _0x2644ac=_0x39af9e;if(_0x2644ac===_0x1ca39f[_0x434ef8(0x201)]||_0x39af9e===_0x434ef8(0x1d3))return!0x1;try{let _0x409396=_0x3eaa67[_0x434ef8(0x1bc)](_0x39af9e);return _0x409396||(_0x409396=new _0x2a67cd(_0x2644ac,_0x434ef8(0x1df)+_0x39af9e),_0x3eaa67[_0x434ef8(0x20a)](_0x39af9e,_0x409396)),_0x31742a&&_0x409396[_0x434ef8(0xf3)]({'adjustValues':_0x31742a},!0x0),_0x409396['updateContext']({'width':_0x1bdc90,'height':_0x553262}),_0x409396['buildClipPath'](_0x34024d,{'left':0x0,'top':0x0,'width':_0x1bdc90,'height':_0x553262});}catch{return!0x1;}});this[_0x2680ca(0x16d)](_0xa4757b),this[_0x2680ca(0x16d)]({'dispose':()=>_0x3eaa67[_0x2680ca(0x1ac)]()});}[_0x49d8a2(0x1fb)](_0x60f65b,_0x3794bb,_0x42210e,_0x153454,_0xa1d19a){const _0x95af20=_0x49d8a2;let _0x250ece=this['_drawingManagerService']['getDrawingData'](_0x60f65b,_0x3794bb);if(!_0x250ece[_0x42210e])return;let _0x4f1e72={..._0x250ece[_0x42210e],'prstGeom':_0x153454,'adjustValues':_0xa1d19a};this['_drawingManagerService'][_0x95af20(0x104)]([_0x4f1e72]);}};Q=Y([J(0x0,_0x3465f0(_0x52908b)),J(0x1,_0x3465f0(_0x5a9176))],Q);const On=_0x49d8a2(0x191),kn=_0x49d8a2(0x145);function An({onShapeClick:_0x54d015,excludeGroups:_0xf7a90f}){const _0x18c159=_0x49d8a2;return _0x4c6044(_0x71cbe8,{'excludeGroups':_0xf7a90f,'onShapeClick':_0x54d015,'scrollContainer':_0x18c159(0xd9)});}function jn(){const _0xfb24f8=_0x49d8a2;let _0x194496=_0x2a5e25(_0x5a9176),_0x256e55=_0x2a5e25(Q);return _0x4c6044(_0x55b52d,{'buttonLabel':_0xfb24f8(0x2fb),'excludeGroups':[_0x57c621['Line']],'onShapeClick':_0x5d79fe=>{const _0x2b3cf1=_0xfb24f8;let _0x184037=_0x194496[_0x2b3cf1(0x32c)]()[_0x2b3cf1(0x138)](_0x24b029=>_0x24b029['drawingType']===_0x336997[_0x2b3cf1(0x2b7)]);if(!_0x184037)return;let {unitId:_0x8ec8e0,subUnitId:_0xa5ba9,drawingId:_0x24d030}=_0x184037;_0x256e55['clipByShape'](_0x8ec8e0,_0xa5ba9,_0x24d030,_0x5d79fe['type']);}});}function Mn(){const _0x41679c=_0x49d8a2;let _0x1d85e0=_0x2a5e25(_0x4dd7a3),_0x5e77af=_0x2a5e25(_0x5a9176),_0x4f9d74=_0x2a5e25(_0x2320a1),_0x2941f4=_0x5e77af[_0x41679c(0x32c)]()[0x0],_0x12c962=_0x2941f4?_0x4f9d74[_0x41679c(0x151)](_0x2941f4[_0x41679c(0x1b7)]):void 0x0,_0x4ae8d9=_0x12c962===_0x4c1a31[_0x41679c(0x2ae)]?_0x41679c(0x1f9):_0x12c962===_0x4c1a31[_0x41679c(0x261)]?kn:void 0x0,_0x4797ee=_0x4ae8d9?_0x1d85e0[_0x41679c(0x1bc)](_0x4ae8d9):void 0x0;return _0x4797ee?_0x4c6044(_0x4797ee,{}):null;}function Nn(){let _0x179637=_0x2a5e25(_0x3002c9);return _0x4c6044(An,{'onShapeClick':_0x4d0a51=>{const _0x4a01e9=_0x208c;_0x179637[_0x4a01e9(0x2c5)](xn['id'],{'value':_0x4d0a51[_0x4a01e9(0x1ff)],'enhanceParams':{'endArrow':_0x4d0a51[_0x4a01e9(0x17e)],'startArrow':_0x4d0a51[_0x4a01e9(0x24f)],'horizontal':_0x4d0a51['horizontal'],'vertical':_0x4d0a51[_0x4a01e9(0x2d8)]}});}});}function Pn(_0x1e138a){const _0x31e468=_0x49d8a2;let _0x5b829b=_0x1e138a[_0x31e468(0x1bc)](_0x2320a1);return{'id':xn['id'],'type':_0x2f4b7c[_0x31e468(0x128)],'selections':[{'label':{'name':On,'hoverable':!0x1,'selectable':!0x1,'props':{'id':xn['id']}}}],'icon':_0x31e468(0x195),'tooltip':_0x31e468(0x31e),'activated$':_0x291355(_0x5b829b,!0x1,()=>new _0x17aabe(_0x53eef6=>{const _0x3215ca=_0x31e468;_0x53eef6[_0x3215ca(0x15a)](!0x1);})),'hidden$':_0x569198(_0x1e138a,_0x4c1a31[_0x31e468(0x261)]),'disabled$':_0x1aaed7(_0x1e138a)};}function Fn(_0x379afe){const _0x2e1912=_0x49d8a2;let _0x5376f6=_0x379afe[_0x2e1912(0x1bc)](_0x2320a1);return{'id':Dn['id'],'type':_0x2f4b7c[_0x2e1912(0x1af)],'icon':_0x2e1912(0x11f),'title':_0x2e1912(0x16e),'tooltip':_0x2e1912(0x16e),'activated$':_0x291355(_0x5376f6,!0x1,()=>new _0x17aabe(_0x192955=>{const _0x315f67=_0x2e1912;_0x192955[_0x315f67(0x15a)](!0x1);})),'hidden$':_0x569198(_0x379afe,_0x4c1a31[_0x2e1912(0x261)]),'disabled$':_0x1aaed7(_0x379afe)};}const In={[_0x4cff09[_0x49d8a2(0x2d4)]]:{[xn['id']]:{'order':0x4,'menuItemFactory':Pn},[Dn['id']]:{'order':4.1,'menuItemFactory':Fn}}};var Ln='@univerjs-pro/sheets-shape-ui',Rn=_0x49d8a2(0x252);const zn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Bn={'type':_0xbd62c0[_0x49d8a2(0x11b)],'id':_0x49d8a2(0x1ce),'handler'(){return!0x0;}},Vn={};function Hn(_0x4b3b1a){const _0x287275=_0x49d8a2;return _0x4b3b1a[_0x287275(0x258)]()||void 0x0;}function Un(_0x2db1ee){const _0x2fd387=_0x49d8a2;switch(_0x2db1ee[_0x2fd387(0x12e)]){case _0x336997[_0x2fd387(0x2b7)]:return _0x2fd387(0x157);case _0x336997[_0x2fd387(0x1ae)]:return'chart';case _0x336997[_0x2fd387(0x29b)]:return _0x2fd387(0x11c);case _0x336997[_0x2fd387(0x1a5)]:return _0x2fd387(0x200);case _0x336997[_0x2fd387(0x133)]:return _0x2fd387(0x319);case _0x336997[_0x2fd387(0x262)]:return _0x2fd387(0x240);case _0x336997[_0x2fd387(0xfe)]:return _0x2fd387(0x1c8);case _0x336997[_0x2fd387(0x173)]:return'dom';case _0x336997['DRAWING_SHAPE']:return _0x2fd387(0x1b0);default:return'object';}}function Wn(_0x2d7bf5,_0x3c5102,_0x681705){const _0x23e279=_0x49d8a2;var _0x42ca8a;return((_0x42ca8a=_0x2d7bf5[_0x23e279(0x1dd)])==null?void 0x0:_0x42ca8a[_0x23e279(0x258)]())||_0x23c7c2(_0x681705,Un(_0x2d7bf5))+'\x20'+(_0x3c5102+0x1);}function Gn(){const _0x461945=_0x49d8a2;var _0x262542,_0x1c99d8,_0x2041d1,_0x34fa38;let _0x4d215b=_0x2a5e25(_0x9a7c24),_0x10f0aa=_0x2a5e25(_0x3002c9),_0x31d076=_0x2a5e25(_0x2320a1),_0x4f6761=_0x2a5e25(_0xc538a1),_0x39dfc0=_0x2a5e25(_0x5a9176),_0x65c50d=_0x2a5e25(_0x2565d9),[,_0x4fef57]=_0x3962a7(_0x559962=>_0x559962+0x1,0x0),_0x430ea8=_0x31d076[_0x461945(0x199)](_0x4c1a31['UNIVER_SHEET']),_0xc18259=(_0x262542=_0x430ea8==null?void 0x0:_0x430ea8['getUnitId']())==null?'':_0x262542,_0xdd93ce=(_0x1c99d8=_0x430ea8==null||(_0x2041d1=_0x430ea8['getActiveSheet']())==null?void 0x0:_0x2041d1['getSheetId']())==null?'':_0x1c99d8,_0x4c1d4e=_0x57a615(()=>_0x39dfc0[_0x461945(0x139)],_0x39dfc0[_0x461945(0x32c)](),!0x1,[_0x39dfc0]);_0xecd31c(()=>{const _0x1b25c4=_0x461945;let _0x2250e6=_0x10f0aa['onCommandExecuted'](()=>_0x4fef57());return()=>_0x2250e6[_0x1b25c4(0x2b0)]();},[_0x10f0aa]);let _0x13e3c5=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x233)](_0xc18259,_0xdd93ce):{},_0x1d0451=_0xc18259&&_0xdd93ce?_0x4f6761[_0x461945(0x306)](_0xc18259,_0xdd93ce):[],_0x158842=_0x307aa0(()=>_0x3137ac(_0x4d215b),[_0x4d215b]),_0x54ee17=_0x307aa0(()=>{const _0x27799d=_0x461945;let _0x502a26=_0x1d0451[_0x27799d(0x1a1)](_0x4a8e1d=>_0x13e3c5[_0x4a8e1d])[_0x27799d(0x1da)](_0x4610d2=>!!_0x4610d2)[_0x27799d(0x136)](),_0x43e0be=_0x502a26[_0x27799d(0x144)]((_0x57a37f,_0x162990)=>(_0x57a37f[_0x68c808(_0x162990[_0x27799d(0x12e)])]+=0x1,_0x57a37f),{'canvas':0x0,'floating':0x0}),_0x2b0f49={'canvas':0x0,'floating':0x0};return _0x502a26[_0x27799d(0x1a1)]((_0x3f05b1,_0x2d6a4c)=>{const _0x3bccce=_0x27799d;let _0x488e45=_0x68c808(_0x3f05b1[_0x3bccce(0x12e)]),_0x151389=_0x488e45===_0x21b1e9,_0x4f2d83=_0x2b0f49[_0x488e45]++;return{'id':_0x3f05b1[_0x3bccce(0x20e)],'name':Wn(_0x3f05b1,_0x2d6a4c,_0x4d215b),'description':_0x3f05b1['description'],'visible':_0x3f05b1[_0x3bccce(0x15c)]!==!0x0,'selectable':_0x3f05b1[_0x3bccce(0xf4)]!==!0x1,'sectionId':_0x488e45,'sectionTitle':_0x151389?_0x158842[_0x3bccce(0x284)]:_0x158842[_0x3bccce(0x213)],'capabilities':_0x151389?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x151389&&_0x4f2d83>0x0,'canMoveBackward':!_0x151389&&_0x4f2d83<_0x43e0be[_0x3bccce(0x2d6)]-0x1,'canReorder':!_0x151389};});},[_0x13e3c5,_0x1d0451,_0x158842[_0x461945(0x213)],_0x158842['sectionFloating'],_0x4d215b]),_0x5926d8=_0x307aa0(()=>(_0x4c1d4e==null?[]:_0x4c1d4e)['filter'](_0xbf85d1=>_0xbf85d1[_0x461945(0x1b7)]===_0xc18259&&_0xbf85d1['subUnitId']===_0xdd93ce)[_0x461945(0x1a1)](_0x45fd2d=>_0x45fd2d[_0x461945(0x20e)]),[_0x4c1d4e,_0xdd93ce,_0xc18259]),_0x5cde21=(_0x34fa38=_0x5926d8[_0x5926d8['length']-0x1])==null?null:_0x34fa38,_0x4eba86=_0x28514e=>{const _0x5e67c6=_0x461945;var _0x15bc74;return(_0x15bc74=_0x4f6761[_0x5e67c6(0x26a)]({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x28514e}))==null?null:_0x15bc74;},_0x46fc17=_0x76b52f=>{const _0x532457=_0x461945;!_0xc18259||!_0x76b52f['length']||_0x10f0aa[_0x532457(0x2c5)](_0x577eb5['id'],{'unitId':_0xc18259,'drawings':_0x76b52f});},_0x3b2fd5=(_0x4fa2b3,_0x54aaea)=>{_0x4eba86(_0x4fa2b3)&&_0x46fc17([{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x4fa2b3,..._0x54aaea}]);},_0x1b05d7=(_0x55c66a,_0x20876f)=>{const _0x422e16=_0x461945;if(!_0xc18259||!_0xdd93ce)return;let _0xd9ca51=_0x20876f?_0x5926d8[_0x422e16(0x2ed)](_0x55c66a)?_0x5926d8[_0x422e16(0x1da)](_0x12d119=>_0x12d119!==_0x55c66a):[..._0x5926d8,_0x55c66a]:[_0x55c66a];_0x10f0aa[_0x422e16(0xe6)](_0x42475e['id'],_0xd9ca51[_0x422e16(0x1a1)](_0x1193f0=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x1193f0})));let _0x2fccfe=_0xd9ca51[_0xd9ca51[_0x422e16(0x289)]-0x1];_0x2fccfe?_0x3928d2(_0x65c50d,{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2fccfe}):_0xeb3392(_0x65c50d,_0xc18259);},_0xc5db42=(_0x1d8484,_0x21fcb5)=>{const _0xe10097=_0x461945;_0x46fc17(_0x1d8484[_0xe10097(0x1a1)](_0x161565=>_0x4eba86(_0x161565))[_0xe10097(0x1da)](_0x20bc80=>!!_0x20bc80)[_0xe10097(0x1da)](_0x21864b=>_0x21864b['hidden']!==!0x0!==_0x21fcb5)[_0xe10097(0x1a1)](_0x2682a4=>({'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingId':_0x2682a4[_0xe10097(0x20e)],'hidden':!_0x21fcb5})));},_0x22aeba=_0x447497=>{let _0x3f63df=_0x4eba86(_0x447497);_0x3f63df&&_0x3b2fd5(_0x447497,{'selectable':_0x3f63df['selectable']===!0x1?void 0x0:!0x1});},_0x1767e0=(_0x5eb9f4,_0x2717e7)=>{const _0x46638e=_0x461945;var _0x25ba5f,_0x42fee7;let _0x187735=Hn(_0x2717e7);((_0x25ba5f=(_0x42fee7=_0x4eba86(_0x5eb9f4))==null?void 0x0:_0x42fee7[_0x46638e(0x1dd)])==null?void 0x0:_0x25ba5f)!==_0x187735&&_0x3b2fd5(_0x5eb9f4,{'name':_0x187735});},_0x2aa530=(_0x2301bb,_0xf22e05)=>{const _0x3c1f2b=_0x461945;var _0xc3a66d,_0x20d4f8;let _0x424994=Hn(_0xf22e05);((_0xc3a66d=(_0x20d4f8=_0x4eba86(_0x2301bb))==null?void 0x0:_0x20d4f8[_0x3c1f2b(0xf6)])==null?void 0x0:_0xc3a66d)!==_0x424994&&_0x3b2fd5(_0x2301bb,{'description':_0x424994});},_0x2fe5be=(_0x783124,_0x2408b7)=>{!_0xc18259||!_0xdd93ce||_0x10f0aa['executeCommand'](_0xa10ec9['id'],{'unitId':_0xc18259,'subUnitId':_0xdd93ce,'drawingIds':[_0x783124],'arrangeType':_0x2408b7});};return!_0xc18259||!_0xdd93ce?_0x4c6044(_0x461945(0x1b5),{'className':_0x461945(0xed),'children':_0x158842[_0x461945(0x339)]}):_0x4c6044(_0x1ea8c0,{'items':_0x54ee17,'selectedIds':_0x5926d8,'focusedId':_0x5cde21,'labels':_0x158842,'onSelect':_0x1b05d7,'onSetVisible':_0xc5db42,'onCommitName':_0x1767e0,'onCommitDescription':_0x2aa530,'onMoveForward':_0x2a705a=>_0x2fe5be(_0x2a705a,_0x5516a4[_0x461945(0x2e2)]),'onMoveBackward':_0x522b82=>_0x2fe5be(_0x522b82,_0x5516a4['backward']),'onToggleSelectable':_0x22aeba});}let Kn=class{constructor(_0x216351){this['_renderManagerService']=_0x216351;}['updateShapeFillImage'](_0x4fd8d5,_0x10fed6){const _0x33cea9=_0x49d8a2;let _0x396131=this[_0x33cea9(0x107)][_0x33cea9(0x2c4)](_0x4fd8d5[_0x33cea9(0x1b7)]),_0x4b25d5=_0x396131==null?void 0x0:_0x396131[_0x33cea9(0x228)];if(!_0x4b25d5)return;let _0x7699e3=_0x24e648(_0x4fd8d5),_0x3cdbd7=_0x4b25d5[_0x33cea9(0xda)](_0x7699e3);_0x3cdbd7==null||_0x3cdbd7[_0x33cea9(0x121)](_0x10fed6);}};Kn=Y([J(0x0,_0x2565d9)],Kn);function qn(){const _0x5e832f=_0x49d8a2;let _0x10fd56=_0x2a5e25(_0x5a9176),_0x44946d=_0x57a615(()=>_0x10fd56[_0x5e832f(0x139)],_0x10fd56[_0x5e832f(0x32c)](),!0x1,[_0x10fd56]);return _0x44946d[_0x5e832f(0x289)]===0x0?null:_0x4c6044(_0x5e832f(0x1b5),{'children':_0x52bc9b('div',{'className':_0x5e832f(0x168),'children':[_0x4c6044(_0x4b0647,{'drawings':_0x44946d,'hasCropper':!0x1}),_0x4c6044(_0x37e739,{'drawings':_0x44946d})]})});}function Jn(_0x4349c0){let {unitId:_0xf8b70d,subUnitId:_0x1dbddc,shapeId:_0x2d4a8c}=_0x4349c0,_0x485b16=_0x2a5e25(_0x3002c9),_0x2ebe31=_0x2a5e25(Kn);return _0x4c6044(_0x577577,{..._0x4349c0,'positionEditor':_0x4c6044(qn,{}),'onUpdateShapeData':(_0x238d82,_0x58bfb4)=>{fn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x238d82,_0x58bfb4);},'onUpdateLineShapeData':(_0x573981,_0x4382a4)=>{pn(_0x485b16,_0xf8b70d,_0x1dbddc,_0x2d4a8c,_0x573981,_0x4382a4);},'onUpdateShapeFillImage':_0xd3e5d5=>{const _0x3bd10c=_0x208c;_0x2ebe31[_0x3bd10c(0x2a8)]({'unitId':_0xf8b70d,'subUnitId':_0x1dbddc,'drawingId':_0x2d4a8c},_0xd3e5d5);}});}function Yn(_0x5e9936){const _0x29c3c3=_0x49d8a2;let _0x536d9d=_0x5e9936['popup'][_0x29c3c3(0x1d7)];return _0x536d9d?_0x4c6044(Xn,{..._0x536d9d}):null;}function Xn(_0x349408){const _0x128a95=_0x49d8a2;var _0x29c052,_0x54b92c;let _0x46fa0a=_0x2a5e25(_0x3002c9),_0x29d2eb=_0x2a5e25(_0x1a451a),{unitId:_0x163573,subUnitId:_0x5f1009,drawingId:_0x21ae43,drawingType:_0x2e08dd,shapeType:_0x33f48f}=_0x349408,[_0x295ae6,_0x5b681a]=_0x487ae5(_0x349408[_0x128a95(0x1c5)]),_0x757b69=_0x307aa0(()=>_0x45f466(_0x295ae6),[_0x295ae6]),_0x20ebaa=_0x307aa0(()=>_0xdf5543(_0x295ae6),[_0x295ae6]);_0xecd31c(()=>{const _0x1b8ccf=_0x128a95;let _0x138e63=_0x46fa0a['onCommandExecuted'](_0x1ffea3=>{const _0x4f783c=_0x208c;if(_0x1ffea3['id']!==_0x22295a['id'])return;let _0x2bc0f4=_0x29d2eb[_0x4f783c(0x264)](_0x163573,_0x5f1009,_0x21ae43);_0x2bc0f4&&_0x5b681a(_0x2bc0f4);});return()=>_0x138e63[_0x1b8ccf(0x2b0)]();},[_0x46fa0a,_0x21ae43,_0x29d2eb,_0x5f1009,_0x163573]);let _0x14bada=_0x3fce78=>{_0x5b681a(_0x134544=>({..._0x134544,..._0x3fce78}));},_0x4ce81f=_0x3083eb=>{const _0x487748=_0x128a95;let _0x444507=_0x1072ef(_0x295ae6,_0x3083eb);fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,{'oldShapeData':{'shapeText':_0x295ae6[_0x487748(0xe9)]}},_0x444507),_0x14bada(_0x444507);};return _0x4c6044(_0x3381e5,{'shapeData':_0x295ae6,'shapeType':_0x33f48f,'textStyle':{'ff':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x176)],'fs':_0x2bea1d[_0x128a95(0xe9)][_0x128a95(0x317)],'cl':{'rgb':_0x2bea1d[_0x128a95(0xe9)]['color']},..._0x757b69},'textModel':_0x20ebaa?{'ha':(_0x29c052=_0x20ebaa['ha'])==null?_0x30a9f7[_0x128a95(0x204)]:_0x29c052,'va':(_0x54b92c=_0x20ebaa['va'])==null?_0x2099ff[_0x128a95(0x310)]:_0x54b92c}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2bea1d[_0x128a95(0x270)],'defaultGradientEndColor':_0x2bea1d[_0x128a95(0xde)],'defaultStrokeColor':_0x2bea1d[_0x128a95(0x2dd)],'onUpdateShapeData':(_0xda52f7,_0x431d4e)=>{fn(_0x46fa0a,_0x163573,_0x5f1009,_0x21ae43,_0xda52f7,_0x431d4e),_0x431d4e&&_0x14bada(_0x431d4e);},'onUpdateText':_0x4ce81f,'onOpenPanel':()=>{const _0x4e8bf8=_0x128a95;_0x46fa0a[_0x4e8bf8(0x2c5)](Bn['id'],{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43});},'onDelete':()=>{_0x46fa0a['executeCommand'](_0x5f4db7['id'],{'unitId':_0x163573,'drawings':[{'unitId':_0x163573,'subUnitId':_0x5f1009,'drawingId':_0x21ae43,'drawingType':_0x2e08dd}]});}});}var Zn=class extends _0x1e0fa2{constructor(..._0x5c2b03){const _0x28d072=_0x49d8a2;super(..._0x5c2b03),q(this,'_editingParams$',new _0x1154b0(null)),q(this,_0x28d072(0xfa),this[_0x28d072(0x2d5)]['asObservable']()),q(this,_0x28d072(0x27b),new _0x1154b0(!0x1)),q(this,'onSavingEditorData$',this[_0x28d072(0x27b)]['asObservable']());}[_0x49d8a2(0x2b0)](){const _0xb60ecb=_0x49d8a2;this[_0xb60ecb(0x2d5)]['next'](null),this[_0xb60ecb(0x2d5)][_0xb60ecb(0x1e5)](),this[_0xb60ecb(0x27b)][_0xb60ecb(0x15a)](!0x1),this[_0xb60ecb(0x27b)][_0xb60ecb(0x1e5)](),super[_0xb60ecb(0x2b0)]();}[_0x49d8a2(0x2f3)](_0x5bb556){const _0x21d430=_0x49d8a2;this[_0x21d430(0x2d5)][_0x21d430(0x15a)](_0x5bb556),_0x5bb556==null&&this['_onSavingEditorData$']['next'](!0x1);}[_0x49d8a2(0x263)](_0x4169cc){const _0x3c35ac=_0x49d8a2;this[_0x3c35ac(0x27b)][_0x3c35ac(0x15a)](_0x4169cc);}['getEditing'](){const _0x14f384=_0x49d8a2;return this['_editingParams$'][_0x14f384(0x125)]();}[_0x49d8a2(0x2f9)](_0x3d961a){const _0x200df6=_0x49d8a2;this[_0x200df6(0x25a)]()&&(this[_0x200df6(0x263)](!0x0),requestAnimationFrame(()=>{const _0x53094f=_0x200df6;this[_0x53094f(0x2f3)](null);}));}['cancelEditing'](){const _0x2d9312=_0x49d8a2;this[_0x2d9312(0x25a)]()&&this[_0x2d9312(0x2f3)](null);}};const Qn=_0x3cdd19(()=>{const _0x5b7685=_0x49d8a2;let _0x57a8da=_0x2a5e25(Zn),_0x3121bf=_0x2a5e25(_0x1a451a),_0x452bd6=_0x2a5e25(_0x5a9176),_0x5c19c1=_0x2a5e25(_0x3002c9),_0x20e277=_0x2a5e25(_0x2565d9);return _0x4c6044(_0x264bf4,{'adapter':_0x307aa0(()=>({'getShapeModel':(_0x21e298,_0x3e7328,_0x538d6a)=>_0x3121bf[_0x5b7685(0x296)](_0x21e298,_0x3e7328,_0x538d6a),'getShapeData':(_0x5a4ffb,_0x16dbb1,_0x2bfdde)=>_0x3121bf[_0x5b7685(0x264)](_0x5a4ffb,_0x16dbb1,_0x2bfdde),'getDrawingTransform':(_0x47fea1,_0x4c3491,_0x3abadd)=>{const _0x56cfdb=_0x5b7685;let _0x305cbb=_0x452bd6[_0x56cfdb(0x26a)]({'unitId':_0x47fea1,'subUnitId':_0x4c3491,'drawingId':_0x3abadd});return _0x305cbb==null?void 0x0:_0x305cbb[_0x56cfdb(0x166)];},'updateShapeText':({unitId:_0x4a7733,subUnitId:_0x3fee19,shapeId:_0x1df34f,shapeText:_0x589585,oldShapeText:_0x1fd2e1})=>{const _0x4ed96c=_0x5b7685;_0x5c19c1[_0x4ed96c(0x2c5)](dn['id'],{'unitId':_0x4a7733,'subUnitId':_0x3fee19,'shapeId':_0x1df34f,'shapeData':{'shapeText':_0x589585},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1fd2e1}}});},'updateHostSize':({unitId:_0x447a8c,subUnitId:_0x20ab8d,shapeId:_0x54693d,width:_0x28a25b,height:_0x5a1d95})=>{const _0x3f4cd0=_0x5b7685;var _0x281f18,_0x3eae22,_0x15bf37;let _0xe0c58e=_0x452bd6['getDrawingByParam']({'unitId':_0x447a8c,'subUnitId':_0x20ab8d,'drawingId':_0x54693d}),_0x50eb13=_0xe0c58e==null?void 0x0:_0xe0c58e[_0x3f4cd0(0x166)];if(!_0xe0c58e||!_0x50eb13)return;let _0x4af162={..._0x50eb13,'width':_0x28a25b,'height':_0x5a1d95},_0x53447a=(_0x281f18=_0x20e277[_0x3f4cd0(0x2c4)](_0x447a8c))==null||(_0x281f18=_0x281f18[_0x3f4cd0(0xf5)](_0x4b5a3f)[_0x3f4cd0(0x1c3)](_0x20ab8d))==null?void 0x0:_0x281f18[_0x3f4cd0(0x26d)],_0xd6b18d=_0x53447a?(_0x3eae22=_0x4ee577(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0x265)]:_0x3eae22:_0xe0c58e[_0x3f4cd0(0x265)],_0xec26ea=_0x53447a?(_0x15bf37=_0x14cc4e(_0x4af162,_0x53447a))==null?_0xe0c58e[_0x3f4cd0(0xdb)]:_0x15bf37:_0xe0c58e[_0x3f4cd0(0xdb)];_0x5c19c1[_0x3f4cd0(0x2c5)](_0x577eb5['id'],{'unitId':_0x447a8c,'drawings':[{..._0xe0c58e,'transform':_0x4af162,'sheetTransform':_0xd6b18d,'axisAlignSheetTransform':_0xec26ea}]});},'allowHostSizeShrink':({unitId:_0x51b50f,subUnitId:_0x311079,shapeId:_0x498161})=>_0x7502d3(_0x3121bf[_0x5b7685(0x264)](_0x51b50f,_0x311079,_0x498161))}),[_0x5c19c1,_0x452bd6,_0x20e277,_0x3121bf]),'editingService':_0x57a8da,'editorUnitId':Tn,'positionOptions':_0x307aa0(()=>({'viewportKeys':{'main':_0x42dea8[_0x5b7685(0x281)],'leftTop':_0x42dea8[_0x5b7685(0x17c)],'top':_0x42dea8[_0x5b7685(0x189)],'left':_0x42dea8[_0x5b7685(0x32a)]},'getSkeleton':(_0x1061c5,_0x201d8b)=>{const _0x5a4ed1=_0x5b7685;var _0x44fe8b,_0x5c2b5f;return(_0x44fe8b=(_0x5c2b5f=_0x1061c5[_0x5a4ed1(0xf5)](_0x4b5a3f)['getSkeletonParam'](_0x201d8b['subUnitId']))==null?void 0x0:_0x5c2b5f[_0x5a4ed1(0x26d)])==null?null:_0x44fe8b;}}),[])});});let $n=class extends _0x1e0fa2{constructor(_0x13d118,_0x5d381d){const _0x1e425b=_0x49d8a2;super(),this['_componentManager']=_0x13d118,this[_0x1e425b(0x134)]=_0x5d381d,this['_registerIcons'](),this['_registerComponents']();}[_0x49d8a2(0x2f7)](){const _0x138651=_0x49d8a2;this[_0x138651(0x134)][_0x138651(0x215)](_0x138651(0x11f))||this[_0x138651(0x16d)](this[_0x138651(0x134)][_0x138651(0x21d)]({'CopyDoubleIcon':_0x8cec5a}));}[_0x49d8a2(0x1bb)](){const _0x4099c6=_0x49d8a2;this[_0x4099c6(0x16d)](this['_componentManager'][_0x4099c6(0x21d)](Sn,Jn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)]['register'](Cn,Gn)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](On,Nn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](kn,jn)),this[_0x4099c6(0x2c7)][_0x4099c6(0x1bc)](_0x76290b)||this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x76290b,Mn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](wn,Yn)),this['disposeWithMe'](this['_componentManager'][_0x4099c6(0x21d)](En,_0x2d3b93)),this[_0x4099c6(0x16d)](this[_0x4099c6(0x2c7)][_0x4099c6(0x21d)](_0x4099c6(0x292),Qn));}};$n=Y([J(0x0,_0x3465f0(_0x4dd7a3)),J(0x1,_0x3465f0(_0x45bf3a))],$n);let er=class extends _0x1e0fa2{constructor(_0x4b70c7,_0x457a7a,_0x213474,_0x548bf5,_0x4ee2f3){const _0x221a1b=_0x49d8a2;super(),this[_0x221a1b(0x12a)]=_0x4b70c7,this[_0x221a1b(0x159)]=_0x457a7a,this[_0x221a1b(0x107)]=_0x213474,this[_0x221a1b(0x1b8)]=_0x548bf5,this[_0x221a1b(0x18a)]=_0x4ee2f3,q(this,_0x221a1b(0x15d),null),q(this,'_unitId',null),q(this,_0x221a1b(0x227),null),q(this,'_activeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x221a1b(0x155),0x0),q(this,'_baseTop',0x0),q(this,_0x221a1b(0x269),0x0),q(this,_0x221a1b(0x304),0x0),q(this,_0x221a1b(0x2a5),!0x1),q(this,_0x221a1b(0x1e9),void 0x0),q(this,_0x221a1b(0x1db),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x221a1b(0xe3),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x221a1b(0x287)](),this['_registerMoveHandler']();}[_0x49d8a2(0x2cb)](){const _0x2879fc=_0x49d8a2;this[_0x2879fc(0x186)]();}[_0x49d8a2(0x1c6)](){const _0x32eb47=_0x49d8a2;this['_clearControls'](),this[_0x32eb47(0x28f)](!0x0);}['_getOrCreateShapeModel'](_0x1728ca,_0x4762cf,_0x48659b,_0x70531){const _0x45baab=_0x49d8a2;let _0x33adb6=_0x1728ca;if(!(_0x33adb6===_0x1ca39f[_0x45baab(0x201)]||_0x1728ca===_0x45baab(0x1d3)))try{let _0xf1eb9a=new _0x2a67cd(_0x33adb6,_0x45baab(0x268)+_0x1728ca);return _0x70531&&_0xf1eb9a['setShapeData']({'adjustValues':_0x70531},!0x0),_0xf1eb9a[_0x45baab(0x314)]({'width':_0x4762cf,'height':_0x48659b}),_0xf1eb9a;}catch{return;}}[_0x49d8a2(0x243)](_0x363dc2,_0x492f6f,_0x29ea3d){const _0x13c3fd=_0x49d8a2;let _0x1b1c98={'unitId':_0x363dc2,'subUnitId':_0x492f6f,'drawingId':_0x29ea3d},_0x57072e=this[_0x13c3fd(0x159)][_0x13c3fd(0x26a)](_0x1b1c98);if(!(!_0x57072e||_0x57072e['drawingType']!==_0x336997[_0x13c3fd(0x2b7)]))return _0x57072e;}['_getImagePrstGeom'](_0x939447,_0x18b1c4,_0x49fa36){const _0xa71d63=_0x49d8a2;let _0x4bb97a=this['_renderManagerService']['getRenderById'](_0x939447);if(!_0x4bb97a)return;let {scene:_0x3611fd}=_0x4bb97a,_0x2d9334=_0x24e648({'unitId':_0x939447,'subUnitId':_0x18b1c4,'drawingId':_0x49fa36}),_0x41649d=_0x3611fd[_0xa71d63(0x307)](_0x2d9334);if(_0x41649d instanceof _0xd2487b){let _0x1baa22=_0x41649d[_0xa71d63(0x178)];if(_0x1baa22)return{'prstGeom':_0x1baa22,'adjustValues':_0x41649d[_0xa71d63(0x323)]};}}[_0x49d8a2(0x28f)](_0x49d47b=!0x1){const _0x3d8c36=_0x49d8a2;if(!this[_0x3d8c36(0x330)]||!this['_subUnitId']||!this[_0x3d8c36(0x15d)])return;let _0x377013=this[_0x3d8c36(0x107)][_0x3d8c36(0x2c4)](this[_0x3d8c36(0x330)]);if(!_0x377013||!_0x377013[_0x3d8c36(0xf5)](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x5b4377}=_0x377013,_0x545df2=this[_0x3d8c36(0x243)](this['_unitId'],this['_subUnitId'],this[_0x3d8c36(0x15d)]);if(!_0x545df2)return;let {transform:_0x26d342}=_0x545df2;if(!_0x26d342)return;let {left:_0x276386,top:_0x5de7ee,width:_0x56b872,height:_0x5959bd,flipX:_0x2347d7,flipY:_0x2fd6bd,angle:_0x11f2a3=0x0}=_0x26d342;if(_0x276386===void 0x0||_0x5de7ee===void 0x0)return;let _0x36117e=this[_0x3d8c36(0x28d)](this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)],this['_activeImageId']);if(!_0x36117e)return;if(_0x49d47b){let _0x211d69=this[_0x3d8c36(0x119)](_0x36117e[_0x3d8c36(0x178)],_0x56b872||0x0,_0x5959bd||0x0,_0x36117e[_0x3d8c36(0x114)]);if(!_0x211d69)return;this[_0x3d8c36(0x2cf)]=_0x211d69[_0x3d8c36(0x12d)]();}let _0x431da1=this[_0x3d8c36(0x2cf)];if(!(!_0x431da1||_0x431da1['length']===0x0))for(let _0x577290=0x0;_0x577290<_0x431da1[_0x3d8c36(0x289)];_0x577290++){let _0x295615=_0x431da1[_0x577290],_0x23193d=_0x295615['x'],_0x20da0a=_0x295615['y'];if(_0x2347d7&&(_0x23193d=(_0x56b872||0x0)-_0x23193d),_0x2fd6bd&&(_0x20da0a=(_0x5959bd||0x0)-_0x20da0a),_0x11f2a3!==0x0){let _0x5444db=(_0x56b872||0x0)/0x2,_0x1f2b4e=(_0x5959bd||0x0)/0x2,_0x380ab6=_0x11f2a3*Math['PI']/0xb4,_0x361d36=Math[_0x3d8c36(0x17b)](_0x380ab6),_0x39078d=Math['sin'](_0x380ab6),_0x1c900b=_0x23193d-_0x5444db,_0x33e3b1=_0x20da0a-_0x1f2b4e;_0x23193d=_0x5444db+(_0x1c900b*_0x361d36-_0x33e3b1*_0x39078d),_0x20da0a=_0x1f2b4e+(_0x1c900b*_0x39078d+_0x33e3b1*_0x361d36);}let _0x571219={'x':_0x23193d,'y':_0x20da0a,'adjName':_0x295615[_0x3d8c36(0x1a2)]};this[_0x3d8c36(0x219)](_0x5b4377,_0x571219,_0x571219[_0x3d8c36(0x1a2)],_0x276386,_0x5de7ee,this[_0x3d8c36(0x330)],this[_0x3d8c36(0x227)]);}}['_addControl'](_0xdc775,_0x59ff81,_0x1899a0,_0x5c9ba3,_0x36a414,_0x430aa3,_0x1b2b80){const _0x53d39d=_0x49d8a2;if(!this['_activeImageId'])return;let _0x24f24a='image-clip-adjust-point-'+this[_0x53d39d(0x15d)]+'-'+_0x1899a0,_0x242192=_0xdc775[_0x53d39d(0xda)](_0x24f24a);if(_0x242192){_0x242192[_0x53d39d(0x112)]({'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d['adjHandleSize']});return;}let _0x29be53=new yn(_0x24f24a,{'left':_0x59ff81['x']+_0x5c9ba3-_0x2bea1d[_0x53d39d(0xe1)],'top':_0x59ff81['y']+_0x36a414-_0x2bea1d[_0x53d39d(0xe1)],'adjName':_0x1899a0,'shapeId':this['_activeImageId'],'unitId':_0x430aa3,'subUnitId':_0x1b2b80,'width':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'height':_0x2bea1d[_0x53d39d(0xe1)]+0x8,'zIndex':_0x529f4c+0x1,'evented':!0x0});this[_0x53d39d(0x2b3)][_0x53d39d(0x214)](_0x29be53),this[_0x53d39d(0x336)](_0x29be53,_0xdc775,_0x1899a0),_0xdc775[_0x53d39d(0x1c7)](_0x29be53,_0x529f4c+0x1);}[_0x49d8a2(0x186)](){const _0x412754=_0x49d8a2;this['_shapes']['length']!==0x0&&(this[_0x412754(0x2b3)][_0x412754(0x111)](_0x229677=>_0x229677[_0x412754(0x2b0)]()),this[_0x412754(0x2b3)]=[]);}[_0x49d8a2(0x30e)](_0x54254f,_0x1cc702){const _0x7b2acc=_0x49d8a2;var _0x55a6ce;let _0x1c8b84={'x':0x0,'y':0x0},_0x2ce962=this[_0x7b2acc(0x107)][_0x7b2acc(0x2c4)](_0x54254f);if(!_0x2ce962||!_0x2ce962['with'](_0x4b5a3f)[_0x7b2acc(0x1a4)](_0x1cc702))return _0x1c8b84;let _0x1da7c3=_0x2ce962['with'](_0x5480ae),_0xd0b61c=_0x1da7c3==null?void 0x0:_0x1da7c3['getCurrentScrollState']();if(!_0xd0b61c)return _0x1c8b84;let _0x542965=(_0x55a6ce=this[_0x7b2acc(0x1b8)][_0x7b2acc(0x12f)](_0x54254f))==null?void 0x0:_0x55a6ce[_0x7b2acc(0x169)](_0x1cc702);if(!_0x542965)return _0x1c8b84;let _0x1f843a=_0x356c4d(_0xd0b61c[_0x7b2acc(0x206)],_0xd0b61c[_0x7b2acc(0x19a)],_0x2ce962[_0x7b2acc(0x228)],_0x542965);return _0x1f843a?{'x':_0x1f843a['viewportScrollX'],'y':_0x1f843a['viewportScrollY']}:_0x1c8b84;}[_0x49d8a2(0x224)](_0x5c1288,_0x23dcad){const _0x3520a4=_0x49d8a2;var _0x1b305e,_0x1e8128;let _0x42cba6=(_0x1b305e=this['_univerInstanceService'][_0x3520a4(0x12f)](_0x5c1288))==null?void 0x0:_0x1b305e['getSheetBySheetId'](_0x23dcad);return(_0x1e8128=_0x42cba6==null?void 0x0:_0x42cba6[_0x3520a4(0x221)]())==null?0x1:_0x1e8128;}[_0x49d8a2(0x336)](_0x369b80,_0x419b75,_0x50f82a){const _0x315bbb=_0x49d8a2;this[_0x315bbb(0x16d)](_0x4f15f0(_0x369b80[_0x315bbb(0x1ca)]['subscribeEvent']((_0x53afc0,_0x47ba57)=>{const _0x3c7e5c=_0x315bbb;var _0x24fe40,_0x5473f7,_0x2a405c;let {unitId:_0x1ca42e,subUnitId:_0x30f81c,drawingId:_0x2b3286}=_0x369b80[_0x3c7e5c(0x275)](),_0x317567=this[_0x3c7e5c(0x243)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!(_0x317567!=null&&_0x317567[_0x3c7e5c(0x166)]))return;let {left:_0x529c2d,top:_0x47e14b,width:_0x32b01b,height:_0x4eca48}=_0x317567[_0x3c7e5c(0x166)];this[_0x3c7e5c(0x155)]=_0x529c2d||0x0,this[_0x3c7e5c(0x172)]=_0x47e14b||0x0,this[_0x3c7e5c(0x269)]=_0x32b01b||0x0,this[_0x3c7e5c(0x304)]=_0x4eca48||0x0;let _0x341558=!!((_0x24fe40=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x24fe40[_0x3c7e5c(0x31c)]),_0x8eb0e7=!!((_0x5473f7=_0x317567[_0x3c7e5c(0x166)])!=null&&_0x5473f7[_0x3c7e5c(0x132)]),_0x5c6c87=((_0x2a405c=_0x317567[_0x3c7e5c(0x166)])==null?void 0x0:_0x2a405c[_0x3c7e5c(0x1fa)])||0x0,_0x5e5353=this[_0x3c7e5c(0x28d)](_0x1ca42e,_0x30f81c,_0x2b3286);if(!_0x5e5353)return;let _0x46a845=this[_0x3c7e5c(0x119)](_0x5e5353[_0x3c7e5c(0x178)],this['_baseWidth'],this[_0x3c7e5c(0x304)],_0x5e5353[_0x3c7e5c(0x114)]);if(!_0x46a845||(this[_0x3c7e5c(0x1db)]=_0x46a845,this[_0x3c7e5c(0x1e9)]=_0x46a845[_0x3c7e5c(0x2a1)](_0x50f82a),!this['_activeAdjustInfo']))return;this['_isStartAdjusting']=!0x0,_0x419b75['disableObjectsEvent']();let _0x52be7c=_0x5e5353[_0x3c7e5c(0x178)];this[_0x3c7e5c(0x17a)]=_0x419b75['onPointerMove$'][_0x3c7e5c(0x19b)]((_0x55aa96,_0x309507)=>{const _0x10c185=_0x3c7e5c;if(!this[_0x10c185(0x2a5)])return;let {offsetX:_0x5e5476,offsetY:_0x496242}=_0x55aa96,_0x4e9290=this[_0x10c185(0x1e9)];if(!this[_0x10c185(0x1db)]||!_0x4e9290)return;_0x419b75[_0x10c185(0x162)](),_0x419b75['setCursor'](_0x35244f[_0x10c185(0x2ac)]);let _0x3bf5b6={'left':0x0,'top':0x0,'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]},_0x3d39db=this['_getScrollInfo'](_0x1ca42e,_0x30f81c),_0x548fbc=this[_0x10c185(0x224)](_0x1ca42e,_0x30f81c),_0x1ea17d=_0x5e5476/_0x548fbc+_0x3d39db['x']-this[_0x10c185(0x155)],_0x40e053=_0x496242/_0x548fbc+_0x3d39db['y']-this[_0x10c185(0x172)];if(_0x5c6c87!==0x0){let _0x3a98a0=this[_0x10c185(0x269)]/0x2,_0x5d4d79=this[_0x10c185(0x304)]/0x2,_0x530a5b=_0x5c6c87*Math['PI']/0xb4,_0x42b635=Math[_0x10c185(0x17b)](_0x530a5b),_0x44d9b6=Math[_0x10c185(0x2c0)](_0x530a5b),_0x47fe43=_0x1ea17d-_0x3a98a0,_0x1323cb=_0x40e053-_0x5d4d79;_0x1ea17d=_0x3a98a0+(_0x47fe43*_0x42b635+_0x1323cb*_0x44d9b6),_0x40e053=_0x5d4d79+(-_0x47fe43*_0x44d9b6+_0x1323cb*_0x42b635);}_0x341558&&(_0x1ea17d=this['_baseWidth']-_0x1ea17d),_0x8eb0e7&&(_0x40e053=this[_0x10c185(0x304)]-_0x40e053);let _0x473459=this['_activeShapeModel'][_0x10c185(0x300)](_0x3bf5b6,{'x':_0x1ea17d,'y':_0x40e053},_0x4e9290,_0x341558,_0x8eb0e7),_0x208644=_0x4e9290[_0x10c185(0xe7)]||_0x4e9290[_0x10c185(0x297)]||_0x4e9290[_0x10c185(0x27f)]||_0x4e9290['gdRefR'];_0x208644!==void 0x0&&(this[_0x10c185(0x1db)][_0x10c185(0x1cf)](_0x208644,_0x473459),this[_0x10c185(0x1db)]['updateContext']({'width':this[_0x10c185(0x269)],'height':this[_0x10c185(0x304)]}),this[_0x10c185(0x2a2)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x208644,_0x473459),this[_0x10c185(0x2cf)]=this[_0x10c185(0x1db)][_0x10c185(0x12d)](),this[_0x10c185(0x1e9)]=this[_0x10c185(0x1db)][_0x10c185(0x2a1)](_0x50f82a),this['_createControls'](),_0x309507[_0x10c185(0x108)]());}),this[_0x3c7e5c(0xe3)]=_0x419b75[_0x3c7e5c(0x1fc)][_0x3c7e5c(0x19b)]((_0x10bed5,_0x3a0b6b)=>{const _0x592b11=_0x3c7e5c;if(this[_0x592b11(0x17a)]['unsubscribe'](),this['_adjHandlerPointerUp'][_0x592b11(0x2e3)](),_0x419b75[_0x592b11(0x18d)](),this[_0x592b11(0x1db)]){let _0x316704=this[_0x592b11(0x1db)][_0x592b11(0x325)](),_0x3dc849={};for(let _0x567c71 of _0x316704){let _0x87eb15=this[_0x592b11(0x1db)][_0x592b11(0x27e)](_0x567c71);_0x87eb15!==void 0x0&&(_0x3dc849[_0x567c71]=_0x87eb15);}this[_0x592b11(0x18a)][_0x592b11(0x1fb)](_0x1ca42e,_0x30f81c,_0x2b3286,_0x52be7c,_0x3dc849);}this[_0x592b11(0x1e9)]=void 0x0,this[_0x592b11(0x1db)]=void 0x0,this[_0x592b11(0x2a5)]=!0x1,_0x3a0b6b[_0x592b11(0x108)](),_0x419b75[_0x592b11(0x24a)]();}),_0x47ba57['stopPropagation']();})));}['_updateImageAdjValues'](_0x4999d6,_0x37dac4,_0x3de9d4,_0x305312,_0x10ea99){const _0x3a875f=_0x49d8a2;let _0x506399=this[_0x3a875f(0x107)][_0x3a875f(0x2c4)](_0x4999d6);if(!_0x506399)return;let {scene:_0x2af349}=_0x506399,_0x3b76a2=_0x24e648({'unitId':_0x4999d6,'subUnitId':_0x37dac4,'drawingId':_0x3de9d4}),_0xa0ec2f=_0x2af349[_0x3a875f(0x307)](_0x3b76a2);if(_0xa0ec2f instanceof _0xd2487b){var _0x148fb7;let _0x40a4b9=(_0x148fb7=_0xa0ec2f[_0x3a875f(0x323)])==null?{}:_0x148fb7;_0xa0ec2f[_0x3a875f(0x164)]({..._0x40a4b9,[_0x305312]:_0x10ea99}),_0xa0ec2f['makeDirty'](!0x0);}}[_0x49d8a2(0x126)](){const _0x767221=_0x49d8a2;let _0x3a7ac8=this[_0x767221(0x1b8)]['getCurrentTypeOfUnit$'](_0x4c1a31['UNIVER_SHEET']);this['disposeWithMe'](_0x3a7ac8[_0x767221(0x26c)](_0x48371d(_0x39766e=>_0x39766e?_0x39766e[_0x767221(0x18c)][_0x767221(0x26c)](_0x48371d(_0x512ce9=>{const _0x3793fa=_0x767221;if(!_0x512ce9)return _0x4e602d;let _0x3c65ac=_0x39766e[_0x3793fa(0x229)](),_0x50a205=this[_0x3793fa(0x107)][_0x3793fa(0x2c4)](_0x3c65ac),_0x4f664d=_0x50a205==null?void 0x0:_0x50a205[_0x3793fa(0x228)];return _0x4f664d?_0x5ba9b9(_0x4f664d):_0x4e602d;})):_0x4e602d))[_0x767221(0x212)](_0x1acefe=>{const _0x27acf7=_0x767221;let _0x1d2683=_0x1acefe[_0x27acf7(0x14b)]();this['disposeWithMe'](_0x1acefe['onPointerMove$'][_0x27acf7(0x19b)](()=>{const _0x4d97d2=_0x27acf7;this['_isImagePointerDown']&&this[_0x4d97d2(0x186)]();})),this['disposeWithMe'](_0x1d2683['changeStart$'][_0x27acf7(0x212)](_0x519f79=>{const _0x2b565c=_0x27acf7;let {objects:_0x5582d2}=_0x519f79;if(this[_0x2b565c(0x28f)](),_0x5582d2!==null&&_0x5582d2['size']===0x1){let _0x33a3e2=_0x5582d2[_0x2b565c(0x2cc)]()[_0x2b565c(0x15a)]()['value'];_0x33a3e2 instanceof _0xd2487b&&_0x33a3e2[_0x2b565c(0x178)]&&(this[_0x2b565c(0x25b)]=!0x0);}})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x2f4)][_0x27acf7(0x212)](()=>{const _0x5000b1=_0x27acf7;this[_0x5000b1(0x25b)]&&this[_0x5000b1(0x186)]();})),this[_0x27acf7(0x16d)](_0x1acefe[_0x27acf7(0x1fc)]['subscribeEvent'](()=>{const _0xce4466=_0x27acf7;this[_0xce4466(0x25b)]&&(this['_isImagePointerDown']=!0x1,this[_0xce4466(0x28f)]());})),this[_0x27acf7(0x16d)](_0x1d2683[_0x27acf7(0x322)][_0x27acf7(0x212)](()=>{const _0x5c042e=_0x27acf7;if(this[_0x5c042e(0x330)]&&this[_0x5c042e(0x227)]&&this['_activeImageId']){let _0x3ab4c6=this['_getImagePrstGeom'](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]);if(_0x3ab4c6){var _0x5e5626,_0x3d7988;let _0x1bac29=this[_0x5c042e(0x243)](this[_0x5c042e(0x330)],this[_0x5c042e(0x227)],this[_0x5c042e(0x15d)]),_0x4315f6=(_0x1bac29==null||(_0x5e5626=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x5e5626[_0x5c042e(0x2b9)])||0x0,_0x35787e=(_0x1bac29==null||(_0x3d7988=_0x1bac29[_0x5c042e(0x166)])==null?void 0x0:_0x3d7988[_0x5c042e(0x232)])||0x0,_0x1ac35d=this[_0x5c042e(0x119)](_0x3ab4c6[_0x5c042e(0x178)],_0x4315f6,_0x35787e,_0x3ab4c6[_0x5c042e(0x114)]);_0x1ac35d&&(this[_0x5c042e(0x2cf)]=_0x1ac35d[_0x5c042e(0x12d)](),this[_0x5c042e(0x186)](),this['_createControls'](!0x0));}}}));}));}[_0x49d8a2(0x287)](){const _0x3fedab=_0x49d8a2;this['disposeWithMe'](this[_0x3fedab(0x159)]['focus$'][_0x3fedab(0x212)](_0x3eeff3=>{const _0x579926=_0x3fedab;if(_0x3eeff3[_0x579926(0x289)]===0x1){let _0x382f1c=_0x3eeff3[0x0];if(_0x382f1c[_0x579926(0x12e)]===_0x336997[_0x579926(0x2b7)]){let {unitId:_0x558b8b,subUnitId:_0x1a483e,drawingId:_0x45a9d9}=_0x382f1c,_0x1fae29=this[_0x579926(0x28d)](_0x558b8b,_0x1a483e,_0x45a9d9);if(_0x1fae29){var _0xbf5019,_0x4060b4;this['_activeImageId']=_0x45a9d9,this[_0x579926(0x330)]=_0x558b8b,this[_0x579926(0x227)]=_0x1a483e;let _0x2bd36c=this[_0x579926(0x243)](_0x558b8b,_0x1a483e,_0x45a9d9),_0x42662c=(_0x2bd36c==null||(_0xbf5019=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0xbf5019['width'])||0x0,_0x21088f=(_0x2bd36c==null||(_0x4060b4=_0x2bd36c[_0x579926(0x166)])==null?void 0x0:_0x4060b4[_0x579926(0x232)])||0x0,_0x4a8446=this['_getOrCreateShapeModel'](_0x1fae29[_0x579926(0x178)],_0x42662c,_0x21088f,_0x1fae29[_0x579926(0x114)]);_0x4a8446&&(this['_activeAdjustPointList']=_0x4a8446[_0x579926(0x12d)]()),this[_0x579926(0x186)](),this['_createControls'](!0x0);}else this[_0x579926(0x30f)]();}else this['_resetState']();}else this[_0x579926(0x30f)]();})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x127)][_0x3fedab(0x212)](_0x131599=>{const _0x5fca99=_0x3fedab;if(_0x131599['length']===0x1){let _0x3cfac4=_0x131599[0x0],_0x32c830=this[_0x5fca99(0x159)][_0x5fca99(0x26a)](_0x3cfac4);(_0x32c830==null?void 0x0:_0x32c830[_0x5fca99(0x12e)])===_0x336997[_0x5fca99(0x2b7)]&&this['_activeImageId']===_0x3cfac4['drawingId']&&(this[_0x5fca99(0x186)](),this[_0x5fca99(0x28f)](!0x0));}})),this[_0x3fedab(0x16d)](this[_0x3fedab(0x159)][_0x3fedab(0x2dc)][_0x3fedab(0x212)](_0x11b0ce=>{const _0x5d5a69=_0x3fedab;for(let _0x4d7d77 of _0x11b0ce)this[_0x5d5a69(0x15d)]===_0x4d7d77[_0x5d5a69(0x20e)]&&this[_0x5d5a69(0x30f)]();}));}[_0x49d8a2(0x30f)](){const _0x18bc89=_0x49d8a2;this[_0x18bc89(0x15d)]=null,this['_unitId']=null,this[_0x18bc89(0x227)]=null,this[_0x18bc89(0x2cf)]=void 0x0,this['_clearControls']();}};er=Y([J(0x1,_0x5a9176),J(0x2,_0x3465f0(_0x2565d9)),J(0x3,_0x2320a1),J(0x4,_0x3465f0(Q))],er);let tr=class extends _0x1e0fa2{constructor(_0x19fb24,_0x4233bf,_0x92d6be,_0x5d1b63){const _0xafe370=_0x49d8a2;super(),this['_univerInstanceService']=_0x19fb24,this[_0xafe370(0x1c0)]=_0x4233bf,this[_0xafe370(0x334)]=_0x92d6be,this[_0xafe370(0x220)]=_0x5d1b63,this[_0xafe370(0x1e4)]();}['_initSheetChange'](){const _0xf7409e=_0x49d8a2;this[_0xf7409e(0x16d)](this[_0xf7409e(0x1c0)][_0xf7409e(0x31d)]({'getMutations':_0x3befe2=>{const _0x4d273f=_0xf7409e;if(_0x3befe2['id']===_0x414783['id']){let _0xa5df6e=_0x20e706(this[_0x4d273f(0x1b8)],_0x3befe2['params']);if(!_0xa5df6e)return{'redos':[],'undos':[]};let {unitId:_0x3d1519,subUnitId:_0x7316b0}=_0xa5df6e,_0x3c5875=this['_sheetDrawingService'][_0x4d273f(0x233)](_0x3d1519,_0x7316b0),_0x230e44=Object[_0x4d273f(0x2cc)](_0x3c5875)[_0x4d273f(0x1da)](_0x2d5dbc=>_0x2d5dbc[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x230e44[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d49e8=[],_0x3928a9=[];for(let _0x4c231f=0x0;_0x4c231f<_0x230e44[_0x4d273f(0x289)];_0x4c231f++){let _0x5e8c39=_0x230e44[_0x4c231f],_0x2dda63=this[_0x4d273f(0x220)][_0x4d273f(0x296)](_0x5e8c39[_0x4d273f(0x1b7)],_0x5e8c39[_0x4d273f(0x2b4)],_0x5e8c39[_0x4d273f(0x20e)]);if(!_0x2dda63)continue;let {redo:_0x2cef78,undo:_0x1136b0,objects:_0x1e3942}=this[_0x4d273f(0x334)]['getBatchRemoveOp']([_0x5e8c39]);_0x2d49e8['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId']}}),_0x2d49e8[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x2cef78,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x2fbd15['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0x1136b0,'objects':_0x1e3942}}),_0x3928a9['push']({'id':_0x47dbbc['id'],'params':{'unitId':_0x3d1519,'subUnitId':_0x7316b0,'shapeId':_0x5e8c39['drawingId'],'shapeType':_0x2dda63[_0x4d273f(0x285)](),'shapeData':JSON[_0x4d273f(0x230)](JSON[_0x4d273f(0x266)](_0x2dda63[_0x4d273f(0x205)]()))}});}return{'redos':_0x2d49e8,'undos':_0x3928a9};}else{if(_0x3befe2['id']===_0x54e5a0['id']){let {unitId:_0x3951ee,subUnitId:_0x56fcc5,targetSubUnitId:_0x1970b7}=_0x3befe2[_0x4d273f(0x2ba)];if(!_0x3951ee||!_0x56fcc5||!_0x1970b7)return{'redos':[],'undos':[]};let _0xd37df7=this[_0x4d273f(0x334)][_0x4d273f(0x233)](_0x3951ee,_0x56fcc5),_0x4db82c=Object[_0x4d273f(0x2cc)](_0xd37df7)['filter'](_0x486d3b=>_0x486d3b[_0x4d273f(0x12e)]===_0x336997[_0x4d273f(0x181)]);if(_0x4db82c[_0x4d273f(0x289)]===0x0)return{'redos':[],'undos':[]};let _0x2d7efa=[],_0x278517=[];for(let _0x13e062=0x0;_0x13e062<_0x4db82c[_0x4d273f(0x289)];_0x13e062++){let _0x2f2826=_0x4db82c[_0x13e062],_0x7a75e5=this[_0x4d273f(0x220)]['getShapeModel'](_0x2f2826['unitId'],_0x2f2826[_0x4d273f(0x2b4)],_0x2f2826[_0x4d273f(0x20e)]);if(!_0x7a75e5)continue;let _0x4a58db=_0x3893c7(),_0x4dafd5={..._0x2f2826,'unitId':_0x3951ee,'subUnitId':_0x1970b7,'drawingId':_0x4a58db},{redo:_0xf5d128,undo:_0x561f6a,objects:_0x31fff6}=this[_0x4d273f(0x334)][_0x4d273f(0x20b)]([_0x4dafd5]);_0x2d7efa[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0x337)],'op':_0xf5d128,'objects':_0x31fff6}}),_0x2d7efa[_0x4d273f(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db,'shapeType':_0x7a75e5[_0x4d273f(0x285)](),'shapeData':JSON['parse'](JSON[_0x4d273f(0x266)](_0x7a75e5[_0x4d273f(0x205)]()))}}),_0x278517[_0x4d273f(0x214)]({'id':_0x32e37c['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'shapeId':_0x4a58db}}),_0x278517[_0x4d273f(0x214)]({'id':_0x2fbd15['id'],'params':{'unitId':_0x3951ee,'subUnitId':_0x1970b7,'type':_0x20e0af[_0x4d273f(0xfb)],'op':_0x561f6a,'objects':_0x31fff6}});}return{'redos':_0x2d7efa,'undos':_0x278517};}}return{'redos':[],'undos':[]};}}));}};tr=Y([J(0x0,_0x3465f0(_0x2320a1)),J(0x1,_0x3465f0(_0x85f95e)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a))],tr);let nr=class extends _0x1e0fa2{constructor(_0x2fd696,_0x3329c4,_0x244be0,_0x59643d,_0x358101){const _0x26d9dd=_0x49d8a2;super(),this['_context']=_0x2fd696,this[_0x26d9dd(0x185)]=_0x3329c4,this[_0x26d9dd(0x159)]=_0x244be0,this['_contextService']=_0x59643d,this['_sheetsShapeService']=_0x358101,q(this,_0x26d9dd(0x124),null),this['_initEvents'](),this['_initSelection'](),this[_0x26d9dd(0x28c)]();}[_0x49d8a2(0x1d6)](){const _0x32b58d=_0x49d8a2;let {scene:_0x12f538}=this[_0x32b58d(0x12a)];this['disposeWithMe'](_0x12f538[_0x32b58d(0x31b)][_0x32b58d(0x19b)](_0x1214e9=>{const _0xebdca7=_0x32b58d;let {offsetX:_0x475872,offsetY:_0xff4328}=_0x1214e9,_0x44c632=_0x12f538[_0xebdca7(0x177)](_0x1d9584['FromArray']([_0x475872,_0xff4328]));if(_0x44c632 instanceof vn){if(_0x5d2a5e(this['_sheetsShapeService'][_0xebdca7(0x285)](_0x44c632[_0xebdca7(0x1b7)],_0x44c632[_0xebdca7(0x2b4)],_0x44c632['shapeId'])))return;this[_0xebdca7(0x185)][_0xebdca7(0x2f3)]({'visible':!0x0,'unitId':_0x44c632[_0xebdca7(0x1b7)],'subUnitId':_0x44c632[_0xebdca7(0x2b4)],'shapeId':_0x44c632[_0xebdca7(0x142)],'shapeKey':_0x44c632[_0xebdca7(0x163)]});}}));}['_initSelection'](){const _0x5cfc71=_0x49d8a2;this[_0x5cfc71(0x16d)](this[_0x5cfc71(0x159)][_0x5cfc71(0x139)]['subscribe'](_0x1e3da6=>{const _0x45370a=_0x5cfc71;if(_0x1e3da6[_0x45370a(0x289)]===0x1){let _0x9664a=_0x1e3da6[0x0],_0x22d218=this['_drawingManagerService'][_0x45370a(0x26a)](_0x9664a);if((_0x22d218==null?void 0x0:_0x22d218['drawingType'])===_0x336997['DRAWING_SHAPE']){let _0x1b2f7e=this[_0x45370a(0x185)][_0x45370a(0x25a)]();if((_0x1b2f7e==null?void 0x0:_0x1b2f7e[_0x45370a(0x142)])===_0x9664a[_0x45370a(0x20e)]&&_0x1b2f7e[_0x45370a(0x316)])return;_0x5d2a5e(this[_0x45370a(0x220)]['getShapeType'](_0x9664a[_0x45370a(0x1b7)],_0x9664a[_0x45370a(0x2b4)],_0x9664a[_0x45370a(0x20e)]))&&this[_0x45370a(0x185)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x5635d4=_0x45370a;this[_0x5635d4(0x185)][_0x5635d4(0x2f3)](null);}));}else this[_0x45370a(0x185)][_0x45370a(0x25a)]()&&(this[_0x45370a(0x185)][_0x45370a(0x263)](!0x0),requestAnimationFrame(()=>{const _0x49817e=_0x45370a;this[_0x49817e(0x185)][_0x49817e(0x2f3)](null);}));})),this[_0x5cfc71(0x16d)](this['_drawingManagerService'][_0x5cfc71(0x2dc)][_0x5cfc71(0x212)](_0x4ba979=>{const _0x405e0f=_0x5cfc71;let _0x1f536b=this[_0x405e0f(0x185)][_0x405e0f(0x25a)]();_0x1f536b&&_0x4ba979[_0x405e0f(0x2ee)](_0x26db51=>_0x26db51[_0x405e0f(0x20e)]===_0x1f536b[_0x405e0f(0x142)])&&this[_0x405e0f(0x185)][_0x405e0f(0x2f3)](null);}));}[_0x49d8a2(0x28c)](){const _0x26d221=_0x49d8a2;this[_0x26d221(0x16d)](this[_0x26d221(0x185)][_0x26d221(0xfa)][_0x26d221(0x212)](_0x2cb3a8=>{const _0x2a2e07=_0x26d221;let {scene:_0x205a49}=this[_0x2a2e07(0x12a)];if(this[_0x2a2e07(0x124)]){let _0x25ec0d=_0x205a49[_0x2a2e07(0xda)](this[_0x2a2e07(0x124)]);_0x25ec0d&&_0x25ec0d[_0x2a2e07(0x2f3)](!0x1);}if(_0x2cb3a8){let _0x436f5a=!!_0x2cb3a8[_0x2a2e07(0x316)],_0x2343f5=_0x205a49['getObjectIncludeInGroup'](_0x2cb3a8[_0x2a2e07(0x103)]);_0x2343f5&&(_0x2343f5[_0x2a2e07(0x2f3)](_0x436f5a),this[_0x2a2e07(0x124)]=_0x2cb3a8[_0x2a2e07(0x103)]),this['_contextService'][_0x2a2e07(0x14f)](_0x7f228e,_0x436f5a);}else this[_0x2a2e07(0x124)]=null,this[_0x2a2e07(0x2e9)][_0x2a2e07(0x14f)](_0x7f228e,!0x1);}));}};nr=Y([J(0x1,_0x3465f0(Zn)),J(0x2,_0x5a9176),J(0x3,_0x2d429f),J(0x4,_0x3465f0(_0x1a451a))],nr);let rr=class extends _0x596e22{constructor(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296){super(_0x5b6de9,_0x177bf4,_0x44d9c7,_0xce0296,{'componentKey':En,'editorUnitId':Tn});}};rr=Y([J(0x1,_0x3465f0(_0x529093)),J(0x2,_0x3465f0(_0x16c1cd)),J(0x3,_0x3465f0(_0x3889b2))],rr);let ir=class extends _0x1e0fa2{constructor(_0x1ceb18,_0x4e55fb,_0x107fe7,_0x3961e7,_0x2c518e,_0x19316a){const _0x16b538=_0x49d8a2;super(),this[_0x16b538(0x2af)]=_0x1ceb18,this[_0x16b538(0x107)]=_0x4e55fb,this['_drawingManagerService']=_0x107fe7,this[_0x16b538(0x118)]=_0x3961e7,this[_0x16b538(0x21b)]=_0x2c518e,this[_0x16b538(0x31a)]=_0x19316a,q(this,_0x16b538(0x20d),new Set()),this[_0x16b538(0x2f6)]();}['_initialize'](){const _0x50d91d=_0x49d8a2;this['_drawingAddListener'](),this[_0x50d91d(0x160)](),this[_0x50d91d(0x324)]();}[_0x49d8a2(0x180)](){const _0x35b84f=_0x49d8a2;this[_0x35b84f(0x16d)](this[_0x35b84f(0x159)]['add$'][_0x35b84f(0x212)](_0x72c374=>{const _0x3ddf8f=_0x35b84f;this[_0x3ddf8f(0x150)](_0x72c374);}));}[_0x49d8a2(0x160)](){const _0x38fdd7=_0x49d8a2;this[_0x38fdd7(0x16d)](this[_0x38fdd7(0x2af)][_0x38fdd7(0x242)](_0x44c316=>{const _0x355c44=_0x38fdd7;if(_0x44c316['id']===_0x22295a['id']){let {unitId:_0x2c12f2,subUnitId:_0x1cf971,shapeId:_0x5f026e}=_0x44c316[_0x355c44(0x2ba)],_0x51fb82=this[_0x355c44(0x1c9)](_0x2c12f2),_0x5a1590=_0x24e648({'unitId':_0x2c12f2,'subUnitId':_0x1cf971,'drawingId':_0x5f026e}),_0x248665=_0x51fb82==null?void 0x0:_0x51fb82[_0x355c44(0x228)][_0x355c44(0xda)](_0x5a1590);_0x248665&&(this[_0x355c44(0x31a)][_0x355c44(0x153)](_0x248665),_0x248665[_0x355c44(0x165)](!0x0));return;}if(_0x44c316['id']===_0x47dbbc['id']){var _0x2f14be;let {unitId:_0x2a3d62,subUnitId:_0x40aea9,shapeId:_0x34b31c}=_0x44c316[_0x355c44(0x2ba)],_0xc618bc=this[_0x355c44(0x1c9)](_0x2a3d62);if(_0xc618bc==null)return;let {scene:_0x733d62}=_0xc618bc,_0x50dda7=_0x24e648({'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}),_0x59279c=_0x733d62[_0x355c44(0xda)](_0x50dda7);if(!((_0x2f14be=this['_renderManagerService'][_0x355c44(0x2c4)](_0x2a3d62))!=null&&_0x2f14be['with'](_0x4b5a3f)[_0x355c44(0x1a4)](_0x40aea9)))return!0x1;if(_0x59279c)return;this['_insertShapes']([{'unitId':_0x2a3d62,'subUnitId':_0x40aea9,'drawingId':_0x34b31c}]);}}));}[_0x49d8a2(0x324)](){const _0x220787=_0x49d8a2;this['disposeWithMe'](this['_drawingManagerService'][_0x220787(0x127)][_0x220787(0x212)](_0xebe672=>{const _0x1a61c8=_0x220787;_0xebe672[_0x1a61c8(0x111)](_0x4d4fca=>{const _0x394d44=_0x1a61c8;let {unitId:_0x15b528,subUnitId:_0x196a46,drawingId:_0x476f24}=_0x4d4fca,_0x2338bd=this[_0x394d44(0x159)]['getDrawingByParam'](_0x4d4fca);if(_0x2338bd==null)return;let {transform:_0x53169f,drawingType:_0x5dc258,srcRect:_0x1217e3,prstGeom:_0xb27090}=_0x2338bd;if(_0x5dc258!==_0x336997[_0x394d44(0x181)])return;let _0x128d25=this[_0x394d44(0x1c9)](_0x15b528);if(_0x128d25==null)return;let {scene:_0x16f417,transformer:_0x2e32aa}=_0x128d25;if(_0x53169f==null)return!0x0;let _0x235cce=_0x24e648({'unitId':_0x15b528,'subUnitId':_0x196a46,'drawingId':_0x476f24}),_0x1f30e1=_0x16f417[_0x394d44(0xda)](_0x235cce);if(_0x1f30e1==null)return!0x0;_0x1f30e1[_0x394d44(0x279)](_0x1217e3),_0x1f30e1[_0x394d44(0x2ca)](_0xb27090);});}));}['_insertShapes'](_0x1a5140){const _0x3d7182=_0x49d8a2;for(let _0x4f53c2 of _0x1a5140){var _0x3e59ed;let {unitId:_0x533d1e,subUnitId:_0x4c5721,drawingId:_0x3dc0ac}=_0x4f53c2,_0x5606a3=this['_getSceneAndTransformerByDrawingSearch'](_0x533d1e),_0x450b8a=(_0x3e59ed=_0x5b5b76(this[_0x3d7182(0x118)],_0x533d1e))==null?void 0x0:_0x3e59ed[_0x3d7182(0x2b4)];if(_0x5606a3==null||_0x450b8a!==_0x4c5721)return;let _0x3ceb03=_0x24e648({'unitId':_0x533d1e,'subUnitId':_0x4c5721,'drawingId':_0x3dc0ac});if(this[_0x3d7182(0x20d)][_0x3d7182(0x215)](_0x3ceb03)||_0x5606a3[_0x3d7182(0x228)][_0x3d7182(0xda)](_0x3ceb03)!=null)return;let _0x32f3c7=this[_0x3d7182(0x159)][_0x3d7182(0x26a)](_0x4f53c2);if(_0x32f3c7==null||_0x32f3c7['drawingType']!==_0x336997[_0x3d7182(0x181)])return;if(_0x5d2a5e((_0x32f3c7['data']||{})[_0x3d7182(0x2b2)])){let _0x284630=_0x32f3c7[_0x3d7182(0x166)];_0x284630&&(_0x32f3c7[_0x3d7182(0x166)]={..._0x284630,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x3d7182(0x20d)][_0x3d7182(0x120)](_0x3ceb03);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x32f3c7,_0x5606a3[_0x3d7182(0x228)]);}finally{this[_0x3d7182(0x20d)][_0x3d7182(0x2a3)](_0x3ceb03);}queueMicrotask(()=>{const _0x4888dd=_0x3d7182;if(this[_0x4888dd(0x24c)])return;let _0x175a0b=_0x24e648(_0x4f53c2);if(!_0x5606a3['scene'][_0x4888dd(0xda)](_0x175a0b))return;let _0x513f57=this[_0x4888dd(0x159)]['getDrawingByParam'](_0x4f53c2);_0x513f57&&this[_0x4888dd(0x159)][_0x4888dd(0x2fd)]([_0x513f57]);});}}[_0x49d8a2(0x1c9)](_0x46c3c4){const _0x2e8e12=_0x49d8a2;if(_0x46c3c4==null)return;let _0x5e5257=this[_0x2e8e12(0x107)]['getRenderById'](_0x46c3c4),_0x4277c4=_0x5e5257==null?void 0x0:_0x5e5257['scene'];return _0x4277c4==null?null:{'scene':_0x4277c4,'transformer':_0x4277c4[_0x2e8e12(0x14b)]()};}};ir=Y([J(0x0,_0x3002c9),J(0x1,_0x2565d9),J(0x2,_0x5a9176),J(0x3,_0x2320a1),J(0x4,_0x3465f0(_0x4d04f3)),J(0x5,_0x3465f0(X))],ir);function _0x208c(_0x4fe8d9,_0x40ba78){_0x4fe8d9=_0x4fe8d9-0xd9;const _0x480688=_0x4806();let _0x208ca0=_0x480688[_0x4fe8d9];return _0x208ca0;}const ar={'normal':{'fill':_0x2bea1d['cxnPointFill'],'stroke':_0x2bea1d['cxnPointStroke'],'strokeWidth':_0x2bea1d[_0x49d8a2(0x2e5)]},'highlighted':{'fill':_0x49d8a2(0x1e3),'stroke':'#1a73e8','strokeWidth':0x2}};var or=class extends _0x176254{constructor(_0x3d732b,_0xde7c27){const _0x435980=_0x49d8a2;super(_0x3d732b,_0xde7c27),q(this,'_targetShapeId',''),q(this,_0x435980(0x2bb),-0x1),q(this,'_unitId',''),q(this,_0x435980(0x227),''),q(this,_0x435980(0x2f5),!0x1),_0xde7c27&&this[_0x435980(0x25e)](_0xde7c27);}['getConnectionInfo'](){const _0x4efe2e=_0x49d8a2;return{'unitId':this[_0x4efe2e(0x330)],'subUnitId':this[_0x4efe2e(0x227)],'shapeId':this[_0x4efe2e(0x30a)],'cxnIndex':this[_0x4efe2e(0x2bb)]};}['setHighlighted'](_0x46f819){const _0x50cfb7=_0x49d8a2;this['_isHighlighted']!==_0x46f819&&(this[_0x50cfb7(0x2f5)]=_0x46f819,this['makeDirty'](!0x0));}[_0x49d8a2(0x1ec)](){const _0x5448e3=_0x49d8a2;return this[_0x5448e3(0x2f5)];}[_0x49d8a2(0x25e)](_0x212a9e){const _0x5cb698=_0x49d8a2;var _0x49726c,_0x23bd8c;_0x212a9e[_0x5cb698(0x283)]!==void 0x0&&(this[_0x5cb698(0x30a)]=_0x212a9e[_0x5cb698(0x283)]),_0x212a9e['cxnIndex']!==void 0x0&&(this[_0x5cb698(0x2bb)]=_0x212a9e[_0x5cb698(0x217)]),_0x212a9e[_0x5cb698(0x1b7)]!==void 0x0&&(this[_0x5cb698(0x330)]=_0x212a9e[_0x5cb698(0x1b7)]),_0x212a9e['subUnitId']!==void 0x0&&(this[_0x5cb698(0x227)]=_0x212a9e[_0x5cb698(0x2b4)]),_0x212a9e[_0x5cb698(0x1ec)]!==void 0x0&&(this[_0x5cb698(0x2f5)]=_0x212a9e[_0x5cb698(0x1ec)]),this[_0x5cb698(0x112)]({'width':(_0x49726c=_0x212a9e[_0x5cb698(0x2b9)])==null?_0x2bea1d['cxnPointRadius']*0x2:_0x49726c,'height':(_0x23bd8c=_0x212a9e['height'])==null?_0x2bea1d[_0x5cb698(0x1eb)]*0x2:_0x23bd8c});}[_0x49d8a2(0x15e)](_0x84add3){const _0x196618=_0x49d8a2;let _0x1fc8cd=this[_0x196618(0x2f5)]?ar[_0x196618(0x1fe)]:ar[_0x196618(0x1f0)];_0x1578ae[_0x196618(0x1bf)](_0x84add3,{'radius':_0x2bea1d[_0x196618(0x1eb)],'fill':_0x1fc8cd[_0x196618(0x270)],'stroke':_0x1fc8cd[_0x196618(0x2dd)],'strokeWidth':_0x1fc8cd[_0x196618(0x276)],'evented':!0x0});}};let sr=class extends _0x1e0fa2{constructor(_0x15c481,_0x46cb2e,_0x530c98,_0x4bf09c){const _0x5d6328=_0x49d8a2;super(),this[_0x5d6328(0x12a)]=_0x15c481,this['_renderManagerService']=_0x46cb2e,this[_0x5d6328(0x159)]=_0x530c98,this[_0x5d6328(0x220)]=_0x4bf09c,q(this,_0x5d6328(0x167),[]),q(this,'_activeTargetShapeId',null),q(this,'_highlightedSiteIndex',-0x1),q(this,_0x5d6328(0x14d),null),q(this,'_unitId',''),q(this,_0x5d6328(0x227),''),q(this,_0x5d6328(0x2d7),null);}['startConnectionDetection'](_0x59a571,_0x211fef,_0x2c1bf1,_0x385795){const _0x596892=_0x49d8a2;this[_0x596892(0x14d)]=_0x59a571,this[_0x596892(0x330)]=_0x211fef,this['_subUnitId']=_0x2c1bf1,this['_draggingConnectorId']=_0x385795;}[_0x49d8a2(0x14a)](_0x4ce87c){const _0x1156d6=_0x49d8a2;if(!this['_currentScene'])return null;let _0x562364=this[_0x1156d6(0x2bd)](_0x4ce87c);return _0x562364?(this[_0x1156d6(0x1ad)]!==_0x562364[_0x1156d6(0x142)]&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0xff)](_0x562364[_0x1156d6(0x142)],_0x562364[_0x1156d6(0x11d)]),this[_0x1156d6(0x1ad)]=_0x562364[_0x1156d6(0x142)]),this[_0x1156d6(0x32d)](_0x4ce87c)):(this[_0x1156d6(0x1ad)]!==null&&(this[_0x1156d6(0x311)](),this[_0x1156d6(0x1ad)]=null),null);}['endConnectionDetection'](){const _0x29070d=_0x49d8a2;this[_0x29070d(0x311)](),this[_0x29070d(0x14d)]=null,this[_0x29070d(0x1ad)]=null,this[_0x29070d(0x2aa)]=-0x1,this[_0x29070d(0x2d7)]=null;}[_0x49d8a2(0x1b4)](){const _0x39a936=_0x49d8a2;return this['_activeTargetShapeId']===null||this[_0x39a936(0x2aa)]<0x0?null:{'shapeId':this[_0x39a936(0x1ad)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x49d8a2(0x2bd)](_0x1adbaf){const _0x4666fa=_0x49d8a2;let _0x5eb57b=this[_0x4666fa(0x159)][_0x4666fa(0x233)](this[_0x4666fa(0x330)],this[_0x4666fa(0x227)]);for(let _0x8399a0 of Object[_0x4666fa(0x2c1)](_0x5eb57b)){if(_0x8399a0===this[_0x4666fa(0x2d7)]||_0x5eb57b[_0x8399a0][_0x4666fa(0x12e)]!==_0x336997[_0x4666fa(0x181)])continue;let _0x194973=this['_sheetsShapeService'][_0x4666fa(0x296)](this[_0x4666fa(0x330)],this['_subUnitId'],_0x8399a0);if(!_0x194973||_0x5d2a5e(_0x194973[_0x4666fa(0x285)]())||_0x194973[_0x4666fa(0x198)]()[_0x4666fa(0x289)]===0x0||!this[_0x4666fa(0x14d)])continue;let _0x5152da=_0x24e648({'unitId':this[_0x4666fa(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x8399a0}),_0x37c545=this['_currentScene'][_0x4666fa(0xda)](_0x5152da);if(!_0x37c545)continue;let {left:_0x304b60,top:_0x25b1fd,width:_0x7ea0be,height:_0x45f99b}=_0x37c545[_0x4666fa(0x23d)](),_0x21e3e1=_0x304b60+_0x7ea0be/0x2,_0x2c5eb0=_0x25b1fd+_0x45f99b/0x2,_0x2602d8=_0x37c545[_0x4666fa(0x166)][_0x4666fa(0x1d8)](),_0x1010d6=new _0x3a4198([_0x2602d8[0x0],_0x2602d8[0x1],_0x2602d8[0x2],_0x2602d8[0x3],_0x21e3e1,_0x2c5eb0]),_0x2d6516=_0x37c545[_0x4666fa(0x2bf)](),_0x5c5849=(_0x37c545['isInGroup']&&(_0x2d6516==null?void 0x0:_0x2d6516[_0x4666fa(0x2e7)])===_0x18ef31[_0x4666fa(0x237)]?_0x2d6516['ancestorTransform'][_0x4666fa(0x1be)](_0x1010d6):_0x1010d6)[_0x4666fa(0x2e4)]()[_0x4666fa(0x305)](_0x1adbaf),_0x409467=_0x7ea0be/0x2,_0x31ddd0=_0x45f99b/0x2;if(_0x5c5849['x']>=-_0x409467-0x5&&_0x5c5849['x']<=_0x409467+0x5&&_0x5c5849['y']>=-_0x31ddd0-0x5&&_0x5c5849['y']<=_0x31ddd0+0x5)return{'shapeId':_0x8399a0,'shapeModel':_0x194973};}return null;}[_0x49d8a2(0xff)](_0x3215fe,_0x9dc25){const _0x144207=_0x49d8a2;if(!this['_currentScene'])return;let _0x26c902=_0x24e648({'unitId':this[_0x144207(0x330)],'subUnitId':this['_subUnitId'],'drawingId':_0x3215fe}),_0x1a0614=this[_0x144207(0x14d)]['getObjectIncludeInGroup'](_0x26c902);if(!_0x1a0614)return;let {left:_0xda7bea,top:_0x1d4cb6,width:_0x383b31,height:_0x38f99d}=_0x1a0614[_0x144207(0x23d)](),_0x45f1a3=_0xda7bea+_0x383b31/0x2,_0x26f03a=_0x1d4cb6+_0x38f99d/0x2,_0x224bcf=_0x1a0614[_0x144207(0x166)][_0x144207(0x1d8)](),_0x4970b0=new _0x3a4198([_0x224bcf[0x0],_0x224bcf[0x1],_0x224bcf[0x2],_0x224bcf[0x3],_0x45f1a3,_0x26f03a]),_0x1a919a=_0x1a0614[_0x144207(0x2bf)](),_0x13b9b4=_0x1a0614[_0x144207(0x234)]&&(_0x1a919a==null?void 0x0:_0x1a919a[_0x144207(0x2e7)])===_0x18ef31[_0x144207(0x237)]?_0x1a919a[_0x144207(0x22a)]['multiply'](_0x4970b0):_0x4970b0;_0x9dc25[_0x144207(0x314)]({'width':_0x383b31,'height':_0x38f99d});let _0x3ed7fb=_0x9dc25[_0x144207(0x198)]();for(let _0x428104 of _0x3ed7fb){let _0x255868=_0x428104['x']-_0x383b31/0x2,_0x526979=_0x428104['y']-_0x38f99d/0x2,_0x2b38c9=_0x13b9b4[_0x144207(0x305)]({'x':_0x255868,'y':_0x526979}),_0xbb3c80=_0x2b38c9['x'],_0x5c1a00=_0x2b38c9['y'],_0xc70b5d=new or(_0x144207(0x309)+_0x3215fe+'-'+_0x428104[_0x144207(0x2d2)],{'left':_0xbb3c80-_0x2bea1d['cxnPointRadius'],'top':_0x5c1a00-_0x2bea1d['cxnPointRadius'],'targetShapeId':_0x3215fe,'cxnIndex':_0x428104[_0x144207(0x2d2)],'unitId':this[_0x144207(0x330)],'subUnitId':this[_0x144207(0x227)],'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x144207(0x1eb)]*0x2,'zIndex':_0x529f4c+0x2,'evented':!0x1});this[_0x144207(0x167)][_0x144207(0x214)](_0xc70b5d),this[_0x144207(0x14d)][_0x144207(0x1c7)](_0xc70b5d,_0x529f4c+0x2);}}[_0x49d8a2(0x32d)](_0x2d1b33){const _0xa9c6d1=_0x49d8a2;let _0x8f6036=null,_0x496ecc=0x1/0x0,_0x172d7d=null;for(let _0x4fa693 of this[_0xa9c6d1(0x167)]){let _0x2a7601=_0x4fa693[_0xa9c6d1(0x26f)]+_0x2bea1d['cxnPointRadius'],_0x5dd769=_0x4fa693[_0xa9c6d1(0x25d)]+_0x2bea1d[_0xa9c6d1(0x1eb)],_0x4cdf21=_0x2d1b33['x']-_0x2a7601,_0x539e84=_0x2d1b33['y']-_0x5dd769,_0xe3d2c8=Math[_0xa9c6d1(0x2da)](_0x4cdf21*_0x4cdf21+_0x539e84*_0x539e84);_0xe3d2c8<_0x496ecc&&(_0x496ecc=_0xe3d2c8,_0x8f6036=_0x4fa693,_0x172d7d={'x':_0x2a7601,'y':_0x5dd769});}let _0x39b69d=_0x496ecc<=0xa&&_0x8f6036?_0x8f6036[_0xa9c6d1(0x28e)]()[_0xa9c6d1(0x217)]:-0x1;if(_0x39b69d!==this[_0xa9c6d1(0x2aa)]){for(let _0x577fe1 of this[_0xa9c6d1(0x167)]){let _0x48950e=_0x577fe1[_0xa9c6d1(0x28e)]();_0x577fe1['setHighlighted'](_0x48950e[_0xa9c6d1(0x217)]===_0x39b69d);}this[_0xa9c6d1(0x2aa)]=_0x39b69d;}if(_0x496ecc<=0xa&&_0x8f6036&&_0x172d7d){let _0x11a42a=_0x8f6036[_0xa9c6d1(0x28e)](),_0x44a185=this['_getConnectionSiteAngle'](_0x11a42a[_0xa9c6d1(0x142)],_0x11a42a[_0xa9c6d1(0x217)]);return{'shapeId':_0x11a42a[_0xa9c6d1(0x142)],'cxnIndex':_0x11a42a['cxnIndex'],'unitId':_0x11a42a['unitId'],'subUnitId':_0x11a42a[_0xa9c6d1(0x2b4)],'worldPoint':_0x172d7d,'angle':_0x44a185};}return null;}[_0x49d8a2(0x321)](_0x5087b2,_0x354fbe){const _0x45ede7=_0x49d8a2;let _0x3a2a84=this['_sheetsShapeService'][_0x45ede7(0x296)](this[_0x45ede7(0x330)],this['_subUnitId'],_0x5087b2);if(!_0x3a2a84)return 0x0;let _0x12fb54=this[_0x45ede7(0x159)][_0x45ede7(0x26a)]({'unitId':this['_unitId'],'subUnitId':this[_0x45ede7(0x227)],'drawingId':_0x5087b2});if(!(_0x12fb54!=null&&_0x12fb54[_0x45ede7(0x166)]))return 0x0;let {width:_0x260dd4=0x0,height:_0x4824e7=0x0,flipX:_0x12b818=!0x1,flipY:_0x3e326c=!0x1}=_0x12fb54[_0x45ede7(0x166)];_0x3a2a84[_0x45ede7(0x314)]({'width':_0x260dd4,'height':_0x4824e7});let _0x48a215=_0x3a2a84[_0x45ede7(0x198)]()[_0x45ede7(0x138)](_0x504b5c=>_0x504b5c[_0x45ede7(0x2d2)]===_0x354fbe);if(!_0x48a215)return 0x0;let _0x2271c9=_0x48a215[_0x45ede7(0x2db)]/0xea60;return _0x12b818&&(_0x2271c9=0xb4-_0x2271c9),_0x3e326c&&(_0x2271c9=-_0x2271c9),_0x2271c9=(_0x2271c9%0x168+0x168)%0x168,_0x2271c9;}[_0x49d8a2(0x311)](){const _0x4ee84d=_0x49d8a2;for(let _0x4aac9d of this[_0x4ee84d(0x167)])_0x4aac9d[_0x4ee84d(0x2b0)]();this[_0x4ee84d(0x167)]=[],this[_0x4ee84d(0x2aa)]=-0x1;}[_0x49d8a2(0x2b0)](){const _0x360524=_0x49d8a2;this[_0x360524(0x311)](),super[_0x360524(0x2b0)]();}};sr=Y([J(0x1,_0x3465f0(_0x2565d9)),J(0x2,_0x3465f0(_0x5a9176)),J(0x3,_0x3465f0(_0x1a451a))],sr);let cr=class extends _0x1e0fa2{constructor(_0x3c362b,_0x561ba9,_0x37967a,_0xe41ab5,_0x400500){const _0x327251=_0x49d8a2;super(),this['_sheetSkeletonService']=_0x3c362b,this[_0x327251(0xf8)]=_0x561ba9,this[_0x327251(0x334)]=_0x37967a,this[_0x327251(0x2b6)]=_0xe41ab5,this['_groupCopyPasteController']=_0x400500,q(this,_0x327251(0x2d9),void 0x0),this[_0x327251(0x329)](),this['_registerGroupFeaturePasteHook']();}get[_0x49d8a2(0x2a9)](){const _0x3eee63=_0x49d8a2;return this[_0x3eee63(0x334)]['getFocusDrawings']();}[_0x49d8a2(0x19c)](){const _0x421f36=_0x49d8a2;this[_0x421f36(0x131)][_0x421f36(0x32b)](({fromUnitId:_0x26070b,fromSubUnitId:_0x2317aa,toUnitId:_0x52efd5,toSubUnitId:_0x4fd6a7,idMap:_0x5c1fd3})=>{const _0x35314a=_0x421f36;let _0x53f6fc=[],_0x4c91db=[];for(let [_0xcd7ff4,_0x522ddc]of _0x5c1fd3[_0x35314a(0x13c)]()){let _0x5198ce=this[_0x35314a(0x2b6)]['getShapeModel'](_0x26070b,_0x2317aa,_0xcd7ff4);if(!_0x5198ce)continue;let _0x484586=_0x5198ce[_0x35314a(0x285)](),_0x421c91=JSON[_0x35314a(0x230)](JSON['stringify'](_0x5198ce['getShapeData']()));if(_0x421c91[_0x35314a(0x2e6)]){var _0x4a1390,_0x1051fc;let _0x49d5bd=(_0x4a1390=_0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)])==null?void 0x0:_0x4a1390[_0x35314a(0x142)],_0x583d09=(_0x1051fc=_0x421c91[_0x35314a(0x2e6)]['to'])==null?void 0x0:_0x1051fc[_0x35314a(0x142)],_0x1c1892=_0x49d5bd?_0x5c1fd3[_0x35314a(0x215)](_0x49d5bd):!0x0,_0x300afb=_0x583d09?_0x5c1fd3[_0x35314a(0x215)](_0x583d09):!0x0;_0x1c1892&&_0x49d5bd&&_0x421c91['relation']['from']?_0x421c91['relation'][_0x35314a(0x2d3)]={..._0x421c91[_0x35314a(0x2e6)][_0x35314a(0x2d3)],'shapeId':_0x5c1fd3['get'](_0x49d5bd)}:_0x421c91['relation']['from']=void 0x0,_0x300afb&&_0x583d09&&_0x421c91[_0x35314a(0x2e6)]['to']?_0x421c91[_0x35314a(0x2e6)]['to']={..._0x421c91['relation']['to'],'shapeId':_0x5c1fd3[_0x35314a(0x1bc)](_0x583d09)}:_0x421c91[_0x35314a(0x2e6)]['to']=void 0x0;}_0x53f6fc[_0x35314a(0x214)]({'id':_0x47dbbc['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc,'shapeType':_0x484586,'shapeData':_0x421c91}}),_0x4c91db['push']({'id':_0x32e37c['id'],'params':{'unitId':_0x52efd5,'subUnitId':_0x4fd6a7,'shapeId':_0x522ddc}});}return{'redos':_0x53f6fc,'undos':_0x4c91db};});}[_0x49d8a2(0x329)](){const _0x419195=_0x49d8a2;this[_0x419195(0x16d)](this['_sheetClipboardService'][_0x419195(0x2b8)]({'id':_0x419195(0xee),'onBeforeCopy':(_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe)=>{const _0x2ab492=_0x419195;this[_0x2ab492(0x2d9)]=null;let _0x112d41=this[_0x2ab492(0x2a9)];if(_0x112d41['length']){let _0x4beb3e=_0x112d41[_0x2ab492(0x1da)](_0xc45f5=>_0xc45f5[_0x2ab492(0x12e)]===_0x336997[_0x2ab492(0x181)]);if(_0x4beb3e[_0x2ab492(0x289)]===0x0)return;this['_copyInfo']={'unitId':_0x9a602f,'subUnitId':_0xd2d914,'copyType':_0xe3cabe,'drawings':_0x4beb3e};}else this[_0x2ab492(0x21e)](_0x9a602f,_0xd2d914,_0x2fc935,_0xe3cabe);},'onPasteCells':(_0x4d5306,_0x585f25,_0x51cb48,_0x43f2ec)=>{const _0x5e2bb5=_0x419195;if(!this[_0x5e2bb5(0x2d9)])return{'redos':[],'undos':[]};let {pasteType:_0xd4baaf}=_0x43f2ec;return _0xd4baaf===_0x951401[_0x5e2bb5(0x282)]?this[_0x5e2bb5(0x2bc)](_0x585f25,this[_0x5e2bb5(0x2d9)][_0x5e2bb5(0x2d0)]===_0x4538e3[_0x5e2bb5(0x335)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xfd5b62=>this['_copyInfo']?this[_0x419195(0x2bc)](_0xfd5b62,this[_0x419195(0x2d9)][_0x419195(0x2d0)]===_0x4538e3[_0x419195(0x335)]):{'redos':[],'undos':[]}}));}[_0x49d8a2(0x21e)](_0x2ac6ab,_0x45a2f9,_0x396806,_0x14e9cf){const _0x5b4064=_0x49d8a2;let _0x2c22e1=this[_0x5b4064(0xf2)]['getSkeleton'](_0x2ac6ab,_0x45a2f9);if(!_0x2c22e1)return;let _0x26b694=_0x37168f(_0x2c22e1,_0x396806);if(!_0x26b694)return;let {startX:_0x5b07e3,endX:_0x294e4b,startY:_0x3182b4,endY:_0xe7f2e9}=_0x26b694,_0x36272e=this[_0x5b4064(0x334)][_0x5b4064(0x233)](_0x2ac6ab,_0x45a2f9),_0x24f70f=this[_0x5b4064(0x2a9)]['slice']();for(let [_0x13731f,_0x579171]of Object[_0x5b4064(0x13c)](_0x36272e)){if(_0x579171[_0x5b4064(0x12e)]!==_0x336997['DRAWING_SHAPE'])continue;let {transform:_0x275598}=_0x579171;if(!_0x275598)continue;let {left:_0x50175d=0x0,top:_0x28eb13=0x0,width:_0x1f3457=0x0,height:_0x50e56e=0x0}=_0x275598;_0x5b07e3<=_0x50175d&&_0x294e4b>=_0x50175d+_0x1f3457&&_0x3182b4<=_0x28eb13&&_0xe7f2e9>=_0x28eb13+_0x50e56e&&_0x24f70f['push'](_0x579171);}_0x24f70f[_0x5b4064(0x289)]>0x0&&(this['_copyInfo']={'unitId':_0x2ac6ab,'subUnitId':_0x45a2f9,'copyType':_0x14e9cf,'copyRange':_0x396806,'drawings':_0x24f70f});}[_0x49d8a2(0x2bc)](_0xb9657d,_0x3dc20e){const _0x3eec43=_0x49d8a2;let {unitId:_0x3663e8,subUnitId:_0x406901,range:_0xda15ec}=_0xb9657d,_0x4d42d1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x3663e8,_0x406901);if(!_0x4d42d1)return{'redos':[],'undos':[]};let _0x103fdd=_0x44b7b4(_0xda15ec),{unitId:_0x5db41c,subUnitId:_0x50fca2,copyRange:_0x2301cc,drawings:_0x40afd2}=this['_copyInfo'],_0x47cff1=this[_0x3eec43(0xf2)][_0x3eec43(0x1a4)](_0x5db41c,_0x50fca2);if(!_0x47cff1)return{'redos':[],'undos':[]};let _0x5eb93f;if(!_0x2301cc){let _0x1c4619=0x1/0x0,_0xf54a7f=0x1/0x0;for(let _0x5168d4 of _0x40afd2){var _0x23eedb;let {left:_0xd41d74=0x0,top:_0x2c3537=0x0}=(_0x23eedb=_0x5168d4[_0x3eec43(0x166)])==null?{}:_0x23eedb;_0xd41d74<_0x1c4619&&(_0x1c4619=_0xd41d74),_0x2c3537<_0xf54a7f&&(_0xf54a7f=_0x2c3537);}_0x1c4619!==0x1/0x0&&_0xf54a7f!==0x1/0x0&&(_0x5eb93f={'left':_0x1c4619,'top':_0xf54a7f});}let _0x1cbf24=new Map();if(!_0x3dc20e){for(let _0x5642bc of _0x40afd2)_0x1cbf24[_0x3eec43(0x20a)](_0x5642bc[_0x3eec43(0x20e)],_0x3893c7());}let _0x13a7ad=[],_0x75cf73=[];for(let _0x6e064d of _0x40afd2){let {drawingId:_0x1e9b60,transform:_0x43004e,sheetTransform:_0x42ce91}=_0x6e064d;if(!_0x43004e||!_0x42ce91)continue;let _0x55da36=this[_0x3eec43(0x179)]({'transform':_0x43004e,'sheetTransform':_0x42ce91},{'skeleton':_0x47cff1,'range':_0x2301cc},{'skeleton':_0x4d42d1,'range':_0x103fdd},_0x5eb93f);if(_0x3dc20e){let {redos:_0x1b434b,undos:_0xb9f57c}=this[_0x3eec43(0x188)]({'fromUnitId':_0x5db41c,'fromSubUnitId':_0x50fca2,'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36});_0x13a7ad['push'](..._0x1b434b),_0x75cf73[_0x3eec43(0x214)](..._0xb9f57c);continue;}let {redos:_0x1b20aa,undos:_0x1cbdac}=this[_0x3eec43(0x1f4)]({'toUnitId':_0x3663e8,'toSubUnitId':_0x406901,'drawing':_0x6e064d,'newTransforms':_0x55da36,'newDrawingId':_0x1cbf24[_0x3eec43(0x1bc)](_0x1e9b60),'idMap':_0x1cbf24});_0x13a7ad[_0x3eec43(0x214)](..._0x1b20aa),_0x75cf73[_0x3eec43(0x214)](..._0x1cbdac);}return{'redos':_0x13a7ad,'undos':_0x75cf73};}['_generateCutPasteMutations'](_0x538e2d){const _0x4ad12e=_0x49d8a2;let {fromUnitId:_0x2af024,fromSubUnitId:_0x4e4d0b,toUnitId:_0x30addc,toSubUnitId:_0x5d6221,drawing:_0x3159b9,newTransforms:_0x25d993}=_0x538e2d,_0x1579c8={..._0x3159b9,'unitId':_0x30addc,'subUnitId':_0x5d6221,'transform':_0x25d993[_0x4ad12e(0x166)],'sheetTransform':_0x25d993[_0x4ad12e(0x265)]};if(_0x30addc===_0x2af024&&_0x5d6221===_0x4e4d0b){let {redo:_0x328393,undo:_0x1dfdab,objects:_0x580970}=this['_sheetDrawingService']['getBatchUpdateOp']([_0x1579c8]);return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af[_0x4ad12e(0x210)],'op':_0x328393,'objects':_0x580970}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['UPDATE'],'op':_0x1dfdab,'objects':_0x580970}}]};}else{let _0x4476af=this[_0x4ad12e(0x334)][_0x4ad12e(0x1a9)]([_0x3159b9]),_0x4d8b1c=this['_sheetDrawingService'][_0x4ad12e(0x20b)]([_0x1579c8]),_0x32425a=this[_0x4ad12e(0x2b6)][_0x4ad12e(0x296)](_0x3159b9[_0x4ad12e(0x1b7)],_0x3159b9[_0x4ad12e(0x2b4)],_0x3159b9[_0x4ad12e(0x20e)]);if(!_0x32425a)return{'redos':[],'undos':[]};let _0x5c210d=_0x32425a[_0x4ad12e(0x285)](),_0x3885a6=JSON[_0x4ad12e(0x230)](JSON['stringify'](_0x32425a[_0x4ad12e(0x205)]()));return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af['REMOVE'],'op':_0x4476af[_0x4ad12e(0x30c)],'objects':_0x4476af['objects']}},{'id':_0x32e37c['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9['drawingId']}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['INSERT'],'op':_0x4d8b1c[_0x4ad12e(0x30c)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'type':_0x20e0af[_0x4ad12e(0x337)],'op':_0x4476af[_0x4ad12e(0x1f3)],'objects':_0x4476af[_0x4ad12e(0x295)]}},{'id':_0x47dbbc['id'],'params':{'unitId':_0x2af024,'subUnitId':_0x4e4d0b,'shapeId':_0x3159b9[_0x4ad12e(0x20e)],'shapeType':_0x5c210d,'shapeData':_0x3885a6}},{'id':_0x2fbd15['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'type':_0x20e0af['REMOVE'],'op':_0x4d8b1c[_0x4ad12e(0x1f3)],'objects':_0x4d8b1c[_0x4ad12e(0x295)]}},{'id':_0x32e37c['id'],'params':{'unitId':_0x30addc,'subUnitId':_0x5d6221,'shapeId':_0x3159b9[_0x4ad12e(0x20e)]}}]};}}[_0x49d8a2(0x1f4)](_0x10ed6c){const _0x2d34ef=_0x49d8a2;let {toUnitId:_0xb2185a,toSubUnitId:_0x1cd72a,drawing:_0x350ec5,newTransforms:_0x3af7ae,newDrawingId:_0x582077,idMap:_0x34235c}=_0x10ed6c,_0x57d848={..._0x350ec5,'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'drawingId':_0x582077,'transform':_0x3af7ae[_0x2d34ef(0x166)],'sheetTransform':_0x3af7ae[_0x2d34ef(0x265)]},{redo:_0x355e64,undo:_0x54b62b,objects:_0x4ade7d}=this['_sheetDrawingService']['getBatchAddOp']([_0x57d848]),_0x12dd9a=this[_0x2d34ef(0x2b6)]['getShapeModel'](_0x350ec5[_0x2d34ef(0x1b7)],_0x350ec5[_0x2d34ef(0x2b4)],_0x350ec5[_0x2d34ef(0x20e)]);if(!_0x12dd9a)return{'redos':[],'undos':[]};let _0x45dc8d=_0x12dd9a[_0x2d34ef(0x285)](),_0x4a6ef9=JSON[_0x2d34ef(0x230)](JSON[_0x2d34ef(0x266)](_0x12dd9a['getShapeData']()));if(_0x4a6ef9[_0x2d34ef(0x2e6)]){var _0x2cc814,_0x11718a;let _0x2c5789=(_0x2cc814=_0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)])==null?void 0x0:_0x2cc814[_0x2d34ef(0x142)],_0x460045=(_0x11718a=_0x4a6ef9[_0x2d34ef(0x2e6)]['to'])==null?void 0x0:_0x11718a[_0x2d34ef(0x142)],_0x3c1bb1=_0x2c5789?_0x34235c['has'](_0x2c5789):!0x0,_0xbe89f6=_0x460045?_0x34235c[_0x2d34ef(0x215)](_0x460045):!0x0;_0x3c1bb1&&_0x2c5789&&_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]?_0x4a6ef9[_0x2d34ef(0x2e6)]['from']={..._0x4a6ef9[_0x2d34ef(0x2e6)][_0x2d34ef(0x2d3)],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x2c5789)}:_0x4a6ef9['relation'][_0x2d34ef(0x2d3)]=void 0x0,_0xbe89f6&&_0x460045&&_0x4a6ef9[_0x2d34ef(0x2e6)]['to']?_0x4a6ef9['relation']['to']={..._0x4a6ef9[_0x2d34ef(0x2e6)]['to'],'shapeId':_0x34235c[_0x2d34ef(0x1bc)](_0x460045)}:_0x4a6ef9['relation']['to']=void 0x0;}return{'redos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af['INSERT'],'op':_0x355e64,'objects':_0x4ade7d}},{'id':_0x47dbbc['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077,'shapeType':_0x45dc8d,'shapeData':_0x4a6ef9}}],'undos':[{'id':_0x2fbd15['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'type':_0x20e0af[_0x2d34ef(0xfb)],'op':_0x54b62b,'objects':_0x4ade7d}},{'id':_0x32e37c['id'],'params':{'unitId':_0xb2185a,'subUnitId':_0x1cd72a,'shapeId':_0x582077}}]};}[_0x49d8a2(0x179)](_0x2bb2d7,_0x208dfb,_0x2338d2,_0x4a17ab){const _0x39e7c8=_0x49d8a2;var _0x28b437;let {range:_0x2da639,skeleton:_0x20d5e4}=_0x208dfb,{range:_0x502703,skeleton:_0x1f3586}=_0x2338d2,{transform:_0x1dd080,sheetTransform:_0x1db4bc}=_0x2bb2d7,_0x3c2515={..._0x1dd080};if(_0x2da639){let _0x1dbd71=_0x37168f(_0x20d5e4,_0x2da639),_0x3e0c8b=_0x37168f(_0x1f3586,_0x502703);if(_0x1dbd71&&_0x3e0c8b){var _0x346078,_0x4d93d4;let _0x702c8c=_0x3e0c8b['startX']-_0x1dbd71[_0x39e7c8(0x1f5)],_0x48e629=_0x3e0c8b['startY']-_0x1dbd71[_0x39e7c8(0x331)];_0x3c2515[_0x39e7c8(0x26f)]=((_0x346078=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0x346078)+_0x702c8c,_0x3c2515[_0x39e7c8(0x25d)]=((_0x4d93d4=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x4d93d4)+_0x48e629;}}else{let _0x106544=_0x37168f(_0x1f3586,_0x502703);if(_0x4a17ab&&_0x106544){var _0xe76567,_0x34cc2b;let _0x118689=((_0xe76567=_0x3c2515[_0x39e7c8(0x26f)])==null?0x0:_0xe76567)-_0x4a17ab[_0x39e7c8(0x26f)],_0x2f9c73=((_0x34cc2b=_0x3c2515[_0x39e7c8(0x25d)])==null?0x0:_0x34cc2b)-_0x4a17ab['top'];_0x3c2515[_0x39e7c8(0x26f)]=_0x106544[_0x39e7c8(0x1f5)]+_0x118689,_0x3c2515[_0x39e7c8(0x25d)]=_0x106544['startY']+_0x2f9c73;}else _0x3c2515['left']=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x1f5)],_0x3c2515[_0x39e7c8(0x25d)]=_0x106544==null?void 0x0:_0x106544[_0x39e7c8(0x331)];}return{'transform':_0x3c2515,'sheetTransform':(_0x28b437=_0x4ee577(_0x3c2515,_0x1f3586))==null?_0x1db4bc:_0x28b437};}};cr=Y([J(0x0,_0x3465f0(_0x834a52)),J(0x1,_0x3465f0(_0x4d0a59)),J(0x2,_0x3465f0(_0xc538a1)),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x407497))],cr);var lr=class extends _0x176254{constructor(_0x16fceb,_0x1e077b){const _0x5bb3a9=_0x49d8a2;super(_0x16fceb,_0x1e077b),q(this,_0x5bb3a9(0x1d0),null),q(this,_0x5bb3a9(0x2c3),null),q(this,_0x5bb3a9(0x330),null),q(this,_0x5bb3a9(0x227),null),q(this,_0x5bb3a9(0x16b),!0x1),_0x1e077b&&this['setShapeProps'](_0x1e077b);}['getDrawingSearch'](){const _0x50dc02=_0x49d8a2;return{'unitId':this[_0x50dc02(0x330)],'subUnitId':this[_0x50dc02(0x227)],'drawingId':this[_0x50dc02(0x1d0)]};}[_0x49d8a2(0x25e)](_0x273494){const _0x219220=_0x49d8a2;_0x273494[_0x219220(0x142)]!==void 0x0&&(this[_0x219220(0x1d0)]=_0x273494['shapeId']),_0x273494[_0x219220(0x1b7)]!==void 0x0&&(this[_0x219220(0x330)]=_0x273494['unitId']),_0x273494[_0x219220(0x2b4)]!==void 0x0&&(this[_0x219220(0x227)]=_0x273494[_0x219220(0x2b4)]),_0x273494[_0x219220(0x247)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x273494[_0x219220(0x247)]),this['transformByState']({'width':_0x273494[_0x219220(0x2b9)],'height':_0x273494[_0x219220(0x232)]});}[_0x49d8a2(0x15e)](_0x4a95a4){const _0x212cc8=_0x49d8a2;_0x1578ae['drawWith'](_0x4a95a4,{'radius':_0x2bea1d[_0x212cc8(0x1eb)],'fill':_0x2bea1d[_0x212cc8(0x222)],'stroke':_0x2bea1d[_0x212cc8(0x109)],'strokeWidth':_0x2bea1d['cxnPointStrokeWidth'],'evented':!0x0});}};let ur=class extends _0x1e0fa2{constructor(_0x1d334a,_0x2f10ca,_0x4ed22d,_0x463b63,_0x5ba0a1,_0x16924e,_0x5d5b1a,_0x26c83a){const _0x6a3796=_0x49d8a2;super(),this[_0x6a3796(0x12a)]=_0x1d334a,this['_commandService']=_0x2f10ca,this[_0x6a3796(0x107)]=_0x4ed22d,this['_drawingManagerService']=_0x463b63,this['_univerInstanceService']=_0x5ba0a1,this[_0x6a3796(0x220)]=_0x16924e,this[_0x6a3796(0x26e)]=_0x5d5b1a,this[_0x6a3796(0x17d)]=_0x26c83a,q(this,_0x6a3796(0x288),void 0x0),q(this,_0x6a3796(0x330),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x6a3796(0x272),[]),q(this,_0x6a3796(0x1f8),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x6a3796(0x1db),void 0x0),q(this,'_isConnecting',!0x1),q(this,_0x6a3796(0x27c),!0x1),q(this,_0x6a3796(0xdc),!0x1),q(this,_0x6a3796(0x22b),void 0x0),q(this,_0x6a3796(0x101),void 0x0),q(this,_0x6a3796(0xf0),null),this[_0x6a3796(0x2f6)]();}[_0x49d8a2(0x2f6)](){const _0x3ce769=_0x49d8a2;this[_0x3ce769(0x2d1)](),this[_0x3ce769(0x246)]();}[_0x49d8a2(0x1ed)](){const _0x1d131d=_0x49d8a2;if(!this[_0x1d131d(0x330)]||!this[_0x1d131d(0x227)]||!this[_0x1d131d(0x288)])return;let _0x35f0c8={'unitId':this[_0x1d131d(0x330)],'subUnitId':this[_0x1d131d(0x227)],'drawingId':this[_0x1d131d(0x288)]},{transform:_0x3837d8}=this[_0x1d131d(0x159)][_0x1d131d(0x26a)](_0x35f0c8);if(_0x3837d8)return{'left':_0x3837d8[_0x1d131d(0x26f)]||0x0,'top':_0x3837d8['top']||0x0,'width':_0x3837d8[_0x1d131d(0x2b9)]||0x0,'height':_0x3837d8[_0x1d131d(0x232)]||0x0,'flipX':_0x3837d8['flipX']||!0x1,'flipY':_0x3837d8['flipY']||!0x1,'angle':_0x3837d8[_0x1d131d(0x1fa)]};}['_addShapeConnectorHandlerObjects'](){const _0x4af483=_0x49d8a2;if(this[_0x4af483(0x330)]===void 0x0||this[_0x4af483(0x227)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x4fe720=this[_0x4af483(0x107)][_0x4af483(0x2c4)](this[_0x4af483(0x330)]);if(!_0x4fe720||!_0x4fe720['with'](_0x4b5a3f)['getCurrentSkeleton']())return;let {scene:_0x53ee95}=_0x4fe720,_0x187f45=this[_0x4af483(0x1ed)]();if(!_0x187f45)return;let _0x22aa5f=this[_0x4af483(0x220)]['getShapeModel'](this['_unitId'],this[_0x4af483(0x227)],this[_0x4af483(0x288)]);if(!_0x22aa5f||!_0x5d2a5e(_0x22aa5f[_0x4af483(0x285)]()))return;let _0x4719a3=_0x22aa5f['getConnectorLinePoints']();if(_0x4719a3[_0x4af483(0x289)]<0x2)return;let _0x119741=new _0x20c995(_0x187f45),_0x55a5cd=_0x4719a3[0x0],_0xb75ac2=_0x4719a3[_0x4719a3['length']-0x1],_0x45d7ff=_0x119741[_0x4af483(0x123)](_0x55a5cd),_0x140a2a=_0x119741[_0x4af483(0x123)](_0xb75ac2);this[_0x4af483(0x24d)](_0x53ee95,{..._0x45d7ff},!0x0),this[_0x4af483(0x24d)](_0x53ee95,{..._0x140a2a},!0x1);}[_0x49d8a2(0x24d)](_0x13cabc,_0x33e3e5,_0x1c073c){const _0x4887fd=_0x49d8a2;if(this[_0x4887fd(0x288)]===void 0x0||this['_unitId']===void 0x0||this[_0x4887fd(0x227)]===void 0x0)return;let _0xa53536=_0x4887fd(0x28b)+this[_0x4887fd(0x330)]+'-'+this[_0x4887fd(0x227)]+'-'+this[_0x4887fd(0x288)]+'-'+(_0x1c073c?_0x4887fd(0x137):_0x4887fd(0x31f)),_0x207e1f=_0x13cabc['getObjectIncludeInGroup'](_0xa53536);if(_0x207e1f){_0x207e1f[_0x4887fd(0x112)]({'left':_0x33e3e5['x']-_0x2bea1d[_0x4887fd(0x1eb)],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)]});return;}let _0x21d4eb=new lr(_0xa53536,{'left':_0x33e3e5['x']-_0x2bea1d['cxnPointRadius'],'top':_0x33e3e5['y']-_0x2bea1d[_0x4887fd(0x1eb)],'shapeId':this[_0x4887fd(0x288)],'unitId':this[_0x4887fd(0x330)],'subUnitId':this[_0x4887fd(0x227)],'isStartConnectorPoint':_0x1c073c,'width':_0x2bea1d['cxnPointRadius']*0x2,'height':_0x2bea1d[_0x4887fd(0x1eb)]*0x2,'zIndex':_0x529f4c+0x1,'evented':!0x0});this['_connectorObjects'][_0x4887fd(0x214)](_0x21d4eb),this[_0x4887fd(0x129)](_0x21d4eb,_0x13cabc,_0x1c073c),_0x13cabc[_0x4887fd(0x1c7)](_0x21d4eb,_0x529f4c+0x1);}[_0x49d8a2(0x30e)](_0x3f8082,_0x4a43e1){const _0x54bc76=_0x49d8a2;var _0x3f252f;let _0x9d0b38={'x':0x0,'y':0x0};if(!_0x3f8082||!_0x4a43e1)return _0x9d0b38;let _0x3465c6=this[_0x54bc76(0x107)][_0x54bc76(0x2c4)](_0x3f8082);if(!_0x3465c6||!_0x3465c6[_0x54bc76(0xf5)](_0x4b5a3f)['getSkeleton'](_0x4a43e1))return _0x9d0b38;let _0x29dcb4=_0x3465c6[_0x54bc76(0xf5)](_0x5480ae),_0x4f14bb=_0x29dcb4==null?void 0x0:_0x29dcb4['getCurrentScrollState']();if(!_0x4f14bb)return _0x9d0b38;let _0x5f3d=(_0x3f252f=this[_0x54bc76(0x1b8)]['getUnit'](_0x3f8082))==null?void 0x0:_0x3f252f[_0x54bc76(0x169)](_0x4a43e1);if(!_0x5f3d)return _0x9d0b38;let _0x1555a1=_0x356c4d(_0x4f14bb[_0x54bc76(0x206)],_0x4f14bb['sheetViewStartColumn'],_0x3465c6['scene'],_0x5f3d);return _0x1555a1?{'x':_0x1555a1[_0x54bc76(0x33d)],'y':_0x1555a1[_0x54bc76(0x25f)]}:_0x9d0b38;}[_0x49d8a2(0x224)](_0x2d2be7,_0x1efc7c){const _0x14568a=_0x49d8a2;var _0x10ec49,_0x4f22f9;let _0x443129=(_0x10ec49=this[_0x14568a(0x1b8)][_0x14568a(0x12f)](_0x2d2be7))==null?void 0x0:_0x10ec49[_0x14568a(0x169)](_0x1efc7c);return(_0x4f22f9=_0x443129==null?void 0x0:_0x443129[_0x14568a(0x221)]())==null?0x1:_0x4f22f9;}[_0x49d8a2(0x197)](_0x13e79e,_0xc195bd,_0x4da696,_0x395ed0,_0x19e3f2){const _0x216c1e=_0x49d8a2;this[_0x216c1e(0x22b)][_0x216c1e(0x2e3)](),this[_0x216c1e(0x101)][_0x216c1e(0x2e3)](),this['_sheetShapeAdjustController']['refreshAdjustControls']();let _0x110b99=this['_currentConnectionTarget'];this[_0x216c1e(0x17d)][_0x216c1e(0x254)]();let _0x5382e1=this[_0x216c1e(0x30e)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x430ee4=this[_0x216c1e(0x224)](this[_0x216c1e(0x330)],this[_0x216c1e(0x227)]),_0x2008d5={'x':_0x4da696[_0x216c1e(0x30d)]/_0x430ee4+_0x5382e1['x'],'y':_0x4da696[_0x216c1e(0x18e)]/_0x430ee4+_0x5382e1['y']},_0x423c2c=_0x110b99?_0x110b99[_0x216c1e(0x1c4)]:_0x2008d5,_0x135f0d=_0x395ed0?this[_0x216c1e(0x1db)][_0x216c1e(0x223)]():this['_activeShapeModel'][_0x216c1e(0x1d9)](),_0x5dd056=this[_0x216c1e(0x1db)]['getShapeType']();_0x135f0d?this[_0x216c1e(0x29f)](_0x135f0d,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2):this['_handleFreeEndpointPointerUp'](_0xc195bd,_0x423c2c,_0x395ed0,_0x110b99,_0x19e3f2,_0x5dd056),this[_0x216c1e(0x1d2)]=!0x1,this[_0x216c1e(0xdc)]=!0x1,this[_0x216c1e(0xf0)]=null,_0x13e79e[_0x216c1e(0x24a)]();}[_0x49d8a2(0x2fe)](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x257c9f,_0x1d75e7,_0x22495d){const _0x2d6faf=_0x49d8a2;let _0x5c3244=_0x22495d===_0x1ca39f[_0x2d6faf(0x23c)]||_0x22495d===_0x1ca39f['StraightConnector1'],_0x62b818=_0x99a8ac?_0x5d2dab:_0x1b433f,_0x4d7aa6=_0x99a8ac?_0x1b433f:_0x5d2dab,_0x10c74d=this[_0x2d6faf(0x1db)][_0x2d6faf(0x2de)](),_0x237f31=_0x41cad6(this[_0x2d6faf(0x1db)][_0x2d6faf(0x285)]()),_0x6856d0=_0x20c995[_0x2d6faf(0x22f)](_0x10c74d,_0x237f31),_0xc5d135=_0x5c3244?_0x20c995[_0x2d6faf(0x12c)](_0x62b818,_0x4d7aa6):_0x20c995['computeConnectorResizeLayout'](_0x1b433f,_0x5d2dab,_0x99a8ac,_0x6856d0);_0x257c9f?this[_0x2d6faf(0x115)](_0xc5d135,_0x257c9f,_0x99a8ac,_0x1d75e7):this[_0x2d6faf(0x1d5)](_0xc5d135,_0x1d75e7);}['_handleConnectedEndpointPointerUp'](_0x165b34,_0x3c51f0,_0x58706e,_0x3573a0,_0x423790){const _0x2e8b6a=_0x49d8a2;let _0x3b3fdc=this[_0x2e8b6a(0x1b9)](_0x165b34);if(!_0x3b3fdc)return;let _0x20847a=_0x3573a0?_0x3573a0[_0x2e8b6a(0x1fa)]:this[_0x2e8b6a(0x25c)](_0x3b3fdc[_0x2e8b6a(0x22c)],_0x3c51f0),_0x262f6c;if(_0x3573a0){let _0x145cd8=this[_0x2e8b6a(0x159)]['getDrawingByParam']({'unitId':_0x3573a0[_0x2e8b6a(0x1b7)],'subUnitId':_0x3573a0[_0x2e8b6a(0x2b4)],'drawingId':_0x3573a0[_0x2e8b6a(0x142)]});if(_0x145cd8!=null&&_0x145cd8[_0x2e8b6a(0x166)]){let {left:_0x179ee6=0x0,top:_0x3a21f8=0x0,width:_0x3f8482=0x0,height:_0x23abc4=0x0,angle:_0x2ff946}=_0x145cd8[_0x2e8b6a(0x166)];_0x262f6c=_0x4d4669({'left':_0x179ee6,'top':_0x3a21f8,'width':_0x3f8482,'height':_0x23abc4},_0x2ff946||0x0);}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};}else _0x262f6c={'left':_0x3c51f0['x'],'top':_0x3c51f0['y'],'width':0x0,'height':0x0};let _0x1294ac={'point':_0x3c51f0,'angle':_0x20847a,'bounds':_0x262f6c},_0x47740c=_0x58706e?_0x1294ac:_0x3b3fdc,_0x525323=_0x58706e?_0x3b3fdc:_0x1294ac,_0x411521=this[_0x2e8b6a(0x1db)]['getShapeType'](),_0x7ca124=_0x449797(_0x47740c,_0x525323,_0x411521);this[_0x2e8b6a(0x1db)][_0x2e8b6a(0x249)]();let _0x1b2606=_0x59ea91(_0x7ca124,_0x411521);_0x3573a0?this[_0x2e8b6a(0x2ea)](_0x1b2606,_0x3573a0,_0x165b34,_0x58706e,_0x423790):this[_0x2e8b6a(0x318)](_0x1b2606,_0x165b34,_0x58706e,_0x423790);}[_0x49d8a2(0x115)](_0x528b85,_0x308519,_0x5cd55e,_0x471b4c){const _0x1e87a2=_0x49d8a2;let _0x4110fd=this[_0x1e87a2(0x1db)][_0x1e87a2(0x205)]()['relation'],_0x5d0df7={..._0x4110fd},_0x34634d={'shapeId':_0x308519['shapeId'],'cxnIndex':_0x308519['cxnIndex']};_0x5cd55e?_0x5d0df7[_0x1e87a2(0x2d3)]=_0x34634d:_0x5d0df7['to']=_0x34634d;let _0x2c57bb=this[_0x1e87a2(0x1db)]['getShapeType'](),_0x19fca4=_0x59ea91(_0x528b85[_0x1e87a2(0x130)],_0x2c57bb),_0x3a6fbf={'unitId':this[_0x1e87a2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1e87a2(0x288)],'width':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x2b9)],'height':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x232)],'left':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x26f)],'top':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x25d)],'flipX':_0x528b85[_0x1e87a2(0x238)][_0x1e87a2(0x31c)]||!0x1,'flipY':_0x528b85['worldRect']['flipY']||!0x1,'newAdjustValues':_0x19fca4['adjustValues'],'oldAdjustValues':_0x471b4c,'oldRelation':_0x4110fd,'newRelation':_0x5d0df7,'newLineType':_0x19fca4[_0x1e87a2(0x22e)],'oldLineType':_0x2c57bb};this['_commandService'][_0x1e87a2(0x2c5)](_0x1c01fb['id'],_0x3a6fbf);}['_executeResizeCommand'](_0x144d6b,_0x1b95ab){const _0x1815a6=_0x49d8a2;let _0x49d40a=this[_0x1815a6(0x1db)][_0x1815a6(0x285)](),_0xda55b5=_0x59ea91(_0x144d6b['worldPoints'],_0x49d40a),_0x1730f7={'unitId':this[_0x1815a6(0x330)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x1815a6(0x288)],'width':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x2b9)],'height':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x232)],'left':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x26f)],'top':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x25d)],'flipX':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x31c)]||!0x1,'flipY':_0x144d6b[_0x1815a6(0x238)][_0x1815a6(0x132)]||!0x1,'angle':_0x144d6b['worldRect'][_0x1815a6(0x1fa)]||0x0,'newAdjustValues':_0xda55b5[_0x1815a6(0x114)],'oldAdjustValues':_0x1b95ab,'newLineType':_0xda55b5[_0x1815a6(0x22e)],'oldLineType':_0x49d40a};this['_commandService']['executeCommand'](_0x3b0863['id'],_0x1730f7);}[_0x49d8a2(0x2ea)](_0x11135d,_0xbd6a8e,_0x1a8754,_0x396801,_0x31024d){const _0x878b2=_0x49d8a2;let _0x286e21=this[_0x878b2(0x1db)][_0x878b2(0x205)]()['relation'],_0x1ae491={..._0x286e21},_0x164ca1={'shapeId':_0xbd6a8e[_0x878b2(0x142)],'cxnIndex':_0xbd6a8e[_0x878b2(0x217)]};_0x396801?(_0x1ae491['from']=_0x164ca1,_0x1ae491['to']=_0x1a8754):(_0x1ae491['from']=_0x1a8754,_0x1ae491['to']=_0x164ca1);let _0x42f758={'unitId':this[_0x878b2(0x330)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x878b2(0x288)],'width':_0x11135d[_0x878b2(0x238)][_0x878b2(0x2b9)],'height':_0x11135d[_0x878b2(0x238)]['height'],'left':_0x11135d[_0x878b2(0x238)][_0x878b2(0x26f)],'top':_0x11135d[_0x878b2(0x238)]['top'],'flipX':_0x11135d['worldRect'][_0x878b2(0x31c)]||!0x1,'flipY':_0x11135d['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x31024d,'newAdjustValues':_0x11135d[_0x878b2(0x114)],'newLineType':_0x11135d[_0x878b2(0x22e)],'rotation':_0x11135d[_0x878b2(0x184)],'oldRelation':_0x286e21,'newRelation':_0x1ae491};this[_0x878b2(0x2af)][_0x878b2(0x2c5)](_0x1c01fb['id'],_0x42f758);}[_0x49d8a2(0x318)](_0x272335,_0x180284,_0x5d1191,_0x258a45){const _0x1decfc=_0x49d8a2;let _0x1d7a4a=this[_0x1decfc(0x1db)]['getShapeData']()[_0x1decfc(0x2e6)],_0x66d17={};_0x5d1191?(_0x66d17['to']=_0x180284,_0x66d17[_0x1decfc(0x2d3)]=void 0x0):(_0x66d17[_0x1decfc(0x2d3)]=_0x180284,_0x66d17['to']=void 0x0);let _0x3fb0f2={'unitId':this[_0x1decfc(0x330)],'subUnitId':this[_0x1decfc(0x227)],'connectorShapeId':this[_0x1decfc(0x288)],'width':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x2b9)],'height':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x232)],'left':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x26f)],'top':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x25d)],'flipX':_0x272335[_0x1decfc(0x238)][_0x1decfc(0x31c)]||!0x1,'flipY':_0x272335[_0x1decfc(0x238)]['flipY']||!0x1,'oldAdjustValues':_0x258a45,'newAdjustValues':_0x272335[_0x1decfc(0x114)],'newLineType':_0x272335[_0x1decfc(0x22e)],'rotation':_0x272335[_0x1decfc(0x184)],'oldRelation':_0x1d7a4a,'newRelation':_0x66d17};this['_commandService'][_0x1decfc(0x2c5)](_0x1c01fb['id'],_0x3fb0f2);}[_0x49d8a2(0x129)](_0x433c96,_0x4650a8,_0x2a9435){const _0x5336bc=_0x49d8a2;this['disposeWithMe'](_0x4f15f0(_0x433c96[_0x5336bc(0x1ca)][_0x5336bc(0x19b)]((_0x52f961,_0x1548e2)=>{const _0x2ebb38=_0x5336bc;let _0x1f0ae1=_0x433c96[_0x2ebb38(0x275)]();if(this[_0x2ebb38(0x1db)]=this[_0x2ebb38(0x220)][_0x2ebb38(0x296)](_0x1f0ae1[_0x2ebb38(0x1b7)],_0x1f0ae1[_0x2ebb38(0x2b4)],_0x1f0ae1[_0x2ebb38(0x20e)]),!this[_0x2ebb38(0x1db)])return;let _0x1a13b3={};this[_0x2ebb38(0x1db)][_0x2ebb38(0x325)]()[_0x2ebb38(0x111)](_0x5e526c=>{const _0x519e88=_0x2ebb38;let _0x59a92e=this[_0x519e88(0x1db)][_0x519e88(0x27e)](_0x5e526c);_0x59a92e!==void 0x0&&(_0x1a13b3[_0x5e526c]=_0x59a92e);});let _0x5d45ac=this['_getDrawingRect']();if(!_0x5d45ac)return;this['_baseDrawingRect']={..._0x5d45ac};let _0x529f78=new _0x20c995(this[_0x2ebb38(0x1f8)]),_0x4b24ff=_0x24e648({'unitId':this[_0x2ebb38(0x330)],'subUnitId':this[_0x2ebb38(0x227)],'drawingId':this['_activeShapeId']}),_0x1fac8f=_0x4650a8[_0x2ebb38(0xda)](_0x4b24ff);this[_0x2ebb38(0x1d2)]=!0x0,_0x4650a8[_0x2ebb38(0x162)](),this['_sheetBasicShapeConnectionPointController'][_0x2ebb38(0x2a4)](_0x4650a8,this[_0x2ebb38(0x330)],this['_subUnitId'],this[_0x2ebb38(0x288)]),this['_currentConnectionTarget']=null;let _0x3d2c6d=this[_0x2ebb38(0x1db)][_0x2ebb38(0x2de)](),_0x182d5c=_0x3d2c6d[0x0],_0x47759b=_0x3d2c6d[_0x3d2c6d[_0x2ebb38(0x289)]-0x1],_0x167ef9=_0x2a9435?_0x529f78[_0x2ebb38(0x123)](_0x47759b):_0x529f78['localToWorld'](_0x182d5c);this[_0x2ebb38(0x22b)]=_0x4650a8[_0x2ebb38(0x301)][_0x2ebb38(0x19b)]((_0x5822f5,_0x17460e)=>{const _0x2ca34d=_0x2ebb38;if(!this['_isConnecting']||!this['_activeShapeModel'])return;this[_0x2ca34d(0xdc)]||(this[_0x2ca34d(0x26e)][_0x2ca34d(0x2cb)](),this[_0x2ca34d(0x1db)][_0x2ca34d(0xea)](),this[_0x2ca34d(0xdc)]=!0x0);let _0x3a8154=this[_0x2ca34d(0x30e)](this[_0x2ca34d(0x330)],this[_0x2ca34d(0x227)]),_0x1f489b=this['_getZoomRatio'](this['_unitId'],this[_0x2ca34d(0x227)]),_0x2ba099={'x':_0x5822f5[_0x2ca34d(0x30d)]/_0x1f489b+_0x3a8154['x'],'y':_0x5822f5[_0x2ca34d(0x18e)]/_0x1f489b+_0x3a8154['y']},_0x4f1aa2=this[_0x2ca34d(0x17d)][_0x2ca34d(0x14a)](_0x2ba099);if(_0x4f1aa2){let {shapeId:_0x56c8d3,unitId:_0x48f239,subUnitId:_0x1ea885}=_0x4f1aa2;if(_0x56c8d3&&_0x48f239&&_0x1ea885){let _0x245d47=_0x24e648({'unitId':_0x48f239,'subUnitId':_0x1ea885,'drawingId':_0x56c8d3});_0x4f1aa2[_0x2ca34d(0x1fa)]=(_0x4650a8['getObjectIncludeInGroup'](_0x245d47)[_0x2ca34d(0x1fa)]||0x0)+_0x4f1aa2['angle'];}}this['_currentConnectionTarget']=_0x4f1aa2;let _0x5cedbe=_0x2a9435?this[_0x2ca34d(0x1db)][_0x2ca34d(0x223)]():this[_0x2ca34d(0x1db)][_0x2ca34d(0x1d9)]();if(_0x5cedbe){this[_0x2ca34d(0xe4)](_0x5cedbe,_0x2ba099,_0x2a9435,_0x1fac8f,_0x433c96);return;}this[_0x2ca34d(0x21f)](_0x2ba099,_0x167ef9,_0x2a9435,_0x1fac8f,_0x433c96);}),this[_0x2ebb38(0x101)]=_0x4650a8[_0x2ebb38(0x1fc)][_0x2ebb38(0x19b)]((_0x2173f3,_0x3f4b0f)=>{const _0x1ef1ee=_0x2ebb38;this[_0x1ef1ee(0x197)](_0x4650a8,_0x167ef9,_0x2173f3,_0x2a9435,_0x1a13b3);}),_0x1548e2['stopPropagation']();})));}[_0x49d8a2(0x294)](_0xa537e5,_0x4a8bb8,_0x154192){const _0x2b58d9=_0x49d8a2;let _0x1f3a6f=this['_sheetsShapeService'][_0x2b58d9(0x1ba)](_0xa537e5,_0x4a8bb8,_0x154192);if(!_0x1f3a6f||_0x1f3a6f[_0x2b58d9(0x289)]===0x0)return;let _0x10f285=this[_0x2b58d9(0x107)][_0x2b58d9(0x2c4)](_0xa537e5);if(!_0x10f285)return;let {scene:_0x4d3f58}=_0x10f285;for(let _0x1c4f2b of _0x1f3a6f){let _0xecfcfa=_0x1c4f2b[_0x2b58d9(0x235)],_0x16bfa6=this[_0x2b58d9(0x220)][_0x2b58d9(0x296)](_0xa537e5,_0x4a8bb8,_0xecfcfa);if(!_0x16bfa6)continue;let _0x49c2af=_0x16bfa6[_0x2b58d9(0x1d9)](),_0x434e3c=_0x16bfa6[_0x2b58d9(0x223)](),_0x540d0d=(_0x49c2af==null?void 0x0:_0x49c2af[_0x2b58d9(0x142)])===_0x154192,_0x14db02=_0x24e648({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa}),_0x5c701d=_0x4d3f58['getObjectIncludeInGroup'](_0x14db02);if(!_0x5c701d)continue;let _0x5747cc=this['_drawingManagerService'][_0x2b58d9(0x26a)]({'unitId':_0xa537e5,'subUnitId':_0x4a8bb8,'drawingId':_0xecfcfa});_0x5747cc!=null&&_0x5747cc['transform']&&(_0x49c2af&&_0x434e3c?this['_rerouteConnectorLine'](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x49c2af,_0x434e3c,_0x5c701d):this[_0x2b58d9(0x19e)](_0xa537e5,_0x4a8bb8,_0xecfcfa,_0x16bfa6,_0x540d0d?_0x49c2af:_0x434e3c,_0x540d0d,_0x5747cc,_0x5c701d));}}[_0x49d8a2(0x1b3)](_0x3562e7,_0x5ccfa1,_0x31dd74,_0x946870,_0x3aaf39,_0x421489,_0x4fa869){const _0xb5bc49=_0x49d8a2;let _0x3929b9=this['_unitId'],_0xa8b4cf=this[_0xb5bc49(0x227)];this[_0xb5bc49(0x330)]=_0x3562e7,this[_0xb5bc49(0x227)]=_0x5ccfa1;let _0x1eac42=this[_0xb5bc49(0x1b9)](_0x3aaf39),_0x2038b3=this[_0xb5bc49(0x1b9)](_0x421489);if(this[_0xb5bc49(0x330)]=_0x3929b9,this[_0xb5bc49(0x227)]=_0xa8b4cf,!_0x1eac42||!_0x2038b3)return;let _0x3148e8=_0x946870[_0xb5bc49(0x285)](),_0xc85d88=_0x449797(_0x1eac42,_0x2038b3,_0x3148e8);_0xc85d88&&_0x946870[_0xb5bc49(0x333)](_0xc85d88);let _0x3d6fae=_0x59ea91(_0xc85d88,_0x3148e8);_0x3d6fae['lineType']!==_0x3148e8&&_0x946870[_0xb5bc49(0x290)](_0x3d6fae['lineType']),_0x946870[_0xb5bc49(0xea)]();for(let [_0x129fe0,_0x4522ca]of Object[_0xb5bc49(0x13c)](_0x3d6fae[_0xb5bc49(0x114)]))_0x946870[_0xb5bc49(0x1cf)](_0x129fe0,_0x4522ca);_0x946870[_0xb5bc49(0x314)]({'width':_0x3d6fae['worldRect'][_0xb5bc49(0x2b9)],'height':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x232)]}),_0x4fa869[_0xb5bc49(0x112)]({'flipX':_0x3d6fae[_0xb5bc49(0x238)]['flipX'],'flipY':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x132)],'left':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x26f)],'top':_0x3d6fae[_0xb5bc49(0x238)][_0xb5bc49(0x25d)],'width':_0x3d6fae[_0xb5bc49(0x238)]['width'],'height':_0x3d6fae[_0xb5bc49(0x238)]['height'],'angle':_0x3d6fae['rotation']}),_0x946870[_0xb5bc49(0x249)]();}['_moveConnectorWithShape'](_0x2475af,_0x36a2d7,_0x12457a,_0x30a804,_0x1d62d8,_0x390662,_0x55a887,_0x7c2153){const _0x1ebee6=_0x49d8a2;let _0x3e77a6=this[_0x1ebee6(0x330)],_0x3b3915=this['_subUnitId'];this['_unitId']=_0x2475af,this[_0x1ebee6(0x227)]=_0x36a2d7;let _0x47f534=this[_0x1ebee6(0x1b9)](_0x1d62d8);if(this[_0x1ebee6(0x330)]=_0x3e77a6,this[_0x1ebee6(0x227)]=_0x3b3915,!_0x47f534)return;let {left:_0x5a43d9=0x0,top:_0x1a5bcf=0x0,width:_0x4f73cc=0x0,height:_0x3ffc48=0x0,flipX:_0x449082=!0x1,flipY:_0x62b658=!0x1}=_0x55a887[_0x1ebee6(0x166)],_0x59dbb2=_0x30a804['getConnectorLinePoints']();if(_0x59dbb2[_0x1ebee6(0x289)]<0x2)return;let _0x4eee31=new _0x20c995({'left':_0x5a43d9,'top':_0x1a5bcf,'width':_0x4f73cc,'height':_0x3ffc48,'flipX':_0x449082,'flipY':_0x62b658}),_0x161c88=_0x390662?_0x59dbb2[_0x59dbb2[_0x1ebee6(0x289)]-0x1]:_0x59dbb2[0x0],_0x4bd10b=_0x4eee31['localToWorld'](_0x161c88),_0x1dc217=_0x20c995[_0x1ebee6(0x1e7)](_0x4bd10b,_0x47f534[_0x1ebee6(0x22c)],!_0x390662);_0x7c2153['transformByState']({'flipX':_0x1dc217[_0x1ebee6(0x238)]['flipX'],'flipY':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x132)],'left':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x26f)],'top':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x25d)],'width':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x2b9)],'height':_0x1dc217[_0x1ebee6(0x238)][_0x1ebee6(0x232)],'angle':_0x1dc217['worldRect'][_0x1ebee6(0x1fa)]}),_0x7c2153[_0x1ebee6(0x165)](!0x0);}[_0x49d8a2(0x1c1)](){const _0x427b1f=_0x49d8a2;this['_connectorObjects'][_0x427b1f(0x289)]!==0x0&&(this[_0x427b1f(0x272)]['forEach'](_0x1f6438=>{const _0x4afc6f=_0x427b1f;_0x1f6438[_0x4afc6f(0x2b0)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x54edf2=_0x49d8a2;let _0x8bbe79=this[_0x54edf2(0x1b8)][_0x54edf2(0x278)](_0x4c1a31[_0x54edf2(0x261)]);this[_0x54edf2(0x16d)](_0x8bbe79[_0x54edf2(0x26c)](_0x48371d(_0x37368c=>_0x37368c?_0x37368c[_0x54edf2(0x18c)][_0x54edf2(0x26c)](_0x48371d(_0x3bc779=>{const _0xa9db16=_0x54edf2;if(!_0x3bc779)return _0x4e602d;let _0x57f444=_0x37368c['getUnitId'](),_0x2f5acf=this[_0xa9db16(0x107)][_0xa9db16(0x2c4)](_0x57f444),_0x3c350e=_0x2f5acf==null?void 0x0:_0x2f5acf['scene'];return _0x3c350e?_0x5ba9b9(_0x3c350e):_0x4e602d;})):_0x4e602d))[_0x54edf2(0x212)](_0x336a5c=>{const _0x5d8973=_0x54edf2;let _0x8586e5=_0x336a5c[_0x5d8973(0x14b)]();this['disposeWithMe'](_0x336a5c[_0x5d8973(0x301)][_0x5d8973(0x19b)](_0x22f7c5=>{const _0xbe9ac0=_0x5d8973;this[_0xbe9ac0(0x27c)]&&this[_0xbe9ac0(0x288)]&&this[_0xbe9ac0(0x1c1)]();})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x1f2)][_0x5d8973(0x212)](_0x2e2a5d=>{const _0x25094d=_0x5d8973;let {objects:_0x2565bc}=_0x2e2a5d;this[_0x25094d(0x1c1)](),_0x2565bc!==null&&_0x2565bc['size']===0x1&&_0x2565bc[_0x25094d(0x2cc)]()[_0x25094d(0x15a)]()[_0x25094d(0x21c)]instanceof vn&&(this[_0x25094d(0x27c)]=!0x0);})),this['disposeWithMe'](_0x8586e5[_0x5d8973(0x2f4)][_0x5d8973(0x212)](_0x57fddb=>{const _0x4e2dc0=_0x5d8973;this[_0x4e2dc0(0x27c)]&&this[_0x4e2dc0(0x1c1)]();})),this[_0x5d8973(0x16d)](_0x336a5c[_0x5d8973(0x1fc)][_0x5d8973(0x19b)](()=>{const _0x3530eb=_0x5d8973;this[_0x3530eb(0x27c)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x3530eb(0x211)]());})),this[_0x5d8973(0x16d)](_0x8586e5['changeEnd$']['subscribe'](()=>{const _0x5b6e65=_0x5d8973;this[_0x5b6e65(0x330)]&&this[_0x5b6e65(0x227)]&&this[_0x5b6e65(0x288)]&&this[_0x5b6e65(0x159)]['getDrawingByParam']({'unitId':this[_0x5b6e65(0x330)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5b6e65(0x288)]})&&(this[_0x5b6e65(0x1c1)](),this[_0x5b6e65(0x211)]());}));}));}[_0x49d8a2(0x2d1)](){const _0x1b46fd=_0x49d8a2;this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x139)][_0x1b46fd(0x212)](_0x1b842c=>{const _0x107bfd=_0x1b46fd;if(_0x1b842c[_0x107bfd(0x289)]===0x1){let _0xa18e61=_0x1b842c[0x0];if(_0xa18e61[_0x107bfd(0x12e)]===_0x336997[_0x107bfd(0x181)]){let _0x4ba26d=this[_0x107bfd(0x220)][_0x107bfd(0x296)](_0xa18e61[_0x107bfd(0x1b7)],_0xa18e61['subUnitId'],_0xa18e61[_0x107bfd(0x20e)]);if(_0x4ba26d&&_0x5d2a5e(_0x4ba26d['getShapeType']())){this[_0x107bfd(0x288)]=_0xa18e61[_0x107bfd(0x20e)],this['_unitId']=_0xa18e61[_0x107bfd(0x1b7)],this[_0x107bfd(0x227)]=_0xa18e61[_0x107bfd(0x2b4)],this['_clearShapeConnectorHandlerObjects'](),this[_0x107bfd(0x211)]();return;}}}this[_0x107bfd(0x288)]=void 0x0,this[_0x107bfd(0x330)]=void 0x0,this[_0x107bfd(0x227)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x127)][_0x1b46fd(0x212)](_0x8dca6e=>{const _0x3efe75=_0x1b46fd;if(_0x8dca6e['length']===0x1){var _0x514981;let _0x28b06f=_0x8dca6e[0x0],_0x279703=(_0x514981=this[_0x3efe75(0x159)][_0x3efe75(0x26a)](_0x28b06f))==null?void 0x0:_0x514981['drawingType'];_0x279703===_0x336997['DRAWING_SHAPE']&&_0x28b06f['drawingId']===this['_activeShapeId']?(this[_0x3efe75(0x1c1)](),this[_0x3efe75(0x211)]()):!this[_0x3efe75(0x288)]&&_0x279703===_0x336997[_0x3efe75(0x181)]&&this[_0x3efe75(0x294)](_0x28b06f[_0x3efe75(0x1b7)],_0x28b06f['subUnitId'],_0x28b06f[_0x3efe75(0x20e)]);}})),this[_0x1b46fd(0x16d)](this[_0x1b46fd(0x159)][_0x1b46fd(0x2dc)]['subscribe'](_0x385460=>{const _0x166a29=_0x1b46fd;for(let _0x392bbe of _0x385460){let {drawingId:_0x25fb77}=_0x392bbe;if(this['_activeShapeId']===_0x25fb77){this[_0x166a29(0x2a6)]();return;}}}));}['_handleConnectedEndpointMove'](_0x5b4f5e,_0x26f6d1,_0x468d8d,_0x424105,_0x14503e){const _0x2dc4d9=_0x49d8a2;var _0x34cce2,_0x2f69a1;if(!this[_0x2dc4d9(0x1db)])return;let _0x278c4a=this[_0x2dc4d9(0x1b9)](_0x5b4f5e);if(!_0x278c4a)return;let _0x2ccc09=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1c4)]:_0x26f6d1,_0x17e52b=this[_0x2dc4d9(0xf0)]?this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x1fa)]:this['_calculateFreeEndpointAngle'](_0x278c4a[_0x2dc4d9(0x22c)],_0x2ccc09),_0x1188cc;if(this['_currentConnectionTarget']){let _0x349883=this[_0x2dc4d9(0x159)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x2dc4d9(0x1b7)],'subUnitId':this[_0x2dc4d9(0xf0)][_0x2dc4d9(0x2b4)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x349883!=null&&_0x349883[_0x2dc4d9(0x166)]){let {left:_0x332214=0x0,top:_0x5a2c04=0x0,width:_0x1d7e2d=0x0,height:_0xd2bdf4=0x0,angle:_0x4eeead}=_0x349883['transform'];_0x1188cc=_0x4d4669({'left':_0x332214,'top':_0x5a2c04,'width':_0x1d7e2d,'height':_0xd2bdf4},_0x4eeead||0x0);}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};}else _0x1188cc={'left':_0x2ccc09['x'],'top':_0x2ccc09['y'],'width':0x0,'height':0x0};let _0x52a8ab={'point':_0x2ccc09,'angle':_0x17e52b,'bounds':_0x1188cc},_0x1d918e=_0x468d8d?_0x52a8ab:_0x278c4a,_0x5e68cb=_0x468d8d?_0x278c4a:_0x52a8ab,_0x367295=this['_activeShapeModel']['getShapeType'](),_0x4ff554=_0x449797(_0x1d918e,_0x5e68cb,_0x367295);_0x4ff554&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x333)](_0x4ff554);let _0x536a5b=_0x59ea91(_0x4ff554,_0x367295);_0x536a5b['lineType']!==_0x367295&&this[_0x2dc4d9(0x1db)][_0x2dc4d9(0x290)](_0x536a5b[_0x2dc4d9(0x22e)]);for(let [_0x426437,_0x123304]of Object[_0x2dc4d9(0x13c)](_0x536a5b[_0x2dc4d9(0x114)]))this['_activeShapeModel'][_0x2dc4d9(0x1cf)](_0x426437,_0x123304);this['_activeShapeModel'][_0x2dc4d9(0x314)]({'width':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x2b9)],'height':_0x536a5b['worldRect'][_0x2dc4d9(0x232)]}),_0x424105[_0x2dc4d9(0x112)]({'flipX':_0x536a5b['worldRect'][_0x2dc4d9(0x31c)],'flipY':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x132)],'left':_0x536a5b['worldRect'][_0x2dc4d9(0x26f)],'top':_0x536a5b[_0x2dc4d9(0x238)]['top'],'width':_0x536a5b[_0x2dc4d9(0x238)]['width'],'height':_0x536a5b[_0x2dc4d9(0x238)][_0x2dc4d9(0x232)],'angle':_0x536a5b[_0x2dc4d9(0x184)]}),_0x424105['makeDirty'](!0x0);let _0x547ffa=(_0x34cce2=(_0x2f69a1=this[_0x2dc4d9(0xf0)])==null?void 0x0:_0x2f69a1['worldPoint'])==null?_0x26f6d1:_0x34cce2;_0x14503e[_0x2dc4d9(0x112)]({'left':_0x547ffa['x']-_0x2bea1d[_0x2dc4d9(0x1eb)],'top':_0x547ffa['y']-_0x2bea1d['cxnPointRadius']});}[_0x49d8a2(0x21f)](_0x6aff35,_0x8a8f5f,_0x4d86d3,_0x108a14,_0x1c6891){const _0xcb95ac=_0x49d8a2;var _0x332b09,_0x10485f,_0xdd0833,_0x367e69;let _0x313143=(_0x332b09=(_0x10485f=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x10485f['worldPoint'])==null?_0x6aff35:_0x332b09,_0x24311a=_0x20c995[_0xcb95ac(0x1e7)](_0x8a8f5f,_0x313143,_0x4d86d3);_0x108a14['transformByState']({'flipX':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x31c)],'flipY':_0x24311a[_0xcb95ac(0x238)]['flipY'],'left':_0x24311a[_0xcb95ac(0x238)]['left'],'top':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x25d)],'width':_0x24311a['worldRect'][_0xcb95ac(0x2b9)],'height':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x232)],'angle':_0x24311a[_0xcb95ac(0x238)][_0xcb95ac(0x1fa)]});let _0x512170=(_0xdd0833=(_0x367e69=this[_0xcb95ac(0xf0)])==null?void 0x0:_0x367e69[_0xcb95ac(0x1c4)])==null?_0x6aff35:_0xdd0833;_0x1c6891[_0xcb95ac(0x112)]({'left':_0x512170['x']-_0x2bea1d['cxnPointRadius'],'top':_0x512170['y']-_0x2bea1d[_0xcb95ac(0x1eb)]});}[_0x49d8a2(0x1b9)](_0x4474f1){const _0x261b8e=_0x49d8a2;if(!this[_0x261b8e(0x330)]||!this['_subUnitId'])return null;let {shapeId:_0x2908b6,cxnIndex:_0xe075e3}=_0x4474f1,_0x385b19=this[_0x261b8e(0x220)]['getShapeModel'](this[_0x261b8e(0x330)],this[_0x261b8e(0x227)],_0x2908b6);if(!_0x385b19)return null;let _0x1d3b9d=this[_0x261b8e(0x159)][_0x261b8e(0x26a)]({'unitId':this[_0x261b8e(0x330)],'subUnitId':this[_0x261b8e(0x227)],'drawingId':_0x2908b6});if(!(_0x1d3b9d!=null&&_0x1d3b9d['transform']))return null;let {left:_0x559a80=0x0,top:_0x5c8b46=0x0,width:_0x11dea7=0x0,height:_0x35f580=0x0,flipX:_0x3ee292=!0x1,flipY:_0x5c2784=!0x1,angle:_0x344afb}=_0x1d3b9d[_0x261b8e(0x166)];_0x385b19['updateContext']({'width':_0x11dea7,'height':_0x35f580});let _0x3e2efb=_0x385b19[_0x261b8e(0x198)]()[_0x261b8e(0x138)](_0x3c2434=>_0x3c2434[_0x261b8e(0x2d2)]===_0xe075e3);if(!_0x3e2efb)return null;let _0x5b15ab=_0x3ee292?_0x11dea7-_0x3e2efb['x']:_0x3e2efb['x'],_0x337684=_0x5c2784?_0x35f580-_0x3e2efb['y']:_0x3e2efb['y'];if(_0x344afb!==0x0&&_0x344afb!=null){let _0x10d3be=_0x344afb*Math['PI']/0xb4,_0x1a56f4=Math[_0x261b8e(0x17b)](_0x10d3be),_0x343ff5=Math[_0x261b8e(0x2c0)](_0x10d3be),_0x1b659c=_0x11dea7/0x2,_0x2c790f=_0x35f580/0x2,_0x4d72b3=_0x5b15ab-_0x1b659c,_0x48100a=_0x337684-_0x2c790f;_0x5b15ab=_0x1b659c+_0x4d72b3*_0x1a56f4-_0x48100a*_0x343ff5,_0x337684=_0x2c790f+_0x4d72b3*_0x343ff5+_0x48100a*_0x1a56f4;}_0x5b15ab+=_0x559a80,_0x337684+=_0x5c8b46;let _0x4e6e08=_0x3e2efb[_0x261b8e(0x2db)]/0xea60;_0x3ee292&&(_0x4e6e08=0xb4-_0x4e6e08),_0x5c2784&&(_0x4e6e08=-_0x4e6e08),_0x4e6e08+=_0x344afb||0x0,_0x4e6e08=(_0x4e6e08%0x168+0x168)%0x168;let _0x57adb6=_0x4d4669({'left':_0x559a80,'top':_0x5c8b46,'width':_0x11dea7,'height':_0x35f580},_0x344afb||0x0);return{'point':{'x':_0x5b15ab,'y':_0x337684},'angle':_0x4e6e08,'bounds':_0x57adb6};}[_0x49d8a2(0x25c)](_0x84120,_0x4c364e){const _0x4ac14=_0x49d8a2;let _0x10d9af=_0x4c364e['x']-_0x84120['x'],_0xcc06c4=_0x4c364e['y']-_0x84120['y'];return Math[_0x4ac14(0x1ea)](_0x10d9af)>=Math[_0x4ac14(0x1ea)](_0xcc06c4)?_0x10d9af>=0x0?0xb4:0x0:_0xcc06c4>=0x0?0x10e:0x5a;}['_reset'](){const _0x23b993=_0x49d8a2;this[_0x23b993(0x288)]=void 0x0,this['_unitId']=void 0x0,this[_0x23b993(0x227)]=void 0x0,this[_0x23b993(0x1c1)]();}['dispose'](){const _0x34341e=_0x49d8a2;this[_0x34341e(0x1c1)](),super[_0x34341e(0x2b0)]();}};ur=Y([J(0x1,_0x3002c9),J(0x2,_0x2565d9),J(0x3,_0x5a9176),J(0x4,_0x2320a1),J(0x5,_0x3465f0(_0x1a451a)),J(0x6,_0x3465f0(Z)),J(0x7,_0x3465f0(sr))],ur);let dr=class extends _0x1e0fa2{constructor(_0x234c61,_0x57459e,_0x4e71e4){const _0x531236=_0x49d8a2;super(),this[_0x531236(0x15b)]=_0x234c61,this['_drawingManagerService']=_0x57459e,this['_shapeRenderController']=_0x4e71e4,this[_0x531236(0x11a)]();}[_0x49d8a2(0x11a)](){const _0x3ecbb1=_0x49d8a2;this['disposeWithMe'](this[_0x3ecbb1(0x15b)][_0x3ecbb1(0x116)]['intercept'](this[_0x3ecbb1(0x15b)]['interceptor']['getInterceptPoints']()[_0x3ecbb1(0x2a0)],{'handler':(_0xe2b431,_0x303e55,_0xbd23a)=>{const _0x1a1c9a=_0x3ecbb1;var _0xdcd4b4;let {unitId:_0x131d39,subUnitId:_0x40f5e9,scene:_0x5149ef,resourceCollector:_0x219f8a}=_0x303e55,_0x41031c=(_0xdcd4b4=this['_drawingManagerService'][_0x1a1c9a(0x22d)](_0x131d39))==null?void 0x0:_0xdcd4b4[_0x40f5e9];return _0x41031c==null||_0x41031c[_0x1a1c9a(0xf9)][_0x1a1c9a(0x111)](_0xf3030e=>{const _0x5a8563=_0x1a1c9a;let _0x112ae9=_0x41031c[_0x5a8563(0x2f1)][_0xf3030e];_0x112ae9[_0x5a8563(0x12e)]===_0x336997[_0x5a8563(0x181)]&&!_0x112ae9[_0x5a8563(0x15c)]&&this[_0x5a8563(0x267)]['renderDrawingShape'](_0x112ae9,_0x5149ef,{'resourceCollector':_0x219f8a});}),_0xbd23a(_0xe2b431);}}));}};dr=Y([J(0x0,_0x3465f0(_0x4f0169)),J(0x1,_0x5a9176),J(0x2,_0x3465f0(X))],dr);let fr=class extends _0x1e0fa2{constructor(_0x56f396,_0x30409c,_0x377d64){const _0x4cd36f=_0x49d8a2;super(),this[_0x4cd36f(0x2af)]=_0x56f396,this[_0x4cd36f(0x2df)]=_0x30409c,this['_sheetPermissionCheckController']=_0x377d64,this[_0x4cd36f(0x231)]();}[_0x49d8a2(0x231)](){const _0x10c342=_0x49d8a2;this['disposeWithMe'](this[_0x10c342(0x2af)][_0x10c342(0x171)](_0xdc5f95=>{const _0x295723=_0x10c342;let _0x59fe05,_0x43fa45;if(_0xdc5f95['id']===_0x5db24c['id']||_0xdc5f95['id']===_0x357925['id']||_0xdc5f95['id']===_0x1c01fb['id']){let _0x97ca05=_0xdc5f95[_0x295723(0x2ba)];_0x59fe05=_0x97ca05[_0x295723(0x1b7)],_0x43fa45=_0x97ca05[_0x295723(0x2b4)];}!_0x59fe05||!_0x43fa45||this[_0x295723(0x207)][_0x295723(0x17f)]({'workbookTypes':[_0x3216bb],'worksheetTypes':[_0x57e1db]},_0x59fe05,_0x43fa45)||this['_sheetPermissionCheckController'][_0x295723(0x1f1)](this[_0x295723(0x2df)]['t'](_0x295723(0x10e)));}));}};fr=Y([J(0x0,_0x3465f0(_0x3002c9)),J(0x1,_0x3465f0(_0x9a7c24)),J(0x2,_0x3465f0(_0x2cc1a0))],fr);let pr=class extends _0x1e0fa2{constructor(_0x5432ad,_0x2e1647,_0x3637b4,_0x13d889,_0x416c1b,_0x7899bc,_0x242482,_0x131a5e,_0x4ff1da,_0x1e73a0,_0x161bab){const _0x32591b=_0x49d8a2;super(),this[_0x32591b(0x1b8)]=_0x5432ad,this[_0x32591b(0x175)]=_0x2e1647,this['_menuManagerService']=_0x3637b4,this['_sheetsShapeService']=_0x13d889,this['_localeService']=_0x416c1b,this[_0x32591b(0x2af)]=_0x7899bc,this[_0x32591b(0x159)]=_0x242482,this[_0x32591b(0x182)]=_0x131a5e,this[_0x32591b(0x2e9)]=_0x4ff1da,this[_0x32591b(0x107)]=_0x1e73a0,this[_0x32591b(0x185)]=_0x161bab,q(this,'_sidebarDisposable',null),q(this,_0x32591b(0x313),null),q(this,_0x32591b(0x273),!0x1),q(this,_0x32591b(0x203),0x0),q(this,_0x32591b(0xe5),new Set()),q(this,'_disposePopups',[]),this['_initMenu'](),this[_0x32591b(0x16d)](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4c1a31[_0x32591b(0x261)])['subscribe'](_0xfc6a06=>{const _0x28c130=_0x32591b;if(!_0xfc6a06){var _0x530735;(_0x530735=this[_0x28c130(0x257)])==null||_0x530735[_0x28c130(0x2b0)]();return;}this[_0x28c130(0x303)](_0xfc6a06);})),this[_0x32591b(0x280)](),this['_registerShapeMenu'](),this[_0x32591b(0x291)](),this[_0x32591b(0x16d)](this[_0x32591b(0x185)][_0x32591b(0xfa)][_0x32591b(0x212)](_0x2af91a=>{const _0x2e696f=_0x32591b;_0x2af91a&&this[_0x2e696f(0x27d)]();}));}[_0x49d8a2(0x13f)](){this['_menuManagerService']['mergeMenu'](In);}['_registerShapeMenu'](){const _0x561c70=_0x49d8a2;this['_sheetCanvasPopManagerService']['registerFeatureMenu'](_0x336997[_0x561c70(0x181)],this[_0x561c70(0x239)][_0x561c70(0x1ab)](this)),this[_0x561c70(0x182)][_0x561c70(0x1a0)](_0x336997[_0x561c70(0x181)],0x6,0x4);}[_0x49d8a2(0x291)](){const _0x3826a2=_0x49d8a2;this[_0x3826a2(0x1b8)]['getAllUnitsForType'](_0x4c1a31[_0x3826a2(0x261)])['forEach'](_0x3057d4=>this[_0x3826a2(0x303)](_0x3057d4));}[_0x49d8a2(0x239)](_0x111a23,_0x387600,_0x4f8651,_0x3962c1){const _0x33ce89=_0x49d8a2;return[{'label':_0x33ce89(0x1f6),'index':0x0,'commandId':Bn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':_0x3962c1===_0x336997[_0x33ce89(0x173)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':_0x5f4db7['id'],'commandParams':{'unitId':_0x111a23,'drawings':[{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651,'drawingType':_0x3962c1}]},'disable':!0x1},{'label':_0x33ce89(0xfc),'index':0x2,'commandId':zn['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'drawingId':_0x4f8651},'disable':!0x1},{'label':_0x33ce89(0x332),'index':0x3,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipV','index':0x4,'commandId':_0x4deace['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'flipV':!0x0},'disable':!0x1},{'label':_0x33ce89(0x2ef),'index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':_0x45951d['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651,'rotate':-0x5a},'disable':!0x1},{'label':_0x33ce89(0x1e1),'index':0x4,'commandId':_0x3209a5['id'],'commandParams':{'unitId':_0x111a23,'subUnitId':_0x387600,'shapeId':_0x4f8651},'disable':!0x1}];}[_0x49d8a2(0xf1)](_0x5f5098,_0x56177f,_0x320df2){const _0x21abf4=_0x49d8a2;let _0x222d3f=this[_0x21abf4(0x220)][_0x21abf4(0xeb)](_0x5f5098,_0x56177f,_0x320df2),_0x435bae=this['_sheetsShapeService'][_0x21abf4(0x264)](_0x5f5098,_0x56177f,_0x320df2);return _0x222d3f!==void 0x0&&_0x435bae!==void 0x0?{'shapeData':_0x435bae,'shapeId':_0x320df2,'shapeType':_0x222d3f,'unitId':_0x5f5098,'subUnitId':_0x56177f,'version':this[_0x21abf4(0x203)],'disableShapeOption':!0x1}:null;}[_0x49d8a2(0x303)](_0x542536){const _0x66e18c=_0x49d8a2;if(!_0x542536)return;let _0x257f19=_0x542536[_0x66e18c(0x229)]();this[_0x66e18c(0x107)][_0x66e18c(0x215)](_0x257f19)&&!this[_0x66e18c(0xe5)][_0x66e18c(0x215)](_0x257f19)&&(this[_0x66e18c(0x326)](_0x257f19),this[_0x66e18c(0xe5)][_0x66e18c(0x120)](_0x257f19));}['_clearPopups'](){const _0x514ff9=_0x49d8a2;this[_0x514ff9(0x286)][_0x514ff9(0x111)](_0x5e1f38=>_0x5e1f38['dispose']()),this['_disposePopups'][_0x514ff9(0x289)]=0x0;}[_0x49d8a2(0x326)](_0x1a335b){const _0x493db5=_0x49d8a2;var _0x1830a0;let _0x135bee=(_0x1830a0=this[_0x493db5(0x107)][_0x493db5(0x2c4)](_0x1a335b))==null?void 0x0:_0x1830a0[_0x493db5(0x228)],_0x58e87e=_0x135bee==null?void 0x0:_0x135bee[_0x493db5(0x14b)]();!_0x135bee||!_0x58e87e||(this[_0x493db5(0x16d)](_0x58e87e['createControl$'][_0x493db5(0x212)](()=>{const _0x465f5b=_0x493db5;let _0x246d53=_0x58e87e[_0x465f5b(0x149)]();if(this[_0x465f5b(0x27d)](),this['_isOpenedShapeEditPanel']||_0x246d53[_0x465f5b(0x105)]>0x1)return;let _0xa9cbf4=_0x246d53['values']()[_0x465f5b(0x15a)]()[_0x465f5b(0x21c)];if(!_0xa9cbf4)return;let _0x282dd0=this[_0x465f5b(0x159)][_0x465f5b(0x18b)](_0xa9cbf4[_0x465f5b(0x163)]);if(!_0x282dd0||_0x282dd0[_0x465f5b(0x12e)]!==_0x336997[_0x465f5b(0x181)])return;let {unitId:_0x23498d,subUnitId:_0x582e8d,drawingId:_0x1d11a4,drawingType:_0x557e8f}=_0x282dd0,_0x5881b9=this['_getShapeInfo'](_0x23498d,_0x582e8d,_0x1d11a4);if(!_0x5881b9)return;this[_0x465f5b(0x2e9)][_0x465f5b(0x14f)](_0x26ab00,!0x0);let _0x159c90=this[_0x465f5b(0x182)][_0x465f5b(0x259)](_0xa9cbf4,{'componentKey':wn,'direction':_0x465f5b(0x2ec),'offset':[0x0,_0x229ba4],'extraProps':{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4,'drawingType':_0x557e8f,'shapeType':_0x5881b9[_0x465f5b(0x2b2)],'shapeData':_0x5881b9[_0x465f5b(0x1c5)]}});this['_disposePopups'][_0x465f5b(0x214)](this[_0x465f5b(0x16d)](_0x159c90)),this[_0x465f5b(0x159)][_0x465f5b(0x32c)]()[_0x465f5b(0x138)](_0x3909af=>_0x3909af['unitId']===_0x23498d&&_0x3909af[_0x465f5b(0x2b4)]===_0x582e8d&&_0x3909af[_0x465f5b(0x20e)]===_0x1d11a4)||this[_0x465f5b(0x159)]['focusDrawing']([{'unitId':_0x23498d,'subUnitId':_0x582e8d,'drawingId':_0x1d11a4}]);})),this[_0x493db5(0x16d)](_0x58e87e['clearControl$'][_0x493db5(0x212)](()=>{const _0x1bcf37=_0x493db5;this['_clearPopups'](),this['_contextService'][_0x1bcf37(0x14f)](_0x26ab00,!0x1),this[_0x1bcf37(0x159)][_0x1bcf37(0x2c8)](null);})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x2f4)][_0x493db5(0x212)](()=>{this['_clearPopups']();})),this[_0x493db5(0x16d)](_0x58e87e[_0x493db5(0x1f2)][_0x493db5(0x212)](()=>{const _0x4f1cff=_0x493db5;this[_0x4f1cff(0x27d)]();})));}['_registerOperations'](){const _0x3bd3b2=_0x49d8a2;this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x2af)][_0x3bd3b2(0x242)](_0x77c92=>{const _0x3bd0f4=_0x3bd3b2;if(_0x77c92['id']===Bn['id']){let {unitId:_0x330868,subUnitId:_0x2898ee,drawingId:_0x34aa8f}=_0x77c92['params'];this[_0x3bd0f4(0x203)]+=0x1,this[_0x3bd0f4(0x313)]=this['_getShapeInfo'](_0x330868,_0x2898ee,_0x34aa8f),this['_clearPopups'](),this[_0x3bd0f4(0x315)]();}if(_0x77c92['id']===zn['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x77c92['id']===_0x22295a['id']){let {unitId:_0x5b5137,subUnitId:_0x615b87,shapeId:_0x347c0f}=_0x77c92[_0x3bd0f4(0x2ba)];if(this[_0x3bd0f4(0x313)]&&this[_0x3bd0f4(0x313)][_0x3bd0f4(0x142)]===_0x347c0f){let _0x33a72b=this[_0x3bd0f4(0xf1)](_0x5b5137,_0x615b87,_0x347c0f);_0x33a72b&&(this[_0x3bd0f4(0x203)]+=0x1,_0x33a72b[_0x3bd0f4(0x1e2)]=this[_0x3bd0f4(0x203)],this[_0x3bd0f4(0x313)]=_0x33a72b,this[_0x3bd0f4(0x273)]&&this[_0x3bd0f4(0x315)]());}}})),this[_0x3bd3b2(0x16d)](this[_0x3bd3b2(0x159)]['focus$'][_0x3bd3b2(0x212)](_0x14ff20=>{const _0x4cee72=_0x3bd3b2;if(this[_0x4cee72(0x273)]===!0x1)return;if(_0x14ff20[_0x4cee72(0x289)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x14ff20[_0x4cee72(0x289)]===0x1&&_0x14ff20[0x0][_0x4cee72(0x12e)]===_0x336997[_0x4cee72(0x181)]&&(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)])){this[_0x4cee72(0x315)]();return;}let _0x5df85c=_0x14ff20['filter'](_0x18ac1d=>_0x18ac1d[_0x4cee72(0x12e)]===_0x336997['DRAWING_SHAPE']);if(_0x14ff20[_0x4cee72(0x289)]>0x1&&_0x5df85c[_0x4cee72(0x289)]===_0x14ff20[_0x4cee72(0x289)]){if(this[_0x4cee72(0x203)]+=0x1,this[_0x4cee72(0x313)]=this[_0x4cee72(0xf1)](_0x14ff20[0x0][_0x4cee72(0x1b7)],_0x14ff20[0x0][_0x4cee72(0x2b4)],_0x14ff20[0x0]['drawingId']),this[_0x4cee72(0x313)]){this[_0x4cee72(0x315)]();return;}}else{if(this[_0x4cee72(0x203)]+=0x1,this['_activeShapeInfo']=this[_0x4cee72(0xf1)](_0x14ff20[0x0]['unitId'],_0x14ff20[0x0]['subUnitId'],_0x14ff20[0x0][_0x4cee72(0x20e)]),this[_0x4cee72(0x313)]){this[_0x4cee72(0x313)]['disableShapeOption']=!0x0,this[_0x4cee72(0x315)]();return;}}this[_0x4cee72(0x33a)]();}));}[_0x49d8a2(0x315)](){const _0x2ce5f9=_0x49d8a2;this[_0x2ce5f9(0x313)]&&(this[_0x2ce5f9(0x257)]=this[_0x2ce5f9(0x175)][_0x2ce5f9(0x277)]({'id':Sn,'header':{'title':this[_0x2ce5f9(0x2df)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Sn,...this[_0x2ce5f9(0x313)]},'onClose':()=>{const _0x7ba8b1=_0x2ce5f9;this[_0x7ba8b1(0x159)][_0x7ba8b1(0x2c8)](null),this['_contextService'][_0x7ba8b1(0x14f)](_0x26ab00,!0x1),this[_0x7ba8b1(0x257)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0xd16ec=_0x49d8a2;this[_0xd16ec(0x273)]=!0x1,this[_0xd16ec(0x175)][_0xd16ec(0x113)](Sn),this['_sidebarDisposable']=null,this['_contextService'][_0xd16ec(0x14f)](_0x26ab00,!0x1),this[_0xd16ec(0x159)][_0xd16ec(0x2c8)](null);}};pr=Y([J(0x0,_0x2320a1),J(0x1,_0x3465f0(_0xf1c3ee)),J(0x2,_0x25cc13),J(0x3,_0x3465f0(_0x1a451a)),J(0x4,_0x3465f0(_0x9a7c24)),J(0x5,_0x3002c9),J(0x6,_0x5a9176),J(0x7,_0x3465f0(_0x57df42)),J(0x8,_0x2d429f),J(0x9,_0x2565d9),J(0xa,_0x3465f0(Zn))],pr);let $=class extends _0x257c5b{constructor(_0x50c0ea=Vn,_0x42d6fe,_0x4ceb7b,_0x562450,_0x1b7580){const _0xf6f511=_0x49d8a2;super(),this[_0xf6f511(0x18f)]=_0x50c0ea,this[_0xf6f511(0x26b)]=_0x42d6fe,this[_0xf6f511(0x2af)]=_0x4ceb7b,this[_0xf6f511(0x23b)]=_0x562450,this[_0xf6f511(0x107)]=_0x1b7580;let {..._0xce0423}=_0x1c7285({},Vn,this[_0xf6f511(0x18f)]);this[_0xf6f511(0x23b)]['setConfig'](_0xf6f511(0x218),_0xce0423),this[_0xf6f511(0x23e)]();}[_0x49d8a2(0x328)](){_0x14b49a(this['_injector'],[[pr],[ir],[X],[dr]]);}['onSteady'](){const _0x481086=_0x49d8a2;this[_0x481086(0x26b)]['get'](pr)[_0x481086(0x291)]();}[_0x49d8a2(0x320)](){const _0x4ca7bc=_0x49d8a2;[[sr],[Z],[cr]][_0x4ca7bc(0x111)](_0x49a005=>this[_0x4ca7bc(0x26b)][_0x4ca7bc(0x120)](_0x49a005)),_0x14b49a(this[_0x4ca7bc(0x26b)],[[cr],[Z]]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[sr]),this[_0x4ca7bc(0x107)]['registerRenderModule'](_0x4c1a31['UNIVER_SHEET'],[er]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31['UNIVER_SHEET'],[ur]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x261)],[nr]),this[_0x4ca7bc(0x107)][_0x4ca7bc(0x10d)](_0x4c1a31[_0x4ca7bc(0x2ae)],[rr]);}['onStarting'](){const _0x22f8a0=_0x49d8a2;this['_injector'][_0x22f8a0(0x120)]([$n]),this[_0x22f8a0(0x26b)][_0x22f8a0(0x1bc)]($n);let _0x527ee2=this[_0x22f8a0(0x26b)];[[pr],[ir],[X],[dr],[Kn],[Zn],[tr],[Q],[fr]]['forEach'](_0x2fa7d0=>_0x527ee2['add'](_0x2fa7d0)),_0x14b49a(this[_0x22f8a0(0x26b)],[[pr],[ir],[X],[Kn],[Zn],[tr],[Q],[fr]]);}[_0x49d8a2(0x23e)](){const _0x280c79=_0x49d8a2;[xn,dn,zn,Bn,Dn,bn][_0x280c79(0x111)](_0x443269=>this['disposeWithMe'](this[_0x280c79(0x2af)][_0x280c79(0x147)](_0x443269)));}};q($,_0x49d8a2(0x1ff),_0x4c1a31['UNIVER_SHEET']),q($,'pluginName',_0x49d8a2(0x2c9)),q($,_0x49d8a2(0x208),Ln),q($,_0x49d8a2(0x1e2),Rn),$=Y([_0x15410a(_0x2da0f1,_0x464a71,_0x1c2191,_0x551142),J(0x1,_0x3465f0(_0xab16b2)),J(0x2,_0x3002c9),J(0x3,_0xb443b),J(0x4,_0x2565d9)],$);export{In as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
|