@univerjs-pro/sheets-shape-ui 1.0.0-beta.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/command/update-shape-data.command.d.ts +1 -0
- package/lib/types/commands/operations/shape-ribbon.operation.d.ts +13 -0
- package/lib/types/const.d.ts +7 -0
- package/lib/types/controllers/shape-contextual-ribbon.controller.d.ts +18 -0
- package/lib/types/controllers/shape-sheet-copy-plan.d.ts +16 -0
- package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
- package/lib/types/controllers/ui.controller.d.ts +1 -2
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/menu/schema.d.ts +1 -0
- package/lib/types/menu/shape-format-ribbon.menu.d.ts +20 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +2 -3
- package/lib/types/views/shape-format-ribbon/SheetsShapeFormatRibbonControls.d.ts +8 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x144ba7=_0x38f0;(function(_0x2d9523,_0x2f8328){const _0x21546c=_0x38f0,_0xa4e8cb=_0x2d9523();while(!![]){try{const _0x5c68f7=-parseInt(_0x21546c(0x419))/0x1+-parseInt(_0x21546c(0x44a))/0x2*(-parseInt(_0x21546c(0x216))/0x3)+parseInt(_0x21546c(0x48a))/0x4+parseInt(_0x21546c(0x2e7))/0x5+-parseInt(_0x21546c(0x261))/0x6*(-parseInt(_0x21546c(0x220))/0x7)+parseInt(_0x21546c(0x361))/0x8*(parseInt(_0x21546c(0x33b))/0x9)+-parseInt(_0x21546c(0x194))/0xa*(parseInt(_0x21546c(0x2d3))/0xb);if(_0x5c68f7===_0x2f8328)break;else _0xa4e8cb['push'](_0xa4e8cb['shift']());}catch(_0x401390){_0xa4e8cb['push'](_0xa4e8cb['shift']());}}}(_0x1000,0x4396f),Object[_0x144ba7(0x3da)](exports,Symbol[_0x144ba7(0x411)],{'value':_0x144ba7(0x237)}));let e=require('@univerjs/ui'),t=require('@univerjs-pro/engine-shape'),n=require('@univerjs-pro/shape-editor'),r=require('@univerjs-pro/sheets-shape'),i=require('@univerjs/core'),a=require('@univerjs/sheets'),o=require('@univerjs/drawing'),s=require('@univerjs/engine-render'),c=require('@univerjs/sheets-ui'),l=require('rxjs'),u=require('@univerjs-pro/shape-editor-ui'),d=require('@univerjs/drawing-ui'),f=require('react/jsx-runtime'),p=require('@univerjs-pro/license'),m=require('@univerjs/docs'),h=require('@univerjs/docs-ui'),g=require('@univerjs/sheets-drawing'),_=require('@univerjs/sheets-drawing-ui'),v=require('@univerjs/icons'),y=require('react');function b(_0x4263f1,_0x50738c){const _0xf34c90=_0x144ba7;let _0x5cc2c8={};for(let _0x27f4da of Object['keys'](_0x50738c)){let _0x2cd329=_0x50738c[_0x27f4da],_0x3aaa90=_0x4263f1[_0x27f4da];if(_0x2cd329!==void 0x0){if(_0x3aaa90===void 0x0){_0x5cc2c8[_0x27f4da]=void 0x0;continue;}typeof _0x2cd329==_0xf34c90(0x48e)&&_0x2cd329&&!Array[_0xf34c90(0x38f)](_0x2cd329)&&typeof _0x3aaa90==_0xf34c90(0x48e)&&_0x3aaa90&&!Array['isArray'](_0x3aaa90)?_0x5cc2c8[_0x27f4da]=b(_0x3aaa90,_0x2cd329):_0x5cc2c8[_0x27f4da]=_0x3aaa90;}}return _0x5cc2c8;}const x={'type':i[_0x144ba7(0x333)]['COMMAND'],'id':_0x144ba7(0x1fd),'handler':(_0x606433,_0x5e35a5)=>{const _0x12c672=_0x144ba7;let _0x5f3c2=_0x606433['get'](r[_0x12c672(0x25b)]),{unitId:_0x6334fc,subUnitId:_0x428638,shapeType:_0x10dcc5,shapeId:_0x28d2e0,shapeData:_0x514ef5,oldShapeJSON:_0x133537}=_0x5e35a5;if(!_0x5f3c2[_0x12c672(0x3b2)](_0x6334fc,_0x428638,_0x28d2e0))return!0x1;let _0x20b608=_0x606433[_0x12c672(0x45d)](i['ICommandService']),_0x28d89a=_0x606433['get'](i[_0x12c672(0x272)]),{oldShapeType:_0x9fd890,oldShapeData:_0x2a2972={}}=_0x133537,_0x8b7f19=b(_0x2a2972,_0x514ef5||{}),_0x1f29a4={'id':r['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x6334fc,'subUnitId':_0x428638,'shapeId':_0x28d2e0,'shapeType':_0x10dcc5,'shapeData':_0x514ef5}},_0x4b6bbb={'id':r['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x6334fc,'subUnitId':_0x428638,'shapeId':_0x28d2e0,'shapeType':_0x9fd890,'shapeData':_0x8b7f19}};return _0x20b608['syncExecuteCommand'](_0x1f29a4['id'],_0x1f29a4['params'])?(_0x28d89a[_0x12c672(0x288)]({'unitID':_0x6334fc,'undoMutations':[_0x4b6bbb],'redoMutations':[_0x1f29a4]}),!0x0):!0x1;}};function S(_0x107bfa,_0x566e13,_0x1d965a,_0x54e3d8,_0x5b583d,_0x407855){const _0x15bcc5=_0x144ba7;let _0x1ffffd={'unitId':_0x566e13,'subUnitId':_0x1d965a,'shapeId':_0x54e3d8,'shapeData':_0x407855,'oldShapeJSON':_0x5b583d};return _0x107bfa[_0x15bcc5(0x3e5)](x['id'],_0x1ffffd);}function C(_0x1e0541,_0x5c499a,_0x372875,_0x3b2f28,_0x55344d,_0x37ee88){const _0x3352b1=_0x144ba7;let _0x57f555={'unitId':_0x5c499a,'subUnitId':_0x372875,'shapeId':_0x3b2f28,'shapeData':_0x37ee88,'oldShapeJSON':_0x55344d};return _0x1e0541[_0x3352b1(0x3e5)](x['id'],_0x57f555);}function w(_0x4b56f7){'@babel/helpers - typeof';const _0x3603d7=_0x144ba7;return w=typeof Symbol==_0x3603d7(0x249)&&typeof Symbol[_0x3603d7(0x245)]==_0x3603d7(0x43e)?function(_0x2d2e16){return typeof _0x2d2e16;}:function(_0x573782){const _0x9d36b7=_0x3603d7;return _0x573782&&typeof Symbol==_0x9d36b7(0x249)&&_0x573782[_0x9d36b7(0x3f8)]===Symbol&&_0x573782!==Symbol[_0x9d36b7(0x47d)]?'symbol':typeof _0x573782;},w(_0x4b56f7);}function T(_0x35b0ae,_0x4efa3d){const _0x18c4d1=_0x144ba7;if(w(_0x35b0ae)!=_0x18c4d1(0x48e)||!_0x35b0ae)return _0x35b0ae;var _0x5c4208=_0x35b0ae[Symbol[_0x18c4d1(0x1d6)]];if(_0x5c4208!==void 0x0){var _0x555655=_0x5c4208[_0x18c4d1(0x26a)](_0x35b0ae,_0x4efa3d||_0x18c4d1(0x3ba));if(w(_0x555655)!='object')return _0x555655;throw TypeError(_0x18c4d1(0x42b));}return(_0x4efa3d===_0x18c4d1(0x468)?String:Number)(_0x35b0ae);}function ee(_0x2a074c){const _0x19d248=_0x144ba7;var _0x537824=T(_0x2a074c,_0x19d248(0x468));return w(_0x537824)==_0x19d248(0x43e)?_0x537824:_0x537824+'';}function E(_0x1c5e19,_0x55b03e,_0x104523){return(_0x55b03e=ee(_0x55b03e))in _0x1c5e19?Object['defineProperty'](_0x1c5e19,_0x55b03e,{'value':_0x104523,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c5e19[_0x55b03e]=_0x104523,_0x1c5e19;}function te(_0x3d602e,_0x1524e9,_0x45de19){const _0x4432e2=_0x144ba7;let _0x378fa4=(0x0,u[_0x4432e2(0x19b)])(_0x3d602e,{..._0x1524e9,'dataModel':{..._0x1524e9[_0x4432e2(0x321)]??{},..._0x45de19?{'doc':_0x45de19}:null}}),_0x5b07f8=(0x0,u['resolveShapeTextEditorWrapStrategy'])(_0x378fa4);return{'clip':(0x0,u[_0x4432e2(0x278)])(_0x378fa4,_0x5b07f8),'wrapStrategy':_0x5b07f8};}var D=class extends s[_0x144ba7(0x3e6)]{constructor(_0x181038,_0x27cbc2){const _0x5ccc00=_0x144ba7;super(_0x181038,_0x27cbc2),E(this,_0x5ccc00(0x1a4),void 0x0),E(this,_0x5ccc00(0x416),new u[(_0x5ccc00(0x331))](()=>this[_0x5ccc00(0x412)](!0x0),()=>this[_0x5ccc00(0x3f2)]())),E(this,_0x5ccc00(0x1e1),!0x0),E(this,_0x5ccc00(0x2f1),i['DrawingTypeEnum']['DRAWING_SHAPE']),E(this,_0x5ccc00(0x2dd),!0x0),this[_0x5ccc00(0x1a4)]={..._0x27cbc2},this['_formulaAnimation'][_0x5ccc00(0x3c4)](_0x27cbc2[_0x5ccc00(0x2a8)],_0x27cbc2['animateFormulaPresentation']!==!0x1),this['_init'](),this['_applyFormulaAutoFitSize']();}[_0x144ba7(0x3a2)](){const _0x439521=_0x144ba7;this[_0x439521(0x2d5)][_0x439521(0x39d)](_0x4047bc=>{this['_updateSrcRectByTransform'](_0x4047bc);});}[_0x144ba7(0x37e)](_0x30f59d){const _0x1ba839=_0x144ba7;this['_props'][_0x1ba839(0x23f)]=_0x30f59d;}[_0x144ba7(0x1e3)](_0x4301b6){const _0x3edbeb=_0x144ba7;this[_0x3edbeb(0x1a4)][_0x3edbeb(0x2a9)]=_0x4301b6,this[_0x3edbeb(0x412)](!0x0);}[_0x144ba7(0x480)](_0x52239c,_0x2a430d=!0x0){const _0x1e7b01=_0x144ba7;this['_formulaAnimation'][_0x1e7b01(0x3c4)](_0x52239c,_0x2a430d),this[_0x1e7b01(0x1a4)][_0x1e7b01(0x2a8)]=_0x52239c,this['_applyFormulaAutoFitSize'](),this[_0x1e7b01(0x412)](!0x0);}[_0x144ba7(0x3f2)](){const _0x20afc1=_0x144ba7;let _0x1cb6ca=this[_0x20afc1(0x1a4)][_0x20afc1(0x320)],_0x2c154f=_0x1cb6ca[_0x20afc1(0x366)](),_0x4d0835=(0x0,u[_0x20afc1(0x3a7)])(_0x2c154f==null?void 0x0:_0x2c154f[_0x20afc1(0x321)]),_0x542e56=_0x4d0835==null?void 0x0:_0x4d0835[_0x20afc1(0x3ac)],_0x1ee4f6=this['_formulaAnimation'][_0x20afc1(0x381)]();if(!_0x542e56||_0x1ee4f6[_0x20afc1(0x38e)]===0x0)return;_0x1cb6ca['updateContext']({'width':this[_0x20afc1(0x1d7)],'height':this['height']});let _0x531b4a=(0x0,u[_0x20afc1(0x1b6)])({'documentData':_0x1ee4f6[_0x20afc1(0x3c5)](_0x5357e0=>(0x0,n[_0x20afc1(0x316)])(_0x542e56,_0x5357e0)),'height':this[_0x20afc1(0x3cb)],'shapeData':_0x1cb6ca[_0x20afc1(0x2db)](),'textRect':_0x1cb6ca['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x20afc1(0x1d7)],'height':this[_0x20afc1(0x3cb)]}),'width':this[_0x20afc1(0x1d7)]});if(_0x531b4a){var _0x15c8dc;this[_0x20afc1(0x23d)](_0x531b4a[_0x20afc1(0x1d7)],_0x531b4a[_0x20afc1(0x3cb)]),(_0x15c8dc=this[_0x20afc1(0x1c7)]())==null||(_0x15c8dc=_0x15c8dc[_0x20afc1(0x312)]())==null||_0x15c8dc[_0x20afc1(0x2ba)]();}}get[_0x144ba7(0x436)](){const _0x5e8587=_0x144ba7;return this[_0x5e8587(0x1a4)][_0x5e8587(0x436)];}get[_0x144ba7(0x1ee)](){const _0x834b36=_0x144ba7;return this[_0x834b36(0x1a4)][_0x834b36(0x1ee)];}['_updateSrcRectByTransform'](_0x3922d1){const _0x30c8a0=_0x144ba7;if(this['_props'][_0x30c8a0(0x463)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x5dc0a0,height:_0x38774b}=this,{width:_0x2b10e0=0x0,height:_0x2a096d=0x0}=_0x3922d1[_0x30c8a0(0x2e5)],{left:_0x5c898d=0x0,top:_0x3ede7a=0x0,right:_0x55028a=0x0,bottom:_0x826c8=0x0}=this[_0x30c8a0(0x1a4)][_0x30c8a0(0x463)],_0x3be573=_0x5c898d,_0x14e017=_0x3ede7a,_0x3d6c96=_0x55028a,_0x11f9e2=_0x826c8,_0x49805d=!0x1;if(_0x2b10e0!==0x0&&_0x2b10e0!==_0x5dc0a0){let _0x2f3f55=_0x5c898d/_0x2b10e0,_0x227001=_0x55028a/_0x2b10e0;_0x3be573=_0x5dc0a0*_0x2f3f55,_0x3d6c96=_0x5dc0a0*_0x227001,_0x49805d=!0x0;}if(_0x2a096d!==0x0&&_0x2a096d!==_0x38774b){let _0x4cc3cb=_0x3ede7a/_0x2a096d,_0x2710e8=_0x826c8/_0x2a096d;_0x14e017=_0x38774b*_0x4cc3cb,_0x11f9e2=_0x38774b*_0x2710e8,_0x49805d=!0x0;}_0x49805d&&this[_0x30c8a0(0x24d)]({'left':_0x3be573,'top':_0x14e017,'right':_0x3d6c96,'bottom':_0x11f9e2});}[_0x144ba7(0x24d)](_0xc4550e){const _0x3d3c0a=_0x144ba7;this[_0x3d3c0a(0x1a4)][_0x3d3c0a(0x463)]=_0xc4550e,this[_0x3d3c0a(0x412)](!0x0);}['setFillImage'](_0x1e4685){const _0x422be3=_0x144ba7;this['_props'][_0x422be3(0x267)]=_0x1e4685,this[_0x422be3(0x412)](!0x0);}set[_0x144ba7(0x3a8)](_0xb959fd){const _0x30b523=_0x144ba7;this[_0x30b523(0x195)]=_0xb959fd;}get[_0x144ba7(0x3a8)](){const _0x406ebf=_0x144ba7;this[_0x406ebf(0x195)]||this[_0x406ebf(0x35f)]();let _0x48d6da=this[_0x406ebf(0x195)][_0x406ebf(0x46c)]();return this[_0x406ebf(0x471)](_0x48d6da);}get['shapeModel'](){const _0x47d58d=_0x144ba7;return this['_props'][_0x47d58d(0x320)];}get[_0x144ba7(0x3c2)](){const _0x5c2dff=_0x144ba7;return this[_0x5c2dff(0x1a4)][_0x5c2dff(0x3c2)];}get['classType'](){const _0x4bedd1=_0x144ba7;return s[_0x4bedd1(0x3be)]['SHAPE'];}[_0x144ba7(0x3a4)](_0x414a9a,_0x36e897,_0x5eca4c,_0x4b95bc){const _0x3b155b=_0x144ba7;let _0x7e498f=this[_0x3b155b(0x1a4)][_0x3b155b(0x320)];if(!_0x7e498f||!_0x36e897)return;let _0xd9848c=_0x5eca4c??this[_0x3b155b(0x1d7)],_0x58b4e0=_0x4b95bc??this[_0x3b155b(0x3cb)],_0x1c813b={'shapeType':_0x7e498f[_0x3b155b(0x196)](),'width':_0xd9848c,'height':_0x58b4e0},_0x46731f={'renderMode':t[_0x3b155b(0x310)][_0x3b155b(0x3c1)],'oKey':this[_0x3b155b(0x30b)],'image':this[_0x3b155b(0x1a4)][_0x3b155b(0x267)],'angle':this[_0x3b155b(0x3e1)]};_0x7e498f[_0x3b155b(0x307)](_0x1c813b),_0x414a9a['save']();let _0x1e978e={'top':0x0,'left':0x0,'width':_0xd9848c,'height':_0x58b4e0},_0x3d7ef9=_0x7e498f[_0x3b155b(0x266)](_0x1e978e);_0x3d7ef9?this[_0x3b155b(0x206)](_0x414a9a,_0x3d7ef9,_0x268f00=>{const _0x5c7e3f=_0x3b155b;_0x7e498f[_0x5c7e3f(0x374)](_0x268f00,_0x1e978e,_0x46731f);}):(this[_0x3b155b(0x432)](),_0x7e498f[_0x3b155b(0x374)](_0x414a9a,_0x1e978e,_0x46731f)),_0x414a9a[_0x3b155b(0x263)]();let _0x24ed18=_0x7e498f[_0x3b155b(0x366)](),_0x23c193=_0x7e498f[_0x3b155b(0x3df)](_0x1e978e),_0x204be0=_0x7e498f[_0x3b155b(0x1f2)]();if(_0x24ed18&&_0x23c193&&!_0x204be0){_0x414a9a[_0x3b155b(0x29e)](),this[_0x3b155b(0x459)]()[_0x3b155b(0x3ce)]&&_0x414a9a[_0x3b155b(0x3cc)](-0x1,0x1);let _0x3781c7=_0xd9848c/0x2,_0x38ad0f=_0x58b4e0/0x2;_0x414a9a[_0x3b155b(0x410)](-_0x3781c7,-_0x38ad0f),_0x414a9a[_0x3b155b(0x227)](),this[_0x3b155b(0x3d1)](_0x414a9a,_0x24ed18,_0x23c193),_0x414a9a['restore']();}}['getDrawingPoints'](_0x49d25a){}[_0x144ba7(0x3d1)](_0x37ac33,_0x5a7ef2,_0x1b8d8a){const _0x4ff7dd=_0x144ba7;var _0x74ab88;this[_0x4ff7dd(0x1a4)][_0x4ff7dd(0x2a9)]||(!((_0x74ab88=_0x5a7ef2[_0x4ff7dd(0x321)])!=null&&_0x74ab88[_0x4ff7dd(0x3ac)])&&_0x4ff7dd(0x3e9)in _0x5a7ef2&&_0x5a7ef2[_0x4ff7dd(0x3e9)]===!0x1?this[_0x4ff7dd(0x2e0)](_0x37ac33,_0x5a7ef2,_0x1b8d8a):this[_0x4ff7dd(0x467)](_0x37ac33,_0x5a7ef2,_0x1b8d8a));}[_0x144ba7(0x2e0)](_0x2e28a1,_0x26c0e6,_0x4ab494){const _0x4817c8=_0x144ba7;this[_0x4817c8(0x467)](_0x2e28a1,{..._0x26c0e6,'text':_0x26c0e6[_0x4817c8(0x414)]??'','dataModel':{'doc':(0x0,u[_0x4817c8(0x42c)])(_0x26c0e6,_0x4817c8(0x35e)+this['oKey'])}},_0x4ab494);}[_0x144ba7(0x467)](_0x4d84fd,_0x2f2849,_0x2da866){const _0x222554=_0x144ba7;(0x0,u[_0x222554(0x43d)])(_0x4d84fd,this[_0x222554(0x416)],(_0xb94a8,_0x2db65e)=>{const _0xf8b9ed=_0x222554;this[_0xf8b9ed(0x2c7)](_0xb94a8,_0x2f2849,_0x2da866,_0x2db65e);});}['_drawRichTextLayer'](_0x4f05aa,_0x7ecd0b,_0x745507,_0x30f949){const _0x2daf4e=_0x144ba7;let _0x3cfa8d=this[_0x2daf4e(0x1a4)]['localeService'];if(!_0x7ecd0b[_0x2daf4e(0x321)]||!_0x3cfa8d)return;let _0x29c975=(0x0,u['normalizeShapeTextModel'])(_0x7ecd0b[_0x2daf4e(0x321)]);if(!_0x29c975)return;let _0x5eedc3=_0x29c975['doc'];if(!_0x5eedc3)return;let _0x1ecb39=(0x0,n[_0x2daf4e(0x316)])(_0x5eedc3,_0x30f949),_0x7d305b=_0x29c975['va']??i[_0x2daf4e(0x259)][_0x2daf4e(0x24f)],_0x4f69de=_0x29c975['ha']??i[_0x2daf4e(0x386)][_0x2daf4e(0x1ec)],_0x334da3=te(this[_0x2daf4e(0x1a4)]['shapeModel']['getShapeData'](),_0x7ecd0b,_0x1ecb39),_0x3cab96=_0x7ecd0b[_0x2daf4e(0x1e9)],_0x1b1b4f=new i[(_0x2daf4e(0x342))]((0x0,u[_0x2daf4e(0x226)])(_0x1ecb39,{'isHorizontal':_0x3cab96!==!0x1,'textRect':_0x745507,'verticalAlign':_0x7d305b,'horizontalAlign':_0x4f69de,'wrapStrategy':_0x334da3[_0x2daf4e(0x1ae)]})),_0x535878=new s[(_0x2daf4e(0x404))](_0x1b1b4f),_0x4a7509=s[_0x2daf4e(0x2ac)][_0x2daf4e(0x31e)](_0x535878,_0x3cfa8d);_0x4a7509['calculate']();let _0x4dbb0a=_0x4a7509[_0x2daf4e(0x19a)]()['actualHeight'],_0x89c1e9=(0x0,u[_0x2daf4e(0x3af)])({'contentHeight':_0x4dbb0a,'verticalAlign':_0x7d305b,'viewportHeight':_0x745507[_0x2daf4e(0x3cb)]});_0x1b1b4f[_0x2daf4e(0x49c)]({'pageSize':{'width':_0x3cab96===!0x1?_0x745507[_0x2daf4e(0x3cb)]:_0x745507[_0x2daf4e(0x1d7)],'height':_0x89c1e9[_0x2daf4e(0x441)]}}),_0x1b1b4f['updateDocumentDataMargin']({'t':_0x89c1e9[_0x2daf4e(0x3bb)]}),_0x4a7509['calculate']();let _0x194c68=new s[(_0x2daf4e(0x3c3))](_0x2daf4e(0x2c4)+this[_0x2daf4e(0x30b)],_0x4a7509,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x194c68[_0x2daf4e(0x23d)](_0x745507['width'],_0x89c1e9[_0x2daf4e(0x441)]),_0x4f05aa[_0x2daf4e(0x29e)](),_0x4f05aa[_0x2daf4e(0x1fa)](_0x745507['left'],_0x745507[_0x2daf4e(0x46b)]),_0x334da3[_0x2daf4e(0x433)]&&(_0x4f05aa[_0x2daf4e(0x227)](),_0x4f05aa[_0x2daf4e(0x229)](0x0,_0x89c1e9['clipTop'],_0x745507['width'],_0x89c1e9[_0x2daf4e(0x2a7)]),_0x4f05aa[_0x2daf4e(0x433)]()),_0x89c1e9[_0x2daf4e(0x46a)]&&_0x4f05aa[_0x2daf4e(0x1fa)](0x0,_0x89c1e9[_0x2daf4e(0x46a)]),_0x194c68[_0x2daf4e(0x224)](_0x4f05aa),_0x4f05aa[_0x2daf4e(0x263)](),_0x194c68[_0x2daf4e(0x33d)](),_0x4a7509['dispose'](),_0x535878['dispose'](),_0x1b1b4f[_0x2daf4e(0x33d)]();}[_0x144ba7(0x374)](_0x207bb1,_0x24d5a6,_0x109a51=!0x1){const _0x4004bb=_0x144ba7;if(!this[_0x4004bb(0x454)])return this['makeDirty'](!0x1),this;let {width:_0x131541,height:_0x53107c,left:_0x1eb757,top:_0x3d6879}=this,_0x39419b=this['getRealBound']();if(_0x131541=_0x39419b[_0x4004bb(0x1d7)],_0x53107c=_0x39419b[_0x4004bb(0x3cb)],_0x1eb757=_0x39419b[_0x4004bb(0x34e)],_0x3d6879=_0x39419b[_0x4004bb(0x46b)],this[_0x4004bb(0x1ff)](_0x24d5a6)){let {top:_0x9529f0,left:_0x2c5509,bottom:_0x38697d,right:_0x1f50e8}=_0x24d5a6[_0x4004bb(0x300)];if(_0x131541+this['strokeWidth']+_0x1eb757<_0x2c5509||_0x1f50e8<_0x1eb757||_0x53107c+this[_0x4004bb(0x394)]+_0x3d6879<_0x9529f0||_0x38697d<_0x3d6879)return this;}let _0x489524=_0x1eb757+_0x131541/0x2,_0x447366=_0x3d6879+_0x53107c/0x2,_0x143964=this[_0x4004bb(0x3a8)][_0x4004bb(0x3f1)]();if(this['_props'][_0x4004bb(0x2a9)]){let _0x429cc4=this[_0x4004bb(0x459)](),_0x2bf5a6=new s['Transform']();_0x2bf5a6[_0x4004bb(0x22b)]({..._0x429cc4}),_0x143964=_0x2bf5a6[_0x4004bb(0x3f1)]();}return _0x207bb1[_0x4004bb(0x29e)](),this[_0x4004bb(0x1a4)][_0x4004bb(0x320)][_0x4004bb(0x26f)]===!0x0||_0x207bb1[_0x4004bb(0x3a8)](_0x143964[0x0],_0x143964[0x1],_0x143964[0x2],_0x143964[0x3],_0x489524,_0x447366),this[_0x4004bb(0x3a4)](_0x207bb1,_0x24d5a6,_0x131541,_0x53107c),_0x207bb1[_0x4004bb(0x263)](),this[_0x4004bb(0x412)](!0x1),this;}[_0x144ba7(0x2fd)](_0x48fa6e){const _0x2cb2ee=_0x144ba7;let {left:_0x32a56a,top:_0x1fc0f7,width:_0x10d506,height:_0x2c2dd9}=this[_0x2cb2ee(0x474)](),_0x4e06b0=this[_0x2cb2ee(0x3a8)][_0x2cb2ee(0x3f1)](),_0x4250ff=_0x32a56a+_0x10d506/0x2,_0x423776=_0x1fc0f7+_0x2c2dd9/0x2,_0x5de44b=new s[(_0x2cb2ee(0x25d))]([_0x4e06b0[0x0],_0x4e06b0[0x1],_0x4e06b0[0x2],_0x4e06b0[0x3],_0x4250ff,_0x423776]),_0x20e8fc=this['getParent']();return(this[_0x2cb2ee(0x274)]&&(_0x20e8fc==null?void 0x0:_0x20e8fc[_0x2cb2ee(0x3dc)])===s[_0x2cb2ee(0x3be)][_0x2cb2ee(0x341)]?_0x20e8fc['ancestorTransform'][_0x2cb2ee(0x2a0)](_0x5de44b):_0x5de44b)['invert']()[_0x2cb2ee(0x232)](_0x48fa6e);}['isHit'](_0x3bbdb6){const _0x5e81ca=_0x144ba7;let {left:_0x4cb3ae,top:_0x146ea7,width:_0x38c231,height:_0x5388e7}=this[_0x5e81ca(0x474)](),_0x57ee28=_0x4cb3ae+_0x38c231/0x2,_0xb4e5d3=_0x146ea7+_0x5388e7/0x2,_0x5776af=this[_0x5e81ca(0x3a8)]['getMatrix'](),_0x1a3b92=new s['Transform']([_0x5776af[0x0],_0x5776af[0x1],_0x5776af[0x2],_0x5776af[0x3],_0x57ee28,_0xb4e5d3]),_0x37c96b=this[_0x5e81ca(0x2f9)](),_0x259d18=(this[_0x5e81ca(0x274)]&&(_0x37c96b==null?void 0x0:_0x37c96b['classType'])===s[_0x5e81ca(0x3be)][_0x5e81ca(0x341)]?_0x37c96b[_0x5e81ca(0x23e)][_0x5e81ca(0x2a0)](_0x1a3b92):_0x1a3b92)[_0x5e81ca(0x417)]()[_0x5e81ca(0x232)](_0x3bbdb6),_0xec38e6=_0x38c231/0x2,_0x263de8=_0x5388e7/0x2,_0x19e6c9=this[_0x5e81ca(0x1a4)][_0x5e81ca(0x320)];return _0x19e6c9&&_0x19e6c9['isLineShape']()?_0x19e6c9[_0x5e81ca(0x31a)](_0x259d18['x'],_0x259d18['y'],_0x38c231,_0x5388e7):_0x259d18['x']>=-_0xec38e6-this[_0x5e81ca(0x394)]/0x2&&_0x259d18['x']<=_0xec38e6+this[_0x5e81ca(0x394)]/0x2&&_0x259d18['y']>=-_0x263de8-this['strokeWidth']/0x2&&_0x259d18['y']<=_0x263de8+this[_0x5e81ca(0x394)]/0x2;}['dispose'](){const _0x38d14f=_0x144ba7;this['_formulaAnimation'][_0x38d14f(0x33d)](),this[_0x38d14f(0x1a4)][_0x38d14f(0x320)]=null,super[_0x38d14f(0x33d)]();}},O=class extends s[_0x144ba7(0x3e6)]{constructor(_0x3fece6,_0x5497d3){const _0x22ec2d=_0x144ba7;super(_0x3fece6,_0x5497d3),E(this,'_shapeId',null),E(this,_0x22ec2d(0x262),null),E(this,'_unitId',null),E(this,_0x22ec2d(0x469),null),_0x5497d3&&this['setShapeProps'](_0x5497d3);}[_0x144ba7(0x447)](){const _0x1b4d18=_0x144ba7;return{'unitId':this[_0x1b4d18(0x375)],'subUnitId':this[_0x1b4d18(0x469)],'drawingId':this['_shapeId']};}[_0x144ba7(0x349)](_0x2fa6e4){const _0x1fdc00=_0x144ba7;_0x2fa6e4[_0x1fdc00(0x3c2)]!==void 0x0&&(this[_0x1fdc00(0x21a)]=_0x2fa6e4['shapeId']),_0x2fa6e4[_0x1fdc00(0x1ce)]!==void 0x0&&(this[_0x1fdc00(0x262)]=_0x2fa6e4['adjName']),_0x2fa6e4[_0x1fdc00(0x436)]!==void 0x0&&(this[_0x1fdc00(0x375)]=_0x2fa6e4[_0x1fdc00(0x436)]),_0x2fa6e4[_0x1fdc00(0x1ee)]!==void 0x0&&(this[_0x1fdc00(0x469)]=_0x2fa6e4['subUnitId']),this[_0x1fdc00(0x45b)]({'width':_0x2fa6e4['width'],'height':_0x2fa6e4[_0x1fdc00(0x3cb)]});}[_0x144ba7(0x3a4)](_0x15217c){const _0x4f6c38=_0x144ba7;s[_0x4f6c38(0x22e)][_0x4f6c38(0x27e)](_0x15217c,{'radius':t[_0x4f6c38(0x3d8)][_0x4f6c38(0x493)],'fill':t[_0x4f6c38(0x3d8)]['adjHandleFill'],'stroke':t['ShapeDefaultConfig'][_0x4f6c38(0x202)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x7f511f,_0x4fdae8){return function(_0x5517ee,_0x13036c){_0x4fdae8(_0x5517ee,_0x13036c,_0x7f511f);};}function A(_0x29339a,_0x969f39,_0xd1dad0,_0x3136fc){const _0x2a217d=_0x144ba7;var _0x324319=arguments[_0x2a217d(0x38e)],_0x27eb92=_0x324319<0x3?_0x969f39:_0x3136fc===null?_0x3136fc=Object[_0x2a217d(0x449)](_0x969f39,_0xd1dad0):_0x3136fc,_0x2f3bf0;if(typeof Reflect=='object'&&typeof Reflect[_0x2a217d(0x2f5)]==_0x2a217d(0x249))_0x27eb92=Reflect[_0x2a217d(0x2f5)](_0x29339a,_0x969f39,_0xd1dad0,_0x3136fc);else{for(var _0x4ded06=_0x29339a[_0x2a217d(0x38e)]-0x1;_0x4ded06>=0x0;_0x4ded06--)(_0x2f3bf0=_0x29339a[_0x4ded06])&&(_0x27eb92=(_0x324319<0x3?_0x2f3bf0(_0x27eb92):_0x324319>0x3?_0x2f3bf0(_0x969f39,_0xd1dad0,_0x27eb92):_0x2f3bf0(_0x969f39,_0xd1dad0))||_0x27eb92);}return _0x324319>0x3&&_0x27eb92&&Object['defineProperty'](_0x969f39,_0xd1dad0,_0x27eb92),_0x27eb92;}let j=class extends i[_0x144ba7(0x2fc)]{constructor(_0x6aeb10,_0x1f6d03,_0x4cce3a,_0x8cea52,_0x1ff6f1,_0x3debff){const _0x1a8b36=_0x144ba7;super(),this[_0x1a8b36(0x234)]=_0x6aeb10,this['_sheetsShapeService']=_0x1f6d03,this[_0x1a8b36(0x1d8)]=_0x4cce3a,this[_0x1a8b36(0x27a)]=_0x8cea52,this[_0x1a8b36(0x31d)]=_0x1ff6f1,this[_0x1a8b36(0x1bc)]=_0x3debff,E(this,'_formulaShapes',new Map()),this[_0x1a8b36(0x350)](this[_0x1a8b36(0x1bc)][_0x1a8b36(0x491)][_0x1a8b36(0x3d0)](_0x585109=>{const _0x4b255c=_0x1a8b36;var _0x14638d;(_0x14638d=this[_0x4b255c(0x215)][_0x4b255c(0x45d)](this[_0x4b255c(0x20f)](_0x585109['unitId'],_0x585109[_0x4b255c(0x1ee)],_0x585109[_0x4b255c(0x3c2)])))==null||_0x14638d['forEach'](_0x13acdd=>_0x13acdd[_0x4b255c(0x480)](_0x585109['presentation'],_0x585109[_0x4b255c(0x352)]));})),this[_0x1a8b36(0x350)](this[_0x1a8b36(0x234)][_0x1a8b36(0x402)][_0x1a8b36(0x3d0)](_0x8202a5=>{const _0x29a44a=_0x1a8b36;_0x8202a5[_0x29a44a(0x313)](_0xea66c8=>{const _0x20573d=_0x29a44a;this[_0x20573d(0x1bc)][_0x20573d(0x1ed)]({'unitId':_0xea66c8[_0x20573d(0x436)],'subUnitId':_0xea66c8[_0x20573d(0x1ee)],'shapeId':_0xea66c8['drawingId']}),this['_formulaShapes'][_0x20573d(0x2f0)](this[_0x20573d(0x20f)](_0xea66c8[_0x20573d(0x436)],_0xea66c8['subUnitId'],_0xea66c8['drawingId']));});}));}[_0x144ba7(0x2e3)](_0x20d1a2,_0x525e94,_0x1d0933){const _0x3efd8f=_0x144ba7;let {transform:_0x5c26de,drawingType:_0x42610a,srcRect:_0x53a2e3,prstGeom:_0x479ec6,groupId:_0x5d6a1c,unitId:_0x47e225,subUnitId:_0x3b516d,drawingId:_0x1f044b,isMultiTransform:_0x22b7b3,transforms:_0x9a699c,hidden:_0x424d68,selectable:_0x5ce8be}=_0x20d1a2;if(_0x42610a!==i['DrawingTypeEnum']['DRAWING_SHAPE']||!this[_0x3efd8f(0x234)][_0x3efd8f(0x197)]()||_0x5c26de==null)return;let _0x21c283=this['_drawingManagerService']['getDrawingEditable']();_0x21c283&&_0x525e94[_0x3efd8f(0x482)](u['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x3fa049=_0x22b7b3&&_0x9a699c?_0x9a699c:[_0x5c26de],_0x5a7318=[];for(let _0x1de68f of _0x3fa049){let {left:_0x1dc230,top:_0x2798b7,width:_0x58dfca,height:_0x36dcb3,angle:_0x3357ee,flipX:_0x461398,flipY:_0x46e6c2,skewX:_0x29273f,skewY:_0x363119}=_0x1de68f,_0x4ce96f=_0x3fa049[_0x3efd8f(0x21f)](_0x1de68f),_0x55dd01=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x47e225,'subUnitId':_0x3b516d,'drawingId':_0x1f044b},_0x22b7b3?_0x4ce96f:void 0x0),_0x12a9d7=_0x525e94['getObjectIncludeInGroup'](_0x55dd01);if(_0x12a9d7!=null){let _0x4854ec={'unitId':_0x47e225,'subUnitId':_0x3b516d,'shapeId':_0x1f044b};_0x12a9d7 instanceof D&&this[_0x3efd8f(0x353)](_0x12a9d7,_0x4854ec),_0x12a9d7[_0x3efd8f(0x45b)]({'left':_0x1dc230,'top':_0x2798b7,'width':_0x58dfca,'height':_0x36dcb3,'angle':_0x3357ee,'flipX':_0x461398,'flipY':_0x46e6c2,'skewX':_0x29273f,'skewY':_0x363119});continue;}let _0x4722c0=this[_0x3efd8f(0x234)]['getDrawingOrder'](_0x47e225,_0x3b516d),_0x211505=_0x4722c0[_0x3efd8f(0x21f)](_0x1f044b);if(_0x525e94[_0x3efd8f(0x457)](_0x55dd01)||!this[_0x3efd8f(0x234)]['getDrawingVisible']())continue;let _0xb67a97=this[_0x3efd8f(0x1b3)]['getShapeModel'](_0x47e225,_0x3b516d,_0x1f044b);if(!_0xb67a97)continue;let _0x4a7ae7=(0x0,t[_0x3efd8f(0x1f5)])(_0xb67a97[_0x3efd8f(0x196)]()),_0x4fda8f=_0xb67a97[_0x3efd8f(0x2db)]()['formulaBinding'],_0xe554fa={'unitId':_0x47e225,'subUnitId':_0x3b516d,'shapeId':_0x1f044b};_0x4fda8f&&this[_0x3efd8f(0x1bc)][_0x3efd8f(0x3e4)](_0xe554fa,_0x4fda8f);let _0x323d6e=new D(_0x55dd01,{..._0x4a7ae7?{..._0x1de68f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x1de68f},'zIndex':_0x211505===-0x1?_0x4722c0[_0x3efd8f(0x38e)]-0x1:_0x211505,'shapeModel':_0xb67a97,'localeService':this[_0x3efd8f(0x1d8)],'shapeId':_0x1f044b,'unitId':_0x47e225,'subUnitId':_0x3b516d,'visible':_0x424d68!==!0x0,'evented':_0x5ce8be!==!0x1,'formulaPresentation':_0x4fda8f?this[_0x3efd8f(0x1bc)][_0x3efd8f(0x2ab)](_0xe554fa):void 0x0,'animateFormulaPresentation':(_0x4fda8f==null?void 0x0:_0x4fda8f[_0x3efd8f(0x352)])!==!0x1});if(_0x4fda8f){let _0x3ed7fd=this['_formulaKey'](_0x47e225,_0x3b516d,_0x1f044b),_0xdd7d7c=this[_0x3efd8f(0x215)]['get'](_0x3ed7fd)??new Set();_0xdd7d7c[_0x3efd8f(0x1f3)](_0x323d6e),this[_0x3efd8f(0x215)]['set'](_0x3ed7fd,_0xdd7d7c);}_0x525e94['addObject'](_0x323d6e,s[_0x3efd8f(0x3ea)]),_0x21c283&&_0x525e94[_0x3efd8f(0x24a)](_0x323d6e),_0x5d6a1c&&(0x0,d[_0x3efd8f(0x387)])({'drawingId':_0x5d6a1c,'unitId':_0x47e225,'subUnitId':_0x3b516d},_0x323d6e,_0x525e94,this[_0x3efd8f(0x234)]),_0x479ec6!=null&&_0x323d6e[_0x3efd8f(0x37e)](_0x479ec6),_0x53a2e3!=null&&_0x323d6e['setSrcRect'](_0x53a2e3);let _0x198606=this[_0x3efd8f(0x47c)](_0x323d6e,_0xb67a97[_0x3efd8f(0x2db)]());if(_0x198606){var _0x40548d;_0x1d0933==null||(_0x40548d=_0x1d0933['resourceCollector'])==null||_0x40548d['add'](_0x198606);}_0x5a7318[_0x3efd8f(0x405)](_0x323d6e);}return _0x5a7318;}[_0x144ba7(0x20f)](_0x1eeffc,_0x297afb,_0x183e6c){return _0x1eeffc+'\x00'+_0x297afb+'\x00'+_0x183e6c;}[_0x144ba7(0x353)](_0x14e14a,_0x37a48a){const _0x15d4a5=_0x144ba7;let _0x11b22c=this[_0x15d4a5(0x1b3)][_0x15d4a5(0x3b2)](_0x37a48a[_0x15d4a5(0x436)],_0x37a48a[_0x15d4a5(0x1ee)],_0x37a48a['shapeId']),_0x3a47d2=_0x11b22c==null?void 0x0:_0x11b22c[_0x15d4a5(0x2db)]()[_0x15d4a5(0x3c8)],_0x4ec874=this[_0x15d4a5(0x20f)](_0x37a48a[_0x15d4a5(0x436)],_0x37a48a['subUnitId'],_0x37a48a[_0x15d4a5(0x3c2)]);if(_0x3a47d2){this[_0x15d4a5(0x1bc)]['register'](_0x37a48a,_0x3a47d2);let _0x899dad=this['_formulaShapes'][_0x15d4a5(0x45d)](_0x4ec874)??new Set();_0x899dad['add'](_0x14e14a),this[_0x15d4a5(0x215)]['set'](_0x4ec874,_0x899dad);}else{var _0x5f460c;this['_shapeFormulaService'][_0x15d4a5(0x1ed)](_0x37a48a),(_0x5f460c=this[_0x15d4a5(0x215)]['get'](_0x4ec874))==null||_0x5f460c['delete'](_0x14e14a);}_0x14e14a[_0x15d4a5(0x480)](_0x3a47d2?this[_0x15d4a5(0x1bc)]['getPresentation'](_0x37a48a):void 0x0,(_0x3a47d2==null?void 0x0:_0x3a47d2[_0x15d4a5(0x352)])!==!0x1);}[_0x144ba7(0x20d)](_0x4c0225){const _0x12a09c=_0x144ba7;let _0x13001a=_0x4c0225[_0x12a09c(0x320)][_0x12a09c(0x2db)](),_0x63faa9=_0x13001a[_0x12a09c(0x380)];if(!_0x63faa9||_0x63faa9[_0x12a09c(0x200)]!==t[_0x12a09c(0x1d5)][_0x12a09c(0x389)]||!_0x63faa9[_0x12a09c(0x39c)]){_0x4c0225[_0x12a09c(0x3ae)](void 0x0);return;}this['_loadShapePictureFill'](_0x4c0225,_0x13001a);}[_0x144ba7(0x47c)](_0x277765,_0x5e6960){const _0x5d749c=_0x144ba7;let _0x47ac53=_0x5e6960['fill'];if(!_0x47ac53||_0x47ac53[_0x5d749c(0x200)]!==t['ShapeFillEnum'][_0x5d749c(0x389)]||!_0x47ac53[_0x5d749c(0x39c)])return;let _0x544826=_0x47ac53[_0x5d749c(0x39c)],_0x5b6ae3=_0x47ac53[_0x5d749c(0x426)]??t[_0x5d749c(0x2c5)][_0x5d749c(0x19d)],_0x459bec=this[_0x5d749c(0x27a)]['getImageSourceCache'](_0x544826,_0x5b6ae3);if(_0x459bec){_0x277765[_0x5d749c(0x3ae)](_0x459bec);return;}return this[_0x5d749c(0x1de)](_0x277765,_0x544826,_0x5b6ae3);}async['_loadAndSetImage'](_0x2a514a,_0x27bb66,_0x1a2fa0){const _0x550635=_0x144ba7;let _0x35ce94;try{if(_0x1a2fa0===t[_0x550635(0x2c5)]['UUID'])_0x35ce94=await this[_0x550635(0x27a)][_0x550635(0x3e2)](_0x27bb66);else{if(_0x1a2fa0===t[_0x550635(0x2c5)]['URL'])try{_0x35ce94=await this['_urlImageService'][_0x550635(0x3e2)](_0x27bb66);}catch{_0x35ce94=_0x27bb66;}else _0x35ce94=_0x27bb66;}}catch(_0x25267d){console[_0x550635(0x3e7)](_0x550635(0x2ed),_0x25267d);return;}await new Promise(_0x4d8e62=>{const _0x2f7066=_0x550635;let _0x57a465=new window[(_0x2f7066(0x39b))]();_0x57a465['onload']=()=>{const _0x539b72=_0x2f7066;this['_imageIoService'][_0x539b72(0x2b9)](_0x27bb66,_0x1a2fa0,_0x57a465),_0x2a514a['setFillImage'](_0x57a465),_0x4d8e62();},_0x57a465['onerror']=()=>{const _0x1c846c=_0x2f7066;console[_0x1c846c(0x3e7)](_0x1c846c(0x1e8),_0x27bb66),_0x4d8e62();},_0x57a465[_0x2f7066(0x1c0)]=_0x35ce94;});}};j=A([k(0x0,o[_0x144ba7(0x464)]),k(0x1,(0x0,i['Inject'])(r[_0x144ba7(0x25b)])),k(0x2,(0x0,i['Inject'])(i[_0x144ba7(0x30c)])),k(0x3,i[_0x144ba7(0x365)]),k(0x4,i[_0x144ba7(0x34b)]),k(0x5,(0x0,i['Inject'])(n[_0x144ba7(0x1ca)]))],j);let M=class extends i[_0x144ba7(0x2fc)]{constructor(_0xca6342,_0x2259d9,_0x5cb99a,_0x35e2ae,_0x482e3a,_0x227b0c){const _0x131628=_0x144ba7;super(),this['_drawingManagerService']=_0xca6342,this[_0x131628(0x1b3)]=_0x2259d9,this[_0x131628(0x1f6)]=_0x5cb99a,this['_sheetDrawingShapeRenderController']=_0x35e2ae,this['_univerInstanceService']=_0x482e3a,this['_commandService']=_0x227b0c,E(this,'_activeShapeId',null),E(this,'_unitId',null),E(this,_0x131628(0x469),null),E(this,_0x131628(0x33e),void 0x0),E(this,_0x131628(0x455),[]),E(this,_0x131628(0x2f7),0x0),E(this,_0x131628(0x309),0x0),E(this,'_baseShapeWidth',0x0),E(this,'_baseShapeHeight',0x0),E(this,_0x131628(0x499),!0x1),E(this,_0x131628(0x44b),void 0x0),E(this,_0x131628(0x46f),void 0x0),E(this,_0x131628(0x2a4),void 0x0),E(this,_0x131628(0x43b),void 0x0),E(this,_0x131628(0x498),!0x1),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0x144ba7(0x336)](_0x2a8349,_0x6ea3c7,_0x7771f6){const _0x38deef=_0x144ba7;let _0x29d9da=this[_0x38deef(0x1b3)][_0x38deef(0x3b2)](_0x2a8349,_0x6ea3c7,_0x7771f6);if(_0x29d9da)return _0x29d9da[_0x38deef(0x360)]();}[_0x144ba7(0x3fa)](){const _0x2c1c39=_0x144ba7;this[_0x2c1c39(0x476)]();}[_0x144ba7(0x1a7)](){const _0x4b6262=_0x144ba7;this[_0x4b6262(0x24c)](!0x0);}[_0x144ba7(0x205)](_0x333df7){this['_isShouldShowDrawingShapeAdjust']=_0x333df7;}['_getShapeAdjustInfosById'](_0x20bab6,_0x458852,_0xfc2927,_0x2694cd){const _0x11bf36=_0x144ba7;let _0x12125e=this[_0x11bf36(0x1b3)]['getShapeModel'](_0x20bab6,_0x458852,_0xfc2927);if(_0x12125e)return _0x12125e['getAdjustInfoByName'](_0x2694cd);}[_0x144ba7(0x398)](_0x4d30af=!0x1){const _0x2042ae=_0x144ba7;if(this[_0x2042ae(0x375)]===null||this[_0x2042ae(0x469)]===null||this[_0x2042ae(0x32b)]===null)return;let _0x21c609=this[_0x2042ae(0x1f6)]['getRenderUnitById'](this[_0x2042ae(0x375)]);if(!_0x21c609||!_0x21c609['with'](c['SheetSkeletonManagerService'])[_0x2042ae(0x2b7)]())return;let {scene:_0xa9dccb}=_0x21c609,_0x4903fd={'unitId':this[_0x2042ae(0x375)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2042ae(0x32b)]},_0x16a831=this[_0x2042ae(0x234)][_0x2042ae(0x233)](_0x4903fd),{transform:_0x4b03eb}=_0x16a831;if(!_0x4b03eb||_0x16a831[_0x2042ae(0x34d)]!==i[_0x2042ae(0x1d1)][_0x2042ae(0x2be)])return;let {left:_0x592b93,top:_0x4aee2e,width:_0x5415f0,height:_0x255ab2,flipX:_0x3b9ff7,flipY:_0x2348e5,angle:_0x32d74d=0x0}=_0x4b03eb;if(_0x592b93===void 0x0||_0x4aee2e===void 0x0)return;if(_0x4d30af){let _0x2b4f5e=this[_0x2042ae(0x1b3)]['getShapeModel'](this[_0x2042ae(0x375)],this['_subUnitId'],this['_activeShapeId']);_0x2b4f5e==null||_0x2b4f5e[_0x2042ae(0x307)]({'width':_0x5415f0??0x0,'height':_0x255ab2??0x0}),this['_activeShapeAdjustPointList']=_0x2b4f5e==null?void 0x0:_0x2b4f5e[_0x2042ae(0x360)]();}let _0x258474=this['_activeShapeAdjustPointList'];for(let _0x43b30e=0x0;_0x43b30e<_0x258474['length'];_0x43b30e++){let _0x23f803=_0x258474[_0x43b30e],_0x1aff5b=_0x23f803['x'],_0x55e9f1=_0x23f803['y'];if(_0x3b9ff7&&(_0x1aff5b=(_0x5415f0||0x0)-_0x1aff5b),_0x2348e5&&(_0x55e9f1=(_0x255ab2||0x0)-_0x55e9f1),_0x32d74d!==0x0){let _0x2131c0=(_0x5415f0||0x0)/0x2,_0x5f553c=(_0x255ab2||0x0)/0x2,_0x48539d=_0x32d74d*Math['PI']/0xb4,_0x4a4550=Math[_0x2042ae(0x3f0)](_0x48539d),_0x2e5897=Math[_0x2042ae(0x1ab)](_0x48539d),_0x11d24e=_0x1aff5b-_0x2131c0,_0x2337d4=_0x55e9f1-_0x5f553c;_0x1aff5b=_0x2131c0+(_0x11d24e*_0x4a4550-_0x2337d4*_0x2e5897),_0x55e9f1=_0x5f553c+(_0x11d24e*_0x2e5897+_0x2337d4*_0x4a4550);}let _0x275c94={'x':_0x1aff5b,'y':_0x55e9f1,'adjName':_0x23f803['adjName']};this[_0x2042ae(0x367)](_0xa9dccb,_0x275c94,_0x275c94[_0x2042ae(0x1ce)],_0x592b93,_0x4aee2e,this[_0x2042ae(0x375)],this[_0x2042ae(0x469)]);}}['_updateShapeAdjustControls'](_0x41ff91=!0x1){const _0x22d7c2=_0x144ba7;_0x41ff91&&(this[_0x22d7c2(0x476)](),this[_0x22d7c2(0x398)](_0x41ff91));}[_0x144ba7(0x367)](_0x119901,_0x31f805,_0x3bfd2b,_0x509796,_0xc8c13e,_0x5d75e6,_0x408bb6){const _0x3a8cc2=_0x144ba7;if(!this[_0x3a8cc2(0x32b)])return;let _0x44e4a8=_0x119901[_0x3a8cc2(0x457)](_0x3a8cc2(0x28f)+this[_0x3a8cc2(0x32b)]+'-'+_0x3bfd2b);if(_0x44e4a8){_0x44e4a8[_0x3a8cc2(0x45b)]({'left':_0x31f805['x']+_0x509796-t[_0x3a8cc2(0x3d8)][_0x3a8cc2(0x493)],'top':_0x31f805['y']+_0xc8c13e-t['ShapeDefaultConfig'][_0x3a8cc2(0x493)]});return;}let _0x45a949={'left':_0x31f805['x']+_0x509796-t['ShapeDefaultConfig']['adjHandleSize'],'top':_0x31f805['y']+_0xc8c13e-t[_0x3a8cc2(0x3d8)][_0x3a8cc2(0x493)],'adjName':_0x3bfd2b,'shapeId':this[_0x3a8cc2(0x32b)],'unitId':_0x5d75e6,'subUnitId':_0x408bb6,'width':t[_0x3a8cc2(0x3d8)]['adjHandleSize']+0x8,'height':t[_0x3a8cc2(0x3d8)][_0x3a8cc2(0x493)]+0x8,'zIndex':s[_0x3a8cc2(0x3ea)]+0x1,'evented':!0x0},_0x267fd8=new O('shape-adjust-point-'+this[_0x3a8cc2(0x32b)]+'-'+_0x3bfd2b,_0x45a949);this['_shapes'][_0x3a8cc2(0x405)](_0x267fd8),this[_0x3a8cc2(0x388)](_0x267fd8,_0x119901,_0x3bfd2b),_0x119901[_0x3a8cc2(0x1be)](_0x267fd8,s[_0x3a8cc2(0x3ea)]+0x1);}[_0x144ba7(0x476)](){const _0x8e750a=_0x144ba7;this[_0x8e750a(0x455)]['length']!==0x0&&(this['_shapes'][_0x8e750a(0x313)](_0x3a321c=>{const _0x4f734a=_0x8e750a;_0x3a321c[_0x4f734a(0x33d)]();}),this['_shapes']=[]);}[_0x144ba7(0x22d)](){const _0x2dd3d1=_0x144ba7;this[_0x2dd3d1(0x398)]();}[_0x144ba7(0x453)](_0x1c4668,_0x936e7a){const _0x28ff76=_0x144ba7;var _0x4928d9;let _0x5cb5e6={'x':0x0,'y':0x0};if(!_0x1c4668||!_0x936e7a)return _0x5cb5e6;let _0x4d1058=this['_renderManagerService']['getRenderUnitById'](_0x1c4668);if(!_0x4d1058||!_0x4d1058['with'](c['SheetSkeletonManagerService'])[_0x28ff76(0x45f)](_0x936e7a))return _0x5cb5e6;let _0x277a39=_0x4d1058[_0x28ff76(0x1af)](c['SheetScrollManagerService']),_0x1a38ab=_0x277a39==null?void 0x0:_0x277a39['getCurrentScrollState']();if(!_0x1a38ab)return _0x5cb5e6;let _0x4935aa=(_0x4928d9=this[_0x28ff76(0x41b)][_0x28ff76(0x2cd)](_0x1c4668))==null?void 0x0:_0x4928d9[_0x28ff76(0x461)](_0x936e7a);if(!_0x4935aa)return _0x5cb5e6;let _0x57c3ff=(0x0,c[_0x28ff76(0x250)])(_0x1a38ab[_0x28ff76(0x283)],_0x1a38ab[_0x28ff76(0x30a)],_0x4d1058['scene'],_0x4935aa);return _0x57c3ff?{'x':_0x57c3ff[_0x28ff76(0x427)],'y':_0x57c3ff[_0x28ff76(0x25c)]}:_0x5cb5e6;}[_0x144ba7(0x37d)](_0x2c526d,_0x26ade9){const _0x58557e=_0x144ba7;var _0x339f71;let _0x528b48=(_0x339f71=this[_0x58557e(0x41b)][_0x58557e(0x2cd)](_0x2c526d))==null?void 0x0:_0x339f71[_0x58557e(0x461)](_0x26ade9);return(_0x528b48==null?void 0x0:_0x528b48['getZoomRatio']())??0x1;}['_attachAdjustEvent'](_0x1f0114,_0x33c21f,_0x1a405f){const _0x1fe772=_0x144ba7;this[_0x1fe772(0x350)]((0x0,i[_0x1fe772(0x37f)])(_0x1f0114[_0x1fe772(0x271)][_0x1fe772(0x39d)]((_0x1ac38d,_0x3fa60b)=>{const _0x234806=_0x1fe772;var _0x4fe8fc,_0x579165,_0x8bea7e,_0x1ad6f0;let _0x268e03=_0x1f0114[_0x234806(0x447)]();this[_0x234806(0x44b)]=this[_0x234806(0x287)](_0x268e03[_0x234806(0x436)],_0x268e03[_0x234806(0x1ee)],_0x268e03[_0x234806(0x290)],_0x1a405f),this[_0x234806(0x46f)]=this['_sheetsShapeService']['getShapeModel'](_0x268e03[_0x234806(0x436)],_0x268e03[_0x234806(0x1ee)],_0x268e03['drawingId']);let _0x596e8e=this[_0x234806(0x234)]['getDrawingByParam']({'unitId':this[_0x234806(0x375)],'subUnitId':this[_0x234806(0x469)],'drawingId':this[_0x234806(0x32b)]}),{transform:_0x38829d}=_0x596e8e;if(_0x38829d){let {left:_0x22bb27,top:_0x29c1ce,width:_0x10e2b5,height:_0x2eb96e}=_0x38829d;this['_baseShapeLeft']=_0x22bb27||0x0,this[_0x234806(0x309)]=_0x29c1ce||0x0,this[_0x234806(0x3fe)]=_0x10e2b5||0x0,this[_0x234806(0x2e1)]=_0x2eb96e||0x0;}let _0x74c24c=!!((_0x4fe8fc=_0x596e8e[_0x234806(0x3a8)])!=null&&_0x4fe8fc[_0x234806(0x3ce)]),_0x2d20d9=!!((_0x579165=_0x596e8e[_0x234806(0x3a8)])!=null&&_0x579165[_0x234806(0x479)]),_0x24d27a=((_0x8bea7e=_0x596e8e[_0x234806(0x3a8)])==null?void 0x0:_0x8bea7e['angle'])||0x0;this['_isStartAdjusting']=!0x0,_0x33c21f[_0x234806(0x355)]();let _0x3fd3f2={...((_0x1ad6f0=this['_activeAdjustInfo'])==null?void 0x0:_0x1ad6f0[_0x234806(0x198)])??{}};this[_0x234806(0x2a4)]=_0x33c21f[_0x234806(0x2fe)][_0x234806(0x39d)]((_0x3bc7e7,_0x318c50)=>{const _0x2e927b=_0x234806;if(!this[_0x2e927b(0x499)])return;let {offsetX:_0x39d338,offsetY:_0x2d32b0}=_0x3bc7e7,_0x68253b=this[_0x2e927b(0x44b)];if(this['_activeShapeModel']&&_0x68253b){_0x33c21f[_0x2e927b(0x355)](),_0x33c21f[_0x2e927b(0x49a)](s[_0x2e927b(0x3ee)][_0x2e927b(0x347)]);let _0xa9737f={'left':0x0,'top':0x0,'width':this[_0x2e927b(0x3fe)],'height':this[_0x2e927b(0x2e1)]},_0x1e9197=this['_getScrollInfo'](this[_0x2e927b(0x375)],this[_0x2e927b(0x469)]),_0x2553b7=this[_0x2e927b(0x37d)](this['_unitId'],this[_0x2e927b(0x469)]),_0x2e54df=_0x39d338/_0x2553b7+_0x1e9197['x']-this[_0x2e927b(0x2f7)],_0x56193b=_0x2d32b0/_0x2553b7+_0x1e9197['y']-this[_0x2e927b(0x309)];if(_0x24d27a!==0x0){let _0x2e6a46=this[_0x2e927b(0x3fe)]/0x2,_0x30ab84=this[_0x2e927b(0x2e1)]/0x2,_0x2b7f0f=_0x24d27a*Math['PI']/0xb4,_0x22066b=Math[_0x2e927b(0x3f0)](_0x2b7f0f),_0x2d1a1b=Math[_0x2e927b(0x1ab)](_0x2b7f0f),_0x3b60e6=_0x2e54df-_0x2e6a46,_0x2a5d47=_0x56193b-_0x30ab84;_0x2e54df=_0x2e6a46+(_0x3b60e6*_0x22066b+_0x2a5d47*_0x2d1a1b),_0x56193b=_0x30ab84+(-_0x3b60e6*_0x2d1a1b+_0x2a5d47*_0x22066b);}_0x74c24c&&(_0x2e54df=this['_baseShapeWidth']-_0x2e54df),_0x2d20d9&&(_0x56193b=this[_0x2e927b(0x2e1)]-_0x56193b);let _0x547958={'x':_0x2e54df,'y':_0x56193b},_0x188e5b=this['_activeShapeModel'][_0x2e927b(0x440)](_0xa9737f,_0x547958,_0x68253b,_0x74c24c,_0x2d20d9);if(Object[_0x2e927b(0x403)](_0x188e5b)['length']===0x0)return;for(let [_0x45297f,_0x543b8d]of Object[_0x2e927b(0x27d)](_0x188e5b))this[_0x2e927b(0x46f)]['setAdjustValueByName'](_0x45297f,_0x543b8d);this[_0x2e927b(0x46f)][_0x2e927b(0x307)]({'width':this[_0x2e927b(0x3fe)],'height':this[_0x2e927b(0x2e1)]});let _0x406865=this['_drawingManagerService'][_0x2e927b(0x233)]({'unitId':_0x268e03[_0x2e927b(0x436)],'subUnitId':_0x268e03[_0x2e927b(0x1ee)],'drawingId':_0x268e03[_0x2e927b(0x290)]});_0x406865&&(this[_0x2e927b(0x3b5)][_0x2e927b(0x2e3)](_0x406865,_0x33c21f),this[_0x2e927b(0x33e)]=this[_0x2e927b(0x336)](_0x268e03[_0x2e927b(0x436)],_0x268e03[_0x2e927b(0x1ee)],_0x268e03['drawingId']),this[_0x2e927b(0x22d)]());}_0x318c50['stopPropagation']();}),this[_0x234806(0x43b)]=_0x33c21f['onPointerUp$']['subscribeEvent']((_0x269b85,_0x2b2a9b)=>{const _0x4d8611=_0x234806;this[_0x4d8611(0x2a4)][_0x4d8611(0x2ea)](),this['_adjHandlerPointerUp'][_0x4d8611(0x2ea)](),_0x33c21f[_0x4d8611(0x1ac)]();let _0x5d3d26=this[_0x4d8611(0x44b)];if(_0x5d3d26){let _0x3a77c0=_0x268e03[_0x4d8611(0x436)],_0x4e7191=_0x268e03[_0x4d8611(0x1ee)],_0x58229f=_0x268e03[_0x4d8611(0x290)],_0x5b2c5b={};for(let _0x18ee6d of Object[_0x4d8611(0x403)](_0x5d3d26[_0x4d8611(0x198)])){var _0x4b12fc;let _0x3f7702=(_0x4b12fc=this[_0x4d8611(0x46f)])==null?void 0x0:_0x4b12fc[_0x4d8611(0x2d1)](_0x18ee6d);_0x3f7702!==void 0x0&&(_0x5b2c5b[_0x18ee6d]=_0x3f7702);}Object['keys'](_0x5b2c5b)[_0x4d8611(0x38e)]>0x0&&S(this[_0x4d8611(0x238)],_0x3a77c0,_0x4e7191,_0x58229f,{'oldShapeData':{'adjustValues':_0x3fd3f2}},{'adjustValues':_0x5b2c5b});}this[_0x4d8611(0x44b)]=void 0x0,this[_0x4d8611(0x46f)]=void 0x0,this[_0x4d8611(0x499)]=!0x1,_0x2b2a9b[_0x4d8611(0x203)](),_0x33c21f[_0x4d8611(0x2a2)]();}),_0x3fa60b[_0x234806(0x203)]();})));}[_0x144ba7(0x35a)](){const _0x1d62af=_0x144ba7;let _0x436b3f=this[_0x1d62af(0x41b)]['getCurrentTypeOfUnit$'](i['UniverInstanceType']['UNIVER_SHEET']);this[_0x1d62af(0x350)](_0x436b3f['pipe']((0x0,l[_0x1d62af(0x484)])(_0x2ad1cb=>_0x2ad1cb?_0x2ad1cb[_0x1d62af(0x1bb)]['pipe']((0x0,l[_0x1d62af(0x484)])(_0x396838=>{const _0x23c37d=_0x1d62af;if(!_0x396838)return l['EMPTY'];let _0x9f0afa=_0x2ad1cb[_0x23c37d(0x33a)](),_0x57a0f0=this['_renderManagerService'][_0x23c37d(0x248)](_0x9f0afa),_0x18e7e8=_0x57a0f0==null?void 0x0:_0x57a0f0[_0x23c37d(0x3aa)];return _0x18e7e8?(0x0,l['of'])(_0x18e7e8):l[_0x23c37d(0x254)];})):l['EMPTY']))[_0x1d62af(0x3d0)](_0x4a219f=>{const _0x357445=_0x1d62af;let _0x425ed1=_0x4a219f['getTransformerByCreate']();this[_0x357445(0x350)](_0x4a219f['onPointerMove$'][_0x357445(0x39d)](()=>{const _0x249700=_0x357445;this[_0x249700(0x498)];})),this[_0x357445(0x350)](_0x425ed1['changeStart$'][_0x357445(0x3d0)](_0x167215=>{const _0x3ae835=_0x357445;let {objects:_0x43b8a5}=_0x167215;this[_0x3ae835(0x398)](),_0x43b8a5!==null&&_0x43b8a5[_0x3ae835(0x3de)]===0x1&&_0x43b8a5[_0x3ae835(0x35c)]()[_0x3ae835(0x40f)]()[_0x3ae835(0x29b)]instanceof D&&this['setShouldShowAdjust'](!0x0);})),this[_0x357445(0x350)](_0x425ed1['changing$']['subscribe'](()=>{const _0x280f41=_0x357445;this['_isShouldShowDrawingShapeAdjust']&&this[_0x280f41(0x476)]();})),this[_0x357445(0x350)](_0x4a219f[_0x357445(0x24b)][_0x357445(0x39d)](()=>{const _0x28fda0=_0x357445;this[_0x28fda0(0x498)]&&(this[_0x28fda0(0x205)](!0x1),this[_0x28fda0(0x398)]());})),this[_0x357445(0x350)](_0x425ed1[_0x357445(0x470)][_0x357445(0x3d0)](()=>{const _0x111f8a=_0x357445;this['_unitId']&&this[_0x111f8a(0x469)]&&this[_0x111f8a(0x32b)]&&this[_0x111f8a(0x234)][_0x111f8a(0x233)]({'unitId':this[_0x111f8a(0x375)],'subUnitId':this[_0x111f8a(0x469)],'drawingId':this[_0x111f8a(0x32b)]})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x111f8a(0x375)],this[_0x111f8a(0x469)],this[_0x111f8a(0x32b)]),this[_0x111f8a(0x22d)]());}));}));}[_0x144ba7(0x1b8)](){const _0x2d024f=_0x144ba7;this[_0x2d024f(0x350)](this[_0x2d024f(0x238)][_0x2d024f(0x371)](_0x115423=>{const _0x227d19=_0x2d024f;if(_0x115423['id']!==r[_0x227d19(0x317)]['id'])return;let {unitId:_0x1a3968,subUnitId:_0x421e48,shapeId:_0xd31674}=_0x115423[_0x227d19(0x35b)];_0x1a3968===this['_unitId']&&_0x421e48===this[_0x227d19(0x469)]&&_0xd31674===this['_activeShapeId']&&this[_0x227d19(0x1a7)]();})),this['disposeWithMe'](this[_0x2d024f(0x234)][_0x2d024f(0x1b5)][_0x2d024f(0x3d0)](_0x5d275c=>{const _0x2d3552=_0x2d024f;if(_0x5d275c[_0x2d3552(0x38e)]===0x1){let _0x16367a=_0x5d275c[0x0];if(_0x16367a[_0x2d3552(0x34d)]===i[_0x2d3552(0x1d1)][_0x2d3552(0x2be)]&&this[_0x2d3552(0x41b)][_0x2d3552(0x390)](_0x16367a[_0x2d3552(0x436)])===i['UniverInstanceType'][_0x2d3552(0x423)]){this[_0x2d3552(0x32b)]=_0x16367a[_0x2d3552(0x290)];let {unitId:_0x7bb924,subUnitId:_0x594c51}=_0x16367a;this[_0x2d3552(0x33e)]=this['_getShapeAdjustPointListById'](_0x7bb924,_0x594c51,this['_activeShapeId']),this[_0x2d3552(0x375)]=_0x7bb924,this[_0x2d3552(0x469)]=_0x594c51,this['_clearShapeAdjustControls'](),this[_0x2d3552(0x398)]();return;}}this[_0x2d3552(0x32b)]=null,this[_0x2d3552(0x33e)]=void 0x0,this[_0x2d3552(0x375)]=null,this[_0x2d3552(0x469)]=null,this[_0x2d3552(0x476)]();})),this['disposeWithMe'](this['_drawingManagerService']['update$'][_0x2d024f(0x3d0)](_0x1c492b=>{const _0x139b2e=_0x2d024f;if(_0x1c492b[_0x139b2e(0x38e)]===0x1){var _0x5a8b54;let _0x210efd=_0x1c492b[0x0];((_0x5a8b54=this[_0x139b2e(0x234)]['getDrawingByParam'](_0x210efd))==null?void 0x0:_0x5a8b54[_0x139b2e(0x34d)])===i[_0x139b2e(0x1d1)][_0x139b2e(0x2be)]&&this['_updateShapeAdjustControls'](!0x0);}})),this['disposeWithMe'](this[_0x2d024f(0x234)]['remove$'][_0x2d024f(0x3d0)](_0x16020d=>{const _0x9d01b=_0x2d024f;for(let _0x2af6d5 of _0x16020d)this[_0x9d01b(0x32b)]===_0x2af6d5[_0x9d01b(0x290)]&&(this[_0x9d01b(0x32b)]=null,this[_0x9d01b(0x33e)]=void 0x0,this['_unitId']=null,this[_0x9d01b(0x469)]=null,this[_0x9d01b(0x476)]());}));}};M=A([k(0x0,o['IDrawingManagerService']),k(0x1,(0x0,i['Inject'])(r['SheetsShapeService'])),k(0x2,(0x0,i['Inject'])(s['IRenderManagerService'])),k(0x3,(0x0,i[_0x144ba7(0x2c1)])(j)),k(0x4,i[_0x144ba7(0x334)]),k(0x5,i['ICommandService'])],M);const N={'id':'drawing.operation.set-drawing-active','type':i[_0x144ba7(0x333)][_0x144ba7(0x1df)],'handler':(_0x3d7f4e,_0x1625b7)=>{const _0x39f9c2=_0x144ba7;let _0x4e1635=_0x3d7f4e[_0x39f9c2(0x45d)](o[_0x39f9c2(0x464)]),_0x2acb63=_0x3d7f4e[_0x39f9c2(0x45d)](s[_0x39f9c2(0x1cb)]),_0x5bffc=_0x3d7f4e[_0x39f9c2(0x45d)](M);if(_0x1625b7==null)return!0x0;if(_0x1625b7[_0x39f9c2(0x38e)]>0x0){var _0x3b6030;let _0x5b4227=(_0x3b6030=_0x2acb63[_0x39f9c2(0x248)](_0x1625b7[0x0][_0x39f9c2(0x436)]))==null?void 0x0:_0x3b6030[_0x39f9c2(0x3aa)];if(_0x5b4227){let {unitId:_0x373a95,subUnitId:_0x535b9d,drawingId:_0x51a5fd}=_0x1625b7[0x0],_0x3b2305=(0x0,o[_0x39f9c2(0x256)])({'unitId':_0x373a95,'subUnitId':_0x535b9d,'drawingId':_0x51a5fd},void 0x0),_0x1001f2=_0x5b4227[_0x39f9c2(0x457)](_0x3b2305);if(_0x1001f2){var _0x510cd;(_0x510cd=_0x2acb63[_0x39f9c2(0x248)](_0x1625b7[0x0][_0x39f9c2(0x436)]))==null||(_0x510cd=_0x510cd[_0x39f9c2(0x3aa)][_0x39f9c2(0x312)]())==null||_0x510cd[_0x39f9c2(0x23b)](_0x1001f2);}}_0x4e1635[_0x39f9c2(0x20e)](_0x1625b7),_0x5bffc[_0x39f9c2(0x205)](!0x1);}return!0x0;}},P={'type':i[_0x144ba7(0x333)]['COMMAND'],'id':'sheet.command.menu-insert-shape','handler':async(_0x1b3293,_0x30232c)=>{const _0x1ffaaa=_0x144ba7;let _0x44ff8d=(0x0,a[_0x1ffaaa(0x26d)])(_0x1b3293[_0x1ffaaa(0x45d)](i['IUniverInstanceService']));if(!_0x44ff8d)return!0x1;let _0x1fdd4a=_0x1b3293['get'](a[_0x1ffaaa(0x2e2)])[_0x1ffaaa(0x339)]();if(!_0x1fdd4a)return!0x1;let _0x337b2c=_0x1b3293[_0x1ffaaa(0x45d)](i[_0x1ffaaa(0x488)]),{unitId:_0x9e7d9f,subUnitId:_0x3789f4}=_0x44ff8d,{value:_0x53a13e,enhanceParams:_0x1116da}=_0x30232c,{range:_0x1aa1df}=_0x1fdd4a,_0x1eb987={'unitId':_0x9e7d9f,'subUnitId':_0x3789f4,'shapeType':_0x53a13e,'range':_0x1aa1df,'shapeId':(0x0,i[_0x1ffaaa(0x399)])()};if(_0x1116da){let _0x476335=(0x0,t[_0x1ffaaa(0x1f5)])(_0x53a13e),_0x3660fe=_0x53a13e===t['ShapeTypeEnum'][_0x1ffaaa(0x42f)];_0x476335&&(_0x1116da['startArrow']||_0x1116da[_0x1ffaaa(0x236)])&&(_0x1eb987[_0x1ffaaa(0x3fd)]={'ln':{'startArrow':_0x1116da[_0x1ffaaa(0x346)]?{'type':t['ShapeArrowTypeEnum']['Arrow'],'size':t[_0x1ffaaa(0x3ed)][_0x1ffaaa(0x27c)]}:void 0x0,'endArrow':_0x1116da['endArrow']?{'type':t[_0x1ffaaa(0x446)][_0x1ffaaa(0x25f)],'size':t[_0x1ffaaa(0x3ed)][_0x1ffaaa(0x475)]}:void 0x0}}),_0x3660fe&&(_0x1116da['horizontal']||_0x1116da[_0x1ffaaa(0x39a)])&&(_0x1eb987['shapeData']=(0x0,n[_0x1ffaaa(0x218)])({'fill':{'fillType':t[_0x1ffaaa(0x1d5)][_0x1ffaaa(0x1c8)],'color':_0x1ffaaa(0x20b)},'isHorizontal':!!_0x1116da['horizontal'],'stroke':{'lineStrokeType':t[_0x1ffaaa(0x1d9)][_0x1ffaaa(0x279)],'width':0x1,'color':_0x1ffaaa(0x396)}}));}let _0x327e2e=_0x337b2c[_0x1ffaaa(0x428)](r['InsertShapeCommand']['id'],_0x1eb987);return setTimeout(()=>{const _0x30be2c=_0x1ffaaa;_0x337b2c[_0x30be2c(0x3e5)](N['id'],[{'unitId':_0x9e7d9f,'subUnitId':_0x3789f4,'drawingId':_0x1eb987[_0x30be2c(0x3c2)]}]);},0xc8),_0x327e2e;}},F='sheet.shape.edit.panel',I='sheet.shape.object-list.panel',L='sheet.shape.floating-toolbar',R=(0x0,i[_0x144ba7(0x2bd)])('SHAPE_TEXT'),ne=_0x144ba7(0x32d),z={'id':_0x144ba7(0x2ca),'type':i['CommandType']['COMMAND'],'handler':(_0x187587,_0x4a5c70)=>{const _0x433e45=_0x144ba7;let _0xf96778=_0x187587[_0x433e45(0x45d)](e[_0x433e45(0x21c)]),_0xbadee7=_0x187587['get'](i[_0x433e45(0x30c)]),_0x3e769d=_0x187587['get'](i['IUniverInstanceService']),_0x51eeb8=_0x187587[_0x433e45(0x45d)](i['ICommandService']);return(0x0,a[_0x433e45(0x26d)])(_0x3e769d)?(_0x4a5c70==null?void 0x0:_0x4a5c70[_0x433e45(0x29b)])==='close'?(_0xf96778[_0x433e45(0x28c)](I),!0x0):(_0xf96778[_0x433e45(0x422)]({'id':I,'header':{'title':_0xbadee7['t'](_0x433e45(0x255))},'children':{'label':I},'onClose':()=>{const _0x2cc6fb=_0x433e45;_0x51eeb8[_0x2cc6fb(0x428)](o[_0x2cc6fb(0x1dc)]['id'],[]);},'width':0x168}),!0x0):!0x1;}};let B=class extends i[_0x144ba7(0x2fc)]{constructor(_0x14700a,_0x50a40f){const _0x41002c=_0x144ba7;super(),this[_0x41002c(0x286)]=_0x14700a,this[_0x41002c(0x234)]=_0x50a40f,this['_registerImageShapeClipDelegate'](),this[_0x41002c(0x286)]['setCanUseShapeClip'](!0x0),this[_0x41002c(0x350)]({'dispose':()=>this['_clipService']['setCanUseShapeClip'](!0x1)});}[_0x144ba7(0x225)](){const _0x4acd34=_0x144ba7;let _0x18604d=this[_0x4acd34(0x286)],_0x38a69f=new Map(),_0x53b360=_0x18604d[_0x4acd34(0x372)]((_0x5d96b6,_0x4481ac,_0x385374,_0xcbabe5,_0x2ce51a)=>{const _0x268349=_0x4acd34;let _0x37cdff=_0x4481ac;if(_0x37cdff===t[_0x268349(0x25e)][_0x268349(0x373)]||_0x4481ac==='custom')return!0x1;try{let _0x3e4655=_0x38a69f[_0x268349(0x45d)](_0x4481ac);return _0x3e4655||(_0x3e4655=new t[(_0x268349(0x41d))](_0x37cdff,'clip-'+_0x4481ac),_0x38a69f[_0x268349(0x478)](_0x4481ac,_0x3e4655)),_0x3e4655[_0x268349(0x273)](),_0x2ce51a&&Object['keys'](_0x2ce51a)[_0x268349(0x38e)]>0x0&&_0x3e4655[_0x268349(0x1c5)]({'adjustValues':_0x2ce51a},!0x0),_0x3e4655[_0x268349(0x307)]({'width':_0x385374,'height':_0xcbabe5}),_0x3e4655[_0x268349(0x431)](_0x5d96b6,{'left':0x0,'top':0x0,'width':_0x385374,'height':_0xcbabe5});}catch{return!0x1;}});this['disposeWithMe'](_0x53b360),this['disposeWithMe']({'dispose':()=>_0x38a69f[_0x4acd34(0x2fb)]()});}[_0x144ba7(0x295)](_0xa74968,_0x4cc635,_0x400180,_0x1a0532,_0x35a764){const _0x311c76=_0x144ba7;let _0x2bd688=this[_0x311c76(0x234)][_0x311c76(0x1ea)](_0xa74968,_0x4cc635);if(!_0x2bd688[_0x400180])return;let _0x3b1d8b={..._0x2bd688[_0x400180],'prstGeom':_0x1a0532,'adjustValues':_0x35a764};this['_drawingManagerService'][_0x311c76(0x315)]([_0x3b1d8b]);}};B=A([k(0x0,(0x0,i['Inject'])(d[_0x144ba7(0x2c6)])),k(0x1,(0x0,i[_0x144ba7(0x2c1)])(o[_0x144ba7(0x464)]))],B);const re=_0x144ba7(0x378),ie=_0x144ba7(0x1db);function _0x38f0(_0x3982fd,_0x242c82){_0x3982fd=_0x3982fd-0x194;const _0x1000a0=_0x1000();let _0x38f0f9=_0x1000a0[_0x3982fd];return _0x38f0f9;}function ae({onShapeClick:_0x432084,excludeGroups:_0x3b667b}){const _0x46fd07=_0x144ba7;return(0x0,f[_0x46fd07(0x3b4)])(u[_0x46fd07(0x460)],{'excludeGroups':_0x3b667b,'onShapeClick':_0x432084,'scrollContainer':_0x46fd07(0x358)});}function oe(){const _0x76e3b0=_0x144ba7;let _0x3bdff8=(0x0,e[_0x76e3b0(0x492)])(o[_0x76e3b0(0x464)]),_0x235471=(0x0,e[_0x76e3b0(0x492)])(B);return(0x0,f[_0x76e3b0(0x3b4)])(u['ShapePickerDropdown'],{'buttonLabel':_0x76e3b0(0x28a),'excludeGroups':[u[_0x76e3b0(0x1e7)][_0x76e3b0(0x3d2)]],'onShapeClick':_0x49955a=>{const _0x58d3a7=_0x76e3b0;let _0x560ba0=_0x3bdff8[_0x58d3a7(0x3b8)]()['find'](_0x248ea2=>_0x248ea2[_0x58d3a7(0x34d)]===i['DrawingTypeEnum'][_0x58d3a7(0x1b4)]);if(!_0x560ba0)return;let {unitId:_0x14d6b7,subUnitId:_0xebd8fb,drawingId:_0x49a0c0}=_0x560ba0;_0x235471[_0x58d3a7(0x295)](_0x14d6b7,_0xebd8fb,_0x49a0c0,_0x49955a[_0x58d3a7(0x36b)]);}});}function se(){const _0x46a7b3=_0x144ba7;let _0x21b355=(0x0,e[_0x46a7b3(0x492)])(e['ComponentManager']),_0x6b991e=(0x0,e[_0x46a7b3(0x492)])(o[_0x46a7b3(0x464)]),_0x4289d6=(0x0,e[_0x46a7b3(0x492)])(i[_0x46a7b3(0x334)]),_0x2556f7=_0x6b991e[_0x46a7b3(0x3b8)]()[0x0],_0x18224e=_0x2556f7?_0x4289d6[_0x46a7b3(0x390)](_0x2556f7[_0x46a7b3(0x436)]):void 0x0,_0x5ccff6=_0x18224e===i[_0x46a7b3(0x3b7)][_0x46a7b3(0x393)]?_0x46a7b3(0x3a9):_0x18224e===i[_0x46a7b3(0x3b7)][_0x46a7b3(0x423)]?ie:void 0x0,_0x32d556=_0x5ccff6?_0x21b355[_0x46a7b3(0x45d)](_0x5ccff6):void 0x0;return _0x32d556?(0x0,f['jsx'])(_0x32d556,{}):null;}function ce(){const _0x5e892a=_0x144ba7;let _0x44a8b3=(0x0,e[_0x5e892a(0x492)])(i[_0x5e892a(0x488)]);return(0x0,f[_0x5e892a(0x3b4)])(ae,{'onShapeClick':_0x2fb89d=>{const _0x39271d=_0x5e892a;_0x44a8b3['executeCommand'](P['id'],{'value':_0x2fb89d['type'],'enhanceParams':{'endArrow':_0x2fb89d[_0x39271d(0x236)],'startArrow':_0x2fb89d[_0x39271d(0x346)],'horizontal':_0x2fb89d[_0x39271d(0x3eb)],'vertical':_0x2fb89d['vertical']}});}});}function le(_0x4145e1){const _0x437bd4=_0x144ba7;let _0x13e3f4=_0x4145e1[_0x437bd4(0x45d)](i['IUniverInstanceService']);return{'id':P['id'],'type':e[_0x437bd4(0x395)][_0x437bd4(0x26c)],'selections':[{'label':{'name':re,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x437bd4(0x252),'tooltip':_0x437bd4(0x397),'activated$':(0x0,c[_0x437bd4(0x2c9)])(_0x13e3f4,!0x1,()=>new l['Observable'](_0x468703=>{_0x468703['next'](!0x1);})),'hidden$':(0x0,e['getMenuHiddenObservable'])(_0x4145e1,i[_0x437bd4(0x3b7)][_0x437bd4(0x423)]),'disabled$':(0x0,c[_0x437bd4(0x335)])(_0x4145e1)};}function ue(_0x2d50d6){const _0x1bd356=_0x144ba7;let _0x9ab9ab=_0x2d50d6[_0x1bd356(0x45d)](i[_0x1bd356(0x334)]);return{'id':z['id'],'type':e['MenuItemType'][_0x1bd356(0x217)],'icon':_0x1bd356(0x3cf),'title':_0x1bd356(0x1d2),'tooltip':_0x1bd356(0x1d2),'activated$':(0x0,c[_0x1bd356(0x2c9)])(_0x9ab9ab,!0x1,()=>new l['Observable'](_0x4e8fea=>{const _0x3d9005=_0x1bd356;_0x4e8fea[_0x3d9005(0x40f)](!0x1);})),'hidden$':(0x0,e[_0x1bd356(0x3d9)])(_0x2d50d6,i[_0x1bd356(0x3b7)][_0x1bd356(0x423)]),'disabled$':(0x0,c[_0x1bd356(0x335)])(_0x2d50d6)};}const de=_0x144ba7(0x40d),fe=_0x144ba7(0x1e4);function pe(_0x3fd99d){const _0x5d11b0=_0x144ba7;let _0x396a4e=_0x3fd99d[_0x5d11b0(0x45d)](o[_0x5d11b0(0x464)])['getFocusDrawings']();return _0x396a4e[_0x5d11b0(0x38e)]===0x1&&_0x396a4e[0x0]['drawingType']===i[_0x5d11b0(0x1d1)][_0x5d11b0(0x2be)]?_0x396a4e[0x0]:null;}function me(_0x3fe51c){const _0x52783f=_0x144ba7;let _0xb6b6df=_0x3fe51c[_0x52783f(0x45d)](o[_0x52783f(0x464)]);return _0xb6b6df[_0x52783f(0x1b5)][_0x52783f(0x2b6)]((0x0,l[_0x52783f(0x2eb)])(_0xb6b6df[_0x52783f(0x3b8)]()),(0x0,l['map'])(_0x4982ea=>_0x4982ea[_0x52783f(0x38e)]!==0x1||_0x4982ea[0x0][_0x52783f(0x34d)]!==i[_0x52783f(0x1d1)]['DRAWING_SHAPE']));}function he(_0x8b1886){const _0x5cfcf7=_0x144ba7;return{'id':de,'commandId':r['ToggleSheetsShapeFlipCommand']['id'],'type':e['MenuItemType'][_0x5cfcf7(0x217)],'title':'sheets-shape-ui.flipHorizontal','tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x5cfcf7(0x2d8),'hidden$':me(_0x8b1886),'params':()=>{const _0x385b22=_0x5cfcf7;let _0x54f7a1=pe(_0x8b1886);return _0x54f7a1?{'unitId':_0x54f7a1[_0x385b22(0x436)],'subUnitId':_0x54f7a1['subUnitId'],'shapeId':_0x54f7a1['drawingId'],'flipH':!0x0}:void 0x0;}};}function ge(_0x1fb469){const _0x2f3dae=_0x144ba7;return{'id':fe,'commandId':r[_0x2f3dae(0x304)]['id'],'type':e[_0x2f3dae(0x395)][_0x2f3dae(0x217)],'title':'sheets-shape-ui.flipVertical','tooltip':'sheets-shape-ui.flipVertical','icon':_0x2f3dae(0x39e),'hidden$':me(_0x1fb469),'params':()=>{const _0x2ca8df=_0x2f3dae;let _0x11a7c7=pe(_0x1fb469);return _0x11a7c7?{'unitId':_0x11a7c7['unitId'],'subUnitId':_0x11a7c7['subUnitId'],'shapeId':_0x11a7c7[_0x2ca8df(0x290)],'flipV':!0x0}:void 0x0;}};}const _e={[e[_0x144ba7(0x42d)][_0x144ba7(0x305)]]:{[P['id']]:{'order':0x4,'menuItemFactory':le}},[e[_0x144ba7(0x42d)][_0x144ba7(0x1c9)]]:{[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ue}},[e[_0x144ba7(0x442)][_0x144ba7(0x451)]]:{[e[_0x144ba7(0x1dd)][_0x144ba7(0x1c9)]]:{[de]:{'order':0x4,'menuItemFactory':he},[fe]:{'order':0x5,'menuItemFactory':ge}}}};var ve=_0x144ba7(0x439),ye=_0x144ba7(0x379);const be={'type':i[_0x144ba7(0x333)]['OPERATION'],'id':_0x144ba7(0x1ba),'handler'(){return!0x0;}},V={'type':i[_0x144ba7(0x333)]['OPERATION'],'id':_0x144ba7(0x3d4),'handler'(){return!0x0;}},xe={};function _0x1000(){const _0x333340=['preValue','_createCopyInfoByRange','1281610Pdbxdd','DrawingRenderService','Injector','unsubscribe','startWith','cancelEditing','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_cxtHandlerPointerMove','SheetInterceptorService','delete','_drawingType','SheetCanvasPopManagerService','attachRangeWithCoord','data','decorate','connection-site-','_baseShapeLeft','UniverSheetsDrawingUIPlugin','getParent','getObjectListPanelSectionIdForDrawingType','clear','Disposable','getInverseCoord','onPointerMove$','sheets-shape-ui.config','viewBound','_index','getStartConnectInfo','getTransformerByCreate','ToggleSheetsShapeFlipCommand','MEDIA','getTextStyle','updateContext','top-center','_baseShapeTop','sheetViewStartColumn','oKey','LocaleService','_imageShapeClipController','ArrangeTypeEnum','_groupCopyPasteController','ShapeRenderModeEnum','_sheetCanvasPopManagerService','getTransformer','forEach','rotation','featurePluginUpdateNotification','createShapeFormulaDocument','UpdateSheetsShapeDataMutation','getShapeDataById','_insertShapes','isHitLine','_commandExecutedListener','_initSheetChange','_urlImageService','create','_closeShapeEditPanel','shapeModel','dataModel','UniverDrawingUIPlugin','shapeText','FromArray','getObjectListPanelTypeName','_baseWidth','_sheetPrintInterceptorService','attachPopupToObject','_focusedDrawings','trim','_activeShapeId','_currentScene','sheet.shape.text.float-menu','IMenuManagerService','RemoveSheetDrawingCommand','_initializedShapePopupMenu','FormulaShapeAnimationController','UniverSheetsDrawingPlugin','CommandType','IUniverInstanceService','getCurrentRangeDisable$','_getShapeAdjustPointListById','InsertShapeCommand','getActiveSheet','getCurrentLastSelection','getUnitId','4581NhJdRX','from','dispose','_activeShapeAdjustPointList','setConfig','interceptCommand','GROUP','DocumentDataModel','axisAlignSheetTransform','_clearPopups','intercept','startArrow','CROSSHAIR','registerCommand','setShapeProps','_moveConnectorWithShape','IURLImageService','getSelectedObjectMap','drawingType','left','index','disposeWithMe','_lastEditingShapeKey','animationEnabled','refreshFormulaPresentation','getAdjustNames','disableObjectsEvent','_config','_generateCutPasteMutations','parent','changeShapeType','_registerDrawingMoveHandler','params','values','_baseHeight','sheets-shape-text-','_setTransForm','getDrawingPoints','2056DkoQqW','_drawingAddListener','mergeMenu','setHighlighted','IImageIoService','getShapeTextData','_addShapeAdjustControl','includes','REMOVE','_getConnectionSiteAngle','type','_showConnectionSites','UniverShapeEditorUIPlugin','_initPrinting','skeleton','StraightConnector1','onCommandExecuted','registerClipDelegate','None','render','_unitId','ObjectListPanelBase','WorksheetEditPermission','sheet.shape.picker.component','1.0.0-beta.0','copyType','SheetSkeletonService','_handleConnectorPointerUp','_getZoomRatio','setPrstGeom','toDisposable','fill','getAutoFitPresentations','_clearConnectionSites','filter','cxnPointStrokeWidth','add$','HorizontalAlign','insertGroupObject','_attachAdjustEvent','PictureFill','targetShapeId','RemoveSheetCommand','_sheetPermissionCheckController','_baseTop','length','isArray','getUnitType','OBJECT_LIST_FLOATING_SECTION_ID','initShapePopupMenu','UNIVER_DOC','strokeWidth','MenuItemType','#bcbcbc','sheets-shape-ui.insertShape','_createShapeAdjustControls','generateRandomId','vertical','Image','fillImageSource','subscribeEvent','FlipVerticalIcon','_currentConnectionTarget','Fragment','_isStartConnectorPoint','_init','shapeType','_draw','_registerGroupFeaturePasteHook','transformToAxisAlignPosition','normalizeShapeTextModel','transform','doc.image-clip.shape-picker.component','scene','refreshTransform','doc','update$','setFillImage','resolveShapeTextDocumentRenderLayout','removeLinePoints','useEffect','getShapeModel','_getImagePrstGeom','jsx','_sheetDrawingShapeRenderController','pluginName','UniverInstanceType','getFocusDrawings','sheetTransform','default','marginTop','permissionCheckWithoutRange','_sheetClipboardService','RENDER_CLASS_TYPE','SHEET_VIEWPORT_KEY','_disposed','Path','shapeId','Documents','setPresentation','map','_getImageDrawingInfo','_activeAdjustPointList','formulaBinding','_onSavingEditorData$','_initPermission','height','scale','onRendered','flipX','ObjectLayersIcon','subscribe','_drawShapeText','Line','DocSelectionManagerService','sheet.operation.open-sheet-shape-format-panel','SetDrawingArrangeCommand','_registerComponents','getConnectionSiteList','ShapeDefaultConfig','getMenuHiddenObservable','defineProperty','SheetDrawingAnchor','classType','_sheetShapeAdjustController','size','getShapeTextRect','transformToDrawingPosition','angle','getImage','ISheetDrawingService','register','executeCommand','Shape','error','SheetSkeletonManagerService','isRichText','DRAWING_OBJECT_LAYER_INDEX','horizontal','_addControl','ShapeArrowSizeEnum','CURSOR_TYPE','_shapeEditPanelVersion','cos','getMatrix','_applyFormulaAutoFitSize','FOCUSING_SHAPE_TEXT_EDITOR','registerFeaturePasteHook','lineType','isHighlighted','_registerFocusChangeHandler','constructor','_targetShapeId','clearAdjustControls','PREDEFINED_HOOK_NAME','worldPoints','shapeData','_baseShapeWidth','DrawingApplyType','routeConnectorLineShape','_isHighlighted','remove$','keys','DocumentViewModel','push','_baseDrawingRect','beforeCommandExecuted','_componentManager','_activeTargetShapeId','ShapeTextEditorContainer','cxnPointFill','SheetsDrawingGroupCopyPasteController','sheet.menu.shape.flip-horizontal','sqrt','next','translate','toStringTag','makeDirty','_shapeService','text','_updateTransform','_formulaAnimation','invert','_executeResizeCommand','340273ORGfLO','shapeKey','_univerInstanceService','_context','ShapeModel','getValue','getBatchAddOp','_findNearestConnectionSite','_generateCopyPasteMutations','open','UNIVER_SHEET','_sheetBasicShapeConnectionPointController','useObservable','fillImageSourceType','viewportScrollX','syncExecuteCommand','SheetShapeTextEditorContainer','getCurrentScrollState','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','plainShapeTextToDocumentData','RibbonInsertGroup','sheets-shape-ui','Rect','_iconManager','buildClipPath','_releaseRenderCache','clip','SheetsShapeUIMenuSchema','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','unitId','onSteady','_registerIcons','@univerjs-pro/sheets-shape-ui','#1a73e8','_adjHandlerPointerUp','InsertSheetsShapeMutation','drawFormulaShapeAnimationLayers','symbol','_activeShapeInfo','calcAdjValues','contentHeight','ContextMenuPosition','DocCanvasPopManagerService','onDblclick$','offsetX','ShapeArrowTypeEnum','getDrawingSearch','ShapeTextFloatMenuRenderControllerBase','getOwnPropertyDescriptor','19274jPjrCt','_activeAdjustInfo','registerRenderModule','getBasicShapeRelation','_resetState','color','sectionCanvas','DRAWING','_handleBasicShapeUpdateConnectorLineShape','_getScrollInfo','visible','_shapes','computeConnectorResizeLayout','getObjectIncludeInGroup','stringify','getState','RemoveSheetsShapeMutation','transformByState','UniverRenderEnginePlugin','get','asObservable','getSkeleton','ShapePickerPanel','getSheetBySheetId','_addShapeConnectorHandlerObjects','srcRect','IDrawingManagerService','_registerMoveHandler','UniverDrawingPlugin','_drawRichText','string','_subUnitId','contentVerticalOffset','top','clone','_executeConnectionCommand','worldRect','_activeShapeModel','changeEnd$','transformForAngle','lineShapeId','memo','getRealBound','Large','_clearShapeAdjustControls','_addShapeConnectorHandlerObject','set','flipY','_handleFreeEndpointPointerUp','_clearShapeConnectorHandlerObjects','_loadShapePictureFill','prototype','_currentUniverService','canvas','setFormulaPresentation','_contextService','initTransformer','has','switchMap','computeStraightConnectorLayout','_createShapePopupMenu','_handleConnectedEndpointPointerUp','ICommandService','VIEW_MAIN_LEFT_TOP','196640nygiLc','interceptor','_sidebarService','_getOrCreateShapeModel','object','_cxnIndex','_isImagePointerDown','presentationChanged$','useDependency','adjHandleSize','_reset','startY','_sheetSkeletonService','_connectorObjects','_isShouldShowDrawingShapeAdjust','_isStartAdjusting','setCursor','SheetScrollManagerService','updateDocumentStyle','190CIzYGd','_transform','getShapeType','getDrawingVisible','currentAdjustValues','gradientEndColor','getActualSize','resolveShapeTextEditorBehaviorShapeData','slice','URL','getEditing','IConfigService','useState','_initCopyPaste','getConnectorLinePoints','addClipboardHook','_props','completeEditing','INSERT','refreshAdjustControls','clearActiveDrawingObjects','_openShapeEditPanel','buildShapeTextDataUpdate','sin','resetCursor','onSavingEditorData$','wrapStrategy','with','complete','panel','getBatchRemoveOp','_sheetsShapeService','DRAWING_IMAGE','focus$','resolveFormulaShapeAutoFitSize','setOnSavingEditorData','_registerDrawingFocusChangeHandler','getShapeTypeById','sheet.operation.close-sheet-shape-format-panel','activeSheet$','_shapeFormulaService','adjustValues','addObject','worldPoint','src','cxnPointStroke','_copyInfo','_isDrawingShapePointDown','some','setShapeData','sectionFloating','getScene','SolidFill','OTHERS','ShapeFormulaService','IRenderManagerService','sheets-shape-ui.formatShape','find','adjName','_draggingConnectorId','_initEditingParams','DrawingTypeEnum','sheets-shape-ui.objectListPanel.open','touchDependencies','SheetPermissionCheckController','ShapeFillEnum','toPrimitive','width','_localeService','ShapeLineTypeEnum','div','sheet.image-clip.shape-picker.component','SetDrawingSelectedOperation','ContextMenuGroup','_loadAndSetImage','OPERATION','_connectionSiteObjects','_transformCalculateSrcRect','_insertingShapeKeys','setEditing','sheet.menu.shape.flip-vertical','stroke','endConnectionDetection','ShapeGroupEnum','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','isHorizontal','getDrawingData','changeStart$','LEFT','unregister','subUnitId','UniverLicensePlugin','useMemo','SheetPrintInterceptorService','isLineShape','add','ISheetClipboardService','isConnectorShape','_renderManagerService','getInterceptPoints','_disposePopups','VIEW_MAIN','translateWithPrecision','disableShapeOption','isStartConnectorPoint','sheet.command.update-shape-data','CUT','isRender','fillType','SetShapeDrawingDataCommand','adjHandleStroke','stopPropagation','_handleFreeEndpointMove','setShouldShowAdjust','_renderWithCache','_createControls','_getShapeInfo','custom','_isOpenedShapeEditPanel','#FFFFFF','_menuManagerService','refreshShapeFillImage','focusDrawing','_formulaKey','ComponentManager','_sheetInterceptorService','_calculateFreeEndpointAngle','univer-box-border\x20univer-px-4\x20univer-text-sm','getConnectionRelation','_formulaShapes','3QvpztB','BUTTON','createShapeTextBoxShapeData','_injector','_shapeId','getConnectionInfo','ISidebarService','UpdateConnectorRelationCommand','selectable','indexOf','63EgfszQ','_rerouteConnectorLine','_initEvents','parse','draw','_registerImageShapeClipDelegate','prepareShapeTextDocumentData','beginPath','_configService','rect','_clearControls','composeMatrix','WorkbookEditablePermission','_updateAdjustControlPositions','Circle','UniverSheetsUIPlugin','PRINTING_COMPONENT_COLLECT','_sidebarDisposable','applyPoint','getDrawingByParam','_drawingManagerService','_editingParams$','endArrow','Module','_commandService','ShapeFloatingToolbar','getTextModel','activeAnObject','_initialize','resize','ancestorTransform','prstGeom','relation','cxnPointRadius','UPDATE','startX','_shapeTextEditingService','iterator','_cxtHandlerPointerUp','setPrstGeomAdjValues','getRenderUnitById','function','attachTransformerTo','onPointerUp$','_updateShapeAdjustControls','setSrcRect','undo','TOP','getViewportByCell','_shapeRenderController','ShapeIcon','fontSize','EMPTY','sheets-shape-ui.objectListPanel.title','getDrawingShapeKeyByDrawingSearch','DEFAULT_PASTE','SetDrawingApplyMutation','VerticalAlign','objects','SheetsShapeService','viewportScrollY','Transform','ShapeTypeEnum','Arrow','ang','245010ZoBLaX','_adjName','restore','getDrawingTypeNameKey','getCurrentTypeOfUnit$','getDrawingEffectBounds','image','order','_handleConnectedEndpointMove','call','startConnectionDetection','SELECTOR','getSheetCommandTarget','onReady','isRenderLinePointsMode','_highlightedSiteIndex','onPointerDown$','IUndoRedoService','clearAdjustValue','isInGroup','getObject','UniverShapeEditorPlugin','ShapeEditPanel','shouldClipShapeTextDocument','SolidLine','_imageIoService','connector-handler-','Medium','entries','drawWith','jsxs','_executeConnectedRouteResizeCommand','_popupMenuListener','isCurvedConnectorShape','sheetViewStartRow','redo','cxnIndex','_clipService','_getShapeAdjustInfosById','pushUndoRedo','localToWorld','sheets-shape-ui.imagePanel.crop.shape','prstGeomAdjValues','close','getBatchUpdateOp','setAdjustValueByName','shape-adjust-point-','drawingId','COPY_TYPE','CopySheetCommand','ConnectorCoordinateTransform','point','clipByShape','_initSelection','getBentTypeFromPoints','IContextService','_isConnecting','getZoomRatio','value','SHEET_SHAPE_UI_PLUGIN','FOCUSING_COMMON_DRAWINGS','save','reverse','multiply','_findShapeAtPoint','enableObjectsEvent','_baseLeft','_adjHandlerPointerMove','fontFamily','VIEW_MAIN_TOP','clipHeight','formulaPresentation','isEditing','_generatePasteMutations','getPresentation','DocumentSkeleton','setContextValue','_initMenu','_getDrawingRect','ShapeTextFloatToolbar','normal','getEndConnectInfo','getBasicShapeRotateBound','DocSelectionRenderService','computeConnectorRouteLayout','pipe','getCurrentSkeleton','_sheetDrawingService','addImageSourceCache','debounceRefreshControls','#4285f4','_executeConnectedRouteConnectionCommand','createInternalEditorID','DRAWING_SHAPE','IconManager','_activeImageId','Inject','_registerOperations','abs','shape-text-','ImageSourceTypeEnum','DrawingImageClipService','_drawRichTextLayer','editingParams$','deriveStateFromActiveSheet$','sheet.operation.open-shape-object-list-panel','getCurrentUnitOfType','updateConnectionDetection','getUnit','changing$','UniverSheetsPlugin','hidden','getAdjustValueByName','offsetY','113663tzFOfR','getDrawingOKey','onTransformChange$','DrawingCommonPanel','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','FlipHorizontalIcon','reduce','getDrawingDataForUnit','getShapeData','_getConnectPointInfo','isDrawingObject','merge','_getSceneAndTransformerByDrawingSearch','_drawSimpleText','_baseShapeHeight','SheetsSelectionsService','renderDrawingShape','SetSheetDrawingCommand'];_0x1000=function(){return _0x333340;};return _0x1000();}function Se(_0x127de1){const _0x71ec55=_0x144ba7;return _0x127de1[_0x71ec55(0x32a)]()||void 0x0;}function Ce(_0x1d0395,_0x162a3e,_0x3709f5){const _0x356c3e=_0x144ba7;var _0x45c886;return((_0x45c886=_0x1d0395['name'])==null?void 0x0:_0x45c886[_0x356c3e(0x32a)]())||(0x0,d[_0x356c3e(0x325)])(_0x3709f5,(0x0,u[_0x356c3e(0x264)])(_0x1d0395['drawingType']))+'\x20'+(_0x162a3e+0x1);}function we(){const _0x405727=_0x144ba7;var _0x1ebf56;let _0x272a2f=(0x0,e[_0x405727(0x492)])(i[_0x405727(0x30c)]),_0x3d907a=(0x0,e['useDependency'])(i[_0x405727(0x488)]),_0x541af0=(0x0,e[_0x405727(0x492)])(i['IUniverInstanceService']),_0x1fd792=(0x0,e['useDependency'])(g[_0x405727(0x3e3)]),_0x4230c4=(0x0,e[_0x405727(0x492)])(o[_0x405727(0x464)]),_0xc2fbc1=(0x0,e[_0x405727(0x492)])(s[_0x405727(0x1cb)]),[,_0x56ce7a]=(0x0,y['useReducer'])(_0x643766=>_0x643766+0x1,0x0),_0x397606=_0x541af0[_0x405727(0x2cb)](i[_0x405727(0x3b7)][_0x405727(0x423)]),_0x28daef=(_0x397606==null?void 0x0:_0x397606[_0x405727(0x33a)]())??'',_0xc35a9=(_0x397606==null||(_0x1ebf56=_0x397606[_0x405727(0x338)]())==null?void 0x0:_0x1ebf56['getSheetId']())??'',_0x42838a=(0x0,e[_0x405727(0x425)])(()=>_0x4230c4[_0x405727(0x1b5)],_0x4230c4[_0x405727(0x3b8)](),!0x1,[_0x4230c4]);(0x0,y[_0x405727(0x3b1)])(()=>{const _0x272e00=_0x405727;let _0x2a9965=_0x3d907a[_0x272e00(0x371)](()=>_0x56ce7a());return()=>_0x2a9965['dispose']();},[_0x3d907a]);let _0x348ed0=(0x0,y[_0x405727(0x1f0)])(()=>(0x0,d['getObjectListPanelLabels'])(_0x272a2f),[_0x272a2f]),_0x556cae=_0x28daef&&_0xc35a9?_0x1fd792[_0x405727(0x1ea)](_0x28daef,_0xc35a9):{},_0x375466=(_0x28daef&&_0xc35a9?_0x1fd792['getDrawingOrder'](_0x28daef,_0xc35a9):[])['map'](_0x2b2d84=>_0x556cae[_0x2b2d84])[_0x405727(0x383)](_0x5a576c=>!!_0x5a576c)[_0x405727(0x29f)](),_0x3db93c=_0x375466[_0x405727(0x2d9)]((_0x1a5276,_0x7bda8a)=>(_0x1a5276[(0x0,d[_0x405727(0x2fa)])(_0x7bda8a[_0x405727(0x34d)])]+=0x1,_0x1a5276),{'canvas':0x0,'floating':0x0}),_0x1c84c1={'canvas':0x0,'floating':0x0},_0x5dc93c=_0x375466[_0x405727(0x3c5)]((_0xb80b0f,_0x5817a2)=>{const _0x56a187=_0x405727;let _0x3549ae=(0x0,d[_0x56a187(0x2fa)])(_0xb80b0f[_0x56a187(0x34d)]),_0x2f1b8f=_0x3549ae===d[_0x56a187(0x391)],_0x22b0c6=_0x1c84c1[_0x3549ae]++;return{'id':_0xb80b0f[_0x56a187(0x290)],'name':Ce(_0xb80b0f,_0x5817a2,_0x272a2f),'description':_0xb80b0f['description'],'visible':_0xb80b0f['hidden']!==!0x0,'selectable':_0xb80b0f['selectable']!==!0x1,'sectionId':_0x3549ae,'sectionTitle':_0x2f1b8f?_0x348ed0[_0x56a187(0x1c6)]:_0x348ed0[_0x56a187(0x450)],'capabilities':_0x2f1b8f?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2f1b8f&&_0x22b0c6>0x0,'canMoveBackward':!_0x2f1b8f&&_0x22b0c6<_0x3db93c[_0x56a187(0x47f)]-0x1,'canReorder':!_0x2f1b8f};}),_0x112a67=(0x0,y[_0x405727(0x1f0)])(()=>(_0x42838a??[])['filter'](_0x4d954f=>_0x4d954f[_0x405727(0x436)]===_0x28daef&&_0x4d954f[_0x405727(0x1ee)]===_0xc35a9)['map'](_0x41d8f1=>_0x41d8f1[_0x405727(0x290)]),[_0x42838a,_0xc35a9,_0x28daef]),_0x26c47d=_0x112a67[_0x112a67[_0x405727(0x38e)]-0x1]??null,_0x45a97b=_0x45d466=>_0x1fd792['getDrawingByParam']({'unitId':_0x28daef,'subUnitId':_0xc35a9,'drawingId':_0x45d466})??null,_0xb3b56d=async _0x2418f6=>{const _0x89d697=_0x405727;!_0x28daef||!_0x2418f6[_0x89d697(0x38e)]||await _0x3d907a[_0x89d697(0x3e5)](g[_0x89d697(0x2e4)]['id'],{'unitId':_0x28daef,'drawings':_0x2418f6});},_0x5c93f5=async(_0x594389,_0x265864)=>{_0x45a97b(_0x594389)&&await _0xb3b56d([{'unitId':_0x28daef,'subUnitId':_0xc35a9,'drawingId':_0x594389,..._0x265864}]);},_0x251f69=(_0x5be343,_0x4d89a0)=>{const _0xeac2a9=_0x405727;if(!_0x28daef||!_0xc35a9)return;let _0x28fd2a=_0x4d89a0?_0x112a67[_0xeac2a9(0x368)](_0x5be343)?_0x112a67[_0xeac2a9(0x383)](_0x3961c6=>_0x3961c6!==_0x5be343):[..._0x112a67,_0x5be343]:[_0x5be343];_0x3d907a[_0xeac2a9(0x428)](o[_0xeac2a9(0x1dc)]['id'],_0x28fd2a[_0xeac2a9(0x3c5)](_0x6dc65e=>({'unitId':_0x28daef,'subUnitId':_0xc35a9,'drawingId':_0x6dc65e})));let _0x4e621c=_0x28fd2a[_0x28fd2a[_0xeac2a9(0x38e)]-0x1];_0x4e621c?(0x0,u['activateDrawingObject'])(_0xc2fbc1,{'unitId':_0x28daef,'subUnitId':_0xc35a9,'drawingId':_0x4e621c}):(0x0,u[_0xeac2a9(0x1a8)])(_0xc2fbc1,_0x28daef);},_0x13a03e=async(_0x33a1ae,_0x28c295)=>{const _0x3fff84=_0x405727;await _0xb3b56d(_0x33a1ae['map'](_0x55267a=>_0x45a97b(_0x55267a))['filter'](_0x4bd325=>!!_0x4bd325)[_0x3fff84(0x383)](_0x28503d=>_0x28503d['hidden']!==!0x0!==_0x28c295)[_0x3fff84(0x3c5)](_0x5e629c=>({'unitId':_0x28daef,'subUnitId':_0xc35a9,'drawingId':_0x5e629c[_0x3fff84(0x290)],'hidden':!_0x28c295})));},_0x4e450e=async _0x32cc98=>{const _0x814fad=_0x405727;let _0x2962a6=_0x45a97b(_0x32cc98);_0x2962a6&&await _0x5c93f5(_0x32cc98,{'selectable':_0x2962a6[_0x814fad(0x21e)]===!0x1&&void 0x0});},_0x36c7ed=async(_0x2b0579,_0x1f45d0)=>{var _0x3540fa;let _0x251819=Se(_0x1f45d0);(((_0x3540fa=_0x45a97b(_0x2b0579))==null?void 0x0:_0x3540fa['name'])??void 0x0)!==_0x251819&&await _0x5c93f5(_0x2b0579,{'name':_0x251819});},_0x3ba8fc=async(_0x2c6991,_0xb80e1a)=>{var _0x49a6ec;let _0x4859bd=Se(_0xb80e1a);(((_0x49a6ec=_0x45a97b(_0x2c6991))==null?void 0x0:_0x49a6ec['description'])??void 0x0)!==_0x4859bd&&await _0x5c93f5(_0x2c6991,{'description':_0x4859bd});},_0x5ac73f=async(_0xaaa4bd,_0x52354c)=>{const _0x25ca6a=_0x405727;!_0x28daef||!_0xc35a9||await _0x3d907a[_0x25ca6a(0x3e5)](g[_0x25ca6a(0x3d5)]['id'],{'unitId':_0x28daef,'subUnitId':_0xc35a9,'drawingIds':[_0xaaa4bd],'arrangeType':_0x52354c});};return!_0x28daef||!_0xc35a9?(0x0,f[_0x405727(0x3b4)])(_0x405727(0x1da),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x348ed0['title']}):(0x0,f[_0x405727(0x3b4)])(d[_0x405727(0x376)],{'items':_0x5dc93c,'selectedIds':_0x112a67,'focusedId':_0x26c47d,'labels':_0x348ed0,'onSelect':_0x251f69,'onSetVisible':_0x13a03e,'onCommitName':_0x36c7ed,'onCommitDescription':_0x3ba8fc,'onMoveForward':async _0x23887e=>_0x5ac73f(_0x23887e,i[_0x405727(0x30e)]['forward']),'onMoveBackward':async _0x158120=>_0x5ac73f(_0x158120,i[_0x405727(0x30e)]['backward']),'onToggleSelectable':_0x4e450e});}let H=class{constructor(_0x320758){const _0x4648e5=_0x144ba7;this[_0x4648e5(0x1f6)]=_0x320758;}['updateShapeFillImage'](_0x5dc379,_0x27d711){const _0xb7bfe9=_0x144ba7;let _0x39de80=this['_renderManagerService'][_0xb7bfe9(0x248)](_0x5dc379[_0xb7bfe9(0x436)]),_0x49d013=_0x39de80==null?void 0x0:_0x39de80[_0xb7bfe9(0x3aa)];if(!_0x49d013)return;let _0x5d6556=(0x0,o['getDrawingShapeKeyByDrawingSearch'])(_0x5dc379),_0x2d9521=_0x49d013['getObjectIncludeInGroup'](_0x5d6556);_0x2d9521==null||_0x2d9521[_0xb7bfe9(0x3ae)](_0x27d711);}};H=A([k(0x0,s[_0x144ba7(0x1cb)])],H);function Te(){const _0x4e2ac5=_0x144ba7;let _0x430762=(0x0,e[_0x4e2ac5(0x492)])(o[_0x4e2ac5(0x464)]),_0x4a0aaf=(0x0,e[_0x4e2ac5(0x425)])(()=>_0x430762[_0x4e2ac5(0x1b5)],_0x430762[_0x4e2ac5(0x3b8)](),!0x1,[_0x430762]);return _0x4a0aaf[_0x4e2ac5(0x38e)]===0x0?null:(0x0,f[_0x4e2ac5(0x3b4)])(_0x4e2ac5(0x1da),{'children':(0x0,f[_0x4e2ac5(0x27f)])('div',{'className':_0x4e2ac5(0x213),'children':[(0x0,f[_0x4e2ac5(0x3b4)])(d[_0x4e2ac5(0x2d6)],{'drawings':_0x4a0aaf,'hasCropper':!0x1}),(0x0,f[_0x4e2ac5(0x3b4)])(_[_0x4e2ac5(0x3db)],{'drawings':_0x4a0aaf})]})});}function Ee(_0x4535b8){const _0x40f3a0=_0x144ba7;let {unitId:_0x486c83,subUnitId:_0xb5180,shapeId:_0x2ed57f}=_0x4535b8,_0xd4446a=(0x0,e[_0x40f3a0(0x492)])(i[_0x40f3a0(0x488)]),_0x413fb2=(0x0,e[_0x40f3a0(0x492)])(H);return(0x0,f[_0x40f3a0(0x3b4)])(u[_0x40f3a0(0x277)],{..._0x4535b8,'positionEditor':(0x0,f[_0x40f3a0(0x3b4)])(Te,{}),'onUpdateShapeData':(_0x48590f,_0x30686d)=>{S(_0xd4446a,_0x486c83,_0xb5180,_0x2ed57f,_0x48590f,_0x30686d);},'onUpdateLineShapeData':(_0x588241,_0x3e96df)=>{C(_0xd4446a,_0x486c83,_0xb5180,_0x2ed57f,_0x588241,_0x3e96df);},'onUpdateShapeFillImage':_0x59a63b=>{_0x413fb2['updateShapeFillImage']({'unitId':_0x486c83,'subUnitId':_0xb5180,'drawingId':_0x2ed57f},_0x59a63b);}});}function De(_0x2fc69c){const _0x13cea1=_0x144ba7;let _0x5845ae=_0x2fc69c['popup']['extraProps'];return _0x5845ae?(0x0,f[_0x13cea1(0x3b4)])(Oe,{..._0x5845ae}):null;}function Oe(_0x45bc28){const _0x4fa391=_0x144ba7;let _0x955ff6=(0x0,e[_0x4fa391(0x492)])(i[_0x4fa391(0x488)]),_0x4dbb43=(0x0,e['useDependency'])(r[_0x4fa391(0x25b)]),{unitId:_0x22caf8,subUnitId:_0x3adb86,drawingId:_0x32b43f,drawingType:_0x409e5e,shapeType:_0x29498b}=_0x45bc28,[_0x19e0b2,_0x2cc777]=(0x0,y[_0x4fa391(0x1a0)])(_0x45bc28[_0x4fa391(0x3fd)]),_0x416d03=(0x0,y[_0x4fa391(0x1f0)])(()=>(0x0,u[_0x4fa391(0x306)])(_0x19e0b2),[_0x19e0b2]),_0x5823d3=(0x0,y['useMemo'])(()=>(0x0,u[_0x4fa391(0x23a)])(_0x19e0b2),[_0x19e0b2]);(0x0,y[_0x4fa391(0x3b1)])(()=>{const _0x4bf132=_0x4fa391;let _0x324ea2=_0x955ff6[_0x4bf132(0x371)](_0x47b46f=>{const _0x42934e=_0x4bf132;if(_0x47b46f['id']!==r[_0x42934e(0x317)]['id'])return;let _0x121999=_0x4dbb43[_0x42934e(0x318)](_0x22caf8,_0x3adb86,_0x32b43f);_0x121999&&_0x2cc777(_0x121999);});return()=>_0x324ea2[_0x4bf132(0x33d)]();},[_0x955ff6,_0x32b43f,_0x4dbb43,_0x3adb86,_0x22caf8]);let _0x2859bc=_0x11597b=>{_0x2cc777(_0x2c63de=>({..._0x2c63de,..._0x11597b}));},_0x174ee2=_0x9625ec=>{const _0x3e2d3c=_0x4fa391;let _0x4d7f1b=(0x0,u[_0x3e2d3c(0x1aa)])(_0x19e0b2,_0x9625ec);S(_0x955ff6,_0x22caf8,_0x3adb86,_0x32b43f,{'oldShapeData':{'shapeText':_0x19e0b2[_0x3e2d3c(0x323)]}},_0x4d7f1b),_0x2859bc(_0x4d7f1b);},_0x328250=(0x0,u['useFormulaShapeToolbar'])({'hostType':i[_0x4fa391(0x3b7)][_0x4fa391(0x423)],'unitId':_0x22caf8,'subUnitId':_0x3adb86,'shapeId':_0x32b43f,'shapeData':_0x19e0b2,'onUpdateBinding':_0x5ec7ce=>{const _0x6e54e7=_0x4fa391;let _0x5bb497={'formulaBinding':_0x5ec7ce};S(_0x955ff6,_0x22caf8,_0x3adb86,_0x32b43f,{'oldShapeData':{'formulaBinding':_0x19e0b2[_0x6e54e7(0x3c8)]}},_0x5bb497),_0x2859bc(_0x5bb497);}});return(0x0,f[_0x4fa391(0x27f)])(f[_0x4fa391(0x3a0)],{'children':[(0x0,f['jsx'])(u[_0x4fa391(0x239)],{'shapeData':_0x19e0b2,'shapeType':_0x29498b,'textStyle':{'ff':t[_0x4fa391(0x3d8)][_0x4fa391(0x323)][_0x4fa391(0x2a5)],'fs':t[_0x4fa391(0x3d8)]['shapeText'][_0x4fa391(0x253)],'cl':{'rgb':t[_0x4fa391(0x3d8)]['shapeText'][_0x4fa391(0x44f)]},..._0x416d03},'textModel':_0x5823d3?{'ha':_0x5823d3['ha']??i[_0x4fa391(0x386)][_0x4fa391(0x1ec)],'va':_0x5823d3['va']??i[_0x4fa391(0x259)][_0x4fa391(0x24f)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':t[_0x4fa391(0x3d8)][_0x4fa391(0x380)],'defaultGradientEndColor':t['ShapeDefaultConfig'][_0x4fa391(0x199)],'defaultStrokeColor':t[_0x4fa391(0x3d8)][_0x4fa391(0x1e5)],'extensionGroups':_0x328250['extensionGroups'],'onUpdateShapeData':(_0x286b82,_0x3c028d)=>{S(_0x955ff6,_0x22caf8,_0x3adb86,_0x32b43f,_0x286b82,_0x3c028d),_0x3c028d&&_0x2859bc(_0x3c028d);},'onUpdateText':_0x174ee2,'onOpenPanel':()=>{const _0x10aa6b=_0x4fa391;_0x955ff6[_0x10aa6b(0x3e5)](V['id'],{'unitId':_0x22caf8,'subUnitId':_0x3adb86,'drawingId':_0x32b43f});},'onDelete':()=>{const _0x289b9c=_0x4fa391;_0x955ff6[_0x289b9c(0x3e5)](g[_0x289b9c(0x32f)]['id'],{'unitId':_0x22caf8,'drawings':[{'unitId':_0x22caf8,'subUnitId':_0x3adb86,'drawingId':_0x32b43f,'drawingType':_0x409e5e}]});}}),_0x328250[_0x4fa391(0x1b1)]]});}var U=class extends i['Disposable']{constructor(..._0x43f4eb){const _0x17c349=_0x144ba7;super(..._0x43f4eb),E(this,_0x17c349(0x235),new l['BehaviorSubject'](null)),E(this,'editingParams$',this[_0x17c349(0x235)][_0x17c349(0x45e)]()),E(this,_0x17c349(0x3c9),new l['BehaviorSubject'](!0x1)),E(this,_0x17c349(0x1ad),this[_0x17c349(0x3c9)][_0x17c349(0x45e)]());}[_0x144ba7(0x33d)](){const _0x207a11=_0x144ba7;this[_0x207a11(0x235)]['next'](null),this[_0x207a11(0x235)][_0x207a11(0x1b0)](),this['_onSavingEditorData$'][_0x207a11(0x40f)](!0x1),this[_0x207a11(0x3c9)][_0x207a11(0x1b0)](),super['dispose']();}[_0x144ba7(0x1e3)](_0x1100ac){const _0x1691a5=_0x144ba7;this[_0x1691a5(0x235)][_0x1691a5(0x40f)](_0x1100ac),_0x1100ac??this['_onSavingEditorData$'][_0x1691a5(0x40f)](!0x1);}[_0x144ba7(0x1b7)](_0x4ff32e){const _0xcc6543=_0x144ba7;this[_0xcc6543(0x3c9)][_0xcc6543(0x40f)](_0x4ff32e);}['getEditing'](){const _0x5c1130=_0x144ba7;return this[_0x5c1130(0x235)][_0x5c1130(0x41e)]();}[_0x144ba7(0x1a5)](_0x243cc8){const _0x552adb=_0x144ba7;this[_0x552adb(0x19e)]()&&(this[_0x552adb(0x1b7)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x144ba7(0x2ec)](){const _0xeb846e=_0x144ba7;this[_0xeb846e(0x19e)]()&&this[_0xeb846e(0x1e3)](null);}};const ke=(0x0,y[_0x144ba7(0x473)])(()=>{const _0x41304e=_0x144ba7;let _0x5e12f8=(0x0,e[_0x41304e(0x492)])(U),_0xdc7875=(0x0,e['useDependency'])(r[_0x41304e(0x25b)]),_0x279b5a=(0x0,e['useDependency'])(o[_0x41304e(0x464)]),_0x4b0ad5=(0x0,e['useDependency'])(i[_0x41304e(0x488)]),_0x3d4e6c=(0x0,e[_0x41304e(0x492)])(s[_0x41304e(0x1cb)]);return(0x0,f['jsx'])(u[_0x41304e(0x40a)],{'adapter':(0x0,y[_0x41304e(0x1f0)])(()=>({'getShapeModel':(_0x106814,_0x3083fa,_0x2b8340)=>_0xdc7875[_0x41304e(0x3b2)](_0x106814,_0x3083fa,_0x2b8340),'getShapeData':(_0x34b21b,_0x9bd378,_0x3cc05c)=>_0xdc7875['getShapeDataById'](_0x34b21b,_0x9bd378,_0x3cc05c),'getDrawingTransform':(_0x5a496a,_0x274fa9,_0x36f589)=>{const _0x2a5ec5=_0x41304e;let _0x26285e=_0x279b5a[_0x2a5ec5(0x233)]({'unitId':_0x5a496a,'subUnitId':_0x274fa9,'drawingId':_0x36f589});return _0x26285e==null?void 0x0:_0x26285e[_0x2a5ec5(0x3a8)];},'updateShapeText':({unitId:_0x2ac442,subUnitId:_0x5612bf,shapeId:_0x275a39,shapeText:_0x80ce02,oldShapeText:_0x4c04ad})=>{const _0x265fe0=_0x41304e;_0x4b0ad5[_0x265fe0(0x3e5)](x['id'],{'unitId':_0x2ac442,'subUnitId':_0x5612bf,'shapeId':_0x275a39,'shapeData':{'shapeText':_0x80ce02},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x4c04ad}}});},'updateHostSize':({unitId:_0x297d4d,subUnitId:_0x153dc0,shapeId:_0x4de065,width:_0x2f5d75,height:_0x109669})=>{const _0xdc463e=_0x41304e;var _0x12cad7;let _0x714635=_0x279b5a['getDrawingByParam']({'unitId':_0x297d4d,'subUnitId':_0x153dc0,'drawingId':_0x4de065}),_0x47e297=_0x714635==null?void 0x0:_0x714635[_0xdc463e(0x3a8)];if(!_0x714635||!_0x47e297)return;let _0x24714d={..._0x47e297,'width':_0x2f5d75,'height':_0x109669},_0x1cb40d=(_0x12cad7=_0x3d4e6c[_0xdc463e(0x248)](_0x297d4d))==null||(_0x12cad7=_0x12cad7[_0xdc463e(0x1af)](c[_0xdc463e(0x3e8)])['getSkeletonParam'](_0x153dc0))==null?void 0x0:_0x12cad7[_0xdc463e(0x36f)],_0x43bdc4=_0x1cb40d?(0x0,g[_0xdc463e(0x3e0)])(_0x24714d,_0x1cb40d)??_0x714635[_0xdc463e(0x3b9)]:_0x714635[_0xdc463e(0x3b9)],_0x31e551=_0x1cb40d?(0x0,g[_0xdc463e(0x3a6)])(_0x24714d,_0x1cb40d)??_0x714635['axisAlignSheetTransform']:_0x714635[_0xdc463e(0x343)];_0x4b0ad5['executeCommand'](g[_0xdc463e(0x2e4)]['id'],{'unitId':_0x297d4d,'drawings':[{..._0x714635,'transform':_0x24714d,'sheetTransform':_0x43bdc4,'axisAlignSheetTransform':_0x31e551}]});},'allowHostSizeShrink':({unitId:_0x141cab,subUnitId:_0x3d61a2,shapeId:_0x529308})=>(0x0,u['shouldAllowShapeTextEditorHostSizeShrink'])(_0xdc7875['getShapeDataById'](_0x141cab,_0x3d61a2,_0x529308))}),[_0x4b0ad5,_0x279b5a,_0x3d4e6c,_0xdc7875]),'editingService':_0x5e12f8,'editorUnitId':R,'positionOptions':(0x0,y[_0x41304e(0x1f0)])(()=>({'viewportKeys':{'main':s[_0x41304e(0x3bf)][_0x41304e(0x1f9)],'leftTop':s['SHEET_VIEWPORT_KEY'][_0x41304e(0x489)],'top':s[_0x41304e(0x3bf)][_0x41304e(0x2a6)],'left':s[_0x41304e(0x3bf)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x20c527,_0x4893d5)=>{const _0x43be5e=_0x41304e;var _0x208e6d;return((_0x208e6d=_0x20c527[_0x43be5e(0x1af)](c[_0x43be5e(0x3e8)])['getSkeletonParam'](_0x4893d5['subUnitId']))==null?void 0x0:_0x208e6d[_0x43be5e(0x36f)])??null;}}),[])});});let W=class extends i[_0x144ba7(0x2fc)]{constructor(_0xb40171,_0x37010e){const _0x1ccde9=_0x144ba7;super(),this[_0x1ccde9(0x408)]=_0xb40171,this['_iconManager']=_0x37010e,this[_0x1ccde9(0x438)](),this[_0x1ccde9(0x3d6)]();}[_0x144ba7(0x438)](){const _0x576404=_0x144ba7;this[_0x576404(0x430)]['has']('ObjectLayersIcon')||this['disposeWithMe'](this['_iconManager'][_0x576404(0x3e4)]({'ObjectLayersIcon':v['ObjectLayersIcon']})),this['_iconManager']['has'](_0x576404(0x2d8))||this[_0x576404(0x350)](this[_0x576404(0x430)][_0x576404(0x3e4)]({'FlipHorizontalIcon':v[_0x576404(0x2d8)]})),this[_0x576404(0x430)][_0x576404(0x483)]('FlipVerticalIcon')||this['disposeWithMe'](this[_0x576404(0x430)][_0x576404(0x3e4)]({'FlipVerticalIcon':v['FlipVerticalIcon']}));}['_registerComponents'](){const _0x264025=_0x144ba7;this[_0x264025(0x350)](this[_0x264025(0x408)][_0x264025(0x3e4)](F,Ee)),this['disposeWithMe'](this[_0x264025(0x408)][_0x264025(0x3e4)](I,we)),this[_0x264025(0x350)](this['_componentManager']['register'](re,ce)),this[_0x264025(0x350)](this[_0x264025(0x408)][_0x264025(0x3e4)](ie,oe)),this[_0x264025(0x408)][_0x264025(0x45d)](d[_0x264025(0x435)])||this[_0x264025(0x350)](this[_0x264025(0x408)][_0x264025(0x3e4)](d[_0x264025(0x435)],se)),this['disposeWithMe'](this['_componentManager']['register'](L,De)),this['disposeWithMe'](this['_componentManager'][_0x264025(0x3e4)](ne,u[_0x264025(0x2b0)])),this[_0x264025(0x350)](this[_0x264025(0x408)][_0x264025(0x3e4)](_0x264025(0x429),ke));}};W=A([k(0x0,(0x0,i[_0x144ba7(0x2c1)])(e[_0x144ba7(0x210)])),k(0x1,(0x0,i[_0x144ba7(0x2c1)])(e[_0x144ba7(0x2bf)]))],W);let G=class extends i[_0x144ba7(0x2fc)]{constructor(_0x3129b5,_0x477a20,_0x2fd721,_0x1e7dc6,_0x434714){const _0x21b6e7=_0x144ba7;super(),this[_0x21b6e7(0x41c)]=_0x3129b5,this[_0x21b6e7(0x234)]=_0x477a20,this[_0x21b6e7(0x1f6)]=_0x2fd721,this[_0x21b6e7(0x41b)]=_0x1e7dc6,this['_imageShapeClipController']=_0x434714,E(this,_0x21b6e7(0x2c0),null),E(this,_0x21b6e7(0x375),null),E(this,_0x21b6e7(0x469),null),E(this,'_activeAdjustPointList',void 0x0),E(this,_0x21b6e7(0x455),[]),E(this,_0x21b6e7(0x2a3),0x0),E(this,_0x21b6e7(0x38d),0x0),E(this,'_baseWidth',0x0),E(this,_0x21b6e7(0x35d),0x0),E(this,'_isStartAdjusting',!0x1),E(this,'_activeAdjustInfo',void 0x0),E(this,_0x21b6e7(0x46f),void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,_0x21b6e7(0x43b),void 0x0),E(this,'_isImagePointerDown',!0x1),this[_0x21b6e7(0x3f7)](),this[_0x21b6e7(0x465)]();}[_0x144ba7(0x3fa)](){const _0x4720c9=_0x144ba7;this[_0x4720c9(0x22a)]();}[_0x144ba7(0x1a7)](){const _0x5711a6=_0x144ba7;this['_clearControls'](),this[_0x5711a6(0x207)](!0x0);}[_0x144ba7(0x48d)](_0x2500fb,_0x5f510e,_0x56c3ac,_0x5c52fe){const _0x8f1858=_0x144ba7;let _0x44b743=_0x2500fb;if(_0x44b743!==t[_0x8f1858(0x25e)][_0x8f1858(0x373)]&&_0x2500fb!==_0x8f1858(0x209))try{let _0x4b06c9=new t[(_0x8f1858(0x41d))](_0x44b743,'clip-adj-'+_0x2500fb);return _0x5c52fe&&_0x4b06c9['setShapeData']({'adjustValues':_0x5c52fe},!0x0),_0x4b06c9[_0x8f1858(0x307)]({'width':_0x5f510e,'height':_0x56c3ac}),_0x4b06c9;}catch{return;}}[_0x144ba7(0x3c6)](_0x450bb6,_0xbd1637,_0x3915d1){const _0x239ebd=_0x144ba7;let _0x3198f7={'unitId':_0x450bb6,'subUnitId':_0xbd1637,'drawingId':_0x3915d1},_0x49ca27=this[_0x239ebd(0x234)][_0x239ebd(0x233)](_0x3198f7);if(!(!_0x49ca27||_0x49ca27['drawingType']!==i[_0x239ebd(0x1d1)]['DRAWING_IMAGE']))return _0x49ca27;}[_0x144ba7(0x3b3)](_0x342f04,_0x318614,_0x38fb49){const _0x10a63c=_0x144ba7;let _0x5146cb=this[_0x10a63c(0x1f6)][_0x10a63c(0x248)](_0x342f04);if(!_0x5146cb)return;let {scene:_0x559aeb}=_0x5146cb,_0x1a5c26=(0x0,o[_0x10a63c(0x256)])({'unitId':_0x342f04,'subUnitId':_0x318614,'drawingId':_0x38fb49}),_0x41d392=_0x559aeb['getObject'](_0x1a5c26);if(_0x41d392 instanceof s[_0x10a63c(0x39b)]){let _0x1d35b8=_0x41d392[_0x10a63c(0x23f)];if(_0x1d35b8)return{'prstGeom':_0x1d35b8,'adjustValues':_0x41d392[_0x10a63c(0x28b)]};}}[_0x144ba7(0x207)](_0x28b43e=!0x1){const _0x3a997c=_0x144ba7;if(!this[_0x3a997c(0x375)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x24c2f8=this['_renderManagerService']['getRenderUnitById'](this[_0x3a997c(0x375)]);if(!_0x24c2f8||!_0x24c2f8['with'](c[_0x3a997c(0x3e8)])[_0x3a997c(0x2b7)]())return;let {scene:_0x5cc352}=_0x24c2f8,_0x3bc4b1=this['_getImageDrawingInfo'](this[_0x3a997c(0x375)],this['_subUnitId'],this['_activeImageId']);if(!_0x3bc4b1)return;let {transform:_0x3160f6}=_0x3bc4b1;if(!_0x3160f6)return;let {left:_0x474b7d,top:_0x563caf,width:_0x395afc,height:_0x3b90f6,flipX:_0x10dd65,flipY:_0x12450e,angle:_0x5eb9b2=0x0}=_0x3160f6;if(_0x474b7d===void 0x0||_0x563caf===void 0x0)return;let _0x18f6e7=this[_0x3a997c(0x3b3)](this[_0x3a997c(0x375)],this[_0x3a997c(0x469)],this[_0x3a997c(0x2c0)]);if(!_0x18f6e7)return;if(_0x28b43e){let _0x3e00b1=this[_0x3a997c(0x48d)](_0x18f6e7[_0x3a997c(0x23f)],_0x395afc||0x0,_0x3b90f6||0x0,_0x18f6e7[_0x3a997c(0x1bd)]);if(!_0x3e00b1)return;this[_0x3a997c(0x3c7)]=_0x3e00b1[_0x3a997c(0x360)]();}let _0x115fa6=this['_activeAdjustPointList'];if(!(!_0x115fa6||_0x115fa6[_0x3a997c(0x38e)]===0x0))for(let _0x2c4a1d=0x0;_0x2c4a1d<_0x115fa6[_0x3a997c(0x38e)];_0x2c4a1d++){let _0x27f0d4=_0x115fa6[_0x2c4a1d],_0x2e6f82=_0x27f0d4['x'],_0x1ce31d=_0x27f0d4['y'];if(_0x10dd65&&(_0x2e6f82=(_0x395afc||0x0)-_0x2e6f82),_0x12450e&&(_0x1ce31d=(_0x3b90f6||0x0)-_0x1ce31d),_0x5eb9b2!==0x0){let _0x1e9aee=(_0x395afc||0x0)/0x2,_0x3c474c=(_0x3b90f6||0x0)/0x2,_0x531c52=_0x5eb9b2*Math['PI']/0xb4,_0x1bfb44=Math[_0x3a997c(0x3f0)](_0x531c52),_0x535b5a=Math[_0x3a997c(0x1ab)](_0x531c52),_0x5dd3a7=_0x2e6f82-_0x1e9aee,_0x3389d8=_0x1ce31d-_0x3c474c;_0x2e6f82=_0x1e9aee+(_0x5dd3a7*_0x1bfb44-_0x3389d8*_0x535b5a),_0x1ce31d=_0x3c474c+(_0x5dd3a7*_0x535b5a+_0x3389d8*_0x1bfb44);}let _0xef0f4={'x':_0x2e6f82,'y':_0x1ce31d,'adjName':_0x27f0d4[_0x3a997c(0x1ce)]};this[_0x3a997c(0x3ec)](_0x5cc352,_0xef0f4,_0xef0f4[_0x3a997c(0x1ce)],_0x474b7d,_0x563caf,this[_0x3a997c(0x375)],this[_0x3a997c(0x469)]);}}[_0x144ba7(0x3ec)](_0x4b8d5c,_0x5991a9,_0x3648e,_0x25f903,_0x57da43,_0x2e4e00,_0x4e99d4){const _0x1a6b7e=_0x144ba7;if(!this[_0x1a6b7e(0x2c0)])return;let _0x1b7046='image-clip-adjust-point-'+this[_0x1a6b7e(0x2c0)]+'-'+_0x3648e,_0x37617c=_0x4b8d5c[_0x1a6b7e(0x457)](_0x1b7046);if(_0x37617c){_0x37617c[_0x1a6b7e(0x45b)]({'left':_0x5991a9['x']+_0x25f903-t['ShapeDefaultConfig'][_0x1a6b7e(0x493)],'top':_0x5991a9['y']+_0x57da43-t[_0x1a6b7e(0x3d8)]['adjHandleSize']});return;}let _0x18d431=new O(_0x1b7046,{'left':_0x5991a9['x']+_0x25f903-t[_0x1a6b7e(0x3d8)][_0x1a6b7e(0x493)],'top':_0x5991a9['y']+_0x57da43-t['ShapeDefaultConfig'][_0x1a6b7e(0x493)],'adjName':_0x3648e,'shapeId':this['_activeImageId'],'unitId':_0x2e4e00,'subUnitId':_0x4e99d4,'width':t['ShapeDefaultConfig']['adjHandleSize']+0x8,'height':t[_0x1a6b7e(0x3d8)][_0x1a6b7e(0x493)]+0x8,'zIndex':s[_0x1a6b7e(0x3ea)]+0x1,'evented':!0x0});this[_0x1a6b7e(0x455)][_0x1a6b7e(0x405)](_0x18d431),this[_0x1a6b7e(0x388)](_0x18d431,_0x4b8d5c,_0x3648e),_0x4b8d5c[_0x1a6b7e(0x1be)](_0x18d431,s[_0x1a6b7e(0x3ea)]+0x1);}['_clearControls'](){const _0x59a623=_0x144ba7;this[_0x59a623(0x455)]['length']!==0x0&&(this[_0x59a623(0x455)]['forEach'](_0x48fceb=>_0x48fceb[_0x59a623(0x33d)]()),this['_shapes']=[]);}['_getScrollInfo'](_0x26fb95,_0x14faa1){const _0x76add=_0x144ba7;var _0x512210;let _0x5f3601={'x':0x0,'y':0x0},_0x28d6a8=this[_0x76add(0x1f6)][_0x76add(0x248)](_0x26fb95);if(!_0x28d6a8||!_0x28d6a8['with'](c[_0x76add(0x3e8)])['getSkeleton'](_0x14faa1))return _0x5f3601;let _0x2f1e5c=_0x28d6a8[_0x76add(0x1af)](c[_0x76add(0x49b)]),_0x3ab409=_0x2f1e5c==null?void 0x0:_0x2f1e5c[_0x76add(0x42a)]();if(!_0x3ab409)return _0x5f3601;let _0xc5b65a=(_0x512210=this[_0x76add(0x41b)][_0x76add(0x2cd)](_0x26fb95))==null?void 0x0:_0x512210[_0x76add(0x461)](_0x14faa1);if(!_0xc5b65a)return _0x5f3601;let _0x1bd5c8=(0x0,c[_0x76add(0x250)])(_0x3ab409['sheetViewStartRow'],_0x3ab409['sheetViewStartColumn'],_0x28d6a8[_0x76add(0x3aa)],_0xc5b65a);return _0x1bd5c8?{'x':_0x1bd5c8[_0x76add(0x427)],'y':_0x1bd5c8[_0x76add(0x25c)]}:_0x5f3601;}['_getZoomRatio'](_0x5acbb5,_0x38965f){const _0x59284e=_0x144ba7;var _0x1cdfb8;let _0x5503f4=(_0x1cdfb8=this[_0x59284e(0x41b)][_0x59284e(0x2cd)](_0x5acbb5))==null?void 0x0:_0x1cdfb8[_0x59284e(0x461)](_0x38965f);return(_0x5503f4==null?void 0x0:_0x5503f4[_0x59284e(0x29a)]())??0x1;}['_attachAdjustEvent'](_0x5c89c0,_0x1a849c,_0x342757){const _0x44c364=_0x144ba7;this['disposeWithMe']((0x0,i[_0x44c364(0x37f)])(_0x5c89c0[_0x44c364(0x271)][_0x44c364(0x39d)]((_0x176e1f,_0x439b5b)=>{const _0x553854=_0x44c364;var _0x148ed8,_0x2eb488,_0x4af0af;let {unitId:_0xb42a79,subUnitId:_0x2a162a,drawingId:_0x4f3edd}=_0x5c89c0[_0x553854(0x447)](),_0x31c51b=this[_0x553854(0x3c6)](_0xb42a79,_0x2a162a,_0x4f3edd);if(!(_0x31c51b!=null&&_0x31c51b[_0x553854(0x3a8)]))return;let {left:_0xee5208,top:_0x2acab4,width:_0x570086,height:_0x18e295}=_0x31c51b[_0x553854(0x3a8)];this[_0x553854(0x2a3)]=_0xee5208||0x0,this['_baseTop']=_0x2acab4||0x0,this[_0x553854(0x326)]=_0x570086||0x0,this[_0x553854(0x35d)]=_0x18e295||0x0;let _0x273c34=!!((_0x148ed8=_0x31c51b[_0x553854(0x3a8)])!=null&&_0x148ed8[_0x553854(0x3ce)]),_0x235da6=!!((_0x2eb488=_0x31c51b[_0x553854(0x3a8)])!=null&&_0x2eb488['flipY']),_0x288a85=((_0x4af0af=_0x31c51b[_0x553854(0x3a8)])==null?void 0x0:_0x4af0af[_0x553854(0x3e1)])||0x0,_0x64245=this[_0x553854(0x3b3)](_0xb42a79,_0x2a162a,_0x4f3edd);if(!_0x64245)return;let _0x19a945=this['_getOrCreateShapeModel'](_0x64245['prstGeom'],this[_0x553854(0x326)],this['_baseHeight'],_0x64245[_0x553854(0x1bd)]);if(!_0x19a945||(this[_0x553854(0x46f)]=_0x19a945,this[_0x553854(0x44b)]=_0x19a945['getAdjustInfoByName'](_0x342757),!this[_0x553854(0x44b)]))return;this[_0x553854(0x499)]=!0x0,_0x1a849c[_0x553854(0x355)]();let _0x2e00b3=_0x64245[_0x553854(0x23f)];this[_0x553854(0x2a4)]=_0x1a849c['onPointerMove$'][_0x553854(0x39d)]((_0x459b8f,_0x329e57)=>{const _0x5bc4e0=_0x553854;if(!this['_isStartAdjusting'])return;let {offsetX:_0x461204,offsetY:_0x19ab92}=_0x459b8f,_0x102f8f=this[_0x5bc4e0(0x44b)];if(!this['_activeShapeModel']||!_0x102f8f)return;_0x1a849c[_0x5bc4e0(0x355)](),_0x1a849c[_0x5bc4e0(0x49a)](s['CURSOR_TYPE']['CROSSHAIR']);let _0x1bd436={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x3100f6=this[_0x5bc4e0(0x453)](_0xb42a79,_0x2a162a),_0x137ee4=this[_0x5bc4e0(0x37d)](_0xb42a79,_0x2a162a),_0x36f44c=_0x461204/_0x137ee4+_0x3100f6['x']-this[_0x5bc4e0(0x2a3)],_0x47139a=_0x19ab92/_0x137ee4+_0x3100f6['y']-this[_0x5bc4e0(0x38d)];if(_0x288a85!==0x0){let _0x197753=this[_0x5bc4e0(0x326)]/0x2,_0x5da0d5=this[_0x5bc4e0(0x35d)]/0x2,_0x4ee1f7=_0x288a85*Math['PI']/0xb4,_0x525d98=Math[_0x5bc4e0(0x3f0)](_0x4ee1f7),_0x1e290e=Math['sin'](_0x4ee1f7),_0xc4612f=_0x36f44c-_0x197753,_0x2a54c3=_0x47139a-_0x5da0d5;_0x36f44c=_0x197753+(_0xc4612f*_0x525d98+_0x2a54c3*_0x1e290e),_0x47139a=_0x5da0d5+(-_0xc4612f*_0x1e290e+_0x2a54c3*_0x525d98);}_0x273c34&&(_0x36f44c=this['_baseWidth']-_0x36f44c),_0x235da6&&(_0x47139a=this['_baseHeight']-_0x47139a);let _0x2d385a=this['_activeShapeModel'][_0x5bc4e0(0x440)](_0x1bd436,{'x':_0x36f44c,'y':_0x47139a},_0x102f8f,_0x273c34,_0x235da6);if(Object[_0x5bc4e0(0x403)](_0x2d385a)[_0x5bc4e0(0x38e)]!==0x0){for(let [_0x723867,_0x53e007]of Object[_0x5bc4e0(0x27d)](_0x2d385a))this[_0x5bc4e0(0x46f)][_0x5bc4e0(0x28e)](_0x723867,_0x53e007);this[_0x5bc4e0(0x46f)][_0x5bc4e0(0x307)]({'width':this[_0x5bc4e0(0x326)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0xb42a79,_0x2a162a,_0x4f3edd,_0x2d385a),this[_0x5bc4e0(0x3c7)]=this[_0x5bc4e0(0x46f)][_0x5bc4e0(0x360)](),this[_0x5bc4e0(0x207)](),_0x329e57[_0x5bc4e0(0x203)]();}}),this['_adjHandlerPointerUp']=_0x1a849c['onPointerUp$'][_0x553854(0x39d)]((_0x2b340b,_0x9769da)=>{const _0x3e8886=_0x553854;if(this[_0x3e8886(0x2a4)][_0x3e8886(0x2ea)](),this[_0x3e8886(0x43b)][_0x3e8886(0x2ea)](),_0x1a849c[_0x3e8886(0x1ac)](),this[_0x3e8886(0x46f)]){let _0x3765f7=this[_0x3e8886(0x46f)][_0x3e8886(0x354)](),_0x1b60de={};for(let _0x354eaa of _0x3765f7){let _0x11443f=this[_0x3e8886(0x46f)][_0x3e8886(0x2d1)](_0x354eaa);_0x11443f!==void 0x0&&(_0x1b60de[_0x354eaa]=_0x11443f);}this[_0x3e8886(0x30d)][_0x3e8886(0x295)](_0xb42a79,_0x2a162a,_0x4f3edd,_0x2e00b3,_0x1b60de);}this[_0x3e8886(0x44b)]=void 0x0,this[_0x3e8886(0x46f)]=void 0x0,this[_0x3e8886(0x499)]=!0x1,_0x9769da['stopPropagation'](),_0x1a849c[_0x3e8886(0x2a2)]();}),_0x439b5b['stopPropagation']();})));}['_updateImageAdjValues'](_0x523a85,_0x5317a5,_0x23c4df,_0x23dc8c){const _0xabc23c=_0x144ba7;let _0x2d1773=this[_0xabc23c(0x1f6)][_0xabc23c(0x248)](_0x523a85);if(!_0x2d1773)return;let {scene:_0x2ab6ca}=_0x2d1773,_0x105638=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x523a85,'subUnitId':_0x5317a5,'drawingId':_0x23c4df}),_0x205c77=_0x2ab6ca[_0xabc23c(0x275)](_0x105638);if(_0x205c77 instanceof s[_0xabc23c(0x39b)]){let _0x5dfeab=_0x205c77[_0xabc23c(0x28b)]??{};_0x205c77[_0xabc23c(0x247)]({..._0x5dfeab,..._0x23dc8c}),_0x205c77[_0xabc23c(0x412)](!0x0);}}[_0x144ba7(0x465)](){const _0xff1b9=_0x144ba7;let _0x517cfe=this['_univerInstanceService']['getCurrentTypeOfUnit$'](i['UniverInstanceType']['UNIVER_SHEET']);this['disposeWithMe'](_0x517cfe[_0xff1b9(0x2b6)]((0x0,l[_0xff1b9(0x484)])(_0xac4ddd=>_0xac4ddd?_0xac4ddd['activeSheet$'][_0xff1b9(0x2b6)]((0x0,l[_0xff1b9(0x484)])(_0x29e602=>{const _0x5a38c4=_0xff1b9;if(!_0x29e602)return l['EMPTY'];let _0x2b2ba3=_0xac4ddd[_0x5a38c4(0x33a)](),_0x1cf232=this[_0x5a38c4(0x1f6)][_0x5a38c4(0x248)](_0x2b2ba3),_0x1aacb1=_0x1cf232==null?void 0x0:_0x1cf232['scene'];return _0x1aacb1?(0x0,l['of'])(_0x1aacb1):l['EMPTY'];})):l['EMPTY']))[_0xff1b9(0x3d0)](_0x4be6c9=>{const _0x27cd43=_0xff1b9;let _0x17bf5e=_0x4be6c9['getTransformerByCreate']();this['disposeWithMe'](_0x4be6c9[_0x27cd43(0x2fe)][_0x27cd43(0x39d)](()=>{const _0x30d2ef=_0x27cd43;this[_0x30d2ef(0x490)]&&this[_0x30d2ef(0x22a)]();})),this['disposeWithMe'](_0x17bf5e['changeStart$'][_0x27cd43(0x3d0)](_0x3e4e47=>{const _0x310698=_0x27cd43;let {objects:_0x549fe2}=_0x3e4e47;if(this['_createControls'](),_0x549fe2!==null&&_0x549fe2[_0x310698(0x3de)]===0x1){let _0x2bec77=_0x549fe2[_0x310698(0x35c)]()[_0x310698(0x40f)]()[_0x310698(0x29b)];_0x2bec77 instanceof s[_0x310698(0x39b)]&&_0x2bec77['prstGeom']&&(this[_0x310698(0x490)]=!0x0);}})),this[_0x27cd43(0x350)](_0x17bf5e[_0x27cd43(0x2ce)][_0x27cd43(0x3d0)](()=>{const _0x370e20=_0x27cd43;this[_0x370e20(0x490)]&&this[_0x370e20(0x22a)]();})),this[_0x27cd43(0x350)](_0x4be6c9[_0x27cd43(0x24b)]['subscribeEvent'](()=>{const _0x462a0d=_0x27cd43;this[_0x462a0d(0x490)]&&(this[_0x462a0d(0x490)]=!0x1,this[_0x462a0d(0x207)]());})),this[_0x27cd43(0x350)](_0x17bf5e[_0x27cd43(0x470)][_0x27cd43(0x3d0)](()=>{const _0x2f169c=_0x27cd43;if(this[_0x2f169c(0x375)]&&this[_0x2f169c(0x469)]&&this[_0x2f169c(0x2c0)]){let _0x56d9cd=this['_getImagePrstGeom'](this[_0x2f169c(0x375)],this[_0x2f169c(0x469)],this[_0x2f169c(0x2c0)]);if(_0x56d9cd){var _0x3f0033,_0x561dd0;let _0x50217f=this[_0x2f169c(0x3c6)](this[_0x2f169c(0x375)],this[_0x2f169c(0x469)],this['_activeImageId']),_0x254130=(_0x50217f==null||(_0x3f0033=_0x50217f[_0x2f169c(0x3a8)])==null?void 0x0:_0x3f0033[_0x2f169c(0x1d7)])||0x0,_0x36ebd8=(_0x50217f==null||(_0x561dd0=_0x50217f[_0x2f169c(0x3a8)])==null?void 0x0:_0x561dd0[_0x2f169c(0x3cb)])||0x0,_0x190a62=this[_0x2f169c(0x48d)](_0x56d9cd[_0x2f169c(0x23f)],_0x254130,_0x36ebd8,_0x56d9cd[_0x2f169c(0x1bd)]);_0x190a62&&(this[_0x2f169c(0x3c7)]=_0x190a62[_0x2f169c(0x360)](),this[_0x2f169c(0x22a)](),this['_createControls'](!0x0));}}}));}));}[_0x144ba7(0x3f7)](){const _0x5a059d=_0x144ba7;this['disposeWithMe'](this['_drawingManagerService'][_0x5a059d(0x1b5)]['subscribe'](_0x470cf4=>{const _0x2b9687=_0x5a059d;if(_0x470cf4['length']===0x1){let _0x1798c5=_0x470cf4[0x0];if(_0x1798c5['drawingType']===i[_0x2b9687(0x1d1)]['DRAWING_IMAGE']){let {unitId:_0xcb27e3,subUnitId:_0x3fe34a,drawingId:_0x29d2c3}=_0x1798c5,_0x56723a=this[_0x2b9687(0x3b3)](_0xcb27e3,_0x3fe34a,_0x29d2c3);if(_0x56723a){var _0x2e12e7,_0xd676b0;this['_activeImageId']=_0x29d2c3,this[_0x2b9687(0x375)]=_0xcb27e3,this[_0x2b9687(0x469)]=_0x3fe34a;let _0x2cc58b=this[_0x2b9687(0x3c6)](_0xcb27e3,_0x3fe34a,_0x29d2c3),_0x2ff44b=(_0x2cc58b==null||(_0x2e12e7=_0x2cc58b[_0x2b9687(0x3a8)])==null?void 0x0:_0x2e12e7[_0x2b9687(0x1d7)])||0x0,_0x11c040=(_0x2cc58b==null||(_0xd676b0=_0x2cc58b[_0x2b9687(0x3a8)])==null?void 0x0:_0xd676b0['height'])||0x0,_0x34fd75=this[_0x2b9687(0x48d)](_0x56723a[_0x2b9687(0x23f)],_0x2ff44b,_0x11c040,_0x56723a[_0x2b9687(0x1bd)]);_0x34fd75&&(this[_0x2b9687(0x3c7)]=_0x34fd75[_0x2b9687(0x360)]()),this['_clearControls'](),this[_0x2b9687(0x207)](!0x0);}else this['_resetState']();}else this[_0x2b9687(0x44e)]();}else this[_0x2b9687(0x44e)]();})),this['disposeWithMe'](this[_0x5a059d(0x234)][_0x5a059d(0x3ad)][_0x5a059d(0x3d0)](_0x363f3e=>{const _0x12a9f0=_0x5a059d;if(_0x363f3e['length']===0x1){let _0x4c63de=_0x363f3e[0x0],_0x5db67b=this[_0x12a9f0(0x234)][_0x12a9f0(0x233)](_0x4c63de);(_0x5db67b==null?void 0x0:_0x5db67b[_0x12a9f0(0x34d)])===i[_0x12a9f0(0x1d1)][_0x12a9f0(0x1b4)]&&this[_0x12a9f0(0x2c0)]===_0x4c63de[_0x12a9f0(0x290)]&&(this[_0x12a9f0(0x22a)](),this[_0x12a9f0(0x207)](!0x0));}})),this['disposeWithMe'](this[_0x5a059d(0x234)][_0x5a059d(0x402)]['subscribe'](_0x227927=>{const _0x4bb770=_0x5a059d;for(let _0x485793 of _0x227927)this['_activeImageId']===_0x485793['drawingId']&&this[_0x4bb770(0x44e)]();}));}[_0x144ba7(0x44e)](){const _0x3f6d3c=_0x144ba7;this[_0x3f6d3c(0x2c0)]=null,this[_0x3f6d3c(0x375)]=null,this[_0x3f6d3c(0x469)]=null,this[_0x3f6d3c(0x3c7)]=void 0x0,this['_clearControls']();}};G=A([k(0x1,o[_0x144ba7(0x464)]),k(0x2,(0x0,i['Inject'])(s[_0x144ba7(0x1cb)])),k(0x3,i[_0x144ba7(0x334)]),k(0x4,(0x0,i[_0x144ba7(0x2c1)])(B))],G);let K=class extends i[_0x144ba7(0x2fc)]{constructor(_0xd9f041,_0x474853,_0x1e3779,_0x2aa591){const _0x53d07d=_0x144ba7;super(),this[_0x53d07d(0x41b)]=_0xd9f041,this[_0x53d07d(0x211)]=_0x474853,this[_0x53d07d(0x2b8)]=_0x1e3779,this['_sheetsShapeService']=_0x2aa591,this[_0x53d07d(0x31c)]();}[_0x144ba7(0x31c)](){const _0x681ea0=_0x144ba7;this[_0x681ea0(0x350)](this[_0x681ea0(0x211)][_0x681ea0(0x340)]({'getMutations':_0x3ea46c=>{const _0x3ea72f=_0x681ea0;if(_0x3ea46c['id']===a[_0x3ea72f(0x38b)]['id']){let _0x1eccea=(0x0,a['getSheetCommandTarget'])(this[_0x3ea72f(0x41b)],_0x3ea46c[_0x3ea72f(0x35b)]);if(!_0x1eccea)return{'redos':[],'undos':[]};let {unitId:_0x39f576,subUnitId:_0x2de90b}=_0x1eccea,_0x50044d=this[_0x3ea72f(0x2b8)]['getDrawingData'](_0x39f576,_0x2de90b),_0x4ce01c=Object['values'](_0x50044d)[_0x3ea72f(0x383)](_0x57df68=>_0x57df68['drawingType']===i['DrawingTypeEnum'][_0x3ea72f(0x2be)]);if(_0x4ce01c['length']===0x0)return{'redos':[],'undos':[]};let _0x192831=[],_0xedc623=[];for(let _0x1815c7=0x0;_0x1815c7<_0x4ce01c[_0x3ea72f(0x38e)];_0x1815c7++){let _0x572edd=_0x4ce01c[_0x1815c7],_0x1816fd=this[_0x3ea72f(0x1b3)][_0x3ea72f(0x3b2)](_0x572edd[_0x3ea72f(0x436)],_0x572edd[_0x3ea72f(0x1ee)],_0x572edd[_0x3ea72f(0x290)]);if(!_0x1816fd)continue;let {redo:_0x51ca76,undo:_0x1fa93a,objects:_0x2466df}=this[_0x3ea72f(0x2b8)][_0x3ea72f(0x1b2)]([_0x572edd]);_0x192831[_0x3ea72f(0x405)]({'id':r[_0x3ea72f(0x45a)]['id'],'params':{'unitId':_0x39f576,'subUnitId':_0x2de90b,'shapeId':_0x572edd[_0x3ea72f(0x290)]}}),_0x192831['push']({'id':g['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x39f576,'subUnitId':_0x2de90b,'type':g['DrawingApplyType'][_0x3ea72f(0x369)],'op':_0x51ca76,'objects':_0x2466df}}),_0xedc623[_0x3ea72f(0x405)]({'id':g['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x39f576,'subUnitId':_0x2de90b,'type':g[_0x3ea72f(0x3ff)]['INSERT'],'op':_0x1fa93a,'objects':_0x2466df}}),_0xedc623[_0x3ea72f(0x405)]({'id':r[_0x3ea72f(0x43c)]['id'],'params':{'unitId':_0x39f576,'subUnitId':_0x2de90b,'shapeId':_0x572edd[_0x3ea72f(0x290)],'shapeType':_0x1816fd['getShapeType'](),'shapeData':JSON[_0x3ea72f(0x223)](JSON[_0x3ea72f(0x458)](_0x1816fd[_0x3ea72f(0x2db)]()))}});}return{'redos':_0x192831,'undos':_0xedc623};}else{if(_0x3ea46c['id']===a[_0x3ea72f(0x292)]['id']){let {unitId:_0x4f59b6,subUnitId:_0x1ef83c,targetSubUnitId:_0x42f769}=_0x3ea46c[_0x3ea72f(0x35b)];if(!_0x4f59b6||!_0x1ef83c||!_0x42f769)return{'redos':[],'undos':[]};let _0x580044=this[_0x3ea72f(0x2b8)]['getDrawingData'](_0x4f59b6,_0x1ef83c),_0x21c604=Object[_0x3ea72f(0x35c)](_0x580044)[_0x3ea72f(0x383)](_0x48b0e6=>_0x48b0e6[_0x3ea72f(0x34d)]===i[_0x3ea72f(0x1d1)][_0x3ea72f(0x2be)]);if(_0x21c604['length']===0x0)return{'redos':[],'undos':[]};let _0x2cf070=[],_0x3f3083=[];for(let _0x5ca099=0x0;_0x5ca099<_0x21c604['length'];_0x5ca099++){let _0x3f4d1a=_0x21c604[_0x5ca099],_0x270080=this['_sheetsShapeService'][_0x3ea72f(0x3b2)](_0x3f4d1a[_0x3ea72f(0x436)],_0x3f4d1a[_0x3ea72f(0x1ee)],_0x3f4d1a['drawingId']);if(!_0x270080)continue;let _0xaee972=(0x0,i['generateRandomId'])(),_0x3b3f25={..._0x3f4d1a,'unitId':_0x4f59b6,'subUnitId':_0x42f769,'drawingId':_0xaee972},{redo:_0x5bb38a,undo:_0xd9e4cc,objects:_0x39ab1d}=this[_0x3ea72f(0x2b8)]['getBatchAddOp']([_0x3b3f25]);_0x2cf070[_0x3ea72f(0x405)]({'id':g[_0x3ea72f(0x258)]['id'],'params':{'unitId':_0x4f59b6,'subUnitId':_0x42f769,'type':g[_0x3ea72f(0x3ff)][_0x3ea72f(0x1a6)],'op':_0x5bb38a,'objects':_0x39ab1d}}),_0x2cf070[_0x3ea72f(0x405)]({'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4f59b6,'subUnitId':_0x42f769,'shapeId':_0xaee972,'shapeType':_0x270080[_0x3ea72f(0x196)](),'shapeData':JSON[_0x3ea72f(0x223)](JSON[_0x3ea72f(0x458)](_0x270080[_0x3ea72f(0x2db)]()))}}),_0x3f3083['push']({'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4f59b6,'subUnitId':_0x42f769,'shapeId':_0xaee972}}),_0x3f3083[_0x3ea72f(0x405)]({'id':g[_0x3ea72f(0x258)]['id'],'params':{'unitId':_0x4f59b6,'subUnitId':_0x42f769,'type':g[_0x3ea72f(0x3ff)][_0x3ea72f(0x369)],'op':_0xd9e4cc,'objects':_0x39ab1d}});}return{'redos':_0x2cf070,'undos':_0x3f3083};}}return{'redos':[],'undos':[]};}}));}};K=A([k(0x0,(0x0,i[_0x144ba7(0x2c1)])(i[_0x144ba7(0x334)])),k(0x1,(0x0,i['Inject'])(a[_0x144ba7(0x2ef)])),k(0x2,(0x0,i[_0x144ba7(0x2c1)])(g[_0x144ba7(0x3e3)])),k(0x3,(0x0,i['Inject'])(r[_0x144ba7(0x25b)]))],K);let Ae=class extends i['Disposable']{constructor(_0x993ffe,_0x494ccb,_0x3f252c,_0x2362df,_0x1e5486){const _0x53a008=_0x144ba7;super(),this[_0x53a008(0x41c)]=_0x993ffe,this[_0x53a008(0x244)]=_0x494ccb,this[_0x53a008(0x234)]=_0x3f252c,this[_0x53a008(0x481)]=_0x2362df,this[_0x53a008(0x1b3)]=_0x1e5486,E(this,_0x53a008(0x351),null),this[_0x53a008(0x222)](),this[_0x53a008(0x296)](),this[_0x53a008(0x1d0)]();}[_0x144ba7(0x222)](){const _0x14e47e=_0x144ba7;let {scene:_0x36305b}=this['_context'];this[_0x14e47e(0x350)](_0x36305b[_0x14e47e(0x444)][_0x14e47e(0x39d)](_0x3bcc2e=>{const _0x2e97d3=_0x14e47e;let {offsetX:_0x426517,offsetY:_0xe96c6e}=_0x3bcc2e,_0x124fdd=_0x36305b['pick'](s['Vector2'][_0x2e97d3(0x324)]([_0x426517,_0xe96c6e]));if(_0x124fdd instanceof D){let _0x17d080=this[_0x2e97d3(0x1b3)][_0x2e97d3(0x3b2)](_0x124fdd['unitId'],_0x124fdd[_0x2e97d3(0x1ee)],_0x124fdd['shapeId']);if(_0x17d080!=null&&_0x17d080[_0x2e97d3(0x2db)]()['formulaBinding']||(0x0,t[_0x2e97d3(0x1f5)])(this[_0x2e97d3(0x1b3)]['getShapeType'](_0x124fdd[_0x2e97d3(0x436)],_0x124fdd[_0x2e97d3(0x1ee)],_0x124fdd[_0x2e97d3(0x3c2)])))return;this[_0x2e97d3(0x244)][_0x2e97d3(0x1e3)]({'visible':!0x0,'unitId':_0x124fdd['unitId'],'subUnitId':_0x124fdd['subUnitId'],'shapeId':_0x124fdd['shapeId'],'shapeKey':_0x124fdd['oKey']});}}));}[_0x144ba7(0x296)](){const _0x108ab1=_0x144ba7;this[_0x108ab1(0x350)](this['_drawingManagerService'][_0x108ab1(0x1b5)][_0x108ab1(0x3d0)](_0x239009=>{const _0x2d08bb=_0x108ab1;if(_0x239009['length']===0x1){let _0x3d45ee=_0x239009[0x0],_0x7e3bb1=this['_drawingManagerService']['getDrawingByParam'](_0x3d45ee);if((_0x7e3bb1==null?void 0x0:_0x7e3bb1[_0x2d08bb(0x34d)])===i[_0x2d08bb(0x1d1)][_0x2d08bb(0x2be)]){var _0x3166d6;let _0x54dd19=this[_0x2d08bb(0x244)]['getEditing']();if((_0x54dd19==null?void 0x0:_0x54dd19[_0x2d08bb(0x3c2)])===_0x3d45ee['drawingId']&&_0x54dd19[_0x2d08bb(0x454)])return;let _0x28e761=(0x0,t[_0x2d08bb(0x1f5)])(this[_0x2d08bb(0x1b3)][_0x2d08bb(0x196)](_0x3d45ee['unitId'],_0x3d45ee[_0x2d08bb(0x1ee)],_0x3d45ee[_0x2d08bb(0x290)])),_0x3d6384=!!((_0x3166d6=this[_0x2d08bb(0x1b3)][_0x2d08bb(0x3b2)](_0x3d45ee['unitId'],_0x3d45ee[_0x2d08bb(0x1ee)],_0x3d45ee['drawingId']))!=null&&_0x3166d6[_0x2d08bb(0x2db)]()[_0x2d08bb(0x3c8)]);(_0x28e761||_0x3d6384)&&this[_0x2d08bb(0x244)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x2d08bb(0x19e)]()&&(this['_shapeTextEditingService'][_0x2d08bb(0x1b7)](!0x0),requestAnimationFrame(()=>{const _0x2c78e6=_0x2d08bb;this['_shapeTextEditingService'][_0x2c78e6(0x1e3)](null);}));}else this[_0x2d08bb(0x244)]['getEditing']()&&(this[_0x2d08bb(0x244)][_0x2d08bb(0x1b7)](!0x0),requestAnimationFrame(()=>{const _0x322e19=_0x2d08bb;this[_0x322e19(0x244)][_0x322e19(0x1e3)](null);}));})),this['disposeWithMe'](this[_0x108ab1(0x234)][_0x108ab1(0x402)]['subscribe'](_0x3f7018=>{const _0x3f8abe=_0x108ab1;let _0x229b4c=this[_0x3f8abe(0x244)][_0x3f8abe(0x19e)]();_0x229b4c&&_0x3f7018[_0x3f8abe(0x1c4)](_0x254146=>_0x254146['drawingId']===_0x229b4c['shapeId'])&&this['_shapeTextEditingService'][_0x3f8abe(0x1e3)](null);}));}[_0x144ba7(0x1d0)](){const _0x22df91=_0x144ba7;this[_0x22df91(0x350)](this['_shapeTextEditingService'][_0x22df91(0x2c8)][_0x22df91(0x3d0)](_0x295cb9=>{const _0x32c6da=_0x22df91;let {scene:_0x3e3079}=this[_0x32c6da(0x41c)];if(this[_0x32c6da(0x351)]){let _0x377d72=_0x3e3079[_0x32c6da(0x457)](this[_0x32c6da(0x351)]);_0x377d72&&_0x377d72['setEditing'](!0x1);}if(_0x295cb9){let _0x1cee38=!!_0x295cb9['visible'],_0x2526bf=_0x3e3079[_0x32c6da(0x457)](_0x295cb9['shapeKey']);_0x2526bf&&(_0x2526bf['setEditing'](_0x1cee38),this['_lastEditingShapeKey']=_0x295cb9[_0x32c6da(0x41a)]),this[_0x32c6da(0x481)]['setContextValue'](i[_0x32c6da(0x3f3)],_0x1cee38);}else this['_lastEditingShapeKey']=null,this[_0x32c6da(0x481)][_0x32c6da(0x2ad)](i[_0x32c6da(0x3f3)],!0x1);}));}};Ae=A([k(0x1,(0x0,i['Inject'])(U)),k(0x2,o[_0x144ba7(0x464)]),k(0x3,i[_0x144ba7(0x298)]),k(0x4,(0x0,i[_0x144ba7(0x2c1)])(r[_0x144ba7(0x25b)]))],Ae);let je=class extends u[_0x144ba7(0x448)]{constructor(_0x5d2866,_0xf37cd6,_0x398f83,_0x98bd0e){super(_0x5d2866,_0xf37cd6,_0x398f83,_0x98bd0e,{'componentKey':ne,'editorUnitId':R});}};je=A([k(0x1,(0x0,i[_0x144ba7(0x2c1)])(m[_0x144ba7(0x3d3)])),k(0x2,(0x0,i['Inject'])(h[_0x144ba7(0x443)])),k(0x3,(0x0,i[_0x144ba7(0x2c1)])(h[_0x144ba7(0x2b4)]))],je);let q=class extends i[_0x144ba7(0x2fc)]{constructor(_0x4ac564,_0x1b1b23,_0x1667aa,_0xb3b532,_0x2c6226,_0x1041a7){const _0xa0a608=_0x144ba7;super(),this[_0xa0a608(0x238)]=_0x4ac564,this[_0xa0a608(0x1f6)]=_0x1b1b23,this[_0xa0a608(0x234)]=_0x1667aa,this[_0xa0a608(0x47e)]=_0xb3b532,this['_drawingRenderService']=_0x2c6226,this[_0xa0a608(0x3b5)]=_0x1041a7,E(this,_0xa0a608(0x1e2),new Set()),this[_0xa0a608(0x23c)]();}[_0x144ba7(0x23c)](){const _0x515fc4=_0x144ba7;this[_0x515fc4(0x362)](),this[_0x515fc4(0x31b)](),this['_shapeUpdateListener']();}[_0x144ba7(0x362)](){const _0x26f5f9=_0x144ba7;this[_0x26f5f9(0x350)](this['_drawingManagerService'][_0x26f5f9(0x385)][_0x26f5f9(0x3d0)](_0x4570cf=>{const _0x56dd5c=_0x26f5f9;this[_0x56dd5c(0x319)](_0x4570cf);}));}[_0x144ba7(0x31b)](){const _0x491da1=_0x144ba7;this[_0x491da1(0x350)](this[_0x491da1(0x238)][_0x491da1(0x371)](_0x119b6d=>{const _0x501eba=_0x491da1;if(_0x119b6d['id']===r[_0x501eba(0x317)]['id']){let {unitId:_0xf9de03,subUnitId:_0x5a6ecd,shapeId:_0x2066e7}=_0x119b6d[_0x501eba(0x35b)],_0x558abd=this[_0x501eba(0x2df)](_0xf9de03),_0x1b510e=(0x0,o[_0x501eba(0x256)])({'unitId':_0xf9de03,'subUnitId':_0x5a6ecd,'drawingId':_0x2066e7}),_0x211709=_0x558abd==null?void 0x0:_0x558abd[_0x501eba(0x3aa)][_0x501eba(0x457)](_0x1b510e);_0x211709&&(this[_0x501eba(0x3b5)]['refreshShapeFillImage'](_0x211709),this[_0x501eba(0x3b5)][_0x501eba(0x353)](_0x211709,{'unitId':_0xf9de03,'subUnitId':_0x5a6ecd,'shapeId':_0x2066e7}),_0x211709[_0x501eba(0x412)](!0x0));return;}if(_0x119b6d['id']===r[_0x501eba(0x43c)]['id']){var _0x4bbad5;let {unitId:_0x321bff,subUnitId:_0x72e32d,shapeId:_0x1041f8}=_0x119b6d[_0x501eba(0x35b)],_0x19f180=this['_getSceneAndTransformerByDrawingSearch'](_0x321bff);if(_0x19f180==null)return;let {scene:_0x5c2e92}=_0x19f180,_0x25fda4=(0x0,o[_0x501eba(0x256)])({'unitId':_0x321bff,'subUnitId':_0x72e32d,'drawingId':_0x1041f8}),_0x42c861=_0x5c2e92[_0x501eba(0x457)](_0x25fda4);if(!((_0x4bbad5=this[_0x501eba(0x1f6)][_0x501eba(0x248)](_0x321bff))!=null&&_0x4bbad5[_0x501eba(0x1af)](c[_0x501eba(0x3e8)])['getSkeleton'](_0x72e32d)))return!0x1;if(_0x42c861)return;this[_0x501eba(0x319)]([{'unitId':_0x321bff,'subUnitId':_0x72e32d,'drawingId':_0x1041f8}]);}}));}['_shapeUpdateListener'](){const _0xa7ee8e=_0x144ba7;this['disposeWithMe'](this[_0xa7ee8e(0x234)]['update$'][_0xa7ee8e(0x3d0)](_0x456fc6=>{_0x456fc6['forEach'](_0x20883f=>{const _0xef0479=_0x38f0;let {unitId:_0x3c3513,subUnitId:_0x2860e5,drawingId:_0x4dae45}=_0x20883f,_0x200108=this['_drawingManagerService'][_0xef0479(0x233)](_0x20883f);if(_0x200108==null)return;let {transform:_0x305ed8,drawingType:_0x284163,srcRect:_0x39e679,prstGeom:_0x45a17f}=_0x200108;if(_0x284163!==i[_0xef0479(0x1d1)][_0xef0479(0x2be)])return;let _0x45aef7=this['_getSceneAndTransformerByDrawingSearch'](_0x3c3513);if(_0x45aef7==null)return;let {scene:_0x1f1997,transformer:_0xcadad9}=_0x45aef7;if(_0x305ed8==null)return!0x0;let _0x19599e=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3c3513,'subUnitId':_0x2860e5,'drawingId':_0x4dae45}),_0x5a0c9f=_0x1f1997[_0xef0479(0x457)](_0x19599e);if(_0x5a0c9f==null)return!0x0;_0x5a0c9f[_0xef0479(0x24d)](_0x39e679),_0x5a0c9f[_0xef0479(0x37e)](_0x45a17f);});}));}[_0x144ba7(0x319)](_0x30431f){const _0x163c26=_0x144ba7;for(let _0x22ae36 of _0x30431f){var _0x4c216f;let {unitId:_0x21bfdd,subUnitId:_0x350194,drawingId:_0x27c34a}=_0x22ae36,_0x380594=this['_getSceneAndTransformerByDrawingSearch'](_0x21bfdd),_0x443775=(_0x4c216f=(0x0,d['getCurrentUnitInfo'])(this[_0x163c26(0x47e)],_0x21bfdd))==null?void 0x0:_0x4c216f[_0x163c26(0x1ee)];if(_0x380594==null||_0x443775!==_0x350194)return;let _0x265197=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x21bfdd,'subUnitId':_0x350194,'drawingId':_0x27c34a});if(this[_0x163c26(0x1e2)]['has'](_0x265197)||_0x380594[_0x163c26(0x3aa)][_0x163c26(0x457)](_0x265197)!=null)return;let _0x5c3072=this[_0x163c26(0x234)][_0x163c26(0x233)](_0x22ae36);if(_0x5c3072==null||_0x5c3072[_0x163c26(0x34d)]!==i[_0x163c26(0x1d1)][_0x163c26(0x2be)])return;if((0x0,t['isConnectorShape'])((_0x5c3072['data']||{})[_0x163c26(0x3a3)])){let _0x5d3bbb=_0x5c3072['transform'];_0x5d3bbb&&(_0x5c3072[_0x163c26(0x3a8)]={..._0x5d3bbb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x163c26(0x1e2)][_0x163c26(0x1f3)](_0x265197);try{this[_0x163c26(0x3b5)]['renderDrawingShape'](_0x5c3072,_0x380594[_0x163c26(0x3aa)]);}finally{this[_0x163c26(0x1e2)][_0x163c26(0x2f0)](_0x265197);}queueMicrotask(()=>{const _0x23dd13=_0x163c26;if(this[_0x23dd13(0x3c0)])return;let _0x5912da=(0x0,o[_0x23dd13(0x256)])(_0x22ae36);if(!_0x380594[_0x23dd13(0x3aa)][_0x23dd13(0x457)](_0x5912da))return;let _0x122774=this[_0x23dd13(0x234)][_0x23dd13(0x233)](_0x22ae36);_0x122774&&this[_0x23dd13(0x234)][_0x23dd13(0x3ab)]([_0x122774]);});}}[_0x144ba7(0x2df)](_0x113d21){const _0x24a070=_0x144ba7;if(_0x113d21==null)return;let _0xf57c9c=this[_0x24a070(0x1f6)]['getRenderUnitById'](_0x113d21),_0x1e7f5e=_0xf57c9c==null?void 0x0:_0xf57c9c[_0x24a070(0x3aa)];return _0x1e7f5e==null?null:{'scene':_0x1e7f5e,'transformer':_0x1e7f5e[_0x24a070(0x303)]()};}};q=A([k(0x0,i[_0x144ba7(0x488)]),k(0x1,s[_0x144ba7(0x1cb)]),k(0x2,o[_0x144ba7(0x464)]),k(0x3,i['IUniverInstanceService']),k(0x4,(0x0,i[_0x144ba7(0x2c1)])(d[_0x144ba7(0x2e8)])),k(0x5,(0x0,i['Inject'])(j))],q);const Me={'normal':{'fill':t[_0x144ba7(0x3d8)]['cxnPointFill'],'stroke':t[_0x144ba7(0x3d8)][_0x144ba7(0x1c1)],'strokeWidth':t[_0x144ba7(0x3d8)][_0x144ba7(0x384)]},'highlighted':{'fill':_0x144ba7(0x2bb),'stroke':_0x144ba7(0x43a),'strokeWidth':0x2}};var Ne=class extends s['Shape']{constructor(_0x50b1a9,_0x5a8ed5){const _0x188c31=_0x144ba7;super(_0x50b1a9,_0x5a8ed5),E(this,'_targetShapeId',''),E(this,_0x188c31(0x48f),-0x1),E(this,'_unitId',''),E(this,_0x188c31(0x469),''),E(this,'_isHighlighted',!0x1),_0x5a8ed5&&this['setShapeProps'](_0x5a8ed5);}[_0x144ba7(0x21b)](){const _0x3817f5=_0x144ba7;return{'unitId':this[_0x3817f5(0x375)],'subUnitId':this[_0x3817f5(0x469)],'shapeId':this[_0x3817f5(0x3f9)],'cxnIndex':this[_0x3817f5(0x48f)]};}[_0x144ba7(0x364)](_0x3c32f9){const _0x1e843d=_0x144ba7;this[_0x1e843d(0x401)]!==_0x3c32f9&&(this[_0x1e843d(0x401)]=_0x3c32f9,this[_0x1e843d(0x412)](!0x0));}[_0x144ba7(0x3f6)](){const _0x517bc4=_0x144ba7;return this[_0x517bc4(0x401)];}['setShapeProps'](_0x4905cd){const _0x5d4a73=_0x144ba7;_0x4905cd[_0x5d4a73(0x38a)]!==void 0x0&&(this['_targetShapeId']=_0x4905cd[_0x5d4a73(0x38a)]),_0x4905cd[_0x5d4a73(0x285)]!==void 0x0&&(this['_cxnIndex']=_0x4905cd['cxnIndex']),_0x4905cd[_0x5d4a73(0x436)]!==void 0x0&&(this[_0x5d4a73(0x375)]=_0x4905cd[_0x5d4a73(0x436)]),_0x4905cd[_0x5d4a73(0x1ee)]!==void 0x0&&(this[_0x5d4a73(0x469)]=_0x4905cd[_0x5d4a73(0x1ee)]),_0x4905cd[_0x5d4a73(0x3f6)]!==void 0x0&&(this[_0x5d4a73(0x401)]=_0x4905cd[_0x5d4a73(0x3f6)]),this['transformByState']({'width':_0x4905cd[_0x5d4a73(0x1d7)]??t[_0x5d4a73(0x3d8)][_0x5d4a73(0x241)]*0x2,'height':_0x4905cd[_0x5d4a73(0x3cb)]??t['ShapeDefaultConfig'][_0x5d4a73(0x241)]*0x2});}['_draw'](_0x1b65f5){const _0x499bde=_0x144ba7;let _0x328bb5=this['_isHighlighted']?Me['highlighted']:Me[_0x499bde(0x2b1)];s[_0x499bde(0x22e)][_0x499bde(0x27e)](_0x1b65f5,{'radius':t[_0x499bde(0x3d8)][_0x499bde(0x241)],'fill':_0x328bb5['fill'],'stroke':_0x328bb5[_0x499bde(0x1e5)],'strokeWidth':_0x328bb5['strokeWidth'],'evented':!0x0});}};let J=class extends i['Disposable']{constructor(_0x206f58,_0x58555a,_0x123c12,_0x3d9c2f){const _0x288da6=_0x144ba7;super(),this[_0x288da6(0x41c)]=_0x206f58,this['_renderManagerService']=_0x58555a,this[_0x288da6(0x234)]=_0x123c12,this['_sheetsShapeService']=_0x3d9c2f,E(this,_0x288da6(0x1e0),[]),E(this,_0x288da6(0x409),null),E(this,_0x288da6(0x270),-0x1),E(this,_0x288da6(0x32c),null),E(this,_0x288da6(0x375),''),E(this,_0x288da6(0x469),''),E(this,_0x288da6(0x1cf),null);}[_0x144ba7(0x26b)](_0x4dc8c2,_0x15b2d0,_0x1220d5,_0x55b493){const _0x2926a4=_0x144ba7;this[_0x2926a4(0x32c)]=_0x4dc8c2,this[_0x2926a4(0x375)]=_0x15b2d0,this['_subUnitId']=_0x1220d5,this['_draggingConnectorId']=_0x55b493;}[_0x144ba7(0x2cc)](_0x3a6589){const _0x5f3936=_0x144ba7;if(!this[_0x5f3936(0x32c)])return null;let _0x3cbd5b=this['_findShapeAtPoint'](_0x3a6589);return _0x3cbd5b?(this[_0x5f3936(0x409)]!==_0x3cbd5b[_0x5f3936(0x3c2)]&&(this[_0x5f3936(0x382)](),this[_0x5f3936(0x36c)](_0x3cbd5b[_0x5f3936(0x3c2)],_0x3cbd5b['shapeModel']),this[_0x5f3936(0x409)]=_0x3cbd5b[_0x5f3936(0x3c2)]),this[_0x5f3936(0x420)](_0x3a6589)):(this[_0x5f3936(0x409)]!==null&&(this[_0x5f3936(0x382)](),this['_activeTargetShapeId']=null),null);}[_0x144ba7(0x1e6)](){const _0x2df1a8=_0x144ba7;this['_clearConnectionSites'](),this[_0x2df1a8(0x32c)]=null,this[_0x2df1a8(0x409)]=null,this[_0x2df1a8(0x270)]=-0x1,this[_0x2df1a8(0x1cf)]=null;}[_0x144ba7(0x214)](){const _0x122b3c=_0x144ba7;return this[_0x122b3c(0x409)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x122b3c(0x270)]};}[_0x144ba7(0x2a1)](_0x5a289f){const _0x47c360=_0x144ba7;let _0x163ee4=this[_0x47c360(0x234)][_0x47c360(0x1ea)](this[_0x47c360(0x375)],this['_subUnitId']);for(let _0xc26562 of Object[_0x47c360(0x403)](_0x163ee4)){if(_0xc26562===this['_draggingConnectorId']||_0x163ee4[_0xc26562]['drawingType']!==i[_0x47c360(0x1d1)][_0x47c360(0x2be)])continue;let _0x4cc20a=this[_0x47c360(0x1b3)][_0x47c360(0x3b2)](this[_0x47c360(0x375)],this[_0x47c360(0x469)],_0xc26562);if(!_0x4cc20a||(0x0,t[_0x47c360(0x1f5)])(_0x4cc20a[_0x47c360(0x196)]())||_0x4cc20a[_0x47c360(0x3d7)]()['length']===0x0||!this[_0x47c360(0x32c)])continue;let _0x163b14=(0x0,o[_0x47c360(0x256)])({'unitId':this[_0x47c360(0x375)],'subUnitId':this[_0x47c360(0x469)],'drawingId':_0xc26562}),_0x29fc3f=this[_0x47c360(0x32c)][_0x47c360(0x457)](_0x163b14);if(!_0x29fc3f)continue;let {left:_0x4fe1c7,top:_0x28a900,width:_0xd5f530,height:_0x598b62}=_0x29fc3f[_0x47c360(0x474)](),_0x569d03=_0x4fe1c7+_0xd5f530/0x2,_0x102892=_0x28a900+_0x598b62/0x2,_0x1b507d=_0x29fc3f[_0x47c360(0x3a8)][_0x47c360(0x3f1)](),_0x5ada27=new s[(_0x47c360(0x25d))]([_0x1b507d[0x0],_0x1b507d[0x1],_0x1b507d[0x2],_0x1b507d[0x3],_0x569d03,_0x102892]),_0x5403c9=_0x29fc3f['getParent'](),_0x12d0bd=(_0x29fc3f[_0x47c360(0x274)]&&(_0x5403c9==null?void 0x0:_0x5403c9[_0x47c360(0x3dc)])===s[_0x47c360(0x3be)][_0x47c360(0x341)]?_0x5403c9['ancestorTransform'][_0x47c360(0x2a0)](_0x5ada27):_0x5ada27)[_0x47c360(0x417)]()[_0x47c360(0x232)](_0x5a289f),_0x1b6160=_0xd5f530/0x2,_0x3df5cc=_0x598b62/0x2;if(_0x12d0bd['x']>=-_0x1b6160-0x5&&_0x12d0bd['x']<=_0x1b6160+0x5&&_0x12d0bd['y']>=-_0x3df5cc-0x5&&_0x12d0bd['y']<=_0x3df5cc+0x5)return{'shapeId':_0xc26562,'shapeModel':_0x4cc20a};}return null;}[_0x144ba7(0x36c)](_0x2f4b3b,_0x1fa7d4){const _0x5b0b49=_0x144ba7;if(!this[_0x5b0b49(0x32c)])return;let _0x21e875=(0x0,o[_0x5b0b49(0x256)])({'unitId':this[_0x5b0b49(0x375)],'subUnitId':this[_0x5b0b49(0x469)],'drawingId':_0x2f4b3b}),_0x28c846=this[_0x5b0b49(0x32c)][_0x5b0b49(0x457)](_0x21e875);if(!_0x28c846)return;let {left:_0x16d1db,top:_0x419565,width:_0x506183,height:_0x252639}=_0x28c846['getRealBound'](),_0x20db03=_0x16d1db+_0x506183/0x2,_0xbd1965=_0x419565+_0x252639/0x2,_0x39365b=_0x28c846['transform']['getMatrix'](),_0x38ecd7=new s[(_0x5b0b49(0x25d))]([_0x39365b[0x0],_0x39365b[0x1],_0x39365b[0x2],_0x39365b[0x3],_0x20db03,_0xbd1965]),_0x58e1ac=_0x28c846[_0x5b0b49(0x2f9)](),_0x5723bd=_0x28c846[_0x5b0b49(0x274)]&&(_0x58e1ac==null?void 0x0:_0x58e1ac['classType'])===s[_0x5b0b49(0x3be)][_0x5b0b49(0x341)]?_0x58e1ac[_0x5b0b49(0x23e)][_0x5b0b49(0x2a0)](_0x38ecd7):_0x38ecd7;_0x1fa7d4['updateContext']({'width':_0x506183,'height':_0x252639});let _0x236009=_0x1fa7d4[_0x5b0b49(0x3d7)]();for(let _0x478e6d of _0x236009){let _0x330f6e=_0x478e6d['x']-_0x506183/0x2,_0x137adb=_0x478e6d['y']-_0x252639/0x2,_0x412a48=_0x5723bd[_0x5b0b49(0x232)]({'x':_0x330f6e,'y':_0x137adb}),_0x397110=_0x412a48['x'],_0x232688=_0x412a48['y'],_0x59dc38=new Ne(_0x5b0b49(0x2f6)+_0x2f4b3b+'-'+_0x478e6d[_0x5b0b49(0x34f)],{'left':_0x397110-t[_0x5b0b49(0x3d8)]['cxnPointRadius'],'top':_0x232688-t[_0x5b0b49(0x3d8)][_0x5b0b49(0x241)],'targetShapeId':_0x2f4b3b,'cxnIndex':_0x478e6d[_0x5b0b49(0x34f)],'unitId':this[_0x5b0b49(0x375)],'subUnitId':this['_subUnitId'],'width':t[_0x5b0b49(0x3d8)]['cxnPointRadius']*0x2,'height':t[_0x5b0b49(0x3d8)][_0x5b0b49(0x241)]*0x2,'zIndex':s[_0x5b0b49(0x3ea)]+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x5b0b49(0x405)](_0x59dc38),this[_0x5b0b49(0x32c)][_0x5b0b49(0x1be)](_0x59dc38,s[_0x5b0b49(0x3ea)]+0x2);}}[_0x144ba7(0x420)](_0x544db5){const _0x366a9f=_0x144ba7;let _0x5491f6=null,_0x43432d=0x1/0x0,_0x3807e4=null;for(let _0x282cde of this[_0x366a9f(0x1e0)]){let _0x559ac5=_0x282cde['left']+t[_0x366a9f(0x3d8)][_0x366a9f(0x241)],_0x12ee5a=_0x282cde[_0x366a9f(0x46b)]+t['ShapeDefaultConfig'][_0x366a9f(0x241)],_0x3c4945=_0x544db5['x']-_0x559ac5,_0x44f346=_0x544db5['y']-_0x12ee5a,_0x55782d=Math[_0x366a9f(0x40e)](_0x3c4945*_0x3c4945+_0x44f346*_0x44f346);_0x55782d<_0x43432d&&(_0x43432d=_0x55782d,_0x5491f6=_0x282cde,_0x3807e4={'x':_0x559ac5,'y':_0x12ee5a});}let _0x557e6b=_0x43432d<=0xa&&_0x5491f6?_0x5491f6['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x557e6b!==this['_highlightedSiteIndex']){for(let _0x3358a0 of this['_connectionSiteObjects']){let _0xa4e496=_0x3358a0[_0x366a9f(0x21b)]();_0x3358a0[_0x366a9f(0x364)](_0xa4e496[_0x366a9f(0x285)]===_0x557e6b);}this[_0x366a9f(0x270)]=_0x557e6b;}if(_0x43432d<=0xa&&_0x5491f6&&_0x3807e4){let _0x3ef923=_0x5491f6[_0x366a9f(0x21b)](),_0x3d5216=this[_0x366a9f(0x36a)](_0x3ef923['shapeId'],_0x3ef923[_0x366a9f(0x285)]);return{'shapeId':_0x3ef923[_0x366a9f(0x3c2)],'cxnIndex':_0x3ef923['cxnIndex'],'unitId':_0x3ef923[_0x366a9f(0x436)],'subUnitId':_0x3ef923['subUnitId'],'worldPoint':_0x3807e4,'angle':_0x3d5216};}return null;}['_getConnectionSiteAngle'](_0x36b361,_0x27a39a){const _0xa6c83=_0x144ba7;let _0x527ae9=this[_0xa6c83(0x1b3)][_0xa6c83(0x3b2)](this[_0xa6c83(0x375)],this['_subUnitId'],_0x36b361);if(!_0x527ae9)return 0x0;let _0x5ed53c=this[_0xa6c83(0x234)][_0xa6c83(0x233)]({'unitId':this[_0xa6c83(0x375)],'subUnitId':this['_subUnitId'],'drawingId':_0x36b361});if(!(_0x5ed53c!=null&&_0x5ed53c[_0xa6c83(0x3a8)]))return 0x0;let {width:_0x44d030=0x0,height:_0x3adeb8=0x0,flipX:_0x17fc2d=!0x1,flipY:_0x78cfb4=!0x1}=_0x5ed53c[_0xa6c83(0x3a8)];_0x527ae9[_0xa6c83(0x307)]({'width':_0x44d030,'height':_0x3adeb8});let _0x11ab24=_0x527ae9['getConnectionSiteList']()[_0xa6c83(0x1cd)](_0x5cfdd6=>_0x5cfdd6[_0xa6c83(0x34f)]===_0x27a39a);if(!_0x11ab24)return 0x0;let _0x44386a=_0x11ab24[_0xa6c83(0x260)]/0xea60;return _0x17fc2d&&(_0x44386a=0xb4-_0x44386a),_0x78cfb4&&(_0x44386a=-_0x44386a),_0x44386a=(_0x44386a%0x168+0x168)%0x168,_0x44386a;}['_clearConnectionSites'](){const _0x33d81d=_0x144ba7;for(let _0x24357c of this[_0x33d81d(0x1e0)])_0x24357c[_0x33d81d(0x33d)]();this[_0x33d81d(0x1e0)]=[],this[_0x33d81d(0x270)]=-0x1;}[_0x144ba7(0x33d)](){const _0x5adca9=_0x144ba7;this['_clearConnectionSites'](),super[_0x5adca9(0x33d)]();}};J=A([k(0x1,(0x0,i[_0x144ba7(0x2c1)])(s[_0x144ba7(0x1cb)])),k(0x2,(0x0,i[_0x144ba7(0x2c1)])(o[_0x144ba7(0x464)])),k(0x3,(0x0,i['Inject'])(r[_0x144ba7(0x25b)]))],J);let Y=class extends i[_0x144ba7(0x2fc)]{constructor(_0x3d2fd4,_0x130083,_0x1fe615,_0x42b9f2,_0x3d0e78){const _0x41dfec=_0x144ba7;super(),this[_0x41dfec(0x496)]=_0x3d2fd4,this[_0x41dfec(0x3bd)]=_0x130083,this[_0x41dfec(0x2b8)]=_0x1fe615,this[_0x41dfec(0x413)]=_0x42b9f2,this[_0x41dfec(0x30f)]=_0x3d0e78,E(this,_0x41dfec(0x1c2),void 0x0),this[_0x41dfec(0x1a1)](),this[_0x41dfec(0x3a5)]();}get[_0x144ba7(0x329)](){const _0x1bd404=_0x144ba7;return this[_0x1bd404(0x2b8)]['getFocusDrawings']();}[_0x144ba7(0x3a5)](){const _0x23e6a8=_0x144ba7;this[_0x23e6a8(0x30f)][_0x23e6a8(0x3f4)](({fromUnitId:_0x4ee4dc,fromSubUnitId:_0x592043,toUnitId:_0x3ccd72,toSubUnitId:_0x310d91,idMap:_0x35512e})=>{const _0x1d1ae8=_0x23e6a8;let _0x38ae6c=[],_0x2c7bb6=[];for(let [_0x350b40,_0x57af9f]of _0x35512e['entries']()){let _0x41b8b6=this[_0x1d1ae8(0x413)][_0x1d1ae8(0x3b2)](_0x4ee4dc,_0x592043,_0x350b40);if(!_0x41b8b6)continue;let _0x18b39c=_0x41b8b6[_0x1d1ae8(0x196)](),_0x1bdba6=JSON[_0x1d1ae8(0x223)](JSON[_0x1d1ae8(0x458)](_0x41b8b6['getShapeData']()));if(_0x1bdba6[_0x1d1ae8(0x240)]){var _0x1a4064,_0x508135;let _0x109b69=(_0x1a4064=_0x1bdba6[_0x1d1ae8(0x240)]['from'])==null?void 0x0:_0x1a4064[_0x1d1ae8(0x3c2)],_0x4b7d0b=(_0x508135=_0x1bdba6['relation']['to'])==null?void 0x0:_0x508135[_0x1d1ae8(0x3c2)],_0x41360b=!_0x109b69||_0x35512e['has'](_0x109b69),_0x3bac97=!_0x4b7d0b||_0x35512e[_0x1d1ae8(0x483)](_0x4b7d0b);_0x41360b&&_0x109b69&&_0x1bdba6['relation'][_0x1d1ae8(0x33c)]?_0x1bdba6[_0x1d1ae8(0x240)]['from']={..._0x1bdba6[_0x1d1ae8(0x240)][_0x1d1ae8(0x33c)],'shapeId':_0x35512e[_0x1d1ae8(0x45d)](_0x109b69)}:_0x1bdba6[_0x1d1ae8(0x240)][_0x1d1ae8(0x33c)]=void 0x0,_0x3bac97&&_0x4b7d0b&&_0x1bdba6[_0x1d1ae8(0x240)]['to']?_0x1bdba6[_0x1d1ae8(0x240)]['to']={..._0x1bdba6['relation']['to'],'shapeId':_0x35512e[_0x1d1ae8(0x45d)](_0x4b7d0b)}:_0x1bdba6[_0x1d1ae8(0x240)]['to']=void 0x0;}_0x38ae6c['push']({'id':r[_0x1d1ae8(0x43c)]['id'],'params':{'unitId':_0x3ccd72,'subUnitId':_0x310d91,'shapeId':_0x57af9f,'shapeType':_0x18b39c,'shapeData':_0x1bdba6}}),_0x2c7bb6[_0x1d1ae8(0x405)]({'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3ccd72,'subUnitId':_0x310d91,'shapeId':_0x57af9f}});}return{'redos':_0x38ae6c,'undos':_0x2c7bb6};});}[_0x144ba7(0x1a1)](){const _0x10af38=_0x144ba7;this[_0x10af38(0x350)](this['_sheetClipboardService'][_0x10af38(0x1a3)]({'id':_0x10af38(0x42e),'onBeforeCopy':(_0x299014,_0x4d0730,_0x49b560,_0x511468)=>{const _0x3f2946=_0x10af38;this[_0x3f2946(0x1c2)]=null;let _0x5b0d17=this[_0x3f2946(0x329)];if(_0x5b0d17[_0x3f2946(0x38e)]){let _0x250b12=_0x5b0d17['filter'](_0xccb7dc=>_0xccb7dc[_0x3f2946(0x34d)]===i[_0x3f2946(0x1d1)][_0x3f2946(0x2be)]);if(_0x250b12[_0x3f2946(0x38e)]===0x0)return;this['_copyInfo']={'unitId':_0x299014,'subUnitId':_0x4d0730,'copyType':_0x511468,'drawings':_0x250b12};}else this[_0x3f2946(0x2e6)](_0x299014,_0x4d0730,_0x49b560,_0x511468);},'onPasteCells':(_0x2d1ea5,_0x96851a,_0x990b27,_0x4dfe18)=>{const _0x4f06b7=_0x10af38;if(!this[_0x4f06b7(0x1c2)])return{'redos':[],'undos':[]};let {pasteType:_0x130ca9}=_0x4dfe18;return _0x130ca9===c[_0x4f06b7(0x3fb)][_0x4f06b7(0x257)]?this[_0x4f06b7(0x2aa)](_0x96851a,this[_0x4f06b7(0x1c2)][_0x4f06b7(0x37a)]===c[_0x4f06b7(0x291)][_0x4f06b7(0x1fe)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x3001c4=>this['_copyInfo']?this[_0x10af38(0x2aa)](_0x3001c4,this[_0x10af38(0x1c2)]['copyType']===c[_0x10af38(0x291)][_0x10af38(0x1fe)]):{'redos':[],'undos':[]}}));}[_0x144ba7(0x2e6)](_0x2ee821,_0x2486da,_0x353a0d,_0x1d7912){const _0x4a617e=_0x144ba7;let _0x30b04b=this['_sheetSkeletonService'][_0x4a617e(0x45f)](_0x2ee821,_0x2486da);if(!_0x30b04b)return;let _0x1f0d36=(0x0,a[_0x4a617e(0x2f3)])(_0x30b04b,_0x353a0d);if(!_0x1f0d36)return;let {startX:_0x1d1f13,endX:_0x3c158b,startY:_0x3fc1db,endY:_0x590d3e}=_0x1f0d36,_0x2f1de4=this[_0x4a617e(0x2b8)]['getDrawingData'](_0x2ee821,_0x2486da),_0x560121=this['_focusedDrawings'][_0x4a617e(0x19c)]();for(let [_0x16dc3f,_0x369634]of Object[_0x4a617e(0x27d)](_0x2f1de4)){if(_0x369634[_0x4a617e(0x34d)]!==i['DrawingTypeEnum']['DRAWING_SHAPE'])continue;let {transform:_0x2b1b1a}=_0x369634;if(!_0x2b1b1a)continue;let {left:_0x2dbc52=0x0,top:_0x7b3ca9=0x0,width:_0x393977=0x0,height:_0x2327f8=0x0}=_0x2b1b1a;_0x1d1f13<=_0x2dbc52&&_0x3c158b>=_0x2dbc52+_0x393977&&_0x3fc1db<=_0x7b3ca9&&_0x590d3e>=_0x7b3ca9+_0x2327f8&&_0x560121[_0x4a617e(0x405)](_0x369634);}_0x560121[_0x4a617e(0x38e)]>0x0&&(this[_0x4a617e(0x1c2)]={'unitId':_0x2ee821,'subUnitId':_0x2486da,'copyType':_0x1d7912,'copyRange':_0x353a0d,'drawings':_0x560121});}[_0x144ba7(0x2aa)](_0x2c7a8c,_0x2813aa){const _0x162f25=_0x144ba7;let {unitId:_0x309b5b,subUnitId:_0xf1e92e,range:_0x579d09}=_0x2c7a8c,_0x3f4b69=this['_sheetSkeletonService']['getSkeleton'](_0x309b5b,_0xf1e92e);if(!_0x3f4b69)return{'redos':[],'undos':[]};let _0x5ad37b=(0x0,a['discreteRangeToRange'])(_0x579d09),{unitId:_0x452801,subUnitId:_0x1c588f,copyRange:_0x5aaf7c,drawings:_0xdb9080}=this[_0x162f25(0x1c2)],_0x2f97e1=this[_0x162f25(0x496)][_0x162f25(0x45f)](_0x452801,_0x1c588f);if(!_0x2f97e1)return{'redos':[],'undos':[]};let _0x283705;if(!_0x5aaf7c){let _0x29331b=0x1/0x0,_0x1bb57f=0x1/0x0;for(let _0xd2a2b8 of _0xdb9080){let {left:_0x3f9234=0x0,top:_0x11ccc4=0x0}=_0xd2a2b8[_0x162f25(0x3a8)]??{};_0x3f9234<_0x29331b&&(_0x29331b=_0x3f9234),_0x11ccc4<_0x1bb57f&&(_0x1bb57f=_0x11ccc4);}_0x29331b!==0x1/0x0&&_0x1bb57f!==0x1/0x0&&(_0x283705={'left':_0x29331b,'top':_0x1bb57f});}let _0x5d6390=new Map();if(!_0x2813aa){for(let _0x207041 of _0xdb9080)_0x5d6390[_0x162f25(0x478)](_0x207041[_0x162f25(0x290)],(0x0,i[_0x162f25(0x399)])());}let _0x2e2d0b=[],_0x11f942=[];for(let _0x21068f of _0xdb9080){let {drawingId:_0x107240,transform:_0x2d1ce6,sheetTransform:_0x5537df}=_0x21068f;if(!_0x2d1ce6||!_0x5537df)continue;let _0x1f97ad=this[_0x162f25(0x415)]({'transform':_0x2d1ce6,'sheetTransform':_0x5537df},{'skeleton':_0x2f97e1,'range':_0x5aaf7c},{'skeleton':_0x3f4b69,'range':_0x5ad37b},_0x283705);if(_0x2813aa){let {redos:_0x376350,undos:_0x2c9edf}=this[_0x162f25(0x357)]({'fromUnitId':_0x452801,'fromSubUnitId':_0x1c588f,'toUnitId':_0x309b5b,'toSubUnitId':_0xf1e92e,'drawing':_0x21068f,'newTransforms':_0x1f97ad});_0x2e2d0b['push'](..._0x376350),_0x11f942[_0x162f25(0x405)](..._0x2c9edf);continue;}let {redos:_0x5a683c,undos:_0x5ded22}=this[_0x162f25(0x421)]({'toUnitId':_0x309b5b,'toSubUnitId':_0xf1e92e,'drawing':_0x21068f,'newTransforms':_0x1f97ad,'newDrawingId':_0x5d6390[_0x162f25(0x45d)](_0x107240),'idMap':_0x5d6390});_0x2e2d0b[_0x162f25(0x405)](..._0x5a683c),_0x11f942[_0x162f25(0x405)](..._0x5ded22);}return{'redos':_0x2e2d0b,'undos':_0x11f942};}[_0x144ba7(0x357)](_0x3319a8){const _0x1898a6=_0x144ba7;let {fromUnitId:_0x313ca1,fromSubUnitId:_0x5d26bf,toUnitId:_0xc82998,toSubUnitId:_0x4d8d70,drawing:_0x1d17ff,newTransforms:_0xf49d30}=_0x3319a8,_0xf6232c={..._0x1d17ff,'unitId':_0xc82998,'subUnitId':_0x4d8d70,'transform':_0xf49d30['transform'],'sheetTransform':_0xf49d30['sheetTransform']};if(_0xc82998===_0x313ca1&&_0x4d8d70===_0x5d26bf){let {redo:_0x13bc98,undo:_0x3875a1,objects:_0x46ee55}=this[_0x1898a6(0x2b8)][_0x1898a6(0x28d)]([_0xf6232c]);return{'redos':[{'id':g[_0x1898a6(0x258)]['id'],'params':{'unitId':_0xc82998,'subUnitId':_0x4d8d70,'type':g[_0x1898a6(0x3ff)][_0x1898a6(0x242)],'op':_0x13bc98,'objects':_0x46ee55}}],'undos':[{'id':g[_0x1898a6(0x258)]['id'],'params':{'unitId':_0xc82998,'subUnitId':_0x4d8d70,'type':g[_0x1898a6(0x3ff)][_0x1898a6(0x242)],'op':_0x3875a1,'objects':_0x46ee55}}]};}else{let _0x321a60=this[_0x1898a6(0x2b8)][_0x1898a6(0x1b2)]([_0x1d17ff]),_0x579eea=this[_0x1898a6(0x2b8)]['getBatchAddOp']([_0xf6232c]),_0x2cd1ec=this['_shapeService']['getShapeModel'](_0x1d17ff[_0x1898a6(0x436)],_0x1d17ff[_0x1898a6(0x1ee)],_0x1d17ff['drawingId']);if(!_0x2cd1ec)return{'redos':[],'undos':[]};let _0x1a1e2f=_0x2cd1ec[_0x1898a6(0x196)](),_0x2b4a90=JSON[_0x1898a6(0x223)](JSON[_0x1898a6(0x458)](_0x2cd1ec[_0x1898a6(0x2db)]()));return{'redos':[{'id':g[_0x1898a6(0x258)]['id'],'params':{'unitId':_0x313ca1,'subUnitId':_0x5d26bf,'type':g[_0x1898a6(0x3ff)][_0x1898a6(0x369)],'op':_0x321a60[_0x1898a6(0x284)],'objects':_0x321a60[_0x1898a6(0x25a)]}},{'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x313ca1,'subUnitId':_0x5d26bf,'shapeId':_0x1d17ff['drawingId']}},{'id':g[_0x1898a6(0x258)]['id'],'params':{'unitId':_0xc82998,'subUnitId':_0x4d8d70,'type':g[_0x1898a6(0x3ff)][_0x1898a6(0x1a6)],'op':_0x579eea['redo'],'objects':_0x579eea[_0x1898a6(0x25a)]}},{'id':r[_0x1898a6(0x43c)]['id'],'params':{'unitId':_0xc82998,'subUnitId':_0x4d8d70,'shapeId':_0x1d17ff[_0x1898a6(0x290)],'shapeType':_0x1a1e2f,'shapeData':_0x2b4a90}}],'undos':[{'id':g['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x313ca1,'subUnitId':_0x5d26bf,'type':g[_0x1898a6(0x3ff)][_0x1898a6(0x1a6)],'op':_0x321a60[_0x1898a6(0x24e)],'objects':_0x321a60[_0x1898a6(0x25a)]}},{'id':r[_0x1898a6(0x43c)]['id'],'params':{'unitId':_0x313ca1,'subUnitId':_0x5d26bf,'shapeId':_0x1d17ff[_0x1898a6(0x290)],'shapeType':_0x1a1e2f,'shapeData':_0x2b4a90}},{'id':g[_0x1898a6(0x258)]['id'],'params':{'unitId':_0xc82998,'subUnitId':_0x4d8d70,'type':g[_0x1898a6(0x3ff)][_0x1898a6(0x369)],'op':_0x579eea[_0x1898a6(0x24e)],'objects':_0x579eea['objects']}},{'id':r[_0x1898a6(0x45a)]['id'],'params':{'unitId':_0xc82998,'subUnitId':_0x4d8d70,'shapeId':_0x1d17ff[_0x1898a6(0x290)]}}]};}}[_0x144ba7(0x421)](_0x304fb7){const _0x30e715=_0x144ba7;let {toUnitId:_0x2a8805,toSubUnitId:_0x2c24fb,drawing:_0x10abad,newTransforms:_0x16a0f5,newDrawingId:_0x22c709,idMap:_0x5ac951}=_0x304fb7,_0x35ff95={..._0x10abad,'unitId':_0x2a8805,'subUnitId':_0x2c24fb,'drawingId':_0x22c709,'transform':_0x16a0f5[_0x30e715(0x3a8)],'sheetTransform':_0x16a0f5[_0x30e715(0x3b9)]},{redo:_0x2817e9,undo:_0xccfc90,objects:_0x473f73}=this[_0x30e715(0x2b8)][_0x30e715(0x41f)]([_0x35ff95]),_0x260699=this[_0x30e715(0x413)][_0x30e715(0x3b2)](_0x10abad[_0x30e715(0x436)],_0x10abad[_0x30e715(0x1ee)],_0x10abad['drawingId']);if(!_0x260699)return{'redos':[],'undos':[]};let _0xb92190=_0x260699['getShapeType'](),_0x2c1588=JSON['parse'](JSON['stringify'](_0x260699[_0x30e715(0x2db)]()));if(_0x2c1588['relation']){var _0x3e1ec9,_0x59875b;let _0x135023=(_0x3e1ec9=_0x2c1588[_0x30e715(0x240)][_0x30e715(0x33c)])==null?void 0x0:_0x3e1ec9[_0x30e715(0x3c2)],_0x58a6d4=(_0x59875b=_0x2c1588[_0x30e715(0x240)]['to'])==null?void 0x0:_0x59875b[_0x30e715(0x3c2)],_0x27f125=!_0x135023||_0x5ac951[_0x30e715(0x483)](_0x135023),_0xcd8695=!_0x58a6d4||_0x5ac951[_0x30e715(0x483)](_0x58a6d4);_0x27f125&&_0x135023&&_0x2c1588[_0x30e715(0x240)][_0x30e715(0x33c)]?_0x2c1588['relation'][_0x30e715(0x33c)]={..._0x2c1588['relation'][_0x30e715(0x33c)],'shapeId':_0x5ac951[_0x30e715(0x45d)](_0x135023)}:_0x2c1588[_0x30e715(0x240)][_0x30e715(0x33c)]=void 0x0,_0xcd8695&&_0x58a6d4&&_0x2c1588[_0x30e715(0x240)]['to']?_0x2c1588[_0x30e715(0x240)]['to']={..._0x2c1588[_0x30e715(0x240)]['to'],'shapeId':_0x5ac951['get'](_0x58a6d4)}:_0x2c1588[_0x30e715(0x240)]['to']=void 0x0;}return{'redos':[{'id':g[_0x30e715(0x258)]['id'],'params':{'unitId':_0x2a8805,'subUnitId':_0x2c24fb,'type':g['DrawingApplyType'][_0x30e715(0x1a6)],'op':_0x2817e9,'objects':_0x473f73}},{'id':r[_0x30e715(0x43c)]['id'],'params':{'unitId':_0x2a8805,'subUnitId':_0x2c24fb,'shapeId':_0x22c709,'shapeType':_0xb92190,'shapeData':_0x2c1588}}],'undos':[{'id':g[_0x30e715(0x258)]['id'],'params':{'unitId':_0x2a8805,'subUnitId':_0x2c24fb,'type':g[_0x30e715(0x3ff)][_0x30e715(0x369)],'op':_0xccfc90,'objects':_0x473f73}},{'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x2a8805,'subUnitId':_0x2c24fb,'shapeId':_0x22c709}}]};}[_0x144ba7(0x415)](_0x363cd5,_0x39eabb,_0x3c4b73,_0x3294f3){const _0x91513a=_0x144ba7;let {range:_0xd9d7b0,skeleton:_0x471584}=_0x39eabb,{range:_0x440a80,skeleton:_0x3ed227}=_0x3c4b73,{transform:_0x529ac1,sheetTransform:_0x477d13}=_0x363cd5,_0xc8be62={..._0x529ac1};if(_0xd9d7b0){let _0x120c57=(0x0,a[_0x91513a(0x2f3)])(_0x471584,_0xd9d7b0),_0x2d03b7=(0x0,a[_0x91513a(0x2f3)])(_0x3ed227,_0x440a80);if(_0x120c57&&_0x2d03b7){let _0x486bed=_0x2d03b7[_0x91513a(0x243)]-_0x120c57[_0x91513a(0x243)],_0x4dbe99=_0x2d03b7[_0x91513a(0x495)]-_0x120c57[_0x91513a(0x495)];_0xc8be62['left']=(_0xc8be62[_0x91513a(0x34e)]??0x0)+_0x486bed,_0xc8be62['top']=(_0xc8be62[_0x91513a(0x46b)]??0x0)+_0x4dbe99;}}else{let _0x17acc4=(0x0,a[_0x91513a(0x2f3)])(_0x3ed227,_0x440a80);if(_0x3294f3&&_0x17acc4){let _0x25855f=(_0xc8be62['left']??0x0)-_0x3294f3[_0x91513a(0x34e)],_0x1ba1cb=(_0xc8be62[_0x91513a(0x46b)]??0x0)-_0x3294f3[_0x91513a(0x46b)];_0xc8be62[_0x91513a(0x34e)]=_0x17acc4[_0x91513a(0x243)]+_0x25855f,_0xc8be62['top']=_0x17acc4[_0x91513a(0x495)]+_0x1ba1cb;}else _0xc8be62[_0x91513a(0x34e)]=_0x17acc4==null?void 0x0:_0x17acc4[_0x91513a(0x243)],_0xc8be62['top']=_0x17acc4==null?void 0x0:_0x17acc4['startY'];}return{'transform':_0xc8be62,'sheetTransform':(0x0,g[_0x91513a(0x3e0)])(_0xc8be62,_0x3ed227)??_0x477d13};}};Y=A([k(0x0,(0x0,i[_0x144ba7(0x2c1)])(a[_0x144ba7(0x37b)])),k(0x1,(0x0,i[_0x144ba7(0x2c1)])(c[_0x144ba7(0x1f4)])),k(0x2,(0x0,i[_0x144ba7(0x2c1)])(g['ISheetDrawingService'])),k(0x3,(0x0,i['Inject'])(r[_0x144ba7(0x25b)])),k(0x4,(0x0,i[_0x144ba7(0x2c1)])(_[_0x144ba7(0x40c)]))],Y);var Pe=class extends s[_0x144ba7(0x3e6)]{constructor(_0x10f623,_0x18b85f){const _0x175b0b=_0x144ba7;super(_0x10f623,_0x18b85f),E(this,_0x175b0b(0x21a),null),E(this,_0x175b0b(0x301),null),E(this,_0x175b0b(0x375),null),E(this,_0x175b0b(0x469),null),E(this,_0x175b0b(0x3a1),!0x1),_0x18b85f&&this[_0x175b0b(0x349)](_0x18b85f);}[_0x144ba7(0x447)](){const _0x32577d=_0x144ba7;return{'unitId':this[_0x32577d(0x375)],'subUnitId':this[_0x32577d(0x469)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x51807c){const _0x29381c=_0x144ba7;_0x51807c[_0x29381c(0x3c2)]!==void 0x0&&(this[_0x29381c(0x21a)]=_0x51807c[_0x29381c(0x3c2)]),_0x51807c[_0x29381c(0x436)]!==void 0x0&&(this[_0x29381c(0x375)]=_0x51807c[_0x29381c(0x436)]),_0x51807c['subUnitId']!==void 0x0&&(this[_0x29381c(0x469)]=_0x51807c['subUnitId']),_0x51807c['isStartConnectorPoint']!==void 0x0&&(this[_0x29381c(0x3a1)]=_0x51807c[_0x29381c(0x1fc)]),this[_0x29381c(0x45b)]({'width':_0x51807c['width'],'height':_0x51807c[_0x29381c(0x3cb)]});}['_draw'](_0x197351){const _0x361df5=_0x144ba7;s['Circle']['drawWith'](_0x197351,{'radius':t[_0x361df5(0x3d8)][_0x361df5(0x241)],'fill':t[_0x361df5(0x3d8)][_0x361df5(0x40b)],'stroke':t[_0x361df5(0x3d8)][_0x361df5(0x1c1)],'strokeWidth':t[_0x361df5(0x3d8)][_0x361df5(0x384)],'evented':!0x0});}};let Fe=class extends i[_0x144ba7(0x2fc)]{constructor(_0x1ebddb,_0x13b941,_0x368bb1,_0x230240,_0x5e2749,_0x2c66a9,_0x4a7230,_0x1737b5){const _0x54ad6d=_0x144ba7;super(),this[_0x54ad6d(0x41c)]=_0x1ebddb,this[_0x54ad6d(0x238)]=_0x13b941,this['_renderManagerService']=_0x368bb1,this[_0x54ad6d(0x234)]=_0x230240,this[_0x54ad6d(0x41b)]=_0x5e2749,this[_0x54ad6d(0x1b3)]=_0x2c66a9,this[_0x54ad6d(0x3dd)]=_0x4a7230,this[_0x54ad6d(0x424)]=_0x1737b5,E(this,_0x54ad6d(0x32b),void 0x0),E(this,_0x54ad6d(0x375),void 0x0),E(this,_0x54ad6d(0x469),void 0x0),E(this,'_connectorObjects',[]),E(this,_0x54ad6d(0x406),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,_0x54ad6d(0x299),!0x1),E(this,_0x54ad6d(0x1c3),!0x1),E(this,'_hasReset',!0x1),E(this,'_cxtHandlerPointerMove',void 0x0),E(this,_0x54ad6d(0x246),void 0x0),E(this,_0x54ad6d(0x39f),null),this[_0x54ad6d(0x23c)]();}['_initialize'](){const _0x33c18b=_0x144ba7;this['_registerDrawingFocusChangeHandler'](),this[_0x33c18b(0x35a)]();}[_0x144ba7(0x2af)](){const _0x4423ce=_0x144ba7;if(!this[_0x4423ce(0x375)]||!this[_0x4423ce(0x469)]||!this[_0x4423ce(0x32b)])return;let _0x4873b0={'unitId':this['_unitId'],'subUnitId':this[_0x4423ce(0x469)],'drawingId':this[_0x4423ce(0x32b)]},{transform:_0x229a99}=this[_0x4423ce(0x234)][_0x4423ce(0x233)](_0x4873b0);if(_0x229a99)return{'left':_0x229a99[_0x4423ce(0x34e)]||0x0,'top':_0x229a99[_0x4423ce(0x46b)]||0x0,'width':_0x229a99[_0x4423ce(0x1d7)]||0x0,'height':_0x229a99['height']||0x0,'flipX':_0x229a99[_0x4423ce(0x3ce)]||!0x1,'flipY':_0x229a99[_0x4423ce(0x479)]||!0x1,'angle':_0x229a99['angle']};}[_0x144ba7(0x462)](){const _0x26f287=_0x144ba7;if(this[_0x26f287(0x375)]===void 0x0||this[_0x26f287(0x469)]===void 0x0||this[_0x26f287(0x32b)]===void 0x0)return;let _0x1f896e=this[_0x26f287(0x1f6)][_0x26f287(0x248)](this[_0x26f287(0x375)]);if(!_0x1f896e||!_0x1f896e['with'](c[_0x26f287(0x3e8)])['getCurrentSkeleton']())return;let {scene:_0x1a3985}=_0x1f896e,_0x1885e4=this[_0x26f287(0x2af)]();if(!_0x1885e4)return;let _0x4864f=this[_0x26f287(0x1b3)][_0x26f287(0x3b2)](this['_unitId'],this[_0x26f287(0x469)],this['_activeShapeId']);if(!_0x4864f||!(0x0,t[_0x26f287(0x1f5)])(_0x4864f[_0x26f287(0x196)]()))return;let _0x15eb00=_0x4864f[_0x26f287(0x1a2)]();if(_0x15eb00[_0x26f287(0x38e)]<0x2)return;let _0x31aeda=new t[(_0x26f287(0x293))](_0x1885e4),_0xf5cb60=_0x15eb00[0x0],_0x45b574=_0x15eb00[_0x15eb00[_0x26f287(0x38e)]-0x1],_0x4717f1=_0x31aeda[_0x26f287(0x289)](_0xf5cb60),_0xe96702=_0x31aeda[_0x26f287(0x289)](_0x45b574);this[_0x26f287(0x477)](_0x1a3985,{..._0x4717f1},!0x0),this[_0x26f287(0x477)](_0x1a3985,{..._0xe96702},!0x1);}[_0x144ba7(0x477)](_0x1a5927,_0x18669f,_0x470bfd){const _0x979548=_0x144ba7;if(this[_0x979548(0x32b)]===void 0x0||this['_unitId']===void 0x0||this[_0x979548(0x469)]===void 0x0)return;let _0x2abeda=_0x979548(0x27b)+this[_0x979548(0x375)]+'-'+this[_0x979548(0x469)]+'-'+this[_0x979548(0x32b)]+'-'+(_0x470bfd?'start':'end'),_0x38b310=_0x1a5927[_0x979548(0x457)](_0x2abeda);if(_0x38b310){_0x38b310[_0x979548(0x45b)]({'left':_0x18669f['x']-t[_0x979548(0x3d8)][_0x979548(0x241)],'top':_0x18669f['y']-t[_0x979548(0x3d8)]['cxnPointRadius']});return;}let _0x1ef62b=new Pe(_0x2abeda,{'left':_0x18669f['x']-t['ShapeDefaultConfig'][_0x979548(0x241)],'top':_0x18669f['y']-t[_0x979548(0x3d8)][_0x979548(0x241)],'shapeId':this[_0x979548(0x32b)],'unitId':this[_0x979548(0x375)],'subUnitId':this[_0x979548(0x469)],'isStartConnectorPoint':_0x470bfd,'width':t[_0x979548(0x3d8)][_0x979548(0x241)]*0x2,'height':t[_0x979548(0x3d8)]['cxnPointRadius']*0x2,'zIndex':s[_0x979548(0x3ea)]+0x1,'evented':!0x0});this[_0x979548(0x497)][_0x979548(0x405)](_0x1ef62b),this['_attachConnectorObjectEvent'](_0x1ef62b,_0x1a5927,_0x470bfd),_0x1a5927[_0x979548(0x1be)](_0x1ef62b,s[_0x979548(0x3ea)]+0x1);}[_0x144ba7(0x453)](_0x213a7b,_0x110607){const _0xaa239=_0x144ba7;var _0xa6ebe0;let _0x3b1ff0={'x':0x0,'y':0x0};if(!_0x213a7b||!_0x110607)return _0x3b1ff0;let _0x1e00c6=this[_0xaa239(0x1f6)][_0xaa239(0x248)](_0x213a7b);if(!_0x1e00c6||!_0x1e00c6[_0xaa239(0x1af)](c[_0xaa239(0x3e8)])[_0xaa239(0x45f)](_0x110607))return _0x3b1ff0;let _0x1abd44=_0x1e00c6[_0xaa239(0x1af)](c['SheetScrollManagerService']),_0x508cbe=_0x1abd44==null?void 0x0:_0x1abd44[_0xaa239(0x42a)]();if(!_0x508cbe)return _0x3b1ff0;let _0x32b10e=(_0xa6ebe0=this[_0xaa239(0x41b)][_0xaa239(0x2cd)](_0x213a7b))==null?void 0x0:_0xa6ebe0[_0xaa239(0x461)](_0x110607);if(!_0x32b10e)return _0x3b1ff0;let _0x1449eb=(0x0,c['getViewportByCell'])(_0x508cbe[_0xaa239(0x283)],_0x508cbe['sheetViewStartColumn'],_0x1e00c6[_0xaa239(0x3aa)],_0x32b10e);return _0x1449eb?{'x':_0x1449eb['viewportScrollX'],'y':_0x1449eb['viewportScrollY']}:_0x3b1ff0;}[_0x144ba7(0x37d)](_0x413267,_0x163c70){const _0x221273=_0x144ba7;var _0x28e17a;let _0x558d8a=(_0x28e17a=this[_0x221273(0x41b)][_0x221273(0x2cd)](_0x413267))==null?void 0x0:_0x28e17a[_0x221273(0x461)](_0x163c70);return(_0x558d8a==null?void 0x0:_0x558d8a[_0x221273(0x29a)]())??0x1;}['_handleConnectorPointerUp'](_0x1920dd,_0x2d9643,_0x547f25,_0x58c2dd,_0xf8635){const _0x3398d3=_0x144ba7;this[_0x3398d3(0x2ee)][_0x3398d3(0x2ea)](),this['_cxtHandlerPointerUp'][_0x3398d3(0x2ea)](),this[_0x3398d3(0x3dd)][_0x3398d3(0x1a7)]();let _0x213f25=this[_0x3398d3(0x39f)];this[_0x3398d3(0x424)][_0x3398d3(0x1e6)]();let _0x37e6bf=this['_getScrollInfo'](this[_0x3398d3(0x375)],this[_0x3398d3(0x469)]),_0x2f052f=this['_getZoomRatio'](this['_unitId'],this[_0x3398d3(0x469)]),_0x29522c={'x':_0x547f25['offsetX']/_0x2f052f+_0x37e6bf['x'],'y':_0x547f25['offsetY']/_0x2f052f+_0x37e6bf['y']},_0x1c63d7=_0x213f25?_0x213f25[_0x3398d3(0x1bf)]:_0x29522c,_0x2b25c1=_0x58c2dd?this[_0x3398d3(0x46f)][_0x3398d3(0x2b2)]():this[_0x3398d3(0x46f)][_0x3398d3(0x302)](),_0x3476ca=this[_0x3398d3(0x46f)][_0x3398d3(0x196)]();_0x2b25c1?this[_0x3398d3(0x487)](_0x2b25c1,_0x1c63d7,_0x58c2dd,_0x213f25,_0xf8635):this[_0x3398d3(0x47a)](_0x2d9643,_0x1c63d7,_0x58c2dd,_0x213f25,_0xf8635,_0x3476ca),this[_0x3398d3(0x299)]=!0x1,this['_hasReset']=!0x1,this[_0x3398d3(0x39f)]=null,_0x1920dd[_0x3398d3(0x2a2)]();}['_handleFreeEndpointPointerUp'](_0x1df872,_0x148011,_0x4e982b,_0x4ca8d0,_0x7f5e3c,_0x1b56e9){const _0x2b68a4=_0x144ba7;let _0x508271=_0x1b56e9===t['ShapeTypeEnum'][_0x2b68a4(0x3d2)]||_0x1b56e9===t[_0x2b68a4(0x25e)][_0x2b68a4(0x370)],_0x5385e0=_0x4e982b?_0x148011:_0x1df872,_0x5f42eb=_0x4e982b?_0x1df872:_0x148011,_0x3b83ae=this[_0x2b68a4(0x46f)][_0x2b68a4(0x1a2)](),_0x3b964a=(0x0,t[_0x2b68a4(0x282)])(this[_0x2b68a4(0x46f)][_0x2b68a4(0x196)]()),_0x4c1691=t[_0x2b68a4(0x293)][_0x2b68a4(0x297)](_0x3b83ae,_0x3b964a),_0x26db0e=_0x508271?t[_0x2b68a4(0x293)][_0x2b68a4(0x485)](_0x5385e0,_0x5f42eb):t[_0x2b68a4(0x293)][_0x2b68a4(0x456)](_0x1df872,_0x148011,_0x4e982b,_0x4c1691);_0x4ca8d0?this['_executeConnectionCommand'](_0x26db0e,_0x4ca8d0,_0x4e982b,_0x7f5e3c):this[_0x2b68a4(0x418)](_0x26db0e,_0x7f5e3c);}[_0x144ba7(0x487)](_0x2d562b,_0x50d2df,_0xa4efb7,_0x529aa0,_0x3295f8){const _0x478952=_0x144ba7;let _0x4963aa=this[_0x478952(0x2dc)](_0x2d562b);if(!_0x4963aa)return;let _0x4905e2=_0x529aa0?_0x529aa0[_0x478952(0x3e1)]:this['_calculateFreeEndpointAngle'](_0x4963aa[_0x478952(0x294)],_0x50d2df),_0x14f045;if(_0x529aa0){let _0x383457=this[_0x478952(0x234)][_0x478952(0x233)]({'unitId':_0x529aa0[_0x478952(0x436)],'subUnitId':_0x529aa0[_0x478952(0x1ee)],'drawingId':_0x529aa0[_0x478952(0x3c2)]});if(_0x383457!=null&&_0x383457[_0x478952(0x3a8)]){let {left:_0x24486b=0x0,top:_0xb09ecb=0x0,width:_0x58be73=0x0,height:_0x2c5032=0x0,angle:_0x555937}=_0x383457[_0x478952(0x3a8)];_0x14f045=(0x0,t[_0x478952(0x2b3)])({'left':_0x24486b,'top':_0xb09ecb,'width':_0x58be73,'height':_0x2c5032},_0x555937||0x0);}else _0x14f045={'left':_0x50d2df['x'],'top':_0x50d2df['y'],'width':0x0,'height':0x0};}else _0x14f045={'left':_0x50d2df['x'],'top':_0x50d2df['y'],'width':0x0,'height':0x0};let _0x1c1360={'point':_0x50d2df,'angle':_0x4905e2,'bounds':_0x14f045},_0x276abb=_0xa4efb7?_0x1c1360:_0x4963aa,_0x916a2f=_0xa4efb7?_0x4963aa:_0x1c1360,_0xe9e9fd=this[_0x478952(0x46f)][_0x478952(0x196)](),_0x1fe273=(0x0,t[_0x478952(0x400)])(_0x276abb,_0x916a2f,_0xe9e9fd);this[_0x478952(0x46f)][_0x478952(0x3b0)]();let _0x95bf3b=(0x0,t[_0x478952(0x2b5)])(_0x1fe273,_0xe9e9fd);_0x529aa0?this[_0x478952(0x2bc)](_0x95bf3b,_0x529aa0,_0x2d562b,_0xa4efb7,_0x3295f8):this['_executeConnectedRouteResizeCommand'](_0x95bf3b,_0x2d562b,_0xa4efb7,_0x3295f8);}[_0x144ba7(0x46d)](_0x14102f,_0x2cc944,_0x5255ea,_0x282f33){const _0x535029=_0x144ba7;let _0x5d4119=this[_0x535029(0x46f)][_0x535029(0x2db)]()['relation'],_0xba9442={..._0x5d4119},_0x4c5bbd={'shapeId':_0x2cc944['shapeId'],'cxnIndex':_0x2cc944[_0x535029(0x285)]};_0x5255ea?_0xba9442[_0x535029(0x33c)]=_0x4c5bbd:_0xba9442['to']=_0x4c5bbd;let _0x552c6d=this[_0x535029(0x46f)][_0x535029(0x196)](),_0x23917b=(0x0,t['computeConnectorRouteLayout'])(_0x14102f[_0x535029(0x3fc)],_0x552c6d),_0x221d5a={'unitId':this['_unitId'],'subUnitId':this[_0x535029(0x469)],'connectorShapeId':this[_0x535029(0x32b)],'width':_0x14102f[_0x535029(0x46e)][_0x535029(0x1d7)],'height':_0x14102f['worldRect'][_0x535029(0x3cb)],'left':_0x14102f[_0x535029(0x46e)]['left'],'top':_0x14102f['worldRect'][_0x535029(0x46b)],'flipX':_0x14102f[_0x535029(0x46e)]['flipX']||!0x1,'flipY':_0x14102f[_0x535029(0x46e)]['flipY']||!0x1,'newAdjustValues':_0x23917b['adjustValues'],'oldAdjustValues':_0x282f33,'oldRelation':_0x5d4119,'newRelation':_0xba9442,'newLineType':_0x23917b[_0x535029(0x3f5)],'oldLineType':_0x552c6d};this[_0x535029(0x238)][_0x535029(0x3e5)](r[_0x535029(0x21d)]['id'],_0x221d5a);}['_executeResizeCommand'](_0x4c760d,_0x313e3a){const _0x26a327=_0x144ba7;let _0x18c76a=this[_0x26a327(0x46f)][_0x26a327(0x196)](),_0x5a953b=(0x0,t['computeConnectorRouteLayout'])(_0x4c760d['worldPoints'],_0x18c76a),_0x4198db={'unitId':this[_0x26a327(0x375)],'subUnitId':this[_0x26a327(0x469)],'shapeId':this['_activeShapeId'],'width':_0x4c760d[_0x26a327(0x46e)]['width'],'height':_0x4c760d[_0x26a327(0x46e)]['height'],'left':_0x4c760d[_0x26a327(0x46e)][_0x26a327(0x34e)],'top':_0x4c760d[_0x26a327(0x46e)][_0x26a327(0x46b)],'flipX':_0x4c760d[_0x26a327(0x46e)][_0x26a327(0x3ce)]||!0x1,'flipY':_0x4c760d[_0x26a327(0x46e)][_0x26a327(0x479)]||!0x1,'angle':_0x4c760d['worldRect']['angle']||0x0,'newAdjustValues':_0x5a953b['adjustValues'],'oldAdjustValues':_0x313e3a,'newLineType':_0x5a953b[_0x26a327(0x3f5)],'oldLineType':_0x18c76a};this[_0x26a327(0x238)][_0x26a327(0x3e5)](r['UpdateLineShapeResizeCommand']['id'],_0x4198db);}['_executeConnectedRouteConnectionCommand'](_0x2387b0,_0x2647f2,_0x19b5ed,_0x2aea76,_0x4c774a){const _0x15e677=_0x144ba7;let _0x3e07e3=this['_activeShapeModel']['getShapeData']()['relation'],_0x230140={..._0x3e07e3},_0x42b6b8={'shapeId':_0x2647f2[_0x15e677(0x3c2)],'cxnIndex':_0x2647f2['cxnIndex']};_0x2aea76?(_0x230140[_0x15e677(0x33c)]=_0x42b6b8,_0x230140['to']=_0x19b5ed):(_0x230140[_0x15e677(0x33c)]=_0x19b5ed,_0x230140['to']=_0x42b6b8);let _0x92e30c={'unitId':this[_0x15e677(0x375)],'subUnitId':this[_0x15e677(0x469)],'connectorShapeId':this[_0x15e677(0x32b)],'width':_0x2387b0[_0x15e677(0x46e)][_0x15e677(0x1d7)],'height':_0x2387b0[_0x15e677(0x46e)][_0x15e677(0x3cb)],'left':_0x2387b0[_0x15e677(0x46e)][_0x15e677(0x34e)],'top':_0x2387b0[_0x15e677(0x46e)][_0x15e677(0x46b)],'flipX':_0x2387b0[_0x15e677(0x46e)][_0x15e677(0x3ce)]||!0x1,'flipY':_0x2387b0['worldRect'][_0x15e677(0x479)]||!0x1,'oldAdjustValues':_0x4c774a,'newAdjustValues':_0x2387b0[_0x15e677(0x1bd)],'newLineType':_0x2387b0['lineType'],'rotation':_0x2387b0[_0x15e677(0x314)],'oldRelation':_0x3e07e3,'newRelation':_0x230140};this[_0x15e677(0x238)][_0x15e677(0x3e5)](r[_0x15e677(0x21d)]['id'],_0x92e30c);}[_0x144ba7(0x280)](_0x41eb2e,_0x226fd8,_0x5e2c2e,_0x23c245){const _0x2d1d70=_0x144ba7;let _0x2b654f=this[_0x2d1d70(0x46f)][_0x2d1d70(0x2db)]()['relation'],_0x310beb={};_0x5e2c2e?(_0x310beb['to']=_0x226fd8,_0x310beb[_0x2d1d70(0x33c)]=void 0x0):(_0x310beb[_0x2d1d70(0x33c)]=_0x226fd8,_0x310beb['to']=void 0x0);let _0x76a21b={'unitId':this[_0x2d1d70(0x375)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x2d1d70(0x32b)],'width':_0x41eb2e[_0x2d1d70(0x46e)]['width'],'height':_0x41eb2e['worldRect'][_0x2d1d70(0x3cb)],'left':_0x41eb2e[_0x2d1d70(0x46e)][_0x2d1d70(0x34e)],'top':_0x41eb2e[_0x2d1d70(0x46e)][_0x2d1d70(0x46b)],'flipX':_0x41eb2e[_0x2d1d70(0x46e)][_0x2d1d70(0x3ce)]||!0x1,'flipY':_0x41eb2e[_0x2d1d70(0x46e)]['flipY']||!0x1,'oldAdjustValues':_0x23c245,'newAdjustValues':_0x41eb2e[_0x2d1d70(0x1bd)],'newLineType':_0x41eb2e['lineType'],'rotation':_0x41eb2e[_0x2d1d70(0x314)],'oldRelation':_0x2b654f,'newRelation':_0x310beb};this[_0x2d1d70(0x238)][_0x2d1d70(0x3e5)](r['UpdateConnectorRelationCommand']['id'],_0x76a21b);}['_attachConnectorObjectEvent'](_0x29c403,_0x2e4b72,_0x11d382){const _0x3ae389=_0x144ba7;this[_0x3ae389(0x350)]((0x0,i[_0x3ae389(0x37f)])(_0x29c403[_0x3ae389(0x271)]['subscribeEvent']((_0x940579,_0x1855ac)=>{const _0x89a107=_0x3ae389;let _0x4531c7=_0x29c403[_0x89a107(0x447)]();if(this[_0x89a107(0x46f)]=this[_0x89a107(0x1b3)][_0x89a107(0x3b2)](_0x4531c7[_0x89a107(0x436)],_0x4531c7[_0x89a107(0x1ee)],_0x4531c7[_0x89a107(0x290)]),!this[_0x89a107(0x46f)])return;let _0x49571d={};this['_activeShapeModel'][_0x89a107(0x354)]()['forEach'](_0x215c1c=>{const _0x34d24a=_0x89a107;let _0x47acb3=this[_0x34d24a(0x46f)][_0x34d24a(0x2d1)](_0x215c1c);_0x47acb3!==void 0x0&&(_0x49571d[_0x215c1c]=_0x47acb3);});let _0x3caace=this[_0x89a107(0x2af)]();if(!_0x3caace)return;this[_0x89a107(0x406)]={..._0x3caace};let _0x22e89e=new t[(_0x89a107(0x293))](this[_0x89a107(0x406)]),_0x42f523=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this[_0x89a107(0x469)],'drawingId':this['_activeShapeId']}),_0x2c091c=_0x2e4b72[_0x89a107(0x457)](_0x42f523);this[_0x89a107(0x299)]=!0x0,_0x2e4b72[_0x89a107(0x355)](),this[_0x89a107(0x424)][_0x89a107(0x26b)](_0x2e4b72,this[_0x89a107(0x375)],this['_subUnitId'],this[_0x89a107(0x32b)]),this['_currentConnectionTarget']=null;let _0xcf204c=this['_activeShapeModel'][_0x89a107(0x1a2)](),_0x1fd1b7=_0xcf204c[0x0],_0x56bf2a=_0xcf204c[_0xcf204c[_0x89a107(0x38e)]-0x1],_0x212e01=_0x11d382?_0x22e89e['localToWorld'](_0x56bf2a):_0x22e89e[_0x89a107(0x289)](_0x1fd1b7);this[_0x89a107(0x2ee)]=_0x2e4b72[_0x89a107(0x2fe)][_0x89a107(0x39d)]((_0x26acc1,_0x2b7b8e)=>{const _0x144f9d=_0x89a107;if(!this[_0x144f9d(0x299)]||!this[_0x144f9d(0x46f)])return;this['_hasReset']||=(this['_sheetShapeAdjustController'][_0x144f9d(0x3fa)](),this['_activeShapeModel'][_0x144f9d(0x273)](),!0x0);let _0xa68350=this[_0x144f9d(0x453)](this[_0x144f9d(0x375)],this[_0x144f9d(0x469)]),_0x22e1c2=this[_0x144f9d(0x37d)](this[_0x144f9d(0x375)],this[_0x144f9d(0x469)]),_0x341a8f={'x':_0x26acc1[_0x144f9d(0x445)]/_0x22e1c2+_0xa68350['x'],'y':_0x26acc1[_0x144f9d(0x2d2)]/_0x22e1c2+_0xa68350['y']},_0x59b7d9=this[_0x144f9d(0x424)][_0x144f9d(0x2cc)](_0x341a8f);if(_0x59b7d9){let {shapeId:_0x1ad77d,unitId:_0xa2817e,subUnitId:_0x57cb13}=_0x59b7d9;if(_0x1ad77d&&_0xa2817e&&_0x57cb13){let _0x56d7b3=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xa2817e,'subUnitId':_0x57cb13,'drawingId':_0x1ad77d});_0x59b7d9[_0x144f9d(0x3e1)]=(_0x2e4b72['getObjectIncludeInGroup'](_0x56d7b3)['angle']||0x0)+_0x59b7d9[_0x144f9d(0x3e1)];}}this[_0x144f9d(0x39f)]=_0x59b7d9;let _0x36acb5=_0x11d382?this[_0x144f9d(0x46f)][_0x144f9d(0x2b2)]():this[_0x144f9d(0x46f)][_0x144f9d(0x302)]();if(_0x36acb5){this[_0x144f9d(0x269)](_0x36acb5,_0x341a8f,_0x11d382,_0x2c091c,_0x29c403);return;}this[_0x144f9d(0x204)](_0x341a8f,_0x212e01,_0x11d382,_0x2c091c,_0x29c403);}),this[_0x89a107(0x246)]=_0x2e4b72[_0x89a107(0x24b)]['subscribeEvent']((_0x5dd038,_0x5b2ae)=>{const _0x3bdd8f=_0x89a107;this[_0x3bdd8f(0x37c)](_0x2e4b72,_0x212e01,_0x5dd038,_0x11d382,_0x49571d);}),_0x1855ac[_0x89a107(0x203)]();})));}[_0x144ba7(0x452)](_0x104a0b,_0x37661f,_0x508524){const _0x460cb2=_0x144ba7;let _0x2453fc=this['_sheetsShapeService'][_0x460cb2(0x44d)](_0x104a0b,_0x37661f,_0x508524);if(!_0x2453fc||_0x2453fc['length']===0x0)return;let _0x3aba66=this['_renderManagerService'][_0x460cb2(0x248)](_0x104a0b);if(!_0x3aba66)return;let {scene:_0x4b56c6}=_0x3aba66;for(let _0x31b5aa of _0x2453fc){let _0x5192a8=_0x31b5aa[_0x460cb2(0x472)],_0x2e6ea4=this[_0x460cb2(0x1b3)]['getShapeModel'](_0x104a0b,_0x37661f,_0x5192a8);if(!_0x2e6ea4)continue;let _0x465163=_0x2e6ea4[_0x460cb2(0x302)](),_0x35b579=_0x2e6ea4[_0x460cb2(0x2b2)](),_0x56419c=(_0x465163==null?void 0x0:_0x465163['shapeId'])===_0x508524,_0x419f80=(0x0,o[_0x460cb2(0x256)])({'unitId':_0x104a0b,'subUnitId':_0x37661f,'drawingId':_0x5192a8}),_0x15ca2e=_0x4b56c6[_0x460cb2(0x457)](_0x419f80);if(!_0x15ca2e)continue;let _0x3be85f=this['_drawingManagerService'][_0x460cb2(0x233)]({'unitId':_0x104a0b,'subUnitId':_0x37661f,'drawingId':_0x5192a8});_0x3be85f!=null&&_0x3be85f[_0x460cb2(0x3a8)]&&(_0x465163&&_0x35b579?this[_0x460cb2(0x221)](_0x104a0b,_0x37661f,_0x5192a8,_0x2e6ea4,_0x465163,_0x35b579,_0x15ca2e):this[_0x460cb2(0x34a)](_0x104a0b,_0x37661f,_0x5192a8,_0x2e6ea4,_0x56419c?_0x465163:_0x35b579,_0x56419c,_0x3be85f,_0x15ca2e));}}[_0x144ba7(0x221)](_0x268d25,_0x5f53b5,_0x621898,_0x32d27b,_0x55a076,_0x395a10,_0x49a17d){const _0x44ee21=_0x144ba7;let _0x31ad7e=this[_0x44ee21(0x375)],_0x51bcb4=this[_0x44ee21(0x469)];this[_0x44ee21(0x375)]=_0x268d25,this[_0x44ee21(0x469)]=_0x5f53b5;let _0x1981f1=this[_0x44ee21(0x2dc)](_0x55a076),_0x327a44=this[_0x44ee21(0x2dc)](_0x395a10);if(this[_0x44ee21(0x375)]=_0x31ad7e,this[_0x44ee21(0x469)]=_0x51bcb4,!_0x1981f1||!_0x327a44)return;let _0x574ad0=_0x32d27b[_0x44ee21(0x196)](),_0x5e6679=(0x0,t[_0x44ee21(0x400)])(_0x1981f1,_0x327a44,_0x574ad0);_0x5e6679&&_0x32d27b['updateLinePoints'](_0x5e6679);let _0x3f434e=(0x0,t[_0x44ee21(0x2b5)])(_0x5e6679,_0x574ad0);_0x3f434e[_0x44ee21(0x3f5)]!==_0x574ad0&&_0x32d27b[_0x44ee21(0x359)](_0x3f434e[_0x44ee21(0x3f5)]),_0x32d27b[_0x44ee21(0x273)]();for(let [_0x40a4e6,_0x1f2c7d]of Object['entries'](_0x3f434e[_0x44ee21(0x1bd)]))_0x32d27b[_0x44ee21(0x28e)](_0x40a4e6,_0x1f2c7d);_0x32d27b['updateContext']({'width':_0x3f434e[_0x44ee21(0x46e)]['width'],'height':_0x3f434e[_0x44ee21(0x46e)][_0x44ee21(0x3cb)]}),_0x49a17d['transformByState']({'flipX':_0x3f434e['worldRect']['flipX'],'flipY':_0x3f434e[_0x44ee21(0x46e)][_0x44ee21(0x479)],'left':_0x3f434e[_0x44ee21(0x46e)][_0x44ee21(0x34e)],'top':_0x3f434e[_0x44ee21(0x46e)][_0x44ee21(0x46b)],'width':_0x3f434e[_0x44ee21(0x46e)][_0x44ee21(0x1d7)],'height':_0x3f434e[_0x44ee21(0x46e)][_0x44ee21(0x3cb)],'angle':_0x3f434e[_0x44ee21(0x314)]}),_0x32d27b[_0x44ee21(0x3b0)]();}[_0x144ba7(0x34a)](_0x3844a6,_0x33c893,_0x2d6006,_0x5ed580,_0x28182f,_0x578715,_0x30524e,_0x3b6f63){const _0x2b8def=_0x144ba7;let _0x2e4a26=this[_0x2b8def(0x375)],_0x26e136=this[_0x2b8def(0x469)];this[_0x2b8def(0x375)]=_0x3844a6,this[_0x2b8def(0x469)]=_0x33c893;let _0x1670d3=this[_0x2b8def(0x2dc)](_0x28182f);if(this[_0x2b8def(0x375)]=_0x2e4a26,this[_0x2b8def(0x469)]=_0x26e136,!_0x1670d3)return;let {left:_0x31b390=0x0,top:_0x1c86f4=0x0,width:_0x469e82=0x0,height:_0x2e175a=0x0,flipX:_0x588f71=!0x1,flipY:_0x49f673=!0x1}=_0x30524e[_0x2b8def(0x3a8)],_0x28a19f=_0x5ed580[_0x2b8def(0x1a2)]();if(_0x28a19f[_0x2b8def(0x38e)]<0x2)return;let _0x217e71=new t[(_0x2b8def(0x293))]({'left':_0x31b390,'top':_0x1c86f4,'width':_0x469e82,'height':_0x2e175a,'flipX':_0x588f71,'flipY':_0x49f673}),_0x35d6f9=_0x578715?_0x28a19f[_0x28a19f['length']-0x1]:_0x28a19f[0x0],_0x45986b=_0x217e71[_0x2b8def(0x289)](_0x35d6f9),_0x66483b=t['ConnectorCoordinateTransform'][_0x2b8def(0x456)](_0x45986b,_0x1670d3[_0x2b8def(0x294)],!_0x578715);_0x3b6f63['transformByState']({'flipX':_0x66483b[_0x2b8def(0x46e)]['flipX'],'flipY':_0x66483b[_0x2b8def(0x46e)][_0x2b8def(0x479)],'left':_0x66483b['worldRect'][_0x2b8def(0x34e)],'top':_0x66483b[_0x2b8def(0x46e)][_0x2b8def(0x46b)],'width':_0x66483b[_0x2b8def(0x46e)]['width'],'height':_0x66483b[_0x2b8def(0x46e)][_0x2b8def(0x3cb)],'angle':_0x66483b[_0x2b8def(0x46e)][_0x2b8def(0x3e1)]}),_0x3b6f63[_0x2b8def(0x412)](!0x0);}[_0x144ba7(0x47b)](){const _0x7dfc15=_0x144ba7;this['_connectorObjects']['length']!==0x0&&(this[_0x7dfc15(0x497)]['forEach'](_0x493a4d=>{const _0x594a76=_0x7dfc15;_0x493a4d[_0x594a76(0x33d)]();}),this[_0x7dfc15(0x497)]=[]);}['_registerDrawingMoveHandler'](){const _0x21ae32=_0x144ba7;let _0x241538=this[_0x21ae32(0x41b)][_0x21ae32(0x265)](i[_0x21ae32(0x3b7)][_0x21ae32(0x423)]);this[_0x21ae32(0x350)](_0x241538[_0x21ae32(0x2b6)]((0x0,l[_0x21ae32(0x484)])(_0x1256e5=>_0x1256e5?_0x1256e5[_0x21ae32(0x1bb)]['pipe']((0x0,l[_0x21ae32(0x484)])(_0x590d9e=>{const _0x2caebf=_0x21ae32;if(!_0x590d9e)return l[_0x2caebf(0x254)];let _0xbc8889=_0x1256e5['getUnitId'](),_0x2ac8ee=this[_0x2caebf(0x1f6)]['getRenderUnitById'](_0xbc8889),_0x49d753=_0x2ac8ee==null?void 0x0:_0x2ac8ee['scene'];return _0x49d753?(0x0,l['of'])(_0x49d753):l[_0x2caebf(0x254)];})):l['EMPTY']))[_0x21ae32(0x3d0)](_0x34fe75=>{const _0x18947e=_0x21ae32;let _0x202bbd=_0x34fe75[_0x18947e(0x303)]();this[_0x18947e(0x350)](_0x34fe75[_0x18947e(0x2fe)][_0x18947e(0x39d)](_0x565f3f=>{const _0x5a971c=_0x18947e;this[_0x5a971c(0x1c3)]&&this[_0x5a971c(0x32b)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x18947e(0x350)](_0x202bbd[_0x18947e(0x1eb)][_0x18947e(0x3d0)](_0x4a057b=>{const _0xf8ca67=_0x18947e;let {objects:_0x4f1d09}=_0x4a057b;this[_0xf8ca67(0x47b)](),_0x4f1d09!==null&&_0x4f1d09[_0xf8ca67(0x3de)]===0x1&&_0x4f1d09[_0xf8ca67(0x35c)]()[_0xf8ca67(0x40f)]()[_0xf8ca67(0x29b)]instanceof D&&(this[_0xf8ca67(0x1c3)]=!0x0);})),this[_0x18947e(0x350)](_0x202bbd[_0x18947e(0x2ce)][_0x18947e(0x3d0)](_0xb35129=>{const _0x47d5af=_0x18947e;this[_0x47d5af(0x1c3)]&&this[_0x47d5af(0x47b)]();})),this[_0x18947e(0x350)](_0x34fe75[_0x18947e(0x24b)][_0x18947e(0x39d)](()=>{const _0x3b37b1=_0x18947e;this[_0x3b37b1(0x1c3)]&&(this[_0x3b37b1(0x1c3)]=!0x1,this[_0x3b37b1(0x462)]());})),this['disposeWithMe'](_0x202bbd[_0x18947e(0x470)][_0x18947e(0x3d0)](()=>{const _0x3bf778=_0x18947e;this[_0x3bf778(0x375)]&&this[_0x3bf778(0x469)]&&this[_0x3bf778(0x32b)]&&this[_0x3bf778(0x234)][_0x3bf778(0x233)]({'unitId':this['_unitId'],'subUnitId':this[_0x3bf778(0x469)],'drawingId':this[_0x3bf778(0x32b)]})&&(this[_0x3bf778(0x47b)](),this[_0x3bf778(0x462)]());}));}));}[_0x144ba7(0x1b8)](){const _0x40c170=_0x144ba7;this[_0x40c170(0x350)](this[_0x40c170(0x234)]['focus$'][_0x40c170(0x3d0)](_0x23b998=>{const _0x6f14f2=_0x40c170;if(_0x23b998[_0x6f14f2(0x38e)]===0x1){let _0x336602=_0x23b998[0x0];if(_0x336602[_0x6f14f2(0x34d)]===i['DrawingTypeEnum']['DRAWING_SHAPE']){let _0xf36def=this[_0x6f14f2(0x1b3)]['getShapeModel'](_0x336602[_0x6f14f2(0x436)],_0x336602[_0x6f14f2(0x1ee)],_0x336602[_0x6f14f2(0x290)]);if(_0xf36def&&(0x0,t[_0x6f14f2(0x1f5)])(_0xf36def[_0x6f14f2(0x196)]())){this[_0x6f14f2(0x32b)]=_0x336602[_0x6f14f2(0x290)],this[_0x6f14f2(0x375)]=_0x336602[_0x6f14f2(0x436)],this[_0x6f14f2(0x469)]=_0x336602['subUnitId'],this[_0x6f14f2(0x47b)](),this[_0x6f14f2(0x462)]();return;}}}this[_0x6f14f2(0x32b)]=void 0x0,this['_unitId']=void 0x0,this[_0x6f14f2(0x469)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x40c170(0x350)](this['_drawingManagerService'][_0x40c170(0x3ad)][_0x40c170(0x3d0)](_0x5ffe67=>{const _0x4aceae=_0x40c170;if(_0x5ffe67[_0x4aceae(0x38e)]===0x1){var _0x25120b;let _0x490754=_0x5ffe67[0x0],_0x2e4d3c=(_0x25120b=this[_0x4aceae(0x234)][_0x4aceae(0x233)](_0x490754))==null?void 0x0:_0x25120b[_0x4aceae(0x34d)];_0x2e4d3c===i[_0x4aceae(0x1d1)][_0x4aceae(0x2be)]&&_0x490754[_0x4aceae(0x290)]===this[_0x4aceae(0x32b)]?(this[_0x4aceae(0x47b)](),this[_0x4aceae(0x462)]()):!this[_0x4aceae(0x32b)]&&_0x2e4d3c===i['DrawingTypeEnum'][_0x4aceae(0x2be)]&&this[_0x4aceae(0x452)](_0x490754[_0x4aceae(0x436)],_0x490754[_0x4aceae(0x1ee)],_0x490754[_0x4aceae(0x290)]);}})),this[_0x40c170(0x350)](this[_0x40c170(0x234)][_0x40c170(0x402)]['subscribe'](_0x381c55=>{const _0x1b83f4=_0x40c170;for(let _0x2df2a3 of _0x381c55){let {drawingId:_0x41faf9}=_0x2df2a3;if(this[_0x1b83f4(0x32b)]===_0x41faf9){this[_0x1b83f4(0x494)]();return;}}}));}[_0x144ba7(0x269)](_0x53157c,_0x3e6466,_0x4e5f5e,_0x3f9800,_0x4de2c2){const _0x15d1de=_0x144ba7;var _0x1c3e94;if(!this['_activeShapeModel'])return;let _0x40b8c1=this[_0x15d1de(0x2dc)](_0x53157c);if(!_0x40b8c1)return;let _0x10e477=this[_0x15d1de(0x39f)]?this[_0x15d1de(0x39f)][_0x15d1de(0x1bf)]:_0x3e6466,_0x55369e=this[_0x15d1de(0x39f)]?this[_0x15d1de(0x39f)]['angle']:this[_0x15d1de(0x212)](_0x40b8c1[_0x15d1de(0x294)],_0x10e477),_0x1aa001;if(this[_0x15d1de(0x39f)]){let _0x96ac37=this[_0x15d1de(0x234)][_0x15d1de(0x233)]({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this[_0x15d1de(0x39f)][_0x15d1de(0x1ee)],'drawingId':this[_0x15d1de(0x39f)][_0x15d1de(0x3c2)]});if(_0x96ac37!=null&&_0x96ac37[_0x15d1de(0x3a8)]){let {left:_0x459d84=0x0,top:_0x1955a7=0x0,width:_0x364b7e=0x0,height:_0xdb2836=0x0,angle:_0x44d558}=_0x96ac37[_0x15d1de(0x3a8)];_0x1aa001=(0x0,t[_0x15d1de(0x2b3)])({'left':_0x459d84,'top':_0x1955a7,'width':_0x364b7e,'height':_0xdb2836},_0x44d558||0x0);}else _0x1aa001={'left':_0x10e477['x'],'top':_0x10e477['y'],'width':0x0,'height':0x0};}else _0x1aa001={'left':_0x10e477['x'],'top':_0x10e477['y'],'width':0x0,'height':0x0};let _0xcf6444={'point':_0x10e477,'angle':_0x55369e,'bounds':_0x1aa001},_0x3551fd=_0x4e5f5e?_0xcf6444:_0x40b8c1,_0x305340=_0x4e5f5e?_0x40b8c1:_0xcf6444,_0x1058a6=this['_activeShapeModel'][_0x15d1de(0x196)](),_0xf71d7a=(0x0,t[_0x15d1de(0x400)])(_0x3551fd,_0x305340,_0x1058a6);_0xf71d7a&&this[_0x15d1de(0x46f)]['updateLinePoints'](_0xf71d7a);let _0x553934=(0x0,t[_0x15d1de(0x2b5)])(_0xf71d7a,_0x1058a6);_0x553934[_0x15d1de(0x3f5)]!==_0x1058a6&&this['_activeShapeModel'][_0x15d1de(0x359)](_0x553934[_0x15d1de(0x3f5)]);for(let [_0x460762,_0xdb23da]of Object[_0x15d1de(0x27d)](_0x553934[_0x15d1de(0x1bd)]))this[_0x15d1de(0x46f)][_0x15d1de(0x28e)](_0x460762,_0xdb23da);this['_activeShapeModel'][_0x15d1de(0x307)]({'width':_0x553934[_0x15d1de(0x46e)][_0x15d1de(0x1d7)],'height':_0x553934['worldRect'][_0x15d1de(0x3cb)]}),_0x3f9800[_0x15d1de(0x45b)]({'flipX':_0x553934[_0x15d1de(0x46e)][_0x15d1de(0x3ce)],'flipY':_0x553934[_0x15d1de(0x46e)]['flipY'],'left':_0x553934[_0x15d1de(0x46e)]['left'],'top':_0x553934[_0x15d1de(0x46e)]['top'],'width':_0x553934[_0x15d1de(0x46e)]['width'],'height':_0x553934[_0x15d1de(0x46e)][_0x15d1de(0x3cb)],'angle':_0x553934['rotation']}),_0x3f9800[_0x15d1de(0x412)](!0x0);let _0xe57f5c=((_0x1c3e94=this[_0x15d1de(0x39f)])==null?void 0x0:_0x1c3e94[_0x15d1de(0x1bf)])??_0x3e6466;_0x4de2c2['transformByState']({'left':_0xe57f5c['x']-t[_0x15d1de(0x3d8)][_0x15d1de(0x241)],'top':_0xe57f5c['y']-t[_0x15d1de(0x3d8)][_0x15d1de(0x241)]});}[_0x144ba7(0x204)](_0x5a92c0,_0x2b81c7,_0x28fb4b,_0x2be18f,_0x55d3d1){const _0x3f0702=_0x144ba7;var _0x42ff59,_0x124006;let _0x56f1a8=((_0x42ff59=this[_0x3f0702(0x39f)])==null?void 0x0:_0x42ff59['worldPoint'])??_0x5a92c0,_0x471827=t[_0x3f0702(0x293)][_0x3f0702(0x456)](_0x2b81c7,_0x56f1a8,_0x28fb4b);_0x2be18f['transformByState']({'flipX':_0x471827[_0x3f0702(0x46e)][_0x3f0702(0x3ce)],'flipY':_0x471827['worldRect'][_0x3f0702(0x479)],'left':_0x471827[_0x3f0702(0x46e)][_0x3f0702(0x34e)],'top':_0x471827[_0x3f0702(0x46e)][_0x3f0702(0x46b)],'width':_0x471827[_0x3f0702(0x46e)][_0x3f0702(0x1d7)],'height':_0x471827['worldRect'][_0x3f0702(0x3cb)],'angle':_0x471827[_0x3f0702(0x46e)][_0x3f0702(0x3e1)]});let _0x1eb0c5=((_0x124006=this[_0x3f0702(0x39f)])==null?void 0x0:_0x124006[_0x3f0702(0x1bf)])??_0x5a92c0;_0x55d3d1[_0x3f0702(0x45b)]({'left':_0x1eb0c5['x']-t[_0x3f0702(0x3d8)][_0x3f0702(0x241)],'top':_0x1eb0c5['y']-t[_0x3f0702(0x3d8)][_0x3f0702(0x241)]});}[_0x144ba7(0x2dc)](_0x4454e3){const _0x454f2a=_0x144ba7;if(!this[_0x454f2a(0x375)]||!this['_subUnitId'])return null;let {shapeId:_0x2177c4,cxnIndex:_0x4893c9}=_0x4454e3,_0x1eb19e=this[_0x454f2a(0x1b3)][_0x454f2a(0x3b2)](this[_0x454f2a(0x375)],this[_0x454f2a(0x469)],_0x2177c4);if(!_0x1eb19e)return null;let _0x1da3a3=this[_0x454f2a(0x234)][_0x454f2a(0x233)]({'unitId':this[_0x454f2a(0x375)],'subUnitId':this[_0x454f2a(0x469)],'drawingId':_0x2177c4});if(!(_0x1da3a3!=null&&_0x1da3a3['transform']))return null;let {left:_0xd2cebd=0x0,top:_0x1c9537=0x0,width:_0x58cbae=0x0,height:_0x3e9170=0x0,flipX:_0x96463f=!0x1,flipY:_0x257c0a=!0x1,angle:_0x28fb59}=_0x1da3a3['transform'];_0x1eb19e[_0x454f2a(0x307)]({'width':_0x58cbae,'height':_0x3e9170});let _0x348bee=_0x1eb19e['getConnectionSiteList']()[_0x454f2a(0x1cd)](_0x149877=>_0x149877[_0x454f2a(0x34f)]===_0x4893c9);if(!_0x348bee)return null;let _0x317b49=_0x96463f?_0x58cbae-_0x348bee['x']:_0x348bee['x'],_0x21ee07=_0x257c0a?_0x3e9170-_0x348bee['y']:_0x348bee['y'];if(_0x28fb59!==0x0&&_0x28fb59!=null){let _0x1eb489=_0x28fb59*Math['PI']/0xb4,_0x4454ff=Math[_0x454f2a(0x3f0)](_0x1eb489),_0x56481d=Math[_0x454f2a(0x1ab)](_0x1eb489),_0x1b9f79=_0x58cbae/0x2,_0x20779d=_0x3e9170/0x2,_0x2afbad=_0x317b49-_0x1b9f79,_0x3214f7=_0x21ee07-_0x20779d;_0x317b49=_0x1b9f79+_0x2afbad*_0x4454ff-_0x3214f7*_0x56481d,_0x21ee07=_0x20779d+_0x2afbad*_0x56481d+_0x3214f7*_0x4454ff;}_0x317b49+=_0xd2cebd,_0x21ee07+=_0x1c9537;let _0x290093=_0x348bee[_0x454f2a(0x260)]/0xea60;_0x96463f&&(_0x290093=0xb4-_0x290093),_0x257c0a&&(_0x290093=-_0x290093),_0x290093+=_0x28fb59||0x0,_0x290093=(_0x290093%0x168+0x168)%0x168;let _0x119be7=(0x0,t[_0x454f2a(0x2b3)])({'left':_0xd2cebd,'top':_0x1c9537,'width':_0x58cbae,'height':_0x3e9170},_0x28fb59||0x0);return{'point':{'x':_0x317b49,'y':_0x21ee07},'angle':_0x290093,'bounds':_0x119be7};}[_0x144ba7(0x212)](_0x122795,_0x3c40b8){const _0x53d97d=_0x144ba7;let _0x59a9dc=_0x3c40b8['x']-_0x122795['x'],_0x211295=_0x3c40b8['y']-_0x122795['y'];return Math['abs'](_0x59a9dc)>=Math[_0x53d97d(0x2c3)](_0x211295)?_0x59a9dc>=0x0?0xb4:0x0:_0x211295>=0x0?0x10e:0x5a;}[_0x144ba7(0x494)](){const _0x370154=_0x144ba7;this[_0x370154(0x32b)]=void 0x0,this[_0x370154(0x375)]=void 0x0,this[_0x370154(0x469)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x144ba7(0x33d)](){const _0x50a0f7=_0x144ba7;this[_0x50a0f7(0x47b)](),super[_0x50a0f7(0x33d)]();}};Fe=A([k(0x1,i['ICommandService']),k(0x2,s[_0x144ba7(0x1cb)]),k(0x3,o['IDrawingManagerService']),k(0x4,i['IUniverInstanceService']),k(0x5,(0x0,i['Inject'])(r[_0x144ba7(0x25b)])),k(0x6,(0x0,i[_0x144ba7(0x2c1)])(M)),k(0x7,(0x0,i[_0x144ba7(0x2c1)])(J))],Fe);let X=class extends i[_0x144ba7(0x2fc)]{constructor(_0x380345,_0x3754da,_0x18daa5){const _0x3b3a33=_0x144ba7;super(),this[_0x3b3a33(0x327)]=_0x380345,this[_0x3b3a33(0x234)]=_0x3754da,this[_0x3b3a33(0x251)]=_0x18daa5,this[_0x3b3a33(0x36e)]();}[_0x144ba7(0x36e)](){const _0x3e0c33=_0x144ba7;this[_0x3e0c33(0x350)](this['_sheetPrintInterceptorService']['interceptor'][_0x3e0c33(0x345)](this[_0x3e0c33(0x327)][_0x3e0c33(0x48b)][_0x3e0c33(0x1f7)]()[_0x3e0c33(0x230)],{'handler':(_0x366478,_0x248e03,_0x22f4f4)=>{const _0x2e7724=_0x3e0c33;var _0x117dbc;let {unitId:_0x503a16,subUnitId:_0x55329b,scene:_0x464da4,resourceCollector:_0x350c6a}=_0x248e03,_0x28298a=(_0x117dbc=this[_0x2e7724(0x234)][_0x2e7724(0x2da)](_0x503a16))==null?void 0x0:_0x117dbc[_0x55329b];return _0x28298a==null||_0x28298a[_0x2e7724(0x268)][_0x2e7724(0x313)](_0x46cfd9=>{const _0x33c463=_0x2e7724;let _0x1537e4=_0x28298a[_0x33c463(0x2f4)][_0x46cfd9];_0x1537e4['drawingType']===i['DrawingTypeEnum']['DRAWING_SHAPE']&&!_0x1537e4[_0x33c463(0x2d0)]&&this[_0x33c463(0x251)][_0x33c463(0x2e3)](_0x1537e4,_0x464da4,{'resourceCollector':_0x350c6a});}),_0x22f4f4(_0x366478);}}));}};X=A([k(0x0,(0x0,i['Inject'])(c[_0x144ba7(0x1f1)])),k(0x1,o[_0x144ba7(0x464)]),k(0x2,(0x0,i['Inject'])(j))],X);let Z=class extends i['Disposable']{constructor(_0x147280,_0x2201d0,_0x4b0085){const _0x562c95=_0x144ba7;super(),this[_0x562c95(0x238)]=_0x147280,this[_0x562c95(0x1d8)]=_0x2201d0,this[_0x562c95(0x38c)]=_0x4b0085,this['_initPermission']();}[_0x144ba7(0x3ca)](){const _0x52108a=_0x144ba7;this[_0x52108a(0x350)](this[_0x52108a(0x238)][_0x52108a(0x407)](_0x240531=>{const _0x2155a6=_0x52108a;let _0x2cf504,_0x31ef2f;if(_0x240531['id']===r[_0x2155a6(0x337)]['id']||_0x240531['id']===r[_0x2155a6(0x201)]['id']||_0x240531['id']===r['UpdateConnectorRelationCommand']['id']){let _0x585b7f=_0x240531[_0x2155a6(0x35b)];_0x2cf504=_0x585b7f[_0x2155a6(0x436)],_0x31ef2f=_0x585b7f[_0x2155a6(0x1ee)];}!_0x2cf504||!_0x31ef2f||this[_0x2155a6(0x38c)][_0x2155a6(0x3bc)]({'workbookTypes':[a[_0x2155a6(0x22c)]],'worksheetTypes':[a[_0x2155a6(0x377)]]},_0x2cf504,_0x31ef2f)||this[_0x2155a6(0x38c)]['blockExecuteWithoutPermission'](this[_0x2155a6(0x1d8)]['t']('sheets-shape-ui.permission.editErr'));}));}};Z=A([k(0x0,(0x0,i[_0x144ba7(0x2c1)])(i[_0x144ba7(0x488)])),k(0x1,(0x0,i[_0x144ba7(0x2c1)])(i[_0x144ba7(0x30c)])),k(0x2,(0x0,i[_0x144ba7(0x2c1)])(a[_0x144ba7(0x1d4)]))],Z);let Q=class extends i[_0x144ba7(0x2fc)]{constructor(_0x160a85,_0x49a885,_0x6199e,_0x3ca176,_0x648fe1,_0x1b1ce4,_0x330272,_0x1ea495,_0xcf5a48,_0x3e78ef,_0x851b08){const _0x1eb6e9=_0x144ba7;super(),this[_0x1eb6e9(0x41b)]=_0x160a85,this[_0x1eb6e9(0x48c)]=_0x49a885,this[_0x1eb6e9(0x20c)]=_0x6199e,this[_0x1eb6e9(0x1b3)]=_0x3ca176,this[_0x1eb6e9(0x1d8)]=_0x648fe1,this[_0x1eb6e9(0x238)]=_0x1b1ce4,this[_0x1eb6e9(0x234)]=_0x330272,this[_0x1eb6e9(0x311)]=_0x1ea495,this[_0x1eb6e9(0x481)]=_0xcf5a48,this[_0x1eb6e9(0x1f6)]=_0x3e78ef,this[_0x1eb6e9(0x244)]=_0x851b08,E(this,_0x1eb6e9(0x231),null),E(this,_0x1eb6e9(0x43f),null),E(this,_0x1eb6e9(0x20a),!0x1),E(this,_0x1eb6e9(0x3ef),0x0),E(this,_0x1eb6e9(0x330),new Set()),E(this,_0x1eb6e9(0x1f8),[]),this[_0x1eb6e9(0x2ae)](),this[_0x1eb6e9(0x350)](this[_0x1eb6e9(0x41b)][_0x1eb6e9(0x265)](i[_0x1eb6e9(0x3b7)]['UNIVER_SHEET'])[_0x1eb6e9(0x3d0)](_0x1b1d79=>{const _0x34a664=_0x1eb6e9;if(!_0x1b1d79){var _0x3a12b2;(_0x3a12b2=this[_0x34a664(0x231)])==null||_0x3a12b2[_0x34a664(0x33d)]();return;}this[_0x34a664(0x486)](_0x1b1d79);})),this[_0x1eb6e9(0x2c2)](),this[_0x1eb6e9(0x392)](),this[_0x1eb6e9(0x350)](this[_0x1eb6e9(0x244)][_0x1eb6e9(0x2c8)][_0x1eb6e9(0x3d0)](_0x8c6bc3=>{const _0x11d907=_0x1eb6e9;_0x8c6bc3&&this[_0x11d907(0x344)]();}));}[_0x144ba7(0x2ae)](){const _0x30bf98=_0x144ba7;this['_menuManagerService'][_0x30bf98(0x363)](_e);}[_0x144ba7(0x392)](){const _0x6e83c2=_0x144ba7;this['_univerInstanceService']['getAllUnitsForType'](i['UniverInstanceType'][_0x6e83c2(0x423)])[_0x6e83c2(0x313)](_0x3863fd=>this['_createShapePopupMenu'](_0x3863fd));}[_0x144ba7(0x208)](_0x300a12,_0x243880,_0x548ae8){const _0x4665a4=_0x144ba7;let _0x2b8f31=this[_0x4665a4(0x1b3)][_0x4665a4(0x1b9)](_0x300a12,_0x243880,_0x548ae8),_0x1259d3=this[_0x4665a4(0x1b3)][_0x4665a4(0x318)](_0x300a12,_0x243880,_0x548ae8);return _0x2b8f31!==void 0x0&&_0x1259d3!==void 0x0?{'shapeData':_0x1259d3,'shapeId':_0x548ae8,'shapeType':_0x2b8f31,'unitId':_0x300a12,'subUnitId':_0x243880,'version':this[_0x4665a4(0x3ef)],'disableShapeOption':!0x1}:null;}[_0x144ba7(0x486)](_0x308432){const _0x415b5e=_0x144ba7;if(!_0x308432)return;let _0x5482a2=_0x308432[_0x415b5e(0x33a)]();this[_0x415b5e(0x1f6)][_0x415b5e(0x483)](_0x5482a2)&&!this[_0x415b5e(0x330)][_0x415b5e(0x483)](_0x5482a2)&&(this['_popupMenuListener'](_0x5482a2),this[_0x415b5e(0x330)]['add'](_0x5482a2));}[_0x144ba7(0x344)](){const _0xcbccdc=_0x144ba7;this[_0xcbccdc(0x1f8)][_0xcbccdc(0x313)](_0x37bdb0=>_0x37bdb0['dispose']()),this['_disposePopups'][_0xcbccdc(0x38e)]=0x0;}[_0x144ba7(0x281)](_0x386b7f){const _0x267997=_0x144ba7;var _0x1bcb58;let _0x415701=(_0x1bcb58=this[_0x267997(0x1f6)]['getRenderUnitById'](_0x386b7f))==null?void 0x0:_0x1bcb58[_0x267997(0x3aa)],_0xbedfb4=_0x415701==null?void 0x0:_0x415701[_0x267997(0x303)]();!_0x415701||!_0xbedfb4||(this[_0x267997(0x350)](_0xbedfb4['createControl$'][_0x267997(0x3d0)](()=>{const _0x213223=_0x267997;let _0x4299be=_0xbedfb4[_0x213223(0x34c)]();if(this['_clearPopups'](),this[_0x213223(0x20a)]||_0x4299be[_0x213223(0x3de)]>0x1)return;let _0x49c9e8=_0x4299be[_0x213223(0x35c)]()[_0x213223(0x40f)]()[_0x213223(0x29b)];if(!_0x49c9e8)return;let _0x56bfc9=this[_0x213223(0x234)][_0x213223(0x2d4)](_0x49c9e8['oKey']);if(!_0x56bfc9||_0x56bfc9['drawingType']!==i[_0x213223(0x1d1)][_0x213223(0x2be)])return;let {unitId:_0x1f0696,subUnitId:_0x1c982d,drawingId:_0x51a3f8,drawingType:_0x1c489f}=_0x56bfc9,_0x70dd80=this[_0x213223(0x208)](_0x1f0696,_0x1c982d,_0x51a3f8);if(!_0x70dd80)return;this['_contextService']['setContextValue'](i[_0x213223(0x29d)],!0x0);let _0x463702=this[_0x213223(0x311)][_0x213223(0x328)](_0x49c9e8,{'componentKey':L,'direction':_0x213223(0x308),'offset':[0x0,u[_0x213223(0x2d7)]],'extraProps':{'unitId':_0x1f0696,'subUnitId':_0x1c982d,'drawingId':_0x51a3f8,'drawingType':_0x1c489f,'shapeType':_0x70dd80[_0x213223(0x3a3)],'shapeData':_0x70dd80['shapeData']}});this[_0x213223(0x1f8)]['push'](this[_0x213223(0x350)](_0x463702)),this[_0x213223(0x234)][_0x213223(0x3b8)]()[_0x213223(0x1cd)](_0x42300e=>_0x42300e[_0x213223(0x436)]===_0x1f0696&&_0x42300e[_0x213223(0x1ee)]===_0x1c982d&&_0x42300e[_0x213223(0x290)]===_0x51a3f8)||this['_drawingManagerService'][_0x213223(0x20e)]([{'unitId':_0x1f0696,'subUnitId':_0x1c982d,'drawingId':_0x51a3f8}]);})),this[_0x267997(0x350)](_0xbedfb4['clearControl$'][_0x267997(0x3d0)](()=>{const _0x1cbefc=_0x267997;this['_clearPopups'](),this[_0x1cbefc(0x481)]['setContextValue'](i[_0x1cbefc(0x29d)],!0x1),this[_0x1cbefc(0x234)]['focusDrawing'](null);})),this[_0x267997(0x350)](_0xbedfb4[_0x267997(0x2ce)][_0x267997(0x3d0)](()=>{this['_clearPopups']();})),this[_0x267997(0x350)](_0xbedfb4[_0x267997(0x1eb)][_0x267997(0x3d0)](()=>{this['_clearPopups']();})));}[_0x144ba7(0x2c2)](){const _0x1af451=_0x144ba7;this[_0x1af451(0x350)](this[_0x1af451(0x238)][_0x1af451(0x371)](_0x6b3277=>{const _0xd0d751=_0x1af451;if(_0x6b3277['id']===V['id']){let {unitId:_0xfcb963,subUnitId:_0x88dae6,drawingId:_0x2ed13d}=_0x6b3277[_0xd0d751(0x35b)];this[_0xd0d751(0x3ef)]+=0x1,this[_0xd0d751(0x43f)]=this['_getShapeInfo'](_0xfcb963,_0x88dae6,_0x2ed13d),this['_clearPopups'](),this[_0xd0d751(0x1a9)]();}if(_0x6b3277['id']===be['id']&&(this[_0xd0d751(0x43f)]=null,this[_0xd0d751(0x31f)]()),_0x6b3277['id']===r['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x5b52ab,subUnitId:_0x396250,shapeId:_0x116c90}=_0x6b3277[_0xd0d751(0x35b)];if(this['_activeShapeInfo']&&this['_activeShapeInfo'][_0xd0d751(0x3c2)]===_0x116c90){let _0x5c3cba=this[_0xd0d751(0x208)](_0x5b52ab,_0x396250,_0x116c90);_0x5c3cba&&(this[_0xd0d751(0x3ef)]+=0x1,_0x5c3cba['version']=this[_0xd0d751(0x3ef)],this[_0xd0d751(0x43f)]=_0x5c3cba,this[_0xd0d751(0x20a)]&&this['_openShapeEditPanel']());}}})),this[_0x1af451(0x350)](this[_0x1af451(0x234)][_0x1af451(0x1b5)][_0x1af451(0x3d0)](_0x5ac7b4=>{const _0x14f67f=_0x1af451;if(this[_0x14f67f(0x20a)]===!0x1)return;if(_0x5ac7b4[_0x14f67f(0x38e)]===0x0){this[_0x14f67f(0x43f)]=null,this['_closeShapeEditPanel']();return;}if(_0x5ac7b4['length']===0x1&&_0x5ac7b4[0x0][_0x14f67f(0x34d)]===i[_0x14f67f(0x1d1)][_0x14f67f(0x2be)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x14f67f(0x43f)]=this[_0x14f67f(0x208)](_0x5ac7b4[0x0][_0x14f67f(0x436)],_0x5ac7b4[0x0]['subUnitId'],_0x5ac7b4[0x0][_0x14f67f(0x290)]),this[_0x14f67f(0x43f)])){this[_0x14f67f(0x1a9)]();return;}let _0x12053e=_0x5ac7b4[_0x14f67f(0x383)](_0x37a845=>_0x37a845[_0x14f67f(0x34d)]===i['DrawingTypeEnum'][_0x14f67f(0x2be)]);if(_0x5ac7b4[_0x14f67f(0x38e)]>0x1&&_0x12053e['length']===_0x5ac7b4[_0x14f67f(0x38e)]){if(this[_0x14f67f(0x3ef)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x5ac7b4[0x0][_0x14f67f(0x436)],_0x5ac7b4[0x0][_0x14f67f(0x1ee)],_0x5ac7b4[0x0][_0x14f67f(0x290)]),this[_0x14f67f(0x43f)]){this[_0x14f67f(0x1a9)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x14f67f(0x43f)]=this[_0x14f67f(0x208)](_0x5ac7b4[0x0][_0x14f67f(0x436)],_0x5ac7b4[0x0][_0x14f67f(0x1ee)],_0x5ac7b4[0x0][_0x14f67f(0x290)]),this[_0x14f67f(0x43f)]){this[_0x14f67f(0x43f)][_0x14f67f(0x1fb)]=!0x0,this[_0x14f67f(0x1a9)]();return;}}this[_0x14f67f(0x31f)]();}));}[_0x144ba7(0x1a9)](){const _0x74c77=_0x144ba7;this[_0x74c77(0x43f)]&&(this[_0x74c77(0x231)]=this[_0x74c77(0x48c)][_0x74c77(0x422)]({'id':F,'header':{'title':this[_0x74c77(0x1d8)]['t'](_0x74c77(0x1cc))},'width':0x184,'children':{'label':F,...this[_0x74c77(0x43f)]},'onClose':()=>{const _0x4f4054=_0x74c77;this['_drawingManagerService'][_0x4f4054(0x20e)](null),this[_0x4f4054(0x481)][_0x4f4054(0x2ad)](i[_0x4f4054(0x29d)],!0x1),this[_0x4f4054(0x231)]=null;}}),this[_0x74c77(0x20a)]=!0x0);}[_0x144ba7(0x31f)](){const _0x2e1e49=_0x144ba7;this[_0x2e1e49(0x20a)]=!0x1,this[_0x2e1e49(0x48c)]['close'](F),this[_0x2e1e49(0x231)]=null,this[_0x2e1e49(0x481)]['setContextValue'](i[_0x2e1e49(0x29d)],!0x1),this[_0x2e1e49(0x234)]['focusDrawing'](null);}};Q=A([k(0x0,i['IUniverInstanceService']),k(0x1,(0x0,i[_0x144ba7(0x2c1)])(e[_0x144ba7(0x21c)])),k(0x2,e[_0x144ba7(0x32e)]),k(0x3,(0x0,i['Inject'])(r['SheetsShapeService'])),k(0x4,(0x0,i[_0x144ba7(0x2c1)])(i[_0x144ba7(0x30c)])),k(0x5,i['ICommandService']),k(0x6,o['IDrawingManagerService']),k(0x7,(0x0,i[_0x144ba7(0x2c1)])(c[_0x144ba7(0x2f2)])),k(0x8,i[_0x144ba7(0x298)]),k(0x9,s[_0x144ba7(0x1cb)]),k(0xa,(0x0,i['Inject'])(U))],Q);let $=class extends i['Plugin']{constructor(_0x411b30=xe,_0x530aad,_0x4f7203,_0x4e97e6,_0x3f72fd){const _0x4663c8=_0x144ba7;super(),this['_config']=_0x411b30,this[_0x4663c8(0x219)]=_0x530aad,this[_0x4663c8(0x238)]=_0x4f7203,this[_0x4663c8(0x228)]=_0x4e97e6,this[_0x4663c8(0x1f6)]=_0x3f72fd;let {..._0x756426}=(0x0,i[_0x4663c8(0x2de)])({},xe,this[_0x4663c8(0x356)]);this[_0x4663c8(0x228)][_0x4663c8(0x33f)](_0x4663c8(0x2ff),_0x756426),this['_initCommands']();}[_0x144ba7(0x3cd)](){(0x0,i['touchDependencies'])(this['_injector'],[[Q],[q],[j],[X]]);}[_0x144ba7(0x437)](){const _0x172421=_0x144ba7;this[_0x172421(0x219)][_0x172421(0x45d)](Q)['initShapePopupMenu']();}[_0x144ba7(0x26e)](){const _0x384039=_0x144ba7;[[J],[M],[Y]][_0x384039(0x313)](_0x15b00d=>this[_0x384039(0x219)]['add'](_0x15b00d)),(0x0,i[_0x384039(0x1d3)])(this['_injector'],[[Y],[M]]),this['_renderManagerService'][_0x384039(0x44c)](i['UniverInstanceType']['UNIVER_SHEET'],[J]),this[_0x384039(0x1f6)][_0x384039(0x44c)](i[_0x384039(0x3b7)]['UNIVER_SHEET'],[G]),this[_0x384039(0x1f6)][_0x384039(0x44c)](i[_0x384039(0x3b7)][_0x384039(0x423)],[Fe]),this[_0x384039(0x1f6)][_0x384039(0x44c)](i[_0x384039(0x3b7)][_0x384039(0x423)],[Ae]),this[_0x384039(0x1f6)]['registerRenderModule'](i[_0x384039(0x3b7)][_0x384039(0x393)],[je]);}['onStarting'](){const _0x59ff5f=_0x144ba7;this[_0x59ff5f(0x219)][_0x59ff5f(0x1f3)]([W]),this[_0x59ff5f(0x219)][_0x59ff5f(0x45d)](W);let _0x445d23=this[_0x59ff5f(0x219)];[[Q],[q],[j],[X],[H],[U],[K],[B],[Z]]['forEach'](_0x26024a=>_0x445d23['add'](_0x26024a)),(0x0,i[_0x59ff5f(0x1d3)])(this[_0x59ff5f(0x219)],[[Q],[q],[j],[H],[U],[K],[B],[Z]]);}['_initCommands'](){const _0x803bcd=_0x144ba7;[P,x,be,V,z,N][_0x803bcd(0x313)](_0x176c22=>this[_0x803bcd(0x350)](this[_0x803bcd(0x238)][_0x803bcd(0x348)](_0x176c22)));}};E($,_0x144ba7(0x36b),i[_0x144ba7(0x3b7)][_0x144ba7(0x423)]),E($,_0x144ba7(0x3b6),_0x144ba7(0x29c)),E($,'packageName',ve),E($,'version',ye),$=A([(0x0,i['DependentOn'])(p[_0x144ba7(0x1ef)],m['UniverDocsPlugin'],o[_0x144ba7(0x466)],d[_0x144ba7(0x322)],s[_0x144ba7(0x45c)],a[_0x144ba7(0x2cf)],h['UniverDocsUIPlugin'],g[_0x144ba7(0x332)],n[_0x144ba7(0x276)],_[_0x144ba7(0x2f8)],r['UniverSheetsShapePlugin'],c[_0x144ba7(0x22f)],u[_0x144ba7(0x36d)]),k(0x1,(0x0,i['Inject'])(i[_0x144ba7(0x2e9)])),k(0x2,i['ICommandService']),k(0x3,i[_0x144ba7(0x19f)]),k(0x4,s[_0x144ba7(0x1cb)])],$),exports[_0x144ba7(0x434)]=_e,Object[_0x144ba7(0x3da)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x46885f=_0x2769;(function(_0x53efb3,_0xf96bf2){const _0xa1ecfb=_0x2769,_0x12924f=_0x53efb3();while(!![]){try{const _0x346ff0=parseInt(_0xa1ecfb(0x49e))/0x1+parseInt(_0xa1ecfb(0x22d))/0x2*(-parseInt(_0xa1ecfb(0x2b5))/0x3)+-parseInt(_0xa1ecfb(0x1fe))/0x4*(parseInt(_0xa1ecfb(0x4a2))/0x5)+-parseInt(_0xa1ecfb(0x2ee))/0x6+-parseInt(_0xa1ecfb(0x409))/0x7*(parseInt(_0xa1ecfb(0x1f7))/0x8)+parseInt(_0xa1ecfb(0x2da))/0x9*(parseInt(_0xa1ecfb(0x1cb))/0xa)+-parseInt(_0xa1ecfb(0x3a9))/0xb*(-parseInt(_0xa1ecfb(0x228))/0xc);if(_0x346ff0===_0xf96bf2)break;else _0x12924f['push'](_0x12924f['shift']());}catch(_0x26d7a1){_0x12924f['push'](_0x12924f['shift']());}}}(_0x569f,0x8a18c),Object['defineProperty'](exports,Symbol[_0x46885f(0x1c1)],{'value':_0x46885f(0x1b6)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('react/jsx-runtime'),p=require('@univerjs/sheets-drawing'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui'),_=require('@univerjs/sheets-drawing-ui'),v=require('@univerjs/icons'),y=require('react');function b(_0x492373,_0x5e0c93){const _0x17ca87=_0x46885f;let _0x33150c={};for(let _0x34f9b5 of Object[_0x17ca87(0x460)](_0x5e0c93)){let _0xc87eb3=_0x5e0c93[_0x34f9b5],_0x1abb53=_0x492373[_0x34f9b5];if(_0xc87eb3!==void 0x0){if(_0x1abb53===void 0x0){_0x33150c[_0x34f9b5]=void 0x0;continue;}typeof _0xc87eb3==_0x17ca87(0x197)&&_0xc87eb3&&!Array[_0x17ca87(0x46f)](_0xc87eb3)&&typeof _0x1abb53==_0x17ca87(0x197)&&_0x1abb53&&!Array[_0x17ca87(0x46f)](_0x1abb53)?_0x33150c[_0x34f9b5]=b(_0x1abb53,_0xc87eb3):_0x33150c[_0x34f9b5]=_0x1abb53;}}return _0x33150c;}const x={'type':a[_0x46885f(0x2f4)][_0x46885f(0x39a)],'id':_0x46885f(0x3ca),'handler':(_0x5ae2d5,_0x2afb73)=>{const _0x138790=_0x46885f;let _0x5c3640=_0x5ae2d5[_0x138790(0x3a3)](i['SheetsShapeService']),{unitId:_0x3bfdb6,subUnitId:_0x302dae,shapeType:_0x139608,shapeId:_0x15e17f,shapeData:_0x396f8b,replaceShapeData:_0x269935,oldShapeJSON:_0x42f666}=_0x2afb73;if(!_0x5c3640[_0x138790(0x387)](_0x3bfdb6,_0x302dae,_0x15e17f))return!0x1;let _0x116411=_0x5ae2d5['get'](a[_0x138790(0x4aa)]),_0x147fee=_0x5ae2d5[_0x138790(0x3a3)](a[_0x138790(0x4a7)]),{oldShapeType:_0x954413,oldShapeData:_0x5440b4={}}=_0x42f666,_0x2df733=_0x269935?_0x5440b4:b(_0x5440b4,_0x396f8b||{}),_0x504ded={'id':i[_0x138790(0x44a)]['id'],'params':{'unitId':_0x3bfdb6,'subUnitId':_0x302dae,'shapeId':_0x15e17f,'shapeType':_0x139608,'shapeData':_0x396f8b,'replace':_0x269935}},_0x473c17={'id':i[_0x138790(0x44a)]['id'],'params':{'unitId':_0x3bfdb6,'subUnitId':_0x302dae,'shapeId':_0x15e17f,'shapeType':_0x954413,'shapeData':_0x2df733,'replace':_0x269935}};return _0x116411[_0x138790(0x44d)](_0x504ded['id'],_0x504ded['params'])?(_0x147fee['pushUndoRedo']({'unitID':_0x3bfdb6,'undoMutations':[_0x473c17],'redoMutations':[_0x504ded]}),!0x0):!0x1;}};function S(_0x28c8ac,_0x3344f9,_0x48a498,_0x12feec,_0x42d4fc,_0x4fd0be){const _0x1620a2=_0x46885f;let _0x1684ae={'unitId':_0x3344f9,'subUnitId':_0x48a498,'shapeId':_0x12feec,'shapeData':_0x4fd0be,'oldShapeJSON':_0x42d4fc};return _0x28c8ac[_0x1620a2(0x210)](x['id'],_0x1684ae);}function C(_0x3605f4,_0x34224a,_0x16806b,_0x59efef,_0x291cba,_0x469e5f){const _0x21a247=_0x46885f;let _0x224179={'unitId':_0x34224a,'subUnitId':_0x16806b,'shapeId':_0x59efef,'shapeData':_0x469e5f,'oldShapeJSON':_0x291cba};return _0x3605f4[_0x21a247(0x210)](x['id'],_0x224179);}function w(_0x521cf3){'@babel/helpers - typeof';const _0x3ad6a9=_0x46885f;return w=typeof Symbol==_0x3ad6a9(0x461)&&typeof Symbol['iterator']=='symbol'?function(_0xd33eb1){return typeof _0xd33eb1;}:function(_0x5625c8){const _0x55b328=_0x3ad6a9;return _0x5625c8&&typeof Symbol==_0x55b328(0x461)&&_0x5625c8[_0x55b328(0x285)]===Symbol&&_0x5625c8!==Symbol['prototype']?_0x55b328(0x36e):typeof _0x5625c8;},w(_0x521cf3);}function ee(_0x590c3a,_0x281650){const _0x5870cc=_0x46885f;if(w(_0x590c3a)!='object'||!_0x590c3a)return _0x590c3a;var _0x89365b=_0x590c3a[Symbol[_0x5870cc(0x256)]];if(_0x89365b!==void 0x0){var _0x23706a=_0x89365b['call'](_0x590c3a,_0x281650||_0x5870cc(0x42a));if(w(_0x23706a)!=_0x5870cc(0x197))return _0x23706a;throw TypeError(_0x5870cc(0x40c));}return(_0x281650===_0x5870cc(0x444)?String:Number)(_0x590c3a);}function te(_0x4778e3){const _0x38120d=_0x46885f;var _0x5b3d62=ee(_0x4778e3,_0x38120d(0x444));return w(_0x5b3d62)=='symbol'?_0x5b3d62:_0x5b3d62+'';}function T(_0x282707,_0x5d3eb6,_0x2401d5){const _0x271a92=_0x46885f;return(_0x5d3eb6=te(_0x5d3eb6))in _0x282707?Object[_0x271a92(0x32e)](_0x282707,_0x5d3eb6,{'value':_0x2401d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x282707[_0x5d3eb6]=_0x2401d5,_0x282707;}function ne(_0x4f7420,_0x29c03e,_0x444651){const _0x9c6c16=_0x46885f;let _0x43f3dd=(0x0,e[_0x9c6c16(0x2dc)])(_0x4f7420,{..._0x29c03e,'dataModel':{..._0x29c03e['dataModel']??{},..._0x444651?{'doc':_0x444651}:null}}),_0x149285=(0x0,e[_0x9c6c16(0x4a5)])(_0x43f3dd);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x43f3dd,_0x149285),'wrapStrategy':_0x149285};}var E=class extends c['Shape']{constructor(_0xe1b3d7,_0x273232){const _0x7265e2=_0x46885f;super(_0xe1b3d7,_0x273232),T(this,'_props',void 0x0),T(this,_0x7265e2(0x308),new e[(_0x7265e2(0x30a))](()=>this[_0x7265e2(0x23f)](!0x0),()=>this[_0x7265e2(0x189)]())),T(this,_0x7265e2(0x291),!0x0),T(this,_0x7265e2(0x1aa),a[_0x7265e2(0x196)][_0x7265e2(0x288)]),T(this,_0x7265e2(0x1c9),!0x0),this[_0x7265e2(0x469)]={..._0x273232},this['_formulaAnimation'][_0x7265e2(0x2e1)](_0x273232[_0x7265e2(0x363)],_0x273232[_0x7265e2(0x1a8)]!==!0x1),this[_0x7265e2(0x452)](),this['_applyFormulaAutoFitSize']();}[_0x46885f(0x452)](){const _0x1aefd6=_0x46885f;this[_0x1aefd6(0x241)][_0x1aefd6(0x440)](_0x6a17a6=>{const _0x2548d1=_0x1aefd6;this[_0x2548d1(0x3bc)](_0x6a17a6);});}[_0x46885f(0x268)](_0x163fe1){const _0x1a046f=_0x46885f;this[_0x1a046f(0x469)][_0x1a046f(0x26b)]=_0x163fe1;}['setEditing'](_0xbb2451){const _0x135a5c=_0x46885f;this['_props'][_0x135a5c(0x3b9)]=_0xbb2451,this[_0x135a5c(0x23f)](!0x0);}[_0x46885f(0x1ee)](_0x252eaf,_0x30171b=!0x0){const _0x24d8cb=_0x46885f;this[_0x24d8cb(0x308)][_0x24d8cb(0x2e1)](_0x252eaf,_0x30171b),this[_0x24d8cb(0x469)][_0x24d8cb(0x363)]=_0x252eaf,this[_0x24d8cb(0x189)](),this['makeDirty'](!0x0);}[_0x46885f(0x189)](){const _0x10740f=_0x46885f;let _0x21cc03=this[_0x10740f(0x469)][_0x10740f(0x269)],_0x5db75b=_0x21cc03[_0x10740f(0x215)](),_0x3235fe=(0x0,e[_0x10740f(0x19d)])(_0x5db75b==null?void 0x0:_0x5db75b['dataModel']),_0x36b4f3=_0x3235fe==null?void 0x0:_0x3235fe['doc'],_0x4edbbd=this[_0x10740f(0x308)]['getAutoFitPresentations']();if(!_0x36b4f3||_0x4edbbd[_0x10740f(0x453)]===0x0)return;_0x21cc03[_0x10740f(0x3f7)]({'width':this['width'],'height':this[_0x10740f(0x49b)]});let _0x15d6b7=(0x0,e['resolveFormulaShapeAutoFitSize'])({'documentData':_0x4edbbd[_0x10740f(0x164)](_0x2160a4=>(0x0,r[_0x10740f(0x48b)])(_0x36b4f3,_0x2160a4)),'height':this[_0x10740f(0x49b)],'shapeData':_0x21cc03[_0x10740f(0x279)](),'textRect':_0x21cc03[_0x10740f(0x1d7)]({'left':0x0,'top':0x0,'width':this[_0x10740f(0x322)],'height':this[_0x10740f(0x49b)]}),'width':this[_0x10740f(0x322)]});if(_0x15d6b7){var _0x35d294;this[_0x10740f(0x38e)](_0x15d6b7[_0x10740f(0x322)],_0x15d6b7[_0x10740f(0x49b)]),(_0x35d294=this[_0x10740f(0x37a)]())==null||(_0x35d294=_0x35d294[_0x10740f(0x312)]())==null||_0x35d294['debounceRefreshControls']();}}get[_0x46885f(0x332)](){const _0x1aaa66=_0x46885f;return this[_0x1aaa66(0x469)][_0x1aaa66(0x332)];}get[_0x46885f(0x46b)](){const _0x398d80=_0x46885f;return this[_0x398d80(0x469)][_0x398d80(0x46b)];}[_0x46885f(0x3bc)](_0x216251){const _0x1b5db7=_0x46885f;if(this[_0x1b5db7(0x469)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x37c336,height:_0x6d061}=this,{width:_0x226032=0x0,height:_0x201c09=0x0}=_0x216251[_0x1b5db7(0x416)],{left:_0x2065e0=0x0,top:_0x38614a=0x0,right:_0x1583d2=0x0,bottom:_0x2ced78=0x0}=this['_props'][_0x1b5db7(0x244)],_0x3d71e9=_0x2065e0,_0x355c88=_0x38614a,_0x5ec6d5=_0x1583d2,_0x307447=_0x2ced78,_0x29a084=!0x1;if(_0x226032!==0x0&&_0x226032!==_0x37c336){let _0x39cd74=_0x2065e0/_0x226032,_0x18a8b3=_0x1583d2/_0x226032;_0x3d71e9=_0x37c336*_0x39cd74,_0x5ec6d5=_0x37c336*_0x18a8b3,_0x29a084=!0x0;}if(_0x201c09!==0x0&&_0x201c09!==_0x6d061){let _0x34baef=_0x38614a/_0x201c09,_0x1c4aa6=_0x2ced78/_0x201c09;_0x355c88=_0x6d061*_0x34baef,_0x307447=_0x6d061*_0x1c4aa6,_0x29a084=!0x0;}_0x29a084&&this['setSrcRect']({'left':_0x3d71e9,'top':_0x355c88,'right':_0x5ec6d5,'bottom':_0x307447});}[_0x46885f(0x27f)](_0x239bde){const _0x37f63a=_0x46885f;this[_0x37f63a(0x469)][_0x37f63a(0x244)]=_0x239bde,this[_0x37f63a(0x23f)](!0x0);}['setFillImage'](_0x5628c3){const _0x12b6dd=_0x46885f;this['_props']['image']=_0x5628c3,this[_0x12b6dd(0x23f)](!0x0);}set['transform'](_0x478edc){this['_transform']=_0x478edc;}get[_0x46885f(0x463)](){const _0x54eae0=_0x46885f;this['_transform']||this[_0x54eae0(0x2b4)]();let _0x202cf8=this[_0x54eae0(0x33c)][_0x54eae0(0x384)]();return this[_0x54eae0(0x40f)](_0x202cf8);}get[_0x46885f(0x269)](){const _0x724df8=_0x46885f;return this[_0x724df8(0x469)]['shapeModel'];}get[_0x46885f(0x487)](){const _0x4ebf33=_0x46885f;return this[_0x4ebf33(0x469)]['shapeId'];}get[_0x46885f(0x3af)](){const _0x1c7c10=_0x46885f;return c[_0x1c7c10(0x236)][_0x1c7c10(0x3ad)];}['_draw'](_0x5b7154,_0x367709,_0x283293,_0x4316a7){const _0x1bee0e=_0x46885f;let _0x2972da=this[_0x1bee0e(0x469)][_0x1bee0e(0x269)];if(!_0x2972da||!_0x367709)return;let _0x44ea95=_0x283293??this['width'],_0x598bff=_0x4316a7??this['height'],_0x39c943={'shapeType':_0x2972da[_0x1bee0e(0x449)](),'width':_0x44ea95,'height':_0x598bff},_0x43f12d={'renderMode':n[_0x1bee0e(0x245)][_0x1bee0e(0x20a)],'oKey':this[_0x1bee0e(0x294)],'image':this[_0x1bee0e(0x469)]['image'],'angle':this['angle']};_0x2972da[_0x1bee0e(0x3f7)](_0x39c943),_0x5b7154[_0x1bee0e(0x1d8)]();let _0xfc159={'top':0x0,'left':0x0,'width':_0x44ea95,'height':_0x598bff},_0x4f42fa=_0x2972da[_0x1bee0e(0x3b8)](_0xfc159);_0x4f42fa?this[_0x1bee0e(0x300)](_0x5b7154,_0x4f42fa,_0x435b9a=>{const _0x146c37=_0x1bee0e;_0x2972da[_0x146c37(0x2d5)](_0x435b9a,_0xfc159,_0x43f12d);}):(this[_0x1bee0e(0x18b)](),_0x2972da[_0x1bee0e(0x2d5)](_0x5b7154,_0xfc159,_0x43f12d)),_0x5b7154['restore']();let _0x4c39de=_0x2972da['getShapeTextData'](),_0x830091=_0x2972da[_0x1bee0e(0x1d7)](_0xfc159),_0x283fb1=_0x2972da[_0x1bee0e(0x179)]();if(_0x4c39de&&_0x830091&&!_0x283fb1){_0x5b7154[_0x1bee0e(0x1d8)](),this[_0x1bee0e(0x181)]()[_0x1bee0e(0x271)]&&_0x5b7154[_0x1bee0e(0x213)](-0x1,0x1);let _0x1c9763=_0x44ea95/0x2,_0x4aa227=_0x598bff/0x2;_0x5b7154[_0x1bee0e(0x262)](-_0x1c9763,-_0x4aa227),_0x5b7154['beginPath'](),this[_0x1bee0e(0x49c)](_0x5b7154,_0x4c39de,_0x830091),_0x5b7154[_0x1bee0e(0x4a1)]();}}[_0x46885f(0x2a1)](_0x51a885){}[_0x46885f(0x49c)](_0x42c48d,_0x401437,_0x4d380d){const _0x4ed48f=_0x46885f;var _0x5a02b4;this[_0x4ed48f(0x469)][_0x4ed48f(0x3b9)]||(!((_0x5a02b4=_0x401437[_0x4ed48f(0x328)])!=null&&_0x5a02b4[_0x4ed48f(0x292)])&&_0x4ed48f(0x3dd)in _0x401437&&_0x401437[_0x4ed48f(0x3dd)]===!0x1?this[_0x4ed48f(0x239)](_0x42c48d,_0x401437,_0x4d380d):this[_0x4ed48f(0x1ff)](_0x42c48d,_0x401437,_0x4d380d));}[_0x46885f(0x239)](_0x8f4788,_0x5e4ba5,_0x8dc8eb){const _0x3a11d5=_0x46885f;this[_0x3a11d5(0x1ff)](_0x8f4788,{..._0x5e4ba5,'text':_0x5e4ba5[_0x3a11d5(0x2ac)]??'','dataModel':{'doc':(0x0,e[_0x3a11d5(0x386)])(_0x5e4ba5,_0x3a11d5(0x32b)+this[_0x3a11d5(0x294)])}},_0x8dc8eb);}[_0x46885f(0x1ff)](_0x147b6d,_0xef083e,_0x4b2164){const _0x13181b=_0x46885f;(0x0,e[_0x13181b(0x3d1)])(_0x147b6d,this[_0x13181b(0x308)],(_0x75c192,_0x59973d)=>{this['_drawRichTextLayer'](_0x75c192,_0xef083e,_0x4b2164,_0x59973d);});}['_drawRichTextLayer'](_0x5b92c8,_0xe2f31d,_0x4e7107,_0x168817){const _0x21375c=_0x46885f;let _0x333c4c=this[_0x21375c(0x469)][_0x21375c(0x295)];if(!_0xe2f31d[_0x21375c(0x328)]||!_0x333c4c)return;let _0x51552a=(0x0,e[_0x21375c(0x19d)])(_0xe2f31d[_0x21375c(0x328)]);if(!_0x51552a)return;let _0x1d76fc=_0x51552a['doc'];if(!_0x1d76fc)return;let _0x567414=(0x0,r[_0x21375c(0x48b)])(_0x1d76fc,_0x168817),_0x4ad8bf=_0x51552a['va']??a[_0x21375c(0x1b3)][_0x21375c(0x35e)],_0x5daea2=_0x51552a['ha']??a[_0x21375c(0x1f5)][_0x21375c(0x217)],_0x33ab41=ne(this[_0x21375c(0x469)][_0x21375c(0x269)][_0x21375c(0x279)](),_0xe2f31d,_0x567414),_0x2bd631=_0xe2f31d[_0x21375c(0x206)],_0x2bb879=new a[(_0x21375c(0x17c))]((0x0,e[_0x21375c(0x37e)])(_0x567414,{'isHorizontal':_0x2bd631!==!0x1,'textRect':_0x4e7107,'verticalAlign':_0x4ad8bf,'horizontalAlign':_0x5daea2,'wrapStrategy':_0x33ab41[_0x21375c(0x3f6)]})),_0x54022a=new c[(_0x21375c(0x20d))](_0x2bb879),_0x41596a=c[_0x21375c(0x37d)]['create'](_0x54022a,_0x333c4c);_0x41596a[_0x21375c(0x2c8)]();let _0x2b9545=_0x41596a[_0x21375c(0x374)]()[_0x21375c(0x3b4)],_0x4289e1=(0x0,e[_0x21375c(0x4a9)])({'contentHeight':_0x2b9545,'verticalAlign':_0x4ad8bf,'viewportHeight':_0x4e7107[_0x21375c(0x49b)]});_0x2bb879['updateDocumentStyle']({'pageSize':{'width':_0x2bd631===!0x1?_0x4e7107[_0x21375c(0x49b)]:_0x4e7107[_0x21375c(0x322)],'height':_0x4289e1[_0x21375c(0x47c)]}}),_0x2bb879[_0x21375c(0x1cf)]({'t':_0x4289e1[_0x21375c(0x3eb)]}),_0x41596a[_0x21375c(0x2c8)]();let _0x25636b=new c[(_0x21375c(0x3de))]('shape-text-'+this[_0x21375c(0x294)],_0x41596a,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x25636b[_0x21375c(0x38e)](_0x4e7107[_0x21375c(0x322)],_0x4289e1[_0x21375c(0x47c)]),_0x5b92c8[_0x21375c(0x1d8)](),_0x5b92c8[_0x21375c(0x36d)](_0x4e7107[_0x21375c(0x174)],_0x4e7107[_0x21375c(0x4ad)]),_0x33ab41[_0x21375c(0x3fb)]&&(_0x5b92c8['beginPath'](),_0x5b92c8[_0x21375c(0x490)](0x0,_0x4289e1[_0x21375c(0x3e2)],_0x4e7107['width'],_0x4289e1[_0x21375c(0x20f)]),_0x5b92c8[_0x21375c(0x3fb)]()),_0x4289e1['contentVerticalOffset']&&_0x5b92c8['translateWithPrecision'](0x0,_0x4289e1[_0x21375c(0x329)]),_0x25636b['draw'](_0x5b92c8),_0x5b92c8[_0x21375c(0x4a1)](),_0x25636b[_0x21375c(0x169)](),_0x41596a[_0x21375c(0x169)](),_0x54022a[_0x21375c(0x169)](),_0x2bb879['dispose']();}['render'](_0x2f3af7,_0xd2470,_0x46b66c=!0x1){const _0x17e382=_0x46885f;if(!this[_0x17e382(0x399)])return this[_0x17e382(0x23f)](!0x1),this;let {width:_0x4a5b24,height:_0x4ca834,left:_0x31dd08,top:_0x54b8fe}=this,_0x441bd5=this['getRealBound']();if(_0x4a5b24=_0x441bd5['width'],_0x4ca834=_0x441bd5['height'],_0x31dd08=_0x441bd5[_0x17e382(0x174)],_0x54b8fe=_0x441bd5['top'],this[_0x17e382(0x1d4)](_0xd2470)){let {top:_0x5d631e,left:_0x2778e9,bottom:_0x29ea1f,right:_0x24db7d}=_0xd2470['viewBound'];if(_0x4a5b24+this['strokeWidth']+_0x31dd08<_0x2778e9||_0x24db7d<_0x31dd08||_0x4ca834+this['strokeWidth']+_0x54b8fe<_0x5d631e||_0x29ea1f<_0x54b8fe)return this;}let _0x224db9=_0x31dd08+_0x4a5b24/0x2,_0x123694=_0x54b8fe+_0x4ca834/0x2,_0x5c303d=this[_0x17e382(0x463)]['getMatrix']();if(this[_0x17e382(0x469)][_0x17e382(0x3b9)]){let _0x31852c=this[_0x17e382(0x181)](),_0x1652c9=new c[(_0x17e382(0x162))]();_0x1652c9[_0x17e382(0x3d3)]({..._0x31852c}),_0x5c303d=_0x1652c9[_0x17e382(0x28b)]();}return _0x2f3af7[_0x17e382(0x1d8)](),this[_0x17e382(0x469)][_0x17e382(0x269)][_0x17e382(0x3e3)]===!0x0||_0x2f3af7[_0x17e382(0x463)](_0x5c303d[0x0],_0x5c303d[0x1],_0x5c303d[0x2],_0x5c303d[0x3],_0x224db9,_0x123694),this[_0x17e382(0x407)](_0x2f3af7,_0xd2470,_0x4a5b24,_0x4ca834),_0x2f3af7['restore'](),this[_0x17e382(0x23f)](!0x1),this;}[_0x46885f(0x484)](_0x52d53c){const _0x28f74b=_0x46885f;let {left:_0x2df8f9,top:_0x2c90be,width:_0x207f7f,height:_0x756699}=this[_0x28f74b(0x175)](),_0x2ce624=this[_0x28f74b(0x463)][_0x28f74b(0x28b)](),_0x5928c5=_0x2df8f9+_0x207f7f/0x2,_0x4a8be8=_0x2c90be+_0x756699/0x2,_0x2f9cf6=new c[(_0x28f74b(0x162))]([_0x2ce624[0x0],_0x2ce624[0x1],_0x2ce624[0x2],_0x2ce624[0x3],_0x5928c5,_0x4a8be8]),_0x3876e6=this[_0x28f74b(0x430)]();return(this[_0x28f74b(0x242)]&&(_0x3876e6==null?void 0x0:_0x3876e6[_0x28f74b(0x3af)])===c['RENDER_CLASS_TYPE'][_0x28f74b(0x1d2)]?_0x3876e6[_0x28f74b(0x307)][_0x28f74b(0x467)](_0x2f9cf6):_0x2f9cf6)[_0x28f74b(0x187)]()[_0x28f74b(0x1bb)](_0x52d53c);}['isHit'](_0x100b61){const _0x50a20f=_0x46885f;let {left:_0x22ee40,top:_0x1ee4de,width:_0x409bd4,height:_0x18527b}=this[_0x50a20f(0x175)](),_0x938941=_0x22ee40+_0x409bd4/0x2,_0x2280aa=_0x1ee4de+_0x18527b/0x2,_0xfd7d1e=this[_0x50a20f(0x463)][_0x50a20f(0x28b)](),_0x801e0c=new c[(_0x50a20f(0x162))]([_0xfd7d1e[0x0],_0xfd7d1e[0x1],_0xfd7d1e[0x2],_0xfd7d1e[0x3],_0x938941,_0x2280aa]),_0x1ef207=this[_0x50a20f(0x430)](),_0x510709=(this[_0x50a20f(0x242)]&&(_0x1ef207==null?void 0x0:_0x1ef207[_0x50a20f(0x3af)])===c['RENDER_CLASS_TYPE']['GROUP']?_0x1ef207[_0x50a20f(0x307)][_0x50a20f(0x467)](_0x801e0c):_0x801e0c)['invert']()[_0x50a20f(0x1bb)](_0x100b61),_0x4f78cf=_0x409bd4/0x2,_0x31e8c4=_0x18527b/0x2,_0x45ce1d=this[_0x50a20f(0x469)][_0x50a20f(0x269)];return _0x45ce1d&&_0x45ce1d[_0x50a20f(0x179)]()?_0x45ce1d[_0x50a20f(0x1fd)](_0x510709['x'],_0x510709['y'],_0x409bd4,_0x18527b):_0x510709['x']>=-_0x4f78cf-this[_0x50a20f(0x342)]/0x2&&_0x510709['x']<=_0x4f78cf+this[_0x50a20f(0x342)]/0x2&&_0x510709['y']>=-_0x31e8c4-this[_0x50a20f(0x342)]/0x2&&_0x510709['y']<=_0x31e8c4+this[_0x50a20f(0x342)]/0x2;}[_0x46885f(0x169)](){const _0x34c1ae=_0x46885f;this['_formulaAnimation'][_0x34c1ae(0x169)](),this[_0x34c1ae(0x469)][_0x34c1ae(0x269)]=null,super[_0x34c1ae(0x169)]();}},D=class extends c['Shape']{constructor(_0x1543e5,_0x43a80d){const _0x2a63a5=_0x46885f;super(_0x1543e5,_0x43a80d),T(this,_0x2a63a5(0x1a6),null),T(this,'_adjName',null),T(this,_0x2a63a5(0x296),null),T(this,_0x2a63a5(0x40a),null),_0x43a80d&&this[_0x2a63a5(0x222)](_0x43a80d);}['getDrawingSearch'](){const _0xd57ac=_0x46885f;return{'unitId':this[_0xd57ac(0x296)],'subUnitId':this[_0xd57ac(0x40a)],'drawingId':this[_0xd57ac(0x1a6)]};}[_0x46885f(0x222)](_0x4a20c1){const _0x104c9b=_0x46885f;_0x4a20c1[_0x104c9b(0x487)]!==void 0x0&&(this[_0x104c9b(0x1a6)]=_0x4a20c1[_0x104c9b(0x487)]),_0x4a20c1[_0x104c9b(0x26a)]!==void 0x0&&(this[_0x104c9b(0x1e5)]=_0x4a20c1[_0x104c9b(0x26a)]),_0x4a20c1['unitId']!==void 0x0&&(this['_unitId']=_0x4a20c1[_0x104c9b(0x332)]),_0x4a20c1[_0x104c9b(0x46b)]!==void 0x0&&(this['_subUnitId']=_0x4a20c1[_0x104c9b(0x46b)]),this[_0x104c9b(0x414)]({'width':_0x4a20c1[_0x104c9b(0x322)],'height':_0x4a20c1[_0x104c9b(0x49b)]});}['_draw'](_0x26069a){const _0x49adef=_0x46885f;c[_0x49adef(0x462)]['drawWith'](_0x26069a,{'radius':n[_0x49adef(0x2b0)][_0x49adef(0x2a9)],'fill':n[_0x49adef(0x2b0)][_0x49adef(0x406)],'stroke':n[_0x49adef(0x2b0)][_0x49adef(0x20c)],'strokeWidth':0x1,'evented':!0x0});}};function O(_0x11eff2,_0x496b09){return function(_0x5c76ea,_0x38dc2f){_0x496b09(_0x5c76ea,_0x38dc2f,_0x11eff2);};}function k(_0xaba92a,_0x21f559,_0x109606,_0x4975dd){const _0x3aa676=_0x46885f;var _0x4ba058=arguments[_0x3aa676(0x453)],_0x473250=_0x4ba058<0x3?_0x21f559:_0x4975dd===null?_0x4975dd=Object[_0x3aa676(0x2f1)](_0x21f559,_0x109606):_0x4975dd,_0x423982;if(typeof Reflect==_0x3aa676(0x197)&&typeof Reflect[_0x3aa676(0x306)]==_0x3aa676(0x461))_0x473250=Reflect[_0x3aa676(0x306)](_0xaba92a,_0x21f559,_0x109606,_0x4975dd);else{for(var _0x2def25=_0xaba92a[_0x3aa676(0x453)]-0x1;_0x2def25>=0x0;_0x2def25--)(_0x423982=_0xaba92a[_0x2def25])&&(_0x473250=(_0x4ba058<0x3?_0x423982(_0x473250):_0x4ba058>0x3?_0x423982(_0x21f559,_0x109606,_0x473250):_0x423982(_0x21f559,_0x109606))||_0x473250);}return _0x4ba058>0x3&&_0x473250&&Object[_0x3aa676(0x32e)](_0x21f559,_0x109606,_0x473250),_0x473250;}let A=class extends a[_0x46885f(0x468)]{constructor(_0x5bd904,_0x594831,_0x3e0c3a,_0x1a794c,_0x2c4862,_0x44022f){const _0x3e621e=_0x46885f;super(),this[_0x3e621e(0x22e)]=_0x5bd904,this[_0x3e621e(0x464)]=_0x594831,this[_0x3e621e(0x1bf)]=_0x3e0c3a,this[_0x3e621e(0x408)]=_0x1a794c,this[_0x3e621e(0x2cb)]=_0x2c4862,this[_0x3e621e(0x480)]=_0x44022f,T(this,_0x3e621e(0x446),new Map()),this[_0x3e621e(0x428)](this[_0x3e621e(0x480)]['presentationChanged$'][_0x3e621e(0x494)](_0x14e5c7=>{const _0x5a6db1=_0x3e621e;var _0x1b4ae6;(_0x1b4ae6=this[_0x5a6db1(0x446)][_0x5a6db1(0x3a3)](this[_0x5a6db1(0x3e8)](_0x14e5c7[_0x5a6db1(0x332)],_0x14e5c7['subUnitId'],_0x14e5c7[_0x5a6db1(0x487)])))==null||_0x1b4ae6[_0x5a6db1(0x185)](_0x574f3c=>_0x574f3c[_0x5a6db1(0x1ee)](_0x14e5c7['presentation'],_0x14e5c7[_0x5a6db1(0x30f)]));})),this[_0x3e621e(0x428)](this[_0x3e621e(0x22e)][_0x3e621e(0x436)]['subscribe'](_0xeed701=>{_0xeed701['forEach'](_0x3570ad=>{const _0x21b3d8=_0x2769;this[_0x21b3d8(0x480)][_0x21b3d8(0x1b8)]({'unitId':_0x3570ad['unitId'],'subUnitId':_0x3570ad['subUnitId'],'shapeId':_0x3570ad[_0x21b3d8(0x313)]}),this[_0x21b3d8(0x446)][_0x21b3d8(0x2a7)](this[_0x21b3d8(0x3e8)](_0x3570ad['unitId'],_0x3570ad[_0x21b3d8(0x46b)],_0x3570ad['drawingId']));});}));}[_0x46885f(0x448)](_0x16d163,_0x59e708,_0xe97b92){const _0x43210c=_0x46885f;let {transform:_0x5a8bd4,drawingType:_0x4f1352,srcRect:_0x59efb4,prstGeom:_0x17a6ab,groupId:_0x33aa3e,unitId:_0x20aefa,subUnitId:_0x3199c9,drawingId:_0x709784,isMultiTransform:_0x55e1ec,transforms:_0x1fab69,hidden:_0x249454,selectable:_0x240ffa}=_0x16d163;if(_0x4f1352!==a[_0x43210c(0x196)][_0x43210c(0x288)]||!this['_drawingManagerService'][_0x43210c(0x186)]()||_0x5a8bd4==null)return;let _0x1f14c9=this[_0x43210c(0x22e)][_0x43210c(0x3cc)](),_0x14108d=_0x55e1ec&&_0x1fab69?_0x1fab69:[_0x5a8bd4],_0x2caa5d=[];for(let _0x378b07 of _0x14108d){let {left:_0x250830,top:_0x57eeb7,width:_0x60fe71,height:_0x5b6e38,angle:_0x599132,flipX:_0x4664b8,flipY:_0x40bccd,skewX:_0x539eab,skewY:_0x121efa}=_0x378b07,_0x562815=_0x14108d[_0x43210c(0x188)](_0x378b07),_0x455487=(0x0,s[_0x43210c(0x3c7)])({'unitId':_0x20aefa,'subUnitId':_0x3199c9,'drawingId':_0x709784},_0x55e1ec?_0x562815:void 0x0),_0x5ee50d=_0x59e708[_0x43210c(0x3c8)](_0x455487);if(_0x5ee50d!=null){let _0x182062={'unitId':_0x20aefa,'subUnitId':_0x3199c9,'shapeId':_0x709784};_0x5ee50d instanceof E&&this['refreshFormulaPresentation'](_0x5ee50d,_0x182062),_0x5ee50d[_0x43210c(0x414)]({'left':_0x250830,'top':_0x57eeb7,'width':_0x60fe71,'height':_0x5b6e38,'angle':_0x599132,'flipX':_0x4664b8,'flipY':_0x40bccd,'skewX':_0x539eab,'skewY':_0x121efa});continue;}let _0x5f4976=this[_0x43210c(0x22e)][_0x43210c(0x2df)](_0x20aefa,_0x3199c9),_0xf23fdf=_0x5f4976[_0x43210c(0x188)](_0x709784);if(_0x59e708[_0x43210c(0x3c8)](_0x455487)||!this[_0x43210c(0x22e)]['getDrawingVisible']())continue;let _0x350ac2=this[_0x43210c(0x464)]['getShapeModel'](_0x20aefa,_0x3199c9,_0x709784);if(!_0x350ac2)continue;let _0x187cea=(0x0,n['isConnectorShape'])(_0x350ac2[_0x43210c(0x449)]())?{...e[_0x43210c(0x224)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x43210c(0x224)],_0x1517b3=_0x350ac2[_0x43210c(0x279)]()[_0x43210c(0x1d1)],_0x16f3cc={'unitId':_0x20aefa,'subUnitId':_0x3199c9,'shapeId':_0x709784};_0x1517b3&&this[_0x43210c(0x480)][_0x43210c(0x3ec)](_0x16f3cc,_0x1517b3);let _0xc8b0e2=new E(_0x455487,{..._0x378b07,'zIndex':_0xf23fdf===-0x1?_0x5f4976['length']-0x1:_0xf23fdf,'shapeModel':_0x350ac2,'localeService':this[_0x43210c(0x1bf)],'shapeId':_0x709784,'unitId':_0x20aefa,'subUnitId':_0x3199c9,'visible':_0x249454!==!0x0,'evented':_0x240ffa!==!0x1,'formulaPresentation':_0x1517b3?this[_0x43210c(0x480)]['getPresentation'](_0x16f3cc):void 0x0,'animateFormulaPresentation':(_0x1517b3==null?void 0x0:_0x1517b3[_0x43210c(0x30f)])!==!0x1,'transformerConfig':_0x187cea});if(_0x1517b3){let _0x1bf615=this['_formulaKey'](_0x20aefa,_0x3199c9,_0x709784),_0x36ec8f=this[_0x43210c(0x446)]['get'](_0x1bf615)??new Set();_0x36ec8f[_0x43210c(0x36a)](_0xc8b0e2),this[_0x43210c(0x446)][_0x43210c(0x422)](_0x1bf615,_0x36ec8f);}_0x59e708['addObject'](_0xc8b0e2,c[_0x43210c(0x481)]),_0x1f14c9&&_0x59e708[_0x43210c(0x398)](_0xc8b0e2),_0x33aa3e&&(0x0,d[_0x43210c(0x2f9)])({'drawingId':_0x33aa3e,'unitId':_0x20aefa,'subUnitId':_0x3199c9},_0xc8b0e2,_0x59e708,this['_drawingManagerService']),_0x17a6ab!=null&&_0xc8b0e2['setPrstGeom'](_0x17a6ab),_0x59efb4!=null&&_0xc8b0e2['setSrcRect'](_0x59efb4);let _0x3fb94d=this[_0x43210c(0x3c3)](_0xc8b0e2,_0x350ac2['getShapeData']());if(_0x3fb94d){var _0x44c724;_0xe97b92==null||(_0x44c724=_0xe97b92[_0x43210c(0x19a)])==null||_0x44c724[_0x43210c(0x36a)](_0x3fb94d);}_0x2caa5d[_0x43210c(0x18c)](_0xc8b0e2);}return _0x2caa5d;}['_formulaKey'](_0x78afde,_0x531a32,_0x49df23){return _0x78afde+'\x00'+_0x531a32+'\x00'+_0x49df23;}['refreshFormulaPresentation'](_0x1be26b,_0x168b91){const _0x47623e=_0x46885f;let _0x31ab1b=this[_0x47623e(0x464)][_0x47623e(0x387)](_0x168b91[_0x47623e(0x332)],_0x168b91['subUnitId'],_0x168b91['shapeId']),_0x5bbe65=_0x31ab1b==null?void 0x0:_0x31ab1b[_0x47623e(0x279)]()[_0x47623e(0x1d1)],_0x3037c6=this[_0x47623e(0x3e8)](_0x168b91[_0x47623e(0x332)],_0x168b91['subUnitId'],_0x168b91[_0x47623e(0x487)]);if(_0x5bbe65){this[_0x47623e(0x480)][_0x47623e(0x3ec)](_0x168b91,_0x5bbe65);let _0x59e256=this[_0x47623e(0x446)][_0x47623e(0x3a3)](_0x3037c6)??new Set();_0x59e256[_0x47623e(0x36a)](_0x1be26b),this[_0x47623e(0x446)][_0x47623e(0x422)](_0x3037c6,_0x59e256);}else{var _0x16bb56;this['_shapeFormulaService'][_0x47623e(0x1b8)](_0x168b91),(_0x16bb56=this[_0x47623e(0x446)][_0x47623e(0x3a3)](_0x3037c6))==null||_0x16bb56['delete'](_0x1be26b);}_0x1be26b['setFormulaPresentation'](_0x5bbe65?this[_0x47623e(0x480)]['getPresentation'](_0x168b91):void 0x0,(_0x5bbe65==null?void 0x0:_0x5bbe65[_0x47623e(0x30f)])!==!0x1);}[_0x46885f(0x383)](_0x5963ee){const _0x30f118=_0x46885f;let _0x48f63a=_0x5963ee[_0x30f118(0x269)][_0x30f118(0x279)](),_0x587495=_0x48f63a[_0x30f118(0x435)];if(!_0x587495||_0x587495[_0x30f118(0x1bc)]!==n[_0x30f118(0x1b7)]['PictureFill']||!_0x587495[_0x30f118(0x1e4)]){_0x5963ee[_0x30f118(0x4ab)](void 0x0);return;}this[_0x30f118(0x3c3)](_0x5963ee,_0x48f63a);}[_0x46885f(0x3c3)](_0x4c6254,_0x5beb18){const _0x55aecd=_0x46885f;let _0x9eb883=_0x5beb18[_0x55aecd(0x435)];if(!_0x9eb883||_0x9eb883[_0x55aecd(0x1bc)]!==n[_0x55aecd(0x1b7)][_0x55aecd(0x367)]||!_0x9eb883[_0x55aecd(0x1e4)])return;let _0x2e8c37=_0x9eb883[_0x55aecd(0x1e4)],_0x24d672=_0x9eb883[_0x55aecd(0x297)]??n[_0x55aecd(0x1eb)][_0x55aecd(0x34c)],_0x9002db=this[_0x55aecd(0x408)][_0x55aecd(0x431)](_0x2e8c37,_0x24d672);if(_0x9002db){_0x4c6254['setFillImage'](_0x9002db);return;}return this[_0x55aecd(0x391)](_0x4c6254,_0x2e8c37,_0x24d672);}async[_0x46885f(0x391)](_0x58415d,_0x2ba4a8,_0xcf2f0a){const _0x5452b0=_0x46885f;let _0x25095f;try{if(_0xcf2f0a===n[_0x5452b0(0x1eb)][_0x5452b0(0x2f8)])_0x25095f=await this[_0x5452b0(0x408)][_0x5452b0(0x1e1)](_0x2ba4a8);else{if(_0xcf2f0a===n[_0x5452b0(0x1eb)][_0x5452b0(0x34c)])try{_0x25095f=await this[_0x5452b0(0x2cb)]['getImage'](_0x2ba4a8);}catch{_0x25095f=_0x2ba4a8;}else _0x25095f=_0x2ba4a8;}}catch(_0x1db298){console[_0x5452b0(0x24c)](_0x5452b0(0x348),_0x1db298);return;}await new Promise(_0x58259a=>{const _0x28ea2c=_0x5452b0;let _0x4edf85=new window[(_0x28ea2c(0x321))]();_0x4edf85[_0x28ea2c(0x1c6)]=()=>{const _0x5d81aa=_0x28ea2c;this[_0x5d81aa(0x408)]['addImageSourceCache'](_0x2ba4a8,_0xcf2f0a,_0x4edf85),_0x58415d['setFillImage'](_0x4edf85),_0x58259a();},_0x4edf85['onerror']=()=>{const _0x110ef7=_0x28ea2c;console['error'](_0x110ef7(0x28a),_0x2ba4a8),_0x58259a();},_0x4edf85[_0x28ea2c(0x251)]=_0x25095f;});}};A=k([O(0x0,s[_0x46885f(0x19c)]),O(0x1,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x2a4)])),O(0x3,a[_0x46885f(0x344)]),O(0x4,a[_0x46885f(0x471)]),O(0x5,(0x0,a[_0x46885f(0x41b)])(r[_0x46885f(0x2e0)]))],A);let j=class extends a['Disposable']{constructor(_0x11fe3d,_0x1804b9,_0x241454,_0x55edd9,_0x2888c9,_0x9b9d37){const _0x218d3e=_0x46885f;super(),this[_0x218d3e(0x22e)]=_0x11fe3d,this['_sheetsShapeService']=_0x1804b9,this['_renderManagerService']=_0x241454,this[_0x218d3e(0x2c9)]=_0x55edd9,this['_univerInstanceService']=_0x2888c9,this['_commandService']=_0x9b9d37,T(this,'_activeShapeId',null),T(this,_0x218d3e(0x296),null),T(this,'_subUnitId',null),T(this,'_activeShapeAdjustPointList',void 0x0),T(this,'_shapes',[]),T(this,'_baseShapeLeft',0x0),T(this,_0x218d3e(0x36b),0x0),T(this,_0x218d3e(0x207),0x0),T(this,'_baseShapeHeight',0x0),T(this,_0x218d3e(0x1bd),!0x1),T(this,_0x218d3e(0x18f),void 0x0),T(this,_0x218d3e(0x173),void 0x0),T(this,_0x218d3e(0x470),void 0x0),T(this,'_adjHandlerPointerUp',void 0x0),T(this,_0x218d3e(0x42d),!0x1),this[_0x218d3e(0x28c)](),this['_registerDrawingMoveHandler']();}[_0x46885f(0x184)](_0x2ffaca,_0x29ad91,_0x4cadf2){const _0x3d05e8=_0x46885f;let _0x1aa419=this[_0x3d05e8(0x464)]['getShapeModel'](_0x2ffaca,_0x29ad91,_0x4cadf2);if(_0x1aa419)return _0x1aa419['getDrawingPoints']();}[_0x46885f(0x24e)](){this['_clearShapeAdjustControls']();}[_0x46885f(0x1be)](){const _0x5a81ae=_0x46885f;this[_0x5a81ae(0x30c)](!0x0);}['setShouldShowAdjust'](_0x1ae8fc){const _0x273408=_0x46885f;this[_0x273408(0x42d)]=_0x1ae8fc;}[_0x46885f(0x1d3)](_0x3aff0d,_0x5a6573,_0x4ba115,_0x366cd7){const _0xd0b76d=_0x46885f;let _0x1bdaf3=this[_0xd0b76d(0x464)][_0xd0b76d(0x387)](_0x3aff0d,_0x5a6573,_0x4ba115);if(_0x1bdaf3)return _0x1bdaf3[_0xd0b76d(0x23a)](_0x366cd7);}['_createShapeAdjustControls'](_0x2e07f2=!0x1){const _0x1536c7=_0x46885f;if(this[_0x1536c7(0x296)]===null||this[_0x1536c7(0x40a)]===null||this[_0x1536c7(0x43c)]===null)return;let _0x3fea54=this[_0x1536c7(0x49a)][_0x1536c7(0x3c2)](this[_0x1536c7(0x296)]);if(!_0x3fea54||!_0x3fea54['with'](l[_0x1536c7(0x166)])[_0x1536c7(0x3ab)]())return;let {scene:_0x34ccb8}=_0x3fea54,_0x2f68d9={'unitId':this[_0x1536c7(0x296)],'subUnitId':this[_0x1536c7(0x40a)],'drawingId':this[_0x1536c7(0x43c)]},_0x4678d9=this[_0x1536c7(0x22e)][_0x1536c7(0x31f)](_0x2f68d9),{transform:_0x1ecc68}=_0x4678d9;if(!_0x1ecc68||_0x4678d9['drawingType']!==a[_0x1536c7(0x196)][_0x1536c7(0x288)])return;let {left:_0x2c2ca6,top:_0x46bc8c,width:_0x4445cc,height:_0x111c11,flipX:_0x579324,flipY:_0x4cfc2b,angle:_0x162f55=0x0}=_0x1ecc68;if(_0x2c2ca6===void 0x0||_0x46bc8c===void 0x0)return;if(_0x2e07f2){let _0x5e2047=this[_0x1536c7(0x464)][_0x1536c7(0x387)](this[_0x1536c7(0x296)],this['_subUnitId'],this[_0x1536c7(0x43c)]);_0x5e2047==null||_0x5e2047[_0x1536c7(0x3f7)]({'width':_0x4445cc??0x0,'height':_0x111c11??0x0}),this[_0x1536c7(0x234)]=_0x5e2047==null?void 0x0:_0x5e2047[_0x1536c7(0x2a1)]();}let _0x27b974=this[_0x1536c7(0x234)];for(let _0x360cc7=0x0;_0x360cc7<_0x27b974[_0x1536c7(0x453)];_0x360cc7++){let _0x192e2d=_0x27b974[_0x360cc7],_0x37babf=_0x192e2d['x'],_0x2ce8f2=_0x192e2d['y'];if(_0x579324&&(_0x37babf=(_0x4445cc||0x0)-_0x37babf),_0x4cfc2b&&(_0x2ce8f2=(_0x111c11||0x0)-_0x2ce8f2),_0x162f55!==0x0){let _0x378748=(_0x4445cc||0x0)/0x2,_0x128039=(_0x111c11||0x0)/0x2,_0x4e9d63=_0x162f55*Math['PI']/0xb4,_0x5a1497=Math[_0x1536c7(0x2ed)](_0x4e9d63),_0x39f780=Math['sin'](_0x4e9d63),_0x351dc3=_0x37babf-_0x378748,_0x56ad8f=_0x2ce8f2-_0x128039;_0x37babf=_0x378748+(_0x351dc3*_0x5a1497-_0x56ad8f*_0x39f780),_0x2ce8f2=_0x128039+(_0x351dc3*_0x39f780+_0x56ad8f*_0x5a1497);}let _0x29898e={'x':_0x37babf,'y':_0x2ce8f2,'adjName':_0x192e2d['adjName']};this[_0x1536c7(0x272)](_0x34ccb8,_0x29898e,_0x29898e['adjName'],_0x2c2ca6,_0x46bc8c,this[_0x1536c7(0x296)],this[_0x1536c7(0x40a)]);}}['_updateShapeAdjustControls'](_0x394cb6=!0x1){const _0x2916e0=_0x46885f;_0x394cb6&&(this[_0x2916e0(0x433)](),this['_createShapeAdjustControls'](_0x394cb6));}[_0x46885f(0x272)](_0x2c78df,_0x9a1724,_0x46857e,_0x55df7d,_0x73e685,_0x1347d7,_0x608ea4){const _0x1bbbc3=_0x46885f;if(!this[_0x1bbbc3(0x43c)])return;let _0x2c2eda=_0x2c78df[_0x1bbbc3(0x3c8)](_0x1bbbc3(0x493)+this[_0x1bbbc3(0x43c)]+'-'+_0x46857e);if(_0x2c2eda){_0x2c2eda[_0x1bbbc3(0x414)]({'left':_0x9a1724['x']+_0x55df7d-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)],'top':_0x9a1724['y']+_0x73e685-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)]});return;}let _0x4e82ae={'left':_0x9a1724['x']+_0x55df7d-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)],'top':_0x9a1724['y']+_0x73e685-n[_0x1bbbc3(0x2b0)][_0x1bbbc3(0x2a9)],'adjName':_0x46857e,'shapeId':this[_0x1bbbc3(0x43c)],'unitId':_0x1347d7,'subUnitId':_0x608ea4,'width':n['ShapeDefaultConfig'][_0x1bbbc3(0x2a9)]+0x8,'height':n['ShapeDefaultConfig'][_0x1bbbc3(0x2a9)]+0x8,'zIndex':c[_0x1bbbc3(0x481)]+0x1,'evented':!0x0},_0x40af92=new D(_0x1bbbc3(0x493)+this[_0x1bbbc3(0x43c)]+'-'+_0x46857e,_0x4e82ae);this['_shapes'][_0x1bbbc3(0x18c)](_0x40af92),this[_0x1bbbc3(0x3a5)](_0x40af92,_0x2c78df,_0x46857e),_0x2c78df[_0x1bbbc3(0x182)](_0x40af92,c[_0x1bbbc3(0x481)]+0x1);}[_0x46885f(0x433)](){const _0x403bef=_0x46885f;this[_0x403bef(0x32d)][_0x403bef(0x453)]!==0x0&&(this[_0x403bef(0x32d)][_0x403bef(0x185)](_0x3675c7=>{const _0x587d71=_0x403bef;_0x3675c7[_0x587d71(0x169)]();}),this[_0x403bef(0x32d)]=[]);}[_0x46885f(0x1a9)](){const _0x4876b1=_0x46885f;this[_0x4876b1(0x472)]();}['_getScrollInfo'](_0x26e98e,_0x57c1e7){const _0x575b04=_0x46885f;var _0x2c94f9;let _0x421f4a={'x':0x0,'y':0x0};if(!_0x26e98e||!_0x57c1e7)return _0x421f4a;let _0x109382=this[_0x575b04(0x49a)][_0x575b04(0x3c2)](_0x26e98e);if(!_0x109382||!_0x109382[_0x575b04(0x42e)](l['SheetSkeletonManagerService'])[_0x575b04(0x478)](_0x57c1e7))return _0x421f4a;let _0x1ccc45=_0x109382[_0x575b04(0x42e)](l[_0x575b04(0x326)]),_0x2e6140=_0x1ccc45==null?void 0x0:_0x1ccc45[_0x575b04(0x208)]();if(!_0x2e6140)return _0x421f4a;let _0x2241e7=(_0x2c94f9=this[_0x575b04(0x1e6)][_0x575b04(0x47d)](_0x26e98e))==null?void 0x0:_0x2c94f9['getSheetBySheetId'](_0x57c1e7);if(!_0x2241e7)return _0x421f4a;let _0x28f195=(0x0,l[_0x575b04(0x1b0)])(_0x2e6140[_0x575b04(0x381)],_0x2e6140[_0x575b04(0x221)],_0x109382[_0x575b04(0x1c8)],_0x2241e7);return _0x28f195?{'x':_0x28f195[_0x575b04(0x334)],'y':_0x28f195['viewportScrollY']}:_0x421f4a;}[_0x46885f(0x19e)](_0xb019df,_0x9667ac){const _0x317621=_0x46885f;var _0x51bf41;let _0x2ad806=(_0x51bf41=this[_0x317621(0x1e6)][_0x317621(0x47d)](_0xb019df))==null?void 0x0:_0x51bf41[_0x317621(0x231)](_0x9667ac);return(_0x2ad806==null?void 0x0:_0x2ad806[_0x317621(0x3cf)]())??0x1;}[_0x46885f(0x3a5)](_0x23098d,_0x5c73d7,_0xed16c){const _0x4fa4d7=_0x46885f;this['disposeWithMe']((0x0,a[_0x4fa4d7(0x415)])(_0x23098d[_0x4fa4d7(0x3fa)][_0x4fa4d7(0x440)]((_0x57a1b5,_0x5e1a5d)=>{const _0xc56950=_0x4fa4d7;var _0x1825f4,_0x35eef6,_0x15360c,_0x39e7ec;let _0x4fc282=_0x23098d[_0xc56950(0x4ac)]();this[_0xc56950(0x18f)]=this[_0xc56950(0x1d3)](_0x4fc282[_0xc56950(0x332)],_0x4fc282[_0xc56950(0x46b)],_0x4fc282[_0xc56950(0x313)],_0xed16c),this[_0xc56950(0x173)]=this[_0xc56950(0x464)]['getShapeModel'](_0x4fc282[_0xc56950(0x332)],_0x4fc282[_0xc56950(0x46b)],_0x4fc282[_0xc56950(0x313)]);let _0x39addc=this[_0xc56950(0x22e)][_0xc56950(0x31f)]({'unitId':this[_0xc56950(0x296)],'subUnitId':this[_0xc56950(0x40a)],'drawingId':this[_0xc56950(0x43c)]}),{transform:_0x23c91c}=_0x39addc;if(_0x23c91c){let {left:_0xd4ab34,top:_0x57cc8b,width:_0x3d8e86,height:_0x255fd3}=_0x23c91c;this[_0xc56950(0x2d9)]=_0xd4ab34||0x0,this[_0xc56950(0x36b)]=_0x57cc8b||0x0,this['_baseShapeWidth']=_0x3d8e86||0x0,this['_baseShapeHeight']=_0x255fd3||0x0;}let _0x3bee73=!!((_0x1825f4=_0x39addc[_0xc56950(0x463)])!=null&&_0x1825f4['flipX']),_0x5c77a1=!!((_0x35eef6=_0x39addc[_0xc56950(0x463)])!=null&&_0x35eef6[_0xc56950(0x243)]),_0x5d052a=((_0x15360c=_0x39addc[_0xc56950(0x463)])==null?void 0x0:_0x15360c[_0xc56950(0x3f4)])||0x0;this[_0xc56950(0x1bd)]=!0x0,_0x5c73d7[_0xc56950(0x22f)]();let _0x19a2f3={...((_0x39e7ec=this['_activeAdjustInfo'])==null?void 0x0:_0x39e7ec[_0xc56950(0x2e2)])??{}};this[_0xc56950(0x470)]=_0x5c73d7['onPointerMove$']['subscribeEvent']((_0x281408,_0xb5ae8a)=>{const _0x46878d=_0xc56950;if(!this[_0x46878d(0x1bd)])return;let {offsetX:_0x379a42,offsetY:_0x3c5973}=_0x281408,_0x5789be=this[_0x46878d(0x18f)];if(this[_0x46878d(0x173)]&&_0x5789be){_0x5c73d7[_0x46878d(0x22f)](),_0x5c73d7[_0x46878d(0x447)](c['CURSOR_TYPE'][_0x46878d(0x2e6)]);let _0x138be5={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x262914=this[_0x46878d(0x29f)](this[_0x46878d(0x296)],this['_subUnitId']),_0x3c36de=this[_0x46878d(0x19e)](this['_unitId'],this[_0x46878d(0x40a)]),_0x5a5c89=_0x379a42/_0x3c36de+_0x262914['x']-this[_0x46878d(0x2d9)],_0x50e295=_0x3c5973/_0x3c36de+_0x262914['y']-this['_baseShapeTop'];if(_0x5d052a!==0x0){let _0xab6ea9=this[_0x46878d(0x207)]/0x2,_0xbc0f9c=this[_0x46878d(0x31d)]/0x2,_0x3869eb=_0x5d052a*Math['PI']/0xb4,_0x1eccd6=Math[_0x46878d(0x2ed)](_0x3869eb),_0x30a36f=Math['sin'](_0x3869eb),_0x26d818=_0x5a5c89-_0xab6ea9,_0x15fcd8=_0x50e295-_0xbc0f9c;_0x5a5c89=_0xab6ea9+(_0x26d818*_0x1eccd6+_0x15fcd8*_0x30a36f),_0x50e295=_0xbc0f9c+(-_0x26d818*_0x30a36f+_0x15fcd8*_0x1eccd6);}_0x3bee73&&(_0x5a5c89=this[_0x46878d(0x207)]-_0x5a5c89),_0x5c77a1&&(_0x50e295=this[_0x46878d(0x31d)]-_0x50e295);let _0x1fb5f5={'x':_0x5a5c89,'y':_0x50e295},_0x5ec9ea=this[_0x46878d(0x173)]['calcAdjValues'](_0x138be5,_0x1fb5f5,_0x5789be,_0x3bee73,_0x5c77a1);if(Object[_0x46878d(0x460)](_0x5ec9ea)[_0x46878d(0x453)]===0x0)return;for(let [_0x12e636,_0x2bbaaf]of Object[_0x46878d(0x3c5)](_0x5ec9ea))this[_0x46878d(0x173)][_0x46878d(0x3f5)](_0x12e636,_0x2bbaaf);this[_0x46878d(0x173)][_0x46878d(0x3f7)]({'width':this['_baseShapeWidth'],'height':this[_0x46878d(0x31d)]});let _0x1bbe33=this[_0x46878d(0x22e)][_0x46878d(0x31f)]({'unitId':_0x4fc282[_0x46878d(0x332)],'subUnitId':_0x4fc282[_0x46878d(0x46b)],'drawingId':_0x4fc282[_0x46878d(0x313)]});_0x1bbe33&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x1bbe33,_0x5c73d7),this[_0x46878d(0x234)]=this[_0x46878d(0x184)](_0x4fc282[_0x46878d(0x332)],_0x4fc282['subUnitId'],_0x4fc282[_0x46878d(0x313)]),this[_0x46878d(0x1a9)]());}_0xb5ae8a[_0x46878d(0x34e)]();}),this[_0xc56950(0x340)]=_0x5c73d7[_0xc56950(0x1f3)]['subscribeEvent']((_0x5976fd,_0x2aa463)=>{const _0x16009e=_0xc56950;this['_adjHandlerPointerMove'][_0x16009e(0x46a)](),this[_0x16009e(0x340)][_0x16009e(0x46a)](),_0x5c73d7['resetCursor']();let _0x34fffe=this[_0x16009e(0x18f)];if(_0x34fffe){let _0x4e03e3=_0x4fc282[_0x16009e(0x332)],_0x26f8ab=_0x4fc282[_0x16009e(0x46b)],_0x56e141=_0x4fc282[_0x16009e(0x313)],_0x1eca7a={};for(let _0x4b5f2c of Object['keys'](_0x34fffe[_0x16009e(0x2e2)])){var _0x488688;let _0x586ab3=(_0x488688=this[_0x16009e(0x173)])==null?void 0x0:_0x488688[_0x16009e(0x2d8)](_0x4b5f2c);_0x586ab3!==void 0x0&&(_0x1eca7a[_0x4b5f2c]=_0x586ab3);}Object[_0x16009e(0x460)](_0x1eca7a)[_0x16009e(0x453)]>0x0&&S(this['_commandService'],_0x4e03e3,_0x26f8ab,_0x56e141,{'oldShapeData':{'adjustValues':_0x19a2f3}},{'adjustValues':_0x1eca7a});}this[_0x16009e(0x18f)]=void 0x0,this[_0x16009e(0x173)]=void 0x0,this[_0x16009e(0x1bd)]=!0x1,_0x2aa463[_0x16009e(0x34e)](),_0x5c73d7[_0x16009e(0x37b)]();}),_0x5e1a5d['stopPropagation']();})));}[_0x46885f(0x1ef)](){const _0xa7090c=_0x46885f;let _0x14402b=this[_0xa7090c(0x1e6)][_0xa7090c(0x360)](a[_0xa7090c(0x267)]['UNIVER_SHEET']);this['disposeWithMe'](_0x14402b[_0xa7090c(0x24b)]((0x0,u[_0xa7090c(0x3b5)])(_0x3caec8=>_0x3caec8?_0x3caec8[_0xa7090c(0x2c7)][_0xa7090c(0x24b)]((0x0,u['switchMap'])(_0x5ca408=>{const _0x3185b9=_0xa7090c;if(!_0x5ca408)return u[_0x3185b9(0x456)];let _0x3cfe3f=_0x3caec8[_0x3185b9(0x3c4)](),_0x469bb3=this['_renderManagerService'][_0x3185b9(0x3c2)](_0x3cfe3f),_0x9a49f6=_0x469bb3==null?void 0x0:_0x469bb3[_0x3185b9(0x1c8)];return _0x9a49f6?(0x0,u['of'])(_0x9a49f6):u['EMPTY'];})):u[_0xa7090c(0x456)]))['subscribe'](_0x3979d9=>{const _0x3656ee=_0xa7090c;let _0x176def=_0x3979d9[_0x3656ee(0x40d)]();this[_0x3656ee(0x428)](_0x3979d9[_0x3656ee(0x30b)]['subscribeEvent'](()=>{const _0x598fca=_0x3656ee;this[_0x598fca(0x42d)];})),this['disposeWithMe'](_0x176def[_0x3656ee(0x46e)]['subscribe'](_0x471f4e=>{const _0x55962c=_0x3656ee;let {objects:_0x2b1e33}=_0x471f4e;this[_0x55962c(0x472)](),_0x2b1e33!==null&&_0x2b1e33['size']===0x1&&_0x2b1e33['values']()[_0x55962c(0x349)]()[_0x55962c(0x44b)]instanceof E&&this[_0x55962c(0x361)](!0x0);})),this[_0x3656ee(0x428)](_0x176def[_0x3656ee(0x38f)][_0x3656ee(0x494)](()=>{const _0x244582=_0x3656ee;this[_0x244582(0x42d)]&&this['_clearShapeAdjustControls']();})),this[_0x3656ee(0x428)](_0x3979d9[_0x3656ee(0x1f3)][_0x3656ee(0x440)](()=>{const _0x45dfe3=_0x3656ee;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x45dfe3(0x361)](!0x1),this[_0x45dfe3(0x472)]());})),this[_0x3656ee(0x428)](_0x176def['changeEnd$'][_0x3656ee(0x494)](()=>{const _0x782f9a=_0x3656ee;this['_unitId']&&this[_0x782f9a(0x40a)]&&this[_0x782f9a(0x43c)]&&this[_0x782f9a(0x22e)][_0x782f9a(0x31f)]({'unitId':this[_0x782f9a(0x296)],'subUnitId':this[_0x782f9a(0x40a)],'drawingId':this['_activeShapeId']})&&(this['_activeShapeAdjustPointList']=this[_0x782f9a(0x184)](this[_0x782f9a(0x296)],this[_0x782f9a(0x40a)],this[_0x782f9a(0x43c)]),this['_updateAdjustControlPositions']());}));}));}[_0x46885f(0x28c)](){const _0x3583eb=_0x46885f;this['disposeWithMe'](this['_commandService'][_0x3583eb(0x2c6)](_0x19dd8d=>{const _0x2c7255=_0x3583eb;if(_0x19dd8d['id']!==i[_0x2c7255(0x44a)]['id'])return;let {unitId:_0x11438d,subUnitId:_0x4683b3,shapeId:_0x2d5dfc}=_0x19dd8d[_0x2c7255(0x211)];_0x11438d===this['_unitId']&&_0x4683b3===this[_0x2c7255(0x40a)]&&_0x2d5dfc===this[_0x2c7255(0x43c)]&&this[_0x2c7255(0x1be)]();})),this[_0x3583eb(0x428)](this[_0x3583eb(0x22e)][_0x3583eb(0x2d7)][_0x3583eb(0x494)](_0x548114=>{const _0x2a2b49=_0x3583eb;if(_0x548114['length']===0x1){let _0x406683=_0x548114[0x0];if(_0x406683[_0x2a2b49(0x218)]===a[_0x2a2b49(0x196)][_0x2a2b49(0x288)]&&this[_0x2a2b49(0x1e6)][_0x2a2b49(0x3d5)](_0x406683[_0x2a2b49(0x332)])===a[_0x2a2b49(0x267)][_0x2a2b49(0x264)]){this['_activeShapeId']=_0x406683[_0x2a2b49(0x313)];let {unitId:_0x4e06d9,subUnitId:_0x2cb6a1}=_0x406683;this[_0x2a2b49(0x234)]=this[_0x2a2b49(0x184)](_0x4e06d9,_0x2cb6a1,this[_0x2a2b49(0x43c)]),this[_0x2a2b49(0x296)]=_0x4e06d9,this[_0x2a2b49(0x40a)]=_0x2cb6a1,this[_0x2a2b49(0x433)](),this[_0x2a2b49(0x472)]();return;}}this[_0x2a2b49(0x43c)]=null,this[_0x2a2b49(0x234)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this[_0x3583eb(0x428)](this[_0x3583eb(0x22e)][_0x3583eb(0x2bd)]['subscribe'](_0xa421ba=>{const _0x56c3a8=_0x3583eb;if(_0xa421ba[_0x56c3a8(0x453)]===0x1){var _0x53f785;let _0x439224=_0xa421ba[0x0];((_0x53f785=this[_0x56c3a8(0x22e)][_0x56c3a8(0x31f)](_0x439224))==null?void 0x0:_0x53f785['drawingType'])===a[_0x56c3a8(0x196)]['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x3583eb(0x428)](this['_drawingManagerService'][_0x3583eb(0x436)][_0x3583eb(0x494)](_0x1b9514=>{const _0x4aa84e=_0x3583eb;for(let _0x265f6c of _0x1b9514)this[_0x4aa84e(0x43c)]===_0x265f6c['drawingId']&&(this[_0x4aa84e(0x43c)]=null,this[_0x4aa84e(0x234)]=void 0x0,this[_0x4aa84e(0x296)]=null,this['_subUnitId']=null,this[_0x4aa84e(0x433)]());}));}};j=k([O(0x0,s['IDrawingManagerService']),O(0x1,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(c[_0x46885f(0x23d)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(A)),O(0x4,a[_0x46885f(0x17b)]),O(0x5,a[_0x46885f(0x4aa)])],j);function _0x569f(){const _0x10c30f=['_urlImageService','useDependency','_popupMenuListener','DrawingImageClipService','_clearControls','_executeConnectionCommand','_generateCutPasteMutations','sheets-shape-ui.shape-format.style-ribbon-control','_handleFreeEndpointPointerUp','_generateCopyPasteMutations','render','_shapeFloatingToolbarService','focus$','getAdjustValueByName','_baseShapeLeft','18918rngPqv','_shapeTextEditingService','resolveShapeTextEditorBehaviorShapeData','shapeData','_clipService','getDrawingOrder','ShapeFormulaService','setPresentation','currentAdjustValues','UniverSheetsPlugin','getSheetId','includes','CROSSHAIR','attachPopupToObject','_executeConnectedRouteResizeCommand','registerCommand','_handleBasicShapeUpdateConnectorLineShape','drawWith','MoveUpIcon','cos','422232LoNPig','endArrow','Vector2','getOwnPropertyDescriptor','attachRangeWithCoord','MenuItemType','CommandType','sheet.command.menu-insert-shape','_injector','_getConnectionSiteAngle','UUID','insertGroupObject','hideContextualTab','_copyInfo','getActiveSheet','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','FlipHorizontalIcon','sheets-shape-ui.shape-format.text-ribbon-control','_renderWithCache','prstGeomAdjValues','_getOrCreateShapeModel','ToggleShapeFloatingToolbarOperation','_update','discreteRangeToRange','decorate','ancestorTransform','_formulaAnimation','shape-editor-ui.toolbar.quickStyles','FormulaShapeAnimationController','onPointerMove$','_updateShapeAdjustControls','_shapeRenderController','DrawingApplyType','animationEnabled','getConnectorLinePoints','_handleConnectedEndpointMove','getTransformer','drawingId','sheet.menu.shape.flip-vertical','vertical-center','ArrangeTypeEnum','gradientEndColor','ComponentManager','_cxtHandlerPointerUp','ShapeStyleRibbonControl','_createCopyInfoByRange','buildClipPath','_baseShapeHeight','image-clip-adjust-point-','getDrawingByParam','SHAPE_TEXT','Image','width','_iconManager','shapeKey','OTHERS','SheetScrollManagerService','ShapeFormatSettingIcon','dataModel','contentVerticalOffset','ShapeEditPanel','sheets-shape-text-','getBasicShapeRelation','_shapes','defineProperty','_configService','INSERT','@univerjs-pro/sheets-shape-ui','unitId','useMemo','viewportScrollX','normal','title','SELECTOR','_baseLeft','filter','deriveStateFromActiveSheet$','sheets-shape-ui.ribbon.shape-format.style-control','_transform','computeStraightConnectorLayout','featurePluginUpdateNotification','FOCUSING_COMMON_DRAWINGS','_adjHandlerPointerUp','add$','strokeWidth','_hide','IImageIoService','getTextModel','getDrawingDataForUnit','blockExecuteWithoutPermission','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','next','IContextService','_sheetBasicShapeConnectionPointController','URL','WorkbookEditablePermission','stopPropagation','Observable','MenuManagerPosition','getObjectListPanelLabels','SetDrawingArrangeCommand','UpdateLineShapeResizeCommand','getInterceptPoints','_cxnIndex','getOrCreateDrawingCopyPlan','resetCursor','close','sheets-shape-ui','startY','_commandExecutedListener','_sheetShapeAdjustController','PRINTING_COMPONENT_COLLECT','TOP','getDrawingOKey','getCurrentTypeOfUnit$','setShouldShowAdjust','_getDrawingRect','formulaPresentation','computeConnectorRouteLayout','sheets-shape-ui.ribbon.shape-format.arrange-front','Injector','PictureFill','_getImageDrawingInfo','getShapeDataById','add','_baseShapeTop','type','translateWithPrecision','symbol','shape-editor-ui.arrange.back','sheets-shape-ui.ribbon.shape-format.formula-control','sheet.shape.floating-toolbar','sheets-shape-ui.ribbon.shape-format.arrange-backward','getBatchAddOp','getActualSize','isHighlighted','UniverSheetsShapePlugin','CopySheetCommand','_sidebarService','_showConnectionSites','getScene','enableObjectsEvent','_currentConnectionTarget','DocumentSkeleton','prepareShapeTextDocumentData','sheets-shape-ui.insertShape','SheetsDrawingGroupCopyPasteController','sheetViewStartRow','ShapeTextRibbonControl','refreshShapeFillImage','clone','memo','plainShapeTextToDocumentData','getShapeModel','getCurrentLastSelection','_baseTop','_closeShapeEditPanel','shape-editor-ui.arrange.backward','DRAWING_IMAGE','createControl$','resize','changing$','div','_loadAndSetImage','_sheetSkeletonService','_executeResizeCommand','_focusedDrawings','description','run','useObservable','attachTransformerTo','visible','COMMAND','redo','sheets-shape-ui.config','_initMenu','_menuManagerService','sheet.image-clip.shape-picker.component','UniverDrawingPlugin','_highlightedSiteIndex','shape-editor-ui.arrange.forward','get','ContextMenuGroup','_attachAdjustEvent','_isStartConnectorPoint','_disposePopups','selectable','9141hgBwht','undo','getCurrentSkeleton','getBasicShapeRotateBound','SHAPE','_isHighlighted','classType','shape-editor-ui.toolbar.changeShape','_initCopyPaste','_attachConnectorObjectEvent','_addControl','actualHeight','switchMap','_activeShapeInfo','startConnectionDetection','getDrawingEffectBounds','isEditing','resolveShapeContextualRibbonHostMode','getValue','_updateSrcRectByTransform','_moveConnectorWithShape','_currentUniverService','cxnPointStrokeWidth','horizontal','_openShapeEditPanel','getRenderUnitById','_loadShapePictureFill','getUnitId','entries','disableShapeOption','getDrawingShapeKeyByDrawingSearch','getObjectIncludeInGroup','RemoveSheetsShapeMutation','sheet.command.update-shape-data','has','getDrawingEditable','_drawingRenderService','IRibbonService','getZoomRatio','DrawingRenderService','drawFormulaShapeAnimationLayers','getEndConnectInfo','composeMatrix','complete','getUnitType','IconManager','_insertingShapeKeys','isCurvedConnectorShape','Large','setEditing','connection-site-','setHighlighted','isRichText','Documents','_targetShapeId','onSavingEditorData$','_initSheetChange','clipTop','isRenderLinePointsMode','_context','None','getMenuHiddenObservable','CURSOR_TYPE','_formulaKey','isMainScene','_initEditingParams','marginTop','register','getObject','_onSavingEditorData$','getShapeQuickStyleType','DocEventManagerService','ShapeTypeEnum','rotation','setContextValue','angle','setAdjustValueByName','wrapStrategy','updateContext','SheetsShapeUIMenuSchema','_config','onPointerDown$','clip','worldPoints','onRendered','sheets-shape-ui.objectListPanel.open','_contextService','ang','REMOVE','fromChangeset','getConnectionInfo','canvas','getSelectedObjectMap','adjHandleFill','_draw','_imageIoService','35182MzOLQp','_subUnitId','trim','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getTransformerByCreate','Shape','transformForAngle','_calculateFreeEndpointAngle','useFormulaShapeToolbar','vertical','sqrt','transformByState','toDisposable','preValue','_editingParams$','getShapeTypeById','sheets-shape-ui.shape-format.quick-style-gallery','doc.image-clip.shape-picker.component','Inject','data','CUT','sheets-shape-ui.ribbon.shape-format.text-control','back','from','sheets-shape-ui.formatShape','set','find','lineType','offsetY','cxnIndex','_initPermission','disposeWithMe','ShapeFloatingToolbarService','default','_shapeService','DocSelectionManagerService','_isShouldShowDrawingShapeAdjust','with','localToWorld','getParent','getImageSourceCache','size','_clearShapeAdjustControls','_initEvents','fill','remove$','bottom','cloneShapeDataForType','getBatchRemoveOp','SheetSkeletonService','mergeMenu','_activeShapeId','changeShapeType','_shapePopupMenuDisposable','completeEditing','subscribeEvent','_isImagePointerDown','sheets-shape-format-font-family-menu','name','string','color','_formulaShapes','setCursor','renderDrawingShape','getShapeType','UpdateSheetsShapeDataMutation','value','#4285f4','syncExecuteCommand','custom','_activeTargetShapeId','calcAdjValues','viewportScrollY','_init','length','UniverShapeEditorUIPlugin','_generatePasteMutations','EMPTY','_handleConnectorPointerUp','transformToAxisAlignPosition','SHEET_VIEWPORT_KEY','Medium','cancelEditing','SetDrawingSelectedOperation','_connectionSiteObjects','SheetsShapeService','index','keys','function','Circle','transform','_sheetsShapeService','sheet.operation.update-shape-type','_sheetCanvasPopManagerService','multiply','Disposable','_props','unsubscribe','subUnitId','FromArray','BehaviorSubject','changeStart$','isArray','_adjHandlerPointerMove','IURLImageService','_createShapeAdjustControls','getBatchUpdateOp','_registerComponents','ISidebarService','canvasElement','FlipVerticalIcon','getSkeleton','sheet.shape.object-list.panel','sheets-shape-ui.objectListPanel.title','_reset','contentHeight','getUnit','SheetPermissionCheckController','skeleton','_shapeFormulaService','DRAWING_OBJECT_LAYER_INDEX','ShapeIcon','InsertSheetsShapeMutation','getInverseCoord','createShapeTextBoxShapeData','_rerouteConnectorLine','shapeId','_resetState','ShapeGroupEnum','_registerIcons','createShapeFormulaDocument','removeLinePoints','IMenuManagerService','_visible','useReducer','rect','UniverDocsPlugin','transformToDrawingPosition','shape-adjust-point-','subscribe','_registerMoveHandler','_getSceneAndTransformerByDrawingSearch','asObservable','OBJECT_LIST_FLOATING_SECTION_ID','_handleFreeEndpointMove','_renderManagerService','height','_drawShapeText','getDrawingData','446969AlDjDl','BottomIcon','sheets-shape-ui.shape-format.formula-ribbon-control','restore','150895DWbLva','_ribbonService','#bcbcbc','resolveShapeTextEditorWrapStrategy','getStartConnectInfo','IUndoRedoService','extensionGroups','resolveShapeTextDocumentRenderLayout','ICommandService','setFillImage','getDrawingSearch','top','BUTTON','getVisible','UniverDrawingUIPlugin','Transform','ShapePickerDropdown','map','DocSelectionRenderService','SheetSkeletonManagerService','visible$','_sheetDrawingService','dispose','ObjectLayersIcon','_addShapeConnectorHandlerObject','getConnectionRelation','FOCUSING_SHAPE_TEXT_EDITOR','clearActiveDrawingObjects','sheets-shape-ui.flipVertical','_draggingConnectorId','MoveDownIcon','DocCanvasPopManagerService','_activeShapeModel','left','getRealBound','actions','getEditing','DEFAULT_PASTE','isLineShape','_executeConnectedRouteConnectionCommand','IUniverInstanceService','DocumentDataModel','relation','_registerFocusChangeHandler','packageName','_shapeEditPanelVersion','getState','addObject','_connectorObjects','_getShapeAdjustPointListById','forEach','getDrawingVisible','invert','indexOf','_applyFormulaAutoFitSize','axisAlignSheetTransform','_releaseRenderCache','push','_sidebarDisposable','useEffect','_activeAdjustInfo','activateDrawingObject','values','startWith','VIEW_MAIN_LEFT','_commandService','end','DrawingTypeEnum','object','computeConnectorResizeLayout','copyType','resourceCollector','merge','IDrawingManagerService','normalizeShapeTextModel','_getZoomRatio','clipByShape','ShapeTextFloatMenuRenderControllerBase','reduce','COPY_TYPE','_componentManager','#FFFFFF','_drawingAddListener','_shapeId','setCanUseShapeClip','animateFormulaPresentation','_updateAdjustControlPositions','_drawingType','drawing.operation.set-drawing-active','Arrow','_isDrawingShapePointDown','forward','getObjectListPanelTypeName','getViewportByCell','pluginName','sectionCanvas','VerticalAlign','_insertShapes','clip-adj-','Module','ShapeFillEnum','unregister','adjustValues','registerRenderModule','applyPoint','fillType','_isStartAdjusting','refreshAdjustControls','_localeService','_sheetPrintInterceptorService','toStringTag','_addShapeConnectorHandlerObjects','intercept','ObjectListPanelBase','setShapeData','onload','setOnSavingEditorData','scene','isDrawingObject','SheetShapeTextEditorContainer','3860alnVzm','refreshTransform','focusDrawing','sheets-shape-ui.permission.editErr','updateDocumentDataMargin','_disposed','formulaBinding','GROUP','_getShapeAdjustInfosById','isRender','StraightConnector1','sheets-shape-ui.imagePanel.crop.shape','getShapeTextRect','save','_clearPopups','extraProps','_initCommands','DocInterceptorService','_sheetClipboardService','_hasReset','_activeAdjustPointList','_findNearestConnectionSite','getImage','sheets-shape-ui.flipHorizontal','Line','fillImageSource','_adjName','_univerInstanceService','offsetX','ISheetDrawingService','sheet.menu.shape.flip-horizontal','isolated','ImageSourceTypeEnum','Plugin','getCurrentUnitOfType','setFormulaPresentation','_registerDrawingMoveHandler','clearAdjustValue','univer-box-border\x20univer-px-4\x20univer-text-sm','fontSize','onPointerUp$','cxnPointStroke','HorizontalAlign','getCanvasElement','1768zffXsg','ShapeQuickStyleGallery','UniverLicensePlugin','backward','sheets-shape-ui.ribbon.shape-format','_handleConnectedEndpointPointerUp','isHitLine','56bpCGLW','_drawRichText','_updateImageAdjValues','getSkeletonParam','onReady','objects','shapeType','_initialize','isHorizontal','_baseShapeWidth','getCurrentScrollState','ShapeFormulaRibbonControl','Path','useState','adjHandleStroke','DocumentViewModel','abs','clipHeight','executeCommand','params','initShapePopupMenu','scale','1.0.0-beta.2','getShapeTextData','WorksheetEditPermission','LEFT','drawingType','presetId','sheet.shape.text.float-menu','SetShapeDrawingDataCommand','touchDependencies','changeEnd$','_groupCopyPasteController','ShapeTextHyperLinkPopupService','sheetTransform','sheetViewStartColumn','setShapeProps','SolidLine','SHAPE_EDITOR_TRANSFORMER_CONFIG','getFocusDrawings','_imageShapeClipController','Rect','23172HwlVVE','updateConnectionDetection','start','UNIVER_DOC','UniverSheetsUIPlugin','693734ARCFSX','_drawingManagerService','disableObjectsEvent','shapeText','getSheetBySheetId','cxnPointFill','_clearShapeConnectorHandlerObjects','_activeShapeAdjustPointList','point','RENDER_CLASS_TYPE','DRAWING','UpdateConnectorRelationCommand','_drawSimpleText','getAdjustInfoByName','UPDATE','updateShapeFillImage','IRenderManagerService','sheet.operation.open-sheet-shape-format-panel','makeDirty','_registerImageShapeClipDelegate','onTransformChange$','isInGroup','flipY','srcRect','ShapeRenderModeEnum','registerClipDelegate','RemoveSheetDrawingCommand','isConnectorShape','open','TopmostIcon','pipe','error','_activeImageId','clearAdjustControls','_shapeUpdateListener','getObjectListPanelSectionIdForDrawingType','src','onSteady','stringify','UniverSheetsDrawingUIPlugin','cxnPointRadius','toPrimitive','routeConnectorLineShape','IConfigService','_updateTransform','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','_cxtHandlerPointerMove','UniverShapeEditorPlugin','stroke','SheetPrintInterceptorService','_getShapeInfo','_baseWidth','idMap','translate','worldPoint','UNIVER_SHEET','OPERATION','parse','UniverInstanceType','setPrstGeom','shapeModel','adjName','prstGeom','hidden','SheetsShapeUIContextualRibbonSchema','jsx','SolidFill','_sheetPermissionCheckController','flipX','_addShapeAdjustControl','_initPrinting','showContextualTab','flatMap','version','getConnectionSiteList','clip-','getShapeData','_createControls','worldRect','engine','sheets-shape-ui.ribbon.shape-format.arrange-back','_getImagePrstGeom','setSrcRect','_index','_clearConnectionSites','ShapeArrowTypeEnum','jsxs','_sheetInterceptorService','constructor','sheet.operation.close-sheet-shape-format-panel','ShapeFloatingToolbar','DRAWING_SHAPE','panel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getMatrix','_registerDrawingFocusChangeHandler','getCurrentRangeDisable$','_lastEditingShapeKey','_registerGroupFeaturePasteHook','sheet.operation.open-shape-object-list-panel','_transformCalculateSrcRect','doc','_registerOperations','oKey','localeService','_unitId','fillImageSourceType','getSheetCommandTarget','UniverRenderEnginePlugin','_baseHeight','updateLinePoints','InsertShapeCommand','_baseDrawingRect','Fragment','_getScrollInfo','RibbonInsertGroup','getDrawingPoints','_currentScene','order','LocaleService','activeAnObject','ShapeArrowSizeEnum','delete','_getConnectPointInfo','adjHandleSize','getBentTypeFromPoints','startArrow','text','ConnectorCoordinateTransform','sin','_isOpenedShapeEditPanel','ShapeDefaultConfig','getAdjustNames','SetDrawingApplyMutation','ToggleSheetsShapeFlipCommand','_setTransForm','6pyBEBw','_isConnecting','_findShapeAtPoint','DependentOn','onDblclick$','setFallbackVisible','popup','endConnectionDetection','update$','ShapeTextEditorContainer','SheetCanvasPopManagerService','ShapeModel','startX','editingParams$','getDrawingTypeNameKey','ShapeTextFloatToolbar','SHEET_SHAPE_UI_PLUGIN','onCommandExecuted','activeSheet$','calculate','_sheetDrawingShapeRenderController','targetShapeId'];_0x569f=function(){return _0x10c30f;};return _0x569f();}const M={'id':_0x46885f(0x1ab),'type':a[_0x46885f(0x2f4)]['OPERATION'],'handler':(_0x5c8462,_0x22c1e2)=>{const _0x32d6bb=_0x46885f;let _0x28729f=_0x5c8462[_0x32d6bb(0x3a3)](s[_0x32d6bb(0x19c)]),_0x49ec3f=_0x5c8462[_0x32d6bb(0x3a3)](c[_0x32d6bb(0x23d)]),_0x2cb55d=_0x5c8462['get'](j);if(_0x22c1e2==null)return!0x0;if(_0x22c1e2['length']>0x0){var _0x52bcd1;let _0xe4a8da=(_0x52bcd1=_0x49ec3f[_0x32d6bb(0x3c2)](_0x22c1e2[0x0][_0x32d6bb(0x332)]))==null?void 0x0:_0x52bcd1[_0x32d6bb(0x1c8)];if(_0xe4a8da){let {unitId:_0x24e100,subUnitId:_0x1f94af,drawingId:_0x21ee64}=_0x22c1e2[0x0],_0x56af0d=(0x0,s[_0x32d6bb(0x3c7)])({'unitId':_0x24e100,'subUnitId':_0x1f94af,'drawingId':_0x21ee64},void 0x0),_0x4ee1c7=_0xe4a8da[_0x32d6bb(0x3c8)](_0x56af0d);if(_0x4ee1c7){var _0x42fccc;(_0x42fccc=_0x49ec3f[_0x32d6bb(0x3c2)](_0x22c1e2[0x0][_0x32d6bb(0x332)]))==null||(_0x42fccc=_0x42fccc[_0x32d6bb(0x1c8)][_0x32d6bb(0x312)]())==null||_0x42fccc[_0x32d6bb(0x2a5)](_0x4ee1c7);}}_0x28729f[_0x32d6bb(0x1cd)](_0x22c1e2),_0x2cb55d[_0x32d6bb(0x361)](!0x1);}return!0x0;}},N={'type':a['CommandType'][_0x46885f(0x39a)],'id':_0x46885f(0x2f5),'handler':async(_0x2edd08,_0x5adb77)=>{const _0x34ce95=_0x46885f;let _0x16ac56=(0x0,o[_0x34ce95(0x298)])(_0x2edd08[_0x34ce95(0x3a3)](a[_0x34ce95(0x17b)]));if(!_0x16ac56)return!0x1;let _0x24e4f2=_0x2edd08['get'](o['SheetsSelectionsService'])[_0x34ce95(0x388)]();if(!_0x24e4f2)return!0x1;let _0x4dc79a=_0x2edd08['get'](a[_0x34ce95(0x4aa)]),{unitId:_0x1180ce,subUnitId:_0x3ef158}=_0x16ac56,{value:_0x24f4c9,enhanceParams:_0xa2a17c}=_0x5adb77,{range:_0x58e4d9}=_0x24e4f2,_0x309327={'unitId':_0x1180ce,'subUnitId':_0x3ef158,'shapeType':_0x24f4c9,'range':_0x58e4d9,'shapeId':(0x0,a['generateRandomId'])()};if(_0xa2a17c){let _0x221f30=(0x0,n[_0x34ce95(0x248)])(_0x24f4c9),_0x13545a=_0x24f4c9===n[_0x34ce95(0x3f1)][_0x34ce95(0x227)];_0x221f30&&(_0xa2a17c[_0x34ce95(0x2ab)]||_0xa2a17c['endArrow'])&&(_0x309327[_0x34ce95(0x2dd)]={'ln':{'startArrow':_0xa2a17c['startArrow']?{'type':n['ShapeArrowTypeEnum']['Arrow'],'size':n[_0x34ce95(0x2a6)][_0x34ce95(0x45a)]}:void 0x0,'endArrow':_0xa2a17c[_0x34ce95(0x2ef)]?{'type':n[_0x34ce95(0x282)][_0x34ce95(0x1ac)],'size':n[_0x34ce95(0x2a6)][_0x34ce95(0x3d9)]}:void 0x0}}),_0x13545a&&(_0xa2a17c[_0x34ce95(0x3c0)]||_0xa2a17c[_0x34ce95(0x412)])&&(_0x309327[_0x34ce95(0x2dd)]=(0x0,r[_0x34ce95(0x485)])({'fill':{'fillType':n[_0x34ce95(0x1b7)][_0x34ce95(0x26f)],'color':_0x34ce95(0x1a4)},'isHorizontal':!!_0xa2a17c[_0x34ce95(0x3c0)],'stroke':{'lineStrokeType':n['ShapeLineTypeEnum'][_0x34ce95(0x223)],'width':0x1,'color':_0x34ce95(0x4a4)}}));}let _0x1b8449=_0x4dc79a[_0x34ce95(0x44d)](i[_0x34ce95(0x29c)]['id'],_0x309327);return setTimeout(()=>{const _0x19d904=_0x34ce95;_0x4dc79a[_0x19d904(0x210)](M['id'],[{'unitId':_0x1180ce,'subUnitId':_0x3ef158,'drawingId':_0x309327[_0x19d904(0x487)]}]);},0xc8),_0x1b8449;}},P='sheet.shape.edit.panel',F=_0x46885f(0x479),I=_0x46885f(0x371),L=_0x46885f(0x1fb),R=(0x0,a['createInternalEditorID'])(_0x46885f(0x320)),re=_0x46885f(0x21a),ie={'id':_0x46885f(0x290),'type':a[_0x46885f(0x2f4)][_0x46885f(0x39a)],'handler':(_0x7da2bd,_0x1fb7f3)=>{const _0x4dfbc5=_0x46885f;let _0xca41b7=_0x7da2bd['get'](t['ISidebarService']),_0x178725=_0x7da2bd[_0x4dfbc5(0x3a3)](a[_0x4dfbc5(0x2a4)]),_0xb63ffb=_0x7da2bd[_0x4dfbc5(0x3a3)](a[_0x4dfbc5(0x17b)]),_0x2b7067=_0x7da2bd[_0x4dfbc5(0x3a3)](a['ICommandService']);return(0x0,o[_0x4dfbc5(0x298)])(_0xb63ffb)?(_0x1fb7f3==null?void 0x0:_0x1fb7f3['value'])===_0x4dfbc5(0x358)?(_0xca41b7[_0x4dfbc5(0x358)](F),!0x0):(_0xca41b7['open']({'id':F,'header':{'title':_0x178725['t'](_0x4dfbc5(0x47a))},'children':{'label':F},'onClose':()=>{const _0x3a0f3f=_0x4dfbc5;_0x2b7067[_0x3a0f3f(0x44d)](s[_0x3a0f3f(0x45c)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x46885f(0x2f4)]['OPERATION'],'id':_0x46885f(0x23e),'handler'(){return!0x0;}};function ae(_0x2d9dd0){const _0x1d04ee=_0x46885f;let _0x4a4350=_0x2d9dd0['get'](s[_0x1d04ee(0x19c)])['getFocusDrawings'](),_0x4a8bfb=_0x4a4350['length']===0x1?_0x4a4350[0x0]:null;if(!_0x4a8bfb||_0x4a8bfb[_0x1d04ee(0x218)]!==a[_0x1d04ee(0x196)][_0x1d04ee(0x288)])return null;let _0x314034=_0x2d9dd0['get'](i[_0x1d04ee(0x45e)]),_0x283d28=_0x314034[_0x1d04ee(0x418)](_0x4a8bfb[_0x1d04ee(0x332)],_0x4a8bfb['subUnitId'],_0x4a8bfb[_0x1d04ee(0x313)]),_0x5a4f20=_0x314034[_0x1d04ee(0x369)](_0x4a8bfb[_0x1d04ee(0x332)],_0x4a8bfb[_0x1d04ee(0x46b)],_0x4a8bfb[_0x1d04ee(0x313)]);return _0x283d28===void 0x0||!_0x5a4f20?null:{'drawing':_0x4a8bfb,'shapeData':_0x5a4f20,'shapeType':_0x283d28};}const B={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x46885f(0x2f4)][_0x46885f(0x265)],'handler':(_0x2a835e,_0xf55cb)=>{const _0x13747a=_0x46885f;let _0x3a8819=ae(_0x2a835e),_0x9d4253=(0x0,r['getShapeQuickStylePreset'])((_0xf55cb==null?void 0x0:_0xf55cb[_0x13747a(0x219)])??(_0xf55cb==null?void 0x0:_0xf55cb[_0x13747a(0x44b)])??'');if(!_0x3a8819||!_0x9d4253||_0x9d4253[_0x13747a(0x36c)]!==(0x0,r[_0x13747a(0x3ef)])(_0x3a8819[_0x13747a(0x2dd)]))return!0x1;let _0x5dded2=(0x0,r['applyQuickStyleToShapeData'])(_0x3a8819[_0x13747a(0x2dd)],_0x9d4253);if(!_0x5dded2)return!0x1;let {drawing:_0x3993c7}=_0x3a8819;return _0x2a835e[_0x13747a(0x3a3)](a[_0x13747a(0x4aa)])['executeCommand'](x['id'],{'unitId':_0x3993c7[_0x13747a(0x332)],'subUnitId':_0x3993c7[_0x13747a(0x46b)],'shapeId':_0x3993c7['drawingId'],'shapeData':_0x5dded2,'oldShapeJSON':{'oldShapeData':_0x3a8819['shapeData']}});}},oe={'id':_0x46885f(0x465),'type':a[_0x46885f(0x2f4)][_0x46885f(0x265)],'handler':(_0x5b6d48,_0x3ff2bc)=>{const _0x1e2510=_0x46885f;let _0x579544=ae(_0x5b6d48),_0x5ce395=(_0x3ff2bc==null?void 0x0:_0x3ff2bc['shapeType'])??(_0x3ff2bc==null?void 0x0:_0x3ff2bc[_0x1e2510(0x44b)]);if(!_0x579544||!_0x5ce395||(0x0,n[_0x1e2510(0x248)])(_0x579544['shapeType'])||(0x0,n['isConnectorShape'])(_0x5ce395))return!0x1;let _0x5ffdd0=(0x0,r[_0x1e2510(0x438)])(_0x579544[_0x1e2510(0x2dd)],_0x5ce395);if(!_0x5ffdd0)return!0x1;let {drawing:_0x40db80}=_0x579544;return _0x5b6d48[_0x1e2510(0x3a3)](a[_0x1e2510(0x4aa)])[_0x1e2510(0x210)](x['id'],{'unitId':_0x40db80[_0x1e2510(0x332)],'subUnitId':_0x40db80[_0x1e2510(0x46b)],'shapeId':_0x40db80[_0x1e2510(0x313)],'shapeType':_0x5ce395,'shapeData':_0x5ffdd0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x579544[_0x1e2510(0x204)],'oldShapeData':_0x579544[_0x1e2510(0x2dd)]}});}};let V=class extends a[_0x46885f(0x468)]{constructor(_0x1a28fb,_0x331493){const _0x58bb63=_0x46885f;super(),this['_clipService']=_0x1a28fb,this[_0x58bb63(0x22e)]=_0x331493,this[_0x58bb63(0x240)](),this[_0x58bb63(0x2de)]['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x58bb63(0x2de)][_0x58bb63(0x1a7)](!0x1)});}[_0x46885f(0x240)](){const _0xa7575a=_0x46885f;let _0x44301f=this[_0xa7575a(0x2de)],_0x32fead=new Map(),_0xbb1999=_0x44301f[_0xa7575a(0x246)]((_0xa287c5,_0x21a19c,_0x346fa,_0x36f872,_0x11c7ee)=>{const _0x57a548=_0xa7575a;let _0x120de6=_0x21a19c;if(_0x120de6===n[_0x57a548(0x3f1)]['None']||_0x21a19c===_0x57a548(0x44e))return!0x1;try{let _0x4170a6=_0x32fead[_0x57a548(0x3a3)](_0x21a19c);return _0x4170a6||(_0x4170a6=new n[(_0x57a548(0x2c0))](_0x120de6,_0x57a548(0x278)+_0x21a19c),_0x32fead[_0x57a548(0x422)](_0x21a19c,_0x4170a6)),_0x4170a6[_0x57a548(0x1f0)](),_0x11c7ee&&Object[_0x57a548(0x460)](_0x11c7ee)[_0x57a548(0x453)]>0x0&&_0x4170a6[_0x57a548(0x1c5)]({'adjustValues':_0x11c7ee},!0x0),_0x4170a6[_0x57a548(0x3f7)]({'width':_0x346fa,'height':_0x36f872}),_0x4170a6[_0x57a548(0x31c)](_0xa287c5,{'left':0x0,'top':0x0,'width':_0x346fa,'height':_0x36f872});}catch{return!0x1;}});this['disposeWithMe'](_0xbb1999),this[_0xa7575a(0x428)]({'dispose':()=>_0x32fead['clear']()});}['clipByShape'](_0x32921b,_0x29af5d,_0x179498,_0x249178,_0x17553f){const _0x19cb54=_0x46885f;let _0x4074ec=this['_drawingManagerService']['getDrawingData'](_0x32921b,_0x29af5d);if(!_0x4074ec[_0x179498])return;let _0x58101d={..._0x4074ec[_0x179498],'prstGeom':_0x249178,'adjustValues':_0x17553f};this[_0x19cb54(0x22e)][_0x19cb54(0x33e)]([_0x58101d]);}};V=k([O(0x0,(0x0,a['Inject'])(d[_0x46885f(0x2ce)])),O(0x1,(0x0,a['Inject'])(s[_0x46885f(0x19c)]))],V);const se='sheet.shape.picker.component',ce=_0x46885f(0x39f);function le({onShapeClick:_0x66be54,excludeGroups:_0x239bad}){return(0x0,f['jsx'])(e['ShapePickerPanel'],{'excludeGroups':_0x239bad,'onShapeClick':_0x66be54,'scrollContainer':'parent'});}function ue(){const _0x20c213=_0x46885f;let _0x4d045d=(0x0,t[_0x20c213(0x2cc)])(s['IDrawingManagerService']),_0x538ff5=(0x0,t[_0x20c213(0x2cc)])(V);return(0x0,f[_0x20c213(0x26e)])(e[_0x20c213(0x163)],{'buttonLabel':_0x20c213(0x1d6),'excludeGroups':[e[_0x20c213(0x489)][_0x20c213(0x1e3)]],'onShapeClick':_0xf87c0f=>{const _0x4a5417=_0x20c213;let _0x3d13e7=_0x4d045d[_0x4a5417(0x225)]()['find'](_0x4c1365=>_0x4c1365[_0x4a5417(0x218)]===a['DrawingTypeEnum'][_0x4a5417(0x38c)]);if(!_0x3d13e7)return;let {unitId:_0x5a130f,subUnitId:_0x2247d8,drawingId:_0x51336a}=_0x3d13e7;_0x538ff5[_0x4a5417(0x19f)](_0x5a130f,_0x2247d8,_0x51336a,_0xf87c0f[_0x4a5417(0x36c)]);}});}function de(){const _0x3cb9da=_0x46885f;let _0x36394b=(0x0,t[_0x3cb9da(0x2cc)])(t[_0x3cb9da(0x318)]),_0x40c4f9=(0x0,t[_0x3cb9da(0x2cc)])(s['IDrawingManagerService']),_0x32c19b=(0x0,t[_0x3cb9da(0x2cc)])(a[_0x3cb9da(0x17b)]),_0x4c151f=_0x40c4f9['getFocusDrawings']()[0x0],_0x4ecdef=_0x4c151f?_0x32c19b['getUnitType'](_0x4c151f[_0x3cb9da(0x332)]):void 0x0,_0x56e8d6=_0x4ecdef===a[_0x3cb9da(0x267)][_0x3cb9da(0x22b)]?_0x3cb9da(0x41a):_0x4ecdef===a[_0x3cb9da(0x267)][_0x3cb9da(0x264)]?ce:void 0x0,_0x4be213=_0x56e8d6?_0x36394b[_0x3cb9da(0x3a3)](_0x56e8d6):void 0x0;return _0x4be213?(0x0,f[_0x3cb9da(0x26e)])(_0x4be213,{}):null;}function fe(){const _0x47acda=_0x46885f;let _0x3a06e7=(0x0,t[_0x47acda(0x2cc)])(a['ICommandService']);return(0x0,f[_0x47acda(0x26e)])(le,{'onShapeClick':_0x4b5546=>{const _0x87ca70=_0x47acda;_0x3a06e7[_0x87ca70(0x210)](N['id'],{'value':_0x4b5546[_0x87ca70(0x36c)],'enhanceParams':{'endArrow':_0x4b5546[_0x87ca70(0x2ef)],'startArrow':_0x4b5546[_0x87ca70(0x2ab)],'horizontal':_0x4b5546[_0x87ca70(0x3c0)],'vertical':_0x4b5546[_0x87ca70(0x412)]}});}});}function pe(_0x27a8ac){const _0x102189=_0x46885f;let _0x4fdc0b=_0x27a8ac['get'](a[_0x102189(0x17b)]);return{'id':N['id'],'type':t[_0x102189(0x2f3)][_0x102189(0x337)],'selections':[{'label':{'name':se,'hoverable':!0x1,'selectable':!0x1,'props':{'id':N['id']}}}],'icon':_0x102189(0x482),'tooltip':_0x102189(0x37f),'activated$':(0x0,l[_0x102189(0x33a)])(_0x4fdc0b,!0x1,()=>new u['Observable'](_0x14771e=>{const _0x134502=_0x102189;_0x14771e[_0x134502(0x349)](!0x1);})),'hidden$':(0x0,t[_0x102189(0x3e6)])(_0x27a8ac,a[_0x102189(0x267)][_0x102189(0x264)]),'disabled$':(0x0,l['getCurrentRangeDisable$'])(_0x27a8ac)};}function me(_0x257f1e){const _0x1abd2e=_0x46885f;let _0x513532=_0x257f1e[_0x1abd2e(0x3a3)](a[_0x1abd2e(0x17b)]);return{'id':ie['id'],'type':t[_0x1abd2e(0x2f3)][_0x1abd2e(0x4ae)],'icon':_0x1abd2e(0x16a),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x1abd2e(0x3fe),'activated$':(0x0,l[_0x1abd2e(0x33a)])(_0x513532,!0x1,()=>new u[(_0x1abd2e(0x34f))](_0x57b848=>{const _0x1f41b4=_0x1abd2e;_0x57b848[_0x1f41b4(0x349)](!0x1);})),'hidden$':(0x0,t[_0x1abd2e(0x3e6)])(_0x257f1e,a[_0x1abd2e(0x267)][_0x1abd2e(0x264)]),'disabled$':(0x0,l[_0x1abd2e(0x28d)])(_0x257f1e)};}const he=_0x46885f(0x1e9),ge=_0x46885f(0x314);function _e(_0x3ba757){const _0x4d5cdd=_0x46885f;let _0x1fdcfe=_0x3ba757[_0x4d5cdd(0x3a3)](s['IDrawingManagerService'])[_0x4d5cdd(0x225)]();return _0x1fdcfe[_0x4d5cdd(0x453)]===0x1&&_0x1fdcfe[0x0][_0x4d5cdd(0x218)]===a['DrawingTypeEnum'][_0x4d5cdd(0x288)]?_0x1fdcfe[0x0]:null;}function ve(_0x44c505){const _0x1ffcf6=_0x46885f;let _0x30f3aa=_0x44c505[_0x1ffcf6(0x3a3)](s['IDrawingManagerService']);return _0x30f3aa[_0x1ffcf6(0x2d7)]['pipe']((0x0,u['startWith'])(_0x30f3aa[_0x1ffcf6(0x225)]()),(0x0,u['map'])(_0x3e5857=>_0x3e5857[_0x1ffcf6(0x453)]!==0x1||_0x3e5857[0x0][_0x1ffcf6(0x218)]!==a[_0x1ffcf6(0x196)][_0x1ffcf6(0x288)]));}function ye(_0x30edc9){const _0x376428=_0x46885f;return{'id':he,'commandId':i[_0x376428(0x2b3)]['id'],'type':t['MenuItemType'][_0x376428(0x4ae)],'title':_0x376428(0x1e2),'tooltip':_0x376428(0x1e2),'icon':'FlipHorizontalIcon','hidden$':ve(_0x30edc9),'params':()=>{const _0x57b777=_0x376428;let _0x24908b=_e(_0x30edc9);return _0x24908b?{'unitId':_0x24908b[_0x57b777(0x332)],'subUnitId':_0x24908b[_0x57b777(0x46b)],'shapeId':_0x24908b[_0x57b777(0x313)],'flipH':!0x0}:void 0x0;}};}function be(_0x4baf10){const _0x3655f9=_0x46885f;return{'id':ge,'commandId':i[_0x3655f9(0x2b3)]['id'],'type':t['MenuItemType'][_0x3655f9(0x4ae)],'title':_0x3655f9(0x16f),'tooltip':'sheets-shape-ui.flipVertical','icon':'FlipVerticalIcon','hidden$':ve(_0x4baf10),'params':()=>{const _0x45d686=_0x3655f9;let _0x153b4e=_e(_0x4baf10);return _0x153b4e?{'unitId':_0x153b4e['unitId'],'subUnitId':_0x153b4e[_0x45d686(0x46b)],'shapeId':_0x153b4e[_0x45d686(0x313)],'flipV':!0x0}:void 0x0;}};}const xe=_0x46885f(0x419),Se=_0x46885f(0x2d2),Ce=_0x46885f(0x2ff),we=_0x46885f(0x4a0);function H(){const _0x4b13bd=_0x46885f;let _0x371149=(0x0,t[_0x4b13bd(0x2cc)])(a['ICommandService']),_0x91432=(0x0,t[_0x4b13bd(0x2cc)])(s[_0x4b13bd(0x19c)]),_0x1d2624=(0x0,t[_0x4b13bd(0x2cc)])(i[_0x4b13bd(0x45e)]),_0x75f602=()=>{const _0x36f9ef=_0x4b13bd;var _0x39b849;let _0x46c960=_0x91432[_0x36f9ef(0x225)]();if(_0x46c960[_0x36f9ef(0x453)]!==0x1||((_0x39b849=_0x46c960[0x0])==null?void 0x0:_0x39b849[_0x36f9ef(0x218)])!==a[_0x36f9ef(0x196)][_0x36f9ef(0x288)])return null;let {unitId:_0x8d18c0,subUnitId:_0x50fbf0,drawingId:_0x151291}=_0x46c960[0x0],_0x5364ab=_0x1d2624[_0x36f9ef(0x418)](_0x8d18c0,_0x50fbf0,_0x151291),_0x1fb2a0=_0x1d2624['getShapeDataById'](_0x8d18c0,_0x50fbf0,_0x151291);return _0x5364ab===void 0x0||!_0x1fb2a0?null:{'unitId':_0x8d18c0,'subUnitId':_0x50fbf0,'drawingId':_0x151291,'shapeType':_0x5364ab,'shapeData':_0x1fb2a0};},_0x5f3edd=(0x0,t[_0x4b13bd(0x397)])(()=>new u[(_0x4b13bd(0x34f))](_0x363625=>{const _0xfa6f97=_0x4b13bd;let _0x10f3ef=()=>_0x363625[_0xfa6f97(0x349)](_0x75f602()),_0x567088=_0x91432['focus$'][_0xfa6f97(0x494)](_0x10f3ef),_0x322408=_0x371149[_0xfa6f97(0x2c6)](_0x2aae02=>{const _0x7d1586=_0xfa6f97;_0x2aae02['id']===i[_0x7d1586(0x44a)]['id']&&_0x10f3ef();});return _0x10f3ef(),()=>{const _0x52c542=_0xfa6f97;_0x567088[_0x52c542(0x46a)](),_0x322408['dispose']();};}),_0x75f602(),!0x1,[_0x371149,_0x91432,_0x1d2624]);return{'selection':_0x5f3edd,'updateShapeData':_0x554cb6=>{const _0xbd9c6c=_0x4b13bd;_0x5f3edd&&S(_0x371149,_0x5f3edd[_0xbd9c6c(0x332)],_0x5f3edd[_0xbd9c6c(0x46b)],_0x5f3edd[_0xbd9c6c(0x313)],{'oldShapeData':_0x5f3edd[_0xbd9c6c(0x2dd)]},_0x554cb6);}};}function Te(){const _0x57bc07=_0x46885f;let {selection:_0x1b4669,updateShapeData:_0x518ef7}=H();return _0x1b4669?(0x0,f['jsx'])(e[_0x57bc07(0x31a)],{'shapeData':_0x1b4669[_0x57bc07(0x2dd)],'shapeType':_0x1b4669['shapeType'],'onUpdateShapeData':_0x518ef7}):null;}function Ee(){const _0x4d4014=_0x46885f;let _0x144f8a=(0x0,t[_0x4d4014(0x2cc)])(a['ICommandService']),_0x3102b2=(0x0,t['useDependency'])(a['LocaleService']),{selection:_0x287f01}=H();return _0x287f01?(0x0,f[_0x4d4014(0x26e)])(e[_0x4d4014(0x1f8)],{'type':(0x0,r[_0x4d4014(0x3ef)])(_0x287f01[_0x4d4014(0x2dd)]),'ariaLabel':_0x3102b2['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x287f01[_0x4d4014(0x2dd)]),'onSelect':_0x117835=>_0x144f8a['executeCommand'](B['id'],{'presetId':_0x117835})}):null;}function De(){const _0xb3e927=_0x46885f;let {selection:_0x592974,updateShapeData:_0x3379f3}=H();return _0x592974?(0x0,f['jsx'])(e[_0xb3e927(0x382)],{'fontFamilyPopupDataComponent':_0xb3e927(0x442),'shapeData':_0x592974[_0xb3e927(0x2dd)],'onUpdateShapeData':_0x3379f3}):null;}function Oe(){const _0xe817c4=_0x46885f;var _0x5900ec;let {selection:_0x28bc5a,updateShapeData:_0x23386d}=H(),_0x58b2fc=(0x0,e[_0xe817c4(0x411)])({'hostType':a[_0xe817c4(0x267)]['UNIVER_SHEET'],'unitId':(_0x28bc5a==null?void 0x0:_0x28bc5a['unitId'])??'','subUnitId':(_0x28bc5a==null?void 0x0:_0x28bc5a['subUnitId'])??'','shapeId':(_0x28bc5a==null?void 0x0:_0x28bc5a[_0xe817c4(0x313)])??'','shapeData':_0x28bc5a==null?void 0x0:_0x28bc5a[_0xe817c4(0x2dd)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xe817c4(0x437),'onUpdateBinding':_0x5a8fd9=>_0x23386d({'formulaBinding':_0x5a8fd9})}),_0x559662=((_0x5900ec=_0x58b2fc[_0xe817c4(0x4a8)])==null?void 0x0:_0x5900ec[_0xe817c4(0x275)](_0x2e584c=>_0x2e584c[_0xe817c4(0x176)])[_0xe817c4(0x339)](_0x1d63ea=>_0x1d63ea[_0xe817c4(0x399)]!==!0x1))??[];return _0x28bc5a!=null&&_0x28bc5a[_0xe817c4(0x2dd)][_0xe817c4(0x1d1)]?(0x0,f[_0xe817c4(0x26e)])(e[_0xe817c4(0x209)],{'actions':_0x559662,'panel':_0x58b2fc[_0xe817c4(0x289)]}):null;}const ke=_0x46885f(0x33b),Ae=_0x46885f(0x41e),je=_0x46885f(0x370),Me='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ne=_0x46885f(0x372),Pe=_0x46885f(0x365),Fe=_0x46885f(0x27d);function Ie(_0x32fd4b){const _0x1508a1=_0x46885f;let _0x35f4d6=_0x32fd4b[_0x1508a1(0x3a3)](a[_0x1508a1(0x4aa)]),_0x5aa9e0=_0x32fd4b[_0x1508a1(0x3a3)](s[_0x1508a1(0x19c)]),_0x20eb9c=_0x32fd4b[_0x1508a1(0x3a3)](i[_0x1508a1(0x45e)]);return new u[(_0x1508a1(0x34f))](_0x4e7e7a=>{const _0x39c05c=_0x1508a1;let _0x5ff7fb=()=>{const _0x4b9b9c=_0x2769;let _0x5a9593=U(_0x32fd4b),_0x56c1ef=_0x5a9593?_0x20eb9c[_0x4b9b9c(0x369)](_0x5a9593[_0x4b9b9c(0x332)],_0x5a9593[_0x4b9b9c(0x46b)],_0x5a9593[_0x4b9b9c(0x313)]):null;_0x4e7e7a[_0x4b9b9c(0x349)](_0x56c1ef?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x56c1ef)??'':'');},_0x5a6eaf=_0x5aa9e0[_0x39c05c(0x2d7)][_0x39c05c(0x494)](_0x5ff7fb),_0x5c7366=_0x35f4d6[_0x39c05c(0x2c6)](_0x4099ec=>{const _0x33a888=_0x39c05c;_0x4099ec['id']===i[_0x33a888(0x44a)]['id']&&_0x5ff7fb();});return _0x5ff7fb(),()=>{const _0x54f2fa=_0x39c05c;_0x5a6eaf[_0x54f2fa(0x46a)](),_0x5c7366[_0x54f2fa(0x169)]();};});}function U(_0x616823){const _0x1e5faa=_0x46885f;var _0x2cc68d;let _0x26dae3=_0x616823[_0x1e5faa(0x3a3)](s['IDrawingManagerService'])[_0x1e5faa(0x225)]();return _0x26dae3['length']===0x1&&((_0x2cc68d=_0x26dae3[0x0])==null?void 0x0:_0x2cc68d[_0x1e5faa(0x218)])===a[_0x1e5faa(0x196)]['DRAWING_SHAPE']?_0x26dae3[0x0]:null;}function W(_0x3eedd1,_0x13433d=!0x1){const _0x1859b2=_0x46885f;let _0x3d804d=_0x3eedd1['get'](a['ICommandService']),_0x362b69=_0x3eedd1[_0x1859b2(0x3a3)](s[_0x1859b2(0x19c)]),_0x3cfe9a=_0x3eedd1[_0x1859b2(0x3a3)](i[_0x1859b2(0x45e)]);return new u[(_0x1859b2(0x34f))](_0x160ba9=>{const _0x25b87c=_0x1859b2;let _0xd64a5b=()=>{const _0x2f7f57=_0x2769;let _0x57c62f=U(_0x3eedd1);if(!_0x57c62f){_0x160ba9[_0x2f7f57(0x349)](!0x0);return;}let _0x3b2fd9=_0x3cfe9a['getShapeDataById'](_0x57c62f[_0x2f7f57(0x332)],_0x57c62f[_0x2f7f57(0x46b)],_0x57c62f[_0x2f7f57(0x313)]);_0x160ba9[_0x2f7f57(0x349)](!_0x3b2fd9||_0x13433d&&_0x3b2fd9[_0x2f7f57(0x1d1)]==null);},_0x5c23b8=_0x362b69[_0x25b87c(0x2d7)][_0x25b87c(0x494)](_0xd64a5b),_0x3e3866=_0x3d804d[_0x25b87c(0x2c6)](_0x27c3c=>{const _0x254d17=_0x25b87c;_0x27c3c['id']===i[_0x254d17(0x44a)]['id']&&_0xd64a5b();});return _0xd64a5b(),()=>{const _0x3e9ac6=_0x25b87c;_0x5c23b8[_0x3e9ac6(0x46a)](),_0x3e3866[_0x3e9ac6(0x169)]();};});}function Le(_0x2b198a){const _0x4cd0ad=_0x46885f;let _0xed95bf=_0x2b198a[_0x4cd0ad(0x3a3)](s[_0x4cd0ad(0x19c)]),_0x4b143b=_0x2b198a[_0x4cd0ad(0x3a3)](i[_0x4cd0ad(0x45e)]);return _0xed95bf[_0x4cd0ad(0x2d7)][_0x4cd0ad(0x24b)]((0x0,u[_0x4cd0ad(0x192)])(_0xed95bf[_0x4cd0ad(0x225)]()),(0x0,u[_0x4cd0ad(0x164)])(()=>{const _0x4108e7=_0x4cd0ad;let _0x4e0547=U(_0x2b198a),_0x4ec2fd=_0x4e0547?_0x4b143b[_0x4108e7(0x418)](_0x4e0547['unitId'],_0x4e0547[_0x4108e7(0x46b)],_0x4e0547['drawingId']):void 0x0;return _0x4ec2fd===void 0x0||(0x0,n[_0x4108e7(0x248)])(_0x4ec2fd);}));}function Re(_0xfd8571){const _0x30f722=_0x46885f;return{'id':B['id'],'type':t[_0x30f722(0x2f3)][_0x30f722(0x337)],'icon':'PaintIcon','title':_0x30f722(0x309),'tooltip':_0x30f722(0x309),'selections':[{'label':{'name':xe,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ie(_0xfd8571),'hidden$':W(_0xfd8571)};}function ze(_0x3bb4f6){const _0x23aee0=_0x46885f;return{'id':oe['id'],'type':t[_0x23aee0(0x2f3)]['SELECTOR'],'icon':_0x23aee0(0x482),'title':_0x23aee0(0x3b0),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':e['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Le(_0x3bb4f6)};}function Be(_0x381af9,_0x18c0df,_0x459c8c=!0x1){const _0x2b4872=_0x46885f;return _0x32447a=>({'id':_0x381af9,'type':t[_0x2b4872(0x2f3)][_0x2b4872(0x4ae)],'label':{'name':_0x18c0df,'hoverable':!0x1,'selectable':!0x1},'hidden$':W(_0x32447a,_0x459c8c)});}const Ve=Be(ke,Se),He=Be(Ae,Ce),Ue=Be(je,we,!0x0);function G(_0x1a2351,_0x1f0c59,_0x214ddc,_0x25fcea){const _0x193334=_0x46885f;return _0x561cf8=>({'id':_0x1a2351,'commandId':p[_0x193334(0x352)]['id'],'type':t[_0x193334(0x2f3)][_0x193334(0x4ae)],'icon':_0x214ddc,'title':_0x25fcea,'tooltip':_0x25fcea,'hidden$':W(_0x561cf8),'params':()=>{const _0x200492=_0x193334;let _0x54c127=U(_0x561cf8);return _0x54c127?{'unitId':_0x54c127[_0x200492(0x332)],'subUnitId':_0x54c127[_0x200492(0x46b)],'drawingIds':[_0x54c127['drawingId']],'arrangeType':_0x1f0c59}:void 0x0;}});}const We=G(Me,a[_0x46885f(0x316)][_0x46885f(0x1ae)],_0x46885f(0x2ec),_0x46885f(0x3a2)),Ge=G(Ne,a[_0x46885f(0x316)][_0x46885f(0x1fa)],_0x46885f(0x171),_0x46885f(0x38b)),Ke=G(Pe,a['ArrangeTypeEnum']['front'],_0x46885f(0x24a),'shape-editor-ui.arrange.front'),qe=G(Fe,a[_0x46885f(0x316)][_0x46885f(0x41f)],_0x46885f(0x49f),_0x46885f(0x36f));function Je(_0x24f88b){const _0x2d504c=_0x46885f;return{'id':z['id'],'type':t[_0x2d504c(0x2f3)]['BUTTON'],'icon':_0x2d504c(0x327),'title':_0x2d504c(0x421),'tooltip':_0x2d504c(0x421),'hidden$':W(_0x24f88b),'params':()=>{const _0x5e25e6=_0x2d504c;let _0x5a3d52=U(_0x24f88b);return _0x5a3d52?{'unitId':_0x5a3d52[_0x5e25e6(0x332)],'subUnitId':_0x5a3d52[_0x5e25e6(0x46b)],'drawingId':_0x5a3d52[_0x5e25e6(0x313)]}:void 0x0;}};}const Ye={[t[_0x46885f(0x350)]['RIBBON']]:{[L]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[B['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Re},[oe['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[ke]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ve}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Ae]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':He}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[he]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ye},[ge]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':be},[Me]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':We},[Ne]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ge},[Pe]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ke},[Fe]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[je]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ue}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Je},[e[_0x46885f(0x303)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},Xe={[t[_0x46885f(0x2a0)]['MEDIA']]:{[N['id']]:{'order':0x4,'menuItemFactory':pe}},[t[_0x46885f(0x2a0)][_0x46885f(0x325)]]:{[ie['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':me}},[t['ContextMenuPosition'][_0x46885f(0x237)]]:{[t[_0x46885f(0x3a4)][_0x46885f(0x325)]]:{[he]:{'order':0x4,'menuItemFactory':ye},[ge]:{'order':0x5,'menuItemFactory':be}}}};var Ze=_0x46885f(0x331),Qe=_0x46885f(0x214);const $e={'type':a[_0x46885f(0x2f4)][_0x46885f(0x265)],'id':_0x46885f(0x286),'handler'(){return!0x0;}},et={};function tt(_0x336ad2){const _0x4403bc=_0x46885f;return _0x336ad2[_0x4403bc(0x40b)]()||void 0x0;}function nt(_0x10cb78,_0x591a17,_0x4b86ac){const _0x13e083=_0x46885f;var _0x504133;return((_0x504133=_0x10cb78[_0x13e083(0x443)])==null?void 0x0:_0x504133[_0x13e083(0x40b)]())||(0x0,d[_0x13e083(0x1af)])(_0x4b86ac,(0x0,e[_0x13e083(0x2c3)])(_0x10cb78[_0x13e083(0x218)]))+'\x20'+(_0x591a17+0x1);}function rt(){const _0x416124=_0x46885f;var _0x55f3ba;let _0xef49d4=(0x0,t[_0x416124(0x2cc)])(a['LocaleService']),_0x25f692=(0x0,t[_0x416124(0x2cc)])(a[_0x416124(0x4aa)]),_0xccf158=(0x0,t[_0x416124(0x2cc)])(a[_0x416124(0x17b)]),_0x14d7ef=(0x0,t[_0x416124(0x2cc)])(p[_0x416124(0x1e8)]),_0x5a700a=(0x0,t[_0x416124(0x2cc)])(s['IDrawingManagerService']),_0x3f3fb6=(0x0,t[_0x416124(0x2cc)])(c[_0x416124(0x23d)]),[,_0x14b7b5]=(0x0,y[_0x416124(0x48f)])(_0x34feff=>_0x34feff+0x1,0x0),_0x448e5a=_0xccf158[_0x416124(0x1ed)](a['UniverInstanceType'][_0x416124(0x264)]),_0x34599e=(_0x448e5a==null?void 0x0:_0x448e5a[_0x416124(0x3c4)]())??'',_0x459139=(_0x448e5a==null||(_0x55f3ba=_0x448e5a[_0x416124(0x2fc)]())==null?void 0x0:_0x55f3ba[_0x416124(0x2e4)]())??'',_0x1f60b1=(0x0,t[_0x416124(0x397)])(()=>_0x5a700a['focus$'],_0x5a700a[_0x416124(0x225)](),!0x1,[_0x5a700a]);(0x0,y[_0x416124(0x18e)])(()=>{const _0x2e6ae9=_0x416124;let _0x5ce1de=_0x25f692[_0x2e6ae9(0x2c6)](()=>_0x14b7b5());return()=>_0x5ce1de[_0x2e6ae9(0x169)]();},[_0x25f692]);let _0x5434c2=(0x0,y[_0x416124(0x333)])(()=>(0x0,d[_0x416124(0x351)])(_0xef49d4),[_0xef49d4]),_0x6cdc59=_0x34599e&&_0x459139?_0x14d7ef[_0x416124(0x49d)](_0x34599e,_0x459139):{},_0x306312=(_0x34599e&&_0x459139?_0x14d7ef[_0x416124(0x2df)](_0x34599e,_0x459139):[])['map'](_0x11944d=>_0x6cdc59[_0x11944d])[_0x416124(0x339)](_0x4174e8=>!!_0x4174e8)['reverse'](),_0x239285=_0x306312[_0x416124(0x1a1)]((_0x2b6861,_0x4d952c)=>(_0x2b6861[(0x0,d[_0x416124(0x250)])(_0x4d952c[_0x416124(0x218)])]+=0x1,_0x2b6861),{'canvas':0x0,'floating':0x0}),_0x1a5148={'canvas':0x0,'floating':0x0},_0x6593c9=_0x306312[_0x416124(0x164)]((_0x84dbce,_0xbf6447)=>{const _0x58d3ca=_0x416124;let _0xdf4dcd=(0x0,d[_0x58d3ca(0x250)])(_0x84dbce['drawingType']),_0x2fb94b=_0xdf4dcd===d[_0x58d3ca(0x498)],_0x6ae3fc=_0x1a5148[_0xdf4dcd]++;return{'id':_0x84dbce['drawingId'],'name':nt(_0x84dbce,_0xbf6447,_0xef49d4),'description':_0x84dbce[_0x58d3ca(0x395)],'visible':_0x84dbce['hidden']!==!0x0,'selectable':_0x84dbce['selectable']!==!0x1,'sectionId':_0xdf4dcd,'sectionTitle':_0x2fb94b?_0x5434c2['sectionFloating']:_0x5434c2[_0x58d3ca(0x1b2)],'capabilities':_0x2fb94b?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2fb94b&&_0x6ae3fc>0x0,'canMoveBackward':!_0x2fb94b&&_0x6ae3fc<_0x239285[_0x58d3ca(0x404)]-0x1,'canReorder':!_0x2fb94b};}),_0x123f80=(0x0,y['useMemo'])(()=>(_0x1f60b1??[])[_0x416124(0x339)](_0x5b92a4=>_0x5b92a4[_0x416124(0x332)]===_0x34599e&&_0x5b92a4[_0x416124(0x46b)]===_0x459139)[_0x416124(0x164)](_0x4362cd=>_0x4362cd[_0x416124(0x313)]),[_0x1f60b1,_0x459139,_0x34599e]),_0x3fc5a6=_0x123f80[_0x123f80[_0x416124(0x453)]-0x1]??null,_0x328f41=_0x5b27d1=>_0x14d7ef[_0x416124(0x31f)]({'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x5b27d1})??null,_0x3c0ae2=async _0x19f6ac=>{const _0x275ec5=_0x416124;!_0x34599e||!_0x19f6ac[_0x275ec5(0x453)]||await _0x25f692[_0x275ec5(0x210)](p['SetSheetDrawingCommand']['id'],{'unitId':_0x34599e,'drawings':_0x19f6ac});},_0x1db84b=async(_0x4edf42,_0x368a40)=>{_0x328f41(_0x4edf42)&&await _0x3c0ae2([{'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x4edf42,..._0x368a40}]);},_0x11ac85=(_0x23aecd,_0x1d30a3)=>{const _0xd52e45=_0x416124;if(!_0x34599e||!_0x459139)return;let _0x445980=_0x1d30a3?_0x123f80[_0xd52e45(0x2e5)](_0x23aecd)?_0x123f80[_0xd52e45(0x339)](_0x122404=>_0x122404!==_0x23aecd):[..._0x123f80,_0x23aecd]:[_0x23aecd];_0x25f692[_0xd52e45(0x44d)](s[_0xd52e45(0x45c)]['id'],_0x445980[_0xd52e45(0x164)](_0x5aac32=>({'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x5aac32})));let _0x59c84c=_0x445980[_0x445980[_0xd52e45(0x453)]-0x1];_0x59c84c?(0x0,e[_0xd52e45(0x190)])(_0x3f3fb6,{'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x59c84c}):(0x0,e[_0xd52e45(0x16e)])(_0x3f3fb6,_0x34599e);},_0x4684bd=async(_0x256ed5,_0x2f8238)=>{const _0x19c7ef=_0x416124;await _0x3c0ae2(_0x256ed5[_0x19c7ef(0x164)](_0x22be19=>_0x328f41(_0x22be19))[_0x19c7ef(0x339)](_0xafbe87=>!!_0xafbe87)[_0x19c7ef(0x339)](_0x513705=>_0x513705['hidden']!==!0x0!==_0x2f8238)[_0x19c7ef(0x164)](_0x545d2e=>({'unitId':_0x34599e,'subUnitId':_0x459139,'drawingId':_0x545d2e[_0x19c7ef(0x313)],'hidden':!_0x2f8238})));},_0x4adbfe=async _0x2ec2df=>{const _0x1b8cf1=_0x416124;let _0x3532b1=_0x328f41(_0x2ec2df);_0x3532b1&&await _0x1db84b(_0x2ec2df,{'selectable':_0x3532b1[_0x1b8cf1(0x3a8)]===!0x1&&void 0x0});},_0x4ff5a5=async(_0x4c1b23,_0x2f0b3c)=>{const _0x1e837a=_0x416124;var _0x4b54b6;let _0x56ffeb=tt(_0x2f0b3c);(((_0x4b54b6=_0x328f41(_0x4c1b23))==null?void 0x0:_0x4b54b6[_0x1e837a(0x443)])??void 0x0)!==_0x56ffeb&&await _0x1db84b(_0x4c1b23,{'name':_0x56ffeb});},_0x2f7bb4=async(_0x223ac0,_0x54a8b8)=>{var _0x533d8c;let _0xe8bd9d=tt(_0x54a8b8);(((_0x533d8c=_0x328f41(_0x223ac0))==null?void 0x0:_0x533d8c['description'])??void 0x0)!==_0xe8bd9d&&await _0x1db84b(_0x223ac0,{'description':_0xe8bd9d});},_0x23179e=async(_0x332a82,_0x5c2c66)=>{const _0x3ba8d7=_0x416124;!_0x34599e||!_0x459139||await _0x25f692[_0x3ba8d7(0x210)](p[_0x3ba8d7(0x352)]['id'],{'unitId':_0x34599e,'subUnitId':_0x459139,'drawingIds':[_0x332a82],'arrangeType':_0x5c2c66});};return!_0x34599e||!_0x459139?(0x0,f[_0x416124(0x26e)])(_0x416124(0x390),{'className':_0x416124(0x2fd),'children':_0x5434c2[_0x416124(0x336)]}):(0x0,f['jsx'])(d[_0x416124(0x1c4)],{'items':_0x6593c9,'selectedIds':_0x123f80,'focusedId':_0x3fc5a6,'labels':_0x5434c2,'onSelect':_0x11ac85,'onSetVisible':_0x4684bd,'onCommitName':_0x4ff5a5,'onCommitDescription':_0x2f7bb4,'onMoveForward':async _0x583878=>_0x23179e(_0x583878,a['ArrangeTypeEnum'][_0x416124(0x1ae)]),'onMoveBackward':async _0x5bb715=>_0x23179e(_0x5bb715,a[_0x416124(0x316)]['backward']),'onToggleSelectable':_0x4adbfe});}let K=class{constructor(_0x3533c9){const _0x421eaf=_0x46885f;this[_0x421eaf(0x49a)]=_0x3533c9;}[_0x46885f(0x23c)](_0x56410c,_0x5daaa4){const _0x31bb5f=_0x46885f;let _0x5e9e8b=this[_0x31bb5f(0x49a)]['getRenderUnitById'](_0x56410c['unitId']),_0x12cbc7=_0x5e9e8b==null?void 0x0:_0x5e9e8b[_0x31bb5f(0x1c8)];if(!_0x12cbc7)return;let _0xb9f949=(0x0,s[_0x31bb5f(0x3c7)])(_0x56410c),_0x10543e=_0x12cbc7[_0x31bb5f(0x3c8)](_0xb9f949);_0x10543e==null||_0x10543e[_0x31bb5f(0x4ab)](_0x5daaa4);}};K=k([O(0x0,c[_0x46885f(0x23d)])],K);function it(){const _0x3a7c7a=_0x46885f;let _0x27c25e=(0x0,t[_0x3a7c7a(0x2cc)])(s['IDrawingManagerService']),_0x3a9d5a=(0x0,t[_0x3a7c7a(0x397)])(()=>_0x27c25e[_0x3a7c7a(0x2d7)],_0x27c25e[_0x3a7c7a(0x225)](),!0x1,[_0x27c25e]);return _0x3a9d5a['length']===0x0?null:(0x0,f[_0x3a7c7a(0x26e)])(_0x3a7c7a(0x390),{'children':(0x0,f[_0x3a7c7a(0x283)])(_0x3a7c7a(0x390),{'className':_0x3a7c7a(0x1f1),'children':[(0x0,f[_0x3a7c7a(0x26e)])(d['DrawingCommonPanel'],{'drawings':_0x3a9d5a,'hasCropper':!0x1}),(0x0,f[_0x3a7c7a(0x26e)])(_['SheetDrawingAnchor'],{'drawings':_0x3a9d5a})]})});}function _0x2769(_0x1b8e43,_0x4552){_0x1b8e43=_0x1b8e43-0x162;const _0x569f37=_0x569f();let _0x276967=_0x569f37[_0x1b8e43];return _0x276967;}function at(_0x287be3){const _0x437f50=_0x46885f;let {unitId:_0x5b522d,subUnitId:_0x138b5e,shapeId:_0x591204}=_0x287be3,_0x29bbbe=(0x0,t[_0x437f50(0x2cc)])(a[_0x437f50(0x4aa)]),_0x402594=(0x0,t[_0x437f50(0x2cc)])(K);return(0x0,f[_0x437f50(0x26e)])(e[_0x437f50(0x32a)],{..._0x287be3,'positionEditor':(0x0,f[_0x437f50(0x26e)])(it,{}),'onUpdateShapeData':(_0x3239fc,_0x4bf302)=>{S(_0x29bbbe,_0x5b522d,_0x138b5e,_0x591204,_0x3239fc,_0x4bf302);},'onUpdateLineShapeData':(_0x3689f9,_0x4fd679)=>{C(_0x29bbbe,_0x5b522d,_0x138b5e,_0x591204,_0x3689f9,_0x4fd679);},'onUpdateShapeFillImage':_0x1b2fe6=>{const _0x28be8f=_0x437f50;_0x402594[_0x28be8f(0x23c)]({'unitId':_0x5b522d,'subUnitId':_0x138b5e,'drawingId':_0x591204},_0x1b2fe6);}});}function ot(_0x16e8dd){const _0x5c8ddb=_0x46885f;let _0x5bbe94=(0x0,t[_0x5c8ddb(0x2cc)])(e[_0x5c8ddb(0x429)]),_0x5e9ca3=(0x0,t[_0x5c8ddb(0x397)])(()=>_0x5bbe94[_0x5c8ddb(0x167)],_0x5bbe94[_0x5c8ddb(0x4af)](),!0x1,[_0x5bbe94]),_0x30f010=_0x16e8dd[_0x5c8ddb(0x2bb)][_0x5c8ddb(0x1da)];return!_0x30f010||!_0x5e9ca3?null:(0x0,f[_0x5c8ddb(0x26e)])(st,{..._0x30f010,'canvasElement':_0x16e8dd[_0x5c8ddb(0x2bb)][_0x5c8ddb(0x476)]});}function st(_0x19ec3f){const _0x499743=_0x46885f;let _0x30610b=(0x0,t['useDependency'])(a['ICommandService']),_0xd4508=(0x0,t[_0x499743(0x2cc)])(i[_0x499743(0x45e)]),{unitId:_0x433c83,subUnitId:_0x113b83,drawingId:_0x2f314c,drawingType:_0xb93109,shapeType:_0x155597}=_0x19ec3f,[_0x5ce592,_0x20dbd4]=(0x0,y[_0x499743(0x20b)])(_0x19ec3f[_0x499743(0x2dd)]),_0x17cb28=(0x0,y[_0x499743(0x333)])(()=>(0x0,e['getTextStyle'])(_0x5ce592),[_0x5ce592]),_0xd6c854=(0x0,y[_0x499743(0x333)])(()=>(0x0,e[_0x499743(0x345)])(_0x5ce592),[_0x5ce592]);(0x0,y[_0x499743(0x18e)])(()=>{const _0x1daa51=_0x499743;let _0x4b60f4=_0x30610b[_0x1daa51(0x2c6)](_0x89ee98=>{const _0x4747e0=_0x1daa51;if(_0x89ee98['id']!==i[_0x4747e0(0x44a)]['id'])return;let _0x43ebdf=_0xd4508[_0x4747e0(0x369)](_0x433c83,_0x113b83,_0x2f314c);_0x43ebdf&&_0x20dbd4(_0x43ebdf);});return()=>_0x4b60f4['dispose']();},[_0x30610b,_0x2f314c,_0xd4508,_0x113b83,_0x433c83]);let _0x266fbb=_0x1c7442=>{_0x20dbd4(_0xe50af7=>({..._0xe50af7,..._0x1c7442}));},_0x101933=_0x8e083b=>{let _0x4f438c=(0x0,e['buildShapeTextDataUpdate'])(_0x5ce592,_0x8e083b);S(_0x30610b,_0x433c83,_0x113b83,_0x2f314c,{'oldShapeData':{'shapeText':_0x5ce592['shapeText']}},_0x4f438c),_0x266fbb(_0x4f438c);},_0x416319=(0x0,e[_0x499743(0x411)])({'hostType':a[_0x499743(0x267)]['UNIVER_SHEET'],'unitId':_0x433c83,'subUnitId':_0x113b83,'shapeId':_0x2f314c,'shapeData':_0x5ce592,'onUpdateBinding':_0x5a673d=>{const _0x410d1b=_0x499743;let _0x19f60c={'formulaBinding':_0x5a673d};S(_0x30610b,_0x433c83,_0x113b83,_0x2f314c,{'oldShapeData':{'formulaBinding':_0x5ce592[_0x410d1b(0x1d1)]}},_0x19f60c),_0x266fbb(_0x19f60c);}});return(0x0,f[_0x499743(0x283)])(f[_0x499743(0x29e)],{'children':[(0x0,f[_0x499743(0x26e)])(e[_0x499743(0x287)],{'canvasElement':_0x19ec3f[_0x499743(0x476)],'shapeData':_0x5ce592,'shapeType':_0x155597,'textStyle':{'ff':n['ShapeDefaultConfig'][_0x499743(0x230)]['fontFamily'],'fs':n[_0x499743(0x2b0)]['shapeText'][_0x499743(0x1f2)],'cl':{'rgb':n['ShapeDefaultConfig'][_0x499743(0x230)][_0x499743(0x445)]},..._0x17cb28},'textModel':_0xd6c854?{'ha':_0xd6c854['ha']??a[_0x499743(0x1f5)][_0x499743(0x217)],'va':_0xd6c854['va']??a[_0x499743(0x1b3)][_0x499743(0x35e)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n['ShapeDefaultConfig'][_0x499743(0x435)],'defaultGradientEndColor':n[_0x499743(0x2b0)][_0x499743(0x317)],'defaultStrokeColor':n[_0x499743(0x2b0)]['stroke'],'extensionGroups':_0x416319['extensionGroups'],'onUpdateShapeData':(_0x4d9841,_0x1c21eb)=>{S(_0x30610b,_0x433c83,_0x113b83,_0x2f314c,_0x4d9841,_0x1c21eb),_0x1c21eb&&_0x266fbb(_0x1c21eb);},'onUpdateText':_0x101933,'onOpenPanel':()=>{const _0x4f6247=_0x499743;_0x30610b[_0x4f6247(0x210)](z['id'],{'unitId':_0x433c83,'subUnitId':_0x113b83,'drawingId':_0x2f314c});},'onDelete':()=>{const _0x54da52=_0x499743;_0x30610b[_0x54da52(0x210)](p[_0x54da52(0x247)]['id'],{'unitId':_0x433c83,'drawings':[{'unitId':_0x433c83,'subUnitId':_0x113b83,'drawingId':_0x2f314c,'drawingType':_0xb93109}]});}}),_0x416319[_0x499743(0x289)]]});}var q=class extends a[_0x46885f(0x468)]{constructor(..._0x5f3964){const _0x36ce15=_0x46885f;super(..._0x5f3964),T(this,_0x36ce15(0x417),new u[(_0x36ce15(0x46d))](null)),T(this,_0x36ce15(0x2c2),this[_0x36ce15(0x417)][_0x36ce15(0x497)]()),T(this,_0x36ce15(0x3ee),new u[(_0x36ce15(0x46d))](!0x1)),T(this,_0x36ce15(0x3e0),this[_0x36ce15(0x3ee)][_0x36ce15(0x497)]());}[_0x46885f(0x169)](){const _0x284986=_0x46885f;this[_0x284986(0x417)][_0x284986(0x349)](null),this[_0x284986(0x417)][_0x284986(0x3d4)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x284986(0x3ee)][_0x284986(0x3d4)](),super[_0x284986(0x169)]();}[_0x46885f(0x3da)](_0x36d3e6){const _0x18c9b0=_0x46885f;this[_0x18c9b0(0x417)][_0x18c9b0(0x349)](_0x36d3e6),_0x36d3e6??this[_0x18c9b0(0x3ee)]['next'](!0x1);}['setOnSavingEditorData'](_0x30920d){const _0x32b744=_0x46885f;this[_0x32b744(0x3ee)][_0x32b744(0x349)](_0x30920d);}[_0x46885f(0x177)](){const _0x3004d5=_0x46885f;return this[_0x3004d5(0x417)][_0x3004d5(0x3bb)]();}[_0x46885f(0x43f)](_0x9ac15e){const _0x486e9f=_0x46885f;this[_0x486e9f(0x177)]()&&(this[_0x486e9f(0x1c7)](!0x0),requestAnimationFrame(()=>{const _0x190a91=_0x486e9f;this[_0x190a91(0x3da)](null);}));}[_0x46885f(0x45b)](){const _0x495cf3=_0x46885f;this[_0x495cf3(0x177)]()&&this[_0x495cf3(0x3da)](null);}};function ct(_0x2c0943){const _0x295218=_0x46885f;return!!_0x2c0943&&_0x295218(0x18a)in _0x2c0943&&_0x295218(0x220)in _0x2c0943;}const lt=(0x0,y[_0x46885f(0x385)])(()=>{const _0x4f9c98=_0x46885f;let _0x20e9ca=(0x0,t[_0x4f9c98(0x2cc)])(q),_0x1bc59c=(0x0,t[_0x4f9c98(0x2cc)])(i[_0x4f9c98(0x45e)]),_0x5f35a4=(0x0,t[_0x4f9c98(0x2cc)])(s[_0x4f9c98(0x19c)]),_0x4b2ee4=(0x0,t[_0x4f9c98(0x2cc)])(a[_0x4f9c98(0x4aa)]),_0x1e2632=(0x0,t[_0x4f9c98(0x2cc)])(t['UndoRedoGroupService']),_0x51ed08=(0x0,t['useDependency'])(c[_0x4f9c98(0x23d)]);return(0x0,f[_0x4f9c98(0x26e)])(e[_0x4f9c98(0x2be)],{'adapter':(0x0,y[_0x4f9c98(0x333)])(()=>({'getShapeModel':(_0x4f8368,_0x3a07a7,_0x1b16ee)=>_0x1bc59c[_0x4f9c98(0x387)](_0x4f8368,_0x3a07a7,_0x1b16ee),'getShapeData':(_0xed37f6,_0x55a4c7,_0x394741)=>_0x1bc59c[_0x4f9c98(0x369)](_0xed37f6,_0x55a4c7,_0x394741),'getDrawingTransform':(_0x1f7736,_0x4bf85c,_0x3369bf)=>{const _0x48b838=_0x4f9c98;let _0x4baeb5=_0x5f35a4['getDrawingByParam']({'unitId':_0x1f7736,'subUnitId':_0x4bf85c,'drawingId':_0x3369bf});return _0x4baeb5==null?void 0x0:_0x4baeb5[_0x48b838(0x463)];},'updateShapeText':({unitId:_0x4e56ee,subUnitId:_0x328366,shapeId:_0x14d2c8,shapeText:_0x26d8df,oldShapeText:_0x24126d,hostSize:_0x176ebe})=>{const _0x3d9a97=_0x4f9c98;_0x1e2632[_0x3d9a97(0x396)](_0x4e56ee,()=>{const _0x4cd38a=_0x3d9a97;var _0xa156ab;let _0xc01ab1=_0x4b2ee4['syncExecuteCommand'](x['id'],{'unitId':_0x4e56ee,'subUnitId':_0x328366,'shapeId':_0x14d2c8,'shapeData':{'shapeText':_0x26d8df},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x24126d}}});if(!_0xc01ab1||!_0x176ebe)return _0xc01ab1;let _0x35fa2e=_0x5f35a4[_0x4cd38a(0x31f)]({'unitId':_0x4e56ee,'subUnitId':_0x328366,'drawingId':_0x14d2c8}),_0x1b903a=_0x35fa2e==null?void 0x0:_0x35fa2e[_0x4cd38a(0x463)];if(!ct(_0x35fa2e)||!_0x1b903a)return!0x1;let _0x3d1a7c={..._0x1b903a,'width':_0x176ebe['width'],'height':_0x176ebe[_0x4cd38a(0x49b)]},_0x5b25c2=(_0xa156ab=_0x51ed08['getRenderUnitById'](_0x4e56ee))==null||(_0xa156ab=_0xa156ab[_0x4cd38a(0x42e)](l[_0x4cd38a(0x166)])[_0x4cd38a(0x201)](_0x328366))==null?void 0x0:_0xa156ab[_0x4cd38a(0x47f)];return _0x4b2ee4[_0x4cd38a(0x44d)](p['SetSheetDrawingCommand']['id'],{'unitId':_0x4e56ee,'drawings':[{..._0x35fa2e,'transform':_0x3d1a7c,'sheetTransform':_0x5b25c2?(0x0,p[_0x4cd38a(0x492)])(_0x3d1a7c,_0x5b25c2)??_0x35fa2e[_0x4cd38a(0x220)]:_0x35fa2e[_0x4cd38a(0x220)],'axisAlignSheetTransform':_0x5b25c2?(0x0,p['transformToAxisAlignPosition'])(_0x3d1a7c,_0x5b25c2)??_0x35fa2e[_0x4cd38a(0x18a)]:_0x35fa2e[_0x4cd38a(0x18a)]}]});});},'updateHostSize':({unitId:_0x51d5d7,subUnitId:_0x9b0716,shapeId:_0x1c69ac,width:_0x25e5fd,height:_0x4987ba})=>{const _0x5733d5=_0x4f9c98;var _0x177098;let _0x201564=_0x5f35a4[_0x5733d5(0x31f)]({'unitId':_0x51d5d7,'subUnitId':_0x9b0716,'drawingId':_0x1c69ac}),_0x1c4a9b=_0x201564==null?void 0x0:_0x201564[_0x5733d5(0x463)];if(!ct(_0x201564)||!_0x1c4a9b)return;let _0x1d490e={..._0x1c4a9b,'width':_0x25e5fd,'height':_0x4987ba},_0x115d03=(_0x177098=_0x51ed08['getRenderUnitById'](_0x51d5d7))==null||(_0x177098=_0x177098[_0x5733d5(0x42e)](l['SheetSkeletonManagerService'])[_0x5733d5(0x201)](_0x9b0716))==null?void 0x0:_0x177098['skeleton'],_0x2c13f4=_0x115d03?(0x0,p[_0x5733d5(0x492)])(_0x1d490e,_0x115d03)??_0x201564['sheetTransform']:_0x201564[_0x5733d5(0x220)],_0x1b9dba=_0x115d03?(0x0,p[_0x5733d5(0x458)])(_0x1d490e,_0x115d03)??_0x201564[_0x5733d5(0x18a)]:_0x201564['axisAlignSheetTransform'];_0x4b2ee4['executeCommand'](p['SetSheetDrawingCommand']['id'],{'unitId':_0x51d5d7,'drawings':[{..._0x201564,'transform':_0x1d490e,'sheetTransform':_0x2c13f4,'axisAlignSheetTransform':_0x1b9dba}]});},'allowHostSizeShrink':({unitId:_0x22c841,subUnitId:_0x1d458b,shapeId:_0x5d3db7})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0x1bc59c['getShapeDataById'](_0x22c841,_0x1d458b,_0x5d3db7)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x4b2ee4,_0x5f35a4,_0x51ed08,_0x1bc59c,_0x1e2632]),'editingService':_0x20e9ca,'editorUnitId':R,'positionOptions':(0x0,y[_0x4f9c98(0x333)])(()=>({'viewportKeys':{'main':c[_0x4f9c98(0x459)]['VIEW_MAIN'],'leftTop':c[_0x4f9c98(0x459)]['VIEW_MAIN_LEFT_TOP'],'top':c[_0x4f9c98(0x459)]['VIEW_MAIN_TOP'],'left':c[_0x4f9c98(0x459)][_0x4f9c98(0x193)]},'getSkeleton':(_0x1edc29,_0x207eb3)=>{const _0x381557=_0x4f9c98;var _0x477f67;return((_0x477f67=_0x1edc29[_0x381557(0x42e)](l[_0x381557(0x166)])['getSkeletonParam'](_0x207eb3['subUnitId']))==null?void 0x0:_0x477f67[_0x381557(0x47f)])??null;}}),[])});});let J=class extends a[_0x46885f(0x468)]{constructor(_0x234231,_0x1d7a72){const _0x1d2329=_0x46885f;super(),this['_componentManager']=_0x234231,this[_0x1d2329(0x323)]=_0x1d7a72,this[_0x1d2329(0x48a)](),this[_0x1d2329(0x474)]();}[_0x46885f(0x48a)](){const _0x2cfd54=_0x46885f;this[_0x2cfd54(0x323)][_0x2cfd54(0x3cb)](_0x2cfd54(0x16a))||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'ObjectLayersIcon':v[_0x2cfd54(0x16a)]})),this[_0x2cfd54(0x323)][_0x2cfd54(0x3cb)](_0x2cfd54(0x2fe))||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'FlipHorizontalIcon':v[_0x2cfd54(0x2fe)]})),this[_0x2cfd54(0x323)]['has'](_0x2cfd54(0x477))||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'FlipVerticalIcon':v[_0x2cfd54(0x477)]})),this['_iconManager'][_0x2cfd54(0x3cb)](_0x2cfd54(0x49f))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'BottomIcon':v[_0x2cfd54(0x49f)]})),this[_0x2cfd54(0x323)]['has'](_0x2cfd54(0x171))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'MoveDownIcon':v['MoveDownIcon']})),this[_0x2cfd54(0x323)][_0x2cfd54(0x3cb)](_0x2cfd54(0x2ec))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'MoveUpIcon':v[_0x2cfd54(0x2ec)]})),this['_iconManager'][_0x2cfd54(0x3cb)]('ShapeFormatSettingIcon')||this[_0x2cfd54(0x428)](this[_0x2cfd54(0x323)][_0x2cfd54(0x3ec)]({'ShapeFormatSettingIcon':v[_0x2cfd54(0x327)]})),this[_0x2cfd54(0x323)]['has'](_0x2cfd54(0x24a))||this[_0x2cfd54(0x428)](this['_iconManager'][_0x2cfd54(0x3ec)]({'TopmostIcon':v[_0x2cfd54(0x24a)]}));}[_0x46885f(0x474)](){const _0x3dc499=_0x46885f;this[_0x3dc499(0x428)](this['_componentManager']['register'](P,at)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)]['register'](F,rt)),this['disposeWithMe'](this[_0x3dc499(0x1a3)]['register'](se,fe)),this['disposeWithMe'](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](ce,ue)),this[_0x3dc499(0x1a3)][_0x3dc499(0x3a3)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x3dc499(0x428)](this['_componentManager'][_0x3dc499(0x3ec)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],de)),this[_0x3dc499(0x428)](this['_componentManager'][_0x3dc499(0x3ec)](I,ot)),this['disposeWithMe'](this['_componentManager'][_0x3dc499(0x3ec)](Se,Te)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](xe,Ee)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)]['register'](Ce,De)),this['disposeWithMe'](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](we,Oe)),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](re,e[_0x3dc499(0x2c4)])),this[_0x3dc499(0x428)](this[_0x3dc499(0x1a3)][_0x3dc499(0x3ec)](_0x3dc499(0x1ca),lt));}};J=k([O(0x0,(0x0,a[_0x46885f(0x41b)])(t[_0x46885f(0x318)])),O(0x1,(0x0,a[_0x46885f(0x41b)])(t[_0x46885f(0x3d6)]))],J);let ut=class extends a[_0x46885f(0x468)]{constructor(_0x371bc9,_0x51bbed,_0x36cfd1,_0x234a9d,_0x56b2c5){const _0x53596b=_0x46885f;super(),this[_0x53596b(0x3e4)]=_0x371bc9,this[_0x53596b(0x22e)]=_0x51bbed,this[_0x53596b(0x49a)]=_0x36cfd1,this[_0x53596b(0x1e6)]=_0x234a9d,this['_imageShapeClipController']=_0x56b2c5,T(this,_0x53596b(0x24d),null),T(this,_0x53596b(0x296),null),T(this,_0x53596b(0x40a),null),T(this,_0x53596b(0x1df),void 0x0),T(this,'_shapes',[]),T(this,_0x53596b(0x338),0x0),T(this,_0x53596b(0x389),0x0),T(this,_0x53596b(0x260),0x0),T(this,_0x53596b(0x29a),0x0),T(this,'_isStartAdjusting',!0x1),T(this,_0x53596b(0x18f),void 0x0),T(this,'_activeShapeModel',void 0x0),T(this,_0x53596b(0x470),void 0x0),T(this,'_adjHandlerPointerUp',void 0x0),T(this,_0x53596b(0x441),!0x1),this[_0x53596b(0x17e)](),this[_0x53596b(0x495)]();}[_0x46885f(0x24e)](){const _0xf37e6=_0x46885f;this[_0xf37e6(0x2cf)]();}['refreshAdjustControls'](){const _0x5e64ea=_0x46885f;this[_0x5e64ea(0x2cf)](),this[_0x5e64ea(0x27a)](!0x0);}[_0x46885f(0x302)](_0x4ee03f,_0x1269b0,_0x55e106,_0x274920){const _0x480e6a=_0x46885f;let _0x10e7c4=_0x4ee03f;if(_0x10e7c4!==n[_0x480e6a(0x3f1)][_0x480e6a(0x3e5)]&&_0x4ee03f!==_0x480e6a(0x44e))try{let _0x2f4faf=new n['ShapeModel'](_0x10e7c4,_0x480e6a(0x1b5)+_0x4ee03f);return _0x274920&&_0x2f4faf[_0x480e6a(0x1c5)]({'adjustValues':_0x274920},!0x0),_0x2f4faf['updateContext']({'width':_0x1269b0,'height':_0x55e106}),_0x2f4faf;}catch{return;}}['_getImageDrawingInfo'](_0x511e28,_0x328730,_0x1b8071){const _0x4d2746=_0x46885f;let _0x4b6fe1={'unitId':_0x511e28,'subUnitId':_0x328730,'drawingId':_0x1b8071},_0x4c00ce=this[_0x4d2746(0x22e)][_0x4d2746(0x31f)](_0x4b6fe1);if(!(!_0x4c00ce||_0x4c00ce[_0x4d2746(0x218)]!==a['DrawingTypeEnum'][_0x4d2746(0x38c)]))return _0x4c00ce;}[_0x46885f(0x27e)](_0x28b445,_0x5238f8,_0x4ede9b){const _0x34ec0c=_0x46885f;let _0x4bc880=this['_renderManagerService'][_0x34ec0c(0x3c2)](_0x28b445);if(!_0x4bc880)return;let {scene:_0x20918b}=_0x4bc880,_0x44e539=(0x0,s[_0x34ec0c(0x3c7)])({'unitId':_0x28b445,'subUnitId':_0x5238f8,'drawingId':_0x4ede9b}),_0x382e72=_0x20918b[_0x34ec0c(0x3ed)](_0x44e539);if(_0x382e72 instanceof c[_0x34ec0c(0x321)]){let _0x52c231=_0x382e72[_0x34ec0c(0x26b)];if(_0x52c231)return{'prstGeom':_0x52c231,'adjustValues':_0x382e72[_0x34ec0c(0x301)]};}}[_0x46885f(0x27a)](_0x4e42eb=!0x1){const _0x4d198c=_0x46885f;if(!this[_0x4d198c(0x296)]||!this[_0x4d198c(0x40a)]||!this['_activeImageId'])return;let _0x3d3bf2=this['_renderManagerService'][_0x4d198c(0x3c2)](this[_0x4d198c(0x296)]);if(!_0x3d3bf2||!_0x3d3bf2['with'](l[_0x4d198c(0x166)])[_0x4d198c(0x3ab)]())return;let {scene:_0x4a3cd1}=_0x3d3bf2,_0x2fe177=this[_0x4d198c(0x368)](this[_0x4d198c(0x296)],this[_0x4d198c(0x40a)],this['_activeImageId']);if(!_0x2fe177)return;let {transform:_0xce0f0c}=_0x2fe177;if(!_0xce0f0c)return;let {left:_0x57f18c,top:_0x532f0a,width:_0x419045,height:_0x520fdc,flipX:_0x3d2dd5,flipY:_0x502ab4,angle:_0x23512d=0x0}=_0xce0f0c;if(_0x57f18c===void 0x0||_0x532f0a===void 0x0)return;let _0xa57a2f=this[_0x4d198c(0x27e)](this[_0x4d198c(0x296)],this[_0x4d198c(0x40a)],this[_0x4d198c(0x24d)]);if(!_0xa57a2f)return;if(_0x4e42eb){let _0x5e3425=this[_0x4d198c(0x302)](_0xa57a2f[_0x4d198c(0x26b)],_0x419045||0x0,_0x520fdc||0x0,_0xa57a2f[_0x4d198c(0x1b9)]);if(!_0x5e3425)return;this[_0x4d198c(0x1df)]=_0x5e3425[_0x4d198c(0x2a1)]();}let _0x14dfe1=this[_0x4d198c(0x1df)];if(!(!_0x14dfe1||_0x14dfe1[_0x4d198c(0x453)]===0x0))for(let _0x286376=0x0;_0x286376<_0x14dfe1[_0x4d198c(0x453)];_0x286376++){let _0x196812=_0x14dfe1[_0x286376],_0x48b9d4=_0x196812['x'],_0x4bf1f8=_0x196812['y'];if(_0x3d2dd5&&(_0x48b9d4=(_0x419045||0x0)-_0x48b9d4),_0x502ab4&&(_0x4bf1f8=(_0x520fdc||0x0)-_0x4bf1f8),_0x23512d!==0x0){let _0x4f3495=(_0x419045||0x0)/0x2,_0x491a12=(_0x520fdc||0x0)/0x2,_0x467956=_0x23512d*Math['PI']/0xb4,_0x1b86f2=Math[_0x4d198c(0x2ed)](_0x467956),_0xa686f0=Math['sin'](_0x467956),_0x25d35c=_0x48b9d4-_0x4f3495,_0x3383b2=_0x4bf1f8-_0x491a12;_0x48b9d4=_0x4f3495+(_0x25d35c*_0x1b86f2-_0x3383b2*_0xa686f0),_0x4bf1f8=_0x491a12+(_0x25d35c*_0xa686f0+_0x3383b2*_0x1b86f2);}let _0x3e9574={'x':_0x48b9d4,'y':_0x4bf1f8,'adjName':_0x196812[_0x4d198c(0x26a)]};this[_0x4d198c(0x3b3)](_0x4a3cd1,_0x3e9574,_0x3e9574['adjName'],_0x57f18c,_0x532f0a,this[_0x4d198c(0x296)],this['_subUnitId']);}}[_0x46885f(0x3b3)](_0x45f207,_0x2fa58c,_0x12c6dd,_0x141421,_0x48263c,_0x36f371,_0x31add7){const _0x472f7c=_0x46885f;if(!this[_0x472f7c(0x24d)])return;let _0x17b466=_0x472f7c(0x31e)+this[_0x472f7c(0x24d)]+'-'+_0x12c6dd,_0x2edf4d=_0x45f207[_0x472f7c(0x3c8)](_0x17b466);if(_0x2edf4d){_0x2edf4d[_0x472f7c(0x414)]({'left':_0x2fa58c['x']+_0x141421-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)],'top':_0x2fa58c['y']+_0x48263c-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)]});return;}let _0x33a748=new D(_0x17b466,{'left':_0x2fa58c['x']+_0x141421-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)],'top':_0x2fa58c['y']+_0x48263c-n[_0x472f7c(0x2b0)][_0x472f7c(0x2a9)],'adjName':_0x12c6dd,'shapeId':this[_0x472f7c(0x24d)],'unitId':_0x36f371,'subUnitId':_0x31add7,'width':n['ShapeDefaultConfig']['adjHandleSize']+0x8,'height':n[_0x472f7c(0x2b0)]['adjHandleSize']+0x8,'zIndex':c[_0x472f7c(0x481)]+0x1,'evented':!0x0});this[_0x472f7c(0x32d)]['push'](_0x33a748),this['_attachAdjustEvent'](_0x33a748,_0x45f207,_0x12c6dd),_0x45f207[_0x472f7c(0x182)](_0x33a748,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x46885f(0x2cf)](){const _0x501eda=_0x46885f;this['_shapes'][_0x501eda(0x453)]!==0x0&&(this[_0x501eda(0x32d)][_0x501eda(0x185)](_0x4fc5ac=>_0x4fc5ac['dispose']()),this[_0x501eda(0x32d)]=[]);}[_0x46885f(0x29f)](_0x41329d,_0x1b0df0){const _0x20e64d=_0x46885f;var _0x2ef341;let _0x233d76={'x':0x0,'y':0x0},_0x5efb9a=this[_0x20e64d(0x49a)][_0x20e64d(0x3c2)](_0x41329d);if(!_0x5efb9a||!_0x5efb9a[_0x20e64d(0x42e)](l[_0x20e64d(0x166)])['getSkeleton'](_0x1b0df0))return _0x233d76;let _0x3c5ce1=_0x5efb9a[_0x20e64d(0x42e)](l['SheetScrollManagerService']),_0xfe78d0=_0x3c5ce1==null?void 0x0:_0x3c5ce1[_0x20e64d(0x208)]();if(!_0xfe78d0)return _0x233d76;let _0x46bd21=(_0x2ef341=this['_univerInstanceService'][_0x20e64d(0x47d)](_0x41329d))==null?void 0x0:_0x2ef341[_0x20e64d(0x231)](_0x1b0df0);if(!_0x46bd21)return _0x233d76;let _0x5a30e5=(0x0,l[_0x20e64d(0x1b0)])(_0xfe78d0['sheetViewStartRow'],_0xfe78d0['sheetViewStartColumn'],_0x5efb9a[_0x20e64d(0x1c8)],_0x46bd21);return _0x5a30e5?{'x':_0x5a30e5['viewportScrollX'],'y':_0x5a30e5[_0x20e64d(0x451)]}:_0x233d76;}['_getZoomRatio'](_0x5e5947,_0x29bc5e){const _0x398e50=_0x46885f;var _0x2c55a2;let _0x2bda2e=(_0x2c55a2=this['_univerInstanceService']['getUnit'](_0x5e5947))==null?void 0x0:_0x2c55a2['getSheetBySheetId'](_0x29bc5e);return(_0x2bda2e==null?void 0x0:_0x2bda2e[_0x398e50(0x3cf)]())??0x1;}[_0x46885f(0x3a5)](_0x248cd1,_0x2e0ae0,_0x39dd21){const _0x36c0d9=_0x46885f;this[_0x36c0d9(0x428)]((0x0,a[_0x36c0d9(0x415)])(_0x248cd1['onPointerDown$'][_0x36c0d9(0x440)]((_0x446b39,_0x46b878)=>{const _0x43cd7d=_0x36c0d9;var _0x40a630,_0x51b262,_0x36a519;let {unitId:_0x3dfd03,subUnitId:_0x10c507,drawingId:_0x49aeed}=_0x248cd1[_0x43cd7d(0x4ac)](),_0x2db0af=this[_0x43cd7d(0x368)](_0x3dfd03,_0x10c507,_0x49aeed);if(!(_0x2db0af!=null&&_0x2db0af[_0x43cd7d(0x463)]))return;let {left:_0x318bf2,top:_0x3e1510,width:_0x1204f5,height:_0x5432cd}=_0x2db0af[_0x43cd7d(0x463)];this[_0x43cd7d(0x338)]=_0x318bf2||0x0,this['_baseTop']=_0x3e1510||0x0,this[_0x43cd7d(0x260)]=_0x1204f5||0x0,this['_baseHeight']=_0x5432cd||0x0;let _0x4ead83=!!((_0x40a630=_0x2db0af['transform'])!=null&&_0x40a630[_0x43cd7d(0x271)]),_0x34b48e=!!((_0x51b262=_0x2db0af[_0x43cd7d(0x463)])!=null&&_0x51b262[_0x43cd7d(0x243)]),_0x280445=((_0x36a519=_0x2db0af['transform'])==null?void 0x0:_0x36a519['angle'])||0x0,_0x2d5fd0=this[_0x43cd7d(0x27e)](_0x3dfd03,_0x10c507,_0x49aeed);if(!_0x2d5fd0)return;let _0x512497=this[_0x43cd7d(0x302)](_0x2d5fd0[_0x43cd7d(0x26b)],this['_baseWidth'],this['_baseHeight'],_0x2d5fd0['adjustValues']);if(!_0x512497||(this['_activeShapeModel']=_0x512497,this[_0x43cd7d(0x18f)]=_0x512497[_0x43cd7d(0x23a)](_0x39dd21),!this[_0x43cd7d(0x18f)]))return;this[_0x43cd7d(0x1bd)]=!0x0,_0x2e0ae0[_0x43cd7d(0x22f)]();let _0xd2ab8=_0x2d5fd0[_0x43cd7d(0x26b)];this['_adjHandlerPointerMove']=_0x2e0ae0[_0x43cd7d(0x30b)][_0x43cd7d(0x440)]((_0x2b099d,_0x3b737c)=>{const _0x39181d=_0x43cd7d;if(!this['_isStartAdjusting'])return;let {offsetX:_0x366a94,offsetY:_0x45f9e6}=_0x2b099d,_0x501bc5=this[_0x39181d(0x18f)];if(!this['_activeShapeModel']||!_0x501bc5)return;_0x2e0ae0[_0x39181d(0x22f)](),_0x2e0ae0[_0x39181d(0x447)](c[_0x39181d(0x3e7)][_0x39181d(0x2e6)]);let _0x2c7b22={'left':0x0,'top':0x0,'width':this[_0x39181d(0x260)],'height':this[_0x39181d(0x29a)]},_0x531589=this[_0x39181d(0x29f)](_0x3dfd03,_0x10c507),_0xa50d6e=this[_0x39181d(0x19e)](_0x3dfd03,_0x10c507),_0x919149=_0x366a94/_0xa50d6e+_0x531589['x']-this[_0x39181d(0x338)],_0x35131b=_0x45f9e6/_0xa50d6e+_0x531589['y']-this[_0x39181d(0x389)];if(_0x280445!==0x0){let _0x2c1e49=this['_baseWidth']/0x2,_0x15f5df=this[_0x39181d(0x29a)]/0x2,_0x4aa8cc=_0x280445*Math['PI']/0xb4,_0x3e1e5c=Math[_0x39181d(0x2ed)](_0x4aa8cc),_0x131e83=Math[_0x39181d(0x2ae)](_0x4aa8cc),_0x24bc54=_0x919149-_0x2c1e49,_0x5d94c2=_0x35131b-_0x15f5df;_0x919149=_0x2c1e49+(_0x24bc54*_0x3e1e5c+_0x5d94c2*_0x131e83),_0x35131b=_0x15f5df+(-_0x24bc54*_0x131e83+_0x5d94c2*_0x3e1e5c);}_0x4ead83&&(_0x919149=this[_0x39181d(0x260)]-_0x919149),_0x34b48e&&(_0x35131b=this[_0x39181d(0x29a)]-_0x35131b);let _0x292e72=this[_0x39181d(0x173)][_0x39181d(0x450)](_0x2c7b22,{'x':_0x919149,'y':_0x35131b},_0x501bc5,_0x4ead83,_0x34b48e);if(Object[_0x39181d(0x460)](_0x292e72)[_0x39181d(0x453)]!==0x0){for(let [_0x554237,_0x2cf5ac]of Object[_0x39181d(0x3c5)](_0x292e72))this[_0x39181d(0x173)][_0x39181d(0x3f5)](_0x554237,_0x2cf5ac);this[_0x39181d(0x173)][_0x39181d(0x3f7)]({'width':this[_0x39181d(0x260)],'height':this[_0x39181d(0x29a)]}),this[_0x39181d(0x200)](_0x3dfd03,_0x10c507,_0x49aeed,_0x292e72),this['_activeAdjustPointList']=this[_0x39181d(0x173)][_0x39181d(0x2a1)](),this[_0x39181d(0x27a)](),_0x3b737c[_0x39181d(0x34e)]();}}),this[_0x43cd7d(0x340)]=_0x2e0ae0['onPointerUp$'][_0x43cd7d(0x440)]((_0x971a93,_0x4f1631)=>{const _0x1412ff=_0x43cd7d;if(this[_0x1412ff(0x470)][_0x1412ff(0x46a)](),this[_0x1412ff(0x340)][_0x1412ff(0x46a)](),_0x2e0ae0[_0x1412ff(0x357)](),this['_activeShapeModel']){let _0x5005b0=this[_0x1412ff(0x173)][_0x1412ff(0x2b1)](),_0x3f55d9={};for(let _0x5f328f of _0x5005b0){let _0x40b608=this['_activeShapeModel']['getAdjustValueByName'](_0x5f328f);_0x40b608!==void 0x0&&(_0x3f55d9[_0x5f328f]=_0x40b608);}this[_0x1412ff(0x226)]['clipByShape'](_0x3dfd03,_0x10c507,_0x49aeed,_0xd2ab8,_0x3f55d9);}this[_0x1412ff(0x18f)]=void 0x0,this[_0x1412ff(0x173)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4f1631[_0x1412ff(0x34e)](),_0x2e0ae0[_0x1412ff(0x37b)]();}),_0x46b878['stopPropagation']();})));}[_0x46885f(0x200)](_0x3c9c7c,_0x564206,_0x3274f6,_0x5c76f4){const _0x3b050d=_0x46885f;let _0x30ee73=this[_0x3b050d(0x49a)]['getRenderUnitById'](_0x3c9c7c);if(!_0x30ee73)return;let {scene:_0x49f500}=_0x30ee73,_0x42a6f1=(0x0,s[_0x3b050d(0x3c7)])({'unitId':_0x3c9c7c,'subUnitId':_0x564206,'drawingId':_0x3274f6}),_0x4da522=_0x49f500['getObject'](_0x42a6f1);if(_0x4da522 instanceof c[_0x3b050d(0x321)]){let _0x12d938=_0x4da522[_0x3b050d(0x301)]??{};_0x4da522['setPrstGeomAdjValues']({..._0x12d938,..._0x5c76f4}),_0x4da522[_0x3b050d(0x23f)](!0x0);}}[_0x46885f(0x495)](){const _0xae6216=_0x46885f;let _0x3d10a5=this[_0xae6216(0x1e6)]['getCurrentTypeOfUnit$'](a[_0xae6216(0x267)][_0xae6216(0x264)]);this[_0xae6216(0x428)](_0x3d10a5[_0xae6216(0x24b)]((0x0,u[_0xae6216(0x3b5)])(_0x84a3fe=>_0x84a3fe?_0x84a3fe[_0xae6216(0x2c7)][_0xae6216(0x24b)]((0x0,u[_0xae6216(0x3b5)])(_0x2c4783=>{const _0x2f68e7=_0xae6216;if(!_0x2c4783)return u[_0x2f68e7(0x456)];let _0x2a482e=_0x84a3fe[_0x2f68e7(0x3c4)](),_0x41a97c=this['_renderManagerService'][_0x2f68e7(0x3c2)](_0x2a482e),_0x4d0ff1=_0x41a97c==null?void 0x0:_0x41a97c[_0x2f68e7(0x1c8)];return _0x4d0ff1?(0x0,u['of'])(_0x4d0ff1):u[_0x2f68e7(0x456)];})):u[_0xae6216(0x456)]))[_0xae6216(0x494)](_0x185e04=>{const _0x148833=_0xae6216;let _0x4357f3=_0x185e04[_0x148833(0x40d)]();this[_0x148833(0x428)](_0x185e04[_0x148833(0x30b)][_0x148833(0x440)](()=>{const _0x4f0d94=_0x148833;this[_0x4f0d94(0x441)]&&this['_clearControls']();})),this['disposeWithMe'](_0x4357f3[_0x148833(0x46e)][_0x148833(0x494)](_0x339c32=>{const _0x3e4fb2=_0x148833;let {objects:_0x4c3562}=_0x339c32;if(this[_0x3e4fb2(0x27a)](),_0x4c3562!==null&&_0x4c3562['size']===0x1){let _0x39a89e=_0x4c3562[_0x3e4fb2(0x191)]()[_0x3e4fb2(0x349)]()[_0x3e4fb2(0x44b)];_0x39a89e instanceof c[_0x3e4fb2(0x321)]&&_0x39a89e[_0x3e4fb2(0x26b)]&&(this[_0x3e4fb2(0x441)]=!0x0);}})),this[_0x148833(0x428)](_0x4357f3[_0x148833(0x38f)][_0x148833(0x494)](()=>{const _0x352fdd=_0x148833;this[_0x352fdd(0x441)]&&this['_clearControls']();})),this[_0x148833(0x428)](_0x185e04[_0x148833(0x1f3)][_0x148833(0x440)](()=>{const _0x2875f4=_0x148833;this[_0x2875f4(0x441)]&&(this[_0x2875f4(0x441)]=!0x1,this[_0x2875f4(0x27a)]());})),this['disposeWithMe'](_0x4357f3[_0x148833(0x21d)][_0x148833(0x494)](()=>{const _0x295177=_0x148833;if(this[_0x295177(0x296)]&&this[_0x295177(0x40a)]&&this['_activeImageId']){let _0x3f5946=this['_getImagePrstGeom'](this[_0x295177(0x296)],this['_subUnitId'],this[_0x295177(0x24d)]);if(_0x3f5946){var _0x515815,_0x5c7908;let _0x24213c=this[_0x295177(0x368)](this[_0x295177(0x296)],this[_0x295177(0x40a)],this['_activeImageId']),_0x2b5e11=(_0x24213c==null||(_0x515815=_0x24213c[_0x295177(0x463)])==null?void 0x0:_0x515815[_0x295177(0x322)])||0x0,_0x2068f1=(_0x24213c==null||(_0x5c7908=_0x24213c['transform'])==null?void 0x0:_0x5c7908[_0x295177(0x49b)])||0x0,_0x4ffc47=this[_0x295177(0x302)](_0x3f5946['prstGeom'],_0x2b5e11,_0x2068f1,_0x3f5946['adjustValues']);_0x4ffc47&&(this[_0x295177(0x1df)]=_0x4ffc47[_0x295177(0x2a1)](),this[_0x295177(0x2cf)](),this['_createControls'](!0x0));}}}));}));}[_0x46885f(0x17e)](){const _0x2430ff=_0x46885f;this['disposeWithMe'](this[_0x2430ff(0x22e)][_0x2430ff(0x2d7)][_0x2430ff(0x494)](_0x66ec87=>{const _0x526923=_0x2430ff;if(_0x66ec87['length']===0x1){let _0x22d4aa=_0x66ec87[0x0];if(_0x22d4aa['drawingType']===a[_0x526923(0x196)][_0x526923(0x38c)]){let {unitId:_0x5dcca6,subUnitId:_0x6b2d09,drawingId:_0x4b056f}=_0x22d4aa,_0x45dd2a=this[_0x526923(0x27e)](_0x5dcca6,_0x6b2d09,_0x4b056f);if(_0x45dd2a){var _0x212150,_0x527e5b;this[_0x526923(0x24d)]=_0x4b056f,this[_0x526923(0x296)]=_0x5dcca6,this[_0x526923(0x40a)]=_0x6b2d09;let _0x38c9b1=this['_getImageDrawingInfo'](_0x5dcca6,_0x6b2d09,_0x4b056f),_0x3afb2b=(_0x38c9b1==null||(_0x212150=_0x38c9b1[_0x526923(0x463)])==null?void 0x0:_0x212150['width'])||0x0,_0x228c1d=(_0x38c9b1==null||(_0x527e5b=_0x38c9b1[_0x526923(0x463)])==null?void 0x0:_0x527e5b[_0x526923(0x49b)])||0x0,_0x1fbca1=this[_0x526923(0x302)](_0x45dd2a[_0x526923(0x26b)],_0x3afb2b,_0x228c1d,_0x45dd2a[_0x526923(0x1b9)]);_0x1fbca1&&(this[_0x526923(0x1df)]=_0x1fbca1[_0x526923(0x2a1)]()),this[_0x526923(0x2cf)](),this[_0x526923(0x27a)](!0x0);}else this[_0x526923(0x488)]();}else this[_0x526923(0x488)]();}else this[_0x526923(0x488)]();})),this['disposeWithMe'](this[_0x2430ff(0x22e)]['update$'][_0x2430ff(0x494)](_0x19b8b4=>{const _0xaceea=_0x2430ff;if(_0x19b8b4[_0xaceea(0x453)]===0x1){let _0x5e31c1=_0x19b8b4[0x0],_0x364747=this['_drawingManagerService'][_0xaceea(0x31f)](_0x5e31c1);(_0x364747==null?void 0x0:_0x364747[_0xaceea(0x218)])===a[_0xaceea(0x196)]['DRAWING_IMAGE']&&this['_activeImageId']===_0x5e31c1[_0xaceea(0x313)]&&(this[_0xaceea(0x2cf)](),this[_0xaceea(0x27a)](!0x0));}})),this['disposeWithMe'](this[_0x2430ff(0x22e)][_0x2430ff(0x436)][_0x2430ff(0x494)](_0x2fe0d1=>{const _0x32e6bf=_0x2430ff;for(let _0x258e76 of _0x2fe0d1)this[_0x32e6bf(0x24d)]===_0x258e76[_0x32e6bf(0x313)]&&this['_resetState']();}));}[_0x46885f(0x488)](){const _0x383d1a=_0x46885f;this['_activeImageId']=null,this[_0x383d1a(0x296)]=null,this[_0x383d1a(0x40a)]=null,this[_0x383d1a(0x1df)]=void 0x0,this[_0x383d1a(0x2cf)]();}};ut=k([O(0x1,s['IDrawingManagerService']),O(0x2,(0x0,a[_0x46885f(0x41b)])(c[_0x46885f(0x23d)])),O(0x3,a[_0x46885f(0x17b)]),O(0x4,(0x0,a['Inject'])(V))],ut);const dt='sheets-shape-contextual-ribbon';let Y=class extends a['Disposable']{constructor(_0x1cbd7b,_0x120ca0,_0x1556b8,_0x39f214,_0x4948ea,_0x2a5925){const _0x3576cf=_0x46885f;super(),this['_menuManagerService']=_0x1cbd7b,this[_0x3576cf(0x4a3)]=_0x120ca0,this[_0x3576cf(0x22e)]=_0x1556b8,this['_univerInstanceService']=_0x39f214,this[_0x3576cf(0x49a)]=_0x4948ea,this[_0x3576cf(0x2d6)]=_0x2a5925,T(this,_0x3576cf(0x48e),!0x1),this['_menuManagerService']['mergeMenu'](Ye),this['disposeWithMe']((0x0,a[_0x3576cf(0x415)])(this[_0x3576cf(0x22e)][_0x3576cf(0x2d7)][_0x3576cf(0x494)](()=>this[_0x3576cf(0x304)]()))),this[_0x3576cf(0x304)]();}['dispose'](){const _0x36e4f3=_0x46885f;this[_0x36e4f3(0x2d6)][_0x36e4f3(0x2ba)](!0x1,dt),this[_0x36e4f3(0x343)](),super[_0x36e4f3(0x169)]();}[_0x46885f(0x304)](){const _0x3ace7e=_0x46885f;var _0x1e23bf;let _0x3fd60a=this[_0x3ace7e(0x22e)][_0x3ace7e(0x225)](),_0x2e5ecc=_0x3fd60a[_0x3ace7e(0x453)]===0x1?_0x3fd60a[0x0]:void 0x0;if((_0x2e5ecc==null?void 0x0:_0x2e5ecc['drawingType'])!==a[_0x3ace7e(0x196)][_0x3ace7e(0x288)]||this[_0x3ace7e(0x1e6)][_0x3ace7e(0x3d5)](_0x2e5ecc[_0x3ace7e(0x332)])!==a[_0x3ace7e(0x267)][_0x3ace7e(0x264)]){this[_0x3ace7e(0x2d6)][_0x3ace7e(0x2ba)](!0x1,dt),this['_hide']();return;}let _0x3fc003=(0x0,e[_0x3ace7e(0x3ba)])((_0x1e23bf=this[_0x3ace7e(0x49a)][_0x3ace7e(0x3c2)](_0x2e5ecc[_0x3ace7e(0x332)]))==null?void 0x0:_0x1e23bf[_0x3ace7e(0x27c)][_0x3ace7e(0x1f6)]())===_0x3ace7e(0x1ea);if(this['_shapeFloatingToolbarService']['setFallbackVisible'](_0x3fc003,dt),_0x3fc003){this[_0x3ace7e(0x343)]();return;}this[_0x3ace7e(0x48e)]||(this['_visible']=!0x0,this[_0x3ace7e(0x4a3)][_0x3ace7e(0x274)](L,{'activate':!0x0}));}[_0x46885f(0x343)](){const _0x52259b=_0x46885f;this['_visible']&&(this['_visible']=!0x1,this[_0x52259b(0x4a3)][_0x52259b(0x2fa)](L),this[_0x52259b(0x4a3)]['setCollapsedIds']([]));}};Y=k([O(0x0,t[_0x46885f(0x48d)]),O(0x1,t[_0x46885f(0x3ce)]),O(0x2,s[_0x46885f(0x19c)]),O(0x3,a['IUniverInstanceService']),O(0x4,c['IRenderManagerService']),O(0x5,(0x0,a[_0x46885f(0x41b)])(e[_0x46885f(0x429)]))],Y);function ft(_0x4c56e1,_0x3a2a6b,_0x42ca2b,_0x53ee02){const _0x1722eb=_0x46885f;let _0x4822a8=(0x0,s[_0x1722eb(0x356)])(_0x4c56e1,_0x3a2a6b,_0x42ca2b),_0x3696c5=[];for(let _0x1db2cd of _0x3a2a6b){let _0xea686e=_0x4822a8[_0x1722eb(0x261)][_0x1722eb(0x3a3)](_0x1db2cd[_0x1722eb(0x313)]),_0x434cb2=_0x53ee02(_0x1db2cd);!_0xea686e||!_0x434cb2||_0x3696c5[_0x1722eb(0x18c)]({'targetShapeId':_0xea686e,'source':_0x434cb2});}return _0x3696c5;}let pt=class extends a[_0x46885f(0x468)]{constructor(_0x270441,_0x456ab5,_0x3d271c,_0x19b433){const _0x5492d5=_0x46885f;super(),this[_0x5492d5(0x1e6)]=_0x270441,this[_0x5492d5(0x284)]=_0x456ab5,this[_0x5492d5(0x168)]=_0x3d271c,this[_0x5492d5(0x464)]=_0x19b433,this[_0x5492d5(0x3e1)]();}[_0x46885f(0x3e1)](){const _0x4d3794=_0x46885f;this[_0x4d3794(0x428)](this[_0x4d3794(0x284)]['interceptCommand']({'getMutations':_0x104b0d=>{const _0x5f31be=_0x4d3794;if(_0x104b0d['id']===o['RemoveSheetCommand']['id']){let _0x1fb546=(0x0,o[_0x5f31be(0x298)])(this['_univerInstanceService'],_0x104b0d[_0x5f31be(0x211)]);if(!_0x1fb546)return{'redos':[],'undos':[]};let {unitId:_0x2c316c,subUnitId:_0x567430}=_0x1fb546,_0x1b76b9=this['_sheetDrawingService']['getDrawingData'](_0x2c316c,_0x567430),_0x146f29=Object['values'](_0x1b76b9)[_0x5f31be(0x339)](_0x29987b=>_0x29987b['drawingType']===a[_0x5f31be(0x196)][_0x5f31be(0x288)]);if(_0x146f29[_0x5f31be(0x453)]===0x0)return{'redos':[],'undos':[]};let _0x16e00c=[],_0x1d7dcf=[];for(let _0x4b1f39=0x0;_0x4b1f39<_0x146f29['length'];_0x4b1f39++){let _0x184103=_0x146f29[_0x4b1f39],_0x5c4e45=this['_sheetsShapeService'][_0x5f31be(0x387)](_0x184103[_0x5f31be(0x332)],_0x184103['subUnitId'],_0x184103[_0x5f31be(0x313)]);_0x5c4e45&&(_0x16e00c['push']({'id':i[_0x5f31be(0x3c9)]['id'],'params':{'unitId':_0x2c316c,'subUnitId':_0x567430,'shapeId':_0x184103[_0x5f31be(0x313)]}}),_0x1d7dcf['push']({'id':i[_0x5f31be(0x483)]['id'],'params':{'unitId':_0x2c316c,'subUnitId':_0x567430,'shapeId':_0x184103[_0x5f31be(0x313)],'shapeType':_0x5c4e45['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x5f31be(0x253)](_0x5c4e45[_0x5f31be(0x279)]()))}}));}return{'redos':_0x16e00c,'undos':_0x1d7dcf};}else{if(_0x104b0d['id']===o[_0x5f31be(0x377)]['id']){let {unitId:_0x298aa6,subUnitId:_0x1ab0ab,targetSubUnitId:_0xc95cc2,copyContext:_0x16ec7b}=_0x104b0d['params'];if(!_0x298aa6||!_0x1ab0ab||!_0xc95cc2)return{'redos':[],'undos':[]};let _0x5b6ff1=this[_0x5f31be(0x168)]['getDrawingData'](_0x298aa6,_0x1ab0ab),_0xec486=Object[_0x5f31be(0x191)](_0x5b6ff1)['filter'](_0xdac139=>_0xdac139[_0x5f31be(0x218)]===a[_0x5f31be(0x196)][_0x5f31be(0x288)]);if(_0xec486['length']===0x0)return{'redos':[],'undos':[]};let _0x4fe440=ft(_0x16ec7b,_0xec486,{'unitId':_0x298aa6,'sourceSubUnitId':_0x1ab0ab,'targetSubUnitId':_0xc95cc2},_0x50c854=>{const _0x1ae55d=_0x5f31be;let _0x5b0e70=this['_sheetsShapeService'][_0x1ae55d(0x387)](_0x50c854[_0x1ae55d(0x332)],_0x50c854[_0x1ae55d(0x46b)],_0x50c854[_0x1ae55d(0x313)]);if(_0x5b0e70)return{'shapeType':_0x5b0e70['getShapeType'](),'shapeData':JSON[_0x1ae55d(0x266)](JSON[_0x1ae55d(0x253)](_0x5b0e70[_0x1ae55d(0x279)]()))};}),_0x2c7c9f=[],_0x5e05e4=[];for(let {targetShapeId:_0x4cc7b8,source:_0x22e836}of _0x4fe440)_0x2c7c9f[_0x5f31be(0x18c)]({'id':i[_0x5f31be(0x483)]['id'],'params':{'unitId':_0x298aa6,'subUnitId':_0xc95cc2,'shapeId':_0x4cc7b8,'shapeType':_0x22e836[_0x5f31be(0x204)],'shapeData':_0x22e836[_0x5f31be(0x2dd)]}}),_0x5e05e4[_0x5f31be(0x18c)]({'id':i[_0x5f31be(0x3c9)]['id'],'params':{'unitId':_0x298aa6,'subUnitId':_0xc95cc2,'shapeId':_0x4cc7b8}});return{'redos':_0x2c7c9f,'undos':_0x5e05e4};}}return{'redos':[],'undos':[]};}}));}};pt=k([O(0x0,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x17b)])),O(0x1,(0x0,a['Inject'])(o['SheetInterceptorService'])),O(0x2,(0x0,a[_0x46885f(0x41b)])(p['ISheetDrawingService'])),O(0x3,(0x0,a[_0x46885f(0x41b)])(i['SheetsShapeService']))],pt);let mt=class extends a[_0x46885f(0x468)]{constructor(_0x5d05ea,_0xfb6d3f,_0xe8dd09,_0x57e86d,_0x4376c5){const _0xc1bcc2=_0x46885f;super(),this[_0xc1bcc2(0x3e4)]=_0x5d05ea,this[_0xc1bcc2(0x2db)]=_0xfb6d3f,this['_drawingManagerService']=_0xe8dd09,this[_0xc1bcc2(0x3ff)]=_0x57e86d,this[_0xc1bcc2(0x464)]=_0x4376c5,T(this,_0xc1bcc2(0x28e),null),this[_0xc1bcc2(0x434)](),this['_initSelection'](),this['_initEditingParams']();}[_0x46885f(0x434)](){const _0x47430d=_0x46885f;let {scene:_0x465491}=this[_0x47430d(0x3e4)];this[_0x47430d(0x428)](_0x465491[_0x47430d(0x2b9)][_0x47430d(0x440)](_0x35fd10=>{const _0x38a979=_0x47430d;let {offsetX:_0xf2d11d,offsetY:_0x1bb890}=_0x35fd10,_0x4fdabd=_0x465491['pick'](c[_0x38a979(0x2f0)][_0x38a979(0x46c)]([_0xf2d11d,_0x1bb890]));if(_0x4fdabd instanceof E){let _0xe51098=this[_0x38a979(0x464)][_0x38a979(0x387)](_0x4fdabd[_0x38a979(0x332)],_0x4fdabd[_0x38a979(0x46b)],_0x4fdabd['shapeId']);if(_0xe51098!=null&&_0xe51098[_0x38a979(0x279)]()['formulaBinding']||(0x0,n[_0x38a979(0x248)])(this[_0x38a979(0x464)][_0x38a979(0x449)](_0x4fdabd[_0x38a979(0x332)],_0x4fdabd[_0x38a979(0x46b)],_0x4fdabd[_0x38a979(0x487)])))return;this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x4fdabd[_0x38a979(0x332)],'subUnitId':_0x4fdabd[_0x38a979(0x46b)],'shapeId':_0x4fdabd[_0x38a979(0x487)],'shapeKey':_0x4fdabd['oKey']});}}));}['_initSelection'](){const _0x1a973a=_0x46885f;this[_0x1a973a(0x428)](this['_drawingManagerService'][_0x1a973a(0x2d7)]['subscribe'](_0x1b8d45=>{const _0x1dbf59=_0x1a973a;if(_0x1b8d45[_0x1dbf59(0x453)]===0x1){let _0x1059da=_0x1b8d45[0x0],_0x5d6a1d=this['_drawingManagerService'][_0x1dbf59(0x31f)](_0x1059da);if((_0x5d6a1d==null?void 0x0:_0x5d6a1d['drawingType'])===a[_0x1dbf59(0x196)]['DRAWING_SHAPE']){var _0x5663a7;let _0x126a70=this[_0x1dbf59(0x2db)]['getEditing']();if((_0x126a70==null?void 0x0:_0x126a70[_0x1dbf59(0x487)])===_0x1059da[_0x1dbf59(0x313)]&&_0x126a70[_0x1dbf59(0x399)])return;let _0x254a10=(0x0,n[_0x1dbf59(0x248)])(this['_sheetsShapeService'][_0x1dbf59(0x449)](_0x1059da['unitId'],_0x1059da[_0x1dbf59(0x46b)],_0x1059da['drawingId'])),_0xc18b03=!!((_0x5663a7=this[_0x1dbf59(0x464)][_0x1dbf59(0x387)](_0x1059da[_0x1dbf59(0x332)],_0x1059da[_0x1dbf59(0x46b)],_0x1059da['drawingId']))!=null&&_0x5663a7[_0x1dbf59(0x279)]()['formulaBinding']);(_0x254a10||_0xc18b03)&&this[_0x1dbf59(0x2db)]['setEditing'](null);}else this[_0x1dbf59(0x2db)]['getEditing']()&&(this[_0x1dbf59(0x2db)][_0x1dbf59(0x1c7)](!0x0),requestAnimationFrame(()=>{const _0x1ea74a=_0x1dbf59;this[_0x1ea74a(0x2db)][_0x1ea74a(0x3da)](null);}));}else this[_0x1dbf59(0x2db)][_0x1dbf59(0x177)]()&&(this['_shapeTextEditingService'][_0x1dbf59(0x1c7)](!0x0),requestAnimationFrame(()=>{const _0x244af3=_0x1dbf59;this[_0x244af3(0x2db)][_0x244af3(0x3da)](null);}));})),this['disposeWithMe'](this[_0x1a973a(0x22e)][_0x1a973a(0x436)]['subscribe'](_0x3d1768=>{const _0x208e48=_0x1a973a;let _0x126bd1=this['_shapeTextEditingService'][_0x208e48(0x177)]();_0x126bd1&&_0x3d1768['some'](_0x491abe=>_0x491abe['drawingId']===_0x126bd1[_0x208e48(0x487)])&&this['_shapeTextEditingService'][_0x208e48(0x3da)](null);}));}[_0x46885f(0x3ea)](){const _0x55e086=_0x46885f;this[_0x55e086(0x428)](this[_0x55e086(0x2db)][_0x55e086(0x2c2)][_0x55e086(0x494)](_0x3d6b1d=>{const _0x4ab43d=_0x55e086;let {scene:_0x4da32e}=this['_context'];if(this['_lastEditingShapeKey']){let _0x573d29=_0x4da32e[_0x4ab43d(0x3c8)](this[_0x4ab43d(0x28e)]);_0x573d29&&_0x573d29[_0x4ab43d(0x3da)](!0x1);}if(_0x3d6b1d){let _0x2847b2=!!_0x3d6b1d[_0x4ab43d(0x399)],_0x14f30d=_0x4da32e['getObjectIncludeInGroup'](_0x3d6b1d['shapeKey']);_0x14f30d&&(_0x14f30d[_0x4ab43d(0x3da)](_0x2847b2),this[_0x4ab43d(0x28e)]=_0x3d6b1d[_0x4ab43d(0x324)]),this[_0x4ab43d(0x3ff)][_0x4ab43d(0x3f3)](a[_0x4ab43d(0x16d)],_0x2847b2);}else this['_lastEditingShapeKey']=null,this[_0x4ab43d(0x3ff)][_0x4ab43d(0x3f3)](a[_0x4ab43d(0x16d)],!0x1);}));}};mt=k([O(0x1,(0x0,a[_0x46885f(0x41b)])(q)),O(0x2,s['IDrawingManagerService']),O(0x3,a[_0x46885f(0x34a)]),O(0x4,(0x0,a[_0x46885f(0x41b)])(i['SheetsShapeService']))],mt);let ht=class extends e[_0x46885f(0x1a0)]{constructor(_0x47b164,_0x1356d3,_0x561562,_0x312f72,_0x223877,_0x115f22,_0xdd5ba3,_0x15ef92,_0x23039c){super(_0x47b164,_0x1356d3,_0x561562,_0x312f72,_0x223877,_0x115f22,_0xdd5ba3,_0x15ef92,_0x23039c,{'componentKey':re,'editorUnitId':R});}};ht=k([O(0x1,(0x0,a['Inject'])(h[_0x46885f(0x42c)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(g[_0x46885f(0x172)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(g[_0x46885f(0x165)])),O(0x4,a[_0x46885f(0x4aa)]),O(0x5,(0x0,a[_0x46885f(0x41b)])(g[_0x46885f(0x3f0)])),O(0x6,(0x0,a[_0x46885f(0x41b)])(e[_0x46885f(0x21f)])),O(0x7,(0x0,a[_0x46885f(0x41b)])(h[_0x46885f(0x1dc)])),O(0x8,(0x0,a[_0x46885f(0x41b)])(g['DocRenderController']))],ht);let X=class extends a['Disposable']{constructor(_0x4b145a,_0x138fd6,_0x3f802f,_0x251737,_0x477648,_0x4a6950){const _0x3df41d=_0x46885f;super(),this[_0x3df41d(0x194)]=_0x4b145a,this[_0x3df41d(0x49a)]=_0x138fd6,this[_0x3df41d(0x22e)]=_0x3f802f,this[_0x3df41d(0x3be)]=_0x251737,this[_0x3df41d(0x3cd)]=_0x477648,this[_0x3df41d(0x2c9)]=_0x4a6950,T(this,_0x3df41d(0x3d7),new Set()),this['_initialize']();}[_0x46885f(0x205)](){const _0x5d15b3=_0x46885f;this[_0x5d15b3(0x1a5)](),this[_0x5d15b3(0x35b)](),this[_0x5d15b3(0x24f)]();}[_0x46885f(0x1a5)](){const _0x3d4dd4=_0x46885f;this[_0x3d4dd4(0x428)](this['_drawingManagerService'][_0x3d4dd4(0x341)][_0x3d4dd4(0x494)](_0x430f47=>{this['_insertShapes'](_0x430f47);}));}[_0x46885f(0x35b)](){const _0x326102=_0x46885f;this[_0x326102(0x428)](this[_0x326102(0x194)][_0x326102(0x2c6)]((_0x2f439b,_0x16dbcc)=>{const _0x32c52a=_0x326102;if(_0x2f439b['id']===i[_0x32c52a(0x44a)]['id']){let {unitId:_0x470879,subUnitId:_0x432e4a,shapeId:_0x3969cc}=_0x2f439b[_0x32c52a(0x211)],_0x312394=this[_0x32c52a(0x496)](_0x470879),_0x189533=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x470879,'subUnitId':_0x432e4a,'drawingId':_0x3969cc}),_0x56b520=_0x312394==null?void 0x0:_0x312394[_0x32c52a(0x1c8)][_0x32c52a(0x3c8)](_0x189533);_0x56b520&&(this[_0x32c52a(0x2c9)][_0x32c52a(0x383)](_0x56b520),this[_0x32c52a(0x2c9)]['refreshFormulaPresentation'](_0x56b520,{'unitId':_0x470879,'subUnitId':_0x432e4a,'shapeId':_0x3969cc}),_0x56b520[_0x32c52a(0x23f)](!0x0));return;}if(_0x2f439b['id']===i[_0x32c52a(0x483)]['id']){var _0x4c086f;let {unitId:_0x27d6ec,subUnitId:_0x34d5e7,shapeId:_0x1948c5}=_0x2f439b[_0x32c52a(0x211)],_0x44380b=this[_0x32c52a(0x496)](_0x27d6ec);if(_0x44380b==null)return;let {scene:_0x509566}=_0x44380b,_0x718c54=(0x0,s[_0x32c52a(0x3c7)])({'unitId':_0x27d6ec,'subUnitId':_0x34d5e7,'drawingId':_0x1948c5}),_0x4fabf2=_0x509566[_0x32c52a(0x3c8)](_0x718c54);if(!((_0x4c086f=this['_renderManagerService'][_0x32c52a(0x3c2)](_0x27d6ec))!=null&&_0x4c086f['with'](l['SheetSkeletonManagerService'])[_0x32c52a(0x478)](_0x34d5e7)))return!0x1;if(_0x4fabf2)return;if(_0x16dbcc!=null&&_0x16dbcc[_0x32c52a(0x402)]){queueMicrotask(()=>{const _0xc5060a=_0x32c52a;this['_disposed']||this[_0xc5060a(0x1b4)]([{'unitId':_0x27d6ec,'subUnitId':_0x34d5e7,'drawingId':_0x1948c5}]);});return;}this['_insertShapes']([{'unitId':_0x27d6ec,'subUnitId':_0x34d5e7,'drawingId':_0x1948c5}]);}}));}[_0x46885f(0x24f)](){const _0x5a05fb=_0x46885f;this['disposeWithMe'](this[_0x5a05fb(0x22e)]['update$'][_0x5a05fb(0x494)](_0x59d971=>{_0x59d971['forEach'](_0x4ea543=>{const _0x15f583=_0x2769;let {unitId:_0x35b856,subUnitId:_0x5ddd8b,drawingId:_0x5c096f}=_0x4ea543,_0x2d6367=this[_0x15f583(0x22e)]['getDrawingByParam'](_0x4ea543);if(_0x2d6367==null)return;let {transform:_0x599cf4,drawingType:_0x5d2bf6,srcRect:_0x49cf2c,prstGeom:_0x1f047d}=_0x2d6367;if(_0x5d2bf6!==a[_0x15f583(0x196)][_0x15f583(0x288)])return;let _0x20ef10=this[_0x15f583(0x496)](_0x35b856);if(_0x20ef10==null)return;let {scene:_0x4978cc,transformer:_0x2c4442}=_0x20ef10;if(_0x599cf4==null)return!0x0;let _0x3a9a01=(0x0,s[_0x15f583(0x3c7)])({'unitId':_0x35b856,'subUnitId':_0x5ddd8b,'drawingId':_0x5c096f}),_0x52c220=_0x4978cc[_0x15f583(0x3c8)](_0x3a9a01);if(_0x52c220==null)return!0x0;_0x52c220[_0x15f583(0x27f)](_0x49cf2c),_0x52c220[_0x15f583(0x268)](_0x1f047d);});}));}['_insertShapes'](_0x53b002){const _0x2b1c12=_0x46885f;for(let _0x3c7e56 of _0x53b002){var _0x3dfe77;let {unitId:_0x50bc8b,subUnitId:_0x570250,drawingId:_0x5aeb5f}=_0x3c7e56,_0x43a6fa=this[_0x2b1c12(0x496)](_0x50bc8b),_0x3d31b5=(_0x3dfe77=(0x0,d['getCurrentUnitInfo'])(this[_0x2b1c12(0x3be)],_0x50bc8b))==null?void 0x0:_0x3dfe77[_0x2b1c12(0x46b)];if(_0x43a6fa==null||_0x3d31b5!==_0x570250)return;let _0x1cafe1=(0x0,s[_0x2b1c12(0x3c7)])({'unitId':_0x50bc8b,'subUnitId':_0x570250,'drawingId':_0x5aeb5f});if(this[_0x2b1c12(0x3d7)][_0x2b1c12(0x3cb)](_0x1cafe1)||_0x43a6fa[_0x2b1c12(0x1c8)][_0x2b1c12(0x3c8)](_0x1cafe1)!=null)return;let _0x591249=this[_0x2b1c12(0x22e)]['getDrawingByParam'](_0x3c7e56);if(_0x591249==null||_0x591249[_0x2b1c12(0x218)]!==a[_0x2b1c12(0x196)][_0x2b1c12(0x288)])return;if((0x0,n[_0x2b1c12(0x248)])((_0x591249[_0x2b1c12(0x41c)]||{})['shapeType'])){let _0xa323b6=_0x591249[_0x2b1c12(0x463)];_0xa323b6&&(_0x591249['transform']={..._0xa323b6,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2b1c12(0x3d7)][_0x2b1c12(0x36a)](_0x1cafe1);try{this[_0x2b1c12(0x2c9)][_0x2b1c12(0x448)](_0x591249,_0x43a6fa[_0x2b1c12(0x1c8)]);}finally{this[_0x2b1c12(0x3d7)][_0x2b1c12(0x2a7)](_0x1cafe1);}queueMicrotask(()=>{const _0x5b077f=_0x2b1c12;if(this[_0x5b077f(0x1d0)])return;let _0x193fe4=(0x0,s[_0x5b077f(0x3c7)])(_0x3c7e56);if(!_0x43a6fa[_0x5b077f(0x1c8)][_0x5b077f(0x3c8)](_0x193fe4))return;let _0x17f6c5=this['_drawingManagerService'][_0x5b077f(0x31f)](_0x3c7e56);_0x17f6c5&&this[_0x5b077f(0x22e)][_0x5b077f(0x1cc)]([_0x17f6c5]);});}}[_0x46885f(0x496)](_0x38bc49){const _0x1654bf=_0x46885f;if(_0x38bc49==null)return;let _0x23d5cf=this['_renderManagerService'][_0x1654bf(0x3c2)](_0x38bc49),_0x4d10bf=_0x23d5cf==null?void 0x0:_0x23d5cf[_0x1654bf(0x1c8)];return _0x4d10bf==null?null:{'scene':_0x4d10bf,'transformer':_0x4d10bf[_0x1654bf(0x40d)]()};}};X=k([O(0x0,a['ICommandService']),O(0x1,c[_0x46885f(0x23d)]),O(0x2,s[_0x46885f(0x19c)]),O(0x3,a['IUniverInstanceService']),O(0x4,(0x0,a[_0x46885f(0x41b)])(d[_0x46885f(0x3d0)])),O(0x5,(0x0,a[_0x46885f(0x41b)])(A))],X);const gt={'normal':{'fill':n[_0x46885f(0x2b0)]['cxnPointFill'],'stroke':n[_0x46885f(0x2b0)][_0x46885f(0x1f4)],'strokeWidth':n[_0x46885f(0x2b0)][_0x46885f(0x3bf)]},'highlighted':{'fill':_0x46885f(0x44c),'stroke':'#1a73e8','strokeWidth':0x2}};var _t=class extends c[_0x46885f(0x40e)]{constructor(_0x5615f6,_0x53f255){const _0x155913=_0x46885f;super(_0x5615f6,_0x53f255),T(this,_0x155913(0x3df),''),T(this,_0x155913(0x355),-0x1),T(this,_0x155913(0x296),''),T(this,_0x155913(0x40a),''),T(this,_0x155913(0x3ae),!0x1),_0x53f255&&this[_0x155913(0x222)](_0x53f255);}[_0x46885f(0x403)](){const _0x59c97c=_0x46885f;return{'unitId':this[_0x59c97c(0x296)],'subUnitId':this[_0x59c97c(0x40a)],'shapeId':this[_0x59c97c(0x3df)],'cxnIndex':this[_0x59c97c(0x355)]};}[_0x46885f(0x3dc)](_0x5f0bf3){const _0x95eedc=_0x46885f;this[_0x95eedc(0x3ae)]!==_0x5f0bf3&&(this[_0x95eedc(0x3ae)]=_0x5f0bf3,this['makeDirty'](!0x0));}['isHighlighted'](){return this['_isHighlighted'];}[_0x46885f(0x222)](_0x36fd43){const _0x73dd7c=_0x46885f;_0x36fd43[_0x73dd7c(0x2ca)]!==void 0x0&&(this['_targetShapeId']=_0x36fd43[_0x73dd7c(0x2ca)]),_0x36fd43[_0x73dd7c(0x426)]!==void 0x0&&(this[_0x73dd7c(0x355)]=_0x36fd43[_0x73dd7c(0x426)]),_0x36fd43[_0x73dd7c(0x332)]!==void 0x0&&(this[_0x73dd7c(0x296)]=_0x36fd43[_0x73dd7c(0x332)]),_0x36fd43[_0x73dd7c(0x46b)]!==void 0x0&&(this[_0x73dd7c(0x40a)]=_0x36fd43['subUnitId']),_0x36fd43[_0x73dd7c(0x375)]!==void 0x0&&(this['_isHighlighted']=_0x36fd43[_0x73dd7c(0x375)]),this['transformByState']({'width':_0x36fd43[_0x73dd7c(0x322)]??n[_0x73dd7c(0x2b0)][_0x73dd7c(0x255)]*0x2,'height':_0x36fd43[_0x73dd7c(0x49b)]??n[_0x73dd7c(0x2b0)][_0x73dd7c(0x255)]*0x2});}[_0x46885f(0x407)](_0x5a5503){const _0x2a5ffe=_0x46885f;let _0x4828a8=this['_isHighlighted']?gt['highlighted']:gt[_0x2a5ffe(0x335)];c[_0x2a5ffe(0x462)][_0x2a5ffe(0x2eb)](_0x5a5503,{'radius':n['ShapeDefaultConfig'][_0x2a5ffe(0x255)],'fill':_0x4828a8[_0x2a5ffe(0x435)],'stroke':_0x4828a8[_0x2a5ffe(0x25d)],'strokeWidth':_0x4828a8[_0x2a5ffe(0x342)],'evented':!0x0});}};let Z=class extends a[_0x46885f(0x468)]{constructor(_0x15819c,_0x52a760,_0x14eed4,_0x1e0f98){const _0x5a0253=_0x46885f;super(),this[_0x5a0253(0x3e4)]=_0x15819c,this[_0x5a0253(0x49a)]=_0x52a760,this[_0x5a0253(0x22e)]=_0x14eed4,this[_0x5a0253(0x464)]=_0x1e0f98,T(this,_0x5a0253(0x45d),[]),T(this,'_activeTargetShapeId',null),T(this,_0x5a0253(0x3a1),-0x1),T(this,_0x5a0253(0x2a2),null),T(this,_0x5a0253(0x296),''),T(this,_0x5a0253(0x40a),''),T(this,_0x5a0253(0x170),null);}[_0x46885f(0x3b7)](_0x34181d,_0x595b7f,_0x3d12e9,_0x37e83a){const _0xaa36ab=_0x46885f;this[_0xaa36ab(0x2a2)]=_0x34181d,this[_0xaa36ab(0x296)]=_0x595b7f,this['_subUnitId']=_0x3d12e9,this[_0xaa36ab(0x170)]=_0x37e83a;}[_0x46885f(0x229)](_0x2631bd){const _0x5efcdd=_0x46885f;if(!this[_0x5efcdd(0x2a2)])return null;let _0x215f49=this[_0x5efcdd(0x2b7)](_0x2631bd);return _0x215f49?(this['_activeTargetShapeId']!==_0x215f49[_0x5efcdd(0x487)]&&(this[_0x5efcdd(0x281)](),this[_0x5efcdd(0x379)](_0x215f49[_0x5efcdd(0x487)],_0x215f49['shapeModel']),this[_0x5efcdd(0x44f)]=_0x215f49['shapeId']),this['_findNearestConnectionSite'](_0x2631bd)):(this[_0x5efcdd(0x44f)]!==null&&(this[_0x5efcdd(0x281)](),this[_0x5efcdd(0x44f)]=null),null);}[_0x46885f(0x2bc)](){const _0x2a45dd=_0x46885f;this[_0x2a45dd(0x281)](),this['_currentScene']=null,this['_activeTargetShapeId']=null,this[_0x2a45dd(0x3a1)]=-0x1,this[_0x2a45dd(0x170)]=null;}[_0x46885f(0x16c)](){const _0x555304=_0x46885f;return this[_0x555304(0x44f)]===null||this[_0x555304(0x3a1)]<0x0?null:{'shapeId':this[_0x555304(0x44f)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x46885f(0x2b7)](_0x1f2683){const _0x16034c=_0x46885f;let _0x1d8698=this[_0x16034c(0x22e)]['getDrawingData'](this[_0x16034c(0x296)],this['_subUnitId']);for(let _0x29417d of Object['keys'](_0x1d8698)){if(_0x29417d===this[_0x16034c(0x170)]||_0x1d8698[_0x29417d][_0x16034c(0x218)]!==a[_0x16034c(0x196)][_0x16034c(0x288)])continue;let _0x42901f=this[_0x16034c(0x464)][_0x16034c(0x387)](this[_0x16034c(0x296)],this[_0x16034c(0x40a)],_0x29417d);if(!_0x42901f||(0x0,n[_0x16034c(0x248)])(_0x42901f[_0x16034c(0x449)]())||_0x42901f[_0x16034c(0x277)]()[_0x16034c(0x453)]===0x0||!this[_0x16034c(0x2a2)])continue;let _0x58ec98=(0x0,s[_0x16034c(0x3c7)])({'unitId':this[_0x16034c(0x296)],'subUnitId':this[_0x16034c(0x40a)],'drawingId':_0x29417d}),_0x52375d=this[_0x16034c(0x2a2)]['getObjectIncludeInGroup'](_0x58ec98);if(!_0x52375d)continue;let {left:_0x5af65f,top:_0x63e370,width:_0x33106c,height:_0x562833}=_0x52375d[_0x16034c(0x175)](),_0x551e87=_0x5af65f+_0x33106c/0x2,_0x2725b7=_0x63e370+_0x562833/0x2,_0x5b40a5=_0x52375d[_0x16034c(0x463)][_0x16034c(0x28b)](),_0x33226b=new c[(_0x16034c(0x162))]([_0x5b40a5[0x0],_0x5b40a5[0x1],_0x5b40a5[0x2],_0x5b40a5[0x3],_0x551e87,_0x2725b7]),_0x364ea0=_0x52375d[_0x16034c(0x430)](),_0x10b552=(_0x52375d['isInGroup']&&(_0x364ea0==null?void 0x0:_0x364ea0['classType'])===c[_0x16034c(0x236)][_0x16034c(0x1d2)]?_0x364ea0[_0x16034c(0x307)]['multiply'](_0x33226b):_0x33226b)[_0x16034c(0x187)]()[_0x16034c(0x1bb)](_0x1f2683),_0x5241b2=_0x33106c/0x2,_0x3a2d38=_0x562833/0x2;if(_0x10b552['x']>=-_0x5241b2-0x5&&_0x10b552['x']<=_0x5241b2+0x5&&_0x10b552['y']>=-_0x3a2d38-0x5&&_0x10b552['y']<=_0x3a2d38+0x5)return{'shapeId':_0x29417d,'shapeModel':_0x42901f};}return null;}['_showConnectionSites'](_0x4fc525,_0x4c4246){const _0x563d60=_0x46885f;if(!this[_0x563d60(0x2a2)])return;let _0x14218a=(0x0,s[_0x563d60(0x3c7)])({'unitId':this[_0x563d60(0x296)],'subUnitId':this['_subUnitId'],'drawingId':_0x4fc525}),_0x66e64c=this[_0x563d60(0x2a2)][_0x563d60(0x3c8)](_0x14218a);if(!_0x66e64c)return;let {left:_0x108276,top:_0x4fcbd0,width:_0x1ea36e,height:_0x2f58e3}=_0x66e64c[_0x563d60(0x175)](),_0x55b023=_0x108276+_0x1ea36e/0x2,_0x281926=_0x4fcbd0+_0x2f58e3/0x2,_0x3364a5=_0x66e64c['transform'][_0x563d60(0x28b)](),_0x172c50=new c[(_0x563d60(0x162))]([_0x3364a5[0x0],_0x3364a5[0x1],_0x3364a5[0x2],_0x3364a5[0x3],_0x55b023,_0x281926]),_0x34e2c1=_0x66e64c[_0x563d60(0x430)](),_0x223e0b=_0x66e64c['isInGroup']&&(_0x34e2c1==null?void 0x0:_0x34e2c1[_0x563d60(0x3af)])===c[_0x563d60(0x236)][_0x563d60(0x1d2)]?_0x34e2c1[_0x563d60(0x307)][_0x563d60(0x467)](_0x172c50):_0x172c50;_0x4c4246['updateContext']({'width':_0x1ea36e,'height':_0x2f58e3});let _0x373071=_0x4c4246[_0x563d60(0x277)]();for(let _0x2a43ca of _0x373071){let _0x48c865=_0x2a43ca['x']-_0x1ea36e/0x2,_0x3e02bb=_0x2a43ca['y']-_0x2f58e3/0x2,_0x38f419=_0x223e0b[_0x563d60(0x1bb)]({'x':_0x48c865,'y':_0x3e02bb}),_0x11adb5=_0x38f419['x'],_0x365315=_0x38f419['y'],_0x49c27d=new _t(_0x563d60(0x3db)+_0x4fc525+'-'+_0x2a43ca[_0x563d60(0x45f)],{'left':_0x11adb5-n[_0x563d60(0x2b0)][_0x563d60(0x255)],'top':_0x365315-n[_0x563d60(0x2b0)][_0x563d60(0x255)],'targetShapeId':_0x4fc525,'cxnIndex':_0x2a43ca[_0x563d60(0x45f)],'unitId':this[_0x563d60(0x296)],'subUnitId':this['_subUnitId'],'width':n[_0x563d60(0x2b0)][_0x563d60(0x255)]*0x2,'height':n[_0x563d60(0x2b0)][_0x563d60(0x255)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x563d60(0x45d)][_0x563d60(0x18c)](_0x49c27d),this[_0x563d60(0x2a2)][_0x563d60(0x182)](_0x49c27d,c['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x46885f(0x1e0)](_0x2b6336){const _0x14292b=_0x46885f;let _0x3afa56=null,_0x4d292f=0x1/0x0,_0xba1bb4=null;for(let _0x35f6a8 of this[_0x14292b(0x45d)]){let _0x378752=_0x35f6a8[_0x14292b(0x174)]+n[_0x14292b(0x2b0)]['cxnPointRadius'],_0x2665a2=_0x35f6a8[_0x14292b(0x4ad)]+n[_0x14292b(0x2b0)][_0x14292b(0x255)],_0x57180a=_0x2b6336['x']-_0x378752,_0x3aad5d=_0x2b6336['y']-_0x2665a2,_0x1cad0c=Math[_0x14292b(0x413)](_0x57180a*_0x57180a+_0x3aad5d*_0x3aad5d);_0x1cad0c<_0x4d292f&&(_0x4d292f=_0x1cad0c,_0x3afa56=_0x35f6a8,_0xba1bb4={'x':_0x378752,'y':_0x2665a2});}let _0x2a8571=_0x4d292f<=0xa&&_0x3afa56?_0x3afa56['getConnectionInfo']()[_0x14292b(0x426)]:-0x1;if(_0x2a8571!==this[_0x14292b(0x3a1)]){for(let _0x3c6010 of this[_0x14292b(0x45d)]){let _0x28f7d0=_0x3c6010['getConnectionInfo']();_0x3c6010[_0x14292b(0x3dc)](_0x28f7d0['cxnIndex']===_0x2a8571);}this[_0x14292b(0x3a1)]=_0x2a8571;}if(_0x4d292f<=0xa&&_0x3afa56&&_0xba1bb4){let _0x2e8c85=_0x3afa56[_0x14292b(0x403)](),_0x21ebda=this[_0x14292b(0x2f7)](_0x2e8c85[_0x14292b(0x487)],_0x2e8c85['cxnIndex']);return{'shapeId':_0x2e8c85['shapeId'],'cxnIndex':_0x2e8c85[_0x14292b(0x426)],'unitId':_0x2e8c85[_0x14292b(0x332)],'subUnitId':_0x2e8c85['subUnitId'],'worldPoint':_0xba1bb4,'angle':_0x21ebda};}return null;}['_getConnectionSiteAngle'](_0xf575f5,_0x5e3f0b){const _0x4b9ea5=_0x46885f;let _0x2b7132=this['_sheetsShapeService']['getShapeModel'](this[_0x4b9ea5(0x296)],this['_subUnitId'],_0xf575f5);if(!_0x2b7132)return 0x0;let _0x1ac333=this[_0x4b9ea5(0x22e)][_0x4b9ea5(0x31f)]({'unitId':this[_0x4b9ea5(0x296)],'subUnitId':this[_0x4b9ea5(0x40a)],'drawingId':_0xf575f5});if(!(_0x1ac333!=null&&_0x1ac333[_0x4b9ea5(0x463)]))return 0x0;let {width:_0x445b60=0x0,height:_0x2c4e89=0x0,flipX:_0x283fb3=!0x1,flipY:_0x497703=!0x1}=_0x1ac333[_0x4b9ea5(0x463)];_0x2b7132[_0x4b9ea5(0x3f7)]({'width':_0x445b60,'height':_0x2c4e89});let _0x57163b=_0x2b7132[_0x4b9ea5(0x277)]()['find'](_0x56272c=>_0x56272c[_0x4b9ea5(0x45f)]===_0x5e3f0b);if(!_0x57163b)return 0x0;let _0x447f1d=_0x57163b[_0x4b9ea5(0x400)]/0xea60;return _0x283fb3&&(_0x447f1d=0xb4-_0x447f1d),_0x497703&&(_0x447f1d=-_0x447f1d),_0x447f1d=(_0x447f1d%0x168+0x168)%0x168,_0x447f1d;}[_0x46885f(0x281)](){const _0x5142fc=_0x46885f;for(let _0x55c948 of this['_connectionSiteObjects'])_0x55c948['dispose']();this['_connectionSiteObjects']=[],this[_0x5142fc(0x3a1)]=-0x1;}[_0x46885f(0x169)](){const _0x1ac570=_0x46885f;this[_0x1ac570(0x281)](),super[_0x1ac570(0x169)]();}};Z=k([O(0x1,(0x0,a[_0x46885f(0x41b)])(c[_0x46885f(0x23d)])),O(0x2,(0x0,a[_0x46885f(0x41b)])(s[_0x46885f(0x19c)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(i['SheetsShapeService']))],Z);let vt=class extends a[_0x46885f(0x468)]{constructor(_0x519304,_0x1b87e3,_0x3088bc,_0x3f993e,_0x27802d){const _0x39f6cf=_0x46885f;super(),this['_sheetSkeletonService']=_0x519304,this[_0x39f6cf(0x1dd)]=_0x1b87e3,this[_0x39f6cf(0x168)]=_0x3088bc,this[_0x39f6cf(0x42b)]=_0x3f993e,this[_0x39f6cf(0x21e)]=_0x27802d,T(this,_0x39f6cf(0x2fb),void 0x0),this[_0x39f6cf(0x3b1)](),this[_0x39f6cf(0x28f)]();}get[_0x46885f(0x394)](){const _0x576e09=_0x46885f;return this['_sheetDrawingService'][_0x576e09(0x225)]();}[_0x46885f(0x28f)](){const _0xf3e8bf=_0x46885f;this[_0xf3e8bf(0x21e)]['registerFeaturePasteHook'](({fromUnitId:_0x4bff2b,fromSubUnitId:_0x49e748,toUnitId:_0x448ea7,toSubUnitId:_0x30ff2d,idMap:_0x3336af})=>{const _0x1074f3=_0xf3e8bf;let _0x2abeff=[],_0x44149b=[];for(let [_0x30b0d3,_0x251efb]of _0x3336af['entries']()){let _0x8c4636=this['_shapeService']['getShapeModel'](_0x4bff2b,_0x49e748,_0x30b0d3);if(!_0x8c4636)continue;let _0x440dba=_0x8c4636['getShapeType'](),_0x3e2b8b=JSON[_0x1074f3(0x266)](JSON[_0x1074f3(0x253)](_0x8c4636[_0x1074f3(0x279)]()));if(_0x3e2b8b[_0x1074f3(0x17d)]){var _0xe1f309,_0x5d59c0;let _0x42011f=(_0xe1f309=_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)])==null?void 0x0:_0xe1f309['shapeId'],_0x31f14e=(_0x5d59c0=_0x3e2b8b['relation']['to'])==null?void 0x0:_0x5d59c0[_0x1074f3(0x487)],_0x27433a=!_0x42011f||_0x3336af[_0x1074f3(0x3cb)](_0x42011f),_0x1e681c=!_0x31f14e||_0x3336af[_0x1074f3(0x3cb)](_0x31f14e);_0x27433a&&_0x42011f&&_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)]?_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)]={..._0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)],'shapeId':_0x3336af[_0x1074f3(0x3a3)](_0x42011f)}:_0x3e2b8b[_0x1074f3(0x17d)][_0x1074f3(0x420)]=void 0x0,_0x1e681c&&_0x31f14e&&_0x3e2b8b[_0x1074f3(0x17d)]['to']?_0x3e2b8b[_0x1074f3(0x17d)]['to']={..._0x3e2b8b[_0x1074f3(0x17d)]['to'],'shapeId':_0x3336af[_0x1074f3(0x3a3)](_0x31f14e)}:_0x3e2b8b['relation']['to']=void 0x0;}_0x2abeff['push']({'id':i[_0x1074f3(0x483)]['id'],'params':{'unitId':_0x448ea7,'subUnitId':_0x30ff2d,'shapeId':_0x251efb,'shapeType':_0x440dba,'shapeData':_0x3e2b8b}}),_0x44149b[_0x1074f3(0x18c)]({'id':i[_0x1074f3(0x3c9)]['id'],'params':{'unitId':_0x448ea7,'subUnitId':_0x30ff2d,'shapeId':_0x251efb}});}return{'redos':_0x2abeff,'undos':_0x44149b};});}[_0x46885f(0x3b1)](){const _0x4f3c50=_0x46885f;this['disposeWithMe'](this[_0x4f3c50(0x1dd)]['addClipboardHook']({'id':_0x4f3c50(0x359),'onBeforeCopy':(_0x9a6f5a,_0x3bcef1,_0x377b88,_0x31ff44)=>{const _0x52a0d7=_0x4f3c50;this[_0x52a0d7(0x2fb)]=null;let _0x26ac5a=this['_focusedDrawings'];if(_0x26ac5a[_0x52a0d7(0x453)]){let _0x366f1a=_0x26ac5a[_0x52a0d7(0x339)](_0x4f7721=>_0x4f7721['drawingType']===a[_0x52a0d7(0x196)][_0x52a0d7(0x288)]);if(_0x366f1a[_0x52a0d7(0x453)]===0x0)return;this[_0x52a0d7(0x2fb)]={'unitId':_0x9a6f5a,'subUnitId':_0x3bcef1,'copyType':_0x31ff44,'drawings':_0x366f1a};}else this[_0x52a0d7(0x31b)](_0x9a6f5a,_0x3bcef1,_0x377b88,_0x31ff44);},'onPasteCells':(_0x459556,_0xbed739,_0x8d3280,_0x5d6223)=>{const _0x2937f6=_0x4f3c50;if(!this[_0x2937f6(0x2fb)])return{'redos':[],'undos':[]};let {pasteType:_0x21c1f7}=_0x5d6223;return _0x21c1f7===l['PREDEFINED_HOOK_NAME'][_0x2937f6(0x178)]?this[_0x2937f6(0x455)](_0xbed739,this['_copyInfo'][_0x2937f6(0x199)]===l[_0x2937f6(0x1a2)][_0x2937f6(0x41d)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x451309=>this[_0x4f3c50(0x2fb)]?this[_0x4f3c50(0x455)](_0x451309,this[_0x4f3c50(0x2fb)][_0x4f3c50(0x199)]===l[_0x4f3c50(0x1a2)][_0x4f3c50(0x41d)]):{'redos':[],'undos':[]}}));}[_0x46885f(0x31b)](_0x2d91e0,_0x3fb133,_0x1f98b6,_0x283180){const _0xe1461e=_0x46885f;let _0x357044=this['_sheetSkeletonService'][_0xe1461e(0x478)](_0x2d91e0,_0x3fb133);if(!_0x357044)return;let _0x122285=(0x0,o[_0xe1461e(0x2f2)])(_0x357044,_0x1f98b6);if(!_0x122285)return;let {startX:_0xe68968,endX:_0x1e4482,startY:_0x20d0cb,endY:_0x153b14}=_0x122285,_0x3bb6c4=this['_sheetDrawingService']['getDrawingData'](_0x2d91e0,_0x3fb133),_0x3939a8=this[_0xe1461e(0x394)]['slice']();for(let [_0x11f22c,_0x241e7c]of Object[_0xe1461e(0x3c5)](_0x3bb6c4)){if(_0x241e7c[_0xe1461e(0x218)]!==a[_0xe1461e(0x196)][_0xe1461e(0x288)])continue;let {transform:_0x42f925}=_0x241e7c;if(!_0x42f925)continue;let {left:_0x10745b=0x0,top:_0x232987=0x0,width:_0x2b9908=0x0,height:_0x2b99f8=0x0}=_0x42f925;_0xe68968<=_0x10745b&&_0x1e4482>=_0x10745b+_0x2b9908&&_0x20d0cb<=_0x232987&&_0x153b14>=_0x232987+_0x2b99f8&&_0x3939a8['push'](_0x241e7c);}_0x3939a8[_0xe1461e(0x453)]>0x0&&(this['_copyInfo']={'unitId':_0x2d91e0,'subUnitId':_0x3fb133,'copyType':_0x283180,'copyRange':_0x1f98b6,'drawings':_0x3939a8});}[_0x46885f(0x455)](_0x459ed3,_0x5793a8){const _0x2fa643=_0x46885f;let {unitId:_0x4c1870,subUnitId:_0x4a3942,range:_0xc240cb}=_0x459ed3,_0x3a867c=this[_0x2fa643(0x392)][_0x2fa643(0x478)](_0x4c1870,_0x4a3942);if(!_0x3a867c)return{'redos':[],'undos':[]};let _0x5a2a29=(0x0,o[_0x2fa643(0x305)])(_0xc240cb),{unitId:_0x20ee9e,subUnitId:_0x4531f2,copyRange:_0x5692ce,drawings:_0x250d14}=this['_copyInfo'],_0x238488=this['_sheetSkeletonService']['getSkeleton'](_0x20ee9e,_0x4531f2);if(!_0x238488)return{'redos':[],'undos':[]};let _0x291568;if(!_0x5692ce){let _0xcf973a=0x1/0x0,_0x118060=0x1/0x0;for(let _0x36851d of _0x250d14){let {left:_0x303731=0x0,top:_0x2bfd67=0x0}=_0x36851d[_0x2fa643(0x463)]??{};_0x303731<_0xcf973a&&(_0xcf973a=_0x303731),_0x2bfd67<_0x118060&&(_0x118060=_0x2bfd67);}_0xcf973a!==0x1/0x0&&_0x118060!==0x1/0x0&&(_0x291568={'left':_0xcf973a,'top':_0x118060});}let _0x2f68fc=new Map();if(!_0x5793a8){for(let _0x4899c7 of _0x250d14)_0x2f68fc[_0x2fa643(0x422)](_0x4899c7[_0x2fa643(0x313)],(0x0,a['generateRandomId'])());}let _0x555923=[],_0x35cf8e=[];for(let _0x3f172d of _0x250d14){let {drawingId:_0x26dc7f,transform:_0x5ef721,sheetTransform:_0x3ef743}=_0x3f172d;if(!_0x5ef721||!_0x3ef743)continue;let _0x2302ad=this['_updateTransform']({'transform':_0x5ef721,'sheetTransform':_0x3ef743},{'skeleton':_0x238488,'range':_0x5692ce},{'skeleton':_0x3a867c,'range':_0x5a2a29},_0x291568);if(_0x5793a8){let {redos:_0x57f245,undos:_0x3fff86}=this[_0x2fa643(0x2d1)]({'fromUnitId':_0x20ee9e,'fromSubUnitId':_0x4531f2,'toUnitId':_0x4c1870,'toSubUnitId':_0x4a3942,'drawing':_0x3f172d,'newTransforms':_0x2302ad});_0x555923[_0x2fa643(0x18c)](..._0x57f245),_0x35cf8e[_0x2fa643(0x18c)](..._0x3fff86);continue;}let {redos:_0x2cb0d1,undos:_0x5e4ddb}=this['_generateCopyPasteMutations']({'toUnitId':_0x4c1870,'toSubUnitId':_0x4a3942,'drawing':_0x3f172d,'newTransforms':_0x2302ad,'newDrawingId':_0x2f68fc[_0x2fa643(0x3a3)](_0x26dc7f),'idMap':_0x2f68fc});_0x555923[_0x2fa643(0x18c)](..._0x2cb0d1),_0x35cf8e[_0x2fa643(0x18c)](..._0x5e4ddb);}return{'redos':_0x555923,'undos':_0x35cf8e};}[_0x46885f(0x2d1)](_0x4b0dbf){const _0x4a34b8=_0x46885f;let {fromUnitId:_0x4a0f10,fromSubUnitId:_0x94afc3,toUnitId:_0x311cf2,toSubUnitId:_0x412052,drawing:_0x5ca6e1,newTransforms:_0x184ba9}=_0x4b0dbf,_0x33eb73={..._0x5ca6e1,'unitId':_0x311cf2,'subUnitId':_0x412052,'transform':_0x184ba9['transform'],'sheetTransform':_0x184ba9['sheetTransform']};if(_0x311cf2===_0x4a0f10&&_0x412052===_0x94afc3){let {redo:_0x182df4,undo:_0x2b45a6,objects:_0xee3924}=this[_0x4a34b8(0x168)][_0x4a34b8(0x473)]([_0x33eb73]);return{'redos':[{'id':p[_0x4a34b8(0x2b2)]['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x23b)],'op':_0x182df4,'objects':_0xee3924}}],'undos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x23b)],'op':_0x2b45a6,'objects':_0xee3924}}]};}else{let _0x39749f=this[_0x4a34b8(0x168)][_0x4a34b8(0x439)]([_0x5ca6e1]),_0x2657ad=this['_sheetDrawingService'][_0x4a34b8(0x373)]([_0x33eb73]),_0x3eeea3=this['_shapeService']['getShapeModel'](_0x5ca6e1[_0x4a34b8(0x332)],_0x5ca6e1[_0x4a34b8(0x46b)],_0x5ca6e1[_0x4a34b8(0x313)]);if(!_0x3eeea3)return{'redos':[],'undos':[]};let _0x3e87b8=_0x3eeea3['getShapeType'](),_0x1bde30=JSON['parse'](JSON[_0x4a34b8(0x253)](_0x3eeea3[_0x4a34b8(0x279)]()));return{'redos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'type':p[_0x4a34b8(0x30e)]['REMOVE'],'op':_0x39749f[_0x4a34b8(0x39b)],'objects':_0x39749f[_0x4a34b8(0x203)]}},{'id':i[_0x4a34b8(0x3c9)]['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'shapeId':_0x5ca6e1[_0x4a34b8(0x313)]}},{'id':p[_0x4a34b8(0x2b2)]['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x330)],'op':_0x2657ad['redo'],'objects':_0x2657ad[_0x4a34b8(0x203)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'shapeId':_0x5ca6e1[_0x4a34b8(0x313)],'shapeType':_0x3e87b8,'shapeData':_0x1bde30}}],'undos':[{'id':p[_0x4a34b8(0x2b2)]['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'type':p['DrawingApplyType'][_0x4a34b8(0x330)],'op':_0x39749f['undo'],'objects':_0x39749f[_0x4a34b8(0x203)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4a0f10,'subUnitId':_0x94afc3,'shapeId':_0x5ca6e1['drawingId'],'shapeType':_0x3e87b8,'shapeData':_0x1bde30}},{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'type':p[_0x4a34b8(0x30e)][_0x4a34b8(0x401)],'op':_0x2657ad[_0x4a34b8(0x3aa)],'objects':_0x2657ad[_0x4a34b8(0x203)]}},{'id':i[_0x4a34b8(0x3c9)]['id'],'params':{'unitId':_0x311cf2,'subUnitId':_0x412052,'shapeId':_0x5ca6e1[_0x4a34b8(0x313)]}}]};}}[_0x46885f(0x2d4)](_0x216a8e){const _0x4b8668=_0x46885f;let {toUnitId:_0x3806b7,toSubUnitId:_0x350bca,drawing:_0x113a5a,newTransforms:_0x428bcc,newDrawingId:_0x8529c0,idMap:_0x45449c}=_0x216a8e,_0x17e4bd={..._0x113a5a,'unitId':_0x3806b7,'subUnitId':_0x350bca,'drawingId':_0x8529c0,'transform':_0x428bcc[_0x4b8668(0x463)],'sheetTransform':_0x428bcc[_0x4b8668(0x220)]},{redo:_0x57c230,undo:_0x312e54,objects:_0x3bb33b}=this['_sheetDrawingService'][_0x4b8668(0x373)]([_0x17e4bd]),_0x1be283=this[_0x4b8668(0x42b)][_0x4b8668(0x387)](_0x113a5a[_0x4b8668(0x332)],_0x113a5a['subUnitId'],_0x113a5a[_0x4b8668(0x313)]);if(!_0x1be283)return{'redos':[],'undos':[]};let _0x5d4e86=_0x1be283[_0x4b8668(0x449)](),_0x128767=JSON[_0x4b8668(0x266)](JSON[_0x4b8668(0x253)](_0x1be283[_0x4b8668(0x279)]()));if(_0x128767[_0x4b8668(0x17d)]){var _0x2cdf5c,_0x365a06;let _0x2baae4=(_0x2cdf5c=_0x128767[_0x4b8668(0x17d)][_0x4b8668(0x420)])==null?void 0x0:_0x2cdf5c['shapeId'],_0x58b2a6=(_0x365a06=_0x128767['relation']['to'])==null?void 0x0:_0x365a06[_0x4b8668(0x487)],_0x244e4f=!_0x2baae4||_0x45449c[_0x4b8668(0x3cb)](_0x2baae4),_0x2f0d04=!_0x58b2a6||_0x45449c[_0x4b8668(0x3cb)](_0x58b2a6);_0x244e4f&&_0x2baae4&&_0x128767[_0x4b8668(0x17d)]['from']?_0x128767[_0x4b8668(0x17d)]['from']={..._0x128767[_0x4b8668(0x17d)][_0x4b8668(0x420)],'shapeId':_0x45449c[_0x4b8668(0x3a3)](_0x2baae4)}:_0x128767['relation'][_0x4b8668(0x420)]=void 0x0,_0x2f0d04&&_0x58b2a6&&_0x128767[_0x4b8668(0x17d)]['to']?_0x128767[_0x4b8668(0x17d)]['to']={..._0x128767['relation']['to'],'shapeId':_0x45449c[_0x4b8668(0x3a3)](_0x58b2a6)}:_0x128767[_0x4b8668(0x17d)]['to']=void 0x0;}return{'redos':[{'id':p[_0x4b8668(0x2b2)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'type':p[_0x4b8668(0x30e)]['INSERT'],'op':_0x57c230,'objects':_0x3bb33b}},{'id':i[_0x4b8668(0x483)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'shapeId':_0x8529c0,'shapeType':_0x5d4e86,'shapeData':_0x128767}}],'undos':[{'id':p[_0x4b8668(0x2b2)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'type':p['DrawingApplyType'][_0x4b8668(0x401)],'op':_0x312e54,'objects':_0x3bb33b}},{'id':i[_0x4b8668(0x3c9)]['id'],'params':{'unitId':_0x3806b7,'subUnitId':_0x350bca,'shapeId':_0x8529c0}}]};}[_0x46885f(0x259)](_0x38b736,_0x3bdc89,_0x413ea6,_0x444c08){const _0x952914=_0x46885f;let {range:_0x517c5b,skeleton:_0x886f3c}=_0x3bdc89,{range:_0x22d0df,skeleton:_0x4ab49c}=_0x413ea6,{transform:_0x17b38f,sheetTransform:_0x2a6786}=_0x38b736,_0x181874={..._0x17b38f};if(_0x517c5b){let _0x1b3560=(0x0,o[_0x952914(0x2f2)])(_0x886f3c,_0x517c5b),_0x37c9ec=(0x0,o[_0x952914(0x2f2)])(_0x4ab49c,_0x22d0df);if(_0x1b3560&&_0x37c9ec){let _0x3a9137=_0x37c9ec[_0x952914(0x2c1)]-_0x1b3560['startX'],_0xac5692=_0x37c9ec[_0x952914(0x35a)]-_0x1b3560[_0x952914(0x35a)];_0x181874[_0x952914(0x174)]=(_0x181874['left']??0x0)+_0x3a9137,_0x181874['top']=(_0x181874[_0x952914(0x4ad)]??0x0)+_0xac5692;}}else{let _0x5c01a2=(0x0,o[_0x952914(0x2f2)])(_0x4ab49c,_0x22d0df);if(_0x444c08&&_0x5c01a2){let _0x6ddab2=(_0x181874[_0x952914(0x174)]??0x0)-_0x444c08[_0x952914(0x174)],_0x326a29=(_0x181874[_0x952914(0x4ad)]??0x0)-_0x444c08[_0x952914(0x4ad)];_0x181874[_0x952914(0x174)]=_0x5c01a2[_0x952914(0x2c1)]+_0x6ddab2,_0x181874[_0x952914(0x4ad)]=_0x5c01a2[_0x952914(0x35a)]+_0x326a29;}else _0x181874[_0x952914(0x174)]=_0x5c01a2==null?void 0x0:_0x5c01a2[_0x952914(0x2c1)],_0x181874[_0x952914(0x4ad)]=_0x5c01a2==null?void 0x0:_0x5c01a2['startY'];}return{'transform':_0x181874,'sheetTransform':(0x0,p[_0x952914(0x492)])(_0x181874,_0x4ab49c)??_0x2a6786};}};vt=k([O(0x0,(0x0,a['Inject'])(o[_0x46885f(0x43a)])),O(0x1,(0x0,a[_0x46885f(0x41b)])(l['ISheetClipboardService'])),O(0x2,(0x0,a[_0x46885f(0x41b)])(p[_0x46885f(0x1e8)])),O(0x3,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x4,(0x0,a[_0x46885f(0x41b)])(_[_0x46885f(0x380)]))],vt);var yt=class extends c['Shape']{constructor(_0x4c8469,_0x1c9c2a){const _0x16e690=_0x46885f;super(_0x4c8469,_0x1c9c2a),T(this,_0x16e690(0x1a6),null),T(this,_0x16e690(0x280),null),T(this,_0x16e690(0x296),null),T(this,_0x16e690(0x40a),null),T(this,_0x16e690(0x3a6),!0x1),_0x1c9c2a&&this[_0x16e690(0x222)](_0x1c9c2a);}[_0x46885f(0x4ac)](){const _0x2990a2=_0x46885f;return{'unitId':this[_0x2990a2(0x296)],'subUnitId':this[_0x2990a2(0x40a)],'drawingId':this['_shapeId']};}[_0x46885f(0x222)](_0x5475dd){const _0x4f4f72=_0x46885f;_0x5475dd[_0x4f4f72(0x487)]!==void 0x0&&(this[_0x4f4f72(0x1a6)]=_0x5475dd[_0x4f4f72(0x487)]),_0x5475dd[_0x4f4f72(0x332)]!==void 0x0&&(this['_unitId']=_0x5475dd[_0x4f4f72(0x332)]),_0x5475dd[_0x4f4f72(0x46b)]!==void 0x0&&(this[_0x4f4f72(0x40a)]=_0x5475dd[_0x4f4f72(0x46b)]),_0x5475dd['isStartConnectorPoint']!==void 0x0&&(this[_0x4f4f72(0x3a6)]=_0x5475dd['isStartConnectorPoint']),this[_0x4f4f72(0x414)]({'width':_0x5475dd[_0x4f4f72(0x322)],'height':_0x5475dd[_0x4f4f72(0x49b)]});}['_draw'](_0x2251b8){const _0x1b587a=_0x46885f;c[_0x1b587a(0x462)][_0x1b587a(0x2eb)](_0x2251b8,{'radius':n[_0x1b587a(0x2b0)][_0x1b587a(0x255)],'fill':n[_0x1b587a(0x2b0)][_0x1b587a(0x232)],'stroke':n[_0x1b587a(0x2b0)]['cxnPointStroke'],'strokeWidth':n[_0x1b587a(0x2b0)][_0x1b587a(0x3bf)],'evented':!0x0});}};let bt=class extends a['Disposable']{constructor(_0x3ac1d7,_0x2244df,_0x457be2,_0x44ca75,_0x28d450,_0x52eca2,_0x3938c5,_0x53420b){const _0x2ac8f1=_0x46885f;super(),this[_0x2ac8f1(0x3e4)]=_0x3ac1d7,this['_commandService']=_0x2244df,this[_0x2ac8f1(0x49a)]=_0x457be2,this[_0x2ac8f1(0x22e)]=_0x44ca75,this[_0x2ac8f1(0x1e6)]=_0x28d450,this[_0x2ac8f1(0x464)]=_0x52eca2,this['_sheetShapeAdjustController']=_0x3938c5,this[_0x2ac8f1(0x34b)]=_0x53420b,T(this,_0x2ac8f1(0x43c),void 0x0),T(this,_0x2ac8f1(0x296),void 0x0),T(this,_0x2ac8f1(0x40a),void 0x0),T(this,_0x2ac8f1(0x183),[]),T(this,_0x2ac8f1(0x29d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),T(this,_0x2ac8f1(0x173),void 0x0),T(this,_0x2ac8f1(0x2b6),!0x1),T(this,_0x2ac8f1(0x1ad),!0x1),T(this,'_hasReset',!0x1),T(this,_0x2ac8f1(0x25b),void 0x0),T(this,_0x2ac8f1(0x319),void 0x0),T(this,_0x2ac8f1(0x37c),null),this['_initialize']();}[_0x46885f(0x205)](){const _0x53acd5=_0x46885f;this[_0x53acd5(0x28c)](),this[_0x53acd5(0x1ef)]();}[_0x46885f(0x362)](){const _0x44121b=_0x46885f;if(!this[_0x44121b(0x296)]||!this[_0x44121b(0x40a)]||!this[_0x44121b(0x43c)])return;let _0x445288={'unitId':this[_0x44121b(0x296)],'subUnitId':this[_0x44121b(0x40a)],'drawingId':this[_0x44121b(0x43c)]},{transform:_0x392241}=this[_0x44121b(0x22e)][_0x44121b(0x31f)](_0x445288);if(_0x392241)return{'left':_0x392241[_0x44121b(0x174)]||0x0,'top':_0x392241[_0x44121b(0x4ad)]||0x0,'width':_0x392241[_0x44121b(0x322)]||0x0,'height':_0x392241[_0x44121b(0x49b)]||0x0,'flipX':_0x392241[_0x44121b(0x271)]||!0x1,'flipY':_0x392241[_0x44121b(0x243)]||!0x1,'angle':_0x392241['angle']};}[_0x46885f(0x1c2)](){const _0xc4bd8=_0x46885f;if(this[_0xc4bd8(0x296)]===void 0x0||this[_0xc4bd8(0x40a)]===void 0x0||this[_0xc4bd8(0x43c)]===void 0x0)return;let _0x4b7702=this[_0xc4bd8(0x49a)][_0xc4bd8(0x3c2)](this[_0xc4bd8(0x296)]);if(!_0x4b7702||!_0x4b7702[_0xc4bd8(0x42e)](l[_0xc4bd8(0x166)])[_0xc4bd8(0x3ab)]())return;let {scene:_0x17ad54}=_0x4b7702,_0x1ae5ed=this['_getDrawingRect']();if(!_0x1ae5ed)return;let _0x1ab6ac=this[_0xc4bd8(0x464)][_0xc4bd8(0x387)](this[_0xc4bd8(0x296)],this['_subUnitId'],this[_0xc4bd8(0x43c)]);if(!_0x1ab6ac||!(0x0,n[_0xc4bd8(0x248)])(_0x1ab6ac[_0xc4bd8(0x449)]()))return;let _0x4e9661=_0x1ab6ac[_0xc4bd8(0x310)]();if(_0x4e9661[_0xc4bd8(0x453)]<0x2)return;let _0x3caa9b=new n[(_0xc4bd8(0x2ad))](_0x1ae5ed),_0x541745=_0x4e9661[0x0],_0x249047=_0x4e9661[_0x4e9661[_0xc4bd8(0x453)]-0x1],_0xed47d3=_0x3caa9b['localToWorld'](_0x541745),_0x1b3b56=_0x3caa9b[_0xc4bd8(0x42f)](_0x249047);this['_addShapeConnectorHandlerObject'](_0x17ad54,{..._0xed47d3},!0x0),this[_0xc4bd8(0x16b)](_0x17ad54,{..._0x1b3b56},!0x1);}[_0x46885f(0x16b)](_0x649993,_0x214a93,_0x433538){const _0x42d4fa=_0x46885f;if(this[_0x42d4fa(0x43c)]===void 0x0||this[_0x42d4fa(0x296)]===void 0x0||this[_0x42d4fa(0x40a)]===void 0x0)return;let _0x163ba4='connector-handler-'+this['_unitId']+'-'+this[_0x42d4fa(0x40a)]+'-'+this[_0x42d4fa(0x43c)]+'-'+(_0x433538?_0x42d4fa(0x22a):_0x42d4fa(0x195)),_0x1e4b53=_0x649993[_0x42d4fa(0x3c8)](_0x163ba4);if(_0x1e4b53){_0x1e4b53[_0x42d4fa(0x414)]({'left':_0x214a93['x']-n[_0x42d4fa(0x2b0)][_0x42d4fa(0x255)],'top':_0x214a93['y']-n[_0x42d4fa(0x2b0)][_0x42d4fa(0x255)]});return;}let _0x3461d2=new yt(_0x163ba4,{'left':_0x214a93['x']-n[_0x42d4fa(0x2b0)][_0x42d4fa(0x255)],'top':_0x214a93['y']-n[_0x42d4fa(0x2b0)]['cxnPointRadius'],'shapeId':this[_0x42d4fa(0x43c)],'unitId':this[_0x42d4fa(0x296)],'subUnitId':this[_0x42d4fa(0x40a)],'isStartConnectorPoint':_0x433538,'width':n['ShapeDefaultConfig'][_0x42d4fa(0x255)]*0x2,'height':n['ShapeDefaultConfig'][_0x42d4fa(0x255)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x42d4fa(0x183)]['push'](_0x3461d2),this[_0x42d4fa(0x3b2)](_0x3461d2,_0x649993,_0x433538),_0x649993['addObject'](_0x3461d2,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x46885f(0x29f)](_0xa7b6bd,_0x58bff4){const _0x1beae7=_0x46885f;var _0x1557a7;let _0x1d8eee={'x':0x0,'y':0x0};if(!_0xa7b6bd||!_0x58bff4)return _0x1d8eee;let _0x20f787=this['_renderManagerService'][_0x1beae7(0x3c2)](_0xa7b6bd);if(!_0x20f787||!_0x20f787[_0x1beae7(0x42e)](l['SheetSkeletonManagerService'])[_0x1beae7(0x478)](_0x58bff4))return _0x1d8eee;let _0x5db8c7=_0x20f787[_0x1beae7(0x42e)](l['SheetScrollManagerService']),_0x53ad1a=_0x5db8c7==null?void 0x0:_0x5db8c7[_0x1beae7(0x208)]();if(!_0x53ad1a)return _0x1d8eee;let _0x4d6955=(_0x1557a7=this[_0x1beae7(0x1e6)]['getUnit'](_0xa7b6bd))==null?void 0x0:_0x1557a7['getSheetBySheetId'](_0x58bff4);if(!_0x4d6955)return _0x1d8eee;let _0x45bc7a=(0x0,l[_0x1beae7(0x1b0)])(_0x53ad1a[_0x1beae7(0x381)],_0x53ad1a[_0x1beae7(0x221)],_0x20f787[_0x1beae7(0x1c8)],_0x4d6955);return _0x45bc7a?{'x':_0x45bc7a['viewportScrollX'],'y':_0x45bc7a[_0x1beae7(0x451)]}:_0x1d8eee;}[_0x46885f(0x19e)](_0x1d9698,_0x4a09ad){const _0x52afa2=_0x46885f;var _0x5a374c;let _0x11ad8f=(_0x5a374c=this[_0x52afa2(0x1e6)][_0x52afa2(0x47d)](_0x1d9698))==null?void 0x0:_0x5a374c[_0x52afa2(0x231)](_0x4a09ad);return(_0x11ad8f==null?void 0x0:_0x11ad8f[_0x52afa2(0x3cf)]())??0x1;}[_0x46885f(0x457)](_0x57b55c,_0x305721,_0x823aa0,_0x355d21,_0x299be8){const _0x230f76=_0x46885f;this[_0x230f76(0x25b)][_0x230f76(0x46a)](),this[_0x230f76(0x319)]['unsubscribe'](),this[_0x230f76(0x35c)]['refreshAdjustControls']();let _0x23cf72=this[_0x230f76(0x37c)];this[_0x230f76(0x34b)][_0x230f76(0x2bc)]();let _0x3857d2=this['_getScrollInfo'](this[_0x230f76(0x296)],this['_subUnitId']),_0x2cb34d=this['_getZoomRatio'](this['_unitId'],this[_0x230f76(0x40a)]),_0x23c894={'x':_0x823aa0[_0x230f76(0x1e7)]/_0x2cb34d+_0x3857d2['x'],'y':_0x823aa0[_0x230f76(0x425)]/_0x2cb34d+_0x3857d2['y']},_0x32af11=_0x23cf72?_0x23cf72[_0x230f76(0x263)]:_0x23c894,_0x4a4970=_0x355d21?this[_0x230f76(0x173)][_0x230f76(0x3d2)]():this[_0x230f76(0x173)][_0x230f76(0x4a6)](),_0x880a70=this[_0x230f76(0x173)][_0x230f76(0x449)]();_0x4a4970?this[_0x230f76(0x1fc)](_0x4a4970,_0x32af11,_0x355d21,_0x23cf72,_0x299be8):this['_handleFreeEndpointPointerUp'](_0x305721,_0x32af11,_0x355d21,_0x23cf72,_0x299be8,_0x880a70),this[_0x230f76(0x2b6)]=!0x1,this[_0x230f76(0x1de)]=!0x1,this[_0x230f76(0x37c)]=null,_0x57b55c[_0x230f76(0x37b)]();}[_0x46885f(0x2d3)](_0x3de7c1,_0x55db24,_0x529790,_0x19b5bf,_0x270a06,_0x88ba83){const _0x3831a3=_0x46885f;let _0x539fc9=_0x88ba83===n[_0x3831a3(0x3f1)][_0x3831a3(0x1e3)]||_0x88ba83===n[_0x3831a3(0x3f1)][_0x3831a3(0x1d5)],_0x51e52f=_0x529790?_0x55db24:_0x3de7c1,_0x8fd372=_0x529790?_0x3de7c1:_0x55db24,_0x4ec7e4=this[_0x3831a3(0x173)]['getConnectorLinePoints'](),_0x3c21a1=(0x0,n[_0x3831a3(0x3d8)])(this['_activeShapeModel'][_0x3831a3(0x449)]()),_0x352964=n[_0x3831a3(0x2ad)][_0x3831a3(0x2aa)](_0x4ec7e4,_0x3c21a1),_0x3539b=_0x539fc9?n[_0x3831a3(0x2ad)][_0x3831a3(0x33d)](_0x51e52f,_0x8fd372):n['ConnectorCoordinateTransform'][_0x3831a3(0x198)](_0x3de7c1,_0x55db24,_0x529790,_0x352964);_0x19b5bf?this[_0x3831a3(0x2d0)](_0x3539b,_0x19b5bf,_0x529790,_0x270a06):this[_0x3831a3(0x393)](_0x3539b,_0x270a06);}['_handleConnectedEndpointPointerUp'](_0xa3dc4d,_0x55e83b,_0xbe83e8,_0x3e0138,_0x58d081){const _0x398183=_0x46885f;let _0x3911d0=this['_getConnectPointInfo'](_0xa3dc4d);if(!_0x3911d0)return;let _0x309b7a=_0x3e0138?_0x3e0138[_0x398183(0x3f4)]:this[_0x398183(0x410)](_0x3911d0[_0x398183(0x235)],_0x55e83b),_0x45b12d;if(_0x3e0138){let _0x1a7802=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x3e0138[_0x398183(0x332)],'subUnitId':_0x3e0138[_0x398183(0x46b)],'drawingId':_0x3e0138[_0x398183(0x487)]});if(_0x1a7802!=null&&_0x1a7802['transform']){let {left:_0x154401=0x0,top:_0x23f24c=0x0,width:_0x366d17=0x0,height:_0x41ef2d=0x0,angle:_0x107329}=_0x1a7802[_0x398183(0x463)];_0x45b12d=(0x0,n['getBasicShapeRotateBound'])({'left':_0x154401,'top':_0x23f24c,'width':_0x366d17,'height':_0x41ef2d},_0x107329||0x0);}else _0x45b12d={'left':_0x55e83b['x'],'top':_0x55e83b['y'],'width':0x0,'height':0x0};}else _0x45b12d={'left':_0x55e83b['x'],'top':_0x55e83b['y'],'width':0x0,'height':0x0};let _0x1ed184={'point':_0x55e83b,'angle':_0x309b7a,'bounds':_0x45b12d},_0x5ae864=_0xbe83e8?_0x1ed184:_0x3911d0,_0x1d23d4=_0xbe83e8?_0x3911d0:_0x1ed184,_0x76f18c=this['_activeShapeModel'][_0x398183(0x449)](),_0x5660e1=(0x0,n[_0x398183(0x257)])(_0x5ae864,_0x1d23d4,_0x76f18c);this[_0x398183(0x173)]['removeLinePoints']();let _0x3d3373=(0x0,n[_0x398183(0x364)])(_0x5660e1,_0x76f18c);_0x3e0138?this['_executeConnectedRouteConnectionCommand'](_0x3d3373,_0x3e0138,_0xa3dc4d,_0xbe83e8,_0x58d081):this[_0x398183(0x2e8)](_0x3d3373,_0xa3dc4d,_0xbe83e8,_0x58d081);}[_0x46885f(0x2d0)](_0x532d7f,_0x1f690d,_0x10431d,_0xe32d10){const _0x77362d=_0x46885f;let _0x5ebd4a=this[_0x77362d(0x173)]['getShapeData']()['relation'],_0x2d884c={..._0x5ebd4a},_0x495d45={'shapeId':_0x1f690d[_0x77362d(0x487)],'cxnIndex':_0x1f690d[_0x77362d(0x426)]};_0x10431d?_0x2d884c[_0x77362d(0x420)]=_0x495d45:_0x2d884c['to']=_0x495d45;let _0x37749b=this[_0x77362d(0x173)]['getShapeType'](),_0x1e593d=(0x0,n['computeConnectorRouteLayout'])(_0x532d7f[_0x77362d(0x3fc)],_0x37749b),_0x5c8e0d={'unitId':this[_0x77362d(0x296)],'subUnitId':this[_0x77362d(0x40a)],'connectorShapeId':this[_0x77362d(0x43c)],'width':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x322)],'height':_0x532d7f['worldRect'][_0x77362d(0x49b)],'left':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x174)],'top':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x4ad)],'flipX':_0x532d7f['worldRect'][_0x77362d(0x271)]||!0x1,'flipY':_0x532d7f[_0x77362d(0x27b)][_0x77362d(0x243)]||!0x1,'newAdjustValues':_0x1e593d['adjustValues'],'oldAdjustValues':_0xe32d10,'oldRelation':_0x5ebd4a,'newRelation':_0x2d884c,'newLineType':_0x1e593d[_0x77362d(0x424)],'oldLineType':_0x37749b};this[_0x77362d(0x194)][_0x77362d(0x210)](i[_0x77362d(0x238)]['id'],_0x5c8e0d);}[_0x46885f(0x393)](_0x39e693,_0x1a9db5){const _0x34aa9d=_0x46885f;let _0x157112=this[_0x34aa9d(0x173)][_0x34aa9d(0x449)](),_0x442ecb=(0x0,n['computeConnectorRouteLayout'])(_0x39e693[_0x34aa9d(0x3fc)],_0x157112),_0x4d5b8d={'unitId':this['_unitId'],'subUnitId':this[_0x34aa9d(0x40a)],'shapeId':this['_activeShapeId'],'width':_0x39e693[_0x34aa9d(0x27b)][_0x34aa9d(0x322)],'height':_0x39e693[_0x34aa9d(0x27b)]['height'],'left':_0x39e693['worldRect'][_0x34aa9d(0x174)],'top':_0x39e693[_0x34aa9d(0x27b)]['top'],'flipX':_0x39e693['worldRect'][_0x34aa9d(0x271)]||!0x1,'flipY':_0x39e693['worldRect'][_0x34aa9d(0x243)]||!0x1,'angle':_0x39e693[_0x34aa9d(0x27b)][_0x34aa9d(0x3f4)]||0x0,'newAdjustValues':_0x442ecb[_0x34aa9d(0x1b9)],'oldAdjustValues':_0x1a9db5,'newLineType':_0x442ecb[_0x34aa9d(0x424)],'oldLineType':_0x157112};this[_0x34aa9d(0x194)][_0x34aa9d(0x210)](i[_0x34aa9d(0x353)]['id'],_0x4d5b8d);}[_0x46885f(0x17a)](_0x1d079c,_0x986bdb,_0x230a4f,_0x19968c,_0x279080){const _0x5f2b99=_0x46885f;let _0x126985=this[_0x5f2b99(0x173)]['getShapeData']()[_0x5f2b99(0x17d)],_0x5618c4={..._0x126985},_0x3b673f={'shapeId':_0x986bdb[_0x5f2b99(0x487)],'cxnIndex':_0x986bdb[_0x5f2b99(0x426)]};_0x19968c?(_0x5618c4[_0x5f2b99(0x420)]=_0x3b673f,_0x5618c4['to']=_0x230a4f):(_0x5618c4[_0x5f2b99(0x420)]=_0x230a4f,_0x5618c4['to']=_0x3b673f);let _0x411629={'unitId':this[_0x5f2b99(0x296)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x5f2b99(0x43c)],'width':_0x1d079c['worldRect'][_0x5f2b99(0x322)],'height':_0x1d079c[_0x5f2b99(0x27b)][_0x5f2b99(0x49b)],'left':_0x1d079c['worldRect'][_0x5f2b99(0x174)],'top':_0x1d079c[_0x5f2b99(0x27b)][_0x5f2b99(0x4ad)],'flipX':_0x1d079c[_0x5f2b99(0x27b)]['flipX']||!0x1,'flipY':_0x1d079c[_0x5f2b99(0x27b)][_0x5f2b99(0x243)]||!0x1,'oldAdjustValues':_0x279080,'newAdjustValues':_0x1d079c[_0x5f2b99(0x1b9)],'newLineType':_0x1d079c[_0x5f2b99(0x424)],'rotation':_0x1d079c[_0x5f2b99(0x3f2)],'oldRelation':_0x126985,'newRelation':_0x5618c4};this[_0x5f2b99(0x194)][_0x5f2b99(0x210)](i[_0x5f2b99(0x238)]['id'],_0x411629);}['_executeConnectedRouteResizeCommand'](_0x5c9c40,_0x5087a0,_0xabf7bb,_0x5affe0){const _0x14e35e=_0x46885f;let _0x509cf2=this['_activeShapeModel']['getShapeData']()[_0x14e35e(0x17d)],_0x5c2cfc={};_0xabf7bb?(_0x5c2cfc['to']=_0x5087a0,_0x5c2cfc[_0x14e35e(0x420)]=void 0x0):(_0x5c2cfc[_0x14e35e(0x420)]=_0x5087a0,_0x5c2cfc['to']=void 0x0);let _0x7d140b={'unitId':this['_unitId'],'subUnitId':this[_0x14e35e(0x40a)],'connectorShapeId':this[_0x14e35e(0x43c)],'width':_0x5c9c40['worldRect']['width'],'height':_0x5c9c40[_0x14e35e(0x27b)]['height'],'left':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x174)],'top':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x4ad)],'flipX':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x271)]||!0x1,'flipY':_0x5c9c40[_0x14e35e(0x27b)][_0x14e35e(0x243)]||!0x1,'oldAdjustValues':_0x5affe0,'newAdjustValues':_0x5c9c40['adjustValues'],'newLineType':_0x5c9c40['lineType'],'rotation':_0x5c9c40[_0x14e35e(0x3f2)],'oldRelation':_0x509cf2,'newRelation':_0x5c2cfc};this[_0x14e35e(0x194)]['executeCommand'](i[_0x14e35e(0x238)]['id'],_0x7d140b);}[_0x46885f(0x3b2)](_0x14603e,_0x65fb93,_0x55598f){const _0x1e57a1=_0x46885f;this[_0x1e57a1(0x428)]((0x0,a[_0x1e57a1(0x415)])(_0x14603e[_0x1e57a1(0x3fa)][_0x1e57a1(0x440)]((_0x9d186b,_0x1a2974)=>{const _0x418411=_0x1e57a1;let _0x542464=_0x14603e['getDrawingSearch']();if(this['_activeShapeModel']=this[_0x418411(0x464)]['getShapeModel'](_0x542464[_0x418411(0x332)],_0x542464[_0x418411(0x46b)],_0x542464[_0x418411(0x313)]),!this['_activeShapeModel'])return;let _0x454503={};this['_activeShapeModel'][_0x418411(0x2b1)]()['forEach'](_0x295684=>{const _0x5bb734=_0x418411;let _0x22715c=this[_0x5bb734(0x173)][_0x5bb734(0x2d8)](_0x295684);_0x22715c!==void 0x0&&(_0x454503[_0x295684]=_0x22715c);});let _0x4907ee=this[_0x418411(0x362)]();if(!_0x4907ee)return;this['_baseDrawingRect']={..._0x4907ee};let _0x4eef39=new n['ConnectorCoordinateTransform'](this[_0x418411(0x29d)]),_0x2c04c0=(0x0,s[_0x418411(0x3c7)])({'unitId':this['_unitId'],'subUnitId':this[_0x418411(0x40a)],'drawingId':this[_0x418411(0x43c)]}),_0x3c9eaa=_0x65fb93[_0x418411(0x3c8)](_0x2c04c0);this[_0x418411(0x2b6)]=!0x0,_0x65fb93[_0x418411(0x22f)](),this[_0x418411(0x34b)][_0x418411(0x3b7)](_0x65fb93,this[_0x418411(0x296)],this[_0x418411(0x40a)],this[_0x418411(0x43c)]),this[_0x418411(0x37c)]=null;let _0x474758=this[_0x418411(0x173)][_0x418411(0x310)](),_0x3c801e=_0x474758[0x0],_0x23344f=_0x474758[_0x474758[_0x418411(0x453)]-0x1],_0x3a01fb=_0x55598f?_0x4eef39[_0x418411(0x42f)](_0x23344f):_0x4eef39[_0x418411(0x42f)](_0x3c801e);this[_0x418411(0x25b)]=_0x65fb93['onPointerMove$'][_0x418411(0x440)]((_0x717a17,_0x25a7bc)=>{const _0xb1ae10=_0x418411;if(!this[_0xb1ae10(0x2b6)]||!this[_0xb1ae10(0x173)])return;this[_0xb1ae10(0x1de)]||=(this[_0xb1ae10(0x35c)][_0xb1ae10(0x24e)](),this[_0xb1ae10(0x173)][_0xb1ae10(0x1f0)](),!0x0);let _0x36c409=this['_getScrollInfo'](this[_0xb1ae10(0x296)],this['_subUnitId']),_0x508bfd=this[_0xb1ae10(0x19e)](this['_unitId'],this[_0xb1ae10(0x40a)]),_0x2edd41={'x':_0x717a17[_0xb1ae10(0x1e7)]/_0x508bfd+_0x36c409['x'],'y':_0x717a17[_0xb1ae10(0x425)]/_0x508bfd+_0x36c409['y']},_0x5b229c=this[_0xb1ae10(0x34b)]['updateConnectionDetection'](_0x2edd41);if(_0x5b229c){let {shapeId:_0x598255,unitId:_0xc7c225,subUnitId:_0xa51c0}=_0x5b229c;if(_0x598255&&_0xc7c225&&_0xa51c0){let _0x2c8ae2=(0x0,s[_0xb1ae10(0x3c7)])({'unitId':_0xc7c225,'subUnitId':_0xa51c0,'drawingId':_0x598255});_0x5b229c[_0xb1ae10(0x3f4)]=(_0x65fb93['getObjectIncludeInGroup'](_0x2c8ae2)[_0xb1ae10(0x3f4)]||0x0)+_0x5b229c[_0xb1ae10(0x3f4)];}}this['_currentConnectionTarget']=_0x5b229c;let _0x3c0b86=_0x55598f?this['_activeShapeModel'][_0xb1ae10(0x3d2)]():this[_0xb1ae10(0x173)][_0xb1ae10(0x4a6)]();if(_0x3c0b86){this[_0xb1ae10(0x311)](_0x3c0b86,_0x2edd41,_0x55598f,_0x3c9eaa,_0x14603e);return;}this[_0xb1ae10(0x499)](_0x2edd41,_0x3a01fb,_0x55598f,_0x3c9eaa,_0x14603e);}),this['_cxtHandlerPointerUp']=_0x65fb93['onPointerUp$']['subscribeEvent']((_0x131ff8,_0x655c04)=>{const _0x302278=_0x418411;this[_0x302278(0x457)](_0x65fb93,_0x3a01fb,_0x131ff8,_0x55598f,_0x454503);}),_0x1a2974[_0x418411(0x34e)]();})));}[_0x46885f(0x2ea)](_0x44d6f9,_0x3ea804,_0xedc841){const _0x23dad4=_0x46885f;let _0x22fa20=this['_sheetsShapeService'][_0x23dad4(0x32c)](_0x44d6f9,_0x3ea804,_0xedc841);if(!_0x22fa20||_0x22fa20[_0x23dad4(0x453)]===0x0)return;let _0x3e017c=this[_0x23dad4(0x49a)][_0x23dad4(0x3c2)](_0x44d6f9);if(!_0x3e017c)return;let {scene:_0x222fd5}=_0x3e017c;for(let _0x5e826f of _0x22fa20){let _0x1d91f4=_0x5e826f['lineShapeId'],_0x34b808=this[_0x23dad4(0x464)][_0x23dad4(0x387)](_0x44d6f9,_0x3ea804,_0x1d91f4);if(!_0x34b808)continue;let _0x44b099=_0x34b808[_0x23dad4(0x4a6)](),_0xb5d834=_0x34b808[_0x23dad4(0x3d2)](),_0x24d928=(_0x44b099==null?void 0x0:_0x44b099[_0x23dad4(0x487)])===_0xedc841,_0x534527=(0x0,s[_0x23dad4(0x3c7)])({'unitId':_0x44d6f9,'subUnitId':_0x3ea804,'drawingId':_0x1d91f4}),_0x5b1e90=_0x222fd5[_0x23dad4(0x3c8)](_0x534527);if(!_0x5b1e90)continue;let _0x42b54e=this[_0x23dad4(0x22e)]['getDrawingByParam']({'unitId':_0x44d6f9,'subUnitId':_0x3ea804,'drawingId':_0x1d91f4});_0x42b54e!=null&&_0x42b54e[_0x23dad4(0x463)]&&(_0x44b099&&_0xb5d834?this[_0x23dad4(0x486)](_0x44d6f9,_0x3ea804,_0x1d91f4,_0x34b808,_0x44b099,_0xb5d834,_0x5b1e90):this[_0x23dad4(0x3bd)](_0x44d6f9,_0x3ea804,_0x1d91f4,_0x34b808,_0x24d928?_0x44b099:_0xb5d834,_0x24d928,_0x42b54e,_0x5b1e90));}}[_0x46885f(0x486)](_0x157dd0,_0x274583,_0x49d0d5,_0x595094,_0x56bfdb,_0xdbdabf,_0x4b543d){const _0x7dd11d=_0x46885f;let _0x2fb9a6=this['_unitId'],_0x463979=this[_0x7dd11d(0x40a)];this[_0x7dd11d(0x296)]=_0x157dd0,this[_0x7dd11d(0x40a)]=_0x274583;let _0x1d2b69=this[_0x7dd11d(0x2a8)](_0x56bfdb),_0x4dd1f2=this[_0x7dd11d(0x2a8)](_0xdbdabf);if(this['_unitId']=_0x2fb9a6,this[_0x7dd11d(0x40a)]=_0x463979,!_0x1d2b69||!_0x4dd1f2)return;let _0x39e7fa=_0x595094[_0x7dd11d(0x449)](),_0x45564d=(0x0,n[_0x7dd11d(0x257)])(_0x1d2b69,_0x4dd1f2,_0x39e7fa);_0x45564d&&_0x595094[_0x7dd11d(0x29b)](_0x45564d);let _0x124ab4=(0x0,n[_0x7dd11d(0x364)])(_0x45564d,_0x39e7fa);_0x124ab4[_0x7dd11d(0x424)]!==_0x39e7fa&&_0x595094[_0x7dd11d(0x43d)](_0x124ab4[_0x7dd11d(0x424)]),_0x595094[_0x7dd11d(0x1f0)]();for(let [_0xe60005,_0x60cba4]of Object[_0x7dd11d(0x3c5)](_0x124ab4[_0x7dd11d(0x1b9)]))_0x595094['setAdjustValueByName'](_0xe60005,_0x60cba4);_0x595094[_0x7dd11d(0x3f7)]({'width':_0x124ab4[_0x7dd11d(0x27b)]['width'],'height':_0x124ab4['worldRect']['height']}),_0x4b543d[_0x7dd11d(0x414)]({'flipX':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x271)],'flipY':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x243)],'left':_0x124ab4[_0x7dd11d(0x27b)]['left'],'top':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x4ad)],'width':_0x124ab4[_0x7dd11d(0x27b)]['width'],'height':_0x124ab4[_0x7dd11d(0x27b)][_0x7dd11d(0x49b)],'angle':_0x124ab4['rotation']}),_0x595094[_0x7dd11d(0x48c)]();}[_0x46885f(0x3bd)](_0x330192,_0x3ad562,_0x261094,_0x36f980,_0x5e02ad,_0x247c6b,_0x491fdd,_0x1132da){const _0x3cead1=_0x46885f;let _0x56f3a2=this[_0x3cead1(0x296)],_0xe69da1=this[_0x3cead1(0x40a)];this[_0x3cead1(0x296)]=_0x330192,this[_0x3cead1(0x40a)]=_0x3ad562;let _0x431988=this[_0x3cead1(0x2a8)](_0x5e02ad);if(this[_0x3cead1(0x296)]=_0x56f3a2,this['_subUnitId']=_0xe69da1,!_0x431988)return;let {left:_0x2406b2=0x0,top:_0x4cd1b4=0x0,width:_0x1cb656=0x0,height:_0xfc7adf=0x0,flipX:_0x59f79f=!0x1,flipY:_0x27ad35=!0x1}=_0x491fdd[_0x3cead1(0x463)],_0x55fd64=_0x36f980[_0x3cead1(0x310)]();if(_0x55fd64['length']<0x2)return;let _0x33a5f0=new n[(_0x3cead1(0x2ad))]({'left':_0x2406b2,'top':_0x4cd1b4,'width':_0x1cb656,'height':_0xfc7adf,'flipX':_0x59f79f,'flipY':_0x27ad35}),_0x3c6e60=_0x247c6b?_0x55fd64[_0x55fd64[_0x3cead1(0x453)]-0x1]:_0x55fd64[0x0],_0xe0cc8c=_0x33a5f0[_0x3cead1(0x42f)](_0x3c6e60),_0x202928=n['ConnectorCoordinateTransform'][_0x3cead1(0x198)](_0xe0cc8c,_0x431988[_0x3cead1(0x235)],!_0x247c6b);_0x1132da[_0x3cead1(0x414)]({'flipX':_0x202928[_0x3cead1(0x27b)][_0x3cead1(0x271)],'flipY':_0x202928['worldRect'][_0x3cead1(0x243)],'left':_0x202928['worldRect'][_0x3cead1(0x174)],'top':_0x202928[_0x3cead1(0x27b)]['top'],'width':_0x202928[_0x3cead1(0x27b)][_0x3cead1(0x322)],'height':_0x202928['worldRect'][_0x3cead1(0x49b)],'angle':_0x202928['worldRect']['angle']}),_0x1132da[_0x3cead1(0x23f)](!0x0);}[_0x46885f(0x233)](){const _0x11e563=_0x46885f;this[_0x11e563(0x183)]['length']!==0x0&&(this[_0x11e563(0x183)]['forEach'](_0x238426=>{const _0x15cb38=_0x11e563;_0x238426[_0x15cb38(0x169)]();}),this[_0x11e563(0x183)]=[]);}[_0x46885f(0x1ef)](){const _0x35933a=_0x46885f;let _0x56c59c=this['_univerInstanceService']['getCurrentTypeOfUnit$'](a[_0x35933a(0x267)]['UNIVER_SHEET']);this[_0x35933a(0x428)](_0x56c59c[_0x35933a(0x24b)]((0x0,u[_0x35933a(0x3b5)])(_0x2bef1d=>_0x2bef1d?_0x2bef1d[_0x35933a(0x2c7)][_0x35933a(0x24b)]((0x0,u[_0x35933a(0x3b5)])(_0x4d7459=>{const _0x17cd07=_0x35933a;if(!_0x4d7459)return u[_0x17cd07(0x456)];let _0x28342c=_0x2bef1d[_0x17cd07(0x3c4)](),_0x5bf4cd=this['_renderManagerService'][_0x17cd07(0x3c2)](_0x28342c),_0x1c2394=_0x5bf4cd==null?void 0x0:_0x5bf4cd[_0x17cd07(0x1c8)];return _0x1c2394?(0x0,u['of'])(_0x1c2394):u[_0x17cd07(0x456)];})):u[_0x35933a(0x456)]))[_0x35933a(0x494)](_0x500058=>{const _0x32894c=_0x35933a;let _0x2d4d63=_0x500058[_0x32894c(0x40d)]();this['disposeWithMe'](_0x500058[_0x32894c(0x30b)]['subscribeEvent'](_0x23211c=>{const _0x47a5fa=_0x32894c;this['_isDrawingShapePointDown']&&this[_0x47a5fa(0x43c)]&&this[_0x47a5fa(0x233)]();})),this[_0x32894c(0x428)](_0x2d4d63[_0x32894c(0x46e)][_0x32894c(0x494)](_0x5d2c3a=>{const _0x40529e=_0x32894c;let {objects:_0x4444c5}=_0x5d2c3a;this[_0x40529e(0x233)](),_0x4444c5!==null&&_0x4444c5[_0x40529e(0x432)]===0x1&&_0x4444c5[_0x40529e(0x191)]()['next']()[_0x40529e(0x44b)]instanceof E&&(this[_0x40529e(0x1ad)]=!0x0);})),this[_0x32894c(0x428)](_0x2d4d63['changing$'][_0x32894c(0x494)](_0x548529=>{const _0x1660c1=_0x32894c;this[_0x1660c1(0x1ad)]&&this[_0x1660c1(0x233)]();})),this[_0x32894c(0x428)](_0x500058[_0x32894c(0x1f3)]['subscribeEvent'](()=>{const _0x5bcfb6=_0x32894c;this['_isDrawingShapePointDown']&&(this[_0x5bcfb6(0x1ad)]=!0x1,this[_0x5bcfb6(0x1c2)]());})),this[_0x32894c(0x428)](_0x2d4d63[_0x32894c(0x21d)]['subscribe'](()=>{const _0x2ddc04=_0x32894c;this[_0x2ddc04(0x296)]&&this['_subUnitId']&&this[_0x2ddc04(0x43c)]&&this[_0x2ddc04(0x22e)][_0x2ddc04(0x31f)]({'unitId':this[_0x2ddc04(0x296)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2ddc04(0x43c)]})&&(this[_0x2ddc04(0x233)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x46885f(0x28c)](){const _0x4dfcc4=_0x46885f;this[_0x4dfcc4(0x428)](this[_0x4dfcc4(0x22e)][_0x4dfcc4(0x2d7)][_0x4dfcc4(0x494)](_0x4cb3d8=>{const _0x1c7059=_0x4dfcc4;if(_0x4cb3d8[_0x1c7059(0x453)]===0x1){let _0x2a5182=_0x4cb3d8[0x0];if(_0x2a5182[_0x1c7059(0x218)]===a[_0x1c7059(0x196)][_0x1c7059(0x288)]){let _0x1ca07d=this[_0x1c7059(0x464)][_0x1c7059(0x387)](_0x2a5182[_0x1c7059(0x332)],_0x2a5182[_0x1c7059(0x46b)],_0x2a5182[_0x1c7059(0x313)]);if(_0x1ca07d&&(0x0,n[_0x1c7059(0x248)])(_0x1ca07d[_0x1c7059(0x449)]())){this[_0x1c7059(0x43c)]=_0x2a5182[_0x1c7059(0x313)],this[_0x1c7059(0x296)]=_0x2a5182[_0x1c7059(0x332)],this['_subUnitId']=_0x2a5182[_0x1c7059(0x46b)],this[_0x1c7059(0x233)](),this[_0x1c7059(0x1c2)]();return;}}}this[_0x1c7059(0x43c)]=void 0x0,this[_0x1c7059(0x296)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x1c7059(0x233)]();})),this[_0x4dfcc4(0x428)](this['_drawingManagerService']['update$']['subscribe'](_0x22e167=>{const _0x123ecd=_0x4dfcc4;if(_0x22e167[_0x123ecd(0x453)]===0x1){var _0x291ae4;let _0x55d38e=_0x22e167[0x0],_0x66927d=(_0x291ae4=this['_drawingManagerService'][_0x123ecd(0x31f)](_0x55d38e))==null?void 0x0:_0x291ae4['drawingType'];_0x66927d===a[_0x123ecd(0x196)]['DRAWING_SHAPE']&&_0x55d38e[_0x123ecd(0x313)]===this[_0x123ecd(0x43c)]?(this[_0x123ecd(0x233)](),this[_0x123ecd(0x1c2)]()):!this['_activeShapeId']&&_0x66927d===a[_0x123ecd(0x196)][_0x123ecd(0x288)]&&this[_0x123ecd(0x2ea)](_0x55d38e[_0x123ecd(0x332)],_0x55d38e[_0x123ecd(0x46b)],_0x55d38e[_0x123ecd(0x313)]);}})),this[_0x4dfcc4(0x428)](this[_0x4dfcc4(0x22e)][_0x4dfcc4(0x436)][_0x4dfcc4(0x494)](_0x456032=>{const _0x1b185c=_0x4dfcc4;for(let _0xc510c2 of _0x456032){let {drawingId:_0x52e3e5}=_0xc510c2;if(this['_activeShapeId']===_0x52e3e5){this[_0x1b185c(0x47b)]();return;}}}));}[_0x46885f(0x311)](_0x388dcd,_0x1cfb94,_0x5da246,_0x41fe97,_0x29de29){const _0x411dc6=_0x46885f;var _0x8ba1f4;if(!this[_0x411dc6(0x173)])return;let _0x16b85b=this[_0x411dc6(0x2a8)](_0x388dcd);if(!_0x16b85b)return;let _0x355b79=this[_0x411dc6(0x37c)]?this[_0x411dc6(0x37c)][_0x411dc6(0x263)]:_0x1cfb94,_0xc3bb79=this['_currentConnectionTarget']?this[_0x411dc6(0x37c)][_0x411dc6(0x3f4)]:this[_0x411dc6(0x410)](_0x16b85b[_0x411dc6(0x235)],_0x355b79),_0x5f1652;if(this[_0x411dc6(0x37c)]){let _0x2dccca=this[_0x411dc6(0x22e)][_0x411dc6(0x31f)]({'unitId':this[_0x411dc6(0x37c)][_0x411dc6(0x332)],'subUnitId':this['_currentConnectionTarget'][_0x411dc6(0x46b)],'drawingId':this[_0x411dc6(0x37c)][_0x411dc6(0x487)]});if(_0x2dccca!=null&&_0x2dccca[_0x411dc6(0x463)]){let {left:_0x5c83e4=0x0,top:_0x12632d=0x0,width:_0x4b8402=0x0,height:_0x4e7edb=0x0,angle:_0x249e21}=_0x2dccca[_0x411dc6(0x463)];_0x5f1652=(0x0,n[_0x411dc6(0x3ac)])({'left':_0x5c83e4,'top':_0x12632d,'width':_0x4b8402,'height':_0x4e7edb},_0x249e21||0x0);}else _0x5f1652={'left':_0x355b79['x'],'top':_0x355b79['y'],'width':0x0,'height':0x0};}else _0x5f1652={'left':_0x355b79['x'],'top':_0x355b79['y'],'width':0x0,'height':0x0};let _0x158d76={'point':_0x355b79,'angle':_0xc3bb79,'bounds':_0x5f1652},_0x47a845=_0x5da246?_0x158d76:_0x16b85b,_0x510714=_0x5da246?_0x16b85b:_0x158d76,_0x5a3a23=this[_0x411dc6(0x173)][_0x411dc6(0x449)](),_0x19c92e=(0x0,n['routeConnectorLineShape'])(_0x47a845,_0x510714,_0x5a3a23);_0x19c92e&&this[_0x411dc6(0x173)][_0x411dc6(0x29b)](_0x19c92e);let _0x39a774=(0x0,n[_0x411dc6(0x364)])(_0x19c92e,_0x5a3a23);_0x39a774['lineType']!==_0x5a3a23&&this[_0x411dc6(0x173)][_0x411dc6(0x43d)](_0x39a774['lineType']);for(let [_0x164a20,_0x3e8269]of Object[_0x411dc6(0x3c5)](_0x39a774[_0x411dc6(0x1b9)]))this['_activeShapeModel'][_0x411dc6(0x3f5)](_0x164a20,_0x3e8269);this[_0x411dc6(0x173)][_0x411dc6(0x3f7)]({'width':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x322)],'height':_0x39a774['worldRect'][_0x411dc6(0x49b)]}),_0x41fe97[_0x411dc6(0x414)]({'flipX':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x271)],'flipY':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x243)],'left':_0x39a774['worldRect'][_0x411dc6(0x174)],'top':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x4ad)],'width':_0x39a774['worldRect'][_0x411dc6(0x322)],'height':_0x39a774[_0x411dc6(0x27b)][_0x411dc6(0x49b)],'angle':_0x39a774[_0x411dc6(0x3f2)]}),_0x41fe97[_0x411dc6(0x23f)](!0x0);let _0x3cfeeb=((_0x8ba1f4=this[_0x411dc6(0x37c)])==null?void 0x0:_0x8ba1f4[_0x411dc6(0x263)])??_0x1cfb94;_0x29de29[_0x411dc6(0x414)]({'left':_0x3cfeeb['x']-n[_0x411dc6(0x2b0)][_0x411dc6(0x255)],'top':_0x3cfeeb['y']-n[_0x411dc6(0x2b0)][_0x411dc6(0x255)]});}[_0x46885f(0x499)](_0x294bf4,_0x35b0a0,_0x46f28b,_0x464cff,_0xb96bb8){const _0x170e72=_0x46885f;var _0x4cfcd4,_0x411087;let _0x477d49=((_0x4cfcd4=this[_0x170e72(0x37c)])==null?void 0x0:_0x4cfcd4[_0x170e72(0x263)])??_0x294bf4,_0x6f0822=n[_0x170e72(0x2ad)][_0x170e72(0x198)](_0x35b0a0,_0x477d49,_0x46f28b);_0x464cff[_0x170e72(0x414)]({'flipX':_0x6f0822['worldRect'][_0x170e72(0x271)],'flipY':_0x6f0822[_0x170e72(0x27b)][_0x170e72(0x243)],'left':_0x6f0822[_0x170e72(0x27b)][_0x170e72(0x174)],'top':_0x6f0822['worldRect'][_0x170e72(0x4ad)],'width':_0x6f0822[_0x170e72(0x27b)]['width'],'height':_0x6f0822[_0x170e72(0x27b)]['height'],'angle':_0x6f0822[_0x170e72(0x27b)][_0x170e72(0x3f4)]});let _0x449f09=((_0x411087=this['_currentConnectionTarget'])==null?void 0x0:_0x411087[_0x170e72(0x263)])??_0x294bf4;_0xb96bb8[_0x170e72(0x414)]({'left':_0x449f09['x']-n[_0x170e72(0x2b0)][_0x170e72(0x255)],'top':_0x449f09['y']-n['ShapeDefaultConfig'][_0x170e72(0x255)]});}['_getConnectPointInfo'](_0xfc431c){const _0x3bbbbe=_0x46885f;if(!this[_0x3bbbbe(0x296)]||!this[_0x3bbbbe(0x40a)])return null;let {shapeId:_0x3d2159,cxnIndex:_0x1d7824}=_0xfc431c,_0x48cdf6=this[_0x3bbbbe(0x464)]['getShapeModel'](this[_0x3bbbbe(0x296)],this[_0x3bbbbe(0x40a)],_0x3d2159);if(!_0x48cdf6)return null;let _0x2ce673=this[_0x3bbbbe(0x22e)][_0x3bbbbe(0x31f)]({'unitId':this[_0x3bbbbe(0x296)],'subUnitId':this['_subUnitId'],'drawingId':_0x3d2159});if(!(_0x2ce673!=null&&_0x2ce673[_0x3bbbbe(0x463)]))return null;let {left:_0x248e83=0x0,top:_0x4cf404=0x0,width:_0x1c55d8=0x0,height:_0x3f736b=0x0,flipX:_0x407998=!0x1,flipY:_0x258cc8=!0x1,angle:_0x5800b5}=_0x2ce673['transform'];_0x48cdf6[_0x3bbbbe(0x3f7)]({'width':_0x1c55d8,'height':_0x3f736b});let _0x4b01e3=_0x48cdf6[_0x3bbbbe(0x277)]()[_0x3bbbbe(0x423)](_0x3ae537=>_0x3ae537[_0x3bbbbe(0x45f)]===_0x1d7824);if(!_0x4b01e3)return null;let _0x24a419=_0x407998?_0x1c55d8-_0x4b01e3['x']:_0x4b01e3['x'],_0x302a5f=_0x258cc8?_0x3f736b-_0x4b01e3['y']:_0x4b01e3['y'];if(_0x5800b5!==0x0&&_0x5800b5!=null){let _0x44eeee=_0x5800b5*Math['PI']/0xb4,_0x4aa71f=Math[_0x3bbbbe(0x2ed)](_0x44eeee),_0x34650e=Math[_0x3bbbbe(0x2ae)](_0x44eeee),_0x327281=_0x1c55d8/0x2,_0x4a2247=_0x3f736b/0x2,_0x5aaa13=_0x24a419-_0x327281,_0x112b7d=_0x302a5f-_0x4a2247;_0x24a419=_0x327281+_0x5aaa13*_0x4aa71f-_0x112b7d*_0x34650e,_0x302a5f=_0x4a2247+_0x5aaa13*_0x34650e+_0x112b7d*_0x4aa71f;}_0x24a419+=_0x248e83,_0x302a5f+=_0x4cf404;let _0x17f72d=_0x4b01e3[_0x3bbbbe(0x400)]/0xea60;_0x407998&&(_0x17f72d=0xb4-_0x17f72d),_0x258cc8&&(_0x17f72d=-_0x17f72d),_0x17f72d+=_0x5800b5||0x0,_0x17f72d=(_0x17f72d%0x168+0x168)%0x168;let _0x1918c2=(0x0,n[_0x3bbbbe(0x3ac)])({'left':_0x248e83,'top':_0x4cf404,'width':_0x1c55d8,'height':_0x3f736b},_0x5800b5||0x0);return{'point':{'x':_0x24a419,'y':_0x302a5f},'angle':_0x17f72d,'bounds':_0x1918c2};}['_calculateFreeEndpointAngle'](_0x5bae05,_0x2cd4bf){const _0x976c1f=_0x46885f;let _0x1aa4e1=_0x2cd4bf['x']-_0x5bae05['x'],_0x4ce6b8=_0x2cd4bf['y']-_0x5bae05['y'];return Math[_0x976c1f(0x20e)](_0x1aa4e1)>=Math[_0x976c1f(0x20e)](_0x4ce6b8)?_0x1aa4e1>=0x0?0xb4:0x0:_0x4ce6b8>=0x0?0x10e:0x5a;}['_reset'](){const _0x1b9168=_0x46885f;this[_0x1b9168(0x43c)]=void 0x0,this[_0x1b9168(0x296)]=void 0x0,this[_0x1b9168(0x40a)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x46885f(0x169)](){const _0x3e7e45=_0x46885f;this[_0x3e7e45(0x233)](),super['dispose']();}};bt=k([O(0x1,a[_0x46885f(0x4aa)]),O(0x2,c[_0x46885f(0x23d)]),O(0x3,s[_0x46885f(0x19c)]),O(0x4,a['IUniverInstanceService']),O(0x5,(0x0,a[_0x46885f(0x41b)])(i[_0x46885f(0x45e)])),O(0x6,(0x0,a['Inject'])(j)),O(0x7,(0x0,a['Inject'])(Z))],bt);let xt=class extends a[_0x46885f(0x468)]{constructor(_0xd23ddb,_0x231d80,_0x550fea){const _0x596b2d=_0x46885f;super(),this[_0x596b2d(0x1c0)]=_0xd23ddb,this[_0x596b2d(0x22e)]=_0x231d80,this[_0x596b2d(0x30d)]=_0x550fea,this[_0x596b2d(0x273)]();}[_0x46885f(0x273)](){const _0x31430c=_0x46885f;this[_0x31430c(0x428)](this[_0x31430c(0x1c0)]['interceptor'][_0x31430c(0x1c3)](this[_0x31430c(0x1c0)]['interceptor'][_0x31430c(0x354)]()[_0x31430c(0x35d)],{'handler':(_0x313211,_0x1c7845,_0x472abe)=>{const _0x428003=_0x31430c;var _0x3769e3;let {unitId:_0x33e991,subUnitId:_0x3f0525,scene:_0x5ef453,resourceCollector:_0x14cd2c}=_0x1c7845,_0x2d5f4c=(_0x3769e3=this['_drawingManagerService'][_0x428003(0x346)](_0x33e991))==null?void 0x0:_0x3769e3[_0x3f0525];return _0x2d5f4c==null||_0x2d5f4c[_0x428003(0x2a3)]['forEach'](_0x3fa958=>{const _0x37a266=_0x428003;let _0x5f4ba8=_0x2d5f4c[_0x37a266(0x41c)][_0x3fa958];_0x5f4ba8[_0x37a266(0x218)]===a[_0x37a266(0x196)][_0x37a266(0x288)]&&!_0x5f4ba8[_0x37a266(0x26c)]&&this[_0x37a266(0x30d)][_0x37a266(0x448)](_0x5f4ba8,_0x5ef453,{'resourceCollector':_0x14cd2c});}),_0x472abe(_0x313211);}}));}};xt=k([O(0x0,(0x0,a['Inject'])(l[_0x46885f(0x25e)])),O(0x1,s[_0x46885f(0x19c)]),O(0x2,(0x0,a[_0x46885f(0x41b)])(A))],xt);let St=class extends a[_0x46885f(0x468)]{constructor(_0x22e5e7,_0x1c9c85,_0x1c9547){const _0x1c18f1=_0x46885f;super(),this['_commandService']=_0x22e5e7,this[_0x1c18f1(0x1bf)]=_0x1c9c85,this[_0x1c18f1(0x270)]=_0x1c9547,this[_0x1c18f1(0x427)]();}['_initPermission'](){const _0x37294a=_0x46885f;this[_0x37294a(0x428)](this[_0x37294a(0x194)]['beforeCommandExecuted'](_0x106e47=>{const _0x2f6265=_0x37294a;let _0x221f27,_0x5ea995;if(_0x106e47['id']===i[_0x2f6265(0x29c)]['id']||_0x106e47['id']===i[_0x2f6265(0x21b)]['id']||_0x106e47['id']===i[_0x2f6265(0x238)]['id']){let _0x238097=_0x106e47['params'];_0x221f27=_0x238097['unitId'],_0x5ea995=_0x238097['subUnitId'];}!_0x221f27||!_0x5ea995||this[_0x2f6265(0x270)]['permissionCheckWithoutRange']({'workbookTypes':[o[_0x2f6265(0x34d)]],'worksheetTypes':[o[_0x2f6265(0x216)]]},_0x221f27,_0x5ea995)||this[_0x2f6265(0x270)][_0x2f6265(0x347)](this[_0x2f6265(0x1bf)]['t'](_0x2f6265(0x1ce)));}));}};St=k([O(0x0,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x4aa)])),O(0x1,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x2a4)])),O(0x2,(0x0,a['Inject'])(o[_0x46885f(0x47e)]))],St);let Q=class extends a[_0x46885f(0x468)]{constructor(_0x3dac75,_0x2f8875,_0x1e00b9,_0x395e0d,_0x23b89f,_0x2e03dc,_0x32a4ed,_0x4e6f7c,_0x3097d9,_0x32dd8a,_0x5731b0){const _0x573e5e=_0x46885f;super(),this[_0x573e5e(0x1e6)]=_0x3dac75,this[_0x573e5e(0x378)]=_0x2f8875,this['_menuManagerService']=_0x1e00b9,this[_0x573e5e(0x464)]=_0x395e0d,this[_0x573e5e(0x1bf)]=_0x23b89f,this[_0x573e5e(0x194)]=_0x2e03dc,this[_0x573e5e(0x22e)]=_0x32a4ed,this[_0x573e5e(0x466)]=_0x4e6f7c,this['_contextService']=_0x3097d9,this[_0x573e5e(0x49a)]=_0x32dd8a,this[_0x573e5e(0x2db)]=_0x5731b0,T(this,'_sidebarDisposable',null),T(this,'_activeShapeInfo',null),T(this,'_isOpenedShapeEditPanel',!0x1),T(this,_0x573e5e(0x180),0x0),T(this,_0x573e5e(0x43e),null),T(this,_0x573e5e(0x3a7),[]),this[_0x573e5e(0x39d)](),this[_0x573e5e(0x428)](this[_0x573e5e(0x1e6)]['getCurrentTypeOfUnit$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x573e5e(0x494)](_0x1ccfd4=>{const _0x21550d=_0x573e5e;if(!_0x1ccfd4){var _0x220322;(_0x220322=this[_0x21550d(0x18d)])==null||_0x220322[_0x21550d(0x169)]();}})),this['_registerOperations'](),this[_0x573e5e(0x212)](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x573e5e(0x494)](_0x33fb91=>{const _0x486d02=_0x573e5e;_0x33fb91&&this[_0x486d02(0x1d9)]();}));}[_0x46885f(0x39d)](){const _0x370959=_0x46885f;this[_0x370959(0x39e)][_0x370959(0x43b)](Xe);}[_0x46885f(0x212)](){const _0x5deced=_0x46885f;this[_0x5deced(0x43e)]||=this[_0x5deced(0x428)]((0x0,e['bindRenderTransformerLifecycle'])(this['_renderManagerService'],a[_0x5deced(0x267)]['UNIVER_SHEET'],_0x238165=>this[_0x5deced(0x2cd)](_0x238165)));}['_getShapeInfo'](_0x5fe7cd,_0x5059c0,_0x29490d){const _0xf33e4c=_0x46885f;let _0x130397=this[_0xf33e4c(0x464)][_0xf33e4c(0x418)](_0x5fe7cd,_0x5059c0,_0x29490d),_0x289ac0=this[_0xf33e4c(0x464)][_0xf33e4c(0x369)](_0x5fe7cd,_0x5059c0,_0x29490d);return _0x130397!==void 0x0&&_0x289ac0!==void 0x0?{'shapeData':_0x289ac0,'shapeId':_0x29490d,'shapeType':_0x130397,'unitId':_0x5fe7cd,'subUnitId':_0x5059c0,'version':this[_0xf33e4c(0x180)],'disableShapeOption':!0x1}:null;}['_clearPopups'](){const _0x297d0c=_0x46885f;this['_disposePopups'][_0x297d0c(0x185)](_0x27b860=>_0x27b860['dispose']()),this[_0x297d0c(0x3a7)]['length']=0x0;}[_0x46885f(0x2cd)](_0x30f062){const _0x69615f=_0x46885f;let _0x52f599=new a['DisposableCollection']();return _0x52f599[_0x69615f(0x36a)](_0x30f062[_0x69615f(0x38d)][_0x69615f(0x494)](()=>{const _0x11ac7d=_0x69615f;let _0x130c4c=_0x30f062[_0x11ac7d(0x405)]();if(this[_0x11ac7d(0x1d9)](),this['_isOpenedShapeEditPanel']||_0x130c4c[_0x11ac7d(0x432)]>0x1)return;let _0x3d8a70=_0x130c4c[_0x11ac7d(0x191)]()[_0x11ac7d(0x349)]()[_0x11ac7d(0x44b)];if(!_0x3d8a70)return;let _0x2ce21f=this[_0x11ac7d(0x22e)][_0x11ac7d(0x35f)](_0x3d8a70[_0x11ac7d(0x294)]);if(!_0x2ce21f||_0x2ce21f[_0x11ac7d(0x218)]!==a[_0x11ac7d(0x196)][_0x11ac7d(0x288)])return;let {unitId:_0x27f959,subUnitId:_0x403b0c,drawingId:_0x5d4519,drawingType:_0x584d4a}=_0x2ce21f,_0x53cbaf=this['_getShapeInfo'](_0x27f959,_0x403b0c,_0x5d4519);if(!_0x53cbaf)return;this[_0x11ac7d(0x3ff)]['setContextValue'](a[_0x11ac7d(0x33f)],!0x0);let _0x247b41=this[_0x11ac7d(0x49a)][_0x11ac7d(0x3c2)](_0x27f959),_0x3333f0=((_0x247b41==null?void 0x0:_0x247b41[_0x11ac7d(0x3e9)])===!0x1?_0x247b41['with'](l[_0x11ac7d(0x2bf)]):this[_0x11ac7d(0x466)])[_0x11ac7d(0x2e7)](_0x3d8a70,{'componentKey':I,'direction':_0x11ac7d(0x315),'offset':[0x0,e[_0x11ac7d(0x25a)]],'extraProps':{'unitId':_0x27f959,'subUnitId':_0x403b0c,'drawingId':_0x5d4519,'drawingType':_0x584d4a,'shapeType':_0x53cbaf['shapeType'],'shapeData':_0x53cbaf[_0x11ac7d(0x2dd)]}});this[_0x11ac7d(0x3a7)][_0x11ac7d(0x18c)](this[_0x11ac7d(0x428)](_0x3333f0)),this[_0x11ac7d(0x22e)]['getFocusDrawings']()[_0x11ac7d(0x423)](_0x77f2d5=>_0x77f2d5[_0x11ac7d(0x332)]===_0x27f959&&_0x77f2d5[_0x11ac7d(0x46b)]===_0x403b0c&&_0x77f2d5[_0x11ac7d(0x313)]===_0x5d4519)||this[_0x11ac7d(0x22e)]['focusDrawing']([{'unitId':_0x27f959,'subUnitId':_0x403b0c,'drawingId':_0x5d4519}]);})),_0x52f599['add'](_0x30f062['clearControl$']['subscribe'](()=>{const _0x4975b5=_0x69615f;this[_0x4975b5(0x1d9)](),this[_0x4975b5(0x3ff)]['setContextValue'](a[_0x4975b5(0x33f)],!0x1),this[_0x4975b5(0x22e)][_0x4975b5(0x1cd)](null);})),_0x52f599[_0x69615f(0x36a)](_0x30f062['changing$'][_0x69615f(0x494)](()=>{const _0x54ffaf=_0x69615f;this[_0x54ffaf(0x1d9)]();})),_0x52f599[_0x69615f(0x36a)](_0x30f062['changeStart$']['subscribe'](()=>{const _0x49e53f=_0x69615f;this[_0x49e53f(0x1d9)]();})),(0x0,a['toDisposable'])(()=>{const _0x1a5e37=_0x69615f;_0x52f599[_0x1a5e37(0x169)](),this[_0x1a5e37(0x1d9)]();});}[_0x46885f(0x293)](){const _0x465985=_0x46885f;this[_0x465985(0x428)](this[_0x465985(0x194)][_0x465985(0x2c6)](_0x19ff91=>{const _0x1401d0=_0x465985;if(_0x19ff91['id']===z['id']){let {unitId:_0x4dd9ad,subUnitId:_0x572379,drawingId:_0xeffb74}=_0x19ff91['params'];this[_0x1401d0(0x180)]+=0x1,this[_0x1401d0(0x3b6)]=this[_0x1401d0(0x25f)](_0x4dd9ad,_0x572379,_0xeffb74),this[_0x1401d0(0x1d9)](),this[_0x1401d0(0x3c1)]();}if(_0x19ff91['id']===$e['id']&&(this[_0x1401d0(0x3b6)]=null,this[_0x1401d0(0x38a)]()),_0x19ff91['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x5db9e0,subUnitId:_0x3df528,shapeId:_0x1fb7b2}=_0x19ff91['params'];if(this['_activeShapeInfo']&&this['_activeShapeInfo']['shapeId']===_0x1fb7b2){let _0x3e4ccd=this[_0x1401d0(0x25f)](_0x5db9e0,_0x3df528,_0x1fb7b2);_0x3e4ccd&&(this['_shapeEditPanelVersion']+=0x1,_0x3e4ccd[_0x1401d0(0x276)]=this[_0x1401d0(0x180)],this['_activeShapeInfo']=_0x3e4ccd,this['_isOpenedShapeEditPanel']&&this['_openShapeEditPanel']());}}})),this[_0x465985(0x428)](this['_drawingManagerService'][_0x465985(0x2d7)]['subscribe'](_0x556ae8=>{const _0x7bfbeb=_0x465985;if(this[_0x7bfbeb(0x2af)]===!0x1)return;if(_0x556ae8[_0x7bfbeb(0x453)]===0x0){this['_activeShapeInfo']=null,this[_0x7bfbeb(0x38a)]();return;}if(_0x556ae8[_0x7bfbeb(0x453)]===0x1&&_0x556ae8[0x0]['drawingType']===a[_0x7bfbeb(0x196)][_0x7bfbeb(0x288)]&&(this[_0x7bfbeb(0x180)]+=0x1,this[_0x7bfbeb(0x3b6)]=this[_0x7bfbeb(0x25f)](_0x556ae8[0x0]['unitId'],_0x556ae8[0x0]['subUnitId'],_0x556ae8[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x7bfbeb(0x3c1)]();return;}let _0x2f87fc=_0x556ae8[_0x7bfbeb(0x339)](_0x2684d4=>_0x2684d4[_0x7bfbeb(0x218)]===a[_0x7bfbeb(0x196)][_0x7bfbeb(0x288)]);if(_0x556ae8['length']>0x1&&_0x2f87fc['length']===_0x556ae8['length']){if(this[_0x7bfbeb(0x180)]+=0x1,this[_0x7bfbeb(0x3b6)]=this[_0x7bfbeb(0x25f)](_0x556ae8[0x0][_0x7bfbeb(0x332)],_0x556ae8[0x0][_0x7bfbeb(0x46b)],_0x556ae8[0x0]['drawingId']),this[_0x7bfbeb(0x3b6)]){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x7bfbeb(0x25f)](_0x556ae8[0x0][_0x7bfbeb(0x332)],_0x556ae8[0x0][_0x7bfbeb(0x46b)],_0x556ae8[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x7bfbeb(0x3b6)][_0x7bfbeb(0x3c6)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x7bfbeb(0x38a)]();}));}[_0x46885f(0x3c1)](){const _0x3adef4=_0x46885f;this[_0x3adef4(0x3b6)]&&(this[_0x3adef4(0x18d)]=this[_0x3adef4(0x378)][_0x3adef4(0x249)]({'id':P,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':P,...this['_activeShapeInfo']},'onClose':()=>{const _0x54a598=_0x3adef4;this[_0x54a598(0x22e)]['focusDrawing'](null),this[_0x54a598(0x3ff)][_0x54a598(0x3f3)](a[_0x54a598(0x33f)],!0x1),this[_0x54a598(0x18d)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x46885f(0x38a)](){const _0x2af491=_0x46885f;this[_0x2af491(0x2af)]=!0x1,this[_0x2af491(0x378)][_0x2af491(0x358)](P),this[_0x2af491(0x18d)]=null,this[_0x2af491(0x3ff)][_0x2af491(0x3f3)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Q=k([O(0x0,a[_0x46885f(0x17b)]),O(0x1,(0x0,a[_0x46885f(0x41b)])(t[_0x46885f(0x475)])),O(0x2,t['IMenuManagerService']),O(0x3,(0x0,a['Inject'])(i['SheetsShapeService'])),O(0x4,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x2a4)])),O(0x5,a['ICommandService']),O(0x6,s['IDrawingManagerService']),O(0x7,(0x0,a[_0x46885f(0x41b)])(l['SheetCanvasPopManagerService'])),O(0x8,a[_0x46885f(0x34a)]),O(0x9,c[_0x46885f(0x23d)]),O(0xa,(0x0,a['Inject'])(q))],Q);let $=class extends a[_0x46885f(0x1ec)]{constructor(_0x51e47c=et,_0x2c4f53,_0x3a7944,_0x327f7f,_0x448b35){const _0x3f1049=_0x46885f;super(),this[_0x3f1049(0x3f9)]=_0x51e47c,this['_injector']=_0x2c4f53,this[_0x3f1049(0x194)]=_0x3a7944,this[_0x3f1049(0x32f)]=_0x327f7f,this[_0x3f1049(0x49a)]=_0x448b35;let {..._0x327124}=(0x0,a[_0x3f1049(0x19b)])({},et,this[_0x3f1049(0x3f9)]);this['_configService']['setConfig'](_0x3f1049(0x39c),_0x327124),this['_initCommands']();}[_0x46885f(0x3fd)](){const _0x49b92=_0x46885f;this[_0x49b92(0x49a)][_0x49b92(0x1ba)](a['UniverInstanceType'][_0x49b92(0x22b)],[ht]),(0x0,a[_0x49b92(0x21c)])(this['_injector'],[[Q],[X],[A],[xt]]);}[_0x46885f(0x252)](){const _0x92d128=_0x46885f;this['_injector']['get'](Q)[_0x92d128(0x212)]();}[_0x46885f(0x202)](){const _0x2becd0=_0x46885f;[[Z],[j],[vt]]['forEach'](_0x5db16a=>this[_0x2becd0(0x2f6)]['add'](_0x5db16a)),(0x0,a['touchDependencies'])(this['_injector'],[[vt],[j]]),this[_0x2becd0(0x49a)][_0x2becd0(0x1ba)](a[_0x2becd0(0x267)]['UNIVER_SHEET'],[Z]),this[_0x2becd0(0x49a)][_0x2becd0(0x1ba)](a[_0x2becd0(0x267)][_0x2becd0(0x264)],[ut]),this[_0x2becd0(0x49a)]['registerRenderModule'](a[_0x2becd0(0x267)]['UNIVER_SHEET'],[bt]),this['_renderManagerService'][_0x2becd0(0x1ba)](a['UniverInstanceType'][_0x2becd0(0x264)],[mt]);}['onStarting'](){const _0x15bf8d=_0x46885f;this[_0x15bf8d(0x2f6)][_0x15bf8d(0x36a)]([J]),this[_0x15bf8d(0x2f6)][_0x15bf8d(0x3a3)](J);let _0x11dd34=this[_0x15bf8d(0x2f6)];[[Q],[X],[A],[xt],[K],[q],[pt],[V],[St],[Y]][_0x15bf8d(0x185)](_0x35ff08=>_0x11dd34['add'](_0x35ff08)),(0x0,a[_0x15bf8d(0x21c)])(this[_0x15bf8d(0x2f6)],[[Q],[X],[A],[K],[q],[pt],[V],[St],[Y]]);}[_0x46885f(0x1db)](){const _0x5acf73=_0x46885f;[N,x,$e,z,ie,M,B,oe][_0x5acf73(0x185)](_0x5ee3a2=>this[_0x5acf73(0x428)](this['_commandService'][_0x5acf73(0x2e9)](_0x5ee3a2)));}};T($,_0x46885f(0x36c),a[_0x46885f(0x267)]['UNIVER_SHEET']),T($,_0x46885f(0x1b1),_0x46885f(0x2c5)),T($,_0x46885f(0x17f),Ze),T($,'version',Qe),$=k([(0x0,a[_0x46885f(0x2b8)])(m[_0x46885f(0x1f9)],h[_0x46885f(0x491)],s[_0x46885f(0x3a0)],d[_0x46885f(0x4b0)],c[_0x46885f(0x299)],o[_0x46885f(0x2e3)],g['UniverDocsUIPlugin'],p['UniverSheetsDrawingPlugin'],r[_0x46885f(0x25c)],_[_0x46885f(0x254)],i[_0x46885f(0x376)],l[_0x46885f(0x22c)],e[_0x46885f(0x454)]),O(0x1,(0x0,a[_0x46885f(0x41b)])(a[_0x46885f(0x366)])),O(0x2,a[_0x46885f(0x4aa)]),O(0x3,a[_0x46885f(0x258)]),O(0x4,c[_0x46885f(0x23d)])],$),exports[_0x46885f(0x26d)]=Ye,exports[_0x46885f(0x3f8)]=Xe,Object[_0x46885f(0x32e)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|