@univerjs-pro/sheets-shape-ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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/README.md +5 -3
- 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.css +21 -0
- 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/command-util.d.ts +0 -11
- package/lib/types/commands/operations/open-object-list-panel.operation.d.ts +5 -0
- package/lib/types/const.d.ts +3 -1
- package/lib/types/controllers/components.controller.d.ts +4 -2
- package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +1 -2
- package/lib/types/controllers/shape-update.controller.d.ts +1 -0
- package/lib/types/controllers/sheet-shape-adjust.controller.d.ts +3 -6
- package/lib/types/controllers/sheet-shape-printing.controller.d.ts +12 -0
- package/lib/types/controllers/sheet-shape-render.controller.d.ts +9 -3
- package/lib/types/index.d.ts +1 -7
- package/lib/types/locale/en-US.d.ts +18 -33
- package/lib/types/menu/object-list.menu.d.ts +4 -0
- package/lib/types/services/shape-text-editing.service.d.ts +8 -0
- package/lib/types/utils/shape-text-document.d.ts +1 -11
- package/lib/types/view-model/drawing-shape.d.ts +6 -2
- package/lib/types/views/ShapePicker.d.ts +2 -0
- package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/shape-editor-panel/ShapeFillEditor.d.ts +1 -2
- 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 -19
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
- package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
- package/lib/types/view-model/shape-data-model.d.ts +0 -6
- package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
- /package/lib/types/commands/operations/{actvie-drawing-operation.d.ts → active-drawing-operation.d.ts} +0 -0
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x524578=_0x317d;(function(_0x2e3d62,_0x3e9a99){const _0x36049e=_0x317d,_0xa85496=_0x2e3d62();while(!![]){try{const _0x57fcd7=-parseInt(_0x36049e(0x237))/0x1+parseInt(_0x36049e(0x371))/0x2*(-parseInt(_0x36049e(0x37d))/0x3)+-parseInt(_0x36049e(0x101))/0x4+-parseInt(_0x36049e(0x29e))/0x5*(-parseInt(_0x36049e(0x100))/0x6)+-parseInt(_0x36049e(0x313))/0x7+-parseInt(_0x36049e(0x18e))/0x8*(parseInt(_0x36049e(0x275))/0x9)+-parseInt(_0x36049e(0x1e1))/0xa*(-parseInt(_0x36049e(0x14c))/0xb);if(_0x57fcd7===_0x3e9a99)break;else _0xa85496['push'](_0xa85496['shift']());}catch(_0x3a9834){_0xa85496['push'](_0xa85496['shift']());}}}(_0x30ca,0x68154),Object[_0x524578(0x319)](exports,Symbol[_0x524578(0x361)],{'value':'Module'}));let e=require('@univerjs-pro/sheets-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('rxjs'),a=require('@univerjs/drawing'),o=require('@univerjs/engine-render'),s=require('@univerjs/docs-ui'),c=require('@univerjs/sheets-ui'),l=require('@univerjs/ui'),u=require('@univerjs-pro/engine-shape'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/docs'),p=require('@univerjs-pro/shape-editor-ui'),m=require('react/jsx-runtime'),h=require('@univerjs/sheets-drawing-ui'),g=require('react');function _(_0xb9b61b){'@babel/helpers - typeof';const _0x239b9d=_0x524578;return _=typeof Symbol==_0x239b9d(0x132)&&typeof Symbol['iterator']==_0x239b9d(0x208)?function(_0x31342d){return typeof _0x31342d;}:function(_0xf973f4){const _0x2852e9=_0x239b9d;return _0xf973f4&&typeof Symbol==_0x2852e9(0x132)&&_0xf973f4[_0x2852e9(0x1de)]===Symbol&&_0xf973f4!==Symbol[_0x2852e9(0x226)]?_0x2852e9(0x208):typeof _0xf973f4;},_(_0xb9b61b);}function v(_0x371fbd,_0x13687e){const _0x33340d=_0x524578;if(_(_0x371fbd)!=_0x33340d(0x34b)||!_0x371fbd)return _0x371fbd;var _0x6c44f3=_0x371fbd[Symbol['toPrimitive']];if(_0x6c44f3!==void 0x0){var _0x14e998=_0x6c44f3[_0x33340d(0x33d)](_0x371fbd,_0x13687e||_0x33340d(0x1b3));if(_(_0x14e998)!=_0x33340d(0x34b))return _0x14e998;throw TypeError(_0x33340d(0x251));}return(_0x13687e===_0x33340d(0x12b)?String:Number)(_0x371fbd);}function y(_0x12f453){const _0x240984=_0x524578;var _0x2f773b=v(_0x12f453,_0x240984(0x12b));return _(_0x2f773b)==_0x240984(0x208)?_0x2f773b:_0x2f773b+'';}function b(_0x2af099,_0x12407e,_0x4fcd71){const _0x3707be=_0x524578;return(_0x12407e=y(_0x12407e))in _0x2af099?Object[_0x3707be(0x319)](_0x2af099,_0x12407e,{'value':_0x4fcd71,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2af099[_0x12407e]=_0x4fcd71,_0x2af099;}var x=class extends t['Disposable']{constructor(..._0xa0896f){const _0x29bd71=_0x524578;super(..._0xa0896f),b(this,_0x29bd71(0x258),new i[(_0x29bd71(0x1d4))](null)),b(this,_0x29bd71(0x1b4),this[_0x29bd71(0x258)]['asObservable']()),b(this,_0x29bd71(0x3c0),new i[(_0x29bd71(0x1d4))](!0x1)),b(this,_0x29bd71(0x3ae),this[_0x29bd71(0x3c0)][_0x29bd71(0x30d)]());}[_0x524578(0x3bb)](){const _0x5912ed=_0x524578;this['_editingParams$']['next'](null),this[_0x5912ed(0x258)][_0x5912ed(0x1d7)](),this['_onSavingEditorData$'][_0x5912ed(0x241)](!0x1),this[_0x5912ed(0x3c0)][_0x5912ed(0x1d7)](),super[_0x5912ed(0x3bb)]();}[_0x524578(0x35b)](_0x27baaf){const _0x527177=_0x524578;this[_0x527177(0x258)][_0x527177(0x241)](_0x27baaf),_0x27baaf==null&&this[_0x527177(0x3c0)][_0x527177(0x241)](!0x1);}[_0x524578(0x267)](_0x4dcbe8){const _0x31bf5e=_0x524578;this[_0x31bf5e(0x3c0)]['next'](_0x4dcbe8);}[_0x524578(0x28c)](){return this['_editingParams$']['getValue']();}};function S(_0x1955b5,_0x187b7b){const _0x2fcd8f=_0x524578;let _0x53974c={};for(let _0x5c6711 of Object[_0x2fcd8f(0x3ca)](_0x187b7b)){let _0x2b4375=_0x187b7b[_0x5c6711],_0x28a19c=_0x1955b5[_0x5c6711];if(_0x2b4375!==void 0x0){if(_0x28a19c===void 0x0){_0x53974c[_0x5c6711]=void 0x0;continue;}typeof _0x2b4375==_0x2fcd8f(0x34b)&&_0x2b4375&&!Array[_0x2fcd8f(0x1e0)](_0x2b4375)&&typeof _0x28a19c==_0x2fcd8f(0x34b)&&_0x28a19c&&!Array[_0x2fcd8f(0x1e0)](_0x28a19c)?_0x53974c[_0x5c6711]=S(_0x28a19c,_0x2b4375):_0x53974c[_0x5c6711]=_0x28a19c;}}return _0x53974c;}const C={'type':t[_0x524578(0x253)]['COMMAND'],'id':'sheet.command.update-shape-data','handler':(_0x232484,_0xb9a3f5)=>{const _0x4cc17f=_0x524578;let _0x503918=_0x232484['get'](e['SheetsShapeService']),{unitId:_0x35d912,subUnitId:_0x46c7d0,shapeType:_0x5c8879,shapeId:_0x548fce,shapeData:_0x5f32e1,oldShapeJSON:_0x10945a}=_0xb9a3f5;if(!_0x503918['getShapeModel'](_0x35d912,_0x46c7d0,_0x548fce))return!0x1;let _0x30c3f4=_0x232484[_0x4cc17f(0x109)](t[_0x4cc17f(0x13d)]),_0x43cc2c=_0x232484['get'](t[_0x4cc17f(0x334)]),{oldShapeType:_0x3aa78b,oldShapeData:_0x123f7f={}}=_0x10945a,_0x5aed84=S(_0x123f7f,_0x5f32e1||{}),_0x19fb84={'id':e['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x35d912,'subUnitId':_0x46c7d0,'shapeId':_0x548fce,'shapeType':_0x5c8879,'shapeData':_0x5f32e1}},_0xb43946={'id':e[_0x4cc17f(0x343)]['id'],'params':{'unitId':_0x35d912,'subUnitId':_0x46c7d0,'shapeId':_0x548fce,'shapeType':_0x3aa78b,'shapeData':_0x5aed84}};return _0x30c3f4['syncExecuteCommand'](_0x19fb84['id'],_0x19fb84['params'])?(_0x43cc2c[_0x4cc17f(0x182)]({'unitID':_0x35d912,'undoMutations':[_0xb43946],'redoMutations':[_0x19fb84]}),!0x0):!0x1;}},w={'type':t[_0x524578(0x253)][_0x524578(0x166)],'id':'sheet.command.set-shape-text-horizontal-align','handler':async(_0x4097b5,_0x8dc0a9)=>{const _0x3dcbe0=_0x524578;var _0x23bf77;if(!(0x0,n[_0x3dcbe0(0x1cb)])(_0x4097b5[_0x3dcbe0(0x109)](t['IUniverInstanceService'])))return!0x1;let _0x17256a=_0x4097b5[_0x3dcbe0(0x109)](r['ISheetDrawingService'])[_0x3dcbe0(0x39c)]()[_0x3dcbe0(0x2ae)](_0x2dbfbb=>_0x2dbfbb[_0x3dcbe0(0x232)]===t[_0x3dcbe0(0x224)][_0x3dcbe0(0x1c6)]);if(_0x17256a[_0x3dcbe0(0x355)]!==0x1)return!0x1;let _0x59667a=_0x4097b5[_0x3dcbe0(0x109)](x)[_0x3dcbe0(0x28c)](),_0x2a08f9=(_0x59667a==null?void 0x0:_0x59667a[_0x3dcbe0(0x2f9)])||_0x17256a[0x0]['unitId'],_0x8c89c9=(_0x59667a==null?void 0x0:_0x59667a[_0x3dcbe0(0x1fa)])||_0x17256a[0x0]['subUnitId'],_0xdb8cda=(_0x59667a==null?void 0x0:_0x59667a['shapeId'])||_0x17256a[0x0][_0x3dcbe0(0x167)],_0x471e59=_0x4097b5['get'](e['SheetsShapeService'])[_0x3dcbe0(0x333)](_0x2a08f9,_0x8c89c9,_0xdb8cda);if(!_0x471e59)return!0x1;let _0x26c59b=_0x471e59[_0x3dcbe0(0x188)]();if(!_0x26c59b||!(_0x3dcbe0(0x149)in _0x26c59b))return!0x1;let _0x418cf7=_0x4097b5[_0x3dcbe0(0x109)](t['ICommandService']),{value:_0x1a1910}=_0x8dc0a9,_0xe6152f=_0x471e59[_0x3dcbe0(0x321)](),_0x40bba6=_0x471e59[_0x3dcbe0(0x370)](),_0x5c8b51={..._0x26c59b[_0x3dcbe0(0x149)],'ha':_0x1a1910};return await _0x418cf7[_0x3dcbe0(0x23e)](C['id'],{'unitId':_0x2a08f9,'subUnitId':_0x8c89c9,'shapeId':_0xdb8cda,'shapeType':_0xe6152f,'shapeData':{'shapeText':{'isHorizontal':(_0x23bf77=_0x26c59b[_0x3dcbe0(0x2a0)])==null?!0x0:_0x23bf77,'dataModel':_0x5c8b51}},'oldShapeJSON':{'oldShapeType':_0xe6152f,'oldShapeData':_0x40bba6}});}},T={'type':t[_0x524578(0x253)]['COMMAND'],'id':_0x524578(0x1f1),'handler':async(_0x4d8c54,_0x5a12b8)=>{const _0x207ec0=_0x524578;var _0x11279b;if(!_0x5a12b8)return!0x1;let {value:_0x67d344}=_0x5a12b8,_0x5591e7=_0x4d8c54[_0x207ec0(0x109)](t[_0x207ec0(0x13d)]),_0x36c03d=_0x4d8c54[_0x207ec0(0x109)](x),_0x150982=_0x4d8c54[_0x207ec0(0x109)](e['SheetsShapeService']),_0x450286=_0x4d8c54[_0x207ec0(0x109)](o['IRenderManagerService']),_0x12fa92=_0x36c03d[_0x207ec0(0x28c)]();if(!_0x12fa92)return!0x1;let {unitId:_0x5bb7f8,subUnitId:_0x423627,shapeId:_0x149a82}=_0x12fa92,_0x1ec402=_0x150982[_0x207ec0(0x333)](_0x5bb7f8,_0x423627,_0x149a82);if(!_0x1ec402)return!0x1;let _0x58a707=_0x1ec402[_0x207ec0(0x188)]();if(!_0x58a707||!(_0x207ec0(0x149)in _0x58a707))return!0x1;let _0x1343b7=_0x58a707[_0x207ec0(0x149)];if(!_0x1343b7)return!0x1;let _0xc96bb3={..._0x1343b7,'fs':_0x67d344},_0x1fc9de=await _0x5591e7[_0x207ec0(0x23e)](C['id'],{'unitId':_0x5bb7f8,'subUnitId':_0x423627,'shapeId':_0x149a82,'shapeData':{'shapeText':{'isHorizontal':(_0x11279b=_0x58a707[_0x207ec0(0x2a0)])==null?!0x0:_0x11279b,'dataModel':_0xc96bb3}}});if(_0x1fc9de){let _0x538fa2=_0x450286[_0x207ec0(0x18d)](_0x5bb7f8);if(_0x538fa2!=null&&_0x538fa2[_0x207ec0(0x295)]){let _0x23a681=(0x0,a['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5bb7f8,'subUnitId':_0x423627,'drawingId':_0x149a82}),_0x3723de=_0x538fa2['scene'][_0x207ec0(0x228)](_0x23a681);_0x3723de&&_0x3723de[_0x207ec0(0x25e)](!0x0);}}return _0x1fc9de;}},E={'type':t[_0x524578(0x253)][_0x524578(0x166)],'id':_0x524578(0x146),'handler':async _0x4256de=>{const _0x43b102=_0x524578;var _0x37c293;let _0x382d53=_0x4256de['get'](x),_0x1a03b4=_0x4256de['get'](e['SheetsShapeService']),_0x17d0ad=_0x4256de[_0x43b102(0x109)](t[_0x43b102(0x13d)]),_0x22d737=_0x382d53['getEditing']();if(!_0x22d737)return!0x1;let {unitId:_0x57f155,subUnitId:_0x31afd1,shapeId:_0x45dd44}=_0x22d737,_0x186e86=_0x1a03b4[_0x43b102(0x333)](_0x57f155,_0x31afd1,_0x45dd44);if(!_0x186e86)return!0x1;let _0x3085e8=_0x186e86[_0x43b102(0x188)]();if(!_0x3085e8||!('dataModel'in _0x3085e8))return!0x1;let _0x2ddde4=_0x3085e8[_0x43b102(0x149)],_0x32edd0=(_0x37c293=_0x2ddde4==null?void 0x0:_0x2ddde4['fs'])==null?0xe:_0x37c293,_0x3c12ce=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x3c4561=_0x32edd0,_0x3d9d06=_0x3c12ce[_0x43b102(0x2c2)](_0x32edd0);return _0x3d9d06!==-0x1&&_0x3d9d06<_0x3c12ce[_0x43b102(0x355)]-0x1?_0x3c4561=_0x3c12ce[_0x3d9d06+0x1]:_0x3d9d06===-0x1&&(_0x3c4561=Math[_0x43b102(0x2de)](_0x32edd0)+0x1),_0x17d0ad[_0x43b102(0x23e)](T['id'],{'value':_0x3c4561});}},D={'type':t[_0x524578(0x253)][_0x524578(0x166)],'id':_0x524578(0x3ad),'handler':async _0xe41560=>{const _0x2f1c0f=_0x524578;var _0x5d3453;let _0x3f366a=_0xe41560[_0x2f1c0f(0x109)](x),_0x109ccc=_0xe41560[_0x2f1c0f(0x109)](e[_0x2f1c0f(0x2ac)]),_0x12a0c9=_0xe41560['get'](t['ICommandService']),_0x25064b=_0x3f366a['getEditing']();if(!_0x25064b)return!0x1;let {unitId:_0x456032,subUnitId:_0x294ebb,shapeId:_0x1e0e91}=_0x25064b,_0x4e5766=_0x109ccc[_0x2f1c0f(0x333)](_0x456032,_0x294ebb,_0x1e0e91);if(!_0x4e5766)return!0x1;let _0x312480=_0x4e5766[_0x2f1c0f(0x188)]();if(!_0x312480||!('dataModel'in _0x312480))return!0x1;let _0x42d355=_0x312480[_0x2f1c0f(0x149)],_0x8bf276=(_0x5d3453=_0x42d355==null?void 0x0:_0x42d355['fs'])==null?0xe:_0x5d3453,_0xda1931=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x1b9d5a=_0x8bf276,_0x20ce27=_0xda1931[_0x2f1c0f(0x2c2)](_0x8bf276);return _0x20ce27!==-0x1&&_0x20ce27>0x0?_0x1b9d5a=_0xda1931[_0x20ce27-0x1]:_0x20ce27===-0x1&&(_0x1b9d5a=Math['floor'](_0x8bf276)-0x1),_0x1b9d5a<0x1&&(_0x1b9d5a=0x1),_0x12a0c9[_0x2f1c0f(0x23e)](T['id'],{'value':_0x1b9d5a});}},O={'type':t[_0x524578(0x253)]['COMMAND'],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x3af0b3,_0x20f75b)=>{const _0x5aae9e=_0x524578;var _0xf74b7b;if(!(0x0,n[_0x5aae9e(0x1cb)])(_0x3af0b3[_0x5aae9e(0x109)](t[_0x5aae9e(0x2b7)])))return!0x1;let _0x5abce0=_0x3af0b3[_0x5aae9e(0x109)](r[_0x5aae9e(0x18a)])[_0x5aae9e(0x39c)]()[_0x5aae9e(0x2ae)](_0xde0384=>_0xde0384[_0x5aae9e(0x232)]===t[_0x5aae9e(0x224)]['DRAWING_SHAPE']);if(_0x5abce0[_0x5aae9e(0x355)]!==0x1)return!0x1;let _0x13e5fe=_0x3af0b3[_0x5aae9e(0x109)](x)['getEditing'](),_0x30e760=(_0x13e5fe==null?void 0x0:_0x13e5fe[_0x5aae9e(0x2f9)])||_0x5abce0[0x0][_0x5aae9e(0x2f9)],_0x2250dc=(_0x13e5fe==null?void 0x0:_0x13e5fe[_0x5aae9e(0x1fa)])||_0x5abce0[0x0][_0x5aae9e(0x1fa)],_0x3a4441=(_0x13e5fe==null?void 0x0:_0x13e5fe['shapeId'])||_0x5abce0[0x0][_0x5aae9e(0x167)],_0x51c7da=_0x3af0b3[_0x5aae9e(0x109)](e[_0x5aae9e(0x2ac)])[_0x5aae9e(0x333)](_0x30e760,_0x2250dc,_0x3a4441);if(!_0x51c7da)return!0x1;let _0x1a90b3=_0x51c7da[_0x5aae9e(0x188)]();if(!_0x1a90b3||!(_0x5aae9e(0x149)in _0x1a90b3))return!0x1;let _0x45ff54=_0x3af0b3['get'](t['ICommandService']),{value:_0x5c6f8d}=_0x20f75b,_0x376f40=_0x51c7da[_0x5aae9e(0x321)](),_0x3abe29=_0x51c7da[_0x5aae9e(0x370)](),_0x557120={..._0x1a90b3[_0x5aae9e(0x149)],'va':_0x5c6f8d};return await _0x45ff54[_0x5aae9e(0x23e)](C['id'],{'unitId':_0x30e760,'subUnitId':_0x2250dc,'shapeId':_0x3a4441,'shapeType':_0x376f40,'shapeData':{'shapeText':{'isHorizontal':(_0xf74b7b=_0x1a90b3[_0x5aae9e(0x2a0)])==null?!0x0:_0xf74b7b,'dataModel':_0x557120}},'oldShapeJSON':{'oldShapeType':_0x376f40,'oldShapeData':_0x3abe29}});}},k={'type':t[_0x524578(0x253)][_0x524578(0x166)],'id':_0x524578(0x23d),'handler':(_0x117497,_0x4fa5af)=>{const _0x1111dd=_0x524578;if(!_0x4fa5af)return!0x1;let {value:_0xed6695}=_0x4fa5af;return _0x117497[_0x1111dd(0x109)](t[_0x1111dd(0x13d)])['syncExecuteCommand'](s[_0x1111dd(0x243)]['id'],{'alignType':_0xed6695});}},A={'type':t[_0x524578(0x253)][_0x524578(0x17e)],'id':_0x524578(0x135),'handler'(){return!0x0;}},j={'type':t[_0x524578(0x253)][_0x524578(0x17e)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}},M=_0x524578(0x347),ee=_0x524578(0x143),te=(0x0,t[_0x524578(0x22c)])('SHAPE_TEXT');function N(_0x303085,_0x3650b2,_0x4f11d1,_0x3b5c85,_0x4282a7,_0x26f8ff){const _0x231e51=_0x524578;let _0x31ce02={'unitId':_0x3650b2,'subUnitId':_0x4f11d1,'shapeId':_0x3b5c85,'shapeData':_0x26f8ff,'oldShapeJSON':_0x4282a7};return _0x303085[_0x231e51(0x23e)](C['id'],_0x31ce02);}function ne(_0x4539e0,_0x4752b5,_0x5c30a7,_0x2590db,_0x530f56,_0x150e26){const _0x47732d=_0x524578;let _0x4b47c8={'unitId':_0x4752b5,'subUnitId':_0x5c30a7,'shapeId':_0x2590db,'shapeData':_0x150e26,'oldShapeJSON':_0x530f56};return _0x4539e0[_0x47732d(0x23e)](C['id'],_0x4b47c8);}function _0x30ca(){const _0x1cbae4=['deriveStateFromActiveSheet$','SetShapeTextVerticalAlignCommand','isHit','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','ang','_adjHandlerPointerMove','insertGroupObject','IImageIoService','_injector','VERTICAL_ROTATE_ANGLE','sheet.command.set-shape-text-font-size','subscribeEvent','prstGeomAdjValues','UniverSheetsShapeUIPlugin','FOCUSING_SHAPE_TEXT_EDITOR','_activeShapeId','RENDER_CLASS_TYPE','getConnectionInfo','cxnPointRadius','subUnitId','SheetCanvasPopManagerService','popup','_initSelection','_transformCalculateSrcRect','_registerComponents','dataStream','IConfigService','getOwnPropertyDescriptor','isRender','focusDrawing','Image','close','image','symbol','lineSpacing','updateContext','isHighlighted','getAllUnitsForType','sheets-shape-ui.imagePanel.crop.shape','_localeService','IRenderManagerService','_clipService','SetInlineFormatTextBackgroundColorCommand','ShapeModel','worldPoint','stringify','UPDATE','ShapeIcon','getDrawingPoints','_showConnectionSites','_openShapeEditPanel','getContextValue','prstGeom','Path','_updateAdjustControlPositions','INSERT','featurePluginUpdateNotification','pick','_registerFocusChangeHandler','ShapeArrowTypeEnum','SHAPE','DrawingTypeEnum','REMOVE','prototype','_addControl','getObjectIncludeInGroup','onPointerMove$','isRichText','Injector','createInternalEditorID','DocSelectionManagerService','sqrt','_configService','skeleton','cxnIndex','drawingType','registerClipDelegate','getDrawingData','getSelectedObjectMap','clearAdjustValue','771077ARGdsx','DocumentDataModel','Disposable','_attachConnectorObjectEvent','getCurrentSkeleton','cxnPointStrokeWidth','sheet.command.shape-doc-align','executeCommand','redo','connector-handler-','next','extraProps','AlignOperationCommand','DRAWING_IMAGE','getState','_closeShapeEditPanel','_componentManager','AlignTopIcon','getUnitId','getTransformer','_subUnitId','PaintBucketDoubleIcon','_findNearestConnectionSite','onStarting','_activeTargetShapeId','div','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sheets-shape-ui.align.center','CommandType','MIDDLE','DocumentViewModel','RemoveSheetCommand','onRendered','_editingParams$','memo','isDrawingObject','_getOrCreateShapeModel','_isShouldShowDrawingShapeAdjust','drawing.operation.set-drawing-active','makeDirty','value','_drawingAddListener','clipByShape','_getConnectionSiteAngle','_createShapeAdjustControls','SheetsShapeUIController','_isConnecting','_getShapeAdjustInfosById','setOnSavingEditorData','getSheetBySheetId','RibbonInsertGroup','setSrcRect','setConfig','_cxtHandlerPointerUp','_clearConnectionSites','bind','_shapes','addClipboardHook','_currentConnectionTarget','SheetInterceptorService','SetSheetsShapeTextVerticalToggleCommand','lineType','17217jdJQEM','WorkbookEditablePermission','EMPTY','_handleFreeEndpointPointerUp','sheets-shape-ui.hidePanel','_rerouteConnectorLine','_isDrawingShapePointDown','DRAWING_DOM','useState','Arrow','packageName','forEach','onTransformChange$','UniverSheetsDrawingUIPlugin','sheetViewStartColumn','getStartConnectInfo','LEFT','adjHandleSize','shapeType','_sheetDrawingShapeRenderController','transformToDrawingPosition','_highlightedSiteIndex','_targetShapeId','getEditing','Documents','GROUP','getObject','adjName','horizontalAlign','SetDrawingApplyMutation','WrapStrategy','map','scene','drawWith','Medium','data','ISheetClipboardService','ancestorTransform','updateLinePoints','pipe','getShapeTextRect','205250zyHvOi','Transform','isHorizontal','RemoveSheetDrawingCommand','SHEET_VIEWPORT_KEY','onerror','fillType','_insertShapes','shapeKey','relation','beforeCommandExecuted','spaceBelow','some','SheetsSelectionsService','SheetsShapeService','FALSE','filter','sheets-shape-ui.align.bottom','_initPermission','_baseShapeLeft','subscribeContextValue$','_getScrollInfo','addObject','sin','_baseShapeTop','IUniverInstanceService','setHighlighted','composeMatrix','onload','_adjName','Rect','_calculateFreeEndpointAngle','angle','onCommandExecuted','isCurvedConnectorShape','fill','indexOf','setContextValue','_transform','lineShapeId','FOCUSING_COMMON_DRAWINGS','_sheetShapeAdjustController','DrawingImageClipService','DrawingApplyType','startConnectionDetection','save','getDrawingOKey','_sheetInterceptorService','_createCopyInfoByRange','render','interceptCommand','_handleConnectedEndpointPointerUp','_cxtHandlerPointerMove','offsetY','error','_registerMoveHandler','setCanUseShapeClip','_drawRichText','SheetScrollManagerService','_shapeUpdateListener','sheets-shape-ui.config','index','_createControls','updateShapeFillImage','floor','gdRefAng','setPrstGeom','_drawingRenderService','getShapePopupMenus','getAdjustInfoByName','remove$','COPY_TYPE','shapeModel','restore','attachPopupToObject','isInGroup','with','connection-site-','Line','_commandExecutedListener','AlignBottomIcon','getCurrentScrollState','clearControl$','RibbonPosition','setAdjustValueByName','endArrow','shapeId','CopySheetCommand','sheets-shape-ui.align.right','sheetTransform','changeStart$','unitId','classType','isConnectorShape','CENTER','createControl$','jsx','SetShapeTextFontSizeIncreaseCommand','_lastEditingShapeKey','setFillImage','_activeAdjustInfo','setShapeData','_moveConnectorWithShape','clone','getDrawingVisible','rotation','ShapeTextFloatMenuRenderControllerBase','type','changing$','touchDependencies','getColorFromTheme','asObservable','_draggingConnectorId','Large','UNIVER_SHEET','add','localeService','4680627CwUraK','#FFFFFF','Circle','_baseTop','sheetViewStartRow','abs','defineProperty','generateRandomId','startArrow','values','sheets-shape-ui.formatShape','getBentTypeFromPoints','_sheetClipboardService','unsubscribe','getShapeType','TOP','end','rect','getBasicShapeRotateBound','_initSheetChange','_copyInfo','beginPath','routeConnectorLineShape','updateConnectionDetection','point','ShapeDefaultConfig','endConnectionDetection','VIEW_MAIN_TOP','_sheetPermissionCheckController','zeroWidthParagraphBreak','visible','registerFeatureMenu','getShapeModel','IUndoRedoService','activeAnObject','setShouldShowAdjust','clip-adj-','worldPoints','sectionBreaks','SELECTOR','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_executeResizeCommand','call','horizontal','onPointerUp$','_executeConnectionCommand','_sheetBasicShapeConnectionPointController','enableObjectsEvent','UpdateSheetsShapeDataMutation','MenuItemType','_groupCopyPasteController','size','sheet.shape.edit.panel','onSteady','targetShapeId','setCursor','object','Inject','computeConnectorResizeLayout','calculate','_sheetSkeletonService','clearAdjustControls','_attachAdjustEvent','BooleanNumber','gdRefR','attachTransformerTo','length','jsxs','_updateImageAdjValues','_getConnectPointInfo','_updateShapeAdjustControls','push','setEditing','LeftJustifyingIcon','sheets-shape-ui.toggleFlipH','_clearShapeAdjustControls','_popupMenuListener','_activeShapeInfo','toStringTag','copyType','gdRefX','_executeConnectedRouteResizeCommand','_activeImageId','applyPoint','isEditing','UNIVER_DOC','calcAdjValue','icon','shapeData','_connectorObjects','_imageIoService','disableObjectsEvent','_shapeTextEditingService','getShapeData','99562ArfrEQ','startX','getRealBound','highlighted','RIGHT','_handleFreeEndpointMove','getConnectionRelation','IDrawingManagerService','GridType','_sheetDrawingService','attachRangeWithCoord','stopPropagation','3PlkXSr','decorate','_adjHandlerPointerUp','registerCommand','objects','_activeAdjustPointList','_shapeService','transformByState','_context','srcRect','getBatchRemoveOp','SheetSkeletonService','sheets-shape-ui.align.left','_drawSimpleText','subscribe','ShapeFloatingToolbar','transform','isHitLine','onReady','getConnectionSiteList','entries','_updateSrcRectByTransform','textStyle','UUID','_baseWidth','getTransformerByCreate','getBatchUpdateOp','changeEnd$','SheetPermissionCheckController','DependentOn','changeShapeType','getFocusDrawings','_unitId','_commandService','getBatchAddOp','#bcbcbc','_disposePopups','InsertShapeCommand','getDrawingByParam','_initEditingParams','ShapeLineTypeEnum','initShapePopupMenu','isLineShape','DEFAULT_PASTE','from','pluginName','refreshAdjustControls','undo','sheet.command.set-shape-text-font-size-decrease','onSavingEditorData$','BOTTOM','UniverSheetsShapePlugin','shapeText','_registerShapeMenu','_reset','_clearPopups','sheet.shape.text.float-menu','computeConnectorRouteLayout','_baseLeft','deepClone','_baseShapeHeight','getSkeleton','dispose','DRAWING_OBJECT_LAYER_INDEX','_getImagePrstGeom','toDisposable','register','_onSavingEditorData$','setPrstGeomAdjValues','InsertSheetsShapeMutation','_registerDrawingFocusChangeHandler','startY','registerRenderModule','getMatrix','_getShapeInfo','strokeWidth','custom','keys','UniverInstanceType','_isImagePointerDown','_renderManagerService','computeStraightConnectorLayout','ImageSourceTypeEnum','has','flipX','PREDEFINED_HOOK_NAME','_initCopyPaste','getParent','54HsWGRP','3144696JIVEPM','_activeShapeModel','_setTransForm','_findShapeAtPoint','snapToGrid','_drawingManagerService','focus$','gdRefY','get','getImage','ComponentManager','localToWorld','_getImageDrawingInfo','_currentScene','useMemo','_generateCutPasteMutations','ResetInlineFormatTextBackgroundColorCommand','_config','_updateTransform','textRuns','_getZoomRatio','viewportScrollY','renderDrawingShape','SolidFill','_resetState','paragraphs','_drawShapeText','sheets-shape-ui.toolbar.resetColor','_baseHeight','oKey','ConnectorCoordinateTransform','SetShapeTextHorizontalAlignCommand','ShapeEditPanel','top','sheets-shape-ui.toolbar.verticalAlignMode.main','addImageSourceCache','Plugin','BUTTON','_getSceneAndTransformerByDrawingSearch','getEndConnectInfo','_getDrawingRect','ShapeTextEditorContainer','string','verticalAlign','sheets-shape-ui.openPanel','_generateCopyPasteMutations','setShapeProps','blockExecuteWithoutPermission','normal','function','_loadShapePictureFill','_clearControls','sheet.operation.close-sheet-shape-format-panel','RibbonStartGroup','gridType','ShapePickerPanel','_univerInstanceService','renderConfig','adjustValues','_sheetsShapeService','ICommandService','_draw','_handleBasicShapeUpdateConnectorLineShape','Observable','SetSheetsShapeRotateCommand','syncExecuteCommand','sheet.shape.floating-toolbar','_sidebarService','_createShapePopupMenu','sheet.command.set-shape-text-font-size-increase','isStartConnectorPoint','getAdjustValueByName','dataModel','translate','removeLinePoints','27741494XwLSar','worldRect','buildShapeTextDataUpdate','_urlImageService','useEffect','update$','getMenuHiddenObservable','_sheetCanvasPopManagerService','_registerOperations','_isHighlighted','IContextService','_initCommands','params','version','DEFAULT','sheets-shape-ui.deleteShape','getViewportByCell','parse','fillImageSource','Shape','_focusedDrawings','clip-','_clearShapeConnectorHandlerObjects','offsetX','documentStyle','doc','COMMAND','drawingId','_isOpenedShapeEditPanel','UpdateConnectorRelationCommand','_baseDrawingRect','find','ShapeGroupEnum','DrawingCommonPanel','_generatePasteMutations','discreteRangeToRange','switchMap','sheets-shape-ui.permission.editErr','_cxnIndex','None','spaceAbove','_baseShapeWidth','_registerGroupFeaturePasteHook','LocaleService','_contextService','_imageShapeClipController','getDrawingShapeKeyByDrawingSearch','getShapeDataById','_drawingType','getCurrentTypeOfUnit$','OPERATION','cos','flipY','DrawingRenderService','pushUndoRedo','add$','left','_addShapeAdjustControl','resize','top-center','getShapeTextData','set','ISheetDrawingService','SheetsDrawingGroupCopyPasteController','getInverseCoord','getRenderById','792NlamOB','getCurrentLastSelection','_shapeId','getAdjustNames','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','SheetDrawingAnchor','ThemeService','CUT','_handleConnectedEndpointMove','ShapePickerDropdown','multiply','_registerDrawingMoveHandler','getConnectorLinePoints','transformForAngle','_initializedShapePopupMenu','_addShapeConnectorHandlerObjects','_isStartAdjusting','_activeShapeAdjustPointList','BUTTON_SELECTOR','ShapeRenderModeEnum','getBasicShapeRelation','VerticalAlign','_addShapeConnectorHandlerObject','_loadAndSetImage','CURSOR_TYPE','paragraphStyle','UpdateShapeDataCommand','ShapeFillEnum','_connectionSiteObjects','clear','VerticalCenterIcon','getUnit','_shapeEditPanelVersion','width','#1a73e8','ISidebarService','useDependency','default','editingParams$','_getShapeAdjustPointListById','_registerImageShapeClipDelegate','ToggleSheetsShapeFlipCommand','_sidebarDisposable','sheets-shape-ui','LAYOUT','sheets-shape-ui.toggleFlipV','body','sheet.shape.picker.component','startWith','WRAP','resetCursor','getZoomRatio','sheets-shape-ui.align.top','_props','_menuManagerService','open','DRAWING_SHAPE','HorizontalAlign','RemoveSheetsShapeMutation','IURLImageService','_initialize','getSheetCommandTarget','_hasReset','ShapeTextFloatToolbar','adjHandleStroke','_isStartConnectorPoint','getDrawingEditable','disposeWithMe','onPointerDown$','_initEvents','BehaviorSubject','invert','src','complete','_init','viewportScrollX','ShapeTypeEnum','cxnPointStroke','height','WorksheetEditPermission','constructor','ShapeArrowSizeEnum','isArray','10tiXOly','activeSheet$','onDblclick$','getDrawingSearch','CROSSHAIR','SheetSkeletonManagerService'];_0x30ca=function(){return _0x1cbae4;};return _0x30ca();}function re(_0x5c2d53){const _0xbbab4b=_0x524578;var _0x22f697,_0x2795f8,_0x1c6ce1,_0x1b108a;let _0x1705e4=(_0x22f697=(_0x2795f8=_0x5c2d53[_0xbbab4b(0x1bc)])==null||(_0x2795f8=_0x2795f8[_0xbbab4b(0x200)])==null?void 0x0:_0x2795f8[_0xbbab4b(0x355)])==null?0x0:_0x22f697,_0x3a4acd=(_0x1c6ce1=_0x5c2d53['body'])==null?void 0x0:_0x1c6ce1[_0xbbab4b(0x339)];if(_0x3a4acd!=null&&_0x3a4acd[_0xbbab4b(0x355)])for(let _0x33acf5 of _0x3a4acd){var _0x1ffabe;_0x33acf5[_0xbbab4b(0x137)]=(_0x1ffabe=_0x33acf5['gridType'])==null?t[_0xbbab4b(0x379)]['DEFAULT']:_0x1ffabe;}else _0x5c2d53['body']&&(_0x5c2d53[_0xbbab4b(0x1bc)]['sectionBreaks']=[{'startIndex':Math['max'](0x0,_0x1705e4-0x1),'gridType':t['GridType'][_0xbbab4b(0x15a)]}]);let _0x2c06c4=(_0x1b108a=_0x5c2d53[_0xbbab4b(0x1bc)])==null?void 0x0:_0x1b108a['paragraphs'];if(_0x2c06c4)for(let _0x3c3e9d of _0x2c06c4){var _0x2180e4,_0x2250e9,_0x4fdb50,_0x133e12,_0x469136,_0x564947,_0x13fbe8,_0x4a48e6;_0x3c3e9d[_0xbbab4b(0x1a7)]={..._0x3c3e9d['paragraphStyle'],'lineSpacing':(_0x2180e4=(_0x2250e9=_0x3c3e9d['paragraphStyle'])==null?void 0x0:_0x2250e9[_0xbbab4b(0x209)])==null?0x1:_0x2180e4,'snapToGrid':(_0x4fdb50=(_0x133e12=_0x3c3e9d['paragraphStyle'])==null?void 0x0:_0x133e12[_0xbbab4b(0x105)])==null?t['BooleanNumber'][_0xbbab4b(0x2ad)]:_0x4fdb50,'spaceAbove':(_0x469136=(_0x564947=_0x3c3e9d[_0xbbab4b(0x1a7)])==null?void 0x0:_0x564947[_0xbbab4b(0x174)])==null?{'v':0x0}:_0x469136,'spaceBelow':(_0x13fbe8=(_0x4a48e6=_0x3c3e9d[_0xbbab4b(0x1a7)])==null?void 0x0:_0x4a48e6[_0xbbab4b(0x2a9)])==null?{'v':0x0}:_0x13fbe8};}}function ie(_0x1e37ef){const _0xb39bb6=_0x524578;let _0x447bc8=_0x1e37ef[_0xb39bb6(0x1bc)],_0x38e1f7=_0x447bc8==null?void 0x0:_0x447bc8[_0xb39bb6(0x11a)],_0x551707=_0x447bc8==null?void 0x0:_0x447bc8[_0xb39bb6(0x200)];if(!_0x447bc8||!(_0x38e1f7!=null&&_0x38e1f7[_0xb39bb6(0x355)])||!_0x551707)return;let _0x527d37=[];for(let _0x5f4ba4=0x0;_0x5f4ba4<_0x551707[_0xb39bb6(0x355)];_0x5f4ba4++)_0x551707[_0x5f4ba4]==='\x0d'&&_0x527d37['push'](_0x5f4ba4);_0x527d37['length']===_0x38e1f7[_0xb39bb6(0x355)]&&(_0x447bc8[_0xb39bb6(0x11a)]=_0x38e1f7['map']((_0x5d67a1,_0x192686)=>({..._0x5d67a1,'startIndex':_0x527d37[_0x192686]})));}function ae(_0x519bec,_0x13e588){const _0x1b9539=_0x524578;var _0x23aee3,_0x34ee1e,_0x228c91;let {isHorizontal:_0x3875e8,textRect:_0x3d89f2,verticalAlign:_0xee0361}=_0x13e588,_0x215337=_0x3875e8?_0x3d89f2[_0x1b9539(0x1af)]:_0x3d89f2['height'],_0x800d7d=t['Tools'][_0x1b9539(0x3b8)](_0x519bec),_0x5b95e3=(_0x23aee3=_0x800d7d[_0x1b9539(0x164)])==null?{}:_0x23aee3,_0x3d3d7a={..._0x5b95e3[_0x1b9539(0x13a)],'centerAngle':_0x3875e8?0x0:o[_0x1b9539(0x1f0)],'vertexAngle':_0x3875e8?0x0:o['VERTICAL_ROTATE_ANGLE'],'wrapStrategy':t[_0x1b9539(0x293)][_0x1b9539(0x1bf)],'zeroWidthParagraphBreak':(_0x34ee1e=(_0x228c91=_0x5b95e3[_0x1b9539(0x13a)])==null?void 0x0:_0x228c91[_0x1b9539(0x330)])==null?t[_0x1b9539(0x352)]['TRUE']:_0x34ee1e};if(_0xee0361!==void 0x0&&(_0x3d3d7a[_0x1b9539(0x12c)]=_0xee0361),_0x13e588[_0x1b9539(0x291)]!==void 0x0){var _0x52a67e;_0x3d3d7a[_0x1b9539(0x291)]=_0x13e588[_0x1b9539(0x291)];let _0x3df0d5=(_0x52a67e=_0x800d7d[_0x1b9539(0x1bc)])==null?void 0x0:_0x52a67e['paragraphs'];if(_0x3df0d5){for(let _0x24b953 of _0x3df0d5)_0x24b953['paragraphStyle']||(_0x24b953['paragraphStyle']={}),_0x24b953[_0x1b9539(0x1a7)][_0x1b9539(0x291)]=_0x13e588[_0x1b9539(0x291)];}}return _0x800d7d[_0x1b9539(0x164)]={..._0x5b95e3,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x215337,'height':0x1/0x0},'renderConfig':_0x3d3d7a},ie(_0x800d7d),re(_0x800d7d),_0x800d7d;}var P=class extends o[_0x524578(0x15f)]{constructor(_0x33d95b,_0x185024){const _0x59cef5=_0x524578;super(_0x33d95b,_0x185024),b(this,_0x59cef5(0x1c3),void 0x0),b(this,_0x59cef5(0x1fe),!0x0),b(this,_0x59cef5(0x17c),t[_0x59cef5(0x224)][_0x59cef5(0x1c6)]),b(this,_0x59cef5(0x25a),!0x0),this[_0x59cef5(0x1c3)]={..._0x185024},this['_init']();}[_0x524578(0x1d8)](){const _0x4a119a=_0x524578;this[_0x4a119a(0x281)][_0x4a119a(0x1f2)](_0x94d1b0=>{const _0x3c6498=_0x4a119a;this[_0x3c6498(0x392)](_0x94d1b0);});}[_0x524578(0x2e0)](_0x35eef2){const _0x4c2617=_0x524578;this[_0x4c2617(0x1c3)]['prstGeom']=_0x35eef2;}[_0x524578(0x35b)](_0x2b994c){const _0x36f5a4=_0x524578;this[_0x36f5a4(0x1c3)]['isEditing']=_0x2b994c,this[_0x36f5a4(0x25e)](!0x0);}get[_0x524578(0x2f9)](){const _0x34dda0=_0x524578;return this[_0x34dda0(0x1c3)][_0x34dda0(0x2f9)];}get[_0x524578(0x1fa)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x4961ce){const _0x55ab93=_0x524578;if(this[_0x55ab93(0x1c3)][_0x55ab93(0x386)]==null||!this[_0x55ab93(0x1fe)])return;let {width:_0x2510a2,height:_0x420150}=this,{width:_0x5c111f=0x0,height:_0x3b86c8=0x0}=_0x4961ce['preValue'],{left:_0x301d31=0x0,top:_0x7575c1=0x0,right:_0x4c28a2=0x0,bottom:_0xdb2611=0x0}=this[_0x55ab93(0x1c3)][_0x55ab93(0x386)],_0x389200=_0x301d31,_0x4921c3=_0x7575c1,_0x5352b0=_0x4c28a2,_0x2b6f82=_0xdb2611,_0x3c4359=!0x1;if(_0x5c111f!==0x0&&_0x5c111f!==_0x2510a2){let _0x3e4907=_0x301d31/_0x5c111f,_0x24c54d=_0x4c28a2/_0x5c111f;_0x389200=_0x2510a2*_0x3e4907,_0x5352b0=_0x2510a2*_0x24c54d,_0x3c4359=!0x0;}if(_0x3b86c8!==0x0&&_0x3b86c8!==_0x420150){let _0x2bb5ce=_0x7575c1/_0x3b86c8,_0x45633d=_0xdb2611/_0x3b86c8;_0x4921c3=_0x420150*_0x2bb5ce,_0x2b6f82=_0x420150*_0x45633d,_0x3c4359=!0x0;}_0x3c4359&&this['setSrcRect']({'left':_0x389200,'top':_0x4921c3,'right':_0x5352b0,'bottom':_0x2b6f82});}[_0x524578(0x26a)](_0x52ce30){const _0x19e322=_0x524578;this[_0x19e322(0x1c3)][_0x19e322(0x386)]=_0x52ce30,this['makeDirty'](!0x0);}[_0x524578(0x301)](_0x999848){const _0x179477=_0x524578;this[_0x179477(0x1c3)][_0x179477(0x207)]=_0x999848,this[_0x179477(0x25e)](!0x0);}set[_0x524578(0x38d)](_0x2ddd55){const _0x1daa38=_0x524578;this[_0x1daa38(0x2c4)]=_0x2ddd55;}get[_0x524578(0x38d)](){const _0x24a60a=_0x524578;this[_0x24a60a(0x2c4)]||this[_0x24a60a(0x103)]();let _0x17c755=this[_0x24a60a(0x2c4)][_0x24a60a(0x305)]();return this[_0x24a60a(0x19b)](_0x17c755);}get[_0x524578(0x2e6)](){const _0x27e0c5=_0x524578;return this['_props'][_0x27e0c5(0x2e6)];}get[_0x524578(0x2f4)](){const _0xb540a5=_0x524578;return this['_props'][_0xb540a5(0x2f4)];}get[_0x524578(0x2fa)](){const _0x3fd4b6=_0x524578;return o['RENDER_CLASS_TYPE'][_0x3fd4b6(0x223)];}[_0x524578(0x13e)](_0x188146,_0xdf4741,_0x5e0a08,_0x2187c4){const _0x486fac=_0x524578;let _0xf6eb57=this[_0x486fac(0x1c3)][_0x486fac(0x2e6)];if(!_0xf6eb57||!_0xdf4741)return;let _0x57ab97=_0x5e0a08==null?this[_0x486fac(0x1af)]:_0x5e0a08,_0x4576a5=_0x2187c4==null?this[_0x486fac(0x1dc)]:_0x2187c4,_0x43473c={'shapeType':_0xf6eb57[_0x486fac(0x321)](),'width':_0x57ab97,'height':_0x4576a5},_0x4b5a10={'renderMode':u[_0x486fac(0x1a1)][_0x486fac(0x21c)],'oKey':this[_0x486fac(0x11e)],'image':this[_0x486fac(0x1c3)][_0x486fac(0x207)],'angle':this[_0x486fac(0x2be)]};_0xf6eb57[_0x486fac(0x20a)](_0x43473c),_0x188146[_0x486fac(0x2cb)]();let _0x3f6e98={'top':0x0,'left':0x0,'width':_0x57ab97,'height':_0x4576a5};_0xf6eb57[_0x486fac(0x2cf)](_0x188146,_0x3f6e98,_0x4b5a10),_0x188146[_0x486fac(0x2e7)]();let _0x311f11=_0xf6eb57[_0x486fac(0x188)](),_0x1ba460=_0xf6eb57[_0x486fac(0x29d)](_0x3f6e98),_0xb2d9c1=_0xf6eb57[_0x486fac(0x3a7)]();if(_0x311f11&&_0x1ba460&&!_0xb2d9c1){_0x188146[_0x486fac(0x2cb)](),this[_0x486fac(0x245)]()[_0x486fac(0xfc)]&&_0x188146['scale'](-0x1,0x1);let _0x194932=_0x57ab97/0x2,_0x33547c=_0x4576a5/0x2;_0x188146[_0x486fac(0x14a)](-_0x194932,-_0x33547c),_0x188146['beginPath'](),this[_0x486fac(0x11b)](_0x188146,_0x311f11,_0x1ba460),_0x188146['restore']();}}[_0x524578(0x217)](_0x345e46){}[_0x524578(0x11b)](_0x39b57d,_0x377af7,_0xfdf2f6){const _0x133254=_0x524578;this[_0x133254(0x1c3)]['isEditing']||(_0x133254(0x22a)in _0x377af7&&_0x377af7[_0x133254(0x22a)]===!0x1?this[_0x133254(0x38a)](_0x39b57d,_0x377af7,_0xfdf2f6):this[_0x133254(0x2d7)](_0x39b57d,_0x377af7,_0xfdf2f6));}[_0x524578(0x38a)](_0x550567,_0x4c3e28,_0x10df19){}[_0x524578(0x2d7)](_0x5e94c6,_0x3dacc6,_0x190555){const _0x586e9d=_0x524578;var _0x22cd5b,_0x701251;let _0x21cdac=this[_0x586e9d(0x1c3)][_0x586e9d(0x312)];if(!_0x3dacc6[_0x586e9d(0x149)]||!_0x21cdac)return;let _0x562e72=_0x3dacc6[_0x586e9d(0x149)],_0x445800=_0x562e72['doc'],_0x5718a7=(_0x22cd5b=_0x562e72['va'])==null?t[_0x586e9d(0x1a3)][_0x586e9d(0x322)]:_0x22cd5b,_0x17a9b1=(_0x701251=_0x562e72['ha'])==null?t[_0x586e9d(0x1c7)][_0x586e9d(0x285)]:_0x701251;if(!_0x445800)return;let _0xe5b492=_0x3dacc6[_0x586e9d(0x2a0)],_0x30fc85=new t[(_0x586e9d(0x238))](ae(_0x445800,{'isHorizontal':_0xe5b492!==!0x1,'textRect':_0x190555,'verticalAlign':_0x5718a7,'horizontalAlign':_0x17a9b1})),_0x808160=new o[(_0x586e9d(0x255))](_0x30fc85),_0x33631c=o['DocumentSkeleton']['create'](_0x808160,_0x21cdac);_0x33631c[_0x586e9d(0x34e)]();let _0x2d4935=new o[(_0x586e9d(0x28d))]('shape-text-'+this['oKey'],_0x33631c,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x2d4935[_0x586e9d(0x186)](_0x190555[_0x586e9d(0x1af)],_0x190555[_0x586e9d(0x1dc)]),_0x5e94c6['save'](),_0x5e94c6['translateWithPrecision'](_0x190555[_0x586e9d(0x184)],_0x190555[_0x586e9d(0x122)]),_0x5e94c6[_0x586e9d(0x328)](),_0x5e94c6[_0x586e9d(0x324)](0x0,0x0,_0x190555['width'],_0x190555[_0x586e9d(0x1dc)]),_0x5e94c6['clip'](),_0x2d4935['draw'](_0x5e94c6),_0x5e94c6[_0x586e9d(0x2e7)](),_0x2d4935['dispose'](),_0x33631c['dispose'](),_0x808160[_0x586e9d(0x3bb)](),_0x30fc85[_0x586e9d(0x3bb)]();}[_0x524578(0x2cf)](_0xa11377,_0x20becd,_0x76eaa5=!0x1){const _0x40b8ce=_0x524578;if(!this['visible'])return this[_0x40b8ce(0x25e)](!0x1),this;let {width:_0x162883,height:_0x2a8c9c,left:_0x514835,top:_0x3f9667}=this,_0x1c4859=this[_0x40b8ce(0x373)]();if(_0x162883=_0x1c4859['width'],_0x2a8c9c=_0x1c4859[_0x40b8ce(0x1dc)],_0x514835=_0x1c4859['left'],_0x3f9667=_0x1c4859[_0x40b8ce(0x122)],this[_0x40b8ce(0x203)](_0x20becd)){let {top:_0x544201,left:_0x2dfdac,bottom:_0x257086,right:_0xf319a1}=_0x20becd['viewBound'];if(_0x162883+this[_0x40b8ce(0x3c8)]+_0x514835<_0x2dfdac||_0xf319a1<_0x514835||_0x2a8c9c+this[_0x40b8ce(0x3c8)]+_0x3f9667<_0x544201||_0x257086<_0x3f9667)return this;}let _0x330f2d=_0x514835+_0x162883/0x2,_0x407b65=_0x3f9667+_0x2a8c9c/0x2,_0x58cd5d=this[_0x40b8ce(0x38d)]['getMatrix']();if(this['_props'][_0x40b8ce(0x367)]){let _0x5cb1c5=this[_0x40b8ce(0x245)](),_0x306dae=new o[(_0x40b8ce(0x29f))]();_0x306dae[_0x40b8ce(0x2b9)]({..._0x5cb1c5}),_0x58cd5d=_0x306dae[_0x40b8ce(0x3c6)]();}return _0xa11377[_0x40b8ce(0x2cb)](),this[_0x40b8ce(0x1c3)][_0x40b8ce(0x2e6)]['isRenderLinePointsMode']===!0x0||_0xa11377['transform'](_0x58cd5d[0x0],_0x58cd5d[0x1],_0x58cd5d[0x2],_0x58cd5d[0x3],_0x330f2d,_0x407b65),this[_0x40b8ce(0x13e)](_0xa11377,_0x20becd,_0x162883,_0x2a8c9c),_0xa11377['restore'](),this['makeDirty'](!0x1),this;}[_0x524578(0x18c)](_0x346c51){const _0x5bfe17=_0x524578;let {left:_0x3aef86,top:_0x2248c5,width:_0x5a308c,height:_0x38a654}=this['getRealBound'](),_0x2cddbf=this[_0x5bfe17(0x38d)][_0x5bfe17(0x3c6)](),_0x401099=_0x3aef86+_0x5a308c/0x2,_0x2ef5b8=_0x2248c5+_0x38a654/0x2,_0x46b6d8=new o[(_0x5bfe17(0x29f))]([_0x2cddbf[0x0],_0x2cddbf[0x1],_0x2cddbf[0x2],_0x2cddbf[0x3],_0x401099,_0x2ef5b8]),_0x20edc2=this[_0x5bfe17(0xff)]();return(this[_0x5bfe17(0x2e9)]&&(_0x20edc2==null?void 0x0:_0x20edc2[_0x5bfe17(0x2fa)])===o[_0x5bfe17(0x1f7)]['GROUP']?_0x20edc2['ancestorTransform'][_0x5bfe17(0x198)](_0x46b6d8):_0x46b6d8)[_0x5bfe17(0x1d5)]()['applyPoint'](_0x346c51);}[_0x524578(0x1e9)](_0xc590fa){const _0x546d50=_0x524578;let {left:_0xd54365,top:_0x40c317,width:_0x1732ca,height:_0xaf933}=this['getRealBound'](),_0x2a221e=_0xd54365+_0x1732ca/0x2,_0x26e47f=_0x40c317+_0xaf933/0x2,_0x41b134=this['transform'][_0x546d50(0x3c6)](),_0x11c69e=new o[(_0x546d50(0x29f))]([_0x41b134[0x0],_0x41b134[0x1],_0x41b134[0x2],_0x41b134[0x3],_0x2a221e,_0x26e47f]),_0x1c14bd=this[_0x546d50(0xff)](),_0x4a0ad4=(this[_0x546d50(0x2e9)]&&(_0x1c14bd==null?void 0x0:_0x1c14bd[_0x546d50(0x2fa)])===o[_0x546d50(0x1f7)][_0x546d50(0x28e)]?_0x1c14bd[_0x546d50(0x29a)][_0x546d50(0x198)](_0x11c69e):_0x11c69e)[_0x546d50(0x1d5)]()[_0x546d50(0x366)](_0xc590fa),_0x2737be=_0x1732ca/0x2,_0x5eefd1=_0xaf933/0x2,_0x15c73c=this['_props'][_0x546d50(0x2e6)];return _0x15c73c&&_0x15c73c['isLineShape']()?_0x15c73c[_0x546d50(0x38e)](_0x4a0ad4['x'],_0x4a0ad4['y'],_0x1732ca,_0xaf933):_0x4a0ad4['x']>=-_0x2737be-this['strokeWidth']/0x2&&_0x4a0ad4['x']<=_0x2737be+this[_0x546d50(0x3c8)]/0x2&&_0x4a0ad4['y']>=-_0x5eefd1-this[_0x546d50(0x3c8)]/0x2&&_0x4a0ad4['y']<=_0x5eefd1+this['strokeWidth']/0x2;}[_0x524578(0x3bb)](){const _0x3cbf25=_0x524578;this[_0x3cbf25(0x1c3)]['shapeModel']=null,super[_0x3cbf25(0x3bb)]();}},oe=class extends o[_0x524578(0x15f)]{constructor(_0x3947dc,_0x5c1b46){const _0x2f0f9d=_0x524578;super(_0x3947dc,_0x5c1b46),b(this,_0x2f0f9d(0x190),null),b(this,_0x2f0f9d(0x2bb),null),b(this,_0x2f0f9d(0x39d),null),b(this,'_subUnitId',null),_0x5c1b46&&this[_0x2f0f9d(0x12f)](_0x5c1b46);}[_0x524578(0x1e4)](){const _0x94e2a2=_0x524578;return{'unitId':this[_0x94e2a2(0x39d)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x94e2a2(0x190)]};}[_0x524578(0x12f)](_0x39216e){const _0x222a2a=_0x524578;_0x39216e[_0x222a2a(0x2f4)]!==void 0x0&&(this[_0x222a2a(0x190)]=_0x39216e[_0x222a2a(0x2f4)]),_0x39216e[_0x222a2a(0x290)]!==void 0x0&&(this['_adjName']=_0x39216e[_0x222a2a(0x290)]),_0x39216e[_0x222a2a(0x2f9)]!==void 0x0&&(this[_0x222a2a(0x39d)]=_0x39216e[_0x222a2a(0x2f9)]),_0x39216e['subUnitId']!==void 0x0&&(this[_0x222a2a(0x24b)]=_0x39216e[_0x222a2a(0x1fa)]),this[_0x222a2a(0x384)]({'width':_0x39216e[_0x222a2a(0x1af)],'height':_0x39216e['height']});}[_0x524578(0x13e)](_0xb7b8){const _0x3c505b=_0x524578;o[_0x3c505b(0x315)][_0x3c505b(0x296)](_0xb7b8,{'radius':u['ShapeDefaultConfig'][_0x3c505b(0x286)],'fill':u['ShapeDefaultConfig']['adjHandleFill'],'stroke':u[_0x3c505b(0x32c)][_0x3c505b(0x1ce)],'strokeWidth':0x1,'evented':!0x0});}};function F(_0x2a5c2d,_0x2c5af1){return function(_0x34a886,_0x49394a){_0x2c5af1(_0x34a886,_0x49394a,_0x2a5c2d);};}function I(_0x5b1c50,_0x475c41,_0x406f96,_0x2ae057){const _0x296c2b=_0x524578;var _0x3f802e=arguments[_0x296c2b(0x355)],_0x1d50aa=_0x3f802e<0x3?_0x475c41:_0x2ae057===null?_0x2ae057=Object[_0x296c2b(0x202)](_0x475c41,_0x406f96):_0x2ae057,_0x4c1132;if(typeof Reflect==_0x296c2b(0x34b)&&typeof Reflect[_0x296c2b(0x37e)]==_0x296c2b(0x132))_0x1d50aa=Reflect[_0x296c2b(0x37e)](_0x5b1c50,_0x475c41,_0x406f96,_0x2ae057);else{for(var _0x56b2f4=_0x5b1c50[_0x296c2b(0x355)]-0x1;_0x56b2f4>=0x0;_0x56b2f4--)(_0x4c1132=_0x5b1c50[_0x56b2f4])&&(_0x1d50aa=(_0x3f802e<0x3?_0x4c1132(_0x1d50aa):_0x3f802e>0x3?_0x4c1132(_0x475c41,_0x406f96,_0x1d50aa):_0x4c1132(_0x475c41,_0x406f96))||_0x1d50aa);}return _0x3f802e>0x3&&_0x1d50aa&&Object[_0x296c2b(0x319)](_0x475c41,_0x406f96,_0x1d50aa),_0x1d50aa;}let L=class extends t[_0x524578(0x239)]{constructor(_0x55fa96,_0x2e33d6,_0x3acd7a,_0x210b82,_0x4ec6ab){const _0x41f2e8=_0x524578;super(),this['_drawingManagerService']=_0x55fa96,this['_sheetsShapeService']=_0x2e33d6,this['_localeService']=_0x3acd7a,this[_0x41f2e8(0x36d)]=_0x210b82,this[_0x41f2e8(0x14f)]=_0x4ec6ab;}[_0x524578(0x117)](_0x38dd5c,_0xeeb1dc){const _0x5d5e61=_0x524578;let {transform:_0x16020f,drawingType:_0xd3f41f,srcRect:_0x10409a,prstGeom:_0x35162a,groupId:_0x5c3d7f,unitId:_0xb8b308,subUnitId:_0x483223,drawingId:_0x569477,isMultiTransform:_0x59aeae,transforms:_0x3f1880,hidden:_0x60b070}=_0x38dd5c;if(_0xd3f41f!==t['DrawingTypeEnum'][_0x5d5e61(0x1c6)]||!this[_0x5d5e61(0x106)][_0x5d5e61(0x306)]()||_0x16020f==null)return;let _0x1e7546=_0x59aeae&&_0x3f1880?_0x3f1880:[_0x16020f],_0x347f35=[];for(let _0x2c1a08 of _0x1e7546){let {left:_0x5a498f,top:_0x272669,width:_0x3ab9c4,height:_0x45ce64,angle:_0x563ff0,flipX:_0x102c24,flipY:_0x544566,skewX:_0x4f16ab,skewY:_0x19c69b}=_0x2c1a08,_0x1d9219=_0x1e7546[_0x5d5e61(0x2c2)](_0x2c1a08),_0xfbcdad=(0x0,a[_0x5d5e61(0x17a)])({'unitId':_0xb8b308,'subUnitId':_0x483223,'drawingId':_0x569477},_0x59aeae?_0x1d9219:void 0x0),_0x5c879b=_0xeeb1dc[_0x5d5e61(0x228)](_0xfbcdad);if(_0x5c879b!=null){_0x5c879b[_0x5d5e61(0x384)]({'left':_0x5a498f,'top':_0x272669,'width':_0x3ab9c4,'height':_0x45ce64,'angle':_0x563ff0,'flipX':_0x102c24,'flipY':_0x544566,'skewX':_0x4f16ab,'skewY':_0x19c69b});continue;}let _0x509244=this[_0x5d5e61(0x106)]['getDrawingOrder'](_0xb8b308,_0x483223),_0x1f3d01=_0x509244[_0x5d5e61(0x2c2)](_0x569477);if(_0xeeb1dc['getObjectIncludeInGroup'](_0xfbcdad)||!this[_0x5d5e61(0x106)][_0x5d5e61(0x306)]())continue;let _0x2613c1=this[_0x5d5e61(0x13c)][_0x5d5e61(0x333)](_0xb8b308,_0x483223,_0x569477);if(!_0x2613c1)continue;let _0x1b7c53=new P(_0xfbcdad,{...(0x0,u[_0x5d5e61(0x2fb)])(_0x2613c1[_0x5d5e61(0x321)]())?{..._0x2c1a08,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x2c1a08},'zIndex':_0x1f3d01===-0x1?_0x509244[_0x5d5e61(0x355)]-0x1:_0x1f3d01,'shapeModel':_0x2613c1,'localeService':this['_localeService'],'shapeId':_0x569477,'unitId':_0xb8b308,'subUnitId':_0x483223,'visible':_0x60b070!==!0x0});_0xeeb1dc['addObject'](_0x1b7c53,o['DRAWING_OBJECT_LAYER_INDEX']),this[_0x5d5e61(0x106)][_0x5d5e61(0x1d0)]()&&_0xeeb1dc[_0x5d5e61(0x354)](_0x1b7c53),_0x5c3d7f&&(0x0,d[_0x5d5e61(0x1ed)])({'drawingId':_0x5c3d7f,'unitId':_0xb8b308,'subUnitId':_0x483223},_0x1b7c53,_0xeeb1dc,this[_0x5d5e61(0x106)]),_0x35162a!=null&&_0x1b7c53[_0x5d5e61(0x2e0)](_0x35162a),_0x10409a!=null&&_0x1b7c53[_0x5d5e61(0x26a)](_0x10409a),this[_0x5d5e61(0x133)](_0x1b7c53,_0x2613c1[_0x5d5e61(0x370)]()),_0x347f35[_0x5d5e61(0x35a)](_0x1b7c53);}return _0x347f35;}[_0x524578(0x133)](_0x1ad581,_0x5582a3){const _0x53efec=_0x524578;var _0x53727d;let _0x22af74=_0x5582a3[_0x53efec(0x2c1)];if(!_0x22af74||_0x22af74[_0x53efec(0x2a4)]!==u[_0x53efec(0x1a9)]['PictureFill']||!_0x22af74[_0x53efec(0x15e)])return;let _0x2fd7a2=_0x22af74[_0x53efec(0x15e)],_0x3af7d5=(_0x53727d=_0x22af74['fillImageSourceType'])==null?u[_0x53efec(0xfa)]['URL']:_0x53727d,_0x5ad7d6=this[_0x53efec(0x36d)]['getImageSourceCache'](_0x2fd7a2,_0x3af7d5);if(_0x5ad7d6){_0x1ad581[_0x53efec(0x301)](_0x5ad7d6);return;}this[_0x53efec(0x1a5)](_0x1ad581,_0x2fd7a2,_0x3af7d5);}async[_0x524578(0x1a5)](_0x37dd26,_0x2c5a5f,_0x16e656){const _0x1df0ad=_0x524578;let _0x3f8f1e;try{if(_0x16e656===u[_0x1df0ad(0xfa)][_0x1df0ad(0x394)])_0x3f8f1e=await this[_0x1df0ad(0x36d)][_0x1df0ad(0x10a)](_0x2c5a5f);else{if(_0x16e656===u[_0x1df0ad(0xfa)]['URL'])try{_0x3f8f1e=await this['_urlImageService'][_0x1df0ad(0x10a)](_0x2c5a5f);}catch{_0x3f8f1e=_0x2c5a5f;}else _0x3f8f1e=_0x2c5a5f;}}catch(_0x2f0f6e){console['error'](_0x1df0ad(0x1ea),_0x2f0f6e);return;}let _0x1541cd=new window[(_0x1df0ad(0x205))]();_0x1541cd[_0x1df0ad(0x2ba)]=()=>{const _0x3f0051=_0x1df0ad;this['_imageIoService'][_0x3f0051(0x124)](_0x2c5a5f,_0x16e656,_0x1541cd),_0x37dd26[_0x3f0051(0x301)](_0x1541cd);},_0x1541cd[_0x1df0ad(0x2a3)]=()=>{const _0x542921=_0x1df0ad;console[_0x542921(0x2d4)](_0x542921(0x192),_0x2c5a5f);},_0x1541cd[_0x1df0ad(0x1d6)]=_0x3f8f1e;}};L=I([F(0x0,a[_0x524578(0x378)]),F(0x1,(0x0,t[_0x524578(0x34c)])(e[_0x524578(0x2ac)])),F(0x2,(0x0,t[_0x524578(0x34c)])(t['LocaleService'])),F(0x3,a[_0x524578(0x1ee)]),F(0x4,t[_0x524578(0x1c9)])],L);let R=class extends t[_0x524578(0x239)]{constructor(_0x23605a,_0x341e5c,_0x43f113,_0x422860,_0x2874ef,_0x41d228,_0x2d324b,_0x533a33){const _0x5d8cfd=_0x524578;super(),this[_0x5d8cfd(0x385)]=_0x23605a,this[_0x5d8cfd(0x178)]=_0x341e5c,this['_drawingManagerService']=_0x43f113,this[_0x5d8cfd(0x13c)]=_0x422860,this['_renderManagerService']=_0x2874ef,this['_sheetDrawingShapeRenderController']=_0x41d228,this[_0x5d8cfd(0x139)]=_0x2d324b,this[_0x5d8cfd(0x39e)]=_0x533a33,b(this,_0x5d8cfd(0x1f6),null),b(this,_0x5d8cfd(0x39d),null),b(this,_0x5d8cfd(0x24b),null),b(this,_0x5d8cfd(0x19f),void 0x0),b(this,_0x5d8cfd(0x26f),[]),b(this,_0x5d8cfd(0x2b1),0x0),b(this,_0x5d8cfd(0x2b6),0x0),b(this,_0x5d8cfd(0x175),0x0),b(this,'_baseShapeHeight',0x0),b(this,_0x5d8cfd(0x19e),!0x1),b(this,_0x5d8cfd(0x302),void 0x0),b(this,_0x5d8cfd(0x102),void 0x0),b(this,_0x5d8cfd(0x1ec),void 0x0),b(this,_0x5d8cfd(0x37f),void 0x0),b(this,_0x5d8cfd(0x25c),!0x1),this[_0x5d8cfd(0x3c3)](),this['_registerDrawingMoveHandler']();}['_getShapeAdjustPointListById'](_0x14fcd6,_0x2cb062,_0x3a4a72){const _0x2fac57=_0x524578;let _0x4bf196=this[_0x2fac57(0x13c)][_0x2fac57(0x333)](_0x14fcd6,_0x2cb062,_0x3a4a72);if(_0x4bf196)return _0x4bf196['getDrawingPoints']();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}[_0x524578(0x3ab)](){const _0x1d5128=_0x524578;this[_0x1d5128(0x359)](!0x0);}['setShouldShowAdjust'](_0x2024be){const _0x5137ad=_0x524578;this[_0x5137ad(0x25c)]=_0x2024be;}[_0x524578(0x266)](_0x41dea8,_0x50fe56,_0x40c245,_0x2c4acc){const _0x32a808=_0x524578;let _0x28da10=this[_0x32a808(0x13c)][_0x32a808(0x333)](_0x41dea8,_0x50fe56,_0x40c245);if(_0x28da10)return _0x28da10[_0x32a808(0x2e3)](_0x2c4acc);}[_0x524578(0x263)](_0x589c9a=!0x1){const _0x1186da=_0x524578;if(this[_0x1186da(0x39d)]===null||this[_0x1186da(0x24b)]===null||this[_0x1186da(0x1f6)]===null)return;let _0x4ea121=this[_0x1186da(0x3cd)][_0x1186da(0x18d)](this[_0x1186da(0x39d)]);if(!_0x4ea121||!_0x4ea121['with'](c[_0x1186da(0x1e6)])['getCurrentSkeleton']())return;let {scene:_0xda82ad}=_0x4ea121,_0x25d04d={'unitId':this[_0x1186da(0x39d)],'subUnitId':this[_0x1186da(0x24b)],'drawingId':this['_activeShapeId']},_0x2a4da4=this[_0x1186da(0x106)][_0x1186da(0x3a3)](_0x25d04d),{transform:_0x431368}=_0x2a4da4;if(!_0x431368||_0x2a4da4['drawingType']!==t[_0x1186da(0x224)][_0x1186da(0x1c6)])return;let {left:_0x414fcf,top:_0x21af19,width:_0x3488c1,height:_0x53a48c,flipX:_0xb657e1,flipY:_0x3bbd54,angle:_0x34a3d1=0x0}=_0x431368;if(_0x414fcf===void 0x0||_0x21af19===void 0x0)return;_0x589c9a&&(this[_0x1186da(0x19f)]=this[_0x1186da(0x1b5)](this['_unitId'],this[_0x1186da(0x24b)],this[_0x1186da(0x1f6)]));let _0x2d5e31=this[_0x1186da(0x19f)];for(let _0xf66472=0x0;_0xf66472<_0x2d5e31[_0x1186da(0x355)];_0xf66472++){let _0x531eb6=_0x2d5e31[_0xf66472],_0x435c17=_0x531eb6['x'],_0xfabb54=_0x531eb6['y'];if(_0xb657e1&&(_0x435c17=(_0x3488c1||0x0)-_0x435c17),_0x3bbd54&&(_0xfabb54=(_0x53a48c||0x0)-_0xfabb54),_0x34a3d1!==0x0){let _0x2870a7=(_0x3488c1||0x0)/0x2,_0x281973=(_0x53a48c||0x0)/0x2,_0x283b34=_0x34a3d1*Math['PI']/0xb4,_0xeadf0e=Math['cos'](_0x283b34),_0x4f7cfc=Math[_0x1186da(0x2b5)](_0x283b34),_0x48d3c8=_0x435c17-_0x2870a7,_0x3c3618=_0xfabb54-_0x281973;_0x435c17=_0x2870a7+(_0x48d3c8*_0xeadf0e-_0x3c3618*_0x4f7cfc),_0xfabb54=_0x281973+(_0x48d3c8*_0x4f7cfc+_0x3c3618*_0xeadf0e);}let _0x306bee={'x':_0x435c17,'y':_0xfabb54,'adjName':_0x531eb6['adjName']};this[_0x1186da(0x185)](_0xda82ad,_0x306bee,_0x306bee['adjName'],_0x414fcf,_0x21af19,this['_unitId'],this['_subUnitId']);}}[_0x524578(0x359)](_0x1afdfa=!0x1){const _0x4385fa=_0x524578;_0x1afdfa&&(this[_0x4385fa(0x35e)](),this['_createShapeAdjustControls'](_0x1afdfa));}[_0x524578(0x185)](_0x132a7c,_0x395cd8,_0x154627,_0x4f0afc,_0x51c2db,_0x5948db,_0x27b409){const _0x4512d1=_0x524578;if(!this[_0x4512d1(0x1f6)])return;let _0x10787b=_0x132a7c['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x4512d1(0x1f6)]+'-'+_0x154627);if(_0x10787b){_0x10787b[_0x4512d1(0x384)]({'left':_0x395cd8['x']+_0x4f0afc-u[_0x4512d1(0x32c)][_0x4512d1(0x286)],'top':_0x395cd8['y']+_0x51c2db-u[_0x4512d1(0x32c)]['adjHandleSize']});return;}let _0x2229e1={'left':_0x395cd8['x']+_0x4f0afc-u['ShapeDefaultConfig'][_0x4512d1(0x286)],'top':_0x395cd8['y']+_0x51c2db-u['ShapeDefaultConfig'][_0x4512d1(0x286)],'adjName':_0x154627,'shapeId':this['_activeShapeId'],'unitId':_0x5948db,'subUnitId':_0x27b409,'width':u[_0x4512d1(0x32c)][_0x4512d1(0x286)]+0x8,'height':u['ShapeDefaultConfig']['adjHandleSize']+0x8,'zIndex':o[_0x4512d1(0x3bc)]+0x1,'evented':!0x0},_0x113abd=new oe('shape-adjust-point-'+this[_0x4512d1(0x1f6)]+'-'+_0x154627,_0x2229e1);this[_0x4512d1(0x26f)]['push'](_0x113abd),this[_0x4512d1(0x351)](_0x113abd,_0x132a7c,_0x154627),_0x132a7c[_0x4512d1(0x2b4)](_0x113abd,o['DRAWING_OBJECT_LAYER_INDEX']+0x1);}['_clearShapeAdjustControls'](){const _0x291946=_0x524578;this[_0x291946(0x26f)][_0x291946(0x355)]!==0x0&&(this[_0x291946(0x26f)]['forEach'](_0x2c5ce8=>{const _0x2a4219=_0x291946;_0x2c5ce8[_0x2a4219(0x3bb)]();}),this[_0x291946(0x26f)]=[]);}[_0x524578(0x21d)](){this['_createShapeAdjustControls']();}[_0x524578(0x2b3)](_0x3407b1,_0x338a02){const _0x3e12a3=_0x524578;var _0x4a2c5f;let _0x444966={'x':0x0,'y':0x0};if(!_0x3407b1||!_0x338a02)return _0x444966;let _0x174509=this[_0x3e12a3(0x3cd)][_0x3e12a3(0x18d)](_0x3407b1);if(!_0x174509||!_0x174509['with'](c[_0x3e12a3(0x1e6)])[_0x3e12a3(0x3ba)](_0x338a02))return _0x444966;let _0x144850=_0x174509[_0x3e12a3(0x2ea)](c['SheetScrollManagerService']),_0x363a4b=_0x144850==null?void 0x0:_0x144850[_0x3e12a3(0x2ef)]();if(!_0x363a4b)return _0x444966;let _0x5d6826=(_0x4a2c5f=this[_0x3e12a3(0x139)]['getUnit'](_0x3407b1))==null?void 0x0:_0x4a2c5f[_0x3e12a3(0x268)](_0x338a02);if(!_0x5d6826)return _0x444966;let _0x5889cd=(0x0,c[_0x3e12a3(0x15c)])(_0x363a4b[_0x3e12a3(0x317)],_0x363a4b[_0x3e12a3(0x283)],_0x174509[_0x3e12a3(0x295)],_0x5d6826);return _0x5889cd?{'x':_0x5889cd[_0x3e12a3(0x1d9)],'y':_0x5889cd[_0x3e12a3(0x116)]}:_0x444966;}[_0x524578(0x115)](_0x2ad276,_0x4a8ca3){const _0x13a8bb=_0x524578;var _0x19624d,_0x44706b;let _0x37b29e=(_0x19624d=this[_0x13a8bb(0x139)][_0x13a8bb(0x1ad)](_0x2ad276))==null?void 0x0:_0x19624d['getSheetBySheetId'](_0x4a8ca3);return(_0x44706b=_0x37b29e==null?void 0x0:_0x37b29e['getZoomRatio']())==null?0x1:_0x44706b;}[_0x524578(0x351)](_0x58797b,_0x46766b,_0x447769){const _0x388c0e=_0x524578;this[_0x388c0e(0x1d1)]((0x0,t[_0x388c0e(0x3be)])(_0x58797b['onPointerDown$'][_0x388c0e(0x1f2)]((_0x2dd66f,_0x1ba6f7)=>{const _0x308b8c=_0x388c0e;var _0x5c5def,_0x28889e,_0x13d72e,_0x1c03e0;let _0x15ab19=_0x58797b[_0x308b8c(0x1e4)]();this[_0x308b8c(0x302)]=this[_0x308b8c(0x266)](_0x15ab19[_0x308b8c(0x2f9)],_0x15ab19['subUnitId'],_0x15ab19[_0x308b8c(0x167)],_0x447769),this['_activeShapeModel']=this[_0x308b8c(0x13c)][_0x308b8c(0x333)](_0x15ab19[_0x308b8c(0x2f9)],_0x15ab19[_0x308b8c(0x1fa)],_0x15ab19['drawingId']);let _0x244552=this['_drawingManagerService'][_0x308b8c(0x3a3)]({'unitId':this['_unitId'],'subUnitId':this[_0x308b8c(0x24b)],'drawingId':this[_0x308b8c(0x1f6)]}),{transform:_0x5b5e99}=_0x244552;if(_0x5b5e99){let {left:_0x4fdc72,top:_0x353593,width:_0x32f4bc,height:_0xd85eb5}=_0x5b5e99;this['_baseShapeLeft']=_0x4fdc72||0x0,this[_0x308b8c(0x2b6)]=_0x353593||0x0,this[_0x308b8c(0x175)]=_0x32f4bc||0x0,this[_0x308b8c(0x3b9)]=_0xd85eb5||0x0;}let _0x207215=!!((_0x5c5def=_0x244552[_0x308b8c(0x38d)])!=null&&_0x5c5def[_0x308b8c(0xfc)]),_0x1cfe9f=!!((_0x28889e=_0x244552['transform'])!=null&&_0x28889e[_0x308b8c(0x180)]),_0x41b7e2=((_0x13d72e=_0x244552[_0x308b8c(0x38d)])==null?void 0x0:_0x13d72e[_0x308b8c(0x2be)])||0x0;this[_0x308b8c(0x19e)]=!0x0,_0x46766b[_0x308b8c(0x36e)]();let _0x5019b8=(_0x1c03e0=this[_0x308b8c(0x102)])==null?void 0x0:_0x1c03e0[_0x308b8c(0x148)](_0x447769),_0x14819b={[_0x447769]:_0x5019b8};this['_adjHandlerPointerMove']=_0x46766b[_0x308b8c(0x229)][_0x308b8c(0x1f2)]((_0x4511d0,_0x563a2e)=>{const _0x14f29e=_0x308b8c;if(!this[_0x14f29e(0x19e)])return;let {offsetX:_0x42c8ad,offsetY:_0x33478d}=_0x4511d0,_0x461d2d=this[_0x14f29e(0x302)];if(this[_0x14f29e(0x102)]&&_0x461d2d){_0x46766b[_0x14f29e(0x36e)](),_0x46766b['setCursor'](o[_0x14f29e(0x1a6)][_0x14f29e(0x1e5)]);let _0x367d5e={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x14f29e(0x3b9)]},_0x29c5d8=this[_0x14f29e(0x2b3)](this[_0x14f29e(0x39d)],this[_0x14f29e(0x24b)]),_0x2c7443=this[_0x14f29e(0x115)](this[_0x14f29e(0x39d)],this[_0x14f29e(0x24b)]),_0x38b847=_0x42c8ad/_0x2c7443+_0x29c5d8['x']-this[_0x14f29e(0x2b1)],_0x47ba9b=_0x33478d/_0x2c7443+_0x29c5d8['y']-this[_0x14f29e(0x2b6)];if(_0x41b7e2!==0x0){let _0x28f395=this['_baseShapeWidth']/0x2,_0x3d2379=this['_baseShapeHeight']/0x2,_0x520538=_0x41b7e2*Math['PI']/0xb4,_0x21f45d=Math[_0x14f29e(0x17f)](_0x520538),_0x231922=Math[_0x14f29e(0x2b5)](_0x520538),_0x2b1a31=_0x38b847-_0x28f395,_0x9a4e08=_0x47ba9b-_0x3d2379;_0x38b847=_0x28f395+(_0x2b1a31*_0x21f45d+_0x9a4e08*_0x231922),_0x47ba9b=_0x3d2379+(-_0x2b1a31*_0x231922+_0x9a4e08*_0x21f45d);}_0x207215&&(_0x38b847=this['_baseShapeWidth']-_0x38b847),_0x1cfe9f&&(_0x47ba9b=this[_0x14f29e(0x3b9)]-_0x47ba9b);let _0x536850={'x':_0x38b847,'y':_0x47ba9b},_0x30a60e=this[_0x14f29e(0x102)][_0x14f29e(0x369)](_0x367d5e,_0x536850,_0x461d2d,_0x207215,_0x1cfe9f),_0x50f994=_0x461d2d[_0x14f29e(0x363)]||_0x461d2d['gdRefY']||_0x461d2d[_0x14f29e(0x2df)]||_0x461d2d['gdRefR'];if(_0x50f994===void 0x0)return;this[_0x14f29e(0x102)][_0x14f29e(0x2f2)](_0x50f994,_0x30a60e);let _0x5170bd=this[_0x14f29e(0x106)]['getDrawingByParam']({'unitId':_0x15ab19['unitId'],'subUnitId':_0x15ab19[_0x14f29e(0x1fa)],'drawingId':_0x15ab19['drawingId']});_0x5170bd&&(this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x5170bd,_0x46766b),this[_0x14f29e(0x19f)]=this[_0x14f29e(0x1b5)](_0x15ab19['unitId'],_0x15ab19['subUnitId'],_0x15ab19[_0x14f29e(0x167)]),this[_0x14f29e(0x21d)]());}_0x563a2e[_0x14f29e(0x37c)]();}),this[_0x308b8c(0x37f)]=_0x46766b[_0x308b8c(0x33f)][_0x308b8c(0x1f2)]((_0x205eff,_0x5be7de)=>{const _0x28a0c5=_0x308b8c;this[_0x28a0c5(0x1ec)]['unsubscribe'](),this[_0x28a0c5(0x37f)][_0x28a0c5(0x320)](),_0x46766b[_0x28a0c5(0x1c0)]();let _0x146186=this['_activeAdjustInfo'];if(_0x146186){let _0x5cec80=_0x15ab19[_0x28a0c5(0x2f9)],_0x47e0d1=_0x15ab19[_0x28a0c5(0x1fa)],_0x2972e3=_0x15ab19[_0x28a0c5(0x167)],_0xbb0972=_0x146186[_0x28a0c5(0x363)]||_0x146186[_0x28a0c5(0x108)]||_0x146186[_0x28a0c5(0x2df)]||_0x146186[_0x28a0c5(0x353)];if(_0xbb0972!==void 0x0){var _0x555c55;let _0x5942ba=(_0x555c55=this[_0x28a0c5(0x102)])==null?void 0x0:_0x555c55[_0x28a0c5(0x148)](_0xbb0972);_0x5942ba!==void 0x0&&N(this[_0x28a0c5(0x39e)],_0x5cec80,_0x47e0d1,_0x2972e3,{'oldShapeData':{'adjustValues':_0x14819b}},{'adjustValues':{[_0xbb0972]:_0x5942ba}});}}this[_0x28a0c5(0x302)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x28a0c5(0x19e)]=!0x1,_0x5be7de[_0x28a0c5(0x37c)](),_0x46766b[_0x28a0c5(0x342)]();}),_0x1ba6f7[_0x308b8c(0x37c)]();})));}['_registerDrawingMoveHandler'](){const _0x48d3a7=_0x524578;let _0x2f65fc=this['_univerInstanceService']['getCurrentTypeOfUnit$'](t['UniverInstanceType'][_0x48d3a7(0x310)]);this[_0x48d3a7(0x1d1)](_0x2f65fc[_0x48d3a7(0x29c)]((0x0,i[_0x48d3a7(0x170)])(_0xfbaa11=>_0xfbaa11?_0xfbaa11['activeSheet$'][_0x48d3a7(0x29c)]((0x0,i[_0x48d3a7(0x170)])(_0x22b203=>{const _0x1c6202=_0x48d3a7;if(!_0x22b203)return i[_0x1c6202(0x277)];let _0xc34e5=_0xfbaa11[_0x1c6202(0x249)](),_0x23735d=this[_0x1c6202(0x3cd)][_0x1c6202(0x18d)](_0xc34e5),_0x4cbafe=_0x23735d==null?void 0x0:_0x23735d[_0x1c6202(0x295)];return _0x4cbafe?(0x0,i['of'])(_0x4cbafe):i[_0x1c6202(0x277)];})):i[_0x48d3a7(0x277)]))[_0x48d3a7(0x38b)](_0x1ff6a4=>{const _0x41c2f3=_0x48d3a7;let _0x14fa09=_0x1ff6a4[_0x41c2f3(0x396)]();this[_0x41c2f3(0x1d1)](_0x1ff6a4['onPointerMove$'][_0x41c2f3(0x1f2)](()=>{const _0x2ca2ca=_0x41c2f3;this[_0x2ca2ca(0x25c)];})),this[_0x41c2f3(0x1d1)](_0x14fa09[_0x41c2f3(0x2f8)][_0x41c2f3(0x38b)](_0xbb5d01=>{const _0x58c5ea=_0x41c2f3;let {objects:_0x23defd}=_0xbb5d01;this[_0x58c5ea(0x263)](),_0x23defd!==null&&_0x23defd['size']===0x1&&_0x23defd[_0x58c5ea(0x31c)]()[_0x58c5ea(0x241)]()[_0x58c5ea(0x25f)]instanceof P&&this[_0x58c5ea(0x336)](!0x0);})),this[_0x41c2f3(0x1d1)](_0x14fa09[_0x41c2f3(0x30a)][_0x41c2f3(0x38b)](()=>{const _0x4b1e16=_0x41c2f3;this[_0x4b1e16(0x25c)]&&this[_0x4b1e16(0x35e)]();})),this[_0x41c2f3(0x1d1)](_0x1ff6a4[_0x41c2f3(0x33f)]['subscribeEvent'](()=>{const _0x364b03=_0x41c2f3;this[_0x364b03(0x25c)]&&(this[_0x364b03(0x336)](!0x1),this['_createShapeAdjustControls']());})),this[_0x41c2f3(0x1d1)](_0x14fa09[_0x41c2f3(0x398)]['subscribe'](()=>{const _0x3b5245=_0x41c2f3;this['_unitId']&&this[_0x3b5245(0x24b)]&&this[_0x3b5245(0x1f6)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x3b5245(0x39d)],'subUnitId':this[_0x3b5245(0x24b)],'drawingId':this[_0x3b5245(0x1f6)]})&&(this[_0x3b5245(0x19f)]=this['_getShapeAdjustPointListById'](this[_0x3b5245(0x39d)],this[_0x3b5245(0x24b)],this[_0x3b5245(0x1f6)]),this[_0x3b5245(0x21d)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x274a07=_0x524578;this[_0x274a07(0x1d1)](this['_drawingManagerService'][_0x274a07(0x107)][_0x274a07(0x38b)](_0x3adc54=>{const _0x1128cb=_0x274a07;if(_0x3adc54[_0x1128cb(0x355)]===0x1){let _0x55fd87=_0x3adc54[0x0];if(_0x55fd87[_0x1128cb(0x232)]===t[_0x1128cb(0x224)][_0x1128cb(0x1c6)]){this[_0x1128cb(0x1f6)]=_0x55fd87['drawingId'];let {unitId:_0x15a33a,subUnitId:_0x1c7575}=_0x55fd87;this[_0x1128cb(0x19f)]=this['_getShapeAdjustPointListById'](_0x15a33a,_0x1c7575,this[_0x1128cb(0x1f6)]),this[_0x1128cb(0x39d)]=_0x15a33a,this['_subUnitId']=_0x1c7575,this[_0x1128cb(0x35e)](),this[_0x1128cb(0x263)]();}else this[_0x1128cb(0x1f6)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1128cb(0x39d)]=null,this[_0x1128cb(0x24b)]=null,this['_clearShapeAdjustControls']();}(_0x3adc54[_0x1128cb(0x355)]>0x1||_0x3adc54[_0x1128cb(0x355)]===0x0)&&(this[_0x1128cb(0x1f6)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x1128cb(0x39d)]=null,this['_subUnitId']=null,this[_0x1128cb(0x35e)]());})),this[_0x274a07(0x1d1)](this[_0x274a07(0x106)][_0x274a07(0x151)][_0x274a07(0x38b)](_0x21b46c=>{const _0x3ca571=_0x274a07;if(_0x21b46c[_0x3ca571(0x355)]===0x1){var _0x39034d;let _0x305a40=_0x21b46c[0x0];((_0x39034d=this[_0x3ca571(0x106)][_0x3ca571(0x3a3)](_0x305a40))==null?void 0x0:_0x39034d[_0x3ca571(0x232)])===t[_0x3ca571(0x224)][_0x3ca571(0x1c6)]&&this[_0x3ca571(0x359)](!0x0);}})),this[_0x274a07(0x1d1)](this[_0x274a07(0x106)][_0x274a07(0x2e4)][_0x274a07(0x38b)](_0x2122d7=>{const _0x199bd7=_0x274a07;for(let _0x29fec9 of _0x2122d7)this['_activeShapeId']===_0x29fec9['drawingId']&&(this[_0x199bd7(0x1f6)]=null,this[_0x199bd7(0x19f)]=void 0x0,this[_0x199bd7(0x39d)]=null,this[_0x199bd7(0x24b)]=null,this[_0x199bd7(0x35e)]());}));}};R=I([F(0x1,t[_0x524578(0x156)]),F(0x2,a['IDrawingManagerService']),F(0x3,(0x0,t[_0x524578(0x34c)])(e['SheetsShapeService'])),F(0x4,(0x0,t[_0x524578(0x34c)])(o['IRenderManagerService'])),F(0x5,(0x0,t['Inject'])(L)),F(0x6,t['IUniverInstanceService']),F(0x7,t[_0x524578(0x13d)])],R);const se={'id':_0x524578(0x25d),'type':t[_0x524578(0x253)][_0x524578(0x17e)],'handler':(_0x26270d,_0x7ad91b)=>{const _0x573002=_0x524578;let _0x170dc1=_0x26270d['get'](a['IDrawingManagerService']),_0x1c26be=_0x26270d[_0x573002(0x109)](o[_0x573002(0x20f)]),_0x2ebd49=_0x26270d[_0x573002(0x109)](R);if(_0x7ad91b==null)return!0x0;if(_0x7ad91b['length']>0x0){var _0xe5b3cf;let _0x3340e3=(_0xe5b3cf=_0x1c26be[_0x573002(0x18d)](_0x7ad91b[0x0]['unitId']))==null?void 0x0:_0xe5b3cf[_0x573002(0x295)];if(_0x3340e3){let {unitId:_0x1f93da,subUnitId:_0x428f0b,drawingId:_0x1597d0}=_0x7ad91b[0x0],_0x430d08=(0x0,a[_0x573002(0x17a)])({'unitId':_0x1f93da,'subUnitId':_0x428f0b,'drawingId':_0x1597d0},void 0x0),_0x501437=_0x3340e3[_0x573002(0x228)](_0x430d08);if(_0x501437){var _0x2fba55;(_0x2fba55=_0x1c26be[_0x573002(0x18d)](_0x7ad91b[0x0][_0x573002(0x2f9)]))==null||(_0x2fba55=_0x2fba55[_0x573002(0x295)][_0x573002(0x24a)]())==null||_0x2fba55[_0x573002(0x335)](_0x501437);}}_0x170dc1[_0x573002(0x204)](_0x7ad91b),_0x2ebd49[_0x573002(0x336)](!0x1);}return!0x0;}},z={'type':t[_0x524578(0x253)][_0x524578(0x166)],'id':'sheet.command.menu-insert-shape','handler':async(_0x2bb511,_0x21412d)=>{const _0x31cad7=_0x524578;let _0x2a71ee=(0x0,n[_0x31cad7(0x1cb)])(_0x2bb511[_0x31cad7(0x109)](t['IUniverInstanceService']));if(!_0x2a71ee)return!0x1;let _0x26dd0c=_0x2bb511['get'](n[_0x31cad7(0x2ab)])[_0x31cad7(0x18f)]();if(!_0x26dd0c)return!0x1;let _0x9ced27=_0x2bb511['get'](t['ICommandService']),{unitId:_0x2b45ed,subUnitId:_0x1d6242}=_0x2a71ee,{value:_0x31d2d6,enhanceParams:_0x2a857b}=_0x21412d,{range:_0x3e017b}=_0x26dd0c,_0x409f81={'unitId':_0x2b45ed,'subUnitId':_0x1d6242,'shapeType':_0x31d2d6,'range':_0x3e017b,'shapeId':(0x0,t['generateRandomId'])()};if(_0x2a857b){let _0x345bf6=(0x0,u['isConnectorShape'])(_0x31d2d6),_0x98895c=_0x31d2d6===u[_0x31cad7(0x1da)][_0x31cad7(0x2bc)];_0x345bf6&&(_0x2a857b[_0x31cad7(0x31b)]||_0x2a857b[_0x31cad7(0x2f3)])&&(_0x409f81[_0x31cad7(0x36b)]={'ln':{'startArrow':_0x2a857b[_0x31cad7(0x31b)]?{'type':u['ShapeArrowTypeEnum'][_0x31cad7(0x27e)],'size':u[_0x31cad7(0x1df)][_0x31cad7(0x297)]}:void 0x0,'endArrow':_0x2a857b['endArrow']?{'type':u[_0x31cad7(0x222)][_0x31cad7(0x27e)],'size':u[_0x31cad7(0x1df)][_0x31cad7(0x30f)]}:void 0x0}}),_0x98895c&&(_0x2a857b['horizontal']||_0x2a857b['vertical'])&&(_0x409f81[_0x31cad7(0x36b)]={'fill':{'fillType':u[_0x31cad7(0x1a9)][_0x31cad7(0x118)],'color':_0x31cad7(0x314)},'stroke':{'lineStrokeType':u[_0x31cad7(0x3a5)]['SolidLine'],'width':0x1,'color':_0x31cad7(0x3a0)},'shapeText':{'isHorizontal':!!_0x2a857b[_0x31cad7(0x33e)]}});}let _0x3ca8f0=_0x9ced27[_0x31cad7(0x142)](e[_0x31cad7(0x3a2)]['id'],_0x409f81);return setTimeout(()=>{_0x9ced27['executeCommand'](se['id'],[{'unitId':_0x2b45ed,'subUnitId':_0x1d6242,'drawingId':_0x409f81['shapeId']}]);},0xc8),_0x3ca8f0;}};t[_0x524578(0x1c7)][_0x524578(0x285)],t[_0x524578(0x1c7)][_0x524578(0x2fc)],t[_0x524578(0x1c7)][_0x524578(0x375)];function ce(_0x1b7066){const _0x342378=_0x524578;let _0x21e877=_0x1b7066[_0x342378(0x109)](t[_0x342378(0x156)]),_0x510287=_0x1b7066['get'](t[_0x342378(0x194)]);return{'id':s[_0x342378(0x211)]['id'],'tooltip':'sheets-shape-ui.toolbar.fillColor.main','type':l['MenuItemType'][_0x342378(0x1a0)],'icon':_0x342378(0x24c),'selections':[{'label':{'name':l['COLOR_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'value$':new i[(_0x342378(0x140))](_0x369a17=>{const _0x559b66=_0x342378;_0x369a17[_0x559b66(0x241)](_0x510287[_0x559b66(0x30c)]('primary.600'));}),'hidden$':_0x21e877[_0x342378(0x2b2)](t[_0x342378(0x2c6)])[_0x342378(0x29c)]((0x0,i[_0x342378(0x1be)])(_0x21e877['getContextValue'](t[_0x342378(0x2c6)])),(0x0,i['map'])(_0x2d1212=>!_0x2d1212))};}function le(_0x20aee){const _0xe64743=_0x524578;let _0x211b10=_0x20aee['get'](t[_0xe64743(0x156)]);return{'id':s[_0xe64743(0x111)]['id'],'type':l[_0xe64743(0x344)][_0xe64743(0x126)],'title':_0xe64743(0x11c),'hidden$':_0x211b10['subscribeContextValue$'](t[_0xe64743(0x2c6)])[_0xe64743(0x29c)]((0x0,i[_0xe64743(0x1be)])(_0x211b10[_0xe64743(0x21a)](t[_0xe64743(0x2c6)])),(0x0,i[_0xe64743(0x294)])(_0x5cae80=>!_0x5cae80))};}const ue=[{'label':_0x524578(0x389),'icon':_0x524578(0x35c),'value':t[_0x524578(0x1c7)]['LEFT']},{'label':_0x524578(0x252),'icon':'HorizontallyIcon','value':t['HorizontalAlign'][_0x524578(0x2fc)]},{'label':_0x524578(0x2f6),'icon':'RightJustifyingIcon','value':t[_0x524578(0x1c7)][_0x524578(0x375)]}];function de(_0x5acb46){const _0x4e4014=_0x524578;var _0x589a8c;let _0x4a0741=_0x5acb46[_0x4e4014(0x109)](t[_0x4e4014(0x13d)]),_0xe0a7ac=_0x5acb46[_0x4e4014(0x109)](t[_0x4e4014(0x156)]),_0x427cb5=_0x5acb46[_0x4e4014(0x109)](r[_0x4e4014(0x18a)]),_0x440f72=_0x5acb46['get'](x),_0x524109=_0x5acb46[_0x4e4014(0x109)](e[_0x4e4014(0x2ac)]),_0x393306=t[_0x4e4014(0x1c7)]['LEFT'],_0x3df0ad=()=>{const _0x4caf60=_0x4e4014;var _0x28034a;let _0x2e7c20=_0x427cb5[_0x4caf60(0x39c)]()[_0x4caf60(0x2ae)](_0x2c1e40=>_0x2c1e40[_0x4caf60(0x232)]===t[_0x4caf60(0x224)][_0x4caf60(0x1c6)]);if(_0x2e7c20[_0x4caf60(0x355)]!==0x1)return _0x393306;let _0x2e82f4=_0x440f72[_0x4caf60(0x28c)](),_0x297adb=(_0x2e82f4==null?void 0x0:_0x2e82f4['unitId'])||_0x2e7c20[0x0][_0x4caf60(0x2f9)],_0x3cc27d=(_0x2e82f4==null?void 0x0:_0x2e82f4[_0x4caf60(0x1fa)])||_0x2e7c20[0x0][_0x4caf60(0x1fa)],_0x10c7fe=(_0x2e82f4==null?void 0x0:_0x2e82f4[_0x4caf60(0x2f4)])||_0x2e7c20[0x0][_0x4caf60(0x167)],_0x136dc5=_0x524109[_0x4caf60(0x333)](_0x297adb,_0x3cc27d,_0x10c7fe);if(!_0x136dc5)return _0x393306;let _0x265c83=_0x136dc5[_0x4caf60(0x188)]();if(!_0x265c83||!('dataModel'in _0x265c83))return _0x393306;let _0xaededc=_0x265c83[_0x4caf60(0x149)];return(_0x28034a=_0xaededc==null?void 0x0:_0xaededc['ha'])==null?_0x393306:_0x28034a;};return{'id':w['id'],'icon':(_0x589a8c=ue['find'](_0x50e91e=>_0x50e91e[_0x4e4014(0x25f)]===_0x393306))==null?void 0x0:_0x589a8c[_0x4e4014(0x36a)],'tooltip':'sheets-shape-ui.toolbar.horizontalAlignMode.main','type':l[_0x4e4014(0x344)][_0x4e4014(0x33a)],'selections':ue,'value$':new i[(_0x4e4014(0x140))](_0x294faa=>{const _0x2de59d=_0x4e4014;let _0x418a99=_0x4a0741[_0x2de59d(0x2bf)](_0x4135c7=>{const _0xcbac72=_0x2de59d;_0x4135c7['id']===w['id']&&_0x294faa[_0xcbac72(0x241)](_0x3df0ad());}),_0x56fa07=_0x440f72[_0x2de59d(0x1b4)][_0x2de59d(0x38b)](()=>{const _0x2ed260=_0x2de59d;_0x294faa[_0x2ed260(0x241)](_0x3df0ad());});return _0x294faa[_0x2de59d(0x241)](_0x3df0ad()),()=>{const _0xf09264=_0x2de59d;_0x418a99['dispose'](),_0x56fa07[_0xf09264(0x320)]();};}),'hidden$':_0xe0a7ac[_0x4e4014(0x2b2)](t[_0x4e4014(0x2c6)])[_0x4e4014(0x29c)]((0x0,i[_0x4e4014(0x294)])(_0xd37a72=>!_0xd37a72))};}const fe=[{'label':_0x524578(0x1c2),'icon':_0x524578(0x248),'value':t[_0x524578(0x1a3)][_0x524578(0x322)]},{'label':'sheets-shape-ui.align.middle','icon':_0x524578(0x1ac),'value':t[_0x524578(0x1a3)][_0x524578(0x254)]},{'label':_0x524578(0x2af),'icon':_0x524578(0x2ee),'value':t[_0x524578(0x1a3)][_0x524578(0x3af)]}];function pe(_0x5f238b){const _0x1ac518=_0x524578;var _0x37636f;let _0x156edb=_0x5f238b[_0x1ac518(0x109)](t[_0x1ac518(0x13d)]),_0x10b318=_0x5f238b[_0x1ac518(0x109)](t['IContextService']),_0x435bad=_0x5f238b[_0x1ac518(0x109)](r[_0x1ac518(0x18a)]),_0x3f8ad8=_0x5f238b[_0x1ac518(0x109)](x),_0x297c8b=_0x5f238b['get'](e[_0x1ac518(0x2ac)]),_0x75870e=t['VerticalAlign']['TOP'],_0x4f2ae2=()=>{const _0x56750e=_0x1ac518;var _0x5bc875;let _0xb508f=_0x435bad['getFocusDrawings']()[_0x56750e(0x2ae)](_0x1bc897=>_0x1bc897[_0x56750e(0x232)]===t['DrawingTypeEnum'][_0x56750e(0x1c6)]);if(_0xb508f['length']!==0x1)return _0x75870e;let _0x3810c8=_0x3f8ad8[_0x56750e(0x28c)](),_0xc94d9e=(_0x3810c8==null?void 0x0:_0x3810c8['unitId'])||_0xb508f[0x0]['unitId'],_0x26cdbb=(_0x3810c8==null?void 0x0:_0x3810c8['subUnitId'])||_0xb508f[0x0][_0x56750e(0x1fa)],_0x3ba15b=(_0x3810c8==null?void 0x0:_0x3810c8[_0x56750e(0x2f4)])||_0xb508f[0x0]['drawingId'],_0x5a78be=_0x297c8b[_0x56750e(0x333)](_0xc94d9e,_0x26cdbb,_0x3ba15b);if(!_0x5a78be)return _0x75870e;let _0x59743c=_0x5a78be[_0x56750e(0x188)]();if(!_0x59743c||!('dataModel'in _0x59743c))return _0x75870e;let _0x1bf611=_0x59743c[_0x56750e(0x149)];return(_0x5bc875=_0x1bf611==null?void 0x0:_0x1bf611['va'])==null?_0x75870e:_0x5bc875;};return{'id':O['id'],'icon':(_0x37636f=fe['find'](_0x3eb059=>_0x3eb059[_0x1ac518(0x25f)]===_0x75870e))==null?void 0x0:_0x37636f['icon'],'tooltip':_0x1ac518(0x123),'type':l[_0x1ac518(0x344)][_0x1ac518(0x33a)],'selections':fe,'value$':new i[(_0x1ac518(0x140))](_0x3bcc9c=>{const _0x3f40b1=_0x1ac518;let _0x170b62=_0x156edb[_0x3f40b1(0x2bf)](_0x2aa1bc=>{const _0x281d68=_0x3f40b1;_0x2aa1bc['id']===O['id']&&_0x3bcc9c[_0x281d68(0x241)](_0x4f2ae2());}),_0x301767=_0x3f8ad8[_0x3f40b1(0x1b4)]['subscribe'](()=>{_0x3bcc9c['next'](_0x4f2ae2());});return _0x3bcc9c[_0x3f40b1(0x241)](_0x4f2ae2()),()=>{const _0x3e4602=_0x3f40b1;_0x170b62[_0x3e4602(0x3bb)](),_0x301767[_0x3e4602(0x320)]();};}),'hidden$':_0x10b318['subscribeContextValue$'](t[_0x1ac518(0x2c6)])[_0x1ac518(0x29c)]((0x0,i[_0x1ac518(0x294)])(_0x5757dd=>!_0x5757dd))};}let B=class extends t['Disposable']{constructor(_0x2a847f,_0x207e25){const _0x74ede3=_0x524578;super(),this['_clipService']=_0x2a847f,this[_0x74ede3(0x106)]=_0x207e25,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x74ede3(0x2d6)](!0x0),this[_0x74ede3(0x1d1)]({'dispose':()=>this[_0x74ede3(0x210)]['setCanUseShapeClip'](!0x1)});}[_0x524578(0x1b6)](){const _0x2b24f9=_0x524578;let _0x5dde04=this[_0x2b24f9(0x210)],_0x2ef857=new Map(),_0x98d817=_0x5dde04[_0x2b24f9(0x233)]((_0x10e9da,_0x27160d,_0x4dfc76,_0x5c2f67,_0x5c7ef7)=>{const _0x4631df=_0x2b24f9;let _0x11cdd6=_0x27160d;if(_0x11cdd6===u['ShapeTypeEnum'][_0x4631df(0x173)]||_0x27160d===_0x4631df(0x3c9))return!0x1;try{let _0x55fb06=_0x2ef857[_0x4631df(0x109)](_0x27160d);return _0x55fb06||(_0x55fb06=new u[(_0x4631df(0x212))](_0x11cdd6,_0x4631df(0x161)+_0x27160d),_0x2ef857['set'](_0x27160d,_0x55fb06)),_0x5c7ef7&&_0x55fb06[_0x4631df(0x303)]({'adjustValues':_0x5c7ef7},!0x0),_0x55fb06['updateContext']({'width':_0x4dfc76,'height':_0x5c2f67}),_0x55fb06['buildClipPath'](_0x10e9da,{'left':0x0,'top':0x0,'width':_0x4dfc76,'height':_0x5c2f67});}catch{return!0x1;}});this['disposeWithMe'](_0x98d817),this['disposeWithMe']({'dispose':()=>_0x2ef857[_0x2b24f9(0x1ab)]()});}['clipByShape'](_0x24638e,_0x36b9f2,_0x16704c,_0x1ce6a0,_0x5add81){const _0x145255=_0x524578;let _0xd04e8c=this[_0x145255(0x106)][_0x145255(0x234)](_0x24638e,_0x36b9f2);if(!_0xd04e8c[_0x16704c])return;let _0x1f58fd={..._0xd04e8c[_0x16704c],'prstGeom':_0x1ce6a0,'adjustValues':_0x5add81};this[_0x145255(0x106)][_0x145255(0x21f)]([_0x1f58fd]);}};B=I([F(0x0,(0x0,t[_0x524578(0x34c)])(d[_0x524578(0x2c8)])),F(0x1,(0x0,t[_0x524578(0x34c)])(a[_0x524578(0x378)]))],B);const me=_0x524578(0x1bd);function _0x317d(_0xfaeac0,_0xbeb99a){_0xfaeac0=_0xfaeac0-0xf9;const _0x30cab9=_0x30ca();let _0x317d4f=_0x30cab9[_0xfaeac0];return _0x317d4f;}function he({onShapeClick:_0x5e3148,excludeGroups:_0x480386}){const _0x46c676=_0x524578;return(0x0,m[_0x46c676(0x2fe)])(p[_0x46c676(0x138)],{'excludeGroups':_0x480386,'onShapeClick':_0x5e3148});}function ge(){const _0x25228d=_0x524578;let _0xfac0a8=(0x0,l[_0x25228d(0x1b2)])(a['IDrawingManagerService']),_0x171a3c=(0x0,l['useDependency'])(B);return(0x0,m[_0x25228d(0x2fe)])(p[_0x25228d(0x197)],{'buttonLabel':_0x25228d(0x20d),'excludeGroups':[p[_0x25228d(0x16c)][_0x25228d(0x2ec)]],'onShapeClick':_0x60f12a=>{const _0xf96cd2=_0x25228d;let _0x5f1027=_0xfac0a8[_0xf96cd2(0x39c)]()['find'](_0x4cb1a7=>_0x4cb1a7['drawingType']===t[_0xf96cd2(0x224)][_0xf96cd2(0x244)]);if(!_0x5f1027)return;let {unitId:_0x1be040,subUnitId:_0x504d52,drawingId:_0x45a064}=_0x5f1027;_0x171a3c[_0xf96cd2(0x261)](_0x1be040,_0x504d52,_0x45a064,_0x60f12a[_0xf96cd2(0x309)]);}});}function _e(){const _0x5a66f8=_0x524578;let _0x509020=(0x0,l[_0x5a66f8(0x1b2)])(t[_0x5a66f8(0x13d)]);return(0x0,m['jsx'])(he,{'onShapeClick':_0x5e4f96=>{const _0x5bc267=_0x5a66f8;_0x509020[_0x5bc267(0x23e)](z['id'],{'value':_0x5e4f96[_0x5bc267(0x309)],'enhanceParams':{'endArrow':_0x5e4f96['endArrow'],'startArrow':_0x5e4f96[_0x5bc267(0x31b)],'horizontal':_0x5e4f96[_0x5bc267(0x33e)],'vertical':_0x5e4f96['vertical']}});}});}function ve(_0x2a2037){const _0x484914=_0x524578;let _0x4ce9bf=_0x2a2037['get'](t[_0x484914(0x2b7)]);return{'id':z['id'],'type':l['MenuItemType']['SELECTOR'],'selections':[{'label':{'name':me,'hoverable':!0x1,'selectable':!0x1,'props':{'id':z['id']}}}],'icon':_0x484914(0x216),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,c[_0x484914(0x1e7)])(_0x4ce9bf,!0x1,()=>new i[(_0x484914(0x140))](_0x60dccc=>{const _0x45921b=_0x484914;_0x60dccc[_0x45921b(0x241)](!0x1);})),'hidden$':(0x0,l[_0x484914(0x152)])(_0x2a2037,t['UniverInstanceType'][_0x484914(0x310)]),'disabled$':(0x0,c['getCurrentRangeDisable$'])(_0x2a2037)};}const ye={[l[_0x524578(0x2f1)]['START']]:{[l[_0x524578(0x136)][_0x524578(0x1ba)]]:{[O['id']]:{'order':3.5,'menuItemFactory':pe},[w['id']]:{'order':3.4,'menuItemFactory':de}},[l['RibbonStartGroup']['FORMAT']]:{[s[_0x524578(0x211)]['id']]:{'order':0x1,'menuItemFactory':ce,[s[_0x524578(0x111)]['id']]:{'order':0x0,'menuItemFactory':le}}}},[l[_0x524578(0x269)]['MEDIA']]:{[z['id']]:{'order':0x4,'menuItemFactory':ve}}};let V=class extends t['Disposable']{constructor(_0x37835d,_0x4e5de8,_0x5197c4,_0x4083d6,_0x157a1f,_0x251b12,_0x3930f9,_0x26c575,_0x25d46e,_0x201096,_0x37a040){const _0x4b5eb4=_0x524578;super(),this[_0x4b5eb4(0x139)]=_0x37835d,this[_0x4b5eb4(0x144)]=_0x4e5de8,this[_0x4b5eb4(0x1c4)]=_0x5197c4,this['_sheetsShapeService']=_0x4083d6,this[_0x4b5eb4(0x20e)]=_0x157a1f,this[_0x4b5eb4(0x39e)]=_0x251b12,this[_0x4b5eb4(0x106)]=_0x3930f9,this[_0x4b5eb4(0x153)]=_0x26c575,this[_0x4b5eb4(0x178)]=_0x25d46e,this['_renderManagerService']=_0x201096,this['_shapeTextEditingService']=_0x37a040,b(this,_0x4b5eb4(0x1b8),null),b(this,_0x4b5eb4(0x360),null),b(this,_0x4b5eb4(0x168),!0x1),b(this,'_shapeEditPanelVersion',0x0),b(this,_0x4b5eb4(0x19c),new Set()),b(this,'_disposePopups',[]),this['_initMenu'](),this[_0x4b5eb4(0x1d1)](this[_0x4b5eb4(0x139)][_0x4b5eb4(0x17d)](t[_0x4b5eb4(0x3cb)]['UNIVER_SHEET'])[_0x4b5eb4(0x38b)](_0x2869ca=>{const _0x639c54=_0x4b5eb4;if(!_0x2869ca){var _0x5b6ce7;(_0x5b6ce7=this['_sidebarDisposable'])==null||_0x5b6ce7[_0x639c54(0x3bb)]();return;}this['_createShapePopupMenu'](_0x2869ca);})),this['_registerOperations'](),this[_0x4b5eb4(0x3b2)](),this[_0x4b5eb4(0x3a6)](),this[_0x4b5eb4(0x1d1)](this['_shapeTextEditingService'][_0x4b5eb4(0x1b4)][_0x4b5eb4(0x38b)](_0x531dab=>{const _0x2e4849=_0x4b5eb4;_0x531dab&&this[_0x2e4849(0x3b4)]();}));}['_initMenu'](){const _0x5390a4=_0x524578;this[_0x5390a4(0x1c4)]['mergeMenu'](ye);}[_0x524578(0x3b2)](){const _0x22c9c6=_0x524578;this[_0x22c9c6(0x153)][_0x22c9c6(0x332)](t[_0x22c9c6(0x224)][_0x22c9c6(0x1c6)],this[_0x22c9c6(0x2e2)][_0x22c9c6(0x26e)](this)),this[_0x22c9c6(0x153)]['registerFeatureMenuOffset'](t[_0x22c9c6(0x224)][_0x22c9c6(0x1c6)],0x6,0x4);}[_0x524578(0x3a6)](){const _0x482b98=_0x524578;this[_0x482b98(0x139)][_0x482b98(0x20c)](t[_0x482b98(0x3cb)][_0x482b98(0x310)])[_0x482b98(0x280)](_0x1bf18c=>this[_0x482b98(0x145)](_0x1bf18c));}['getShapePopupMenus'](_0x3268ad,_0x45deea,_0x14a570,_0x413745){const _0x3c22fa=_0x524578;return[{'label':_0x3c22fa(0x12d),'index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'drawingId':_0x14a570},'disable':_0x413745===t['DrawingTypeEnum'][_0x3c22fa(0x27c)]},{'label':_0x3c22fa(0x15b),'index':0x1,'commandId':r['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x3268ad,'drawings':[{'unitId':_0x3268ad,'subUnitId':_0x45deea,'drawingId':_0x14a570,'drawingType':_0x413745}]},'disable':!0x1},{'label':_0x3c22fa(0x279),'index':0x2,'commandId':A['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'drawingId':_0x14a570},'disable':!0x1},{'label':_0x3c22fa(0x35d),'index':0x3,'commandId':e[_0x3c22fa(0x1b7)]['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'shapeId':_0x14a570,'flipH':!0x0},'disable':!0x1},{'label':_0x3c22fa(0x1bb),'index':0x4,'commandId':e[_0x3c22fa(0x1b7)]['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'shapeId':_0x14a570,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.rotateRight90','index':0x4,'commandId':e[_0x3c22fa(0x141)]['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'shapeId':_0x14a570,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':e[_0x3c22fa(0x141)]['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'shapeId':_0x14a570,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':e[_0x3c22fa(0x273)]['id'],'commandParams':{'unitId':_0x3268ad,'subUnitId':_0x45deea,'shapeId':_0x14a570},'disable':!0x1}];}['_getShapeInfo'](_0x44634f,_0x2c04e4,_0x666de){const _0x2c7182=_0x524578;let _0x434599=this['_sheetsShapeService']['getShapeTypeById'](_0x44634f,_0x2c04e4,_0x666de),_0x35c884=this['_sheetsShapeService']['getShapeDataById'](_0x44634f,_0x2c04e4,_0x666de);return _0x434599!==void 0x0&&_0x35c884!==void 0x0?{'shapeData':_0x35c884,'shapeId':_0x666de,'shapeType':_0x434599,'unitId':_0x44634f,'subUnitId':_0x2c04e4,'version':this[_0x2c7182(0x1ae)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x1f470c){const _0x3f53b0=_0x524578;if(!_0x1f470c)return;let _0x1b9cf3=_0x1f470c['getUnitId']();this[_0x3f53b0(0x3cd)][_0x3f53b0(0xfb)](_0x1b9cf3)&&!this[_0x3f53b0(0x19c)][_0x3f53b0(0xfb)](_0x1b9cf3)&&(this['_popupMenuListener'](_0x1b9cf3),this['_initializedShapePopupMenu'][_0x3f53b0(0x311)](_0x1b9cf3));}[_0x524578(0x3b4)](){const _0x4ca4d5=_0x524578;this[_0x4ca4d5(0x3a1)][_0x4ca4d5(0x280)](_0x4a5a35=>_0x4a5a35[_0x4ca4d5(0x3bb)]()),this[_0x4ca4d5(0x3a1)][_0x4ca4d5(0x355)]=0x0;}[_0x524578(0x35f)](_0x182a75){const _0x347207=_0x524578;var _0x1bca5a;let _0x1f2e9c=(_0x1bca5a=this['_renderManagerService'][_0x347207(0x18d)](_0x182a75))==null?void 0x0:_0x1bca5a[_0x347207(0x295)],_0x33f5ad=_0x1f2e9c==null?void 0x0:_0x1f2e9c[_0x347207(0x396)]();!_0x1f2e9c||!_0x33f5ad||(this['disposeWithMe'](_0x33f5ad[_0x347207(0x2fd)]['subscribe'](()=>{const _0x27388a=_0x347207;let _0x56b3ab=_0x33f5ad[_0x27388a(0x235)]();if(this['_clearPopups'](),this[_0x27388a(0x168)]||_0x56b3ab[_0x27388a(0x346)]>0x1)return;let _0xafd33b=_0x56b3ab[_0x27388a(0x31c)]()[_0x27388a(0x241)]()[_0x27388a(0x25f)];if(!_0xafd33b)return;let _0x218899=this[_0x27388a(0x106)][_0x27388a(0x2cc)](_0xafd33b[_0x27388a(0x11e)]);if(!_0x218899||_0x218899[_0x27388a(0x232)]!==t[_0x27388a(0x224)][_0x27388a(0x1c6)])return;let {unitId:_0x59103f,subUnitId:_0x3475f3,drawingId:_0x5e43c9,drawingType:_0x2fa257}=_0x218899,_0x2a74ec=this[_0x27388a(0x3c7)](_0x59103f,_0x3475f3,_0x5e43c9);if(!_0x2a74ec)return;this[_0x27388a(0x178)][_0x27388a(0x2c3)](t[_0x27388a(0x2c6)],!0x0);let _0x5e3b92=this[_0x27388a(0x153)][_0x27388a(0x2e8)](_0xafd33b,{'componentKey':ee,'direction':_0x27388a(0x187),'offset':[0x0,0x8],'extraProps':{'unitId':_0x59103f,'subUnitId':_0x3475f3,'drawingId':_0x5e43c9,'drawingType':_0x2fa257,'shapeType':_0x2a74ec[_0x27388a(0x287)],'shapeData':_0x2a74ec[_0x27388a(0x36b)]}});this['_disposePopups'][_0x27388a(0x35a)](this[_0x27388a(0x1d1)](_0x5e3b92)),this[_0x27388a(0x106)][_0x27388a(0x39c)]()[_0x27388a(0x16b)](_0x5e6bdb=>_0x5e6bdb[_0x27388a(0x2f9)]===_0x59103f&&_0x5e6bdb['subUnitId']===_0x3475f3&&_0x5e6bdb[_0x27388a(0x167)]===_0x5e43c9)||this[_0x27388a(0x106)][_0x27388a(0x204)]([{'unitId':_0x59103f,'subUnitId':_0x3475f3,'drawingId':_0x5e43c9}]);})),this[_0x347207(0x1d1)](_0x33f5ad[_0x347207(0x2f0)][_0x347207(0x38b)](()=>{const _0x36dd89=_0x347207;this[_0x36dd89(0x3b4)](),this[_0x36dd89(0x178)][_0x36dd89(0x2c3)](t[_0x36dd89(0x2c6)],!0x1),this['_drawingManagerService']['focusDrawing'](null);})),this[_0x347207(0x1d1)](_0x33f5ad[_0x347207(0x30a)][_0x347207(0x38b)](()=>{const _0x5ca930=_0x347207;this[_0x5ca930(0x3b4)]();})),this[_0x347207(0x1d1)](_0x33f5ad[_0x347207(0x2f8)]['subscribe'](()=>{const _0x1aa56a=_0x347207;this[_0x1aa56a(0x3b4)]();})));}[_0x524578(0x154)](){const _0x1e629f=_0x524578;this['disposeWithMe'](this['_commandService'][_0x1e629f(0x2bf)](_0x2c3c8f=>{const _0x38410e=_0x1e629f;if(_0x2c3c8f['id']===j['id']){let {unitId:_0x3b3559,subUnitId:_0x2c12bd,drawingId:_0xc23482}=_0x2c3c8f['params'];this['_shapeEditPanelVersion']+=0x1,this[_0x38410e(0x360)]=this[_0x38410e(0x3c7)](_0x3b3559,_0x2c12bd,_0xc23482),this[_0x38410e(0x3b4)](),this[_0x38410e(0x219)]();}if(_0x2c3c8f['id']===A['id']&&(this[_0x38410e(0x360)]=null,this[_0x38410e(0x246)]()),_0x2c3c8f['id']===e[_0x38410e(0x343)]['id']){let {unitId:_0x9c67b2,subUnitId:_0x106a2d,shapeId:_0x2bab5e}=_0x2c3c8f[_0x38410e(0x158)];if(this[_0x38410e(0x360)]&&this[_0x38410e(0x360)][_0x38410e(0x2f4)]===_0x2bab5e){let _0x57412f=this[_0x38410e(0x3c7)](_0x9c67b2,_0x106a2d,_0x2bab5e);_0x57412f&&(this[_0x38410e(0x1ae)]+=0x1,_0x57412f[_0x38410e(0x159)]=this['_shapeEditPanelVersion'],this[_0x38410e(0x360)]=_0x57412f,this[_0x38410e(0x168)]&&this[_0x38410e(0x219)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x1e629f(0x107)][_0x1e629f(0x38b)](_0x19706b=>{const _0x588f83=_0x1e629f;if(this[_0x588f83(0x168)]===!0x1)return;if(_0x19706b[_0x588f83(0x355)]===0x0){this[_0x588f83(0x360)]=null,this[_0x588f83(0x246)]();return;}if(_0x19706b[_0x588f83(0x355)]===0x1&&_0x19706b[0x0]['drawingType']===t['DrawingTypeEnum'][_0x588f83(0x1c6)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x19706b[0x0][_0x588f83(0x2f9)],_0x19706b[0x0]['subUnitId'],_0x19706b[0x0][_0x588f83(0x167)]),this[_0x588f83(0x360)])){this[_0x588f83(0x219)]();return;}let _0x4e049c=_0x19706b[_0x588f83(0x2ae)](_0x2e663f=>_0x2e663f[_0x588f83(0x232)]===t[_0x588f83(0x224)]['DRAWING_SHAPE']);if(_0x19706b[_0x588f83(0x355)]>0x1&&_0x4e049c[_0x588f83(0x355)]===_0x19706b[_0x588f83(0x355)]){if(this[_0x588f83(0x1ae)]+=0x1,this[_0x588f83(0x360)]=this[_0x588f83(0x3c7)](_0x19706b[0x0][_0x588f83(0x2f9)],_0x19706b[0x0][_0x588f83(0x1fa)],_0x19706b[0x0][_0x588f83(0x167)]),this[_0x588f83(0x360)]){this[_0x588f83(0x219)]();return;}}else{if(this[_0x588f83(0x1ae)]+=0x1,this[_0x588f83(0x360)]=this[_0x588f83(0x3c7)](_0x19706b[0x0]['unitId'],_0x19706b[0x0]['subUnitId'],_0x19706b[0x0]['drawingId']),this[_0x588f83(0x360)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x588f83(0x219)]();return;}}this[_0x588f83(0x246)]();}));}['_openShapeEditPanel'](){const _0x2d341c=_0x524578;this[_0x2d341c(0x360)]&&(this[_0x2d341c(0x1b8)]=this[_0x2d341c(0x144)][_0x2d341c(0x1c5)]({'id':M,'header':{'title':this[_0x2d341c(0x20e)]['t'](_0x2d341c(0x31d))},'width':0x184,'children':{'label':M,...this[_0x2d341c(0x360)]},'onClose':()=>{const _0x3279c5=_0x2d341c;this[_0x3279c5(0x106)][_0x3279c5(0x204)](null),this[_0x3279c5(0x178)][_0x3279c5(0x2c3)](t[_0x3279c5(0x2c6)],!0x1),this[_0x3279c5(0x1b8)]=null;}}),this[_0x2d341c(0x168)]=!0x0);}[_0x524578(0x246)](){const _0x2d3757=_0x524578;this[_0x2d3757(0x168)]=!0x1,this[_0x2d3757(0x144)][_0x2d3757(0x206)](M),this[_0x2d3757(0x1b8)]=null,this[_0x2d3757(0x178)]['setContextValue'](t[_0x2d3757(0x2c6)],!0x1),this[_0x2d3757(0x106)]['focusDrawing'](null);}};V=I([F(0x0,t[_0x524578(0x2b7)]),F(0x1,(0x0,t[_0x524578(0x34c)])(l[_0x524578(0x1b1)])),F(0x2,l['IMenuManagerService']),F(0x3,(0x0,t[_0x524578(0x34c)])(e['SheetsShapeService'])),F(0x4,(0x0,t[_0x524578(0x34c)])(t[_0x524578(0x177)])),F(0x5,t[_0x524578(0x13d)]),F(0x6,a[_0x524578(0x378)]),F(0x7,(0x0,t[_0x524578(0x34c)])(c[_0x524578(0x1fb)])),F(0x8,t[_0x524578(0x156)]),F(0x9,o[_0x524578(0x20f)]),F(0xa,(0x0,t['Inject'])(x))],V);var be='@univerjs-pro/sheets-shape-ui',xe='1.0.0-alpha.2';const Se={};let H=class{constructor(_0xa87ef){this['_renderManagerService']=_0xa87ef;}['updateShapeFillImage'](_0x195c54,_0xd156e7){const _0x4041c6=_0x524578;let _0x2ce94d=this[_0x4041c6(0x3cd)][_0x4041c6(0x18d)](_0x195c54[_0x4041c6(0x2f9)]),_0x552270=_0x2ce94d==null?void 0x0:_0x2ce94d[_0x4041c6(0x295)];if(!_0x552270)return;let _0x1ede40=(0x0,a[_0x4041c6(0x17a)])(_0x195c54),_0x436c03=_0x552270['getObjectIncludeInGroup'](_0x1ede40);_0x436c03==null||_0x436c03[_0x4041c6(0x301)](_0xd156e7);}};H=I([F(0x0,o['IRenderManagerService'])],H);function Ce(){const _0x6cbe5a=_0x524578;let _0x47e6eb=(0x0,l[_0x6cbe5a(0x1b2)])(a[_0x6cbe5a(0x378)]),[_0x2ae8ed,_0x29b051]=(0x0,g[_0x6cbe5a(0x27d)])(_0x47e6eb[_0x6cbe5a(0x39c)]());return(0x0,g['useEffect'])(()=>{const _0x13a488=_0x6cbe5a;let _0x4d60dc=_0x47e6eb[_0x13a488(0x107)][_0x13a488(0x38b)](_0x11d380=>{_0x29b051(_0x11d380);});return()=>{const _0x17b003=_0x13a488;_0x4d60dc[_0x17b003(0x320)]();};},[]),_0x2ae8ed[_0x6cbe5a(0x355)]===0x0?null:(0x0,m[_0x6cbe5a(0x2fe)])(_0x6cbe5a(0x250),{'children':(0x0,m[_0x6cbe5a(0x356)])(_0x6cbe5a(0x250),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,m[_0x6cbe5a(0x2fe)])(d[_0x6cbe5a(0x16d)],{'drawings':_0x2ae8ed,'hasCropper':!0x1}),(0x0,m[_0x6cbe5a(0x2fe)])(h[_0x6cbe5a(0x193)],{'drawings':_0x2ae8ed})]})});}function we(_0x4ac8ac){const _0x34c1da=_0x524578;let {unitId:_0x43e74c,subUnitId:_0xeee565,shapeId:_0x4668e1}=_0x4ac8ac,_0x68bb08=(0x0,l[_0x34c1da(0x1b2)])(t[_0x34c1da(0x13d)]),_0x3a068f=(0x0,l[_0x34c1da(0x1b2)])(H);return(0x0,m['jsx'])(p[_0x34c1da(0x121)],{..._0x4ac8ac,'positionEditor':(0x0,m[_0x34c1da(0x2fe)])(Ce,{}),'onUpdateShapeData':(_0x45ebd2,_0x5383bf)=>{N(_0x68bb08,_0x43e74c,_0xeee565,_0x4668e1,_0x45ebd2,_0x5383bf);},'onUpdateLineShapeData':(_0x1e48ba,_0x4679a0)=>{ne(_0x68bb08,_0x43e74c,_0xeee565,_0x4668e1,_0x1e48ba,_0x4679a0);},'onUpdateShapeFillImage':_0x2636a5=>{const _0x1486e2=_0x34c1da;_0x3a068f[_0x1486e2(0x2dd)]({'unitId':_0x43e74c,'subUnitId':_0xeee565,'drawingId':_0x4668e1},_0x2636a5);}});}function Te(_0x5792a3){const _0x4b84a4=_0x524578;let _0x236074=_0x5792a3[_0x4b84a4(0x3b1)];return _0x236074&&_0x4b84a4(0x149)in _0x236074&&_0x236074[_0x4b84a4(0x149)]?_0x236074['dataModel']:null;}function Ee(_0x25cded){const _0x27bc61=_0x524578;var _0x1ded24,_0x3e91d4,_0x498dca,_0x2138a3;let _0xbaed9e=(_0x1ded24=Te(_0x25cded))==null?void 0x0:_0x1ded24[_0x27bc61(0x165)],_0x50e32a=(_0x3e91d4=_0xbaed9e==null||(_0x498dca=_0xbaed9e[_0x27bc61(0x1bc)])==null||(_0x498dca=_0x498dca[_0x27bc61(0x114)])==null||(_0x498dca=_0x498dca[0x0])==null?void 0x0:_0x498dca['ts'])==null?{}:_0x3e91d4;return{..._0xbaed9e==null||(_0x2138a3=_0xbaed9e[_0x27bc61(0x164)])==null?void 0x0:_0x2138a3[_0x27bc61(0x393)],..._0x50e32a};}function De(_0x1f2e18){const _0x904566=_0x524578;let _0x555497=_0x1f2e18[_0x904566(0x1fc)][_0x904566(0x242)];return _0x555497?(0x0,m[_0x904566(0x2fe)])(Oe,{..._0x555497}):null;}function Oe(_0x17bc88){const _0x5197dd=_0x524578;var _0x41139a,_0x208fbc;let _0x530e3b=(0x0,l[_0x5197dd(0x1b2)])(t[_0x5197dd(0x13d)]),_0x84cbe7=(0x0,l['useDependency'])(e[_0x5197dd(0x2ac)]),{unitId:_0x1c3dbc,subUnitId:_0x35278e,drawingId:_0x189566,drawingType:_0x4a4971,shapeType:_0x1f9e83}=_0x17bc88,[_0x1c6b3c,_0x363300]=(0x0,g[_0x5197dd(0x27d)])(_0x17bc88[_0x5197dd(0x36b)]),_0x3b7822=(0x0,g[_0x5197dd(0x10f)])(()=>Ee(_0x1c6b3c),[_0x1c6b3c]),_0x5057b4=(0x0,g[_0x5197dd(0x10f)])(()=>Te(_0x1c6b3c),[_0x1c6b3c]);(0x0,g[_0x5197dd(0x150)])(()=>{const _0x46b0d8=_0x5197dd;let _0x25a99f=_0x530e3b[_0x46b0d8(0x2bf)](_0x3de707=>{const _0x418e9f=_0x46b0d8;if(_0x3de707['id']!==e['UpdateSheetsShapeDataMutation']['id'])return;let _0xdefa05=_0x84cbe7[_0x418e9f(0x17b)](_0x1c3dbc,_0x35278e,_0x189566);_0xdefa05&&_0x363300(_0xdefa05);});return()=>_0x25a99f['dispose']();},[_0x530e3b,_0x189566,_0x84cbe7,_0x35278e,_0x1c3dbc]);let _0x4c9589=_0x5c78ff=>{_0x363300(_0xbf1e56=>({..._0xbf1e56,..._0x5c78ff}));},_0x3cbc65=_0x4cdd94=>{const _0x43ff97=_0x5197dd;let _0x47e1fa=(0x0,p[_0x43ff97(0x14e)])(_0x1c6b3c,_0x4cdd94);N(_0x530e3b,_0x1c3dbc,_0x35278e,_0x189566,{'oldShapeData':{'shapeText':_0x1c6b3c['shapeText']}},_0x47e1fa),_0x4c9589(_0x47e1fa);};return(0x0,m['jsx'])(p[_0x5197dd(0x38c)],{'shapeData':_0x1c6b3c,'shapeType':_0x1f9e83,'textStyle':{'cl':{'rgb':'#111827'},..._0x3b7822},'textModel':_0x5057b4?{'ha':(_0x41139a=_0x5057b4['ha'])==null?t[_0x5197dd(0x1c7)][_0x5197dd(0x285)]:_0x41139a,'va':(_0x208fbc=_0x5057b4['va'])==null?t['VerticalAlign'][_0x5197dd(0x322)]:_0x208fbc}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'onUpdateShapeData':(_0x374034,_0x549023)=>{N(_0x530e3b,_0x1c3dbc,_0x35278e,_0x189566,_0x374034,_0x549023),_0x549023&&_0x4c9589(_0x549023);},'onUpdateText':_0x3cbc65,'onOpenPanel':()=>{_0x530e3b['executeCommand'](j['id'],{'unitId':_0x1c3dbc,'subUnitId':_0x35278e,'drawingId':_0x189566});},'onDelete':()=>{const _0x47a8ad=_0x5197dd;_0x530e3b[_0x47a8ad(0x23e)](r[_0x47a8ad(0x2a1)]['id'],{'unitId':_0x1c3dbc,'drawings':[{'unitId':_0x1c3dbc,'subUnitId':_0x35278e,'drawingId':_0x189566,'drawingType':_0x4a4971}]});}});}const ke=(0x0,g[_0x524578(0x259)])(()=>{const _0x5775fa=_0x524578;let _0x257d1b=(0x0,l['useDependency'])(x),_0x2734a9=(0x0,l[_0x5775fa(0x1b2)])(e['SheetsShapeService']),_0x341bd5=(0x0,l[_0x5775fa(0x1b2)])(a[_0x5775fa(0x378)]),_0x1bae08=(0x0,l['useDependency'])(t[_0x5775fa(0x13d)]);return(0x0,m[_0x5775fa(0x2fe)])(p[_0x5775fa(0x12a)],{'adapter':(0x0,g[_0x5775fa(0x10f)])(()=>({'getShapeModel':(_0x224095,_0x57ab05,_0x1dd6a6)=>_0x2734a9['getShapeModel'](_0x224095,_0x57ab05,_0x1dd6a6),'getDrawingTransform':(_0x506df5,_0x33816c,_0x117638)=>{const _0x3728ae=_0x5775fa;let _0x5c95ec=_0x341bd5[_0x3728ae(0x3a3)]({'unitId':_0x506df5,'subUnitId':_0x33816c,'drawingId':_0x117638});return _0x5c95ec==null?void 0x0:_0x5c95ec[_0x3728ae(0x38d)];},'updateShapeText':({unitId:_0x5be07b,subUnitId:_0x2ac5f1,shapeId:_0x186ae8,shapeText:_0x735d10,oldShapeText:_0x1ba600})=>{const _0x87aac8=_0x5775fa;_0x1bae08[_0x87aac8(0x23e)](C['id'],{'unitId':_0x5be07b,'subUnitId':_0x2ac5f1,'shapeId':_0x186ae8,'shapeData':{'shapeText':_0x735d10},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1ba600}}});}}),[_0x1bae08,_0x341bd5,_0x2734a9]),'editingService':_0x257d1b,'editorUnitId':te,'positionOptions':(0x0,g['useMemo'])(()=>({'viewportKeys':{'main':o[_0x5775fa(0x2a2)]['VIEW_MAIN'],'leftTop':o[_0x5775fa(0x2a2)]['VIEW_MAIN_LEFT_TOP'],'top':o[_0x5775fa(0x2a2)][_0x5775fa(0x32e)],'left':o[_0x5775fa(0x2a2)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x2133ee,_0x1c90f3)=>{const _0x1aeb62=_0x5775fa;var _0x50b3fa,_0x1616d5;return(_0x50b3fa=(_0x1616d5=_0x2133ee['with'](c[_0x1aeb62(0x1e6)])['getSkeletonParam'](_0x1c90f3['subUnitId']))==null?void 0x0:_0x1616d5[_0x1aeb62(0x230)])==null?null:_0x50b3fa;}}),[]),'verticalAlignCommandId':O['id']});});let U=class extends t[_0x524578(0x239)]{constructor(_0x29a0d6){const _0x2e3ffc=_0x524578;super(),this[_0x2e3ffc(0x247)]=_0x29a0d6,this['_registerComponents']();}[_0x524578(0x1ff)](){const _0x4ffe2b=_0x524578;this['disposeWithMe'](this[_0x4ffe2b(0x247)][_0x4ffe2b(0x3bf)](M,we)),this[_0x4ffe2b(0x1d1)](this['_componentManager'][_0x4ffe2b(0x3bf)](me,_e)),this[_0x4ffe2b(0x1d1)](this['_componentManager'][_0x4ffe2b(0x3bf)](d[_0x4ffe2b(0x33b)],ge)),this['disposeWithMe'](this[_0x4ffe2b(0x247)][_0x4ffe2b(0x3bf)](ee,De)),this[_0x4ffe2b(0x1d1)](this[_0x4ffe2b(0x247)][_0x4ffe2b(0x3bf)](_0x4ffe2b(0x12a),ke));}};U=I([F(0x0,(0x0,t[_0x524578(0x34c)])(l[_0x524578(0x10b)]))],U);let W=class extends t[_0x524578(0x239)]{constructor(_0x141e99,_0x1a2b11,_0x286bc1,_0xc9ec5f,_0xc9cded){const _0x4d1827=_0x524578;super(),this['_context']=_0x141e99,this[_0x4d1827(0x106)]=_0x1a2b11,this[_0x4d1827(0x3cd)]=_0x286bc1,this[_0x4d1827(0x139)]=_0xc9ec5f,this[_0x4d1827(0x179)]=_0xc9cded,b(this,_0x4d1827(0x365),null),b(this,_0x4d1827(0x39d),null),b(this,_0x4d1827(0x24b),null),b(this,_0x4d1827(0x382),void 0x0),b(this,_0x4d1827(0x26f),[]),b(this,_0x4d1827(0x3b7),0x0),b(this,_0x4d1827(0x316),0x0),b(this,'_baseWidth',0x0),b(this,'_baseHeight',0x0),b(this,_0x4d1827(0x19e),!0x1),b(this,'_activeAdjustInfo',void 0x0),b(this,'_activeShapeModel',void 0x0),b(this,'_adjHandlerPointerMove',void 0x0),b(this,_0x4d1827(0x37f),void 0x0),b(this,_0x4d1827(0x3cc),!0x1),this[_0x4d1827(0x221)](),this[_0x4d1827(0x2d5)]();}[_0x524578(0x350)](){const _0x238e0e=_0x524578;this[_0x238e0e(0x134)]();}[_0x524578(0x3ab)](){const _0x3fce2f=_0x524578;this[_0x3fce2f(0x134)](),this[_0x3fce2f(0x2dc)](!0x0);}[_0x524578(0x25b)](_0x15d144,_0x3b1af5,_0x1c9915,_0x24d7ef){const _0x45fc53=_0x524578;let _0x5ebf8c=_0x15d144;if(!(_0x5ebf8c===u[_0x45fc53(0x1da)][_0x45fc53(0x173)]||_0x15d144===_0x45fc53(0x3c9)))try{let _0x7842c=new u['ShapeModel'](_0x5ebf8c,_0x45fc53(0x337)+_0x15d144);return _0x24d7ef&&_0x7842c[_0x45fc53(0x303)]({'adjustValues':_0x24d7ef},!0x0),_0x7842c['updateContext']({'width':_0x3b1af5,'height':_0x1c9915}),_0x7842c;}catch{return;}}['_getImageDrawingInfo'](_0x4111a3,_0x47a5db,_0x3725c2){const _0x3cd99b=_0x524578;let _0x55859c={'unitId':_0x4111a3,'subUnitId':_0x47a5db,'drawingId':_0x3725c2},_0x98cea8=this[_0x3cd99b(0x106)][_0x3cd99b(0x3a3)](_0x55859c);if(!(!_0x98cea8||_0x98cea8[_0x3cd99b(0x232)]!==t[_0x3cd99b(0x224)][_0x3cd99b(0x244)]))return _0x98cea8;}['_getImagePrstGeom'](_0x1515a8,_0x1566dd,_0x4c4bbd){const _0x3d6fe7=_0x524578;let _0x14499f=this['_renderManagerService']['getRenderById'](_0x1515a8);if(!_0x14499f)return;let {scene:_0x3ef543}=_0x14499f,_0x2748bf=(0x0,a[_0x3d6fe7(0x17a)])({'unitId':_0x1515a8,'subUnitId':_0x1566dd,'drawingId':_0x4c4bbd}),_0x272109=_0x3ef543[_0x3d6fe7(0x28f)](_0x2748bf);if(_0x272109 instanceof o[_0x3d6fe7(0x205)]){let _0x4d3f1b=_0x272109[_0x3d6fe7(0x21b)];if(_0x4d3f1b)return{'prstGeom':_0x4d3f1b,'adjustValues':_0x272109[_0x3d6fe7(0x1f3)]};}}[_0x524578(0x2dc)](_0x538412=!0x1){const _0x51f7c7=_0x524578;if(!this[_0x51f7c7(0x39d)]||!this[_0x51f7c7(0x24b)]||!this[_0x51f7c7(0x365)])return;let _0x39efbb=this[_0x51f7c7(0x3cd)][_0x51f7c7(0x18d)](this[_0x51f7c7(0x39d)]);if(!_0x39efbb||!_0x39efbb['with'](c[_0x51f7c7(0x1e6)])[_0x51f7c7(0x23b)]())return;let {scene:_0x49588a}=_0x39efbb,_0x1d0c34=this[_0x51f7c7(0x10d)](this[_0x51f7c7(0x39d)],this[_0x51f7c7(0x24b)],this['_activeImageId']);if(!_0x1d0c34)return;let {transform:_0x22839a}=_0x1d0c34;if(!_0x22839a)return;let {left:_0x192c08,top:_0x3d18bd,width:_0x109c43,height:_0x52646f,flipX:_0x12b75d,flipY:_0x1ed784,angle:_0x1e955d=0x0}=_0x22839a;if(_0x192c08===void 0x0||_0x3d18bd===void 0x0)return;let _0x44b958=this[_0x51f7c7(0x3bd)](this[_0x51f7c7(0x39d)],this[_0x51f7c7(0x24b)],this[_0x51f7c7(0x365)]);if(!_0x44b958)return;if(_0x538412){let _0x4daeb5=this[_0x51f7c7(0x25b)](_0x44b958['prstGeom'],_0x109c43||0x0,_0x52646f||0x0,_0x44b958[_0x51f7c7(0x13b)]);if(!_0x4daeb5)return;this[_0x51f7c7(0x382)]=_0x4daeb5[_0x51f7c7(0x217)]();}let _0x3d35d1=this['_activeAdjustPointList'];if(!(!_0x3d35d1||_0x3d35d1['length']===0x0))for(let _0x53c46c=0x0;_0x53c46c<_0x3d35d1['length'];_0x53c46c++){let _0x549e36=_0x3d35d1[_0x53c46c],_0x2bd86b=_0x549e36['x'],_0x24168e=_0x549e36['y'];if(_0x12b75d&&(_0x2bd86b=(_0x109c43||0x0)-_0x2bd86b),_0x1ed784&&(_0x24168e=(_0x52646f||0x0)-_0x24168e),_0x1e955d!==0x0){let _0x231949=(_0x109c43||0x0)/0x2,_0x41edf7=(_0x52646f||0x0)/0x2,_0x317862=_0x1e955d*Math['PI']/0xb4,_0x5c2de8=Math[_0x51f7c7(0x17f)](_0x317862),_0x2fee27=Math[_0x51f7c7(0x2b5)](_0x317862),_0x31d766=_0x2bd86b-_0x231949,_0x5b5557=_0x24168e-_0x41edf7;_0x2bd86b=_0x231949+(_0x31d766*_0x5c2de8-_0x5b5557*_0x2fee27),_0x24168e=_0x41edf7+(_0x31d766*_0x2fee27+_0x5b5557*_0x5c2de8);}let _0x59a863={'x':_0x2bd86b,'y':_0x24168e,'adjName':_0x549e36[_0x51f7c7(0x290)]};this[_0x51f7c7(0x227)](_0x49588a,_0x59a863,_0x59a863[_0x51f7c7(0x290)],_0x192c08,_0x3d18bd,this['_unitId'],this[_0x51f7c7(0x24b)]);}}[_0x524578(0x227)](_0x476ba4,_0x5cd7fa,_0x29b2a1,_0x1243d1,_0x36ce83,_0x44360e,_0x5a4d2c){const _0x59b2b8=_0x524578;if(!this[_0x59b2b8(0x365)])return;let _0x2980ea='image-clip-adjust-point-'+this[_0x59b2b8(0x365)]+'-'+_0x29b2a1,_0x3346ee=_0x476ba4[_0x59b2b8(0x228)](_0x2980ea);if(_0x3346ee){_0x3346ee[_0x59b2b8(0x384)]({'left':_0x5cd7fa['x']+_0x1243d1-u[_0x59b2b8(0x32c)]['adjHandleSize'],'top':_0x5cd7fa['y']+_0x36ce83-u[_0x59b2b8(0x32c)]['adjHandleSize']});return;}let _0x4663c2=new oe(_0x2980ea,{'left':_0x5cd7fa['x']+_0x1243d1-u[_0x59b2b8(0x32c)][_0x59b2b8(0x286)],'top':_0x5cd7fa['y']+_0x36ce83-u[_0x59b2b8(0x32c)][_0x59b2b8(0x286)],'adjName':_0x29b2a1,'shapeId':this[_0x59b2b8(0x365)],'unitId':_0x44360e,'subUnitId':_0x5a4d2c,'width':u['ShapeDefaultConfig'][_0x59b2b8(0x286)]+0x8,'height':u[_0x59b2b8(0x32c)][_0x59b2b8(0x286)]+0x8,'zIndex':o[_0x59b2b8(0x3bc)]+0x1,'evented':!0x0});this[_0x59b2b8(0x26f)]['push'](_0x4663c2),this[_0x59b2b8(0x351)](_0x4663c2,_0x476ba4,_0x29b2a1),_0x476ba4['addObject'](_0x4663c2,o['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x524578(0x134)](){const _0xbb3607=_0x524578;this[_0xbb3607(0x26f)]['length']!==0x0&&(this[_0xbb3607(0x26f)][_0xbb3607(0x280)](_0x4b3736=>_0x4b3736['dispose']()),this[_0xbb3607(0x26f)]=[]);}[_0x524578(0x2b3)](_0x402dac,_0x3fdcb9){const _0x5bb22b=_0x524578;var _0x5c1739;let _0x23f2ac={'x':0x0,'y':0x0},_0x226811=this['_renderManagerService']['getRenderById'](_0x402dac);if(!_0x226811||!_0x226811[_0x5bb22b(0x2ea)](c[_0x5bb22b(0x1e6)])[_0x5bb22b(0x3ba)](_0x3fdcb9))return _0x23f2ac;let _0x3201af=_0x226811[_0x5bb22b(0x2ea)](c['SheetScrollManagerService']),_0x32c9b4=_0x3201af==null?void 0x0:_0x3201af['getCurrentScrollState']();if(!_0x32c9b4)return _0x23f2ac;let _0x567628=(_0x5c1739=this[_0x5bb22b(0x139)][_0x5bb22b(0x1ad)](_0x402dac))==null?void 0x0:_0x5c1739[_0x5bb22b(0x268)](_0x3fdcb9);if(!_0x567628)return _0x23f2ac;let _0x539856=(0x0,c['getViewportByCell'])(_0x32c9b4[_0x5bb22b(0x317)],_0x32c9b4[_0x5bb22b(0x283)],_0x226811[_0x5bb22b(0x295)],_0x567628);return _0x539856?{'x':_0x539856[_0x5bb22b(0x1d9)],'y':_0x539856['viewportScrollY']}:_0x23f2ac;}[_0x524578(0x115)](_0x251026,_0x1ce689){const _0x579415=_0x524578;var _0x1b3c4c,_0x511ae7;let _0x3e4d47=(_0x1b3c4c=this[_0x579415(0x139)]['getUnit'](_0x251026))==null?void 0x0:_0x1b3c4c[_0x579415(0x268)](_0x1ce689);return(_0x511ae7=_0x3e4d47==null?void 0x0:_0x3e4d47[_0x579415(0x1c1)]())==null?0x1:_0x511ae7;}[_0x524578(0x351)](_0x41ab14,_0x4fe5de,_0x44ab5a){const _0x269e70=_0x524578;this['disposeWithMe']((0x0,t[_0x269e70(0x3be)])(_0x41ab14[_0x269e70(0x1d2)][_0x269e70(0x1f2)]((_0x1f934b,_0x54659c)=>{const _0x9f1db5=_0x269e70;var _0x4243e5,_0x5d497e,_0x3dd828;let {unitId:_0x1cb453,subUnitId:_0x11a12a,drawingId:_0x3b83cd}=_0x41ab14['getDrawingSearch'](),_0x4558da=this[_0x9f1db5(0x10d)](_0x1cb453,_0x11a12a,_0x3b83cd);if(!(_0x4558da!=null&&_0x4558da[_0x9f1db5(0x38d)]))return;let {left:_0x25201d,top:_0x5a8976,width:_0x1c674e,height:_0x1f8058}=_0x4558da[_0x9f1db5(0x38d)];this[_0x9f1db5(0x3b7)]=_0x25201d||0x0,this[_0x9f1db5(0x316)]=_0x5a8976||0x0,this[_0x9f1db5(0x395)]=_0x1c674e||0x0,this[_0x9f1db5(0x11d)]=_0x1f8058||0x0;let _0x52207=!!((_0x4243e5=_0x4558da[_0x9f1db5(0x38d)])!=null&&_0x4243e5[_0x9f1db5(0xfc)]),_0x3018d4=!!((_0x5d497e=_0x4558da[_0x9f1db5(0x38d)])!=null&&_0x5d497e['flipY']),_0x1ef2f2=((_0x3dd828=_0x4558da[_0x9f1db5(0x38d)])==null?void 0x0:_0x3dd828[_0x9f1db5(0x2be)])||0x0,_0xc8bfc3=this[_0x9f1db5(0x3bd)](_0x1cb453,_0x11a12a,_0x3b83cd);if(!_0xc8bfc3)return;let _0x15276d=this[_0x9f1db5(0x25b)](_0xc8bfc3[_0x9f1db5(0x21b)],this[_0x9f1db5(0x395)],this[_0x9f1db5(0x11d)],_0xc8bfc3[_0x9f1db5(0x13b)]);if(!_0x15276d||(this[_0x9f1db5(0x102)]=_0x15276d,this[_0x9f1db5(0x302)]=_0x15276d[_0x9f1db5(0x2e3)](_0x44ab5a),!this[_0x9f1db5(0x302)]))return;this[_0x9f1db5(0x19e)]=!0x0,_0x4fe5de[_0x9f1db5(0x36e)]();let _0xa8ebdb=_0xc8bfc3[_0x9f1db5(0x21b)];this[_0x9f1db5(0x1ec)]=_0x4fe5de[_0x9f1db5(0x229)][_0x9f1db5(0x1f2)]((_0x514792,_0x110afe)=>{const _0x52ea41=_0x9f1db5;if(!this[_0x52ea41(0x19e)])return;let {offsetX:_0x45a46e,offsetY:_0x946960}=_0x514792,_0x2d7dc3=this['_activeAdjustInfo'];if(!this[_0x52ea41(0x102)]||!_0x2d7dc3)return;_0x4fe5de[_0x52ea41(0x36e)](),_0x4fe5de[_0x52ea41(0x34a)](o[_0x52ea41(0x1a6)][_0x52ea41(0x1e5)]);let _0xc1b4ad={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x52ea41(0x11d)]},_0x256716=this['_getScrollInfo'](_0x1cb453,_0x11a12a),_0x516cbd=this['_getZoomRatio'](_0x1cb453,_0x11a12a),_0x420ccc=_0x45a46e/_0x516cbd+_0x256716['x']-this[_0x52ea41(0x3b7)],_0x1b2861=_0x946960/_0x516cbd+_0x256716['y']-this[_0x52ea41(0x316)];if(_0x1ef2f2!==0x0){let _0x140bf5=this[_0x52ea41(0x395)]/0x2,_0x22b082=this[_0x52ea41(0x11d)]/0x2,_0x26a5f8=_0x1ef2f2*Math['PI']/0xb4,_0x3607fb=Math[_0x52ea41(0x17f)](_0x26a5f8),_0x2a4f77=Math[_0x52ea41(0x2b5)](_0x26a5f8),_0x5467e0=_0x420ccc-_0x140bf5,_0x191f11=_0x1b2861-_0x22b082;_0x420ccc=_0x140bf5+(_0x5467e0*_0x3607fb+_0x191f11*_0x2a4f77),_0x1b2861=_0x22b082+(-_0x5467e0*_0x2a4f77+_0x191f11*_0x3607fb);}_0x52207&&(_0x420ccc=this[_0x52ea41(0x395)]-_0x420ccc),_0x3018d4&&(_0x1b2861=this[_0x52ea41(0x11d)]-_0x1b2861);let _0x1d6d22=this[_0x52ea41(0x102)]['calcAdjValue'](_0xc1b4ad,{'x':_0x420ccc,'y':_0x1b2861},_0x2d7dc3,_0x52207,_0x3018d4),_0x1b50dc=_0x2d7dc3[_0x52ea41(0x363)]||_0x2d7dc3['gdRefY']||_0x2d7dc3['gdRefAng']||_0x2d7dc3[_0x52ea41(0x353)];_0x1b50dc!==void 0x0&&(this[_0x52ea41(0x102)][_0x52ea41(0x2f2)](_0x1b50dc,_0x1d6d22),this[_0x52ea41(0x102)][_0x52ea41(0x20a)]({'width':this[_0x52ea41(0x395)],'height':this[_0x52ea41(0x11d)]}),this[_0x52ea41(0x357)](_0x1cb453,_0x11a12a,_0x3b83cd,_0x1b50dc,_0x1d6d22),this[_0x52ea41(0x382)]=this[_0x52ea41(0x102)][_0x52ea41(0x217)](),this[_0x52ea41(0x302)]=this['_activeShapeModel'][_0x52ea41(0x2e3)](_0x44ab5a),this['_createControls'](),_0x110afe[_0x52ea41(0x37c)]());}),this[_0x9f1db5(0x37f)]=_0x4fe5de['onPointerUp$'][_0x9f1db5(0x1f2)]((_0x2ce3c6,_0x3ad566)=>{const _0x5cd1ff=_0x9f1db5;if(this[_0x5cd1ff(0x1ec)][_0x5cd1ff(0x320)](),this[_0x5cd1ff(0x37f)][_0x5cd1ff(0x320)](),_0x4fe5de[_0x5cd1ff(0x1c0)](),this[_0x5cd1ff(0x102)]){let _0x48ed14=this[_0x5cd1ff(0x102)][_0x5cd1ff(0x191)](),_0x3af76e={};for(let _0x5b1d98 of _0x48ed14){let _0x411d19=this['_activeShapeModel'][_0x5cd1ff(0x148)](_0x5b1d98);_0x411d19!==void 0x0&&(_0x3af76e[_0x5b1d98]=_0x411d19);}this[_0x5cd1ff(0x179)]['clipByShape'](_0x1cb453,_0x11a12a,_0x3b83cd,_0xa8ebdb,_0x3af76e);}this[_0x5cd1ff(0x302)]=void 0x0,this[_0x5cd1ff(0x102)]=void 0x0,this[_0x5cd1ff(0x19e)]=!0x1,_0x3ad566[_0x5cd1ff(0x37c)](),_0x4fe5de[_0x5cd1ff(0x342)]();}),_0x54659c[_0x9f1db5(0x37c)]();})));}[_0x524578(0x357)](_0x402e40,_0x51f93c,_0x202eef,_0x1fe352,_0x20b64c){const _0x4f14bd=_0x524578;let _0x12d64d=this[_0x4f14bd(0x3cd)][_0x4f14bd(0x18d)](_0x402e40);if(!_0x12d64d)return;let {scene:_0x1dedcf}=_0x12d64d,_0xcc364f=(0x0,a[_0x4f14bd(0x17a)])({'unitId':_0x402e40,'subUnitId':_0x51f93c,'drawingId':_0x202eef}),_0x2b4139=_0x1dedcf[_0x4f14bd(0x28f)](_0xcc364f);if(_0x2b4139 instanceof o[_0x4f14bd(0x205)]){var _0x9fe8ef;let _0x4f02fb=(_0x9fe8ef=_0x2b4139[_0x4f14bd(0x1f3)])==null?{}:_0x9fe8ef;_0x2b4139[_0x4f14bd(0x3c1)]({..._0x4f02fb,[_0x1fe352]:_0x20b64c}),_0x2b4139[_0x4f14bd(0x25e)](!0x0);}}[_0x524578(0x2d5)](){const _0x216c3f=_0x524578;let _0x2d49c0=this[_0x216c3f(0x139)][_0x216c3f(0x17d)](t['UniverInstanceType'][_0x216c3f(0x310)]);this['disposeWithMe'](_0x2d49c0[_0x216c3f(0x29c)]((0x0,i[_0x216c3f(0x170)])(_0x3674e6=>_0x3674e6?_0x3674e6[_0x216c3f(0x1e2)][_0x216c3f(0x29c)]((0x0,i['switchMap'])(_0x538505=>{const _0x23b103=_0x216c3f;if(!_0x538505)return i[_0x23b103(0x277)];let _0x3126c7=_0x3674e6[_0x23b103(0x249)](),_0x1033ee=this['_renderManagerService'][_0x23b103(0x18d)](_0x3126c7),_0x40d02d=_0x1033ee==null?void 0x0:_0x1033ee[_0x23b103(0x295)];return _0x40d02d?(0x0,i['of'])(_0x40d02d):i[_0x23b103(0x277)];})):i[_0x216c3f(0x277)]))['subscribe'](_0xf24ab2=>{const _0xdc4bc=_0x216c3f;let _0x55abb9=_0xf24ab2[_0xdc4bc(0x396)]();this[_0xdc4bc(0x1d1)](_0xf24ab2[_0xdc4bc(0x229)]['subscribeEvent'](()=>{const _0x5a731f=_0xdc4bc;this[_0x5a731f(0x3cc)]&&this[_0x5a731f(0x134)]();})),this[_0xdc4bc(0x1d1)](_0x55abb9[_0xdc4bc(0x2f8)][_0xdc4bc(0x38b)](_0x168854=>{const _0x530a25=_0xdc4bc;let {objects:_0xc3e070}=_0x168854;if(this['_createControls'](),_0xc3e070!==null&&_0xc3e070['size']===0x1){let _0x26eed0=_0xc3e070[_0x530a25(0x31c)]()[_0x530a25(0x241)]()[_0x530a25(0x25f)];_0x26eed0 instanceof o[_0x530a25(0x205)]&&_0x26eed0[_0x530a25(0x21b)]&&(this[_0x530a25(0x3cc)]=!0x0);}})),this['disposeWithMe'](_0x55abb9['changing$']['subscribe'](()=>{const _0x521560=_0xdc4bc;this[_0x521560(0x3cc)]&&this[_0x521560(0x134)]();})),this[_0xdc4bc(0x1d1)](_0xf24ab2[_0xdc4bc(0x33f)][_0xdc4bc(0x1f2)](()=>{const _0xeb3793=_0xdc4bc;this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this[_0xeb3793(0x2dc)]());})),this['disposeWithMe'](_0x55abb9[_0xdc4bc(0x398)][_0xdc4bc(0x38b)](()=>{const _0x2aa3d3=_0xdc4bc;if(this['_unitId']&&this[_0x2aa3d3(0x24b)]&&this[_0x2aa3d3(0x365)]){let _0x1fd12b=this['_getImagePrstGeom'](this[_0x2aa3d3(0x39d)],this[_0x2aa3d3(0x24b)],this['_activeImageId']);if(_0x1fd12b){var _0x29d36a,_0x363e33;let _0x5a6b61=this[_0x2aa3d3(0x10d)](this[_0x2aa3d3(0x39d)],this[_0x2aa3d3(0x24b)],this['_activeImageId']),_0xfc7e4e=(_0x5a6b61==null||(_0x29d36a=_0x5a6b61[_0x2aa3d3(0x38d)])==null?void 0x0:_0x29d36a[_0x2aa3d3(0x1af)])||0x0,_0x43a6b8=(_0x5a6b61==null||(_0x363e33=_0x5a6b61[_0x2aa3d3(0x38d)])==null?void 0x0:_0x363e33[_0x2aa3d3(0x1dc)])||0x0,_0x46af26=this[_0x2aa3d3(0x25b)](_0x1fd12b[_0x2aa3d3(0x21b)],_0xfc7e4e,_0x43a6b8,_0x1fd12b['adjustValues']);_0x46af26&&(this[_0x2aa3d3(0x382)]=_0x46af26[_0x2aa3d3(0x217)](),this[_0x2aa3d3(0x134)](),this[_0x2aa3d3(0x2dc)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x170897=_0x524578;this[_0x170897(0x1d1)](this[_0x170897(0x106)][_0x170897(0x107)][_0x170897(0x38b)](_0x408abb=>{const _0x244cfd=_0x170897;if(_0x408abb[_0x244cfd(0x355)]===0x1){let _0x1c524d=_0x408abb[0x0];if(_0x1c524d[_0x244cfd(0x232)]===t['DrawingTypeEnum'][_0x244cfd(0x244)]){let {unitId:_0x575872,subUnitId:_0x232746,drawingId:_0x4b570e}=_0x1c524d,_0x584715=this[_0x244cfd(0x3bd)](_0x575872,_0x232746,_0x4b570e);if(_0x584715){var _0x410699,_0x3f6990;this['_activeImageId']=_0x4b570e,this[_0x244cfd(0x39d)]=_0x575872,this[_0x244cfd(0x24b)]=_0x232746;let _0x263cd1=this[_0x244cfd(0x10d)](_0x575872,_0x232746,_0x4b570e),_0x30b0c2=(_0x263cd1==null||(_0x410699=_0x263cd1['transform'])==null?void 0x0:_0x410699[_0x244cfd(0x1af)])||0x0,_0x383b43=(_0x263cd1==null||(_0x3f6990=_0x263cd1[_0x244cfd(0x38d)])==null?void 0x0:_0x3f6990[_0x244cfd(0x1dc)])||0x0,_0x2b2085=this[_0x244cfd(0x25b)](_0x584715[_0x244cfd(0x21b)],_0x30b0c2,_0x383b43,_0x584715[_0x244cfd(0x13b)]);_0x2b2085&&(this['_activeAdjustPointList']=_0x2b2085[_0x244cfd(0x217)]()),this[_0x244cfd(0x134)](),this[_0x244cfd(0x2dc)](!0x0);}else this[_0x244cfd(0x119)]();}else this[_0x244cfd(0x119)]();}else this[_0x244cfd(0x119)]();})),this[_0x170897(0x1d1)](this[_0x170897(0x106)][_0x170897(0x151)][_0x170897(0x38b)](_0x4933b9=>{const _0x4f93d0=_0x170897;if(_0x4933b9[_0x4f93d0(0x355)]===0x1){let _0x9dffc4=_0x4933b9[0x0],_0x4a6ce9=this[_0x4f93d0(0x106)][_0x4f93d0(0x3a3)](_0x9dffc4);(_0x4a6ce9==null?void 0x0:_0x4a6ce9[_0x4f93d0(0x232)])===t['DrawingTypeEnum'][_0x4f93d0(0x244)]&&this[_0x4f93d0(0x365)]===_0x9dffc4[_0x4f93d0(0x167)]&&(this[_0x4f93d0(0x134)](),this[_0x4f93d0(0x2dc)](!0x0));}})),this[_0x170897(0x1d1)](this[_0x170897(0x106)][_0x170897(0x2e4)]['subscribe'](_0x5604f2=>{const _0x4152d1=_0x170897;for(let _0x1009bc of _0x5604f2)this[_0x4152d1(0x365)]===_0x1009bc[_0x4152d1(0x167)]&&this[_0x4152d1(0x119)]();}));}[_0x524578(0x119)](){const _0x1d5080=_0x524578;this[_0x1d5080(0x365)]=null,this[_0x1d5080(0x39d)]=null,this[_0x1d5080(0x24b)]=null,this[_0x1d5080(0x382)]=void 0x0,this[_0x1d5080(0x134)]();}};W=I([F(0x1,a[_0x524578(0x378)]),F(0x2,(0x0,t[_0x524578(0x34c)])(o[_0x524578(0x20f)])),F(0x3,t['IUniverInstanceService']),F(0x4,(0x0,t[_0x524578(0x34c)])(B))],W);let G=class extends t[_0x524578(0x239)]{constructor(_0x166c2b,_0x21e33a,_0x45b76d,_0x5ec668){const _0x5d7bda=_0x524578;super(),this[_0x5d7bda(0x139)]=_0x166c2b,this[_0x5d7bda(0x2cd)]=_0x21e33a,this[_0x5d7bda(0x37a)]=_0x45b76d,this[_0x5d7bda(0x13c)]=_0x5ec668,this[_0x5d7bda(0x326)]();}[_0x524578(0x326)](){const _0xd22066=_0x524578;this[_0xd22066(0x1d1)](this[_0xd22066(0x2cd)][_0xd22066(0x2d0)]({'getMutations':_0x4f9efc=>{const _0x369d9c=_0xd22066;if(_0x4f9efc['id']===n[_0x369d9c(0x256)]['id']){let _0x46cc99=(0x0,n[_0x369d9c(0x1cb)])(this[_0x369d9c(0x139)],_0x4f9efc[_0x369d9c(0x158)]);if(!_0x46cc99)return{'redos':[],'undos':[]};let {unitId:_0xeed27,subUnitId:_0x27693c}=_0x46cc99,_0xf1bb00=this[_0x369d9c(0x37a)][_0x369d9c(0x234)](_0xeed27,_0x27693c),_0x58adc6=Object[_0x369d9c(0x31c)](_0xf1bb00)[_0x369d9c(0x2ae)](_0x12c89b=>_0x12c89b[_0x369d9c(0x232)]===t[_0x369d9c(0x224)][_0x369d9c(0x1c6)]);if(_0x58adc6[_0x369d9c(0x355)]===0x0)return{'redos':[],'undos':[]};let _0x19a3fb=[],_0xa884=[];for(let _0x1ea8ee=0x0;_0x1ea8ee<_0x58adc6[_0x369d9c(0x355)];_0x1ea8ee++){let _0x3de1d5=_0x58adc6[_0x1ea8ee],_0x4ea9de=this['_sheetsShapeService'][_0x369d9c(0x333)](_0x3de1d5[_0x369d9c(0x2f9)],_0x3de1d5[_0x369d9c(0x1fa)],_0x3de1d5[_0x369d9c(0x167)]);if(!_0x4ea9de)continue;let {redo:_0x5e7efc,undo:_0x47d265,objects:_0x34314e}=this[_0x369d9c(0x37a)]['getBatchRemoveOp']([_0x3de1d5]);_0x19a3fb['push']({'id':e[_0x369d9c(0x1c8)]['id'],'params':{'unitId':_0xeed27,'subUnitId':_0x27693c,'shapeId':_0x3de1d5[_0x369d9c(0x167)]}}),_0x19a3fb[_0x369d9c(0x35a)]({'id':r[_0x369d9c(0x292)]['id'],'params':{'unitId':_0xeed27,'subUnitId':_0x27693c,'type':r[_0x369d9c(0x2c9)][_0x369d9c(0x225)],'op':_0x5e7efc,'objects':_0x34314e}}),_0xa884['push']({'id':r[_0x369d9c(0x292)]['id'],'params':{'unitId':_0xeed27,'subUnitId':_0x27693c,'type':r[_0x369d9c(0x2c9)][_0x369d9c(0x21e)],'op':_0x47d265,'objects':_0x34314e}}),_0xa884[_0x369d9c(0x35a)]({'id':e['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0xeed27,'subUnitId':_0x27693c,'shapeId':_0x3de1d5['drawingId'],'shapeType':_0x4ea9de[_0x369d9c(0x321)](),'shapeData':JSON['parse'](JSON['stringify'](_0x4ea9de[_0x369d9c(0x370)]()))}});}return{'redos':_0x19a3fb,'undos':_0xa884};}else{if(_0x4f9efc['id']===n[_0x369d9c(0x2f5)]['id']){let {unitId:_0x404275,subUnitId:_0x4570a5,targetSubUnitId:_0x5d66db}=_0x4f9efc[_0x369d9c(0x158)];if(!_0x404275||!_0x4570a5||!_0x5d66db)return{'redos':[],'undos':[]};let _0x4896e5=this['_sheetDrawingService'][_0x369d9c(0x234)](_0x404275,_0x4570a5),_0x477758=Object[_0x369d9c(0x31c)](_0x4896e5)['filter'](_0x270918=>_0x270918['drawingType']===t[_0x369d9c(0x224)][_0x369d9c(0x1c6)]);if(_0x477758['length']===0x0)return{'redos':[],'undos':[]};let _0x5617eb=[],_0x45df21=[];for(let _0x364ea1=0x0;_0x364ea1<_0x477758[_0x369d9c(0x355)];_0x364ea1++){let _0x31042a=_0x477758[_0x364ea1],_0x37a95b=this[_0x369d9c(0x13c)][_0x369d9c(0x333)](_0x31042a[_0x369d9c(0x2f9)],_0x31042a[_0x369d9c(0x1fa)],_0x31042a['drawingId']);if(!_0x37a95b)continue;let _0x27490f=(0x0,t[_0x369d9c(0x31a)])(),_0x44a586={..._0x31042a,'unitId':_0x404275,'subUnitId':_0x5d66db,'drawingId':_0x27490f},{redo:_0x41ec1d,undo:_0x9debfc,objects:_0x363c08}=this['_sheetDrawingService'][_0x369d9c(0x39f)]([_0x44a586]);_0x5617eb['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x404275,'subUnitId':_0x5d66db,'type':r[_0x369d9c(0x2c9)][_0x369d9c(0x21e)],'op':_0x41ec1d,'objects':_0x363c08}}),_0x5617eb[_0x369d9c(0x35a)]({'id':e[_0x369d9c(0x3c2)]['id'],'params':{'unitId':_0x404275,'subUnitId':_0x5d66db,'shapeId':_0x27490f,'shapeType':_0x37a95b[_0x369d9c(0x321)](),'shapeData':JSON[_0x369d9c(0x15d)](JSON['stringify'](_0x37a95b[_0x369d9c(0x370)]()))}}),_0x45df21[_0x369d9c(0x35a)]({'id':e[_0x369d9c(0x1c8)]['id'],'params':{'unitId':_0x404275,'subUnitId':_0x5d66db,'shapeId':_0x27490f}}),_0x45df21[_0x369d9c(0x35a)]({'id':r[_0x369d9c(0x292)]['id'],'params':{'unitId':_0x404275,'subUnitId':_0x5d66db,'type':r[_0x369d9c(0x2c9)][_0x369d9c(0x225)],'op':_0x9debfc,'objects':_0x363c08}});}return{'redos':_0x5617eb,'undos':_0x45df21};}}return{'redos':[],'undos':[]};}}));}};G=I([F(0x0,(0x0,t[_0x524578(0x34c)])(t[_0x524578(0x2b7)])),F(0x1,(0x0,t[_0x524578(0x34c)])(n[_0x524578(0x272)])),F(0x2,(0x0,t[_0x524578(0x34c)])(r[_0x524578(0x18a)])),F(0x3,(0x0,t[_0x524578(0x34c)])(e[_0x524578(0x2ac)]))],G);let K=class extends t[_0x524578(0x239)]{constructor(_0x514d85,_0x2607b1,_0x5748af,_0x323afa,_0xcbfce5){const _0x4518af=_0x524578;super(),this[_0x4518af(0x385)]=_0x514d85,this['_shapeTextEditingService']=_0x2607b1,this['_drawingManagerService']=_0x5748af,this['_contextService']=_0x323afa,this[_0x4518af(0x13c)]=_0xcbfce5,b(this,'_lastEditingShapeKey',null),this[_0x4518af(0x1d3)](),this[_0x4518af(0x1fd)](),this['_initEditingParams']();}[_0x524578(0x1d3)](){const _0x17c80b=_0x524578;let {scene:_0x31ba44}=this[_0x17c80b(0x385)];this[_0x17c80b(0x1d1)](_0x31ba44[_0x17c80b(0x1e3)]['subscribeEvent'](_0xc213e1=>{const _0x334e8e=_0x17c80b;let {offsetX:_0x505540,offsetY:_0x5bc247}=_0xc213e1,_0x853da3=_0x31ba44[_0x334e8e(0x220)](o['Vector2']['FromArray']([_0x505540,_0x5bc247]));if(_0x853da3 instanceof P){if((0x0,u[_0x334e8e(0x2fb)])(this[_0x334e8e(0x13c)]['getShapeType'](_0x853da3['unitId'],_0x853da3['subUnitId'],_0x853da3[_0x334e8e(0x2f4)])))return;this[_0x334e8e(0x36f)][_0x334e8e(0x35b)]({'visible':!0x0,'unitId':_0x853da3[_0x334e8e(0x2f9)],'subUnitId':_0x853da3[_0x334e8e(0x1fa)],'shapeId':_0x853da3[_0x334e8e(0x2f4)],'shapeKey':_0x853da3[_0x334e8e(0x11e)]});}}));}[_0x524578(0x1fd)](){const _0x508ecd=_0x524578;this[_0x508ecd(0x1d1)](this['_drawingManagerService']['focus$'][_0x508ecd(0x38b)](_0x1780e2=>{const _0x5921ce=_0x508ecd;if(_0x1780e2[_0x5921ce(0x355)]===0x1){let _0x1571a5=_0x1780e2[0x0],_0x44438b=this['_drawingManagerService'][_0x5921ce(0x3a3)](_0x1571a5);if((_0x44438b==null?void 0x0:_0x44438b[_0x5921ce(0x232)])===t[_0x5921ce(0x224)][_0x5921ce(0x1c6)]){let _0x42e214=this[_0x5921ce(0x36f)]['getEditing']();if((_0x42e214==null?void 0x0:_0x42e214[_0x5921ce(0x2f4)])===_0x1571a5['drawingId']&&_0x42e214[_0x5921ce(0x331)])return;(0x0,u[_0x5921ce(0x2fb)])(this['_sheetsShapeService'][_0x5921ce(0x321)](_0x1571a5[_0x5921ce(0x2f9)],_0x1571a5[_0x5921ce(0x1fa)],_0x1571a5['drawingId']))&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x5921ce(0x36f)][_0x5921ce(0x28c)]()&&(this[_0x5921ce(0x36f)][_0x5921ce(0x267)](!0x0),requestAnimationFrame(()=>{const _0x292fb2=_0x5921ce;this['_shapeTextEditingService'][_0x292fb2(0x35b)](null);}));}else this[_0x5921ce(0x36f)][_0x5921ce(0x28c)]()&&(this['_shapeTextEditingService'][_0x5921ce(0x267)](!0x0),requestAnimationFrame(()=>{const _0x17dba5=_0x5921ce;this[_0x17dba5(0x36f)][_0x17dba5(0x35b)](null);}));})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x508ecd(0x38b)](_0x2d7510=>{const _0x1e0ff1=_0x508ecd;let _0x30a296=this[_0x1e0ff1(0x36f)]['getEditing']();_0x30a296&&_0x2d7510[_0x1e0ff1(0x2aa)](_0x47ed89=>_0x47ed89[_0x1e0ff1(0x167)]===_0x30a296[_0x1e0ff1(0x2f4)])&&this[_0x1e0ff1(0x36f)][_0x1e0ff1(0x35b)](null);}));}[_0x524578(0x3a4)](){const _0x408f79=_0x524578;this['disposeWithMe'](this[_0x408f79(0x36f)]['editingParams$'][_0x408f79(0x38b)](_0x253b11=>{const _0x30f494=_0x408f79;let {scene:_0x445e5e}=this[_0x30f494(0x385)];if(this['_lastEditingShapeKey']){let _0x58d3b2=_0x445e5e[_0x30f494(0x228)](this[_0x30f494(0x300)]);_0x58d3b2&&_0x58d3b2['setEditing'](!0x1);}if(_0x253b11){let _0x18c708=!!_0x253b11['visible'],_0x53fd06=_0x445e5e[_0x30f494(0x228)](_0x253b11[_0x30f494(0x2a6)]);_0x53fd06&&(_0x53fd06['setEditing'](_0x18c708),this[_0x30f494(0x300)]=_0x253b11[_0x30f494(0x2a6)]),this[_0x30f494(0x178)]['setContextValue'](t['FOCUSING_SHAPE_TEXT_EDITOR'],_0x18c708);}else this[_0x30f494(0x300)]=null,this['_contextService'][_0x30f494(0x2c3)](t[_0x30f494(0x1f5)],!0x1);}));}};K=I([F(0x1,(0x0,t['Inject'])(x)),F(0x2,a[_0x524578(0x378)]),F(0x3,t[_0x524578(0x156)]),F(0x4,(0x0,t['Inject'])(e[_0x524578(0x2ac)]))],K);function Ae(){const _0x4b5853=_0x524578;return(0x0,m[_0x4b5853(0x2fe)])(p[_0x4b5853(0x1cd)],{});}let q=class extends p[_0x524578(0x308)]{constructor(_0x4309c5,_0x2e4b53,_0x5b6793,_0x1c3dfd,_0x420970){const _0x144a58=_0x524578;super(_0x4309c5,_0x2e4b53,_0x5b6793,_0x1c3dfd,_0x420970,{'componentKey':_0x144a58(0x3b5),'editorUnitId':te,'toolbarComponent':Ae});}};q=I([F(0x1,(0x0,t[_0x524578(0x34c)])(f[_0x524578(0x22d)])),F(0x2,(0x0,t[_0x524578(0x34c)])(s['DocCanvasPopManagerService'])),F(0x3,(0x0,t[_0x524578(0x34c)])(l[_0x524578(0x10b)])),F(0x4,(0x0,t[_0x524578(0x34c)])(s['DocSelectionRenderService']))],q);let J=class extends t[_0x524578(0x239)]{constructor(_0x52f1f8,_0x2c8bbe,_0x487afe,_0x146431,_0x5ca166,_0x22ef62){const _0x2c8923=_0x524578;super(),this[_0x2c8923(0x39e)]=_0x52f1f8,this[_0x2c8923(0x3cd)]=_0x2c8bbe,this[_0x2c8923(0x106)]=_0x487afe,this['_currentUniverService']=_0x146431,this[_0x2c8923(0x2e1)]=_0x5ca166,this[_0x2c8923(0x288)]=_0x22ef62,this['_initialize']();}[_0x524578(0x1ca)](){const _0xcb65d7=_0x524578;this[_0xcb65d7(0x260)](),this[_0xcb65d7(0x2ed)](),this[_0xcb65d7(0x2d9)]();}['_drawingAddListener'](){const _0xa09174=_0x524578;this[_0xa09174(0x1d1)](this[_0xa09174(0x106)][_0xa09174(0x183)][_0xa09174(0x38b)](_0x416ee3=>{this['_insertShapes'](_0x416ee3);}));}[_0x524578(0x2ed)](){const _0x6fb450=_0x524578;this[_0x6fb450(0x1d1)](this['_commandService'][_0x6fb450(0x2bf)](_0x265ee2=>{const _0x29d14f=_0x6fb450;if(_0x265ee2['id']===e[_0x29d14f(0x3c2)]['id']){var _0x195691;let {unitId:_0x7b1b0e,subUnitId:_0x14fefa,shapeId:_0x5675b5}=_0x265ee2[_0x29d14f(0x158)],_0x30cd5e=this[_0x29d14f(0x127)](_0x7b1b0e);if(_0x30cd5e==null)return;let {scene:_0xa1118c}=_0x30cd5e,_0x1e41e8=(0x0,a['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x7b1b0e,'subUnitId':_0x14fefa,'drawingId':_0x5675b5}),_0x28b990=_0xa1118c[_0x29d14f(0x228)](_0x1e41e8);if(!((_0x195691=this['_renderManagerService'][_0x29d14f(0x18d)](_0x7b1b0e))!=null&&_0x195691['with'](c[_0x29d14f(0x1e6)])['getSkeleton'](_0x14fefa)))return!0x1;if(_0x28b990)return;this[_0x29d14f(0x2a5)]([{'unitId':_0x7b1b0e,'subUnitId':_0x14fefa,'drawingId':_0x5675b5}]);}}));}[_0x524578(0x2d9)](){const _0x3aaf5a=_0x524578;this[_0x3aaf5a(0x1d1)](this[_0x3aaf5a(0x106)][_0x3aaf5a(0x151)][_0x3aaf5a(0x38b)](_0x551bc3=>{const _0xa11472=_0x3aaf5a;_0x551bc3[_0xa11472(0x280)](_0x35d23f=>{const _0x208d89=_0xa11472;let {unitId:_0x424832,subUnitId:_0x469ad5,drawingId:_0x2380b1}=_0x35d23f,_0x23bd0f=this[_0x208d89(0x106)][_0x208d89(0x3a3)](_0x35d23f);if(_0x23bd0f==null)return;let {transform:_0x52b153,drawingType:_0x351f7d,srcRect:_0x24ca39,prstGeom:_0x1a728f}=_0x23bd0f;if(_0x351f7d!==t['DrawingTypeEnum'][_0x208d89(0x1c6)])return;let _0x430d44=this[_0x208d89(0x127)](_0x424832);if(_0x430d44==null)return;let {scene:_0x511215,transformer:_0xb811b9}=_0x430d44;if(_0x52b153==null)return!0x0;let _0x100033=(0x0,a[_0x208d89(0x17a)])({'unitId':_0x424832,'subUnitId':_0x469ad5,'drawingId':_0x2380b1}),_0xad9ccc=_0x511215[_0x208d89(0x228)](_0x100033);if(_0xad9ccc==null)return!0x0;_0xad9ccc[_0x208d89(0x26a)](_0x24ca39),_0xad9ccc[_0x208d89(0x2e0)](_0x1a728f);});}));}[_0x524578(0x2a5)](_0x44b9c3){_0x44b9c3['forEach'](async _0x1d0736=>{const _0x227d7a=_0x317d;var _0x5b0c7d;let {unitId:_0x41791f,subUnitId:_0x3e97b8}=_0x1d0736,_0x3be214=this[_0x227d7a(0x127)](_0x41791f),_0x5f3fec=(_0x5b0c7d=(0x0,d['getCurrentUnitInfo'])(this['_currentUniverService'],_0x41791f))==null?void 0x0:_0x5b0c7d[_0x227d7a(0x1fa)];if(_0x3be214==null||_0x5f3fec!==_0x3e97b8)return;let _0x26fbde=this[_0x227d7a(0x106)][_0x227d7a(0x3a3)](_0x1d0736);if(_0x26fbde!=null&&_0x26fbde['drawingType']===t[_0x227d7a(0x224)][_0x227d7a(0x1c6)]){if((0x0,u[_0x227d7a(0x2fb)])((_0x26fbde[_0x227d7a(0x298)]||{})[_0x227d7a(0x287)])){let _0x21d340=_0x26fbde[_0x227d7a(0x38d)];_0x21d340&&(_0x26fbde[_0x227d7a(0x38d)]={..._0x21d340,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x227d7a(0x288)][_0x227d7a(0x117)](_0x26fbde,_0x3be214[_0x227d7a(0x295)]),this['_drawingManagerService']['refreshTransform']([_0x26fbde]);}});}['_getSceneAndTransformerByDrawingSearch'](_0xdf155a){const _0x29959d=_0x524578;if(_0xdf155a==null)return;let _0x36397f=this[_0x29959d(0x3cd)][_0x29959d(0x18d)](_0xdf155a),_0x48b7df=_0x36397f==null?void 0x0:_0x36397f[_0x29959d(0x295)];return _0x48b7df==null?null:{'scene':_0x48b7df,'transformer':_0x48b7df['getTransformerByCreate']()};}};J=I([F(0x0,t['ICommandService']),F(0x1,o['IRenderManagerService']),F(0x2,a['IDrawingManagerService']),F(0x3,t[_0x524578(0x2b7)]),F(0x4,(0x0,t[_0x524578(0x34c)])(d[_0x524578(0x181)])),F(0x5,(0x0,t['Inject'])(L))],J);const je={'normal':{'fill':u[_0x524578(0x32c)]['cxnPointFill'],'stroke':u['ShapeDefaultConfig'][_0x524578(0x1db)],'strokeWidth':u[_0x524578(0x32c)][_0x524578(0x23c)]},'highlighted':{'fill':'#4285f4','stroke':_0x524578(0x1b0),'strokeWidth':0x2}};var Me=class extends o[_0x524578(0x15f)]{constructor(_0x3b7ff7,_0x3b8b58){const _0x1d470f=_0x524578;super(_0x3b7ff7,_0x3b8b58),b(this,_0x1d470f(0x28b),''),b(this,_0x1d470f(0x172),-0x1),b(this,'_unitId',''),b(this,_0x1d470f(0x24b),''),b(this,_0x1d470f(0x155),!0x1),_0x3b8b58&&this[_0x1d470f(0x12f)](_0x3b8b58);}['getConnectionInfo'](){const _0x2c842a=_0x524578;return{'unitId':this['_unitId'],'subUnitId':this[_0x2c842a(0x24b)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x2c842a(0x172)]};}[_0x524578(0x2b8)](_0x36bb33){const _0x4da16d=_0x524578;this['_isHighlighted']!==_0x36bb33&&(this[_0x4da16d(0x155)]=_0x36bb33,this[_0x4da16d(0x25e)](!0x0));}[_0x524578(0x20b)](){const _0x5e8dfc=_0x524578;return this[_0x5e8dfc(0x155)];}[_0x524578(0x12f)](_0x3460d4){const _0x19b42c=_0x524578;var _0x470875,_0x43dfaf;_0x3460d4[_0x19b42c(0x349)]!==void 0x0&&(this[_0x19b42c(0x28b)]=_0x3460d4[_0x19b42c(0x349)]),_0x3460d4['cxnIndex']!==void 0x0&&(this[_0x19b42c(0x172)]=_0x3460d4[_0x19b42c(0x231)]),_0x3460d4[_0x19b42c(0x2f9)]!==void 0x0&&(this['_unitId']=_0x3460d4[_0x19b42c(0x2f9)]),_0x3460d4['subUnitId']!==void 0x0&&(this[_0x19b42c(0x24b)]=_0x3460d4[_0x19b42c(0x1fa)]),_0x3460d4[_0x19b42c(0x20b)]!==void 0x0&&(this[_0x19b42c(0x155)]=_0x3460d4[_0x19b42c(0x20b)]),this['transformByState']({'width':(_0x470875=_0x3460d4[_0x19b42c(0x1af)])==null?u[_0x19b42c(0x32c)][_0x19b42c(0x1f9)]*0x2:_0x470875,'height':(_0x43dfaf=_0x3460d4[_0x19b42c(0x1dc)])==null?u[_0x19b42c(0x32c)]['cxnPointRadius']*0x2:_0x43dfaf});}[_0x524578(0x13e)](_0x17067d){const _0x39a9e0=_0x524578;let _0x12f110=this[_0x39a9e0(0x155)]?je[_0x39a9e0(0x374)]:je[_0x39a9e0(0x131)];o[_0x39a9e0(0x315)][_0x39a9e0(0x296)](_0x17067d,{'radius':u['ShapeDefaultConfig'][_0x39a9e0(0x1f9)],'fill':_0x12f110[_0x39a9e0(0x2c1)],'stroke':_0x12f110['stroke'],'strokeWidth':_0x12f110['strokeWidth'],'evented':!0x0});}};let Y=class extends t[_0x524578(0x239)]{constructor(_0x5e3c4d,_0x542f47,_0x59d38d,_0x41c490){const _0x5b4453=_0x524578;super(),this[_0x5b4453(0x385)]=_0x5e3c4d,this['_renderManagerService']=_0x542f47,this[_0x5b4453(0x106)]=_0x59d38d,this[_0x5b4453(0x13c)]=_0x41c490,b(this,_0x5b4453(0x1aa),[]),b(this,_0x5b4453(0x24f),null),b(this,_0x5b4453(0x28a),-0x1),b(this,_0x5b4453(0x10e),null),b(this,_0x5b4453(0x39d),''),b(this,'_subUnitId',''),b(this,_0x5b4453(0x30e),null);}[_0x524578(0x2ca)](_0x2ba189,_0x49b3e8,_0x1a71b6,_0x255eb3){const _0x249e3b=_0x524578;this['_currentScene']=_0x2ba189,this[_0x249e3b(0x39d)]=_0x49b3e8,this[_0x249e3b(0x24b)]=_0x1a71b6,this[_0x249e3b(0x30e)]=_0x255eb3;}[_0x524578(0x32a)](_0x286ebc){const _0x2f3584=_0x524578;if(!this['_currentScene'])return null;let _0x5ea888=this[_0x2f3584(0x104)](_0x286ebc);return _0x5ea888?(this[_0x2f3584(0x24f)]!==_0x5ea888[_0x2f3584(0x2f4)]&&(this['_clearConnectionSites'](),this[_0x2f3584(0x218)](_0x5ea888['shapeId'],_0x5ea888['shapeModel']),this[_0x2f3584(0x24f)]=_0x5ea888[_0x2f3584(0x2f4)]),this[_0x2f3584(0x24d)](_0x286ebc)):(this[_0x2f3584(0x24f)]!==null&&(this[_0x2f3584(0x26d)](),this[_0x2f3584(0x24f)]=null),null);}[_0x524578(0x32d)](){const _0x9a6e20=_0x524578;this[_0x9a6e20(0x26d)](),this[_0x9a6e20(0x10e)]=null,this[_0x9a6e20(0x24f)]=null,this[_0x9a6e20(0x28a)]=-0x1,this[_0x9a6e20(0x30e)]=null;}[_0x524578(0x377)](){const _0x5a41ee=_0x524578;return this['_activeTargetShapeId']===null||this[_0x5a41ee(0x28a)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x5a41ee(0x28a)]};}[_0x524578(0x104)](_0x1d6f08){const _0x2a1a2e=_0x524578;let _0x560486=this[_0x2a1a2e(0x106)][_0x2a1a2e(0x234)](this[_0x2a1a2e(0x39d)],this[_0x2a1a2e(0x24b)]);for(let _0x2a7ddc of Object[_0x2a1a2e(0x3ca)](_0x560486)){if(_0x2a7ddc===this[_0x2a1a2e(0x30e)]||_0x560486[_0x2a7ddc][_0x2a1a2e(0x232)]!==t[_0x2a1a2e(0x224)]['DRAWING_SHAPE'])continue;let _0x12ef5f=this[_0x2a1a2e(0x13c)][_0x2a1a2e(0x333)](this[_0x2a1a2e(0x39d)],this[_0x2a1a2e(0x24b)],_0x2a7ddc);if(!_0x12ef5f||(0x0,u[_0x2a1a2e(0x2fb)])(_0x12ef5f[_0x2a1a2e(0x321)]())||_0x12ef5f[_0x2a1a2e(0x390)]()[_0x2a1a2e(0x355)]===0x0||!this[_0x2a1a2e(0x10e)])continue;let _0x3771db=(0x0,a[_0x2a1a2e(0x17a)])({'unitId':this[_0x2a1a2e(0x39d)],'subUnitId':this[_0x2a1a2e(0x24b)],'drawingId':_0x2a7ddc}),_0x55ac16=this['_currentScene']['getObjectIncludeInGroup'](_0x3771db);if(!_0x55ac16)continue;let {left:_0x764442,top:_0x4d615d,width:_0x44bda9,height:_0xe99888}=_0x55ac16[_0x2a1a2e(0x373)](),_0xae4784=_0x764442+_0x44bda9/0x2,_0x3869db=_0x4d615d+_0xe99888/0x2,_0x497a30=_0x55ac16[_0x2a1a2e(0x38d)]['getMatrix'](),_0x137047=new o[(_0x2a1a2e(0x29f))]([_0x497a30[0x0],_0x497a30[0x1],_0x497a30[0x2],_0x497a30[0x3],_0xae4784,_0x3869db]),_0x5ca048=_0x55ac16[_0x2a1a2e(0xff)](),_0x430ea7=(_0x55ac16[_0x2a1a2e(0x2e9)]&&(_0x5ca048==null?void 0x0:_0x5ca048[_0x2a1a2e(0x2fa)])===o[_0x2a1a2e(0x1f7)][_0x2a1a2e(0x28e)]?_0x5ca048[_0x2a1a2e(0x29a)][_0x2a1a2e(0x198)](_0x137047):_0x137047)[_0x2a1a2e(0x1d5)]()['applyPoint'](_0x1d6f08),_0x572ca4=_0x44bda9/0x2,_0x4f1ff1=_0xe99888/0x2;if(_0x430ea7['x']>=-_0x572ca4-0x5&&_0x430ea7['x']<=_0x572ca4+0x5&&_0x430ea7['y']>=-_0x4f1ff1-0x5&&_0x430ea7['y']<=_0x4f1ff1+0x5)return{'shapeId':_0x2a7ddc,'shapeModel':_0x12ef5f};}return null;}[_0x524578(0x218)](_0x2fcd1e,_0x5618ed){const _0x3320ca=_0x524578;if(!this[_0x3320ca(0x10e)])return;let _0x5d4cb6=(0x0,a[_0x3320ca(0x17a)])({'unitId':this[_0x3320ca(0x39d)],'subUnitId':this[_0x3320ca(0x24b)],'drawingId':_0x2fcd1e}),_0x18b430=this['_currentScene'][_0x3320ca(0x228)](_0x5d4cb6);if(!_0x18b430)return;let {left:_0x12452e,top:_0x2f3e7d,width:_0x3b942c,height:_0x3d9ab5}=_0x18b430['getRealBound'](),_0x24287a=_0x12452e+_0x3b942c/0x2,_0x249f90=_0x2f3e7d+_0x3d9ab5/0x2,_0x2f4ddc=_0x18b430[_0x3320ca(0x38d)][_0x3320ca(0x3c6)](),_0x1d32c6=new o[(_0x3320ca(0x29f))]([_0x2f4ddc[0x0],_0x2f4ddc[0x1],_0x2f4ddc[0x2],_0x2f4ddc[0x3],_0x24287a,_0x249f90]),_0x3217da=_0x18b430[_0x3320ca(0xff)](),_0x30e63c=_0x18b430['isInGroup']&&(_0x3217da==null?void 0x0:_0x3217da['classType'])===o[_0x3320ca(0x1f7)][_0x3320ca(0x28e)]?_0x3217da[_0x3320ca(0x29a)][_0x3320ca(0x198)](_0x1d32c6):_0x1d32c6;_0x5618ed[_0x3320ca(0x20a)]({'width':_0x3b942c,'height':_0x3d9ab5});let _0x410729=_0x5618ed[_0x3320ca(0x390)]();for(let _0x45b791 of _0x410729){let _0x67d9f2=_0x45b791['x']-_0x3b942c/0x2,_0x15c427=_0x45b791['y']-_0x3d9ab5/0x2,_0x10a562=_0x30e63c['applyPoint']({'x':_0x67d9f2,'y':_0x15c427}),_0x3196e7=_0x10a562['x'],_0x356b6a=_0x10a562['y'],_0x3d00c4=new Me(_0x3320ca(0x2eb)+_0x2fcd1e+'-'+_0x45b791[_0x3320ca(0x2db)],{'left':_0x3196e7-u[_0x3320ca(0x32c)][_0x3320ca(0x1f9)],'top':_0x356b6a-u[_0x3320ca(0x32c)]['cxnPointRadius'],'targetShapeId':_0x2fcd1e,'cxnIndex':_0x45b791[_0x3320ca(0x2db)],'unitId':this[_0x3320ca(0x39d)],'subUnitId':this[_0x3320ca(0x24b)],'width':u[_0x3320ca(0x32c)]['cxnPointRadius']*0x2,'height':u[_0x3320ca(0x32c)][_0x3320ca(0x1f9)]*0x2,'zIndex':o[_0x3320ca(0x3bc)]+0x2,'evented':!0x1});this[_0x3320ca(0x1aa)][_0x3320ca(0x35a)](_0x3d00c4),this['_currentScene'][_0x3320ca(0x2b4)](_0x3d00c4,o[_0x3320ca(0x3bc)]+0x2);}}[_0x524578(0x24d)](_0x40e40d){const _0xe0b442=_0x524578;let _0x4250da=null,_0xa0f1c6=0x1/0x0,_0x19fa90=null;for(let _0x534c78 of this[_0xe0b442(0x1aa)]){let _0xe1cec8=_0x534c78[_0xe0b442(0x184)]+u[_0xe0b442(0x32c)][_0xe0b442(0x1f9)],_0x595276=_0x534c78[_0xe0b442(0x122)]+u['ShapeDefaultConfig']['cxnPointRadius'],_0x5a1451=_0x40e40d['x']-_0xe1cec8,_0x21e3e4=_0x40e40d['y']-_0x595276,_0x2ce8a8=Math[_0xe0b442(0x22e)](_0x5a1451*_0x5a1451+_0x21e3e4*_0x21e3e4);_0x2ce8a8<_0xa0f1c6&&(_0xa0f1c6=_0x2ce8a8,_0x4250da=_0x534c78,_0x19fa90={'x':_0xe1cec8,'y':_0x595276});}let _0x47aa38=_0xa0f1c6<=0xa&&_0x4250da?_0x4250da[_0xe0b442(0x1f8)]()['cxnIndex']:-0x1;if(_0x47aa38!==this[_0xe0b442(0x28a)]){for(let _0x35a9e1 of this[_0xe0b442(0x1aa)]){let _0x20bca2=_0x35a9e1[_0xe0b442(0x1f8)]();_0x35a9e1['setHighlighted'](_0x20bca2[_0xe0b442(0x231)]===_0x47aa38);}this[_0xe0b442(0x28a)]=_0x47aa38;}if(_0xa0f1c6<=0xa&&_0x4250da&&_0x19fa90){let _0x9e1af7=_0x4250da[_0xe0b442(0x1f8)](),_0x57c184=this[_0xe0b442(0x262)](_0x9e1af7[_0xe0b442(0x2f4)],_0x9e1af7['cxnIndex']);return{'shapeId':_0x9e1af7[_0xe0b442(0x2f4)],'cxnIndex':_0x9e1af7[_0xe0b442(0x231)],'unitId':_0x9e1af7[_0xe0b442(0x2f9)],'subUnitId':_0x9e1af7[_0xe0b442(0x1fa)],'worldPoint':_0x19fa90,'angle':_0x57c184};}return null;}[_0x524578(0x262)](_0x515854,_0x290fdb){const _0x265729=_0x524578;let _0x2ebacc=this[_0x265729(0x13c)]['getShapeModel'](this[_0x265729(0x39d)],this[_0x265729(0x24b)],_0x515854);if(!_0x2ebacc)return 0x0;let _0x5910c5=this[_0x265729(0x106)][_0x265729(0x3a3)]({'unitId':this[_0x265729(0x39d)],'subUnitId':this[_0x265729(0x24b)],'drawingId':_0x515854});if(!(_0x5910c5!=null&&_0x5910c5[_0x265729(0x38d)]))return 0x0;let {width:_0x1ffed5=0x0,height:_0x33e81c=0x0,flipX:_0x1f69fa=!0x1,flipY:_0x3c80a3=!0x1}=_0x5910c5['transform'];_0x2ebacc[_0x265729(0x20a)]({'width':_0x1ffed5,'height':_0x33e81c});let _0x5e1ed4=_0x2ebacc[_0x265729(0x390)]()[_0x265729(0x16b)](_0x4978d3=>_0x4978d3[_0x265729(0x2db)]===_0x290fdb);if(!_0x5e1ed4)return 0x0;let _0x440c0f=_0x5e1ed4[_0x265729(0x1eb)]/0xea60;return _0x1f69fa&&(_0x440c0f=0xb4-_0x440c0f),_0x3c80a3&&(_0x440c0f=-_0x440c0f),_0x440c0f=(_0x440c0f%0x168+0x168)%0x168,_0x440c0f;}[_0x524578(0x26d)](){const _0x5d67ca=_0x524578;for(let _0x187bb4 of this[_0x5d67ca(0x1aa)])_0x187bb4[_0x5d67ca(0x3bb)]();this[_0x5d67ca(0x1aa)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0xc8a259=_0x524578;this[_0xc8a259(0x26d)](),super['dispose']();}};Y=I([F(0x1,(0x0,t['Inject'])(o['IRenderManagerService'])),F(0x2,(0x0,t[_0x524578(0x34c)])(a[_0x524578(0x378)])),F(0x3,(0x0,t[_0x524578(0x34c)])(e[_0x524578(0x2ac)]))],Y);let X=class extends t[_0x524578(0x239)]{constructor(_0x3213e8,_0x129592,_0x27260b,_0x167668,_0x231341){const _0xb0c06b=_0x524578;super(),this['_sheetSkeletonService']=_0x3213e8,this[_0xb0c06b(0x31f)]=_0x129592,this[_0xb0c06b(0x37a)]=_0x27260b,this['_shapeService']=_0x167668,this['_groupCopyPasteController']=_0x231341,b(this,_0xb0c06b(0x327),void 0x0),this[_0xb0c06b(0xfe)](),this[_0xb0c06b(0x176)]();}get[_0x524578(0x160)](){const _0xfa95b3=_0x524578;return this['_sheetDrawingService'][_0xfa95b3(0x39c)]();}['_registerGroupFeaturePasteHook'](){const _0x4ad14e=_0x524578;this[_0x4ad14e(0x345)]['registerFeaturePasteHook'](({fromUnitId:_0x3e67c3,fromSubUnitId:_0x199783,toUnitId:_0x221082,toSubUnitId:_0x29bacf,idMap:_0x465453})=>{const _0x4a0181=_0x4ad14e;let _0x5e67aa=[],_0xdfaf6e=[];for(let [_0x1ebef7,_0x1a2d0d]of _0x465453[_0x4a0181(0x391)]()){let _0x11268e=this[_0x4a0181(0x383)][_0x4a0181(0x333)](_0x3e67c3,_0x199783,_0x1ebef7);if(!_0x11268e)continue;let _0x3d3b3a=_0x11268e[_0x4a0181(0x321)](),_0x43c415=JSON[_0x4a0181(0x15d)](JSON['stringify'](_0x11268e[_0x4a0181(0x370)]()));if(_0x43c415[_0x4a0181(0x2a7)]){var _0x5bca0e,_0x499987;let _0xd531d9=(_0x5bca0e=_0x43c415['relation'][_0x4a0181(0x3a9)])==null?void 0x0:_0x5bca0e[_0x4a0181(0x2f4)],_0x913520=(_0x499987=_0x43c415[_0x4a0181(0x2a7)]['to'])==null?void 0x0:_0x499987[_0x4a0181(0x2f4)],_0x2a0ffd=_0xd531d9?_0x465453['has'](_0xd531d9):!0x0,_0x2ff586=_0x913520?_0x465453[_0x4a0181(0xfb)](_0x913520):!0x0;_0x2a0ffd&&_0xd531d9&&_0x43c415['relation'][_0x4a0181(0x3a9)]?_0x43c415[_0x4a0181(0x2a7)][_0x4a0181(0x3a9)]={..._0x43c415[_0x4a0181(0x2a7)][_0x4a0181(0x3a9)],'shapeId':_0x465453[_0x4a0181(0x109)](_0xd531d9)}:_0x43c415[_0x4a0181(0x2a7)]['from']=void 0x0,_0x2ff586&&_0x913520&&_0x43c415[_0x4a0181(0x2a7)]['to']?_0x43c415[_0x4a0181(0x2a7)]['to']={..._0x43c415[_0x4a0181(0x2a7)]['to'],'shapeId':_0x465453['get'](_0x913520)}:_0x43c415[_0x4a0181(0x2a7)]['to']=void 0x0;}_0x5e67aa[_0x4a0181(0x35a)]({'id':e[_0x4a0181(0x3c2)]['id'],'params':{'unitId':_0x221082,'subUnitId':_0x29bacf,'shapeId':_0x1a2d0d,'shapeType':_0x3d3b3a,'shapeData':_0x43c415}}),_0xdfaf6e[_0x4a0181(0x35a)]({'id':e[_0x4a0181(0x1c8)]['id'],'params':{'unitId':_0x221082,'subUnitId':_0x29bacf,'shapeId':_0x1a2d0d}});}return{'redos':_0x5e67aa,'undos':_0xdfaf6e};});}['_initCopyPaste'](){const _0x2a6a3d=_0x524578;this['disposeWithMe'](this[_0x2a6a3d(0x31f)][_0x2a6a3d(0x270)]({'id':_0x2a6a3d(0x1b9),'onBeforeCopy':(_0x3afaa7,_0x41739c,_0x21f281,_0x5425a4)=>{const _0x5c20c5=_0x2a6a3d;this[_0x5c20c5(0x327)]=null;let _0x50f866=this[_0x5c20c5(0x160)];if(_0x50f866[_0x5c20c5(0x355)]){let _0x499464=_0x50f866[_0x5c20c5(0x2ae)](_0x211532=>_0x211532[_0x5c20c5(0x232)]===t[_0x5c20c5(0x224)][_0x5c20c5(0x1c6)]);if(_0x499464['length']===0x0)return;this[_0x5c20c5(0x327)]={'unitId':_0x3afaa7,'subUnitId':_0x41739c,'copyType':_0x5425a4,'drawings':_0x499464};}else this[_0x5c20c5(0x2ce)](_0x3afaa7,_0x41739c,_0x21f281,_0x5425a4);},'onPasteCells':(_0x8bbb17,_0x3c3a3b,_0x5830ad,_0x4fb5af)=>{const _0x57c884=_0x2a6a3d;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x319e3a}=_0x4fb5af;return _0x319e3a===c[_0x57c884(0xfd)][_0x57c884(0x3a8)]?this[_0x57c884(0x16e)](_0x3c3a3b,this[_0x57c884(0x327)]['copyType']===c[_0x57c884(0x2e5)]['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xd848f2=>this[_0x2a6a3d(0x327)]?this['_generatePasteMutations'](_0xd848f2,this[_0x2a6a3d(0x327)][_0x2a6a3d(0x362)]===c[_0x2a6a3d(0x2e5)][_0x2a6a3d(0x195)]):{'redos':[],'undos':[]}}));}[_0x524578(0x2ce)](_0x435cbf,_0x592054,_0x5c956a,_0x1877a6){const _0x4e1af8=_0x524578;let _0x298732=this[_0x4e1af8(0x34f)][_0x4e1af8(0x3ba)](_0x435cbf,_0x592054);if(!_0x298732)return;let _0x20b4da=(0x0,n[_0x4e1af8(0x37b)])(_0x298732,_0x5c956a);if(!_0x20b4da)return;let {startX:_0xf942f8,endX:_0x4c971b,startY:_0x5826ec,endY:_0x4c7693}=_0x20b4da,_0x944b32=this[_0x4e1af8(0x37a)][_0x4e1af8(0x234)](_0x435cbf,_0x592054),_0x129666=this[_0x4e1af8(0x160)]['slice']();for(let [_0x5acefa,_0x5c8edf]of Object[_0x4e1af8(0x391)](_0x944b32)){if(_0x5c8edf['drawingType']!==t[_0x4e1af8(0x224)][_0x4e1af8(0x1c6)])continue;let {transform:_0x48eed0}=_0x5c8edf;if(!_0x48eed0)continue;let {left:_0xfe4204=0x0,top:_0x1812b0=0x0,width:_0x1b16e9=0x0,height:_0x33448a=0x0}=_0x48eed0;_0xf942f8<=_0xfe4204&&_0x4c971b>=_0xfe4204+_0x1b16e9&&_0x5826ec<=_0x1812b0&&_0x4c7693>=_0x1812b0+_0x33448a&&_0x129666[_0x4e1af8(0x35a)](_0x5c8edf);}_0x129666['length']>0x0&&(this[_0x4e1af8(0x327)]={'unitId':_0x435cbf,'subUnitId':_0x592054,'copyType':_0x1877a6,'copyRange':_0x5c956a,'drawings':_0x129666});}[_0x524578(0x16e)](_0x542afb,_0x568cdc){const _0x4ff58e=_0x524578;let {unitId:_0xb3c8de,subUnitId:_0x441f2c,range:_0x3c3626}=_0x542afb,_0x58354d=this[_0x4ff58e(0x34f)]['getSkeleton'](_0xb3c8de,_0x441f2c);if(!_0x58354d)return{'redos':[],'undos':[]};let _0x3af4ac=(0x0,n[_0x4ff58e(0x16f)])(_0x3c3626),{unitId:_0x445970,subUnitId:_0x547d3a,copyRange:_0x385f30,drawings:_0xc3502e}=this[_0x4ff58e(0x327)],_0x3edeb7=this[_0x4ff58e(0x34f)][_0x4ff58e(0x3ba)](_0x445970,_0x547d3a);if(!_0x3edeb7)return{'redos':[],'undos':[]};let _0x20005b;if(!_0x385f30){let _0x388f00=0x1/0x0,_0xfb4251=0x1/0x0;for(let _0x587d7c of _0xc3502e){var _0x23cfbb;let {left:_0x109963=0x0,top:_0x56e51a=0x0}=(_0x23cfbb=_0x587d7c[_0x4ff58e(0x38d)])==null?{}:_0x23cfbb;_0x109963<_0x388f00&&(_0x388f00=_0x109963),_0x56e51a<_0xfb4251&&(_0xfb4251=_0x56e51a);}_0x388f00!==0x1/0x0&&_0xfb4251!==0x1/0x0&&(_0x20005b={'left':_0x388f00,'top':_0xfb4251});}let _0x9ed115=new Map();if(!_0x568cdc){for(let _0x165c7c of _0xc3502e)_0x9ed115[_0x4ff58e(0x189)](_0x165c7c[_0x4ff58e(0x167)],(0x0,t[_0x4ff58e(0x31a)])());}let _0x5875d0=[],_0x32932e=[];for(let _0x3ed148 of _0xc3502e){let {drawingId:_0x3bf530,transform:_0x18a800,sheetTransform:_0x17e686}=_0x3ed148;if(!_0x18a800||!_0x17e686)continue;let _0x56a142=this[_0x4ff58e(0x113)]({'transform':_0x18a800,'sheetTransform':_0x17e686},{'skeleton':_0x3edeb7,'range':_0x385f30},{'skeleton':_0x58354d,'range':_0x3af4ac},_0x20005b);if(_0x568cdc){let {redos:_0x497efd,undos:_0x5f2ac0}=this[_0x4ff58e(0x110)]({'fromUnitId':_0x445970,'fromSubUnitId':_0x547d3a,'toUnitId':_0xb3c8de,'toSubUnitId':_0x441f2c,'drawing':_0x3ed148,'newTransforms':_0x56a142});_0x5875d0[_0x4ff58e(0x35a)](..._0x497efd),_0x32932e['push'](..._0x5f2ac0);continue;}let {redos:_0xa75d77,undos:_0x1107c9}=this[_0x4ff58e(0x12e)]({'toUnitId':_0xb3c8de,'toSubUnitId':_0x441f2c,'drawing':_0x3ed148,'newTransforms':_0x56a142,'newDrawingId':_0x9ed115[_0x4ff58e(0x109)](_0x3bf530),'idMap':_0x9ed115});_0x5875d0[_0x4ff58e(0x35a)](..._0xa75d77),_0x32932e[_0x4ff58e(0x35a)](..._0x1107c9);}return{'redos':_0x5875d0,'undos':_0x32932e};}[_0x524578(0x110)](_0x241053){const _0x5cebe9=_0x524578;let {fromUnitId:_0x172559,fromSubUnitId:_0x396e89,toUnitId:_0x13182b,toSubUnitId:_0x616457,drawing:_0x5c9424,newTransforms:_0xf05557}=_0x241053,_0x498530={..._0x5c9424,'unitId':_0x13182b,'subUnitId':_0x616457,'transform':_0xf05557[_0x5cebe9(0x38d)],'sheetTransform':_0xf05557[_0x5cebe9(0x2f7)]};if(_0x13182b===_0x172559&&_0x616457===_0x396e89){let {redo:_0x749934,undo:_0x1bc818,objects:_0x28814e}=this[_0x5cebe9(0x37a)][_0x5cebe9(0x397)]([_0x498530]);return{'redos':[{'id':r[_0x5cebe9(0x292)]['id'],'params':{'unitId':_0x13182b,'subUnitId':_0x616457,'type':r[_0x5cebe9(0x2c9)][_0x5cebe9(0x215)],'op':_0x749934,'objects':_0x28814e}}],'undos':[{'id':r[_0x5cebe9(0x292)]['id'],'params':{'unitId':_0x13182b,'subUnitId':_0x616457,'type':r[_0x5cebe9(0x2c9)]['UPDATE'],'op':_0x1bc818,'objects':_0x28814e}}]};}else{let _0x56f4a3=this[_0x5cebe9(0x37a)][_0x5cebe9(0x387)]([_0x5c9424]),_0x4c2f36=this[_0x5cebe9(0x37a)][_0x5cebe9(0x39f)]([_0x498530]),_0x5e4dcc=this[_0x5cebe9(0x383)][_0x5cebe9(0x333)](_0x5c9424[_0x5cebe9(0x2f9)],_0x5c9424['subUnitId'],_0x5c9424[_0x5cebe9(0x167)]);if(!_0x5e4dcc)return{'redos':[],'undos':[]};let _0x474f1a=_0x5e4dcc['getShapeType'](),_0x3dd6a8=JSON[_0x5cebe9(0x15d)](JSON['stringify'](_0x5e4dcc[_0x5cebe9(0x370)]()));return{'redos':[{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x172559,'subUnitId':_0x396e89,'type':r[_0x5cebe9(0x2c9)][_0x5cebe9(0x225)],'op':_0x56f4a3[_0x5cebe9(0x23f)],'objects':_0x56f4a3[_0x5cebe9(0x381)]}},{'id':e[_0x5cebe9(0x1c8)]['id'],'params':{'unitId':_0x172559,'subUnitId':_0x396e89,'shapeId':_0x5c9424[_0x5cebe9(0x167)]}},{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x13182b,'subUnitId':_0x616457,'type':r[_0x5cebe9(0x2c9)][_0x5cebe9(0x21e)],'op':_0x4c2f36[_0x5cebe9(0x23f)],'objects':_0x4c2f36[_0x5cebe9(0x381)]}},{'id':e['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x13182b,'subUnitId':_0x616457,'shapeId':_0x5c9424[_0x5cebe9(0x167)],'shapeType':_0x474f1a,'shapeData':_0x3dd6a8}}],'undos':[{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x172559,'subUnitId':_0x396e89,'type':r[_0x5cebe9(0x2c9)][_0x5cebe9(0x21e)],'op':_0x56f4a3[_0x5cebe9(0x3ac)],'objects':_0x56f4a3[_0x5cebe9(0x381)]}},{'id':e[_0x5cebe9(0x3c2)]['id'],'params':{'unitId':_0x172559,'subUnitId':_0x396e89,'shapeId':_0x5c9424[_0x5cebe9(0x167)],'shapeType':_0x474f1a,'shapeData':_0x3dd6a8}},{'id':r[_0x5cebe9(0x292)]['id'],'params':{'unitId':_0x13182b,'subUnitId':_0x616457,'type':r[_0x5cebe9(0x2c9)][_0x5cebe9(0x225)],'op':_0x4c2f36[_0x5cebe9(0x3ac)],'objects':_0x4c2f36[_0x5cebe9(0x381)]}},{'id':e[_0x5cebe9(0x1c8)]['id'],'params':{'unitId':_0x13182b,'subUnitId':_0x616457,'shapeId':_0x5c9424[_0x5cebe9(0x167)]}}]};}}[_0x524578(0x12e)](_0x33e53c){const _0x4b6590=_0x524578;let {toUnitId:_0x34282d,toSubUnitId:_0x41fc3f,drawing:_0x51cb9b,newTransforms:_0x459f03,newDrawingId:_0x183c41,idMap:_0x4c6c5f}=_0x33e53c,_0x3d4485={..._0x51cb9b,'unitId':_0x34282d,'subUnitId':_0x41fc3f,'drawingId':_0x183c41,'transform':_0x459f03[_0x4b6590(0x38d)],'sheetTransform':_0x459f03[_0x4b6590(0x2f7)]},{redo:_0x33a699,undo:_0x1f6132,objects:_0x3c7bd7}=this[_0x4b6590(0x37a)][_0x4b6590(0x39f)]([_0x3d4485]),_0x40c8e7=this[_0x4b6590(0x383)]['getShapeModel'](_0x51cb9b[_0x4b6590(0x2f9)],_0x51cb9b['subUnitId'],_0x51cb9b[_0x4b6590(0x167)]);if(!_0x40c8e7)return{'redos':[],'undos':[]};let _0x106eb3=_0x40c8e7[_0x4b6590(0x321)](),_0x561dcc=JSON[_0x4b6590(0x15d)](JSON[_0x4b6590(0x214)](_0x40c8e7[_0x4b6590(0x370)]()));if(_0x561dcc[_0x4b6590(0x2a7)]){var _0x89d6d,_0xa89360;let _0x460bb6=(_0x89d6d=_0x561dcc[_0x4b6590(0x2a7)][_0x4b6590(0x3a9)])==null?void 0x0:_0x89d6d[_0x4b6590(0x2f4)],_0x5d55c0=(_0xa89360=_0x561dcc[_0x4b6590(0x2a7)]['to'])==null?void 0x0:_0xa89360['shapeId'],_0x1452c3=_0x460bb6?_0x4c6c5f[_0x4b6590(0xfb)](_0x460bb6):!0x0,_0x382feb=_0x5d55c0?_0x4c6c5f[_0x4b6590(0xfb)](_0x5d55c0):!0x0;_0x1452c3&&_0x460bb6&&_0x561dcc[_0x4b6590(0x2a7)]['from']?_0x561dcc[_0x4b6590(0x2a7)][_0x4b6590(0x3a9)]={..._0x561dcc['relation']['from'],'shapeId':_0x4c6c5f['get'](_0x460bb6)}:_0x561dcc[_0x4b6590(0x2a7)][_0x4b6590(0x3a9)]=void 0x0,_0x382feb&&_0x5d55c0&&_0x561dcc[_0x4b6590(0x2a7)]['to']?_0x561dcc[_0x4b6590(0x2a7)]['to']={..._0x561dcc[_0x4b6590(0x2a7)]['to'],'shapeId':_0x4c6c5f['get'](_0x5d55c0)}:_0x561dcc[_0x4b6590(0x2a7)]['to']=void 0x0;}return{'redos':[{'id':r[_0x4b6590(0x292)]['id'],'params':{'unitId':_0x34282d,'subUnitId':_0x41fc3f,'type':r['DrawingApplyType'][_0x4b6590(0x21e)],'op':_0x33a699,'objects':_0x3c7bd7}},{'id':e[_0x4b6590(0x3c2)]['id'],'params':{'unitId':_0x34282d,'subUnitId':_0x41fc3f,'shapeId':_0x183c41,'shapeType':_0x106eb3,'shapeData':_0x561dcc}}],'undos':[{'id':r[_0x4b6590(0x292)]['id'],'params':{'unitId':_0x34282d,'subUnitId':_0x41fc3f,'type':r[_0x4b6590(0x2c9)][_0x4b6590(0x225)],'op':_0x1f6132,'objects':_0x3c7bd7}},{'id':e[_0x4b6590(0x1c8)]['id'],'params':{'unitId':_0x34282d,'subUnitId':_0x41fc3f,'shapeId':_0x183c41}}]};}[_0x524578(0x113)](_0x41dc42,_0x128cb9,_0x27e6ef,_0x29a8cf){const _0x24a2ae=_0x524578;var _0x6d9c11;let {range:_0x1e4103,skeleton:_0xcbd002}=_0x128cb9,{range:_0x44c524,skeleton:_0x21349b}=_0x27e6ef,{transform:_0x55d203,sheetTransform:_0x23b77a}=_0x41dc42,_0x1e96ca={..._0x55d203};if(_0x1e4103){let _0x1aee89=(0x0,n[_0x24a2ae(0x37b)])(_0xcbd002,_0x1e4103),_0x419479=(0x0,n[_0x24a2ae(0x37b)])(_0x21349b,_0x44c524);if(_0x1aee89&&_0x419479){var _0x492f2e,_0x2cd386;let _0x5b67a9=_0x419479[_0x24a2ae(0x372)]-_0x1aee89[_0x24a2ae(0x372)],_0x163a86=_0x419479['startY']-_0x1aee89[_0x24a2ae(0x3c4)];_0x1e96ca['left']=((_0x492f2e=_0x1e96ca[_0x24a2ae(0x184)])==null?0x0:_0x492f2e)+_0x5b67a9,_0x1e96ca[_0x24a2ae(0x122)]=((_0x2cd386=_0x1e96ca[_0x24a2ae(0x122)])==null?0x0:_0x2cd386)+_0x163a86;}}else{let _0x188c2f=(0x0,n[_0x24a2ae(0x37b)])(_0x21349b,_0x44c524);if(_0x29a8cf&&_0x188c2f){var _0x30fb1f,_0x5e773f;let _0x549833=((_0x30fb1f=_0x1e96ca[_0x24a2ae(0x184)])==null?0x0:_0x30fb1f)-_0x29a8cf[_0x24a2ae(0x184)],_0x46d930=((_0x5e773f=_0x1e96ca[_0x24a2ae(0x122)])==null?0x0:_0x5e773f)-_0x29a8cf['top'];_0x1e96ca['left']=_0x188c2f[_0x24a2ae(0x372)]+_0x549833,_0x1e96ca['top']=_0x188c2f['startY']+_0x46d930;}else _0x1e96ca[_0x24a2ae(0x184)]=_0x188c2f==null?void 0x0:_0x188c2f[_0x24a2ae(0x372)],_0x1e96ca[_0x24a2ae(0x122)]=_0x188c2f==null?void 0x0:_0x188c2f[_0x24a2ae(0x3c4)];}return{'transform':_0x1e96ca,'sheetTransform':(_0x6d9c11=(0x0,r[_0x24a2ae(0x289)])(_0x1e96ca,_0x21349b))==null?_0x23b77a:_0x6d9c11};}};X=I([F(0x0,(0x0,t[_0x524578(0x34c)])(n[_0x524578(0x388)])),F(0x1,(0x0,t[_0x524578(0x34c)])(c[_0x524578(0x299)])),F(0x2,(0x0,t['Inject'])(r['ISheetDrawingService'])),F(0x3,(0x0,t[_0x524578(0x34c)])(e['SheetsShapeService'])),F(0x4,(0x0,t[_0x524578(0x34c)])(h[_0x524578(0x18b)]))],X);var Ne=class extends o['Shape']{constructor(_0x18f939,_0x51a551){const _0xf890cc=_0x524578;super(_0x18f939,_0x51a551),b(this,'_shapeId',null),b(this,'_index',null),b(this,_0xf890cc(0x39d),null),b(this,_0xf890cc(0x24b),null),b(this,_0xf890cc(0x1cf),!0x1),_0x51a551&&this[_0xf890cc(0x12f)](_0x51a551);}[_0x524578(0x1e4)](){const _0x543b6a=_0x524578;return{'unitId':this[_0x543b6a(0x39d)],'subUnitId':this[_0x543b6a(0x24b)],'drawingId':this[_0x543b6a(0x190)]};}[_0x524578(0x12f)](_0x2bc5fe){const _0xd8e1bc=_0x524578;_0x2bc5fe[_0xd8e1bc(0x2f4)]!==void 0x0&&(this['_shapeId']=_0x2bc5fe[_0xd8e1bc(0x2f4)]),_0x2bc5fe[_0xd8e1bc(0x2f9)]!==void 0x0&&(this[_0xd8e1bc(0x39d)]=_0x2bc5fe['unitId']),_0x2bc5fe[_0xd8e1bc(0x1fa)]!==void 0x0&&(this[_0xd8e1bc(0x24b)]=_0x2bc5fe['subUnitId']),_0x2bc5fe['isStartConnectorPoint']!==void 0x0&&(this[_0xd8e1bc(0x1cf)]=_0x2bc5fe[_0xd8e1bc(0x147)]),this[_0xd8e1bc(0x384)]({'width':_0x2bc5fe[_0xd8e1bc(0x1af)],'height':_0x2bc5fe[_0xd8e1bc(0x1dc)]});}['_draw'](_0x3905ba){const _0xbf3e19=_0x524578;o['Circle']['drawWith'](_0x3905ba,{'radius':u[_0xbf3e19(0x32c)]['cxnPointRadius'],'fill':u[_0xbf3e19(0x32c)]['cxnPointFill'],'stroke':u[_0xbf3e19(0x32c)][_0xbf3e19(0x1db)],'strokeWidth':u[_0xbf3e19(0x32c)][_0xbf3e19(0x23c)],'evented':!0x0});}};let Z=class extends t[_0x524578(0x239)]{constructor(_0x136cf3,_0x294212,_0x3458e5,_0x25a51a,_0x589c9c,_0x12f3ba,_0x48c61d,_0x2d8e1c){const _0x3e1c91=_0x524578;super(),this['_context']=_0x136cf3,this[_0x3e1c91(0x39e)]=_0x294212,this['_renderManagerService']=_0x3458e5,this[_0x3e1c91(0x106)]=_0x25a51a,this[_0x3e1c91(0x139)]=_0x589c9c,this[_0x3e1c91(0x13c)]=_0x12f3ba,this[_0x3e1c91(0x2c7)]=_0x48c61d,this['_sheetBasicShapeConnectionPointController']=_0x2d8e1c,b(this,'_activeShapeId',void 0x0),b(this,'_unitId',void 0x0),b(this,'_subUnitId',void 0x0),b(this,_0x3e1c91(0x36c),[]),b(this,_0x3e1c91(0x16a),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),b(this,_0x3e1c91(0x102),void 0x0),b(this,'_isConnecting',!0x1),b(this,_0x3e1c91(0x27b),!0x1),b(this,_0x3e1c91(0x1cc),!0x1),b(this,_0x3e1c91(0x2d2),void 0x0),b(this,_0x3e1c91(0x26c),void 0x0),b(this,_0x3e1c91(0x271),null),this[_0x3e1c91(0x1ca)]();}['_initialize'](){const _0x227705=_0x524578;this['_registerDrawingFocusChangeHandler'](),this[_0x227705(0x199)]();}[_0x524578(0x129)](){const _0x2fcb69=_0x524578;if(!this[_0x2fcb69(0x39d)]||!this[_0x2fcb69(0x24b)]||!this[_0x2fcb69(0x1f6)])return;let _0x2e6b16={'unitId':this[_0x2fcb69(0x39d)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0x554175}=this['_drawingManagerService'][_0x2fcb69(0x3a3)](_0x2e6b16);if(_0x554175)return{'left':_0x554175[_0x2fcb69(0x184)]||0x0,'top':_0x554175[_0x2fcb69(0x122)]||0x0,'width':_0x554175[_0x2fcb69(0x1af)]||0x0,'height':_0x554175[_0x2fcb69(0x1dc)]||0x0,'flipX':_0x554175[_0x2fcb69(0xfc)]||!0x1,'flipY':_0x554175[_0x2fcb69(0x180)]||!0x1,'angle':_0x554175[_0x2fcb69(0x2be)]};}[_0x524578(0x19d)](){const _0x51ce1=_0x524578;if(this[_0x51ce1(0x39d)]===void 0x0||this[_0x51ce1(0x24b)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x2aedc8=this[_0x51ce1(0x3cd)]['getRenderById'](this[_0x51ce1(0x39d)]);if(!_0x2aedc8||!_0x2aedc8['with'](c[_0x51ce1(0x1e6)])['getCurrentSkeleton']())return;let {scene:_0x376ca7}=_0x2aedc8,_0x524733=this[_0x51ce1(0x129)]();if(!_0x524733)return;let _0x386bb2=this['_sheetsShapeService'][_0x51ce1(0x333)](this[_0x51ce1(0x39d)],this[_0x51ce1(0x24b)],this[_0x51ce1(0x1f6)]);if(!_0x386bb2||!(0x0,u[_0x51ce1(0x2fb)])(_0x386bb2[_0x51ce1(0x321)]()))return;let _0x27c970=_0x386bb2[_0x51ce1(0x19a)]();if(_0x27c970[_0x51ce1(0x355)]<0x2)return;let _0x4e732a=new u['ConnectorCoordinateTransform'](_0x524733),_0x20ef5e=_0x27c970[0x0],_0x3abe2d=_0x27c970[_0x27c970['length']-0x1],_0x4d5782=_0x4e732a['localToWorld'](_0x20ef5e),_0x55e2d9=_0x4e732a[_0x51ce1(0x10c)](_0x3abe2d);this[_0x51ce1(0x1a4)](_0x376ca7,{..._0x4d5782},!0x0),this[_0x51ce1(0x1a4)](_0x376ca7,{..._0x55e2d9},!0x1);}[_0x524578(0x1a4)](_0x4df575,_0x1e72d6,_0x3adede){const _0xa8e89d=_0x524578;if(this['_activeShapeId']===void 0x0||this['_unitId']===void 0x0||this[_0xa8e89d(0x24b)]===void 0x0)return;let _0x360f49=_0xa8e89d(0x240)+this[_0xa8e89d(0x39d)]+'-'+this[_0xa8e89d(0x24b)]+'-'+this['_activeShapeId']+'-'+(_0x3adede?'start':_0xa8e89d(0x323)),_0x47b85b=_0x4df575[_0xa8e89d(0x228)](_0x360f49);if(_0x47b85b){_0x47b85b[_0xa8e89d(0x384)]({'left':_0x1e72d6['x']-u[_0xa8e89d(0x32c)][_0xa8e89d(0x1f9)],'top':_0x1e72d6['y']-u[_0xa8e89d(0x32c)][_0xa8e89d(0x1f9)]});return;}let _0x576e21=new Ne(_0x360f49,{'left':_0x1e72d6['x']-u[_0xa8e89d(0x32c)][_0xa8e89d(0x1f9)],'top':_0x1e72d6['y']-u[_0xa8e89d(0x32c)][_0xa8e89d(0x1f9)],'shapeId':this[_0xa8e89d(0x1f6)],'unitId':this[_0xa8e89d(0x39d)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x3adede,'width':u[_0xa8e89d(0x32c)][_0xa8e89d(0x1f9)]*0x2,'height':u[_0xa8e89d(0x32c)][_0xa8e89d(0x1f9)]*0x2,'zIndex':o['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0xa8e89d(0x36c)]['push'](_0x576e21),this[_0xa8e89d(0x23a)](_0x576e21,_0x4df575,_0x3adede),_0x4df575[_0xa8e89d(0x2b4)](_0x576e21,o[_0xa8e89d(0x3bc)]+0x1);}[_0x524578(0x2b3)](_0x551963,_0x5cf5d3){const _0x2c4c7a=_0x524578;var _0x2c75f9;let _0x530deb={'x':0x0,'y':0x0};if(!_0x551963||!_0x5cf5d3)return _0x530deb;let _0x4fa750=this[_0x2c4c7a(0x3cd)][_0x2c4c7a(0x18d)](_0x551963);if(!_0x4fa750||!_0x4fa750[_0x2c4c7a(0x2ea)](c[_0x2c4c7a(0x1e6)])[_0x2c4c7a(0x3ba)](_0x5cf5d3))return _0x530deb;let _0xc160e=_0x4fa750[_0x2c4c7a(0x2ea)](c[_0x2c4c7a(0x2d8)]),_0x359581=_0xc160e==null?void 0x0:_0xc160e[_0x2c4c7a(0x2ef)]();if(!_0x359581)return _0x530deb;let _0x2e603a=(_0x2c75f9=this[_0x2c4c7a(0x139)]['getUnit'](_0x551963))==null?void 0x0:_0x2c75f9[_0x2c4c7a(0x268)](_0x5cf5d3);if(!_0x2e603a)return _0x530deb;let _0x279e96=(0x0,c['getViewportByCell'])(_0x359581['sheetViewStartRow'],_0x359581['sheetViewStartColumn'],_0x4fa750[_0x2c4c7a(0x295)],_0x2e603a);return _0x279e96?{'x':_0x279e96[_0x2c4c7a(0x1d9)],'y':_0x279e96[_0x2c4c7a(0x116)]}:_0x530deb;}[_0x524578(0x115)](_0x48d25a,_0x5c480d){const _0x5baaa9=_0x524578;var _0x56f698,_0x458024;let _0x236a42=(_0x56f698=this[_0x5baaa9(0x139)][_0x5baaa9(0x1ad)](_0x48d25a))==null?void 0x0:_0x56f698[_0x5baaa9(0x268)](_0x5c480d);return(_0x458024=_0x236a42==null?void 0x0:_0x236a42[_0x5baaa9(0x1c1)]())==null?0x1:_0x458024;}['_handleConnectorPointerUp'](_0x4d67e8,_0x260f28,_0xa12e4f,_0xc77578,_0x1b7b3c){const _0x1d22aa=_0x524578;this[_0x1d22aa(0x2d2)][_0x1d22aa(0x320)](),this['_cxtHandlerPointerUp'][_0x1d22aa(0x320)](),this[_0x1d22aa(0x2c7)][_0x1d22aa(0x3ab)]();let _0x192e6f=this[_0x1d22aa(0x271)];this[_0x1d22aa(0x341)][_0x1d22aa(0x32d)]();let _0xcbb09f=this[_0x1d22aa(0x2b3)](this[_0x1d22aa(0x39d)],this[_0x1d22aa(0x24b)]),_0x4bc720=this[_0x1d22aa(0x115)](this[_0x1d22aa(0x39d)],this[_0x1d22aa(0x24b)]),_0x3bb2eb={'x':_0xa12e4f[_0x1d22aa(0x163)]/_0x4bc720+_0xcbb09f['x'],'y':_0xa12e4f[_0x1d22aa(0x2d3)]/_0x4bc720+_0xcbb09f['y']},_0x20c4b7=_0x192e6f?_0x192e6f[_0x1d22aa(0x213)]:_0x3bb2eb,_0x240755=_0xc77578?this['_activeShapeModel'][_0x1d22aa(0x128)]():this['_activeShapeModel'][_0x1d22aa(0x284)](),_0x6f6107=this[_0x1d22aa(0x102)][_0x1d22aa(0x321)]();_0x240755?this[_0x1d22aa(0x2d1)](_0x240755,_0x20c4b7,_0xc77578,_0x192e6f,_0x1b7b3c):this[_0x1d22aa(0x278)](_0x260f28,_0x20c4b7,_0xc77578,_0x192e6f,_0x1b7b3c,_0x6f6107),this[_0x1d22aa(0x265)]=!0x1,this['_hasReset']=!0x1,this[_0x1d22aa(0x271)]=null,_0x4d67e8[_0x1d22aa(0x342)]();}[_0x524578(0x278)](_0x6b7e8f,_0x2e80b9,_0x41d525,_0x414c64,_0x144f23,_0x11f523){const _0xd2e9a1=_0x524578;let _0x3be1c6=_0x11f523===u['ShapeTypeEnum']['Line']||_0x11f523===u[_0xd2e9a1(0x1da)]['StraightConnector1'],_0x2f3b16=_0x41d525?_0x2e80b9:_0x6b7e8f,_0x1a2cda=_0x41d525?_0x6b7e8f:_0x2e80b9,_0x4c0ea8=this[_0xd2e9a1(0x102)]['getConnectorLinePoints'](),_0x2cc4cc=(0x0,u[_0xd2e9a1(0x2c0)])(this[_0xd2e9a1(0x102)][_0xd2e9a1(0x321)]()),_0xff93fb=u[_0xd2e9a1(0x11f)][_0xd2e9a1(0x31e)](_0x4c0ea8,_0x2cc4cc),_0x45b058=_0x3be1c6?u['ConnectorCoordinateTransform'][_0xd2e9a1(0xf9)](_0x2f3b16,_0x1a2cda):u[_0xd2e9a1(0x11f)][_0xd2e9a1(0x34d)](_0x6b7e8f,_0x2e80b9,_0x41d525,_0xff93fb);_0x414c64?this[_0xd2e9a1(0x340)](_0x45b058,_0x414c64,_0x41d525,_0x144f23):this[_0xd2e9a1(0x33c)](_0x45b058,_0x144f23);}[_0x524578(0x2d1)](_0x17d475,_0x127191,_0x54393c,_0x2ecad2,_0x220e8d){const _0x4b3a54=_0x524578;let _0x204de8=this['_getConnectPointInfo'](_0x17d475);if(!_0x204de8)return;let _0x893a99=_0x2ecad2?_0x2ecad2[_0x4b3a54(0x2be)]:this[_0x4b3a54(0x2bd)](_0x204de8['point'],_0x127191),_0x5674b2;if(_0x2ecad2){let _0x3d29c2=this[_0x4b3a54(0x106)][_0x4b3a54(0x3a3)]({'unitId':_0x2ecad2[_0x4b3a54(0x2f9)],'subUnitId':_0x2ecad2['subUnitId'],'drawingId':_0x2ecad2[_0x4b3a54(0x2f4)]});if(_0x3d29c2!=null&&_0x3d29c2[_0x4b3a54(0x38d)]){let {left:_0x519efb=0x0,top:_0xc9ccb8=0x0,width:_0x3f4262=0x0,height:_0x563a52=0x0,angle:_0x2bfdb4}=_0x3d29c2[_0x4b3a54(0x38d)];_0x5674b2=(0x0,u[_0x4b3a54(0x325)])({'left':_0x519efb,'top':_0xc9ccb8,'width':_0x3f4262,'height':_0x563a52},_0x2bfdb4||0x0);}else _0x5674b2={'left':_0x127191['x'],'top':_0x127191['y'],'width':0x0,'height':0x0};}else _0x5674b2={'left':_0x127191['x'],'top':_0x127191['y'],'width':0x0,'height':0x0};let _0x3f7517={'point':_0x127191,'angle':_0x893a99,'bounds':_0x5674b2},_0x183d8c=_0x54393c?_0x3f7517:_0x204de8,_0x68680=_0x54393c?_0x204de8:_0x3f7517,_0x36a5f6=this[_0x4b3a54(0x102)][_0x4b3a54(0x321)](),_0x1cce6a=(0x0,u[_0x4b3a54(0x329)])(_0x183d8c,_0x68680,_0x36a5f6);this[_0x4b3a54(0x102)][_0x4b3a54(0x14b)]();let _0x16fc47=(0x0,u[_0x4b3a54(0x3b6)])(_0x1cce6a,_0x36a5f6);_0x2ecad2?this['_executeConnectedRouteConnectionCommand'](_0x16fc47,_0x2ecad2,_0x17d475,_0x54393c,_0x220e8d):this['_executeConnectedRouteResizeCommand'](_0x16fc47,_0x17d475,_0x54393c,_0x220e8d);}[_0x524578(0x340)](_0x2c1cf2,_0x84ff8e,_0x2f83a8,_0x431b86){const _0x7dff04=_0x524578;let _0x4d6530=this[_0x7dff04(0x102)]['getShapeData']()['relation'],_0x56778c={..._0x4d6530},_0x1c417f={'shapeId':_0x84ff8e[_0x7dff04(0x2f4)],'cxnIndex':_0x84ff8e[_0x7dff04(0x231)]};_0x2f83a8?_0x56778c[_0x7dff04(0x3a9)]=_0x1c417f:_0x56778c['to']=_0x1c417f;let _0xa86564=this[_0x7dff04(0x102)][_0x7dff04(0x321)](),_0x4f6ff2=(0x0,u[_0x7dff04(0x3b6)])(_0x2c1cf2['worldPoints'],_0xa86564),_0x553818={'unitId':this[_0x7dff04(0x39d)],'subUnitId':this[_0x7dff04(0x24b)],'connectorShapeId':this[_0x7dff04(0x1f6)],'width':_0x2c1cf2[_0x7dff04(0x14d)][_0x7dff04(0x1af)],'height':_0x2c1cf2[_0x7dff04(0x14d)][_0x7dff04(0x1dc)],'left':_0x2c1cf2[_0x7dff04(0x14d)][_0x7dff04(0x184)],'top':_0x2c1cf2[_0x7dff04(0x14d)][_0x7dff04(0x122)],'flipX':_0x2c1cf2[_0x7dff04(0x14d)][_0x7dff04(0xfc)]||!0x1,'flipY':_0x2c1cf2[_0x7dff04(0x14d)]['flipY']||!0x1,'newAdjustValues':_0x4f6ff2[_0x7dff04(0x13b)],'oldAdjustValues':_0x431b86,'oldRelation':_0x4d6530,'newRelation':_0x56778c,'newLineType':_0x4f6ff2[_0x7dff04(0x274)],'oldLineType':_0xa86564};this[_0x7dff04(0x39e)][_0x7dff04(0x23e)](e[_0x7dff04(0x169)]['id'],_0x553818);}[_0x524578(0x33c)](_0x50ee42,_0x288442){const _0x28adce=_0x524578;let _0x2f995b=this['_activeShapeModel'][_0x28adce(0x321)](),_0x2834b6=(0x0,u[_0x28adce(0x3b6)])(_0x50ee42[_0x28adce(0x338)],_0x2f995b),_0x136128={'unitId':this[_0x28adce(0x39d)],'subUnitId':this[_0x28adce(0x24b)],'shapeId':this[_0x28adce(0x1f6)],'width':_0x50ee42[_0x28adce(0x14d)][_0x28adce(0x1af)],'height':_0x50ee42['worldRect'][_0x28adce(0x1dc)],'left':_0x50ee42[_0x28adce(0x14d)]['left'],'top':_0x50ee42['worldRect']['top'],'flipX':_0x50ee42[_0x28adce(0x14d)][_0x28adce(0xfc)]||!0x1,'flipY':_0x50ee42[_0x28adce(0x14d)][_0x28adce(0x180)]||!0x1,'angle':_0x50ee42['worldRect']['angle']||0x0,'newAdjustValues':_0x2834b6[_0x28adce(0x13b)],'oldAdjustValues':_0x288442,'newLineType':_0x2834b6[_0x28adce(0x274)],'oldLineType':_0x2f995b};this[_0x28adce(0x39e)][_0x28adce(0x23e)](e['UpdateLineShapeResizeCommand']['id'],_0x136128);}['_executeConnectedRouteConnectionCommand'](_0x17eff5,_0x2ac647,_0x446785,_0x2e12b4,_0x24448a){const _0x26c945=_0x524578;let _0x1f7cd5=this['_activeShapeModel'][_0x26c945(0x370)]()[_0x26c945(0x2a7)],_0x3c6176={..._0x1f7cd5},_0x42cd44={'shapeId':_0x2ac647['shapeId'],'cxnIndex':_0x2ac647[_0x26c945(0x231)]};_0x2e12b4?(_0x3c6176[_0x26c945(0x3a9)]=_0x42cd44,_0x3c6176['to']=_0x446785):(_0x3c6176[_0x26c945(0x3a9)]=_0x446785,_0x3c6176['to']=_0x42cd44);let _0x1b771f={'unitId':this[_0x26c945(0x39d)],'subUnitId':this[_0x26c945(0x24b)],'connectorShapeId':this['_activeShapeId'],'width':_0x17eff5[_0x26c945(0x14d)][_0x26c945(0x1af)],'height':_0x17eff5[_0x26c945(0x14d)][_0x26c945(0x1dc)],'left':_0x17eff5['worldRect'][_0x26c945(0x184)],'top':_0x17eff5[_0x26c945(0x14d)]['top'],'flipX':_0x17eff5['worldRect']['flipX']||!0x1,'flipY':_0x17eff5['worldRect'][_0x26c945(0x180)]||!0x1,'oldAdjustValues':_0x24448a,'newAdjustValues':_0x17eff5[_0x26c945(0x13b)],'newLineType':_0x17eff5[_0x26c945(0x274)],'rotation':_0x17eff5[_0x26c945(0x307)],'oldRelation':_0x1f7cd5,'newRelation':_0x3c6176};this['_commandService'][_0x26c945(0x23e)](e[_0x26c945(0x169)]['id'],_0x1b771f);}[_0x524578(0x364)](_0x5cd2b8,_0x11ea22,_0x822e4d,_0x4c1980){const _0x3416f6=_0x524578;let _0x8f4269=this['_activeShapeModel']['getShapeData']()[_0x3416f6(0x2a7)],_0x3763ba={};_0x822e4d?(_0x3763ba['to']=_0x11ea22,_0x3763ba['from']=void 0x0):(_0x3763ba[_0x3416f6(0x3a9)]=_0x11ea22,_0x3763ba['to']=void 0x0);let _0x492544={'unitId':this['_unitId'],'subUnitId':this[_0x3416f6(0x24b)],'connectorShapeId':this['_activeShapeId'],'width':_0x5cd2b8['worldRect'][_0x3416f6(0x1af)],'height':_0x5cd2b8[_0x3416f6(0x14d)][_0x3416f6(0x1dc)],'left':_0x5cd2b8[_0x3416f6(0x14d)]['left'],'top':_0x5cd2b8[_0x3416f6(0x14d)][_0x3416f6(0x122)],'flipX':_0x5cd2b8['worldRect']['flipX']||!0x1,'flipY':_0x5cd2b8[_0x3416f6(0x14d)][_0x3416f6(0x180)]||!0x1,'oldAdjustValues':_0x4c1980,'newAdjustValues':_0x5cd2b8[_0x3416f6(0x13b)],'newLineType':_0x5cd2b8[_0x3416f6(0x274)],'rotation':_0x5cd2b8[_0x3416f6(0x307)],'oldRelation':_0x8f4269,'newRelation':_0x3763ba};this[_0x3416f6(0x39e)][_0x3416f6(0x23e)](e[_0x3416f6(0x169)]['id'],_0x492544);}[_0x524578(0x23a)](_0x3872b5,_0x545059,_0x4b6c94){const _0x249c5a=_0x524578;this[_0x249c5a(0x1d1)]((0x0,t['toDisposable'])(_0x3872b5[_0x249c5a(0x1d2)][_0x249c5a(0x1f2)]((_0x191f9d,_0x5d9d02)=>{const _0x49f33e=_0x249c5a;let _0x4f4019=_0x3872b5[_0x49f33e(0x1e4)]();if(this[_0x49f33e(0x102)]=this[_0x49f33e(0x13c)][_0x49f33e(0x333)](_0x4f4019[_0x49f33e(0x2f9)],_0x4f4019['subUnitId'],_0x4f4019[_0x49f33e(0x167)]),!this[_0x49f33e(0x102)])return;let _0x21ea96={};this[_0x49f33e(0x102)][_0x49f33e(0x191)]()[_0x49f33e(0x280)](_0x3e969a=>{const _0x1469e7=_0x49f33e;let _0x51a821=this['_activeShapeModel'][_0x1469e7(0x148)](_0x3e969a);_0x51a821!==void 0x0&&(_0x21ea96[_0x3e969a]=_0x51a821);});let _0x480fe5=this['_getDrawingRect']();if(!_0x480fe5)return;this['_baseDrawingRect']={..._0x480fe5};let _0x3179fa=new u['ConnectorCoordinateTransform'](this[_0x49f33e(0x16a)]),_0x3e1d39=(0x0,a[_0x49f33e(0x17a)])({'unitId':this[_0x49f33e(0x39d)],'subUnitId':this[_0x49f33e(0x24b)],'drawingId':this[_0x49f33e(0x1f6)]}),_0x1c468a=_0x545059[_0x49f33e(0x228)](_0x3e1d39);this['_isConnecting']=!0x0,_0x545059[_0x49f33e(0x36e)](),this[_0x49f33e(0x341)][_0x49f33e(0x2ca)](_0x545059,this[_0x49f33e(0x39d)],this[_0x49f33e(0x24b)],this['_activeShapeId']),this['_currentConnectionTarget']=null;let _0x13714b=this['_activeShapeModel'][_0x49f33e(0x19a)](),_0x1e273f=_0x13714b[0x0],_0x4b7d65=_0x13714b[_0x13714b[_0x49f33e(0x355)]-0x1],_0x540944=_0x4b6c94?_0x3179fa[_0x49f33e(0x10c)](_0x4b7d65):_0x3179fa['localToWorld'](_0x1e273f);this['_cxtHandlerPointerMove']=_0x545059[_0x49f33e(0x229)]['subscribeEvent']((_0x56ad85,_0x25e424)=>{const _0x25a171=_0x49f33e;if(!this[_0x25a171(0x265)]||!this['_activeShapeModel'])return;this[_0x25a171(0x1cc)]||(this['_sheetShapeAdjustController'][_0x25a171(0x350)](),this[_0x25a171(0x102)]['clearAdjustValue'](),this[_0x25a171(0x1cc)]=!0x0);let _0x172b8f=this[_0x25a171(0x2b3)](this[_0x25a171(0x39d)],this[_0x25a171(0x24b)]),_0x33862b=this[_0x25a171(0x115)](this[_0x25a171(0x39d)],this[_0x25a171(0x24b)]),_0x343ad9={'x':_0x56ad85[_0x25a171(0x163)]/_0x33862b+_0x172b8f['x'],'y':_0x56ad85[_0x25a171(0x2d3)]/_0x33862b+_0x172b8f['y']},_0x25de4d=this[_0x25a171(0x341)][_0x25a171(0x32a)](_0x343ad9);if(_0x25de4d){let {shapeId:_0x56d4ec,unitId:_0x3a8b8a,subUnitId:_0xebb7ee}=_0x25de4d;if(_0x56d4ec&&_0x3a8b8a&&_0xebb7ee){let _0x2f2cac=(0x0,a[_0x25a171(0x17a)])({'unitId':_0x3a8b8a,'subUnitId':_0xebb7ee,'drawingId':_0x56d4ec});_0x25de4d['angle']=(_0x545059['getObjectIncludeInGroup'](_0x2f2cac)[_0x25a171(0x2be)]||0x0)+_0x25de4d[_0x25a171(0x2be)];}}this[_0x25a171(0x271)]=_0x25de4d;let _0x6ad09=_0x4b6c94?this[_0x25a171(0x102)][_0x25a171(0x128)]():this['_activeShapeModel']['getStartConnectInfo']();if(_0x6ad09){this['_handleConnectedEndpointMove'](_0x6ad09,_0x343ad9,_0x4b6c94,_0x1c468a,_0x3872b5);return;}this[_0x25a171(0x376)](_0x343ad9,_0x540944,_0x4b6c94,_0x1c468a,_0x3872b5);}),this[_0x49f33e(0x26c)]=_0x545059[_0x49f33e(0x33f)]['subscribeEvent']((_0x118317,_0x567fb2)=>{this['_handleConnectorPointerUp'](_0x545059,_0x540944,_0x118317,_0x4b6c94,_0x21ea96);}),_0x5d9d02[_0x49f33e(0x37c)]();})));}[_0x524578(0x13f)](_0x159c29,_0x44dfd3,_0x42743f){const _0x21b5c0=_0x524578;let _0xb8be81=this[_0x21b5c0(0x13c)][_0x21b5c0(0x1a2)](_0x159c29,_0x44dfd3,_0x42743f);if(!_0xb8be81||_0xb8be81['length']===0x0)return;let _0xf28c6c=this[_0x21b5c0(0x3cd)][_0x21b5c0(0x18d)](_0x159c29);if(!_0xf28c6c)return;let {scene:_0x36d16e}=_0xf28c6c;for(let _0x2614d6 of _0xb8be81){let _0xbfcdb2=_0x2614d6[_0x21b5c0(0x2c5)],_0x25eb40=this[_0x21b5c0(0x13c)][_0x21b5c0(0x333)](_0x159c29,_0x44dfd3,_0xbfcdb2);if(!_0x25eb40)continue;let _0xe84cd9=_0x25eb40[_0x21b5c0(0x284)](),_0x4160f9=_0x25eb40[_0x21b5c0(0x128)](),_0x491c60=(_0xe84cd9==null?void 0x0:_0xe84cd9[_0x21b5c0(0x2f4)])===_0x42743f,_0x54a237=(0x0,a[_0x21b5c0(0x17a)])({'unitId':_0x159c29,'subUnitId':_0x44dfd3,'drawingId':_0xbfcdb2}),_0x32a4c7=_0x36d16e[_0x21b5c0(0x228)](_0x54a237);if(!_0x32a4c7)continue;let _0x339dbd=this['_drawingManagerService'][_0x21b5c0(0x3a3)]({'unitId':_0x159c29,'subUnitId':_0x44dfd3,'drawingId':_0xbfcdb2});_0x339dbd!=null&&_0x339dbd['transform']&&(_0xe84cd9&&_0x4160f9?this[_0x21b5c0(0x27a)](_0x159c29,_0x44dfd3,_0xbfcdb2,_0x25eb40,_0xe84cd9,_0x4160f9,_0x32a4c7):this['_moveConnectorWithShape'](_0x159c29,_0x44dfd3,_0xbfcdb2,_0x25eb40,_0x491c60?_0xe84cd9:_0x4160f9,_0x491c60,_0x339dbd,_0x32a4c7));}}['_rerouteConnectorLine'](_0x59f0a1,_0x5032e1,_0x2d5490,_0x511975,_0x4348c2,_0x5edc62,_0x274760){const _0x1dd9cd=_0x524578;let _0x3a646e=this['_unitId'],_0x46bf0d=this[_0x1dd9cd(0x24b)];this[_0x1dd9cd(0x39d)]=_0x59f0a1,this[_0x1dd9cd(0x24b)]=_0x5032e1;let _0x159ac8=this[_0x1dd9cd(0x358)](_0x4348c2),_0x5eaac7=this[_0x1dd9cd(0x358)](_0x5edc62);if(this[_0x1dd9cd(0x39d)]=_0x3a646e,this[_0x1dd9cd(0x24b)]=_0x46bf0d,!_0x159ac8||!_0x5eaac7)return;let _0xb86ed9=_0x511975[_0x1dd9cd(0x321)](),_0x4ee554=(0x0,u[_0x1dd9cd(0x329)])(_0x159ac8,_0x5eaac7,_0xb86ed9);_0x4ee554&&_0x511975[_0x1dd9cd(0x29b)](_0x4ee554);let _0x2ba474=(0x0,u[_0x1dd9cd(0x3b6)])(_0x4ee554,_0xb86ed9);_0x2ba474[_0x1dd9cd(0x274)]!==_0xb86ed9&&_0x511975['changeShapeType'](_0x2ba474[_0x1dd9cd(0x274)]),_0x511975[_0x1dd9cd(0x236)]();for(let [_0x4ff1,_0x3aa38c]of Object[_0x1dd9cd(0x391)](_0x2ba474[_0x1dd9cd(0x13b)]))_0x511975[_0x1dd9cd(0x2f2)](_0x4ff1,_0x3aa38c);_0x511975[_0x1dd9cd(0x20a)]({'width':_0x2ba474[_0x1dd9cd(0x14d)]['width'],'height':_0x2ba474[_0x1dd9cd(0x14d)]['height']}),_0x274760[_0x1dd9cd(0x384)]({'flipX':_0x2ba474[_0x1dd9cd(0x14d)][_0x1dd9cd(0xfc)],'flipY':_0x2ba474[_0x1dd9cd(0x14d)][_0x1dd9cd(0x180)],'left':_0x2ba474['worldRect'][_0x1dd9cd(0x184)],'top':_0x2ba474['worldRect'][_0x1dd9cd(0x122)],'width':_0x2ba474['worldRect'][_0x1dd9cd(0x1af)],'height':_0x2ba474[_0x1dd9cd(0x14d)]['height'],'angle':_0x2ba474[_0x1dd9cd(0x307)]}),_0x511975[_0x1dd9cd(0x14b)]();}[_0x524578(0x304)](_0x33e61a,_0x58523f,_0x2cef5d,_0x56471b,_0x2bc813,_0x1120c9,_0x23c20a,_0xc7bc0c){const _0x4f5953=_0x524578;let _0x48ccf5=this[_0x4f5953(0x39d)],_0x3a1048=this[_0x4f5953(0x24b)];this[_0x4f5953(0x39d)]=_0x33e61a,this[_0x4f5953(0x24b)]=_0x58523f;let _0x11a6b9=this[_0x4f5953(0x358)](_0x2bc813);if(this['_unitId']=_0x48ccf5,this[_0x4f5953(0x24b)]=_0x3a1048,!_0x11a6b9)return;let {left:_0x58c85d=0x0,top:_0x26a889=0x0,width:_0x18683a=0x0,height:_0x18633e=0x0,flipX:_0x30b97e=!0x1,flipY:_0x1a8feb=!0x1}=_0x23c20a[_0x4f5953(0x38d)],_0x23fedd=_0x56471b[_0x4f5953(0x19a)]();if(_0x23fedd['length']<0x2)return;let _0x3b5365=new u[(_0x4f5953(0x11f))]({'left':_0x58c85d,'top':_0x26a889,'width':_0x18683a,'height':_0x18633e,'flipX':_0x30b97e,'flipY':_0x1a8feb}),_0x8057fb=_0x1120c9?_0x23fedd[_0x23fedd[_0x4f5953(0x355)]-0x1]:_0x23fedd[0x0],_0x202473=_0x3b5365[_0x4f5953(0x10c)](_0x8057fb),_0x210c9d=u[_0x4f5953(0x11f)][_0x4f5953(0x34d)](_0x202473,_0x11a6b9['point'],!_0x1120c9);_0xc7bc0c['transformByState']({'flipX':_0x210c9d[_0x4f5953(0x14d)][_0x4f5953(0xfc)],'flipY':_0x210c9d[_0x4f5953(0x14d)][_0x4f5953(0x180)],'left':_0x210c9d[_0x4f5953(0x14d)][_0x4f5953(0x184)],'top':_0x210c9d[_0x4f5953(0x14d)][_0x4f5953(0x122)],'width':_0x210c9d[_0x4f5953(0x14d)]['width'],'height':_0x210c9d[_0x4f5953(0x14d)][_0x4f5953(0x1dc)],'angle':_0x210c9d[_0x4f5953(0x14d)][_0x4f5953(0x2be)]}),_0xc7bc0c[_0x4f5953(0x25e)](!0x0);}[_0x524578(0x162)](){const _0x255035=_0x524578;this['_connectorObjects'][_0x255035(0x355)]!==0x0&&(this['_connectorObjects']['forEach'](_0x5b82e0=>{const _0x2f9919=_0x255035;_0x5b82e0[_0x2f9919(0x3bb)]();}),this['_connectorObjects']=[]);}[_0x524578(0x199)](){const _0x1356de=_0x524578;let _0x54ad9e=this['_univerInstanceService'][_0x1356de(0x17d)](t['UniverInstanceType'][_0x1356de(0x310)]);this[_0x1356de(0x1d1)](_0x54ad9e[_0x1356de(0x29c)]((0x0,i[_0x1356de(0x170)])(_0x3479ca=>_0x3479ca?_0x3479ca[_0x1356de(0x1e2)]['pipe']((0x0,i[_0x1356de(0x170)])(_0x4198ff=>{const _0x39e765=_0x1356de;if(!_0x4198ff)return i[_0x39e765(0x277)];let _0x3955d1=_0x3479ca[_0x39e765(0x249)](),_0x86b6eb=this[_0x39e765(0x3cd)][_0x39e765(0x18d)](_0x3955d1),_0x23a523=_0x86b6eb==null?void 0x0:_0x86b6eb['scene'];return _0x23a523?(0x0,i['of'])(_0x23a523):i[_0x39e765(0x277)];})):i[_0x1356de(0x277)]))['subscribe'](_0x11ebc9=>{const _0x86f62c=_0x1356de;let _0x2d4496=_0x11ebc9[_0x86f62c(0x396)]();this[_0x86f62c(0x1d1)](_0x11ebc9[_0x86f62c(0x229)][_0x86f62c(0x1f2)](_0x32b633=>{const _0x186f4e=_0x86f62c;this[_0x186f4e(0x27b)]&&this['_activeShapeId']&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x86f62c(0x1d1)](_0x2d4496[_0x86f62c(0x2f8)][_0x86f62c(0x38b)](_0x89a202=>{const _0x332d2e=_0x86f62c;let {objects:_0x491fe7}=_0x89a202;this[_0x332d2e(0x162)](),_0x491fe7!==null&&_0x491fe7['size']===0x1&&_0x491fe7[_0x332d2e(0x31c)]()[_0x332d2e(0x241)]()[_0x332d2e(0x25f)]instanceof P&&(this[_0x332d2e(0x27b)]=!0x0);})),this['disposeWithMe'](_0x2d4496[_0x86f62c(0x30a)]['subscribe'](_0x1fb921=>{const _0x1341f8=_0x86f62c;this[_0x1341f8(0x27b)]&&this[_0x1341f8(0x162)]();})),this['disposeWithMe'](_0x11ebc9[_0x86f62c(0x33f)][_0x86f62c(0x1f2)](()=>{const _0x4c6661=_0x86f62c;this[_0x4c6661(0x27b)]&&(this[_0x4c6661(0x27b)]=!0x1,this[_0x4c6661(0x19d)]());})),this[_0x86f62c(0x1d1)](_0x2d4496[_0x86f62c(0x398)][_0x86f62c(0x38b)](()=>{const _0xbaaa30=_0x86f62c;this[_0xbaaa30(0x39d)]&&this[_0xbaaa30(0x24b)]&&this[_0xbaaa30(0x1f6)]&&this[_0xbaaa30(0x106)][_0xbaaa30(0x3a3)]({'unitId':this[_0xbaaa30(0x39d)],'subUnitId':this[_0xbaaa30(0x24b)],'drawingId':this['_activeShapeId']})&&(this[_0xbaaa30(0x162)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x524578(0x3c3)](){const _0x9a1acd=_0x524578;this[_0x9a1acd(0x1d1)](this[_0x9a1acd(0x106)][_0x9a1acd(0x107)]['subscribe'](_0x22a7d7=>{const _0x371fbe=_0x9a1acd;if(_0x22a7d7[_0x371fbe(0x355)]===0x1){let _0x1bdbf1=_0x22a7d7[0x0];if(_0x1bdbf1[_0x371fbe(0x232)]===t['DrawingTypeEnum']['DRAWING_SHAPE']){let _0x5c2f79=this[_0x371fbe(0x13c)][_0x371fbe(0x333)](_0x1bdbf1[_0x371fbe(0x2f9)],_0x1bdbf1[_0x371fbe(0x1fa)],_0x1bdbf1[_0x371fbe(0x167)]);if(_0x5c2f79&&(0x0,u[_0x371fbe(0x2fb)])(_0x5c2f79['getShapeType']())){this[_0x371fbe(0x1f6)]=_0x1bdbf1[_0x371fbe(0x167)],this[_0x371fbe(0x39d)]=_0x1bdbf1[_0x371fbe(0x2f9)],this[_0x371fbe(0x24b)]=_0x1bdbf1[_0x371fbe(0x1fa)],this[_0x371fbe(0x162)](),this[_0x371fbe(0x19d)]();return;}}}this[_0x371fbe(0x1f6)]=void 0x0,this[_0x371fbe(0x39d)]=void 0x0,this[_0x371fbe(0x24b)]=void 0x0,this[_0x371fbe(0x162)]();})),this[_0x9a1acd(0x1d1)](this[_0x9a1acd(0x106)][_0x9a1acd(0x151)]['subscribe'](_0x2d54f7=>{const _0x392a74=_0x9a1acd;if(_0x2d54f7[_0x392a74(0x355)]===0x1){var _0x56fb78;let _0x47daac=_0x2d54f7[0x0],_0x3bada6=(_0x56fb78=this[_0x392a74(0x106)][_0x392a74(0x3a3)](_0x47daac))==null?void 0x0:_0x56fb78[_0x392a74(0x232)];_0x3bada6===t[_0x392a74(0x224)][_0x392a74(0x1c6)]&&_0x47daac[_0x392a74(0x167)]===this[_0x392a74(0x1f6)]?(this[_0x392a74(0x162)](),this[_0x392a74(0x19d)]()):!this[_0x392a74(0x1f6)]&&_0x3bada6===t[_0x392a74(0x224)][_0x392a74(0x1c6)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x47daac[_0x392a74(0x2f9)],_0x47daac[_0x392a74(0x1fa)],_0x47daac[_0x392a74(0x167)]);}})),this[_0x9a1acd(0x1d1)](this['_drawingManagerService'][_0x9a1acd(0x2e4)][_0x9a1acd(0x38b)](_0x1bd63d=>{const _0x4de63b=_0x9a1acd;for(let _0x270a1a of _0x1bd63d){let {drawingId:_0x158d30}=_0x270a1a;if(this['_activeShapeId']===_0x158d30){this[_0x4de63b(0x3b3)]();return;}}}));}[_0x524578(0x196)](_0x4494ad,_0x11ae78,_0x4cd120,_0x373bc0,_0x4f6cf8){const _0x2c7491=_0x524578;var _0x2c59e0,_0x256f46;if(!this[_0x2c7491(0x102)])return;let _0x964216=this[_0x2c7491(0x358)](_0x4494ad);if(!_0x964216)return;let _0x436b1e=this[_0x2c7491(0x271)]?this['_currentConnectionTarget'][_0x2c7491(0x213)]:_0x11ae78,_0x8817f=this[_0x2c7491(0x271)]?this['_currentConnectionTarget']['angle']:this[_0x2c7491(0x2bd)](_0x964216[_0x2c7491(0x32b)],_0x436b1e),_0x5371e7;if(this['_currentConnectionTarget']){let _0x1e3224=this[_0x2c7491(0x106)][_0x2c7491(0x3a3)]({'unitId':this[_0x2c7491(0x271)][_0x2c7491(0x2f9)],'subUnitId':this[_0x2c7491(0x271)]['subUnitId'],'drawingId':this[_0x2c7491(0x271)]['shapeId']});if(_0x1e3224!=null&&_0x1e3224['transform']){let {left:_0x5abfe3=0x0,top:_0x1dd02e=0x0,width:_0x28a6c3=0x0,height:_0x1adf24=0x0,angle:_0x5dde88}=_0x1e3224[_0x2c7491(0x38d)];_0x5371e7=(0x0,u[_0x2c7491(0x325)])({'left':_0x5abfe3,'top':_0x1dd02e,'width':_0x28a6c3,'height':_0x1adf24},_0x5dde88||0x0);}else _0x5371e7={'left':_0x436b1e['x'],'top':_0x436b1e['y'],'width':0x0,'height':0x0};}else _0x5371e7={'left':_0x436b1e['x'],'top':_0x436b1e['y'],'width':0x0,'height':0x0};let _0xa32edf={'point':_0x436b1e,'angle':_0x8817f,'bounds':_0x5371e7},_0x18f1d4=_0x4cd120?_0xa32edf:_0x964216,_0x57b31c=_0x4cd120?_0x964216:_0xa32edf,_0x418c33=this[_0x2c7491(0x102)][_0x2c7491(0x321)](),_0x59430a=(0x0,u[_0x2c7491(0x329)])(_0x18f1d4,_0x57b31c,_0x418c33);_0x59430a&&this['_activeShapeModel'][_0x2c7491(0x29b)](_0x59430a);let _0x5bfec4=(0x0,u[_0x2c7491(0x3b6)])(_0x59430a,_0x418c33);_0x5bfec4[_0x2c7491(0x274)]!==_0x418c33&&this[_0x2c7491(0x102)][_0x2c7491(0x39b)](_0x5bfec4[_0x2c7491(0x274)]);for(let [_0x3b0b6e,_0x230e99]of Object[_0x2c7491(0x391)](_0x5bfec4[_0x2c7491(0x13b)]))this[_0x2c7491(0x102)][_0x2c7491(0x2f2)](_0x3b0b6e,_0x230e99);this[_0x2c7491(0x102)][_0x2c7491(0x20a)]({'width':_0x5bfec4['worldRect']['width'],'height':_0x5bfec4[_0x2c7491(0x14d)][_0x2c7491(0x1dc)]}),_0x373bc0[_0x2c7491(0x384)]({'flipX':_0x5bfec4[_0x2c7491(0x14d)][_0x2c7491(0xfc)],'flipY':_0x5bfec4['worldRect'][_0x2c7491(0x180)],'left':_0x5bfec4[_0x2c7491(0x14d)][_0x2c7491(0x184)],'top':_0x5bfec4['worldRect'][_0x2c7491(0x122)],'width':_0x5bfec4[_0x2c7491(0x14d)]['width'],'height':_0x5bfec4[_0x2c7491(0x14d)][_0x2c7491(0x1dc)],'angle':_0x5bfec4[_0x2c7491(0x307)]}),_0x373bc0['makeDirty'](!0x0);let _0x288e14=(_0x2c59e0=(_0x256f46=this[_0x2c7491(0x271)])==null?void 0x0:_0x256f46[_0x2c7491(0x213)])==null?_0x11ae78:_0x2c59e0;_0x4f6cf8[_0x2c7491(0x384)]({'left':_0x288e14['x']-u['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x288e14['y']-u['ShapeDefaultConfig'][_0x2c7491(0x1f9)]});}[_0x524578(0x376)](_0x15a103,_0x5f9413,_0x1bea07,_0xa10076,_0x4fa5d8){const _0xbde1a8=_0x524578;var _0x1e3070,_0x25dd21,_0x5603fb,_0x28fe11;let _0x458468=(_0x1e3070=(_0x25dd21=this[_0xbde1a8(0x271)])==null?void 0x0:_0x25dd21[_0xbde1a8(0x213)])==null?_0x15a103:_0x1e3070,_0x29862a=u[_0xbde1a8(0x11f)][_0xbde1a8(0x34d)](_0x5f9413,_0x458468,_0x1bea07);_0xa10076[_0xbde1a8(0x384)]({'flipX':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0xfc)],'flipY':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0x180)],'left':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0x184)],'top':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0x122)],'width':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0x1af)],'height':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0x1dc)],'angle':_0x29862a[_0xbde1a8(0x14d)][_0xbde1a8(0x2be)]});let _0x573022=(_0x5603fb=(_0x28fe11=this['_currentConnectionTarget'])==null?void 0x0:_0x28fe11[_0xbde1a8(0x213)])==null?_0x15a103:_0x5603fb;_0x4fa5d8[_0xbde1a8(0x384)]({'left':_0x573022['x']-u['ShapeDefaultConfig'][_0xbde1a8(0x1f9)],'top':_0x573022['y']-u['ShapeDefaultConfig'][_0xbde1a8(0x1f9)]});}[_0x524578(0x358)](_0x51bb91){const _0x82eff2=_0x524578;if(!this[_0x82eff2(0x39d)]||!this[_0x82eff2(0x24b)])return null;let {shapeId:_0x3d4e0c,cxnIndex:_0x10e83b}=_0x51bb91,_0x3aded5=this[_0x82eff2(0x13c)][_0x82eff2(0x333)](this[_0x82eff2(0x39d)],this[_0x82eff2(0x24b)],_0x3d4e0c);if(!_0x3aded5)return null;let _0x877cf4=this['_drawingManagerService'][_0x82eff2(0x3a3)]({'unitId':this[_0x82eff2(0x39d)],'subUnitId':this[_0x82eff2(0x24b)],'drawingId':_0x3d4e0c});if(!(_0x877cf4!=null&&_0x877cf4[_0x82eff2(0x38d)]))return null;let {left:_0x34edf6=0x0,top:_0x506a0c=0x0,width:_0x516274=0x0,height:_0xd2ed28=0x0,flipX:_0x11782b=!0x1,flipY:_0x420f78=!0x1,angle:_0x14f6cb}=_0x877cf4['transform'];_0x3aded5['updateContext']({'width':_0x516274,'height':_0xd2ed28});let _0x36161a=_0x3aded5[_0x82eff2(0x390)]()[_0x82eff2(0x16b)](_0x104e52=>_0x104e52[_0x82eff2(0x2db)]===_0x10e83b);if(!_0x36161a)return null;let _0x1430e3=_0x11782b?_0x516274-_0x36161a['x']:_0x36161a['x'],_0x17be2e=_0x420f78?_0xd2ed28-_0x36161a['y']:_0x36161a['y'];if(_0x14f6cb!==0x0&&_0x14f6cb!=null){let _0x42b74d=_0x14f6cb*Math['PI']/0xb4,_0x3f8a9a=Math['cos'](_0x42b74d),_0x364b2f=Math[_0x82eff2(0x2b5)](_0x42b74d),_0xb7e229=_0x516274/0x2,_0x1c6518=_0xd2ed28/0x2,_0x198c9f=_0x1430e3-_0xb7e229,_0x5a6bee=_0x17be2e-_0x1c6518;_0x1430e3=_0xb7e229+_0x198c9f*_0x3f8a9a-_0x5a6bee*_0x364b2f,_0x17be2e=_0x1c6518+_0x198c9f*_0x364b2f+_0x5a6bee*_0x3f8a9a;}_0x1430e3+=_0x34edf6,_0x17be2e+=_0x506a0c;let _0x57cac2=_0x36161a[_0x82eff2(0x1eb)]/0xea60;_0x11782b&&(_0x57cac2=0xb4-_0x57cac2),_0x420f78&&(_0x57cac2=-_0x57cac2),_0x57cac2+=_0x14f6cb||0x0,_0x57cac2=(_0x57cac2%0x168+0x168)%0x168;let _0x3e11cf=(0x0,u[_0x82eff2(0x325)])({'left':_0x34edf6,'top':_0x506a0c,'width':_0x516274,'height':_0xd2ed28},_0x14f6cb||0x0);return{'point':{'x':_0x1430e3,'y':_0x17be2e},'angle':_0x57cac2,'bounds':_0x3e11cf};}[_0x524578(0x2bd)](_0x5adbec,_0x167f3c){const _0x137bd8=_0x524578;let _0x1b4394=_0x167f3c['x']-_0x5adbec['x'],_0x5cc683=_0x167f3c['y']-_0x5adbec['y'];return Math['abs'](_0x1b4394)>=Math[_0x137bd8(0x318)](_0x5cc683)?_0x1b4394>=0x0?0xb4:0x0:_0x5cc683>=0x0?0x10e:0x5a;}['_reset'](){const _0x191246=_0x524578;this[_0x191246(0x1f6)]=void 0x0,this[_0x191246(0x39d)]=void 0x0,this[_0x191246(0x24b)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x524578(0x3bb)](){const _0x33b089=_0x524578;this['_clearShapeConnectorHandlerObjects'](),super[_0x33b089(0x3bb)]();}};Z=I([F(0x1,t[_0x524578(0x13d)]),F(0x2,o[_0x524578(0x20f)]),F(0x3,a[_0x524578(0x378)]),F(0x4,t[_0x524578(0x2b7)]),F(0x5,(0x0,t[_0x524578(0x34c)])(e[_0x524578(0x2ac)])),F(0x6,(0x0,t[_0x524578(0x34c)])(R)),F(0x7,(0x0,t['Inject'])(Y))],Z);let Q=class extends t[_0x524578(0x239)]{constructor(_0x19f6bb,_0x5bb356,_0x2c1977){const _0x55fc7a=_0x524578;super(),this[_0x55fc7a(0x39e)]=_0x19f6bb,this[_0x55fc7a(0x20e)]=_0x5bb356,this[_0x55fc7a(0x32f)]=_0x2c1977,this[_0x55fc7a(0x2b0)]();}['_initPermission'](){const _0xf8cbf9=_0x524578;this[_0xf8cbf9(0x1d1)](this[_0xf8cbf9(0x39e)][_0xf8cbf9(0x2a8)](_0x396012=>{const _0x496128=_0xf8cbf9;let _0x2ab500,_0x155787;if(_0x396012['id']===e['InsertShapeCommand']['id']||_0x396012['id']===e['SetShapeDrawingDataCommand']['id']||_0x396012['id']===e[_0x496128(0x169)]['id']){let _0x4de2fc=_0x396012[_0x496128(0x158)];_0x2ab500=_0x4de2fc[_0x496128(0x2f9)],_0x155787=_0x4de2fc[_0x496128(0x1fa)];}!_0x2ab500||!_0x155787||this[_0x496128(0x32f)]['permissionCheckWithoutRange']({'workbookTypes':[n[_0x496128(0x276)]],'worksheetTypes':[n[_0x496128(0x1dd)]]},_0x2ab500,_0x155787)||this['_sheetPermissionCheckController'][_0x496128(0x130)](this[_0x496128(0x20e)]['t'](_0x496128(0x171)));}));}};Q=I([F(0x0,(0x0,t[_0x524578(0x34c)])(t[_0x524578(0x13d)])),F(0x1,(0x0,t[_0x524578(0x34c)])(t[_0x524578(0x177)])),F(0x2,(0x0,t[_0x524578(0x34c)])(n[_0x524578(0x399)]))],Q);let $=class extends t[_0x524578(0x125)]{constructor(_0x382d7c=Se,_0x4d0609,_0x47a53a,_0x5d6f9b,_0x27ba7b){const _0x3fa375=_0x524578;super(),this[_0x3fa375(0x112)]=_0x382d7c,this[_0x3fa375(0x1ef)]=_0x4d0609,this[_0x3fa375(0x39e)]=_0x47a53a,this['_configService']=_0x5d6f9b,this[_0x3fa375(0x3cd)]=_0x27ba7b;let {..._0x2ac334}=(0x0,t['merge'])({},Se,this[_0x3fa375(0x112)]);this[_0x3fa375(0x22f)][_0x3fa375(0x26b)](_0x3fa375(0x2da),_0x2ac334),this[_0x3fa375(0x157)]();}[_0x524578(0x257)](){const _0x165740=_0x524578;(0x0,t[_0x165740(0x30b)])(this[_0x165740(0x1ef)],[[V],[J],[L]]);}[_0x524578(0x348)](){const _0x2e30aa=_0x524578;this[_0x2e30aa(0x1ef)]['get'](V)[_0x2e30aa(0x3a6)]();}[_0x524578(0x38f)](){const _0x481b94=_0x524578;[[Y],[R],[X]][_0x481b94(0x280)](_0x2f2a9b=>this[_0x481b94(0x1ef)][_0x481b94(0x311)](_0x2f2a9b)),(0x0,t[_0x481b94(0x30b)])(this[_0x481b94(0x1ef)],[[X]]),this['_renderManagerService'][_0x481b94(0x3c5)](t['UniverInstanceType'][_0x481b94(0x310)],[Y]),this[_0x481b94(0x3cd)]['registerRenderModule'](t[_0x481b94(0x3cb)][_0x481b94(0x310)],[R]),this[_0x481b94(0x3cd)][_0x481b94(0x3c5)](t[_0x481b94(0x3cb)]['UNIVER_SHEET'],[W]),this[_0x481b94(0x3cd)][_0x481b94(0x3c5)](t[_0x481b94(0x3cb)][_0x481b94(0x310)],[Z]),this[_0x481b94(0x3cd)]['registerRenderModule'](t['UniverInstanceType'][_0x481b94(0x310)],[K]),this[_0x481b94(0x3cd)][_0x481b94(0x3c5)](t[_0x481b94(0x3cb)][_0x481b94(0x368)],[q]);}[_0x524578(0x24e)](){const _0x12a68d=_0x524578;this[_0x12a68d(0x1ef)][_0x12a68d(0x311)]([U]),this[_0x12a68d(0x1ef)]['get'](U);let _0x3e387b=this[_0x12a68d(0x1ef)];[[V],[J],[L],[H],[x],[G],[B],[Q]][_0x12a68d(0x280)](_0x454e27=>_0x3e387b[_0x12a68d(0x311)](_0x454e27)),(0x0,t[_0x12a68d(0x30b)])(this[_0x12a68d(0x1ef)],[[V],[J],[L],[H],[x],[G],[B],[Q]]);}[_0x524578(0x157)](){const _0x5997c4=_0x524578;[z,C,O,w,T,D,E,A,j,k,se]['forEach'](_0x2d67e2=>this[_0x5997c4(0x1d1)](this['_commandService'][_0x5997c4(0x380)](_0x2d67e2)));}};b($,_0x524578(0x309),t[_0x524578(0x3cb)][_0x524578(0x310)]),b($,_0x524578(0x3aa),'SHEET_SHAPE_UI_PLUGIN'),b($,_0x524578(0x27f),be),b($,'version',xe),$=I([(0x0,t[_0x524578(0x39a)])(p['UniverShapeEditorUIPlugin'],h[_0x524578(0x282)],e[_0x524578(0x3b0)]),F(0x1,(0x0,t[_0x524578(0x34c)])(t[_0x524578(0x22b)])),F(0x2,t['ICommandService']),F(0x3,t[_0x524578(0x201)]),F(0x4,o[_0x524578(0x20f)])],$),exports['SetShapeTextFontSizeCommand']=T,exports['SetShapeTextFontSizeDecreaseCommand']=D,exports[_0x524578(0x2ff)]=E,exports[_0x524578(0x120)]=w,exports[_0x524578(0x1e8)]=O,exports['ShapeDocAlignCommand']=k,Object[_0x524578(0x319)](exports,_0x524578(0x264),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x524578(0x319)](exports,_0x524578(0x1f4),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x524578(0x1a8)]=C;
|
|
1
|
+
const _0x2daf50=_0x4b78;(function(_0x518c15,_0x499a86){const _0x17b719=_0x4b78,_0xa33eb8=_0x518c15();while(!![]){try{const _0x53396d=-parseInt(_0x17b719(0x46d))/0x1*(parseInt(_0x17b719(0x2b2))/0x2)+-parseInt(_0x17b719(0x3d7))/0x3*(-parseInt(_0x17b719(0x1ae))/0x4)+parseInt(_0x17b719(0x3d3))/0x5*(-parseInt(_0x17b719(0x418))/0x6)+parseInt(_0x17b719(0x41f))/0x7+parseInt(_0x17b719(0x3ab))/0x8*(parseInt(_0x17b719(0x322))/0x9)+parseInt(_0x17b719(0x291))/0xa*(parseInt(_0x17b719(0x289))/0xb)+parseInt(_0x17b719(0x1a3))/0xc*(-parseInt(_0x17b719(0x1de))/0xd);if(_0x53396d===_0x499a86)break;else _0xa33eb8['push'](_0xa33eb8['shift']());}catch(_0x56d57b){_0xa33eb8['push'](_0xa33eb8['shift']());}}}(_0xa756,0x3c677),Object[_0x2daf50(0x34c)](exports,Symbol['toStringTag'],{'value':_0x2daf50(0x231)}));let e=require('@univerjs/ui'),t=require('@univerjs-pro/engine-shape'),n=require('@univerjs-pro/shape-editor-ui'),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/drawing-ui'),d=require('react/jsx-runtime'),f=require('@univerjs-pro/license'),p=require('@univerjs/sheets-drawing-ui'),m=require('@univerjs/icons'),h=require('@univerjs/sheets-drawing'),g=require('react'),_=require('@univerjs/docs'),v=require('@univerjs/docs-ui');function y(_0x48e22a,_0x4d6f33){const _0x27823f=_0x2daf50;let _0xf2f389={};for(let _0x2e7722 of Object[_0x27823f(0x296)](_0x4d6f33)){let _0x3e99e0=_0x4d6f33[_0x2e7722],_0x4f7765=_0x48e22a[_0x2e7722];if(_0x3e99e0!==void 0x0){if(_0x4f7765===void 0x0){_0xf2f389[_0x2e7722]=void 0x0;continue;}typeof _0x3e99e0==_0x27823f(0x25c)&&_0x3e99e0&&!Array[_0x27823f(0x390)](_0x3e99e0)&&typeof _0x4f7765==_0x27823f(0x25c)&&_0x4f7765&&!Array[_0x27823f(0x390)](_0x4f7765)?_0xf2f389[_0x2e7722]=y(_0x4f7765,_0x3e99e0):_0xf2f389[_0x2e7722]=_0x4f7765;}}return _0xf2f389;}const b={'type':i[_0x2daf50(0x429)][_0x2daf50(0x2ba)],'id':_0x2daf50(0x480),'handler':(_0x22f33e,_0x22e278)=>{const _0x31dde6=_0x2daf50;let _0x480fdb=_0x22f33e[_0x31dde6(0x423)](r['SheetsShapeService']),{unitId:_0x47bc06,subUnitId:_0x145b7a,shapeType:_0x5260b4,shapeId:_0x325729,shapeData:_0x30a14d,oldShapeJSON:_0x380e61}=_0x22e278;if(!_0x480fdb['getShapeModel'](_0x47bc06,_0x145b7a,_0x325729))return!0x1;let _0x5d2f73=_0x22f33e[_0x31dde6(0x423)](i['ICommandService']),_0x5f03dc=_0x22f33e[_0x31dde6(0x423)](i['IUndoRedoService']),{oldShapeType:_0x46f26c,oldShapeData:_0x21e547={}}=_0x380e61,_0x4643e0=y(_0x21e547,_0x30a14d||{}),_0x405872={'id':r[_0x31dde6(0x3dc)]['id'],'params':{'unitId':_0x47bc06,'subUnitId':_0x145b7a,'shapeId':_0x325729,'shapeType':_0x5260b4,'shapeData':_0x30a14d}},_0x181bcc={'id':r['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x47bc06,'subUnitId':_0x145b7a,'shapeId':_0x325729,'shapeType':_0x46f26c,'shapeData':_0x4643e0}};return _0x5d2f73['syncExecuteCommand'](_0x405872['id'],_0x405872[_0x31dde6(0x3e9)])?(_0x5f03dc['pushUndoRedo']({'unitID':_0x47bc06,'undoMutations':[_0x181bcc],'redoMutations':[_0x405872]}),!0x0):!0x1;}};function x(_0x203829,_0x4cfd0d,_0x59a7cc,_0x1b8897,_0x3438c7,_0x504208){const _0x395e82=_0x2daf50;let _0x3123cd={'unitId':_0x4cfd0d,'subUnitId':_0x59a7cc,'shapeId':_0x1b8897,'shapeData':_0x504208,'oldShapeJSON':_0x3438c7};return _0x203829[_0x395e82(0x374)](b['id'],_0x3123cd);}function S(_0x110954,_0x106cc3,_0x593083,_0x2e66f6,_0x59f694,_0x193f5d){const _0x2f66ea=_0x2daf50;let _0x293712={'unitId':_0x106cc3,'subUnitId':_0x593083,'shapeId':_0x2e66f6,'shapeData':_0x193f5d,'oldShapeJSON':_0x59f694};return _0x110954[_0x2f66ea(0x374)](b['id'],_0x293712);}function C(_0x409264){'@babel/helpers - typeof';const _0x3683d2=_0x2daf50;return C=typeof Symbol==_0x3683d2(0x33e)&&typeof Symbol['iterator']==_0x3683d2(0x1bc)?function(_0x5d917d){return typeof _0x5d917d;}:function(_0x54b040){const _0xfda1ac=_0x3683d2;return _0x54b040&&typeof Symbol=='function'&&_0x54b040[_0xfda1ac(0x312)]===Symbol&&_0x54b040!==Symbol[_0xfda1ac(0x21a)]?_0xfda1ac(0x1bc):typeof _0x54b040;},C(_0x409264);}function w(_0x30f990,_0x38277e){const _0x3a55b7=_0x2daf50;if(C(_0x30f990)!=_0x3a55b7(0x25c)||!_0x30f990)return _0x30f990;var _0x53ed24=_0x30f990[Symbol[_0x3a55b7(0x461)]];if(_0x53ed24!==void 0x0){var _0x3c4518=_0x53ed24[_0x3a55b7(0x1e2)](_0x30f990,_0x38277e||_0x3a55b7(0x432));if(C(_0x3c4518)!=_0x3a55b7(0x25c))return _0x3c4518;throw TypeError(_0x3a55b7(0x2fb));}return(_0x38277e===_0x3a55b7(0x1ef)?String:Number)(_0x30f990);}function T(_0xf55085){const _0x343d91=_0x2daf50;var _0x284d9c=w(_0xf55085,_0x343d91(0x1ef));return C(_0x284d9c)==_0x343d91(0x1bc)?_0x284d9c:_0x284d9c+'';}function E(_0x38deed,_0x5917c7,_0x5b203a){return(_0x5917c7=T(_0x5917c7))in _0x38deed?Object['defineProperty'](_0x38deed,_0x5917c7,{'value':_0x5b203a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38deed[_0x5917c7]=_0x5b203a,_0x38deed;}function D(_0x4c9da7,_0x245f4e,_0x2d5afe){const _0x155266=_0x2daf50;var _0xe864b;let _0x5b5b58=(0x0,n[_0x155266(0x325)])(_0x4c9da7,{..._0x245f4e,'dataModel':{...(_0xe864b=_0x245f4e[_0x155266(0x39c)])==null?{}:_0xe864b,..._0x2d5afe?{'doc':_0x2d5afe}:null}}),_0x59f9a6=(0x0,n['resolveShapeTextEditorWrapStrategy'])(_0x5b5b58);return{'clip':(0x0,n[_0x155266(0x1d1)])(_0x5b5b58,_0x59f9a6),'wrapStrategy':_0x59f9a6};}var O=class extends s[_0x2daf50(0x355)]{constructor(_0x404f94,_0x1d39bc){const _0x1f47fd=_0x2daf50;super(_0x404f94,_0x1d39bc),E(this,'_props',void 0x0),E(this,_0x1f47fd(0x217),!0x0),E(this,_0x1f47fd(0x27f),i[_0x1f47fd(0x2bb)][_0x1f47fd(0x324)]),E(this,_0x1f47fd(0x454),!0x0),this[_0x1f47fd(0x35b)]={..._0x1d39bc},this[_0x1f47fd(0x3dd)]();}[_0x2daf50(0x3dd)](){const _0x21f4f4=_0x2daf50;this[_0x21f4f4(0x2ce)]['subscribeEvent'](_0x2911c6=>{const _0x43c36d=_0x21f4f4;this[_0x43c36d(0x1e6)](_0x2911c6);});}[_0x2daf50(0x2e4)](_0x153e52){const _0x3a33c3=_0x2daf50;this[_0x3a33c3(0x35b)]['prstGeom']=_0x153e52;}[_0x2daf50(0x351)](_0x77a00a){const _0x3d62bd=_0x2daf50;this['_props']['isEditing']=_0x77a00a,this[_0x3d62bd(0x1c7)](!0x0);}get[_0x2daf50(0x378)](){const _0x474d9d=_0x2daf50;return this['_props'][_0x474d9d(0x378)];}get[_0x2daf50(0x1a1)](){const _0x1b7b21=_0x2daf50;return this[_0x1b7b21(0x35b)][_0x1b7b21(0x1a1)];}['_updateSrcRectByTransform'](_0x444eff){const _0xdfc85f=_0x2daf50;if(this[_0xdfc85f(0x35b)][_0xdfc85f(0x1fb)]==null||!this[_0xdfc85f(0x217)])return;let {width:_0x4d5d56,height:_0x1a2f53}=this,{width:_0x2f9b03=0x0,height:_0xf56bac=0x0}=_0x444eff[_0xdfc85f(0x1f2)],{left:_0x29d925=0x0,top:_0x4c0983=0x0,right:_0x13c822=0x0,bottom:_0x4633db=0x0}=this[_0xdfc85f(0x35b)]['srcRect'],_0x233181=_0x29d925,_0x1e4520=_0x4c0983,_0x21da4f=_0x13c822,_0x452529=_0x4633db,_0x229830=!0x1;if(_0x2f9b03!==0x0&&_0x2f9b03!==_0x4d5d56){let _0x4317ae=_0x29d925/_0x2f9b03,_0xec1743=_0x13c822/_0x2f9b03;_0x233181=_0x4d5d56*_0x4317ae,_0x21da4f=_0x4d5d56*_0xec1743,_0x229830=!0x0;}if(_0xf56bac!==0x0&&_0xf56bac!==_0x1a2f53){let _0x2bb68e=_0x4c0983/_0xf56bac,_0x3776a2=_0x4633db/_0xf56bac;_0x1e4520=_0x1a2f53*_0x2bb68e,_0x452529=_0x1a2f53*_0x3776a2,_0x229830=!0x0;}_0x229830&&this['setSrcRect']({'left':_0x233181,'top':_0x1e4520,'right':_0x21da4f,'bottom':_0x452529});}[_0x2daf50(0x1fc)](_0x61104b){const _0x638c54=_0x2daf50;this[_0x638c54(0x35b)][_0x638c54(0x1fb)]=_0x61104b,this[_0x638c54(0x1c7)](!0x0);}[_0x2daf50(0x2ab)](_0x388b03){const _0x51c2d7=_0x2daf50;this[_0x51c2d7(0x35b)]['image']=_0x388b03,this[_0x51c2d7(0x1c7)](!0x0);}set['transform'](_0x4e0ce3){const _0x558839=_0x2daf50;this[_0x558839(0x45a)]=_0x4e0ce3;}get[_0x2daf50(0x1f8)](){const _0x32eee7=_0x2daf50;this['_transform']||this[_0x32eee7(0x2c8)]();let _0x34fd92=this[_0x32eee7(0x45a)]['clone']();return this[_0x32eee7(0x32d)](_0x34fd92);}get[_0x2daf50(0x1a0)](){const _0x4926df=_0x2daf50;return this[_0x4926df(0x35b)][_0x4926df(0x1a0)];}get[_0x2daf50(0x1b5)](){const _0x424ab5=_0x2daf50;return this[_0x424ab5(0x35b)][_0x424ab5(0x1b5)];}get[_0x2daf50(0x204)](){const _0x17b038=_0x2daf50;return s[_0x17b038(0x23b)]['SHAPE'];}[_0x2daf50(0x218)](_0x2e0e99,_0x4a71fb,_0x4a5ab3,_0x40f943){const _0x1f9feb=_0x2daf50;let _0x236a21=this[_0x1f9feb(0x35b)][_0x1f9feb(0x1a0)];if(!_0x236a21||!_0x4a71fb)return;let _0x2df7c0=_0x4a5ab3==null?this['width']:_0x4a5ab3,_0x5b694c=_0x40f943==null?this[_0x1f9feb(0x1c6)]:_0x40f943,_0x4a07bb={'shapeType':_0x236a21[_0x1f9feb(0x3ca)](),'width':_0x2df7c0,'height':_0x5b694c},_0x14a133={'renderMode':t[_0x1f9feb(0x22c)][_0x1f9feb(0x1e9)],'oKey':this[_0x1f9feb(0x2b9)],'image':this[_0x1f9feb(0x35b)][_0x1f9feb(0x1ec)],'angle':this['angle']};_0x236a21[_0x1f9feb(0x3a0)](_0x4a07bb),_0x2e0e99[_0x1f9feb(0x327)]();let _0x2f6aa4={'top':0x0,'left':0x0,'width':_0x2df7c0,'height':_0x5b694c};_0x236a21['render'](_0x2e0e99,_0x2f6aa4,_0x14a133),_0x2e0e99[_0x1f9feb(0x20c)]();let _0x5ecdb0=_0x236a21[_0x1f9feb(0x43e)](),_0x33b7b5=_0x236a21[_0x1f9feb(0x3b5)](_0x2f6aa4),_0x39f759=_0x236a21[_0x1f9feb(0x280)]();if(_0x5ecdb0&&_0x33b7b5&&!_0x39f759){_0x2e0e99[_0x1f9feb(0x327)](),this['getState']()[_0x1f9feb(0x3c0)]&&_0x2e0e99['scale'](-0x1,0x1);let _0x51ad9c=_0x2df7c0/0x2,_0x2c09c2=_0x5b694c/0x2;_0x2e0e99[_0x1f9feb(0x334)](-_0x51ad9c,-_0x2c09c2),_0x2e0e99[_0x1f9feb(0x2cf)](),this[_0x1f9feb(0x220)](_0x2e0e99,_0x5ecdb0,_0x33b7b5),_0x2e0e99[_0x1f9feb(0x20c)]();}}[_0x2daf50(0x26c)](_0x119f5b){}['_drawShapeText'](_0x102f20,_0x52a4fd,_0x3bcc){const _0x15c9af=_0x2daf50;var _0x4a23cf;this[_0x15c9af(0x35b)][_0x15c9af(0x471)]||(!((_0x4a23cf=_0x52a4fd[_0x15c9af(0x39c)])!=null&&_0x4a23cf['doc'])&&_0x15c9af(0x315)in _0x52a4fd&&_0x52a4fd[_0x15c9af(0x315)]===!0x1?this[_0x15c9af(0x230)](_0x102f20,_0x52a4fd,_0x3bcc):this['_drawRichText'](_0x102f20,_0x52a4fd,_0x3bcc));}[_0x2daf50(0x230)](_0x1807b2,_0x54bd82,_0x358f7d){const _0x9a80e9=_0x2daf50;var _0x2eaa91;this[_0x9a80e9(0x22b)](_0x1807b2,{..._0x54bd82,'text':(_0x2eaa91=_0x54bd82[_0x9a80e9(0x2d7)])==null?'':_0x2eaa91,'dataModel':{'doc':(0x0,n['plainShapeTextToDocumentData'])(_0x54bd82,_0x9a80e9(0x409)+this['oKey'])}},_0x358f7d);}[_0x2daf50(0x22b)](_0x5818c4,_0x743074,_0x1d9212){const _0x26c59a=_0x2daf50;var _0x1a040f,_0xcc5e5b;let _0x1d7b77=this['_props'][_0x26c59a(0x3f0)];if(!_0x743074['dataModel']||!_0x1d7b77)return;let _0x18770c=(0x0,n[_0x26c59a(0x1f5)])(_0x743074[_0x26c59a(0x39c)]);if(!_0x18770c)return;let _0x16fb40=_0x18770c['doc'];if(!_0x16fb40)return;let _0x1c93bf=(_0x1a040f=_0x18770c['va'])==null?i[_0x26c59a(0x305)][_0x26c59a(0x3f5)]:_0x1a040f,_0x16f870=(_0xcc5e5b=_0x18770c['ha'])==null?i['HorizontalAlign'][_0x26c59a(0x38b)]:_0xcc5e5b,_0x39560a=D(this[_0x26c59a(0x35b)][_0x26c59a(0x1a0)][_0x26c59a(0x389)](),_0x743074,_0x16fb40),_0x37a987=_0x743074[_0x26c59a(0x2e9)],_0xab08f4=new i[(_0x26c59a(0x3e1))]((0x0,n[_0x26c59a(0x440)])(_0x16fb40,{'isHorizontal':_0x37a987!==!0x1,'textRect':_0x1d9212,'verticalAlign':_0x1c93bf,'horizontalAlign':_0x16f870,'wrapStrategy':_0x39560a[_0x26c59a(0x360)]})),_0x465209=new s[(_0x26c59a(0x40e))](_0xab08f4),_0x1ef909=s[_0x26c59a(0x345)][_0x26c59a(0x41a)](_0x465209,_0x1d7b77);_0x1ef909[_0x26c59a(0x1ab)]();let _0x49cd33=_0x1ef909['getActualSize']()[_0x26c59a(0x2c7)],_0x17753b=(0x0,n['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x49cd33,'verticalAlign':_0x1c93bf,'viewportHeight':_0x1d9212[_0x26c59a(0x1c6)]});_0xab08f4[_0x26c59a(0x268)]({'pageSize':{'width':_0x37a987===!0x1?_0x1d9212[_0x26c59a(0x1c6)]:_0x1d9212[_0x26c59a(0x458)],'height':_0x17753b['contentHeight']}}),_0xab08f4[_0x26c59a(0x354)]({'t':_0x17753b[_0x26c59a(0x267)]}),_0x1ef909[_0x26c59a(0x1ab)]();let _0x210e34=new s[(_0x26c59a(0x1e3))]('shape-text-'+this[_0x26c59a(0x2b9)],_0x1ef909,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x26c59a(0x1c7)](!0x0)});_0x210e34[_0x26c59a(0x328)](_0x1d9212[_0x26c59a(0x458)],_0x17753b[_0x26c59a(0x252)]),_0x5818c4[_0x26c59a(0x327)](),_0x5818c4[_0x26c59a(0x359)](_0x1d9212['left'],_0x1d9212[_0x26c59a(0x286)]),_0x39560a[_0x26c59a(0x412)]&&(_0x5818c4['beginPath'](),_0x5818c4[_0x26c59a(0x2c9)](0x0,_0x17753b[_0x26c59a(0x391)],_0x1d9212[_0x26c59a(0x458)],_0x17753b['clipHeight']),_0x5818c4[_0x26c59a(0x412)]()),_0x17753b['contentVerticalOffset']&&_0x5818c4[_0x26c59a(0x359)](0x0,_0x17753b['contentVerticalOffset']),_0x210e34['draw'](_0x5818c4),_0x5818c4['restore'](),_0x210e34['dispose'](),_0x1ef909[_0x26c59a(0x428)](),_0x465209[_0x26c59a(0x428)](),_0xab08f4[_0x26c59a(0x428)]();}[_0x2daf50(0x301)](_0x408e55,_0x544a76,_0x40cb10=!0x1){const _0x381618=_0x2daf50;if(!this[_0x381618(0x371)])return this['makeDirty'](!0x1),this;let {width:_0x23be96,height:_0x14a000,left:_0x13e3b7,top:_0x37776a}=this,_0x2ce593=this[_0x381618(0x269)]();if(_0x23be96=_0x2ce593[_0x381618(0x458)],_0x14a000=_0x2ce593[_0x381618(0x1c6)],_0x13e3b7=_0x2ce593['left'],_0x37776a=_0x2ce593[_0x381618(0x286)],this[_0x381618(0x2af)](_0x544a76)){let {top:_0x46a214,left:_0xfd1d5e,bottom:_0xcbf7ff,right:_0x2b70f6}=_0x544a76[_0x381618(0x47a)];if(_0x23be96+this[_0x381618(0x448)]+_0x13e3b7<_0xfd1d5e||_0x2b70f6<_0x13e3b7||_0x14a000+this[_0x381618(0x448)]+_0x37776a<_0x46a214||_0xcbf7ff<_0x37776a)return this;}let _0x1a66f7=_0x13e3b7+_0x23be96/0x2,_0x44b8ce=_0x37776a+_0x14a000/0x2,_0x2b54c1=this[_0x381618(0x1f8)]['getMatrix']();if(this[_0x381618(0x35b)][_0x381618(0x471)]){let _0x4bab51=this[_0x381618(0x37d)](),_0x5feb71=new s[(_0x381618(0x226))]();_0x5feb71['composeMatrix']({..._0x4bab51}),_0x2b54c1=_0x5feb71['getMatrix']();}return _0x408e55[_0x381618(0x327)](),this[_0x381618(0x35b)][_0x381618(0x1a0)][_0x381618(0x287)]===!0x0||_0x408e55[_0x381618(0x1f8)](_0x2b54c1[0x0],_0x2b54c1[0x1],_0x2b54c1[0x2],_0x2b54c1[0x3],_0x1a66f7,_0x44b8ce),this['_draw'](_0x408e55,_0x544a76,_0x23be96,_0x14a000),_0x408e55['restore'](),this['makeDirty'](!0x1),this;}[_0x2daf50(0x1d0)](_0x156ae9){const _0x2f3284=_0x2daf50;let {left:_0x1157e8,top:_0x20c4a6,width:_0x203a60,height:_0x2dcb07}=this[_0x2f3284(0x269)](),_0x3e87a2=this[_0x2f3284(0x1f8)][_0x2f3284(0x239)](),_0xa464f9=_0x1157e8+_0x203a60/0x2,_0x55ce08=_0x20c4a6+_0x2dcb07/0x2,_0x59bb25=new s[(_0x2f3284(0x226))]([_0x3e87a2[0x0],_0x3e87a2[0x1],_0x3e87a2[0x2],_0x3e87a2[0x3],_0xa464f9,_0x55ce08]),_0x744d07=this[_0x2f3284(0x2e1)]();return(this[_0x2f3284(0x466)]&&(_0x744d07==null?void 0x0:_0x744d07[_0x2f3284(0x204)])===s[_0x2f3284(0x23b)]['GROUP']?_0x744d07['ancestorTransform'][_0x2f3284(0x37e)](_0x59bb25):_0x59bb25)[_0x2f3284(0x397)]()['applyPoint'](_0x156ae9);}[_0x2daf50(0x1ee)](_0x17d349){const _0x344a50=_0x2daf50;let {left:_0x5c1975,top:_0x1a3301,width:_0x45dcda,height:_0xca961}=this[_0x344a50(0x269)](),_0x2aabd6=_0x5c1975+_0x45dcda/0x2,_0x1e0b61=_0x1a3301+_0xca961/0x2,_0x396de7=this[_0x344a50(0x1f8)]['getMatrix'](),_0x41e159=new s['Transform']([_0x396de7[0x0],_0x396de7[0x1],_0x396de7[0x2],_0x396de7[0x3],_0x2aabd6,_0x1e0b61]),_0x513017=this[_0x344a50(0x2e1)](),_0x594f22=(this['isInGroup']&&(_0x513017==null?void 0x0:_0x513017[_0x344a50(0x204)])===s['RENDER_CLASS_TYPE']['GROUP']?_0x513017['ancestorTransform'][_0x344a50(0x37e)](_0x41e159):_0x41e159)[_0x344a50(0x397)]()[_0x344a50(0x319)](_0x17d349),_0x2650c7=_0x45dcda/0x2,_0x24ecea=_0xca961/0x2,_0x3381e9=this['_props']['shapeModel'];return _0x3381e9&&_0x3381e9[_0x344a50(0x280)]()?_0x3381e9[_0x344a50(0x3f2)](_0x594f22['x'],_0x594f22['y'],_0x45dcda,_0xca961):_0x594f22['x']>=-_0x2650c7-this[_0x344a50(0x448)]/0x2&&_0x594f22['x']<=_0x2650c7+this['strokeWidth']/0x2&&_0x594f22['y']>=-_0x24ecea-this[_0x344a50(0x448)]/0x2&&_0x594f22['y']<=_0x24ecea+this[_0x344a50(0x448)]/0x2;}[_0x2daf50(0x428)](){const _0x187d49=_0x2daf50;this[_0x187d49(0x35b)][_0x187d49(0x1a0)]=null,super['dispose']();}},k=class extends s[_0x2daf50(0x355)]{constructor(_0x2d15a4,_0x4ca012){const _0x4acf69=_0x2daf50;super(_0x2d15a4,_0x4ca012),E(this,_0x4acf69(0x433),null),E(this,'_adjName',null),E(this,_0x4acf69(0x19c),null),E(this,_0x4acf69(0x1a5),null),_0x4ca012&&this['setShapeProps'](_0x4ca012);}['getDrawingSearch'](){const _0x2802c4=_0x2daf50;return{'unitId':this[_0x2802c4(0x19c)],'subUnitId':this[_0x2802c4(0x1a5)],'drawingId':this['_shapeId']};}[_0x2daf50(0x26d)](_0x4ab3fa){const _0x1befdf=_0x2daf50;_0x4ab3fa['shapeId']!==void 0x0&&(this['_shapeId']=_0x4ab3fa[_0x1befdf(0x1b5)]),_0x4ab3fa[_0x1befdf(0x25a)]!==void 0x0&&(this[_0x1befdf(0x470)]=_0x4ab3fa['adjName']),_0x4ab3fa['unitId']!==void 0x0&&(this[_0x1befdf(0x19c)]=_0x4ab3fa['unitId']),_0x4ab3fa[_0x1befdf(0x1a1)]!==void 0x0&&(this[_0x1befdf(0x1a5)]=_0x4ab3fa[_0x1befdf(0x1a1)]),this[_0x1befdf(0x201)]({'width':_0x4ab3fa[_0x1befdf(0x458)],'height':_0x4ab3fa[_0x1befdf(0x1c6)]});}['_draw'](_0x2a2684){const _0x17b491=_0x2daf50;s[_0x17b491(0x2c3)][_0x17b491(0x402)](_0x2a2684,{'radius':t[_0x17b491(0x24f)]['adjHandleSize'],'fill':t['ShapeDefaultConfig'][_0x17b491(0x1fe)],'stroke':t[_0x17b491(0x24f)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function A(_0x4f2f58,_0x11e584){return function(_0x222a57,_0xebe80b){_0x11e584(_0x222a57,_0xebe80b,_0x4f2f58);};}function j(_0x5dde48,_0x1a4414,_0x139c1d,_0x5cfcf5){const _0x4ece78=_0x2daf50;var _0x18cc0b=arguments[_0x4ece78(0x3ce)],_0x310d87=_0x18cc0b<0x3?_0x1a4414:_0x5cfcf5===null?_0x5cfcf5=Object['getOwnPropertyDescriptor'](_0x1a4414,_0x139c1d):_0x5cfcf5,_0x463295;if(typeof Reflect==_0x4ece78(0x25c)&&typeof Reflect[_0x4ece78(0x26e)]=='function')_0x310d87=Reflect[_0x4ece78(0x26e)](_0x5dde48,_0x1a4414,_0x139c1d,_0x5cfcf5);else{for(var _0x54d76a=_0x5dde48[_0x4ece78(0x3ce)]-0x1;_0x54d76a>=0x0;_0x54d76a--)(_0x463295=_0x5dde48[_0x54d76a])&&(_0x310d87=(_0x18cc0b<0x3?_0x463295(_0x310d87):_0x18cc0b>0x3?_0x463295(_0x1a4414,_0x139c1d,_0x310d87):_0x463295(_0x1a4414,_0x139c1d))||_0x310d87);}return _0x18cc0b>0x3&&_0x310d87&&Object['defineProperty'](_0x1a4414,_0x139c1d,_0x310d87),_0x310d87;}let M=class extends i['Disposable']{constructor(_0x72715b,_0x2980a1,_0x53a9ed,_0x4140de,_0x39cd2e){const _0x4cfb57=_0x2daf50;super(),this[_0x4cfb57(0x449)]=_0x72715b,this[_0x4cfb57(0x453)]=_0x2980a1,this[_0x4cfb57(0x464)]=_0x53a9ed,this[_0x4cfb57(0x35c)]=_0x4140de,this[_0x4cfb57(0x460)]=_0x39cd2e;}['renderDrawingShape'](_0x4c2f77,_0x20c610,_0x1cd30e){const _0x17fb5c=_0x2daf50;let {transform:_0x256566,drawingType:_0xc764da,srcRect:_0x4fb8a7,prstGeom:_0x2ec6e1,groupId:_0x134311,unitId:_0xdc0d31,subUnitId:_0x179f9e,drawingId:_0x5bbcf7,isMultiTransform:_0x52a7e0,transforms:_0x3a5903,hidden:_0xf1adf9,selectable:_0x2ebab1}=_0x4c2f77;if(_0xc764da!==i['DrawingTypeEnum']['DRAWING_SHAPE']||!this['_drawingManagerService'][_0x17fb5c(0x1e7)]()||_0x256566==null)return;let _0x10e642=this[_0x17fb5c(0x449)][_0x17fb5c(0x3c2)]();_0x10e642&&_0x20c610[_0x17fb5c(0x446)](n['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x1cc23a=_0x52a7e0&&_0x3a5903?_0x3a5903:[_0x256566],_0x2d5b35=[];for(let _0x513790 of _0x1cc23a){let {left:_0x57bff7,top:_0xf27029,width:_0x4a1b60,height:_0x1bd89a,angle:_0x1e256c,flipX:_0x25583e,flipY:_0x36586b,skewX:_0x2a935a,skewY:_0x408478}=_0x513790,_0x144257=_0x1cc23a[_0x17fb5c(0x3af)](_0x513790),_0x42761f=(0x0,o[_0x17fb5c(0x41c)])({'unitId':_0xdc0d31,'subUnitId':_0x179f9e,'drawingId':_0x5bbcf7},_0x52a7e0?_0x144257:void 0x0),_0x95f047=_0x20c610[_0x17fb5c(0x23d)](_0x42761f);if(_0x95f047!=null){_0x95f047[_0x17fb5c(0x201)]({'left':_0x57bff7,'top':_0xf27029,'width':_0x4a1b60,'height':_0x1bd89a,'angle':_0x1e256c,'flipX':_0x25583e,'flipY':_0x36586b,'skewX':_0x2a935a,'skewY':_0x408478});continue;}let _0x593640=this[_0x17fb5c(0x449)]['getDrawingOrder'](_0xdc0d31,_0x179f9e),_0x1e62df=_0x593640[_0x17fb5c(0x3af)](_0x5bbcf7);if(_0x20c610[_0x17fb5c(0x23d)](_0x42761f)||!this[_0x17fb5c(0x449)][_0x17fb5c(0x1e7)]())continue;let _0xbff127=this['_sheetsShapeService']['getShapeModel'](_0xdc0d31,_0x179f9e,_0x5bbcf7);if(!_0xbff127)continue;let _0x20755c=new O(_0x42761f,{...(0x0,t[_0x17fb5c(0x1ce)])(_0xbff127[_0x17fb5c(0x3ca)]())?{..._0x513790,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x513790},'zIndex':_0x1e62df===-0x1?_0x593640[_0x17fb5c(0x3ce)]-0x1:_0x1e62df,'shapeModel':_0xbff127,'localeService':this['_localeService'],'shapeId':_0x5bbcf7,'unitId':_0xdc0d31,'subUnitId':_0x179f9e,'visible':_0xf1adf9!==!0x0,'evented':_0x2ebab1!==!0x1});_0x20c610[_0x17fb5c(0x33a)](_0x20755c,s['DRAWING_OBJECT_LAYER_INDEX']),_0x10e642&&_0x20c610[_0x17fb5c(0x1c2)](_0x20755c),_0x134311&&(0x0,u[_0x17fb5c(0x2d0)])({'drawingId':_0x134311,'unitId':_0xdc0d31,'subUnitId':_0x179f9e},_0x20755c,_0x20c610,this['_drawingManagerService']),_0x2ec6e1!=null&&_0x20755c['setPrstGeom'](_0x2ec6e1),_0x4fb8a7!=null&&_0x20755c[_0x17fb5c(0x1fc)](_0x4fb8a7);let _0x468ef8=this[_0x17fb5c(0x1a7)](_0x20755c,_0xbff127[_0x17fb5c(0x389)]());if(_0x468ef8){var _0x387717;_0x1cd30e==null||(_0x387717=_0x1cd30e[_0x17fb5c(0x3e8)])==null||_0x387717[_0x17fb5c(0x224)](_0x468ef8);}_0x2d5b35[_0x17fb5c(0x1d8)](_0x20755c);}return _0x2d5b35;}['refreshShapeFillImage'](_0x3c3387){const _0x2b0ae0=_0x2daf50;let _0xacaf0=_0x3c3387['shapeModel'][_0x2b0ae0(0x389)](),_0x28a05e=_0xacaf0[_0x2b0ae0(0x25f)];if(!_0x28a05e||_0x28a05e[_0x2b0ae0(0x387)]!==t[_0x2b0ae0(0x417)][_0x2b0ae0(0x3cd)]||!_0x28a05e['fillImageSource']){_0x3c3387[_0x2b0ae0(0x2ab)](void 0x0);return;}this[_0x2b0ae0(0x1a7)](_0x3c3387,_0xacaf0);}[_0x2daf50(0x1a7)](_0x30ce97,_0x29f043){const _0x9ec701=_0x2daf50;var _0x4046f3;let _0x372d56=_0x29f043[_0x9ec701(0x25f)];if(!_0x372d56||_0x372d56[_0x9ec701(0x387)]!==t[_0x9ec701(0x417)][_0x9ec701(0x3cd)]||!_0x372d56[_0x9ec701(0x1a2)])return;let _0x105536=_0x372d56[_0x9ec701(0x1a2)],_0xbb74d1=(_0x4046f3=_0x372d56[_0x9ec701(0x215)])==null?t[_0x9ec701(0x3fb)][_0x9ec701(0x44f)]:_0x4046f3,_0x5dac58=this[_0x9ec701(0x35c)][_0x9ec701(0x377)](_0x105536,_0xbb74d1);if(_0x5dac58){_0x30ce97[_0x9ec701(0x2ab)](_0x5dac58);return;}return this[_0x9ec701(0x42f)](_0x30ce97,_0x105536,_0xbb74d1);}async[_0x2daf50(0x42f)](_0x2c3d78,_0x72ec98,_0x2d5314){const _0x212b8b=_0x2daf50;let _0x5398ed;try{if(_0x2d5314===t[_0x212b8b(0x3fb)]['UUID'])_0x5398ed=await this['_imageIoService']['getImage'](_0x72ec98);else{if(_0x2d5314===t['ImageSourceTypeEnum'][_0x212b8b(0x44f)])try{_0x5398ed=await this['_urlImageService'][_0x212b8b(0x414)](_0x72ec98);}catch{_0x5398ed=_0x72ec98;}else _0x5398ed=_0x72ec98;}}catch(_0x52a321){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x52a321);return;}await new Promise(_0xd0edac=>{const _0x4fae40=_0x212b8b;let _0x5371f3=new window[(_0x4fae40(0x21c))]();_0x5371f3[_0x4fae40(0x3f7)]=()=>{const _0x467a4=_0x4fae40;this[_0x467a4(0x35c)]['addImageSourceCache'](_0x72ec98,_0x2d5314,_0x5371f3),_0x2c3d78['setFillImage'](_0x5371f3),_0xd0edac();},_0x5371f3[_0x4fae40(0x25b)]=()=>{const _0x677aac=_0x4fae40;console[_0x677aac(0x344)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x72ec98),_0xd0edac();},_0x5371f3[_0x4fae40(0x32e)]=_0x5398ed;});}};M=j([A(0x0,o[_0x2daf50(0x3a9)]),A(0x1,(0x0,i['Inject'])(r['SheetsShapeService'])),A(0x2,(0x0,i['Inject'])(i['LocaleService'])),A(0x3,i['IImageIoService']),A(0x4,i['IURLImageService'])],M);let N=class extends i[_0x2daf50(0x2f9)]{constructor(_0x43b84a,_0x870afe,_0x3f9cc2,_0x4730a4,_0x3b53b0,_0x466360){const _0x46e38a=_0x2daf50;super(),this[_0x46e38a(0x449)]=_0x43b84a,this['_sheetsShapeService']=_0x870afe,this['_renderManagerService']=_0x3f9cc2,this[_0x46e38a(0x477)]=_0x4730a4,this[_0x46e38a(0x1aa)]=_0x3b53b0,this[_0x46e38a(0x19f)]=_0x466360,E(this,_0x46e38a(0x46c),null),E(this,_0x46e38a(0x19c),null),E(this,_0x46e38a(0x1a5),null),E(this,_0x46e38a(0x2ee),void 0x0),E(this,_0x46e38a(0x316),[]),E(this,_0x46e38a(0x233),0x0),E(this,_0x46e38a(0x42a),0x0),E(this,_0x46e38a(0x462),0x0),E(this,_0x46e38a(0x2cd),0x0),E(this,_0x46e38a(0x346),!0x1),E(this,_0x46e38a(0x3cc),void 0x0),E(this,_0x46e38a(0x3d0),void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,_0x46e38a(0x254),void 0x0),E(this,_0x46e38a(0x1b7),!0x1),this[_0x46e38a(0x2e6)](),this['_registerDrawingMoveHandler']();}[_0x2daf50(0x1fa)](_0x57ace2,_0x26e3b7,_0xb12682){const _0x146403=_0x2daf50;let _0x12b8b8=this[_0x146403(0x453)]['getShapeModel'](_0x57ace2,_0x26e3b7,_0xb12682);if(_0x12b8b8)return _0x12b8b8[_0x146403(0x26c)]();}[_0x2daf50(0x3a5)](){this['_clearShapeAdjustControls']();}[_0x2daf50(0x337)](){this['_updateShapeAdjustControls'](!0x0);}[_0x2daf50(0x2bd)](_0x4a85d0){this['_isShouldShowDrawingShapeAdjust']=_0x4a85d0;}[_0x2daf50(0x2a9)](_0x271cff,_0x115a1d,_0x490153,_0x4b4d6b){const _0x36bf58=_0x2daf50;let _0x44cc36=this[_0x36bf58(0x453)]['getShapeModel'](_0x271cff,_0x115a1d,_0x490153);if(_0x44cc36)return _0x44cc36['getAdjustInfoByName'](_0x4b4d6b);}[_0x2daf50(0x238)](_0x29c819=!0x1){const _0x20b3fd=_0x2daf50;if(this['_unitId']===null||this[_0x20b3fd(0x1a5)]===null||this[_0x20b3fd(0x46c)]===null)return;let _0x384a4e=this['_renderManagerService'][_0x20b3fd(0x36e)](this[_0x20b3fd(0x19c)]);if(!_0x384a4e||!_0x384a4e[_0x20b3fd(0x463)](c[_0x20b3fd(0x366)])['getCurrentSkeleton']())return;let {scene:_0x58bc77}=_0x384a4e,_0x1f2c6f={'unitId':this[_0x20b3fd(0x19c)],'subUnitId':this[_0x20b3fd(0x1a5)],'drawingId':this[_0x20b3fd(0x46c)]},_0xdff2cb=this[_0x20b3fd(0x449)]['getDrawingByParam'](_0x1f2c6f),{transform:_0x5e9a1d}=_0xdff2cb;if(!_0x5e9a1d||_0xdff2cb[_0x20b3fd(0x3ea)]!==i['DrawingTypeEnum'][_0x20b3fd(0x324)])return;let {left:_0x18cfe9,top:_0x11f594,width:_0x5b9700,height:_0x279ee4,flipX:_0x55bcc0,flipY:_0x5372e7,angle:_0x3eb898=0x0}=_0x5e9a1d;if(_0x18cfe9===void 0x0||_0x11f594===void 0x0)return;_0x29c819&&(this[_0x20b3fd(0x2ee)]=this['_getShapeAdjustPointListById'](this[_0x20b3fd(0x19c)],this[_0x20b3fd(0x1a5)],this[_0x20b3fd(0x46c)]));let _0x152ab3=this[_0x20b3fd(0x2ee)];for(let _0x5bd73f=0x0;_0x5bd73f<_0x152ab3[_0x20b3fd(0x3ce)];_0x5bd73f++){let _0x2ee43e=_0x152ab3[_0x5bd73f],_0x309659=_0x2ee43e['x'],_0x1c1f96=_0x2ee43e['y'];if(_0x55bcc0&&(_0x309659=(_0x5b9700||0x0)-_0x309659),_0x5372e7&&(_0x1c1f96=(_0x279ee4||0x0)-_0x1c1f96),_0x3eb898!==0x0){let _0x1ff957=(_0x5b9700||0x0)/0x2,_0xb7be3e=(_0x279ee4||0x0)/0x2,_0x590299=_0x3eb898*Math['PI']/0xb4,_0x17fd95=Math['cos'](_0x590299),_0x5cb368=Math[_0x20b3fd(0x27c)](_0x590299),_0x488069=_0x309659-_0x1ff957,_0x2cda74=_0x1c1f96-_0xb7be3e;_0x309659=_0x1ff957+(_0x488069*_0x17fd95-_0x2cda74*_0x5cb368),_0x1c1f96=_0xb7be3e+(_0x488069*_0x5cb368+_0x2cda74*_0x17fd95);}let _0xad0167={'x':_0x309659,'y':_0x1c1f96,'adjName':_0x2ee43e[_0x20b3fd(0x25a)]};this['_addShapeAdjustControl'](_0x58bc77,_0xad0167,_0xad0167[_0x20b3fd(0x25a)],_0x18cfe9,_0x11f594,this[_0x20b3fd(0x19c)],this[_0x20b3fd(0x1a5)]);}}[_0x2daf50(0x373)](_0x4ccc34=!0x1){const _0x4cab77=_0x2daf50;_0x4ccc34&&(this[_0x4cab77(0x3e5)](),this[_0x4cab77(0x238)](_0x4ccc34));}[_0x2daf50(0x369)](_0x51e681,_0xd44fdb,_0x5f047e,_0x4d9c65,_0x59908b,_0x457c9d,_0xde5558){const _0x14cb12=_0x2daf50;if(!this[_0x14cb12(0x46c)])return;let _0x213db5=_0x51e681[_0x14cb12(0x23d)](_0x14cb12(0x30a)+this[_0x14cb12(0x46c)]+'-'+_0x5f047e);if(_0x213db5){_0x213db5[_0x14cb12(0x201)]({'left':_0xd44fdb['x']+_0x4d9c65-t[_0x14cb12(0x24f)][_0x14cb12(0x27e)],'top':_0xd44fdb['y']+_0x59908b-t[_0x14cb12(0x24f)][_0x14cb12(0x27e)]});return;}let _0x42e5cc={'left':_0xd44fdb['x']+_0x4d9c65-t['ShapeDefaultConfig'][_0x14cb12(0x27e)],'top':_0xd44fdb['y']+_0x59908b-t[_0x14cb12(0x24f)][_0x14cb12(0x27e)],'adjName':_0x5f047e,'shapeId':this['_activeShapeId'],'unitId':_0x457c9d,'subUnitId':_0xde5558,'width':t[_0x14cb12(0x24f)][_0x14cb12(0x27e)]+0x8,'height':t[_0x14cb12(0x24f)][_0x14cb12(0x27e)]+0x8,'zIndex':s[_0x14cb12(0x329)]+0x1,'evented':!0x0},_0x3e545=new k(_0x14cb12(0x30a)+this[_0x14cb12(0x46c)]+'-'+_0x5f047e,_0x42e5cc);this[_0x14cb12(0x316)][_0x14cb12(0x1d8)](_0x3e545),this[_0x14cb12(0x229)](_0x3e545,_0x51e681,_0x5f047e),_0x51e681['addObject'](_0x3e545,s[_0x14cb12(0x329)]+0x1);}['_clearShapeAdjustControls'](){const _0x4f482f=_0x2daf50;this[_0x4f482f(0x316)][_0x4f482f(0x3ce)]!==0x0&&(this[_0x4f482f(0x316)]['forEach'](_0x2a7691=>{const _0x39fab5=_0x4f482f;_0x2a7691[_0x39fab5(0x428)]();}),this[_0x4f482f(0x316)]=[]);}[_0x2daf50(0x2de)](){const _0x1cd7ff=_0x2daf50;this[_0x1cd7ff(0x238)]();}['_getScrollInfo'](_0x1e08dd,_0x545507){const _0x4faee2=_0x2daf50;var _0x27b75e;let _0x12bad7={'x':0x0,'y':0x0};if(!_0x1e08dd||!_0x545507)return _0x12bad7;let _0x582596=this[_0x4faee2(0x3fc)]['getRenderById'](_0x1e08dd);if(!_0x582596||!_0x582596[_0x4faee2(0x463)](c[_0x4faee2(0x366)])['getSkeleton'](_0x545507))return _0x12bad7;let _0x241943=_0x582596[_0x4faee2(0x463)](c['SheetScrollManagerService']),_0x190810=_0x241943==null?void 0x0:_0x241943[_0x4faee2(0x3bc)]();if(!_0x190810)return _0x12bad7;let _0x5cfb6c=(_0x27b75e=this[_0x4faee2(0x1aa)][_0x4faee2(0x32f)](_0x1e08dd))==null?void 0x0:_0x27b75e[_0x4faee2(0x1a9)](_0x545507);if(!_0x5cfb6c)return _0x12bad7;let _0x1b2aaa=(0x0,c[_0x4faee2(0x281)])(_0x190810[_0x4faee2(0x46a)],_0x190810['sheetViewStartColumn'],_0x582596['scene'],_0x5cfb6c);return _0x1b2aaa?{'x':_0x1b2aaa[_0x4faee2(0x210)],'y':_0x1b2aaa[_0x4faee2(0x2bf)]}:_0x12bad7;}[_0x2daf50(0x207)](_0x52cff0,_0x4ef8cd){const _0x69657c=_0x2daf50;var _0x36dc7e,_0x50b8a7;let _0x27dfbe=(_0x36dc7e=this[_0x69657c(0x1aa)][_0x69657c(0x32f)](_0x52cff0))==null?void 0x0:_0x36dc7e['getSheetBySheetId'](_0x4ef8cd);return(_0x50b8a7=_0x27dfbe==null?void 0x0:_0x27dfbe[_0x69657c(0x45d)]())==null?0x1:_0x50b8a7;}[_0x2daf50(0x229)](_0x2a6f14,_0x570cbb,_0x28340e){const _0x521c17=_0x2daf50;this[_0x521c17(0x1c1)]((0x0,i[_0x521c17(0x427)])(_0x2a6f14['onPointerDown$'][_0x521c17(0x382)]((_0x13970b,_0x34c3e5)=>{const _0x451640=_0x521c17;var _0x5656a0,_0x518347,_0x499963,_0x264e6f;let _0x13a864=_0x2a6f14[_0x451640(0x26a)]();this['_activeAdjustInfo']=this[_0x451640(0x2a9)](_0x13a864[_0x451640(0x378)],_0x13a864[_0x451640(0x1a1)],_0x13a864[_0x451640(0x34d)],_0x28340e),this['_activeShapeModel']=this[_0x451640(0x453)]['getShapeModel'](_0x13a864[_0x451640(0x378)],_0x13a864[_0x451640(0x1a1)],_0x13a864['drawingId']);let _0x10bc87=this['_drawingManagerService'][_0x451640(0x39b)]({'unitId':this['_unitId'],'subUnitId':this[_0x451640(0x1a5)],'drawingId':this['_activeShapeId']}),{transform:_0x462be6}=_0x10bc87;if(_0x462be6){let {left:_0x5e0fa8,top:_0x587c00,width:_0x1c9ed6,height:_0x107b37}=_0x462be6;this[_0x451640(0x233)]=_0x5e0fa8||0x0,this['_baseShapeTop']=_0x587c00||0x0,this[_0x451640(0x462)]=_0x1c9ed6||0x0,this['_baseShapeHeight']=_0x107b37||0x0;}let _0x39d283=!!((_0x5656a0=_0x10bc87[_0x451640(0x1f8)])!=null&&_0x5656a0[_0x451640(0x3c0)]),_0x554d44=!!((_0x518347=_0x10bc87[_0x451640(0x1f8)])!=null&&_0x518347[_0x451640(0x380)]),_0x49a563=((_0x499963=_0x10bc87[_0x451640(0x1f8)])==null?void 0x0:_0x499963['angle'])||0x0;this[_0x451640(0x346)]=!0x0,_0x570cbb['disableObjectsEvent']();let _0x57de9d=(_0x264e6f=this[_0x451640(0x3d0)])==null?void 0x0:_0x264e6f[_0x451640(0x243)](_0x28340e),_0x2e59ad={[_0x28340e]:_0x57de9d};this[_0x451640(0x3c7)]=_0x570cbb[_0x451640(0x3b7)]['subscribeEvent']((_0x24e3cd,_0x172cff)=>{const _0x13b7f5=_0x451640;if(!this[_0x13b7f5(0x346)])return;let {offsetX:_0x5b08a9,offsetY:_0x413748}=_0x24e3cd,_0x2e2750=this[_0x13b7f5(0x3cc)];if(this['_activeShapeModel']&&_0x2e2750){_0x570cbb[_0x13b7f5(0x317)](),_0x570cbb['setCursor'](s[_0x13b7f5(0x29e)][_0x13b7f5(0x381)]);let _0x1f984a={'left':0x0,'top':0x0,'width':this[_0x13b7f5(0x462)],'height':this[_0x13b7f5(0x2cd)]},_0x47eed2=this[_0x13b7f5(0x2ca)](this[_0x13b7f5(0x19c)],this[_0x13b7f5(0x1a5)]),_0x1bda0c=this['_getZoomRatio'](this[_0x13b7f5(0x19c)],this[_0x13b7f5(0x1a5)]),_0x2bb3d9=_0x5b08a9/_0x1bda0c+_0x47eed2['x']-this[_0x13b7f5(0x233)],_0xb4e718=_0x413748/_0x1bda0c+_0x47eed2['y']-this[_0x13b7f5(0x42a)];if(_0x49a563!==0x0){let _0x474e30=this[_0x13b7f5(0x462)]/0x2,_0x556153=this[_0x13b7f5(0x2cd)]/0x2,_0x4835eb=_0x49a563*Math['PI']/0xb4,_0x1d23f6=Math[_0x13b7f5(0x2e0)](_0x4835eb),_0x1a312c=Math['sin'](_0x4835eb),_0x543c40=_0x2bb3d9-_0x474e30,_0x1b1800=_0xb4e718-_0x556153;_0x2bb3d9=_0x474e30+(_0x543c40*_0x1d23f6+_0x1b1800*_0x1a312c),_0xb4e718=_0x556153+(-_0x543c40*_0x1a312c+_0x1b1800*_0x1d23f6);}_0x39d283&&(_0x2bb3d9=this[_0x13b7f5(0x462)]-_0x2bb3d9),_0x554d44&&(_0xb4e718=this['_baseShapeHeight']-_0xb4e718);let _0xf61a35={'x':_0x2bb3d9,'y':_0xb4e718},_0xb4eaca=this[_0x13b7f5(0x3d0)]['calcAdjValue'](_0x1f984a,_0xf61a35,_0x2e2750,_0x39d283,_0x554d44),_0xad6e4f=_0x2e2750[_0x13b7f5(0x321)]||_0x2e2750[_0x13b7f5(0x393)]||_0x2e2750[_0x13b7f5(0x32c)]||_0x2e2750['gdRefR'];if(_0xad6e4f===void 0x0)return;this[_0x13b7f5(0x3d0)][_0x13b7f5(0x384)](_0xad6e4f,_0xb4eaca);let _0x3b1478=this[_0x13b7f5(0x449)][_0x13b7f5(0x39b)]({'unitId':_0x13a864[_0x13b7f5(0x378)],'subUnitId':_0x13a864[_0x13b7f5(0x1a1)],'drawingId':_0x13a864[_0x13b7f5(0x34d)]});_0x3b1478&&(this[_0x13b7f5(0x477)]['renderDrawingShape'](_0x3b1478,_0x570cbb),this['_activeShapeAdjustPointList']=this[_0x13b7f5(0x1fa)](_0x13a864[_0x13b7f5(0x378)],_0x13a864['subUnitId'],_0x13a864[_0x13b7f5(0x34d)]),this[_0x13b7f5(0x2de)]());}_0x172cff[_0x13b7f5(0x3b8)]();}),this[_0x451640(0x254)]=_0x570cbb[_0x451640(0x3b3)]['subscribeEvent']((_0x49e5d7,_0x5c2c2a)=>{const _0x112d01=_0x451640;this[_0x112d01(0x3c7)][_0x112d01(0x34e)](),this[_0x112d01(0x254)][_0x112d01(0x34e)](),_0x570cbb['resetCursor']();let _0x3c123f=this['_activeAdjustInfo'];if(_0x3c123f){let _0x21ef44=_0x13a864[_0x112d01(0x378)],_0x61576b=_0x13a864[_0x112d01(0x1a1)],_0x1a0b52=_0x13a864[_0x112d01(0x34d)],_0x4cf84b=_0x3c123f[_0x112d01(0x321)]||_0x3c123f[_0x112d01(0x393)]||_0x3c123f[_0x112d01(0x32c)]||_0x3c123f[_0x112d01(0x367)];if(_0x4cf84b!==void 0x0){var _0x4487d9;let _0x165c64=(_0x4487d9=this['_activeShapeModel'])==null?void 0x0:_0x4487d9[_0x112d01(0x243)](_0x4cf84b);_0x165c64!==void 0x0&&x(this[_0x112d01(0x19f)],_0x21ef44,_0x61576b,_0x1a0b52,{'oldShapeData':{'adjustValues':_0x2e59ad}},{'adjustValues':{[_0x4cf84b]:_0x165c64}});}}this[_0x112d01(0x3cc)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x112d01(0x346)]=!0x1,_0x5c2c2a[_0x112d01(0x3b8)](),_0x570cbb[_0x112d01(0x3c1)]();}),_0x34c3e5[_0x451640(0x3b8)]();})));}[_0x2daf50(0x1f6)](){const _0x5dee26=_0x2daf50;let _0x4283d5=this['_univerInstanceService'][_0x5dee26(0x3f1)](i[_0x5dee26(0x21b)][_0x5dee26(0x447)]);this[_0x5dee26(0x1c1)](_0x4283d5['pipe']((0x0,l[_0x5dee26(0x37c)])(_0xda1dd3=>_0xda1dd3?_0xda1dd3['activeSheet$'][_0x5dee26(0x3c6)]((0x0,l['switchMap'])(_0x45cbef=>{const _0x4a74d9=_0x5dee26;if(!_0x45cbef)return l[_0x4a74d9(0x19e)];let _0x28a5b3=_0xda1dd3['getUnitId'](),_0x336079=this[_0x4a74d9(0x3fc)]['getRenderById'](_0x28a5b3),_0x44676a=_0x336079==null?void 0x0:_0x336079[_0x4a74d9(0x336)];return _0x44676a?(0x0,l['of'])(_0x44676a):l[_0x4a74d9(0x19e)];})):l[_0x5dee26(0x19e)]))[_0x5dee26(0x2d6)](_0x3859a8=>{const _0x71f684=_0x5dee26;let _0x4808e4=_0x3859a8[_0x71f684(0x251)]();this[_0x71f684(0x1c1)](_0x3859a8[_0x71f684(0x3b7)][_0x71f684(0x382)](()=>{const _0x31ee7c=_0x71f684;this[_0x31ee7c(0x1b7)];})),this[_0x71f684(0x1c1)](_0x4808e4[_0x71f684(0x1e8)]['subscribe'](_0x210c75=>{const _0x53ba5e=_0x71f684;let {objects:_0x5cbd4d}=_0x210c75;this[_0x53ba5e(0x238)](),_0x5cbd4d!==null&&_0x5cbd4d[_0x53ba5e(0x31c)]===0x1&&_0x5cbd4d[_0x53ba5e(0x2f6)]()[_0x53ba5e(0x235)]()[_0x53ba5e(0x2ef)]instanceof O&&this[_0x53ba5e(0x2bd)](!0x0);})),this[_0x71f684(0x1c1)](_0x4808e4[_0x71f684(0x211)][_0x71f684(0x2d6)](()=>{const _0x404f45=_0x71f684;this['_isShouldShowDrawingShapeAdjust']&&this[_0x404f45(0x3e5)]();})),this[_0x71f684(0x1c1)](_0x3859a8[_0x71f684(0x3b3)][_0x71f684(0x382)](()=>{const _0x46d759=_0x71f684;this[_0x46d759(0x1b7)]&&(this[_0x46d759(0x2bd)](!0x1),this[_0x46d759(0x238)]());})),this[_0x71f684(0x1c1)](_0x4808e4[_0x71f684(0x258)][_0x71f684(0x2d6)](()=>{const _0x42626b=_0x71f684;this['_unitId']&&this[_0x42626b(0x1a5)]&&this[_0x42626b(0x46c)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x42626b(0x19c)],'subUnitId':this[_0x42626b(0x1a5)],'drawingId':this['_activeShapeId']})&&(this[_0x42626b(0x2ee)]=this[_0x42626b(0x1fa)](this[_0x42626b(0x19c)],this[_0x42626b(0x1a5)],this['_activeShapeId']),this[_0x42626b(0x2de)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x10a5e2=_0x2daf50;this['disposeWithMe'](this['_drawingManagerService'][_0x10a5e2(0x271)]['subscribe'](_0x9bfcdf=>{const _0x56436a=_0x10a5e2;if(_0x9bfcdf[_0x56436a(0x3ce)]===0x1){let _0x287525=_0x9bfcdf[0x0];if(_0x287525[_0x56436a(0x3ea)]===i[_0x56436a(0x2bb)][_0x56436a(0x324)]){this[_0x56436a(0x46c)]=_0x287525[_0x56436a(0x34d)];let {unitId:_0x4e4c6b,subUnitId:_0x39a176}=_0x287525;this['_activeShapeAdjustPointList']=this[_0x56436a(0x1fa)](_0x4e4c6b,_0x39a176,this[_0x56436a(0x46c)]),this['_unitId']=_0x4e4c6b,this[_0x56436a(0x1a5)]=_0x39a176,this[_0x56436a(0x3e5)](),this[_0x56436a(0x238)]();}else this[_0x56436a(0x46c)]=null,this[_0x56436a(0x2ee)]=void 0x0,this['_unitId']=null,this[_0x56436a(0x1a5)]=null,this[_0x56436a(0x3e5)]();}(_0x9bfcdf['length']>0x1||_0x9bfcdf[_0x56436a(0x3ce)]===0x0)&&(this['_activeShapeId']=null,this[_0x56436a(0x2ee)]=void 0x0,this[_0x56436a(0x19c)]=null,this[_0x56436a(0x1a5)]=null,this[_0x56436a(0x3e5)]());})),this[_0x10a5e2(0x1c1)](this[_0x10a5e2(0x449)][_0x10a5e2(0x225)][_0x10a5e2(0x2d6)](_0x56680f=>{const _0x1ad1ce=_0x10a5e2;if(_0x56680f['length']===0x1){var _0x3e6495;let _0x29ca44=_0x56680f[0x0];((_0x3e6495=this[_0x1ad1ce(0x449)][_0x1ad1ce(0x39b)](_0x29ca44))==null?void 0x0:_0x3e6495[_0x1ad1ce(0x3ea)])===i['DrawingTypeEnum']['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this['disposeWithMe'](this[_0x10a5e2(0x449)]['remove$'][_0x10a5e2(0x2d6)](_0x306c42=>{const _0x5b68d3=_0x10a5e2;for(let _0x3b4fcb of _0x306c42)this['_activeShapeId']===_0x3b4fcb[_0x5b68d3(0x34d)]&&(this[_0x5b68d3(0x46c)]=null,this[_0x5b68d3(0x2ee)]=void 0x0,this[_0x5b68d3(0x19c)]=null,this[_0x5b68d3(0x1a5)]=null,this[_0x5b68d3(0x3e5)]());}));}};N=j([A(0x0,o[_0x2daf50(0x3a9)]),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(s[_0x2daf50(0x282)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(M)),A(0x4,i[_0x2daf50(0x439)]),A(0x5,i[_0x2daf50(0x1b8)])],N);const P={'id':_0x2daf50(0x44b),'type':i[_0x2daf50(0x429)][_0x2daf50(0x20d)],'handler':(_0x5c307b,_0x35b806)=>{const _0x946a95=_0x2daf50;let _0x1723c5=_0x5c307b[_0x946a95(0x423)](o[_0x946a95(0x3a9)]),_0x2571b9=_0x5c307b[_0x946a95(0x423)](s[_0x946a95(0x282)]),_0x579b8d=_0x5c307b[_0x946a95(0x423)](N);if(_0x35b806==null)return!0x0;if(_0x35b806[_0x946a95(0x3ce)]>0x0){var _0x20987d;let _0x356d9=(_0x20987d=_0x2571b9['getRenderById'](_0x35b806[0x0][_0x946a95(0x378)]))==null?void 0x0:_0x20987d[_0x946a95(0x336)];if(_0x356d9){let {unitId:_0x36aaa2,subUnitId:_0x39d0c2,drawingId:_0x27a317}=_0x35b806[0x0],_0x5a6eda=(0x0,o[_0x946a95(0x41c)])({'unitId':_0x36aaa2,'subUnitId':_0x39d0c2,'drawingId':_0x27a317},void 0x0),_0x4cc59c=_0x356d9['getObjectIncludeInGroup'](_0x5a6eda);if(_0x4cc59c){var _0x5618bd;(_0x5618bd=_0x2571b9[_0x946a95(0x36e)](_0x35b806[0x0]['unitId']))==null||(_0x5618bd=_0x5618bd[_0x946a95(0x336)]['getTransformer']())==null||_0x5618bd[_0x946a95(0x41b)](_0x4cc59c);}}_0x1723c5[_0x946a95(0x375)](_0x35b806),_0x579b8d[_0x946a95(0x2bd)](!0x1);}return!0x0;}},F={'type':i[_0x2daf50(0x429)][_0x2daf50(0x2ba)],'id':_0x2daf50(0x1db),'handler':async(_0x50f015,_0x49c034)=>{const _0x590a3b=_0x2daf50;let _0x4ed1e6=(0x0,a[_0x590a3b(0x356)])(_0x50f015['get'](i[_0x590a3b(0x439)]));if(!_0x4ed1e6)return!0x1;let _0x211723=_0x50f015['get'](a[_0x590a3b(0x21f)])[_0x590a3b(0x2c2)]();if(!_0x211723)return!0x1;let _0x3e782d=_0x50f015[_0x590a3b(0x423)](i[_0x590a3b(0x1b8)]),{unitId:_0x19a1e7,subUnitId:_0x314790}=_0x4ed1e6,{value:_0x13e37c,enhanceParams:_0x30efcd}=_0x49c034,{range:_0x459eee}=_0x211723,_0x11a940={'unitId':_0x19a1e7,'subUnitId':_0x314790,'shapeType':_0x13e37c,'range':_0x459eee,'shapeId':(0x0,i['generateRandomId'])()};if(_0x30efcd){let _0x561c27=(0x0,t[_0x590a3b(0x1ce)])(_0x13e37c),_0x2d4f88=_0x13e37c===t['ShapeTypeEnum'][_0x590a3b(0x31d)];_0x561c27&&(_0x30efcd[_0x590a3b(0x1d3)]||_0x30efcd['endArrow'])&&(_0x11a940[_0x590a3b(0x285)]={'ln':{'startArrow':_0x30efcd[_0x590a3b(0x1d3)]?{'type':t[_0x590a3b(0x26f)]['Arrow'],'size':t[_0x590a3b(0x313)][_0x590a3b(0x421)]}:void 0x0,'endArrow':_0x30efcd['endArrow']?{'type':t['ShapeArrowTypeEnum'][_0x590a3b(0x3a4)],'size':t[_0x590a3b(0x313)][_0x590a3b(0x25d)]}:void 0x0}}),_0x2d4f88&&(_0x30efcd[_0x590a3b(0x46e)]||_0x30efcd[_0x590a3b(0x3f3)])&&(_0x11a940['shapeData']=(0x0,n['createShapeTextBoxShapeData'])({'fill':{'fillType':t[_0x590a3b(0x417)][_0x590a3b(0x250)],'color':'#FFFFFF'},'isHorizontal':!!_0x30efcd[_0x590a3b(0x46e)],'stroke':{'lineStrokeType':t[_0x590a3b(0x23c)][_0x590a3b(0x1d5)],'width':0x1,'color':_0x590a3b(0x396)}}));}let _0x13e955=_0x3e782d['syncExecuteCommand'](r[_0x590a3b(0x244)]['id'],_0x11a940);return setTimeout(()=>{const _0xca153e=_0x590a3b;_0x3e782d[_0xca153e(0x374)](P['id'],[{'unitId':_0x19a1e7,'subUnitId':_0x314790,'drawingId':_0x11a940['shapeId']}]);},0xc8),_0x13e955;}},I=_0x2daf50(0x1c8),L=_0x2daf50(0x292),R=_0x2daf50(0x277),ee=(0x0,i[_0x2daf50(0x437)])('SHAPE_TEXT'),te=_0x2daf50(0x1cb),ne={'id':_0x2daf50(0x23a),'type':i[_0x2daf50(0x429)]['COMMAND'],'handler':(_0x3dd569,_0x3fee12)=>{const _0x31a544=_0x2daf50;let _0x104824=_0x3dd569[_0x31a544(0x423)](e[_0x31a544(0x3ff)]),_0x382f78=_0x3dd569['get'](i[_0x31a544(0x2df)]),_0x19ab65=_0x3dd569[_0x31a544(0x423)](i[_0x31a544(0x439)]),_0xc07905=_0x3dd569[_0x31a544(0x423)](i[_0x31a544(0x1b8)]);return(0x0,a['getSheetCommandTarget'])(_0x19ab65)?(_0x3fee12==null?void 0x0:_0x3fee12[_0x31a544(0x2ef)])===_0x31a544(0x478)?(_0x104824[_0x31a544(0x478)](L),!0x0):(_0x104824[_0x31a544(0x3d6)]({'id':L,'header':{'title':_0x382f78['t'](_0x31a544(0x256))},'children':{'label':L},'onClose':()=>{const _0x56fe1e=_0x31a544;_0xc07905[_0x56fe1e(0x29b)](o[_0x56fe1e(0x465)]['id'],[]);},'width':0x168}),!0x0):!0x1;}};let z=class extends i[_0x2daf50(0x2f9)]{constructor(_0x58a8fd,_0x5c53b2){const _0x3a922d=_0x2daf50;super(),this['_clipService']=_0x58a8fd,this['_drawingManagerService']=_0x5c53b2,this[_0x3a922d(0x339)](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x3a922d(0x1c1)]({'dispose':()=>this[_0x3a922d(0x40a)]['setCanUseShapeClip'](!0x1)});}[_0x2daf50(0x339)](){const _0x5cafd6=_0x2daf50;let _0x1f738f=this[_0x5cafd6(0x40a)],_0x644b79=new Map(),_0x1fd81d=_0x1f738f[_0x5cafd6(0x20f)]((_0x3e1c03,_0x1bd13d,_0x2078b3,_0x1ec5a6,_0x476eb7)=>{const _0x4aa075=_0x5cafd6;let _0xc008a7=_0x1bd13d;if(_0xc008a7===t[_0x4aa075(0x266)][_0x4aa075(0x1ad)]||_0x1bd13d===_0x4aa075(0x3a6))return!0x1;try{let _0x231862=_0x644b79['get'](_0x1bd13d);return _0x231862||(_0x231862=new t['ShapeModel'](_0xc008a7,_0x4aa075(0x2fe)+_0x1bd13d),_0x644b79[_0x4aa075(0x419)](_0x1bd13d,_0x231862)),_0x476eb7&&_0x231862['setShapeData']({'adjustValues':_0x476eb7},!0x0),_0x231862[_0x4aa075(0x3a0)]({'width':_0x2078b3,'height':_0x1ec5a6}),_0x231862[_0x4aa075(0x306)](_0x3e1c03,{'left':0x0,'top':0x0,'width':_0x2078b3,'height':_0x1ec5a6});}catch{return!0x1;}});this[_0x5cafd6(0x1c1)](_0x1fd81d),this['disposeWithMe']({'dispose':()=>_0x644b79[_0x5cafd6(0x388)]()});}[_0x2daf50(0x3d5)](_0x3e292d,_0x1a3e57,_0x48055e,_0x194f33,_0x12a8cf){const _0x5255fa=_0x2daf50;let _0x31714b=this[_0x5255fa(0x449)][_0x5255fa(0x278)](_0x3e292d,_0x1a3e57);if(!_0x31714b[_0x48055e])return;let _0x21797e={..._0x31714b[_0x48055e],'prstGeom':_0x194f33,'adjustValues':_0x12a8cf};this[_0x5255fa(0x449)][_0x5255fa(0x33c)]([_0x21797e]);}};z=j([A(0x0,(0x0,i[_0x2daf50(0x1bb)])(u[_0x2daf50(0x2b8)])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(o[_0x2daf50(0x3a9)]))],z);function _0xa756(){const _0xe1024c=['updateDocumentDataMargin','Shape','getSheetCommandTarget','MenuItemType','FromArray','translateWithPrecision','_baseWidth','_props','_imageIoService','has','ShapeEditPanel','sheets-shape-ui.config','wrapStrategy','pick','UNIVER_DOC','_drawingAddListener','hidden','DependentOn','SheetSkeletonManagerService','gdRefR','reduce','_addShapeAdjustControl','_handleConnectedEndpointMove','popup','_clearConnectionSites','REMOVE','getRenderById','_isDrawingShapePointDown','getActiveSheet','visible','getAdjustNames','_updateShapeAdjustControls','executeCommand','focusDrawing','_moveConnectorWithShape','getImageSourceCache','unitId','startX','ArrangeTypeEnum','parent','switchMap','getState','multiply','_handleBasicShapeUpdateConnectorLineShape','flipY','CROSSHAIR','subscribeEvent','localToWorld','setAdjustValueByName','InsertSheetsShapeMutation','getSkeleton','fillType','clear','getShapeData','onPointerDown$','LEFT','_onSavingEditorData$','getObjectListPanelLabels','_activeImageId','DrawingApplyType','isArray','clipTop','getTextModel','gdRefY','_generatePasteMutations','transformToAxisAlignPosition','#bcbcbc','invert','onReady','_configService','interceptor','getDrawingByParam','dataModel','getBatchUpdateOp','from','_currentScene','updateContext','_registerIcons','ISheetClipboardService','sheets-shape-ui.formatShape','Arrow','clearAdjustControls','custom','name','gradientEndColor','IDrawingManagerService','getFocusDrawings','1163128hMRYjf','initShapePopupMenu','attachRangeWithCoord','cxnPointStroke','indexOf','sheets-shape-ui.objectListPanel.open','DRAWING_UNIT','shapeText','onPointerUp$','_sheetDrawingService','getShapeTextRect','getCurrentRangeDisable$','onPointerMove$','stopPropagation','setHighlighted','shape','useMemo','getCurrentScrollState','getBasicShapeRelation','getConnectionInfo','updateConnectionDetection','flipX','enableObjectsEvent','getDrawingEditable','WorksheetEditPermission','_isConnecting','getShapeModel','pipe','_adjHandlerPointerMove','worldPoints','SetSheetsShapeTextVerticalToggleCommand','getShapeType','index','_activeAdjustInfo','PictureFill','length','_index','_activeShapeModel','shouldAllowShapeTextEditorHostSizeShrink','_shapeService','5MQEbDY','blockExecuteWithoutPermission','clipByShape','open','246ZKsfEb','SheetSkeletonService','_connectionSiteObjects','getEditing','getDrawingOKey','UpdateSheetsShapeDataMutation','_init','copyType','merge','refreshTransform','DocumentDataModel','Line','_targetShapeId','updateShapeFillImage','_clearShapeAdjustControls','type','_cxnIndex','resourceCollector','params','drawingType','backward','useObservable','FOCUSING_SHAPE_TEXT_EDITOR','adjustValues','_groupCopyPasteController','localeService','getCurrentTypeOfUnit$','isHitLine','vertical','getObjectListPanelTypeName','TOP','PREDEFINED_HOOK_NAME','onload','order','sheetViewStartColumn','_addShapeConnectorHandlerObjects','ImageSourceTypeEnum','_renderManagerService','cxnPointStrokeWidth','_baseHeight','ISidebarService','_activeAdjustPointList','_reset','drawWith','SheetPermissionCheckController','disableShapeOption','delete','DRAWING_CHART','_executeConnectionCommand','ISheetDrawingService','sheets-shape-text-','_clipService','sqrt','SheetsDrawingGroupCopyPasteController','_registerFocusChangeHandler','DocumentViewModel','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shapeKey','SheetsShapeService','clip','completeEditing','getImage','_handleConnectorPointerUp','_clearPopups','ShapeFillEnum','551268RIIGdx','set','create','activeAnObject','getDrawingShapeKeyByDrawingSearch','setOnSavingEditorData','INSERT','1064938yQTRTF','_initEvents','Medium','_baseTop','get','_executeConnectedRouteResizeCommand','fontSize','objects','toDisposable','dispose','CommandType','_baseShapeTop','cxnIndex','_highlightedSiteIndex','complete','SetDrawingArrangeCommand','_loadAndSetImage','_injector','prstGeom','default','_shapeId','SHEET_SHAPE_UI_PLUGIN','getCurrentSkeleton','getObjectListPanelSectionIdForDrawingType','createInternalEditorID','_copyInfo','IUniverInstanceService','setConfig','ShapeTextFloatMenuRenderControllerBase','undo','_baseDrawingRect','getShapeTextData','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','prepareShapeTextDocumentData','_addShapeConnectorHandlerObject','_generateCopyPasteMutations','VIEW_MAIN_LEFT_TOP','jsx','_sheetSkeletonService','initTransformer','UNIVER_SHEET','strokeWidth','_drawingManagerService','_sidebarDisposable','drawing.operation.set-drawing-active','data','div','_getConnectPointInfo','URL','_generateCutPasteMutations','touchDependencies','DEFAULT_PASTE','_sheetsShapeService','isDrawingObject','sheets-shape-ui.rotateRight90','cxnPointFill','selectable','width','SHEET_VIEWPORT_KEY','_transform','RemoveSheetsShapeMutation','IMenuManagerService','getZoomRatio','getSelectedObjectMap','ShapeModel','_urlImageService','toPrimitive','_baseShapeWidth','with','_localeService','SetDrawingSelectedOperation','isInGroup','angle','video','connection-site-','sheetViewStartRow','_drawingRenderService','_activeShapeId','57591eslKee','horizontal','_sheetClipboardService','_adjName','isEditing','reverse','setPrstGeomAdjValues','worldRect','generateRandomId','computeStraightConnectorLayout','_sheetDrawingShapeRenderController','close','shapeType','viewBound','_registerComponents','FOCUSING_COMMON_DRAWINGS','getBatchRemoveOp','_addControl','_sheetCanvasPopManagerService','sheet.command.update-shape-data','memo','_registerShapeMenu','_unitId','abs','EMPTY','_commandService','shapeModel','subUnitId','fillImageSource','12xEpRSa','SetSheetsShapeRotateCommand','_subUnitId','UniverShapeEditorUIPlugin','_loadShapePictureFill','DRAWING_TABLE','getSheetBySheetId','_univerInstanceService','calculate','chart','None','5624CbkKDV','sheets-shape-ui','OBJECT_LIST_FLOATING_SECTION_ID','smartArt','connector-handler-','_popupMenuListener','getCurrentUnitOfType','shapeId','_registerOperations','_isShouldShowDrawingShapeAdjust','ICommandService','getEndConnectInfo','clearAdjustValue','Inject','symbol','_commandExecutedListener','stroke','BehaviorSubject','ShapeFloatingToolbar','disposeWithMe','attachTransformerTo','packageName','_isHighlighted','_sheetShapeAdjustController','height','makeDirty','sheet.shape.edit.panel','left','targetShapeId','sheet.shape.text.float-menu','resetCursor','editingParams$','isConnectorShape','title','getInverseCoord','shouldClipShapeTextDocument','worldPoint','startArrow','_handleFreeEndpointMove','SolidLine','highlighted','removeLinePoints','push','addClipboardHook','CUT','sheet.command.menu-insert-shape','_handleFreeEndpointPointerUp','getStartConnectInfo','1288339VakKoy','filter','clearControl$','_getConnectionSiteAngle','call','Documents','_registerGroupFeaturePasteHook','_disposePopups','_updateSrcRectByTransform','getDrawingVisible','changeStart$','Path','_initSelection','registerCommand','image','_shapeRenderController','isHit','string','axisAlignSheetTransform','ShapePickerDropdown','preValue','_clearShapeConnectorHandlerObjects','isStartConnectorPoint','normalizeShapeTextModel','_registerDrawingMoveHandler','computeConnectorResizeLayout','transform','_rerouteConnectorLine','_getShapeAdjustPointListById','srcRect','setSrcRect','_sheetPermissionCheckController','adjHandleFill','_initializedShapePopupMenu','_context','transformByState','_disposed','sheets-shape-ui.rotateLeft90','classType','stringify','getConnectionRelation','_getZoomRatio','WorkbookEditablePermission','_updateImageAdjValues','top-center','onCommandExecuted','restore','OPERATION','GROUP','registerClipDelegate','viewportScrollX','changing$','_isImagePointerDown','getInterceptPoints','sectionCanvas','fillImageSourceType','_attachConnectorObjectEvent','_transformCalculateSrcRect','_draw','DocCanvasPopManagerService','prototype','UniverInstanceType','Image','UPDATE','_initCopyPaste','SheetsSelectionsService','_drawShapeText','sheetTransform','_clearControls','useDependency','add','update$','Transform','_createControls','remove$','_attachAdjustEvent','some','_drawRichText','ShapeRenderModeEnum','_cxtHandlerPointerUp','HorizontalAlign','parse','_drawSimpleText','Module','_openShapeEditPanel','_baseShapeLeft','_getOrCreateShapeModel','next','#1a73e8','_calculateFreeEndpointAngle','_createShapeAdjustControls','getMatrix','sheet.operation.open-shape-object-list-panel','RENDER_CLASS_TYPE','ShapeLineTypeEnum','getObjectIncludeInGroup','SheetDrawingAnchor','UniverSheetsShapeUIPlugin','_resetState','_currentConnectionTarget','canvas','getAdjustValueByName','InsertShapeCommand','CopyDoubleIcon','renderDrawingShape','refreshShapeFillImage','registerFeatureMenu','_config','onDblclick$','ToggleSheetsShapeFlipCommand','startConnectionDetection','IconManager','isHighlighted','ShapeDefaultConfig','SolidFill','getTransformerByCreate','contentHeight','useState','_adjHandlerPointerUp','offsetY','sheets-shape-ui.objectListPanel.title','deriveStateFromActiveSheet$','changeEnd$','getShapePopupMenus','adjName','onerror','object','Large','table','fill','routeConnectorLineShape','entries','Observable','ShapeTextFloatToolbar','_getImageDrawingInfo','_imageShapeClipController','ShapeTypeEnum','marginTop','updateDocumentStyle','getRealBound','getDrawingSearch','ShapeGroupEnum','getDrawingPoints','setShapeProps','decorate','ShapeArrowTypeEnum','DRAWING_IMAGE','focus$','jsxs','_editingParams$','_insertShapes','_activeShapeInfo','_initPrinting','sheet.shape.floating-toolbar','getDrawingData','forEach','getTextStyle','ancestorTransform','sin','_getDrawingRect','adjHandleSize','_drawingType','isLineShape','getViewportByCell','IRenderManagerService','getObject','_initEditingParams','shapeData','top','isRenderLinePointsMode','_findShapeAtPoint','21725kPMWTY','_getImagePrstGeom','SheetCanvasPopManagerService','getDrawingDataForUnit','UpdateConnectorRelationCommand','BUTTON','sheets-shape-ui.insertShape','DocSelectionManagerService','990wbRCyd','sheet.shape.object-list.panel','_initMenu','_findNearestConnectionSite','getUnitId','keys','DRAWING_GROUP','cxnPointRadius','updateLinePoints','StraightConnector1','syncExecuteCommand','_executeConnectedRouteConnectionCommand','UniverSheetsDrawingUIPlugin','CURSOR_TYPE','clearActiveDrawingObjects','1.0.0-alpha.4','_contextService','_sheetInterceptorService','UpdateLineShapeResizeCommand','_sheetBasicShapeConnectionPointController','Plugin','SheetsShapeUIMenuSchema','getMenuHiddenObservable','univer-box-border\x20univer-px-4\x20univer-text-sm','_getShapeAdjustInfosById','point','setFillImage','offsetX','_getShapeInfo','beforeCommandExecuted','isRender','getBasicShapeRotateBound','SetDrawingApplyMutation','16BQesdp','asObservable','_insertingShapeKeys','UniverSheetsShapePlugin','getSheetId','RemoveSheetDrawingCommand','DrawingImageClipService','oKey','COMMAND','DrawingTypeEnum','_iconManager','setShouldShowAdjust','image-clip-adjust-point-','viewportScrollY','description','lineType','getCurrentLastSelection','Circle','onSteady','_activeTargetShapeId','activeSheet$','actualHeight','_setTransForm','rect','_getScrollInfo','getUnitType','computeConnectorRouteLayout','_baseShapeHeight','onTransformChange$','beginPath','insertGroupObject','DRAWING_SMART_ART','ShapeIcon','getConnectionSiteList','intercept','registerRenderModule','subscribe','text','transformToDrawingPosition','VIEW_MAIN_LEFT','_focusedDrawings','find','useEffect','interceptCommand','_updateAdjustControlPositions','LocaleService','cos','getParent','getSkeletonParam','_currentUniverService','setPrstGeom','_handleConnectedEndpointPointerUp','_registerDrawingFocusChangeHandler','getShapeDataById','DRAWING_DOM','isHorizontal','discreteRangeToRange','unit','sheets-shape-ui.hidePanel','DrawingRenderService','_activeShapeAdjustPointList','value','startY','DRAWING_VIDEO','_closeShapeEditPanel','relation','register','@univerjs-pro/sheets-shape-ui','values','getConnectorLinePoints','_getSceneAndTransformerByDrawingSearch','Disposable','end','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_baseLeft','_registerMoveHandler','clip-','_sheetPrintInterceptorService','ConnectorCoordinateTransform','render','start','_createCopyInfoByRange','prstGeomAdjValues','VerticalAlign','buildClipPath','sheet.operation.open-sheet-shape-format-panel','permissionCheckWithoutRange','version','shape-adjust-point-','getValue','_initialize','calcAdjValue','ObjectListPanelBase','_connectorObjects','_lastEditingShapeKey','_isOpenedShapeEditPanel','constructor','ShapeArrowSizeEnum','_shapeUpdateListener','isRichText','_shapes','disableObjectsEvent','_draggingConnectorId','applyPoint','Vector2','skeleton','size','Rect','trim','getDrawingOrder','_shapeTextEditingService','gdRefX','27gBBHRr','DocSelectionRenderService','DRAWING_SHAPE','resolveShapeTextEditorBehaviorShapeData','map','save','resize','DRAWING_OBJECT_LAYER_INDEX','normal','_menuManagerService','gdRefAng','transformForAngle','src','getUnit','_componentManager','sheets-shape-ui.permission.editErr','_cxtHandlerPointerMove','SheetInterceptorService','translate','endArrow','scene','refreshAdjustControls','_showConnectionSites','_registerImageShapeClipDelegate','addObject','sheets-shape-ui.toggleTextVertical','featurePluginUpdateNotification','endConnectionDetection','function','_sidebarService','setContextValue','pluginName','registerFeatureMenuOffset','changeShapeType','error','DocumentSkeleton','_isStartAdjusting','_shapeEditPanelVersion','getAdjustInfoByName','_initPermission','rotation','buildShapeTextDataUpdate','defineProperty','drawingId','unsubscribe','setCursor','getBatchAddOp','setEditing','isCurvedConnectorShape','COPY_TYPE'];_0xa756=function(){return _0xe1024c;};return _0xa756();}const re='sheet.shape.picker.component',ie='sheet.image-clip.shape-picker.component';function ae({onShapeClick:_0x2aef4a,excludeGroups:_0x2ac1d5}){const _0x1d5e6b=_0x2daf50;return(0x0,d[_0x1d5e6b(0x444)])(n['ShapePickerPanel'],{'excludeGroups':_0x2ac1d5,'onShapeClick':_0x2aef4a,'scrollContainer':_0x1d5e6b(0x37b)});}function oe(){const _0x35c484=_0x2daf50;let _0x3a47ee=(0x0,e[_0x35c484(0x223)])(o[_0x35c484(0x3a9)]),_0x38d421=(0x0,e['useDependency'])(z);return(0x0,d['jsx'])(n[_0x35c484(0x1f1)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[n[_0x35c484(0x26b)][_0x35c484(0x3e2)]],'onShapeClick':_0x31447d=>{const _0x49db61=_0x35c484;let _0x2f9e43=_0x3a47ee[_0x49db61(0x3aa)]()[_0x49db61(0x2db)](_0x3f4618=>_0x3f4618['drawingType']===i[_0x49db61(0x2bb)][_0x49db61(0x270)]);if(!_0x2f9e43)return;let {unitId:_0x5b57df,subUnitId:_0x11ad5e,drawingId:_0x3367e3}=_0x2f9e43;_0x38d421[_0x49db61(0x3d5)](_0x5b57df,_0x11ad5e,_0x3367e3,_0x31447d[_0x49db61(0x3e6)]);}});}function se(){const _0x456b7a=_0x2daf50;let _0x390c34=(0x0,e[_0x456b7a(0x223)])(e['ComponentManager']),_0x1c9095=(0x0,e[_0x456b7a(0x223)])(o['IDrawingManagerService']),_0x54897a=(0x0,e[_0x456b7a(0x223)])(i[_0x456b7a(0x439)]),_0x4c860c=_0x1c9095[_0x456b7a(0x3aa)]()[0x0],_0x448469=_0x4c860c?_0x54897a[_0x456b7a(0x2cb)](_0x4c860c[_0x456b7a(0x378)]):void 0x0,_0x4fd93b=_0x448469===i[_0x456b7a(0x21b)][_0x456b7a(0x362)]?'doc.image-clip.shape-picker.component':_0x448469===i[_0x456b7a(0x21b)][_0x456b7a(0x447)]?ie:void 0x0,_0x5cf047=_0x4fd93b?_0x390c34[_0x456b7a(0x423)](_0x4fd93b):void 0x0;return _0x5cf047?(0x0,d[_0x456b7a(0x444)])(_0x5cf047,{}):null;}function ce(){const _0x21e10d=_0x2daf50;let _0x48f307=(0x0,e[_0x21e10d(0x223)])(i[_0x21e10d(0x1b8)]);return(0x0,d[_0x21e10d(0x444)])(ae,{'onShapeClick':_0x237296=>{const _0x1779dc=_0x21e10d;_0x48f307[_0x1779dc(0x374)](F['id'],{'value':_0x237296['type'],'enhanceParams':{'endArrow':_0x237296[_0x1779dc(0x335)],'startArrow':_0x237296[_0x1779dc(0x1d3)],'horizontal':_0x237296[_0x1779dc(0x46e)],'vertical':_0x237296['vertical']}});}});}function le(_0x278c31){const _0x340acc=_0x2daf50;let _0xb8561=_0x278c31[_0x340acc(0x423)](i['IUniverInstanceService']);return{'id':F['id'],'type':e[_0x340acc(0x357)]['SELECTOR'],'selections':[{'label':{'name':re,'hoverable':!0x1,'selectable':!0x1,'props':{'id':F['id']}}}],'icon':_0x340acc(0x2d2),'tooltip':_0x340acc(0x28f),'activated$':(0x0,c[_0x340acc(0x257)])(_0xb8561,!0x1,()=>new l[(_0x340acc(0x262))](_0x294c28=>{_0x294c28['next'](!0x1);})),'hidden$':(0x0,e[_0x340acc(0x2a7)])(_0x278c31,i[_0x340acc(0x21b)][_0x340acc(0x447)]),'disabled$':(0x0,c[_0x340acc(0x3b6)])(_0x278c31)};}function ue(_0x3f1021){const _0xf0bf91=_0x2daf50;let _0xecb6bd=_0x3f1021[_0xf0bf91(0x423)](i[_0xf0bf91(0x439)]);return{'id':ne['id'],'type':e['MenuItemType'][_0xf0bf91(0x28e)],'icon':_0xf0bf91(0x245),'title':_0xf0bf91(0x3b0),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,c[_0xf0bf91(0x257)])(_0xecb6bd,!0x1,()=>new l[(_0xf0bf91(0x262))](_0x4f84db=>{const _0x211d86=_0xf0bf91;_0x4f84db[_0x211d86(0x235)](!0x1);})),'hidden$':(0x0,e[_0xf0bf91(0x2a7)])(_0x3f1021,i[_0xf0bf91(0x21b)]['UNIVER_SHEET']),'disabled$':(0x0,c[_0xf0bf91(0x3b6)])(_0x3f1021)};}const de={[e['RibbonInsertGroup']['MEDIA']]:{[F['id']]:{'order':0x4,'menuItemFactory':le},[ne['id']]:{'order':4.1,'menuItemFactory':ue}}};var fe=_0x2daf50(0x2f5),pe=_0x2daf50(0x2a0);const B={'type':i[_0x2daf50(0x429)][_0x2daf50(0x20d)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},V={'type':i['CommandType']['OPERATION'],'id':_0x2daf50(0x307),'handler'(){return!0x0;}},me={};function he(_0x3f0621){const _0x5b5947=_0x2daf50;return _0x3f0621[_0x5b5947(0x31e)]()||void 0x0;}function ge(_0x4ef7e2){const _0x3166ae=_0x2daf50;switch(_0x4ef7e2['drawingType']){case i['DrawingTypeEnum']['DRAWING_IMAGE']:return'image';case i[_0x3166ae(0x2bb)][_0x3166ae(0x406)]:return _0x3166ae(0x1ac);case i['DrawingTypeEnum'][_0x3166ae(0x1a8)]:return _0x3166ae(0x25e);case i[_0x3166ae(0x2bb)][_0x3166ae(0x2d1)]:return _0x3166ae(0x1b1);case i[_0x3166ae(0x2bb)][_0x3166ae(0x2f1)]:return _0x3166ae(0x468);case i[_0x3166ae(0x2bb)][_0x3166ae(0x297)]:return'group';case i['DrawingTypeEnum'][_0x3166ae(0x3b1)]:return _0x3166ae(0x2eb);case i['DrawingTypeEnum']['DRAWING_DOM']:return'dom';case i['DrawingTypeEnum']['DRAWING_SHAPE']:return _0x3166ae(0x3ba);default:return _0x3166ae(0x25c);}}function _e(_0x4e23b4,_0x55c2b4,_0x4522e8){const _0x17d4f4=_0x2daf50;var _0x1150f0;return((_0x1150f0=_0x4e23b4[_0x17d4f4(0x3a7)])==null?void 0x0:_0x1150f0[_0x17d4f4(0x31e)]())||(0x0,u[_0x17d4f4(0x3f4)])(_0x4522e8,ge(_0x4e23b4))+'\x20'+(_0x55c2b4+0x1);}function ve(){const _0x29849e=_0x2daf50;var _0x967ae8,_0x30305f,_0x4a0645,_0x36d67d;let _0xd7196=(0x0,e[_0x29849e(0x223)])(i[_0x29849e(0x2df)]),_0x4bc734=(0x0,e['useDependency'])(i[_0x29849e(0x1b8)]),_0x28cb77=(0x0,e[_0x29849e(0x223)])(i['IUniverInstanceService']),_0x5b280b=(0x0,e[_0x29849e(0x223)])(h[_0x29849e(0x408)]),_0x4013a9=(0x0,e[_0x29849e(0x223)])(o[_0x29849e(0x3a9)]),_0x26b277=(0x0,e['useDependency'])(s[_0x29849e(0x282)]),[,_0x43e05a]=(0x0,g['useReducer'])(_0xda4b86=>_0xda4b86+0x1,0x0),_0x1ac052=_0x28cb77[_0x29849e(0x1b4)](i[_0x29849e(0x21b)][_0x29849e(0x447)]),_0x78f613=(_0x967ae8=_0x1ac052==null?void 0x0:_0x1ac052[_0x29849e(0x295)]())==null?'':_0x967ae8,_0xf39faa=(_0x30305f=_0x1ac052==null||(_0x4a0645=_0x1ac052[_0x29849e(0x370)]())==null?void 0x0:_0x4a0645[_0x29849e(0x2b6)]())==null?'':_0x30305f,_0x127931=(0x0,e['useObservable'])(()=>_0x4013a9[_0x29849e(0x271)],_0x4013a9[_0x29849e(0x3aa)](),!0x1,[_0x4013a9]);(0x0,g[_0x29849e(0x2dc)])(()=>{const _0x4cea4a=_0x29849e;let _0x1d93bd=_0x4bc734[_0x4cea4a(0x20b)](()=>_0x43e05a());return()=>_0x1d93bd[_0x4cea4a(0x428)]();},[_0x4bc734]);let _0x2cb88c=_0x78f613&&_0xf39faa?_0x5b280b[_0x29849e(0x278)](_0x78f613,_0xf39faa):{},_0x32feec=_0x78f613&&_0xf39faa?_0x5b280b[_0x29849e(0x31f)](_0x78f613,_0xf39faa):[],_0x1eb837=(0x0,g['useMemo'])(()=>(0x0,u[_0x29849e(0x38d)])(_0xd7196),[_0xd7196]),_0x4f55b9=(0x0,g[_0x29849e(0x3bb)])(()=>{const _0x7aca47=_0x29849e;let _0xe6c88d=_0x32feec[_0x7aca47(0x326)](_0x184d6c=>_0x2cb88c[_0x184d6c])[_0x7aca47(0x1df)](_0x4fc442=>!!_0x4fc442)[_0x7aca47(0x472)](),_0x632c=_0xe6c88d[_0x7aca47(0x368)]((_0x165d08,_0x35e2b0)=>(_0x165d08[(0x0,u[_0x7aca47(0x436)])(_0x35e2b0['drawingType'])]+=0x1,_0x165d08),{'canvas':0x0,'floating':0x0}),_0x15ac8b={'canvas':0x0,'floating':0x0};return _0xe6c88d[_0x7aca47(0x326)]((_0x401602,_0x544530)=>{const _0x5174ea=_0x7aca47;let _0x5d2000=(0x0,u[_0x5174ea(0x436)])(_0x401602[_0x5174ea(0x3ea)]),_0x103b9e=_0x5d2000===u[_0x5174ea(0x1b0)],_0x100a71=_0x15ac8b[_0x5d2000]++;return{'id':_0x401602[_0x5174ea(0x34d)],'name':_e(_0x401602,_0x544530,_0xd7196),'description':_0x401602[_0x5174ea(0x2c0)],'visible':_0x401602[_0x5174ea(0x364)]!==!0x0,'selectable':_0x401602[_0x5174ea(0x457)]!==!0x1,'sectionId':_0x5d2000,'sectionTitle':_0x103b9e?_0x1eb837['sectionFloating']:_0x1eb837[_0x5174ea(0x214)],'capabilities':_0x103b9e?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x103b9e&&_0x100a71>0x0,'canMoveBackward':!_0x103b9e&&_0x100a71<_0x632c[_0x5174ea(0x242)]-0x1,'canReorder':!_0x103b9e};});},[_0x2cb88c,_0x32feec,_0x1eb837[_0x29849e(0x214)],_0x1eb837['sectionFloating'],_0xd7196]),_0x3df661=(0x0,g[_0x29849e(0x3bb)])(()=>(_0x127931==null?[]:_0x127931)[_0x29849e(0x1df)](_0x2d030d=>_0x2d030d[_0x29849e(0x378)]===_0x78f613&&_0x2d030d['subUnitId']===_0xf39faa)[_0x29849e(0x326)](_0x33eea1=>_0x33eea1[_0x29849e(0x34d)]),[_0x127931,_0xf39faa,_0x78f613]),_0x5af9c0=(_0x36d67d=_0x3df661[_0x3df661[_0x29849e(0x3ce)]-0x1])==null?null:_0x36d67d,_0x20de05=_0x3bf5e8=>{const _0x48ce95=_0x29849e;var _0x3162a0;return(_0x3162a0=_0x5b280b[_0x48ce95(0x39b)]({'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x3bf5e8}))==null?null:_0x3162a0;},_0x179143=_0x4e3159=>{const _0x25612c=_0x29849e;!_0x78f613||!_0x4e3159[_0x25612c(0x3ce)]||_0x4bc734[_0x25612c(0x374)](h['SetSheetDrawingCommand']['id'],{'unitId':_0x78f613,'drawings':_0x4e3159});},_0x318958=(_0x5d9cdf,_0x5613a2)=>{_0x20de05(_0x5d9cdf)&&_0x179143([{'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x5d9cdf,..._0x5613a2}]);},_0x431722=(_0x19bb55,_0x26dda4)=>{const _0x1073e5=_0x29849e;if(!_0x78f613||!_0xf39faa)return;let _0x15de10=_0x26dda4?_0x3df661['includes'](_0x19bb55)?_0x3df661[_0x1073e5(0x1df)](_0x451fcb=>_0x451fcb!==_0x19bb55):[..._0x3df661,_0x19bb55]:[_0x19bb55];_0x4bc734['syncExecuteCommand'](o[_0x1073e5(0x465)]['id'],_0x15de10[_0x1073e5(0x326)](_0x3ed6a0=>({'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x3ed6a0})));let _0x195faf=_0x15de10[_0x15de10['length']-0x1];_0x195faf?(0x0,n['activateDrawingObject'])(_0x26b277,{'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x195faf}):(0x0,n[_0x1073e5(0x29f)])(_0x26b277,_0x78f613);},_0x5a6296=(_0x563abc,_0x4a2577)=>{const _0x29ad5c=_0x29849e;_0x179143(_0x563abc[_0x29ad5c(0x326)](_0x10a8f1=>_0x20de05(_0x10a8f1))[_0x29ad5c(0x1df)](_0x2a3d37=>!!_0x2a3d37)[_0x29ad5c(0x1df)](_0x2d83f3=>_0x2d83f3[_0x29ad5c(0x364)]!==!0x0!==_0x4a2577)[_0x29ad5c(0x326)](_0x1e2a1e=>({'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x1e2a1e[_0x29ad5c(0x34d)],'hidden':!_0x4a2577})));},_0x34e2ea=_0x3a4012=>{const _0x11321d=_0x29849e;let _0x556de0=_0x20de05(_0x3a4012);_0x556de0&&_0x318958(_0x3a4012,{'selectable':_0x556de0[_0x11321d(0x457)]===!0x1?void 0x0:!0x1});},_0x164545=(_0xea79da,_0x1bc638)=>{var _0x5c2e1e,_0x44b5c0;let _0x431a52=he(_0x1bc638);((_0x5c2e1e=(_0x44b5c0=_0x20de05(_0xea79da))==null?void 0x0:_0x44b5c0['name'])==null?void 0x0:_0x5c2e1e)!==_0x431a52&&_0x318958(_0xea79da,{'name':_0x431a52});},_0x2c9b4f=(_0x29e05f,_0x1484e5)=>{const _0x38baa4=_0x29849e;var _0x37885b,_0x13e0fa;let _0x20409d=he(_0x1484e5);((_0x37885b=(_0x13e0fa=_0x20de05(_0x29e05f))==null?void 0x0:_0x13e0fa[_0x38baa4(0x2c0)])==null?void 0x0:_0x37885b)!==_0x20409d&&_0x318958(_0x29e05f,{'description':_0x20409d});},_0x5c3117=(_0x122bf3,_0x4d2aa8)=>{const _0x4843ed=_0x29849e;!_0x78f613||!_0xf39faa||_0x4bc734[_0x4843ed(0x374)](h[_0x4843ed(0x42e)]['id'],{'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingIds':[_0x122bf3],'arrangeType':_0x4d2aa8});};return!_0x78f613||!_0xf39faa?(0x0,d[_0x29849e(0x444)])('div',{'className':_0x29849e(0x40f),'children':_0x1eb837[_0x29849e(0x1cf)]}):(0x0,d[_0x29849e(0x444)])(u[_0x29849e(0x30e)],{'items':_0x4f55b9,'selectedIds':_0x3df661,'focusedId':_0x5af9c0,'labels':_0x1eb837,'onSelect':_0x431722,'onSetVisible':_0x5a6296,'onCommitName':_0x164545,'onCommitDescription':_0x2c9b4f,'onMoveForward':_0x439846=>_0x5c3117(_0x439846,i[_0x29849e(0x37a)]['forward']),'onMoveBackward':_0x32a80=>_0x5c3117(_0x32a80,i['ArrangeTypeEnum'][_0x29849e(0x3eb)]),'onToggleSelectable':_0x34e2ea});}let H=class{constructor(_0x4321f8){this['_renderManagerService']=_0x4321f8;}['updateShapeFillImage'](_0x4cf995,_0x3da04f){const _0xcd3481=_0x2daf50;let _0x5131ae=this['_renderManagerService']['getRenderById'](_0x4cf995[_0xcd3481(0x378)]),_0x26db52=_0x5131ae==null?void 0x0:_0x5131ae[_0xcd3481(0x336)];if(!_0x26db52)return;let _0x3dd283=(0x0,o[_0xcd3481(0x41c)])(_0x4cf995),_0x57d75c=_0x26db52[_0xcd3481(0x23d)](_0x3dd283);_0x57d75c==null||_0x57d75c[_0xcd3481(0x2ab)](_0x3da04f);}};H=j([A(0x0,s[_0x2daf50(0x282)])],H);function ye(){const _0x4591b3=_0x2daf50;let _0x3630ed=(0x0,e['useDependency'])(o[_0x4591b3(0x3a9)]),_0x13e246=(0x0,e[_0x4591b3(0x3ec)])(()=>_0x3630ed[_0x4591b3(0x271)],_0x3630ed[_0x4591b3(0x3aa)](),!0x1,[_0x3630ed]);return _0x13e246['length']===0x0?null:(0x0,d['jsx'])(_0x4591b3(0x44d),{'children':(0x0,d[_0x4591b3(0x272)])(_0x4591b3(0x44d),{'className':_0x4591b3(0x2a8),'children':[(0x0,d[_0x4591b3(0x444)])(u['DrawingCommonPanel'],{'drawings':_0x13e246,'hasCropper':!0x1}),(0x0,d[_0x4591b3(0x444)])(p[_0x4591b3(0x23e)],{'drawings':_0x13e246})]})});}function be(_0x2aa3c6){const _0x9b4096=_0x2daf50;let {unitId:_0x29b0ec,subUnitId:_0x5664d0,shapeId:_0x3d14f7}=_0x2aa3c6,_0x372ed7=(0x0,e[_0x9b4096(0x223)])(i[_0x9b4096(0x1b8)]),_0x592027=(0x0,e[_0x9b4096(0x223)])(H);return(0x0,d[_0x9b4096(0x444)])(n[_0x9b4096(0x35e)],{..._0x2aa3c6,'positionEditor':(0x0,d[_0x9b4096(0x444)])(ye,{}),'onUpdateShapeData':(_0x22eefb,_0x5f48c1)=>{x(_0x372ed7,_0x29b0ec,_0x5664d0,_0x3d14f7,_0x22eefb,_0x5f48c1);},'onUpdateLineShapeData':(_0x4796f8,_0x4e5fa2)=>{S(_0x372ed7,_0x29b0ec,_0x5664d0,_0x3d14f7,_0x4796f8,_0x4e5fa2);},'onUpdateShapeFillImage':_0x41863a=>{const _0x16fb5e=_0x9b4096;_0x592027[_0x16fb5e(0x3e4)]({'unitId':_0x29b0ec,'subUnitId':_0x5664d0,'drawingId':_0x3d14f7},_0x41863a);}});}function xe(_0x50905e){const _0x36bfe8=_0x2daf50;let _0x4b2337=_0x50905e[_0x36bfe8(0x36b)]['extraProps'];return _0x4b2337?(0x0,d['jsx'])(Se,{..._0x4b2337}):null;}function Se(_0x253775){const _0x298ebe=_0x2daf50;var _0x19c60e,_0xc9755c;let _0x39c5e8=(0x0,e[_0x298ebe(0x223)])(i[_0x298ebe(0x1b8)]),_0x305f71=(0x0,e[_0x298ebe(0x223)])(r[_0x298ebe(0x411)]),{unitId:_0x51a56d,subUnitId:_0x500a7d,drawingId:_0x4b8555,drawingType:_0x184723,shapeType:_0x1864b5}=_0x253775,[_0x5c7ff5,_0x115f89]=(0x0,g[_0x298ebe(0x253)])(_0x253775[_0x298ebe(0x285)]),_0x5f0992=(0x0,g[_0x298ebe(0x3bb)])(()=>(0x0,n[_0x298ebe(0x27a)])(_0x5c7ff5),[_0x5c7ff5]),_0x4f66e2=(0x0,g[_0x298ebe(0x3bb)])(()=>(0x0,n[_0x298ebe(0x392)])(_0x5c7ff5),[_0x5c7ff5]);(0x0,g[_0x298ebe(0x2dc)])(()=>{const _0x475be1=_0x298ebe;let _0xeecad8=_0x39c5e8[_0x475be1(0x20b)](_0x282bc5=>{const _0xcb21e5=_0x475be1;if(_0x282bc5['id']!==r[_0xcb21e5(0x3dc)]['id'])return;let _0x1f0a96=_0x305f71[_0xcb21e5(0x2e7)](_0x51a56d,_0x500a7d,_0x4b8555);_0x1f0a96&&_0x115f89(_0x1f0a96);});return()=>_0xeecad8[_0x475be1(0x428)]();},[_0x39c5e8,_0x4b8555,_0x305f71,_0x500a7d,_0x51a56d]);let _0x25067e=_0x1b21de=>{_0x115f89(_0x567707=>({..._0x567707,..._0x1b21de}));},_0x188037=_0x34eed4=>{const _0x2410f5=_0x298ebe;let _0x13f6e8=(0x0,n[_0x2410f5(0x34b)])(_0x5c7ff5,_0x34eed4);x(_0x39c5e8,_0x51a56d,_0x500a7d,_0x4b8555,{'oldShapeData':{'shapeText':_0x5c7ff5[_0x2410f5(0x3b2)]}},_0x13f6e8),_0x25067e(_0x13f6e8);};return(0x0,d[_0x298ebe(0x444)])(n[_0x298ebe(0x1c0)],{'shapeData':_0x5c7ff5,'shapeType':_0x1864b5,'textStyle':{'ff':t[_0x298ebe(0x24f)][_0x298ebe(0x3b2)]['fontFamily'],'fs':t[_0x298ebe(0x24f)][_0x298ebe(0x3b2)][_0x298ebe(0x425)],'cl':{'rgb':t[_0x298ebe(0x24f)][_0x298ebe(0x3b2)]['color']},..._0x5f0992},'textModel':_0x4f66e2?{'ha':(_0x19c60e=_0x4f66e2['ha'])==null?i[_0x298ebe(0x22e)][_0x298ebe(0x38b)]:_0x19c60e,'va':(_0xc9755c=_0x4f66e2['va'])==null?i[_0x298ebe(0x305)][_0x298ebe(0x3f5)]:_0xc9755c}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':t[_0x298ebe(0x24f)][_0x298ebe(0x25f)],'defaultGradientEndColor':t[_0x298ebe(0x24f)][_0x298ebe(0x3a8)],'defaultStrokeColor':t['ShapeDefaultConfig'][_0x298ebe(0x1be)],'onUpdateShapeData':(_0x5e9383,_0x108c88)=>{x(_0x39c5e8,_0x51a56d,_0x500a7d,_0x4b8555,_0x5e9383,_0x108c88),_0x108c88&&_0x25067e(_0x108c88);},'onUpdateText':_0x188037,'onOpenPanel':()=>{_0x39c5e8['executeCommand'](V['id'],{'unitId':_0x51a56d,'subUnitId':_0x500a7d,'drawingId':_0x4b8555});},'onDelete':()=>{const _0x400dff=_0x298ebe;_0x39c5e8[_0x400dff(0x374)](h[_0x400dff(0x2b7)]['id'],{'unitId':_0x51a56d,'drawings':[{'unitId':_0x51a56d,'subUnitId':_0x500a7d,'drawingId':_0x4b8555,'drawingType':_0x184723}]});}});}var U=class extends i[_0x2daf50(0x2f9)]{constructor(..._0xa23d7c){const _0x4c8bcf=_0x2daf50;super(..._0xa23d7c),E(this,_0x4c8bcf(0x273),new l[(_0x4c8bcf(0x1bf))](null)),E(this,_0x4c8bcf(0x1cd),this[_0x4c8bcf(0x273)]['asObservable']()),E(this,'_onSavingEditorData$',new l[(_0x4c8bcf(0x1bf))](!0x1)),E(this,'onSavingEditorData$',this[_0x4c8bcf(0x38c)][_0x4c8bcf(0x2b3)]());}['dispose'](){const _0xf4502f=_0x2daf50;this[_0xf4502f(0x273)]['next'](null),this[_0xf4502f(0x273)][_0xf4502f(0x42d)](),this[_0xf4502f(0x38c)][_0xf4502f(0x235)](!0x1),this[_0xf4502f(0x38c)][_0xf4502f(0x42d)](),super[_0xf4502f(0x428)]();}[_0x2daf50(0x351)](_0x4ac962){const _0x293005=_0x2daf50;this['_editingParams$'][_0x293005(0x235)](_0x4ac962),_0x4ac962==null&&this[_0x293005(0x38c)]['next'](!0x1);}[_0x2daf50(0x41d)](_0x229dce){const _0x5ab107=_0x2daf50;this[_0x5ab107(0x38c)][_0x5ab107(0x235)](_0x229dce);}['getEditing'](){const _0x509d06=_0x2daf50;return this[_0x509d06(0x273)][_0x509d06(0x30b)]();}[_0x2daf50(0x413)](_0x720e55){const _0x4b0b26=_0x2daf50;this[_0x4b0b26(0x3da)]()&&(this[_0x4b0b26(0x41d)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}['cancelEditing'](){this['getEditing']()&&this['setEditing'](null);}};const Ce=(0x0,g[_0x2daf50(0x481)])(()=>{const _0x5095cd=_0x2daf50;let _0x828123=(0x0,e['useDependency'])(U),_0x41f09f=(0x0,e[_0x5095cd(0x223)])(r[_0x5095cd(0x411)]),_0x337f4a=(0x0,e[_0x5095cd(0x223)])(o[_0x5095cd(0x3a9)]),_0x4eb7b5=(0x0,e[_0x5095cd(0x223)])(i['ICommandService']),_0x55603e=(0x0,e[_0x5095cd(0x223)])(s[_0x5095cd(0x282)]);return(0x0,d[_0x5095cd(0x444)])(n['ShapeTextEditorContainer'],{'adapter':(0x0,g[_0x5095cd(0x3bb)])(()=>({'getShapeModel':(_0x18ed53,_0x1644ab,_0x151f12)=>_0x41f09f[_0x5095cd(0x3c5)](_0x18ed53,_0x1644ab,_0x151f12),'getShapeData':(_0x44086c,_0x4e2054,_0xf71210)=>_0x41f09f[_0x5095cd(0x2e7)](_0x44086c,_0x4e2054,_0xf71210),'getDrawingTransform':(_0x34f1a2,_0x316c1b,_0x105e34)=>{const _0x5b11c6=_0x5095cd;let _0x479f65=_0x337f4a[_0x5b11c6(0x39b)]({'unitId':_0x34f1a2,'subUnitId':_0x316c1b,'drawingId':_0x105e34});return _0x479f65==null?void 0x0:_0x479f65[_0x5b11c6(0x1f8)];},'updateShapeText':({unitId:_0x3f6c90,subUnitId:_0x254174,shapeId:_0x4fc0de,shapeText:_0x2636e5,oldShapeText:_0x448111})=>{const _0x29c941=_0x5095cd;_0x4eb7b5[_0x29c941(0x374)](b['id'],{'unitId':_0x3f6c90,'subUnitId':_0x254174,'shapeId':_0x4fc0de,'shapeData':{'shapeText':_0x2636e5},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x448111}}});},'updateHostSize':({unitId:_0x13bba6,subUnitId:_0x445fdb,shapeId:_0x2089f4,width:_0x5a87c4,height:_0x2a3bcb})=>{const _0x11f159=_0x5095cd;var _0x2fc72a,_0xa7b6d2,_0x42bbf3;let _0x286e1c=_0x337f4a['getDrawingByParam']({'unitId':_0x13bba6,'subUnitId':_0x445fdb,'drawingId':_0x2089f4}),_0x374b5f=_0x286e1c==null?void 0x0:_0x286e1c[_0x11f159(0x1f8)];if(!_0x286e1c||!_0x374b5f)return;let _0x17a7ea={..._0x374b5f,'width':_0x5a87c4,'height':_0x2a3bcb},_0x2aa1b1=(_0x2fc72a=_0x55603e[_0x11f159(0x36e)](_0x13bba6))==null||(_0x2fc72a=_0x2fc72a[_0x11f159(0x463)](c[_0x11f159(0x366)])[_0x11f159(0x2e2)](_0x445fdb))==null?void 0x0:_0x2fc72a[_0x11f159(0x31b)],_0x318f5c=_0x2aa1b1?(_0xa7b6d2=(0x0,h[_0x11f159(0x2d8)])(_0x17a7ea,_0x2aa1b1))==null?_0x286e1c[_0x11f159(0x221)]:_0xa7b6d2:_0x286e1c['sheetTransform'],_0x47b314=_0x2aa1b1?(_0x42bbf3=(0x0,h[_0x11f159(0x395)])(_0x17a7ea,_0x2aa1b1))==null?_0x286e1c['axisAlignSheetTransform']:_0x42bbf3:_0x286e1c[_0x11f159(0x1f0)];_0x4eb7b5[_0x11f159(0x374)](h['SetSheetDrawingCommand']['id'],{'unitId':_0x13bba6,'drawings':[{..._0x286e1c,'transform':_0x17a7ea,'sheetTransform':_0x318f5c,'axisAlignSheetTransform':_0x47b314}]});},'allowHostSizeShrink':({unitId:_0x742cfe,subUnitId:_0x26e966,shapeId:_0xa24d4c})=>(0x0,n[_0x5095cd(0x3d1)])(_0x41f09f[_0x5095cd(0x2e7)](_0x742cfe,_0x26e966,_0xa24d4c))}),[_0x4eb7b5,_0x337f4a,_0x55603e,_0x41f09f]),'editingService':_0x828123,'editorUnitId':ee,'positionOptions':(0x0,g[_0x5095cd(0x3bb)])(()=>({'viewportKeys':{'main':s[_0x5095cd(0x459)]['VIEW_MAIN'],'leftTop':s[_0x5095cd(0x459)][_0x5095cd(0x443)],'top':s[_0x5095cd(0x459)]['VIEW_MAIN_TOP'],'left':s[_0x5095cd(0x459)][_0x5095cd(0x2d9)]},'getSkeleton':(_0x3d2b98,_0x1c98fd)=>{const _0x1d40dc=_0x5095cd;var _0x503c03,_0x1a9360;return(_0x503c03=(_0x1a9360=_0x3d2b98[_0x1d40dc(0x463)](c[_0x1d40dc(0x366)])[_0x1d40dc(0x2e2)](_0x1c98fd['subUnitId']))==null?void 0x0:_0x1a9360[_0x1d40dc(0x31b)])==null?null:_0x503c03;}}),[])});});let W=class extends i[_0x2daf50(0x2f9)]{constructor(_0x4ce054,_0x44a8b2){const _0x48ff55=_0x2daf50;super(),this[_0x48ff55(0x330)]=_0x4ce054,this[_0x48ff55(0x2bc)]=_0x44a8b2,this['_registerIcons'](),this['_registerComponents']();}[_0x2daf50(0x3a1)](){const _0x106b15=_0x2daf50;this['_iconManager'][_0x106b15(0x35d)](_0x106b15(0x245))||this[_0x106b15(0x1c1)](this[_0x106b15(0x2bc)][_0x106b15(0x2f4)]({'CopyDoubleIcon':m[_0x106b15(0x245)]}));}[_0x2daf50(0x47b)](){const _0x59c017=_0x2daf50;this[_0x59c017(0x1c1)](this['_componentManager'][_0x59c017(0x2f4)](I,be)),this[_0x59c017(0x1c1)](this[_0x59c017(0x330)][_0x59c017(0x2f4)](L,ve)),this[_0x59c017(0x1c1)](this['_componentManager']['register'](re,ce)),this[_0x59c017(0x1c1)](this['_componentManager']['register'](ie,oe)),this[_0x59c017(0x330)][_0x59c017(0x423)](u[_0x59c017(0x43f)])||this['disposeWithMe'](this['_componentManager'][_0x59c017(0x2f4)](u[_0x59c017(0x43f)],se)),this[_0x59c017(0x1c1)](this['_componentManager']['register'](R,xe)),this[_0x59c017(0x1c1)](this[_0x59c017(0x330)]['register'](te,n[_0x59c017(0x263)])),this[_0x59c017(0x1c1)](this[_0x59c017(0x330)][_0x59c017(0x2f4)]('SheetShapeTextEditorContainer',Ce));}};W=j([A(0x0,(0x0,i[_0x2daf50(0x1bb)])(e['ComponentManager'])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(e[_0x2daf50(0x24d)]))],W);let G=class extends i[_0x2daf50(0x2f9)]{constructor(_0x594571,_0x372fee,_0x4af390,_0x116f32,_0x4ee512){const _0x26c2e6=_0x2daf50;super(),this[_0x26c2e6(0x200)]=_0x594571,this[_0x26c2e6(0x449)]=_0x372fee,this['_renderManagerService']=_0x4af390,this['_univerInstanceService']=_0x116f32,this[_0x26c2e6(0x265)]=_0x4ee512,E(this,_0x26c2e6(0x38e),null),E(this,_0x26c2e6(0x19c),null),E(this,_0x26c2e6(0x1a5),null),E(this,_0x26c2e6(0x400),void 0x0),E(this,'_shapes',[]),E(this,'_baseLeft',0x0),E(this,_0x26c2e6(0x422),0x0),E(this,_0x26c2e6(0x35a),0x0),E(this,_0x26c2e6(0x3fe),0x0),E(this,_0x26c2e6(0x346),!0x1),E(this,_0x26c2e6(0x3cc),void 0x0),E(this,_0x26c2e6(0x3d0),void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x26c2e6(0x212),!0x1),this[_0x26c2e6(0x40d)](),this[_0x26c2e6(0x2fd)]();}['clearAdjustControls'](){const _0x2f6858=_0x2daf50;this[_0x2f6858(0x222)]();}[_0x2daf50(0x337)](){const _0xa99a73=_0x2daf50;this[_0xa99a73(0x222)](),this[_0xa99a73(0x227)](!0x0);}[_0x2daf50(0x234)](_0x1aff75,_0x276237,_0x1b9912,_0x1b7fea){const _0x413037=_0x2daf50;let _0x339454=_0x1aff75;if(!(_0x339454===t[_0x413037(0x266)][_0x413037(0x1ad)]||_0x1aff75===_0x413037(0x3a6)))try{let _0x475f0f=new t[(_0x413037(0x45f))](_0x339454,'clip-adj-'+_0x1aff75);return _0x1b7fea&&_0x475f0f['setShapeData']({'adjustValues':_0x1b7fea},!0x0),_0x475f0f[_0x413037(0x3a0)]({'width':_0x276237,'height':_0x1b9912}),_0x475f0f;}catch{return;}}['_getImageDrawingInfo'](_0x11c49e,_0x44a789,_0x1d61a6){const _0x24df19=_0x2daf50;let _0x479236={'unitId':_0x11c49e,'subUnitId':_0x44a789,'drawingId':_0x1d61a6},_0x49bb3f=this[_0x24df19(0x449)][_0x24df19(0x39b)](_0x479236);if(!(!_0x49bb3f||_0x49bb3f[_0x24df19(0x3ea)]!==i[_0x24df19(0x2bb)][_0x24df19(0x270)]))return _0x49bb3f;}['_getImagePrstGeom'](_0xd19480,_0x39fe75,_0x2aa4b7){const _0x4406c6=_0x2daf50;let _0x5becf3=this[_0x4406c6(0x3fc)][_0x4406c6(0x36e)](_0xd19480);if(!_0x5becf3)return;let {scene:_0x11e78a}=_0x5becf3,_0xb0c84e=(0x0,o[_0x4406c6(0x41c)])({'unitId':_0xd19480,'subUnitId':_0x39fe75,'drawingId':_0x2aa4b7}),_0x7fccfc=_0x11e78a[_0x4406c6(0x283)](_0xb0c84e);if(_0x7fccfc instanceof s[_0x4406c6(0x21c)]){let _0x3248d8=_0x7fccfc[_0x4406c6(0x431)];if(_0x3248d8)return{'prstGeom':_0x3248d8,'adjustValues':_0x7fccfc['prstGeomAdjValues']};}}[_0x2daf50(0x227)](_0x458ea3=!0x1){const _0x39bc48=_0x2daf50;if(!this[_0x39bc48(0x19c)]||!this[_0x39bc48(0x1a5)]||!this[_0x39bc48(0x38e)])return;let _0x4274fc=this[_0x39bc48(0x3fc)][_0x39bc48(0x36e)](this['_unitId']);if(!_0x4274fc||!_0x4274fc[_0x39bc48(0x463)](c[_0x39bc48(0x366)])[_0x39bc48(0x435)]())return;let {scene:_0x1acf11}=_0x4274fc,_0x45ae13=this['_getImageDrawingInfo'](this[_0x39bc48(0x19c)],this[_0x39bc48(0x1a5)],this[_0x39bc48(0x38e)]);if(!_0x45ae13)return;let {transform:_0x5a4518}=_0x45ae13;if(!_0x5a4518)return;let {left:_0xc79ed7,top:_0x27b887,width:_0x24c1c6,height:_0x49374a,flipX:_0x4b882f,flipY:_0x348ea8,angle:_0x130fd0=0x0}=_0x5a4518;if(_0xc79ed7===void 0x0||_0x27b887===void 0x0)return;let _0x419cd5=this['_getImagePrstGeom'](this['_unitId'],this[_0x39bc48(0x1a5)],this[_0x39bc48(0x38e)]);if(!_0x419cd5)return;if(_0x458ea3){let _0x12e328=this['_getOrCreateShapeModel'](_0x419cd5[_0x39bc48(0x431)],_0x24c1c6||0x0,_0x49374a||0x0,_0x419cd5[_0x39bc48(0x3ee)]);if(!_0x12e328)return;this[_0x39bc48(0x400)]=_0x12e328[_0x39bc48(0x26c)]();}let _0x1ccbd3=this[_0x39bc48(0x400)];if(!(!_0x1ccbd3||_0x1ccbd3[_0x39bc48(0x3ce)]===0x0))for(let _0x197fb7=0x0;_0x197fb7<_0x1ccbd3[_0x39bc48(0x3ce)];_0x197fb7++){let _0x50c6ab=_0x1ccbd3[_0x197fb7],_0x46288b=_0x50c6ab['x'],_0x4a75d9=_0x50c6ab['y'];if(_0x4b882f&&(_0x46288b=(_0x24c1c6||0x0)-_0x46288b),_0x348ea8&&(_0x4a75d9=(_0x49374a||0x0)-_0x4a75d9),_0x130fd0!==0x0){let _0x107dcc=(_0x24c1c6||0x0)/0x2,_0x294565=(_0x49374a||0x0)/0x2,_0x4ff18f=_0x130fd0*Math['PI']/0xb4,_0x218dca=Math['cos'](_0x4ff18f),_0x3a11b0=Math['sin'](_0x4ff18f),_0x2e73e8=_0x46288b-_0x107dcc,_0x457e2e=_0x4a75d9-_0x294565;_0x46288b=_0x107dcc+(_0x2e73e8*_0x218dca-_0x457e2e*_0x3a11b0),_0x4a75d9=_0x294565+(_0x2e73e8*_0x3a11b0+_0x457e2e*_0x218dca);}let _0x51ae3d={'x':_0x46288b,'y':_0x4a75d9,'adjName':_0x50c6ab[_0x39bc48(0x25a)]};this[_0x39bc48(0x47e)](_0x1acf11,_0x51ae3d,_0x51ae3d[_0x39bc48(0x25a)],_0xc79ed7,_0x27b887,this[_0x39bc48(0x19c)],this[_0x39bc48(0x1a5)]);}}[_0x2daf50(0x47e)](_0x55c6c1,_0x2e2fa3,_0x45f78b,_0x4657fa,_0x11d294,_0x3906be,_0x3ea908){const _0x1e2c16=_0x2daf50;if(!this[_0x1e2c16(0x38e)])return;let _0x2a2d72=_0x1e2c16(0x2be)+this[_0x1e2c16(0x38e)]+'-'+_0x45f78b,_0x399a06=_0x55c6c1[_0x1e2c16(0x23d)](_0x2a2d72);if(_0x399a06){_0x399a06[_0x1e2c16(0x201)]({'left':_0x2e2fa3['x']+_0x4657fa-t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)],'top':_0x2e2fa3['y']+_0x11d294-t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)]});return;}let _0x28807b=new k(_0x2a2d72,{'left':_0x2e2fa3['x']+_0x4657fa-t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)],'top':_0x2e2fa3['y']+_0x11d294-t['ShapeDefaultConfig'][_0x1e2c16(0x27e)],'adjName':_0x45f78b,'shapeId':this[_0x1e2c16(0x38e)],'unitId':_0x3906be,'subUnitId':_0x3ea908,'width':t[_0x1e2c16(0x24f)]['adjHandleSize']+0x8,'height':t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)]+0x8,'zIndex':s[_0x1e2c16(0x329)]+0x1,'evented':!0x0});this[_0x1e2c16(0x316)][_0x1e2c16(0x1d8)](_0x28807b),this[_0x1e2c16(0x229)](_0x28807b,_0x55c6c1,_0x45f78b),_0x55c6c1['addObject'](_0x28807b,s[_0x1e2c16(0x329)]+0x1);}['_clearControls'](){const _0x5d90a7=_0x2daf50;this[_0x5d90a7(0x316)]['length']!==0x0&&(this[_0x5d90a7(0x316)][_0x5d90a7(0x279)](_0x4b1980=>_0x4b1980['dispose']()),this[_0x5d90a7(0x316)]=[]);}[_0x2daf50(0x2ca)](_0x227c04,_0x7ab7ff){const _0x18338a=_0x2daf50;var _0x2a8ae5;let _0x2f82ef={'x':0x0,'y':0x0},_0x8d5ceb=this['_renderManagerService']['getRenderById'](_0x227c04);if(!_0x8d5ceb||!_0x8d5ceb['with'](c[_0x18338a(0x366)])[_0x18338a(0x386)](_0x7ab7ff))return _0x2f82ef;let _0x223d21=_0x8d5ceb[_0x18338a(0x463)](c['SheetScrollManagerService']),_0x434812=_0x223d21==null?void 0x0:_0x223d21[_0x18338a(0x3bc)]();if(!_0x434812)return _0x2f82ef;let _0x3d9a2c=(_0x2a8ae5=this[_0x18338a(0x1aa)]['getUnit'](_0x227c04))==null?void 0x0:_0x2a8ae5[_0x18338a(0x1a9)](_0x7ab7ff);if(!_0x3d9a2c)return _0x2f82ef;let _0x1eaa8b=(0x0,c[_0x18338a(0x281)])(_0x434812[_0x18338a(0x46a)],_0x434812['sheetViewStartColumn'],_0x8d5ceb['scene'],_0x3d9a2c);return _0x1eaa8b?{'x':_0x1eaa8b[_0x18338a(0x210)],'y':_0x1eaa8b['viewportScrollY']}:_0x2f82ef;}[_0x2daf50(0x207)](_0x49f1d0,_0x1dfe7d){const _0x50e691=_0x2daf50;var _0x4accb3,_0xf32e51;let _0x1cac25=(_0x4accb3=this['_univerInstanceService'][_0x50e691(0x32f)](_0x49f1d0))==null?void 0x0:_0x4accb3[_0x50e691(0x1a9)](_0x1dfe7d);return(_0xf32e51=_0x1cac25==null?void 0x0:_0x1cac25[_0x50e691(0x45d)]())==null?0x1:_0xf32e51;}[_0x2daf50(0x229)](_0x2885a0,_0x1048d7,_0x17ba41){const _0x3fbb12=_0x2daf50;this[_0x3fbb12(0x1c1)]((0x0,i['toDisposable'])(_0x2885a0[_0x3fbb12(0x38a)][_0x3fbb12(0x382)]((_0x5f388f,_0x2aa911)=>{const _0x27e6a1=_0x3fbb12;var _0x2dc698,_0x3de9a5,_0xe7914f;let {unitId:_0x327417,subUnitId:_0x27f26d,drawingId:_0x120104}=_0x2885a0['getDrawingSearch'](),_0x128c27=this[_0x27e6a1(0x264)](_0x327417,_0x27f26d,_0x120104);if(!(_0x128c27!=null&&_0x128c27['transform']))return;let {left:_0x2ccad6,top:_0x4376c6,width:_0x1c2cf0,height:_0x7a9f6b}=_0x128c27[_0x27e6a1(0x1f8)];this[_0x27e6a1(0x2fc)]=_0x2ccad6||0x0,this['_baseTop']=_0x4376c6||0x0,this['_baseWidth']=_0x1c2cf0||0x0,this['_baseHeight']=_0x7a9f6b||0x0;let _0xb3bb5f=!!((_0x2dc698=_0x128c27[_0x27e6a1(0x1f8)])!=null&&_0x2dc698[_0x27e6a1(0x3c0)]),_0x21f031=!!((_0x3de9a5=_0x128c27['transform'])!=null&&_0x3de9a5['flipY']),_0x24eb74=((_0xe7914f=_0x128c27[_0x27e6a1(0x1f8)])==null?void 0x0:_0xe7914f[_0x27e6a1(0x467)])||0x0,_0x51a18d=this[_0x27e6a1(0x28a)](_0x327417,_0x27f26d,_0x120104);if(!_0x51a18d)return;let _0x26de77=this[_0x27e6a1(0x234)](_0x51a18d[_0x27e6a1(0x431)],this['_baseWidth'],this['_baseHeight'],_0x51a18d[_0x27e6a1(0x3ee)]);if(!_0x26de77||(this['_activeShapeModel']=_0x26de77,this['_activeAdjustInfo']=_0x26de77[_0x27e6a1(0x348)](_0x17ba41),!this[_0x27e6a1(0x3cc)]))return;this['_isStartAdjusting']=!0x0,_0x1048d7[_0x27e6a1(0x317)]();let _0xe76bc8=_0x51a18d['prstGeom'];this[_0x27e6a1(0x3c7)]=_0x1048d7[_0x27e6a1(0x3b7)][_0x27e6a1(0x382)]((_0x1735a8,_0x5331bd)=>{const _0x15c1fc=_0x27e6a1;if(!this[_0x15c1fc(0x346)])return;let {offsetX:_0x44eeb5,offsetY:_0x2d054c}=_0x1735a8,_0x3b5316=this[_0x15c1fc(0x3cc)];if(!this[_0x15c1fc(0x3d0)]||!_0x3b5316)return;_0x1048d7[_0x15c1fc(0x317)](),_0x1048d7[_0x15c1fc(0x34f)](s[_0x15c1fc(0x29e)]['CROSSHAIR']);let _0x222343={'left':0x0,'top':0x0,'width':this[_0x15c1fc(0x35a)],'height':this[_0x15c1fc(0x3fe)]},_0x20faf3=this[_0x15c1fc(0x2ca)](_0x327417,_0x27f26d),_0x1c6501=this['_getZoomRatio'](_0x327417,_0x27f26d),_0x157ed6=_0x44eeb5/_0x1c6501+_0x20faf3['x']-this[_0x15c1fc(0x2fc)],_0x53a84b=_0x2d054c/_0x1c6501+_0x20faf3['y']-this[_0x15c1fc(0x422)];if(_0x24eb74!==0x0){let _0x3131a9=this[_0x15c1fc(0x35a)]/0x2,_0x75a6e1=this['_baseHeight']/0x2,_0x549680=_0x24eb74*Math['PI']/0xb4,_0x44addc=Math['cos'](_0x549680),_0x6cdf22=Math['sin'](_0x549680),_0x176d82=_0x157ed6-_0x3131a9,_0x17150b=_0x53a84b-_0x75a6e1;_0x157ed6=_0x3131a9+(_0x176d82*_0x44addc+_0x17150b*_0x6cdf22),_0x53a84b=_0x75a6e1+(-_0x176d82*_0x6cdf22+_0x17150b*_0x44addc);}_0xb3bb5f&&(_0x157ed6=this['_baseWidth']-_0x157ed6),_0x21f031&&(_0x53a84b=this[_0x15c1fc(0x3fe)]-_0x53a84b);let _0x33fe22=this[_0x15c1fc(0x3d0)][_0x15c1fc(0x30d)](_0x222343,{'x':_0x157ed6,'y':_0x53a84b},_0x3b5316,_0xb3bb5f,_0x21f031),_0x3549cd=_0x3b5316['gdRefX']||_0x3b5316['gdRefY']||_0x3b5316[_0x15c1fc(0x32c)]||_0x3b5316['gdRefR'];_0x3549cd!==void 0x0&&(this[_0x15c1fc(0x3d0)]['setAdjustValueByName'](_0x3549cd,_0x33fe22),this[_0x15c1fc(0x3d0)][_0x15c1fc(0x3a0)]({'width':this['_baseWidth'],'height':this['_baseHeight']}),this[_0x15c1fc(0x209)](_0x327417,_0x27f26d,_0x120104,_0x3549cd,_0x33fe22),this[_0x15c1fc(0x400)]=this[_0x15c1fc(0x3d0)][_0x15c1fc(0x26c)](),this[_0x15c1fc(0x3cc)]=this[_0x15c1fc(0x3d0)]['getAdjustInfoByName'](_0x17ba41),this[_0x15c1fc(0x227)](),_0x5331bd['stopPropagation']());}),this[_0x27e6a1(0x254)]=_0x1048d7[_0x27e6a1(0x3b3)][_0x27e6a1(0x382)]((_0x281b91,_0x1f4881)=>{const _0x152963=_0x27e6a1;if(this[_0x152963(0x3c7)][_0x152963(0x34e)](),this[_0x152963(0x254)][_0x152963(0x34e)](),_0x1048d7[_0x152963(0x1cc)](),this[_0x152963(0x3d0)]){let _0x10422f=this[_0x152963(0x3d0)]['getAdjustNames'](),_0x44589c={};for(let _0x553703 of _0x10422f){let _0x249941=this[_0x152963(0x3d0)]['getAdjustValueByName'](_0x553703);_0x249941!==void 0x0&&(_0x44589c[_0x553703]=_0x249941);}this[_0x152963(0x265)][_0x152963(0x3d5)](_0x327417,_0x27f26d,_0x120104,_0xe76bc8,_0x44589c);}this[_0x152963(0x3cc)]=void 0x0,this[_0x152963(0x3d0)]=void 0x0,this[_0x152963(0x346)]=!0x1,_0x1f4881[_0x152963(0x3b8)](),_0x1048d7[_0x152963(0x3c1)]();}),_0x2aa911[_0x27e6a1(0x3b8)]();})));}[_0x2daf50(0x209)](_0x48d387,_0x312d70,_0x3ce1e6,_0x431c17,_0x4b0395){const _0x5cb0e1=_0x2daf50;let _0x504b83=this['_renderManagerService'][_0x5cb0e1(0x36e)](_0x48d387);if(!_0x504b83)return;let {scene:_0x2fe0e3}=_0x504b83,_0x5b8ae1=(0x0,o[_0x5cb0e1(0x41c)])({'unitId':_0x48d387,'subUnitId':_0x312d70,'drawingId':_0x3ce1e6}),_0x4b67c6=_0x2fe0e3[_0x5cb0e1(0x283)](_0x5b8ae1);if(_0x4b67c6 instanceof s['Image']){var _0x314b70;let _0x2af0d8=(_0x314b70=_0x4b67c6[_0x5cb0e1(0x304)])==null?{}:_0x314b70;_0x4b67c6[_0x5cb0e1(0x473)]({..._0x2af0d8,[_0x431c17]:_0x4b0395}),_0x4b67c6[_0x5cb0e1(0x1c7)](!0x0);}}[_0x2daf50(0x2fd)](){const _0x43842c=_0x2daf50;let _0x481c30=this['_univerInstanceService'][_0x43842c(0x3f1)](i[_0x43842c(0x21b)][_0x43842c(0x447)]);this[_0x43842c(0x1c1)](_0x481c30['pipe']((0x0,l['switchMap'])(_0x5f4a83=>_0x5f4a83?_0x5f4a83[_0x43842c(0x2c6)][_0x43842c(0x3c6)]((0x0,l[_0x43842c(0x37c)])(_0x45afd1=>{const _0x2f385b=_0x43842c;if(!_0x45afd1)return l[_0x2f385b(0x19e)];let _0x1edb89=_0x5f4a83[_0x2f385b(0x295)](),_0x389cc7=this[_0x2f385b(0x3fc)][_0x2f385b(0x36e)](_0x1edb89),_0x1e3c51=_0x389cc7==null?void 0x0:_0x389cc7[_0x2f385b(0x336)];return _0x1e3c51?(0x0,l['of'])(_0x1e3c51):l[_0x2f385b(0x19e)];})):l[_0x43842c(0x19e)]))[_0x43842c(0x2d6)](_0x1089c5=>{const _0x2a197f=_0x43842c;let _0x3a4e7c=_0x1089c5['getTransformerByCreate']();this[_0x2a197f(0x1c1)](_0x1089c5[_0x2a197f(0x3b7)][_0x2a197f(0x382)](()=>{const _0x25c9cc=_0x2a197f;this['_isImagePointerDown']&&this[_0x25c9cc(0x222)]();})),this['disposeWithMe'](_0x3a4e7c['changeStart$'][_0x2a197f(0x2d6)](_0x20ec96=>{const _0x196cca=_0x2a197f;let {objects:_0x6eb460}=_0x20ec96;if(this['_createControls'](),_0x6eb460!==null&&_0x6eb460[_0x196cca(0x31c)]===0x1){let _0x410a5f=_0x6eb460[_0x196cca(0x2f6)]()[_0x196cca(0x235)]()['value'];_0x410a5f instanceof s[_0x196cca(0x21c)]&&_0x410a5f[_0x196cca(0x431)]&&(this['_isImagePointerDown']=!0x0);}})),this['disposeWithMe'](_0x3a4e7c['changing$'][_0x2a197f(0x2d6)](()=>{const _0x53d4b9=_0x2a197f;this[_0x53d4b9(0x212)]&&this[_0x53d4b9(0x222)]();})),this[_0x2a197f(0x1c1)](_0x1089c5['onPointerUp$'][_0x2a197f(0x382)](()=>{const _0x418891=_0x2a197f;this[_0x418891(0x212)]&&(this[_0x418891(0x212)]=!0x1,this[_0x418891(0x227)]());})),this[_0x2a197f(0x1c1)](_0x3a4e7c[_0x2a197f(0x258)][_0x2a197f(0x2d6)](()=>{const _0x8125a=_0x2a197f;if(this[_0x8125a(0x19c)]&&this[_0x8125a(0x1a5)]&&this[_0x8125a(0x38e)]){let _0x9f05cb=this[_0x8125a(0x28a)](this[_0x8125a(0x19c)],this[_0x8125a(0x1a5)],this[_0x8125a(0x38e)]);if(_0x9f05cb){var _0x5b70ce,_0x20d410;let _0x196e74=this[_0x8125a(0x264)](this[_0x8125a(0x19c)],this[_0x8125a(0x1a5)],this[_0x8125a(0x38e)]),_0x1b70c3=(_0x196e74==null||(_0x5b70ce=_0x196e74[_0x8125a(0x1f8)])==null?void 0x0:_0x5b70ce[_0x8125a(0x458)])||0x0,_0x26615d=(_0x196e74==null||(_0x20d410=_0x196e74['transform'])==null?void 0x0:_0x20d410[_0x8125a(0x1c6)])||0x0,_0x31ff8b=this[_0x8125a(0x234)](_0x9f05cb[_0x8125a(0x431)],_0x1b70c3,_0x26615d,_0x9f05cb[_0x8125a(0x3ee)]);_0x31ff8b&&(this[_0x8125a(0x400)]=_0x31ff8b[_0x8125a(0x26c)](),this[_0x8125a(0x222)](),this[_0x8125a(0x227)](!0x0));}}}));}));}[_0x2daf50(0x40d)](){const _0x192375=_0x2daf50;this['disposeWithMe'](this[_0x192375(0x449)][_0x192375(0x271)][_0x192375(0x2d6)](_0x3d84e9=>{const _0x1da373=_0x192375;if(_0x3d84e9[_0x1da373(0x3ce)]===0x1){let _0xe28da7=_0x3d84e9[0x0];if(_0xe28da7['drawingType']===i[_0x1da373(0x2bb)][_0x1da373(0x270)]){let {unitId:_0x5ecc10,subUnitId:_0x127ef0,drawingId:_0x4ffd09}=_0xe28da7,_0x2ef2e7=this['_getImagePrstGeom'](_0x5ecc10,_0x127ef0,_0x4ffd09);if(_0x2ef2e7){var _0x39e984,_0x5ca7aa;this['_activeImageId']=_0x4ffd09,this['_unitId']=_0x5ecc10,this['_subUnitId']=_0x127ef0;let _0x267e66=this[_0x1da373(0x264)](_0x5ecc10,_0x127ef0,_0x4ffd09),_0x1239df=(_0x267e66==null||(_0x39e984=_0x267e66[_0x1da373(0x1f8)])==null?void 0x0:_0x39e984[_0x1da373(0x458)])||0x0,_0x611583=(_0x267e66==null||(_0x5ca7aa=_0x267e66[_0x1da373(0x1f8)])==null?void 0x0:_0x5ca7aa['height'])||0x0,_0x343478=this[_0x1da373(0x234)](_0x2ef2e7[_0x1da373(0x431)],_0x1239df,_0x611583,_0x2ef2e7[_0x1da373(0x3ee)]);_0x343478&&(this[_0x1da373(0x400)]=_0x343478[_0x1da373(0x26c)]()),this[_0x1da373(0x222)](),this['_createControls'](!0x0);}else this[_0x1da373(0x240)]();}else this[_0x1da373(0x240)]();}else this[_0x1da373(0x240)]();})),this[_0x192375(0x1c1)](this[_0x192375(0x449)]['update$'][_0x192375(0x2d6)](_0xda27db=>{const _0x207b20=_0x192375;if(_0xda27db[_0x207b20(0x3ce)]===0x1){let _0x5deb4b=_0xda27db[0x0],_0x229cbd=this[_0x207b20(0x449)][_0x207b20(0x39b)](_0x5deb4b);(_0x229cbd==null?void 0x0:_0x229cbd['drawingType'])===i['DrawingTypeEnum'][_0x207b20(0x270)]&&this[_0x207b20(0x38e)]===_0x5deb4b[_0x207b20(0x34d)]&&(this[_0x207b20(0x222)](),this[_0x207b20(0x227)](!0x0));}})),this[_0x192375(0x1c1)](this[_0x192375(0x449)][_0x192375(0x228)]['subscribe'](_0x4eb936=>{const _0x20f8f6=_0x192375;for(let _0x4f231c of _0x4eb936)this[_0x20f8f6(0x38e)]===_0x4f231c[_0x20f8f6(0x34d)]&&this['_resetState']();}));}[_0x2daf50(0x240)](){const _0x254b27=_0x2daf50;this[_0x254b27(0x38e)]=null,this[_0x254b27(0x19c)]=null,this[_0x254b27(0x1a5)]=null,this[_0x254b27(0x400)]=void 0x0,this[_0x254b27(0x222)]();}};G=j([A(0x1,o['IDrawingManagerService']),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(s['IRenderManagerService'])),A(0x3,i['IUniverInstanceService']),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(z))],G);let K=class extends i['Disposable']{constructor(_0x47ebaf,_0x3ad701,_0x3463bf,_0x4681f5){const _0x37683d=_0x2daf50;super(),this['_univerInstanceService']=_0x47ebaf,this['_sheetInterceptorService']=_0x3ad701,this['_sheetDrawingService']=_0x3463bf,this[_0x37683d(0x453)]=_0x4681f5,this['_initSheetChange']();}['_initSheetChange'](){const _0x3c0ad5=_0x2daf50;this['disposeWithMe'](this[_0x3c0ad5(0x2a2)][_0x3c0ad5(0x2dd)]({'getMutations':_0x362857=>{const _0x4de65b=_0x3c0ad5;if(_0x362857['id']===a['RemoveSheetCommand']['id']){let _0x30ec18=(0x0,a[_0x4de65b(0x356)])(this[_0x4de65b(0x1aa)],_0x362857[_0x4de65b(0x3e9)]);if(!_0x30ec18)return{'redos':[],'undos':[]};let {unitId:_0x15ce0a,subUnitId:_0xdbf64f}=_0x30ec18,_0x5cb6d4=this[_0x4de65b(0x3b4)][_0x4de65b(0x278)](_0x15ce0a,_0xdbf64f),_0x3c4ed0=Object['values'](_0x5cb6d4)['filter'](_0x409ba8=>_0x409ba8[_0x4de65b(0x3ea)]===i['DrawingTypeEnum'][_0x4de65b(0x324)]);if(_0x3c4ed0[_0x4de65b(0x3ce)]===0x0)return{'redos':[],'undos':[]};let _0x3e7a53=[],_0x18fe4a=[];for(let _0x3b7d03=0x0;_0x3b7d03<_0x3c4ed0[_0x4de65b(0x3ce)];_0x3b7d03++){let _0x1725dd=_0x3c4ed0[_0x3b7d03],_0xb9cef1=this['_sheetsShapeService'][_0x4de65b(0x3c5)](_0x1725dd[_0x4de65b(0x378)],_0x1725dd[_0x4de65b(0x1a1)],_0x1725dd[_0x4de65b(0x34d)]);if(!_0xb9cef1)continue;let {redo:_0x1bdfc6,undo:_0x369eaf,objects:_0x190118}=this[_0x4de65b(0x3b4)]['getBatchRemoveOp']([_0x1725dd]);_0x3e7a53[_0x4de65b(0x1d8)]({'id':r[_0x4de65b(0x45b)]['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'shapeId':_0x1725dd[_0x4de65b(0x34d)]}}),_0x3e7a53[_0x4de65b(0x1d8)]({'id':h[_0x4de65b(0x2b1)]['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'type':h[_0x4de65b(0x38f)][_0x4de65b(0x36d)],'op':_0x1bdfc6,'objects':_0x190118}}),_0x18fe4a[_0x4de65b(0x1d8)]({'id':h[_0x4de65b(0x2b1)]['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'type':h[_0x4de65b(0x38f)]['INSERT'],'op':_0x369eaf,'objects':_0x190118}}),_0x18fe4a[_0x4de65b(0x1d8)]({'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'shapeId':_0x1725dd[_0x4de65b(0x34d)],'shapeType':_0xb9cef1[_0x4de65b(0x3ca)](),'shapeData':JSON['parse'](JSON[_0x4de65b(0x205)](_0xb9cef1[_0x4de65b(0x389)]()))}});}return{'redos':_0x3e7a53,'undos':_0x18fe4a};}else{if(_0x362857['id']===a['CopySheetCommand']['id']){let {unitId:_0x100ba7,subUnitId:_0x3b6ce4,targetSubUnitId:_0x12ab32}=_0x362857[_0x4de65b(0x3e9)];if(!_0x100ba7||!_0x3b6ce4||!_0x12ab32)return{'redos':[],'undos':[]};let _0x3b6065=this[_0x4de65b(0x3b4)][_0x4de65b(0x278)](_0x100ba7,_0x3b6ce4),_0x54947d=Object[_0x4de65b(0x2f6)](_0x3b6065)['filter'](_0x46d232=>_0x46d232[_0x4de65b(0x3ea)]===i[_0x4de65b(0x2bb)][_0x4de65b(0x324)]);if(_0x54947d[_0x4de65b(0x3ce)]===0x0)return{'redos':[],'undos':[]};let _0x2d34b3=[],_0x26de0d=[];for(let _0x559022=0x0;_0x559022<_0x54947d['length'];_0x559022++){let _0xc64e35=_0x54947d[_0x559022],_0x673fd2=this['_sheetsShapeService'][_0x4de65b(0x3c5)](_0xc64e35[_0x4de65b(0x378)],_0xc64e35[_0x4de65b(0x1a1)],_0xc64e35[_0x4de65b(0x34d)]);if(!_0x673fd2)continue;let _0x39335d=(0x0,i['generateRandomId'])(),_0xb64bea={..._0xc64e35,'unitId':_0x100ba7,'subUnitId':_0x12ab32,'drawingId':_0x39335d},{redo:_0x228d0b,undo:_0x4a70c3,objects:_0x38981c}=this[_0x4de65b(0x3b4)][_0x4de65b(0x350)]([_0xb64bea]);_0x2d34b3[_0x4de65b(0x1d8)]({'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'type':h['DrawingApplyType'][_0x4de65b(0x41e)],'op':_0x228d0b,'objects':_0x38981c}}),_0x2d34b3[_0x4de65b(0x1d8)]({'id':r[_0x4de65b(0x385)]['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'shapeId':_0x39335d,'shapeType':_0x673fd2[_0x4de65b(0x3ca)](),'shapeData':JSON[_0x4de65b(0x22f)](JSON['stringify'](_0x673fd2[_0x4de65b(0x389)]()))}}),_0x26de0d[_0x4de65b(0x1d8)]({'id':r[_0x4de65b(0x45b)]['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'shapeId':_0x39335d}}),_0x26de0d['push']({'id':h[_0x4de65b(0x2b1)]['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'type':h[_0x4de65b(0x38f)][_0x4de65b(0x36d)],'op':_0x4a70c3,'objects':_0x38981c}});}return{'redos':_0x2d34b3,'undos':_0x26de0d};}}return{'redos':[],'undos':[]};}}));}};K=j([A(0x0,(0x0,i['Inject'])(i['IUniverInstanceService'])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(a[_0x2daf50(0x333)])),A(0x2,(0x0,i['Inject'])(h[_0x2daf50(0x408)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)]))],K);let we=class extends i[_0x2daf50(0x2f9)]{constructor(_0x34071b,_0x218e10,_0x392b25,_0x3228dd,_0x5ad696){const _0x1e6e05=_0x2daf50;super(),this[_0x1e6e05(0x200)]=_0x34071b,this[_0x1e6e05(0x320)]=_0x218e10,this['_drawingManagerService']=_0x392b25,this[_0x1e6e05(0x2a1)]=_0x3228dd,this['_sheetsShapeService']=_0x5ad696,E(this,_0x1e6e05(0x310),null),this['_initEvents'](),this[_0x1e6e05(0x1ea)](),this[_0x1e6e05(0x284)]();}[_0x2daf50(0x420)](){const _0x411cfa=_0x2daf50;let {scene:_0x36dd73}=this[_0x411cfa(0x200)];this['disposeWithMe'](_0x36dd73[_0x411cfa(0x24a)][_0x411cfa(0x382)](_0x14b465=>{const _0x4523b2=_0x411cfa;let {offsetX:_0x303d8b,offsetY:_0x38989f}=_0x14b465,_0x27afc8=_0x36dd73[_0x4523b2(0x361)](s[_0x4523b2(0x31a)][_0x4523b2(0x358)]([_0x303d8b,_0x38989f]));if(_0x27afc8 instanceof O){if((0x0,t['isConnectorShape'])(this[_0x4523b2(0x453)][_0x4523b2(0x3ca)](_0x27afc8[_0x4523b2(0x378)],_0x27afc8[_0x4523b2(0x1a1)],_0x27afc8[_0x4523b2(0x1b5)])))return;this[_0x4523b2(0x320)][_0x4523b2(0x351)]({'visible':!0x0,'unitId':_0x27afc8[_0x4523b2(0x378)],'subUnitId':_0x27afc8[_0x4523b2(0x1a1)],'shapeId':_0x27afc8[_0x4523b2(0x1b5)],'shapeKey':_0x27afc8[_0x4523b2(0x2b9)]});}}));}[_0x2daf50(0x1ea)](){const _0x588b28=_0x2daf50;this[_0x588b28(0x1c1)](this[_0x588b28(0x449)]['focus$'][_0x588b28(0x2d6)](_0x3758f4=>{const _0x42351d=_0x588b28;if(_0x3758f4[_0x42351d(0x3ce)]===0x1){let _0x3faaf4=_0x3758f4[0x0],_0x5eead1=this[_0x42351d(0x449)][_0x42351d(0x39b)](_0x3faaf4);if((_0x5eead1==null?void 0x0:_0x5eead1[_0x42351d(0x3ea)])===i[_0x42351d(0x2bb)][_0x42351d(0x324)]){let _0x113d15=this['_shapeTextEditingService'][_0x42351d(0x3da)]();if((_0x113d15==null?void 0x0:_0x113d15[_0x42351d(0x1b5)])===_0x3faaf4[_0x42351d(0x34d)]&&_0x113d15['visible'])return;(0x0,t[_0x42351d(0x1ce)])(this[_0x42351d(0x453)][_0x42351d(0x3ca)](_0x3faaf4[_0x42351d(0x378)],_0x3faaf4['subUnitId'],_0x3faaf4[_0x42351d(0x34d)]))&&this[_0x42351d(0x320)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x42351d(0x3da)]()&&(this[_0x42351d(0x320)][_0x42351d(0x41d)](!0x0),requestAnimationFrame(()=>{const _0x368c5c=_0x42351d;this['_shapeTextEditingService'][_0x368c5c(0x351)](null);}));}else this['_shapeTextEditingService']['getEditing']()&&(this[_0x42351d(0x320)][_0x42351d(0x41d)](!0x0),requestAnimationFrame(()=>{const _0x5f1aaa=_0x42351d;this[_0x5f1aaa(0x320)][_0x5f1aaa(0x351)](null);}));})),this[_0x588b28(0x1c1)](this[_0x588b28(0x449)][_0x588b28(0x228)][_0x588b28(0x2d6)](_0xee8a67=>{const _0x4c294b=_0x588b28;let _0x48b37d=this[_0x4c294b(0x320)][_0x4c294b(0x3da)]();_0x48b37d&&_0xee8a67[_0x4c294b(0x22a)](_0x584277=>_0x584277[_0x4c294b(0x34d)]===_0x48b37d[_0x4c294b(0x1b5)])&&this[_0x4c294b(0x320)]['setEditing'](null);}));}['_initEditingParams'](){const _0x19de34=_0x2daf50;this[_0x19de34(0x1c1)](this['_shapeTextEditingService']['editingParams$']['subscribe'](_0xfef2e7=>{const _0x5f5983=_0x19de34;let {scene:_0x58475b}=this[_0x5f5983(0x200)];if(this[_0x5f5983(0x310)]){let _0xc32100=_0x58475b[_0x5f5983(0x23d)](this[_0x5f5983(0x310)]);_0xc32100&&_0xc32100[_0x5f5983(0x351)](!0x1);}if(_0xfef2e7){let _0x1dcddc=!!_0xfef2e7[_0x5f5983(0x371)],_0x1ca1d1=_0x58475b['getObjectIncludeInGroup'](_0xfef2e7[_0x5f5983(0x410)]);_0x1ca1d1&&(_0x1ca1d1[_0x5f5983(0x351)](_0x1dcddc),this['_lastEditingShapeKey']=_0xfef2e7[_0x5f5983(0x410)]),this[_0x5f5983(0x2a1)]['setContextValue'](i[_0x5f5983(0x3ed)],_0x1dcddc);}else this[_0x5f5983(0x310)]=null,this[_0x5f5983(0x2a1)][_0x5f5983(0x340)](i[_0x5f5983(0x3ed)],!0x1);}));}};we=j([A(0x1,(0x0,i[_0x2daf50(0x1bb)])(U)),A(0x2,o['IDrawingManagerService']),A(0x3,i['IContextService']),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)]))],we);let Te=class extends n[_0x2daf50(0x43b)]{constructor(_0x397e2c,_0x58c541,_0xba128c,_0x577140){super(_0x397e2c,_0x58c541,_0xba128c,_0x577140,{'componentKey':te,'editorUnitId':ee});}};Te=j([A(0x1,(0x0,i[_0x2daf50(0x1bb)])(_[_0x2daf50(0x290)])),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(v[_0x2daf50(0x219)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(v[_0x2daf50(0x323)]))],Te);let q=class extends i[_0x2daf50(0x2f9)]{constructor(_0x9458ed,_0x23a201,_0x184f00,_0x2b8751,_0xee55c2,_0x2dd799){const _0x423c22=_0x2daf50;super(),this[_0x423c22(0x19f)]=_0x9458ed,this['_renderManagerService']=_0x23a201,this['_drawingManagerService']=_0x184f00,this['_currentUniverService']=_0x2b8751,this[_0x423c22(0x46b)]=_0xee55c2,this[_0x423c22(0x477)]=_0x2dd799,E(this,_0x423c22(0x2b4),new Set()),this['_initialize']();}[_0x2daf50(0x30c)](){const _0x345791=_0x2daf50;this[_0x345791(0x363)](),this[_0x345791(0x1bd)](),this[_0x345791(0x314)]();}['_drawingAddListener'](){const _0x5cc9de=_0x2daf50;this[_0x5cc9de(0x1c1)](this['_drawingManagerService']['add$'][_0x5cc9de(0x2d6)](_0x1c47c9=>{const _0x5dcffc=_0x5cc9de;this[_0x5dcffc(0x274)](_0x1c47c9);}));}['_commandExecutedListener'](){const _0x2a5541=_0x2daf50;this[_0x2a5541(0x1c1)](this[_0x2a5541(0x19f)][_0x2a5541(0x20b)](_0xa602e0=>{const _0x441678=_0x2a5541;if(_0xa602e0['id']===r[_0x441678(0x3dc)]['id']){let {unitId:_0x40cf78,subUnitId:_0x19f42b,shapeId:_0x64425d}=_0xa602e0[_0x441678(0x3e9)],_0x4456d0=this[_0x441678(0x2f8)](_0x40cf78),_0x362b5b=(0x0,o[_0x441678(0x41c)])({'unitId':_0x40cf78,'subUnitId':_0x19f42b,'drawingId':_0x64425d}),_0x5dac25=_0x4456d0==null?void 0x0:_0x4456d0[_0x441678(0x336)][_0x441678(0x23d)](_0x362b5b);_0x5dac25&&(this[_0x441678(0x477)][_0x441678(0x247)](_0x5dac25),_0x5dac25[_0x441678(0x1c7)](!0x0));return;}if(_0xa602e0['id']===r[_0x441678(0x385)]['id']){var _0x4430d2;let {unitId:_0x6f1104,subUnitId:_0x32dc53,shapeId:_0xa84614}=_0xa602e0['params'],_0x544f82=this[_0x441678(0x2f8)](_0x6f1104);if(_0x544f82==null)return;let {scene:_0xef117d}=_0x544f82,_0x4db410=(0x0,o[_0x441678(0x41c)])({'unitId':_0x6f1104,'subUnitId':_0x32dc53,'drawingId':_0xa84614}),_0x305c84=_0xef117d['getObjectIncludeInGroup'](_0x4db410);if(!((_0x4430d2=this[_0x441678(0x3fc)]['getRenderById'](_0x6f1104))!=null&&_0x4430d2['with'](c[_0x441678(0x366)])[_0x441678(0x386)](_0x32dc53)))return!0x1;if(_0x305c84)return;this[_0x441678(0x274)]([{'unitId':_0x6f1104,'subUnitId':_0x32dc53,'drawingId':_0xa84614}]);}}));}[_0x2daf50(0x314)](){const _0x9756bb=_0x2daf50;this[_0x9756bb(0x1c1)](this[_0x9756bb(0x449)]['update$'][_0x9756bb(0x2d6)](_0x47d0f8=>{const _0x4de135=_0x9756bb;_0x47d0f8[_0x4de135(0x279)](_0x45f04d=>{const _0x432d9b=_0x4de135;let {unitId:_0x4f1380,subUnitId:_0x53348a,drawingId:_0x26c291}=_0x45f04d,_0x3433b0=this['_drawingManagerService']['getDrawingByParam'](_0x45f04d);if(_0x3433b0==null)return;let {transform:_0x29f0a8,drawingType:_0x3ae3fe,srcRect:_0x24f515,prstGeom:_0xd3c779}=_0x3433b0;if(_0x3ae3fe!==i['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x437b8c=this['_getSceneAndTransformerByDrawingSearch'](_0x4f1380);if(_0x437b8c==null)return;let {scene:_0x5037c1,transformer:_0x9168f}=_0x437b8c;if(_0x29f0a8==null)return!0x0;let _0x4f5dc7=(0x0,o[_0x432d9b(0x41c)])({'unitId':_0x4f1380,'subUnitId':_0x53348a,'drawingId':_0x26c291}),_0x64bb06=_0x5037c1['getObjectIncludeInGroup'](_0x4f5dc7);if(_0x64bb06==null)return!0x0;_0x64bb06['setSrcRect'](_0x24f515),_0x64bb06['setPrstGeom'](_0xd3c779);});}));}[_0x2daf50(0x274)](_0x594097){const _0x13dab6=_0x2daf50;for(let _0x2380b1 of _0x594097){var _0xb7c562;let {unitId:_0x4be270,subUnitId:_0x187dad,drawingId:_0x54c4da}=_0x2380b1,_0x919dfb=this['_getSceneAndTransformerByDrawingSearch'](_0x4be270),_0x5522e8=(_0xb7c562=(0x0,u['getCurrentUnitInfo'])(this[_0x13dab6(0x2e3)],_0x4be270))==null?void 0x0:_0xb7c562[_0x13dab6(0x1a1)];if(_0x919dfb==null||_0x5522e8!==_0x187dad)return;let _0x3039ea=(0x0,o[_0x13dab6(0x41c)])({'unitId':_0x4be270,'subUnitId':_0x187dad,'drawingId':_0x54c4da});if(this[_0x13dab6(0x2b4)][_0x13dab6(0x35d)](_0x3039ea)||_0x919dfb[_0x13dab6(0x336)]['getObjectIncludeInGroup'](_0x3039ea)!=null)return;let _0x10d1df=this[_0x13dab6(0x449)][_0x13dab6(0x39b)](_0x2380b1);if(_0x10d1df==null||_0x10d1df[_0x13dab6(0x3ea)]!==i[_0x13dab6(0x2bb)]['DRAWING_SHAPE'])return;if((0x0,t[_0x13dab6(0x1ce)])((_0x10d1df[_0x13dab6(0x44c)]||{})[_0x13dab6(0x479)])){let _0x2cb583=_0x10d1df[_0x13dab6(0x1f8)];_0x2cb583&&(_0x10d1df[_0x13dab6(0x1f8)]={..._0x2cb583,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x13dab6(0x2b4)][_0x13dab6(0x224)](_0x3039ea);try{this['_sheetDrawingShapeRenderController'][_0x13dab6(0x246)](_0x10d1df,_0x919dfb[_0x13dab6(0x336)]);}finally{this[_0x13dab6(0x2b4)][_0x13dab6(0x405)](_0x3039ea);}queueMicrotask(()=>{const _0x50d023=_0x13dab6;if(this[_0x50d023(0x202)])return;let _0x1c3755=(0x0,o[_0x50d023(0x41c)])(_0x2380b1);if(!_0x919dfb[_0x50d023(0x336)]['getObjectIncludeInGroup'](_0x1c3755))return;let _0x2f6c06=this[_0x50d023(0x449)][_0x50d023(0x39b)](_0x2380b1);_0x2f6c06&&this['_drawingManagerService'][_0x50d023(0x3e0)]([_0x2f6c06]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x4c1c64){const _0x2a56b6=_0x2daf50;if(_0x4c1c64==null)return;let _0x422930=this[_0x2a56b6(0x3fc)][_0x2a56b6(0x36e)](_0x4c1c64),_0x4834fe=_0x422930==null?void 0x0:_0x422930[_0x2a56b6(0x336)];return _0x4834fe==null?null:{'scene':_0x4834fe,'transformer':_0x4834fe[_0x2a56b6(0x251)]()};}};q=j([A(0x0,i[_0x2daf50(0x1b8)]),A(0x1,s[_0x2daf50(0x282)]),A(0x2,o[_0x2daf50(0x3a9)]),A(0x3,i['IUniverInstanceService']),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(u[_0x2daf50(0x2ed)])),A(0x5,(0x0,i['Inject'])(M))],q);const Ee={'normal':{'fill':t[_0x2daf50(0x24f)]['cxnPointFill'],'stroke':t[_0x2daf50(0x24f)][_0x2daf50(0x3ae)],'strokeWidth':t['ShapeDefaultConfig'][_0x2daf50(0x3fd)]},'highlighted':{'fill':'#4285f4','stroke':_0x2daf50(0x236),'strokeWidth':0x2}};var De=class extends s[_0x2daf50(0x355)]{constructor(_0x39f50a,_0x24a73a){const _0x1239c7=_0x2daf50;super(_0x39f50a,_0x24a73a),E(this,'_targetShapeId',''),E(this,_0x1239c7(0x3e7),-0x1),E(this,_0x1239c7(0x19c),''),E(this,_0x1239c7(0x1a5),''),E(this,_0x1239c7(0x1c4),!0x1),_0x24a73a&&this[_0x1239c7(0x26d)](_0x24a73a);}[_0x2daf50(0x3be)](){const _0xcd9296=_0x2daf50;return{'unitId':this[_0xcd9296(0x19c)],'subUnitId':this[_0xcd9296(0x1a5)],'shapeId':this[_0xcd9296(0x3e3)],'cxnIndex':this[_0xcd9296(0x3e7)]};}[_0x2daf50(0x3b9)](_0x1a3ee3){const _0x27b0da=_0x2daf50;this[_0x27b0da(0x1c4)]!==_0x1a3ee3&&(this[_0x27b0da(0x1c4)]=_0x1a3ee3,this[_0x27b0da(0x1c7)](!0x0));}[_0x2daf50(0x24e)](){const _0x54a2a2=_0x2daf50;return this[_0x54a2a2(0x1c4)];}[_0x2daf50(0x26d)](_0x172dca){const _0x58915b=_0x2daf50;var _0x12b5ff,_0x31b9ef;_0x172dca[_0x58915b(0x1ca)]!==void 0x0&&(this[_0x58915b(0x3e3)]=_0x172dca[_0x58915b(0x1ca)]),_0x172dca[_0x58915b(0x42b)]!==void 0x0&&(this[_0x58915b(0x3e7)]=_0x172dca[_0x58915b(0x42b)]),_0x172dca[_0x58915b(0x378)]!==void 0x0&&(this['_unitId']=_0x172dca[_0x58915b(0x378)]),_0x172dca[_0x58915b(0x1a1)]!==void 0x0&&(this[_0x58915b(0x1a5)]=_0x172dca['subUnitId']),_0x172dca[_0x58915b(0x24e)]!==void 0x0&&(this[_0x58915b(0x1c4)]=_0x172dca[_0x58915b(0x24e)]),this[_0x58915b(0x201)]({'width':(_0x12b5ff=_0x172dca[_0x58915b(0x458)])==null?t['ShapeDefaultConfig'][_0x58915b(0x298)]*0x2:_0x12b5ff,'height':(_0x31b9ef=_0x172dca[_0x58915b(0x1c6)])==null?t[_0x58915b(0x24f)][_0x58915b(0x298)]*0x2:_0x31b9ef});}['_draw'](_0x1c6a05){const _0x12909e=_0x2daf50;let _0x3863f1=this[_0x12909e(0x1c4)]?Ee[_0x12909e(0x1d6)]:Ee[_0x12909e(0x32a)];s['Circle'][_0x12909e(0x402)](_0x1c6a05,{'radius':t[_0x12909e(0x24f)][_0x12909e(0x298)],'fill':_0x3863f1[_0x12909e(0x25f)],'stroke':_0x3863f1[_0x12909e(0x1be)],'strokeWidth':_0x3863f1[_0x12909e(0x448)],'evented':!0x0});}};let J=class extends i[_0x2daf50(0x2f9)]{constructor(_0x3ef3ef,_0x2dc3d5,_0x11b763,_0x157b89){const _0x1f2146=_0x2daf50;super(),this[_0x1f2146(0x200)]=_0x3ef3ef,this[_0x1f2146(0x3fc)]=_0x2dc3d5,this['_drawingManagerService']=_0x11b763,this['_sheetsShapeService']=_0x157b89,E(this,_0x1f2146(0x3d9),[]),E(this,_0x1f2146(0x2c5),null),E(this,_0x1f2146(0x42c),-0x1),E(this,_0x1f2146(0x39f),null),E(this,_0x1f2146(0x19c),''),E(this,_0x1f2146(0x1a5),''),E(this,_0x1f2146(0x318),null);}['startConnectionDetection'](_0x20bcfd,_0x220772,_0x3b6d36,_0x5bbfb6){const _0x2c4ff8=_0x2daf50;this[_0x2c4ff8(0x39f)]=_0x20bcfd,this[_0x2c4ff8(0x19c)]=_0x220772,this['_subUnitId']=_0x3b6d36,this[_0x2c4ff8(0x318)]=_0x5bbfb6;}[_0x2daf50(0x3bf)](_0x16893b){const _0x72bf1a=_0x2daf50;if(!this[_0x72bf1a(0x39f)])return null;let _0x44d696=this[_0x72bf1a(0x288)](_0x16893b);return _0x44d696?(this[_0x72bf1a(0x2c5)]!==_0x44d696[_0x72bf1a(0x1b5)]&&(this['_clearConnectionSites'](),this[_0x72bf1a(0x338)](_0x44d696[_0x72bf1a(0x1b5)],_0x44d696[_0x72bf1a(0x1a0)]),this[_0x72bf1a(0x2c5)]=_0x44d696['shapeId']),this[_0x72bf1a(0x294)](_0x16893b)):(this[_0x72bf1a(0x2c5)]!==null&&(this[_0x72bf1a(0x36c)](),this[_0x72bf1a(0x2c5)]=null),null);}[_0x2daf50(0x33d)](){const _0x57fa53=_0x2daf50;this[_0x57fa53(0x36c)](),this[_0x57fa53(0x39f)]=null,this[_0x57fa53(0x2c5)]=null,this[_0x57fa53(0x42c)]=-0x1,this[_0x57fa53(0x318)]=null;}[_0x2daf50(0x206)](){const _0x2a118a=_0x2daf50;return this[_0x2a118a(0x2c5)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x2a118a(0x2c5)],'cxnIndex':this[_0x2a118a(0x42c)]};}['_findShapeAtPoint'](_0x55c728){const _0x48394e=_0x2daf50;let _0xb1d37a=this[_0x48394e(0x449)][_0x48394e(0x278)](this[_0x48394e(0x19c)],this[_0x48394e(0x1a5)]);for(let _0x50e8d0 of Object['keys'](_0xb1d37a)){if(_0x50e8d0===this[_0x48394e(0x318)]||_0xb1d37a[_0x50e8d0][_0x48394e(0x3ea)]!==i[_0x48394e(0x2bb)][_0x48394e(0x324)])continue;let _0xb13819=this[_0x48394e(0x453)][_0x48394e(0x3c5)](this[_0x48394e(0x19c)],this[_0x48394e(0x1a5)],_0x50e8d0);if(!_0xb13819||(0x0,t[_0x48394e(0x1ce)])(_0xb13819['getShapeType']())||_0xb13819[_0x48394e(0x2d3)]()[_0x48394e(0x3ce)]===0x0||!this['_currentScene'])continue;let _0x25f610=(0x0,o[_0x48394e(0x41c)])({'unitId':this['_unitId'],'subUnitId':this[_0x48394e(0x1a5)],'drawingId':_0x50e8d0}),_0x1cc697=this[_0x48394e(0x39f)]['getObjectIncludeInGroup'](_0x25f610);if(!_0x1cc697)continue;let {left:_0xbe096e,top:_0x5a7cc3,width:_0x3ee9a5,height:_0x12f20b}=_0x1cc697[_0x48394e(0x269)](),_0x35509f=_0xbe096e+_0x3ee9a5/0x2,_0x3b7411=_0x5a7cc3+_0x12f20b/0x2,_0x532fea=_0x1cc697[_0x48394e(0x1f8)][_0x48394e(0x239)](),_0x43aac2=new s['Transform']([_0x532fea[0x0],_0x532fea[0x1],_0x532fea[0x2],_0x532fea[0x3],_0x35509f,_0x3b7411]),_0x15bd1b=_0x1cc697[_0x48394e(0x2e1)](),_0x2f0827=(_0x1cc697[_0x48394e(0x466)]&&(_0x15bd1b==null?void 0x0:_0x15bd1b['classType'])===s[_0x48394e(0x23b)][_0x48394e(0x20e)]?_0x15bd1b[_0x48394e(0x27b)]['multiply'](_0x43aac2):_0x43aac2)[_0x48394e(0x397)]()[_0x48394e(0x319)](_0x55c728),_0x1afba1=_0x3ee9a5/0x2,_0x4a1d5d=_0x12f20b/0x2;if(_0x2f0827['x']>=-_0x1afba1-0x5&&_0x2f0827['x']<=_0x1afba1+0x5&&_0x2f0827['y']>=-_0x4a1d5d-0x5&&_0x2f0827['y']<=_0x4a1d5d+0x5)return{'shapeId':_0x50e8d0,'shapeModel':_0xb13819};}return null;}[_0x2daf50(0x338)](_0x38aeb5,_0x246c53){const _0x4dacba=_0x2daf50;if(!this[_0x4dacba(0x39f)])return;let _0x61cb70=(0x0,o[_0x4dacba(0x41c)])({'unitId':this[_0x4dacba(0x19c)],'subUnitId':this[_0x4dacba(0x1a5)],'drawingId':_0x38aeb5}),_0xb0b794=this[_0x4dacba(0x39f)][_0x4dacba(0x23d)](_0x61cb70);if(!_0xb0b794)return;let {left:_0x53da23,top:_0x4e276e,width:_0x5b195c,height:_0x10dfec}=_0xb0b794[_0x4dacba(0x269)](),_0x5417ec=_0x53da23+_0x5b195c/0x2,_0x36025e=_0x4e276e+_0x10dfec/0x2,_0x2ae37d=_0xb0b794[_0x4dacba(0x1f8)][_0x4dacba(0x239)](),_0xd72a52=new s['Transform']([_0x2ae37d[0x0],_0x2ae37d[0x1],_0x2ae37d[0x2],_0x2ae37d[0x3],_0x5417ec,_0x36025e]),_0x14b9d8=_0xb0b794[_0x4dacba(0x2e1)](),_0x27f511=_0xb0b794['isInGroup']&&(_0x14b9d8==null?void 0x0:_0x14b9d8['classType'])===s[_0x4dacba(0x23b)]['GROUP']?_0x14b9d8[_0x4dacba(0x27b)][_0x4dacba(0x37e)](_0xd72a52):_0xd72a52;_0x246c53[_0x4dacba(0x3a0)]({'width':_0x5b195c,'height':_0x10dfec});let _0x58b777=_0x246c53[_0x4dacba(0x2d3)]();for(let _0x48ace6 of _0x58b777){let _0x223cf1=_0x48ace6['x']-_0x5b195c/0x2,_0x86e5c1=_0x48ace6['y']-_0x10dfec/0x2,_0x2d8423=_0x27f511[_0x4dacba(0x319)]({'x':_0x223cf1,'y':_0x86e5c1}),_0x15ffb8=_0x2d8423['x'],_0x11fe51=_0x2d8423['y'],_0x14ac91=new De(_0x4dacba(0x469)+_0x38aeb5+'-'+_0x48ace6['index'],{'left':_0x15ffb8-t['ShapeDefaultConfig'][_0x4dacba(0x298)],'top':_0x11fe51-t[_0x4dacba(0x24f)][_0x4dacba(0x298)],'targetShapeId':_0x38aeb5,'cxnIndex':_0x48ace6[_0x4dacba(0x3cb)],'unitId':this[_0x4dacba(0x19c)],'subUnitId':this[_0x4dacba(0x1a5)],'width':t[_0x4dacba(0x24f)][_0x4dacba(0x298)]*0x2,'height':t['ShapeDefaultConfig'][_0x4dacba(0x298)]*0x2,'zIndex':s['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x4dacba(0x1d8)](_0x14ac91),this[_0x4dacba(0x39f)][_0x4dacba(0x33a)](_0x14ac91,s[_0x4dacba(0x329)]+0x2);}}[_0x2daf50(0x294)](_0x180928){const _0x1ed184=_0x2daf50;let _0x2be9b2=null,_0x213d15=0x1/0x0,_0x18dba5=null;for(let _0x21dd5a of this[_0x1ed184(0x3d9)]){let _0x2e3f59=_0x21dd5a[_0x1ed184(0x1c9)]+t[_0x1ed184(0x24f)][_0x1ed184(0x298)],_0x46a41e=_0x21dd5a[_0x1ed184(0x286)]+t[_0x1ed184(0x24f)][_0x1ed184(0x298)],_0x30c38b=_0x180928['x']-_0x2e3f59,_0xda9675=_0x180928['y']-_0x46a41e,_0x51cb0a=Math[_0x1ed184(0x40b)](_0x30c38b*_0x30c38b+_0xda9675*_0xda9675);_0x51cb0a<_0x213d15&&(_0x213d15=_0x51cb0a,_0x2be9b2=_0x21dd5a,_0x18dba5={'x':_0x2e3f59,'y':_0x46a41e});}let _0x31dae3=_0x213d15<=0xa&&_0x2be9b2?_0x2be9b2[_0x1ed184(0x3be)]()[_0x1ed184(0x42b)]:-0x1;if(_0x31dae3!==this[_0x1ed184(0x42c)]){for(let _0x9b110e of this[_0x1ed184(0x3d9)]){let _0x56ee36=_0x9b110e[_0x1ed184(0x3be)]();_0x9b110e[_0x1ed184(0x3b9)](_0x56ee36[_0x1ed184(0x42b)]===_0x31dae3);}this[_0x1ed184(0x42c)]=_0x31dae3;}if(_0x213d15<=0xa&&_0x2be9b2&&_0x18dba5){let _0x31ffd5=_0x2be9b2[_0x1ed184(0x3be)](),_0xbb8700=this[_0x1ed184(0x1e1)](_0x31ffd5[_0x1ed184(0x1b5)],_0x31ffd5[_0x1ed184(0x42b)]);return{'shapeId':_0x31ffd5[_0x1ed184(0x1b5)],'cxnIndex':_0x31ffd5[_0x1ed184(0x42b)],'unitId':_0x31ffd5['unitId'],'subUnitId':_0x31ffd5[_0x1ed184(0x1a1)],'worldPoint':_0x18dba5,'angle':_0xbb8700};}return null;}['_getConnectionSiteAngle'](_0x38bf9a,_0x37b09b){const _0x5b4c76=_0x2daf50;let _0x1c31e1=this[_0x5b4c76(0x453)][_0x5b4c76(0x3c5)](this[_0x5b4c76(0x19c)],this[_0x5b4c76(0x1a5)],_0x38bf9a);if(!_0x1c31e1)return 0x0;let _0x332206=this[_0x5b4c76(0x449)][_0x5b4c76(0x39b)]({'unitId':this[_0x5b4c76(0x19c)],'subUnitId':this[_0x5b4c76(0x1a5)],'drawingId':_0x38bf9a});if(!(_0x332206!=null&&_0x332206[_0x5b4c76(0x1f8)]))return 0x0;let {width:_0x50ef2a=0x0,height:_0x1cd989=0x0,flipX:_0xf1e049=!0x1,flipY:_0x2f46a4=!0x1}=_0x332206[_0x5b4c76(0x1f8)];_0x1c31e1['updateContext']({'width':_0x50ef2a,'height':_0x1cd989});let _0x1986ee=_0x1c31e1[_0x5b4c76(0x2d3)]()[_0x5b4c76(0x2db)](_0x3ecee7=>_0x3ecee7[_0x5b4c76(0x3cb)]===_0x37b09b);if(!_0x1986ee)return 0x0;let _0x4ea0a6=_0x1986ee['ang']/0xea60;return _0xf1e049&&(_0x4ea0a6=0xb4-_0x4ea0a6),_0x2f46a4&&(_0x4ea0a6=-_0x4ea0a6),_0x4ea0a6=(_0x4ea0a6%0x168+0x168)%0x168,_0x4ea0a6;}[_0x2daf50(0x36c)](){const _0x483b5e=_0x2daf50;for(let _0xf2197c of this[_0x483b5e(0x3d9)])_0xf2197c[_0x483b5e(0x428)]();this['_connectionSiteObjects']=[],this[_0x483b5e(0x42c)]=-0x1;}[_0x2daf50(0x428)](){const _0x1b5e37=_0x2daf50;this[_0x1b5e37(0x36c)](),super[_0x1b5e37(0x428)]();}};J=j([A(0x1,(0x0,i['Inject'])(s[_0x2daf50(0x282)])),A(0x2,(0x0,i['Inject'])(o[_0x2daf50(0x3a9)])),A(0x3,(0x0,i['Inject'])(r[_0x2daf50(0x411)]))],J);let Y=class extends i[_0x2daf50(0x2f9)]{constructor(_0x19dccf,_0x20c571,_0x495375,_0x1089dd,_0x179393){const _0x165db3=_0x2daf50;super(),this[_0x165db3(0x445)]=_0x19dccf,this[_0x165db3(0x46f)]=_0x20c571,this['_sheetDrawingService']=_0x495375,this[_0x165db3(0x3d2)]=_0x1089dd,this[_0x165db3(0x3ef)]=_0x179393,E(this,_0x165db3(0x438),void 0x0),this[_0x165db3(0x21e)](),this[_0x165db3(0x1e4)]();}get[_0x2daf50(0x2da)](){const _0x491e15=_0x2daf50;return this['_sheetDrawingService'][_0x491e15(0x3aa)]();}[_0x2daf50(0x1e4)](){const _0x105131=_0x2daf50;this[_0x105131(0x3ef)]['registerFeaturePasteHook'](({fromUnitId:_0x1912e2,fromSubUnitId:_0x2817e9,toUnitId:_0x4cc47a,toSubUnitId:_0x5a7119,idMap:_0x12e905})=>{const _0x4539cf=_0x105131;let _0xe41f67=[],_0x5188d5=[];for(let [_0x3ce4ee,_0x2c3060]of _0x12e905[_0x4539cf(0x261)]()){let _0x186cae=this[_0x4539cf(0x3d2)][_0x4539cf(0x3c5)](_0x1912e2,_0x2817e9,_0x3ce4ee);if(!_0x186cae)continue;let _0x371368=_0x186cae['getShapeType'](),_0x3b2dc3=JSON[_0x4539cf(0x22f)](JSON[_0x4539cf(0x205)](_0x186cae[_0x4539cf(0x389)]()));if(_0x3b2dc3['relation']){var _0x248d25,_0x2df307;let _0x218e7b=(_0x248d25=_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)])==null?void 0x0:_0x248d25[_0x4539cf(0x1b5)],_0x48d0e1=(_0x2df307=_0x3b2dc3['relation']['to'])==null?void 0x0:_0x2df307[_0x4539cf(0x1b5)],_0x21f1b6=_0x218e7b?_0x12e905[_0x4539cf(0x35d)](_0x218e7b):!0x0,_0x4cf70f=_0x48d0e1?_0x12e905[_0x4539cf(0x35d)](_0x48d0e1):!0x0;_0x21f1b6&&_0x218e7b&&_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)]?_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)]={..._0x3b2dc3['relation']['from'],'shapeId':_0x12e905[_0x4539cf(0x423)](_0x218e7b)}:_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)]=void 0x0,_0x4cf70f&&_0x48d0e1&&_0x3b2dc3[_0x4539cf(0x2f3)]['to']?_0x3b2dc3[_0x4539cf(0x2f3)]['to']={..._0x3b2dc3[_0x4539cf(0x2f3)]['to'],'shapeId':_0x12e905[_0x4539cf(0x423)](_0x48d0e1)}:_0x3b2dc3['relation']['to']=void 0x0;}_0xe41f67[_0x4539cf(0x1d8)]({'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4cc47a,'subUnitId':_0x5a7119,'shapeId':_0x2c3060,'shapeType':_0x371368,'shapeData':_0x3b2dc3}}),_0x5188d5[_0x4539cf(0x1d8)]({'id':r[_0x4539cf(0x45b)]['id'],'params':{'unitId':_0x4cc47a,'subUnitId':_0x5a7119,'shapeId':_0x2c3060}});}return{'redos':_0xe41f67,'undos':_0x5188d5};});}[_0x2daf50(0x21e)](){const _0x47ad95=_0x2daf50;this[_0x47ad95(0x1c1)](this['_sheetClipboardService'][_0x47ad95(0x1d9)]({'id':_0x47ad95(0x1af),'onBeforeCopy':(_0xab09e0,_0x42df0c,_0x4e3f2b,_0x25ff71)=>{const _0x3a3302=_0x47ad95;this[_0x3a3302(0x438)]=null;let _0x1c243e=this[_0x3a3302(0x2da)];if(_0x1c243e['length']){let _0x55709b=_0x1c243e[_0x3a3302(0x1df)](_0x1cec6b=>_0x1cec6b[_0x3a3302(0x3ea)]===i['DrawingTypeEnum'][_0x3a3302(0x324)]);if(_0x55709b['length']===0x0)return;this[_0x3a3302(0x438)]={'unitId':_0xab09e0,'subUnitId':_0x42df0c,'copyType':_0x25ff71,'drawings':_0x55709b};}else this[_0x3a3302(0x303)](_0xab09e0,_0x42df0c,_0x4e3f2b,_0x25ff71);},'onPasteCells':(_0x1ab1b,_0x22b65e,_0x1e313b,_0x19f7b2)=>{const _0x1f3e08=_0x47ad95;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x46531b}=_0x19f7b2;return _0x46531b===c[_0x1f3e08(0x3f6)][_0x1f3e08(0x452)]?this[_0x1f3e08(0x394)](_0x22b65e,this['_copyInfo'][_0x1f3e08(0x3de)]===c[_0x1f3e08(0x353)][_0x1f3e08(0x1da)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x142a88=>this['_copyInfo']?this[_0x47ad95(0x394)](_0x142a88,this[_0x47ad95(0x438)][_0x47ad95(0x3de)]===c[_0x47ad95(0x353)][_0x47ad95(0x1da)]):{'redos':[],'undos':[]}}));}[_0x2daf50(0x303)](_0x581089,_0x1dff44,_0x1fdf56,_0x8757cc){const _0x1f617d=_0x2daf50;let _0x2d7f8e=this[_0x1f617d(0x445)][_0x1f617d(0x386)](_0x581089,_0x1dff44);if(!_0x2d7f8e)return;let _0x5f2244=(0x0,a['attachRangeWithCoord'])(_0x2d7f8e,_0x1fdf56);if(!_0x5f2244)return;let {startX:_0x159f43,endX:_0x138e8b,startY:_0x21b2e8,endY:_0xc848d7}=_0x5f2244,_0x4e2dfc=this['_sheetDrawingService'][_0x1f617d(0x278)](_0x581089,_0x1dff44),_0x3ded91=this['_focusedDrawings']['slice']();for(let [_0x49842f,_0xb9c72a]of Object[_0x1f617d(0x261)](_0x4e2dfc)){if(_0xb9c72a[_0x1f617d(0x3ea)]!==i[_0x1f617d(0x2bb)][_0x1f617d(0x324)])continue;let {transform:_0x5a847d}=_0xb9c72a;if(!_0x5a847d)continue;let {left:_0x243cf1=0x0,top:_0x3bbfa3=0x0,width:_0x362059=0x0,height:_0x112edf=0x0}=_0x5a847d;_0x159f43<=_0x243cf1&&_0x138e8b>=_0x243cf1+_0x362059&&_0x21b2e8<=_0x3bbfa3&&_0xc848d7>=_0x3bbfa3+_0x112edf&&_0x3ded91[_0x1f617d(0x1d8)](_0xb9c72a);}_0x3ded91['length']>0x0&&(this['_copyInfo']={'unitId':_0x581089,'subUnitId':_0x1dff44,'copyType':_0x8757cc,'copyRange':_0x1fdf56,'drawings':_0x3ded91});}[_0x2daf50(0x394)](_0x275ac1,_0xf75e9d){const _0x5ad93f=_0x2daf50;let {unitId:_0x107d70,subUnitId:_0x562e80,range:_0x23350e}=_0x275ac1,_0x31a8aa=this[_0x5ad93f(0x445)][_0x5ad93f(0x386)](_0x107d70,_0x562e80);if(!_0x31a8aa)return{'redos':[],'undos':[]};let _0x4d2942=(0x0,a[_0x5ad93f(0x2ea)])(_0x23350e),{unitId:_0x2e36a0,subUnitId:_0x480435,copyRange:_0x37a552,drawings:_0x11fdd7}=this[_0x5ad93f(0x438)],_0x1af0f3=this[_0x5ad93f(0x445)]['getSkeleton'](_0x2e36a0,_0x480435);if(!_0x1af0f3)return{'redos':[],'undos':[]};let _0x613d6;if(!_0x37a552){let _0xaf59f5=0x1/0x0,_0x1cce22=0x1/0x0;for(let _0x5d5d6c of _0x11fdd7){var _0x309245;let {left:_0x39300a=0x0,top:_0x5b0c32=0x0}=(_0x309245=_0x5d5d6c[_0x5ad93f(0x1f8)])==null?{}:_0x309245;_0x39300a<_0xaf59f5&&(_0xaf59f5=_0x39300a),_0x5b0c32<_0x1cce22&&(_0x1cce22=_0x5b0c32);}_0xaf59f5!==0x1/0x0&&_0x1cce22!==0x1/0x0&&(_0x613d6={'left':_0xaf59f5,'top':_0x1cce22});}let _0x54096c=new Map();if(!_0xf75e9d){for(let _0x5b35cc of _0x11fdd7)_0x54096c[_0x5ad93f(0x419)](_0x5b35cc[_0x5ad93f(0x34d)],(0x0,i[_0x5ad93f(0x475)])());}let _0xbb9330=[],_0x4e9ab1=[];for(let _0x2f5c51 of _0x11fdd7){let {drawingId:_0x1f7b8c,transform:_0x36d525,sheetTransform:_0xc687b0}=_0x2f5c51;if(!_0x36d525||!_0xc687b0)continue;let _0x57c6db=this['_updateTransform']({'transform':_0x36d525,'sheetTransform':_0xc687b0},{'skeleton':_0x1af0f3,'range':_0x37a552},{'skeleton':_0x31a8aa,'range':_0x4d2942},_0x613d6);if(_0xf75e9d){let {redos:_0x347526,undos:_0x268933}=this[_0x5ad93f(0x450)]({'fromUnitId':_0x2e36a0,'fromSubUnitId':_0x480435,'toUnitId':_0x107d70,'toSubUnitId':_0x562e80,'drawing':_0x2f5c51,'newTransforms':_0x57c6db});_0xbb9330['push'](..._0x347526),_0x4e9ab1[_0x5ad93f(0x1d8)](..._0x268933);continue;}let {redos:_0x129147,undos:_0x51cff7}=this[_0x5ad93f(0x442)]({'toUnitId':_0x107d70,'toSubUnitId':_0x562e80,'drawing':_0x2f5c51,'newTransforms':_0x57c6db,'newDrawingId':_0x54096c[_0x5ad93f(0x423)](_0x1f7b8c),'idMap':_0x54096c});_0xbb9330[_0x5ad93f(0x1d8)](..._0x129147),_0x4e9ab1[_0x5ad93f(0x1d8)](..._0x51cff7);}return{'redos':_0xbb9330,'undos':_0x4e9ab1};}['_generateCutPasteMutations'](_0x447212){const _0x325c3e=_0x2daf50;let {fromUnitId:_0x22c4ce,fromSubUnitId:_0x56a631,toUnitId:_0x5b7f03,toSubUnitId:_0x41a829,drawing:_0x4f75e9,newTransforms:_0xaf2e04}=_0x447212,_0x5c4639={..._0x4f75e9,'unitId':_0x5b7f03,'subUnitId':_0x41a829,'transform':_0xaf2e04[_0x325c3e(0x1f8)],'sheetTransform':_0xaf2e04[_0x325c3e(0x221)]};if(_0x5b7f03===_0x22c4ce&&_0x41a829===_0x56a631){let {redo:_0x208132,undo:_0xab4537,objects:_0x41eff2}=this[_0x325c3e(0x3b4)][_0x325c3e(0x39d)]([_0x5c4639]);return{'redos':[{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h['DrawingApplyType'][_0x325c3e(0x21d)],'op':_0x208132,'objects':_0x41eff2}}],'undos':[{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h['DrawingApplyType']['UPDATE'],'op':_0xab4537,'objects':_0x41eff2}}]};}else{let _0x375ab3=this[_0x325c3e(0x3b4)][_0x325c3e(0x47d)]([_0x4f75e9]),_0x57ac9d=this[_0x325c3e(0x3b4)]['getBatchAddOp']([_0x5c4639]),_0x13bdf5=this[_0x325c3e(0x3d2)][_0x325c3e(0x3c5)](_0x4f75e9[_0x325c3e(0x378)],_0x4f75e9[_0x325c3e(0x1a1)],_0x4f75e9[_0x325c3e(0x34d)]);if(!_0x13bdf5)return{'redos':[],'undos':[]};let _0x17cdd3=_0x13bdf5['getShapeType'](),_0x79c2b9=JSON[_0x325c3e(0x22f)](JSON['stringify'](_0x13bdf5[_0x325c3e(0x389)]()));return{'redos':[{'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'type':h[_0x325c3e(0x38f)][_0x325c3e(0x36d)],'op':_0x375ab3['redo'],'objects':_0x375ab3[_0x325c3e(0x426)]}},{'id':r[_0x325c3e(0x45b)]['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'shapeId':_0x4f75e9[_0x325c3e(0x34d)]}},{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h['DrawingApplyType'][_0x325c3e(0x41e)],'op':_0x57ac9d['redo'],'objects':_0x57ac9d[_0x325c3e(0x426)]}},{'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'shapeId':_0x4f75e9[_0x325c3e(0x34d)],'shapeType':_0x17cdd3,'shapeData':_0x79c2b9}}],'undos':[{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'type':h[_0x325c3e(0x38f)][_0x325c3e(0x41e)],'op':_0x375ab3[_0x325c3e(0x43c)],'objects':_0x375ab3[_0x325c3e(0x426)]}},{'id':r[_0x325c3e(0x385)]['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'shapeId':_0x4f75e9[_0x325c3e(0x34d)],'shapeType':_0x17cdd3,'shapeData':_0x79c2b9}},{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h[_0x325c3e(0x38f)][_0x325c3e(0x36d)],'op':_0x57ac9d[_0x325c3e(0x43c)],'objects':_0x57ac9d[_0x325c3e(0x426)]}},{'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'shapeId':_0x4f75e9['drawingId']}}]};}}[_0x2daf50(0x442)](_0x108384){const _0x41f4b4=_0x2daf50;let {toUnitId:_0x2c497e,toSubUnitId:_0x503ff4,drawing:_0x2978da,newTransforms:_0xe852ce,newDrawingId:_0x41dd8e,idMap:_0x1a0610}=_0x108384,_0x344f44={..._0x2978da,'unitId':_0x2c497e,'subUnitId':_0x503ff4,'drawingId':_0x41dd8e,'transform':_0xe852ce[_0x41f4b4(0x1f8)],'sheetTransform':_0xe852ce[_0x41f4b4(0x221)]},{redo:_0xe6c086,undo:_0x52f044,objects:_0x553a86}=this['_sheetDrawingService'][_0x41f4b4(0x350)]([_0x344f44]),_0x4cdc2f=this['_shapeService'][_0x41f4b4(0x3c5)](_0x2978da['unitId'],_0x2978da[_0x41f4b4(0x1a1)],_0x2978da['drawingId']);if(!_0x4cdc2f)return{'redos':[],'undos':[]};let _0x7cb778=_0x4cdc2f['getShapeType'](),_0x4318ee=JSON[_0x41f4b4(0x22f)](JSON[_0x41f4b4(0x205)](_0x4cdc2f['getShapeData']()));if(_0x4318ee[_0x41f4b4(0x2f3)]){var _0x586f9e,_0x324958;let _0x10540f=(_0x586f9e=_0x4318ee[_0x41f4b4(0x2f3)][_0x41f4b4(0x39e)])==null?void 0x0:_0x586f9e[_0x41f4b4(0x1b5)],_0x5c7a05=(_0x324958=_0x4318ee[_0x41f4b4(0x2f3)]['to'])==null?void 0x0:_0x324958[_0x41f4b4(0x1b5)],_0x44020e=_0x10540f?_0x1a0610[_0x41f4b4(0x35d)](_0x10540f):!0x0,_0x5a4400=_0x5c7a05?_0x1a0610[_0x41f4b4(0x35d)](_0x5c7a05):!0x0;_0x44020e&&_0x10540f&&_0x4318ee['relation'][_0x41f4b4(0x39e)]?_0x4318ee[_0x41f4b4(0x2f3)][_0x41f4b4(0x39e)]={..._0x4318ee[_0x41f4b4(0x2f3)][_0x41f4b4(0x39e)],'shapeId':_0x1a0610[_0x41f4b4(0x423)](_0x10540f)}:_0x4318ee['relation']['from']=void 0x0,_0x5a4400&&_0x5c7a05&&_0x4318ee[_0x41f4b4(0x2f3)]['to']?_0x4318ee[_0x41f4b4(0x2f3)]['to']={..._0x4318ee[_0x41f4b4(0x2f3)]['to'],'shapeId':_0x1a0610['get'](_0x5c7a05)}:_0x4318ee[_0x41f4b4(0x2f3)]['to']=void 0x0;}return{'redos':[{'id':h[_0x41f4b4(0x2b1)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'type':h['DrawingApplyType'][_0x41f4b4(0x41e)],'op':_0xe6c086,'objects':_0x553a86}},{'id':r[_0x41f4b4(0x385)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'shapeId':_0x41dd8e,'shapeType':_0x7cb778,'shapeData':_0x4318ee}}],'undos':[{'id':h[_0x41f4b4(0x2b1)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'type':h[_0x41f4b4(0x38f)][_0x41f4b4(0x36d)],'op':_0x52f044,'objects':_0x553a86}},{'id':r[_0x41f4b4(0x45b)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'shapeId':_0x41dd8e}}]};}['_updateTransform'](_0x14ed3c,_0x2aafd1,_0x3bbd7d,_0x429516){const _0x252755=_0x2daf50;var _0x44b01d;let {range:_0x1e86c1,skeleton:_0x193e3}=_0x2aafd1,{range:_0x19c10e,skeleton:_0x2015dc}=_0x3bbd7d,{transform:_0x3ffe97,sheetTransform:_0x47191a}=_0x14ed3c,_0x23a841={..._0x3ffe97};if(_0x1e86c1){let _0x452d80=(0x0,a[_0x252755(0x3ad)])(_0x193e3,_0x1e86c1),_0x101e1b=(0x0,a[_0x252755(0x3ad)])(_0x2015dc,_0x19c10e);if(_0x452d80&&_0x101e1b){var _0x17b8ff,_0x33bf5d;let _0x513654=_0x101e1b['startX']-_0x452d80['startX'],_0x216c1d=_0x101e1b[_0x252755(0x2f0)]-_0x452d80[_0x252755(0x2f0)];_0x23a841[_0x252755(0x1c9)]=((_0x17b8ff=_0x23a841['left'])==null?0x0:_0x17b8ff)+_0x513654,_0x23a841[_0x252755(0x286)]=((_0x33bf5d=_0x23a841[_0x252755(0x286)])==null?0x0:_0x33bf5d)+_0x216c1d;}}else{let _0x2fd884=(0x0,a[_0x252755(0x3ad)])(_0x2015dc,_0x19c10e);if(_0x429516&&_0x2fd884){var _0x561dec,_0xaafc2;let _0x38173d=((_0x561dec=_0x23a841[_0x252755(0x1c9)])==null?0x0:_0x561dec)-_0x429516[_0x252755(0x1c9)],_0x3ee8bd=((_0xaafc2=_0x23a841['top'])==null?0x0:_0xaafc2)-_0x429516['top'];_0x23a841[_0x252755(0x1c9)]=_0x2fd884['startX']+_0x38173d,_0x23a841[_0x252755(0x286)]=_0x2fd884[_0x252755(0x2f0)]+_0x3ee8bd;}else _0x23a841[_0x252755(0x1c9)]=_0x2fd884==null?void 0x0:_0x2fd884[_0x252755(0x379)],_0x23a841[_0x252755(0x286)]=_0x2fd884==null?void 0x0:_0x2fd884['startY'];}return{'transform':_0x23a841,'sheetTransform':(_0x44b01d=(0x0,h[_0x252755(0x2d8)])(_0x23a841,_0x2015dc))==null?_0x47191a:_0x44b01d};}};Y=j([A(0x0,(0x0,i['Inject'])(a[_0x2daf50(0x3d8)])),A(0x1,(0x0,i['Inject'])(c[_0x2daf50(0x3a2)])),A(0x2,(0x0,i['Inject'])(h[_0x2daf50(0x408)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(p[_0x2daf50(0x40c)]))],Y);var Oe=class extends s['Shape']{constructor(_0x578550,_0x200c98){const _0x3d26eb=_0x2daf50;super(_0x578550,_0x200c98),E(this,_0x3d26eb(0x433),null),E(this,_0x3d26eb(0x3cf),null),E(this,_0x3d26eb(0x19c),null),E(this,'_subUnitId',null),E(this,'_isStartConnectorPoint',!0x1),_0x200c98&&this[_0x3d26eb(0x26d)](_0x200c98);}[_0x2daf50(0x26a)](){const _0x1c88ec=_0x2daf50;return{'unitId':this[_0x1c88ec(0x19c)],'subUnitId':this[_0x1c88ec(0x1a5)],'drawingId':this[_0x1c88ec(0x433)]};}[_0x2daf50(0x26d)](_0x5cc5c2){const _0x1c3e55=_0x2daf50;_0x5cc5c2[_0x1c3e55(0x1b5)]!==void 0x0&&(this[_0x1c3e55(0x433)]=_0x5cc5c2[_0x1c3e55(0x1b5)]),_0x5cc5c2[_0x1c3e55(0x378)]!==void 0x0&&(this['_unitId']=_0x5cc5c2[_0x1c3e55(0x378)]),_0x5cc5c2[_0x1c3e55(0x1a1)]!==void 0x0&&(this[_0x1c3e55(0x1a5)]=_0x5cc5c2['subUnitId']),_0x5cc5c2['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x5cc5c2[_0x1c3e55(0x1f4)]),this[_0x1c3e55(0x201)]({'width':_0x5cc5c2[_0x1c3e55(0x458)],'height':_0x5cc5c2['height']});}[_0x2daf50(0x218)](_0x2b60dc){const _0x50c869=_0x2daf50;s[_0x50c869(0x2c3)][_0x50c869(0x402)](_0x2b60dc,{'radius':t['ShapeDefaultConfig'][_0x50c869(0x298)],'fill':t[_0x50c869(0x24f)][_0x50c869(0x456)],'stroke':t[_0x50c869(0x24f)][_0x50c869(0x3ae)],'strokeWidth':t[_0x50c869(0x24f)][_0x50c869(0x3fd)],'evented':!0x0});}};let ke=class extends i[_0x2daf50(0x2f9)]{constructor(_0x1b64b4,_0x39ee49,_0x31b434,_0x3ec3da,_0x369ea9,_0x14c530,_0x244416,_0x511936){const _0x53d655=_0x2daf50;super(),this[_0x53d655(0x200)]=_0x1b64b4,this['_commandService']=_0x39ee49,this[_0x53d655(0x3fc)]=_0x31b434,this['_drawingManagerService']=_0x3ec3da,this[_0x53d655(0x1aa)]=_0x369ea9,this[_0x53d655(0x453)]=_0x14c530,this[_0x53d655(0x1c5)]=_0x244416,this[_0x53d655(0x2a4)]=_0x511936,E(this,_0x53d655(0x46c),void 0x0),E(this,_0x53d655(0x19c),void 0x0),E(this,_0x53d655(0x1a5),void 0x0),E(this,_0x53d655(0x30f),[]),E(this,_0x53d655(0x43d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0x53d655(0x3d0),void 0x0),E(this,_0x53d655(0x3c4),!0x1),E(this,_0x53d655(0x36f),!0x1),E(this,'_hasReset',!0x1),E(this,_0x53d655(0x332),void 0x0),E(this,_0x53d655(0x22d),void 0x0),E(this,'_currentConnectionTarget',null),this[_0x53d655(0x30c)]();}[_0x2daf50(0x30c)](){const _0x11fc64=_0x2daf50;this['_registerDrawingFocusChangeHandler'](),this[_0x11fc64(0x1f6)]();}['_getDrawingRect'](){const _0x4b681b=_0x2daf50;if(!this[_0x4b681b(0x19c)]||!this[_0x4b681b(0x1a5)]||!this[_0x4b681b(0x46c)])return;let _0xc9d54c={'unitId':this['_unitId'],'subUnitId':this[_0x4b681b(0x1a5)],'drawingId':this[_0x4b681b(0x46c)]},{transform:_0x36d076}=this[_0x4b681b(0x449)][_0x4b681b(0x39b)](_0xc9d54c);if(_0x36d076)return{'left':_0x36d076[_0x4b681b(0x1c9)]||0x0,'top':_0x36d076[_0x4b681b(0x286)]||0x0,'width':_0x36d076['width']||0x0,'height':_0x36d076['height']||0x0,'flipX':_0x36d076[_0x4b681b(0x3c0)]||!0x1,'flipY':_0x36d076[_0x4b681b(0x380)]||!0x1,'angle':_0x36d076[_0x4b681b(0x467)]};}[_0x2daf50(0x3fa)](){const _0x518265=_0x2daf50;if(this[_0x518265(0x19c)]===void 0x0||this[_0x518265(0x1a5)]===void 0x0||this[_0x518265(0x46c)]===void 0x0)return;let _0x2b573f=this[_0x518265(0x3fc)][_0x518265(0x36e)](this[_0x518265(0x19c)]);if(!_0x2b573f||!_0x2b573f[_0x518265(0x463)](c[_0x518265(0x366)])[_0x518265(0x435)]())return;let {scene:_0x4d427f}=_0x2b573f,_0x67934=this[_0x518265(0x27d)]();if(!_0x67934)return;let _0x2584c3=this[_0x518265(0x453)][_0x518265(0x3c5)](this[_0x518265(0x19c)],this['_subUnitId'],this['_activeShapeId']);if(!_0x2584c3||!(0x0,t['isConnectorShape'])(_0x2584c3[_0x518265(0x3ca)]()))return;let _0x179039=_0x2584c3[_0x518265(0x2f7)]();if(_0x179039[_0x518265(0x3ce)]<0x2)return;let _0x5d91cd=new t['ConnectorCoordinateTransform'](_0x67934),_0x25195a=_0x179039[0x0],_0x5cb9d3=_0x179039[_0x179039[_0x518265(0x3ce)]-0x1],_0x2d5f14=_0x5d91cd['localToWorld'](_0x25195a),_0x1abedc=_0x5d91cd[_0x518265(0x383)](_0x5cb9d3);this['_addShapeConnectorHandlerObject'](_0x4d427f,{..._0x2d5f14},!0x0),this['_addShapeConnectorHandlerObject'](_0x4d427f,{..._0x1abedc},!0x1);}[_0x2daf50(0x441)](_0x233962,_0x4b1c8f,_0x13b9fb){const _0x618a62=_0x2daf50;if(this[_0x618a62(0x46c)]===void 0x0||this[_0x618a62(0x19c)]===void 0x0||this[_0x618a62(0x1a5)]===void 0x0)return;let _0x17ec3=_0x618a62(0x1b2)+this['_unitId']+'-'+this['_subUnitId']+'-'+this[_0x618a62(0x46c)]+'-'+(_0x13b9fb?_0x618a62(0x302):_0x618a62(0x2fa)),_0x432eaf=_0x233962[_0x618a62(0x23d)](_0x17ec3);if(_0x432eaf){_0x432eaf[_0x618a62(0x201)]({'left':_0x4b1c8f['x']-t[_0x618a62(0x24f)][_0x618a62(0x298)],'top':_0x4b1c8f['y']-t['ShapeDefaultConfig'][_0x618a62(0x298)]});return;}let _0x23eb81=new Oe(_0x17ec3,{'left':_0x4b1c8f['x']-t['ShapeDefaultConfig'][_0x618a62(0x298)],'top':_0x4b1c8f['y']-t[_0x618a62(0x24f)][_0x618a62(0x298)],'shapeId':this[_0x618a62(0x46c)],'unitId':this['_unitId'],'subUnitId':this[_0x618a62(0x1a5)],'isStartConnectorPoint':_0x13b9fb,'width':t[_0x618a62(0x24f)][_0x618a62(0x298)]*0x2,'height':t[_0x618a62(0x24f)][_0x618a62(0x298)]*0x2,'zIndex':s['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x618a62(0x30f)][_0x618a62(0x1d8)](_0x23eb81),this['_attachConnectorObjectEvent'](_0x23eb81,_0x233962,_0x13b9fb),_0x233962['addObject'](_0x23eb81,s[_0x618a62(0x329)]+0x1);}['_getScrollInfo'](_0x324702,_0x488ece){const _0x17c1ff=_0x2daf50;var _0x5ed202;let _0x18ddb0={'x':0x0,'y':0x0};if(!_0x324702||!_0x488ece)return _0x18ddb0;let _0x45fc2e=this[_0x17c1ff(0x3fc)][_0x17c1ff(0x36e)](_0x324702);if(!_0x45fc2e||!_0x45fc2e[_0x17c1ff(0x463)](c[_0x17c1ff(0x366)])[_0x17c1ff(0x386)](_0x488ece))return _0x18ddb0;let _0x4d5dec=_0x45fc2e[_0x17c1ff(0x463)](c['SheetScrollManagerService']),_0x459418=_0x4d5dec==null?void 0x0:_0x4d5dec[_0x17c1ff(0x3bc)]();if(!_0x459418)return _0x18ddb0;let _0x5c2261=(_0x5ed202=this[_0x17c1ff(0x1aa)][_0x17c1ff(0x32f)](_0x324702))==null?void 0x0:_0x5ed202[_0x17c1ff(0x1a9)](_0x488ece);if(!_0x5c2261)return _0x18ddb0;let _0x53f856=(0x0,c[_0x17c1ff(0x281)])(_0x459418[_0x17c1ff(0x46a)],_0x459418[_0x17c1ff(0x3f9)],_0x45fc2e[_0x17c1ff(0x336)],_0x5c2261);return _0x53f856?{'x':_0x53f856[_0x17c1ff(0x210)],'y':_0x53f856[_0x17c1ff(0x2bf)]}:_0x18ddb0;}['_getZoomRatio'](_0x57a33a,_0x101276){const _0x232743=_0x2daf50;var _0x2c4838,_0x5cfbd1;let _0x48a16b=(_0x2c4838=this[_0x232743(0x1aa)]['getUnit'](_0x57a33a))==null?void 0x0:_0x2c4838[_0x232743(0x1a9)](_0x101276);return(_0x5cfbd1=_0x48a16b==null?void 0x0:_0x48a16b['getZoomRatio']())==null?0x1:_0x5cfbd1;}[_0x2daf50(0x415)](_0x305583,_0xb53729,_0x5752aa,_0x5ba0ff,_0x55f580){const _0x3fc1ef=_0x2daf50;this[_0x3fc1ef(0x332)][_0x3fc1ef(0x34e)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this['_sheetShapeAdjustController'][_0x3fc1ef(0x337)]();let _0x4703fe=this[_0x3fc1ef(0x241)];this[_0x3fc1ef(0x2a4)][_0x3fc1ef(0x33d)]();let _0x531733=this[_0x3fc1ef(0x2ca)](this[_0x3fc1ef(0x19c)],this[_0x3fc1ef(0x1a5)]),_0x2f8db9=this[_0x3fc1ef(0x207)](this[_0x3fc1ef(0x19c)],this[_0x3fc1ef(0x1a5)]),_0x2451ac={'x':_0x5752aa[_0x3fc1ef(0x2ac)]/_0x2f8db9+_0x531733['x'],'y':_0x5752aa['offsetY']/_0x2f8db9+_0x531733['y']},_0x322b44=_0x4703fe?_0x4703fe['worldPoint']:_0x2451ac,_0x1d513b=_0x5ba0ff?this[_0x3fc1ef(0x3d0)][_0x3fc1ef(0x1b9)]():this[_0x3fc1ef(0x3d0)][_0x3fc1ef(0x1dd)](),_0x4d5f45=this[_0x3fc1ef(0x3d0)][_0x3fc1ef(0x3ca)]();_0x1d513b?this[_0x3fc1ef(0x2e5)](_0x1d513b,_0x322b44,_0x5ba0ff,_0x4703fe,_0x55f580):this[_0x3fc1ef(0x1dc)](_0xb53729,_0x322b44,_0x5ba0ff,_0x4703fe,_0x55f580,_0x4d5f45),this[_0x3fc1ef(0x3c4)]=!0x1,this['_hasReset']=!0x1,this[_0x3fc1ef(0x241)]=null,_0x305583[_0x3fc1ef(0x3c1)]();}[_0x2daf50(0x1dc)](_0x3d0180,_0x134fc9,_0x4f44bd,_0x5de9cc,_0x1c0e4f,_0x573c8b){const _0x24c51f=_0x2daf50;let _0x2d5875=_0x573c8b===t['ShapeTypeEnum']['Line']||_0x573c8b===t[_0x24c51f(0x266)][_0x24c51f(0x29a)],_0x510dd5=_0x4f44bd?_0x134fc9:_0x3d0180,_0xe7e407=_0x4f44bd?_0x3d0180:_0x134fc9,_0x1a9df1=this['_activeShapeModel']['getConnectorLinePoints'](),_0x1b1201=(0x0,t[_0x24c51f(0x352)])(this['_activeShapeModel'][_0x24c51f(0x3ca)]()),_0x3b16a3=t['ConnectorCoordinateTransform']['getBentTypeFromPoints'](_0x1a9df1,_0x1b1201),_0x180405=_0x2d5875?t[_0x24c51f(0x300)][_0x24c51f(0x476)](_0x510dd5,_0xe7e407):t[_0x24c51f(0x300)][_0x24c51f(0x1f7)](_0x3d0180,_0x134fc9,_0x4f44bd,_0x3b16a3);_0x5de9cc?this[_0x24c51f(0x407)](_0x180405,_0x5de9cc,_0x4f44bd,_0x1c0e4f):this['_executeResizeCommand'](_0x180405,_0x1c0e4f);}[_0x2daf50(0x2e5)](_0xe2e66a,_0x5b53bb,_0x4b2801,_0x5085b6,_0x53ac55){const _0x2d4650=_0x2daf50;let _0x2fbbd2=this[_0x2d4650(0x44e)](_0xe2e66a);if(!_0x2fbbd2)return;let _0x5ba409=_0x5085b6?_0x5085b6['angle']:this[_0x2d4650(0x237)](_0x2fbbd2[_0x2d4650(0x2aa)],_0x5b53bb),_0x556962;if(_0x5085b6){let _0x4e1a8e=this[_0x2d4650(0x449)]['getDrawingByParam']({'unitId':_0x5085b6[_0x2d4650(0x378)],'subUnitId':_0x5085b6[_0x2d4650(0x1a1)],'drawingId':_0x5085b6[_0x2d4650(0x1b5)]});if(_0x4e1a8e!=null&&_0x4e1a8e[_0x2d4650(0x1f8)]){let {left:_0xe58ffe=0x0,top:_0x54c7ed=0x0,width:_0x1b6f34=0x0,height:_0x322836=0x0,angle:_0x23dc6e}=_0x4e1a8e['transform'];_0x556962=(0x0,t[_0x2d4650(0x2b0)])({'left':_0xe58ffe,'top':_0x54c7ed,'width':_0x1b6f34,'height':_0x322836},_0x23dc6e||0x0);}else _0x556962={'left':_0x5b53bb['x'],'top':_0x5b53bb['y'],'width':0x0,'height':0x0};}else _0x556962={'left':_0x5b53bb['x'],'top':_0x5b53bb['y'],'width':0x0,'height':0x0};let _0x5ccff1={'point':_0x5b53bb,'angle':_0x5ba409,'bounds':_0x556962},_0x2b7d32=_0x4b2801?_0x5ccff1:_0x2fbbd2,_0x2ae357=_0x4b2801?_0x2fbbd2:_0x5ccff1,_0x121f5c=this[_0x2d4650(0x3d0)][_0x2d4650(0x3ca)](),_0x38d4d9=(0x0,t[_0x2d4650(0x260)])(_0x2b7d32,_0x2ae357,_0x121f5c);this[_0x2d4650(0x3d0)][_0x2d4650(0x1d7)]();let _0x1b09cb=(0x0,t['computeConnectorRouteLayout'])(_0x38d4d9,_0x121f5c);_0x5085b6?this[_0x2d4650(0x29c)](_0x1b09cb,_0x5085b6,_0xe2e66a,_0x4b2801,_0x53ac55):this[_0x2d4650(0x424)](_0x1b09cb,_0xe2e66a,_0x4b2801,_0x53ac55);}[_0x2daf50(0x407)](_0x27e645,_0x5a5720,_0x8eefa9,_0x3c6b25){const _0x241398=_0x2daf50;let _0x1782d7=this[_0x241398(0x3d0)][_0x241398(0x389)]()['relation'],_0x3f8169={..._0x1782d7},_0x2df5b1={'shapeId':_0x5a5720[_0x241398(0x1b5)],'cxnIndex':_0x5a5720[_0x241398(0x42b)]};_0x8eefa9?_0x3f8169[_0x241398(0x39e)]=_0x2df5b1:_0x3f8169['to']=_0x2df5b1;let _0x299c23=this[_0x241398(0x3d0)][_0x241398(0x3ca)](),_0x41f629=(0x0,t['computeConnectorRouteLayout'])(_0x27e645[_0x241398(0x3c8)],_0x299c23),_0x6442cc={'unitId':this[_0x241398(0x19c)],'subUnitId':this[_0x241398(0x1a5)],'connectorShapeId':this[_0x241398(0x46c)],'width':_0x27e645[_0x241398(0x474)][_0x241398(0x458)],'height':_0x27e645['worldRect']['height'],'left':_0x27e645[_0x241398(0x474)][_0x241398(0x1c9)],'top':_0x27e645[_0x241398(0x474)][_0x241398(0x286)],'flipX':_0x27e645[_0x241398(0x474)][_0x241398(0x3c0)]||!0x1,'flipY':_0x27e645['worldRect'][_0x241398(0x380)]||!0x1,'newAdjustValues':_0x41f629['adjustValues'],'oldAdjustValues':_0x3c6b25,'oldRelation':_0x1782d7,'newRelation':_0x3f8169,'newLineType':_0x41f629[_0x241398(0x2c1)],'oldLineType':_0x299c23};this[_0x241398(0x19f)][_0x241398(0x374)](r['UpdateConnectorRelationCommand']['id'],_0x6442cc);}['_executeResizeCommand'](_0x1de3ac,_0x3fcce8){const _0x57270a=_0x2daf50;let _0x61733c=this[_0x57270a(0x3d0)][_0x57270a(0x3ca)](),_0x189f6f=(0x0,t[_0x57270a(0x2cc)])(_0x1de3ac[_0x57270a(0x3c8)],_0x61733c),_0xa973d={'unitId':this[_0x57270a(0x19c)],'subUnitId':this['_subUnitId'],'shapeId':this['_activeShapeId'],'width':_0x1de3ac[_0x57270a(0x474)][_0x57270a(0x458)],'height':_0x1de3ac[_0x57270a(0x474)][_0x57270a(0x1c6)],'left':_0x1de3ac[_0x57270a(0x474)]['left'],'top':_0x1de3ac[_0x57270a(0x474)][_0x57270a(0x286)],'flipX':_0x1de3ac['worldRect'][_0x57270a(0x3c0)]||!0x1,'flipY':_0x1de3ac['worldRect']['flipY']||!0x1,'angle':_0x1de3ac['worldRect'][_0x57270a(0x467)]||0x0,'newAdjustValues':_0x189f6f['adjustValues'],'oldAdjustValues':_0x3fcce8,'newLineType':_0x189f6f[_0x57270a(0x2c1)],'oldLineType':_0x61733c};this['_commandService']['executeCommand'](r[_0x57270a(0x2a3)]['id'],_0xa973d);}[_0x2daf50(0x29c)](_0x2d0e32,_0x10a1c2,_0x15cd6c,_0x3a5126,_0x3512bf){const _0x3b9985=_0x2daf50;let _0x468dbe=this[_0x3b9985(0x3d0)][_0x3b9985(0x389)]()[_0x3b9985(0x2f3)],_0x4f90ea={..._0x468dbe},_0x24b82d={'shapeId':_0x10a1c2[_0x3b9985(0x1b5)],'cxnIndex':_0x10a1c2[_0x3b9985(0x42b)]};_0x3a5126?(_0x4f90ea[_0x3b9985(0x39e)]=_0x24b82d,_0x4f90ea['to']=_0x15cd6c):(_0x4f90ea[_0x3b9985(0x39e)]=_0x15cd6c,_0x4f90ea['to']=_0x24b82d);let _0x207499={'unitId':this[_0x3b9985(0x19c)],'subUnitId':this[_0x3b9985(0x1a5)],'connectorShapeId':this[_0x3b9985(0x46c)],'width':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x458)],'height':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x1c6)],'left':_0x2d0e32['worldRect']['left'],'top':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x286)],'flipX':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x3c0)]||!0x1,'flipY':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x380)]||!0x1,'oldAdjustValues':_0x3512bf,'newAdjustValues':_0x2d0e32[_0x3b9985(0x3ee)],'newLineType':_0x2d0e32[_0x3b9985(0x2c1)],'rotation':_0x2d0e32['rotation'],'oldRelation':_0x468dbe,'newRelation':_0x4f90ea};this['_commandService'][_0x3b9985(0x374)](r[_0x3b9985(0x28d)]['id'],_0x207499);}[_0x2daf50(0x424)](_0x19b098,_0x1e612f,_0x28dde9,_0x317140){const _0x47fb14=_0x2daf50;let _0x1999f6=this[_0x47fb14(0x3d0)][_0x47fb14(0x389)]()[_0x47fb14(0x2f3)],_0x22a0c2={};_0x28dde9?(_0x22a0c2['to']=_0x1e612f,_0x22a0c2['from']=void 0x0):(_0x22a0c2[_0x47fb14(0x39e)]=_0x1e612f,_0x22a0c2['to']=void 0x0);let _0x117379={'unitId':this['_unitId'],'subUnitId':this[_0x47fb14(0x1a5)],'connectorShapeId':this[_0x47fb14(0x46c)],'width':_0x19b098['worldRect'][_0x47fb14(0x458)],'height':_0x19b098[_0x47fb14(0x474)][_0x47fb14(0x1c6)],'left':_0x19b098[_0x47fb14(0x474)][_0x47fb14(0x1c9)],'top':_0x19b098[_0x47fb14(0x474)][_0x47fb14(0x286)],'flipX':_0x19b098['worldRect']['flipX']||!0x1,'flipY':_0x19b098['worldRect'][_0x47fb14(0x380)]||!0x1,'oldAdjustValues':_0x317140,'newAdjustValues':_0x19b098[_0x47fb14(0x3ee)],'newLineType':_0x19b098[_0x47fb14(0x2c1)],'rotation':_0x19b098[_0x47fb14(0x34a)],'oldRelation':_0x1999f6,'newRelation':_0x22a0c2};this['_commandService']['executeCommand'](r[_0x47fb14(0x28d)]['id'],_0x117379);}[_0x2daf50(0x216)](_0x18636b,_0x127a2f,_0x12daff){const _0x17bb9f=_0x2daf50;this[_0x17bb9f(0x1c1)]((0x0,i[_0x17bb9f(0x427)])(_0x18636b[_0x17bb9f(0x38a)][_0x17bb9f(0x382)]((_0x6220f9,_0x5c47f4)=>{const _0x1a8150=_0x17bb9f;let _0xa7d00c=_0x18636b[_0x1a8150(0x26a)]();if(this['_activeShapeModel']=this[_0x1a8150(0x453)][_0x1a8150(0x3c5)](_0xa7d00c[_0x1a8150(0x378)],_0xa7d00c[_0x1a8150(0x1a1)],_0xa7d00c[_0x1a8150(0x34d)]),!this[_0x1a8150(0x3d0)])return;let _0x51c717={};this[_0x1a8150(0x3d0)][_0x1a8150(0x372)]()[_0x1a8150(0x279)](_0x4829b5=>{const _0x2f1c9c=_0x1a8150;let _0x297452=this[_0x2f1c9c(0x3d0)][_0x2f1c9c(0x243)](_0x4829b5);_0x297452!==void 0x0&&(_0x51c717[_0x4829b5]=_0x297452);});let _0x53cf60=this['_getDrawingRect']();if(!_0x53cf60)return;this['_baseDrawingRect']={..._0x53cf60};let _0xcec0ed=new t[(_0x1a8150(0x300))](this[_0x1a8150(0x43d)]),_0x410200=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x1a8150(0x19c)],'subUnitId':this[_0x1a8150(0x1a5)],'drawingId':this[_0x1a8150(0x46c)]}),_0xeca889=_0x127a2f[_0x1a8150(0x23d)](_0x410200);this['_isConnecting']=!0x0,_0x127a2f[_0x1a8150(0x317)](),this['_sheetBasicShapeConnectionPointController'][_0x1a8150(0x24c)](_0x127a2f,this['_unitId'],this[_0x1a8150(0x1a5)],this[_0x1a8150(0x46c)]),this['_currentConnectionTarget']=null;let _0x3f2556=this[_0x1a8150(0x3d0)][_0x1a8150(0x2f7)](),_0x49be91=_0x3f2556[0x0],_0x1bbdad=_0x3f2556[_0x3f2556['length']-0x1],_0x103bed=_0x12daff?_0xcec0ed['localToWorld'](_0x1bbdad):_0xcec0ed[_0x1a8150(0x383)](_0x49be91);this[_0x1a8150(0x332)]=_0x127a2f[_0x1a8150(0x3b7)][_0x1a8150(0x382)]((_0x5a2cf7,_0x49dcee)=>{const _0x163cad=_0x1a8150;if(!this['_isConnecting']||!this[_0x163cad(0x3d0)])return;this['_hasReset']||(this[_0x163cad(0x1c5)][_0x163cad(0x3a5)](),this[_0x163cad(0x3d0)]['clearAdjustValue'](),this['_hasReset']=!0x0);let _0x18d1f7=this[_0x163cad(0x2ca)](this[_0x163cad(0x19c)],this[_0x163cad(0x1a5)]),_0x4f2c83=this['_getZoomRatio'](this[_0x163cad(0x19c)],this[_0x163cad(0x1a5)]),_0x443f32={'x':_0x5a2cf7[_0x163cad(0x2ac)]/_0x4f2c83+_0x18d1f7['x'],'y':_0x5a2cf7[_0x163cad(0x255)]/_0x4f2c83+_0x18d1f7['y']},_0x2ffd5e=this[_0x163cad(0x2a4)][_0x163cad(0x3bf)](_0x443f32);if(_0x2ffd5e){let {shapeId:_0x23aea0,unitId:_0x1d534c,subUnitId:_0x388fdb}=_0x2ffd5e;if(_0x23aea0&&_0x1d534c&&_0x388fdb){let _0x2a0227=(0x0,o[_0x163cad(0x41c)])({'unitId':_0x1d534c,'subUnitId':_0x388fdb,'drawingId':_0x23aea0});_0x2ffd5e['angle']=(_0x127a2f[_0x163cad(0x23d)](_0x2a0227)['angle']||0x0)+_0x2ffd5e[_0x163cad(0x467)];}}this[_0x163cad(0x241)]=_0x2ffd5e;let _0x2f6c89=_0x12daff?this[_0x163cad(0x3d0)]['getEndConnectInfo']():this[_0x163cad(0x3d0)][_0x163cad(0x1dd)]();if(_0x2f6c89){this[_0x163cad(0x36a)](_0x2f6c89,_0x443f32,_0x12daff,_0xeca889,_0x18636b);return;}this[_0x163cad(0x1d4)](_0x443f32,_0x103bed,_0x12daff,_0xeca889,_0x18636b);}),this[_0x1a8150(0x22d)]=_0x127a2f[_0x1a8150(0x3b3)]['subscribeEvent']((_0x5f28d6,_0x3c4e28)=>{const _0x3e9aa9=_0x1a8150;this[_0x3e9aa9(0x415)](_0x127a2f,_0x103bed,_0x5f28d6,_0x12daff,_0x51c717);}),_0x5c47f4[_0x1a8150(0x3b8)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x35ee65,_0x1781d0,_0x4309b4){const _0x32061c=_0x2daf50;let _0x20d41c=this[_0x32061c(0x453)][_0x32061c(0x3bd)](_0x35ee65,_0x1781d0,_0x4309b4);if(!_0x20d41c||_0x20d41c[_0x32061c(0x3ce)]===0x0)return;let _0x31b500=this['_renderManagerService'][_0x32061c(0x36e)](_0x35ee65);if(!_0x31b500)return;let {scene:_0x8ec962}=_0x31b500;for(let _0x1efa56 of _0x20d41c){let _0x2a5556=_0x1efa56['lineShapeId'],_0x32135d=this[_0x32061c(0x453)][_0x32061c(0x3c5)](_0x35ee65,_0x1781d0,_0x2a5556);if(!_0x32135d)continue;let _0x12f962=_0x32135d[_0x32061c(0x1dd)](),_0xdb0370=_0x32135d['getEndConnectInfo'](),_0x1850f6=(_0x12f962==null?void 0x0:_0x12f962[_0x32061c(0x1b5)])===_0x4309b4,_0x45631c=(0x0,o[_0x32061c(0x41c)])({'unitId':_0x35ee65,'subUnitId':_0x1781d0,'drawingId':_0x2a5556}),_0x4ab0ba=_0x8ec962[_0x32061c(0x23d)](_0x45631c);if(!_0x4ab0ba)continue;let _0x254694=this[_0x32061c(0x449)]['getDrawingByParam']({'unitId':_0x35ee65,'subUnitId':_0x1781d0,'drawingId':_0x2a5556});_0x254694!=null&&_0x254694['transform']&&(_0x12f962&&_0xdb0370?this['_rerouteConnectorLine'](_0x35ee65,_0x1781d0,_0x2a5556,_0x32135d,_0x12f962,_0xdb0370,_0x4ab0ba):this[_0x32061c(0x376)](_0x35ee65,_0x1781d0,_0x2a5556,_0x32135d,_0x1850f6?_0x12f962:_0xdb0370,_0x1850f6,_0x254694,_0x4ab0ba));}}[_0x2daf50(0x1f9)](_0x2c8c75,_0x22c1dc,_0xaba1db,_0x4eb870,_0x5dbbce,_0x2291e3,_0x41f842){const _0x32d4d3=_0x2daf50;let _0x3f0c61=this[_0x32d4d3(0x19c)],_0x4aea90=this['_subUnitId'];this[_0x32d4d3(0x19c)]=_0x2c8c75,this['_subUnitId']=_0x22c1dc;let _0x236e23=this[_0x32d4d3(0x44e)](_0x5dbbce),_0x493f7d=this['_getConnectPointInfo'](_0x2291e3);if(this[_0x32d4d3(0x19c)]=_0x3f0c61,this[_0x32d4d3(0x1a5)]=_0x4aea90,!_0x236e23||!_0x493f7d)return;let _0x314b85=_0x4eb870[_0x32d4d3(0x3ca)](),_0x1b2d6a=(0x0,t[_0x32d4d3(0x260)])(_0x236e23,_0x493f7d,_0x314b85);_0x1b2d6a&&_0x4eb870[_0x32d4d3(0x299)](_0x1b2d6a);let _0x5da039=(0x0,t[_0x32d4d3(0x2cc)])(_0x1b2d6a,_0x314b85);_0x5da039[_0x32d4d3(0x2c1)]!==_0x314b85&&_0x4eb870[_0x32d4d3(0x343)](_0x5da039[_0x32d4d3(0x2c1)]),_0x4eb870[_0x32d4d3(0x1ba)]();for(let [_0xc4855,_0xa48b0]of Object['entries'](_0x5da039[_0x32d4d3(0x3ee)]))_0x4eb870[_0x32d4d3(0x384)](_0xc4855,_0xa48b0);_0x4eb870['updateContext']({'width':_0x5da039[_0x32d4d3(0x474)]['width'],'height':_0x5da039['worldRect'][_0x32d4d3(0x1c6)]}),_0x41f842['transformByState']({'flipX':_0x5da039['worldRect']['flipX'],'flipY':_0x5da039[_0x32d4d3(0x474)]['flipY'],'left':_0x5da039[_0x32d4d3(0x474)][_0x32d4d3(0x1c9)],'top':_0x5da039[_0x32d4d3(0x474)]['top'],'width':_0x5da039[_0x32d4d3(0x474)]['width'],'height':_0x5da039['worldRect'][_0x32d4d3(0x1c6)],'angle':_0x5da039[_0x32d4d3(0x34a)]}),_0x4eb870[_0x32d4d3(0x1d7)]();}['_moveConnectorWithShape'](_0x39c831,_0x19764a,_0x205aa3,_0x1c7ae6,_0x125d33,_0x53b17f,_0xdfce16,_0x571120){const _0x4950cf=_0x2daf50;let _0x353bf0=this[_0x4950cf(0x19c)],_0x1a816f=this['_subUnitId'];this[_0x4950cf(0x19c)]=_0x39c831,this[_0x4950cf(0x1a5)]=_0x19764a;let _0x21a9a3=this['_getConnectPointInfo'](_0x125d33);if(this[_0x4950cf(0x19c)]=_0x353bf0,this['_subUnitId']=_0x1a816f,!_0x21a9a3)return;let {left:_0x10575e=0x0,top:_0x420e63=0x0,width:_0x314201=0x0,height:_0x3d20a6=0x0,flipX:_0x3ef316=!0x1,flipY:_0x2fae17=!0x1}=_0xdfce16['transform'],_0x4864f2=_0x1c7ae6[_0x4950cf(0x2f7)]();if(_0x4864f2[_0x4950cf(0x3ce)]<0x2)return;let _0x5a3c98=new t[(_0x4950cf(0x300))]({'left':_0x10575e,'top':_0x420e63,'width':_0x314201,'height':_0x3d20a6,'flipX':_0x3ef316,'flipY':_0x2fae17}),_0x474c7d=_0x53b17f?_0x4864f2[_0x4864f2[_0x4950cf(0x3ce)]-0x1]:_0x4864f2[0x0],_0xef6c8f=_0x5a3c98['localToWorld'](_0x474c7d),_0x5981d2=t[_0x4950cf(0x300)][_0x4950cf(0x1f7)](_0xef6c8f,_0x21a9a3[_0x4950cf(0x2aa)],!_0x53b17f);_0x571120[_0x4950cf(0x201)]({'flipX':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x3c0)],'flipY':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x380)],'left':_0x5981d2[_0x4950cf(0x474)]['left'],'top':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x286)],'width':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x458)],'height':_0x5981d2['worldRect'][_0x4950cf(0x1c6)],'angle':_0x5981d2['worldRect'][_0x4950cf(0x467)]}),_0x571120[_0x4950cf(0x1c7)](!0x0);}[_0x2daf50(0x1f3)](){const _0x4eec05=_0x2daf50;this[_0x4eec05(0x30f)][_0x4eec05(0x3ce)]!==0x0&&(this['_connectorObjects']['forEach'](_0x490567=>{const _0x541d07=_0x4eec05;_0x490567[_0x541d07(0x428)]();}),this[_0x4eec05(0x30f)]=[]);}[_0x2daf50(0x1f6)](){const _0x2603e5=_0x2daf50;let _0x35aa29=this['_univerInstanceService'][_0x2603e5(0x3f1)](i[_0x2603e5(0x21b)]['UNIVER_SHEET']);this['disposeWithMe'](_0x35aa29[_0x2603e5(0x3c6)]((0x0,l['switchMap'])(_0x2756f8=>_0x2756f8?_0x2756f8['activeSheet$'][_0x2603e5(0x3c6)]((0x0,l['switchMap'])(_0x436f19=>{const _0x48b050=_0x2603e5;if(!_0x436f19)return l[_0x48b050(0x19e)];let _0x321298=_0x2756f8[_0x48b050(0x295)](),_0x4089cb=this['_renderManagerService'][_0x48b050(0x36e)](_0x321298),_0x25d7e7=_0x4089cb==null?void 0x0:_0x4089cb[_0x48b050(0x336)];return _0x25d7e7?(0x0,l['of'])(_0x25d7e7):l['EMPTY'];})):l['EMPTY']))[_0x2603e5(0x2d6)](_0x4e0099=>{const _0x212266=_0x2603e5;let _0x4af48b=_0x4e0099[_0x212266(0x251)]();this[_0x212266(0x1c1)](_0x4e0099[_0x212266(0x3b7)][_0x212266(0x382)](_0x34a8c7=>{const _0x578282=_0x212266;this[_0x578282(0x36f)]&&this[_0x578282(0x46c)]&&this[_0x578282(0x1f3)]();})),this['disposeWithMe'](_0x4af48b[_0x212266(0x1e8)]['subscribe'](_0x14783c=>{const _0x2524e3=_0x212266;let {objects:_0x203e79}=_0x14783c;this['_clearShapeConnectorHandlerObjects'](),_0x203e79!==null&&_0x203e79['size']===0x1&&_0x203e79[_0x2524e3(0x2f6)]()[_0x2524e3(0x235)]()['value']instanceof O&&(this[_0x2524e3(0x36f)]=!0x0);})),this[_0x212266(0x1c1)](_0x4af48b[_0x212266(0x211)][_0x212266(0x2d6)](_0x2c3ba7=>{const _0x5cc41e=_0x212266;this['_isDrawingShapePointDown']&&this[_0x5cc41e(0x1f3)]();})),this[_0x212266(0x1c1)](_0x4e0099[_0x212266(0x3b3)]['subscribeEvent'](()=>{const _0x4a3079=_0x212266;this['_isDrawingShapePointDown']&&(this[_0x4a3079(0x36f)]=!0x1,this[_0x4a3079(0x3fa)]());})),this[_0x212266(0x1c1)](_0x4af48b[_0x212266(0x258)][_0x212266(0x2d6)](()=>{const _0x2dbc83=_0x212266;this[_0x2dbc83(0x19c)]&&this[_0x2dbc83(0x1a5)]&&this[_0x2dbc83(0x46c)]&&this[_0x2dbc83(0x449)][_0x2dbc83(0x39b)]({'unitId':this[_0x2dbc83(0x19c)],'subUnitId':this[_0x2dbc83(0x1a5)],'drawingId':this[_0x2dbc83(0x46c)]})&&(this[_0x2dbc83(0x1f3)](),this[_0x2dbc83(0x3fa)]());}));}));}[_0x2daf50(0x2e6)](){const _0x57c68b=_0x2daf50;this[_0x57c68b(0x1c1)](this[_0x57c68b(0x449)][_0x57c68b(0x271)][_0x57c68b(0x2d6)](_0x284121=>{const _0x4fe52d=_0x57c68b;if(_0x284121['length']===0x1){let _0x566dfa=_0x284121[0x0];if(_0x566dfa[_0x4fe52d(0x3ea)]===i['DrawingTypeEnum'][_0x4fe52d(0x324)]){let _0x2935f9=this[_0x4fe52d(0x453)][_0x4fe52d(0x3c5)](_0x566dfa[_0x4fe52d(0x378)],_0x566dfa[_0x4fe52d(0x1a1)],_0x566dfa[_0x4fe52d(0x34d)]);if(_0x2935f9&&(0x0,t[_0x4fe52d(0x1ce)])(_0x2935f9[_0x4fe52d(0x3ca)]())){this[_0x4fe52d(0x46c)]=_0x566dfa[_0x4fe52d(0x34d)],this['_unitId']=_0x566dfa[_0x4fe52d(0x378)],this['_subUnitId']=_0x566dfa['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x4fe52d(0x3fa)]();return;}}}this[_0x4fe52d(0x46c)]=void 0x0,this[_0x4fe52d(0x19c)]=void 0x0,this[_0x4fe52d(0x1a5)]=void 0x0,this[_0x4fe52d(0x1f3)]();})),this[_0x57c68b(0x1c1)](this[_0x57c68b(0x449)][_0x57c68b(0x225)][_0x57c68b(0x2d6)](_0x31042f=>{const _0x30d37b=_0x57c68b;if(_0x31042f[_0x30d37b(0x3ce)]===0x1){var _0x3a18c6;let _0x21a195=_0x31042f[0x0],_0x26aae9=(_0x3a18c6=this[_0x30d37b(0x449)][_0x30d37b(0x39b)](_0x21a195))==null?void 0x0:_0x3a18c6[_0x30d37b(0x3ea)];_0x26aae9===i[_0x30d37b(0x2bb)][_0x30d37b(0x324)]&&_0x21a195[_0x30d37b(0x34d)]===this[_0x30d37b(0x46c)]?(this[_0x30d37b(0x1f3)](),this[_0x30d37b(0x3fa)]()):!this['_activeShapeId']&&_0x26aae9===i['DrawingTypeEnum'][_0x30d37b(0x324)]&&this[_0x30d37b(0x37f)](_0x21a195[_0x30d37b(0x378)],_0x21a195[_0x30d37b(0x1a1)],_0x21a195['drawingId']);}})),this[_0x57c68b(0x1c1)](this[_0x57c68b(0x449)][_0x57c68b(0x228)][_0x57c68b(0x2d6)](_0x51ebb5=>{const _0x1520f1=_0x57c68b;for(let _0x5e9e4f of _0x51ebb5){let {drawingId:_0x462092}=_0x5e9e4f;if(this['_activeShapeId']===_0x462092){this[_0x1520f1(0x401)]();return;}}}));}[_0x2daf50(0x36a)](_0x4ce8c8,_0x4f89ce,_0x2caa5e,_0x46497d,_0xe6415f){const _0x341356=_0x2daf50;var _0x3fb5c1,_0x1f7afa;if(!this['_activeShapeModel'])return;let _0x5cf0b7=this[_0x341356(0x44e)](_0x4ce8c8);if(!_0x5cf0b7)return;let _0xd9fc3f=this[_0x341356(0x241)]?this[_0x341356(0x241)][_0x341356(0x1d2)]:_0x4f89ce,_0x4aabe5=this[_0x341356(0x241)]?this[_0x341356(0x241)][_0x341356(0x467)]:this[_0x341356(0x237)](_0x5cf0b7[_0x341356(0x2aa)],_0xd9fc3f),_0x61b592;if(this[_0x341356(0x241)]){let _0x30b58b=this[_0x341356(0x449)][_0x341356(0x39b)]({'unitId':this['_currentConnectionTarget'][_0x341356(0x378)],'subUnitId':this[_0x341356(0x241)][_0x341356(0x1a1)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x30b58b!=null&&_0x30b58b[_0x341356(0x1f8)]){let {left:_0x4a7919=0x0,top:_0x339b43=0x0,width:_0x23cbe6=0x0,height:_0x32bd5f=0x0,angle:_0x35fcf5}=_0x30b58b['transform'];_0x61b592=(0x0,t[_0x341356(0x2b0)])({'left':_0x4a7919,'top':_0x339b43,'width':_0x23cbe6,'height':_0x32bd5f},_0x35fcf5||0x0);}else _0x61b592={'left':_0xd9fc3f['x'],'top':_0xd9fc3f['y'],'width':0x0,'height':0x0};}else _0x61b592={'left':_0xd9fc3f['x'],'top':_0xd9fc3f['y'],'width':0x0,'height':0x0};let _0x3b90f6={'point':_0xd9fc3f,'angle':_0x4aabe5,'bounds':_0x61b592},_0x509a77=_0x2caa5e?_0x3b90f6:_0x5cf0b7,_0x16be19=_0x2caa5e?_0x5cf0b7:_0x3b90f6,_0x1e186b=this[_0x341356(0x3d0)]['getShapeType'](),_0x1b19b9=(0x0,t[_0x341356(0x260)])(_0x509a77,_0x16be19,_0x1e186b);_0x1b19b9&&this[_0x341356(0x3d0)][_0x341356(0x299)](_0x1b19b9);let _0x18a9fd=(0x0,t[_0x341356(0x2cc)])(_0x1b19b9,_0x1e186b);_0x18a9fd[_0x341356(0x2c1)]!==_0x1e186b&&this[_0x341356(0x3d0)][_0x341356(0x343)](_0x18a9fd[_0x341356(0x2c1)]);for(let [_0x2d06ad,_0x20f5db]of Object['entries'](_0x18a9fd[_0x341356(0x3ee)]))this[_0x341356(0x3d0)]['setAdjustValueByName'](_0x2d06ad,_0x20f5db);this[_0x341356(0x3d0)]['updateContext']({'width':_0x18a9fd[_0x341356(0x474)][_0x341356(0x458)],'height':_0x18a9fd['worldRect'][_0x341356(0x1c6)]}),_0x46497d[_0x341356(0x201)]({'flipX':_0x18a9fd['worldRect']['flipX'],'flipY':_0x18a9fd[_0x341356(0x474)]['flipY'],'left':_0x18a9fd[_0x341356(0x474)][_0x341356(0x1c9)],'top':_0x18a9fd[_0x341356(0x474)][_0x341356(0x286)],'width':_0x18a9fd[_0x341356(0x474)]['width'],'height':_0x18a9fd[_0x341356(0x474)]['height'],'angle':_0x18a9fd[_0x341356(0x34a)]}),_0x46497d[_0x341356(0x1c7)](!0x0);let _0x27969d=(_0x3fb5c1=(_0x1f7afa=this[_0x341356(0x241)])==null?void 0x0:_0x1f7afa[_0x341356(0x1d2)])==null?_0x4f89ce:_0x3fb5c1;_0xe6415f['transformByState']({'left':_0x27969d['x']-t[_0x341356(0x24f)]['cxnPointRadius'],'top':_0x27969d['y']-t['ShapeDefaultConfig'][_0x341356(0x298)]});}[_0x2daf50(0x1d4)](_0x542f0b,_0x37c779,_0x1e7de3,_0x4eabe0,_0x4f59f1){const _0x5f5bca=_0x2daf50;var _0x24fdf4,_0x8d9ba0,_0x10b6ae,_0x63127f;let _0x10f990=(_0x24fdf4=(_0x8d9ba0=this[_0x5f5bca(0x241)])==null?void 0x0:_0x8d9ba0[_0x5f5bca(0x1d2)])==null?_0x542f0b:_0x24fdf4,_0x81a2d3=t[_0x5f5bca(0x300)][_0x5f5bca(0x1f7)](_0x37c779,_0x10f990,_0x1e7de3);_0x4eabe0[_0x5f5bca(0x201)]({'flipX':_0x81a2d3['worldRect'][_0x5f5bca(0x3c0)],'flipY':_0x81a2d3[_0x5f5bca(0x474)]['flipY'],'left':_0x81a2d3[_0x5f5bca(0x474)][_0x5f5bca(0x1c9)],'top':_0x81a2d3[_0x5f5bca(0x474)][_0x5f5bca(0x286)],'width':_0x81a2d3[_0x5f5bca(0x474)][_0x5f5bca(0x458)],'height':_0x81a2d3['worldRect']['height'],'angle':_0x81a2d3[_0x5f5bca(0x474)]['angle']});let _0x7466a2=(_0x10b6ae=(_0x63127f=this[_0x5f5bca(0x241)])==null?void 0x0:_0x63127f[_0x5f5bca(0x1d2)])==null?_0x542f0b:_0x10b6ae;_0x4f59f1[_0x5f5bca(0x201)]({'left':_0x7466a2['x']-t[_0x5f5bca(0x24f)][_0x5f5bca(0x298)],'top':_0x7466a2['y']-t[_0x5f5bca(0x24f)]['cxnPointRadius']});}[_0x2daf50(0x44e)](_0xe5731){const _0x3360e0=_0x2daf50;if(!this[_0x3360e0(0x19c)]||!this[_0x3360e0(0x1a5)])return null;let {shapeId:_0x48862c,cxnIndex:_0x3ae2f9}=_0xe5731,_0x24c7ba=this['_sheetsShapeService'][_0x3360e0(0x3c5)](this[_0x3360e0(0x19c)],this[_0x3360e0(0x1a5)],_0x48862c);if(!_0x24c7ba)return null;let _0x5aadcd=this['_drawingManagerService'][_0x3360e0(0x39b)]({'unitId':this['_unitId'],'subUnitId':this[_0x3360e0(0x1a5)],'drawingId':_0x48862c});if(!(_0x5aadcd!=null&&_0x5aadcd['transform']))return null;let {left:_0x187d03=0x0,top:_0x4332e6=0x0,width:_0x47c673=0x0,height:_0x51a7d9=0x0,flipX:_0x2f16ed=!0x1,flipY:_0x4fbc8d=!0x1,angle:_0x47cb14}=_0x5aadcd[_0x3360e0(0x1f8)];_0x24c7ba[_0x3360e0(0x3a0)]({'width':_0x47c673,'height':_0x51a7d9});let _0x1ae3f0=_0x24c7ba[_0x3360e0(0x2d3)]()[_0x3360e0(0x2db)](_0x43ecb7=>_0x43ecb7['index']===_0x3ae2f9);if(!_0x1ae3f0)return null;let _0x209e9e=_0x2f16ed?_0x47c673-_0x1ae3f0['x']:_0x1ae3f0['x'],_0x38ef26=_0x4fbc8d?_0x51a7d9-_0x1ae3f0['y']:_0x1ae3f0['y'];if(_0x47cb14!==0x0&&_0x47cb14!=null){let _0xd02c9=_0x47cb14*Math['PI']/0xb4,_0xfbd72f=Math[_0x3360e0(0x2e0)](_0xd02c9),_0x54d692=Math[_0x3360e0(0x27c)](_0xd02c9),_0x3890dc=_0x47c673/0x2,_0xef78ae=_0x51a7d9/0x2,_0x189925=_0x209e9e-_0x3890dc,_0x135e5b=_0x38ef26-_0xef78ae;_0x209e9e=_0x3890dc+_0x189925*_0xfbd72f-_0x135e5b*_0x54d692,_0x38ef26=_0xef78ae+_0x189925*_0x54d692+_0x135e5b*_0xfbd72f;}_0x209e9e+=_0x187d03,_0x38ef26+=_0x4332e6;let _0xa54342=_0x1ae3f0['ang']/0xea60;_0x2f16ed&&(_0xa54342=0xb4-_0xa54342),_0x4fbc8d&&(_0xa54342=-_0xa54342),_0xa54342+=_0x47cb14||0x0,_0xa54342=(_0xa54342%0x168+0x168)%0x168;let _0x4dec21=(0x0,t['getBasicShapeRotateBound'])({'left':_0x187d03,'top':_0x4332e6,'width':_0x47c673,'height':_0x51a7d9},_0x47cb14||0x0);return{'point':{'x':_0x209e9e,'y':_0x38ef26},'angle':_0xa54342,'bounds':_0x4dec21};}['_calculateFreeEndpointAngle'](_0x316e4f,_0x2937d4){const _0x306ae8=_0x2daf50;let _0x178b7a=_0x2937d4['x']-_0x316e4f['x'],_0x32f328=_0x2937d4['y']-_0x316e4f['y'];return Math[_0x306ae8(0x19d)](_0x178b7a)>=Math['abs'](_0x32f328)?_0x178b7a>=0x0?0xb4:0x0:_0x32f328>=0x0?0x10e:0x5a;}[_0x2daf50(0x401)](){const _0x72887b=_0x2daf50;this[_0x72887b(0x46c)]=void 0x0,this[_0x72887b(0x19c)]=void 0x0,this[_0x72887b(0x1a5)]=void 0x0,this[_0x72887b(0x1f3)]();}[_0x2daf50(0x428)](){const _0x2b75c2=_0x2daf50;this['_clearShapeConnectorHandlerObjects'](),super[_0x2b75c2(0x428)]();}};ke=j([A(0x1,i['ICommandService']),A(0x2,s['IRenderManagerService']),A(0x3,o['IDrawingManagerService']),A(0x4,i[_0x2daf50(0x439)]),A(0x5,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x6,(0x0,i[_0x2daf50(0x1bb)])(N)),A(0x7,(0x0,i[_0x2daf50(0x1bb)])(J))],ke);let X=class extends i[_0x2daf50(0x2f9)]{constructor(_0x4dd798,_0x57ab85,_0x340193){const _0x1a8ab8=_0x2daf50;super(),this['_sheetPrintInterceptorService']=_0x4dd798,this[_0x1a8ab8(0x449)]=_0x57ab85,this[_0x1a8ab8(0x1ed)]=_0x340193,this[_0x1a8ab8(0x276)]();}[_0x2daf50(0x276)](){const _0x5d8569=_0x2daf50;this[_0x5d8569(0x1c1)](this[_0x5d8569(0x2ff)]['interceptor'][_0x5d8569(0x2d4)](this[_0x5d8569(0x2ff)][_0x5d8569(0x39a)][_0x5d8569(0x213)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2adc83,_0x68b4e8,_0x3be80a)=>{const _0x430057=_0x5d8569;var _0x76631c;let {unitId:_0x2f3aa1,subUnitId:_0x59e472,scene:_0x4297a1,resourceCollector:_0x22db78}=_0x68b4e8,_0x48ea5e=(_0x76631c=this[_0x430057(0x449)][_0x430057(0x28c)](_0x2f3aa1))==null?void 0x0:_0x76631c[_0x59e472];return _0x48ea5e==null||_0x48ea5e[_0x430057(0x3f8)]['forEach'](_0x505e9a=>{const _0x253fa2=_0x430057;let _0x5a9fe9=_0x48ea5e[_0x253fa2(0x44c)][_0x505e9a];_0x5a9fe9[_0x253fa2(0x3ea)]===i[_0x253fa2(0x2bb)][_0x253fa2(0x324)]&&!_0x5a9fe9['hidden']&&this['_shapeRenderController'][_0x253fa2(0x246)](_0x5a9fe9,_0x4297a1,{'resourceCollector':_0x22db78});}),_0x3be80a(_0x2adc83);}}));}};function _0x4b78(_0x569d07,_0x1b61b2){_0x569d07=_0x569d07-0x19c;const _0xa75668=_0xa756();let _0x4b78e6=_0xa75668[_0x569d07];return _0x4b78e6;}X=j([A(0x0,(0x0,i[_0x2daf50(0x1bb)])(c['SheetPrintInterceptorService'])),A(0x1,o[_0x2daf50(0x3a9)]),A(0x2,(0x0,i['Inject'])(M))],X);let Z=class extends i[_0x2daf50(0x2f9)]{constructor(_0x4a94d4,_0x5af349,_0x4fa63f){const _0x567215=_0x2daf50;super(),this['_commandService']=_0x4a94d4,this[_0x567215(0x464)]=_0x5af349,this[_0x567215(0x1fd)]=_0x4fa63f,this[_0x567215(0x349)]();}['_initPermission'](){const _0x18c0b6=_0x2daf50;this[_0x18c0b6(0x1c1)](this['_commandService'][_0x18c0b6(0x2ae)](_0x3c0b7b=>{const _0x2f52e3=_0x18c0b6;let _0x5a68d9,_0xd57e52;if(_0x3c0b7b['id']===r['InsertShapeCommand']['id']||_0x3c0b7b['id']===r['SetShapeDrawingDataCommand']['id']||_0x3c0b7b['id']===r[_0x2f52e3(0x28d)]['id']){let _0x5147e0=_0x3c0b7b[_0x2f52e3(0x3e9)];_0x5a68d9=_0x5147e0['unitId'],_0xd57e52=_0x5147e0[_0x2f52e3(0x1a1)];}!_0x5a68d9||!_0xd57e52||this[_0x2f52e3(0x1fd)][_0x2f52e3(0x308)]({'workbookTypes':[a[_0x2f52e3(0x208)]],'worksheetTypes':[a[_0x2f52e3(0x3c3)]]},_0x5a68d9,_0xd57e52)||this[_0x2f52e3(0x1fd)][_0x2f52e3(0x3d4)](this[_0x2f52e3(0x464)]['t'](_0x2f52e3(0x331)));}));}};Z=j([A(0x0,(0x0,i['Inject'])(i[_0x2daf50(0x1b8)])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(i['LocaleService'])),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(a[_0x2daf50(0x403)]))],Z);let Q=class extends i[_0x2daf50(0x2f9)]{constructor(_0x52e580,_0x1b7651,_0x318874,_0x47b3e4,_0x2c913d,_0x254227,_0x4fa164,_0x34c613,_0x57d509,_0x28be2f,_0x5e765f){const _0x5d03c1=_0x2daf50;super(),this[_0x5d03c1(0x1aa)]=_0x52e580,this[_0x5d03c1(0x33f)]=_0x1b7651,this[_0x5d03c1(0x32b)]=_0x318874,this[_0x5d03c1(0x453)]=_0x47b3e4,this[_0x5d03c1(0x464)]=_0x2c913d,this[_0x5d03c1(0x19f)]=_0x254227,this['_drawingManagerService']=_0x4fa164,this[_0x5d03c1(0x47f)]=_0x34c613,this['_contextService']=_0x57d509,this['_renderManagerService']=_0x28be2f,this['_shapeTextEditingService']=_0x5e765f,E(this,'_sidebarDisposable',null),E(this,_0x5d03c1(0x275),null),E(this,_0x5d03c1(0x311),!0x1),E(this,_0x5d03c1(0x347),0x0),E(this,_0x5d03c1(0x1ff),new Set()),E(this,_0x5d03c1(0x1e5),[]),this[_0x5d03c1(0x293)](),this['disposeWithMe'](this[_0x5d03c1(0x1aa)][_0x5d03c1(0x3f1)](i[_0x5d03c1(0x21b)][_0x5d03c1(0x447)])[_0x5d03c1(0x2d6)](_0x1ff037=>{const _0x4cc86c=_0x5d03c1;if(!_0x1ff037){var _0x2165ed;(_0x2165ed=this[_0x4cc86c(0x44a)])==null||_0x2165ed['dispose']();return;}this['_createShapePopupMenu'](_0x1ff037);})),this[_0x5d03c1(0x1b6)](),this[_0x5d03c1(0x482)](),this['initShapePopupMenu'](),this['disposeWithMe'](this[_0x5d03c1(0x320)]['editingParams$']['subscribe'](_0x4f1147=>{_0x4f1147&&this['_clearPopups']();}));}[_0x2daf50(0x293)](){const _0x596bc0=_0x2daf50;this[_0x596bc0(0x32b)]['mergeMenu'](de);}['_registerShapeMenu'](){const _0x7a35a6=_0x2daf50;this[_0x7a35a6(0x47f)][_0x7a35a6(0x248)](i[_0x7a35a6(0x2bb)][_0x7a35a6(0x324)],this[_0x7a35a6(0x259)]['bind'](this)),this[_0x7a35a6(0x47f)][_0x7a35a6(0x342)](i[_0x7a35a6(0x2bb)][_0x7a35a6(0x324)],0x6,0x4);}[_0x2daf50(0x3ac)](){const _0x42a7e5=_0x2daf50;this[_0x42a7e5(0x1aa)]['getAllUnitsForType'](i[_0x42a7e5(0x21b)][_0x42a7e5(0x447)])['forEach'](_0x151704=>this['_createShapePopupMenu'](_0x151704));}[_0x2daf50(0x259)](_0x6e9f28,_0x2e350c,_0x2d65a4,_0x3f029c){const _0x21ab46=_0x2daf50;return[{'label':'sheets-shape-ui.openPanel','index':0x0,'commandId':V['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'drawingId':_0x2d65a4},'disable':_0x3f029c===i['DrawingTypeEnum'][_0x21ab46(0x2e8)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':h[_0x21ab46(0x2b7)]['id'],'commandParams':{'unitId':_0x6e9f28,'drawings':[{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'drawingId':_0x2d65a4,'drawingType':_0x3f029c}]},'disable':!0x1},{'label':_0x21ab46(0x2ec),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'drawingId':_0x2d65a4},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':r[_0x21ab46(0x24b)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipV','index':0x4,'commandId':r[_0x21ab46(0x24b)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'flipV':!0x0},'disable':!0x1},{'label':_0x21ab46(0x455),'index':0x4,'commandId':r[_0x21ab46(0x1a4)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'rotate':0x5a},'disable':!0x1},{'label':_0x21ab46(0x203),'index':0x4,'commandId':r[_0x21ab46(0x1a4)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'rotate':-0x5a},'disable':!0x1},{'label':_0x21ab46(0x33b),'index':0x4,'commandId':r[_0x21ab46(0x3c9)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4},'disable':!0x1}];}['_getShapeInfo'](_0x438033,_0x28c1c2,_0x1d080f){const _0x33ac0e=_0x2daf50;let _0x38534f=this[_0x33ac0e(0x453)]['getShapeTypeById'](_0x438033,_0x28c1c2,_0x1d080f),_0x252d80=this[_0x33ac0e(0x453)][_0x33ac0e(0x2e7)](_0x438033,_0x28c1c2,_0x1d080f);return _0x38534f!==void 0x0&&_0x252d80!==void 0x0?{'shapeData':_0x252d80,'shapeId':_0x1d080f,'shapeType':_0x38534f,'unitId':_0x438033,'subUnitId':_0x28c1c2,'version':this[_0x33ac0e(0x347)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0xba8c47){const _0xd5e9ed=_0x2daf50;if(!_0xba8c47)return;let _0x2a9084=_0xba8c47[_0xd5e9ed(0x295)]();this[_0xd5e9ed(0x3fc)][_0xd5e9ed(0x35d)](_0x2a9084)&&!this[_0xd5e9ed(0x1ff)][_0xd5e9ed(0x35d)](_0x2a9084)&&(this[_0xd5e9ed(0x1b3)](_0x2a9084),this[_0xd5e9ed(0x1ff)]['add'](_0x2a9084));}['_clearPopups'](){const _0x3a5991=_0x2daf50;this[_0x3a5991(0x1e5)][_0x3a5991(0x279)](_0x4375f8=>_0x4375f8[_0x3a5991(0x428)]()),this['_disposePopups'][_0x3a5991(0x3ce)]=0x0;}[_0x2daf50(0x1b3)](_0x1d77b3){const _0x48f9ca=_0x2daf50;var _0x41d79a;let _0x455393=(_0x41d79a=this[_0x48f9ca(0x3fc)][_0x48f9ca(0x36e)](_0x1d77b3))==null?void 0x0:_0x41d79a['scene'],_0x65eac6=_0x455393==null?void 0x0:_0x455393['getTransformerByCreate']();!_0x455393||!_0x65eac6||(this['disposeWithMe'](_0x65eac6['createControl$'][_0x48f9ca(0x2d6)](()=>{const _0x28f898=_0x48f9ca;let _0x37212c=_0x65eac6[_0x28f898(0x45e)]();if(this['_clearPopups'](),this[_0x28f898(0x311)]||_0x37212c[_0x28f898(0x31c)]>0x1)return;let _0x4e57cd=_0x37212c[_0x28f898(0x2f6)]()[_0x28f898(0x235)]()[_0x28f898(0x2ef)];if(!_0x4e57cd)return;let _0x23421f=this['_drawingManagerService'][_0x28f898(0x3db)](_0x4e57cd[_0x28f898(0x2b9)]);if(!_0x23421f||_0x23421f[_0x28f898(0x3ea)]!==i['DrawingTypeEnum'][_0x28f898(0x324)])return;let {unitId:_0x42f85c,subUnitId:_0x4a709f,drawingId:_0xd1ce32,drawingType:_0x5c720c}=_0x23421f,_0x2d999f=this[_0x28f898(0x2ad)](_0x42f85c,_0x4a709f,_0xd1ce32);if(!_0x2d999f)return;this['_contextService'][_0x28f898(0x340)](i[_0x28f898(0x47c)],!0x0);let _0x4422df=this[_0x28f898(0x47f)]['attachPopupToObject'](_0x4e57cd,{'componentKey':R,'direction':_0x28f898(0x20a),'offset':[0x0,n['SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET']],'extraProps':{'unitId':_0x42f85c,'subUnitId':_0x4a709f,'drawingId':_0xd1ce32,'drawingType':_0x5c720c,'shapeType':_0x2d999f[_0x28f898(0x479)],'shapeData':_0x2d999f[_0x28f898(0x285)]}});this[_0x28f898(0x1e5)][_0x28f898(0x1d8)](this[_0x28f898(0x1c1)](_0x4422df)),this['_drawingManagerService']['getFocusDrawings']()['find'](_0x415201=>_0x415201[_0x28f898(0x378)]===_0x42f85c&&_0x415201['subUnitId']===_0x4a709f&&_0x415201[_0x28f898(0x34d)]===_0xd1ce32)||this['_drawingManagerService'][_0x28f898(0x375)]([{'unitId':_0x42f85c,'subUnitId':_0x4a709f,'drawingId':_0xd1ce32}]);})),this[_0x48f9ca(0x1c1)](_0x65eac6[_0x48f9ca(0x1e0)][_0x48f9ca(0x2d6)](()=>{const _0x1839c5=_0x48f9ca;this[_0x1839c5(0x416)](),this[_0x1839c5(0x2a1)][_0x1839c5(0x340)](i[_0x1839c5(0x47c)],!0x1),this[_0x1839c5(0x449)][_0x1839c5(0x375)](null);})),this[_0x48f9ca(0x1c1)](_0x65eac6[_0x48f9ca(0x211)]['subscribe'](()=>{this['_clearPopups']();})),this[_0x48f9ca(0x1c1)](_0x65eac6[_0x48f9ca(0x1e8)][_0x48f9ca(0x2d6)](()=>{const _0x5f0d18=_0x48f9ca;this[_0x5f0d18(0x416)]();})));}[_0x2daf50(0x1b6)](){const _0x353116=_0x2daf50;this[_0x353116(0x1c1)](this[_0x353116(0x19f)][_0x353116(0x20b)](_0x369029=>{const _0x19f85e=_0x353116;if(_0x369029['id']===V['id']){let {unitId:_0x5998b0,subUnitId:_0x3378a3,drawingId:_0x5329f4}=_0x369029[_0x19f85e(0x3e9)];this['_shapeEditPanelVersion']+=0x1,this[_0x19f85e(0x275)]=this[_0x19f85e(0x2ad)](_0x5998b0,_0x3378a3,_0x5329f4),this[_0x19f85e(0x416)](),this[_0x19f85e(0x232)]();}if(_0x369029['id']===B['id']&&(this[_0x19f85e(0x275)]=null,this[_0x19f85e(0x2f2)]()),_0x369029['id']===r['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x4a65c1,subUnitId:_0x6c6db6,shapeId:_0x2890b6}=_0x369029[_0x19f85e(0x3e9)];if(this[_0x19f85e(0x275)]&&this[_0x19f85e(0x275)][_0x19f85e(0x1b5)]===_0x2890b6){let _0x448de9=this['_getShapeInfo'](_0x4a65c1,_0x6c6db6,_0x2890b6);_0x448de9&&(this[_0x19f85e(0x347)]+=0x1,_0x448de9[_0x19f85e(0x309)]=this['_shapeEditPanelVersion'],this[_0x19f85e(0x275)]=_0x448de9,this[_0x19f85e(0x311)]&&this[_0x19f85e(0x232)]());}}})),this[_0x353116(0x1c1)](this[_0x353116(0x449)][_0x353116(0x271)][_0x353116(0x2d6)](_0x2219af=>{const _0x43574c=_0x353116;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x2219af[_0x43574c(0x3ce)]===0x0){this[_0x43574c(0x275)]=null,this['_closeShapeEditPanel']();return;}if(_0x2219af[_0x43574c(0x3ce)]===0x1&&_0x2219af[0x0][_0x43574c(0x3ea)]===i[_0x43574c(0x2bb)][_0x43574c(0x324)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x43574c(0x2ad)](_0x2219af[0x0]['unitId'],_0x2219af[0x0][_0x43574c(0x1a1)],_0x2219af[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x43574c(0x232)]();return;}let _0x2c0272=_0x2219af[_0x43574c(0x1df)](_0x41cb3d=>_0x41cb3d['drawingType']===i['DrawingTypeEnum'][_0x43574c(0x324)]);if(_0x2219af[_0x43574c(0x3ce)]>0x1&&_0x2c0272[_0x43574c(0x3ce)]===_0x2219af[_0x43574c(0x3ce)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x43574c(0x275)]=this[_0x43574c(0x2ad)](_0x2219af[0x0][_0x43574c(0x378)],_0x2219af[0x0][_0x43574c(0x1a1)],_0x2219af[0x0][_0x43574c(0x34d)]),this['_activeShapeInfo']){this[_0x43574c(0x232)]();return;}}else{if(this[_0x43574c(0x347)]+=0x1,this[_0x43574c(0x275)]=this[_0x43574c(0x2ad)](_0x2219af[0x0][_0x43574c(0x378)],_0x2219af[0x0][_0x43574c(0x1a1)],_0x2219af[0x0]['drawingId']),this[_0x43574c(0x275)]){this['_activeShapeInfo'][_0x43574c(0x404)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x2daf50(0x232)](){const _0x325665=_0x2daf50;this[_0x325665(0x275)]&&(this[_0x325665(0x44a)]=this['_sidebarService'][_0x325665(0x3d6)]({'id':I,'header':{'title':this[_0x325665(0x464)]['t'](_0x325665(0x3a3))},'width':0x184,'children':{'label':I,...this[_0x325665(0x275)]},'onClose':()=>{const _0x23c4a1=_0x325665;this[_0x23c4a1(0x449)][_0x23c4a1(0x375)](null),this[_0x23c4a1(0x2a1)][_0x23c4a1(0x340)](i[_0x23c4a1(0x47c)],!0x1),this[_0x23c4a1(0x44a)]=null;}}),this[_0x325665(0x311)]=!0x0);}[_0x2daf50(0x2f2)](){const _0x33f433=_0x2daf50;this[_0x33f433(0x311)]=!0x1,this[_0x33f433(0x33f)][_0x33f433(0x478)](I),this[_0x33f433(0x44a)]=null,this['_contextService'][_0x33f433(0x340)](i[_0x33f433(0x47c)],!0x1),this[_0x33f433(0x449)]['focusDrawing'](null);}};Q=j([A(0x0,i[_0x2daf50(0x439)]),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(e[_0x2daf50(0x3ff)])),A(0x2,e[_0x2daf50(0x45c)]),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(i[_0x2daf50(0x2df)])),A(0x5,i[_0x2daf50(0x1b8)]),A(0x6,o[_0x2daf50(0x3a9)]),A(0x7,(0x0,i[_0x2daf50(0x1bb)])(c[_0x2daf50(0x28b)])),A(0x8,i['IContextService']),A(0x9,s['IRenderManagerService']),A(0xa,(0x0,i['Inject'])(U))],Q);let $=class extends i[_0x2daf50(0x2a5)]{constructor(_0x4552a2=me,_0x33e3e8,_0x1f0fff,_0x261480,_0x496a0d){const _0x189dab=_0x2daf50;super(),this[_0x189dab(0x249)]=_0x4552a2,this['_injector']=_0x33e3e8,this['_commandService']=_0x1f0fff,this[_0x189dab(0x399)]=_0x261480,this[_0x189dab(0x3fc)]=_0x496a0d;let {..._0x501da1}=(0x0,i[_0x189dab(0x3df)])({},me,this['_config']);this[_0x189dab(0x399)][_0x189dab(0x43a)](_0x189dab(0x35f),_0x501da1),this['_initCommands']();}['onRendered'](){const _0x41cdee=_0x2daf50;(0x0,i['touchDependencies'])(this[_0x41cdee(0x430)],[[Q],[q],[M],[X]]);}[_0x2daf50(0x2c4)](){const _0x207426=_0x2daf50;this['_injector']['get'](Q)[_0x207426(0x3ac)]();}[_0x2daf50(0x398)](){const _0x4e3a65=_0x2daf50;[[J],[N],[Y]][_0x4e3a65(0x279)](_0x278bfd=>this[_0x4e3a65(0x430)][_0x4e3a65(0x224)](_0x278bfd)),(0x0,i['touchDependencies'])(this['_injector'],[[Y],[N]]),this[_0x4e3a65(0x3fc)][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)]['UNIVER_SHEET'],[J]),this[_0x4e3a65(0x3fc)][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)][_0x4e3a65(0x447)],[G]),this[_0x4e3a65(0x3fc)][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)][_0x4e3a65(0x447)],[ke]),this['_renderManagerService'][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)][_0x4e3a65(0x447)],[we]),this[_0x4e3a65(0x3fc)]['registerRenderModule'](i[_0x4e3a65(0x21b)][_0x4e3a65(0x362)],[Te]);}['onStarting'](){const _0xd1ffed=_0x2daf50;this[_0xd1ffed(0x430)][_0xd1ffed(0x224)]([W]),this[_0xd1ffed(0x430)][_0xd1ffed(0x423)](W);let _0x4921ab=this['_injector'];[[Q],[q],[M],[X],[H],[U],[K],[z],[Z]][_0xd1ffed(0x279)](_0x299873=>_0x4921ab[_0xd1ffed(0x224)](_0x299873)),(0x0,i[_0xd1ffed(0x451)])(this[_0xd1ffed(0x430)],[[Q],[q],[M],[H],[U],[K],[z],[Z]]);}['_initCommands'](){const _0x24607f=_0x2daf50;[F,b,B,V,ne,P]['forEach'](_0x475aba=>this['disposeWithMe'](this[_0x24607f(0x19f)][_0x24607f(0x1eb)](_0x475aba)));}};E($,_0x2daf50(0x3e6),i['UniverInstanceType'][_0x2daf50(0x447)]),E($,_0x2daf50(0x341),_0x2daf50(0x434)),E($,_0x2daf50(0x1c3),fe),E($,'version',pe),$=j([(0x0,i[_0x2daf50(0x365)])(f['UniverLicensePlugin'],n[_0x2daf50(0x1a6)],p[_0x2daf50(0x29d)],r[_0x2daf50(0x2b5)]),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(i['Injector'])),A(0x2,i[_0x2daf50(0x1b8)]),A(0x3,i['IConfigService']),A(0x4,s[_0x2daf50(0x282)])],$),exports[_0x2daf50(0x2a6)]=de,Object[_0x2daf50(0x34c)](exports,_0x2daf50(0x23f),{'enumerable':!0x0,'get':function(){return $;}});
|