@univerjs-pro/sheets-shape 1.3.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/controllers/sheets-shape.controller.d.ts +4 -1
- package/lib/types/models/shape-manager.d.ts +1 -0
- package/lib/types/services/sheet-shape-services.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Package Overview
|
|
10
10
|
|
|
11
|
-
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
-
| --- | --- | :---: | :---: | :---: |
|
|
13
|
-
| `@univerjs-pro/sheets-shape` | `UniverProSheetsShape` | No | No | Yes |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs-pro/sheets-shape` | `UniverProSheetsShape` | No | No | Yes | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs-pro/sheets-shape
|
|
|
20
20
|
npm install @univerjs-pro/sheets-shape
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
25
|
+
Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import { UniverSheetsShapePlugin } from '@univerjs-pro/sheets-shape';
|
|
29
29
|
|
|
@@ -32,10 +32,10 @@ univer.registerPlugin(UniverSheetsShapePlugin);
|
|
|
32
32
|
|
|
33
33
|
## Integration Notes
|
|
34
34
|
|
|
35
|
-
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
36
35
|
- Use the facade entry when integrating through Univer Facade APIs.
|
|
37
36
|
|
|
38
37
|
## Resources
|
|
39
38
|
|
|
40
|
-
- [Documentation](https://docs.univer.ai
|
|
39
|
+
- [Documentation](https://docs.univer.ai)
|
|
41
40
|
- [NPM package](https://npmjs.com/package/@univerjs-pro/sheets-shape)
|
|
41
|
+
- [GitHub repository](https://github.com/dream-num/univer-pro)
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xaf28(){const _0x435dde=['extend','getDrawingByParam','width','unitId','67508pdWPim','Module','UNIVER_SHEET','warn','IShapeHostAdapterRegistry','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','_commandService','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','FWorksheet','215515ZSTEVj','createInstance','setPosition','toStringTag','Position','insertShape','createShape','height','SetSheetDrawingPlacementCommand','subUnitId','defineProperty','30Pjvnav','_createShapeHandle','14675958SeFGnE','295ijjbhl','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','30YcAafb','decorate','1659976POOnLt','getOwnPropertyDescriptor','getWorkbook','syncExecuteCommand','UniverInstanceType','get','_injector','getSheetDrawingPlacement','\x22\x20was\x20not\x20found.','object','SheetDrawingAnchorType','getShape','isConnectorShape','length','256249uBILta','FShape','3647534yprNKm','131112ZLipcq','_sheetDrawingService','shapeId','_getShapeAdapter','getPlacement','208ajktRq','shapeType','_shapeRef','_getShapeScope','getSheetId'];_0xaf28=function(){return _0x435dde;};return _0xaf28();}const _0x753fe=_0x2c3c;(function(_0x3efa40,_0x954760){const _0x245b72=_0x2c3c,_0x288818=_0x3efa40();while(!![]){try{const _0x54c571=parseInt(_0x245b72(0x1a2))/0x1+parseInt(_0x245b72(0x17a))/0x2+-parseInt(_0x245b72(0x1ad))/0x3*(-parseInt(_0x245b72(0x199))/0x4)+parseInt(_0x245b72(0x175))/0x5*(parseInt(_0x245b72(0x18b))/0x6)+parseInt(_0x245b72(0x188))/0x7*(parseInt(_0x245b72(0x190))/0x8)+-parseInt(_0x245b72(0x174))/0x9+-parseInt(_0x245b72(0x178))/0xa*(parseInt(_0x245b72(0x18a))/0xb);if(_0x54c571===_0x954760)break;else _0x288818['push'](_0x288818['shift']());}catch(_0x1ad7ee){_0x288818['push'](_0x288818['shift']());}}}(_0xaf28,0xca9b7),Object[_0x753fe(0x1ac)](exports,Symbol[_0x753fe(0x1a5)],{'value':_0x753fe(0x19a)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/engine-shape/facade'),n=require('@univerjs/core'),r=require('@univerjs/sheets/facade'),i=require('@univerjs/sheets-drawing');function _0x2c3c(_0x4e974b,_0x417426){_0x4e974b=_0x4e974b-0x173;const _0xaf2826=_0xaf28();let _0x2c3cf7=_0xaf2826[_0x4e974b];return _0x2c3cf7;}function a(_0x2b117b,_0x21e5d6){return function(_0x2b51de,_0x3714b3){_0x21e5d6(_0x2b51de,_0x3714b3,_0x2b117b);};}function o(_0x21c09a,_0x4d80f,_0x5b9c8e,_0x140a03){const _0x4c1072=_0x753fe;var _0x17ac04=arguments[_0x4c1072(0x187)],_0xa5de7f=_0x17ac04<0x3?_0x4d80f:_0x140a03===null?_0x140a03=Object[_0x4c1072(0x17b)](_0x4d80f,_0x5b9c8e):_0x140a03,_0x1b902;if(typeof Reflect==_0x4c1072(0x183)&&typeof Reflect[_0x4c1072(0x179)]=='function')_0xa5de7f=Reflect['decorate'](_0x21c09a,_0x4d80f,_0x5b9c8e,_0x140a03);else{for(var _0x24b251=_0x21c09a[_0x4c1072(0x187)]-0x1;_0x24b251>=0x0;_0x24b251--)(_0x1b902=_0x21c09a[_0x24b251])&&(_0xa5de7f=(_0x17ac04<0x3?_0x1b902(_0xa5de7f):_0x17ac04>0x3?_0x1b902(_0x4d80f,_0x5b9c8e,_0xa5de7f):_0x1b902(_0x4d80f,_0x5b9c8e))||_0xa5de7f);}return _0x17ac04>0x3&&_0xa5de7f&&Object[_0x4c1072(0x1ac)](_0x4d80f,_0x5b9c8e,_0xa5de7f),_0xa5de7f;}let s=class extends t[_0x753fe(0x189)]{constructor(_0x561db2,_0x298dd2,_0x16ecfe,_0x31e79b,_0x25d25c){const _0x22c673=_0x753fe;super(_0x561db2,_0x298dd2,_0x16ecfe,_0x31e79b),this[_0x22c673(0x18c)]=_0x25d25c;}[_0x753fe(0x18f)](){const _0x40ffc8=_0x753fe;let _0x5b1c0c=this['_sheetDrawingService'][_0x40ffc8(0x196)]({'unitId':this[_0x40ffc8(0x192)][_0x40ffc8(0x198)],'subUnitId':this[_0x40ffc8(0x192)][_0x40ffc8(0x1ab)],'drawingId':this[_0x40ffc8(0x192)][_0x40ffc8(0x18d)]});return _0x5b1c0c?(0x0,i[_0x40ffc8(0x181)])(_0x5b1c0c):null;}['setPlacement'](_0xc8bf6){const _0xec5ab2=_0x753fe;return this[_0xec5ab2(0x19f)][_0xec5ab2(0x17d)](i['SetSheetDrawingPlacementCommand']['id'],{'unitId':this['_shapeRef'][_0xec5ab2(0x198)],'subUnitId':this['_shapeRef'][_0xec5ab2(0x1ab)],'drawings':[{'drawingId':this[_0xec5ab2(0x192)]['shapeId'],'placement':_0xc8bf6}]});}[_0x753fe(0x1a4)](_0x390b78,_0x2e9ae7,_0x13a842,_0x6d59b5){const _0x2ea4ca=_0x753fe;var _0x366f4b,_0x3e8bc9;let _0x1f9dc7=this[_0x2ea4ca(0x18c)][_0x2ea4ca(0x196)]({'unitId':this[_0x2ea4ca(0x192)][_0x2ea4ca(0x198)],'subUnitId':this[_0x2ea4ca(0x192)][_0x2ea4ca(0x1ab)],'drawingId':this[_0x2ea4ca(0x192)][_0x2ea4ca(0x18d)]});if(!_0x1f9dc7)return console[_0x2ea4ca(0x19c)](_0x2ea4ca(0x19e)+this[_0x2ea4ca(0x192)][_0x2ea4ca(0x18d)]+_0x2ea4ca(0x182)),this;let _0x18947f=(_0x366f4b=_0x1f9dc7['transform'])==null?void 0x0:_0x366f4b[_0x2ea4ca(0x197)],_0x3329a9=(_0x3e8bc9=_0x1f9dc7['transform'])==null?void 0x0:_0x3e8bc9[_0x2ea4ca(0x1a9)];return _0x18947f==null||_0x3329a9==null?(console[_0x2ea4ca(0x19c)](_0x2ea4ca(0x19e)+this[_0x2ea4ca(0x192)][_0x2ea4ca(0x18d)]+'\x22\x20has\x20no\x20transform\x20extent.'),this):(this['_commandService'][_0x2ea4ca(0x17d)](i[_0x2ea4ca(0x1aa)]['id'],{'unitId':this[_0x2ea4ca(0x192)]['unitId'],'subUnitId':this[_0x2ea4ca(0x192)][_0x2ea4ca(0x1ab)],'drawings':[{'drawingId':this[_0x2ea4ca(0x192)]['shapeId'],'placement':{'kind':i[_0x2ea4ca(0x184)][_0x2ea4ca(0x1a6)],'from':{'row':_0x390b78,'column':_0x2e9ae7,'rowOffset':_0x13a842,'columnOffset':_0x6d59b5},'width':_0x18947f,'height':_0x3329a9}}]}),this);}};s=o([a(0x2,e['IShapeHostAdapterRegistry']),a(0x3,n['ICommandService']),a(0x4,i['ISheetDrawingService'])],s);var c=class extends r['FWorksheet']{[_0x753fe(0x1a7)](_0x262f2c){const _0x3bc81b=_0x753fe;let _0x346d2c=this[_0x3bc81b(0x18e)]();if(!_0x346d2c)return null;try{let _0x5e68cc=_0x346d2c[_0x3bc81b(0x1a8)](this['_getShapeScope'](),_0x262f2c);return _0x5e68cc?this[_0x3bc81b(0x173)](_0x5e68cc):(console['warn']('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x3c8450){return console[_0x3bc81b(0x19c)](_0x3bc81b(0x177),_0x3c8450),null;}}['getShape'](_0x3d142e){const _0x505106=_0x753fe;let _0x51bb13=this[_0x505106(0x18e)]();if(!_0x51bb13)return null;try{let _0x53e608={...this[_0x505106(0x193)](),'shapeId':_0x3d142e},_0x4656d4=_0x51bb13[_0x505106(0x185)](_0x53e608);return _0x4656d4?this['_createShapeHandle'](_0x4656d4):(console[_0x505106(0x19c)](_0x505106(0x19e)+_0x3d142e+_0x505106(0x182)),null);}catch(_0x14d34d){return console['warn'](_0x505106(0x176)+_0x3d142e+'\x22.',_0x14d34d),null;}}['getShapes'](){const _0x51c526=_0x753fe;let _0x54ce6e=this[_0x51c526(0x18e)]();if(!_0x54ce6e)return[];try{return _0x54ce6e['listShapes'](this[_0x51c526(0x193)]())['map'](_0x18d582=>this[_0x51c526(0x173)](_0x18d582));}catch(_0x3671c8){return console[_0x51c526(0x19c)](_0x51c526(0x1a0),_0x3671c8),[];}}[_0x753fe(0x193)](){const _0x45a115=_0x753fe;return{'hostType':n['UniverInstanceType'][_0x45a115(0x19b)],'unitId':this[_0x45a115(0x17c)]()['getUnitId'](),'subUnitId':this[_0x45a115(0x194)]()};}[_0x753fe(0x18e)](){const _0x4bb40f=_0x753fe;return this['_injector'][_0x4bb40f(0x17f)](e[_0x4bb40f(0x19d)])[_0x4bb40f(0x17f)](n[_0x4bb40f(0x17e)]['UNIVER_SHEET']);}[_0x753fe(0x173)](_0x451347){const _0x15012c=_0x753fe;let {unitId:_0x3c5681,subUnitId:_0x40580d,shapeId:_0x491462}=_0x451347,_0x24370e={'unitId':_0x3c5681,'subUnitId':_0x40580d,'shapeId':_0x491462,'hostType':n[_0x15012c(0x17e)][_0x15012c(0x19b)]};return(0x0,e[_0x15012c(0x186)])(_0x451347[_0x15012c(0x191)])?this[_0x15012c(0x180)][_0x15012c(0x1a3)](t['FConnectorShape'],_0x24370e,this[_0x15012c(0x180)]):this[_0x15012c(0x180)][_0x15012c(0x1a3)](s,_0x24370e,this[_0x15012c(0x180)]);}};r[_0x753fe(0x1a1)][_0x753fe(0x195)](c),Object[_0x753fe(0x1ac)](exports,'FSheetShape',{'enumerable':!0x0,'get':function(){return s;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x68cbee=_0xb428;function _0x187d(){const _0xad6649=['params','listShapes','_applyUpdate','fill','SHEET_SHAPE_PLUGIN','getAdjustValueByName','lineType','_initCommandInterceptor','rotateEnabled','getBasicShapeType','ToggleSheetsShapeFlipCommand','adjustValues','angle','SetSheetDrawingCommand','addShape','filter','function','resizeEnabled','sheet.command.set-shape-drawing-data','generateRandomId','UniverDrawingPlugin','delete','_initCommands','_configService','borderEnabled','setShapeData','DependentOn','ISheetDrawingService','_toSnapshot','get','worldRect','SetDrawingApplyMutation','entries','has','cos','default','SheetDrawingAnchorType','defineProperty','front','DrawingTypeEnum','DEFAULT_SHAPE_WIDTH','RemoveSheetsShapeMutation','mode','getStartConnectInfo','width','registerPluginResource','UniverSheetsDrawingPlugin','_ensureShapeModelManager','isConnectorShape','isFrom','getSkeleton','1TNqLpM','canApplyShapeFormulaLastValue','338088vzFRjB','set','getName','Inject','createDefaultInsertedShapeData','UniverInstanceType','_config','shapeData','_groupIds','getAdjustNames','sheet.mutation.update-shape-data','getShapeDisplayNames','IResourceManagerService','add','backward','getShapeData','getSheetCommandTarget','preUndos','insertShape','shapeId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onCommandExecute','sheet.mutation.update-shape-type','createUniqueShapeName','relation','ShapeModel','DrawingApplyType','buildConnectorEndpointUpdate','Injector','sin','pushUndoRedo','preRedos','UpdateConnectorRelationCommand','getShapeType','SheetSkeletonService','top','UPDATE','range','shapeType','packageName','flipY','Disposable','UniverSheetsShapePlugin','getShapeTextData','getUnit','Tools','@univerjs-pro/sheets-shape','getShape','transform','_shapeAdapter','DEFAULT_SHAPE_HEIGHT','_getConnectPointInfo','_injector','name','result','_arrange','_planConnector','onCommandExecuted','ang','_shapes','1189498ryVTqU','forEach','createFormulaLastValueMutation','15008272NmcSdM','2381034CPrpwa','syncExecuteCommand','_drawingService','back','_drawingManagerService','visible','IUniverInstanceService','getShapeRelation','formula','from','_commandService','values','refresh','map','removeLinePoints','InsertSheetsShapeMutation','shapeChanged$','subUnitId','1657873twMCVF','sheet.command.update-line-shape-resize','push','sendToBack','rotation','deletes','SheetDrawingTransformPlanService','_shapeService','resolveConnectorRoutePoints','forward','symbol','object','registerCommand','ArrangeTypeEnum','pluginName','undos','UniverLicensePlugin','getEndConnectInfo','formulaBinding','height','IConfigService','_shapeModelManagerMap','ICommandService','SetDrawingArrangeCommand','cxnIndex','sheet.mutation.insert-shape','keys','hasShape','isLineShape','getBatchAddOp','getBatchUpdateOp','iterator','_sheetsShapeService','fromJSON','getShapeModel','IUndoRedoService','redos','UniverShapePlugin','bringToFront','UniverSheetsPlugin','transformToDrawingPosition','getBasicShapeRelation','data','getSheets','getConnectionSiteList','shapeName','updates','getSheetId','_serializeShapeForUnit','SheetInterceptorService','point','clear','getShapeDataById','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','description','setShapeType','prototype','getShapeTypeById','drawingId','_linesIds','createShape','parse','getDrawingData','toJSON','InsertShapeCommand','type','REMOVE','transformToAxisAlignPosition','SheetsShapeService','unitId','_shapeHostAdapterRegistry','_initSnapshot','deepClone','CommandType','sheet.command.set-shape-rotate','_sheetInterceptorService','_instanceService','setConfig','createFreeConnectorPointInfo','flipX','left','lineShapeId','_resolveBinding','toStringTag','9GJWekt','getOwnPropertyDescriptor','_deserializeShapeForUnit','stringify','_resourcesManagerService','_sheetSkeletonService','touchDependencies','hidden','_addLineRerouteUpdates','SetSheetsShapeRotateCommand','Plugin','command','COMMAND','hostType','getLineShapeRelation','dispose','RemoveSheetDrawingCommand','toPrimitive','position','drawingType','decorate','removeShape','DRAWING_SHAPE','UpdateLineShapeResizeCommand','_disposed','originals','Both','_planDeletes','getDrawingByParam','selectable','sheet.command.insert-shape','disposeWithMe','1439150EgegZm','routeConnectorLineShape','_addLineFollowShapeUpdates','Module','MUTATION','string','ensureSkeleton','sequenceExecute','SetSheetsShapeTextVerticalToggleCommand','ClearSheetDrawingTransformerOperation','2689560umBONN','length','isHorizontal'];_0x187d=function(){return _0xad6649;};return _0x187d();}(function(_0x30bacf,_0x38de7d){const _0x8ef27=_0xb428,_0xad698c=_0x30bacf();while(!![]){try{const _0x5a82a7=parseInt(_0x8ef27(0x22e))/0x1*(-parseInt(_0x8ef27(0x26c))/0x2)+-parseInt(_0x8ef27(0x270))/0x3+parseInt(_0x8ef27(0x230))/0x4+-parseInt(_0x8ef27(0x1ee))/0x5+parseInt(_0x8ef27(0x1f8))/0x6+-parseInt(_0x8ef27(0x282))/0x7+parseInt(_0x8ef27(0x26f))/0x8*(parseInt(_0x8ef27(0x1ce))/0x9);if(_0x5a82a7===_0x38de7d)break;else _0xad698c['push'](_0xad698c['shift']());}catch(_0x497f18){_0xad698c['push'](_0xad698c['shift']());}}}(_0x187d,0x79068),Object[_0x68cbee(0x220)](exports,Symbol[_0x68cbee(0x1cd)],{'value':_0x68cbee(0x1f1)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0x24af76){'@babel/helpers - typeof';const _0x5d483c=_0x68cbee;return o=typeof Symbol==_0x5d483c(0x20b)&&typeof Symbol[_0x5d483c(0x199)]==_0x5d483c(0x28c)?function(_0x567aff){return typeof _0x567aff;}:function(_0x1f26b8){const _0xadfae0=_0x5d483c;return _0x1f26b8&&typeof Symbol==_0xadfae0(0x20b)&&_0x1f26b8['constructor']===Symbol&&_0x1f26b8!==Symbol[_0xadfae0(0x1b2)]?_0xadfae0(0x28c):typeof _0x1f26b8;},o(_0x24af76);}function _0xb428(_0x2fa1ce,_0x2fabe0){_0x2fa1ce=_0x2fa1ce-0x195;const _0x187de2=_0x187d();let _0xb42832=_0x187de2[_0x2fa1ce];return _0xb42832;}function s(_0x4df209,_0x5db800){const _0x10ebdb=_0x68cbee;if(o(_0x4df209)!=_0x10ebdb(0x28d)||!_0x4df209)return _0x4df209;var _0x2ec4e9=_0x4df209[Symbol[_0x10ebdb(0x1df)]];if(_0x2ec4e9!==void 0x0){var _0x31052c=_0x2ec4e9['call'](_0x4df209,_0x5db800||_0x10ebdb(0x21e));if(o(_0x31052c)!=_0x10ebdb(0x28d))return _0x31052c;throw TypeError(_0x10ebdb(0x244));}return(_0x5db800==='string'?String:Number)(_0x4df209);}function c(_0x2b5f4d){const _0x10819f=_0x68cbee;var _0x4713fe=s(_0x2b5f4d,_0x10819f(0x1f3));return o(_0x4713fe)=='symbol'?_0x4713fe:_0x4713fe+'';}function l(_0x293452,_0x24db0c,_0x10c116){const _0x19d16c=_0x68cbee;return(_0x24db0c=c(_0x24db0c))in _0x293452?Object[_0x19d16c(0x220)](_0x293452,_0x24db0c,{'value':_0x10c116,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x293452[_0x24db0c]=_0x10c116,_0x293452;}var u=class extends t['Disposable']{constructor(){const _0x517065=_0x68cbee;super(),l(this,_0x517065(0x26b),new Map()),l(this,_0x517065(0x1b5),new Set()),l(this,'_groupIds',new Set());}[_0x68cbee(0x209)](_0x4cf203,_0x2c507a,_0x5a9e51,_0x54895d){const _0x5e73fc=_0x68cbee;let _0x1a92f5=new e[(_0x5e73fc(0x249))](_0x4cf203,_0x2c507a,_0x5a9e51,_0x54895d);return this[_0x5e73fc(0x26b)]['set'](_0x2c507a,_0x1a92f5),(0x0,e[_0x5e73fc(0x22b)])(_0x4cf203)&&this[_0x5e73fc(0x1b5)][_0x5e73fc(0x23d)](_0x2c507a),_0x1a92f5;}[_0x68cbee(0x1a3)](_0x4ef14a){const _0x65076d=_0x68cbee;let _0x2cf973=[];for(let _0x403e63 of this[_0x65076d(0x1b5)]){let _0x18c348=this[_0x65076d(0x26b)][_0x65076d(0x218)](_0x403e63);if(_0x18c348){let _0x2bc4fa=_0x18c348[_0x65076d(0x277)]();if(_0x2bc4fa){var _0x1739be,_0x265af9;((_0x1739be=_0x2bc4fa[_0x65076d(0x279)])==null?void 0x0:_0x1739be[_0x65076d(0x243)])===_0x4ef14a&&_0x2cf973[_0x65076d(0x284)]({..._0x2bc4fa[_0x65076d(0x279)],'lineShapeId':_0x403e63,'isFrom':!0x0}),((_0x265af9=_0x2bc4fa['to'])==null?void 0x0:_0x265af9['shapeId'])===_0x4ef14a&&_0x2cf973['push']({..._0x2bc4fa['to'],'lineShapeId':_0x403e63,'isFrom':!0x1});}}}return _0x2cf973;}[_0x68cbee(0x1dc)](_0x57ca66){const _0x35dd79=_0x68cbee;let _0x48b60c=this[_0x35dd79(0x26b)][_0x35dd79(0x218)](_0x57ca66);if(_0x48b60c)return _0x48b60c[_0x35dd79(0x277)]();}[_0x68cbee(0x251)](_0x527992){const _0x1e61bc=_0x68cbee;let _0x57eaba=this['_shapes'][_0x1e61bc(0x218)](_0x527992);if(_0x57eaba)return _0x57eaba[_0x1e61bc(0x251)]();}[_0x68cbee(0x195)](_0x49699c){return this['_shapes']['has'](_0x49699c);}['getShapeDisplayNames'](){const _0x747cce=_0x68cbee;return Array['from'](this[_0x747cce(0x26b)][_0x747cce(0x27b)]())[_0x747cce(0x27d)](_0x181160=>_0x181160[_0x747cce(0x232)]()||_0x181160['getId']());}[_0x68cbee(0x1e3)](_0x40adfb){const _0x12f55b=_0x68cbee;let _0x5637aa=this[_0x12f55b(0x26b)]['get'](_0x40adfb);_0x5637aa&&((0x0,e[_0x12f55b(0x22b)])(_0x5637aa[_0x12f55b(0x251)]())&&this[_0x12f55b(0x1b5)]['delete'](_0x40adfb),this[_0x12f55b(0x26b)][_0x12f55b(0x210)](_0x40adfb));}['toJSON'](){const _0x5a8eab=_0x68cbee;let _0x27440a=[];return this[_0x5a8eab(0x26b)][_0x5a8eab(0x26d)](_0x5b86ed=>{const _0x390cd2=_0x5a8eab;_0x27440a[_0x390cd2(0x284)](_0x5b86ed['toJSON']());}),_0x27440a;}['fromJSON'](_0x3055b5){const _0x39f81e=_0x68cbee;for(let _0x26047c of _0x3055b5){let {id:_0xbfe68e,shapeType:_0x505078,name:_0x1d0dd0}=_0x26047c,_0x228598=this[_0x39f81e(0x209)](_0x505078,_0xbfe68e,_0x26047c[_0x39f81e(0x237)],_0x1d0dd0);_0x228598&&_0x228598[_0x39f81e(0x196)]()&&this['_linesIds'][_0x39f81e(0x23d)](_0xbfe68e);}}[_0x68cbee(0x1dd)](){const _0x35eee0=_0x68cbee;this[_0x35eee0(0x1e6)]||(this['_shapes'][_0x35eee0(0x26d)](_0x3ffd86=>{const _0x9ac19e=_0x35eee0;_0x3ffd86[_0x9ac19e(0x1dd)]();}),this[_0x35eee0(0x26b)]['clear'](),this[_0x35eee0(0x1b5)][_0x35eee0(0x1ad)](),this[_0x35eee0(0x238)][_0x35eee0(0x1ad)](),super[_0x35eee0(0x1dd)]());}};function d(_0x440a94,_0x5bca30){return function(_0x5a3bdf,_0x1b9755){_0x5bca30(_0x5a3bdf,_0x1b9755,_0x440a94);};}function f(_0x2ba8eb,_0x699907,_0x320947,_0x46d800){const _0x54eeeb=_0x68cbee;var _0x20fe3a=arguments[_0x54eeeb(0x1f9)],_0xd22533=_0x20fe3a<0x3?_0x699907:_0x46d800===null?_0x46d800=Object[_0x54eeeb(0x1cf)](_0x699907,_0x320947):_0x46d800,_0x2368b3;if(typeof Reflect==_0x54eeeb(0x28d)&&typeof Reflect[_0x54eeeb(0x1e2)]==_0x54eeeb(0x20b))_0xd22533=Reflect[_0x54eeeb(0x1e2)](_0x2ba8eb,_0x699907,_0x320947,_0x46d800);else{for(var _0x254e53=_0x2ba8eb[_0x54eeeb(0x1f9)]-0x1;_0x254e53>=0x0;_0x254e53--)(_0x2368b3=_0x2ba8eb[_0x254e53])&&(_0xd22533=(_0x20fe3a<0x3?_0x2368b3(_0xd22533):_0x20fe3a>0x3?_0x2368b3(_0x699907,_0x320947,_0xd22533):_0x2368b3(_0x699907,_0x320947))||_0xd22533);}return _0x20fe3a>0x3&&_0xd22533&&Object[_0x54eeeb(0x220)](_0x699907,_0x320947,_0xd22533),_0xd22533;}let p=class extends t[_0x68cbee(0x259)]{constructor(_0x4adc75){const _0x3ca1c0=_0x68cbee;super(),this[_0x3ca1c0(0x1d2)]=_0x4adc75,l(this,'_shapeModelManagerMap',new Map()),this[_0x3ca1c0(0x1c1)]();}[_0x68cbee(0x22a)](_0xd3aedd,_0x7eaf1f){const _0x3dc0b0=_0x68cbee;let _0x24195a=this[_0x3dc0b0(0x297)][_0x3dc0b0(0x218)](_0xd3aedd);_0x24195a||(_0x24195a=new Map(),this[_0x3dc0b0(0x297)][_0x3dc0b0(0x231)](_0xd3aedd,_0x24195a));let _0x12dd1d=_0x24195a[_0x3dc0b0(0x218)](_0x7eaf1f);return _0x12dd1d||(_0x12dd1d=new u(),_0x24195a['set'](_0x7eaf1f,_0x12dd1d)),_0x12dd1d;}[_0x68cbee(0x242)](_0x253776,_0x1c4107,_0x2cab07,_0x1c9d43,_0x3a8aaf,_0x271066){const _0x583808=_0x68cbee;this['_ensureShapeModelManager'](_0x253776,_0x1c4107)[_0x583808(0x209)](_0x2cab07,_0x1c9d43,_0x3a8aaf,_0x271066);}[_0x68cbee(0x1e3)](_0x4a95bf,_0x3e22d4,_0x1c6f0f){const _0x409842=_0x68cbee;this[_0x409842(0x22a)](_0x4a95bf,_0x3e22d4)['removeShape'](_0x1c6f0f);}[_0x68cbee(0x204)](_0x1f97c8,_0x2e6a7c,_0x3a6674){const _0x1e694e=_0x68cbee;return this[_0x1e694e(0x22a)](_0x1f97c8,_0x2e6a7c)[_0x1e694e(0x251)](_0x3a6674);}[_0x68cbee(0x251)](_0x41fb77,_0x26990,_0x2241be){const _0xab0d28=_0x68cbee;return this['_ensureShapeModelManager'](_0x41fb77,_0x26990)[_0xab0d28(0x251)](_0x2241be);}[_0x68cbee(0x195)](_0x3f7752,_0x3412aa,_0x588b58){const _0x4d9fcf=_0x68cbee;return this[_0x4d9fcf(0x22a)](_0x3f7752,_0x3412aa)[_0x4d9fcf(0x195)](_0x588b58);}[_0x68cbee(0x1b3)](_0x573208,_0x14db60,_0x2fa749){const _0x5641d6=_0x68cbee;return this[_0x5641d6(0x22a)](_0x573208,_0x14db60)[_0x5641d6(0x251)](_0x2fa749);}[_0x68cbee(0x1ae)](_0x2b93f3,_0x51b84e,_0x1f3235){const _0x4bba85=_0x68cbee;let _0x43608f=this[_0x4bba85(0x22a)](_0x2b93f3,_0x51b84e);if(!_0x43608f[_0x4bba85(0x251)](_0x1f3235))return;let _0x124f4a=_0x43608f[_0x4bba85(0x26b)][_0x4bba85(0x218)](_0x1f3235);if(_0x124f4a)return _0x124f4a[_0x4bba85(0x23f)]();}[_0x68cbee(0x23b)](_0x488cba,_0x49e8e7){const _0x51af3f=_0x68cbee;return this[_0x51af3f(0x22a)](_0x488cba,_0x49e8e7)['getShapeDisplayNames']();}[_0x68cbee(0x19c)](_0x1aa4c4,_0x45c979,_0xd04246){const _0x2c3311=_0x68cbee;return this['_ensureShapeModelManager'](_0x1aa4c4,_0x45c979)[_0x2c3311(0x26b)]['get'](_0xd04246);}['getBasicShapeRelation'](_0x52f2b5,_0x182016,_0x2737fc){const _0x1de8ea=_0x68cbee;return this[_0x1de8ea(0x22a)](_0x52f2b5,_0x182016)[_0x1de8ea(0x1a3)](_0x2737fc);}[_0x68cbee(0x1dc)](_0x489f1c,_0x478301,_0x147a4a){const _0x292b69=_0x68cbee;let _0x969c71=this[_0x292b69(0x22a)](_0x489f1c,_0x478301)['_shapes'][_0x292b69(0x218)](_0x147a4a);if(_0x969c71)return _0x969c71[_0x292b69(0x277)]();}[_0x68cbee(0x1b1)](){}['_serializeShapeForUnit'](_0x43ff7e){const _0x336306=_0x68cbee;let _0x3fe419={},_0x105eeb=this[_0x336306(0x297)][_0x336306(0x218)](_0x43ff7e);return _0x105eeb&&_0x105eeb['forEach']((_0x31fbb2,_0x261274)=>{const _0x3c1f24=_0x336306;let _0x349c18=_0x31fbb2['toJSON']();_0x349c18[_0x3c1f24(0x1f9)]>0x0&&(_0x3fe419[_0x261274]=_0x349c18);}),JSON[_0x336306(0x1d1)](_0x3fe419);}['_deserializeShapeForUnit'](_0x4a68c0,_0x91dc06){const _0x37ce29=_0x68cbee;Object[_0x37ce29(0x29c)](_0x91dc06)['forEach'](_0x3a68ef=>{const _0x1034f3=_0x37ce29;this[_0x1034f3(0x22a)](_0x4a68c0,_0x3a68ef)[_0x1034f3(0x19b)](_0x91dc06[_0x3a68ef]);});}[_0x68cbee(0x1b9)](){const _0x2d48ff=_0x68cbee;let _0x53d652={};return this[_0x2d48ff(0x297)][_0x2d48ff(0x26d)]((_0x32fb54,_0x702e2a)=>{const _0x51e40a=_0x2d48ff;_0x53d652[_0x702e2a]={},_0x32fb54[_0x51e40a(0x26d)]((_0x1a8cd1,_0x1f46bf)=>{_0x53d652[_0x702e2a][_0x1f46bf]=_0x1a8cd1['toJSON']();});}),_0x53d652;}['fromJSON'](_0x51ade6){const _0x3d50e7=_0x68cbee;Object[_0x3d50e7(0x29c)](_0x51ade6)[_0x3d50e7(0x26d)](_0x18371c=>{let _0x474086=_0x51ade6[_0x18371c];Object['keys'](_0x474086)['forEach'](_0x34092e=>{const _0x4a44a2=_0xb428;this[_0x4a44a2(0x22a)](_0x18371c,_0x34092e)[_0x4a44a2(0x19b)](_0x474086[_0x34092e]);});});}[_0x68cbee(0x1c1)](){const _0x859797=_0x68cbee;this[_0x859797(0x1d2)][_0x859797(0x228)]({'pluginName':_0x859797(0x1ff),'businesses':[t[_0x859797(0x235)]['UNIVER_SHEET']],'toJson':_0x15ed7a=>this[_0x859797(0x1aa)](_0x15ed7a),'parseJson':_0x339005=>JSON[_0x859797(0x1b7)](_0x339005),'onLoad':(_0x5df9fb,_0x354ce5)=>{const _0x37f9bf=_0x859797;this[_0x37f9bf(0x1d0)](_0x5df9fb,_0x354ce5);},'onUnLoad':_0x3226e9=>{const _0x9c8ffb=_0x859797;let _0x405e66=this[_0x9c8ffb(0x297)][_0x9c8ffb(0x218)](_0x3226e9);_0x405e66&&(_0x405e66['forEach'](_0x4f545e=>{const _0x197799=_0x9c8ffb;_0x4f545e[_0x197799(0x1dd)]();}),this[_0x9c8ffb(0x297)]['delete'](_0x3226e9));}});}['dispose'](){const _0x577950=_0x68cbee;this[_0x577950(0x297)][_0x577950(0x26d)](_0x2c5057=>{const _0x3fbc6c=_0x577950;_0x2c5057[_0x3fbc6c(0x26d)](_0x3bef04=>{const _0x26e8a8=_0x3fbc6c;_0x3bef04[_0x26e8a8(0x1dd)]();});});}};p=f([d(0x0,t[_0x68cbee(0x23c)])],p);const m={'id':_0x68cbee(0x29b),'type':t[_0x68cbee(0x1c3)]['MUTATION'],'handler':(_0x2f1424,_0x566b82)=>{const _0x43ba52=_0x68cbee;let {unitId:_0x33dbfe,subUnitId:_0x237fab,shapeType:_0x493da1,shapeId:_0x12bb8b,shapeName:_0x5dd80f,shapeData:_0x4e6436}=_0x566b82;return _0x2f1424[_0x43ba52(0x218)](p)[_0x43ba52(0x242)](_0x33dbfe,_0x237fab,_0x493da1,_0x12bb8b,t[_0x43ba52(0x25d)][_0x43ba52(0x1c2)](_0x4e6436),_0x5dd80f),!0x0;}},h={'id':'sheet.mutation.remove-shape','type':t[_0x68cbee(0x1c3)][_0x68cbee(0x1f2)],'handler':(_0x5136f9,_0x8985f3)=>{const _0x1f7522=_0x68cbee;let {unitId:_0x18f7ff,subUnitId:_0x5e1f3d,shapeId:_0x5ee019}=_0x8985f3;return _0x5136f9[_0x1f7522(0x218)](p)[_0x1f7522(0x1e3)](_0x18f7ff,_0x5e1f3d,_0x5ee019),!0x0;}},g={'type':t[_0x68cbee(0x1c3)]['COMMAND'],'id':_0x68cbee(0x1ec),'handler':(_0x2cf417,_0x190c4b)=>{const _0x51fce2=_0x68cbee;let _0x2f908b=(0x0,n[_0x51fce2(0x240)])(_0x2cf417['get'](t[_0x51fce2(0x276)]),_0x190c4b);if(!_0x2f908b)return!0x1;let _0x8e32ea=_0x2cf417['get'](n['SheetSkeletonService']),{unitId:_0x449486,subUnitId:_0x5143c5}=_0x2f908b,_0x15ff63=_0x8e32ea[_0x51fce2(0x1f4)](_0x449486,_0x5143c5);if(!_0x15ff63)return!0x1;let _0x44a7e7=_0x2cf417[_0x51fce2(0x218)](t[_0x51fce2(0x298)]),_0x32b64b=_0x2cf417[_0x51fce2(0x218)](t[_0x51fce2(0x19d)]),_0x8cf2c1=_0x2cf417[_0x51fce2(0x218)](n[_0x51fce2(0x1ab)]),_0x1eb86c=_0x2cf417[_0x51fce2(0x218)](r['ISheetDrawingService']),_0x4cf1b7=_0x2cf417[_0x51fce2(0x218)](p),{shapeType:_0x2121ac}=_0x190c4b,_0x3c19b2=_0x190c4b[_0x51fce2(0x237)]??(0x0,e['createDefaultInsertedShapeData'])(_0x2121ac),_0x373885=_0x190c4b['shapeId']||(0x0,t[_0x51fce2(0x20e)])(),_0x172c12={'unitId':_0x449486,'subUnitId':_0x5143c5,'shapeId':_0x373885,'shapeName':_0x190c4b[_0x51fce2(0x1a7)]??(0x0,e[_0x51fce2(0x247)])(_0x2121ac,_0x4cf1b7['getShapeDisplayNames'](_0x449486,_0x5143c5)),'shapeType':_0x2121ac,'shapeData':_0x3c19b2},_0x1c3255=_0x190c4b[_0x51fce2(0x227)]||0xc8,_0x34739c=_0x190c4b[_0x51fce2(0x295)]||0xc8,_0x2457b1=0x0,_0x2f6573=0x0;if(_0x190c4b['position']){let {x:_0x33a05c,y:_0x57d9fb}=_0x190c4b[_0x51fce2(0x1e0)];_0x2457b1=_0x33a05c,_0x2f6573=_0x57d9fb;}else{if(_0x190c4b[_0x51fce2(0x255)]){let {startRow:_0x156e45,startColumn:_0x9d6ce6}=_0x190c4b[_0x51fce2(0x255)],_0x298c37=_0x15ff63['getCellWithCoordByIndex'](_0x156e45,_0x9d6ce6);_0x2457b1=_0x298c37['startX']+0xa,_0x2f6573=_0x298c37['startY']+0xa;}}let _0x1c757d={'left':_0x2457b1,'top':_0x2f6573,'width':_0x1c3255,'height':_0x34739c,'angle':_0x190c4b[_0x51fce2(0x286)]??0x0,'flipX':_0x190c4b[_0x51fce2(0x1c9)]??!0x1,'flipY':_0x190c4b[_0x51fce2(0x258)]??!0x1},_0x1cb81e=(0x0,r[_0x51fce2(0x1a2)])(_0x1c757d,_0x15ff63),_0x27d6f2=(0x0,r[_0x51fce2(0x1bd)])(_0x1c757d,_0x15ff63),_0x57f407={'unitId':_0x449486,'subUnitId':_0x5143c5,'drawingId':_0x373885,'drawingType':t['DrawingTypeEnum'][_0x51fce2(0x1e4)],'anchorType':r[_0x51fce2(0x21f)][_0x51fce2(0x1e8)],'name':_0x190c4b[_0x51fce2(0x265)],'description':_0x190c4b['description'],'sheetTransform':_0x1cb81e,'transform':_0x1c757d,'data':{'shapeType':_0x2121ac,'shapeData':_0x3c19b2},'axisAlignSheetTransform':_0x27d6f2,'allowTransform':!0x0,'hidden':_0x190c4b[_0x51fce2(0x275)]===!0x1,'selectable':_0x190c4b['selectable']??!0x0};(0x0,e[_0x51fce2(0x22b)])(_0x2121ac)&&(_0x57f407['data'][_0x51fce2(0x1fe)]=!0x1,_0x57f407[_0x51fce2(0x1a4)][_0x51fce2(0x203)]=!0x1,_0x57f407[_0x51fce2(0x1a4)]['resizeEnabled']=!0x1,_0x57f407[_0x51fce2(0x1a4)][_0x51fce2(0x213)]=!0x1,_0x57f407['transform'][_0x51fce2(0x203)]=!0x1,_0x57f407[_0x51fce2(0x260)][_0x51fce2(0x20c)]=!0x1,_0x57f407[_0x51fce2(0x260)][_0x51fce2(0x213)]=!0x1);let {undo:_0x390c20,redo:_0x158ee5,objects:_0x5bedce}=_0x1eb86c[_0x51fce2(0x197)]([_0x57f407]),_0x5a51f1=_0x8cf2c1['onCommandExecute']({'id':r['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x449486,'drawings':[_0x57f407]}}),_0x27ceb3=[..._0x5a51f1[_0x51fce2(0x24f)]??[],{'id':r[_0x51fce2(0x21a)]['id'],'params':{'unitId':_0x449486,'subUnitId':_0x5143c5,'op':_0x158ee5,'objects':_0x5bedce,'type':r[_0x51fce2(0x24a)]['INSERT']}},{'id':r[_0x51fce2(0x1f7)]['id'],'params':[_0x449486]},..._0x5a51f1[_0x51fce2(0x19e)],{'id':m['id'],'params':_0x172c12}],_0x512bd4=[{'id':h['id'],'params':{'unitId':_0x449486,'subUnitId':_0x5143c5,'shapeId':_0x373885}},..._0x5a51f1['preUndos']??[],{'id':r[_0x51fce2(0x21a)]['id'],'params':{'unitId':_0x449486,'subUnitId':_0x5143c5,'op':_0x390c20,'objects':_0x5bedce,'type':r[_0x51fce2(0x24a)][_0x51fce2(0x1bc)]}},{'id':r[_0x51fce2(0x1f7)]['id'],'params':[_0x449486]},..._0x5a51f1[_0x51fce2(0x291)]];return(0x0,t[_0x51fce2(0x1f5)])(_0x27ceb3,_0x44a7e7)[_0x51fce2(0x266)]?(_0x32b64b[_0x51fce2(0x24e)]({'unitID':_0x449486,'undoMutations':_0x512bd4,'redoMutations':_0x27ceb3}),!0x0):!0x1;}},_={'id':_0x68cbee(0x23a),'type':t[_0x68cbee(0x1c3)][_0x68cbee(0x1f2)],'handler':(_0x120187,_0x2c04d6)=>{const _0x3ecd65=_0x68cbee;let {unitId:_0x549e9c,subUnitId:_0x4d5d07,shapeType:_0x479679,shapeId:_0x3250de,shapeData:_0x3a644f,replace:_0x240fbc,formulaLastValueGuard:_0x10eb45}=_0x2c04d6,_0x3c7f44=_0x120187['get'](p)[_0x3ecd65(0x19c)](_0x549e9c,_0x4d5d07,_0x3250de);if(_0x3c7f44){var _0x2dfb35;if(!(0x0,e[_0x3ecd65(0x22f)])(_0x120187,{'hostType':t['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x549e9c,'subUnitId':_0x4d5d07,'shapeId':_0x3250de},(_0x2dfb35=_0x3c7f44[_0x3ecd65(0x23f)]()[_0x3ecd65(0x294)])==null?void 0x0:_0x2dfb35[_0x3ecd65(0x278)],_0x10eb45))return!0x0;_0x479679!==void 0x0&&_0x3c7f44['setShapeType'](_0x479679),_0x3a644f&&(_0x3c7f44==null||_0x3c7f44[_0x3ecd65(0x214)](t[_0x3ecd65(0x25d)]['deepClone'](_0x3a644f),!_0x240fbc));}return!0x0;}},v={'type':t['CommandType']['COMMAND'],'id':_0x68cbee(0x20d),'handler':(_0x4028c8,_0x462a32)=>{const _0x894863=_0x68cbee;let _0x2ad150=(0x0,n[_0x894863(0x240)])(_0x4028c8[_0x894863(0x218)](t[_0x894863(0x276)]),_0x462a32);if(!_0x2ad150)return!0x1;let _0x2783a0=_0x4028c8[_0x894863(0x218)](n[_0x894863(0x252)]),{unitId:_0x3a2482,subUnitId:_0x11af58}=_0x2ad150,_0x4afcf2=_0x2783a0['ensureSkeleton'](_0x3a2482,_0x11af58);if(!_0x4afcf2)return!0x1;let _0x59a534=_0x4028c8['get'](p),{shapeId:_0x10a494,shapeType:_0x41756e,shapeData:_0x3ca66c,position:_0x453750,width:_0x42fc2d,height:_0x47bac3}=_0x462a32,_0x41ee0d=_0x59a534[_0x894863(0x19c)](_0x3a2482,_0x11af58,_0x10a494);if(!_0x41ee0d)return!0x1;let _0x122440=_0x4028c8['get'](t[_0x894863(0x298)]),_0x1b80de=_0x4028c8['get'](t['IUndoRedoService']),_0x1bc26e=_0x4028c8[_0x894863(0x218)](n[_0x894863(0x1ab)]),_0x4d5dff=_0x4028c8['get'](r[_0x894863(0x216)]),_0x47c75e={'unitId':_0x3a2482,'subUnitId':_0x11af58,'shapeId':_0x10a494,'shapeType':_0x41756e,'shapeData':_0x3ca66c,'replace':!0x0},_0x5975f2=_0x41ee0d[_0x894863(0x251)](),_0x5303ba=_0x41ee0d[_0x894863(0x23f)](),{x:_0x23ba56,y:_0x15a2ad}=_0x453750,_0x5dc3f8={'left':_0x23ba56,'top':_0x15a2ad,'width':_0x42fc2d,'height':_0x47bac3,'angle':_0x462a32[_0x894863(0x286)]??0x0,'flipX':_0x462a32[_0x894863(0x1c9)]??!0x1,'flipY':_0x462a32[_0x894863(0x258)]??!0x1},_0x4965f1=(0x0,r['transformToDrawingPosition'])(_0x5dc3f8,_0x4afcf2),_0x2cc5dc=(0x0,r[_0x894863(0x1bd)])(_0x5dc3f8,_0x4afcf2),_0x37490b={'unitId':_0x3a2482,'subUnitId':_0x11af58,'drawingId':_0x10a494,'drawingType':t['DrawingTypeEnum'][_0x894863(0x1e4)],'name':_0x462a32[_0x894863(0x265)],'description':_0x462a32[_0x894863(0x1b0)],'sheetTransform':_0x4965f1,'transform':_0x5dc3f8,'data':{'shapeType':_0x41756e,'shapeData':_0x3ca66c},'axisAlignSheetTransform':_0x2cc5dc,'allowTransform':!0x0,'hidden':!_0x462a32[_0x894863(0x275)],'selectable':_0x462a32[_0x894863(0x1eb)]};(0x0,e['isConnectorShape'])(_0x41756e)&&(_0x37490b[_0x894863(0x1a4)][_0x894863(0x1fe)]=!0x1,_0x37490b[_0x894863(0x1a4)][_0x894863(0x203)]=!0x1,_0x37490b[_0x894863(0x1a4)]['resizeEnabled']=!0x1,_0x37490b[_0x894863(0x1a4)][_0x894863(0x213)]=!0x1,_0x37490b[_0x894863(0x260)]['rotateEnabled']=!0x1,_0x37490b[_0x894863(0x260)]['resizeEnabled']=!0x1,_0x37490b['transform'][_0x894863(0x213)]=!0x1);let {undo:_0x40ccd4,redo:_0x60ef21,objects:_0x2efc75}=_0x4d5dff[_0x894863(0x198)]([_0x37490b]),_0x4157f4=_0x1bc26e[_0x894863(0x245)]({'id':r[_0x894863(0x208)]['id'],'params':{'unitId':_0x3a2482,'drawings':[_0x37490b]}}),_0x1540d7=[..._0x4157f4[_0x894863(0x24f)]??[],{'id':r[_0x894863(0x21a)]['id'],'params':{'unitId':_0x3a2482,'subUnitId':_0x11af58,'op':_0x60ef21,'objects':_0x2efc75,'type':r[_0x894863(0x24a)]['UPDATE']}},{'id':r[_0x894863(0x1f7)]['id'],'params':[_0x3a2482]},..._0x4157f4[_0x894863(0x19e)],{'id':_['id'],'params':_0x47c75e}],_0x55f1b4=[..._0x4157f4[_0x894863(0x241)]??[],{'id':r[_0x894863(0x21a)]['id'],'params':{'unitId':_0x3a2482,'subUnitId':_0x11af58,'op':_0x40ccd4,'objects':_0x2efc75,'type':r[_0x894863(0x24a)]['UPDATE']}},{'id':r[_0x894863(0x1f7)]['id'],'params':[_0x3a2482]},..._0x4157f4[_0x894863(0x291)],{'id':_['id'],'params':{'unitId':_0x3a2482,'subUnitId':_0x11af58,'shapeType':_0x5975f2,'shapeId':_0x10a494,'shapeData':_0x5303ba,'replace':!0x0}}];return(0x0,t[_0x894863(0x1f5)])(_0x1540d7,_0x122440)['result']?(_0x1b80de[_0x894863(0x24e)]({'unitID':_0x3a2482,'undoMutations':_0x55f1b4,'redoMutations':_0x1540d7}),!0x0):!0x1;}},y={'type':t[_0x68cbee(0x1c3)][_0x68cbee(0x1da)],'id':'sheet.command.toggle-shape-flip','handler':(_0x5b49e5,_0x317c64)=>{const _0x5768f0=_0x68cbee;let _0x43cafc=(0x0,n[_0x5768f0(0x240)])(_0x5b49e5[_0x5768f0(0x218)](t[_0x5768f0(0x276)]),_0x317c64);if(!_0x43cafc)return!0x1;let _0x512f5c=_0x5b49e5[_0x5768f0(0x218)](n[_0x5768f0(0x252)]),{unitId:_0x1cc16e,subUnitId:_0x363d6d}=_0x43cafc,_0x1567d2=_0x512f5c[_0x5768f0(0x22d)](_0x1cc16e,_0x363d6d);if(!_0x1567d2)return!0x1;let _0x9d2d70=_0x5b49e5[_0x5768f0(0x218)](r[_0x5768f0(0x216)]),{shapeId:_0x4f02e1,flipH:_0x4d043d,flipV:_0x4f619a}=_0x317c64,_0x4952d0=_0x9d2d70[_0x5768f0(0x1ea)]({'unitId':_0x1cc16e,'subUnitId':_0x363d6d,'drawingId':_0x4f02e1});if(!_0x4952d0)return!0x1;let _0x158da6=_0x5b49e5[_0x5768f0(0x218)](p)['getShapeModel'](_0x1cc16e,_0x363d6d,_0x4f02e1);if(!_0x158da6)return!0x1;let _0x5625d1=_0x5b49e5['get'](t[_0x5768f0(0x298)]),_0x4b1b99=_0x5b49e5['get'](t[_0x5768f0(0x19d)]),_0x21001c=_0x5b49e5[_0x5768f0(0x218)](n[_0x5768f0(0x1ab)]),_0x43dd7a={..._0x4952d0[_0x5768f0(0x260)]};_0x4d043d!==void 0x0&&(_0x43dd7a[_0x5768f0(0x1c9)]=!_0x43dd7a[_0x5768f0(0x1c9)]),_0x4f619a!==void 0x0&&(_0x43dd7a[_0x5768f0(0x258)]=!_0x43dd7a[_0x5768f0(0x258)]);let _0x2bfd59=(0x0,r[_0x5768f0(0x1a2)])(_0x43dd7a,_0x1567d2),_0x500a70=(0x0,r[_0x5768f0(0x1bd)])(_0x43dd7a,_0x1567d2),_0x42eeba=_0x158da6[_0x5768f0(0x251)](),_0x30172e=_0x158da6['getShapeData'](),_0x19f714={'unitId':_0x1cc16e,'subUnitId':_0x363d6d,'drawingId':_0x4f02e1,'drawingType':t[_0x5768f0(0x222)][_0x5768f0(0x1e4)],'sheetTransform':_0x2bfd59,'transform':_0x43dd7a,'data':{'shapeType':_0x42eeba,'shapeData':_0x30172e},'axisAlignSheetTransform':_0x500a70,'allowTransform':!0x0},{undo:_0x83446d,redo:_0xc7f0b0,objects:_0x404c45}=_0x9d2d70[_0x5768f0(0x198)]([_0x19f714]),_0x14d820=_0x21001c[_0x5768f0(0x245)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x1cc16e,'drawings':[_0x19f714]}}),_0x28520a=[..._0x14d820[_0x5768f0(0x24f)]??[],{'id':r[_0x5768f0(0x21a)]['id'],'params':{'unitId':_0x1cc16e,'subUnitId':_0x363d6d,'op':_0xc7f0b0,'objects':_0x404c45,'type':r[_0x5768f0(0x24a)][_0x5768f0(0x254)]}},{'id':r[_0x5768f0(0x1f7)]['id'],'params':[_0x1cc16e]},..._0x14d820[_0x5768f0(0x19e)]],_0x2bbd94=[..._0x14d820[_0x5768f0(0x241)]??[],{'id':r[_0x5768f0(0x21a)]['id'],'params':{'unitId':_0x1cc16e,'subUnitId':_0x363d6d,'op':_0x83446d,'objects':_0x404c45,'type':r['DrawingApplyType']['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1cc16e]},..._0x14d820[_0x5768f0(0x291)]];if((0x0,e[_0x5768f0(0x22b)])(_0x42eeba)){let _0x3b1648=_0x158da6[_0x5768f0(0x277)]();if(_0x3b1648){let _0x50c5f4={..._0x3b1648};_0x50c5f4['from']=void 0x0,_0x50c5f4['to']=void 0x0,_0x28520a[_0x5768f0(0x284)]({'id':_['id'],'params':{'unitId':_0x1cc16e,'subUnitId':_0x363d6d,'shapeId':_0x4f02e1,'shapeType':_0x42eeba,'shapeData':{'relation':_0x50c5f4}}}),_0x2bbd94[_0x5768f0(0x284)]({'id':_['id'],'params':{'unitId':_0x1cc16e,'subUnitId':_0x363d6d,'shapeId':_0x4f02e1,'shapeType':_0x42eeba,'shapeData':{'relation':_0x3b1648}}});}}return(0x0,t[_0x5768f0(0x1f5)])(_0x28520a,_0x5625d1)['result']?(_0x4b1b99['pushUndoRedo']({'unitID':_0x1cc16e,'undoMutations':_0x2bbd94,'redoMutations':_0x28520a}),!0x0):!0x1;}},b={'type':t[_0x68cbee(0x1c3)][_0x68cbee(0x1da)],'id':_0x68cbee(0x1c4),'handler':(_0x57f1c9,_0x2be2a4)=>{const _0x173f3f=_0x68cbee;let _0x2834a4=(0x0,n[_0x173f3f(0x240)])(_0x57f1c9[_0x173f3f(0x218)](t['IUniverInstanceService']),_0x2be2a4);if(!_0x2834a4)return!0x1;let _0x30d0bb=_0x57f1c9[_0x173f3f(0x218)](n[_0x173f3f(0x252)]),{unitId:_0x141b4c,subUnitId:_0x24f1cb}=_0x2834a4,_0x1edabb=_0x30d0bb['getSkeleton'](_0x141b4c,_0x24f1cb);if(!_0x1edabb)return!0x1;let _0x5a9c97=_0x57f1c9['get'](r[_0x173f3f(0x216)]),{shapeId:_0x2521c5,rotate:_0x5bd75a}=_0x2be2a4,_0x25f7fd=_0x5a9c97[_0x173f3f(0x1ea)]({'unitId':_0x141b4c,'subUnitId':_0x24f1cb,'drawingId':_0x2521c5});if(!_0x25f7fd)return!0x1;let _0x108b1f=_0x57f1c9[_0x173f3f(0x218)](p)[_0x173f3f(0x19c)](_0x141b4c,_0x24f1cb,_0x2521c5);if(!_0x108b1f)return!0x1;let _0x58b607=_0x57f1c9['get'](t[_0x173f3f(0x298)]),_0x16c603=_0x57f1c9[_0x173f3f(0x218)](t[_0x173f3f(0x19d)]),_0x518a88=_0x57f1c9[_0x173f3f(0x218)](n[_0x173f3f(0x1ab)]),_0xcc0bd5={..._0x25f7fd[_0x173f3f(0x260)]};_0x5bd75a!==void 0x0&&(_0xcc0bd5[_0x173f3f(0x207)]=(_0xcc0bd5[_0x173f3f(0x207)]||0x0)+_0x5bd75a);let _0x7b942f=(0x0,r[_0x173f3f(0x1a2)])(_0xcc0bd5,_0x1edabb),_0x5791d7=(0x0,r[_0x173f3f(0x1bd)])(_0xcc0bd5,_0x1edabb),_0x519b4a=_0x108b1f[_0x173f3f(0x251)](),_0x55d1a1=_0x108b1f[_0x173f3f(0x23f)](),_0x2f874e={'unitId':_0x141b4c,'subUnitId':_0x24f1cb,'drawingId':_0x2521c5,'drawingType':t[_0x173f3f(0x222)][_0x173f3f(0x1e4)],'sheetTransform':_0x7b942f,'transform':_0xcc0bd5,'data':{'shapeType':_0x519b4a,'shapeData':_0x55d1a1},'axisAlignSheetTransform':_0x5791d7,'allowTransform':!0x0},{undo:_0x2e8f00,redo:_0x304ebb,objects:_0x5d9a36}=_0x5a9c97[_0x173f3f(0x198)]([_0x2f874e]),_0xe53a71=_0x518a88[_0x173f3f(0x245)]({'id':r[_0x173f3f(0x208)]['id'],'params':{'unitId':_0x141b4c,'drawings':[_0x2f874e]}}),_0x2543f3=[..._0xe53a71[_0x173f3f(0x24f)]??[],{'id':r[_0x173f3f(0x21a)]['id'],'params':{'unitId':_0x141b4c,'subUnitId':_0x24f1cb,'op':_0x304ebb,'objects':_0x5d9a36,'type':r[_0x173f3f(0x24a)]['UPDATE']}},{'id':r[_0x173f3f(0x1f7)]['id'],'params':[_0x141b4c]},..._0xe53a71[_0x173f3f(0x19e)]],_0x30fe32=[..._0xe53a71[_0x173f3f(0x241)]??[],{'id':r[_0x173f3f(0x21a)]['id'],'params':{'unitId':_0x141b4c,'subUnitId':_0x24f1cb,'op':_0x2e8f00,'objects':_0x5d9a36,'type':r[_0x173f3f(0x24a)][_0x173f3f(0x254)]}},{'id':r[_0x173f3f(0x1f7)]['id'],'params':[_0x141b4c]},..._0xe53a71[_0x173f3f(0x291)]];return(0x0,t[_0x173f3f(0x1f5)])(_0x2543f3,_0x58b607)[_0x173f3f(0x266)]?(_0x16c603[_0x173f3f(0x24e)]({'unitID':_0x141b4c,'undoMutations':_0x30fe32,'redoMutations':_0x2543f3}),!0x0):!0x1;}},x={'type':t[_0x68cbee(0x1c3)][_0x68cbee(0x1da)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x3cf806,_0x1e8a23)=>{const _0xeceaa7=_0x68cbee;let _0x138771=(0x0,n[_0xeceaa7(0x240)])(_0x3cf806[_0xeceaa7(0x218)](t['IUniverInstanceService']),_0x1e8a23);if(!_0x138771)return!0x1;let {unitId:_0xf1d483,subUnitId:_0x54c74c}=_0x138771,{shapeId:_0x722429}=_0x1e8a23,_0xb7d983=_0x3cf806[_0xeceaa7(0x218)](p)[_0xeceaa7(0x19c)](_0xf1d483,_0x54c74c,_0x722429);if(!_0xb7d983)return!0x1;let _0x5997e2=_0xb7d983[_0xeceaa7(0x25b)](),_0x3b5935=(_0x5997e2==null?void 0x0:_0x5997e2[_0xeceaa7(0x1fa)])??!0x0,_0x374697=!_0x3b5935,_0x5edd9e=_0x3cf806[_0xeceaa7(0x218)](t[_0xeceaa7(0x298)]),_0x21f9a5=_0x3cf806['get'](t[_0xeceaa7(0x19d)]),_0x256c7a={'unitId':_0xf1d483,'subUnitId':_0x54c74c,'shapeId':_0x722429,'shapeData':{'shapeText':{'isHorizontal':_0x374697}}},_0x155318={'unitId':_0xf1d483,'subUnitId':_0x54c74c,'shapeId':_0x722429,'shapeData':{'shapeText':{'isHorizontal':_0x3b5935}}},_0x171644=[{'id':_['id'],'params':_0x256c7a}],_0x36b1b1=[{'id':_['id'],'params':_0x155318}];return(0x0,t['sequenceExecute'])(_0x171644,_0x5edd9e)[_0xeceaa7(0x266)]?(_0x21f9a5[_0xeceaa7(0x24e)]({'unitID':_0xf1d483,'undoMutations':_0x36b1b1,'redoMutations':_0x171644}),!0x0):!0x1;}},S={'type':t['CommandType'][_0x68cbee(0x1da)],'id':'sheet.command.update-connector-relation','handler':(_0x22c10a,_0x1c80ee)=>{const _0x3c1cb0=_0x68cbee;var _0xd5f5c7;let _0x2a2bd4=(0x0,n['getSheetCommandTarget'])(_0x22c10a[_0x3c1cb0(0x218)](t[_0x3c1cb0(0x276)]),_0x1c80ee);if(!_0x2a2bd4)return!0x1;let _0x4f19e2=_0x22c10a['get'](n[_0x3c1cb0(0x252)]),{unitId:_0x3e0944,subUnitId:_0x3eed7c}=_0x2a2bd4,_0x515bd8=_0x4f19e2['getSkeleton'](_0x3e0944,_0x3eed7c);if(!_0x515bd8)return!0x1;let _0x1392f1=_0x22c10a[_0x3c1cb0(0x218)](r[_0x3c1cb0(0x216)]),{connectorShapeId:_0xafb6f1,width:_0x1fc288,height:_0x4d9489,left:_0x9d7f53,top:_0x3bf52c,flipX:_0x4dedd0,flipY:_0x5c9ba5,rotation:_0x5df70f,oldAdjustValues:_0x2fdf55,newAdjustValues:_0x263caa,oldLineType:_0xb2e643,newLineType:_0x5666dd,oldRelation:_0x2c624c,newRelation:_0x150fae}=_0x1c80ee,_0x4936e6=_0x1392f1[_0x3c1cb0(0x1ea)]({'unitId':_0x3e0944,'subUnitId':_0x3eed7c,'drawingId':_0xafb6f1});if(!_0x4936e6)return!0x1;let _0x34ece0=_0x22c10a['get'](p)[_0x3c1cb0(0x19c)](_0x3e0944,_0x3eed7c,_0xafb6f1);if(!_0x34ece0)return!0x1;let _0x4b21ee=_0x22c10a['get'](t[_0x3c1cb0(0x298)]),_0x4a47ee=_0x22c10a[_0x3c1cb0(0x218)](t[_0x3c1cb0(0x19d)]),_0x1b581c=_0x22c10a[_0x3c1cb0(0x218)](n[_0x3c1cb0(0x1ab)]),_0x422ba3={..._0x4936e6[_0x3c1cb0(0x260)],'width':_0x1fc288,'height':_0x4d9489,'left':_0x9d7f53,'top':_0x3bf52c,'flipX':_0x4dedd0,'flipY':_0x5c9ba5,'angle':_0x5df70f??((_0xd5f5c7=_0x4936e6[_0x3c1cb0(0x260)])==null?void 0x0:_0xd5f5c7['angle'])??0x0},_0x5379f0=(0x0,r[_0x3c1cb0(0x1a2)])(_0x422ba3,_0x515bd8),_0x476222=(0x0,r[_0x3c1cb0(0x1bd)])(_0x422ba3,_0x515bd8),_0x1469de=_0x34ece0[_0x3c1cb0(0x251)](),_0x1131f1=_0x34ece0['getShapeData'](),_0x403bee={'unitId':_0x3e0944,'subUnitId':_0x3eed7c,'drawingId':_0xafb6f1,'drawingType':t[_0x3c1cb0(0x222)][_0x3c1cb0(0x1e4)],'sheetTransform':_0x5379f0,'transform':_0x422ba3,'data':{'shapeType':_0x5666dd||_0xb2e643||_0x1469de,'shapeData':{..._0x1131f1,'adjustValues':_0x263caa||_0x2fdf55||(_0x1131f1==null?void 0x0:_0x1131f1[_0x3c1cb0(0x206)]),'relation':_0x150fae||_0x2c624c||(_0x1131f1==null?void 0x0:_0x1131f1['relation'])}},'axisAlignSheetTransform':_0x476222,'allowTransform':!0x0},{undo:_0x52284c,redo:_0x2919e5,objects:_0x176fff}=_0x1392f1['getBatchUpdateOp']([_0x403bee]),_0x185a62=_0x1b581c[_0x3c1cb0(0x245)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3e0944,'drawings':[_0x403bee]}}),_0x729659=[..._0x185a62['preRedos']??[],{'id':r[_0x3c1cb0(0x21a)]['id'],'params':{'unitId':_0x3e0944,'subUnitId':_0x3eed7c,'op':_0x2919e5,'objects':_0x176fff,'type':r[_0x3c1cb0(0x24a)][_0x3c1cb0(0x254)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3e0944]},..._0x185a62[_0x3c1cb0(0x19e)],{'id':_['id'],'params':{'unitId':_0x3e0944,'subUnitId':_0x3eed7c,'shapeId':_0xafb6f1,'shapeType':_0x5666dd,'shapeData':{'adjustValues':_0x263caa,'relation':_0x150fae}}}],_0x2c863a=[..._0x185a62['preUndos']??[],{'id':r[_0x3c1cb0(0x21a)]['id'],'params':{'unitId':_0x3e0944,'subUnitId':_0x3eed7c,'op':_0x52284c,'objects':_0x176fff,'type':r[_0x3c1cb0(0x24a)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3e0944]},..._0x185a62[_0x3c1cb0(0x291)],{'id':_['id'],'params':{'unitId':_0x3e0944,'subUnitId':_0x3eed7c,'shapeId':_0xafb6f1,'shapeType':_0x1469de,'shapeData':{..._0x1131f1,'adjustValues':_0x2fdf55||(_0x1131f1==null?void 0x0:_0x1131f1[_0x3c1cb0(0x206)]),'relation':_0x2c624c||(_0x1131f1==null?void 0x0:_0x1131f1[_0x3c1cb0(0x248)])}}}];return(0x0,t[_0x3c1cb0(0x1f5)])(_0x729659,_0x4b21ee)[_0x3c1cb0(0x266)]?(_0x4a47ee[_0x3c1cb0(0x24e)]({'unitID':_0x3e0944,'undoMutations':_0x2c863a,'redoMutations':_0x729659}),!0x0):!0x1;}},C={'type':t[_0x68cbee(0x1c3)]['COMMAND'],'id':_0x68cbee(0x283),'handler':(_0x1c379b,_0x477dae)=>{const _0x21f54a=_0x68cbee;let _0x126e8a=(0x0,n[_0x21f54a(0x240)])(_0x1c379b[_0x21f54a(0x218)](t['IUniverInstanceService']),_0x477dae);if(!_0x126e8a)return!0x1;let _0x990be=_0x1c379b['get'](n[_0x21f54a(0x252)]),{unitId:_0x23f926,subUnitId:_0x213b29}=_0x126e8a,_0x50527d=_0x990be[_0x21f54a(0x22d)](_0x23f926,_0x213b29);if(!_0x50527d)return!0x1;let _0x632e9=_0x1c379b[_0x21f54a(0x218)](r['ISheetDrawingService']),{shapeId:_0x202c55,width:_0x4cddc8,height:_0x20676a,left:_0x13fb21,top:_0x1b8076,flipX:_0xcb0544,flipY:_0x49c9bb,angle:_0x2b5507,oldAdjustValues:_0x30b8ab,newAdjustValues:_0x17cc92,oldLineType:_0x4860bb,newLineType:_0x46e850}=_0x477dae,_0x544656=_0x632e9[_0x21f54a(0x1ea)]({'unitId':_0x23f926,'subUnitId':_0x213b29,'drawingId':_0x202c55});if(!_0x544656)return!0x1;let _0x2c2840=_0x1c379b['get'](p)[_0x21f54a(0x19c)](_0x23f926,_0x213b29,_0x202c55);if(!_0x2c2840)return!0x1;let _0x1aee3f=_0x1c379b[_0x21f54a(0x218)](t[_0x21f54a(0x298)]),_0x3bb1c6=_0x1c379b[_0x21f54a(0x218)](t[_0x21f54a(0x19d)]),_0xe8e33d=_0x1c379b[_0x21f54a(0x218)](n[_0x21f54a(0x1ab)]),_0x42eb99={..._0x544656['transform'],'width':_0x4cddc8,'height':_0x20676a,'left':_0x13fb21,'top':_0x1b8076,'flipX':_0xcb0544,'flipY':_0x49c9bb,'angle':_0x2b5507},_0x2c87f0=(0x0,r[_0x21f54a(0x1a2)])(_0x42eb99,_0x50527d),_0x5028e2=(0x0,r[_0x21f54a(0x1bd)])(_0x42eb99,_0x50527d),_0x4e2913=_0x2c2840[_0x21f54a(0x251)](),_0x4674fa=_0x2c2840['getShapeData'](),_0x1bad81={'unitId':_0x23f926,'subUnitId':_0x213b29,'drawingId':_0x202c55,'drawingType':t['DrawingTypeEnum'][_0x21f54a(0x1e4)],'sheetTransform':_0x2c87f0,'transform':_0x42eb99,'data':{'shapeType':_0x46e850||_0x4860bb||_0x4e2913,'shapeData':{..._0x4674fa,'adjustValues':_0x17cc92||_0x30b8ab||(_0x4674fa==null?void 0x0:_0x4674fa[_0x21f54a(0x206)])}},'axisAlignSheetTransform':_0x5028e2,'allowTransform':!0x0},{undo:_0x578f9c,redo:_0x3327cd,objects:_0x3948d9}=_0x632e9[_0x21f54a(0x198)]([_0x1bad81]),_0x39970f=_0xe8e33d[_0x21f54a(0x245)]({'id':r[_0x21f54a(0x208)]['id'],'params':{'unitId':_0x23f926,'drawings':[_0x1bad81]}}),_0x1b6099=[..._0x39970f[_0x21f54a(0x24f)]??[],{'id':r[_0x21f54a(0x21a)]['id'],'params':{'unitId':_0x23f926,'subUnitId':_0x213b29,'op':_0x3327cd,'objects':_0x3948d9,'type':r[_0x21f54a(0x24a)]['UPDATE']}},{'id':r[_0x21f54a(0x1f7)]['id'],'params':[_0x23f926]},..._0x39970f[_0x21f54a(0x19e)],{'id':_['id'],'params':{'unitId':_0x23f926,'subUnitId':_0x213b29,'shapeId':_0x202c55,'shapeType':_0x46e850,'shapeData':{'adjustValues':_0x17cc92}}}],_0x120df7=[..._0x39970f['preUndos']??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23f926,'subUnitId':_0x213b29,'op':_0x578f9c,'objects':_0x3948d9,'type':r[_0x21f54a(0x24a)]['UPDATE']}},{'id':r[_0x21f54a(0x1f7)]['id'],'params':[_0x23f926]},..._0x39970f[_0x21f54a(0x291)],{'id':_['id'],'params':{'unitId':_0x23f926,'subUnitId':_0x213b29,'shapeId':_0x202c55,'shapeType':_0x4e2913,'shapeData':{..._0x4674fa,'adjustValues':_0x30b8ab||(_0x4674fa==null?void 0x0:_0x4674fa['adjustValues'])}}}];return(0x0,t[_0x21f54a(0x1f5)])(_0x1b6099,_0x1aee3f)[_0x21f54a(0x266)]?(_0x3bb1c6[_0x21f54a(0x24e)]({'unitID':_0x23f926,'undoMutations':_0x120df7,'redoMutations':_0x1b6099}),!0x0):!0x1;}},w={'id':_0x68cbee(0x246),'type':t[_0x68cbee(0x1c3)][_0x68cbee(0x1f2)],'handler':(_0x3a9f1d,_0x49e542)=>{const _0x4c1558=_0x68cbee;let {unitId:_0x30813c,subUnitId:_0x29a898,shapeType:_0x5f1fc4,shapeId:_0x380f69,shapeData:_0x140e4c}=_0x49e542,_0x28b013=_0x3a9f1d[_0x4c1558(0x218)](p)[_0x4c1558(0x19c)](_0x30813c,_0x29a898,_0x380f69);return _0x28b013&&(_0x28b013[_0x4c1558(0x1b1)](_0x5f1fc4),_0x140e4c&&(_0x28b013==null||_0x28b013['setShapeData'](_0x140e4c))),!0x0;}};var T=_0x68cbee(0x25e),E='1.3.1';function D(_0x2ce337){const _0x4c52fc=_0x68cbee;var _0x1b5399,_0x3b2eca,_0xfbfe28,_0xc2bb3c,_0x3d3297,_0x3bd0b5,_0x860493;return{'left':((_0x1b5399=_0x2ce337[_0x4c52fc(0x260)])==null?void 0x0:_0x1b5399[_0x4c52fc(0x1ca)])??0x0,'top':((_0x3b2eca=_0x2ce337[_0x4c52fc(0x260)])==null?void 0x0:_0x3b2eca[_0x4c52fc(0x253)])??0x0,'width':((_0xfbfe28=_0x2ce337[_0x4c52fc(0x260)])==null?void 0x0:_0xfbfe28[_0x4c52fc(0x227)])??0xc8,'height':((_0xc2bb3c=_0x2ce337[_0x4c52fc(0x260)])==null?void 0x0:_0xc2bb3c[_0x4c52fc(0x295)])??0xc8,'rotation':((_0x3d3297=_0x2ce337[_0x4c52fc(0x260)])==null?void 0x0:_0x3d3297[_0x4c52fc(0x286)])??0x0,'flipX':((_0x3bd0b5=_0x2ce337['transform'])==null?void 0x0:_0x3bd0b5[_0x4c52fc(0x1c9)])??!0x1,'flipY':((_0x860493=_0x2ce337[_0x4c52fc(0x260)])==null?void 0x0:_0x860493['flipY'])??!0x1};}let O=class{constructor(_0x26eed4,_0x19dbec,_0x37b1e5,_0x963e9c){const _0x469575=_0x68cbee;this[_0x469575(0x27a)]=_0x26eed4,this[_0x469575(0x289)]=_0x19dbec,this[_0x469575(0x272)]=_0x37b1e5,this[_0x469575(0x1c6)]=_0x963e9c,l(this,_0x469575(0x1db),t[_0x469575(0x235)]['UNIVER_SHEET']);}get[_0x68cbee(0x280)](){return{'subscribe':_0xb66f1=>{const _0x34f687=_0xb428;let _0x3163d5=this['_commandService'][_0x34f687(0x269)](_0x1fba33=>{const _0x3a32f1=_0x34f687;(_0x1fba33['id']===m['id']||_0x1fba33['id']===h['id']||_0x1fba33['id']===_['id']||_0x1fba33['id']===w['id'])&&_0xb66f1({'unitId':_0x1fba33['params'][_0x3a32f1(0x1bf)]});});return{'unsubscribe':()=>_0x3163d5[_0x34f687(0x1dd)]()};}};}[_0x68cbee(0x25f)](_0x34bcd0){const _0x353b55=_0x68cbee;var _0x39764e;let _0x1fd18e=(_0x39764e=this['_drawingService'][_0x353b55(0x1b8)](_0x34bcd0[_0x353b55(0x1bf)],_0x34bcd0[_0x353b55(0x281)]))==null?void 0x0:_0x39764e[_0x34bcd0[_0x353b55(0x243)]],_0x3ff7e2=this[_0x353b55(0x289)][_0x353b55(0x251)](_0x34bcd0[_0x353b55(0x1bf)],_0x34bcd0['subUnitId'],_0x34bcd0['shapeId']);if(!_0x1fd18e||_0x1fd18e['drawingType']!==t[_0x353b55(0x222)]['DRAWING_SHAPE']||!_0x3ff7e2)return null;let _0x46bdec=_0x1fd18e['transform'];return{..._0x34bcd0,'shapeType':_0x3ff7e2,'shapeData':t[_0x353b55(0x25d)]['deepClone'](this[_0x353b55(0x289)]['getShapeDataById'](_0x34bcd0['unitId'],_0x34bcd0[_0x353b55(0x281)],_0x34bcd0[_0x353b55(0x243)])??{}),'name':_0x1fd18e[_0x353b55(0x265)],'description':_0x1fd18e[_0x353b55(0x1b0)],'visible':_0x1fd18e[_0x353b55(0x1d5)]!==!0x0,'selectable':_0x1fd18e[_0x353b55(0x1eb)]!==!0x1,'transform':{'left':(_0x46bdec==null?void 0x0:_0x46bdec[_0x353b55(0x1ca)])??0x0,'top':(_0x46bdec==null?void 0x0:_0x46bdec[_0x353b55(0x253)])??0x0,'width':(_0x46bdec==null?void 0x0:_0x46bdec['width'])??0xc8,'height':(_0x46bdec==null?void 0x0:_0x46bdec['height'])??0xc8,'rotation':(_0x46bdec==null?void 0x0:_0x46bdec[_0x353b55(0x207)])??0x0,'flipX':(_0x46bdec==null?void 0x0:_0x46bdec[_0x353b55(0x1c9)])??!0x1,'flipY':(_0x46bdec==null?void 0x0:_0x46bdec[_0x353b55(0x258)])??!0x1}};}['listShapes'](_0xd565a7){const _0x18f349=_0x68cbee;let _0x4e33c6=this[_0x18f349(0x272)][_0x18f349(0x1b8)](_0xd565a7[_0x18f349(0x1bf)],_0xd565a7[_0x18f349(0x281)])??{};return Object['values'](_0x4e33c6)['filter'](_0x45c788=>(_0x45c788==null?void 0x0:_0x45c788['drawingType'])===t[_0x18f349(0x222)]['DRAWING_SHAPE'])[_0x18f349(0x27d)](_0x29bd2e=>this['getShape']({..._0xd565a7,'shapeId':_0x29bd2e['drawingId']}))[_0x18f349(0x20a)](_0x5812a7=>!!_0x5812a7);}['listShapesInUnit'](_0x25d314){const _0x16e687=_0x68cbee;let _0x226f6a=this[_0x16e687(0x1c6)][_0x16e687(0x25c)](_0x25d314,t['UniverInstanceType']['UNIVER_SHEET']);return(_0x226f6a==null?void 0x0:_0x226f6a[_0x16e687(0x1a5)]()['flatMap'](_0x4a6ddf=>this[_0x16e687(0x1fc)]({'hostType':this[_0x16e687(0x1db)],'unitId':_0x25d314,'subUnitId':_0x4a6ddf[_0x16e687(0x1a9)]()})))??[];}[_0x68cbee(0x1b6)](_0x32e624,_0x4a06c1){const _0x340bf3=_0x68cbee;let _0x2ec906=(0x0,t[_0x340bf3(0x20e)])(),_0x33f35d=D(_0x4a06c1),_0x6b1e80=t['Tools'][_0x340bf3(0x1c2)](_0x4a06c1[_0x340bf3(0x237)]??(0x0,e[_0x340bf3(0x234)])(_0x4a06c1[_0x340bf3(0x256)]));return this[_0x340bf3(0x27a)][_0x340bf3(0x271)](g['id'],{'unitId':_0x32e624[_0x340bf3(0x1bf)],'subUnitId':_0x32e624['subUnitId'],'shapeId':_0x2ec906,'shapeType':_0x4a06c1[_0x340bf3(0x256)],'shapeData':_0x6b1e80,'name':_0x4a06c1[_0x340bf3(0x265)],'description':_0x4a06c1[_0x340bf3(0x1b0)],'position':{'x':_0x33f35d[_0x340bf3(0x1ca)],'y':_0x33f35d[_0x340bf3(0x253)]},'width':_0x33f35d[_0x340bf3(0x227)],'height':_0x33f35d[_0x340bf3(0x295)],'rotation':_0x33f35d[_0x340bf3(0x286)],'flipX':_0x33f35d[_0x340bf3(0x1c9)],'flipY':_0x33f35d[_0x340bf3(0x258)],'visible':_0x4a06c1[_0x340bf3(0x275)]??!0x0,'selectable':_0x4a06c1[_0x340bf3(0x1eb)]??!0x0})?{..._0x32e624,'shapeId':_0x2ec906,'shapeType':_0x4a06c1[_0x340bf3(0x256)],'shapeData':_0x6b1e80,'name':_0x4a06c1[_0x340bf3(0x265)],'description':_0x4a06c1[_0x340bf3(0x1b0)],'visible':_0x4a06c1[_0x340bf3(0x275)]??!0x0,'selectable':_0x4a06c1[_0x340bf3(0x1eb)]??!0x0,'transform':_0x33f35d}:null;}['updateShape'](_0x4c97c0,_0x294b2c){const _0x146f78=_0x68cbee;var _0x376aef;let _0x1b30d6=this[_0x146f78(0x25f)](_0x4c97c0);if(!_0x1b30d6)return!0x1;let _0xf9d805={..._0x1b30d6[_0x146f78(0x260)],..._0x294b2c[_0x146f78(0x260)]};return this[_0x146f78(0x27a)][_0x146f78(0x271)](v['id'],{'unitId':_0x4c97c0[_0x146f78(0x1bf)],'subUnitId':_0x4c97c0[_0x146f78(0x281)],'shapeId':_0x4c97c0[_0x146f78(0x243)],'shapeType':_0x294b2c['shapeType']??((_0x376aef=_0x294b2c['shapeData'])==null?void 0x0:_0x376aef[_0x146f78(0x256)])??_0x1b30d6[_0x146f78(0x256)],'shapeData':_0x294b2c[_0x146f78(0x237)]??_0x1b30d6[_0x146f78(0x237)],'position':{'x':_0xf9d805['left'],'y':_0xf9d805[_0x146f78(0x253)]},'width':_0xf9d805[_0x146f78(0x227)],'height':_0xf9d805[_0x146f78(0x295)],'rotation':_0xf9d805[_0x146f78(0x286)],'flipX':_0xf9d805['flipX'],'flipY':_0xf9d805['flipY'],'name':_0x146f78(0x265)in _0x294b2c?_0x294b2c[_0x146f78(0x265)]:_0x1b30d6[_0x146f78(0x265)],'description':_0x146f78(0x1b0)in _0x294b2c?_0x294b2c[_0x146f78(0x1b0)]:_0x1b30d6[_0x146f78(0x1b0)],'visible':_0x294b2c[_0x146f78(0x275)]??_0x1b30d6[_0x146f78(0x275)],'selectable':_0x294b2c[_0x146f78(0x1eb)]??_0x1b30d6[_0x146f78(0x1eb)]});}[_0x68cbee(0x26e)](_0x1108d3,_0x5ec0b3,_0x4f3ae7){const _0x30175f=_0x68cbee;let _0x5306a3=this[_0x30175f(0x25f)](_0x1108d3),_0x2f105f=_0x5306a3==null?void 0x0:_0x5306a3['shapeData'][_0x30175f(0x294)];return!_0x5306a3||!_0x2f105f?null:{'id':_['id'],'params':{'unitId':_0x1108d3[_0x30175f(0x1bf)],'subUnitId':_0x1108d3[_0x30175f(0x281)],'shapeId':_0x1108d3[_0x30175f(0x243)],'shapeData':{..._0x5306a3[_0x30175f(0x237)],'formulaBinding':{..._0x2f105f,'lastValue':t['Tools'][_0x30175f(0x1c2)](_0x4f3ae7)}},'replace':!0x0,'formulaLastValueGuard':_0x5ec0b3}};}[_0x68cbee(0x1e3)](_0x2911ad){const _0x1cf2c3=_0x68cbee;return this[_0x1cf2c3(0x27a)]['syncExecuteCommand'](r[_0x1cf2c3(0x1de)]['id'],{'unitId':_0x2911ad['unitId'],'drawings':[{'unitId':_0x2911ad[_0x1cf2c3(0x1bf)],'subUnitId':_0x2911ad[_0x1cf2c3(0x281)],'drawingId':_0x2911ad[_0x1cf2c3(0x243)],'drawingType':t[_0x1cf2c3(0x222)][_0x1cf2c3(0x1e4)]}]});}[_0x68cbee(0x1a0)](_0x33f6ad){const _0xe74202=_0x68cbee;return this[_0xe74202(0x267)](_0x33f6ad,t[_0xe74202(0x28f)][_0xe74202(0x221)]);}['bringForward'](_0x9001ee){const _0x407ea7=_0x68cbee;return this[_0x407ea7(0x267)](_0x9001ee,t[_0x407ea7(0x28f)][_0x407ea7(0x28b)]);}['sendBackward'](_0x52ec1a){const _0x107893=_0x68cbee;return this['_arrange'](_0x52ec1a,t[_0x107893(0x28f)][_0x107893(0x23e)]);}[_0x68cbee(0x285)](_0x53e68b){const _0x169869=_0x68cbee;return this[_0x169869(0x267)](_0x53e68b,t[_0x169869(0x28f)][_0x169869(0x273)]);}['setZOrder'](_0x59c3ba,_0x24c495){const _0x8f14bc=_0x68cbee;return this[_0x8f14bc(0x27a)]['syncExecuteCommand'](r[_0x8f14bc(0x299)]['id'],{'unitId':_0x59c3ba[_0x8f14bc(0x1bf)],'subUnitId':_0x59c3ba[_0x8f14bc(0x281)],'drawingIds':[_0x59c3ba['shapeId']],'zOrder':_0x24c495});}[_0x68cbee(0x267)](_0x212ac7,_0x5e175d){const _0x497921=_0x68cbee;return this['_commandService'][_0x497921(0x271)](r[_0x497921(0x299)]['id'],{'unitId':_0x212ac7[_0x497921(0x1bf)],'subUnitId':_0x212ac7[_0x497921(0x281)],'drawingIds':[_0x212ac7[_0x497921(0x243)]],'arrangeType':_0x5e175d});}};O=f([d(0x0,t[_0x68cbee(0x298)]),d(0x1,(0x0,t[_0x68cbee(0x233)])(p)),d(0x2,r[_0x68cbee(0x216)]),d(0x3,t[_0x68cbee(0x276)])],O);const k={};let A=class extends t[_0x68cbee(0x259)]{constructor(_0x58fd93,_0x441134,_0x26b03f,_0x5ca5d5,_0x568bda,_0x13d770,_0x14d74a){const _0x2ccb71=_0x68cbee;super(),this[_0x2ccb71(0x27a)]=_0x58fd93,this['_sheetInterceptorService']=_0x441134,this[_0x2ccb71(0x1d3)]=_0x26b03f,this[_0x2ccb71(0x19a)]=_0x5ca5d5,this['_drawingManagerService']=_0x568bda,this[_0x2ccb71(0x1c0)]=_0x13d770,this[_0x2ccb71(0x211)](),this['_initCommandInterceptor'](),this[_0x2ccb71(0x1ed)](this[_0x2ccb71(0x1c0)]['register'](_0x14d74a));}['_initCommands'](){const _0x38310f=_0x68cbee;[g,v,y,b,x,S,C,m,h,w,_][_0x38310f(0x26d)](_0xfa7ccd=>this[_0x38310f(0x1ed)](this[_0x38310f(0x27a)][_0x38310f(0x28e)](_0xfa7ccd)));}[_0x68cbee(0x202)](){const _0x502049=_0x68cbee;this[_0x502049(0x1ed)](this[_0x502049(0x1c5)]['interceptCommand']({'getMutations':_0x126f91=>{const _0x56ed0c=_0x502049;if(_0x126f91['id']===r[_0x56ed0c(0x1de)]['id']){let {drawings:_0x2d5296}=_0x126f91[_0x56ed0c(0x1fb)],_0x2966d6=_0x2d5296['filter'](_0x533562=>_0x533562[_0x56ed0c(0x1e1)]===t[_0x56ed0c(0x222)][_0x56ed0c(0x1e4)]);if(_0x2966d6['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x38a1ad=[],_0x5f1dfa=[];return _0x2966d6[_0x56ed0c(0x26d)](_0xe87288=>{const _0x109c0c=_0x56ed0c;let {unitId:_0x3e3b09,subUnitId:_0x370c6d,drawingId:_0x25d0f5}=_0xe87288,_0x13f756=this[_0x109c0c(0x19a)][_0x109c0c(0x19c)](_0x3e3b09,_0x370c6d,_0x25d0f5);if(!_0x13f756)throw TypeError(_0x109c0c(0x1af)+_0x13f756);_0x38a1ad[_0x109c0c(0x284)]({'id':h['id'],'params':{'unitId':_0x3e3b09,'subUnitId':_0x370c6d,'shapeId':_0x25d0f5}}),_0x5f1dfa[_0x109c0c(0x284)]({'id':m['id'],'params':{'unitId':_0x3e3b09,'subUnitId':_0x370c6d,'shapeId':_0x25d0f5,'shapeType':_0x13f756[_0x109c0c(0x251)](),'shapeData':_0x13f756[_0x109c0c(0x23f)]()}});let _0x4228c3=this[_0x109c0c(0x19a)]['getBasicShapeRelation'](_0x3e3b09,_0x370c6d,_0x25d0f5);if(_0x4228c3)for(let _0x363bd0 of _0x4228c3){let _0x1bd147=_0x363bd0[_0x109c0c(0x1cb)],_0x1d2eaf=_0x363bd0[_0x109c0c(0x22c)],_0x1ff72d=_0x1d2eaf?{'from':void 0x0}:{'to':void 0x0},_0x5d31a9=_0x1d2eaf?{'from':{'shapeId':_0x363bd0['shapeId'],'cxnIndex':_0x363bd0['cxnIndex']}}:{'to':{'shapeId':_0x363bd0[_0x109c0c(0x243)],'cxnIndex':_0x363bd0[_0x109c0c(0x29a)]}};_0x38a1ad[_0x109c0c(0x284)]({'id':_['id'],'params':{'unitId':_0x3e3b09,'subUnitId':_0x370c6d,'shapeId':_0x1bd147,'shapeData':{'relation':_0x1ff72d}}}),_0x5f1dfa['push']({'id':_['id'],'params':{'unitId':_0x3e3b09,'subUnitId':_0x370c6d,'shapeId':_0x1bd147,'shapeData':{'relation':_0x5d31a9}}});}}),{'preRedos':_0x38a1ad,'redos':[],'preUndos':[],'undos':_0x5f1dfa};}if(_0x126f91['id']===r[_0x56ed0c(0x208)]['id']){let {drawings:_0x3e4692}=_0x126f91[_0x56ed0c(0x1fb)],_0xd9ea4=_0x3e4692['filter'](_0x484b87=>_0x484b87[_0x56ed0c(0x1e1)]===t[_0x56ed0c(0x222)]['DRAWING_SHAPE']);if(_0xd9ea4['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xd9a001=[],_0x3641ee=[];for(let _0xb87ad2 of _0xd9ea4){let {unitId:_0x28805a,subUnitId:_0xdf7969,drawingId:_0x547c8f,transform:_0x33f2de}=_0xb87ad2;if(!_0x28805a||!_0xdf7969||!_0x547c8f||!_0x33f2de)continue;let _0x14d3dd=this[_0x56ed0c(0x19a)][_0x56ed0c(0x19c)](_0x28805a,_0xdf7969,_0x547c8f);if(!_0x14d3dd)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x14d3dd);let _0x389198=_0x14d3dd['getShapeType']();if((0x0,e[_0x56ed0c(0x22b)])(_0x389198)){let _0x2ff1f2=this['_sheetsShapeService']['getLineShapeRelation'](_0x28805a,_0xdf7969,_0x547c8f);_0x2ff1f2&&(_0xd9a001[_0x56ed0c(0x284)]({'id':_['id'],'params':{'unitId':_0x28805a,'subUnitId':_0xdf7969,'shapeId':_0x547c8f,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3641ee['push']({'id':_['id'],'params':{'unitId':_0x28805a,'subUnitId':_0xdf7969,'shapeId':_0x547c8f,'shapeData':{'relation':_0x2ff1f2}}}));}else{let _0x513d73=this[_0x56ed0c(0x19a)][_0x56ed0c(0x1a3)](_0x28805a,_0xdf7969,_0x547c8f);if(_0x513d73&&_0x513d73[_0x56ed0c(0x1f9)]>0x0)for(let _0x5db4f9 of _0x513d73){let _0x48b904=_0x5db4f9[_0x56ed0c(0x1cb)],_0x54012a=_0x5db4f9[_0x56ed0c(0x22c)],_0x26d584=this[_0x56ed0c(0x19a)][_0x56ed0c(0x19c)](_0x28805a,_0xdf7969,_0x48b904);if(!_0x26d584)continue;let _0xaaf99a=_0x26d584[_0x56ed0c(0x226)](),_0x593092=_0x26d584[_0x56ed0c(0x293)]();_0xaaf99a&&_0x593092?this[_0x56ed0c(0x1d6)](_0x28805a,_0xdf7969,_0x48b904,_0x26d584,_0xaaf99a,_0x593092,_0xd9a001,_0x3641ee,_0x547c8f,_0x33f2de):this[_0x56ed0c(0x1f0)](_0x28805a,_0xdf7969,_0x48b904,_0x26d584,_0x54012a?_0xaaf99a:_0x593092,_0x54012a,_0xd9a001,_0x3641ee,_0x547c8f,_0x33f2de);}}}return{'preRedos':[],'redos':_0xd9a001,'preUndos':_0x3641ee,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x102a65,_0x1ab423,_0x418ef1,_0x35b0eb,_0x413b5c){const _0xc7845b=_0x68cbee;if(!_0x1ab423||!_0x418ef1)return null;let {shapeId:_0x2ba04d,cxnIndex:_0x8ca874}=_0x102a65,_0xea7849=this[_0xc7845b(0x19a)][_0xc7845b(0x19c)](_0x1ab423,_0x418ef1,_0x2ba04d);if(!_0xea7849)return null;let _0xcd6ec0=this[_0xc7845b(0x274)]['getDrawingByParam']({'unitId':_0x1ab423,'subUnitId':_0x418ef1,'drawingId':_0x2ba04d});if(!(_0xcd6ec0!=null&&_0xcd6ec0[_0xc7845b(0x260)]))return null;let {left:_0x293fcc=0x0,top:_0x52faa2=0x0,width:_0x53a145=0x0,height:_0x210b7e=0x0,flipX:_0x5b9855=!0x1,flipY:_0x2f4204=!0x1,angle:_0x4abdb9}=_0xcd6ec0[_0xc7845b(0x260)];_0x413b5c&&_0x35b0eb===_0x2ba04d&&(_0x293fcc=_0x413b5c[_0xc7845b(0x1ca)]??_0x293fcc,_0x52faa2=_0x413b5c[_0xc7845b(0x253)]??_0x52faa2,_0x53a145=_0x413b5c[_0xc7845b(0x227)]??_0x53a145,_0x210b7e=_0x413b5c['height']??_0x210b7e,_0x5b9855=_0x413b5c[_0xc7845b(0x1c9)]??_0x5b9855,_0x2f4204=_0x413b5c[_0xc7845b(0x258)]??_0x2f4204,_0x4abdb9=_0x413b5c['angle']??_0x4abdb9),_0xea7849['updateContext']({'width':_0x53a145,'height':_0x210b7e});let _0x175656=_0xea7849[_0xc7845b(0x1a6)]()['find'](_0x3ee5cc=>_0x3ee5cc['index']===_0x8ca874);if(!_0x175656)return null;let _0xc9d82f=_0x5b9855?_0x53a145-_0x175656['x']:_0x175656['x'],_0x4d438a=_0x2f4204?_0x210b7e-_0x175656['y']:_0x175656['y'];if(_0x4abdb9!==0x0&&_0x4abdb9!=null){let _0x44a94e=_0x4abdb9*Math['PI']/0xb4,_0x1ccaa6=Math[_0xc7845b(0x21d)](_0x44a94e),_0x3b076d=Math[_0xc7845b(0x24d)](_0x44a94e),_0x4281c9=_0x53a145/0x2,_0x372af5=_0x210b7e/0x2,_0x5d96c0=_0xc9d82f-_0x4281c9,_0x155bfe=_0x4d438a-_0x372af5;_0xc9d82f=_0x4281c9+_0x5d96c0*_0x1ccaa6-_0x155bfe*_0x3b076d,_0x4d438a=_0x372af5+_0x5d96c0*_0x3b076d+_0x155bfe*_0x1ccaa6;}_0xc9d82f+=_0x293fcc,_0x4d438a+=_0x52faa2;let _0x4a22f1=_0x175656[_0xc7845b(0x26a)]/0xea60;_0x5b9855&&(_0x4a22f1=0xb4-_0x4a22f1),_0x2f4204&&(_0x4a22f1=-_0x4a22f1),_0x4a22f1+=_0x4abdb9||0x0,_0x4a22f1=(_0x4a22f1%0x168+0x168)%0x168;let _0x468235=(0x0,e['getBasicShapeRotateBound'])({'left':_0x293fcc,'top':_0x52faa2,'width':_0x53a145,'height':_0x210b7e},_0x4abdb9||0x0);return{'point':{'x':_0xc9d82f,'y':_0x4d438a},'angle':_0x4a22f1,'bounds':_0x468235};}[_0x68cbee(0x1d6)](_0x356c68,_0x15cbd5,_0xd51694,_0x187dc9,_0x5192b7,_0x23a4dd,_0x345ff6,_0x54315c,_0xeffb22,_0x407495){const _0x2c1663=_0x68cbee;let _0x28794b=this[_0x2c1663(0x1d3)][_0x2c1663(0x22d)](_0x356c68,_0x15cbd5);if(!_0x28794b)return;let _0x16f509=_0x187dc9[_0x2c1663(0x277)](),_0x3cfb78=_0x187dc9[_0x2c1663(0x239)](),_0xdc1d3b={},_0x2505bf={};_0x3cfb78['forEach'](_0xfff913=>{const _0x20330c=_0x2c1663;let _0x57e1ed=_0x187dc9[_0x20330c(0x200)](_0xfff913);_0x2505bf[_0xfff913]=_0x57e1ed??0x0;});let _0xe93934=this[_0x2c1663(0x263)](_0x5192b7,_0x356c68,_0x15cbd5,_0xeffb22,_0x407495),_0x9b35f9=this[_0x2c1663(0x263)](_0x23a4dd,_0x356c68,_0x15cbd5,_0xeffb22,_0x407495);if(_0xe93934&&_0x9b35f9){let _0x1aee67=_0x187dc9[_0x2c1663(0x251)](),_0x3d7848=(0x0,e[_0x2c1663(0x1ef)])(_0xe93934,_0x9b35f9,_0x1aee67),_0x17f13c=_0x1aee67;if(_0x3d7848){let _0x3e5053=(0x0,e['computeConnectorRouteLayout'])(_0x3d7848,_0x187dc9[_0x2c1663(0x251)]()),_0x1907b4=this[_0x2c1663(0x274)][_0x2c1663(0x1b8)](_0x356c68,_0x15cbd5);if(_0x1907b4&&_0x1907b4[_0xd51694]){let _0x414090=_0x1907b4[_0xd51694];_0x17f13c=_0x3e5053[_0x2c1663(0x201)];for(let [_0x2547c6,_0x431659]of Object[_0x2c1663(0x21b)](_0x3e5053['adjustValues']))_0xdc1d3b[_0x2547c6]=_0x431659;let _0x167cbf={..._0x414090[_0x2c1663(0x260)],'width':_0x3e5053[_0x2c1663(0x219)][_0x2c1663(0x227)],'height':_0x3e5053[_0x2c1663(0x219)][_0x2c1663(0x295)],'left':_0x3e5053[_0x2c1663(0x219)][_0x2c1663(0x1ca)],'top':_0x3e5053[_0x2c1663(0x219)][_0x2c1663(0x253)],'flipX':_0x3e5053[_0x2c1663(0x219)]['flipX'],'flipY':_0x3e5053[_0x2c1663(0x219)]['flipY'],'angle':_0x3e5053['rotation']},_0x8f6865=(0x0,r['transformToDrawingPosition'])(_0x167cbf,_0x28794b),_0x2b4a86=(0x0,r[_0x2c1663(0x1bd)])(_0x167cbf,_0x28794b),_0x4c5672={'unitId':_0x356c68,'subUnitId':_0x15cbd5,'drawingType':t[_0x2c1663(0x222)][_0x2c1663(0x1e4)],'drawingId':_0xd51694,'transform':_0x167cbf,'sheetTransform':_0x8f6865,'axisAlignSheetTransform':_0x2b4a86},{unitId:_0x1a4a17,subUnitId:_0x4fbe4d,undo:_0x111a7c,redo:_0x28d297,objects:_0x3f2e01}=this['_drawingManagerService'][_0x2c1663(0x198)]([_0x4c5672]);_0x345ff6['push']({'id':r[_0x2c1663(0x21a)]['id'],'params':{'unitId':_0x1a4a17,'subUnitId':_0x4fbe4d,'op':_0x28d297,'objects':_0x3f2e01,'type':r[_0x2c1663(0x24a)]['UPDATE']}}),_0x54315c[_0x2c1663(0x284)]({'id':r[_0x2c1663(0x21a)]['id'],'params':{'unitId':_0x1a4a17,'subUnitId':_0x4fbe4d,'op':_0x111a7c,'objects':_0x3f2e01,'type':r[_0x2c1663(0x24a)]['UPDATE']}});}_0x187dc9[_0x2c1663(0x27e)]();}_0x345ff6[_0x2c1663(0x284)]({'id':_['id'],'params':{'unitId':_0x356c68,'subUnitId':_0x15cbd5,'shapeId':_0xd51694,'shapeType':_0x17f13c,'shapeData':{'adjustValues':_0xdc1d3b,'relation':_0x16f509}}}),_0x54315c[_0x2c1663(0x284)]({'id':_['id'],'params':{'unitId':_0x356c68,'subUnitId':_0x15cbd5,'shapeId':_0xd51694,'shapeType':_0x1aee67,'shapeData':{'adjustValues':_0x2505bf,'relation':_0x16f509}}});}}[_0x68cbee(0x1f0)](_0x286b53,_0x483087,_0x2ce7a9,_0x3885a6,_0x3ac050,_0x32e215,_0x31356b,_0x5d2480,_0x123874,_0x105201){const _0x15ec12=_0x68cbee;var _0x444588;if(!_0x3ac050)return;let _0x1201f2=this['_sheetSkeletonService']['getSkeleton'](_0x286b53,_0x483087);if(!_0x1201f2)return;let _0x17ad10=(_0x444588=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x286b53,'subUnitId':_0x483087,'drawingId':_0x123874}))==null?void 0x0:_0x444588[_0x15ec12(0x260)];if(!_0x17ad10)return;let _0x521232=_0x17ad10[_0x15ec12(0x1ca)]!==_0x105201[_0x15ec12(0x1ca)]||_0x17ad10[_0x15ec12(0x253)]!==_0x105201[_0x15ec12(0x253)],_0x198353=_0x17ad10['width']!==_0x105201[_0x15ec12(0x227)]||_0x17ad10['height']!==_0x105201[_0x15ec12(0x295)],_0x3bfe2e=_0x17ad10[_0x15ec12(0x1c9)]!==_0x105201[_0x15ec12(0x1c9)]||_0x17ad10['flipY']!==_0x105201[_0x15ec12(0x258)],_0x204e34=_0x17ad10[_0x15ec12(0x207)]!==_0x105201[_0x15ec12(0x207)];if(_0x521232&&!_0x198353&&!_0x3bfe2e&&!_0x204e34){let _0x1e74d6=(_0x105201[_0x15ec12(0x1ca)]??0x0)-(_0x17ad10['left']??0x0),_0x325fca=(_0x105201[_0x15ec12(0x253)]??0x0)-(_0x17ad10[_0x15ec12(0x253)]??0x0),_0x3fbde2=this[_0x15ec12(0x274)]['getDrawingData'](_0x286b53,_0x483087);if(_0x3fbde2&&_0x3fbde2[_0x2ce7a9]){var _0x1283ef,_0x206d14;let _0x5dac7b=_0x3fbde2[_0x2ce7a9],_0x1776e8={..._0x5dac7b['transform'],'left':(((_0x1283ef=_0x5dac7b[_0x15ec12(0x260)])==null?void 0x0:_0x1283ef[_0x15ec12(0x1ca)])??0x0)+_0x1e74d6,'top':(((_0x206d14=_0x5dac7b[_0x15ec12(0x260)])==null?void 0x0:_0x206d14[_0x15ec12(0x253)])??0x0)+_0x325fca},_0x200fb8=(0x0,r[_0x15ec12(0x1a2)])(_0x1776e8,_0x1201f2),_0xc43b94=(0x0,r[_0x15ec12(0x1bd)])(_0x1776e8,_0x1201f2),_0x3cb497={'unitId':_0x286b53,'subUnitId':_0x483087,'drawingType':t[_0x15ec12(0x222)][_0x15ec12(0x1e4)],'drawingId':_0x2ce7a9,'transform':_0x1776e8,'sheetTransform':_0x200fb8,'axisAlignSheetTransform':_0xc43b94},{unitId:_0x3adf0c,subUnitId:_0x3e8e5b,undo:_0x2d34c2,redo:_0x34bed4,objects:_0x4b4478}=this[_0x15ec12(0x274)][_0x15ec12(0x198)]([_0x3cb497]);_0x31356b[_0x15ec12(0x284)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3adf0c,'subUnitId':_0x3e8e5b,'op':_0x34bed4,'objects':_0x4b4478,'type':r['DrawingApplyType']['UPDATE']}}),_0x5d2480['push']({'id':r[_0x15ec12(0x21a)]['id'],'params':{'unitId':_0x3adf0c,'subUnitId':_0x3e8e5b,'op':_0x2d34c2,'objects':_0x4b4478,'type':r[_0x15ec12(0x24a)]['UPDATE']}});}}else{let _0x2abb45=_0x3885a6[_0x15ec12(0x226)](),_0x3278be=_0x3885a6['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x286b53,_0x483087,_0x2ce7a9,_0x3885a6,_0x2abb45,_0x3278be,_0x31356b,_0x5d2480,_0x123874,_0x105201);}}};A=f([d(0x0,t[_0x68cbee(0x298)]),d(0x1,(0x0,t[_0x68cbee(0x233)])(n[_0x68cbee(0x1ab)])),d(0x2,(0x0,t[_0x68cbee(0x233)])(n[_0x68cbee(0x252)])),d(0x3,(0x0,t[_0x68cbee(0x233)])(p)),d(0x4,(0x0,t[_0x68cbee(0x233)])(a['IDrawingManagerService'])),d(0x5,(0x0,t['Inject'])(e['IShapeHostAdapterRegistry'])),d(0x6,(0x0,t[_0x68cbee(0x233)])(O))],A);let j=class extends t[_0x68cbee(0x259)]{constructor(_0x5cded9,_0xb4f2ae,_0x24664b){const _0x585906=_0x68cbee;super(),this['_shapeService']=_0x5cded9,this[_0x585906(0x261)]=_0xb4f2ae,this['disposeWithMe'](_0x24664b['register'](this));}['transform'](_0x22232d){const _0x38b8fc=_0x68cbee;let _0x16fbd6={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x38b8fc(0x1e9)](_0x22232d,_0x16fbd6);for(let [_0x192a6f,_0x13843a]of _0x22232d[_0x38b8fc(0x1e7)])this['_planConnector'](_0x22232d,_0x192a6f,_0x13843a,_0x16fbd6);return _0x16fbd6;}['_planDeletes'](_0x7f73b1,_0x1a121e){const _0x23c05b=_0x68cbee;if(_0x7f73b1[_0x23c05b(0x225)]===_0x23c05b(0x1d9))for(let _0x5e0545 of _0x7f73b1[_0x23c05b(0x287)]){let _0x360fb6=_0x7f73b1[_0x23c05b(0x1e7)][_0x23c05b(0x218)](_0x5e0545),_0x4471b6=this['_shapeService']['getShapeModel'](_0x7f73b1[_0x23c05b(0x1bf)],_0x7f73b1[_0x23c05b(0x281)],_0x5e0545);(_0x360fb6==null?void 0x0:_0x360fb6[_0x23c05b(0x1e1)])===t['DrawingTypeEnum']['DRAWING_SHAPE']&&_0x4471b6&&(_0x1a121e[_0x23c05b(0x24f)][_0x23c05b(0x284)]({'id':h['id'],'params':{'unitId':_0x7f73b1[_0x23c05b(0x1bf)],'subUnitId':_0x7f73b1[_0x23c05b(0x281)],'shapeId':_0x5e0545}}),_0x1a121e[_0x23c05b(0x291)][_0x23c05b(0x284)]({'id':m['id'],'params':{'unitId':_0x7f73b1[_0x23c05b(0x1bf)],'subUnitId':_0x7f73b1[_0x23c05b(0x281)],'shapeId':_0x5e0545,'shapeName':_0x4471b6[_0x23c05b(0x232)](),'shapeType':_0x4471b6[_0x23c05b(0x251)](),'shapeData':t[_0x23c05b(0x25d)][_0x23c05b(0x1c2)](_0x4471b6[_0x23c05b(0x23f)]())}}));}}[_0x68cbee(0x268)](_0x1cea1d,_0x3a9329,_0x5e2141,_0x13af30){const _0x5b0855=_0x68cbee;if(_0x5e2141[_0x5b0855(0x1e1)]!==t[_0x5b0855(0x222)][_0x5b0855(0x1e4)]||_0x1cea1d['deletes'][_0x5b0855(0x21c)](_0x3a9329))return;let _0x5789f1=this[_0x5b0855(0x289)][_0x5b0855(0x19c)](_0x1cea1d[_0x5b0855(0x1bf)],_0x1cea1d['subUnitId'],_0x3a9329);if(!_0x5789f1||!(0x0,e[_0x5b0855(0x22b)])(_0x5789f1['getShapeType']()))return;let _0x38d19e=_0x5789f1[_0x5b0855(0x277)]();if(!(_0x1cea1d[_0x5b0855(0x1a8)]['has'](_0x3a9329)||_0x38d19e!=null&&_0x38d19e[_0x5b0855(0x279)]&&(_0x1cea1d[_0x5b0855(0x1a8)][_0x5b0855(0x21c)](_0x38d19e[_0x5b0855(0x279)][_0x5b0855(0x243)])||_0x1cea1d[_0x5b0855(0x287)]['has'](_0x38d19e[_0x5b0855(0x279)][_0x5b0855(0x243)]))||_0x38d19e!=null&&_0x38d19e['to']&&(_0x1cea1d[_0x5b0855(0x1a8)]['has'](_0x38d19e['to'][_0x5b0855(0x243)])||_0x1cea1d[_0x5b0855(0x287)][_0x5b0855(0x21c)](_0x38d19e['to'][_0x5b0855(0x243)]))))return;let _0x138fb2=_0x1cea1d['updates'][_0x5b0855(0x218)](_0x3a9329)??_0x5e2141,_0x2e46c5=this[_0x5b0855(0x217)](_0x1cea1d,_0x138fb2);if(!_0x2e46c5)return;let _0x58857f=(0x0,e[_0x5b0855(0x28a)])(_0x2e46c5);if(_0x58857f[_0x5b0855(0x1f9)]<0x2)return;let _0xea807c=t['Tools'][_0x5b0855(0x1c2)](_0x38d19e??{}),_0x7475a4=_0xea807c[_0x5b0855(0x279)]&&this[_0x5b0855(0x1cc)](_0x1cea1d,_0xea807c[_0x5b0855(0x279)][_0x5b0855(0x243)],_0xea807c[_0x5b0855(0x279)]['cxnIndex']),_0x289ec4=_0xea807c['to']&&this[_0x5b0855(0x1cc)](_0x1cea1d,_0xea807c['to']['shapeId'],_0xea807c['to'][_0x5b0855(0x29a)]);_0xea807c['from']&&!_0x7475a4&&delete _0xea807c[_0x5b0855(0x279)],_0xea807c['to']&&!_0x289ec4&&delete _0xea807c['to'];let _0x3f931f=_0x7475a4||(0x0,e[_0x5b0855(0x1c8)])((_0x289ec4==null?void 0x0:_0x289ec4[_0x5b0855(0x1ac)])??_0x58857f[_0x58857f['length']-0x1],_0x58857f[0x0]),_0x718d2=_0x289ec4||(0x0,e['createFreeConnectorPointInfo'])((_0x7475a4==null?void 0x0:_0x7475a4[_0x5b0855(0x1ac)])??_0x58857f[0x0],_0x58857f[_0x58857f['length']-0x1]),_0x587ff4=(0x0,e[_0x5b0855(0x24b)])(_0x2e46c5,_0x3f931f,_0x718d2,_0xea807c);_0x587ff4!=null&&_0x587ff4[_0x5b0855(0x260)]&&_0x587ff4[_0x5b0855(0x256)]&&_0x587ff4[_0x5b0855(0x237)]&&(this['_applyUpdate'](_0x1cea1d,_0x138fb2,_0x587ff4),_0x1cea1d[_0x5b0855(0x225)]===_0x5b0855(0x27c)?(_0x5789f1[_0x5b0855(0x1b1)](_0x587ff4['shapeType']),_0x5789f1[_0x5b0855(0x214)](t[_0x5b0855(0x25d)]['deepClone'](_0x587ff4[_0x5b0855(0x237)]),!0x1)):(_0x13af30[_0x5b0855(0x19e)][_0x5b0855(0x284)]({'id':_['id'],'params':{'unitId':_0x1cea1d[_0x5b0855(0x1bf)],'subUnitId':_0x1cea1d[_0x5b0855(0x281)],'shapeId':_0x3a9329,'shapeType':_0x587ff4[_0x5b0855(0x256)],'shapeData':t[_0x5b0855(0x25d)][_0x5b0855(0x1c2)](_0x587ff4['shapeData']),'replace':!0x0}}),_0x13af30[_0x5b0855(0x291)][_0x5b0855(0x284)]({'id':_['id'],'params':{'unitId':_0x1cea1d[_0x5b0855(0x1bf)],'subUnitId':_0x1cea1d['subUnitId'],'shapeId':_0x3a9329,'shapeType':_0x5789f1[_0x5b0855(0x251)](),'shapeData':t['Tools'][_0x5b0855(0x1c2)](_0x5789f1[_0x5b0855(0x23f)]()),'replace':!0x0}})));}[_0x68cbee(0x1cc)](_0x339457,_0x34368a,_0x1f0b74){const _0xc56acd=_0x68cbee;if(_0x339457[_0xc56acd(0x287)][_0xc56acd(0x21c)](_0x34368a))return null;let _0x3a5e27=_0x339457[_0xc56acd(0x1a8)]['get'](_0x34368a)??_0x339457[_0xc56acd(0x1e7)][_0xc56acd(0x218)](_0x34368a);if(!_0x3a5e27)return null;let _0x664d0f=this[_0xc56acd(0x217)](_0x339457,_0x3a5e27);return _0x664d0f?(0x0,e['resolveShapeConnectionPoint'])(_0x664d0f,_0x1f0b74):null;}[_0x68cbee(0x217)](_0x4dbbd0,_0x5364cf){const _0x591fff=_0x68cbee;let _0x5e15a5={'hostType':t[_0x591fff(0x235)]['UNIVER_SHEET'],'unitId':_0x4dbbd0[_0x591fff(0x1bf)],'subUnitId':_0x4dbbd0[_0x591fff(0x281)],'shapeId':_0x5364cf[_0x591fff(0x1b4)]},_0x330c91=this[_0x591fff(0x261)][_0x591fff(0x25f)](_0x5e15a5);return!_0x330c91||!_0x5364cf[_0x591fff(0x260)]?null:{..._0x330c91,'transform':{'left':_0x5364cf[_0x591fff(0x260)][_0x591fff(0x1ca)]??0x0,'top':_0x5364cf[_0x591fff(0x260)][_0x591fff(0x253)]??0x0,'width':_0x5364cf[_0x591fff(0x260)][_0x591fff(0x227)]??0x0,'height':_0x5364cf['transform'][_0x591fff(0x295)]??0x0,'rotation':_0x5364cf[_0x591fff(0x260)]['angle']??0x0,'flipX':_0x5364cf['transform']['flipX']??!0x1,'flipY':_0x5364cf[_0x591fff(0x260)][_0x591fff(0x258)]??!0x1}};}[_0x68cbee(0x1fd)](_0x336724,_0x586f4d,_0x2df022){const _0x73f3f=_0x68cbee;let _0xe44ed4=_0x586f4d,_0x3dffa1={..._0x586f4d['transform'],'left':_0x2df022[_0x73f3f(0x260)][_0x73f3f(0x1ca)],'top':_0x2df022[_0x73f3f(0x260)][_0x73f3f(0x253)],'width':_0x2df022[_0x73f3f(0x260)][_0x73f3f(0x227)],'height':_0x2df022['transform']['height'],'angle':_0x2df022[_0x73f3f(0x260)][_0x73f3f(0x286)],'flipX':_0x2df022[_0x73f3f(0x260)][_0x73f3f(0x1c9)],'flipY':_0x2df022[_0x73f3f(0x260)][_0x73f3f(0x258)]},_0x59b47d={..._0xe44ed4,'transform':_0x3dffa1,'sheetTransform':(0x0,r[_0x73f3f(0x1a2)])(_0x3dffa1,_0x336724['skeleton']),'axisAlignSheetTransform':(0x0,r['transformToAxisAlignPosition'])(_0x3dffa1,_0x336724['skeleton']),'data':{..._0xe44ed4[_0x73f3f(0x1a4)],'shapeType':_0x2df022['shapeType'],'shapeData':t[_0x73f3f(0x25d)][_0x73f3f(0x1c2)](_0x2df022[_0x73f3f(0x237)])}};_0x336724[_0x73f3f(0x1a8)][_0x73f3f(0x231)](_0x586f4d[_0x73f3f(0x1b4)],_0x59b47d);}};j=f([d(0x0,(0x0,t[_0x68cbee(0x233)])(p)),d(0x1,(0x0,t[_0x68cbee(0x233)])(O)),d(0x2,(0x0,t[_0x68cbee(0x233)])(r[_0x68cbee(0x288)]))],j);let M=class extends t[_0x68cbee(0x1d8)]{constructor(_0x597f1c=k,_0x40d145,_0x56161e){const _0x28b0cf=_0x68cbee;super(),this[_0x28b0cf(0x236)]=_0x597f1c,this[_0x28b0cf(0x264)]=_0x40d145,this[_0x28b0cf(0x212)]=_0x56161e;let {..._0x7a7120}=(0x0,t['merge'])({},k,this['_config']);this[_0x28b0cf(0x212)][_0x28b0cf(0x1c7)]('sheets-shape.config',_0x7a7120);}['onStarting'](){const _0x21117c=_0x68cbee;let _0x20f038=this[_0x21117c(0x264)];[[u],[p],[O],[j],[A]][_0x21117c(0x26d)](_0x30696d=>_0x20f038[_0x21117c(0x23d)](_0x30696d)),(0x0,t[_0x21117c(0x1d4)])(_0x20f038,[[p],[j],[A]]);}};l(M,_0x68cbee(0x1bb),t[_0x68cbee(0x235)]['UNIVER_SHEET']),l(M,_0x68cbee(0x290),_0x68cbee(0x1ff)),l(M,_0x68cbee(0x257),T),l(M,'version',E),M=f([(0x0,t[_0x68cbee(0x215)])(i[_0x68cbee(0x292)],a[_0x68cbee(0x20f)],e[_0x68cbee(0x19f)],n[_0x68cbee(0x1a1)],r[_0x68cbee(0x229)]),d(0x1,(0x0,t['Inject'])(t[_0x68cbee(0x24c)])),d(0x2,t[_0x68cbee(0x296)])],M),exports[_0x68cbee(0x262)]=0xc8,exports[_0x68cbee(0x223)]=0xc8,exports[_0x68cbee(0x1ba)]=g,exports[_0x68cbee(0x27f)]=m,exports[_0x68cbee(0x224)]=h,exports['SetShapeDrawingDataCommand']=v,exports[_0x68cbee(0x1d7)]=b,exports[_0x68cbee(0x1f6)]=x,Object[_0x68cbee(0x220)](exports,_0x68cbee(0x1be),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x68cbee(0x205)]=y,Object[_0x68cbee(0x220)](exports,_0x68cbee(0x25a),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x68cbee(0x250)]=S,exports[_0x68cbee(0x1e5)]=C,exports['UpdateSheetsShapeDataMutation']=_,exports['UpdateSheetsShapeTypeMutation']=w;
|
|
1
|
+
const _0x3e901a=_0x2677;(function(_0x58601b,_0x280044){const _0x137df7=_0x2677,_0x70edde=_0x58601b();while(!![]){try{const _0xe464c8=parseInt(_0x137df7(0x203))/0x1+-parseInt(_0x137df7(0x22f))/0x2+parseInt(_0x137df7(0x15f))/0x3+parseInt(_0x137df7(0x1eb))/0x4+-parseInt(_0x137df7(0x220))/0x5+-parseInt(_0x137df7(0x1ed))/0x6*(-parseInt(_0x137df7(0x1f8))/0x7)+-parseInt(_0x137df7(0x1fe))/0x8;if(_0xe464c8===_0x280044)break;else _0x70edde['push'](_0x70edde['shift']());}catch(_0x3dfb51){_0x70edde['push'](_0x70edde['shift']());}}}(_0x394e,0xcedb5),Object[_0x3e901a(0x264)](exports,Symbol[_0x3e901a(0x25b)],{'value':_0x3e901a(0x251)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function _0x2677(_0x1dc2eb,_0x354a52){_0x1dc2eb=_0x1dc2eb-0x157;const _0x394e64=_0x394e();let _0x2677d1=_0x394e64[_0x1dc2eb];return _0x2677d1;}function o(_0x5c0897){'@babel/helpers - typeof';const _0x28fede=_0x3e901a;return o=typeof Symbol==_0x28fede(0x21d)&&typeof Symbol['iterator']==_0x28fede(0x1c1)?function(_0x2d410b){return typeof _0x2d410b;}:function(_0x4ea61e){const _0x539cf6=_0x28fede;return _0x4ea61e&&typeof Symbol==_0x539cf6(0x21d)&&_0x4ea61e[_0x539cf6(0x19f)]===Symbol&&_0x4ea61e!==Symbol[_0x539cf6(0x21f)]?'symbol':typeof _0x4ea61e;},o(_0x5c0897);}function s(_0x53f3c4,_0x10f4fe){const _0x56f2d5=_0x3e901a;if(o(_0x53f3c4)!=_0x56f2d5(0x235)||!_0x53f3c4)return _0x53f3c4;var _0x29afef;if(typeof Symbol<'u'&&(_0x29afef=_0x53f3c4[Symbol[_0x56f2d5(0x1bc)]])!==void 0x0){var _0x23983e=_0x29afef[_0x56f2d5(0x1fb)](_0x53f3c4,_0x10f4fe||_0x56f2d5(0x257));if(o(_0x23983e)!=_0x56f2d5(0x235))return _0x23983e;throw TypeError(_0x56f2d5(0x1e4));}return(_0x10f4fe===_0x56f2d5(0x1de)?String:Number)(_0x53f3c4);}function c(_0x3a2bb1){const _0x43ae68=_0x3e901a;var _0x294747=s(_0x3a2bb1,'string');return o(_0x294747)==_0x43ae68(0x1c1)?_0x294747:_0x294747+'';}function l(_0x623dbc,_0x29ecbb,_0x172459){const _0x11ef4b=_0x3e901a;return(_0x29ecbb=c(_0x29ecbb))in _0x623dbc?Object[_0x11ef4b(0x264)](_0x623dbc,_0x29ecbb,{'value':_0x172459,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x623dbc[_0x29ecbb]=_0x172459,_0x623dbc;}var u=class extends t[_0x3e901a(0x21a)]{constructor(){const _0x1389f0=_0x3e901a;super(),l(this,_0x1389f0(0x244),new Map()),l(this,'_linesIds',new Set()),l(this,_0x1389f0(0x224),new Set());}[_0x3e901a(0x216)](_0x423bca,_0x4a9944,_0x12a4f3,_0x75b02f){const _0x390fec=_0x3e901a;let _0x318af4=new e[(_0x390fec(0x17c))](_0x423bca,_0x4a9944,_0x12a4f3,_0x75b02f);return this[_0x390fec(0x244)][_0x390fec(0x19c)](_0x4a9944,_0x318af4),(0x0,e[_0x390fec(0x1f1)])(_0x423bca)&&this['_linesIds']['add'](_0x4a9944),_0x318af4;}['getBasicShapeRelation'](_0x36b53b){const _0x55eecc=_0x3e901a;let _0x2220f3=[];for(let _0xff5ded of this[_0x55eecc(0x18b)]){let _0x2a3d21=this['_shapes'][_0x55eecc(0x168)](_0xff5ded);if(_0x2a3d21){let _0x323b61=_0x2a3d21['getShapeRelation']();if(_0x323b61){var _0x515833,_0x330355;((_0x515833=_0x323b61['from'])==null?void 0x0:_0x515833['shapeId'])===_0x36b53b&&_0x2220f3[_0x55eecc(0x1f0)]({..._0x323b61[_0x55eecc(0x182)],'lineShapeId':_0xff5ded,'isFrom':!0x0}),((_0x330355=_0x323b61['to'])==null?void 0x0:_0x330355['shapeId'])===_0x36b53b&&_0x2220f3['push']({..._0x323b61['to'],'lineShapeId':_0xff5ded,'isFrom':!0x1});}}}return _0x2220f3;}[_0x3e901a(0x1cb)](_0xda5d7d){const _0x42bb4f=_0x3e901a;let _0x463189=this[_0x42bb4f(0x244)][_0x42bb4f(0x168)](_0xda5d7d);if(_0x463189)return _0x463189['getShapeRelation']();}[_0x3e901a(0x15e)](_0x4a2199){const _0xe00e9f=_0x3e901a;let _0x18f718=this[_0xe00e9f(0x244)]['get'](_0x4a2199);if(_0x18f718)return _0x18f718[_0xe00e9f(0x15e)]();}[_0x3e901a(0x234)](_0x104206){const _0x2f8864=_0x3e901a;return this[_0x2f8864(0x244)][_0x2f8864(0x231)](_0x104206);}['getShapeDisplayNames'](){const _0x3dbf68=_0x3e901a;return Array[_0x3dbf68(0x182)](this[_0x3dbf68(0x244)][_0x3dbf68(0x259)]())[_0x3dbf68(0x25c)](_0x1b37e6=>_0x1b37e6[_0x3dbf68(0x20c)]()||_0x1b37e6['getId']());}['transferShapeTo'](_0x3ce4b5,_0x45aa6c){const _0x468d4c=_0x3e901a;let _0x111706=this[_0x468d4c(0x244)]['get'](_0x45aa6c);return!_0x111706||_0x3ce4b5['hasShape'](_0x45aa6c)?!0x1:(this[_0x468d4c(0x225)](_0x45aa6c),_0x3ce4b5['_shapes'][_0x468d4c(0x19c)](_0x45aa6c,_0x111706),(0x0,e[_0x468d4c(0x1f1)])(_0x111706[_0x468d4c(0x15e)]())&&_0x3ce4b5[_0x468d4c(0x18b)][_0x468d4c(0x1b9)](_0x45aa6c),!0x0);}[_0x3e901a(0x225)](_0x282a97){const _0x52d4d7=_0x3e901a;let _0x584f9c=this['_shapes'][_0x52d4d7(0x168)](_0x282a97);_0x584f9c&&((0x0,e[_0x52d4d7(0x1f1)])(_0x584f9c[_0x52d4d7(0x15e)]())&&this[_0x52d4d7(0x18b)][_0x52d4d7(0x1dd)](_0x282a97),this[_0x52d4d7(0x244)][_0x52d4d7(0x1dd)](_0x282a97));}['toJSON'](){const _0x5f2ee4=_0x3e901a;let _0x2b014f=[];return this[_0x5f2ee4(0x244)][_0x5f2ee4(0x1f6)](_0x37339d=>{const _0x57352d=_0x5f2ee4;_0x2b014f[_0x57352d(0x1f0)](_0x37339d[_0x57352d(0x20e)]());}),_0x2b014f;}[_0x3e901a(0x17a)](_0x5940e6){const _0x541c49=_0x3e901a;for(let _0x12d047 of _0x5940e6){let {id:_0x69b9c7,shapeType:_0x78a4ca,name:_0x3d939e}=_0x12d047,_0x3368d1=this[_0x541c49(0x216)](_0x78a4ca,_0x69b9c7,_0x12d047[_0x541c49(0x1a4)],_0x3d939e);_0x3368d1&&_0x3368d1['isLineShape']()&&this[_0x541c49(0x18b)][_0x541c49(0x1b9)](_0x69b9c7);}}[_0x3e901a(0x263)](){const _0x30fd96=_0x3e901a;this[_0x30fd96(0x240)]||(this[_0x30fd96(0x244)][_0x30fd96(0x1f6)](_0x5809d1=>{const _0x30572d=_0x30fd96;_0x5809d1[_0x30572d(0x263)]();}),this[_0x30fd96(0x244)]['clear'](),this[_0x30fd96(0x18b)][_0x30fd96(0x181)](),this[_0x30fd96(0x224)]['clear'](),super[_0x30fd96(0x263)]());}};function d(_0x2d0ade,_0x32f998){return function(_0x284451,_0x813cda){_0x32f998(_0x284451,_0x813cda,_0x2d0ade);};}function f(_0xf60d5b,_0x154a92,_0x13ce6d,_0x2c62f9){const _0x342f42=_0x3e901a;var _0x27ac51=arguments[_0x342f42(0x25d)],_0x1f0d5e=_0x27ac51<0x3?_0x154a92:_0x2c62f9===null?_0x2c62f9=Object[_0x342f42(0x196)](_0x154a92,_0x13ce6d):_0x2c62f9,_0x3211ca;if(typeof Reflect==_0x342f42(0x235)&&typeof Reflect['decorate']=='function')_0x1f0d5e=Reflect['decorate'](_0xf60d5b,_0x154a92,_0x13ce6d,_0x2c62f9);else{for(var _0x3f3c28=_0xf60d5b[_0x342f42(0x25d)]-0x1;_0x3f3c28>=0x0;_0x3f3c28--)(_0x3211ca=_0xf60d5b[_0x3f3c28])&&(_0x1f0d5e=(_0x27ac51<0x3?_0x3211ca(_0x1f0d5e):_0x27ac51>0x3?_0x3211ca(_0x154a92,_0x13ce6d,_0x1f0d5e):_0x3211ca(_0x154a92,_0x13ce6d))||_0x1f0d5e);}return _0x27ac51>0x3&&_0x1f0d5e&&Object[_0x342f42(0x264)](_0x154a92,_0x13ce6d,_0x1f0d5e),_0x1f0d5e;}let p=class extends t[_0x3e901a(0x21a)]{constructor(_0x58dbe0){const _0x19cb01=_0x3e901a;super(),this[_0x19cb01(0x171)]=_0x58dbe0,l(this,_0x19cb01(0x16c),new Map()),this[_0x19cb01(0x206)]();}[_0x3e901a(0x1a1)](_0x2f171d,_0x81719d){const _0x5ccfe6=_0x3e901a;let _0xd19b0=this['_shapeModelManagerMap'][_0x5ccfe6(0x168)](_0x2f171d);_0xd19b0||(_0xd19b0=new Map(),this[_0x5ccfe6(0x16c)]['set'](_0x2f171d,_0xd19b0));let _0x191f62=_0xd19b0[_0x5ccfe6(0x168)](_0x81719d);return _0x191f62||(_0x191f62=new u(),_0xd19b0[_0x5ccfe6(0x19c)](_0x81719d,_0x191f62)),_0x191f62;}[_0x3e901a(0x1a9)](_0x38a22b,_0x30619b,_0x3a7ca9,_0x3917c,_0x24a0fb,_0x285da8){const _0x2cd281=_0x3e901a;this['_ensureShapeModelManager'](_0x38a22b,_0x30619b)[_0x2cd281(0x216)](_0x3a7ca9,_0x3917c,_0x24a0fb,_0x285da8);}[_0x3e901a(0x184)](_0x4d9fab,_0x900f88,_0x532bd9,_0x43f9fd){const _0x4bc46d=_0x3e901a;var _0x5b1d06;let _0x4257a1=(_0x5b1d06=this['_shapeModelManagerMap']['get'](_0x4d9fab))==null?void 0x0:_0x5b1d06[_0x4bc46d(0x168)](_0x900f88);return!_0x4257a1||_0x900f88===_0x532bd9?!0x1:_0x4257a1[_0x4bc46d(0x166)](this['_ensureShapeModelManager'](_0x4d9fab,_0x532bd9),_0x43f9fd);}[_0x3e901a(0x225)](_0x180f2c,_0x2c644a,_0x2ef591){const _0x417006=_0x3e901a;this[_0x417006(0x1a1)](_0x180f2c,_0x2c644a)[_0x417006(0x225)](_0x2ef591);}[_0x3e901a(0x247)](_0x1aa96a,_0x4a0377,_0x361160){const _0x47410b=_0x3e901a;return this[_0x47410b(0x1a1)](_0x1aa96a,_0x4a0377)[_0x47410b(0x15e)](_0x361160);}['getShapeType'](_0x1fbaa7,_0x9291e9,_0xe21f05){const _0x201bc6=_0x3e901a;return this[_0x201bc6(0x1a1)](_0x1fbaa7,_0x9291e9)['getShapeType'](_0xe21f05);}[_0x3e901a(0x234)](_0x191cc3,_0x1655ce,_0x3737df){const _0x532842=_0x3e901a;return this['_ensureShapeModelManager'](_0x191cc3,_0x1655ce)[_0x532842(0x234)](_0x3737df);}['getShapeTypeById'](_0x5020af,_0x41be45,_0x6c9179){const _0x88e44c=_0x3e901a;return this['_ensureShapeModelManager'](_0x5020af,_0x41be45)[_0x88e44c(0x15e)](_0x6c9179);}['getShapeDataById'](_0x347faf,_0x1ad19f,_0x4f4904){const _0x59c8b6=_0x3e901a;let _0x29c5ed=this[_0x59c8b6(0x1a1)](_0x347faf,_0x1ad19f);if(!_0x29c5ed[_0x59c8b6(0x15e)](_0x4f4904))return;let _0x225040=_0x29c5ed['_shapes']['get'](_0x4f4904);if(_0x225040)return _0x225040[_0x59c8b6(0x158)]();}[_0x3e901a(0x222)](_0x540e6e,_0x14fba7){const _0x581141=_0x3e901a;return this['_ensureShapeModelManager'](_0x540e6e,_0x14fba7)[_0x581141(0x222)]();}[_0x3e901a(0x165)](_0x5edc6c,_0xcb0c37,_0x3a9399){const _0x18e2fd=_0x3e901a;return this[_0x18e2fd(0x1a1)](_0x5edc6c,_0xcb0c37)[_0x18e2fd(0x244)][_0x18e2fd(0x168)](_0x3a9399);}[_0x3e901a(0x242)](_0x1a4363,_0x29c3f3,_0x35b637){const _0x30ca55=_0x3e901a;return this[_0x30ca55(0x1a1)](_0x1a4363,_0x29c3f3)['getBasicShapeRelation'](_0x35b637);}[_0x3e901a(0x1cb)](_0x577e09,_0x3f96cf,_0x3aa897){const _0x6693f2=_0x3e901a;let _0x671af1=this[_0x6693f2(0x1a1)](_0x577e09,_0x3f96cf)[_0x6693f2(0x244)][_0x6693f2(0x168)](_0x3aa897);if(_0x671af1)return _0x671af1[_0x6693f2(0x219)]();}[_0x3e901a(0x1d8)](){}[_0x3e901a(0x1b0)](_0x258d1e){const _0x497334=_0x3e901a;let _0x1b6708={},_0x1ec92f=this[_0x497334(0x16c)][_0x497334(0x168)](_0x258d1e);return _0x1ec92f&&_0x1ec92f[_0x497334(0x1f6)]((_0x2e7204,_0x334719)=>{const _0x165115=_0x497334;let _0x468500=_0x2e7204[_0x165115(0x20e)]();_0x468500[_0x165115(0x25d)]>0x0&&(_0x1b6708[_0x334719]=_0x468500);}),JSON[_0x497334(0x1c4)](_0x1b6708);}[_0x3e901a(0x269)](_0x1228ec,_0x57ed63){const _0x1f1ddc=_0x3e901a;Object['keys'](_0x57ed63)[_0x1f1ddc(0x1f6)](_0x4a8b7d=>{const _0x2bfab9=_0x1f1ddc;this['_ensureShapeModelManager'](_0x1228ec,_0x4a8b7d)[_0x2bfab9(0x17a)](_0x57ed63[_0x4a8b7d]);});}[_0x3e901a(0x20e)](){const _0x23a9b5=_0x3e901a;let _0x1e5de4={};return this['_shapeModelManagerMap'][_0x23a9b5(0x1f6)]((_0x3e7273,_0xc0e31f)=>{_0x1e5de4[_0xc0e31f]={},_0x3e7273['forEach']((_0x378b24,_0x2533c8)=>{const _0x1f7da2=_0x2677;_0x1e5de4[_0xc0e31f][_0x2533c8]=_0x378b24[_0x1f7da2(0x20e)]();});}),_0x1e5de4;}['fromJSON'](_0x263669){const _0x4d2222=_0x3e901a;Object['keys'](_0x263669)[_0x4d2222(0x1f6)](_0x37674a=>{const _0x807148=_0x4d2222;let _0x44e4e6=_0x263669[_0x37674a];Object[_0x807148(0x26b)](_0x44e4e6)[_0x807148(0x1f6)](_0x5c7d5e=>{const _0x39429d=_0x807148;this['_ensureShapeModelManager'](_0x37674a,_0x5c7d5e)[_0x39429d(0x17a)](_0x44e4e6[_0x5c7d5e]);});});}[_0x3e901a(0x206)](){const _0x141dd8=_0x3e901a;this[_0x141dd8(0x171)][_0x141dd8(0x16f)]({'pluginName':_0x141dd8(0x207),'businesses':[t[_0x141dd8(0x16d)][_0x141dd8(0x1bd)]],'toJson':_0x5dfa63=>this[_0x141dd8(0x1b0)](_0x5dfa63),'parseJson':_0x3b750f=>JSON[_0x141dd8(0x188)](_0x3b750f),'onLoad':(_0x4ea532,_0x29e136)=>{const _0x2c0875=_0x141dd8;this[_0x2c0875(0x269)](_0x4ea532,_0x29e136);},'onUnLoad':_0x6f610a=>{const _0x1c4826=_0x141dd8;let _0x4dc911=this[_0x1c4826(0x16c)][_0x1c4826(0x168)](_0x6f610a);_0x4dc911&&(_0x4dc911['forEach'](_0x224312=>{const _0x2dd524=_0x1c4826;_0x224312[_0x2dd524(0x263)]();}),this['_shapeModelManagerMap'][_0x1c4826(0x1dd)](_0x6f610a));}});}[_0x3e901a(0x263)](){const _0x20f987=_0x3e901a;this[_0x20f987(0x16c)][_0x20f987(0x1f6)](_0x2ec608=>{const _0x132809=_0x20f987;_0x2ec608[_0x132809(0x1f6)](_0x203179=>{_0x203179['dispose']();});});}};p=f([d(0x0,t['IResourceManagerService'])],p);const m={'id':_0x3e901a(0x23e),'type':t[_0x3e901a(0x1cf)][_0x3e901a(0x1b3)],'handler':(_0x3ac838,_0x52ad67)=>{const _0x2e0806=_0x3e901a;let {unitId:_0x2fd242,subUnitId:_0x1480d4,shapeType:_0x39fecb,shapeId:_0x5cd3cc,shapeName:_0x3897d5,shapeData:_0x4c63b1}=_0x52ad67;return _0x3ac838[_0x2e0806(0x168)](p)[_0x2e0806(0x1a9)](_0x2fd242,_0x1480d4,_0x39fecb,_0x5cd3cc,t['Tools'][_0x2e0806(0x208)](_0x4c63b1),_0x3897d5),!0x0;}},h={'id':_0x3e901a(0x217),'type':t[_0x3e901a(0x1cf)][_0x3e901a(0x1b3)],'handler':(_0x577b9f,_0x4a5671)=>{const _0x3c9abb=_0x3e901a;let {unitId:_0x5c0066,subUnitId:_0x1d5a46,shapeId:_0x3d990a}=_0x4a5671;return _0x577b9f[_0x3c9abb(0x168)](p)[_0x3c9abb(0x225)](_0x5c0066,_0x1d5a46,_0x3d990a),!0x0;}},g={'type':t['CommandType']['COMMAND'],'id':_0x3e901a(0x19e),'handler':(_0x580174,_0x2e0370)=>{const _0x1a6f8a=_0x3e901a;let _0x4a0bb5=(0x0,n['getSheetCommandTarget'])(_0x580174[_0x1a6f8a(0x168)](t['IUniverInstanceService']),_0x2e0370);if(!_0x4a0bb5)return!0x1;let {unitId:_0x1ec496,subUnitId:_0x38b39a,worksheet:_0x10a3a3}=_0x4a0bb5,_0x32c697=_0x10a3a3[_0x1a6f8a(0x237)]()[_0x1a6f8a(0x239)]??t['SheetTypes'][_0x1a6f8a(0x15d)],_0x3fe237=_0x32c697===t['SheetTypes'][_0x1a6f8a(0x1a5)];if(!_0x3fe237&&_0x32c697!==t['SheetTypes']['GRID'])return!0x1;let _0x5bd9b0=_0x3fe237?void 0x0:_0x580174[_0x1a6f8a(0x168)](n[_0x1a6f8a(0x261)])[_0x1a6f8a(0x256)](_0x1ec496,_0x38b39a);if(!_0x3fe237&&!_0x5bd9b0)return!0x1;let _0x8a95e0=_0x3fe237?_0x2e0370[_0x1a6f8a(0x1f2)]??0xc8:_0x2e0370[_0x1a6f8a(0x1f2)]||0xc8,_0x19d6ef=_0x3fe237?_0x2e0370[_0x1a6f8a(0x1a2)]??0xc8:_0x2e0370[_0x1a6f8a(0x1a2)]||0xc8,{position:_0x386b45}=_0x2e0370;if(_0x3fe237&&(!Number[_0x1a6f8a(0x1ce)](_0x8a95e0)||!Number[_0x1a6f8a(0x1ce)](_0x19d6ef)||_0x8a95e0<=0x0||_0x19d6ef<=0x0||_0x386b45&&(!Number[_0x1a6f8a(0x1ce)](_0x386b45['x'])||!Number[_0x1a6f8a(0x1ce)](_0x386b45['y']))))return!0x1;let _0x5a29d2=_0x580174['get'](t['ICommandService']),_0x57a067=_0x580174[_0x1a6f8a(0x168)](t[_0x1a6f8a(0x25e)]),_0x122398=_0x580174[_0x1a6f8a(0x168)](n['SheetInterceptorService']),_0x472f78=_0x580174[_0x1a6f8a(0x168)](r[_0x1a6f8a(0x173)]),_0x5a0578=_0x580174[_0x1a6f8a(0x168)](p),{shapeType:_0x230e8f}=_0x2e0370,_0xf21a86=_0x2e0370['shapeData']??(0x0,e[_0x1a6f8a(0x1e2)])(_0x230e8f),_0x2add3b=_0x2e0370['shapeId']||(0x0,t[_0x1a6f8a(0x1cd)])(),_0x479be7={'unitId':_0x1ec496,'subUnitId':_0x38b39a,'shapeId':_0x2add3b,'shapeName':_0x2e0370[_0x1a6f8a(0x253)]??(0x0,e[_0x1a6f8a(0x232)])(_0x230e8f,_0x5a0578['getShapeDisplayNames'](_0x1ec496,_0x38b39a)),'shapeType':_0x230e8f,'shapeData':_0xf21a86},_0x3b6a8f=0x0,_0x4003f3=0x0;if(_0x2e0370['position']){let {x:_0x18dd47,y:_0x8d2661}=_0x2e0370[_0x1a6f8a(0x1a6)];_0x3b6a8f=_0x18dd47,_0x4003f3=_0x8d2661;}else{if(_0x2e0370['range']&&_0x5bd9b0){let {startRow:_0x1bb24f,startColumn:_0x261425}=_0x2e0370[_0x1a6f8a(0x164)],_0x20b548=_0x5bd9b0[_0x1a6f8a(0x18e)](_0x1bb24f,_0x261425);_0x3b6a8f=_0x20b548['startX']+0xa,_0x4003f3=_0x20b548['startY']+0xa;}}let _0xce3b94={'left':_0x3b6a8f,'top':_0x4003f3,'width':_0x8a95e0,'height':_0x19d6ef,'angle':_0x2e0370[_0x1a6f8a(0x177)]??0x0,'flipX':_0x2e0370[_0x1a6f8a(0x169)]??!0x1,'flipY':_0x2e0370[_0x1a6f8a(0x1bf)]??!0x1},_0x2593eb={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x4eea87=_0x5bd9b0?(0x0,r[_0x1a6f8a(0x230)])(_0xce3b94,_0x5bd9b0):{'from':_0x2593eb,'to':_0x2593eb},_0x427e15=_0x5bd9b0?(0x0,r['transformToAxisAlignPosition'])(_0xce3b94,_0x5bd9b0):_0x4eea87,_0x266f1c={'unitId':_0x1ec496,'subUnitId':_0x38b39a,'drawingId':_0x2add3b,'drawingType':t[_0x1a6f8a(0x1fc)][_0x1a6f8a(0x236)],'anchorType':r[_0x1a6f8a(0x197)]['Both'],'name':_0x2e0370[_0x1a6f8a(0x1d5)],'description':_0x2e0370['description'],'sheetTransform':_0x4eea87,'transform':_0xce3b94,'data':{'shapeType':_0x230e8f,'shapeData':_0xf21a86},'axisAlignSheetTransform':_0x427e15,'allowTransform':!0x0,'hidden':_0x2e0370[_0x1a6f8a(0x18a)]===!0x1,'selectable':_0x2e0370[_0x1a6f8a(0x255)]??!0x0};if(_0x3fe237){let _0xa2c70d=(0x0,r[_0x1a6f8a(0x1c9)])(_0x266f1c,{'kind':r[_0x1a6f8a(0x197)]['None'],'left':_0x3b6a8f,'top':_0x4003f3,'width':_0x8a95e0,'height':_0x19d6ef});_0x266f1c={..._0x266f1c,'anchorType':_0xa2c70d[_0x1a6f8a(0x159)],'transform':_0xa2c70d[_0x1a6f8a(0x254)],'sheetTransform':_0xa2c70d[_0x1a6f8a(0x265)],'axisAlignSheetTransform':_0xa2c70d['axisAlignSheetTransform']};}(0x0,e[_0x1a6f8a(0x1f1)])(_0x230e8f)&&(_0x266f1c[_0x1a6f8a(0x1e0)]['fill']=!0x1,_0x266f1c[_0x1a6f8a(0x1e0)][_0x1a6f8a(0x1b8)]=!0x1,_0x266f1c[_0x1a6f8a(0x1e0)][_0x1a6f8a(0x22d)]=!0x1,_0x266f1c[_0x1a6f8a(0x1e0)]['borderEnabled']=!0x1,_0x266f1c[_0x1a6f8a(0x254)][_0x1a6f8a(0x1b8)]=!0x1,_0x266f1c['transform'][_0x1a6f8a(0x22d)]=!0x1,_0x266f1c[_0x1a6f8a(0x254)]['borderEnabled']=!0x1);let {undo:_0x159a5c,redo:_0x57450a,objects:_0x515096}=_0x472f78[_0x1a6f8a(0x23f)]([_0x266f1c]),_0x2a7062=_0x122398[_0x1a6f8a(0x1ef)]({'id':r[_0x1a6f8a(0x268)]['id'],'params':{'unitId':_0x1ec496,'drawings':[_0x266f1c]}}),_0x3adea4=[..._0x2a7062[_0x1a6f8a(0x17f)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1ec496,'subUnitId':_0x38b39a,'op':_0x57450a,'objects':_0x515096,'type':r[_0x1a6f8a(0x1ca)][_0x1a6f8a(0x1ac)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1ec496]},..._0x2a7062[_0x1a6f8a(0x1f4)],{'id':m['id'],'params':_0x479be7}],_0x5a4642=[{'id':h['id'],'params':{'unitId':_0x1ec496,'subUnitId':_0x38b39a,'shapeId':_0x2add3b}},..._0x2a7062[_0x1a6f8a(0x212)]??[],{'id':r[_0x1a6f8a(0x1c6)]['id'],'params':{'unitId':_0x1ec496,'subUnitId':_0x38b39a,'op':_0x159a5c,'objects':_0x515096,'type':r[_0x1a6f8a(0x1ca)]['REMOVE']}},{'id':r[_0x1a6f8a(0x227)]['id'],'params':[_0x1ec496]},..._0x2a7062[_0x1a6f8a(0x210)]];return(0x0,t[_0x1a6f8a(0x18f)])(_0x3adea4,_0x5a29d2)[_0x1a6f8a(0x1d1)]?(_0x57a067[_0x1a6f8a(0x163)]({'unitID':_0x1ec496,'undoMutations':_0x5a4642,'redoMutations':_0x3adea4}),!0x0):!0x1;}},_={'id':_0x3e901a(0x186),'type':t[_0x3e901a(0x1cf)][_0x3e901a(0x1b3)],'handler':(_0x327af0,_0x1e13a1)=>{const _0x1a8029=_0x3e901a;let {unitId:_0x1b0175,subUnitId:_0x86dc95,shapeType:_0x24182b,shapeId:_0x2c592f,shapeData:_0x211c7e,replace:_0x20fa8b,formulaLastValueGuard:_0x2657c3}=_0x1e13a1,_0x248d8e=_0x327af0[_0x1a8029(0x168)](p)[_0x1a8029(0x165)](_0x1b0175,_0x86dc95,_0x2c592f);if(_0x248d8e){var _0x23074c;if(!(0x0,e[_0x1a8029(0x24e)])(_0x327af0,{'hostType':t[_0x1a8029(0x16d)][_0x1a8029(0x1bd)],'unitId':_0x1b0175,'subUnitId':_0x86dc95,'shapeId':_0x2c592f},(_0x23074c=_0x248d8e[_0x1a8029(0x158)]()[_0x1a8029(0x252)])==null?void 0x0:_0x23074c[_0x1a8029(0x24d)],_0x2657c3))return!0x0;_0x24182b!==void 0x0&&_0x248d8e['setShapeType'](_0x24182b),_0x211c7e&&(_0x248d8e==null||_0x248d8e[_0x1a8029(0x20a)](t[_0x1a8029(0x1b2)][_0x1a8029(0x208)](_0x211c7e),!_0x20fa8b));}return!0x0;}},v={'type':t[_0x3e901a(0x1cf)][_0x3e901a(0x16a)],'id':_0x3e901a(0x262),'handler':(_0x4022d1,_0x3dadc9)=>{const _0x2d0535=_0x3e901a;let _0x517ae1=(0x0,n[_0x2d0535(0x192)])(_0x4022d1['get'](t[_0x2d0535(0x245)]),_0x3dadc9);if(!_0x517ae1)return!0x1;let _0x307f53=_0x4022d1[_0x2d0535(0x168)](n[_0x2d0535(0x261)]),{unitId:_0x2f5b77,subUnitId:_0x3018cd}=_0x517ae1,_0x563e43=_0x307f53[_0x2d0535(0x256)](_0x2f5b77,_0x3018cd);if(!_0x563e43)return!0x1;let _0x1a4cb5=_0x4022d1[_0x2d0535(0x168)](p),{shapeId:_0xd0b12f,shapeType:_0x4069fb,shapeData:_0x504830,position:_0x41037b,width:_0x14a06a,height:_0x543b28}=_0x3dadc9,_0x4439e0=_0x1a4cb5[_0x2d0535(0x165)](_0x2f5b77,_0x3018cd,_0xd0b12f);if(!_0x4439e0)return!0x1;let _0x306de5=_0x4022d1[_0x2d0535(0x168)](t[_0x2d0535(0x258)]),_0x4e30c9=_0x4022d1[_0x2d0535(0x168)](t[_0x2d0535(0x25e)]),_0x3910f9=_0x4022d1['get'](n[_0x2d0535(0x1d9)]),_0xbe817b=_0x4022d1[_0x2d0535(0x168)](r['ISheetDrawingService']),_0x1c7b61={'unitId':_0x2f5b77,'subUnitId':_0x3018cd,'shapeId':_0xd0b12f,'shapeType':_0x4069fb,'shapeData':_0x504830,'replace':!0x0},_0x185646=_0x4439e0[_0x2d0535(0x15e)](),_0x70c181=_0x4439e0['getShapeData'](),{x:_0x5a9373,y:_0x5b29ae}=_0x41037b,_0x263a6b={'left':_0x5a9373,'top':_0x5b29ae,'width':_0x14a06a,'height':_0x543b28,'angle':_0x3dadc9[_0x2d0535(0x177)]??0x0,'flipX':_0x3dadc9[_0x2d0535(0x169)]??!0x1,'flipY':_0x3dadc9['flipY']??!0x1},_0x900895=(0x0,r[_0x2d0535(0x230)])(_0x263a6b,_0x563e43),_0x27b5f3=(0x0,r['transformToAxisAlignPosition'])(_0x263a6b,_0x563e43),_0xdcfc9f={'unitId':_0x2f5b77,'subUnitId':_0x3018cd,'drawingId':_0xd0b12f,'drawingType':t[_0x2d0535(0x1fc)][_0x2d0535(0x236)],'name':_0x3dadc9['name'],'description':_0x3dadc9[_0x2d0535(0x161)],'sheetTransform':_0x900895,'transform':_0x263a6b,'data':{'shapeType':_0x4069fb,'shapeData':_0x504830},'axisAlignSheetTransform':_0x27b5f3,'allowTransform':!0x0,'hidden':!_0x3dadc9['visible'],'selectable':_0x3dadc9[_0x2d0535(0x255)]};(0x0,e[_0x2d0535(0x1f1)])(_0x4069fb)&&(_0xdcfc9f[_0x2d0535(0x1e0)][_0x2d0535(0x1ee)]=!0x1,_0xdcfc9f[_0x2d0535(0x1e0)][_0x2d0535(0x1b8)]=!0x1,_0xdcfc9f['data'][_0x2d0535(0x22d)]=!0x1,_0xdcfc9f['data'][_0x2d0535(0x1df)]=!0x1,_0xdcfc9f[_0x2d0535(0x254)][_0x2d0535(0x1b8)]=!0x1,_0xdcfc9f[_0x2d0535(0x254)]['resizeEnabled']=!0x1,_0xdcfc9f[_0x2d0535(0x254)]['borderEnabled']=!0x1);let {undo:_0x4ea937,redo:_0x5d0fef,objects:_0x3ab823}=_0xbe817b[_0x2d0535(0x170)]([_0xdcfc9f]),_0x2cb643=_0x3910f9['onCommandExecute']({'id':r[_0x2d0535(0x17d)]['id'],'params':{'unitId':_0x2f5b77,'drawings':[_0xdcfc9f]}}),_0x243feb=[..._0x2cb643[_0x2d0535(0x17f)]??[],{'id':r[_0x2d0535(0x1c6)]['id'],'params':{'unitId':_0x2f5b77,'subUnitId':_0x3018cd,'op':_0x5d0fef,'objects':_0x3ab823,'type':r[_0x2d0535(0x1ca)][_0x2d0535(0x1b6)]}},{'id':r[_0x2d0535(0x227)]['id'],'params':[_0x2f5b77]},..._0x2cb643[_0x2d0535(0x1f4)],{'id':_['id'],'params':_0x1c7b61}],_0x1b7493=[..._0x2cb643[_0x2d0535(0x212)]??[],{'id':r[_0x2d0535(0x1c6)]['id'],'params':{'unitId':_0x2f5b77,'subUnitId':_0x3018cd,'op':_0x4ea937,'objects':_0x3ab823,'type':r[_0x2d0535(0x1ca)][_0x2d0535(0x1b6)]}},{'id':r[_0x2d0535(0x227)]['id'],'params':[_0x2f5b77]},..._0x2cb643[_0x2d0535(0x210)],{'id':_['id'],'params':{'unitId':_0x2f5b77,'subUnitId':_0x3018cd,'shapeType':_0x185646,'shapeId':_0xd0b12f,'shapeData':_0x70c181,'replace':!0x0}}];return(0x0,t[_0x2d0535(0x18f)])(_0x243feb,_0x306de5)[_0x2d0535(0x1d1)]?(_0x4e30c9[_0x2d0535(0x163)]({'unitID':_0x2f5b77,'undoMutations':_0x1b7493,'redoMutations':_0x243feb}),!0x0):!0x1;}},y={'type':t[_0x3e901a(0x1cf)][_0x3e901a(0x16a)],'id':_0x3e901a(0x1a3),'handler':(_0x5ea725,_0xe563cf)=>{const _0x36b678=_0x3e901a;let _0x218a24=(0x0,n['getSheetCommandTarget'])(_0x5ea725[_0x36b678(0x168)](t[_0x36b678(0x245)]),_0xe563cf);if(!_0x218a24)return!0x1;let _0x53ea7f=_0x5ea725[_0x36b678(0x168)](n[_0x36b678(0x261)]),{unitId:_0x2aada4,subUnitId:_0x1fb8d9}=_0x218a24,_0xb72dd2=_0x53ea7f['getSkeleton'](_0x2aada4,_0x1fb8d9);if(!_0xb72dd2)return!0x1;let _0xe67033=_0x5ea725[_0x36b678(0x168)](r[_0x36b678(0x173)]),{shapeId:_0x28a97c,flipH:_0x334555,flipV:_0x17f59f}=_0xe563cf,_0x2a612d=_0xe67033[_0x36b678(0x195)]({'unitId':_0x2aada4,'subUnitId':_0x1fb8d9,'drawingId':_0x28a97c});if(!_0x2a612d)return!0x1;let _0x202f4b=_0x5ea725[_0x36b678(0x168)](p)[_0x36b678(0x165)](_0x2aada4,_0x1fb8d9,_0x28a97c);if(!_0x202f4b)return!0x1;let _0x2bb512=_0x5ea725[_0x36b678(0x168)](t[_0x36b678(0x258)]),_0x545b21=_0x5ea725[_0x36b678(0x168)](t['IUndoRedoService']),_0x585b4d=_0x5ea725[_0x36b678(0x168)](n[_0x36b678(0x1d9)]),_0x57be2a={..._0x2a612d[_0x36b678(0x254)]};_0x334555!==void 0x0&&(_0x57be2a['flipX']=!_0x57be2a[_0x36b678(0x169)]),_0x17f59f!==void 0x0&&(_0x57be2a[_0x36b678(0x1bf)]=!_0x57be2a[_0x36b678(0x1bf)]);let _0x406fc3=(0x0,r[_0x36b678(0x230)])(_0x57be2a,_0xb72dd2),_0x58de20=(0x0,r[_0x36b678(0x1ff)])(_0x57be2a,_0xb72dd2),_0x8140fa=_0x202f4b[_0x36b678(0x15e)](),_0xe953ff=_0x202f4b['getShapeData'](),_0x695668={'unitId':_0x2aada4,'subUnitId':_0x1fb8d9,'drawingId':_0x28a97c,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x406fc3,'transform':_0x57be2a,'data':{'shapeType':_0x8140fa,'shapeData':_0xe953ff},'axisAlignSheetTransform':_0x58de20,'allowTransform':!0x0},{undo:_0x560ad2,redo:_0x1fb4a9,objects:_0xbb27ba}=_0xe67033['getBatchUpdateOp']([_0x695668]),_0x5d4328=_0x585b4d[_0x36b678(0x1ef)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x2aada4,'drawings':[_0x695668]}}),_0x52c22a=[..._0x5d4328[_0x36b678(0x17f)]??[],{'id':r[_0x36b678(0x1c6)]['id'],'params':{'unitId':_0x2aada4,'subUnitId':_0x1fb8d9,'op':_0x1fb4a9,'objects':_0xbb27ba,'type':r[_0x36b678(0x1ca)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2aada4]},..._0x5d4328[_0x36b678(0x1f4)]],_0x5a7081=[..._0x5d4328[_0x36b678(0x212)]??[],{'id':r[_0x36b678(0x1c6)]['id'],'params':{'unitId':_0x2aada4,'subUnitId':_0x1fb8d9,'op':_0x560ad2,'objects':_0xbb27ba,'type':r[_0x36b678(0x1ca)][_0x36b678(0x1b6)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2aada4]},..._0x5d4328[_0x36b678(0x210)]];if((0x0,e[_0x36b678(0x1f1)])(_0x8140fa)){let _0x56365f=_0x202f4b[_0x36b678(0x219)]();if(_0x56365f){let _0x5783f5={..._0x56365f};_0x5783f5[_0x36b678(0x182)]=void 0x0,_0x5783f5['to']=void 0x0,_0x52c22a[_0x36b678(0x1f0)]({'id':_['id'],'params':{'unitId':_0x2aada4,'subUnitId':_0x1fb8d9,'shapeId':_0x28a97c,'shapeType':_0x8140fa,'shapeData':{'relation':_0x5783f5}}}),_0x5a7081['push']({'id':_['id'],'params':{'unitId':_0x2aada4,'subUnitId':_0x1fb8d9,'shapeId':_0x28a97c,'shapeType':_0x8140fa,'shapeData':{'relation':_0x56365f}}});}}return(0x0,t[_0x36b678(0x18f)])(_0x52c22a,_0x2bb512)['result']?(_0x545b21[_0x36b678(0x163)]({'unitID':_0x2aada4,'undoMutations':_0x5a7081,'redoMutations':_0x52c22a}),!0x0):!0x1;}},b={'type':t['CommandType']['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x18451f,_0x508ff3)=>{const _0x21ccfa=_0x3e901a;let _0x398950=(0x0,n[_0x21ccfa(0x192)])(_0x18451f[_0x21ccfa(0x168)](t['IUniverInstanceService']),_0x508ff3);if(!_0x398950)return!0x1;let _0x10b146=_0x18451f[_0x21ccfa(0x168)](n[_0x21ccfa(0x261)]),{unitId:_0x3361cc,subUnitId:_0x19864f}=_0x398950,_0x1632da=_0x10b146['getSkeleton'](_0x3361cc,_0x19864f);if(!_0x1632da)return!0x1;let _0x559138=_0x18451f[_0x21ccfa(0x168)](r[_0x21ccfa(0x173)]),{shapeId:_0x305c46,rotate:_0x1687c0}=_0x508ff3,_0x41b1d8=_0x559138[_0x21ccfa(0x195)]({'unitId':_0x3361cc,'subUnitId':_0x19864f,'drawingId':_0x305c46});if(!_0x41b1d8)return!0x1;let _0x9b2ba1=_0x18451f[_0x21ccfa(0x168)](p)[_0x21ccfa(0x165)](_0x3361cc,_0x19864f,_0x305c46);if(!_0x9b2ba1)return!0x1;let _0xed997c=_0x18451f['get'](t[_0x21ccfa(0x258)]),_0x528a55=_0x18451f['get'](t[_0x21ccfa(0x25e)]),_0xd294a=_0x18451f[_0x21ccfa(0x168)](n[_0x21ccfa(0x1d9)]),_0x53e7b8={..._0x41b1d8['transform']};_0x1687c0!==void 0x0&&(_0x53e7b8['angle']=(_0x53e7b8[_0x21ccfa(0x23b)]||0x0)+_0x1687c0);let _0x3dbc72=(0x0,r[_0x21ccfa(0x230)])(_0x53e7b8,_0x1632da),_0x4f7647=(0x0,r['transformToAxisAlignPosition'])(_0x53e7b8,_0x1632da),_0x39be63=_0x9b2ba1[_0x21ccfa(0x15e)](),_0x4e581a=_0x9b2ba1[_0x21ccfa(0x158)](),_0x431bdb={'unitId':_0x3361cc,'subUnitId':_0x19864f,'drawingId':_0x305c46,'drawingType':t[_0x21ccfa(0x1fc)][_0x21ccfa(0x236)],'sheetTransform':_0x3dbc72,'transform':_0x53e7b8,'data':{'shapeType':_0x39be63,'shapeData':_0x4e581a},'axisAlignSheetTransform':_0x4f7647,'allowTransform':!0x0},{undo:_0x18888c,redo:_0x535699,objects:_0x296c43}=_0x559138['getBatchUpdateOp']([_0x431bdb]),_0x35866f=_0xd294a[_0x21ccfa(0x1ef)]({'id':r[_0x21ccfa(0x17d)]['id'],'params':{'unitId':_0x3361cc,'drawings':[_0x431bdb]}}),_0x2f90ee=[..._0x35866f[_0x21ccfa(0x17f)]??[],{'id':r[_0x21ccfa(0x1c6)]['id'],'params':{'unitId':_0x3361cc,'subUnitId':_0x19864f,'op':_0x535699,'objects':_0x296c43,'type':r[_0x21ccfa(0x1ca)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3361cc]},..._0x35866f[_0x21ccfa(0x1f4)]],_0x1f804d=[..._0x35866f[_0x21ccfa(0x212)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3361cc,'subUnitId':_0x19864f,'op':_0x18888c,'objects':_0x296c43,'type':r[_0x21ccfa(0x1ca)][_0x21ccfa(0x1b6)]}},{'id':r[_0x21ccfa(0x227)]['id'],'params':[_0x3361cc]},..._0x35866f[_0x21ccfa(0x210)]];return(0x0,t['sequenceExecute'])(_0x2f90ee,_0xed997c)[_0x21ccfa(0x1d1)]?(_0x528a55[_0x21ccfa(0x163)]({'unitID':_0x3361cc,'undoMutations':_0x1f804d,'redoMutations':_0x2f90ee}),!0x0):!0x1;}},x={'type':t['CommandType']['COMMAND'],'id':_0x3e901a(0x1fd),'handler':(_0x437bdf,_0x3f11be)=>{const _0x24415a=_0x3e901a;let _0x274278=(0x0,n[_0x24415a(0x192)])(_0x437bdf[_0x24415a(0x168)](t['IUniverInstanceService']),_0x3f11be);if(!_0x274278)return!0x1;let {unitId:_0x1f5cde,subUnitId:_0x3dbaf9}=_0x274278,{shapeId:_0x46e7d8}=_0x3f11be,_0x32f1e7=_0x437bdf[_0x24415a(0x168)](p)[_0x24415a(0x165)](_0x1f5cde,_0x3dbaf9,_0x46e7d8);if(!_0x32f1e7)return!0x1;let _0x2ea8e4=_0x32f1e7[_0x24415a(0x200)](),_0x539ebf=(_0x2ea8e4==null?void 0x0:_0x2ea8e4[_0x24415a(0x243)])??!0x0,_0x422936=!_0x539ebf,_0x5f1b7e=_0x437bdf[_0x24415a(0x168)](t[_0x24415a(0x258)]),_0x31671b=_0x437bdf['get'](t[_0x24415a(0x25e)]),_0x55cc20={'unitId':_0x1f5cde,'subUnitId':_0x3dbaf9,'shapeId':_0x46e7d8,'shapeData':{'shapeText':{'isHorizontal':_0x422936}}},_0x8cc6fa={'unitId':_0x1f5cde,'subUnitId':_0x3dbaf9,'shapeId':_0x46e7d8,'shapeData':{'shapeText':{'isHorizontal':_0x539ebf}}},_0x5a1561=[{'id':_['id'],'params':_0x55cc20}],_0x40c80d=[{'id':_['id'],'params':_0x8cc6fa}];return(0x0,t[_0x24415a(0x18f)])(_0x5a1561,_0x5f1b7e)[_0x24415a(0x1d1)]?(_0x31671b[_0x24415a(0x163)]({'unitID':_0x1f5cde,'undoMutations':_0x40c80d,'redoMutations':_0x5a1561}),!0x0):!0x1;}},S={'type':t[_0x3e901a(0x1cf)]['COMMAND'],'id':'sheet.command.update-connector-relation','handler':(_0x8c43f8,_0x33fc8c)=>{const _0x4a7591=_0x3e901a;var _0x92490d;let _0x4c060b=(0x0,n[_0x4a7591(0x192)])(_0x8c43f8[_0x4a7591(0x168)](t[_0x4a7591(0x245)]),_0x33fc8c);if(!_0x4c060b)return!0x1;let _0xd462c5=_0x8c43f8[_0x4a7591(0x168)](n['SheetSkeletonService']),{unitId:_0x1fdda5,subUnitId:_0x5f3387}=_0x4c060b,_0x1672c4=_0xd462c5['getSkeleton'](_0x1fdda5,_0x5f3387);if(!_0x1672c4)return!0x1;let _0x147d4c=_0x8c43f8['get'](r[_0x4a7591(0x173)]),{connectorShapeId:_0x3c4ceb,width:_0x205a05,height:_0x4769cf,left:_0x20fca2,top:_0x1e96cf,flipX:_0x39bb54,flipY:_0x3b75bc,rotation:_0xc06a6d,oldAdjustValues:_0x260481,newAdjustValues:_0x298cf0,oldLineType:_0x35c725,newLineType:_0x44fe90,oldRelation:_0xc4ed37,newRelation:_0x157a1c}=_0x33fc8c,_0x163bd8=_0x147d4c[_0x4a7591(0x195)]({'unitId':_0x1fdda5,'subUnitId':_0x5f3387,'drawingId':_0x3c4ceb});if(!_0x163bd8)return!0x1;let _0x38abf3=_0x8c43f8['get'](p)[_0x4a7591(0x165)](_0x1fdda5,_0x5f3387,_0x3c4ceb);if(!_0x38abf3)return!0x1;let _0x5535ef=_0x8c43f8[_0x4a7591(0x168)](t[_0x4a7591(0x258)]),_0x45c067=_0x8c43f8['get'](t['IUndoRedoService']),_0xaf1f5b=_0x8c43f8[_0x4a7591(0x168)](n[_0x4a7591(0x1d9)]),_0x4ac01b={..._0x163bd8[_0x4a7591(0x254)],'width':_0x205a05,'height':_0x4769cf,'left':_0x20fca2,'top':_0x1e96cf,'flipX':_0x39bb54,'flipY':_0x3b75bc,'angle':_0xc06a6d??((_0x92490d=_0x163bd8[_0x4a7591(0x254)])==null?void 0x0:_0x92490d[_0x4a7591(0x23b)])??0x0},_0x184ca4=(0x0,r[_0x4a7591(0x230)])(_0x4ac01b,_0x1672c4),_0x123e4d=(0x0,r[_0x4a7591(0x1ff)])(_0x4ac01b,_0x1672c4),_0x36644d=_0x38abf3[_0x4a7591(0x15e)](),_0x3d06f2=_0x38abf3[_0x4a7591(0x158)](),_0xaa0e40={'unitId':_0x1fdda5,'subUnitId':_0x5f3387,'drawingId':_0x3c4ceb,'drawingType':t[_0x4a7591(0x1fc)]['DRAWING_SHAPE'],'sheetTransform':_0x184ca4,'transform':_0x4ac01b,'data':{'shapeType':_0x44fe90||_0x35c725||_0x36644d,'shapeData':{..._0x3d06f2,'adjustValues':_0x298cf0||_0x260481||(_0x3d06f2==null?void 0x0:_0x3d06f2['adjustValues']),'relation':_0x157a1c||_0xc4ed37||(_0x3d06f2==null?void 0x0:_0x3d06f2['relation'])}},'axisAlignSheetTransform':_0x123e4d,'allowTransform':!0x0},{undo:_0x43253d,redo:_0xb68f33,objects:_0x136cee}=_0x147d4c[_0x4a7591(0x170)]([_0xaa0e40]),_0x2f4b12=_0xaf1f5b[_0x4a7591(0x1ef)]({'id':r[_0x4a7591(0x17d)]['id'],'params':{'unitId':_0x1fdda5,'drawings':[_0xaa0e40]}}),_0x31f66c=[..._0x2f4b12[_0x4a7591(0x17f)]??[],{'id':r[_0x4a7591(0x1c6)]['id'],'params':{'unitId':_0x1fdda5,'subUnitId':_0x5f3387,'op':_0xb68f33,'objects':_0x136cee,'type':r[_0x4a7591(0x1ca)][_0x4a7591(0x1b6)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1fdda5]},..._0x2f4b12[_0x4a7591(0x1f4)],{'id':_['id'],'params':{'unitId':_0x1fdda5,'subUnitId':_0x5f3387,'shapeId':_0x3c4ceb,'shapeType':_0x44fe90,'shapeData':{'adjustValues':_0x298cf0,'relation':_0x157a1c}}}],_0x4f38e8=[..._0x2f4b12[_0x4a7591(0x212)]??[],{'id':r[_0x4a7591(0x1c6)]['id'],'params':{'unitId':_0x1fdda5,'subUnitId':_0x5f3387,'op':_0x43253d,'objects':_0x136cee,'type':r[_0x4a7591(0x1ca)][_0x4a7591(0x1b6)]}},{'id':r[_0x4a7591(0x227)]['id'],'params':[_0x1fdda5]},..._0x2f4b12[_0x4a7591(0x210)],{'id':_['id'],'params':{'unitId':_0x1fdda5,'subUnitId':_0x5f3387,'shapeId':_0x3c4ceb,'shapeType':_0x36644d,'shapeData':{..._0x3d06f2,'adjustValues':_0x260481||(_0x3d06f2==null?void 0x0:_0x3d06f2[_0x4a7591(0x228)]),'relation':_0xc4ed37||(_0x3d06f2==null?void 0x0:_0x3d06f2[_0x4a7591(0x172)])}}}];return(0x0,t['sequenceExecute'])(_0x31f66c,_0x5535ef)[_0x4a7591(0x1d1)]?(_0x45c067['pushUndoRedo']({'unitID':_0x1fdda5,'undoMutations':_0x4f38e8,'redoMutations':_0x31f66c}),!0x0):!0x1;}},C={'type':t[_0x3e901a(0x1cf)][_0x3e901a(0x16a)],'id':_0x3e901a(0x162),'handler':(_0x56ba0f,_0x323a87)=>{const _0x1ffb12=_0x3e901a;let _0x58854d=(0x0,n[_0x1ffb12(0x192)])(_0x56ba0f[_0x1ffb12(0x168)](t[_0x1ffb12(0x245)]),_0x323a87);if(!_0x58854d)return!0x1;let _0x52bb01=_0x56ba0f[_0x1ffb12(0x168)](n['SheetSkeletonService']),{unitId:_0x287de4,subUnitId:_0x512f6e}=_0x58854d,_0x4baf8c=_0x52bb01[_0x1ffb12(0x1ec)](_0x287de4,_0x512f6e);if(!_0x4baf8c)return!0x1;let _0x37d8b5=_0x56ba0f[_0x1ffb12(0x168)](r[_0x1ffb12(0x173)]),{shapeId:_0x262461,width:_0x210850,height:_0x9643c7,left:_0x1fd2f7,top:_0x17c6ae,flipX:_0x3de0bd,flipY:_0x4c538e,angle:_0x3b1382,oldAdjustValues:_0x16a5aa,newAdjustValues:_0x493710,oldLineType:_0x41b3fc,newLineType:_0x4639bb}=_0x323a87,_0x497e77=_0x37d8b5[_0x1ffb12(0x195)]({'unitId':_0x287de4,'subUnitId':_0x512f6e,'drawingId':_0x262461});if(!_0x497e77)return!0x1;let _0x48b953=_0x56ba0f[_0x1ffb12(0x168)](p)[_0x1ffb12(0x165)](_0x287de4,_0x512f6e,_0x262461);if(!_0x48b953)return!0x1;let _0x10748c=_0x56ba0f[_0x1ffb12(0x168)](t[_0x1ffb12(0x258)]),_0x47a433=_0x56ba0f[_0x1ffb12(0x168)](t['IUndoRedoService']),_0x41104e=_0x56ba0f['get'](n['SheetInterceptorService']),_0xf94626={..._0x497e77[_0x1ffb12(0x254)],'width':_0x210850,'height':_0x9643c7,'left':_0x1fd2f7,'top':_0x17c6ae,'flipX':_0x3de0bd,'flipY':_0x4c538e,'angle':_0x3b1382},_0x3c5952=(0x0,r[_0x1ffb12(0x230)])(_0xf94626,_0x4baf8c),_0x1ac69e=(0x0,r['transformToAxisAlignPosition'])(_0xf94626,_0x4baf8c),_0x32db85=_0x48b953['getShapeType'](),_0x1a10b1=_0x48b953['getShapeData'](),_0x22fe17={'unitId':_0x287de4,'subUnitId':_0x512f6e,'drawingId':_0x262461,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x3c5952,'transform':_0xf94626,'data':{'shapeType':_0x4639bb||_0x41b3fc||_0x32db85,'shapeData':{..._0x1a10b1,'adjustValues':_0x493710||_0x16a5aa||(_0x1a10b1==null?void 0x0:_0x1a10b1[_0x1ffb12(0x228)])}},'axisAlignSheetTransform':_0x1ac69e,'allowTransform':!0x0},{undo:_0x42adf6,redo:_0x484542,objects:_0xe9c24}=_0x37d8b5[_0x1ffb12(0x170)]([_0x22fe17]),_0x26624c=_0x41104e['onCommandExecute']({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x287de4,'drawings':[_0x22fe17]}}),_0xd2f3be=[..._0x26624c[_0x1ffb12(0x17f)]??[],{'id':r[_0x1ffb12(0x1c6)]['id'],'params':{'unitId':_0x287de4,'subUnitId':_0x512f6e,'op':_0x484542,'objects':_0xe9c24,'type':r[_0x1ffb12(0x1ca)]['UPDATE']}},{'id':r[_0x1ffb12(0x227)]['id'],'params':[_0x287de4]},..._0x26624c[_0x1ffb12(0x1f4)],{'id':_['id'],'params':{'unitId':_0x287de4,'subUnitId':_0x512f6e,'shapeId':_0x262461,'shapeType':_0x4639bb,'shapeData':{'adjustValues':_0x493710}}}],_0x1c5d54=[..._0x26624c[_0x1ffb12(0x212)]??[],{'id':r[_0x1ffb12(0x1c6)]['id'],'params':{'unitId':_0x287de4,'subUnitId':_0x512f6e,'op':_0x42adf6,'objects':_0xe9c24,'type':r[_0x1ffb12(0x1ca)][_0x1ffb12(0x1b6)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x287de4]},..._0x26624c[_0x1ffb12(0x210)],{'id':_['id'],'params':{'unitId':_0x287de4,'subUnitId':_0x512f6e,'shapeId':_0x262461,'shapeType':_0x32db85,'shapeData':{..._0x1a10b1,'adjustValues':_0x16a5aa||(_0x1a10b1==null?void 0x0:_0x1a10b1[_0x1ffb12(0x228)])}}}];return(0x0,t[_0x1ffb12(0x18f)])(_0xd2f3be,_0x10748c)[_0x1ffb12(0x1d1)]?(_0x47a433['pushUndoRedo']({'unitID':_0x287de4,'undoMutations':_0x1c5d54,'redoMutations':_0xd2f3be}),!0x0):!0x1;}},w={'id':_0x3e901a(0x18c),'type':t[_0x3e901a(0x1cf)]['MUTATION'],'handler':(_0xbe298e,_0x40ca4f)=>{const _0x507bfc=_0x3e901a;let {unitId:_0x89ab43,subUnitId:_0x499849,shapeType:_0x4b9890,shapeId:_0x118bc3,shapeData:_0x379be0}=_0x40ca4f,_0x30dac6=_0xbe298e['get'](p)[_0x507bfc(0x165)](_0x89ab43,_0x499849,_0x118bc3);return _0x30dac6&&(_0x30dac6['setShapeType'](_0x4b9890),_0x379be0&&(_0x30dac6==null||_0x30dac6[_0x507bfc(0x20a)](_0x379be0))),!0x0;}};var T='@univerjs-pro/sheets-shape',E=_0x3e901a(0x1cc);function _0x394e(){const _0x54a29d=['filter','preUndos','None','_arrange','_addLineRerouteUpdates','addShape','sheet.mutation.remove-shape','setConfig','getShapeRelation','Disposable','bringToFront','_sheetSkeletonService','function','lineShapeId','prototype','4535565VDRgdw','front','getShapeDisplayNames','point','_groupIds','removeShape','UniverSheetsPlugin','ClearSheetDrawingTransformerOperation','adjustValues','bringForward','_shapeHostAdapterRegistry','Inject','_injector','resizeEnabled','SetSheetsShapeTextVerticalToggleCommand','2369836CfqMgj','transformToDrawingPosition','has','createUniqueShapeName','_shapeService','hasShape','object','DRAWING_SHAPE','getConfig','Plugin','type','interceptCommand','angle','UpdateConnectorRelationCommand','_applyUpdate','sheet.mutation.insert-shape','getBatchAddOp','_disposed','_toSnapshot','getBasicShapeRelation','isHorizontal','_shapes','IUniverInstanceService','IConfigService','getBasicShapeType','SetDrawingArrangeCommand','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','SetSheetsShapeRotateCommand','getEndConnectInfo','IShapeHostAdapterRegistry','formula','canApplyShapeFormulaLastValue','_config','createFreeConnectorPointInfo','Module','formulaBinding','shapeName','transform','selectable','ensureSkeleton','default','ICommandService','values','isFrom','toStringTag','map','length','IUndoRedoService','registerCommand','Injector','SheetSkeletonService','sheet.command.set-shape-drawing-data','dispose','defineProperty','sheetTransform','refresh','UniverShapePlugin','InsertSheetDrawingCommand','_deserializeShapeForUnit','_sheetsShapeService','keys','skeleton','getShapeData','anchorType','back','subUnitId','getShapeDataById','GRID','getShapeType','3191382QiQTLr','getUnit','description','sheet.command.update-line-shape-resize','pushUndoRedo','range','getShapeModel','transferShapeTo','cxnIndex','get','flipX','COMMAND','_initCommandInterceptor','_shapeModelManagerMap','UniverInstanceType','DEFAULT_SHAPE_WIDTH','registerPluginResource','getBatchUpdateOp','_resourcesManagerService','relation','ISheetDrawingService','top','sin','SetShapeDrawingDataCommand','rotation','register','_sheetInterceptorService','fromJSON','listShapesInUnit','ShapeModel','SetSheetDrawingCommand','backward','preRedos','worldRect','clear','from','getConnectionSiteList','rehostShape','entries','sheet.mutation.update-shape-data','InsertSheetsShapeMutation','parse','ArrangeTypeEnum','visible','_linesIds','sheet.mutation.update-shape-type','onStarting','getCellWithCoordByIndex','sequenceExecute','RemoveSheetDrawingCommand','drawingId','getSheetCommandTarget','UniverLicensePlugin','SheetDrawingTransformPlanService','getDrawingByParam','getOwnPropertyDescriptor','SheetDrawingAnchorType','UniverDrawingPlugin','merge','_shapeAdapter','syncExecuteCommand','set','lineType','sheet.command.insert-shape','constructor','getSheets','_ensureShapeModelManager','height','sheet.command.toggle-shape-flip','shapeData','CHART','position','_resolveBinding','deletes','insertShape','_addLineFollowShapeUpdates','params','INSERT','shapeId','originals','_sheetDrawingService','_serializeShapeForUnit','shapeType','Tools','MUTATION','computeConnectorRouteLayout','listShapes','UPDATE','flatMap','rotateEnabled','add','drawingType','left','toPrimitive','UNIVER_SHEET','unitId','flipY','_instanceService','symbol','resolveConnectorRoutePoints','SetSheetDrawingPlacementCommand','stringify','getShape','SetDrawingApplyMutation','updates','UniverSheetsDrawingPlugin','applySheetDrawingPlacement','DrawingApplyType','getLineShapeRelation','1.5.0','generateRandomId','isFinite','CommandType','getDrawingData','result','_drawingService','createFormulaLastValueMutation','UniverSheetsShapePlugin','name','pluginName','getBasicShapeRotateBound','setShapeType','SheetInterceptorService','sheets-shape.config','touchDependencies','getAdjustValueByName','delete','string','borderEnabled','data','disposeWithMe','createDefaultInsertedShapeData','shapeChanged$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','hidden','mode','RemoveSheetsShapeMutation','getSheetId','routeConnectorLineShape','_getConnectPointInfo','5162424YBxNba','getSkeleton','1396626WvNxRU','fill','onCommandExecute','push','isConnectorShape','width','getStartConnectInfo','redos','packageName','forEach','_drawingManagerService','21bWNvue','drawings','_commandService','call','DrawingTypeEnum','sheet.command.set-shape-text-vertical-toggle','1752624pgWhro','transformToAxisAlignPosition','getShapeTextData','forward','find','105681QbKhFB','_getDrawingUpdates','resolveShapeConnectionPoint','_initSnapshot','SHEET_SHAPE_PLUGIN','deepClone','DependentOn','setShapeData','UpdateSheetsShapeTypeMutation','getName','_planConnector','toJSON','sendToBack','undos'];_0x394e=function(){return _0x54a29d;};return _0x394e();}function D(_0x5046f8){const _0x4aae97=_0x3e901a;var _0x21761e,_0x35090e,_0x21f7c4,_0x3429f7,_0x3b8a7b,_0x11b51f,_0x3014ad;return{'left':((_0x21761e=_0x5046f8[_0x4aae97(0x254)])==null?void 0x0:_0x21761e[_0x4aae97(0x1bb)])??0x0,'top':((_0x35090e=_0x5046f8[_0x4aae97(0x254)])==null?void 0x0:_0x35090e[_0x4aae97(0x174)])??0x0,'width':((_0x21f7c4=_0x5046f8['transform'])==null?void 0x0:_0x21f7c4[_0x4aae97(0x1f2)])??0xc8,'height':((_0x3429f7=_0x5046f8['transform'])==null?void 0x0:_0x3429f7[_0x4aae97(0x1a2)])??0xc8,'rotation':((_0x3b8a7b=_0x5046f8[_0x4aae97(0x254)])==null?void 0x0:_0x3b8a7b['rotation'])??0x0,'flipX':((_0x11b51f=_0x5046f8['transform'])==null?void 0x0:_0x11b51f[_0x4aae97(0x169)])??!0x1,'flipY':((_0x3014ad=_0x5046f8['transform'])==null?void 0x0:_0x3014ad[_0x4aae97(0x1bf)])??!0x1};}let O=class{constructor(_0x3fb383,_0x31343d,_0x54136e,_0x79ab2b){const _0x41ac38=_0x3e901a;this['_commandService']=_0x3fb383,this[_0x41ac38(0x233)]=_0x31343d,this['_drawingService']=_0x54136e,this[_0x41ac38(0x1c0)]=_0x79ab2b,l(this,'hostType',t[_0x41ac38(0x16d)]['UNIVER_SHEET']);}get[_0x3e901a(0x1e3)](){return{'subscribe':_0x429079=>{const _0x480b7b=_0x2677;let _0x480850=this['_commandService']['onCommandExecuted'](_0x51c314=>{const _0x3c76db=_0x2677;(_0x51c314['id']===m['id']||_0x51c314['id']===h['id']||_0x51c314['id']===_['id']||_0x51c314['id']===w['id'])&&_0x429079({'unitId':_0x51c314[_0x3c76db(0x1ab)][_0x3c76db(0x1be)]});});return{'unsubscribe':()=>_0x480850[_0x480b7b(0x263)]()};}};}['getShape'](_0x15faa5){const _0xca1f81=_0x3e901a;var _0x216822;let _0x29cefa=(_0x216822=this[_0xca1f81(0x1d2)][_0xca1f81(0x1d0)](_0x15faa5[_0xca1f81(0x1be)],_0x15faa5['subUnitId']))==null?void 0x0:_0x216822[_0x15faa5[_0xca1f81(0x1ad)]],_0x409d00=this[_0xca1f81(0x233)][_0xca1f81(0x15e)](_0x15faa5[_0xca1f81(0x1be)],_0x15faa5[_0xca1f81(0x15b)],_0x15faa5[_0xca1f81(0x1ad)]);if(!_0x29cefa||_0x29cefa[_0xca1f81(0x1ba)]!==t['DrawingTypeEnum'][_0xca1f81(0x236)]||!_0x409d00)return null;let _0x5404b1=_0x29cefa[_0xca1f81(0x254)];return{..._0x15faa5,'shapeType':_0x409d00,'shapeData':t[_0xca1f81(0x1b2)]['deepClone'](this['_shapeService'][_0xca1f81(0x15c)](_0x15faa5[_0xca1f81(0x1be)],_0x15faa5[_0xca1f81(0x15b)],_0x15faa5[_0xca1f81(0x1ad)])??{}),'name':_0x29cefa[_0xca1f81(0x1d5)],'description':_0x29cefa[_0xca1f81(0x161)],'visible':_0x29cefa[_0xca1f81(0x1e5)]!==!0x0,'selectable':_0x29cefa[_0xca1f81(0x255)]!==!0x1,'transform':{'left':(_0x5404b1==null?void 0x0:_0x5404b1[_0xca1f81(0x1bb)])??0x0,'top':(_0x5404b1==null?void 0x0:_0x5404b1[_0xca1f81(0x174)])??0x0,'width':(_0x5404b1==null?void 0x0:_0x5404b1[_0xca1f81(0x1f2)])??0xc8,'height':(_0x5404b1==null?void 0x0:_0x5404b1[_0xca1f81(0x1a2)])??0xc8,'rotation':(_0x5404b1==null?void 0x0:_0x5404b1[_0xca1f81(0x23b)])??0x0,'flipX':(_0x5404b1==null?void 0x0:_0x5404b1[_0xca1f81(0x169)])??!0x1,'flipY':(_0x5404b1==null?void 0x0:_0x5404b1['flipY'])??!0x1}};}[_0x3e901a(0x1b5)](_0x1b71b7){const _0x3f7675=_0x3e901a;let _0x3a1a41=this[_0x3f7675(0x1d2)][_0x3f7675(0x1d0)](_0x1b71b7[_0x3f7675(0x1be)],_0x1b71b7[_0x3f7675(0x15b)])??{};return Object['values'](_0x3a1a41)[_0x3f7675(0x211)](_0x2a6686=>(_0x2a6686==null?void 0x0:_0x2a6686[_0x3f7675(0x1ba)])===t[_0x3f7675(0x1fc)][_0x3f7675(0x236)])[_0x3f7675(0x25c)](_0x46f280=>this[_0x3f7675(0x1c5)]({..._0x1b71b7,'shapeId':_0x46f280[_0x3f7675(0x191)]}))[_0x3f7675(0x211)](_0xa42d03=>!!_0xa42d03);}[_0x3e901a(0x17b)](_0x1e53fc){const _0x3298d2=_0x3e901a;let _0x479654=this[_0x3298d2(0x1c0)][_0x3298d2(0x160)](_0x1e53fc,t[_0x3298d2(0x16d)][_0x3298d2(0x1bd)]);return(_0x479654==null?void 0x0:_0x479654[_0x3298d2(0x1a0)]()[_0x3298d2(0x1b7)](_0x3b2669=>this[_0x3298d2(0x1b5)]({'hostType':this['hostType'],'unitId':_0x1e53fc,'subUnitId':_0x3b2669[_0x3298d2(0x1e8)]()})))??[];}['createShape'](_0x3bc2ed,_0x4ded71){const _0x516205=_0x3e901a;let _0x721006=(0x0,t[_0x516205(0x1cd)])(),_0x53413b=D(_0x4ded71),_0x54fbbd=t['Tools'][_0x516205(0x208)](_0x4ded71['shapeData']??(0x0,e[_0x516205(0x1e2)])(_0x4ded71[_0x516205(0x1b1)]));return this[_0x516205(0x1fa)][_0x516205(0x19b)](g['id'],{'unitId':_0x3bc2ed[_0x516205(0x1be)],'subUnitId':_0x3bc2ed['subUnitId'],'shapeId':_0x721006,'shapeType':_0x4ded71[_0x516205(0x1b1)],'shapeData':_0x54fbbd,'name':_0x4ded71[_0x516205(0x1d5)],'description':_0x4ded71[_0x516205(0x161)],'position':{'x':_0x53413b['left'],'y':_0x53413b[_0x516205(0x174)]},'width':_0x53413b[_0x516205(0x1f2)],'height':_0x53413b['height'],'rotation':_0x53413b[_0x516205(0x177)],'flipX':_0x53413b[_0x516205(0x169)],'flipY':_0x53413b[_0x516205(0x1bf)],'visible':_0x4ded71['visible']??!0x0,'selectable':_0x4ded71['selectable']??!0x0})?{..._0x3bc2ed,'shapeId':_0x721006,'shapeType':_0x4ded71['shapeType'],'shapeData':_0x54fbbd,'name':_0x4ded71[_0x516205(0x1d5)],'description':_0x4ded71['description'],'visible':_0x4ded71[_0x516205(0x18a)]??!0x0,'selectable':_0x4ded71['selectable']??!0x0,'transform':_0x53413b}:null;}['updateShape'](_0x1d72ff,_0x51da1b){const _0x4eeb4b=_0x3e901a;var _0x2db03d;let _0x30fdb1=this[_0x4eeb4b(0x1c5)](_0x1d72ff);if(!_0x30fdb1)return!0x1;let _0x4ae256={..._0x30fdb1[_0x4eeb4b(0x254)],..._0x51da1b[_0x4eeb4b(0x254)]};return this[_0x4eeb4b(0x1fa)]['syncExecuteCommand'](v['id'],{'unitId':_0x1d72ff[_0x4eeb4b(0x1be)],'subUnitId':_0x1d72ff['subUnitId'],'shapeId':_0x1d72ff[_0x4eeb4b(0x1ad)],'shapeType':_0x51da1b[_0x4eeb4b(0x1b1)]??((_0x2db03d=_0x51da1b[_0x4eeb4b(0x1a4)])==null?void 0x0:_0x2db03d[_0x4eeb4b(0x1b1)])??_0x30fdb1[_0x4eeb4b(0x1b1)],'shapeData':_0x51da1b[_0x4eeb4b(0x1a4)]??_0x30fdb1[_0x4eeb4b(0x1a4)],'position':{'x':_0x4ae256[_0x4eeb4b(0x1bb)],'y':_0x4ae256[_0x4eeb4b(0x174)]},'width':_0x4ae256[_0x4eeb4b(0x1f2)],'height':_0x4ae256[_0x4eeb4b(0x1a2)],'rotation':_0x4ae256[_0x4eeb4b(0x177)],'flipX':_0x4ae256['flipX'],'flipY':_0x4ae256['flipY'],'name':_0x4eeb4b(0x1d5)in _0x51da1b?_0x51da1b[_0x4eeb4b(0x1d5)]:_0x30fdb1['name'],'description':_0x4eeb4b(0x161)in _0x51da1b?_0x51da1b[_0x4eeb4b(0x161)]:_0x30fdb1[_0x4eeb4b(0x161)],'visible':_0x51da1b[_0x4eeb4b(0x18a)]??_0x30fdb1[_0x4eeb4b(0x18a)],'selectable':_0x51da1b[_0x4eeb4b(0x255)]??_0x30fdb1[_0x4eeb4b(0x255)]});}[_0x3e901a(0x1d3)](_0x236c73,_0x5b18f3,_0x9a1def){const _0x517617=_0x3e901a;let _0x25980d=this[_0x517617(0x1c5)](_0x236c73),_0x564fa6=_0x25980d==null?void 0x0:_0x25980d[_0x517617(0x1a4)]['formulaBinding'];return!_0x25980d||!_0x564fa6?null:{'id':_['id'],'params':{'unitId':_0x236c73[_0x517617(0x1be)],'subUnitId':_0x236c73['subUnitId'],'shapeId':_0x236c73[_0x517617(0x1ad)],'shapeData':{..._0x25980d['shapeData'],'formulaBinding':{..._0x564fa6,'lastValue':t['Tools'][_0x517617(0x208)](_0x9a1def)}},'replace':!0x0,'formulaLastValueGuard':_0x5b18f3}};}[_0x3e901a(0x225)](_0x396637){const _0x29fc5d=_0x3e901a;return this[_0x29fc5d(0x1fa)][_0x29fc5d(0x19b)](r[_0x29fc5d(0x190)]['id'],{'unitId':_0x396637[_0x29fc5d(0x1be)],'drawings':[{'unitId':_0x396637[_0x29fc5d(0x1be)],'subUnitId':_0x396637[_0x29fc5d(0x15b)],'drawingId':_0x396637[_0x29fc5d(0x1ad)],'drawingType':t['DrawingTypeEnum'][_0x29fc5d(0x236)]}]});}[_0x3e901a(0x21b)](_0x5a03cb){const _0x2dcdac=_0x3e901a;return this['_arrange'](_0x5a03cb,t['ArrangeTypeEnum'][_0x2dcdac(0x221)]);}[_0x3e901a(0x229)](_0x7e5613){const _0x3a9331=_0x3e901a;return this[_0x3a9331(0x214)](_0x7e5613,t[_0x3a9331(0x189)][_0x3a9331(0x201)]);}['sendBackward'](_0x30cc97){const _0x5eed00=_0x3e901a;return this['_arrange'](_0x30cc97,t[_0x5eed00(0x189)][_0x5eed00(0x17e)]);}[_0x3e901a(0x20f)](_0x12b56f){const _0x592a0b=_0x3e901a;return this['_arrange'](_0x12b56f,t[_0x592a0b(0x189)][_0x592a0b(0x15a)]);}['setZOrder'](_0x2e75d5,_0x15b577){const _0x12bfb6=_0x3e901a;return this[_0x12bfb6(0x1fa)][_0x12bfb6(0x19b)](r[_0x12bfb6(0x248)]['id'],{'unitId':_0x2e75d5[_0x12bfb6(0x1be)],'subUnitId':_0x2e75d5[_0x12bfb6(0x15b)],'drawingIds':[_0x2e75d5[_0x12bfb6(0x1ad)]],'zOrder':_0x15b577});}[_0x3e901a(0x214)](_0x14da2d,_0x545979){const _0x513e2c=_0x3e901a;return this[_0x513e2c(0x1fa)][_0x513e2c(0x19b)](r[_0x513e2c(0x248)]['id'],{'unitId':_0x14da2d[_0x513e2c(0x1be)],'subUnitId':_0x14da2d[_0x513e2c(0x15b)],'drawingIds':[_0x14da2d[_0x513e2c(0x1ad)]],'arrangeType':_0x545979});}};O=f([d(0x0,t[_0x3e901a(0x258)]),d(0x1,(0x0,t['Inject'])(p)),d(0x2,r['ISheetDrawingService']),d(0x3,t[_0x3e901a(0x245)])],O);const k={};let A=class extends t['Disposable']{constructor(_0x179cd0,_0x4bb08e,_0x531bfc,_0x304758,_0x55c4b9,_0x560853,_0x42d31c,_0x4c65a6){const _0x50b867=_0x3e901a;super(),this[_0x50b867(0x1fa)]=_0x179cd0,this[_0x50b867(0x179)]=_0x4bb08e,this['_sheetSkeletonService']=_0x531bfc,this[_0x50b867(0x1af)]=_0x304758,this[_0x50b867(0x26a)]=_0x55c4b9,this[_0x50b867(0x1f7)]=_0x560853,this[_0x50b867(0x22a)]=_0x42d31c,this['_initCommands'](),this['_initCommandInterceptor'](),this[_0x50b867(0x1e1)](this[_0x50b867(0x22a)][_0x50b867(0x178)](_0x4c65a6));}['_initCommands'](){const _0x377b2e=_0x3e901a;[g,v,y,b,x,S,C,m,h,w,_][_0x377b2e(0x1f6)](_0xb9566c=>this[_0x377b2e(0x1e1)](this[_0x377b2e(0x1fa)][_0x377b2e(0x25f)](_0xb9566c)));}[_0x3e901a(0x16b)](){const _0x26b1a8=_0x3e901a;this['disposeWithMe'](this[_0x26b1a8(0x179)][_0x26b1a8(0x23a)]({'getMutations':_0x2f99ed=>{const _0x289ba9=_0x26b1a8;if(_0x2f99ed['id']===r['RemoveSheetDrawingCommand']['id']){let {drawings:_0x42687e}=_0x2f99ed[_0x289ba9(0x1ab)],_0x129f0b=_0x42687e[_0x289ba9(0x211)](_0x42f437=>_0x42f437[_0x289ba9(0x1ba)]===t[_0x289ba9(0x1fc)][_0x289ba9(0x236)]);if(_0x129f0b[_0x289ba9(0x25d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2c126c=[],_0x447ec8=[];return _0x129f0b[_0x289ba9(0x1f6)](_0x516342=>{const _0x299d94=_0x289ba9;let {unitId:_0x3e3d5a,subUnitId:_0x59285d,drawingId:_0x31ae7f}=_0x516342,_0xd6a4b3=this['_sheetsShapeService'][_0x299d94(0x165)](_0x3e3d5a,_0x59285d,_0x31ae7f);if(!_0xd6a4b3)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xd6a4b3);_0x2c126c['push']({'id':h['id'],'params':{'unitId':_0x3e3d5a,'subUnitId':_0x59285d,'shapeId':_0x31ae7f}}),_0x447ec8[_0x299d94(0x1f0)]({'id':m['id'],'params':{'unitId':_0x3e3d5a,'subUnitId':_0x59285d,'shapeId':_0x31ae7f,'shapeType':_0xd6a4b3['getShapeType'](),'shapeData':_0xd6a4b3[_0x299d94(0x158)]()}});let _0x4a8429=this[_0x299d94(0x26a)][_0x299d94(0x242)](_0x3e3d5a,_0x59285d,_0x31ae7f);if(_0x4a8429)for(let _0x38b095 of _0x4a8429){let _0x2bd8a6=_0x38b095['lineShapeId'],_0x15a65b=_0x38b095[_0x299d94(0x25a)],_0x5309d7=_0x15a65b?{'from':void 0x0}:{'to':void 0x0},_0x51c155=_0x15a65b?{'from':{'shapeId':_0x38b095[_0x299d94(0x1ad)],'cxnIndex':_0x38b095[_0x299d94(0x167)]}}:{'to':{'shapeId':_0x38b095[_0x299d94(0x1ad)],'cxnIndex':_0x38b095[_0x299d94(0x167)]}};_0x2c126c['push']({'id':_['id'],'params':{'unitId':_0x3e3d5a,'subUnitId':_0x59285d,'shapeId':_0x2bd8a6,'shapeData':{'relation':_0x5309d7}}}),_0x447ec8[_0x299d94(0x1f0)]({'id':_['id'],'params':{'unitId':_0x3e3d5a,'subUnitId':_0x59285d,'shapeId':_0x2bd8a6,'shapeData':{'relation':_0x51c155}}});}}),{'preRedos':_0x2c126c,'redos':[],'preUndos':[],'undos':_0x447ec8};}let _0x1ff854=this[_0x289ba9(0x204)](_0x2f99ed);if(_0x1ff854){let _0xd49a9a=_0x1ff854[_0x289ba9(0x211)](_0x435cd8=>_0x435cd8[_0x289ba9(0x1ba)]===t['DrawingTypeEnum'][_0x289ba9(0x236)]);if(_0xd49a9a[_0x289ba9(0x25d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x288a09=[],_0x4b91bf=[];for(let _0x2cc0f0 of _0xd49a9a){let {unitId:_0x483276,subUnitId:_0xb93ca5,drawingId:_0x1c6faa,transform:_0x3da5c0}=_0x2cc0f0;if(!_0x483276||!_0xb93ca5||!_0x1c6faa||!_0x3da5c0)continue;let _0xaf7af0=this[_0x289ba9(0x26a)][_0x289ba9(0x165)](_0x483276,_0xb93ca5,_0x1c6faa);if(!_0xaf7af0)throw TypeError(_0x289ba9(0x249)+_0xaf7af0);let _0x2176df=_0xaf7af0[_0x289ba9(0x15e)]();if((0x0,e[_0x289ba9(0x1f1)])(_0x2176df)){let _0x480e6f=this[_0x289ba9(0x26a)]['getLineShapeRelation'](_0x483276,_0xb93ca5,_0x1c6faa);_0x480e6f&&(_0x288a09[_0x289ba9(0x1f0)]({'id':_['id'],'params':{'unitId':_0x483276,'subUnitId':_0xb93ca5,'shapeId':_0x1c6faa,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4b91bf[_0x289ba9(0x1f0)]({'id':_['id'],'params':{'unitId':_0x483276,'subUnitId':_0xb93ca5,'shapeId':_0x1c6faa,'shapeData':{'relation':_0x480e6f}}}));}else{let _0x4e1c49=this[_0x289ba9(0x26a)]['getBasicShapeRelation'](_0x483276,_0xb93ca5,_0x1c6faa);if(_0x4e1c49&&_0x4e1c49[_0x289ba9(0x25d)]>0x0)for(let _0x2d912d of _0x4e1c49){let _0x45e711=_0x2d912d[_0x289ba9(0x21e)],_0xb079e5=_0x2d912d['isFrom'],_0x70e6ed=this[_0x289ba9(0x26a)][_0x289ba9(0x165)](_0x483276,_0xb93ca5,_0x45e711);if(!_0x70e6ed)continue;let _0x1dea6b=_0x70e6ed[_0x289ba9(0x1f3)](),_0x760e2e=_0x70e6ed[_0x289ba9(0x24b)]();_0x1dea6b&&_0x760e2e?this[_0x289ba9(0x215)](_0x483276,_0xb93ca5,_0x45e711,_0x70e6ed,_0x1dea6b,_0x760e2e,_0x288a09,_0x4b91bf,_0x1c6faa,_0x3da5c0):this[_0x289ba9(0x1aa)](_0x483276,_0xb93ca5,_0x45e711,_0x70e6ed,_0xb079e5?_0x1dea6b:_0x760e2e,_0xb079e5,_0x288a09,_0x4b91bf,_0x1c6faa,_0x3da5c0);}}}return{'preRedos':[],'redos':_0x288a09,'preUndos':_0x4b91bf,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3e901a(0x204)](_0x12622d){const _0x47da8f=_0x3e901a;if(_0x12622d['id']===r[_0x47da8f(0x17d)]['id'])return _0x12622d[_0x47da8f(0x1ab)][_0x47da8f(0x1f9)];if(_0x12622d['id']===r[_0x47da8f(0x1c3)]['id']){let _0x1021eb=_0x12622d['params'],_0x409997=_0x1021eb[_0x47da8f(0x1f9)]['every'](({placement:_0x3b5c96})=>_0x3b5c96['kind']===r[_0x47da8f(0x197)][_0x47da8f(0x213)])?void 0x0:this[_0x47da8f(0x21c)][_0x47da8f(0x256)](_0x1021eb[_0x47da8f(0x1be)],_0x1021eb['subUnitId']),_0xa0209b=[];for(let {drawingId:_0x577f98,placement:_0x5b3f50}of _0x1021eb[_0x47da8f(0x1f9)]){let _0x36c1b7=this[_0x47da8f(0x1af)][_0x47da8f(0x195)]({'unitId':_0x1021eb[_0x47da8f(0x1be)],'subUnitId':_0x1021eb['subUnitId'],'drawingId':_0x577f98});(_0x36c1b7==null?void 0x0:_0x36c1b7[_0x47da8f(0x1ba)])===t[_0x47da8f(0x1fc)]['DRAWING_SHAPE']&&_0xa0209b[_0x47da8f(0x1f0)]((0x0,r[_0x47da8f(0x1c9)])(_0x36c1b7,_0x5b3f50,_0x409997));}return _0xa0209b;}return null;}['_getConnectPointInfo'](_0x3e724e,_0x4c36d8,_0x5ceef7,_0x2301bf,_0x32236e){const _0x505aca=_0x3e901a;if(!_0x4c36d8||!_0x5ceef7)return null;let {shapeId:_0x5648f6,cxnIndex:_0x3a5bbd}=_0x3e724e,_0x51edbd=this['_sheetsShapeService'][_0x505aca(0x165)](_0x4c36d8,_0x5ceef7,_0x5648f6);if(!_0x51edbd)return null;let _0x34032e=this['_drawingManagerService'][_0x505aca(0x195)]({'unitId':_0x4c36d8,'subUnitId':_0x5ceef7,'drawingId':_0x5648f6});if(!(_0x34032e!=null&&_0x34032e['transform']))return null;let {left:_0x16e4b9=0x0,top:_0x5e1909=0x0,width:_0xb9f37e=0x0,height:_0x18d8da=0x0,flipX:_0x900a31=!0x1,flipY:_0xe1724e=!0x1,angle:_0x4c6fa0}=_0x34032e[_0x505aca(0x254)];_0x32236e&&_0x2301bf===_0x5648f6&&(_0x16e4b9=_0x32236e['left']??_0x16e4b9,_0x5e1909=_0x32236e['top']??_0x5e1909,_0xb9f37e=_0x32236e['width']??_0xb9f37e,_0x18d8da=_0x32236e[_0x505aca(0x1a2)]??_0x18d8da,_0x900a31=_0x32236e[_0x505aca(0x169)]??_0x900a31,_0xe1724e=_0x32236e[_0x505aca(0x1bf)]??_0xe1724e,_0x4c6fa0=_0x32236e[_0x505aca(0x23b)]??_0x4c6fa0),_0x51edbd['updateContext']({'width':_0xb9f37e,'height':_0x18d8da});let _0x1e09db=_0x51edbd[_0x505aca(0x183)]()[_0x505aca(0x202)](_0x20f5c6=>_0x20f5c6['index']===_0x3a5bbd);if(!_0x1e09db)return null;let _0x1bab91=_0x900a31?_0xb9f37e-_0x1e09db['x']:_0x1e09db['x'],_0x2e210b=_0xe1724e?_0x18d8da-_0x1e09db['y']:_0x1e09db['y'];if(_0x4c6fa0!==0x0&&_0x4c6fa0!=null){let _0x358b58=_0x4c6fa0*Math['PI']/0xb4,_0x5cc903=Math['cos'](_0x358b58),_0x2a4be2=Math[_0x505aca(0x175)](_0x358b58),_0x153475=_0xb9f37e/0x2,_0x7c5052=_0x18d8da/0x2,_0x328e9c=_0x1bab91-_0x153475,_0x5e30c0=_0x2e210b-_0x7c5052;_0x1bab91=_0x153475+_0x328e9c*_0x5cc903-_0x5e30c0*_0x2a4be2,_0x2e210b=_0x7c5052+_0x328e9c*_0x2a4be2+_0x5e30c0*_0x5cc903;}_0x1bab91+=_0x16e4b9,_0x2e210b+=_0x5e1909;let _0x263e74=_0x1e09db['ang']/0xea60;_0x900a31&&(_0x263e74=0xb4-_0x263e74),_0xe1724e&&(_0x263e74=-_0x263e74),_0x263e74+=_0x4c6fa0||0x0,_0x263e74=(_0x263e74%0x168+0x168)%0x168;let _0x299ca=(0x0,e[_0x505aca(0x1d7)])({'left':_0x16e4b9,'top':_0x5e1909,'width':_0xb9f37e,'height':_0x18d8da},_0x4c6fa0||0x0);return{'point':{'x':_0x1bab91,'y':_0x2e210b},'angle':_0x263e74,'bounds':_0x299ca};}[_0x3e901a(0x215)](_0x35b12b,_0x5538e6,_0x1d693a,_0x4f6781,_0x578e9d,_0x1f683a,_0x137e4d,_0x24df88,_0x3113cd,_0x398ccf){const _0x417276=_0x3e901a;let _0x423d0c=this[_0x417276(0x21c)]['getSkeleton'](_0x35b12b,_0x5538e6);if(!_0x423d0c)return;let _0x45aed9=_0x4f6781[_0x417276(0x219)](),_0x176a55=_0x4f6781['getAdjustNames'](),_0x52e73b={},_0x39e1f7={};_0x176a55[_0x417276(0x1f6)](_0x3e2ba8=>{const _0x470193=_0x417276;let _0x569c60=_0x4f6781[_0x470193(0x1dc)](_0x3e2ba8);_0x39e1f7[_0x3e2ba8]=_0x569c60??0x0;});let _0x351548=this[_0x417276(0x1ea)](_0x578e9d,_0x35b12b,_0x5538e6,_0x3113cd,_0x398ccf),_0x109bda=this[_0x417276(0x1ea)](_0x1f683a,_0x35b12b,_0x5538e6,_0x3113cd,_0x398ccf);if(_0x351548&&_0x109bda){let _0x5e7b7d=_0x4f6781[_0x417276(0x15e)](),_0x3987f5=(0x0,e[_0x417276(0x1e9)])(_0x351548,_0x109bda,_0x5e7b7d),_0x5ce7ad=_0x5e7b7d;if(_0x3987f5){let _0x41fe7b=(0x0,e[_0x417276(0x1b4)])(_0x3987f5,_0x4f6781['getShapeType']()),_0xecd23b=this[_0x417276(0x1f7)][_0x417276(0x1d0)](_0x35b12b,_0x5538e6);if(_0xecd23b&&_0xecd23b[_0x1d693a]){let _0x30916d=_0xecd23b[_0x1d693a];_0x5ce7ad=_0x41fe7b[_0x417276(0x19d)];for(let [_0x4be8e5,_0x42e016]of Object[_0x417276(0x185)](_0x41fe7b[_0x417276(0x228)]))_0x52e73b[_0x4be8e5]=_0x42e016;let _0x39c28c={..._0x30916d[_0x417276(0x254)],'width':_0x41fe7b[_0x417276(0x180)]['width'],'height':_0x41fe7b[_0x417276(0x180)][_0x417276(0x1a2)],'left':_0x41fe7b[_0x417276(0x180)][_0x417276(0x1bb)],'top':_0x41fe7b[_0x417276(0x180)][_0x417276(0x174)],'flipX':_0x41fe7b[_0x417276(0x180)]['flipX'],'flipY':_0x41fe7b[_0x417276(0x180)]['flipY'],'angle':_0x41fe7b[_0x417276(0x177)]},_0x598159=(0x0,r[_0x417276(0x230)])(_0x39c28c,_0x423d0c),_0x36cbcf=(0x0,r[_0x417276(0x1ff)])(_0x39c28c,_0x423d0c),_0x1b0086={'unitId':_0x35b12b,'subUnitId':_0x5538e6,'drawingType':t[_0x417276(0x1fc)][_0x417276(0x236)],'drawingId':_0x1d693a,'transform':_0x39c28c,'sheetTransform':_0x598159,'axisAlignSheetTransform':_0x36cbcf},{unitId:_0x1750c4,subUnitId:_0x33ec2c,undo:_0x4e0e9d,redo:_0x256793,objects:_0x4eb6c8}=this[_0x417276(0x1f7)][_0x417276(0x170)]([_0x1b0086]);_0x137e4d[_0x417276(0x1f0)]({'id':r[_0x417276(0x1c6)]['id'],'params':{'unitId':_0x1750c4,'subUnitId':_0x33ec2c,'op':_0x256793,'objects':_0x4eb6c8,'type':r['DrawingApplyType'][_0x417276(0x1b6)]}}),_0x24df88[_0x417276(0x1f0)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1750c4,'subUnitId':_0x33ec2c,'op':_0x4e0e9d,'objects':_0x4eb6c8,'type':r[_0x417276(0x1ca)][_0x417276(0x1b6)]}});}_0x4f6781['removeLinePoints']();}_0x137e4d[_0x417276(0x1f0)]({'id':_['id'],'params':{'unitId':_0x35b12b,'subUnitId':_0x5538e6,'shapeId':_0x1d693a,'shapeType':_0x5ce7ad,'shapeData':{'adjustValues':_0x52e73b,'relation':_0x45aed9}}}),_0x24df88['push']({'id':_['id'],'params':{'unitId':_0x35b12b,'subUnitId':_0x5538e6,'shapeId':_0x1d693a,'shapeType':_0x5e7b7d,'shapeData':{'adjustValues':_0x39e1f7,'relation':_0x45aed9}}});}}[_0x3e901a(0x1aa)](_0xce9ca3,_0x28d0e7,_0x285f28,_0x7fcd52,_0x5d53e6,_0xd7500d,_0x1df572,_0x1c339c,_0x114497,_0x15c7e6){const _0x5865a2=_0x3e901a;var _0x20ab5c;if(!_0x5d53e6)return;let _0xf4e23b=this[_0x5865a2(0x21c)][_0x5865a2(0x1ec)](_0xce9ca3,_0x28d0e7);if(!_0xf4e23b)return;let _0x1f91ef=(_0x20ab5c=this['_drawingManagerService'][_0x5865a2(0x195)]({'unitId':_0xce9ca3,'subUnitId':_0x28d0e7,'drawingId':_0x114497}))==null?void 0x0:_0x20ab5c[_0x5865a2(0x254)];if(!_0x1f91ef)return;let _0x5a7c47=_0x1f91ef[_0x5865a2(0x1bb)]!==_0x15c7e6['left']||_0x1f91ef[_0x5865a2(0x174)]!==_0x15c7e6[_0x5865a2(0x174)],_0x2b280d=_0x1f91ef[_0x5865a2(0x1f2)]!==_0x15c7e6[_0x5865a2(0x1f2)]||_0x1f91ef[_0x5865a2(0x1a2)]!==_0x15c7e6[_0x5865a2(0x1a2)],_0x3002a6=_0x1f91ef[_0x5865a2(0x169)]!==_0x15c7e6[_0x5865a2(0x169)]||_0x1f91ef[_0x5865a2(0x1bf)]!==_0x15c7e6[_0x5865a2(0x1bf)],_0x1f3f05=_0x1f91ef[_0x5865a2(0x23b)]!==_0x15c7e6[_0x5865a2(0x23b)];if(_0x5a7c47&&!_0x2b280d&&!_0x3002a6&&!_0x1f3f05){let _0x43c396=(_0x15c7e6['left']??0x0)-(_0x1f91ef['left']??0x0),_0xebf250=(_0x15c7e6[_0x5865a2(0x174)]??0x0)-(_0x1f91ef['top']??0x0),_0x1ac5ee=this[_0x5865a2(0x1f7)][_0x5865a2(0x1d0)](_0xce9ca3,_0x28d0e7);if(_0x1ac5ee&&_0x1ac5ee[_0x285f28]){var _0xdd748d,_0xb2d1ea;let _0x59e847=_0x1ac5ee[_0x285f28],_0x236666={..._0x59e847[_0x5865a2(0x254)],'left':(((_0xdd748d=_0x59e847[_0x5865a2(0x254)])==null?void 0x0:_0xdd748d[_0x5865a2(0x1bb)])??0x0)+_0x43c396,'top':(((_0xb2d1ea=_0x59e847[_0x5865a2(0x254)])==null?void 0x0:_0xb2d1ea[_0x5865a2(0x174)])??0x0)+_0xebf250},_0x380dc2=(0x0,r[_0x5865a2(0x230)])(_0x236666,_0xf4e23b),_0x4bd64a=(0x0,r[_0x5865a2(0x1ff)])(_0x236666,_0xf4e23b),_0x31dcf4={'unitId':_0xce9ca3,'subUnitId':_0x28d0e7,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'drawingId':_0x285f28,'transform':_0x236666,'sheetTransform':_0x380dc2,'axisAlignSheetTransform':_0x4bd64a},{unitId:_0x4f5bd5,subUnitId:_0x5d0ded,undo:_0x26d051,redo:_0x6183a3,objects:_0x43ebc2}=this['_drawingManagerService']['getBatchUpdateOp']([_0x31dcf4]);_0x1df572[_0x5865a2(0x1f0)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f5bd5,'subUnitId':_0x5d0ded,'op':_0x6183a3,'objects':_0x43ebc2,'type':r[_0x5865a2(0x1ca)]['UPDATE']}}),_0x1c339c['push']({'id':r[_0x5865a2(0x1c6)]['id'],'params':{'unitId':_0x4f5bd5,'subUnitId':_0x5d0ded,'op':_0x26d051,'objects':_0x43ebc2,'type':r['DrawingApplyType']['UPDATE']}});}}else{let _0x558159=_0x7fcd52[_0x5865a2(0x1f3)](),_0x5b87d7=_0x7fcd52[_0x5865a2(0x24b)]();this[_0x5865a2(0x215)](_0xce9ca3,_0x28d0e7,_0x285f28,_0x7fcd52,_0x558159,_0x5b87d7,_0x1df572,_0x1c339c,_0x114497,_0x15c7e6);}}};A=f([d(0x0,t[_0x3e901a(0x258)]),d(0x1,(0x0,t[_0x3e901a(0x22b)])(n[_0x3e901a(0x1d9)])),d(0x2,(0x0,t[_0x3e901a(0x22b)])(n[_0x3e901a(0x261)])),d(0x3,(0x0,t['Inject'])(r['ISheetDrawingService'])),d(0x4,(0x0,t[_0x3e901a(0x22b)])(p)),d(0x5,(0x0,t[_0x3e901a(0x22b)])(a['IDrawingManagerService'])),d(0x6,(0x0,t[_0x3e901a(0x22b)])(e[_0x3e901a(0x24c)])),d(0x7,(0x0,t[_0x3e901a(0x22b)])(O))],A);let j=class extends t[_0x3e901a(0x21a)]{constructor(_0x432947,_0x56afe9,_0x42b1b3){const _0x56ec10=_0x3e901a;super(),this[_0x56ec10(0x233)]=_0x432947,this[_0x56ec10(0x19a)]=_0x56afe9,this['disposeWithMe'](_0x42b1b3[_0x56ec10(0x178)](this));}[_0x3e901a(0x254)](_0x479a82){const _0x248613=_0x3e901a;let _0x42a209={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this['_planDeletes'](_0x479a82,_0x42a209);for(let [_0x56749b,_0x491fac]of _0x479a82[_0x248613(0x1ae)])this['_planConnector'](_0x479a82,_0x56749b,_0x491fac,_0x42a209);return _0x42a209;}['_planDeletes'](_0x208607,_0x3e3541){const _0x55256d=_0x3e901a;if(_0x208607['mode']==='command')for(let _0x359b22 of _0x208607[_0x55256d(0x1a8)]){let _0x8c90cf=_0x208607[_0x55256d(0x1ae)][_0x55256d(0x168)](_0x359b22),_0x518b1a=this[_0x55256d(0x233)]['getShapeModel'](_0x208607[_0x55256d(0x1be)],_0x208607['subUnitId'],_0x359b22);(_0x8c90cf==null?void 0x0:_0x8c90cf[_0x55256d(0x1ba)])===t['DrawingTypeEnum'][_0x55256d(0x236)]&&_0x518b1a&&(_0x3e3541['preRedos'][_0x55256d(0x1f0)]({'id':h['id'],'params':{'unitId':_0x208607['unitId'],'subUnitId':_0x208607[_0x55256d(0x15b)],'shapeId':_0x359b22}}),_0x3e3541['undos'][_0x55256d(0x1f0)]({'id':m['id'],'params':{'unitId':_0x208607[_0x55256d(0x1be)],'subUnitId':_0x208607[_0x55256d(0x15b)],'shapeId':_0x359b22,'shapeName':_0x518b1a[_0x55256d(0x20c)](),'shapeType':_0x518b1a[_0x55256d(0x15e)](),'shapeData':t[_0x55256d(0x1b2)]['deepClone'](_0x518b1a[_0x55256d(0x158)]())}}));}}[_0x3e901a(0x20d)](_0x2e87ea,_0x3820b0,_0x49fdb2,_0x300106){const _0x4023a6=_0x3e901a;if(_0x49fdb2[_0x4023a6(0x1ba)]!==t[_0x4023a6(0x1fc)][_0x4023a6(0x236)]||_0x2e87ea[_0x4023a6(0x1a8)][_0x4023a6(0x231)](_0x3820b0))return;let _0x4f021d=this[_0x4023a6(0x233)][_0x4023a6(0x165)](_0x2e87ea[_0x4023a6(0x1be)],_0x2e87ea['subUnitId'],_0x3820b0);if(!_0x4f021d||!(0x0,e[_0x4023a6(0x1f1)])(_0x4f021d['getShapeType']()))return;let _0xfcb794=_0x4f021d[_0x4023a6(0x219)]();if(!(_0x2e87ea[_0x4023a6(0x1c7)][_0x4023a6(0x231)](_0x3820b0)||_0xfcb794!=null&&_0xfcb794[_0x4023a6(0x182)]&&(_0x2e87ea[_0x4023a6(0x1c7)][_0x4023a6(0x231)](_0xfcb794[_0x4023a6(0x182)][_0x4023a6(0x1ad)])||_0x2e87ea[_0x4023a6(0x1a8)]['has'](_0xfcb794[_0x4023a6(0x182)]['shapeId']))||_0xfcb794!=null&&_0xfcb794['to']&&(_0x2e87ea[_0x4023a6(0x1c7)][_0x4023a6(0x231)](_0xfcb794['to']['shapeId'])||_0x2e87ea[_0x4023a6(0x1a8)][_0x4023a6(0x231)](_0xfcb794['to'][_0x4023a6(0x1ad)]))))return;let _0xa2414f=_0x2e87ea['updates'][_0x4023a6(0x168)](_0x3820b0)??_0x49fdb2,_0x554a22=this[_0x4023a6(0x241)](_0x2e87ea,_0xa2414f);if(!_0x554a22)return;let _0x50b0c9=(0x0,e[_0x4023a6(0x1c2)])(_0x554a22);if(_0x50b0c9['length']<0x2)return;let _0x7aab03=t[_0x4023a6(0x1b2)][_0x4023a6(0x208)](_0xfcb794??{}),_0x37d923=_0x7aab03['from']&&this[_0x4023a6(0x1a7)](_0x2e87ea,_0x7aab03['from'][_0x4023a6(0x1ad)],_0x7aab03[_0x4023a6(0x182)][_0x4023a6(0x167)]),_0x727b2b=_0x7aab03['to']&&this[_0x4023a6(0x1a7)](_0x2e87ea,_0x7aab03['to'][_0x4023a6(0x1ad)],_0x7aab03['to'][_0x4023a6(0x167)]);_0x7aab03[_0x4023a6(0x182)]&&!_0x37d923&&delete _0x7aab03['from'],_0x7aab03['to']&&!_0x727b2b&&delete _0x7aab03['to'];let _0xf39151=_0x37d923||(0x0,e[_0x4023a6(0x250)])((_0x727b2b==null?void 0x0:_0x727b2b[_0x4023a6(0x223)])??_0x50b0c9[_0x50b0c9[_0x4023a6(0x25d)]-0x1],_0x50b0c9[0x0]),_0x184911=_0x727b2b||(0x0,e[_0x4023a6(0x250)])((_0x37d923==null?void 0x0:_0x37d923['point'])??_0x50b0c9[0x0],_0x50b0c9[_0x50b0c9[_0x4023a6(0x25d)]-0x1]),_0x40794b=(0x0,e['buildConnectorEndpointUpdate'])(_0x554a22,_0xf39151,_0x184911,_0x7aab03);_0x40794b!=null&&_0x40794b[_0x4023a6(0x254)]&&_0x40794b[_0x4023a6(0x1b1)]&&_0x40794b['shapeData']&&(this[_0x4023a6(0x23d)](_0x2e87ea,_0xa2414f,_0x40794b),_0x2e87ea[_0x4023a6(0x1e6)]===_0x4023a6(0x266)?(_0x4f021d[_0x4023a6(0x1d8)](_0x40794b[_0x4023a6(0x1b1)]),_0x4f021d[_0x4023a6(0x20a)](t[_0x4023a6(0x1b2)][_0x4023a6(0x208)](_0x40794b[_0x4023a6(0x1a4)]),!0x1)):(_0x300106[_0x4023a6(0x1f4)][_0x4023a6(0x1f0)]({'id':_['id'],'params':{'unitId':_0x2e87ea[_0x4023a6(0x1be)],'subUnitId':_0x2e87ea[_0x4023a6(0x15b)],'shapeId':_0x3820b0,'shapeType':_0x40794b[_0x4023a6(0x1b1)],'shapeData':t[_0x4023a6(0x1b2)][_0x4023a6(0x208)](_0x40794b[_0x4023a6(0x1a4)]),'replace':!0x0}}),_0x300106[_0x4023a6(0x210)]['push']({'id':_['id'],'params':{'unitId':_0x2e87ea[_0x4023a6(0x1be)],'subUnitId':_0x2e87ea[_0x4023a6(0x15b)],'shapeId':_0x3820b0,'shapeType':_0x4f021d[_0x4023a6(0x15e)](),'shapeData':t[_0x4023a6(0x1b2)][_0x4023a6(0x208)](_0x4f021d[_0x4023a6(0x158)]()),'replace':!0x0}})));}[_0x3e901a(0x1a7)](_0x1b0d4d,_0x8a830b,_0x46a9d7){const _0xfb2f5c=_0x3e901a;if(_0x1b0d4d[_0xfb2f5c(0x1a8)][_0xfb2f5c(0x231)](_0x8a830b))return null;let _0x259457=_0x1b0d4d[_0xfb2f5c(0x1c7)][_0xfb2f5c(0x168)](_0x8a830b)??_0x1b0d4d['originals'][_0xfb2f5c(0x168)](_0x8a830b);if(!_0x259457)return null;let _0x42b0ec=this[_0xfb2f5c(0x241)](_0x1b0d4d,_0x259457);return _0x42b0ec?(0x0,e[_0xfb2f5c(0x205)])(_0x42b0ec,_0x46a9d7):null;}[_0x3e901a(0x241)](_0x5ef37c,_0x26bcca){const _0x5074a3=_0x3e901a;let _0x171bf1={'hostType':t[_0x5074a3(0x16d)][_0x5074a3(0x1bd)],'unitId':_0x5ef37c[_0x5074a3(0x1be)],'subUnitId':_0x5ef37c[_0x5074a3(0x15b)],'shapeId':_0x26bcca[_0x5074a3(0x191)]},_0x598e20=this[_0x5074a3(0x19a)][_0x5074a3(0x1c5)](_0x171bf1);return!_0x598e20||!_0x26bcca[_0x5074a3(0x254)]?null:{..._0x598e20,'transform':{'left':_0x26bcca['transform'][_0x5074a3(0x1bb)]??0x0,'top':_0x26bcca['transform'][_0x5074a3(0x174)]??0x0,'width':_0x26bcca[_0x5074a3(0x254)]['width']??0x0,'height':_0x26bcca[_0x5074a3(0x254)][_0x5074a3(0x1a2)]??0x0,'rotation':_0x26bcca[_0x5074a3(0x254)][_0x5074a3(0x23b)]??0x0,'flipX':_0x26bcca[_0x5074a3(0x254)][_0x5074a3(0x169)]??!0x1,'flipY':_0x26bcca['transform'][_0x5074a3(0x1bf)]??!0x1}};}[_0x3e901a(0x23d)](_0x3e251c,_0x37777c,_0x4da9d4){const _0x1e7941=_0x3e901a;let _0x2699aa=_0x37777c,_0x329df4={..._0x37777c[_0x1e7941(0x254)],'left':_0x4da9d4[_0x1e7941(0x254)][_0x1e7941(0x1bb)],'top':_0x4da9d4[_0x1e7941(0x254)][_0x1e7941(0x174)],'width':_0x4da9d4[_0x1e7941(0x254)][_0x1e7941(0x1f2)],'height':_0x4da9d4[_0x1e7941(0x254)][_0x1e7941(0x1a2)],'angle':_0x4da9d4[_0x1e7941(0x254)][_0x1e7941(0x177)],'flipX':_0x4da9d4['transform'][_0x1e7941(0x169)],'flipY':_0x4da9d4[_0x1e7941(0x254)][_0x1e7941(0x1bf)]},_0x1229db={..._0x2699aa,'transform':_0x329df4,'sheetTransform':(0x0,r[_0x1e7941(0x230)])(_0x329df4,_0x3e251c['skeleton']),'axisAlignSheetTransform':(0x0,r[_0x1e7941(0x1ff)])(_0x329df4,_0x3e251c[_0x1e7941(0x157)]),'data':{..._0x2699aa[_0x1e7941(0x1e0)],'shapeType':_0x4da9d4[_0x1e7941(0x1b1)],'shapeData':t[_0x1e7941(0x1b2)][_0x1e7941(0x208)](_0x4da9d4[_0x1e7941(0x1a4)])}};_0x3e251c['updates'][_0x1e7941(0x19c)](_0x37777c[_0x1e7941(0x191)],_0x1229db);}};j=f([d(0x0,(0x0,t[_0x3e901a(0x22b)])(p)),d(0x1,(0x0,t[_0x3e901a(0x22b)])(O)),d(0x2,(0x0,t[_0x3e901a(0x22b)])(r[_0x3e901a(0x194)]))],j);let M=class extends t[_0x3e901a(0x238)]{constructor(_0x381e05=k,_0x47d01c,_0x709c4f){const _0x5eb9b2=_0x3e901a;super(),this[_0x5eb9b2(0x24f)]=_0x381e05,this[_0x5eb9b2(0x22c)]=_0x47d01c,this['_configService']=_0x709c4f;let {..._0x47ce9b}=(0x0,t[_0x5eb9b2(0x199)])({},k,this[_0x5eb9b2(0x24f)]);this['_configService'][_0x5eb9b2(0x218)](_0x5eb9b2(0x1da),_0x47ce9b);}[_0x3e901a(0x18d)](){const _0x3bf729=_0x3e901a;let _0x236c95=this['_injector'];[[u],[p],[O],[j],[A]]['forEach'](_0x1a701d=>_0x236c95[_0x3bf729(0x1b9)](_0x1a701d)),(0x0,t[_0x3bf729(0x1db)])(_0x236c95,[[p],[j],[A]]);}};l(M,_0x3e901a(0x239),t[_0x3e901a(0x16d)][_0x3e901a(0x1bd)]),l(M,_0x3e901a(0x1d6),'SHEET_SHAPE_PLUGIN'),l(M,_0x3e901a(0x1f5),T),l(M,'version',E),M=f([(0x0,t[_0x3e901a(0x209)])(i[_0x3e901a(0x193)],a[_0x3e901a(0x198)],e[_0x3e901a(0x267)],n[_0x3e901a(0x226)],r[_0x3e901a(0x1c8)]),d(0x1,(0x0,t['Inject'])(t[_0x3e901a(0x260)])),d(0x2,t[_0x3e901a(0x246)])],M),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports[_0x3e901a(0x16e)]=0xc8,exports['InsertShapeCommand']=g,exports[_0x3e901a(0x187)]=m,exports[_0x3e901a(0x1e7)]=h,exports[_0x3e901a(0x176)]=v,exports[_0x3e901a(0x24a)]=b,exports[_0x3e901a(0x22e)]=x,Object[_0x3e901a(0x264)](exports,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return p;}}),exports['ToggleSheetsShapeFlipCommand']=y,Object[_0x3e901a(0x264)](exports,_0x3e901a(0x1d4),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x3e901a(0x23c)]=S,exports['UpdateLineShapeResizeCommand']=C,exports['UpdateSheetsShapeDataMutation']=_,exports[_0x3e901a(0x20b)]=w;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x341fb7=_0x33a0;(function(_0x545479,_0x350115){const _0x3b24ad=_0x33a0,_0x1b454e=_0x545479();while(!![]){try{const _0x27b73f=-parseInt(_0x3b24ad(0x128))/0x1*(parseInt(_0x3b24ad(0x15b))/0x2)+parseInt(_0x3b24ad(0x12c))/0x3*(-parseInt(_0x3b24ad(0x137))/0x4)+-parseInt(_0x3b24ad(0x149))/0x5*(-parseInt(_0x3b24ad(0x14d))/0x6)+parseInt(_0x3b24ad(0x155))/0x7*(parseInt(_0x3b24ad(0x14f))/0x8)+-parseInt(_0x3b24ad(0x159))/0x9+parseInt(_0x3b24ad(0x148))/0xa*(-parseInt(_0x3b24ad(0x134))/0xb)+parseInt(_0x3b24ad(0x141))/0xc;if(_0x27b73f===_0x350115)break;else _0x1b454e['push'](_0x1b454e['shift']());}catch(_0x5e608e){_0x1b454e['push'](_0x1b454e['shift']());}}}(_0xdb31,0x61731));import{IShapeHostAdapterRegistry as _0x563e27,isConnectorShape as _0x4538a5}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x1d0afb,FShape as _0x17a926}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x32d283,UniverInstanceType as _0x877091}from'@univerjs/core';import{FWorksheet as _0x58f322}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x185ab9,SetSheetDrawingPlacementCommand as _0x77b2fd,SheetDrawingAnchorType as _0x2e5c0a,getSheetDrawingPlacement as _0x4aa0f2}from'@univerjs/sheets-drawing';function d(_0x1153d8,_0xbd6b82){return function(_0x361f4d,_0x1f3104){_0xbd6b82(_0x361f4d,_0x1f3104,_0x1153d8);};}function f(_0x454c1b,_0x31da3d,_0x53d73c,_0x5c1ce4){const _0x3a9a49=_0x33a0;var _0x2ec27a=arguments[_0x3a9a49(0x12e)],_0x2acd18=_0x2ec27a<0x3?_0x31da3d:_0x5c1ce4===null?_0x5c1ce4=Object[_0x3a9a49(0x15e)](_0x31da3d,_0x53d73c):_0x5c1ce4,_0x3e3059;if(typeof Reflect==_0x3a9a49(0x14e)&&typeof Reflect[_0x3a9a49(0x12f)]==_0x3a9a49(0x156))_0x2acd18=Reflect[_0x3a9a49(0x12f)](_0x454c1b,_0x31da3d,_0x53d73c,_0x5c1ce4);else{for(var _0x58db45=_0x454c1b[_0x3a9a49(0x12e)]-0x1;_0x58db45>=0x0;_0x58db45--)(_0x3e3059=_0x454c1b[_0x58db45])&&(_0x2acd18=(_0x2ec27a<0x3?_0x3e3059(_0x2acd18):_0x2ec27a>0x3?_0x3e3059(_0x31da3d,_0x53d73c,_0x2acd18):_0x3e3059(_0x31da3d,_0x53d73c))||_0x2acd18);}return _0x2ec27a>0x3&&_0x2acd18&&Object[_0x3a9a49(0x154)](_0x31da3d,_0x53d73c,_0x2acd18),_0x2acd18;}let p=class extends _0x17a926{constructor(_0x2d858d,_0x593061,_0x4f2a32,_0x16dc23,_0x2870fb){const _0x1afb1e=_0x33a0;super(_0x2d858d,_0x593061,_0x4f2a32,_0x16dc23),this[_0x1afb1e(0x158)]=_0x2870fb;}[_0x341fb7(0x138)](){const _0x4b3011=_0x341fb7;let _0x1aa820=this['_sheetDrawingService'][_0x4b3011(0x139)]({'unitId':this[_0x4b3011(0x135)][_0x4b3011(0x151)],'subUnitId':this[_0x4b3011(0x135)][_0x4b3011(0x13d)],'drawingId':this[_0x4b3011(0x135)]['shapeId']});return _0x1aa820?_0x4aa0f2(_0x1aa820):null;}[_0x341fb7(0x13b)](_0x49cbe7){const _0x65350b=_0x341fb7;return this[_0x65350b(0x152)][_0x65350b(0x129)](_0x77b2fd['id'],{'unitId':this[_0x65350b(0x135)][_0x65350b(0x151)],'subUnitId':this[_0x65350b(0x135)]['subUnitId'],'drawings':[{'drawingId':this[_0x65350b(0x135)]['shapeId'],'placement':_0x49cbe7}]});}[_0x341fb7(0x13a)](_0x4e2827,_0x1d63a4,_0x233fd3,_0x58ffd4){const _0x2ddc99=_0x341fb7;var _0x3c6447,_0x444f33;let _0x10abf6=this[_0x2ddc99(0x158)][_0x2ddc99(0x139)]({'unitId':this[_0x2ddc99(0x135)][_0x2ddc99(0x151)],'subUnitId':this[_0x2ddc99(0x135)][_0x2ddc99(0x13d)],'drawingId':this[_0x2ddc99(0x135)][_0x2ddc99(0x142)]});if(!_0x10abf6)return console[_0x2ddc99(0x130)](_0x2ddc99(0x133)+this[_0x2ddc99(0x135)][_0x2ddc99(0x142)]+_0x2ddc99(0x132)),this;let _0x23c818=(_0x3c6447=_0x10abf6[_0x2ddc99(0x15a)])==null?void 0x0:_0x3c6447[_0x2ddc99(0x14b)],_0x55186d=(_0x444f33=_0x10abf6[_0x2ddc99(0x15a)])==null?void 0x0:_0x444f33['height'];return _0x23c818==null||_0x55186d==null?(console['warn'](_0x2ddc99(0x133)+this[_0x2ddc99(0x135)][_0x2ddc99(0x142)]+_0x2ddc99(0x13f)),this):(this[_0x2ddc99(0x152)][_0x2ddc99(0x129)](_0x77b2fd['id'],{'unitId':this[_0x2ddc99(0x135)]['unitId'],'subUnitId':this[_0x2ddc99(0x135)]['subUnitId'],'drawings':[{'drawingId':this[_0x2ddc99(0x135)][_0x2ddc99(0x142)],'placement':{'kind':_0x2e5c0a['Position'],'from':{'row':_0x4e2827,'column':_0x1d63a4,'rowOffset':_0x233fd3,'columnOffset':_0x58ffd4},'width':_0x23c818,'height':_0x55186d}}]}),this);}};p=f([d(0x2,_0x563e27),d(0x3,_0x32d283),d(0x4,_0x185ab9)],p);function _0x33a0(_0x2a9f3b,_0x4fc04c){_0x2a9f3b=_0x2a9f3b-0x128;const _0xdb3158=_0xdb31();let _0x33a085=_0xdb3158[_0x2a9f3b];return _0x33a085;}var m=class extends _0x58f322{[_0x341fb7(0x13c)](_0x3d0289){const _0x44424f=_0x341fb7;let _0x3d25c5=this['_getShapeAdapter']();if(!_0x3d25c5)return null;try{let _0x618fa2=_0x3d25c5[_0x44424f(0x12d)](this[_0x44424f(0x143)](),_0x3d0289);return _0x618fa2?this[_0x44424f(0x147)](_0x618fa2):(console[_0x44424f(0x130)](_0x44424f(0x157)),null);}catch(_0x7999){return console[_0x44424f(0x130)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.',_0x7999),null;}}[_0x341fb7(0x131)](_0x4ffd8a){const _0x2be8f3=_0x341fb7;let _0x5c6759=this[_0x2be8f3(0x144)]();if(!_0x5c6759)return null;try{let _0x589814={...this[_0x2be8f3(0x143)](),'shapeId':_0x4ffd8a},_0xc91134=_0x5c6759[_0x2be8f3(0x131)](_0x589814);return _0xc91134?this['_createShapeHandle'](_0xc91134):(console[_0x2be8f3(0x130)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x4ffd8a+'\x22\x20was\x20not\x20found.'),null);}catch(_0x246cbb){return console[_0x2be8f3(0x130)](_0x2be8f3(0x14a)+_0x4ffd8a+'\x22.',_0x246cbb),null;}}[_0x341fb7(0x12a)](){const _0x46f968=_0x341fb7;let _0xceae2b=this[_0x46f968(0x144)]();if(!_0xceae2b)return[];try{return _0xceae2b[_0x46f968(0x12b)](this[_0x46f968(0x143)]())['map'](_0x2b2397=>this[_0x46f968(0x147)](_0x2b2397));}catch(_0x351a9b){return console[_0x46f968(0x130)](_0x46f968(0x146),_0x351a9b),[];}}[_0x341fb7(0x143)](){const _0x1246cc=_0x341fb7;return{'hostType':_0x877091[_0x1246cc(0x13e)],'unitId':this[_0x1246cc(0x145)]()[_0x1246cc(0x14c)](),'subUnitId':this[_0x1246cc(0x153)]()};}['_getShapeAdapter'](){const _0x45b56c=_0x341fb7;return this['_injector'][_0x45b56c(0x136)](_0x563e27)[_0x45b56c(0x136)](_0x877091[_0x45b56c(0x13e)]);}[_0x341fb7(0x147)](_0x1dd8e2){const _0x47960b=_0x341fb7;let {unitId:_0x20157d,subUnitId:_0x39013f,shapeId:_0x4a7f88}=_0x1dd8e2,_0x6950={'unitId':_0x20157d,'subUnitId':_0x39013f,'shapeId':_0x4a7f88,'hostType':_0x877091['UNIVER_SHEET']};return _0x4538a5(_0x1dd8e2[_0x47960b(0x140)])?this[_0x47960b(0x150)]['createInstance'](_0x1d0afb,_0x6950,this['_injector']):this[_0x47960b(0x150)][_0x47960b(0x15d)](p,_0x6950,this['_injector']);}};function _0xdb31(){const _0x4c96ac=['_getShapeScope','_getShapeAdapter','getWorkbook','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','_createShapeHandle','118930wosNRA','2770wMDJyB','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','width','getUnitId','1302BmLIPM','object','56edohjU','_injector','unitId','_commandService','getSheetId','defineProperty','754579njjPZd','function','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','_sheetDrawingService','1871721eyFWwo','transform','274800JXaYFe','extend','createInstance','getOwnPropertyDescriptor','4VOdXaF','syncExecuteCommand','getShapes','listShapes','1656219ktJMVz','createShape','length','decorate','warn','getShape','\x22\x20was\x20not\x20found.','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','231cKmnSj','_shapeRef','get','4PHnHrH','getPlacement','getDrawingByParam','setPosition','setPlacement','insertShape','subUnitId','UNIVER_SHEET','\x22\x20has\x20no\x20transform\x20extent.','shapeType','13005012toJRRP','shapeId'];_0xdb31=function(){return _0x4c96ac;};return _0xdb31();}_0x58f322[_0x341fb7(0x15c)](m);export{p as FSheetShape};
|