@univerjs-pro/sheets-shape-ui 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +25 -25
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x541acc=_0x5f19;(function(_0x20fce4,_0x2fe0f8){const _0x1c086b=_0x5f19,_0x8664da=_0x20fce4();while(!![]){try{const _0x31a4c4=-parseInt(_0x1c086b(0x25e))/0x1*(parseInt(_0x1c086b(0x2de))/0x2)+-parseInt(_0x1c086b(0x275))/0x3+-parseInt(_0x1c086b(0x2ef))/0x4+-parseInt(_0x1c086b(0x378))/0x5+-parseInt(_0x1c086b(0x270))/0x6+-parseInt(_0x1c086b(0xba))/0x7*(-parseInt(_0x1c086b(0x256))/0x8)+parseInt(_0x1c086b(0xd9))/0x9;if(_0x31a4c4===_0x2fe0f8)break;else _0x8664da['push'](_0x8664da['shift']());}catch(_0x296c58){_0x8664da['push'](_0x8664da['shift']());}}}(_0x1e30,0xcd0ef));import{FormulaShapeAnimationController as _0x4951e9,MobileShapeEditorService as _0x3f0626,SHAPE_CHANGE_PICKER_COMPONENT as _0x2dcb96,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x8219d5,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x375d53,ShapeEditPanel as _0xbb7a4b,ShapeFloatingToolbar as _0x405f14,ShapeFloatingToolbarService as _0x161d03,ShapeFloatingToolbarToggleFactory as _0x4b28c5,ShapeFormulaRibbonControl as _0x173d19,ShapeGroupEnum as _0x118aec,ShapePickerDropdown as _0x5c2fb8,ShapePickerPanel as _0x471b6c,ShapeQuickStyleGallery as _0x4cdcdf,ShapeStyleRibbonControl as _0x2aace6,ShapeTextEditorContainer as _0x725664,ShapeTextFloatMenuRenderControllerBase as _0x54f80b,ShapeTextFloatToolbar as _0x1d0940,ShapeTextHyperLinkHoverController as _0x92e723,ShapeTextHyperLinkInfo as _0x190f9d,ShapeTextHyperLinkPopupService as _0x3ca8c8,ShapeTextRibbonControl as _0x5c9580,ToggleShapeFloatingToolbarOperation as _0x359d72,UniverShapeEditorMobileUIPlugin as _0x18a087,UniverShapeEditorUIPlugin as _0x12c8db,activateDrawingObject as _0x4bb030,bindRenderTransformerLifecycle as _0x360d1d,buildShapeTextDataUpdate as _0x25527e,clearActiveDrawingObjects as _0x1579d,createShapeTextHyperLinkRegions as _0x471d78,drawFormulaShapeAnimationLayers as _0x11fc5b,getDrawingTypeNameKey as _0x346ac3,getTextModel as _0x30d84a,getTextStyle as _0x2015b7,normalizeShapeTextModel as _0x41d40b,plainShapeTextToDocumentData as _0x15cc35,prepareShapeTextDocumentData as _0x3ff829,registerShapeFormatPainter as _0x54bb22,resolveFormulaShapeAutoFitSize as _0x1945a0,resolveShapeContextualRibbonHostMode as _0x34233e,resolveShapeTextDocumentPageHeight as _0x4a69d6,resolveShapeTextDocumentRenderLayout as _0x1329a2,resolveShapeTextEditorBehaviorShapeData as _0x40eba8,resolveShapeTextEditorWrapStrategy as _0x509d70,resolveShapeTextHyperLinkAt as _0x4c512c,resolveShapeTextHyperLinkObject as _0x18e584,shouldAllowShapeTextEditorHostSizeShrink as _0x62874f,shouldClipShapeTextDocument as _0x223931,useFormulaShapeToolbar as _0x3f2655}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x6cddf9,ContextMenuGroup as _0x2db674,ContextMenuPosition as _0x1e73b1,FloatingObjectToolbarPosition as _0x31530e,FormatPainterSessionService as _0x2b0b62,IMenuManagerService as _0x413bdc,IRibbonService as _0x999fc3,ISidebarService as _0x450cf3,IconManager as _0x404799,MenuItemType as _0x2d43f9,MenuManagerPosition as _0x4f409a,RibbonInsertGroup as _0x4a2c7a,UndoRedoGroupService as _0x31259f,UniverMobileUIPlugin as _0x386611,getMenuHiddenObservable as _0x1a4e26,useDependency as _0x445cf0,useObservable as _0x25afa3}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x5ed0a3,ImageSourceTypeEnum as _0x8812dd,ShapeArrowSizeEnum as _0x3c9364,ShapeArrowTypeEnum as _0x53c9fe,ShapeDefaultConfig as _0x1b524b,ShapeFillEnum as _0x1cd77e,ShapeLineTypeEnum as _0x5164fc,ShapeModel as _0x1b9e21,ShapeRenderModeEnum as _0x4a3d62,ShapeTypeEnum as _0x29a3a1,computeConnectorRouteLayout as _0x5e7985,getBasicShapeRotateBound as _0x1730d0,isConnectorShape as _0x3fd6c6,isCurvedConnectorShape as _0x1b6450,routeConnectorLineShape as _0x2ed419}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x54214a,UniverShapeEditorPlugin as _0x51e836,applyQuickStyleToShapeData as _0x31be7c,cloneShapeDataForType as _0x3062d3,createShapeFormulaDocument as _0x5bea48,createShapeTextBoxShapeData as _0xca2216,getShapeQuickStylePreset as _0x132d6c,getShapeQuickStyleType as _0x49a35b,resolveActiveShapeQuickStylePresetId as _0x3e003e}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x506353,InsertSheetsShapeMutation as _0x48b536,RemoveSheetsShapeMutation as _0x5543d5,SetShapeDrawingDataCommand as _0x3585c5,SheetsShapeService as _0x27864b,ToggleSheetsShapeFlipCommand as _0x22d960,UniverSheetsShapePlugin as _0x5f07ce,UpdateConnectorRelationCommand as _0x499afe,UpdateLineShapeResizeCommand as _0xfaf437,UpdateSheetsShapeDataMutation as _0x2a1218}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x1256c6,CommandType as _0xf8f445,DependentOn as _0x44b434,Disposable as _0x50d788,DisposableCollection as _0x1de28d,DocumentDataModel as _0x158570,DrawingTypeEnum as _0x4a245a,FOCUSING_COMMON_DRAWINGS as _0x121b13,FOCUSING_SHAPE_TEXT_EDITOR as _0x5ba962,HorizontalAlign as _0x103f4b,ICommandService as _0x2c496c,IConfigService as _0xed9cf,IContextService as _0x35ac6c,IImageIoService as _0x4be973,IPermissionService as _0x2dd2ac,IURLImageService as _0x51737c,IUndoRedoService as _0x2bd058,IUniverInstanceService as _0x43400d,Inject as _0x53ba9c,Injector as _0x3387ed,LocaleService as _0x5622d1,Plugin as _0xcbf5d3,UniverInstanceType as _0x35cbcc,VerticalAlign as _0x54d572,createInternalEditorID as _0x407a8d,generateRandomId as _0x21450c,merge as _0x29ed24,registerDependencies as _0x110449,toDisposable as _0x183b07,touchDependencies as _0x634993}from'@univerjs/core';import{CopySheetCommand as _0x583407,RemoveSheetCommand as _0x5b7bce,SheetInterceptorService as _0xcb4849,SheetPermissionCheckController as _0x28fcea,SheetSkeletonService as _0xfe3e0a,SheetsSelectionsService as _0x1f2e85,UniverSheetsPlugin as _0x59b291,WorkbookCopyPermission as _0x18f348,WorkbookEditablePermission as _0x220388,WorksheetCopyPermission as _0x37f6de,WorksheetEditPermission as _0x5d269b,attachRangeWithCoord as _0x307ceb,discreteRangeToRange as _0x1e7cec,getSheetCommandTarget as _0x88a456}from'@univerjs/sheets';import{IDrawingManagerService as _0x5399a4,SetDrawingSelectedOperation as _0x46655b,UniverDrawingPlugin as _0x237bd8,getDrawingShapeKeyByDrawingSearch as _0x191ead,getOrCreateDrawingCopyPlan as _0x25f35b}from'@univerjs/drawing';import{CURSOR_TYPE as _0x419dad,Circle as _0x4c063a,DRAWING_OBJECT_LAYER_INDEX as _0x5cbc31,DocumentSkeleton as _0x3819c6,DocumentViewModel as _0x584a8c,Documents as _0x57f2f7,IRenderManagerService as _0x22bed8,Image as _0x101755,RENDER_CLASS_TYPE as _0x2a8676,SHEET_VIEWPORT_KEY as _0x539d6e,Shape as _0x17e18a,Transform as _0x39f1ac,UniverRenderEnginePlugin as _0x4a85d4,Vector2 as _0x53a890}from'@univerjs/engine-render';import{COPY_TYPE as _0x64091e,ISheetClipboardService as _0x1b5861,PREDEFINED_HOOK_NAME as _0x501716,SheetCanvasPopManagerService as _0x5973fe,SheetPrintInterceptorService as _0x8a3389,SheetScrollManagerService as _0x2a747e,SheetSkeletonManagerService as _0x3ea870,UniverSheetsMobileUIPlugin as _0xc35d1,UniverSheetsUIPlugin as _0xad06b8,deriveStateFromActiveSheet$ as _0x1bbe6f,getCurrentRangeDisable$ as _0x565f5e,getViewportByCell as _0x1bffb4}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x207ab3,EMPTY as _0x2a9ebe,Observable as _0x1f2ab7,map as _0x5ebe2d,merge as _0x53fdee,of as _0x589e24,startWith as _0x5d81a0,switchMap as _0x4a21b4}from'rxjs';import{DrawingCommonPanel as _0x28ff69,DrawingImageClipService as _0x178ea9,DrawingRenderService as _0x4b581b,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x4939b9,MobileObjectListPanel as _0x54bd98,OBJECT_LIST_FLOATING_SECTION_ID as _0x19b8c4,ObjectListPanelBase as _0x43abaf,UniverDrawingUIPlugin as _0x1a43cb,getCurrentUnitInfo as _0x12ae77,getObjectListPanelSectionIdForDrawingType as _0x2af955,insertGroupObject as _0x4b1b7d}from'@univerjs/drawing-ui';import{MobileDropdown as _0x506d2f}from'@univerjs/design';import{Fragment as _0x465207,jsx as _0x35a023,jsxs as _0x53330b}from'react/jsx-runtime';import{DrawingApplyType as _0x50e51e,ISheetDrawingService as _0x4202dc,RemoveSheetDrawingCommand as _0x6ae2c0,SetDrawingApplyMutation as _0xc118c9,SetDrawingArrangeCommand as _0x325252,SetSheetDrawingCommand as _0x197a6a,UniverSheetsDrawingPlugin as _0x3c3e08,transformToAxisAlignPosition as _0xf9fc28,transformToDrawingPosition as _0x2bed6e}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1c43d9}from'@univerjs-pro/license';import{DocInterceptorService as _0x4ab968,DocSelectionManagerService as _0x542bad,UniverDocsPlugin as _0x442a76}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x5a9bef,DocEventManagerService as _0x30789b,DocRenderController as _0x2d1c03,DocSelectionRenderService as _0x8274d6,UniverDocsUIPlugin as _0x51cee2}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x5b541d,SheetsDrawingGroupCopyPasteController as _0x87ae7f,UniverSheetsDrawingMobileUIPlugin as _0x4c3ab4,UniverSheetsDrawingUIPlugin as _0x1cf3f0}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x3bd381,FlipHorizontalIcon as _0x3c9d9a,FlipVerticalIcon as _0x2efc66,MoveDownIcon as _0x1164ba,MoveUpIcon as _0x907637,ObjectLayersIcon as _0xd7ec17,ShapeFormatSettingIcon as _0x350cd9,TopmostIcon as _0x14bd06}from'@univerjs/icons';import{memo as _0x3321c3,useEffect as _0x189550,useMemo as _0x1e2218,useReducer as _0x1952c4,useState as _0x846ed7}from'react';function Er(_0x57793b,_0x3255c7){const _0x359740=_0x5f19;let _0x5a57b6={};for(let _0x43f435 of Object[_0x359740(0x21a)](_0x3255c7)){let _0x14c82b=_0x3255c7[_0x43f435],_0x36b53b=_0x57793b[_0x43f435];_0x5a57b6[_0x43f435]=_0x36b53b===void 0x0?void 0x0:typeof _0x14c82b==_0x359740(0x265)&&_0x14c82b&&!Array[_0x359740(0x225)](_0x14c82b)&&typeof _0x36b53b=='object'&&_0x36b53b&&!Array[_0x359740(0x225)](_0x36b53b)?Er(_0x36b53b,_0x14c82b):_0x36b53b;}return _0x5a57b6;}const K={'type':_0xf8f445[_0x541acc(0x254)],'id':_0x541acc(0x264),'handler':(_0x297cdf,_0x4aa9a0)=>{const _0x179a0c=_0x541acc;let _0x3d7019=_0x297cdf[_0x179a0c(0x1e8)](_0x27864b),{unitId:_0x49353f,subUnitId:_0x5c993f,shapeType:_0x48a784,shapeId:_0x14d49d,shapeData:_0x2a7d74,replaceShapeData:_0x569ded,oldShapeJSON:_0x1599b1}=_0x4aa9a0;if(!_0x3d7019[_0x179a0c(0x29b)](_0x49353f,_0x5c993f,_0x14d49d))return!0x1;let _0x26f86f=_0x297cdf[_0x179a0c(0x1e8)](_0x2c496c),_0x2daa06=_0x297cdf[_0x179a0c(0x1e8)](_0x2bd058),{oldShapeType:_0x239102,oldShapeData:_0x109776={}}=_0x1599b1,_0x4428e2=_0x569ded?_0x109776:Er(_0x109776,_0x2a7d74||{}),_0x5ac81a={'id':_0x2a1218['id'],'params':{'unitId':_0x49353f,'subUnitId':_0x5c993f,'shapeId':_0x14d49d,'shapeType':_0x48a784,'shapeData':_0x2a7d74,'replace':_0x569ded}},_0xadc419={'id':_0x2a1218['id'],'params':{'unitId':_0x49353f,'subUnitId':_0x5c993f,'shapeId':_0x14d49d,'shapeType':_0x239102,'shapeData':_0x4428e2,'replace':_0x569ded}};return _0x26f86f[_0x179a0c(0x319)](_0x5ac81a['id'],_0x5ac81a[_0x179a0c(0x152)])?(_0x2daa06[_0x179a0c(0x249)]({'unitID':_0x49353f,'undoMutations':[_0xadc419],'redoMutations':[_0x5ac81a]}),!0x0):!0x1;}};function Dr(_0x72671d,_0x30df7d,_0x5631d8,_0x3a5879,_0x167b37,_0x181008){const _0x2656cd=_0x541acc;let _0x28c55c={'unitId':_0x30df7d,'subUnitId':_0x5631d8,'shapeId':_0x3a5879,'shapeData':_0x181008,'oldShapeJSON':_0x167b37};return _0x72671d[_0x2656cd(0x1b0)](K['id'],_0x28c55c);}function Or(_0x18402a,_0x35ac4b,_0x514539,_0x143132,_0x1ac401,_0x2f81b3){const _0x209752=_0x541acc;let _0x8ab02c={'unitId':_0x35ac4b,'subUnitId':_0x514539,'shapeId':_0x143132,'shapeData':_0x2f81b3,'oldShapeJSON':_0x1ac401};return _0x18402a[_0x209752(0x1b0)](K['id'],_0x8ab02c);}function kr(_0x3e7e03){'@babel/helpers - typeof';const _0x4504e5=_0x541acc;return kr=typeof Symbol=='function'&&typeof Symbol[_0x4504e5(0x213)]==_0x4504e5(0x32d)?function(_0x52fcfe){return typeof _0x52fcfe;}:function(_0x41d944){const _0x5eb4ff=_0x4504e5;return _0x41d944&&typeof Symbol==_0x5eb4ff(0x30e)&&_0x41d944[_0x5eb4ff(0x11b)]===Symbol&&_0x41d944!==Symbol[_0x5eb4ff(0x1f5)]?_0x5eb4ff(0x32d):typeof _0x41d944;},kr(_0x3e7e03);}function Ar(_0x36a4aa,_0x1b259f){const _0x21df7c=_0x541acc;if(kr(_0x36a4aa)!='object'||!_0x36a4aa)return _0x36a4aa;var _0x43ed7b=_0x36a4aa[Symbol[_0x21df7c(0x34b)]];if(_0x43ed7b!==void 0x0){var _0x177527=_0x43ed7b[_0x21df7c(0x1b5)](_0x36a4aa,_0x1b259f||_0x21df7c(0x123));if(kr(_0x177527)!=_0x21df7c(0x265))return _0x177527;throw TypeError(_0x21df7c(0x29a));}return(_0x1b259f===_0x21df7c(0x170)?String:Number)(_0x36a4aa);}function jr(_0x23bbff){const _0x2e53c3=_0x541acc;var _0x4572f5=Ar(_0x23bbff,_0x2e53c3(0x170));return kr(_0x4572f5)==_0x2e53c3(0x32d)?_0x4572f5:_0x4572f5+'';}function q(_0x44c393,_0x3939d5,_0x264c6b){const _0x506ee7=_0x541acc;return(_0x3939d5=jr(_0x3939d5))in _0x44c393?Object[_0x506ee7(0x187)](_0x44c393,_0x3939d5,{'value':_0x264c6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44c393[_0x3939d5]=_0x264c6b,_0x44c393;}function Mr(_0x15fae5,_0x3cd023,_0x29eb3f){const _0x2b0fc6=_0x541acc;let _0x452191={..._0x3cd023,'dataModel':{..._0x3cd023[_0x2b0fc6(0x214)]??{},..._0x29eb3f?{'doc':_0x29eb3f}:null}},_0x5c4f8e=_0x40eba8(_0x15fae5,_0x452191),_0x1140d9=_0x509d70(_0x5c4f8e);return{'clip':_0x223931(_0x5c4f8e,_0x1140d9),'wrapStrategy':_0x1140d9};}var J=class extends _0x17e18a{constructor(_0x2eb19d,_0x1efe85){const _0x1a07f6=_0x541acc;super(_0x2eb19d,_0x1efe85),q(this,'_hyperLinkRegions',[]),q(this,_0x1a07f6(0x247),void 0x0),q(this,_0x1a07f6(0x316),new _0x4951e9(()=>this[_0x1a07f6(0x2ff)](!0x0),()=>this[_0x1a07f6(0x2f8)]())),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x1a07f6(0x32a),_0x4a245a[_0x1a07f6(0x1f9)]),q(this,_0x1a07f6(0x340),!0x0),this[_0x1a07f6(0x247)]={..._0x1efe85},this['_formulaAnimation'][_0x1a07f6(0x27a)](_0x1efe85['formulaPresentation'],_0x1efe85[_0x1a07f6(0x2e9)]!==!0x1),this[_0x1a07f6(0x208)](),this[_0x1a07f6(0x2f8)]();}[_0x541acc(0x208)](){const _0x4f3228=_0x541acc;this[_0x4f3228(0x1fd)]['subscribeEvent'](_0x182792=>{const _0x1b78d6=_0x4f3228;this[_0x1b78d6(0x30f)](_0x182792);});}[_0x541acc(0x176)](_0x3a21d4){const _0x58af63=_0x541acc;this[_0x58af63(0x247)]['prstGeom']=_0x3a21d4;}[_0x541acc(0x21d)](_0x307524){const _0x1129eb=_0x541acc;if(this[_0x1129eb(0x247)][_0x1129eb(0x355)])return null;let _0x1cdeb=this[_0x1129eb(0x357)](_0x307524),{width:_0x47d0c5,height:_0x1337e2}=this[_0x1129eb(0x1b8)]();return _0x4c512c(this[_0x1129eb(0x235)],{'x':(this[_0x1129eb(0x269)]?-_0x1cdeb['x']:_0x1cdeb['x'])+_0x47d0c5/0x2,'y':_0x1cdeb['y']+_0x1337e2/0x2});}['setEditing'](_0x5a989c){const _0x35fba6=_0x541acc;this[_0x35fba6(0x247)][_0x35fba6(0x355)]=_0x5a989c,this[_0x35fba6(0x2ff)](!0x0);}[_0x541acc(0x33e)](_0x2b0945,_0x17863e=!0x0){const _0x145a0e=_0x541acc;this[_0x145a0e(0x316)][_0x145a0e(0x27a)](_0x2b0945,_0x17863e),this['_props']['formulaPresentation']=_0x2b0945,this[_0x145a0e(0x2f8)](),this[_0x145a0e(0x2ff)](!0x0);}[_0x541acc(0x2f8)](){const _0x309d89=_0x541acc;let _0x52ba6e=this['_props'][_0x309d89(0x31f)],_0x37c6a2=_0x52ba6e[_0x309d89(0x211)](),_0x4c38a0=_0x41d40b(_0x37c6a2==null?void 0x0:_0x37c6a2[_0x309d89(0x214)]),_0x1176a9=_0x4c38a0==null?void 0x0:_0x4c38a0['doc'],_0xc0d031=this[_0x309d89(0x316)][_0x309d89(0x1f4)]();if(!_0x1176a9||_0xc0d031[_0x309d89(0xf6)]===0x0)return;_0x52ba6e[_0x309d89(0x26b)]({'width':this[_0x309d89(0x27b)],'height':this[_0x309d89(0x35c)]});let _0x682c05=_0x1945a0({'documentData':_0xc0d031['map'](_0x5a8ca4=>_0x5bea48(_0x1176a9,_0x5a8ca4)),'height':this[_0x309d89(0x35c)],'shapeData':_0x52ba6e['getShapeData'](),'textRect':_0x52ba6e['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x309d89(0x27b)],'height':this['height']}),'width':this['width']});if(_0x682c05){var _0x51fe50;this[_0x309d89(0x2db)](_0x682c05[_0x309d89(0x27b)],_0x682c05['height']),(_0x51fe50=this[_0x309d89(0xb7)]())==null||(_0x51fe50=_0x51fe50['getTransformer']())==null||_0x51fe50[_0x309d89(0x14d)]();}}get[_0x541acc(0x2b7)](){const _0x5f0843=_0x541acc;return this['_props'][_0x5f0843(0x2b7)];}get[_0x541acc(0x32f)](){const _0x364f54=_0x541acc;return this['_props'][_0x364f54(0x32f)];}['_updateSrcRectByTransform'](_0xd58c92){const _0x3fa40c=_0x541acc;if(this[_0x3fa40c(0x247)][_0x3fa40c(0x2fa)]==null||!this[_0x3fa40c(0x2e8)])return;let {width:_0x4e9a8a,height:_0x51ecc4}=this,{width:_0x417da3=0x0,height:_0x45ee05=0x0}=_0xd58c92[_0x3fa40c(0x278)],{left:_0x35813e=0x0,top:_0x994eeb=0x0,right:_0x769cd1=0x0,bottom:_0x23400b=0x0}=this[_0x3fa40c(0x247)][_0x3fa40c(0x2fa)],_0x174ee5=_0x35813e,_0x33ea06=_0x994eeb,_0x576188=_0x769cd1,_0x1b3ccf=_0x23400b,_0xce4493=!0x1;if(_0x417da3!==0x0&&_0x417da3!==_0x4e9a8a){let _0x3ad32f=_0x35813e/_0x417da3,_0x47d9a0=_0x769cd1/_0x417da3;_0x174ee5=_0x4e9a8a*_0x3ad32f,_0x576188=_0x4e9a8a*_0x47d9a0,_0xce4493=!0x0;}if(_0x45ee05!==0x0&&_0x45ee05!==_0x51ecc4){let _0x37a5e1=_0x994eeb/_0x45ee05,_0x1d9efe=_0x23400b/_0x45ee05;_0x33ea06=_0x51ecc4*_0x37a5e1,_0x1b3ccf=_0x51ecc4*_0x1d9efe,_0xce4493=!0x0;}_0xce4493&&this[_0x3fa40c(0x276)]({'left':_0x174ee5,'top':_0x33ea06,'right':_0x576188,'bottom':_0x1b3ccf});}[_0x541acc(0x276)](_0x1699b1){const _0x5d5a3c=_0x541acc;this[_0x5d5a3c(0x247)][_0x5d5a3c(0x2fa)]=_0x1699b1,this[_0x5d5a3c(0x2ff)](!0x0);}['setFillImage'](_0x58dd85){const _0x48c223=_0x541acc;this[_0x48c223(0x247)][_0x48c223(0x30b)]=_0x58dd85,this[_0x48c223(0x2ff)](!0x0);}set[_0x541acc(0xc5)](_0x1f5f46){const _0x13526f=_0x541acc;this[_0x13526f(0x190)]=_0x1f5f46;}get[_0x541acc(0xc5)](){const _0x20b932=_0x541acc;this[_0x20b932(0x190)]||this[_0x20b932(0x360)]();let _0x505e25=this['_transform'][_0x20b932(0x140)]();return this[_0x20b932(0x1c4)](_0x505e25);}get['shapeModel'](){const _0xaa882f=_0x541acc;return this[_0xaa882f(0x247)][_0xaa882f(0x31f)];}get['shapeId'](){const _0x5bf1e5=_0x541acc;return this[_0x5bf1e5(0x247)][_0x5bf1e5(0x266)];}get[_0x541acc(0xd1)](){const _0x38f1d0=_0x541acc;return _0x2a8676[_0x38f1d0(0x228)];}[_0x541acc(0x273)](_0x5d57ea,_0x2f3f3e,_0x1224bf,_0x3aae0f){const _0x2a3285=_0x541acc;let _0x56a3ed=this[_0x2a3285(0x247)][_0x2a3285(0x31f)];if(!_0x56a3ed||!_0x2f3f3e)return;let _0x576d7c=_0x1224bf??this['width'],_0x4e9663=_0x3aae0f??this[_0x2a3285(0x35c)],_0x5167ed={'shapeType':_0x56a3ed['getShapeType'](),'width':_0x576d7c,'height':_0x4e9663},_0x5108de={'renderMode':_0x4a3d62[_0x2a3285(0x1d1)],'oKey':this['oKey'],'image':this[_0x2a3285(0x247)][_0x2a3285(0x30b)],'angle':this[_0x2a3285(0xcf)]};_0x56a3ed[_0x2a3285(0x26b)](_0x5167ed),_0x5d57ea[_0x2a3285(0x119)]();let _0xa6bc44={'top':0x0,'left':0x0,'width':_0x576d7c,'height':_0x4e9663},_0x200bfd=_0x56a3ed[_0x2a3285(0x2c8)](_0xa6bc44);_0x200bfd?this[_0x2a3285(0x150)](_0x5d57ea,_0x200bfd,_0x384e86=>{const _0xfe6295=_0x2a3285;_0x56a3ed[_0xfe6295(0x2b6)](_0x384e86,_0xa6bc44,_0x5108de);}):(this[_0x2a3285(0x177)](),_0x56a3ed['render'](_0x5d57ea,_0xa6bc44,_0x5108de)),_0x5d57ea[_0x2a3285(0x300)]();let _0x3f8cc8=_0x56a3ed[_0x2a3285(0x211)](),_0x56c8a3=_0x56a3ed['getShapeTextRect'](_0xa6bc44),_0x4a8a92=_0x56a3ed[_0x2a3285(0x241)]();if(_0x3f8cc8&&_0x56c8a3&&!_0x4a8a92){_0x5d57ea[_0x2a3285(0x119)](),this[_0x2a3285(0x19e)]()[_0x2a3285(0x269)]&&_0x5d57ea[_0x2a3285(0x186)](-0x1,0x1);let _0x4b6390=_0x576d7c/0x2,_0xc16460=_0x4e9663/0x2;_0x5d57ea[_0x2a3285(0x215)](-_0x4b6390,-_0xc16460),_0x5d57ea[_0x2a3285(0x242)](),this[_0x2a3285(0x137)](_0x5d57ea,_0x3f8cc8,_0x56c8a3),_0x5d57ea['restore']();}}[_0x541acc(0x1ef)](_0x369c59){}[_0x541acc(0x137)](_0x2b5be5,_0x5c0f10,_0x5c508b){const _0x27a5ab=_0x541acc;var _0x1aed99;this[_0x27a5ab(0x235)]=[],!this[_0x27a5ab(0x247)][_0x27a5ab(0x355)]&&(!((_0x1aed99=_0x5c0f10[_0x27a5ab(0x214)])!=null&&_0x1aed99['doc'])&&_0x27a5ab(0x180)in _0x5c0f10&&_0x5c0f10[_0x27a5ab(0x180)]===!0x1?this[_0x27a5ab(0x33d)](_0x2b5be5,_0x5c0f10,_0x5c508b):this[_0x27a5ab(0x203)](_0x2b5be5,_0x5c0f10,_0x5c508b));}[_0x541acc(0x33d)](_0x459897,_0x1d0704,_0x44bee2){const _0x4ae488=_0x541acc;this[_0x4ae488(0x203)](_0x459897,{..._0x1d0704,'text':_0x1d0704['text']??'','dataModel':{'doc':_0x15cc35(_0x1d0704,_0x4ae488(0x1a8)+this[_0x4ae488(0x22c)])}},_0x44bee2);}[_0x541acc(0x203)](_0x3f82cf,_0x1fd1d7,_0x46a045){const _0x59c062=_0x541acc;_0x11fc5b(_0x3f82cf,this[_0x59c062(0x316)],(_0x6731b9,_0x40a60e,_0x463a77)=>{const _0x27b549=_0x59c062;this[_0x27b549(0x16b)](_0x6731b9,_0x1fd1d7,_0x46a045,_0x40a60e,_0x463a77==='current');});}[_0x541acc(0x16b)](_0x354d23,_0x500a39,_0xf8b058,_0x58da2b,_0x4369c5){const _0x4c5f40=_0x541acc;let _0x222090=this[_0x4c5f40(0x247)][_0x4c5f40(0xc1)];if(!_0x500a39[_0x4c5f40(0x214)]||!_0x222090)return;let _0x2a6d24=_0x41d40b(_0x500a39[_0x4c5f40(0x214)]);if(!_0x2a6d24)return;let _0x2052a7=_0x2a6d24[_0x4c5f40(0x166)];if(!_0x2052a7)return;let _0x10c13b=_0x5bea48(_0x2052a7,_0x58da2b),_0x5a9b78=_0x2a6d24['va']??_0x54d572[_0x4c5f40(0x262)],_0xe87698=_0x2a6d24['ha']??_0x103f4b[_0x4c5f40(0x1ac)],_0x3ae3e3=Mr(this[_0x4c5f40(0x247)]['shapeModel'][_0x4c5f40(0x351)](),_0x500a39,_0x10c13b),_0x417b3e=_0x500a39['isHorizontal'],_0x4de063=_0x3ff829(_0x10c13b,{'isHorizontal':_0x417b3e!==!0x1,'textRect':_0xf8b058,'verticalAlign':_0x5a9b78,'horizontalAlign':_0xe87698,'wrapStrategy':_0x3ae3e3[_0x4c5f40(0x20b)]}),_0x2c8308=new _0x158570(_0x4de063),_0x2bf306=new _0x584a8c(_0x2c8308),_0x12ef09=_0x3819c6[_0x4c5f40(0x2e7)](_0x2bf306,_0x222090);_0x12ef09[_0x4c5f40(0x33a)]();let _0x485a64=_0x12ef09['getActualSize']()[_0x4c5f40(0xc8)],_0x4f6fef=_0x1329a2({'contentHeight':_0x485a64,'verticalAlign':_0x5a9b78,'viewportHeight':_0xf8b058[_0x4c5f40(0x35c)]});_0x2c8308[_0x4c5f40(0x23c)]({'pageSize':{'width':_0x417b3e===!0x1?_0xf8b058[_0x4c5f40(0x35c)]:_0xf8b058[_0x4c5f40(0x27b)],'height':_0x4a69d6(_0x10c13b,_0x4f6fef[_0x4c5f40(0x2c4)])}}),_0x2c8308[_0x4c5f40(0xc9)]({'t':_0x4f6fef['marginTop']}),_0x12ef09[_0x4c5f40(0x33a)]();let _0x226373=new _0x57f2f7('shape-text-'+this[_0x4c5f40(0x22c)],_0x12ef09,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4c5f40(0x2ff)](!0x0)});_0x226373[_0x4c5f40(0x2db)](_0xf8b058['width'],_0x4f6fef[_0x4c5f40(0x2c4)]),_0x354d23['save'](),_0x354d23[_0x4c5f40(0x1f3)](_0xf8b058[_0x4c5f40(0x1d7)],_0xf8b058[_0x4c5f40(0x2f1)]),_0x3ae3e3[_0x4c5f40(0x371)]&&(_0x354d23[_0x4c5f40(0x242)](),_0x354d23['rect'](0x0,_0x4f6fef['clipTop'],_0xf8b058[_0x4c5f40(0x27b)],_0x4f6fef[_0x4c5f40(0x22b)]),_0x354d23['clip']()),_0x4f6fef[_0x4c5f40(0x2d5)]&&_0x354d23['translateWithPrecision'](0x0,_0x4f6fef[_0x4c5f40(0x2d5)]),_0x226373[_0x4c5f40(0x37e)](_0x354d23),_0x4369c5&&(this[_0x4c5f40(0x235)]=_0x471d78(_0x226373,{'left':_0xf8b058['left'],'top':_0xf8b058[_0x4c5f40(0x2f1)]+_0x4f6fef[_0x4c5f40(0x2d5)]},_0x3ae3e3[_0x4c5f40(0x371)]?{'left':_0xf8b058[_0x4c5f40(0x1d7)],'right':_0xf8b058[_0x4c5f40(0x1d7)]+_0xf8b058['width'],'top':_0xf8b058[_0x4c5f40(0x2f1)]+_0x4f6fef[_0x4c5f40(0x303)],'bottom':_0xf8b058['top']+_0x4f6fef[_0x4c5f40(0x303)]+_0x4f6fef[_0x4c5f40(0x22b)]}:void 0x0)),_0x354d23[_0x4c5f40(0x300)](),_0x226373[_0x4c5f40(0x1ae)](),_0x12ef09[_0x4c5f40(0x1ae)](),_0x2bf306[_0x4c5f40(0x1ae)](),_0x2c8308['dispose']();}[_0x541acc(0x2b6)](_0xd29b6f,_0x8de08f,_0x140a3c=!0x1){const _0x5093a9=_0x541acc;if(!this[_0x5093a9(0x175)])return this[_0x5093a9(0x2ff)](!0x1),this;let {width:_0xc4c28,height:_0x396b11,left:_0x338418,top:_0x29b4a5}=this,_0x142ec8=this[_0x5093a9(0x1b8)]();if(_0xc4c28=_0x142ec8[_0x5093a9(0x27b)],_0x396b11=_0x142ec8[_0x5093a9(0x35c)],_0x338418=_0x142ec8[_0x5093a9(0x1d7)],_0x29b4a5=_0x142ec8[_0x5093a9(0x2f1)],this['isRender'](_0x8de08f)){let {top:_0x309ca6,left:_0x1c638f,bottom:_0xecf5c9,right:_0x416fdf}=_0x8de08f[_0x5093a9(0xee)];if(_0xc4c28+this[_0x5093a9(0x2ec)]+_0x338418<_0x1c638f||_0x416fdf<_0x338418||_0x396b11+this[_0x5093a9(0x2ec)]+_0x29b4a5<_0x309ca6||_0xecf5c9<_0x29b4a5)return this;}let _0x34427c=_0x338418+_0xc4c28/0x2,_0x6df9a7=_0x29b4a5+_0x396b11/0x2,_0x268072=this[_0x5093a9(0xc5)]['getMatrix']();if(this[_0x5093a9(0x247)][_0x5093a9(0x355)]){let _0x218038=this['getState'](),_0x2c3d9b=new _0x39f1ac();_0x2c3d9b['composeMatrix']({..._0x218038}),_0x268072=_0x2c3d9b[_0x5093a9(0x24e)]();}return _0xd29b6f[_0x5093a9(0x119)](),this[_0x5093a9(0x247)][_0x5093a9(0x31f)][_0x5093a9(0x246)]===!0x0||_0xd29b6f[_0x5093a9(0xc5)](_0x268072[0x0],_0x268072[0x1],_0x268072[0x2],_0x268072[0x3],_0x34427c,_0x6df9a7),this[_0x5093a9(0x273)](_0xd29b6f,_0x8de08f,_0xc4c28,_0x396b11),_0xd29b6f[_0x5093a9(0x300)](),this[_0x5093a9(0x2ff)](!0x1),this;}[_0x541acc(0x357)](_0x531fb5){const _0x1479b7=_0x541acc;let {left:_0x2c8064,top:_0x50a220,width:_0x46ea67,height:_0x36c902}=this[_0x1479b7(0x1b8)](),_0x16c26c=this[_0x1479b7(0xc5)][_0x1479b7(0x24e)](),_0x24fb6a=_0x2c8064+_0x46ea67/0x2,_0xaf11de=_0x50a220+_0x36c902/0x2,_0x5b6d80=new _0x39f1ac([_0x16c26c[0x0],_0x16c26c[0x1],_0x16c26c[0x2],_0x16c26c[0x3],_0x24fb6a,_0xaf11de]),_0x46e1b5=this[_0x1479b7(0x36c)]();return(this['isInGroup']&&(_0x46e1b5==null?void 0x0:_0x46e1b5[_0x1479b7(0xd1)])===_0x2a8676[_0x1479b7(0x2ac)]?_0x46e1b5['ancestorTransform'][_0x1479b7(0x171)](_0x5b6d80):_0x5b6d80)[_0x1479b7(0x185)]()[_0x1479b7(0x12d)](_0x531fb5);}[_0x541acc(0x1d4)](_0x118242){const _0x4bed39=_0x541acc;let {left:_0x47004a,top:_0x453487,width:_0xb86aae,height:_0x5c091e}=this['getRealBound'](),_0x5b29b6=_0x47004a+_0xb86aae/0x2,_0x2e85b4=_0x453487+_0x5c091e/0x2,_0x2e82a2=this[_0x4bed39(0xc5)]['getMatrix'](),_0x1b55eb=new _0x39f1ac([_0x2e82a2[0x0],_0x2e82a2[0x1],_0x2e82a2[0x2],_0x2e82a2[0x3],_0x5b29b6,_0x2e85b4]),_0x16792f=this[_0x4bed39(0x36c)](),_0x52f458=(this['isInGroup']&&(_0x16792f==null?void 0x0:_0x16792f['classType'])===_0x2a8676[_0x4bed39(0x2ac)]?_0x16792f[_0x4bed39(0x1d8)][_0x4bed39(0x171)](_0x1b55eb):_0x1b55eb)[_0x4bed39(0x185)]()[_0x4bed39(0x12d)](_0x118242),_0x452729=_0xb86aae/0x2,_0x58215d=_0x5c091e/0x2,_0x53d2e1=this[_0x4bed39(0x247)][_0x4bed39(0x31f)];return _0x53d2e1&&_0x53d2e1[_0x4bed39(0x241)]()?_0x53d2e1['isHitLine'](_0x52f458['x'],_0x52f458['y'],_0xb86aae,_0x5c091e):_0x52f458['x']>=-_0x452729-this[_0x4bed39(0x2ec)]/0x2&&_0x52f458['x']<=_0x452729+this[_0x4bed39(0x2ec)]/0x2&&_0x52f458['y']>=-_0x58215d-this['strokeWidth']/0x2&&_0x52f458['y']<=_0x58215d+this[_0x4bed39(0x2ec)]/0x2;}[_0x541acc(0x1ae)](){const _0x489c97=_0x541acc;this[_0x489c97(0x316)][_0x489c97(0x1ae)](),this[_0x489c97(0x247)][_0x489c97(0x31f)]=null,super[_0x489c97(0x1ae)]();}},Nr=class extends _0x17e18a{constructor(_0x338e1b,_0x351637){const _0x51a12a=_0x541acc;super(_0x338e1b,_0x351637),q(this,_0x51a12a(0x37d),null),q(this,_0x51a12a(0x2b2),null),q(this,_0x51a12a(0x1de),null),q(this,_0x51a12a(0x285),null),_0x351637&&this[_0x51a12a(0x1d3)](_0x351637);}[_0x541acc(0x105)](){const _0x15df24=_0x541acc;return{'unitId':this[_0x15df24(0x1de)],'subUnitId':this[_0x15df24(0x285)],'drawingId':this[_0x15df24(0x37d)]};}[_0x541acc(0x1d3)](_0x2e98b2){const _0x864bd2=_0x541acc;_0x2e98b2['shapeId']!==void 0x0&&(this[_0x864bd2(0x37d)]=_0x2e98b2[_0x864bd2(0x266)]),_0x2e98b2[_0x864bd2(0x1a1)]!==void 0x0&&(this['_adjName']=_0x2e98b2[_0x864bd2(0x1a1)]),_0x2e98b2[_0x864bd2(0x2b7)]!==void 0x0&&(this[_0x864bd2(0x1de)]=_0x2e98b2[_0x864bd2(0x2b7)]),_0x2e98b2[_0x864bd2(0x32f)]!==void 0x0&&(this[_0x864bd2(0x285)]=_0x2e98b2[_0x864bd2(0x32f)]),this['transformByState']({'width':_0x2e98b2[_0x864bd2(0x27b)],'height':_0x2e98b2[_0x864bd2(0x35c)]});}[_0x541acc(0x273)](_0xb617a1){const _0x1a1e62=_0x541acc;_0x4c063a[_0x1a1e62(0xb1)](_0xb617a1,{'radius':_0x1b524b['adjHandleSize'],'fill':_0x1b524b[_0x1a1e62(0x1cf)],'stroke':_0x1b524b[_0x1a1e62(0x1c9)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x5ed103,_0x59f8ed){return function(_0xf2ff51,_0x311123){_0x59f8ed(_0xf2ff51,_0x311123,_0x5ed103);};}function X(_0x56391d,_0x2d2c41,_0x258a66,_0x25a965){const _0x22e468=_0x541acc;var _0x2ad5ff=arguments[_0x22e468(0xf6)],_0x5d53c1=_0x2ad5ff<0x3?_0x2d2c41:_0x25a965===null?_0x25a965=Object[_0x22e468(0xda)](_0x2d2c41,_0x258a66):_0x25a965,_0x4acb02;if(typeof Reflect==_0x22e468(0x265)&&typeof Reflect[_0x22e468(0x181)]==_0x22e468(0x30e))_0x5d53c1=Reflect[_0x22e468(0x181)](_0x56391d,_0x2d2c41,_0x258a66,_0x25a965);else{for(var _0x481e1b=_0x56391d[_0x22e468(0xf6)]-0x1;_0x481e1b>=0x0;_0x481e1b--)(_0x4acb02=_0x56391d[_0x481e1b])&&(_0x5d53c1=(_0x2ad5ff<0x3?_0x4acb02(_0x5d53c1):_0x2ad5ff>0x3?_0x4acb02(_0x2d2c41,_0x258a66,_0x5d53c1):_0x4acb02(_0x2d2c41,_0x258a66))||_0x5d53c1);}return _0x2ad5ff>0x3&&_0x5d53c1&&Object[_0x22e468(0x187)](_0x2d2c41,_0x258a66,_0x5d53c1),_0x5d53c1;}let Z=class extends _0x50d788{constructor(_0xfe62c3,_0x5ce29d,_0x10246a,_0x4498fd,_0x50adde,_0x54c3d9){const _0x39809c=_0x541acc;super(),this['_drawingManagerService']=_0xfe62c3,this[_0x39809c(0x1da)]=_0x5ce29d,this[_0x39809c(0x2a5)]=_0x10246a,this[_0x39809c(0x141)]=_0x4498fd,this[_0x39809c(0x2f2)]=_0x50adde,this[_0x39809c(0x2f4)]=_0x54c3d9,q(this,_0x39809c(0x244),new Map()),this[_0x39809c(0x328)](this[_0x39809c(0x2f4)][_0x39809c(0xe4)][_0x39809c(0x36d)](_0x18a730=>{const _0x292cda=_0x39809c;var _0xade439;(_0xade439=this[_0x292cda(0x244)][_0x292cda(0x1e8)](this[_0x292cda(0x27e)](_0x18a730[_0x292cda(0x2b7)],_0x18a730[_0x292cda(0x32f)],_0x18a730[_0x292cda(0x266)])))==null||_0xade439[_0x292cda(0x1ba)](_0x2e0f67=>_0x2e0f67['setFormulaPresentation'](_0x18a730[_0x292cda(0x11e)],_0x18a730[_0x292cda(0x2a6)]));})),this[_0x39809c(0x328)](this['_drawingManagerService'][_0x39809c(0x24f)][_0x39809c(0x36d)](_0x185cf2=>{const _0x260b7c=_0x39809c;_0x185cf2[_0x260b7c(0x1ba)](_0x951633=>{const _0x2243bc=_0x260b7c;this[_0x2243bc(0x2f4)][_0x2243bc(0x178)]({'unitId':_0x951633[_0x2243bc(0x2b7)],'subUnitId':_0x951633[_0x2243bc(0x32f)],'shapeId':_0x951633[_0x2243bc(0x162)]}),this[_0x2243bc(0x244)][_0x2243bc(0x1ed)](this[_0x2243bc(0x27e)](_0x951633[_0x2243bc(0x2b7)],_0x951633['subUnitId'],_0x951633[_0x2243bc(0x162)]));});}));}['renderDrawingShape'](_0x59a1bf,_0x21a592,_0x1ad565){const _0x2506fe=_0x541acc;let {transform:_0x4e2bf4,drawingType:_0x299391,srcRect:_0x198cac,prstGeom:_0x126659,groupId:_0x56d6aa,unitId:_0x5876e0,subUnitId:_0x216091,drawingId:_0x2c9c04,isMultiTransform:_0x1db4e6,transforms:_0x441d8f,hidden:_0x3a52da,selectable:_0x316cb0}=_0x59a1bf;if(_0x299391!==_0x4a245a[_0x2506fe(0x1f9)]||!this[_0x2506fe(0x1b6)][_0x2506fe(0x28e)]()||_0x4e2bf4==null)return;let _0x84af63=this[_0x2506fe(0x1b6)][_0x2506fe(0x2fd)](),_0xcc25d6=_0x1db4e6&&_0x441d8f?_0x441d8f:[_0x4e2bf4],_0x412c48=[];for(let _0x5ba93d of _0xcc25d6){let {left:_0x58779f,top:_0x1b3f56,width:_0x5331e1,height:_0x451d88,angle:_0x446258,flipX:_0x260758,flipY:_0x39ee1a,skewX:_0x3e11ff,skewY:_0x3a7482}=_0x5ba93d,_0x5f300b=_0xcc25d6[_0x2506fe(0x334)](_0x5ba93d),_0x3218b4=_0x191ead({'unitId':_0x5876e0,'subUnitId':_0x216091,'drawingId':_0x2c9c04},_0x1db4e6?_0x5f300b:void 0x0),_0x54a482=_0x21a592[_0x2506fe(0x13f)](_0x3218b4);if(_0x54a482!=null){let _0x5d6d8c={'unitId':_0x5876e0,'subUnitId':_0x216091,'shapeId':_0x2c9c04};_0x54a482 instanceof J&&this[_0x2506fe(0x191)](_0x54a482,_0x5d6d8c),_0x54a482[_0x2506fe(0x26e)]({'left':_0x58779f,'top':_0x1b3f56,'width':_0x5331e1,'height':_0x451d88,'angle':_0x446258,'flipX':_0x260758,'flipY':_0x39ee1a,'skewX':_0x3e11ff,'skewY':_0x3a7482});continue;}let _0x2d6a61=this[_0x2506fe(0x1b6)][_0x2506fe(0x222)](_0x5876e0,_0x216091),_0x55e07e=_0x2d6a61[_0x2506fe(0x334)](_0x2c9c04);if(_0x21a592[_0x2506fe(0x13f)](_0x3218b4)||!this[_0x2506fe(0x1b6)]['getDrawingVisible']())continue;let _0x39b88a=this[_0x2506fe(0x1da)][_0x2506fe(0x29b)](_0x5876e0,_0x216091,_0x2c9c04);if(!_0x39b88a)continue;let _0xa5040e=_0x3fd6c6(_0x39b88a[_0x2506fe(0x259)]())?{..._0x8219d5,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x8219d5,_0x15464e=_0x39b88a[_0x2506fe(0x351)]()[_0x2506fe(0xbe)],_0x5060c3={'unitId':_0x5876e0,'subUnitId':_0x216091,'shapeId':_0x2c9c04};_0x15464e&&this[_0x2506fe(0x2f4)][_0x2506fe(0x24c)](_0x5060c3,_0x15464e);let _0xe6d286=new J(_0x3218b4,{..._0x5ba93d,'zIndex':_0x55e07e===-0x1?_0x2d6a61['length']-0x1:_0x55e07e,'shapeModel':_0x39b88a,'localeService':this['_localeService'],'shapeId':_0x2c9c04,'unitId':_0x5876e0,'subUnitId':_0x216091,'visible':_0x3a52da!==!0x0,'evented':_0x316cb0!==!0x1,'formulaPresentation':_0x15464e?this[_0x2506fe(0x2f4)]['getPresentation'](_0x5060c3):void 0x0,'animateFormulaPresentation':(_0x15464e==null?void 0x0:_0x15464e[_0x2506fe(0x2a6)])!==!0x1,'transformerConfig':_0xa5040e});if(_0x15464e){let _0x1950ad=this['_formulaKey'](_0x5876e0,_0x216091,_0x2c9c04),_0x418df3=this[_0x2506fe(0x244)][_0x2506fe(0x1e8)](_0x1950ad)??new Set();_0x418df3['add'](_0xe6d286),this[_0x2506fe(0x244)][_0x2506fe(0x21f)](_0x1950ad,_0x418df3);}_0x21a592[_0x2506fe(0x274)](_0xe6d286,_0x5cbc31),_0x84af63&&_0x21a592['attachTransformerTo'](_0xe6d286),_0x56d6aa&&_0x4b1b7d({'drawingId':_0x56d6aa,'unitId':_0x5876e0,'subUnitId':_0x216091},_0xe6d286,_0x21a592,this[_0x2506fe(0x1b6)]),_0x126659!=null&&_0xe6d286[_0x2506fe(0x176)](_0x126659),_0x198cac!=null&&_0xe6d286[_0x2506fe(0x276)](_0x198cac);let _0x122d89=this['_loadShapePictureFill'](_0xe6d286,_0x39b88a['getShapeData']());if(_0x122d89){var _0x446a4c;_0x1ad565==null||(_0x446a4c=_0x1ad565['resourceCollector'])==null||_0x446a4c['add'](_0x122d89);}_0x412c48['push'](_0xe6d286);}return _0x412c48;}[_0x541acc(0x27e)](_0x5ed719,_0x15bf58,_0x5ef8b9){return _0x5ed719+'\x00'+_0x15bf58+'\x00'+_0x5ef8b9;}['refreshFormulaPresentation'](_0x3aac35,_0x382b43){const _0x36ce2f=_0x541acc;let _0x497277=this[_0x36ce2f(0x1da)][_0x36ce2f(0x29b)](_0x382b43[_0x36ce2f(0x2b7)],_0x382b43[_0x36ce2f(0x32f)],_0x382b43[_0x36ce2f(0x266)]),_0x26a811=_0x497277==null?void 0x0:_0x497277[_0x36ce2f(0x351)]()[_0x36ce2f(0xbe)],_0x2e3265=this[_0x36ce2f(0x27e)](_0x382b43[_0x36ce2f(0x2b7)],_0x382b43[_0x36ce2f(0x32f)],_0x382b43[_0x36ce2f(0x266)]);if(_0x26a811){this[_0x36ce2f(0x2f4)]['register'](_0x382b43,_0x26a811);let _0x47abf2=this['_formulaShapes'][_0x36ce2f(0x1e8)](_0x2e3265)??new Set();_0x47abf2[_0x36ce2f(0xb5)](_0x3aac35),this['_formulaShapes'][_0x36ce2f(0x21f)](_0x2e3265,_0x47abf2);}else{var _0x3eefd8;this[_0x36ce2f(0x2f4)][_0x36ce2f(0x178)](_0x382b43),(_0x3eefd8=this[_0x36ce2f(0x244)][_0x36ce2f(0x1e8)](_0x2e3265))==null||_0x3eefd8['delete'](_0x3aac35);}_0x3aac35['setFormulaPresentation'](_0x26a811?this[_0x36ce2f(0x2f4)][_0x36ce2f(0x2fe)](_0x382b43):void 0x0,(_0x26a811==null?void 0x0:_0x26a811[_0x36ce2f(0x2a6)])!==!0x1);}[_0x541acc(0x308)](_0x507ffd){const _0x4a2d51=_0x541acc;let _0x56ad5d=_0x507ffd[_0x4a2d51(0x31f)][_0x4a2d51(0x351)](),_0x530df3=_0x56ad5d['fill'];!_0x530df3||_0x530df3[_0x4a2d51(0x277)]!==_0x1cd77e[_0x4a2d51(0x144)]||!_0x530df3['fillImageSource']?_0x507ffd[_0x4a2d51(0x206)](void 0x0):this[_0x4a2d51(0x36b)](_0x507ffd,_0x56ad5d);}['_loadShapePictureFill'](_0x24fdbe,_0x44ad6d){const _0x2cf275=_0x541acc;let _0x269c01=_0x44ad6d[_0x2cf275(0x2da)];if(!_0x269c01||_0x269c01[_0x2cf275(0x277)]!==_0x1cd77e[_0x2cf275(0x144)]||!_0x269c01['fillImageSource'])return;let _0x570b0c=_0x269c01[_0x2cf275(0x1c6)],_0x1a9db0=_0x269c01[_0x2cf275(0x2e5)]??_0x8812dd[_0x2cf275(0x132)],_0x7c012b=this[_0x2cf275(0x141)][_0x2cf275(0x207)](_0x570b0c,_0x1a9db0);if(_0x7c012b)_0x24fdbe['setFillImage'](_0x7c012b);else return this[_0x2cf275(0x20e)](_0x24fdbe,_0x570b0c,_0x1a9db0);}async[_0x541acc(0x20e)](_0xec430b,_0x1a1a20,_0x443465){const _0x2d34e0=_0x541acc;let _0x2f63c9;try{if(_0x443465===_0x8812dd[_0x2d34e0(0x148)])_0x2f63c9=await this[_0x2d34e0(0x141)]['getImage'](_0x1a1a20);else{if(_0x443465===_0x8812dd[_0x2d34e0(0x132)])try{_0x2f63c9=await this[_0x2d34e0(0x2f2)][_0x2d34e0(0x1a2)](_0x1a1a20);}catch{_0x2f63c9=_0x1a1a20;}else _0x2f63c9=_0x1a1a20;}}catch(_0x566abc){console[_0x2d34e0(0x2e3)](_0x2d34e0(0x15f),_0x566abc);return;}await new Promise(_0x293cc2=>{const _0x159b00=_0x2d34e0;let _0xb599e8=new window[(_0x159b00(0x292))]();_0xb599e8[_0x159b00(0x218)]=()=>{const _0x4bd69b=_0x159b00;this[_0x4bd69b(0x141)]['addImageSourceCache'](_0x1a1a20,_0x443465,_0xb599e8),_0xec430b[_0x4bd69b(0x206)](_0xb599e8),_0x293cc2();},_0xb599e8[_0x159b00(0x362)]=()=>{const _0x3d180a=_0x159b00;console[_0x3d180a(0x2e3)](_0x3d180a(0x12a),_0x1a1a20),_0x293cc2();},_0xb599e8[_0x159b00(0x122)]=_0x2f63c9;});}};Z=X([Y(0x0,_0x5399a4),Y(0x1,_0x53ba9c(_0x27864b)),Y(0x2,_0x53ba9c(_0x5622d1)),Y(0x3,_0x4be973),Y(0x4,_0x51737c),Y(0x5,_0x53ba9c(_0x54214a))],Z);let Pr=class extends _0x50d788{constructor(_0x49f2f1,_0x5e0783,_0x452cfd,_0x58b8c1,_0x12143a,_0x24542d){const _0x3bc184=_0x541acc;super(),this[_0x3bc184(0x1b6)]=_0x49f2f1,this[_0x3bc184(0x1da)]=_0x5e0783,this[_0x3bc184(0x232)]=_0x452cfd,this[_0x3bc184(0x33b)]=_0x58b8c1,this[_0x3bc184(0x35a)]=_0x12143a,this[_0x3bc184(0xdc)]=_0x24542d,q(this,_0x3bc184(0x26d),null),q(this,'_unitId',null),q(this,_0x3bc184(0x285),null),q(this,_0x3bc184(0x27c),void 0x0),q(this,'_shapes',[]),q(this,_0x3bc184(0x350),0x0),q(this,_0x3bc184(0x289),0x0),q(this,_0x3bc184(0x238),0x0),q(this,_0x3bc184(0x17c),0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x3bc184(0xde),void 0x0),q(this,_0x3bc184(0x113),void 0x0),q(this,_0x3bc184(0x2c3),void 0x0),q(this,_0x3bc184(0x32e),void 0x0),q(this,_0x3bc184(0x2b5),!0x1),this[_0x3bc184(0x34a)](),this[_0x3bc184(0xe9)]();}[_0x541acc(0x124)](_0xb40146,_0x40e34c,_0x5113e7){const _0x56a3b8=_0x541acc;let _0x155204=this[_0x56a3b8(0x1da)]['getShapeModel'](_0xb40146,_0x40e34c,_0x5113e7);if(_0x155204)return _0x155204['getDrawingPoints']();}[_0x541acc(0x129)](){const _0x192e69=_0x541acc;this[_0x192e69(0x2e0)]();}[_0x541acc(0x25a)](){const _0x274936=_0x541acc;this[_0x274936(0xed)](!0x0);}[_0x541acc(0x1be)](_0x10a9f2){this['_isShouldShowDrawingShapeAdjust']=_0x10a9f2;}[_0x541acc(0xbb)](_0x4827a8,_0x6f09af,_0x240327,_0x468cfa){const _0x471320=_0x541acc;let _0x41bdb6=this[_0x471320(0x1da)][_0x471320(0x29b)](_0x4827a8,_0x6f09af,_0x240327);if(_0x41bdb6)return _0x41bdb6[_0x471320(0x22a)](_0x468cfa);}[_0x541acc(0x293)](_0x251fe5=!0x1){const _0x18fbd5=_0x541acc;if(this['_unitId']===null||this['_subUnitId']===null||this[_0x18fbd5(0x26d)]===null)return;let _0x3df155=this[_0x18fbd5(0x232)][_0x18fbd5(0x365)](this[_0x18fbd5(0x1de)]);if(!_0x3df155||!_0x3df155[_0x18fbd5(0x320)](_0x3ea870)['getCurrentSkeleton']())return;let {scene:_0x2e3f1f}=_0x3df155,_0x398815={'unitId':this[_0x18fbd5(0x1de)],'subUnitId':this[_0x18fbd5(0x285)],'drawingId':this['_activeShapeId']},_0x3c292d=this[_0x18fbd5(0x1b6)][_0x18fbd5(0xb2)](_0x398815),{transform:_0x300530}=_0x3c292d;if(!_0x300530||_0x3c292d['drawingType']!==_0x4a245a['DRAWING_SHAPE'])return;let {left:_0x48a89b,top:_0x412c05,width:_0x5e3cc2,height:_0x45ba43,flipX:_0x177298,flipY:_0x1c9ee0,angle:_0x43d528=0x0}=_0x300530;if(_0x48a89b===void 0x0||_0x412c05===void 0x0)return;if(_0x251fe5){let _0x4bfb2f=this['_sheetsShapeService'][_0x18fbd5(0x29b)](this[_0x18fbd5(0x1de)],this['_subUnitId'],this[_0x18fbd5(0x26d)]);_0x4bfb2f==null||_0x4bfb2f[_0x18fbd5(0x26b)]({'width':_0x5e3cc2??0x0,'height':_0x45ba43??0x0}),this[_0x18fbd5(0x27c)]=_0x4bfb2f==null?void 0x0:_0x4bfb2f[_0x18fbd5(0x1ef)]();}let _0x5da8c8=this[_0x18fbd5(0x27c)];for(let _0x317a08=0x0;_0x317a08<_0x5da8c8['length'];_0x317a08++){let _0x4292d6=_0x5da8c8[_0x317a08],_0x291aff=_0x4292d6['x'],_0x333015=_0x4292d6['y'];if(_0x177298&&(_0x291aff=(_0x5e3cc2||0x0)-_0x291aff),_0x1c9ee0&&(_0x333015=(_0x45ba43||0x0)-_0x333015),_0x43d528!==0x0){let _0x38846e=(_0x5e3cc2||0x0)/0x2,_0x62aad2=(_0x45ba43||0x0)/0x2,_0x4452f6=_0x43d528*Math['PI']/0xb4,_0x2a9c31=Math[_0x18fbd5(0xf3)](_0x4452f6),_0xe0e64e=Math[_0x18fbd5(0x291)](_0x4452f6),_0x5cac3d=_0x291aff-_0x38846e,_0x533dc1=_0x333015-_0x62aad2;_0x291aff=_0x38846e+(_0x5cac3d*_0x2a9c31-_0x533dc1*_0xe0e64e),_0x333015=_0x62aad2+(_0x5cac3d*_0xe0e64e+_0x533dc1*_0x2a9c31);}let _0x46bd9f={'x':_0x291aff,'y':_0x333015,'adjName':_0x4292d6[_0x18fbd5(0x1a1)]};this['_addShapeAdjustControl'](_0x2e3f1f,_0x46bd9f,_0x46bd9f[_0x18fbd5(0x1a1)],_0x48a89b,_0x412c05,this[_0x18fbd5(0x1de)],this[_0x18fbd5(0x285)]);}}[_0x541acc(0xed)](_0x26607b=!0x1){const _0x228b2c=_0x541acc;_0x26607b&&(this[_0x228b2c(0x2e0)](),this[_0x228b2c(0x293)](_0x26607b));}['_addShapeAdjustControl'](_0x262d9c,_0x2a152d,_0x390d5e,_0x5f52ab,_0x95fdd6,_0x20a6e4,_0x255a82){const _0x34183a=_0x541acc;if(!this[_0x34183a(0x26d)])return;let _0x366cf0=_0x262d9c[_0x34183a(0x13f)]('shape-adjust-point-'+this[_0x34183a(0x26d)]+'-'+_0x390d5e);if(_0x366cf0){_0x366cf0['transformByState']({'left':_0x2a152d['x']+_0x5f52ab-_0x1b524b[_0x34183a(0xdd)],'top':_0x2a152d['y']+_0x95fdd6-_0x1b524b['adjHandleSize']});return;}let _0xc28548={'left':_0x2a152d['x']+_0x5f52ab-_0x1b524b[_0x34183a(0xdd)],'top':_0x2a152d['y']+_0x95fdd6-_0x1b524b['adjHandleSize'],'adjName':_0x390d5e,'shapeId':this[_0x34183a(0x26d)],'unitId':_0x20a6e4,'subUnitId':_0x255a82,'width':_0x1b524b['adjHandleSize']+0x8,'height':_0x1b524b[_0x34183a(0xdd)]+0x8,'zIndex':_0x5cbc31+0x1,'evented':!0x0},_0x27fddc=new Nr(_0x34183a(0x1f0)+this[_0x34183a(0x26d)]+'-'+_0x390d5e,_0xc28548);this[_0x34183a(0x314)][_0x34183a(0x288)](_0x27fddc),this[_0x34183a(0x364)](_0x27fddc,_0x262d9c,_0x390d5e),_0x262d9c[_0x34183a(0x274)](_0x27fddc,_0x5cbc31+0x1);}[_0x541acc(0x2e0)](){const _0x300c44=_0x541acc;this[_0x300c44(0x314)][_0x300c44(0xf6)]!==0x0&&(this[_0x300c44(0x314)][_0x300c44(0x1ba)](_0x3ddf7e=>{const _0x2a9570=_0x300c44;_0x3ddf7e[_0x2a9570(0x1ae)]();}),this[_0x300c44(0x314)]=[]);}[_0x541acc(0x252)](){const _0xd6791d=_0x541acc;this[_0xd6791d(0x293)]();}[_0x541acc(0x216)](_0x43134b,_0x2c9a5c){const _0x36618f=_0x541acc;var _0x43ee6;let _0x86ddef={'x':0x0,'y':0x0};if(!_0x43134b||!_0x2c9a5c)return _0x86ddef;let _0xa40b3b=this[_0x36618f(0x232)]['getRenderUnitById'](_0x43134b);if(!_0xa40b3b||!_0xa40b3b[_0x36618f(0x320)](_0x3ea870)[_0x36618f(0x342)](_0x2c9a5c))return _0x86ddef;let _0x5cd6fe=_0xa40b3b[_0x36618f(0x320)](_0x2a747e),_0x11bf1b=_0x5cd6fe==null?void 0x0:_0x5cd6fe[_0x36618f(0x31e)]();if(!_0x11bf1b)return _0x86ddef;let _0x50c47a=(_0x43ee6=this['_univerInstanceService'][_0x36618f(0xca)](_0x43134b))==null?void 0x0:_0x43ee6[_0x36618f(0x10f)](_0x2c9a5c);if(!_0x50c47a)return _0x86ddef;let _0x511808=_0x1bffb4(_0x11bf1b[_0x36618f(0xc3)],_0x11bf1b['sheetViewStartColumn'],_0xa40b3b[_0x36618f(0x34c)],_0x50c47a);return _0x511808?{'x':_0x511808[_0x36618f(0x26a)],'y':_0x511808[_0x36618f(0x34d)]}:_0x86ddef;}[_0x541acc(0x16c)](_0x4a00c1,_0x3d63b2){const _0x38d81d=_0x541acc;var _0x161abb;let _0x35db72=(_0x161abb=this[_0x38d81d(0x35a)][_0x38d81d(0xca)](_0x4a00c1))==null?void 0x0:_0x161abb[_0x38d81d(0x10f)](_0x3d63b2);return(_0x35db72==null?void 0x0:_0x35db72[_0x38d81d(0x37b)]())??0x1;}[_0x541acc(0x364)](_0x25e02e,_0x4dc168,_0x34f891){const _0x2dc47e=_0x541acc;this[_0x2dc47e(0x328)](_0x183b07(_0x25e02e[_0x2dc47e(0x36a)][_0x2dc47e(0x1e2)]((_0x5eb87d,_0x516c83)=>{const _0x46ef04=_0x2dc47e;var _0x262dad,_0x557219,_0x37403d,_0x580f2b;let _0x4597a6=_0x25e02e[_0x46ef04(0x105)]();this[_0x46ef04(0xde)]=this[_0x46ef04(0xbb)](_0x4597a6['unitId'],_0x4597a6[_0x46ef04(0x32f)],_0x4597a6[_0x46ef04(0x162)],_0x34f891),this[_0x46ef04(0x113)]=this[_0x46ef04(0x1da)][_0x46ef04(0x29b)](_0x4597a6[_0x46ef04(0x2b7)],_0x4597a6['subUnitId'],_0x4597a6['drawingId']);let _0x1d45c7=this[_0x46ef04(0x1b6)][_0x46ef04(0xb2)]({'unitId':this[_0x46ef04(0x1de)],'subUnitId':this[_0x46ef04(0x285)],'drawingId':this['_activeShapeId']}),{transform:_0x2c71db}=_0x1d45c7;if(_0x2c71db){let {left:_0x5400e9,top:_0x515060,width:_0x5c19a0,height:_0x2497ff}=_0x2c71db;this[_0x46ef04(0x350)]=_0x5400e9||0x0,this[_0x46ef04(0x289)]=_0x515060||0x0,this[_0x46ef04(0x238)]=_0x5c19a0||0x0,this[_0x46ef04(0x17c)]=_0x2497ff||0x0;}let _0x331b4c=!!((_0x262dad=_0x1d45c7[_0x46ef04(0xc5)])!=null&&_0x262dad[_0x46ef04(0x269)]),_0x302e3b=!!((_0x557219=_0x1d45c7[_0x46ef04(0xc5)])!=null&&_0x557219['flipY']),_0x17e4c2=((_0x37403d=_0x1d45c7[_0x46ef04(0xc5)])==null?void 0x0:_0x37403d['angle'])||0x0;this['_isStartAdjusting']=!0x0,_0x4dc168[_0x46ef04(0x359)]();let _0x2fecdf={...((_0x580f2b=this[_0x46ef04(0xde)])==null?void 0x0:_0x580f2b['currentAdjustValues'])??{}};this[_0x46ef04(0x2c3)]=_0x4dc168['onPointerMove$']['subscribeEvent']((_0x179bcb,_0x574dc1)=>{const _0x9e9ea6=_0x46ef04;if(!this[_0x9e9ea6(0x217)])return;let {offsetX:_0x5f407e,offsetY:_0x41f46a}=_0x179bcb,_0x42cc93=this[_0x9e9ea6(0xde)];if(this[_0x9e9ea6(0x113)]&&_0x42cc93){_0x4dc168[_0x9e9ea6(0x359)](),_0x4dc168[_0x9e9ea6(0x336)](_0x419dad[_0x9e9ea6(0x21c)]);let _0x29e22d={'left':0x0,'top':0x0,'width':this[_0x9e9ea6(0x238)],'height':this['_baseShapeHeight']},_0x3c7268=this[_0x9e9ea6(0x216)](this[_0x9e9ea6(0x1de)],this['_subUnitId']),_0x51d999=this['_getZoomRatio'](this[_0x9e9ea6(0x1de)],this['_subUnitId']),_0x496a93=_0x5f407e/_0x51d999+_0x3c7268['x']-this[_0x9e9ea6(0x350)],_0x17750e=_0x41f46a/_0x51d999+_0x3c7268['y']-this[_0x9e9ea6(0x289)];if(_0x17e4c2!==0x0){let _0x2c3cae=this[_0x9e9ea6(0x238)]/0x2,_0x1dfc39=this[_0x9e9ea6(0x17c)]/0x2,_0x25d17f=_0x17e4c2*Math['PI']/0xb4,_0x451003=Math[_0x9e9ea6(0xf3)](_0x25d17f),_0x2e0dcb=Math[_0x9e9ea6(0x291)](_0x25d17f),_0x14199c=_0x496a93-_0x2c3cae,_0x548b93=_0x17750e-_0x1dfc39;_0x496a93=_0x2c3cae+(_0x14199c*_0x451003+_0x548b93*_0x2e0dcb),_0x17750e=_0x1dfc39+(-_0x14199c*_0x2e0dcb+_0x548b93*_0x451003);}_0x331b4c&&(_0x496a93=this[_0x9e9ea6(0x238)]-_0x496a93),_0x302e3b&&(_0x17750e=this[_0x9e9ea6(0x17c)]-_0x17750e);let _0x17e14a={'x':_0x496a93,'y':_0x17750e},_0x3a47ee=this['_activeShapeModel']['calcAdjValues'](_0x29e22d,_0x17e14a,_0x42cc93,_0x331b4c,_0x302e3b);if(Object[_0x9e9ea6(0x21a)](_0x3a47ee)[_0x9e9ea6(0xf6)]===0x0)return;for(let [_0x2955b4,_0x3294db]of Object[_0x9e9ea6(0x17b)](_0x3a47ee))this[_0x9e9ea6(0x113)]['setAdjustValueByName'](_0x2955b4,_0x3294db);this[_0x9e9ea6(0x113)][_0x9e9ea6(0x26b)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']});let _0xf80692=this[_0x9e9ea6(0x1b6)][_0x9e9ea6(0xb2)]({'unitId':_0x4597a6['unitId'],'subUnitId':_0x4597a6['subUnitId'],'drawingId':_0x4597a6[_0x9e9ea6(0x162)]});_0xf80692&&(this['_sheetDrawingShapeRenderController'][_0x9e9ea6(0x23e)](_0xf80692,_0x4dc168),this[_0x9e9ea6(0x27c)]=this[_0x9e9ea6(0x124)](_0x4597a6[_0x9e9ea6(0x2b7)],_0x4597a6[_0x9e9ea6(0x32f)],_0x4597a6[_0x9e9ea6(0x162)]),this[_0x9e9ea6(0x252)]());}_0x574dc1[_0x9e9ea6(0x1a5)]();}),this['_adjHandlerPointerUp']=_0x4dc168[_0x46ef04(0x2cc)][_0x46ef04(0x1e2)]((_0x5ddc69,_0x3672a5)=>{const _0x56f612=_0x46ef04;this[_0x56f612(0x2c3)][_0x56f612(0x1ab)](),this['_adjHandlerPointerUp'][_0x56f612(0x1ab)](),_0x4dc168[_0x56f612(0x2b3)]();let _0x1bc2a9=this[_0x56f612(0xde)];if(_0x1bc2a9){let _0x5615cf=_0x4597a6[_0x56f612(0x2b7)],_0x4f6f69=_0x4597a6[_0x56f612(0x32f)],_0x693a64=_0x4597a6[_0x56f612(0x162)],_0x3c64a5={};for(let _0x295d44 of Object[_0x56f612(0x21a)](_0x1bc2a9[_0x56f612(0x18a)])){var _0x107423;let _0x1c595c=(_0x107423=this[_0x56f612(0x113)])==null?void 0x0:_0x107423[_0x56f612(0x2c6)](_0x295d44);_0x1c595c!==void 0x0&&(_0x3c64a5[_0x295d44]=_0x1c595c);}Object[_0x56f612(0x21a)](_0x3c64a5)[_0x56f612(0xf6)]>0x0&&Dr(this[_0x56f612(0xdc)],_0x5615cf,_0x4f6f69,_0x693a64,{'oldShapeData':{'adjustValues':_0x2fecdf}},{'adjustValues':_0x3c64a5});}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x56f612(0x217)]=!0x1,_0x3672a5[_0x56f612(0x1a5)](),_0x4dc168[_0x56f612(0x375)]();}),_0x516c83['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x34792c=_0x541acc;let _0x233153=this[_0x34792c(0x35a)]['getCurrentTypeOfUnit$'](_0x35cbcc[_0x34792c(0x164)]);this[_0x34792c(0x328)](_0x233153[_0x34792c(0x261)](_0x4a21b4(_0x55a2a8=>_0x55a2a8?_0x55a2a8[_0x34792c(0x245)][_0x34792c(0x261)](_0x4a21b4(_0x3ef626=>{const _0x3e6237=_0x34792c;if(!_0x3ef626)return _0x2a9ebe;let _0x1f10e6=_0x55a2a8[_0x3e6237(0x1f1)](),_0x129322=this[_0x3e6237(0x232)][_0x3e6237(0x365)](_0x1f10e6),_0x245ceb=_0x129322==null?void 0x0:_0x129322[_0x3e6237(0x34c)];return _0x245ceb?_0x589e24(_0x245ceb):_0x2a9ebe;})):_0x2a9ebe))['subscribe'](_0x60735a=>{const _0x1aab36=_0x34792c;let _0x278fc8=_0x60735a[_0x1aab36(0x322)]();this[_0x1aab36(0x328)](_0x60735a[_0x1aab36(0x2af)]['subscribeEvent'](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x1aab36(0x328)](_0x278fc8['changeStart$'][_0x1aab36(0x36d)](_0x208751=>{const _0x2fcc6b=_0x1aab36;let {objects:_0x335b0d}=_0x208751;this[_0x2fcc6b(0x293)](),_0x335b0d!==null&&_0x335b0d['size']===0x1&&_0x335b0d[_0x2fcc6b(0x370)]()[_0x2fcc6b(0x2d4)]()[_0x2fcc6b(0x156)]instanceof J&&this[_0x2fcc6b(0x1be)](!0x0);})),this[_0x1aab36(0x328)](_0x278fc8['changing$'][_0x1aab36(0x36d)](()=>{const _0x46cebf=_0x1aab36;this[_0x46cebf(0x2b5)]&&this[_0x46cebf(0x2e0)]();})),this[_0x1aab36(0x328)](_0x60735a[_0x1aab36(0x2cc)][_0x1aab36(0x1e2)](()=>{const _0x26948=_0x1aab36;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x26948(0x1be)](!0x1),this['_createShapeAdjustControls']());})),this[_0x1aab36(0x328)](_0x278fc8[_0x1aab36(0x1f8)][_0x1aab36(0x36d)](()=>{const _0x5328b0=_0x1aab36;this[_0x5328b0(0x1de)]&&this[_0x5328b0(0x285)]&&this[_0x5328b0(0x26d)]&&this[_0x5328b0(0x1b6)][_0x5328b0(0xb2)]({'unitId':this[_0x5328b0(0x1de)],'subUnitId':this[_0x5328b0(0x285)],'drawingId':this['_activeShapeId']})&&(this[_0x5328b0(0x27c)]=this[_0x5328b0(0x124)](this[_0x5328b0(0x1de)],this[_0x5328b0(0x285)],this['_activeShapeId']),this['_updateAdjustControlPositions']());}));}));}[_0x541acc(0x34a)](){const _0x3d17ac=_0x541acc;this[_0x3d17ac(0x328)](this[_0x3d17ac(0xdc)][_0x3d17ac(0x1d2)](_0x429686=>{const _0x361e6f=_0x3d17ac;if(_0x429686['id']!==_0x2a1218['id'])return;let {unitId:_0x3342b8,subUnitId:_0x150fb1,shapeId:_0x4da2ee}=_0x429686[_0x361e6f(0x152)];_0x3342b8===this[_0x361e6f(0x1de)]&&_0x150fb1===this[_0x361e6f(0x285)]&&_0x4da2ee===this[_0x361e6f(0x26d)]&&this[_0x361e6f(0x25a)]();})),this[_0x3d17ac(0x328)](this[_0x3d17ac(0x1b6)][_0x3d17ac(0x169)][_0x3d17ac(0x36d)](_0x518db2=>{const _0x49fd5b=_0x3d17ac;if(_0x518db2['length']===0x1){let _0x3b44ef=_0x518db2[0x0];if(_0x3b44ef[_0x49fd5b(0x2e1)]===_0x4a245a[_0x49fd5b(0x1f9)]&&this[_0x49fd5b(0x35a)][_0x49fd5b(0x231)](_0x3b44ef[_0x49fd5b(0x2b7)])===_0x35cbcc[_0x49fd5b(0x164)]){this[_0x49fd5b(0x26d)]=_0x3b44ef[_0x49fd5b(0x162)];let {unitId:_0x36222a,subUnitId:_0x3e968d}=_0x3b44ef;this[_0x49fd5b(0x27c)]=this['_getShapeAdjustPointListById'](_0x36222a,_0x3e968d,this[_0x49fd5b(0x26d)]),this[_0x49fd5b(0x1de)]=_0x36222a,this[_0x49fd5b(0x285)]=_0x3e968d,this[_0x49fd5b(0x2e0)](),this['_createShapeAdjustControls']();return;}}this[_0x49fd5b(0x26d)]=null,this[_0x49fd5b(0x27c)]=void 0x0,this[_0x49fd5b(0x1de)]=null,this[_0x49fd5b(0x285)]=null,this[_0x49fd5b(0x2e0)]();})),this[_0x3d17ac(0x328)](this[_0x3d17ac(0x1b6)][_0x3d17ac(0x1a7)]['subscribe'](_0x247bcd=>{const _0x3acd5a=_0x3d17ac;if(_0x247bcd[_0x3acd5a(0xf6)]===0x1){var _0x2028d1;let _0x10be9b=_0x247bcd[0x0];((_0x2028d1=this[_0x3acd5a(0x1b6)][_0x3acd5a(0xb2)](_0x10be9b))==null?void 0x0:_0x2028d1[_0x3acd5a(0x2e1)])===_0x4a245a[_0x3acd5a(0x1f9)]&&this[_0x3acd5a(0xed)](!0x0);}})),this[_0x3d17ac(0x328)](this['_drawingManagerService'][_0x3d17ac(0x24f)][_0x3d17ac(0x36d)](_0x1c2a46=>{const _0x5d7605=_0x3d17ac;for(let _0xf6cf16 of _0x1c2a46)this[_0x5d7605(0x26d)]===_0xf6cf16[_0x5d7605(0x162)]&&(this[_0x5d7605(0x26d)]=null,this[_0x5d7605(0x27c)]=void 0x0,this[_0x5d7605(0x1de)]=null,this[_0x5d7605(0x285)]=null,this['_clearShapeAdjustControls']());}));}};Pr=X([Y(0x0,_0x5399a4),Y(0x1,_0x53ba9c(_0x27864b)),Y(0x2,_0x53ba9c(_0x22bed8)),Y(0x3,_0x53ba9c(Z)),Y(0x4,_0x43400d),Y(0x5,_0x2c496c)],Pr);const Fr={'id':_0x541acc(0xe6),'type':_0xf8f445[_0x541acc(0x325)],'handler':(_0x5b0483,_0x284aa4)=>{const _0x268773=_0x541acc;let _0x3f37c7=_0x5b0483[_0x268773(0x1e8)](_0x5399a4),_0x251681=_0x5b0483[_0x268773(0x1e8)](_0x22bed8),_0x2766e7=_0x5b0483['get'](Pr);if(_0x284aa4==null)return!0x0;if(_0x284aa4[_0x268773(0xf6)]>0x0){var _0x5a037a;let _0x24e2ff=(_0x5a037a=_0x251681[_0x268773(0x365)](_0x284aa4[0x0][_0x268773(0x2b7)]))==null?void 0x0:_0x5a037a[_0x268773(0x34c)];if(_0x24e2ff){let {unitId:_0x2a11c3,subUnitId:_0x2b47fa,drawingId:_0x43370a}=_0x284aa4[0x0],_0xbbe983=_0x191ead({'unitId':_0x2a11c3,'subUnitId':_0x2b47fa,'drawingId':_0x43370a},void 0x0),_0x38682c=_0x24e2ff[_0x268773(0x13f)](_0xbbe983);if(_0x38682c){var _0x4cd6b9;(_0x4cd6b9=_0x251681[_0x268773(0x365)](_0x284aa4[0x0][_0x268773(0x2b7)]))==null||(_0x4cd6b9=_0x4cd6b9[_0x268773(0x34c)][_0x268773(0x1d9)]())==null||_0x4cd6b9[_0x268773(0x2cf)](_0x38682c);}}_0x3f37c7[_0x268773(0x1f7)](_0x284aa4),_0x2766e7[_0x268773(0x1be)](!0x1);}return!0x0;}},Ir={'type':_0xf8f445['COMMAND'],'id':_0x541acc(0x317),'handler':async(_0x5ce4bd,_0x132ea2)=>{const _0x5e38b4=_0x541acc;let _0x3b94c6=_0x88a456(_0x5ce4bd[_0x5e38b4(0x1e8)](_0x43400d));if(!_0x3b94c6)return!0x1;let _0x1f3a37=_0x5ce4bd[_0x5e38b4(0x1e8)](_0x1f2e85)[_0x5e38b4(0x21b)]();if(!_0x1f3a37)return!0x1;let _0x51b80b=_0x5ce4bd[_0x5e38b4(0x1e8)](_0x2c496c),{unitId:_0x48931f,subUnitId:_0x1ad64b}=_0x3b94c6,{value:_0x37b703,enhanceParams:_0x215e93}=_0x132ea2,{range:_0x5485d5}=_0x1f3a37,_0x56efc1={'unitId':_0x48931f,'subUnitId':_0x1ad64b,'shapeType':_0x37b703,'range':_0x5485d5,'shapeId':_0x21450c()};if(_0x215e93){let _0x425991=_0x3fd6c6(_0x37b703),_0x4a7a88=_0x37b703===_0x29a3a1[_0x5e38b4(0x224)];_0x425991&&(_0x215e93['startArrow']||_0x215e93[_0x5e38b4(0x366)])&&(_0x56efc1['shapeData']={'ln':{'startArrow':_0x215e93[_0x5e38b4(0x2f7)]?{'type':_0x53c9fe[_0x5e38b4(0x126)],'size':_0x3c9364[_0x5e38b4(0x2a9)]}:void 0x0,'endArrow':_0x215e93['endArrow']?{'type':_0x53c9fe[_0x5e38b4(0x126)],'size':_0x3c9364['Large']}:void 0x0}}),_0x4a7a88&&(_0x215e93[_0x5e38b4(0x26f)]||_0x215e93['vertical'])&&(_0x56efc1[_0x5e38b4(0x290)]=_0xca2216({'fill':{'fillType':_0x1cd77e[_0x5e38b4(0x36e)],'color':_0x5e38b4(0xf4)},'isHorizontal':!!_0x215e93[_0x5e38b4(0x26f)],'stroke':{'lineStrokeType':_0x5164fc['SolidLine'],'width':0x1,'color':_0x5e38b4(0x219)}}));}let _0x509636=_0x51b80b[_0x5e38b4(0x319)](_0x506353['id'],_0x56efc1);return setTimeout(()=>{const _0xd8add0=_0x5e38b4;_0x51b80b[_0xd8add0(0x1b0)](Fr['id'],[{'unitId':_0x48931f,'subUnitId':_0x1ad64b,'drawingId':_0x56efc1['shapeId']}]);},0xc8),_0x509636;}},Lr='sheet.shape.edit.panel',Rr=_0x541acc(0x2a1),zr='sheet.shape.floating-toolbar',Br=_0x541acc(0x237),Vr=_0x407a8d('SHAPE_TEXT'),Hr=_0x541acc(0x1cb),Ur={'id':_0x541acc(0x30d),'type':_0xf8f445[_0x541acc(0x254)],'handler':(_0x490769,_0x58d650)=>{const _0x344115=_0x541acc;let _0x3d7122=_0x490769['get'](_0x450cf3),_0x20b270=_0x490769[_0x344115(0x1e8)](_0x5622d1),_0x4c5e67=_0x490769['get'](_0x43400d),_0x4004b8=_0x490769['get'](_0x2c496c);return _0x88a456(_0x4c5e67)?(_0x58d650==null?void 0x0:_0x58d650[_0x344115(0x156)])===_0x344115(0x1bf)?(_0x3d7122[_0x344115(0x1bf)](Rr),!0x0):(_0x3d7122[_0x344115(0x36f)]({'id':Rr,'header':{'title':_0x20b270['t'](_0x344115(0x1c0))},'children':{'label':Rr},'onClose':()=>{const _0x577a2d=_0x344115;_0x4004b8[_0x577a2d(0x319)](_0x46655b['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0xf8f445[_0x541acc(0x325)],'id':_0x541acc(0xec),'handler'(){return!0x0;}};function Gr(_0x4e65c2){const _0x351e09=_0x541acc;let _0x2b2644=_0x4e65c2[_0x351e09(0x1e8)](_0x5399a4)['getFocusDrawings'](),_0x4c30b3=_0x2b2644[_0x351e09(0xf6)]===0x1?_0x2b2644[0x0]:null;if(!_0x4c30b3||_0x4c30b3[_0x351e09(0x2e1)]!==_0x4a245a[_0x351e09(0x1f9)])return null;let _0x23058d=_0x4e65c2[_0x351e09(0x1e8)](_0x27864b),_0x4f7101=_0x23058d['getShapeTypeById'](_0x4c30b3[_0x351e09(0x2b7)],_0x4c30b3['subUnitId'],_0x4c30b3['drawingId']),_0x191ad1=_0x23058d['getShapeDataById'](_0x4c30b3['unitId'],_0x4c30b3[_0x351e09(0x32f)],_0x4c30b3[_0x351e09(0x162)]);return _0x4f7101===void 0x0||!_0x191ad1?null:{'drawing':_0x4c30b3,'shapeData':_0x191ad1,'shapeType':_0x4f7101};}const Kr={'id':_0x541acc(0xe7),'type':_0xf8f445[_0x541acc(0x325)],'handler':(_0x4f89df,_0x4f3afa)=>{const _0x1fb273=_0x541acc;let _0x3492d8=Gr(_0x4f89df),_0x3a7ef=_0x132d6c((_0x4f3afa==null?void 0x0:_0x4f3afa['presetId'])??(_0x4f3afa==null?void 0x0:_0x4f3afa[_0x1fb273(0x156)])??'');if(!_0x3492d8||!_0x3a7ef||_0x3a7ef[_0x1fb273(0x189)]!==_0x49a35b(_0x3492d8[_0x1fb273(0x290)]))return!0x1;let _0x411bdb=_0x31be7c(_0x3492d8[_0x1fb273(0x290)],_0x3a7ef);if(!_0x411bdb)return!0x1;let {drawing:_0x560b18}=_0x3492d8;return _0x4f89df[_0x1fb273(0x1e8)](_0x2c496c)[_0x1fb273(0x1b0)](K['id'],{'unitId':_0x560b18[_0x1fb273(0x2b7)],'subUnitId':_0x560b18['subUnitId'],'shapeId':_0x560b18[_0x1fb273(0x162)],'shapeData':_0x411bdb,'oldShapeJSON':{'oldShapeData':_0x3492d8[_0x1fb273(0x290)]}});}},qr={'id':_0x541acc(0x326),'type':_0xf8f445['OPERATION'],'handler':(_0x495691,_0x21369d)=>{const _0x4706ac=_0x541acc;let _0x326732=Gr(_0x495691),_0x254a98=(_0x21369d==null?void 0x0:_0x21369d[_0x4706ac(0x1e4)])??(_0x21369d==null?void 0x0:_0x21369d[_0x4706ac(0x156)]);if(!_0x326732||!_0x254a98||_0x3fd6c6(_0x326732[_0x4706ac(0x1e4)])||_0x3fd6c6(_0x254a98))return!0x1;let _0x2cf05b=_0x3062d3(_0x326732[_0x4706ac(0x290)],_0x254a98);if(!_0x2cf05b)return!0x1;let {drawing:_0x48611a}=_0x326732;return _0x495691['get'](_0x2c496c)[_0x4706ac(0x1b0)](K['id'],{'unitId':_0x48611a['unitId'],'subUnitId':_0x48611a[_0x4706ac(0x32f)],'shapeId':_0x48611a[_0x4706ac(0x162)],'shapeType':_0x254a98,'shapeData':_0x2cf05b,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x326732[_0x4706ac(0x1e4)],'oldShapeData':_0x326732[_0x4706ac(0x290)]}});}};let Q=class extends _0x50d788{constructor(_0x5ee51a,_0x441ac1){const _0x4cb985=_0x541acc;super(),this[_0x4cb985(0x2dd)]=_0x5ee51a,this[_0x4cb985(0x1b6)]=_0x441ac1,this[_0x4cb985(0x26c)](),this['_clipService'][_0x4cb985(0x1d6)](!0x0),this[_0x4cb985(0x328)]({'dispose':()=>this[_0x4cb985(0x2dd)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0xc7858e=_0x541acc;let _0x19227e=this[_0xc7858e(0x2dd)],_0x2d2988=new Map(),_0x4bec98=_0x19227e[_0xc7858e(0x194)]((_0x844d91,_0x306eaf,_0x4b5c03,_0x193578,_0x3e53a5)=>{const _0x5781b8=_0xc7858e;let _0x464586=_0x306eaf;if(_0x464586===_0x29a3a1[_0x5781b8(0x332)]||_0x306eaf===_0x5781b8(0x363))return!0x1;try{let _0x6e8dca=_0x2d2988[_0x5781b8(0x1e8)](_0x306eaf);return _0x6e8dca||(_0x6e8dca=new _0x1b9e21(_0x464586,_0x5781b8(0x1dd)+_0x306eaf),_0x2d2988[_0x5781b8(0x21f)](_0x306eaf,_0x6e8dca)),_0x6e8dca[_0x5781b8(0x31a)](),_0x3e53a5&&Object['keys'](_0x3e53a5)[_0x5781b8(0xf6)]>0x0&&_0x6e8dca[_0x5781b8(0x229)]({'adjustValues':_0x3e53a5},!0x0),_0x6e8dca['updateContext']({'width':_0x4b5c03,'height':_0x193578}),_0x6e8dca[_0x5781b8(0x31c)](_0x844d91,{'left':0x0,'top':0x0,'width':_0x4b5c03,'height':_0x193578});}catch{return!0x1;}});this[_0xc7858e(0x328)](_0x4bec98),this[_0xc7858e(0x328)]({'dispose':()=>_0x2d2988['clear']()});}['clipByShape'](_0x3ffe69,_0x44bc06,_0x24910e,_0x4c25df,_0x525f1e){const _0x16b823=_0x541acc;let _0x364b72=this[_0x16b823(0x1b6)][_0x16b823(0x13b)](_0x3ffe69,_0x44bc06);if(!_0x364b72[_0x24910e])return;let _0x4696ce={..._0x364b72[_0x24910e],'prstGeom':_0x4c25df,'adjustValues':_0x525f1e};this[_0x16b823(0x1b6)][_0x16b823(0x1fc)]([_0x4696ce]);}};Q=X([Y(0x0,_0x53ba9c(_0x178ea9)),Y(0x1,_0x53ba9c(_0x5399a4))],Q);const Jr=_0x541acc(0x146),Yr=_0x541acc(0x158);function Xr({onShapeClick:_0x1553e9,excludeGroups:_0x3c90e9}){const _0x2e01a5=_0x541acc;return _0x35a023(_0x471b6c,{'excludeGroups':_0x3c90e9,'onShapeClick':_0x1553e9,'scrollContainer':_0x2e01a5(0x2eb)});}function Zr(){const _0x4aec42=_0x541acc;let _0x4f1546=_0x445cf0(_0x5399a4),_0x504c18=_0x445cf0(Q);return _0x35a023(_0x5c2fb8,{'buttonLabel':_0x4aec42(0x282),'excludeGroups':[_0x118aec[_0x4aec42(0xdb)]],'onShapeClick':_0x3d95cd=>{const _0x1539b3=_0x4aec42;let _0x977578=_0x4f1546['getFocusDrawings']()['find'](_0x5c0185=>_0x5c0185[_0x1539b3(0x2e1)]===_0x4a245a[_0x1539b3(0x1a0)]);if(!_0x977578)return;let {unitId:_0x394590,subUnitId:_0x24eebb,drawingId:_0x180dca}=_0x977578;_0x504c18[_0x1539b3(0xcd)](_0x394590,_0x24eebb,_0x180dca,_0x3d95cd['type']);}});}function Qr(){const _0x5577d6=_0x541acc;let _0x5ec22d=_0x445cf0(_0x5399a4),_0x478e6d=_0x445cf0(Q);return _0x35a023(_0x5c2fb8,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x118aec[_0x5577d6(0xdb)]],'DropdownComponent':_0x506d2f,'onShapeClick':_0x49469e=>{const _0x1c7fc9=_0x5577d6;let _0x59b6c9=_0x5ec22d[_0x1c7fc9(0x28b)]()[_0x1c7fc9(0xfd)](_0x2702c3=>_0x2702c3['drawingType']===_0x4a245a[_0x1c7fc9(0x1a0)]);if(!_0x59b6c9)return;let {unitId:_0x1d184e,subUnitId:_0x38967a,drawingId:_0x3a1111}=_0x59b6c9;_0x478e6d['clipByShape'](_0x1d184e,_0x38967a,_0x3a1111,_0x49469e[_0x1c7fc9(0x189)]);}});}function $r(){const _0x50feff=_0x541acc;let _0x2755d7=_0x445cf0(_0x6cddf9),_0x3bc407=_0x445cf0(_0x5399a4),_0x18bfdd=_0x445cf0(_0x43400d),_0xd44012=_0x3bc407[_0x50feff(0x28b)]()[0x0],_0xd0f793=_0xd44012?_0x18bfdd['getUnitType'](_0xd44012['unitId']):void 0x0,_0x266126=_0xd0f793===_0x35cbcc['UNIVER_DOC']?_0x50feff(0x1eb):_0xd0f793===_0x35cbcc[_0x50feff(0x164)]?Yr:void 0x0,_0x45a22a=_0x266126?_0x2755d7['get'](_0x266126):void 0x0;return _0x45a22a?_0x35a023(_0x45a22a,{}):null;}function ei(){let _0x1f40ae=_0x445cf0(_0x2c496c);return _0x35a023(Xr,{'onShapeClick':_0x66b437=>{const _0x19632c=_0x5f19;_0x1f40ae[_0x19632c(0x1b0)](Ir['id'],{'value':_0x66b437['type'],'enhanceParams':{'endArrow':_0x66b437[_0x19632c(0x366)],'startArrow':_0x66b437[_0x19632c(0x2f7)],'horizontal':_0x66b437[_0x19632c(0x26f)],'vertical':_0x66b437['vertical']}});}});}function ti(){return _0x35a023(ei,{});}function ni(_0x1002a9){const _0x20b818=_0x541acc;let _0x4d54ba=_0x1002a9[_0x20b818(0x1e8)](_0x43400d);return{'id':Ir['id'],'type':_0x2d43f9[_0x20b818(0x2f6)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x20b818(0x301),'tooltip':_0x20b818(0x2ba),'activated$':_0x1bbe6f(_0x4d54ba,!0x1,()=>new _0x1f2ab7(_0xa6a9e1=>{const _0x1e9d01=_0x20b818;_0xa6a9e1[_0x1e9d01(0x2d4)](!0x1);})),'hidden$':_0x1a4e26(_0x1002a9,_0x35cbcc[_0x20b818(0x164)]),'disabled$':_0x565f5e(_0x1002a9)};}function _0x5f19(_0x5498cb,_0x27fb14){_0x5498cb=_0x5498cb-0xae;const _0x1e3010=_0x1e30();let _0x5f19df=_0x1e3010[_0x5498cb];return _0x5f19df;}function ri(_0x473c0b){const _0x4b04c5=_0x541acc;let _0x148365=_0x473c0b[_0x4b04c5(0x1e8)](_0x43400d);return{'id':Ur['id'],'type':_0x2d43f9[_0x4b04c5(0x1ee)],'icon':_0x4b04c5(0x19c),'title':'sheets-shape-ui.objectListPanel.open','tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x1bbe6f(_0x148365,!0x1,()=>new _0x1f2ab7(_0x2036da=>{const _0x5e9f9d=_0x4b04c5;_0x2036da[_0x5e9f9d(0x2d4)](!0x1);})),'hidden$':_0x1a4e26(_0x473c0b,_0x35cbcc[_0x4b04c5(0x164)]),'disabled$':_0x565f5e(_0x473c0b)};}const ii=_0x541acc(0x335),ai=_0x541acc(0x11d);function oi(_0x5f185a){const _0x4774c6=_0x541acc;let _0x332c44=_0x5f185a[_0x4774c6(0x1e8)](_0x5399a4)[_0x4774c6(0x28b)]();return _0x332c44[_0x4774c6(0xf6)]===0x1&&_0x332c44[0x0]['drawingType']===_0x4a245a['DRAWING_SHAPE']?_0x332c44[0x0]:null;}function si(_0x5295c1){const _0x2a0b8e=_0x541acc;let _0x5b9faa=_0x5295c1[_0x2a0b8e(0x1e8)](_0x5399a4);return _0x5b9faa[_0x2a0b8e(0x169)]['pipe'](_0x5d81a0(_0x5b9faa[_0x2a0b8e(0x28b)]()),_0x5ebe2d(_0x4614ae=>_0x4614ae[_0x2a0b8e(0xf6)]!==0x1||_0x4614ae[0x0][_0x2a0b8e(0x2e1)]!==_0x4a245a[_0x2a0b8e(0x1f9)]));}function ci(_0x3dcf7b){const _0x942129=_0x541acc;return{'id':ii,'commandId':_0x22d960['id'],'type':_0x2d43f9['BUTTON'],'title':_0x942129(0x345),'tooltip':_0x942129(0x345),'icon':_0x942129(0x1cc),'hidden$':si(_0x3dcf7b),'params':()=>{const _0x216dd5=_0x942129;let _0x4fdc73=oi(_0x3dcf7b);return _0x4fdc73?{'unitId':_0x4fdc73[_0x216dd5(0x2b7)],'subUnitId':_0x4fdc73[_0x216dd5(0x32f)],'shapeId':_0x4fdc73['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0x37662d){const _0x56b88e=_0x541acc;return{'id':ai,'commandId':_0x22d960['id'],'type':_0x2d43f9[_0x56b88e(0x1ee)],'title':_0x56b88e(0x29d),'tooltip':_0x56b88e(0x29d),'icon':_0x56b88e(0x182),'hidden$':si(_0x37662d),'params':()=>{const _0x299a26=_0x56b88e;let _0x38dd27=oi(_0x37662d);return _0x38dd27?{'unitId':_0x38dd27[_0x299a26(0x2b7)],'subUnitId':_0x38dd27['subUnitId'],'shapeId':_0x38dd27[_0x299a26(0x162)],'flipV':!0x0}:void 0x0;}};}const ui='sheets-shape-ui.shape-format.quick-style-gallery',di=_0x541acc(0xe8),fi=_0x541acc(0x15a),pi=_0x541acc(0x11f);function mi(){let _0x1a5169=_0x445cf0(_0x2c496c),_0x2b31c6=_0x445cf0(_0x5399a4),_0xdb823=_0x445cf0(_0x27864b),_0x17fbf1=()=>{const _0x1194ac=_0x5f19;var _0x347ca5;let _0x14af07=_0x2b31c6[_0x1194ac(0x28b)]();if(_0x14af07[_0x1194ac(0xf6)]!==0x1||((_0x347ca5=_0x14af07[0x0])==null?void 0x0:_0x347ca5['drawingType'])!==_0x4a245a[_0x1194ac(0x1f9)])return null;let {unitId:_0x57eaf4,subUnitId:_0x231ab7,drawingId:_0x41cc6}=_0x14af07[0x0],_0x4b8849=_0xdb823[_0x1194ac(0x16d)](_0x57eaf4,_0x231ab7,_0x41cc6),_0xaeb676=_0xdb823['getShapeDataById'](_0x57eaf4,_0x231ab7,_0x41cc6);return _0x4b8849===void 0x0||!_0xaeb676?null:{'unitId':_0x57eaf4,'subUnitId':_0x231ab7,'drawingId':_0x41cc6,'shapeType':_0x4b8849,'shapeData':_0xaeb676};},_0x52b083=_0x25afa3(()=>new _0x1f2ab7(_0x3ec654=>{const _0x5d9ef2=_0x5f19;let _0x574203=()=>_0x3ec654[_0x5d9ef2(0x2d4)](_0x17fbf1()),_0x30e898=_0x2b31c6[_0x5d9ef2(0x169)][_0x5d9ef2(0x36d)](_0x574203),_0x38f42a=_0x1a5169[_0x5d9ef2(0x1d2)](_0x3b6951=>{_0x3b6951['id']===_0x2a1218['id']&&_0x574203();});return _0x574203(),()=>{const _0x289736=_0x5d9ef2;_0x30e898[_0x289736(0x1ab)](),_0x38f42a[_0x289736(0x1ae)]();};}),_0x17fbf1(),!0x1,[_0x1a5169,_0x2b31c6,_0xdb823]);return{'selection':_0x52b083,'updateShapeData':_0x474eba=>{const _0x3da46d=_0x5f19;_0x52b083&&Dr(_0x1a5169,_0x52b083[_0x3da46d(0x2b7)],_0x52b083[_0x3da46d(0x32f)],_0x52b083[_0x3da46d(0x162)],{'oldShapeData':_0x52b083[_0x3da46d(0x290)]},_0x474eba);}};}function hi(){const _0x9cb33e=_0x541acc;let {selection:_0x58aa7d,updateShapeData:_0x5826a7}=mi();return _0x58aa7d?_0x35a023(_0x2aace6,{'shapeData':_0x58aa7d[_0x9cb33e(0x290)],'shapeType':_0x58aa7d['shapeType'],'onUpdateShapeData':_0x5826a7}):null;}function gi(){const _0x53a343=_0x541acc;let _0x4f6790=_0x445cf0(_0x2c496c),_0x506d51=_0x445cf0(_0x5622d1),{selection:_0x2ff2cd}=mi();return _0x2ff2cd?_0x35a023(_0x4cdcdf,{'type':_0x49a35b(_0x2ff2cd[_0x53a343(0x290)]),'ariaLabel':_0x506d51['t'](_0x53a343(0x2ce)),'activePresetId':_0x3e003e(_0x2ff2cd[_0x53a343(0x290)]),'onSelect':_0x523216=>_0x4f6790[_0x53a343(0x1b0)](Kr['id'],{'presetId':_0x523216})}):null;}function _i(){let {selection:_0x172232,updateShapeData:_0x1e163c}=mi();return _0x172232?_0x35a023(_0x5c9580,{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x172232['shapeData'],'onUpdateShapeData':_0x1e163c}):null;}function vi(){const _0x57549a=_0x541acc;var _0x7edfeb;let {selection:_0x5e9fab,updateShapeData:_0x2f6a1e}=mi(),_0x260a24=_0x3f2655({'hostType':_0x35cbcc[_0x57549a(0x164)],'unitId':(_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x2b7)])??'','subUnitId':(_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x32f)])??'','shapeId':(_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x162)])??'','shapeData':_0x5e9fab==null?void 0x0:_0x5e9fab[_0x57549a(0x290)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x57549a(0x1dc),'onUpdateBinding':_0x4d5aaf=>_0x2f6a1e({'formulaBinding':_0x4d5aaf})}),_0x5367c3=((_0x7edfeb=_0x260a24['extensionGroups'])==null?void 0x0:_0x7edfeb['flatMap'](_0x393ae4=>_0x393ae4[_0x57549a(0x20d)])[_0x57549a(0x305)](_0xa3f457=>_0xa3f457['visible']!==!0x1))??[];return _0x5e9fab!=null&&_0x5e9fab[_0x57549a(0x290)][_0x57549a(0xbe)]?_0x35a023(_0x173d19,{'actions':_0x5367c3,'panel':_0x260a24[_0x57549a(0xfe)]}):null;}function _0x1e30(){const _0x44cd82=['next','contentVerticalOffset','sheets-shape-ui.ribbon.shape-format.arrange-forward','_disposePopups','REMOVE','shape-editor-ui.arrange.forward','fill','resize','_baseDrawingRect','_clipService','2pJZjRz','shapeKey','_clearShapeAdjustControls','drawingType','getPermissionPoint','error','drawing-ui.objectListPanel.dragToReorder','fillImageSourceType','gradientEndColor','create','_transformCalculateSrcRect','animateFormulaPresentation','getEndConnectInfo','parent','strokeWidth','_isOpenedShapeEditPanel','top-center','707760LfbJYJ','_baseLeft','top','_urlImageService','clip-adj-','_shapeFormulaService','INSERT','SELECTOR','startArrow','_applyFormulaAutoFitSize','isMainScene','srcRect','_addShapeConnectorHandlerObject','getSheetId','getDrawingEditable','getPresentation','makeDirty','restore','ShapeIcon','index','clipTop','getBatchAddOp','filter','_attachConnectorObjectEvent','RIBBON','refreshShapeFillImage','onDblclick$','getVisible','image','_sidebarService','sheet.operation.open-shape-object-list-panel','function','_updateSrcRectByTransform','targetShapeId','_contextService','_moveConnectorWithShape','worldPoints','_shapes','prstGeom','_formulaAnimation','sheet.command.menu-insert-shape','drawing-ui.objectListPanel.collapse','syncExecuteCommand','clearAdjustValue','_insertShapes','buildClipPath','calcAdjValues','getCurrentScrollState','shapeModel','with','getConnectionInfo','getTransformerByCreate','sheets-shape-ui.ribbon.shape-format.arrange-back','_currentScene','OPERATION','sheet.operation.update-shape-type','onReady','disposeWithMe','_highlightedSiteIndex','_drawingType','registerCommand','_sidebarDisposable','symbol','_adjHandlerPointerUp','subUnitId','skeleton','_openShapeEditPanel','None','getEditing','indexOf','sheet.menu.shape.flip-horizontal','setCursor','sheetTransform','setCollapsedIds','includes','calculate','_sheetDrawingShapeRenderController','sheets-shape-ui.formatShape','_drawSimpleText','setFormulaPresentation','redo','isDrawingObject','_index','getSkeleton','_sheetShapeAdjustController','_editingParams$','sheets-shape-ui.flipHorizontal','_update','drawing-ui.objectListPanel.hideAll','order','name','_registerDrawingFocusChangeHandler','toPrimitive','scene','viewportScrollY','_cxtHandlerPointerMove','setHighlighted','_baseShapeLeft','getShapeData','setEditing','drawing-ui.objectListPanel.empty','_getImageDrawingInfo','isEditing','idMap','getInverseCoord','_createCopyInfoByRange','disableObjectsEvent','_univerInstanceService','StraightConnector1','height','onSteady','_handleConnectorPointerUp','adjustValues','_setTransForm','_initEvents','onerror','custom','_attachAdjustEvent','getRenderUnitById','endArrow','sheet.operation.close-sheet-shape-format-panel','cancelEditing','asObservable','onPointerDown$','_loadShapePictureFill','getParent','subscribe','SolidFill','open','values','clip','_sheetPermissionCheckController','fromChangeset','FromArray','enableObjectsEvent','_sheetSkeletonService','_commandExecutedListener','2552065kZGiXs','getBatchRemoveOp','front','getZoomRatio','MoveDownIcon','_shapeId','draw','worldPoint','prstGeomAdjValues','SheetShapeTextEditorContainer','permissionPointUpdate$','drawWith','getDrawingByParam','sectionFloating','_connectionSiteObjects','add','_clearCompletionFrame','getScene','_executeConnectionCommand','_currentConnectionTarget','4049542RXoDmX','_getShapeAdjustInfosById','rotation','showContextualTab','formulaBinding','_closeShapeEditPanel','_initPrinting','localeService','drawing-ui.objectListPanel.unlockAll','sheetViewStartRow','drawing-ui.objectListPanel.details','transform','_findShapeAtPoint','hideInfoPopup','actualHeight','updateDocumentDataMargin','getUnit','_sheetCanvasPopManagerService','shape-editor-ui.toolbar.quickStyles','clipByShape','transformVector2SceneCoord','angle','_initSheetChange','classType','#1a73e8','fontSize','abs','_isDrawingShapePointDown','componentKey','_currentUniverService','getConnectorLinePoints','23577444dWSTqk','getOwnPropertyDescriptor','Line','_commandService','adjHandleSize','_activeAdjustInfo','connector-handler-','interceptCommand','drawing-ui.objectListPanel.unlock','getConnectionRelation','_popupMenuListener','presentationChanged$','registerFeatureMenu','drawing.operation.set-drawing-active','sheet.operation.apply-shape-quick-style','sheets-shape-ui.shape-format.style-ribbon-control','_registerDrawingMoveHandler','sqrt','_activeImageId','sheet.operation.open-sheet-shape-format-panel','_updateShapeAdjustControls','viewBound','lineType','_baseTop','drawing-ui.objectListPanel.search','pluginName','cos','#FFFFFF','blockExecuteWithoutPermission','length','mode','UPDATE','axisAlignSheetTransform','changeStart$','localToWorld','getConnectionSiteList','find','panel','_shapeService','_config','drawing-ui.objectListPanel.expand','version','end','shape-editor-ui.arrange.front','getDrawingSearch','drawing-ui.objectListPanel.lockHint','sheets-shape-ui','updateConnectionDetection','_sheetInterceptorService','VIEW_MAIN_LEFT','setOnSavingEditorData','selectable','getInterceptPoints','_hasReset','getSheetBySheetId','_clearConnectionSites','visible$','computeStraightConnectorLayout','_activeShapeModel','_clearFocusedShape','isInGroup','_handleConnectedEndpointMove','initShapePopupMenu','TopmostIcon','save','startY','constructor','_activeAdjustPointList','sheet.menu.shape.flip-vertical','presentation','sheets-shape-ui.shape-format.formula-ribbon-control','CUT','getObject','src','default','_getShapeAdjustPointListById','_executeResizeCommand','Arrow','permissionCheckWithoutRange','backward','clearAdjustControls','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','VIEW_MAIN_TOP','some','applyPoint','setConfig','sheets-shape-ui.ribbon.shape-format.arrange-front','from','_sheetClipboardService','URL','stroke','setAdjustValueByName','_registerOperations','getBasicShapeRelation','_drawShapeText','drawing-ui.objectListPanel.noSelection','_clearPopups','shape-editor-ui.toolbar.changeShape','getDrawingData','_canEdit','sheet.operation.open-mobile-shape-editor','sheets-shape-ui.ribbon.shape-format.formula-control','getObjectIncludeInGroup','clone','_imageIoService','stringify','flipY','PictureFill','canvasElement','sheet.shape.picker.component','getCurrentSkeleton','UUID','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.hide','_permissionService','div','debounceRefreshControls','popup','onStarting','_renderWithCache','sheetViewStartColumn','params','pick','_componentManager','_addShapeConnectorHandlerObjects','value','_injector','sheet.image-clip.shape-picker.component','sheets-shape-ui.deleteShape','sheets-shape-ui.shape-format.text-ribbon-control','drawing-ui.objectListPanel.lock','packageName','_hide','_sheetDrawingService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','setPrstGeomAdjValues','_registerGroupFeaturePasteHook','drawingId','_menuManagerService','UNIVER_SHEET','sheets-shape-ui.ribbon.shape-format.arrange-backward','doc','updateShapeFillImage','getBatchUpdateOp','focus$','getStartConnectInfo','_drawRichTextLayer','_getZoomRatio','getShapeTypeById','drawing-ui.objectListPanel.showAll','_isConnecting','string','multiply','point','_getConnectionSiteAngle','undo','visible','setPrstGeom','_releaseRenderCache','unregister','_baseHeight','computeConnectorResizeLayout','entries','_baseShapeHeight','registerFeaturePasteHook','shapeText','title','isRichText','decorate','FlipVerticalIcon','_copyInfo','canvas','invert','scale','defineProperty','setFallbackVisible','type','currentAdjustValues','start','drawing-ui.objectListPanel.descriptionPlaceholder','getBentTypeFromPoints','startConnectionDetection','hidden','_transform','refreshFormulaPresentation','drawing-ui.objectListPanel.typeNames.','_initSelection','registerClipDelegate','_groupCopyPasteController','getAdjustNames','onRendered','worldRect','univer-box-border\x20univer-px-4\x20univer-text-sm','extensionGroups','cxnPointRadius','ObjectLayersIcon','_initEditingParams','getState','_generateCutPasteMutations','DRAWING_IMAGE','adjName','getImage','_shapeUpdateListener','drawing-ui.objectListPanel.sectionFloating','stopPropagation','MEDIA','update$','sheets-shape-text-','_registerMoveHandler','VIEW_MAIN','unsubscribe','LEFT','sheets-shape-ui.editShape','dispose','_shapeTextEditingService','executeCommand','forward','extraProps','_clearShapeConnectorHandlerObjects','style','call','_drawingManagerService','hasDefault','getRealBound','drawing-ui.objectListPanel.nameInput','forEach','_initMenu','_cxtHandlerPointerUp','has','setShouldShowAdjust','close','sheets-shape-ui.objectListPanel.title','SHEET','_completionFrame','_connectorObjects','transformForAngle','setContextValue','fillImageSource','highlighted','_sheetPrintInterceptorService','adjHandleStroke','getCurrentUnitOfType','sheet.shape.text.float-menu','FlipHorizontalIcon','getDrawingOKey','_isHighlighted','adjHandleFill','PRINTING_COMPONENT_COLLECT','Path','onCommandExecuted','setShapeProps','isHit','cxnPointStrokeWidth','setCanUseShapeClip','left','ancestorTransform','getTransformer','_sheetsShapeService','_getImagePrstGeom','bottom','clip-','_unitId','sheets-shape-ui.config','updateLinePoints','add$','subscribeEvent','offsetY','shapeType','_activeShapeInfo','offsetX','refreshTransform','get','OTHERS','onSavingEditorData$','doc.image-clip.shape-picker.component','_handleFreeEndpointMove','delete','BUTTON','getDrawingPoints','shape-adjust-point-','getUnitId','getActiveViewportByCoord','translateWithPrecision','getAutoFitPresentations','prototype','_drawingAddListener','focusDrawing','changeEnd$','DRAWING_SHAPE','mergeMenu','drawing-ui.objectListPanel.name','featurePluginUpdateNotification','onTransformChange$','_shapeFloatingToolbarService','getContextValue','sheets-shape-ui.ribbon.shape-format.style-control','image-clip-adjust-point-','_getDrawingRect','_drawRichText','editingParams$','BottomIcon','setFillImage','getImageSourceCache','_init','_initCommands','_resetState','wrapStrategy','unit','actions','_loadAndSetImage','shape-editor-ui.arrange.back','getSkeletonParam','getShapeTextData','cxnIndex','iterator','dataModel','translate','_getScrollInfo','_isStartAdjusting','onload','#bcbcbc','keys','getCurrentLastSelection','CROSSHAIR','resolveHyperLinkAt','copyId','set','_visible','cxnPointStroke','getDrawingOrder','DRAWING','Rect','isArray','_context','drawing-ui.objectListPanel.filterHidden','SHAPE','setShapeData','getAdjustInfoByName','clipHeight','oKey','completeEditing','normal','trim','_handleFreeEndpointPointerUp','getUnitType','_renderManagerService','startX','registerRenderModule','_hyperLinkRegions','size','sheets-shape-ui.ribbon.shape-format','_baseShapeWidth','_registerComponents','_calculateFreeEndpointAngle','hideContextualTab','updateDocumentStyle','_insertingShapeKeys','renderDrawingShape','PaintIcon','_activeTargetShapeId','isLineShape','beginPath','_focusedDrawings','_formulaShapes','activeSheet$','isRenderLinePointsMode','_props','_updateTransform','pushUndoRedo','#4285f4','clear','register','_createControls','getMatrix','remove$','_getShapeInfo','_clearControls','_updateAdjustControlPositions','_isImagePointerDown','COMMAND','getCurrentTypeOfUnit$','8mmOwup','_initPermission','getShapeDataById','getShapeType','refreshAdjustControls','getDrawingDataForUnit','parse','attachPopupToObject','70106oOgWSL','_getOrCreateShapeModel','isStartConnectorPoint','pipe','TOP','_getConnectPointInfo','sheet.command.update-shape-data','object','shapeId','_registerFocusChangeHandler','_handleBasicShapeUpdateConnectorLineShape','flipX','viewportScrollX','updateContext','_registerImageShapeClipDelegate','_activeShapeId','transformByState','horizontal','9125712oMTsIQ','_addControl','_ribbonService','_draw','addObject','239676mEpPGm','setSrcRect','fillType','preValue','_lastEditingShapeKey','setPresentation','width','_activeShapeAdjustPointList','_sheetBasicShapeConnectionPointController','_formulaKey','_handleConnectedEndpointPointerUp','ang','map','sheets-shape-ui.imagePanel.crop.shape','_reset','_initialize','_subUnitId','getValue','MoveUpIcon','push','_baseShapeTop','removeLinePoints','getFocusDrawings','_initCopyPaste','_configService','getDrawingVisible','getCanvasElement','shapeData','sin','Image','_createShapeAdjustControls','_iconManager','_executeConnectedRouteResizeCommand','drawing-ui.objectListPanel.sectionCanvas','_targetShapeId','reverse','_isStartConnectorPoint','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeModel','complete','sheets-shape-ui.flipVertical','disableShapeOption','ShapeFormatSettingIcon','_onSavingEditorData$','sheet.shape.object-list.panel','drawing-ui.objectListPanel.moveForward','@univerjs-pro/sheets-shape-ui','objects','_localeService','animationEnabled','intercept','_shapeRenderController','Medium','_registerFeatureMenu','_shapePopupMenuDisposable','GROUP','relation','_findNearestConnectionSite','onPointerMove$','drawing-ui.objectListPanel.moveBackward','_shapeEditPanelVersion','_adjName','resetCursor','endConnectionDetection','_isShouldShowDrawingShapeAdjust','render','unitId','changing$','createControl$','sheets-shape-ui.insertShape','drawing-ui.objectListPanel.title','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','drawing-ui.objectListPanel.locate','_disposed','data','isHighlighted','isolated','changeShapeType','_adjHandlerPointerMove','contentHeight','_updateImageAdjValues','getAdjustValueByName','_draggingConnectorId','getDrawingEffectBounds','sheets-shape-ui.permission.editErr','clearControl$','interceptor','onPointerUp$','_getSceneAndTransformerByDrawingSearch','sheets-shape-ui.quickStyles','activeAnObject','_baseWidth','cxnPointFill','vertical-center','_cxnIndex'];_0x1e30=function(){return _0x44cd82;};return _0x1e30();}const yi=_0x541acc(0x200),bi='sheets-shape-ui.ribbon.shape-format.text-control',xi=_0x541acc(0x13e),Si=_0x541acc(0x2d6),Ci=_0x541acc(0x165),wi=_0x541acc(0x12f),Ti=_0x541acc(0x323);function Ei(_0x12cb0c){const _0x55112a=_0x541acc;let _0x25dafc=_0x12cb0c[_0x55112a(0x1e8)](_0x2c496c),_0x26c343=_0x12cb0c['get'](_0x5399a4),_0x3f7bba=_0x12cb0c[_0x55112a(0x1e8)](_0x27864b);return new _0x1f2ab7(_0x564c61=>{const _0xd7ed60=_0x55112a;let _0x5c159b=()=>{const _0x36bfa9=_0x5f19;let _0x6ac4a9=Di(_0x12cb0c),_0x47cda2=_0x6ac4a9?_0x3f7bba['getShapeDataById'](_0x6ac4a9[_0x36bfa9(0x2b7)],_0x6ac4a9[_0x36bfa9(0x32f)],_0x6ac4a9[_0x36bfa9(0x162)]):null;_0x564c61[_0x36bfa9(0x2d4)](_0x47cda2?_0x3e003e(_0x47cda2)??'':'');},_0x4da56c=_0x26c343[_0xd7ed60(0x169)][_0xd7ed60(0x36d)](_0x5c159b),_0x1eddc4=_0x25dafc['onCommandExecuted'](_0x3683be=>{_0x3683be['id']===_0x2a1218['id']&&_0x5c159b();});return _0x5c159b(),()=>{const _0x4a5484=_0xd7ed60;_0x4da56c[_0x4a5484(0x1ab)](),_0x1eddc4['dispose']();};});}function Di(_0x3b8f32){const _0x430400=_0x541acc;var _0x562755;let _0x4820cd=_0x3b8f32[_0x430400(0x1e8)](_0x5399a4)['getFocusDrawings']();return _0x4820cd[_0x430400(0xf6)]===0x1&&((_0x562755=_0x4820cd[0x0])==null?void 0x0:_0x562755['drawingType'])===_0x4a245a[_0x430400(0x1f9)]?_0x4820cd[0x0]:null;}function Oi(_0x37456b,_0x3583ad=!0x1){const _0x27aa71=_0x541acc;let _0x5b0b2d=_0x37456b[_0x27aa71(0x1e8)](_0x2c496c),_0x466544=_0x37456b[_0x27aa71(0x1e8)](_0x5399a4),_0x42dca7=_0x37456b[_0x27aa71(0x1e8)](_0x27864b);return new _0x1f2ab7(_0x7c9e8f=>{const _0x3c3235=_0x27aa71;let _0x4440ab=()=>{const _0x61ac12=_0x5f19;let _0x31353b=Di(_0x37456b);if(!_0x31353b){_0x7c9e8f['next'](!0x0);return;}let _0xb9a88f=_0x42dca7[_0x61ac12(0x258)](_0x31353b[_0x61ac12(0x2b7)],_0x31353b[_0x61ac12(0x32f)],_0x31353b[_0x61ac12(0x162)]);_0x7c9e8f['next'](!_0xb9a88f||_0x3583ad&&_0xb9a88f[_0x61ac12(0xbe)]==null);},_0x25ed43=_0x466544['focus$'][_0x3c3235(0x36d)](_0x4440ab),_0xc7d590=_0x5b0b2d[_0x3c3235(0x1d2)](_0x33def6=>{_0x33def6['id']===_0x2a1218['id']&&_0x4440ab();});return _0x4440ab(),()=>{const _0x4c01a8=_0x3c3235;_0x25ed43[_0x4c01a8(0x1ab)](),_0xc7d590[_0x4c01a8(0x1ae)]();};});}function ki(_0x736ad1){const _0x228a65=_0x541acc;let _0x56ac7b=_0x736ad1[_0x228a65(0x1e8)](_0x5399a4),_0x2d6f7f=_0x736ad1[_0x228a65(0x1e8)](_0x27864b);return _0x56ac7b[_0x228a65(0x169)]['pipe'](_0x5d81a0(_0x56ac7b[_0x228a65(0x28b)]()),_0x5ebe2d(()=>{const _0x20a391=_0x228a65;let _0x122997=Di(_0x736ad1),_0x1fee50=_0x122997?_0x2d6f7f[_0x20a391(0x16d)](_0x122997[_0x20a391(0x2b7)],_0x122997[_0x20a391(0x32f)],_0x122997[_0x20a391(0x162)]):void 0x0;return _0x1fee50===void 0x0||_0x3fd6c6(_0x1fee50);}));}function Ai(_0xffab19){const _0x5f4c0a=_0x541acc;return{'id':Kr['id'],'type':_0x2d43f9[_0x5f4c0a(0x2f6)],'icon':_0x5f4c0a(0x23f),'title':_0x5f4c0a(0xcc),'tooltip':_0x5f4c0a(0xcc),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0xffab19),'hidden$':Oi(_0xffab19)};}function ji(_0x32f5f1){const _0x1e6b29=_0x541acc;return{'id':qr['id'],'type':_0x2d43f9['SELECTOR'],'icon':'ShapeIcon','title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x1e6b29(0x13a),'slot':!0x0,'selections':[{'label':{'name':_0x2dcb96,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x32f5f1)};}function Mi(_0x1f4462,_0x409cd4,_0x15ebac=!0x1){const _0x4d76d4=_0x541acc;return _0x44a7c2=>({'id':_0x1f4462,'type':_0x2d43f9[_0x4d76d4(0x1ee)],'label':{'name':_0x409cd4,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x44a7c2,_0x15ebac)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x3e6412,_0x28d3fa,_0x788ebd,_0x21cea6){return _0x5cc014=>({'id':_0x3e6412,'commandId':_0x325252['id'],'type':_0x2d43f9['BUTTON'],'icon':_0x788ebd,'title':_0x21cea6,'tooltip':_0x21cea6,'hidden$':Oi(_0x5cc014),'params':()=>{const _0x5cc6c8=_0x5f19;let _0x4b91b4=Di(_0x5cc014);return _0x4b91b4?{'unitId':_0x4b91b4[_0x5cc6c8(0x2b7)],'subUnitId':_0x4b91b4['subUnitId'],'drawingIds':[_0x4b91b4[_0x5cc6c8(0x162)]],'arrangeType':_0x28d3fa}:void 0x0;}});}const Li=Ii(Si,_0x1256c6[_0x541acc(0x1b1)],_0x541acc(0x287),_0x541acc(0x2d9)),Ri=Ii(Ci,_0x1256c6[_0x541acc(0x128)],'MoveDownIcon','shape-editor-ui.arrange.backward'),zi=Ii(wi,_0x1256c6[_0x541acc(0x37a)],_0x541acc(0x118),_0x541acc(0x104)),Bi=Ii(Ti,_0x1256c6['back'],_0x541acc(0x205),_0x541acc(0x20f));function Vi(_0x48493a){const _0x472e65=_0x541acc;return{'id':Wr['id'],'type':_0x2d43f9['BUTTON'],'icon':_0x472e65(0x29f),'title':'sheets-shape-ui.formatShape','tooltip':_0x472e65(0x33c),'hidden$':Oi(_0x48493a),'params':()=>{const _0x1bd30e=_0x472e65;let _0x10ce0d=Di(_0x48493a);return _0x10ce0d?{'unitId':_0x10ce0d[_0x1bd30e(0x2b7)],'subUnitId':_0x10ce0d[_0x1bd30e(0x32f)],'drawingId':_0x10ce0d[_0x1bd30e(0x162)]}:void 0x0;}};}const Hi={[_0x4f409a[_0x541acc(0x307)]]:{[Br]:{'order':0x64,'title':_0x541acc(0x33c),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x359d72['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x4b28c5}}}}},Ui={[_0x4a2c7a[_0x541acc(0x1a6)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x4a2c7a[_0x541acc(0x1e9)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x1e73b1[_0x541acc(0x223)]]:{[_0x2db674['OTHERS']]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x541acc(0x2a3),Ki='1.3.0';const qi={'id':_0x541acc(0x13d),'type':_0xf8f445[_0x541acc(0x325)],'handler'(_0x5c678e,_0x236472){const _0x44bca2=_0x541acc;return _0x236472?(_0x5c678e[_0x44bca2(0x1e8)](_0x3f0626)[_0x44bca2(0x36f)](_0x236472[_0x44bca2(0xf7)],{'hostType':_0x35cbcc[_0x44bca2(0x164)],'shapeId':_0x236472[_0x44bca2(0x162)],'subUnitId':_0x236472[_0x44bca2(0x32f)],'unitId':_0x236472['unitId']}),!0x0):!0x1;}},Ji=_0x541acc(0x1df),Yi={};let Xi=class extends _0x50d788{constructor(_0x1dad0d,_0x314771,_0x480309,_0x4e36f9,_0x27d1ae){const _0xffa5=_0x541acc;super(),this[_0xffa5(0x226)]=_0x1dad0d,this[_0xffa5(0x1b6)]=_0x314771,this[_0xffa5(0x232)]=_0x480309,this['_univerInstanceService']=_0x4e36f9,this['_imageShapeClipController']=_0x27d1ae,q(this,'_activeImageId',null),q(this,'_unitId',null),q(this,_0xffa5(0x285),null),q(this,_0xffa5(0x11c),void 0x0),q(this,_0xffa5(0x314),[]),q(this,'_baseLeft',0x0),q(this,_0xffa5(0xf0),0x0),q(this,_0xffa5(0x2d0),0x0),q(this,_0xffa5(0x179),0x0),q(this,_0xffa5(0x217),!0x1),q(this,_0xffa5(0xde),void 0x0),q(this,_0xffa5(0x113),void 0x0),q(this,_0xffa5(0x2c3),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0xffa5(0x253),!0x1),this[_0xffa5(0x267)](),this[_0xffa5(0x1a9)]();}[_0x541acc(0x129)](){const _0x452fc0=_0x541acc;this[_0x452fc0(0x251)]();}[_0x541acc(0x25a)](){const _0x54357b=_0x541acc;this[_0x54357b(0x251)](),this['_createControls'](!0x0);}[_0x541acc(0x25f)](_0x95461a,_0x165293,_0x2f107a,_0x1fd24f){const _0x3a7c5a=_0x541acc;let _0x3440f8=_0x95461a;if(_0x3440f8!==_0x29a3a1['None']&&_0x95461a!==_0x3a7c5a(0x363))try{let _0x4b5df6=new _0x1b9e21(_0x3440f8,_0x3a7c5a(0x2f3)+_0x95461a);return _0x1fd24f&&_0x4b5df6[_0x3a7c5a(0x229)]({'adjustValues':_0x1fd24f},!0x0),_0x4b5df6['updateContext']({'width':_0x165293,'height':_0x2f107a}),_0x4b5df6;}catch{return;}}[_0x541acc(0x354)](_0x51c4fb,_0x52aa99,_0x362eec){const _0x3d5698=_0x541acc;let _0x817a66={'unitId':_0x51c4fb,'subUnitId':_0x52aa99,'drawingId':_0x362eec},_0xbfb44a=this[_0x3d5698(0x1b6)][_0x3d5698(0xb2)](_0x817a66);if(_0xbfb44a&&_0xbfb44a[_0x3d5698(0x2e1)]===_0x4a245a[_0x3d5698(0x1a0)])return _0xbfb44a;}[_0x541acc(0x1db)](_0x3b2def,_0x691458,_0x41b518){const _0x4bb94f=_0x541acc;let _0x575778=this[_0x4bb94f(0x232)][_0x4bb94f(0x365)](_0x3b2def);if(!_0x575778)return;let {scene:_0x6e14b8}=_0x575778,_0x1cce43=_0x191ead({'unitId':_0x3b2def,'subUnitId':_0x691458,'drawingId':_0x41b518}),_0x51f002=_0x6e14b8[_0x4bb94f(0x121)](_0x1cce43);if(_0x51f002 instanceof _0x101755){let _0x27940f=_0x51f002[_0x4bb94f(0x315)];if(_0x27940f)return{'prstGeom':_0x27940f,'adjustValues':_0x51f002['prstGeomAdjValues']};}}[_0x541acc(0x24d)](_0x3837e9=!0x1){const _0x2aa321=_0x541acc;if(!this['_unitId']||!this[_0x2aa321(0x285)]||!this[_0x2aa321(0xeb)])return;let _0x32f78f=this[_0x2aa321(0x232)][_0x2aa321(0x365)](this[_0x2aa321(0x1de)]);if(!_0x32f78f||!_0x32f78f['with'](_0x3ea870)[_0x2aa321(0x147)]())return;let {scene:_0x57904c}=_0x32f78f,_0x594a1f=this['_getImageDrawingInfo'](this[_0x2aa321(0x1de)],this['_subUnitId'],this[_0x2aa321(0xeb)]);if(!_0x594a1f)return;let {transform:_0x10b83b}=_0x594a1f;if(!_0x10b83b)return;let {left:_0x4ef93d,top:_0x2cc8cd,width:_0x229e08,height:_0x54bd33,flipX:_0x536225,flipY:_0x557446,angle:_0x595c5d=0x0}=_0x10b83b;if(_0x4ef93d===void 0x0||_0x2cc8cd===void 0x0)return;let _0xa3c3ee=this[_0x2aa321(0x1db)](this[_0x2aa321(0x1de)],this[_0x2aa321(0x285)],this[_0x2aa321(0xeb)]);if(!_0xa3c3ee)return;if(_0x3837e9){let _0x41c95e=this[_0x2aa321(0x25f)](_0xa3c3ee[_0x2aa321(0x315)],_0x229e08||0x0,_0x54bd33||0x0,_0xa3c3ee[_0x2aa321(0x35f)]);if(!_0x41c95e)return;this[_0x2aa321(0x11c)]=_0x41c95e[_0x2aa321(0x1ef)]();}let _0x1bc219=this['_activeAdjustPointList'];if(_0x1bc219&&_0x1bc219[_0x2aa321(0xf6)]!==0x0)for(let _0x3b66b8=0x0;_0x3b66b8<_0x1bc219['length'];_0x3b66b8++){let _0x5dfa8a=_0x1bc219[_0x3b66b8],_0x4fde6e=_0x5dfa8a['x'],_0x5e112c=_0x5dfa8a['y'];if(_0x536225&&(_0x4fde6e=(_0x229e08||0x0)-_0x4fde6e),_0x557446&&(_0x5e112c=(_0x54bd33||0x0)-_0x5e112c),_0x595c5d!==0x0){let _0x24a5f0=(_0x229e08||0x0)/0x2,_0x5bcae5=(_0x54bd33||0x0)/0x2,_0x72dfe5=_0x595c5d*Math['PI']/0xb4,_0x3b4329=Math[_0x2aa321(0xf3)](_0x72dfe5),_0x30ca05=Math[_0x2aa321(0x291)](_0x72dfe5),_0x6b6ab1=_0x4fde6e-_0x24a5f0,_0x818952=_0x5e112c-_0x5bcae5;_0x4fde6e=_0x24a5f0+(_0x6b6ab1*_0x3b4329-_0x818952*_0x30ca05),_0x5e112c=_0x5bcae5+(_0x6b6ab1*_0x30ca05+_0x818952*_0x3b4329);}let _0x17ad02={'x':_0x4fde6e,'y':_0x5e112c,'adjName':_0x5dfa8a['adjName']};this[_0x2aa321(0x271)](_0x57904c,_0x17ad02,_0x17ad02[_0x2aa321(0x1a1)],_0x4ef93d,_0x2cc8cd,this[_0x2aa321(0x1de)],this[_0x2aa321(0x285)]);}}[_0x541acc(0x271)](_0x5d423b,_0x3fe269,_0x3f131f,_0x31d420,_0x385bb9,_0x148a89,_0x11de96){const _0x5161cf=_0x541acc;if(!this[_0x5161cf(0xeb)])return;let _0x110171=_0x5161cf(0x201)+this[_0x5161cf(0xeb)]+'-'+_0x3f131f,_0x5d31b2=_0x5d423b[_0x5161cf(0x13f)](_0x110171);if(_0x5d31b2){_0x5d31b2[_0x5161cf(0x26e)]({'left':_0x3fe269['x']+_0x31d420-_0x1b524b[_0x5161cf(0xdd)],'top':_0x3fe269['y']+_0x385bb9-_0x1b524b[_0x5161cf(0xdd)]});return;}let _0xd43379=new Nr(_0x110171,{'left':_0x3fe269['x']+_0x31d420-_0x1b524b[_0x5161cf(0xdd)],'top':_0x3fe269['y']+_0x385bb9-_0x1b524b[_0x5161cf(0xdd)],'adjName':_0x3f131f,'shapeId':this['_activeImageId'],'unitId':_0x148a89,'subUnitId':_0x11de96,'width':_0x1b524b[_0x5161cf(0xdd)]+0x8,'height':_0x1b524b['adjHandleSize']+0x8,'zIndex':_0x5cbc31+0x1,'evented':!0x0});this[_0x5161cf(0x314)]['push'](_0xd43379),this[_0x5161cf(0x364)](_0xd43379,_0x5d423b,_0x3f131f),_0x5d423b[_0x5161cf(0x274)](_0xd43379,_0x5cbc31+0x1);}[_0x541acc(0x251)](){const _0x55c719=_0x541acc;this['_shapes'][_0x55c719(0xf6)]!==0x0&&(this[_0x55c719(0x314)]['forEach'](_0x1ed1e8=>_0x1ed1e8[_0x55c719(0x1ae)]()),this[_0x55c719(0x314)]=[]);}[_0x541acc(0x216)](_0x66f508,_0xe60fa){const _0x8dd905=_0x541acc;var _0x28ab32;let _0x501e14={'x':0x0,'y':0x0},_0x6b274c=this[_0x8dd905(0x232)][_0x8dd905(0x365)](_0x66f508);if(!_0x6b274c||!_0x6b274c['with'](_0x3ea870)[_0x8dd905(0x342)](_0xe60fa))return _0x501e14;let _0x498901=_0x6b274c[_0x8dd905(0x320)](_0x2a747e),_0x2a438c=_0x498901==null?void 0x0:_0x498901['getCurrentScrollState']();if(!_0x2a438c)return _0x501e14;let _0x52caab=(_0x28ab32=this[_0x8dd905(0x35a)][_0x8dd905(0xca)](_0x66f508))==null?void 0x0:_0x28ab32['getSheetBySheetId'](_0xe60fa);if(!_0x52caab)return _0x501e14;let _0x237ff2=_0x1bffb4(_0x2a438c[_0x8dd905(0xc3)],_0x2a438c[_0x8dd905(0x151)],_0x6b274c[_0x8dd905(0x34c)],_0x52caab);return _0x237ff2?{'x':_0x237ff2[_0x8dd905(0x26a)],'y':_0x237ff2[_0x8dd905(0x34d)]}:_0x501e14;}['_getZoomRatio'](_0x56e3a2,_0x2e98ad){const _0x1cc089=_0x541acc;var _0xda1d69;let _0x278690=(_0xda1d69=this[_0x1cc089(0x35a)][_0x1cc089(0xca)](_0x56e3a2))==null?void 0x0:_0xda1d69[_0x1cc089(0x10f)](_0x2e98ad);return(_0x278690==null?void 0x0:_0x278690['getZoomRatio']())??0x1;}[_0x541acc(0x364)](_0x5be351,_0x4c592e,_0x5ad9a6){const _0x392f3a=_0x541acc;this[_0x392f3a(0x328)](_0x183b07(_0x5be351[_0x392f3a(0x36a)]['subscribeEvent']((_0x4db9a3,_0x107f58)=>{const _0x43287f=_0x392f3a;var _0xa69781,_0x5114b3,_0x381505;let {unitId:_0x4f4f0b,subUnitId:_0x20dcc7,drawingId:_0xdf040f}=_0x5be351[_0x43287f(0x105)](),_0x521c93=this['_getImageDrawingInfo'](_0x4f4f0b,_0x20dcc7,_0xdf040f);if(!(_0x521c93!=null&&_0x521c93[_0x43287f(0xc5)]))return;let {left:_0x38c914,top:_0x5b55ca,width:_0x120ee1,height:_0x5bf1fe}=_0x521c93['transform'];this[_0x43287f(0x2f0)]=_0x38c914||0x0,this['_baseTop']=_0x5b55ca||0x0,this['_baseWidth']=_0x120ee1||0x0,this['_baseHeight']=_0x5bf1fe||0x0;let _0x1f5c77=!!((_0xa69781=_0x521c93[_0x43287f(0xc5)])!=null&&_0xa69781['flipX']),_0x4891f5=!!((_0x5114b3=_0x521c93[_0x43287f(0xc5)])!=null&&_0x5114b3[_0x43287f(0x143)]),_0x26ccde=((_0x381505=_0x521c93[_0x43287f(0xc5)])==null?void 0x0:_0x381505[_0x43287f(0xcf)])||0x0,_0x6f70a2=this['_getImagePrstGeom'](_0x4f4f0b,_0x20dcc7,_0xdf040f);if(!_0x6f70a2)return;let _0x346855=this[_0x43287f(0x25f)](_0x6f70a2[_0x43287f(0x315)],this[_0x43287f(0x2d0)],this[_0x43287f(0x179)],_0x6f70a2['adjustValues']);if(!_0x346855||(this[_0x43287f(0x113)]=_0x346855,this['_activeAdjustInfo']=_0x346855[_0x43287f(0x22a)](_0x5ad9a6),!this[_0x43287f(0xde)]))return;this[_0x43287f(0x217)]=!0x0,_0x4c592e['disableObjectsEvent']();let _0x4ce412=_0x6f70a2['prstGeom'];this['_adjHandlerPointerMove']=_0x4c592e[_0x43287f(0x2af)]['subscribeEvent']((_0x1535a1,_0x35c07e)=>{const _0x343d2a=_0x43287f;if(!this[_0x343d2a(0x217)])return;let {offsetX:_0x5d35cb,offsetY:_0x1320c9}=_0x1535a1,_0xeb4eca=this[_0x343d2a(0xde)];if(!this[_0x343d2a(0x113)]||!_0xeb4eca)return;_0x4c592e[_0x343d2a(0x359)](),_0x4c592e[_0x343d2a(0x336)](_0x419dad[_0x343d2a(0x21c)]);let _0x559d6e={'left':0x0,'top':0x0,'width':this[_0x343d2a(0x2d0)],'height':this[_0x343d2a(0x179)]},_0x30879e=this[_0x343d2a(0x216)](_0x4f4f0b,_0x20dcc7),_0x29dc6e=this[_0x343d2a(0x16c)](_0x4f4f0b,_0x20dcc7),_0x4d41df=_0x5d35cb/_0x29dc6e+_0x30879e['x']-this[_0x343d2a(0x2f0)],_0xeb0998=_0x1320c9/_0x29dc6e+_0x30879e['y']-this[_0x343d2a(0xf0)];if(_0x26ccde!==0x0){let _0x519504=this[_0x343d2a(0x2d0)]/0x2,_0x2c95ca=this[_0x343d2a(0x179)]/0x2,_0x43a1c8=_0x26ccde*Math['PI']/0xb4,_0x4d9257=Math[_0x343d2a(0xf3)](_0x43a1c8),_0x2e0dfd=Math['sin'](_0x43a1c8),_0x329529=_0x4d41df-_0x519504,_0x3f0e4d=_0xeb0998-_0x2c95ca;_0x4d41df=_0x519504+(_0x329529*_0x4d9257+_0x3f0e4d*_0x2e0dfd),_0xeb0998=_0x2c95ca+(-_0x329529*_0x2e0dfd+_0x3f0e4d*_0x4d9257);}_0x1f5c77&&(_0x4d41df=this[_0x343d2a(0x2d0)]-_0x4d41df),_0x4891f5&&(_0xeb0998=this[_0x343d2a(0x179)]-_0xeb0998);let _0x2bd02d=this['_activeShapeModel'][_0x343d2a(0x31d)](_0x559d6e,{'x':_0x4d41df,'y':_0xeb0998},_0xeb4eca,_0x1f5c77,_0x4891f5);if(Object[_0x343d2a(0x21a)](_0x2bd02d)[_0x343d2a(0xf6)]!==0x0){for(let [_0x3baf68,_0x1fb72b]of Object['entries'](_0x2bd02d))this['_activeShapeModel'][_0x343d2a(0x134)](_0x3baf68,_0x1fb72b);this['_activeShapeModel']['updateContext']({'width':this[_0x343d2a(0x2d0)],'height':this[_0x343d2a(0x179)]}),this['_updateImageAdjValues'](_0x4f4f0b,_0x20dcc7,_0xdf040f,_0x2bd02d),this[_0x343d2a(0x11c)]=this[_0x343d2a(0x113)][_0x343d2a(0x1ef)](),this[_0x343d2a(0x24d)](),_0x35c07e['stopPropagation']();}}),this['_adjHandlerPointerUp']=_0x4c592e[_0x43287f(0x2cc)][_0x43287f(0x1e2)]((_0x259ce4,_0x2a1ee7)=>{const _0x2ff1b1=_0x43287f;if(this[_0x2ff1b1(0x2c3)][_0x2ff1b1(0x1ab)](),this[_0x2ff1b1(0x32e)][_0x2ff1b1(0x1ab)](),_0x4c592e[_0x2ff1b1(0x2b3)](),this[_0x2ff1b1(0x113)]){let _0x3e2459=this[_0x2ff1b1(0x113)][_0x2ff1b1(0x196)](),_0x3915f6={};for(let _0x401433 of _0x3e2459){let _0x5e71a6=this[_0x2ff1b1(0x113)]['getAdjustValueByName'](_0x401433);_0x5e71a6!==void 0x0&&(_0x3915f6[_0x401433]=_0x5e71a6);}this['_imageShapeClipController']['clipByShape'](_0x4f4f0b,_0x20dcc7,_0xdf040f,_0x4ce412,_0x3915f6);}this[_0x2ff1b1(0xde)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x2ff1b1(0x217)]=!0x1,_0x2a1ee7[_0x2ff1b1(0x1a5)](),_0x4c592e['enableObjectsEvent']();}),_0x107f58[_0x43287f(0x1a5)]();})));}[_0x541acc(0x2c5)](_0x50dcde,_0x53c236,_0x398ca6,_0x1d679a){const _0x5e0a07=_0x541acc;let _0x5eebdf=this[_0x5e0a07(0x232)]['getRenderUnitById'](_0x50dcde);if(!_0x5eebdf)return;let {scene:_0x275113}=_0x5eebdf,_0x13a700=_0x191ead({'unitId':_0x50dcde,'subUnitId':_0x53c236,'drawingId':_0x398ca6}),_0x4adfa5=_0x275113[_0x5e0a07(0x121)](_0x13a700);if(_0x4adfa5 instanceof _0x101755){let _0x427913=_0x4adfa5[_0x5e0a07(0xae)]??{};_0x4adfa5[_0x5e0a07(0x160)]({..._0x427913,..._0x1d679a}),_0x4adfa5[_0x5e0a07(0x2ff)](!0x0);}}['_registerMoveHandler'](){const _0x556225=_0x541acc;let _0x260f2a=this[_0x556225(0x35a)][_0x556225(0x255)](_0x35cbcc[_0x556225(0x164)]);this[_0x556225(0x328)](_0x260f2a[_0x556225(0x261)](_0x4a21b4(_0x3d77b1=>_0x3d77b1?_0x3d77b1['activeSheet$'][_0x556225(0x261)](_0x4a21b4(_0x479d8f=>{const _0x589977=_0x556225;if(!_0x479d8f)return _0x2a9ebe;let _0x3d6953=_0x3d77b1[_0x589977(0x1f1)](),_0x23d4d=this[_0x589977(0x232)][_0x589977(0x365)](_0x3d6953),_0x4debbc=_0x23d4d==null?void 0x0:_0x23d4d['scene'];return _0x4debbc?_0x589e24(_0x4debbc):_0x2a9ebe;})):_0x2a9ebe))[_0x556225(0x36d)](_0x113eee=>{const _0x1ae05e=_0x556225;let _0x2f40c9=_0x113eee[_0x1ae05e(0x322)]();this[_0x1ae05e(0x328)](_0x113eee[_0x1ae05e(0x2af)][_0x1ae05e(0x1e2)](()=>{const _0xd73983=_0x1ae05e;this['_isImagePointerDown']&&this[_0xd73983(0x251)]();})),this[_0x1ae05e(0x328)](_0x2f40c9[_0x1ae05e(0xfa)][_0x1ae05e(0x36d)](_0x459d3e=>{const _0x1a6001=_0x1ae05e;let {objects:_0x8fa76e}=_0x459d3e;if(this[_0x1a6001(0x24d)](),_0x8fa76e!==null&&_0x8fa76e[_0x1a6001(0x236)]===0x1){let _0x39822d=_0x8fa76e[_0x1a6001(0x370)]()[_0x1a6001(0x2d4)]()[_0x1a6001(0x156)];_0x39822d instanceof _0x101755&&_0x39822d['prstGeom']&&(this[_0x1a6001(0x253)]=!0x0);}})),this[_0x1ae05e(0x328)](_0x2f40c9['changing$'][_0x1ae05e(0x36d)](()=>{const _0x347cbe=_0x1ae05e;this[_0x347cbe(0x253)]&&this[_0x347cbe(0x251)]();})),this[_0x1ae05e(0x328)](_0x113eee[_0x1ae05e(0x2cc)][_0x1ae05e(0x1e2)](()=>{const _0x5c8597=_0x1ae05e;this[_0x5c8597(0x253)]&&(this[_0x5c8597(0x253)]=!0x1,this[_0x5c8597(0x24d)]());})),this[_0x1ae05e(0x328)](_0x2f40c9[_0x1ae05e(0x1f8)][_0x1ae05e(0x36d)](()=>{const _0x420ba1=_0x1ae05e;if(this[_0x420ba1(0x1de)]&&this[_0x420ba1(0x285)]&&this[_0x420ba1(0xeb)]){let _0x943b57=this[_0x420ba1(0x1db)](this[_0x420ba1(0x1de)],this['_subUnitId'],this[_0x420ba1(0xeb)]);if(_0x943b57){var _0x396b04,_0x3896fa;let _0x6dfb0=this[_0x420ba1(0x354)](this['_unitId'],this[_0x420ba1(0x285)],this[_0x420ba1(0xeb)]),_0x482d6e=(_0x6dfb0==null||(_0x396b04=_0x6dfb0[_0x420ba1(0xc5)])==null?void 0x0:_0x396b04[_0x420ba1(0x27b)])||0x0,_0xa59447=(_0x6dfb0==null||(_0x3896fa=_0x6dfb0['transform'])==null?void 0x0:_0x3896fa[_0x420ba1(0x35c)])||0x0,_0x5e0bc5=this[_0x420ba1(0x25f)](_0x943b57[_0x420ba1(0x315)],_0x482d6e,_0xa59447,_0x943b57[_0x420ba1(0x35f)]);_0x5e0bc5&&(this['_activeAdjustPointList']=_0x5e0bc5[_0x420ba1(0x1ef)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}[_0x541acc(0x267)](){const _0x25a0ce=_0x541acc;this[_0x25a0ce(0x328)](this[_0x25a0ce(0x1b6)]['focus$'][_0x25a0ce(0x36d)](_0x631298=>{const _0x336da8=_0x25a0ce;if(_0x631298['length']===0x1){let _0x2a5d10=_0x631298[0x0];if(_0x2a5d10['drawingType']===_0x4a245a[_0x336da8(0x1a0)]){let {unitId:_0x561b6f,subUnitId:_0x3aabee,drawingId:_0x391a10}=_0x2a5d10,_0xb2eb4d=this[_0x336da8(0x1db)](_0x561b6f,_0x3aabee,_0x391a10);if(_0xb2eb4d){var _0x1eaed3,_0x2ee632;this[_0x336da8(0xeb)]=_0x391a10,this[_0x336da8(0x1de)]=_0x561b6f,this[_0x336da8(0x285)]=_0x3aabee;let _0x567574=this[_0x336da8(0x354)](_0x561b6f,_0x3aabee,_0x391a10),_0x509e95=(_0x567574==null||(_0x1eaed3=_0x567574[_0x336da8(0xc5)])==null?void 0x0:_0x1eaed3[_0x336da8(0x27b)])||0x0,_0x562987=(_0x567574==null||(_0x2ee632=_0x567574[_0x336da8(0xc5)])==null?void 0x0:_0x2ee632[_0x336da8(0x35c)])||0x0,_0x1bba5d=this['_getOrCreateShapeModel'](_0xb2eb4d[_0x336da8(0x315)],_0x509e95,_0x562987,_0xb2eb4d[_0x336da8(0x35f)]);_0x1bba5d&&(this[_0x336da8(0x11c)]=_0x1bba5d['getDrawingPoints']()),this[_0x336da8(0x251)](),this[_0x336da8(0x24d)](!0x0);}else this[_0x336da8(0x20a)]();}else this['_resetState']();}else this[_0x336da8(0x20a)]();})),this[_0x25a0ce(0x328)](this[_0x25a0ce(0x1b6)][_0x25a0ce(0x1a7)][_0x25a0ce(0x36d)](_0x2d2557=>{const _0x467e60=_0x25a0ce;if(_0x2d2557[_0x467e60(0xf6)]===0x1){let _0x4f1abb=_0x2d2557[0x0],_0xc8910e=this[_0x467e60(0x1b6)]['getDrawingByParam'](_0x4f1abb);(_0xc8910e==null?void 0x0:_0xc8910e[_0x467e60(0x2e1)])===_0x4a245a[_0x467e60(0x1a0)]&&this[_0x467e60(0xeb)]===_0x4f1abb[_0x467e60(0x162)]&&(this[_0x467e60(0x251)](),this[_0x467e60(0x24d)](!0x0));}})),this[_0x25a0ce(0x328)](this[_0x25a0ce(0x1b6)][_0x25a0ce(0x24f)][_0x25a0ce(0x36d)](_0x20e525=>{const _0x2b2c9b=_0x25a0ce;for(let _0x2f5496 of _0x20e525)this['_activeImageId']===_0x2f5496[_0x2b2c9b(0x162)]&&this[_0x2b2c9b(0x20a)]();}));}[_0x541acc(0x20a)](){const _0x5e0365=_0x541acc;this[_0x5e0365(0xeb)]=null,this[_0x5e0365(0x1de)]=null,this[_0x5e0365(0x285)]=null,this[_0x5e0365(0x11c)]=void 0x0,this[_0x5e0365(0x251)]();}};Xi=X([Y(0x1,_0x5399a4),Y(0x2,_0x53ba9c(_0x22bed8)),Y(0x3,_0x43400d),Y(0x4,_0x53ba9c(Q))],Xi);function Zi(_0x36c400){return _0x36c400['trim']()||void 0x0;}function Qi(_0xd1f20f,_0x3570f5,_0x206eb1){const _0x29b3fd=_0x541acc;var _0x3a025e;return((_0x3a025e=_0xd1f20f[_0x29b3fd(0x349)])==null?void 0x0:_0x3a025e[_0x29b3fd(0x22f)]())||_0x206eb1['t'](_0x29b3fd(0x192)+_0x346ac3(_0xd1f20f[_0x29b3fd(0x2e1)]))+'\x20'+(_0x3570f5+0x1);}function $i({PanelComponent:_0xcb4571=_0x43abaf}){const _0x1dfa36=_0x541acc;var _0xc615be;let _0x4647f5=_0x445cf0(_0x5622d1),_0x5d8082={'title':_0x4647f5['t'](_0x1dfa36(0x2bb)),'empty':_0x4647f5['t'](_0x1dfa36(0x353)),'showAll':_0x4647f5['t'](_0x1dfa36(0x16e)),'hideAll':_0x4647f5['t'](_0x1dfa36(0x347)),'lockAll':_0x4647f5['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x4647f5['t'](_0x1dfa36(0xc2)),'moveForward':_0x4647f5['t'](_0x1dfa36(0x2a2)),'moveBackward':_0x4647f5['t'](_0x1dfa36(0x2b0)),'close':_0x4647f5['t']('drawing-ui.objectListPanel.close'),'show':_0x4647f5['t']('drawing-ui.objectListPanel.show'),'hide':_0x4647f5['t'](_0x1dfa36(0x14a)),'lock':_0x4647f5['t'](_0x1dfa36(0x15b)),'unlock':_0x4647f5['t'](_0x1dfa36(0xe1)),'lockHint':_0x4647f5['t'](_0x1dfa36(0x106)),'unlockHint':_0x4647f5['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x4647f5['t'](_0x1dfa36(0x1fb)),'nameInput':_0x4647f5['t'](_0x1dfa36(0x1b9)),'description':_0x4647f5['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x4647f5['t'](_0x1dfa36(0x18c)),'details':_0x4647f5['t'](_0x1dfa36(0xc4)),'noSelection':_0x4647f5['t'](_0x1dfa36(0x138)),'locate':_0x4647f5['t'](_0x1dfa36(0x2bd)),'expand':_0x4647f5['t'](_0x1dfa36(0x101)),'collapse':_0x4647f5['t'](_0x1dfa36(0x318)),'dragToReorder':_0x4647f5['t'](_0x1dfa36(0x2e4)),'search':_0x4647f5['t'](_0x1dfa36(0xf1)),'filterAll':_0x4647f5['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x4647f5['t'](_0x1dfa36(0x227)),'filterLocked':_0x4647f5['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x4647f5['t'](_0x1dfa36(0x296)),'sectionFloating':_0x4647f5['t'](_0x1dfa36(0x1a4))},_0x12656a=_0x445cf0(_0x2c496c),_0x284d26=_0x445cf0(_0x43400d),_0x485511=_0x445cf0(_0x4202dc),_0x40109b=_0x445cf0(_0x5399a4),_0x44f40b=_0x445cf0(_0x22bed8),[,_0x445d26]=_0x1952c4(_0x3642e0=>_0x3642e0+0x1,0x0),_0x1b923f=_0x284d26[_0x1dfa36(0x1ca)](_0x35cbcc[_0x1dfa36(0x164)]),_0x2194f0=(_0x1b923f==null?void 0x0:_0x1b923f['getUnitId']())??'',_0xf14e5a=(_0x1b923f==null||(_0xc615be=_0x1b923f['getActiveSheet']())==null?void 0x0:_0xc615be[_0x1dfa36(0x2fc)]())??'',_0x30e27f=_0x25afa3(()=>_0x40109b[_0x1dfa36(0x169)],_0x40109b[_0x1dfa36(0x28b)](),!0x1,[_0x40109b]);_0x189550(()=>{const _0x763185=_0x1dfa36;let _0x1c41b7=_0x12656a[_0x763185(0x1d2)](()=>_0x445d26());return()=>_0x1c41b7[_0x763185(0x1ae)]();},[_0x12656a]);let _0x532bec=_0x2194f0&&_0xf14e5a?_0x485511['getDrawingData'](_0x2194f0,_0xf14e5a):{},_0x2cdd76=(_0x2194f0&&_0xf14e5a?_0x485511[_0x1dfa36(0x222)](_0x2194f0,_0xf14e5a):[])[_0x1dfa36(0x281)](_0x1e1f78=>_0x532bec[_0x1e1f78])[_0x1dfa36(0x305)](_0x86814a=>!!_0x86814a)[_0x1dfa36(0x298)](),_0x324c6e=_0x2cdd76['reduce']((_0x24a4ed,_0xdc26de)=>(_0x24a4ed[_0x2af955(_0xdc26de[_0x1dfa36(0x2e1)])]+=0x1,_0x24a4ed),{'canvas':0x0,'floating':0x0}),_0x339eb6={'canvas':0x0,'floating':0x0},_0x539e48=_0x2cdd76[_0x1dfa36(0x281)]((_0x433114,_0x3deea2)=>{const _0x2016fd=_0x1dfa36;let _0x3d5b45=_0x2af955(_0x433114[_0x2016fd(0x2e1)]),_0x41b31d=_0x3d5b45===_0x19b8c4,_0x350c77=_0x339eb6[_0x3d5b45]++;return{'id':_0x433114[_0x2016fd(0x162)],'name':Qi(_0x433114,_0x3deea2,_0x4647f5),'description':_0x433114['description'],'visible':_0x433114['hidden']!==!0x0,'selectable':_0x433114[_0x2016fd(0x10c)]!==!0x1,'sectionId':_0x3d5b45,'sectionTitle':_0x41b31d?_0x5d8082[_0x2016fd(0xb3)]:_0x5d8082['sectionCanvas'],'capabilities':_0x41b31d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x41b31d&&_0x350c77>0x0,'canMoveBackward':!_0x41b31d&&_0x350c77<_0x324c6e[_0x2016fd(0x184)]-0x1,'canReorder':!_0x41b31d};}),_0x21a3a3=_0x1e2218(()=>(_0x30e27f??[])[_0x1dfa36(0x305)](_0x3434fd=>_0x3434fd[_0x1dfa36(0x2b7)]===_0x2194f0&&_0x3434fd[_0x1dfa36(0x32f)]===_0xf14e5a)[_0x1dfa36(0x281)](_0x3585d8=>_0x3585d8[_0x1dfa36(0x162)]),[_0x30e27f,_0xf14e5a,_0x2194f0]),_0x2794c6=_0x21a3a3[_0x21a3a3[_0x1dfa36(0xf6)]-0x1]??null,_0x4a190a=_0x534f9c=>_0x485511['getDrawingByParam']({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x534f9c})??null,_0x3cb0bc=async _0x29b5d1=>{_0x2194f0&&_0x29b5d1['length']&&await _0x12656a['executeCommand'](_0x197a6a['id'],{'unitId':_0x2194f0,'drawings':_0x29b5d1});},_0x578088=async(_0x2344dc,_0x4a56cc)=>{_0x4a190a(_0x2344dc)&&await _0x3cb0bc([{'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x2344dc,..._0x4a56cc}]);},_0xfdfa2=(_0x453910,_0x1ebe4d)=>{const _0x1e817f=_0x1dfa36;if(!_0x2194f0||!_0xf14e5a)return;let _0x2fe3d8=_0x1ebe4d?_0x21a3a3[_0x1e817f(0x339)](_0x453910)?_0x21a3a3[_0x1e817f(0x305)](_0x2c3247=>_0x2c3247!==_0x453910):[..._0x21a3a3,_0x453910]:[_0x453910];_0x12656a[_0x1e817f(0x319)](_0x46655b['id'],_0x2fe3d8['map'](_0x5f0388=>({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x5f0388})));let _0x15376a=_0x2fe3d8[_0x2fe3d8['length']-0x1];_0x15376a?_0x4bb030(_0x44f40b,{'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x15376a}):_0x1579d(_0x44f40b,_0x2194f0);},_0x5c5e4e=async(_0x17a7de,_0x26212a)=>{const _0x474462=_0x1dfa36;await _0x3cb0bc(_0x17a7de[_0x474462(0x281)](_0xe62d8a=>_0x4a190a(_0xe62d8a))[_0x474462(0x305)](_0x2be191=>!!_0x2be191)[_0x474462(0x305)](_0x45f600=>_0x45f600[_0x474462(0x18f)]!==!0x0!==_0x26212a)[_0x474462(0x281)](_0x1c1eec=>({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x1c1eec[_0x474462(0x162)],'hidden':!_0x26212a})));},_0x585c06=async(_0x3f6949,_0x3e63f9)=>{const _0x471355=_0x1dfa36;await _0x3cb0bc(_0x3f6949[_0x471355(0x281)](_0x33960b=>_0x4a190a(_0x33960b))[_0x471355(0x305)](_0x2aae7e=>!!_0x2aae7e)[_0x471355(0x305)](_0x142624=>_0x142624[_0x471355(0x10c)]!==!0x1!==_0x3e63f9)[_0x471355(0x281)](_0x96b1c8=>({'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingId':_0x96b1c8[_0x471355(0x162)],'selectable':_0x3e63f9})));},_0x2b955e=_0x5a768c=>{const _0x427d8d=_0x1dfa36;let _0x26dcb1=_0x4a190a(_0x5a768c);if(_0x26dcb1)return _0x585c06([_0x5a768c],_0x26dcb1[_0x427d8d(0x10c)]===!0x1);},_0x46be3a=async(_0xaf8578,_0x440f81)=>{const _0x17770d=_0x1dfa36;var _0x4e90c4;let _0x15da44=Zi(_0x440f81);(((_0x4e90c4=_0x4a190a(_0xaf8578))==null?void 0x0:_0x4e90c4[_0x17770d(0x349)])??void 0x0)!==_0x15da44&&await _0x578088(_0xaf8578,{'name':_0x15da44});},_0x3bc74f=async(_0x5520e6,_0x3d736d)=>{var _0xb2f152;let _0x9ad7d0=Zi(_0x3d736d);(((_0xb2f152=_0x4a190a(_0x5520e6))==null?void 0x0:_0xb2f152['description'])??void 0x0)!==_0x9ad7d0&&await _0x578088(_0x5520e6,{'description':_0x9ad7d0});},_0x5aeaab=async(_0x3c84e6,_0x13c3aa)=>{const _0x43a58b=_0x1dfa36;_0x2194f0&&_0xf14e5a&&await _0x12656a[_0x43a58b(0x1b0)](_0x325252['id'],{'unitId':_0x2194f0,'subUnitId':_0xf14e5a,'drawingIds':[_0x3c84e6],'arrangeType':_0x13c3aa});};return!_0x2194f0||!_0xf14e5a?_0x35a023(_0x1dfa36(0x14c),{'className':_0x1dfa36(0x2bc),'children':_0x5d8082[_0x1dfa36(0x17f)]}):_0x35a023(_0xcb4571,{'labels':_0x5d8082,'items':_0x539e48,'selectedIds':_0x21a3a3,'focusedId':_0x2794c6,'showHeader':!0x1,'onSelect':_0xfdfa2,'onSetVisible':_0x5c5e4e,'onSetSelectable':_0x585c06,'onCommitName':_0x46be3a,'onCommitDescription':_0x3bc74f,'onMoveForward':async _0x396546=>_0x5aeaab(_0x396546,_0x1256c6[_0x1dfa36(0x1b1)]),'onMoveBackward':async _0x1173b6=>_0x5aeaab(_0x1173b6,_0x1256c6[_0x1dfa36(0x128)]),'onToggleSelectable':_0x2b955e});}function ea(){return _0x35a023($i,{'PanelComponent':_0x54bd98});}let ta=class extends _0x50d788{constructor(_0x450030,_0x185109){const _0x36b807=_0x541acc;super(),this['disposeWithMe'](_0x450030['register'](Rr,ea)),this['disposeWithMe'](_0x185109[_0x36b807(0x24c)]({'BottomIcon':_0x3bd381,'FlipHorizontalIcon':_0x3c9d9a,'FlipVerticalIcon':_0x2efc66,'MoveDownIcon':_0x1164ba,'MoveUpIcon':_0x907637,'ObjectLayersIcon':_0xd7ec17,'ShapeFormatSettingIcon':_0x350cd9,'TopmostIcon':_0x14bd06})),this[_0x36b807(0x328)](_0x450030[_0x36b807(0x24c)](Jr,ti)),this['disposeWithMe'](_0x450030[_0x36b807(0x24c)](Yr,Qr)),_0x450030[_0x36b807(0x1b7)](_0x4939b9)||this[_0x36b807(0x328)](_0x450030[_0x36b807(0x24c)](_0x4939b9,$r));}};ta=X([Y(0x0,_0x53ba9c(_0x6cddf9)),Y(0x1,_0x53ba9c(_0x404799))],ta);let $=class extends _0x50d788{constructor(_0x51bad0){const _0x184fe0=_0x541acc;super(),this[_0x184fe0(0x14b)]=_0x51bad0,q(this,'_editingParams$',new _0x207ab3(null)),q(this,_0x184fe0(0x204),this[_0x184fe0(0x344)][_0x184fe0(0x369)]()),q(this,_0x184fe0(0x2a0),new _0x207ab3(!0x1)),q(this,_0x184fe0(0x1ea),this['_onSavingEditorData$'][_0x184fe0(0x369)]()),q(this,_0x184fe0(0x1c2),void 0x0),this[_0x184fe0(0x328)](this['_permissionService'][_0x184fe0(0xb0)][_0x184fe0(0x36d)](()=>{const _0xf632f8=_0x184fe0;let _0x260307=this['getEditing']();_0x260307!=null&&_0x260307[_0xf632f8(0x175)]&&!this['_canEdit'](_0x260307)&&this[_0xf632f8(0x352)](null);}));}[_0x541acc(0x1ae)](){const _0x489ad3=_0x541acc;this[_0x489ad3(0xb6)](),this[_0x489ad3(0x344)]['next'](null),this[_0x489ad3(0x344)][_0x489ad3(0x29c)](),this[_0x489ad3(0x2a0)]['next'](!0x1),this[_0x489ad3(0x2a0)][_0x489ad3(0x29c)](),super['dispose']();}['setEditing'](_0x859c2f){const _0x20c573=_0x541acc;(_0x859c2f==null||!_0x859c2f[_0x20c573(0x175)]||this[_0x20c573(0x13c)](_0x859c2f))&&(this[_0x20c573(0xb6)](),this[_0x20c573(0x344)][_0x20c573(0x2d4)](_0x859c2f),(_0x859c2f==null||_0x859c2f[_0x20c573(0x175)]&&this['_onSavingEditorData$'][_0x20c573(0x286)]())&&this[_0x20c573(0x2a0)][_0x20c573(0x2d4)](!0x1));}[_0x541acc(0x10b)](_0x2fff01){const _0x457fc6=_0x541acc;this[_0x457fc6(0x2a0)][_0x457fc6(0x2d4)](_0x2fff01);}[_0x541acc(0x333)](){const _0x2049ed=_0x541acc;return this[_0x2049ed(0x344)][_0x2049ed(0x286)]();}['_canEdit'](_0x52b079){const _0x5d5c26=_0x541acc;let _0x1a545b=this[_0x5d5c26(0x14b)][_0x5d5c26(0x2e2)](new _0x220388(_0x52b079[_0x5d5c26(0x2b7)])['id']),_0x129418=this[_0x5d5c26(0x14b)][_0x5d5c26(0x2e2)](new _0x5d269b(_0x52b079[_0x5d5c26(0x2b7)],_0x52b079['subUnitId'])['id']);return((_0x1a545b==null?void 0x0:_0x1a545b[_0x5d5c26(0x156)])??!0x0)&&((_0x129418==null?void 0x0:_0x129418[_0x5d5c26(0x156)])??!0x0);}[_0x541acc(0x22d)](_0x327bad){const _0x3700be=_0x541acc;let _0x1be82f=this[_0x3700be(0x333)]();_0x1be82f&&this[_0x3700be(0x1c2)]===void 0x0&&(this[_0x3700be(0x10b)](!0x0),this[_0x3700be(0x1c2)]=requestAnimationFrame(()=>{const _0x98745a=_0x3700be;this[_0x98745a(0x1c2)]=void 0x0,this[_0x98745a(0x333)]()===_0x1be82f&&this[_0x98745a(0x352)](null);}));}[_0x541acc(0xb6)](){const _0x2e1bc8=_0x541acc;this[_0x2e1bc8(0x1c2)]!==void 0x0&&(cancelAnimationFrame(this[_0x2e1bc8(0x1c2)]),this['_completionFrame']=void 0x0);}[_0x541acc(0x368)](){const _0x57e9cb=_0x541acc;this[_0x57e9cb(0x333)]()&&this[_0x57e9cb(0x352)](null);}};$=X([Y(0x0,_0x2dd2ac)],$);let na=class extends _0x50d788{constructor(_0x112021,_0x5bd85f,_0x15fd1e,_0x53c73a,_0x221e51,_0x2d5b07){const _0x172448=_0x541acc;super(),this[_0x172448(0x226)]=_0x112021,this['_injector']=_0x5bd85f,this['_shapeTextEditingService']=_0x15fd1e,this[_0x172448(0x1b6)]=_0x53c73a,this[_0x172448(0x311)]=_0x221e51,this[_0x172448(0x1da)]=_0x2d5b07,q(this,'_lastEditingShapeKey',null),this[_0x172448(0x361)](),this['_initSelection'](),this['_initEditingParams']();}['_initEvents'](){const _0x2da0da=_0x541acc;let {scene:_0x4706a6}=this[_0x2da0da(0x226)];this[_0x2da0da(0x328)](_0x4706a6[_0x2da0da(0x309)][_0x2da0da(0x1e2)](_0x34ec8d=>{const _0x284f99=_0x2da0da;let {offsetX:_0x519c1e,offsetY:_0x454bc8}=_0x34ec8d,_0x46b12a=_0x4706a6[_0x284f99(0x153)](_0x53a890[_0x284f99(0x374)]([_0x519c1e,_0x454bc8]));if(_0x46b12a instanceof J){let _0x4e985c=this['_sheetsShapeService'][_0x284f99(0x29b)](_0x46b12a[_0x284f99(0x2b7)],_0x46b12a[_0x284f99(0x32f)],_0x46b12a[_0x284f99(0x266)]);if(_0x3fd6c6(this[_0x284f99(0x1da)][_0x284f99(0x259)](_0x46b12a[_0x284f99(0x2b7)],_0x46b12a[_0x284f99(0x32f)],_0x46b12a['shapeId']))||_0x4e985c!=null&&_0x4e985c[_0x284f99(0x351)]()[_0x284f99(0xbe)])return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x46b12a[_0x284f99(0x2b7)],'subUnitId':_0x46b12a[_0x284f99(0x32f)],'shapeId':_0x46b12a[_0x284f99(0x266)],'shapeKey':_0x46b12a['oKey']});}}));}[_0x541acc(0x193)](){const _0x3ede29=_0x541acc;this[_0x3ede29(0x328)](this['_drawingManagerService'][_0x3ede29(0x169)][_0x3ede29(0x36d)](_0x1cfdcb=>{const _0x70c69c=_0x3ede29;if(_0x1cfdcb[_0x70c69c(0xf6)]===0x1){let _0x348b32=_0x1cfdcb[0x0],_0x134358=this[_0x70c69c(0x1b6)]['getDrawingByParam'](_0x348b32);if((_0x134358==null?void 0x0:_0x134358['drawingType'])===_0x4a245a['DRAWING_SHAPE']){var _0xb7986d;let _0xffd973=this[_0x70c69c(0x1af)][_0x70c69c(0x333)]();if((_0xffd973==null?void 0x0:_0xffd973[_0x70c69c(0x266)])===_0x348b32[_0x70c69c(0x162)]&&_0xffd973[_0x70c69c(0x175)])return;let _0x353a19=_0x3fd6c6(this[_0x70c69c(0x1da)][_0x70c69c(0x259)](_0x348b32[_0x70c69c(0x2b7)],_0x348b32[_0x70c69c(0x32f)],_0x348b32[_0x70c69c(0x162)])),_0x3ea82b=!!((_0xb7986d=this[_0x70c69c(0x1da)][_0x70c69c(0x29b)](_0x348b32[_0x70c69c(0x2b7)],_0x348b32[_0x70c69c(0x32f)],_0x348b32['drawingId']))!=null&&_0xb7986d['getShapeData']()[_0x70c69c(0xbe)]);(_0x353a19||_0x3ea82b)&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x70c69c(0x1af)][_0x70c69c(0x22d)]();}else this[_0x70c69c(0x1af)]['completeEditing']();})),this[_0x3ede29(0x328)](this['_drawingManagerService']['remove$'][_0x3ede29(0x36d)](_0x56e24d=>{const _0x43fbe6=_0x3ede29;let _0x4919c7=this[_0x43fbe6(0x1af)][_0x43fbe6(0x333)]();_0x4919c7&&_0x56e24d[_0x43fbe6(0x12c)](_0x5a278a=>_0x5a278a[_0x43fbe6(0x162)]===_0x4919c7['shapeId'])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x541acc(0x19d)](){const _0x57f120=_0x541acc;this[_0x57f120(0x328)](this[_0x57f120(0x1af)][_0x57f120(0x204)]['subscribe'](_0x286e4c=>{const _0x37f0fb=_0x57f120;let {scene:_0x32ccf2}=this[_0x37f0fb(0x226)];if(this[_0x37f0fb(0x279)]){let _0x5f256f=_0x32ccf2[_0x37f0fb(0x13f)](this[_0x37f0fb(0x279)]);_0x5f256f&&_0x5f256f[_0x37f0fb(0x352)](!0x1);}if(_0x286e4c){let _0x4a51a4=!!_0x286e4c[_0x37f0fb(0x175)],_0x127e05=_0x32ccf2[_0x37f0fb(0x13f)](_0x286e4c[_0x37f0fb(0x2df)]);_0x127e05&&(_0x127e05[_0x37f0fb(0x352)](_0x4a51a4),this['_lastEditingShapeKey']=_0x286e4c[_0x37f0fb(0x2df)]),this[_0x37f0fb(0x311)][_0x37f0fb(0x1c5)](_0x5ba962,_0x4a51a4);}else this[_0x37f0fb(0x279)]=null,this[_0x37f0fb(0x311)]['setContextValue'](_0x5ba962,!0x1);}));}};na=X([Y(0x1,_0x53ba9c(_0x3387ed)),Y(0x2,_0x53ba9c($)),Y(0x3,_0x5399a4),Y(0x4,_0x35ac6c),Y(0x5,_0x53ba9c(_0x27864b))],na);var ra=class extends na{['_initEvents'](){const _0x11a003=_0x541acc;let {scene:_0x204924}=this[_0x11a003(0x226)],_0x60d7ff=this[_0x11a003(0x157)][_0x11a003(0x1e8)](_0x3f0626);this[_0x11a003(0x328)](_0x204924[_0x11a003(0x309)][_0x11a003(0x1e2)](_0x4f567b=>{const _0x2daa64=_0x11a003;let {offsetX:_0x44b26d,offsetY:_0x32522f}=_0x4f567b,_0x39f305=_0x204924[_0x2daa64(0x153)](_0x53a890[_0x2daa64(0x374)]([_0x44b26d,_0x32522f]));if(!(_0x39f305 instanceof J))return;let _0xeb1620=this[_0x2daa64(0x1da)][_0x2daa64(0x29b)](_0x39f305[_0x2daa64(0x2b7)],_0x39f305['subUnitId'],_0x39f305[_0x2daa64(0x266)]);_0x3fd6c6(this[_0x2daa64(0x1da)][_0x2daa64(0x259)](_0x39f305['unitId'],_0x39f305['subUnitId'],_0x39f305['shapeId']))||_0xeb1620!=null&&_0xeb1620['getShapeData']()[_0x2daa64(0xbe)]||_0x60d7ff[_0x2daa64(0x36f)]('text',{'hostType':_0x35cbcc[_0x2daa64(0x164)],'unitId':_0x39f305['unitId'],'subUnitId':_0x39f305[_0x2daa64(0x32f)],'shapeId':_0x39f305[_0x2daa64(0x266)]});}));}};const ia={...Ui};let aa=class extends _0x50d788{constructor(_0x3f9a46,_0x20150e,_0x2e1c79,_0x1efa7a,_0x1d1ee5,_0x88b85a,_0x2f473b,_0x273fc6){const _0x456324=_0x541acc;super(),this['_menuManagerService']=_0x3f9a46,this[_0x456324(0x1da)]=_0x20150e,this['_commandService']=_0x2e1c79,this[_0x456324(0x1b6)]=_0x1efa7a,this[_0x456324(0xcb)]=_0x1d1ee5,this['_contextService']=_0x88b85a,this[_0x456324(0x232)]=_0x2f473b,this[_0x456324(0x1af)]=_0x273fc6,q(this,'_shapePopupMenuDisposable',null),this['_menuManagerService'][_0x456324(0x1fa)](ia),this['_registerFeatureMenu'](),this['disposeWithMe'](this[_0x456324(0x1af)][_0x456324(0x204)]['subscribe'](_0x45744e=>{const _0xd8eed4=_0x456324;_0x45744e&&this[_0xd8eed4(0x114)]();}));}['initShapePopupMenu'](){const _0x2999e3=_0x541acc;this['_shapePopupMenuDisposable']||=this['disposeWithMe'](_0x360d1d(this['_renderManagerService'],_0x35cbcc[_0x2999e3(0x164)],_0x2e6597=>this[_0x2999e3(0xe3)](_0x2e6597)));}[_0x541acc(0x2aa)](){const _0xceac97=_0x541acc;this[_0xceac97(0xcb)][_0xceac97(0xe5)](_0x4a245a['DRAWING_SHAPE'],(_0x2ec573,_0x4f71ca,_0x3eccc3,_0x1f2da0)=>{const _0x1dcf7a=_0xceac97;let _0x5e0386=this[_0x1dcf7a(0x1da)][_0x1dcf7a(0x16d)](_0x2ec573,_0x4f71ca,_0x3eccc3),_0x50380b=this[_0x1dcf7a(0x1da)]['getShapeDataById'](_0x2ec573,_0x4f71ca,_0x3eccc3),_0x12c53c=_0x5e0386!==void 0x0&&!_0x3fd6c6(_0x5e0386)&&!(_0x50380b!=null&&_0x50380b[_0x1dcf7a(0xbe)]);return[{'label':_0x1dcf7a(0x1ad),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'drawingId':_0x3eccc3,'mode':_0x1dcf7a(0x1b4)},'disable':!0x1},..._0x12c53c?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'drawingId':_0x3eccc3,'mode':'text'},'disable':!0x1}]:[],{'label':_0x1dcf7a(0x159),'index':0x2,'commandId':_0x6ae2c0['id'],'commandParams':{'unitId':_0x2ec573,'drawings':[{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'drawingId':_0x3eccc3,'drawingType':_0x1f2da0}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x22d960['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'shapeId':_0x3eccc3,'flipH':!0x0},'disable':!0x1},{'label':_0x1dcf7a(0x29d),'index':0x4,'commandId':_0x22d960['id'],'commandParams':{'unitId':_0x2ec573,'subUnitId':_0x4f71ca,'shapeId':_0x3eccc3,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}['_popupMenuListener'](_0x50b23a){const _0x4e3299=_0x541acc;let _0x453930=new _0x1de28d(),_0x526d86=null,_0x27e366=()=>{const _0x58b0a9=_0x5f19;if(!_0x526d86)return;let _0x436cb9=this[_0x58b0a9(0x1b6)][_0x58b0a9(0x28b)](),_0x48d3b9=_0x436cb9[_0x58b0a9(0xf6)]===0x0||_0x436cb9['length']===0x1&&_0x436cb9[_0x58b0a9(0x12c)](_0x4f4c21=>_0x4f4c21['unitId']===(_0x526d86==null?void 0x0:_0x526d86[_0x58b0a9(0x2b7)])&&_0x4f4c21[_0x58b0a9(0x32f)]===(_0x526d86==null?void 0x0:_0x526d86[_0x58b0a9(0x32f)])&&_0x4f4c21[_0x58b0a9(0x162)]===(_0x526d86==null?void 0x0:_0x526d86['drawingId']));_0x526d86=null,_0x48d3b9&&(this[_0x58b0a9(0x311)][_0x58b0a9(0x1c5)](_0x121b13,!0x1),this[_0x58b0a9(0x1b6)][_0x58b0a9(0x1f7)](null));};return _0x453930['add'](_0x50b23a[_0x4e3299(0x2b9)]['subscribe'](()=>{const _0xf41ac=_0x4e3299;let _0x44fafa=_0x50b23a['getSelectedObjectMap']();if(_0x44fafa[_0xf41ac(0x236)]>0x1){_0x27e366();return;}let _0x50958a=_0x44fafa['values']()[_0xf41ac(0x2d4)]()[_0xf41ac(0x156)];if(!_0x50958a){_0x27e366();return;}let _0x5d524a=this[_0xf41ac(0x1b6)][_0xf41ac(0x1cd)](_0x50958a[_0xf41ac(0x22c)]);if(!_0x5d524a||_0x5d524a['drawingType']!==_0x4a245a[_0xf41ac(0x1f9)]){_0x27e366();return;}let {unitId:_0x1eecbf,subUnitId:_0x4b0478,drawingId:_0x3f267c}=_0x5d524a;_0x526d86={'unitId':_0x1eecbf,'subUnitId':_0x4b0478,'drawingId':_0x3f267c},this[_0xf41ac(0x311)]['setContextValue'](_0x121b13,!0x0),this[_0xf41ac(0x1b6)][_0xf41ac(0x28b)]()[_0xf41ac(0xfd)](_0x1a53d6=>_0x1a53d6[_0xf41ac(0x2b7)]===_0x1eecbf&&_0x1a53d6['subUnitId']===_0x4b0478&&_0x1a53d6[_0xf41ac(0x162)]===_0x3f267c)||this['_drawingManagerService'][_0xf41ac(0x1f7)]([{'unitId':_0x1eecbf,'subUnitId':_0x4b0478,'drawingId':_0x3f267c}]);})),_0x453930['add'](_0x50b23a['clearControl$'][_0x4e3299(0x36d)](()=>{_0x27e366();})),_0x183b07(()=>{const _0x5eacca=_0x4e3299;_0x453930[_0x5eacca(0x1ae)](),_0x27e366();});}[_0x541acc(0x114)](){const _0x3a1d83=_0x541acc;this['_contextService'][_0x3a1d83(0x1c5)](_0x121b13,!0x1),this[_0x3a1d83(0x1b6)][_0x3a1d83(0x1f7)](null);}};aa=X([Y(0x0,_0x413bdc),Y(0x1,_0x53ba9c(_0x27864b)),Y(0x2,_0x2c496c),Y(0x3,_0x5399a4),Y(0x4,_0x53ba9c(_0x5973fe)),Y(0x5,_0x35ac6c),Y(0x6,_0x22bed8),Y(0x7,_0x53ba9c($))],aa);function oa(_0x121a11,_0x3846a5,_0x10da9f,_0x107b70){const _0x2231d2=_0x541acc;let _0x801332=_0x25f35b(_0x121a11,_0x3846a5,_0x10da9f),_0xac2870=[];for(let _0x176f20 of _0x3846a5){let _0x399969=_0x801332[_0x2231d2(0x356)][_0x2231d2(0x1e8)](_0x176f20[_0x2231d2(0x162)]),_0x389158=_0x107b70(_0x176f20);_0x399969&&_0x389158&&_0xac2870['push']({'targetShapeId':_0x399969,'source':_0x389158});}return _0xac2870;}let sa=class extends _0x50d788{constructor(_0x4351bb,_0x587484,_0x758359,_0x17e2a5){const _0xcc300f=_0x541acc;super(),this['_univerInstanceService']=_0x4351bb,this['_sheetInterceptorService']=_0x587484,this[_0xcc300f(0x15e)]=_0x758359,this[_0xcc300f(0x1da)]=_0x17e2a5,this[_0xcc300f(0xd0)]();}[_0x541acc(0xd0)](){const _0x4b3664=_0x541acc;this[_0x4b3664(0x328)](this[_0x4b3664(0x109)][_0x4b3664(0xe0)]({'getMutations':_0x80d212=>{const _0x369a73=_0x4b3664;if(_0x80d212['id']===_0x5b7bce['id']){let _0x4f9610=_0x88a456(this['_univerInstanceService'],_0x80d212[_0x369a73(0x152)]);if(!_0x4f9610)return{'redos':[],'undos':[]};let {unitId:_0x16d71f,subUnitId:_0x142327}=_0x4f9610,_0x4d658d=this[_0x369a73(0x15e)]['getDrawingData'](_0x16d71f,_0x142327),_0x30d1d1=Object[_0x369a73(0x370)](_0x4d658d)[_0x369a73(0x305)](_0x2d3be2=>_0x2d3be2[_0x369a73(0x2e1)]===_0x4a245a['DRAWING_SHAPE']);if(_0x30d1d1[_0x369a73(0xf6)]===0x0)return{'redos':[],'undos':[]};let _0x1f0cfc=[],_0x59a3b8=[];for(let _0x19b36a=0x0;_0x19b36a<_0x30d1d1[_0x369a73(0xf6)];_0x19b36a++){let _0xe9cc74=_0x30d1d1[_0x19b36a],_0x19a2a6=this[_0x369a73(0x1da)][_0x369a73(0x29b)](_0xe9cc74[_0x369a73(0x2b7)],_0xe9cc74[_0x369a73(0x32f)],_0xe9cc74[_0x369a73(0x162)]);_0x19a2a6&&(_0x1f0cfc[_0x369a73(0x288)]({'id':_0x5543d5['id'],'params':{'unitId':_0x16d71f,'subUnitId':_0x142327,'shapeId':_0xe9cc74[_0x369a73(0x162)]}}),_0x59a3b8[_0x369a73(0x288)]({'id':_0x48b536['id'],'params':{'unitId':_0x16d71f,'subUnitId':_0x142327,'shapeId':_0xe9cc74['drawingId'],'shapeType':_0x19a2a6[_0x369a73(0x259)](),'shapeData':JSON[_0x369a73(0x25c)](JSON['stringify'](_0x19a2a6['getShapeData']()))}}));}return{'redos':_0x1f0cfc,'undos':_0x59a3b8};}if(_0x80d212['id']===_0x583407['id']){let {unitId:_0xeea99d,subUnitId:_0x48660d,targetSubUnitId:_0x172467,copyContext:_0x574e97}=_0x80d212[_0x369a73(0x152)];if(!_0xeea99d||!_0x48660d||!_0x172467)return{'redos':[],'undos':[]};let _0x4c5ec1=this['_sheetDrawingService'][_0x369a73(0x13b)](_0xeea99d,_0x48660d),_0x341e3=Object[_0x369a73(0x370)](_0x4c5ec1)[_0x369a73(0x305)](_0x1087d0=>_0x1087d0[_0x369a73(0x2e1)]===_0x4a245a[_0x369a73(0x1f9)]);if(_0x341e3[_0x369a73(0xf6)]===0x0)return{'redos':[],'undos':[]};let _0x41fbeb=oa(_0x574e97,_0x341e3,{'unitId':_0xeea99d,'sourceSubUnitId':_0x48660d,'targetSubUnitId':_0x172467},_0x62089d=>{const _0x29cfc0=_0x369a73;let _0x1c4dea=this[_0x29cfc0(0x1da)][_0x29cfc0(0x29b)](_0x62089d[_0x29cfc0(0x2b7)],_0x62089d['subUnitId'],_0x62089d['drawingId']);if(_0x1c4dea)return{'shapeType':_0x1c4dea['getShapeType'](),'shapeData':JSON[_0x29cfc0(0x25c)](JSON[_0x29cfc0(0x142)](_0x1c4dea[_0x29cfc0(0x351)]()))};}),_0x2f48f5=[],_0x5a4072=[];for(let {targetShapeId:_0x20dbc5,source:_0x2aa676}of _0x41fbeb)_0x2f48f5[_0x369a73(0x288)]({'id':_0x48b536['id'],'params':{'unitId':_0xeea99d,'subUnitId':_0x172467,'shapeId':_0x20dbc5,'shapeType':_0x2aa676[_0x369a73(0x1e4)],'shapeData':_0x2aa676['shapeData']}}),_0x5a4072[_0x369a73(0x288)]({'id':_0x5543d5['id'],'params':{'unitId':_0xeea99d,'subUnitId':_0x172467,'shapeId':_0x20dbc5}});return{'redos':_0x2f48f5,'undos':_0x5a4072};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x53ba9c(_0x43400d)),Y(0x1,_0x53ba9c(_0xcb4849)),Y(0x2,_0x53ba9c(_0x4202dc)),Y(0x3,_0x53ba9c(_0x27864b))],sa);let ca=class extends _0x50d788{constructor(_0xc00458,_0x27ca6f,_0x1466bf,_0x1f6b19,_0x54ab88,_0xdb83b3){const _0x44900a=_0x541acc;super(),this[_0x44900a(0xdc)]=_0xc00458,this[_0x44900a(0x232)]=_0x27ca6f,this[_0x44900a(0x1b6)]=_0x1466bf,this[_0x44900a(0xd7)]=_0x1f6b19,this['_drawingRenderService']=_0x54ab88,this['_sheetDrawingShapeRenderController']=_0xdb83b3,q(this,'_insertingShapeKeys',new Set()),this[_0x44900a(0x284)]();}['_initialize'](){const _0x3bbf62=_0x541acc;this['_drawingAddListener'](),this[_0x3bbf62(0x377)](),this[_0x3bbf62(0x1a3)]();}[_0x541acc(0x1f6)](){const _0x184f99=_0x541acc;this[_0x184f99(0x328)](this['_drawingManagerService'][_0x184f99(0x1e1)][_0x184f99(0x36d)](_0x59a636=>{const _0x5ef965=_0x184f99;this[_0x5ef965(0x31b)](_0x59a636);}));}[_0x541acc(0x377)](){const _0x4eff75=_0x541acc;this[_0x4eff75(0x328)](this[_0x4eff75(0xdc)]['onCommandExecuted']((_0x2fafbd,_0x55d9f8)=>{const _0xca11a6=_0x4eff75;if(_0x2fafbd['id']===_0x2a1218['id']){let {unitId:_0x165290,subUnitId:_0x57f3bf,shapeId:_0x49ccc7}=_0x2fafbd[_0xca11a6(0x152)],_0x2cb3c9=this['_getSceneAndTransformerByDrawingSearch'](_0x165290),_0x30c20f=_0x191ead({'unitId':_0x165290,'subUnitId':_0x57f3bf,'drawingId':_0x49ccc7}),_0x383ff6=_0x2cb3c9==null?void 0x0:_0x2cb3c9[_0xca11a6(0x34c)][_0xca11a6(0x13f)](_0x30c20f);_0x383ff6&&(this[_0xca11a6(0x33b)][_0xca11a6(0x308)](_0x383ff6),this[_0xca11a6(0x33b)][_0xca11a6(0x191)](_0x383ff6,{'unitId':_0x165290,'subUnitId':_0x57f3bf,'shapeId':_0x49ccc7}),_0x383ff6[_0xca11a6(0x2ff)](!0x0));}else{if(_0x2fafbd['id']===_0x48b536['id']){var _0x59ed53;let {unitId:_0x18312d,subUnitId:_0x175ff9,shapeId:_0x2e8b1d}=_0x2fafbd[_0xca11a6(0x152)],_0x202965=this[_0xca11a6(0x2cd)](_0x18312d);if(_0x202965==null)return;let {scene:_0x32b9d8}=_0x202965,_0x1aeb40=_0x191ead({'unitId':_0x18312d,'subUnitId':_0x175ff9,'drawingId':_0x2e8b1d}),_0x2e43d1=_0x32b9d8[_0xca11a6(0x13f)](_0x1aeb40);if(!((_0x59ed53=this['_renderManagerService']['getRenderUnitById'](_0x18312d))!=null&&_0x59ed53[_0xca11a6(0x320)](_0x3ea870)[_0xca11a6(0x342)](_0x175ff9)))return!0x1;if(_0x2e43d1)return;if(_0x55d9f8!=null&&_0x55d9f8[_0xca11a6(0x373)]){queueMicrotask(()=>{const _0x110d8a=_0xca11a6;this[_0x110d8a(0x2be)]||this[_0x110d8a(0x31b)]([{'unitId':_0x18312d,'subUnitId':_0x175ff9,'drawingId':_0x2e8b1d}]);});return;}this[_0xca11a6(0x31b)]([{'unitId':_0x18312d,'subUnitId':_0x175ff9,'drawingId':_0x2e8b1d}]);}}}));}[_0x541acc(0x1a3)](){const _0xccaaad=_0x541acc;this['disposeWithMe'](this[_0xccaaad(0x1b6)]['update$'][_0xccaaad(0x36d)](_0x15ebf0=>{_0x15ebf0['forEach'](_0x42cc49=>{const _0x420acf=_0x5f19;let {unitId:_0x158815,subUnitId:_0x3f459a,drawingId:_0x19b1e2}=_0x42cc49,_0x7307f8=this[_0x420acf(0x1b6)][_0x420acf(0xb2)](_0x42cc49);if(_0x7307f8==null)return;let {transform:_0x4a64d5,drawingType:_0x243ee8,srcRect:_0x300c27,prstGeom:_0x40b089}=_0x7307f8;if(_0x243ee8!==_0x4a245a[_0x420acf(0x1f9)])return;let _0x498c91=this[_0x420acf(0x2cd)](_0x158815);if(_0x498c91==null)return;let {scene:_0x5d0f89,transformer:_0x48e54a}=_0x498c91;if(_0x4a64d5==null)return!0x0;let _0x5a63b3=_0x191ead({'unitId':_0x158815,'subUnitId':_0x3f459a,'drawingId':_0x19b1e2}),_0x19745e=_0x5d0f89[_0x420acf(0x13f)](_0x5a63b3);if(_0x19745e==null)return!0x0;_0x19745e[_0x420acf(0x276)](_0x300c27),_0x19745e[_0x420acf(0x176)](_0x40b089);});}));}[_0x541acc(0x31b)](_0x26a656){const _0x4c37d3=_0x541acc;for(let _0x39a246 of _0x26a656){var _0x37c24d;let {unitId:_0x3b4c09,subUnitId:_0x551939,drawingId:_0x5b3734}=_0x39a246,_0x15c9dc=this[_0x4c37d3(0x2cd)](_0x3b4c09),_0x46f321=(_0x37c24d=_0x12ae77(this[_0x4c37d3(0xd7)],_0x3b4c09))==null?void 0x0:_0x37c24d[_0x4c37d3(0x32f)];if(_0x15c9dc==null||_0x46f321!==_0x551939)return;let _0x4513a5=_0x191ead({'unitId':_0x3b4c09,'subUnitId':_0x551939,'drawingId':_0x5b3734});if(this[_0x4c37d3(0x23d)][_0x4c37d3(0x1bd)](_0x4513a5)||_0x15c9dc[_0x4c37d3(0x34c)]['getObjectIncludeInGroup'](_0x4513a5)!=null)return;let _0x2e3c93=this[_0x4c37d3(0x1b6)][_0x4c37d3(0xb2)](_0x39a246);if(_0x2e3c93==null||_0x2e3c93[_0x4c37d3(0x2e1)]!==_0x4a245a[_0x4c37d3(0x1f9)])return;let _0x1484a6=_0x2e3c93[_0x4c37d3(0x2bf)]||{};if(_0x3fd6c6(_0x1484a6[_0x4c37d3(0x1e4)])){let _0x1d4564=_0x2e3c93['transform'];_0x1d4564&&(_0x2e3c93[_0x4c37d3(0xc5)]={..._0x1d4564,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x4c37d3(0x23d)][_0x4c37d3(0xb5)](_0x4513a5);try{this[_0x4c37d3(0x33b)]['renderDrawingShape'](_0x2e3c93,_0x15c9dc[_0x4c37d3(0x34c)]);}finally{this[_0x4c37d3(0x23d)][_0x4c37d3(0x1ed)](_0x4513a5);}queueMicrotask(()=>{const _0x35db8a=_0x4c37d3;if(this['_disposed'])return;let _0x5c2982=_0x191ead(_0x39a246);if(!_0x15c9dc[_0x35db8a(0x34c)]['getObjectIncludeInGroup'](_0x5c2982))return;let _0x3daa1f=this[_0x35db8a(0x1b6)][_0x35db8a(0xb2)](_0x39a246);_0x3daa1f&&this['_drawingManagerService'][_0x35db8a(0x1e7)]([_0x3daa1f]);});}}[_0x541acc(0x2cd)](_0x51ad0d){const _0x3b5403=_0x541acc;if(_0x51ad0d==null)return;let _0x24a935=this['_renderManagerService'][_0x3b5403(0x365)](_0x51ad0d),_0x101856=_0x24a935==null?void 0x0:_0x24a935[_0x3b5403(0x34c)];return _0x101856==null?null:{'scene':_0x101856,'transformer':_0x101856[_0x3b5403(0x322)]()};}};ca=X([Y(0x0,_0x2c496c),Y(0x1,_0x22bed8),Y(0x2,_0x5399a4),Y(0x3,_0x43400d),Y(0x4,_0x53ba9c(_0x4b581b)),Y(0x5,_0x53ba9c(Z))],ca);const la={'normal':{'fill':_0x1b524b[_0x541acc(0x2d1)],'stroke':_0x1b524b[_0x541acc(0x221)],'strokeWidth':_0x1b524b[_0x541acc(0x1d5)]},'highlighted':{'fill':_0x541acc(0x24a),'stroke':_0x541acc(0xd2),'strokeWidth':0x2}};var ua=class extends _0x17e18a{constructor(_0x85e13c,_0x3428e2){const _0x213b76=_0x541acc;super(_0x85e13c,_0x3428e2),q(this,'_targetShapeId',''),q(this,'_cxnIndex',-0x1),q(this,_0x213b76(0x1de),''),q(this,_0x213b76(0x285),''),q(this,_0x213b76(0x1ce),!0x1),_0x3428e2&&this[_0x213b76(0x1d3)](_0x3428e2);}[_0x541acc(0x321)](){const _0x4828f0=_0x541acc;return{'unitId':this['_unitId'],'subUnitId':this[_0x4828f0(0x285)],'shapeId':this[_0x4828f0(0x297)],'cxnIndex':this[_0x4828f0(0x2d3)]};}[_0x541acc(0x34f)](_0x29b8b3){const _0x504aa9=_0x541acc;this[_0x504aa9(0x1ce)]!==_0x29b8b3&&(this[_0x504aa9(0x1ce)]=_0x29b8b3,this['makeDirty'](!0x0));}[_0x541acc(0x2c0)](){const _0x38a148=_0x541acc;return this[_0x38a148(0x1ce)];}[_0x541acc(0x1d3)](_0x48808d){const _0x11b1c2=_0x541acc;_0x48808d[_0x11b1c2(0x310)]!==void 0x0&&(this[_0x11b1c2(0x297)]=_0x48808d[_0x11b1c2(0x310)]),_0x48808d['cxnIndex']!==void 0x0&&(this[_0x11b1c2(0x2d3)]=_0x48808d[_0x11b1c2(0x212)]),_0x48808d[_0x11b1c2(0x2b7)]!==void 0x0&&(this[_0x11b1c2(0x1de)]=_0x48808d['unitId']),_0x48808d['subUnitId']!==void 0x0&&(this[_0x11b1c2(0x285)]=_0x48808d[_0x11b1c2(0x32f)]),_0x48808d[_0x11b1c2(0x2c0)]!==void 0x0&&(this['_isHighlighted']=_0x48808d[_0x11b1c2(0x2c0)]),this['transformByState']({'width':_0x48808d[_0x11b1c2(0x27b)]??_0x1b524b[_0x11b1c2(0x19b)]*0x2,'height':_0x48808d[_0x11b1c2(0x35c)]??_0x1b524b[_0x11b1c2(0x19b)]*0x2});}[_0x541acc(0x273)](_0x415bdf){const _0xee7a45=_0x541acc;let _0x1c2d4c=this[_0xee7a45(0x1ce)]?la[_0xee7a45(0x1c7)]:la[_0xee7a45(0x22e)];_0x4c063a['drawWith'](_0x415bdf,{'radius':_0x1b524b['cxnPointRadius'],'fill':_0x1c2d4c[_0xee7a45(0x2da)],'stroke':_0x1c2d4c[_0xee7a45(0x133)],'strokeWidth':_0x1c2d4c[_0xee7a45(0x2ec)],'evented':!0x0});}};let da=class extends _0x50d788{constructor(_0x34c532,_0x23e493,_0x9ea36b,_0x2d1793){const _0x5918d1=_0x541acc;super(),this[_0x5918d1(0x226)]=_0x34c532,this[_0x5918d1(0x232)]=_0x23e493,this[_0x5918d1(0x1b6)]=_0x9ea36b,this[_0x5918d1(0x1da)]=_0x2d1793,q(this,'_connectionSiteObjects',[]),q(this,_0x5918d1(0x240),null),q(this,_0x5918d1(0x329),-0x1),q(this,'_currentScene',null),q(this,'_unitId',''),q(this,_0x5918d1(0x285),''),q(this,_0x5918d1(0x2c7),null);}[_0x541acc(0x18e)](_0x1d7708,_0x58c1e7,_0x56ed4b,_0xb24811){const _0x4be4d1=_0x541acc;this[_0x4be4d1(0x324)]=_0x1d7708,this['_unitId']=_0x58c1e7,this[_0x4be4d1(0x285)]=_0x56ed4b,this[_0x4be4d1(0x2c7)]=_0xb24811;}['updateConnectionDetection'](_0x50d90b){const _0x10d1f9=_0x541acc;if(!this['_currentScene'])return null;let _0x30d4db=this[_0x10d1f9(0xc6)](_0x50d90b);return _0x30d4db?(this[_0x10d1f9(0x240)]!==_0x30d4db[_0x10d1f9(0x266)]&&(this[_0x10d1f9(0x110)](),this['_showConnectionSites'](_0x30d4db[_0x10d1f9(0x266)],_0x30d4db[_0x10d1f9(0x31f)]),this[_0x10d1f9(0x240)]=_0x30d4db[_0x10d1f9(0x266)]),this[_0x10d1f9(0x2ae)](_0x50d90b)):(this[_0x10d1f9(0x240)]!==null&&(this[_0x10d1f9(0x110)](),this[_0x10d1f9(0x240)]=null),null);}[_0x541acc(0x2b4)](){const _0x1ca3dc=_0x541acc;this['_clearConnectionSites'](),this[_0x1ca3dc(0x324)]=null,this[_0x1ca3dc(0x240)]=null,this[_0x1ca3dc(0x329)]=-0x1,this['_draggingConnectorId']=null;}[_0x541acc(0xe2)](){const _0x2a285e=_0x541acc;return this[_0x2a285e(0x240)]===null||this[_0x2a285e(0x329)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x2a285e(0x329)]};}[_0x541acc(0xc6)](_0x5b74f6){const _0x9bf733=_0x541acc;let _0x308d3d=this['_drawingManagerService']['getDrawingData'](this[_0x9bf733(0x1de)],this[_0x9bf733(0x285)]);for(let _0x2f1cf9 of Object[_0x9bf733(0x21a)](_0x308d3d)){if(_0x2f1cf9===this[_0x9bf733(0x2c7)]||_0x308d3d[_0x2f1cf9][_0x9bf733(0x2e1)]!==_0x4a245a[_0x9bf733(0x1f9)])continue;let _0xd009c4=this[_0x9bf733(0x1da)][_0x9bf733(0x29b)](this['_unitId'],this['_subUnitId'],_0x2f1cf9);if(!_0xd009c4||_0x3fd6c6(_0xd009c4[_0x9bf733(0x259)]())||_0xd009c4['getConnectionSiteList']()['length']===0x0||!this[_0x9bf733(0x324)])continue;let _0xb69db0=_0x191ead({'unitId':this[_0x9bf733(0x1de)],'subUnitId':this['_subUnitId'],'drawingId':_0x2f1cf9}),_0x4ae087=this[_0x9bf733(0x324)]['getObjectIncludeInGroup'](_0xb69db0);if(!_0x4ae087)continue;let {left:_0x39580c,top:_0x1d9d8e,width:_0x387ef0,height:_0x1d984a}=_0x4ae087['getRealBound'](),_0x5372d6=_0x39580c+_0x387ef0/0x2,_0x42e78a=_0x1d9d8e+_0x1d984a/0x2,_0x1ff30a=_0x4ae087[_0x9bf733(0xc5)][_0x9bf733(0x24e)](),_0x5468c7=new _0x39f1ac([_0x1ff30a[0x0],_0x1ff30a[0x1],_0x1ff30a[0x2],_0x1ff30a[0x3],_0x5372d6,_0x42e78a]),_0xfb7740=_0x4ae087['getParent'](),_0xec9533=(_0x4ae087[_0x9bf733(0x115)]&&(_0xfb7740==null?void 0x0:_0xfb7740[_0x9bf733(0xd1)])===_0x2a8676['GROUP']?_0xfb7740[_0x9bf733(0x1d8)]['multiply'](_0x5468c7):_0x5468c7)[_0x9bf733(0x185)]()[_0x9bf733(0x12d)](_0x5b74f6),_0x1d71bc=_0x387ef0/0x2,_0x30fe9c=_0x1d984a/0x2;if(_0xec9533['x']>=-_0x1d71bc-0x5&&_0xec9533['x']<=_0x1d71bc+0x5&&_0xec9533['y']>=-_0x30fe9c-0x5&&_0xec9533['y']<=_0x30fe9c+0x5)return{'shapeId':_0x2f1cf9,'shapeModel':_0xd009c4};}return null;}['_showConnectionSites'](_0x4b00ad,_0x3bf174){const _0x2ea1ac=_0x541acc;if(!this['_currentScene'])return;let _0x157af2=_0x191ead({'unitId':this[_0x2ea1ac(0x1de)],'subUnitId':this[_0x2ea1ac(0x285)],'drawingId':_0x4b00ad}),_0x111f5a=this['_currentScene'][_0x2ea1ac(0x13f)](_0x157af2);if(!_0x111f5a)return;let {left:_0x2112bd,top:_0x2e4c9d,width:_0x10ea74,height:_0x34d44b}=_0x111f5a[_0x2ea1ac(0x1b8)](),_0x168e93=_0x2112bd+_0x10ea74/0x2,_0x28236f=_0x2e4c9d+_0x34d44b/0x2,_0x18097b=_0x111f5a[_0x2ea1ac(0xc5)]['getMatrix'](),_0x163e92=new _0x39f1ac([_0x18097b[0x0],_0x18097b[0x1],_0x18097b[0x2],_0x18097b[0x3],_0x168e93,_0x28236f]),_0x1b2370=_0x111f5a[_0x2ea1ac(0x36c)](),_0x444f36=_0x111f5a[_0x2ea1ac(0x115)]&&(_0x1b2370==null?void 0x0:_0x1b2370[_0x2ea1ac(0xd1)])===_0x2a8676[_0x2ea1ac(0x2ac)]?_0x1b2370[_0x2ea1ac(0x1d8)][_0x2ea1ac(0x171)](_0x163e92):_0x163e92;_0x3bf174[_0x2ea1ac(0x26b)]({'width':_0x10ea74,'height':_0x34d44b});let _0xdc41c1=_0x3bf174[_0x2ea1ac(0xfc)]();for(let _0x1aeae8 of _0xdc41c1){let _0x2b4daf=_0x1aeae8['x']-_0x10ea74/0x2,_0x3120d8=_0x1aeae8['y']-_0x34d44b/0x2,_0x404135=_0x444f36[_0x2ea1ac(0x12d)]({'x':_0x2b4daf,'y':_0x3120d8}),_0x256c16=_0x404135['x'],_0x4951a5=_0x404135['y'],_0x577ab4=new ua('connection-site-'+_0x4b00ad+'-'+_0x1aeae8[_0x2ea1ac(0x302)],{'left':_0x256c16-_0x1b524b[_0x2ea1ac(0x19b)],'top':_0x4951a5-_0x1b524b['cxnPointRadius'],'targetShapeId':_0x4b00ad,'cxnIndex':_0x1aeae8[_0x2ea1ac(0x302)],'unitId':this[_0x2ea1ac(0x1de)],'subUnitId':this[_0x2ea1ac(0x285)],'width':_0x1b524b[_0x2ea1ac(0x19b)]*0x2,'height':_0x1b524b[_0x2ea1ac(0x19b)]*0x2,'zIndex':_0x5cbc31+0x2,'evented':!0x1});this[_0x2ea1ac(0xb4)][_0x2ea1ac(0x288)](_0x577ab4),this['_currentScene']['addObject'](_0x577ab4,_0x5cbc31+0x2);}}[_0x541acc(0x2ae)](_0x1ec502){const _0x38f7c8=_0x541acc;let _0x58bbc8=null,_0x4451f1=0x1/0x0,_0x3dec1f=null;for(let _0x5695cb of this['_connectionSiteObjects']){let _0x39397c=_0x5695cb['left']+_0x1b524b[_0x38f7c8(0x19b)],_0x3ee879=_0x5695cb['top']+_0x1b524b[_0x38f7c8(0x19b)],_0x34af2d=_0x1ec502['x']-_0x39397c,_0x5ccfe1=_0x1ec502['y']-_0x3ee879,_0x2bf6f1=Math[_0x38f7c8(0xea)](_0x34af2d*_0x34af2d+_0x5ccfe1*_0x5ccfe1);_0x2bf6f1<_0x4451f1&&(_0x4451f1=_0x2bf6f1,_0x58bbc8=_0x5695cb,_0x3dec1f={'x':_0x39397c,'y':_0x3ee879});}let _0x1daecc=_0x4451f1<=0xa&&_0x58bbc8?_0x58bbc8[_0x38f7c8(0x321)]()[_0x38f7c8(0x212)]:-0x1;if(_0x1daecc!==this['_highlightedSiteIndex']){for(let _0x50fe1 of this[_0x38f7c8(0xb4)]){let _0x33c608=_0x50fe1[_0x38f7c8(0x321)]();_0x50fe1[_0x38f7c8(0x34f)](_0x33c608[_0x38f7c8(0x212)]===_0x1daecc);}this[_0x38f7c8(0x329)]=_0x1daecc;}if(_0x4451f1<=0xa&&_0x58bbc8&&_0x3dec1f){let _0x319354=_0x58bbc8[_0x38f7c8(0x321)](),_0x50ebbf=this['_getConnectionSiteAngle'](_0x319354[_0x38f7c8(0x266)],_0x319354[_0x38f7c8(0x212)]);return{'shapeId':_0x319354['shapeId'],'cxnIndex':_0x319354[_0x38f7c8(0x212)],'unitId':_0x319354[_0x38f7c8(0x2b7)],'subUnitId':_0x319354[_0x38f7c8(0x32f)],'worldPoint':_0x3dec1f,'angle':_0x50ebbf};}return null;}[_0x541acc(0x173)](_0x8d5697,_0x4997a1){const _0x5d23e4=_0x541acc;let _0x329eb2=this['_sheetsShapeService']['getShapeModel'](this[_0x5d23e4(0x1de)],this[_0x5d23e4(0x285)],_0x8d5697);if(!_0x329eb2)return 0x0;let _0x4b94f5=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x5d23e4(0x1de)],'subUnitId':this['_subUnitId'],'drawingId':_0x8d5697});if(!(_0x4b94f5!=null&&_0x4b94f5[_0x5d23e4(0xc5)]))return 0x0;let {width:_0x449a47=0x0,height:_0x1ddffc=0x0,flipX:_0x5b5ddb=!0x1,flipY:_0x4d62e8=!0x1}=_0x4b94f5['transform'];_0x329eb2[_0x5d23e4(0x26b)]({'width':_0x449a47,'height':_0x1ddffc});let _0x451f5a=_0x329eb2[_0x5d23e4(0xfc)]()['find'](_0x5e92fe=>_0x5e92fe['index']===_0x4997a1);if(!_0x451f5a)return 0x0;let _0x308cef=_0x451f5a['ang']/0xea60;return _0x5b5ddb&&(_0x308cef=0xb4-_0x308cef),_0x4d62e8&&(_0x308cef=-_0x308cef),_0x308cef=(_0x308cef%0x168+0x168)%0x168,_0x308cef;}[_0x541acc(0x110)](){const _0x37769f=_0x541acc;for(let _0x498322 of this[_0x37769f(0xb4)])_0x498322[_0x37769f(0x1ae)]();this[_0x37769f(0xb4)]=[],this[_0x37769f(0x329)]=-0x1;}[_0x541acc(0x1ae)](){const _0x198bbc=_0x541acc;this['_clearConnectionSites'](),super[_0x198bbc(0x1ae)]();}};da=X([Y(0x1,_0x53ba9c(_0x22bed8)),Y(0x2,_0x53ba9c(_0x5399a4)),Y(0x3,_0x53ba9c(_0x27864b))],da);let fa=class extends _0x50d788{constructor(_0x2d6e82,_0x42027e,_0xea1f5,_0x57beef,_0x241ec6){const _0x5a8fac=_0x541acc;super(),this[_0x5a8fac(0x376)]=_0x2d6e82,this[_0x5a8fac(0x131)]=_0x42027e,this[_0x5a8fac(0x15e)]=_0xea1f5,this[_0x5a8fac(0xff)]=_0x57beef,this['_groupCopyPasteController']=_0x241ec6,q(this,_0x5a8fac(0x183),void 0x0),this[_0x5a8fac(0x28c)](),this[_0x5a8fac(0x161)]();}get[_0x541acc(0x243)](){const _0x1f3402=_0x541acc;return this[_0x1f3402(0x15e)]['getFocusDrawings']();}[_0x541acc(0x161)](){const _0x2ea142=_0x541acc;this[_0x2ea142(0x195)][_0x2ea142(0x17d)](({fromUnitId:_0x454a7e,fromSubUnitId:_0x51d31a,toUnitId:_0x51812f,toSubUnitId:_0x31bdd0,idMap:_0x3feba5})=>{const _0x14bac2=_0x2ea142;let _0x23b0c4=[],_0x233c2f=[];for(let [_0x2fc756,_0xc387e7]of _0x3feba5[_0x14bac2(0x17b)]()){let _0xfed5b4=this[_0x14bac2(0xff)][_0x14bac2(0x29b)](_0x454a7e,_0x51d31a,_0x2fc756);if(!_0xfed5b4)continue;let _0xb2cdf2=_0xfed5b4['getShapeType'](),_0x1ae39d=JSON[_0x14bac2(0x25c)](JSON['stringify'](_0xfed5b4[_0x14bac2(0x351)]()));if(_0x1ae39d[_0x14bac2(0x2ad)]){var _0x1f7357,_0x5231d0;let _0x3ceb4c=(_0x1f7357=_0x1ae39d[_0x14bac2(0x2ad)]['from'])==null?void 0x0:_0x1f7357['shapeId'],_0x449002=(_0x5231d0=_0x1ae39d[_0x14bac2(0x2ad)]['to'])==null?void 0x0:_0x5231d0[_0x14bac2(0x266)],_0x48b789=!_0x3ceb4c||_0x3feba5[_0x14bac2(0x1bd)](_0x3ceb4c),_0x575abd=!_0x449002||_0x3feba5['has'](_0x449002);_0x48b789&&_0x3ceb4c&&_0x1ae39d['relation'][_0x14bac2(0x130)]?_0x1ae39d[_0x14bac2(0x2ad)]['from']={..._0x1ae39d['relation']['from'],'shapeId':_0x3feba5['get'](_0x3ceb4c)}:_0x1ae39d[_0x14bac2(0x2ad)]['from']=void 0x0,_0x575abd&&_0x449002&&_0x1ae39d[_0x14bac2(0x2ad)]['to']?_0x1ae39d[_0x14bac2(0x2ad)]['to']={..._0x1ae39d[_0x14bac2(0x2ad)]['to'],'shapeId':_0x3feba5[_0x14bac2(0x1e8)](_0x449002)}:_0x1ae39d[_0x14bac2(0x2ad)]['to']=void 0x0;}_0x23b0c4[_0x14bac2(0x288)]({'id':_0x48b536['id'],'params':{'unitId':_0x51812f,'subUnitId':_0x31bdd0,'shapeId':_0xc387e7,'shapeType':_0xb2cdf2,'shapeData':_0x1ae39d}}),_0x233c2f[_0x14bac2(0x288)]({'id':_0x5543d5['id'],'params':{'unitId':_0x51812f,'subUnitId':_0x31bdd0,'shapeId':_0xc387e7}});}return{'redos':_0x23b0c4,'undos':_0x233c2f};});}[_0x541acc(0x28c)](){const _0x1dc797=_0x541acc;this[_0x1dc797(0x328)](this[_0x1dc797(0x131)]['addClipboardHook']({'id':_0x1dc797(0x107),'onBeforeCopyFocusedObject':(_0x1f95a6,_0xa4f86f,_0x754fd0)=>{const _0x540cd1=_0x1dc797;this[_0x540cd1(0x183)]=null;let _0x3cd993=this['_focusedDrawings'][_0x540cd1(0x305)](_0x1f5a1f=>_0x1f5a1f[_0x540cd1(0x2e1)]===_0x4a245a[_0x540cd1(0x1f9)]);return _0x3cd993[_0x540cd1(0xf6)]!==0x0&&(this['_copyInfo']={'unitId':_0x1f95a6,'subUnitId':_0xa4f86f,'copyType':_0x754fd0,'drawings':_0x3cd993},!0x0);},'onBeforeCopy':(_0x522870,_0x5edef8,_0x42f168,_0x30d067)=>{const _0x32ade5=_0x1dc797;this['_copyInfo']=null,this[_0x32ade5(0x358)](_0x522870,_0x5edef8,_0x42f168,_0x30d067);},'onPasteCells':(_0x3e8a97,_0x14eb23,_0x12cae1,_0x309185)=>{const _0x380fe2=_0x1dc797;if(!_0x309185[_0x380fe2(0x21e)]||!_0x3e8a97||!this[_0x380fe2(0x183)])return{'redos':[],'undos':[]};let {pasteType:_0x209c84}=_0x309185;return _0x209c84===_0x501716['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x14eb23,this[_0x380fe2(0x183)]['copyType']===_0x64091e[_0x380fe2(0x120)]):{'redos':[],'undos':[]};}}));}[_0x541acc(0x358)](_0x1ad4f2,_0x27b175,_0x2b9b5d,_0x40b930){const _0x3cae84=_0x541acc;let _0x29da04=this[_0x3cae84(0x376)][_0x3cae84(0x342)](_0x1ad4f2,_0x27b175);if(!_0x29da04)return;let _0x43a333=_0x307ceb(_0x29da04,_0x2b9b5d);if(!_0x43a333)return;let {startX:_0x2a0f93,endX:_0x549750,startY:_0x174aa1,endY:_0x5ab628}=_0x43a333,_0x128e10=this[_0x3cae84(0x15e)][_0x3cae84(0x13b)](_0x1ad4f2,_0x27b175),_0x2c32cb=[];for(let [_0x40b4be,_0x5e3e55]of Object[_0x3cae84(0x17b)](_0x128e10)){if(_0x5e3e55[_0x3cae84(0x2e1)]!==_0x4a245a[_0x3cae84(0x1f9)])continue;let {transform:_0x5a56af}=_0x5e3e55;if(!_0x5a56af)continue;let {left:_0x19401b=0x0,top:_0x296ac9=0x0,width:_0xd79a54=0x0,height:_0x333564=0x0}=_0x5a56af;_0x2a0f93<=_0x19401b&&_0x549750>=_0x19401b+_0xd79a54&&_0x174aa1<=_0x296ac9&&_0x5ab628>=_0x296ac9+_0x333564&&_0x2c32cb['push'](_0x5e3e55);}_0x2c32cb[_0x3cae84(0xf6)]>0x0&&(this[_0x3cae84(0x183)]={'unitId':_0x1ad4f2,'subUnitId':_0x27b175,'copyType':_0x40b930,'copyRange':_0x2b9b5d,'drawings':_0x2c32cb});}['_generatePasteMutations'](_0x8e05fa,_0x392fef){const _0xfe00e7=_0x541acc;let {unitId:_0x4d0e27,subUnitId:_0x404f5b,range:_0x1db8ea}=_0x8e05fa,_0x459134=this[_0xfe00e7(0x376)]['getSkeleton'](_0x4d0e27,_0x404f5b);if(!_0x459134)return{'redos':[],'undos':[]};let _0x5276aa=_0x1e7cec(_0x1db8ea),{unitId:_0x5e0800,subUnitId:_0x212a57,copyRange:_0x88dea5,drawings:_0x419d02}=this[_0xfe00e7(0x183)],_0x2cb0fe=this[_0xfe00e7(0x376)]['getSkeleton'](_0x5e0800,_0x212a57);if(!_0x2cb0fe)return{'redos':[],'undos':[]};let _0x3d1349;if(!_0x88dea5){let _0x3da7dc=0x1/0x0,_0x2578b1=0x1/0x0;for(let _0x2e1a2b of _0x419d02){let {left:_0x4108a1=0x0,top:_0x31f4e2=0x0}=_0x2e1a2b['transform']??{};_0x4108a1<_0x3da7dc&&(_0x3da7dc=_0x4108a1),_0x31f4e2<_0x2578b1&&(_0x2578b1=_0x31f4e2);}_0x3da7dc!==0x1/0x0&&_0x2578b1!==0x1/0x0&&(_0x3d1349={'left':_0x3da7dc,'top':_0x2578b1});}let _0x5c4b46=new Map();if(!_0x392fef){for(let _0x31b2c8 of _0x419d02)_0x5c4b46['set'](_0x31b2c8[_0xfe00e7(0x162)],_0x21450c());}let _0x4ae4d6=[],_0x13d7b4=[];for(let _0x234fd8 of _0x419d02){let {drawingId:_0x1f3158,transform:_0x42b595,sheetTransform:_0x448437}=_0x234fd8;if(!_0x42b595||!_0x448437)continue;let _0x2ff2e6=this[_0xfe00e7(0x248)]({'transform':_0x42b595,'sheetTransform':_0x448437},{'skeleton':_0x2cb0fe,'range':_0x88dea5},{'skeleton':_0x459134,'range':_0x5276aa},_0x3d1349);if(_0x392fef){let {redos:_0x208111,undos:_0x3207dd}=this[_0xfe00e7(0x19f)]({'fromUnitId':_0x5e0800,'fromSubUnitId':_0x212a57,'toUnitId':_0x4d0e27,'toSubUnitId':_0x404f5b,'drawing':_0x234fd8,'newTransforms':_0x2ff2e6});_0x4ae4d6[_0xfe00e7(0x288)](..._0x208111),_0x13d7b4[_0xfe00e7(0x288)](..._0x3207dd);continue;}let {redos:_0x596ad2,undos:_0x439a08}=this['_generateCopyPasteMutations']({'toUnitId':_0x4d0e27,'toSubUnitId':_0x404f5b,'drawing':_0x234fd8,'newTransforms':_0x2ff2e6,'newDrawingId':_0x5c4b46['get'](_0x1f3158),'idMap':_0x5c4b46});_0x4ae4d6[_0xfe00e7(0x288)](..._0x596ad2),_0x13d7b4[_0xfe00e7(0x288)](..._0x439a08);}return{'redos':_0x4ae4d6,'undos':_0x13d7b4};}[_0x541acc(0x19f)](_0x5ec95f){const _0x174e0f=_0x541acc;let {fromUnitId:_0x45aa07,fromSubUnitId:_0x347470,toUnitId:_0x1c2a7b,toSubUnitId:_0x4a9287,drawing:_0x483b6,newTransforms:_0x57df8c}=_0x5ec95f,_0xe272eb={..._0x483b6,'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'transform':_0x57df8c[_0x174e0f(0xc5)],'sheetTransform':_0x57df8c[_0x174e0f(0x337)]};if(_0x1c2a7b===_0x45aa07&&_0x4a9287===_0x347470){let {redo:_0x46594e,undo:_0x300e0d,objects:_0xeacbb}=this[_0x174e0f(0x15e)][_0x174e0f(0x168)]([_0xe272eb]);return{'redos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0xf8)],'op':_0x46594e,'objects':_0xeacbb}}],'undos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0xf8)],'op':_0x300e0d,'objects':_0xeacbb}}]};}{let _0xd7d901=this[_0x174e0f(0x15e)][_0x174e0f(0x379)]([_0x483b6]),_0x57070e=this[_0x174e0f(0x15e)]['getBatchAddOp']([_0xe272eb]),_0x7ff3fd=this[_0x174e0f(0xff)][_0x174e0f(0x29b)](_0x483b6[_0x174e0f(0x2b7)],_0x483b6[_0x174e0f(0x32f)],_0x483b6[_0x174e0f(0x162)]);if(!_0x7ff3fd)return{'redos':[],'undos':[]};let _0x514148=_0x7ff3fd[_0x174e0f(0x259)](),_0x4e772e=JSON['parse'](JSON[_0x174e0f(0x142)](_0x7ff3fd[_0x174e0f(0x351)]()));return{'redos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'type':_0x50e51e[_0x174e0f(0x2d8)],'op':_0xd7d901[_0x174e0f(0x33f)],'objects':_0xd7d901[_0x174e0f(0x2a4)]}},{'id':_0x5543d5['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'shapeId':_0x483b6['drawingId']}},{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0x2f5)],'op':_0x57070e[_0x174e0f(0x33f)],'objects':_0x57070e['objects']}},{'id':_0x48b536['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'shapeId':_0x483b6[_0x174e0f(0x162)],'shapeType':_0x514148,'shapeData':_0x4e772e}}],'undos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'type':_0x50e51e[_0x174e0f(0x2f5)],'op':_0xd7d901[_0x174e0f(0x174)],'objects':_0xd7d901['objects']}},{'id':_0x48b536['id'],'params':{'unitId':_0x45aa07,'subUnitId':_0x347470,'shapeId':_0x483b6['drawingId'],'shapeType':_0x514148,'shapeData':_0x4e772e}},{'id':_0xc118c9['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'type':_0x50e51e[_0x174e0f(0x2d8)],'op':_0x57070e[_0x174e0f(0x174)],'objects':_0x57070e['objects']}},{'id':_0x5543d5['id'],'params':{'unitId':_0x1c2a7b,'subUnitId':_0x4a9287,'shapeId':_0x483b6[_0x174e0f(0x162)]}}]};}}['_generateCopyPasteMutations'](_0x3a7a63){const _0xf22a32=_0x541acc;let {toUnitId:_0x2413bd,toSubUnitId:_0x1be749,drawing:_0x6a2a59,newTransforms:_0x58f8e4,newDrawingId:_0x4e1072,idMap:_0x217e78}=_0x3a7a63,_0x249f14={..._0x6a2a59,'unitId':_0x2413bd,'subUnitId':_0x1be749,'drawingId':_0x4e1072,'transform':_0x58f8e4[_0xf22a32(0xc5)],'sheetTransform':_0x58f8e4[_0xf22a32(0x337)]},{redo:_0x4148ac,undo:_0x2782dd,objects:_0x168cbe}=this[_0xf22a32(0x15e)][_0xf22a32(0x304)]([_0x249f14]),_0x38b1b3=this[_0xf22a32(0xff)][_0xf22a32(0x29b)](_0x6a2a59[_0xf22a32(0x2b7)],_0x6a2a59[_0xf22a32(0x32f)],_0x6a2a59[_0xf22a32(0x162)]);if(!_0x38b1b3)return{'redos':[],'undos':[]};let _0x2d8a29=_0x38b1b3['getShapeType'](),_0x32bac6=JSON[_0xf22a32(0x25c)](JSON[_0xf22a32(0x142)](_0x38b1b3[_0xf22a32(0x351)]()));if(_0x32bac6['relation']){var _0xc0f62b,_0x463538;let _0x30d219=(_0xc0f62b=_0x32bac6[_0xf22a32(0x2ad)]['from'])==null?void 0x0:_0xc0f62b[_0xf22a32(0x266)],_0x382d75=(_0x463538=_0x32bac6[_0xf22a32(0x2ad)]['to'])==null?void 0x0:_0x463538[_0xf22a32(0x266)],_0x3d0300=!_0x30d219||_0x217e78[_0xf22a32(0x1bd)](_0x30d219),_0x4514c5=!_0x382d75||_0x217e78[_0xf22a32(0x1bd)](_0x382d75);_0x3d0300&&_0x30d219&&_0x32bac6[_0xf22a32(0x2ad)]['from']?_0x32bac6[_0xf22a32(0x2ad)]['from']={..._0x32bac6['relation'][_0xf22a32(0x130)],'shapeId':_0x217e78[_0xf22a32(0x1e8)](_0x30d219)}:_0x32bac6[_0xf22a32(0x2ad)][_0xf22a32(0x130)]=void 0x0,_0x4514c5&&_0x382d75&&_0x32bac6[_0xf22a32(0x2ad)]['to']?_0x32bac6[_0xf22a32(0x2ad)]['to']={..._0x32bac6['relation']['to'],'shapeId':_0x217e78['get'](_0x382d75)}:_0x32bac6[_0xf22a32(0x2ad)]['to']=void 0x0;}return{'redos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'type':_0x50e51e[_0xf22a32(0x2f5)],'op':_0x4148ac,'objects':_0x168cbe}},{'id':_0x48b536['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'shapeId':_0x4e1072,'shapeType':_0x2d8a29,'shapeData':_0x32bac6}}],'undos':[{'id':_0xc118c9['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'type':_0x50e51e['REMOVE'],'op':_0x2782dd,'objects':_0x168cbe}},{'id':_0x5543d5['id'],'params':{'unitId':_0x2413bd,'subUnitId':_0x1be749,'shapeId':_0x4e1072}}]};}[_0x541acc(0x248)](_0x18b3bb,_0x2571ae,_0x372686,_0x488adc){const _0x492405=_0x541acc;let {range:_0x23bd9d,skeleton:_0x489144}=_0x2571ae,{range:_0x39f0d4,skeleton:_0x5f2af1}=_0x372686,{transform:_0x24613b,sheetTransform:_0x2bfd41}=_0x18b3bb,_0x46d5bb={..._0x24613b};if(_0x23bd9d){let _0x4a6b48=_0x307ceb(_0x489144,_0x23bd9d),_0x74a6c2=_0x307ceb(_0x5f2af1,_0x39f0d4);if(_0x4a6b48&&_0x74a6c2){let _0x78dde9=_0x74a6c2['startX']-_0x4a6b48[_0x492405(0x233)],_0x548abc=_0x74a6c2['startY']-_0x4a6b48[_0x492405(0x11a)];_0x46d5bb['left']=(_0x46d5bb['left']??0x0)+_0x78dde9,_0x46d5bb[_0x492405(0x2f1)]=(_0x46d5bb[_0x492405(0x2f1)]??0x0)+_0x548abc;}}else{let _0x2026da=_0x307ceb(_0x5f2af1,_0x39f0d4);if(_0x488adc&&_0x2026da){let _0x5dbddd=(_0x46d5bb[_0x492405(0x1d7)]??0x0)-_0x488adc[_0x492405(0x1d7)],_0x32c1ae=(_0x46d5bb[_0x492405(0x2f1)]??0x0)-_0x488adc['top'];_0x46d5bb['left']=_0x2026da[_0x492405(0x233)]+_0x5dbddd,_0x46d5bb[_0x492405(0x2f1)]=_0x2026da[_0x492405(0x11a)]+_0x32c1ae;}else _0x46d5bb[_0x492405(0x1d7)]=_0x2026da==null?void 0x0:_0x2026da[_0x492405(0x233)],_0x46d5bb[_0x492405(0x2f1)]=_0x2026da==null?void 0x0:_0x2026da['startY'];}return{'transform':_0x46d5bb,'sheetTransform':_0x2bed6e(_0x46d5bb,_0x5f2af1)??_0x2bfd41};}};fa=X([Y(0x0,_0x53ba9c(_0xfe3e0a)),Y(0x1,_0x53ba9c(_0x1b5861)),Y(0x2,_0x53ba9c(_0x4202dc)),Y(0x3,_0x53ba9c(_0x27864b)),Y(0x4,_0x53ba9c(_0x87ae7f))],fa);var pa=class extends _0x17e18a{constructor(_0x12b5b2,_0x38dcf5){const _0x40735d=_0x541acc;super(_0x12b5b2,_0x38dcf5),q(this,_0x40735d(0x37d),null),q(this,_0x40735d(0x341),null),q(this,_0x40735d(0x1de),null),q(this,_0x40735d(0x285),null),q(this,_0x40735d(0x299),!0x1),_0x38dcf5&&this[_0x40735d(0x1d3)](_0x38dcf5);}[_0x541acc(0x105)](){const _0x13e6c2=_0x541acc;return{'unitId':this[_0x13e6c2(0x1de)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x13e6c2(0x37d)]};}['setShapeProps'](_0x323900){const _0x49e2fb=_0x541acc;_0x323900[_0x49e2fb(0x266)]!==void 0x0&&(this[_0x49e2fb(0x37d)]=_0x323900['shapeId']),_0x323900['unitId']!==void 0x0&&(this[_0x49e2fb(0x1de)]=_0x323900[_0x49e2fb(0x2b7)]),_0x323900[_0x49e2fb(0x32f)]!==void 0x0&&(this[_0x49e2fb(0x285)]=_0x323900[_0x49e2fb(0x32f)]),_0x323900[_0x49e2fb(0x260)]!==void 0x0&&(this[_0x49e2fb(0x299)]=_0x323900[_0x49e2fb(0x260)]),this[_0x49e2fb(0x26e)]({'width':_0x323900['width'],'height':_0x323900['height']});}['_draw'](_0x306a96){const _0x32fbab=_0x541acc;_0x4c063a[_0x32fbab(0xb1)](_0x306a96,{'radius':_0x1b524b['cxnPointRadius'],'fill':_0x1b524b[_0x32fbab(0x2d1)],'stroke':_0x1b524b[_0x32fbab(0x221)],'strokeWidth':_0x1b524b[_0x32fbab(0x1d5)],'evented':!0x0});}};let ma=class extends _0x50d788{constructor(_0x341c5a,_0x595d30,_0x1c919e,_0x3c0070,_0x32ac30,_0x35066d,_0x1e01c2,_0x2a9ec8){const _0x53db3c=_0x541acc;super(),this[_0x53db3c(0x226)]=_0x341c5a,this['_commandService']=_0x595d30,this['_renderManagerService']=_0x1c919e,this[_0x53db3c(0x1b6)]=_0x3c0070,this[_0x53db3c(0x35a)]=_0x32ac30,this[_0x53db3c(0x1da)]=_0x35066d,this[_0x53db3c(0x343)]=_0x1e01c2,this[_0x53db3c(0x27d)]=_0x2a9ec8,q(this,_0x53db3c(0x26d),void 0x0),q(this,_0x53db3c(0x1de),void 0x0),q(this,_0x53db3c(0x285),void 0x0),q(this,'_connectorObjects',[]),q(this,_0x53db3c(0x2dc),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x53db3c(0x113),void 0x0),q(this,_0x53db3c(0x16f),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0x53db3c(0x10e),!0x1),q(this,_0x53db3c(0x34e),void 0x0),q(this,_0x53db3c(0x1bc),void 0x0),q(this,_0x53db3c(0xb9),null),this[_0x53db3c(0x284)]();}[_0x541acc(0x284)](){const _0x2bc788=_0x541acc;this[_0x2bc788(0x34a)](),this[_0x2bc788(0xe9)]();}[_0x541acc(0x202)](){const _0x143928=_0x541acc;if(!this['_unitId']||!this[_0x143928(0x285)]||!this['_activeShapeId'])return;let _0x18fc00={'unitId':this[_0x143928(0x1de)],'subUnitId':this[_0x143928(0x285)],'drawingId':this['_activeShapeId']},{transform:_0x43200a}=this[_0x143928(0x1b6)]['getDrawingByParam'](_0x18fc00);if(_0x43200a)return{'left':_0x43200a[_0x143928(0x1d7)]||0x0,'top':_0x43200a['top']||0x0,'width':_0x43200a['width']||0x0,'height':_0x43200a['height']||0x0,'flipX':_0x43200a[_0x143928(0x269)]||!0x1,'flipY':_0x43200a[_0x143928(0x143)]||!0x1,'angle':_0x43200a[_0x143928(0xcf)]};}[_0x541acc(0x155)](){const _0x1e22ad=_0x541acc;if(this[_0x1e22ad(0x1de)]===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x4a1c6c=this[_0x1e22ad(0x232)]['getRenderUnitById'](this[_0x1e22ad(0x1de)]);if(!_0x4a1c6c||!_0x4a1c6c[_0x1e22ad(0x320)](_0x3ea870)['getCurrentSkeleton']())return;let {scene:_0x2e4a8b}=_0x4a1c6c,_0x2f3f8e=this['_getDrawingRect']();if(!_0x2f3f8e)return;let _0x236f5f=this[_0x1e22ad(0x1da)][_0x1e22ad(0x29b)](this[_0x1e22ad(0x1de)],this[_0x1e22ad(0x285)],this[_0x1e22ad(0x26d)]);if(!_0x236f5f||!_0x3fd6c6(_0x236f5f[_0x1e22ad(0x259)]()))return;let _0x2bffd0=_0x236f5f['getConnectorLinePoints']();if(_0x2bffd0[_0x1e22ad(0xf6)]<0x2)return;let _0x2a7b82=new _0x5ed0a3(_0x2f3f8e),_0x125003=_0x2bffd0[0x0],_0x3e1b09=_0x2bffd0[_0x2bffd0[_0x1e22ad(0xf6)]-0x1],_0x201aeb=_0x2a7b82['localToWorld'](_0x125003),_0x542da2=_0x2a7b82['localToWorld'](_0x3e1b09);this['_addShapeConnectorHandlerObject'](_0x2e4a8b,{..._0x201aeb},!0x0),this[_0x1e22ad(0x2fb)](_0x2e4a8b,{..._0x542da2},!0x1);}['_addShapeConnectorHandlerObject'](_0x42b5f2,_0x80162f,_0x169507){const _0x3fd29d=_0x541acc;if(this[_0x3fd29d(0x26d)]===void 0x0||this['_unitId']===void 0x0||this[_0x3fd29d(0x285)]===void 0x0)return;let _0xcbd874=_0x3fd29d(0xdf)+this[_0x3fd29d(0x1de)]+'-'+this[_0x3fd29d(0x285)]+'-'+this[_0x3fd29d(0x26d)]+'-'+(_0x169507?_0x3fd29d(0x18b):_0x3fd29d(0x103)),_0xbd4dd7=_0x42b5f2[_0x3fd29d(0x13f)](_0xcbd874);if(_0xbd4dd7){_0xbd4dd7[_0x3fd29d(0x26e)]({'left':_0x80162f['x']-_0x1b524b[_0x3fd29d(0x19b)],'top':_0x80162f['y']-_0x1b524b['cxnPointRadius']});return;}let _0xcbc8a3=new pa(_0xcbd874,{'left':_0x80162f['x']-_0x1b524b[_0x3fd29d(0x19b)],'top':_0x80162f['y']-_0x1b524b[_0x3fd29d(0x19b)],'shapeId':this[_0x3fd29d(0x26d)],'unitId':this['_unitId'],'subUnitId':this[_0x3fd29d(0x285)],'isStartConnectorPoint':_0x169507,'width':_0x1b524b[_0x3fd29d(0x19b)]*0x2,'height':_0x1b524b[_0x3fd29d(0x19b)]*0x2,'zIndex':_0x5cbc31+0x1,'evented':!0x0});this['_connectorObjects'][_0x3fd29d(0x288)](_0xcbc8a3),this[_0x3fd29d(0x306)](_0xcbc8a3,_0x42b5f2,_0x169507),_0x42b5f2[_0x3fd29d(0x274)](_0xcbc8a3,_0x5cbc31+0x1);}[_0x541acc(0x216)](_0x299987,_0x177599){const _0x40a9d4=_0x541acc;var _0x5bdf9e;let _0x2f1342={'x':0x0,'y':0x0};if(!_0x299987||!_0x177599)return _0x2f1342;let _0xcc203=this[_0x40a9d4(0x232)][_0x40a9d4(0x365)](_0x299987);if(!_0xcc203||!_0xcc203[_0x40a9d4(0x320)](_0x3ea870)['getSkeleton'](_0x177599))return _0x2f1342;let _0x8dd0f3=_0xcc203[_0x40a9d4(0x320)](_0x2a747e),_0x3f3253=_0x8dd0f3==null?void 0x0:_0x8dd0f3['getCurrentScrollState']();if(!_0x3f3253)return _0x2f1342;let _0x54c4bf=(_0x5bdf9e=this[_0x40a9d4(0x35a)][_0x40a9d4(0xca)](_0x299987))==null?void 0x0:_0x5bdf9e[_0x40a9d4(0x10f)](_0x177599);if(!_0x54c4bf)return _0x2f1342;let _0x46a5b3=_0x1bffb4(_0x3f3253[_0x40a9d4(0xc3)],_0x3f3253[_0x40a9d4(0x151)],_0xcc203[_0x40a9d4(0x34c)],_0x54c4bf);return _0x46a5b3?{'x':_0x46a5b3['viewportScrollX'],'y':_0x46a5b3[_0x40a9d4(0x34d)]}:_0x2f1342;}['_getZoomRatio'](_0x2f740d,_0x155bea){const _0x41e3df=_0x541acc;var _0xa8100d;let _0x46dec7=(_0xa8100d=this[_0x41e3df(0x35a)][_0x41e3df(0xca)](_0x2f740d))==null?void 0x0:_0xa8100d[_0x41e3df(0x10f)](_0x155bea);return(_0x46dec7==null?void 0x0:_0x46dec7[_0x41e3df(0x37b)]())??0x1;}[_0x541acc(0x35e)](_0x884877,_0x9bbb47,_0x3aa005,_0x1cb1ca,_0x1925c2){const _0x3393a4=_0x541acc;this[_0x3393a4(0x34e)]['unsubscribe'](),this[_0x3393a4(0x1bc)][_0x3393a4(0x1ab)](),this[_0x3393a4(0x343)][_0x3393a4(0x25a)]();let _0x562236=this[_0x3393a4(0xb9)];this[_0x3393a4(0x27d)][_0x3393a4(0x2b4)]();let _0x26e01e=this[_0x3393a4(0x216)](this['_unitId'],this[_0x3393a4(0x285)]),_0x15ad7a=this[_0x3393a4(0x16c)](this[_0x3393a4(0x1de)],this[_0x3393a4(0x285)]),_0x182773={'x':_0x3aa005[_0x3393a4(0x1e6)]/_0x15ad7a+_0x26e01e['x'],'y':_0x3aa005[_0x3393a4(0x1e3)]/_0x15ad7a+_0x26e01e['y']},_0x282cc4=_0x562236?_0x562236[_0x3393a4(0x37f)]:_0x182773,_0x42241f=_0x1cb1ca?this[_0x3393a4(0x113)][_0x3393a4(0x2ea)]():this[_0x3393a4(0x113)][_0x3393a4(0x16a)](),_0x317de5=this['_activeShapeModel'][_0x3393a4(0x259)]();_0x42241f?this[_0x3393a4(0x27f)](_0x42241f,_0x282cc4,_0x1cb1ca,_0x562236,_0x1925c2):this[_0x3393a4(0x230)](_0x9bbb47,_0x282cc4,_0x1cb1ca,_0x562236,_0x1925c2,_0x317de5),this[_0x3393a4(0x16f)]=!0x1,this[_0x3393a4(0x10e)]=!0x1,this[_0x3393a4(0xb9)]=null,_0x884877[_0x3393a4(0x375)]();}[_0x541acc(0x230)](_0x1b5664,_0x352509,_0x4a1e86,_0x46e404,_0x119713,_0x440c33){const _0x5ca38e=_0x541acc;let _0x4ac4b7=_0x440c33===_0x29a3a1['Line']||_0x440c33===_0x29a3a1[_0x5ca38e(0x35b)],_0x4af01a=_0x4a1e86?_0x352509:_0x1b5664,_0x2a519c=_0x4a1e86?_0x1b5664:_0x352509,_0xe90da=this['_activeShapeModel'][_0x5ca38e(0xd8)](),_0x1e6d22=this['_activeShapeModel'][_0x5ca38e(0x259)](),_0x3243cc=_0x1b6450(_0x1e6d22),_0x59cea3=_0x5ed0a3[_0x5ca38e(0x18d)](_0xe90da,_0x3243cc),_0x1a08b5=_0x4ac4b7?_0x5ed0a3[_0x5ca38e(0x112)](_0x4af01a,_0x2a519c):_0x5ed0a3[_0x5ca38e(0x17a)](_0x1b5664,_0x352509,_0x4a1e86,_0x59cea3);_0x46e404?this[_0x5ca38e(0xb8)](_0x1a08b5,_0x46e404,_0x4a1e86,_0x119713):this['_executeResizeCommand'](_0x1a08b5,_0x119713);}[_0x541acc(0x27f)](_0x1a09fb,_0x586531,_0x39f70c,_0x4992de,_0x132608){const _0x4574f7=_0x541acc;let _0x45869a=this[_0x4574f7(0x263)](_0x1a09fb);if(!_0x45869a)return;let _0x3694b6=_0x4992de?_0x4992de[_0x4574f7(0xcf)]:this[_0x4574f7(0x23a)](_0x45869a[_0x4574f7(0x172)],_0x586531),_0x2c8b84;if(_0x4992de){let _0x5417af=this[_0x4574f7(0x1b6)]['getDrawingByParam']({'unitId':_0x4992de['unitId'],'subUnitId':_0x4992de[_0x4574f7(0x32f)],'drawingId':_0x4992de[_0x4574f7(0x266)]});if(_0x5417af!=null&&_0x5417af[_0x4574f7(0xc5)]){let {left:_0x1bc546=0x0,top:_0x361cd3=0x0,width:_0x3a2e49=0x0,height:_0x21faf3=0x0,angle:_0x36519c}=_0x5417af['transform'];_0x2c8b84=_0x1730d0({'left':_0x1bc546,'top':_0x361cd3,'width':_0x3a2e49,'height':_0x21faf3},_0x36519c||0x0);}else _0x2c8b84={'left':_0x586531['x'],'top':_0x586531['y'],'width':0x0,'height':0x0};}else _0x2c8b84={'left':_0x586531['x'],'top':_0x586531['y'],'width':0x0,'height':0x0};let _0x2e6a3c={'point':_0x586531,'angle':_0x3694b6,'bounds':_0x2c8b84},_0x5e782c=_0x39f70c?_0x2e6a3c:_0x45869a,_0x2b9ca3=_0x39f70c?_0x45869a:_0x2e6a3c,_0x1f5b46=this[_0x4574f7(0x113)][_0x4574f7(0x259)](),_0x52df53=_0x2ed419(_0x5e782c,_0x2b9ca3,_0x1f5b46);this['_activeShapeModel'][_0x4574f7(0x28a)]();let _0x3aee30=_0x5e7985(_0x52df53,_0x1f5b46);_0x4992de?this[_0x4574f7(0x149)](_0x3aee30,_0x4992de,_0x1a09fb,_0x39f70c,_0x132608):this[_0x4574f7(0x295)](_0x3aee30,_0x1a09fb,_0x39f70c,_0x132608);}[_0x541acc(0xb8)](_0x40fbc7,_0x57b854,_0x9c124d,_0x260a6e){const _0x5a5655=_0x541acc;let _0x15596e=this[_0x5a5655(0x113)][_0x5a5655(0x351)]()[_0x5a5655(0x2ad)],_0x31c862={..._0x15596e},_0x2209b1={'shapeId':_0x57b854[_0x5a5655(0x266)],'cxnIndex':_0x57b854[_0x5a5655(0x212)]};_0x9c124d?_0x31c862[_0x5a5655(0x130)]=_0x2209b1:_0x31c862['to']=_0x2209b1;let _0x1fd4d6=this[_0x5a5655(0x113)][_0x5a5655(0x259)](),_0x1b9f6a=_0x5e7985(_0x40fbc7[_0x5a5655(0x313)],_0x1fd4d6),_0x3b2a4c={'unitId':this[_0x5a5655(0x1de)],'subUnitId':this[_0x5a5655(0x285)],'connectorShapeId':this[_0x5a5655(0x26d)],'width':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x27b)],'height':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x35c)],'left':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x1d7)],'top':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x2f1)],'flipX':_0x40fbc7[_0x5a5655(0x198)][_0x5a5655(0x269)]||!0x1,'flipY':_0x40fbc7[_0x5a5655(0x198)]['flipY']||!0x1,'newAdjustValues':_0x1b9f6a[_0x5a5655(0x35f)],'oldAdjustValues':_0x260a6e,'oldRelation':_0x15596e,'newRelation':_0x31c862,'newLineType':_0x1b9f6a['lineType'],'oldLineType':_0x1fd4d6};this['_commandService'][_0x5a5655(0x1b0)](_0x499afe['id'],_0x3b2a4c);}[_0x541acc(0x125)](_0x497acc,_0x1751bd){const _0x13cae0=_0x541acc;let _0x4e3c61=this[_0x13cae0(0x113)][_0x13cae0(0x259)](),_0x213652=_0x5e7985(_0x497acc['worldPoints'],_0x4e3c61),_0x2fb49b={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this[_0x13cae0(0x26d)],'width':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x27b)],'height':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x35c)],'left':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x1d7)],'top':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0x2f1)],'flipX':_0x497acc['worldRect'][_0x13cae0(0x269)]||!0x1,'flipY':_0x497acc[_0x13cae0(0x198)]['flipY']||!0x1,'angle':_0x497acc[_0x13cae0(0x198)][_0x13cae0(0xcf)]||0x0,'newAdjustValues':_0x213652[_0x13cae0(0x35f)],'oldAdjustValues':_0x1751bd,'newLineType':_0x213652['lineType'],'oldLineType':_0x4e3c61};this['_commandService']['executeCommand'](_0xfaf437['id'],_0x2fb49b);}['_executeConnectedRouteConnectionCommand'](_0x4f8cf1,_0xf79dce,_0x4df52b,_0x303cdc,_0x10e3ce){const _0x5a5d9a=_0x541acc;let _0x524457=this[_0x5a5d9a(0x113)][_0x5a5d9a(0x351)]()[_0x5a5d9a(0x2ad)],_0x5a5e41={..._0x524457},_0x4d4903={'shapeId':_0xf79dce['shapeId'],'cxnIndex':_0xf79dce[_0x5a5d9a(0x212)]};_0x303cdc?(_0x5a5e41['from']=_0x4d4903,_0x5a5e41['to']=_0x4df52b):(_0x5a5e41[_0x5a5d9a(0x130)]=_0x4df52b,_0x5a5e41['to']=_0x4d4903);let _0x5b21b2={'unitId':this[_0x5a5d9a(0x1de)],'subUnitId':this[_0x5a5d9a(0x285)],'connectorShapeId':this[_0x5a5d9a(0x26d)],'width':_0x4f8cf1[_0x5a5d9a(0x198)]['width'],'height':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x35c)],'left':_0x4f8cf1['worldRect']['left'],'top':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x2f1)],'flipX':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x269)]||!0x1,'flipY':_0x4f8cf1[_0x5a5d9a(0x198)][_0x5a5d9a(0x143)]||!0x1,'oldAdjustValues':_0x10e3ce,'newAdjustValues':_0x4f8cf1[_0x5a5d9a(0x35f)],'newLineType':_0x4f8cf1[_0x5a5d9a(0xef)],'rotation':_0x4f8cf1[_0x5a5d9a(0xbc)],'oldRelation':_0x524457,'newRelation':_0x5a5e41};this['_commandService'][_0x5a5d9a(0x1b0)](_0x499afe['id'],_0x5b21b2);}[_0x541acc(0x295)](_0x474a79,_0x3a0826,_0x4fa44c,_0x114270){const _0x3a8a21=_0x541acc;let _0x593471=this[_0x3a8a21(0x113)]['getShapeData']()[_0x3a8a21(0x2ad)],_0x1e5ff8={};_0x4fa44c?(_0x1e5ff8['to']=_0x3a0826,_0x1e5ff8[_0x3a8a21(0x130)]=void 0x0):(_0x1e5ff8[_0x3a8a21(0x130)]=_0x3a0826,_0x1e5ff8['to']=void 0x0);let _0x2dbd86={'unitId':this[_0x3a8a21(0x1de)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x3a8a21(0x26d)],'width':_0x474a79[_0x3a8a21(0x198)][_0x3a8a21(0x27b)],'height':_0x474a79[_0x3a8a21(0x198)][_0x3a8a21(0x35c)],'left':_0x474a79[_0x3a8a21(0x198)]['left'],'top':_0x474a79[_0x3a8a21(0x198)][_0x3a8a21(0x2f1)],'flipX':_0x474a79[_0x3a8a21(0x198)]['flipX']||!0x1,'flipY':_0x474a79['worldRect']['flipY']||!0x1,'oldAdjustValues':_0x114270,'newAdjustValues':_0x474a79[_0x3a8a21(0x35f)],'newLineType':_0x474a79[_0x3a8a21(0xef)],'rotation':_0x474a79[_0x3a8a21(0xbc)],'oldRelation':_0x593471,'newRelation':_0x1e5ff8};this[_0x3a8a21(0xdc)][_0x3a8a21(0x1b0)](_0x499afe['id'],_0x2dbd86);}['_attachConnectorObjectEvent'](_0x12c023,_0x45a4ab,_0x4f6056){const _0x810f00=_0x541acc;this[_0x810f00(0x328)](_0x183b07(_0x12c023[_0x810f00(0x36a)][_0x810f00(0x1e2)]((_0x5bf242,_0x237377)=>{const _0x3dbcc8=_0x810f00;let _0x5028b3=_0x12c023[_0x3dbcc8(0x105)]();if(this[_0x3dbcc8(0x113)]=this[_0x3dbcc8(0x1da)]['getShapeModel'](_0x5028b3[_0x3dbcc8(0x2b7)],_0x5028b3[_0x3dbcc8(0x32f)],_0x5028b3[_0x3dbcc8(0x162)]),!this[_0x3dbcc8(0x113)])return;let _0x3d5b9c={};this[_0x3dbcc8(0x113)][_0x3dbcc8(0x196)]()[_0x3dbcc8(0x1ba)](_0xfb3592=>{const _0x2aa6bb=_0x3dbcc8;let _0xbc0b0d=this[_0x2aa6bb(0x113)][_0x2aa6bb(0x2c6)](_0xfb3592);_0xbc0b0d!==void 0x0&&(_0x3d5b9c[_0xfb3592]=_0xbc0b0d);});let _0x5f1c90=this['_getDrawingRect']();if(!_0x5f1c90)return;this[_0x3dbcc8(0x2dc)]={..._0x5f1c90};let _0x232721=new _0x5ed0a3(this['_baseDrawingRect']),_0x2aa9c7=_0x191ead({'unitId':this[_0x3dbcc8(0x1de)],'subUnitId':this[_0x3dbcc8(0x285)],'drawingId':this[_0x3dbcc8(0x26d)]}),_0xefe00=_0x45a4ab['getObjectIncludeInGroup'](_0x2aa9c7);this[_0x3dbcc8(0x16f)]=!0x0,_0x45a4ab[_0x3dbcc8(0x359)](),this['_sheetBasicShapeConnectionPointController'][_0x3dbcc8(0x18e)](_0x45a4ab,this[_0x3dbcc8(0x1de)],this[_0x3dbcc8(0x285)],this['_activeShapeId']),this[_0x3dbcc8(0xb9)]=null;let _0xd7cca=this[_0x3dbcc8(0x113)][_0x3dbcc8(0xd8)](),_0x3f4a60=_0xd7cca[0x0],_0x43bcad=_0xd7cca[_0xd7cca[_0x3dbcc8(0xf6)]-0x1],_0x169619=_0x4f6056?_0x232721['localToWorld'](_0x43bcad):_0x232721[_0x3dbcc8(0xfb)](_0x3f4a60);this[_0x3dbcc8(0x34e)]=_0x45a4ab[_0x3dbcc8(0x2af)][_0x3dbcc8(0x1e2)]((_0x4c93be,_0x4109c5)=>{const _0x5862ff=_0x3dbcc8;if(!this[_0x5862ff(0x16f)]||!this['_activeShapeModel'])return;this[_0x5862ff(0x10e)]||=(this[_0x5862ff(0x343)][_0x5862ff(0x129)](),this['_activeShapeModel'][_0x5862ff(0x31a)](),!0x0);let _0x40ba6e=this['_getScrollInfo'](this[_0x5862ff(0x1de)],this[_0x5862ff(0x285)]),_0x1d3208=this[_0x5862ff(0x16c)](this['_unitId'],this['_subUnitId']),_0x3878b5={'x':_0x4c93be[_0x5862ff(0x1e6)]/_0x1d3208+_0x40ba6e['x'],'y':_0x4c93be['offsetY']/_0x1d3208+_0x40ba6e['y']},_0x3ef93c=this[_0x5862ff(0x27d)][_0x5862ff(0x108)](_0x3878b5);if(_0x3ef93c){let {shapeId:_0x4bb81b,unitId:_0x206eb4,subUnitId:_0x460873}=_0x3ef93c;if(_0x4bb81b&&_0x206eb4&&_0x460873){let _0x25695b=_0x191ead({'unitId':_0x206eb4,'subUnitId':_0x460873,'drawingId':_0x4bb81b});_0x3ef93c[_0x5862ff(0xcf)]=(_0x45a4ab[_0x5862ff(0x13f)](_0x25695b)[_0x5862ff(0xcf)]||0x0)+_0x3ef93c[_0x5862ff(0xcf)];}}this[_0x5862ff(0xb9)]=_0x3ef93c;let _0x5c1609=_0x4f6056?this[_0x5862ff(0x113)][_0x5862ff(0x2ea)]():this['_activeShapeModel'][_0x5862ff(0x16a)]();_0x5c1609?this[_0x5862ff(0x116)](_0x5c1609,_0x3878b5,_0x4f6056,_0xefe00,_0x12c023):this[_0x5862ff(0x1ec)](_0x3878b5,_0x169619,_0x4f6056,_0xefe00,_0x12c023);}),this[_0x3dbcc8(0x1bc)]=_0x45a4ab['onPointerUp$'][_0x3dbcc8(0x1e2)]((_0x57e094,_0x5c072a)=>{const _0x522402=_0x3dbcc8;this[_0x522402(0x35e)](_0x45a4ab,_0x169619,_0x57e094,_0x4f6056,_0x3d5b9c);}),_0x237377[_0x3dbcc8(0x1a5)]();})));}[_0x541acc(0x268)](_0x46e1b9,_0x1e136d,_0x5a9b2c){const _0x503791=_0x541acc;let _0x497d6b=this[_0x503791(0x1da)][_0x503791(0x136)](_0x46e1b9,_0x1e136d,_0x5a9b2c);if(!_0x497d6b||_0x497d6b['length']===0x0)return;let _0x3b256d=this[_0x503791(0x232)][_0x503791(0x365)](_0x46e1b9);if(!_0x3b256d)return;let {scene:_0x13c621}=_0x3b256d;for(let _0x2b16ca of _0x497d6b){let _0x127ce2=_0x2b16ca['lineShapeId'],_0x232d53=this[_0x503791(0x1da)]['getShapeModel'](_0x46e1b9,_0x1e136d,_0x127ce2);if(!_0x232d53)continue;let _0x2c2a02=_0x232d53[_0x503791(0x16a)](),_0x5f3ebd=_0x232d53[_0x503791(0x2ea)](),_0x423ba9=(_0x2c2a02==null?void 0x0:_0x2c2a02[_0x503791(0x266)])===_0x5a9b2c,_0x326b00=_0x191ead({'unitId':_0x46e1b9,'subUnitId':_0x1e136d,'drawingId':_0x127ce2}),_0x33f983=_0x13c621[_0x503791(0x13f)](_0x326b00);if(!_0x33f983)continue;let _0x3feffa=this[_0x503791(0x1b6)][_0x503791(0xb2)]({'unitId':_0x46e1b9,'subUnitId':_0x1e136d,'drawingId':_0x127ce2});_0x3feffa!=null&&_0x3feffa[_0x503791(0xc5)]&&(_0x2c2a02&&_0x5f3ebd?this['_rerouteConnectorLine'](_0x46e1b9,_0x1e136d,_0x127ce2,_0x232d53,_0x2c2a02,_0x5f3ebd,_0x33f983):this[_0x503791(0x312)](_0x46e1b9,_0x1e136d,_0x127ce2,_0x232d53,_0x423ba9?_0x2c2a02:_0x5f3ebd,_0x423ba9,_0x3feffa,_0x33f983));}}['_rerouteConnectorLine'](_0x4202e8,_0x1f2c42,_0x19a134,_0x42cd70,_0x13f1b6,_0x5cc4f4,_0x21a863){const _0x28a941=_0x541acc;let _0x2fc35f=this[_0x28a941(0x1de)],_0x57970c=this[_0x28a941(0x285)];this[_0x28a941(0x1de)]=_0x4202e8,this[_0x28a941(0x285)]=_0x1f2c42;let _0x1afca=this[_0x28a941(0x263)](_0x13f1b6),_0x56f449=this[_0x28a941(0x263)](_0x5cc4f4);if(this['_unitId']=_0x2fc35f,this[_0x28a941(0x285)]=_0x57970c,!_0x1afca||!_0x56f449)return;let _0x1197e8=_0x42cd70[_0x28a941(0x259)](),_0x2bbd56=_0x2ed419(_0x1afca,_0x56f449,_0x1197e8);_0x2bbd56&&_0x42cd70[_0x28a941(0x1e0)](_0x2bbd56);let _0x2ad0fb=_0x5e7985(_0x2bbd56,_0x1197e8);_0x2ad0fb['lineType']!==_0x1197e8&&_0x42cd70[_0x28a941(0x2c2)](_0x2ad0fb[_0x28a941(0xef)]),_0x42cd70[_0x28a941(0x31a)]();for(let [_0x4d29b5,_0x16f889]of Object[_0x28a941(0x17b)](_0x2ad0fb[_0x28a941(0x35f)]))_0x42cd70[_0x28a941(0x134)](_0x4d29b5,_0x16f889);_0x42cd70[_0x28a941(0x26b)]({'width':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x27b)],'height':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x35c)]}),_0x21a863[_0x28a941(0x26e)]({'flipX':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x269)],'flipY':_0x2ad0fb[_0x28a941(0x198)]['flipY'],'left':_0x2ad0fb[_0x28a941(0x198)]['left'],'top':_0x2ad0fb[_0x28a941(0x198)]['top'],'width':_0x2ad0fb[_0x28a941(0x198)]['width'],'height':_0x2ad0fb[_0x28a941(0x198)][_0x28a941(0x35c)],'angle':_0x2ad0fb[_0x28a941(0xbc)]}),_0x42cd70[_0x28a941(0x28a)]();}[_0x541acc(0x312)](_0x362690,_0x507e2e,_0x4bb8b8,_0x2a9cc6,_0x365c43,_0x3dd1f9,_0xee1cb7,_0x58c51c){const _0x56d2fd=_0x541acc;let _0x38fdf7=this[_0x56d2fd(0x1de)],_0x2828f6=this[_0x56d2fd(0x285)];this['_unitId']=_0x362690,this[_0x56d2fd(0x285)]=_0x507e2e;let _0x293332=this[_0x56d2fd(0x263)](_0x365c43);if(this['_unitId']=_0x38fdf7,this[_0x56d2fd(0x285)]=_0x2828f6,!_0x293332)return;let {left:_0x13dfcf=0x0,top:_0x53c415=0x0,width:_0x36fe86=0x0,height:_0x9e3dc1=0x0,flipX:_0x358926=!0x1,flipY:_0x1b3520=!0x1}=_0xee1cb7['transform'],_0x44ad69=_0x2a9cc6['getConnectorLinePoints']();if(_0x44ad69[_0x56d2fd(0xf6)]<0x2)return;let _0x3fa90b=new _0x5ed0a3({'left':_0x13dfcf,'top':_0x53c415,'width':_0x36fe86,'height':_0x9e3dc1,'flipX':_0x358926,'flipY':_0x1b3520}),_0x5f0baa=_0x3dd1f9?_0x44ad69[_0x44ad69[_0x56d2fd(0xf6)]-0x1]:_0x44ad69[0x0],_0x564828=_0x3fa90b[_0x56d2fd(0xfb)](_0x5f0baa),_0x143c5e=_0x5ed0a3['computeConnectorResizeLayout'](_0x564828,_0x293332['point'],!_0x3dd1f9);_0x58c51c[_0x56d2fd(0x26e)]({'flipX':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x269)],'flipY':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x143)],'left':_0x143c5e[_0x56d2fd(0x198)]['left'],'top':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x2f1)],'width':_0x143c5e[_0x56d2fd(0x198)][_0x56d2fd(0x27b)],'height':_0x143c5e[_0x56d2fd(0x198)]['height'],'angle':_0x143c5e[_0x56d2fd(0x198)]['angle']}),_0x58c51c['makeDirty'](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x26a1e5=_0x541acc;this[_0x26a1e5(0x1c3)]['length']!==0x0&&(this[_0x26a1e5(0x1c3)][_0x26a1e5(0x1ba)](_0x52b062=>{const _0xb67fe=_0x26a1e5;_0x52b062[_0xb67fe(0x1ae)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x2301a8=_0x541acc;let _0x4f7ba1=this[_0x2301a8(0x35a)]['getCurrentTypeOfUnit$'](_0x35cbcc[_0x2301a8(0x164)]);this[_0x2301a8(0x328)](_0x4f7ba1[_0x2301a8(0x261)](_0x4a21b4(_0xe31f6=>_0xe31f6?_0xe31f6['activeSheet$']['pipe'](_0x4a21b4(_0x560921=>{const _0x44f1b8=_0x2301a8;if(!_0x560921)return _0x2a9ebe;let _0x520878=_0xe31f6[_0x44f1b8(0x1f1)](),_0xbdeab6=this[_0x44f1b8(0x232)][_0x44f1b8(0x365)](_0x520878),_0x57e224=_0xbdeab6==null?void 0x0:_0xbdeab6[_0x44f1b8(0x34c)];return _0x57e224?_0x589e24(_0x57e224):_0x2a9ebe;})):_0x2a9ebe))['subscribe'](_0x1c65a3=>{const _0x5103d7=_0x2301a8;let _0x2f8168=_0x1c65a3[_0x5103d7(0x322)]();this[_0x5103d7(0x328)](_0x1c65a3[_0x5103d7(0x2af)][_0x5103d7(0x1e2)](_0x43a66a=>{const _0x609905=_0x5103d7;this['_isDrawingShapePointDown']&&this[_0x609905(0x26d)]&&this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x2f8168[_0x5103d7(0xfa)]['subscribe'](_0x3e2e62=>{const _0x257dc4=_0x5103d7;let {objects:_0x537b10}=_0x3e2e62;this[_0x257dc4(0x1b3)](),_0x537b10!==null&&_0x537b10['size']===0x1&&_0x537b10[_0x257dc4(0x370)]()[_0x257dc4(0x2d4)]()[_0x257dc4(0x156)]instanceof J&&(this[_0x257dc4(0xd5)]=!0x0);})),this['disposeWithMe'](_0x2f8168[_0x5103d7(0x2b8)][_0x5103d7(0x36d)](_0x32af60=>{const _0x535164=_0x5103d7;this[_0x535164(0xd5)]&&this[_0x535164(0x1b3)]();})),this[_0x5103d7(0x328)](_0x1c65a3[_0x5103d7(0x2cc)][_0x5103d7(0x1e2)](()=>{const _0x18acd9=_0x5103d7;this[_0x18acd9(0xd5)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x18acd9(0x155)]());})),this[_0x5103d7(0x328)](_0x2f8168[_0x5103d7(0x1f8)][_0x5103d7(0x36d)](()=>{const _0x4589c7=_0x5103d7;this[_0x4589c7(0x1de)]&&this[_0x4589c7(0x285)]&&this[_0x4589c7(0x26d)]&&this[_0x4589c7(0x1b6)][_0x4589c7(0xb2)]({'unitId':this[_0x4589c7(0x1de)],'subUnitId':this[_0x4589c7(0x285)],'drawingId':this[_0x4589c7(0x26d)]})&&(this[_0x4589c7(0x1b3)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x541acc(0x34a)](){const _0x5e0d47=_0x541acc;this[_0x5e0d47(0x328)](this[_0x5e0d47(0x1b6)][_0x5e0d47(0x169)][_0x5e0d47(0x36d)](_0x38bc7f=>{const _0x554d8d=_0x5e0d47;if(_0x38bc7f[_0x554d8d(0xf6)]===0x1){let _0x3c45fa=_0x38bc7f[0x0];if(_0x3c45fa[_0x554d8d(0x2e1)]===_0x4a245a[_0x554d8d(0x1f9)]){let _0x1d0448=this['_sheetsShapeService'][_0x554d8d(0x29b)](_0x3c45fa['unitId'],_0x3c45fa[_0x554d8d(0x32f)],_0x3c45fa[_0x554d8d(0x162)]);if(_0x1d0448&&_0x3fd6c6(_0x1d0448[_0x554d8d(0x259)]())){this[_0x554d8d(0x26d)]=_0x3c45fa[_0x554d8d(0x162)],this['_unitId']=_0x3c45fa[_0x554d8d(0x2b7)],this['_subUnitId']=_0x3c45fa[_0x554d8d(0x32f)],this[_0x554d8d(0x1b3)](),this[_0x554d8d(0x155)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x554d8d(0x1de)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x554d8d(0x1b3)]();})),this[_0x5e0d47(0x328)](this[_0x5e0d47(0x1b6)][_0x5e0d47(0x1a7)]['subscribe'](_0x450534=>{const _0x33836b=_0x5e0d47;if(_0x450534[_0x33836b(0xf6)]===0x1){var _0x554187;let _0x277e9b=_0x450534[0x0],_0x1623a7=(_0x554187=this['_drawingManagerService']['getDrawingByParam'](_0x277e9b))==null?void 0x0:_0x554187[_0x33836b(0x2e1)];_0x1623a7===_0x4a245a[_0x33836b(0x1f9)]&&_0x277e9b[_0x33836b(0x162)]===this[_0x33836b(0x26d)]?(this[_0x33836b(0x1b3)](),this['_addShapeConnectorHandlerObjects']()):!this['_activeShapeId']&&_0x1623a7===_0x4a245a[_0x33836b(0x1f9)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x277e9b['unitId'],_0x277e9b[_0x33836b(0x32f)],_0x277e9b['drawingId']);}})),this[_0x5e0d47(0x328)](this[_0x5e0d47(0x1b6)][_0x5e0d47(0x24f)][_0x5e0d47(0x36d)](_0x501126=>{const _0x506815=_0x5e0d47;for(let _0x35a9fd of _0x501126){let {drawingId:_0x25ec1d}=_0x35a9fd;if(this[_0x506815(0x26d)]===_0x25ec1d){this[_0x506815(0x283)]();return;}}}));}[_0x541acc(0x116)](_0x5ab26e,_0x474c8e,_0x46d572,_0x3a2b2c,_0x2d6221){const _0x50bdd4=_0x541acc;var _0x1ab471;if(!this[_0x50bdd4(0x113)])return;let _0x1bedc0=this[_0x50bdd4(0x263)](_0x5ab26e);if(!_0x1bedc0)return;let _0x38987e=this[_0x50bdd4(0xb9)]?this[_0x50bdd4(0xb9)][_0x50bdd4(0x37f)]:_0x474c8e,_0x4f1059=this[_0x50bdd4(0xb9)]?this[_0x50bdd4(0xb9)]['angle']:this[_0x50bdd4(0x23a)](_0x1bedc0[_0x50bdd4(0x172)],_0x38987e),_0x482c4c;if(this['_currentConnectionTarget']){let _0x24078a=this['_drawingManagerService'][_0x50bdd4(0xb2)]({'unitId':this[_0x50bdd4(0xb9)][_0x50bdd4(0x2b7)],'subUnitId':this[_0x50bdd4(0xb9)]['subUnitId'],'drawingId':this[_0x50bdd4(0xb9)][_0x50bdd4(0x266)]});if(_0x24078a!=null&&_0x24078a['transform']){let {left:_0x3368bc=0x0,top:_0x296090=0x0,width:_0x57d465=0x0,height:_0x45a334=0x0,angle:_0x478487}=_0x24078a[_0x50bdd4(0xc5)];_0x482c4c=_0x1730d0({'left':_0x3368bc,'top':_0x296090,'width':_0x57d465,'height':_0x45a334},_0x478487||0x0);}else _0x482c4c={'left':_0x38987e['x'],'top':_0x38987e['y'],'width':0x0,'height':0x0};}else _0x482c4c={'left':_0x38987e['x'],'top':_0x38987e['y'],'width':0x0,'height':0x0};let _0x3c3ea9={'point':_0x38987e,'angle':_0x4f1059,'bounds':_0x482c4c},_0x579456=_0x46d572?_0x3c3ea9:_0x1bedc0,_0x3da099=_0x46d572?_0x1bedc0:_0x3c3ea9,_0x39b22b=this[_0x50bdd4(0x113)]['getShapeType'](),_0xad0d85=_0x2ed419(_0x579456,_0x3da099,_0x39b22b);_0xad0d85&&this[_0x50bdd4(0x113)][_0x50bdd4(0x1e0)](_0xad0d85);let _0x14a151=_0x5e7985(_0xad0d85,_0x39b22b);_0x14a151['lineType']!==_0x39b22b&&this[_0x50bdd4(0x113)]['changeShapeType'](_0x14a151[_0x50bdd4(0xef)]);for(let [_0x55b7a0,_0x219238]of Object[_0x50bdd4(0x17b)](_0x14a151[_0x50bdd4(0x35f)]))this[_0x50bdd4(0x113)]['setAdjustValueByName'](_0x55b7a0,_0x219238);this['_activeShapeModel'][_0x50bdd4(0x26b)]({'width':_0x14a151['worldRect']['width'],'height':_0x14a151[_0x50bdd4(0x198)]['height']}),_0x3a2b2c[_0x50bdd4(0x26e)]({'flipX':_0x14a151[_0x50bdd4(0x198)][_0x50bdd4(0x269)],'flipY':_0x14a151['worldRect'][_0x50bdd4(0x143)],'left':_0x14a151[_0x50bdd4(0x198)][_0x50bdd4(0x1d7)],'top':_0x14a151['worldRect'][_0x50bdd4(0x2f1)],'width':_0x14a151['worldRect']['width'],'height':_0x14a151[_0x50bdd4(0x198)][_0x50bdd4(0x35c)],'angle':_0x14a151[_0x50bdd4(0xbc)]}),_0x3a2b2c[_0x50bdd4(0x2ff)](!0x0);let _0x20a696=((_0x1ab471=this[_0x50bdd4(0xb9)])==null?void 0x0:_0x1ab471[_0x50bdd4(0x37f)])??_0x474c8e;_0x2d6221['transformByState']({'left':_0x20a696['x']-_0x1b524b[_0x50bdd4(0x19b)],'top':_0x20a696['y']-_0x1b524b[_0x50bdd4(0x19b)]});}[_0x541acc(0x1ec)](_0x57164c,_0x21b67b,_0x11f794,_0x4344ed,_0xb3f21a){const _0x54acf8=_0x541acc;var _0x34d6f8,_0x4af38b;let _0x4d76b2=((_0x34d6f8=this['_currentConnectionTarget'])==null?void 0x0:_0x34d6f8[_0x54acf8(0x37f)])??_0x57164c,_0x4590f6=_0x5ed0a3['computeConnectorResizeLayout'](_0x21b67b,_0x4d76b2,_0x11f794);_0x4344ed['transformByState']({'flipX':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x269)],'flipY':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x143)],'left':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x1d7)],'top':_0x4590f6['worldRect'][_0x54acf8(0x2f1)],'width':_0x4590f6['worldRect'][_0x54acf8(0x27b)],'height':_0x4590f6[_0x54acf8(0x198)][_0x54acf8(0x35c)],'angle':_0x4590f6[_0x54acf8(0x198)]['angle']});let _0x94fe83=((_0x4af38b=this['_currentConnectionTarget'])==null?void 0x0:_0x4af38b[_0x54acf8(0x37f)])??_0x57164c;_0xb3f21a[_0x54acf8(0x26e)]({'left':_0x94fe83['x']-_0x1b524b[_0x54acf8(0x19b)],'top':_0x94fe83['y']-_0x1b524b['cxnPointRadius']});}[_0x541acc(0x263)](_0x42c3e9){const _0x5a5c1f=_0x541acc;if(!this[_0x5a5c1f(0x1de)]||!this[_0x5a5c1f(0x285)])return null;let {shapeId:_0x6ba92a,cxnIndex:_0x49f4ad}=_0x42c3e9,_0x19b920=this[_0x5a5c1f(0x1da)][_0x5a5c1f(0x29b)](this[_0x5a5c1f(0x1de)],this[_0x5a5c1f(0x285)],_0x6ba92a);if(!_0x19b920)return null;let _0x182ca0=this[_0x5a5c1f(0x1b6)][_0x5a5c1f(0xb2)]({'unitId':this[_0x5a5c1f(0x1de)],'subUnitId':this[_0x5a5c1f(0x285)],'drawingId':_0x6ba92a});if(!(_0x182ca0!=null&&_0x182ca0[_0x5a5c1f(0xc5)]))return null;let {left:_0x5ae691=0x0,top:_0x9e2267=0x0,width:_0x541c22=0x0,height:_0x573740=0x0,flipX:_0x3fdb77=!0x1,flipY:_0x54058a=!0x1,angle:_0x5e59af}=_0x182ca0[_0x5a5c1f(0xc5)];_0x19b920[_0x5a5c1f(0x26b)]({'width':_0x541c22,'height':_0x573740});let _0x4a9d75=_0x19b920[_0x5a5c1f(0xfc)]()['find'](_0x3253c0=>_0x3253c0[_0x5a5c1f(0x302)]===_0x49f4ad);if(!_0x4a9d75)return null;let _0x287e4e=_0x3fdb77?_0x541c22-_0x4a9d75['x']:_0x4a9d75['x'],_0x5d0f7f=_0x54058a?_0x573740-_0x4a9d75['y']:_0x4a9d75['y'];if(_0x5e59af!==0x0&&_0x5e59af!=null){let _0x15d1ea=_0x5e59af*Math['PI']/0xb4,_0xca41e2=Math['cos'](_0x15d1ea),_0xa02ea2=Math['sin'](_0x15d1ea),_0x5116d3=_0x541c22/0x2,_0x59ddc9=_0x573740/0x2,_0xc9554d=_0x287e4e-_0x5116d3,_0x3e7868=_0x5d0f7f-_0x59ddc9;_0x287e4e=_0x5116d3+_0xc9554d*_0xca41e2-_0x3e7868*_0xa02ea2,_0x5d0f7f=_0x59ddc9+_0xc9554d*_0xa02ea2+_0x3e7868*_0xca41e2;}_0x287e4e+=_0x5ae691,_0x5d0f7f+=_0x9e2267;let _0x5208d1=_0x4a9d75[_0x5a5c1f(0x280)]/0xea60;_0x3fdb77&&(_0x5208d1=0xb4-_0x5208d1),_0x54058a&&(_0x5208d1=-_0x5208d1),_0x5208d1+=_0x5e59af||0x0,_0x5208d1=(_0x5208d1%0x168+0x168)%0x168;let _0x348df5=_0x1730d0({'left':_0x5ae691,'top':_0x9e2267,'width':_0x541c22,'height':_0x573740},_0x5e59af||0x0);return{'point':{'x':_0x287e4e,'y':_0x5d0f7f},'angle':_0x5208d1,'bounds':_0x348df5};}[_0x541acc(0x23a)](_0x2edfa3,_0x16c7e0){const _0x3060ef=_0x541acc;let _0x5e4d29=_0x16c7e0['x']-_0x2edfa3['x'],_0x1ccf56=_0x16c7e0['y']-_0x2edfa3['y'];return Math[_0x3060ef(0xd4)](_0x5e4d29)>=Math[_0x3060ef(0xd4)](_0x1ccf56)?_0x5e4d29>=0x0?0xb4:0x0:_0x1ccf56>=0x0?0x10e:0x5a;}[_0x541acc(0x283)](){const _0x1fef40=_0x541acc;this[_0x1fef40(0x26d)]=void 0x0,this[_0x1fef40(0x1de)]=void 0x0,this[_0x1fef40(0x285)]=void 0x0,this[_0x1fef40(0x1b3)]();}[_0x541acc(0x1ae)](){const _0x5d5095=_0x541acc;this[_0x5d5095(0x1b3)](),super[_0x5d5095(0x1ae)]();}};ma=X([Y(0x1,_0x2c496c),Y(0x2,_0x22bed8),Y(0x3,_0x5399a4),Y(0x4,_0x43400d),Y(0x5,_0x53ba9c(_0x27864b)),Y(0x6,_0x53ba9c(Pr)),Y(0x7,_0x53ba9c(da))],ma);let ha=class extends _0x50d788{constructor(_0x582e21,_0x10b2e7,_0x5b4f8f){const _0x111f34=_0x541acc;super(),this[_0x111f34(0x1c8)]=_0x582e21,this[_0x111f34(0x1b6)]=_0x10b2e7,this[_0x111f34(0x2a8)]=_0x5b4f8f,this['_initPrinting']();}[_0x541acc(0xc0)](){const _0x2a18bd=_0x541acc;this['disposeWithMe'](this[_0x2a18bd(0x1c8)]['interceptor'][_0x2a18bd(0x2a7)](this['_sheetPrintInterceptorService'][_0x2a18bd(0x2cb)][_0x2a18bd(0x10d)]()[_0x2a18bd(0x1d0)],{'handler':(_0x47a843,_0x5020de,_0x3d0ade)=>{const _0x5524e4=_0x2a18bd;var _0x257b34;let {unitId:_0x34e1ec,subUnitId:_0x17cd59,scene:_0x49ba78,resourceCollector:_0x39dd31}=_0x5020de,_0x47d7a9=(_0x257b34=this[_0x5524e4(0x1b6)][_0x5524e4(0x25b)](_0x34e1ec))==null?void 0x0:_0x257b34[_0x17cd59];return _0x47d7a9==null||_0x47d7a9[_0x5524e4(0x348)]['forEach'](_0x381c12=>{const _0x27262b=_0x5524e4;let _0x384584=_0x47d7a9['data'][_0x381c12];_0x384584[_0x27262b(0x2e1)]===_0x4a245a[_0x27262b(0x1f9)]&&!_0x384584[_0x27262b(0x18f)]&&this[_0x27262b(0x2a8)][_0x27262b(0x23e)](_0x384584,_0x49ba78,{'resourceCollector':_0x39dd31});}),_0x3d0ade(_0x47a843);}}));}};ha=X([Y(0x0,_0x53ba9c(_0x8a3389)),Y(0x1,_0x5399a4),Y(0x2,_0x53ba9c(Z))],ha);let ga=class extends _0x50d788{constructor(_0x19a0bd,_0x2f68b4,_0x374c1d){const _0x44539e=_0x541acc;super(),this[_0x44539e(0xdc)]=_0x19a0bd,this['_localeService']=_0x2f68b4,this['_sheetPermissionCheckController']=_0x374c1d,this[_0x44539e(0x257)]();}[_0x541acc(0x257)](){const _0x5d15c5=_0x541acc;this['disposeWithMe'](this[_0x5d15c5(0xdc)]['beforeCommandExecuted'](_0x27b141=>{const _0x1cba62=_0x5d15c5;let _0x5177e9,_0x4c5e5b;if(_0x27b141['id']===_0x506353['id']||_0x27b141['id']===_0x3585c5['id']||_0x27b141['id']===_0x499afe['id']){let _0x2d208c=_0x27b141[_0x1cba62(0x152)];_0x5177e9=_0x2d208c['unitId'],_0x4c5e5b=_0x2d208c[_0x1cba62(0x32f)];}_0x5177e9&&_0x4c5e5b&&(this['_sheetPermissionCheckController'][_0x1cba62(0x127)]({'workbookTypes':[_0x220388],'worksheetTypes':[_0x5d269b]},_0x5177e9,_0x4c5e5b)||this[_0x1cba62(0x372)][_0x1cba62(0xf5)](this[_0x1cba62(0x2a5)]['t'](_0x1cba62(0x2c9))));}));}};ga=X([Y(0x0,_0x53ba9c(_0x2c496c)),Y(0x1,_0x53ba9c(_0x5622d1)),Y(0x2,_0x53ba9c(_0x28fcea))],ga);let _a=class{constructor(_0x3b1e75){const _0x596a10=_0x541acc;this[_0x596a10(0x232)]=_0x3b1e75;}[_0x541acc(0x167)](_0x9e3e3a,_0x3cdfac){const _0x19906c=_0x541acc;let _0x123d2a=this[_0x19906c(0x232)]['getRenderUnitById'](_0x9e3e3a[_0x19906c(0x2b7)]),_0x31785e=_0x123d2a==null?void 0x0:_0x123d2a[_0x19906c(0x34c)];if(!_0x31785e)return;let _0x687edd=_0x191ead(_0x9e3e3a),_0x3a9dcf=_0x31785e[_0x19906c(0x13f)](_0x687edd);_0x3a9dcf==null||_0x3a9dcf[_0x19906c(0x206)](_0x3cdfac);}};_a=X([Y(0x0,_0x22bed8)],_a);let va=class extends _0xcbf5d3{constructor(_0x33caba=Yi,_0xcb088c,_0x40da46,_0x405b5d,_0x112fcb){const _0x45443e=_0x541acc;super(),this[_0x45443e(0x100)]=_0x33caba,this['_injector']=_0xcb088c,this['_commandService']=_0x40da46,this[_0x45443e(0x28d)]=_0x405b5d,this[_0x45443e(0x232)]=_0x112fcb;let {..._0x101ef8}=_0x29ed24({},Yi,this['_config']);this[_0x45443e(0x28d)]['setConfig'](Ji,_0x101ef8),this[_0x45443e(0x209)]();}['onStarting'](){const _0x5625b0=_0x541acc;this['_injector'][_0x5625b0(0xb5)]([ta]),this[_0x5625b0(0x157)][_0x5625b0(0x1e8)](ta),_0x110449(this[_0x5625b0(0x157)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}['onReady'](){const _0x33c31d=_0x541acc;_0x110449(this[_0x33c31d(0x157)],[[da],[Pr],[fa]]),_0x634993(this[_0x33c31d(0x157)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x33c31d(0x1ba)](_0x190c30=>{const _0x20a6ff=_0x33c31d;this[_0x20a6ff(0x328)](this[_0x20a6ff(0x232)][_0x20a6ff(0x234)](_0x35cbcc[_0x20a6ff(0x164)],_0x190c30));});}['onRendered'](){const _0x59d899=_0x541acc;_0x634993(this[_0x59d899(0x157)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x541acc(0x35d)](){const _0xc3136b=_0x541acc;this[_0xc3136b(0x157)][_0xc3136b(0x1e8)](aa)[_0xc3136b(0x117)]();}[_0x541acc(0x209)](){const _0x2f1cae=_0x541acc;[Ir,K,Fr,qi][_0x2f1cae(0x1ba)](_0x366322=>this[_0x2f1cae(0x328)](this[_0x2f1cae(0xdc)][_0x2f1cae(0x32b)](_0x366322)));}};q(va,_0x541acc(0x189),_0x35cbcc['UNIVER_SHEET']),q(va,_0x541acc(0xf2),'SHEET_SHAPE_UI_PLUGIN'),q(va,'packageName',Gi),q(va,_0x541acc(0x102),Ki),va=X([_0x44b434(_0x1c43d9,_0x442a76,_0x237bd8,_0x4a85d4,_0x59b291,_0x51cee2,_0x3c3e08,_0x51e836,_0x4c3ab4,_0x5f07ce,_0xc35d1,_0x18a087,_0x386611),Y(0x1,_0x53ba9c(_0x3387ed)),Y(0x2,_0x2c496c),Y(0x3,_0xed9cf),Y(0x4,_0x22bed8)],va);const ya={'type':_0xf8f445['OPERATION'],'id':_0x541acc(0x367),'handler'(){return!0x0;}};function ba(){const _0x47bae6=_0x541acc;let _0x276807=_0x445cf0(_0x5399a4),_0x435180=_0x25afa3(()=>_0x276807[_0x47bae6(0x169)],_0x276807['getFocusDrawings'](),!0x1,[_0x276807]);return _0x435180[_0x47bae6(0xf6)]===0x0?null:_0x35a023(_0x47bae6(0x14c),{'children':_0x53330b(_0x47bae6(0x14c),{'className':_0x47bae6(0x199),'children':[_0x35a023(_0x28ff69,{'drawings':_0x435180,'hasCropper':!0x1}),_0x35a023(_0x5b541d,{'drawings':_0x435180})]})});}function xa(_0x7d88b3){let {unitId:_0x4cbf48,subUnitId:_0x284b76,shapeId:_0x570b73}=_0x7d88b3,_0x456675=_0x445cf0(_0x2c496c),_0x5367d5=_0x445cf0(_a);return _0x35a023(_0xbb7a4b,{..._0x7d88b3,'positionEditor':_0x35a023(ba,{}),'onUpdateShapeData':(_0x4d9482,_0x26b00f)=>{Dr(_0x456675,_0x4cbf48,_0x284b76,_0x570b73,_0x4d9482,_0x26b00f);},'onUpdateLineShapeData':(_0x4bed09,_0x5983f7)=>{Or(_0x456675,_0x4cbf48,_0x284b76,_0x570b73,_0x4bed09,_0x5983f7);},'onUpdateShapeFillImage':_0x297876=>{_0x5367d5['updateShapeFillImage']({'unitId':_0x4cbf48,'subUnitId':_0x284b76,'drawingId':_0x570b73},_0x297876);}});}function Sa(_0x12b84a){const _0x4d52a0=_0x541acc;let _0xf3cc1c=_0x445cf0(_0x161d03),_0x43137e=_0x25afa3(()=>_0xf3cc1c[_0x4d52a0(0x111)],_0xf3cc1c[_0x4d52a0(0x30a)](),!0x1,[_0xf3cc1c]),_0x5d5f6b=_0x12b84a[_0x4d52a0(0x14e)][_0x4d52a0(0x1b2)];return!_0x5d5f6b||!_0x43137e?null:_0x35a023(Ca,{..._0x5d5f6b,'canvasElement':_0x12b84a[_0x4d52a0(0x14e)][_0x4d52a0(0x145)]});}function Ca(_0x478ad2){const _0x592924=_0x541acc;let _0x1f2a97=_0x445cf0(_0x2c496c),_0x19850f=_0x445cf0(_0x27864b),{unitId:_0xde0634,subUnitId:_0x5b8cbd,drawingId:_0x357fa5,drawingType:_0x3c97b8,shapeType:_0x4a3e88}=_0x478ad2,[_0xaa0356,_0x315cd6]=_0x846ed7(_0x478ad2[_0x592924(0x290)]),_0x2bcf3c=_0x1e2218(()=>_0x2015b7(_0xaa0356),[_0xaa0356]),_0x5220c9=_0x1e2218(()=>_0x30d84a(_0xaa0356),[_0xaa0356]);_0x189550(()=>{const _0x57720b=_0x592924;let _0x152bac=_0x1f2a97[_0x57720b(0x1d2)](_0xd7949d=>{const _0x517c0e=_0x57720b;if(_0xd7949d['id']!==_0x2a1218['id'])return;let _0x2d1f9d=_0x19850f[_0x517c0e(0x258)](_0xde0634,_0x5b8cbd,_0x357fa5);_0x2d1f9d&&_0x315cd6(_0x2d1f9d);});return()=>_0x152bac[_0x57720b(0x1ae)]();},[_0x1f2a97,_0x357fa5,_0x19850f,_0x5b8cbd,_0xde0634]);let _0x319529=_0x346895=>{_0x315cd6(_0x2b1b2a=>({..._0x2b1b2a,..._0x346895}));},_0x28109c=_0x2dad7c=>{const _0x1e6846=_0x592924;let _0x4f9338=_0x25527e(_0xaa0356,_0x2dad7c);Dr(_0x1f2a97,_0xde0634,_0x5b8cbd,_0x357fa5,{'oldShapeData':{'shapeText':_0xaa0356[_0x1e6846(0x17e)]}},_0x4f9338),_0x319529(_0x4f9338);},_0x593c16=_0x3f2655({'hostType':_0x35cbcc[_0x592924(0x164)],'unitId':_0xde0634,'subUnitId':_0x5b8cbd,'shapeId':_0x357fa5,'shapeData':_0xaa0356,'onUpdateBinding':_0x350e3e=>{const _0x544a10=_0x592924;let _0x8a3a={'formulaBinding':_0x350e3e};Dr(_0x1f2a97,_0xde0634,_0x5b8cbd,_0x357fa5,{'oldShapeData':{'formulaBinding':_0xaa0356[_0x544a10(0xbe)]}},_0x8a3a),_0x319529(_0x8a3a);}});return _0x53330b(_0x465207,{'children':[_0x35a023(_0x405f14,{'canvasElement':_0x478ad2['canvasElement'],'shapeData':_0xaa0356,'shapeType':_0x4a3e88,'textStyle':{'ff':_0x1b524b[_0x592924(0x17e)]['fontFamily'],'fs':_0x1b524b[_0x592924(0x17e)][_0x592924(0xd3)],'cl':{'rgb':_0x1b524b[_0x592924(0x17e)]['color']},..._0x2bcf3c},'textModel':_0x5220c9?{'ha':_0x5220c9['ha']??_0x103f4b[_0x592924(0x1ac)],'va':_0x5220c9['va']??_0x54d572['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1b524b[_0x592924(0x2da)],'defaultGradientEndColor':_0x1b524b[_0x592924(0x2e6)],'defaultStrokeColor':_0x1b524b[_0x592924(0x133)],'extensionGroups':_0x593c16[_0x592924(0x19a)],'floatingObjectToolbarPosition':_0x31530e[_0x592924(0x1c1)],'onUpdateShapeData':(_0x411f50,_0x10b2f9)=>{Dr(_0x1f2a97,_0xde0634,_0x5b8cbd,_0x357fa5,_0x411f50,_0x10b2f9),_0x10b2f9&&_0x319529(_0x10b2f9);},'onUpdateText':_0x28109c,'onOpenPanel':()=>{const _0x4dc8da=_0x592924;_0x1f2a97[_0x4dc8da(0x1b0)](Wr['id'],{'unitId':_0xde0634,'subUnitId':_0x5b8cbd,'drawingId':_0x357fa5});},'onDelete':()=>{const _0x4ab4d6=_0x592924;_0x1f2a97[_0x4ab4d6(0x1b0)](_0x6ae2c0['id'],{'unitId':_0xde0634,'drawings':[{'unitId':_0xde0634,'subUnitId':_0x5b8cbd,'drawingId':_0x357fa5,'drawingType':_0x3c97b8}]});}}),_0x593c16[_0x592924(0xfe)]]});}function wa(_0x52643f){const _0x4a98f3=_0x541acc;return!!_0x52643f&&'axisAlignSheetTransform'in _0x52643f&&_0x4a98f3(0x337)in _0x52643f;}const Ta=_0x3321c3(()=>{const _0xf22ee4=_0x541acc;let _0x35f27a=_0x445cf0($),_0x33fb0e=_0x445cf0(_0x27864b),_0x2176ff=_0x445cf0(_0x5399a4),_0x234494=_0x445cf0(_0x2c496c),_0x185735=_0x445cf0(_0x31259f),_0x2ea775=_0x445cf0(_0x22bed8),_0x1eeb1e=_0x1e2218(()=>({'getShapeModel':(_0xd53d56,_0x1589b9,_0x41a7fb)=>_0x33fb0e[_0xf22ee4(0x29b)](_0xd53d56,_0x1589b9,_0x41a7fb),'getShapeData':(_0x5f2b51,_0x4386b3,_0x25aaea)=>_0x33fb0e[_0xf22ee4(0x258)](_0x5f2b51,_0x4386b3,_0x25aaea),'getDrawingTransform':(_0xeb4e44,_0x4e02bc,_0x44e341)=>{const _0x5d4032=_0xf22ee4;let _0x344929=_0x2176ff['getDrawingByParam']({'unitId':_0xeb4e44,'subUnitId':_0x4e02bc,'drawingId':_0x44e341});return _0x344929==null?void 0x0:_0x344929[_0x5d4032(0xc5)];},'updateShapeText':({unitId:_0x1d156d,subUnitId:_0x153a71,shapeId:_0x38a99d,shapeText:_0x364670,oldShapeText:_0x5baf9f,hostSize:_0x4296dc})=>{_0x185735['run'](_0x1d156d,()=>{const _0x41c007=_0x5f19;var _0x33b737;let _0x4f612f=_0x234494[_0x41c007(0x319)](K['id'],{'unitId':_0x1d156d,'subUnitId':_0x153a71,'shapeId':_0x38a99d,'shapeData':{'shapeText':_0x364670},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x5baf9f}}});if(!_0x4f612f||!_0x4296dc)return _0x4f612f;let _0x493ede=_0x2176ff[_0x41c007(0xb2)]({'unitId':_0x1d156d,'subUnitId':_0x153a71,'drawingId':_0x38a99d}),_0x5416e6=_0x493ede==null?void 0x0:_0x493ede[_0x41c007(0xc5)];if(!wa(_0x493ede)||!_0x5416e6)return!0x1;let _0x3bf555={..._0x5416e6,'width':_0x4296dc['width'],'height':_0x4296dc['height']},_0xebedd0=(_0x33b737=_0x2ea775[_0x41c007(0x365)](_0x1d156d))==null||(_0x33b737=_0x33b737[_0x41c007(0x320)](_0x3ea870)[_0x41c007(0x210)](_0x153a71))==null?void 0x0:_0x33b737[_0x41c007(0x330)];return _0x234494['syncExecuteCommand'](_0x197a6a['id'],{'unitId':_0x1d156d,'drawings':[{..._0x493ede,'transform':_0x3bf555,'sheetTransform':_0xebedd0?_0x2bed6e(_0x3bf555,_0xebedd0)??_0x493ede['sheetTransform']:_0x493ede[_0x41c007(0x337)],'axisAlignSheetTransform':_0xebedd0?_0xf9fc28(_0x3bf555,_0xebedd0)??_0x493ede['axisAlignSheetTransform']:_0x493ede[_0x41c007(0xf9)]}]});});},'updateHostSize':({unitId:_0x37e299,subUnitId:_0x448e55,shapeId:_0xe8eba1,width:_0x4de141,height:_0x116e48})=>{const _0x90a927=_0xf22ee4;var _0x56dfa6;let _0x24f107=_0x2176ff[_0x90a927(0xb2)]({'unitId':_0x37e299,'subUnitId':_0x448e55,'drawingId':_0xe8eba1}),_0x1deb5b=_0x24f107==null?void 0x0:_0x24f107['transform'];if(!wa(_0x24f107)||!_0x1deb5b)return;let _0x3f4037={..._0x1deb5b,'width':_0x4de141,'height':_0x116e48},_0x476319=(_0x56dfa6=_0x2ea775[_0x90a927(0x365)](_0x37e299))==null||(_0x56dfa6=_0x56dfa6[_0x90a927(0x320)](_0x3ea870)[_0x90a927(0x210)](_0x448e55))==null?void 0x0:_0x56dfa6[_0x90a927(0x330)],_0xaec74e=_0x476319?_0x2bed6e(_0x3f4037,_0x476319)??_0x24f107[_0x90a927(0x337)]:_0x24f107['sheetTransform'],_0x3f52b9=_0x476319?_0xf9fc28(_0x3f4037,_0x476319)??_0x24f107[_0x90a927(0xf9)]:_0x24f107[_0x90a927(0xf9)];_0x234494[_0x90a927(0x1b0)](_0x197a6a['id'],{'unitId':_0x37e299,'drawings':[{..._0x24f107,'transform':_0x3f4037,'sheetTransform':_0xaec74e,'axisAlignSheetTransform':_0x3f52b9}]});},'allowHostSizeShrink':({unitId:_0x3661d7,subUnitId:_0x3dca8a,shapeId:_0x3d9a99})=>_0x62874f(_0x33fb0e[_0xf22ee4(0x258)](_0x3661d7,_0x3dca8a,_0x3d9a99)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x234494,_0x2176ff,_0x2ea775,_0x33fb0e,_0x185735]),_0x2e699a=_0x1e2218(()=>({'viewportKeys':{'main':_0x539d6e[_0xf22ee4(0x1aa)],'leftTop':_0x539d6e['VIEW_MAIN_LEFT_TOP'],'top':_0x539d6e[_0xf22ee4(0x12b)],'left':_0x539d6e[_0xf22ee4(0x10a)]},'getSkeleton':(_0xf98c7e,_0x3d143b)=>{const _0x482300=_0xf22ee4;var _0x483268;return((_0x483268=_0xf98c7e['with'](_0x3ea870)[_0x482300(0x210)](_0x3d143b['subUnitId']))==null?void 0x0:_0x483268['skeleton'])??null;}}),[]);return _0x35a023(_0x725664,{'adapter':_0x1eeb1e,'editingService':_0x35f27a,'editorUnitId':Vr,'positionOptions':_0x2e699a});});let Ea=class extends _0x50d788{constructor(_0x28cd6a,_0xb5bc9c){const _0x166b87=_0x541acc;super(),this[_0x166b87(0x154)]=_0x28cd6a,this[_0x166b87(0x294)]=_0xb5bc9c,this['_registerIcons'](),this[_0x166b87(0x239)]();}['_registerIcons'](){const _0x448bb3=_0x541acc;this[_0x448bb3(0x294)][_0x448bb3(0x1bd)](_0x448bb3(0x19c))||this[_0x448bb3(0x328)](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'ObjectLayersIcon':_0xd7ec17})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x1cc))||this[_0x448bb3(0x328)](this['_iconManager'][_0x448bb3(0x24c)]({'FlipHorizontalIcon':_0x3c9d9a})),this[_0x448bb3(0x294)][_0x448bb3(0x1bd)](_0x448bb3(0x182))||this['disposeWithMe'](this[_0x448bb3(0x294)]['register']({'FlipVerticalIcon':_0x2efc66})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x205))||this[_0x448bb3(0x328)](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'BottomIcon':_0x3bd381})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x37c))||this[_0x448bb3(0x328)](this['_iconManager'][_0x448bb3(0x24c)]({'MoveDownIcon':_0x1164ba})),this[_0x448bb3(0x294)]['has'](_0x448bb3(0x287))||this[_0x448bb3(0x328)](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'MoveUpIcon':_0x907637})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this['disposeWithMe'](this[_0x448bb3(0x294)][_0x448bb3(0x24c)]({'ShapeFormatSettingIcon':_0x350cd9})),this[_0x448bb3(0x294)][_0x448bb3(0x1bd)](_0x448bb3(0x118))||this['disposeWithMe'](this['_iconManager'][_0x448bb3(0x24c)]({'TopmostIcon':_0x14bd06}));}[_0x541acc(0x239)](){const _0x1bbca3=_0x541acc;this['disposeWithMe'](this['_componentManager'][_0x1bbca3(0x24c)](Lr,xa)),this[_0x1bbca3(0x328)](this['_componentManager'][_0x1bbca3(0x24c)](Rr,$i)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](Jr,ei)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)]['register'](Yr,Zr)),this[_0x1bbca3(0x154)]['hasDefault'](_0x4939b9)||this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](_0x4939b9,$r)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)]['register'](zr,Sa)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](di,hi)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](ui,gi)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](fi,_i)),this[_0x1bbca3(0x328)](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](pi,vi)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](Hr,_0x1d0940)),this['disposeWithMe'](this[_0x1bbca3(0x154)][_0x1bbca3(0x24c)](_0x1bbca3(0xaf),Ta));}};Ea=X([Y(0x0,_0x53ba9c(_0x6cddf9)),Y(0x1,_0x53ba9c(_0x404799))],Ea);let Da=class extends _0x50d788{constructor(_0x1764cb,_0x18f3c8,_0x4bf469,_0x3ca67b,_0x718b95,_0x1e3494,_0x8a721d,_0x37f89a,_0x3bb4c4){const _0x2f6520=_0x541acc;super();let _0x1328d1=_0x3df90f=>{const _0x200db5=_0x5f19;var _0x2ffa61,_0x3cbe4e;return(((_0x2ffa61=_0x37f89a[_0x200db5(0x2e2)](new _0x220388(_0x3df90f[_0x200db5(0x2b7)])['id']))==null?void 0x0:_0x2ffa61[_0x200db5(0x156)])??!0x0)&&(((_0x3cbe4e=_0x37f89a[_0x200db5(0x2e2)](new _0x5d269b(_0x3df90f[_0x200db5(0x2b7)],_0x3df90f[_0x200db5(0x32f)])['id']))==null?void 0x0:_0x3cbe4e[_0x200db5(0x156)])??!0x0);},_0x13c576=_0x2486a8=>_0x2486a8['shapeId']&&_0x1328d1(_0x2486a8)?_0x4bf469[_0x2f6520(0x258)](_0x2486a8['unitId'],_0x2486a8[_0x2f6520(0x32f)],_0x2486a8[_0x2f6520(0x266)])??null:null,_0xfdf8d1=()=>{const _0x2f573c=_0x2f6520;let _0x57dfe4=_0x718b95[_0x2f573c(0x28b)](),_0x1e4f26=_0x57dfe4[_0x2f573c(0xf6)]===0x1?_0x57dfe4[0x0]:null;return(_0x1e4f26==null?void 0x0:_0x1e4f26[_0x2f573c(0x2e1)])===_0x4a245a[_0x2f573c(0x1f9)]&&_0x1e4f26[_0x2f573c(0x2b7)]===_0x1764cb[_0x2f573c(0x2b7)]?{'unitId':_0x1e4f26['unitId'],'subUnitId':_0x1e4f26[_0x2f573c(0x32f)],'shapeId':_0x1e4f26[_0x2f573c(0x162)]}:null;};this[_0x2f6520(0x328)](_0x54bb22(_0x1764cb,_0x18f3c8,{'changes$':_0x53fdee(_0x718b95[_0x2f6520(0x169)],_0x3ca67b['editingParams$'],_0x37f89a['permissionPointUpdate$']),'isActive':()=>{const _0x17877c=_0x2f6520;var _0x51d801;return((_0x51d801=_0x1e3494['getFocusedUnit']())==null?void 0x0:_0x51d801[_0x17877c(0x1f1)]())===_0x1764cb[_0x17877c(0x2b7)]&&!_0x8a721d[_0x17877c(0x1ff)](_0x5ba962)&&_0x718b95[_0x17877c(0x28b)]()[_0x17877c(0x12c)](_0x49987d=>_0x49987d[_0x17877c(0x2b7)]===_0x1764cb[_0x17877c(0x2b7)]);},'getSelectedTarget':_0xfdf8d1,'getSource':()=>{let _0x48965e=_0xfdf8d1();return _0x48965e?_0x13c576(_0x48965e):null;},'getTarget':_0x4ccc43=>{const _0x2322d6=_0x2f6520;let _0x3045a0=_0x1764cb[_0x2322d6(0x34c)]['pick'](new _0x53a890(_0x4ccc43[_0x2322d6(0x1e6)],_0x4ccc43[_0x2322d6(0x1e3)]));if(!(_0x3045a0 instanceof J))return null;let _0x346391={'unitId':_0x1764cb[_0x2322d6(0x2b7)],'subUnitId':_0x3045a0[_0x2322d6(0x32f)],'shapeId':_0x3045a0[_0x2322d6(0x266)]};return _0x1328d1(_0x346391)?_0x346391:null;},'getShape':_0x13c576,'update':(_0x21cc8b,_0x5c938f,_0x3f1dd8)=>_0x3bb4c4[_0x2f6520(0x1b0)](K['id'],{..._0x21cc8b,'shapeData':_0x3f1dd8,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x5c938f}})}));}};Da=X([Y(0x1,_0x53ba9c(_0x2b0b62)),Y(0x2,_0x53ba9c(_0x27864b)),Y(0x3,_0x53ba9c($)),Y(0x4,_0x5399a4),Y(0x5,_0x43400d),Y(0x6,_0x35ac6c),Y(0x7,_0x2dd2ac),Y(0x8,_0x2c496c)],Da);const Oa='sheets-shape-contextual-ribbon';let ka=class extends _0x50d788{constructor(_0x1de017,_0x434378,_0x2e8eb8,_0x5b5eda,_0x1b5cfd,_0x1dd7eb){const _0x51e426=_0x541acc;super(),this[_0x51e426(0x163)]=_0x1de017,this[_0x51e426(0x272)]=_0x434378,this[_0x51e426(0x1b6)]=_0x2e8eb8,this[_0x51e426(0x35a)]=_0x5b5eda,this['_renderManagerService']=_0x1b5cfd,this[_0x51e426(0x1fe)]=_0x1dd7eb,q(this,'_visible',!0x1),this[_0x51e426(0x163)][_0x51e426(0x1fa)](Hi),this['disposeWithMe'](_0x183b07(this[_0x51e426(0x1b6)][_0x51e426(0x169)][_0x51e426(0x36d)](()=>this[_0x51e426(0x346)]()))),this['_update']();}[_0x541acc(0x1ae)](){const _0x86eb57=_0x541acc;this[_0x86eb57(0x1fe)][_0x86eb57(0x188)](!0x1,Oa),this[_0x86eb57(0x15d)](),super[_0x86eb57(0x1ae)]();}[_0x541acc(0x346)](){const _0xdf5f5c=_0x541acc;var _0x1f09c0;let _0x1d6955=this[_0xdf5f5c(0x1b6)][_0xdf5f5c(0x28b)](),_0x4c5dd6=_0x1d6955[_0xdf5f5c(0xf6)]===0x1?_0x1d6955[0x0]:void 0x0;if((_0x4c5dd6==null?void 0x0:_0x4c5dd6[_0xdf5f5c(0x2e1)])!==_0x4a245a[_0xdf5f5c(0x1f9)]||this[_0xdf5f5c(0x35a)][_0xdf5f5c(0x231)](_0x4c5dd6[_0xdf5f5c(0x2b7)])!==_0x35cbcc[_0xdf5f5c(0x164)]){this[_0xdf5f5c(0x1fe)][_0xdf5f5c(0x188)](!0x1,Oa),this[_0xdf5f5c(0x15d)]();return;}let _0x29c0c6=(_0x1f09c0=this[_0xdf5f5c(0x232)]['getRenderUnitById'](_0x4c5dd6[_0xdf5f5c(0x2b7)]))==null?void 0x0:_0x1f09c0['engine'][_0xdf5f5c(0x28f)](),_0x2c0df3=_0x34233e(_0x29c0c6)===_0xdf5f5c(0x2c1);this[_0xdf5f5c(0x1fe)][_0xdf5f5c(0x188)](_0x2c0df3,Oa),_0x2c0df3?this[_0xdf5f5c(0x15d)]():this['_visible']||(this[_0xdf5f5c(0x220)]=!0x0,this[_0xdf5f5c(0x272)][_0xdf5f5c(0xbd)](Br,{'activate':!0x0}));}['_hide'](){const _0x1915b6=_0x541acc;this[_0x1915b6(0x220)]&&(this[_0x1915b6(0x220)]=!0x1,this['_ribbonService'][_0x1915b6(0x23b)](Br),this[_0x1915b6(0x272)][_0x1915b6(0x338)]([]));}};ka=X([Y(0x0,_0x413bdc),Y(0x1,_0x999fc3),Y(0x2,_0x5399a4),Y(0x3,_0x43400d),Y(0x4,_0x22bed8),Y(0x5,_0x53ba9c(_0x161d03))],ka);let Aa=class extends _0x54f80b{constructor(_0x1098a8,_0x59b5bb,_0x3a3757,_0x13e0dd,_0x3428d0,_0x4906b4,_0x1885c2,_0x53a5a7,_0x2cd686,_0x1f4d70){super(_0x1098a8,_0x59b5bb,_0x3a3757,_0x13e0dd,_0x3428d0,_0x4906b4,_0x1885c2,_0x53a5a7,_0x2cd686,_0x1f4d70,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x53ba9c(_0x542bad)),Y(0x2,_0x53ba9c(_0x5a9bef)),Y(0x3,_0x53ba9c(_0x8274d6)),Y(0x4,_0x2c496c),Y(0x5,_0x53ba9c(_0x30789b)),Y(0x6,_0x53ba9c(_0x3ca8c8)),Y(0x7,_0x53ba9c(_0x4ab968)),Y(0x8,_0x53ba9c(_0x2d1c03)),Y(0x9,_0x53ba9c($))],Aa);let ja=class extends _0x92e723{constructor(_0x3b4ce7,_0x23783f,_0x3d701d,_0x5f285c,_0x26338e){const _0x44bd22=_0x541acc;super(_0x3b4ce7,_0x23783f,{'editing$':_0x3d701d[_0x44bd22(0x204)],'resolve':_0x4d1cda=>{const _0x306230=_0x44bd22;var _0x158391,_0x1068a8,_0x2cdc5c;let _0x4b9e5c=new _0x53a890(_0x4d1cda[_0x306230(0x1e6)],_0x4d1cda['offsetY']),_0xa5f07b=((_0x158391=_0x3b4ce7['scene'][_0x306230(0x1f2)](_0x4b9e5c))==null?void 0x0:_0x158391[_0x306230(0xce)](_0x4b9e5c))??_0x4b9e5c,_0x47451f=_0x18e584(_0x3b4ce7[_0x306230(0x34c)][_0x306230(0x153)](_0x4b9e5c)??null,_0xa5f07b);if(!(_0x47451f instanceof J))return null;let _0x108d2=_0x47451f[_0x306230(0x21d)](_0xa5f07b);if(!_0x108d2)return null;let _0x5a6e79=_0x47451f,_0x46b90b={'componentKey':_0x190f9d[_0x306230(0xd6)],'direction':_0x306230(0x2ee),'offset':[0x0,0xa],'onClickOutside':()=>_0x23783f[_0x306230(0xc7)]()};return{'object':_0x47451f,'info':{..._0x108d2,'unitId':_0x47451f['unitId'],'subUnitId':_0x47451f[_0x306230(0x32f)],'shapeKey':_0x47451f[_0x306230(0x22c)],'readonly':!0x0,'copyable':((_0x1068a8=_0x26338e[_0x306230(0x2e2)](new _0x18f348(_0x47451f[_0x306230(0x2b7)])['id']))==null?void 0x0:_0x1068a8[_0x306230(0x156)])!==!0x1&&((_0x2cdc5c=_0x26338e['getPermissionPoint'](new _0x37f6de(_0x47451f['unitId'],_0x47451f[_0x306230(0x32f)])['id']))==null?void 0x0:_0x2cdc5c[_0x306230(0x156)])!==!0x1},'attachPopup':()=>_0x5f285c[_0x306230(0x25d)](_0x5a6e79,_0x46b90b)};}}),this[_0x44bd22(0x328)](_0x3b4ce7[_0x44bd22(0x20c)]['activeSheet$']['subscribe'](()=>this[_0x44bd22(0x24b)]()));}};ja=X([Y(0x1,_0x53ba9c(_0x3ca8c8)),Y(0x2,_0x53ba9c($)),Y(0x3,_0x53ba9c(_0x5973fe)),Y(0x4,_0x2dd2ac)],ja);let Ma=class extends _0x50d788{constructor(_0x442623,_0x5816a0,_0x374c59,_0x52fac1,_0x5b9f5f,_0x5f23c0,_0x6a2883,_0x43003e,_0x43d9c2,_0x25efa4,_0x2771ce){const _0x10db1c=_0x541acc;super(),this['_univerInstanceService']=_0x442623,this['_sidebarService']=_0x5816a0,this['_menuManagerService']=_0x374c59,this[_0x10db1c(0x1da)]=_0x52fac1,this[_0x10db1c(0x2a5)]=_0x5b9f5f,this[_0x10db1c(0xdc)]=_0x5f23c0,this[_0x10db1c(0x1b6)]=_0x6a2883,this[_0x10db1c(0xcb)]=_0x43003e,this[_0x10db1c(0x311)]=_0x43d9c2,this[_0x10db1c(0x232)]=_0x25efa4,this['_shapeTextEditingService']=_0x2771ce,q(this,_0x10db1c(0x32c),null),q(this,_0x10db1c(0x1e5),null),q(this,'_isOpenedShapeEditPanel',!0x1),q(this,_0x10db1c(0x2b1),0x0),q(this,_0x10db1c(0x2ab),null),q(this,_0x10db1c(0x2d7),[]),this[_0x10db1c(0x1bb)](),this[_0x10db1c(0x328)](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x35cbcc[_0x10db1c(0x164)])[_0x10db1c(0x36d)](_0x47d6b5=>{const _0x2f15d3=_0x10db1c;if(!_0x47d6b5){var _0x363227;(_0x363227=this[_0x2f15d3(0x32c)])==null||_0x363227[_0x2f15d3(0x1ae)]();}})),this[_0x10db1c(0x135)](),this[_0x10db1c(0x117)](),this[_0x10db1c(0x328)](this[_0x10db1c(0x1af)][_0x10db1c(0x204)][_0x10db1c(0x36d)](_0x5e4c72=>{const _0x12fece=_0x10db1c;_0x5e4c72&&this[_0x12fece(0x139)]();}));}[_0x541acc(0x1bb)](){const _0x55fec3=_0x541acc;this[_0x55fec3(0x163)][_0x55fec3(0x1fa)](Wi);}[_0x541acc(0x117)](){const _0x462394=_0x541acc;this[_0x462394(0x2ab)]||=this[_0x462394(0x328)](_0x360d1d(this[_0x462394(0x232)],_0x35cbcc['UNIVER_SHEET'],_0x18c433=>this[_0x462394(0xe3)](_0x18c433)));}['_getShapeInfo'](_0x4e8dad,_0x4c3be5,_0x58faa7){const _0x5f3231=_0x541acc;let _0x5a9518=this[_0x5f3231(0x1da)][_0x5f3231(0x16d)](_0x4e8dad,_0x4c3be5,_0x58faa7),_0x584d94=this[_0x5f3231(0x1da)][_0x5f3231(0x258)](_0x4e8dad,_0x4c3be5,_0x58faa7);return _0x5a9518!==void 0x0&&_0x584d94!==void 0x0?{'shapeData':_0x584d94,'shapeId':_0x58faa7,'shapeType':_0x5a9518,'unitId':_0x4e8dad,'subUnitId':_0x4c3be5,'version':this[_0x5f3231(0x2b1)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x40e8f0=_0x541acc;this[_0x40e8f0(0x2d7)][_0x40e8f0(0x1ba)](_0x424450=>_0x424450[_0x40e8f0(0x1ae)]()),this[_0x40e8f0(0x2d7)][_0x40e8f0(0xf6)]=0x0;}[_0x541acc(0xe3)](_0x82a35b){const _0x323f75=_0x541acc;let _0x1555d8=new _0x1de28d();return _0x1555d8[_0x323f75(0xb5)](_0x82a35b['createControl$'][_0x323f75(0x36d)](()=>{const _0x4b00fc=_0x323f75;let _0x35160c=_0x82a35b['getSelectedObjectMap']();if(this[_0x4b00fc(0x139)](),this[_0x4b00fc(0x2ed)]||_0x35160c['size']>0x1)return;let _0x28f43b=_0x35160c[_0x4b00fc(0x370)]()[_0x4b00fc(0x2d4)]()['value'];if(!_0x28f43b)return;let _0x4026a0=this['_drawingManagerService']['getDrawingOKey'](_0x28f43b[_0x4b00fc(0x22c)]);if(!_0x4026a0||_0x4026a0['drawingType']!==_0x4a245a[_0x4b00fc(0x1f9)])return;let {unitId:_0x51e4cf,subUnitId:_0x1a8578,drawingId:_0x10ec8a,drawingType:_0x5167da}=_0x4026a0,_0x2f81e7=this[_0x4b00fc(0x250)](_0x51e4cf,_0x1a8578,_0x10ec8a);if(!_0x2f81e7)return;this[_0x4b00fc(0x311)][_0x4b00fc(0x1c5)](_0x121b13,!0x0);let _0x38dd1e=this[_0x4b00fc(0x232)][_0x4b00fc(0x365)](_0x51e4cf),_0x102ee5=((_0x38dd1e==null?void 0x0:_0x38dd1e[_0x4b00fc(0x2f9)])===!0x1?_0x38dd1e[_0x4b00fc(0x320)](_0x5973fe):this[_0x4b00fc(0xcb)])['attachPopupToObject'](_0x28f43b,{'componentKey':zr,'direction':_0x4b00fc(0x2d2),'offset':[0x0,_0x375d53],'extraProps':{'unitId':_0x51e4cf,'subUnitId':_0x1a8578,'drawingId':_0x10ec8a,'drawingType':_0x5167da,'shapeType':_0x2f81e7[_0x4b00fc(0x1e4)],'shapeData':_0x2f81e7['shapeData']}});this[_0x4b00fc(0x2d7)][_0x4b00fc(0x288)](this[_0x4b00fc(0x328)](_0x102ee5)),this[_0x4b00fc(0x1b6)][_0x4b00fc(0x28b)]()['find'](_0x3a5a21=>_0x3a5a21[_0x4b00fc(0x2b7)]===_0x51e4cf&&_0x3a5a21[_0x4b00fc(0x32f)]===_0x1a8578&&_0x3a5a21['drawingId']===_0x10ec8a)||this[_0x4b00fc(0x1b6)][_0x4b00fc(0x1f7)]([{'unitId':_0x51e4cf,'subUnitId':_0x1a8578,'drawingId':_0x10ec8a}]);})),_0x1555d8[_0x323f75(0xb5)](_0x82a35b[_0x323f75(0x2ca)][_0x323f75(0x36d)](()=>{const _0x330a86=_0x323f75;this[_0x330a86(0x139)](),this[_0x330a86(0x311)][_0x330a86(0x1c5)](_0x121b13,!0x1),this[_0x330a86(0x1b6)]['focusDrawing'](null);})),_0x1555d8[_0x323f75(0xb5)](_0x82a35b[_0x323f75(0x2b8)]['subscribe'](()=>{this['_clearPopups']();})),_0x1555d8[_0x323f75(0xb5)](_0x82a35b[_0x323f75(0xfa)]['subscribe'](()=>{const _0x548e00=_0x323f75;this[_0x548e00(0x139)]();})),_0x183b07(()=>{const _0xcc6686=_0x323f75;_0x1555d8[_0xcc6686(0x1ae)](),this[_0xcc6686(0x139)]();});}['_registerOperations'](){const _0x33d135=_0x541acc;this[_0x33d135(0x328)](this[_0x33d135(0xdc)]['onCommandExecuted'](_0x18f3cf=>{const _0x1403d7=_0x33d135;if(_0x18f3cf['id']===Wr['id']){let {unitId:_0x14790c,subUnitId:_0x913c8a,drawingId:_0x51d685}=_0x18f3cf[_0x1403d7(0x152)];this[_0x1403d7(0x2b1)]+=0x1,this[_0x1403d7(0x1e5)]=this[_0x1403d7(0x250)](_0x14790c,_0x913c8a,_0x51d685),this[_0x1403d7(0x139)](),this[_0x1403d7(0x331)]();}if(_0x18f3cf['id']===ya['id']&&(this[_0x1403d7(0x1e5)]=null,this[_0x1403d7(0xbf)]()),_0x18f3cf['id']===_0x2a1218['id']){let {unitId:_0xc53912,subUnitId:_0x2c1865,shapeId:_0x430efb}=_0x18f3cf[_0x1403d7(0x152)];if(this['_activeShapeInfo']&&this[_0x1403d7(0x1e5)][_0x1403d7(0x266)]===_0x430efb){let _0x42f282=this[_0x1403d7(0x250)](_0xc53912,_0x2c1865,_0x430efb);_0x42f282&&(this['_shapeEditPanelVersion']+=0x1,_0x42f282[_0x1403d7(0x102)]=this[_0x1403d7(0x2b1)],this[_0x1403d7(0x1e5)]=_0x42f282,this['_isOpenedShapeEditPanel']&&this[_0x1403d7(0x331)]());}}})),this[_0x33d135(0x328)](this['_drawingManagerService'][_0x33d135(0x169)]['subscribe'](_0x3c3df2=>{const _0x51fce9=_0x33d135;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x3c3df2[_0x51fce9(0xf6)]===0x0){this[_0x51fce9(0x1e5)]=null,this[_0x51fce9(0xbf)]();return;}if(_0x3c3df2[_0x51fce9(0xf6)]===0x1&&_0x3c3df2[0x0][_0x51fce9(0x2e1)]===_0x4a245a[_0x51fce9(0x1f9)]&&(this[_0x51fce9(0x2b1)]+=0x1,this[_0x51fce9(0x1e5)]=this[_0x51fce9(0x250)](_0x3c3df2[0x0][_0x51fce9(0x2b7)],_0x3c3df2[0x0]['subUnitId'],_0x3c3df2[0x0][_0x51fce9(0x162)]),this[_0x51fce9(0x1e5)])){this[_0x51fce9(0x331)]();return;}let _0x53404e=_0x3c3df2[_0x51fce9(0x305)](_0x39b0ff=>_0x39b0ff['drawingType']===_0x4a245a[_0x51fce9(0x1f9)]);if(_0x3c3df2['length']>0x1&&_0x53404e[_0x51fce9(0xf6)]===_0x3c3df2['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x51fce9(0x1e5)]=this['_getShapeInfo'](_0x3c3df2[0x0]['unitId'],_0x3c3df2[0x0][_0x51fce9(0x32f)],_0x3c3df2[0x0][_0x51fce9(0x162)]),this[_0x51fce9(0x1e5)]){this[_0x51fce9(0x331)]();return;}}else{if(this[_0x51fce9(0x2b1)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x3c3df2[0x0][_0x51fce9(0x2b7)],_0x3c3df2[0x0][_0x51fce9(0x32f)],_0x3c3df2[0x0]['drawingId']),this[_0x51fce9(0x1e5)]){this['_activeShapeInfo'][_0x51fce9(0x29e)]=!0x0,this[_0x51fce9(0x331)]();return;}}this[_0x51fce9(0xbf)]();}));}[_0x541acc(0x331)](){const _0x153d9f=_0x541acc;this[_0x153d9f(0x1e5)]&&(this[_0x153d9f(0x32c)]=this[_0x153d9f(0x30c)][_0x153d9f(0x36f)]({'id':Lr,'header':{'title':this[_0x153d9f(0x2a5)]['t'](_0x153d9f(0x33c))},'width':0x184,'children':{'label':Lr,...this[_0x153d9f(0x1e5)]},'onClose':()=>{const _0x37f4dd=_0x153d9f;this[_0x37f4dd(0x1b6)][_0x37f4dd(0x1f7)](null),this['_contextService'][_0x37f4dd(0x1c5)](_0x121b13,!0x1),this[_0x37f4dd(0x32c)]=null;}}),this[_0x153d9f(0x2ed)]=!0x0);}[_0x541acc(0xbf)](){const _0x5b6b76=_0x541acc;this[_0x5b6b76(0x2ed)]=!0x1,this[_0x5b6b76(0x30c)][_0x5b6b76(0x1bf)](Lr),this[_0x5b6b76(0x32c)]=null,this[_0x5b6b76(0x311)][_0x5b6b76(0x1c5)](_0x121b13,!0x1),this['_drawingManagerService'][_0x5b6b76(0x1f7)](null);}};Ma=X([Y(0x0,_0x43400d),Y(0x1,_0x53ba9c(_0x450cf3)),Y(0x2,_0x413bdc),Y(0x3,_0x53ba9c(_0x27864b)),Y(0x4,_0x53ba9c(_0x5622d1)),Y(0x5,_0x2c496c),Y(0x6,_0x5399a4),Y(0x7,_0x53ba9c(_0x5973fe)),Y(0x8,_0x35ac6c),Y(0x9,_0x22bed8),Y(0xa,_0x53ba9c($))],Ma);let Na=class extends _0xcbf5d3{constructor(_0x8fd97c=Yi,_0x5f5c76,_0x501fbb,_0xe79079,_0x4f5486){const _0x5cf398=_0x541acc;super(),this[_0x5cf398(0x100)]=_0x8fd97c,this[_0x5cf398(0x157)]=_0x5f5c76,this['_commandService']=_0x501fbb,this[_0x5cf398(0x28d)]=_0xe79079,this['_renderManagerService']=_0x4f5486;let {..._0x13e67a}=_0x29ed24({},Yi,this['_config']);this['_configService'][_0x5cf398(0x12e)](Ji,_0x13e67a),this[_0x5cf398(0x209)]();}[_0x541acc(0x197)](){const _0x33bbf2=_0x541acc;this[_0x33bbf2(0x232)]['registerRenderModule'](_0x35cbcc['UNIVER_DOC'],[Aa]),_0x634993(this[_0x33bbf2(0x157)],[[Ma],[ca],[Z],[ha]]);}[_0x541acc(0x35d)](){const _0x3804a3=_0x541acc;this[_0x3804a3(0x157)]['get'](Ma)[_0x3804a3(0x117)]();}[_0x541acc(0x327)](){const _0xed2a34=_0x541acc;[[da],[Pr],[fa]][_0xed2a34(0x1ba)](_0x5f1f1c=>this[_0xed2a34(0x157)][_0xed2a34(0xb5)](_0x5f1f1c)),_0x634993(this[_0xed2a34(0x157)],[[fa],[Pr]]),this['_renderManagerService'][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[da]),this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[Xi]),this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[ma]),this[_0xed2a34(0x232)]['registerRenderModule'](_0x35cbcc[_0xed2a34(0x164)],[na]),this['disposeWithMe'](this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[ja])),this['disposeWithMe'](this[_0xed2a34(0x232)][_0xed2a34(0x234)](_0x35cbcc[_0xed2a34(0x164)],[Da]));}[_0x541acc(0x14f)](){const _0x46d753=_0x541acc;this[_0x46d753(0x157)][_0x46d753(0xb5)]([Ea]),this[_0x46d753(0x157)][_0x46d753(0x1e8)](Ea);let _0x5a6659=this[_0x46d753(0x157)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x46d753(0x1ba)](_0x37ff79=>_0x5a6659[_0x46d753(0xb5)](_0x37ff79)),_0x634993(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x541acc(0x209)](){const _0x33eea5=_0x541acc;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x33eea5(0x1ba)](_0xaee7eb=>this[_0x33eea5(0x328)](this[_0x33eea5(0xdc)]['registerCommand'](_0xaee7eb)));}};q(Na,_0x541acc(0x189),_0x35cbcc[_0x541acc(0x164)]),q(Na,_0x541acc(0xf2),'SHEET_SHAPE_UI_PLUGIN'),q(Na,_0x541acc(0x15c),Gi),q(Na,'version',Ki),Na=X([_0x44b434(_0x1c43d9,_0x442a76,_0x237bd8,_0x1a43cb,_0x4a85d4,_0x59b291,_0x51cee2,_0x3c3e08,_0x51e836,_0x1cf3f0,_0x5f07ce,_0xad06b8,_0x12c8db),Y(0x1,_0x53ba9c(_0x3387ed)),Y(0x2,_0x2c496c),Y(0x3,_0xed9cf),Y(0x4,_0x22bed8)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x291e41=_0x7c09;(function(_0xa37de,_0x2ad923){const _0x50cf95=_0x7c09,_0x302b64=_0xa37de();while(!![]){try{const _0x5d7dc9=-parseInt(_0x50cf95(0x434))/0x1*(-parseInt(_0x50cf95(0x378))/0x2)+parseInt(_0x50cf95(0x36b))/0x3+-parseInt(_0x50cf95(0x231))/0x4*(-parseInt(_0x50cf95(0x3e2))/0x5)+-parseInt(_0x50cf95(0x40b))/0x6*(parseInt(_0x50cf95(0x3df))/0x7)+-parseInt(_0x50cf95(0x310))/0x8+-parseInt(_0x50cf95(0x2fc))/0x9+-parseInt(_0x50cf95(0x425))/0xa*(-parseInt(_0x50cf95(0x420))/0xb);if(_0x5d7dc9===_0x2ad923)break;else _0x302b64['push'](_0x302b64['shift']());}catch(_0x2612c1){_0x302b64['push'](_0x302b64['shift']());}}}(_0x5720,0x2b1d1));import{FormulaShapeAnimationController as _0x557362,MobileShapeEditorService as _0xdd7ac8,SHAPE_CHANGE_PICKER_COMPONENT as _0x527a50,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x806650,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xf7ed1d,ShapeEditPanel as _0x36eeae,ShapeFloatingToolbar as _0x46cdc2,ShapeFloatingToolbarService as _0x5014c7,ShapeFloatingToolbarToggleFactory as _0x219f54,ShapeFormulaRibbonControl as _0x423781,ShapeGroupEnum as _0x1888fe,ShapePickerDropdown as _0x908982,ShapePickerPanel as _0x278d3,ShapeQuickStyleGallery as _0x125dd1,ShapeStyleRibbonControl as _0xf453d4,ShapeTextEditorContainer as _0xde71ea,ShapeTextFloatMenuRenderControllerBase as _0x34370e,ShapeTextFloatToolbar as _0x39f31b,ShapeTextHyperLinkHoverController as _0x164e04,ShapeTextHyperLinkInfo as _0x499c50,ShapeTextHyperLinkPopupService as _0xaf604c,ShapeTextRibbonControl as _0x28730a,ToggleShapeFloatingToolbarOperation as _0x4895c1,UniverShapeEditorMobileUIPlugin as _0x321a7b,UniverShapeEditorUIPlugin as _0x4cb8bb,activateDrawingObject as _0x390dd1,bindRenderTransformerLifecycle as _0x5695f5,buildShapeTextDataUpdate as _0x7848a,clearActiveDrawingObjects as _0x333af8,createShapeTextHyperLinkRegions as _0x43e03f,drawFormulaShapeAnimationLayers as _0x5ef902,getDrawingTypeNameKey as _0x2dbe92,getTextModel as _0x191d9a,getTextStyle as _0x35bc62,normalizeShapeTextModel as _0xe7bcff,plainShapeTextToDocumentData as _0x5650b1,prepareShapeTextDocumentData as _0x9ecb98,registerShapeFormatPainter as _0x2f2687,resolveFormulaShapeAutoFitSize as _0x3c23c5,resolveShapeContextualRibbonHostMode as _0x3afe9f,resolveShapeTextDocumentPageHeight as _0x5c59a8,resolveShapeTextDocumentRenderLayout as _0x151902,resolveShapeTextEditorBehaviorShapeData as _0x1ea201,resolveShapeTextEditorWrapStrategy as _0x999a14,resolveShapeTextHyperLinkAt as _0x37d474,resolveShapeTextHyperLinkObject as _0x39a534,shouldAllowShapeTextEditorHostSizeShrink as _0x59f590,shouldClipShapeTextDocument as _0x41dfeb,useFormulaShapeToolbar as _0x3c9bbc}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x5a241f,ContextMenuGroup as _0x5580dd,ContextMenuPosition as _0x42929a,FloatingObjectToolbarPosition as _0x150ddc,FormatPainterSessionService as _0x495908,IMenuManagerService as _0x24215b,IRibbonService as _0x5b1e2e,ISidebarService as _0x31c5f5,IconManager as _0x3844d8,MenuItemType as _0x570be5,MenuManagerPosition as _0x388a30,RibbonInsertGroup as _0x412e51,UndoRedoGroupService as _0x2a1a7d,UniverMobileUIPlugin as _0x227d6b,getMenuHiddenObservable as _0x205c3b,useDependency as _0x42cc68,useObservable as _0x279878}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x57b6f7,ImageSourceTypeEnum as _0x54f00f,ShapeArrowSizeEnum as _0x672a93,ShapeArrowTypeEnum as _0x3aa73d,ShapeDefaultConfig as _0x179988,ShapeFillEnum as _0x2efc4e,ShapeLineTypeEnum as _0xdd541a,ShapeModel as _0xdd4745,ShapeRenderModeEnum as _0x49a3ec,ShapeTypeEnum as _0x206995,computeConnectorRouteLayout as _0x485b2f,getBasicShapeRotateBound as _0x1eb82f,isConnectorShape as _0x5184c7,isCurvedConnectorShape as _0x1105e7,routeConnectorLineShape as _0xf06aa3}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x42a3cf,UniverShapeEditorPlugin as _0x22a2d8,applyQuickStyleToShapeData as _0x28ac21,cloneShapeDataForType as _0x386d13,createShapeFormulaDocument as _0x13ffed,createShapeTextBoxShapeData as _0x412b4d,getShapeQuickStylePreset as _0x33963b,getShapeQuickStyleType as _0x5d10b7,resolveActiveShapeQuickStylePresetId as _0x12b5de}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x2b8b47,InsertSheetsShapeMutation as _0x456c13,RemoveSheetsShapeMutation as _0x5aa689,SetShapeDrawingDataCommand as _0x11a9aa,SheetsShapeService as _0x1e1f0c,ToggleSheetsShapeFlipCommand as _0x47976c,UniverSheetsShapePlugin as _0x50e887,UpdateConnectorRelationCommand as _0x54081a,UpdateLineShapeResizeCommand as _0x9d6709,UpdateSheetsShapeDataMutation as _0x172941}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x10dd10,CommandType as _0x303f65,DependentOn as _0x650ae5,Disposable as _0x557a26,DisposableCollection as _0x39a460,DocumentDataModel as _0x475565,DrawingTypeEnum as _0x40fd85,FOCUSING_COMMON_DRAWINGS as _0x317872,FOCUSING_SHAPE_TEXT_EDITOR as _0x2a4c27,HorizontalAlign as _0xc256c8,ICommandService as _0x54c16f,IConfigService as _0x3dbeab,IContextService as _0x4b3877,IImageIoService as _0x213f29,IPermissionService as _0x1d37e3,IURLImageService as _0x5f21c5,IUndoRedoService as _0x214c77,IUniverInstanceService as _0x44b74c,Inject as _0x5b79b4,Injector as _0x2882bc,LocaleService as _0x13738a,Plugin as _0x1f6119,UniverInstanceType as _0x3c82b9,VerticalAlign as _0x46a67d,createInternalEditorID as _0xe939c,generateRandomId as _0x2eff46,merge as _0x45bd5a,registerDependencies as _0x2cbcdc,toDisposable as _0x53ca46,touchDependencies as _0x125864}from'@univerjs/core';import{CopySheetCommand as _0x4f6b3a,RemoveSheetCommand as _0x20821a,SheetInterceptorService as _0x20504f,SheetPermissionCheckController as _0x277cdb,SheetSkeletonService as _0x4f7695,SheetsSelectionsService as _0x438b0b,UniverSheetsPlugin as _0x4d4740,WorkbookCopyPermission as _0x581335,WorkbookEditablePermission as _0x20b096,WorksheetCopyPermission as _0x499382,WorksheetEditPermission as _0x1ea295,attachRangeWithCoord as _0x170768,discreteRangeToRange as _0x4bd816,getSheetCommandTarget as _0x378f79}from'@univerjs/sheets';import{IDrawingManagerService as _0x28cffc,SetDrawingSelectedOperation as _0x5e3e35,UniverDrawingPlugin as _0x73a66f,getDrawingShapeKeyByDrawingSearch as _0x38d621,getOrCreateDrawingCopyPlan as _0x3e806a}from'@univerjs/drawing';import{CURSOR_TYPE as _0x15231c,Circle as _0x49536a,DRAWING_OBJECT_LAYER_INDEX as _0x10b13b,DocumentSkeleton as _0x41a7bc,DocumentViewModel as _0x114b7f,Documents as _0x231258,IRenderManagerService as _0x1158d5,Image as _0x3e5f8e,RENDER_CLASS_TYPE as _0x142f92,SHEET_VIEWPORT_KEY as _0x8831d0,Shape as _0x156eef,Transform as _0x36d9d2,UniverRenderEnginePlugin as _0x3d4438,Vector2 as _0x45d11b}from'@univerjs/engine-render';import{COPY_TYPE as _0x10a2b5,ISheetClipboardService as _0xa7e024,PREDEFINED_HOOK_NAME as _0x533c9a,SheetCanvasPopManagerService as _0x57fdbe,SheetPrintInterceptorService as _0x344f2a,SheetScrollManagerService as _0xbd2a68,SheetSkeletonManagerService as _0x5635f6,UniverSheetsMobileUIPlugin as _0x1c1c30,UniverSheetsUIPlugin as _0x34cd91,deriveStateFromActiveSheet$ as _0x4cade8,getCurrentRangeDisable$ as _0xa68a8d,getViewportByCell as _0x53677b}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x21d0c1,EMPTY as _0x257bb9,Observable as _0x1486bd,defer as _0x5ccdfe,distinctUntilChanged as _0xfbaf87,map as _0x415b6a,merge as _0x6a7021,of as _0x413c25,startWith as _0x1c299f,switchMap as _0x17931b}from'rxjs';function _0x7c09(_0x4f5958,_0x4e80fc){_0x4f5958=_0x4f5958-0x192;const _0x5720d2=_0x5720();let _0x7c0962=_0x5720d2[_0x4f5958];return _0x7c0962;}import{DrawingCommonPanel as _0x575d51,DrawingImageClipService as _0x252e29,DrawingRenderService as _0x5a0133,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1b086b,MobileObjectListPanel as _0x570c7a,OBJECT_LIST_FLOATING_SECTION_ID as _0x39a12f,ObjectListPanelBase as _0x43b8f7,UniverDrawingUIPlugin as _0x55e9c6,getCurrentUnitInfo as _0x286bfa,getObjectListPanelSectionIdForDrawingType as _0x4dc94f,insertGroupObject as _0x56c630}from'@univerjs/drawing-ui';import{MobileDropdown as _0xf665f2}from'@univerjs/design';import{Fragment as _0x50afb4,jsx as _0x183ba7,jsxs as _0x21f5b5}from'react/jsx-runtime';import{DrawingApplyType as _0x22a6fe,ISheetDrawingService as _0x17b29e,RemoveSheetDrawingCommand as _0x1c9438,SetDrawingApplyMutation as _0x2db9e2,SetDrawingArrangeCommand as _0x15f547,SetSheetDrawingCommand as _0xb1758f,UniverSheetsDrawingPlugin as _0x470190,transformToAxisAlignPosition as _0x5e3806,transformToDrawingPosition as _0x4f36ef}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x49fb5c}from'@univerjs-pro/license';import{DocInterceptorService as _0x1be28b,DocSelectionManagerService as _0x24fa05,UniverDocsPlugin as _0x5795a7}from'@univerjs/docs';import{DocCanvasPopManagerService as _0xbc2827,DocEventManagerService as _0x2a6447,DocRenderController as _0x2112e8,DocSelectionRenderService as _0x132ceb,UniverDocsUIPlugin as _0x3c117e}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0xf526c,SheetsDrawingGroupCopyPasteController as _0x2c59b9,UniverSheetsDrawingMobileUIPlugin as _0x40f5a7,UniverSheetsDrawingUIPlugin as _0x15f435}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x19c68f,FlipHorizontalIcon as _0x30529a,FlipVerticalIcon as _0xd6996,MoveDownIcon as _0x14ee72,MoveUpIcon as _0xb1af47,ObjectLayersIcon as _0x10ffc5,ShapeFormatSettingIcon as _0x21bdf2,TopmostIcon as _0x384eef}from'@univerjs/icons';import{memo as _0x130daa,useEffect as _0x3b96f0,useMemo as _0x283095,useReducer as _0x2c6db3,useState as _0x339b64}from'react';function Or(_0x53d994,_0x295010){const _0x32218c=_0x7c09;let _0x52f0fa={};for(let _0x1db8a0 of Object['keys'](_0x295010)){let _0x323774=_0x295010[_0x1db8a0],_0x531d61=_0x53d994[_0x1db8a0];_0x52f0fa[_0x1db8a0]=_0x531d61===void 0x0?void 0x0:typeof _0x323774==_0x32218c(0x3d1)&&_0x323774&&!Array['isArray'](_0x323774)&&typeof _0x531d61==_0x32218c(0x3d1)&&_0x531d61&&!Array[_0x32218c(0x382)](_0x531d61)?Or(_0x531d61,_0x323774):_0x531d61;}return _0x52f0fa;}const K={'type':_0x303f65[_0x291e41(0x287)],'id':_0x291e41(0x2d7),'handler':(_0x1c4bc1,_0xe2fc43)=>{const _0x280339=_0x291e41;let _0x4f93d4=_0x1c4bc1['get'](_0x1e1f0c),{unitId:_0x297bf9,subUnitId:_0x3fbcf5,shapeType:_0x9ac6db,shapeId:_0x319f71,shapeData:_0x3fa948,replaceShapeData:_0x9d1a6,oldShapeJSON:_0x512115}=_0xe2fc43;if(!_0x4f93d4[_0x280339(0x32d)](_0x297bf9,_0x3fbcf5,_0x319f71))return!0x1;let _0x207eb6=_0x1c4bc1[_0x280339(0x42c)](_0x54c16f),_0x10e65f=_0x1c4bc1[_0x280339(0x42c)](_0x214c77),{oldShapeType:_0x428c2c,oldShapeData:_0x48eb97={}}=_0x512115,_0x193635=_0x9d1a6?_0x48eb97:Or(_0x48eb97,_0x3fa948||{}),_0x5f27c4={'id':_0x172941['id'],'params':{'unitId':_0x297bf9,'subUnitId':_0x3fbcf5,'shapeId':_0x319f71,'shapeType':_0x9ac6db,'shapeData':_0x3fa948,'replace':_0x9d1a6}},_0x5dd78f={'id':_0x172941['id'],'params':{'unitId':_0x297bf9,'subUnitId':_0x3fbcf5,'shapeId':_0x319f71,'shapeType':_0x428c2c,'shapeData':_0x193635,'replace':_0x9d1a6}};return _0x207eb6['syncExecuteCommand'](_0x5f27c4['id'],_0x5f27c4[_0x280339(0x2b1)])?(_0x10e65f[_0x280339(0x45e)]({'unitID':_0x297bf9,'undoMutations':[_0x5dd78f],'redoMutations':[_0x5f27c4]}),!0x0):!0x1;}};function kr(_0x1abb82,_0x397082,_0x2301f7,_0x4b66a9,_0x35a736,_0x4f4eb4){const _0xc08ab0=_0x291e41;let _0x278c03={'unitId':_0x397082,'subUnitId':_0x2301f7,'shapeId':_0x4b66a9,'shapeData':_0x4f4eb4,'oldShapeJSON':_0x35a736};return _0x1abb82[_0xc08ab0(0x2e1)](K['id'],_0x278c03);}function Ar(_0x4ca433,_0x5f0bf7,_0x195aa8,_0x4f947d,_0x5cdd4b,_0x5f43a1){const _0x31a5d6=_0x291e41;let _0x577f22={'unitId':_0x5f0bf7,'subUnitId':_0x195aa8,'shapeId':_0x4f947d,'shapeData':_0x5f43a1,'oldShapeJSON':_0x5cdd4b};return _0x4ca433[_0x31a5d6(0x2e1)](K['id'],_0x577f22);}function jr(_0x100fdf){'@babel/helpers - typeof';const _0x158095=_0x291e41;return jr=typeof Symbol==_0x158095(0x196)&&typeof Symbol[_0x158095(0x24d)]==_0x158095(0x2e4)?function(_0xcf53a7){return typeof _0xcf53a7;}:function(_0x4358ec){const _0x12ed8f=_0x158095;return _0x4358ec&&typeof Symbol==_0x12ed8f(0x196)&&_0x4358ec['constructor']===Symbol&&_0x4358ec!==Symbol[_0x12ed8f(0x326)]?'symbol':typeof _0x4358ec;},jr(_0x100fdf);}function _0x5720(){const _0x2f6bbf=['shapeText','sheets-shape-ui.config','_sheetPermissionCheckController','unitId','setPrstGeomAdjValues','_handleConnectedEndpointMove','from','panel','isInGroup','rect','name','permissionPointUpdate$','DRAWING','addObject','UNIVER_SHEET','_clearCompletionFrame','sheet.operation.close-sheet-shape-format-panel','_hide','_getShapeInfo','_permissionService','reduce','DEFAULT_PASTE','shape-text-','extraProps','initShapePopupMenu','_updateSrcRectByTransform','clipByShape','_injector','setFallbackVisible','273888XxmTNz','changeStart$','_connectionSiteObjects','getAdjustNames','offsetX','_adjHandlerPointerMove','multiply','_activeShapeInfo','MoveDownIcon','TOP','cos','connection-site-','flatMap','144gKotyX','ShapeIcon','sheets-shape-ui.ribbon.shape-format.arrange-front','computeStraightConnectorLayout','_baseShapeTop','getActualSize','clearControl$','bottom','_cxtHandlerPointerUp','_handleBasicShapeUpdateConnectorLineShape','isArray','_sheetClipboardService','entries','sidebarOptions$','getEndConnectInfo','MEDIA','_imageShapeClipController','sheetTransform','drawWith','transformVector2SceneCoord','sheetViewStartRow','parse','getBentTypeFromPoints','refreshFormulaPresentation','_adjName','_focusedDrawings','ObjectLayersIcon','MoveUpIcon','_univerInstanceService','#1a73e8','SolidFill','default','changeEnd$','calcAdjValues','sheet.shape.floating-toolbar','sheet.operation.open-shape-object-list-panel','FromArray','getImageSourceCache','getTransformerByCreate','_draw','GROUP','setFillImage','getDrawingVisible','shape-editor-ui.arrange.front','_imageIoService','undo','_transform','getRenderUnitById','sheet.shape.object-list.panel','_baseShapeHeight','_transformCalculateSrcRect','getSkeletonParam','fontFamily','shapeData','sin','dataModel','refreshTransform','getShapeTextRect','ShapeFormatSettingIcon','highlighted','_baseTop','engine','doc.image-clip.shape-picker.component','_getSceneAndTransformerByDrawingSearch','_setTransForm','offsetY','_adjHandlerPointerUp','updateDocumentDataMargin','activeSheet$','drawing-ui.objectListPanel.details','_moveConnectorWithShape','fill','filter','startArrow','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','targetShapeId','setShapeData','clipTop','_drawSimpleText','_registerOperations','drawing-ui.objectListPanel.typeNames.','getInverseCoord','_handleConnectedEndpointPointerUp','end','map','_props','top','register','object','setOnSavingEditorData','_formulaKey','drawing-ui.objectListPanel.filterHidden','_insertShapes','_registerImageShapeClipDelegate','_isShouldShowDrawingShapeAdjust','editingParams$','setAdjustValueByName','getPermissionPoint','startConnectionDetection','asObservable','adjHandleSize','calculate','22652rjyKYk','isHitLine','shapeType','2395MbGxbB','drawing-ui.objectListPanel.noSelection','Arrow','point','OPERATION','front','getEditing','_clipService','viewportScrollY','getZoomRatio','value','_componentManager','_drawRichText','_sheetDrawingService','onTransformChange$','keys','registerFeatureMenu','values','_registerDrawingFocusChangeHandler','div','setFormulaPresentation','index','restore','unit','beforeCommandExecuted','setEditing','order','isRichText','drawing-ui.objectListPanel.moveForward','_clearConnectionSites','animationEnabled','with','endConnectionDetection','version','localToWorld','getMatrix','viewBound','drawing-ui.objectListPanel.collapse','_sheetsShapeService','setContextValue','sheet.shape.text.float-menu','120zSlPUq','_baseDrawingRect','_configService','getDrawingData','abs','registerRenderModule','getBatchUpdateOp','_handleFreeEndpointMove','objects','getConnectionRelation','close','shapeId','_sheetSkeletonService','isHighlighted','error','_isHighlighted','_getShapeAdjustPointListById','top-center','sheets-shape-ui.flipHorizontal','_activeShapeId','Rect','9295Tnbkpd','_commandExecutedListener','_shapeFormulaService','mergeMenu','disableObjectsEvent','1290PusXSp','_disposePopups','REMOVE','_updateAdjustControlPositions','_sheetBasicShapeConnectionPointController','_addShapeConnectorHandlerObject','presentationChanged$','get','visible','showContextualTab','getImage','_groupCopyPasteController','getSheetId','disposeWithMe','drawing-ui.objectListPanel.close','4690iMZKRY','UNIVER_DOC','_getScrollInfo','getAdjustInfoByName','src','clip','DRAWING_SHAPE','SheetShapeTextEditorContainer','onCommandExecuted','resourceCollector','ancestorTransform','_clearControls','getUnitId','applyPoint','color','adjName','strokeWidth','call','_initPermission','_initSheetChange','_registerComponents','_renderManagerService','rotation','forEach','changeShapeType','defineProperty','sheets-shape-ui.ribbon.shape-format.text-control','getDrawingPoints','getSelectedObjectMap','sheets-shape-ui.ribbon.shape-format.formula-control','contentVerticalOffset','getCurrentUnitOfType','stringify','_attachAdjustEvent','subscribe','sheetViewStartColumn','setConfig','isEditing','_isImagePointerDown','_resetState','clone','width','pushUndoRedo','worldPoints','_activeImageId','doc','_registerGroupFeaturePasteHook','setShouldShowAdjust','function','getVisible','CROSSHAIR','_commandService','drawing-ui.objectListPanel.filterAll','BUTTON','interceptCommand','_sheetPrintInterceptorService','_sheetCanvasPopManagerService','fillImageSource','getShapeDataById','shape-editor-ui.toolbar.quickStyles','_targetShapeId','drawing-ui.objectListPanel.moveBackward','getShapeTypeById','_shapes','_disposed','idMap','sheets-shape-ui.ribbon.shape-format','subscribeEvent','getDrawingOKey','drawing-ui.objectListPanel.showAll','#bcbcbc','_connectorObjects','VIEW_MAIN_LEFT','cxnPointStrokeWidth','_initCommands','cxnPointStroke','_registerMoveHandler','Path','_iconManager','setPresentation','setSrcRect','syncExecuteCommand','sheets-shape-ui.deleteShape','push','sheets-shape-ui.shape-format.text-ribbon-control','adjHandleStroke','sheets-shape-ui.ribbon.shape-format.arrange-back','sheet.operation.open-sheet-shape-format-panel','pluginName','drawing-ui.objectListPanel.lock','skeleton','setCanUseShapeClip','_createShapeAdjustControls','update$','next','#FFFFFF','_updateImageAdjValues','_executeConnectedRouteConnectionCommand','srcRect','getAdjustValueByName','buildClipPath','_initMenu','_drawingAddListener','SHAPE_TEXT','_baseShapeLeft','viewportScrollX','_registerDrawingMoveHandler','_baseHeight','flipY','animateFormulaPresentation','fillImageSourceType','prstGeomAdjValues','_isConnecting','@univerjs-pro/sheets-shape-ui','focus$','_createControls','custom','_shapeId','_shapeFloatingToolbarService','drawingId','_getImageDrawingInfo','_subUnitId','_editingParams$','onSavingEditorData$','FlipVerticalIcon','_sheetShapeAdjustController','find','drawing.operation.set-drawing-active','translate','onPointerDown$','LEFT','getCurrentSkeleton','RIBBON','sheets-shape-ui.objectListPanel.open','getActiveViewportByCoord','drawing-ui.objectListPanel.lockAll','_initPrinting','enableObjectsEvent','sheet.operation.update-shape-type','drawing-ui.objectListPanel.show','scene','_menuManagerService','getFocusDrawings','SELECTOR','sheets-shape-ui.title','sheet.menu.shape.flip-horizontal','vertical-center','getConnectionSiteList','_registerIcons','pick','getObject','_applyFormulaAutoFitSize','addImageSourceCache','completeEditing','isolated','_updateShapeAdjustControls','_localeService','getInterceptPoints','extensionGroups','_generateCopyPasteMutations','computeConnectorResizeLayout','resolveHyperLinkAt','getUnit','drawingType','_rerouteConnectorLine','getConnectorLinePoints','draw','dispose','_reset','_onSavingEditorData$','cancelEditing','_currentConnectionTarget','getCurrentScrollState','drawing-ui.objectListPanel.sectionFloating','permissionCheckWithoutRange','size','style','setPrstGeom','_closeShapeEditPanel','_openShapeEditPanel','canvas','subUnitId','transform','drawing-ui.objectListPanel.expand','visible$','UUID','transformByState','forward','_attachConnectorObjectEvent','stroke','_getConnectPointInfo','onReady','_showConnectionSites','onStarting','clearAdjustControls','_hasReset','axisAlignSheetTransform','PictureFill','drawing-ui.objectListPanel.description','preValue','_generateCutPasteMutations','_activeShapeModel','#4285f4','620WxJwXA','unregister','_shapeRenderController','getContextValue','description','_clearShapeAdjustControls','_init','OTHERS','cxnIndex','_activeShapeAdjustPointList','_sheetDrawingShapeRenderController','render','contentHeight','_activeAdjustInfo','getDrawingOrder','_insertingShapeKeys','text','complete','trim','_formulaShapes','_getZoomRatio','setHighlighted','updateLinePoints','drawing-ui.objectListPanel.lockHint','toPrimitive','_createCopyInfoByRange','delete','pipe','iterator','sheets-shape-ui.flipVertical','run','sheets-shape-ui.editText','getConnectionInfo','SHEET_SHAPE_UI_PLUGIN','includes','updateConnectionDetection','_addShapeAdjustControl','registerClipDelegate','height','getDrawingDataForUnit','BottomIcon','_initEditingParams','resize','_isStartAdjusting','shape-editor-ui.arrange.backward','_findShapeAtPoint','beginPath','_getOrCreateShapeModel','isHit','getCurrentTypeOfUnit$','_urlImageService','_isStartConnectorPoint','sectionFloating','startX','_baseWidth','oKey','open','VIEW_MAIN_TOP','flipX','Large','_getConnectionSiteAngle','composeMatrix','worldRect','_addShapeConnectorHandlerObjects','string','FlipHorizontalIcon','_loadShapePictureFill','onPointerUp$','_shapeEditPanelVersion','resetCursor','packageName','_clearPopups','univer-box-border\x20univer-px-4\x20univer-text-sm','save','sheets-shape-ui.ribbon.shape-format.style-control','_registerFeatureMenu','DRAWING_IMAGE','_calculateFreeEndpointAngle','_drawShapeText','clear','updateShapeFillImage','Medium','_activeTargetShapeId','getRealBound','image-clip-adjust-point-','shapeModel','COMMAND','_visible','_handleFreeEndpointPointerUp','set','popup','type','_config','getDrawingEditable','_findNearestConnectionSite','has','onerror','getObjectIncludeInGroup','makeDirty','sheets-shape-ui.ribbon.shape-format.arrange-backward','formulaBinding','sheets-shape-text-','sheets-shape-ui.objectListPanel.title','getParent','_baseLeft','sheets-shape-ui.editShape','image','_getImagePrstGeom','drawing-ui.objectListPanel.unlockAll','endArrow','_lastEditingShapeKey','angle','clip-adj-','sheets-shape-ui','_drawRichTextLayer','drawing-ui.objectListPanel.dragToReorder','stopPropagation','getFocusedUnit','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','sectionCanvas','clearAdjustValue','_initialize','horizontal','registerCommand','_baseShapeWidth','sheet.operation.open-mobile-shape-editor','sheet.operation.apply-shape-quick-style','refreshAdjustControls','params','removeLinePoints','_handleConnectorPointerUp','getDrawingSearch','_getShapeAdjustInfosById','_initEvents','fillType','localeService','SHEET','getShapeType','_formulaAnimation','_executeConnectionCommand','focusDrawing','startY','_loadAndSetImage','indexOf','_shapeUpdateListener','debounceRefreshControls','getBatchRemoveOp','SolidLine','selectable','componentKey','drawing-ui.objectListPanel.filterLocked','clipHeight','_sheetInterceptorService','_getDrawingRect','relation','sheets-shape-ui.quickStyles','_currentScene','attachTransformerTo','_completionFrame','getValue','getSheetBySheetId','drawing-ui.objectListPanel.locate','_releaseRenderCache','_contextService','translateWithPrecision','shape-editor-ui.arrange.forward','sheet.command.update-shape-data','getSkeleton','getShapeData','_shapePopupMenuDisposable','_ribbonService','createControl$','_activeAdjustPointList','onDblclick$','getPresentation','_executeResizeCommand','executeCommand','addClipboardHook','shapeKey','symbol','canvasElement','isLineShape','sheet.image-clip.shape-picker.component','None','hasDefault','_shapeService','_generatePasteMutations','getState','cxnPointRadius','sheet.shape.edit.panel','invert','backward','UPDATE','changing$','shape-adjust-point-','intercept','isRender','worldPoint','isMainScene','_sidebarService','_executeConnectedRouteResizeCommand','sheets-shape-ui.ribbon.shape-format.arrange-forward','currentAdjustValues','251118xAvfrS','classType','getActiveSheet','_drawingRenderService','_registerFocusChangeHandler','renderDrawingShape','_canEdit','_highlightedSiteIndex','_currentUniverService','data','sheet.menu.shape.flip-vertical','sheets-shape-ui.imagePanel.crop.shape','ang','getStartConnectInfo','fromChangeset','clip-','sheets-shape-format-font-family-menu','attachPopupToObject','_isDrawingShapePointDown','_copyInfo','2744088xaSqHy','getBatchAddOp','getDrawingByParam','getCanvasElement','hidden','vertical','_draggingConnectorId','sheets-shape-ui.permission.editErr','sheets-shape-ui.formatShape','shape-editor-ui.toolbar.changeShape','current','parent','remove$','some','updateContext','_clearShapeConnectorHandlerObjects','updateDocumentStyle','hideContextualTab','add','_sidebarDisposable','prstGeom','drawing-ui.objectListPanel.unlock','prototype','_cxnIndex','PRINTING_COMPONENT_COLLECT','setCursor','getScene','options','setShapeProps','getShapeModel','isHorizontal','_unitId','start','drawing-ui.objectListPanel.nameInput','_isOpenedShapeEditPanel','refreshShapeFillImage','_initSelection','getTransformer','_addControl','left','transformForAngle','drawing-ui.objectListPanel.search','getBasicShapeRelation','_update','cxnPointFill','_shapeTextEditingService','Image','back','getUnitType','shape-editor-ui.arrange.back','adjustValues','_context','_cxtHandlerPointerMove','lineType','_drawingManagerService','INSERT','StraightConnector1','onPointerMove$','_hyperLinkRegions','Line','unsubscribe','redo'];_0x5720=function(){return _0x2f6bbf;};return _0x5720();}function Mr(_0x32c950,_0x3db309){const _0x36587b=_0x291e41;if(jr(_0x32c950)!='object'||!_0x32c950)return _0x32c950;var _0x5a951c=_0x32c950[Symbol[_0x36587b(0x249)]];if(_0x5a951c!==void 0x0){var _0x2ecb60=_0x5a951c[_0x36587b(0x445)](_0x32c950,_0x3db309||_0x36587b(0x397));if(jr(_0x2ecb60)!='object')return _0x2ecb60;throw TypeError(_0x36587b(0x3c2));}return(_0x3db309===_0x36587b(0x271)?String:Number)(_0x32c950);}function Nr(_0x572974){const _0xf5171a=_0x291e41;var _0x4404a4=Mr(_0x572974,_0xf5171a(0x271));return jr(_0x4404a4)=='symbol'?_0x4404a4:_0x4404a4+'';}function q(_0x52a130,_0x57583d,_0x1cd15d){const _0x178820=_0x291e41;return(_0x57583d=Nr(_0x57583d))in _0x52a130?Object[_0x178820(0x44d)](_0x52a130,_0x57583d,{'value':_0x1cd15d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52a130[_0x57583d]=_0x1cd15d,_0x52a130;}function Pr(_0x446ce1,_0xa779ec,_0x6f4264){let _0x4ecb22={..._0xa779ec,'dataModel':{..._0xa779ec['dataModel']??{},..._0x6f4264?{'doc':_0x6f4264}:null}},_0x3a1885=_0x1ea201(_0x446ce1,_0x4ecb22),_0x2862d3=_0x999a14(_0x3a1885);return{'clip':_0x41dfeb(_0x3a1885,_0x2862d3),'wrapStrategy':_0x2862d3};}var J=class extends _0x156eef{constructor(_0x4cdef2,_0x3ae757){const _0xdb93a8=_0x291e41;super(_0x4cdef2,_0x3ae757),q(this,_0xdb93a8(0x34a),[]),q(this,_0xdb93a8(0x3ce),void 0x0),q(this,_0xdb93a8(0x2bb),new _0x557362(()=>this[_0xdb93a8(0x293)](!0x0),()=>this[_0xdb93a8(0x1fd)]())),q(this,'_transformCalculateSrcRect',!0x0),q(this,'_drawingType',_0x40fd85[_0xdb93a8(0x43a)]),q(this,'isDrawingObject',!0x0),this[_0xdb93a8(0x3ce)]={..._0x3ae757},this[_0xdb93a8(0x2bb)][_0xdb93a8(0x1b5)](_0x3ae757['formulaPresentation'],_0x3ae757[_0xdb93a8(0x1d3)]!==!0x1),this[_0xdb93a8(0x237)](),this[_0xdb93a8(0x1fd)]();}[_0x291e41(0x237)](){const _0x456e7=_0x291e41;this[_0x456e7(0x3f0)]['subscribeEvent'](_0x50f043=>{this['_updateSrcRectByTransform'](_0x50f043);});}[_0x291e41(0x217)](_0x2b925f){const _0x3a31a7=_0x291e41;this[_0x3a31a7(0x3ce)][_0x3a31a7(0x324)]=_0x2b925f;}[_0x291e41(0x207)](_0x2a41e4){const _0x4dffbb=_0x291e41;if(this[_0x4dffbb(0x3ce)][_0x4dffbb(0x459)])return null;let _0x4a281e=this[_0x4dffbb(0x3ca)](_0x2a41e4),{width:_0x22fadc,height:_0x16ea03}=this[_0x4dffbb(0x284)]();return _0x37d474(this[_0x4dffbb(0x34a)],{'x':(this[_0x4dffbb(0x26b)]?-_0x4a281e['x']:_0x4a281e['x'])+_0x22fadc/0x2,'y':_0x4a281e['y']+_0x16ea03/0x2});}[_0x291e41(0x3fb)](_0x113554){const _0x11398c=_0x291e41;this['_props'][_0x11398c(0x459)]=_0x113554,this[_0x11398c(0x293)](!0x0);}['setFormulaPresentation'](_0x20d8b1,_0x3aa9fc=!0x0){const _0x21ed05=_0x291e41;this[_0x21ed05(0x2bb)][_0x21ed05(0x1b5)](_0x20d8b1,_0x3aa9fc),this[_0x21ed05(0x3ce)]['formulaPresentation']=_0x20d8b1,this[_0x21ed05(0x1fd)](),this[_0x21ed05(0x293)](!0x0);}[_0x291e41(0x1fd)](){const _0x1578b3=_0x291e41;let _0x4bb40c=this[_0x1578b3(0x3ce)]['shapeModel'],_0x5e33c8=_0x4bb40c['getShapeTextData'](),_0x4c26d7=_0xe7bcff(_0x5e33c8==null?void 0x0:_0x5e33c8['dataModel']),_0x2029dd=_0x4c26d7==null?void 0x0:_0x4c26d7['doc'],_0x44452c=this[_0x1578b3(0x2bb)]['getAutoFitPresentations']();if(!_0x2029dd||_0x44452c[_0x1578b3(0x3c3)]===0x0)return;_0x4bb40c['updateContext']({'width':this[_0x1578b3(0x45d)],'height':this['height']});let _0x4556e4=_0x3c23c5({'documentData':_0x44452c[_0x1578b3(0x3cd)](_0x3a30e8=>_0x13ffed(_0x2029dd,_0x3a30e8)),'height':this['height'],'shapeData':_0x4bb40c[_0x1578b3(0x2d9)](),'textRect':_0x4bb40c[_0x1578b3(0x3b1)]({'left':0x0,'top':0x0,'width':this[_0x1578b3(0x45d)],'height':this['height']}),'width':this[_0x1578b3(0x45d)]});if(_0x4556e4){var _0x54937a;this['resize'](_0x4556e4[_0x1578b3(0x45d)],_0x4556e4[_0x1578b3(0x257)]),(_0x54937a=this[_0x1578b3(0x32a)]())==null||(_0x54937a=_0x54937a[_0x1578b3(0x335)]())==null||_0x54937a[_0x1578b3(0x2c2)]();}}get[_0x291e41(0x351)](){const _0x22373f=_0x291e41;return this[_0x22373f(0x3ce)][_0x22373f(0x351)];}get[_0x291e41(0x21b)](){const _0x30af47=_0x291e41;return this[_0x30af47(0x3ce)][_0x30af47(0x21b)];}[_0x291e41(0x367)](_0x55ff40){const _0xc5d992=_0x291e41;if(this[_0xc5d992(0x3ce)][_0xc5d992(0x1c8)]==null||!this[_0xc5d992(0x3aa)])return;let {width:_0x3914ed,height:_0x6b4f7b}=this,{width:_0x176d9c=0x0,height:_0x55d67c=0x0}=_0x55ff40[_0xc5d992(0x22d)],{left:_0x5e804d=0x0,top:_0x568138=0x0,right:_0x17a3e9=0x0,bottom:_0x4b149=0x0}=this[_0xc5d992(0x3ce)][_0xc5d992(0x1c8)],_0xa967eb=_0x5e804d,_0x54d8c6=_0x568138,_0xe2b005=_0x17a3e9,_0x22b4d8=_0x4b149,_0x39559c=!0x1;if(_0x176d9c!==0x0&&_0x176d9c!==_0x3914ed){let _0x2bc09d=_0x5e804d/_0x176d9c,_0x468b6f=_0x17a3e9/_0x176d9c;_0xa967eb=_0x3914ed*_0x2bc09d,_0xe2b005=_0x3914ed*_0x468b6f,_0x39559c=!0x0;}if(_0x55d67c!==0x0&&_0x55d67c!==_0x6b4f7b){let _0x3e8240=_0x568138/_0x55d67c,_0x393971=_0x4b149/_0x55d67c;_0x54d8c6=_0x6b4f7b*_0x3e8240,_0x22b4d8=_0x6b4f7b*_0x393971,_0x39559c=!0x0;}_0x39559c&&this['setSrcRect']({'left':_0xa967eb,'top':_0x54d8c6,'right':_0xe2b005,'bottom':_0x22b4d8});}[_0x291e41(0x1b6)](_0x4528a6){const _0x51c456=_0x291e41;this[_0x51c456(0x3ce)][_0x51c456(0x1c8)]=_0x4528a6,this[_0x51c456(0x293)](!0x0);}[_0x291e41(0x3a1)](_0x4e5528){const _0x3b2212=_0x291e41;this['_props'][_0x3b2212(0x29b)]=_0x4e5528,this['makeDirty'](!0x0);}set[_0x291e41(0x21c)](_0x3e58ec){const _0x24151a=_0x291e41;this[_0x24151a(0x3a6)]=_0x3e58ec;}get['transform'](){const _0xd68588=_0x291e41;this['_transform']||this[_0xd68588(0x3b8)]();let _0x1dc3c4=this[_0xd68588(0x3a6)][_0xd68588(0x45c)]();return this[_0xd68588(0x338)](_0x1dc3c4);}get['shapeModel'](){const _0x354706=_0x291e41;return this[_0x354706(0x3ce)][_0x354706(0x286)];}get[_0x291e41(0x416)](){const _0x3b1d7c=_0x291e41;return this[_0x3b1d7c(0x3ce)][_0x3b1d7c(0x416)];}get[_0x291e41(0x2fd)](){return _0x142f92['SHAPE'];}[_0x291e41(0x39f)](_0x145b98,_0x3c5cfb,_0x1f5a1f,_0x306879){const _0x384aeb=_0x291e41;let _0x1a5ba4=this[_0x384aeb(0x3ce)][_0x384aeb(0x286)];if(!_0x1a5ba4||!_0x3c5cfb)return;let _0x5104ef=_0x1f5a1f??this[_0x384aeb(0x45d)],_0x56d6be=_0x306879??this[_0x384aeb(0x257)],_0x30005d={'shapeType':_0x1a5ba4[_0x384aeb(0x2ba)](),'width':_0x5104ef,'height':_0x56d6be},_0x2d5c65={'renderMode':_0x49a3ec[_0x384aeb(0x1b3)],'oKey':this[_0x384aeb(0x268)],'image':this['_props']['image'],'angle':this[_0x384aeb(0x2a0)]};_0x1a5ba4[_0x384aeb(0x31e)](_0x30005d),_0x145b98[_0x384aeb(0x27a)]();let _0x5af6a0={'top':0x0,'left':0x0,'width':_0x5104ef,'height':_0x56d6be},_0xd54810=_0x1a5ba4['getDrawingEffectBounds'](_0x5af6a0);_0xd54810?this['_renderWithCache'](_0x145b98,_0xd54810,_0x273594=>{const _0x389865=_0x384aeb;_0x1a5ba4[_0x389865(0x23c)](_0x273594,_0x5af6a0,_0x2d5c65);}):(this[_0x384aeb(0x2d3)](),_0x1a5ba4[_0x384aeb(0x23c)](_0x145b98,_0x5af6a0,_0x2d5c65)),_0x145b98[_0x384aeb(0x3f8)]();let _0x5e3c30=_0x1a5ba4['getShapeTextData'](),_0x1c8c01=_0x1a5ba4[_0x384aeb(0x3b1)](_0x5af6a0),_0xe44692=_0x1a5ba4['isLineShape']();if(_0x5e3c30&&_0x1c8c01&&!_0xe44692){_0x145b98[_0x384aeb(0x27a)](),this[_0x384aeb(0x2ec)]()[_0x384aeb(0x26b)]&&_0x145b98['scale'](-0x1,0x1);let _0xdd9691=_0x5104ef/0x2,_0x20489c=_0x56d6be/0x2;_0x145b98[_0x384aeb(0x1e6)](-_0xdd9691,-_0x20489c),_0x145b98['beginPath'](),this[_0x384aeb(0x27f)](_0x145b98,_0x5e3c30,_0x1c8c01),_0x145b98[_0x384aeb(0x3f8)]();}}[_0x291e41(0x44f)](_0xaca5da){}[_0x291e41(0x27f)](_0x2b2bf3,_0x32f503,_0x210f65){const _0x627d2=_0x291e41;var _0x1785e7;this['_hyperLinkRegions']=[],this['_props']['isEditing']||(!((_0x1785e7=_0x32f503[_0x627d2(0x3af)])!=null&&_0x1785e7[_0x627d2(0x193)])&&_0x627d2(0x3fd)in _0x32f503&&_0x32f503[_0x627d2(0x3fd)]===!0x1?this[_0x627d2(0x3c7)](_0x2b2bf3,_0x32f503,_0x210f65):this[_0x627d2(0x3ee)](_0x2b2bf3,_0x32f503,_0x210f65));}[_0x291e41(0x3c7)](_0x51cea2,_0x2cc8af,_0x5d097a){const _0x329111=_0x291e41;this['_drawRichText'](_0x51cea2,{..._0x2cc8af,'text':_0x2cc8af[_0x329111(0x241)]??'','dataModel':{'doc':_0x5650b1(_0x2cc8af,_0x329111(0x296)+this[_0x329111(0x268)])}},_0x5d097a);}[_0x291e41(0x3ee)](_0x22aacd,_0x586d29,_0x189c93){const _0xa71d8a=_0x291e41;_0x5ef902(_0x22aacd,this[_0xa71d8a(0x2bb)],(_0x57d4b5,_0x887891,_0x29a9d9)=>{const _0xfc961d=_0xa71d8a;this[_0xfc961d(0x2a3)](_0x57d4b5,_0x586d29,_0x189c93,_0x887891,_0x29a9d9===_0xfc961d(0x31a));});}[_0x291e41(0x2a3)](_0x5dc7c5,_0x9575a,_0xe0810d,_0x895bab,_0x4d1692){const _0xb21489=_0x291e41;let _0x31bc8f=this[_0xb21489(0x3ce)][_0xb21489(0x2b8)];if(!_0x9575a['dataModel']||!_0x31bc8f)return;let _0x185c3f=_0xe7bcff(_0x9575a[_0xb21489(0x3af)]);if(!_0x185c3f)return;let _0x2065dc=_0x185c3f[_0xb21489(0x193)];if(!_0x2065dc)return;let _0x56cf4e=_0x13ffed(_0x2065dc,_0x895bab),_0x3e7969=_0x185c3f['va']??_0x46a67d['TOP'],_0x37484e=_0x185c3f['ha']??_0xc256c8[_0xb21489(0x1e8)],_0x2a7c73=Pr(this['_props'][_0xb21489(0x286)]['getShapeData'](),_0x9575a,_0x56cf4e),_0x4b6c78=_0x9575a[_0xb21489(0x32e)],_0x4ff3b2=_0x9ecb98(_0x56cf4e,{'isHorizontal':_0x4b6c78!==!0x1,'textRect':_0xe0810d,'verticalAlign':_0x3e7969,'horizontalAlign':_0x37484e,'wrapStrategy':_0x2a7c73['wrapStrategy']}),_0x42c4fd=new _0x475565(_0x4ff3b2),_0xdb347a=new _0x114b7f(_0x42c4fd),_0x534708=_0x41a7bc['create'](_0xdb347a,_0x31bc8f);_0x534708[_0xb21489(0x3de)]();let _0x247000=_0x534708[_0xb21489(0x37d)]()['actualHeight'],_0x52c0cd=_0x151902({'contentHeight':_0x247000,'verticalAlign':_0x3e7969,'viewportHeight':_0xe0810d[_0xb21489(0x257)]});_0x42c4fd[_0xb21489(0x320)]({'pageSize':{'width':_0x4b6c78===!0x1?_0xe0810d['height']:_0xe0810d[_0xb21489(0x45d)],'height':_0x5c59a8(_0x56cf4e,_0x52c0cd[_0xb21489(0x23d)])}}),_0x42c4fd[_0xb21489(0x3bb)]({'t':_0x52c0cd['marginTop']}),_0x534708['calculate']();let _0x48fda4=new _0x231258(_0xb21489(0x364)+this[_0xb21489(0x268)],_0x534708,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb21489(0x293)](!0x0)});_0x48fda4[_0xb21489(0x25b)](_0xe0810d[_0xb21489(0x45d)],_0x52c0cd[_0xb21489(0x23d)]),_0x5dc7c5[_0xb21489(0x27a)](),_0x5dc7c5['translateWithPrecision'](_0xe0810d[_0xb21489(0x337)],_0xe0810d['top']),_0x2a7c73[_0xb21489(0x439)]&&(_0x5dc7c5[_0xb21489(0x25f)](),_0x5dc7c5[_0xb21489(0x357)](0x0,_0x52c0cd[_0xb21489(0x3c6)],_0xe0810d[_0xb21489(0x45d)],_0x52c0cd[_0xb21489(0x2c8)]),_0x5dc7c5['clip']()),_0x52c0cd[_0xb21489(0x452)]&&_0x5dc7c5[_0xb21489(0x2d5)](0x0,_0x52c0cd['contentVerticalOffset']),_0x48fda4[_0xb21489(0x20c)](_0x5dc7c5),_0x4d1692&&(this[_0xb21489(0x34a)]=_0x43e03f(_0x48fda4,{'left':_0xe0810d['left'],'top':_0xe0810d[_0xb21489(0x3cf)]+_0x52c0cd[_0xb21489(0x452)]},_0x2a7c73[_0xb21489(0x439)]?{'left':_0xe0810d[_0xb21489(0x337)],'right':_0xe0810d[_0xb21489(0x337)]+_0xe0810d[_0xb21489(0x45d)],'top':_0xe0810d[_0xb21489(0x3cf)]+_0x52c0cd[_0xb21489(0x3c6)],'bottom':_0xe0810d['top']+_0x52c0cd[_0xb21489(0x3c6)]+_0x52c0cd[_0xb21489(0x2c8)]}:void 0x0)),_0x5dc7c5['restore'](),_0x48fda4['dispose'](),_0x534708[_0xb21489(0x20d)](),_0xdb347a[_0xb21489(0x20d)](),_0x42c4fd[_0xb21489(0x20d)]();}[_0x291e41(0x23c)](_0x354e05,_0x5a62f5,_0x145911=!0x1){const _0x5f54c3=_0x291e41;if(!this[_0x5f54c3(0x42d)])return this[_0x5f54c3(0x293)](!0x1),this;let {width:_0x4bd5c9,height:_0xb438c9,left:_0x5f7fa2,top:_0x5c8f84}=this,_0x365a25=this[_0x5f54c3(0x284)]();if(_0x4bd5c9=_0x365a25[_0x5f54c3(0x45d)],_0xb438c9=_0x365a25[_0x5f54c3(0x257)],_0x5f7fa2=_0x365a25[_0x5f54c3(0x337)],_0x5c8f84=_0x365a25[_0x5f54c3(0x3cf)],this[_0x5f54c3(0x2f5)](_0x5a62f5)){let {top:_0x521593,left:_0x38fe4b,bottom:_0x41b682,right:_0x286de2}=_0x5a62f5[_0x5f54c3(0x406)];if(_0x4bd5c9+this[_0x5f54c3(0x444)]+_0x5f7fa2<_0x38fe4b||_0x286de2<_0x5f7fa2||_0xb438c9+this[_0x5f54c3(0x444)]+_0x5c8f84<_0x521593||_0x41b682<_0x5c8f84)return this;}let _0x229f85=_0x5f7fa2+_0x4bd5c9/0x2,_0x4f07e2=_0x5c8f84+_0xb438c9/0x2,_0x25c74f=this[_0x5f54c3(0x21c)][_0x5f54c3(0x405)]();if(this[_0x5f54c3(0x3ce)][_0x5f54c3(0x459)]){let _0x4c3512=this[_0x5f54c3(0x2ec)](),_0xcd50c3=new _0x36d9d2();_0xcd50c3[_0x5f54c3(0x26e)]({..._0x4c3512}),_0x25c74f=_0xcd50c3[_0x5f54c3(0x405)]();}return _0x354e05[_0x5f54c3(0x27a)](),this[_0x5f54c3(0x3ce)][_0x5f54c3(0x286)]['isRenderLinePointsMode']===!0x0||_0x354e05['transform'](_0x25c74f[0x0],_0x25c74f[0x1],_0x25c74f[0x2],_0x25c74f[0x3],_0x229f85,_0x4f07e2),this[_0x5f54c3(0x39f)](_0x354e05,_0x5a62f5,_0x4bd5c9,_0xb438c9),_0x354e05[_0x5f54c3(0x3f8)](),this[_0x5f54c3(0x293)](!0x1),this;}[_0x291e41(0x3ca)](_0x482d34){const _0x218359=_0x291e41;let {left:_0x29c54f,top:_0x40d377,width:_0x32fc5d,height:_0xa518cd}=this[_0x218359(0x284)](),_0x2f886f=this[_0x218359(0x21c)][_0x218359(0x405)](),_0x1b3819=_0x29c54f+_0x32fc5d/0x2,_0x1acf31=_0x40d377+_0xa518cd/0x2,_0x5b62fb=new _0x36d9d2([_0x2f886f[0x0],_0x2f886f[0x1],_0x2f886f[0x2],_0x2f886f[0x3],_0x1b3819,_0x1acf31]),_0x4526c5=this[_0x218359(0x298)]();return(this['isInGroup']&&(_0x4526c5==null?void 0x0:_0x4526c5[_0x218359(0x2fd)])===_0x142f92[_0x218359(0x3a0)]?_0x4526c5[_0x218359(0x43e)][_0x218359(0x371)](_0x5b62fb):_0x5b62fb)['invert']()[_0x218359(0x441)](_0x482d34);}[_0x291e41(0x261)](_0x14b630){const _0x58ce5a=_0x291e41;let {left:_0x225762,top:_0x4ca083,width:_0x4fc8b5,height:_0x4d9888}=this['getRealBound'](),_0x45368a=_0x225762+_0x4fc8b5/0x2,_0xe2761d=_0x4ca083+_0x4d9888/0x2,_0x5237d4=this[_0x58ce5a(0x21c)][_0x58ce5a(0x405)](),_0x275028=new _0x36d9d2([_0x5237d4[0x0],_0x5237d4[0x1],_0x5237d4[0x2],_0x5237d4[0x3],_0x45368a,_0xe2761d]),_0x11158d=this[_0x58ce5a(0x298)](),_0x49d927=(this[_0x58ce5a(0x356)]&&(_0x11158d==null?void 0x0:_0x11158d['classType'])===_0x142f92[_0x58ce5a(0x3a0)]?_0x11158d['ancestorTransform'][_0x58ce5a(0x371)](_0x275028):_0x275028)[_0x58ce5a(0x2ef)]()['applyPoint'](_0x14b630),_0x3b8876=_0x4fc8b5/0x2,_0x28edfa=_0x4d9888/0x2,_0x48c25f=this['_props']['shapeModel'];return _0x48c25f&&_0x48c25f[_0x58ce5a(0x2e6)]()?_0x48c25f[_0x58ce5a(0x3e0)](_0x49d927['x'],_0x49d927['y'],_0x4fc8b5,_0x4d9888):_0x49d927['x']>=-_0x3b8876-this[_0x58ce5a(0x444)]/0x2&&_0x49d927['x']<=_0x3b8876+this['strokeWidth']/0x2&&_0x49d927['y']>=-_0x28edfa-this[_0x58ce5a(0x444)]/0x2&&_0x49d927['y']<=_0x28edfa+this['strokeWidth']/0x2;}[_0x291e41(0x20d)](){const _0x54e137=_0x291e41;this[_0x54e137(0x2bb)][_0x54e137(0x20d)](),this[_0x54e137(0x3ce)][_0x54e137(0x286)]=null,super[_0x54e137(0x20d)]();}},Fr=class extends _0x156eef{constructor(_0x4af727,_0x8a9340){const _0x1f977e=_0x291e41;super(_0x4af727,_0x8a9340),q(this,_0x1f977e(0x1db),null),q(this,_0x1f977e(0x390),null),q(this,_0x1f977e(0x32f),null),q(this,'_subUnitId',null),_0x8a9340&&this['setShapeProps'](_0x8a9340);}['getDrawingSearch'](){const _0x89f6b5=_0x291e41;return{'unitId':this[_0x89f6b5(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x291e41(0x32c)](_0x241a41){const _0x543c9a=_0x291e41;_0x241a41[_0x543c9a(0x416)]!==void 0x0&&(this[_0x543c9a(0x1db)]=_0x241a41[_0x543c9a(0x416)]),_0x241a41[_0x543c9a(0x443)]!==void 0x0&&(this[_0x543c9a(0x390)]=_0x241a41['adjName']),_0x241a41['unitId']!==void 0x0&&(this[_0x543c9a(0x32f)]=_0x241a41[_0x543c9a(0x351)]),_0x241a41[_0x543c9a(0x21b)]!==void 0x0&&(this['_subUnitId']=_0x241a41[_0x543c9a(0x21b)]),this[_0x543c9a(0x220)]({'width':_0x241a41[_0x543c9a(0x45d)],'height':_0x241a41[_0x543c9a(0x257)]});}['_draw'](_0x1afcf9){const _0x3cb15f=_0x291e41;_0x49536a[_0x3cb15f(0x38a)](_0x1afcf9,{'radius':_0x179988[_0x3cb15f(0x3dd)],'fill':_0x179988['adjHandleFill'],'stroke':_0x179988[_0x3cb15f(0x1bb)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0xfa8d1d,_0x350e8b){return function(_0x51b760,_0x25b76f){_0x350e8b(_0x51b760,_0x25b76f,_0xfa8d1d);};}function X(_0x32914f,_0x2776a6,_0x2974c6,_0x1dcdc5){const _0x171410=_0x291e41;var _0x3dc134=arguments['length'],_0x1be6a3=_0x3dc134<0x3?_0x2776a6:_0x1dcdc5===null?_0x1dcdc5=Object['getOwnPropertyDescriptor'](_0x2776a6,_0x2974c6):_0x1dcdc5,_0x211b14;if(typeof Reflect==_0x171410(0x3d1)&&typeof Reflect['decorate']==_0x171410(0x196))_0x1be6a3=Reflect['decorate'](_0x32914f,_0x2776a6,_0x2974c6,_0x1dcdc5);else{for(var _0x813dfe=_0x32914f[_0x171410(0x3c3)]-0x1;_0x813dfe>=0x0;_0x813dfe--)(_0x211b14=_0x32914f[_0x813dfe])&&(_0x1be6a3=(_0x3dc134<0x3?_0x211b14(_0x1be6a3):_0x3dc134>0x3?_0x211b14(_0x2776a6,_0x2974c6,_0x1be6a3):_0x211b14(_0x2776a6,_0x2974c6))||_0x1be6a3);}return _0x3dc134>0x3&&_0x1be6a3&&Object[_0x171410(0x44d)](_0x2776a6,_0x2974c6,_0x1be6a3),_0x1be6a3;}let Z=class extends _0x557a26{constructor(_0x2e511a,_0x3a97f6,_0x24023e,_0x1afe95,_0x342df1,_0x1725cf){const _0x3004da=_0x291e41;super(),this[_0x3004da(0x346)]=_0x2e511a,this[_0x3004da(0x408)]=_0x3a97f6,this[_0x3004da(0x202)]=_0x24023e,this[_0x3004da(0x3a4)]=_0x1afe95,this[_0x3004da(0x263)]=_0x342df1,this[_0x3004da(0x422)]=_0x1725cf,q(this,_0x3004da(0x244),new Map()),this[_0x3004da(0x432)](this[_0x3004da(0x422)][_0x3004da(0x42b)][_0x3004da(0x456)](_0x3e6c66=>{const _0x4e97a7=_0x3004da;var _0xc65ac3;(_0xc65ac3=this[_0x4e97a7(0x244)][_0x4e97a7(0x42c)](this[_0x4e97a7(0x3d3)](_0x3e6c66[_0x4e97a7(0x351)],_0x3e6c66[_0x4e97a7(0x21b)],_0x3e6c66['shapeId'])))==null||_0xc65ac3[_0x4e97a7(0x44b)](_0x5aef32=>_0x5aef32['setFormulaPresentation'](_0x3e6c66['presentation'],_0x3e6c66['animationEnabled']));})),this[_0x3004da(0x432)](this['_drawingManagerService'][_0x3004da(0x31c)][_0x3004da(0x456)](_0x3c78dc=>{const _0x4def0b=_0x3004da;_0x3c78dc[_0x4def0b(0x44b)](_0x496ee9=>{const _0x3f86ae=_0x4def0b;this['_formulaShapes'][_0x3f86ae(0x24b)](this[_0x3f86ae(0x3d3)](_0x496ee9['unitId'],_0x496ee9[_0x3f86ae(0x21b)],_0x496ee9[_0x3f86ae(0x1dd)]));});}));}[_0x291e41(0x301)](_0x22acb5,_0x3b76a5,_0x2bd20b){const _0x46ecb6=_0x291e41;let {transform:_0x20bd5b,drawingType:_0x491036,srcRect:_0xb11520,prstGeom:_0xa77372,groupId:_0x152b0f,unitId:_0x1d6d57,subUnitId:_0x4d1acd,drawingId:_0x438f96,isMultiTransform:_0x1461e5,transforms:_0x2e0e68,hidden:_0x435662,selectable:_0x58aa6c}=_0x22acb5;if(_0x491036!==_0x40fd85[_0x46ecb6(0x43a)]||!this['_drawingManagerService'][_0x46ecb6(0x3a2)]()||_0x20bd5b==null)return;let _0x1bc3b0=this['_drawingManagerService'][_0x46ecb6(0x28e)](),_0x57c0fc=_0x1461e5&&_0x2e0e68?_0x2e0e68:[_0x20bd5b],_0x4290a8=[];for(let _0x2cf6d9 of _0x57c0fc){let {left:_0x6a5934,top:_0x50f17f,width:_0x26051d,height:_0x1ffaf0,angle:_0x273603,flipX:_0x52e0ed,flipY:_0x55bf1b,skewX:_0x4c37ee,skewY:_0x6e1920}=_0x2cf6d9,_0xfae3c=_0x57c0fc[_0x46ecb6(0x2c0)](_0x2cf6d9),_0x52f926=_0x38d621({'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'drawingId':_0x438f96},_0x1461e5?_0xfae3c:void 0x0),_0x4ac050=_0x3b76a5[_0x46ecb6(0x292)](_0x52f926);if(_0x4ac050!=null){let _0x2f4af2={'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'shapeId':_0x438f96};_0x4ac050 instanceof J&&this[_0x46ecb6(0x38f)](_0x4ac050,_0x2f4af2),_0x4ac050['transformByState']({'left':_0x6a5934,'top':_0x50f17f,'width':_0x26051d,'height':_0x1ffaf0,'angle':_0x273603,'flipX':_0x52e0ed,'flipY':_0x55bf1b,'skewX':_0x4c37ee,'skewY':_0x6e1920});continue;}let _0x30aecb=this['_drawingManagerService']['getDrawingOrder'](_0x1d6d57,_0x4d1acd),_0x27ee62=_0x30aecb[_0x46ecb6(0x2c0)](_0x438f96);if(_0x3b76a5['getObjectIncludeInGroup'](_0x52f926)||!this[_0x46ecb6(0x346)][_0x46ecb6(0x3a2)]())continue;let _0x52ce18=this[_0x46ecb6(0x408)]['getShapeModel'](_0x1d6d57,_0x4d1acd,_0x438f96);if(!_0x52ce18)continue;let _0x172e4a=_0x5184c7(_0x52ce18[_0x46ecb6(0x2ba)]())?{..._0x806650,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x806650,_0x2404ad=_0x52ce18[_0x46ecb6(0x2d9)]()['formulaBinding'],_0x4566f8={'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'shapeId':_0x438f96};_0x2404ad&&this['_shapeFormulaService'][_0x46ecb6(0x3d0)](_0x4566f8,_0x2404ad);let _0x7a3fb5=new J(_0x52f926,{..._0x2cf6d9,'zIndex':_0x27ee62===-0x1?_0x30aecb['length']-0x1:_0x27ee62,'shapeModel':_0x52ce18,'localeService':this[_0x46ecb6(0x202)],'shapeId':_0x438f96,'unitId':_0x1d6d57,'subUnitId':_0x4d1acd,'visible':_0x435662!==!0x0,'evented':_0x58aa6c!==!0x1,'formulaPresentation':_0x2404ad?this[_0x46ecb6(0x422)][_0x46ecb6(0x2df)](_0x4566f8):void 0x0,'animateFormulaPresentation':(_0x2404ad==null?void 0x0:_0x2404ad[_0x46ecb6(0x400)])!==!0x1,'transformerConfig':_0x172e4a});if(_0x2404ad){let _0x4afa7e=this[_0x46ecb6(0x3d3)](_0x1d6d57,_0x4d1acd,_0x438f96),_0xc0461a=this[_0x46ecb6(0x244)][_0x46ecb6(0x42c)](_0x4afa7e)??new Set();_0xc0461a['add'](_0x7a3fb5),this[_0x46ecb6(0x244)][_0x46ecb6(0x28a)](_0x4afa7e,_0xc0461a);}_0x3b76a5[_0x46ecb6(0x35b)](_0x7a3fb5,_0x10b13b),_0x1bc3b0&&_0x3b76a5[_0x46ecb6(0x2ce)](_0x7a3fb5),_0x152b0f&&_0x56c630({'drawingId':_0x152b0f,'unitId':_0x1d6d57,'subUnitId':_0x4d1acd},_0x7a3fb5,_0x3b76a5,this[_0x46ecb6(0x346)]),_0xa77372!=null&&_0x7a3fb5[_0x46ecb6(0x217)](_0xa77372),_0xb11520!=null&&_0x7a3fb5[_0x46ecb6(0x1b6)](_0xb11520);let _0x406173=this[_0x46ecb6(0x273)](_0x7a3fb5,_0x52ce18[_0x46ecb6(0x2d9)]());if(_0x406173){var _0x132ce6;_0x2bd20b==null||(_0x132ce6=_0x2bd20b[_0x46ecb6(0x43d)])==null||_0x132ce6[_0x46ecb6(0x322)](_0x406173);}_0x4290a8['push'](_0x7a3fb5);}return _0x4290a8;}[_0x291e41(0x3d3)](_0x48c9d1,_0x32806b,_0x5eeb0c){return _0x48c9d1+'\x00'+_0x32806b+'\x00'+_0x5eeb0c;}[_0x291e41(0x38f)](_0x582ae8,_0x33cb8e){const _0x522554=_0x291e41;let _0xb14b69=this[_0x522554(0x408)][_0x522554(0x32d)](_0x33cb8e[_0x522554(0x351)],_0x33cb8e['subUnitId'],_0x33cb8e[_0x522554(0x416)]),_0x4ecbbb=_0xb14b69==null?void 0x0:_0xb14b69[_0x522554(0x2d9)]()[_0x522554(0x295)],_0x1d87dd=this[_0x522554(0x3d3)](_0x33cb8e['unitId'],_0x33cb8e[_0x522554(0x21b)],_0x33cb8e[_0x522554(0x416)]);if(_0x4ecbbb){this[_0x522554(0x422)][_0x522554(0x3d0)](_0x33cb8e,_0x4ecbbb);let _0x2c22a9=this[_0x522554(0x244)][_0x522554(0x42c)](_0x1d87dd)??new Set();_0x2c22a9[_0x522554(0x322)](_0x582ae8),this[_0x522554(0x244)][_0x522554(0x28a)](_0x1d87dd,_0x2c22a9);}else{var _0x197a7d;this[_0x522554(0x422)][_0x522554(0x232)](_0x33cb8e),(_0x197a7d=this[_0x522554(0x244)][_0x522554(0x42c)](_0x1d87dd))==null||_0x197a7d['delete'](_0x582ae8);}_0x582ae8[_0x522554(0x3f6)](_0x4ecbbb?this[_0x522554(0x422)]['getPresentation'](_0x33cb8e):void 0x0,(_0x4ecbbb==null?void 0x0:_0x4ecbbb[_0x522554(0x400)])!==!0x1);}['refreshShapeFillImage'](_0x96eb8c){const _0x1affe5=_0x291e41;let _0x5c7f32=_0x96eb8c[_0x1affe5(0x286)][_0x1affe5(0x2d9)](),_0x24b245=_0x5c7f32[_0x1affe5(0x3bf)];!_0x24b245||_0x24b245[_0x1affe5(0x2b7)]!==_0x2efc4e[_0x1affe5(0x22b)]||!_0x24b245[_0x1affe5(0x19f)]?_0x96eb8c['setFillImage'](void 0x0):this[_0x1affe5(0x273)](_0x96eb8c,_0x5c7f32);}[_0x291e41(0x273)](_0x4caa0f,_0x3cf004){const _0x43dd7a=_0x291e41;let _0x4ddb89=_0x3cf004[_0x43dd7a(0x3bf)];if(!_0x4ddb89||_0x4ddb89[_0x43dd7a(0x2b7)]!==_0x2efc4e[_0x43dd7a(0x22b)]||!_0x4ddb89[_0x43dd7a(0x19f)])return;let _0x27ccab=_0x4ddb89[_0x43dd7a(0x19f)],_0x1e7ef9=_0x4ddb89[_0x43dd7a(0x1d4)]??_0x54f00f['URL'],_0x246dc8=this[_0x43dd7a(0x3a4)][_0x43dd7a(0x39d)](_0x27ccab,_0x1e7ef9);if(_0x246dc8)_0x4caa0f['setFillImage'](_0x246dc8);else return this[_0x43dd7a(0x2bf)](_0x4caa0f,_0x27ccab,_0x1e7ef9);}async[_0x291e41(0x2bf)](_0xd59e7c,_0x1cbc77,_0x371b43){const _0xfa2bf7=_0x291e41;let _0x138a36;try{if(_0x371b43===_0x54f00f[_0xfa2bf7(0x21f)])_0x138a36=await this['_imageIoService'][_0xfa2bf7(0x42f)](_0x1cbc77);else{if(_0x371b43===_0x54f00f['URL'])try{_0x138a36=await this[_0xfa2bf7(0x263)][_0xfa2bf7(0x42f)](_0x1cbc77);}catch{_0x138a36=_0x1cbc77;}else _0x138a36=_0x1cbc77;}}catch(_0x2b7218){console['error'](_0xfa2bf7(0x2a7),_0x2b7218);return;}await new Promise(_0x110c73=>{const _0x34715f=_0xfa2bf7;let _0x35d4c3=new window[(_0x34715f(0x33e))]();_0x35d4c3['onload']=()=>{const _0x58383b=_0x34715f;this[_0x58383b(0x3a4)][_0x58383b(0x1fe)](_0x1cbc77,_0x371b43,_0x35d4c3),_0xd59e7c[_0x58383b(0x3a1)](_0x35d4c3),_0x110c73();},_0x35d4c3[_0x34715f(0x291)]=()=>{const _0x5aaa79=_0x34715f;console[_0x5aaa79(0x419)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1cbc77),_0x110c73();},_0x35d4c3[_0x34715f(0x438)]=_0x138a36;});}};Z=X([Y(0x0,_0x28cffc),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x5b79b4(_0x13738a)),Y(0x3,_0x213f29),Y(0x4,_0x5f21c5),Y(0x5,_0x5b79b4(_0x42a3cf))],Z);let Ir=class extends _0x557a26{constructor(_0x513ea0,_0x389010,_0x182c17,_0x49209f,_0xef8edf,_0x47015e){const _0x1bfc07=_0x291e41;super(),this[_0x1bfc07(0x346)]=_0x513ea0,this[_0x1bfc07(0x408)]=_0x389010,this[_0x1bfc07(0x449)]=_0x182c17,this[_0x1bfc07(0x23b)]=_0x49209f,this[_0x1bfc07(0x394)]=_0xef8edf,this[_0x1bfc07(0x199)]=_0x47015e,q(this,_0x1bfc07(0x41e),null),q(this,'_unitId',null),q(this,_0x1bfc07(0x1df),null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x1bfc07(0x1a5),[]),q(this,'_baseShapeLeft',0x0),q(this,_0x1bfc07(0x37c),0x0),q(this,_0x1bfc07(0x2ad),0x0),q(this,_0x1bfc07(0x3a9),0x0),q(this,_0x1bfc07(0x25c),!0x1),q(this,_0x1bfc07(0x23e),void 0x0),q(this,_0x1bfc07(0x22f),void 0x0),q(this,_0x1bfc07(0x370),void 0x0),q(this,_0x1bfc07(0x3ba),void 0x0),q(this,_0x1bfc07(0x3d7),!0x1),this[_0x1bfc07(0x3f4)](),this[_0x1bfc07(0x1d0)]();}['_getShapeAdjustPointListById'](_0x1c68a9,_0x32c118,_0x504e46){const _0x1c00ff=_0x291e41;let _0x1ff114=this[_0x1c00ff(0x408)]['getShapeModel'](_0x1c68a9,_0x32c118,_0x504e46);if(_0x1ff114)return _0x1ff114[_0x1c00ff(0x44f)]();}[_0x291e41(0x228)](){const _0x45b621=_0x291e41;this[_0x45b621(0x236)]();}[_0x291e41(0x2b0)](){const _0x570cd7=_0x291e41;this[_0x570cd7(0x201)](!0x0);}[_0x291e41(0x195)](_0x184435){const _0x1de7f3=_0x291e41;this[_0x1de7f3(0x3d7)]=_0x184435;}[_0x291e41(0x2b5)](_0x21c8b3,_0x217ee5,_0x5234a2,_0x4b821b){const _0x19d613=_0x291e41;let _0x2b2465=this[_0x19d613(0x408)]['getShapeModel'](_0x21c8b3,_0x217ee5,_0x5234a2);if(_0x2b2465)return _0x2b2465[_0x19d613(0x437)](_0x4b821b);}[_0x291e41(0x1c2)](_0x55f395=!0x1){const _0x40e75d=_0x291e41;if(this[_0x40e75d(0x32f)]===null||this[_0x40e75d(0x1df)]===null||this[_0x40e75d(0x41e)]===null)return;let _0x50335a=this[_0x40e75d(0x449)][_0x40e75d(0x3a7)](this['_unitId']);if(!_0x50335a||!_0x50335a[_0x40e75d(0x401)](_0x5635f6)[_0x40e75d(0x1e9)]())return;let {scene:_0x3c6875}=_0x50335a,_0x197153={'unitId':this[_0x40e75d(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x40e75d(0x41e)]},_0x577f9d=this[_0x40e75d(0x346)]['getDrawingByParam'](_0x197153),{transform:_0xc1081}=_0x577f9d;if(!_0xc1081||_0x577f9d[_0x40e75d(0x209)]!==_0x40fd85[_0x40e75d(0x43a)])return;let {left:_0x5b0818,top:_0x328d46,width:_0x2ee7d2,height:_0x34ce61,flipX:_0x1ecd69,flipY:_0x336f39,angle:_0x1ac53d=0x0}=_0xc1081;if(_0x5b0818===void 0x0||_0x328d46===void 0x0)return;if(_0x55f395){let _0xe82181=this[_0x40e75d(0x408)][_0x40e75d(0x32d)](this['_unitId'],this[_0x40e75d(0x1df)],this[_0x40e75d(0x41e)]);_0xe82181==null||_0xe82181[_0x40e75d(0x31e)]({'width':_0x2ee7d2??0x0,'height':_0x34ce61??0x0}),this[_0x40e75d(0x23a)]=_0xe82181==null?void 0x0:_0xe82181[_0x40e75d(0x44f)]();}let _0x157b2b=this[_0x40e75d(0x23a)];for(let _0x5a19d9=0x0;_0x5a19d9<_0x157b2b[_0x40e75d(0x3c3)];_0x5a19d9++){let _0x186b33=_0x157b2b[_0x5a19d9],_0x4a982e=_0x186b33['x'],_0x3330df=_0x186b33['y'];if(_0x1ecd69&&(_0x4a982e=(_0x2ee7d2||0x0)-_0x4a982e),_0x336f39&&(_0x3330df=(_0x34ce61||0x0)-_0x3330df),_0x1ac53d!==0x0){let _0x3b30f5=(_0x2ee7d2||0x0)/0x2,_0x2e1907=(_0x34ce61||0x0)/0x2,_0x54dfb1=_0x1ac53d*Math['PI']/0xb4,_0x593378=Math['cos'](_0x54dfb1),_0x7292c=Math[_0x40e75d(0x3ae)](_0x54dfb1),_0x4e6cde=_0x4a982e-_0x3b30f5,_0x27569d=_0x3330df-_0x2e1907;_0x4a982e=_0x3b30f5+(_0x4e6cde*_0x593378-_0x27569d*_0x7292c),_0x3330df=_0x2e1907+(_0x4e6cde*_0x7292c+_0x27569d*_0x593378);}let _0x4d0aad={'x':_0x4a982e,'y':_0x3330df,'adjName':_0x186b33[_0x40e75d(0x443)]};this[_0x40e75d(0x255)](_0x3c6875,_0x4d0aad,_0x4d0aad['adjName'],_0x5b0818,_0x328d46,this[_0x40e75d(0x32f)],this[_0x40e75d(0x1df)]);}}['_updateShapeAdjustControls'](_0x11baf7=!0x1){const _0x55aead=_0x291e41;_0x11baf7&&(this[_0x55aead(0x236)](),this[_0x55aead(0x1c2)](_0x11baf7));}[_0x291e41(0x255)](_0x17d14b,_0x3dc728,_0xe9bf7c,_0x2e8139,_0x28c726,_0x20f293,_0x10f653){const _0x15bc23=_0x291e41;if(!this[_0x15bc23(0x41e)])return;let _0x30981a=_0x17d14b[_0x15bc23(0x292)](_0x15bc23(0x2f3)+this['_activeShapeId']+'-'+_0xe9bf7c);if(_0x30981a){_0x30981a['transformByState']({'left':_0x3dc728['x']+_0x2e8139-_0x179988[_0x15bc23(0x3dd)],'top':_0x3dc728['y']+_0x28c726-_0x179988[_0x15bc23(0x3dd)]});return;}let _0x50b5d5={'left':_0x3dc728['x']+_0x2e8139-_0x179988[_0x15bc23(0x3dd)],'top':_0x3dc728['y']+_0x28c726-_0x179988[_0x15bc23(0x3dd)],'adjName':_0xe9bf7c,'shapeId':this[_0x15bc23(0x41e)],'unitId':_0x20f293,'subUnitId':_0x10f653,'width':_0x179988[_0x15bc23(0x3dd)]+0x8,'height':_0x179988[_0x15bc23(0x3dd)]+0x8,'zIndex':_0x10b13b+0x1,'evented':!0x0},_0xa42e42=new Fr(_0x15bc23(0x2f3)+this[_0x15bc23(0x41e)]+'-'+_0xe9bf7c,_0x50b5d5);this[_0x15bc23(0x1a5)][_0x15bc23(0x1b9)](_0xa42e42),this['_attachAdjustEvent'](_0xa42e42,_0x17d14b,_0xe9bf7c),_0x17d14b['addObject'](_0xa42e42,_0x10b13b+0x1);}[_0x291e41(0x236)](){const _0x4080e8=_0x291e41;this[_0x4080e8(0x1a5)][_0x4080e8(0x3c3)]!==0x0&&(this[_0x4080e8(0x1a5)][_0x4080e8(0x44b)](_0x27d5b6=>{const _0x4f4bec=_0x4080e8;_0x27d5b6[_0x4f4bec(0x20d)]();}),this[_0x4080e8(0x1a5)]=[]);}[_0x291e41(0x428)](){this['_createShapeAdjustControls']();}[_0x291e41(0x436)](_0xe56715,_0x2dd4fb){const _0x6af2ab=_0x291e41;var _0x334ae4;let _0x4f4335={'x':0x0,'y':0x0};if(!_0xe56715||!_0x2dd4fb)return _0x4f4335;let _0x163502=this[_0x6af2ab(0x449)]['getRenderUnitById'](_0xe56715);if(!_0x163502||!_0x163502[_0x6af2ab(0x401)](_0x5635f6)[_0x6af2ab(0x2d8)](_0x2dd4fb))return _0x4f4335;let _0x1ac7bd=_0x163502[_0x6af2ab(0x401)](_0xbd2a68),_0x1f7635=_0x1ac7bd==null?void 0x0:_0x1ac7bd['getCurrentScrollState']();if(!_0x1f7635)return _0x4f4335;let _0x1861c2=(_0x334ae4=this[_0x6af2ab(0x394)]['getUnit'](_0xe56715))==null?void 0x0:_0x334ae4[_0x6af2ab(0x2d1)](_0x2dd4fb);if(!_0x1861c2)return _0x4f4335;let _0x444264=_0x53677b(_0x1f7635['sheetViewStartRow'],_0x1f7635[_0x6af2ab(0x457)],_0x163502[_0x6af2ab(0x1f2)],_0x1861c2);return _0x444264?{'x':_0x444264[_0x6af2ab(0x1cf)],'y':_0x444264[_0x6af2ab(0x3ea)]}:_0x4f4335;}[_0x291e41(0x245)](_0x40f5b3,_0x25819d){const _0xf20a5a=_0x291e41;var _0x51d871;let _0x44e9c1=(_0x51d871=this[_0xf20a5a(0x394)][_0xf20a5a(0x208)](_0x40f5b3))==null?void 0x0:_0x51d871['getSheetBySheetId'](_0x25819d);return(_0x44e9c1==null?void 0x0:_0x44e9c1[_0xf20a5a(0x3eb)]())??0x1;}[_0x291e41(0x455)](_0x187621,_0x464087,_0x450d24){const _0x336e78=_0x291e41;this['disposeWithMe'](_0x53ca46(_0x187621[_0x336e78(0x1e7)][_0x336e78(0x1a9)]((_0x1f6020,_0x1c05ed)=>{const _0x254a5a=_0x336e78;var _0x1dd142,_0x1293f7,_0x27994f,_0x51286f;let _0x2e1d32=_0x187621[_0x254a5a(0x2b4)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x2e1d32[_0x254a5a(0x351)],_0x2e1d32['subUnitId'],_0x2e1d32['drawingId'],_0x450d24),this['_activeShapeModel']=this[_0x254a5a(0x408)][_0x254a5a(0x32d)](_0x2e1d32['unitId'],_0x2e1d32[_0x254a5a(0x21b)],_0x2e1d32[_0x254a5a(0x1dd)]);let _0x28b7a2=this[_0x254a5a(0x346)][_0x254a5a(0x312)]({'unitId':this['_unitId'],'subUnitId':this[_0x254a5a(0x1df)],'drawingId':this[_0x254a5a(0x41e)]}),{transform:_0x40803e}=_0x28b7a2;if(_0x40803e){let {left:_0x15f9ab,top:_0x24e8c0,width:_0xb68a3e,height:_0x3b35dd}=_0x40803e;this['_baseShapeLeft']=_0x15f9ab||0x0,this[_0x254a5a(0x37c)]=_0x24e8c0||0x0,this[_0x254a5a(0x2ad)]=_0xb68a3e||0x0,this['_baseShapeHeight']=_0x3b35dd||0x0;}let _0x22be26=!!((_0x1dd142=_0x28b7a2[_0x254a5a(0x21c)])!=null&&_0x1dd142[_0x254a5a(0x26b)]),_0x440d80=!!((_0x1293f7=_0x28b7a2[_0x254a5a(0x21c)])!=null&&_0x1293f7[_0x254a5a(0x1d2)]),_0x5d8156=((_0x27994f=_0x28b7a2[_0x254a5a(0x21c)])==null?void 0x0:_0x27994f[_0x254a5a(0x2a0)])||0x0;this[_0x254a5a(0x25c)]=!0x0,_0x464087['disableObjectsEvent']();let _0x289a93={...((_0x51286f=this['_activeAdjustInfo'])==null?void 0x0:_0x51286f[_0x254a5a(0x2fb)])??{}};this['_adjHandlerPointerMove']=_0x464087['onPointerMove$']['subscribeEvent']((_0x1e6b2d,_0x3a8fc5)=>{const _0x129e52=_0x254a5a;if(!this[_0x129e52(0x25c)])return;let {offsetX:_0x2f9432,offsetY:_0x2d11c0}=_0x1e6b2d,_0x2da68f=this[_0x129e52(0x23e)];if(this[_0x129e52(0x22f)]&&_0x2da68f){_0x464087[_0x129e52(0x424)](),_0x464087['setCursor'](_0x15231c[_0x129e52(0x198)]);let _0x29922c={'left':0x0,'top':0x0,'width':this[_0x129e52(0x2ad)],'height':this['_baseShapeHeight']},_0x416759=this[_0x129e52(0x436)](this['_unitId'],this[_0x129e52(0x1df)]),_0x1cae4b=this[_0x129e52(0x245)](this[_0x129e52(0x32f)],this[_0x129e52(0x1df)]),_0x51f5df=_0x2f9432/_0x1cae4b+_0x416759['x']-this[_0x129e52(0x1ce)],_0x7bc51=_0x2d11c0/_0x1cae4b+_0x416759['y']-this['_baseShapeTop'];if(_0x5d8156!==0x0){let _0x309ad2=this[_0x129e52(0x2ad)]/0x2,_0x21fee5=this[_0x129e52(0x3a9)]/0x2,_0x5853c0=_0x5d8156*Math['PI']/0xb4,_0x255b18=Math[_0x129e52(0x375)](_0x5853c0),_0x23c9bd=Math[_0x129e52(0x3ae)](_0x5853c0),_0x4b65e0=_0x51f5df-_0x309ad2,_0xb668f=_0x7bc51-_0x21fee5;_0x51f5df=_0x309ad2+(_0x4b65e0*_0x255b18+_0xb668f*_0x23c9bd),_0x7bc51=_0x21fee5+(-_0x4b65e0*_0x23c9bd+_0xb668f*_0x255b18);}_0x22be26&&(_0x51f5df=this[_0x129e52(0x2ad)]-_0x51f5df),_0x440d80&&(_0x7bc51=this['_baseShapeHeight']-_0x7bc51);let _0x1e1cda={'x':_0x51f5df,'y':_0x7bc51},_0x534d66=this['_activeShapeModel'][_0x129e52(0x399)](_0x29922c,_0x1e1cda,_0x2da68f,_0x22be26,_0x440d80);if(Object[_0x129e52(0x3f1)](_0x534d66)[_0x129e52(0x3c3)]===0x0)return;for(let [_0x4123b5,_0x523b8e]of Object[_0x129e52(0x384)](_0x534d66))this[_0x129e52(0x22f)][_0x129e52(0x3d9)](_0x4123b5,_0x523b8e);this[_0x129e52(0x22f)][_0x129e52(0x31e)]({'width':this['_baseShapeWidth'],'height':this[_0x129e52(0x3a9)]});let _0x2eec32=this[_0x129e52(0x346)][_0x129e52(0x312)]({'unitId':_0x2e1d32[_0x129e52(0x351)],'subUnitId':_0x2e1d32[_0x129e52(0x21b)],'drawingId':_0x2e1d32[_0x129e52(0x1dd)]});_0x2eec32&&(this[_0x129e52(0x23b)]['renderDrawingShape'](_0x2eec32,_0x464087),this[_0x129e52(0x23a)]=this['_getShapeAdjustPointListById'](_0x2e1d32[_0x129e52(0x351)],_0x2e1d32[_0x129e52(0x21b)],_0x2e1d32[_0x129e52(0x1dd)]),this['_updateAdjustControlPositions']());}_0x3a8fc5[_0x129e52(0x2a5)]();}),this[_0x254a5a(0x3ba)]=_0x464087['onPointerUp$'][_0x254a5a(0x1a9)]((_0x2a6937,_0x3a877f)=>{const _0x33712e=_0x254a5a;this['_adjHandlerPointerMove'][_0x33712e(0x34c)](),this[_0x33712e(0x3ba)][_0x33712e(0x34c)](),_0x464087[_0x33712e(0x276)]();let _0x37b242=this['_activeAdjustInfo'];if(_0x37b242){let _0x2853cb=_0x2e1d32[_0x33712e(0x351)],_0x39c6f2=_0x2e1d32['subUnitId'],_0x34cb39=_0x2e1d32[_0x33712e(0x1dd)],_0x205622={};for(let _0x4a1917 of Object['keys'](_0x37b242[_0x33712e(0x2fb)])){var _0x4afdd2;let _0x361f22=(_0x4afdd2=this[_0x33712e(0x22f)])==null?void 0x0:_0x4afdd2[_0x33712e(0x1c9)](_0x4a1917);_0x361f22!==void 0x0&&(_0x205622[_0x4a1917]=_0x361f22);}Object[_0x33712e(0x3f1)](_0x205622)[_0x33712e(0x3c3)]>0x0&&kr(this[_0x33712e(0x199)],_0x2853cb,_0x39c6f2,_0x34cb39,{'oldShapeData':{'adjustValues':_0x289a93}},{'adjustValues':_0x205622});}this[_0x33712e(0x23e)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x33712e(0x25c)]=!0x1,_0x3a877f['stopPropagation'](),_0x464087[_0x33712e(0x1ef)]();}),_0x1c05ed[_0x254a5a(0x2a5)]();})));}[_0x291e41(0x1d0)](){const _0x33af73=_0x291e41;let _0xdfbdc2=this['_univerInstanceService'][_0x33af73(0x262)](_0x3c82b9[_0x33af73(0x35c)]);this['disposeWithMe'](_0xdfbdc2['pipe'](_0x17931b(_0xf08573=>_0xf08573?_0xf08573[_0x33af73(0x3bc)][_0x33af73(0x24c)](_0x17931b(_0x39acb0=>{const _0x2bdb9f=_0x33af73;if(!_0x39acb0)return _0x257bb9;let _0x53a4e8=_0xf08573[_0x2bdb9f(0x440)](),_0x10bb0b=this[_0x2bdb9f(0x449)][_0x2bdb9f(0x3a7)](_0x53a4e8),_0xa59417=_0x10bb0b==null?void 0x0:_0x10bb0b[_0x2bdb9f(0x1f2)];return _0xa59417?_0x413c25(_0xa59417):_0x257bb9;})):_0x257bb9))['subscribe'](_0x310f54=>{const _0x42b08c=_0x33af73;let _0x372e33=_0x310f54[_0x42b08c(0x39e)]();this['disposeWithMe'](_0x310f54[_0x42b08c(0x349)][_0x42b08c(0x1a9)](()=>{const _0xeb69cc=_0x42b08c;this[_0xeb69cc(0x3d7)];})),this[_0x42b08c(0x432)](_0x372e33['changeStart$'][_0x42b08c(0x456)](_0x2606d8=>{const _0x574ebd=_0x42b08c;let {objects:_0x349cb6}=_0x2606d8;this[_0x574ebd(0x1c2)](),_0x349cb6!==null&&_0x349cb6[_0x574ebd(0x215)]===0x1&&_0x349cb6['values']()['next']()[_0x574ebd(0x3ec)]instanceof J&&this[_0x574ebd(0x195)](!0x0);})),this[_0x42b08c(0x432)](_0x372e33[_0x42b08c(0x2f2)][_0x42b08c(0x456)](()=>{const _0x56d3a9=_0x42b08c;this[_0x56d3a9(0x3d7)]&&this[_0x56d3a9(0x236)]();})),this[_0x42b08c(0x432)](_0x310f54[_0x42b08c(0x274)][_0x42b08c(0x1a9)](()=>{const _0x4ff889=_0x42b08c;this[_0x4ff889(0x3d7)]&&(this[_0x4ff889(0x195)](!0x1),this[_0x4ff889(0x1c2)]());})),this[_0x42b08c(0x432)](_0x372e33[_0x42b08c(0x398)][_0x42b08c(0x456)](()=>{const _0x21a30c=_0x42b08c;this[_0x21a30c(0x32f)]&&this['_subUnitId']&&this[_0x21a30c(0x41e)]&&this[_0x21a30c(0x346)][_0x21a30c(0x312)]({'unitId':this[_0x21a30c(0x32f)],'subUnitId':this[_0x21a30c(0x1df)],'drawingId':this['_activeShapeId']})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x21a30c(0x32f)],this['_subUnitId'],this['_activeShapeId']),this[_0x21a30c(0x428)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x2921a5=_0x291e41;this[_0x2921a5(0x432)](this[_0x2921a5(0x199)]['onCommandExecuted'](_0x15b34e=>{const _0x3ab017=_0x2921a5;if(_0x15b34e['id']!==_0x172941['id'])return;let {unitId:_0x38eaed,subUnitId:_0x7adffe,shapeId:_0x3f9b4a}=_0x15b34e['params'];_0x38eaed===this[_0x3ab017(0x32f)]&&_0x7adffe===this[_0x3ab017(0x1df)]&&_0x3f9b4a===this[_0x3ab017(0x41e)]&&this['refreshAdjustControls']();})),this[_0x2921a5(0x432)](this[_0x2921a5(0x346)][_0x2921a5(0x1d8)][_0x2921a5(0x456)](_0x4628af=>{const _0x5c6a9f=_0x2921a5;if(_0x4628af['length']===0x1){let _0x4b20be=_0x4628af[0x0];if(_0x4b20be[_0x5c6a9f(0x209)]===_0x40fd85[_0x5c6a9f(0x43a)]&&this['_univerInstanceService'][_0x5c6a9f(0x340)](_0x4b20be[_0x5c6a9f(0x351)])===_0x3c82b9[_0x5c6a9f(0x35c)]){this[_0x5c6a9f(0x41e)]=_0x4b20be[_0x5c6a9f(0x1dd)];let {unitId:_0x19d241,subUnitId:_0x54750d}=_0x4b20be;this[_0x5c6a9f(0x23a)]=this[_0x5c6a9f(0x41b)](_0x19d241,_0x54750d,this[_0x5c6a9f(0x41e)]),this[_0x5c6a9f(0x32f)]=_0x19d241,this[_0x5c6a9f(0x1df)]=_0x54750d,this[_0x5c6a9f(0x236)](),this['_createShapeAdjustControls']();return;}}this[_0x5c6a9f(0x41e)]=null,this[_0x5c6a9f(0x23a)]=void 0x0,this[_0x5c6a9f(0x32f)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this[_0x2921a5(0x432)](this[_0x2921a5(0x346)]['update$'][_0x2921a5(0x456)](_0x3cdd86=>{const _0x2a58dd=_0x2921a5;if(_0x3cdd86['length']===0x1){var _0x278069;let _0x14136d=_0x3cdd86[0x0];((_0x278069=this[_0x2a58dd(0x346)][_0x2a58dd(0x312)](_0x14136d))==null?void 0x0:_0x278069[_0x2a58dd(0x209)])===_0x40fd85[_0x2a58dd(0x43a)]&&this[_0x2a58dd(0x201)](!0x0);}})),this['disposeWithMe'](this[_0x2921a5(0x346)][_0x2921a5(0x31c)][_0x2921a5(0x456)](_0x4c10b7=>{const _0x2c76e6=_0x2921a5;for(let _0x2457d5 of _0x4c10b7)this[_0x2c76e6(0x41e)]===_0x2457d5[_0x2c76e6(0x1dd)]&&(this[_0x2c76e6(0x41e)]=null,this[_0x2c76e6(0x23a)]=void 0x0,this[_0x2c76e6(0x32f)]=null,this[_0x2c76e6(0x1df)]=null,this[_0x2c76e6(0x236)]());}));}};Ir=X([Y(0x0,_0x28cffc),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x5b79b4(_0x1158d5)),Y(0x3,_0x5b79b4(Z)),Y(0x4,_0x44b74c),Y(0x5,_0x54c16f)],Ir);const Lr={'id':_0x291e41(0x1e5),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x4a4fdc,_0x59e339)=>{const _0x24c0c9=_0x291e41;let _0x39c530=_0x4a4fdc['get'](_0x28cffc),_0x284d6c=_0x4a4fdc[_0x24c0c9(0x42c)](_0x1158d5),_0x6bbf7=_0x4a4fdc[_0x24c0c9(0x42c)](Ir);if(_0x59e339==null)return!0x0;if(_0x59e339['length']>0x0){var _0x5736c0;let _0x36949a=(_0x5736c0=_0x284d6c[_0x24c0c9(0x3a7)](_0x59e339[0x0][_0x24c0c9(0x351)]))==null?void 0x0:_0x5736c0[_0x24c0c9(0x1f2)];if(_0x36949a){let {unitId:_0x3bcd09,subUnitId:_0x279f48,drawingId:_0x93869c}=_0x59e339[0x0],_0xc914a9=_0x38d621({'unitId':_0x3bcd09,'subUnitId':_0x279f48,'drawingId':_0x93869c},void 0x0),_0x45e088=_0x36949a[_0x24c0c9(0x292)](_0xc914a9);if(_0x45e088){var _0x1367be;(_0x1367be=_0x284d6c[_0x24c0c9(0x3a7)](_0x59e339[0x0][_0x24c0c9(0x351)]))==null||(_0x1367be=_0x1367be[_0x24c0c9(0x1f2)][_0x24c0c9(0x335)]())==null||_0x1367be['activeAnObject'](_0x45e088);}}_0x39c530[_0x24c0c9(0x2bd)](_0x59e339),_0x6bbf7['setShouldShowAdjust'](!0x1);}return!0x0;}},Rr={'type':_0x303f65[_0x291e41(0x287)],'id':'sheet.command.menu-insert-shape','handler':async(_0x80996d,_0x18de2c)=>{const _0x40e400=_0x291e41;let _0x1a3cb6=_0x378f79(_0x80996d[_0x40e400(0x42c)](_0x44b74c));if(!_0x1a3cb6)return!0x1;let _0x3d4637=_0x80996d[_0x40e400(0x42c)](_0x438b0b)['getCurrentLastSelection']();if(!_0x3d4637)return!0x1;let _0x1e9638=_0x80996d[_0x40e400(0x42c)](_0x54c16f),{unitId:_0x3b772,subUnitId:_0x130014}=_0x1a3cb6,{value:_0x38dcf6,enhanceParams:_0x1c0cda}=_0x18de2c,{range:_0x34635d}=_0x3d4637,_0x3bfe45={'unitId':_0x3b772,'subUnitId':_0x130014,'shapeType':_0x38dcf6,'range':_0x34635d,'shapeId':_0x2eff46()};if(_0x1c0cda){let _0x8e60dc=_0x5184c7(_0x38dcf6),_0x37e313=_0x38dcf6===_0x206995[_0x40e400(0x41f)];_0x8e60dc&&(_0x1c0cda[_0x40e400(0x3c1)]||_0x1c0cda[_0x40e400(0x29e)])&&(_0x3bfe45[_0x40e400(0x3ad)]={'ln':{'startArrow':_0x1c0cda[_0x40e400(0x3c1)]?{'type':_0x3aa73d[_0x40e400(0x3e4)],'size':_0x672a93[_0x40e400(0x282)]}:void 0x0,'endArrow':_0x1c0cda[_0x40e400(0x29e)]?{'type':_0x3aa73d[_0x40e400(0x3e4)],'size':_0x672a93[_0x40e400(0x26c)]}:void 0x0}}),_0x37e313&&(_0x1c0cda[_0x40e400(0x2ab)]||_0x1c0cda['vertical'])&&(_0x3bfe45[_0x40e400(0x3ad)]=_0x412b4d({'fill':{'fillType':_0x2efc4e[_0x40e400(0x396)],'color':_0x40e400(0x1c5)},'isHorizontal':!!_0x1c0cda[_0x40e400(0x2ab)],'stroke':{'lineStrokeType':_0xdd541a[_0x40e400(0x2c4)],'width':0x1,'color':_0x40e400(0x1ac)}}));}let _0x145c31=_0x1e9638['syncExecuteCommand'](_0x2b8b47['id'],_0x3bfe45);return setTimeout(()=>{const _0x1d5112=_0x40e400;_0x1e9638[_0x1d5112(0x2e1)](Lr['id'],[{'unitId':_0x3b772,'subUnitId':_0x130014,'drawingId':_0x3bfe45[_0x1d5112(0x416)]}]);},0xc8),_0x145c31;}},zr='sheet.shape.edit.panel',Br='sheet.shape.object-list.panel',Vr=_0x291e41(0x39a),Hr=_0x291e41(0x1a8),Ur=_0xe939c(_0x291e41(0x1cd)),Wr=_0x291e41(0x40a),Gr={'id':_0x291e41(0x39b),'type':_0x303f65[_0x291e41(0x287)],'handler':(_0x4c6e93,_0x555ccd)=>{const _0x32466b=_0x291e41;let _0x34c265=_0x4c6e93['get'](_0x31c5f5),_0x50271f=_0x4c6e93[_0x32466b(0x42c)](_0x13738a),_0x3e2d58=_0x4c6e93['get'](_0x44b74c),_0xd6255d=_0x4c6e93[_0x32466b(0x42c)](_0x54c16f);return _0x378f79(_0x3e2d58)?(_0x555ccd==null?void 0x0:_0x555ccd[_0x32466b(0x3ec)])==='close'?(_0x34c265[_0x32466b(0x415)](Br),!0x0):(_0x34c265[_0x32466b(0x269)]({'id':Br,'header':{'title':_0x50271f['t'](_0x32466b(0x297))},'children':{'label':Br},'onClose':()=>{const _0x3bb77f=_0x32466b;_0xd6255d[_0x3bb77f(0x1b7)](_0x5e3e35['id'],[]);},'width':0x168}),!0x0):!0x1;}},Kr={'type':_0x303f65[_0x291e41(0x3e6)],'id':_0x291e41(0x1bd),'handler'(){return!0x0;}};function qr(_0x38e7d0){const _0x5aeedc=_0x291e41;let _0x406b5f=_0x38e7d0['get'](_0x28cffc)['getFocusDrawings'](),_0x2e16c1=_0x406b5f[_0x5aeedc(0x3c3)]===0x1?_0x406b5f[0x0]:null;if(!_0x2e16c1||_0x2e16c1['drawingType']!==_0x40fd85['DRAWING_SHAPE'])return null;let _0x1626d3=_0x38e7d0['get'](_0x1e1f0c),_0x394f41=_0x1626d3[_0x5aeedc(0x1a4)](_0x2e16c1[_0x5aeedc(0x351)],_0x2e16c1[_0x5aeedc(0x21b)],_0x2e16c1[_0x5aeedc(0x1dd)]),_0x785649=_0x1626d3['getShapeDataById'](_0x2e16c1[_0x5aeedc(0x351)],_0x2e16c1[_0x5aeedc(0x21b)],_0x2e16c1[_0x5aeedc(0x1dd)]);return _0x394f41===void 0x0||!_0x785649?null:{'drawing':_0x2e16c1,'shapeData':_0x785649,'shapeType':_0x394f41};}const Jr={'id':_0x291e41(0x2af),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x3f3059,_0x300747)=>{const _0xc33717=_0x291e41;let _0x2226ac=qr(_0x3f3059),_0x179ac8=_0x33963b((_0x300747==null?void 0x0:_0x300747['presetId'])??(_0x300747==null?void 0x0:_0x300747[_0xc33717(0x3ec)])??'');if(!_0x2226ac||!_0x179ac8||_0x179ac8[_0xc33717(0x28c)]!==_0x5d10b7(_0x2226ac[_0xc33717(0x3ad)]))return!0x1;let _0x2d6051=_0x28ac21(_0x2226ac[_0xc33717(0x3ad)],_0x179ac8);if(!_0x2d6051)return!0x1;let {drawing:_0x118e7a}=_0x2226ac;return _0x3f3059[_0xc33717(0x42c)](_0x54c16f)['executeCommand'](K['id'],{'unitId':_0x118e7a[_0xc33717(0x351)],'subUnitId':_0x118e7a[_0xc33717(0x21b)],'shapeId':_0x118e7a[_0xc33717(0x1dd)],'shapeData':_0x2d6051,'oldShapeJSON':{'oldShapeData':_0x2226ac[_0xc33717(0x3ad)]}});}},Yr={'id':_0x291e41(0x1f0),'type':_0x303f65[_0x291e41(0x3e6)],'handler':(_0x250356,_0x53caed)=>{const _0x52b171=_0x291e41;let _0x358f1e=qr(_0x250356),_0x5e0e1b=(_0x53caed==null?void 0x0:_0x53caed[_0x52b171(0x3e1)])??(_0x53caed==null?void 0x0:_0x53caed[_0x52b171(0x3ec)]);if(!_0x358f1e||!_0x5e0e1b||_0x5184c7(_0x358f1e[_0x52b171(0x3e1)])||_0x5184c7(_0x5e0e1b))return!0x1;let _0x25f125=_0x386d13(_0x358f1e[_0x52b171(0x3ad)],_0x5e0e1b);if(!_0x25f125)return!0x1;let {drawing:_0x13394e}=_0x358f1e;return _0x250356[_0x52b171(0x42c)](_0x54c16f)['executeCommand'](K['id'],{'unitId':_0x13394e[_0x52b171(0x351)],'subUnitId':_0x13394e[_0x52b171(0x21b)],'shapeId':_0x13394e[_0x52b171(0x1dd)],'shapeType':_0x5e0e1b,'shapeData':_0x25f125,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x358f1e[_0x52b171(0x3e1)],'oldShapeData':_0x358f1e[_0x52b171(0x3ad)]}});}};let Q=class extends _0x557a26{constructor(_0x5e4464,_0x16f559){const _0x23395f=_0x291e41;super(),this[_0x23395f(0x3e9)]=_0x5e4464,this[_0x23395f(0x346)]=_0x16f559,this['_registerImageShapeClipDelegate'](),this[_0x23395f(0x3e9)][_0x23395f(0x1c1)](!0x0),this[_0x23395f(0x432)]({'dispose':()=>this['_clipService'][_0x23395f(0x1c1)](!0x1)});}[_0x291e41(0x3d6)](){const _0x1c385e=_0x291e41;let _0x2eca56=this[_0x1c385e(0x3e9)],_0x24429f=new Map(),_0x1a0f85=_0x2eca56[_0x1c385e(0x256)]((_0x2376b0,_0x405f8c,_0x1eb573,_0x335359,_0x228a91)=>{const _0x9a7bb8=_0x1c385e;let _0x45d21e=_0x405f8c;if(_0x45d21e===_0x206995[_0x9a7bb8(0x2e8)]||_0x405f8c===_0x9a7bb8(0x1da))return!0x1;try{let _0x475aed=_0x24429f[_0x9a7bb8(0x42c)](_0x405f8c);return _0x475aed||(_0x475aed=new _0xdd4745(_0x45d21e,_0x9a7bb8(0x30b)+_0x405f8c),_0x24429f[_0x9a7bb8(0x28a)](_0x405f8c,_0x475aed)),_0x475aed[_0x9a7bb8(0x2a9)](),_0x228a91&&Object[_0x9a7bb8(0x3f1)](_0x228a91)[_0x9a7bb8(0x3c3)]>0x0&&_0x475aed[_0x9a7bb8(0x3c5)]({'adjustValues':_0x228a91},!0x0),_0x475aed[_0x9a7bb8(0x31e)]({'width':_0x1eb573,'height':_0x335359}),_0x475aed[_0x9a7bb8(0x1ca)](_0x2376b0,{'left':0x0,'top':0x0,'width':_0x1eb573,'height':_0x335359});}catch{return!0x1;}});this[_0x1c385e(0x432)](_0x1a0f85),this[_0x1c385e(0x432)]({'dispose':()=>_0x24429f[_0x1c385e(0x280)]()});}[_0x291e41(0x368)](_0x134202,_0x550d0b,_0x1d4dff,_0x56104a,_0x1e20f3){const _0x44049f=_0x291e41;let _0x4861f6=this[_0x44049f(0x346)][_0x44049f(0x40e)](_0x134202,_0x550d0b);if(!_0x4861f6[_0x1d4dff])return;let _0x18540e={..._0x4861f6[_0x1d4dff],'prstGeom':_0x56104a,'adjustValues':_0x1e20f3};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x18540e]);}};Q=X([Y(0x0,_0x5b79b4(_0x252e29)),Y(0x1,_0x5b79b4(_0x28cffc))],Q);const Xr='sheet.shape.picker.component',Zr=_0x291e41(0x2e7);function Qr({onShapeClick:_0x967c2a,excludeGroups:_0x17a155}){const _0x20eaef=_0x291e41;return _0x183ba7(_0x278d3,{'excludeGroups':_0x17a155,'onShapeClick':_0x967c2a,'scrollContainer':_0x20eaef(0x31b)});}function $r(){const _0x34ad05=_0x291e41;let _0x392d28=_0x42cc68(_0x28cffc),_0x592471=_0x42cc68(Q);return _0x183ba7(_0x908982,{'buttonLabel':_0x34ad05(0x307),'excludeGroups':[_0x1888fe[_0x34ad05(0x34b)]],'onShapeClick':_0x1b9f0b=>{const _0x32bcc7=_0x34ad05;let _0x56273e=_0x392d28[_0x32bcc7(0x1f4)]()[_0x32bcc7(0x1e4)](_0x32491b=>_0x32491b[_0x32bcc7(0x209)]===_0x40fd85['DRAWING_IMAGE']);if(!_0x56273e)return;let {unitId:_0x411178,subUnitId:_0x22ea52,drawingId:_0x2cabc4}=_0x56273e;_0x592471[_0x32bcc7(0x368)](_0x411178,_0x22ea52,_0x2cabc4,_0x1b9f0b[_0x32bcc7(0x28c)]);}});}function ei(){const _0x3429d5=_0x291e41;let _0x51a7c6=_0x42cc68(_0x28cffc),_0x583e61=_0x42cc68(Q);return _0x183ba7(_0x908982,{'buttonLabel':_0x3429d5(0x307),'excludeGroups':[_0x1888fe[_0x3429d5(0x34b)]],'DropdownComponent':_0xf665f2,'onShapeClick':_0x1bb753=>{const _0x5f5166=_0x3429d5;let _0x2f50e2=_0x51a7c6['getFocusDrawings']()[_0x5f5166(0x1e4)](_0x4c606a=>_0x4c606a[_0x5f5166(0x209)]===_0x40fd85['DRAWING_IMAGE']);if(!_0x2f50e2)return;let {unitId:_0x54afb6,subUnitId:_0x2b6a09,drawingId:_0x5d43fc}=_0x2f50e2;_0x583e61[_0x5f5166(0x368)](_0x54afb6,_0x2b6a09,_0x5d43fc,_0x1bb753[_0x5f5166(0x28c)]);}});}function ti(){const _0x34fbd6=_0x291e41;let _0xb4790d=_0x42cc68(_0x5a241f),_0x21d82a=_0x42cc68(_0x28cffc),_0x5d3e6b=_0x42cc68(_0x44b74c),_0x50462f=_0x21d82a[_0x34fbd6(0x1f4)]()[0x0],_0x5a73ee=_0x50462f?_0x5d3e6b[_0x34fbd6(0x340)](_0x50462f['unitId']):void 0x0,_0x47f3a9=_0x5a73ee===_0x3c82b9[_0x34fbd6(0x435)]?_0x34fbd6(0x3b6):_0x5a73ee===_0x3c82b9[_0x34fbd6(0x35c)]?Zr:void 0x0,_0x593be1=_0x47f3a9?_0xb4790d['get'](_0x47f3a9):void 0x0;return _0x593be1?_0x183ba7(_0x593be1,{}):null;}function ni(){let _0xd66579=_0x42cc68(_0x54c16f);return _0x183ba7(Qr,{'onShapeClick':_0xb9e935=>{const _0x290dfe=_0x7c09;_0xd66579[_0x290dfe(0x2e1)](Rr['id'],{'value':_0xb9e935[_0x290dfe(0x28c)],'enhanceParams':{'endArrow':_0xb9e935[_0x290dfe(0x29e)],'startArrow':_0xb9e935[_0x290dfe(0x3c1)],'horizontal':_0xb9e935[_0x290dfe(0x2ab)],'vertical':_0xb9e935[_0x290dfe(0x315)]}});}});}function ri(){return _0x183ba7(ni,{});}function ii(_0x129eba){const _0x3681d4=_0x291e41;let _0x4dfb33=_0x129eba[_0x3681d4(0x42c)](_0x44b74c);return{'id':Rr['id'],'type':_0x570be5[_0x3681d4(0x1f5)],'selections':[{'label':{'name':Xr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Rr['id']}}}],'icon':'ShapeIcon','tooltip':'sheets-shape-ui.insertShape','activated$':_0x4cade8(_0x4dfb33,!0x1,()=>new _0x1486bd(_0x134482=>{_0x134482['next'](!0x1);})),'hidden$':_0x205c3b(_0x129eba,_0x3c82b9[_0x3681d4(0x35c)]),'disabled$':_0xa68a8d(_0x129eba)};}function ai(_0x21f406){const _0x3f2b9a=_0x291e41;let _0x291ed7=_0x21f406[_0x3f2b9a(0x42c)](_0x31c5f5);return{'id':Gr['id'],'type':_0x570be5[_0x3f2b9a(0x19b)],'icon':_0x3f2b9a(0x392),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x3f2b9a(0x1eb),'activated$':_0x5ccdfe(()=>_0x291ed7[_0x3f2b9a(0x385)]['pipe'](_0x1c299f(_0x291ed7[_0x3f2b9a(0x32b)]),_0x415b6a(_0x18c1d4=>_0x18c1d4['visible']===!0x0&&_0x18c1d4['id']===_0x3f2b9a(0x3a8)),_0xfbaf87())),'hidden$':_0x205c3b(_0x21f406,_0x3c82b9['UNIVER_SHEET']),'disabled$':_0xa68a8d(_0x21f406)};}const oi=_0x291e41(0x1f7),si=_0x291e41(0x306);function ci(_0x3eacb5){const _0x111d60=_0x291e41;let _0xae0bfc=_0x3eacb5[_0x111d60(0x42c)](_0x28cffc)['getFocusDrawings']();return _0xae0bfc[_0x111d60(0x3c3)]===0x1&&_0xae0bfc[0x0][_0x111d60(0x209)]===_0x40fd85[_0x111d60(0x43a)]?_0xae0bfc[0x0]:null;}function li(_0x5ae716){const _0x4c5447=_0x291e41;let _0x32391e=_0x5ae716[_0x4c5447(0x42c)](_0x28cffc);return _0x32391e[_0x4c5447(0x1d8)][_0x4c5447(0x24c)](_0x1c299f(_0x32391e[_0x4c5447(0x1f4)]()),_0x415b6a(_0x14a6ca=>_0x14a6ca[_0x4c5447(0x3c3)]!==0x1||_0x14a6ca[0x0][_0x4c5447(0x209)]!==_0x40fd85[_0x4c5447(0x43a)]));}function ui(_0xc73aaa){const _0x450d57=_0x291e41;return{'id':oi,'commandId':_0x47976c['id'],'type':_0x570be5[_0x450d57(0x19b)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x450d57(0x41d),'icon':_0x450d57(0x272),'hidden$':li(_0xc73aaa),'params':()=>{const _0x1d954f=_0x450d57;let _0x55f62c=ci(_0xc73aaa);return _0x55f62c?{'unitId':_0x55f62c[_0x1d954f(0x351)],'subUnitId':_0x55f62c[_0x1d954f(0x21b)],'shapeId':_0x55f62c[_0x1d954f(0x1dd)],'flipH':!0x0}:void 0x0;}};}function di(_0x6c82a2){const _0x578d27=_0x291e41;return{'id':si,'commandId':_0x47976c['id'],'type':_0x570be5['BUTTON'],'title':_0x578d27(0x24e),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x578d27(0x1e2),'hidden$':li(_0x6c82a2),'params':()=>{const _0x4f7717=_0x578d27;let _0x2f6e2c=ci(_0x6c82a2);return _0x2f6e2c?{'unitId':_0x2f6e2c['unitId'],'subUnitId':_0x2f6e2c[_0x4f7717(0x21b)],'shapeId':_0x2f6e2c[_0x4f7717(0x1dd)],'flipV':!0x0}:void 0x0;}};}const fi='sheets-shape-ui.shape-format.quick-style-gallery',pi='sheets-shape-ui.shape-format.style-ribbon-control',mi=_0x291e41(0x1ba),hi='sheets-shape-ui.shape-format.formula-ribbon-control';function gi(){let _0x6b2fde=_0x42cc68(_0x54c16f),_0x3b5b86=_0x42cc68(_0x28cffc),_0x54e6f5=_0x42cc68(_0x1e1f0c),_0x37396c=()=>{const _0x48ac91=_0x7c09;var _0x1e60bc;let _0x5e390b=_0x3b5b86[_0x48ac91(0x1f4)]();if(_0x5e390b['length']!==0x1||((_0x1e60bc=_0x5e390b[0x0])==null?void 0x0:_0x1e60bc['drawingType'])!==_0x40fd85['DRAWING_SHAPE'])return null;let {unitId:_0xd0b31f,subUnitId:_0x2942f3,drawingId:_0xcaae3c}=_0x5e390b[0x0],_0x560f6c=_0x54e6f5[_0x48ac91(0x1a4)](_0xd0b31f,_0x2942f3,_0xcaae3c),_0x54963f=_0x54e6f5[_0x48ac91(0x1a0)](_0xd0b31f,_0x2942f3,_0xcaae3c);return _0x560f6c===void 0x0||!_0x54963f?null:{'unitId':_0xd0b31f,'subUnitId':_0x2942f3,'drawingId':_0xcaae3c,'shapeType':_0x560f6c,'shapeData':_0x54963f};},_0x543094=_0x279878(()=>new _0x1486bd(_0x1fb63e=>{const _0x3de369=_0x7c09;let _0x4f791a=()=>_0x1fb63e[_0x3de369(0x1c4)](_0x37396c()),_0x4f8696=_0x3b5b86[_0x3de369(0x1d8)]['subscribe'](_0x4f791a),_0x243a5e=_0x6b2fde[_0x3de369(0x43c)](_0x88be1c=>{_0x88be1c['id']===_0x172941['id']&&_0x4f791a();});return _0x4f791a(),()=>{const _0x3078ba=_0x3de369;_0x4f8696[_0x3078ba(0x34c)](),_0x243a5e[_0x3078ba(0x20d)]();};}),_0x37396c(),!0x1,[_0x6b2fde,_0x3b5b86,_0x54e6f5]);return{'selection':_0x543094,'updateShapeData':_0x130deb=>{const _0x1899ed=_0x7c09;_0x543094&&kr(_0x6b2fde,_0x543094['unitId'],_0x543094['subUnitId'],_0x543094[_0x1899ed(0x1dd)],{'oldShapeData':_0x543094[_0x1899ed(0x3ad)]},_0x130deb);}};}function _i(){const _0x32c154=_0x291e41;let {selection:_0xac3076,updateShapeData:_0x252c79}=gi();return _0xac3076?_0x183ba7(_0xf453d4,{'shapeData':_0xac3076[_0x32c154(0x3ad)],'shapeType':_0xac3076[_0x32c154(0x3e1)],'onUpdateShapeData':_0x252c79}):null;}function vi(){const _0x301ca1=_0x291e41;let _0x3fd370=_0x42cc68(_0x54c16f),_0x5ec13e=_0x42cc68(_0x13738a),{selection:_0x4cf119}=gi();return _0x4cf119?_0x183ba7(_0x125dd1,{'type':_0x5d10b7(_0x4cf119['shapeData']),'ariaLabel':_0x5ec13e['t'](_0x301ca1(0x2cc)),'activePresetId':_0x12b5de(_0x4cf119['shapeData']),'onSelect':_0x2ff296=>_0x3fd370[_0x301ca1(0x2e1)](Jr['id'],{'presetId':_0x2ff296})}):null;}function yi(){const _0x5567b0=_0x291e41;let {selection:_0x282c68,updateShapeData:_0x4e9426}=gi();return _0x282c68?_0x183ba7(_0x28730a,{'fontFamilyPopupDataComponent':_0x5567b0(0x30c),'shapeData':_0x282c68['shapeData'],'onUpdateShapeData':_0x4e9426}):null;}function bi(){const _0x2e744e=_0x291e41;var _0x5032a5;let {selection:_0x1e377b,updateShapeData:_0x1c0793}=gi(),_0x1f3902=_0x3c9bbc({'hostType':_0x3c82b9['UNIVER_SHEET'],'unitId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x351)])??'','subUnitId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x21b)])??'','shapeId':(_0x1e377b==null?void 0x0:_0x1e377b[_0x2e744e(0x1dd)])??'','shapeData':_0x1e377b==null?void 0x0:_0x1e377b['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x2e744e(0x37f),'onUpdateBinding':_0x33bc88=>_0x1c0793({'formulaBinding':_0x33bc88})}),_0x81a607=((_0x5032a5=_0x1f3902[_0x2e744e(0x204)])==null?void 0x0:_0x5032a5[_0x2e744e(0x377)](_0x23774f=>_0x23774f['actions'])[_0x2e744e(0x3c0)](_0xdfc308=>_0xdfc308[_0x2e744e(0x42d)]!==!0x1))??[];return _0x1e377b!=null&&_0x1e377b[_0x2e744e(0x3ad)][_0x2e744e(0x295)]?_0x183ba7(_0x423781,{'actions':_0x81a607,'panel':_0x1f3902[_0x2e744e(0x355)]}):null;}const xi=_0x291e41(0x27b),Si=_0x291e41(0x44e),Ci=_0x291e41(0x451),wi=_0x291e41(0x2fa),Ti=_0x291e41(0x294),Ei=_0x291e41(0x37a),Di=_0x291e41(0x1bc);function Oi(_0x1fcb07){const _0x53022e=_0x291e41;let _0xac2f70=_0x1fcb07[_0x53022e(0x42c)](_0x54c16f),_0x53f6a4=_0x1fcb07[_0x53022e(0x42c)](_0x28cffc),_0x1180be=_0x1fcb07['get'](_0x1e1f0c);return new _0x1486bd(_0x27929b=>{const _0x5de58d=_0x53022e;let _0x53e8aa=()=>{const _0x17238a=_0x7c09;let _0x1552c9=ki(_0x1fcb07),_0x5c0bac=_0x1552c9?_0x1180be['getShapeDataById'](_0x1552c9[_0x17238a(0x351)],_0x1552c9[_0x17238a(0x21b)],_0x1552c9[_0x17238a(0x1dd)]):null;_0x27929b[_0x17238a(0x1c4)](_0x5c0bac?_0x12b5de(_0x5c0bac)??'':'');},_0x2cbf93=_0x53f6a4[_0x5de58d(0x1d8)][_0x5de58d(0x456)](_0x53e8aa),_0x3f7101=_0xac2f70[_0x5de58d(0x43c)](_0x3fe259=>{_0x3fe259['id']===_0x172941['id']&&_0x53e8aa();});return _0x53e8aa(),()=>{const _0x2cd60b=_0x5de58d;_0x2cbf93[_0x2cd60b(0x34c)](),_0x3f7101[_0x2cd60b(0x20d)]();};});}function ki(_0x14214b){const _0x5ecd8c=_0x291e41;var _0x247a62;let _0xc28fcc=_0x14214b[_0x5ecd8c(0x42c)](_0x28cffc)[_0x5ecd8c(0x1f4)]();return _0xc28fcc['length']===0x1&&((_0x247a62=_0xc28fcc[0x0])==null?void 0x0:_0x247a62[_0x5ecd8c(0x209)])===_0x40fd85[_0x5ecd8c(0x43a)]?_0xc28fcc[0x0]:null;}function Ai(_0x219532,_0x2203fc=!0x1){const _0x1e2434=_0x291e41;let _0x2803c7=_0x219532[_0x1e2434(0x42c)](_0x54c16f),_0x4de92b=_0x219532['get'](_0x28cffc),_0xe5702=_0x219532[_0x1e2434(0x42c)](_0x1e1f0c);return new _0x1486bd(_0x2c21b2=>{const _0x419196=_0x1e2434;let _0x22304a=()=>{const _0x133d12=_0x7c09;let _0x301844=ki(_0x219532);if(!_0x301844){_0x2c21b2[_0x133d12(0x1c4)](!0x0);return;}let _0x2f469b=_0xe5702['getShapeDataById'](_0x301844[_0x133d12(0x351)],_0x301844[_0x133d12(0x21b)],_0x301844[_0x133d12(0x1dd)]);_0x2c21b2[_0x133d12(0x1c4)](!_0x2f469b||_0x2203fc&&_0x2f469b['formulaBinding']==null);},_0x2c4521=_0x4de92b[_0x419196(0x1d8)][_0x419196(0x456)](_0x22304a),_0x1cf033=_0x2803c7[_0x419196(0x43c)](_0x427721=>{_0x427721['id']===_0x172941['id']&&_0x22304a();});return _0x22304a(),()=>{const _0x284d6f=_0x419196;_0x2c4521[_0x284d6f(0x34c)](),_0x1cf033[_0x284d6f(0x20d)]();};});}function ji(_0x2d0a83){const _0x37b455=_0x291e41;let _0x51642c=_0x2d0a83[_0x37b455(0x42c)](_0x28cffc),_0x1ecc68=_0x2d0a83['get'](_0x1e1f0c);return _0x51642c[_0x37b455(0x1d8)][_0x37b455(0x24c)](_0x1c299f(_0x51642c[_0x37b455(0x1f4)]()),_0x415b6a(()=>{const _0x48731b=_0x37b455;let _0x4e5465=ki(_0x2d0a83),_0x32523c=_0x4e5465?_0x1ecc68[_0x48731b(0x1a4)](_0x4e5465[_0x48731b(0x351)],_0x4e5465['subUnitId'],_0x4e5465['drawingId']):void 0x0;return _0x32523c===void 0x0||_0x5184c7(_0x32523c);}));}function Mi(_0x5e4953){const _0x1ff8e9=_0x291e41;return{'id':Jr['id'],'type':_0x570be5[_0x1ff8e9(0x1f5)],'icon':'PaintIcon','title':_0x1ff8e9(0x1a1),'tooltip':_0x1ff8e9(0x1a1),'selections':[{'label':{'name':fi,'hoverable':!0x1,'selectable':!0x1}}],'value$':Oi(_0x5e4953),'hidden$':Ai(_0x5e4953)};}function Ni(_0x1e220b){const _0xf763ab=_0x291e41;return{'id':Yr['id'],'type':_0x570be5[_0xf763ab(0x1f5)],'icon':_0xf763ab(0x379),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0xf763ab(0x319),'slot':!0x0,'selections':[{'label':{'name':_0x527a50,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ji(_0x1e220b)};}function Pi(_0x1b5fdd,_0x45c76c,_0x4afc65=!0x1){const _0x4c8ebb=_0x291e41;return _0x2c4eca=>({'id':_0x1b5fdd,'type':_0x570be5[_0x4c8ebb(0x19b)],'label':{'name':_0x45c76c,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ai(_0x2c4eca,_0x4afc65)});}const Fi=Pi(xi,pi),Ii=Pi(Si,mi),Li=Pi(Ci,hi,!0x0);function Ri(_0x48334a,_0x3d0e30,_0x11c8ed,_0x2c42ec){return _0x30e57e=>({'id':_0x48334a,'commandId':_0x15f547['id'],'type':_0x570be5['BUTTON'],'icon':_0x11c8ed,'title':_0x2c42ec,'tooltip':_0x2c42ec,'hidden$':Ai(_0x30e57e),'params':()=>{const _0x2c3c5a=_0x7c09;let _0x477f3a=ki(_0x30e57e);return _0x477f3a?{'unitId':_0x477f3a['unitId'],'subUnitId':_0x477f3a['subUnitId'],'drawingIds':[_0x477f3a[_0x2c3c5a(0x1dd)]],'arrangeType':_0x3d0e30}:void 0x0;}});}const zi=Ri(wi,_0x10dd10[_0x291e41(0x221)],_0x291e41(0x393),_0x291e41(0x2d6)),Bi=Ri(Ti,_0x10dd10[_0x291e41(0x2f0)],_0x291e41(0x373),_0x291e41(0x25d)),Vi=Ri(Ei,_0x10dd10[_0x291e41(0x3e7)],'TopmostIcon',_0x291e41(0x3a3)),Hi=Ri(Di,_0x10dd10[_0x291e41(0x33f)],_0x291e41(0x259),_0x291e41(0x341));function Ui(_0x5ee7e5){const _0x462aa8=_0x291e41;let _0x549550=_0x5ee7e5[_0x462aa8(0x42c)](_0x31c5f5);return{'activated$':_0x5ccdfe(()=>_0x549550['sidebarOptions$'][_0x462aa8(0x24c)](_0x1c299f(_0x549550[_0x462aa8(0x32b)]),_0x415b6a(_0x43a0c8=>_0x43a0c8[_0x462aa8(0x42d)]===!0x0&&_0x43a0c8['id']===_0x462aa8(0x2ee)),_0xfbaf87())),'id':Kr['id'],'type':_0x570be5[_0x462aa8(0x19b)],'icon':_0x462aa8(0x3b2),'title':_0x462aa8(0x318),'tooltip':_0x462aa8(0x318),'hidden$':Ai(_0x5ee7e5),'params':()=>{const _0x451111=_0x462aa8;let _0x4c95cd=ki(_0x5ee7e5);return _0x4c95cd?{'unitId':_0x4c95cd[_0x451111(0x351)],'subUnitId':_0x4c95cd[_0x451111(0x21b)],'drawingId':_0x4c95cd[_0x451111(0x1dd)]}:void 0x0;}};}const Wi={[_0x388a30[_0x291e41(0x1ea)]]:{[Hr]:{'order':0x64,'title':_0x291e41(0x318),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Jr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Mi},[Yr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Si]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ii}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ui},[si]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':di},[wi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':zi},[Ti]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Bi},[Ei]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Vi},[Di]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Hi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Li}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ui},[_0x4895c1['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x219f54}}}}},Gi={[_0x412e51[_0x291e41(0x387)]]:{[Rr['id']]:{'order':0x3,'menuItemFactory':ii}}},Ki={...Gi,[_0x412e51['OTHERS']]:{[Gr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ai}},[_0x42929a[_0x291e41(0x35a)]]:{[_0x5580dd[_0x291e41(0x238)]]:{[oi]:{'order':0x4,'menuItemFactory':ui},[si]:{'order':0x5,'menuItemFactory':di}}}};var qi=_0x291e41(0x1d7),Ji='1.4.0';const Yi={'id':_0x291e41(0x2ae),'type':_0x303f65[_0x291e41(0x3e6)],'handler'(_0x483b14,_0x2b52ad){const _0x318eef=_0x291e41;return _0x2b52ad?(_0x483b14[_0x318eef(0x42c)](_0xdd7ac8)[_0x318eef(0x269)](_0x2b52ad['mode'],{'hostType':_0x3c82b9[_0x318eef(0x35c)],'shapeId':_0x2b52ad[_0x318eef(0x1dd)],'subUnitId':_0x2b52ad[_0x318eef(0x21b)],'unitId':_0x2b52ad['unitId']}),!0x0):!0x1;}},Xi=_0x291e41(0x34f),Zi={};let Qi=class extends _0x557a26{constructor(_0x2431b1,_0x4f668b,_0x39cc98,_0x118314,_0x5b9c69){const _0x471f47=_0x291e41;super(),this[_0x471f47(0x343)]=_0x2431b1,this['_drawingManagerService']=_0x4f668b,this[_0x471f47(0x449)]=_0x39cc98,this[_0x471f47(0x394)]=_0x118314,this[_0x471f47(0x388)]=_0x5b9c69,q(this,'_activeImageId',null),q(this,_0x471f47(0x32f),null),q(this,_0x471f47(0x1df),null),q(this,'_activeAdjustPointList',void 0x0),q(this,_0x471f47(0x1a5),[]),q(this,_0x471f47(0x299),0x0),q(this,'_baseTop',0x0),q(this,_0x471f47(0x267),0x0),q(this,_0x471f47(0x1d1),0x0),q(this,_0x471f47(0x25c),!0x1),q(this,_0x471f47(0x23e),void 0x0),q(this,_0x471f47(0x22f),void 0x0),q(this,_0x471f47(0x370),void 0x0),q(this,_0x471f47(0x3ba),void 0x0),q(this,'_isImagePointerDown',!0x1),this[_0x471f47(0x300)](),this[_0x471f47(0x1b2)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x291e41(0x2b0)](){const _0x3c3089=_0x291e41;this[_0x3c3089(0x43f)](),this['_createControls'](!0x0);}[_0x291e41(0x260)](_0x326e95,_0x17ea7e,_0x1d9220,_0x4d712e){const _0x55636d=_0x291e41;let _0x55ac39=_0x326e95;if(_0x55ac39!==_0x206995['None']&&_0x326e95!==_0x55636d(0x1da))try{let _0x33836b=new _0xdd4745(_0x55ac39,_0x55636d(0x2a1)+_0x326e95);return _0x4d712e&&_0x33836b[_0x55636d(0x3c5)]({'adjustValues':_0x4d712e},!0x0),_0x33836b[_0x55636d(0x31e)]({'width':_0x17ea7e,'height':_0x1d9220}),_0x33836b;}catch{return;}}[_0x291e41(0x1de)](_0x53c57c,_0x27d39c,_0x5ad50c){const _0x573913=_0x291e41;let _0x530f19={'unitId':_0x53c57c,'subUnitId':_0x27d39c,'drawingId':_0x5ad50c},_0x3d76a2=this[_0x573913(0x346)][_0x573913(0x312)](_0x530f19);if(_0x3d76a2&&_0x3d76a2[_0x573913(0x209)]===_0x40fd85['DRAWING_IMAGE'])return _0x3d76a2;}['_getImagePrstGeom'](_0x4f0379,_0x426c76,_0x2cb1c2){const _0x27adf9=_0x291e41;let _0x31a55f=this[_0x27adf9(0x449)][_0x27adf9(0x3a7)](_0x4f0379);if(!_0x31a55f)return;let {scene:_0x3f54c1}=_0x31a55f,_0x2eb53c=_0x38d621({'unitId':_0x4f0379,'subUnitId':_0x426c76,'drawingId':_0x2cb1c2}),_0x329ed=_0x3f54c1[_0x27adf9(0x1fc)](_0x2eb53c);if(_0x329ed instanceof _0x3e5f8e){let _0x434d7d=_0x329ed[_0x27adf9(0x324)];if(_0x434d7d)return{'prstGeom':_0x434d7d,'adjustValues':_0x329ed[_0x27adf9(0x1d5)]};}}[_0x291e41(0x1d9)](_0x55052e=!0x1){const _0x100221=_0x291e41;if(!this[_0x100221(0x32f)]||!this[_0x100221(0x1df)]||!this[_0x100221(0x192)])return;let _0x42eadd=this[_0x100221(0x449)][_0x100221(0x3a7)](this[_0x100221(0x32f)]);if(!_0x42eadd||!_0x42eadd[_0x100221(0x401)](_0x5635f6)['getCurrentSkeleton']())return;let {scene:_0x73a68f}=_0x42eadd,_0x13147a=this[_0x100221(0x1de)](this[_0x100221(0x32f)],this[_0x100221(0x1df)],this[_0x100221(0x192)]);if(!_0x13147a)return;let {transform:_0x20fd64}=_0x13147a;if(!_0x20fd64)return;let {left:_0x5190f8,top:_0x1b8d36,width:_0x1e6e3d,height:_0x516afd,flipX:_0x5bd96d,flipY:_0x4901dd,angle:_0x537638=0x0}=_0x20fd64;if(_0x5190f8===void 0x0||_0x1b8d36===void 0x0)return;let _0x2b54f8=this[_0x100221(0x29c)](this[_0x100221(0x32f)],this[_0x100221(0x1df)],this[_0x100221(0x192)]);if(!_0x2b54f8)return;if(_0x55052e){let _0x3c58f5=this['_getOrCreateShapeModel'](_0x2b54f8[_0x100221(0x324)],_0x1e6e3d||0x0,_0x516afd||0x0,_0x2b54f8[_0x100221(0x342)]);if(!_0x3c58f5)return;this['_activeAdjustPointList']=_0x3c58f5['getDrawingPoints']();}let _0x17d413=this[_0x100221(0x2dd)];if(_0x17d413&&_0x17d413[_0x100221(0x3c3)]!==0x0)for(let _0xe061d2=0x0;_0xe061d2<_0x17d413[_0x100221(0x3c3)];_0xe061d2++){let _0x5434f7=_0x17d413[_0xe061d2],_0x54e0c6=_0x5434f7['x'],_0x316e87=_0x5434f7['y'];if(_0x5bd96d&&(_0x54e0c6=(_0x1e6e3d||0x0)-_0x54e0c6),_0x4901dd&&(_0x316e87=(_0x516afd||0x0)-_0x316e87),_0x537638!==0x0){let _0x226139=(_0x1e6e3d||0x0)/0x2,_0x4b4821=(_0x516afd||0x0)/0x2,_0x4f6fd5=_0x537638*Math['PI']/0xb4,_0x25f3fc=Math[_0x100221(0x375)](_0x4f6fd5),_0x24b209=Math[_0x100221(0x3ae)](_0x4f6fd5),_0x2a7ee6=_0x54e0c6-_0x226139,_0x482ce2=_0x316e87-_0x4b4821;_0x54e0c6=_0x226139+(_0x2a7ee6*_0x25f3fc-_0x482ce2*_0x24b209),_0x316e87=_0x4b4821+(_0x2a7ee6*_0x24b209+_0x482ce2*_0x25f3fc);}let _0x43ca52={'x':_0x54e0c6,'y':_0x316e87,'adjName':_0x5434f7[_0x100221(0x443)]};this['_addControl'](_0x73a68f,_0x43ca52,_0x43ca52[_0x100221(0x443)],_0x5190f8,_0x1b8d36,this[_0x100221(0x32f)],this['_subUnitId']);}}[_0x291e41(0x336)](_0x3a4de7,_0x2c47a1,_0x20a81c,_0x22e16c,_0x39065b,_0x419d30,_0x18753e){const _0x3c84ff=_0x291e41;if(!this[_0x3c84ff(0x192)])return;let _0x3d9207=_0x3c84ff(0x285)+this['_activeImageId']+'-'+_0x20a81c,_0x3af53d=_0x3a4de7['getObjectIncludeInGroup'](_0x3d9207);if(_0x3af53d){_0x3af53d[_0x3c84ff(0x220)]({'left':_0x2c47a1['x']+_0x22e16c-_0x179988[_0x3c84ff(0x3dd)],'top':_0x2c47a1['y']+_0x39065b-_0x179988[_0x3c84ff(0x3dd)]});return;}let _0x25e885=new Fr(_0x3d9207,{'left':_0x2c47a1['x']+_0x22e16c-_0x179988[_0x3c84ff(0x3dd)],'top':_0x2c47a1['y']+_0x39065b-_0x179988[_0x3c84ff(0x3dd)],'adjName':_0x20a81c,'shapeId':this[_0x3c84ff(0x192)],'unitId':_0x419d30,'subUnitId':_0x18753e,'width':_0x179988[_0x3c84ff(0x3dd)]+0x8,'height':_0x179988[_0x3c84ff(0x3dd)]+0x8,'zIndex':_0x10b13b+0x1,'evented':!0x0});this[_0x3c84ff(0x1a5)]['push'](_0x25e885),this[_0x3c84ff(0x455)](_0x25e885,_0x3a4de7,_0x20a81c),_0x3a4de7['addObject'](_0x25e885,_0x10b13b+0x1);}[_0x291e41(0x43f)](){const _0x5b28f7=_0x291e41;this[_0x5b28f7(0x1a5)]['length']!==0x0&&(this['_shapes'][_0x5b28f7(0x44b)](_0x2f4691=>_0x2f4691['dispose']()),this[_0x5b28f7(0x1a5)]=[]);}[_0x291e41(0x436)](_0x28d2b0,_0x32bb8e){const _0x46d011=_0x291e41;var _0x49339c;let _0x1cecb5={'x':0x0,'y':0x0},_0x95f51b=this['_renderManagerService'][_0x46d011(0x3a7)](_0x28d2b0);if(!_0x95f51b||!_0x95f51b[_0x46d011(0x401)](_0x5635f6)[_0x46d011(0x2d8)](_0x32bb8e))return _0x1cecb5;let _0x2c7b56=_0x95f51b['with'](_0xbd2a68),_0x3e439d=_0x2c7b56==null?void 0x0:_0x2c7b56[_0x46d011(0x212)]();if(!_0x3e439d)return _0x1cecb5;let _0xf9fcaf=(_0x49339c=this[_0x46d011(0x394)][_0x46d011(0x208)](_0x28d2b0))==null?void 0x0:_0x49339c['getSheetBySheetId'](_0x32bb8e);if(!_0xf9fcaf)return _0x1cecb5;let _0x2b3426=_0x53677b(_0x3e439d[_0x46d011(0x38c)],_0x3e439d[_0x46d011(0x457)],_0x95f51b[_0x46d011(0x1f2)],_0xf9fcaf);return _0x2b3426?{'x':_0x2b3426['viewportScrollX'],'y':_0x2b3426['viewportScrollY']}:_0x1cecb5;}[_0x291e41(0x245)](_0x590280,_0x23d838){const _0x124a45=_0x291e41;var _0x5c94cc;let _0x4de9d3=(_0x5c94cc=this['_univerInstanceService'][_0x124a45(0x208)](_0x590280))==null?void 0x0:_0x5c94cc['getSheetBySheetId'](_0x23d838);return(_0x4de9d3==null?void 0x0:_0x4de9d3[_0x124a45(0x3eb)]())??0x1;}[_0x291e41(0x455)](_0x2f6ad5,_0x12dd84,_0x24456b){const _0x5a325c=_0x291e41;this[_0x5a325c(0x432)](_0x53ca46(_0x2f6ad5[_0x5a325c(0x1e7)][_0x5a325c(0x1a9)]((_0x181ae0,_0x38a24f)=>{const _0x5513e1=_0x5a325c;var _0x5db8e2,_0x43cbfb,_0x577084;let {unitId:_0x2c4eb2,subUnitId:_0x28d141,drawingId:_0x33d5a1}=_0x2f6ad5[_0x5513e1(0x2b4)](),_0x4cae81=this[_0x5513e1(0x1de)](_0x2c4eb2,_0x28d141,_0x33d5a1);if(!(_0x4cae81!=null&&_0x4cae81['transform']))return;let {left:_0xceb146,top:_0x27888f,width:_0xcb86bf,height:_0xccc101}=_0x4cae81[_0x5513e1(0x21c)];this[_0x5513e1(0x299)]=_0xceb146||0x0,this['_baseTop']=_0x27888f||0x0,this[_0x5513e1(0x267)]=_0xcb86bf||0x0,this[_0x5513e1(0x1d1)]=_0xccc101||0x0;let _0x5b020d=!!((_0x5db8e2=_0x4cae81['transform'])!=null&&_0x5db8e2[_0x5513e1(0x26b)]),_0x49bf33=!!((_0x43cbfb=_0x4cae81[_0x5513e1(0x21c)])!=null&&_0x43cbfb[_0x5513e1(0x1d2)]),_0x2c704c=((_0x577084=_0x4cae81[_0x5513e1(0x21c)])==null?void 0x0:_0x577084[_0x5513e1(0x2a0)])||0x0,_0x24d75f=this[_0x5513e1(0x29c)](_0x2c4eb2,_0x28d141,_0x33d5a1);if(!_0x24d75f)return;let _0x266dbf=this[_0x5513e1(0x260)](_0x24d75f[_0x5513e1(0x324)],this[_0x5513e1(0x267)],this[_0x5513e1(0x1d1)],_0x24d75f[_0x5513e1(0x342)]);if(!_0x266dbf||(this['_activeShapeModel']=_0x266dbf,this[_0x5513e1(0x23e)]=_0x266dbf[_0x5513e1(0x437)](_0x24456b),!this[_0x5513e1(0x23e)]))return;this[_0x5513e1(0x25c)]=!0x0,_0x12dd84[_0x5513e1(0x424)]();let _0x50eaca=_0x24d75f['prstGeom'];this[_0x5513e1(0x370)]=_0x12dd84[_0x5513e1(0x349)][_0x5513e1(0x1a9)]((_0x512478,_0x81b651)=>{const _0x4be003=_0x5513e1;if(!this['_isStartAdjusting'])return;let {offsetX:_0x147cd9,offsetY:_0x1d390b}=_0x512478,_0x4e66a6=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x4e66a6)return;_0x12dd84[_0x4be003(0x424)](),_0x12dd84[_0x4be003(0x329)](_0x15231c[_0x4be003(0x198)]);let _0x3c194a={'left':0x0,'top':0x0,'width':this[_0x4be003(0x267)],'height':this[_0x4be003(0x1d1)]},_0x4eaccb=this[_0x4be003(0x436)](_0x2c4eb2,_0x28d141),_0x461547=this[_0x4be003(0x245)](_0x2c4eb2,_0x28d141),_0x4f8673=_0x147cd9/_0x461547+_0x4eaccb['x']-this['_baseLeft'],_0x50da76=_0x1d390b/_0x461547+_0x4eaccb['y']-this[_0x4be003(0x3b4)];if(_0x2c704c!==0x0){let _0x5972c3=this[_0x4be003(0x267)]/0x2,_0x274b27=this[_0x4be003(0x1d1)]/0x2,_0x3599ad=_0x2c704c*Math['PI']/0xb4,_0x370dda=Math[_0x4be003(0x375)](_0x3599ad),_0x121b69=Math['sin'](_0x3599ad),_0xdfb4d7=_0x4f8673-_0x5972c3,_0x59f371=_0x50da76-_0x274b27;_0x4f8673=_0x5972c3+(_0xdfb4d7*_0x370dda+_0x59f371*_0x121b69),_0x50da76=_0x274b27+(-_0xdfb4d7*_0x121b69+_0x59f371*_0x370dda);}_0x5b020d&&(_0x4f8673=this[_0x4be003(0x267)]-_0x4f8673),_0x49bf33&&(_0x50da76=this[_0x4be003(0x1d1)]-_0x50da76);let _0x5d1d5b=this[_0x4be003(0x22f)][_0x4be003(0x399)](_0x3c194a,{'x':_0x4f8673,'y':_0x50da76},_0x4e66a6,_0x5b020d,_0x49bf33);if(Object[_0x4be003(0x3f1)](_0x5d1d5b)[_0x4be003(0x3c3)]!==0x0){for(let [_0x8da784,_0x1995ea]of Object[_0x4be003(0x384)](_0x5d1d5b))this[_0x4be003(0x22f)]['setAdjustValueByName'](_0x8da784,_0x1995ea);this[_0x4be003(0x22f)][_0x4be003(0x31e)]({'width':this[_0x4be003(0x267)],'height':this[_0x4be003(0x1d1)]}),this['_updateImageAdjValues'](_0x2c4eb2,_0x28d141,_0x33d5a1,_0x5d1d5b),this[_0x4be003(0x2dd)]=this[_0x4be003(0x22f)][_0x4be003(0x44f)](),this['_createControls'](),_0x81b651[_0x4be003(0x2a5)]();}}),this[_0x5513e1(0x3ba)]=_0x12dd84[_0x5513e1(0x274)][_0x5513e1(0x1a9)]((_0x6bfa22,_0x1ae70c)=>{const _0x26b0ea=_0x5513e1;if(this['_adjHandlerPointerMove'][_0x26b0ea(0x34c)](),this[_0x26b0ea(0x3ba)][_0x26b0ea(0x34c)](),_0x12dd84['resetCursor'](),this[_0x26b0ea(0x22f)]){let _0x18b2a8=this[_0x26b0ea(0x22f)][_0x26b0ea(0x36e)](),_0x29da56={};for(let _0x1e7911 of _0x18b2a8){let _0x50e714=this[_0x26b0ea(0x22f)]['getAdjustValueByName'](_0x1e7911);_0x50e714!==void 0x0&&(_0x29da56[_0x1e7911]=_0x50e714);}this[_0x26b0ea(0x388)][_0x26b0ea(0x368)](_0x2c4eb2,_0x28d141,_0x33d5a1,_0x50eaca,_0x29da56);}this[_0x26b0ea(0x23e)]=void 0x0,this[_0x26b0ea(0x22f)]=void 0x0,this[_0x26b0ea(0x25c)]=!0x1,_0x1ae70c[_0x26b0ea(0x2a5)](),_0x12dd84['enableObjectsEvent']();}),_0x38a24f[_0x5513e1(0x2a5)]();})));}[_0x291e41(0x1c6)](_0x4f8aeb,_0x4f7680,_0x17d755,_0x4ac6f3){const _0x209380=_0x291e41;let _0x223d31=this[_0x209380(0x449)][_0x209380(0x3a7)](_0x4f8aeb);if(!_0x223d31)return;let {scene:_0x226071}=_0x223d31,_0x39ba68=_0x38d621({'unitId':_0x4f8aeb,'subUnitId':_0x4f7680,'drawingId':_0x17d755}),_0x18eab7=_0x226071[_0x209380(0x1fc)](_0x39ba68);if(_0x18eab7 instanceof _0x3e5f8e){let _0x2e601d=_0x18eab7[_0x209380(0x1d5)]??{};_0x18eab7[_0x209380(0x352)]({..._0x2e601d,..._0x4ac6f3}),_0x18eab7[_0x209380(0x293)](!0x0);}}[_0x291e41(0x1b2)](){const _0x8b3e94=_0x291e41;let _0x5b9a98=this[_0x8b3e94(0x394)]['getCurrentTypeOfUnit$'](_0x3c82b9[_0x8b3e94(0x35c)]);this[_0x8b3e94(0x432)](_0x5b9a98['pipe'](_0x17931b(_0x1cfb82=>_0x1cfb82?_0x1cfb82[_0x8b3e94(0x3bc)]['pipe'](_0x17931b(_0xf79eba=>{const _0x33ffcb=_0x8b3e94;if(!_0xf79eba)return _0x257bb9;let _0x2a35fc=_0x1cfb82['getUnitId'](),_0x28b3a6=this[_0x33ffcb(0x449)]['getRenderUnitById'](_0x2a35fc),_0x3cd5d6=_0x28b3a6==null?void 0x0:_0x28b3a6['scene'];return _0x3cd5d6?_0x413c25(_0x3cd5d6):_0x257bb9;})):_0x257bb9))[_0x8b3e94(0x456)](_0x3494b1=>{const _0x47227d=_0x8b3e94;let _0x47f386=_0x3494b1[_0x47227d(0x39e)]();this[_0x47227d(0x432)](_0x3494b1[_0x47227d(0x349)][_0x47227d(0x1a9)](()=>{const _0x287769=_0x47227d;this[_0x287769(0x45a)]&&this['_clearControls']();})),this['disposeWithMe'](_0x47f386['changeStart$'][_0x47227d(0x456)](_0x232dd3=>{const _0x1e6bc1=_0x47227d;let {objects:_0x6737e4}=_0x232dd3;if(this[_0x1e6bc1(0x1d9)](),_0x6737e4!==null&&_0x6737e4[_0x1e6bc1(0x215)]===0x1){let _0x355b79=_0x6737e4['values']()[_0x1e6bc1(0x1c4)]()[_0x1e6bc1(0x3ec)];_0x355b79 instanceof _0x3e5f8e&&_0x355b79[_0x1e6bc1(0x324)]&&(this[_0x1e6bc1(0x45a)]=!0x0);}})),this[_0x47227d(0x432)](_0x47f386['changing$'][_0x47227d(0x456)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this['disposeWithMe'](_0x3494b1['onPointerUp$'][_0x47227d(0x1a9)](()=>{const _0x11bb0f=_0x47227d;this[_0x11bb0f(0x45a)]&&(this['_isImagePointerDown']=!0x1,this[_0x11bb0f(0x1d9)]());})),this[_0x47227d(0x432)](_0x47f386['changeEnd$'][_0x47227d(0x456)](()=>{const _0x4ca1d2=_0x47227d;if(this['_unitId']&&this[_0x4ca1d2(0x1df)]&&this[_0x4ca1d2(0x192)]){let _0x2fa743=this[_0x4ca1d2(0x29c)](this[_0x4ca1d2(0x32f)],this[_0x4ca1d2(0x1df)],this[_0x4ca1d2(0x192)]);if(_0x2fa743){var _0x448286,_0x6ac844;let _0x39a271=this[_0x4ca1d2(0x1de)](this[_0x4ca1d2(0x32f)],this[_0x4ca1d2(0x1df)],this['_activeImageId']),_0x2eca14=(_0x39a271==null||(_0x448286=_0x39a271[_0x4ca1d2(0x21c)])==null?void 0x0:_0x448286[_0x4ca1d2(0x45d)])||0x0,_0x61169d=(_0x39a271==null||(_0x6ac844=_0x39a271[_0x4ca1d2(0x21c)])==null?void 0x0:_0x6ac844['height'])||0x0,_0x4527e1=this[_0x4ca1d2(0x260)](_0x2fa743[_0x4ca1d2(0x324)],_0x2eca14,_0x61169d,_0x2fa743[_0x4ca1d2(0x342)]);_0x4527e1&&(this[_0x4ca1d2(0x2dd)]=_0x4527e1[_0x4ca1d2(0x44f)](),this[_0x4ca1d2(0x43f)](),this[_0x4ca1d2(0x1d9)](!0x0));}}}));}));}[_0x291e41(0x300)](){const _0x444b08=_0x291e41;this['disposeWithMe'](this[_0x444b08(0x346)]['focus$']['subscribe'](_0x330af5=>{const _0x56a2d8=_0x444b08;if(_0x330af5['length']===0x1){let _0x4c3dec=_0x330af5[0x0];if(_0x4c3dec[_0x56a2d8(0x209)]===_0x40fd85['DRAWING_IMAGE']){let {unitId:_0x1ed051,subUnitId:_0x44cd40,drawingId:_0x5cac55}=_0x4c3dec,_0x1108ec=this[_0x56a2d8(0x29c)](_0x1ed051,_0x44cd40,_0x5cac55);if(_0x1108ec){var _0x105aa7,_0x476d9d;this[_0x56a2d8(0x192)]=_0x5cac55,this[_0x56a2d8(0x32f)]=_0x1ed051,this[_0x56a2d8(0x1df)]=_0x44cd40;let _0x553cbe=this['_getImageDrawingInfo'](_0x1ed051,_0x44cd40,_0x5cac55),_0x3065d7=(_0x553cbe==null||(_0x105aa7=_0x553cbe[_0x56a2d8(0x21c)])==null?void 0x0:_0x105aa7[_0x56a2d8(0x45d)])||0x0,_0x1c2dfa=(_0x553cbe==null||(_0x476d9d=_0x553cbe[_0x56a2d8(0x21c)])==null?void 0x0:_0x476d9d[_0x56a2d8(0x257)])||0x0,_0x1ec52b=this[_0x56a2d8(0x260)](_0x1108ec['prstGeom'],_0x3065d7,_0x1c2dfa,_0x1108ec[_0x56a2d8(0x342)]);_0x1ec52b&&(this[_0x56a2d8(0x2dd)]=_0x1ec52b[_0x56a2d8(0x44f)]()),this[_0x56a2d8(0x43f)](),this['_createControls'](!0x0);}else this[_0x56a2d8(0x45b)]();}else this[_0x56a2d8(0x45b)]();}else this['_resetState']();})),this[_0x444b08(0x432)](this['_drawingManagerService']['update$'][_0x444b08(0x456)](_0x15f2d5=>{const _0x2023ed=_0x444b08;if(_0x15f2d5[_0x2023ed(0x3c3)]===0x1){let _0x5de0ca=_0x15f2d5[0x0],_0x485daf=this[_0x2023ed(0x346)][_0x2023ed(0x312)](_0x5de0ca);(_0x485daf==null?void 0x0:_0x485daf[_0x2023ed(0x209)])===_0x40fd85[_0x2023ed(0x27d)]&&this['_activeImageId']===_0x5de0ca[_0x2023ed(0x1dd)]&&(this[_0x2023ed(0x43f)](),this[_0x2023ed(0x1d9)](!0x0));}})),this['disposeWithMe'](this[_0x444b08(0x346)][_0x444b08(0x31c)][_0x444b08(0x456)](_0x1ea100=>{const _0x3f0321=_0x444b08;for(let _0x366e97 of _0x1ea100)this[_0x3f0321(0x192)]===_0x366e97[_0x3f0321(0x1dd)]&&this['_resetState']();}));}['_resetState'](){const _0x66523b=_0x291e41;this[_0x66523b(0x192)]=null,this['_unitId']=null,this[_0x66523b(0x1df)]=null,this[_0x66523b(0x2dd)]=void 0x0,this['_clearControls']();}};Qi=X([Y(0x1,_0x28cffc),Y(0x2,_0x5b79b4(_0x1158d5)),Y(0x3,_0x44b74c),Y(0x4,_0x5b79b4(Q))],Qi);function $i(_0x22e76f){return _0x22e76f['trim']()||void 0x0;}function ea(_0x3910e7,_0x3ce9ab,_0x8e2520){const _0x34046f=_0x291e41;var _0x40af29;return((_0x40af29=_0x3910e7[_0x34046f(0x358)])==null?void 0x0:_0x40af29[_0x34046f(0x243)]())||_0x8e2520['t'](_0x34046f(0x3c9)+_0x2dbe92(_0x3910e7[_0x34046f(0x209)]))+'\x20'+(_0x3ce9ab+0x1);}function ta({PanelComponent:_0x49f501=_0x43b8f7}){const _0x50c8b1=_0x291e41;var _0x4d6327;let _0x3ab862=_0x42cc68(_0x13738a),_0x5d0e22={'title':_0x3ab862['t']('drawing-ui.objectListPanel.title'),'empty':_0x3ab862['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x3ab862['t'](_0x50c8b1(0x1ab)),'hideAll':_0x3ab862['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x3ab862['t'](_0x50c8b1(0x1ed)),'unlockAll':_0x3ab862['t'](_0x50c8b1(0x29d)),'moveForward':_0x3ab862['t'](_0x50c8b1(0x3fe)),'moveBackward':_0x3ab862['t'](_0x50c8b1(0x1a3)),'close':_0x3ab862['t'](_0x50c8b1(0x433)),'show':_0x3ab862['t'](_0x50c8b1(0x1f1)),'hide':_0x3ab862['t']('drawing-ui.objectListPanel.hide'),'lock':_0x3ab862['t'](_0x50c8b1(0x1bf)),'unlock':_0x3ab862['t'](_0x50c8b1(0x325)),'lockHint':_0x3ab862['t'](_0x50c8b1(0x248)),'unlockHint':_0x3ab862['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x3ab862['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x3ab862['t'](_0x50c8b1(0x331)),'description':_0x3ab862['t'](_0x50c8b1(0x22c)),'descriptionPlaceholder':_0x3ab862['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x3ab862['t'](_0x50c8b1(0x3bd)),'noSelection':_0x3ab862['t'](_0x50c8b1(0x3e3)),'locate':_0x3ab862['t'](_0x50c8b1(0x2d2)),'expand':_0x3ab862['t'](_0x50c8b1(0x21d)),'collapse':_0x3ab862['t'](_0x50c8b1(0x407)),'dragToReorder':_0x3ab862['t'](_0x50c8b1(0x2a4)),'search':_0x3ab862['t'](_0x50c8b1(0x339)),'filterAll':_0x3ab862['t'](_0x50c8b1(0x19a)),'filterHidden':_0x3ab862['t'](_0x50c8b1(0x3d4)),'filterLocked':_0x3ab862['t'](_0x50c8b1(0x2c7)),'sectionCanvas':_0x3ab862['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x3ab862['t'](_0x50c8b1(0x213))},_0x365285=_0x42cc68(_0x54c16f),_0x964fb2=_0x42cc68(_0x44b74c),_0x28bc80=_0x42cc68(_0x17b29e),_0xbf1791=_0x42cc68(_0x28cffc),_0x4770df=_0x42cc68(_0x1158d5),[,_0x7543c9]=_0x2c6db3(_0x279070=>_0x279070+0x1,0x0),_0x59ccdc=_0x964fb2[_0x50c8b1(0x453)](_0x3c82b9[_0x50c8b1(0x35c)]),_0x2ff65f=(_0x59ccdc==null?void 0x0:_0x59ccdc[_0x50c8b1(0x440)]())??'',_0x245068=(_0x59ccdc==null||(_0x4d6327=_0x59ccdc[_0x50c8b1(0x2fe)]())==null?void 0x0:_0x4d6327[_0x50c8b1(0x431)]())??'',_0x2c2af4=_0x279878(()=>_0xbf1791[_0x50c8b1(0x1d8)],_0xbf1791[_0x50c8b1(0x1f4)](),!0x1,[_0xbf1791]);_0x3b96f0(()=>{const _0x30ac56=_0x50c8b1;let _0x76e315=_0x365285[_0x30ac56(0x43c)](()=>_0x7543c9());return()=>_0x76e315['dispose']();},[_0x365285]);let _0x337d55=_0x2ff65f&&_0x245068?_0x28bc80[_0x50c8b1(0x40e)](_0x2ff65f,_0x245068):{},_0x5a8c7a=(_0x2ff65f&&_0x245068?_0x28bc80[_0x50c8b1(0x23f)](_0x2ff65f,_0x245068):[])['map'](_0x5754ff=>_0x337d55[_0x5754ff])['filter'](_0x1a146b=>!!_0x1a146b)['reverse'](),_0x132dfc=_0x5a8c7a[_0x50c8b1(0x362)]((_0xb16701,_0x368925)=>(_0xb16701[_0x4dc94f(_0x368925[_0x50c8b1(0x209)])]+=0x1,_0xb16701),{'canvas':0x0,'floating':0x0}),_0x3678b2={'canvas':0x0,'floating':0x0},_0x2442ba=_0x5a8c7a[_0x50c8b1(0x3cd)]((_0x2527e6,_0x167971)=>{const _0x80b812=_0x50c8b1;let _0x58e79b=_0x4dc94f(_0x2527e6[_0x80b812(0x209)]),_0x512d36=_0x58e79b===_0x39a12f,_0x3d958f=_0x3678b2[_0x58e79b]++;return{'id':_0x2527e6[_0x80b812(0x1dd)],'name':ea(_0x2527e6,_0x167971,_0x3ab862),'description':_0x2527e6[_0x80b812(0x235)],'visible':_0x2527e6[_0x80b812(0x314)]!==!0x0,'selectable':_0x2527e6[_0x80b812(0x2c5)]!==!0x1,'sectionId':_0x58e79b,'sectionTitle':_0x512d36?_0x5d0e22[_0x80b812(0x265)]:_0x5d0e22[_0x80b812(0x2a8)],'capabilities':_0x512d36?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x512d36&&_0x3d958f>0x0,'canMoveBackward':!_0x512d36&&_0x3d958f<_0x132dfc[_0x80b812(0x21a)]-0x1,'canReorder':!_0x512d36};}),_0x54f5fb=_0x283095(()=>(_0x2c2af4??[])['filter'](_0x451f2e=>_0x451f2e[_0x50c8b1(0x351)]===_0x2ff65f&&_0x451f2e[_0x50c8b1(0x21b)]===_0x245068)['map'](_0x2937a1=>_0x2937a1[_0x50c8b1(0x1dd)]),[_0x2c2af4,_0x245068,_0x2ff65f]),_0x4df52f=_0x54f5fb[_0x54f5fb[_0x50c8b1(0x3c3)]-0x1]??null,_0x294261=_0x1a179d=>_0x28bc80[_0x50c8b1(0x312)]({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x1a179d})??null,_0x5da474=async _0x27122a=>{const _0x11d1a7=_0x50c8b1;_0x2ff65f&&_0x27122a[_0x11d1a7(0x3c3)]&&await _0x365285['executeCommand'](_0xb1758f['id'],{'unitId':_0x2ff65f,'drawings':_0x27122a});},_0x2dbc7a=async(_0x75e083,_0x4d1b45)=>{_0x294261(_0x75e083)&&await _0x5da474([{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x75e083,..._0x4d1b45}]);},_0x25a573=(_0x4b69fb,_0x1792ec)=>{const _0x3a5d3f=_0x50c8b1;if(!_0x2ff65f||!_0x245068)return;let _0xf9c626=_0x1792ec?_0x54f5fb[_0x3a5d3f(0x253)](_0x4b69fb)?_0x54f5fb[_0x3a5d3f(0x3c0)](_0x3d59ec=>_0x3d59ec!==_0x4b69fb):[..._0x54f5fb,_0x4b69fb]:[_0x4b69fb];_0x365285[_0x3a5d3f(0x1b7)](_0x5e3e35['id'],_0xf9c626[_0x3a5d3f(0x3cd)](_0x3a7778=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x3a7778})));let _0xcd3ef3=_0xf9c626[_0xf9c626['length']-0x1];_0xcd3ef3?_0x390dd1(_0x4770df,{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0xcd3ef3}):_0x333af8(_0x4770df,_0x2ff65f);},_0x33ac63=async(_0x2e2c7b,_0x2b5e55)=>{const _0x12144b=_0x50c8b1;await _0x5da474(_0x2e2c7b[_0x12144b(0x3cd)](_0x4e3c32=>_0x294261(_0x4e3c32))[_0x12144b(0x3c0)](_0x80135=>!!_0x80135)['filter'](_0x322687=>_0x322687['hidden']!==!0x0!==_0x2b5e55)[_0x12144b(0x3cd)](_0x1ba45c=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x1ba45c[_0x12144b(0x1dd)],'hidden':!_0x2b5e55})));},_0x5d6fbb=async(_0x4d4ae1,_0x5d7264)=>{const _0x347b8c=_0x50c8b1;await _0x5da474(_0x4d4ae1[_0x347b8c(0x3cd)](_0x2f6c1d=>_0x294261(_0x2f6c1d))[_0x347b8c(0x3c0)](_0x128f2a=>!!_0x128f2a)['filter'](_0x1f7063=>_0x1f7063[_0x347b8c(0x2c5)]!==!0x1!==_0x5d7264)[_0x347b8c(0x3cd)](_0x369d0d=>({'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingId':_0x369d0d[_0x347b8c(0x1dd)],'selectable':_0x5d7264})));},_0x5303bd=_0x218e0a=>{const _0x4c5d82=_0x50c8b1;let _0xf95eb6=_0x294261(_0x218e0a);if(_0xf95eb6)return _0x5d6fbb([_0x218e0a],_0xf95eb6[_0x4c5d82(0x2c5)]===!0x1);},_0x4b515d=async(_0x3e8ceb,_0x5c4427)=>{var _0x40933d;let _0x4a3037=$i(_0x5c4427);(((_0x40933d=_0x294261(_0x3e8ceb))==null?void 0x0:_0x40933d['name'])??void 0x0)!==_0x4a3037&&await _0x2dbc7a(_0x3e8ceb,{'name':_0x4a3037});},_0x35bf66=async(_0x1f38d5,_0x113697)=>{const _0x59f6a3=_0x50c8b1;var _0x5d9a59;let _0x5d52f3=$i(_0x113697);(((_0x5d9a59=_0x294261(_0x1f38d5))==null?void 0x0:_0x5d9a59[_0x59f6a3(0x235)])??void 0x0)!==_0x5d52f3&&await _0x2dbc7a(_0x1f38d5,{'description':_0x5d52f3});},_0x298caf=async(_0x533d52,_0x38dd08)=>{const _0x2f29df=_0x50c8b1;_0x2ff65f&&_0x245068&&await _0x365285[_0x2f29df(0x2e1)](_0x15f547['id'],{'unitId':_0x2ff65f,'subUnitId':_0x245068,'drawingIds':[_0x533d52],'arrangeType':_0x38dd08});};return!_0x2ff65f||!_0x245068?_0x183ba7('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x5d0e22['title']}):_0x183ba7(_0x49f501,{'labels':_0x5d0e22,'items':_0x2442ba,'selectedIds':_0x54f5fb,'focusedId':_0x4df52f,'showHeader':!0x1,'onSelect':_0x25a573,'onSetVisible':_0x33ac63,'onSetSelectable':_0x5d6fbb,'onCommitName':_0x4b515d,'onCommitDescription':_0x35bf66,'onMoveForward':async _0x5863f2=>_0x298caf(_0x5863f2,_0x10dd10[_0x50c8b1(0x221)]),'onMoveBackward':async _0x4e0bd6=>_0x298caf(_0x4e0bd6,_0x10dd10['backward']),'onToggleSelectable':_0x5303bd});}function na(){return _0x183ba7(ta,{'PanelComponent':_0x570c7a});}let ra=class extends _0x557a26{constructor(_0x32524b,_0x5b4a60){const _0x420508=_0x291e41;super(),this['disposeWithMe'](_0x32524b['register'](Br,na)),this[_0x420508(0x432)](_0x5b4a60[_0x420508(0x3d0)]({'BottomIcon':_0x19c68f,'FlipHorizontalIcon':_0x30529a,'FlipVerticalIcon':_0xd6996,'MoveDownIcon':_0x14ee72,'MoveUpIcon':_0xb1af47,'ObjectLayersIcon':_0x10ffc5,'ShapeFormatSettingIcon':_0x21bdf2,'TopmostIcon':_0x384eef})),this['disposeWithMe'](_0x32524b[_0x420508(0x3d0)](Xr,ri)),this[_0x420508(0x432)](_0x32524b['register'](Zr,ei)),_0x32524b[_0x420508(0x2e9)](_0x1b086b)||this[_0x420508(0x432)](_0x32524b['register'](_0x1b086b,ti));}};ra=X([Y(0x0,_0x5b79b4(_0x5a241f)),Y(0x1,_0x5b79b4(_0x3844d8))],ra);let $=class extends _0x557a26{constructor(_0x7646f5){const _0x53a535=_0x291e41;super(),this[_0x53a535(0x361)]=_0x7646f5,q(this,'_editingParams$',new _0x21d0c1(null)),q(this,'editingParams$',this[_0x53a535(0x1e0)][_0x53a535(0x3dc)]()),q(this,_0x53a535(0x20f),new _0x21d0c1(!0x1)),q(this,_0x53a535(0x1e1),this[_0x53a535(0x20f)]['asObservable']()),q(this,'_completionFrame',void 0x0),this['disposeWithMe'](this['_permissionService'][_0x53a535(0x359)][_0x53a535(0x456)](()=>{const _0x42807e=_0x53a535;let _0x10969d=this[_0x42807e(0x3e8)]();_0x10969d!=null&&_0x10969d[_0x42807e(0x42d)]&&!this[_0x42807e(0x302)](_0x10969d)&&this[_0x42807e(0x3fb)](null);}));}[_0x291e41(0x20d)](){const _0x33d1fe=_0x291e41;this['_clearCompletionFrame'](),this[_0x33d1fe(0x1e0)][_0x33d1fe(0x1c4)](null),this[_0x33d1fe(0x1e0)][_0x33d1fe(0x242)](),this[_0x33d1fe(0x20f)][_0x33d1fe(0x1c4)](!0x1),this['_onSavingEditorData$']['complete'](),super[_0x33d1fe(0x20d)]();}[_0x291e41(0x3fb)](_0x3ba1a6){const _0x1e9905=_0x291e41;(_0x3ba1a6==null||!_0x3ba1a6['visible']||this[_0x1e9905(0x302)](_0x3ba1a6))&&(this[_0x1e9905(0x35d)](),this[_0x1e9905(0x1e0)]['next'](_0x3ba1a6),(_0x3ba1a6==null||_0x3ba1a6[_0x1e9905(0x42d)]&&this[_0x1e9905(0x20f)][_0x1e9905(0x2d0)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x291e41(0x3d2)](_0xe49d80){const _0x8bfe89=_0x291e41;this[_0x8bfe89(0x20f)][_0x8bfe89(0x1c4)](_0xe49d80);}['getEditing'](){const _0x2f3405=_0x291e41;return this['_editingParams$'][_0x2f3405(0x2d0)]();}['_canEdit'](_0x10ffc3){const _0x4ce072=_0x291e41;let _0x227563=this[_0x4ce072(0x361)][_0x4ce072(0x3da)](new _0x20b096(_0x10ffc3[_0x4ce072(0x351)])['id']),_0x405a31=this[_0x4ce072(0x361)][_0x4ce072(0x3da)](new _0x1ea295(_0x10ffc3[_0x4ce072(0x351)],_0x10ffc3['subUnitId'])['id']);return((_0x227563==null?void 0x0:_0x227563['value'])??!0x0)&&((_0x405a31==null?void 0x0:_0x405a31['value'])??!0x0);}['completeEditing'](_0x410e9e){const _0x31dae3=_0x291e41;let _0x3d272a=this[_0x31dae3(0x3e8)]();_0x3d272a&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x31dae3(0x2cf)]=requestAnimationFrame(()=>{const _0x379c15=_0x31dae3;this['_completionFrame']=void 0x0,this[_0x379c15(0x3e8)]()===_0x3d272a&&this[_0x379c15(0x3fb)](null);}));}[_0x291e41(0x35d)](){const _0x29902f=_0x291e41;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x29902f(0x2cf)]),this[_0x29902f(0x2cf)]=void 0x0);}[_0x291e41(0x210)](){const _0x4d54b3=_0x291e41;this['getEditing']()&&this[_0x4d54b3(0x3fb)](null);}};$=X([Y(0x0,_0x1d37e3)],$);let ia=class extends _0x557a26{constructor(_0x496532,_0x1f75a8,_0x44f61a,_0x388e2c,_0x12d471,_0x18ecfa){const _0x39059f=_0x291e41;super(),this[_0x39059f(0x343)]=_0x496532,this[_0x39059f(0x369)]=_0x1f75a8,this[_0x39059f(0x33d)]=_0x44f61a,this['_drawingManagerService']=_0x388e2c,this['_contextService']=_0x12d471,this['_sheetsShapeService']=_0x18ecfa,q(this,'_lastEditingShapeKey',null),this[_0x39059f(0x2b6)](),this[_0x39059f(0x334)](),this[_0x39059f(0x25a)]();}[_0x291e41(0x2b6)](){const _0x4652f3=_0x291e41;let {scene:_0x46deb0}=this[_0x4652f3(0x343)];this[_0x4652f3(0x432)](_0x46deb0[_0x4652f3(0x2de)][_0x4652f3(0x1a9)](_0xf90bea=>{const _0x5374db=_0x4652f3;let {offsetX:_0x3c868f,offsetY:_0x21f2a7}=_0xf90bea,_0x40a746=_0x46deb0[_0x5374db(0x1fb)](_0x45d11b['FromArray']([_0x3c868f,_0x21f2a7]));if(_0x40a746 instanceof J){let _0xa1f10a=this[_0x5374db(0x408)][_0x5374db(0x32d)](_0x40a746['unitId'],_0x40a746[_0x5374db(0x21b)],_0x40a746['shapeId']);if(_0x5184c7(this['_sheetsShapeService'][_0x5374db(0x2ba)](_0x40a746['unitId'],_0x40a746['subUnitId'],_0x40a746['shapeId']))||_0xa1f10a!=null&&_0xa1f10a[_0x5374db(0x2d9)]()['formulaBinding'])return;this['_shapeTextEditingService'][_0x5374db(0x3fb)]({'visible':!0x0,'unitId':_0x40a746[_0x5374db(0x351)],'subUnitId':_0x40a746[_0x5374db(0x21b)],'shapeId':_0x40a746[_0x5374db(0x416)],'shapeKey':_0x40a746[_0x5374db(0x268)]});}}));}['_initSelection'](){const _0x70405d=_0x291e41;this['disposeWithMe'](this['_drawingManagerService'][_0x70405d(0x1d8)][_0x70405d(0x456)](_0x48c62d=>{const _0x28bff9=_0x70405d;if(_0x48c62d[_0x28bff9(0x3c3)]===0x1){let _0x41356e=_0x48c62d[0x0],_0x5e3009=this[_0x28bff9(0x346)]['getDrawingByParam'](_0x41356e);if((_0x5e3009==null?void 0x0:_0x5e3009[_0x28bff9(0x209)])===_0x40fd85[_0x28bff9(0x43a)]){var _0x1ad1e8;let _0x42661f=this['_shapeTextEditingService'][_0x28bff9(0x3e8)]();if((_0x42661f==null?void 0x0:_0x42661f[_0x28bff9(0x416)])===_0x41356e[_0x28bff9(0x1dd)]&&_0x42661f[_0x28bff9(0x42d)])return;let _0x22d39b=_0x5184c7(this[_0x28bff9(0x408)][_0x28bff9(0x2ba)](_0x41356e[_0x28bff9(0x351)],_0x41356e['subUnitId'],_0x41356e[_0x28bff9(0x1dd)])),_0x45412b=!!((_0x1ad1e8=this[_0x28bff9(0x408)][_0x28bff9(0x32d)](_0x41356e[_0x28bff9(0x351)],_0x41356e[_0x28bff9(0x21b)],_0x41356e[_0x28bff9(0x1dd)]))!=null&&_0x1ad1e8['getShapeData']()[_0x28bff9(0x295)]);(_0x22d39b||_0x45412b)&&this[_0x28bff9(0x33d)][_0x28bff9(0x3fb)](null);}else this['_shapeTextEditingService'][_0x28bff9(0x1ff)]();}else this[_0x28bff9(0x33d)]['completeEditing']();})),this[_0x70405d(0x432)](this[_0x70405d(0x346)][_0x70405d(0x31c)]['subscribe'](_0x57ff62=>{const _0xf806fe=_0x70405d;let _0x3465e9=this[_0xf806fe(0x33d)][_0xf806fe(0x3e8)]();_0x3465e9&&_0x57ff62[_0xf806fe(0x31d)](_0x5c9722=>_0x5c9722[_0xf806fe(0x1dd)]===_0x3465e9[_0xf806fe(0x416)])&&this[_0xf806fe(0x33d)][_0xf806fe(0x3fb)](null);}));}['_initEditingParams'](){const _0x287cd4=_0x291e41;this['disposeWithMe'](this['_shapeTextEditingService'][_0x287cd4(0x3d8)][_0x287cd4(0x456)](_0x59d743=>{const _0x87c09c=_0x287cd4;let {scene:_0x370e97}=this[_0x87c09c(0x343)];if(this['_lastEditingShapeKey']){let _0x11c753=_0x370e97[_0x87c09c(0x292)](this[_0x87c09c(0x29f)]);_0x11c753&&_0x11c753[_0x87c09c(0x3fb)](!0x1);}if(_0x59d743){let _0x25be40=!!_0x59d743[_0x87c09c(0x42d)],_0x5dab78=_0x370e97[_0x87c09c(0x292)](_0x59d743[_0x87c09c(0x2e3)]);_0x5dab78&&(_0x5dab78['setEditing'](_0x25be40),this[_0x87c09c(0x29f)]=_0x59d743['shapeKey']),this[_0x87c09c(0x2d4)][_0x87c09c(0x409)](_0x2a4c27,_0x25be40);}else this[_0x87c09c(0x29f)]=null,this[_0x87c09c(0x2d4)][_0x87c09c(0x409)](_0x2a4c27,!0x1);}));}};ia=X([Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x5b79b4($)),Y(0x3,_0x28cffc),Y(0x4,_0x4b3877),Y(0x5,_0x5b79b4(_0x1e1f0c))],ia);var aa=class extends ia{[_0x291e41(0x2b6)](){const _0x2c9b9b=_0x291e41;let {scene:_0x2b7edf}=this[_0x2c9b9b(0x343)],_0x45dca4=this[_0x2c9b9b(0x369)]['get'](_0xdd7ac8);this[_0x2c9b9b(0x432)](_0x2b7edf[_0x2c9b9b(0x2de)]['subscribeEvent'](_0x566b19=>{const _0x2f1e6c=_0x2c9b9b;let {offsetX:_0x147474,offsetY:_0x411656}=_0x566b19,_0x397114=_0x2b7edf['pick'](_0x45d11b[_0x2f1e6c(0x39c)]([_0x147474,_0x411656]));if(!(_0x397114 instanceof J))return;let _0x51aea3=this[_0x2f1e6c(0x408)][_0x2f1e6c(0x32d)](_0x397114[_0x2f1e6c(0x351)],_0x397114[_0x2f1e6c(0x21b)],_0x397114[_0x2f1e6c(0x416)]);_0x5184c7(this[_0x2f1e6c(0x408)][_0x2f1e6c(0x2ba)](_0x397114['unitId'],_0x397114[_0x2f1e6c(0x21b)],_0x397114['shapeId']))||_0x51aea3!=null&&_0x51aea3['getShapeData']()[_0x2f1e6c(0x295)]||_0x45dca4[_0x2f1e6c(0x269)](_0x2f1e6c(0x241),{'hostType':_0x3c82b9['UNIVER_SHEET'],'unitId':_0x397114['unitId'],'subUnitId':_0x397114[_0x2f1e6c(0x21b)],'shapeId':_0x397114[_0x2f1e6c(0x416)]});}));}};const oa={...Gi};let sa=class extends _0x557a26{constructor(_0xcd1af6,_0xe32ca0,_0x2c4057,_0x3262c6,_0x225628,_0x311726,_0xbf7453,_0x495f56){const _0x3591e2=_0x291e41;super(),this[_0x3591e2(0x1f3)]=_0xcd1af6,this[_0x3591e2(0x408)]=_0xe32ca0,this[_0x3591e2(0x199)]=_0x2c4057,this['_drawingManagerService']=_0x3262c6,this[_0x3591e2(0x19e)]=_0x225628,this['_contextService']=_0x311726,this[_0x3591e2(0x449)]=_0xbf7453,this[_0x3591e2(0x33d)]=_0x495f56,q(this,_0x3591e2(0x2da),null),this[_0x3591e2(0x1f3)]['mergeMenu'](oa),this[_0x3591e2(0x27c)](),this[_0x3591e2(0x432)](this[_0x3591e2(0x33d)][_0x3591e2(0x3d8)][_0x3591e2(0x456)](_0x546ac8=>{_0x546ac8&&this['_clearFocusedShape']();}));}[_0x291e41(0x366)](){const _0x2434c2=_0x291e41;this[_0x2434c2(0x2da)]||=this[_0x2434c2(0x432)](_0x5695f5(this['_renderManagerService'],_0x3c82b9['UNIVER_SHEET'],_0x53758f=>this['_popupMenuListener'](_0x53758f)));}[_0x291e41(0x27c)](){const _0x29491d=_0x291e41;this[_0x29491d(0x19e)][_0x29491d(0x3f2)](_0x40fd85[_0x29491d(0x43a)],(_0x63052c,_0xa6a1b6,_0x3d4a10,_0x551336)=>{const _0x177377=_0x29491d;let _0x64cc52=this[_0x177377(0x408)][_0x177377(0x1a4)](_0x63052c,_0xa6a1b6,_0x3d4a10),_0x1d61b0=this['_sheetsShapeService'][_0x177377(0x1a0)](_0x63052c,_0xa6a1b6,_0x3d4a10),_0x2ec8a8=_0x64cc52!==void 0x0&&!_0x5184c7(_0x64cc52)&&!(_0x1d61b0!=null&&_0x1d61b0['formulaBinding']);return[{'label':_0x177377(0x29a),'index':0x0,'commandId':Yi['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'mode':_0x177377(0x216)},'disable':!0x1},..._0x2ec8a8?[{'label':_0x177377(0x250),'index':0x1,'commandId':Yi['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'mode':_0x177377(0x241)},'disable':!0x1}]:[],{'label':_0x177377(0x1b8),'index':0x2,'commandId':_0x1c9438['id'],'commandParams':{'unitId':_0x63052c,'drawings':[{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'drawingId':_0x3d4a10,'drawingType':_0x551336}]},'disable':!0x1},{'label':_0x177377(0x41d),'index':0x3,'commandId':_0x47976c['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'shapeId':_0x3d4a10,'flipH':!0x0},'disable':!0x1},{'label':_0x177377(0x24e),'index':0x4,'commandId':_0x47976c['id'],'commandParams':{'unitId':_0x63052c,'subUnitId':_0xa6a1b6,'shapeId':_0x3d4a10,'flipV':!0x0},'disable':!0x1}];},_0x29491d(0x1f6));}['_popupMenuListener'](_0x3db6f6){const _0x344b92=_0x291e41;let _0x103b89=new _0x39a460(),_0x4ab3dd=null,_0x2a0365=()=>{const _0x255381=_0x7c09;if(!_0x4ab3dd)return;let _0xff35f6=this[_0x255381(0x346)]['getFocusDrawings'](),_0xfc670=_0xff35f6[_0x255381(0x3c3)]===0x0||_0xff35f6[_0x255381(0x3c3)]===0x1&&_0xff35f6[_0x255381(0x31d)](_0x38175a=>_0x38175a[_0x255381(0x351)]===(_0x4ab3dd==null?void 0x0:_0x4ab3dd[_0x255381(0x351)])&&_0x38175a['subUnitId']===(_0x4ab3dd==null?void 0x0:_0x4ab3dd['subUnitId'])&&_0x38175a[_0x255381(0x1dd)]===(_0x4ab3dd==null?void 0x0:_0x4ab3dd[_0x255381(0x1dd)]));_0x4ab3dd=null,_0xfc670&&(this[_0x255381(0x2d4)][_0x255381(0x409)](_0x317872,!0x1),this[_0x255381(0x346)][_0x255381(0x2bd)](null));};return _0x103b89[_0x344b92(0x322)](_0x3db6f6['createControl$'][_0x344b92(0x456)](()=>{const _0x161546=_0x344b92;let _0x210cc2=_0x3db6f6[_0x161546(0x450)]();if(_0x210cc2['size']>0x1){_0x2a0365();return;}let _0x5f21ad=_0x210cc2[_0x161546(0x3f3)]()['next']()[_0x161546(0x3ec)];if(!_0x5f21ad){_0x2a0365();return;}let _0x537e20=this['_drawingManagerService']['getDrawingOKey'](_0x5f21ad[_0x161546(0x268)]);if(!_0x537e20||_0x537e20[_0x161546(0x209)]!==_0x40fd85[_0x161546(0x43a)]){_0x2a0365();return;}let {unitId:_0x4e3e38,subUnitId:_0x2aa032,drawingId:_0x120dc5}=_0x537e20;_0x4ab3dd={'unitId':_0x4e3e38,'subUnitId':_0x2aa032,'drawingId':_0x120dc5},this['_contextService'][_0x161546(0x409)](_0x317872,!0x0),this['_drawingManagerService'][_0x161546(0x1f4)]()[_0x161546(0x1e4)](_0x187d36=>_0x187d36[_0x161546(0x351)]===_0x4e3e38&&_0x187d36[_0x161546(0x21b)]===_0x2aa032&&_0x187d36['drawingId']===_0x120dc5)||this[_0x161546(0x346)][_0x161546(0x2bd)]([{'unitId':_0x4e3e38,'subUnitId':_0x2aa032,'drawingId':_0x120dc5}]);})),_0x103b89[_0x344b92(0x322)](_0x3db6f6['clearControl$'][_0x344b92(0x456)](()=>{_0x2a0365();})),_0x53ca46(()=>{const _0x4dd816=_0x344b92;_0x103b89[_0x4dd816(0x20d)](),_0x2a0365();});}['_clearFocusedShape'](){const _0x3d4f06=_0x291e41;this[_0x3d4f06(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x3d4f06(0x346)][_0x3d4f06(0x2bd)](null);}};sa=X([Y(0x0,_0x24215b),Y(0x1,_0x5b79b4(_0x1e1f0c)),Y(0x2,_0x54c16f),Y(0x3,_0x28cffc),Y(0x4,_0x5b79b4(_0x57fdbe)),Y(0x5,_0x4b3877),Y(0x6,_0x1158d5),Y(0x7,_0x5b79b4($))],sa);function ca(_0x4ee991,_0x34b880,_0x19372a,_0x412ed6){const _0x4fe63b=_0x291e41;let _0x37a755=_0x3e806a(_0x4ee991,_0x34b880,_0x19372a),_0x5077ed=[];for(let _0x3031a8 of _0x34b880){let _0x565fff=_0x37a755[_0x4fe63b(0x1a7)][_0x4fe63b(0x42c)](_0x3031a8[_0x4fe63b(0x1dd)]),_0x461357=_0x412ed6(_0x3031a8);_0x565fff&&_0x461357&&_0x5077ed[_0x4fe63b(0x1b9)]({'targetShapeId':_0x565fff,'source':_0x461357});}return _0x5077ed;}let la=class extends _0x557a26{constructor(_0x1fcb98,_0x250895,_0x5567c7,_0x5646e4){const _0x57edb7=_0x291e41;super(),this[_0x57edb7(0x394)]=_0x1fcb98,this[_0x57edb7(0x2c9)]=_0x250895,this[_0x57edb7(0x3ef)]=_0x5567c7,this[_0x57edb7(0x408)]=_0x5646e4,this[_0x57edb7(0x447)]();}[_0x291e41(0x447)](){const _0x47a7c5=_0x291e41;this[_0x47a7c5(0x432)](this[_0x47a7c5(0x2c9)][_0x47a7c5(0x19c)]({'getMutations':_0x11d40e=>{const _0x2aa637=_0x47a7c5;if(_0x11d40e['id']===_0x20821a['id']){let _0x1b7b79=_0x378f79(this[_0x2aa637(0x394)],_0x11d40e[_0x2aa637(0x2b1)]);if(!_0x1b7b79)return{'redos':[],'undos':[]};let {unitId:_0x702632,subUnitId:_0x5490bc}=_0x1b7b79,_0x5b0f6f=this[_0x2aa637(0x3ef)]['getDrawingData'](_0x702632,_0x5490bc),_0x369c14=Object[_0x2aa637(0x3f3)](_0x5b0f6f)[_0x2aa637(0x3c0)](_0x117446=>_0x117446[_0x2aa637(0x209)]===_0x40fd85['DRAWING_SHAPE']);if(_0x369c14[_0x2aa637(0x3c3)]===0x0)return{'redos':[],'undos':[]};let _0x4fea84=[],_0x12bf2d=[];for(let _0x181f04=0x0;_0x181f04<_0x369c14[_0x2aa637(0x3c3)];_0x181f04++){let _0x1582e0=_0x369c14[_0x181f04],_0x4c44e0=this['_sheetsShapeService'][_0x2aa637(0x32d)](_0x1582e0['unitId'],_0x1582e0[_0x2aa637(0x21b)],_0x1582e0[_0x2aa637(0x1dd)]);_0x4c44e0&&(_0x4fea84[_0x2aa637(0x1b9)]({'id':_0x5aa689['id'],'params':{'unitId':_0x702632,'subUnitId':_0x5490bc,'shapeId':_0x1582e0['drawingId']}}),_0x12bf2d[_0x2aa637(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x702632,'subUnitId':_0x5490bc,'shapeId':_0x1582e0[_0x2aa637(0x1dd)],'shapeType':_0x4c44e0['getShapeType'](),'shapeData':JSON[_0x2aa637(0x38d)](JSON[_0x2aa637(0x454)](_0x4c44e0[_0x2aa637(0x2d9)]()))}}));}return{'redos':_0x4fea84,'undos':_0x12bf2d};}if(_0x11d40e['id']===_0x4f6b3a['id']){let {unitId:_0x46515a,subUnitId:_0x175906,targetSubUnitId:_0x195812,copyContext:_0x24b92d}=_0x11d40e[_0x2aa637(0x2b1)];if(!_0x46515a||!_0x175906||!_0x195812)return{'redos':[],'undos':[]};let _0x2c5d51=this[_0x2aa637(0x3ef)][_0x2aa637(0x40e)](_0x46515a,_0x175906),_0x4ef7e4=Object[_0x2aa637(0x3f3)](_0x2c5d51)['filter'](_0x3a9a36=>_0x3a9a36[_0x2aa637(0x209)]===_0x40fd85[_0x2aa637(0x43a)]);if(_0x4ef7e4[_0x2aa637(0x3c3)]===0x0)return{'redos':[],'undos':[]};let _0x4e417f=ca(_0x24b92d,_0x4ef7e4,{'unitId':_0x46515a,'sourceSubUnitId':_0x175906,'targetSubUnitId':_0x195812},_0x15401d=>{const _0x47bcf6=_0x2aa637;let _0xf25d2b=this[_0x47bcf6(0x408)][_0x47bcf6(0x32d)](_0x15401d[_0x47bcf6(0x351)],_0x15401d[_0x47bcf6(0x21b)],_0x15401d[_0x47bcf6(0x1dd)]);if(_0xf25d2b)return{'shapeType':_0xf25d2b[_0x47bcf6(0x2ba)](),'shapeData':JSON[_0x47bcf6(0x38d)](JSON[_0x47bcf6(0x454)](_0xf25d2b['getShapeData']()))};}),_0x5db167=[],_0x8faf80=[];for(let {targetShapeId:_0x3d3b96,source:_0xdeef6d}of _0x4e417f)_0x5db167[_0x2aa637(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x46515a,'subUnitId':_0x195812,'shapeId':_0x3d3b96,'shapeType':_0xdeef6d[_0x2aa637(0x3e1)],'shapeData':_0xdeef6d[_0x2aa637(0x3ad)]}}),_0x8faf80['push']({'id':_0x5aa689['id'],'params':{'unitId':_0x46515a,'subUnitId':_0x195812,'shapeId':_0x3d3b96}});return{'redos':_0x5db167,'undos':_0x8faf80};}return{'redos':[],'undos':[]};}}));}};la=X([Y(0x0,_0x5b79b4(_0x44b74c)),Y(0x1,_0x5b79b4(_0x20504f)),Y(0x2,_0x5b79b4(_0x17b29e)),Y(0x3,_0x5b79b4(_0x1e1f0c))],la);let ua=class extends _0x557a26{constructor(_0x5b9173,_0xf625b1,_0x4c409a,_0x1368ce,_0x551e9f,_0x5940ea){const _0x5a320f=_0x291e41;super(),this[_0x5a320f(0x199)]=_0x5b9173,this['_renderManagerService']=_0xf625b1,this[_0x5a320f(0x346)]=_0x4c409a,this[_0x5a320f(0x304)]=_0x1368ce,this[_0x5a320f(0x2ff)]=_0x551e9f,this[_0x5a320f(0x23b)]=_0x5940ea,q(this,'_insertingShapeKeys',new Set()),this[_0x5a320f(0x2aa)]();}[_0x291e41(0x2aa)](){const _0x430aff=_0x291e41;this[_0x430aff(0x1cc)](),this[_0x430aff(0x421)](),this[_0x430aff(0x2c1)]();}[_0x291e41(0x1cc)](){const _0x3ad51c=_0x291e41;this['disposeWithMe'](this[_0x3ad51c(0x346)]['add$'][_0x3ad51c(0x456)](_0x303f75=>{const _0x6ed2cc=_0x3ad51c;this[_0x6ed2cc(0x3d5)](_0x303f75);}));}[_0x291e41(0x421)](){const _0x4a8d48=_0x291e41;this['disposeWithMe'](this[_0x4a8d48(0x199)][_0x4a8d48(0x43c)]((_0x70ec0c,_0xcdd7cc)=>{const _0x2ca323=_0x4a8d48;if(_0x70ec0c['id']===_0x172941['id']){let {unitId:_0x55b1ee,subUnitId:_0x1461f6,shapeId:_0x4e61c8}=_0x70ec0c['params'],_0x144916=this[_0x2ca323(0x3b7)](_0x55b1ee),_0x115f49=_0x38d621({'unitId':_0x55b1ee,'subUnitId':_0x1461f6,'drawingId':_0x4e61c8}),_0xa8f97b=_0x144916==null?void 0x0:_0x144916[_0x2ca323(0x1f2)]['getObjectIncludeInGroup'](_0x115f49);_0xa8f97b&&(this[_0x2ca323(0x23b)][_0x2ca323(0x333)](_0xa8f97b),this[_0x2ca323(0x23b)][_0x2ca323(0x38f)](_0xa8f97b,{'unitId':_0x55b1ee,'subUnitId':_0x1461f6,'shapeId':_0x4e61c8}),_0xa8f97b['makeDirty'](!0x0));}else{if(_0x70ec0c['id']===_0x456c13['id']){var _0x9768a8;let {unitId:_0x4b180f,subUnitId:_0x6d50e3,shapeId:_0x31f369}=_0x70ec0c[_0x2ca323(0x2b1)],_0x495a94=this[_0x2ca323(0x3b7)](_0x4b180f);if(_0x495a94==null)return;let {scene:_0x56371c}=_0x495a94,_0x5cae35=_0x38d621({'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}),_0x349663=_0x56371c[_0x2ca323(0x292)](_0x5cae35);if(!((_0x9768a8=this[_0x2ca323(0x449)]['getRenderUnitById'](_0x4b180f))!=null&&_0x9768a8[_0x2ca323(0x401)](_0x5635f6)[_0x2ca323(0x2d8)](_0x6d50e3)))return!0x1;if(_0x349663)return;if(_0xcdd7cc!=null&&_0xcdd7cc[_0x2ca323(0x30a)]){queueMicrotask(()=>{const _0x2db3e5=_0x2ca323;this[_0x2db3e5(0x1a6)]||this['_insertShapes']([{'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}]);});return;}this[_0x2ca323(0x3d5)]([{'unitId':_0x4b180f,'subUnitId':_0x6d50e3,'drawingId':_0x31f369}]);}}}));}[_0x291e41(0x2c1)](){const _0x5bcac5=_0x291e41;this['disposeWithMe'](this['_drawingManagerService'][_0x5bcac5(0x1c3)][_0x5bcac5(0x456)](_0x480c98=>{const _0x380bfe=_0x5bcac5;_0x480c98[_0x380bfe(0x44b)](_0x3f0d0a=>{const _0xc90488=_0x380bfe;let {unitId:_0x493980,subUnitId:_0x22404c,drawingId:_0x12470c}=_0x3f0d0a,_0x5b478f=this[_0xc90488(0x346)][_0xc90488(0x312)](_0x3f0d0a);if(_0x5b478f==null)return;let {transform:_0x43343a,drawingType:_0x2f22f3,srcRect:_0x241462,prstGeom:_0x4a4ac7}=_0x5b478f;if(_0x2f22f3!==_0x40fd85['DRAWING_SHAPE'])return;let _0x9a0483=this[_0xc90488(0x3b7)](_0x493980);if(_0x9a0483==null)return;let {scene:_0x52450f,transformer:_0x44b57b}=_0x9a0483;if(_0x43343a==null)return!0x0;let _0x232be9=_0x38d621({'unitId':_0x493980,'subUnitId':_0x22404c,'drawingId':_0x12470c}),_0x328b12=_0x52450f[_0xc90488(0x292)](_0x232be9);if(_0x328b12==null)return!0x0;_0x328b12[_0xc90488(0x1b6)](_0x241462),_0x328b12[_0xc90488(0x217)](_0x4a4ac7);});}));}[_0x291e41(0x3d5)](_0x4a5b21){const _0x36f98b=_0x291e41;for(let _0x1dddce of _0x4a5b21){var _0x43d547;let {unitId:_0xbb2302,subUnitId:_0x3d7f0c,drawingId:_0x13fa3d}=_0x1dddce,_0xdd8565=this[_0x36f98b(0x3b7)](_0xbb2302),_0x356213=(_0x43d547=_0x286bfa(this[_0x36f98b(0x304)],_0xbb2302))==null?void 0x0:_0x43d547['subUnitId'];if(_0xdd8565==null||_0x356213!==_0x3d7f0c)return;let _0x316007=_0x38d621({'unitId':_0xbb2302,'subUnitId':_0x3d7f0c,'drawingId':_0x13fa3d});if(this[_0x36f98b(0x240)][_0x36f98b(0x290)](_0x316007)||_0xdd8565['scene'][_0x36f98b(0x292)](_0x316007)!=null)return;let _0x3ace5e=this[_0x36f98b(0x346)]['getDrawingByParam'](_0x1dddce);if(_0x3ace5e==null||_0x3ace5e[_0x36f98b(0x209)]!==_0x40fd85[_0x36f98b(0x43a)])return;let _0x5f40c7=_0x3ace5e[_0x36f98b(0x305)]||{};if(_0x5184c7(_0x5f40c7[_0x36f98b(0x3e1)])){let _0x16e753=_0x3ace5e[_0x36f98b(0x21c)];_0x16e753&&(_0x3ace5e['transform']={..._0x16e753,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x36f98b(0x322)](_0x316007);try{this[_0x36f98b(0x23b)][_0x36f98b(0x301)](_0x3ace5e,_0xdd8565[_0x36f98b(0x1f2)]);}finally{this[_0x36f98b(0x240)][_0x36f98b(0x24b)](_0x316007);}queueMicrotask(()=>{const _0x498319=_0x36f98b;if(this['_disposed'])return;let _0xbb37dc=_0x38d621(_0x1dddce);if(!_0xdd8565['scene'][_0x498319(0x292)](_0xbb37dc))return;let _0x508d40=this[_0x498319(0x346)][_0x498319(0x312)](_0x1dddce);_0x508d40&&this['_drawingManagerService'][_0x498319(0x3b0)]([_0x508d40]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x33a8e8){const _0x2e204c=_0x291e41;if(_0x33a8e8==null)return;let _0x355600=this[_0x2e204c(0x449)][_0x2e204c(0x3a7)](_0x33a8e8),_0x31a4bb=_0x355600==null?void 0x0:_0x355600['scene'];return _0x31a4bb==null?null:{'scene':_0x31a4bb,'transformer':_0x31a4bb[_0x2e204c(0x39e)]()};}};ua=X([Y(0x0,_0x54c16f),Y(0x1,_0x1158d5),Y(0x2,_0x28cffc),Y(0x3,_0x44b74c),Y(0x4,_0x5b79b4(_0x5a0133)),Y(0x5,_0x5b79b4(Z))],ua);const da={'normal':{'fill':_0x179988['cxnPointFill'],'stroke':_0x179988[_0x291e41(0x1b1)],'strokeWidth':_0x179988[_0x291e41(0x1af)]},'highlighted':{'fill':_0x291e41(0x230),'stroke':_0x291e41(0x395),'strokeWidth':0x2}};var fa=class extends _0x156eef{constructor(_0x338ff4,_0x10807b){const _0x310bea=_0x291e41;super(_0x338ff4,_0x10807b),q(this,_0x310bea(0x1a2),''),q(this,_0x310bea(0x327),-0x1),q(this,_0x310bea(0x32f),''),q(this,_0x310bea(0x1df),''),q(this,_0x310bea(0x41a),!0x1),_0x10807b&&this[_0x310bea(0x32c)](_0x10807b);}[_0x291e41(0x251)](){const _0x21132d=_0x291e41;return{'unitId':this[_0x21132d(0x32f)],'subUnitId':this[_0x21132d(0x1df)],'shapeId':this[_0x21132d(0x1a2)],'cxnIndex':this[_0x21132d(0x327)]};}['setHighlighted'](_0x2feab1){const _0x537ab1=_0x291e41;this[_0x537ab1(0x41a)]!==_0x2feab1&&(this['_isHighlighted']=_0x2feab1,this[_0x537ab1(0x293)](!0x0));}[_0x291e41(0x418)](){const _0x588951=_0x291e41;return this[_0x588951(0x41a)];}[_0x291e41(0x32c)](_0x5c2c58){const _0x5b042d=_0x291e41;_0x5c2c58[_0x5b042d(0x3c4)]!==void 0x0&&(this[_0x5b042d(0x1a2)]=_0x5c2c58[_0x5b042d(0x3c4)]),_0x5c2c58[_0x5b042d(0x239)]!==void 0x0&&(this['_cxnIndex']=_0x5c2c58[_0x5b042d(0x239)]),_0x5c2c58[_0x5b042d(0x351)]!==void 0x0&&(this[_0x5b042d(0x32f)]=_0x5c2c58[_0x5b042d(0x351)]),_0x5c2c58[_0x5b042d(0x21b)]!==void 0x0&&(this[_0x5b042d(0x1df)]=_0x5c2c58[_0x5b042d(0x21b)]),_0x5c2c58[_0x5b042d(0x418)]!==void 0x0&&(this['_isHighlighted']=_0x5c2c58[_0x5b042d(0x418)]),this['transformByState']({'width':_0x5c2c58[_0x5b042d(0x45d)]??_0x179988['cxnPointRadius']*0x2,'height':_0x5c2c58[_0x5b042d(0x257)]??_0x179988[_0x5b042d(0x2ed)]*0x2});}[_0x291e41(0x39f)](_0x14ac6b){const _0x586d7f=_0x291e41;let _0x1fe759=this[_0x586d7f(0x41a)]?da[_0x586d7f(0x3b3)]:da['normal'];_0x49536a[_0x586d7f(0x38a)](_0x14ac6b,{'radius':_0x179988['cxnPointRadius'],'fill':_0x1fe759['fill'],'stroke':_0x1fe759['stroke'],'strokeWidth':_0x1fe759[_0x586d7f(0x444)],'evented':!0x0});}};let pa=class extends _0x557a26{constructor(_0x1fb911,_0x2c65f3,_0x3bac44,_0x170626){const _0x15f699=_0x291e41;super(),this[_0x15f699(0x343)]=_0x1fb911,this[_0x15f699(0x449)]=_0x2c65f3,this[_0x15f699(0x346)]=_0x3bac44,this[_0x15f699(0x408)]=_0x170626,q(this,'_connectionSiteObjects',[]),q(this,'_activeTargetShapeId',null),q(this,_0x15f699(0x303),-0x1),q(this,_0x15f699(0x2cd),null),q(this,_0x15f699(0x32f),''),q(this,_0x15f699(0x1df),''),q(this,_0x15f699(0x316),null);}[_0x291e41(0x3db)](_0x50838c,_0x419f66,_0x2e2073,_0x3fc00b){const _0x2a86e8=_0x291e41;this['_currentScene']=_0x50838c,this[_0x2a86e8(0x32f)]=_0x419f66,this[_0x2a86e8(0x1df)]=_0x2e2073,this[_0x2a86e8(0x316)]=_0x3fc00b;}[_0x291e41(0x254)](_0x58fdd9){const _0x1ed86f=_0x291e41;if(!this[_0x1ed86f(0x2cd)])return null;let _0x260d2c=this['_findShapeAtPoint'](_0x58fdd9);return _0x260d2c?(this[_0x1ed86f(0x283)]!==_0x260d2c['shapeId']&&(this[_0x1ed86f(0x3ff)](),this['_showConnectionSites'](_0x260d2c['shapeId'],_0x260d2c[_0x1ed86f(0x286)]),this[_0x1ed86f(0x283)]=_0x260d2c[_0x1ed86f(0x416)]),this[_0x1ed86f(0x28f)](_0x58fdd9)):(this[_0x1ed86f(0x283)]!==null&&(this['_clearConnectionSites'](),this[_0x1ed86f(0x283)]=null),null);}[_0x291e41(0x402)](){const _0x401c0e=_0x291e41;this['_clearConnectionSites'](),this[_0x401c0e(0x2cd)]=null,this[_0x401c0e(0x283)]=null,this[_0x401c0e(0x303)]=-0x1,this[_0x401c0e(0x316)]=null;}[_0x291e41(0x414)](){const _0x4ddfb1=_0x291e41;return this[_0x4ddfb1(0x283)]===null||this[_0x4ddfb1(0x303)]<0x0?null:{'shapeId':this[_0x4ddfb1(0x283)],'cxnIndex':this[_0x4ddfb1(0x303)]};}[_0x291e41(0x25e)](_0x542e6f){const _0x741a6b=_0x291e41;let _0x51c0e2=this['_drawingManagerService']['getDrawingData'](this['_unitId'],this[_0x741a6b(0x1df)]);for(let _0x1e7764 of Object[_0x741a6b(0x3f1)](_0x51c0e2)){if(_0x1e7764===this['_draggingConnectorId']||_0x51c0e2[_0x1e7764][_0x741a6b(0x209)]!==_0x40fd85['DRAWING_SHAPE'])continue;let _0x10dac7=this[_0x741a6b(0x408)]['getShapeModel'](this['_unitId'],this[_0x741a6b(0x1df)],_0x1e7764);if(!_0x10dac7||_0x5184c7(_0x10dac7[_0x741a6b(0x2ba)]())||_0x10dac7[_0x741a6b(0x1f9)]()[_0x741a6b(0x3c3)]===0x0||!this[_0x741a6b(0x2cd)])continue;let _0x345bf3=_0x38d621({'unitId':this[_0x741a6b(0x32f)],'subUnitId':this[_0x741a6b(0x1df)],'drawingId':_0x1e7764}),_0x497875=this[_0x741a6b(0x2cd)][_0x741a6b(0x292)](_0x345bf3);if(!_0x497875)continue;let {left:_0x4147cf,top:_0x2f4d1d,width:_0x3b9b9b,height:_0x3ff510}=_0x497875[_0x741a6b(0x284)](),_0x1a61ab=_0x4147cf+_0x3b9b9b/0x2,_0x1b897b=_0x2f4d1d+_0x3ff510/0x2,_0x2ac405=_0x497875['transform'][_0x741a6b(0x405)](),_0x10100e=new _0x36d9d2([_0x2ac405[0x0],_0x2ac405[0x1],_0x2ac405[0x2],_0x2ac405[0x3],_0x1a61ab,_0x1b897b]),_0x3b49b8=_0x497875[_0x741a6b(0x298)](),_0x3222e2=(_0x497875['isInGroup']&&(_0x3b49b8==null?void 0x0:_0x3b49b8[_0x741a6b(0x2fd)])===_0x142f92['GROUP']?_0x3b49b8[_0x741a6b(0x43e)][_0x741a6b(0x371)](_0x10100e):_0x10100e)[_0x741a6b(0x2ef)]()[_0x741a6b(0x441)](_0x542e6f),_0x28669f=_0x3b9b9b/0x2,_0x2f3bff=_0x3ff510/0x2;if(_0x3222e2['x']>=-_0x28669f-0x5&&_0x3222e2['x']<=_0x28669f+0x5&&_0x3222e2['y']>=-_0x2f3bff-0x5&&_0x3222e2['y']<=_0x2f3bff+0x5)return{'shapeId':_0x1e7764,'shapeModel':_0x10dac7};}return null;}[_0x291e41(0x226)](_0x587d1d,_0x1b5231){const _0x35a045=_0x291e41;if(!this['_currentScene'])return;let _0x44c9ed=_0x38d621({'unitId':this[_0x35a045(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':_0x587d1d}),_0x584cfb=this['_currentScene'][_0x35a045(0x292)](_0x44c9ed);if(!_0x584cfb)return;let {left:_0x242d31,top:_0x5eebd5,width:_0x431a75,height:_0x3b4389}=_0x584cfb[_0x35a045(0x284)](),_0x87aa8b=_0x242d31+_0x431a75/0x2,_0x22c1e4=_0x5eebd5+_0x3b4389/0x2,_0x30eb8a=_0x584cfb[_0x35a045(0x21c)]['getMatrix'](),_0x6af471=new _0x36d9d2([_0x30eb8a[0x0],_0x30eb8a[0x1],_0x30eb8a[0x2],_0x30eb8a[0x3],_0x87aa8b,_0x22c1e4]),_0x1ad58f=_0x584cfb['getParent'](),_0xa0b3f=_0x584cfb['isInGroup']&&(_0x1ad58f==null?void 0x0:_0x1ad58f['classType'])===_0x142f92['GROUP']?_0x1ad58f['ancestorTransform'][_0x35a045(0x371)](_0x6af471):_0x6af471;_0x1b5231[_0x35a045(0x31e)]({'width':_0x431a75,'height':_0x3b4389});let _0xdb0eab=_0x1b5231[_0x35a045(0x1f9)]();for(let _0x18bac7 of _0xdb0eab){let _0x33463e=_0x18bac7['x']-_0x431a75/0x2,_0x1d747f=_0x18bac7['y']-_0x3b4389/0x2,_0x4a349e=_0xa0b3f['applyPoint']({'x':_0x33463e,'y':_0x1d747f}),_0x35ee7a=_0x4a349e['x'],_0x112572=_0x4a349e['y'],_0x262b59=new fa(_0x35a045(0x376)+_0x587d1d+'-'+_0x18bac7[_0x35a045(0x3f7)],{'left':_0x35ee7a-_0x179988[_0x35a045(0x2ed)],'top':_0x112572-_0x179988['cxnPointRadius'],'targetShapeId':_0x587d1d,'cxnIndex':_0x18bac7[_0x35a045(0x3f7)],'unitId':this[_0x35a045(0x32f)],'subUnitId':this[_0x35a045(0x1df)],'width':_0x179988[_0x35a045(0x2ed)]*0x2,'height':_0x179988[_0x35a045(0x2ed)]*0x2,'zIndex':_0x10b13b+0x2,'evented':!0x1});this[_0x35a045(0x36d)]['push'](_0x262b59),this[_0x35a045(0x2cd)][_0x35a045(0x35b)](_0x262b59,_0x10b13b+0x2);}}[_0x291e41(0x28f)](_0x3f492f){const _0x4c9faa=_0x291e41;let _0x3667d8=null,_0xec5965=0x1/0x0,_0x51026c=null;for(let _0x15e233 of this[_0x4c9faa(0x36d)]){let _0x59f9af=_0x15e233[_0x4c9faa(0x337)]+_0x179988[_0x4c9faa(0x2ed)],_0x1a03f0=_0x15e233[_0x4c9faa(0x3cf)]+_0x179988[_0x4c9faa(0x2ed)],_0x298f83=_0x3f492f['x']-_0x59f9af,_0x33b4d7=_0x3f492f['y']-_0x1a03f0,_0x46b9cd=Math['sqrt'](_0x298f83*_0x298f83+_0x33b4d7*_0x33b4d7);_0x46b9cd<_0xec5965&&(_0xec5965=_0x46b9cd,_0x3667d8=_0x15e233,_0x51026c={'x':_0x59f9af,'y':_0x1a03f0});}let _0x3eca8c=_0xec5965<=0xa&&_0x3667d8?_0x3667d8['getConnectionInfo']()[_0x4c9faa(0x239)]:-0x1;if(_0x3eca8c!==this[_0x4c9faa(0x303)]){for(let _0x311b85 of this[_0x4c9faa(0x36d)]){let _0x5560f5=_0x311b85['getConnectionInfo']();_0x311b85[_0x4c9faa(0x246)](_0x5560f5[_0x4c9faa(0x239)]===_0x3eca8c);}this[_0x4c9faa(0x303)]=_0x3eca8c;}if(_0xec5965<=0xa&&_0x3667d8&&_0x51026c){let _0x4ecea5=_0x3667d8['getConnectionInfo'](),_0x328f5a=this[_0x4c9faa(0x26d)](_0x4ecea5[_0x4c9faa(0x416)],_0x4ecea5[_0x4c9faa(0x239)]);return{'shapeId':_0x4ecea5[_0x4c9faa(0x416)],'cxnIndex':_0x4ecea5[_0x4c9faa(0x239)],'unitId':_0x4ecea5[_0x4c9faa(0x351)],'subUnitId':_0x4ecea5[_0x4c9faa(0x21b)],'worldPoint':_0x51026c,'angle':_0x328f5a};}return null;}[_0x291e41(0x26d)](_0x595816,_0x1d8cde){const _0xbdbf6e=_0x291e41;let _0x52f334=this[_0xbdbf6e(0x408)][_0xbdbf6e(0x32d)](this['_unitId'],this[_0xbdbf6e(0x1df)],_0x595816);if(!_0x52f334)return 0x0;let _0x5541ec=this[_0xbdbf6e(0x346)][_0xbdbf6e(0x312)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x595816});if(!(_0x5541ec!=null&&_0x5541ec[_0xbdbf6e(0x21c)]))return 0x0;let {width:_0x270ffc=0x0,height:_0x4b7504=0x0,flipX:_0x509f28=!0x1,flipY:_0x5d99df=!0x1}=_0x5541ec[_0xbdbf6e(0x21c)];_0x52f334[_0xbdbf6e(0x31e)]({'width':_0x270ffc,'height':_0x4b7504});let _0x6b5b15=_0x52f334[_0xbdbf6e(0x1f9)]()[_0xbdbf6e(0x1e4)](_0x105d0d=>_0x105d0d[_0xbdbf6e(0x3f7)]===_0x1d8cde);if(!_0x6b5b15)return 0x0;let _0x351a26=_0x6b5b15['ang']/0xea60;return _0x509f28&&(_0x351a26=0xb4-_0x351a26),_0x5d99df&&(_0x351a26=-_0x351a26),_0x351a26=(_0x351a26%0x168+0x168)%0x168,_0x351a26;}[_0x291e41(0x3ff)](){const _0x872310=_0x291e41;for(let _0x283eff of this['_connectionSiteObjects'])_0x283eff[_0x872310(0x20d)]();this[_0x872310(0x36d)]=[],this[_0x872310(0x303)]=-0x1;}['dispose'](){const _0xe9cbc8=_0x291e41;this[_0xe9cbc8(0x3ff)](),super[_0xe9cbc8(0x20d)]();}};pa=X([Y(0x1,_0x5b79b4(_0x1158d5)),Y(0x2,_0x5b79b4(_0x28cffc)),Y(0x3,_0x5b79b4(_0x1e1f0c))],pa);let ma=class extends _0x557a26{constructor(_0x20fc4e,_0x4bd99d,_0x50a9f0,_0x56163b,_0x579278){const _0x2aecba=_0x291e41;super(),this[_0x2aecba(0x417)]=_0x20fc4e,this[_0x2aecba(0x383)]=_0x4bd99d,this[_0x2aecba(0x3ef)]=_0x50a9f0,this[_0x2aecba(0x2ea)]=_0x56163b,this[_0x2aecba(0x430)]=_0x579278,q(this,_0x2aecba(0x30f),void 0x0),this['_initCopyPaste'](),this[_0x2aecba(0x194)]();}get[_0x291e41(0x391)](){const _0x3743fb=_0x291e41;return this[_0x3743fb(0x3ef)][_0x3743fb(0x1f4)]();}[_0x291e41(0x194)](){const _0x12f3f9=_0x291e41;this[_0x12f3f9(0x430)]['registerFeaturePasteHook'](({fromUnitId:_0x2e3d95,fromSubUnitId:_0x3d76c2,toUnitId:_0x12d774,toSubUnitId:_0x40496f,idMap:_0x3b38de})=>{const _0x4a3abb=_0x12f3f9;let _0x36169c=[],_0x2321e1=[];for(let [_0x3361a1,_0x8606e8]of _0x3b38de[_0x4a3abb(0x384)]()){let _0xa2c221=this['_shapeService'][_0x4a3abb(0x32d)](_0x2e3d95,_0x3d76c2,_0x3361a1);if(!_0xa2c221)continue;let _0xf7ddcc=_0xa2c221[_0x4a3abb(0x2ba)](),_0x3bc1e5=JSON[_0x4a3abb(0x38d)](JSON[_0x4a3abb(0x454)](_0xa2c221['getShapeData']()));if(_0x3bc1e5[_0x4a3abb(0x2cb)]){var _0x33e7e9,_0x1587e0;let _0x4c4ca8=(_0x33e7e9=_0x3bc1e5[_0x4a3abb(0x2cb)]['from'])==null?void 0x0:_0x33e7e9[_0x4a3abb(0x416)],_0x1bd635=(_0x1587e0=_0x3bc1e5[_0x4a3abb(0x2cb)]['to'])==null?void 0x0:_0x1587e0[_0x4a3abb(0x416)],_0x528992=!_0x4c4ca8||_0x3b38de[_0x4a3abb(0x290)](_0x4c4ca8),_0x30aa23=!_0x1bd635||_0x3b38de[_0x4a3abb(0x290)](_0x1bd635);_0x528992&&_0x4c4ca8&&_0x3bc1e5[_0x4a3abb(0x2cb)][_0x4a3abb(0x354)]?_0x3bc1e5[_0x4a3abb(0x2cb)]['from']={..._0x3bc1e5['relation'][_0x4a3abb(0x354)],'shapeId':_0x3b38de['get'](_0x4c4ca8)}:_0x3bc1e5['relation'][_0x4a3abb(0x354)]=void 0x0,_0x30aa23&&_0x1bd635&&_0x3bc1e5[_0x4a3abb(0x2cb)]['to']?_0x3bc1e5[_0x4a3abb(0x2cb)]['to']={..._0x3bc1e5['relation']['to'],'shapeId':_0x3b38de[_0x4a3abb(0x42c)](_0x1bd635)}:_0x3bc1e5['relation']['to']=void 0x0;}_0x36169c[_0x4a3abb(0x1b9)]({'id':_0x456c13['id'],'params':{'unitId':_0x12d774,'subUnitId':_0x40496f,'shapeId':_0x8606e8,'shapeType':_0xf7ddcc,'shapeData':_0x3bc1e5}}),_0x2321e1[_0x4a3abb(0x1b9)]({'id':_0x5aa689['id'],'params':{'unitId':_0x12d774,'subUnitId':_0x40496f,'shapeId':_0x8606e8}});}return{'redos':_0x36169c,'undos':_0x2321e1};});}['_initCopyPaste'](){const _0x21cef1=_0x291e41;this['disposeWithMe'](this['_sheetClipboardService'][_0x21cef1(0x2e2)]({'id':_0x21cef1(0x2a2),'onBeforeCopyFocusedObject':(_0x5c12c7,_0x5135d4,_0x2bce11)=>{const _0x1b91b8=_0x21cef1;this[_0x1b91b8(0x30f)]=null;let _0x2d14e2=this[_0x1b91b8(0x391)][_0x1b91b8(0x3c0)](_0x59c47b=>_0x59c47b['drawingType']===_0x40fd85[_0x1b91b8(0x43a)]);return _0x2d14e2['length']!==0x0&&(this[_0x1b91b8(0x30f)]={'unitId':_0x5c12c7,'subUnitId':_0x5135d4,'copyType':_0x2bce11,'drawings':_0x2d14e2},!0x0);},'onBeforeCopy':(_0x2727e6,_0x5e6c9a,_0xd1e43b,_0x306a58)=>{const _0x210115=_0x21cef1;this['_copyInfo']=null,this[_0x210115(0x24a)](_0x2727e6,_0x5e6c9a,_0xd1e43b,_0x306a58);},'onPasteCells':(_0x175805,_0x2db3c9,_0x674dde,_0x2f22c7)=>{const _0x3bf63e=_0x21cef1;if(!_0x2f22c7['copyId']||!_0x175805||!this[_0x3bf63e(0x30f)])return{'redos':[],'undos':[]};let {pasteType:_0xbe8c1f}=_0x2f22c7;return _0xbe8c1f===_0x533c9a[_0x3bf63e(0x363)]?this['_generatePasteMutations'](_0x2db3c9,this['_copyInfo']['copyType']===_0x10a2b5['CUT']):{'redos':[],'undos':[]};}}));}[_0x291e41(0x24a)](_0x1492c5,_0x80850b,_0x537096,_0x5b0551){const _0x410f5b=_0x291e41;let _0x1674ef=this[_0x410f5b(0x417)][_0x410f5b(0x2d8)](_0x1492c5,_0x80850b);if(!_0x1674ef)return;let _0x3144fb=_0x170768(_0x1674ef,_0x537096);if(!_0x3144fb)return;let {startX:_0x39a6a8,endX:_0x1f0ebf,startY:_0x58ab3f,endY:_0x29ec5b}=_0x3144fb,_0x215263=this['_sheetDrawingService']['getDrawingData'](_0x1492c5,_0x80850b),_0x41e320=[];for(let [_0x51065d,_0x2c9070]of Object[_0x410f5b(0x384)](_0x215263)){if(_0x2c9070[_0x410f5b(0x209)]!==_0x40fd85[_0x410f5b(0x43a)])continue;let {transform:_0x1b9882}=_0x2c9070;if(!_0x1b9882)continue;let {left:_0x3cbfc2=0x0,top:_0x45b1e2=0x0,width:_0xee9cd=0x0,height:_0x3b7a2e=0x0}=_0x1b9882;_0x39a6a8<=_0x3cbfc2&&_0x1f0ebf>=_0x3cbfc2+_0xee9cd&&_0x58ab3f<=_0x45b1e2&&_0x29ec5b>=_0x45b1e2+_0x3b7a2e&&_0x41e320[_0x410f5b(0x1b9)](_0x2c9070);}_0x41e320[_0x410f5b(0x3c3)]>0x0&&(this['_copyInfo']={'unitId':_0x1492c5,'subUnitId':_0x80850b,'copyType':_0x5b0551,'copyRange':_0x537096,'drawings':_0x41e320});}[_0x291e41(0x2eb)](_0x3971b9,_0x9fe549){const _0x2f1676=_0x291e41;let {unitId:_0xcc8a86,subUnitId:_0x28e51b,range:_0x195682}=_0x3971b9,_0x44f616=this[_0x2f1676(0x417)][_0x2f1676(0x2d8)](_0xcc8a86,_0x28e51b);if(!_0x44f616)return{'redos':[],'undos':[]};let _0x485d26=_0x4bd816(_0x195682),{unitId:_0x584824,subUnitId:_0x11d91d,copyRange:_0x1fedae,drawings:_0x2b5653}=this['_copyInfo'],_0x39060b=this[_0x2f1676(0x417)][_0x2f1676(0x2d8)](_0x584824,_0x11d91d);if(!_0x39060b)return{'redos':[],'undos':[]};let _0x48675c;if(!_0x1fedae){let _0x1924a5=0x1/0x0,_0x354285=0x1/0x0;for(let _0x4d596a of _0x2b5653){let {left:_0x1ed33f=0x0,top:_0x1fbbcd=0x0}=_0x4d596a[_0x2f1676(0x21c)]??{};_0x1ed33f<_0x1924a5&&(_0x1924a5=_0x1ed33f),_0x1fbbcd<_0x354285&&(_0x354285=_0x1fbbcd);}_0x1924a5!==0x1/0x0&&_0x354285!==0x1/0x0&&(_0x48675c={'left':_0x1924a5,'top':_0x354285});}let _0x2bd3b8=new Map();if(!_0x9fe549){for(let _0x3df64d of _0x2b5653)_0x2bd3b8[_0x2f1676(0x28a)](_0x3df64d[_0x2f1676(0x1dd)],_0x2eff46());}let _0x41a826=[],_0x4f9d45=[];for(let _0x4b1656 of _0x2b5653){let {drawingId:_0x19419f,transform:_0x28e049,sheetTransform:_0x4ce7e7}=_0x4b1656;if(!_0x28e049||!_0x4ce7e7)continue;let _0x142940=this['_updateTransform']({'transform':_0x28e049,'sheetTransform':_0x4ce7e7},{'skeleton':_0x39060b,'range':_0x1fedae},{'skeleton':_0x44f616,'range':_0x485d26},_0x48675c);if(_0x9fe549){let {redos:_0x41756d,undos:_0x2f5a57}=this[_0x2f1676(0x22e)]({'fromUnitId':_0x584824,'fromSubUnitId':_0x11d91d,'toUnitId':_0xcc8a86,'toSubUnitId':_0x28e51b,'drawing':_0x4b1656,'newTransforms':_0x142940});_0x41a826[_0x2f1676(0x1b9)](..._0x41756d),_0x4f9d45[_0x2f1676(0x1b9)](..._0x2f5a57);continue;}let {redos:_0x365650,undos:_0x3717d0}=this[_0x2f1676(0x205)]({'toUnitId':_0xcc8a86,'toSubUnitId':_0x28e51b,'drawing':_0x4b1656,'newTransforms':_0x142940,'newDrawingId':_0x2bd3b8[_0x2f1676(0x42c)](_0x19419f),'idMap':_0x2bd3b8});_0x41a826[_0x2f1676(0x1b9)](..._0x365650),_0x4f9d45[_0x2f1676(0x1b9)](..._0x3717d0);}return{'redos':_0x41a826,'undos':_0x4f9d45};}[_0x291e41(0x22e)](_0x4e77f3){const _0x617040=_0x291e41;let {fromUnitId:_0x5736cd,fromSubUnitId:_0x5509c6,toUnitId:_0x462f1f,toSubUnitId:_0x3bfc8f,drawing:_0x25af83,newTransforms:_0x333623}=_0x4e77f3,_0x64e9c9={..._0x25af83,'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'transform':_0x333623[_0x617040(0x21c)],'sheetTransform':_0x333623[_0x617040(0x389)]};if(_0x462f1f===_0x5736cd&&_0x3bfc8f===_0x5509c6){let {redo:_0x4fdae0,undo:_0x383908,objects:_0x5d9d1f}=this['_sheetDrawingService'][_0x617040(0x411)]([_0x64e9c9]);return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x2f1)],'op':_0x4fdae0,'objects':_0x5d9d1f}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x2f1)],'op':_0x383908,'objects':_0x5d9d1f}}]};}{let _0x24dd76=this['_sheetDrawingService'][_0x617040(0x2c3)]([_0x25af83]),_0x25c3ba=this['_sheetDrawingService'][_0x617040(0x311)]([_0x64e9c9]),_0x30212c=this['_shapeService']['getShapeModel'](_0x25af83[_0x617040(0x351)],_0x25af83['subUnitId'],_0x25af83[_0x617040(0x1dd)]);if(!_0x30212c)return{'redos':[],'undos':[]};let _0x2a5a4e=_0x30212c['getShapeType'](),_0x18775b=JSON[_0x617040(0x38d)](JSON[_0x617040(0x454)](_0x30212c[_0x617040(0x2d9)]()));return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'type':_0x22a6fe['REMOVE'],'op':_0x24dd76['redo'],'objects':_0x24dd76[_0x617040(0x413)]}},{'id':_0x5aa689['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'shapeId':_0x25af83['drawingId']}},{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe[_0x617040(0x347)],'op':_0x25c3ba[_0x617040(0x34d)],'objects':_0x25c3ba[_0x617040(0x413)]}},{'id':_0x456c13['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'shapeId':_0x25af83[_0x617040(0x1dd)],'shapeType':_0x2a5a4e,'shapeData':_0x18775b}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'type':_0x22a6fe[_0x617040(0x347)],'op':_0x24dd76[_0x617040(0x3a5)],'objects':_0x24dd76[_0x617040(0x413)]}},{'id':_0x456c13['id'],'params':{'unitId':_0x5736cd,'subUnitId':_0x5509c6,'shapeId':_0x25af83[_0x617040(0x1dd)],'shapeType':_0x2a5a4e,'shapeData':_0x18775b}},{'id':_0x2db9e2['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'type':_0x22a6fe['REMOVE'],'op':_0x25c3ba['undo'],'objects':_0x25c3ba[_0x617040(0x413)]}},{'id':_0x5aa689['id'],'params':{'unitId':_0x462f1f,'subUnitId':_0x3bfc8f,'shapeId':_0x25af83['drawingId']}}]};}}[_0x291e41(0x205)](_0x10c2d1){const _0x5d43c9=_0x291e41;let {toUnitId:_0x5ad5f5,toSubUnitId:_0x77c7a1,drawing:_0x1720a0,newTransforms:_0xb665df,newDrawingId:_0x3cf21c,idMap:_0x14f86}=_0x10c2d1,_0xb1e77a={..._0x1720a0,'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'drawingId':_0x3cf21c,'transform':_0xb665df[_0x5d43c9(0x21c)],'sheetTransform':_0xb665df[_0x5d43c9(0x389)]},{redo:_0x2feb7e,undo:_0x31a34a,objects:_0x42df5c}=this[_0x5d43c9(0x3ef)][_0x5d43c9(0x311)]([_0xb1e77a]),_0x5360b5=this[_0x5d43c9(0x2ea)][_0x5d43c9(0x32d)](_0x1720a0[_0x5d43c9(0x351)],_0x1720a0[_0x5d43c9(0x21b)],_0x1720a0[_0x5d43c9(0x1dd)]);if(!_0x5360b5)return{'redos':[],'undos':[]};let _0x55b417=_0x5360b5[_0x5d43c9(0x2ba)](),_0x4250f2=JSON[_0x5d43c9(0x38d)](JSON['stringify'](_0x5360b5[_0x5d43c9(0x2d9)]()));if(_0x4250f2[_0x5d43c9(0x2cb)]){var _0x24aa5,_0x47bd45;let _0x5b5d5b=(_0x24aa5=_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)])==null?void 0x0:_0x24aa5['shapeId'],_0x1a2977=(_0x47bd45=_0x4250f2['relation']['to'])==null?void 0x0:_0x47bd45[_0x5d43c9(0x416)],_0x49697c=!_0x5b5d5b||_0x14f86[_0x5d43c9(0x290)](_0x5b5d5b),_0x337081=!_0x1a2977||_0x14f86[_0x5d43c9(0x290)](_0x1a2977);_0x49697c&&_0x5b5d5b&&_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)]?_0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)]={..._0x4250f2[_0x5d43c9(0x2cb)][_0x5d43c9(0x354)],'shapeId':_0x14f86[_0x5d43c9(0x42c)](_0x5b5d5b)}:_0x4250f2['relation'][_0x5d43c9(0x354)]=void 0x0,_0x337081&&_0x1a2977&&_0x4250f2['relation']['to']?_0x4250f2['relation']['to']={..._0x4250f2[_0x5d43c9(0x2cb)]['to'],'shapeId':_0x14f86[_0x5d43c9(0x42c)](_0x1a2977)}:_0x4250f2[_0x5d43c9(0x2cb)]['to']=void 0x0;}return{'redos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'type':_0x22a6fe[_0x5d43c9(0x347)],'op':_0x2feb7e,'objects':_0x42df5c}},{'id':_0x456c13['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'shapeId':_0x3cf21c,'shapeType':_0x55b417,'shapeData':_0x4250f2}}],'undos':[{'id':_0x2db9e2['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'type':_0x22a6fe[_0x5d43c9(0x427)],'op':_0x31a34a,'objects':_0x42df5c}},{'id':_0x5aa689['id'],'params':{'unitId':_0x5ad5f5,'subUnitId':_0x77c7a1,'shapeId':_0x3cf21c}}]};}['_updateTransform'](_0x2c430d,_0x2075c7,_0x4b22e9,_0x249e95){const _0x136873=_0x291e41;let {range:_0x471379,skeleton:_0x44bc86}=_0x2075c7,{range:_0x22bf7b,skeleton:_0x221f30}=_0x4b22e9,{transform:_0x3cca53,sheetTransform:_0x2fd033}=_0x2c430d,_0x56005f={..._0x3cca53};if(_0x471379){let _0x5c0906=_0x170768(_0x44bc86,_0x471379),_0x40d77b=_0x170768(_0x221f30,_0x22bf7b);if(_0x5c0906&&_0x40d77b){let _0x2dc236=_0x40d77b[_0x136873(0x266)]-_0x5c0906[_0x136873(0x266)],_0x250ce9=_0x40d77b[_0x136873(0x2be)]-_0x5c0906['startY'];_0x56005f['left']=(_0x56005f[_0x136873(0x337)]??0x0)+_0x2dc236,_0x56005f['top']=(_0x56005f[_0x136873(0x3cf)]??0x0)+_0x250ce9;}}else{let _0x142cd4=_0x170768(_0x221f30,_0x22bf7b);if(_0x249e95&&_0x142cd4){let _0x403dc8=(_0x56005f[_0x136873(0x337)]??0x0)-_0x249e95[_0x136873(0x337)],_0x5c7fa4=(_0x56005f['top']??0x0)-_0x249e95[_0x136873(0x3cf)];_0x56005f['left']=_0x142cd4[_0x136873(0x266)]+_0x403dc8,_0x56005f[_0x136873(0x3cf)]=_0x142cd4[_0x136873(0x2be)]+_0x5c7fa4;}else _0x56005f[_0x136873(0x337)]=_0x142cd4==null?void 0x0:_0x142cd4[_0x136873(0x266)],_0x56005f[_0x136873(0x3cf)]=_0x142cd4==null?void 0x0:_0x142cd4[_0x136873(0x2be)];}return{'transform':_0x56005f,'sheetTransform':_0x4f36ef(_0x56005f,_0x221f30)??_0x2fd033};}};ma=X([Y(0x0,_0x5b79b4(_0x4f7695)),Y(0x1,_0x5b79b4(_0xa7e024)),Y(0x2,_0x5b79b4(_0x17b29e)),Y(0x3,_0x5b79b4(_0x1e1f0c)),Y(0x4,_0x5b79b4(_0x2c59b9))],ma);var ha=class extends _0x156eef{constructor(_0x36667f,_0x572b59){const _0x44ebcb=_0x291e41;super(_0x36667f,_0x572b59),q(this,'_shapeId',null),q(this,'_index',null),q(this,_0x44ebcb(0x32f),null),q(this,'_subUnitId',null),q(this,_0x44ebcb(0x264),!0x1),_0x572b59&&this[_0x44ebcb(0x32c)](_0x572b59);}['getDrawingSearch'](){const _0x3b36a5=_0x291e41;return{'unitId':this['_unitId'],'subUnitId':this[_0x3b36a5(0x1df)],'drawingId':this[_0x3b36a5(0x1db)]};}['setShapeProps'](_0x375ff2){const _0xe3936f=_0x291e41;_0x375ff2[_0xe3936f(0x416)]!==void 0x0&&(this[_0xe3936f(0x1db)]=_0x375ff2[_0xe3936f(0x416)]),_0x375ff2[_0xe3936f(0x351)]!==void 0x0&&(this['_unitId']=_0x375ff2[_0xe3936f(0x351)]),_0x375ff2['subUnitId']!==void 0x0&&(this[_0xe3936f(0x1df)]=_0x375ff2[_0xe3936f(0x21b)]),_0x375ff2['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x375ff2['isStartConnectorPoint']),this[_0xe3936f(0x220)]({'width':_0x375ff2[_0xe3936f(0x45d)],'height':_0x375ff2[_0xe3936f(0x257)]});}['_draw'](_0x3d17dd){const _0x73d205=_0x291e41;_0x49536a[_0x73d205(0x38a)](_0x3d17dd,{'radius':_0x179988[_0x73d205(0x2ed)],'fill':_0x179988[_0x73d205(0x33c)],'stroke':_0x179988['cxnPointStroke'],'strokeWidth':_0x179988['cxnPointStrokeWidth'],'evented':!0x0});}};let ga=class extends _0x557a26{constructor(_0x24dbd0,_0x929d93,_0x3ad399,_0x37ee2b,_0x38950a,_0x609f5b,_0x59b8c0,_0x14df85){const _0xcd28d4=_0x291e41;super(),this[_0xcd28d4(0x343)]=_0x24dbd0,this[_0xcd28d4(0x199)]=_0x929d93,this[_0xcd28d4(0x449)]=_0x3ad399,this[_0xcd28d4(0x346)]=_0x37ee2b,this['_univerInstanceService']=_0x38950a,this[_0xcd28d4(0x408)]=_0x609f5b,this[_0xcd28d4(0x1e3)]=_0x59b8c0,this['_sheetBasicShapeConnectionPointController']=_0x14df85,q(this,_0xcd28d4(0x41e),void 0x0),q(this,_0xcd28d4(0x32f),void 0x0),q(this,_0xcd28d4(0x1df),void 0x0),q(this,_0xcd28d4(0x1ad),[]),q(this,_0xcd28d4(0x40c),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0xcd28d4(0x22f),void 0x0),q(this,_0xcd28d4(0x1d6),!0x1),q(this,'_isDrawingShapePointDown',!0x1),q(this,_0xcd28d4(0x229),!0x1),q(this,_0xcd28d4(0x344),void 0x0),q(this,_0xcd28d4(0x380),void 0x0),q(this,_0xcd28d4(0x211),null),this[_0xcd28d4(0x2aa)]();}[_0x291e41(0x2aa)](){const _0x24b371=_0x291e41;this[_0x24b371(0x3f4)](),this[_0x24b371(0x1d0)]();}[_0x291e41(0x2ca)](){const _0x33b8ef=_0x291e41;if(!this[_0x33b8ef(0x32f)]||!this[_0x33b8ef(0x1df)]||!this[_0x33b8ef(0x41e)])return;let _0x59f473={'unitId':this['_unitId'],'subUnitId':this[_0x33b8ef(0x1df)],'drawingId':this['_activeShapeId']},{transform:_0xc89295}=this['_drawingManagerService'][_0x33b8ef(0x312)](_0x59f473);if(_0xc89295)return{'left':_0xc89295['left']||0x0,'top':_0xc89295[_0x33b8ef(0x3cf)]||0x0,'width':_0xc89295[_0x33b8ef(0x45d)]||0x0,'height':_0xc89295[_0x33b8ef(0x257)]||0x0,'flipX':_0xc89295[_0x33b8ef(0x26b)]||!0x1,'flipY':_0xc89295[_0x33b8ef(0x1d2)]||!0x1,'angle':_0xc89295[_0x33b8ef(0x2a0)]};}['_addShapeConnectorHandlerObjects'](){const _0x47d8ed=_0x291e41;if(this[_0x47d8ed(0x32f)]===void 0x0||this[_0x47d8ed(0x1df)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x2c33b2=this[_0x47d8ed(0x449)]['getRenderUnitById'](this[_0x47d8ed(0x32f)]);if(!_0x2c33b2||!_0x2c33b2[_0x47d8ed(0x401)](_0x5635f6)[_0x47d8ed(0x1e9)]())return;let {scene:_0x11fafc}=_0x2c33b2,_0x24df73=this[_0x47d8ed(0x2ca)]();if(!_0x24df73)return;let _0x4681b7=this['_sheetsShapeService'][_0x47d8ed(0x32d)](this['_unitId'],this[_0x47d8ed(0x1df)],this[_0x47d8ed(0x41e)]);if(!_0x4681b7||!_0x5184c7(_0x4681b7[_0x47d8ed(0x2ba)]()))return;let _0x67e5bb=_0x4681b7[_0x47d8ed(0x20b)]();if(_0x67e5bb['length']<0x2)return;let _0x14385f=new _0x57b6f7(_0x24df73),_0x15d393=_0x67e5bb[0x0],_0x53ae05=_0x67e5bb[_0x67e5bb[_0x47d8ed(0x3c3)]-0x1],_0x53f026=_0x14385f[_0x47d8ed(0x404)](_0x15d393),_0x4f4997=_0x14385f[_0x47d8ed(0x404)](_0x53ae05);this[_0x47d8ed(0x42a)](_0x11fafc,{..._0x53f026},!0x0),this['_addShapeConnectorHandlerObject'](_0x11fafc,{..._0x4f4997},!0x1);}[_0x291e41(0x42a)](_0x3e6fa9,_0x363c65,_0x43e42c){const _0x3b4ad3=_0x291e41;if(this[_0x3b4ad3(0x41e)]===void 0x0||this[_0x3b4ad3(0x32f)]===void 0x0||this['_subUnitId']===void 0x0)return;let _0x783f32='connector-handler-'+this['_unitId']+'-'+this[_0x3b4ad3(0x1df)]+'-'+this[_0x3b4ad3(0x41e)]+'-'+(_0x43e42c?_0x3b4ad3(0x330):_0x3b4ad3(0x3cc)),_0x359236=_0x3e6fa9[_0x3b4ad3(0x292)](_0x783f32);if(_0x359236){_0x359236[_0x3b4ad3(0x220)]({'left':_0x363c65['x']-_0x179988[_0x3b4ad3(0x2ed)],'top':_0x363c65['y']-_0x179988['cxnPointRadius']});return;}let _0x5dfe41=new ha(_0x783f32,{'left':_0x363c65['x']-_0x179988[_0x3b4ad3(0x2ed)],'top':_0x363c65['y']-_0x179988['cxnPointRadius'],'shapeId':this[_0x3b4ad3(0x41e)],'unitId':this[_0x3b4ad3(0x32f)],'subUnitId':this[_0x3b4ad3(0x1df)],'isStartConnectorPoint':_0x43e42c,'width':_0x179988['cxnPointRadius']*0x2,'height':_0x179988['cxnPointRadius']*0x2,'zIndex':_0x10b13b+0x1,'evented':!0x0});this[_0x3b4ad3(0x1ad)][_0x3b4ad3(0x1b9)](_0x5dfe41),this[_0x3b4ad3(0x222)](_0x5dfe41,_0x3e6fa9,_0x43e42c),_0x3e6fa9[_0x3b4ad3(0x35b)](_0x5dfe41,_0x10b13b+0x1);}[_0x291e41(0x436)](_0xd4412d,_0x106b8a){const _0x57e5ed=_0x291e41;var _0x1c937b;let _0x1e2b2a={'x':0x0,'y':0x0};if(!_0xd4412d||!_0x106b8a)return _0x1e2b2a;let _0x2d2557=this[_0x57e5ed(0x449)][_0x57e5ed(0x3a7)](_0xd4412d);if(!_0x2d2557||!_0x2d2557[_0x57e5ed(0x401)](_0x5635f6)[_0x57e5ed(0x2d8)](_0x106b8a))return _0x1e2b2a;let _0x49254b=_0x2d2557['with'](_0xbd2a68),_0x88f8ca=_0x49254b==null?void 0x0:_0x49254b[_0x57e5ed(0x212)]();if(!_0x88f8ca)return _0x1e2b2a;let _0x51b281=(_0x1c937b=this['_univerInstanceService'][_0x57e5ed(0x208)](_0xd4412d))==null?void 0x0:_0x1c937b['getSheetBySheetId'](_0x106b8a);if(!_0x51b281)return _0x1e2b2a;let _0x5cf396=_0x53677b(_0x88f8ca[_0x57e5ed(0x38c)],_0x88f8ca[_0x57e5ed(0x457)],_0x2d2557[_0x57e5ed(0x1f2)],_0x51b281);return _0x5cf396?{'x':_0x5cf396[_0x57e5ed(0x1cf)],'y':_0x5cf396[_0x57e5ed(0x3ea)]}:_0x1e2b2a;}[_0x291e41(0x245)](_0x4393d0,_0x53db08){const _0x4b764a=_0x291e41;var _0x4d0ef;let _0x62e7e3=(_0x4d0ef=this[_0x4b764a(0x394)][_0x4b764a(0x208)](_0x4393d0))==null?void 0x0:_0x4d0ef[_0x4b764a(0x2d1)](_0x53db08);return(_0x62e7e3==null?void 0x0:_0x62e7e3[_0x4b764a(0x3eb)]())??0x1;}[_0x291e41(0x2b3)](_0x6feae3,_0x1aac06,_0xe250d2,_0x1b7ce9,_0x321904){const _0x33dbed=_0x291e41;this[_0x33dbed(0x344)][_0x33dbed(0x34c)](),this[_0x33dbed(0x380)]['unsubscribe'](),this[_0x33dbed(0x1e3)][_0x33dbed(0x2b0)]();let _0x275ed6=this['_currentConnectionTarget'];this['_sheetBasicShapeConnectionPointController'][_0x33dbed(0x402)]();let _0x15b65e=this[_0x33dbed(0x436)](this[_0x33dbed(0x32f)],this['_subUnitId']),_0x393de5=this[_0x33dbed(0x245)](this[_0x33dbed(0x32f)],this[_0x33dbed(0x1df)]),_0xb9be11={'x':_0xe250d2[_0x33dbed(0x36f)]/_0x393de5+_0x15b65e['x'],'y':_0xe250d2[_0x33dbed(0x3b9)]/_0x393de5+_0x15b65e['y']},_0x3f6b6c=_0x275ed6?_0x275ed6['worldPoint']:_0xb9be11,_0x3546af=_0x1b7ce9?this[_0x33dbed(0x22f)]['getEndConnectInfo']():this[_0x33dbed(0x22f)][_0x33dbed(0x309)](),_0x12f93f=this[_0x33dbed(0x22f)][_0x33dbed(0x2ba)]();_0x3546af?this[_0x33dbed(0x3cb)](_0x3546af,_0x3f6b6c,_0x1b7ce9,_0x275ed6,_0x321904):this[_0x33dbed(0x289)](_0x1aac06,_0x3f6b6c,_0x1b7ce9,_0x275ed6,_0x321904,_0x12f93f),this[_0x33dbed(0x1d6)]=!0x1,this['_hasReset']=!0x1,this[_0x33dbed(0x211)]=null,_0x6feae3[_0x33dbed(0x1ef)]();}[_0x291e41(0x289)](_0x32c717,_0x421434,_0x54cf8f,_0x481af2,_0x4ce6f8,_0x2d3018){const _0x52f272=_0x291e41;let _0xa1d7e3=_0x2d3018===_0x206995[_0x52f272(0x34b)]||_0x2d3018===_0x206995[_0x52f272(0x348)],_0x295a40=_0x54cf8f?_0x421434:_0x32c717,_0x1c0c2a=_0x54cf8f?_0x32c717:_0x421434,_0x20e0da=this[_0x52f272(0x22f)][_0x52f272(0x20b)](),_0x5459eb=this[_0x52f272(0x22f)][_0x52f272(0x2ba)](),_0x34658a=_0x1105e7(_0x5459eb),_0x1e4d7a=_0x57b6f7[_0x52f272(0x38e)](_0x20e0da,_0x34658a),_0x32204a=_0xa1d7e3?_0x57b6f7[_0x52f272(0x37b)](_0x295a40,_0x1c0c2a):_0x57b6f7['computeConnectorResizeLayout'](_0x32c717,_0x421434,_0x54cf8f,_0x1e4d7a);_0x481af2?this['_executeConnectionCommand'](_0x32204a,_0x481af2,_0x54cf8f,_0x4ce6f8):this[_0x52f272(0x2e0)](_0x32204a,_0x4ce6f8);}[_0x291e41(0x3cb)](_0x2830d2,_0x7d6b2b,_0x14f402,_0x47312d,_0x15b6f2){const _0x135152=_0x291e41;let _0x17c70d=this['_getConnectPointInfo'](_0x2830d2);if(!_0x17c70d)return;let _0x19288b=_0x47312d?_0x47312d[_0x135152(0x2a0)]:this['_calculateFreeEndpointAngle'](_0x17c70d['point'],_0x7d6b2b),_0x722bcd;if(_0x47312d){let _0x2c66da=this[_0x135152(0x346)]['getDrawingByParam']({'unitId':_0x47312d['unitId'],'subUnitId':_0x47312d[_0x135152(0x21b)],'drawingId':_0x47312d[_0x135152(0x416)]});if(_0x2c66da!=null&&_0x2c66da[_0x135152(0x21c)]){let {left:_0x3abaf7=0x0,top:_0x2013dd=0x0,width:_0x3e7da8=0x0,height:_0xae495a=0x0,angle:_0xc58e5a}=_0x2c66da[_0x135152(0x21c)];_0x722bcd=_0x1eb82f({'left':_0x3abaf7,'top':_0x2013dd,'width':_0x3e7da8,'height':_0xae495a},_0xc58e5a||0x0);}else _0x722bcd={'left':_0x7d6b2b['x'],'top':_0x7d6b2b['y'],'width':0x0,'height':0x0};}else _0x722bcd={'left':_0x7d6b2b['x'],'top':_0x7d6b2b['y'],'width':0x0,'height':0x0};let _0x5d95d3={'point':_0x7d6b2b,'angle':_0x19288b,'bounds':_0x722bcd},_0xc28a33=_0x14f402?_0x5d95d3:_0x17c70d,_0x4e19d8=_0x14f402?_0x17c70d:_0x5d95d3,_0x243eee=this[_0x135152(0x22f)][_0x135152(0x2ba)](),_0xb73a27=_0xf06aa3(_0xc28a33,_0x4e19d8,_0x243eee);this[_0x135152(0x22f)][_0x135152(0x2b2)]();let _0x3564fb=_0x485b2f(_0xb73a27,_0x243eee);_0x47312d?this[_0x135152(0x1c7)](_0x3564fb,_0x47312d,_0x2830d2,_0x14f402,_0x15b6f2):this['_executeConnectedRouteResizeCommand'](_0x3564fb,_0x2830d2,_0x14f402,_0x15b6f2);}[_0x291e41(0x2bc)](_0x3109e3,_0x3790cf,_0x4575ab,_0x3f7193){const _0x2581cd=_0x291e41;let _0x4613b2=this['_activeShapeModel'][_0x2581cd(0x2d9)]()[_0x2581cd(0x2cb)],_0x16d737={..._0x4613b2},_0x2bd669={'shapeId':_0x3790cf[_0x2581cd(0x416)],'cxnIndex':_0x3790cf[_0x2581cd(0x239)]};_0x4575ab?_0x16d737['from']=_0x2bd669:_0x16d737['to']=_0x2bd669;let _0x2395b0=this[_0x2581cd(0x22f)]['getShapeType'](),_0x42b817=_0x485b2f(_0x3109e3[_0x2581cd(0x45f)],_0x2395b0),_0x118a26={'unitId':this['_unitId'],'subUnitId':this[_0x2581cd(0x1df)],'connectorShapeId':this['_activeShapeId'],'width':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x45d)],'height':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x257)],'left':_0x3109e3[_0x2581cd(0x26f)]['left'],'top':_0x3109e3['worldRect'][_0x2581cd(0x3cf)],'flipX':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x26b)]||!0x1,'flipY':_0x3109e3[_0x2581cd(0x26f)][_0x2581cd(0x1d2)]||!0x1,'newAdjustValues':_0x42b817['adjustValues'],'oldAdjustValues':_0x3f7193,'oldRelation':_0x4613b2,'newRelation':_0x16d737,'newLineType':_0x42b817[_0x2581cd(0x345)],'oldLineType':_0x2395b0};this[_0x2581cd(0x199)][_0x2581cd(0x2e1)](_0x54081a['id'],_0x118a26);}['_executeResizeCommand'](_0x30c35b,_0x39d99a){const _0x204d2c=_0x291e41;let _0x1a3884=this[_0x204d2c(0x22f)]['getShapeType'](),_0x583863=_0x485b2f(_0x30c35b[_0x204d2c(0x45f)],_0x1a3884),_0x23acf0={'unitId':this[_0x204d2c(0x32f)],'subUnitId':this[_0x204d2c(0x1df)],'shapeId':this[_0x204d2c(0x41e)],'width':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x45d)],'height':_0x30c35b['worldRect'][_0x204d2c(0x257)],'left':_0x30c35b[_0x204d2c(0x26f)]['left'],'top':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x3cf)],'flipX':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x26b)]||!0x1,'flipY':_0x30c35b[_0x204d2c(0x26f)]['flipY']||!0x1,'angle':_0x30c35b[_0x204d2c(0x26f)][_0x204d2c(0x2a0)]||0x0,'newAdjustValues':_0x583863[_0x204d2c(0x342)],'oldAdjustValues':_0x39d99a,'newLineType':_0x583863[_0x204d2c(0x345)],'oldLineType':_0x1a3884};this[_0x204d2c(0x199)][_0x204d2c(0x2e1)](_0x9d6709['id'],_0x23acf0);}['_executeConnectedRouteConnectionCommand'](_0x4673f2,_0x54c525,_0x1a4992,_0x4d8ca8,_0x2696b6){const _0x817513=_0x291e41;let _0x393c68=this['_activeShapeModel'][_0x817513(0x2d9)]()[_0x817513(0x2cb)],_0x48272c={..._0x393c68},_0xff41b7={'shapeId':_0x54c525[_0x817513(0x416)],'cxnIndex':_0x54c525[_0x817513(0x239)]};_0x4d8ca8?(_0x48272c['from']=_0xff41b7,_0x48272c['to']=_0x1a4992):(_0x48272c[_0x817513(0x354)]=_0x1a4992,_0x48272c['to']=_0xff41b7);let _0x5ea7be={'unitId':this[_0x817513(0x32f)],'subUnitId':this[_0x817513(0x1df)],'connectorShapeId':this[_0x817513(0x41e)],'width':_0x4673f2['worldRect'][_0x817513(0x45d)],'height':_0x4673f2[_0x817513(0x26f)][_0x817513(0x257)],'left':_0x4673f2[_0x817513(0x26f)]['left'],'top':_0x4673f2['worldRect'][_0x817513(0x3cf)],'flipX':_0x4673f2[_0x817513(0x26f)][_0x817513(0x26b)]||!0x1,'flipY':_0x4673f2['worldRect'][_0x817513(0x1d2)]||!0x1,'oldAdjustValues':_0x2696b6,'newAdjustValues':_0x4673f2[_0x817513(0x342)],'newLineType':_0x4673f2[_0x817513(0x345)],'rotation':_0x4673f2['rotation'],'oldRelation':_0x393c68,'newRelation':_0x48272c};this['_commandService'][_0x817513(0x2e1)](_0x54081a['id'],_0x5ea7be);}[_0x291e41(0x2f9)](_0x301bdd,_0x134c22,_0x153b66,_0x595412){const _0x4c2fef=_0x291e41;let _0x170a6b=this[_0x4c2fef(0x22f)][_0x4c2fef(0x2d9)]()['relation'],_0x1bca1c={};_0x153b66?(_0x1bca1c['to']=_0x134c22,_0x1bca1c[_0x4c2fef(0x354)]=void 0x0):(_0x1bca1c[_0x4c2fef(0x354)]=_0x134c22,_0x1bca1c['to']=void 0x0);let _0x1345ef={'unitId':this[_0x4c2fef(0x32f)],'subUnitId':this[_0x4c2fef(0x1df)],'connectorShapeId':this[_0x4c2fef(0x41e)],'width':_0x301bdd['worldRect'][_0x4c2fef(0x45d)],'height':_0x301bdd['worldRect'][_0x4c2fef(0x257)],'left':_0x301bdd[_0x4c2fef(0x26f)]['left'],'top':_0x301bdd[_0x4c2fef(0x26f)][_0x4c2fef(0x3cf)],'flipX':_0x301bdd['worldRect']['flipX']||!0x1,'flipY':_0x301bdd[_0x4c2fef(0x26f)][_0x4c2fef(0x1d2)]||!0x1,'oldAdjustValues':_0x595412,'newAdjustValues':_0x301bdd['adjustValues'],'newLineType':_0x301bdd[_0x4c2fef(0x345)],'rotation':_0x301bdd[_0x4c2fef(0x44a)],'oldRelation':_0x170a6b,'newRelation':_0x1bca1c};this['_commandService'][_0x4c2fef(0x2e1)](_0x54081a['id'],_0x1345ef);}['_attachConnectorObjectEvent'](_0x3d41b9,_0x255770,_0x3cf8aa){const _0x45640d=_0x291e41;this[_0x45640d(0x432)](_0x53ca46(_0x3d41b9[_0x45640d(0x1e7)]['subscribeEvent']((_0x3dea8c,_0x5467ad)=>{const _0x462b13=_0x45640d;let _0xd4f949=_0x3d41b9['getDrawingSearch']();if(this['_activeShapeModel']=this[_0x462b13(0x408)][_0x462b13(0x32d)](_0xd4f949[_0x462b13(0x351)],_0xd4f949[_0x462b13(0x21b)],_0xd4f949[_0x462b13(0x1dd)]),!this['_activeShapeModel'])return;let _0x418caf={};this[_0x462b13(0x22f)][_0x462b13(0x36e)]()['forEach'](_0x3da3c1=>{const _0x3569a7=_0x462b13;let _0x126576=this['_activeShapeModel'][_0x3569a7(0x1c9)](_0x3da3c1);_0x126576!==void 0x0&&(_0x418caf[_0x3da3c1]=_0x126576);});let _0x33f132=this[_0x462b13(0x2ca)]();if(!_0x33f132)return;this[_0x462b13(0x40c)]={..._0x33f132};let _0x3ae506=new _0x57b6f7(this[_0x462b13(0x40c)]),_0x4af571=_0x38d621({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x462b13(0x41e)]}),_0x27c81a=_0x255770[_0x462b13(0x292)](_0x4af571);this[_0x462b13(0x1d6)]=!0x0,_0x255770['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x255770,this['_unitId'],this[_0x462b13(0x1df)],this[_0x462b13(0x41e)]),this[_0x462b13(0x211)]=null;let _0x46d805=this[_0x462b13(0x22f)]['getConnectorLinePoints'](),_0x21904c=_0x46d805[0x0],_0x346f35=_0x46d805[_0x46d805[_0x462b13(0x3c3)]-0x1],_0x496529=_0x3cf8aa?_0x3ae506[_0x462b13(0x404)](_0x346f35):_0x3ae506[_0x462b13(0x404)](_0x21904c);this[_0x462b13(0x344)]=_0x255770[_0x462b13(0x349)][_0x462b13(0x1a9)]((_0x1328fc,_0x9527ff)=>{const _0x53040e=_0x462b13;if(!this[_0x53040e(0x1d6)]||!this[_0x53040e(0x22f)])return;this[_0x53040e(0x229)]||=(this['_sheetShapeAdjustController'][_0x53040e(0x228)](),this[_0x53040e(0x22f)][_0x53040e(0x2a9)](),!0x0);let _0x4d4e87=this[_0x53040e(0x436)](this[_0x53040e(0x32f)],this[_0x53040e(0x1df)]),_0x296967=this[_0x53040e(0x245)](this[_0x53040e(0x32f)],this['_subUnitId']),_0x11e29e={'x':_0x1328fc[_0x53040e(0x36f)]/_0x296967+_0x4d4e87['x'],'y':_0x1328fc[_0x53040e(0x3b9)]/_0x296967+_0x4d4e87['y']},_0x1dfeef=this[_0x53040e(0x429)]['updateConnectionDetection'](_0x11e29e);if(_0x1dfeef){let {shapeId:_0x11a11f,unitId:_0x5f570d,subUnitId:_0x56f292}=_0x1dfeef;if(_0x11a11f&&_0x5f570d&&_0x56f292){let _0x2687a5=_0x38d621({'unitId':_0x5f570d,'subUnitId':_0x56f292,'drawingId':_0x11a11f});_0x1dfeef[_0x53040e(0x2a0)]=(_0x255770['getObjectIncludeInGroup'](_0x2687a5)['angle']||0x0)+_0x1dfeef[_0x53040e(0x2a0)];}}this[_0x53040e(0x211)]=_0x1dfeef;let _0x146b77=_0x3cf8aa?this['_activeShapeModel'][_0x53040e(0x386)]():this[_0x53040e(0x22f)][_0x53040e(0x309)]();_0x146b77?this['_handleConnectedEndpointMove'](_0x146b77,_0x11e29e,_0x3cf8aa,_0x27c81a,_0x3d41b9):this['_handleFreeEndpointMove'](_0x11e29e,_0x496529,_0x3cf8aa,_0x27c81a,_0x3d41b9);}),this[_0x462b13(0x380)]=_0x255770[_0x462b13(0x274)][_0x462b13(0x1a9)]((_0x3983eb,_0x37099f)=>{const _0x47e477=_0x462b13;this[_0x47e477(0x2b3)](_0x255770,_0x496529,_0x3983eb,_0x3cf8aa,_0x418caf);}),_0x5467ad[_0x462b13(0x2a5)]();})));}[_0x291e41(0x381)](_0x5d4c80,_0x5dfd66,_0x243082){const _0x49907a=_0x291e41;let _0x218757=this['_sheetsShapeService'][_0x49907a(0x33a)](_0x5d4c80,_0x5dfd66,_0x243082);if(!_0x218757||_0x218757[_0x49907a(0x3c3)]===0x0)return;let _0x11ce84=this[_0x49907a(0x449)][_0x49907a(0x3a7)](_0x5d4c80);if(!_0x11ce84)return;let {scene:_0x285d7d}=_0x11ce84;for(let _0x3c9e6f of _0x218757){let _0x466cd0=_0x3c9e6f['lineShapeId'],_0x584aa7=this[_0x49907a(0x408)][_0x49907a(0x32d)](_0x5d4c80,_0x5dfd66,_0x466cd0);if(!_0x584aa7)continue;let _0x3a730c=_0x584aa7[_0x49907a(0x309)](),_0x58727e=_0x584aa7[_0x49907a(0x386)](),_0x45b7aa=(_0x3a730c==null?void 0x0:_0x3a730c['shapeId'])===_0x243082,_0x14d24c=_0x38d621({'unitId':_0x5d4c80,'subUnitId':_0x5dfd66,'drawingId':_0x466cd0}),_0x3fda81=_0x285d7d[_0x49907a(0x292)](_0x14d24c);if(!_0x3fda81)continue;let _0x104e35=this[_0x49907a(0x346)][_0x49907a(0x312)]({'unitId':_0x5d4c80,'subUnitId':_0x5dfd66,'drawingId':_0x466cd0});_0x104e35!=null&&_0x104e35[_0x49907a(0x21c)]&&(_0x3a730c&&_0x58727e?this[_0x49907a(0x20a)](_0x5d4c80,_0x5dfd66,_0x466cd0,_0x584aa7,_0x3a730c,_0x58727e,_0x3fda81):this[_0x49907a(0x3be)](_0x5d4c80,_0x5dfd66,_0x466cd0,_0x584aa7,_0x45b7aa?_0x3a730c:_0x58727e,_0x45b7aa,_0x104e35,_0x3fda81));}}['_rerouteConnectorLine'](_0x2098af,_0x1f47cd,_0x5ab562,_0x14404b,_0x144ef8,_0x2a9b6f,_0x33c214){const _0x488b8a=_0x291e41;let _0x1b30b1=this['_unitId'],_0x6d9824=this[_0x488b8a(0x1df)];this[_0x488b8a(0x32f)]=_0x2098af,this[_0x488b8a(0x1df)]=_0x1f47cd;let _0x601c4=this[_0x488b8a(0x224)](_0x144ef8),_0x2e32e9=this[_0x488b8a(0x224)](_0x2a9b6f);if(this[_0x488b8a(0x32f)]=_0x1b30b1,this[_0x488b8a(0x1df)]=_0x6d9824,!_0x601c4||!_0x2e32e9)return;let _0x255427=_0x14404b['getShapeType'](),_0x3b1f48=_0xf06aa3(_0x601c4,_0x2e32e9,_0x255427);_0x3b1f48&&_0x14404b[_0x488b8a(0x247)](_0x3b1f48);let _0x3af657=_0x485b2f(_0x3b1f48,_0x255427);_0x3af657[_0x488b8a(0x345)]!==_0x255427&&_0x14404b[_0x488b8a(0x44c)](_0x3af657[_0x488b8a(0x345)]),_0x14404b[_0x488b8a(0x2a9)]();for(let [_0x48388b,_0x20c301]of Object[_0x488b8a(0x384)](_0x3af657[_0x488b8a(0x342)]))_0x14404b['setAdjustValueByName'](_0x48388b,_0x20c301);_0x14404b['updateContext']({'width':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x45d)],'height':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x257)]}),_0x33c214[_0x488b8a(0x220)]({'flipX':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x26b)],'flipY':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x1d2)],'left':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x337)],'top':_0x3af657['worldRect']['top'],'width':_0x3af657[_0x488b8a(0x26f)]['width'],'height':_0x3af657[_0x488b8a(0x26f)][_0x488b8a(0x257)],'angle':_0x3af657[_0x488b8a(0x44a)]}),_0x14404b[_0x488b8a(0x2b2)]();}[_0x291e41(0x3be)](_0x508731,_0x10cb50,_0x1a95f1,_0x20da4e,_0x590fd1,_0xa3978c,_0x1eba7d,_0x40223d){const _0x1fdd62=_0x291e41;let _0x28940a=this['_unitId'],_0x51e142=this[_0x1fdd62(0x1df)];this['_unitId']=_0x508731,this[_0x1fdd62(0x1df)]=_0x10cb50;let _0x5ed557=this[_0x1fdd62(0x224)](_0x590fd1);if(this[_0x1fdd62(0x32f)]=_0x28940a,this[_0x1fdd62(0x1df)]=_0x51e142,!_0x5ed557)return;let {left:_0x2d7775=0x0,top:_0x36cd15=0x0,width:_0x38c079=0x0,height:_0x5707e4=0x0,flipX:_0xa44c08=!0x1,flipY:_0x2e5064=!0x1}=_0x1eba7d[_0x1fdd62(0x21c)],_0x5165bb=_0x20da4e[_0x1fdd62(0x20b)]();if(_0x5165bb['length']<0x2)return;let _0x56dcd5=new _0x57b6f7({'left':_0x2d7775,'top':_0x36cd15,'width':_0x38c079,'height':_0x5707e4,'flipX':_0xa44c08,'flipY':_0x2e5064}),_0x3127ce=_0xa3978c?_0x5165bb[_0x5165bb[_0x1fdd62(0x3c3)]-0x1]:_0x5165bb[0x0],_0x411fdd=_0x56dcd5[_0x1fdd62(0x404)](_0x3127ce),_0x36c16c=_0x57b6f7[_0x1fdd62(0x206)](_0x411fdd,_0x5ed557[_0x1fdd62(0x3e5)],!_0xa3978c);_0x40223d[_0x1fdd62(0x220)]({'flipX':_0x36c16c[_0x1fdd62(0x26f)]['flipX'],'flipY':_0x36c16c[_0x1fdd62(0x26f)]['flipY'],'left':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x337)],'top':_0x36c16c[_0x1fdd62(0x26f)]['top'],'width':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x45d)],'height':_0x36c16c[_0x1fdd62(0x26f)][_0x1fdd62(0x257)],'angle':_0x36c16c[_0x1fdd62(0x26f)]['angle']}),_0x40223d[_0x1fdd62(0x293)](!0x0);}[_0x291e41(0x31f)](){const _0x9d7689=_0x291e41;this[_0x9d7689(0x1ad)]['length']!==0x0&&(this[_0x9d7689(0x1ad)][_0x9d7689(0x44b)](_0x294479=>{const _0x2845d7=_0x9d7689;_0x294479[_0x2845d7(0x20d)]();}),this[_0x9d7689(0x1ad)]=[]);}[_0x291e41(0x1d0)](){const _0x16971c=_0x291e41;let _0xf70b61=this[_0x16971c(0x394)][_0x16971c(0x262)](_0x3c82b9[_0x16971c(0x35c)]);this[_0x16971c(0x432)](_0xf70b61[_0x16971c(0x24c)](_0x17931b(_0x418d5e=>_0x418d5e?_0x418d5e[_0x16971c(0x3bc)][_0x16971c(0x24c)](_0x17931b(_0x1c6483=>{const _0x26ebe0=_0x16971c;if(!_0x1c6483)return _0x257bb9;let _0x5dcec5=_0x418d5e['getUnitId'](),_0x2f858a=this[_0x26ebe0(0x449)]['getRenderUnitById'](_0x5dcec5),_0x85567a=_0x2f858a==null?void 0x0:_0x2f858a[_0x26ebe0(0x1f2)];return _0x85567a?_0x413c25(_0x85567a):_0x257bb9;})):_0x257bb9))[_0x16971c(0x456)](_0x3cf5a4=>{const _0xdeb119=_0x16971c;let _0xe689ab=_0x3cf5a4[_0xdeb119(0x39e)]();this['disposeWithMe'](_0x3cf5a4[_0xdeb119(0x349)][_0xdeb119(0x1a9)](_0x9cffdc=>{const _0x2f94b0=_0xdeb119;this[_0x2f94b0(0x30e)]&&this[_0x2f94b0(0x41e)]&&this[_0x2f94b0(0x31f)]();})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x36c)][_0xdeb119(0x456)](_0x5a0e29=>{const _0xb7ddf8=_0xdeb119;let {objects:_0x314749}=_0x5a0e29;this[_0xb7ddf8(0x31f)](),_0x314749!==null&&_0x314749[_0xb7ddf8(0x215)]===0x1&&_0x314749[_0xb7ddf8(0x3f3)]()['next']()[_0xb7ddf8(0x3ec)]instanceof J&&(this[_0xb7ddf8(0x30e)]=!0x0);})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x2f2)][_0xdeb119(0x456)](_0x3f450f=>{const _0x4561f5=_0xdeb119;this[_0x4561f5(0x30e)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0xdeb119(0x432)](_0x3cf5a4['onPointerUp$'][_0xdeb119(0x1a9)](()=>{const _0x5edbde=_0xdeb119;this[_0x5edbde(0x30e)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0xdeb119(0x432)](_0xe689ab[_0xdeb119(0x398)][_0xdeb119(0x456)](()=>{const _0x19c43e=_0xdeb119;this[_0x19c43e(0x32f)]&&this[_0x19c43e(0x1df)]&&this[_0x19c43e(0x41e)]&&this[_0x19c43e(0x346)][_0x19c43e(0x312)]({'unitId':this[_0x19c43e(0x32f)],'subUnitId':this[_0x19c43e(0x1df)],'drawingId':this['_activeShapeId']})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x291e41(0x3f4)](){const _0x5a9c64=_0x291e41;this['disposeWithMe'](this[_0x5a9c64(0x346)][_0x5a9c64(0x1d8)][_0x5a9c64(0x456)](_0x1cb1d9=>{const _0x298935=_0x5a9c64;if(_0x1cb1d9['length']===0x1){let _0x4b94c8=_0x1cb1d9[0x0];if(_0x4b94c8['drawingType']===_0x40fd85[_0x298935(0x43a)]){let _0x319a73=this['_sheetsShapeService'][_0x298935(0x32d)](_0x4b94c8[_0x298935(0x351)],_0x4b94c8[_0x298935(0x21b)],_0x4b94c8[_0x298935(0x1dd)]);if(_0x319a73&&_0x5184c7(_0x319a73['getShapeType']())){this[_0x298935(0x41e)]=_0x4b94c8['drawingId'],this[_0x298935(0x32f)]=_0x4b94c8[_0x298935(0x351)],this[_0x298935(0x1df)]=_0x4b94c8[_0x298935(0x21b)],this[_0x298935(0x31f)](),this[_0x298935(0x270)]();return;}}}this[_0x298935(0x41e)]=void 0x0,this[_0x298935(0x32f)]=void 0x0,this[_0x298935(0x1df)]=void 0x0,this[_0x298935(0x31f)]();})),this[_0x5a9c64(0x432)](this[_0x5a9c64(0x346)][_0x5a9c64(0x1c3)][_0x5a9c64(0x456)](_0x3b750d=>{const _0x139418=_0x5a9c64;if(_0x3b750d['length']===0x1){var _0x3edf05;let _0x176df7=_0x3b750d[0x0],_0x3b7e31=(_0x3edf05=this[_0x139418(0x346)][_0x139418(0x312)](_0x176df7))==null?void 0x0:_0x3edf05[_0x139418(0x209)];_0x3b7e31===_0x40fd85[_0x139418(0x43a)]&&_0x176df7[_0x139418(0x1dd)]===this[_0x139418(0x41e)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x139418(0x270)]()):!this[_0x139418(0x41e)]&&_0x3b7e31===_0x40fd85[_0x139418(0x43a)]&&this[_0x139418(0x381)](_0x176df7[_0x139418(0x351)],_0x176df7[_0x139418(0x21b)],_0x176df7[_0x139418(0x1dd)]);}})),this[_0x5a9c64(0x432)](this['_drawingManagerService'][_0x5a9c64(0x31c)][_0x5a9c64(0x456)](_0x5054b1=>{const _0x22fe74=_0x5a9c64;for(let _0x1c0504 of _0x5054b1){let {drawingId:_0x25df15}=_0x1c0504;if(this[_0x22fe74(0x41e)]===_0x25df15){this['_reset']();return;}}}));}[_0x291e41(0x353)](_0x3e3a0e,_0x16a105,_0x386a61,_0x51d867,_0x42b8f6){const _0x976b10=_0x291e41;var _0x3120f6;if(!this[_0x976b10(0x22f)])return;let _0x5a93f8=this['_getConnectPointInfo'](_0x3e3a0e);if(!_0x5a93f8)return;let _0x18e2c3=this[_0x976b10(0x211)]?this['_currentConnectionTarget'][_0x976b10(0x2f6)]:_0x16a105,_0x296453=this[_0x976b10(0x211)]?this[_0x976b10(0x211)]['angle']:this['_calculateFreeEndpointAngle'](_0x5a93f8[_0x976b10(0x3e5)],_0x18e2c3),_0x86f25b;if(this['_currentConnectionTarget']){let _0x1d84b3=this[_0x976b10(0x346)][_0x976b10(0x312)]({'unitId':this['_currentConnectionTarget'][_0x976b10(0x351)],'subUnitId':this[_0x976b10(0x211)][_0x976b10(0x21b)],'drawingId':this[_0x976b10(0x211)]['shapeId']});if(_0x1d84b3!=null&&_0x1d84b3['transform']){let {left:_0x15d3c3=0x0,top:_0x1b21f9=0x0,width:_0x2e0ba8=0x0,height:_0x3c10b8=0x0,angle:_0x1ebe31}=_0x1d84b3[_0x976b10(0x21c)];_0x86f25b=_0x1eb82f({'left':_0x15d3c3,'top':_0x1b21f9,'width':_0x2e0ba8,'height':_0x3c10b8},_0x1ebe31||0x0);}else _0x86f25b={'left':_0x18e2c3['x'],'top':_0x18e2c3['y'],'width':0x0,'height':0x0};}else _0x86f25b={'left':_0x18e2c3['x'],'top':_0x18e2c3['y'],'width':0x0,'height':0x0};let _0xaa98d9={'point':_0x18e2c3,'angle':_0x296453,'bounds':_0x86f25b},_0x354b7b=_0x386a61?_0xaa98d9:_0x5a93f8,_0x54781b=_0x386a61?_0x5a93f8:_0xaa98d9,_0xeea2a7=this['_activeShapeModel']['getShapeType'](),_0x4df63c=_0xf06aa3(_0x354b7b,_0x54781b,_0xeea2a7);_0x4df63c&&this['_activeShapeModel'][_0x976b10(0x247)](_0x4df63c);let _0x4483d1=_0x485b2f(_0x4df63c,_0xeea2a7);_0x4483d1['lineType']!==_0xeea2a7&&this[_0x976b10(0x22f)][_0x976b10(0x44c)](_0x4483d1[_0x976b10(0x345)]);for(let [_0x53b54f,_0x48eaa5]of Object[_0x976b10(0x384)](_0x4483d1['adjustValues']))this[_0x976b10(0x22f)][_0x976b10(0x3d9)](_0x53b54f,_0x48eaa5);this[_0x976b10(0x22f)][_0x976b10(0x31e)]({'width':_0x4483d1[_0x976b10(0x26f)]['width'],'height':_0x4483d1['worldRect'][_0x976b10(0x257)]}),_0x51d867[_0x976b10(0x220)]({'flipX':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x26b)],'flipY':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x1d2)],'left':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x337)],'top':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x3cf)],'width':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x45d)],'height':_0x4483d1[_0x976b10(0x26f)][_0x976b10(0x257)],'angle':_0x4483d1['rotation']}),_0x51d867[_0x976b10(0x293)](!0x0);let _0x2a8d63=((_0x3120f6=this[_0x976b10(0x211)])==null?void 0x0:_0x3120f6[_0x976b10(0x2f6)])??_0x16a105;_0x42b8f6[_0x976b10(0x220)]({'left':_0x2a8d63['x']-_0x179988[_0x976b10(0x2ed)],'top':_0x2a8d63['y']-_0x179988[_0x976b10(0x2ed)]});}[_0x291e41(0x412)](_0x2430e3,_0x415079,_0x2341c6,_0x321004,_0x49c1d6){const _0x4316d0=_0x291e41;var _0x6af495,_0x210dbb;let _0x2b9544=((_0x6af495=this['_currentConnectionTarget'])==null?void 0x0:_0x6af495[_0x4316d0(0x2f6)])??_0x2430e3,_0x2b8577=_0x57b6f7[_0x4316d0(0x206)](_0x415079,_0x2b9544,_0x2341c6);_0x321004[_0x4316d0(0x220)]({'flipX':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x26b)],'flipY':_0x2b8577['worldRect']['flipY'],'left':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x337)],'top':_0x2b8577[_0x4316d0(0x26f)]['top'],'width':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x45d)],'height':_0x2b8577['worldRect'][_0x4316d0(0x257)],'angle':_0x2b8577[_0x4316d0(0x26f)][_0x4316d0(0x2a0)]});let _0x427ee6=((_0x210dbb=this['_currentConnectionTarget'])==null?void 0x0:_0x210dbb['worldPoint'])??_0x2430e3;_0x49c1d6[_0x4316d0(0x220)]({'left':_0x427ee6['x']-_0x179988[_0x4316d0(0x2ed)],'top':_0x427ee6['y']-_0x179988['cxnPointRadius']});}['_getConnectPointInfo'](_0xe57cd9){const _0x11357b=_0x291e41;if(!this[_0x11357b(0x32f)]||!this[_0x11357b(0x1df)])return null;let {shapeId:_0x5b376d,cxnIndex:_0x55b783}=_0xe57cd9,_0x48dd25=this[_0x11357b(0x408)][_0x11357b(0x32d)](this[_0x11357b(0x32f)],this[_0x11357b(0x1df)],_0x5b376d);if(!_0x48dd25)return null;let _0x1f78d4=this[_0x11357b(0x346)][_0x11357b(0x312)]({'unitId':this[_0x11357b(0x32f)],'subUnitId':this['_subUnitId'],'drawingId':_0x5b376d});if(!(_0x1f78d4!=null&&_0x1f78d4[_0x11357b(0x21c)]))return null;let {left:_0x5ea7c2=0x0,top:_0x591647=0x0,width:_0x260bb3=0x0,height:_0x1d9751=0x0,flipX:_0x4d863c=!0x1,flipY:_0x1e0d99=!0x1,angle:_0x254584}=_0x1f78d4[_0x11357b(0x21c)];_0x48dd25[_0x11357b(0x31e)]({'width':_0x260bb3,'height':_0x1d9751});let _0x4241e2=_0x48dd25['getConnectionSiteList']()[_0x11357b(0x1e4)](_0x139719=>_0x139719['index']===_0x55b783);if(!_0x4241e2)return null;let _0x49a656=_0x4d863c?_0x260bb3-_0x4241e2['x']:_0x4241e2['x'],_0x57643d=_0x1e0d99?_0x1d9751-_0x4241e2['y']:_0x4241e2['y'];if(_0x254584!==0x0&&_0x254584!=null){let _0x14cb84=_0x254584*Math['PI']/0xb4,_0x409a6f=Math[_0x11357b(0x375)](_0x14cb84),_0x4fbc33=Math[_0x11357b(0x3ae)](_0x14cb84),_0x298fbe=_0x260bb3/0x2,_0x5e21a6=_0x1d9751/0x2,_0x3ed78d=_0x49a656-_0x298fbe,_0x21e7e2=_0x57643d-_0x5e21a6;_0x49a656=_0x298fbe+_0x3ed78d*_0x409a6f-_0x21e7e2*_0x4fbc33,_0x57643d=_0x5e21a6+_0x3ed78d*_0x4fbc33+_0x21e7e2*_0x409a6f;}_0x49a656+=_0x5ea7c2,_0x57643d+=_0x591647;let _0x1fe4c7=_0x4241e2[_0x11357b(0x308)]/0xea60;_0x4d863c&&(_0x1fe4c7=0xb4-_0x1fe4c7),_0x1e0d99&&(_0x1fe4c7=-_0x1fe4c7),_0x1fe4c7+=_0x254584||0x0,_0x1fe4c7=(_0x1fe4c7%0x168+0x168)%0x168;let _0x1bf5f9=_0x1eb82f({'left':_0x5ea7c2,'top':_0x591647,'width':_0x260bb3,'height':_0x1d9751},_0x254584||0x0);return{'point':{'x':_0x49a656,'y':_0x57643d},'angle':_0x1fe4c7,'bounds':_0x1bf5f9};}[_0x291e41(0x27e)](_0x391e76,_0x5aba38){const _0x268cd5=_0x291e41;let _0x5a879d=_0x5aba38['x']-_0x391e76['x'],_0x122fb8=_0x5aba38['y']-_0x391e76['y'];return Math[_0x268cd5(0x40f)](_0x5a879d)>=Math['abs'](_0x122fb8)?_0x5a879d>=0x0?0xb4:0x0:_0x122fb8>=0x0?0x10e:0x5a;}[_0x291e41(0x20e)](){const _0x3501e7=_0x291e41;this[_0x3501e7(0x41e)]=void 0x0,this[_0x3501e7(0x32f)]=void 0x0,this[_0x3501e7(0x1df)]=void 0x0,this[_0x3501e7(0x31f)]();}[_0x291e41(0x20d)](){const _0x4994e5=_0x291e41;this[_0x4994e5(0x31f)](),super[_0x4994e5(0x20d)]();}};ga=X([Y(0x1,_0x54c16f),Y(0x2,_0x1158d5),Y(0x3,_0x28cffc),Y(0x4,_0x44b74c),Y(0x5,_0x5b79b4(_0x1e1f0c)),Y(0x6,_0x5b79b4(Ir)),Y(0x7,_0x5b79b4(pa))],ga);let _a=class extends _0x557a26{constructor(_0x4e0f87,_0x484f51,_0x2b28dc){const _0x319b86=_0x291e41;super(),this[_0x319b86(0x19d)]=_0x4e0f87,this[_0x319b86(0x346)]=_0x484f51,this[_0x319b86(0x233)]=_0x2b28dc,this[_0x319b86(0x1ee)]();}[_0x291e41(0x1ee)](){const _0x1b5a46=_0x291e41;this['disposeWithMe'](this[_0x1b5a46(0x19d)]['interceptor'][_0x1b5a46(0x2f4)](this[_0x1b5a46(0x19d)]['interceptor'][_0x1b5a46(0x203)]()[_0x1b5a46(0x328)],{'handler':(_0x74bedb,_0x43bf51,_0x249793)=>{const _0x5b2f75=_0x1b5a46;var _0x3cf56d;let {unitId:_0x27d91e,subUnitId:_0x377578,scene:_0x27ebe9,resourceCollector:_0x2c396d}=_0x43bf51,_0x58c122=(_0x3cf56d=this[_0x5b2f75(0x346)][_0x5b2f75(0x258)](_0x27d91e))==null?void 0x0:_0x3cf56d[_0x377578];return _0x58c122==null||_0x58c122[_0x5b2f75(0x3fc)][_0x5b2f75(0x44b)](_0x23dbef=>{const _0x1cf098=_0x5b2f75;let _0x3ca4ea=_0x58c122[_0x1cf098(0x305)][_0x23dbef];_0x3ca4ea[_0x1cf098(0x209)]===_0x40fd85['DRAWING_SHAPE']&&!_0x3ca4ea[_0x1cf098(0x314)]&&this[_0x1cf098(0x233)][_0x1cf098(0x301)](_0x3ca4ea,_0x27ebe9,{'resourceCollector':_0x2c396d});}),_0x249793(_0x74bedb);}}));}};_a=X([Y(0x0,_0x5b79b4(_0x344f2a)),Y(0x1,_0x28cffc),Y(0x2,_0x5b79b4(Z))],_a);let va=class extends _0x557a26{constructor(_0x540dfa,_0x29fedd,_0x3ff7b5){const _0x40209c=_0x291e41;super(),this[_0x40209c(0x199)]=_0x540dfa,this[_0x40209c(0x202)]=_0x29fedd,this[_0x40209c(0x350)]=_0x3ff7b5,this[_0x40209c(0x446)]();}[_0x291e41(0x446)](){const _0x3f9164=_0x291e41;this[_0x3f9164(0x432)](this[_0x3f9164(0x199)][_0x3f9164(0x3fa)](_0x34f2b1=>{const _0x4cbec1=_0x3f9164;let _0x279e7e,_0x3d1a2e;if(_0x34f2b1['id']===_0x2b8b47['id']||_0x34f2b1['id']===_0x11a9aa['id']||_0x34f2b1['id']===_0x54081a['id']){let _0x30457a=_0x34f2b1['params'];_0x279e7e=_0x30457a[_0x4cbec1(0x351)],_0x3d1a2e=_0x30457a['subUnitId'];}_0x279e7e&&_0x3d1a2e&&(this[_0x4cbec1(0x350)][_0x4cbec1(0x214)]({'workbookTypes':[_0x20b096],'worksheetTypes':[_0x1ea295]},_0x279e7e,_0x3d1a2e)||this[_0x4cbec1(0x350)]['blockExecuteWithoutPermission'](this[_0x4cbec1(0x202)]['t'](_0x4cbec1(0x317))));}));}};va=X([Y(0x0,_0x5b79b4(_0x54c16f)),Y(0x1,_0x5b79b4(_0x13738a)),Y(0x2,_0x5b79b4(_0x277cdb))],va);let ya=class{constructor(_0xda70f8){const _0x1bd2a2=_0x291e41;this[_0x1bd2a2(0x449)]=_0xda70f8;}[_0x291e41(0x281)](_0x3f26cf,_0x4dfe94){const _0x581bfa=_0x291e41;let _0x10e5c2=this['_renderManagerService'][_0x581bfa(0x3a7)](_0x3f26cf['unitId']),_0xbbdf7f=_0x10e5c2==null?void 0x0:_0x10e5c2[_0x581bfa(0x1f2)];if(!_0xbbdf7f)return;let _0x148faa=_0x38d621(_0x3f26cf),_0x5b9eb9=_0xbbdf7f[_0x581bfa(0x292)](_0x148faa);_0x5b9eb9==null||_0x5b9eb9[_0x581bfa(0x3a1)](_0x4dfe94);}};ya=X([Y(0x0,_0x1158d5)],ya);let ba=class extends _0x1f6119{constructor(_0x319cac=Zi,_0x410752,_0x9b2485,_0x2a74ec,_0x390b9b){const _0x354542=_0x291e41;super(),this['_config']=_0x319cac,this['_injector']=_0x410752,this[_0x354542(0x199)]=_0x9b2485,this['_configService']=_0x2a74ec,this['_renderManagerService']=_0x390b9b;let {..._0xc23633}=_0x45bd5a({},Zi,this[_0x354542(0x28d)]);this[_0x354542(0x40d)][_0x354542(0x458)](Xi,_0xc23633),this[_0x354542(0x1b0)]();}[_0x291e41(0x227)](){const _0x199d1a=_0x291e41;this[_0x199d1a(0x369)][_0x199d1a(0x322)]([ra]),this[_0x199d1a(0x369)]['get'](ra),_0x2cbcdc(this[_0x199d1a(0x369)],[[sa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va]]);}[_0x291e41(0x225)](){const _0x450f71=_0x291e41;_0x2cbcdc(this[_0x450f71(0x369)],[[pa],[Ir],[ma]]),_0x125864(this['_injector'],[[ma],[Ir]]),[[pa],[Qi],[ga],[aa]]['forEach'](_0x509b40=>{const _0x3a4eb8=_0x450f71;this[_0x3a4eb8(0x432)](this['_renderManagerService'][_0x3a4eb8(0x410)](_0x3c82b9[_0x3a4eb8(0x35c)],_0x509b40));});}['onRendered'](){const _0xc42f56=_0x291e41;_0x125864(this[_0xc42f56(0x369)],[[sa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va]]);}['onSteady'](){const _0x14b6b1=_0x291e41;this[_0x14b6b1(0x369)]['get'](sa)[_0x14b6b1(0x366)]();}['_initCommands'](){const _0xfcdd9d=_0x291e41;[Rr,K,Lr,Yi][_0xfcdd9d(0x44b)](_0x5168f2=>this[_0xfcdd9d(0x432)](this[_0xfcdd9d(0x199)][_0xfcdd9d(0x2ac)](_0x5168f2)));}};q(ba,_0x291e41(0x28c),_0x3c82b9[_0x291e41(0x35c)]),q(ba,_0x291e41(0x1be),_0x291e41(0x252)),q(ba,'packageName',qi),q(ba,_0x291e41(0x403),Ji),ba=X([_0x650ae5(_0x49fb5c,_0x5795a7,_0x73a66f,_0x3d4438,_0x4d4740,_0x3c117e,_0x470190,_0x22a2d8,_0x40f5a7,_0x50e887,_0x1c1c30,_0x321a7b,_0x227d6b),Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x54c16f),Y(0x3,_0x3dbeab),Y(0x4,_0x1158d5)],ba);const xa={'type':_0x303f65[_0x291e41(0x3e6)],'id':_0x291e41(0x35e),'handler'(){return!0x0;}};function Sa(){const _0x27545c=_0x291e41;let _0x4d2e2b=_0x42cc68(_0x28cffc),_0x347f70=_0x279878(()=>_0x4d2e2b[_0x27545c(0x1d8)],_0x4d2e2b[_0x27545c(0x1f4)](),!0x1,[_0x4d2e2b]);return _0x347f70[_0x27545c(0x3c3)]===0x0?null:_0x183ba7(_0x27545c(0x3f5),{'children':_0x21f5b5(_0x27545c(0x3f5),{'className':_0x27545c(0x279),'children':[_0x183ba7(_0x575d51,{'drawings':_0x347f70,'hasCropper':!0x1}),_0x183ba7(_0xf526c,{'drawings':_0x347f70})]})});}function Ca(_0x4f52de){let {unitId:_0x3883fc,subUnitId:_0x49f1ad,shapeId:_0x6867b0}=_0x4f52de,_0x10ea82=_0x42cc68(_0x54c16f),_0x18193c=_0x42cc68(ya);return _0x183ba7(_0x36eeae,{..._0x4f52de,'positionEditor':_0x183ba7(Sa,{}),'onUpdateShapeData':(_0x3d5cf6,_0x28c6e8)=>{kr(_0x10ea82,_0x3883fc,_0x49f1ad,_0x6867b0,_0x3d5cf6,_0x28c6e8);},'onUpdateLineShapeData':(_0x1f6410,_0x524475)=>{Ar(_0x10ea82,_0x3883fc,_0x49f1ad,_0x6867b0,_0x1f6410,_0x524475);},'onUpdateShapeFillImage':_0x5626ef=>{const _0x566825=_0x7c09;_0x18193c[_0x566825(0x281)]({'unitId':_0x3883fc,'subUnitId':_0x49f1ad,'drawingId':_0x6867b0},_0x5626ef);}});}function wa(_0x4109c4){const _0x17a147=_0x291e41;let _0x2ba5aa=_0x42cc68(_0x5014c7),_0x1b92ea=_0x279878(()=>_0x2ba5aa[_0x17a147(0x21e)],_0x2ba5aa[_0x17a147(0x197)](),!0x1,[_0x2ba5aa]),_0x120331=_0x4109c4[_0x17a147(0x28b)][_0x17a147(0x365)];return!_0x120331||!_0x1b92ea?null:_0x183ba7(Ta,{..._0x120331,'canvasElement':_0x4109c4[_0x17a147(0x28b)]['canvasElement']});}function Ta(_0x502830){const _0x27e53a=_0x291e41;let _0x3204b1=_0x42cc68(_0x54c16f),_0x500fe7=_0x42cc68(_0x1e1f0c),{unitId:_0x39d5c7,subUnitId:_0x5c1067,drawingId:_0xd8d250,drawingType:_0x1942fe,shapeType:_0x55d320}=_0x502830,[_0x3910c2,_0x400cd0]=_0x339b64(_0x502830[_0x27e53a(0x3ad)]),_0x4ab73=_0x283095(()=>_0x35bc62(_0x3910c2),[_0x3910c2]),_0x4b3056=_0x283095(()=>_0x191d9a(_0x3910c2),[_0x3910c2]);_0x3b96f0(()=>{const _0x1864be=_0x27e53a;let _0xbd988d=_0x3204b1['onCommandExecuted'](_0x5adcd6=>{if(_0x5adcd6['id']!==_0x172941['id'])return;let _0x5a5dce=_0x500fe7['getShapeDataById'](_0x39d5c7,_0x5c1067,_0xd8d250);_0x5a5dce&&_0x400cd0(_0x5a5dce);});return()=>_0xbd988d[_0x1864be(0x20d)]();},[_0x3204b1,_0xd8d250,_0x500fe7,_0x5c1067,_0x39d5c7]);let _0x39bc37=_0x49c918=>{_0x400cd0(_0xce9d77=>({..._0xce9d77,..._0x49c918}));},_0x335aed=_0x2e07a5=>{const _0x4320b=_0x27e53a;let _0x3a4166=_0x7848a(_0x3910c2,_0x2e07a5);kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,{'oldShapeData':{'shapeText':_0x3910c2[_0x4320b(0x34e)]}},_0x3a4166),_0x39bc37(_0x3a4166);},_0x6f88fd=_0x3c9bbc({'hostType':_0x3c82b9[_0x27e53a(0x35c)],'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'shapeId':_0xd8d250,'shapeData':_0x3910c2,'onUpdateBinding':_0x5aa078=>{let _0x144ee3={'formulaBinding':_0x5aa078};kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,{'oldShapeData':{'formulaBinding':_0x3910c2['formulaBinding']}},_0x144ee3),_0x39bc37(_0x144ee3);}});return _0x21f5b5(_0x50afb4,{'children':[_0x183ba7(_0x46cdc2,{'canvasElement':_0x502830[_0x27e53a(0x2e5)],'shapeData':_0x3910c2,'shapeType':_0x55d320,'textStyle':{'ff':_0x179988[_0x27e53a(0x34e)][_0x27e53a(0x3ac)],'fs':_0x179988[_0x27e53a(0x34e)]['fontSize'],'cl':{'rgb':_0x179988['shapeText'][_0x27e53a(0x442)]},..._0x4ab73},'textModel':_0x4b3056?{'ha':_0x4b3056['ha']??_0xc256c8[_0x27e53a(0x1e8)],'va':_0x4b3056['va']??_0x46a67d[_0x27e53a(0x374)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x179988[_0x27e53a(0x3bf)],'defaultGradientEndColor':_0x179988['gradientEndColor'],'defaultStrokeColor':_0x179988[_0x27e53a(0x223)],'extensionGroups':_0x6f88fd[_0x27e53a(0x204)],'floatingObjectToolbarPosition':_0x150ddc[_0x27e53a(0x2b9)],'onUpdateShapeData':(_0x1fcf4f,_0x472873)=>{kr(_0x3204b1,_0x39d5c7,_0x5c1067,_0xd8d250,_0x1fcf4f,_0x472873),_0x472873&&_0x39bc37(_0x472873);},'onUpdateText':_0x335aed,'onOpenPanel':()=>{const _0x247117=_0x27e53a;_0x3204b1[_0x247117(0x2e1)](Kr['id'],{'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'drawingId':_0xd8d250});},'onDelete':()=>{const _0x1a69eb=_0x27e53a;_0x3204b1[_0x1a69eb(0x2e1)](_0x1c9438['id'],{'unitId':_0x39d5c7,'drawings':[{'unitId':_0x39d5c7,'subUnitId':_0x5c1067,'drawingId':_0xd8d250,'drawingType':_0x1942fe}]});}}),_0x6f88fd[_0x27e53a(0x355)]]});}function Ea(_0x1f740f){const _0x5b5bfc=_0x291e41;return!!_0x1f740f&&_0x5b5bfc(0x22a)in _0x1f740f&&_0x5b5bfc(0x389)in _0x1f740f;}const Da=_0x130daa(()=>{const _0x5a6cf4=_0x291e41;let _0x33fcfe=_0x42cc68($),_0x250caa=_0x42cc68(_0x1e1f0c),_0x1e4234=_0x42cc68(_0x28cffc),_0x109bd3=_0x42cc68(_0x54c16f),_0x236ec0=_0x42cc68(_0x2a1a7d),_0x51e855=_0x42cc68(_0x1158d5),_0x22e1b1=_0x283095(()=>({'getShapeModel':(_0x39dbd0,_0x43ee85,_0x5f27bc)=>_0x250caa[_0x5a6cf4(0x32d)](_0x39dbd0,_0x43ee85,_0x5f27bc),'getShapeData':(_0x51acdf,_0x5d9a06,_0x144bd4)=>_0x250caa[_0x5a6cf4(0x1a0)](_0x51acdf,_0x5d9a06,_0x144bd4),'getDrawingTransform':(_0x5b9e0e,_0x310803,_0x255ae2)=>{const _0x2388c6=_0x5a6cf4;let _0x5775a4=_0x1e4234[_0x2388c6(0x312)]({'unitId':_0x5b9e0e,'subUnitId':_0x310803,'drawingId':_0x255ae2});return _0x5775a4==null?void 0x0:_0x5775a4['transform'];},'updateShapeText':({unitId:_0x4c0e69,subUnitId:_0x1bb0b1,shapeId:_0x19556d,shapeText:_0x4cc998,oldShapeText:_0x2fd4f5,hostSize:_0x3479eb})=>{const _0x4dfea5=_0x5a6cf4;_0x236ec0[_0x4dfea5(0x24f)](_0x4c0e69,()=>{const _0x3b494a=_0x4dfea5;var _0x24e9c7;let _0x342f1a=_0x109bd3[_0x3b494a(0x1b7)](K['id'],{'unitId':_0x4c0e69,'subUnitId':_0x1bb0b1,'shapeId':_0x19556d,'shapeData':{'shapeText':_0x4cc998},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x2fd4f5}}});if(!_0x342f1a||!_0x3479eb)return _0x342f1a;let _0x1a29b4=_0x1e4234[_0x3b494a(0x312)]({'unitId':_0x4c0e69,'subUnitId':_0x1bb0b1,'drawingId':_0x19556d}),_0x2a7d4c=_0x1a29b4==null?void 0x0:_0x1a29b4['transform'];if(!Ea(_0x1a29b4)||!_0x2a7d4c)return!0x1;let _0x7c97bc={..._0x2a7d4c,'width':_0x3479eb[_0x3b494a(0x45d)],'height':_0x3479eb[_0x3b494a(0x257)]},_0x25c2d2=(_0x24e9c7=_0x51e855[_0x3b494a(0x3a7)](_0x4c0e69))==null||(_0x24e9c7=_0x24e9c7[_0x3b494a(0x401)](_0x5635f6)[_0x3b494a(0x3ab)](_0x1bb0b1))==null?void 0x0:_0x24e9c7[_0x3b494a(0x1c0)];return _0x109bd3[_0x3b494a(0x1b7)](_0xb1758f['id'],{'unitId':_0x4c0e69,'drawings':[{..._0x1a29b4,'transform':_0x7c97bc,'sheetTransform':_0x25c2d2?_0x4f36ef(_0x7c97bc,_0x25c2d2)??_0x1a29b4['sheetTransform']:_0x1a29b4[_0x3b494a(0x389)],'axisAlignSheetTransform':_0x25c2d2?_0x5e3806(_0x7c97bc,_0x25c2d2)??_0x1a29b4[_0x3b494a(0x22a)]:_0x1a29b4[_0x3b494a(0x22a)]}]});});},'updateHostSize':({unitId:_0x26a70a,subUnitId:_0x39e874,shapeId:_0x7fde42,width:_0x451821,height:_0x150872})=>{const _0x2b2b49=_0x5a6cf4;var _0x51057c;let _0x49d205=_0x1e4234[_0x2b2b49(0x312)]({'unitId':_0x26a70a,'subUnitId':_0x39e874,'drawingId':_0x7fde42}),_0x371df4=_0x49d205==null?void 0x0:_0x49d205[_0x2b2b49(0x21c)];if(!Ea(_0x49d205)||!_0x371df4)return;let _0x3faa1c={..._0x371df4,'width':_0x451821,'height':_0x150872},_0xd3af5a=(_0x51057c=_0x51e855[_0x2b2b49(0x3a7)](_0x26a70a))==null||(_0x51057c=_0x51057c[_0x2b2b49(0x401)](_0x5635f6)[_0x2b2b49(0x3ab)](_0x39e874))==null?void 0x0:_0x51057c[_0x2b2b49(0x1c0)],_0x1999a7=_0xd3af5a?_0x4f36ef(_0x3faa1c,_0xd3af5a)??_0x49d205[_0x2b2b49(0x389)]:_0x49d205[_0x2b2b49(0x389)],_0x33de0c=_0xd3af5a?_0x5e3806(_0x3faa1c,_0xd3af5a)??_0x49d205[_0x2b2b49(0x22a)]:_0x49d205['axisAlignSheetTransform'];_0x109bd3['executeCommand'](_0xb1758f['id'],{'unitId':_0x26a70a,'drawings':[{..._0x49d205,'transform':_0x3faa1c,'sheetTransform':_0x1999a7,'axisAlignSheetTransform':_0x33de0c}]});},'allowHostSizeShrink':({unitId:_0x4e38f8,subUnitId:_0x4a9e32,shapeId:_0x54d9fd})=>_0x59f590(_0x250caa[_0x5a6cf4(0x1a0)](_0x4e38f8,_0x4a9e32,_0x54d9fd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x109bd3,_0x1e4234,_0x51e855,_0x250caa,_0x236ec0]),_0x5502b=_0x283095(()=>({'viewportKeys':{'main':_0x8831d0['VIEW_MAIN'],'leftTop':_0x8831d0['VIEW_MAIN_LEFT_TOP'],'top':_0x8831d0[_0x5a6cf4(0x26a)],'left':_0x8831d0[_0x5a6cf4(0x1ae)]},'getSkeleton':(_0x226263,_0x364b33)=>{const _0x505267=_0x5a6cf4;var _0x139324;return((_0x139324=_0x226263[_0x505267(0x401)](_0x5635f6)['getSkeletonParam'](_0x364b33[_0x505267(0x21b)]))==null?void 0x0:_0x139324['skeleton'])??null;}}),[]);return _0x183ba7(_0xde71ea,{'adapter':_0x22e1b1,'editingService':_0x33fcfe,'editorUnitId':Ur,'positionOptions':_0x5502b});});let Oa=class extends _0x557a26{constructor(_0x804564,_0x18d427){const _0x2f41a4=_0x291e41;super(),this['_componentManager']=_0x804564,this['_iconManager']=_0x18d427,this[_0x2f41a4(0x1fa)](),this[_0x2f41a4(0x448)]();}[_0x291e41(0x1fa)](){const _0xfa097f=_0x291e41;this['_iconManager'][_0xfa097f(0x290)]('ObjectLayersIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'ObjectLayersIcon':_0x10ffc5})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('FlipHorizontalIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)]['register']({'FlipHorizontalIcon':_0x30529a})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)](_0xfa097f(0x1e2))||this[_0xfa097f(0x432)](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'FlipVerticalIcon':_0xd6996})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x259))||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'BottomIcon':_0x19c68f})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x373))||this[_0xfa097f(0x432)](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'MoveDownIcon':_0x14ee72})),this['_iconManager'][_0xfa097f(0x290)](_0xfa097f(0x393))||this['disposeWithMe'](this[_0xfa097f(0x1b4)][_0xfa097f(0x3d0)]({'MoveUpIcon':_0xb1af47})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('ShapeFormatSettingIcon')||this['disposeWithMe'](this['_iconManager'][_0xfa097f(0x3d0)]({'ShapeFormatSettingIcon':_0x21bdf2})),this[_0xfa097f(0x1b4)][_0xfa097f(0x290)]('TopmostIcon')||this['disposeWithMe'](this[_0xfa097f(0x1b4)]['register']({'TopmostIcon':_0x384eef}));}['_registerComponents'](){const _0x4a17df=_0x291e41;this[_0x4a17df(0x432)](this['_componentManager'][_0x4a17df(0x3d0)](zr,Ca)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Br,ta)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Xr,ni)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Zr,$r)),this[_0x4a17df(0x3ed)][_0x4a17df(0x2e9)](_0x1b086b)||this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](_0x1b086b,ti)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Vr,wa)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](pi,_i)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](fi,vi)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](mi,yi)),this['disposeWithMe'](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](hi,bi)),this[_0x4a17df(0x432)](this[_0x4a17df(0x3ed)][_0x4a17df(0x3d0)](Wr,_0x39f31b)),this['disposeWithMe'](this['_componentManager'][_0x4a17df(0x3d0)](_0x4a17df(0x43b),Da));}};Oa=X([Y(0x0,_0x5b79b4(_0x5a241f)),Y(0x1,_0x5b79b4(_0x3844d8))],Oa);let ka=class extends _0x557a26{constructor(_0x151efc,_0x4dd6dc,_0x51ba11,_0x1e4fe4,_0x5a6e3e,_0x4709b3,_0x4f084b,_0xcf85e9,_0x1af864){const _0x537125=_0x291e41;super();let _0x3c437a=_0x160d81=>{const _0x436424=_0x7c09;var _0x38d3c3,_0x75f441;return(((_0x38d3c3=_0xcf85e9[_0x436424(0x3da)](new _0x20b096(_0x160d81[_0x436424(0x351)])['id']))==null?void 0x0:_0x38d3c3[_0x436424(0x3ec)])??!0x0)&&(((_0x75f441=_0xcf85e9['getPermissionPoint'](new _0x1ea295(_0x160d81[_0x436424(0x351)],_0x160d81[_0x436424(0x21b)])['id']))==null?void 0x0:_0x75f441[_0x436424(0x3ec)])??!0x0);},_0x360433=_0x42da15=>_0x42da15['shapeId']&&_0x3c437a(_0x42da15)?_0x51ba11[_0x537125(0x1a0)](_0x42da15[_0x537125(0x351)],_0x42da15[_0x537125(0x21b)],_0x42da15[_0x537125(0x416)])??null:null,_0xd072e0=()=>{const _0x158558=_0x537125;let _0x4d2bb6=_0x5a6e3e[_0x158558(0x1f4)](),_0x234224=_0x4d2bb6['length']===0x1?_0x4d2bb6[0x0]:null;return(_0x234224==null?void 0x0:_0x234224['drawingType'])===_0x40fd85[_0x158558(0x43a)]&&_0x234224[_0x158558(0x351)]===_0x151efc[_0x158558(0x351)]?{'unitId':_0x234224[_0x158558(0x351)],'subUnitId':_0x234224[_0x158558(0x21b)],'shapeId':_0x234224['drawingId']}:null;};this[_0x537125(0x432)](_0x2f2687(_0x151efc,_0x4dd6dc,{'changes$':_0x6a7021(_0x5a6e3e[_0x537125(0x1d8)],_0x1e4fe4[_0x537125(0x3d8)],_0xcf85e9[_0x537125(0x359)]),'isActive':()=>{const _0x5ea719=_0x537125;var _0x290383;return((_0x290383=_0x4709b3[_0x5ea719(0x2a6)]())==null?void 0x0:_0x290383[_0x5ea719(0x440)]())===_0x151efc[_0x5ea719(0x351)]&&!_0x4f084b[_0x5ea719(0x234)](_0x2a4c27)&&_0x5a6e3e[_0x5ea719(0x1f4)]()[_0x5ea719(0x31d)](_0x7ef1f3=>_0x7ef1f3[_0x5ea719(0x351)]===_0x151efc['unitId']);},'getSelectedTarget':_0xd072e0,'getSource':()=>{let _0x4d18a6=_0xd072e0();return _0x4d18a6?_0x360433(_0x4d18a6):null;},'getTarget':_0x41a688=>{const _0x1015cb=_0x537125;let _0x32c531=_0x151efc['scene'][_0x1015cb(0x1fb)](new _0x45d11b(_0x41a688[_0x1015cb(0x36f)],_0x41a688[_0x1015cb(0x3b9)]));if(!(_0x32c531 instanceof J))return null;let _0x22c3fb={'unitId':_0x151efc[_0x1015cb(0x351)],'subUnitId':_0x32c531['subUnitId'],'shapeId':_0x32c531[_0x1015cb(0x416)]};return _0x3c437a(_0x22c3fb)?_0x22c3fb:null;},'getShape':_0x360433,'update':(_0x31d68a,_0x28e4ae,_0x76e7c0)=>_0x1af864[_0x537125(0x2e1)](K['id'],{..._0x31d68a,'shapeData':_0x76e7c0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x28e4ae}})}));}};ka=X([Y(0x1,_0x5b79b4(_0x495908)),Y(0x2,_0x5b79b4(_0x1e1f0c)),Y(0x3,_0x5b79b4($)),Y(0x4,_0x28cffc),Y(0x5,_0x44b74c),Y(0x6,_0x4b3877),Y(0x7,_0x1d37e3),Y(0x8,_0x54c16f)],ka);const Aa='sheets-shape-contextual-ribbon';let ja=class extends _0x557a26{constructor(_0x5e628f,_0x2c7cc3,_0x1e8bb6,_0x1c33fa,_0x4f674a,_0x88442d){const _0x3916d0=_0x291e41;super(),this['_menuManagerService']=_0x5e628f,this[_0x3916d0(0x2db)]=_0x2c7cc3,this[_0x3916d0(0x346)]=_0x1e8bb6,this[_0x3916d0(0x394)]=_0x1c33fa,this['_renderManagerService']=_0x4f674a,this[_0x3916d0(0x1dc)]=_0x88442d,q(this,_0x3916d0(0x288),!0x1),this[_0x3916d0(0x1f3)][_0x3916d0(0x423)](Wi),this[_0x3916d0(0x432)](_0x53ca46(this[_0x3916d0(0x346)][_0x3916d0(0x1d8)][_0x3916d0(0x456)](()=>this[_0x3916d0(0x33b)]()))),this['_update']();}[_0x291e41(0x20d)](){const _0x54c809=_0x291e41;this[_0x54c809(0x1dc)][_0x54c809(0x36a)](!0x1,Aa),this[_0x54c809(0x35f)](),super[_0x54c809(0x20d)]();}[_0x291e41(0x33b)](){const _0x451cd4=_0x291e41;var _0x54953c;let _0x1fe444=this[_0x451cd4(0x346)]['getFocusDrawings'](),_0x2b070a=_0x1fe444['length']===0x1?_0x1fe444[0x0]:void 0x0;if((_0x2b070a==null?void 0x0:_0x2b070a[_0x451cd4(0x209)])!==_0x40fd85[_0x451cd4(0x43a)]||this['_univerInstanceService'][_0x451cd4(0x340)](_0x2b070a[_0x451cd4(0x351)])!==_0x3c82b9[_0x451cd4(0x35c)]){this[_0x451cd4(0x1dc)][_0x451cd4(0x36a)](!0x1,Aa),this[_0x451cd4(0x35f)]();return;}let _0x1d517d=(_0x54953c=this['_renderManagerService'][_0x451cd4(0x3a7)](_0x2b070a[_0x451cd4(0x351)]))==null?void 0x0:_0x54953c[_0x451cd4(0x3b5)][_0x451cd4(0x313)](),_0x5f2bd7=_0x3afe9f(_0x1d517d)===_0x451cd4(0x200);this[_0x451cd4(0x1dc)][_0x451cd4(0x36a)](_0x5f2bd7,Aa),_0x5f2bd7?this['_hide']():this[_0x451cd4(0x288)]||(this[_0x451cd4(0x288)]=!0x0,this['_ribbonService'][_0x451cd4(0x42e)](Hr,{'activate':!0x0}));}['_hide'](){const _0xf0a32c=_0x291e41;this[_0xf0a32c(0x288)]&&(this[_0xf0a32c(0x288)]=!0x1,this['_ribbonService'][_0xf0a32c(0x321)](Hr),this['_ribbonService']['setCollapsedIds']([]));}};ja=X([Y(0x0,_0x24215b),Y(0x1,_0x5b1e2e),Y(0x2,_0x28cffc),Y(0x3,_0x44b74c),Y(0x4,_0x1158d5),Y(0x5,_0x5b79b4(_0x5014c7))],ja);let Ma=class extends _0x34370e{constructor(_0x30f9a9,_0x1f8bbc,_0x307a55,_0x1bde2e,_0x14d5a1,_0x14810e,_0x2e7129,_0x33ba2e,_0x35d5df,_0x318829){super(_0x30f9a9,_0x1f8bbc,_0x307a55,_0x1bde2e,_0x14d5a1,_0x14810e,_0x2e7129,_0x33ba2e,_0x35d5df,_0x318829,{'componentKey':Wr,'editorUnitId':Ur});}};Ma=X([Y(0x1,_0x5b79b4(_0x24fa05)),Y(0x2,_0x5b79b4(_0xbc2827)),Y(0x3,_0x5b79b4(_0x132ceb)),Y(0x4,_0x54c16f),Y(0x5,_0x5b79b4(_0x2a6447)),Y(0x6,_0x5b79b4(_0xaf604c)),Y(0x7,_0x5b79b4(_0x1be28b)),Y(0x8,_0x5b79b4(_0x2112e8)),Y(0x9,_0x5b79b4($))],Ma);let Na=class extends _0x164e04{constructor(_0x308dbc,_0x32ca34,_0x3b493f,_0x152020,_0x117747){const _0x56902e=_0x291e41;super(_0x308dbc,_0x32ca34,{'editing$':_0x3b493f[_0x56902e(0x3d8)],'resolve':_0x516592=>{const _0x1dc9d2=_0x56902e;var _0x3f5ea1,_0x391db4,_0x100589;let _0x4ca726=new _0x45d11b(_0x516592[_0x1dc9d2(0x36f)],_0x516592['offsetY']),_0x1fdc50=((_0x3f5ea1=_0x308dbc[_0x1dc9d2(0x1f2)][_0x1dc9d2(0x1ec)](_0x4ca726))==null?void 0x0:_0x3f5ea1[_0x1dc9d2(0x38b)](_0x4ca726))??_0x4ca726,_0xebab84=_0x39a534(_0x308dbc['scene'][_0x1dc9d2(0x1fb)](_0x4ca726)??null,_0x1fdc50);if(!(_0xebab84 instanceof J))return null;let _0x1176b5=_0xebab84[_0x1dc9d2(0x207)](_0x1fdc50);if(!_0x1176b5)return null;let _0x2a24ba=_0xebab84,_0x46ca89={'componentKey':_0x499c50[_0x1dc9d2(0x2c6)],'direction':_0x1dc9d2(0x41c),'offset':[0x0,0xa],'onClickOutside':()=>_0x32ca34['hideInfoPopup']()};return{'object':_0xebab84,'info':{..._0x1176b5,'unitId':_0xebab84['unitId'],'subUnitId':_0xebab84[_0x1dc9d2(0x21b)],'shapeKey':_0xebab84['oKey'],'readonly':!0x0,'copyable':((_0x391db4=_0x117747[_0x1dc9d2(0x3da)](new _0x581335(_0xebab84[_0x1dc9d2(0x351)])['id']))==null?void 0x0:_0x391db4['value'])!==!0x1&&((_0x100589=_0x117747[_0x1dc9d2(0x3da)](new _0x499382(_0xebab84[_0x1dc9d2(0x351)],_0xebab84[_0x1dc9d2(0x21b)])['id']))==null?void 0x0:_0x100589[_0x1dc9d2(0x3ec)])!==!0x1},'attachPopup':()=>_0x152020[_0x1dc9d2(0x30d)](_0x2a24ba,_0x46ca89)};}}),this['disposeWithMe'](_0x308dbc[_0x56902e(0x3f9)][_0x56902e(0x3bc)][_0x56902e(0x456)](()=>this[_0x56902e(0x280)]()));}};Na=X([Y(0x1,_0x5b79b4(_0xaf604c)),Y(0x2,_0x5b79b4($)),Y(0x3,_0x5b79b4(_0x57fdbe)),Y(0x4,_0x1d37e3)],Na);let Pa=class extends _0x557a26{constructor(_0x5c13df,_0xfb5c49,_0x45a3ea,_0x514791,_0x4a1509,_0x2e0e1f,_0x335dbe,_0x5de033,_0x51130e,_0x4fd72c,_0xfbd1c7){const _0x281c9c=_0x291e41;super(),this[_0x281c9c(0x394)]=_0x5c13df,this[_0x281c9c(0x2f8)]=_0xfb5c49,this[_0x281c9c(0x1f3)]=_0x45a3ea,this[_0x281c9c(0x408)]=_0x514791,this[_0x281c9c(0x202)]=_0x4a1509,this[_0x281c9c(0x199)]=_0x2e0e1f,this[_0x281c9c(0x346)]=_0x335dbe,this[_0x281c9c(0x19e)]=_0x5de033,this[_0x281c9c(0x2d4)]=_0x51130e,this[_0x281c9c(0x449)]=_0x4fd72c,this[_0x281c9c(0x33d)]=_0xfbd1c7,q(this,'_sidebarDisposable',null),q(this,_0x281c9c(0x372),null),q(this,_0x281c9c(0x332),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x281c9c(0x2da),null),q(this,_0x281c9c(0x426),[]),this[_0x281c9c(0x1cb)](),this[_0x281c9c(0x432)](this['_univerInstanceService'][_0x281c9c(0x262)](_0x3c82b9['UNIVER_SHEET'])[_0x281c9c(0x456)](_0x3de101=>{const _0x3c171e=_0x281c9c;if(!_0x3de101){var _0x3f1b5d;(_0x3f1b5d=this[_0x3c171e(0x323)])==null||_0x3f1b5d['dispose']();}})),this[_0x281c9c(0x3c8)](),this[_0x281c9c(0x366)](),this[_0x281c9c(0x432)](this[_0x281c9c(0x33d)][_0x281c9c(0x3d8)]['subscribe'](_0x3b27ae=>{const _0xb7c765=_0x281c9c;_0x3b27ae&&this[_0xb7c765(0x278)]();}));}[_0x291e41(0x1cb)](){const _0x30be80=_0x291e41;this[_0x30be80(0x1f3)][_0x30be80(0x423)](Ki);}[_0x291e41(0x366)](){const _0x5a1a45=_0x291e41;this[_0x5a1a45(0x2da)]||=this[_0x5a1a45(0x432)](_0x5695f5(this[_0x5a1a45(0x449)],_0x3c82b9[_0x5a1a45(0x35c)],_0x3bb01f=>this['_popupMenuListener'](_0x3bb01f)));}[_0x291e41(0x360)](_0xfb6a6f,_0x550b74,_0x346315){const _0x2a1061=_0x291e41;let _0x4b0954=this[_0x2a1061(0x408)][_0x2a1061(0x1a4)](_0xfb6a6f,_0x550b74,_0x346315),_0x3db7a0=this[_0x2a1061(0x408)][_0x2a1061(0x1a0)](_0xfb6a6f,_0x550b74,_0x346315);return _0x4b0954!==void 0x0&&_0x3db7a0!==void 0x0?{'shapeData':_0x3db7a0,'shapeId':_0x346315,'shapeType':_0x4b0954,'unitId':_0xfb6a6f,'subUnitId':_0x550b74,'version':this[_0x2a1061(0x275)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x3e6534=_0x291e41;this[_0x3e6534(0x426)]['forEach'](_0x403aec=>_0x403aec[_0x3e6534(0x20d)]()),this[_0x3e6534(0x426)][_0x3e6534(0x3c3)]=0x0;}['_popupMenuListener'](_0x593c4a){const _0x21e93c=_0x291e41;let _0x3a2a48=new _0x39a460();return _0x3a2a48['add'](_0x593c4a[_0x21e93c(0x2dc)][_0x21e93c(0x456)](()=>{const _0xfd2371=_0x21e93c;let _0xba936a=_0x593c4a[_0xfd2371(0x450)]();if(this[_0xfd2371(0x278)](),this['_isOpenedShapeEditPanel']||_0xba936a['size']>0x1)return;let _0x4900f4=_0xba936a[_0xfd2371(0x3f3)]()[_0xfd2371(0x1c4)]()[_0xfd2371(0x3ec)];if(!_0x4900f4)return;let _0x329220=this[_0xfd2371(0x346)][_0xfd2371(0x1aa)](_0x4900f4['oKey']);if(!_0x329220||_0x329220[_0xfd2371(0x209)]!==_0x40fd85[_0xfd2371(0x43a)])return;let {unitId:_0x5ab2a4,subUnitId:_0x3fb88d,drawingId:_0x35bde7,drawingType:_0x4c1098}=_0x329220,_0x2e454f=this[_0xfd2371(0x360)](_0x5ab2a4,_0x3fb88d,_0x35bde7);if(!_0x2e454f)return;this[_0xfd2371(0x2d4)]['setContextValue'](_0x317872,!0x0);let _0x5adb7f=this['_renderManagerService'][_0xfd2371(0x3a7)](_0x5ab2a4),_0x317fcc=((_0x5adb7f==null?void 0x0:_0x5adb7f[_0xfd2371(0x2f7)])===!0x1?_0x5adb7f['with'](_0x57fdbe):this['_sheetCanvasPopManagerService'])['attachPopupToObject'](_0x4900f4,{'componentKey':Vr,'direction':_0xfd2371(0x1f8),'offset':[0x0,_0xf7ed1d],'extraProps':{'unitId':_0x5ab2a4,'subUnitId':_0x3fb88d,'drawingId':_0x35bde7,'drawingType':_0x4c1098,'shapeType':_0x2e454f[_0xfd2371(0x3e1)],'shapeData':_0x2e454f[_0xfd2371(0x3ad)]}});this[_0xfd2371(0x426)][_0xfd2371(0x1b9)](this[_0xfd2371(0x432)](_0x317fcc)),this[_0xfd2371(0x346)]['getFocusDrawings']()[_0xfd2371(0x1e4)](_0x10c5c8=>_0x10c5c8[_0xfd2371(0x351)]===_0x5ab2a4&&_0x10c5c8[_0xfd2371(0x21b)]===_0x3fb88d&&_0x10c5c8['drawingId']===_0x35bde7)||this[_0xfd2371(0x346)]['focusDrawing']([{'unitId':_0x5ab2a4,'subUnitId':_0x3fb88d,'drawingId':_0x35bde7}]);})),_0x3a2a48['add'](_0x593c4a[_0x21e93c(0x37e)][_0x21e93c(0x456)](()=>{const _0x1c4085=_0x21e93c;this[_0x1c4085(0x278)](),this[_0x1c4085(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x1c4085(0x346)][_0x1c4085(0x2bd)](null);})),_0x3a2a48[_0x21e93c(0x322)](_0x593c4a['changing$'][_0x21e93c(0x456)](()=>{const _0x53b6a0=_0x21e93c;this[_0x53b6a0(0x278)]();})),_0x3a2a48[_0x21e93c(0x322)](_0x593c4a[_0x21e93c(0x36c)]['subscribe'](()=>{const _0x104b3b=_0x21e93c;this[_0x104b3b(0x278)]();})),_0x53ca46(()=>{const _0x26b9c7=_0x21e93c;_0x3a2a48['dispose'](),this[_0x26b9c7(0x278)]();});}[_0x291e41(0x3c8)](){const _0x1c9850=_0x291e41;this[_0x1c9850(0x432)](this['_commandService'][_0x1c9850(0x43c)](_0x35aeb6=>{const _0x524084=_0x1c9850;if(_0x35aeb6['id']===Kr['id']){let {unitId:_0x1167d3,subUnitId:_0x63ae4b,drawingId:_0x2dd40d}=_0x35aeb6[_0x524084(0x2b1)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x524084(0x360)](_0x1167d3,_0x63ae4b,_0x2dd40d),this[_0x524084(0x278)](),this['_openShapeEditPanel']();}if(_0x35aeb6['id']===xa['id']&&(this[_0x524084(0x372)]=null,this[_0x524084(0x218)]()),_0x35aeb6['id']===_0x172941['id']){let {unitId:_0x403eed,subUnitId:_0xb17036,shapeId:_0x7c868d}=_0x35aeb6[_0x524084(0x2b1)];if(this[_0x524084(0x372)]&&this[_0x524084(0x372)][_0x524084(0x416)]===_0x7c868d){let _0x41c919=this[_0x524084(0x360)](_0x403eed,_0xb17036,_0x7c868d);_0x41c919&&(this['_shapeEditPanelVersion']+=0x1,_0x41c919[_0x524084(0x403)]=this[_0x524084(0x275)],this[_0x524084(0x372)]=_0x41c919,this['_isOpenedShapeEditPanel']&&this[_0x524084(0x219)]());}}})),this[_0x1c9850(0x432)](this[_0x1c9850(0x346)][_0x1c9850(0x1d8)][_0x1c9850(0x456)](_0x3f1d26=>{const _0x51360f=_0x1c9850;if(this[_0x51360f(0x332)]===!0x1)return;if(_0x3f1d26[_0x51360f(0x3c3)]===0x0){this[_0x51360f(0x372)]=null,this['_closeShapeEditPanel']();return;}if(_0x3f1d26[_0x51360f(0x3c3)]===0x1&&_0x3f1d26[0x0][_0x51360f(0x209)]===_0x40fd85[_0x51360f(0x43a)]&&(this[_0x51360f(0x275)]+=0x1,this[_0x51360f(0x372)]=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0][_0x51360f(0x21b)],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)])){this[_0x51360f(0x219)]();return;}let _0x14071e=_0x3f1d26[_0x51360f(0x3c0)](_0x2a1b5b=>_0x2a1b5b[_0x51360f(0x209)]===_0x40fd85[_0x51360f(0x43a)]);if(_0x3f1d26[_0x51360f(0x3c3)]>0x1&&_0x14071e[_0x51360f(0x3c3)]===_0x3f1d26['length']){if(this[_0x51360f(0x275)]+=0x1,this['_activeShapeInfo']=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0]['subUnitId'],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)]){this[_0x51360f(0x219)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x51360f(0x372)]=this[_0x51360f(0x360)](_0x3f1d26[0x0][_0x51360f(0x351)],_0x3f1d26[0x0][_0x51360f(0x21b)],_0x3f1d26[0x0][_0x51360f(0x1dd)]),this[_0x51360f(0x372)]){this[_0x51360f(0x372)]['disableShapeOption']=!0x0,this[_0x51360f(0x219)]();return;}}this[_0x51360f(0x218)]();}));}[_0x291e41(0x219)](){const _0x2e31ab=_0x291e41;this[_0x2e31ab(0x372)]&&(this[_0x2e31ab(0x323)]=this[_0x2e31ab(0x2f8)][_0x2e31ab(0x269)]({'id':zr,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':zr,...this['_activeShapeInfo']},'onClose':()=>{const _0x220708=_0x2e31ab;this[_0x220708(0x346)]['focusDrawing'](null),this[_0x220708(0x2d4)]['setContextValue'](_0x317872,!0x1),this[_0x220708(0x323)]=null;}}),this[_0x2e31ab(0x332)]=!0x0);}[_0x291e41(0x218)](){const _0x5d068a=_0x291e41;this[_0x5d068a(0x332)]=!0x1,this[_0x5d068a(0x2f8)][_0x5d068a(0x415)](zr),this['_sidebarDisposable']=null,this[_0x5d068a(0x2d4)][_0x5d068a(0x409)](_0x317872,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Pa=X([Y(0x0,_0x44b74c),Y(0x1,_0x5b79b4(_0x31c5f5)),Y(0x2,_0x24215b),Y(0x3,_0x5b79b4(_0x1e1f0c)),Y(0x4,_0x5b79b4(_0x13738a)),Y(0x5,_0x54c16f),Y(0x6,_0x28cffc),Y(0x7,_0x5b79b4(_0x57fdbe)),Y(0x8,_0x4b3877),Y(0x9,_0x1158d5),Y(0xa,_0x5b79b4($))],Pa);let Fa=class extends _0x1f6119{constructor(_0x29efcf=Zi,_0x203255,_0xac0c65,_0x5f3818,_0x49cfa5){const _0x5033d5=_0x291e41;super(),this['_config']=_0x29efcf,this[_0x5033d5(0x369)]=_0x203255,this[_0x5033d5(0x199)]=_0xac0c65,this[_0x5033d5(0x40d)]=_0x5f3818,this[_0x5033d5(0x449)]=_0x49cfa5;let {..._0x459207}=_0x45bd5a({},Zi,this[_0x5033d5(0x28d)]);this[_0x5033d5(0x40d)][_0x5033d5(0x458)](Xi,_0x459207),this[_0x5033d5(0x1b0)]();}['onRendered'](){const _0x1a78e0=_0x291e41;this[_0x1a78e0(0x449)][_0x1a78e0(0x410)](_0x3c82b9[_0x1a78e0(0x435)],[Ma]),_0x125864(this['_injector'],[[Pa],[ua],[Z],[_a]]);}['onSteady'](){const _0x32003a=_0x291e41;this[_0x32003a(0x369)][_0x32003a(0x42c)](Pa)[_0x32003a(0x366)]();}['onReady'](){const _0x170776=_0x291e41;[[pa],[Ir],[ma]][_0x170776(0x44b)](_0x4320de=>this['_injector'][_0x170776(0x322)](_0x4320de)),_0x125864(this['_injector'],[[ma],[Ir]]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[pa]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[Qi]),this['_renderManagerService'][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[ga]),this[_0x170776(0x449)][_0x170776(0x410)](_0x3c82b9[_0x170776(0x35c)],[ia]),this['disposeWithMe'](this[_0x170776(0x449)]['registerRenderModule'](_0x3c82b9[_0x170776(0x35c)],[Na])),this[_0x170776(0x432)](this[_0x170776(0x449)]['registerRenderModule'](_0x3c82b9[_0x170776(0x35c)],[ka]));}[_0x291e41(0x227)](){const _0x2da02f=_0x291e41;this[_0x2da02f(0x369)][_0x2da02f(0x322)]([Oa]),this['_injector']['get'](Oa);let _0x1d6a45=this[_0x2da02f(0x369)];[[Pa],[ua],[Z],[_a],[ya],[$],[la],[Q],[va],[ja]][_0x2da02f(0x44b)](_0x51d565=>_0x1d6a45[_0x2da02f(0x322)](_0x51d565)),_0x125864(this[_0x2da02f(0x369)],[[Pa],[ua],[Z],[ya],[$],[la],[Q],[va],[ja]]);}[_0x291e41(0x1b0)](){const _0x4ed0f7=_0x291e41;[Rr,K,xa,Kr,Gr,Lr,Jr,Yr][_0x4ed0f7(0x44b)](_0x402193=>this[_0x4ed0f7(0x432)](this['_commandService'][_0x4ed0f7(0x2ac)](_0x402193)));}};q(Fa,_0x291e41(0x28c),_0x3c82b9[_0x291e41(0x35c)]),q(Fa,_0x291e41(0x1be),_0x291e41(0x252)),q(Fa,_0x291e41(0x277),qi),q(Fa,_0x291e41(0x403),Ji),Fa=X([_0x650ae5(_0x49fb5c,_0x5795a7,_0x73a66f,_0x55e9c6,_0x3d4438,_0x4d4740,_0x3c117e,_0x470190,_0x22a2d8,_0x15f435,_0x50e887,_0x34cd91,_0x4cb8bb),Y(0x1,_0x5b79b4(_0x2882bc)),Y(0x2,_0x54c16f),Y(0x3,_0x3dbeab),Y(0x4,_0x1158d5)],Fa);export{Wi as SheetsShapeUIContextualRibbonSchema,Ki as SheetsShapeUIMenuSchema,ba as UniverSheetsShapeMobileUIPlugin,Fa as UniverSheetsShapeUIPlugin};
|